dolphin-components 2.2.1 → 2.2.2

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.
@@ -1,12 +1,12 @@
1
- (function(j,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],c):(j=typeof globalThis<"u"?globalThis:j||self,c(j.DolphinComponents={},j.Vue))})(this,function(j,c){"use strict";var IV=Object.defineProperty;var TV=(j,c,Yo)=>c in j?IV(j,c,{enumerable:!0,configurable:!0,writable:!0,value:Yo}):j[c]=Yo;var E=(j,c,Yo)=>TV(j,typeof c!="symbol"?c+"":c,Yo);var xe,Be,Le,Qe,VC,PC;const Yo={class:"content-div"},IE={class:"content-title"},TE={key:0},DE={key:2,width:"22px",height:"22px",class:"mt-[4px]",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zE={class:"content-action"},RE=["onClick"],HE=c.defineComponent({__name:"ContentLayout",props:{title:{default:()=>[]},actions:{},bodyClass:{default:""},titleClass:{default:""}},setup(o,{emit:e}){const t=e,i=o,a=c.ref(i.actions?i.actions:[]);return c.watch(()=>i.actions,n=>{n&&(a.value=n)},{deep:!0}),(n,r)=>{const l=c.resolveComponent("RouterLink");return c.openBlock(),c.createElementBlock("div",Yo,[c.createElementVNode("div",{class:c.normalizeClass(["content-title-div",n.titleClass])},[c.createElementVNode("div",IE,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.title,(h,d)=>(c.openBlock(),c.createElementBlock("div",{key:d},[h.link?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("span",TE,c.toDisplayString(h.name),1)),h.link?(c.openBlock(),c.createBlock(l,{key:1,to:h.link,class:"hover:underline cursor-pointer"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(h.name),1)]),_:2},1032,["to"])):c.createCommentVNode("",!0),n.title.length!==0&&d+1!==n.title.length?(c.openBlock(),c.createElementBlock("svg",DE,r[0]||(r[0]=[c.createElementVNode("path",{d:"M9 6L15 12L9 18",stroke:"gray",style:{"stroke-width":"2.5px"},"stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):c.createCommentVNode("",!0)]))),128))]),c.createElementVNode("div",zE,[c.renderSlot(n.$slots,"action-before"),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,(h,d)=>(c.openBlock(),c.createElementBlock("div",{key:d},[c.createElementVNode("button",{class:c.normalizeClass(h.class||"btn"),onClick:u=>t(h.emit)},c.toDisplayString(h.title),11,RE)]))),128)),c.renderSlot(n.$slots,"action-after")])],2),c.createElementVNode("div",{class:c.normalizeClass(["content-body",n.bodyClass])},[c.renderSlot(n.$slots,"body")],2)])}}}),AE={class:"border-b py-3 px-4"},VE={class:"font-bold text-lg my-auto relative flex text-[19px]"},PE={key:0},qE={key:3,width:"22px",height:"22px",class:"mt-[4px]",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},BE={class:"border-t py-2.5 px-4"},FE={class:"my-auto relative"},OE={class:"flex justify-end gap-1.5"},jE=["onClick"],NE={key:0,class:"h-screen bg-black/30 z-10 fixed top-0 right-0 left-0"},qC=c.defineComponent({__name:"Modal",props:{title:{default:()=>[]},actions:{default:()=>[]},show:{type:Boolean,default:!1},width:{default:"600px"}},setup(o,{emit:e}){const t=e,i=o,a=c.ref(window.innerHeight),n=c.ref(null),r=c.ref(!1),l=p=>{p.emit==="onClose"?t("onClose"):t(p.emit)},h=()=>{if(n.value){const p=a.value-200;r.value=n.value.scrollHeight>p}},d=()=>{a.value=window.innerHeight,h()};c.onMounted(()=>{h(),window.addEventListener("resize",d)}),c.onUpdated(()=>{h()}),c.onBeforeUnmount(()=>{window.removeEventListener("resize",d)}),c.watch(a,h);const u=c.ref(i.actions);return c.watch(()=>i.actions,p=>{u.value=p},{deep:!0}),(p,y)=>{const f=c.resolveComponent("RouterLink");return c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[c.createElementVNode("div",null,[c.createVNode(c.Transition,{name:"modal-load"},{default:c.withCtx(()=>[p.show?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["bg-white border border-border z-11 fixed top-[50px] right-0 left-0 mx-auto",{"overflow-y-auto":r.value}]),style:c.normalizeStyle({width:p.width})},[c.createElementVNode("div",AE,[c.createElementVNode("div",VE,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(p.title,(g,k)=>(c.openBlock(),c.createElementBlock("span",{key:k,class:"flex"},[g.link?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("span",PE,c.toDisplayString(g.name),1)),g.link&&g.link!=="#"?(c.openBlock(),c.createBlock(f,{key:1,to:g.link,class:"hover:underline"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(g.name),1)]),_:2},1032,["to"])):c.createCommentVNode("",!0),g.link&&g.link==="#"?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:y[0]||(y[0]=b=>t("onClose")),class:"hover:underline cursor-pointer"},c.toDisplayString(g.name),1)):c.createCommentVNode("",!0),p.title.length!==0&&k+1!==p.title.length?(c.openBlock(),c.createElementBlock("svg",qE,y[2]||(y[2]=[c.createElementVNode("path",{d:"M9 6L15 12L9 18",stroke:"gray",style:{"stroke-width":"2.5px"},"stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):c.createCommentVNode("",!0)]))),128)),c.createElementVNode("div",{class:"absolute hover:cursor-pointer top-[7px] right-0 text-xl group",onClick:y[1]||(y[1]=g=>t("onClose"))},y[3]||(y[3]=[c.createElementVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16.00 16.00",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:"duration-200","stroke-width":"0.592"},[c.createElementVNode("g",{id:"SVGRepo_iconCarrier"},[c.createElementVNode("path",{d:"M0 14.545L1.455 16 8 9.455 14.545 16 16 14.545 9.455 8 16 1.455 14.545 0 8 6.545 1.455 0 0 1.455 6.545 8z","fill-rule":"evenodd"})])],-1)]))])]),c.createElementVNode("div",{ref_key:"dynamicDiv",ref:n,class:c.normalizeClass(["py-4 px-4",{"overflow-y-auto":r.value}]),style:c.normalizeStyle({maxHeight:`${a.value-200}px`})},[c.renderSlot(p.$slots,"default")],6),c.createElementVNode("div",BE,[c.createElementVNode("div",FE,[c.createElementVNode("div",OE,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(u.value,(g,k)=>(c.openBlock(),c.createElementBlock("div",{key:k},[c.createElementVNode("button",{class:c.normalizeClass(g.class||"btn"),onClick:b=>l(g)},c.toDisplayString(g.title),11,jE)]))),128))])])])],6)):c.createCommentVNode("",!0)]),_:3}),p.show?(c.openBlock(),c.createElementBlock("div",NE)):c.createCommentVNode("",!0)])])}}}),_E=["aria-checked"],WE=c.defineComponent({__name:"Switch",props:{modelValue:{type:Boolean,default:!1},background:{default:"bg-[#1C64F2]"},disable:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(t.modelValue);c.watch(()=>t.modelValue,r=>{a.value=r});const n=()=>{t.disable||(a.value=!a.value,i("update:modelValue",a.value))};return(r,l)=>(c.openBlock(),c.createElementBlock("button",{onClick:n,class:c.normalizeClass(["relative w-[40px] h-[25px] rounded-full p-1 transition-colors duration-200 my-[1px]",[a.value?r.background:"bg-gray-200",r.disable?"cursor-not-allowed":"cursor-pointer"]]),role:"switch","aria-checked":a.value},[c.createElementVNode("div",{class:c.normalizeClass(["flex items-center justify-center w-[15px] h-[15px] rounded-full bg-white shadow-md transform transition-transform duration-200",a.value?"translate-x-[110%]":"translate-x-0"])},null,2)],10,_E))}});class te{constructor(e){this.table=e}reloadData(e,t,i){return this.table.dataLoader.load(e,void 0,void 0,void 0,t,i)}langText(){return this.table.modules.localize.getText(...arguments)}langBind(){return this.table.modules.localize.bind(...arguments)}langLocale(){return this.table.modules.localize.getLocale(...arguments)}commsConnections(){return this.table.modules.comms.getConnections(...arguments)}commsSend(){return this.table.modules.comms.send(...arguments)}layoutMode(){return this.table.modules.layout.getMode()}layoutRefresh(e){return this.table.modules.layout.layout(e)}subscribe(){return this.table.eventBus.subscribe(...arguments)}unsubscribe(){return this.table.eventBus.unsubscribe(...arguments)}subscribed(e){return this.table.eventBus.subscribed(e)}subscriptionChange(){return this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return this.table.eventBus.dispatch(...arguments)}chain(){return this.table.eventBus.chain(...arguments)}confirm(){return this.table.eventBus.confirm(...arguments)}dispatchExternal(){return this.table.externalEvents.dispatch(...arguments)}subscribedExternal(e){return this.table.externalEvents.subscribed(e)}subscriptionChangeExternal(){return this.table.externalEvents.subscriptionChange(...arguments)}options(e){return this.table.options[e]}setOption(e,t){return typeof t<"u"&&(this.table.options[e]=t),this.table.options[e]}deprecationCheck(e,t,i){return this.table.deprecationAdvisor.check(e,t,i)}deprecationCheckMsg(e,t){return this.table.deprecationAdvisor.checkMsg(e,t)}deprecationMsg(e){return this.table.deprecationAdvisor.msg(e)}module(e){return this.table.module(e)}}class G{static elVisible(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)}static elOffset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}}static retrieveNestedData(e,t,i){var a=e?t.split(e):[t],n=a.length,r;for(let l=0;l<n&&(i=i[a[l]],r=i,!!i);l++);return r}static deepClone(e,t,i=[]){var a={}.__proto__,n=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var r in e){let l=e[r],h,d;l!=null&&typeof l=="object"&&(l.__proto__===a||l.__proto__===n)&&(h=i.findIndex(u=>u.subject===l),h>-1?t[r]=i[h].copy:(d=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:d}),t[r]=this.deepClone(l,d,i)))}return t}}let UE=class EE extends te{constructor(e,t,i){super(e),this.element=t,this.container=this._lookupContainer(),this.parent=i,this.reversedX=!1,this.childPopup=null,this.blurable=!1,this.blurCallback=null,this.blurEventsBound=!1,this.renderedCallback=null,this.visible=!1,this.hideable=!0,this.element.classList.add("tabulator-popup-container"),this.blurEvent=this.hide.bind(this,!1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroyed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!0)}_lookupContainer(){var e=this.table.options.popupContainer;return typeof e=="string"?(e=document.querySelector(e),e||console.warn("Menu Error - no container element found matching selector:",this.table.options.popupContainer,"(defaulting to document body)")):e===!0&&(e=this.table.element),e&&!this._checkContainerIsParent(e)&&(e=!1,console.warn("Menu Error - container element does not contain this table:",this.table.options.popupContainer,"(defaulting to document body)")),e||(e=document.body),e}_checkContainerIsParent(e,t=this.table.element){return e===t?!0:t.parentNode?this._checkContainerIsParent(e,t.parentNode):!1}renderCallback(e){this.renderedCallback=e}containerEventCoords(e){var t=!(e instanceof MouseEvent),i=t?e.touches[0].pageX:e.pageX,a=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let n=G.elOffset(this.container);i-=n.left,a-=n.top}return{x:i,y:a}}elementPositionCoords(e,t="right"){var i=G.elOffset(e),a,n,r;switch(this.container!==document.body&&(a=G.elOffset(this.container),i.left-=a.left,i.top-=a.top),t){case"right":n=i.left+e.offsetWidth,r=i.top-1;break;case"bottom":n=i.left,r=i.top+e.offsetHeight;break;case"left":n=i.left,r=i.top-1;break;case"top":n=i.left,r=i.top;break;case"center":n=i.left+e.offsetWidth/2,r=i.top+e.offsetHeight/2;break}return{x:n,y:r,offset:i}}show(e,t){var i,a,n,r,l;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(n=e,l=this.elementPositionCoords(e,t),r=l.offset,i=l.x,a=l.y):typeof e=="number"?(r={top:0,left:0},i=e,a=t):(l=this.containerEventCoords(e),i=l.x,a=l.y,this.reversedX=!1),this.element.style.top=a+"px",this.element.style.left=i+"px",this.container.appendChild(this.element),typeof this.renderedCallback=="function"&&this.renderedCallback(),this._fitToScreen(i,a,n,r,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",h=>{h.stopPropagation()}),this)}_fitToScreen(e,t,i,a,n){var r=this.container===document.body?document.documentElement.scrollTop:this.container.scrollTop;(e+this.element.offsetWidth>=this.container.offsetWidth||this.reversedX)&&(this.element.style.left="",i?this.element.style.right=this.container.offsetWidth-a.left+"px":this.element.style.right=this.container.offsetWidth-e+"px",this.reversedX=!0);let l=Math.max(this.container.offsetHeight,r?this.container.scrollHeight:0);if(t+this.element.offsetHeight>l)if(i)switch(n){case"bottom":this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight-i.offsetHeight-1+"px";break;default:this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight+i.offsetHeight+1+"px"}else this.element.style.height=l+"px"}isVisible(){return this.visible}hideOnBlur(e){return this.blurable=!0,this.visible&&(setTimeout(()=>{this.visible&&(this.table.rowManager.element.addEventListener("scroll",this.blurEvent),this.subscribe("cell-editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),document.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventListener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!0)},100),this.blurCallback=e),this}_escapeCheck(e){e.keyCode==27&&this.hide()}blockHide(){this.hideable=!1}restoreHide(){this.hideable=!0}hide(e=!1){return this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent),this.unsubscribe("cell-editing",this.blurEvent),this.blurEventsBound=!1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=null),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.visible=!1,this.blurCallback&&!e&&this.blurCallback(),this.unsubscribe("table-destroy",this.destroyBinding)),this}child(e){return this.childPopup&&this.childPopup.hide(),this.childPopup=new EE(this.table,e,this),this.childPopup}};class q extends te{constructor(e,t){super(e),this._handler=null}initialize(){}registerTableOption(e,t){this.table.optionsList.register(e,t)}registerColumnOption(e,t){this.table.columnManager.optionsList.register(e,t)}registerTableFunction(e,t){typeof this.table[e]>"u"?this.table[e]=(...i)=>(this.table.initGuard(e),t(...i)):console.warn("Unable to bind table function, name already in use",e)}registerComponentFunction(e,t,i){return this.table.componentFunctionBinder.bind(e,t,i)}registerDataHandler(e,t){this.table.rowManager.registerDataPipelineHandler(e,t),this._handler=e}registerDisplayHandler(e,t){this.table.rowManager.registerDisplayPipelineHandler(e,t),this._handler=e}displayRows(e){var t=this.table.rowManager.displayRows.length-1,i;if(this._handler&&(i=this.table.rowManager.displayPipeline.findIndex(a=>a.handler===this._handler),i>-1&&(t=i)),e&&(t=t+e),this._handler)return t>-1?this.table.rowManager.getDisplayRows(t):this.activeRows()}activeRows(){return this.table.rowManager.activeRows}refreshData(e,t){t||(t=this._handler),t&&this.table.rowManager.refreshActiveData(t,!1,e)}footerAppend(e){return this.table.footerManager.append(e)}footerPrepend(e){return this.table.footerManager.prepend(e)}footerRemove(e){return this.table.footerManager.remove(e)}popup(e,t){return new UE(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var GE={rownum:function(o,e,t,i,a,n){return n.getPosition()}};const hn=class hn extends q{constructor(e){super(e),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"],this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataParams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("accessorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerColumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),this.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessorHtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-retrieve",this.transformRow.bind(this))}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(a=>{var n="accessor"+(a.charAt(0).toUpperCase()+a.slice(1)),r;e.definition[n]&&(r=this.lookupAccessor(e.definition[n]),r&&(t=!0,i[n]={accessor:r,params:e.definition[n+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":hn.accessors[e]?t=hn.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t){var i="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),a=e.getComponent(),n=G.deepClone(e.data||{});return this.table.columnManager.traverse(function(r){var l,h,d,u;r.modules.accessor&&(h=r.modules.accessor[i]||r.modules.accessor.accessor||!1,h&&(l=r.getFieldValue(n),l!="undefined"&&(u=r.getComponent(),d=typeof h.params=="function"?h.params(l,n,t,u,a):h.params,r.setFieldValue(n,h.accessor(l,n,t,d,u,a)))))}),n}};E(hn,"moduleName","accessor"),E(hn,"accessors",GE);let p9=hn;var $E={method:"GET"};function y9(o,e){var t=[];if(e=e||"",Array.isArray(o))o.forEach((a,n)=>{t=t.concat(y9(a,e?e+"["+n+"]":n))});else if(typeof o=="object")for(var i in o)t=t.concat(y9(o[i],e?e+"["+i+"]":i));else t.push({key:e,value:o});return t}function YE(o){var e=y9(o),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function BC(o,e,t){return o&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",o+=(o.includes("?")?"&":"?")+YE(t)),o}function ZE(o,e,t){var i;return new Promise((a,n)=>{if(o=this.urlGenerator.call(this.table,o,e,t),e.method.toUpperCase()!="GET")if(i=typeof this.table.options.ajaxContentType=="object"?this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.ajaxContentType],i){for(var r in i.headers)e.headers||(e.headers={}),typeof e.headers[r]>"u"&&(e.headers[r]=i.headers[r]);e.body=i.body.call(this,o,e,t)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);o?(typeof e.headers>"u"&&(e.headers={}),typeof e.headers.Accept>"u"&&(e.headers.Accept="application/json"),typeof e.headers["X-Requested-With"]>"u"&&(e.headers["X-Requested-With"]="XMLHttpRequest"),typeof e.mode>"u"&&(e.mode="cors"),e.mode=="cors"?(typeof e.headers.Origin>"u"&&(e.headers.Origin=window.location.origin),typeof e.credentials>"u"&&(e.credentials="same-origin")):typeof e.credentials>"u"&&(e.credentials="include"),fetch(o,e).then(l=>{l.ok?l.json().then(h=>{a(h)}).catch(h=>{n(h),console.warn("Ajax Load Error - Invalid JSON returned",h)}):(console.error("Ajax Load Error - Connection Error: "+l.status,l.statusText),n(l))}).catch(l=>{console.error("Ajax Load Error - Connection Error: ",l),n(l)})):(console.warn("Ajax Load Error - No URL Set"),a([]))})}function f9(o,e){var t=[];if(e=e||"",Array.isArray(o))o.forEach((a,n)=>{t=t.concat(f9(a,e?e+"["+n+"]":n))});else if(typeof o=="object")for(var i in o)t=t.concat(f9(o[i],e?e+"["+i+"]":i));else t.push({key:e,value:o});return t}var XE={json:{headers:{"Content-Type":"application/json"},body:function(o,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(o,e,t){var i=f9(t),a=new FormData;return i.forEach(function(n){a.append(n.key,n.value)}),a}}};const Ce=class Ce extends q{constructor(e){super(e),this.config={},this.url="",this.urlGenerator=!1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!1),this.registerTableOption("ajaxURLGenerator",!1),this.registerTableOption("ajaxParams",{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxContentType","form"),this.registerTableOption("ajaxRequestFunc",!1),this.registerTableOption("ajaxRequesting",function(){}),this.registerTableOption("ajaxResponse",!1),this.contentTypeFormatters=Ce.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||Ce.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||Ce.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunction("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-loading",this.requestDataCheck.bind(this)),this.subscribe("data-params",this.requestParams.bind(this)),this.subscribe("data-load",this.requestData.bind(this))}requestParams(e,t,i,a){var n=this.table.options.ajaxParams;return n&&(typeof n=="function"&&(n=n.call(this.table)),a=Object.assign(Object.assign({},n),a)),a}requestDataCheck(e,t,i,a){return!!(!e&&this.url||typeof e=="string")}requestData(e,t,i,a,n){var r;return!n&&this.requestDataCheck(e)?(e&&this.setUrl(e),r=this.generateConfig(i),this.sendRequest(this.url,t,r)):n}setDefaultConfig(e={}){this.config=Object.assign({},Ce.defaultConfig),typeof e=="string"?this.config.method=e:Object.assign(this.config,e)}generateConfig(e={}){var t=Object.assign({},this.config);return typeof e=="string"?t.method=e:Object.assign(t,e),t}setUrl(e){this.url=e}getUrl(){return this.url}sendRequest(e,t,i){return this.table.options.ajaxRequesting.call(this.table,e,t)!==!1?this.loaderPromise(e,i,t).then(a=>(this.table.options.ajaxResponse&&(a=this.table.options.ajaxResponse.call(this.table,e,t,a)),a)):Promise.reject()}};E(Ce,"moduleName","ajax"),E(Ce,"defaultConfig",$E),E(Ce,"defaultURLGenerator",BC),E(Ce,"defaultLoaderPromise",ZE),E(Ce,"contentTypeFormatters",XE);let m9=Ce;var KE={replace:function(o){return this.table.setData(o)},update:function(o){return this.table.updateOrAddData(o)},insert:function(o){return this.table.addData(o)}},JE={table:function(o){var e=[],t=!0,i=this.table.columnManager.columns,a=[],n=[];return o=o.split(`
1
+ (function(j,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],c):(j=typeof globalThis<"u"?globalThis:j||self,c(j.DolphinComponents={},j.Vue))})(this,function(j,c){"use strict";var IV=Object.defineProperty;var TV=(j,c,Yo)=>c in j?IV(j,c,{enumerable:!0,configurable:!0,writable:!0,value:Yo}):j[c]=Yo;var E=(j,c,Yo)=>TV(j,typeof c!="symbol"?c+"":c,Yo);var xe,Be,Le,Qe,VC,PC;const Yo={class:"content-div"},IE={class:"content-title"},TE={key:0},DE={key:2,width:"22px",height:"22px",class:"mt-[4px]",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zE={class:"content-action"},RE=["onClick"],HE=c.defineComponent({__name:"ContentLayout",props:{title:{default:()=>[]},actions:{},bodyClass:{default:""},titleClass:{default:""}},setup(o,{emit:e}){const t=e,i=o,a=c.ref(i.actions?i.actions:[]);return c.watch(()=>i.actions,n=>{n&&(a.value=n)},{deep:!0}),(n,r)=>{const l=c.resolveComponent("RouterLink");return c.openBlock(),c.createElementBlock("div",Yo,[c.createElementVNode("div",{class:c.normalizeClass(["content-title-div",n.titleClass])},[c.createElementVNode("div",IE,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.title,(h,d)=>(c.openBlock(),c.createElementBlock("div",{key:d},[h.link?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("span",TE,c.toDisplayString(h.name),1)),h.link?(c.openBlock(),c.createBlock(l,{key:1,to:h.link,class:"hover:underline cursor-pointer"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(h.name),1)]),_:2},1032,["to"])):c.createCommentVNode("",!0),n.title.length!==0&&d+1!==n.title.length?(c.openBlock(),c.createElementBlock("svg",DE,r[0]||(r[0]=[c.createElementVNode("path",{d:"M9 6L15 12L9 18",stroke:"gray",style:{"stroke-width":"2.5px"},"stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):c.createCommentVNode("",!0)]))),128))]),c.createElementVNode("div",zE,[c.renderSlot(n.$slots,"action-before"),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,(h,d)=>(c.openBlock(),c.createElementBlock("div",{key:d},[c.createElementVNode("button",{class:c.normalizeClass(h.class||"btn"),onClick:u=>t(h.emit)},c.toDisplayString(h.title),11,RE)]))),128)),c.renderSlot(n.$slots,"action-after")])],2),c.createElementVNode("div",{class:c.normalizeClass(["content-body",n.bodyClass])},[c.renderSlot(n.$slots,"body")],2)])}}}),AE={class:"border-b py-3 px-4"},VE={class:"font-bold text-lg my-auto relative flex text-[19px]"},PE={key:0},qE={key:3,width:"22px",height:"22px",class:"mt-[4px]",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},BE={class:"border-t py-2.5 px-4"},FE={class:"my-auto relative"},OE={class:"flex justify-end gap-1.5"},jE=["onClick"],NE={key:0,class:"h-screen bg-black/30 z-10 fixed top-0 right-0 left-0"},qC=c.defineComponent({__name:"Modal",props:{title:{default:()=>[]},actions:{default:()=>[]},show:{type:Boolean,default:!1},width:{default:"600px"}},setup(o,{emit:e}){const t=e,i=o,a=c.ref(window.innerHeight),n=c.ref(null),r=c.ref(!1),l=p=>{p.emit==="onClose"?t("onClose"):t(p.emit)},h=()=>{if(n.value){const p=a.value-200;r.value=n.value.scrollHeight>p}},d=()=>{a.value=window.innerHeight,h()};c.onMounted(()=>{h(),window.addEventListener("resize",d)}),c.onUpdated(()=>{h()}),c.onBeforeUnmount(()=>{window.removeEventListener("resize",d)}),c.watch(a,h);const u=c.ref(i.actions);return c.watch(()=>i.actions,p=>{u.value=p},{deep:!0}),(p,y)=>{const f=c.resolveComponent("RouterLink");return c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[c.createElementVNode("div",null,[c.createVNode(c.Transition,{name:"modal-load"},{default:c.withCtx(()=>[p.show?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["bg-white border border-border z-11 fixed top-[50px] right-0 left-0 mx-auto",{"overflow-y-auto":r.value}]),style:c.normalizeStyle({width:p.width})},[c.createElementVNode("div",AE,[c.createElementVNode("div",VE,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(p.title,(g,k)=>(c.openBlock(),c.createElementBlock("span",{key:k,class:"flex"},[g.link?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("span",PE,c.toDisplayString(g.name),1)),g.link&&g.link!=="#"?(c.openBlock(),c.createBlock(f,{key:1,to:g.link,class:"hover:underline"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(g.name),1)]),_:2},1032,["to"])):c.createCommentVNode("",!0),g.link&&g.link==="#"?(c.openBlock(),c.createElementBlock("a",{key:2,onClick:y[0]||(y[0]=b=>t("onClose")),class:"hover:underline cursor-pointer"},c.toDisplayString(g.name),1)):c.createCommentVNode("",!0),p.title.length!==0&&k+1!==p.title.length?(c.openBlock(),c.createElementBlock("svg",qE,y[2]||(y[2]=[c.createElementVNode("path",{d:"M9 6L15 12L9 18",stroke:"gray",style:{"stroke-width":"2.5px"},"stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):c.createCommentVNode("",!0)]))),128)),c.createElementVNode("div",{class:"absolute hover:cursor-pointer top-[7px] right-0 text-xl group",onClick:y[1]||(y[1]=g=>t("onClose"))},y[3]||(y[3]=[c.createElementVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16.00 16.00",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:"duration-200","stroke-width":"0.592"},[c.createElementVNode("g",{id:"SVGRepo_iconCarrier"},[c.createElementVNode("path",{d:"M0 14.545L1.455 16 8 9.455 14.545 16 16 14.545 9.455 8 16 1.455 14.545 0 8 6.545 1.455 0 0 1.455 6.545 8z","fill-rule":"evenodd"})])],-1)]))])]),c.createElementVNode("div",{ref_key:"dynamicDiv",ref:n,class:c.normalizeClass(["py-4 px-4",{"overflow-y-auto":r.value}]),style:c.normalizeStyle({maxHeight:`${a.value-200}px`})},[c.renderSlot(p.$slots,"default")],6),c.createElementVNode("div",BE,[c.createElementVNode("div",FE,[c.createElementVNode("div",OE,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(u.value,(g,k)=>(c.openBlock(),c.createElementBlock("div",{key:k},[c.createElementVNode("button",{class:c.normalizeClass(g.class||"btn"),onClick:b=>l(g)},c.toDisplayString(g.title),11,jE)]))),128))])])])],6)):c.createCommentVNode("",!0)]),_:3}),p.show?(c.openBlock(),c.createElementBlock("div",NE)):c.createCommentVNode("",!0)])])}}}),_E=["aria-checked"],WE=c.defineComponent({__name:"Switch",props:{modelValue:{type:Boolean,default:!1},background:{default:"bg-[#1C64F2]"},disable:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(t.modelValue);c.watch(()=>t.modelValue,r=>{a.value=r});const n=()=>{t.disable||(a.value=!a.value,i("update:modelValue",a.value))};return(r,l)=>(c.openBlock(),c.createElementBlock("button",{onClick:n,class:c.normalizeClass(["relative w-[40px] h-[25px] rounded-full p-1 transition-colors duration-200 my-[1px]",[a.value?r.background:"bg-gray-200",r.disable?"cursor-not-allowed":"cursor-pointer"]]),role:"switch","aria-checked":a.value},[c.createElementVNode("div",{class:c.normalizeClass(["flex items-center justify-center w-[15px] h-[15px] rounded-full bg-white shadow-md transform transition-transform duration-200",a.value?"translate-x-[110%]":"translate-x-0"])},null,2)],10,_E))}});class te{constructor(e){this.table=e}reloadData(e,t,i){return this.table.dataLoader.load(e,void 0,void 0,void 0,t,i)}langText(){return this.table.modules.localize.getText(...arguments)}langBind(){return this.table.modules.localize.bind(...arguments)}langLocale(){return this.table.modules.localize.getLocale(...arguments)}commsConnections(){return this.table.modules.comms.getConnections(...arguments)}commsSend(){return this.table.modules.comms.send(...arguments)}layoutMode(){return this.table.modules.layout.getMode()}layoutRefresh(e){return this.table.modules.layout.layout(e)}subscribe(){return this.table.eventBus.subscribe(...arguments)}unsubscribe(){return this.table.eventBus.unsubscribe(...arguments)}subscribed(e){return this.table.eventBus.subscribed(e)}subscriptionChange(){return this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return this.table.eventBus.dispatch(...arguments)}chain(){return this.table.eventBus.chain(...arguments)}confirm(){return this.table.eventBus.confirm(...arguments)}dispatchExternal(){return this.table.externalEvents.dispatch(...arguments)}subscribedExternal(e){return this.table.externalEvents.subscribed(e)}subscriptionChangeExternal(){return this.table.externalEvents.subscriptionChange(...arguments)}options(e){return this.table.options[e]}setOption(e,t){return typeof t<"u"&&(this.table.options[e]=t),this.table.options[e]}deprecationCheck(e,t,i){return this.table.deprecationAdvisor.check(e,t,i)}deprecationCheckMsg(e,t){return this.table.deprecationAdvisor.checkMsg(e,t)}deprecationMsg(e){return this.table.deprecationAdvisor.msg(e)}module(e){return this.table.module(e)}}class ${static elVisible(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)}static elOffset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}}static retrieveNestedData(e,t,i){var a=e?t.split(e):[t],n=a.length,r;for(let l=0;l<n&&(i=i[a[l]],r=i,!!i);l++);return r}static deepClone(e,t,i=[]){var a={}.__proto__,n=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var r in e){let l=e[r],h,d;l!=null&&typeof l=="object"&&(l.__proto__===a||l.__proto__===n)&&(h=i.findIndex(u=>u.subject===l),h>-1?t[r]=i[h].copy:(d=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:d}),t[r]=this.deepClone(l,d,i)))}return t}}let UE=class EE extends te{constructor(e,t,i){super(e),this.element=t,this.container=this._lookupContainer(),this.parent=i,this.reversedX=!1,this.childPopup=null,this.blurable=!1,this.blurCallback=null,this.blurEventsBound=!1,this.renderedCallback=null,this.visible=!1,this.hideable=!0,this.element.classList.add("tabulator-popup-container"),this.blurEvent=this.hide.bind(this,!1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroyed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!0)}_lookupContainer(){var e=this.table.options.popupContainer;return typeof e=="string"?(e=document.querySelector(e),e||console.warn("Menu Error - no container element found matching selector:",this.table.options.popupContainer,"(defaulting to document body)")):e===!0&&(e=this.table.element),e&&!this._checkContainerIsParent(e)&&(e=!1,console.warn("Menu Error - container element does not contain this table:",this.table.options.popupContainer,"(defaulting to document body)")),e||(e=document.body),e}_checkContainerIsParent(e,t=this.table.element){return e===t?!0:t.parentNode?this._checkContainerIsParent(e,t.parentNode):!1}renderCallback(e){this.renderedCallback=e}containerEventCoords(e){var t=!(e instanceof MouseEvent),i=t?e.touches[0].pageX:e.pageX,a=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let n=$.elOffset(this.container);i-=n.left,a-=n.top}return{x:i,y:a}}elementPositionCoords(e,t="right"){var i=$.elOffset(e),a,n,r;switch(this.container!==document.body&&(a=$.elOffset(this.container),i.left-=a.left,i.top-=a.top),t){case"right":n=i.left+e.offsetWidth,r=i.top-1;break;case"bottom":n=i.left,r=i.top+e.offsetHeight;break;case"left":n=i.left,r=i.top-1;break;case"top":n=i.left,r=i.top;break;case"center":n=i.left+e.offsetWidth/2,r=i.top+e.offsetHeight/2;break}return{x:n,y:r,offset:i}}show(e,t){var i,a,n,r,l;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(n=e,l=this.elementPositionCoords(e,t),r=l.offset,i=l.x,a=l.y):typeof e=="number"?(r={top:0,left:0},i=e,a=t):(l=this.containerEventCoords(e),i=l.x,a=l.y,this.reversedX=!1),this.element.style.top=a+"px",this.element.style.left=i+"px",this.container.appendChild(this.element),typeof this.renderedCallback=="function"&&this.renderedCallback(),this._fitToScreen(i,a,n,r,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",h=>{h.stopPropagation()}),this)}_fitToScreen(e,t,i,a,n){var r=this.container===document.body?document.documentElement.scrollTop:this.container.scrollTop;(e+this.element.offsetWidth>=this.container.offsetWidth||this.reversedX)&&(this.element.style.left="",i?this.element.style.right=this.container.offsetWidth-a.left+"px":this.element.style.right=this.container.offsetWidth-e+"px",this.reversedX=!0);let l=Math.max(this.container.offsetHeight,r?this.container.scrollHeight:0);if(t+this.element.offsetHeight>l)if(i)switch(n){case"bottom":this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight-i.offsetHeight-1+"px";break;default:this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight+i.offsetHeight+1+"px"}else this.element.style.height=l+"px"}isVisible(){return this.visible}hideOnBlur(e){return this.blurable=!0,this.visible&&(setTimeout(()=>{this.visible&&(this.table.rowManager.element.addEventListener("scroll",this.blurEvent),this.subscribe("cell-editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),document.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventListener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!0)},100),this.blurCallback=e),this}_escapeCheck(e){e.keyCode==27&&this.hide()}blockHide(){this.hideable=!1}restoreHide(){this.hideable=!0}hide(e=!1){return this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent),this.unsubscribe("cell-editing",this.blurEvent),this.blurEventsBound=!1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=null),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.visible=!1,this.blurCallback&&!e&&this.blurCallback(),this.unsubscribe("table-destroy",this.destroyBinding)),this}child(e){return this.childPopup&&this.childPopup.hide(),this.childPopup=new EE(this.table,e,this),this.childPopup}};class q extends te{constructor(e,t){super(e),this._handler=null}initialize(){}registerTableOption(e,t){this.table.optionsList.register(e,t)}registerColumnOption(e,t){this.table.columnManager.optionsList.register(e,t)}registerTableFunction(e,t){typeof this.table[e]>"u"?this.table[e]=(...i)=>(this.table.initGuard(e),t(...i)):console.warn("Unable to bind table function, name already in use",e)}registerComponentFunction(e,t,i){return this.table.componentFunctionBinder.bind(e,t,i)}registerDataHandler(e,t){this.table.rowManager.registerDataPipelineHandler(e,t),this._handler=e}registerDisplayHandler(e,t){this.table.rowManager.registerDisplayPipelineHandler(e,t),this._handler=e}displayRows(e){var t=this.table.rowManager.displayRows.length-1,i;if(this._handler&&(i=this.table.rowManager.displayPipeline.findIndex(a=>a.handler===this._handler),i>-1&&(t=i)),e&&(t=t+e),this._handler)return t>-1?this.table.rowManager.getDisplayRows(t):this.activeRows()}activeRows(){return this.table.rowManager.activeRows}refreshData(e,t){t||(t=this._handler),t&&this.table.rowManager.refreshActiveData(t,!1,e)}footerAppend(e){return this.table.footerManager.append(e)}footerPrepend(e){return this.table.footerManager.prepend(e)}footerRemove(e){return this.table.footerManager.remove(e)}popup(e,t){return new UE(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var $E={rownum:function(o,e,t,i,a,n){return n.getPosition()}};const hn=class hn extends q{constructor(e){super(e),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"],this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataParams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("accessorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerColumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),this.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessorHtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-retrieve",this.transformRow.bind(this))}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(a=>{var n="accessor"+(a.charAt(0).toUpperCase()+a.slice(1)),r;e.definition[n]&&(r=this.lookupAccessor(e.definition[n]),r&&(t=!0,i[n]={accessor:r,params:e.definition[n+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":hn.accessors[e]?t=hn.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t){var i="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),a=e.getComponent(),n=$.deepClone(e.data||{});return this.table.columnManager.traverse(function(r){var l,h,d,u;r.modules.accessor&&(h=r.modules.accessor[i]||r.modules.accessor.accessor||!1,h&&(l=r.getFieldValue(n),l!="undefined"&&(u=r.getComponent(),d=typeof h.params=="function"?h.params(l,n,t,u,a):h.params,r.setFieldValue(n,h.accessor(l,n,t,d,u,a)))))}),n}};E(hn,"moduleName","accessor"),E(hn,"accessors",$E);let p9=hn;var GE={method:"GET"};function y9(o,e){var t=[];if(e=e||"",Array.isArray(o))o.forEach((a,n)=>{t=t.concat(y9(a,e?e+"["+n+"]":n))});else if(typeof o=="object")for(var i in o)t=t.concat(y9(o[i],e?e+"["+i+"]":i));else t.push({key:e,value:o});return t}function YE(o){var e=y9(o),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function BC(o,e,t){return o&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",o+=(o.includes("?")?"&":"?")+YE(t)),o}function ZE(o,e,t){var i;return new Promise((a,n)=>{if(o=this.urlGenerator.call(this.table,o,e,t),e.method.toUpperCase()!="GET")if(i=typeof this.table.options.ajaxContentType=="object"?this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.ajaxContentType],i){for(var r in i.headers)e.headers||(e.headers={}),typeof e.headers[r]>"u"&&(e.headers[r]=i.headers[r]);e.body=i.body.call(this,o,e,t)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);o?(typeof e.headers>"u"&&(e.headers={}),typeof e.headers.Accept>"u"&&(e.headers.Accept="application/json"),typeof e.headers["X-Requested-With"]>"u"&&(e.headers["X-Requested-With"]="XMLHttpRequest"),typeof e.mode>"u"&&(e.mode="cors"),e.mode=="cors"?(typeof e.headers.Origin>"u"&&(e.headers.Origin=window.location.origin),typeof e.credentials>"u"&&(e.credentials="same-origin")):typeof e.credentials>"u"&&(e.credentials="include"),fetch(o,e).then(l=>{l.ok?l.json().then(h=>{a(h)}).catch(h=>{n(h),console.warn("Ajax Load Error - Invalid JSON returned",h)}):(console.error("Ajax Load Error - Connection Error: "+l.status,l.statusText),n(l))}).catch(l=>{console.error("Ajax Load Error - Connection Error: ",l),n(l)})):(console.warn("Ajax Load Error - No URL Set"),a([]))})}function f9(o,e){var t=[];if(e=e||"",Array.isArray(o))o.forEach((a,n)=>{t=t.concat(f9(a,e?e+"["+n+"]":n))});else if(typeof o=="object")for(var i in o)t=t.concat(f9(o[i],e?e+"["+i+"]":i));else t.push({key:e,value:o});return t}var XE={json:{headers:{"Content-Type":"application/json"},body:function(o,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(o,e,t){var i=f9(t),a=new FormData;return i.forEach(function(n){a.append(n.key,n.value)}),a}}};const Ce=class Ce extends q{constructor(e){super(e),this.config={},this.url="",this.urlGenerator=!1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!1),this.registerTableOption("ajaxURLGenerator",!1),this.registerTableOption("ajaxParams",{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxContentType","form"),this.registerTableOption("ajaxRequestFunc",!1),this.registerTableOption("ajaxRequesting",function(){}),this.registerTableOption("ajaxResponse",!1),this.contentTypeFormatters=Ce.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||Ce.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||Ce.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunction("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-loading",this.requestDataCheck.bind(this)),this.subscribe("data-params",this.requestParams.bind(this)),this.subscribe("data-load",this.requestData.bind(this))}requestParams(e,t,i,a){var n=this.table.options.ajaxParams;return n&&(typeof n=="function"&&(n=n.call(this.table)),a=Object.assign(Object.assign({},n),a)),a}requestDataCheck(e,t,i,a){return!!(!e&&this.url||typeof e=="string")}requestData(e,t,i,a,n){var r;return!n&&this.requestDataCheck(e)?(e&&this.setUrl(e),r=this.generateConfig(i),this.sendRequest(this.url,t,r)):n}setDefaultConfig(e={}){this.config=Object.assign({},Ce.defaultConfig),typeof e=="string"?this.config.method=e:Object.assign(this.config,e)}generateConfig(e={}){var t=Object.assign({},this.config);return typeof e=="string"?t.method=e:Object.assign(t,e),t}setUrl(e){this.url=e}getUrl(){return this.url}sendRequest(e,t,i){return this.table.options.ajaxRequesting.call(this.table,e,t)!==!1?this.loaderPromise(e,i,t).then(a=>(this.table.options.ajaxResponse&&(a=this.table.options.ajaxResponse.call(this.table,e,t,a)),a)):Promise.reject()}};E(Ce,"moduleName","ajax"),E(Ce,"defaultConfig",GE),E(Ce,"defaultURLGenerator",BC),E(Ce,"defaultLoaderPromise",ZE),E(Ce,"contentTypeFormatters",XE);let m9=Ce;var KE={replace:function(o){return this.table.setData(o)},update:function(o){return this.table.updateOrAddData(o)},insert:function(o){return this.table.addData(o)}},JE={table:function(o){var e=[],t=!0,i=this.table.columnManager.columns,a=[],n=[];return o=o.split(`
2
2
  `),o.forEach(function(r){e.push(r.split(" "))}),e.length&&!(e.length===1&&e[0].length<2)?(e[0].forEach(function(r){var l=i.find(function(h){return r&&h.definition.title&&r.trim()&&h.definition.title.trim()===r.trim()});l?a.push(l):t=!1}),t||(t=!0,a=[],e[0].forEach(function(r){var l=i.find(function(h){return r&&h.field&&r.trim()&&h.field.trim()===r.trim()});l?a.push(l):t=!1}),t||(a=this.table.columnManager.columnsByIndex)),t&&e.shift(),e.forEach(function(r){var l={};r.forEach(function(h,d){a[d]&&(l[a[d].field]=h)}),n.push(l)}),n):!1}},QE={copyToClipboard:["ctrl + 67","meta + 67"]},eS={copyToClipboard:function(o){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},tS={keybindings:{bindings:QE,actions:eS}};let iS=(xe=class extends q{constructor(e){super(e),this.mode=!0,this.pasteParser=function(){},this.pasteAction=function(){},this.customSelection=!1,this.rowRange=!1,this.blocked=!0,this.registerTableOption("clipboard",!1),this.registerTableOption("clipboardCopyStyled",!0),this.registerTableOption("clipboardCopyConfig",!1),this.registerTableOption("clipboardCopyFormatter",!1),this.registerTableOption("clipboardCopyRowRange","active"),this.registerTableOption("clipboardPasteParser","table"),this.registerTableOption("clipboardPasteAction","insert"),this.registerColumnOption("clipboard"),this.registerColumnOption("titleClipboard")}initialize(){this.mode=this.table.options.clipboard,this.rowRange=this.table.options.clipboardCopyRowRange,(this.mode===!0||this.mode==="copy")&&this.table.element.addEventListener("copy",e=>{var t,i,a;this.blocked||(e.preventDefault(),this.customSelection?(t=this.customSelection,this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t))):(a=this.table.modules.export.generateExportList(this.table.options.clipboardCopyConfig,this.table.options.clipboardCopyStyled,this.rowRange,"clipboard"),i=this.table.modules.export.generateHTMLTable(a),t=i?this.generatePlainContent(a):"",this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t),i=this.table.options.clipboardCopyFormatter("html",i))),window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",t):e.clipboardData&&e.clipboardData.setData?(e.clipboardData.setData("text/plain",t),i&&e.clipboardData.setData("text/html",i)):e.originalEvent&&e.originalEvent.clipboardData.setData&&(e.originalEvent.clipboardData.setData("text/plain",t),i&&e.originalEvent.clipboardData.setData("text/html",i)),this.dispatchExternal("clipboardCopied",t,i),this.reset())}),(this.mode===!0||this.mode==="paste")&&this.table.element.addEventListener("paste",e=>{this.paste(e)}),this.setPasteParser(this.table.options.clipboardPasteParser),this.setPasteAction(this.table.options.clipboardPasteAction),this.registerTableFunction("copyToClipboard",this.copy.bind(this))}reset(){this.blocked=!0,this.customSelection=!1}generatePlainContent(e){var t=[];return e.forEach(i=>{var a=[];i.columns.forEach(n=>{var r="";if(n)if(i.type==="group"&&(n.value=n.component.getKey()),n.value===null)r="";else switch(typeof n.value){case"object":r=JSON.stringify(n.value);break;case"undefined":r="";break;default:r=n.value}a.push(r)}),t.push(a.join(" "))}),t.join(`
3
- `)}copy(e,t){var i,a;this.blocked=!1,this.customSelection=!1,(this.mode===!0||this.mode==="copy")&&(this.rowRange=e||this.table.options.clipboardCopyRowRange,typeof window.getSelection<"u"&&typeof document.createRange<"u"?(e=document.createRange(),e.selectNodeContents(this.table.element),i=window.getSelection(),i.toString()&&t&&(this.customSelection=i.toString()),i.removeAllRanges(),i.addRange(e)):typeof document.selection<"u"&&typeof document.body.createTextRange<"u"&&(a=document.body.createTextRange(),a.moveToElementText(this.table.element),a.select()),document.execCommand("copy"),i&&i.removeAllRanges())}setPasteAction(e){switch(typeof e){case"string":this.pasteAction=xe.pasteActions[e],this.pasteAction||console.warn("Clipboard Error - No such paste action found:",e);break;case"function":this.pasteAction=e;break}}setPasteParser(e){switch(typeof e){case"string":this.pasteParser=xe.pasteParsers[e],this.pasteParser||console.warn("Clipboard Error - No such paste parser found:",e);break;case"function":this.pasteParser=e;break}}paste(e){var t,i,a;this.checkPasteOrigin(e)&&(t=this.getPasteData(e),i=this.pasteParser.call(this,t),i?(e.preventDefault(),this.table.modExists("mutator")&&(i=this.mutateData(i)),a=this.pasteAction.call(this,i),this.dispatchExternal("clipboardPasted",t,i,a)):this.dispatchExternal("clipboardPasteError",t))}mutateData(e){var t=[];return Array.isArray(e)?e.forEach(i=>{t.push(this.table.modules.mutator.transformRow(i,"clipboard"))}):t=e,t}checkPasteOrigin(e){var t=!0,i=this.confirm("clipboard-paste",[e]);return(i||!["DIV","SPAN"].includes(e.target.tagName))&&(t=!1),t}getPasteData(e){var t;return window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):e.clipboardData&&e.clipboardData.getData?t=e.clipboardData.getData("text/plain"):e.originalEvent&&e.originalEvent.clipboardData.getData&&(t=e.originalEvent.clipboardData.getData("text/plain")),t}},E(xe,"moduleName","clipboard"),E(xe,"moduleExtensions",tS),E(xe,"pasteActions",KE),E(xe,"pasteParsers",JE),xe);class aS{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._row.table.componentFunctionBinder.handle("row",t._row,i)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getTable(){return this._row.table}getCells(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e}getCell(e){var t=this._row.getCell(e);return t?t.getComponent():!1}_getSelf(){return this._row}}class FC{constructor(e){return this._cell=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._cell.table.componentFunctionBinder.handle("cell",t._cell,i)}})}getValue(){return this._cell.getValue()}getOldValue(){return this._cell.getOldValue()}getInitialValue(){return this._cell.initialValue}getElement(){return this._cell.getElement()}getRow(){return this._cell.row.getComponent()}getData(e){return this._cell.row.getData(e)}getType(){return"cell"}getField(){return this._cell.column.getField()}getColumn(){return this._cell.column.getComponent()}setValue(e,t){typeof t>"u"&&(t=!0),this._cell.setValue(e,t)}restoreOldValue(){this._cell.setValueActual(this._cell.getOldValue())}restoreInitialValue(){this._cell.setValueActual(this._cell.initialValue)}checkHeight(){this._cell.checkHeight()}getTable(){return this._cell.table}_getSelf(){return this._cell}}class un extends te{constructor(e,t){super(e.table),this.table=e.table,this.column=e,this.row=t,this.element=null,this.value=null,this.initialValue,this.oldValue=null,this.modules={},this.height=null,this.width=null,this.minWidth=null,this.component=null,this.loaded=!1,this.build()}build(){this.generateElement(),this.setWidth(),this._configureCell(),this.setValueActual(this.column.getFieldValue(this.row.data)),this.initialValue=this.value}generateElement(){this.element=document.createElement("div"),this.element.className="tabulator-cell",this.element.setAttribute("role","gridcell"),this.column.isRowHeader&&this.element.classList.add("tabulator-row-header")}_configureCell(){var e=this.element,t=this.column.getField(),i={top:"flex-start",bottom:"flex-end",middle:"center"},a={left:"flex-start",right:"flex-end",center:"center"};if(e.style.textAlign=this.column.hozAlign,this.column.vertAlign&&(e.style.display="inline-flex",e.style.alignItems=i[this.column.vertAlign]||"",this.column.hozAlign&&(e.style.justifyContent=a[this.column.hozAlign]||"")),t&&e.setAttribute("tabulator-field",t),this.column.definition.cssClass){var n=this.column.definition.cssClass.split(" ");n.forEach(r=>{e.classList.add(r)})}this.dispatch("cell-init",this),this.column.visible||this.hide()}_generateContents(){var e;switch(e=this.chain("cell-format",this,null,()=>this.element.innerHTML=this.value),typeof e){case"object":if(e instanceof Node){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.appendChild(e)}else this.element.innerHTML="",e!=null&&console.warn("Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",e);break;case"undefined":this.element.innerHTML="";break;default:this.element.innerHTML=e}}cellRendered(){this.dispatch("cell-rendered",this)}getElement(e){return this.loaded||(this.loaded=!0,e||this.layoutElement()),this.element}getValue(){return this.value}getOldValue(){return this.oldValue}setValue(e,t,i){var a=this.setValueProcessData(e,t,i);a&&(this.dispatch("cell-value-updated",this),this.cellRendered(),this.column.definition.cellEdited&&this.column.definition.cellEdited.call(this.table,this.getComponent()),this.dispatchExternal("cellEdited",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()))}setValueProcessData(e,t,i){var a=!1;return(this.value!==e||i)&&(a=!0,t&&(e=this.chain("cell-value-changing",[this,e],null,e))),this.setValueActual(e),a&&this.dispatch("cell-value-changed",this),a}setValueActual(e){this.oldValue=this.value,this.value=e,this.dispatch("cell-value-save-before",this),this.column.setFieldValue(this.row.data,e),this.dispatch("cell-value-save-after",this),this.loaded&&this.layoutElement()}layoutElement(){this._generateContents(),this.dispatch("cell-layout",this)}setWidth(){this.width=this.column.width,this.element.style.width=this.column.widthStyled}clearWidth(){this.width="",this.element.style.width=""}getWidth(){return this.width||this.element.offsetWidth}setMinWidth(){this.minWidth=this.column.minWidth,this.element.style.minWidth=this.column.minWidthStyled}setMaxWidth(){this.maxWidth=this.column.maxWidth,this.element.style.maxWidth=this.column.maxWidthStyled}checkHeight(){this.row.reinitializeHeight()}clearHeight(){this.element.style.height="",this.height=null,this.dispatch("cell-height",this,"")}setHeight(){this.height=this.row.height,this.element.style.height=this.row.heightStyled,this.dispatch("cell-height",this,this.row.heightStyled)}getHeight(){return this.height||this.element.offsetHeight}show(){this.element.style.display=this.column.vertAlign?"inline-flex":""}hide(){this.element.style.display="none"}delete(){this.dispatch("cell-delete",this),!this.table.rowManager.redrawBlock&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.column.deleteCell(this),this.row.deleteCell(this),this.calcs={}}getIndex(){return this.row.getCellIndex(this)}getComponent(){return this.component||(this.component=new FC(this)),this.component}}class OC{constructor(e){return this._column=e,this.type="ColumnComponent",new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._column.table.componentFunctionBinder.handle("column",t._column,i)}})}getElement(){return this._column.getElement()}getDefinition(){return this._column.getDefinition()}getField(){return this._column.getField()}getTitleDownload(){return this._column.getTitleDownload()}getCells(){var e=[];return this._column.cells.forEach(function(t){e.push(t.getComponent())}),e}isVisible(){return this._column.visible}show(){this._column.isGroup?this._column.columns.forEach(function(e){e.show()}):this._column.show()}hide(){this._column.isGroup?this._column.columns.forEach(function(e){e.hide()}):this._column.hide()}toggle(){this._column.visible?this.hide():this.show()}delete(){return this._column.delete()}getSubColumns(){var e=[];return this._column.columns.length&&this._column.columns.forEach(function(t){e.push(t.getComponent())}),e}getParentColumn(){return this._column.getParentComponent()}_getSelf(){return this._column}scrollTo(e,t){return this._column.table.columnManager.scrollToColumn(this._column,e,t)}getTable(){return this._column.table}move(e,t){var i=this._column.table.columnManager.findColumn(e);i?this._column.table.columnManager.moveColumn(this._column,i,t):console.warn("Move Error - No matching column found:",i)}getNextColumn(){var e=this._column.nextColumn();return e?e.getComponent():!1}getPrevColumn(){var e=this._column.prevColumn();return e?e.getComponent():!1}updateDefinition(e){return this._column.updateDefinition(e)}getWidth(){return this._column.getWidth()}setWidth(e){var t;return e===!0?t=this._column.reinitializeWidth(!0):t=this._column.setWidth(e),this._column.table.columnManager.rerenderColumns(!0),t}}var jC={title:void 0,field:void 0,columns:void 0,visible:void 0,hozAlign:void 0,vertAlign:void 0,width:void 0,minWidth:40,maxWidth:void 0,maxInitialWidth:void 0,cssClass:void 0,variableHeight:void 0,headerVertical:void 0,headerHozAlign:void 0,headerWordWrap:!1,editableTitle:void 0};const Uo=class Uo extends te{constructor(e,t,i){super(t.table),this.definition=e,this.parent=t,this.type="column",this.columns=[],this.cells=[],this.isGroup=!1,this.isRowHeader=i,this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleDownload=null,this.titleFormatterRendered=!1,this.mapDefinitions(),this.setField(this.definition.field),this.modules={},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.maxInitialWidth=null,this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this.definition.columns?(this.isGroup=!0,this.definition.columns.forEach((a,n)=>{var r=new Uo(a,this);this.attachColumn(r)}),this.checkColumnVisibility()):t.registerColumnField(this),this._initialize()}createElement(){var e=document.createElement("div");switch(e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),this.isRowHeader&&e.classList.add("tabulator-row-header"),this.table.options.columnHeaderVertAlign){case"middle":e.style.justifyContent="center";break;case"bottom":e.style.justifyContent="flex-end";break}return e}createGroupElement(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e}mapDefinitions(){var e=this.table.options.columnDefaults;if(e)for(let t in e)typeof this.definition[t]>"u"&&(this.definition[t]=e[t]);this.definition=this.table.columnManager.optionsList.generate(Uo.defaultOptionList,this.definition)}checkDefinition(){Object.keys(this.definition).forEach(e=>{Uo.defaultOptionList.indexOf(e)===-1&&console.warn("Invalid column definition option in '"+(this.field||this.definition.title)+"' column:",e)})}setField(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData}registerColumnPosition(e){this.parent.registerColumnPosition(e)}registerColumnField(e){this.parent.registerColumnField(e)}reRegisterPosition(){this.isGroup?this.columns.forEach(function(e){e.reRegisterPosition()}):this.registerColumnPosition(this)}_initialize(){for(var e=this.definition;this.element.firstChild;)this.element.removeChild(this.element.firstChild);e.headerVertical&&(this.element.classList.add("tabulator-col-vertical"),e.headerVertical==="flip"&&this.element.classList.add("tabulator-col-vertical-flip")),this.contentElement=this._buildColumnHeaderContent(),this.element.appendChild(this.contentElement),this.isGroup?this._buildGroupHeader():this._buildColumnHeader(),this.dispatch("column-init",this)}_buildColumnHeader(){var e=this.definition;if(this.dispatch("column-layout",this),typeof e.visible<"u"&&(e.visible?this.show(!0):this.hide(!0)),e.cssClass){var t=e.cssClass.split(" ");t.forEach(i=>{this.element.classList.add(i)})}e.field&&this.element.setAttribute("tabulator-field",e.field),this.setMinWidth(parseInt(e.minWidth)),e.maxInitialWidth&&(this.maxInitialWidth=parseInt(e.maxInitialWidth)),e.maxWidth&&this.setMaxWidth(parseInt(e.maxWidth)),this.reinitializeWidth(),this.hozAlign=this.definition.hozAlign,this.vertAlign=this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign}_buildColumnHeaderContent(){var e=document.createElement("div");return e.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e}_buildColumnHeaderTitle(){var e=this.definition,t=document.createElement("div");if(t.classList.add("tabulator-col-title"),e.headerWordWrap&&t.classList.add("tabulator-col-title-wrap"),e.editableTitle){var i=document.createElement("input");i.classList.add("tabulator-title-editor"),i.addEventListener("click",a=>{a.stopPropagation(),i.focus()}),i.addEventListener("mousedown",a=>{a.stopPropagation()}),i.addEventListener("change",()=>{e.title=i.value,this.dispatchExternal("columnTitleChanged",this.getComponent())}),t.appendChild(i),e.field?this.langBind("columns|"+e.field,a=>{i.value=a||e.title||"&nbsp;"}):i.value=e.title||"&nbsp;"}else e.field?this.langBind("columns|"+e.field,a=>{this._formatColumnHeaderTitle(t,a||e.title||"&nbsp;")}):this._formatColumnHeaderTitle(t,e.title||"&nbsp;");return t}_formatColumnHeaderTitle(e,t){var i=this.chain("column-format",[this,t,e],null,()=>t);switch(typeof i){case"object":i instanceof Node?e.appendChild(i):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",i));break;case"undefined":e.innerHTML="";break;default:e.innerHTML=i}}_buildGroupHeader(){if(this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass){var e=this.definition.cssClass.split(" ");e.forEach(t=>{this.element.classList.add(t)})}this.titleElement.style.textAlign=this.definition.headerHozAlign,this.element.appendChild(this.groupElement)}_getFlatData(e){return e[this.field]}_getNestedData(e){var t=e,i=this.fieldStructure,a=i.length,n;for(let r=0;r<a&&(t=t[i[r]],n=t,!!t);r++);return n}_setFlatData(e,t){this.field&&(e[this.field]=t)}_setNestedData(e,t){var i=e,a=this.fieldStructure,n=a.length;for(let r=0;r<n;r++)if(r==n-1)i[a[r]]=t;else{if(!i[a[r]])if(typeof t<"u")i[a[r]]={};else break;i=i[a[r]]}}attachColumn(e){this.groupElement?(this.columns.push(e),this.groupElement.appendChild(e.getElement()),e.columnRendered()):console.warn("Column Warning - Column being attached to another column instead of column group")}verticalAlign(e,t){var i=this.parent.isGroup?this.parent.getGroupElement().clientHeight:t||this.parent.getHeadersElement().clientHeight;this.element.style.height=i+"px",this.dispatch("column-height",this,this.element.style.height),this.isGroup&&(this.groupElement.style.minHeight=i-this.contentElement.offsetHeight+"px"),this.columns.forEach(function(a){a.verticalAlign(e)})}clearVerticalAlign(){this.element.style.paddingTop="",this.element.style.height="",this.element.style.minHeight="",this.groupElement.style.minHeight="",this.columns.forEach(function(e){e.clearVerticalAlign()}),this.dispatch("column-height",this,"")}getElement(){return this.element}getGroupElement(){return this.groupElement}getField(){return this.field}getTitleDownload(){return this.titleDownload}getFirstColumn(){return this.isGroup?this.columns.length?this.columns[0].getFirstColumn():!1:this}getLastColumn(){return this.isGroup?this.columns.length?this.columns[this.columns.length-1].getLastColumn():!1:this}getColumns(e){var t=[];return e?this.columns.forEach(i=>{t.push(i),t=t.concat(i.getColumns(!0))}):t=this.columns,t}getCells(){return this.cells}getTopColumn(){return this.parent.isGroup?this.parent.getTopColumn():this}getDefinition(e){var t=[];return this.isGroup&&e&&(this.columns.forEach(function(i){t.push(i.getDefinition(!0))}),this.definition.columns=t),this.definition}checkColumnVisibility(){var e=!1;this.columns.forEach(function(t){t.visible&&(e=!0)}),e?(this.show(),this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1)):this.hide()}show(e,t){this.visible||(this.visible=!0,this.element.style.display="",this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(i){i.show()}),!this.isGroup&&this.width===null&&this.reinitializeWidth(),this.table.columnManager.verticalAlignHeaders(),this.dispatch("column-show",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!0),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}hide(e,t){this.visible&&(this.visible=!1,this.element.style.display="none",this.table.columnManager.verticalAlignHeaders(),this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(i){i.hide()}),this.dispatch("column-hide",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}matchChildWidths(){var e=0;this.contentElement&&this.columns.length&&(this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}),this.contentElement.style.maxWidth=e-1+"px",this.table.initialized&&(this.element.style.width=e+"px"),this.parent.isGroup&&this.parent.matchChildWidths())}removeChild(e){var t=this.columns.indexOf(e);t>-1&&this.columns.splice(t,1),this.columns.length||this.delete()}setWidth(e){this.widthFixed=!0,this.setWidthActual(e)}setWidthActual(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWidth,e)),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach(function(t){t.setWidth()}),this.parent.isGroup&&this.parent.matchChildWidths(),this.dispatch("column-width",this),this.subscribedExternal("columnWidth")&&this.dispatchExternal("columnWidth",this.getComponent())}checkCellHeights(){var e=[];this.cells.forEach(function(t){t.row.heightInitialized&&(t.row.getElement().offsetParent!==null?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)}),e.forEach(function(t){t.calcHeight()}),e.forEach(function(t){t.setCellHeight()})}getWidth(){var e=0;return this.isGroup?this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}):e=this.width,e}getLeftOffset(){var e=this.element.offsetLeft;return this.parent.isGroup&&(e+=this.parent.getLeftOffset()),e}getHeight(){return Math.ceil(this.element.getBoundingClientRect().height)}setMinWidth(e){this.maxWidth&&e>this.maxWidth&&(e=this.maxWidth,console.warn("the minWidth ("+e+"px) for column '"+this.field+"' cannot be bigger that its maxWidth ("+this.maxWidthStyled+")")),this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach(function(t){t.setMinWidth()})}setMaxWidth(e){this.minWidth&&e<this.minWidth&&(e=this.minWidth,console.warn("the maxWidth ("+e+"px) for column '"+this.field+"' cannot be smaller that its minWidth ("+this.minWidthStyled+")")),this.maxWidth=e,this.maxWidthStyled=e?e+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach(function(t){t.setMaxWidth()})}delete(){return new Promise((e,t)=>{this.isGroup&&this.columns.forEach(function(a){a.delete()}),this.dispatch("column-delete",this);var i=this.cells.length;for(let a=0;a<i;a++)this.cells[0].delete();this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.contentElement=!1,this.titleElement=!1,this.groupElement=!1,this.parent.isGroup&&this.parent.removeChild(this),this.table.columnManager.deregisterColumn(this),this.table.columnManager.rerenderColumns(!0),this.dispatch("column-deleted",this),e()})}columnRendered(){this.titleFormatterRendered&&this.titleFormatterRendered(),this.dispatch("column-rendered",this)}generateCell(e){var t=new un(this,e);return this.cells.push(t),t}nextColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1?this._nextVisibleColumn(e+1):!1}_nextVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._nextVisibleColumn(e+1)}prevColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1?this._prevVisibleColumn(e-1):!1}_prevVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._prevVisibleColumn(e-1)}reinitializeWidth(e){this.widthFixed=!1,typeof this.definition.width<"u"&&!e&&this.setWidth(this.definition.width),this.dispatch("column-width-fit-before",this),this.fitToData(e),this.dispatch("column-width-fit-after",this)}fitToData(e){if(!this.isGroup){this.widthFixed||(this.element.style.width="",this.cells.forEach(a=>{a.clearWidth()}));var t=this.element.offsetWidth;if((!this.width||!this.widthFixed)&&(this.cells.forEach(a=>{var n=a.getWidth();n>t&&(t=n)}),t)){var i=t+1;e?this.setWidth(i):(this.maxInitialWidth&&!e&&(i=Math.min(i,this.maxInitialWidth)),this.setWidthActual(i))}}}updateDefinition(e){var t;return this.isGroup||this.parent.isGroup?(console.error("Column Update Error - The updateDefinition function is only available on ungrouped columns"),Promise.reject("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(t=Object.assign({},this.getDefinition()),t=Object.assign(t,e),this.table.columnManager.addColumn(t,!1,this).then(i=>(t.field==this.field&&(this.field=!1),this.delete().then(()=>i.getComponent()))))}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}getComponent(){return this.component||(this.component=new OC(this)),this.component}getPosition(){return this.table.columnManager.getVisibleColumnsByIndex().indexOf(this)+1}getParentComponent(){return this.parent instanceof Uo?this.parent.getComponent():!1}};E(Uo,"defaultOptionList",jC);let tt=Uo;class Rn{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._row.table.componentFunctionBinder.handle("row",t._row,i)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getCells(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e}getCell(e){var t=this._row.getCell(e);return t?t.getComponent():!1}getIndex(){return this._row.getData("data")[this._row.table.options.index]}getPosition(){return this._row.getPosition()}watchPosition(e){return this._row.watchPosition(e)}delete(){return this._row.delete()}scrollTo(e,t){return this._row.table.rowManager.scrollToRow(this._row,e,t)}move(e,t){this._row.moveToRow(e,t)}update(e){return this._row.updateData(e)}normalizeHeight(){this._row.normalizeHeight(!0)}_getSelf(){return this._row}reformat(){return this._row.reinitialize()}getTable(){return this._row.table}getNextRow(){var e=this._row.nextRow();return e&&e.getComponent()}getPrevRow(){var e=this._row.prevRow();return e&&e.getComponent()}}class ae extends te{constructor(e,t,i="row"){super(t.table),this.parent=t,this.data={},this.type=i,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.position=0,this.positionWatchers=[],this.component=null,this.created=!1,this.setData(e)}create(){this.created||(this.created=!0,this.generateElement())}createElement(){var e=document.createElement("div");e.classList.add("tabulator-row"),e.setAttribute("role","row"),this.element=e}getElement(){return this.create(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}generateElement(){this.createElement(),this.dispatch("row-init",this)}generateCells(){this.cells=this.table.columnManager.generateCells(this)}initialize(e,t){if(this.create(),!this.initialized||e){for(this.deleteCells();this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.dispatch("row-layout-before",this),this.generateCells(),this.initialized=!0,this.table.columnManager.renderer.renderRowCells(this,t),e&&this.normalizeHeight(),this.dispatch("row-layout",this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.dispatch("row-layout-after",this)}else this.table.columnManager.renderer.rerenderRowCells(this,t)}rendered(){this.cells.forEach(e=>{e.cellRendered()})}reinitializeHeight(){this.heightInitialized=!1,this.element&&this.element.offsetParent!==null&&this.normalizeHeight(!0)}deinitialize(){this.initialized=!1}deinitializeHeight(){this.heightInitialized=!1}reinitialize(e){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&this.element.offsetParent!==null&&this.initialize(!0),this.dispatch("row-relayout",this)}calcHeight(e){var t=0,i=0;this.table.options.rowHeight?this.height=this.table.options.rowHeight:(i=this.calcMinHeight(),t=this.calcMaxHeight(),e?this.height=Math.max(t,i):this.height=this.manualHeight?this.height:Math.max(t,i)),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight}calcMinHeight(){return this.table.options.resizableRows?this.element.clientHeight:0}calcMaxHeight(){var e=0;return this.cells.forEach(function(t){var i=t.getHeight();i>e&&(e=i)}),e}setCellHeight(){this.cells.forEach(function(e){e.setHeight()}),this.heightInitialized=!0}clearCellHeight(){this.cells.forEach(function(e){e.clearHeight()})}normalizeHeight(e){e&&!this.table.options.rowHeight&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()}setHeight(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight,this.subscribedExternal("rowHeight")&&this.dispatchExternal("rowHeight",this.getComponent()))}getHeight(){return this.outerHeight}getWidth(){return this.element.offsetWidth}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}setData(e){this.data=this.chain("row-data-init-before",[this,e],void 0,e),this.dispatch("row-data-init-after",this)}updateData(e){var t=this.element&&G.elVisible(this.element),i={},a;return new Promise((n,r)=>{typeof e=="string"&&(e=JSON.parse(e)),this.dispatch("row-data-save-before",this),this.subscribed("row-data-changing")&&(i=Object.assign(i,this.data),i=Object.assign(i,e)),a=this.chain("row-data-changing",[this,i,e],null,e);for(let l in a)this.data[l]=a[l];this.dispatch("row-data-save-after",this);for(let l in e)this.table.columnManager.getColumnsByFieldRoot(l).forEach(d=>{let u=this.getCell(d.getField());if(u){let p=d.getFieldValue(a);u.getValue()!==p&&(u.setValueProcessData(p),t&&u.cellRendered())}});t?(this.normalizeHeight(!0),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent())):(this.initialized=!1,this.height=0,this.heightStyled=""),this.dispatch("row-data-changed",this,t,e),this.dispatchExternal("rowUpdated",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),n()})}getData(e){return e?this.chain("row-data-retrieve",[this,e],null,this.data):this.data}getCell(e){var t=!1;return e=this.table.columnManager.findColumn(e),!this.initialized&&this.cells.length===0&&this.generateCells(),t=this.cells.find(function(i){return i.column===e}),t}getCellIndex(e){return this.cells.findIndex(function(t){return t===e})}findCell(e){return this.cells.find(t=>t.element===e)}getCells(){return!this.initialized&&this.cells.length===0&&this.generateCells(),this.cells}nextRow(){var e=this.table.rowManager.nextDisplayRow(this,!0);return e||!1}prevRow(){var e=this.table.rowManager.prevDisplayRow(this,!0);return e||!1}moveToRow(e,t){var i=this.table.rowManager.findRow(e);i?(this.table.rowManager.moveRowActual(this,i,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)}delete(){return this.dispatch("row-delete",this),this.deleteActual(),Promise.resolve()}deleteActual(e){this.detachModules(),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.dispatch("row-deleted",this)}detachModules(){this.dispatch("row-deleting",this)}deleteCells(){var e=this.cells.length;for(let t=0;t<e;t++)this.cells[0].delete()}wipe(){if(this.detachModules(),this.deleteCells(),this.element){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.parentNode&&this.element.parentNode.removeChild(this.element)}this.element=!1,this.modules={}}isDisplayed(){return this.table.rowManager.getDisplayRows().includes(this)}getPosition(){return this.isDisplayed()?this.position:!1}setPosition(e){e!=this.position&&(this.position=e,this.positionWatchers.forEach(t=>{t(this.position)}))}watchPosition(e){this.positionWatchers.push(e),e(this.position)}getGroup(){return this.modules.group||!1}getComponent(){return this.component||(this.component=new Rn(this)),this.component}}var oS={avg:function(o,e,t){var i=0,a=typeof t.precision<"u"?t.precision:2;return o.length&&(i=o.reduce(function(n,r){return Number(n)+Number(r)}),i=i/o.length,i=a!==!1?i.toFixed(a):i),parseFloat(i).toString()},max:function(o,e,t){var i=null,a=typeof t.precision<"u"?t.precision:!1;return o.forEach(function(n){n=Number(n),(n>i||i===null)&&(i=n)}),i!==null?a!==!1?i.toFixed(a):i:""},min:function(o,e,t){var i=null,a=typeof t.precision<"u"?t.precision:!1;return o.forEach(function(n){n=Number(n),(n<i||i===null)&&(i=n)}),i!==null?a!==!1?i.toFixed(a):i:""},sum:function(o,e,t){var i=0,a=typeof t.precision<"u"?t.precision:!1;return o.length&&o.forEach(function(n){n=Number(n),i+=isNaN(n)?0:Number(n)}),a!==!1?i.toFixed(a):i},concat:function(o,e,t){var i=0;return o.length&&(i=o.reduce(function(a,n){return String(a)+String(n)})),i},count:function(o,e,t){var i=0;return o.length&&o.forEach(function(a){a&&i++}),i},unique:function(o,e,t){var i=o.filter((a,n)=>(o||a===0)&&o.indexOf(a)===n);return i.length}};const Xe=class Xe extends q{constructor(e){super(e),this.topCalcs=[],this.botCalcs=[],this.genColumn=!1,this.topElement=this.createElement(),this.botElement=this.createElement(),this.topRow=!1,this.botRow=!1,this.topInitialized=!1,this.botInitialized=!1,this.blocked=!1,this.recalcAfterBlock=!1,this.registerTableOption("columnCalcs",!0),this.registerColumnOption("topCalc"),this.registerColumnOption("topCalcParams"),this.registerColumnOption("topCalcFormatter"),this.registerColumnOption("topCalcFormatterParams"),this.registerColumnOption("bottomCalc"),this.registerColumnOption("bottomCalcParams"),this.registerColumnOption("bottomCalcFormatter"),this.registerColumnOption("bottomCalcFormatterParams")}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-calcs-holder"),e}initialize(){this.genColumn=new tt({field:"value"},this),this.subscribe("cell-value-changed",this.cellValueChanged.bind(this)),this.subscribe("column-init",this.initializeColumnCheck.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("column-moved",this.recalcActiveRows.bind(this)),this.subscribe("column-add",this.recalcActiveRows.bind(this)),this.subscribe("data-refreshed",this.recalcActiveRowsRefresh.bind(this)),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this)),this.subscribe("redraw-blocked",this.blockRedraw.bind(this)),this.subscribe("redraw-restored",this.restoreRedraw.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this)),this.registerTableFunction("getCalcResults",this.getResults.bind(this)),this.registerTableFunction("recalc",this.userRecalc.bind(this)),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}tableRedraw(e){this.recalc(this.table.rowManager.activeRows),e&&this.redraw()}blockRedraw(){this.blocked=!0,this.recalcAfterBlock=!1}restoreRedraw(){this.blocked=!1,this.recalcAfterBlock&&(this.recalcAfterBlock=!1,this.recalcActiveRowsRefresh())}userRecalc(){this.recalc(this.table.rowManager.activeRows)}blockCheck(){return this.blocked&&(this.recalcAfterBlock=!0),this.blocked}visibleRows(e,t){return this.topRow&&t.unshift(this.topRow),this.botRow&&t.push(this.botRow),t}rowsUpdated(e){this.table.options.groupBy?this.recalcRowGroup(e):this.recalcActiveRows()}recalcActiveRowsRefresh(){this.table.options.groupBy&&this.table.options.dataTreeStartExpanded&&this.table.options.dataTree?this.recalcAll():this.recalcActiveRows()}recalcActiveRows(){this.recalc(this.table.rowManager.activeRows)}cellValueChanged(e){(e.column.definition.topCalc||e.column.definition.bottomCalc)&&(this.table.options.groupBy?((this.table.options.columnCalcs=="table"||this.table.options.columnCalcs=="both")&&this.recalcActiveRows(),this.table.options.columnCalcs!="table"&&this.recalcRowGroup(e.row)):this.recalcActiveRows())}initializeColumnCheck(e){(e.definition.topCalc||e.definition.bottomCalc)&&this.initializeColumn(e)}initializeColumn(e){var t=e.definition,i={topCalcParams:t.topCalcParams||{},botCalcParams:t.bottomCalcParams||{}};if(t.topCalc){switch(typeof t.topCalc){case"string":Xe.calculations[t.topCalc]?i.topCalc=Xe.calculations[t.topCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.topCalc);break;case"function":i.topCalc=t.topCalc;break}i.topCalc&&(e.modules.columnCalcs=i,this.topCalcs.push(e),this.table.options.columnCalcs!="group"&&this.initializeTopRow())}if(t.bottomCalc){switch(typeof t.bottomCalc){case"string":Xe.calculations[t.bottomCalc]?i.botCalc=Xe.calculations[t.bottomCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.bottomCalc);break;case"function":i.botCalc=t.bottomCalc;break}i.botCalc&&(e.modules.columnCalcs=i,this.botCalcs.push(e),this.table.options.columnCalcs!="group"&&this.initializeBottomRow())}}registerColumnField(){}removeCalcs(){var e=!1;this.topInitialized&&(this.topInitialized=!1,this.topElement.parentNode.removeChild(this.topElement),e=!0),this.botInitialized&&(this.botInitialized=!1,this.footerRemove(this.botElement),e=!0),e&&this.table.rowManager.adjustTableSize()}reinitializeCalcs(){this.topCalcs.length&&this.initializeTopRow(),this.botCalcs.length&&this.initializeBottomRow()}initializeTopRow(){var e=document.createDocumentFragment();this.topInitialized||(e.appendChild(document.createElement("br")),e.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(e,this.table.columnManager.headersElement.nextSibling),this.topInitialized=!0)}initializeBottomRow(){this.botInitialized||(this.footerPrepend(this.botElement),this.botInitialized=!0)}scrollHorizontal(e){this.botInitialized&&this.botRow&&(this.botElement.scrollLeft=e)}recalc(e){var t,i;if(!this.blockCheck()&&(this.topInitialized||this.botInitialized)){if(t=this.rowsToData(e),this.topInitialized){for(this.topRow&&this.topRow.deleteCells(),i=this.generateRow("top",t),this.topRow=i;this.topElement.firstChild;)this.topElement.removeChild(this.topElement.firstChild);this.topElement.appendChild(i.getElement()),i.initialize(!0)}if(this.botInitialized){for(this.botRow&&this.botRow.deleteCells(),i=this.generateRow("bottom",t),this.botRow=i;this.botElement.firstChild;)this.botElement.removeChild(this.botElement.firstChild);this.botElement.appendChild(i.getElement()),i.initialize(!0)}this.table.rowManager.adjustTableSize(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()}}recalcRowGroup(e){this.recalcGroup(this.table.modules.groupRows.getRowGroup(e))}recalcAll(){if((this.topCalcs.length||this.botCalcs.length)&&(this.table.options.columnCalcs!=="group"&&this.recalcActiveRows(),this.table.options.groupBy&&this.table.options.columnCalcs!=="table")){var e=this.table.modules.groupRows.getChildGroups();e.forEach(t=>{this.recalcGroup(t)})}}recalcGroup(e){var t,i;this.blockCheck()||e&&e.calcs&&(e.calcs.bottom&&(t=this.rowsToData(e.rows),i=this.generateRowData("bottom",t),e.calcs.bottom.updateData(i),e.calcs.bottom.reinitialize()),e.calcs.top&&(t=this.rowsToData(e.rows),i=this.generateRowData("top",t),e.calcs.top.updateData(i),e.calcs.top.reinitialize()))}generateTopRow(e){return this.generateRow("top",this.rowsToData(e))}generateBottomRow(e){return this.generateRow("bottom",this.rowsToData(e))}rowsToData(e){var t=[],i=this.table.options.dataTree&&this.table.options.dataTreeChildColumnCalcs,a=this.table.modules.dataTree;return e.forEach(n=>{var r;t.push(n.getData()),i&&((r=n.modules.dataTree)!=null&&r.open)&&this.rowsToData(a.getFilteredTreeChildren(n)).forEach(l=>{t.push(n)})}),t}generateRow(e,t){var i=this.generateRowData(e,t),a;return this.table.modExists("mutator")&&this.table.modules.mutator.disable(),a=new ae(i,this,"calc"),this.table.modExists("mutator")&&this.table.modules.mutator.enable(),a.getElement().classList.add("tabulator-calcs","tabulator-calcs-"+e),a.component=!1,a.getComponent=()=>(a.component||(a.component=new aS(a)),a.component),a.generateCells=()=>{var n=[];this.table.columnManager.columnsByIndex.forEach(r=>{this.genColumn.setField(r.getField()),this.genColumn.hozAlign=r.hozAlign,r.definition[e+"CalcFormatter"]&&this.table.modExists("format")?this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter(r.definition[e+"CalcFormatter"]),params:r.definition[e+"CalcFormatterParams"]||{}}:this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter("plaintext"),params:{}},this.genColumn.definition.cssClass=r.definition.cssClass;var l=new un(this.genColumn,a);l.getElement(),l.column=r,l.setWidth(),r.cells.push(l),n.push(l),r.visible||l.hide()}),a.cells=n},a}generateRowData(e,t){var i={},a=e=="top"?this.topCalcs:this.botCalcs,n=e=="top"?"topCalc":"botCalc",r,l;return a.forEach(function(h){var d=[];h.modules.columnCalcs&&h.modules.columnCalcs[n]&&(t.forEach(function(u){d.push(h.getFieldValue(u))}),l=n+"Params",r=typeof h.modules.columnCalcs[l]=="function"?h.modules.columnCalcs[l](d,t):h.modules.columnCalcs[l],h.setFieldValue(i,h.modules.columnCalcs[n](d,t,r)))}),i}hasTopCalcs(){return!!this.topCalcs.length}hasBottomCalcs(){return!!this.botCalcs.length}redraw(){this.topRow&&this.topRow.normalizeHeight(!0),this.botRow&&this.botRow.normalizeHeight(!0)}getResults(){var e={},t;return this.table.options.groupBy&&this.table.modExists("groupRows")?(t=this.table.modules.groupRows.getGroups(!0),t.forEach(i=>{e[i.getKey()]=this.getGroupResults(i)})):e={top:this.topRow?this.topRow.getData():{},bottom:this.botRow?this.botRow.getData():{}},e}getGroupResults(e){var t=e._getSelf(),i=e.getSubGroups(),a={},n={};return i.forEach(r=>{a[r.getKey()]=this.getGroupResults(r)}),n={top:t.calcs.top?t.calcs.top.getData():{},bottom:t.calcs.bottom?t.calcs.bottom.getData():{},groups:a},n}adjustForScrollbar(e){this.botRow&&(this.table.rtl?this.botElement.style.paddingLeft=e+"px":this.botElement.style.paddingRight=e+"px")}};E(Xe,"moduleName","columnCalcs"),E(Xe,"calculations",oS);let g9=Xe;class NC extends q{constructor(e){super(e),this.indent=10,this.field="",this.collapseEl=null,this.expandEl=null,this.branchEl=null,this.elementField=!1,this.startOpen=function(){},this.registerTableOption("dataTree",!1),this.registerTableOption("dataTreeFilter",!0),this.registerTableOption("dataTreeSort",!0),this.registerTableOption("dataTreeElementColumn",!1),this.registerTableOption("dataTreeBranchElement",!0),this.registerTableOption("dataTreeChildIndent",9),this.registerTableOption("dataTreeChildField","_children"),this.registerTableOption("dataTreeCollapseElement",!1),this.registerTableOption("dataTreeExpandElement",!1),this.registerTableOption("dataTreeStartExpanded",!1),this.registerTableOption("dataTreeChildColumnCalcs",!1),this.registerTableOption("dataTreeSelectPropagate",!1),this.registerComponentFunction("row","treeCollapse",this.collapseRow.bind(this)),this.registerComponentFunction("row","treeExpand",this.expandRow.bind(this)),this.registerComponentFunction("row","treeToggle",this.toggleRow.bind(this)),this.registerComponentFunction("row","getTreeParent",this.getTreeParent.bind(this)),this.registerComponentFunction("row","getTreeChildren",this.getRowChildren.bind(this)),this.registerComponentFunction("row","addTreeChild",this.addTreeChildRow.bind(this)),this.registerComponentFunction("row","isTreeExpanded",this.isRowExpanded.bind(this))}initialize(){if(this.table.options.dataTree){var e=null,t=this.table.options;switch(this.field=t.dataTreeChildField,this.indent=t.dataTreeChildIndent,this.options("movableRows")&&console.warn("The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"),t.dataTreeBranchElement?t.dataTreeBranchElement===!0?(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch")):typeof t.dataTreeBranchElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeBranchElement,this.branchEl=e.firstChild):this.branchEl=t.dataTreeBranchElement:(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch-empty")),t.dataTreeCollapseElement?typeof t.dataTreeCollapseElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeCollapseElement,this.collapseEl=e.firstChild):this.collapseEl=t.dataTreeCollapseElement:(this.collapseEl=document.createElement("div"),this.collapseEl.classList.add("tabulator-data-tree-control"),this.collapseEl.tabIndex=0,this.collapseEl.innerHTML="<div class='tabulator-data-tree-control-collapse'></div>"),t.dataTreeExpandElement?typeof t.dataTreeExpandElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=t.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="<div class='tabulator-data-tree-control-expand'></div>"),typeof t.dataTreeStartExpanded){case"boolean":this.startOpen=function(i,a){return t.dataTreeStartExpanded};break;case"function":this.startOpen=t.dataTreeStartExpanded;break;default:this.startOpen=function(i,a){return t.dataTreeStartExpanded[a]};break}this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowDelete.bind(this),0),this.subscribe("row-data-changed",this.rowDataChanged.bind(this),10),this.subscribe("cell-value-updated",this.cellValueChanged.bind(this)),this.subscribe("edit-cancelled",this.cellValueChanged.bind(this)),this.subscribe("column-moving-rows",this.columnMoving.bind(this)),this.subscribe("table-built",this.initializeElementField.bind(this)),this.subscribe("table-redrawing",this.tableRedrawing.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),30)}}tableRedrawing(e){var t;e&&(t=this.table.rowManager.getRows(),t.forEach(i=>{this.reinitializeRowChildren(i)}))}initializeElementField(){var e=this.table.columnManager.getFirstVisibleColumn();this.elementField=this.table.options.dataTreeElementColumn||(e?e.field:!1)}getRowChildren(e){return this.getTreeChildren(e,!0)}columnMoving(){var e=[];return this.table.rowManager.rows.forEach(t=>{e=e.concat(this.getTreeChildren(t,!1,!0))}),e}rowDataChanged(e,t,i){this.redrawNeeded(i)&&(this.initializeRow(e),t&&(this.layoutRow(e),this.refreshData(!0)))}cellValueChanged(e){var t=e.column.getField();t===this.elementField&&this.layoutRow(e.row)}initializeRow(e){var t=e.getData()[this.field],i=Array.isArray(t),a=i||!i&&typeof t=="object"&&t!==null;!a&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!a&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.parentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.modules.dataTree?e.modules.dataTree.index:0,open:a?e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0):!1,controlEl:e.modules.dataTree&&a?e.modules.dataTree.controlEl:!1,branchEl:e.modules.dataTree&&a?e.modules.dataTree.branchEl:!1,parent:e.modules.dataTree?e.modules.dataTree.parent:!1,children:a}}reinitializeRowChildren(e){var t=this.getTreeChildren(e,!1,!0);t.forEach(function(i){i.reinitialize(!0)})}layoutRow(e){var t=this.elementField?e.getCell(this.elementField):e.getCells()[0],i=t.getElement(),a=e.modules.dataTree;a.branchEl&&(a.branchEl.parentNode&&a.branchEl.parentNode.removeChild(a.branchEl),a.branchEl=!1),a.controlEl&&(a.controlEl.parentNode&&a.controlEl.parentNode.removeChild(a.controlEl),a.controlEl=!1),this.generateControlElement(e,i),e.getElement().classList.add("tabulator-tree-level-"+a.index),a.index&&(this.branchEl?(a.branchEl=this.branchEl.cloneNode(!0),i.insertBefore(a.branchEl,i.firstChild),this.table.rtl?a.branchEl.style.marginRight=(a.branchEl.offsetWidth+a.branchEl.style.marginLeft)*(a.index-1)+a.index*this.indent+"px":a.branchEl.style.marginLeft=(a.branchEl.offsetWidth+a.branchEl.style.marginRight)*(a.index-1)+a.index*this.indent+"px"):this.table.rtl?i.style.paddingRight=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-right"))+a.index*this.indent+"px":i.style.paddingLeft=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-left"))+a.index*this.indent+"px")}generateControlElement(e,t){var i=e.modules.dataTree,a=i.controlEl;t=t||e.getCells()[0].getElement(),i.children!==!1&&(i.open?(i.controlEl=this.collapseEl.cloneNode(!0),i.controlEl.addEventListener("click",n=>{n.stopPropagation(),this.collapseRow(e)})):(i.controlEl=this.expandEl.cloneNode(!0),i.controlEl.addEventListener("click",n=>{n.stopPropagation(),this.expandRow(e)})),i.controlEl.addEventListener("mousedown",n=>{n.stopPropagation()}),a&&a.parentNode===t?a.parentNode.replaceChild(i.controlEl,a):t.insertBefore(i.controlEl,t.firstChild))}getRows(e){var t=[];return e.forEach((i,a)=>{var n,r;t.push(i),i instanceof ae&&(i.create(),n=i.modules.dataTree,!n.index&&n.children!==!1&&(r=this.getChildren(i,!1,!0),r.forEach(l=>{l.create(),t.push(l)})))}),t}getChildren(e,t,i){var a=e.modules.dataTree,n=[],r=[];return a.children!==!1&&(a.open||t)&&(Array.isArray(a.children)||(a.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?n=this.table.modules.filter.filter(a.children):n=a.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(n,i),n.forEach(l=>{r.push(l);var h=this.getChildren(l,!1,!0);h.forEach(d=>{r.push(d)})})),r}generateChildren(e){var t=[],i=e.getData()[this.field];return Array.isArray(i)||(i=[i]),i.forEach(a=>{var n=new ae(a||{},this.table.rowManager);n.create(),n.modules.dataTree.index=e.modules.dataTree.index+1,n.modules.dataTree.parent=e,n.modules.dataTree.children&&(n.modules.dataTree.open=this.startOpen(n.getComponent(),n.modules.dataTree.index)),t.push(n)}),t}expandRow(e,t){var i=e.modules.dataTree;i.children!==!1&&(i.open=!0,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowExpanded",e.getComponent(),e.modules.dataTree.index))}collapseRow(e){var t=e.modules.dataTree;t.children!==!1&&(t.open=!1,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowCollapsed",e.getComponent(),e.modules.dataTree.index))}toggleRow(e){var t=e.modules.dataTree;t.children!==!1&&(t.open?this.collapseRow(e):this.expandRow(e))}isRowExpanded(e){return e.modules.dataTree.open}getTreeParent(e){return e.modules.dataTree.parent?e.modules.dataTree.parent.getComponent():!1}getTreeParentRoot(e){return e.modules.dataTree&&e.modules.dataTree.parent?this.getTreeParentRoot(e.modules.dataTree.parent):e}getFilteredTreeChildren(e){var t=e.modules.dataTree,i=[],a;return t.children&&(Array.isArray(t.children)||(t.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?a=this.table.modules.filter.filter(t.children):a=t.children,a.forEach(n=>{n instanceof ae&&i.push(n)})),i}rowDeleting(e){var t=e.modules.dataTree;t&&t.children&&Array.isArray(t.children)&&t.children.forEach(i=>{i instanceof ae&&i.wipe()})}rowDelete(e){var t=e.modules.dataTree.parent,i;t&&(i=this.findChildIndex(e,t),i!==!1&&t.data[this.field].splice(i,1),t.data[this.field].length||delete t.data[this.field],this.initializeRow(t),this.layoutRow(t)),this.refreshData(!0)}addTreeChildRow(e,t,i,a){var n=!1;typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.modules.dataTree.index)),typeof a<"u"&&(n=this.findChildIndex(a,e),n!==!1&&e.data[this.field].splice(i?n:n+1,0,t)),n===!1&&(i?e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),this.layoutRow(e),this.refreshData(!0)}findChildIndex(e,t){var i=!1;return typeof e=="object"?e instanceof ae?i=e.data:e instanceof Rn?i=e._getSelf().data:typeof HTMLElement<"u"&&e instanceof HTMLElement?t.modules.dataTree&&(i=t.modules.dataTree.children.find(a=>a instanceof ae?a.element===e:!1),i&&(i=i.data)):e===null&&(i=!1):typeof e>"u"?i=!1:i=t.data[this.field].find(a=>a.data[this.table.options.index]==e),i&&(Array.isArray(t.data[this.field])&&(i=t.data[this.field].indexOf(i)),i==-1&&(i=!1)),i}getTreeChildren(e,t,i){var a=e.modules.dataTree,n=[];return a&&a.children&&(Array.isArray(a.children)||(a.children=this.generateChildren(e)),a.children.forEach(r=>{r instanceof ae&&(n.push(t?r.getComponent():r),i&&this.getTreeChildren(r,t,i).forEach(l=>{n.push(l)}))})),n}getChildField(){return this.field}redrawNeeded(e){return(this.field?typeof e[this.field]<"u":!1)||(this.elementField?typeof e[this.elementField]<"u":!1)}}E(NC,"moduleName","dataTree");function nS(o,e={},t){var i=e.delimiter?e.delimiter:",",a=[],n=[];o.forEach(r=>{var l=[];switch(r.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":r.columns.forEach((h,d)=>{h&&h.depth===1&&(n[d]=typeof h.value>"u"||h.value===null?"":'"'+String(h.value).split('"').join('""')+'"')});break;case"row":r.columns.forEach(h=>{if(h){switch(typeof h.value){case"object":h.value=h.value!==null?JSON.stringify(h.value):"";break;case"undefined":h.value="";break}l.push('"'+String(h.value).split('"').join('""')+'"')}}),a.push(l.join(i));break}}),n.length&&a.unshift(n.join(i)),a=a.join(`
3
+ `)}copy(e,t){var i,a;this.blocked=!1,this.customSelection=!1,(this.mode===!0||this.mode==="copy")&&(this.rowRange=e||this.table.options.clipboardCopyRowRange,typeof window.getSelection<"u"&&typeof document.createRange<"u"?(e=document.createRange(),e.selectNodeContents(this.table.element),i=window.getSelection(),i.toString()&&t&&(this.customSelection=i.toString()),i.removeAllRanges(),i.addRange(e)):typeof document.selection<"u"&&typeof document.body.createTextRange<"u"&&(a=document.body.createTextRange(),a.moveToElementText(this.table.element),a.select()),document.execCommand("copy"),i&&i.removeAllRanges())}setPasteAction(e){switch(typeof e){case"string":this.pasteAction=xe.pasteActions[e],this.pasteAction||console.warn("Clipboard Error - No such paste action found:",e);break;case"function":this.pasteAction=e;break}}setPasteParser(e){switch(typeof e){case"string":this.pasteParser=xe.pasteParsers[e],this.pasteParser||console.warn("Clipboard Error - No such paste parser found:",e);break;case"function":this.pasteParser=e;break}}paste(e){var t,i,a;this.checkPasteOrigin(e)&&(t=this.getPasteData(e),i=this.pasteParser.call(this,t),i?(e.preventDefault(),this.table.modExists("mutator")&&(i=this.mutateData(i)),a=this.pasteAction.call(this,i),this.dispatchExternal("clipboardPasted",t,i,a)):this.dispatchExternal("clipboardPasteError",t))}mutateData(e){var t=[];return Array.isArray(e)?e.forEach(i=>{t.push(this.table.modules.mutator.transformRow(i,"clipboard"))}):t=e,t}checkPasteOrigin(e){var t=!0,i=this.confirm("clipboard-paste",[e]);return(i||!["DIV","SPAN"].includes(e.target.tagName))&&(t=!1),t}getPasteData(e){var t;return window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):e.clipboardData&&e.clipboardData.getData?t=e.clipboardData.getData("text/plain"):e.originalEvent&&e.originalEvent.clipboardData.getData&&(t=e.originalEvent.clipboardData.getData("text/plain")),t}},E(xe,"moduleName","clipboard"),E(xe,"moduleExtensions",tS),E(xe,"pasteActions",KE),E(xe,"pasteParsers",JE),xe);class aS{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._row.table.componentFunctionBinder.handle("row",t._row,i)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getTable(){return this._row.table}getCells(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e}getCell(e){var t=this._row.getCell(e);return t?t.getComponent():!1}_getSelf(){return this._row}}class FC{constructor(e){return this._cell=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._cell.table.componentFunctionBinder.handle("cell",t._cell,i)}})}getValue(){return this._cell.getValue()}getOldValue(){return this._cell.getOldValue()}getInitialValue(){return this._cell.initialValue}getElement(){return this._cell.getElement()}getRow(){return this._cell.row.getComponent()}getData(e){return this._cell.row.getData(e)}getType(){return"cell"}getField(){return this._cell.column.getField()}getColumn(){return this._cell.column.getComponent()}setValue(e,t){typeof t>"u"&&(t=!0),this._cell.setValue(e,t)}restoreOldValue(){this._cell.setValueActual(this._cell.getOldValue())}restoreInitialValue(){this._cell.setValueActual(this._cell.initialValue)}checkHeight(){this._cell.checkHeight()}getTable(){return this._cell.table}_getSelf(){return this._cell}}class un extends te{constructor(e,t){super(e.table),this.table=e.table,this.column=e,this.row=t,this.element=null,this.value=null,this.initialValue,this.oldValue=null,this.modules={},this.height=null,this.width=null,this.minWidth=null,this.component=null,this.loaded=!1,this.build()}build(){this.generateElement(),this.setWidth(),this._configureCell(),this.setValueActual(this.column.getFieldValue(this.row.data)),this.initialValue=this.value}generateElement(){this.element=document.createElement("div"),this.element.className="tabulator-cell",this.element.setAttribute("role","gridcell"),this.column.isRowHeader&&this.element.classList.add("tabulator-row-header")}_configureCell(){var e=this.element,t=this.column.getField(),i={top:"flex-start",bottom:"flex-end",middle:"center"},a={left:"flex-start",right:"flex-end",center:"center"};if(e.style.textAlign=this.column.hozAlign,this.column.vertAlign&&(e.style.display="inline-flex",e.style.alignItems=i[this.column.vertAlign]||"",this.column.hozAlign&&(e.style.justifyContent=a[this.column.hozAlign]||"")),t&&e.setAttribute("tabulator-field",t),this.column.definition.cssClass){var n=this.column.definition.cssClass.split(" ");n.forEach(r=>{e.classList.add(r)})}this.dispatch("cell-init",this),this.column.visible||this.hide()}_generateContents(){var e;switch(e=this.chain("cell-format",this,null,()=>this.element.innerHTML=this.value),typeof e){case"object":if(e instanceof Node){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.appendChild(e)}else this.element.innerHTML="",e!=null&&console.warn("Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",e);break;case"undefined":this.element.innerHTML="";break;default:this.element.innerHTML=e}}cellRendered(){this.dispatch("cell-rendered",this)}getElement(e){return this.loaded||(this.loaded=!0,e||this.layoutElement()),this.element}getValue(){return this.value}getOldValue(){return this.oldValue}setValue(e,t,i){var a=this.setValueProcessData(e,t,i);a&&(this.dispatch("cell-value-updated",this),this.cellRendered(),this.column.definition.cellEdited&&this.column.definition.cellEdited.call(this.table,this.getComponent()),this.dispatchExternal("cellEdited",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()))}setValueProcessData(e,t,i){var a=!1;return(this.value!==e||i)&&(a=!0,t&&(e=this.chain("cell-value-changing",[this,e],null,e))),this.setValueActual(e),a&&this.dispatch("cell-value-changed",this),a}setValueActual(e){this.oldValue=this.value,this.value=e,this.dispatch("cell-value-save-before",this),this.column.setFieldValue(this.row.data,e),this.dispatch("cell-value-save-after",this),this.loaded&&this.layoutElement()}layoutElement(){this._generateContents(),this.dispatch("cell-layout",this)}setWidth(){this.width=this.column.width,this.element.style.width=this.column.widthStyled}clearWidth(){this.width="",this.element.style.width=""}getWidth(){return this.width||this.element.offsetWidth}setMinWidth(){this.minWidth=this.column.minWidth,this.element.style.minWidth=this.column.minWidthStyled}setMaxWidth(){this.maxWidth=this.column.maxWidth,this.element.style.maxWidth=this.column.maxWidthStyled}checkHeight(){this.row.reinitializeHeight()}clearHeight(){this.element.style.height="",this.height=null,this.dispatch("cell-height",this,"")}setHeight(){this.height=this.row.height,this.element.style.height=this.row.heightStyled,this.dispatch("cell-height",this,this.row.heightStyled)}getHeight(){return this.height||this.element.offsetHeight}show(){this.element.style.display=this.column.vertAlign?"inline-flex":""}hide(){this.element.style.display="none"}delete(){this.dispatch("cell-delete",this),!this.table.rowManager.redrawBlock&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.column.deleteCell(this),this.row.deleteCell(this),this.calcs={}}getIndex(){return this.row.getCellIndex(this)}getComponent(){return this.component||(this.component=new FC(this)),this.component}}class OC{constructor(e){return this._column=e,this.type="ColumnComponent",new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._column.table.componentFunctionBinder.handle("column",t._column,i)}})}getElement(){return this._column.getElement()}getDefinition(){return this._column.getDefinition()}getField(){return this._column.getField()}getTitleDownload(){return this._column.getTitleDownload()}getCells(){var e=[];return this._column.cells.forEach(function(t){e.push(t.getComponent())}),e}isVisible(){return this._column.visible}show(){this._column.isGroup?this._column.columns.forEach(function(e){e.show()}):this._column.show()}hide(){this._column.isGroup?this._column.columns.forEach(function(e){e.hide()}):this._column.hide()}toggle(){this._column.visible?this.hide():this.show()}delete(){return this._column.delete()}getSubColumns(){var e=[];return this._column.columns.length&&this._column.columns.forEach(function(t){e.push(t.getComponent())}),e}getParentColumn(){return this._column.getParentComponent()}_getSelf(){return this._column}scrollTo(e,t){return this._column.table.columnManager.scrollToColumn(this._column,e,t)}getTable(){return this._column.table}move(e,t){var i=this._column.table.columnManager.findColumn(e);i?this._column.table.columnManager.moveColumn(this._column,i,t):console.warn("Move Error - No matching column found:",i)}getNextColumn(){var e=this._column.nextColumn();return e?e.getComponent():!1}getPrevColumn(){var e=this._column.prevColumn();return e?e.getComponent():!1}updateDefinition(e){return this._column.updateDefinition(e)}getWidth(){return this._column.getWidth()}setWidth(e){var t;return e===!0?t=this._column.reinitializeWidth(!0):t=this._column.setWidth(e),this._column.table.columnManager.rerenderColumns(!0),t}}var jC={title:void 0,field:void 0,columns:void 0,visible:void 0,hozAlign:void 0,vertAlign:void 0,width:void 0,minWidth:40,maxWidth:void 0,maxInitialWidth:void 0,cssClass:void 0,variableHeight:void 0,headerVertical:void 0,headerHozAlign:void 0,headerWordWrap:!1,editableTitle:void 0};const Uo=class Uo extends te{constructor(e,t,i){super(t.table),this.definition=e,this.parent=t,this.type="column",this.columns=[],this.cells=[],this.isGroup=!1,this.isRowHeader=i,this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleDownload=null,this.titleFormatterRendered=!1,this.mapDefinitions(),this.setField(this.definition.field),this.modules={},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.maxInitialWidth=null,this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this.definition.columns?(this.isGroup=!0,this.definition.columns.forEach((a,n)=>{var r=new Uo(a,this);this.attachColumn(r)}),this.checkColumnVisibility()):t.registerColumnField(this),this._initialize()}createElement(){var e=document.createElement("div");switch(e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),this.isRowHeader&&e.classList.add("tabulator-row-header"),this.table.options.columnHeaderVertAlign){case"middle":e.style.justifyContent="center";break;case"bottom":e.style.justifyContent="flex-end";break}return e}createGroupElement(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e}mapDefinitions(){var e=this.table.options.columnDefaults;if(e)for(let t in e)typeof this.definition[t]>"u"&&(this.definition[t]=e[t]);this.definition=this.table.columnManager.optionsList.generate(Uo.defaultOptionList,this.definition)}checkDefinition(){Object.keys(this.definition).forEach(e=>{Uo.defaultOptionList.indexOf(e)===-1&&console.warn("Invalid column definition option in '"+(this.field||this.definition.title)+"' column:",e)})}setField(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData}registerColumnPosition(e){this.parent.registerColumnPosition(e)}registerColumnField(e){this.parent.registerColumnField(e)}reRegisterPosition(){this.isGroup?this.columns.forEach(function(e){e.reRegisterPosition()}):this.registerColumnPosition(this)}_initialize(){for(var e=this.definition;this.element.firstChild;)this.element.removeChild(this.element.firstChild);e.headerVertical&&(this.element.classList.add("tabulator-col-vertical"),e.headerVertical==="flip"&&this.element.classList.add("tabulator-col-vertical-flip")),this.contentElement=this._buildColumnHeaderContent(),this.element.appendChild(this.contentElement),this.isGroup?this._buildGroupHeader():this._buildColumnHeader(),this.dispatch("column-init",this)}_buildColumnHeader(){var e=this.definition;if(this.dispatch("column-layout",this),typeof e.visible<"u"&&(e.visible?this.show(!0):this.hide(!0)),e.cssClass){var t=e.cssClass.split(" ");t.forEach(i=>{this.element.classList.add(i)})}e.field&&this.element.setAttribute("tabulator-field",e.field),this.setMinWidth(parseInt(e.minWidth)),e.maxInitialWidth&&(this.maxInitialWidth=parseInt(e.maxInitialWidth)),e.maxWidth&&this.setMaxWidth(parseInt(e.maxWidth)),this.reinitializeWidth(),this.hozAlign=this.definition.hozAlign,this.vertAlign=this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign}_buildColumnHeaderContent(){var e=document.createElement("div");return e.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e}_buildColumnHeaderTitle(){var e=this.definition,t=document.createElement("div");if(t.classList.add("tabulator-col-title"),e.headerWordWrap&&t.classList.add("tabulator-col-title-wrap"),e.editableTitle){var i=document.createElement("input");i.classList.add("tabulator-title-editor"),i.addEventListener("click",a=>{a.stopPropagation(),i.focus()}),i.addEventListener("mousedown",a=>{a.stopPropagation()}),i.addEventListener("change",()=>{e.title=i.value,this.dispatchExternal("columnTitleChanged",this.getComponent())}),t.appendChild(i),e.field?this.langBind("columns|"+e.field,a=>{i.value=a||e.title||"&nbsp;"}):i.value=e.title||"&nbsp;"}else e.field?this.langBind("columns|"+e.field,a=>{this._formatColumnHeaderTitle(t,a||e.title||"&nbsp;")}):this._formatColumnHeaderTitle(t,e.title||"&nbsp;");return t}_formatColumnHeaderTitle(e,t){var i=this.chain("column-format",[this,t,e],null,()=>t);switch(typeof i){case"object":i instanceof Node?e.appendChild(i):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",i));break;case"undefined":e.innerHTML="";break;default:e.innerHTML=i}}_buildGroupHeader(){if(this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass){var e=this.definition.cssClass.split(" ");e.forEach(t=>{this.element.classList.add(t)})}this.titleElement.style.textAlign=this.definition.headerHozAlign,this.element.appendChild(this.groupElement)}_getFlatData(e){return e[this.field]}_getNestedData(e){var t=e,i=this.fieldStructure,a=i.length,n;for(let r=0;r<a&&(t=t[i[r]],n=t,!!t);r++);return n}_setFlatData(e,t){this.field&&(e[this.field]=t)}_setNestedData(e,t){var i=e,a=this.fieldStructure,n=a.length;for(let r=0;r<n;r++)if(r==n-1)i[a[r]]=t;else{if(!i[a[r]])if(typeof t<"u")i[a[r]]={};else break;i=i[a[r]]}}attachColumn(e){this.groupElement?(this.columns.push(e),this.groupElement.appendChild(e.getElement()),e.columnRendered()):console.warn("Column Warning - Column being attached to another column instead of column group")}verticalAlign(e,t){var i=this.parent.isGroup?this.parent.getGroupElement().clientHeight:t||this.parent.getHeadersElement().clientHeight;this.element.style.height=i+"px",this.dispatch("column-height",this,this.element.style.height),this.isGroup&&(this.groupElement.style.minHeight=i-this.contentElement.offsetHeight+"px"),this.columns.forEach(function(a){a.verticalAlign(e)})}clearVerticalAlign(){this.element.style.paddingTop="",this.element.style.height="",this.element.style.minHeight="",this.groupElement.style.minHeight="",this.columns.forEach(function(e){e.clearVerticalAlign()}),this.dispatch("column-height",this,"")}getElement(){return this.element}getGroupElement(){return this.groupElement}getField(){return this.field}getTitleDownload(){return this.titleDownload}getFirstColumn(){return this.isGroup?this.columns.length?this.columns[0].getFirstColumn():!1:this}getLastColumn(){return this.isGroup?this.columns.length?this.columns[this.columns.length-1].getLastColumn():!1:this}getColumns(e){var t=[];return e?this.columns.forEach(i=>{t.push(i),t=t.concat(i.getColumns(!0))}):t=this.columns,t}getCells(){return this.cells}getTopColumn(){return this.parent.isGroup?this.parent.getTopColumn():this}getDefinition(e){var t=[];return this.isGroup&&e&&(this.columns.forEach(function(i){t.push(i.getDefinition(!0))}),this.definition.columns=t),this.definition}checkColumnVisibility(){var e=!1;this.columns.forEach(function(t){t.visible&&(e=!0)}),e?(this.show(),this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1)):this.hide()}show(e,t){this.visible||(this.visible=!0,this.element.style.display="",this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(i){i.show()}),!this.isGroup&&this.width===null&&this.reinitializeWidth(),this.table.columnManager.verticalAlignHeaders(),this.dispatch("column-show",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!0),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}hide(e,t){this.visible&&(this.visible=!1,this.element.style.display="none",this.table.columnManager.verticalAlignHeaders(),this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(i){i.hide()}),this.dispatch("column-hide",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}matchChildWidths(){var e=0;this.contentElement&&this.columns.length&&(this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}),this.contentElement.style.maxWidth=e-1+"px",this.table.initialized&&(this.element.style.width=e+"px"),this.parent.isGroup&&this.parent.matchChildWidths())}removeChild(e){var t=this.columns.indexOf(e);t>-1&&this.columns.splice(t,1),this.columns.length||this.delete()}setWidth(e){this.widthFixed=!0,this.setWidthActual(e)}setWidthActual(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWidth,e)),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach(function(t){t.setWidth()}),this.parent.isGroup&&this.parent.matchChildWidths(),this.dispatch("column-width",this),this.subscribedExternal("columnWidth")&&this.dispatchExternal("columnWidth",this.getComponent())}checkCellHeights(){var e=[];this.cells.forEach(function(t){t.row.heightInitialized&&(t.row.getElement().offsetParent!==null?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)}),e.forEach(function(t){t.calcHeight()}),e.forEach(function(t){t.setCellHeight()})}getWidth(){var e=0;return this.isGroup?this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}):e=this.width,e}getLeftOffset(){var e=this.element.offsetLeft;return this.parent.isGroup&&(e+=this.parent.getLeftOffset()),e}getHeight(){return Math.ceil(this.element.getBoundingClientRect().height)}setMinWidth(e){this.maxWidth&&e>this.maxWidth&&(e=this.maxWidth,console.warn("the minWidth ("+e+"px) for column '"+this.field+"' cannot be bigger that its maxWidth ("+this.maxWidthStyled+")")),this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach(function(t){t.setMinWidth()})}setMaxWidth(e){this.minWidth&&e<this.minWidth&&(e=this.minWidth,console.warn("the maxWidth ("+e+"px) for column '"+this.field+"' cannot be smaller that its minWidth ("+this.minWidthStyled+")")),this.maxWidth=e,this.maxWidthStyled=e?e+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach(function(t){t.setMaxWidth()})}delete(){return new Promise((e,t)=>{this.isGroup&&this.columns.forEach(function(a){a.delete()}),this.dispatch("column-delete",this);var i=this.cells.length;for(let a=0;a<i;a++)this.cells[0].delete();this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.contentElement=!1,this.titleElement=!1,this.groupElement=!1,this.parent.isGroup&&this.parent.removeChild(this),this.table.columnManager.deregisterColumn(this),this.table.columnManager.rerenderColumns(!0),this.dispatch("column-deleted",this),e()})}columnRendered(){this.titleFormatterRendered&&this.titleFormatterRendered(),this.dispatch("column-rendered",this)}generateCell(e){var t=new un(this,e);return this.cells.push(t),t}nextColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1?this._nextVisibleColumn(e+1):!1}_nextVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._nextVisibleColumn(e+1)}prevColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1?this._prevVisibleColumn(e-1):!1}_prevVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._prevVisibleColumn(e-1)}reinitializeWidth(e){this.widthFixed=!1,typeof this.definition.width<"u"&&!e&&this.setWidth(this.definition.width),this.dispatch("column-width-fit-before",this),this.fitToData(e),this.dispatch("column-width-fit-after",this)}fitToData(e){if(!this.isGroup){this.widthFixed||(this.element.style.width="",this.cells.forEach(a=>{a.clearWidth()}));var t=this.element.offsetWidth;if((!this.width||!this.widthFixed)&&(this.cells.forEach(a=>{var n=a.getWidth();n>t&&(t=n)}),t)){var i=t+1;e?this.setWidth(i):(this.maxInitialWidth&&!e&&(i=Math.min(i,this.maxInitialWidth)),this.setWidthActual(i))}}}updateDefinition(e){var t;return this.isGroup||this.parent.isGroup?(console.error("Column Update Error - The updateDefinition function is only available on ungrouped columns"),Promise.reject("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(t=Object.assign({},this.getDefinition()),t=Object.assign(t,e),this.table.columnManager.addColumn(t,!1,this).then(i=>(t.field==this.field&&(this.field=!1),this.delete().then(()=>i.getComponent()))))}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}getComponent(){return this.component||(this.component=new OC(this)),this.component}getPosition(){return this.table.columnManager.getVisibleColumnsByIndex().indexOf(this)+1}getParentComponent(){return this.parent instanceof Uo?this.parent.getComponent():!1}};E(Uo,"defaultOptionList",jC);let tt=Uo;class Rn{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._row.table.componentFunctionBinder.handle("row",t._row,i)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getCells(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e}getCell(e){var t=this._row.getCell(e);return t?t.getComponent():!1}getIndex(){return this._row.getData("data")[this._row.table.options.index]}getPosition(){return this._row.getPosition()}watchPosition(e){return this._row.watchPosition(e)}delete(){return this._row.delete()}scrollTo(e,t){return this._row.table.rowManager.scrollToRow(this._row,e,t)}move(e,t){this._row.moveToRow(e,t)}update(e){return this._row.updateData(e)}normalizeHeight(){this._row.normalizeHeight(!0)}_getSelf(){return this._row}reformat(){return this._row.reinitialize()}getTable(){return this._row.table}getNextRow(){var e=this._row.nextRow();return e&&e.getComponent()}getPrevRow(){var e=this._row.prevRow();return e&&e.getComponent()}}class ae extends te{constructor(e,t,i="row"){super(t.table),this.parent=t,this.data={},this.type=i,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.position=0,this.positionWatchers=[],this.component=null,this.created=!1,this.setData(e)}create(){this.created||(this.created=!0,this.generateElement())}createElement(){var e=document.createElement("div");e.classList.add("tabulator-row"),e.setAttribute("role","row"),this.element=e}getElement(){return this.create(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}generateElement(){this.createElement(),this.dispatch("row-init",this)}generateCells(){this.cells=this.table.columnManager.generateCells(this)}initialize(e,t){if(this.create(),!this.initialized||e){for(this.deleteCells();this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.dispatch("row-layout-before",this),this.generateCells(),this.initialized=!0,this.table.columnManager.renderer.renderRowCells(this,t),e&&this.normalizeHeight(),this.dispatch("row-layout",this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.dispatch("row-layout-after",this)}else this.table.columnManager.renderer.rerenderRowCells(this,t)}rendered(){this.cells.forEach(e=>{e.cellRendered()})}reinitializeHeight(){this.heightInitialized=!1,this.element&&this.element.offsetParent!==null&&this.normalizeHeight(!0)}deinitialize(){this.initialized=!1}deinitializeHeight(){this.heightInitialized=!1}reinitialize(e){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&this.element.offsetParent!==null&&this.initialize(!0),this.dispatch("row-relayout",this)}calcHeight(e){var t=0,i=0;this.table.options.rowHeight?this.height=this.table.options.rowHeight:(i=this.calcMinHeight(),t=this.calcMaxHeight(),e?this.height=Math.max(t,i):this.height=this.manualHeight?this.height:Math.max(t,i)),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight}calcMinHeight(){return this.table.options.resizableRows?this.element.clientHeight:0}calcMaxHeight(){var e=0;return this.cells.forEach(function(t){var i=t.getHeight();i>e&&(e=i)}),e}setCellHeight(){this.cells.forEach(function(e){e.setHeight()}),this.heightInitialized=!0}clearCellHeight(){this.cells.forEach(function(e){e.clearHeight()})}normalizeHeight(e){e&&!this.table.options.rowHeight&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()}setHeight(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight,this.subscribedExternal("rowHeight")&&this.dispatchExternal("rowHeight",this.getComponent()))}getHeight(){return this.outerHeight}getWidth(){return this.element.offsetWidth}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}setData(e){this.data=this.chain("row-data-init-before",[this,e],void 0,e),this.dispatch("row-data-init-after",this)}updateData(e){var t=this.element&&$.elVisible(this.element),i={},a;return new Promise((n,r)=>{typeof e=="string"&&(e=JSON.parse(e)),this.dispatch("row-data-save-before",this),this.subscribed("row-data-changing")&&(i=Object.assign(i,this.data),i=Object.assign(i,e)),a=this.chain("row-data-changing",[this,i,e],null,e);for(let l in a)this.data[l]=a[l];this.dispatch("row-data-save-after",this);for(let l in e)this.table.columnManager.getColumnsByFieldRoot(l).forEach(d=>{let u=this.getCell(d.getField());if(u){let p=d.getFieldValue(a);u.getValue()!==p&&(u.setValueProcessData(p),t&&u.cellRendered())}});t?(this.normalizeHeight(!0),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent())):(this.initialized=!1,this.height=0,this.heightStyled=""),this.dispatch("row-data-changed",this,t,e),this.dispatchExternal("rowUpdated",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),n()})}getData(e){return e?this.chain("row-data-retrieve",[this,e],null,this.data):this.data}getCell(e){var t=!1;return e=this.table.columnManager.findColumn(e),!this.initialized&&this.cells.length===0&&this.generateCells(),t=this.cells.find(function(i){return i.column===e}),t}getCellIndex(e){return this.cells.findIndex(function(t){return t===e})}findCell(e){return this.cells.find(t=>t.element===e)}getCells(){return!this.initialized&&this.cells.length===0&&this.generateCells(),this.cells}nextRow(){var e=this.table.rowManager.nextDisplayRow(this,!0);return e||!1}prevRow(){var e=this.table.rowManager.prevDisplayRow(this,!0);return e||!1}moveToRow(e,t){var i=this.table.rowManager.findRow(e);i?(this.table.rowManager.moveRowActual(this,i,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)}delete(){return this.dispatch("row-delete",this),this.deleteActual(),Promise.resolve()}deleteActual(e){this.detachModules(),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.dispatch("row-deleted",this)}detachModules(){this.dispatch("row-deleting",this)}deleteCells(){var e=this.cells.length;for(let t=0;t<e;t++)this.cells[0].delete()}wipe(){if(this.detachModules(),this.deleteCells(),this.element){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.parentNode&&this.element.parentNode.removeChild(this.element)}this.element=!1,this.modules={}}isDisplayed(){return this.table.rowManager.getDisplayRows().includes(this)}getPosition(){return this.isDisplayed()?this.position:!1}setPosition(e){e!=this.position&&(this.position=e,this.positionWatchers.forEach(t=>{t(this.position)}))}watchPosition(e){this.positionWatchers.push(e),e(this.position)}getGroup(){return this.modules.group||!1}getComponent(){return this.component||(this.component=new Rn(this)),this.component}}var oS={avg:function(o,e,t){var i=0,a=typeof t.precision<"u"?t.precision:2;return o.length&&(i=o.reduce(function(n,r){return Number(n)+Number(r)}),i=i/o.length,i=a!==!1?i.toFixed(a):i),parseFloat(i).toString()},max:function(o,e,t){var i=null,a=typeof t.precision<"u"?t.precision:!1;return o.forEach(function(n){n=Number(n),(n>i||i===null)&&(i=n)}),i!==null?a!==!1?i.toFixed(a):i:""},min:function(o,e,t){var i=null,a=typeof t.precision<"u"?t.precision:!1;return o.forEach(function(n){n=Number(n),(n<i||i===null)&&(i=n)}),i!==null?a!==!1?i.toFixed(a):i:""},sum:function(o,e,t){var i=0,a=typeof t.precision<"u"?t.precision:!1;return o.length&&o.forEach(function(n){n=Number(n),i+=isNaN(n)?0:Number(n)}),a!==!1?i.toFixed(a):i},concat:function(o,e,t){var i=0;return o.length&&(i=o.reduce(function(a,n){return String(a)+String(n)})),i},count:function(o,e,t){var i=0;return o.length&&o.forEach(function(a){a&&i++}),i},unique:function(o,e,t){var i=o.filter((a,n)=>(o||a===0)&&o.indexOf(a)===n);return i.length}};const Xe=class Xe extends q{constructor(e){super(e),this.topCalcs=[],this.botCalcs=[],this.genColumn=!1,this.topElement=this.createElement(),this.botElement=this.createElement(),this.topRow=!1,this.botRow=!1,this.topInitialized=!1,this.botInitialized=!1,this.blocked=!1,this.recalcAfterBlock=!1,this.registerTableOption("columnCalcs",!0),this.registerColumnOption("topCalc"),this.registerColumnOption("topCalcParams"),this.registerColumnOption("topCalcFormatter"),this.registerColumnOption("topCalcFormatterParams"),this.registerColumnOption("bottomCalc"),this.registerColumnOption("bottomCalcParams"),this.registerColumnOption("bottomCalcFormatter"),this.registerColumnOption("bottomCalcFormatterParams")}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-calcs-holder"),e}initialize(){this.genColumn=new tt({field:"value"},this),this.subscribe("cell-value-changed",this.cellValueChanged.bind(this)),this.subscribe("column-init",this.initializeColumnCheck.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("column-moved",this.recalcActiveRows.bind(this)),this.subscribe("column-add",this.recalcActiveRows.bind(this)),this.subscribe("data-refreshed",this.recalcActiveRowsRefresh.bind(this)),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this)),this.subscribe("redraw-blocked",this.blockRedraw.bind(this)),this.subscribe("redraw-restored",this.restoreRedraw.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this)),this.registerTableFunction("getCalcResults",this.getResults.bind(this)),this.registerTableFunction("recalc",this.userRecalc.bind(this)),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}tableRedraw(e){this.recalc(this.table.rowManager.activeRows),e&&this.redraw()}blockRedraw(){this.blocked=!0,this.recalcAfterBlock=!1}restoreRedraw(){this.blocked=!1,this.recalcAfterBlock&&(this.recalcAfterBlock=!1,this.recalcActiveRowsRefresh())}userRecalc(){this.recalc(this.table.rowManager.activeRows)}blockCheck(){return this.blocked&&(this.recalcAfterBlock=!0),this.blocked}visibleRows(e,t){return this.topRow&&t.unshift(this.topRow),this.botRow&&t.push(this.botRow),t}rowsUpdated(e){this.table.options.groupBy?this.recalcRowGroup(e):this.recalcActiveRows()}recalcActiveRowsRefresh(){this.table.options.groupBy&&this.table.options.dataTreeStartExpanded&&this.table.options.dataTree?this.recalcAll():this.recalcActiveRows()}recalcActiveRows(){this.recalc(this.table.rowManager.activeRows)}cellValueChanged(e){(e.column.definition.topCalc||e.column.definition.bottomCalc)&&(this.table.options.groupBy?((this.table.options.columnCalcs=="table"||this.table.options.columnCalcs=="both")&&this.recalcActiveRows(),this.table.options.columnCalcs!="table"&&this.recalcRowGroup(e.row)):this.recalcActiveRows())}initializeColumnCheck(e){(e.definition.topCalc||e.definition.bottomCalc)&&this.initializeColumn(e)}initializeColumn(e){var t=e.definition,i={topCalcParams:t.topCalcParams||{},botCalcParams:t.bottomCalcParams||{}};if(t.topCalc){switch(typeof t.topCalc){case"string":Xe.calculations[t.topCalc]?i.topCalc=Xe.calculations[t.topCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.topCalc);break;case"function":i.topCalc=t.topCalc;break}i.topCalc&&(e.modules.columnCalcs=i,this.topCalcs.push(e),this.table.options.columnCalcs!="group"&&this.initializeTopRow())}if(t.bottomCalc){switch(typeof t.bottomCalc){case"string":Xe.calculations[t.bottomCalc]?i.botCalc=Xe.calculations[t.bottomCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.bottomCalc);break;case"function":i.botCalc=t.bottomCalc;break}i.botCalc&&(e.modules.columnCalcs=i,this.botCalcs.push(e),this.table.options.columnCalcs!="group"&&this.initializeBottomRow())}}registerColumnField(){}removeCalcs(){var e=!1;this.topInitialized&&(this.topInitialized=!1,this.topElement.parentNode.removeChild(this.topElement),e=!0),this.botInitialized&&(this.botInitialized=!1,this.footerRemove(this.botElement),e=!0),e&&this.table.rowManager.adjustTableSize()}reinitializeCalcs(){this.topCalcs.length&&this.initializeTopRow(),this.botCalcs.length&&this.initializeBottomRow()}initializeTopRow(){var e=document.createDocumentFragment();this.topInitialized||(e.appendChild(document.createElement("br")),e.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(e,this.table.columnManager.headersElement.nextSibling),this.topInitialized=!0)}initializeBottomRow(){this.botInitialized||(this.footerPrepend(this.botElement),this.botInitialized=!0)}scrollHorizontal(e){this.botInitialized&&this.botRow&&(this.botElement.scrollLeft=e)}recalc(e){var t,i;if(!this.blockCheck()&&(this.topInitialized||this.botInitialized)){if(t=this.rowsToData(e),this.topInitialized){for(this.topRow&&this.topRow.deleteCells(),i=this.generateRow("top",t),this.topRow=i;this.topElement.firstChild;)this.topElement.removeChild(this.topElement.firstChild);this.topElement.appendChild(i.getElement()),i.initialize(!0)}if(this.botInitialized){for(this.botRow&&this.botRow.deleteCells(),i=this.generateRow("bottom",t),this.botRow=i;this.botElement.firstChild;)this.botElement.removeChild(this.botElement.firstChild);this.botElement.appendChild(i.getElement()),i.initialize(!0)}this.table.rowManager.adjustTableSize(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()}}recalcRowGroup(e){this.recalcGroup(this.table.modules.groupRows.getRowGroup(e))}recalcAll(){if((this.topCalcs.length||this.botCalcs.length)&&(this.table.options.columnCalcs!=="group"&&this.recalcActiveRows(),this.table.options.groupBy&&this.table.options.columnCalcs!=="table")){var e=this.table.modules.groupRows.getChildGroups();e.forEach(t=>{this.recalcGroup(t)})}}recalcGroup(e){var t,i;this.blockCheck()||e&&e.calcs&&(e.calcs.bottom&&(t=this.rowsToData(e.rows),i=this.generateRowData("bottom",t),e.calcs.bottom.updateData(i),e.calcs.bottom.reinitialize()),e.calcs.top&&(t=this.rowsToData(e.rows),i=this.generateRowData("top",t),e.calcs.top.updateData(i),e.calcs.top.reinitialize()))}generateTopRow(e){return this.generateRow("top",this.rowsToData(e))}generateBottomRow(e){return this.generateRow("bottom",this.rowsToData(e))}rowsToData(e){var t=[],i=this.table.options.dataTree&&this.table.options.dataTreeChildColumnCalcs,a=this.table.modules.dataTree;return e.forEach(n=>{var r;t.push(n.getData()),i&&((r=n.modules.dataTree)!=null&&r.open)&&this.rowsToData(a.getFilteredTreeChildren(n)).forEach(l=>{t.push(n)})}),t}generateRow(e,t){var i=this.generateRowData(e,t),a;return this.table.modExists("mutator")&&this.table.modules.mutator.disable(),a=new ae(i,this,"calc"),this.table.modExists("mutator")&&this.table.modules.mutator.enable(),a.getElement().classList.add("tabulator-calcs","tabulator-calcs-"+e),a.component=!1,a.getComponent=()=>(a.component||(a.component=new aS(a)),a.component),a.generateCells=()=>{var n=[];this.table.columnManager.columnsByIndex.forEach(r=>{this.genColumn.setField(r.getField()),this.genColumn.hozAlign=r.hozAlign,r.definition[e+"CalcFormatter"]&&this.table.modExists("format")?this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter(r.definition[e+"CalcFormatter"]),params:r.definition[e+"CalcFormatterParams"]||{}}:this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter("plaintext"),params:{}},this.genColumn.definition.cssClass=r.definition.cssClass;var l=new un(this.genColumn,a);l.getElement(),l.column=r,l.setWidth(),r.cells.push(l),n.push(l),r.visible||l.hide()}),a.cells=n},a}generateRowData(e,t){var i={},a=e=="top"?this.topCalcs:this.botCalcs,n=e=="top"?"topCalc":"botCalc",r,l;return a.forEach(function(h){var d=[];h.modules.columnCalcs&&h.modules.columnCalcs[n]&&(t.forEach(function(u){d.push(h.getFieldValue(u))}),l=n+"Params",r=typeof h.modules.columnCalcs[l]=="function"?h.modules.columnCalcs[l](d,t):h.modules.columnCalcs[l],h.setFieldValue(i,h.modules.columnCalcs[n](d,t,r)))}),i}hasTopCalcs(){return!!this.topCalcs.length}hasBottomCalcs(){return!!this.botCalcs.length}redraw(){this.topRow&&this.topRow.normalizeHeight(!0),this.botRow&&this.botRow.normalizeHeight(!0)}getResults(){var e={},t;return this.table.options.groupBy&&this.table.modExists("groupRows")?(t=this.table.modules.groupRows.getGroups(!0),t.forEach(i=>{e[i.getKey()]=this.getGroupResults(i)})):e={top:this.topRow?this.topRow.getData():{},bottom:this.botRow?this.botRow.getData():{}},e}getGroupResults(e){var t=e._getSelf(),i=e.getSubGroups(),a={},n={};return i.forEach(r=>{a[r.getKey()]=this.getGroupResults(r)}),n={top:t.calcs.top?t.calcs.top.getData():{},bottom:t.calcs.bottom?t.calcs.bottom.getData():{},groups:a},n}adjustForScrollbar(e){this.botRow&&(this.table.rtl?this.botElement.style.paddingLeft=e+"px":this.botElement.style.paddingRight=e+"px")}};E(Xe,"moduleName","columnCalcs"),E(Xe,"calculations",oS);let g9=Xe;class NC extends q{constructor(e){super(e),this.indent=10,this.field="",this.collapseEl=null,this.expandEl=null,this.branchEl=null,this.elementField=!1,this.startOpen=function(){},this.registerTableOption("dataTree",!1),this.registerTableOption("dataTreeFilter",!0),this.registerTableOption("dataTreeSort",!0),this.registerTableOption("dataTreeElementColumn",!1),this.registerTableOption("dataTreeBranchElement",!0),this.registerTableOption("dataTreeChildIndent",9),this.registerTableOption("dataTreeChildField","_children"),this.registerTableOption("dataTreeCollapseElement",!1),this.registerTableOption("dataTreeExpandElement",!1),this.registerTableOption("dataTreeStartExpanded",!1),this.registerTableOption("dataTreeChildColumnCalcs",!1),this.registerTableOption("dataTreeSelectPropagate",!1),this.registerComponentFunction("row","treeCollapse",this.collapseRow.bind(this)),this.registerComponentFunction("row","treeExpand",this.expandRow.bind(this)),this.registerComponentFunction("row","treeToggle",this.toggleRow.bind(this)),this.registerComponentFunction("row","getTreeParent",this.getTreeParent.bind(this)),this.registerComponentFunction("row","getTreeChildren",this.getRowChildren.bind(this)),this.registerComponentFunction("row","addTreeChild",this.addTreeChildRow.bind(this)),this.registerComponentFunction("row","isTreeExpanded",this.isRowExpanded.bind(this))}initialize(){if(this.table.options.dataTree){var e=null,t=this.table.options;switch(this.field=t.dataTreeChildField,this.indent=t.dataTreeChildIndent,this.options("movableRows")&&console.warn("The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"),t.dataTreeBranchElement?t.dataTreeBranchElement===!0?(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch")):typeof t.dataTreeBranchElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeBranchElement,this.branchEl=e.firstChild):this.branchEl=t.dataTreeBranchElement:(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch-empty")),t.dataTreeCollapseElement?typeof t.dataTreeCollapseElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeCollapseElement,this.collapseEl=e.firstChild):this.collapseEl=t.dataTreeCollapseElement:(this.collapseEl=document.createElement("div"),this.collapseEl.classList.add("tabulator-data-tree-control"),this.collapseEl.tabIndex=0,this.collapseEl.innerHTML="<div class='tabulator-data-tree-control-collapse'></div>"),t.dataTreeExpandElement?typeof t.dataTreeExpandElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=t.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="<div class='tabulator-data-tree-control-expand'></div>"),typeof t.dataTreeStartExpanded){case"boolean":this.startOpen=function(i,a){return t.dataTreeStartExpanded};break;case"function":this.startOpen=t.dataTreeStartExpanded;break;default:this.startOpen=function(i,a){return t.dataTreeStartExpanded[a]};break}this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowDelete.bind(this),0),this.subscribe("row-data-changed",this.rowDataChanged.bind(this),10),this.subscribe("cell-value-updated",this.cellValueChanged.bind(this)),this.subscribe("edit-cancelled",this.cellValueChanged.bind(this)),this.subscribe("column-moving-rows",this.columnMoving.bind(this)),this.subscribe("table-built",this.initializeElementField.bind(this)),this.subscribe("table-redrawing",this.tableRedrawing.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),30)}}tableRedrawing(e){var t;e&&(t=this.table.rowManager.getRows(),t.forEach(i=>{this.reinitializeRowChildren(i)}))}initializeElementField(){var e=this.table.columnManager.getFirstVisibleColumn();this.elementField=this.table.options.dataTreeElementColumn||(e?e.field:!1)}getRowChildren(e){return this.getTreeChildren(e,!0)}columnMoving(){var e=[];return this.table.rowManager.rows.forEach(t=>{e=e.concat(this.getTreeChildren(t,!1,!0))}),e}rowDataChanged(e,t,i){this.redrawNeeded(i)&&(this.initializeRow(e),t&&(this.layoutRow(e),this.refreshData(!0)))}cellValueChanged(e){var t=e.column.getField();t===this.elementField&&this.layoutRow(e.row)}initializeRow(e){var t=e.getData()[this.field],i=Array.isArray(t),a=i||!i&&typeof t=="object"&&t!==null;!a&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!a&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.parentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.modules.dataTree?e.modules.dataTree.index:0,open:a?e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0):!1,controlEl:e.modules.dataTree&&a?e.modules.dataTree.controlEl:!1,branchEl:e.modules.dataTree&&a?e.modules.dataTree.branchEl:!1,parent:e.modules.dataTree?e.modules.dataTree.parent:!1,children:a}}reinitializeRowChildren(e){var t=this.getTreeChildren(e,!1,!0);t.forEach(function(i){i.reinitialize(!0)})}layoutRow(e){var t=this.elementField?e.getCell(this.elementField):e.getCells()[0],i=t.getElement(),a=e.modules.dataTree;a.branchEl&&(a.branchEl.parentNode&&a.branchEl.parentNode.removeChild(a.branchEl),a.branchEl=!1),a.controlEl&&(a.controlEl.parentNode&&a.controlEl.parentNode.removeChild(a.controlEl),a.controlEl=!1),this.generateControlElement(e,i),e.getElement().classList.add("tabulator-tree-level-"+a.index),a.index&&(this.branchEl?(a.branchEl=this.branchEl.cloneNode(!0),i.insertBefore(a.branchEl,i.firstChild),this.table.rtl?a.branchEl.style.marginRight=(a.branchEl.offsetWidth+a.branchEl.style.marginLeft)*(a.index-1)+a.index*this.indent+"px":a.branchEl.style.marginLeft=(a.branchEl.offsetWidth+a.branchEl.style.marginRight)*(a.index-1)+a.index*this.indent+"px"):this.table.rtl?i.style.paddingRight=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-right"))+a.index*this.indent+"px":i.style.paddingLeft=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-left"))+a.index*this.indent+"px")}generateControlElement(e,t){var i=e.modules.dataTree,a=i.controlEl;t=t||e.getCells()[0].getElement(),i.children!==!1&&(i.open?(i.controlEl=this.collapseEl.cloneNode(!0),i.controlEl.addEventListener("click",n=>{n.stopPropagation(),this.collapseRow(e)})):(i.controlEl=this.expandEl.cloneNode(!0),i.controlEl.addEventListener("click",n=>{n.stopPropagation(),this.expandRow(e)})),i.controlEl.addEventListener("mousedown",n=>{n.stopPropagation()}),a&&a.parentNode===t?a.parentNode.replaceChild(i.controlEl,a):t.insertBefore(i.controlEl,t.firstChild))}getRows(e){var t=[];return e.forEach((i,a)=>{var n,r;t.push(i),i instanceof ae&&(i.create(),n=i.modules.dataTree,!n.index&&n.children!==!1&&(r=this.getChildren(i,!1,!0),r.forEach(l=>{l.create(),t.push(l)})))}),t}getChildren(e,t,i){var a=e.modules.dataTree,n=[],r=[];return a.children!==!1&&(a.open||t)&&(Array.isArray(a.children)||(a.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?n=this.table.modules.filter.filter(a.children):n=a.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(n,i),n.forEach(l=>{r.push(l);var h=this.getChildren(l,!1,!0);h.forEach(d=>{r.push(d)})})),r}generateChildren(e){var t=[],i=e.getData()[this.field];return Array.isArray(i)||(i=[i]),i.forEach(a=>{var n=new ae(a||{},this.table.rowManager);n.create(),n.modules.dataTree.index=e.modules.dataTree.index+1,n.modules.dataTree.parent=e,n.modules.dataTree.children&&(n.modules.dataTree.open=this.startOpen(n.getComponent(),n.modules.dataTree.index)),t.push(n)}),t}expandRow(e,t){var i=e.modules.dataTree;i.children!==!1&&(i.open=!0,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowExpanded",e.getComponent(),e.modules.dataTree.index))}collapseRow(e){var t=e.modules.dataTree;t.children!==!1&&(t.open=!1,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowCollapsed",e.getComponent(),e.modules.dataTree.index))}toggleRow(e){var t=e.modules.dataTree;t.children!==!1&&(t.open?this.collapseRow(e):this.expandRow(e))}isRowExpanded(e){return e.modules.dataTree.open}getTreeParent(e){return e.modules.dataTree.parent?e.modules.dataTree.parent.getComponent():!1}getTreeParentRoot(e){return e.modules.dataTree&&e.modules.dataTree.parent?this.getTreeParentRoot(e.modules.dataTree.parent):e}getFilteredTreeChildren(e){var t=e.modules.dataTree,i=[],a;return t.children&&(Array.isArray(t.children)||(t.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?a=this.table.modules.filter.filter(t.children):a=t.children,a.forEach(n=>{n instanceof ae&&i.push(n)})),i}rowDeleting(e){var t=e.modules.dataTree;t&&t.children&&Array.isArray(t.children)&&t.children.forEach(i=>{i instanceof ae&&i.wipe()})}rowDelete(e){var t=e.modules.dataTree.parent,i;t&&(i=this.findChildIndex(e,t),i!==!1&&t.data[this.field].splice(i,1),t.data[this.field].length||delete t.data[this.field],this.initializeRow(t),this.layoutRow(t)),this.refreshData(!0)}addTreeChildRow(e,t,i,a){var n=!1;typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.modules.dataTree.index)),typeof a<"u"&&(n=this.findChildIndex(a,e),n!==!1&&e.data[this.field].splice(i?n:n+1,0,t)),n===!1&&(i?e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),this.layoutRow(e),this.refreshData(!0)}findChildIndex(e,t){var i=!1;return typeof e=="object"?e instanceof ae?i=e.data:e instanceof Rn?i=e._getSelf().data:typeof HTMLElement<"u"&&e instanceof HTMLElement?t.modules.dataTree&&(i=t.modules.dataTree.children.find(a=>a instanceof ae?a.element===e:!1),i&&(i=i.data)):e===null&&(i=!1):typeof e>"u"?i=!1:i=t.data[this.field].find(a=>a.data[this.table.options.index]==e),i&&(Array.isArray(t.data[this.field])&&(i=t.data[this.field].indexOf(i)),i==-1&&(i=!1)),i}getTreeChildren(e,t,i){var a=e.modules.dataTree,n=[];return a&&a.children&&(Array.isArray(a.children)||(a.children=this.generateChildren(e)),a.children.forEach(r=>{r instanceof ae&&(n.push(t?r.getComponent():r),i&&this.getTreeChildren(r,t,i).forEach(l=>{n.push(l)}))})),n}getChildField(){return this.field}redrawNeeded(e){return(this.field?typeof e[this.field]<"u":!1)||(this.elementField?typeof e[this.elementField]<"u":!1)}}E(NC,"moduleName","dataTree");function nS(o,e={},t){var i=e.delimiter?e.delimiter:",",a=[],n=[];o.forEach(r=>{var l=[];switch(r.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":r.columns.forEach((h,d)=>{h&&h.depth===1&&(n[d]=typeof h.value>"u"||h.value===null?"":'"'+String(h.value).split('"').join('""')+'"')});break;case"row":r.columns.forEach(h=>{if(h){switch(typeof h.value){case"object":h.value=h.value!==null?JSON.stringify(h.value):"";break;case"undefined":h.value="";break}l.push('"'+String(h.value).split('"').join('""')+'"')}}),a.push(l.join(i));break}}),n.length&&a.unshift(n.join(i)),a=a.join(`
4
4
  `),e.bom&&(a="\uFEFF"+a),t(a,"text/csv")}function sS(o,e,t){var i=[];o.forEach(a=>{var n={};switch(a.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":a.columns.forEach(r=>{r&&(n[r.component.getTitleDownload()||r.component.getField()]=r.value)}),i.push(n);break}}),i=JSON.stringify(i,null," "),t(i,"application/json")}function rS(o,e={},t){var i=[],a=[],n={},r=e.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},l=e.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},h=e.jsPDF||{},d=e.title?e.title:"",u,p;h.orientation||(h.orientation=e.orientation||"landscape"),h.unit||(h.unit="pt"),o.forEach(f=>{switch(f.type){case"header":i.push(y(f));break;case"group":a.push(y(f,r));break;case"calc":a.push(y(f,l));break;case"row":a.push(y(f));break}});function y(f,g){var k=[];return f.columns.forEach(b=>{var m;if(b){switch(typeof b.value){case"object":b.value=b.value!==null?JSON.stringify(b.value):"";break;case"undefined":b.value="";break}m={content:b.value,colSpan:b.width,rowSpan:b.height},g&&(m.styles=g),k.push(m)}}),k}u=this.dependencyRegistry.lookup("jspdf","jsPDF"),p=new u(h),e.autoTable&&(typeof e.autoTable=="function"?n=e.autoTable(p)||{}:n=e.autoTable),d&&(n.didDrawPage=function(f){p.text(d,40,30)}),n.head=i,n.body=a,p.autoTable(n),e.documentProcessing&&e.documentProcessing(p),t(p.output("arraybuffer"),"application/pdf")}function lS(o,e,t){var i=this,a=e.sheetName||"Sheet1",n=this.dependencyRegistry.lookup("XLSX"),r=n.utils.book_new(),l=new te(this),h="compress"in e?e.compress:!0,d=e.writeOptions||{bookType:"xlsx",bookSST:!0,compression:h},u;d.type="binary",r.SheetNames=[],r.Sheets={};function p(){var g=[],k=[],b={},m={s:{c:0,r:0},e:{c:o[0]?o[0].columns.reduce((M,v)=>M+(v&&v.width?v.width:1),0):0,r:o.length}};return o.forEach((M,v)=>{var C=[];M.columns.forEach(function(I,L){I?(C.push(!(I.value instanceof Date)&&typeof I.value=="object"?JSON.stringify(I.value):I.value),(I.width>1||I.height>-1)&&(I.height>1||I.width>1)&&k.push({s:{r:v,c:L},e:{r:v+I.height-1,c:L+I.width-1}})):C.push("")}),g.push(C)}),n.utils.sheet_add_aoa(b,g),b["!ref"]=n.utils.encode_range(m),k.length&&(b["!merges"]=k),b}if(e.sheetOnly){t(p());return}if(e.sheets)for(var y in e.sheets)e.sheets[y]===!0?(r.SheetNames.push(y),r.Sheets[y]=p()):(r.SheetNames.push(y),l.commsSend(e.sheets[y],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:i.active,intercept:function(g){r.Sheets[y]=g}}));else r.SheetNames.push(a),r.Sheets[a]=p();e.documentProcessing&&(r=e.documentProcessing(r));function f(g){for(var k=new ArrayBuffer(g.length),b=new Uint8Array(k),m=0;m!=g.length;++m)b[m]=g.charCodeAt(m)&255;return k}u=n.write(r,d),t(f(u),"application/octet-stream")}function hS(o,e,t){this.modExists("export",!0)&&t(this.modules.export.generateHTMLTable(o),"text/html")}function cS(o,e,t){const i=[];o.forEach(a=>{const n={};switch(a.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":a.columns.forEach(r=>{r&&(n[r.component.getTitleDownload()||r.component.getField()]=r.value)}),i.push(JSON.stringify(n));break}}),t(i.join(`
5
5
  `),"application/x-ndjson")}var dS={csv:nS,json:sS,jsonLines:cS,pdf:rS,xlsx:lS,html:hS};let uS=(Be=class extends q{constructor(e){super(e),this.registerTableOption("downloadEncoder",function(t,i){return new Blob([t],{type:i})}),this.registerTableOption("downloadConfig",{}),this.registerTableOption("downloadRowRange","active"),this.registerColumnOption("download"),this.registerColumnOption("titleDownload")}initialize(){this.deprecatedOptionsCheck(),this.registerTableFunction("download",this.download.bind(this)),this.registerTableFunction("downloadToTab",this.downloadToTab.bind(this))}deprecatedOptionsCheck(){}downloadToTab(e,t,i,a){this.download(e,t,i,a,!0)}download(e,t,i,a,n){var r=!1;function l(d,u){n?n===!0?this.triggerDownload(d,u,e,t,!0):n(d):this.triggerDownload(d,u,e,t)}if(typeof e=="function"?r=e:Be.downloaders[e]?r=Be.downloaders[e]:console.warn("Download Error - No such download type found: ",e),r){var h=this.generateExportList(a);r.call(this.table,h,i||{},l.bind(this))}}generateExportList(e){var t=this.table.modules.export.generateExportList(this.table.options.downloadConfig,!1,e||this.table.options.downloadRowRange,"download"),i=this.table.options.groupHeaderDownload;return i&&!Array.isArray(i)&&(i=[i]),t.forEach(a=>{var n;a.type==="group"&&(n=a.columns[0],i&&i[a.indent]&&(n.value=i[a.indent](n.value,a.component._group.getRowCount(),a.component._group.getData(),a.component)))}),t}triggerDownload(e,t,i,a,n){var r=document.createElement("a"),l=this.table.options.downloadEncoder(e,t);l&&(n?window.open(window.URL.createObjectURL(l)):(a=a||"Tabulator."+(typeof i=="function"?"txt":i),navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(l,a):(r.setAttribute("href",window.URL.createObjectURL(l)),r.setAttribute("download",a),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r))),this.dispatchExternal("downloadComplete"))}commsReceived(e,t,i){switch(t){case"intercept":this.download(i.type,"",i.options,i.active,i.intercept);break}}},E(Be,"moduleName","download"),E(Be,"downloaders",dS),Be);function Hn(o,e){var t=e.mask,i=typeof e.maskLetterChar<"u"?e.maskLetterChar:"A",a=typeof e.maskNumberChar<"u"?e.maskNumberChar:"9",n=typeof e.maskWildcardChar<"u"?e.maskWildcardChar:"*";function r(l){var h=t[l];typeof h<"u"&&h!==n&&h!==i&&h!==a&&(o.value=o.value+""+h,r(l+1))}o.addEventListener("keydown",l=>{var h=o.value.length,d=l.key;if(l.keyCode>46&&!l.ctrlKey&&!l.metaKey){if(h>=t.length)return l.preventDefault(),l.stopPropagation(),!1;switch(t[h]){case i:if(d.toUpperCase()==d.toLowerCase())return l.preventDefault(),l.stopPropagation(),!1;break;case a:if(isNaN(d))return l.preventDefault(),l.stopPropagation(),!1;break;case n:break;default:if(d!==t[h])return l.preventDefault(),l.stopPropagation(),!1}}}),o.addEventListener("keyup",l=>{l.keyCode>46&&e.maskAutoFill&&r(o.value.length)}),o.placeholder||(o.placeholder=t),e.maskAutoFill&&r(o.value.length)}function pS(o,e,t,i,a){var n=o.getValue(),r=document.createElement("input");if(r.setAttribute("type",a.search?"search":"text"),r.style.padding="4px",r.style.width="100%",r.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let h in a.elementAttributes)h.charAt(0)=="+"?(h=h.slice(1),r.setAttribute(h,r.getAttribute(h)+a.elementAttributes["+"+h])):r.setAttribute(h,a.elementAttributes[h]);r.value=typeof n<"u"?n:"",e(function(){o.getType()==="cell"&&(r.focus({preventScroll:!0}),r.style.height="100%",a.selectContents&&r.select())});function l(h){(n===null||typeof n>"u")&&r.value!==""||r.value!==n?t(r.value)&&(n=r.value):i()}return r.addEventListener("change",l),r.addEventListener("blur",l),r.addEventListener("keydown",function(h){switch(h.keyCode){case 13:l();break;case 27:i();break;case 35:case 36:h.stopPropagation();break}}),a.mask&&Hn(r,a),r}function yS(o,e,t,i,a){var n=o.getValue(),r=a.verticalNavigation||"hybrid",l=String(n!==null&&typeof n<"u"?n:""),h=document.createElement("textarea"),d=0;if(h.style.display="block",h.style.padding="2px",h.style.height="100%",h.style.width="100%",h.style.boxSizing="border-box",h.style.whiteSpace="pre-wrap",h.style.resize="none",a.elementAttributes&&typeof a.elementAttributes=="object")for(let p in a.elementAttributes)p.charAt(0)=="+"?(p=p.slice(1),h.setAttribute(p,h.getAttribute(p)+a.elementAttributes["+"+p])):h.setAttribute(p,a.elementAttributes[p]);h.value=l,e(function(){o.getType()==="cell"&&(h.focus({preventScroll:!0}),h.style.height="100%",h.scrollHeight,h.style.height=h.scrollHeight+"px",o.getRow().normalizeHeight(),a.selectContents&&h.select())});function u(p){(n===null||typeof n>"u")&&h.value!==""||h.value!==n?(t(h.value)&&(n=h.value),setTimeout(function(){o.getRow().normalizeHeight()},300)):i()}return h.addEventListener("change",u),h.addEventListener("blur",u),h.addEventListener("keyup",function(){h.style.height="";var p=h.scrollHeight;h.style.height=p+"px",p!=d&&(d=p,o.getRow().normalizeHeight())}),h.addEventListener("keydown",function(p){switch(p.keyCode){case 13:p.shiftKey&&a.shiftEnterSubmit&&u();break;case 27:i();break;case 38:(r=="editor"||r=="hybrid"&&h.selectionStart)&&(p.stopImmediatePropagation(),p.stopPropagation());break;case 40:(r=="editor"||r=="hybrid"&&h.selectionStart!==h.value.length)&&(p.stopImmediatePropagation(),p.stopPropagation());break;case 35:case 36:p.stopPropagation();break}}),a.mask&&Hn(h,a),h}function fS(o,e,t,i,a){var n=o.getValue(),r=a.verticalNavigation||"editor",l=document.createElement("input");if(l.setAttribute("type","number"),typeof a.max<"u"&&l.setAttribute("max",a.max),typeof a.min<"u"&&l.setAttribute("min",a.min),typeof a.step<"u"&&l.setAttribute("step",a.step),l.style.padding="4px",l.style.width="100%",l.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let u in a.elementAttributes)u.charAt(0)=="+"?(u=u.slice(1),l.setAttribute(u,l.getAttribute(u)+a.elementAttributes["+"+u])):l.setAttribute(u,a.elementAttributes[u]);l.value=n;var h=function(u){d()};e(function(){o.getType()==="cell"&&(l.removeEventListener("blur",h),l.focus({preventScroll:!0}),l.style.height="100%",l.addEventListener("blur",h),a.selectContents&&l.select())});function d(){var u=l.value;!isNaN(u)&&u!==""&&(u=Number(u)),u!==n?t(u)&&(n=u):i()}return l.addEventListener("keydown",function(u){switch(u.keyCode){case 13:d();break;case 27:i();break;case 38:case 40:r=="editor"&&(u.stopImmediatePropagation(),u.stopPropagation());break;case 35:case 36:u.stopPropagation();break}}),a.mask&&Hn(l,a),l}function mS(o,e,t,i,a){var n=o.getValue(),r=document.createElement("input");if(r.setAttribute("type","range"),typeof a.max<"u"&&r.setAttribute("max",a.max),typeof a.min<"u"&&r.setAttribute("min",a.min),typeof a.step<"u"&&r.setAttribute("step",a.step),r.style.padding="4px",r.style.width="100%",r.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let h in a.elementAttributes)h.charAt(0)=="+"?(h=h.slice(1),r.setAttribute(h,r.getAttribute(h)+a.elementAttributes["+"+h])):r.setAttribute(h,a.elementAttributes[h]);r.value=n,e(function(){o.getType()==="cell"&&(r.focus({preventScroll:!0}),r.style.height="100%")});function l(){var h=r.value;!isNaN(h)&&h!==""&&(h=Number(h)),h!=n?t(h)&&(n=h):i()}return r.addEventListener("blur",function(h){l()}),r.addEventListener("keydown",function(h){switch(h.keyCode){case 13:l();break;case 27:i();break}}),r}function gS(o,e,t,i,a){var n=a.format,r=a.verticalNavigation||"editor",l=n?window.DateTime||luxon.DateTime:null,h=o.getValue(),d=document.createElement("input");function u(y){var f;return l.isDateTime(y)?f=y:n==="iso"?f=l.fromISO(String(y)):f=l.fromFormat(String(y),n),f.toFormat("yyyy-MM-dd")}if(d.type="date",d.style.padding="4px",d.style.width="100%",d.style.boxSizing="border-box",a.max&&d.setAttribute("max",n?u(a.max):a.max),a.min&&d.setAttribute("min",n?u(a.min):a.min),a.elementAttributes&&typeof a.elementAttributes=="object")for(let y in a.elementAttributes)y.charAt(0)=="+"?(y=y.slice(1),d.setAttribute(y,d.getAttribute(y)+a.elementAttributes["+"+y])):d.setAttribute(y,a.elementAttributes[y]);h=typeof h<"u"?h:"",n&&(l?h=u(h):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),d.value=h,e(function(){o.getType()==="cell"&&(d.focus({preventScroll:!0}),d.style.height="100%",a.selectContents&&d.select())});function p(){var y=d.value,f;if((h===null||typeof h>"u")&&y!==""||y!==h){if(y&&n)switch(f=l.fromFormat(String(y),"yyyy-MM-dd"),n){case!0:y=f;break;case"iso":y=f.toISO();break;default:y=f.toFormat(n)}t(y)&&(h=d.value)}else i()}return d.addEventListener("blur",function(y){(y.relatedTarget||y.rangeParent||y.explicitOriginalTarget!==d)&&p()}),d.addEventListener("keydown",function(y){switch(y.keyCode){case 13:p();break;case 27:i();break;case 35:case 36:y.stopPropagation();break;case 38:case 40:r=="editor"&&(y.stopImmediatePropagation(),y.stopPropagation());break}}),d}function kS(o,e,t,i,a){var n=a.format,r=a.verticalNavigation||"editor",l=n?window.DateTime||luxon.DateTime:null,h,d=o.getValue(),u=document.createElement("input");if(u.type="time",u.style.padding="4px",u.style.width="100%",u.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let y in a.elementAttributes)y.charAt(0)=="+"?(y=y.slice(1),u.setAttribute(y,u.getAttribute(y)+a.elementAttributes["+"+y])):u.setAttribute(y,a.elementAttributes[y]);d=typeof d<"u"?d:"",n&&(l?(l.isDateTime(d)?h=d:n==="iso"?h=l.fromISO(String(d)):h=l.fromFormat(String(d),n),d=h.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),u.value=d,e(function(){o.getType()=="cell"&&(u.focus({preventScroll:!0}),u.style.height="100%",a.selectContents&&u.select())});function p(){var y=u.value,f;if((d===null||typeof d>"u")&&y!==""||y!==d){if(y&&n)switch(f=l.fromFormat(String(y),"hh:mm"),n){case!0:y=f;break;case"iso":y=f.toISO();break;default:y=f.toFormat(n)}t(y)&&(d=u.value)}else i()}return u.addEventListener("blur",function(y){(y.relatedTarget||y.rangeParent||y.explicitOriginalTarget!==u)&&p()}),u.addEventListener("keydown",function(y){switch(y.keyCode){case 13:p();break;case 27:i();break;case 35:case 36:y.stopPropagation();break;case 38:case 40:r=="editor"&&(y.stopImmediatePropagation(),y.stopPropagation());break}}),u}function bS(o,e,t,i,a){var n=a.format,r=a.verticalNavigation||"editor",l=n?this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"):null,h,d=o.getValue(),u=document.createElement("input");if(u.type="datetime-local",u.style.padding="4px",u.style.width="100%",u.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let y in a.elementAttributes)y.charAt(0)=="+"?(y=y.slice(1),u.setAttribute(y,u.getAttribute(y)+a.elementAttributes["+"+y])):u.setAttribute(y,a.elementAttributes[y]);d=typeof d<"u"?d:"",n&&(l?(l.isDateTime(d)?h=d:n==="iso"?h=l.fromISO(String(d)):h=l.fromFormat(String(d),n),d=h.toFormat("yyyy-MM-dd")+"T"+h.toFormat("HH:mm")):console.error("Editor Error - 'date' editor 'format' param is dependant on luxon.js")),u.value=d,e(function(){o.getType()==="cell"&&(u.focus({preventScroll:!0}),u.style.height="100%",a.selectContents&&u.select())});function p(){var y=u.value,f;if((d===null||typeof d>"u")&&y!==""||y!==d){if(y&&n)switch(f=l.fromISO(String(y)),n){case!0:y=f;break;case"iso":y=f.toISO();break;default:y=f.toFormat(n)}t(y)&&(d=u.value)}else i()}return u.addEventListener("blur",function(y){(y.relatedTarget||y.rangeParent||y.explicitOriginalTarget!==u)&&p()}),u.addEventListener("keydown",function(y){switch(y.keyCode){case 13:p();break;case 27:i();break;case 35:case 36:y.stopPropagation();break;case 38:case 40:r=="editor"&&(y.stopImmediatePropagation(),y.stopPropagation());break}}),u}let wS=class{constructor(e,t,i,a,n,r){this.edit=e,this.table=e.table,this.cell=t,this.params=this._initializeParams(r),this.data=[],this.displayItems=[],this.currentItems=[],this.focusedItem=null,this.input=this._createInputElement(),this.listEl=this._createListElement(),this.initialValues=null,this.isFilter=t.getType()==="header",this.filterTimeout=null,this.filtered=!1,this.typing=!1,this.values=[],this.popup=null,this.listIteration=0,this.lastAction="",this.filterTerm="",this.blurable=!0,this.actions={success:a,cancel:n},this._deprecatedOptionsCheck(),this._initializeValue(),i(this._onRendered.bind(this))}_deprecatedOptionsCheck(){}_initializeValue(){var e=this.cell.getValue();typeof e>"u"&&typeof this.params.defaultValue<"u"&&(e=this.params.defaultValue),this.initialValues=this.params.multiselect?e:[e],this.isFilter&&(this.input.value=this.initialValues?this.initialValues.join(","):"",this.headerFilterInitialListGen())}_onRendered(){var e=this.cell.getElement();function t(i){i.stopPropagation()}this.isFilter||(this.input.style.height="100%",this.input.focus({preventScroll:!0})),e.addEventListener("click",t),setTimeout(()=>{e.removeEventListener("click",t)},1e3),this.input.addEventListener("mousedown",this._preventPopupBlur.bind(this))}_createListElement(){var e=document.createElement("div");return e.classList.add("tabulator-edit-list"),e.addEventListener("mousedown",this._preventBlur.bind(this)),e.addEventListener("keydown",this._inputKeyDown.bind(this)),e}_setListWidth(){var e=this.isFilter?this.input:this.cell.getElement();this.listEl.style.minWidth=e.offsetWidth+"px",this.params.maxWidth&&(this.params.maxWidth===!0?this.listEl.style.maxWidth=e.offsetWidth+"px":typeof this.params.maxWidth=="number"?this.listEl.style.maxWidth=this.params.maxWidth+"px":this.listEl.style.maxWidth=this.params.maxWidth)}_createInputElement(){var e=this.params.elementAttributes,t=document.createElement("input");if(t.setAttribute("type",this.params.clearable?"search":"text"),t.style.padding="4px",t.style.width="100%",t.style.boxSizing="border-box",this.params.autocomplete||(t.style.cursor="default",t.style.caretColor="transparent"),e&&typeof e=="object")for(let i in e)i.charAt(0)=="+"?(i=i.slice(1),t.setAttribute(i,t.getAttribute(i)+e["+"+i])):t.setAttribute(i,e[i]);return this.params.mask&&Hn(t,this.params),this._bindInputEvents(t),t}_initializeParams(e){var t=["values","valuesURL","valuesLookup"],i;return e=Object.assign({},e),e.verticalNavigation=e.verticalNavigation||"editor",e.placeholderLoading=typeof e.placeholderLoading>"u"?"Searching ...":e.placeholderLoading,e.placeholderEmpty=typeof e.placeholderEmpty>"u"?"No Results Found":e.placeholderEmpty,e.filterDelay=typeof e.filterDelay>"u"?300:e.filterDelay,e.emptyValue=Object.keys(e).includes("emptyValue")?e.emptyValue:"",i=Object.keys(e).filter(a=>t.includes(a)).length,i?i>1&&console.warn("list editor config error - only one of the values, valuesURL, or valuesLookup options can be set on the same editor"):console.warn("list editor config error - either the values, valuesURL, or valuesLookup option must be set"),e.autocomplete?e.multiselect&&(e.multiselect=!1,console.warn("list editor config error - multiselect option is not available when autocomplete is enabled")):(e.freetext&&(e.freetext=!1,console.warn("list editor config error - freetext option is only available when autocomplete is enabled")),e.filterFunc&&(e.filterFunc=!1,console.warn("list editor config error - filterFunc option is only available when autocomplete is enabled")),e.filterRemote&&(e.filterRemote=!1,console.warn("list editor config error - filterRemote option is only available when autocomplete is enabled")),e.mask&&(e.mask=!1,console.warn("list editor config error - mask option is only available when autocomplete is enabled")),e.allowEmpty&&(e.allowEmpty=!1,console.warn("list editor config error - allowEmpty option is only available when autocomplete is enabled")),e.listOnEmpty&&(e.listOnEmpty=!1,console.warn("list editor config error - listOnEmpty option is only available when autocomplete is enabled"))),e.filterRemote&&!(typeof e.valuesLookup=="function"||e.valuesURL)&&(e.filterRemote=!1,console.warn("list editor config error - filterRemote option should only be used when values list is populated from a remote source")),e}_bindInputEvents(e){e.addEventListener("focus",this._inputFocus.bind(this)),e.addEventListener("click",this._inputClick.bind(this)),e.addEventListener("blur",this._inputBlur.bind(this)),e.addEventListener("keydown",this._inputKeyDown.bind(this)),e.addEventListener("search",this._inputSearch.bind(this)),this.params.autocomplete&&e.addEventListener("keyup",this._inputKeyUp.bind(this))}_inputFocus(e){this.rebuildOptionsList()}_filter(){this.params.filterRemote?(clearTimeout(this.filterTimeout),this.filterTimeout=setTimeout(()=>{this.rebuildOptionsList()},this.params.filterDelay)):this._filterList()}_inputClick(e){e.stopPropagation()}_inputBlur(e){this.blurable&&(this.popup?this.popup.hide():this._resolveValue(!0))}_inputSearch(){this._clearChoices()}_inputKeyDown(e){switch(e.keyCode){case 38:this._keyUp(e);break;case 40:this._keyDown(e);break;case 37:case 39:this._keySide(e);break;case 13:this._keyEnter();break;case 27:this._keyEsc();break;case 36:case 35:this._keyHomeEnd(e);break;case 9:this._keyTab(e);break;default:this._keySelectLetter(e)}}_inputKeyUp(e){switch(e.keyCode){case 38:case 37:case 39:case 40:case 13:case 27:break;default:this._keyAutoCompLetter(e)}}_preventPopupBlur(){this.popup&&this.popup.blockHide(),setTimeout(()=>{this.popup&&this.popup.restoreHide()},10)}_preventBlur(){this.blurable=!1,setTimeout(()=>{this.blurable=!0},10)}_keyTab(e){this.params.autocomplete&&this.lastAction==="typing"?this._resolveValue(!0):this.focusedItem&&this._chooseItem(this.focusedItem,!0)}_keyUp(e){var t=this.displayItems.indexOf(this.focusedItem);(this.params.verticalNavigation=="editor"||this.params.verticalNavigation=="hybrid"&&t)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t>0&&this._focusItem(this.displayItems[t-1]))}_keyDown(e){var t=this.displayItems.indexOf(this.focusedItem);(this.params.verticalNavigation=="editor"||this.params.verticalNavigation=="hybrid"&&t<this.displayItems.length-1)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),t<this.displayItems.length-1&&(t==-1?this._focusItem(this.displayItems[0]):this._focusItem(this.displayItems[t+1])))}_keySide(e){this.params.autocomplete||(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())}_keyEnter(e){this.params.autocomplete&&this.lastAction==="typing"?this._resolveValue(!0):this.focusedItem&&this._chooseItem(this.focusedItem)}_keyEsc(e){this._cancel()}_keyHomeEnd(e){this.params.autocomplete&&e.stopImmediatePropagation()}_keySelectLetter(e){this.params.autocomplete||(e.preventDefault(),e.keyCode>=38&&e.keyCode<=90&&this._scrollToValue(e.keyCode))}_keyAutoCompLetter(e){this._filter(),this.lastAction="typing",this.typing=!0}_scrollToValue(e){clearTimeout(this.filterTimeout);var t=String.fromCharCode(e).toLowerCase();this.filterTerm+=t.toLowerCase();var i=this.displayItems.find(a=>typeof a.label<"u"&&a.label.toLowerCase().startsWith(this.filterTerm));i&&this._focusItem(i),this.filterTimeout=setTimeout(()=>{this.filterTerm=""},800)}_focusItem(e){this.lastAction="focus",this.focusedItem&&this.focusedItem.element&&this.focusedItem.element.classList.remove("focused"),this.focusedItem=e,e&&e.element&&(e.element.classList.add("focused"),e.element.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}))}headerFilterInitialListGen(){this._generateOptions(!0)}rebuildOptionsList(){this._generateOptions().then(this._sortOptions.bind(this)).then(this._buildList.bind(this)).then(this._showList.bind(this)).catch(e=>{Number.isInteger(e)||console.error("List generation error",e)})}_filterList(){this._buildList(this._filterOptions()),this._showList()}_generateOptions(e){var t=[],i=++this.listIteration;return this.filtered=!1,this.params.values?t=this.params.values:this.params.valuesURL?t=this._ajaxRequest(this.params.valuesURL,this.input.value):typeof this.params.valuesLookup=="function"?t=this.params.valuesLookup(this.cell,this.input.value):this.params.valuesLookup&&(t=this._uniqueColumnValues(this.params.valuesLookupField)),t instanceof Promise?(e||this._addPlaceholder(this.params.placeholderLoading),t.then().then(a=>this.listIteration===i?this._parseList(a):Promise.reject(i))):Promise.resolve(this._parseList(t))}_addPlaceholder(e){var t=document.createElement("div");typeof e=="function"&&(e=e(this.cell.getComponent(),this.listEl)),e&&(this._clearList(),e instanceof HTMLElement?t=e:(t.classList.add("tabulator-edit-list-placeholder"),t.innerHTML=e),this.listEl.appendChild(t),this._showList())}_ajaxRequest(e,t){var i=this.params.filterRemote?{term:t}:{};return e=BC(e,{},i),fetch(e).then(a=>a.ok?a.json().catch(n=>(console.warn("List Ajax Load Error - Invalid JSON returned",n),Promise.reject(n))):(console.error("List Ajax Load Error - Connection Error: "+a.status,a.statusText),Promise.reject(a))).catch(a=>(console.error("List Ajax Load Error - Connection Error: ",a),Promise.reject(a)))}_uniqueColumnValues(e){var t={},i=this.table.getData(this.params.valuesLookup),a;return e?a=this.table.columnManager.getColumnByField(e):a=this.cell.getColumn()._getSelf(),a?i.forEach(n=>{var r=a.getFieldValue(n);this._emptyValueCheck(r)||(this.params.multiselect&&Array.isArray(r)?r.forEach(l=>{this._emptyValueCheck(l)||(t[l]=!0)}):t[r]=!0)}):(console.warn("unable to find matching column to create select lookup list:",e),t=[]),Object.keys(t)}_emptyValueCheck(e){return e===null||typeof e>"u"||e===""}_parseList(e){var t=[];return Array.isArray(e)||(e=Object.entries(e).map(([i,a])=>({label:a,value:i}))),e.forEach(i=>{typeof i!="object"&&(i={label:i,value:i}),this._parseListItem(i,t,0)}),!this.currentItems.length&&this.params.freetext&&(this.input.value=this.initialValues,this.typing=!0,this.lastAction="typing"),this.data=t,t}_parseListItem(e,t,i){var a={};e.options?a=this._parseListGroup(e,i+1):(a={label:e.label,value:e.value,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1,selected:!1,visible:!0,level:i,original:e},this.initialValues&&this.initialValues.indexOf(e.value)>-1&&this._chooseItem(a,!0)),t.push(a)}_parseListGroup(e,t){var i={label:e.label,group:!0,itemParams:e.itemParams,elementAttributes:e.elementAttributes,element:!1,visible:!0,level:t,options:[],original:e};return e.options.forEach(a=>{this._parseListItem(a,i.options,t)}),i}_sortOptions(e){var t;return this.params.sort&&(t=typeof this.params.sort=="function"?this.params.sort:this._defaultSortFunction.bind(this),this._sortGroup(t,e)),e}_sortGroup(e,t){t.sort((i,a)=>e(i.label,a.label,i.value,a.value,i.original,a.original)),t.forEach(i=>{i.group&&this._sortGroup(e,i.options)})}_defaultSortFunction(e,t){var i,a,n,r,l=0,h,d=/(\d+)|(\D+)/g,u=/\d/,p=0;if(this.params.sort==="desc"&&([e,t]=[t,e]),!e&&e!==0)p=!t&&t!==0?0:-1;else if(!t&&t!==0)p=1;else{if(isFinite(e)&&isFinite(t))return e-t;if(i=String(e).toLowerCase(),a=String(t).toLowerCase(),i===a)return 0;if(!(u.test(i)&&u.test(a)))return i>a?1:-1;for(i=i.match(d),a=a.match(d),h=i.length>a.length?a.length:i.length;l<h;)if(n=i[l],r=a[l++],n!==r)return isFinite(n)&&isFinite(r)?(n.charAt(0)==="0"&&(n="."+n),r.charAt(0)==="0"&&(r="."+r),n-r):n>r?1:-1;return i.length>a.length}return p}_filterOptions(){var e=this.params.filterFunc||this._defaultFilterFunc,t=this.input.value;return t?(this.filtered=!0,this.data.forEach(i=>{this._filterItem(e,t,i)})):this.filtered=!1,this.data}_filterItem(e,t,i){var a=!1;return i.group?(i.options.forEach(n=>{this._filterItem(e,t,n)&&(a=!0)}),i.visible=a):i.visible=e(t,i.label,i.value,i.original),i.visible}_defaultFilterFunc(e,t,i,a){return e=String(e).toLowerCase(),t!==null&&typeof t<"u"&&(String(t).toLowerCase().indexOf(e)>-1||String(i).toLowerCase().indexOf(e)>-1)}_clearList(){for(;this.listEl.firstChild;)this.listEl.removeChild(this.listEl.firstChild);this.displayItems=[]}_buildList(e){this._clearList(),e.forEach(t=>{this._buildItem(t)}),this.displayItems.length||this._addPlaceholder(this.params.placeholderEmpty)}_buildItem(e){var t=e.element,i;if(!this.filtered||e.visible){if(!t){if(t=document.createElement("div"),t.tabIndex=0,i=this.params.itemFormatter?this.params.itemFormatter(e.label,e.value,e.original,t):e.label,i instanceof HTMLElement?t.appendChild(i):t.innerHTML=i,e.group?t.classList.add("tabulator-edit-list-group"):t.classList.add("tabulator-edit-list-item"),t.classList.add("tabulator-edit-list-group-level-"+e.level),e.elementAttributes&&typeof e.elementAttributes=="object")for(let a in e.elementAttributes)a.charAt(0)=="+"?(a=a.slice(1),t.setAttribute(a,this.input.getAttribute(a)+e.elementAttributes["+"+a])):t.setAttribute(a,e.elementAttributes[a]);e.group?t.addEventListener("click",this._groupClick.bind(this,e)):t.addEventListener("click",this._itemClick.bind(this,e)),t.addEventListener("mousedown",this._preventBlur.bind(this)),e.element=t}this._styleItem(e),this.listEl.appendChild(t),e.group?e.options.forEach(a=>{this._buildItem(a)}):this.displayItems.push(e)}}_showList(){var e=this.popup&&this.popup.isVisible();if(this.input.parentNode){if(this.params.autocomplete&&this.input.value===""&&!this.params.listOnEmpty){this.popup&&this.popup.hide(!0);return}this._setListWidth(),this.popup||(this.popup=this.edit.popup(this.listEl)),this.popup.show(this.cell.getElement(),"bottom"),e||setTimeout(()=>{this.popup.hideOnBlur(this._resolveValue.bind(this,!0))},10)}}_styleItem(e){e&&e.element&&(e.selected?e.element.classList.add("active"):e.element.classList.remove("active"))}_itemClick(e,t){t.stopPropagation(),this._chooseItem(e)}_groupClick(e,t){t.stopPropagation()}_cancel(){this.popup.hide(!0),this.actions.cancel()}_clearChoices(){this.typing=!0,this.currentItems.forEach(e=>{e.selected=!1,this._styleItem(e)}),this.currentItems=[],this.focusedItem=null}_chooseItem(e,t){var i;this.typing=!1,this.params.multiselect?(i=this.currentItems.indexOf(e),i>-1?(this.currentItems.splice(i,1),e.selected=!1):(this.currentItems.push(e),e.selected=!0),this.input.value=this.currentItems.map(a=>a.label).join(","),this._styleItem(e)):(this.currentItems=[e],e.selected=!0,this.input.value=e.label,this._styleItem(e),t||this._resolveValue()),this._focusItem(e)}_resolveValue(e){var t,i;if(this.popup&&this.popup.hide(!0),this.params.multiselect)t=this.currentItems.map(a=>a.value);else if(e&&this.params.autocomplete&&this.typing)if(this.params.freetext||this.params.allowEmpty&&this.input.value==="")t=this.input.value;else{this.actions.cancel();return}else this.currentItems[0]?t=this.currentItems[0].value:(i=Array.isArray(this.initialValues)?this.initialValues[0]:this.initialValues,i===null||typeof i>"u"||i===""?t=i:t=this.params.emptyValue);t===""&&(t=this.params.emptyValue),this.actions.success(t),this.isFilter&&(this.initialValues=t&&!Array.isArray(t)?[t]:t,this.currentItems=[])}};function vS(o,e,t,i,a){var n=new wS(this,o,e,t,i,a);return n.input}function MS(o,e,t,i,a){var n=this,r=o.getElement(),l=o.getValue(),h=r.getElementsByTagName("svg").length||5,d=r.getElementsByTagName("svg")[0]?r.getElementsByTagName("svg")[0].getAttribute("width"):14,u=[],p=document.createElement("div"),y=document.createElementNS("http://www.w3.org/2000/svg","svg");function f(m){u.forEach(function(M,v){v<m?(n.table.browser=="ie"?M.setAttribute("class","tabulator-star-active"):M.classList.replace("tabulator-star-inactive","tabulator-star-active"),M.innerHTML='<polygon fill="#488CE9" stroke="#014AAE" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>'):(n.table.browser=="ie"?M.setAttribute("class","tabulator-star-inactive"):M.classList.replace("tabulator-star-active","tabulator-star-inactive"),M.innerHTML='<polygon fill="#010155" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>')})}function g(m){var M=document.createElement("span"),v=y.cloneNode(!0);u.push(v),M.addEventListener("mouseenter",function(C){C.stopPropagation(),C.stopImmediatePropagation(),f(m)}),M.addEventListener("mousemove",function(C){C.stopPropagation(),C.stopImmediatePropagation()}),M.addEventListener("click",function(C){C.stopPropagation(),C.stopImmediatePropagation(),t(m),r.blur()}),M.appendChild(v),p.appendChild(M)}function k(m){l=m,f(m)}if(r.style.whiteSpace="nowrap",r.style.overflow="hidden",r.style.textOverflow="ellipsis",p.style.verticalAlign="middle",p.style.display="inline-block",p.style.padding="4px",y.setAttribute("width",d),y.setAttribute("height",d),y.setAttribute("viewBox","0 0 512 512"),y.setAttribute("xml:space","preserve"),y.style.padding="0 1px",a.elementAttributes&&typeof a.elementAttributes=="object")for(let m in a.elementAttributes)m.charAt(0)=="+"?(m=m.slice(1),p.setAttribute(m,p.getAttribute(m)+a.elementAttributes["+"+m])):p.setAttribute(m,a.elementAttributes[m]);for(var b=1;b<=h;b++)g(b);return l=Math.min(parseInt(l),h),f(l),p.addEventListener("mousemove",function(m){f(0)}),p.addEventListener("click",function(m){t(0)}),r.addEventListener("blur",function(m){i()}),r.addEventListener("keydown",function(m){switch(m.keyCode){case 39:k(l+1);break;case 37:k(l-1);break;case 13:t(l);break;case 27:i();break}}),p}function CS(o,e,t,i,a){var n=o.getElement(),r=typeof a.max>"u"?n.getElementsByTagName("div")[0]&&n.getElementsByTagName("div")[0].getAttribute("max")||100:a.max,l=typeof a.min>"u"?n.getElementsByTagName("div")[0]&&n.getElementsByTagName("div")[0].getAttribute("min")||0:a.min,h=(r-l)/100,d=o.getValue()||0,u=document.createElement("div"),p=document.createElement("div"),y,f;function g(){var k=window.getComputedStyle(n,null),b=h*Math.round(p.offsetWidth/((n.clientWidth-parseInt(k.getPropertyValue("padding-left"))-parseInt(k.getPropertyValue("padding-right")))/100))+l;t(b),n.setAttribute("aria-valuenow",b),n.setAttribute("aria-label",d)}if(u.style.position="absolute",u.style.right="0",u.style.top="0",u.style.bottom="0",u.style.width="5px",u.classList.add("tabulator-progress-handle"),p.style.display="inline-block",p.style.position="relative",p.style.height="100%",p.style.backgroundColor="#488CE9",p.style.maxWidth="100%",p.style.minWidth="0%",a.elementAttributes&&typeof a.elementAttributes=="object")for(let k in a.elementAttributes)k.charAt(0)=="+"?(k=k.slice(1),p.setAttribute(k,p.getAttribute(k)+a.elementAttributes["+"+k])):p.setAttribute(k,a.elementAttributes[k]);return n.style.padding="4px 4px",d=Math.min(parseFloat(d),r),d=Math.max(parseFloat(d),l),d=Math.round((d-l)/h),p.style.width=d+"%",n.setAttribute("aria-valuemin",l),n.setAttribute("aria-valuemax",r),p.appendChild(u),u.addEventListener("mousedown",function(k){y=k.screenX,f=p.offsetWidth}),u.addEventListener("mouseover",function(){u.style.cursor="ew-resize"}),n.addEventListener("mousemove",function(k){y&&(p.style.width=f+k.screenX-y+"px")}),n.addEventListener("mouseup",function(k){y&&(k.stopPropagation(),k.stopImmediatePropagation(),y=!1,f=!1,g())}),n.addEventListener("keydown",function(k){switch(k.keyCode){case 39:k.preventDefault(),p.style.width=p.clientWidth+n.clientWidth/100+"px";break;case 37:k.preventDefault(),p.style.width=p.clientWidth-n.clientWidth/100+"px";break;case 9:case 13:g();break;case 27:i();break}}),n.addEventListener("blur",function(){i()}),p}function xS(o,e,t,i,a){var n=o.getValue(),r=document.createElement("input"),l=a.tristate,h=typeof a.indeterminateValue>"u"?null:a.indeterminateValue,d=!1,u=Object.keys(a).includes("trueValue"),p=Object.keys(a).includes("falseValue");if(r.setAttribute("type","checkbox"),r.style.marginTop="5px",r.style.boxSizing="border-box",a.elementAttributes&&typeof a.elementAttributes=="object")for(let f in a.elementAttributes)f.charAt(0)=="+"?(f=f.slice(1),r.setAttribute(f,r.getAttribute(f)+a.elementAttributes["+"+f])):r.setAttribute(f,a.elementAttributes[f]);r.value=n,l&&(typeof n>"u"||n===h||n==="")&&(d=!0,r.indeterminate=!0),this.table.browser!="firefox"&&this.table.browser!="safari"&&e(function(){o.getType()==="cell"&&r.focus({preventScroll:!0})}),r.checked=u?n===a.trueValue:n===!0||n==="true"||n==="True"||n===1;function y(f){var g=r.checked;return u&&g?g=a.trueValue:p&&!g&&(g=a.falseValue),l?f?d?h:g:r.checked&&!d?(r.checked=!1,r.indeterminate=!0,d=!0,h):(d=!1,g):g}return r.addEventListener("change",function(f){t(y())}),r.addEventListener("blur",function(f){t(y(!0))}),r.addEventListener("keydown",function(f){f.keyCode==13&&t(y()),f.keyCode==27&&i()}),r}function LS(o,e,t,i,a){var n=o._getSelf().column,r,l,h;function d(u){var p=u.getValue(),y="input";switch(typeof p){case"number":y="number";break;case"boolean":y="tickCross";break;case"string":p.includes(`
6
- `)&&(y="textarea");break}return y}return r=a.editorLookup?a.editorLookup(o):d(o),a.paramsLookup&&(h=typeof a.paramsLookup=="function"?a.paramsLookup(r,o):a.paramsLookup[r]),l=this.table.modules.edit.lookupEditor(r,n),l.call(this,o,e,t,i,h||{})}var ES={input:pS,textarea:yS,number:fS,range:mS,date:gS,time:kS,datetime:bS,list:vS,star:MS,progress:CS,tickCross:xS,adaptable:LS};const Ln=class Ln extends q{constructor(e){super(e),this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[],this.convertEmptyValues=!1,this.editors=Ln.editors,this.registerTableOption("editTriggerEvent","focus"),this.registerTableOption("editorEmptyValue"),this.registerTableOption("editorEmptyValueFunc",this.emptyValueCheck.bind(this)),this.registerColumnOption("editable"),this.registerColumnOption("editor"),this.registerColumnOption("editorParams"),this.registerColumnOption("editorEmptyValue"),this.registerColumnOption("editorEmptyValueFunc"),this.registerColumnOption("cellEditing"),this.registerColumnOption("cellEdited"),this.registerColumnOption("cellEditCancelled"),this.registerTableFunction("getEditedCells",this.getEditedCells.bind(this)),this.registerTableFunction("clearCellEdited",this.clearCellEdited.bind(this)),this.registerTableFunction("navigatePrev",this.navigatePrev.bind(this)),this.registerTableFunction("navigateNext",this.navigateNext.bind(this)),this.registerTableFunction("navigateLeft",this.navigateLeft.bind(this)),this.registerTableFunction("navigateRight",this.navigateRight.bind(this)),this.registerTableFunction("navigateUp",this.navigateUp.bind(this)),this.registerTableFunction("navigateDown",this.navigateDown.bind(this)),this.registerComponentFunction("cell","isEdited",this.cellIsEdited.bind(this)),this.registerComponentFunction("cell","clearEdited",this.clearEdited.bind(this)),this.registerComponentFunction("cell","edit",this.editCell.bind(this)),this.registerComponentFunction("cell","cancelEdit",this.cellCancelEdit.bind(this)),this.registerComponentFunction("cell","navigatePrev",this.navigatePrev.bind(this)),this.registerComponentFunction("cell","navigateNext",this.navigateNext.bind(this)),this.registerComponentFunction("cell","navigateLeft",this.navigateLeft.bind(this)),this.registerComponentFunction("cell","navigateRight",this.navigateRight.bind(this)),this.registerComponentFunction("cell","navigateUp",this.navigateUp.bind(this)),this.registerComponentFunction("cell","navigateDown",this.navigateDown.bind(this))}initialize(){this.subscribe("cell-init",this.bindEditor.bind(this)),this.subscribe("cell-delete",this.clearEdited.bind(this)),this.subscribe("cell-value-changed",this.updateCellClass.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("column-delete",this.columnDeleteCheck.bind(this)),this.subscribe("row-deleting",this.rowDeleteCheck.bind(this)),this.subscribe("row-layout",this.rowEditableCheck.bind(this)),this.subscribe("data-refreshing",this.cancelEdit.bind(this)),this.subscribe("clipboard-paste",this.pasteBlocker.bind(this)),this.subscribe("keybinding-nav-prev",this.navigatePrev.bind(this,void 0)),this.subscribe("keybinding-nav-next",this.keybindingNavigateNext.bind(this)),this.subscribe("keybinding-nav-up",this.navigateUp.bind(this,void 0)),this.subscribe("keybinding-nav-down",this.navigateDown.bind(this,void 0)),Object.keys(this.table.options).includes("editorEmptyValue")&&(this.convertEmptyValues=!0)}pasteBlocker(e){if(this.currentCell)return!0}keybindingNavigateNext(e){var t=this.currentCell,i=this.options("tabEndNewRow");t&&(this.navigateNext(t,e)||i&&(t.getElement().firstChild.blur(),this.invalidEdit||(i===!0?i=this.table.addRow({}):typeof i=="function"?i=this.table.addRow(i(t.row.getComponent())):i=this.table.addRow(Object.assign({},i)),i.then(()=>{setTimeout(()=>{t.getComponent().navigateNext()})}))))}cellIsEdited(e){return!!e.modules.edit&&e.modules.edit.edited}cellCancelEdit(e){e===this.currentCell?this.table.modules.edit.cancelEdit():console.warn("Cancel Editor Error - This cell is not currently being edited ")}updateCellClass(e){this.allowEdit(e)?e.getElement().classList.add("tabulator-editable"):e.getElement().classList.remove("tabulator-editable")}clearCellEdited(e){e||(e=this.table.modules.edit.getEditedCells()),Array.isArray(e)||(e=[e]),e.forEach(t=>{this.table.modules.edit.clearEdited(t._getSelf())})}navigatePrev(e=this.currentCell,t){var i,a;if(e){if(t&&t.preventDefault(),i=this.navigateLeft(),i)return!0;if(a=this.table.rowManager.prevDisplayRow(e.row,!0),a&&(i=this.findPrevEditableCell(a,a.cells.length),i))return i.getComponent().edit(),!0}return!1}navigateNext(e=this.currentCell,t){var i,a;if(e){if(t&&t.preventDefault(),i=this.navigateRight(),i)return!0;if(a=this.table.rowManager.nextDisplayRow(e.row,!0),a&&(i=this.findNextEditableCell(a,-1),i))return i.getComponent().edit(),!0}return!1}navigateLeft(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.findPrevEditableCell(e.row,i),a)?(a.getComponent().edit(),!0):!1}navigateRight(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.findNextEditableCell(e.row,i),a)?(a.getComponent().edit(),!0):!1}navigateUp(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.table.rowManager.prevDisplayRow(e.row,!0),a)?(a.cells[i].getComponent().edit(),!0):!1}navigateDown(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.table.rowManager.nextDisplayRow(e.row,!0),a)?(a.cells[i].getComponent().edit(),!0):!1}findNextEditableCell(e,t){var i=!1;if(t<e.cells.length-1)for(var a=t+1;a<e.cells.length;a++){let n=e.cells[a];if(n.column.modules.edit&&G.elVisible(n.getElement())&&this.allowEdit(n)){i=n;break}}return i}findPrevEditableCell(e,t){var i=!1;if(t>0)for(var a=t-1;a>=0;a--){let n=e.cells[a];if(n.column.modules.edit&&G.elVisible(n.getElement())&&this.allowEdit(n)){i=n;break}}return i}initializeColumnCheck(e){typeof e.definition.editor<"u"&&this.initializeColumn(e)}columnDeleteCheck(e){this.currentCell&&this.currentCell.column===e&&this.cancelEdit()}rowDeleteCheck(e){this.currentCell&&this.currentCell.row===e&&this.cancelEdit()}rowEditableCheck(e){e.getCells().forEach(t=>{t.column.modules.edit&&typeof t.column.modules.edit.check=="function"&&this.updateCellClass(t)})}initializeColumn(e){var t=Object.keys(e.definition).includes("editorEmptyValue"),i={editor:!1,blocked:!1,check:e.definition.editable,params:e.definition.editorParams||{},convertEmptyValues:t,editorEmptyValue:e.definition.editorEmptyValue,editorEmptyValueFunc:e.definition.editorEmptyValueFunc};i.editor=this.lookupEditor(e.definition.editor,e),i.editor&&(e.modules.edit=i)}lookupEditor(e,t){var i;switch(typeof e){case"string":this.editors[e]?i=this.editors[e]:console.warn("Editor Error - No such editor found: ",e);break;case"function":i=e;break;case"boolean":e===!0&&(typeof t.definition.formatter!="function"?this.editors[t.definition.formatter]?i=this.editors[t.definition.formatter]:i=this.editors.input:console.warn("Editor Error - Cannot auto lookup editor for a custom formatter: ",t.definition.formatter));break}return i}getCurrentCell(){return this.currentCell?this.currentCell.getComponent():!1}clearEditor(e){var t=this.currentCell,i;if(this.invalidEdit=!1,t){for(this.currentCell=!1,i=t.getElement(),this.dispatch("edit-editor-clear",t,e),i.classList.remove("tabulator-editing");i.firstChild;)i.removeChild(i.firstChild);t.row.getElement().classList.remove("tabulator-editing"),t.table.element.classList.remove("tabulator-editing")}}cancelEdit(){if(this.currentCell){var e=this.currentCell,t=this.currentCell.getComponent();this.clearEditor(!0),e.setValueActual(e.getValue()),e.cellRendered(),(e.column.definition.editor=="textarea"||e.column.definition.variableHeight)&&e.row.normalizeHeight(!0),e.column.definition.cellEditCancelled&&e.column.definition.cellEditCancelled.call(this.table,t),this.dispatch("edit-cancelled",e),this.dispatchExternal("cellEditCancelled",t)}}bindEditor(e){if(e.column.modules.edit){var t=this,i=e.getElement(!0);this.updateCellClass(e),i.setAttribute("tabindex",0),i.addEventListener("mousedown",function(a){a.button===2?a.preventDefault():t.mouseClick=!0}),this.options("editTriggerEvent")==="dblclick"&&i.addEventListener("dblclick",function(a){i.classList.contains("tabulator-editing")||(i.focus({preventScroll:!0}),t.edit(e,a,!1))}),(this.options("editTriggerEvent")==="focus"||this.options("editTriggerEvent")==="click")&&i.addEventListener("click",function(a){i.classList.contains("tabulator-editing")||(i.focus({preventScroll:!0}),t.edit(e,a,!1))}),this.options("editTriggerEvent")==="focus"&&i.addEventListener("focus",function(a){t.recursionBlock||t.edit(e,a,!1)})}}focusCellNoEvent(e,t){this.recursionBlock=!0,t&&this.table.browser==="ie"||e.getElement().focus({preventScroll:!0}),this.recursionBlock=!1}editCell(e,t){this.focusCellNoEvent(e),this.edit(e,!1,t)}focusScrollAdjust(e){if(this.table.rowManager.getRenderMode()=="virtual"){var t=this.table.rowManager.element.scrollTop,i=this.table.rowManager.element.clientHeight+this.table.rowManager.element.scrollTop,a=e.row.getElement();a.offsetTop<t?this.table.rowManager.element.scrollTop-=t-a.offsetTop:a.offsetTop+a.offsetHeight>i&&(this.table.rowManager.element.scrollTop+=a.offsetTop+a.offsetHeight-i);var n=this.table.rowManager.element.scrollLeft,r=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,l=e.getElement();this.table.modExists("frozenColumns")&&(n+=parseInt(this.table.modules.frozenColumns.leftMargin||0),r-=parseInt(this.table.modules.frozenColumns.rightMargin||0)),this.table.options.renderHorizontal==="virtual"&&(n-=parseInt(this.table.columnManager.renderer.vDomPadLeft),r-=parseInt(this.table.columnManager.renderer.vDomPadLeft)),l.offsetLeft<n?this.table.rowManager.element.scrollLeft-=n-l.offsetLeft:l.offsetLeft+l.offsetWidth>r&&(this.table.rowManager.element.scrollLeft+=l.offsetLeft+l.offsetWidth-r)}}allowEdit(e){var t=!!e.column.modules.edit;if(e.column.modules.edit)switch(typeof e.column.modules.edit.check){case"function":e.row.initialized&&(t=e.column.modules.edit.check(e.getComponent()));break;case"string":t=!!e.row.data[e.column.modules.edit.check];break;case"boolean":t=e.column.modules.edit.check;break}return t}edit(e,t,i){var a=this,n=!0,r=function(){},l=e.getElement(),h=!1,d,u,p;if(this.currentCell){!this.invalidEdit&&this.currentCell!==e&&this.cancelEdit();return}function y(m){if(a.currentCell===e&&!h){var M=a.chain("edit-success",[e,m],!0,!0);return M===!0||a.table.options.validationMode==="highlight"?(h=!0,a.clearEditor(),e.modules.edit||(e.modules.edit={}),e.modules.edit.edited=!0,a.editedCells.indexOf(e)==-1&&a.editedCells.push(e),m=a.transformEmptyValues(m,e),e.setValue(m,!0),M===!0):(h=!0,a.invalidEdit=!0,a.focusCellNoEvent(e,!0),r(),setTimeout(()=>{h=!1},10),!1)}}function f(){a.currentCell===e&&!h&&a.cancelEdit()}function g(m){r=m}if(e.column.modules.edit.blocked)return this.mouseClick=!1,this.blur(l),!1;if(t&&t.stopPropagation(),n=this.allowEdit(e),n||i){if(a.cancelEdit(),a.currentCell=e,this.focusScrollAdjust(e),u=e.getComponent(),this.mouseClick&&(this.mouseClick=!1,e.column.definition.cellClick&&e.column.definition.cellClick.call(this.table,t,u)),e.column.definition.cellEditing&&e.column.definition.cellEditing.call(this.table,u),this.dispatch("cell-editing",e),this.dispatchExternal("cellEditing",u),p=typeof e.column.modules.edit.params=="function"?e.column.modules.edit.params(u):e.column.modules.edit.params,d=e.column.modules.edit.editor.call(a,u,g,y,f,p),this.currentCell&&d!==!1)if(d instanceof Node){for(l.classList.add("tabulator-editing"),e.row.getElement().classList.add("tabulator-editing"),e.table.element.classList.add("tabulator-editing");l.firstChild;)l.removeChild(l.firstChild);l.appendChild(d),r();for(var k=l.children,b=0;b<k.length;b++)k[b].addEventListener("click",function(m){m.stopPropagation()})}else return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",d),this.blur(l),!1;else return this.blur(l),!1;return!0}else return this.mouseClick=!1,this.blur(l),!1}emptyValueCheck(e){return e===""||e===null||typeof e>"u"}transformEmptyValues(e,t){var i=t.column.modules.edit,a=i.convertEmptyValues||this.convertEmptyValues,n;return a&&(n=i.editorEmptyValueFunc||this.options("editorEmptyValueFunc"),n&&n(e)&&(e=i.convertEmptyValues?i.editorEmptyValue:this.options("editorEmptyValue"))),e}blur(e){this.confirm("edit-blur",[e])||e.blur()}getEditedCells(){var e=[];return this.editedCells.forEach(t=>{e.push(t.getComponent())}),e}clearEdited(e){var t;e.modules.edit&&e.modules.edit.edited&&(e.modules.edit.edited=!1,this.dispatch("edit-edited-clear",e)),t=this.editedCells.indexOf(e),t>-1&&this.editedCells.splice(t,1)}};E(Ln,"moduleName","edit"),E(Ln,"editors",ES);let k9=Ln;class _C{constructor(e,t,i,a){this.type=e,this.columns=t,this.component=i||!1,this.indent=a||0}}class b9{constructor(e,t,i,a,n){this.value=e,this.component=t||!1,this.width=i,this.height=a,this.depth=n}}var SS={},IS={visible:function(){return this.rowManager.getVisibleRows(!1,!0)},all:function(){return this.rowManager.rows},selected:function(){return this.modules.selectRow.selectedRows},active:function(){return this.options.pagination?this.rowManager.getDisplayRows(this.rowManager.displayRows.length-2):this.rowManager.getDisplayRows()}};const Ke=class Ke extends q{constructor(e){super(e),this.config={},this.cloneTableStyle=!0,this.colVisProp="",this.colVisPropAttach="",this.registerTableOption("htmlOutputConfig",!1),this.registerColumnOption("htmlOutput"),this.registerColumnOption("titleHtmlOutput")}initialize(){this.registerTableFunction("getHtml",this.getHtml.bind(this))}generateExportList(e,t,i,a){var n,r,l,h;return this.cloneTableStyle=t,this.config=e||{},this.colVisProp=a,this.colVisPropAttach=this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1),h=Ke.columnLookups[i],h&&(l=h.call(this.table),l=l.filter(d=>this.columnVisCheck(d))),n=this.config.columnHeaders!==!1?this.headersToExportRows(this.generateColumnGroupHeaders(l)):[],l&&(l=l.map(d=>d.getComponent())),r=this.bodyToExportRows(this.rowLookup(i),l),n.concat(r)}generateTable(e,t,i,a){var n=this.generateExportList(e,t,i,a);return this.generateTableElement(n)}rowLookup(e){var t=[],i;return typeof e=="function"?e.call(this.table).forEach(a=>{a=this.table.rowManager.findRow(a),a&&t.push(a)}):(i=Ke.rowLookups[e]||Ke.rowLookups.active,t=i.call(this.table)),Object.assign([],t)}generateColumnGroupHeaders(e){var t=[];return e||(e=this.config.columnGroups!==!1?this.table.columnManager.columns:this.table.columnManager.columnsByIndex),e.forEach(i=>{var a=this.processColumnGroup(i);a&&t.push(a)}),t}processColumnGroup(e){var t=e.columns,i=0,a=e.definition["title"+this.colVisPropAttach]||e.definition.title,n={title:a,column:e,depth:1};if(t.length){if(n.subGroups=[],n.width=0,t.forEach(r=>{var l=this.processColumnGroup(r);l&&(n.width+=l.width,n.subGroups.push(l),l.depth>i&&(i=l.depth))}),n.depth+=i,!n.width)return!1}else if(this.columnVisCheck(e))n.width=1;else return!1;return n}columnVisCheck(e){var t=e.definition[this.colVisProp];return this.config.rowHeaders===!1&&e.isRowHeader?!1:(typeof t=="function"&&(t=t.call(this.table,e.getComponent())),t===!1||t===!0?t:e.visible&&e.field)}headersToExportRows(e){var t=[],i=0,a=[];function n(r,l){var h=i-l;if(typeof t[l]>"u"&&(t[l]=[]),r.height=r.subGroups?1:h-r.depth+1,t[l].push(r),r.height>1)for(let d=1;d<r.height;d++)typeof t[l+d]>"u"&&(t[l+d]=[]),t[l+d].push(!1);if(r.width>1)for(let d=1;d<r.width;d++)t[l].push(!1);r.subGroups&&r.subGroups.forEach(function(d){n(d,l+1)})}return e.forEach(function(r){r.depth>i&&(i=r.depth)}),e.forEach(function(r){n(r,0)}),t.forEach(r=>{var l=[];r.forEach(h=>{if(h){let d=typeof h.title>"u"?"":h.title;l.push(new b9(d,h.column.getComponent(),h.width,h.height,h.depth))}else l.push(null)}),a.push(new _C("header",l))}),a}bodyToExportRows(e,t=[]){var i=[];return t.length===0&&this.table.columnManager.columnsByIndex.forEach(a=>{this.columnVisCheck(a)&&t.push(a.getComponent())}),this.config.columnCalcs!==!1&&this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&e.unshift(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&e.push(this.table.modules.columnCalcs.botRow)),e=e.filter(a=>{switch(a.type){case"group":return this.config.rowGroups!==!1;case"calc":return this.config.columnCalcs!==!1;case"row":return!(this.table.options.dataTree&&this.config.dataTree===!1&&a.modules.dataTree.parent)}return!0}),e.forEach((a,n)=>{var r=a.getData(this.colVisProp),l=[],h=0;switch(a.type){case"group":h=a.level,l.push(new b9(a.key,a.getComponent(),t.length,1));break;case"calc":case"row":t.forEach(d=>{l.push(new b9(d._column.getFieldValue(r),d,1,1))}),this.table.options.dataTree&&this.config.dataTree!==!1&&(h=a.modules.dataTree.index);break}i.push(new _C(a.type,l,a.getComponent(),h))}),i}generateTableElement(e){var t=document.createElement("table"),i=document.createElement("thead"),a=document.createElement("tbody"),n=this.lookupTableStyles(),r=this.table.options["rowFormatter"+this.colVisPropAttach],l={};return l.rowFormatter=r!==null?r:this.table.options.rowFormatter,this.table.options.dataTree&&this.config.dataTree!==!1&&this.table.modExists("columnCalcs")&&(l.treeElementField=this.table.modules.dataTree.elementField),l.groupHeader=this.table.options["groupHeader"+this.colVisPropAttach],l.groupHeader&&!Array.isArray(l.groupHeader)&&(l.groupHeader=[l.groupHeader]),t.classList.add("tabulator-print-table"),this.mapElementStyles(this.table.columnManager.getHeadersElement(),i,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),e.length>1e3&&console.warn("It may take a long time to render an HTML table with more than 1000 rows"),e.forEach((h,d)=>{let u;switch(h.type){case"header":i.appendChild(this.generateHeaderElement(h,l,n));break;case"group":a.appendChild(this.generateGroupElement(h,l,n));break;case"calc":a.appendChild(this.generateCalcElement(h,l,n));break;case"row":u=this.generateRowElement(h,l,n),this.mapElementStyles(d%2&&n.evenRow?n.evenRow:n.oddRow,u,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),a.appendChild(u);break}}),i.innerHTML&&t.appendChild(i),t.appendChild(a),this.mapElementStyles(this.table.element,t,["border-top","border-left","border-right","border-bottom"]),t}lookupTableStyles(){var e={};return this.cloneTableStyle&&window.getComputedStyle&&(e.oddRow=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),e.evenRow=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),e.calcRow=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),e.firstRow=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),e.firstGroup=this.table.element.getElementsByClassName("tabulator-group")[0],e.firstRow&&(e.styleCells=e.firstRow.getElementsByClassName("tabulator-cell"),e.styleRowHeader=e.firstRow.getElementsByClassName("tabulator-row-header")[0],e.firstCell=e.styleCells[0],e.lastCell=e.styleCells[e.styleCells.length-1])),e}generateHeaderElement(e,t,i){var a=document.createElement("tr");return e.columns.forEach(n=>{if(n){var r=document.createElement("th"),l=n.component._column.definition.cssClass?n.component._column.definition.cssClass.split(" "):[];r.colSpan=n.width,r.rowSpan=n.height,r.innerHTML=n.value,this.cloneTableStyle&&(r.style.boxSizing="border-box"),l.forEach(function(h){r.classList.add(h)}),this.mapElementStyles(n.component.getElement(),r,["text-align","border-left","border-right","background-color","color","font-weight","font-family","font-size"]),this.mapElementStyles(n.component._column.contentElement,r,["padding-top","padding-left","padding-right","padding-bottom"]),n.component._column.visible?this.mapElementStyles(n.component.getElement(),r,["width"]):n.component._column.definition.width&&(r.style.width=n.component._column.definition.width+"px"),n.component._column.parent&&n.component._column.parent.isGroup?this.mapElementStyles(n.component._column.parent.groupElement,r,["border-top"]):this.mapElementStyles(n.component.getElement(),r,["border-top"]),n.component._column.isGroup?this.mapElementStyles(n.component.getElement(),r,["border-bottom"]):this.mapElementStyles(this.table.columnManager.getElement(),r,["border-bottom"]),a.appendChild(r)}}),a}generateGroupElement(e,t,i){var a=document.createElement("tr"),n=document.createElement("td"),r=e.columns[0];return a.classList.add("tabulator-print-table-row"),t.groupHeader&&t.groupHeader[e.indent]?r.value=t.groupHeader[e.indent](r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component):t.groupHeader!==!1&&(r.value=e.component._group.generator(r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)),n.colSpan=r.width,n.innerHTML=r.value,a.classList.add("tabulator-print-table-group"),a.classList.add("tabulator-group-level-"+e.indent),r.component.isVisible()&&a.classList.add("tabulator-group-visible"),this.mapElementStyles(i.firstGroup,a,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(i.firstGroup,n,["padding-top","padding-left","padding-right","padding-bottom"]),a.appendChild(n),a}generateCalcElement(e,t,i){var a=this.generateRowElement(e,t,i);return a.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(i.calcRow,a,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),a}generateRowElement(e,t,i){var a=document.createElement("tr");if(a.classList.add("tabulator-print-table-row"),e.columns.forEach((n,r)=>{if(n){var l=document.createElement("td"),h=n.component._column,d=this.table,u=d.columnManager.findColumnIndex(h),p=n.value,y,f,g={modules:{},getValue:function(){return p},getField:function(){return h.definition.field},getElement:function(){return l},getType:function(){return"cell"},getColumn:function(){return h.getComponent()},getData:function(){return e.component.getData()},getRow:function(){return e.component},getTable:function(){return d},getComponent:function(){return g},column:h},k=h.definition.cssClass?h.definition.cssClass.split(" "):[];if(k.forEach(function(b){l.classList.add(b)}),this.table.modExists("format")&&this.config.formatCells!==!1)p=this.table.modules.format.formatExportValue(g,this.colVisProp);else switch(typeof p){case"object":p=p!==null?JSON.stringify(p):"";break;case"undefined":p="";break}p instanceof Node?l.appendChild(p):l.innerHTML=p,f=["padding-top","padding-left","padding-right","padding-bottom","border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","text-align"],h.isRowHeader?(y=i.styleRowHeader,f.push("background-color")):y=i.styleCells&&i.styleCells[u]?i.styleCells[u]:i.firstCell,y&&(this.mapElementStyles(y,l,f),h.definition.align&&(l.style.textAlign=h.definition.align)),this.table.options.dataTree&&this.config.dataTree!==!1&&(t.treeElementField&&t.treeElementField==h.field||!t.treeElementField&&r==0)&&(e.component._row.modules.dataTree.controlEl&&l.insertBefore(e.component._row.modules.dataTree.controlEl.cloneNode(!0),l.firstChild),e.component._row.modules.dataTree.branchEl&&l.insertBefore(e.component._row.modules.dataTree.branchEl.cloneNode(!0),l.firstChild)),a.appendChild(l),g.modules.format&&g.modules.format.renderedCallback&&g.modules.format.renderedCallback()}}),t.rowFormatter&&e.type==="row"&&this.config.formatCells!==!1){let n=Object.assign(e.component);n.getElement=function(){return a},t.rowFormatter(e.component)}return a}generateHTMLTable(e){var t=document.createElement("div");return t.appendChild(this.generateTableElement(e)),t.innerHTML}getHtml(e,t,i,a){var n=this.generateExportList(i||this.table.options.htmlOutputConfig,t,e,a||"htmlOutput");return this.generateHTMLTable(n)}mapElementStyles(e,t,i){if(this.cloneTableStyle&&e&&t){var a={"background-color":"backgroundColor",color:"fontColor",width:"width","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom","padding-top":"paddingTop","padding-left":"paddingLeft","padding-right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle){var n=window.getComputedStyle(e);i.forEach(function(r){t.style[a[r]]||(t.style[a[r]]=n.getPropertyValue(r))})}}}};E(Ke,"moduleName","export"),E(Ke,"columnLookups",SS),E(Ke,"rowLookups",IS);let w9=Ke;var TS={"=":function(o,e,t,i){return e==o},"<":function(o,e,t,i){return e<o},"<=":function(o,e,t,i){return e<=o},">":function(o,e,t,i){return e>o},">=":function(o,e,t,i){return e>=o},"!=":function(o,e,t,i){return e!=o},regex:function(o,e,t,i){return typeof o=="string"&&(o=new RegExp(o)),o.test(e)},like:function(o,e,t,i){return o===null||typeof o>"u"?e===o:typeof e<"u"&&e!==null?String(e).toLowerCase().indexOf(o.toLowerCase())>-1:!1},keywords:function(o,e,t,i){var a=o.toLowerCase().split(typeof i.separator>"u"?" ":i.separator),n=String(e===null||typeof e>"u"?"":e).toLowerCase(),r=[];return a.forEach(l=>{n.includes(l)&&r.push(!0)}),i.matchAll?r.length===a.length:!!r.length},starts:function(o,e,t,i){return o===null||typeof o>"u"?e===o:typeof e<"u"&&e!==null?String(e).toLowerCase().startsWith(o.toLowerCase()):!1},ends:function(o,e,t,i){return o===null||typeof o>"u"?e===o:typeof e<"u"&&e!==null?String(e).toLowerCase().endsWith(o.toLowerCase()):!1},in:function(o,e,t,i){return Array.isArray(o)?o.length?o.indexOf(e)>-1:!0:(console.warn("Filter Error - filter value is not an array:",o),!1)}};const Fe=class Fe extends q{constructor(e){super(e),this.filterList=[],this.headerFilters={},this.headerFilterColumns=[],this.prevHeaderFilterChangeCheck="",this.prevHeaderFilterChangeCheck="{}",this.changed=!1,this.tableInitialized=!1,this.registerTableOption("filterMode","local"),this.registerTableOption("initialFilter",!1),this.registerTableOption("initialHeaderFilter",!1),this.registerTableOption("headerFilterLiveFilterDelay",300),this.registerTableOption("placeholderHeaderFilter",!1),this.registerColumnOption("headerFilter"),this.registerColumnOption("headerFilterPlaceholder"),this.registerColumnOption("headerFilterParams"),this.registerColumnOption("headerFilterEmptyCheck"),this.registerColumnOption("headerFilterFunc"),this.registerColumnOption("headerFilterFuncParams"),this.registerColumnOption("headerFilterLiveFilter"),this.registerTableFunction("searchRows",this.searchRows.bind(this)),this.registerTableFunction("searchData",this.searchData.bind(this)),this.registerTableFunction("setFilter",this.userSetFilter.bind(this)),this.registerTableFunction("refreshFilter",this.userRefreshFilter.bind(this)),this.registerTableFunction("addFilter",this.userAddFilter.bind(this)),this.registerTableFunction("getFilters",this.getFilters.bind(this)),this.registerTableFunction("setHeaderFilterFocus",this.userSetHeaderFilterFocus.bind(this)),this.registerTableFunction("getHeaderFilterValue",this.userGetHeaderFilterValue.bind(this)),this.registerTableFunction("setHeaderFilterValue",this.userSetHeaderFilterValue.bind(this)),this.registerTableFunction("getHeaderFilters",this.getHeaderFilters.bind(this)),this.registerTableFunction("removeFilter",this.userRemoveFilter.bind(this)),this.registerTableFunction("clearFilter",this.userClearFilter.bind(this)),this.registerTableFunction("clearHeaderFilter",this.userClearHeaderFilter.bind(this)),this.registerComponentFunction("column","headerFilterFocus",this.setHeaderFilterFocus.bind(this)),this.registerComponentFunction("column","reloadHeaderFilter",this.reloadHeaderFilter.bind(this)),this.registerComponentFunction("column","getHeaderFilterValue",this.getHeaderFilterValue.bind(this)),this.registerComponentFunction("column","setHeaderFilterValue",this.setHeaderFilterValue.bind(this))}initialize(){this.subscribe("column-init",this.initializeColumnHeaderFilter.bind(this)),this.subscribe("column-width-fit-before",this.hideHeaderFilterElements.bind(this)),this.subscribe("column-width-fit-after",this.showHeaderFilterElements.bind(this)),this.subscribe("table-built",this.tableBuilt.bind(this)),this.subscribe("placeholder",this.generatePlaceholder.bind(this)),this.table.options.filterMode==="remote"&&this.subscribe("data-params",this.remoteFilterParams.bind(this)),this.registerDataHandler(this.filter.bind(this),10)}tableBuilt(){this.table.options.initialFilter&&this.setFilter(this.table.options.initialFilter),this.table.options.initialHeaderFilter&&this.table.options.initialHeaderFilter.forEach(e=>{var t=this.table.columnManager.findColumn(e.field);if(t)this.setHeaderFilterValue(t,e.value);else return console.warn("Column Filter Error - No matching column found:",e.field),!1}),this.tableInitialized=!0}remoteFilterParams(e,t,i,a){return a.filter=this.getFilters(!0,!0),a}generatePlaceholder(e){if(this.table.options.placeholderHeaderFilter&&Object.keys(this.headerFilters).length)return this.table.options.placeholderHeaderFilter}userSetFilter(e,t,i,a){this.setFilter(e,t,i,a),this.refreshFilter()}userRefreshFilter(){this.refreshFilter()}userAddFilter(e,t,i,a){this.addFilter(e,t,i,a),this.refreshFilter()}userSetHeaderFilterFocus(e){var t=this.table.columnManager.findColumn(e);if(t)this.setHeaderFilterFocus(t);else return console.warn("Column Filter Focus Error - No matching column found:",e),!1}userGetHeaderFilterValue(e){var t=this.table.columnManager.findColumn(e);if(t)return this.getHeaderFilterValue(t);console.warn("Column Filter Error - No matching column found:",e)}userSetHeaderFilterValue(e,t){var i=this.table.columnManager.findColumn(e);if(i)this.setHeaderFilterValue(i,t);else return console.warn("Column Filter Error - No matching column found:",e),!1}userRemoveFilter(e,t,i){this.removeFilter(e,t,i),this.refreshFilter()}userClearFilter(e){this.clearFilter(e),this.refreshFilter()}userClearHeaderFilter(){this.clearHeaderFilter(),this.refreshFilter()}searchRows(e,t,i){return this.search("rows",e,t,i)}searchData(e,t,i){return this.search("data",e,t,i)}initializeColumnHeaderFilter(e){var t=e.definition;t.headerFilter&&this.initializeColumn(e)}initializeColumn(e,t){var i=this,a=e.getField();function n(r){var l=e.modules.filter.tagType=="input"&&e.modules.filter.attrType=="text"||e.modules.filter.tagType=="textarea"?"partial":"match",h="",d="",u;if(typeof e.modules.filter.prevSuccess>"u"||e.modules.filter.prevSuccess!==r){if(e.modules.filter.prevSuccess=r,e.modules.filter.emptyFunc(r))delete i.headerFilters[a];else{switch(e.modules.filter.value=r,typeof e.definition.headerFilterFunc){case"string":Fe.filters[e.definition.headerFilterFunc]?(h=e.definition.headerFilterFunc,u=function(p){var y=e.definition.headerFilterFuncParams||{},f=e.getFieldValue(p);return y=typeof y=="function"?y(r,f,p):y,Fe.filters[e.definition.headerFilterFunc](r,f,p,y)}):console.warn("Header Filter Error - Matching filter function not found: ",e.definition.headerFilterFunc);break;case"function":u=function(p){var y=e.definition.headerFilterFuncParams||{},f=e.getFieldValue(p);return y=typeof y=="function"?y(r,f,p):y,e.definition.headerFilterFunc(r,f,p,y)},h=u;break}if(!u)switch(l){case"partial":u=function(p){var y=e.getFieldValue(p);return typeof y<"u"&&y!==null?String(y).toLowerCase().indexOf(String(r).toLowerCase())>-1:!1},h="like";break;default:u=function(p){return e.getFieldValue(p)==r},h="="}i.headerFilters[a]={value:r,func:u,type:h}}e.modules.filter.value=r,d=JSON.stringify(i.headerFilters),i.prevHeaderFilterChangeCheck!==d&&(i.prevHeaderFilterChangeCheck=d,i.trackChanges(),i.refreshFilter())}return!0}e.modules.filter={success:n,attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(e)}generateHeaderFilterElement(e,t,i){var a=this,n=e.modules.filter.success,r=e.getField(),l,h,d,u,p,y,f,g;e.modules.filter.value=t;function k(){}function b(m){g=m}if(e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode&&e.contentElement.removeChild(e.modules.filter.headerElement.parentNode),r){switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(m){return!m&&m!==0},l=document.createElement("div"),l.classList.add("tabulator-header-filter"),typeof e.definition.headerFilter){case"string":a.table.modules.edit.editors[e.definition.headerFilter]?(h=a.table.modules.edit.editors[e.definition.headerFilter],(e.definition.headerFilter==="tick"||e.definition.headerFilter==="tickCross")&&!e.definition.headerFilterEmptyCheck&&(e.modules.filter.emptyFunc=function(m){return m!==!0&&m!==!1})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",e.definition.editor);break;case"function":h=e.definition.headerFilter;break;case"boolean":e.modules.edit&&e.modules.edit.editor?h=e.modules.edit.editor:e.definition.formatter&&a.table.modules.edit.editors[e.definition.formatter]?(h=a.table.modules.edit.editors[e.definition.formatter],(e.definition.formatter==="tick"||e.definition.formatter==="tickCross")&&!e.definition.headerFilterEmptyCheck&&(e.modules.filter.emptyFunc=function(m){return m!==!0&&m!==!1})):h=a.table.modules.edit.editors.input;break}if(h){if(u={getValue:function(){return typeof t<"u"?t:""},getField:function(){return e.definition.field},getElement:function(){return l},getColumn:function(){return e.getComponent()},getTable:()=>this.table,getType:()=>"header",getRow:function(){return{normalizeHeight:function(){}}}},f=e.definition.headerFilterParams||{},f=typeof f=="function"?f.call(a.table,u):f,d=h.call(this.table.modules.edit,u,b,n,k,f),!d){console.warn("Filter Error - Cannot add filter to "+r+" column, editor returned a value of false");return}if(!(d instanceof Node)){console.warn("Filter Error - Cannot add filter to "+r+" column, editor should return an instance of Node, the editor returned:",d);return}a.langBind("headerFilters|columns|"+e.definition.field,function(m){d.setAttribute("placeholder",typeof m<"u"&&m?m:e.definition.headerFilterPlaceholder||a.langText("headerFilters|default"))}),d.addEventListener("click",function(m){m.stopPropagation(),d.focus()}),d.addEventListener("focus",m=>{var M=this.table.columnManager.contentsElement.scrollLeft,v=this.table.rowManager.element.scrollLeft;M!==v&&(this.table.rowManager.scrollHorizontal(M),this.table.columnManager.scrollHorizontal(M))}),p=!1,y=function(m){p&&clearTimeout(p),p=setTimeout(function(){n(d.value)},a.table.options.headerFilterLiveFilterDelay)},e.modules.filter.headerElement=d,e.modules.filter.attrType=d.hasAttribute("type")?d.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=d.tagName.toLowerCase(),e.definition.headerFilterLiveFilter!==!1&&(e.definition.headerFilter==="autocomplete"||e.definition.headerFilter==="tickCross"||(e.definition.editor==="autocomplete"||e.definition.editor==="tickCross")&&e.definition.headerFilter===!0||(d.addEventListener("keyup",y),d.addEventListener("search",y),e.modules.filter.attrType=="number"&&d.addEventListener("change",function(m){n(d.value)}),e.modules.filter.attrType=="text"&&this.table.browser!=="ie"&&d.setAttribute("type","search")),(e.modules.filter.tagType=="input"||e.modules.filter.tagType=="select"||e.modules.filter.tagType=="textarea")&&d.addEventListener("mousedown",function(m){m.stopPropagation()})),l.appendChild(d),e.contentElement.appendChild(l),i||a.headerFilterColumns.push(e),g&&g()}}else console.warn("Filter Error - Cannot add header filter, column has no field set:",e.definition.title)}hideHeaderFilterElements(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="none")})}showHeaderFilterElements(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="")})}setHeaderFilterFocus(e){e.modules.filter&&e.modules.filter.headerElement?e.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No header filter set on column:",e.getField())}getHeaderFilterValue(e){if(e.modules.filter&&e.modules.filter.headerElement)return e.modules.filter.value;console.warn("Column Filter Error - No header filter set on column:",e.getField())}setHeaderFilterValue(e,t){e&&(e.modules.filter&&e.modules.filter.headerElement?(this.generateHeaderFilterElement(e,t,!0),e.modules.filter.success(t)):console.warn("Column Filter Error - No header filter set on column:",e.getField()))}reloadHeaderFilter(e){e&&(e.modules.filter&&e.modules.filter.headerElement?this.generateHeaderFilterElement(e,e.modules.filter.value,!0):console.warn("Column Filter Error - No header filter set on column:",e.getField()))}refreshFilter(){this.tableInitialized&&(this.table.options.filterMode==="remote"?this.reloadData(null,!1,!1):this.refreshData(!0))}trackChanges(){this.changed=!0,this.dispatch("filter-changed")}hasChanged(){var e=this.changed;return this.changed=!1,e}setFilter(e,t,i,a){this.filterList=[],Array.isArray(e)||(e=[{field:e,type:t,value:i,params:a}]),this.addFilter(e)}addFilter(e,t,i,a){var n=!1;Array.isArray(e)||(e=[{field:e,type:t,value:i,params:a}]),e.forEach(r=>{r=this.findFilter(r),r&&(this.filterList.push(r),n=!0)}),n&&this.trackChanges()}findFilter(e){var t;if(Array.isArray(e))return this.findSubFilters(e);var i=!1;return typeof e.field=="function"?i=function(a){return e.field(a,e.type||{})}:Fe.filters[e.type]?(t=this.table.columnManager.getColumnByField(e.field),t?i=function(a){return Fe.filters[e.type](e.value,t.getFieldValue(a),a,e.params||{})}:i=function(a){return Fe.filters[e.type](e.value,a[e.field],a,e.params||{})}):console.warn("Filter Error - No such filter type found, ignoring: ",e.type),e.func=i,e.func?e:!1}findSubFilters(e){var t=[];return e.forEach(i=>{i=this.findFilter(i),i&&t.push(i)}),t.length?t:!1}getFilters(e,t){var i=[];return e&&(i=this.getHeaderFilters()),t&&i.forEach(function(a){typeof a.type=="function"&&(a.type="function")}),i=i.concat(this.filtersToArray(this.filterList,t)),i}filtersToArray(e,t){var i=[];return e.forEach(a=>{var n;Array.isArray(a)?i.push(this.filtersToArray(a,t)):(n={field:a.field,type:a.type,value:a.value},t&&typeof n.type=="function"&&(n.type="function"),i.push(n))}),i}getHeaderFilters(){var e=[];for(var t in this.headerFilters)e.push({field:t,type:this.headerFilters[t].type,value:this.headerFilters[t].value});return e}removeFilter(e,t,i){Array.isArray(e)||(e=[{field:e,type:t,value:i}]),e.forEach(a=>{var n=-1;typeof a.field=="object"?n=this.filterList.findIndex(r=>a===r):n=this.filterList.findIndex(r=>a.field===r.field&&a.type===r.type&&a.value===r.value),n>-1?this.filterList.splice(n,1):console.warn("Filter Error - No matching filter type found, ignoring: ",a.type)}),this.trackChanges()}clearFilter(e){this.filterList=[],e&&this.clearHeaderFilter(),this.trackChanges()}clearHeaderFilter(){this.headerFilters={},this.prevHeaderFilterChangeCheck="{}",this.headerFilterColumns.forEach(e=>{typeof e.modules.filter.value<"u"&&delete e.modules.filter.value,e.modules.filter.prevSuccess=void 0,this.reloadHeaderFilter(e)}),this.trackChanges()}search(e,t,i,a){var n=[],r=[];return Array.isArray(t)||(t=[{field:t,type:i,value:a}]),t.forEach(l=>{l=this.findFilter(l),l&&r.push(l)}),this.table.rowManager.rows.forEach(l=>{var h=!0;r.forEach(d=>{this.filterRecurse(d,l.getData())||(h=!1)}),h&&n.push(e==="data"?l.getData("data"):l.getComponent())}),n}filter(e,t){var i=[],a=[];return this.subscribedExternal("dataFiltering")&&this.dispatchExternal("dataFiltering",this.getFilters(!0)),this.table.options.filterMode!=="remote"&&(this.filterList.length||Object.keys(this.headerFilters).length)?e.forEach(n=>{this.filterRow(n)&&i.push(n)}):i=e.slice(0),this.subscribedExternal("dataFiltered")&&(i.forEach(n=>{a.push(n.getComponent())}),this.dispatchExternal("dataFiltered",this.getFilters(!0),a)),i}filterRow(e,t){var i=!0,a=e.getData();this.filterList.forEach(r=>{this.filterRecurse(r,a)||(i=!1)});for(var n in this.headerFilters)this.headerFilters[n].func(a)||(i=!1);return i}filterRecurse(e,t){var i=!1;return Array.isArray(e)?e.forEach(a=>{this.filterRecurse(a,t)&&(i=!0)}):i=e.func(t),i}};E(Fe,"moduleName","filter"),E(Fe,"filters",TS);let v9=Fe;function DS(o,e,t){return this.emptyToSpace(this.sanitizeHTML(o.getValue()))}function zS(o,e,t){return o.getValue()}function RS(o,e,t){return o.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(o.getValue()))}function HS(o,e,t){var i=parseFloat(o.getValue()),a="",n,r,l,h,d,u=e.decimal||".",p=e.thousand||",",y=e.negativeSign||"-",f=e.symbol||"",g=!!e.symbolAfter,k=typeof e.precision<"u"?e.precision:2;if(isNaN(i))return this.emptyToSpace(this.sanitizeHTML(o.getValue()));if(i<0&&(i=Math.abs(i),a=y),n=k!==!1?i.toFixed(k):i,n=String(n).split("."),r=n[0],l=n.length>1?u+n[1]:"",e.thousand!==!1)for(h=/(\d+)(\d{3})/;h.test(r);)r=r.replace(h,"$1"+p+"$2");return d=r+l,a===!0?(d="("+d+")",g?d+f:f+d):g?a+d+f:a+f+d}function AS(o,e,t){var i=o.getValue(),a=e.urlPrefix||"",n=e.download,r=i,l=document.createElement("a"),h;function d(u,p){var y=u.shift(),f=p[y];return u.length&&typeof f=="object"?d(u,f):f}if(e.labelField&&(h=o.getData(),r=d(e.labelField.split(this.table.options.nestedFieldSeparator),h)),e.label)switch(typeof e.label){case"string":r=e.label;break;case"function":r=e.label(o);break}if(r){if(e.urlField&&(h=o.getData(),i=G.retrieveNestedData(this.table.options.nestedFieldSeparator,e.urlField,h)),e.url)switch(typeof e.url){case"string":i=e.url;break;case"function":i=e.url(o);break}return l.setAttribute("href",a+i),e.target&&l.setAttribute("target",e.target),e.download&&(typeof n=="function"?n=n(o):n=n===!0?"":n,l.setAttribute("download",n)),l.innerHTML=this.emptyToSpace(this.sanitizeHTML(r)),l}else return"&nbsp;"}function VS(o,e,t){var i=document.createElement("img"),a=o.getValue();switch(e.urlPrefix&&(a=e.urlPrefix+o.getValue()),e.urlSuffix&&(a=a+e.urlSuffix),i.setAttribute("src",a),typeof e.height){case"number":i.style.height=e.height+"px";break;case"string":i.style.height=e.height;break}switch(typeof e.width){case"number":i.style.width=e.width+"px";break;case"string":i.style.width=e.width;break}return i.addEventListener("load",function(){o.getRow().normalizeHeight()}),i}function PS(o,e,t){var i=o.getValue(),a=o.getElement(),n=e.allowEmpty,r=e.allowTruthy,l=Object.keys(e).includes("trueValue"),h=typeof e.tickElement<"u"?e.tickElement:'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>',d=typeof e.crossElement<"u"?e.crossElement:'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>';return l&&i===e.trueValue||!l&&(r&&i||i===!0||i==="true"||i==="True"||i===1||i==="1")?(a.setAttribute("aria-checked",!0),h||""):n&&(i==="null"||i===""||i===null||typeof i>"u")?(a.setAttribute("aria-checked","mixed"),""):(a.setAttribute("aria-checked",!1),d||"")}function qS(o,e,t){var i=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),a=e.inputFormat||"yyyy-MM-dd HH:mm:ss",n=e.outputFormat||"dd/MM/yyyy HH:mm:ss",r=typeof e.invalidPlaceholder<"u"?e.invalidPlaceholder:"",l=o.getValue();if(typeof i<"u"){var h;return i.isDateTime(l)?h=l:a==="iso"?h=i.fromISO(String(l)):h=i.fromFormat(String(l),a),h.isValid?(e.timezone&&(h=h.setZone(e.timezone)),h.toFormat(n)):r===!0||!l?l:typeof r=="function"?r(l):r}else console.error("Format Error - 'datetime' formatter is dependant on luxon.js")}function BS(o,e,t){var i=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),a=e.inputFormat||"yyyy-MM-dd HH:mm:ss",n=typeof e.invalidPlaceholder<"u"?e.invalidPlaceholder:"",r=typeof e.suffix<"u"?e.suffix:!1,l=typeof e.unit<"u"?e.unit:"days",h=typeof e.humanize<"u"?e.humanize:!1,d=typeof e.date<"u"?e.date:i.now(),u=o.getValue();if(typeof i<"u"){var p;return i.isDateTime(u)?p=u:a==="iso"?p=i.fromISO(String(u)):p=i.fromFormat(String(u),a),p.isValid?h?p.diff(d,l).toHuman()+(r?" "+r:""):parseInt(p.diff(d,l)[l])+(r?" "+r:""):n===!0?u:typeof n=="function"?n(u):n}else console.error("Format Error - 'datetimediff' formatter is dependant on luxon.js")}function FS(o,e,t){var i=o.getValue();return typeof e[i]>"u"?(console.warn("Missing display value for "+i),i):e[i]}function OS(o,e,t){var i=o.getValue(),a=o.getElement(),n=e&&e.stars?e.stars:5,r=document.createElement("span"),l=document.createElementNS("http://www.w3.org/2000/svg","svg"),h='<polygon fill="#FFEA00" stroke="#C1AB60" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>',d='<polygon fill="#D2D2D2" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>';r.style.verticalAlign="middle",l.setAttribute("width","14"),l.setAttribute("height","14"),l.setAttribute("viewBox","0 0 512 512"),l.setAttribute("xml:space","preserve"),l.style.padding="0 1px",i=i&&!isNaN(i)?parseInt(i):0,i=Math.max(0,Math.min(i,n));for(var u=1;u<=n;u++){var p=l.cloneNode(!0);p.innerHTML=u<=i?h:d,r.appendChild(p)}return a.style.whiteSpace="nowrap",a.style.overflow="hidden",a.style.textOverflow="ellipsis",a.setAttribute("aria-label",i),r}function jS(o,e,t){var i=this.sanitizeHTML(o.getValue())||0,a=document.createElement("span"),n=e&&e.max?e.max:100,r=e&&e.min?e.min:0,l=e&&typeof e.color<"u"?e.color:["red","orange","green"],h="#666666",d,u;if(!(isNaN(i)||typeof o.getValue()>"u")){switch(a.classList.add("tabulator-traffic-light"),u=parseFloat(i)<=n?parseFloat(i):n,u=parseFloat(u)>=r?parseFloat(u):r,d=(n-r)/100,u=Math.round((u-r)/d),typeof l){case"string":h=l;break;case"function":h=l(i);break;case"object":if(Array.isArray(l)){var p=100/l.length,y=Math.floor(u/p);y=Math.min(y,l.length-1),y=Math.max(y,0),h=l[y];break}}return a.style.backgroundColor=h,a}}function NS(o,e={},t){var i=this.sanitizeHTML(o.getValue())||0,a=o.getElement(),n=e.max?e.max:100,r=e.min?e.min:0,l=e.legendAlign?e.legendAlign:"center",h,d,u,p,y;switch(d=parseFloat(i)<=n?parseFloat(i):n,d=parseFloat(d)>=r?parseFloat(d):r,h=(n-r)/100,d=Math.round((d-r)/h),typeof e.color){case"string":u=e.color;break;case"function":u=e.color(i);break;case"object":if(Array.isArray(e.color)){let b=100/e.color.length,m=Math.floor(d/b);m=Math.min(m,e.color.length-1),m=Math.max(m,0),u=e.color[m];break}default:u="#2DC214"}switch(typeof e.legend){case"string":p=e.legend;break;case"function":p=e.legend(i);break;case"boolean":p=i;break;default:p=!1}switch(typeof e.legendColor){case"string":y=e.legendColor;break;case"function":y=e.legendColor(i);break;case"object":if(Array.isArray(e.legendColor)){let b=100/e.legendColor.length,m=Math.floor(d/b);m=Math.min(m,e.legendColor.length-1),m=Math.max(m,0),y=e.legendColor[m]}break;default:y="#000"}a.style.minWidth="30px",a.style.position="relative",a.setAttribute("aria-label",d);var f=document.createElement("div");f.style.display="inline-block",f.style.width=d+"%",f.style.backgroundColor=u,f.style.height="100%",f.setAttribute("data-max",n),f.setAttribute("data-min",r);var g=document.createElement("div");if(g.style.position="relative",g.style.width="100%",g.style.height="100%",p){var k=document.createElement("div");k.style.position="absolute",k.style.top=0,k.style.left=0,k.style.textAlign=l,k.style.width="100%",k.style.color=y,k.innerHTML=p}return t(function(){if(!(o instanceof FC)){var b=document.createElement("div");b.style.position="absolute",b.style.top="4px",b.style.bottom="4px",b.style.left="4px",b.style.right="4px",a.appendChild(b),a=b}a.appendChild(g),g.appendChild(f),p&&g.appendChild(k)}),""}function _S(o,e,t){return o.getElement().style.backgroundColor=this.sanitizeHTML(o.getValue()),""}function WS(o,e,t){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>'}function US(o,e,t){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>'}function GS(o,e,t){var i=o.getValue(),a=e.size||15,n=a+"px",r,l,h=e.hasOwnProperty("onValue")?e.onValue:!0,d=e.hasOwnProperty("offValue")?e.offValue:!1,u=e.onTruthy?i:i===h;return r=document.createElement("div"),r.classList.add("tabulator-toggle"),u?(r.classList.add("tabulator-toggle-on"),r.style.flexDirection="row-reverse",e.onColor&&(r.style.background=e.onColor)):e.offColor&&(r.style.background=e.offColor),r.style.width=2.5*a+"px",r.style.borderRadius=n,e.clickable&&r.addEventListener("click",p=>{o.setValue(u?d:h)}),l=document.createElement("div"),l.classList.add("tabulator-toggle-switch"),l.style.height=n,l.style.width=n,l.style.borderRadius=n,r.appendChild(l),r}function $S(o,e,t){var i=document.createElement("span"),a=o.getRow(),n=o.getTable();return a.watchPosition(r=>{e.relativeToPage&&(r+=n.modules.page.getPageSize()*(n.modules.page.getPage()-1)),i.innerText=r}),i}function YS(o,e,t){return o.getElement().classList.add("tabulator-row-handle"),"<div class='tabulator-row-handle-box'><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div></div>"}function ZS(o,e,t){var i,a,n;function r(l){var h=l.getValue(),d="plaintext";switch(typeof h){case"boolean":d="tickCross";break;case"string":h.includes(`
7
- `)&&(d="textarea");break}return d}return i=e.formatterLookup?e.formatterLookup(o):r(o),e.paramsLookup&&(n=typeof e.paramsLookup=="function"?e.paramsLookup(i,o):e.paramsLookup[i]),a=this.table.modules.format.lookupFormatter(i),a.call(this,o,n||{},t)}function XS(o,e,t){var i=e.delimiter||",",a=o.getValue(),n=this.table,r;return e.valueMap&&(typeof e.valueMap=="string"?r=function(l){return l.map(h=>G.retrieveNestedData(n.options.nestedFieldSeparator,e.valueMap,h))}:r=e.valueMap),Array.isArray(a)?(r&&(a=r(a)),a.join(i)):a}function KS(o,e,t){var i=e.indent||" ",a=typeof e.multiline>"u"?!0:e.multiline,n=e.replacer||null,r=o.getValue();return a&&(o.getElement().style.whiteSpace="pre-wrap"),JSON.stringify(r,n,i)}var JS={plaintext:DS,html:zS,textarea:RS,money:HS,link:AS,image:VS,tickCross:PS,datetime:qS,datetimediff:BS,lookup:FS,star:OS,traffic:jS,progress:NS,color:_S,buttonTick:WS,buttonCross:US,toggle:GS,rownum:$S,handle:YS,adaptable:ZS,array:XS,json:KS};const Je=class Je extends q{constructor(e){super(e),this.registerColumnOption("formatter"),this.registerColumnOption("formatterParams"),this.registerColumnOption("formatterPrint"),this.registerColumnOption("formatterPrintParams"),this.registerColumnOption("formatterClipboard"),this.registerColumnOption("formatterClipboardParams"),this.registerColumnOption("formatterHtmlOutput"),this.registerColumnOption("formatterHtmlOutputParams"),this.registerColumnOption("titleFormatter"),this.registerColumnOption("titleFormatterParams")}initialize(){this.subscribe("cell-format",this.formatValue.bind(this)),this.subscribe("cell-rendered",this.cellRendered.bind(this)),this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("column-format",this.formatHeader.bind(this))}initializeColumn(e){e.modules.format=this.lookupTypeFormatter(e,""),typeof e.definition.formatterPrint<"u"&&(e.modules.format.print=this.lookupTypeFormatter(e,"Print")),typeof e.definition.formatterClipboard<"u"&&(e.modules.format.clipboard=this.lookupTypeFormatter(e,"Clipboard")),typeof e.definition.formatterHtmlOutput<"u"&&(e.modules.format.htmlOutput=this.lookupTypeFormatter(e,"HtmlOutput"))}lookupTypeFormatter(e,t){var i={params:e.definition["formatter"+t+"Params"]||{}},a=e.definition["formatter"+t];return i.formatter=this.lookupFormatter(a),i}lookupFormatter(e){var t;switch(typeof e){case"string":Je.formatters[e]?t=Je.formatters[e]:(console.warn("Formatter Error - No such formatter found: ",e),t=Je.formatters.plaintext);break;case"function":t=e;break;default:t=Je.formatters.plaintext;break}return t}cellRendered(e){e.modules.format&&e.modules.format.renderedCallback&&!e.modules.format.rendered&&(e.modules.format.renderedCallback(),e.modules.format.rendered=!0)}formatHeader(e,t,i){var a,n,r,l;return e.definition.titleFormatter?(a=this.lookupFormatter(e.definition.titleFormatter),r=h=>{e.titleFormatterRendered=h},l={getValue:function(){return t},getElement:function(){return i},getType:function(){return"header"},getColumn:function(){return e.getComponent()},getTable:()=>this.table},n=e.definition.titleFormatterParams||{},n=typeof n=="function"?n():n,a.call(this,l,n,r)):t}formatValue(e){var t=e.getComponent(),i=typeof e.column.modules.format.params=="function"?e.column.modules.format.params(t):e.column.modules.format.params;function a(n){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=n,e.modules.format.rendered=!1}return e.column.modules.format.formatter.call(this,t,i,a)}formatExportValue(e,t){var i=e.column.modules.format[t],a;if(i){let n=function(r){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=r,e.modules.format.rendered=!1};return a=typeof i.params=="function"?i.params(e.getComponent()):i.params,i.formatter.call(this,e.getComponent(),a,n)}else return this.formatValue(e)}sanitizeHTML(e){if(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(e).replace(/[&<>"'`=/]/g,function(i){return t[i]})}else return e}emptyToSpace(e){return e===null||typeof e>"u"||e===""?"&nbsp;":e}};E(Je,"moduleName","format"),E(Je,"formatters",JS);let M9=Je;class WC extends q{constructor(e){super(e),this.leftColumns=[],this.rightColumns=[],this.initializationMode="left",this.active=!1,this.blocked=!0,this.registerColumnOption("frozen")}reset(){this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.active=!1}initialize(){this.subscribe("cell-layout",this.layoutCell.bind(this)),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-width",this.layout.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("table-layout",this.layout.bind(this)),this.subscribe("columns-loading",this.reset.bind(this)),this.subscribe("column-add",this.reinitializeColumns.bind(this)),this.subscribe("column-deleted",this.reinitializeColumns.bind(this)),this.subscribe("column-hide",this.reinitializeColumns.bind(this)),this.subscribe("column-show",this.reinitializeColumns.bind(this)),this.subscribe("columns-loaded",this.reinitializeColumns.bind(this)),this.subscribe("table-redraw",this.layout.bind(this)),this.subscribe("layout-refreshing",this.blockLayout.bind(this)),this.subscribe("layout-refreshed",this.unblockLayout.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this))}blockLayout(){this.blocked=!0}unblockLayout(){this.blocked=!1}layoutCell(e){this.layoutElement(e.element,e.column)}reinitializeColumns(){this.reset(),this.table.columnManager.columnsByIndex.forEach(e=>{this.initializeColumn(e)}),this.layout()}initializeColumn(e){var t={margin:0,edge:!1};e.isGroup||(this.frozenCheck(e)?(t.position=this.initializationMode,this.initializationMode=="left"?this.leftColumns.push(e):this.rightColumns.unshift(e),this.active=!0,e.modules.frozen=t):this.initializationMode="right")}frozenCheck(e){return e.parent.isGroup&&e.definition.frozen&&console.warn("Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"),e.parent.isGroup?this.frozenCheck(e.parent):e.definition.frozen}layoutCalcRows(){this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.columnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow),this.table.modExists("groupRows")&&this.layoutGroupCalcs(this.table.modules.groupRows.getGroups()))}layoutGroupCalcs(e){e.forEach(t=>{t.calcs.top&&this.layoutRow(t.calcs.top),t.calcs.bottom&&this.layoutRow(t.calcs.bottom),t.groupList&&t.groupList.length&&this.layoutGroupCalcs(t.groupList)})}layoutColumnPosition(e){var t=[],i=0,a=0;this.leftColumns.forEach((n,r)=>{if(n.modules.frozen.marginValue=i,n.modules.frozen.margin=n.modules.frozen.marginValue+"px",n.visible&&(i+=n.getWidth()),r==this.leftColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,n.parent.isGroup){var l=this.getColGroupParentElement(n);t.includes(l)||(this.layoutElement(l,n),t.push(l)),l.classList.toggle("tabulator-frozen-left",n.modules.frozen.edge&&n.modules.frozen.position==="left"),l.classList.toggle("tabulator-frozen-right",n.modules.frozen.edge&&n.modules.frozen.position==="right")}else this.layoutElement(n.getElement(),n);e&&n.cells.forEach(h=>{this.layoutElement(h.getElement(!0),n)})}),this.rightColumns.forEach((n,r)=>{n.modules.frozen.marginValue=a,n.modules.frozen.margin=n.modules.frozen.marginValue+"px",n.visible&&(a+=n.getWidth()),r==this.rightColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,n.parent.isGroup?this.layoutElement(this.getColGroupParentElement(n),n):this.layoutElement(n.getElement(),n),e&&n.cells.forEach(l=>{this.layoutElement(l.getElement(!0),n)})})}getColGroupParentElement(e){return e.parent.isGroup?this.getColGroupParentElement(e.parent):e.getElement()}layout(){this.active&&!this.blocked&&(this.layoutColumnPosition(),this.reinitializeRows(),this.layoutCalcRows())}reinitializeRows(){var e=this.table.rowManager.getVisibleRows(!0),t=this.table.rowManager.getRows().filter(i=>!e.includes(i));t.forEach(i=>{i.deinitialize()}),e.forEach(i=>{i.type==="row"&&this.layoutRow(i)})}layoutRow(e){this.table.options.layout==="fitDataFill"&&this.rightColumns.length&&(this.table.rowManager.getTableElement().style.minWidth="calc(100% - "+this.rightMargin+")"),this.leftColumns.forEach(t=>{var i=e.getCell(t);i&&this.layoutElement(i.getElement(!0),t)}),this.rightColumns.forEach(t=>{var i=e.getCell(t);i&&this.layoutElement(i.getElement(!0),t)})}layoutElement(e,t){var i;t.modules.frozen&&e&&(e.style.position="sticky",this.table.rtl?i=t.modules.frozen.position==="left"?"right":"left":i=t.modules.frozen.position,e.style[i]=t.modules.frozen.margin,e.classList.add("tabulator-frozen"),e.classList.toggle("tabulator-frozen-left",t.modules.frozen.edge&&t.modules.frozen.position==="left"),e.classList.toggle("tabulator-frozen-right",t.modules.frozen.edge&&t.modules.frozen.position==="right"))}adjustForScrollbar(e){this.rightColumns.length&&(this.table.columnManager.getContentsElement().style.width="calc(100% - "+e+"px)")}getFrozenColumns(){return this.leftColumns.concat(this.rightColumns)}_calcSpace(e,t){var i=0;for(let a=0;a<t;a++)e[a].visible&&(i+=e[a].getWidth());return i}}E(WC,"moduleName","frozenColumns");class UC extends q{constructor(e){super(e),this.topElement=document.createElement("div"),this.rows=[],this.registerComponentFunction("row","freeze",this.freezeRow.bind(this)),this.registerComponentFunction("row","unfreeze",this.unfreezeRow.bind(this)),this.registerComponentFunction("row","isFrozen",this.isRowFrozen.bind(this)),this.registerTableOption("frozenRowsField","id"),this.registerTableOption("frozenRows",!1)}initialize(){var e=document.createDocumentFragment();this.rows=[],this.topElement.classList.add("tabulator-frozen-rows-holder"),e.appendChild(document.createElement("br")),e.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(e,this.table.columnManager.headersElement.nextSibling),this.subscribe("row-deleting",this.detachRow.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),10),this.table.options.frozenRows&&(this.subscribe("data-processed",this.initializeRows.bind(this)),this.subscribe("row-added",this.initializeRow.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this))),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}initializeRows(){this.table.rowManager.getRows().forEach(e=>{this.initializeRow(e)})}initializeRow(e){var t=this.table.options.frozenRows,i=typeof t;i==="number"?e.getPosition()&&e.getPosition()+this.rows.length<=t&&this.freezeRow(e):i==="function"?t.call(this.table,e.getComponent())&&this.freezeRow(e):Array.isArray(t)&&t.includes(e.data[this.options("frozenRowsField")])&&this.freezeRow(e)}isRowFrozen(e){var t=this.rows.indexOf(e);return t>-1}isFrozen(){return!!this.rows.length}visibleRows(e,t){return this.rows.forEach(i=>{t.push(i)}),t}getRows(e){var t=e.slice(0);return this.rows.forEach(function(i){var a=t.indexOf(i);a>-1&&t.splice(a,1)}),t}freezeRow(e){e.modules.frozen?console.warn("Freeze Error - Row is already frozen"):(e.modules.frozen=!0,this.topElement.appendChild(e.getElement()),e.initialize(),e.normalizeHeight(),this.rows.push(e),this.refreshData(!1,"display"),this.table.rowManager.adjustTableSize(),this.styleRows())}unfreezeRow(e){e.modules.frozen?(e.modules.frozen=!1,this.detachRow(e),this.table.rowManager.adjustTableSize(),this.refreshData(!1,"display"),this.rows.length&&this.styleRows()):console.warn("Freeze Error - Row is already unfrozen")}detachRow(e){var t=this.rows.indexOf(e);if(t>-1){var i=e.getElement();i.parentNode&&i.parentNode.removeChild(i),this.rows.splice(t,1)}}styleRows(e){this.rows.forEach((t,i)=>{this.table.rowManager.styleRow(t,i)})}}E(UC,"moduleName","frozenRows");class QS{constructor(e){return this._group=e,this.type="GroupComponent",new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._group.groupManager.table.componentFunctionBinder.handle("group",t._group,i)}})}getKey(){return this._group.key}getField(){return this._group.field}getElement(){return this._group.element}getRows(){return this._group.getRows(!0)}getSubGroups(){return this._group.getSubGroups(!0)}getParentGroup(){return this._group.parent?this._group.parent.getComponent():!1}isVisible(){return this._group.visible}show(){this._group.show()}hide(){this._group.hide()}toggle(){this._group.toggleVisibility()}scrollTo(e,t){return this._group.groupManager.table.rowManager.scrollToRow(this._group,e,t)}_getSelf(){return this._group}getTable(){return this._group.groupManager.table}}let An=class SE{constructor(e,t,i,a,n,r,l){this.groupManager=e,this.parent=t,this.key=a,this.level=i,this.field=n,this.hasSubGroups=i<e.groupIDLookups.length-1,this.addRow=this.hasSubGroups?this._addRowToGroup:this._addRow,this.type="group",this.old=l,this.rows=[],this.groups=[],this.groupList=[],this.generator=r,this.element=!1,this.elementContents=!1,this.height=0,this.outerHeight=0,this.initialized=!1,this.calcs={},this.initialized=!1,this.modules={},this.arrowElement=!1,this.visible=l?l.visible:typeof e.startOpen[i]<"u"?e.startOpen[i]:e.startOpen[0],this.component=null,this.createElements(),this.addBindings(),this.createValueGroups()}wipe(e){e||(this.groupList.length?this.groupList.forEach(function(t){t.wipe()}):this.rows.forEach(t=>{t.modules&&delete t.modules.group})),this.element=!1,this.arrowElement=!1,this.elementContents=!1}createElements(){var e=document.createElement("div");e.classList.add("tabulator-arrow"),this.element=document.createElement("div"),this.element.classList.add("tabulator-row"),this.element.classList.add("tabulator-group"),this.element.classList.add("tabulator-group-level-"+this.level),this.element.setAttribute("role","rowgroup"),this.arrowElement=document.createElement("div"),this.arrowElement.classList.add("tabulator-group-toggle"),this.arrowElement.appendChild(e),this.groupManager.table.options.movableRows!==!1&&this.groupManager.table.modExists("moveRow")&&this.groupManager.table.modules.moveRow.initializeGroupHeader(this)}createValueGroups(){var e=this.level+1;this.groupManager.allowedValues&&this.groupManager.allowedValues[e]&&this.groupManager.allowedValues[e].forEach(t=>{this._createGroup(t,e)})}addBindings(){var e;this.groupManager.table.options.groupToggleElement&&(e=this.groupManager.table.options.groupToggleElement=="arrow"?this.arrowElement:this.element,e.addEventListener("click",t=>{this.groupManager.table.options.groupToggleElement==="arrow"&&(t.stopPropagation(),t.stopImmediatePropagation()),setTimeout(()=>{this.toggleVisibility()})}))}_createGroup(e,t){var i=t+"_"+e,a=new SE(this.groupManager,this,t,e,this.groupManager.groupIDLookups[t].field,this.groupManager.headerGenerator[t]||this.groupManager.headerGenerator[0],this.old?this.old.groups[i]:!1);this.groups[i]=a,this.groupList.push(a)}_addRowToGroup(e){var t=this.level+1;if(this.hasSubGroups){var i=this.groupManager.groupIDLookups[t].func(e.getData()),a=t+"_"+i;this.groupManager.allowedValues&&this.groupManager.allowedValues[t]?this.groups[a]&&this.groups[a].addRow(e):(this.groups[a]||this._createGroup(i,t),this.groups[a].addRow(e))}}_addRow(e){this.rows.push(e),e.modules.group=this}insertRow(e,t,i){var a=this.conformRowData({});e.updateData(a);var n=this.rows.indexOf(t);n>-1?i?this.rows.splice(n+1,0,e):this.rows.splice(n,0,e):i?this.rows.push(e):this.rows.unshift(e),e.modules.group=this,this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modules.columnCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)}scrollHeader(e){this.arrowElement&&(this.arrowElement.style.marginLeft=e,this.groupList.forEach(function(t){t.scrollHeader(e)}))}getRowIndex(e){}conformRowData(e){return this.field?e[this.field]=this.key:console.warn("Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"),this.parent&&(e=this.parent.conformRowData(e)),e}removeRow(e){var t=this.rows.indexOf(e),i=e.getElement();t>-1&&this.rows.splice(t,1),!this.groupManager.table.options.groupValues&&!this.rows.length?(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager.updateGroupRows(!0)):(i.parentNode&&i.parentNode.removeChild(i),this.groupManager.blockRedraw||(this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modules.columnCalcs.recalcGroup(this)))}removeGroup(e){var t=e.level+"_"+e.key,i;this.groups[t]&&(delete this.groups[t],i=this.groupList.indexOf(e),i>-1&&this.groupList.splice(i,1),this.groupList.length||(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this)))}getHeadersAndRows(){var e=[];return e.push(this),this._visSet(),this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.visible?this.groupList.length?this.groupList.forEach(function(t){e=e.concat(t.getHeadersAndRows())}):(this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),e.push(this.calcs.top)),e=e.concat(this.rows),this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),e.push(this.calcs.bottom))):!this.groupList.length&&this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modExists("columnCalcs")&&(this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),e.push(this.calcs.top)),this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),e.push(this.calcs.bottom))),e}getData(e,t){var i=[];return this._visSet(),(!e||e&&this.visible)&&this.rows.forEach(a=>{i.push(a.getData(t||"data"))}),i}getRowCount(){var e=0;return this.groupList.length?this.groupList.forEach(t=>{e+=t.getRowCount()}):e=this.rows.length,e}toggleVisibility(){this.visible?this.hide():this.show()}hide(){this.visible=!1,this.groupManager.table.rowManager.getRenderMode()=="basic"&&!this.groupManager.table.options.pagination?(this.element.classList.remove("tabulator-group-visible"),this.groupList.length?this.groupList.forEach(e=>{var t=e.getHeadersAndRows();t.forEach(i=>{i.detachElement()})}):this.rows.forEach(e=>{var t=e.getElement();t.parentNode.removeChild(t)}),this.groupManager.updateGroupRows(!0)):this.groupManager.updateGroupRows(!0),this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.getComponent(),!1)}show(){if(this.visible=!0,this.groupManager.table.rowManager.getRenderMode()=="basic"&&!this.groupManager.table.options.pagination){this.element.classList.add("tabulator-group-visible");var e=this.generateElement();this.groupList.length?this.groupList.forEach(t=>{var i=t.getHeadersAndRows();i.forEach(a=>{var n=a.getElement();e.parentNode.insertBefore(n,e.nextSibling),a.initialize(),e=n})}):this.rows.forEach(t=>{var i=t.getElement();e.parentNode.insertBefore(i,e.nextSibling),t.initialize(),e=i}),this.groupManager.updateGroupRows(!0)}else this.groupManager.updateGroupRows(!0);this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.getComponent(),!0)}_visSet(){var e=[];typeof this.visible=="function"&&(this.rows.forEach(function(t){e.push(t.getData())}),this.visible=this.visible(this.key,this.getRowCount(),e,this.getComponent()))}getRowGroup(e){var t=!1;return this.groupList.length?this.groupList.forEach(function(i){var a=i.getRowGroup(e);a&&(t=a)}):this.rows.find(function(i){return i===e})&&(t=this),t}getSubGroups(e){var t=[];return this.groupList.forEach(function(i){t.push(e?i.getComponent():i)}),t}getRows(e,t){var i=[];return t&&this.groupList.length?this.groupList.forEach(a=>{i=i.concat(a.getRows(e,t))}):this.rows.forEach(function(a){i.push(e?a.getComponent():a)}),i}generateGroupHeaderContents(){var e=[],t=this.getRows(!1,!0);for(t.forEach(function(i){e.push(i.getData())}),this.elementContents=this.generator(this.key,this.getRowCount(),e,this.getComponent());this.element.firstChild;)this.element.removeChild(this.element.firstChild);typeof this.elementContents=="string"?this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementContents),this.element.insertBefore(this.arrowElement,this.element.firstChild)}getPath(e=[]){return e.unshift(this.key),this.parent&&this.parent.getPath(e),e}getElement(){return this.elementContents?this.element:this.generateElement()}generateElement(){this.addBindings=!1,this._visSet(),this.visible?this.element.classList.add("tabulator-group-visible"):this.element.classList.remove("tabulator-group-visible");for(var e=0;e<this.element.childNodes.length;++e)this.element.childNodes[e].parentNode.removeChild(this.element.childNodes[e]);return this.generateGroupHeaderContents(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}normalizeHeight(){this.setHeight(this.element.clientHeight)}initialize(e){(!this.initialized||e)&&(this.normalizeHeight(),this.initialized=!0)}reinitialize(){this.initialized=!1,this.height=0,G.elVisible(this.element)&&this.initialize(!0)}setHeight(e){this.height!=e&&(this.height=e,this.outerHeight=this.element.offsetHeight)}getHeight(){return this.outerHeight}getGroup(){return this}reinitializeHeight(){}calcHeight(){}setCellHeight(){}clearCellHeight(){}deinitializeHeight(){}rendered(){}getComponent(){return this.component||(this.component=new QS(this)),this.component}};class GC extends q{constructor(e){super(e),this.groupIDLookups=!1,this.startOpen=[function(){return!1}],this.headerGenerator=[function(){return""}],this.groupList=[],this.allowedValues=!1,this.groups={},this.displayHandler=this.getRows.bind(this),this.blockRedraw=!1,this.registerTableOption("groupBy",!1),this.registerTableOption("groupStartOpen",!0),this.registerTableOption("groupValues",!1),this.registerTableOption("groupUpdateOnCellEdit",!1),this.registerTableOption("groupHeader",!1),this.registerTableOption("groupHeaderPrint",null),this.registerTableOption("groupHeaderClipboard",null),this.registerTableOption("groupHeaderHtmlOutput",null),this.registerTableOption("groupHeaderDownload",null),this.registerTableOption("groupToggleElement","arrow"),this.registerTableOption("groupClosedShowCalcs",!1),this.registerTableFunction("setGroupBy",this.setGroupBy.bind(this)),this.registerTableFunction("setGroupValues",this.setGroupValues.bind(this)),this.registerTableFunction("setGroupStartOpen",this.setGroupStartOpen.bind(this)),this.registerTableFunction("setGroupHeader",this.setGroupHeader.bind(this)),this.registerTableFunction("getGroups",this.userGetGroups.bind(this)),this.registerTableFunction("getGroupedData",this.userGetGroupedData.bind(this)),this.registerComponentFunction("row","getGroup",this.rowGetGroup.bind(this))}initialize(){this.subscribe("table-destroy",this._blockRedrawing.bind(this)),this.subscribe("rows-wipe",this._blockRedrawing.bind(this)),this.subscribe("rows-wiped",this._restore_redrawing.bind(this)),this.table.options.groupBy&&(this.table.options.groupUpdateOnCellEdit&&(this.subscribe("cell-value-updated",this.cellUpdated.bind(this)),this.subscribe("row-data-changed",this.reassignRowToGroup.bind(this),0)),this.subscribe("table-built",this.configureGroupSetup.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHeaders.bind(this)),this.subscribe("rows-wipe",this.wipe.bind(this)),this.subscribe("rows-added",this.rowsUpdated.bind(this)),this.subscribe("row-moving",this.rowMoving.bind(this)),this.subscribe("row-adding-index",this.rowAddingIndex.bind(this)),this.subscribe("rows-sample",this.rowSample.bind(this)),this.subscribe("render-virtual-fill",this.virtualRenderFill.bind(this)),this.registerDisplayHandler(this.displayHandler,20),this.initialized=!0)}_blockRedrawing(){this.blockRedraw=!0}_restore_redrawing(){this.blockRedraw=!1}configureGroupSetup(){if(this.table.options.groupBy){var e=this.table.options.groupBy,t=this.table.options.groupStartOpen,i=this.table.options.groupHeader;if(this.allowedValues=this.table.options.groupValues,Array.isArray(e)&&Array.isArray(i)&&e.length>i.length&&console.warn("Error creating group headers, groupHeader array is shorter than groupBy array"),this.headerGenerator=[function(){return""}],this.startOpen=[function(){return!1}],this.langBind("groups|item",(n,r)=>{this.headerGenerator[0]=(l,h,d)=>(typeof l>"u"?"":l)+"<span>("+h+" "+(h===1?n:r.groups.items)+")</span>"}),this.groupIDLookups=[],e)this.table.modExists("columnCalcs")&&this.table.options.columnCalcs!="table"&&this.table.options.columnCalcs!="both"&&this.table.modules.columnCalcs.removeCalcs();else if(this.table.modExists("columnCalcs")&&this.table.options.columnCalcs!="group"){var a=this.table.columnManager.getRealColumns();a.forEach(n=>{n.definition.topCalc&&this.table.modules.columnCalcs.initializeTopRow(),n.definition.bottomCalc&&this.table.modules.columnCalcs.initializeBottomRow()})}Array.isArray(e)||(e=[e]),e.forEach((n,r)=>{var l,h;typeof n=="function"?l=n:(h=this.table.columnManager.getColumnByField(n),h?l=function(d){return h.getFieldValue(d)}:l=function(d){return d[n]}),this.groupIDLookups.push({field:typeof n=="function"?!1:n,func:l,values:this.allowedValues?this.allowedValues[r]:!1})}),t&&(Array.isArray(t)||(t=[t]),t.forEach(n=>{}),this.startOpen=t),i&&(this.headerGenerator=Array.isArray(i)?i:[i])}else this.groupList=[],this.groups={}}rowSample(e,t){if(this.table.options.groupBy){var i=this.getGroups(!1)[0];t.push(i.getRows(!1)[0])}return t}virtualRenderFill(){var e=this.table.rowManager.tableElement,t=this.table.rowManager.getVisibleRows();if(this.table.options.groupBy)t=t.filter(i=>i.type!=="group"),e.style.minWidth=t.length?"":this.table.columnManager.getWidth()+"px";else return t}rowAddingIndex(e,t,i){if(this.table.options.groupBy){this.assignRowToGroup(e);var a=e.modules.group.rows;return a.length>1&&(!t||t&&a.indexOf(t)==-1?i?a[0]!==e&&(t=a[0],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!i)):a[a.length-1]!==e&&(t=a[a.length-1],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!i)):this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!i)),t}}trackChanges(){this.dispatch("group-changed")}setGroupBy(e){this.table.options.groupBy=e,this.initialized||this.initialize(),this.configureGroupSetup(),!e&&this.table.modExists("columnCalcs")&&this.table.options.columnCalcs===!0&&this.table.modules.columnCalcs.reinitializeCalcs(),this.refreshData(),this.trackChanges()}setGroupValues(e){this.table.options.groupValues=e,this.configureGroupSetup(),this.refreshData(),this.trackChanges()}setGroupStartOpen(e){this.table.options.groupStartOpen=e,this.configureGroupSetup(),this.table.options.groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant refresh view, no groups have been set")}setGroupHeader(e){this.table.options.groupHeader=e,this.configureGroupSetup(),this.table.options.groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant refresh view, no groups have been set")}userGetGroups(e){return this.getGroups(!0)}userGetGroupedData(){return this.table.options.groupBy?this.getGroupedData():this.getData()}rowGetGroup(e){return e.modules.group?e.modules.group.getComponent():!1}rowMoving(e,t,i){if(this.table.options.groupBy){!i&&t instanceof An&&(t=this.table.rowManager.prevDisplayRow(e)||t);var a=t instanceof An?t:t.modules.group,n=e instanceof An?e:e.modules.group;a===n?this.table.rowManager.moveRowInArray(a.rows,e,t,i):(n&&n.removeRow(e),a.insertRow(e,t,i))}}rowDeleting(e){this.table.options.groupBy&&e.modules.group&&e.modules.group.removeRow(e)}rowsUpdated(e){this.table.options.groupBy&&this.updateGroupRows(!0)}cellUpdated(e){this.table.options.groupBy&&this.reassignRowToGroup(e.row)}getRows(e){return this.table.options.groupBy&&this.groupIDLookups.length?(this.dispatchExternal("dataGrouping"),this.generateGroups(e),this.subscribedExternal("dataGrouped")&&this.dispatchExternal("dataGrouped",this.getGroups(!0)),this.updateGroupRows()):e.slice(0)}getGroups(e){var t=[];return this.groupList.forEach(function(i){t.push(e?i.getComponent():i)}),t}getChildGroups(e){var t=[];return e||(e=this),e.groupList.forEach(i=>{i.groupList.length?t=t.concat(this.getChildGroups(i)):t.push(i)}),t}wipe(){this.table.options.groupBy&&(this.groupList.forEach(function(e){e.wipe()}),this.groupList=[],this.groups={})}pullGroupListData(e){var t=[];return e.forEach(i=>{var a={};a.level=0,a.rowCount=0,a.headerContent="";var n=[];i.hasSubGroups?(n=this.pullGroupListData(i.groupList),a.level=i.level,a.rowCount=n.length-i.groupList.length,a.headerContent=i.generator(i.key,a.rowCount,i.rows,i),t.push(a),t=t.concat(n)):(a.level=i.level,a.headerContent=i.generator(i.key,i.rows.length,i.rows,i),a.rowCount=i.getRows().length,t.push(a),i.getRows().forEach(r=>{t.push(r.getData("data"))}))}),t}getGroupedData(){return this.pullGroupListData(this.groupList)}getRowGroup(e){var t=!1;return this.options("dataTree")&&(e=this.table.modules.dataTree.getTreeParentRoot(e)),this.groupList.forEach(i=>{var a=i.getRowGroup(e);a&&(t=a)}),t}countGroups(){return this.groupList.length}generateGroups(e){var t=this.groups;this.groups={},this.groupList=[],this.allowedValues&&this.allowedValues[0]?(this.allowedValues[0].forEach(i=>{this.createGroup(i,0,t)}),e.forEach(i=>{this.assignRowToExistingGroup(i,t)})):e.forEach(i=>{this.assignRowToGroup(i,t)}),Object.values(t).forEach(i=>{i.wipe(!0)})}createGroup(e,t,i){var a=t+"_"+e,n;i=i||[],n=new An(this,!1,t,e,this.groupIDLookups[0].field,this.headerGenerator[0],i[a]),this.groups[a]=n,this.groupList.push(n)}assignRowToExistingGroup(e,t){var i=this.groupIDLookups[0].func(e.getData()),a="0_"+i;this.groups[a]&&this.groups[a].addRow(e)}assignRowToGroup(e,t){var i=this.groupIDLookups[0].func(e.getData()),a=!this.groups["0_"+i];return a&&this.createGroup(i,0,t),this.groups["0_"+i].addRow(e),!a}reassignRowToGroup(e){if(e.type==="row"){var t=e.modules.group,i=t.getPath(),a=this.getExpectedPath(e),n;n=i.length==a.length&&i.every((r,l)=>r===a[l]),n||(t.removeRow(e),this.assignRowToGroup(e,this.groups),this.refreshData(!0))}}getExpectedPath(e){var t=[],i=e.getData();return this.groupIDLookups.forEach(a=>{t.push(a.func(i))}),t}updateGroupRows(e){var t=[];return this.blockRedraw||(this.groupList.forEach(i=>{t=t.concat(i.getHeadersAndRows())}),e&&this.refreshData(!0)),t}scrollHeaders(e){this.table.options.groupBy&&(this.table.options.renderHorizontal==="virtual"&&(e-=this.table.columnManager.renderer.vDomPadLeft),e=e+"px",this.groupList.forEach(t=>{t.scrollHeader(e)}))}removeGroup(e){var t=e.level+"_"+e.key,i;this.groups[t]&&(delete this.groups[t],i=this.groupList.indexOf(e),i>-1&&this.groupList.splice(i,1))}checkBasicModeGroupHeaderWidth(){var e=this.table.rowManager.tableElement,t=!0;this.table.rowManager.getDisplayRows().forEach((i,a)=>{this.table.rowManager.styleRow(i,a),e.appendChild(i.getElement()),i.initialize(!0),i.type!=="group"&&(t=!1)}),t?e.style.minWidth=this.table.columnManager.getWidth()+"px":e.style.minWidth=""}}E(GC,"moduleName","groupRows");var eI={cellEdit:function(o){o.component.setValueProcessData(o.data.oldValue),o.component.cellRendered()},rowAdd:function(o){o.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowDelete:function(o){var e=this.table.rowManager.addRowActual(o.data.data,o.data.pos,o.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(o.component,e),this.table.rowManager.checkPlaceholder()},rowMove:function(o){var e=o.data.posFrom-o.data.posTo>0;this.table.rowManager.moveRowActual(o.component,this.table.rowManager.getRowFromPosition(o.data.posFrom),e),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},tI={cellEdit:function(o){o.component.setValueProcessData(o.data.newValue),o.component.cellRendered()},rowAdd:function(o){var e=this.table.rowManager.addRowActual(o.data.data,o.data.pos,o.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(o.component,e),this.table.rowManager.checkPlaceholder()},rowDelete:function(o){o.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowMove:function(o){this.table.rowManager.moveRowActual(o.component,this.table.rowManager.getRowFromPosition(o.data.posTo),o.data.after),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},iI={undo:["ctrl + 90","meta + 90"],redo:["ctrl + 89","meta + 89"]},aI={undo:function(o){var e=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(e=this.table.modules.edit.currentCell,e||(o.preventDefault(),this.table.modules.history.undo()))},redo:function(o){var e=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(e=this.table.modules.edit.currentCell,e||(o.preventDefault(),this.table.modules.history.redo()))}},oI={keybindings:{bindings:iI,actions:aI}};let nI=(Le=class extends q{constructor(e){super(e),this.history=[],this.index=-1,this.registerTableOption("history",!1)}initialize(){this.table.options.history&&(this.subscribe("cell-value-updated",this.cellUpdated.bind(this)),this.subscribe("cell-delete",this.clearComponentHistory.bind(this)),this.subscribe("row-delete",this.rowDeleted.bind(this)),this.subscribe("rows-wipe",this.clear.bind(this)),this.subscribe("row-added",this.rowAdded.bind(this)),this.subscribe("row-move",this.rowMoved.bind(this))),this.registerTableFunction("undo",this.undo.bind(this)),this.registerTableFunction("redo",this.redo.bind(this)),this.registerTableFunction("getHistoryUndoSize",this.getHistoryUndoSize.bind(this)),this.registerTableFunction("getHistoryRedoSize",this.getHistoryRedoSize.bind(this)),this.registerTableFunction("clearHistory",this.clear.bind(this))}rowMoved(e,t,i){this.action("rowMove",e,{posFrom:e.getPosition(),posTo:t.getPosition(),to:t,after:i})}rowAdded(e,t,i,a){this.action("rowAdd",e,{data:t,pos:i,index:a})}rowDeleted(e){var t,i;this.table.options.groupBy?(i=e.getComponent().getGroup()._getSelf().rows,t=i.indexOf(e),t&&(t=i[t-1])):(t=e.table.rowManager.getRowIndex(e),t&&(t=e.table.rowManager.rows[t-1])),this.action("rowDelete",e,{data:e.getData(),pos:!t,index:t})}cellUpdated(e){this.action("cellEdit",e,{oldValue:e.oldValue,newValue:e.value})}clear(){this.history=[],this.index=-1}action(e,t,i){this.history=this.history.slice(0,this.index+1),this.history.push({type:e,component:t,data:i}),this.index++}getHistoryUndoSize(){return this.index+1}getHistoryRedoSize(){return this.history.length-(this.index+1)}clearComponentHistory(e){var t=this.history.findIndex(function(i){return i.component===e});t>-1&&(this.history.splice(t,1),t<=this.index&&this.index--,this.clearComponentHistory(e))}undo(){if(this.index>-1){let e=this.history[this.index];return Le.undoers[e.type].call(this,e),this.index--,this.dispatchExternal("historyUndo",e.type,e.component.getComponent(),e.data),!0}else return console.warn(this.options("history")?"History Undo Error - No more history to undo":"History module not enabled"),!1}redo(){if(this.history.length-1>this.index){this.index++;let e=this.history[this.index];return Le.redoers[e.type].call(this,e),this.dispatchExternal("historyRedo",e.type,e.component.getComponent(),e.data),!0}else return console.warn(this.options("history")?"History Redo Error - No more history to redo":"History module not enabled"),!1}_rebindRow(e,t){this.history.forEach(function(i){if(i.component instanceof ae)i.component===e&&(i.component=t);else if(i.component instanceof un&&i.component.row===e){var a=i.component.column.getField();a&&(i.component=t.getCell(a))}})}},E(Le,"moduleName","history"),E(Le,"moduleExtensions",oI),E(Le,"undoers",eI),E(Le,"redoers",tI),Le);class $C extends q{constructor(e){super(e),this.fieldIndex=[],this.hasIndex=!1}initialize(){this.tableElementCheck()}tableElementCheck(){this.table.originalElement&&this.table.originalElement.tagName==="TABLE"&&(this.table.originalElement.childNodes.length?this.parseTable():console.warn("Unable to parse data from empty table tag, Tabulator should be initialized on a div tag unless importing data from a table element."))}parseTable(){var e=this.table.originalElement,t=this.table.options,i=e.getElementsByTagName("th"),a=e.getElementsByTagName("tbody")[0],n=[];this.hasIndex=!1,this.dispatchExternal("htmlImporting"),a=a?a.getElementsByTagName("tr"):[],this._extractOptions(e,t),i.length?this._extractHeaders(i,a):this._generateBlankHeaders(i,a);for(var r=0;r<a.length;r++){var l=a[r],h=l.getElementsByTagName("td"),d={};this.hasIndex||(d[t.index]=r);for(var u=0;u<h.length;u++){var p=h[u];typeof this.fieldIndex[u]<"u"&&(d[this.fieldIndex[u]]=p.innerHTML)}n.push(d)}t.data=n,this.dispatchExternal("htmlImported")}_extractOptions(e,t,i){var a=e.attributes,n=Object.keys(i||t),r={};n.forEach(u=>{r[u.toLowerCase()]=u});for(var l in a){var h=a[l],d;h&&typeof h=="object"&&h.name&&h.name.indexOf("tabulator-")===0&&(d=h.name.replace("tabulator-",""),typeof r[d]<"u"&&(t[r[d]]=this._attribValue(h.value)))}}_attribValue(e){return e==="true"?!0:e==="false"?!1:e}_findCol(e){var t=this.table.options.columns.find(i=>i.title===e);return t||!1}_extractHeaders(e,t){for(var i=0;i<e.length;i++){var a=e[i],n=!1,r=this._findCol(a.textContent),l;r?n=!0:r={title:a.textContent.trim()},r.field||(r.field=a.textContent.trim().toLowerCase().replaceAll(" ","_")),l=a.getAttribute("width"),l&&!r.width&&(r.width=l),this._extractOptions(a,r,this.table.columnManager.optionsList.registeredDefaults),this.fieldIndex[i]=r.field,r.field==this.table.options.index&&(this.hasIndex=!0),n||this.table.options.columns.push(r)}}_generateBlankHeaders(e,t){for(var i=0;i<e.length;i++){var a=e[i],n={title:"",field:"col"+i};this.fieldIndex[i]=n.field;var r=a.getAttribute("width");r&&(n.width=r),this.table.options.columns.push(n)}}}E($C,"moduleName","htmlTableImport");function sI(o){var e=[],t=0,i=0,a=!1;for(let n=0;n<o.length;n++){let r=o[n],l=o[n+1];if(e[t]||(e[t]=[]),e[t][i]||(e[t][i]=""),r=='"'&&a&&l=='"'){e[t][i]+=r,n++;continue}if(r=='"'){a=!a;continue}if(r==","&&!a){i++;continue}if(r=="\r"&&l==`
6
+ `)&&(y="textarea");break}return y}return r=a.editorLookup?a.editorLookup(o):d(o),a.paramsLookup&&(h=typeof a.paramsLookup=="function"?a.paramsLookup(r,o):a.paramsLookup[r]),l=this.table.modules.edit.lookupEditor(r,n),l.call(this,o,e,t,i,h||{})}var ES={input:pS,textarea:yS,number:fS,range:mS,date:gS,time:kS,datetime:bS,list:vS,star:MS,progress:CS,tickCross:xS,adaptable:LS};const Ln=class Ln extends q{constructor(e){super(e),this.currentCell=!1,this.mouseClick=!1,this.recursionBlock=!1,this.invalidEdit=!1,this.editedCells=[],this.convertEmptyValues=!1,this.editors=Ln.editors,this.registerTableOption("editTriggerEvent","focus"),this.registerTableOption("editorEmptyValue"),this.registerTableOption("editorEmptyValueFunc",this.emptyValueCheck.bind(this)),this.registerColumnOption("editable"),this.registerColumnOption("editor"),this.registerColumnOption("editorParams"),this.registerColumnOption("editorEmptyValue"),this.registerColumnOption("editorEmptyValueFunc"),this.registerColumnOption("cellEditing"),this.registerColumnOption("cellEdited"),this.registerColumnOption("cellEditCancelled"),this.registerTableFunction("getEditedCells",this.getEditedCells.bind(this)),this.registerTableFunction("clearCellEdited",this.clearCellEdited.bind(this)),this.registerTableFunction("navigatePrev",this.navigatePrev.bind(this)),this.registerTableFunction("navigateNext",this.navigateNext.bind(this)),this.registerTableFunction("navigateLeft",this.navigateLeft.bind(this)),this.registerTableFunction("navigateRight",this.navigateRight.bind(this)),this.registerTableFunction("navigateUp",this.navigateUp.bind(this)),this.registerTableFunction("navigateDown",this.navigateDown.bind(this)),this.registerComponentFunction("cell","isEdited",this.cellIsEdited.bind(this)),this.registerComponentFunction("cell","clearEdited",this.clearEdited.bind(this)),this.registerComponentFunction("cell","edit",this.editCell.bind(this)),this.registerComponentFunction("cell","cancelEdit",this.cellCancelEdit.bind(this)),this.registerComponentFunction("cell","navigatePrev",this.navigatePrev.bind(this)),this.registerComponentFunction("cell","navigateNext",this.navigateNext.bind(this)),this.registerComponentFunction("cell","navigateLeft",this.navigateLeft.bind(this)),this.registerComponentFunction("cell","navigateRight",this.navigateRight.bind(this)),this.registerComponentFunction("cell","navigateUp",this.navigateUp.bind(this)),this.registerComponentFunction("cell","navigateDown",this.navigateDown.bind(this))}initialize(){this.subscribe("cell-init",this.bindEditor.bind(this)),this.subscribe("cell-delete",this.clearEdited.bind(this)),this.subscribe("cell-value-changed",this.updateCellClass.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("column-delete",this.columnDeleteCheck.bind(this)),this.subscribe("row-deleting",this.rowDeleteCheck.bind(this)),this.subscribe("row-layout",this.rowEditableCheck.bind(this)),this.subscribe("data-refreshing",this.cancelEdit.bind(this)),this.subscribe("clipboard-paste",this.pasteBlocker.bind(this)),this.subscribe("keybinding-nav-prev",this.navigatePrev.bind(this,void 0)),this.subscribe("keybinding-nav-next",this.keybindingNavigateNext.bind(this)),this.subscribe("keybinding-nav-up",this.navigateUp.bind(this,void 0)),this.subscribe("keybinding-nav-down",this.navigateDown.bind(this,void 0)),Object.keys(this.table.options).includes("editorEmptyValue")&&(this.convertEmptyValues=!0)}pasteBlocker(e){if(this.currentCell)return!0}keybindingNavigateNext(e){var t=this.currentCell,i=this.options("tabEndNewRow");t&&(this.navigateNext(t,e)||i&&(t.getElement().firstChild.blur(),this.invalidEdit||(i===!0?i=this.table.addRow({}):typeof i=="function"?i=this.table.addRow(i(t.row.getComponent())):i=this.table.addRow(Object.assign({},i)),i.then(()=>{setTimeout(()=>{t.getComponent().navigateNext()})}))))}cellIsEdited(e){return!!e.modules.edit&&e.modules.edit.edited}cellCancelEdit(e){e===this.currentCell?this.table.modules.edit.cancelEdit():console.warn("Cancel Editor Error - This cell is not currently being edited ")}updateCellClass(e){this.allowEdit(e)?e.getElement().classList.add("tabulator-editable"):e.getElement().classList.remove("tabulator-editable")}clearCellEdited(e){e||(e=this.table.modules.edit.getEditedCells()),Array.isArray(e)||(e=[e]),e.forEach(t=>{this.table.modules.edit.clearEdited(t._getSelf())})}navigatePrev(e=this.currentCell,t){var i,a;if(e){if(t&&t.preventDefault(),i=this.navigateLeft(),i)return!0;if(a=this.table.rowManager.prevDisplayRow(e.row,!0),a&&(i=this.findPrevEditableCell(a,a.cells.length),i))return i.getComponent().edit(),!0}return!1}navigateNext(e=this.currentCell,t){var i,a;if(e){if(t&&t.preventDefault(),i=this.navigateRight(),i)return!0;if(a=this.table.rowManager.nextDisplayRow(e.row,!0),a&&(i=this.findNextEditableCell(a,-1),i))return i.getComponent().edit(),!0}return!1}navigateLeft(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.findPrevEditableCell(e.row,i),a)?(a.getComponent().edit(),!0):!1}navigateRight(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.findNextEditableCell(e.row,i),a)?(a.getComponent().edit(),!0):!1}navigateUp(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.table.rowManager.prevDisplayRow(e.row,!0),a)?(a.cells[i].getComponent().edit(),!0):!1}navigateDown(e=this.currentCell,t){var i,a;return e&&(t&&t.preventDefault(),i=e.getIndex(),a=this.table.rowManager.nextDisplayRow(e.row,!0),a)?(a.cells[i].getComponent().edit(),!0):!1}findNextEditableCell(e,t){var i=!1;if(t<e.cells.length-1)for(var a=t+1;a<e.cells.length;a++){let n=e.cells[a];if(n.column.modules.edit&&$.elVisible(n.getElement())&&this.allowEdit(n)){i=n;break}}return i}findPrevEditableCell(e,t){var i=!1;if(t>0)for(var a=t-1;a>=0;a--){let n=e.cells[a];if(n.column.modules.edit&&$.elVisible(n.getElement())&&this.allowEdit(n)){i=n;break}}return i}initializeColumnCheck(e){typeof e.definition.editor<"u"&&this.initializeColumn(e)}columnDeleteCheck(e){this.currentCell&&this.currentCell.column===e&&this.cancelEdit()}rowDeleteCheck(e){this.currentCell&&this.currentCell.row===e&&this.cancelEdit()}rowEditableCheck(e){e.getCells().forEach(t=>{t.column.modules.edit&&typeof t.column.modules.edit.check=="function"&&this.updateCellClass(t)})}initializeColumn(e){var t=Object.keys(e.definition).includes("editorEmptyValue"),i={editor:!1,blocked:!1,check:e.definition.editable,params:e.definition.editorParams||{},convertEmptyValues:t,editorEmptyValue:e.definition.editorEmptyValue,editorEmptyValueFunc:e.definition.editorEmptyValueFunc};i.editor=this.lookupEditor(e.definition.editor,e),i.editor&&(e.modules.edit=i)}lookupEditor(e,t){var i;switch(typeof e){case"string":this.editors[e]?i=this.editors[e]:console.warn("Editor Error - No such editor found: ",e);break;case"function":i=e;break;case"boolean":e===!0&&(typeof t.definition.formatter!="function"?this.editors[t.definition.formatter]?i=this.editors[t.definition.formatter]:i=this.editors.input:console.warn("Editor Error - Cannot auto lookup editor for a custom formatter: ",t.definition.formatter));break}return i}getCurrentCell(){return this.currentCell?this.currentCell.getComponent():!1}clearEditor(e){var t=this.currentCell,i;if(this.invalidEdit=!1,t){for(this.currentCell=!1,i=t.getElement(),this.dispatch("edit-editor-clear",t,e),i.classList.remove("tabulator-editing");i.firstChild;)i.removeChild(i.firstChild);t.row.getElement().classList.remove("tabulator-editing"),t.table.element.classList.remove("tabulator-editing")}}cancelEdit(){if(this.currentCell){var e=this.currentCell,t=this.currentCell.getComponent();this.clearEditor(!0),e.setValueActual(e.getValue()),e.cellRendered(),(e.column.definition.editor=="textarea"||e.column.definition.variableHeight)&&e.row.normalizeHeight(!0),e.column.definition.cellEditCancelled&&e.column.definition.cellEditCancelled.call(this.table,t),this.dispatch("edit-cancelled",e),this.dispatchExternal("cellEditCancelled",t)}}bindEditor(e){if(e.column.modules.edit){var t=this,i=e.getElement(!0);this.updateCellClass(e),i.setAttribute("tabindex",0),i.addEventListener("mousedown",function(a){a.button===2?a.preventDefault():t.mouseClick=!0}),this.options("editTriggerEvent")==="dblclick"&&i.addEventListener("dblclick",function(a){i.classList.contains("tabulator-editing")||(i.focus({preventScroll:!0}),t.edit(e,a,!1))}),(this.options("editTriggerEvent")==="focus"||this.options("editTriggerEvent")==="click")&&i.addEventListener("click",function(a){i.classList.contains("tabulator-editing")||(i.focus({preventScroll:!0}),t.edit(e,a,!1))}),this.options("editTriggerEvent")==="focus"&&i.addEventListener("focus",function(a){t.recursionBlock||t.edit(e,a,!1)})}}focusCellNoEvent(e,t){this.recursionBlock=!0,t&&this.table.browser==="ie"||e.getElement().focus({preventScroll:!0}),this.recursionBlock=!1}editCell(e,t){this.focusCellNoEvent(e),this.edit(e,!1,t)}focusScrollAdjust(e){if(this.table.rowManager.getRenderMode()=="virtual"){var t=this.table.rowManager.element.scrollTop,i=this.table.rowManager.element.clientHeight+this.table.rowManager.element.scrollTop,a=e.row.getElement();a.offsetTop<t?this.table.rowManager.element.scrollTop-=t-a.offsetTop:a.offsetTop+a.offsetHeight>i&&(this.table.rowManager.element.scrollTop+=a.offsetTop+a.offsetHeight-i);var n=this.table.rowManager.element.scrollLeft,r=this.table.rowManager.element.clientWidth+this.table.rowManager.element.scrollLeft,l=e.getElement();this.table.modExists("frozenColumns")&&(n+=parseInt(this.table.modules.frozenColumns.leftMargin||0),r-=parseInt(this.table.modules.frozenColumns.rightMargin||0)),this.table.options.renderHorizontal==="virtual"&&(n-=parseInt(this.table.columnManager.renderer.vDomPadLeft),r-=parseInt(this.table.columnManager.renderer.vDomPadLeft)),l.offsetLeft<n?this.table.rowManager.element.scrollLeft-=n-l.offsetLeft:l.offsetLeft+l.offsetWidth>r&&(this.table.rowManager.element.scrollLeft+=l.offsetLeft+l.offsetWidth-r)}}allowEdit(e){var t=!!e.column.modules.edit;if(e.column.modules.edit)switch(typeof e.column.modules.edit.check){case"function":e.row.initialized&&(t=e.column.modules.edit.check(e.getComponent()));break;case"string":t=!!e.row.data[e.column.modules.edit.check];break;case"boolean":t=e.column.modules.edit.check;break}return t}edit(e,t,i){var a=this,n=!0,r=function(){},l=e.getElement(),h=!1,d,u,p;if(this.currentCell){!this.invalidEdit&&this.currentCell!==e&&this.cancelEdit();return}function y(m){if(a.currentCell===e&&!h){var M=a.chain("edit-success",[e,m],!0,!0);return M===!0||a.table.options.validationMode==="highlight"?(h=!0,a.clearEditor(),e.modules.edit||(e.modules.edit={}),e.modules.edit.edited=!0,a.editedCells.indexOf(e)==-1&&a.editedCells.push(e),m=a.transformEmptyValues(m,e),e.setValue(m,!0),M===!0):(h=!0,a.invalidEdit=!0,a.focusCellNoEvent(e,!0),r(),setTimeout(()=>{h=!1},10),!1)}}function f(){a.currentCell===e&&!h&&a.cancelEdit()}function g(m){r=m}if(e.column.modules.edit.blocked)return this.mouseClick=!1,this.blur(l),!1;if(t&&t.stopPropagation(),n=this.allowEdit(e),n||i){if(a.cancelEdit(),a.currentCell=e,this.focusScrollAdjust(e),u=e.getComponent(),this.mouseClick&&(this.mouseClick=!1,e.column.definition.cellClick&&e.column.definition.cellClick.call(this.table,t,u)),e.column.definition.cellEditing&&e.column.definition.cellEditing.call(this.table,u),this.dispatch("cell-editing",e),this.dispatchExternal("cellEditing",u),p=typeof e.column.modules.edit.params=="function"?e.column.modules.edit.params(u):e.column.modules.edit.params,d=e.column.modules.edit.editor.call(a,u,g,y,f,p),this.currentCell&&d!==!1)if(d instanceof Node){for(l.classList.add("tabulator-editing"),e.row.getElement().classList.add("tabulator-editing"),e.table.element.classList.add("tabulator-editing");l.firstChild;)l.removeChild(l.firstChild);l.appendChild(d),r();for(var k=l.children,b=0;b<k.length;b++)k[b].addEventListener("click",function(m){m.stopPropagation()})}else return console.warn("Edit Error - Editor should return an instance of Node, the editor returned:",d),this.blur(l),!1;else return this.blur(l),!1;return!0}else return this.mouseClick=!1,this.blur(l),!1}emptyValueCheck(e){return e===""||e===null||typeof e>"u"}transformEmptyValues(e,t){var i=t.column.modules.edit,a=i.convertEmptyValues||this.convertEmptyValues,n;return a&&(n=i.editorEmptyValueFunc||this.options("editorEmptyValueFunc"),n&&n(e)&&(e=i.convertEmptyValues?i.editorEmptyValue:this.options("editorEmptyValue"))),e}blur(e){this.confirm("edit-blur",[e])||e.blur()}getEditedCells(){var e=[];return this.editedCells.forEach(t=>{e.push(t.getComponent())}),e}clearEdited(e){var t;e.modules.edit&&e.modules.edit.edited&&(e.modules.edit.edited=!1,this.dispatch("edit-edited-clear",e)),t=this.editedCells.indexOf(e),t>-1&&this.editedCells.splice(t,1)}};E(Ln,"moduleName","edit"),E(Ln,"editors",ES);let k9=Ln;class _C{constructor(e,t,i,a){this.type=e,this.columns=t,this.component=i||!1,this.indent=a||0}}class b9{constructor(e,t,i,a,n){this.value=e,this.component=t||!1,this.width=i,this.height=a,this.depth=n}}var SS={},IS={visible:function(){return this.rowManager.getVisibleRows(!1,!0)},all:function(){return this.rowManager.rows},selected:function(){return this.modules.selectRow.selectedRows},active:function(){return this.options.pagination?this.rowManager.getDisplayRows(this.rowManager.displayRows.length-2):this.rowManager.getDisplayRows()}};const Ke=class Ke extends q{constructor(e){super(e),this.config={},this.cloneTableStyle=!0,this.colVisProp="",this.colVisPropAttach="",this.registerTableOption("htmlOutputConfig",!1),this.registerColumnOption("htmlOutput"),this.registerColumnOption("titleHtmlOutput")}initialize(){this.registerTableFunction("getHtml",this.getHtml.bind(this))}generateExportList(e,t,i,a){var n,r,l,h;return this.cloneTableStyle=t,this.config=e||{},this.colVisProp=a,this.colVisPropAttach=this.colVisProp.charAt(0).toUpperCase()+this.colVisProp.slice(1),h=Ke.columnLookups[i],h&&(l=h.call(this.table),l=l.filter(d=>this.columnVisCheck(d))),n=this.config.columnHeaders!==!1?this.headersToExportRows(this.generateColumnGroupHeaders(l)):[],l&&(l=l.map(d=>d.getComponent())),r=this.bodyToExportRows(this.rowLookup(i),l),n.concat(r)}generateTable(e,t,i,a){var n=this.generateExportList(e,t,i,a);return this.generateTableElement(n)}rowLookup(e){var t=[],i;return typeof e=="function"?e.call(this.table).forEach(a=>{a=this.table.rowManager.findRow(a),a&&t.push(a)}):(i=Ke.rowLookups[e]||Ke.rowLookups.active,t=i.call(this.table)),Object.assign([],t)}generateColumnGroupHeaders(e){var t=[];return e||(e=this.config.columnGroups!==!1?this.table.columnManager.columns:this.table.columnManager.columnsByIndex),e.forEach(i=>{var a=this.processColumnGroup(i);a&&t.push(a)}),t}processColumnGroup(e){var t=e.columns,i=0,a=e.definition["title"+this.colVisPropAttach]||e.definition.title,n={title:a,column:e,depth:1};if(t.length){if(n.subGroups=[],n.width=0,t.forEach(r=>{var l=this.processColumnGroup(r);l&&(n.width+=l.width,n.subGroups.push(l),l.depth>i&&(i=l.depth))}),n.depth+=i,!n.width)return!1}else if(this.columnVisCheck(e))n.width=1;else return!1;return n}columnVisCheck(e){var t=e.definition[this.colVisProp];return this.config.rowHeaders===!1&&e.isRowHeader?!1:(typeof t=="function"&&(t=t.call(this.table,e.getComponent())),t===!1||t===!0?t:e.visible&&e.field)}headersToExportRows(e){var t=[],i=0,a=[];function n(r,l){var h=i-l;if(typeof t[l]>"u"&&(t[l]=[]),r.height=r.subGroups?1:h-r.depth+1,t[l].push(r),r.height>1)for(let d=1;d<r.height;d++)typeof t[l+d]>"u"&&(t[l+d]=[]),t[l+d].push(!1);if(r.width>1)for(let d=1;d<r.width;d++)t[l].push(!1);r.subGroups&&r.subGroups.forEach(function(d){n(d,l+1)})}return e.forEach(function(r){r.depth>i&&(i=r.depth)}),e.forEach(function(r){n(r,0)}),t.forEach(r=>{var l=[];r.forEach(h=>{if(h){let d=typeof h.title>"u"?"":h.title;l.push(new b9(d,h.column.getComponent(),h.width,h.height,h.depth))}else l.push(null)}),a.push(new _C("header",l))}),a}bodyToExportRows(e,t=[]){var i=[];return t.length===0&&this.table.columnManager.columnsByIndex.forEach(a=>{this.columnVisCheck(a)&&t.push(a.getComponent())}),this.config.columnCalcs!==!1&&this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&e.unshift(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&e.push(this.table.modules.columnCalcs.botRow)),e=e.filter(a=>{switch(a.type){case"group":return this.config.rowGroups!==!1;case"calc":return this.config.columnCalcs!==!1;case"row":return!(this.table.options.dataTree&&this.config.dataTree===!1&&a.modules.dataTree.parent)}return!0}),e.forEach((a,n)=>{var r=a.getData(this.colVisProp),l=[],h=0;switch(a.type){case"group":h=a.level,l.push(new b9(a.key,a.getComponent(),t.length,1));break;case"calc":case"row":t.forEach(d=>{l.push(new b9(d._column.getFieldValue(r),d,1,1))}),this.table.options.dataTree&&this.config.dataTree!==!1&&(h=a.modules.dataTree.index);break}i.push(new _C(a.type,l,a.getComponent(),h))}),i}generateTableElement(e){var t=document.createElement("table"),i=document.createElement("thead"),a=document.createElement("tbody"),n=this.lookupTableStyles(),r=this.table.options["rowFormatter"+this.colVisPropAttach],l={};return l.rowFormatter=r!==null?r:this.table.options.rowFormatter,this.table.options.dataTree&&this.config.dataTree!==!1&&this.table.modExists("columnCalcs")&&(l.treeElementField=this.table.modules.dataTree.elementField),l.groupHeader=this.table.options["groupHeader"+this.colVisPropAttach],l.groupHeader&&!Array.isArray(l.groupHeader)&&(l.groupHeader=[l.groupHeader]),t.classList.add("tabulator-print-table"),this.mapElementStyles(this.table.columnManager.getHeadersElement(),i,["border-top","border-left","border-right","border-bottom","background-color","color","font-weight","font-family","font-size"]),e.length>1e3&&console.warn("It may take a long time to render an HTML table with more than 1000 rows"),e.forEach((h,d)=>{let u;switch(h.type){case"header":i.appendChild(this.generateHeaderElement(h,l,n));break;case"group":a.appendChild(this.generateGroupElement(h,l,n));break;case"calc":a.appendChild(this.generateCalcElement(h,l,n));break;case"row":u=this.generateRowElement(h,l,n),this.mapElementStyles(d%2&&n.evenRow?n.evenRow:n.oddRow,u,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),a.appendChild(u);break}}),i.innerHTML&&t.appendChild(i),t.appendChild(a),this.mapElementStyles(this.table.element,t,["border-top","border-left","border-right","border-bottom"]),t}lookupTableStyles(){var e={};return this.cloneTableStyle&&window.getComputedStyle&&(e.oddRow=this.table.element.querySelector(".tabulator-row-odd:not(.tabulator-group):not(.tabulator-calcs)"),e.evenRow=this.table.element.querySelector(".tabulator-row-even:not(.tabulator-group):not(.tabulator-calcs)"),e.calcRow=this.table.element.querySelector(".tabulator-row.tabulator-calcs"),e.firstRow=this.table.element.querySelector(".tabulator-row:not(.tabulator-group):not(.tabulator-calcs)"),e.firstGroup=this.table.element.getElementsByClassName("tabulator-group")[0],e.firstRow&&(e.styleCells=e.firstRow.getElementsByClassName("tabulator-cell"),e.styleRowHeader=e.firstRow.getElementsByClassName("tabulator-row-header")[0],e.firstCell=e.styleCells[0],e.lastCell=e.styleCells[e.styleCells.length-1])),e}generateHeaderElement(e,t,i){var a=document.createElement("tr");return e.columns.forEach(n=>{if(n){var r=document.createElement("th"),l=n.component._column.definition.cssClass?n.component._column.definition.cssClass.split(" "):[];r.colSpan=n.width,r.rowSpan=n.height,r.innerHTML=n.value,this.cloneTableStyle&&(r.style.boxSizing="border-box"),l.forEach(function(h){r.classList.add(h)}),this.mapElementStyles(n.component.getElement(),r,["text-align","border-left","border-right","background-color","color","font-weight","font-family","font-size"]),this.mapElementStyles(n.component._column.contentElement,r,["padding-top","padding-left","padding-right","padding-bottom"]),n.component._column.visible?this.mapElementStyles(n.component.getElement(),r,["width"]):n.component._column.definition.width&&(r.style.width=n.component._column.definition.width+"px"),n.component._column.parent&&n.component._column.parent.isGroup?this.mapElementStyles(n.component._column.parent.groupElement,r,["border-top"]):this.mapElementStyles(n.component.getElement(),r,["border-top"]),n.component._column.isGroup?this.mapElementStyles(n.component.getElement(),r,["border-bottom"]):this.mapElementStyles(this.table.columnManager.getElement(),r,["border-bottom"]),a.appendChild(r)}}),a}generateGroupElement(e,t,i){var a=document.createElement("tr"),n=document.createElement("td"),r=e.columns[0];return a.classList.add("tabulator-print-table-row"),t.groupHeader&&t.groupHeader[e.indent]?r.value=t.groupHeader[e.indent](r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component):t.groupHeader!==!1&&(r.value=e.component._group.generator(r.value,e.component._group.getRowCount(),e.component._group.getData(),e.component)),n.colSpan=r.width,n.innerHTML=r.value,a.classList.add("tabulator-print-table-group"),a.classList.add("tabulator-group-level-"+e.indent),r.component.isVisible()&&a.classList.add("tabulator-group-visible"),this.mapElementStyles(i.firstGroup,a,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),this.mapElementStyles(i.firstGroup,n,["padding-top","padding-left","padding-right","padding-bottom"]),a.appendChild(n),a}generateCalcElement(e,t,i){var a=this.generateRowElement(e,t,i);return a.classList.add("tabulator-print-table-calcs"),this.mapElementStyles(i.calcRow,a,["border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","background-color"]),a}generateRowElement(e,t,i){var a=document.createElement("tr");if(a.classList.add("tabulator-print-table-row"),e.columns.forEach((n,r)=>{if(n){var l=document.createElement("td"),h=n.component._column,d=this.table,u=d.columnManager.findColumnIndex(h),p=n.value,y,f,g={modules:{},getValue:function(){return p},getField:function(){return h.definition.field},getElement:function(){return l},getType:function(){return"cell"},getColumn:function(){return h.getComponent()},getData:function(){return e.component.getData()},getRow:function(){return e.component},getTable:function(){return d},getComponent:function(){return g},column:h},k=h.definition.cssClass?h.definition.cssClass.split(" "):[];if(k.forEach(function(b){l.classList.add(b)}),this.table.modExists("format")&&this.config.formatCells!==!1)p=this.table.modules.format.formatExportValue(g,this.colVisProp);else switch(typeof p){case"object":p=p!==null?JSON.stringify(p):"";break;case"undefined":p="";break}p instanceof Node?l.appendChild(p):l.innerHTML=p,f=["padding-top","padding-left","padding-right","padding-bottom","border-top","border-left","border-right","border-bottom","color","font-weight","font-family","font-size","text-align"],h.isRowHeader?(y=i.styleRowHeader,f.push("background-color")):y=i.styleCells&&i.styleCells[u]?i.styleCells[u]:i.firstCell,y&&(this.mapElementStyles(y,l,f),h.definition.align&&(l.style.textAlign=h.definition.align)),this.table.options.dataTree&&this.config.dataTree!==!1&&(t.treeElementField&&t.treeElementField==h.field||!t.treeElementField&&r==0)&&(e.component._row.modules.dataTree.controlEl&&l.insertBefore(e.component._row.modules.dataTree.controlEl.cloneNode(!0),l.firstChild),e.component._row.modules.dataTree.branchEl&&l.insertBefore(e.component._row.modules.dataTree.branchEl.cloneNode(!0),l.firstChild)),a.appendChild(l),g.modules.format&&g.modules.format.renderedCallback&&g.modules.format.renderedCallback()}}),t.rowFormatter&&e.type==="row"&&this.config.formatCells!==!1){let n=Object.assign(e.component);n.getElement=function(){return a},t.rowFormatter(e.component)}return a}generateHTMLTable(e){var t=document.createElement("div");return t.appendChild(this.generateTableElement(e)),t.innerHTML}getHtml(e,t,i,a){var n=this.generateExportList(i||this.table.options.htmlOutputConfig,t,e,a||"htmlOutput");return this.generateHTMLTable(n)}mapElementStyles(e,t,i){if(this.cloneTableStyle&&e&&t){var a={"background-color":"backgroundColor",color:"fontColor",width:"width","font-weight":"fontWeight","font-family":"fontFamily","font-size":"fontSize","text-align":"textAlign","border-top":"borderTop","border-left":"borderLeft","border-right":"borderRight","border-bottom":"borderBottom","padding-top":"paddingTop","padding-left":"paddingLeft","padding-right":"paddingRight","padding-bottom":"paddingBottom"};if(window.getComputedStyle){var n=window.getComputedStyle(e);i.forEach(function(r){t.style[a[r]]||(t.style[a[r]]=n.getPropertyValue(r))})}}}};E(Ke,"moduleName","export"),E(Ke,"columnLookups",SS),E(Ke,"rowLookups",IS);let w9=Ke;var TS={"=":function(o,e,t,i){return e==o},"<":function(o,e,t,i){return e<o},"<=":function(o,e,t,i){return e<=o},">":function(o,e,t,i){return e>o},">=":function(o,e,t,i){return e>=o},"!=":function(o,e,t,i){return e!=o},regex:function(o,e,t,i){return typeof o=="string"&&(o=new RegExp(o)),o.test(e)},like:function(o,e,t,i){return o===null||typeof o>"u"?e===o:typeof e<"u"&&e!==null?String(e).toLowerCase().indexOf(o.toLowerCase())>-1:!1},keywords:function(o,e,t,i){var a=o.toLowerCase().split(typeof i.separator>"u"?" ":i.separator),n=String(e===null||typeof e>"u"?"":e).toLowerCase(),r=[];return a.forEach(l=>{n.includes(l)&&r.push(!0)}),i.matchAll?r.length===a.length:!!r.length},starts:function(o,e,t,i){return o===null||typeof o>"u"?e===o:typeof e<"u"&&e!==null?String(e).toLowerCase().startsWith(o.toLowerCase()):!1},ends:function(o,e,t,i){return o===null||typeof o>"u"?e===o:typeof e<"u"&&e!==null?String(e).toLowerCase().endsWith(o.toLowerCase()):!1},in:function(o,e,t,i){return Array.isArray(o)?o.length?o.indexOf(e)>-1:!0:(console.warn("Filter Error - filter value is not an array:",o),!1)}};const Fe=class Fe extends q{constructor(e){super(e),this.filterList=[],this.headerFilters={},this.headerFilterColumns=[],this.prevHeaderFilterChangeCheck="",this.prevHeaderFilterChangeCheck="{}",this.changed=!1,this.tableInitialized=!1,this.registerTableOption("filterMode","local"),this.registerTableOption("initialFilter",!1),this.registerTableOption("initialHeaderFilter",!1),this.registerTableOption("headerFilterLiveFilterDelay",300),this.registerTableOption("placeholderHeaderFilter",!1),this.registerColumnOption("headerFilter"),this.registerColumnOption("headerFilterPlaceholder"),this.registerColumnOption("headerFilterParams"),this.registerColumnOption("headerFilterEmptyCheck"),this.registerColumnOption("headerFilterFunc"),this.registerColumnOption("headerFilterFuncParams"),this.registerColumnOption("headerFilterLiveFilter"),this.registerTableFunction("searchRows",this.searchRows.bind(this)),this.registerTableFunction("searchData",this.searchData.bind(this)),this.registerTableFunction("setFilter",this.userSetFilter.bind(this)),this.registerTableFunction("refreshFilter",this.userRefreshFilter.bind(this)),this.registerTableFunction("addFilter",this.userAddFilter.bind(this)),this.registerTableFunction("getFilters",this.getFilters.bind(this)),this.registerTableFunction("setHeaderFilterFocus",this.userSetHeaderFilterFocus.bind(this)),this.registerTableFunction("getHeaderFilterValue",this.userGetHeaderFilterValue.bind(this)),this.registerTableFunction("setHeaderFilterValue",this.userSetHeaderFilterValue.bind(this)),this.registerTableFunction("getHeaderFilters",this.getHeaderFilters.bind(this)),this.registerTableFunction("removeFilter",this.userRemoveFilter.bind(this)),this.registerTableFunction("clearFilter",this.userClearFilter.bind(this)),this.registerTableFunction("clearHeaderFilter",this.userClearHeaderFilter.bind(this)),this.registerComponentFunction("column","headerFilterFocus",this.setHeaderFilterFocus.bind(this)),this.registerComponentFunction("column","reloadHeaderFilter",this.reloadHeaderFilter.bind(this)),this.registerComponentFunction("column","getHeaderFilterValue",this.getHeaderFilterValue.bind(this)),this.registerComponentFunction("column","setHeaderFilterValue",this.setHeaderFilterValue.bind(this))}initialize(){this.subscribe("column-init",this.initializeColumnHeaderFilter.bind(this)),this.subscribe("column-width-fit-before",this.hideHeaderFilterElements.bind(this)),this.subscribe("column-width-fit-after",this.showHeaderFilterElements.bind(this)),this.subscribe("table-built",this.tableBuilt.bind(this)),this.subscribe("placeholder",this.generatePlaceholder.bind(this)),this.table.options.filterMode==="remote"&&this.subscribe("data-params",this.remoteFilterParams.bind(this)),this.registerDataHandler(this.filter.bind(this),10)}tableBuilt(){this.table.options.initialFilter&&this.setFilter(this.table.options.initialFilter),this.table.options.initialHeaderFilter&&this.table.options.initialHeaderFilter.forEach(e=>{var t=this.table.columnManager.findColumn(e.field);if(t)this.setHeaderFilterValue(t,e.value);else return console.warn("Column Filter Error - No matching column found:",e.field),!1}),this.tableInitialized=!0}remoteFilterParams(e,t,i,a){return a.filter=this.getFilters(!0,!0),a}generatePlaceholder(e){if(this.table.options.placeholderHeaderFilter&&Object.keys(this.headerFilters).length)return this.table.options.placeholderHeaderFilter}userSetFilter(e,t,i,a){this.setFilter(e,t,i,a),this.refreshFilter()}userRefreshFilter(){this.refreshFilter()}userAddFilter(e,t,i,a){this.addFilter(e,t,i,a),this.refreshFilter()}userSetHeaderFilterFocus(e){var t=this.table.columnManager.findColumn(e);if(t)this.setHeaderFilterFocus(t);else return console.warn("Column Filter Focus Error - No matching column found:",e),!1}userGetHeaderFilterValue(e){var t=this.table.columnManager.findColumn(e);if(t)return this.getHeaderFilterValue(t);console.warn("Column Filter Error - No matching column found:",e)}userSetHeaderFilterValue(e,t){var i=this.table.columnManager.findColumn(e);if(i)this.setHeaderFilterValue(i,t);else return console.warn("Column Filter Error - No matching column found:",e),!1}userRemoveFilter(e,t,i){this.removeFilter(e,t,i),this.refreshFilter()}userClearFilter(e){this.clearFilter(e),this.refreshFilter()}userClearHeaderFilter(){this.clearHeaderFilter(),this.refreshFilter()}searchRows(e,t,i){return this.search("rows",e,t,i)}searchData(e,t,i){return this.search("data",e,t,i)}initializeColumnHeaderFilter(e){var t=e.definition;t.headerFilter&&this.initializeColumn(e)}initializeColumn(e,t){var i=this,a=e.getField();function n(r){var l=e.modules.filter.tagType=="input"&&e.modules.filter.attrType=="text"||e.modules.filter.tagType=="textarea"?"partial":"match",h="",d="",u;if(typeof e.modules.filter.prevSuccess>"u"||e.modules.filter.prevSuccess!==r){if(e.modules.filter.prevSuccess=r,e.modules.filter.emptyFunc(r))delete i.headerFilters[a];else{switch(e.modules.filter.value=r,typeof e.definition.headerFilterFunc){case"string":Fe.filters[e.definition.headerFilterFunc]?(h=e.definition.headerFilterFunc,u=function(p){var y=e.definition.headerFilterFuncParams||{},f=e.getFieldValue(p);return y=typeof y=="function"?y(r,f,p):y,Fe.filters[e.definition.headerFilterFunc](r,f,p,y)}):console.warn("Header Filter Error - Matching filter function not found: ",e.definition.headerFilterFunc);break;case"function":u=function(p){var y=e.definition.headerFilterFuncParams||{},f=e.getFieldValue(p);return y=typeof y=="function"?y(r,f,p):y,e.definition.headerFilterFunc(r,f,p,y)},h=u;break}if(!u)switch(l){case"partial":u=function(p){var y=e.getFieldValue(p);return typeof y<"u"&&y!==null?String(y).toLowerCase().indexOf(String(r).toLowerCase())>-1:!1},h="like";break;default:u=function(p){return e.getFieldValue(p)==r},h="="}i.headerFilters[a]={value:r,func:u,type:h}}e.modules.filter.value=r,d=JSON.stringify(i.headerFilters),i.prevHeaderFilterChangeCheck!==d&&(i.prevHeaderFilterChangeCheck=d,i.trackChanges(),i.refreshFilter())}return!0}e.modules.filter={success:n,attrType:!1,tagType:!1,emptyFunc:!1},this.generateHeaderFilterElement(e)}generateHeaderFilterElement(e,t,i){var a=this,n=e.modules.filter.success,r=e.getField(),l,h,d,u,p,y,f,g;e.modules.filter.value=t;function k(){}function b(m){g=m}if(e.modules.filter.headerElement&&e.modules.filter.headerElement.parentNode&&e.contentElement.removeChild(e.modules.filter.headerElement.parentNode),r){switch(e.modules.filter.emptyFunc=e.definition.headerFilterEmptyCheck||function(m){return!m&&m!==0},l=document.createElement("div"),l.classList.add("tabulator-header-filter"),typeof e.definition.headerFilter){case"string":a.table.modules.edit.editors[e.definition.headerFilter]?(h=a.table.modules.edit.editors[e.definition.headerFilter],(e.definition.headerFilter==="tick"||e.definition.headerFilter==="tickCross")&&!e.definition.headerFilterEmptyCheck&&(e.modules.filter.emptyFunc=function(m){return m!==!0&&m!==!1})):console.warn("Filter Error - Cannot build header filter, No such editor found: ",e.definition.editor);break;case"function":h=e.definition.headerFilter;break;case"boolean":e.modules.edit&&e.modules.edit.editor?h=e.modules.edit.editor:e.definition.formatter&&a.table.modules.edit.editors[e.definition.formatter]?(h=a.table.modules.edit.editors[e.definition.formatter],(e.definition.formatter==="tick"||e.definition.formatter==="tickCross")&&!e.definition.headerFilterEmptyCheck&&(e.modules.filter.emptyFunc=function(m){return m!==!0&&m!==!1})):h=a.table.modules.edit.editors.input;break}if(h){if(u={getValue:function(){return typeof t<"u"?t:""},getField:function(){return e.definition.field},getElement:function(){return l},getColumn:function(){return e.getComponent()},getTable:()=>this.table,getType:()=>"header",getRow:function(){return{normalizeHeight:function(){}}}},f=e.definition.headerFilterParams||{},f=typeof f=="function"?f.call(a.table,u):f,d=h.call(this.table.modules.edit,u,b,n,k,f),!d){console.warn("Filter Error - Cannot add filter to "+r+" column, editor returned a value of false");return}if(!(d instanceof Node)){console.warn("Filter Error - Cannot add filter to "+r+" column, editor should return an instance of Node, the editor returned:",d);return}a.langBind("headerFilters|columns|"+e.definition.field,function(m){d.setAttribute("placeholder",typeof m<"u"&&m?m:e.definition.headerFilterPlaceholder||a.langText("headerFilters|default"))}),d.addEventListener("click",function(m){m.stopPropagation(),d.focus()}),d.addEventListener("focus",m=>{var M=this.table.columnManager.contentsElement.scrollLeft,v=this.table.rowManager.element.scrollLeft;M!==v&&(this.table.rowManager.scrollHorizontal(M),this.table.columnManager.scrollHorizontal(M))}),p=!1,y=function(m){p&&clearTimeout(p),p=setTimeout(function(){n(d.value)},a.table.options.headerFilterLiveFilterDelay)},e.modules.filter.headerElement=d,e.modules.filter.attrType=d.hasAttribute("type")?d.getAttribute("type").toLowerCase():"",e.modules.filter.tagType=d.tagName.toLowerCase(),e.definition.headerFilterLiveFilter!==!1&&(e.definition.headerFilter==="autocomplete"||e.definition.headerFilter==="tickCross"||(e.definition.editor==="autocomplete"||e.definition.editor==="tickCross")&&e.definition.headerFilter===!0||(d.addEventListener("keyup",y),d.addEventListener("search",y),e.modules.filter.attrType=="number"&&d.addEventListener("change",function(m){n(d.value)}),e.modules.filter.attrType=="text"&&this.table.browser!=="ie"&&d.setAttribute("type","search")),(e.modules.filter.tagType=="input"||e.modules.filter.tagType=="select"||e.modules.filter.tagType=="textarea")&&d.addEventListener("mousedown",function(m){m.stopPropagation()})),l.appendChild(d),e.contentElement.appendChild(l),i||a.headerFilterColumns.push(e),g&&g()}}else console.warn("Filter Error - Cannot add header filter, column has no field set:",e.definition.title)}hideHeaderFilterElements(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="none")})}showHeaderFilterElements(){this.headerFilterColumns.forEach(function(e){e.modules.filter&&e.modules.filter.headerElement&&(e.modules.filter.headerElement.style.display="")})}setHeaderFilterFocus(e){e.modules.filter&&e.modules.filter.headerElement?e.modules.filter.headerElement.focus():console.warn("Column Filter Focus Error - No header filter set on column:",e.getField())}getHeaderFilterValue(e){if(e.modules.filter&&e.modules.filter.headerElement)return e.modules.filter.value;console.warn("Column Filter Error - No header filter set on column:",e.getField())}setHeaderFilterValue(e,t){e&&(e.modules.filter&&e.modules.filter.headerElement?(this.generateHeaderFilterElement(e,t,!0),e.modules.filter.success(t)):console.warn("Column Filter Error - No header filter set on column:",e.getField()))}reloadHeaderFilter(e){e&&(e.modules.filter&&e.modules.filter.headerElement?this.generateHeaderFilterElement(e,e.modules.filter.value,!0):console.warn("Column Filter Error - No header filter set on column:",e.getField()))}refreshFilter(){this.tableInitialized&&(this.table.options.filterMode==="remote"?this.reloadData(null,!1,!1):this.refreshData(!0))}trackChanges(){this.changed=!0,this.dispatch("filter-changed")}hasChanged(){var e=this.changed;return this.changed=!1,e}setFilter(e,t,i,a){this.filterList=[],Array.isArray(e)||(e=[{field:e,type:t,value:i,params:a}]),this.addFilter(e)}addFilter(e,t,i,a){var n=!1;Array.isArray(e)||(e=[{field:e,type:t,value:i,params:a}]),e.forEach(r=>{r=this.findFilter(r),r&&(this.filterList.push(r),n=!0)}),n&&this.trackChanges()}findFilter(e){var t;if(Array.isArray(e))return this.findSubFilters(e);var i=!1;return typeof e.field=="function"?i=function(a){return e.field(a,e.type||{})}:Fe.filters[e.type]?(t=this.table.columnManager.getColumnByField(e.field),t?i=function(a){return Fe.filters[e.type](e.value,t.getFieldValue(a),a,e.params||{})}:i=function(a){return Fe.filters[e.type](e.value,a[e.field],a,e.params||{})}):console.warn("Filter Error - No such filter type found, ignoring: ",e.type),e.func=i,e.func?e:!1}findSubFilters(e){var t=[];return e.forEach(i=>{i=this.findFilter(i),i&&t.push(i)}),t.length?t:!1}getFilters(e,t){var i=[];return e&&(i=this.getHeaderFilters()),t&&i.forEach(function(a){typeof a.type=="function"&&(a.type="function")}),i=i.concat(this.filtersToArray(this.filterList,t)),i}filtersToArray(e,t){var i=[];return e.forEach(a=>{var n;Array.isArray(a)?i.push(this.filtersToArray(a,t)):(n={field:a.field,type:a.type,value:a.value},t&&typeof n.type=="function"&&(n.type="function"),i.push(n))}),i}getHeaderFilters(){var e=[];for(var t in this.headerFilters)e.push({field:t,type:this.headerFilters[t].type,value:this.headerFilters[t].value});return e}removeFilter(e,t,i){Array.isArray(e)||(e=[{field:e,type:t,value:i}]),e.forEach(a=>{var n=-1;typeof a.field=="object"?n=this.filterList.findIndex(r=>a===r):n=this.filterList.findIndex(r=>a.field===r.field&&a.type===r.type&&a.value===r.value),n>-1?this.filterList.splice(n,1):console.warn("Filter Error - No matching filter type found, ignoring: ",a.type)}),this.trackChanges()}clearFilter(e){this.filterList=[],e&&this.clearHeaderFilter(),this.trackChanges()}clearHeaderFilter(){this.headerFilters={},this.prevHeaderFilterChangeCheck="{}",this.headerFilterColumns.forEach(e=>{typeof e.modules.filter.value<"u"&&delete e.modules.filter.value,e.modules.filter.prevSuccess=void 0,this.reloadHeaderFilter(e)}),this.trackChanges()}search(e,t,i,a){var n=[],r=[];return Array.isArray(t)||(t=[{field:t,type:i,value:a}]),t.forEach(l=>{l=this.findFilter(l),l&&r.push(l)}),this.table.rowManager.rows.forEach(l=>{var h=!0;r.forEach(d=>{this.filterRecurse(d,l.getData())||(h=!1)}),h&&n.push(e==="data"?l.getData("data"):l.getComponent())}),n}filter(e,t){var i=[],a=[];return this.subscribedExternal("dataFiltering")&&this.dispatchExternal("dataFiltering",this.getFilters(!0)),this.table.options.filterMode!=="remote"&&(this.filterList.length||Object.keys(this.headerFilters).length)?e.forEach(n=>{this.filterRow(n)&&i.push(n)}):i=e.slice(0),this.subscribedExternal("dataFiltered")&&(i.forEach(n=>{a.push(n.getComponent())}),this.dispatchExternal("dataFiltered",this.getFilters(!0),a)),i}filterRow(e,t){var i=!0,a=e.getData();this.filterList.forEach(r=>{this.filterRecurse(r,a)||(i=!1)});for(var n in this.headerFilters)this.headerFilters[n].func(a)||(i=!1);return i}filterRecurse(e,t){var i=!1;return Array.isArray(e)?e.forEach(a=>{this.filterRecurse(a,t)&&(i=!0)}):i=e.func(t),i}};E(Fe,"moduleName","filter"),E(Fe,"filters",TS);let v9=Fe;function DS(o,e,t){return this.emptyToSpace(this.sanitizeHTML(o.getValue()))}function zS(o,e,t){return o.getValue()}function RS(o,e,t){return o.getElement().style.whiteSpace="pre-wrap",this.emptyToSpace(this.sanitizeHTML(o.getValue()))}function HS(o,e,t){var i=parseFloat(o.getValue()),a="",n,r,l,h,d,u=e.decimal||".",p=e.thousand||",",y=e.negativeSign||"-",f=e.symbol||"",g=!!e.symbolAfter,k=typeof e.precision<"u"?e.precision:2;if(isNaN(i))return this.emptyToSpace(this.sanitizeHTML(o.getValue()));if(i<0&&(i=Math.abs(i),a=y),n=k!==!1?i.toFixed(k):i,n=String(n).split("."),r=n[0],l=n.length>1?u+n[1]:"",e.thousand!==!1)for(h=/(\d+)(\d{3})/;h.test(r);)r=r.replace(h,"$1"+p+"$2");return d=r+l,a===!0?(d="("+d+")",g?d+f:f+d):g?a+d+f:a+f+d}function AS(o,e,t){var i=o.getValue(),a=e.urlPrefix||"",n=e.download,r=i,l=document.createElement("a"),h;function d(u,p){var y=u.shift(),f=p[y];return u.length&&typeof f=="object"?d(u,f):f}if(e.labelField&&(h=o.getData(),r=d(e.labelField.split(this.table.options.nestedFieldSeparator),h)),e.label)switch(typeof e.label){case"string":r=e.label;break;case"function":r=e.label(o);break}if(r){if(e.urlField&&(h=o.getData(),i=$.retrieveNestedData(this.table.options.nestedFieldSeparator,e.urlField,h)),e.url)switch(typeof e.url){case"string":i=e.url;break;case"function":i=e.url(o);break}return l.setAttribute("href",a+i),e.target&&l.setAttribute("target",e.target),e.download&&(typeof n=="function"?n=n(o):n=n===!0?"":n,l.setAttribute("download",n)),l.innerHTML=this.emptyToSpace(this.sanitizeHTML(r)),l}else return"&nbsp;"}function VS(o,e,t){var i=document.createElement("img"),a=o.getValue();switch(e.urlPrefix&&(a=e.urlPrefix+o.getValue()),e.urlSuffix&&(a=a+e.urlSuffix),i.setAttribute("src",a),typeof e.height){case"number":i.style.height=e.height+"px";break;case"string":i.style.height=e.height;break}switch(typeof e.width){case"number":i.style.width=e.width+"px";break;case"string":i.style.width=e.width;break}return i.addEventListener("load",function(){o.getRow().normalizeHeight()}),i}function PS(o,e,t){var i=o.getValue(),a=o.getElement(),n=e.allowEmpty,r=e.allowTruthy,l=Object.keys(e).includes("trueValue"),h=typeof e.tickElement<"u"?e.tickElement:'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>',d=typeof e.crossElement<"u"?e.crossElement:'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>';return l&&i===e.trueValue||!l&&(r&&i||i===!0||i==="true"||i==="True"||i===1||i==="1")?(a.setAttribute("aria-checked",!0),h||""):n&&(i==="null"||i===""||i===null||typeof i>"u")?(a.setAttribute("aria-checked","mixed"),""):(a.setAttribute("aria-checked",!1),d||"")}function qS(o,e,t){var i=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),a=e.inputFormat||"yyyy-MM-dd HH:mm:ss",n=e.outputFormat||"dd/MM/yyyy HH:mm:ss",r=typeof e.invalidPlaceholder<"u"?e.invalidPlaceholder:"",l=o.getValue();if(typeof i<"u"){var h;return i.isDateTime(l)?h=l:a==="iso"?h=i.fromISO(String(l)):h=i.fromFormat(String(l),a),h.isValid?(e.timezone&&(h=h.setZone(e.timezone)),h.toFormat(n)):r===!0||!l?l:typeof r=="function"?r(l):r}else console.error("Format Error - 'datetime' formatter is dependant on luxon.js")}function BS(o,e,t){var i=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),a=e.inputFormat||"yyyy-MM-dd HH:mm:ss",n=typeof e.invalidPlaceholder<"u"?e.invalidPlaceholder:"",r=typeof e.suffix<"u"?e.suffix:!1,l=typeof e.unit<"u"?e.unit:"days",h=typeof e.humanize<"u"?e.humanize:!1,d=typeof e.date<"u"?e.date:i.now(),u=o.getValue();if(typeof i<"u"){var p;return i.isDateTime(u)?p=u:a==="iso"?p=i.fromISO(String(u)):p=i.fromFormat(String(u),a),p.isValid?h?p.diff(d,l).toHuman()+(r?" "+r:""):parseInt(p.diff(d,l)[l])+(r?" "+r:""):n===!0?u:typeof n=="function"?n(u):n}else console.error("Format Error - 'datetimediff' formatter is dependant on luxon.js")}function FS(o,e,t){var i=o.getValue();return typeof e[i]>"u"?(console.warn("Missing display value for "+i),i):e[i]}function OS(o,e,t){var i=o.getValue(),a=o.getElement(),n=e&&e.stars?e.stars:5,r=document.createElement("span"),l=document.createElementNS("http://www.w3.org/2000/svg","svg"),h='<polygon fill="#FFEA00" stroke="#C1AB60" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>',d='<polygon fill="#D2D2D2" stroke="#686868" stroke-width="37.6152" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="259.216,29.942 330.27,173.919 489.16,197.007 374.185,309.08 401.33,467.31 259.216,392.612 117.104,467.31 144.25,309.08 29.274,197.007 188.165,173.919 "/>';r.style.verticalAlign="middle",l.setAttribute("width","14"),l.setAttribute("height","14"),l.setAttribute("viewBox","0 0 512 512"),l.setAttribute("xml:space","preserve"),l.style.padding="0 1px",i=i&&!isNaN(i)?parseInt(i):0,i=Math.max(0,Math.min(i,n));for(var u=1;u<=n;u++){var p=l.cloneNode(!0);p.innerHTML=u<=i?h:d,r.appendChild(p)}return a.style.whiteSpace="nowrap",a.style.overflow="hidden",a.style.textOverflow="ellipsis",a.setAttribute("aria-label",i),r}function jS(o,e,t){var i=this.sanitizeHTML(o.getValue())||0,a=document.createElement("span"),n=e&&e.max?e.max:100,r=e&&e.min?e.min:0,l=e&&typeof e.color<"u"?e.color:["red","orange","green"],h="#666666",d,u;if(!(isNaN(i)||typeof o.getValue()>"u")){switch(a.classList.add("tabulator-traffic-light"),u=parseFloat(i)<=n?parseFloat(i):n,u=parseFloat(u)>=r?parseFloat(u):r,d=(n-r)/100,u=Math.round((u-r)/d),typeof l){case"string":h=l;break;case"function":h=l(i);break;case"object":if(Array.isArray(l)){var p=100/l.length,y=Math.floor(u/p);y=Math.min(y,l.length-1),y=Math.max(y,0),h=l[y];break}}return a.style.backgroundColor=h,a}}function NS(o,e={},t){var i=this.sanitizeHTML(o.getValue())||0,a=o.getElement(),n=e.max?e.max:100,r=e.min?e.min:0,l=e.legendAlign?e.legendAlign:"center",h,d,u,p,y;switch(d=parseFloat(i)<=n?parseFloat(i):n,d=parseFloat(d)>=r?parseFloat(d):r,h=(n-r)/100,d=Math.round((d-r)/h),typeof e.color){case"string":u=e.color;break;case"function":u=e.color(i);break;case"object":if(Array.isArray(e.color)){let b=100/e.color.length,m=Math.floor(d/b);m=Math.min(m,e.color.length-1),m=Math.max(m,0),u=e.color[m];break}default:u="#2DC214"}switch(typeof e.legend){case"string":p=e.legend;break;case"function":p=e.legend(i);break;case"boolean":p=i;break;default:p=!1}switch(typeof e.legendColor){case"string":y=e.legendColor;break;case"function":y=e.legendColor(i);break;case"object":if(Array.isArray(e.legendColor)){let b=100/e.legendColor.length,m=Math.floor(d/b);m=Math.min(m,e.legendColor.length-1),m=Math.max(m,0),y=e.legendColor[m]}break;default:y="#000"}a.style.minWidth="30px",a.style.position="relative",a.setAttribute("aria-label",d);var f=document.createElement("div");f.style.display="inline-block",f.style.width=d+"%",f.style.backgroundColor=u,f.style.height="100%",f.setAttribute("data-max",n),f.setAttribute("data-min",r);var g=document.createElement("div");if(g.style.position="relative",g.style.width="100%",g.style.height="100%",p){var k=document.createElement("div");k.style.position="absolute",k.style.top=0,k.style.left=0,k.style.textAlign=l,k.style.width="100%",k.style.color=y,k.innerHTML=p}return t(function(){if(!(o instanceof FC)){var b=document.createElement("div");b.style.position="absolute",b.style.top="4px",b.style.bottom="4px",b.style.left="4px",b.style.right="4px",a.appendChild(b),a=b}a.appendChild(g),g.appendChild(f),p&&g.appendChild(k)}),""}function _S(o,e,t){return o.getElement().style.backgroundColor=this.sanitizeHTML(o.getValue()),""}function WS(o,e,t){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#2DC214" clip-rule="evenodd" d="M21.652,3.211c-0.293-0.295-0.77-0.295-1.061,0L9.41,14.34 c-0.293,0.297-0.771,0.297-1.062,0L3.449,9.351C3.304,9.203,3.114,9.13,2.923,9.129C2.73,9.128,2.534,9.201,2.387,9.351 l-2.165,1.946C0.078,11.445,0,11.63,0,11.823c0,0.194,0.078,0.397,0.223,0.544l4.94,5.184c0.292,0.296,0.771,0.776,1.062,1.07 l2.124,2.141c0.292,0.293,0.769,0.293,1.062,0l14.366-14.34c0.293-0.294,0.293-0.777,0-1.071L21.652,3.211z" fill-rule="evenodd"/></svg>'}function US(o,e,t){return'<svg enable-background="new 0 0 24 24" height="14" width="14" viewBox="0 0 24 24" xml:space="preserve" ><path fill="#CE1515" d="M22.245,4.015c0.313,0.313,0.313,0.826,0,1.139l-6.276,6.27c-0.313,0.312-0.313,0.826,0,1.14l6.273,6.272 c0.313,0.313,0.313,0.826,0,1.14l-2.285,2.277c-0.314,0.312-0.828,0.312-1.142,0l-6.271-6.271c-0.313-0.313-0.828-0.313-1.141,0 l-6.276,6.267c-0.313,0.313-0.828,0.313-1.141,0l-2.282-2.28c-0.313-0.313-0.313-0.826,0-1.14l6.278-6.269 c0.313-0.312,0.313-0.826,0-1.14L1.709,5.147c-0.314-0.313-0.314-0.827,0-1.14l2.284-2.278C4.308,1.417,4.821,1.417,5.135,1.73 L11.405,8c0.314,0.314,0.828,0.314,1.141,0.001l6.276-6.267c0.312-0.312,0.826-0.312,1.141,0L22.245,4.015z"/></svg>'}function $S(o,e,t){var i=o.getValue(),a=e.size||15,n=a+"px",r,l,h=e.hasOwnProperty("onValue")?e.onValue:!0,d=e.hasOwnProperty("offValue")?e.offValue:!1,u=e.onTruthy?i:i===h;return r=document.createElement("div"),r.classList.add("tabulator-toggle"),u?(r.classList.add("tabulator-toggle-on"),r.style.flexDirection="row-reverse",e.onColor&&(r.style.background=e.onColor)):e.offColor&&(r.style.background=e.offColor),r.style.width=2.5*a+"px",r.style.borderRadius=n,e.clickable&&r.addEventListener("click",p=>{o.setValue(u?d:h)}),l=document.createElement("div"),l.classList.add("tabulator-toggle-switch"),l.style.height=n,l.style.width=n,l.style.borderRadius=n,r.appendChild(l),r}function GS(o,e,t){var i=document.createElement("span"),a=o.getRow(),n=o.getTable();return a.watchPosition(r=>{e.relativeToPage&&(r+=n.modules.page.getPageSize()*(n.modules.page.getPage()-1)),i.innerText=r}),i}function YS(o,e,t){return o.getElement().classList.add("tabulator-row-handle"),"<div class='tabulator-row-handle-box'><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div><div class='tabulator-row-handle-bar'></div></div>"}function ZS(o,e,t){var i,a,n;function r(l){var h=l.getValue(),d="plaintext";switch(typeof h){case"boolean":d="tickCross";break;case"string":h.includes(`
7
+ `)&&(d="textarea");break}return d}return i=e.formatterLookup?e.formatterLookup(o):r(o),e.paramsLookup&&(n=typeof e.paramsLookup=="function"?e.paramsLookup(i,o):e.paramsLookup[i]),a=this.table.modules.format.lookupFormatter(i),a.call(this,o,n||{},t)}function XS(o,e,t){var i=e.delimiter||",",a=o.getValue(),n=this.table,r;return e.valueMap&&(typeof e.valueMap=="string"?r=function(l){return l.map(h=>$.retrieveNestedData(n.options.nestedFieldSeparator,e.valueMap,h))}:r=e.valueMap),Array.isArray(a)?(r&&(a=r(a)),a.join(i)):a}function KS(o,e,t){var i=e.indent||" ",a=typeof e.multiline>"u"?!0:e.multiline,n=e.replacer||null,r=o.getValue();return a&&(o.getElement().style.whiteSpace="pre-wrap"),JSON.stringify(r,n,i)}var JS={plaintext:DS,html:zS,textarea:RS,money:HS,link:AS,image:VS,tickCross:PS,datetime:qS,datetimediff:BS,lookup:FS,star:OS,traffic:jS,progress:NS,color:_S,buttonTick:WS,buttonCross:US,toggle:$S,rownum:GS,handle:YS,adaptable:ZS,array:XS,json:KS};const Je=class Je extends q{constructor(e){super(e),this.registerColumnOption("formatter"),this.registerColumnOption("formatterParams"),this.registerColumnOption("formatterPrint"),this.registerColumnOption("formatterPrintParams"),this.registerColumnOption("formatterClipboard"),this.registerColumnOption("formatterClipboardParams"),this.registerColumnOption("formatterHtmlOutput"),this.registerColumnOption("formatterHtmlOutputParams"),this.registerColumnOption("titleFormatter"),this.registerColumnOption("titleFormatterParams")}initialize(){this.subscribe("cell-format",this.formatValue.bind(this)),this.subscribe("cell-rendered",this.cellRendered.bind(this)),this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("column-format",this.formatHeader.bind(this))}initializeColumn(e){e.modules.format=this.lookupTypeFormatter(e,""),typeof e.definition.formatterPrint<"u"&&(e.modules.format.print=this.lookupTypeFormatter(e,"Print")),typeof e.definition.formatterClipboard<"u"&&(e.modules.format.clipboard=this.lookupTypeFormatter(e,"Clipboard")),typeof e.definition.formatterHtmlOutput<"u"&&(e.modules.format.htmlOutput=this.lookupTypeFormatter(e,"HtmlOutput"))}lookupTypeFormatter(e,t){var i={params:e.definition["formatter"+t+"Params"]||{}},a=e.definition["formatter"+t];return i.formatter=this.lookupFormatter(a),i}lookupFormatter(e){var t;switch(typeof e){case"string":Je.formatters[e]?t=Je.formatters[e]:(console.warn("Formatter Error - No such formatter found: ",e),t=Je.formatters.plaintext);break;case"function":t=e;break;default:t=Je.formatters.plaintext;break}return t}cellRendered(e){e.modules.format&&e.modules.format.renderedCallback&&!e.modules.format.rendered&&(e.modules.format.renderedCallback(),e.modules.format.rendered=!0)}formatHeader(e,t,i){var a,n,r,l;return e.definition.titleFormatter?(a=this.lookupFormatter(e.definition.titleFormatter),r=h=>{e.titleFormatterRendered=h},l={getValue:function(){return t},getElement:function(){return i},getType:function(){return"header"},getColumn:function(){return e.getComponent()},getTable:()=>this.table},n=e.definition.titleFormatterParams||{},n=typeof n=="function"?n():n,a.call(this,l,n,r)):t}formatValue(e){var t=e.getComponent(),i=typeof e.column.modules.format.params=="function"?e.column.modules.format.params(t):e.column.modules.format.params;function a(n){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=n,e.modules.format.rendered=!1}return e.column.modules.format.formatter.call(this,t,i,a)}formatExportValue(e,t){var i=e.column.modules.format[t],a;if(i){let n=function(r){e.modules.format||(e.modules.format={}),e.modules.format.renderedCallback=r,e.modules.format.rendered=!1};return a=typeof i.params=="function"?i.params(e.getComponent()):i.params,i.formatter.call(this,e.getComponent(),a,n)}else return this.formatValue(e)}sanitizeHTML(e){if(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(e).replace(/[&<>"'`=/]/g,function(i){return t[i]})}else return e}emptyToSpace(e){return e===null||typeof e>"u"||e===""?"&nbsp;":e}};E(Je,"moduleName","format"),E(Je,"formatters",JS);let M9=Je;class WC extends q{constructor(e){super(e),this.leftColumns=[],this.rightColumns=[],this.initializationMode="left",this.active=!1,this.blocked=!0,this.registerColumnOption("frozen")}reset(){this.initializationMode="left",this.leftColumns=[],this.rightColumns=[],this.active=!1}initialize(){this.subscribe("cell-layout",this.layoutCell.bind(this)),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-width",this.layout.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("table-layout",this.layout.bind(this)),this.subscribe("columns-loading",this.reset.bind(this)),this.subscribe("column-add",this.reinitializeColumns.bind(this)),this.subscribe("column-deleted",this.reinitializeColumns.bind(this)),this.subscribe("column-hide",this.reinitializeColumns.bind(this)),this.subscribe("column-show",this.reinitializeColumns.bind(this)),this.subscribe("columns-loaded",this.reinitializeColumns.bind(this)),this.subscribe("table-redraw",this.layout.bind(this)),this.subscribe("layout-refreshing",this.blockLayout.bind(this)),this.subscribe("layout-refreshed",this.unblockLayout.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this))}blockLayout(){this.blocked=!0}unblockLayout(){this.blocked=!1}layoutCell(e){this.layoutElement(e.element,e.column)}reinitializeColumns(){this.reset(),this.table.columnManager.columnsByIndex.forEach(e=>{this.initializeColumn(e)}),this.layout()}initializeColumn(e){var t={margin:0,edge:!1};e.isGroup||(this.frozenCheck(e)?(t.position=this.initializationMode,this.initializationMode=="left"?this.leftColumns.push(e):this.rightColumns.unshift(e),this.active=!0,e.modules.frozen=t):this.initializationMode="right")}frozenCheck(e){return e.parent.isGroup&&e.definition.frozen&&console.warn("Frozen Column Error - Parent column group must be frozen, not individual columns or sub column groups"),e.parent.isGroup?this.frozenCheck(e.parent):e.definition.frozen}layoutCalcRows(){this.table.modExists("columnCalcs")&&(this.table.modules.columnCalcs.topInitialized&&this.table.modules.columnCalcs.topRow&&this.layoutRow(this.table.modules.columnCalcs.topRow),this.table.modules.columnCalcs.botInitialized&&this.table.modules.columnCalcs.botRow&&this.layoutRow(this.table.modules.columnCalcs.botRow),this.table.modExists("groupRows")&&this.layoutGroupCalcs(this.table.modules.groupRows.getGroups()))}layoutGroupCalcs(e){e.forEach(t=>{t.calcs.top&&this.layoutRow(t.calcs.top),t.calcs.bottom&&this.layoutRow(t.calcs.bottom),t.groupList&&t.groupList.length&&this.layoutGroupCalcs(t.groupList)})}layoutColumnPosition(e){var t=[],i=0,a=0;this.leftColumns.forEach((n,r)=>{if(n.modules.frozen.marginValue=i,n.modules.frozen.margin=n.modules.frozen.marginValue+"px",n.visible&&(i+=n.getWidth()),r==this.leftColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,n.parent.isGroup){var l=this.getColGroupParentElement(n);t.includes(l)||(this.layoutElement(l,n),t.push(l)),l.classList.toggle("tabulator-frozen-left",n.modules.frozen.edge&&n.modules.frozen.position==="left"),l.classList.toggle("tabulator-frozen-right",n.modules.frozen.edge&&n.modules.frozen.position==="right")}else this.layoutElement(n.getElement(),n);e&&n.cells.forEach(h=>{this.layoutElement(h.getElement(!0),n)})}),this.rightColumns.forEach((n,r)=>{n.modules.frozen.marginValue=a,n.modules.frozen.margin=n.modules.frozen.marginValue+"px",n.visible&&(a+=n.getWidth()),r==this.rightColumns.length-1?n.modules.frozen.edge=!0:n.modules.frozen.edge=!1,n.parent.isGroup?this.layoutElement(this.getColGroupParentElement(n),n):this.layoutElement(n.getElement(),n),e&&n.cells.forEach(l=>{this.layoutElement(l.getElement(!0),n)})})}getColGroupParentElement(e){return e.parent.isGroup?this.getColGroupParentElement(e.parent):e.getElement()}layout(){this.active&&!this.blocked&&(this.layoutColumnPosition(),this.reinitializeRows(),this.layoutCalcRows())}reinitializeRows(){var e=this.table.rowManager.getVisibleRows(!0),t=this.table.rowManager.getRows().filter(i=>!e.includes(i));t.forEach(i=>{i.deinitialize()}),e.forEach(i=>{i.type==="row"&&this.layoutRow(i)})}layoutRow(e){this.table.options.layout==="fitDataFill"&&this.rightColumns.length&&(this.table.rowManager.getTableElement().style.minWidth="calc(100% - "+this.rightMargin+")"),this.leftColumns.forEach(t=>{var i=e.getCell(t);i&&this.layoutElement(i.getElement(!0),t)}),this.rightColumns.forEach(t=>{var i=e.getCell(t);i&&this.layoutElement(i.getElement(!0),t)})}layoutElement(e,t){var i;t.modules.frozen&&e&&(e.style.position="sticky",this.table.rtl?i=t.modules.frozen.position==="left"?"right":"left":i=t.modules.frozen.position,e.style[i]=t.modules.frozen.margin,e.classList.add("tabulator-frozen"),e.classList.toggle("tabulator-frozen-left",t.modules.frozen.edge&&t.modules.frozen.position==="left"),e.classList.toggle("tabulator-frozen-right",t.modules.frozen.edge&&t.modules.frozen.position==="right"))}adjustForScrollbar(e){this.rightColumns.length&&(this.table.columnManager.getContentsElement().style.width="calc(100% - "+e+"px)")}getFrozenColumns(){return this.leftColumns.concat(this.rightColumns)}_calcSpace(e,t){var i=0;for(let a=0;a<t;a++)e[a].visible&&(i+=e[a].getWidth());return i}}E(WC,"moduleName","frozenColumns");class UC extends q{constructor(e){super(e),this.topElement=document.createElement("div"),this.rows=[],this.registerComponentFunction("row","freeze",this.freezeRow.bind(this)),this.registerComponentFunction("row","unfreeze",this.unfreezeRow.bind(this)),this.registerComponentFunction("row","isFrozen",this.isRowFrozen.bind(this)),this.registerTableOption("frozenRowsField","id"),this.registerTableOption("frozenRows",!1)}initialize(){var e=document.createDocumentFragment();this.rows=[],this.topElement.classList.add("tabulator-frozen-rows-holder"),e.appendChild(document.createElement("br")),e.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(e,this.table.columnManager.headersElement.nextSibling),this.subscribe("row-deleting",this.detachRow.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),10),this.table.options.frozenRows&&(this.subscribe("data-processed",this.initializeRows.bind(this)),this.subscribe("row-added",this.initializeRow.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this))),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}initializeRows(){this.table.rowManager.getRows().forEach(e=>{this.initializeRow(e)})}initializeRow(e){var t=this.table.options.frozenRows,i=typeof t;i==="number"?e.getPosition()&&e.getPosition()+this.rows.length<=t&&this.freezeRow(e):i==="function"?t.call(this.table,e.getComponent())&&this.freezeRow(e):Array.isArray(t)&&t.includes(e.data[this.options("frozenRowsField")])&&this.freezeRow(e)}isRowFrozen(e){var t=this.rows.indexOf(e);return t>-1}isFrozen(){return!!this.rows.length}visibleRows(e,t){return this.rows.forEach(i=>{t.push(i)}),t}getRows(e){var t=e.slice(0);return this.rows.forEach(function(i){var a=t.indexOf(i);a>-1&&t.splice(a,1)}),t}freezeRow(e){e.modules.frozen?console.warn("Freeze Error - Row is already frozen"):(e.modules.frozen=!0,this.topElement.appendChild(e.getElement()),e.initialize(),e.normalizeHeight(),this.rows.push(e),this.refreshData(!1,"display"),this.table.rowManager.adjustTableSize(),this.styleRows())}unfreezeRow(e){e.modules.frozen?(e.modules.frozen=!1,this.detachRow(e),this.table.rowManager.adjustTableSize(),this.refreshData(!1,"display"),this.rows.length&&this.styleRows()):console.warn("Freeze Error - Row is already unfrozen")}detachRow(e){var t=this.rows.indexOf(e);if(t>-1){var i=e.getElement();i.parentNode&&i.parentNode.removeChild(i),this.rows.splice(t,1)}}styleRows(e){this.rows.forEach((t,i)=>{this.table.rowManager.styleRow(t,i)})}}E(UC,"moduleName","frozenRows");class QS{constructor(e){return this._group=e,this.type="GroupComponent",new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._group.groupManager.table.componentFunctionBinder.handle("group",t._group,i)}})}getKey(){return this._group.key}getField(){return this._group.field}getElement(){return this._group.element}getRows(){return this._group.getRows(!0)}getSubGroups(){return this._group.getSubGroups(!0)}getParentGroup(){return this._group.parent?this._group.parent.getComponent():!1}isVisible(){return this._group.visible}show(){this._group.show()}hide(){this._group.hide()}toggle(){this._group.toggleVisibility()}scrollTo(e,t){return this._group.groupManager.table.rowManager.scrollToRow(this._group,e,t)}_getSelf(){return this._group}getTable(){return this._group.groupManager.table}}let An=class SE{constructor(e,t,i,a,n,r,l){this.groupManager=e,this.parent=t,this.key=a,this.level=i,this.field=n,this.hasSubGroups=i<e.groupIDLookups.length-1,this.addRow=this.hasSubGroups?this._addRowToGroup:this._addRow,this.type="group",this.old=l,this.rows=[],this.groups=[],this.groupList=[],this.generator=r,this.element=!1,this.elementContents=!1,this.height=0,this.outerHeight=0,this.initialized=!1,this.calcs={},this.initialized=!1,this.modules={},this.arrowElement=!1,this.visible=l?l.visible:typeof e.startOpen[i]<"u"?e.startOpen[i]:e.startOpen[0],this.component=null,this.createElements(),this.addBindings(),this.createValueGroups()}wipe(e){e||(this.groupList.length?this.groupList.forEach(function(t){t.wipe()}):this.rows.forEach(t=>{t.modules&&delete t.modules.group})),this.element=!1,this.arrowElement=!1,this.elementContents=!1}createElements(){var e=document.createElement("div");e.classList.add("tabulator-arrow"),this.element=document.createElement("div"),this.element.classList.add("tabulator-row"),this.element.classList.add("tabulator-group"),this.element.classList.add("tabulator-group-level-"+this.level),this.element.setAttribute("role","rowgroup"),this.arrowElement=document.createElement("div"),this.arrowElement.classList.add("tabulator-group-toggle"),this.arrowElement.appendChild(e),this.groupManager.table.options.movableRows!==!1&&this.groupManager.table.modExists("moveRow")&&this.groupManager.table.modules.moveRow.initializeGroupHeader(this)}createValueGroups(){var e=this.level+1;this.groupManager.allowedValues&&this.groupManager.allowedValues[e]&&this.groupManager.allowedValues[e].forEach(t=>{this._createGroup(t,e)})}addBindings(){var e;this.groupManager.table.options.groupToggleElement&&(e=this.groupManager.table.options.groupToggleElement=="arrow"?this.arrowElement:this.element,e.addEventListener("click",t=>{this.groupManager.table.options.groupToggleElement==="arrow"&&(t.stopPropagation(),t.stopImmediatePropagation()),setTimeout(()=>{this.toggleVisibility()})}))}_createGroup(e,t){var i=t+"_"+e,a=new SE(this.groupManager,this,t,e,this.groupManager.groupIDLookups[t].field,this.groupManager.headerGenerator[t]||this.groupManager.headerGenerator[0],this.old?this.old.groups[i]:!1);this.groups[i]=a,this.groupList.push(a)}_addRowToGroup(e){var t=this.level+1;if(this.hasSubGroups){var i=this.groupManager.groupIDLookups[t].func(e.getData()),a=t+"_"+i;this.groupManager.allowedValues&&this.groupManager.allowedValues[t]?this.groups[a]&&this.groups[a].addRow(e):(this.groups[a]||this._createGroup(i,t),this.groups[a].addRow(e))}}_addRow(e){this.rows.push(e),e.modules.group=this}insertRow(e,t,i){var a=this.conformRowData({});e.updateData(a);var n=this.rows.indexOf(t);n>-1?i?this.rows.splice(n+1,0,e):this.rows.splice(n,0,e):i?this.rows.push(e):this.rows.unshift(e),e.modules.group=this,this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modules.columnCalcs.recalcGroup(this),this.groupManager.updateGroupRows(!0)}scrollHeader(e){this.arrowElement&&(this.arrowElement.style.marginLeft=e,this.groupList.forEach(function(t){t.scrollHeader(e)}))}getRowIndex(e){}conformRowData(e){return this.field?e[this.field]=this.key:console.warn("Data Conforming Error - Cannot conform row data to match new group as groupBy is a function"),this.parent&&(e=this.parent.conformRowData(e)),e}removeRow(e){var t=this.rows.indexOf(e),i=e.getElement();t>-1&&this.rows.splice(t,1),!this.groupManager.table.options.groupValues&&!this.rows.length?(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this),this.groupManager.updateGroupRows(!0)):(i.parentNode&&i.parentNode.removeChild(i),this.groupManager.blockRedraw||(this.generateGroupHeaderContents(),this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modules.columnCalcs.recalcGroup(this)))}removeGroup(e){var t=e.level+"_"+e.key,i;this.groups[t]&&(delete this.groups[t],i=this.groupList.indexOf(e),i>-1&&this.groupList.splice(i,1),this.groupList.length||(this.parent?this.parent.removeGroup(this):this.groupManager.removeGroup(this)))}getHeadersAndRows(){var e=[];return e.push(this),this._visSet(),this.calcs.top&&(this.calcs.top.detachElement(),this.calcs.top.deleteCells()),this.calcs.bottom&&(this.calcs.bottom.detachElement(),this.calcs.bottom.deleteCells()),this.visible?this.groupList.length?this.groupList.forEach(function(t){e=e.concat(t.getHeadersAndRows())}):(this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),e.push(this.calcs.top)),e=e.concat(this.rows),this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modExists("columnCalcs")&&this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),e.push(this.calcs.bottom))):!this.groupList.length&&this.groupManager.table.options.columnCalcs!="table"&&this.groupManager.table.modExists("columnCalcs")&&(this.groupManager.table.modules.columnCalcs.hasTopCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.top=this.groupManager.table.modules.columnCalcs.generateTopRow(this.rows),e.push(this.calcs.top)),this.groupManager.table.modules.columnCalcs.hasBottomCalcs()&&this.groupManager.table.options.groupClosedShowCalcs&&(this.calcs.bottom=this.groupManager.table.modules.columnCalcs.generateBottomRow(this.rows),e.push(this.calcs.bottom))),e}getData(e,t){var i=[];return this._visSet(),(!e||e&&this.visible)&&this.rows.forEach(a=>{i.push(a.getData(t||"data"))}),i}getRowCount(){var e=0;return this.groupList.length?this.groupList.forEach(t=>{e+=t.getRowCount()}):e=this.rows.length,e}toggleVisibility(){this.visible?this.hide():this.show()}hide(){this.visible=!1,this.groupManager.table.rowManager.getRenderMode()=="basic"&&!this.groupManager.table.options.pagination?(this.element.classList.remove("tabulator-group-visible"),this.groupList.length?this.groupList.forEach(e=>{var t=e.getHeadersAndRows();t.forEach(i=>{i.detachElement()})}):this.rows.forEach(e=>{var t=e.getElement();t.parentNode.removeChild(t)}),this.groupManager.updateGroupRows(!0)):this.groupManager.updateGroupRows(!0),this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.getComponent(),!1)}show(){if(this.visible=!0,this.groupManager.table.rowManager.getRenderMode()=="basic"&&!this.groupManager.table.options.pagination){this.element.classList.add("tabulator-group-visible");var e=this.generateElement();this.groupList.length?this.groupList.forEach(t=>{var i=t.getHeadersAndRows();i.forEach(a=>{var n=a.getElement();e.parentNode.insertBefore(n,e.nextSibling),a.initialize(),e=n})}):this.rows.forEach(t=>{var i=t.getElement();e.parentNode.insertBefore(i,e.nextSibling),t.initialize(),e=i}),this.groupManager.updateGroupRows(!0)}else this.groupManager.updateGroupRows(!0);this.groupManager.table.externalEvents.dispatch("groupVisibilityChanged",this.getComponent(),!0)}_visSet(){var e=[];typeof this.visible=="function"&&(this.rows.forEach(function(t){e.push(t.getData())}),this.visible=this.visible(this.key,this.getRowCount(),e,this.getComponent()))}getRowGroup(e){var t=!1;return this.groupList.length?this.groupList.forEach(function(i){var a=i.getRowGroup(e);a&&(t=a)}):this.rows.find(function(i){return i===e})&&(t=this),t}getSubGroups(e){var t=[];return this.groupList.forEach(function(i){t.push(e?i.getComponent():i)}),t}getRows(e,t){var i=[];return t&&this.groupList.length?this.groupList.forEach(a=>{i=i.concat(a.getRows(e,t))}):this.rows.forEach(function(a){i.push(e?a.getComponent():a)}),i}generateGroupHeaderContents(){var e=[],t=this.getRows(!1,!0);for(t.forEach(function(i){e.push(i.getData())}),this.elementContents=this.generator(this.key,this.getRowCount(),e,this.getComponent());this.element.firstChild;)this.element.removeChild(this.element.firstChild);typeof this.elementContents=="string"?this.element.innerHTML=this.elementContents:this.element.appendChild(this.elementContents),this.element.insertBefore(this.arrowElement,this.element.firstChild)}getPath(e=[]){return e.unshift(this.key),this.parent&&this.parent.getPath(e),e}getElement(){return this.elementContents?this.element:this.generateElement()}generateElement(){this.addBindings=!1,this._visSet(),this.visible?this.element.classList.add("tabulator-group-visible"):this.element.classList.remove("tabulator-group-visible");for(var e=0;e<this.element.childNodes.length;++e)this.element.childNodes[e].parentNode.removeChild(this.element.childNodes[e]);return this.generateGroupHeaderContents(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}normalizeHeight(){this.setHeight(this.element.clientHeight)}initialize(e){(!this.initialized||e)&&(this.normalizeHeight(),this.initialized=!0)}reinitialize(){this.initialized=!1,this.height=0,$.elVisible(this.element)&&this.initialize(!0)}setHeight(e){this.height!=e&&(this.height=e,this.outerHeight=this.element.offsetHeight)}getHeight(){return this.outerHeight}getGroup(){return this}reinitializeHeight(){}calcHeight(){}setCellHeight(){}clearCellHeight(){}deinitializeHeight(){}rendered(){}getComponent(){return this.component||(this.component=new QS(this)),this.component}};class $C extends q{constructor(e){super(e),this.groupIDLookups=!1,this.startOpen=[function(){return!1}],this.headerGenerator=[function(){return""}],this.groupList=[],this.allowedValues=!1,this.groups={},this.displayHandler=this.getRows.bind(this),this.blockRedraw=!1,this.registerTableOption("groupBy",!1),this.registerTableOption("groupStartOpen",!0),this.registerTableOption("groupValues",!1),this.registerTableOption("groupUpdateOnCellEdit",!1),this.registerTableOption("groupHeader",!1),this.registerTableOption("groupHeaderPrint",null),this.registerTableOption("groupHeaderClipboard",null),this.registerTableOption("groupHeaderHtmlOutput",null),this.registerTableOption("groupHeaderDownload",null),this.registerTableOption("groupToggleElement","arrow"),this.registerTableOption("groupClosedShowCalcs",!1),this.registerTableFunction("setGroupBy",this.setGroupBy.bind(this)),this.registerTableFunction("setGroupValues",this.setGroupValues.bind(this)),this.registerTableFunction("setGroupStartOpen",this.setGroupStartOpen.bind(this)),this.registerTableFunction("setGroupHeader",this.setGroupHeader.bind(this)),this.registerTableFunction("getGroups",this.userGetGroups.bind(this)),this.registerTableFunction("getGroupedData",this.userGetGroupedData.bind(this)),this.registerComponentFunction("row","getGroup",this.rowGetGroup.bind(this))}initialize(){this.subscribe("table-destroy",this._blockRedrawing.bind(this)),this.subscribe("rows-wipe",this._blockRedrawing.bind(this)),this.subscribe("rows-wiped",this._restore_redrawing.bind(this)),this.table.options.groupBy&&(this.table.options.groupUpdateOnCellEdit&&(this.subscribe("cell-value-updated",this.cellUpdated.bind(this)),this.subscribe("row-data-changed",this.reassignRowToGroup.bind(this),0)),this.subscribe("table-built",this.configureGroupSetup.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHeaders.bind(this)),this.subscribe("rows-wipe",this.wipe.bind(this)),this.subscribe("rows-added",this.rowsUpdated.bind(this)),this.subscribe("row-moving",this.rowMoving.bind(this)),this.subscribe("row-adding-index",this.rowAddingIndex.bind(this)),this.subscribe("rows-sample",this.rowSample.bind(this)),this.subscribe("render-virtual-fill",this.virtualRenderFill.bind(this)),this.registerDisplayHandler(this.displayHandler,20),this.initialized=!0)}_blockRedrawing(){this.blockRedraw=!0}_restore_redrawing(){this.blockRedraw=!1}configureGroupSetup(){if(this.table.options.groupBy){var e=this.table.options.groupBy,t=this.table.options.groupStartOpen,i=this.table.options.groupHeader;if(this.allowedValues=this.table.options.groupValues,Array.isArray(e)&&Array.isArray(i)&&e.length>i.length&&console.warn("Error creating group headers, groupHeader array is shorter than groupBy array"),this.headerGenerator=[function(){return""}],this.startOpen=[function(){return!1}],this.langBind("groups|item",(n,r)=>{this.headerGenerator[0]=(l,h,d)=>(typeof l>"u"?"":l)+"<span>("+h+" "+(h===1?n:r.groups.items)+")</span>"}),this.groupIDLookups=[],e)this.table.modExists("columnCalcs")&&this.table.options.columnCalcs!="table"&&this.table.options.columnCalcs!="both"&&this.table.modules.columnCalcs.removeCalcs();else if(this.table.modExists("columnCalcs")&&this.table.options.columnCalcs!="group"){var a=this.table.columnManager.getRealColumns();a.forEach(n=>{n.definition.topCalc&&this.table.modules.columnCalcs.initializeTopRow(),n.definition.bottomCalc&&this.table.modules.columnCalcs.initializeBottomRow()})}Array.isArray(e)||(e=[e]),e.forEach((n,r)=>{var l,h;typeof n=="function"?l=n:(h=this.table.columnManager.getColumnByField(n),h?l=function(d){return h.getFieldValue(d)}:l=function(d){return d[n]}),this.groupIDLookups.push({field:typeof n=="function"?!1:n,func:l,values:this.allowedValues?this.allowedValues[r]:!1})}),t&&(Array.isArray(t)||(t=[t]),t.forEach(n=>{}),this.startOpen=t),i&&(this.headerGenerator=Array.isArray(i)?i:[i])}else this.groupList=[],this.groups={}}rowSample(e,t){if(this.table.options.groupBy){var i=this.getGroups(!1)[0];t.push(i.getRows(!1)[0])}return t}virtualRenderFill(){var e=this.table.rowManager.tableElement,t=this.table.rowManager.getVisibleRows();if(this.table.options.groupBy)t=t.filter(i=>i.type!=="group"),e.style.minWidth=t.length?"":this.table.columnManager.getWidth()+"px";else return t}rowAddingIndex(e,t,i){if(this.table.options.groupBy){this.assignRowToGroup(e);var a=e.modules.group.rows;return a.length>1&&(!t||t&&a.indexOf(t)==-1?i?a[0]!==e&&(t=a[0],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!i)):a[a.length-1]!==e&&(t=a[a.length-1],this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!i)):this.table.rowManager.moveRowInArray(e.modules.group.rows,e,t,!i)),t}}trackChanges(){this.dispatch("group-changed")}setGroupBy(e){this.table.options.groupBy=e,this.initialized||this.initialize(),this.configureGroupSetup(),!e&&this.table.modExists("columnCalcs")&&this.table.options.columnCalcs===!0&&this.table.modules.columnCalcs.reinitializeCalcs(),this.refreshData(),this.trackChanges()}setGroupValues(e){this.table.options.groupValues=e,this.configureGroupSetup(),this.refreshData(),this.trackChanges()}setGroupStartOpen(e){this.table.options.groupStartOpen=e,this.configureGroupSetup(),this.table.options.groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant refresh view, no groups have been set")}setGroupHeader(e){this.table.options.groupHeader=e,this.configureGroupSetup(),this.table.options.groupBy?(this.refreshData(),this.trackChanges()):console.warn("Grouping Update - cant refresh view, no groups have been set")}userGetGroups(e){return this.getGroups(!0)}userGetGroupedData(){return this.table.options.groupBy?this.getGroupedData():this.getData()}rowGetGroup(e){return e.modules.group?e.modules.group.getComponent():!1}rowMoving(e,t,i){if(this.table.options.groupBy){!i&&t instanceof An&&(t=this.table.rowManager.prevDisplayRow(e)||t);var a=t instanceof An?t:t.modules.group,n=e instanceof An?e:e.modules.group;a===n?this.table.rowManager.moveRowInArray(a.rows,e,t,i):(n&&n.removeRow(e),a.insertRow(e,t,i))}}rowDeleting(e){this.table.options.groupBy&&e.modules.group&&e.modules.group.removeRow(e)}rowsUpdated(e){this.table.options.groupBy&&this.updateGroupRows(!0)}cellUpdated(e){this.table.options.groupBy&&this.reassignRowToGroup(e.row)}getRows(e){return this.table.options.groupBy&&this.groupIDLookups.length?(this.dispatchExternal("dataGrouping"),this.generateGroups(e),this.subscribedExternal("dataGrouped")&&this.dispatchExternal("dataGrouped",this.getGroups(!0)),this.updateGroupRows()):e.slice(0)}getGroups(e){var t=[];return this.groupList.forEach(function(i){t.push(e?i.getComponent():i)}),t}getChildGroups(e){var t=[];return e||(e=this),e.groupList.forEach(i=>{i.groupList.length?t=t.concat(this.getChildGroups(i)):t.push(i)}),t}wipe(){this.table.options.groupBy&&(this.groupList.forEach(function(e){e.wipe()}),this.groupList=[],this.groups={})}pullGroupListData(e){var t=[];return e.forEach(i=>{var a={};a.level=0,a.rowCount=0,a.headerContent="";var n=[];i.hasSubGroups?(n=this.pullGroupListData(i.groupList),a.level=i.level,a.rowCount=n.length-i.groupList.length,a.headerContent=i.generator(i.key,a.rowCount,i.rows,i),t.push(a),t=t.concat(n)):(a.level=i.level,a.headerContent=i.generator(i.key,i.rows.length,i.rows,i),a.rowCount=i.getRows().length,t.push(a),i.getRows().forEach(r=>{t.push(r.getData("data"))}))}),t}getGroupedData(){return this.pullGroupListData(this.groupList)}getRowGroup(e){var t=!1;return this.options("dataTree")&&(e=this.table.modules.dataTree.getTreeParentRoot(e)),this.groupList.forEach(i=>{var a=i.getRowGroup(e);a&&(t=a)}),t}countGroups(){return this.groupList.length}generateGroups(e){var t=this.groups;this.groups={},this.groupList=[],this.allowedValues&&this.allowedValues[0]?(this.allowedValues[0].forEach(i=>{this.createGroup(i,0,t)}),e.forEach(i=>{this.assignRowToExistingGroup(i,t)})):e.forEach(i=>{this.assignRowToGroup(i,t)}),Object.values(t).forEach(i=>{i.wipe(!0)})}createGroup(e,t,i){var a=t+"_"+e,n;i=i||[],n=new An(this,!1,t,e,this.groupIDLookups[0].field,this.headerGenerator[0],i[a]),this.groups[a]=n,this.groupList.push(n)}assignRowToExistingGroup(e,t){var i=this.groupIDLookups[0].func(e.getData()),a="0_"+i;this.groups[a]&&this.groups[a].addRow(e)}assignRowToGroup(e,t){var i=this.groupIDLookups[0].func(e.getData()),a=!this.groups["0_"+i];return a&&this.createGroup(i,0,t),this.groups["0_"+i].addRow(e),!a}reassignRowToGroup(e){if(e.type==="row"){var t=e.modules.group,i=t.getPath(),a=this.getExpectedPath(e),n;n=i.length==a.length&&i.every((r,l)=>r===a[l]),n||(t.removeRow(e),this.assignRowToGroup(e,this.groups),this.refreshData(!0))}}getExpectedPath(e){var t=[],i=e.getData();return this.groupIDLookups.forEach(a=>{t.push(a.func(i))}),t}updateGroupRows(e){var t=[];return this.blockRedraw||(this.groupList.forEach(i=>{t=t.concat(i.getHeadersAndRows())}),e&&this.refreshData(!0)),t}scrollHeaders(e){this.table.options.groupBy&&(this.table.options.renderHorizontal==="virtual"&&(e-=this.table.columnManager.renderer.vDomPadLeft),e=e+"px",this.groupList.forEach(t=>{t.scrollHeader(e)}))}removeGroup(e){var t=e.level+"_"+e.key,i;this.groups[t]&&(delete this.groups[t],i=this.groupList.indexOf(e),i>-1&&this.groupList.splice(i,1))}checkBasicModeGroupHeaderWidth(){var e=this.table.rowManager.tableElement,t=!0;this.table.rowManager.getDisplayRows().forEach((i,a)=>{this.table.rowManager.styleRow(i,a),e.appendChild(i.getElement()),i.initialize(!0),i.type!=="group"&&(t=!1)}),t?e.style.minWidth=this.table.columnManager.getWidth()+"px":e.style.minWidth=""}}E($C,"moduleName","groupRows");var eI={cellEdit:function(o){o.component.setValueProcessData(o.data.oldValue),o.component.cellRendered()},rowAdd:function(o){o.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowDelete:function(o){var e=this.table.rowManager.addRowActual(o.data.data,o.data.pos,o.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(o.component,e),this.table.rowManager.checkPlaceholder()},rowMove:function(o){var e=o.data.posFrom-o.data.posTo>0;this.table.rowManager.moveRowActual(o.component,this.table.rowManager.getRowFromPosition(o.data.posFrom),e),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},tI={cellEdit:function(o){o.component.setValueProcessData(o.data.newValue),o.component.cellRendered()},rowAdd:function(o){var e=this.table.rowManager.addRowActual(o.data.data,o.data.pos,o.data.index);this.table.options.groupBy&&this.table.modExists("groupRows")&&this.table.modules.groupRows.updateGroupRows(!0),this._rebindRow(o.component,e),this.table.rowManager.checkPlaceholder()},rowDelete:function(o){o.component.deleteActual(),this.table.rowManager.checkPlaceholder()},rowMove:function(o){this.table.rowManager.moveRowActual(o.component,this.table.rowManager.getRowFromPosition(o.data.posTo),o.data.after),this.table.rowManager.regenerateRowPositions(),this.table.rowManager.reRenderInPosition()}},iI={undo:["ctrl + 90","meta + 90"],redo:["ctrl + 89","meta + 89"]},aI={undo:function(o){var e=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(e=this.table.modules.edit.currentCell,e||(o.preventDefault(),this.table.modules.history.undo()))},redo:function(o){var e=!1;this.table.options.history&&this.table.modExists("history")&&this.table.modExists("edit")&&(e=this.table.modules.edit.currentCell,e||(o.preventDefault(),this.table.modules.history.redo()))}},oI={keybindings:{bindings:iI,actions:aI}};let nI=(Le=class extends q{constructor(e){super(e),this.history=[],this.index=-1,this.registerTableOption("history",!1)}initialize(){this.table.options.history&&(this.subscribe("cell-value-updated",this.cellUpdated.bind(this)),this.subscribe("cell-delete",this.clearComponentHistory.bind(this)),this.subscribe("row-delete",this.rowDeleted.bind(this)),this.subscribe("rows-wipe",this.clear.bind(this)),this.subscribe("row-added",this.rowAdded.bind(this)),this.subscribe("row-move",this.rowMoved.bind(this))),this.registerTableFunction("undo",this.undo.bind(this)),this.registerTableFunction("redo",this.redo.bind(this)),this.registerTableFunction("getHistoryUndoSize",this.getHistoryUndoSize.bind(this)),this.registerTableFunction("getHistoryRedoSize",this.getHistoryRedoSize.bind(this)),this.registerTableFunction("clearHistory",this.clear.bind(this))}rowMoved(e,t,i){this.action("rowMove",e,{posFrom:e.getPosition(),posTo:t.getPosition(),to:t,after:i})}rowAdded(e,t,i,a){this.action("rowAdd",e,{data:t,pos:i,index:a})}rowDeleted(e){var t,i;this.table.options.groupBy?(i=e.getComponent().getGroup()._getSelf().rows,t=i.indexOf(e),t&&(t=i[t-1])):(t=e.table.rowManager.getRowIndex(e),t&&(t=e.table.rowManager.rows[t-1])),this.action("rowDelete",e,{data:e.getData(),pos:!t,index:t})}cellUpdated(e){this.action("cellEdit",e,{oldValue:e.oldValue,newValue:e.value})}clear(){this.history=[],this.index=-1}action(e,t,i){this.history=this.history.slice(0,this.index+1),this.history.push({type:e,component:t,data:i}),this.index++}getHistoryUndoSize(){return this.index+1}getHistoryRedoSize(){return this.history.length-(this.index+1)}clearComponentHistory(e){var t=this.history.findIndex(function(i){return i.component===e});t>-1&&(this.history.splice(t,1),t<=this.index&&this.index--,this.clearComponentHistory(e))}undo(){if(this.index>-1){let e=this.history[this.index];return Le.undoers[e.type].call(this,e),this.index--,this.dispatchExternal("historyUndo",e.type,e.component.getComponent(),e.data),!0}else return console.warn(this.options("history")?"History Undo Error - No more history to undo":"History module not enabled"),!1}redo(){if(this.history.length-1>this.index){this.index++;let e=this.history[this.index];return Le.redoers[e.type].call(this,e),this.dispatchExternal("historyRedo",e.type,e.component.getComponent(),e.data),!0}else return console.warn(this.options("history")?"History Redo Error - No more history to redo":"History module not enabled"),!1}_rebindRow(e,t){this.history.forEach(function(i){if(i.component instanceof ae)i.component===e&&(i.component=t);else if(i.component instanceof un&&i.component.row===e){var a=i.component.column.getField();a&&(i.component=t.getCell(a))}})}},E(Le,"moduleName","history"),E(Le,"moduleExtensions",oI),E(Le,"undoers",eI),E(Le,"redoers",tI),Le);class GC extends q{constructor(e){super(e),this.fieldIndex=[],this.hasIndex=!1}initialize(){this.tableElementCheck()}tableElementCheck(){this.table.originalElement&&this.table.originalElement.tagName==="TABLE"&&(this.table.originalElement.childNodes.length?this.parseTable():console.warn("Unable to parse data from empty table tag, Tabulator should be initialized on a div tag unless importing data from a table element."))}parseTable(){var e=this.table.originalElement,t=this.table.options,i=e.getElementsByTagName("th"),a=e.getElementsByTagName("tbody")[0],n=[];this.hasIndex=!1,this.dispatchExternal("htmlImporting"),a=a?a.getElementsByTagName("tr"):[],this._extractOptions(e,t),i.length?this._extractHeaders(i,a):this._generateBlankHeaders(i,a);for(var r=0;r<a.length;r++){var l=a[r],h=l.getElementsByTagName("td"),d={};this.hasIndex||(d[t.index]=r);for(var u=0;u<h.length;u++){var p=h[u];typeof this.fieldIndex[u]<"u"&&(d[this.fieldIndex[u]]=p.innerHTML)}n.push(d)}t.data=n,this.dispatchExternal("htmlImported")}_extractOptions(e,t,i){var a=e.attributes,n=Object.keys(i||t),r={};n.forEach(u=>{r[u.toLowerCase()]=u});for(var l in a){var h=a[l],d;h&&typeof h=="object"&&h.name&&h.name.indexOf("tabulator-")===0&&(d=h.name.replace("tabulator-",""),typeof r[d]<"u"&&(t[r[d]]=this._attribValue(h.value)))}}_attribValue(e){return e==="true"?!0:e==="false"?!1:e}_findCol(e){var t=this.table.options.columns.find(i=>i.title===e);return t||!1}_extractHeaders(e,t){for(var i=0;i<e.length;i++){var a=e[i],n=!1,r=this._findCol(a.textContent),l;r?n=!0:r={title:a.textContent.trim()},r.field||(r.field=a.textContent.trim().toLowerCase().replaceAll(" ","_")),l=a.getAttribute("width"),l&&!r.width&&(r.width=l),this._extractOptions(a,r,this.table.columnManager.optionsList.registeredDefaults),this.fieldIndex[i]=r.field,r.field==this.table.options.index&&(this.hasIndex=!0),n||this.table.options.columns.push(r)}}_generateBlankHeaders(e,t){for(var i=0;i<e.length;i++){var a=e[i],n={title:"",field:"col"+i};this.fieldIndex[i]=n.field;var r=a.getAttribute("width");r&&(n.width=r),this.table.options.columns.push(n)}}}E(GC,"moduleName","htmlTableImport");function sI(o){var e=[],t=0,i=0,a=!1;for(let n=0;n<o.length;n++){let r=o[n],l=o[n+1];if(e[t]||(e[t]=[]),e[t][i]||(e[t][i]=""),r=='"'&&a&&l=='"'){e[t][i]+=r,n++;continue}if(r=='"'){a=!a;continue}if(r==","&&!a){i++;continue}if(r=="\r"&&l==`
8
8
  `&&!a){i=0,t++,n++;continue}if((r=="\r"||r==`
9
- `)&&!a){i=0,t++;continue}e[t][i]+=r}return e}function rI(o){try{return JSON.parse(o)}catch(e){return console.warn("JSON Import Error - File contents is invalid JSON",e),Promise.reject()}}function lI(o){return o}function hI(o){var e=this.dependencyRegistry.lookup("XLSX"),t=e.read(o),i=t.Sheets[t.SheetNames[0]];return e.utils.sheet_to_json(i,{header:1})}var cI={csv:sI,json:rI,array:lI,xlsx:hI};let dI=(Qe=class extends q{constructor(e){super(e),this.registerTableOption("importFormat"),this.registerTableOption("importReader","text"),this.registerTableOption("importHeaderTransform"),this.registerTableOption("importValueTransform"),this.registerTableOption("importDataValidator"),this.registerTableOption("importFileValidator")}initialize(){this.registerTableFunction("import",this.importFromFile.bind(this)),this.table.options.importFormat&&(this.subscribe("data-loading",this.loadDataCheck.bind(this),10),this.subscribe("data-load",this.loadData.bind(this),10))}loadDataCheck(e){return this.table.options.importFormat&&(typeof e=="string"||Array.isArray(e)&&e.length&&Array.isArray(e))}loadData(e,t,i,a,n){return this.importData(this.lookupImporter(),e).then(this.structureData.bind(this)).catch(r=>(console.error("Import Error:",r||"Unable to import data"),Promise.reject(r)))}lookupImporter(e){var t;return e||(e=this.table.options.importFormat),typeof e=="string"?t=Qe.importers[e]:t=e,t||console.error("Import Error - Importer not found:",e),t}importFromFile(e,t,i){var a=this.lookupImporter(e);if(a)return this.pickFile(t,i).then(this.importData.bind(this,a)).then(this.structureData.bind(this)).then(this.mutateData.bind(this)).then(this.validateData.bind(this)).then(this.setData.bind(this)).catch(n=>(this.dispatch("import-error",n),this.dispatchExternal("importError",n),console.error("Import Error:",n||"Unable to import file"),this.table.dataLoader.alertError(),setTimeout(()=>{this.table.dataLoader.clearAlert()},3e3),Promise.reject(n)))}pickFile(e,t){return new Promise((i,a)=>{var n=document.createElement("input");n.type="file",n.accept=e,n.addEventListener("change",r=>{var l=n.files[0],h=new FileReader,d=this.validateFile(l);if(d===!0){switch(this.dispatch("import-importing",n.files),this.dispatchExternal("importImporting",n.files),t||this.table.options.importReader){case"buffer":h.readAsArrayBuffer(l);break;case"binary":h.readAsBinaryString(l);break;case"url":h.readAsDataURL(l);break;case"text":default:h.readAsText(l)}h.onload=u=>{i(h.result)},h.onerror=u=>{console.warn("File Load Error - Unable to read file"),a(u)}}else a(d)}),this.dispatch("import-choose"),this.dispatchExternal("importChoose"),n.click()})}importData(e,t){var i;return this.table.dataLoader.alertLoader(),new Promise((a,n)=>{setTimeout(()=>{i=e.call(this.table,t),i instanceof Promise||i?a(i):n()},10)})}structureData(e){var t=[];return Array.isArray(e)&&e.length&&Array.isArray(e[0])?(this.table.options.autoColumns?t=this.structureArrayToObject(e):t=this.structureArrayToColumns(e),t):e}mutateData(e){var t=[];return Array.isArray(e)?e.forEach(i=>{t.push(this.table.modules.mutator.transformRow(i,"import"))}):t=e,t}transformHeader(e){var t=[];if(this.table.options.importHeaderTransform)e.forEach(i=>{t.push(this.table.options.importHeaderTransform.call(this.table,i,e))});else return e;return t}transformData(e){var t=[];if(this.table.options.importValueTransform)e.forEach(i=>{t.push(this.table.options.importValueTransform.call(this.table,i,e))});else return e;return t}structureArrayToObject(e){var t=this.transformHeader(e.shift()),i=e.map(a=>{var n={};return a=this.transformData(a),t.forEach((r,l)=>{n[r]=a[l]}),n});return i}structureArrayToColumns(e){var t=[],i=this.transformHeader(e[0]),a=this.table.getColumns();return a[0]&&i[0]&&a[0].getDefinition().title===i[0]&&e.shift(),e.forEach(n=>{var r={};n=this.transformData(n),n.forEach((l,h)=>{var d=a[h];d&&(r[d.getField()]=l)}),t.push(r)}),t}validateFile(e){return this.table.options.importFileValidator?this.table.options.importFileValidator.call(this.table,e):!0}validateData(e){var t;return this.table.options.importDataValidator?(t=this.table.options.importDataValidator.call(this.table,e),t===!0?e:Promise.reject(t)):e}setData(e){return this.dispatch("import-imported",e),this.dispatchExternal("importImported",e),this.table.dataLoader.clearAlert(),this.table.setData(e)}},E(Qe,"moduleName","import"),E(Qe,"importers",cI),Qe);class YC extends q{constructor(e){super(e),this.eventMap={rowClick:"row-click",rowDblClick:"row-dblclick",rowContext:"row-contextmenu",rowMouseEnter:"row-mouseenter",rowMouseLeave:"row-mouseleave",rowMouseOver:"row-mouseover",rowMouseOut:"row-mouseout",rowMouseMove:"row-mousemove",rowMouseDown:"row-mousedown",rowMouseUp:"row-mouseup",rowTap:"row",rowDblTap:"row",rowTapHold:"row",cellClick:"cell-click",cellDblClick:"cell-dblclick",cellContext:"cell-contextmenu",cellMouseEnter:"cell-mouseenter",cellMouseLeave:"cell-mouseleave",cellMouseOver:"cell-mouseover",cellMouseOut:"cell-mouseout",cellMouseMove:"cell-mousemove",cellMouseDown:"cell-mousedown",cellMouseUp:"cell-mouseup",cellTap:"cell",cellDblTap:"cell",cellTapHold:"cell",headerClick:"column-click",headerDblClick:"column-dblclick",headerContext:"column-contextmenu",headerMouseEnter:"column-mouseenter",headerMouseLeave:"column-mouseleave",headerMouseOver:"column-mouseover",headerMouseOut:"column-mouseout",headerMouseMove:"column-mousemove",headerMouseDown:"column-mousedown",headerMouseUp:"column-mouseup",headerTap:"column",headerDblTap:"column",headerTapHold:"column",groupClick:"group-click",groupDblClick:"group-dblclick",groupContext:"group-contextmenu",groupMouseEnter:"group-mouseenter",groupMouseLeave:"group-mouseleave",groupMouseOver:"group-mouseover",groupMouseOut:"group-mouseout",groupMouseMove:"group-mousemove",groupMouseDown:"group-mousedown",groupMouseUp:"group-mouseup",groupTap:"group",groupDblTap:"group",groupTapHold:"group"},this.subscribers={},this.touchSubscribers={},this.columnSubscribers={},this.touchWatchers={row:{tap:null,tapDbl:null,tapHold:null},cell:{tap:null,tapDbl:null,tapHold:null},column:{tap:null,tapDbl:null,tapHold:null},group:{tap:null,tapDbl:null,tapHold:null}},this.registerColumnOption("headerClick"),this.registerColumnOption("headerDblClick"),this.registerColumnOption("headerContext"),this.registerColumnOption("headerMouseEnter"),this.registerColumnOption("headerMouseLeave"),this.registerColumnOption("headerMouseOver"),this.registerColumnOption("headerMouseOut"),this.registerColumnOption("headerMouseMove"),this.registerColumnOption("headerMouseDown"),this.registerColumnOption("headerMouseUp"),this.registerColumnOption("headerTap"),this.registerColumnOption("headerDblTap"),this.registerColumnOption("headerTapHold"),this.registerColumnOption("cellClick"),this.registerColumnOption("cellDblClick"),this.registerColumnOption("cellContext"),this.registerColumnOption("cellMouseEnter"),this.registerColumnOption("cellMouseLeave"),this.registerColumnOption("cellMouseOver"),this.registerColumnOption("cellMouseOut"),this.registerColumnOption("cellMouseMove"),this.registerColumnOption("cellMouseDown"),this.registerColumnOption("cellMouseUp"),this.registerColumnOption("cellTap"),this.registerColumnOption("cellDblTap"),this.registerColumnOption("cellTapHold")}initialize(){this.initializeExternalEvents(),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("cell-dblclick",this.cellContentsSelectionFixer.bind(this)),this.subscribe("scroll-horizontal",this.clearTouchWatchers.bind(this)),this.subscribe("scroll-vertical",this.clearTouchWatchers.bind(this))}clearTouchWatchers(){var e=Object.values(this.touchWatchers);e.forEach(t=>{for(let i in t)t[i]=null})}cellContentsSelectionFixer(e,t){var i;if(!(this.table.modExists("edit")&&this.table.modules.edit.currentCell===t)){e.preventDefault();try{document.selection?(i=document.body.createTextRange(),i.moveToElementText(t.getElement()),i.select()):window.getSelection&&(i=document.createRange(),i.selectNode(t.getElement()),window.getSelection().removeAllRanges(),window.getSelection().addRange(i))}catch{}}}initializeExternalEvents(){for(let e in this.eventMap)this.subscriptionChangeExternal(e,this.subscriptionChanged.bind(this,e))}subscriptionChanged(e,t){t?this.subscribers[e]||(this.eventMap[e].includes("-")?(this.subscribers[e]=this.handle.bind(this,e),this.subscribe(this.eventMap[e],this.subscribers[e])):this.subscribeTouchEvents(e)):this.eventMap[e].includes("-")?this.subscribers[e]&&!this.columnSubscribers[e]&&!this.subscribedExternal(e)&&(this.unsubscribe(this.eventMap[e],this.subscribers[e]),delete this.subscribers[e]):this.unsubscribeTouchEvents(e)}subscribeTouchEvents(e){var t=this.eventMap[e];this.touchSubscribers[t+"-touchstart"]||(this.touchSubscribers[t+"-touchstart"]=this.handleTouch.bind(this,t,"start"),this.touchSubscribers[t+"-touchend"]=this.handleTouch.bind(this,t,"end"),this.subscribe(t+"-touchstart",this.touchSubscribers[t+"-touchstart"]),this.subscribe(t+"-touchend",this.touchSubscribers[t+"-touchend"])),this.subscribers[e]=!0}unsubscribeTouchEvents(e){var t=!0,i=this.eventMap[e];if(this.subscribers[e]&&!this.subscribedExternal(e)){delete this.subscribers[e];for(let a in this.eventMap)this.eventMap[a]===i&&this.subscribers[a]&&(t=!1);t&&(this.unsubscribe(i+"-touchstart",this.touchSubscribers[i+"-touchstart"]),this.unsubscribe(i+"-touchend",this.touchSubscribers[i+"-touchend"]),delete this.touchSubscribers[i+"-touchstart"],delete this.touchSubscribers[i+"-touchend"])}}initializeColumn(e){var t=e.definition;for(let i in this.eventMap)t[i]&&(this.subscriptionChanged(i,!0),this.columnSubscribers[i]||(this.columnSubscribers[i]=[]),this.columnSubscribers[i].push(e))}handle(e,t,i){this.dispatchEvent(e,t,i)}handleTouch(e,t,i,a){var n=this.touchWatchers[e];switch(e==="column"&&(e="header"),t){case"start":n.tap=!0,clearTimeout(n.tapHold),n.tapHold=setTimeout(()=>{clearTimeout(n.tapHold),n.tapHold=null,n.tap=null,clearTimeout(n.tapDbl),n.tapDbl=null,this.dispatchEvent(e+"TapHold",i,a)},1e3);break;case"end":n.tap&&(n.tap=null,this.dispatchEvent(e+"Tap",i,a)),n.tapDbl?(clearTimeout(n.tapDbl),n.tapDbl=null,this.dispatchEvent(e+"DblTap",i,a)):n.tapDbl=setTimeout(()=>{clearTimeout(n.tapDbl),n.tapDbl=null},300),clearTimeout(n.tapHold),n.tapHold=null;break}}dispatchEvent(e,t,i){var a=i.getComponent(),n;this.columnSubscribers[e]&&(i instanceof un?n=i.column.definition[e]:i instanceof tt&&(n=i.definition[e]),n&&n(t,a)),this.dispatchExternal(e,t,a)}}E(YC,"moduleName","interaction");var uI={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,navLeft:37,navRight:39,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35},pI={keyBlock:function(o){o.stopPropagation(),o.preventDefault()},scrollPageUp:function(o){var e=this.table.rowManager,t=e.scrollTop-e.element.clientHeight;o.preventDefault(),e.displayRowsCount&&(t>=0?e.element.scrollTop=t:e.scrollToRow(e.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(o){var e=this.table.rowManager,t=e.scrollTop+e.element.clientHeight,i=e.element.scrollHeight;o.preventDefault(),e.displayRowsCount&&(t<=i?e.element.scrollTop=t:e.scrollToRow(e.getDisplayRows()[e.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(o){var e=this.table.rowManager;o.preventDefault(),e.displayRowsCount&&e.scrollToRow(e.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(o){var e=this.table.rowManager;o.preventDefault(),e.displayRowsCount&&e.scrollToRow(e.getDisplayRows()[e.displayRowsCount-1]),this.table.element.focus()},navPrev:function(o){this.dispatch("keybinding-nav-prev",o)},navNext:function(o){this.dispatch("keybinding-nav-next",o)},navLeft:function(o){this.dispatch("keybinding-nav-left",o)},navRight:function(o){this.dispatch("keybinding-nav-right",o)},navUp:function(o){this.dispatch("keybinding-nav-up",o)},navDown:function(o){this.dispatch("keybinding-nav-down",o)}};const et=class et extends q{constructor(e){super(e),this.watchKeys=null,this.pressedKeys=null,this.keyupBinding=!1,this.keydownBinding=!1,this.registerTableOption("keybindings",{}),this.registerTableOption("tabEndNewRow",!1)}initialize(){var e=this.table.options.keybindings,t={};this.watchKeys={},this.pressedKeys=[],e!==!1&&(Object.assign(t,et.bindings),Object.assign(t,e),this.mapBindings(t),this.bindEvents()),this.subscribe("table-destroy",this.clearBindings.bind(this))}mapBindings(e){for(let t in e)et.actions[t]?e[t]&&(typeof e[t]!="object"&&(e[t]=[e[t]]),e[t].forEach(i=>{var a=Array.isArray(i)?i:[i];a.forEach(n=>{this.mapBinding(t,n)})})):console.warn("Key Binding Error - no such action:",t)}mapBinding(e,t){var i={action:et.actions[e],keys:[],ctrl:!1,shift:!1,meta:!1},a=t.toString().toLowerCase().split(" ").join("").split("+");a.forEach(n=>{switch(n){case"ctrl":i.ctrl=!0;break;case"shift":i.shift=!0;break;case"meta":i.meta=!0;break;default:n=isNaN(n)?n.toUpperCase().charCodeAt(0):parseInt(n),i.keys.push(n),this.watchKeys[n]||(this.watchKeys[n]=[]),this.watchKeys[n].push(i)}})}bindEvents(){var e=this;this.keyupBinding=function(t){var i=t.keyCode,a=e.watchKeys[i];a&&(e.pressedKeys.push(i),a.forEach(function(n){e.checkBinding(t,n)}))},this.keydownBinding=function(t){var i=t.keyCode,a=e.watchKeys[i];if(a){var n=e.pressedKeys.indexOf(i);n>-1&&e.pressedKeys.splice(n,1)}},this.table.element.addEventListener("keydown",this.keyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)}clearBindings(){this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBinding),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydownBinding)}checkBinding(e,t){var i=!0;return e.ctrlKey==t.ctrl&&e.shiftKey==t.shift&&e.metaKey==t.meta?(t.keys.forEach(a=>{var n=this.pressedKeys.indexOf(a);n==-1&&(i=!1)}),i&&t.action.call(this,e),!0):!1}};E(et,"moduleName","keybindings"),E(et,"bindings",uI),E(et,"actions",pI);let C9=et,yI=(VC=class extends q{constructor(e){super(e),this.menuContainer=null,this.nestedMenuBlock=!1,this.currentComponent=null,this.rootPopup=null,this.columnSubscribers={},this.registerTableOption("rowContextMenu",!1),this.registerTableOption("rowClickMenu",!1),this.registerTableOption("rowDblClickMenu",!1),this.registerTableOption("groupContextMenu",!1),this.registerTableOption("groupClickMenu",!1),this.registerTableOption("groupDblClickMenu",!1),this.registerColumnOption("headerContextMenu"),this.registerColumnOption("headerClickMenu"),this.registerColumnOption("headerDblClickMenu"),this.registerColumnOption("headerMenu"),this.registerColumnOption("headerMenuIcon"),this.registerColumnOption("contextMenu"),this.registerColumnOption("clickMenu"),this.registerColumnOption("dblClickMenu")}initialize(){this.deprecatedOptionsCheck(),this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){}initializeRowWatchers(){this.table.options.rowContextMenu&&(this.subscribe("row-contextmenu",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu)),this.table.on("rowTapHold",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu))),this.table.options.rowClickMenu&&this.subscribe("row-click",this.loadMenuEvent.bind(this,this.table.options.rowClickMenu)),this.table.options.rowDblClickMenu&&this.subscribe("row-dblclick",this.loadMenuEvent.bind(this,this.table.options.rowDblClickMenu))}initializeGroupWatchers(){this.table.options.groupContextMenu&&(this.subscribe("group-contextmenu",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu)),this.table.on("groupTapHold",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu))),this.table.options.groupClickMenu&&this.subscribe("group-click",this.loadMenuEvent.bind(this,this.table.options.groupClickMenu)),this.table.options.groupDblClickMenu&&this.subscribe("group-dblclick",this.loadMenuEvent.bind(this,this.table.options.groupDblClickMenu))}initializeColumn(e){var t=e.definition;t.headerContextMenu&&!this.columnSubscribers.headerContextMenu&&(this.columnSubscribers.headerContextMenu=this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"),this.subscribe("column-contextmenu",this.columnSubscribers.headerContextMenu),this.table.on("headerTapHold",this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"))),t.headerClickMenu&&!this.columnSubscribers.headerClickMenu&&(this.columnSubscribers.headerClickMenu=this.loadMenuTableColumnEvent.bind(this,"headerClickMenu"),this.subscribe("column-click",this.columnSubscribers.headerClickMenu)),t.headerDblClickMenu&&!this.columnSubscribers.headerDblClickMenu&&(this.columnSubscribers.headerDblClickMenu=this.loadMenuTableColumnEvent.bind(this,"headerDblClickMenu"),this.subscribe("column-dblclick",this.columnSubscribers.headerDblClickMenu)),t.headerMenu&&this.initializeColumnHeaderMenu(e),t.contextMenu&&!this.columnSubscribers.contextMenu&&(this.columnSubscribers.contextMenu=this.loadMenuTableCellEvent.bind(this,"contextMenu"),this.subscribe("cell-contextmenu",this.columnSubscribers.contextMenu),this.table.on("cellTapHold",this.loadMenuTableCellEvent.bind(this,"contextMenu"))),t.clickMenu&&!this.columnSubscribers.clickMenu&&(this.columnSubscribers.clickMenu=this.loadMenuTableCellEvent.bind(this,"clickMenu"),this.subscribe("cell-click",this.columnSubscribers.clickMenu)),t.dblClickMenu&&!this.columnSubscribers.dblClickMenu&&(this.columnSubscribers.dblClickMenu=this.loadMenuTableCellEvent.bind(this,"dblClickMenu"),this.subscribe("cell-dblclick",this.columnSubscribers.dblClickMenu))}initializeColumnHeaderMenu(e){var t=e.definition.headerMenuIcon,i;i=document.createElement("span"),i.classList.add("tabulator-header-popup-button"),t?(typeof t=="function"&&(t=t(e.getComponent())),t instanceof HTMLElement?i.appendChild(t):i.innerHTML=t):i.innerHTML="&vellip;",i.addEventListener("click",a=>{a.stopPropagation(),a.preventDefault(),this.loadMenuEvent(e.definition.headerMenu,a,e)}),e.titleElement.insertBefore(i,e.titleElement.firstChild)}loadMenuTableCellEvent(e,t,i){i._cell&&(i=i._cell),i.column.definition[e]&&this.loadMenuEvent(i.column.definition[e],t,i)}loadMenuTableColumnEvent(e,t,i){i._column&&(i=i._column),i.definition[e]&&this.loadMenuEvent(i.definition[e],t,i)}loadMenuEvent(e,t,i){i._group?i=i._group:i._row&&(i=i._row),e=typeof e=="function"?e.call(this.table,t,i.getComponent()):e,this.loadMenu(t,i,e)}loadMenu(e,t,i,a,n){var r=!(e instanceof MouseEvent),l=document.createElement("div"),h;if(l.classList.add("tabulator-menu"),r||e.preventDefault(),!(!i||!i.length)){if(a)h=n.child(l);else{if(this.nestedMenuBlock){if(this.rootPopup)return}else this.nestedMenuBlock=setTimeout(()=>{this.nestedMenuBlock=!1},100);this.rootPopup&&this.rootPopup.hide(),this.rootPopup=h=this.popup(l)}i.forEach(d=>{var u=document.createElement("div"),p=d.label,y=d.disabled;d.separator?u.classList.add("tabulator-menu-separator"):(u.classList.add("tabulator-menu-item"),typeof p=="function"&&(p=p.call(this.table,t.getComponent())),p instanceof Node?u.appendChild(p):u.innerHTML=p,typeof y=="function"&&(y=y.call(this.table,t.getComponent())),y?(u.classList.add("tabulator-menu-item-disabled"),u.addEventListener("click",f=>{f.stopPropagation()})):d.menu&&d.menu.length?u.addEventListener("click",f=>{f.stopPropagation(),this.loadMenu(f,t,d.menu,u,h)}):d.action&&u.addEventListener("click",f=>{d.action(f,t.getComponent())}),d.menu&&d.menu.length&&u.classList.add("tabulator-menu-item-submenu")),l.appendChild(u)}),l.addEventListener("click",d=>{this.rootPopup&&this.rootPopup.hide()}),h.show(a||e),h===this.rootPopup&&(this.rootPopup.hideOnBlur(()=>{this.rootPopup=null,this.currentComponent&&(this.dispatch("menu-closed",i,h),this.dispatchExternal("menuClosed",this.currentComponent.getComponent()),this.currentComponent=null)}),this.currentComponent=t,this.dispatch("menu-opened",i,h),this.dispatchExternal("menuOpened",t.getComponent()))}}},E(VC,"moduleName","menu"),VC);class ZC extends q{constructor(e){super(e),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeout=!1,this.touchMove=!1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.registerTableOption("movableColumns",!1)}createPlaceholderElement(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.classList.add("tabulator-col-placeholder"),e}initialize(){this.table.options.movableColumns&&(this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("alert-show",this.abortMove.bind(this)))}abortMove(){clearTimeout(this.checkTimeout)}initializeColumn(e){var t=this,i={},a;!e.modules.frozen&&!e.isGroup&&!e.isRowHeader&&(a=e.getElement(),i.mousemove=(function(n){e.parent===t.moving.parent&&((t.touchMove?n.touches[0].pageX:n.pageX)-G.elOffset(a).left+t.table.columnManager.contentsElement.scrollLeft>e.getWidth()/2?(t.toCol!==e||!t.toColAfter)&&(a.parentNode.insertBefore(t.placeholderElement,a.nextSibling),t.moveColumn(e,!0)):(t.toCol!==e||t.toColAfter)&&(a.parentNode.insertBefore(t.placeholderElement,a),t.moveColumn(e,!1)))}).bind(t),a.addEventListener("mousedown",function(n){t.touchMove=!1,n.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(n,e)},t.checkPeriod))}),a.addEventListener("mouseup",function(n){n.which===1&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),t.bindTouchEvents(e)),e.modules.moveColumn=i}bindTouchEvents(e){var t=e.getElement(),i=!1,a,n,r,l,h,d;t.addEventListener("touchstart",u=>{this.checkTimeout=setTimeout(()=>{this.touchMove=!0,a=e.nextColumn(),r=a?a.getWidth()/2:0,n=e.prevColumn(),l=n?n.getWidth()/2:0,h=0,d=0,i=!1,this.startMove(u,e)},this.checkPeriod)},{passive:!0}),t.addEventListener("touchmove",u=>{var p,y;this.moving&&(this.moveHover(u),i||(i=u.touches[0].pageX),p=u.touches[0].pageX-i,p>0?a&&p-h>r&&(y=a,y!==e&&(i=u.touches[0].pageX,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement().nextSibling),this.moveColumn(y,!0))):n&&-p-d>l&&(y=n,y!==e&&(i=u.touches[0].pageX,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement()),this.moveColumn(y,!1))),y&&(a=y.nextColumn(),h=r,r=a?a.getWidth()/2:0,n=y.prevColumn(),d=l,l=n?n.getWidth()/2:0))},{passive:!0}),t.addEventListener("touchend",u=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&this.endMove(u)})}startMove(e,t){var i=t.getElement(),a=this.table.columnManager.getContentsElement(),n=this.table.columnManager.getHeadersElement();this.table.modules.selectRange&&this.table.modules.selectRange.columnSelection&&this.table.modules.selectRange.mousedown&&this.table.modules.selectRange.selecting==="column"||(this.moving=t,this.startX=(this.touchMove?e.touches[0].pageX:e.pageX)-G.elOffset(i).left,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",i.parentNode.insertBefore(this.placeholderElement,i),i.parentNode.removeChild(i),this.hoverElement=i.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),a.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom=a.clientHeight-n.offsetHeight+"px",this.touchMove||(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove)),this.moveHover(e),this.dispatch("column-moving",e,this.moving))}_bindMouseMove(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveColumn.mousemove)})}_unbindMouseMove(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveColumn.mousemove)})}moveColumn(e,t){var i=this.moving.getCells();this.toCol=e,this.toColAfter=t,t?e.getCells().forEach(function(a,n){var r=a.getElement(!0);r.parentNode&&i[n]&&r.parentNode.insertBefore(i[n].getElement(),r.nextSibling)}):e.getCells().forEach(function(a,n){var r=a.getElement(!0);r.parentNode&&i[n]&&r.parentNode.insertBefore(i[n].getElement(),r)})}endMove(e){(e.which===1||this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toCol&&this.table.columnManager.moveColumnActual(this.moving,this.toCol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.touchMove||(document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove)))}moveHover(e){var t=this.table.columnManager.getContentsElement(),i=t.scrollLeft,a=(this.touchMove?e.touches[0].pageX:e.pageX)-G.elOffset(t).left+i,n;this.hoverElement.style.left=a-this.startX+"px",a-i<this.autoScrollMargin&&(this.autoScrollTimeout||(this.autoScrollTimeout=setTimeout(()=>{n=Math.max(0,i-5),this.table.rowManager.getElement().scrollLeft=n,this.autoScrollTimeout=!1},1))),i+t.clientWidth-a<this.autoScrollMargin&&(this.autoScrollTimeout||(this.autoScrollTimeout=setTimeout(()=>{n=Math.min(t.clientWidth,i+5),this.table.rowManager.getElement().scrollLeft=n,this.autoScrollTimeout=!1},1)))}}E(ZC,"moduleName","moveColumn");var fI={delete:function(o,e,t){o.delete()}},mI={insert:function(o,e,t){return this.table.addRow(o.getData(),void 0,e),!0},add:function(o,e,t){return this.table.addRow(o.getData()),!0},update:function(o,e,t){return e?(e.update(o.getData()),!0):!1},replace:function(o,e,t){return e?(this.table.addRow(o.getData(),void 0,e),e.delete(),!0):!1}};const Go=class Go extends q{constructor(e){super(e),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=150,this.moving=!1,this.toRow=!1,this.toRowAfter=!1,this.hasHandle=!1,this.startY=0,this.startX=0,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.tableRowDropEvent=!1,this.touchMove=!1,this.connection=!1,this.connectionSelectorsTables=!1,this.connectionSelectorsElements=!1,this.connectionElements=[],this.connections=[],this.connectedTable=!1,this.connectedRow=!1,this.registerTableOption("movableRows",!1),this.registerTableOption("movableRowsConnectedTables",!1),this.registerTableOption("movableRowsConnectedElements",!1),this.registerTableOption("movableRowsSender",!1),this.registerTableOption("movableRowsReceiver","insert"),this.registerColumnOption("rowHandle")}createPlaceholderElement(){var e=document.createElement("div");return e.classList.add("tabulator-row"),e.classList.add("tabulator-row-placeholder"),e}initialize(){this.table.options.movableRows&&(this.connectionSelectorsTables=this.table.options.movableRowsConnectedTables,this.connectionSelectorsElements=this.table.options.movableRowsConnectedElements,this.connection=this.connectionSelectorsTables||this.connectionSelectorsElements,this.subscribe("cell-init",this.initializeCell.bind(this)),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("row-init",this.initializeRow.bind(this)))}initializeGroupHeader(e){var t=this,i={};i.mouseup=(function(a){t.tableRowDrop(a,e)}).bind(t),i.mousemove=(function(a){var n;a.pageY-G.elOffset(e.element).top+t.table.rowManager.element.scrollTop>e.getHeight()/2?(t.toRow!==e||!t.toRowAfter)&&(n=e.getElement(),n.parentNode.insertBefore(t.placeholderElement,n.nextSibling),t.moveRow(e,!0)):(t.toRow!==e||t.toRowAfter)&&(n=e.getElement(),n.previousSibling&&(n.parentNode.insertBefore(t.placeholderElement,n),t.moveRow(e,!1)))}).bind(t),e.modules.moveRow=i}initializeRow(e){var t=this,i={},a;i.mouseup=(function(n){t.tableRowDrop(n,e)}).bind(t),i.mousemove=(function(n){var r=e.getElement();n.pageY-G.elOffset(r).top+t.table.rowManager.element.scrollTop>e.getHeight()/2?(t.toRow!==e||!t.toRowAfter)&&(r.parentNode.insertBefore(t.placeholderElement,r.nextSibling),t.moveRow(e,!0)):(t.toRow!==e||t.toRowAfter)&&(r.parentNode.insertBefore(t.placeholderElement,r),t.moveRow(e,!1))}).bind(t),this.hasHandle||(a=e.getElement(),a.addEventListener("mousedown",function(n){n.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(n,e)},t.checkPeriod))}),a.addEventListener("mouseup",function(n){n.which===1&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e,e.getElement())),e.modules.moveRow=i}initializeColumn(e){e.definition.rowHandle&&this.table.options.movableRows!==!1&&(this.hasHandle=!0)}initializeCell(e){if(e.column.definition.rowHandle&&this.table.options.movableRows!==!1){var t=this,i=e.getElement(!0);i.addEventListener("mousedown",function(a){a.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(a,e.row)},t.checkPeriod))}),i.addEventListener("mouseup",function(a){a.which===1&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e.row,i)}}bindTouchEvents(e,t){var i=!1,a,n,r,l,h,d;t.addEventListener("touchstart",u=>{this.checkTimeout=setTimeout(()=>{this.touchMove=!0,a=e.nextRow(),r=a?a.getHeight()/2:0,n=e.prevRow(),l=n?n.getHeight()/2:0,h=0,d=0,i=!1,this.startMove(u,e)},this.checkPeriod)},{passive:!0}),this.moving,this.toRow,this.toRowAfter,t.addEventListener("touchmove",u=>{var p,y;this.moving&&(u.preventDefault(),this.moveHover(u),i||(i=u.touches[0].pageY),p=u.touches[0].pageY-i,p>0?a&&p-h>r&&(y=a,y!==e&&(i=u.touches[0].pageY,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement().nextSibling),this.moveRow(y,!0))):n&&-p-d>l&&(y=n,y!==e&&(i=u.touches[0].pageY,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement()),this.moveRow(y,!1))),y&&(a=y.nextRow(),h=r,r=a?a.getHeight()/2:0,n=y.prevRow(),d=l,l=n?n.getHeight()/2:0))}),t.addEventListener("touchend",u=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&(this.endMove(u),this.touchMove=!1)})}_bindMouseMove(){this.table.rowManager.getDisplayRows().forEach(e=>{(e.type==="row"||e.type==="group")&&e.modules.moveRow&&e.modules.moveRow.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveRow.mousemove)})}_unbindMouseMove(){this.table.rowManager.getDisplayRows().forEach(e=>{(e.type==="row"||e.type==="group")&&e.modules.moveRow&&e.modules.moveRow.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveRow.mousemove)})}startMove(e,t){var i=t.getElement();this.setStartPosition(e,t),this.moving=t,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",this.connection?(this.table.element.classList.add("tabulator-movingrow-sending"),this.connectToTables(t)):(i.parentNode.insertBefore(this.placeholderElement,i),i.parentNode.removeChild(i)),this.hoverElement=i.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.connection?(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.clientWidth+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.overflow="hidden",this.hoverElement.style.pointerEvents="none"):(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove),this.dispatchExternal("rowMoving",t.getComponent()),this.moveHover(e)}setStartPosition(e,t){var i=this.touchMove?e.touches[0].pageX:e.pageX,a=this.touchMove?e.touches[0].pageY:e.pageY,n,r;n=t.getElement(),this.connection?(r=n.getBoundingClientRect(),this.startX=r.left-i+window.pageXOffset,this.startY=r.top-a+window.pageYOffset):this.startY=a-n.getBoundingClientRect().top}endMove(e){(!e||e.which===1||this.touchMove)&&(this._unbindMouseMove(),this.connection||(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toRow?this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter):this.dispatchExternal("rowMoveCancelled",this.moving.getComponent()),this.moving=!1,this.toRow=!1,this.toRowAfter=!1,document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classList.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))}moveRow(e,t){this.toRow=e,this.toRowAfter=t}moveHover(e){this.connection?this.moveHoverConnections.call(this,e):this.moveHoverTable.call(this,e)}moveHoverTable(e){var t=this.table.rowManager.getElement(),i=t.scrollTop,a=(this.touchMove?e.touches[0].pageY:e.pageY)-t.getBoundingClientRect().top+i;this.hoverElement.style.top=Math.min(a-this.startY,this.table.rowManager.element.scrollHeight-this.hoverElement.offsetHeight)+"px"}moveHoverConnections(e){this.hoverElement.style.left=this.startX+(this.touchMove?e.touches[0].pageX:e.pageX)+"px",this.hoverElement.style.top=this.startY+(this.touchMove?e.touches[0].pageY:e.pageY)+"px"}elementRowDrop(e,t,i){this.dispatchExternal("movableRowsElementDrop",e,t,i?i.getComponent():!1)}connectToTables(e){var t;this.connectionSelectorsTables&&(t=this.commsConnections(this.connectionSelectorsTables),this.dispatchExternal("movableRowsSendingStart",t),this.commsSend(this.connectionSelectorsTables,"moveRow","connect",{row:e})),this.connectionSelectorsElements&&(this.connectionElements=[],Array.isArray(this.connectionSelectorsElements)||(this.connectionSelectorsElements=[this.connectionSelectorsElements]),this.connectionSelectorsElements.forEach(i=>{typeof i=="string"?this.connectionElements=this.connectionElements.concat(Array.prototype.slice.call(document.querySelectorAll(i))):this.connectionElements.push(i)}),this.connectionElements.forEach(i=>{var a=n=>{this.elementRowDrop(n,i,this.moving)};i.addEventListener("mouseup",a),i.tabulatorElementDropEvent=a,i.classList.add("tabulator-movingrow-receiving")}))}disconnectFromTables(){var e;this.connectionSelectorsTables&&(e=this.commsConnections(this.connectionSelectorsTables),this.dispatchExternal("movableRowsSendingStop",e),this.commsSend(this.connectionSelectorsTables,"moveRow","disconnect")),this.connectionElements.forEach(t=>{t.classList.remove("tabulator-movingrow-receiving"),t.removeEventListener("mouseup",t.tabulatorElementDropEvent),delete t.tabulatorElementDropEvent})}connect(e,t){return this.connectedTable?(console.warn("Move Row Error - Table cannot accept connection, already connected to table:",this.connectedTable),!1):(this.connectedTable=e,this.connectedRow=t,this.table.element.classList.add("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach(i=>{i.type==="row"&&i.modules.moveRow&&i.modules.moveRow.mouseup&&i.getElement().addEventListener("mouseup",i.modules.moveRow.mouseup)}),this.tableRowDropEvent=this.tableRowDrop.bind(this),this.table.element.addEventListener("mouseup",this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStart",t,e),!0)}disconnect(e){e===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!1,this.table.element.classList.remove("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach(t=>{t.type==="row"&&t.modules.moveRow&&t.modules.moveRow.mouseup&&t.getElement().removeEventListener("mouseup",t.modules.moveRow.mouseup)}),this.table.element.removeEventListener("mouseup",this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStop",e)):console.warn("Move Row Error - trying to disconnect from non connected table")}dropComplete(e,t,i){var a=!1;if(i){switch(typeof this.table.options.movableRowsSender){case"string":a=Go.senders[this.table.options.movableRowsSender];break;case"function":a=this.table.options.movableRowsSender;break}a?a.call(this,this.moving?this.moving.getComponent():void 0,t?t.getComponent():void 0,e):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no matching sender found:",this.table.options.movableRowsSender),this.dispatchExternal("movableRowsSent",this.moving.getComponent(),t?t.getComponent():void 0,e)}else this.dispatchExternal("movableRowsSentFailed",this.moving.getComponent(),t?t.getComponent():void 0,e);this.endMove()}tableRowDrop(e,t){var i=!1,a=!1;switch(e.stopImmediatePropagation(),typeof this.table.options.movableRowsReceiver){case"string":i=Go.receivers[this.table.options.movableRowsReceiver];break;case"function":i=this.table.options.movableRowsReceiver;break}i?a=i.call(this,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):console.warn("Mover Row Error - no matching receiver found:",this.table.options.movableRowsReceiver),a?this.dispatchExternal("movableRowsReceived",this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):this.dispatchExternal("movableRowsReceivedFailed",this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable),this.commsSend(this.connectedTable,"moveRow","dropcomplete",{row:t,success:a})}commsReceived(e,t,i){switch(t){case"connect":return this.connect(e,i.row);case"disconnect":return this.disconnect(e);case"dropcomplete":return this.dropComplete(e,i.row,i.success)}}};E(Go,"moduleName","moveRow"),E(Go,"senders",fI),E(Go,"receivers",mI);let x9=Go;var gI={};const cn=class cn extends q{constructor(e){super(e),this.allowedTypes=["","data","edit","clipboard","import"],this.enabled=!0,this.registerColumnOption("mutator"),this.registerColumnOption("mutatorParams"),this.registerColumnOption("mutatorData"),this.registerColumnOption("mutatorDataParams"),this.registerColumnOption("mutatorEdit"),this.registerColumnOption("mutatorEditParams"),this.registerColumnOption("mutatorClipboard"),this.registerColumnOption("mutatorClipboardParams"),this.registerColumnOption("mutatorImport"),this.registerColumnOption("mutatorImportParams"),this.registerColumnOption("mutateLink")}initialize(){this.subscribe("cell-value-changing",this.transformCell.bind(this)),this.subscribe("cell-value-changed",this.mutateLink.bind(this)),this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-init-before",this.rowDataChanged.bind(this)),this.subscribe("row-data-changing",this.rowDataChanged.bind(this))}rowDataChanged(e,t,i){return this.transformRow(t,"data",i)}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(a=>{var n="mutator"+(a.charAt(0).toUpperCase()+a.slice(1)),r;e.definition[n]&&(r=this.lookupMutator(e.definition[n]),r&&(t=!0,i[n]={mutator:r,params:e.definition[n+"Params"]||{}}))}),t&&(e.modules.mutate=i)}lookupMutator(e){var t=!1;switch(typeof e){case"string":cn.mutators[e]?t=cn.mutators[e]:console.warn("Mutator Error - No such mutator found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t,i){var a="mutator"+(t.charAt(0).toUpperCase()+t.slice(1)),n;return this.enabled&&this.table.columnManager.traverse(r=>{var l,h,d;r.modules.mutate&&(l=r.modules.mutate[a]||r.modules.mutate.mutator||!1,l&&(n=r.getFieldValue(typeof i<"u"?i:e),(t=="data"&&!i||typeof n<"u")&&(d=r.getComponent(),h=typeof l.params=="function"?l.params(n,e,t,d):l.params,r.setFieldValue(e,l.mutator(n,e,t,h,d)))))}),e}transformCell(e,t){if(e.column.modules.mutate){var i=e.column.modules.mutate.mutatorEdit||e.column.modules.mutate.mutator||!1,a={};if(i)return a=Object.assign(a,e.row.getData()),e.column.setFieldValue(a,t),i.mutator(t,a,"edit",i.params,e.getComponent())}return t}mutateLink(e){var t=e.column.definition.mutateLink;t&&(Array.isArray(t)||(t=[t]),t.forEach(i=>{var a=e.row.getCell(i);a&&a.setValue(a.getValue(),!0,!0)}))}enable(){this.enabled=!0}disable(){this.enabled=!1}};E(cn,"moduleName","mutator"),E(cn,"mutators",gI);let L9=cn;function kI(o,e,t,i,a){var n=document.createElement("span"),r=document.createElement("span"),l=document.createElement("span"),h=document.createElement("span"),d=document.createElement("span"),u=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",p=>{r.innerHTML=p}),this.table.modules.localize.langBind("pagination|counter|of",p=>{h.innerHTML=p}),this.table.modules.localize.langBind("pagination|counter|rows",p=>{u.innerHTML=p}),i?(l.innerHTML=" "+e+"-"+Math.min(e+o-1,i)+" ",d.innerHTML=" "+i+" ",n.appendChild(r),n.appendChild(l),n.appendChild(h),n.appendChild(d),n.appendChild(u)):(l.innerHTML=" 0 ",n.appendChild(r),n.appendChild(l),n.appendChild(u)),n}function bI(o,e,t,i,a){var n=document.createElement("span"),r=document.createElement("span"),l=document.createElement("span"),h=document.createElement("span"),d=document.createElement("span"),u=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",p=>{r.innerHTML=p}),l.innerHTML=" "+t+" ",this.table.modules.localize.langBind("pagination|counter|of",p=>{h.innerHTML=p}),d.innerHTML=" "+a+" ",this.table.modules.localize.langBind("pagination|counter|pages",p=>{u.innerHTML=p}),n.appendChild(r),n.appendChild(l),n.appendChild(h),n.appendChild(d),n.appendChild(u),n}var wI={rows:kI,pages:bI};const En=class En extends q{constructor(e){super(e),this.mode="local",this.progressiveLoad=!1,this.element=null,this.pageCounterElement=null,this.pageCounter=null,this.size=0,this.page=1,this.count=5,this.max=1,this.remoteRowCountEstimate=null,this.initialLoad=!0,this.dataChanging=!1,this.pageSizes=[],this.registerTableOption("pagination",!1),this.registerTableOption("paginationMode","local"),this.registerTableOption("paginationSize",!1),this.registerTableOption("paginationInitialPage",1),this.registerTableOption("paginationCounter",!1),this.registerTableOption("paginationCounterElement",!1),this.registerTableOption("paginationButtonCount",5),this.registerTableOption("paginationSizeSelector",!1),this.registerTableOption("paginationElement",!1),this.registerTableOption("paginationAddRow","page"),this.registerTableOption("paginationOutOfRange",!1),this.registerTableOption("progressiveLoad",!1),this.registerTableOption("progressiveLoadDelay",0),this.registerTableOption("progressiveLoadScrollMargin",0),this.registerTableFunction("setMaxPage",this.setMaxPage.bind(this)),this.registerTableFunction("setPage",this.setPage.bind(this)),this.registerTableFunction("setPageToRow",this.userSetPageToRow.bind(this)),this.registerTableFunction("setPageSize",this.userSetPageSize.bind(this)),this.registerTableFunction("getPageSize",this.getPageSize.bind(this)),this.registerTableFunction("previousPage",this.previousPage.bind(this)),this.registerTableFunction("nextPage",this.nextPage.bind(this)),this.registerTableFunction("getPage",this.getPage.bind(this)),this.registerTableFunction("getPageMax",this.getPageMax.bind(this)),this.registerComponentFunction("row","pageTo",this.setPageToRow.bind(this))}initialize(){this.table.options.pagination?(this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("data-processed",this.initialLoadComplete.bind(this)),this.subscribe("table-built",this.calculatePageSizes.bind(this)),this.subscribe("footer-redraw",this.footerRedraw.bind(this)),this.table.options.paginationAddRow=="page"&&this.subscribe("row-adding-position",this.rowAddingPosition.bind(this)),this.table.options.paginationMode==="remote"&&(this.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-loaded",this._parseRemoteData.bind(this))),this.table.options.progressiveLoad&&console.error("Progressive Load Error - Pagination and progressive load cannot be used at the same time"),this.registerDisplayHandler(this.restOnRenderBefore.bind(this),40),this.registerDisplayHandler(this.getRows.bind(this),50),this.createElements(),this.initializePageCounter(),this.initializePaginator()):this.table.options.progressiveLoad&&(this.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-loaded",this._parseRemoteData.bind(this)),this.subscribe("table-built",this.calculatePageSizes.bind(this)),this.subscribe("data-processed",this.initialLoadComplete.bind(this)),this.initializeProgressive(this.table.options.progressiveLoad),this.table.options.progressiveLoad==="scroll"&&this.subscribe("scroll-vertical",this.scrollVertical.bind(this)))}rowAddingPosition(e,t){var i=this.table.rowManager,a=i.getDisplayRows(),n;return t?a.length?n=a[0]:i.activeRows.length&&(n=i.activeRows[i.activeRows.length-1],t=!1):a.length&&(n=a[a.length-1],t=!(a.length<this.size)),{index:n,top:t}}calculatePageSizes(){var e,t;this.table.options.paginationSize?this.size=this.table.options.paginationSize:(e=document.createElement("div"),e.classList.add("tabulator-row"),e.style.visibility="hidden",t=document.createElement("div"),t.classList.add("tabulator-cell"),t.innerHTML="Page Row Test",e.appendChild(t),this.table.rowManager.getTableElement().appendChild(e),this.size=Math.floor(this.table.rowManager.getElement().clientHeight/e.offsetHeight),this.table.rowManager.getTableElement().removeChild(e)),this.dispatchExternal("pageSizeChanged",this.size),this.generatePageSizeSelectList()}initialLoadComplete(){this.initialLoad=!1}remotePageParams(e,t,i,a){return this.initialLoad||(this.progressiveLoad&&!i||!this.progressiveLoad&&!this.dataChanging)&&this.reset(!0),a.page=this.page,this.size&&(a.size=this.size),a}userSetPageToRow(e){return this.table.options.pagination&&(e=this.table.rowManager.findRow(e),e)?this.setPageToRow(e):Promise.reject()}userSetPageSize(e){return this.table.options.pagination?(this.setPageSize(e),this.setPage(1)):!1}scrollVertical(e,t){var i,a,n;!t&&!this.table.dataLoader.loading&&(i=this.table.rowManager.getElement(),a=i.scrollHeight-i.clientHeight-e,n=this.table.options.progressiveLoadScrollMargin||i.clientHeight*2,a<n&&this.nextPage().catch(()=>{}))}restOnRenderBefore(e,t){return t||this.mode==="local"&&this.reset(),e}rowsUpdated(){this.refreshData(!0,"all")}createElements(){var e;this.element=document.createElement("span"),this.element.classList.add("tabulator-paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.classList.add("tabulator-pages"),e=document.createElement("button"),e.classList.add("tabulator-page"),e.setAttribute("type","button"),e.setAttribute("role","button"),e.setAttribute("aria-label",""),e.setAttribute("title",""),this.firstBut=e.cloneNode(!0),this.firstBut.setAttribute("data-page","first"),this.prevBut=e.cloneNode(!0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=e.cloneNode(!0),this.nextBut.setAttribute("data-page","next"),this.lastBut=e.cloneNode(!0),this.lastBut.setAttribute("data-page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=document.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-size"))}generatePageSizeSelectList(){var e=[];if(this.pageSizeSelect){if(Array.isArray(this.table.options.paginationSizeSelector))e=this.table.options.paginationSizeSelector,this.pageSizes=e,this.pageSizes.indexOf(this.size)==-1&&e.unshift(this.size);else if(this.pageSizes.indexOf(this.size)==-1){e=[];for(let t=1;t<5;t++)e.push(this.size*t);this.pageSizes=e}else e=this.pageSizes;for(;this.pageSizeSelect.firstChild;)this.pageSizeSelect.removeChild(this.pageSizeSelect.firstChild);e.forEach(t=>{var i=document.createElement("option");i.value=t,t===!0?this.langBind("pagination|all",function(a){i.innerHTML=a}):i.innerHTML=t,this.pageSizeSelect.appendChild(i)}),this.pageSizeSelect.value=this.size}}initializePageCounter(){var e=this.table.options.paginationCounter,t=null;e&&(typeof e=="function"?t=e:t=En.pageCounters[e],t?(this.pageCounter=t,this.pageCounterElement=document.createElement("span"),this.pageCounterElement.classList.add("tabulator-page-counter")):console.warn("Pagination Error - No such page counter found: ",e))}initializePaginator(e){var t,i;e||(this.langBind("pagination|first",a=>{this.firstBut.innerHTML=a}),this.langBind("pagination|first_title",a=>{this.firstBut.setAttribute("aria-label",a),this.firstBut.setAttribute("title",a)}),this.langBind("pagination|prev",a=>{this.prevBut.innerHTML=a}),this.langBind("pagination|prev_title",a=>{this.prevBut.setAttribute("aria-label",a),this.prevBut.setAttribute("title",a)}),this.langBind("pagination|next",a=>{this.nextBut.innerHTML=a}),this.langBind("pagination|next_title",a=>{this.nextBut.setAttribute("aria-label",a),this.nextBut.setAttribute("title",a)}),this.langBind("pagination|last",a=>{this.lastBut.innerHTML=a}),this.langBind("pagination|last_title",a=>{this.lastBut.setAttribute("aria-label",a),this.lastBut.setAttribute("title",a)}),this.firstBut.addEventListener("click",()=>{this.setPage(1)}),this.prevBut.addEventListener("click",()=>{this.previousPage()}),this.nextBut.addEventListener("click",()=>{this.nextPage()}),this.lastBut.addEventListener("click",()=>{this.setPage(this.max)}),this.table.options.paginationElement&&(this.element=this.table.options.paginationElement),this.pageSizeSelect&&(t=document.createElement("label"),this.langBind("pagination|page_size",a=>{this.pageSizeSelect.setAttribute("aria-label",a),this.pageSizeSelect.setAttribute("title",a),t.innerHTML=a}),this.element.appendChild(t),this.element.appendChild(this.pageSizeSelect),this.pageSizeSelect.addEventListener("change",a=>{this.setPageSize(this.pageSizeSelect.value=="true"?!0:this.pageSizeSelect.value),this.setPage(1)})),this.element.appendChild(this.firstBut),this.element.appendChild(this.prevBut),this.element.appendChild(this.pagesElement),this.element.appendChild(this.nextBut),this.element.appendChild(this.lastBut),this.table.options.paginationElement||(this.table.options.paginationCounter&&(this.table.options.paginationCounterElement?this.table.options.paginationCounterElement instanceof HTMLElement?this.table.options.paginationCounterElement.appendChild(this.pageCounterElement):typeof this.table.options.paginationCounterElement=="string"&&(i=document.querySelector(this.table.options.paginationCounterElement),i?i.appendChild(this.pageCounterElement):console.warn("Pagination Error - Unable to find element matching paginationCounterElement selector:",this.table.options.paginationCounterElement)):this.footerAppend(this.pageCounterElement)),this.footerAppend(this.element)),this.page=this.table.options.paginationInitialPage,this.count=this.table.options.paginationButtonCount),this.mode=this.table.options.paginationMode}initializeProgressive(e){this.initializePaginator(!0),this.mode="progressive_"+e,this.progressiveLoad=!0}trackChanges(){this.dispatch("page-changed")}setMaxRows(e){e?this.max=this.size===!0?1:Math.ceil(e/this.size):this.max=1,this.page>this.max&&(this.page=this.max)}reset(e){this.initialLoad||(this.mode=="local"||e)&&(this.page=1,this.trackChanges())}setMaxPage(e){e=parseInt(e),this.max=e||1,this.page>this.max&&(this.page=this.max,this.trigger())}setPage(e){switch(e){case"first":return this.setPage(1);case"prev":return this.previousPage();case"next":return this.nextPage();case"last":return this.setPage(this.max)}return e=parseInt(e),e>0&&e<=this.max||this.mode!=="local"?(this.page=e,this.trackChanges(),this.trigger()):(console.warn("Pagination Error - Requested page is out of range of 1 - "+this.max+":",e),Promise.reject())}setPageToRow(e){var t=this.displayRows(-1),i=t.indexOf(e);if(i>-1){var a=this.size===!0?1:Math.ceil((i+1)/this.size);return this.setPage(a)}else return console.warn("Pagination Error - Requested row is not visible"),Promise.reject()}setPageSize(e){e!==!0&&(e=parseInt(e)),e>0&&(this.size=e,this.dispatchExternal("pageSizeChanged",e)),this.pageSizeSelect&&this.generatePageSizeSelectList(),this.trackChanges()}_setPageCounter(e,t,i){var a;if(this.pageCounter)switch(this.mode==="remote"&&(t=this.size,i=(this.page-1)*this.size+1,e=this.remoteRowCountEstimate),a=this.pageCounter.call(this,t,i,this.page,e,this.max),typeof a){case"object":if(a instanceof Node){for(;this.pageCounterElement.firstChild;)this.pageCounterElement.removeChild(this.pageCounterElement.firstChild);this.pageCounterElement.appendChild(a)}else this.pageCounterElement.innerHTML="",a!=null&&console.warn("Page Counter Error - Page Counter has returned a type of object, the only valid page counter object return is an instance of Node, the page counter returned:",a);break;case"undefined":this.pageCounterElement.innerHTML="";break;default:this.pageCounterElement.innerHTML=a}}_setPageButtons(){let e=Math.floor((this.count-1)/2),t=Math.ceil((this.count-1)/2),i=this.max-this.page+e+1<this.count?this.max-this.count+1:Math.max(this.page-e,1),a=this.page<=t?Math.min(this.count,this.max):Math.min(this.page+t,this.max);for(;this.pagesElement.firstChild;)this.pagesElement.removeChild(this.pagesElement.firstChild);this.page==1?(this.firstBut.disabled=!0,this.prevBut.disabled=!0):(this.firstBut.disabled=!1,this.prevBut.disabled=!1),this.page==this.max?(this.lastBut.disabled=!0,this.nextBut.disabled=!0):(this.lastBut.disabled=!1,this.nextBut.disabled=!1);for(let n=i;n<=a;n++)n>0&&n<=this.max&&this.pagesElement.appendChild(this._generatePageButton(n));this.footerRedraw()}_generatePageButton(e){var t=document.createElement("button");return t.classList.add("tabulator-page"),e==this.page&&t.classList.add("active"),t.setAttribute("type","button"),t.setAttribute("role","button"),this.langBind("pagination|page_title",i=>{t.setAttribute("aria-label",i+" "+e),t.setAttribute("title",i+" "+e)}),t.setAttribute("data-page",e),t.textContent=e,t.addEventListener("click",i=>{this.setPage(e)}),t}previousPage(){return this.page>1?(this.page--,this.trackChanges(),this.trigger()):(console.warn("Pagination Error - Previous page would be less than page 1:",0),Promise.reject())}nextPage(){return this.page<this.max?(this.page++,this.trackChanges(),this.trigger()):(this.progressiveLoad||console.warn("Pagination Error - Next page would be greater than maximum page of "+this.max+":",this.max+1),Promise.reject())}getPage(){return this.page}getPageMax(){return this.max}getPageSize(e){return this.size}getMode(){return this.mode}getRows(e){var t=0,i,a,n,r,l=e.filter(h=>h.type==="row");if(this.mode=="local"){i=[],this.setMaxRows(e.length),this.size===!0?(a=0,n=e.length):(a=this.size*(this.page-1),n=a+parseInt(this.size)),this._setPageButtons();for(let h=a;h<n;h++){let d=e[h];d&&(i.push(d),d.type==="row"&&(r||(r=d),t++))}return this._setPageCounter(l.length,t,r?l.indexOf(r)+1:0),i}else return this._setPageButtons(),this._setPageCounter(l.length),e.slice(0)}trigger(){var e;switch(this.mode){case"local":return e=this.table.rowManager.scrollLeft,this.refreshData(),this.table.rowManager.scrollHorizontal(e),this.dispatchExternal("pageLoaded",this.getPage()),Promise.resolve();case"remote":return this.dataChanging=!0,this.reloadData(null).finally(()=>{this.dataChanging=!1});case"progressive_load":case"progressive_scroll":return this.reloadData(null,!0);default:return console.warn("Pagination Error - no such pagination mode:",this.mode),Promise.reject()}}_parseRemoteData(e){var t,i;if(typeof e.last_page>"u"&&console.warn("Remote Pagination Error - Server response missing '"+(this.options("dataReceiveParams").last_page||"last_page")+"' property"),e.data)if(this.max=parseInt(e.last_page)||1,this.remoteRowCountEstimate=typeof e.last_row<"u"?e.last_row:e.last_page*this.size-(this.page==e.last_page?this.size-e.data.length:0),this.progressiveLoad){switch(this.mode){case"progressive_load":this.page==1?this.table.rowManager.setData(e.data,!1,this.page==1):this.table.rowManager.addRows(e.data),this.page<this.max&&setTimeout(()=>{this.nextPage()},this.table.options.progressiveLoadDelay);break;case"progressive_scroll":e=this.page===1?e.data:this.table.rowManager.getData().concat(e.data),this.table.rowManager.setData(e,this.page!==1,this.page==1),t=this.table.options.progressiveLoadScrollMargin||this.table.rowManager.element.clientHeight*2,this.table.rowManager.element.scrollHeight<=this.table.rowManager.element.clientHeight+t&&this.page<this.max&&setTimeout(()=>{this.nextPage()});break}return!1}else{if(this.page>this.max&&(console.warn("Remote Pagination Error - Server returned last page value lower than the current page"),i=this.options("paginationOutOfRange"),i))return this.setPage(typeof i=="function"?i.call(this,this.page,this.max):i);this.dispatchExternal("pageLoaded",this.getPage())}else console.warn("Remote Pagination Error - Server response missing '"+(this.options("dataReceiveParams").data||"data")+"' property");return e.data}footerRedraw(){var e=this.table.footerManager.containerElement;Math.ceil(e.clientWidth)-e.scrollWidth<0?this.pagesElement.style.display="none":(this.pagesElement.style.display="",Math.ceil(e.clientWidth)-e.scrollWidth<0&&(this.pagesElement.style.display="none"))}};E(En,"moduleName","page"),E(En,"pageCounters",wI);let E9=En;var vI={local:function(o,e){var t=localStorage.getItem(o+"-"+e);return t?JSON.parse(t):!1},cookie:function(o,e){var t=document.cookie,i=o+"-"+e,a=t.indexOf(i+"="),n,r;return a>-1&&(t=t.slice(a),n=t.indexOf(";"),n>-1&&(t=t.slice(0,n)),r=t.replace(i+"=","")),r?JSON.parse(r):!1}},MI={local:function(o,e,t){localStorage.setItem(o+"-"+e,JSON.stringify(t))},cookie:function(o,e,t){var i=new Date;i.setDate(i.getDate()+1e4),document.cookie=o+"-"+e+"="+JSON.stringify(t)+"; expires="+i.toUTCString()}};const de=class de extends q{constructor(e){super(e),this.mode="",this.id="",this.defWatcherBlock=!1,this.config={},this.readFunc=!1,this.writeFunc=!1,this.registerTableOption("persistence",!1),this.registerTableOption("persistenceID",""),this.registerTableOption("persistenceMode",!0),this.registerTableOption("persistenceReaderFunc",!1),this.registerTableOption("persistenceWriterFunc",!1)}localStorageTest(){var e="_tabulator_test";try{return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}initialize(){if(this.table.options.persistence){var e=this.table.options.persistenceMode,t=this.table.options.persistenceID,i;this.mode=e!==!0?e:this.localStorageTest()?"local":"cookie",this.table.options.persistenceReaderFunc?typeof this.table.options.persistenceReaderFunc=="function"?this.readFunc=this.table.options.persistenceReaderFunc:de.readers[this.table.options.persistenceReaderFunc]?this.readFunc=de.readers[this.table.options.persistenceReaderFunc]:console.warn("Persistence Read Error - invalid reader set",this.table.options.persistenceReaderFunc):de.readers[this.mode]?this.readFunc=de.readers[this.mode]:console.warn("Persistence Read Error - invalid reader set",this.mode),this.table.options.persistenceWriterFunc?typeof this.table.options.persistenceWriterFunc=="function"?this.writeFunc=this.table.options.persistenceWriterFunc:de.writers[this.table.options.persistenceWriterFunc]?this.writeFunc=de.writers[this.table.options.persistenceWriterFunc]:console.warn("Persistence Write Error - invalid reader set",this.table.options.persistenceWriterFunc):de.writers[this.mode]?this.writeFunc=de.writers[this.mode]:console.warn("Persistence Write Error - invalid writer set",this.mode),this.id="tabulator-"+(t||this.table.element.getAttribute("id")||""),this.config={sort:this.table.options.persistence===!0||this.table.options.persistence.sort,filter:this.table.options.persistence===!0||this.table.options.persistence.filter,headerFilter:this.table.options.persistence===!0||this.table.options.persistence.headerFilter,group:this.table.options.persistence===!0||this.table.options.persistence.group,page:this.table.options.persistence===!0||this.table.options.persistence.page,columns:this.table.options.persistence===!0?["title","width","visible"]:this.table.options.persistence.columns},this.config.page&&(i=this.retrieveData("page"),i&&(typeof i.paginationSize<"u"&&(this.config.page===!0||this.config.page.size)&&(this.table.options.paginationSize=i.paginationSize),typeof i.paginationInitialPage<"u"&&(this.config.page===!0||this.config.page.page)&&(this.table.options.paginationInitialPage=i.paginationInitialPage))),this.config.group&&(i=this.retrieveData("group"),i&&(typeof i.groupBy<"u"&&(this.config.group===!0||this.config.group.groupBy)&&(this.table.options.groupBy=i.groupBy),typeof i.groupStartOpen<"u"&&(this.config.group===!0||this.config.group.groupStartOpen)&&(this.table.options.groupStartOpen=i.groupStartOpen),typeof i.groupHeader<"u"&&(this.config.group===!0||this.config.group.groupHeader)&&(this.table.options.groupHeader=i.groupHeader))),this.config.columns&&(this.table.options.columns=this.load("columns",this.table.options.columns),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-show",this.save.bind(this,"columns")),this.subscribe("column-hide",this.save.bind(this,"columns")),this.subscribe("column-moved",this.save.bind(this,"columns"))),this.subscribe("table-built",this.tableBuilt.bind(this),0),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("filter-changed",this.eventSave.bind(this,"filter")),this.subscribe("filter-changed",this.eventSave.bind(this,"headerFilter")),this.subscribe("sort-changed",this.eventSave.bind(this,"sort")),this.subscribe("group-changed",this.eventSave.bind(this,"group")),this.subscribe("page-changed",this.eventSave.bind(this,"page")),this.subscribe("column-resized",this.eventSave.bind(this,"columns")),this.subscribe("column-width",this.eventSave.bind(this,"columns")),this.subscribe("layout-refreshed",this.eventSave.bind(this,"columns"))}this.registerTableFunction("getColumnLayout",this.getColumnLayout.bind(this)),this.registerTableFunction("setColumnLayout",this.setColumnLayout.bind(this))}eventSave(e){this.config[e]&&this.save(e)}tableBuilt(){var e,t,i;this.config.sort&&(e=this.load("sort"),e&&(this.table.options.initialSort=e)),this.config.filter&&(t=this.load("filter"),t&&(this.table.options.initialFilter=t)),this.config.headerFilter&&(i=this.load("headerFilter"),i&&(this.table.options.initialHeaderFilter=i))}tableRedraw(e){e&&this.config.columns&&this.save("columns")}getColumnLayout(){return this.parseColumns(this.table.columnManager.getColumns())}setColumnLayout(e){return this.table.columnManager.setColumns(this.mergeDefinition(this.table.options.columns,e,!0)),!0}initializeColumn(e){var t,i;this.config.columns&&(this.defWatcherBlock=!0,t=e.getDefinition(),i=this.config.columns===!0?Object.keys(t):this.config.columns,i.forEach(a=>{var n=Object.getOwnPropertyDescriptor(t,a),r=t[a];n&&Object.defineProperty(t,a,{set:l=>{r=l,this.defWatcherBlock||this.save("columns"),n.set&&n.set(l)},get:()=>(n.get&&n.get(),r)})}),this.defWatcherBlock=!1)}load(e,t){var i=this.retrieveData(e);return t&&(i=i?this.mergeDefinition(t,i):t),i}retrieveData(e){return this.readFunc?this.readFunc(this.id,e):!1}mergeDefinition(e,t,i){var a=[];return t=t||[],t.forEach((n,r)=>{var l=this._findColumn(e,n),h;l&&(i?h=Object.keys(n):this.config.columns===!0||this.config.columns==null?(h=Object.keys(l),h.push("width")):h=this.config.columns,h.forEach(d=>{d!=="columns"&&typeof n[d]<"u"&&(l[d]=n[d])}),l.columns&&(l.columns=this.mergeDefinition(l.columns,n.columns)),a.push(l))}),e.forEach((n,r)=>{var l=this._findColumn(t,n);l||(a.length>r?a.splice(r,0,n):a.push(n))}),a}_findColumn(e,t){var i=t.columns?"group":t.field?"field":"object";return e.find(function(a){switch(i){case"group":return a.title===t.title&&a.columns.length===t.columns.length;case"field":return a.field===t.field;case"object":return a===t}})}save(e){var t={};switch(e){case"columns":t=this.parseColumns(this.table.columnManager.getColumns());break;case"filter":t=this.table.modules.filter.getFilters();break;case"headerFilter":t=this.table.modules.filter.getHeaderFilters();break;case"sort":t=this.validateSorters(this.table.modules.sort.getSort());break;case"group":t=this.getGroupConfig();break;case"page":t=this.getPageConfig();break}this.writeFunc&&this.writeFunc(this.id,e,t)}validateSorters(e){return e.forEach(function(t){t.column=t.field,delete t.field}),e}getGroupConfig(){var e={};return this.config.group&&((this.config.group===!0||this.config.group.groupBy)&&(e.groupBy=this.table.options.groupBy),(this.config.group===!0||this.config.group.groupStartOpen)&&(e.groupStartOpen=this.table.options.groupStartOpen),(this.config.group===!0||this.config.group.groupHeader)&&(e.groupHeader=this.table.options.groupHeader)),e}getPageConfig(){var e={};return this.config.page&&((this.config.page===!0||this.config.page.size)&&(e.paginationSize=this.table.modules.page.getPageSize()),(this.config.page===!0||this.config.page.page)&&(e.paginationInitialPage=this.table.modules.page.getPage())),e}parseColumns(e){var t=[],i=["headerContextMenu","headerMenu","contextMenu","clickMenu"];return e.forEach(a=>{var n={},r=a.getDefinition(),l;a.isGroup?(n.title=r.title,n.columns=this.parseColumns(a.getColumns())):(n.field=a.getField(),this.config.columns===!0||this.config.columns==null?(l=Object.keys(r),l.push("width"),l.push("visible")):l=this.config.columns,l.forEach(h=>{switch(h){case"width":n.width=a.getWidth();break;case"visible":n.visible=a.visible;break;default:typeof r[h]!="function"&&i.indexOf(h)===-1&&(n[h]=r[h])}})),t.push(n)}),t}};E(de,"moduleName","persistence"),E(de,"moduleInitOrder",-10),E(de,"readers",vI),E(de,"writers",MI);let S9=de,CI=(PC=class extends q{constructor(e){super(e),this.columnSubscribers={},this.registerTableOption("rowContextPopup",!1),this.registerTableOption("rowClickPopup",!1),this.registerTableOption("rowDblClickPopup",!1),this.registerTableOption("groupContextPopup",!1),this.registerTableOption("groupClickPopup",!1),this.registerTableOption("groupDblClickPopup",!1),this.registerColumnOption("headerContextPopup"),this.registerColumnOption("headerClickPopup"),this.registerColumnOption("headerDblClickPopup"),this.registerColumnOption("headerPopup"),this.registerColumnOption("headerPopupIcon"),this.registerColumnOption("contextPopup"),this.registerColumnOption("clickPopup"),this.registerColumnOption("dblClickPopup"),this.registerComponentFunction("cell","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("column","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("row","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("group","popup",this._componentPopupCall.bind(this))}initialize(){this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column-init",this.initializeColumn.bind(this))}_componentPopupCall(e,t,i){this.loadPopupEvent(t,null,e,i)}initializeRowWatchers(){this.table.options.rowContextPopup&&(this.subscribe("row-contextmenu",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup)),this.table.on("rowTapHold",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup))),this.table.options.rowClickPopup&&this.subscribe("row-click",this.loadPopupEvent.bind(this,this.table.options.rowClickPopup)),this.table.options.rowDblClickPopup&&this.subscribe("row-dblclick",this.loadPopupEvent.bind(this,this.table.options.rowDblClickPopup))}initializeGroupWatchers(){this.table.options.groupContextPopup&&(this.subscribe("group-contextmenu",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup)),this.table.on("groupTapHold",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup))),this.table.options.groupClickPopup&&this.subscribe("group-click",this.loadPopupEvent.bind(this,this.table.options.groupClickPopup)),this.table.options.groupDblClickPopup&&this.subscribe("group-dblclick",this.loadPopupEvent.bind(this,this.table.options.groupDblClickPopup))}initializeColumn(e){var t=e.definition;t.headerContextPopup&&!this.columnSubscribers.headerContextPopup&&(this.columnSubscribers.headerContextPopup=this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"),this.subscribe("column-contextmenu",this.columnSubscribers.headerContextPopup),this.table.on("headerTapHold",this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"))),t.headerClickPopup&&!this.columnSubscribers.headerClickPopup&&(this.columnSubscribers.headerClickPopup=this.loadPopupTableColumnEvent.bind(this,"headerClickPopup"),this.subscribe("column-click",this.columnSubscribers.headerClickPopup)),t.headerDblClickPopup&&!this.columnSubscribers.headerDblClickPopup&&(this.columnSubscribers.headerDblClickPopup=this.loadPopupTableColumnEvent.bind(this,"headerDblClickPopup"),this.subscribe("column-dblclick",this.columnSubscribers.headerDblClickPopup)),t.headerPopup&&this.initializeColumnHeaderPopup(e),t.contextPopup&&!this.columnSubscribers.contextPopup&&(this.columnSubscribers.contextPopup=this.loadPopupTableCellEvent.bind(this,"contextPopup"),this.subscribe("cell-contextmenu",this.columnSubscribers.contextPopup),this.table.on("cellTapHold",this.loadPopupTableCellEvent.bind(this,"contextPopup"))),t.clickPopup&&!this.columnSubscribers.clickPopup&&(this.columnSubscribers.clickPopup=this.loadPopupTableCellEvent.bind(this,"clickPopup"),this.subscribe("cell-click",this.columnSubscribers.clickPopup)),t.dblClickPopup&&!this.columnSubscribers.dblClickPopup&&(this.columnSubscribers.dblClickPopup=this.loadPopupTableCellEvent.bind(this,"dblClickPopup"),this.subscribe("cell-click",this.columnSubscribers.dblClickPopup))}initializeColumnHeaderPopup(e){var t=e.definition.headerPopupIcon,i;i=document.createElement("span"),i.classList.add("tabulator-header-popup-button"),t?(typeof t=="function"&&(t=t(e.getComponent())),t instanceof HTMLElement?i.appendChild(t):i.innerHTML=t):i.innerHTML="&vellip;",i.addEventListener("click",a=>{a.stopPropagation(),a.preventDefault(),this.loadPopupEvent(e.definition.headerPopup,a,e)}),e.titleElement.insertBefore(i,e.titleElement.firstChild)}loadPopupTableCellEvent(e,t,i){i._cell&&(i=i._cell),i.column.definition[e]&&this.loadPopupEvent(i.column.definition[e],t,i)}loadPopupTableColumnEvent(e,t,i){i._column&&(i=i._column),i.definition[e]&&this.loadPopupEvent(i.definition[e],t,i)}loadPopupEvent(e,t,i,a){var n;function r(l){n=l}i._group?i=i._group:i._row&&(i=i._row),e=typeof e=="function"?e.call(this.table,t,i.getComponent(),r):e,this.loadPopup(t,i,e,n,a)}loadPopup(e,t,i,a,n){var r=!(e instanceof MouseEvent),l,h;i instanceof HTMLElement?l=i:(l=document.createElement("div"),l.innerHTML=i),l.classList.add("tabulator-popup"),l.addEventListener("click",d=>{d.stopPropagation()}),r||e.preventDefault(),h=this.popup(l),typeof a=="function"&&h.renderCallback(a),e?h.show(e):h.show(t.getElement(),n||"center"),h.hideOnBlur(()=>{this.dispatchExternal("popupClosed",t.getComponent())}),this.dispatchExternal("popupOpened",t.getComponent())}},E(PC,"moduleName","popup"),PC);class XC extends q{constructor(e){super(e),this.element=!1,this.manualBlock=!1,this.beforeprintEventHandler=null,this.afterprintEventHandler=null,this.registerTableOption("printAsHtml",!1),this.registerTableOption("printFormatter",!1),this.registerTableOption("printHeader",!1),this.registerTableOption("printFooter",!1),this.registerTableOption("printStyled",!0),this.registerTableOption("printRowRange","visible"),this.registerTableOption("printConfig",{}),this.registerColumnOption("print"),this.registerColumnOption("titlePrint")}initialize(){this.table.options.printAsHtml&&(this.beforeprintEventHandler=this.replaceTable.bind(this),this.afterprintEventHandler=this.cleanup.bind(this),window.addEventListener("beforeprint",this.beforeprintEventHandler),window.addEventListener("afterprint",this.afterprintEventHandler),this.subscribe("table-destroy",this.destroy.bind(this))),this.registerTableFunction("print",this.printFullscreen.bind(this))}destroy(){this.table.options.printAsHtml&&(window.removeEventListener("beforeprint",this.beforeprintEventHandler),window.removeEventListener("afterprint",this.afterprintEventHandler))}replaceTable(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.export.generateTable(this.table.options.printConfig,this.table.options.printStyled,this.table.options.printRowRange,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))}cleanup(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")}printFullscreen(e,t,i){var a=window.scrollX,n=window.scrollY,r=document.createElement("div"),l=document.createElement("div"),h=this.table.modules.export.generateTable(typeof i<"u"?i:this.table.options.printConfig,typeof t<"u"?t:this.table.options.printStyled,e||this.table.options.printRowRange,"print"),d,u;this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(r.classList.add("tabulator-print-header"),d=typeof this.table.options.printHeader=="function"?this.table.options.printHeader.call(this.table):this.table.options.printHeader,typeof d=="string"?r.innerHTML=d:r.appendChild(d),this.element.appendChild(r)),this.element.appendChild(h),this.table.options.printFooter&&(l.classList.add("tabulator-print-footer"),u=typeof this.table.options.printFooter=="function"?this.table.options.printFooter.call(this.table):this.table.options.printFooter,typeof u=="string"?l.innerHTML=u:l.appendChild(u),this.element.appendChild(l)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,h),window.print(),this.cleanup(),window.scrollTo(a,n),this.manualBlock=!1}}E(XC,"moduleName","print");class KC extends q{constructor(e){super(e),this.data=!1,this.blocked=!1,this.origFuncs={},this.currentVersion=0,this.registerTableOption("reactiveData",!1)}initialize(){this.table.options.reactiveData&&(this.subscribe("cell-value-save-before",this.block.bind(this,"cellsave")),this.subscribe("cell-value-save-after",this.unblock.bind(this,"cellsave")),this.subscribe("row-data-save-before",this.block.bind(this,"rowsave")),this.subscribe("row-data-save-after",this.unblock.bind(this,"rowsave")),this.subscribe("row-data-init-after",this.watchRow.bind(this)),this.subscribe("data-processing",this.watchData.bind(this)),this.subscribe("table-destroy",this.unwatchData.bind(this)))}watchData(e){var t=this,i;this.currentVersion++,i=this.currentVersion,this.unwatchData(),this.data=e,this.origFuncs.push=e.push,Object.defineProperty(this.data,"push",{enumerable:!1,configurable:!0,value:function(){var a=Array.from(arguments),n;return!t.blocked&&i===t.currentVersion&&(t.block("data-push"),a.forEach(r=>{t.table.rowManager.addRowActual(r,!1)}),n=t.origFuncs.push.apply(e,arguments),t.unblock("data-push")),n}}),this.origFuncs.unshift=e.unshift,Object.defineProperty(this.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var a=Array.from(arguments),n;return!t.blocked&&i===t.currentVersion&&(t.block("data-unshift"),a.forEach(r=>{t.table.rowManager.addRowActual(r,!0)}),n=t.origFuncs.unshift.apply(e,arguments),t.unblock("data-unshift")),n}}),this.origFuncs.shift=e.shift,Object.defineProperty(this.data,"shift",{enumerable:!1,configurable:!0,value:function(){var a,n;return!t.blocked&&i===t.currentVersion&&(t.block("data-shift"),t.data.length&&(a=t.table.rowManager.getRowFromDataObject(t.data[0]),a&&a.deleteActual()),n=t.origFuncs.shift.call(e),t.unblock("data-shift")),n}}),this.origFuncs.pop=e.pop,Object.defineProperty(this.data,"pop",{enumerable:!1,configurable:!0,value:function(){var a,n;return!t.blocked&&i===t.currentVersion&&(t.block("data-pop"),t.data.length&&(a=t.table.rowManager.getRowFromDataObject(t.data[t.data.length-1]),a&&a.deleteActual()),n=t.origFuncs.pop.call(e),t.unblock("data-pop")),n}}),this.origFuncs.splice=e.splice,Object.defineProperty(this.data,"splice",{enumerable:!1,configurable:!0,value:function(){var a=Array.from(arguments),n=a[0]<0?e.length+a[0]:a[0],r=a[1],l=a[2]?a.slice(2):!1,h,d;if(!t.blocked&&i===t.currentVersion){if(t.block("data-splice"),l&&(h=e[n]?t.table.rowManager.getRowFromDataObject(e[n]):!1,h?l.forEach(p=>{t.table.rowManager.addRowActual(p,!0,h,!0)}):(l=l.slice().reverse(),l.forEach(p=>{t.table.rowManager.addRowActual(p,!0,!1,!0)}))),r!==0){var u=e.slice(n,typeof a[1]>"u"?a[1]:n+r);u.forEach((p,y)=>{var f=t.table.rowManager.getRowFromDataObject(p);f&&f.deleteActual(y!==u.length-1)})}(l||r!==0)&&t.table.rowManager.reRenderInPosition(),d=t.origFuncs.splice.apply(e,arguments),t.unblock("data-splice")}return d}})}unwatchData(){if(this.data!==!1)for(var e in this.origFuncs)Object.defineProperty(this.data,e,{enumerable:!0,configurable:!0,writable:!0,value:this.origFuncs.key})}watchRow(e){var t=e.getData();for(var i in t)this.watchKey(e,t,i);this.table.options.dataTree&&this.watchTreeChildren(e)}watchTreeChildren(e){var t=this,i=e.getData()[this.table.options.dataTreeChildField],a={};i&&(a.push=i.push,Object.defineProperty(i,"push",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-push");var n=a.push.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-push")}return n}}),a.unshift=i.unshift,Object.defineProperty(i,"unshift",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-unshift");var n=a.unshift.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-unshift")}return n}}),a.shift=i.shift,Object.defineProperty(i,"shift",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-shift");var n=a.shift.call(i);this.rebuildTree(e),t.unblock("tree-shift")}return n}}),a.pop=i.pop,Object.defineProperty(i,"pop",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-pop");var n=a.pop.call(i);this.rebuildTree(e),t.unblock("tree-pop")}return n}}),a.splice=i.splice,Object.defineProperty(i,"splice",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-splice");var n=a.splice.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-splice")}return n}}))}rebuildTree(e){this.table.modules.dataTree.initializeRow(e),this.table.modules.dataTree.layoutRow(e),this.table.rowManager.refreshActiveData("tree",!1,!0)}watchKey(e,t,i){var a=this,n=Object.getOwnPropertyDescriptor(t,i),r=t[i],l=this.currentVersion;Object.defineProperty(t,i,{set:h=>{if(r=h,!a.blocked&&l===a.currentVersion){a.block("key");var d={};d[i]=h,e.updateData(d),a.unblock("key")}n.set&&n.set(h)},get:()=>(n.get&&n.get(),r)})}unwatchRow(e){var t=e.getData();for(var i in t)Object.defineProperty(t,i,{value:t[i]})}block(e){this.blocked||(this.blocked=e)}unblock(e){this.blocked===e&&(this.blocked=!1)}}E(KC,"moduleName","reactiveData");class JC extends q{constructor(e){super(e),this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.latestX=!1,this.handle=null,this.initialNextColumn=null,this.nextColumn=null,this.initialized=!1,this.registerColumnOption("resizable",!0),this.registerTableOption("resizableColumnFit",!1),this.registerTableOption("resizableColumnGuide",!1)}initialize(){this.subscribe("column-rendered",this.layoutColumnHeader.bind(this))}initializeEventWatchers(){this.initialized||(this.subscribe("cell-rendered",this.layoutCellHandles.bind(this)),this.subscribe("cell-delete",this.deInitializeComponent.bind(this)),this.subscribe("cell-height",this.resizeHandle.bind(this)),this.subscribe("column-moved",this.columnLayoutUpdated.bind(this)),this.subscribe("column-hide",this.deInitializeColumn.bind(this)),this.subscribe("column-show",this.columnLayoutUpdated.bind(this)),this.subscribe("column-width",this.columnWidthUpdated.bind(this)),this.subscribe("column-delete",this.deInitializeComponent.bind(this)),this.subscribe("column-height",this.resizeHandle.bind(this)),this.initialized=!0)}layoutCellHandles(e){e.row.type==="row"&&(this.deInitializeComponent(e),this.initializeColumn("cell",e,e.column,e.element))}layoutColumnHeader(e){e.definition.resizable&&(this.initializeEventWatchers(),this.deInitializeComponent(e),this.initializeColumn("header",e,e,e.element))}columnLayoutUpdated(e){var t=e.prevColumn();this.reinitializeColumn(e),t&&this.reinitializeColumn(t)}columnWidthUpdated(e){e.modules.frozen&&(this.table.modules.frozenColumns.leftColumns.includes(e)?this.table.modules.frozenColumns.leftColumns.forEach(t=>{this.reinitializeColumn(t)}):this.table.modules.frozenColumns.rightColumns.includes(e)&&this.table.modules.frozenColumns.rightColumns.forEach(t=>{this.reinitializeColumn(t)}))}frozenColumnOffset(e){var t=!1;return e.modules.frozen&&(t=e.modules.frozen.marginValue,e.modules.frozen.position==="left"?t+=e.getWidth()-3:t&&(t-=3)),t!==!1?t+"px":!1}reinitializeColumn(e){var t=this.frozenColumnOffset(e);e.cells.forEach(i=>{i.modules.resize&&i.modules.resize.handleEl&&(t&&(i.modules.resize.handleEl.style[e.modules.frozen.position]=t,i.modules.resize.handleEl.style["z-index"]=11),i.element.after(i.modules.resize.handleEl))}),e.modules.resize&&e.modules.resize.handleEl&&(t&&(e.modules.resize.handleEl.style[e.modules.frozen.position]=t),e.element.after(e.modules.resize.handleEl))}initializeColumn(e,t,i,a){var n=this,r=!1,l=i.definition.resizable,h={},d=i.getLastColumn();if(e==="header"&&(r=i.definition.formatter=="textarea"||i.definition.variableHeight,h={variableHeight:r}),(l===!0||l==e)&&this._checkResizability(d)){var u=document.createElement("span");u.className="tabulator-col-resize-handle",u.addEventListener("click",function(y){y.stopPropagation()});var p=function(y){n.startColumn=i,n.initialNextColumn=n.nextColumn=d.nextColumn(),n._mouseDown(y,d,u)};u.addEventListener("mousedown",p),u.addEventListener("touchstart",p,{passive:!0}),u.addEventListener("dblclick",y=>{var f=d.getWidth();y.stopPropagation(),d.reinitializeWidth(!0),f!==d.getWidth()&&(n.dispatch("column-resized",d),n.dispatchExternal("columnResized",d.getComponent()))}),i.modules.frozen&&(u.style.position="sticky",u.style[i.modules.frozen.position]=this.frozenColumnOffset(i)),h.handleEl=u,a.parentNode&&i.visible&&a.after(u)}t.modules.resize=h}deInitializeColumn(e){this.deInitializeComponent(e),e.cells.forEach(t=>{this.deInitializeComponent(t)})}deInitializeComponent(e){var t;e.modules.resize&&(t=e.modules.resize.handleEl,t&&t.parentElement&&t.parentElement.removeChild(t))}resizeHandle(e,t){e.modules.resize&&e.modules.resize.handleEl&&(e.modules.resize.handleEl.style.height=t)}resize(e,t){var i=typeof e.clientX>"u"?e.touches[0].clientX:e.clientX,a=i-this.startX,n=i-this.latestX,r,l;if(this.latestX=i,this.table.rtl&&(a=-a,n=-n),r=t.width==t.minWidth||t.width==t.maxWidth,t.setWidth(this.startWidth+a),l=t.width==t.minWidth||t.width==t.maxWidth,n<0&&(this.nextColumn=this.initialNextColumn),this.table.options.resizableColumnFit&&this.nextColumn&&!(r&&l)){let h=this.nextColumn.getWidth();n>0&&h<=this.nextColumn.minWidth&&(this.nextColumn=this.nextColumn.nextColumn()),this.nextColumn&&this.nextColumn.setWidth(this.nextColumn.getWidth()-n)}this.table.columnManager.rerenderColumns(!0),!this.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights()}calcGuidePosition(e,t,i){var a=typeof e.clientX>"u"?e.touches[0].clientX:e.clientX,n=i.getBoundingClientRect().x-this.table.element.getBoundingClientRect().x,r=this.table.element.getBoundingClientRect().x,l=t.element.getBoundingClientRect().left-r,h=a-this.startX,d=Math.max(n+h,l+t.minWidth);return t.maxWidth&&(d=Math.min(d,l+t.maxWidth)),d}_checkResizability(e){return e.definition.resizable}_mouseDown(e,t,i){var a=this,n;this.dispatchExternal("columnResizing",t.getComponent()),a.table.options.resizableColumnGuide&&(n=document.createElement("span"),n.classList.add("tabulator-col-resize-guide"),a.table.element.appendChild(n),setTimeout(()=>{n.style.left=a.calcGuidePosition(e,t,i)+"px"})),a.table.element.classList.add("tabulator-block-select");function r(h){a.table.options.resizableColumnGuide?n.style.left=a.calcGuidePosition(h,t,i)+"px":a.resize(h,t)}function l(h){a.table.options.resizableColumnGuide&&(a.resize(h,t),n.remove()),a.startColumn.modules.edit&&(a.startColumn.modules.edit.blocked=!1),a.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights(),document.body.removeEventListener("mouseup",l),document.body.removeEventListener("mousemove",r),i.removeEventListener("touchmove",r),i.removeEventListener("touchend",l),a.table.element.classList.remove("tabulator-block-select"),a.startWidth!==t.getWidth()&&(a.table.columnManager.verticalAlignHeaders(),a.dispatch("column-resized",t),a.dispatchExternal("columnResized",t.getComponent()))}e.stopPropagation(),a.startColumn.modules.edit&&(a.startColumn.modules.edit.blocked=!0),a.startX=typeof e.clientX>"u"?e.touches[0].clientX:e.clientX,a.latestX=a.startX,a.startWidth=t.getWidth(),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",l),i.addEventListener("touchmove",r,{passive:!0}),i.addEventListener("touchend",l)}}E(JC,"moduleName","resizeColumns");class QC extends q{constructor(e){super(e),this.startColumn=!1,this.startY=!1,this.startHeight=!1,this.handle=null,this.prevHandle=null,this.registerTableOption("resizableRows",!1),this.registerTableOption("resizableRowGuide",!1)}initialize(){this.table.options.resizableRows&&this.subscribe("row-layout-after",this.initializeRow.bind(this))}initializeRow(e){var t=this,i=e.getElement(),a=document.createElement("div");a.className="tabulator-row-resize-handle";var n=document.createElement("div");n.className="tabulator-row-resize-handle prev",a.addEventListener("click",function(h){h.stopPropagation()});var r=function(h){t.startRow=e,t._mouseDown(h,e,a)};a.addEventListener("mousedown",r),a.addEventListener("touchstart",r,{passive:!0}),n.addEventListener("click",function(h){h.stopPropagation()});var l=function(h){var d=t.table.rowManager.prevDisplayRow(e);d&&(t.startRow=d,t._mouseDown(h,d,n))};n.addEventListener("mousedown",l),n.addEventListener("touchstart",l,{passive:!0}),i.appendChild(a),i.appendChild(n)}resize(e,t){t.setHeight(this.startHeight+((typeof e.screenY>"u"?e.touches[0].screenY:e.screenY)-this.startY))}calcGuidePosition(e,t,i){var a=typeof e.screenY>"u"?e.touches[0].screenY:e.screenY,n=i.getBoundingClientRect().y-this.table.element.getBoundingClientRect().y,r=this.table.element.getBoundingClientRect().y,l=t.element.getBoundingClientRect().top-r,h=a-this.startY;return Math.max(n+h,l)}_mouseDown(e,t,i){var a=this,n;a.dispatchExternal("rowResizing",t.getComponent()),a.table.options.resizableRowGuide&&(n=document.createElement("span"),n.classList.add("tabulator-row-resize-guide"),a.table.element.appendChild(n),setTimeout(()=>{n.style.top=a.calcGuidePosition(e,t,i)+"px"})),a.table.element.classList.add("tabulator-block-select");function r(h){a.table.options.resizableRowGuide?n.style.top=a.calcGuidePosition(h,t,i)+"px":a.resize(h,t)}function l(h){a.table.options.resizableRowGuide&&(a.resize(h,t),n.remove()),document.body.removeEventListener("mouseup",r),document.body.removeEventListener("mousemove",r),i.removeEventListener("touchmove",r),i.removeEventListener("touchend",l),a.table.element.classList.remove("tabulator-block-select"),a.dispatchExternal("rowResized",t.getComponent())}e.stopPropagation(),a.startY=typeof e.screenY>"u"?e.touches[0].screenY:e.screenY,a.startHeight=t.getHeight(),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",l),i.addEventListener("touchmove",r,{passive:!0}),i.addEventListener("touchend",l)}}E(QC,"moduleName","resizeRows");class ex extends q{constructor(e){super(e),this.binding=!1,this.visibilityObserver=!1,this.resizeObserver=!1,this.containerObserver=!1,this.tableHeight=0,this.tableWidth=0,this.containerHeight=0,this.containerWidth=0,this.autoResize=!1,this.visible=!1,this.initialized=!1,this.initialRedraw=!1,this.registerTableOption("autoResize",!0)}initialize(){if(this.table.options.autoResize){var e=this.table,t;this.tableHeight=e.element.clientHeight,this.tableWidth=e.element.clientWidth,e.element.parentNode&&(this.containerHeight=e.element.parentNode.clientHeight,this.containerWidth=e.element.parentNode.clientWidth),typeof IntersectionObserver<"u"&&typeof ResizeObserver<"u"&&e.rowManager.getRenderMode()==="virtual"?(this.initializeVisibilityObserver(),this.autoResize=!0,this.resizeObserver=new ResizeObserver(i=>{if(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell)){var a=Math.floor(i[0].contentRect.height),n=Math.floor(i[0].contentRect.width);(this.tableHeight!=a||this.tableWidth!=n)&&(this.tableHeight=a,this.tableWidth=n,e.element.parentNode&&(this.containerHeight=e.element.parentNode.clientHeight,this.containerWidth=e.element.parentNode.clientWidth),this.redrawTable())}}),this.resizeObserver.observe(e.element),t=window.getComputedStyle(e.element),this.table.element.parentNode&&!this.table.rowManager.fixedHeight&&(t.getPropertyValue("max-height")||t.getPropertyValue("min-height"))&&(this.containerObserver=new ResizeObserver(i=>{if(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell)){var a=Math.floor(i[0].contentRect.height),n=Math.floor(i[0].contentRect.width);(this.containerHeight!=a||this.containerWidth!=n)&&(this.containerHeight=a,this.containerWidth=n,this.tableHeight=e.element.clientHeight,this.tableWidth=e.element.clientWidth),this.redrawTable()}}),this.containerObserver.observe(this.table.element.parentNode)),this.subscribe("table-resize",this.tableResized.bind(this))):(this.binding=function(){(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell))&&(e.columnManager.rerenderColumns(!0),e.redraw())},window.addEventListener("resize",this.binding)),this.subscribe("table-destroy",this.clearBindings.bind(this))}}initializeVisibilityObserver(){this.visibilityObserver=new IntersectionObserver(e=>{this.visible=e[0].isIntersecting,this.initialized?this.visible&&(this.redrawTable(this.initialRedraw),this.initialRedraw=!1):(this.initialized=!0,this.initialRedraw=!this.visible)}),this.visibilityObserver.observe(this.table.element)}redrawTable(e){this.initialized&&this.visible&&(this.table.columnManager.rerenderColumns(!0),this.table.redraw(e))}tableResized(){this.table.rowManager.redraw()}clearBindings(){this.binding&&window.removeEventListener("resize",this.binding),this.resizeObserver&&this.resizeObserver.unobserve(this.table.element),this.visibilityObserver&&this.visibilityObserver.unobserve(this.table.element),this.containerObserver&&this.containerObserver.unobserve(this.table.element.parentNode)}}E(ex,"moduleName","resizeTable");function xI(o,e,t){var i=document.createElement("div"),a=o.getRow()._row.modules.responsiveLayout;i.classList.add("tabulator-responsive-collapse-toggle"),i.innerHTML=`<svg class='tabulator-responsive-collapse-toggle-open' viewbox="0 0 24 24">
9
+ `)&&!a){i=0,t++;continue}e[t][i]+=r}return e}function rI(o){try{return JSON.parse(o)}catch(e){return console.warn("JSON Import Error - File contents is invalid JSON",e),Promise.reject()}}function lI(o){return o}function hI(o){var e=this.dependencyRegistry.lookup("XLSX"),t=e.read(o),i=t.Sheets[t.SheetNames[0]];return e.utils.sheet_to_json(i,{header:1})}var cI={csv:sI,json:rI,array:lI,xlsx:hI};let dI=(Qe=class extends q{constructor(e){super(e),this.registerTableOption("importFormat"),this.registerTableOption("importReader","text"),this.registerTableOption("importHeaderTransform"),this.registerTableOption("importValueTransform"),this.registerTableOption("importDataValidator"),this.registerTableOption("importFileValidator")}initialize(){this.registerTableFunction("import",this.importFromFile.bind(this)),this.table.options.importFormat&&(this.subscribe("data-loading",this.loadDataCheck.bind(this),10),this.subscribe("data-load",this.loadData.bind(this),10))}loadDataCheck(e){return this.table.options.importFormat&&(typeof e=="string"||Array.isArray(e)&&e.length&&Array.isArray(e))}loadData(e,t,i,a,n){return this.importData(this.lookupImporter(),e).then(this.structureData.bind(this)).catch(r=>(console.error("Import Error:",r||"Unable to import data"),Promise.reject(r)))}lookupImporter(e){var t;return e||(e=this.table.options.importFormat),typeof e=="string"?t=Qe.importers[e]:t=e,t||console.error("Import Error - Importer not found:",e),t}importFromFile(e,t,i){var a=this.lookupImporter(e);if(a)return this.pickFile(t,i).then(this.importData.bind(this,a)).then(this.structureData.bind(this)).then(this.mutateData.bind(this)).then(this.validateData.bind(this)).then(this.setData.bind(this)).catch(n=>(this.dispatch("import-error",n),this.dispatchExternal("importError",n),console.error("Import Error:",n||"Unable to import file"),this.table.dataLoader.alertError(),setTimeout(()=>{this.table.dataLoader.clearAlert()},3e3),Promise.reject(n)))}pickFile(e,t){return new Promise((i,a)=>{var n=document.createElement("input");n.type="file",n.accept=e,n.addEventListener("change",r=>{var l=n.files[0],h=new FileReader,d=this.validateFile(l);if(d===!0){switch(this.dispatch("import-importing",n.files),this.dispatchExternal("importImporting",n.files),t||this.table.options.importReader){case"buffer":h.readAsArrayBuffer(l);break;case"binary":h.readAsBinaryString(l);break;case"url":h.readAsDataURL(l);break;case"text":default:h.readAsText(l)}h.onload=u=>{i(h.result)},h.onerror=u=>{console.warn("File Load Error - Unable to read file"),a(u)}}else a(d)}),this.dispatch("import-choose"),this.dispatchExternal("importChoose"),n.click()})}importData(e,t){var i;return this.table.dataLoader.alertLoader(),new Promise((a,n)=>{setTimeout(()=>{i=e.call(this.table,t),i instanceof Promise||i?a(i):n()},10)})}structureData(e){var t=[];return Array.isArray(e)&&e.length&&Array.isArray(e[0])?(this.table.options.autoColumns?t=this.structureArrayToObject(e):t=this.structureArrayToColumns(e),t):e}mutateData(e){var t=[];return Array.isArray(e)?e.forEach(i=>{t.push(this.table.modules.mutator.transformRow(i,"import"))}):t=e,t}transformHeader(e){var t=[];if(this.table.options.importHeaderTransform)e.forEach(i=>{t.push(this.table.options.importHeaderTransform.call(this.table,i,e))});else return e;return t}transformData(e){var t=[];if(this.table.options.importValueTransform)e.forEach(i=>{t.push(this.table.options.importValueTransform.call(this.table,i,e))});else return e;return t}structureArrayToObject(e){var t=this.transformHeader(e.shift()),i=e.map(a=>{var n={};return a=this.transformData(a),t.forEach((r,l)=>{n[r]=a[l]}),n});return i}structureArrayToColumns(e){var t=[],i=this.transformHeader(e[0]),a=this.table.getColumns();return a[0]&&i[0]&&a[0].getDefinition().title===i[0]&&e.shift(),e.forEach(n=>{var r={};n=this.transformData(n),n.forEach((l,h)=>{var d=a[h];d&&(r[d.getField()]=l)}),t.push(r)}),t}validateFile(e){return this.table.options.importFileValidator?this.table.options.importFileValidator.call(this.table,e):!0}validateData(e){var t;return this.table.options.importDataValidator?(t=this.table.options.importDataValidator.call(this.table,e),t===!0?e:Promise.reject(t)):e}setData(e){return this.dispatch("import-imported",e),this.dispatchExternal("importImported",e),this.table.dataLoader.clearAlert(),this.table.setData(e)}},E(Qe,"moduleName","import"),E(Qe,"importers",cI),Qe);class YC extends q{constructor(e){super(e),this.eventMap={rowClick:"row-click",rowDblClick:"row-dblclick",rowContext:"row-contextmenu",rowMouseEnter:"row-mouseenter",rowMouseLeave:"row-mouseleave",rowMouseOver:"row-mouseover",rowMouseOut:"row-mouseout",rowMouseMove:"row-mousemove",rowMouseDown:"row-mousedown",rowMouseUp:"row-mouseup",rowTap:"row",rowDblTap:"row",rowTapHold:"row",cellClick:"cell-click",cellDblClick:"cell-dblclick",cellContext:"cell-contextmenu",cellMouseEnter:"cell-mouseenter",cellMouseLeave:"cell-mouseleave",cellMouseOver:"cell-mouseover",cellMouseOut:"cell-mouseout",cellMouseMove:"cell-mousemove",cellMouseDown:"cell-mousedown",cellMouseUp:"cell-mouseup",cellTap:"cell",cellDblTap:"cell",cellTapHold:"cell",headerClick:"column-click",headerDblClick:"column-dblclick",headerContext:"column-contextmenu",headerMouseEnter:"column-mouseenter",headerMouseLeave:"column-mouseleave",headerMouseOver:"column-mouseover",headerMouseOut:"column-mouseout",headerMouseMove:"column-mousemove",headerMouseDown:"column-mousedown",headerMouseUp:"column-mouseup",headerTap:"column",headerDblTap:"column",headerTapHold:"column",groupClick:"group-click",groupDblClick:"group-dblclick",groupContext:"group-contextmenu",groupMouseEnter:"group-mouseenter",groupMouseLeave:"group-mouseleave",groupMouseOver:"group-mouseover",groupMouseOut:"group-mouseout",groupMouseMove:"group-mousemove",groupMouseDown:"group-mousedown",groupMouseUp:"group-mouseup",groupTap:"group",groupDblTap:"group",groupTapHold:"group"},this.subscribers={},this.touchSubscribers={},this.columnSubscribers={},this.touchWatchers={row:{tap:null,tapDbl:null,tapHold:null},cell:{tap:null,tapDbl:null,tapHold:null},column:{tap:null,tapDbl:null,tapHold:null},group:{tap:null,tapDbl:null,tapHold:null}},this.registerColumnOption("headerClick"),this.registerColumnOption("headerDblClick"),this.registerColumnOption("headerContext"),this.registerColumnOption("headerMouseEnter"),this.registerColumnOption("headerMouseLeave"),this.registerColumnOption("headerMouseOver"),this.registerColumnOption("headerMouseOut"),this.registerColumnOption("headerMouseMove"),this.registerColumnOption("headerMouseDown"),this.registerColumnOption("headerMouseUp"),this.registerColumnOption("headerTap"),this.registerColumnOption("headerDblTap"),this.registerColumnOption("headerTapHold"),this.registerColumnOption("cellClick"),this.registerColumnOption("cellDblClick"),this.registerColumnOption("cellContext"),this.registerColumnOption("cellMouseEnter"),this.registerColumnOption("cellMouseLeave"),this.registerColumnOption("cellMouseOver"),this.registerColumnOption("cellMouseOut"),this.registerColumnOption("cellMouseMove"),this.registerColumnOption("cellMouseDown"),this.registerColumnOption("cellMouseUp"),this.registerColumnOption("cellTap"),this.registerColumnOption("cellDblTap"),this.registerColumnOption("cellTapHold")}initialize(){this.initializeExternalEvents(),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("cell-dblclick",this.cellContentsSelectionFixer.bind(this)),this.subscribe("scroll-horizontal",this.clearTouchWatchers.bind(this)),this.subscribe("scroll-vertical",this.clearTouchWatchers.bind(this))}clearTouchWatchers(){var e=Object.values(this.touchWatchers);e.forEach(t=>{for(let i in t)t[i]=null})}cellContentsSelectionFixer(e,t){var i;if(!(this.table.modExists("edit")&&this.table.modules.edit.currentCell===t)){e.preventDefault();try{document.selection?(i=document.body.createTextRange(),i.moveToElementText(t.getElement()),i.select()):window.getSelection&&(i=document.createRange(),i.selectNode(t.getElement()),window.getSelection().removeAllRanges(),window.getSelection().addRange(i))}catch{}}}initializeExternalEvents(){for(let e in this.eventMap)this.subscriptionChangeExternal(e,this.subscriptionChanged.bind(this,e))}subscriptionChanged(e,t){t?this.subscribers[e]||(this.eventMap[e].includes("-")?(this.subscribers[e]=this.handle.bind(this,e),this.subscribe(this.eventMap[e],this.subscribers[e])):this.subscribeTouchEvents(e)):this.eventMap[e].includes("-")?this.subscribers[e]&&!this.columnSubscribers[e]&&!this.subscribedExternal(e)&&(this.unsubscribe(this.eventMap[e],this.subscribers[e]),delete this.subscribers[e]):this.unsubscribeTouchEvents(e)}subscribeTouchEvents(e){var t=this.eventMap[e];this.touchSubscribers[t+"-touchstart"]||(this.touchSubscribers[t+"-touchstart"]=this.handleTouch.bind(this,t,"start"),this.touchSubscribers[t+"-touchend"]=this.handleTouch.bind(this,t,"end"),this.subscribe(t+"-touchstart",this.touchSubscribers[t+"-touchstart"]),this.subscribe(t+"-touchend",this.touchSubscribers[t+"-touchend"])),this.subscribers[e]=!0}unsubscribeTouchEvents(e){var t=!0,i=this.eventMap[e];if(this.subscribers[e]&&!this.subscribedExternal(e)){delete this.subscribers[e];for(let a in this.eventMap)this.eventMap[a]===i&&this.subscribers[a]&&(t=!1);t&&(this.unsubscribe(i+"-touchstart",this.touchSubscribers[i+"-touchstart"]),this.unsubscribe(i+"-touchend",this.touchSubscribers[i+"-touchend"]),delete this.touchSubscribers[i+"-touchstart"],delete this.touchSubscribers[i+"-touchend"])}}initializeColumn(e){var t=e.definition;for(let i in this.eventMap)t[i]&&(this.subscriptionChanged(i,!0),this.columnSubscribers[i]||(this.columnSubscribers[i]=[]),this.columnSubscribers[i].push(e))}handle(e,t,i){this.dispatchEvent(e,t,i)}handleTouch(e,t,i,a){var n=this.touchWatchers[e];switch(e==="column"&&(e="header"),t){case"start":n.tap=!0,clearTimeout(n.tapHold),n.tapHold=setTimeout(()=>{clearTimeout(n.tapHold),n.tapHold=null,n.tap=null,clearTimeout(n.tapDbl),n.tapDbl=null,this.dispatchEvent(e+"TapHold",i,a)},1e3);break;case"end":n.tap&&(n.tap=null,this.dispatchEvent(e+"Tap",i,a)),n.tapDbl?(clearTimeout(n.tapDbl),n.tapDbl=null,this.dispatchEvent(e+"DblTap",i,a)):n.tapDbl=setTimeout(()=>{clearTimeout(n.tapDbl),n.tapDbl=null},300),clearTimeout(n.tapHold),n.tapHold=null;break}}dispatchEvent(e,t,i){var a=i.getComponent(),n;this.columnSubscribers[e]&&(i instanceof un?n=i.column.definition[e]:i instanceof tt&&(n=i.definition[e]),n&&n(t,a)),this.dispatchExternal(e,t,a)}}E(YC,"moduleName","interaction");var uI={navPrev:"shift + 9",navNext:9,navUp:38,navDown:40,navLeft:37,navRight:39,scrollPageUp:33,scrollPageDown:34,scrollToStart:36,scrollToEnd:35},pI={keyBlock:function(o){o.stopPropagation(),o.preventDefault()},scrollPageUp:function(o){var e=this.table.rowManager,t=e.scrollTop-e.element.clientHeight;o.preventDefault(),e.displayRowsCount&&(t>=0?e.element.scrollTop=t:e.scrollToRow(e.getDisplayRows()[0])),this.table.element.focus()},scrollPageDown:function(o){var e=this.table.rowManager,t=e.scrollTop+e.element.clientHeight,i=e.element.scrollHeight;o.preventDefault(),e.displayRowsCount&&(t<=i?e.element.scrollTop=t:e.scrollToRow(e.getDisplayRows()[e.displayRowsCount-1])),this.table.element.focus()},scrollToStart:function(o){var e=this.table.rowManager;o.preventDefault(),e.displayRowsCount&&e.scrollToRow(e.getDisplayRows()[0]),this.table.element.focus()},scrollToEnd:function(o){var e=this.table.rowManager;o.preventDefault(),e.displayRowsCount&&e.scrollToRow(e.getDisplayRows()[e.displayRowsCount-1]),this.table.element.focus()},navPrev:function(o){this.dispatch("keybinding-nav-prev",o)},navNext:function(o){this.dispatch("keybinding-nav-next",o)},navLeft:function(o){this.dispatch("keybinding-nav-left",o)},navRight:function(o){this.dispatch("keybinding-nav-right",o)},navUp:function(o){this.dispatch("keybinding-nav-up",o)},navDown:function(o){this.dispatch("keybinding-nav-down",o)}};const et=class et extends q{constructor(e){super(e),this.watchKeys=null,this.pressedKeys=null,this.keyupBinding=!1,this.keydownBinding=!1,this.registerTableOption("keybindings",{}),this.registerTableOption("tabEndNewRow",!1)}initialize(){var e=this.table.options.keybindings,t={};this.watchKeys={},this.pressedKeys=[],e!==!1&&(Object.assign(t,et.bindings),Object.assign(t,e),this.mapBindings(t),this.bindEvents()),this.subscribe("table-destroy",this.clearBindings.bind(this))}mapBindings(e){for(let t in e)et.actions[t]?e[t]&&(typeof e[t]!="object"&&(e[t]=[e[t]]),e[t].forEach(i=>{var a=Array.isArray(i)?i:[i];a.forEach(n=>{this.mapBinding(t,n)})})):console.warn("Key Binding Error - no such action:",t)}mapBinding(e,t){var i={action:et.actions[e],keys:[],ctrl:!1,shift:!1,meta:!1},a=t.toString().toLowerCase().split(" ").join("").split("+");a.forEach(n=>{switch(n){case"ctrl":i.ctrl=!0;break;case"shift":i.shift=!0;break;case"meta":i.meta=!0;break;default:n=isNaN(n)?n.toUpperCase().charCodeAt(0):parseInt(n),i.keys.push(n),this.watchKeys[n]||(this.watchKeys[n]=[]),this.watchKeys[n].push(i)}})}bindEvents(){var e=this;this.keyupBinding=function(t){var i=t.keyCode,a=e.watchKeys[i];a&&(e.pressedKeys.push(i),a.forEach(function(n){e.checkBinding(t,n)}))},this.keydownBinding=function(t){var i=t.keyCode,a=e.watchKeys[i];if(a){var n=e.pressedKeys.indexOf(i);n>-1&&e.pressedKeys.splice(n,1)}},this.table.element.addEventListener("keydown",this.keyupBinding),this.table.element.addEventListener("keyup",this.keydownBinding)}clearBindings(){this.keyupBinding&&this.table.element.removeEventListener("keydown",this.keyupBinding),this.keydownBinding&&this.table.element.removeEventListener("keyup",this.keydownBinding)}checkBinding(e,t){var i=!0;return e.ctrlKey==t.ctrl&&e.shiftKey==t.shift&&e.metaKey==t.meta?(t.keys.forEach(a=>{var n=this.pressedKeys.indexOf(a);n==-1&&(i=!1)}),i&&t.action.call(this,e),!0):!1}};E(et,"moduleName","keybindings"),E(et,"bindings",uI),E(et,"actions",pI);let C9=et,yI=(VC=class extends q{constructor(e){super(e),this.menuContainer=null,this.nestedMenuBlock=!1,this.currentComponent=null,this.rootPopup=null,this.columnSubscribers={},this.registerTableOption("rowContextMenu",!1),this.registerTableOption("rowClickMenu",!1),this.registerTableOption("rowDblClickMenu",!1),this.registerTableOption("groupContextMenu",!1),this.registerTableOption("groupClickMenu",!1),this.registerTableOption("groupDblClickMenu",!1),this.registerColumnOption("headerContextMenu"),this.registerColumnOption("headerClickMenu"),this.registerColumnOption("headerDblClickMenu"),this.registerColumnOption("headerMenu"),this.registerColumnOption("headerMenuIcon"),this.registerColumnOption("contextMenu"),this.registerColumnOption("clickMenu"),this.registerColumnOption("dblClickMenu")}initialize(){this.deprecatedOptionsCheck(),this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){}initializeRowWatchers(){this.table.options.rowContextMenu&&(this.subscribe("row-contextmenu",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu)),this.table.on("rowTapHold",this.loadMenuEvent.bind(this,this.table.options.rowContextMenu))),this.table.options.rowClickMenu&&this.subscribe("row-click",this.loadMenuEvent.bind(this,this.table.options.rowClickMenu)),this.table.options.rowDblClickMenu&&this.subscribe("row-dblclick",this.loadMenuEvent.bind(this,this.table.options.rowDblClickMenu))}initializeGroupWatchers(){this.table.options.groupContextMenu&&(this.subscribe("group-contextmenu",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu)),this.table.on("groupTapHold",this.loadMenuEvent.bind(this,this.table.options.groupContextMenu))),this.table.options.groupClickMenu&&this.subscribe("group-click",this.loadMenuEvent.bind(this,this.table.options.groupClickMenu)),this.table.options.groupDblClickMenu&&this.subscribe("group-dblclick",this.loadMenuEvent.bind(this,this.table.options.groupDblClickMenu))}initializeColumn(e){var t=e.definition;t.headerContextMenu&&!this.columnSubscribers.headerContextMenu&&(this.columnSubscribers.headerContextMenu=this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"),this.subscribe("column-contextmenu",this.columnSubscribers.headerContextMenu),this.table.on("headerTapHold",this.loadMenuTableColumnEvent.bind(this,"headerContextMenu"))),t.headerClickMenu&&!this.columnSubscribers.headerClickMenu&&(this.columnSubscribers.headerClickMenu=this.loadMenuTableColumnEvent.bind(this,"headerClickMenu"),this.subscribe("column-click",this.columnSubscribers.headerClickMenu)),t.headerDblClickMenu&&!this.columnSubscribers.headerDblClickMenu&&(this.columnSubscribers.headerDblClickMenu=this.loadMenuTableColumnEvent.bind(this,"headerDblClickMenu"),this.subscribe("column-dblclick",this.columnSubscribers.headerDblClickMenu)),t.headerMenu&&this.initializeColumnHeaderMenu(e),t.contextMenu&&!this.columnSubscribers.contextMenu&&(this.columnSubscribers.contextMenu=this.loadMenuTableCellEvent.bind(this,"contextMenu"),this.subscribe("cell-contextmenu",this.columnSubscribers.contextMenu),this.table.on("cellTapHold",this.loadMenuTableCellEvent.bind(this,"contextMenu"))),t.clickMenu&&!this.columnSubscribers.clickMenu&&(this.columnSubscribers.clickMenu=this.loadMenuTableCellEvent.bind(this,"clickMenu"),this.subscribe("cell-click",this.columnSubscribers.clickMenu)),t.dblClickMenu&&!this.columnSubscribers.dblClickMenu&&(this.columnSubscribers.dblClickMenu=this.loadMenuTableCellEvent.bind(this,"dblClickMenu"),this.subscribe("cell-dblclick",this.columnSubscribers.dblClickMenu))}initializeColumnHeaderMenu(e){var t=e.definition.headerMenuIcon,i;i=document.createElement("span"),i.classList.add("tabulator-header-popup-button"),t?(typeof t=="function"&&(t=t(e.getComponent())),t instanceof HTMLElement?i.appendChild(t):i.innerHTML=t):i.innerHTML="&vellip;",i.addEventListener("click",a=>{a.stopPropagation(),a.preventDefault(),this.loadMenuEvent(e.definition.headerMenu,a,e)}),e.titleElement.insertBefore(i,e.titleElement.firstChild)}loadMenuTableCellEvent(e,t,i){i._cell&&(i=i._cell),i.column.definition[e]&&this.loadMenuEvent(i.column.definition[e],t,i)}loadMenuTableColumnEvent(e,t,i){i._column&&(i=i._column),i.definition[e]&&this.loadMenuEvent(i.definition[e],t,i)}loadMenuEvent(e,t,i){i._group?i=i._group:i._row&&(i=i._row),e=typeof e=="function"?e.call(this.table,t,i.getComponent()):e,this.loadMenu(t,i,e)}loadMenu(e,t,i,a,n){var r=!(e instanceof MouseEvent),l=document.createElement("div"),h;if(l.classList.add("tabulator-menu"),r||e.preventDefault(),!(!i||!i.length)){if(a)h=n.child(l);else{if(this.nestedMenuBlock){if(this.rootPopup)return}else this.nestedMenuBlock=setTimeout(()=>{this.nestedMenuBlock=!1},100);this.rootPopup&&this.rootPopup.hide(),this.rootPopup=h=this.popup(l)}i.forEach(d=>{var u=document.createElement("div"),p=d.label,y=d.disabled;d.separator?u.classList.add("tabulator-menu-separator"):(u.classList.add("tabulator-menu-item"),typeof p=="function"&&(p=p.call(this.table,t.getComponent())),p instanceof Node?u.appendChild(p):u.innerHTML=p,typeof y=="function"&&(y=y.call(this.table,t.getComponent())),y?(u.classList.add("tabulator-menu-item-disabled"),u.addEventListener("click",f=>{f.stopPropagation()})):d.menu&&d.menu.length?u.addEventListener("click",f=>{f.stopPropagation(),this.loadMenu(f,t,d.menu,u,h)}):d.action&&u.addEventListener("click",f=>{d.action(f,t.getComponent())}),d.menu&&d.menu.length&&u.classList.add("tabulator-menu-item-submenu")),l.appendChild(u)}),l.addEventListener("click",d=>{this.rootPopup&&this.rootPopup.hide()}),h.show(a||e),h===this.rootPopup&&(this.rootPopup.hideOnBlur(()=>{this.rootPopup=null,this.currentComponent&&(this.dispatch("menu-closed",i,h),this.dispatchExternal("menuClosed",this.currentComponent.getComponent()),this.currentComponent=null)}),this.currentComponent=t,this.dispatch("menu-opened",i,h),this.dispatchExternal("menuOpened",t.getComponent()))}}},E(VC,"moduleName","menu"),VC);class ZC extends q{constructor(e){super(e),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=250,this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.startX=0,this.autoScrollMargin=40,this.autoScrollStep=5,this.autoScrollTimeout=!1,this.touchMove=!1,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.registerTableOption("movableColumns",!1)}createPlaceholderElement(){var e=document.createElement("div");return e.classList.add("tabulator-col"),e.classList.add("tabulator-col-placeholder"),e}initialize(){this.table.options.movableColumns&&(this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("alert-show",this.abortMove.bind(this)))}abortMove(){clearTimeout(this.checkTimeout)}initializeColumn(e){var t=this,i={},a;!e.modules.frozen&&!e.isGroup&&!e.isRowHeader&&(a=e.getElement(),i.mousemove=(function(n){e.parent===t.moving.parent&&((t.touchMove?n.touches[0].pageX:n.pageX)-$.elOffset(a).left+t.table.columnManager.contentsElement.scrollLeft>e.getWidth()/2?(t.toCol!==e||!t.toColAfter)&&(a.parentNode.insertBefore(t.placeholderElement,a.nextSibling),t.moveColumn(e,!0)):(t.toCol!==e||t.toColAfter)&&(a.parentNode.insertBefore(t.placeholderElement,a),t.moveColumn(e,!1)))}).bind(t),a.addEventListener("mousedown",function(n){t.touchMove=!1,n.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(n,e)},t.checkPeriod))}),a.addEventListener("mouseup",function(n){n.which===1&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),t.bindTouchEvents(e)),e.modules.moveColumn=i}bindTouchEvents(e){var t=e.getElement(),i=!1,a,n,r,l,h,d;t.addEventListener("touchstart",u=>{this.checkTimeout=setTimeout(()=>{this.touchMove=!0,a=e.nextColumn(),r=a?a.getWidth()/2:0,n=e.prevColumn(),l=n?n.getWidth()/2:0,h=0,d=0,i=!1,this.startMove(u,e)},this.checkPeriod)},{passive:!0}),t.addEventListener("touchmove",u=>{var p,y;this.moving&&(this.moveHover(u),i||(i=u.touches[0].pageX),p=u.touches[0].pageX-i,p>0?a&&p-h>r&&(y=a,y!==e&&(i=u.touches[0].pageX,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement().nextSibling),this.moveColumn(y,!0))):n&&-p-d>l&&(y=n,y!==e&&(i=u.touches[0].pageX,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement()),this.moveColumn(y,!1))),y&&(a=y.nextColumn(),h=r,r=a?a.getWidth()/2:0,n=y.prevColumn(),d=l,l=n?n.getWidth()/2:0))},{passive:!0}),t.addEventListener("touchend",u=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&this.endMove(u)})}startMove(e,t){var i=t.getElement(),a=this.table.columnManager.getContentsElement(),n=this.table.columnManager.getHeadersElement();this.table.modules.selectRange&&this.table.modules.selectRange.columnSelection&&this.table.modules.selectRange.mousedown&&this.table.modules.selectRange.selecting==="column"||(this.moving=t,this.startX=(this.touchMove?e.touches[0].pageX:e.pageX)-$.elOffset(i).left,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",i.parentNode.insertBefore(this.placeholderElement,i),i.parentNode.removeChild(i),this.hoverElement=i.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),a.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.bottom=a.clientHeight-n.offsetHeight+"px",this.touchMove||(this._bindMouseMove(),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove)),this.moveHover(e),this.dispatch("column-moving",e,this.moving))}_bindMouseMove(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveColumn.mousemove)})}_unbindMouseMove(){this.table.columnManager.columnsByIndex.forEach(function(e){e.modules.moveColumn.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveColumn.mousemove)})}moveColumn(e,t){var i=this.moving.getCells();this.toCol=e,this.toColAfter=t,t?e.getCells().forEach(function(a,n){var r=a.getElement(!0);r.parentNode&&i[n]&&r.parentNode.insertBefore(i[n].getElement(),r.nextSibling)}):e.getCells().forEach(function(a,n){var r=a.getElement(!0);r.parentNode&&i[n]&&r.parentNode.insertBefore(i[n].getElement(),r)})}endMove(e){(e.which===1||this.touchMove)&&(this._unbindMouseMove(),this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toCol&&this.table.columnManager.moveColumnActual(this.moving,this.toCol,this.toColAfter),this.moving=!1,this.toCol=!1,this.toColAfter=!1,this.touchMove||(document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove)))}moveHover(e){var t=this.table.columnManager.getContentsElement(),i=t.scrollLeft,a=(this.touchMove?e.touches[0].pageX:e.pageX)-$.elOffset(t).left+i,n;this.hoverElement.style.left=a-this.startX+"px",a-i<this.autoScrollMargin&&(this.autoScrollTimeout||(this.autoScrollTimeout=setTimeout(()=>{n=Math.max(0,i-5),this.table.rowManager.getElement().scrollLeft=n,this.autoScrollTimeout=!1},1))),i+t.clientWidth-a<this.autoScrollMargin&&(this.autoScrollTimeout||(this.autoScrollTimeout=setTimeout(()=>{n=Math.min(t.clientWidth,i+5),this.table.rowManager.getElement().scrollLeft=n,this.autoScrollTimeout=!1},1)))}}E(ZC,"moduleName","moveColumn");var fI={delete:function(o,e,t){o.delete()}},mI={insert:function(o,e,t){return this.table.addRow(o.getData(),void 0,e),!0},add:function(o,e,t){return this.table.addRow(o.getData()),!0},update:function(o,e,t){return e?(e.update(o.getData()),!0):!1},replace:function(o,e,t){return e?(this.table.addRow(o.getData(),void 0,e),e.delete(),!0):!1}};const $o=class $o extends q{constructor(e){super(e),this.placeholderElement=this.createPlaceholderElement(),this.hoverElement=!1,this.checkTimeout=!1,this.checkPeriod=150,this.moving=!1,this.toRow=!1,this.toRowAfter=!1,this.hasHandle=!1,this.startY=0,this.startX=0,this.moveHover=this.moveHover.bind(this),this.endMove=this.endMove.bind(this),this.tableRowDropEvent=!1,this.touchMove=!1,this.connection=!1,this.connectionSelectorsTables=!1,this.connectionSelectorsElements=!1,this.connectionElements=[],this.connections=[],this.connectedTable=!1,this.connectedRow=!1,this.registerTableOption("movableRows",!1),this.registerTableOption("movableRowsConnectedTables",!1),this.registerTableOption("movableRowsConnectedElements",!1),this.registerTableOption("movableRowsSender",!1),this.registerTableOption("movableRowsReceiver","insert"),this.registerColumnOption("rowHandle")}createPlaceholderElement(){var e=document.createElement("div");return e.classList.add("tabulator-row"),e.classList.add("tabulator-row-placeholder"),e}initialize(){this.table.options.movableRows&&(this.connectionSelectorsTables=this.table.options.movableRowsConnectedTables,this.connectionSelectorsElements=this.table.options.movableRowsConnectedElements,this.connection=this.connectionSelectorsTables||this.connectionSelectorsElements,this.subscribe("cell-init",this.initializeCell.bind(this)),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("row-init",this.initializeRow.bind(this)))}initializeGroupHeader(e){var t=this,i={};i.mouseup=(function(a){t.tableRowDrop(a,e)}).bind(t),i.mousemove=(function(a){var n;a.pageY-$.elOffset(e.element).top+t.table.rowManager.element.scrollTop>e.getHeight()/2?(t.toRow!==e||!t.toRowAfter)&&(n=e.getElement(),n.parentNode.insertBefore(t.placeholderElement,n.nextSibling),t.moveRow(e,!0)):(t.toRow!==e||t.toRowAfter)&&(n=e.getElement(),n.previousSibling&&(n.parentNode.insertBefore(t.placeholderElement,n),t.moveRow(e,!1)))}).bind(t),e.modules.moveRow=i}initializeRow(e){var t=this,i={},a;i.mouseup=(function(n){t.tableRowDrop(n,e)}).bind(t),i.mousemove=(function(n){var r=e.getElement();n.pageY-$.elOffset(r).top+t.table.rowManager.element.scrollTop>e.getHeight()/2?(t.toRow!==e||!t.toRowAfter)&&(r.parentNode.insertBefore(t.placeholderElement,r.nextSibling),t.moveRow(e,!0)):(t.toRow!==e||t.toRowAfter)&&(r.parentNode.insertBefore(t.placeholderElement,r),t.moveRow(e,!1))}).bind(t),this.hasHandle||(a=e.getElement(),a.addEventListener("mousedown",function(n){n.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(n,e)},t.checkPeriod))}),a.addEventListener("mouseup",function(n){n.which===1&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e,e.getElement())),e.modules.moveRow=i}initializeColumn(e){e.definition.rowHandle&&this.table.options.movableRows!==!1&&(this.hasHandle=!0)}initializeCell(e){if(e.column.definition.rowHandle&&this.table.options.movableRows!==!1){var t=this,i=e.getElement(!0);i.addEventListener("mousedown",function(a){a.which===1&&(t.checkTimeout=setTimeout(function(){t.startMove(a,e.row)},t.checkPeriod))}),i.addEventListener("mouseup",function(a){a.which===1&&t.checkTimeout&&clearTimeout(t.checkTimeout)}),this.bindTouchEvents(e.row,i)}}bindTouchEvents(e,t){var i=!1,a,n,r,l,h,d;t.addEventListener("touchstart",u=>{this.checkTimeout=setTimeout(()=>{this.touchMove=!0,a=e.nextRow(),r=a?a.getHeight()/2:0,n=e.prevRow(),l=n?n.getHeight()/2:0,h=0,d=0,i=!1,this.startMove(u,e)},this.checkPeriod)},{passive:!0}),this.moving,this.toRow,this.toRowAfter,t.addEventListener("touchmove",u=>{var p,y;this.moving&&(u.preventDefault(),this.moveHover(u),i||(i=u.touches[0].pageY),p=u.touches[0].pageY-i,p>0?a&&p-h>r&&(y=a,y!==e&&(i=u.touches[0].pageY,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement().nextSibling),this.moveRow(y,!0))):n&&-p-d>l&&(y=n,y!==e&&(i=u.touches[0].pageY,y.getElement().parentNode.insertBefore(this.placeholderElement,y.getElement()),this.moveRow(y,!1))),y&&(a=y.nextRow(),h=r,r=a?a.getHeight()/2:0,n=y.prevRow(),d=l,l=n?n.getHeight()/2:0))}),t.addEventListener("touchend",u=>{this.checkTimeout&&clearTimeout(this.checkTimeout),this.moving&&(this.endMove(u),this.touchMove=!1)})}_bindMouseMove(){this.table.rowManager.getDisplayRows().forEach(e=>{(e.type==="row"||e.type==="group")&&e.modules.moveRow&&e.modules.moveRow.mousemove&&e.getElement().addEventListener("mousemove",e.modules.moveRow.mousemove)})}_unbindMouseMove(){this.table.rowManager.getDisplayRows().forEach(e=>{(e.type==="row"||e.type==="group")&&e.modules.moveRow&&e.modules.moveRow.mousemove&&e.getElement().removeEventListener("mousemove",e.modules.moveRow.mousemove)})}startMove(e,t){var i=t.getElement();this.setStartPosition(e,t),this.moving=t,this.table.element.classList.add("tabulator-block-select"),this.placeholderElement.style.width=t.getWidth()+"px",this.placeholderElement.style.height=t.getHeight()+"px",this.connection?(this.table.element.classList.add("tabulator-movingrow-sending"),this.connectToTables(t)):(i.parentNode.insertBefore(this.placeholderElement,i),i.parentNode.removeChild(i)),this.hoverElement=i.cloneNode(!0),this.hoverElement.classList.add("tabulator-moving"),this.connection?(document.body.appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this.hoverElement.style.width=this.table.element.clientWidth+"px",this.hoverElement.style.whiteSpace="nowrap",this.hoverElement.style.overflow="hidden",this.hoverElement.style.pointerEvents="none"):(this.table.rowManager.getTableElement().appendChild(this.hoverElement),this.hoverElement.style.left="0",this.hoverElement.style.top="0",this._bindMouseMove()),document.body.addEventListener("mousemove",this.moveHover),document.body.addEventListener("mouseup",this.endMove),this.dispatchExternal("rowMoving",t.getComponent()),this.moveHover(e)}setStartPosition(e,t){var i=this.touchMove?e.touches[0].pageX:e.pageX,a=this.touchMove?e.touches[0].pageY:e.pageY,n,r;n=t.getElement(),this.connection?(r=n.getBoundingClientRect(),this.startX=r.left-i+window.pageXOffset,this.startY=r.top-a+window.pageYOffset):this.startY=a-n.getBoundingClientRect().top}endMove(e){(!e||e.which===1||this.touchMove)&&(this._unbindMouseMove(),this.connection||(this.placeholderElement.parentNode.insertBefore(this.moving.getElement(),this.placeholderElement.nextSibling),this.placeholderElement.parentNode.removeChild(this.placeholderElement)),this.hoverElement.parentNode.removeChild(this.hoverElement),this.table.element.classList.remove("tabulator-block-select"),this.toRow?this.table.rowManager.moveRow(this.moving,this.toRow,this.toRowAfter):this.dispatchExternal("rowMoveCancelled",this.moving.getComponent()),this.moving=!1,this.toRow=!1,this.toRowAfter=!1,document.body.removeEventListener("mousemove",this.moveHover),document.body.removeEventListener("mouseup",this.endMove),this.connection&&(this.table.element.classList.remove("tabulator-movingrow-sending"),this.disconnectFromTables()))}moveRow(e,t){this.toRow=e,this.toRowAfter=t}moveHover(e){this.connection?this.moveHoverConnections.call(this,e):this.moveHoverTable.call(this,e)}moveHoverTable(e){var t=this.table.rowManager.getElement(),i=t.scrollTop,a=(this.touchMove?e.touches[0].pageY:e.pageY)-t.getBoundingClientRect().top+i;this.hoverElement.style.top=Math.min(a-this.startY,this.table.rowManager.element.scrollHeight-this.hoverElement.offsetHeight)+"px"}moveHoverConnections(e){this.hoverElement.style.left=this.startX+(this.touchMove?e.touches[0].pageX:e.pageX)+"px",this.hoverElement.style.top=this.startY+(this.touchMove?e.touches[0].pageY:e.pageY)+"px"}elementRowDrop(e,t,i){this.dispatchExternal("movableRowsElementDrop",e,t,i?i.getComponent():!1)}connectToTables(e){var t;this.connectionSelectorsTables&&(t=this.commsConnections(this.connectionSelectorsTables),this.dispatchExternal("movableRowsSendingStart",t),this.commsSend(this.connectionSelectorsTables,"moveRow","connect",{row:e})),this.connectionSelectorsElements&&(this.connectionElements=[],Array.isArray(this.connectionSelectorsElements)||(this.connectionSelectorsElements=[this.connectionSelectorsElements]),this.connectionSelectorsElements.forEach(i=>{typeof i=="string"?this.connectionElements=this.connectionElements.concat(Array.prototype.slice.call(document.querySelectorAll(i))):this.connectionElements.push(i)}),this.connectionElements.forEach(i=>{var a=n=>{this.elementRowDrop(n,i,this.moving)};i.addEventListener("mouseup",a),i.tabulatorElementDropEvent=a,i.classList.add("tabulator-movingrow-receiving")}))}disconnectFromTables(){var e;this.connectionSelectorsTables&&(e=this.commsConnections(this.connectionSelectorsTables),this.dispatchExternal("movableRowsSendingStop",e),this.commsSend(this.connectionSelectorsTables,"moveRow","disconnect")),this.connectionElements.forEach(t=>{t.classList.remove("tabulator-movingrow-receiving"),t.removeEventListener("mouseup",t.tabulatorElementDropEvent),delete t.tabulatorElementDropEvent})}connect(e,t){return this.connectedTable?(console.warn("Move Row Error - Table cannot accept connection, already connected to table:",this.connectedTable),!1):(this.connectedTable=e,this.connectedRow=t,this.table.element.classList.add("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach(i=>{i.type==="row"&&i.modules.moveRow&&i.modules.moveRow.mouseup&&i.getElement().addEventListener("mouseup",i.modules.moveRow.mouseup)}),this.tableRowDropEvent=this.tableRowDrop.bind(this),this.table.element.addEventListener("mouseup",this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStart",t,e),!0)}disconnect(e){e===this.connectedTable?(this.connectedTable=!1,this.connectedRow=!1,this.table.element.classList.remove("tabulator-movingrow-receiving"),this.table.rowManager.getDisplayRows().forEach(t=>{t.type==="row"&&t.modules.moveRow&&t.modules.moveRow.mouseup&&t.getElement().removeEventListener("mouseup",t.modules.moveRow.mouseup)}),this.table.element.removeEventListener("mouseup",this.tableRowDropEvent),this.dispatchExternal("movableRowsReceivingStop",e)):console.warn("Move Row Error - trying to disconnect from non connected table")}dropComplete(e,t,i){var a=!1;if(i){switch(typeof this.table.options.movableRowsSender){case"string":a=$o.senders[this.table.options.movableRowsSender];break;case"function":a=this.table.options.movableRowsSender;break}a?a.call(this,this.moving?this.moving.getComponent():void 0,t?t.getComponent():void 0,e):this.table.options.movableRowsSender&&console.warn("Mover Row Error - no matching sender found:",this.table.options.movableRowsSender),this.dispatchExternal("movableRowsSent",this.moving.getComponent(),t?t.getComponent():void 0,e)}else this.dispatchExternal("movableRowsSentFailed",this.moving.getComponent(),t?t.getComponent():void 0,e);this.endMove()}tableRowDrop(e,t){var i=!1,a=!1;switch(e.stopImmediatePropagation(),typeof this.table.options.movableRowsReceiver){case"string":i=$o.receivers[this.table.options.movableRowsReceiver];break;case"function":i=this.table.options.movableRowsReceiver;break}i?a=i.call(this,this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):console.warn("Mover Row Error - no matching receiver found:",this.table.options.movableRowsReceiver),a?this.dispatchExternal("movableRowsReceived",this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable):this.dispatchExternal("movableRowsReceivedFailed",this.connectedRow.getComponent(),t?t.getComponent():void 0,this.connectedTable),this.commsSend(this.connectedTable,"moveRow","dropcomplete",{row:t,success:a})}commsReceived(e,t,i){switch(t){case"connect":return this.connect(e,i.row);case"disconnect":return this.disconnect(e);case"dropcomplete":return this.dropComplete(e,i.row,i.success)}}};E($o,"moduleName","moveRow"),E($o,"senders",fI),E($o,"receivers",mI);let x9=$o;var gI={};const cn=class cn extends q{constructor(e){super(e),this.allowedTypes=["","data","edit","clipboard","import"],this.enabled=!0,this.registerColumnOption("mutator"),this.registerColumnOption("mutatorParams"),this.registerColumnOption("mutatorData"),this.registerColumnOption("mutatorDataParams"),this.registerColumnOption("mutatorEdit"),this.registerColumnOption("mutatorEditParams"),this.registerColumnOption("mutatorClipboard"),this.registerColumnOption("mutatorClipboardParams"),this.registerColumnOption("mutatorImport"),this.registerColumnOption("mutatorImportParams"),this.registerColumnOption("mutateLink")}initialize(){this.subscribe("cell-value-changing",this.transformCell.bind(this)),this.subscribe("cell-value-changed",this.mutateLink.bind(this)),this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-init-before",this.rowDataChanged.bind(this)),this.subscribe("row-data-changing",this.rowDataChanged.bind(this))}rowDataChanged(e,t,i){return this.transformRow(t,"data",i)}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(a=>{var n="mutator"+(a.charAt(0).toUpperCase()+a.slice(1)),r;e.definition[n]&&(r=this.lookupMutator(e.definition[n]),r&&(t=!0,i[n]={mutator:r,params:e.definition[n+"Params"]||{}}))}),t&&(e.modules.mutate=i)}lookupMutator(e){var t=!1;switch(typeof e){case"string":cn.mutators[e]?t=cn.mutators[e]:console.warn("Mutator Error - No such mutator found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t,i){var a="mutator"+(t.charAt(0).toUpperCase()+t.slice(1)),n;return this.enabled&&this.table.columnManager.traverse(r=>{var l,h,d;r.modules.mutate&&(l=r.modules.mutate[a]||r.modules.mutate.mutator||!1,l&&(n=r.getFieldValue(typeof i<"u"?i:e),(t=="data"&&!i||typeof n<"u")&&(d=r.getComponent(),h=typeof l.params=="function"?l.params(n,e,t,d):l.params,r.setFieldValue(e,l.mutator(n,e,t,h,d)))))}),e}transformCell(e,t){if(e.column.modules.mutate){var i=e.column.modules.mutate.mutatorEdit||e.column.modules.mutate.mutator||!1,a={};if(i)return a=Object.assign(a,e.row.getData()),e.column.setFieldValue(a,t),i.mutator(t,a,"edit",i.params,e.getComponent())}return t}mutateLink(e){var t=e.column.definition.mutateLink;t&&(Array.isArray(t)||(t=[t]),t.forEach(i=>{var a=e.row.getCell(i);a&&a.setValue(a.getValue(),!0,!0)}))}enable(){this.enabled=!0}disable(){this.enabled=!1}};E(cn,"moduleName","mutator"),E(cn,"mutators",gI);let L9=cn;function kI(o,e,t,i,a){var n=document.createElement("span"),r=document.createElement("span"),l=document.createElement("span"),h=document.createElement("span"),d=document.createElement("span"),u=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",p=>{r.innerHTML=p}),this.table.modules.localize.langBind("pagination|counter|of",p=>{h.innerHTML=p}),this.table.modules.localize.langBind("pagination|counter|rows",p=>{u.innerHTML=p}),i?(l.innerHTML=" "+e+"-"+Math.min(e+o-1,i)+" ",d.innerHTML=" "+i+" ",n.appendChild(r),n.appendChild(l),n.appendChild(h),n.appendChild(d),n.appendChild(u)):(l.innerHTML=" 0 ",n.appendChild(r),n.appendChild(l),n.appendChild(u)),n}function bI(o,e,t,i,a){var n=document.createElement("span"),r=document.createElement("span"),l=document.createElement("span"),h=document.createElement("span"),d=document.createElement("span"),u=document.createElement("span");return this.table.modules.localize.langBind("pagination|counter|showing",p=>{r.innerHTML=p}),l.innerHTML=" "+t+" ",this.table.modules.localize.langBind("pagination|counter|of",p=>{h.innerHTML=p}),d.innerHTML=" "+a+" ",this.table.modules.localize.langBind("pagination|counter|pages",p=>{u.innerHTML=p}),n.appendChild(r),n.appendChild(l),n.appendChild(h),n.appendChild(d),n.appendChild(u),n}var wI={rows:kI,pages:bI};const En=class En extends q{constructor(e){super(e),this.mode="local",this.progressiveLoad=!1,this.element=null,this.pageCounterElement=null,this.pageCounter=null,this.size=0,this.page=1,this.count=5,this.max=1,this.remoteRowCountEstimate=null,this.initialLoad=!0,this.dataChanging=!1,this.pageSizes=[],this.registerTableOption("pagination",!1),this.registerTableOption("paginationMode","local"),this.registerTableOption("paginationSize",!1),this.registerTableOption("paginationInitialPage",1),this.registerTableOption("paginationCounter",!1),this.registerTableOption("paginationCounterElement",!1),this.registerTableOption("paginationButtonCount",5),this.registerTableOption("paginationSizeSelector",!1),this.registerTableOption("paginationElement",!1),this.registerTableOption("paginationAddRow","page"),this.registerTableOption("paginationOutOfRange",!1),this.registerTableOption("progressiveLoad",!1),this.registerTableOption("progressiveLoadDelay",0),this.registerTableOption("progressiveLoadScrollMargin",0),this.registerTableFunction("setMaxPage",this.setMaxPage.bind(this)),this.registerTableFunction("setPage",this.setPage.bind(this)),this.registerTableFunction("setPageToRow",this.userSetPageToRow.bind(this)),this.registerTableFunction("setPageSize",this.userSetPageSize.bind(this)),this.registerTableFunction("getPageSize",this.getPageSize.bind(this)),this.registerTableFunction("previousPage",this.previousPage.bind(this)),this.registerTableFunction("nextPage",this.nextPage.bind(this)),this.registerTableFunction("getPage",this.getPage.bind(this)),this.registerTableFunction("getPageMax",this.getPageMax.bind(this)),this.registerComponentFunction("row","pageTo",this.setPageToRow.bind(this))}initialize(){this.table.options.pagination?(this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("data-processed",this.initialLoadComplete.bind(this)),this.subscribe("table-built",this.calculatePageSizes.bind(this)),this.subscribe("footer-redraw",this.footerRedraw.bind(this)),this.table.options.paginationAddRow=="page"&&this.subscribe("row-adding-position",this.rowAddingPosition.bind(this)),this.table.options.paginationMode==="remote"&&(this.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-loaded",this._parseRemoteData.bind(this))),this.table.options.progressiveLoad&&console.error("Progressive Load Error - Pagination and progressive load cannot be used at the same time"),this.registerDisplayHandler(this.restOnRenderBefore.bind(this),40),this.registerDisplayHandler(this.getRows.bind(this),50),this.createElements(),this.initializePageCounter(),this.initializePaginator()):this.table.options.progressiveLoad&&(this.subscribe("data-params",this.remotePageParams.bind(this)),this.subscribe("data-loaded",this._parseRemoteData.bind(this)),this.subscribe("table-built",this.calculatePageSizes.bind(this)),this.subscribe("data-processed",this.initialLoadComplete.bind(this)),this.initializeProgressive(this.table.options.progressiveLoad),this.table.options.progressiveLoad==="scroll"&&this.subscribe("scroll-vertical",this.scrollVertical.bind(this)))}rowAddingPosition(e,t){var i=this.table.rowManager,a=i.getDisplayRows(),n;return t?a.length?n=a[0]:i.activeRows.length&&(n=i.activeRows[i.activeRows.length-1],t=!1):a.length&&(n=a[a.length-1],t=!(a.length<this.size)),{index:n,top:t}}calculatePageSizes(){var e,t;this.table.options.paginationSize?this.size=this.table.options.paginationSize:(e=document.createElement("div"),e.classList.add("tabulator-row"),e.style.visibility="hidden",t=document.createElement("div"),t.classList.add("tabulator-cell"),t.innerHTML="Page Row Test",e.appendChild(t),this.table.rowManager.getTableElement().appendChild(e),this.size=Math.floor(this.table.rowManager.getElement().clientHeight/e.offsetHeight),this.table.rowManager.getTableElement().removeChild(e)),this.dispatchExternal("pageSizeChanged",this.size),this.generatePageSizeSelectList()}initialLoadComplete(){this.initialLoad=!1}remotePageParams(e,t,i,a){return this.initialLoad||(this.progressiveLoad&&!i||!this.progressiveLoad&&!this.dataChanging)&&this.reset(!0),a.page=this.page,this.size&&(a.size=this.size),a}userSetPageToRow(e){return this.table.options.pagination&&(e=this.table.rowManager.findRow(e),e)?this.setPageToRow(e):Promise.reject()}userSetPageSize(e){return this.table.options.pagination?(this.setPageSize(e),this.setPage(1)):!1}scrollVertical(e,t){var i,a,n;!t&&!this.table.dataLoader.loading&&(i=this.table.rowManager.getElement(),a=i.scrollHeight-i.clientHeight-e,n=this.table.options.progressiveLoadScrollMargin||i.clientHeight*2,a<n&&this.nextPage().catch(()=>{}))}restOnRenderBefore(e,t){return t||this.mode==="local"&&this.reset(),e}rowsUpdated(){this.refreshData(!0,"all")}createElements(){var e;this.element=document.createElement("span"),this.element.classList.add("tabulator-paginator"),this.pagesElement=document.createElement("span"),this.pagesElement.classList.add("tabulator-pages"),e=document.createElement("button"),e.classList.add("tabulator-page"),e.setAttribute("type","button"),e.setAttribute("role","button"),e.setAttribute("aria-label",""),e.setAttribute("title",""),this.firstBut=e.cloneNode(!0),this.firstBut.setAttribute("data-page","first"),this.prevBut=e.cloneNode(!0),this.prevBut.setAttribute("data-page","prev"),this.nextBut=e.cloneNode(!0),this.nextBut.setAttribute("data-page","next"),this.lastBut=e.cloneNode(!0),this.lastBut.setAttribute("data-page","last"),this.table.options.paginationSizeSelector&&(this.pageSizeSelect=document.createElement("select"),this.pageSizeSelect.classList.add("tabulator-page-size"))}generatePageSizeSelectList(){var e=[];if(this.pageSizeSelect){if(Array.isArray(this.table.options.paginationSizeSelector))e=this.table.options.paginationSizeSelector,this.pageSizes=e,this.pageSizes.indexOf(this.size)==-1&&e.unshift(this.size);else if(this.pageSizes.indexOf(this.size)==-1){e=[];for(let t=1;t<5;t++)e.push(this.size*t);this.pageSizes=e}else e=this.pageSizes;for(;this.pageSizeSelect.firstChild;)this.pageSizeSelect.removeChild(this.pageSizeSelect.firstChild);e.forEach(t=>{var i=document.createElement("option");i.value=t,t===!0?this.langBind("pagination|all",function(a){i.innerHTML=a}):i.innerHTML=t,this.pageSizeSelect.appendChild(i)}),this.pageSizeSelect.value=this.size}}initializePageCounter(){var e=this.table.options.paginationCounter,t=null;e&&(typeof e=="function"?t=e:t=En.pageCounters[e],t?(this.pageCounter=t,this.pageCounterElement=document.createElement("span"),this.pageCounterElement.classList.add("tabulator-page-counter")):console.warn("Pagination Error - No such page counter found: ",e))}initializePaginator(e){var t,i;e||(this.langBind("pagination|first",a=>{this.firstBut.innerHTML=a}),this.langBind("pagination|first_title",a=>{this.firstBut.setAttribute("aria-label",a),this.firstBut.setAttribute("title",a)}),this.langBind("pagination|prev",a=>{this.prevBut.innerHTML=a}),this.langBind("pagination|prev_title",a=>{this.prevBut.setAttribute("aria-label",a),this.prevBut.setAttribute("title",a)}),this.langBind("pagination|next",a=>{this.nextBut.innerHTML=a}),this.langBind("pagination|next_title",a=>{this.nextBut.setAttribute("aria-label",a),this.nextBut.setAttribute("title",a)}),this.langBind("pagination|last",a=>{this.lastBut.innerHTML=a}),this.langBind("pagination|last_title",a=>{this.lastBut.setAttribute("aria-label",a),this.lastBut.setAttribute("title",a)}),this.firstBut.addEventListener("click",()=>{this.setPage(1)}),this.prevBut.addEventListener("click",()=>{this.previousPage()}),this.nextBut.addEventListener("click",()=>{this.nextPage()}),this.lastBut.addEventListener("click",()=>{this.setPage(this.max)}),this.table.options.paginationElement&&(this.element=this.table.options.paginationElement),this.pageSizeSelect&&(t=document.createElement("label"),this.langBind("pagination|page_size",a=>{this.pageSizeSelect.setAttribute("aria-label",a),this.pageSizeSelect.setAttribute("title",a),t.innerHTML=a}),this.element.appendChild(t),this.element.appendChild(this.pageSizeSelect),this.pageSizeSelect.addEventListener("change",a=>{this.setPageSize(this.pageSizeSelect.value=="true"?!0:this.pageSizeSelect.value),this.setPage(1)})),this.element.appendChild(this.firstBut),this.element.appendChild(this.prevBut),this.element.appendChild(this.pagesElement),this.element.appendChild(this.nextBut),this.element.appendChild(this.lastBut),this.table.options.paginationElement||(this.table.options.paginationCounter&&(this.table.options.paginationCounterElement?this.table.options.paginationCounterElement instanceof HTMLElement?this.table.options.paginationCounterElement.appendChild(this.pageCounterElement):typeof this.table.options.paginationCounterElement=="string"&&(i=document.querySelector(this.table.options.paginationCounterElement),i?i.appendChild(this.pageCounterElement):console.warn("Pagination Error - Unable to find element matching paginationCounterElement selector:",this.table.options.paginationCounterElement)):this.footerAppend(this.pageCounterElement)),this.footerAppend(this.element)),this.page=this.table.options.paginationInitialPage,this.count=this.table.options.paginationButtonCount),this.mode=this.table.options.paginationMode}initializeProgressive(e){this.initializePaginator(!0),this.mode="progressive_"+e,this.progressiveLoad=!0}trackChanges(){this.dispatch("page-changed")}setMaxRows(e){e?this.max=this.size===!0?1:Math.ceil(e/this.size):this.max=1,this.page>this.max&&(this.page=this.max)}reset(e){this.initialLoad||(this.mode=="local"||e)&&(this.page=1,this.trackChanges())}setMaxPage(e){e=parseInt(e),this.max=e||1,this.page>this.max&&(this.page=this.max,this.trigger())}setPage(e){switch(e){case"first":return this.setPage(1);case"prev":return this.previousPage();case"next":return this.nextPage();case"last":return this.setPage(this.max)}return e=parseInt(e),e>0&&e<=this.max||this.mode!=="local"?(this.page=e,this.trackChanges(),this.trigger()):(console.warn("Pagination Error - Requested page is out of range of 1 - "+this.max+":",e),Promise.reject())}setPageToRow(e){var t=this.displayRows(-1),i=t.indexOf(e);if(i>-1){var a=this.size===!0?1:Math.ceil((i+1)/this.size);return this.setPage(a)}else return console.warn("Pagination Error - Requested row is not visible"),Promise.reject()}setPageSize(e){e!==!0&&(e=parseInt(e)),e>0&&(this.size=e,this.dispatchExternal("pageSizeChanged",e)),this.pageSizeSelect&&this.generatePageSizeSelectList(),this.trackChanges()}_setPageCounter(e,t,i){var a;if(this.pageCounter)switch(this.mode==="remote"&&(t=this.size,i=(this.page-1)*this.size+1,e=this.remoteRowCountEstimate),a=this.pageCounter.call(this,t,i,this.page,e,this.max),typeof a){case"object":if(a instanceof Node){for(;this.pageCounterElement.firstChild;)this.pageCounterElement.removeChild(this.pageCounterElement.firstChild);this.pageCounterElement.appendChild(a)}else this.pageCounterElement.innerHTML="",a!=null&&console.warn("Page Counter Error - Page Counter has returned a type of object, the only valid page counter object return is an instance of Node, the page counter returned:",a);break;case"undefined":this.pageCounterElement.innerHTML="";break;default:this.pageCounterElement.innerHTML=a}}_setPageButtons(){let e=Math.floor((this.count-1)/2),t=Math.ceil((this.count-1)/2),i=this.max-this.page+e+1<this.count?this.max-this.count+1:Math.max(this.page-e,1),a=this.page<=t?Math.min(this.count,this.max):Math.min(this.page+t,this.max);for(;this.pagesElement.firstChild;)this.pagesElement.removeChild(this.pagesElement.firstChild);this.page==1?(this.firstBut.disabled=!0,this.prevBut.disabled=!0):(this.firstBut.disabled=!1,this.prevBut.disabled=!1),this.page==this.max?(this.lastBut.disabled=!0,this.nextBut.disabled=!0):(this.lastBut.disabled=!1,this.nextBut.disabled=!1);for(let n=i;n<=a;n++)n>0&&n<=this.max&&this.pagesElement.appendChild(this._generatePageButton(n));this.footerRedraw()}_generatePageButton(e){var t=document.createElement("button");return t.classList.add("tabulator-page"),e==this.page&&t.classList.add("active"),t.setAttribute("type","button"),t.setAttribute("role","button"),this.langBind("pagination|page_title",i=>{t.setAttribute("aria-label",i+" "+e),t.setAttribute("title",i+" "+e)}),t.setAttribute("data-page",e),t.textContent=e,t.addEventListener("click",i=>{this.setPage(e)}),t}previousPage(){return this.page>1?(this.page--,this.trackChanges(),this.trigger()):(console.warn("Pagination Error - Previous page would be less than page 1:",0),Promise.reject())}nextPage(){return this.page<this.max?(this.page++,this.trackChanges(),this.trigger()):(this.progressiveLoad||console.warn("Pagination Error - Next page would be greater than maximum page of "+this.max+":",this.max+1),Promise.reject())}getPage(){return this.page}getPageMax(){return this.max}getPageSize(e){return this.size}getMode(){return this.mode}getRows(e){var t=0,i,a,n,r,l=e.filter(h=>h.type==="row");if(this.mode=="local"){i=[],this.setMaxRows(e.length),this.size===!0?(a=0,n=e.length):(a=this.size*(this.page-1),n=a+parseInt(this.size)),this._setPageButtons();for(let h=a;h<n;h++){let d=e[h];d&&(i.push(d),d.type==="row"&&(r||(r=d),t++))}return this._setPageCounter(l.length,t,r?l.indexOf(r)+1:0),i}else return this._setPageButtons(),this._setPageCounter(l.length),e.slice(0)}trigger(){var e;switch(this.mode){case"local":return e=this.table.rowManager.scrollLeft,this.refreshData(),this.table.rowManager.scrollHorizontal(e),this.dispatchExternal("pageLoaded",this.getPage()),Promise.resolve();case"remote":return this.dataChanging=!0,this.reloadData(null).finally(()=>{this.dataChanging=!1});case"progressive_load":case"progressive_scroll":return this.reloadData(null,!0);default:return console.warn("Pagination Error - no such pagination mode:",this.mode),Promise.reject()}}_parseRemoteData(e){var t,i;if(typeof e.last_page>"u"&&console.warn("Remote Pagination Error - Server response missing '"+(this.options("dataReceiveParams").last_page||"last_page")+"' property"),e.data)if(this.max=parseInt(e.last_page)||1,this.remoteRowCountEstimate=typeof e.last_row<"u"?e.last_row:e.last_page*this.size-(this.page==e.last_page?this.size-e.data.length:0),this.progressiveLoad){switch(this.mode){case"progressive_load":this.page==1?this.table.rowManager.setData(e.data,!1,this.page==1):this.table.rowManager.addRows(e.data),this.page<this.max&&setTimeout(()=>{this.nextPage()},this.table.options.progressiveLoadDelay);break;case"progressive_scroll":e=this.page===1?e.data:this.table.rowManager.getData().concat(e.data),this.table.rowManager.setData(e,this.page!==1,this.page==1),t=this.table.options.progressiveLoadScrollMargin||this.table.rowManager.element.clientHeight*2,this.table.rowManager.element.scrollHeight<=this.table.rowManager.element.clientHeight+t&&this.page<this.max&&setTimeout(()=>{this.nextPage()});break}return!1}else{if(this.page>this.max&&(console.warn("Remote Pagination Error - Server returned last page value lower than the current page"),i=this.options("paginationOutOfRange"),i))return this.setPage(typeof i=="function"?i.call(this,this.page,this.max):i);this.dispatchExternal("pageLoaded",this.getPage())}else console.warn("Remote Pagination Error - Server response missing '"+(this.options("dataReceiveParams").data||"data")+"' property");return e.data}footerRedraw(){var e=this.table.footerManager.containerElement;Math.ceil(e.clientWidth)-e.scrollWidth<0?this.pagesElement.style.display="none":(this.pagesElement.style.display="",Math.ceil(e.clientWidth)-e.scrollWidth<0&&(this.pagesElement.style.display="none"))}};E(En,"moduleName","page"),E(En,"pageCounters",wI);let E9=En;var vI={local:function(o,e){var t=localStorage.getItem(o+"-"+e);return t?JSON.parse(t):!1},cookie:function(o,e){var t=document.cookie,i=o+"-"+e,a=t.indexOf(i+"="),n,r;return a>-1&&(t=t.slice(a),n=t.indexOf(";"),n>-1&&(t=t.slice(0,n)),r=t.replace(i+"=","")),r?JSON.parse(r):!1}},MI={local:function(o,e,t){localStorage.setItem(o+"-"+e,JSON.stringify(t))},cookie:function(o,e,t){var i=new Date;i.setDate(i.getDate()+1e4),document.cookie=o+"-"+e+"="+JSON.stringify(t)+"; expires="+i.toUTCString()}};const de=class de extends q{constructor(e){super(e),this.mode="",this.id="",this.defWatcherBlock=!1,this.config={},this.readFunc=!1,this.writeFunc=!1,this.registerTableOption("persistence",!1),this.registerTableOption("persistenceID",""),this.registerTableOption("persistenceMode",!0),this.registerTableOption("persistenceReaderFunc",!1),this.registerTableOption("persistenceWriterFunc",!1)}localStorageTest(){var e="_tabulator_test";try{return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}initialize(){if(this.table.options.persistence){var e=this.table.options.persistenceMode,t=this.table.options.persistenceID,i;this.mode=e!==!0?e:this.localStorageTest()?"local":"cookie",this.table.options.persistenceReaderFunc?typeof this.table.options.persistenceReaderFunc=="function"?this.readFunc=this.table.options.persistenceReaderFunc:de.readers[this.table.options.persistenceReaderFunc]?this.readFunc=de.readers[this.table.options.persistenceReaderFunc]:console.warn("Persistence Read Error - invalid reader set",this.table.options.persistenceReaderFunc):de.readers[this.mode]?this.readFunc=de.readers[this.mode]:console.warn("Persistence Read Error - invalid reader set",this.mode),this.table.options.persistenceWriterFunc?typeof this.table.options.persistenceWriterFunc=="function"?this.writeFunc=this.table.options.persistenceWriterFunc:de.writers[this.table.options.persistenceWriterFunc]?this.writeFunc=de.writers[this.table.options.persistenceWriterFunc]:console.warn("Persistence Write Error - invalid reader set",this.table.options.persistenceWriterFunc):de.writers[this.mode]?this.writeFunc=de.writers[this.mode]:console.warn("Persistence Write Error - invalid writer set",this.mode),this.id="tabulator-"+(t||this.table.element.getAttribute("id")||""),this.config={sort:this.table.options.persistence===!0||this.table.options.persistence.sort,filter:this.table.options.persistence===!0||this.table.options.persistence.filter,headerFilter:this.table.options.persistence===!0||this.table.options.persistence.headerFilter,group:this.table.options.persistence===!0||this.table.options.persistence.group,page:this.table.options.persistence===!0||this.table.options.persistence.page,columns:this.table.options.persistence===!0?["title","width","visible"]:this.table.options.persistence.columns},this.config.page&&(i=this.retrieveData("page"),i&&(typeof i.paginationSize<"u"&&(this.config.page===!0||this.config.page.size)&&(this.table.options.paginationSize=i.paginationSize),typeof i.paginationInitialPage<"u"&&(this.config.page===!0||this.config.page.page)&&(this.table.options.paginationInitialPage=i.paginationInitialPage))),this.config.group&&(i=this.retrieveData("group"),i&&(typeof i.groupBy<"u"&&(this.config.group===!0||this.config.group.groupBy)&&(this.table.options.groupBy=i.groupBy),typeof i.groupStartOpen<"u"&&(this.config.group===!0||this.config.group.groupStartOpen)&&(this.table.options.groupStartOpen=i.groupStartOpen),typeof i.groupHeader<"u"&&(this.config.group===!0||this.config.group.groupHeader)&&(this.table.options.groupHeader=i.groupHeader))),this.config.columns&&(this.table.options.columns=this.load("columns",this.table.options.columns),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-show",this.save.bind(this,"columns")),this.subscribe("column-hide",this.save.bind(this,"columns")),this.subscribe("column-moved",this.save.bind(this,"columns"))),this.subscribe("table-built",this.tableBuilt.bind(this),0),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("filter-changed",this.eventSave.bind(this,"filter")),this.subscribe("filter-changed",this.eventSave.bind(this,"headerFilter")),this.subscribe("sort-changed",this.eventSave.bind(this,"sort")),this.subscribe("group-changed",this.eventSave.bind(this,"group")),this.subscribe("page-changed",this.eventSave.bind(this,"page")),this.subscribe("column-resized",this.eventSave.bind(this,"columns")),this.subscribe("column-width",this.eventSave.bind(this,"columns")),this.subscribe("layout-refreshed",this.eventSave.bind(this,"columns"))}this.registerTableFunction("getColumnLayout",this.getColumnLayout.bind(this)),this.registerTableFunction("setColumnLayout",this.setColumnLayout.bind(this))}eventSave(e){this.config[e]&&this.save(e)}tableBuilt(){var e,t,i;this.config.sort&&(e=this.load("sort"),e&&(this.table.options.initialSort=e)),this.config.filter&&(t=this.load("filter"),t&&(this.table.options.initialFilter=t)),this.config.headerFilter&&(i=this.load("headerFilter"),i&&(this.table.options.initialHeaderFilter=i))}tableRedraw(e){e&&this.config.columns&&this.save("columns")}getColumnLayout(){return this.parseColumns(this.table.columnManager.getColumns())}setColumnLayout(e){return this.table.columnManager.setColumns(this.mergeDefinition(this.table.options.columns,e,!0)),!0}initializeColumn(e){var t,i;this.config.columns&&(this.defWatcherBlock=!0,t=e.getDefinition(),i=this.config.columns===!0?Object.keys(t):this.config.columns,i.forEach(a=>{var n=Object.getOwnPropertyDescriptor(t,a),r=t[a];n&&Object.defineProperty(t,a,{set:l=>{r=l,this.defWatcherBlock||this.save("columns"),n.set&&n.set(l)},get:()=>(n.get&&n.get(),r)})}),this.defWatcherBlock=!1)}load(e,t){var i=this.retrieveData(e);return t&&(i=i?this.mergeDefinition(t,i):t),i}retrieveData(e){return this.readFunc?this.readFunc(this.id,e):!1}mergeDefinition(e,t,i){var a=[];return t=t||[],t.forEach((n,r)=>{var l=this._findColumn(e,n),h;l&&(i?h=Object.keys(n):this.config.columns===!0||this.config.columns==null?(h=Object.keys(l),h.push("width")):h=this.config.columns,h.forEach(d=>{d!=="columns"&&typeof n[d]<"u"&&(l[d]=n[d])}),l.columns&&(l.columns=this.mergeDefinition(l.columns,n.columns)),a.push(l))}),e.forEach((n,r)=>{var l=this._findColumn(t,n);l||(a.length>r?a.splice(r,0,n):a.push(n))}),a}_findColumn(e,t){var i=t.columns?"group":t.field?"field":"object";return e.find(function(a){switch(i){case"group":return a.title===t.title&&a.columns.length===t.columns.length;case"field":return a.field===t.field;case"object":return a===t}})}save(e){var t={};switch(e){case"columns":t=this.parseColumns(this.table.columnManager.getColumns());break;case"filter":t=this.table.modules.filter.getFilters();break;case"headerFilter":t=this.table.modules.filter.getHeaderFilters();break;case"sort":t=this.validateSorters(this.table.modules.sort.getSort());break;case"group":t=this.getGroupConfig();break;case"page":t=this.getPageConfig();break}this.writeFunc&&this.writeFunc(this.id,e,t)}validateSorters(e){return e.forEach(function(t){t.column=t.field,delete t.field}),e}getGroupConfig(){var e={};return this.config.group&&((this.config.group===!0||this.config.group.groupBy)&&(e.groupBy=this.table.options.groupBy),(this.config.group===!0||this.config.group.groupStartOpen)&&(e.groupStartOpen=this.table.options.groupStartOpen),(this.config.group===!0||this.config.group.groupHeader)&&(e.groupHeader=this.table.options.groupHeader)),e}getPageConfig(){var e={};return this.config.page&&((this.config.page===!0||this.config.page.size)&&(e.paginationSize=this.table.modules.page.getPageSize()),(this.config.page===!0||this.config.page.page)&&(e.paginationInitialPage=this.table.modules.page.getPage())),e}parseColumns(e){var t=[],i=["headerContextMenu","headerMenu","contextMenu","clickMenu"];return e.forEach(a=>{var n={},r=a.getDefinition(),l;a.isGroup?(n.title=r.title,n.columns=this.parseColumns(a.getColumns())):(n.field=a.getField(),this.config.columns===!0||this.config.columns==null?(l=Object.keys(r),l.push("width"),l.push("visible")):l=this.config.columns,l.forEach(h=>{switch(h){case"width":n.width=a.getWidth();break;case"visible":n.visible=a.visible;break;default:typeof r[h]!="function"&&i.indexOf(h)===-1&&(n[h]=r[h])}})),t.push(n)}),t}};E(de,"moduleName","persistence"),E(de,"moduleInitOrder",-10),E(de,"readers",vI),E(de,"writers",MI);let S9=de,CI=(PC=class extends q{constructor(e){super(e),this.columnSubscribers={},this.registerTableOption("rowContextPopup",!1),this.registerTableOption("rowClickPopup",!1),this.registerTableOption("rowDblClickPopup",!1),this.registerTableOption("groupContextPopup",!1),this.registerTableOption("groupClickPopup",!1),this.registerTableOption("groupDblClickPopup",!1),this.registerColumnOption("headerContextPopup"),this.registerColumnOption("headerClickPopup"),this.registerColumnOption("headerDblClickPopup"),this.registerColumnOption("headerPopup"),this.registerColumnOption("headerPopupIcon"),this.registerColumnOption("contextPopup"),this.registerColumnOption("clickPopup"),this.registerColumnOption("dblClickPopup"),this.registerComponentFunction("cell","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("column","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("row","popup",this._componentPopupCall.bind(this)),this.registerComponentFunction("group","popup",this._componentPopupCall.bind(this))}initialize(){this.initializeRowWatchers(),this.initializeGroupWatchers(),this.subscribe("column-init",this.initializeColumn.bind(this))}_componentPopupCall(e,t,i){this.loadPopupEvent(t,null,e,i)}initializeRowWatchers(){this.table.options.rowContextPopup&&(this.subscribe("row-contextmenu",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup)),this.table.on("rowTapHold",this.loadPopupEvent.bind(this,this.table.options.rowContextPopup))),this.table.options.rowClickPopup&&this.subscribe("row-click",this.loadPopupEvent.bind(this,this.table.options.rowClickPopup)),this.table.options.rowDblClickPopup&&this.subscribe("row-dblclick",this.loadPopupEvent.bind(this,this.table.options.rowDblClickPopup))}initializeGroupWatchers(){this.table.options.groupContextPopup&&(this.subscribe("group-contextmenu",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup)),this.table.on("groupTapHold",this.loadPopupEvent.bind(this,this.table.options.groupContextPopup))),this.table.options.groupClickPopup&&this.subscribe("group-click",this.loadPopupEvent.bind(this,this.table.options.groupClickPopup)),this.table.options.groupDblClickPopup&&this.subscribe("group-dblclick",this.loadPopupEvent.bind(this,this.table.options.groupDblClickPopup))}initializeColumn(e){var t=e.definition;t.headerContextPopup&&!this.columnSubscribers.headerContextPopup&&(this.columnSubscribers.headerContextPopup=this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"),this.subscribe("column-contextmenu",this.columnSubscribers.headerContextPopup),this.table.on("headerTapHold",this.loadPopupTableColumnEvent.bind(this,"headerContextPopup"))),t.headerClickPopup&&!this.columnSubscribers.headerClickPopup&&(this.columnSubscribers.headerClickPopup=this.loadPopupTableColumnEvent.bind(this,"headerClickPopup"),this.subscribe("column-click",this.columnSubscribers.headerClickPopup)),t.headerDblClickPopup&&!this.columnSubscribers.headerDblClickPopup&&(this.columnSubscribers.headerDblClickPopup=this.loadPopupTableColumnEvent.bind(this,"headerDblClickPopup"),this.subscribe("column-dblclick",this.columnSubscribers.headerDblClickPopup)),t.headerPopup&&this.initializeColumnHeaderPopup(e),t.contextPopup&&!this.columnSubscribers.contextPopup&&(this.columnSubscribers.contextPopup=this.loadPopupTableCellEvent.bind(this,"contextPopup"),this.subscribe("cell-contextmenu",this.columnSubscribers.contextPopup),this.table.on("cellTapHold",this.loadPopupTableCellEvent.bind(this,"contextPopup"))),t.clickPopup&&!this.columnSubscribers.clickPopup&&(this.columnSubscribers.clickPopup=this.loadPopupTableCellEvent.bind(this,"clickPopup"),this.subscribe("cell-click",this.columnSubscribers.clickPopup)),t.dblClickPopup&&!this.columnSubscribers.dblClickPopup&&(this.columnSubscribers.dblClickPopup=this.loadPopupTableCellEvent.bind(this,"dblClickPopup"),this.subscribe("cell-click",this.columnSubscribers.dblClickPopup))}initializeColumnHeaderPopup(e){var t=e.definition.headerPopupIcon,i;i=document.createElement("span"),i.classList.add("tabulator-header-popup-button"),t?(typeof t=="function"&&(t=t(e.getComponent())),t instanceof HTMLElement?i.appendChild(t):i.innerHTML=t):i.innerHTML="&vellip;",i.addEventListener("click",a=>{a.stopPropagation(),a.preventDefault(),this.loadPopupEvent(e.definition.headerPopup,a,e)}),e.titleElement.insertBefore(i,e.titleElement.firstChild)}loadPopupTableCellEvent(e,t,i){i._cell&&(i=i._cell),i.column.definition[e]&&this.loadPopupEvent(i.column.definition[e],t,i)}loadPopupTableColumnEvent(e,t,i){i._column&&(i=i._column),i.definition[e]&&this.loadPopupEvent(i.definition[e],t,i)}loadPopupEvent(e,t,i,a){var n;function r(l){n=l}i._group?i=i._group:i._row&&(i=i._row),e=typeof e=="function"?e.call(this.table,t,i.getComponent(),r):e,this.loadPopup(t,i,e,n,a)}loadPopup(e,t,i,a,n){var r=!(e instanceof MouseEvent),l,h;i instanceof HTMLElement?l=i:(l=document.createElement("div"),l.innerHTML=i),l.classList.add("tabulator-popup"),l.addEventListener("click",d=>{d.stopPropagation()}),r||e.preventDefault(),h=this.popup(l),typeof a=="function"&&h.renderCallback(a),e?h.show(e):h.show(t.getElement(),n||"center"),h.hideOnBlur(()=>{this.dispatchExternal("popupClosed",t.getComponent())}),this.dispatchExternal("popupOpened",t.getComponent())}},E(PC,"moduleName","popup"),PC);class XC extends q{constructor(e){super(e),this.element=!1,this.manualBlock=!1,this.beforeprintEventHandler=null,this.afterprintEventHandler=null,this.registerTableOption("printAsHtml",!1),this.registerTableOption("printFormatter",!1),this.registerTableOption("printHeader",!1),this.registerTableOption("printFooter",!1),this.registerTableOption("printStyled",!0),this.registerTableOption("printRowRange","visible"),this.registerTableOption("printConfig",{}),this.registerColumnOption("print"),this.registerColumnOption("titlePrint")}initialize(){this.table.options.printAsHtml&&(this.beforeprintEventHandler=this.replaceTable.bind(this),this.afterprintEventHandler=this.cleanup.bind(this),window.addEventListener("beforeprint",this.beforeprintEventHandler),window.addEventListener("afterprint",this.afterprintEventHandler),this.subscribe("table-destroy",this.destroy.bind(this))),this.registerTableFunction("print",this.printFullscreen.bind(this))}destroy(){this.table.options.printAsHtml&&(window.removeEventListener("beforeprint",this.beforeprintEventHandler),window.removeEventListener("afterprint",this.afterprintEventHandler))}replaceTable(){this.manualBlock||(this.element=document.createElement("div"),this.element.classList.add("tabulator-print-table"),this.element.appendChild(this.table.modules.export.generateTable(this.table.options.printConfig,this.table.options.printStyled,this.table.options.printRowRange,"print")),this.table.element.style.display="none",this.table.element.parentNode.insertBefore(this.element,this.table.element))}cleanup(){document.body.classList.remove("tabulator-print-fullscreen-hide"),this.element&&this.element.parentNode&&(this.element.parentNode.removeChild(this.element),this.table.element.style.display="")}printFullscreen(e,t,i){var a=window.scrollX,n=window.scrollY,r=document.createElement("div"),l=document.createElement("div"),h=this.table.modules.export.generateTable(typeof i<"u"?i:this.table.options.printConfig,typeof t<"u"?t:this.table.options.printStyled,e||this.table.options.printRowRange,"print"),d,u;this.manualBlock=!0,this.element=document.createElement("div"),this.element.classList.add("tabulator-print-fullscreen"),this.table.options.printHeader&&(r.classList.add("tabulator-print-header"),d=typeof this.table.options.printHeader=="function"?this.table.options.printHeader.call(this.table):this.table.options.printHeader,typeof d=="string"?r.innerHTML=d:r.appendChild(d),this.element.appendChild(r)),this.element.appendChild(h),this.table.options.printFooter&&(l.classList.add("tabulator-print-footer"),u=typeof this.table.options.printFooter=="function"?this.table.options.printFooter.call(this.table):this.table.options.printFooter,typeof u=="string"?l.innerHTML=u:l.appendChild(u),this.element.appendChild(l)),document.body.classList.add("tabulator-print-fullscreen-hide"),document.body.appendChild(this.element),this.table.options.printFormatter&&this.table.options.printFormatter(this.element,h),window.print(),this.cleanup(),window.scrollTo(a,n),this.manualBlock=!1}}E(XC,"moduleName","print");class KC extends q{constructor(e){super(e),this.data=!1,this.blocked=!1,this.origFuncs={},this.currentVersion=0,this.registerTableOption("reactiveData",!1)}initialize(){this.table.options.reactiveData&&(this.subscribe("cell-value-save-before",this.block.bind(this,"cellsave")),this.subscribe("cell-value-save-after",this.unblock.bind(this,"cellsave")),this.subscribe("row-data-save-before",this.block.bind(this,"rowsave")),this.subscribe("row-data-save-after",this.unblock.bind(this,"rowsave")),this.subscribe("row-data-init-after",this.watchRow.bind(this)),this.subscribe("data-processing",this.watchData.bind(this)),this.subscribe("table-destroy",this.unwatchData.bind(this)))}watchData(e){var t=this,i;this.currentVersion++,i=this.currentVersion,this.unwatchData(),this.data=e,this.origFuncs.push=e.push,Object.defineProperty(this.data,"push",{enumerable:!1,configurable:!0,value:function(){var a=Array.from(arguments),n;return!t.blocked&&i===t.currentVersion&&(t.block("data-push"),a.forEach(r=>{t.table.rowManager.addRowActual(r,!1)}),n=t.origFuncs.push.apply(e,arguments),t.unblock("data-push")),n}}),this.origFuncs.unshift=e.unshift,Object.defineProperty(this.data,"unshift",{enumerable:!1,configurable:!0,value:function(){var a=Array.from(arguments),n;return!t.blocked&&i===t.currentVersion&&(t.block("data-unshift"),a.forEach(r=>{t.table.rowManager.addRowActual(r,!0)}),n=t.origFuncs.unshift.apply(e,arguments),t.unblock("data-unshift")),n}}),this.origFuncs.shift=e.shift,Object.defineProperty(this.data,"shift",{enumerable:!1,configurable:!0,value:function(){var a,n;return!t.blocked&&i===t.currentVersion&&(t.block("data-shift"),t.data.length&&(a=t.table.rowManager.getRowFromDataObject(t.data[0]),a&&a.deleteActual()),n=t.origFuncs.shift.call(e),t.unblock("data-shift")),n}}),this.origFuncs.pop=e.pop,Object.defineProperty(this.data,"pop",{enumerable:!1,configurable:!0,value:function(){var a,n;return!t.blocked&&i===t.currentVersion&&(t.block("data-pop"),t.data.length&&(a=t.table.rowManager.getRowFromDataObject(t.data[t.data.length-1]),a&&a.deleteActual()),n=t.origFuncs.pop.call(e),t.unblock("data-pop")),n}}),this.origFuncs.splice=e.splice,Object.defineProperty(this.data,"splice",{enumerable:!1,configurable:!0,value:function(){var a=Array.from(arguments),n=a[0]<0?e.length+a[0]:a[0],r=a[1],l=a[2]?a.slice(2):!1,h,d;if(!t.blocked&&i===t.currentVersion){if(t.block("data-splice"),l&&(h=e[n]?t.table.rowManager.getRowFromDataObject(e[n]):!1,h?l.forEach(p=>{t.table.rowManager.addRowActual(p,!0,h,!0)}):(l=l.slice().reverse(),l.forEach(p=>{t.table.rowManager.addRowActual(p,!0,!1,!0)}))),r!==0){var u=e.slice(n,typeof a[1]>"u"?a[1]:n+r);u.forEach((p,y)=>{var f=t.table.rowManager.getRowFromDataObject(p);f&&f.deleteActual(y!==u.length-1)})}(l||r!==0)&&t.table.rowManager.reRenderInPosition(),d=t.origFuncs.splice.apply(e,arguments),t.unblock("data-splice")}return d}})}unwatchData(){if(this.data!==!1)for(var e in this.origFuncs)Object.defineProperty(this.data,e,{enumerable:!0,configurable:!0,writable:!0,value:this.origFuncs.key})}watchRow(e){var t=e.getData();for(var i in t)this.watchKey(e,t,i);this.table.options.dataTree&&this.watchTreeChildren(e)}watchTreeChildren(e){var t=this,i=e.getData()[this.table.options.dataTreeChildField],a={};i&&(a.push=i.push,Object.defineProperty(i,"push",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-push");var n=a.push.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-push")}return n}}),a.unshift=i.unshift,Object.defineProperty(i,"unshift",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-unshift");var n=a.unshift.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-unshift")}return n}}),a.shift=i.shift,Object.defineProperty(i,"shift",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-shift");var n=a.shift.call(i);this.rebuildTree(e),t.unblock("tree-shift")}return n}}),a.pop=i.pop,Object.defineProperty(i,"pop",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-pop");var n=a.pop.call(i);this.rebuildTree(e),t.unblock("tree-pop")}return n}}),a.splice=i.splice,Object.defineProperty(i,"splice",{enumerable:!1,configurable:!0,value:()=>{if(!t.blocked){t.block("tree-splice");var n=a.splice.apply(i,arguments);this.rebuildTree(e),t.unblock("tree-splice")}return n}}))}rebuildTree(e){this.table.modules.dataTree.initializeRow(e),this.table.modules.dataTree.layoutRow(e),this.table.rowManager.refreshActiveData("tree",!1,!0)}watchKey(e,t,i){var a=this,n=Object.getOwnPropertyDescriptor(t,i),r=t[i],l=this.currentVersion;Object.defineProperty(t,i,{set:h=>{if(r=h,!a.blocked&&l===a.currentVersion){a.block("key");var d={};d[i]=h,e.updateData(d),a.unblock("key")}n.set&&n.set(h)},get:()=>(n.get&&n.get(),r)})}unwatchRow(e){var t=e.getData();for(var i in t)Object.defineProperty(t,i,{value:t[i]})}block(e){this.blocked||(this.blocked=e)}unblock(e){this.blocked===e&&(this.blocked=!1)}}E(KC,"moduleName","reactiveData");class JC extends q{constructor(e){super(e),this.startColumn=!1,this.startX=!1,this.startWidth=!1,this.latestX=!1,this.handle=null,this.initialNextColumn=null,this.nextColumn=null,this.initialized=!1,this.registerColumnOption("resizable",!0),this.registerTableOption("resizableColumnFit",!1),this.registerTableOption("resizableColumnGuide",!1)}initialize(){this.subscribe("column-rendered",this.layoutColumnHeader.bind(this))}initializeEventWatchers(){this.initialized||(this.subscribe("cell-rendered",this.layoutCellHandles.bind(this)),this.subscribe("cell-delete",this.deInitializeComponent.bind(this)),this.subscribe("cell-height",this.resizeHandle.bind(this)),this.subscribe("column-moved",this.columnLayoutUpdated.bind(this)),this.subscribe("column-hide",this.deInitializeColumn.bind(this)),this.subscribe("column-show",this.columnLayoutUpdated.bind(this)),this.subscribe("column-width",this.columnWidthUpdated.bind(this)),this.subscribe("column-delete",this.deInitializeComponent.bind(this)),this.subscribe("column-height",this.resizeHandle.bind(this)),this.initialized=!0)}layoutCellHandles(e){e.row.type==="row"&&(this.deInitializeComponent(e),this.initializeColumn("cell",e,e.column,e.element))}layoutColumnHeader(e){e.definition.resizable&&(this.initializeEventWatchers(),this.deInitializeComponent(e),this.initializeColumn("header",e,e,e.element))}columnLayoutUpdated(e){var t=e.prevColumn();this.reinitializeColumn(e),t&&this.reinitializeColumn(t)}columnWidthUpdated(e){e.modules.frozen&&(this.table.modules.frozenColumns.leftColumns.includes(e)?this.table.modules.frozenColumns.leftColumns.forEach(t=>{this.reinitializeColumn(t)}):this.table.modules.frozenColumns.rightColumns.includes(e)&&this.table.modules.frozenColumns.rightColumns.forEach(t=>{this.reinitializeColumn(t)}))}frozenColumnOffset(e){var t=!1;return e.modules.frozen&&(t=e.modules.frozen.marginValue,e.modules.frozen.position==="left"?t+=e.getWidth()-3:t&&(t-=3)),t!==!1?t+"px":!1}reinitializeColumn(e){var t=this.frozenColumnOffset(e);e.cells.forEach(i=>{i.modules.resize&&i.modules.resize.handleEl&&(t&&(i.modules.resize.handleEl.style[e.modules.frozen.position]=t,i.modules.resize.handleEl.style["z-index"]=11),i.element.after(i.modules.resize.handleEl))}),e.modules.resize&&e.modules.resize.handleEl&&(t&&(e.modules.resize.handleEl.style[e.modules.frozen.position]=t),e.element.after(e.modules.resize.handleEl))}initializeColumn(e,t,i,a){var n=this,r=!1,l=i.definition.resizable,h={},d=i.getLastColumn();if(e==="header"&&(r=i.definition.formatter=="textarea"||i.definition.variableHeight,h={variableHeight:r}),(l===!0||l==e)&&this._checkResizability(d)){var u=document.createElement("span");u.className="tabulator-col-resize-handle",u.addEventListener("click",function(y){y.stopPropagation()});var p=function(y){n.startColumn=i,n.initialNextColumn=n.nextColumn=d.nextColumn(),n._mouseDown(y,d,u)};u.addEventListener("mousedown",p),u.addEventListener("touchstart",p,{passive:!0}),u.addEventListener("dblclick",y=>{var f=d.getWidth();y.stopPropagation(),d.reinitializeWidth(!0),f!==d.getWidth()&&(n.dispatch("column-resized",d),n.dispatchExternal("columnResized",d.getComponent()))}),i.modules.frozen&&(u.style.position="sticky",u.style[i.modules.frozen.position]=this.frozenColumnOffset(i)),h.handleEl=u,a.parentNode&&i.visible&&a.after(u)}t.modules.resize=h}deInitializeColumn(e){this.deInitializeComponent(e),e.cells.forEach(t=>{this.deInitializeComponent(t)})}deInitializeComponent(e){var t;e.modules.resize&&(t=e.modules.resize.handleEl,t&&t.parentElement&&t.parentElement.removeChild(t))}resizeHandle(e,t){e.modules.resize&&e.modules.resize.handleEl&&(e.modules.resize.handleEl.style.height=t)}resize(e,t){var i=typeof e.clientX>"u"?e.touches[0].clientX:e.clientX,a=i-this.startX,n=i-this.latestX,r,l;if(this.latestX=i,this.table.rtl&&(a=-a,n=-n),r=t.width==t.minWidth||t.width==t.maxWidth,t.setWidth(this.startWidth+a),l=t.width==t.minWidth||t.width==t.maxWidth,n<0&&(this.nextColumn=this.initialNextColumn),this.table.options.resizableColumnFit&&this.nextColumn&&!(r&&l)){let h=this.nextColumn.getWidth();n>0&&h<=this.nextColumn.minWidth&&(this.nextColumn=this.nextColumn.nextColumn()),this.nextColumn&&this.nextColumn.setWidth(this.nextColumn.getWidth()-n)}this.table.columnManager.rerenderColumns(!0),!this.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights()}calcGuidePosition(e,t,i){var a=typeof e.clientX>"u"?e.touches[0].clientX:e.clientX,n=i.getBoundingClientRect().x-this.table.element.getBoundingClientRect().x,r=this.table.element.getBoundingClientRect().x,l=t.element.getBoundingClientRect().left-r,h=a-this.startX,d=Math.max(n+h,l+t.minWidth);return t.maxWidth&&(d=Math.min(d,l+t.maxWidth)),d}_checkResizability(e){return e.definition.resizable}_mouseDown(e,t,i){var a=this,n;this.dispatchExternal("columnResizing",t.getComponent()),a.table.options.resizableColumnGuide&&(n=document.createElement("span"),n.classList.add("tabulator-col-resize-guide"),a.table.element.appendChild(n),setTimeout(()=>{n.style.left=a.calcGuidePosition(e,t,i)+"px"})),a.table.element.classList.add("tabulator-block-select");function r(h){a.table.options.resizableColumnGuide?n.style.left=a.calcGuidePosition(h,t,i)+"px":a.resize(h,t)}function l(h){a.table.options.resizableColumnGuide&&(a.resize(h,t),n.remove()),a.startColumn.modules.edit&&(a.startColumn.modules.edit.blocked=!1),a.table.browserSlow&&t.modules.resize&&t.modules.resize.variableHeight&&t.checkCellHeights(),document.body.removeEventListener("mouseup",l),document.body.removeEventListener("mousemove",r),i.removeEventListener("touchmove",r),i.removeEventListener("touchend",l),a.table.element.classList.remove("tabulator-block-select"),a.startWidth!==t.getWidth()&&(a.table.columnManager.verticalAlignHeaders(),a.dispatch("column-resized",t),a.dispatchExternal("columnResized",t.getComponent()))}e.stopPropagation(),a.startColumn.modules.edit&&(a.startColumn.modules.edit.blocked=!0),a.startX=typeof e.clientX>"u"?e.touches[0].clientX:e.clientX,a.latestX=a.startX,a.startWidth=t.getWidth(),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",l),i.addEventListener("touchmove",r,{passive:!0}),i.addEventListener("touchend",l)}}E(JC,"moduleName","resizeColumns");class QC extends q{constructor(e){super(e),this.startColumn=!1,this.startY=!1,this.startHeight=!1,this.handle=null,this.prevHandle=null,this.registerTableOption("resizableRows",!1),this.registerTableOption("resizableRowGuide",!1)}initialize(){this.table.options.resizableRows&&this.subscribe("row-layout-after",this.initializeRow.bind(this))}initializeRow(e){var t=this,i=e.getElement(),a=document.createElement("div");a.className="tabulator-row-resize-handle";var n=document.createElement("div");n.className="tabulator-row-resize-handle prev",a.addEventListener("click",function(h){h.stopPropagation()});var r=function(h){t.startRow=e,t._mouseDown(h,e,a)};a.addEventListener("mousedown",r),a.addEventListener("touchstart",r,{passive:!0}),n.addEventListener("click",function(h){h.stopPropagation()});var l=function(h){var d=t.table.rowManager.prevDisplayRow(e);d&&(t.startRow=d,t._mouseDown(h,d,n))};n.addEventListener("mousedown",l),n.addEventListener("touchstart",l,{passive:!0}),i.appendChild(a),i.appendChild(n)}resize(e,t){t.setHeight(this.startHeight+((typeof e.screenY>"u"?e.touches[0].screenY:e.screenY)-this.startY))}calcGuidePosition(e,t,i){var a=typeof e.screenY>"u"?e.touches[0].screenY:e.screenY,n=i.getBoundingClientRect().y-this.table.element.getBoundingClientRect().y,r=this.table.element.getBoundingClientRect().y,l=t.element.getBoundingClientRect().top-r,h=a-this.startY;return Math.max(n+h,l)}_mouseDown(e,t,i){var a=this,n;a.dispatchExternal("rowResizing",t.getComponent()),a.table.options.resizableRowGuide&&(n=document.createElement("span"),n.classList.add("tabulator-row-resize-guide"),a.table.element.appendChild(n),setTimeout(()=>{n.style.top=a.calcGuidePosition(e,t,i)+"px"})),a.table.element.classList.add("tabulator-block-select");function r(h){a.table.options.resizableRowGuide?n.style.top=a.calcGuidePosition(h,t,i)+"px":a.resize(h,t)}function l(h){a.table.options.resizableRowGuide&&(a.resize(h,t),n.remove()),document.body.removeEventListener("mouseup",r),document.body.removeEventListener("mousemove",r),i.removeEventListener("touchmove",r),i.removeEventListener("touchend",l),a.table.element.classList.remove("tabulator-block-select"),a.dispatchExternal("rowResized",t.getComponent())}e.stopPropagation(),a.startY=typeof e.screenY>"u"?e.touches[0].screenY:e.screenY,a.startHeight=t.getHeight(),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",l),i.addEventListener("touchmove",r,{passive:!0}),i.addEventListener("touchend",l)}}E(QC,"moduleName","resizeRows");class ex extends q{constructor(e){super(e),this.binding=!1,this.visibilityObserver=!1,this.resizeObserver=!1,this.containerObserver=!1,this.tableHeight=0,this.tableWidth=0,this.containerHeight=0,this.containerWidth=0,this.autoResize=!1,this.visible=!1,this.initialized=!1,this.initialRedraw=!1,this.registerTableOption("autoResize",!0)}initialize(){if(this.table.options.autoResize){var e=this.table,t;this.tableHeight=e.element.clientHeight,this.tableWidth=e.element.clientWidth,e.element.parentNode&&(this.containerHeight=e.element.parentNode.clientHeight,this.containerWidth=e.element.parentNode.clientWidth),typeof IntersectionObserver<"u"&&typeof ResizeObserver<"u"&&e.rowManager.getRenderMode()==="virtual"?(this.initializeVisibilityObserver(),this.autoResize=!0,this.resizeObserver=new ResizeObserver(i=>{if(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell)){var a=Math.floor(i[0].contentRect.height),n=Math.floor(i[0].contentRect.width);(this.tableHeight!=a||this.tableWidth!=n)&&(this.tableHeight=a,this.tableWidth=n,e.element.parentNode&&(this.containerHeight=e.element.parentNode.clientHeight,this.containerWidth=e.element.parentNode.clientWidth),this.redrawTable())}}),this.resizeObserver.observe(e.element),t=window.getComputedStyle(e.element),this.table.element.parentNode&&!this.table.rowManager.fixedHeight&&(t.getPropertyValue("max-height")||t.getPropertyValue("min-height"))&&(this.containerObserver=new ResizeObserver(i=>{if(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell)){var a=Math.floor(i[0].contentRect.height),n=Math.floor(i[0].contentRect.width);(this.containerHeight!=a||this.containerWidth!=n)&&(this.containerHeight=a,this.containerWidth=n,this.tableHeight=e.element.clientHeight,this.tableWidth=e.element.clientWidth),this.redrawTable()}}),this.containerObserver.observe(this.table.element.parentNode)),this.subscribe("table-resize",this.tableResized.bind(this))):(this.binding=function(){(!e.browserMobile||e.browserMobile&&(!e.modules.edit||e.modules.edit&&!e.modules.edit.currentCell))&&(e.columnManager.rerenderColumns(!0),e.redraw())},window.addEventListener("resize",this.binding)),this.subscribe("table-destroy",this.clearBindings.bind(this))}}initializeVisibilityObserver(){this.visibilityObserver=new IntersectionObserver(e=>{this.visible=e[0].isIntersecting,this.initialized?this.visible&&(this.redrawTable(this.initialRedraw),this.initialRedraw=!1):(this.initialized=!0,this.initialRedraw=!this.visible)}),this.visibilityObserver.observe(this.table.element)}redrawTable(e){this.initialized&&this.visible&&(this.table.columnManager.rerenderColumns(!0),this.table.redraw(e))}tableResized(){this.table.rowManager.redraw()}clearBindings(){this.binding&&window.removeEventListener("resize",this.binding),this.resizeObserver&&this.resizeObserver.unobserve(this.table.element),this.visibilityObserver&&this.visibilityObserver.unobserve(this.table.element),this.containerObserver&&this.containerObserver.unobserve(this.table.element.parentNode)}}E(ex,"moduleName","resizeTable");function xI(o,e,t){var i=document.createElement("div"),a=o.getRow()._row.modules.responsiveLayout;i.classList.add("tabulator-responsive-collapse-toggle"),i.innerHTML=`<svg class='tabulator-responsive-collapse-toggle-open' viewbox="0 0 24 24">
10
10
  <line x1="7" y1="12" x2="17" y2="12" fill="none" stroke-width="3" stroke-linecap="round" />
11
11
  <line y1="7" x1="12" y2="17" x2="12" fill="none" stroke-width="3" stroke-linecap="round" />
12
12
  </svg>
@@ -14,13 +14,13 @@
14
14
  <svg class='tabulator-responsive-collapse-toggle-close' viewbox="0 0 24 24">
15
15
  <line x1="7" y1="12" x2="17" y2="12" fill="none" stroke-width="3" stroke-linecap="round" />
16
16
  </svg>`,o.getElement().classList.add("tabulator-row-handle");function n(r){var l=a.element;a.open=r,l&&(a.open?(i.classList.add("open"),l.style.display=""):(i.classList.remove("open"),l.style.display="none"))}return i.addEventListener("click",function(r){r.stopImmediatePropagation(),n(!a.open),o.getTable().rowManager.adjustTableSize()}),n(a.open),i}var LI={format:{formatters:{responsiveCollapse:xI}}};class I9 extends q{constructor(e){super(e),this.columns=[],this.hiddenColumns=[],this.mode="",this.index=0,this.collapseFormatter=[],this.collapseStartOpen=!0,this.collapseHandleColumn=!1,this.registerTableOption("responsiveLayout",!1),this.registerTableOption("responsiveLayoutCollapseStartOpen",!0),this.registerTableOption("responsiveLayoutCollapseUseFormatters",!0),this.registerTableOption("responsiveLayoutCollapseFormatter",!1),this.registerColumnOption("responsive")}initialize(){this.table.options.responsiveLayout&&(this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("column-show",this.updateColumnVisibility.bind(this)),this.subscribe("column-hide",this.updateColumnVisibility.bind(this)),this.subscribe("columns-loaded",this.initializeResponsivity.bind(this)),this.subscribe("column-moved",this.initializeResponsivity.bind(this)),this.subscribe("column-add",this.initializeResponsivity.bind(this)),this.subscribe("column-delete",this.initializeResponsivity.bind(this)),this.subscribe("table-redrawing",this.tableRedraw.bind(this)),this.table.options.responsiveLayout==="collapse"&&(this.subscribe("row-data-changed",this.generateCollapsedRowContent.bind(this)),this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout",this.layoutRow.bind(this))))}tableRedraw(e){["fitColumns","fitDataStretch"].indexOf(this.layoutMode())===-1&&(e||this.update())}initializeResponsivity(){var e=[];this.mode=this.table.options.responsiveLayout,this.collapseFormatter=this.table.options.responsiveLayoutCollapseFormatter||this.formatCollapsedData,this.collapseStartOpen=this.table.options.responsiveLayoutCollapseStartOpen,this.hiddenColumns=[],this.collapseFormatter&&(this.collapseFormatter=this.collapseFormatter.bind(this.table)),this.table.columnManager.columnsByIndex.forEach((t,i)=>{t.modules.responsive&&t.modules.responsive.order&&t.modules.responsive.visible&&(t.modules.responsive.index=i,e.push(t),!t.visible&&this.mode==="collapse"&&this.hiddenColumns.push(t))}),e=e.reverse(),e=e.sort((t,i)=>{var a=i.modules.responsive.order-t.modules.responsive.order;return a||i.modules.responsive.index-t.modules.responsive.index}),this.columns=e,this.mode==="collapse"&&this.generateCollapsedContent();for(let t of this.table.columnManager.columnsByIndex)if(t.definition.formatter=="responsiveCollapse"){this.collapseHandleColumn=t;break}this.collapseHandleColumn&&(this.hiddenColumns.length?this.collapseHandleColumn.show():this.collapseHandleColumn.hide())}initializeColumn(e){var t=e.getDefinition();e.modules.responsive={order:typeof t.responsive>"u"?1:t.responsive,visible:t.visible!==!1}}initializeRow(e){var t;e.type!=="calc"&&(t=document.createElement("div"),t.classList.add("tabulator-responsive-collapse"),e.modules.responsiveLayout={element:t,open:this.collapseStartOpen},this.collapseStartOpen||(t.style.display="none"))}layoutRow(e){var t=e.getElement();e.modules.responsiveLayout&&(t.appendChild(e.modules.responsiveLayout.element),this.generateCollapsedRowContent(e))}updateColumnVisibility(e,t){!t&&e.modules.responsive&&(e.modules.responsive.visible=e.visible,this.initializeResponsivity())}hideColumn(e){var t=this.hiddenColumns.length;e.hide(!1,!0),this.mode==="collapse"&&(this.hiddenColumns.unshift(e),this.generateCollapsedContent(),this.collapseHandleColumn&&!t&&this.collapseHandleColumn.show())}showColumn(e){var t;e.show(!1,!0),e.setWidth(e.getWidth()),this.mode==="collapse"&&(t=this.hiddenColumns.indexOf(e),t>-1&&this.hiddenColumns.splice(t,1),this.generateCollapsedContent(),this.collapseHandleColumn&&!this.hiddenColumns.length&&this.collapseHandleColumn.hide())}update(){for(var e=!0;e;){let t=this.table.modules.layout.getMode()=="fitColumns"?this.table.columnManager.getFlexBaseWidth():this.table.columnManager.getWidth(),i=(this.table.options.headerVisible?this.table.columnManager.element.clientWidth:this.table.element.clientWidth)-t;if(i<0){let a=this.columns[this.index];a?(this.hideColumn(a),this.index++):e=!1}else{let a=this.columns[this.index-1];a&&i>0&&i>=a.getWidth()?(this.showColumn(a),this.index--):e=!1}this.table.rowManager.activeRowsCount||this.table.rowManager.renderEmptyScroll()}}generateCollapsedContent(){var e=this.table.rowManager.getDisplayRows();e.forEach(t=>{this.generateCollapsedRowContent(t)})}generateCollapsedRowContent(e){var t,i;if(e.modules.responsiveLayout){for(t=e.modules.responsiveLayout.element;t.firstChild;)t.removeChild(t.firstChild);i=this.collapseFormatter(this.generateCollapsedRowData(e)),i&&t.appendChild(i),e.calcHeight(!0)}}generateCollapsedRowData(e){var t=e.getData(),i=[],a;return this.hiddenColumns.forEach(n=>{var r=n.getFieldValue(t);if(n.definition.title&&n.field)if(n.modules.format&&this.table.options.responsiveLayoutCollapseUseFormatters){let l=function(h){h()};a={value:!1,data:{},getValue:function(){return r},getData:function(){return t},getType:function(){return"cell"},getElement:function(){return document.createElement("div")},getRow:function(){return e.getComponent()},getColumn:function(){return n.getComponent()},getTable:()=>this.table},i.push({field:n.field,title:n.definition.title,value:n.modules.format.formatter.call(this.table.modules.format,a,n.modules.format.params,l)})}else i.push({field:n.field,title:n.definition.title,value:r})}),i}formatCollapsedData(e){var t=document.createElement("table");return e.forEach(i=>{var a=document.createElement("tr"),n=document.createElement("td"),r=document.createElement("td"),l,h=document.createElement("strong");n.appendChild(h),this.modules.localize.bind("columns|"+i.field,function(d){h.innerHTML=d||i.title}),i.value instanceof Node?(l=document.createElement("div"),l.appendChild(i.value),r.appendChild(l)):r.innerHTML=i.value,a.appendChild(n),a.appendChild(r),t.appendChild(a)}),Object.keys(e).length?t:""}}E(I9,"moduleName","responsiveLayout"),E(I9,"moduleExtensions",LI);function EI(o,e,t){var i=document.createElement("input"),a=!1;if(i.type="checkbox",i.setAttribute("aria-label","Select Row"),this.table.modExists("selectRow",!0))if(i.addEventListener("click",r=>{r.stopPropagation()}),typeof o.getRow=="function"){var n=o.getRow();n instanceof Rn?(i.addEventListener("change",r=>{this.table.options.selectableRowsRangeMode==="click"&&a?a=!1:n.toggleSelect()}),this.table.options.selectableRowsRangeMode==="click"&&i.addEventListener("click",r=>{a=!0,this.table.modules.selectRow.handleComplexRowClick(n._row,r)}),i.checked=n.isSelected&&n.isSelected(),this.table.modules.selectRow.registerRowSelectCheckbox(n,i)):i=""}else i.addEventListener("change",r=>{this.table.modules.selectRow.selectedRows.length?this.table.deselectRow():this.table.selectRow(e.rowRange)}),this.table.modules.selectRow.registerHeaderSelectCheckbox(i);return i}var SI={format:{formatters:{rowSelection:EI}}};class T9 extends q{constructor(e){super(e),this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],this.headerCheckboxElement=null,this.registerTableOption("selectableRows","highlight"),this.registerTableOption("selectableRowsRangeMode","drag"),this.registerTableOption("selectableRowsRollingSelection",!0),this.registerTableOption("selectableRowsPersistence",!0),this.registerTableOption("selectableRowsCheck",function(t,i){return!0}),this.registerTableFunction("selectRow",this.selectRows.bind(this)),this.registerTableFunction("deselectRow",this.deselectRows.bind(this)),this.registerTableFunction("toggleSelectRow",this.toggleRow.bind(this)),this.registerTableFunction("getSelectedRows",this.getSelectedRows.bind(this)),this.registerTableFunction("getSelectedData",this.getSelectedData.bind(this)),this.registerComponentFunction("row","select",this.selectRows.bind(this)),this.registerComponentFunction("row","deselect",this.deselectRows.bind(this)),this.registerComponentFunction("row","toggleSelect",this.toggleRow.bind(this)),this.registerComponentFunction("row","isSelected",this.isRowSelected.bind(this))}initialize(){this.deprecatedOptionsCheck(),this.table.options.selectableRows==="highlight"&&this.table.options.selectableRange&&(this.table.options.selectableRows=!1),this.table.options.selectableRows!==!1&&(this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-deleting",this.rowDeleted.bind(this)),this.subscribe("rows-wipe",this.clearSelectionData.bind(this)),this.subscribe("rows-retrieve",this.rowRetrieve.bind(this)),this.table.options.selectableRows&&!this.table.options.selectableRowsPersistence&&this.subscribe("data-refreshing",this.deselectRows.bind(this)))}deprecatedOptionsCheck(){}rowRetrieve(e,t){return e==="selected"?this.selectedRows:t}rowDeleted(e){this._deselectRow(e,!0)}clearSelectionData(e){var t=this.selectedRows.length;this.selecting=!1,this.lastClickedRow=!1,this.selectPrev=[],this.selectedRows=[],t&&e!==!0&&this._rowSelectionChanged()}initializeRow(e){var t=this,i=t.checkRowSelectability(e),a=e.getElement(),n=function(){setTimeout(function(){t.selecting=!1},50),document.body.removeEventListener("mouseup",n)};e.modules.select={selected:!1},a.classList.toggle("tabulator-selectable",i),a.classList.toggle("tabulator-unselectable",!i),t.checkRowSelectability(e)&&t.table.options.selectableRows&&t.table.options.selectableRows!="highlight"&&(t.table.options.selectableRowsRangeMode==="click"?a.addEventListener("click",this.handleComplexRowClick.bind(this,e)):(a.addEventListener("click",function(r){(!t.table.modExists("edit")||!t.table.modules.edit.getCurrentCell())&&t.table._clearSelection(),t.selecting||t.toggleRow(e)}),a.addEventListener("mousedown",function(r){if(r.shiftKey)return t.table._clearSelection(),t.selecting=!0,t.selectPrev=[],document.body.addEventListener("mouseup",n),document.body.addEventListener("keyup",n),t.toggleRow(e),!1}),a.addEventListener("mouseenter",function(r){t.selecting&&(t.table._clearSelection(),t.toggleRow(e),t.selectPrev[1]==e&&t.toggleRow(t.selectPrev[0]))}),a.addEventListener("mouseout",function(r){t.selecting&&(t.table._clearSelection(),t.selectPrev.unshift(e))})))}handleComplexRowClick(e,t){if(t.shiftKey){this.table._clearSelection(),this.lastClickedRow=this.lastClickedRow||e;var i=this.table.rowManager.getDisplayRowIndex(this.lastClickedRow),a=this.table.rowManager.getDisplayRowIndex(e),n=i<=a?i:a,r=i>=a?i:a,l=this.table.rowManager.getDisplayRows().slice(0),h=l.splice(n,r-n+1);t.ctrlKey||t.metaKey?(h.forEach(d=>{d!==this.lastClickedRow&&(this.table.options.selectableRows!==!0&&!this.isRowSelected(e)?this.selectedRows.length<this.table.options.selectableRows&&this.toggleRow(d):this.toggleRow(d))}),this.lastClickedRow=e):(this.deselectRows(void 0,!0),this.table.options.selectableRows!==!0&&h.length>this.table.options.selectableRows&&(h=h.slice(0,this.table.options.selectableRows)),this.selectRows(h)),this.table._clearSelection()}else t.ctrlKey||t.metaKey?(this.toggleRow(e),this.lastClickedRow=e):(this.deselectRows(void 0,!0),this.selectRows(e),this.lastClickedRow=e)}checkRowSelectability(e){return e&&e.type==="row"?this.table.options.selectableRowsCheck.call(this.table,e.getComponent()):!1}toggleRow(e){this.checkRowSelectability(e)&&(e.modules.select&&e.modules.select.selected?this._deselectRow(e):this._selectRow(e))}selectRows(e){var t=[],i,a;switch(typeof e){case"undefined":i=this.table.rowManager.rows;break;case"number":i=this.table.rowManager.findRow(e);break;case"string":i=this.table.rowManager.findRow(e),i||(i=this.table.rowManager.getRows(e));break;default:i=e;break}Array.isArray(i)?i.length&&(i.forEach(n=>{a=this._selectRow(n,!0,!0),a&&t.push(a)}),this._rowSelectionChanged(!1,t)):i&&this._selectRow(i,!1,!0)}_selectRow(e,t,i){if(!isNaN(this.table.options.selectableRows)&&this.table.options.selectableRows!==!0&&!i&&this.selectedRows.length>=this.table.options.selectableRows)if(this.table.options.selectableRowsRollingSelection)this._deselectRow(this.selectedRows[0]);else return!1;var a=this.table.rowManager.findRow(e);if(a){if(this.selectedRows.indexOf(a)==-1)return a.getElement().classList.add("tabulator-selected"),a.modules.select||(a.modules.select={}),a.modules.select.selected=!0,a.modules.select.checkboxEl&&(a.modules.select.checkboxEl.checked=!0),this.selectedRows.push(a),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(a,!0),this.dispatchExternal("rowSelected",a.getComponent()),this._rowSelectionChanged(t,a),a}else t||console.warn("Selection Error - No such row found, ignoring selection:"+e)}isRowSelected(e){return this.selectedRows.indexOf(e)!==-1}deselectRows(e,t){var i=[],a,n;switch(typeof e){case"undefined":a=Object.assign([],this.selectedRows);break;case"number":a=this.table.rowManager.findRow(e);break;case"string":a=this.table.rowManager.findRow(e),a||(a=this.table.rowManager.getRows(e));break;default:a=e;break}Array.isArray(a)?a.length&&(a.forEach(r=>{n=this._deselectRow(r,!0,!0),n&&i.push(n)}),this._rowSelectionChanged(t,[],i)):a&&this._deselectRow(a,t,!0)}_deselectRow(e,t){var i=this,a=i.table.rowManager.findRow(e),n,r;if(a){if(n=i.selectedRows.findIndex(function(l){return l==a}),n>-1)return r=a.getElement(),r&&r.classList.remove("tabulator-selected"),a.modules.select||(a.modules.select={}),a.modules.select.selected=!1,a.modules.select.checkboxEl&&(a.modules.select.checkboxEl.checked=!1),i.selectedRows.splice(n,1),this.table.options.dataTreeSelectPropagate&&this.childRowSelection(a,!1),this.dispatchExternal("rowDeselected",a.getComponent()),i._rowSelectionChanged(t,void 0,a),a}else t||console.warn("Deselection Error - No such row found, ignoring selection:"+e)}getSelectedData(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getData())}),e}getSelectedRows(){var e=[];return this.selectedRows.forEach(function(t){e.push(t.getComponent())}),e}_rowSelectionChanged(e,t=[],i=[]){this.headerCheckboxElement&&(this.selectedRows.length===0?(this.headerCheckboxElement.checked=!1,this.headerCheckboxElement.indeterminate=!1):this.table.rowManager.rows.length===this.selectedRows.length?(this.headerCheckboxElement.checked=!0,this.headerCheckboxElement.indeterminate=!1):(this.headerCheckboxElement.indeterminate=!0,this.headerCheckboxElement.checked=!1)),e||(Array.isArray(t)||(t=[t]),t=t.map(a=>a.getComponent()),Array.isArray(i)||(i=[i]),i=i.map(a=>a.getComponent()),this.dispatchExternal("rowSelectionChanged",this.getSelectedData(),this.getSelectedRows(),t,i))}registerRowSelectCheckbox(e,t){e._row.modules.select||(e._row.modules.select={}),e._row.modules.select.checkboxEl=t}registerHeaderSelectCheckbox(e){this.headerCheckboxElement=e}childRowSelection(e,t){var i=this.table.modules.dataTree.getChildren(e,!0,!0);if(t)for(let a of i)this._selectRow(a,!0);else for(let a of i)this._deselectRow(a,!0)}}E(T9,"moduleName","selectRow"),E(T9,"moduleExtensions",SI);class II{constructor(e){return this._range=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._range.table.componentFunctionBinder.handle("range",t._range,i)}})}getElement(){return this._range.element}getData(){return this._range.getData()}getCells(){return this._range.getCells(!0,!0)}getStructuredCells(){return this._range.getStructuredCells()}getRows(){return this._range.getRows().map(e=>e.getComponent())}getColumns(){return this._range.getColumns().map(e=>e.getComponent())}getBounds(){return this._range.getBounds()}getTopEdge(){return this._range.top}getBottomEdge(){return this._range.bottom}getLeftEdge(){return this._range.left}getRightEdge(){return this._range.right}setBounds(e,t){this._range.destroyedGuard("setBounds")&&this._range.setBounds(e&&e._cell,t&&t._cell)}setStartBound(e){this._range.destroyedGuard("setStartBound")&&(this._range.setEndBound(e&&e._cell),this._range.rangeManager.layoutElement())}setEndBound(e){this._range.destroyedGuard("setEndBound")&&(this._range.setEndBound(e&&e._cell),this._range.rangeManager.layoutElement())}clearValues(){this._range.destroyedGuard("clearValues")&&this._range.clearValues()}remove(){this._range.destroyedGuard("remove")&&this._range.destroy(!0)}}class TI extends te{constructor(e,t,i,a){super(e),this.rangeManager=t,this.element=null,this.initialized=!1,this.initializing={start:!1,end:!1},this.destroyed=!1,this.top=0,this.bottom=0,this.left=0,this.right=0,this.table=e,this.start={row:0,col:0},this.end={row:0,col:0},this.rangeManager.rowHeader&&(this.left=1,this.right=1,this.start.col=1,this.end.col=1),this.initElement(),setTimeout(()=>{this.initBounds(i,a)})}initElement(){this.element=document.createElement("div"),this.element.classList.add("tabulator-range")}initBounds(e,t){this._updateMinMax(),e&&this.setBounds(e,t||e)}setStart(e,t){(this.start.row!==e||this.start.col!==t)&&(this.start.row=e,this.start.col=t,this.initializing.start=!0,this._updateMinMax())}setEnd(e,t){(this.end.row!==e||this.end.col!==t)&&(this.end.row=e,this.end.col=t,this.initializing.end=!0,this._updateMinMax())}setBounds(e,t,i){e&&this.setStartBound(e),this.setEndBound(t||e),this.rangeManager.layoutElement(i)}setStartBound(e){var t,i;e.type==="column"?this.rangeManager.columnSelection&&this.setStart(0,e.getPosition()-1):(t=e.row.position-1,i=e.column.getPosition()-1,e.column===this.rangeManager.rowHeader?this.setStart(t,1):this.setStart(t,i))}setEndBound(e){var t=this._getTableRows().length,i,a,n;e.type==="column"?this.rangeManager.columnSelection&&(this.rangeManager.selecting==="column"?this.setEnd(t-1,e.getPosition()-1):this.rangeManager.selecting==="cell"&&this.setEnd(0,e.getPosition()-1)):(i=e.row.position-1,a=e.column.getPosition()-1,n=e.column===this.rangeManager.rowHeader,this.rangeManager.selecting==="row"?this.setEnd(i,this._getTableColumns().length-1):this.rangeManager.selecting!=="row"&&n?this.setEnd(i,0):this.rangeManager.selecting==="column"?this.setEnd(t-1,a):this.setEnd(i,a))}_updateMinMax(){this.top=Math.min(this.start.row,this.end.row),this.bottom=Math.max(this.start.row,this.end.row),this.left=Math.min(this.start.col,this.end.col),this.right=Math.max(this.start.col,this.end.col),this.initialized?this.dispatchExternal("rangeChanged",this.getComponent()):this.initializing.start&&this.initializing.end&&(this.initialized=!0,this.dispatchExternal("rangeAdded",this.getComponent()))}_getTableColumns(){return this.table.columnManager.getVisibleColumnsByIndex()}_getTableRows(){return this.table.rowManager.getDisplayRows().filter(e=>e.type==="row")}layout(){var e=this.table.rowManager.renderer.vDomTop,t=this.table.rowManager.renderer.vDomBottom,i=this.table.columnManager.renderer.leftCol,a=this.table.columnManager.renderer.rightCol,n,r,l,h,d,u,p,y,f,g;this.table.options.renderHorizontal==="virtual"&&this.rangeManager.rowHeader&&(a+=1),e==null&&(e=0),t==null&&(t=1/0),i==null&&(i=0),a==null&&(a=1/0),this.overlaps(i,e,a,t)&&(n=Math.max(this.top,e),r=Math.min(this.bottom,t),l=Math.max(this.left,i),h=Math.min(this.right,a),d=this.rangeManager.getCell(n,l),u=this.rangeManager.getCell(r,h),p=d.getElement(),y=u.getElement(),f=d.row.getElement(),g=u.row.getElement(),this.element.classList.add("tabulator-range-active"),this.table.rtl?(this.element.style.right=f.offsetWidth-p.offsetLeft-p.offsetWidth+"px",this.element.style.width=p.offsetLeft+p.offsetWidth-y.offsetLeft+"px"):(this.element.style.left=f.offsetLeft+p.offsetLeft+"px",this.element.style.width=y.offsetLeft+y.offsetWidth-p.offsetLeft+"px"),this.element.style.top=f.offsetTop+"px",this.element.style.height=g.offsetTop+g.offsetHeight-f.offsetTop+"px")}atTopLeft(e){return e.row.position-1===this.top&&e.column.getPosition()-1===this.left}atBottomRight(e){return e.row.position-1===this.bottom&&e.column.getPosition()-1===this.right}occupies(e){return this.occupiesRow(e.row)&&this.occupiesColumn(e.column)}occupiesRow(e){return this.top<=e.position-1&&e.position-1<=this.bottom}occupiesColumn(e){return this.left<=e.getPosition()-1&&e.getPosition()-1<=this.right}overlaps(e,t,i,a){return!(this.left>i||e>this.right||this.top>a||t>this.bottom)}getData(){var e=[],t=this.getRows(),i=this.getColumns();return t.forEach(a=>{var n=a.getData(),r={};i.forEach(l=>{r[l.field]=n[l.field]}),e.push(r)}),e}getCells(e,t){var i=[],a=this.getRows(),n=this.getColumns();return e?i=a.map(r=>{var l=[];return r.getCells().forEach(h=>{n.includes(h.column)&&l.push(t?h.getComponent():h)}),l}):a.forEach(r=>{r.getCells().forEach(l=>{n.includes(l.column)&&i.push(t?l.getComponent():l)})}),i}getStructuredCells(){return this.getCells(!0,!0)}getRows(){return this._getTableRows().slice(this.top,this.bottom+1)}getColumns(){return this._getTableColumns().slice(this.left,this.right+1)}clearValues(){var e=this.getCells(),t=this.table.options.selectableRangeClearCellsValue;this.table.blockRedraw(),e.forEach(i=>{i.setValue(t)}),this.table.restoreRedraw()}getBounds(e){var t=this.getCells(!1,e),i={start:null,end:null};return t.length?(i.start=t[0],i.end=t[t.length-1]):console.warn("No bounds defined on range"),i}getComponent(){return this.component||(this.component=new II(this)),this.component}destroy(e){this.destroyed=!0,this.element.remove(),e&&this.rangeManager.rangeRemoved(this),this.initialized&&this.dispatchExternal("rangeRemoved",this.getComponent())}destroyedGuard(e){return this.destroyed&&console.warn("You cannot call the "+e+" function on a destroyed range"),!this.destroyed}}var DI={rangeJumpUp:["ctrl + 38","meta + 38"],rangeJumpDown:["ctrl + 40","meta + 40"],rangeJumpLeft:["ctrl + 37","meta + 37"],rangeJumpRight:["ctrl + 39","meta + 39"],rangeExpandUp:"shift + 38",rangeExpandDown:"shift + 40",rangeExpandLeft:"shift + 37",rangeExpandRight:"shift + 39",rangeExpandJumpUp:["ctrl + shift + 38","meta + shift + 38"],rangeExpandJumpDown:["ctrl + shift + 40","meta + shift + 40"],rangeExpandJumpLeft:["ctrl + shift + 37","meta + shift + 37"],rangeExpandJumpRight:["ctrl + shift + 39","meta + shift + 39"]},zI={rangeJumpLeft:function(o){this.dispatch("keybinding-nav-range",o,"left",!0,!1)},rangeJumpRight:function(o){this.dispatch("keybinding-nav-range",o,"right",!0,!1)},rangeJumpUp:function(o){this.dispatch("keybinding-nav-range",o,"up",!0,!1)},rangeJumpDown:function(o){this.dispatch("keybinding-nav-range",o,"down",!0,!1)},rangeExpandLeft:function(o){this.dispatch("keybinding-nav-range",o,"left",!1,!0)},rangeExpandRight:function(o){this.dispatch("keybinding-nav-range",o,"right",!1,!0)},rangeExpandUp:function(o){this.dispatch("keybinding-nav-range",o,"up",!1,!0)},rangeExpandDown:function(o){this.dispatch("keybinding-nav-range",o,"down",!1,!0)},rangeExpandJumpLeft:function(o){this.dispatch("keybinding-nav-range",o,"left",!0,!0)},rangeExpandJumpRight:function(o){this.dispatch("keybinding-nav-range",o,"right",!0,!0)},rangeExpandJumpUp:function(o){this.dispatch("keybinding-nav-range",o,"up",!0,!0)},rangeExpandJumpDown:function(o){this.dispatch("keybinding-nav-range",o,"down",!0,!0)}},RI={range:function(o){var e=[],t=this.table.modules.selectRange.activeRange,i=!1,a,n,r,l,h;return h=o.length,t&&(a=t.getBounds(),n=a.start,a.start===a.end&&(i=!0),n&&(e=this.table.rowManager.activeRows.slice(),r=e.indexOf(n.row),i?l=o.length:l=e.indexOf(a.end.row)-r+1,r>-1&&(this.table.blockRedraw(),e=e.slice(r,r+l),e.forEach((d,u)=>{d.updateData(o[u%h])}),this.table.restoreRedraw()))),e}},HI={range:function(o){var e=[],t=[],i=this.table.modules.selectRange.activeRange,a=!1,n,r,l,h,d;return i&&(n=i.getBounds(),r=n.start,n.start===n.end&&(a=!0),r&&(o=o.split(`
17
- `),o.forEach(function(u){e.push(u.split(" "))}),e.length&&(h=this.table.columnManager.getVisibleColumnsByIndex(),d=h.indexOf(r.column),d>-1)))?(a?l=e[0].length:l=h.indexOf(n.end.column)-d+1,h=h.slice(d,d+l),e.forEach(u=>{var p={},y=u.length;h.forEach(function(f,g){p[f.field]=u[g%y]}),t.push(p)}),t):!1}},AI={range:function(){var o=this.modules.selectRange.selectedColumns();return this.columnManager.rowHeader&&o.unshift(this.columnManager.rowHeader),o}},VI={range:function(){return this.modules.selectRange.selectedRows()}},PI={keybindings:{bindings:DI,actions:zI},clipboard:{pasteActions:RI,pasteParsers:HI},export:{columnLookups:AI,rowLookups:VI}};class Vn extends q{constructor(e){super(e),this.selecting="cell",this.mousedown=!1,this.ranges=[],this.overlay=null,this.rowHeader=null,this.layoutChangeTimeout=null,this.columnSelection=!1,this.rowSelection=!1,this.maxRanges=0,this.activeRange=!1,this.blockKeydown=!1,this.keyDownEvent=this._handleKeyDown.bind(this),this.mouseUpEvent=this._handleMouseUp.bind(this),this.registerTableOption("selectableRange",!1),this.registerTableOption("selectableRangeColumns",!1),this.registerTableOption("selectableRangeRows",!1),this.registerTableOption("selectableRangeClearCells",!1),this.registerTableOption("selectableRangeClearCellsValue",void 0),this.registerTableOption("selectableRangeAutoFocus",!0),this.registerTableFunction("getRangesData",this.getRangesData.bind(this)),this.registerTableFunction("getRanges",this.getRanges.bind(this)),this.registerTableFunction("addRange",this.addRangeFromComponent.bind(this)),this.registerComponentFunction("cell","getRanges",this.cellGetRanges.bind(this)),this.registerComponentFunction("row","getRanges",this.rowGetRanges.bind(this)),this.registerComponentFunction("column","getRanges",this.colGetRanges.bind(this))}initialize(){this.options("selectableRange")&&(this.options("selectableRows")?console.warn("SelectRange functionality cannot be used in conjunction with row selection"):(this.maxRanges=this.options("selectableRange"),this.initializeTable(),this.initializeWatchers()),this.options("columns").findIndex(e=>e.frozen)>0&&console.warn("Having frozen column in arbitrary position with selectRange option may result in unpredictable behavior."),this.options("columns").filter(e=>e.frozen)>1&&console.warn("Having multiple frozen columns with selectRange option may result in unpredictable behavior."))}initializeTable(){this.overlay=document.createElement("div"),this.overlay.classList.add("tabulator-range-overlay"),this.rangeContainer=document.createElement("div"),this.rangeContainer.classList.add("tabulator-range-container"),this.activeRangeCellElement=document.createElement("div"),this.activeRangeCellElement.classList.add("tabulator-range-cell-active"),this.overlay.appendChild(this.rangeContainer),this.overlay.appendChild(this.activeRangeCellElement),this.table.rowManager.element.addEventListener("keydown",this.keyDownEvent),this.resetRanges(),this.table.rowManager.element.appendChild(this.overlay),this.table.columnManager.element.setAttribute("tabindex",0),this.table.element.classList.add("tabulator-ranges")}initializeWatchers(){this.columnSelection=this.options("selectableRangeColumns"),this.rowSelection=this.options("selectableRangeRows"),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-mousedown",this.handleColumnMouseDown.bind(this)),this.subscribe("column-mousemove",this.handleColumnMouseMove.bind(this)),this.subscribe("column-resized",this.handleColumnResized.bind(this)),this.subscribe("column-moving",this.handleColumnMoving.bind(this)),this.subscribe("column-moved",this.handleColumnMoved.bind(this)),this.subscribe("column-width",this.layoutChange.bind(this)),this.subscribe("column-height",this.layoutChange.bind(this)),this.subscribe("column-resized",this.layoutChange.bind(this)),this.subscribe("columns-loaded",this.updateHeaderColumn.bind(this)),this.subscribe("cell-height",this.layoutChange.bind(this)),this.subscribe("cell-rendered",this.renderCell.bind(this)),this.subscribe("cell-mousedown",this.handleCellMouseDown.bind(this)),this.subscribe("cell-mousemove",this.handleCellMouseMove.bind(this)),this.subscribe("cell-click",this.handleCellClick.bind(this)),this.subscribe("cell-editing",this.handleEditingCell.bind(this)),this.subscribe("page-changed",this.redraw.bind(this)),this.subscribe("scroll-vertical",this.layoutChange.bind(this)),this.subscribe("scroll-horizontal",this.layoutChange.bind(this)),this.subscribe("data-destroy",this.tableDestroyed.bind(this)),this.subscribe("data-processed",this.resetRanges.bind(this)),this.subscribe("table-layout",this.layoutElement.bind(this)),this.subscribe("table-redraw",this.redraw.bind(this)),this.subscribe("table-destroy",this.tableDestroyed.bind(this)),this.subscribe("edit-editor-clear",this.finishEditingCell.bind(this)),this.subscribe("edit-blur",this.restoreFocus.bind(this)),this.subscribe("keybinding-nav-prev",this.keyNavigate.bind(this,"left")),this.subscribe("keybinding-nav-next",this.keyNavigate.bind(this,"right")),this.subscribe("keybinding-nav-left",this.keyNavigate.bind(this,"left")),this.subscribe("keybinding-nav-right",this.keyNavigate.bind(this,"right")),this.subscribe("keybinding-nav-up",this.keyNavigate.bind(this,"up")),this.subscribe("keybinding-nav-down",this.keyNavigate.bind(this,"down")),this.subscribe("keybinding-nav-range",this.keyNavigateRange.bind(this))}initializeColumn(e){this.columnSelection&&e.definition.headerSort&&this.options("headerSortClickElement")!=="icon"&&console.warn("Using column headerSort with selectableRangeColumns option may result in unpredictable behavior. Consider using headerSortClickElement: 'icon'."),e.modules.edit}updateHeaderColumn(){var e;this.rowSelection&&(this.rowHeader=this.table.columnManager.getVisibleColumnsByIndex()[0],this.rowHeader&&(this.rowHeader.definition.cssClass=this.rowHeader.definition.cssClass+" tabulator-range-row-header",this.rowHeader.definition.headerSort&&console.warn("Using column headerSort with selectableRangeRows option may result in unpredictable behavior"),this.rowHeader.definition.editor&&console.warn("Using column editor with selectableRangeRows option may result in unpredictable behavior"))),this.table.modules.frozenColumns&&this.table.modules.frozenColumns.active&&(e=this.table.modules.frozenColumns.getFrozenColumns(),(e.length>1||e.length===1&&e[0]!==this.rowHeader)&&console.warn("Using frozen columns that are not the range header in combination with the selectRange option may result in unpredictable behavior"))}getRanges(){return this.ranges.map(e=>e.getComponent())}getRangesData(){return this.ranges.map(e=>e.getData())}addRangeFromComponent(e,t){return e=e?e._cell:null,t=t?t._cell:null,this.addRange(e,t)}cellGetRanges(e){var t=[];return e.column===this.rowHeader?t=this.ranges.filter(i=>i.occupiesRow(e.row)):t=this.ranges.filter(i=>i.occupies(e)),t.map(i=>i.getComponent())}rowGetRanges(e){var t=this.ranges.filter(i=>i.occupiesRow(e));return t.map(i=>i.getComponent())}colGetRanges(e){var t=this.ranges.filter(i=>i.occupiesColumn(e));return t.map(i=>i.getComponent())}_handleMouseUp(e){this.mousedown=!1,document.removeEventListener("mouseup",this.mouseUpEvent)}_handleKeyDown(e){if(!this.blockKeydown&&(!this.table.modules.edit||this.table.modules.edit&&!this.table.modules.edit.currentCell)){if(e.key==="Enter"){if(this.table.modules.edit&&this.table.modules.edit.currentCell)return;this.table.modules.edit.editCell(this.getActiveCell()),e.preventDefault()}(e.key==="Backspace"||e.key==="Delete")&&this.options("selectableRangeClearCells")&&this.activeRange&&this.activeRange.clearValues()}}initializeFocus(e){var t;this.restoreFocus();try{document.selection?(t=document.body.createTextRange(),t.moveToElementText(e.getElement()),t.select()):window.getSelection&&(t=document.createRange(),t.selectNode(e.getElement()),window.getSelection().removeAllRanges(),window.getSelection().addRange(t))}catch{}}restoreFocus(e){return this.table.rowManager.element.focus(),!0}handleColumnResized(e){var t;this.selecting!=="column"&&this.selecting!=="all"||(t=this.ranges.some(i=>i.occupiesColumn(e)),t&&this.ranges.forEach(i=>{var a=i.getColumns(!0);a.forEach(n=>{n!==e&&n.setWidth(e.width)})}))}handleColumnMoving(e,t){this.resetRanges().setBounds(t),this.overlay.style.visibility="hidden"}handleColumnMoved(e,t,i){this.activeRange.setBounds(e),this.layoutElement()}handleColumnMouseDown(e,t){e.button===2&&(this.selecting==="column"||this.selecting==="all")&&this.activeRange.occupiesColumn(t)||this.table.options.movableColumns&&this.selecting==="column"&&this.activeRange.occupiesColumn(t)||(this.mousedown=!0,document.addEventListener("mouseup",this.mouseUpEvent),this.newSelection(e,t))}handleColumnMouseMove(e,t){t===this.rowHeader||!this.mousedown||this.selecting==="all"||this.activeRange.setBounds(!1,t,!0)}renderCell(e){var t=e.getElement(),i=this.ranges.findIndex(a=>a.occupies(e));t.classList.toggle("tabulator-range-selected",i!==-1),t.classList.toggle("tabulator-range-only-cell-selected",this.ranges.length===1&&this.ranges[0].atTopLeft(e)&&this.ranges[0].atBottomRight(e)),t.dataset.range=i}handleCellMouseDown(e,t){e.button===2&&(this.activeRange.occupies(t)||(this.selecting==="row"||this.selecting==="all")&&this.activeRange.occupiesRow(t.row))||(this.mousedown=!0,document.addEventListener("mouseup",this.mouseUpEvent),this.newSelection(e,t))}handleCellMouseMove(e,t){!this.mousedown||this.selecting==="all"||this.activeRange.setBounds(!1,t,!0)}handleCellClick(e,t){this.initializeFocus(t)}handleEditingCell(e){this.activeRange&&this.activeRange.setBounds(e)}finishEditingCell(){this.blockKeydown=!0,this.table.rowManager.element.focus(),setTimeout(()=>{this.blockKeydown=!1},10)}keyNavigate(e,t){this.navigate(!1,!1,e),t.preventDefault()}keyNavigateRange(e,t,i,a){this.navigate(i,a,t),e.preventDefault()}navigate(e,t,i){var a=!1,n,r,l,h,d,u,p,y,f,g,k;if(this.table.modules.edit&&this.table.modules.edit.currentCell)return!1;if(this.ranges.length>1&&(this.ranges=this.ranges.filter(b=>b===this.activeRange?(b.setEnd(b.start.row,b.start.col),!0):(b.destroy(),!1))),n=this.activeRange,l={top:n.top,bottom:n.bottom,left:n.left,right:n.right},r=t?n.end:n.start,h=r.row,d=r.col,e)switch(i){case"left":d=this.findJumpCellLeft(n.start.row,r.col);break;case"right":d=this.findJumpCellRight(n.start.row,r.col);break;case"up":h=this.findJumpCellUp(r.row,n.start.col);break;case"down":h=this.findJumpCellDown(r.row,n.start.col);break}else{if(t&&(this.selecting==="row"&&(i==="left"||i==="right")||this.selecting==="column"&&(i==="up"||i==="down")))return;switch(i){case"left":d=Math.max(d-1,0);break;case"right":d=Math.min(d+1,this.getTableColumns().length-1);break;case"up":h=Math.max(h-1,0);break;case"down":h=Math.min(h+1,this.getTableRows().length-1);break}}if(this.rowHeader&&d===0&&(d=1),t||n.setStart(h,d),n.setEnd(h,d),t||(this.selecting="cell"),a=l.top!==n.top||l.bottom!==n.bottom||l.left!==n.left||l.right!==n.right,a)return u=this.getRowByRangePos(n.end.row),p=this.getColumnByRangePos(n.end.col),y=u.getElement().getBoundingClientRect(),g=p.getElement().getBoundingClientRect(),f=this.table.rowManager.getElement().getBoundingClientRect(),k=this.table.columnManager.getElement().getBoundingClientRect(),y.top>=f.top&&y.bottom<=f.bottom||(u.getElement().parentNode&&p.getElement().parentNode?this.autoScroll(n,u.getElement(),p.getElement()):u.getComponent().scrollTo(void 0,!1)),g.left>=k.left+this.getRowHeaderWidth()&&g.right<=k.right||(u.getElement().parentNode&&p.getElement().parentNode?this.autoScroll(n,u.getElement(),p.getElement()):p.getComponent().scrollTo(void 0,!1)),this.layoutElement(),!0}rangeRemoved(e){this.ranges=this.ranges.filter(t=>t!==e),this.activeRange===e&&(this.ranges.length?this.activeRange=this.ranges[this.ranges.length-1]:this.addRange()),this.layoutElement()}findJumpRow(e,t,i,a,n){return i&&(t=t.reverse()),this.findJumpItem(a,n,t,function(r){return r.getData()[e.getField()]})}findJumpCol(e,t,i,a,n){return i&&(t=t.reverse()),this.findJumpItem(a,n,t,function(r){return e.getData()[r.getField()]})}findJumpItem(e,t,i,a){var n;for(let r of i){let l=a(r);if(e){if(n=r,l)break}else if(t){if(n=r,l)break}else if(l)n=r;else break}return n}findJumpCellLeft(e,t){var i=this.getRowByRangePos(e),a=this.getTableColumns(),n=this.isEmpty(i.getData()[a[t].getField()]),r=a[t-1]?this.isEmpty(i.getData()[a[t-1].getField()]):!1,l=this.rowHeader?a.slice(1,t):a.slice(0,t),h=this.findJumpCol(i,l,!0,n,r);return h?h.getPosition()-1:t}findJumpCellRight(e,t){var i=this.getRowByRangePos(e),a=this.getTableColumns(),n=this.isEmpty(i.getData()[a[t].getField()]),r=a[t+1]?this.isEmpty(i.getData()[a[t+1].getField()]):!1,l=this.findJumpCol(i,a.slice(t+1,a.length),!1,n,r);return l?l.getPosition()-1:t}findJumpCellUp(e,t){var i=this.getColumnByRangePos(t),a=this.getTableRows(),n=this.isEmpty(a[e].getData()[i.getField()]),r=a[e-1]?this.isEmpty(a[e-1].getData()[i.getField()]):!1,l=this.findJumpRow(i,a.slice(0,e),!0,n,r);return l?l.position-1:e}findJumpCellDown(e,t){var i=this.getColumnByRangePos(t),a=this.getTableRows(),n=this.isEmpty(a[e].getData()[i.getField()]),r=a[e+1]?this.isEmpty(a[e+1].getData()[i.getField()]):!1,l=this.findJumpRow(i,a.slice(e+1,a.length),!1,n,r);return l?l.position-1:e}newSelection(e,t){var i;if(t.type==="column"){if(!this.columnSelection)return;if(t===this.rowHeader){i=this.resetRanges(),this.selecting="all";var a,n=this.getCell(-1,-1);this.rowHeader?a=this.getCell(0,1):a=this.getCell(0,0),i.setBounds(a,n);return}else this.selecting="column"}else t.column===this.rowHeader?this.selecting="row":this.selecting="cell";e.shiftKey?this.activeRange.setBounds(!1,t):e.ctrlKey?this.addRange().setBounds(t):this.resetRanges().setBounds(t)}autoScroll(e,t,i){var a=this.table.rowManager.element,n,r,l,h;typeof t>"u"&&(t=this.getRowByRangePos(e.end.row).getElement()),typeof i>"u"&&(i=this.getColumnByRangePos(e.end.col).getElement()),n={left:i.offsetLeft,right:i.offsetLeft+i.offsetWidth,top:t.offsetTop,bottom:t.offsetTop+t.offsetHeight},r={left:a.scrollLeft+this.getRowHeaderWidth(),right:Math.ceil(a.scrollLeft+a.clientWidth),top:a.scrollTop,bottom:a.scrollTop+a.offsetHeight-this.table.rowManager.scrollbarWidth},l=r.left<n.left&&n.left<r.right&&r.left<n.right&&n.right<r.right,h=r.top<n.top&&n.top<r.bottom&&r.top<n.bottom&&n.bottom<r.bottom,l||(n.left<r.left?a.scrollLeft=n.left-this.getRowHeaderWidth():n.right>r.right&&(a.scrollLeft=Math.min(n.right-a.clientWidth,n.left-this.getRowHeaderWidth()))),h||(n.top<r.top?a.scrollTop=n.top:n.bottom>r.bottom&&(a.scrollTop=n.bottom-a.clientHeight))}layoutChange(){this.overlay.style.visibility="hidden",clearTimeout(this.layoutChangeTimeout),this.layoutChangeTimeout=setTimeout(this.layoutRanges.bind(this),200)}redraw(e){e&&(this.selecting="cell",this.resetRanges(),this.layoutElement())}layoutElement(e){var t;e?t=this.table.rowManager.getVisibleRows(!0):t=this.table.rowManager.getRows(),t.forEach(i=>{i.type==="row"&&(this.layoutRow(i),i.cells.forEach(a=>this.renderCell(a)))}),this.getTableColumns().forEach(i=>{this.layoutColumn(i)}),this.layoutRanges()}layoutRow(e){var t=e.getElement(),i=!1,a=this.ranges.some(n=>n.occupiesRow(e));this.selecting==="row"?i=a:this.selecting==="all"&&(i=!0),t.classList.toggle("tabulator-range-selected",i),t.classList.toggle("tabulator-range-highlight",a)}layoutColumn(e){var t=e.getElement(),i=!1,a=this.ranges.some(n=>n.occupiesColumn(e));this.selecting==="column"?i=a:this.selecting==="all"&&(i=!0),t.classList.toggle("tabulator-range-selected",i),t.classList.toggle("tabulator-range-highlight",a)}layoutRanges(){var e,t,i;this.table.initialized&&(e=this.getActiveCell(),e&&(t=e.getElement(),i=e.row.getElement(),this.table.rtl?this.activeRangeCellElement.style.right=i.offsetWidth-t.offsetLeft-t.offsetWidth+"px":this.activeRangeCellElement.style.left=i.offsetLeft+t.offsetLeft+"px",this.activeRangeCellElement.style.top=i.offsetTop+"px",this.activeRangeCellElement.style.width=t.offsetWidth+"px",this.activeRangeCellElement.style.height=i.offsetHeight+"px",this.ranges.forEach(a=>a.layout()),this.overlay.style.visibility="visible"))}getCell(e,t){var i;return t<0&&(t=this.getTableColumns().length+t,t<0)?null:(e<0&&(e=this.getTableRows().length+e),i=this.table.rowManager.getRowFromPosition(e+1),i?i.getCells(!1,!0).filter(a=>a.column.visible)[t]:null)}getActiveCell(){return this.getCell(this.activeRange.start.row,this.activeRange.start.col)}getRowByRangePos(e){return this.getTableRows()[e]}getColumnByRangePos(e){return this.getTableColumns()[e]}getTableRows(){return this.table.rowManager.getDisplayRows().filter(e=>e.type==="row")}getTableColumns(){return this.table.columnManager.getVisibleColumnsByIndex()}addRange(e,t){var i;return this.maxRanges!==!0&&this.ranges.length>=this.maxRanges&&this.ranges.shift().destroy(),i=new TI(this.table,this,e,t),this.activeRange=i,this.ranges.push(i),this.rangeContainer.appendChild(i.element),i}resetRanges(){var e,t,i;return this.ranges.forEach(a=>a.destroy()),this.ranges=[],e=this.addRange(),this.table.rowManager.activeRows.length&&(i=this.table.rowManager.activeRows[0].cells.filter(a=>a.column.visible),t=i[this.rowHeader?1:0],t&&(e.setBounds(t),this.options("selectableRangeAutoFocus")&&this.initializeFocus(t))),e}tableDestroyed(){document.removeEventListener("mouseup",this.mouseUpEvent),this.table.rowManager.element.removeEventListener("keydown",this.keyDownEvent)}selectedRows(e){return e?this.activeRange.getRows().map(t=>t.getComponent()):this.activeRange.getRows()}selectedColumns(e){return e?this.activeRange.getColumns().map(t=>t.getComponent()):this.activeRange.getColumns()}getRowHeaderWidth(){return this.rowHeader?this.rowHeader.getElement().offsetWidth:0}isEmpty(e){return e==null||e===""}}E(Vn,"moduleName","selectRange"),E(Vn,"moduleInitOrder",1),E(Vn,"moduleExtensions",PI);function qI(o,e,t,i,a,n,r){var l=r.alignEmptyValues,h=r.decimalSeparator,d=r.thousandSeparator,u=0;if(o=String(o),e=String(e),d&&(o=o.split(d).join(""),e=e.split(d).join("")),h&&(o=o.split(h).join("."),e=e.split(h).join(".")),o=parseFloat(o),e=parseFloat(e),isNaN(o))u=isNaN(e)?0:-1;else if(isNaN(e))u=1;else return o-e;return(l==="top"&&n==="desc"||l==="bottom"&&n==="asc")&&(u*=-1),u}function BI(o,e,t,i,a,n,r){var l=r.alignEmptyValues,h=0,d;if(!o)h=e?-1:0;else if(!e)h=1;else{switch(typeof r.locale){case"boolean":r.locale&&(d=this.langLocale());break;case"string":d=r.locale;break}return String(o).toLowerCase().localeCompare(String(e).toLowerCase(),d)}return(l==="top"&&n==="desc"||l==="bottom"&&n==="asc")&&(h*=-1),h}function D9(o,e,t,i,a,n,r){var l=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),h=r.format||"dd/MM/yyyy HH:mm:ss",d=r.alignEmptyValues,u=0;if(typeof l<"u"){if(l.isDateTime(o)||(h==="iso"?o=l.fromISO(String(o)):o=l.fromFormat(String(o),h)),l.isDateTime(e)||(h==="iso"?e=l.fromISO(String(e)):e=l.fromFormat(String(e),h)),!o.isValid)u=e.isValid?-1:0;else if(!e.isValid)u=1;else return o-e;return(d==="top"&&n==="desc"||d==="bottom"&&n==="asc")&&(u*=-1),u}else console.error("Sort Error - 'datetime' sorter is dependant on luxon.js")}function FI(o,e,t,i,a,n,r){return r.format||(r.format="dd/MM/yyyy"),D9.call(this,o,e,t,i,a,n,r)}function OI(o,e,t,i,a,n,r){return r.format||(r.format="HH:mm"),D9.call(this,o,e,t,i,a,n,r)}function jI(o,e,t,i,a,n,r){var l=o===!0||o==="true"||o==="True"||o===1?1:0,h=e===!0||e==="true"||e==="True"||e===1?1:0;return l-h}function NI(o,e,t,i,a,n,r){var l=r.type||"length",h=r.alignEmptyValues,d=0,u=this.table,p;r.valueMap&&(typeof r.valueMap=="string"?p=function(f){return f.map(g=>G.retrieveNestedData(u.options.nestedFieldSeparator,r.valueMap,g))}:p=r.valueMap);function y(f){var g;switch(p&&(f=p(f)),l){case"length":g=f.length;break;case"sum":g=f.reduce(function(k,b){return k+b});break;case"max":g=Math.max.apply(null,f);break;case"min":g=Math.min.apply(null,f);break;case"avg":g=f.reduce(function(k,b){return k+b})/f.length;break;case"string":g=f.join("");break}return g}if(!Array.isArray(o))d=Array.isArray(e)?-1:0;else if(!Array.isArray(e))d=1;else return l==="string"?String(y(o)).toLowerCase().localeCompare(String(y(e)).toLowerCase()):y(e)-y(o);return(h==="top"&&n==="desc"||h==="bottom"&&n==="asc")&&(d*=-1),d}function _I(o,e,t,i,a,n,r){var l=typeof o>"u"?0:1,h=typeof e>"u"?0:1;return l-h}function WI(o,e,t,i,a,n,r){var l,h,d,u,p=0,y,f=/(\d+)|(\D+)/g,g=/\d/,k=r.alignEmptyValues,b=0;if(!o&&o!==0)b=!e&&e!==0?0:-1;else if(!e&&e!==0)b=1;else{if(isFinite(o)&&isFinite(e))return o-e;if(l=String(o).toLowerCase(),h=String(e).toLowerCase(),l===h)return 0;if(!(g.test(l)&&g.test(h)))return l>h?1:-1;for(l=l.match(f),h=h.match(f),y=l.length>h.length?h.length:l.length;p<y;)if(d=l[p],u=h[p++],d!==u)return isFinite(d)&&isFinite(u)?(d.charAt(0)==="0"&&(d="."+d),u.charAt(0)==="0"&&(u="."+u),d-u):d>u?1:-1;return l.length>h.length}return(k==="top"&&n==="desc"||k==="bottom"&&n==="asc")&&(b*=-1),b}var UI={number:qI,string:BI,date:FI,time:OI,datetime:D9,boolean:jI,array:NI,exists:_I,alphanum:WI};const $o=class $o extends q{constructor(e){super(e),this.sortList=[],this.changed=!1,this.registerTableOption("sortMode","local"),this.registerTableOption("initialSort",!1),this.registerTableOption("columnHeaderSortMulti",!0),this.registerTableOption("sortOrderReverse",!1),this.registerTableOption("headerSortElement","<div class='tabulator-arrow'></div>"),this.registerTableOption("headerSortClickElement","header"),this.registerColumnOption("sorter"),this.registerColumnOption("sorterParams"),this.registerColumnOption("headerSort",!0),this.registerColumnOption("headerSortStartingDir"),this.registerColumnOption("headerSortTristate")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("table-built",this.tableBuilt.bind(this)),this.registerDataHandler(this.sort.bind(this),20),this.registerTableFunction("setSort",this.userSetSort.bind(this)),this.registerTableFunction("getSorters",this.getSort.bind(this)),this.registerTableFunction("clearSort",this.clearSort.bind(this)),this.table.options.sortMode==="remote"&&this.subscribe("data-params",this.remoteSortParams.bind(this))}tableBuilt(){this.table.options.initialSort&&this.setSort(this.table.options.initialSort)}remoteSortParams(e,t,i,a){var n=this.getSort();return n.forEach(r=>{delete r.column}),a.sort=n,a}userSetSort(e,t){this.setSort(e,t),this.refreshSort()}clearSort(){this.clear(),this.refreshSort()}initializeColumn(e){var t=!1,i,a;switch(typeof e.definition.sorter){case"string":$o.sorters[e.definition.sorter]?t=$o.sorters[e.definition.sorter]:console.warn("Sort Error - No such sorter found: ",e.definition.sorter);break;case"function":t=e.definition.sorter;break}if(e.modules.sort={sorter:t,dir:"none",params:e.definition.sorterParams||{},startingDir:e.definition.headerSortStartingDir||"asc",tristate:e.definition.headerSortTristate},e.definition.headerSort!==!1){switch(i=e.getElement(),i.classList.add("tabulator-sortable"),a=document.createElement("div"),a.classList.add("tabulator-col-sorter"),this.table.options.headerSortClickElement){case"icon":a.classList.add("tabulator-col-sorter-element");break;case"header":i.classList.add("tabulator-col-sorter-element");break;default:i.classList.add("tabulator-col-sorter-element");break}switch(this.table.options.headerSortElement){case"function":break;case"object":a.appendChild(this.table.options.headerSortElement);break;default:a.innerHTML=this.table.options.headerSortElement}e.titleHolderElement.appendChild(a),e.modules.sort.element=a,this.setColumnHeaderSortIcon(e,"none"),this.table.options.headerSortClickElement==="icon"&&a.addEventListener("mousedown",n=>{n.stopPropagation()}),(this.table.options.headerSortClickElement==="icon"?a:i).addEventListener("click",n=>{var r="",l=[],h=!1;if(e.modules.sort){if(e.modules.sort.tristate)e.modules.sort.dir=="none"?r=e.modules.sort.startingDir:e.modules.sort.dir==e.modules.sort.startingDir?r=e.modules.sort.dir=="asc"?"desc":"asc":r="none";else switch(e.modules.sort.dir){case"asc":r="desc";break;case"desc":r="asc";break;default:r=e.modules.sort.startingDir}this.table.options.columnHeaderSortMulti&&(n.shiftKey||n.ctrlKey)?(l=this.getSort(),h=l.findIndex(d=>d.field===e.getField()),h>-1?(l[h].dir=r,h=l.splice(h,1)[0],r!="none"&&l.push(h)):r!="none"&&l.push({column:e,dir:r}),this.setSort(l)):r=="none"?this.clear():this.setSort(e,r),this.refreshSort()}})}}refreshSort(){this.table.options.sortMode==="remote"?this.reloadData(null,!1,!1):this.refreshData(!0)}hasChanged(){var e=this.changed;return this.changed=!1,e}getSort(){var e=this,t=[];return e.sortList.forEach(function(i){i.column&&t.push({column:i.column.getComponent(),field:i.column.getField(),dir:i.dir})}),t}setSort(e,t){var i=this,a=[];Array.isArray(e)||(e=[{column:e,dir:t}]),e.forEach(function(n){var r;r=i.table.columnManager.findColumn(n.column),r?(n.column=r,a.push(n),i.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",n.column)}),i.sortList=a,this.dispatch("sort-changed")}clear(){this.setSort([])}findSorter(e){var t=this.table.rowManager.activeRows[0],i="string",a,n;if(t&&(t=t.getData(),a=e.getField(),a))switch(n=e.getFieldValue(t),typeof n){case"undefined":i="string";break;case"boolean":i="boolean";break;default:!isNaN(n)&&n!==""?i="number":n.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(i="alphanum");break}return $o.sorters[i]}sort(e,t){var i=this,a=this.table.options.sortOrderReverse?i.sortList.slice().reverse():i.sortList,n=[],r=[];return this.subscribedExternal("dataSorting")&&this.dispatchExternal("dataSorting",i.getSort()),t||i.clearColumnHeaders(),this.table.options.sortMode!=="remote"?(a.forEach(function(l,h){var d;l.column&&(d=l.column.modules.sort,d&&(d.sorter||(d.sorter=i.findSorter(l.column)),l.params=typeof d.params=="function"?d.params(l.column.getComponent(),l.dir):d.params,n.push(l)),t||i.setColumnHeader(l.column,l.dir))}),n.length&&i._sortItems(e,n)):t||a.forEach(function(l,h){i.setColumnHeader(l.column,l.dir)}),this.subscribedExternal("dataSorted")&&(e.forEach(l=>{r.push(l.getComponent())}),this.dispatchExternal("dataSorted",i.getSort(),r)),e}clearColumnHeaders(){this.table.columnManager.getRealColumns().forEach(e=>{e.modules.sort&&(e.modules.sort.dir="none",e.getElement().setAttribute("aria-sort","none"),this.setColumnHeaderSortIcon(e,"none"))})}setColumnHeader(e,t){e.modules.sort.dir=t,e.getElement().setAttribute("aria-sort",t==="asc"?"ascending":"descending"),this.setColumnHeaderSortIcon(e,t)}setColumnHeaderSortIcon(e,t){var i=e.modules.sort.element,a;if(e.definition.headerSort&&typeof this.table.options.headerSortElement=="function"){for(;i.firstChild;)i.removeChild(i.firstChild);a=this.table.options.headerSortElement.call(this.table,e.getComponent(),t),typeof a=="object"?i.appendChild(a):i.innerHTML=a}}_sortItems(e,t){var i=t.length-1;e.sort((a,n)=>{for(var r,l=i;l>=0;l--){let h=t[l];if(r=this._sortRow(a,n,h.column,h.dir,h.params),r!==0)break}return r})}_sortRow(e,t,i,a,n){var r,l,h=a=="asc"?e:t,d=a=="asc"?t:e;return e=i.getFieldValue(h.getData()),t=i.getFieldValue(d.getData()),e=typeof e<"u"?e:"",t=typeof t<"u"?t:"",r=h.getComponent(),l=d.getComponent(),i.modules.sort.sorter.call(this,e,t,r,l,i.getComponent(),a,n)}};E($o,"moduleName","sort"),E($o,"sorters",UI);let z9=$o;class GI{constructor(e,t){this.columnCount=e,this.rowCount=t,this.columnString=[],this.columns=[],this.rows=[]}genColumns(e){var t=Math.max(this.columnCount,Math.max(...e.map(i=>i.length)));this.columnString=[],this.columns=[];for(let i=1;i<=t;i++)this.incrementChar(this.columnString.length-1),this.columns.push(this.columnString.join(""));return this.columns}genRows(e){var t=Math.max(this.rowCount,e.length);this.rows=[];for(let i=1;i<=t;i++)this.rows.push(i);return this.rows}incrementChar(e){let t=this.columnString[e];t?t!=="Z"?this.columnString[e]=String.fromCharCode(this.columnString[e].charCodeAt(0)+1):(this.columnString[e]="A",e?this.incrementChar(e-1):this.columnString.push("A")):this.columnString.push("A")}setRowCount(e){this.rowCount=e}setColumnCount(e){this.columnCount=e}}class tx{constructor(e){return this._sheet=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._sheet.table.componentFunctionBinder.handle("sheet",t._sheet,i)}})}getTitle(){return this._sheet.title}getKey(){return this._sheet.key}getDefinition(){return this._sheet.getDefinition()}getData(){return this._sheet.getData()}setData(e){return this._sheet.setData(e)}clear(){return this._sheet.clear()}remove(){return this._sheet.remove()}active(){return this._sheet.active()}setTitle(e){return this._sheet.setTitle(e)}setRows(e){return this._sheet.setRows(e)}setColumns(e){return this._sheet.setColumns(e)}}let ix=class extends te{constructor(e,t){super(e.table),this.spreadsheetManager=e,this.definition=t,this.title=this.definition.title||"",this.key=this.definition.key||this.definition.title,this.rowCount=this.definition.rows,this.columnCount=this.definition.columns,this.data=this.definition.data||[],this.element=null,this.isActive=!1,this.grid=new GI(this.columnCount,this.rowCount),this.defaultColumnDefinition={width:100,headerHozAlign:"center",headerSort:!1},this.columnDefinition=Object.assign(this.defaultColumnDefinition,this.options("spreadsheetColumnDefinition")),this.columnDefs=[],this.rowDefs=[],this.columnFields=[],this.columns=[],this.rows=[],this.scrollTop=null,this.scrollLeft=null,this.initialize(),this.dispatchExternal("sheetAdded",this.getComponent())}initialize(){this.initializeElement(),this.initializeColumns(),this.initializeRows()}reinitialize(){this.initializeColumns(),this.initializeRows()}initializeElement(){this.element=document.createElement("div"),this.element.classList.add("tabulator-spreadsheet-tab"),this.element.innerText=this.title,this.element.addEventListener("click",()=>{this.spreadsheetManager.loadSheet(this)})}initializeColumns(){this.grid.setColumnCount(this.columnCount),this.columnFields=this.grid.genColumns(this.data),this.columnDefs=[],this.columnFields.forEach(e=>{var t=Object.assign({},this.columnDefinition);t.field=e,t.title=e,this.columnDefs.push(t)})}initializeRows(){var e;this.grid.setRowCount(this.rowCount),e=this.grid.genRows(this.data),this.rowDefs=[],e.forEach((t,i)=>{var a={_id:t},n=this.data[i];n&&n.forEach((r,l)=>{var h=this.columnFields[l];h&&(a[h]=r)}),this.rowDefs.push(a)})}unload(){this.isActive=!1,this.scrollTop=this.table.rowManager.scrollTop,this.scrollLeft=this.table.rowManager.scrollLeft,this.data=this.getData(!0),this.element.classList.remove("tabulator-spreadsheet-tab-active")}load(){var e=!this.isActive;this.isActive=!0,this.table.blockRedraw(),this.table.setData([]),this.table.setColumns(this.columnDefs),this.table.setData(this.rowDefs),this.table.restoreRedraw(),e&&this.scrollTop!==null&&(this.table.rowManager.element.scrollLeft=this.scrollLeft,this.table.rowManager.element.scrollTop=this.scrollTop),this.element.classList.add("tabulator-spreadsheet-tab-active"),this.dispatchExternal("sheetLoaded",this.getComponent())}getComponent(){return new tx(this)}getDefinition(){return{title:this.title,key:this.key,rows:this.rowCount,columns:this.columnCount,data:this.getData()}}getData(e){var t=[],i,a,n;return this.rowDefs.forEach(r=>{var l=[];this.columnFields.forEach(h=>{l.push(r[h])}),t.push(l)}),!e&&!this.options("spreadsheetOutputFull")&&(i=t.map(r=>r.findLastIndex(l=>typeof l<"u")+1),a=Math.max(...i),n=i.findLastIndex(r=>r>0)+1,t=t.slice(0,n),t=t.map(r=>r.slice(0,a))),t}setData(e){this.data=e,this.reinitialize(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}clear(){this.setData([])}setTitle(e){this.title=e,this.element.innerText=e,this.dispatchExternal("sheetUpdated",this.getComponent())}setRows(e){this.rowCount=e,this.initializeRows(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}setColumns(e){this.columnCount=e,this.reinitialize(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}remove(){this.spreadsheetManager.removeSheet(this)}destroy(){this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.dispatchExternal("sheetRemoved",this.getComponent())}active(){this.spreadsheetManager.loadSheet(this)}};class ax extends q{constructor(e){super(e),this.sheets=[],this.element=null,this.registerTableOption("spreadsheet",!1),this.registerTableOption("spreadsheetRows",50),this.registerTableOption("spreadsheetColumns",50),this.registerTableOption("spreadsheetColumnDefinition",{}),this.registerTableOption("spreadsheetOutputFull",!1),this.registerTableOption("spreadsheetData",!1),this.registerTableOption("spreadsheetSheets",!1),this.registerTableOption("spreadsheetSheetTabs",!1),this.registerTableOption("spreadsheetSheetTabsElement",!1),this.registerTableFunction("setSheets",this.setSheets.bind(this)),this.registerTableFunction("addSheet",this.addSheet.bind(this)),this.registerTableFunction("getSheets",this.getSheets.bind(this)),this.registerTableFunction("getSheetDefinitions",this.getSheetDefinitions.bind(this)),this.registerTableFunction("setSheetData",this.setSheetData.bind(this)),this.registerTableFunction("getSheet",this.getSheet.bind(this)),this.registerTableFunction("getSheetData",this.getSheetData.bind(this)),this.registerTableFunction("clearSheet",this.clearSheet.bind(this)),this.registerTableFunction("removeSheet",this.removeSheetFunc.bind(this)),this.registerTableFunction("activeSheet",this.activeSheetFunc.bind(this))}initialize(){this.options("spreadsheet")&&(this.subscribe("table-initialized",this.tableInitialized.bind(this)),this.subscribe("data-loaded",this.loadRemoteData.bind(this)),this.table.options.index="_id",this.options("spreadsheetData")&&this.options("spreadsheetSheets")&&(console.warn("You cannot use spreadsheetData and spreadsheetSheets at the same time, ignoring spreadsheetData"),this.table.options.spreadsheetData=!1),this.compatibilityCheck(),this.options("spreadsheetSheetTabs")&&this.initializeTabset())}compatibilityCheck(){this.options("data")&&console.warn("Do not use the data option when working with spreadsheets, use either spreadsheetData or spreadsheetSheets to pass data into the table"),this.options("pagination")&&console.warn("The spreadsheet module is not compatible with the pagination module"),this.options("groupBy")&&console.warn("The spreadsheet module is not compatible with the row grouping module"),this.options("responsiveCollapse")&&console.warn("The spreadsheet module is not compatible with the responsive collapse module")}initializeTabset(){this.element=document.createElement("div"),this.element.classList.add("tabulator-spreadsheet-tabs");var e=this.options("spreadsheetSheetTabsElement");e&&!(e instanceof HTMLElement)&&(e=document.querySelector(e),e||console.warn("Unable to find element matching spreadsheetSheetTabsElement selector:",this.options("spreadsheetSheetTabsElement"))),e?e.appendChild(this.element):this.footerAppend(this.element)}tableInitialized(){this.sheets.length?this.loadSheet(this.sheets[0]):this.options("spreadsheetSheets")?this.loadSheets(this.options("spreadsheetSheets")):this.options("spreadsheetData")&&this.loadData(this.options("spreadsheetData"))}loadRemoteData(e,t,i){return console.log("data",e,t,i),Array.isArray(e)?(this.table.dataLoader.clearAlert(),this.dispatchExternal("dataLoaded",e),!e.length||Array.isArray(e[0])?this.loadData(e):this.loadSheets(e)):console.error(`Spreadsheet Loading Error - Unable to process remote data due to invalid data type
17
+ `),o.forEach(function(u){e.push(u.split(" "))}),e.length&&(h=this.table.columnManager.getVisibleColumnsByIndex(),d=h.indexOf(r.column),d>-1)))?(a?l=e[0].length:l=h.indexOf(n.end.column)-d+1,h=h.slice(d,d+l),e.forEach(u=>{var p={},y=u.length;h.forEach(function(f,g){p[f.field]=u[g%y]}),t.push(p)}),t):!1}},AI={range:function(){var o=this.modules.selectRange.selectedColumns();return this.columnManager.rowHeader&&o.unshift(this.columnManager.rowHeader),o}},VI={range:function(){return this.modules.selectRange.selectedRows()}},PI={keybindings:{bindings:DI,actions:zI},clipboard:{pasteActions:RI,pasteParsers:HI},export:{columnLookups:AI,rowLookups:VI}};class Vn extends q{constructor(e){super(e),this.selecting="cell",this.mousedown=!1,this.ranges=[],this.overlay=null,this.rowHeader=null,this.layoutChangeTimeout=null,this.columnSelection=!1,this.rowSelection=!1,this.maxRanges=0,this.activeRange=!1,this.blockKeydown=!1,this.keyDownEvent=this._handleKeyDown.bind(this),this.mouseUpEvent=this._handleMouseUp.bind(this),this.registerTableOption("selectableRange",!1),this.registerTableOption("selectableRangeColumns",!1),this.registerTableOption("selectableRangeRows",!1),this.registerTableOption("selectableRangeClearCells",!1),this.registerTableOption("selectableRangeClearCellsValue",void 0),this.registerTableOption("selectableRangeAutoFocus",!0),this.registerTableFunction("getRangesData",this.getRangesData.bind(this)),this.registerTableFunction("getRanges",this.getRanges.bind(this)),this.registerTableFunction("addRange",this.addRangeFromComponent.bind(this)),this.registerComponentFunction("cell","getRanges",this.cellGetRanges.bind(this)),this.registerComponentFunction("row","getRanges",this.rowGetRanges.bind(this)),this.registerComponentFunction("column","getRanges",this.colGetRanges.bind(this))}initialize(){this.options("selectableRange")&&(this.options("selectableRows")?console.warn("SelectRange functionality cannot be used in conjunction with row selection"):(this.maxRanges=this.options("selectableRange"),this.initializeTable(),this.initializeWatchers()),this.options("columns").findIndex(e=>e.frozen)>0&&console.warn("Having frozen column in arbitrary position with selectRange option may result in unpredictable behavior."),this.options("columns").filter(e=>e.frozen)>1&&console.warn("Having multiple frozen columns with selectRange option may result in unpredictable behavior."))}initializeTable(){this.overlay=document.createElement("div"),this.overlay.classList.add("tabulator-range-overlay"),this.rangeContainer=document.createElement("div"),this.rangeContainer.classList.add("tabulator-range-container"),this.activeRangeCellElement=document.createElement("div"),this.activeRangeCellElement.classList.add("tabulator-range-cell-active"),this.overlay.appendChild(this.rangeContainer),this.overlay.appendChild(this.activeRangeCellElement),this.table.rowManager.element.addEventListener("keydown",this.keyDownEvent),this.resetRanges(),this.table.rowManager.element.appendChild(this.overlay),this.table.columnManager.element.setAttribute("tabindex",0),this.table.element.classList.add("tabulator-ranges")}initializeWatchers(){this.columnSelection=this.options("selectableRangeColumns"),this.rowSelection=this.options("selectableRangeRows"),this.subscribe("column-init",this.initializeColumn.bind(this)),this.subscribe("column-mousedown",this.handleColumnMouseDown.bind(this)),this.subscribe("column-mousemove",this.handleColumnMouseMove.bind(this)),this.subscribe("column-resized",this.handleColumnResized.bind(this)),this.subscribe("column-moving",this.handleColumnMoving.bind(this)),this.subscribe("column-moved",this.handleColumnMoved.bind(this)),this.subscribe("column-width",this.layoutChange.bind(this)),this.subscribe("column-height",this.layoutChange.bind(this)),this.subscribe("column-resized",this.layoutChange.bind(this)),this.subscribe("columns-loaded",this.updateHeaderColumn.bind(this)),this.subscribe("cell-height",this.layoutChange.bind(this)),this.subscribe("cell-rendered",this.renderCell.bind(this)),this.subscribe("cell-mousedown",this.handleCellMouseDown.bind(this)),this.subscribe("cell-mousemove",this.handleCellMouseMove.bind(this)),this.subscribe("cell-click",this.handleCellClick.bind(this)),this.subscribe("cell-editing",this.handleEditingCell.bind(this)),this.subscribe("page-changed",this.redraw.bind(this)),this.subscribe("scroll-vertical",this.layoutChange.bind(this)),this.subscribe("scroll-horizontal",this.layoutChange.bind(this)),this.subscribe("data-destroy",this.tableDestroyed.bind(this)),this.subscribe("data-processed",this.resetRanges.bind(this)),this.subscribe("table-layout",this.layoutElement.bind(this)),this.subscribe("table-redraw",this.redraw.bind(this)),this.subscribe("table-destroy",this.tableDestroyed.bind(this)),this.subscribe("edit-editor-clear",this.finishEditingCell.bind(this)),this.subscribe("edit-blur",this.restoreFocus.bind(this)),this.subscribe("keybinding-nav-prev",this.keyNavigate.bind(this,"left")),this.subscribe("keybinding-nav-next",this.keyNavigate.bind(this,"right")),this.subscribe("keybinding-nav-left",this.keyNavigate.bind(this,"left")),this.subscribe("keybinding-nav-right",this.keyNavigate.bind(this,"right")),this.subscribe("keybinding-nav-up",this.keyNavigate.bind(this,"up")),this.subscribe("keybinding-nav-down",this.keyNavigate.bind(this,"down")),this.subscribe("keybinding-nav-range",this.keyNavigateRange.bind(this))}initializeColumn(e){this.columnSelection&&e.definition.headerSort&&this.options("headerSortClickElement")!=="icon"&&console.warn("Using column headerSort with selectableRangeColumns option may result in unpredictable behavior. Consider using headerSortClickElement: 'icon'."),e.modules.edit}updateHeaderColumn(){var e;this.rowSelection&&(this.rowHeader=this.table.columnManager.getVisibleColumnsByIndex()[0],this.rowHeader&&(this.rowHeader.definition.cssClass=this.rowHeader.definition.cssClass+" tabulator-range-row-header",this.rowHeader.definition.headerSort&&console.warn("Using column headerSort with selectableRangeRows option may result in unpredictable behavior"),this.rowHeader.definition.editor&&console.warn("Using column editor with selectableRangeRows option may result in unpredictable behavior"))),this.table.modules.frozenColumns&&this.table.modules.frozenColumns.active&&(e=this.table.modules.frozenColumns.getFrozenColumns(),(e.length>1||e.length===1&&e[0]!==this.rowHeader)&&console.warn("Using frozen columns that are not the range header in combination with the selectRange option may result in unpredictable behavior"))}getRanges(){return this.ranges.map(e=>e.getComponent())}getRangesData(){return this.ranges.map(e=>e.getData())}addRangeFromComponent(e,t){return e=e?e._cell:null,t=t?t._cell:null,this.addRange(e,t)}cellGetRanges(e){var t=[];return e.column===this.rowHeader?t=this.ranges.filter(i=>i.occupiesRow(e.row)):t=this.ranges.filter(i=>i.occupies(e)),t.map(i=>i.getComponent())}rowGetRanges(e){var t=this.ranges.filter(i=>i.occupiesRow(e));return t.map(i=>i.getComponent())}colGetRanges(e){var t=this.ranges.filter(i=>i.occupiesColumn(e));return t.map(i=>i.getComponent())}_handleMouseUp(e){this.mousedown=!1,document.removeEventListener("mouseup",this.mouseUpEvent)}_handleKeyDown(e){if(!this.blockKeydown&&(!this.table.modules.edit||this.table.modules.edit&&!this.table.modules.edit.currentCell)){if(e.key==="Enter"){if(this.table.modules.edit&&this.table.modules.edit.currentCell)return;this.table.modules.edit.editCell(this.getActiveCell()),e.preventDefault()}(e.key==="Backspace"||e.key==="Delete")&&this.options("selectableRangeClearCells")&&this.activeRange&&this.activeRange.clearValues()}}initializeFocus(e){var t;this.restoreFocus();try{document.selection?(t=document.body.createTextRange(),t.moveToElementText(e.getElement()),t.select()):window.getSelection&&(t=document.createRange(),t.selectNode(e.getElement()),window.getSelection().removeAllRanges(),window.getSelection().addRange(t))}catch{}}restoreFocus(e){return this.table.rowManager.element.focus(),!0}handleColumnResized(e){var t;this.selecting!=="column"&&this.selecting!=="all"||(t=this.ranges.some(i=>i.occupiesColumn(e)),t&&this.ranges.forEach(i=>{var a=i.getColumns(!0);a.forEach(n=>{n!==e&&n.setWidth(e.width)})}))}handleColumnMoving(e,t){this.resetRanges().setBounds(t),this.overlay.style.visibility="hidden"}handleColumnMoved(e,t,i){this.activeRange.setBounds(e),this.layoutElement()}handleColumnMouseDown(e,t){e.button===2&&(this.selecting==="column"||this.selecting==="all")&&this.activeRange.occupiesColumn(t)||this.table.options.movableColumns&&this.selecting==="column"&&this.activeRange.occupiesColumn(t)||(this.mousedown=!0,document.addEventListener("mouseup",this.mouseUpEvent),this.newSelection(e,t))}handleColumnMouseMove(e,t){t===this.rowHeader||!this.mousedown||this.selecting==="all"||this.activeRange.setBounds(!1,t,!0)}renderCell(e){var t=e.getElement(),i=this.ranges.findIndex(a=>a.occupies(e));t.classList.toggle("tabulator-range-selected",i!==-1),t.classList.toggle("tabulator-range-only-cell-selected",this.ranges.length===1&&this.ranges[0].atTopLeft(e)&&this.ranges[0].atBottomRight(e)),t.dataset.range=i}handleCellMouseDown(e,t){e.button===2&&(this.activeRange.occupies(t)||(this.selecting==="row"||this.selecting==="all")&&this.activeRange.occupiesRow(t.row))||(this.mousedown=!0,document.addEventListener("mouseup",this.mouseUpEvent),this.newSelection(e,t))}handleCellMouseMove(e,t){!this.mousedown||this.selecting==="all"||this.activeRange.setBounds(!1,t,!0)}handleCellClick(e,t){this.initializeFocus(t)}handleEditingCell(e){this.activeRange&&this.activeRange.setBounds(e)}finishEditingCell(){this.blockKeydown=!0,this.table.rowManager.element.focus(),setTimeout(()=>{this.blockKeydown=!1},10)}keyNavigate(e,t){this.navigate(!1,!1,e),t.preventDefault()}keyNavigateRange(e,t,i,a){this.navigate(i,a,t),e.preventDefault()}navigate(e,t,i){var a=!1,n,r,l,h,d,u,p,y,f,g,k;if(this.table.modules.edit&&this.table.modules.edit.currentCell)return!1;if(this.ranges.length>1&&(this.ranges=this.ranges.filter(b=>b===this.activeRange?(b.setEnd(b.start.row,b.start.col),!0):(b.destroy(),!1))),n=this.activeRange,l={top:n.top,bottom:n.bottom,left:n.left,right:n.right},r=t?n.end:n.start,h=r.row,d=r.col,e)switch(i){case"left":d=this.findJumpCellLeft(n.start.row,r.col);break;case"right":d=this.findJumpCellRight(n.start.row,r.col);break;case"up":h=this.findJumpCellUp(r.row,n.start.col);break;case"down":h=this.findJumpCellDown(r.row,n.start.col);break}else{if(t&&(this.selecting==="row"&&(i==="left"||i==="right")||this.selecting==="column"&&(i==="up"||i==="down")))return;switch(i){case"left":d=Math.max(d-1,0);break;case"right":d=Math.min(d+1,this.getTableColumns().length-1);break;case"up":h=Math.max(h-1,0);break;case"down":h=Math.min(h+1,this.getTableRows().length-1);break}}if(this.rowHeader&&d===0&&(d=1),t||n.setStart(h,d),n.setEnd(h,d),t||(this.selecting="cell"),a=l.top!==n.top||l.bottom!==n.bottom||l.left!==n.left||l.right!==n.right,a)return u=this.getRowByRangePos(n.end.row),p=this.getColumnByRangePos(n.end.col),y=u.getElement().getBoundingClientRect(),g=p.getElement().getBoundingClientRect(),f=this.table.rowManager.getElement().getBoundingClientRect(),k=this.table.columnManager.getElement().getBoundingClientRect(),y.top>=f.top&&y.bottom<=f.bottom||(u.getElement().parentNode&&p.getElement().parentNode?this.autoScroll(n,u.getElement(),p.getElement()):u.getComponent().scrollTo(void 0,!1)),g.left>=k.left+this.getRowHeaderWidth()&&g.right<=k.right||(u.getElement().parentNode&&p.getElement().parentNode?this.autoScroll(n,u.getElement(),p.getElement()):p.getComponent().scrollTo(void 0,!1)),this.layoutElement(),!0}rangeRemoved(e){this.ranges=this.ranges.filter(t=>t!==e),this.activeRange===e&&(this.ranges.length?this.activeRange=this.ranges[this.ranges.length-1]:this.addRange()),this.layoutElement()}findJumpRow(e,t,i,a,n){return i&&(t=t.reverse()),this.findJumpItem(a,n,t,function(r){return r.getData()[e.getField()]})}findJumpCol(e,t,i,a,n){return i&&(t=t.reverse()),this.findJumpItem(a,n,t,function(r){return e.getData()[r.getField()]})}findJumpItem(e,t,i,a){var n;for(let r of i){let l=a(r);if(e){if(n=r,l)break}else if(t){if(n=r,l)break}else if(l)n=r;else break}return n}findJumpCellLeft(e,t){var i=this.getRowByRangePos(e),a=this.getTableColumns(),n=this.isEmpty(i.getData()[a[t].getField()]),r=a[t-1]?this.isEmpty(i.getData()[a[t-1].getField()]):!1,l=this.rowHeader?a.slice(1,t):a.slice(0,t),h=this.findJumpCol(i,l,!0,n,r);return h?h.getPosition()-1:t}findJumpCellRight(e,t){var i=this.getRowByRangePos(e),a=this.getTableColumns(),n=this.isEmpty(i.getData()[a[t].getField()]),r=a[t+1]?this.isEmpty(i.getData()[a[t+1].getField()]):!1,l=this.findJumpCol(i,a.slice(t+1,a.length),!1,n,r);return l?l.getPosition()-1:t}findJumpCellUp(e,t){var i=this.getColumnByRangePos(t),a=this.getTableRows(),n=this.isEmpty(a[e].getData()[i.getField()]),r=a[e-1]?this.isEmpty(a[e-1].getData()[i.getField()]):!1,l=this.findJumpRow(i,a.slice(0,e),!0,n,r);return l?l.position-1:e}findJumpCellDown(e,t){var i=this.getColumnByRangePos(t),a=this.getTableRows(),n=this.isEmpty(a[e].getData()[i.getField()]),r=a[e+1]?this.isEmpty(a[e+1].getData()[i.getField()]):!1,l=this.findJumpRow(i,a.slice(e+1,a.length),!1,n,r);return l?l.position-1:e}newSelection(e,t){var i;if(t.type==="column"){if(!this.columnSelection)return;if(t===this.rowHeader){i=this.resetRanges(),this.selecting="all";var a,n=this.getCell(-1,-1);this.rowHeader?a=this.getCell(0,1):a=this.getCell(0,0),i.setBounds(a,n);return}else this.selecting="column"}else t.column===this.rowHeader?this.selecting="row":this.selecting="cell";e.shiftKey?this.activeRange.setBounds(!1,t):e.ctrlKey?this.addRange().setBounds(t):this.resetRanges().setBounds(t)}autoScroll(e,t,i){var a=this.table.rowManager.element,n,r,l,h;typeof t>"u"&&(t=this.getRowByRangePos(e.end.row).getElement()),typeof i>"u"&&(i=this.getColumnByRangePos(e.end.col).getElement()),n={left:i.offsetLeft,right:i.offsetLeft+i.offsetWidth,top:t.offsetTop,bottom:t.offsetTop+t.offsetHeight},r={left:a.scrollLeft+this.getRowHeaderWidth(),right:Math.ceil(a.scrollLeft+a.clientWidth),top:a.scrollTop,bottom:a.scrollTop+a.offsetHeight-this.table.rowManager.scrollbarWidth},l=r.left<n.left&&n.left<r.right&&r.left<n.right&&n.right<r.right,h=r.top<n.top&&n.top<r.bottom&&r.top<n.bottom&&n.bottom<r.bottom,l||(n.left<r.left?a.scrollLeft=n.left-this.getRowHeaderWidth():n.right>r.right&&(a.scrollLeft=Math.min(n.right-a.clientWidth,n.left-this.getRowHeaderWidth()))),h||(n.top<r.top?a.scrollTop=n.top:n.bottom>r.bottom&&(a.scrollTop=n.bottom-a.clientHeight))}layoutChange(){this.overlay.style.visibility="hidden",clearTimeout(this.layoutChangeTimeout),this.layoutChangeTimeout=setTimeout(this.layoutRanges.bind(this),200)}redraw(e){e&&(this.selecting="cell",this.resetRanges(),this.layoutElement())}layoutElement(e){var t;e?t=this.table.rowManager.getVisibleRows(!0):t=this.table.rowManager.getRows(),t.forEach(i=>{i.type==="row"&&(this.layoutRow(i),i.cells.forEach(a=>this.renderCell(a)))}),this.getTableColumns().forEach(i=>{this.layoutColumn(i)}),this.layoutRanges()}layoutRow(e){var t=e.getElement(),i=!1,a=this.ranges.some(n=>n.occupiesRow(e));this.selecting==="row"?i=a:this.selecting==="all"&&(i=!0),t.classList.toggle("tabulator-range-selected",i),t.classList.toggle("tabulator-range-highlight",a)}layoutColumn(e){var t=e.getElement(),i=!1,a=this.ranges.some(n=>n.occupiesColumn(e));this.selecting==="column"?i=a:this.selecting==="all"&&(i=!0),t.classList.toggle("tabulator-range-selected",i),t.classList.toggle("tabulator-range-highlight",a)}layoutRanges(){var e,t,i;this.table.initialized&&(e=this.getActiveCell(),e&&(t=e.getElement(),i=e.row.getElement(),this.table.rtl?this.activeRangeCellElement.style.right=i.offsetWidth-t.offsetLeft-t.offsetWidth+"px":this.activeRangeCellElement.style.left=i.offsetLeft+t.offsetLeft+"px",this.activeRangeCellElement.style.top=i.offsetTop+"px",this.activeRangeCellElement.style.width=t.offsetWidth+"px",this.activeRangeCellElement.style.height=i.offsetHeight+"px",this.ranges.forEach(a=>a.layout()),this.overlay.style.visibility="visible"))}getCell(e,t){var i;return t<0&&(t=this.getTableColumns().length+t,t<0)?null:(e<0&&(e=this.getTableRows().length+e),i=this.table.rowManager.getRowFromPosition(e+1),i?i.getCells(!1,!0).filter(a=>a.column.visible)[t]:null)}getActiveCell(){return this.getCell(this.activeRange.start.row,this.activeRange.start.col)}getRowByRangePos(e){return this.getTableRows()[e]}getColumnByRangePos(e){return this.getTableColumns()[e]}getTableRows(){return this.table.rowManager.getDisplayRows().filter(e=>e.type==="row")}getTableColumns(){return this.table.columnManager.getVisibleColumnsByIndex()}addRange(e,t){var i;return this.maxRanges!==!0&&this.ranges.length>=this.maxRanges&&this.ranges.shift().destroy(),i=new TI(this.table,this,e,t),this.activeRange=i,this.ranges.push(i),this.rangeContainer.appendChild(i.element),i}resetRanges(){var e,t,i;return this.ranges.forEach(a=>a.destroy()),this.ranges=[],e=this.addRange(),this.table.rowManager.activeRows.length&&(i=this.table.rowManager.activeRows[0].cells.filter(a=>a.column.visible),t=i[this.rowHeader?1:0],t&&(e.setBounds(t),this.options("selectableRangeAutoFocus")&&this.initializeFocus(t))),e}tableDestroyed(){document.removeEventListener("mouseup",this.mouseUpEvent),this.table.rowManager.element.removeEventListener("keydown",this.keyDownEvent)}selectedRows(e){return e?this.activeRange.getRows().map(t=>t.getComponent()):this.activeRange.getRows()}selectedColumns(e){return e?this.activeRange.getColumns().map(t=>t.getComponent()):this.activeRange.getColumns()}getRowHeaderWidth(){return this.rowHeader?this.rowHeader.getElement().offsetWidth:0}isEmpty(e){return e==null||e===""}}E(Vn,"moduleName","selectRange"),E(Vn,"moduleInitOrder",1),E(Vn,"moduleExtensions",PI);function qI(o,e,t,i,a,n,r){var l=r.alignEmptyValues,h=r.decimalSeparator,d=r.thousandSeparator,u=0;if(o=String(o),e=String(e),d&&(o=o.split(d).join(""),e=e.split(d).join("")),h&&(o=o.split(h).join("."),e=e.split(h).join(".")),o=parseFloat(o),e=parseFloat(e),isNaN(o))u=isNaN(e)?0:-1;else if(isNaN(e))u=1;else return o-e;return(l==="top"&&n==="desc"||l==="bottom"&&n==="asc")&&(u*=-1),u}function BI(o,e,t,i,a,n,r){var l=r.alignEmptyValues,h=0,d;if(!o)h=e?-1:0;else if(!e)h=1;else{switch(typeof r.locale){case"boolean":r.locale&&(d=this.langLocale());break;case"string":d=r.locale;break}return String(o).toLowerCase().localeCompare(String(e).toLowerCase(),d)}return(l==="top"&&n==="desc"||l==="bottom"&&n==="asc")&&(h*=-1),h}function D9(o,e,t,i,a,n,r){var l=this.table.dependencyRegistry.lookup(["luxon","DateTime"],"DateTime"),h=r.format||"dd/MM/yyyy HH:mm:ss",d=r.alignEmptyValues,u=0;if(typeof l<"u"){if(l.isDateTime(o)||(h==="iso"?o=l.fromISO(String(o)):o=l.fromFormat(String(o),h)),l.isDateTime(e)||(h==="iso"?e=l.fromISO(String(e)):e=l.fromFormat(String(e),h)),!o.isValid)u=e.isValid?-1:0;else if(!e.isValid)u=1;else return o-e;return(d==="top"&&n==="desc"||d==="bottom"&&n==="asc")&&(u*=-1),u}else console.error("Sort Error - 'datetime' sorter is dependant on luxon.js")}function FI(o,e,t,i,a,n,r){return r.format||(r.format="dd/MM/yyyy"),D9.call(this,o,e,t,i,a,n,r)}function OI(o,e,t,i,a,n,r){return r.format||(r.format="HH:mm"),D9.call(this,o,e,t,i,a,n,r)}function jI(o,e,t,i,a,n,r){var l=o===!0||o==="true"||o==="True"||o===1?1:0,h=e===!0||e==="true"||e==="True"||e===1?1:0;return l-h}function NI(o,e,t,i,a,n,r){var l=r.type||"length",h=r.alignEmptyValues,d=0,u=this.table,p;r.valueMap&&(typeof r.valueMap=="string"?p=function(f){return f.map(g=>$.retrieveNestedData(u.options.nestedFieldSeparator,r.valueMap,g))}:p=r.valueMap);function y(f){var g;switch(p&&(f=p(f)),l){case"length":g=f.length;break;case"sum":g=f.reduce(function(k,b){return k+b});break;case"max":g=Math.max.apply(null,f);break;case"min":g=Math.min.apply(null,f);break;case"avg":g=f.reduce(function(k,b){return k+b})/f.length;break;case"string":g=f.join("");break}return g}if(!Array.isArray(o))d=Array.isArray(e)?-1:0;else if(!Array.isArray(e))d=1;else return l==="string"?String(y(o)).toLowerCase().localeCompare(String(y(e)).toLowerCase()):y(e)-y(o);return(h==="top"&&n==="desc"||h==="bottom"&&n==="asc")&&(d*=-1),d}function _I(o,e,t,i,a,n,r){var l=typeof o>"u"?0:1,h=typeof e>"u"?0:1;return l-h}function WI(o,e,t,i,a,n,r){var l,h,d,u,p=0,y,f=/(\d+)|(\D+)/g,g=/\d/,k=r.alignEmptyValues,b=0;if(!o&&o!==0)b=!e&&e!==0?0:-1;else if(!e&&e!==0)b=1;else{if(isFinite(o)&&isFinite(e))return o-e;if(l=String(o).toLowerCase(),h=String(e).toLowerCase(),l===h)return 0;if(!(g.test(l)&&g.test(h)))return l>h?1:-1;for(l=l.match(f),h=h.match(f),y=l.length>h.length?h.length:l.length;p<y;)if(d=l[p],u=h[p++],d!==u)return isFinite(d)&&isFinite(u)?(d.charAt(0)==="0"&&(d="."+d),u.charAt(0)==="0"&&(u="."+u),d-u):d>u?1:-1;return l.length>h.length}return(k==="top"&&n==="desc"||k==="bottom"&&n==="asc")&&(b*=-1),b}var UI={number:qI,string:BI,date:FI,time:OI,datetime:D9,boolean:jI,array:NI,exists:_I,alphanum:WI};const Go=class Go extends q{constructor(e){super(e),this.sortList=[],this.changed=!1,this.registerTableOption("sortMode","local"),this.registerTableOption("initialSort",!1),this.registerTableOption("columnHeaderSortMulti",!0),this.registerTableOption("sortOrderReverse",!1),this.registerTableOption("headerSortElement","<div class='tabulator-arrow'></div>"),this.registerTableOption("headerSortClickElement","header"),this.registerColumnOption("sorter"),this.registerColumnOption("sorterParams"),this.registerColumnOption("headerSort",!0),this.registerColumnOption("headerSortStartingDir"),this.registerColumnOption("headerSortTristate")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("table-built",this.tableBuilt.bind(this)),this.registerDataHandler(this.sort.bind(this),20),this.registerTableFunction("setSort",this.userSetSort.bind(this)),this.registerTableFunction("getSorters",this.getSort.bind(this)),this.registerTableFunction("clearSort",this.clearSort.bind(this)),this.table.options.sortMode==="remote"&&this.subscribe("data-params",this.remoteSortParams.bind(this))}tableBuilt(){this.table.options.initialSort&&this.setSort(this.table.options.initialSort)}remoteSortParams(e,t,i,a){var n=this.getSort();return n.forEach(r=>{delete r.column}),a.sort=n,a}userSetSort(e,t){this.setSort(e,t),this.refreshSort()}clearSort(){this.clear(),this.refreshSort()}initializeColumn(e){var t=!1,i,a;switch(typeof e.definition.sorter){case"string":Go.sorters[e.definition.sorter]?t=Go.sorters[e.definition.sorter]:console.warn("Sort Error - No such sorter found: ",e.definition.sorter);break;case"function":t=e.definition.sorter;break}if(e.modules.sort={sorter:t,dir:"none",params:e.definition.sorterParams||{},startingDir:e.definition.headerSortStartingDir||"asc",tristate:e.definition.headerSortTristate},e.definition.headerSort!==!1){switch(i=e.getElement(),i.classList.add("tabulator-sortable"),a=document.createElement("div"),a.classList.add("tabulator-col-sorter"),this.table.options.headerSortClickElement){case"icon":a.classList.add("tabulator-col-sorter-element");break;case"header":i.classList.add("tabulator-col-sorter-element");break;default:i.classList.add("tabulator-col-sorter-element");break}switch(this.table.options.headerSortElement){case"function":break;case"object":a.appendChild(this.table.options.headerSortElement);break;default:a.innerHTML=this.table.options.headerSortElement}e.titleHolderElement.appendChild(a),e.modules.sort.element=a,this.setColumnHeaderSortIcon(e,"none"),this.table.options.headerSortClickElement==="icon"&&a.addEventListener("mousedown",n=>{n.stopPropagation()}),(this.table.options.headerSortClickElement==="icon"?a:i).addEventListener("click",n=>{var r="",l=[],h=!1;if(e.modules.sort){if(e.modules.sort.tristate)e.modules.sort.dir=="none"?r=e.modules.sort.startingDir:e.modules.sort.dir==e.modules.sort.startingDir?r=e.modules.sort.dir=="asc"?"desc":"asc":r="none";else switch(e.modules.sort.dir){case"asc":r="desc";break;case"desc":r="asc";break;default:r=e.modules.sort.startingDir}this.table.options.columnHeaderSortMulti&&(n.shiftKey||n.ctrlKey)?(l=this.getSort(),h=l.findIndex(d=>d.field===e.getField()),h>-1?(l[h].dir=r,h=l.splice(h,1)[0],r!="none"&&l.push(h)):r!="none"&&l.push({column:e,dir:r}),this.setSort(l)):r=="none"?this.clear():this.setSort(e,r),this.refreshSort()}})}}refreshSort(){this.table.options.sortMode==="remote"?this.reloadData(null,!1,!1):this.refreshData(!0)}hasChanged(){var e=this.changed;return this.changed=!1,e}getSort(){var e=this,t=[];return e.sortList.forEach(function(i){i.column&&t.push({column:i.column.getComponent(),field:i.column.getField(),dir:i.dir})}),t}setSort(e,t){var i=this,a=[];Array.isArray(e)||(e=[{column:e,dir:t}]),e.forEach(function(n){var r;r=i.table.columnManager.findColumn(n.column),r?(n.column=r,a.push(n),i.changed=!0):console.warn("Sort Warning - Sort field does not exist and is being ignored: ",n.column)}),i.sortList=a,this.dispatch("sort-changed")}clear(){this.setSort([])}findSorter(e){var t=this.table.rowManager.activeRows[0],i="string",a,n;if(t&&(t=t.getData(),a=e.getField(),a))switch(n=e.getFieldValue(t),typeof n){case"undefined":i="string";break;case"boolean":i="boolean";break;default:!isNaN(n)&&n!==""?i="number":n.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)&&(i="alphanum");break}return Go.sorters[i]}sort(e,t){var i=this,a=this.table.options.sortOrderReverse?i.sortList.slice().reverse():i.sortList,n=[],r=[];return this.subscribedExternal("dataSorting")&&this.dispatchExternal("dataSorting",i.getSort()),t||i.clearColumnHeaders(),this.table.options.sortMode!=="remote"?(a.forEach(function(l,h){var d;l.column&&(d=l.column.modules.sort,d&&(d.sorter||(d.sorter=i.findSorter(l.column)),l.params=typeof d.params=="function"?d.params(l.column.getComponent(),l.dir):d.params,n.push(l)),t||i.setColumnHeader(l.column,l.dir))}),n.length&&i._sortItems(e,n)):t||a.forEach(function(l,h){i.setColumnHeader(l.column,l.dir)}),this.subscribedExternal("dataSorted")&&(e.forEach(l=>{r.push(l.getComponent())}),this.dispatchExternal("dataSorted",i.getSort(),r)),e}clearColumnHeaders(){this.table.columnManager.getRealColumns().forEach(e=>{e.modules.sort&&(e.modules.sort.dir="none",e.getElement().setAttribute("aria-sort","none"),this.setColumnHeaderSortIcon(e,"none"))})}setColumnHeader(e,t){e.modules.sort.dir=t,e.getElement().setAttribute("aria-sort",t==="asc"?"ascending":"descending"),this.setColumnHeaderSortIcon(e,t)}setColumnHeaderSortIcon(e,t){var i=e.modules.sort.element,a;if(e.definition.headerSort&&typeof this.table.options.headerSortElement=="function"){for(;i.firstChild;)i.removeChild(i.firstChild);a=this.table.options.headerSortElement.call(this.table,e.getComponent(),t),typeof a=="object"?i.appendChild(a):i.innerHTML=a}}_sortItems(e,t){var i=t.length-1;e.sort((a,n)=>{for(var r,l=i;l>=0;l--){let h=t[l];if(r=this._sortRow(a,n,h.column,h.dir,h.params),r!==0)break}return r})}_sortRow(e,t,i,a,n){var r,l,h=a=="asc"?e:t,d=a=="asc"?t:e;return e=i.getFieldValue(h.getData()),t=i.getFieldValue(d.getData()),e=typeof e<"u"?e:"",t=typeof t<"u"?t:"",r=h.getComponent(),l=d.getComponent(),i.modules.sort.sorter.call(this,e,t,r,l,i.getComponent(),a,n)}};E(Go,"moduleName","sort"),E(Go,"sorters",UI);let z9=Go;class $I{constructor(e,t){this.columnCount=e,this.rowCount=t,this.columnString=[],this.columns=[],this.rows=[]}genColumns(e){var t=Math.max(this.columnCount,Math.max(...e.map(i=>i.length)));this.columnString=[],this.columns=[];for(let i=1;i<=t;i++)this.incrementChar(this.columnString.length-1),this.columns.push(this.columnString.join(""));return this.columns}genRows(e){var t=Math.max(this.rowCount,e.length);this.rows=[];for(let i=1;i<=t;i++)this.rows.push(i);return this.rows}incrementChar(e){let t=this.columnString[e];t?t!=="Z"?this.columnString[e]=String.fromCharCode(this.columnString[e].charCodeAt(0)+1):(this.columnString[e]="A",e?this.incrementChar(e-1):this.columnString.push("A")):this.columnString.push("A")}setRowCount(e){this.rowCount=e}setColumnCount(e){this.columnCount=e}}class tx{constructor(e){return this._sheet=e,new Proxy(this,{get:function(t,i,a){return typeof t[i]<"u"?t[i]:t._sheet.table.componentFunctionBinder.handle("sheet",t._sheet,i)}})}getTitle(){return this._sheet.title}getKey(){return this._sheet.key}getDefinition(){return this._sheet.getDefinition()}getData(){return this._sheet.getData()}setData(e){return this._sheet.setData(e)}clear(){return this._sheet.clear()}remove(){return this._sheet.remove()}active(){return this._sheet.active()}setTitle(e){return this._sheet.setTitle(e)}setRows(e){return this._sheet.setRows(e)}setColumns(e){return this._sheet.setColumns(e)}}let ix=class extends te{constructor(e,t){super(e.table),this.spreadsheetManager=e,this.definition=t,this.title=this.definition.title||"",this.key=this.definition.key||this.definition.title,this.rowCount=this.definition.rows,this.columnCount=this.definition.columns,this.data=this.definition.data||[],this.element=null,this.isActive=!1,this.grid=new $I(this.columnCount,this.rowCount),this.defaultColumnDefinition={width:100,headerHozAlign:"center",headerSort:!1},this.columnDefinition=Object.assign(this.defaultColumnDefinition,this.options("spreadsheetColumnDefinition")),this.columnDefs=[],this.rowDefs=[],this.columnFields=[],this.columns=[],this.rows=[],this.scrollTop=null,this.scrollLeft=null,this.initialize(),this.dispatchExternal("sheetAdded",this.getComponent())}initialize(){this.initializeElement(),this.initializeColumns(),this.initializeRows()}reinitialize(){this.initializeColumns(),this.initializeRows()}initializeElement(){this.element=document.createElement("div"),this.element.classList.add("tabulator-spreadsheet-tab"),this.element.innerText=this.title,this.element.addEventListener("click",()=>{this.spreadsheetManager.loadSheet(this)})}initializeColumns(){this.grid.setColumnCount(this.columnCount),this.columnFields=this.grid.genColumns(this.data),this.columnDefs=[],this.columnFields.forEach(e=>{var t=Object.assign({},this.columnDefinition);t.field=e,t.title=e,this.columnDefs.push(t)})}initializeRows(){var e;this.grid.setRowCount(this.rowCount),e=this.grid.genRows(this.data),this.rowDefs=[],e.forEach((t,i)=>{var a={_id:t},n=this.data[i];n&&n.forEach((r,l)=>{var h=this.columnFields[l];h&&(a[h]=r)}),this.rowDefs.push(a)})}unload(){this.isActive=!1,this.scrollTop=this.table.rowManager.scrollTop,this.scrollLeft=this.table.rowManager.scrollLeft,this.data=this.getData(!0),this.element.classList.remove("tabulator-spreadsheet-tab-active")}load(){var e=!this.isActive;this.isActive=!0,this.table.blockRedraw(),this.table.setData([]),this.table.setColumns(this.columnDefs),this.table.setData(this.rowDefs),this.table.restoreRedraw(),e&&this.scrollTop!==null&&(this.table.rowManager.element.scrollLeft=this.scrollLeft,this.table.rowManager.element.scrollTop=this.scrollTop),this.element.classList.add("tabulator-spreadsheet-tab-active"),this.dispatchExternal("sheetLoaded",this.getComponent())}getComponent(){return new tx(this)}getDefinition(){return{title:this.title,key:this.key,rows:this.rowCount,columns:this.columnCount,data:this.getData()}}getData(e){var t=[],i,a,n;return this.rowDefs.forEach(r=>{var l=[];this.columnFields.forEach(h=>{l.push(r[h])}),t.push(l)}),!e&&!this.options("spreadsheetOutputFull")&&(i=t.map(r=>r.findLastIndex(l=>typeof l<"u")+1),a=Math.max(...i),n=i.findLastIndex(r=>r>0)+1,t=t.slice(0,n),t=t.map(r=>r.slice(0,a))),t}setData(e){this.data=e,this.reinitialize(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}clear(){this.setData([])}setTitle(e){this.title=e,this.element.innerText=e,this.dispatchExternal("sheetUpdated",this.getComponent())}setRows(e){this.rowCount=e,this.initializeRows(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}setColumns(e){this.columnCount=e,this.reinitialize(),this.dispatchExternal("sheetUpdated",this.getComponent()),this.isActive&&this.load()}remove(){this.spreadsheetManager.removeSheet(this)}destroy(){this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.dispatchExternal("sheetRemoved",this.getComponent())}active(){this.spreadsheetManager.loadSheet(this)}};class ax extends q{constructor(e){super(e),this.sheets=[],this.element=null,this.registerTableOption("spreadsheet",!1),this.registerTableOption("spreadsheetRows",50),this.registerTableOption("spreadsheetColumns",50),this.registerTableOption("spreadsheetColumnDefinition",{}),this.registerTableOption("spreadsheetOutputFull",!1),this.registerTableOption("spreadsheetData",!1),this.registerTableOption("spreadsheetSheets",!1),this.registerTableOption("spreadsheetSheetTabs",!1),this.registerTableOption("spreadsheetSheetTabsElement",!1),this.registerTableFunction("setSheets",this.setSheets.bind(this)),this.registerTableFunction("addSheet",this.addSheet.bind(this)),this.registerTableFunction("getSheets",this.getSheets.bind(this)),this.registerTableFunction("getSheetDefinitions",this.getSheetDefinitions.bind(this)),this.registerTableFunction("setSheetData",this.setSheetData.bind(this)),this.registerTableFunction("getSheet",this.getSheet.bind(this)),this.registerTableFunction("getSheetData",this.getSheetData.bind(this)),this.registerTableFunction("clearSheet",this.clearSheet.bind(this)),this.registerTableFunction("removeSheet",this.removeSheetFunc.bind(this)),this.registerTableFunction("activeSheet",this.activeSheetFunc.bind(this))}initialize(){this.options("spreadsheet")&&(this.subscribe("table-initialized",this.tableInitialized.bind(this)),this.subscribe("data-loaded",this.loadRemoteData.bind(this)),this.table.options.index="_id",this.options("spreadsheetData")&&this.options("spreadsheetSheets")&&(console.warn("You cannot use spreadsheetData and spreadsheetSheets at the same time, ignoring spreadsheetData"),this.table.options.spreadsheetData=!1),this.compatibilityCheck(),this.options("spreadsheetSheetTabs")&&this.initializeTabset())}compatibilityCheck(){this.options("data")&&console.warn("Do not use the data option when working with spreadsheets, use either spreadsheetData or spreadsheetSheets to pass data into the table"),this.options("pagination")&&console.warn("The spreadsheet module is not compatible with the pagination module"),this.options("groupBy")&&console.warn("The spreadsheet module is not compatible with the row grouping module"),this.options("responsiveCollapse")&&console.warn("The spreadsheet module is not compatible with the responsive collapse module")}initializeTabset(){this.element=document.createElement("div"),this.element.classList.add("tabulator-spreadsheet-tabs");var e=this.options("spreadsheetSheetTabsElement");e&&!(e instanceof HTMLElement)&&(e=document.querySelector(e),e||console.warn("Unable to find element matching spreadsheetSheetTabsElement selector:",this.options("spreadsheetSheetTabsElement"))),e?e.appendChild(this.element):this.footerAppend(this.element)}tableInitialized(){this.sheets.length?this.loadSheet(this.sheets[0]):this.options("spreadsheetSheets")?this.loadSheets(this.options("spreadsheetSheets")):this.options("spreadsheetData")&&this.loadData(this.options("spreadsheetData"))}loadRemoteData(e,t,i){return console.log("data",e,t,i),Array.isArray(e)?(this.table.dataLoader.clearAlert(),this.dispatchExternal("dataLoaded",e),!e.length||Array.isArray(e[0])?this.loadData(e):this.loadSheets(e)):console.error(`Spreadsheet Loading Error - Unable to process remote data due to invalid data type
18
18
  Expecting: array
19
19
  Received: `,typeof e,`
20
- Data: `,e),!1}loadData(e){var t={data:e};this.loadSheet(this.newSheet(t))}destroySheets(){this.sheets.forEach(e=>{e.destroy()}),this.sheets=[],this.activeSheet=null}loadSheets(e){Array.isArray(e)||(e=[]),this.destroySheets(),e.forEach(t=>{this.newSheet(t)}),this.loadSheet(this.sheets[0])}loadSheet(e){this.activeSheet!==e&&(this.activeSheet&&this.activeSheet.unload(),this.activeSheet=e,e.load())}newSheet(e={}){var t;return e.rows||(e.rows=this.options("spreadsheetRows")),e.columns||(e.columns=this.options("spreadsheetColumns")),t=new ix(this,e),this.sheets.push(t),this.element&&this.element.appendChild(t.element),t}removeSheet(e){var t=this.sheets.indexOf(e),i;this.sheets.length>1?t>-1&&(this.sheets.splice(t,1),e.destroy(),this.activeSheet===e&&(i=this.sheets[t-1]||this.sheets[0],i?this.loadSheet(i):this.activeSheet=null)):console.warn("Unable to remove sheet, at least one sheet must be active")}lookupSheet(e){return e?e instanceof ix?e:e instanceof tx?e._sheet:this.sheets.find(t=>t.key===e)||!1:this.activeSheet}setSheets(e){return this.loadSheets(e),this.getSheets()}addSheet(e){return this.newSheet(e).getComponent()}getSheetDefinitions(){return this.sheets.map(e=>e.getDefinition())}getSheets(){return this.sheets.map(e=>e.getComponent())}getSheet(e){var t=this.lookupSheet(e);return t?t.getComponent():!1}setSheetData(e,t){e&&!t&&(t=e,e=!1);var i=this.lookupSheet(e);return i?i.setData(t):!1}getSheetData(e){var t=this.lookupSheet(e);return t?t.getData():!1}clearSheet(e){var t=this.lookupSheet(e);return t?t.clear():!1}removeSheetFunc(e){var t=this.lookupSheet(e);t&&this.removeSheet(t)}activeSheetFunc(e){var t=this.lookupSheet(e);return t?this.loadSheet(t):!1}}E(ax,"moduleName","spreadsheet");class ox extends q{constructor(e){super(e),this.tooltipSubscriber=null,this.headerSubscriber=null,this.timeout=null,this.popupInstance=null,this.registerTableOption("tooltipDelay",300),this.registerColumnOption("tooltip"),this.registerColumnOption("headerTooltip")}initialize(){this.deprecatedOptionsCheck(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){}initializeColumn(e){e.definition.headerTooltip&&!this.headerSubscriber&&(this.headerSubscriber=!0,this.subscribe("column-mousemove",this.mousemoveCheck.bind(this,"headerTooltip")),this.subscribe("column-mouseout",this.mouseoutCheck.bind(this,"headerTooltip"))),e.definition.tooltip&&!this.tooltipSubscriber&&(this.tooltipSubscriber=!0,this.subscribe("cell-mousemove",this.mousemoveCheck.bind(this,"tooltip")),this.subscribe("cell-mouseout",this.mouseoutCheck.bind(this,"tooltip")))}mousemoveCheck(e,t,i){var a=e==="tooltip"?i.column.definition.tooltip:i.definition.headerTooltip;a&&(this.clearPopup(),this.timeout=setTimeout(this.loadTooltip.bind(this,t,i,a),this.table.options.tooltipDelay))}mouseoutCheck(e,t,i){this.popupInstance||this.clearPopup()}clearPopup(e,t,i){clearTimeout(this.timeout),this.timeout=null,this.popupInstance&&this.popupInstance.hide()}loadTooltip(e,t,i){var a,n,r;function l(h){n=h}typeof i=="function"&&(i=i(e,t.getComponent(),l)),i instanceof HTMLElement?a=i:(a=document.createElement("div"),i===!0&&(t instanceof un?i=t.value:t.definition.field?this.langBind("columns|"+t.definition.field,h=>{a.innerHTML=i=h||t.definition.title}):i=t.definition.title),a.innerHTML=i),(i||i===0||i===!1)&&(a.classList.add("tabulator-tooltip"),a.addEventListener("mousemove",h=>h.preventDefault()),this.popupInstance=this.popup(a),typeof n=="function"&&this.popupInstance.renderCallback(n),r=this.popupInstance.containerEventCoords(e),this.popupInstance.show(r.x+15,r.y+15).hideOnBlur(()=>{this.dispatchExternal("TooltipClosed",t.getComponent()),this.popupInstance=null}),this.dispatchExternal("TooltipOpened",t.getComponent()))}}E(ox,"moduleName","tooltip");var $I={integer:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:(e=Number(e),!isNaN(e)&&isFinite(e)&&Math.floor(e)===e)},float:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:(e=Number(e),!isNaN(e)&&isFinite(e)&&e%1!==0)},numeric:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:!isNaN(e)},string:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:isNaN(e)},alphanumeric:function(o,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=new RegExp(/^[a-z0-9]+$/i);return i.test(e)},max:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:parseFloat(e)<=t},min:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:parseFloat(e)>=t},starts:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).toLowerCase().startsWith(String(t).toLowerCase())},ends:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).toLowerCase().endsWith(String(t).toLowerCase())},minLength:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).length>=t},maxLength:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).length<=t},in:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:(typeof t=="string"&&(t=t.split("|")),t.indexOf(e)>-1)},regex:function(o,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=new RegExp(t);return i.test(e)},unique:function(o,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=!0,a=o.getData(),n=o.getColumn()._getSelf();return this.table.rowManager.rows.forEach(function(r){var l=r.getData();l!==a&&e==n.getFieldValue(l)&&(i=!1)}),i},required:function(o,e,t){return e!==""&&e!==null&&typeof e<"u"}};const Sn=class Sn extends q{constructor(e){super(e),this.invalidCells=[],this.registerTableOption("validationMode","blocking"),this.registerColumnOption("validator"),this.registerTableFunction("getInvalidCells",this.getInvalidCells.bind(this)),this.registerTableFunction("clearCellValidation",this.userClearCellValidation.bind(this)),this.registerTableFunction("validate",this.userValidate.bind(this)),this.registerComponentFunction("cell","isValid",this.cellIsValid.bind(this)),this.registerComponentFunction("cell","clearValidation",this.clearValidation.bind(this)),this.registerComponentFunction("cell","validate",this.cellValidate.bind(this)),this.registerComponentFunction("column","validate",this.columnValidate.bind(this)),this.registerComponentFunction("row","validate",this.rowValidate.bind(this))}initialize(){this.subscribe("cell-delete",this.clearValidation.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("edit-success",this.editValidate.bind(this)),this.subscribe("edit-editor-clear",this.editorClear.bind(this)),this.subscribe("edit-edited-clear",this.editedClear.bind(this))}editValidate(e,t,i){var a=this.table.options.validationMode!=="manual"?this.validate(e.column.modules.validate,e,t):!0;return a!==!0&&setTimeout(()=>{e.getElement().classList.add("tabulator-validation-fail"),this.dispatchExternal("validationFailed",e.getComponent(),t,a)}),a}editorClear(e,t){t&&e.column.modules.validate&&this.cellValidate(e),e.getElement().classList.remove("tabulator-validation-fail")}editedClear(e){e.modules.validate&&(e.modules.validate.invalid=!1)}cellIsValid(e){return e.modules.validate&&e.modules.validate.invalid||!0}cellValidate(e){return this.validate(e.column.modules.validate,e,e.getValue())}columnValidate(e){var t=[];return e.cells.forEach(i=>{this.cellValidate(i)!==!0&&t.push(i.getComponent())}),t.length?t:!0}rowValidate(e){var t=[];return e.cells.forEach(i=>{this.cellValidate(i)!==!0&&t.push(i.getComponent())}),t.length?t:!0}userClearCellValidation(e){e||(e=this.getInvalidCells()),Array.isArray(e)||(e=[e]),e.forEach(t=>{this.clearValidation(t._getSelf())})}userValidate(e){var t=[];return this.table.rowManager.rows.forEach(i=>{i=i.getComponent();var a=i.validate();a!==!0&&(t=t.concat(a))}),t.length?t:!0}initializeColumnCheck(e){typeof e.definition.validator<"u"&&this.initializeColumn(e)}initializeColumn(e){var t=this,i=[],a;e.definition.validator&&(Array.isArray(e.definition.validator)?e.definition.validator.forEach(n=>{a=t._extractValidator(n),a&&i.push(a)}):(a=this._extractValidator(e.definition.validator),a&&i.push(a)),e.modules.validate=i.length?i:!1)}_extractValidator(e){var t,i,a;switch(typeof e){case"string":return a=e.indexOf(":"),a>-1?(t=e.substring(0,a),i=e.substring(a+1)):t=e,this._buildValidator(t,i);case"function":return this._buildValidator(e);case"object":return this._buildValidator(e.type,e.parameters)}}_buildValidator(e,t){var i=typeof e=="function"?e:Sn.validators[e];return i?{type:typeof e=="function"?"function":e,func:i,params:t}:(console.warn("Validator Setup Error - No matching validator found:",e),!1)}validate(e,t,i){var a=this,n=[],r=this.invalidCells.indexOf(t);return e&&e.forEach(l=>{l.func.call(a,t.getComponent(),i,l.params)||n.push({type:l.type,parameters:l.params})}),t.modules.validate||(t.modules.validate={}),n.length?(t.modules.validate.invalid=n,this.table.options.validationMode!=="manual"&&t.getElement().classList.add("tabulator-validation-fail"),r==-1&&this.invalidCells.push(t)):(t.modules.validate.invalid=!1,t.getElement().classList.remove("tabulator-validation-fail"),r>-1&&this.invalidCells.splice(r,1)),n.length?n:!0}getInvalidCells(){var e=[];return this.invalidCells.forEach(t=>{e.push(t.getComponent())}),e}clearValidation(e){var t;e.modules.validate&&e.modules.validate.invalid&&(e.getElement().classList.remove("tabulator-validation-fail"),e.modules.validate.invalid=!1,t=this.invalidCells.indexOf(e),t>-1&&this.invalidCells.splice(t,1))}};E(Sn,"moduleName","validate"),E(Sn,"validators",$I);let R9=Sn;var H9=Object.freeze({__proto__:null,AccessorModule:p9,AjaxModule:m9,ClipboardModule:iS,ColumnCalcsModule:g9,DataTreeModule:NC,DownloadModule:uS,EditModule:k9,ExportModule:w9,FilterModule:v9,FormatModule:M9,FrozenColumnsModule:WC,FrozenRowsModule:UC,GroupRowsModule:GC,HistoryModule:nI,HtmlTableImportModule:$C,ImportModule:dI,InteractionModule:YC,KeybindingsModule:C9,MenuModule:yI,MoveColumnsModule:ZC,MoveRowsModule:x9,MutatorModule:L9,PageModule:E9,PersistenceModule:S9,PopupModule:CI,PrintModule:XC,ReactiveDataModule:KC,ResizeColumnsModule:JC,ResizeRowsModule:QC,ResizeTableModule:ex,ResponsiveLayoutModule:I9,SelectRangeModule:Vn,SelectRowModule:T9,SortModule:z9,SpreadsheetModule:ax,TooltipModule:ox,ValidateModule:R9}),YI={debugEventsExternal:!1,debugEventsInternal:!1,debugInvalidOptions:!0,debugInvalidComponentFuncs:!0,debugInitialization:!0,debugDeprecation:!0,height:!1,minHeight:!1,maxHeight:!1,columnHeaderVertAlign:"top",popupContainer:!1,columns:[],columnDefaults:{},rowHeader:!1,data:!1,autoColumns:!1,autoColumnsDefinitions:!1,nestedFieldSeparator:".",footerElement:!1,index:"id",textDirection:"auto",addRowPos:"bottom",headerVisible:!0,renderVertical:"virtual",renderHorizontal:"basic",renderVerticalBuffer:0,scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,rowHeight:null,placeholder:!1,dataLoader:!0,dataLoaderLoading:!1,dataLoaderError:!1,dataLoaderErrorTimeout:3e3,dataSendParams:{},dataReceiveParams:{},dependencies:{}};class nx{constructor(e,t,i={}){this.table=e,this.msgType=t,this.registeredDefaults=Object.assign({},i)}register(e,t){this.registeredDefaults[e]=t}generate(e,t={}){var i=Object.assign({},this.registeredDefaults),a=this.table.options.debugInvalidOptions||t.debugInvalidOptions===!0;Object.assign(i,e);for(let n in t)i.hasOwnProperty(n)||(a&&console.warn("Invalid "+this.msgType+" option:",n),i[n]=t.key);for(let n in i)n in t?i[n]=t[n]:Array.isArray(i[n])?i[n]=Object.assign([],i[n]):typeof i[n]=="object"&&i[n]!==null?i[n]=Object.assign({},i[n]):typeof i[n]>"u"&&delete i[n];return i}}class Pn extends te{constructor(e){super(e),this.elementVertical=e.rowManager.element,this.elementHorizontal=e.columnManager.element,this.tableElement=e.rowManager.tableElement,this.verticalFillMode="fit"}initialize(){}clearRows(){}clearColumns(){}reinitializeColumnWidths(e){}renderRows(){}renderColumns(){}rerenderRows(e){e&&e()}rerenderColumns(e,t){}renderRowCells(e){}rerenderRowCells(e,t){}scrollColumns(e,t){}scrollRows(e,t){}resize(){}scrollToRow(e){}scrollToRowNearestTop(e){}visibleRows(e){return[]}rows(){return this.table.rowManager.getDisplayRows()}styleRow(e,t){var i=e.getElement();t%2?(i.classList.add("tabulator-row-even"),i.classList.remove("tabulator-row-odd")):(i.classList.add("tabulator-row-odd"),i.classList.remove("tabulator-row-even"))}clear(){this.clearRows(),this.clearColumns()}render(){this.renderRows(),this.renderColumns()}rerender(e){this.rerenderRows(),this.rerenderColumns()}scrollToRowPosition(e,t,i){var a=this.rows().indexOf(e),n=e.getElement(),r=0;return new Promise((l,h)=>{if(a>-1){if(typeof i>"u"&&(i=this.table.options.scrollToRowIfVisible),!i&&G.elVisible(n)&&(r=G.elOffset(n).top-G.elOffset(this.elementVertical).top,r>0&&r<this.elementVertical.clientHeight-n.offsetHeight))return l(),!1;switch(typeof t>"u"&&(t=this.table.options.scrollToRowPosition),t==="nearest"&&(t=this.scrollToRowNearestTop(e)?"top":"bottom"),this.scrollToRow(e),t){case"middle":case"center":this.elementVertical.scrollHeight-this.elementVertical.scrollTop==this.elementVertical.clientHeight?this.elementVertical.scrollTop=this.elementVertical.scrollTop+(n.offsetTop-this.elementVertical.scrollTop)-(this.elementVertical.scrollHeight-n.offsetTop)/2:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight/2;break;case"bottom":this.elementVertical.scrollHeight-this.elementVertical.scrollTop==this.elementVertical.clientHeight?this.elementVertical.scrollTop=this.elementVertical.scrollTop-(this.elementVertical.scrollHeight-n.offsetTop)+n.offsetHeight:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight+n.offsetHeight;break;case"top":this.elementVertical.scrollTop=n.offsetTop;break}l()}else console.warn("Scroll Error - Row not visible"),h("Scroll Error - Row not visible")})}}class ZI extends Pn{constructor(e){super(e)}renderRowCells(e,t){const i=document.createDocumentFragment();e.cells.forEach(a=>{i.appendChild(a.getElement())}),e.element.appendChild(i),t||e.cells.forEach(a=>{a.cellRendered()})}reinitializeColumnWidths(e){e.forEach(function(t){t.reinitializeWidth()})}}class XI extends Pn{constructor(e){super(e),this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.windowBuffer=200,this.visibleRows=null,this.initialized=!1,this.isFitData=!1,this.columns=[]}initialize(){this.compatibilityCheck(),this.layoutCheck(),this.vertScrollListen()}compatibilityCheck(){this.options("layout")=="fitDataTable"&&console.warn("Horizontal Virtual DOM is not compatible with fitDataTable layout mode"),this.options("responsiveLayout")&&console.warn("Horizontal Virtual DOM is not compatible with responsive columns"),this.options("rtl")&&console.warn("Horizontal Virtual DOM is not currently compatible with RTL text direction")}layoutCheck(){this.isFitData=this.options("layout").startsWith("fitData")}vertScrollListen(){this.subscribe("scroll-vertical",this.clearVisRowCache.bind(this)),this.subscribe("data-refreshed",this.clearVisRowCache.bind(this))}clearVisRowCache(){this.visibleRows=null}renderColumns(e,t){this.dataChange()}scrollColumns(e,t){this.scrollLeft!=e&&(this.scrollLeft=e,this.scroll(e-(this.vDomScrollPosLeft+this.windowBuffer)))}calcWindowBuffer(){var e=this.elementVertical.clientWidth;this.table.columnManager.columnsByIndex.forEach(t=>{if(t.visible){var i=t.getWidth();i>e&&(e=i)}}),this.windowBuffer=e*2}rerenderColumns(e,t){var i={cols:this.columns,leftCol:this.leftCol,rightCol:this.rightCol},a=0;e&&!this.initialized||(this.clear(),this.calcWindowBuffer(),this.scrollLeft=this.elementVertical.scrollLeft,this.vDomScrollPosLeft=this.scrollLeft-this.windowBuffer,this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,this.table.columnManager.columnsByIndex.forEach(n=>{var r={},l;n.visible&&(n.modules.frozen||(l=n.getWidth(),r.leftPos=a,r.rightPos=a+l,r.width=l,this.isFitData&&(r.fitDataCheck=n.modules.vdomHoz?n.modules.vdomHoz.fitDataCheck:!0),a+l>this.vDomScrollPosLeft&&a<this.vDomScrollPosRight?(this.leftCol==-1&&(this.leftCol=this.columns.length,this.vDomPadLeft=a),this.rightCol=this.columns.length):this.leftCol!==-1&&(this.vDomPadRight+=l),this.columns.push(n),n.modules.vdomHoz=r,a+=l))}),this.tableElement.style.paddingLeft=this.vDomPadLeft+"px",this.tableElement.style.paddingRight=this.vDomPadRight+"px",this.initialized=!0,t||(!e||this.reinitChanged(i))&&this.reinitializeRows(),this.elementVertical.scrollLeft=this.scrollLeft)}renderRowCells(e){if(this.initialized)this.initializeRow(e);else{const t=document.createDocumentFragment();e.cells.forEach(i=>{t.appendChild(i.getElement())}),e.element.appendChild(t),e.cells.forEach(i=>{i.cellRendered()})}}rerenderRowCells(e,t){this.reinitializeRow(e,t)}reinitializeColumnWidths(e){for(let t=this.leftCol;t<=this.rightCol;t++){let i=this.columns[t];i&&i.reinitializeWidth()}}deinitialize(){this.initialized=!1}clear(){this.columns=[],this.leftCol=-1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0}dataChange(){var e=!1,t,i;if(this.isFitData){if(this.table.columnManager.columnsByIndex.forEach(a=>{!a.definition.width&&a.visible&&(e=!0)}),e&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,t=this.chain("rows-sample",[1],[],()=>this.table.rowManager.getDisplayRows())[0],t)){i=t.getElement(),t.generateCells(),this.tableElement.appendChild(i);for(let a=0;a<t.cells.length;a++){let n=t.cells[a];i.appendChild(n.getElement()),n.column.reinitializeWidth()}i.parentNode.removeChild(i),this.rerenderColumns(!1,!0)}}else this.options("layout")==="fitColumns"&&(this.layoutRefresh(),this.rerenderColumns(!1,!0))}reinitChanged(e){var t=!0;return e.cols.length!==this.columns.length||e.leftCol!==this.leftCol||e.rightCol!==this.rightCol?!0:(e.cols.forEach((i,a)=>{i!==this.columns[a]&&(t=!1)}),!t)}reinitializeRows(){var e=this.getVisibleRows(),t=this.table.rowManager.getRows().filter(i=>!e.includes(i));e.forEach(i=>{this.reinitializeRow(i,!0)}),t.forEach(i=>{i.deinitialize()})}getVisibleRows(){return this.visibleRows||(this.visibleRows=this.table.rowManager.getVisibleRows()),this.visibleRows}scroll(e){this.vDomScrollPosLeft+=e,this.vDomScrollPosRight+=e,Math.abs(e)>this.windowBuffer/2?this.rerenderColumns():e>0?(this.addColRight(),this.removeColLeft()):(this.addColLeft(),this.removeColRight())}colPositionAdjust(e,t,i){for(let a=e;a<t;a++){let n=this.columns[a];n.modules.vdomHoz.leftPos+=i,n.modules.vdomHoz.rightPos+=i}}addColRight(){for(var e=!1,t=!0;t;){let i=this.columns[this.rightCol+1];i&&i.modules.vdomHoz.leftPos<=this.vDomScrollPosRight?(e=!0,this.getVisibleRows().forEach(a=>{if(a.type!=="group"){var n=a.getCell(i);a.getElement().insertBefore(n.getElement(),a.getCell(this.columns[this.rightCol]).getElement().nextSibling),n.cellRendered()}}),this.fitDataColActualWidthCheck(i),this.rightCol++,this.getVisibleRows().forEach(a=>{a.type!=="group"&&(a.modules.vdomHoz.rightCol=this.rightCol)}),this.rightCol>=this.columns.length-1?this.vDomPadRight=0:this.vDomPadRight-=i.getWidth()):t=!1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}addColLeft(){for(var e=!1,t=!0;t;){let i=this.columns[this.leftCol-1];if(i)if(i.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft){e=!0,this.getVisibleRows().forEach(n=>{if(n.type!=="group"){var r=n.getCell(i);n.getElement().insertBefore(r.getElement(),n.getCell(this.columns[this.leftCol]).getElement()),r.cellRendered()}}),this.leftCol--,this.getVisibleRows().forEach(n=>{n.type!=="group"&&(n.modules.vdomHoz.leftCol=this.leftCol)}),this.leftCol<=0?this.vDomPadLeft=0:this.vDomPadLeft-=i.getWidth();let a=this.fitDataColActualWidthCheck(i);a&&(this.scrollLeft=this.elementVertical.scrollLeft=this.elementVertical.scrollLeft+a,this.vDomPadRight-=a)}else t=!1;else t=!1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}removeColRight(){for(var e=!1,t=!0;t;){let i=this.columns[this.rightCol];i&&i.modules.vdomHoz.leftPos>this.vDomScrollPosRight?(e=!0,this.getVisibleRows().forEach(a=>{if(a.type!=="group"){var n=a.getCell(i);try{a.getElement().removeChild(n.getElement())}catch(r){console.warn("Could not removeColRight",r.message)}}}),this.vDomPadRight+=i.getWidth(),this.rightCol--,this.getVisibleRows().forEach(a=>{a.type!=="group"&&(a.modules.vdomHoz.rightCol=this.rightCol)})):t=!1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}removeColLeft(){for(var e=!1,t=!0;t;){let i=this.columns[this.leftCol];i&&i.modules.vdomHoz.rightPos<this.vDomScrollPosLeft?(e=!0,this.getVisibleRows().forEach(a=>{if(a.type!=="group"){var n=a.getCell(i);try{a.getElement().removeChild(n.getElement())}catch(r){console.warn("Could not removeColLeft",r.message)}}}),this.vDomPadLeft+=i.getWidth(),this.leftCol++,this.getVisibleRows().forEach(a=>{a.type!=="group"&&(a.modules.vdomHoz.leftCol=this.leftCol)})):t=!1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}fitDataColActualWidthCheck(e){var t,i;return e.modules.vdomHoz.fitDataCheck&&(e.reinitializeWidth(),t=e.getWidth(),i=t-e.modules.vdomHoz.width,i&&(e.modules.vdomHoz.rightPos+=i,e.modules.vdomHoz.width=t,this.colPositionAdjust(this.columns.indexOf(e)+1,this.columns.length,i)),e.modules.vdomHoz.fitDataCheck=!1),i}initializeRow(e){if(e.type!=="group"){e.modules.vdomHoz={leftCol:this.leftCol,rightCol:this.rightCol},this.table.modules.frozenColumns&&this.table.modules.frozenColumns.leftColumns.forEach(t=>{this.appendCell(e,t)});for(let t=this.leftCol;t<=this.rightCol;t++)this.appendCell(e,this.columns[t]);this.table.modules.frozenColumns&&this.table.modules.frozenColumns.rightColumns.forEach(t=>{this.appendCell(e,t)})}}appendCell(e,t){if(t&&t.visible){let i=e.getCell(t);e.getElement().appendChild(i.getElement()),i.cellRendered()}}reinitializeRow(e,t){if(e.type!=="group"&&(t||!e.modules.vdomHoz||e.modules.vdomHoz.leftCol!==this.leftCol||e.modules.vdomHoz.rightCol!==this.rightCol)){for(var i=e.getElement();i.firstChild;)i.removeChild(i.firstChild);this.initializeRow(e)}}}class KI extends te{constructor(e){super(e),this.blockHozScrollEvent=!1,this.headersElement=null,this.contentsElement=null,this.rowHeader=null,this.element=null,this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.scrollLeft=0,this.optionsList=new nx(this.table,"column definition",jC),this.redrawBlock=!1,this.redrawBlockUpdate=null,this.renderer=null}initialize(){this.initializeRenderer(),this.headersElement=this.createHeadersElement(),this.contentsElement=this.createHeaderContentsElement(),this.element=this.createHeaderElement(),this.contentsElement.insertBefore(this.headersElement,this.contentsElement.firstChild),this.element.insertBefore(this.contentsElement,this.element.firstChild),this.initializeScrollWheelWatcher(),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("scrollbar-vertical",this.padVerticalScrollbar.bind(this))}padVerticalScrollbar(e){this.table.rtl?this.headersElement.style.marginLeft=e+"px":this.headersElement.style.marginRight=e+"px"}initializeRenderer(){var e,t={virtual:XI,basic:ZI};typeof this.table.options.renderHorizontal=="string"?e=t[this.table.options.renderHorizontal]:e=this.table.options.renderHorizontal,e?(this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize()):console.error("Unable to find matching renderer:",this.table.options.renderHorizontal)}createHeadersElement(){var e=document.createElement("div");return e.classList.add("tabulator-headers"),e.setAttribute("role","row"),e}createHeaderContentsElement(){var e=document.createElement("div");return e.classList.add("tabulator-header-contents"),e.setAttribute("role","rowgroup"),e}createHeaderElement(){var e=document.createElement("div");return e.classList.add("tabulator-header"),e.setAttribute("role","rowgroup"),this.table.options.headerVisible||e.classList.add("tabulator-header-hidden"),e}getElement(){return this.element}getContentsElement(){return this.contentsElement}getHeadersElement(){return this.headersElement}scrollHorizontal(e){this.contentsElement.scrollLeft=e,this.scrollLeft=e,this.renderer.scrollColumns(e)}initializeScrollWheelWatcher(){this.contentsElement.addEventListener("wheel",e=>{var t;e.deltaX&&(t=this.contentsElement.scrollLeft+e.deltaX,this.table.rowManager.scrollHorizontal(t),this.table.columnManager.scrollHorizontal(t))})}generateColumnsFromRowData(e){var t=[],i={},a=this.table.options.autoColumns==="full"?e:[e[0]],n=this.table.options.autoColumnsDefinitions;if(e&&e.length){if(a.forEach(r=>{Object.keys(r).forEach((l,h)=>{let d=r[l],u;i[l]?i[l]!==!0&&typeof d<"u"&&(i[l].sorter=this.calculateSorterFromValue(d),i[l]=!0):(u={field:l,title:l,sorter:this.calculateSorterFromValue(d)},t.splice(h,0,u),i[l]=typeof d>"u"?u:!0)})}),n)switch(typeof n){case"function":this.table.options.columns=n.call(this.table,t);break;case"object":Array.isArray(n)?t.forEach(r=>{var l=n.find(h=>h.field===r.field);l&&Object.assign(r,l)}):t.forEach(r=>{n[r.field]&&Object.assign(r,n[r.field])}),this.table.options.columns=t;break}else this.table.options.columns=t;this.setColumns(this.table.options.columns)}}calculateSorterFromValue(e){var t;switch(typeof e){case"undefined":t="string";break;case"boolean":t="boolean";break;case"number":t="number";break;case"object":Array.isArray(e)?t="array":t="string";break;default:!isNaN(e)&&e!==""?t="number":e.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?t="alphanum":t="string";break}return t}setColumns(e,t){for(;this.headersElement.firstChild;)this.headersElement.removeChild(this.headersElement.firstChild);this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.dispatch("columns-loading"),this.dispatchExternal("columnsLoading"),this.table.options.rowHeader&&(this.rowHeader=new tt(this.table.options.rowHeader===!0?{}:this.table.options.rowHeader,this,!0),this.columns.push(this.rowHeader),this.headersElement.appendChild(this.rowHeader.getElement()),this.rowHeader.columnRendered()),e.forEach((i,a)=>{this._addColumn(i)}),this._reIndexColumns(),this.dispatch("columns-loaded"),this.subscribedExternal("columnsLoaded")&&this.dispatchExternal("columnsLoaded",this.getComponents()),this.rerenderColumns(!1,!0),this.redraw(!0)}_addColumn(e,t,i){var a=new tt(e,this),n=a.getElement(),r=i&&this.findColumnIndex(i);if(t&&this.rowHeader&&(!i||i===this.rowHeader)&&(t=!1,i=this.rowHeader,r=0),i&&r>-1){var l=i.getTopColumn(),h=this.columns.indexOf(l),d=l.getElement();t?(this.columns.splice(h,0,a),d.parentNode.insertBefore(n,d)):(this.columns.splice(h+1,0,a),d.parentNode.insertBefore(n,d.nextSibling))}else t?(this.columns.unshift(a),this.headersElement.insertBefore(a.getElement(),this.headersElement.firstChild)):(this.columns.push(a),this.headersElement.appendChild(a.getElement()));return a.columnRendered(),a}registerColumnField(e){e.definition.field&&(this.columnsByField[e.definition.field]=e)}registerColumnPosition(e){this.columnsByIndex.push(e)}_reIndexColumns(){this.columnsByIndex=[],this.columns.forEach(function(e){e.reRegisterPosition()})}verticalAlignHeaders(){var e=0;this.redrawBlock||(this.headersElement.style.height="",this.columns.forEach(t=>{t.clearVerticalAlign()}),this.columns.forEach(t=>{var i=t.getHeight();i>e&&(e=i)}),this.headersElement.style.height=e+"px",this.columns.forEach(t=>{t.verticalAlign(this.table.options.columnHeaderVertAlign,e)}),this.table.rowManager.adjustTableSize())}findColumn(e){var t;if(typeof e=="object"){if(e instanceof tt)return e;if(e instanceof OC)return e._getSelf()||!1;if(typeof HTMLElement<"u"&&e instanceof HTMLElement)return t=[],this.columns.forEach(a=>{t.push(a),t=t.concat(a.getColumns(!0))}),t.find(a=>a.element===e)||!1}else return this.columnsByField[e]||!1;return!1}getColumnByField(e){return this.columnsByField[e]}getColumnsByFieldRoot(e){var t=[];return Object.keys(this.columnsByField).forEach(i=>{var a=this.table.options.nestedFieldSeparator?i.split(this.table.options.nestedFieldSeparator)[0]:i;a===e&&t.push(this.columnsByField[i])}),t}getColumnByIndex(e){return this.columnsByIndex[e]}getFirstVisibleColumn(){var e=this.columnsByIndex.findIndex(t=>t.visible);return e>-1?this.columnsByIndex[e]:!1}getVisibleColumnsByIndex(){return this.columnsByIndex.filter(e=>e.visible)}getColumns(){return this.columns}findColumnIndex(e){return this.columnsByIndex.findIndex(t=>e===t)}getRealColumns(){return this.columnsByIndex}traverse(e){this.columnsByIndex.forEach((t,i)=>{e(t,i)})}getDefinitions(e){var t=[];return this.columnsByIndex.forEach(i=>{(!e||e&&i.visible)&&t.push(i.getDefinition())}),t}getDefinitionTree(){var e=[];return this.columns.forEach(t=>{e.push(t.getDefinition(!0))}),e}getComponents(e){var t=[],i=e?this.columns:this.columnsByIndex;return i.forEach(a=>{t.push(a.getComponent())}),t}getWidth(){var e=0;return this.columnsByIndex.forEach(t=>{t.visible&&(e+=t.getWidth())}),e}moveColumn(e,t,i){t.element.parentNode.insertBefore(e.element,t.element),i&&t.element.parentNode.insertBefore(t.element,e.element),this.moveColumnActual(e,t,i),this.verticalAlignHeaders(),this.table.rowManager.reinitialize()}moveColumnActual(e,t,i){e.parent.isGroup?this._moveColumnInArray(e.parent.columns,e,t,i):this._moveColumnInArray(this.columns,e,t,i),this._moveColumnInArray(this.columnsByIndex,e,t,i,!0),this.rerenderColumns(!0),this.dispatch("column-moved",e,t,i),this.subscribedExternal("columnMoved")&&this.dispatchExternal("columnMoved",e.getComponent(),this.table.columnManager.getComponents())}_moveColumnInArray(e,t,i,a,n){var r=e.indexOf(t),l,h=[];r>-1&&(e.splice(r,1),l=e.indexOf(i),l>-1?a&&(l=l+1):l=r,e.splice(l,0,t),n&&(h=this.chain("column-moving-rows",[t,i,a],null,[])||[],h=h.concat(this.table.rowManager.rows),h.forEach(function(d){if(d.cells.length){var u=d.cells.splice(r,1)[0];d.cells.splice(l,0,u)}})))}scrollToColumn(e,t,i){var a=0,n=e.getLeftOffset(),r=0,l=e.getElement();return new Promise((h,d)=>{if(typeof t>"u"&&(t=this.table.options.scrollToColumnPosition),typeof i>"u"&&(i=this.table.options.scrollToColumnIfVisible),e.visible){switch(t){case"middle":case"center":r=-this.element.clientWidth/2;break;case"right":r=l.clientWidth-this.headersElement.clientWidth;break}if(!i&&n>0&&n+l.offsetWidth<this.element.clientWidth)return!1;a=n+r,a=Math.max(Math.min(a,this.table.rowManager.element.scrollWidth-this.table.rowManager.element.clientWidth),0),this.table.rowManager.scrollHorizontal(a),this.scrollHorizontal(a),h()}else console.warn("Scroll Error - Column not visible"),d("Scroll Error - Column not visible")})}generateCells(e){var t=[];return this.columnsByIndex.forEach(i=>{t.push(i.generateCell(e))}),t}getFlexBaseWidth(){var e=this.table.element.clientWidth,t=0;return this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(e-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),this.columnsByIndex.forEach(function(i){var a,n,r;i.visible&&(a=i.definition.width||0,n=parseInt(i.minWidth),typeof a=="string"?a.indexOf("%")>-1?r=e/100*parseInt(a):r=parseInt(a):r=a,t+=r>n?r:n)}),t}addColumn(e,t,i){return new Promise((a,n)=>{var r=this._addColumn(e,t,i);this._reIndexColumns(),this.dispatch("column-add",e,t,i),this.layoutMode()!="fitColumns"&&r.reinitializeWidth(),this.redraw(!0),this.table.rowManager.reinitialize(),this.rerenderColumns(),a(r)})}deregisterColumn(e){var t=e.getField(),i;t&&delete this.columnsByField[t],i=this.columnsByIndex.indexOf(e),i>-1&&this.columnsByIndex.splice(i,1),i=this.columns.indexOf(e),i>-1&&this.columns.splice(i,1),this.verticalAlignHeaders(),this.redraw()}rerenderColumns(e,t){this.redrawBlock?(e===!1||e===!0&&this.redrawBlockUpdate===null)&&(this.redrawBlockUpdate=e):this.renderer.rerenderColumns(e,t)}blockRedraw(){this.redrawBlock=!0,this.redrawBlockUpdate=null}restoreRedraw(){this.redrawBlock=!1,this.verticalAlignHeaders(),this.renderer.rerenderColumns(this.redrawBlockUpdate)}redraw(e){G.elVisible(this.element)&&this.verticalAlignHeaders(),e&&(this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),this.confirm("table-redrawing",e)||this.layoutRefresh(e),this.dispatch("table-redraw",e),this.table.footerManager.redraw()}}class JI extends Pn{constructor(e){super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0}clearRows(){for(var e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.scrollTop=0,e.scrollLeft=0,e.style.minWidth="",e.style.minHeight="",e.style.display="",e.style.visibility=""}renderRows(){var e=this.tableElement,t=!0,i=document.createDocumentFragment(),a=this.rows();a.forEach((n,r)=>{this.styleRow(n,r),n.initialize(!1,!0),n.type!=="group"&&(t=!1),i.appendChild(n.getElement())}),e.appendChild(i),a.forEach(n=>{n.rendered(),n.heightInitialized||n.calcHeight(!0)}),a.forEach(n=>{n.heightInitialized||n.setCellHeight()}),t?e.style.minWidth=this.table.columnManager.getWidth()+"px":e.style.minWidth=""}rerenderRows(e){this.clearRows(),e&&e(),this.renderRows(),this.rows().length||this.table.rowManager.tableEmpty()}scrollToRowNearestTop(e){var t=G.elOffset(e.getElement()).top;return!(Math.abs(this.elementVertical.scrollTop-t)>Math.abs(this.elementVertical.scrollTop+this.elementVertical.clientHeight-t))}scrollToRow(e){var t=e.getElement();this.elementVertical.scrollTop=G.elOffset(t).top-G.elOffset(this.elementVertical).top+this.elementVertical.scrollTop}visibleRows(e){return this.rows()}}class QI extends Pn{constructor(e){super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[]}clearRows(){for(var e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.style.paddingTop="",e.style.paddingBottom="",e.style.minHeight="",e.style.display="",e.style.visibility="",this.elementVertical.scrollTop=0,this.elementVertical.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0,this.vDomTop=0,this.vDomBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0}renderRows(){this._virtualRenderFill()}rerenderRows(e){for(var t=this.elementVertical.scrollTop,i=!1,a=!1,n=this.table.rowManager.scrollLeft,r=this.rows(),l=this.vDomTop;l<=this.vDomBottom;l++)if(r[l]){var h=t-r[l].getElement().offsetTop;if(a===!1||Math.abs(h)<a)a=h,i=l;else break}r.forEach(d=>{d.deinitializeHeight()}),e&&e(),this.rows().length?this._virtualRenderFill(i===!1?this.rows.length-1:i,!0,a||0):(this.clear(),this.table.rowManager.tableEmpty()),this.scrollColumns(n)}scrollColumns(e){this.table.rowManager.scrollHorizontal(e)}scrollRows(e,t){var i=e-this.vDomScrollPosTop,a=e-this.vDomScrollPosBottom,n=this.vDomWindowBuffer*2,r=this.rows();if(this.scrollTop=e,-i>n||a>n){var l=this.table.rowManager.scrollLeft;this._virtualRenderFill(Math.floor(this.elementVertical.scrollTop/this.elementVertical.scrollHeight*r.length)),this.scrollColumns(l)}else t?(i<0&&this._addTopRow(r,-i),a<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(r,-a):this.vDomScrollPosBottom=this.scrollTop)):(a>=0&&this._addBottomRow(r,a),i>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(r,i):this.vDomScrollPosTop=this.scrollTop))}resize(){this.vDomWindowBuffer=this.table.options.renderVerticalBuffer||this.elementVertical.clientHeight}scrollToRowNearestTop(e){var t=this.rows().indexOf(e);return!(Math.abs(this.vDomTop-t)>Math.abs(this.vDomBottom-t))}scrollToRow(e){var t=this.rows().indexOf(e);t>-1&&this._virtualRenderFill(t,!0)}visibleRows(e){var t=this.elementVertical.scrollTop,i=this.elementVertical.clientHeight+t,a=!1,n=0,r=0,l=this.rows();if(e)n=this.vDomTop,r=this.vDomBottom;else for(var h=this.vDomTop;h<=this.vDomBottom;h++)if(l[h])if(a)if(i-l[h].getElement().offsetTop>=0)r=h;else break;else if(t-l[h].getElement().offsetTop>=0)n=h;else if(a=!0,i-l[h].getElement().offsetTop>=0)r=h;else break;return l.slice(n,r+1)}_virtualRenderFill(e,t,i){var a=this.tableElement,n=this.elementVertical,r=0,l=0,h=0,d=0,u=0,p=0,y=this.rows(),f=y.length,g=0,k,b,m=[],M=0,v=0,C=this.table.rowManager.fixedHeight,I=this.elementVertical.clientHeight,L=this.table.options.rowHeight,S=!0;if(e=e||0,i=i||0,!e)this.clear();else{for(;a.firstChild;)a.removeChild(a.firstChild);d=(f-e+1)*this.vDomRowHeight,d<I&&(e-=Math.ceil((I-d)/this.vDomRowHeight),e<0&&(e=0)),r=Math.min(Math.max(Math.floor(this.vDomWindowBuffer/this.vDomRowHeight),this.vDomWindowMinMarginRows),e),e-=r}if(f&&G.elVisible(this.elementVertical)){for(this.vDomTop=e,this.vDomBottom=e-1,C||this.table.options.maxHeight?(L&&(v=I/L+this.vDomWindowBuffer/L),v=Math.max(this.vDomWindowMinTotalRows,Math.ceil(v))):v=f;(v==f||l<=I+this.vDomWindowBuffer||M<this.vDomWindowMinTotalRows)&&this.vDomBottom<f-1;){for(m=[],b=document.createDocumentFragment(),p=0;p<v&&this.vDomBottom<f-1;)g=this.vDomBottom+1,k=y[g],this.styleRow(k,g),k.initialize(!1,!0),!k.heightInitialized&&!this.table.options.rowHeight&&k.clearCellHeight(),b.appendChild(k.getElement()),m.push(k),this.vDomBottom++,p++;if(!m.length)break;a.appendChild(b),m.forEach(T=>{T.rendered(),T.heightInitialized||T.calcHeight(!0)}),m.forEach(T=>{T.heightInitialized||T.setCellHeight()}),m.forEach(T=>{h=T.getHeight(),M<r?u+=h:l+=h,h>this.vDomWindowBuffer&&(this.vDomWindowBuffer=h*2),M++}),S=this.table.rowManager.adjustTableSize(),I=this.elementVertical.clientHeight,S&&(C||this.table.options.maxHeight)&&(L=l/M,v=Math.max(this.vDomWindowMinTotalRows,Math.ceil(I/L+this.vDomWindowBuffer/L)))}e?(this.vDomTopPad=t?this.vDomRowHeight*this.vDomTop+i:this.scrollTop-u,this.vDomBottomPad=this.vDomBottom==f-1?0:Math.max(this.vDomScrollHeight-this.vDomTopPad-l-u,0)):(this.vDomTopPad=0,this.vDomRowHeight=Math.floor((l+u)/M),this.vDomBottomPad=this.vDomRowHeight*(f-this.vDomBottom-1),this.vDomScrollHeight=u+l+this.vDomBottomPad-I),a.style.paddingTop=this.vDomTopPad+"px",a.style.paddingBottom=this.vDomBottomPad+"px",t&&(this.scrollTop=this.vDomTopPad+u+i-(this.elementVertical.scrollWidth>this.elementVertical.clientWidth?this.elementVertical.offsetHeight-I:0)),this.scrollTop=Math.min(this.scrollTop,this.elementVertical.scrollHeight-I),this.elementVertical.scrollWidth>this.elementVertical.clientWidth&&t&&(this.scrollTop+=this.elementVertical.offsetHeight-I),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,n.scrollTop=this.scrollTop,this.dispatch("render-virtual-fill")}}_addTopRow(e,t){for(var i=this.tableElement,a=[],n=0,r=this.vDomTop-1,l=0,h=!0;h;)if(this.vDomTop){let d=e[r],u,p;d&&l<this.vDomMaxRenderChain?(u=d.getHeight()||this.vDomRowHeight,p=d.initialized,t>=u?(this.styleRow(d,r),i.insertBefore(d.getElement(),i.firstChild),(!d.initialized||!d.heightInitialized)&&a.push(d),d.initialize(),p||(u=d.getElement().offsetHeight,u>this.vDomWindowBuffer&&(this.vDomWindowBuffer=u*2)),t-=u,n+=u,this.vDomTop--,r--,l++):h=!1):h=!1}else h=!1;for(let d of a)d.clearCellHeight();this._quickNormalizeRowHeight(a),n&&(this.vDomTopPad-=n,this.vDomTopPad<0&&(this.vDomTopPad=r*this.vDomRowHeight),r<1&&(this.vDomTopPad=0),i.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=n)}_removeTopRow(e,t){for(var i=[],a=0,n=0,r=!0;r;){let l=e[this.vDomTop],h;l&&n<this.vDomMaxRenderChain?(h=l.getHeight()||this.vDomRowHeight,t>=h?(this.vDomTop++,t-=h,a+=h,i.push(l),n++):r=!1):r=!1}for(let l of i){let h=l.getElement();h.parentNode&&h.parentNode.removeChild(h)}a&&(this.vDomTopPad+=a,this.tableElement.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?a:a+this.vDomWindowBuffer)}_addBottomRow(e,t){for(var i=this.tableElement,a=[],n=0,r=this.vDomBottom+1,l=0,h=!0;h;){let d=e[r],u,p;d&&l<this.vDomMaxRenderChain?(u=d.getHeight()||this.vDomRowHeight,p=d.initialized,t>=u?(this.styleRow(d,r),i.appendChild(d.getElement()),(!d.initialized||!d.heightInitialized)&&a.push(d),d.initialize(),p||(u=d.getElement().offsetHeight,u>this.vDomWindowBuffer&&(this.vDomWindowBuffer=u*2)),t-=u,n+=u,this.vDomBottom++,r++,l++):h=!1):h=!1}for(let d of a)d.clearCellHeight();this._quickNormalizeRowHeight(a),n&&(this.vDomBottomPad-=n,(this.vDomBottomPad<0||r==e.length-1)&&(this.vDomBottomPad=0),i.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=n)}_removeBottomRow(e,t){for(var i=[],a=0,n=0,r=!0;r;){let l=e[this.vDomBottom],h;l&&n<this.vDomMaxRenderChain?(h=l.getHeight()||this.vDomRowHeight,t>=h?(this.vDomBottom--,t-=h,a+=h,i.push(l),n++):r=!1):r=!1}for(let l of i){let h=l.getElement();h.parentNode&&h.parentNode.removeChild(h)}a&&(this.vDomBottomPad+=a,this.vDomBottomPad<0&&(this.vDomBottomPad=0),this.tableElement.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=a)}_quickNormalizeRowHeight(e){for(let t of e)t.calcHeight();for(let t of e)t.setCellHeight()}}class eT extends te{constructor(e){super(e),this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.heightFixer=this.createTableElement(),this.placeholder=null,this.placeholderContents=null,this.firstRender=!1,this.renderMode="virtual",this.fixedHeight=!1,this.rows=[],this.activeRowsPipeline=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRenderInPosition=!1,this.dataPipeline=[],this.displayPipeline=[],this.scrollbarWidth=0,this.renderer=null}createHolderElement(){var e=document.createElement("div");return e.classList.add("tabulator-tableholder"),e.setAttribute("tabindex",0),e}createTableElement(){var e=document.createElement("div");return e.classList.add("tabulator-table"),e.setAttribute("role","rowgroup"),e}initializePlaceholder(){var e=this.table.options.placeholder;if(typeof e=="function"&&(e=e.call(this.table)),e=this.chain("placeholder",[e],e,e)||e,e){let t=document.createElement("div");if(t.classList.add("tabulator-placeholder"),typeof e=="string"){let i=document.createElement("div");i.classList.add("tabulator-placeholder-contents"),i.innerHTML=e,t.appendChild(i),this.placeholderContents=i}else typeof HTMLElement<"u"&&e instanceof HTMLElement?(t.appendChild(e),this.placeholderContents=e):(console.warn("Invalid placeholder provided, must be string or HTML Element",e),this.el=null);this.placeholder=t}}getElement(){return this.element}getTableElement(){return this.tableElement}initialize(){this.initializePlaceholder(),this.initializeRenderer(),this.element.appendChild(this.tableElement),this.firstRender=!0,this.element.addEventListener("scroll",()=>{var e=this.element.scrollLeft,t=this.scrollLeft>e,i=this.element.scrollTop,a=this.scrollTop>i;this.scrollLeft!=e&&(this.scrollLeft=e,this.dispatch("scroll-horizontal",e,t),this.dispatchExternal("scrollHorizontal",e,t),this._positionPlaceholder()),this.scrollTop!=i&&(this.scrollTop=i,this.renderer.scrollRows(i,a),this.dispatch("scroll-vertical",i,a),this.dispatchExternal("scrollVertical",i,a))})}findRow(e){if(typeof e=="object"){if(e instanceof ae)return e;if(e instanceof Rn)return e._getSelf()||!1;if(typeof HTMLElement<"u"&&e instanceof HTMLElement)return this.rows.find(i=>i.getElement()===e)||!1;if(e===null)return!1}else return typeof e>"u"?!1:this.rows.find(i=>i.data[this.table.options.index]==e)||!1;return!1}getRowFromDataObject(e){var t=this.rows.find(i=>i.data===e);return t||!1}getRowFromPosition(e){return this.getDisplayRows().find(t=>t.type==="row"&&t.getPosition()===e&&t.isDisplayed())}scrollToRow(e,t,i){return this.renderer.scrollToRowPosition(e,t,i)}setData(e,t,i){return new Promise((a,n)=>{t&&this.getDisplayRows().length?this.table.options.pagination?this._setDataActual(e,!0):this.reRenderInPosition(()=>{this._setDataActual(e)}):(this.table.options.autoColumns&&i&&this.table.initialized&&this.table.columnManager.generateColumnsFromRowData(e),this.resetScroll(),this._setDataActual(e)),a()})}_setDataActual(e,t){this.dispatchExternal("dataProcessing",e),this._wipeElements(),Array.isArray(e)?(this.dispatch("data-processing",e),e.forEach((i,a)=>{if(i&&typeof i=="object"){var n=new ae(i,this);this.rows.push(n)}else console.warn("Data Loading Warning - Invalid row data detected and ignored, expecting object but received:",i)}),this.refreshActiveData(!1,!1,t),this.dispatch("data-processed",e),this.dispatchExternal("dataProcessed",e)):console.error(`Data Loading Error - Unable to process data due to invalid data type
20
+ Data: `,e),!1}loadData(e){var t={data:e};this.loadSheet(this.newSheet(t))}destroySheets(){this.sheets.forEach(e=>{e.destroy()}),this.sheets=[],this.activeSheet=null}loadSheets(e){Array.isArray(e)||(e=[]),this.destroySheets(),e.forEach(t=>{this.newSheet(t)}),this.loadSheet(this.sheets[0])}loadSheet(e){this.activeSheet!==e&&(this.activeSheet&&this.activeSheet.unload(),this.activeSheet=e,e.load())}newSheet(e={}){var t;return e.rows||(e.rows=this.options("spreadsheetRows")),e.columns||(e.columns=this.options("spreadsheetColumns")),t=new ix(this,e),this.sheets.push(t),this.element&&this.element.appendChild(t.element),t}removeSheet(e){var t=this.sheets.indexOf(e),i;this.sheets.length>1?t>-1&&(this.sheets.splice(t,1),e.destroy(),this.activeSheet===e&&(i=this.sheets[t-1]||this.sheets[0],i?this.loadSheet(i):this.activeSheet=null)):console.warn("Unable to remove sheet, at least one sheet must be active")}lookupSheet(e){return e?e instanceof ix?e:e instanceof tx?e._sheet:this.sheets.find(t=>t.key===e)||!1:this.activeSheet}setSheets(e){return this.loadSheets(e),this.getSheets()}addSheet(e){return this.newSheet(e).getComponent()}getSheetDefinitions(){return this.sheets.map(e=>e.getDefinition())}getSheets(){return this.sheets.map(e=>e.getComponent())}getSheet(e){var t=this.lookupSheet(e);return t?t.getComponent():!1}setSheetData(e,t){e&&!t&&(t=e,e=!1);var i=this.lookupSheet(e);return i?i.setData(t):!1}getSheetData(e){var t=this.lookupSheet(e);return t?t.getData():!1}clearSheet(e){var t=this.lookupSheet(e);return t?t.clear():!1}removeSheetFunc(e){var t=this.lookupSheet(e);t&&this.removeSheet(t)}activeSheetFunc(e){var t=this.lookupSheet(e);return t?this.loadSheet(t):!1}}E(ax,"moduleName","spreadsheet");class ox extends q{constructor(e){super(e),this.tooltipSubscriber=null,this.headerSubscriber=null,this.timeout=null,this.popupInstance=null,this.registerTableOption("tooltipDelay",300),this.registerColumnOption("tooltip"),this.registerColumnOption("headerTooltip")}initialize(){this.deprecatedOptionsCheck(),this.subscribe("column-init",this.initializeColumn.bind(this))}deprecatedOptionsCheck(){}initializeColumn(e){e.definition.headerTooltip&&!this.headerSubscriber&&(this.headerSubscriber=!0,this.subscribe("column-mousemove",this.mousemoveCheck.bind(this,"headerTooltip")),this.subscribe("column-mouseout",this.mouseoutCheck.bind(this,"headerTooltip"))),e.definition.tooltip&&!this.tooltipSubscriber&&(this.tooltipSubscriber=!0,this.subscribe("cell-mousemove",this.mousemoveCheck.bind(this,"tooltip")),this.subscribe("cell-mouseout",this.mouseoutCheck.bind(this,"tooltip")))}mousemoveCheck(e,t,i){var a=e==="tooltip"?i.column.definition.tooltip:i.definition.headerTooltip;a&&(this.clearPopup(),this.timeout=setTimeout(this.loadTooltip.bind(this,t,i,a),this.table.options.tooltipDelay))}mouseoutCheck(e,t,i){this.popupInstance||this.clearPopup()}clearPopup(e,t,i){clearTimeout(this.timeout),this.timeout=null,this.popupInstance&&this.popupInstance.hide()}loadTooltip(e,t,i){var a,n,r;function l(h){n=h}typeof i=="function"&&(i=i(e,t.getComponent(),l)),i instanceof HTMLElement?a=i:(a=document.createElement("div"),i===!0&&(t instanceof un?i=t.value:t.definition.field?this.langBind("columns|"+t.definition.field,h=>{a.innerHTML=i=h||t.definition.title}):i=t.definition.title),a.innerHTML=i),(i||i===0||i===!1)&&(a.classList.add("tabulator-tooltip"),a.addEventListener("mousemove",h=>h.preventDefault()),this.popupInstance=this.popup(a),typeof n=="function"&&this.popupInstance.renderCallback(n),r=this.popupInstance.containerEventCoords(e),this.popupInstance.show(r.x+15,r.y+15).hideOnBlur(()=>{this.dispatchExternal("TooltipClosed",t.getComponent()),this.popupInstance=null}),this.dispatchExternal("TooltipOpened",t.getComponent()))}}E(ox,"moduleName","tooltip");var GI={integer:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:(e=Number(e),!isNaN(e)&&isFinite(e)&&Math.floor(e)===e)},float:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:(e=Number(e),!isNaN(e)&&isFinite(e)&&e%1!==0)},numeric:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:!isNaN(e)},string:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:isNaN(e)},alphanumeric:function(o,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=new RegExp(/^[a-z0-9]+$/i);return i.test(e)},max:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:parseFloat(e)<=t},min:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:parseFloat(e)>=t},starts:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).toLowerCase().startsWith(String(t).toLowerCase())},ends:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).toLowerCase().endsWith(String(t).toLowerCase())},minLength:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).length>=t},maxLength:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:String(e).length<=t},in:function(o,e,t){return e===""||e===null||typeof e>"u"?!0:(typeof t=="string"&&(t=t.split("|")),t.indexOf(e)>-1)},regex:function(o,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=new RegExp(t);return i.test(e)},unique:function(o,e,t){if(e===""||e===null||typeof e>"u")return!0;var i=!0,a=o.getData(),n=o.getColumn()._getSelf();return this.table.rowManager.rows.forEach(function(r){var l=r.getData();l!==a&&e==n.getFieldValue(l)&&(i=!1)}),i},required:function(o,e,t){return e!==""&&e!==null&&typeof e<"u"}};const Sn=class Sn extends q{constructor(e){super(e),this.invalidCells=[],this.registerTableOption("validationMode","blocking"),this.registerColumnOption("validator"),this.registerTableFunction("getInvalidCells",this.getInvalidCells.bind(this)),this.registerTableFunction("clearCellValidation",this.userClearCellValidation.bind(this)),this.registerTableFunction("validate",this.userValidate.bind(this)),this.registerComponentFunction("cell","isValid",this.cellIsValid.bind(this)),this.registerComponentFunction("cell","clearValidation",this.clearValidation.bind(this)),this.registerComponentFunction("cell","validate",this.cellValidate.bind(this)),this.registerComponentFunction("column","validate",this.columnValidate.bind(this)),this.registerComponentFunction("row","validate",this.rowValidate.bind(this))}initialize(){this.subscribe("cell-delete",this.clearValidation.bind(this)),this.subscribe("column-layout",this.initializeColumnCheck.bind(this)),this.subscribe("edit-success",this.editValidate.bind(this)),this.subscribe("edit-editor-clear",this.editorClear.bind(this)),this.subscribe("edit-edited-clear",this.editedClear.bind(this))}editValidate(e,t,i){var a=this.table.options.validationMode!=="manual"?this.validate(e.column.modules.validate,e,t):!0;return a!==!0&&setTimeout(()=>{e.getElement().classList.add("tabulator-validation-fail"),this.dispatchExternal("validationFailed",e.getComponent(),t,a)}),a}editorClear(e,t){t&&e.column.modules.validate&&this.cellValidate(e),e.getElement().classList.remove("tabulator-validation-fail")}editedClear(e){e.modules.validate&&(e.modules.validate.invalid=!1)}cellIsValid(e){return e.modules.validate&&e.modules.validate.invalid||!0}cellValidate(e){return this.validate(e.column.modules.validate,e,e.getValue())}columnValidate(e){var t=[];return e.cells.forEach(i=>{this.cellValidate(i)!==!0&&t.push(i.getComponent())}),t.length?t:!0}rowValidate(e){var t=[];return e.cells.forEach(i=>{this.cellValidate(i)!==!0&&t.push(i.getComponent())}),t.length?t:!0}userClearCellValidation(e){e||(e=this.getInvalidCells()),Array.isArray(e)||(e=[e]),e.forEach(t=>{this.clearValidation(t._getSelf())})}userValidate(e){var t=[];return this.table.rowManager.rows.forEach(i=>{i=i.getComponent();var a=i.validate();a!==!0&&(t=t.concat(a))}),t.length?t:!0}initializeColumnCheck(e){typeof e.definition.validator<"u"&&this.initializeColumn(e)}initializeColumn(e){var t=this,i=[],a;e.definition.validator&&(Array.isArray(e.definition.validator)?e.definition.validator.forEach(n=>{a=t._extractValidator(n),a&&i.push(a)}):(a=this._extractValidator(e.definition.validator),a&&i.push(a)),e.modules.validate=i.length?i:!1)}_extractValidator(e){var t,i,a;switch(typeof e){case"string":return a=e.indexOf(":"),a>-1?(t=e.substring(0,a),i=e.substring(a+1)):t=e,this._buildValidator(t,i);case"function":return this._buildValidator(e);case"object":return this._buildValidator(e.type,e.parameters)}}_buildValidator(e,t){var i=typeof e=="function"?e:Sn.validators[e];return i?{type:typeof e=="function"?"function":e,func:i,params:t}:(console.warn("Validator Setup Error - No matching validator found:",e),!1)}validate(e,t,i){var a=this,n=[],r=this.invalidCells.indexOf(t);return e&&e.forEach(l=>{l.func.call(a,t.getComponent(),i,l.params)||n.push({type:l.type,parameters:l.params})}),t.modules.validate||(t.modules.validate={}),n.length?(t.modules.validate.invalid=n,this.table.options.validationMode!=="manual"&&t.getElement().classList.add("tabulator-validation-fail"),r==-1&&this.invalidCells.push(t)):(t.modules.validate.invalid=!1,t.getElement().classList.remove("tabulator-validation-fail"),r>-1&&this.invalidCells.splice(r,1)),n.length?n:!0}getInvalidCells(){var e=[];return this.invalidCells.forEach(t=>{e.push(t.getComponent())}),e}clearValidation(e){var t;e.modules.validate&&e.modules.validate.invalid&&(e.getElement().classList.remove("tabulator-validation-fail"),e.modules.validate.invalid=!1,t=this.invalidCells.indexOf(e),t>-1&&this.invalidCells.splice(t,1))}};E(Sn,"moduleName","validate"),E(Sn,"validators",GI);let R9=Sn;var H9=Object.freeze({__proto__:null,AccessorModule:p9,AjaxModule:m9,ClipboardModule:iS,ColumnCalcsModule:g9,DataTreeModule:NC,DownloadModule:uS,EditModule:k9,ExportModule:w9,FilterModule:v9,FormatModule:M9,FrozenColumnsModule:WC,FrozenRowsModule:UC,GroupRowsModule:$C,HistoryModule:nI,HtmlTableImportModule:GC,ImportModule:dI,InteractionModule:YC,KeybindingsModule:C9,MenuModule:yI,MoveColumnsModule:ZC,MoveRowsModule:x9,MutatorModule:L9,PageModule:E9,PersistenceModule:S9,PopupModule:CI,PrintModule:XC,ReactiveDataModule:KC,ResizeColumnsModule:JC,ResizeRowsModule:QC,ResizeTableModule:ex,ResponsiveLayoutModule:I9,SelectRangeModule:Vn,SelectRowModule:T9,SortModule:z9,SpreadsheetModule:ax,TooltipModule:ox,ValidateModule:R9}),YI={debugEventsExternal:!1,debugEventsInternal:!1,debugInvalidOptions:!0,debugInvalidComponentFuncs:!0,debugInitialization:!0,debugDeprecation:!0,height:!1,minHeight:!1,maxHeight:!1,columnHeaderVertAlign:"top",popupContainer:!1,columns:[],columnDefaults:{},rowHeader:!1,data:!1,autoColumns:!1,autoColumnsDefinitions:!1,nestedFieldSeparator:".",footerElement:!1,index:"id",textDirection:"auto",addRowPos:"bottom",headerVisible:!0,renderVertical:"virtual",renderHorizontal:"basic",renderVerticalBuffer:0,scrollToRowPosition:"top",scrollToRowIfVisible:!0,scrollToColumnPosition:"left",scrollToColumnIfVisible:!0,rowFormatter:!1,rowFormatterPrint:null,rowFormatterClipboard:null,rowFormatterHtmlOutput:null,rowHeight:null,placeholder:!1,dataLoader:!0,dataLoaderLoading:!1,dataLoaderError:!1,dataLoaderErrorTimeout:3e3,dataSendParams:{},dataReceiveParams:{},dependencies:{}};class nx{constructor(e,t,i={}){this.table=e,this.msgType=t,this.registeredDefaults=Object.assign({},i)}register(e,t){this.registeredDefaults[e]=t}generate(e,t={}){var i=Object.assign({},this.registeredDefaults),a=this.table.options.debugInvalidOptions||t.debugInvalidOptions===!0;Object.assign(i,e);for(let n in t)i.hasOwnProperty(n)||(a&&console.warn("Invalid "+this.msgType+" option:",n),i[n]=t.key);for(let n in i)n in t?i[n]=t[n]:Array.isArray(i[n])?i[n]=Object.assign([],i[n]):typeof i[n]=="object"&&i[n]!==null?i[n]=Object.assign({},i[n]):typeof i[n]>"u"&&delete i[n];return i}}class Pn extends te{constructor(e){super(e),this.elementVertical=e.rowManager.element,this.elementHorizontal=e.columnManager.element,this.tableElement=e.rowManager.tableElement,this.verticalFillMode="fit"}initialize(){}clearRows(){}clearColumns(){}reinitializeColumnWidths(e){}renderRows(){}renderColumns(){}rerenderRows(e){e&&e()}rerenderColumns(e,t){}renderRowCells(e){}rerenderRowCells(e,t){}scrollColumns(e,t){}scrollRows(e,t){}resize(){}scrollToRow(e){}scrollToRowNearestTop(e){}visibleRows(e){return[]}rows(){return this.table.rowManager.getDisplayRows()}styleRow(e,t){var i=e.getElement();t%2?(i.classList.add("tabulator-row-even"),i.classList.remove("tabulator-row-odd")):(i.classList.add("tabulator-row-odd"),i.classList.remove("tabulator-row-even"))}clear(){this.clearRows(),this.clearColumns()}render(){this.renderRows(),this.renderColumns()}rerender(e){this.rerenderRows(),this.rerenderColumns()}scrollToRowPosition(e,t,i){var a=this.rows().indexOf(e),n=e.getElement(),r=0;return new Promise((l,h)=>{if(a>-1){if(typeof i>"u"&&(i=this.table.options.scrollToRowIfVisible),!i&&$.elVisible(n)&&(r=$.elOffset(n).top-$.elOffset(this.elementVertical).top,r>0&&r<this.elementVertical.clientHeight-n.offsetHeight))return l(),!1;switch(typeof t>"u"&&(t=this.table.options.scrollToRowPosition),t==="nearest"&&(t=this.scrollToRowNearestTop(e)?"top":"bottom"),this.scrollToRow(e),t){case"middle":case"center":this.elementVertical.scrollHeight-this.elementVertical.scrollTop==this.elementVertical.clientHeight?this.elementVertical.scrollTop=this.elementVertical.scrollTop+(n.offsetTop-this.elementVertical.scrollTop)-(this.elementVertical.scrollHeight-n.offsetTop)/2:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight/2;break;case"bottom":this.elementVertical.scrollHeight-this.elementVertical.scrollTop==this.elementVertical.clientHeight?this.elementVertical.scrollTop=this.elementVertical.scrollTop-(this.elementVertical.scrollHeight-n.offsetTop)+n.offsetHeight:this.elementVertical.scrollTop=this.elementVertical.scrollTop-this.elementVertical.clientHeight+n.offsetHeight;break;case"top":this.elementVertical.scrollTop=n.offsetTop;break}l()}else console.warn("Scroll Error - Row not visible"),h("Scroll Error - Row not visible")})}}class ZI extends Pn{constructor(e){super(e)}renderRowCells(e,t){const i=document.createDocumentFragment();e.cells.forEach(a=>{i.appendChild(a.getElement())}),e.element.appendChild(i),t||e.cells.forEach(a=>{a.cellRendered()})}reinitializeColumnWidths(e){e.forEach(function(t){t.reinitializeWidth()})}}class XI extends Pn{constructor(e){super(e),this.leftCol=0,this.rightCol=0,this.scrollLeft=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0,this.fitDataColAvg=0,this.windowBuffer=200,this.visibleRows=null,this.initialized=!1,this.isFitData=!1,this.columns=[]}initialize(){this.compatibilityCheck(),this.layoutCheck(),this.vertScrollListen()}compatibilityCheck(){this.options("layout")=="fitDataTable"&&console.warn("Horizontal Virtual DOM is not compatible with fitDataTable layout mode"),this.options("responsiveLayout")&&console.warn("Horizontal Virtual DOM is not compatible with responsive columns"),this.options("rtl")&&console.warn("Horizontal Virtual DOM is not currently compatible with RTL text direction")}layoutCheck(){this.isFitData=this.options("layout").startsWith("fitData")}vertScrollListen(){this.subscribe("scroll-vertical",this.clearVisRowCache.bind(this)),this.subscribe("data-refreshed",this.clearVisRowCache.bind(this))}clearVisRowCache(){this.visibleRows=null}renderColumns(e,t){this.dataChange()}scrollColumns(e,t){this.scrollLeft!=e&&(this.scrollLeft=e,this.scroll(e-(this.vDomScrollPosLeft+this.windowBuffer)))}calcWindowBuffer(){var e=this.elementVertical.clientWidth;this.table.columnManager.columnsByIndex.forEach(t=>{if(t.visible){var i=t.getWidth();i>e&&(e=i)}}),this.windowBuffer=e*2}rerenderColumns(e,t){var i={cols:this.columns,leftCol:this.leftCol,rightCol:this.rightCol},a=0;e&&!this.initialized||(this.clear(),this.calcWindowBuffer(),this.scrollLeft=this.elementVertical.scrollLeft,this.vDomScrollPosLeft=this.scrollLeft-this.windowBuffer,this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,this.table.columnManager.columnsByIndex.forEach(n=>{var r={},l;n.visible&&(n.modules.frozen||(l=n.getWidth(),r.leftPos=a,r.rightPos=a+l,r.width=l,this.isFitData&&(r.fitDataCheck=n.modules.vdomHoz?n.modules.vdomHoz.fitDataCheck:!0),a+l>this.vDomScrollPosLeft&&a<this.vDomScrollPosRight?(this.leftCol==-1&&(this.leftCol=this.columns.length,this.vDomPadLeft=a),this.rightCol=this.columns.length):this.leftCol!==-1&&(this.vDomPadRight+=l),this.columns.push(n),n.modules.vdomHoz=r,a+=l))}),this.tableElement.style.paddingLeft=this.vDomPadLeft+"px",this.tableElement.style.paddingRight=this.vDomPadRight+"px",this.initialized=!0,t||(!e||this.reinitChanged(i))&&this.reinitializeRows(),this.elementVertical.scrollLeft=this.scrollLeft)}renderRowCells(e){if(this.initialized)this.initializeRow(e);else{const t=document.createDocumentFragment();e.cells.forEach(i=>{t.appendChild(i.getElement())}),e.element.appendChild(t),e.cells.forEach(i=>{i.cellRendered()})}}rerenderRowCells(e,t){this.reinitializeRow(e,t)}reinitializeColumnWidths(e){for(let t=this.leftCol;t<=this.rightCol;t++){let i=this.columns[t];i&&i.reinitializeWidth()}}deinitialize(){this.initialized=!1}clear(){this.columns=[],this.leftCol=-1,this.rightCol=0,this.vDomScrollPosLeft=0,this.vDomScrollPosRight=0,this.vDomPadLeft=0,this.vDomPadRight=0}dataChange(){var e=!1,t,i;if(this.isFitData){if(this.table.columnManager.columnsByIndex.forEach(a=>{!a.definition.width&&a.visible&&(e=!0)}),e&&this.table.rowManager.getDisplayRows().length&&(this.vDomScrollPosRight=this.scrollLeft+this.elementVertical.clientWidth+this.windowBuffer,t=this.chain("rows-sample",[1],[],()=>this.table.rowManager.getDisplayRows())[0],t)){i=t.getElement(),t.generateCells(),this.tableElement.appendChild(i);for(let a=0;a<t.cells.length;a++){let n=t.cells[a];i.appendChild(n.getElement()),n.column.reinitializeWidth()}i.parentNode.removeChild(i),this.rerenderColumns(!1,!0)}}else this.options("layout")==="fitColumns"&&(this.layoutRefresh(),this.rerenderColumns(!1,!0))}reinitChanged(e){var t=!0;return e.cols.length!==this.columns.length||e.leftCol!==this.leftCol||e.rightCol!==this.rightCol?!0:(e.cols.forEach((i,a)=>{i!==this.columns[a]&&(t=!1)}),!t)}reinitializeRows(){var e=this.getVisibleRows(),t=this.table.rowManager.getRows().filter(i=>!e.includes(i));e.forEach(i=>{this.reinitializeRow(i,!0)}),t.forEach(i=>{i.deinitialize()})}getVisibleRows(){return this.visibleRows||(this.visibleRows=this.table.rowManager.getVisibleRows()),this.visibleRows}scroll(e){this.vDomScrollPosLeft+=e,this.vDomScrollPosRight+=e,Math.abs(e)>this.windowBuffer/2?this.rerenderColumns():e>0?(this.addColRight(),this.removeColLeft()):(this.addColLeft(),this.removeColRight())}colPositionAdjust(e,t,i){for(let a=e;a<t;a++){let n=this.columns[a];n.modules.vdomHoz.leftPos+=i,n.modules.vdomHoz.rightPos+=i}}addColRight(){for(var e=!1,t=!0;t;){let i=this.columns[this.rightCol+1];i&&i.modules.vdomHoz.leftPos<=this.vDomScrollPosRight?(e=!0,this.getVisibleRows().forEach(a=>{if(a.type!=="group"){var n=a.getCell(i);a.getElement().insertBefore(n.getElement(),a.getCell(this.columns[this.rightCol]).getElement().nextSibling),n.cellRendered()}}),this.fitDataColActualWidthCheck(i),this.rightCol++,this.getVisibleRows().forEach(a=>{a.type!=="group"&&(a.modules.vdomHoz.rightCol=this.rightCol)}),this.rightCol>=this.columns.length-1?this.vDomPadRight=0:this.vDomPadRight-=i.getWidth()):t=!1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}addColLeft(){for(var e=!1,t=!0;t;){let i=this.columns[this.leftCol-1];if(i)if(i.modules.vdomHoz.rightPos>=this.vDomScrollPosLeft){e=!0,this.getVisibleRows().forEach(n=>{if(n.type!=="group"){var r=n.getCell(i);n.getElement().insertBefore(r.getElement(),n.getCell(this.columns[this.leftCol]).getElement()),r.cellRendered()}}),this.leftCol--,this.getVisibleRows().forEach(n=>{n.type!=="group"&&(n.modules.vdomHoz.leftCol=this.leftCol)}),this.leftCol<=0?this.vDomPadLeft=0:this.vDomPadLeft-=i.getWidth();let a=this.fitDataColActualWidthCheck(i);a&&(this.scrollLeft=this.elementVertical.scrollLeft=this.elementVertical.scrollLeft+a,this.vDomPadRight-=a)}else t=!1;else t=!1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}removeColRight(){for(var e=!1,t=!0;t;){let i=this.columns[this.rightCol];i&&i.modules.vdomHoz.leftPos>this.vDomScrollPosRight?(e=!0,this.getVisibleRows().forEach(a=>{if(a.type!=="group"){var n=a.getCell(i);try{a.getElement().removeChild(n.getElement())}catch(r){console.warn("Could not removeColRight",r.message)}}}),this.vDomPadRight+=i.getWidth(),this.rightCol--,this.getVisibleRows().forEach(a=>{a.type!=="group"&&(a.modules.vdomHoz.rightCol=this.rightCol)})):t=!1}e&&(this.tableElement.style.paddingRight=this.vDomPadRight+"px")}removeColLeft(){for(var e=!1,t=!0;t;){let i=this.columns[this.leftCol];i&&i.modules.vdomHoz.rightPos<this.vDomScrollPosLeft?(e=!0,this.getVisibleRows().forEach(a=>{if(a.type!=="group"){var n=a.getCell(i);try{a.getElement().removeChild(n.getElement())}catch(r){console.warn("Could not removeColLeft",r.message)}}}),this.vDomPadLeft+=i.getWidth(),this.leftCol++,this.getVisibleRows().forEach(a=>{a.type!=="group"&&(a.modules.vdomHoz.leftCol=this.leftCol)})):t=!1}e&&(this.tableElement.style.paddingLeft=this.vDomPadLeft+"px")}fitDataColActualWidthCheck(e){var t,i;return e.modules.vdomHoz.fitDataCheck&&(e.reinitializeWidth(),t=e.getWidth(),i=t-e.modules.vdomHoz.width,i&&(e.modules.vdomHoz.rightPos+=i,e.modules.vdomHoz.width=t,this.colPositionAdjust(this.columns.indexOf(e)+1,this.columns.length,i)),e.modules.vdomHoz.fitDataCheck=!1),i}initializeRow(e){if(e.type!=="group"){e.modules.vdomHoz={leftCol:this.leftCol,rightCol:this.rightCol},this.table.modules.frozenColumns&&this.table.modules.frozenColumns.leftColumns.forEach(t=>{this.appendCell(e,t)});for(let t=this.leftCol;t<=this.rightCol;t++)this.appendCell(e,this.columns[t]);this.table.modules.frozenColumns&&this.table.modules.frozenColumns.rightColumns.forEach(t=>{this.appendCell(e,t)})}}appendCell(e,t){if(t&&t.visible){let i=e.getCell(t);e.getElement().appendChild(i.getElement()),i.cellRendered()}}reinitializeRow(e,t){if(e.type!=="group"&&(t||!e.modules.vdomHoz||e.modules.vdomHoz.leftCol!==this.leftCol||e.modules.vdomHoz.rightCol!==this.rightCol)){for(var i=e.getElement();i.firstChild;)i.removeChild(i.firstChild);this.initializeRow(e)}}}class KI extends te{constructor(e){super(e),this.blockHozScrollEvent=!1,this.headersElement=null,this.contentsElement=null,this.rowHeader=null,this.element=null,this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.scrollLeft=0,this.optionsList=new nx(this.table,"column definition",jC),this.redrawBlock=!1,this.redrawBlockUpdate=null,this.renderer=null}initialize(){this.initializeRenderer(),this.headersElement=this.createHeadersElement(),this.contentsElement=this.createHeaderContentsElement(),this.element=this.createHeaderElement(),this.contentsElement.insertBefore(this.headersElement,this.contentsElement.firstChild),this.element.insertBefore(this.contentsElement,this.element.firstChild),this.initializeScrollWheelWatcher(),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("scrollbar-vertical",this.padVerticalScrollbar.bind(this))}padVerticalScrollbar(e){this.table.rtl?this.headersElement.style.marginLeft=e+"px":this.headersElement.style.marginRight=e+"px"}initializeRenderer(){var e,t={virtual:XI,basic:ZI};typeof this.table.options.renderHorizontal=="string"?e=t[this.table.options.renderHorizontal]:e=this.table.options.renderHorizontal,e?(this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize()):console.error("Unable to find matching renderer:",this.table.options.renderHorizontal)}createHeadersElement(){var e=document.createElement("div");return e.classList.add("tabulator-headers"),e.setAttribute("role","row"),e}createHeaderContentsElement(){var e=document.createElement("div");return e.classList.add("tabulator-header-contents"),e.setAttribute("role","rowgroup"),e}createHeaderElement(){var e=document.createElement("div");return e.classList.add("tabulator-header"),e.setAttribute("role","rowgroup"),this.table.options.headerVisible||e.classList.add("tabulator-header-hidden"),e}getElement(){return this.element}getContentsElement(){return this.contentsElement}getHeadersElement(){return this.headersElement}scrollHorizontal(e){this.contentsElement.scrollLeft=e,this.scrollLeft=e,this.renderer.scrollColumns(e)}initializeScrollWheelWatcher(){this.contentsElement.addEventListener("wheel",e=>{var t;e.deltaX&&(t=this.contentsElement.scrollLeft+e.deltaX,this.table.rowManager.scrollHorizontal(t),this.table.columnManager.scrollHorizontal(t))})}generateColumnsFromRowData(e){var t=[],i={},a=this.table.options.autoColumns==="full"?e:[e[0]],n=this.table.options.autoColumnsDefinitions;if(e&&e.length){if(a.forEach(r=>{Object.keys(r).forEach((l,h)=>{let d=r[l],u;i[l]?i[l]!==!0&&typeof d<"u"&&(i[l].sorter=this.calculateSorterFromValue(d),i[l]=!0):(u={field:l,title:l,sorter:this.calculateSorterFromValue(d)},t.splice(h,0,u),i[l]=typeof d>"u"?u:!0)})}),n)switch(typeof n){case"function":this.table.options.columns=n.call(this.table,t);break;case"object":Array.isArray(n)?t.forEach(r=>{var l=n.find(h=>h.field===r.field);l&&Object.assign(r,l)}):t.forEach(r=>{n[r.field]&&Object.assign(r,n[r.field])}),this.table.options.columns=t;break}else this.table.options.columns=t;this.setColumns(this.table.options.columns)}}calculateSorterFromValue(e){var t;switch(typeof e){case"undefined":t="string";break;case"boolean":t="boolean";break;case"number":t="number";break;case"object":Array.isArray(e)?t="array":t="string";break;default:!isNaN(e)&&e!==""?t="number":e.match(/((^[0-9]+[a-z]+)|(^[a-z]+[0-9]+))+$/i)?t="alphanum":t="string";break}return t}setColumns(e,t){for(;this.headersElement.firstChild;)this.headersElement.removeChild(this.headersElement.firstChild);this.columns=[],this.columnsByIndex=[],this.columnsByField={},this.dispatch("columns-loading"),this.dispatchExternal("columnsLoading"),this.table.options.rowHeader&&(this.rowHeader=new tt(this.table.options.rowHeader===!0?{}:this.table.options.rowHeader,this,!0),this.columns.push(this.rowHeader),this.headersElement.appendChild(this.rowHeader.getElement()),this.rowHeader.columnRendered()),e.forEach((i,a)=>{this._addColumn(i)}),this._reIndexColumns(),this.dispatch("columns-loaded"),this.subscribedExternal("columnsLoaded")&&this.dispatchExternal("columnsLoaded",this.getComponents()),this.rerenderColumns(!1,!0),this.redraw(!0)}_addColumn(e,t,i){var a=new tt(e,this),n=a.getElement(),r=i&&this.findColumnIndex(i);if(t&&this.rowHeader&&(!i||i===this.rowHeader)&&(t=!1,i=this.rowHeader,r=0),i&&r>-1){var l=i.getTopColumn(),h=this.columns.indexOf(l),d=l.getElement();t?(this.columns.splice(h,0,a),d.parentNode.insertBefore(n,d)):(this.columns.splice(h+1,0,a),d.parentNode.insertBefore(n,d.nextSibling))}else t?(this.columns.unshift(a),this.headersElement.insertBefore(a.getElement(),this.headersElement.firstChild)):(this.columns.push(a),this.headersElement.appendChild(a.getElement()));return a.columnRendered(),a}registerColumnField(e){e.definition.field&&(this.columnsByField[e.definition.field]=e)}registerColumnPosition(e){this.columnsByIndex.push(e)}_reIndexColumns(){this.columnsByIndex=[],this.columns.forEach(function(e){e.reRegisterPosition()})}verticalAlignHeaders(){var e=0;this.redrawBlock||(this.headersElement.style.height="",this.columns.forEach(t=>{t.clearVerticalAlign()}),this.columns.forEach(t=>{var i=t.getHeight();i>e&&(e=i)}),this.headersElement.style.height=e+"px",this.columns.forEach(t=>{t.verticalAlign(this.table.options.columnHeaderVertAlign,e)}),this.table.rowManager.adjustTableSize())}findColumn(e){var t;if(typeof e=="object"){if(e instanceof tt)return e;if(e instanceof OC)return e._getSelf()||!1;if(typeof HTMLElement<"u"&&e instanceof HTMLElement)return t=[],this.columns.forEach(a=>{t.push(a),t=t.concat(a.getColumns(!0))}),t.find(a=>a.element===e)||!1}else return this.columnsByField[e]||!1;return!1}getColumnByField(e){return this.columnsByField[e]}getColumnsByFieldRoot(e){var t=[];return Object.keys(this.columnsByField).forEach(i=>{var a=this.table.options.nestedFieldSeparator?i.split(this.table.options.nestedFieldSeparator)[0]:i;a===e&&t.push(this.columnsByField[i])}),t}getColumnByIndex(e){return this.columnsByIndex[e]}getFirstVisibleColumn(){var e=this.columnsByIndex.findIndex(t=>t.visible);return e>-1?this.columnsByIndex[e]:!1}getVisibleColumnsByIndex(){return this.columnsByIndex.filter(e=>e.visible)}getColumns(){return this.columns}findColumnIndex(e){return this.columnsByIndex.findIndex(t=>e===t)}getRealColumns(){return this.columnsByIndex}traverse(e){this.columnsByIndex.forEach((t,i)=>{e(t,i)})}getDefinitions(e){var t=[];return this.columnsByIndex.forEach(i=>{(!e||e&&i.visible)&&t.push(i.getDefinition())}),t}getDefinitionTree(){var e=[];return this.columns.forEach(t=>{e.push(t.getDefinition(!0))}),e}getComponents(e){var t=[],i=e?this.columns:this.columnsByIndex;return i.forEach(a=>{t.push(a.getComponent())}),t}getWidth(){var e=0;return this.columnsByIndex.forEach(t=>{t.visible&&(e+=t.getWidth())}),e}moveColumn(e,t,i){t.element.parentNode.insertBefore(e.element,t.element),i&&t.element.parentNode.insertBefore(t.element,e.element),this.moveColumnActual(e,t,i),this.verticalAlignHeaders(),this.table.rowManager.reinitialize()}moveColumnActual(e,t,i){e.parent.isGroup?this._moveColumnInArray(e.parent.columns,e,t,i):this._moveColumnInArray(this.columns,e,t,i),this._moveColumnInArray(this.columnsByIndex,e,t,i,!0),this.rerenderColumns(!0),this.dispatch("column-moved",e,t,i),this.subscribedExternal("columnMoved")&&this.dispatchExternal("columnMoved",e.getComponent(),this.table.columnManager.getComponents())}_moveColumnInArray(e,t,i,a,n){var r=e.indexOf(t),l,h=[];r>-1&&(e.splice(r,1),l=e.indexOf(i),l>-1?a&&(l=l+1):l=r,e.splice(l,0,t),n&&(h=this.chain("column-moving-rows",[t,i,a],null,[])||[],h=h.concat(this.table.rowManager.rows),h.forEach(function(d){if(d.cells.length){var u=d.cells.splice(r,1)[0];d.cells.splice(l,0,u)}})))}scrollToColumn(e,t,i){var a=0,n=e.getLeftOffset(),r=0,l=e.getElement();return new Promise((h,d)=>{if(typeof t>"u"&&(t=this.table.options.scrollToColumnPosition),typeof i>"u"&&(i=this.table.options.scrollToColumnIfVisible),e.visible){switch(t){case"middle":case"center":r=-this.element.clientWidth/2;break;case"right":r=l.clientWidth-this.headersElement.clientWidth;break}if(!i&&n>0&&n+l.offsetWidth<this.element.clientWidth)return!1;a=n+r,a=Math.max(Math.min(a,this.table.rowManager.element.scrollWidth-this.table.rowManager.element.clientWidth),0),this.table.rowManager.scrollHorizontal(a),this.scrollHorizontal(a),h()}else console.warn("Scroll Error - Column not visible"),d("Scroll Error - Column not visible")})}generateCells(e){var t=[];return this.columnsByIndex.forEach(i=>{t.push(i.generateCell(e))}),t}getFlexBaseWidth(){var e=this.table.element.clientWidth,t=0;return this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(e-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),this.columnsByIndex.forEach(function(i){var a,n,r;i.visible&&(a=i.definition.width||0,n=parseInt(i.minWidth),typeof a=="string"?a.indexOf("%")>-1?r=e/100*parseInt(a):r=parseInt(a):r=a,t+=r>n?r:n)}),t}addColumn(e,t,i){return new Promise((a,n)=>{var r=this._addColumn(e,t,i);this._reIndexColumns(),this.dispatch("column-add",e,t,i),this.layoutMode()!="fitColumns"&&r.reinitializeWidth(),this.redraw(!0),this.table.rowManager.reinitialize(),this.rerenderColumns(),a(r)})}deregisterColumn(e){var t=e.getField(),i;t&&delete this.columnsByField[t],i=this.columnsByIndex.indexOf(e),i>-1&&this.columnsByIndex.splice(i,1),i=this.columns.indexOf(e),i>-1&&this.columns.splice(i,1),this.verticalAlignHeaders(),this.redraw()}rerenderColumns(e,t){this.redrawBlock?(e===!1||e===!0&&this.redrawBlockUpdate===null)&&(this.redrawBlockUpdate=e):this.renderer.rerenderColumns(e,t)}blockRedraw(){this.redrawBlock=!0,this.redrawBlockUpdate=null}restoreRedraw(){this.redrawBlock=!1,this.verticalAlignHeaders(),this.renderer.rerenderColumns(this.redrawBlockUpdate)}redraw(e){$.elVisible(this.element)&&this.verticalAlignHeaders(),e&&(this.table.rowManager.resetScroll(),this.table.rowManager.reinitialize()),this.confirm("table-redrawing",e)||this.layoutRefresh(e),this.dispatch("table-redraw",e),this.table.footerManager.redraw()}}class JI extends Pn{constructor(e){super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0}clearRows(){for(var e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.scrollTop=0,e.scrollLeft=0,e.style.minWidth="",e.style.minHeight="",e.style.display="",e.style.visibility=""}renderRows(){var e=this.tableElement,t=!0,i=document.createDocumentFragment(),a=this.rows();a.forEach((n,r)=>{this.styleRow(n,r),n.initialize(!1,!0),n.type!=="group"&&(t=!1),i.appendChild(n.getElement())}),e.appendChild(i),a.forEach(n=>{n.rendered(),n.heightInitialized||n.calcHeight(!0)}),a.forEach(n=>{n.heightInitialized||n.setCellHeight()}),t?e.style.minWidth=this.table.columnManager.getWidth()+"px":e.style.minWidth=""}rerenderRows(e){this.clearRows(),e&&e(),this.renderRows(),this.rows().length||this.table.rowManager.tableEmpty()}scrollToRowNearestTop(e){var t=$.elOffset(e.getElement()).top;return!(Math.abs(this.elementVertical.scrollTop-t)>Math.abs(this.elementVertical.scrollTop+this.elementVertical.clientHeight-t))}scrollToRow(e){var t=e.getElement();this.elementVertical.scrollTop=$.elOffset(t).top-$.elOffset(this.elementVertical).top+this.elementVertical.scrollTop}visibleRows(e){return this.rows()}}class QI extends Pn{constructor(e){super(e),this.verticalFillMode="fill",this.scrollTop=0,this.scrollLeft=0,this.vDomRowHeight=20,this.vDomTop=0,this.vDomBottom=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomMaxRenderChain=90,this.vDomWindowBuffer=0,this.vDomWindowMinTotalRows=20,this.vDomWindowMinMarginRows=5,this.vDomTopNewRows=[],this.vDomBottomNewRows=[]}clearRows(){for(var e=this.tableElement;e.firstChild;)e.removeChild(e.firstChild);e.style.paddingTop="",e.style.paddingBottom="",e.style.minHeight="",e.style.display="",e.style.visibility="",this.elementVertical.scrollTop=0,this.elementVertical.scrollLeft=0,this.scrollTop=0,this.scrollLeft=0,this.vDomTop=0,this.vDomBottom=0,this.vDomTopPad=0,this.vDomBottomPad=0,this.vDomScrollPosTop=0,this.vDomScrollPosBottom=0}renderRows(){this._virtualRenderFill()}rerenderRows(e){for(var t=this.elementVertical.scrollTop,i=!1,a=!1,n=this.table.rowManager.scrollLeft,r=this.rows(),l=this.vDomTop;l<=this.vDomBottom;l++)if(r[l]){var h=t-r[l].getElement().offsetTop;if(a===!1||Math.abs(h)<a)a=h,i=l;else break}r.forEach(d=>{d.deinitializeHeight()}),e&&e(),this.rows().length?this._virtualRenderFill(i===!1?this.rows.length-1:i,!0,a||0):(this.clear(),this.table.rowManager.tableEmpty()),this.scrollColumns(n)}scrollColumns(e){this.table.rowManager.scrollHorizontal(e)}scrollRows(e,t){var i=e-this.vDomScrollPosTop,a=e-this.vDomScrollPosBottom,n=this.vDomWindowBuffer*2,r=this.rows();if(this.scrollTop=e,-i>n||a>n){var l=this.table.rowManager.scrollLeft;this._virtualRenderFill(Math.floor(this.elementVertical.scrollTop/this.elementVertical.scrollHeight*r.length)),this.scrollColumns(l)}else t?(i<0&&this._addTopRow(r,-i),a<0&&(this.vDomScrollHeight-this.scrollTop>this.vDomWindowBuffer?this._removeBottomRow(r,-a):this.vDomScrollPosBottom=this.scrollTop)):(a>=0&&this._addBottomRow(r,a),i>=0&&(this.scrollTop>this.vDomWindowBuffer?this._removeTopRow(r,i):this.vDomScrollPosTop=this.scrollTop))}resize(){this.vDomWindowBuffer=this.table.options.renderVerticalBuffer||this.elementVertical.clientHeight}scrollToRowNearestTop(e){var t=this.rows().indexOf(e);return!(Math.abs(this.vDomTop-t)>Math.abs(this.vDomBottom-t))}scrollToRow(e){var t=this.rows().indexOf(e);t>-1&&this._virtualRenderFill(t,!0)}visibleRows(e){var t=this.elementVertical.scrollTop,i=this.elementVertical.clientHeight+t,a=!1,n=0,r=0,l=this.rows();if(e)n=this.vDomTop,r=this.vDomBottom;else for(var h=this.vDomTop;h<=this.vDomBottom;h++)if(l[h])if(a)if(i-l[h].getElement().offsetTop>=0)r=h;else break;else if(t-l[h].getElement().offsetTop>=0)n=h;else if(a=!0,i-l[h].getElement().offsetTop>=0)r=h;else break;return l.slice(n,r+1)}_virtualRenderFill(e,t,i){var a=this.tableElement,n=this.elementVertical,r=0,l=0,h=0,d=0,u=0,p=0,y=this.rows(),f=y.length,g=0,k,b,m=[],M=0,v=0,C=this.table.rowManager.fixedHeight,I=this.elementVertical.clientHeight,L=this.table.options.rowHeight,S=!0;if(e=e||0,i=i||0,!e)this.clear();else{for(;a.firstChild;)a.removeChild(a.firstChild);d=(f-e+1)*this.vDomRowHeight,d<I&&(e-=Math.ceil((I-d)/this.vDomRowHeight),e<0&&(e=0)),r=Math.min(Math.max(Math.floor(this.vDomWindowBuffer/this.vDomRowHeight),this.vDomWindowMinMarginRows),e),e-=r}if(f&&$.elVisible(this.elementVertical)){for(this.vDomTop=e,this.vDomBottom=e-1,C||this.table.options.maxHeight?(L&&(v=I/L+this.vDomWindowBuffer/L),v=Math.max(this.vDomWindowMinTotalRows,Math.ceil(v))):v=f;(v==f||l<=I+this.vDomWindowBuffer||M<this.vDomWindowMinTotalRows)&&this.vDomBottom<f-1;){for(m=[],b=document.createDocumentFragment(),p=0;p<v&&this.vDomBottom<f-1;)g=this.vDomBottom+1,k=y[g],this.styleRow(k,g),k.initialize(!1,!0),!k.heightInitialized&&!this.table.options.rowHeight&&k.clearCellHeight(),b.appendChild(k.getElement()),m.push(k),this.vDomBottom++,p++;if(!m.length)break;a.appendChild(b),m.forEach(T=>{T.rendered(),T.heightInitialized||T.calcHeight(!0)}),m.forEach(T=>{T.heightInitialized||T.setCellHeight()}),m.forEach(T=>{h=T.getHeight(),M<r?u+=h:l+=h,h>this.vDomWindowBuffer&&(this.vDomWindowBuffer=h*2),M++}),S=this.table.rowManager.adjustTableSize(),I=this.elementVertical.clientHeight,S&&(C||this.table.options.maxHeight)&&(L=l/M,v=Math.max(this.vDomWindowMinTotalRows,Math.ceil(I/L+this.vDomWindowBuffer/L)))}e?(this.vDomTopPad=t?this.vDomRowHeight*this.vDomTop+i:this.scrollTop-u,this.vDomBottomPad=this.vDomBottom==f-1?0:Math.max(this.vDomScrollHeight-this.vDomTopPad-l-u,0)):(this.vDomTopPad=0,this.vDomRowHeight=Math.floor((l+u)/M),this.vDomBottomPad=this.vDomRowHeight*(f-this.vDomBottom-1),this.vDomScrollHeight=u+l+this.vDomBottomPad-I),a.style.paddingTop=this.vDomTopPad+"px",a.style.paddingBottom=this.vDomBottomPad+"px",t&&(this.scrollTop=this.vDomTopPad+u+i-(this.elementVertical.scrollWidth>this.elementVertical.clientWidth?this.elementVertical.offsetHeight-I:0)),this.scrollTop=Math.min(this.scrollTop,this.elementVertical.scrollHeight-I),this.elementVertical.scrollWidth>this.elementVertical.clientWidth&&t&&(this.scrollTop+=this.elementVertical.offsetHeight-I),this.vDomScrollPosTop=this.scrollTop,this.vDomScrollPosBottom=this.scrollTop,n.scrollTop=this.scrollTop,this.dispatch("render-virtual-fill")}}_addTopRow(e,t){for(var i=this.tableElement,a=[],n=0,r=this.vDomTop-1,l=0,h=!0;h;)if(this.vDomTop){let d=e[r],u,p;d&&l<this.vDomMaxRenderChain?(u=d.getHeight()||this.vDomRowHeight,p=d.initialized,t>=u?(this.styleRow(d,r),i.insertBefore(d.getElement(),i.firstChild),(!d.initialized||!d.heightInitialized)&&a.push(d),d.initialize(),p||(u=d.getElement().offsetHeight,u>this.vDomWindowBuffer&&(this.vDomWindowBuffer=u*2)),t-=u,n+=u,this.vDomTop--,r--,l++):h=!1):h=!1}else h=!1;for(let d of a)d.clearCellHeight();this._quickNormalizeRowHeight(a),n&&(this.vDomTopPad-=n,this.vDomTopPad<0&&(this.vDomTopPad=r*this.vDomRowHeight),r<1&&(this.vDomTopPad=0),i.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop-=n)}_removeTopRow(e,t){for(var i=[],a=0,n=0,r=!0;r;){let l=e[this.vDomTop],h;l&&n<this.vDomMaxRenderChain?(h=l.getHeight()||this.vDomRowHeight,t>=h?(this.vDomTop++,t-=h,a+=h,i.push(l),n++):r=!1):r=!1}for(let l of i){let h=l.getElement();h.parentNode&&h.parentNode.removeChild(h)}a&&(this.vDomTopPad+=a,this.tableElement.style.paddingTop=this.vDomTopPad+"px",this.vDomScrollPosTop+=this.vDomTop?a:a+this.vDomWindowBuffer)}_addBottomRow(e,t){for(var i=this.tableElement,a=[],n=0,r=this.vDomBottom+1,l=0,h=!0;h;){let d=e[r],u,p;d&&l<this.vDomMaxRenderChain?(u=d.getHeight()||this.vDomRowHeight,p=d.initialized,t>=u?(this.styleRow(d,r),i.appendChild(d.getElement()),(!d.initialized||!d.heightInitialized)&&a.push(d),d.initialize(),p||(u=d.getElement().offsetHeight,u>this.vDomWindowBuffer&&(this.vDomWindowBuffer=u*2)),t-=u,n+=u,this.vDomBottom++,r++,l++):h=!1):h=!1}for(let d of a)d.clearCellHeight();this._quickNormalizeRowHeight(a),n&&(this.vDomBottomPad-=n,(this.vDomBottomPad<0||r==e.length-1)&&(this.vDomBottomPad=0),i.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom+=n)}_removeBottomRow(e,t){for(var i=[],a=0,n=0,r=!0;r;){let l=e[this.vDomBottom],h;l&&n<this.vDomMaxRenderChain?(h=l.getHeight()||this.vDomRowHeight,t>=h?(this.vDomBottom--,t-=h,a+=h,i.push(l),n++):r=!1):r=!1}for(let l of i){let h=l.getElement();h.parentNode&&h.parentNode.removeChild(h)}a&&(this.vDomBottomPad+=a,this.vDomBottomPad<0&&(this.vDomBottomPad=0),this.tableElement.style.paddingBottom=this.vDomBottomPad+"px",this.vDomScrollPosBottom-=a)}_quickNormalizeRowHeight(e){for(let t of e)t.calcHeight();for(let t of e)t.setCellHeight()}}class eT extends te{constructor(e){super(e),this.element=this.createHolderElement(),this.tableElement=this.createTableElement(),this.heightFixer=this.createTableElement(),this.placeholder=null,this.placeholderContents=null,this.firstRender=!1,this.renderMode="virtual",this.fixedHeight=!1,this.rows=[],this.activeRowsPipeline=[],this.activeRows=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0,this.scrollTop=0,this.scrollLeft=0,this.redrawBlock=!1,this.redrawBlockRestoreConfig=!1,this.redrawBlockRenderInPosition=!1,this.dataPipeline=[],this.displayPipeline=[],this.scrollbarWidth=0,this.renderer=null}createHolderElement(){var e=document.createElement("div");return e.classList.add("tabulator-tableholder"),e.setAttribute("tabindex",0),e}createTableElement(){var e=document.createElement("div");return e.classList.add("tabulator-table"),e.setAttribute("role","rowgroup"),e}initializePlaceholder(){var e=this.table.options.placeholder;if(typeof e=="function"&&(e=e.call(this.table)),e=this.chain("placeholder",[e],e,e)||e,e){let t=document.createElement("div");if(t.classList.add("tabulator-placeholder"),typeof e=="string"){let i=document.createElement("div");i.classList.add("tabulator-placeholder-contents"),i.innerHTML=e,t.appendChild(i),this.placeholderContents=i}else typeof HTMLElement<"u"&&e instanceof HTMLElement?(t.appendChild(e),this.placeholderContents=e):(console.warn("Invalid placeholder provided, must be string or HTML Element",e),this.el=null);this.placeholder=t}}getElement(){return this.element}getTableElement(){return this.tableElement}initialize(){this.initializePlaceholder(),this.initializeRenderer(),this.element.appendChild(this.tableElement),this.firstRender=!0,this.element.addEventListener("scroll",()=>{var e=this.element.scrollLeft,t=this.scrollLeft>e,i=this.element.scrollTop,a=this.scrollTop>i;this.scrollLeft!=e&&(this.scrollLeft=e,this.dispatch("scroll-horizontal",e,t),this.dispatchExternal("scrollHorizontal",e,t),this._positionPlaceholder()),this.scrollTop!=i&&(this.scrollTop=i,this.renderer.scrollRows(i,a),this.dispatch("scroll-vertical",i,a),this.dispatchExternal("scrollVertical",i,a))})}findRow(e){if(typeof e=="object"){if(e instanceof ae)return e;if(e instanceof Rn)return e._getSelf()||!1;if(typeof HTMLElement<"u"&&e instanceof HTMLElement)return this.rows.find(i=>i.getElement()===e)||!1;if(e===null)return!1}else return typeof e>"u"?!1:this.rows.find(i=>i.data[this.table.options.index]==e)||!1;return!1}getRowFromDataObject(e){var t=this.rows.find(i=>i.data===e);return t||!1}getRowFromPosition(e){return this.getDisplayRows().find(t=>t.type==="row"&&t.getPosition()===e&&t.isDisplayed())}scrollToRow(e,t,i){return this.renderer.scrollToRowPosition(e,t,i)}setData(e,t,i){return new Promise((a,n)=>{t&&this.getDisplayRows().length?this.table.options.pagination?this._setDataActual(e,!0):this.reRenderInPosition(()=>{this._setDataActual(e)}):(this.table.options.autoColumns&&i&&this.table.initialized&&this.table.columnManager.generateColumnsFromRowData(e),this.resetScroll(),this._setDataActual(e)),a()})}_setDataActual(e,t){this.dispatchExternal("dataProcessing",e),this._wipeElements(),Array.isArray(e)?(this.dispatch("data-processing",e),e.forEach((i,a)=>{if(i&&typeof i=="object"){var n=new ae(i,this);this.rows.push(n)}else console.warn("Data Loading Warning - Invalid row data detected and ignored, expecting object but received:",i)}),this.refreshActiveData(!1,!1,t),this.dispatch("data-processed",e),this.dispatchExternal("dataProcessed",e)):console.error(`Data Loading Error - Unable to process data due to invalid data type
21
21
  Expecting: array
22
22
  Received: `,typeof e,`
23
- Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.adjustTableSize(),this.dispatch("rows-wiped")}destroy(){this.rows.forEach(e=>{e.wipe()}),this.rows=[],this.activeRows=[],this.activeRowsPipeline=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0}deleteRow(e,t){var i=this.rows.indexOf(e),a=this.activeRows.indexOf(e);a>-1&&this.activeRows.splice(a,1),i>-1&&this.rows.splice(i,1),this.setActiveRows(this.activeRows),this.displayRowIterator(n=>{var r=n.indexOf(e);r>-1&&n.splice(r,1)}),t||this.reRenderInPosition(),this.regenerateRowPositions(),this.dispatchExternal("rowDeleted",e.getComponent()),this.displayRowsCount||this.tableEmpty(),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.getData())}addRow(e,t,i,a){var n=this.addRowActual(e,t,i,a);return n}addRows(e,t,i,a){var n=[];return new Promise((r,l)=>{t=this.findAddRowPos(t),Array.isArray(e)||(e=[e]),(typeof i>"u"&&t||typeof i<"u"&&!t)&&e.reverse(),e.forEach((h,d)=>{var u=this.addRow(h,t,i,!0);n.push(u),this.dispatch("row-added",u,h,t,i)}),this.refreshActiveData(a?"displayPipeline":!1,!1,!0),this.regenerateRowPositions(),this.displayRowsCount&&this._clearPlaceholder(),r(n)})}findAddRowPos(e){return typeof e>"u"&&(e=this.table.options.addRowPos),e==="pos"&&(e=!0),e==="bottom"&&(e=!1),e}addRowActual(e,t,i,a){var n=e instanceof ae?e:new ae(e||{},this),r=this.findAddRowPos(t),l=-1,h,d;return i||(d=this.chain("row-adding-position",[n,r],null,{index:i,top:r}),i=d.index,r=d.top),typeof i<"u"&&(i=this.findRow(i)),i=this.chain("row-adding-index",[n,i,r],null,i),i&&(l=this.rows.indexOf(i)),i&&l>-1?(h=this.activeRows.indexOf(i),this.displayRowIterator(function(u){var p=u.indexOf(i);p>-1&&u.splice(r?p:p+1,0,n)}),h>-1&&this.activeRows.splice(r?h:h+1,0,n),this.rows.splice(r?l:l+1,0,n)):r?(this.displayRowIterator(function(u){u.unshift(n)}),this.activeRows.unshift(n),this.rows.unshift(n)):(this.displayRowIterator(function(u){u.push(n)}),this.activeRows.push(n),this.rows.push(n)),this.setActiveRows(this.activeRows),this.dispatchExternal("rowAdded",n.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),a||this.reRenderInPosition(),n}moveRow(e,t,i){this.dispatch("row-move",e,t,i),this.moveRowActual(e,t,i),this.regenerateRowPositions(),this.dispatch("row-moved",e,t,i),this.dispatchExternal("rowMoved",e.getComponent())}moveRowActual(e,t,i){this.moveRowInArray(this.rows,e,t,i),this.moveRowInArray(this.activeRows,e,t,i),this.displayRowIterator(a=>{this.moveRowInArray(a,e,t,i)}),this.dispatch("row-moving",e,t,i)}moveRowInArray(e,t,i,a){var n,r,l,h;if(t!==i&&(n=e.indexOf(t),n>-1&&(e.splice(n,1),r=e.indexOf(i),r>-1?a?e.splice(r+1,0,t):e.splice(r,0,t):e.splice(n,0,t)),e===this.getDisplayRows())){l=n<r?n:r,h=r>n?r:n+1;for(let d=l;d<=h;d++)e[d]&&this.styleRow(e[d],d)}}clearData(){this.setData([])}getRowIndex(e){return this.findRowIndex(e,this.rows)}getDisplayRowIndex(e){var t=this.getDisplayRows().indexOf(e);return t>-1?t:!1}nextDisplayRow(e,t){var i=this.getDisplayRowIndex(e),a=!1;return i!==!1&&i<this.displayRowsCount-1&&(a=this.getDisplayRows()[i+1]),a&&(!(a instanceof ae)||a.type!="row")?this.nextDisplayRow(a,t):a}prevDisplayRow(e,t){var i=this.getDisplayRowIndex(e),a=!1;return i&&(a=this.getDisplayRows()[i-1]),t&&a&&(!(a instanceof ae)||a.type!="row")?this.prevDisplayRow(a,t):a}findRowIndex(e,t){var i;return e=this.findRow(e),e&&(i=t.indexOf(e),i>-1)?i:!1}getData(e,t){var i=[],a=this.getRows(e);return a.forEach(function(n){n.type=="row"&&i.push(n.getData(t||"data"))}),i}getComponents(e){var t=[],i=this.getRows(e);return i.forEach(function(a){t.push(a.getComponent())}),t}getDataCount(e){var t=this.getRows(e);return t.length}scrollHorizontal(e){this.scrollLeft=e,this.element.scrollLeft=e,this.dispatch("scroll-horizontal",e)}registerDataPipelineHandler(e,t){typeof t<"u"?(this.dataPipeline.push({handler:e,priority:t}),this.dataPipeline.sort((i,a)=>i.priority-a.priority)):console.error("Data pipeline handlers must have a priority in order to be registered")}registerDisplayPipelineHandler(e,t){typeof t<"u"?(this.displayPipeline.push({handler:e,priority:t}),this.displayPipeline.sort((i,a)=>i.priority-a.priority)):console.error("Display pipeline handlers must have a priority in order to be registered")}refreshActiveData(e,t,i){var a=this.table,n="",r=0,l=["all","dataPipeline","display","displayPipeline","end"];if(!this.table.destroyed){if(typeof e=="function")if(r=this.dataPipeline.findIndex(h=>h.handler===e),r>-1)n="dataPipeline",t&&(r==this.dataPipeline.length-1?n="display":r++);else if(r=this.displayPipeline.findIndex(h=>h.handler===e),r>-1)n="displayPipeline",t&&(r==this.displayPipeline.length-1?n="end":r++);else{console.error("Unable to refresh data, invalid handler provided",e);return}else n=e||"all",r=0;if(this.redrawBlock){(!this.redrawBlockRestoreConfig||this.redrawBlockRestoreConfig&&(this.redrawBlockRestoreConfig.stage===n&&r<this.redrawBlockRestoreConfig.index||l.indexOf(n)<l.indexOf(this.redrawBlockRestoreConfig.stage)))&&(this.redrawBlockRestoreConfig={handler:e,skipStage:t,renderInPosition:i,stage:n,index:r});return}else G.elVisible(this.element)?i?this.reRenderInPosition(this.refreshPipelines.bind(this,e,n,r,i)):(this.refreshPipelines(e,n,r,i),e||this.table.columnManager.renderer.renderColumns(),this.renderTable(),a.options.layoutColumnsOnNewData&&this.table.columnManager.redraw(!0)):this.refreshPipelines(e,n,r,i),this.dispatch("data-refreshed")}}refreshPipelines(e,t,i,a){switch(this.dispatch("data-refreshing"),(!e||!this.activeRowsPipeline[0])&&(this.activeRowsPipeline[0]=this.rows.slice(0)),t){case"all":case"dataPipeline":for(let n=i;n<this.dataPipeline.length;n++){let r=this.dataPipeline[n].handler(this.activeRowsPipeline[n].slice(0));this.activeRowsPipeline[n+1]=r||this.activeRowsPipeline[n].slice(0)}this.setActiveRows(this.activeRowsPipeline[this.dataPipeline.length]);case"display":i=0,this.resetDisplayRows();case"displayPipeline":for(let n=i;n<this.displayPipeline.length;n++){let r=this.displayPipeline[n].handler((n?this.getDisplayRows(n-1):this.activeRows).slice(0),a);this.setDisplayRows(r||this.getDisplayRows(n-1).slice(0),n)}case"end":this.regenerateRowPositions()}this.getDisplayRows().length&&this._clearPlaceholder()}regenerateRowPositions(){var e=this.getDisplayRows(),t=1;e.forEach(i=>{i.type==="row"&&(i.setPosition(t),t++)})}setActiveRows(e){this.activeRows=this.activeRows=Object.assign([],e),this.activeRowsCount=this.activeRows.length}resetDisplayRows(){this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRowsCount=this.displayRows[0].length}setDisplayRows(e,t){this.displayRows[t]=e,t==this.displayRows.length-1&&(this.displayRowsCount=this.displayRows[this.displayRows.length-1].length)}getDisplayRows(e){return typeof e>"u"?this.displayRows.length?this.displayRows[this.displayRows.length-1]:[]:this.displayRows[e]||[]}getVisibleRows(e,t){var i=Object.assign([],this.renderer.visibleRows(!t));return e&&(i=this.chain("rows-visible",[t],i,i)),i}displayRowIterator(e){this.activeRowsPipeline.forEach(e),this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length}getRows(e){var t=[];switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!1,!0);break;default:t=this.chain("rows-retrieve",e,null,this.rows)||this.rows}return t}reRenderInPosition(e){this.redrawBlock?e?e():this.redrawBlockRenderInPosition=!0:(this.dispatchExternal("renderStarted"),this.renderer.rerenderRows(e),this.fixedHeight||this.adjustTableSize(),this.scrollBarCheck(),this.dispatchExternal("renderComplete"))}scrollBarCheck(){var e=0;this.element.scrollHeight>this.element.clientHeight&&(e=this.element.offsetWidth-this.element.clientWidth),e!==this.scrollbarWidth&&(this.scrollbarWidth=e,this.dispatch("scrollbar-vertical",e))}initializeRenderer(){var e,t={virtual:QI,basic:JI};typeof this.table.options.renderVertical=="string"?e=t[this.table.options.renderVertical]:e=this.table.options.renderVertical,e?(this.renderMode=this.table.options.renderVertical,this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize(),(this.table.element.clientHeight||this.table.options.height)&&!(this.table.options.minHeight&&this.table.options.maxHeight)?this.fixedHeight=!0:this.fixedHeight=!1):console.error("Unable to find matching renderer:",this.table.options.renderVertical)}getRenderMode(){return this.renderMode}renderTable(){this.dispatchExternal("renderStarted"),this.element.scrollTop=0,this._clearTable(),this.displayRowsCount?(this.renderer.renderRows(),this.firstRender&&(this.firstRender=!1,this.fixedHeight||this.adjustTableSize(),this.layoutRefresh(!0))):this.renderEmptyScroll(),this.fixedHeight||this.adjustTableSize(),this.dispatch("table-layout"),this.displayRowsCount||this._showPlaceholder(),this.scrollBarCheck(),this.dispatchExternal("renderComplete")}renderEmptyScroll(){this.placeholder?this.tableElement.style.display="none":this.tableElement.style.minWidth=this.table.columnManager.getWidth()+"px"}_clearTable(){this._clearPlaceholder(),this.scrollTop=0,this.scrollLeft=0,this.renderer.clearRows()}tableEmpty(){this.renderEmptyScroll(),this._showPlaceholder()}checkPlaceholder(){this.displayRowsCount?this._clearPlaceholder():this.tableEmpty()}_showPlaceholder(){this.placeholder&&(this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.initializePlaceholder(),this.placeholder.setAttribute("tabulator-render-mode",this.renderMode),this.getElement().appendChild(this.placeholder),this._positionPlaceholder(),this.adjustTableSize())}_clearPlaceholder(){this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.tableElement.style.minWidth="",this.tableElement.style.display=""}_positionPlaceholder(){this.placeholder&&this.placeholder.parentNode&&(this.placeholder.style.width=this.table.columnManager.getWidth()+"px",this.placeholderContents.style.width=this.table.rowManager.element.clientWidth+"px",this.placeholderContents.style.marginLeft=this.scrollLeft+"px")}styleRow(e,t){var i=e.getElement();t%2?(i.classList.add("tabulator-row-even"),i.classList.remove("tabulator-row-odd")):(i.classList.add("tabulator-row-odd"),i.classList.remove("tabulator-row-even"))}normalizeHeight(e){this.activeRows.forEach(function(t){t.normalizeHeight(e)})}adjustTableSize(){let e=this.element.clientHeight,t,i=!1;if(this.renderer.verticalFillMode==="fill"){let a=Math.floor(this.table.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));if(this.fixedHeight){t=isNaN(this.table.options.minHeight)?this.table.options.minHeight:this.table.options.minHeight+"px";const n="calc(100% - "+a+"px)";this.element.style.minHeight=t||"calc(100% - "+a+"px)",this.element.style.height=n,this.element.style.maxHeight=n}else this.element.style.height="",this.element.style.height=this.table.element.clientHeight-a+"px",this.element.scrollTop=this.scrollTop;this.renderer.resize(),!this.fixedHeight&&e!=this.element.clientHeight&&(i=!0,this.subscribed("table-resize")?this.dispatch("table-resize"):this.redraw()),this.scrollBarCheck()}return this._positionPlaceholder(),i}reinitialize(){this.rows.forEach(function(e){e.reinitialize(!0)})}blockRedraw(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1}restoreRedraw(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.handler,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRenderInPosition&&this.reRenderInPosition(),this.redrawBlockRenderInPosition=!1}redraw(e){this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():(this.reRenderInPosition(),this.scrollHorizontal(this.scrollLeft))}resetScroll(){if(this.element.scrollLeft=0,this.element.scrollTop=0,this.table.browser==="ie"){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))}}class tT extends te{constructor(e){super(e),this.active=!1,this.element=this.createElement(),this.containerElement=this.createContainerElement(),this.external=!1}initialize(){this.initializeElement()}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer"),e}createContainerElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer-contents"),this.element.appendChild(e),e}initializeElement(){if(this.table.options.footerElement)switch(typeof this.table.options.footerElement){case"string":this.table.options.footerElement[0]==="<"?this.containerElement.innerHTML=this.table.options.footerElement:(this.external=!0,this.containerElement=document.querySelector(this.table.options.footerElement));break;default:this.element=this.table.options.footerElement;break}}getElement(){return this.element}append(e){this.activate(),this.containerElement.appendChild(e),this.table.rowManager.adjustTableSize()}prepend(e){this.activate(),this.element.insertBefore(e,this.element.firstChild),this.table.rowManager.adjustTableSize()}remove(e){e.parentNode.removeChild(e),this.deactivate()}deactivate(e){(!this.element.firstChild||e)&&(this.external||this.element.parentNode.removeChild(this.element),this.active=!1)}activate(){this.active||(this.active=!0,this.external||(this.table.element.appendChild(this.getElement()),this.table.element.style.display=""))}redraw(){this.dispatch("footer-redraw")}}class iT extends te{constructor(e){super(e),this.el=null,this.abortClasses=["tabulator-headers","tabulator-table"],this.previousTargets={},this.listeners=["click","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","mouseup","mousedown","touchstart","touchend"],this.componentMap={"tabulator-cell":"cell","tabulator-row":"row","tabulator-group":"group","tabulator-col":"column"},this.pseudoTrackers={row:{subscriber:null,target:null},cell:{subscriber:null,target:null},group:{subscriber:null,target:null},column:{subscriber:null,target:null}},this.pseudoTracking=!1}initialize(){this.el=this.table.element,this.buildListenerMap(),this.bindSubscriptionWatchers()}buildListenerMap(){var e={};this.listeners.forEach(t=>{e[t]={handler:null,components:[]}}),this.listeners=e}bindPseudoEvents(){Object.keys(this.pseudoTrackers).forEach(e=>{this.pseudoTrackers[e].subscriber=this.pseudoMouseEnter.bind(this,e),this.subscribe(e+"-mouseover",this.pseudoTrackers[e].subscriber)}),this.pseudoTracking=!0}pseudoMouseEnter(e,t,i){this.pseudoTrackers[e].target!==i&&(this.pseudoTrackers[e].target&&this.dispatch(e+"-mouseleave",t,this.pseudoTrackers[e].target),this.pseudoMouseLeave(e,t),this.pseudoTrackers[e].target=i,this.dispatch(e+"-mouseenter",t,i))}pseudoMouseLeave(e,t){var i=Object.keys(this.pseudoTrackers),a={row:["cell"],cell:["row"]};i=i.filter(n=>{var r=a[e];return n!==e&&(!r||r&&!r.includes(n))}),i.forEach(n=>{var r=this.pseudoTrackers[n].target;this.pseudoTrackers[n].target&&(this.dispatch(n+"-mouseleave",t,r),this.pseudoTrackers[n].target=null)})}bindSubscriptionWatchers(){var e=Object.keys(this.listeners),t=Object.values(this.componentMap);for(let i of t)for(let a of e){let n=i+"-"+a;this.subscriptionChange(n,this.subscriptionChanged.bind(this,i,a))}this.subscribe("table-destroy",this.clearWatchers.bind(this))}subscriptionChanged(e,t,i){var a=this.listeners[t].components,n=a.indexOf(e),r=!1;i?n===-1&&(a.push(e),r=!0):this.subscribed(e+"-"+t)||n>-1&&(a.splice(n,1),r=!0),(t==="mouseenter"||t==="mouseleave")&&!this.pseudoTracking&&this.bindPseudoEvents(),r&&this.updateEventListeners()}updateEventListeners(){for(let e in this.listeners){let t=this.listeners[e];t.components.length?t.handler||(t.handler=this.track.bind(this,e),this.el.addEventListener(e,t.handler)):t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}track(e,t){var i=t.composedPath&&t.composedPath()||t.path,a=this.findTargets(i);a=this.bindComponents(e,a),this.triggerEvents(e,t,a),this.pseudoTracking&&(e=="mouseover"||e=="mouseleave")&&!Object.keys(a).length&&this.pseudoMouseLeave("none",t)}findTargets(e){var t={};let i=Object.keys(this.componentMap);for(let a of e){let n=a.classList?[...a.classList]:[];if(n.filter(h=>this.abortClasses.includes(h)).length)break;let l=n.filter(h=>i.includes(h));for(let h of l)t[this.componentMap[h]]||(t[this.componentMap[h]]=a)}return t.group&&t.group===t.row&&delete t.row,t}bindComponents(e,t){var i=Object.keys(t).reverse(),a=this.listeners[e],n={},r={},l={};for(let h of i){let d,u=t[h],p=this.previousTargets[h];if(p&&p.target===u)d=p.component;else switch(h){case"row":case"group":(a.components.includes("row")||a.components.includes("cell")||a.components.includes("group"))&&(d=this.table.rowManager.getVisibleRows(!0).find(f=>f.getElement()===u),t.row&&t.row.parentNode&&t.row.parentNode.closest(".tabulator-row")&&(t[h]=!1));break;case"column":a.components.includes("column")&&(d=this.table.columnManager.findColumn(u));break;case"cell":a.components.includes("cell")&&(n.row instanceof ae?d=n.row.findCell(u):t.row&&console.warn("Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"));break}d&&(n[h]=d,l[h]={target:u,component:d})}return this.previousTargets=l,Object.keys(t).forEach(h=>{let d=n[h];r[h]=d}),r}triggerEvents(e,t,i){var a=this.listeners[e];for(let n in i)i[n]&&a.components.includes(n)&&this.dispatch(n+"-"+e,t,i[n])}clearWatchers(){for(let e in this.listeners){let t=this.listeners[e];t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}}class aT{constructor(e){this.table=e,this.bindings={}}bind(e,t,i){this.bindings[e]||(this.bindings[e]={}),this.bindings[e][t]?console.warn("Unable to bind component handler, a matching function name is already bound",e,t,i):this.bindings[e][t]=i}handle(e,t,i){if(this.bindings[e]&&this.bindings[e][i]&&typeof this.bindings[e][i].bind=="function")return this.bindings[e][i].bind(null,t);i!=="then"&&typeof i=="string"&&!i.startsWith("_")&&this.table.options.debugInvalidComponentFuncs&&console.error("The "+e+" component does not have a "+i+" function, have you checked that you have the correct Tabulator module installed?")}}class oT extends te{constructor(e){super(e),this.requestOrder=0,this.loading=!1}initialize(){}load(e,t,i,a,n,r){var l=++this.requestOrder;if(this.table.destroyed)return Promise.resolve();if(this.dispatchExternal("dataLoading",e),e&&(e.indexOf("{")==0||e.indexOf("[")==0)&&(e=JSON.parse(e)),this.confirm("data-loading",[e,t,i,n])){this.loading=!0,n||this.alertLoader(),t=this.chain("data-params",[e,i,n],t||{},t||{}),t=this.mapParams(t,this.table.options.dataSendParams);var h=this.chain("data-load",[e,t,i,n],!1,Promise.resolve([]));return h.then(d=>{if(this.table.destroyed)console.warn("Data Load Response Blocked - Table has been destroyed");else{!Array.isArray(d)&&typeof d=="object"&&(d=this.mapParams(d,this.objectInvert(this.table.options.dataReceiveParams)));var u=this.chain("data-loaded",[d],null,d);l==this.requestOrder?(this.clearAlert(),u!==!1&&(this.dispatchExternal("dataLoaded",u),this.table.rowManager.setData(u,a,typeof r>"u"?!a:r))):console.warn("Data Load Response Blocked - An active data load request was blocked by an attempt to change table data while the request was being made")}}).catch(d=>{console.error("Data Load Error: ",d),this.dispatchExternal("dataLoadError",d),n||this.alertError(),setTimeout(()=>{this.clearAlert()},this.table.options.dataLoaderErrorTimeout)}).finally(()=>{this.loading=!1})}else return this.dispatchExternal("dataLoaded",e),e||(e=[]),this.table.rowManager.setData(e,a,typeof r>"u"?!a:r),Promise.resolve()}mapParams(e,t){var i={};for(let a in e)i[t.hasOwnProperty(a)?t[a]:a]=e[a];return i}objectInvert(e){var t={};for(let i in e)t[e[i]]=i;return t}blockActiveLoad(){this.requestOrder++}alertLoader(){var e=typeof this.table.options.dataLoader=="function"?this.table.options.dataLoader():this.table.options.dataLoader;e&&this.table.alertManager.alert(this.table.options.dataLoaderLoading||this.langText("data|loading"))}alertError(){this.table.alertManager.alert(this.table.options.dataLoaderError||this.langText("data|error"),"error")}clearAlert(){this.table.alertManager.clear()}}class nT{constructor(e,t,i){this.table=e,this.events={},this.optionsList=t||{},this.subscriptionNotifiers={},this.dispatch=i?this._debugDispatch.bind(this):this._dispatch.bind(this),this.debug=i}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e])if(t)if(i=this.events[e].findIndex(a=>a===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}else delete this.events[e];else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(a=>{a(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift(),i;return this.events[t]&&this.events[t].forEach((a,n)=>{let r=a.apply(this.table,e);n||(i=r)}),i}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="ExternalEvent:"+e[0],(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}}class sT{constructor(e){this.events={},this.subscriptionNotifiers={},this.dispatch=e?this._debugDispatch.bind(this):this._dispatch.bind(this),this.chain=e?this._debugChain.bind(this):this._chain.bind(this),this.confirm=e?this._debugConfirm.bind(this):this._confirm.bind(this),this.debug=e}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t,i=1e4){this.events[e]||(this.events[e]=[]),this.events[e].push({callback:t,priority:i}),this.events[e].sort((a,n)=>a.priority-n.priority),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e]){if(t)if(i=this.events[e].findIndex(a=>a.callback===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}}else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_chain(e,t,i,a){var n=i;return Array.isArray(t)||(t=[t]),this.subscribed(e)?(this.events[e].forEach((r,l)=>{n=r.callback.apply(this,t.concat([n]))}),n):typeof a=="function"?a():a}_confirm(e,t){var i=!1;return Array.isArray(t)||(t=[t]),this.subscribed(e)&&this.events[e].forEach((a,n)=>{a.callback.apply(this,t)&&(i=!0)}),i}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(a=>{a(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift();this.events[t]&&this.events[t].forEach(i=>{i.callback.apply(this,e)})}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}_debugChain(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._chain(...arguments)}_debugConfirm(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._confirm(...arguments)}}class rT extends te{constructor(e){super(e)}_warnUser(){this.options("debugDeprecation")&&console.warn(...arguments)}check(e,t,i){var a="";return typeof this.options(e)<"u"?(a="Deprecated Setup Option - Use of the %c"+e+"%c option is now deprecated",t?(a=a+", Please use the %c"+t+"%c option instead",this._warnUser(a,"font-weight: bold;","font-weight: normal;","font-weight: bold;","font-weight: normal;"),i&&(this.table.options[t]=this.table.options[e])):this._warnUser(a,"font-weight: bold;","font-weight: normal;"),!1):!0}checkMsg(e,t){return typeof this.options(e)<"u"?(this._warnUser("%cDeprecated Setup Option - Use of the %c"+e+" %c option is now deprecated, "+t,"font-weight: normal;","font-weight: bold;","font-weight: normal;"),!1):!0}msg(e){this._warnUser(e)}}class lT extends te{constructor(e){super(e),this.deps={},this.props={}}initialize(){this.deps=Object.assign({},this.options("dependencies"))}lookup(e,t,i){if(Array.isArray(e)){for(const n of e){var a=this.lookup(n,t,!0);if(a)break}if(a)return a;this.error(e)}else return t?this.lookupProp(e,t,i):this.lookupKey(e,i)}lookupProp(e,t,i){var a;if(this.props[e]&&this.props[e][t])return this.props[e][t];if(a=this.lookupKey(e,i),a)return this.props[e]||(this.props[e]={}),this.props[e][t]=a[t]||a,this.props[e][t]}lookupKey(e,t){var i;return this.deps[e]?i=this.deps[e]:window[e]?(this.deps[e]=window[e],i=this.deps[e]):t||this.error(e),i}error(e){console.error("Unable to find dependency",e,"Please check documentation and ensure you have imported the required library into your project")}}function hT(o,e){e&&this.table.columnManager.renderer.reinitializeColumnWidths(o),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function sx(o,e){o.forEach(function(t){t.reinitializeWidth()}),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function cT(o,e){var t=0,i=this.table.rowManager.element.clientWidth,a=0,n=!1;o.forEach((r,l)=>{r.widthFixed||r.reinitializeWidth(),(this.table.options.responsiveLayout?r.modules.responsive.visible:r.visible)&&(n=r),r.visible&&(t+=r.getWidth())}),n?(a=i-t+n.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&(n.setWidth(0),this.table.modules.responsiveLayout.update()),a>0?n.setWidth(a):n.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function dT(o,e){var t=this.table.rowManager.element.getBoundingClientRect().width,i=0,a=0,n=0,r=0,l=[],h=[],d=0,u=0,p=0;function y(g){var k;return typeof g=="string"?g.indexOf("%")>-1?k=t/100*parseInt(g):k=parseInt(g):k=g,k}function f(g,k,b,m){var M=[],v=0,C=0,I=0,L=n,S=0,T=0,R=[];function O(P){return b*(P.column.definition.widthGrow||1)}function X(P){return y(P.width)-b*(P.column.definition.widthShrink||0)}return g.forEach(function(P,le){var be=m?X(P):O(P);P.column.minWidth>=be?M.push(P):P.column.maxWidth&&P.column.maxWidth<be?(P.width=P.column.maxWidth,k-=P.column.maxWidth,L-=m?P.column.definition.widthShrink||1:P.column.definition.widthGrow||1,L&&(b=Math.floor(k/L))):(R.push(P),T+=m?P.column.definition.widthShrink||1:P.column.definition.widthGrow||1)}),M.length?(M.forEach(function(P){v+=m?P.width-P.column.minWidth:P.column.minWidth,P.width=P.column.minWidth}),C=k-v,I=T?Math.floor(C/T):C,S=f(R,C,I,m)):(S=T?k-Math.floor(k/T)*T:k,R.forEach(function(P){P.width=m?X(P):O(P)})),S}this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(t-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),o.forEach(function(g){var k,b,m;g.visible&&(k=g.definition.width,b=parseInt(g.minWidth),k?(m=y(k),i+=m>b?m:b,g.definition.widthShrink&&(h.push({column:g,width:m>b?m:b}),d+=g.definition.widthShrink)):(l.push({column:g,width:0}),n+=g.definition.widthGrow||1))}),a=t-i,r=Math.floor(a/n),p=f(l,a,r,!1),l.length&&p>0&&(l[l.length-1].width+=p),l.forEach(function(g){a-=g.width}),u=Math.abs(p)+a,u>0&&d&&(p=f(h,u,Math.floor(u/d),!0)),p&&h.length&&(h[h.length-1].width-=p),l.forEach(function(g){g.column.setWidth(g.width)}),h.forEach(function(g){g.column.setWidth(g.width)})}var uT={fitData:hT,fitDataFill:sx,fitDataTable:sx,fitDataStretch:cT,fitColumns:dT};const dn=class dn extends q{constructor(e){super(e,"layout"),this.mode=null,this.registerTableOption("layout","fitData"),this.registerTableOption("layoutColumnsOnNewData",!1),this.registerColumnOption("widthGrow"),this.registerColumnOption("widthShrink")}initialize(){var e=this.table.options.layout;dn.modes[e]?this.mode=e:(console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : "+e),this.mode="fitData"),this.table.element.setAttribute("tabulator-layout",this.mode),this.subscribe("column-init",this.initializeColumn.bind(this))}initializeColumn(e){e.definition.widthGrow&&(e.definition.widthGrow=Number(e.definition.widthGrow)),e.definition.widthShrink&&(e.definition.widthShrink=Number(e.definition.widthShrink))}getMode(){return this.mode}layout(e){var t=this.table.columnManager.columnsByIndex.find(i=>i.definition.variableHeight||i.definition.formatter==="textarea");this.dispatch("layout-refreshing"),dn.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,e),t&&this.table.rowManager.normalizeHeight(!0),this.dispatch("layout-refreshed")}};E(dn,"moduleName","layout"),E(dn,"modes",uT);let A9=dn;var pT={default:{groups:{item:"item",items:"items"},columns:{},data:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},headerFilters:{default:"filter column...",columns:{}}}};const In=class In extends q{constructor(e){super(e),this.locale="default",this.lang=!1,this.bindings={},this.langList={},this.registerTableOption("locale",!1),this.registerTableOption("langs",{})}initialize(){this.langList=G.deepClone(In.langs),this.table.options.columnDefaults.headerFilterPlaceholder!==!1&&this.setHeaderFilterPlaceholder(this.table.options.columnDefaults.headerFilterPlaceholder);for(let e in this.table.options.langs)this.installLang(e,this.table.options.langs[e]);this.setLocale(this.table.options.locale),this.registerTableFunction("setLocale",this.setLocale.bind(this)),this.registerTableFunction("getLocale",this.getLocale.bind(this)),this.registerTableFunction("getLang",this.getLang.bind(this))}setHeaderFilterPlaceholder(e){this.langList.default.headerFilters.default=e}installLang(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t}_setLangProp(e,t){for(let i in t)e[i]&&typeof e[i]=="object"?this._setLangProp(e[i],t[i]):e[i]=t[i]}setLocale(e){e=e||"default";function t(i,a){for(var n in i)typeof i[n]=="object"?(a[n]||(a[n]={}),t(i[n],a[n])):a[n]=i[n]}if(e===!0&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!this.langList[e]){let i=e.split("-")[0];this.langList[i]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,i),e=i):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}this.locale=e,this.lang=G.deepClone(this.langList.default||{}),e!="default"&&t(this.langList[e],this.lang),this.dispatchExternal("localized",this.locale,this.lang),this._executeBindings()}getLocale(e){return this.locale}getLang(e){return e?this.langList[e]:this.lang}getText(e,t){var i=t?e+"|"+t:e,a=i.split("|"),n=this._getLangElement(a,this.locale);return n||""}_getLangElement(e,t){var i=this.lang;return e.forEach(function(a){var n;i&&(n=i[a],typeof n<"u"?i=n:i=!1)}),i}bind(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)}_executeBindings(){for(let e in this.bindings)this.bindings[e].forEach(t=>{t(this.getText(e),this.lang)})}};E(In,"moduleName","localize"),E(In,"langs",pT);let V9=In;class rx extends q{constructor(e){super(e)}initialize(){this.registerTableFunction("tableComms",this.receive.bind(this))}getConnections(e){var t=[],i;return i=this.table.constructor.registry.lookupTable(e),i.forEach(a=>{this.table!==a&&t.push(a)}),t}send(e,t,i,a){var n=this.getConnections(e);n.forEach(r=>{r.tableComms(this.table.element,t,i,a)}),!n.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)}receive(e,t,i,a){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,i,a);console.warn("Inter-table Comms Error - no such module:",t)}}E(rx,"moduleName","comms");var yT=Object.freeze({__proto__:null,CommsModule:rx,LayoutModule:A9,LocalizeModule:V9});const ke=class ke{static findTable(e){var t=ke.registry.lookupTable(e,!0);return Array.isArray(t)&&!t.length?!1:t}};E(ke,"registry",{tables:[],register(e){ke.registry.tables.push(e)},deregister(e){var t=ke.registry.tables.indexOf(e);t>-1&&ke.registry.tables.splice(t,1)},lookupTable(e,t){var i=[],a,n;if(typeof e=="string"){if(a=document.querySelectorAll(e),a.length)for(var r=0;r<a.length;r++)n=ke.registry.matchElement(a[r]),n&&i.push(n)}else typeof HTMLElement<"u"&&e instanceof HTMLElement||e instanceof ke?(n=ke.registry.matchElement(e),n&&i.push(n)):Array.isArray(e)?e.forEach(function(l){i=i.concat(ke.registry.lookupTable(l))}):t||console.warn("Table Connection Error - Invalid Selector",e);return i},matchElement(e){return ke.registry.tables.find(function(t){return e instanceof ke?t===e:t.element===e})}});let P9=ke;const U=class U extends P9{constructor(){super()}static initializeModuleBinder(e){U.modulesRegistered||(U.modulesRegistered=!0,U._registerModules(yT,!0),e&&U._registerModules(e))}static _extendModule(e,t,i){if(U.moduleBindings[e]){var a=U.moduleBindings[e][t];if(a)if(typeof i=="object")for(let n in i)a[n]=i[n];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)}static _registerModules(e,t){var i=Object.values(e);t&&i.forEach(a=>{a.prototype.moduleCore=!0}),U._registerModule(i)}static _registerModule(e){Array.isArray(e)||(e=[e]),e.forEach(t=>{U._registerModuleBinding(t),U._registerModuleExtensions(t)})}static _registerModuleBinding(e){e.moduleName?U.moduleBindings[e.moduleName]=e:console.error("Unable to bind module, no moduleName defined",e.moduleName)}static _registerModuleExtensions(e){var t=e.moduleExtensions;if(e.moduleExtensions)for(let i in t){let a=t[i];if(U.moduleBindings[i])for(let n in a)U._extendModule(i,n,a[n]);else{U.moduleExtensions[i]||(U.moduleExtensions[i]={});for(let n in a)U.moduleExtensions[i][n]||(U.moduleExtensions[i][n]={}),Object.assign(U.moduleExtensions[i][n],a[n])}}U._extendModuleFromQueue(e)}static _extendModuleFromQueue(e){var t=U.moduleExtensions[e.moduleName];if(t)for(let i in t)U._extendModule(e.moduleName,i,t[i])}_bindModules(){var e=[],t=[],i=[];this.modules={};for(var a in U.moduleBindings){let n=U.moduleBindings[a],r=new n(this);this.modules[a]=r,n.prototype.moduleCore?this.modulesCore.push(r):n.moduleInitOrder?n.moduleInitOrder<0?e.push(r):t.push(r):i.push(r)}e.sort((n,r)=>n.moduleInitOrder>r.moduleInitOrder?1:-1),t.sort((n,r)=>n.moduleInitOrder>r.moduleInitOrder?1:-1),this.modulesRegular=e.concat(i.concat(t))}};E(U,"moduleBindings",{}),E(U,"moduleExtensions",{}),E(U,"modulesRegistered",!1),E(U,"defaultModules",!1);let q9=U;class fT extends te{constructor(e){super(e),this.element=this._createAlertElement(),this.msgElement=this._createMsgElement(),this.type=null,this.element.appendChild(this.msgElement)}_createAlertElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert"),e}_createMsgElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert-msg"),e.setAttribute("role","alert"),e}_typeClass(){return"tabulator-alert-state-"+this.type}alert(e,t="msg"){if(e){for(this.clear(),this.dispatch("alert-show",t),this.type=t;this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.add(this._typeClass()),typeof e=="function"&&(e=e()),e instanceof HTMLElement?this.msgElement.appendChild(e):this.msgElement.innerHTML=e,this.table.element.appendChild(this.element)}}clear(){this.dispatch("alert-hide",this.type),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.msgElement.classList.remove(this._typeClass())}}const Oe=class Oe extends q9{static extendModule(){Oe.initializeModuleBinder(),Oe._extendModule(...arguments)}static registerModule(){Oe.initializeModuleBinder(),Oe._registerModule(...arguments)}constructor(e,t,i){super(),Oe.initializeModuleBinder(i),this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=null,this.alertManager=null,this.vdomHoz=null,this.externalEvents=null,this.eventBus=null,this.interactionMonitor=!1,this.browser="",this.browserSlow=!1,this.browserMobile=!1,this.rtl=!1,this.originalElement=null,this.componentFunctionBinder=new aT(this),this.dataLoader=!1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdvisor=new rT(this),this.optionsList=new nx(this,"table constructor"),this.dependencyRegistry=new lT(this),this.initialized=!1,this.destroyed=!1,this.initializeElement(e)&&(this.initializeCoreSystems(t),setTimeout(()=>{this._create()})),this.constructor.registry.register(this)}initializeElement(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement?(this.element=e,!0):typeof e=="string"?(this.element=document.querySelector(e),this.element?!0:(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)}initializeCoreSystems(e){this.columnManager=new KI(this),this.rowManager=new eT(this),this.footerManager=new tT(this),this.dataLoader=new oT(this),this.alertManager=new fT(this),this._bindModules(),this.options=this.optionsList.generate(Oe.defaultOptions,e),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEvents=new nT(this,this.options,this.options.debugEventsExternal),this.eventBus=new sT(this.options.debugEventsInternal),this.interactionMonitor=new iT(this),this.dataLoader.initialize(),this.footerManager.initialize(),this.dependencyRegistry.initialize()}_mapDeprecatedFunctionality(){}_clearSelection(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")}_create(){this.externalEvents.dispatch("tableBuilding"),this.eventBus.dispatch("table-building"),this._rtlCheck(),this._buildElement(),this._initializeTable(),this.initialized=!0,this._loadInitialData().finally(()=>{this.eventBus.dispatch("table-initialized"),this.externalEvents.dispatch("tableBuilt")})}_rtlCheck(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if(e.direction!=="rtl")break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}}_clearObjectPointers(){this.options.columns=this.options.columns.slice(0),Array.isArray(this.options.data)&&!this.options.reactiveData&&(this.options.data=this.options.data.slice(0))}_buildElement(){var e=this.element,t=this.options,i;if(e.tagName==="TABLE"){this.originalElement=this.element,i=document.createElement("div");var a=e.attributes;for(var n in a)typeof a[n]=="object"&&i.setAttribute(a[n].name,a[n].value);e.parentNode.replaceChild(i,e),this.element=e=i}for(e.classList.add("tabulator"),e.setAttribute("role","grid");e.firstChild;)e.removeChild(e.firstChild);t.height&&(t.height=isNaN(t.height)?t.height:t.height+"px",e.style.height=t.height),t.minHeight!==!1&&(t.minHeight=isNaN(t.minHeight)?t.minHeight:t.minHeight+"px",e.style.minHeight=t.minHeight),t.maxHeight!==!1&&(t.maxHeight=isNaN(t.maxHeight)?t.maxHeight:t.maxHeight+"px",e.style.maxHeight=t.maxHeight)}_initializeTable(){var e=this.element,t=this.options;this.interactionMonitor.initialize(),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modulesCore.forEach(i=>{i.initialize()}),e.appendChild(this.columnManager.getElement()),e.appendChild(this.rowManager.getElement()),t.footerElement&&this.footerManager.activate(),t.autoColumns&&t.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modulesRegular.forEach(i=>{i.initialize()}),this.columnManager.setColumns(t.columns),this.eventBus.dispatch("table-built")}_loadInitialData(){return this.dataLoader.load(this.options.data).finally(()=>{this.columnManager.verticalAlignHeaders()})}destroy(){var e=this.element;for(this.destroyed=!0,this.constructor.registry.deregister(this),this.eventBus.dispatch("table-destroy"),this.rowManager.destroy();e.firstChild;)e.removeChild(e.firstChild);e.classList.remove("tabulator"),this.externalEvents.dispatch("tableDestroyed")}_detectBrowser(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):e.indexOf("Mac OS")>-1?(this.browser="safari",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.slice(0,4))}initGuard(e,t){var i,a;return this.options.debugInitialization&&!this.initialized&&(e||(i=new Error().stack.split(`
23
+ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.adjustTableSize(),this.dispatch("rows-wiped")}destroy(){this.rows.forEach(e=>{e.wipe()}),this.rows=[],this.activeRows=[],this.activeRowsPipeline=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0}deleteRow(e,t){var i=this.rows.indexOf(e),a=this.activeRows.indexOf(e);a>-1&&this.activeRows.splice(a,1),i>-1&&this.rows.splice(i,1),this.setActiveRows(this.activeRows),this.displayRowIterator(n=>{var r=n.indexOf(e);r>-1&&n.splice(r,1)}),t||this.reRenderInPosition(),this.regenerateRowPositions(),this.dispatchExternal("rowDeleted",e.getComponent()),this.displayRowsCount||this.tableEmpty(),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.getData())}addRow(e,t,i,a){var n=this.addRowActual(e,t,i,a);return n}addRows(e,t,i,a){var n=[];return new Promise((r,l)=>{t=this.findAddRowPos(t),Array.isArray(e)||(e=[e]),(typeof i>"u"&&t||typeof i<"u"&&!t)&&e.reverse(),e.forEach((h,d)=>{var u=this.addRow(h,t,i,!0);n.push(u),this.dispatch("row-added",u,h,t,i)}),this.refreshActiveData(a?"displayPipeline":!1,!1,!0),this.regenerateRowPositions(),this.displayRowsCount&&this._clearPlaceholder(),r(n)})}findAddRowPos(e){return typeof e>"u"&&(e=this.table.options.addRowPos),e==="pos"&&(e=!0),e==="bottom"&&(e=!1),e}addRowActual(e,t,i,a){var n=e instanceof ae?e:new ae(e||{},this),r=this.findAddRowPos(t),l=-1,h,d;return i||(d=this.chain("row-adding-position",[n,r],null,{index:i,top:r}),i=d.index,r=d.top),typeof i<"u"&&(i=this.findRow(i)),i=this.chain("row-adding-index",[n,i,r],null,i),i&&(l=this.rows.indexOf(i)),i&&l>-1?(h=this.activeRows.indexOf(i),this.displayRowIterator(function(u){var p=u.indexOf(i);p>-1&&u.splice(r?p:p+1,0,n)}),h>-1&&this.activeRows.splice(r?h:h+1,0,n),this.rows.splice(r?l:l+1,0,n)):r?(this.displayRowIterator(function(u){u.unshift(n)}),this.activeRows.unshift(n),this.rows.unshift(n)):(this.displayRowIterator(function(u){u.push(n)}),this.activeRows.push(n),this.rows.push(n)),this.setActiveRows(this.activeRows),this.dispatchExternal("rowAdded",n.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),a||this.reRenderInPosition(),n}moveRow(e,t,i){this.dispatch("row-move",e,t,i),this.moveRowActual(e,t,i),this.regenerateRowPositions(),this.dispatch("row-moved",e,t,i),this.dispatchExternal("rowMoved",e.getComponent())}moveRowActual(e,t,i){this.moveRowInArray(this.rows,e,t,i),this.moveRowInArray(this.activeRows,e,t,i),this.displayRowIterator(a=>{this.moveRowInArray(a,e,t,i)}),this.dispatch("row-moving",e,t,i)}moveRowInArray(e,t,i,a){var n,r,l,h;if(t!==i&&(n=e.indexOf(t),n>-1&&(e.splice(n,1),r=e.indexOf(i),r>-1?a?e.splice(r+1,0,t):e.splice(r,0,t):e.splice(n,0,t)),e===this.getDisplayRows())){l=n<r?n:r,h=r>n?r:n+1;for(let d=l;d<=h;d++)e[d]&&this.styleRow(e[d],d)}}clearData(){this.setData([])}getRowIndex(e){return this.findRowIndex(e,this.rows)}getDisplayRowIndex(e){var t=this.getDisplayRows().indexOf(e);return t>-1?t:!1}nextDisplayRow(e,t){var i=this.getDisplayRowIndex(e),a=!1;return i!==!1&&i<this.displayRowsCount-1&&(a=this.getDisplayRows()[i+1]),a&&(!(a instanceof ae)||a.type!="row")?this.nextDisplayRow(a,t):a}prevDisplayRow(e,t){var i=this.getDisplayRowIndex(e),a=!1;return i&&(a=this.getDisplayRows()[i-1]),t&&a&&(!(a instanceof ae)||a.type!="row")?this.prevDisplayRow(a,t):a}findRowIndex(e,t){var i;return e=this.findRow(e),e&&(i=t.indexOf(e),i>-1)?i:!1}getData(e,t){var i=[],a=this.getRows(e);return a.forEach(function(n){n.type=="row"&&i.push(n.getData(t||"data"))}),i}getComponents(e){var t=[],i=this.getRows(e);return i.forEach(function(a){t.push(a.getComponent())}),t}getDataCount(e){var t=this.getRows(e);return t.length}scrollHorizontal(e){this.scrollLeft=e,this.element.scrollLeft=e,this.dispatch("scroll-horizontal",e)}registerDataPipelineHandler(e,t){typeof t<"u"?(this.dataPipeline.push({handler:e,priority:t}),this.dataPipeline.sort((i,a)=>i.priority-a.priority)):console.error("Data pipeline handlers must have a priority in order to be registered")}registerDisplayPipelineHandler(e,t){typeof t<"u"?(this.displayPipeline.push({handler:e,priority:t}),this.displayPipeline.sort((i,a)=>i.priority-a.priority)):console.error("Display pipeline handlers must have a priority in order to be registered")}refreshActiveData(e,t,i){var a=this.table,n="",r=0,l=["all","dataPipeline","display","displayPipeline","end"];if(!this.table.destroyed){if(typeof e=="function")if(r=this.dataPipeline.findIndex(h=>h.handler===e),r>-1)n="dataPipeline",t&&(r==this.dataPipeline.length-1?n="display":r++);else if(r=this.displayPipeline.findIndex(h=>h.handler===e),r>-1)n="displayPipeline",t&&(r==this.displayPipeline.length-1?n="end":r++);else{console.error("Unable to refresh data, invalid handler provided",e);return}else n=e||"all",r=0;if(this.redrawBlock){(!this.redrawBlockRestoreConfig||this.redrawBlockRestoreConfig&&(this.redrawBlockRestoreConfig.stage===n&&r<this.redrawBlockRestoreConfig.index||l.indexOf(n)<l.indexOf(this.redrawBlockRestoreConfig.stage)))&&(this.redrawBlockRestoreConfig={handler:e,skipStage:t,renderInPosition:i,stage:n,index:r});return}else $.elVisible(this.element)?i?this.reRenderInPosition(this.refreshPipelines.bind(this,e,n,r,i)):(this.refreshPipelines(e,n,r,i),e||this.table.columnManager.renderer.renderColumns(),this.renderTable(),a.options.layoutColumnsOnNewData&&this.table.columnManager.redraw(!0)):this.refreshPipelines(e,n,r,i),this.dispatch("data-refreshed")}}refreshPipelines(e,t,i,a){switch(this.dispatch("data-refreshing"),(!e||!this.activeRowsPipeline[0])&&(this.activeRowsPipeline[0]=this.rows.slice(0)),t){case"all":case"dataPipeline":for(let n=i;n<this.dataPipeline.length;n++){let r=this.dataPipeline[n].handler(this.activeRowsPipeline[n].slice(0));this.activeRowsPipeline[n+1]=r||this.activeRowsPipeline[n].slice(0)}this.setActiveRows(this.activeRowsPipeline[this.dataPipeline.length]);case"display":i=0,this.resetDisplayRows();case"displayPipeline":for(let n=i;n<this.displayPipeline.length;n++){let r=this.displayPipeline[n].handler((n?this.getDisplayRows(n-1):this.activeRows).slice(0),a);this.setDisplayRows(r||this.getDisplayRows(n-1).slice(0),n)}case"end":this.regenerateRowPositions()}this.getDisplayRows().length&&this._clearPlaceholder()}regenerateRowPositions(){var e=this.getDisplayRows(),t=1;e.forEach(i=>{i.type==="row"&&(i.setPosition(t),t++)})}setActiveRows(e){this.activeRows=this.activeRows=Object.assign([],e),this.activeRowsCount=this.activeRows.length}resetDisplayRows(){this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRowsCount=this.displayRows[0].length}setDisplayRows(e,t){this.displayRows[t]=e,t==this.displayRows.length-1&&(this.displayRowsCount=this.displayRows[this.displayRows.length-1].length)}getDisplayRows(e){return typeof e>"u"?this.displayRows.length?this.displayRows[this.displayRows.length-1]:[]:this.displayRows[e]||[]}getVisibleRows(e,t){var i=Object.assign([],this.renderer.visibleRows(!t));return e&&(i=this.chain("rows-visible",[t],i,i)),i}displayRowIterator(e){this.activeRowsPipeline.forEach(e),this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length}getRows(e){var t=[];switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!1,!0);break;default:t=this.chain("rows-retrieve",e,null,this.rows)||this.rows}return t}reRenderInPosition(e){this.redrawBlock?e?e():this.redrawBlockRenderInPosition=!0:(this.dispatchExternal("renderStarted"),this.renderer.rerenderRows(e),this.fixedHeight||this.adjustTableSize(),this.scrollBarCheck(),this.dispatchExternal("renderComplete"))}scrollBarCheck(){var e=0;this.element.scrollHeight>this.element.clientHeight&&(e=this.element.offsetWidth-this.element.clientWidth),e!==this.scrollbarWidth&&(this.scrollbarWidth=e,this.dispatch("scrollbar-vertical",e))}initializeRenderer(){var e,t={virtual:QI,basic:JI};typeof this.table.options.renderVertical=="string"?e=t[this.table.options.renderVertical]:e=this.table.options.renderVertical,e?(this.renderMode=this.table.options.renderVertical,this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize(),(this.table.element.clientHeight||this.table.options.height)&&!(this.table.options.minHeight&&this.table.options.maxHeight)?this.fixedHeight=!0:this.fixedHeight=!1):console.error("Unable to find matching renderer:",this.table.options.renderVertical)}getRenderMode(){return this.renderMode}renderTable(){this.dispatchExternal("renderStarted"),this.element.scrollTop=0,this._clearTable(),this.displayRowsCount?(this.renderer.renderRows(),this.firstRender&&(this.firstRender=!1,this.fixedHeight||this.adjustTableSize(),this.layoutRefresh(!0))):this.renderEmptyScroll(),this.fixedHeight||this.adjustTableSize(),this.dispatch("table-layout"),this.displayRowsCount||this._showPlaceholder(),this.scrollBarCheck(),this.dispatchExternal("renderComplete")}renderEmptyScroll(){this.placeholder?this.tableElement.style.display="none":this.tableElement.style.minWidth=this.table.columnManager.getWidth()+"px"}_clearTable(){this._clearPlaceholder(),this.scrollTop=0,this.scrollLeft=0,this.renderer.clearRows()}tableEmpty(){this.renderEmptyScroll(),this._showPlaceholder()}checkPlaceholder(){this.displayRowsCount?this._clearPlaceholder():this.tableEmpty()}_showPlaceholder(){this.placeholder&&(this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.initializePlaceholder(),this.placeholder.setAttribute("tabulator-render-mode",this.renderMode),this.getElement().appendChild(this.placeholder),this._positionPlaceholder(),this.adjustTableSize())}_clearPlaceholder(){this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.tableElement.style.minWidth="",this.tableElement.style.display=""}_positionPlaceholder(){this.placeholder&&this.placeholder.parentNode&&(this.placeholder.style.width=this.table.columnManager.getWidth()+"px",this.placeholderContents.style.width=this.table.rowManager.element.clientWidth+"px",this.placeholderContents.style.marginLeft=this.scrollLeft+"px")}styleRow(e,t){var i=e.getElement();t%2?(i.classList.add("tabulator-row-even"),i.classList.remove("tabulator-row-odd")):(i.classList.add("tabulator-row-odd"),i.classList.remove("tabulator-row-even"))}normalizeHeight(e){this.activeRows.forEach(function(t){t.normalizeHeight(e)})}adjustTableSize(){let e=this.element.clientHeight,t,i=!1;if(this.renderer.verticalFillMode==="fill"){let a=Math.floor(this.table.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));if(this.fixedHeight){t=isNaN(this.table.options.minHeight)?this.table.options.minHeight:this.table.options.minHeight+"px";const n="calc(100% - "+a+"px)";this.element.style.minHeight=t||"calc(100% - "+a+"px)",this.element.style.height=n,this.element.style.maxHeight=n}else this.element.style.height="",this.element.style.height=this.table.element.clientHeight-a+"px",this.element.scrollTop=this.scrollTop;this.renderer.resize(),!this.fixedHeight&&e!=this.element.clientHeight&&(i=!0,this.subscribed("table-resize")?this.dispatch("table-resize"):this.redraw()),this.scrollBarCheck()}return this._positionPlaceholder(),i}reinitialize(){this.rows.forEach(function(e){e.reinitialize(!0)})}blockRedraw(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1}restoreRedraw(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.handler,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRenderInPosition&&this.reRenderInPosition(),this.redrawBlockRenderInPosition=!1}redraw(e){this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():(this.reRenderInPosition(),this.scrollHorizontal(this.scrollLeft))}resetScroll(){if(this.element.scrollLeft=0,this.element.scrollTop=0,this.table.browser==="ie"){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))}}class tT extends te{constructor(e){super(e),this.active=!1,this.element=this.createElement(),this.containerElement=this.createContainerElement(),this.external=!1}initialize(){this.initializeElement()}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer"),e}createContainerElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer-contents"),this.element.appendChild(e),e}initializeElement(){if(this.table.options.footerElement)switch(typeof this.table.options.footerElement){case"string":this.table.options.footerElement[0]==="<"?this.containerElement.innerHTML=this.table.options.footerElement:(this.external=!0,this.containerElement=document.querySelector(this.table.options.footerElement));break;default:this.element=this.table.options.footerElement;break}}getElement(){return this.element}append(e){this.activate(),this.containerElement.appendChild(e),this.table.rowManager.adjustTableSize()}prepend(e){this.activate(),this.element.insertBefore(e,this.element.firstChild),this.table.rowManager.adjustTableSize()}remove(e){e.parentNode.removeChild(e),this.deactivate()}deactivate(e){(!this.element.firstChild||e)&&(this.external||this.element.parentNode.removeChild(this.element),this.active=!1)}activate(){this.active||(this.active=!0,this.external||(this.table.element.appendChild(this.getElement()),this.table.element.style.display=""))}redraw(){this.dispatch("footer-redraw")}}class iT extends te{constructor(e){super(e),this.el=null,this.abortClasses=["tabulator-headers","tabulator-table"],this.previousTargets={},this.listeners=["click","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","mouseup","mousedown","touchstart","touchend"],this.componentMap={"tabulator-cell":"cell","tabulator-row":"row","tabulator-group":"group","tabulator-col":"column"},this.pseudoTrackers={row:{subscriber:null,target:null},cell:{subscriber:null,target:null},group:{subscriber:null,target:null},column:{subscriber:null,target:null}},this.pseudoTracking=!1}initialize(){this.el=this.table.element,this.buildListenerMap(),this.bindSubscriptionWatchers()}buildListenerMap(){var e={};this.listeners.forEach(t=>{e[t]={handler:null,components:[]}}),this.listeners=e}bindPseudoEvents(){Object.keys(this.pseudoTrackers).forEach(e=>{this.pseudoTrackers[e].subscriber=this.pseudoMouseEnter.bind(this,e),this.subscribe(e+"-mouseover",this.pseudoTrackers[e].subscriber)}),this.pseudoTracking=!0}pseudoMouseEnter(e,t,i){this.pseudoTrackers[e].target!==i&&(this.pseudoTrackers[e].target&&this.dispatch(e+"-mouseleave",t,this.pseudoTrackers[e].target),this.pseudoMouseLeave(e,t),this.pseudoTrackers[e].target=i,this.dispatch(e+"-mouseenter",t,i))}pseudoMouseLeave(e,t){var i=Object.keys(this.pseudoTrackers),a={row:["cell"],cell:["row"]};i=i.filter(n=>{var r=a[e];return n!==e&&(!r||r&&!r.includes(n))}),i.forEach(n=>{var r=this.pseudoTrackers[n].target;this.pseudoTrackers[n].target&&(this.dispatch(n+"-mouseleave",t,r),this.pseudoTrackers[n].target=null)})}bindSubscriptionWatchers(){var e=Object.keys(this.listeners),t=Object.values(this.componentMap);for(let i of t)for(let a of e){let n=i+"-"+a;this.subscriptionChange(n,this.subscriptionChanged.bind(this,i,a))}this.subscribe("table-destroy",this.clearWatchers.bind(this))}subscriptionChanged(e,t,i){var a=this.listeners[t].components,n=a.indexOf(e),r=!1;i?n===-1&&(a.push(e),r=!0):this.subscribed(e+"-"+t)||n>-1&&(a.splice(n,1),r=!0),(t==="mouseenter"||t==="mouseleave")&&!this.pseudoTracking&&this.bindPseudoEvents(),r&&this.updateEventListeners()}updateEventListeners(){for(let e in this.listeners){let t=this.listeners[e];t.components.length?t.handler||(t.handler=this.track.bind(this,e),this.el.addEventListener(e,t.handler)):t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}track(e,t){var i=t.composedPath&&t.composedPath()||t.path,a=this.findTargets(i);a=this.bindComponents(e,a),this.triggerEvents(e,t,a),this.pseudoTracking&&(e=="mouseover"||e=="mouseleave")&&!Object.keys(a).length&&this.pseudoMouseLeave("none",t)}findTargets(e){var t={};let i=Object.keys(this.componentMap);for(let a of e){let n=a.classList?[...a.classList]:[];if(n.filter(h=>this.abortClasses.includes(h)).length)break;let l=n.filter(h=>i.includes(h));for(let h of l)t[this.componentMap[h]]||(t[this.componentMap[h]]=a)}return t.group&&t.group===t.row&&delete t.row,t}bindComponents(e,t){var i=Object.keys(t).reverse(),a=this.listeners[e],n={},r={},l={};for(let h of i){let d,u=t[h],p=this.previousTargets[h];if(p&&p.target===u)d=p.component;else switch(h){case"row":case"group":(a.components.includes("row")||a.components.includes("cell")||a.components.includes("group"))&&(d=this.table.rowManager.getVisibleRows(!0).find(f=>f.getElement()===u),t.row&&t.row.parentNode&&t.row.parentNode.closest(".tabulator-row")&&(t[h]=!1));break;case"column":a.components.includes("column")&&(d=this.table.columnManager.findColumn(u));break;case"cell":a.components.includes("cell")&&(n.row instanceof ae?d=n.row.findCell(u):t.row&&console.warn("Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"));break}d&&(n[h]=d,l[h]={target:u,component:d})}return this.previousTargets=l,Object.keys(t).forEach(h=>{let d=n[h];r[h]=d}),r}triggerEvents(e,t,i){var a=this.listeners[e];for(let n in i)i[n]&&a.components.includes(n)&&this.dispatch(n+"-"+e,t,i[n])}clearWatchers(){for(let e in this.listeners){let t=this.listeners[e];t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}}class aT{constructor(e){this.table=e,this.bindings={}}bind(e,t,i){this.bindings[e]||(this.bindings[e]={}),this.bindings[e][t]?console.warn("Unable to bind component handler, a matching function name is already bound",e,t,i):this.bindings[e][t]=i}handle(e,t,i){if(this.bindings[e]&&this.bindings[e][i]&&typeof this.bindings[e][i].bind=="function")return this.bindings[e][i].bind(null,t);i!=="then"&&typeof i=="string"&&!i.startsWith("_")&&this.table.options.debugInvalidComponentFuncs&&console.error("The "+e+" component does not have a "+i+" function, have you checked that you have the correct Tabulator module installed?")}}class oT extends te{constructor(e){super(e),this.requestOrder=0,this.loading=!1}initialize(){}load(e,t,i,a,n,r){var l=++this.requestOrder;if(this.table.destroyed)return Promise.resolve();if(this.dispatchExternal("dataLoading",e),e&&(e.indexOf("{")==0||e.indexOf("[")==0)&&(e=JSON.parse(e)),this.confirm("data-loading",[e,t,i,n])){this.loading=!0,n||this.alertLoader(),t=this.chain("data-params",[e,i,n],t||{},t||{}),t=this.mapParams(t,this.table.options.dataSendParams);var h=this.chain("data-load",[e,t,i,n],!1,Promise.resolve([]));return h.then(d=>{if(this.table.destroyed)console.warn("Data Load Response Blocked - Table has been destroyed");else{!Array.isArray(d)&&typeof d=="object"&&(d=this.mapParams(d,this.objectInvert(this.table.options.dataReceiveParams)));var u=this.chain("data-loaded",[d],null,d);l==this.requestOrder?(this.clearAlert(),u!==!1&&(this.dispatchExternal("dataLoaded",u),this.table.rowManager.setData(u,a,typeof r>"u"?!a:r))):console.warn("Data Load Response Blocked - An active data load request was blocked by an attempt to change table data while the request was being made")}}).catch(d=>{console.error("Data Load Error: ",d),this.dispatchExternal("dataLoadError",d),n||this.alertError(),setTimeout(()=>{this.clearAlert()},this.table.options.dataLoaderErrorTimeout)}).finally(()=>{this.loading=!1})}else return this.dispatchExternal("dataLoaded",e),e||(e=[]),this.table.rowManager.setData(e,a,typeof r>"u"?!a:r),Promise.resolve()}mapParams(e,t){var i={};for(let a in e)i[t.hasOwnProperty(a)?t[a]:a]=e[a];return i}objectInvert(e){var t={};for(let i in e)t[e[i]]=i;return t}blockActiveLoad(){this.requestOrder++}alertLoader(){var e=typeof this.table.options.dataLoader=="function"?this.table.options.dataLoader():this.table.options.dataLoader;e&&this.table.alertManager.alert(this.table.options.dataLoaderLoading||this.langText("data|loading"))}alertError(){this.table.alertManager.alert(this.table.options.dataLoaderError||this.langText("data|error"),"error")}clearAlert(){this.table.alertManager.clear()}}class nT{constructor(e,t,i){this.table=e,this.events={},this.optionsList=t||{},this.subscriptionNotifiers={},this.dispatch=i?this._debugDispatch.bind(this):this._dispatch.bind(this),this.debug=i}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e])if(t)if(i=this.events[e].findIndex(a=>a===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}else delete this.events[e];else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(a=>{a(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift(),i;return this.events[t]&&this.events[t].forEach((a,n)=>{let r=a.apply(this.table,e);n||(i=r)}),i}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="ExternalEvent:"+e[0],(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}}class sT{constructor(e){this.events={},this.subscriptionNotifiers={},this.dispatch=e?this._debugDispatch.bind(this):this._dispatch.bind(this),this.chain=e?this._debugChain.bind(this):this._chain.bind(this),this.confirm=e?this._debugConfirm.bind(this):this._confirm.bind(this),this.debug=e}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t,i=1e4){this.events[e]||(this.events[e]=[]),this.events[e].push({callback:t,priority:i}),this.events[e].sort((a,n)=>a.priority-n.priority),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e]){if(t)if(i=this.events[e].findIndex(a=>a.callback===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}}else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_chain(e,t,i,a){var n=i;return Array.isArray(t)||(t=[t]),this.subscribed(e)?(this.events[e].forEach((r,l)=>{n=r.callback.apply(this,t.concat([n]))}),n):typeof a=="function"?a():a}_confirm(e,t){var i=!1;return Array.isArray(t)||(t=[t]),this.subscribed(e)&&this.events[e].forEach((a,n)=>{a.callback.apply(this,t)&&(i=!0)}),i}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(a=>{a(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift();this.events[t]&&this.events[t].forEach(i=>{i.callback.apply(this,e)})}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}_debugChain(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._chain(...arguments)}_debugConfirm(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._confirm(...arguments)}}class rT extends te{constructor(e){super(e)}_warnUser(){this.options("debugDeprecation")&&console.warn(...arguments)}check(e,t,i){var a="";return typeof this.options(e)<"u"?(a="Deprecated Setup Option - Use of the %c"+e+"%c option is now deprecated",t?(a=a+", Please use the %c"+t+"%c option instead",this._warnUser(a,"font-weight: bold;","font-weight: normal;","font-weight: bold;","font-weight: normal;"),i&&(this.table.options[t]=this.table.options[e])):this._warnUser(a,"font-weight: bold;","font-weight: normal;"),!1):!0}checkMsg(e,t){return typeof this.options(e)<"u"?(this._warnUser("%cDeprecated Setup Option - Use of the %c"+e+" %c option is now deprecated, "+t,"font-weight: normal;","font-weight: bold;","font-weight: normal;"),!1):!0}msg(e){this._warnUser(e)}}class lT extends te{constructor(e){super(e),this.deps={},this.props={}}initialize(){this.deps=Object.assign({},this.options("dependencies"))}lookup(e,t,i){if(Array.isArray(e)){for(const n of e){var a=this.lookup(n,t,!0);if(a)break}if(a)return a;this.error(e)}else return t?this.lookupProp(e,t,i):this.lookupKey(e,i)}lookupProp(e,t,i){var a;if(this.props[e]&&this.props[e][t])return this.props[e][t];if(a=this.lookupKey(e,i),a)return this.props[e]||(this.props[e]={}),this.props[e][t]=a[t]||a,this.props[e][t]}lookupKey(e,t){var i;return this.deps[e]?i=this.deps[e]:window[e]?(this.deps[e]=window[e],i=this.deps[e]):t||this.error(e),i}error(e){console.error("Unable to find dependency",e,"Please check documentation and ensure you have imported the required library into your project")}}function hT(o,e){e&&this.table.columnManager.renderer.reinitializeColumnWidths(o),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function sx(o,e){o.forEach(function(t){t.reinitializeWidth()}),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function cT(o,e){var t=0,i=this.table.rowManager.element.clientWidth,a=0,n=!1;o.forEach((r,l)=>{r.widthFixed||r.reinitializeWidth(),(this.table.options.responsiveLayout?r.modules.responsive.visible:r.visible)&&(n=r),r.visible&&(t+=r.getWidth())}),n?(a=i-t+n.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&(n.setWidth(0),this.table.modules.responsiveLayout.update()),a>0?n.setWidth(a):n.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function dT(o,e){var t=this.table.rowManager.element.getBoundingClientRect().width,i=0,a=0,n=0,r=0,l=[],h=[],d=0,u=0,p=0;function y(g){var k;return typeof g=="string"?g.indexOf("%")>-1?k=t/100*parseInt(g):k=parseInt(g):k=g,k}function f(g,k,b,m){var M=[],v=0,C=0,I=0,L=n,S=0,T=0,R=[];function O(P){return b*(P.column.definition.widthGrow||1)}function X(P){return y(P.width)-b*(P.column.definition.widthShrink||0)}return g.forEach(function(P,le){var be=m?X(P):O(P);P.column.minWidth>=be?M.push(P):P.column.maxWidth&&P.column.maxWidth<be?(P.width=P.column.maxWidth,k-=P.column.maxWidth,L-=m?P.column.definition.widthShrink||1:P.column.definition.widthGrow||1,L&&(b=Math.floor(k/L))):(R.push(P),T+=m?P.column.definition.widthShrink||1:P.column.definition.widthGrow||1)}),M.length?(M.forEach(function(P){v+=m?P.width-P.column.minWidth:P.column.minWidth,P.width=P.column.minWidth}),C=k-v,I=T?Math.floor(C/T):C,S=f(R,C,I,m)):(S=T?k-Math.floor(k/T)*T:k,R.forEach(function(P){P.width=m?X(P):O(P)})),S}this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(t-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),o.forEach(function(g){var k,b,m;g.visible&&(k=g.definition.width,b=parseInt(g.minWidth),k?(m=y(k),i+=m>b?m:b,g.definition.widthShrink&&(h.push({column:g,width:m>b?m:b}),d+=g.definition.widthShrink)):(l.push({column:g,width:0}),n+=g.definition.widthGrow||1))}),a=t-i,r=Math.floor(a/n),p=f(l,a,r,!1),l.length&&p>0&&(l[l.length-1].width+=p),l.forEach(function(g){a-=g.width}),u=Math.abs(p)+a,u>0&&d&&(p=f(h,u,Math.floor(u/d),!0)),p&&h.length&&(h[h.length-1].width-=p),l.forEach(function(g){g.column.setWidth(g.width)}),h.forEach(function(g){g.column.setWidth(g.width)})}var uT={fitData:hT,fitDataFill:sx,fitDataTable:sx,fitDataStretch:cT,fitColumns:dT};const dn=class dn extends q{constructor(e){super(e,"layout"),this.mode=null,this.registerTableOption("layout","fitData"),this.registerTableOption("layoutColumnsOnNewData",!1),this.registerColumnOption("widthGrow"),this.registerColumnOption("widthShrink")}initialize(){var e=this.table.options.layout;dn.modes[e]?this.mode=e:(console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : "+e),this.mode="fitData"),this.table.element.setAttribute("tabulator-layout",this.mode),this.subscribe("column-init",this.initializeColumn.bind(this))}initializeColumn(e){e.definition.widthGrow&&(e.definition.widthGrow=Number(e.definition.widthGrow)),e.definition.widthShrink&&(e.definition.widthShrink=Number(e.definition.widthShrink))}getMode(){return this.mode}layout(e){var t=this.table.columnManager.columnsByIndex.find(i=>i.definition.variableHeight||i.definition.formatter==="textarea");this.dispatch("layout-refreshing"),dn.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,e),t&&this.table.rowManager.normalizeHeight(!0),this.dispatch("layout-refreshed")}};E(dn,"moduleName","layout"),E(dn,"modes",uT);let A9=dn;var pT={default:{groups:{item:"item",items:"items"},columns:{},data:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},headerFilters:{default:"filter column...",columns:{}}}};const In=class In extends q{constructor(e){super(e),this.locale="default",this.lang=!1,this.bindings={},this.langList={},this.registerTableOption("locale",!1),this.registerTableOption("langs",{})}initialize(){this.langList=$.deepClone(In.langs),this.table.options.columnDefaults.headerFilterPlaceholder!==!1&&this.setHeaderFilterPlaceholder(this.table.options.columnDefaults.headerFilterPlaceholder);for(let e in this.table.options.langs)this.installLang(e,this.table.options.langs[e]);this.setLocale(this.table.options.locale),this.registerTableFunction("setLocale",this.setLocale.bind(this)),this.registerTableFunction("getLocale",this.getLocale.bind(this)),this.registerTableFunction("getLang",this.getLang.bind(this))}setHeaderFilterPlaceholder(e){this.langList.default.headerFilters.default=e}installLang(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t}_setLangProp(e,t){for(let i in t)e[i]&&typeof e[i]=="object"?this._setLangProp(e[i],t[i]):e[i]=t[i]}setLocale(e){e=e||"default";function t(i,a){for(var n in i)typeof i[n]=="object"?(a[n]||(a[n]={}),t(i[n],a[n])):a[n]=i[n]}if(e===!0&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!this.langList[e]){let i=e.split("-")[0];this.langList[i]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,i),e=i):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}this.locale=e,this.lang=$.deepClone(this.langList.default||{}),e!="default"&&t(this.langList[e],this.lang),this.dispatchExternal("localized",this.locale,this.lang),this._executeBindings()}getLocale(e){return this.locale}getLang(e){return e?this.langList[e]:this.lang}getText(e,t){var i=t?e+"|"+t:e,a=i.split("|"),n=this._getLangElement(a,this.locale);return n||""}_getLangElement(e,t){var i=this.lang;return e.forEach(function(a){var n;i&&(n=i[a],typeof n<"u"?i=n:i=!1)}),i}bind(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)}_executeBindings(){for(let e in this.bindings)this.bindings[e].forEach(t=>{t(this.getText(e),this.lang)})}};E(In,"moduleName","localize"),E(In,"langs",pT);let V9=In;class rx extends q{constructor(e){super(e)}initialize(){this.registerTableFunction("tableComms",this.receive.bind(this))}getConnections(e){var t=[],i;return i=this.table.constructor.registry.lookupTable(e),i.forEach(a=>{this.table!==a&&t.push(a)}),t}send(e,t,i,a){var n=this.getConnections(e);n.forEach(r=>{r.tableComms(this.table.element,t,i,a)}),!n.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)}receive(e,t,i,a){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,i,a);console.warn("Inter-table Comms Error - no such module:",t)}}E(rx,"moduleName","comms");var yT=Object.freeze({__proto__:null,CommsModule:rx,LayoutModule:A9,LocalizeModule:V9});const ke=class ke{static findTable(e){var t=ke.registry.lookupTable(e,!0);return Array.isArray(t)&&!t.length?!1:t}};E(ke,"registry",{tables:[],register(e){ke.registry.tables.push(e)},deregister(e){var t=ke.registry.tables.indexOf(e);t>-1&&ke.registry.tables.splice(t,1)},lookupTable(e,t){var i=[],a,n;if(typeof e=="string"){if(a=document.querySelectorAll(e),a.length)for(var r=0;r<a.length;r++)n=ke.registry.matchElement(a[r]),n&&i.push(n)}else typeof HTMLElement<"u"&&e instanceof HTMLElement||e instanceof ke?(n=ke.registry.matchElement(e),n&&i.push(n)):Array.isArray(e)?e.forEach(function(l){i=i.concat(ke.registry.lookupTable(l))}):t||console.warn("Table Connection Error - Invalid Selector",e);return i},matchElement(e){return ke.registry.tables.find(function(t){return e instanceof ke?t===e:t.element===e})}});let P9=ke;const U=class U extends P9{constructor(){super()}static initializeModuleBinder(e){U.modulesRegistered||(U.modulesRegistered=!0,U._registerModules(yT,!0),e&&U._registerModules(e))}static _extendModule(e,t,i){if(U.moduleBindings[e]){var a=U.moduleBindings[e][t];if(a)if(typeof i=="object")for(let n in i)a[n]=i[n];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)}static _registerModules(e,t){var i=Object.values(e);t&&i.forEach(a=>{a.prototype.moduleCore=!0}),U._registerModule(i)}static _registerModule(e){Array.isArray(e)||(e=[e]),e.forEach(t=>{U._registerModuleBinding(t),U._registerModuleExtensions(t)})}static _registerModuleBinding(e){e.moduleName?U.moduleBindings[e.moduleName]=e:console.error("Unable to bind module, no moduleName defined",e.moduleName)}static _registerModuleExtensions(e){var t=e.moduleExtensions;if(e.moduleExtensions)for(let i in t){let a=t[i];if(U.moduleBindings[i])for(let n in a)U._extendModule(i,n,a[n]);else{U.moduleExtensions[i]||(U.moduleExtensions[i]={});for(let n in a)U.moduleExtensions[i][n]||(U.moduleExtensions[i][n]={}),Object.assign(U.moduleExtensions[i][n],a[n])}}U._extendModuleFromQueue(e)}static _extendModuleFromQueue(e){var t=U.moduleExtensions[e.moduleName];if(t)for(let i in t)U._extendModule(e.moduleName,i,t[i])}_bindModules(){var e=[],t=[],i=[];this.modules={};for(var a in U.moduleBindings){let n=U.moduleBindings[a],r=new n(this);this.modules[a]=r,n.prototype.moduleCore?this.modulesCore.push(r):n.moduleInitOrder?n.moduleInitOrder<0?e.push(r):t.push(r):i.push(r)}e.sort((n,r)=>n.moduleInitOrder>r.moduleInitOrder?1:-1),t.sort((n,r)=>n.moduleInitOrder>r.moduleInitOrder?1:-1),this.modulesRegular=e.concat(i.concat(t))}};E(U,"moduleBindings",{}),E(U,"moduleExtensions",{}),E(U,"modulesRegistered",!1),E(U,"defaultModules",!1);let q9=U;class fT extends te{constructor(e){super(e),this.element=this._createAlertElement(),this.msgElement=this._createMsgElement(),this.type=null,this.element.appendChild(this.msgElement)}_createAlertElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert"),e}_createMsgElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert-msg"),e.setAttribute("role","alert"),e}_typeClass(){return"tabulator-alert-state-"+this.type}alert(e,t="msg"){if(e){for(this.clear(),this.dispatch("alert-show",t),this.type=t;this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.add(this._typeClass()),typeof e=="function"&&(e=e()),e instanceof HTMLElement?this.msgElement.appendChild(e):this.msgElement.innerHTML=e,this.table.element.appendChild(this.element)}}clear(){this.dispatch("alert-hide",this.type),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.msgElement.classList.remove(this._typeClass())}}const Oe=class Oe extends q9{static extendModule(){Oe.initializeModuleBinder(),Oe._extendModule(...arguments)}static registerModule(){Oe.initializeModuleBinder(),Oe._registerModule(...arguments)}constructor(e,t,i){super(),Oe.initializeModuleBinder(i),this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=null,this.alertManager=null,this.vdomHoz=null,this.externalEvents=null,this.eventBus=null,this.interactionMonitor=!1,this.browser="",this.browserSlow=!1,this.browserMobile=!1,this.rtl=!1,this.originalElement=null,this.componentFunctionBinder=new aT(this),this.dataLoader=!1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdvisor=new rT(this),this.optionsList=new nx(this,"table constructor"),this.dependencyRegistry=new lT(this),this.initialized=!1,this.destroyed=!1,this.initializeElement(e)&&(this.initializeCoreSystems(t),setTimeout(()=>{this._create()})),this.constructor.registry.register(this)}initializeElement(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement?(this.element=e,!0):typeof e=="string"?(this.element=document.querySelector(e),this.element?!0:(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)}initializeCoreSystems(e){this.columnManager=new KI(this),this.rowManager=new eT(this),this.footerManager=new tT(this),this.dataLoader=new oT(this),this.alertManager=new fT(this),this._bindModules(),this.options=this.optionsList.generate(Oe.defaultOptions,e),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEvents=new nT(this,this.options,this.options.debugEventsExternal),this.eventBus=new sT(this.options.debugEventsInternal),this.interactionMonitor=new iT(this),this.dataLoader.initialize(),this.footerManager.initialize(),this.dependencyRegistry.initialize()}_mapDeprecatedFunctionality(){}_clearSelection(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")}_create(){this.externalEvents.dispatch("tableBuilding"),this.eventBus.dispatch("table-building"),this._rtlCheck(),this._buildElement(),this._initializeTable(),this.initialized=!0,this._loadInitialData().finally(()=>{this.eventBus.dispatch("table-initialized"),this.externalEvents.dispatch("tableBuilt")})}_rtlCheck(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if(e.direction!=="rtl")break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}}_clearObjectPointers(){this.options.columns=this.options.columns.slice(0),Array.isArray(this.options.data)&&!this.options.reactiveData&&(this.options.data=this.options.data.slice(0))}_buildElement(){var e=this.element,t=this.options,i;if(e.tagName==="TABLE"){this.originalElement=this.element,i=document.createElement("div");var a=e.attributes;for(var n in a)typeof a[n]=="object"&&i.setAttribute(a[n].name,a[n].value);e.parentNode.replaceChild(i,e),this.element=e=i}for(e.classList.add("tabulator"),e.setAttribute("role","grid");e.firstChild;)e.removeChild(e.firstChild);t.height&&(t.height=isNaN(t.height)?t.height:t.height+"px",e.style.height=t.height),t.minHeight!==!1&&(t.minHeight=isNaN(t.minHeight)?t.minHeight:t.minHeight+"px",e.style.minHeight=t.minHeight),t.maxHeight!==!1&&(t.maxHeight=isNaN(t.maxHeight)?t.maxHeight:t.maxHeight+"px",e.style.maxHeight=t.maxHeight)}_initializeTable(){var e=this.element,t=this.options;this.interactionMonitor.initialize(),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modulesCore.forEach(i=>{i.initialize()}),e.appendChild(this.columnManager.getElement()),e.appendChild(this.rowManager.getElement()),t.footerElement&&this.footerManager.activate(),t.autoColumns&&t.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modulesRegular.forEach(i=>{i.initialize()}),this.columnManager.setColumns(t.columns),this.eventBus.dispatch("table-built")}_loadInitialData(){return this.dataLoader.load(this.options.data).finally(()=>{this.columnManager.verticalAlignHeaders()})}destroy(){var e=this.element;for(this.destroyed=!0,this.constructor.registry.deregister(this),this.eventBus.dispatch("table-destroy"),this.rowManager.destroy();e.firstChild;)e.removeChild(e.firstChild);e.classList.remove("tabulator"),this.externalEvents.dispatch("tableDestroyed")}_detectBrowser(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):e.indexOf("Mac OS")>-1?(this.browser="safari",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.slice(0,4))}initGuard(e,t){var i,a;return this.options.debugInitialization&&!this.initialized&&(e||(i=new Error().stack.split(`
24
24
  `),a=i[0]=="Error"?i[2]:i[1],a[0]==" "?e=a.trim().split(" ")[1].split(".")[1]:e=a.trim().split("@")[0]),console.warn("Table Not Initialized - Calling the "+e+" function before the table is initialized may result in inconsistent behavior, Please wait for the `tableBuilt` event before calling this function."+(t?" "+t:""))),this.initialized}blockRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-blocking"),this.rowManager.blockRedraw(),this.columnManager.blockRedraw(),this.eventBus.dispatch("redraw-blocked")}restoreRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-restoring"),this.rowManager.restoreRedraw(),this.columnManager.restoreRedraw(),this.eventBus.dispatch("redraw-restored")}setData(e,t,i){return this.initGuard(!1,"To set initial data please use the 'data' property in the table constructor."),this.dataLoader.load(e,t,i,!1)}clearData(){this.initGuard(),this.dataLoader.blockActiveLoad(),this.rowManager.clearData()}getData(e){return this.rowManager.getData(e)}getDataCount(e){return this.rowManager.getDataCount(e)}replaceData(e,t,i){return this.initGuard(),this.dataLoader.load(e,t,i,!0,!0)}updateData(e){var t=0;return this.initGuard(),new Promise((i,a)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(n=>{var r=this.rowManager.findRow(n[this.options.index]);r?(t++,r.updateData(n).then(()=>{t--,t||i()}).catch(l=>{a("Update Error - Unable to update row",n,l)})):a("Update Error - Unable to find row",n)}):(console.warn("Update Error - No data provided"),a("Update Error - No data provided"))})}addData(e,t,i){return this.initGuard(),new Promise((a,n)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e?this.rowManager.addRows(e,t,i).then(r=>{var l=[];r.forEach(function(h){l.push(h.getComponent())}),a(l)}):(console.warn("Update Error - No data provided"),n("Update Error - No data provided"))})}updateOrAddData(e){var t=[],i=0;return this.initGuard(),new Promise((a,n)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(r=>{var l=this.rowManager.findRow(r[this.options.index]);i++,l?l.updateData(r).then(()=>{i--,t.push(l.getComponent()),i||a(t)}):this.rowManager.addRows(r).then(h=>{i--,t.push(h[0].getComponent()),i||a(t)})}):(console.warn("Update Error - No data provided"),n("Update Error - No data provided"))})}getRow(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}getRowFromPosition(e){var t=this.rowManager.getRowFromPosition(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}deleteRow(e){var t=[];this.initGuard(),Array.isArray(e)||(e=[e]);for(let i of e){let a=this.rowManager.findRow(i,!0);if(a)t.push(a);else return console.error("Delete Error - No matching row found:",i),Promise.reject("Delete Error - No matching row found")}return t.sort((i,a)=>this.rowManager.rows.indexOf(i)>this.rowManager.rows.indexOf(a)?1:-1),t.forEach(i=>{i.delete()}),this.rowManager.reRenderInPosition(),Promise.resolve()}addRow(e,t,i){return this.initGuard(),typeof e=="string"&&(e=JSON.parse(e)),this.rowManager.addRows(e,t,i,!0).then(a=>a[0].getComponent())}updateOrAddRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>i.getComponent()):this.rowManager.addRows(t).then(a=>a[0].getComponent())}updateRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>Promise.resolve(i.getComponent())):(console.warn("Update Error - No matching row found:",e),Promise.reject("Update Error - No matching row found"))}scrollToRow(e,t,i){var a=this.rowManager.findRow(e);return a?this.rowManager.scrollToRow(a,t,i):(console.warn("Scroll Error - No matching row found:",e),Promise.reject("Scroll Error - No matching row found"))}moveRow(e,t,i){var a=this.rowManager.findRow(e);this.initGuard(),a?a.moveToRow(t,i):console.warn("Move Error - No matching row found:",e)}getRows(e){return this.rowManager.getComponents(e)}getRowPosition(e){var t=this.rowManager.findRow(e);return t?t.getPosition():(console.warn("Position Error - No matching row found:",e),!1)}setColumns(e){this.initGuard(!1,"To set initial columns please use the 'columns' property in the table constructor"),this.columnManager.setColumns(e)}getColumns(e){return this.columnManager.getComponents(e)}getColumn(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)}getColumnDefinitions(){return this.columnManager.getDefinitionTree()}showColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.show();else return console.warn("Column Show Error - No matching column found:",e),!1}hideColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.hide();else return console.warn("Column Hide Error - No matching column found:",e),!1}toggleColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.visible?t.hide():t.show();else return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1}addColumn(e,t,i){var a=this.columnManager.findColumn(i);return this.initGuard(),this.columnManager.addColumn(e,t,a).then(n=>n.getComponent())}deleteColumn(e){var t=this.columnManager.findColumn(e);return this.initGuard(),t?t.delete():(console.warn("Column Delete Error - No matching column found:",e),Promise.reject())}updateColumnDefinition(e,t){var i=this.columnManager.findColumn(e);return this.initGuard(),i?i.updateDefinition(t):(console.warn("Column Update Error - No matching column found:",e),Promise.reject())}moveColumn(e,t,i){var a=this.columnManager.findColumn(e),n=this.columnManager.findColumn(t);this.initGuard(),a?n?this.columnManager.moveColumn(a,n,i):console.warn("Move Error - No matching column found:",n):console.warn("Move Error - No matching column found:",e)}scrollToColumn(e,t,i){return new Promise((a,n)=>{var r=this.columnManager.findColumn(e);return r?this.columnManager.scrollToColumn(r,t,i):(console.warn("Scroll Error - No matching column found:",e),Promise.reject("Scroll Error - No matching column found"))})}redraw(e){this.initGuard(),this.columnManager.redraw(e),this.rowManager.redraw(e)}setHeight(e){this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.initializeRenderer(),this.rowManager.redraw(!0)}on(e,t){this.externalEvents.subscribe(e,t)}off(e,t){this.externalEvents.unsubscribe(e,t)}dispatchEvent(){var e=Array.from(arguments);e.shift(),this.externalEvents.dispatch(...arguments)}alert(e,t){this.initGuard(),this.alertManager.alert(e,t)}clearAlert(){this.initGuard(),this.alertManager.clear()}modExists(e,t){return this.modules[e]?!0:(t&&console.error("Tabulator Module Not Installed: "+e),!1)}module(e){var t=this.modules[e];return t||console.error("Tabulator module not installed: "+e),t}};E(Oe,"defaultOptions",YI);let B9=Oe;var pn=B9;class mT extends pn{static extendModule(){pn.initializeModuleBinder(H9),pn._extendModule(...arguments)}static registerModule(){pn.initializeModuleBinder(H9),pn._registerModule(...arguments)}constructor(e,t,i){super(e,t,H9)}}var gT=mT;/**
25
25
  * @license lucide-vue-next v0.511.0 - ISC
26
26
  *
@@ -101,12 +101,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
101
101
  *
102
102
  * This source code is licensed under the ISC license.
103
103
  * See the LICENSE file in the root directory of this source tree.
104
- */const Gn=s("alarm-clock",[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]]);/**
104
+ */const $n=s("alarm-clock",[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"M6.38 18.7 4 21",key:"17xu3x"}],["path",{d:"M17.64 18.67 20 21",key:"kv2oe2"}]]);/**
105
105
  * @license lucide-vue-next v0.511.0 - ISC
106
106
  *
107
107
  * This source code is licensed under the ISC license.
108
108
  * See the LICENSE file in the root directory of this source tree.
109
- */const $n=s("alarm-smoke",[["path",{d:"M11 21c0-2.5 2-2.5 2-5",key:"1sicvv"}],["path",{d:"M16 21c0-2.5 2-2.5 2-5",key:"1o3eny"}],["path",{d:"m19 8-.8 3a1.25 1.25 0 0 1-1.2 1H7a1.25 1.25 0 0 1-1.2-1L5 8",key:"1bvca4"}],["path",{d:"M21 3a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a1 1 0 0 1 1-1z",key:"x3qr1j"}],["path",{d:"M6 21c0-2.5 2-2.5 2-5",key:"i3w1gp"}]]);/**
109
+ */const Gn=s("alarm-smoke",[["path",{d:"M11 21c0-2.5 2-2.5 2-5",key:"1sicvv"}],["path",{d:"M16 21c0-2.5 2-2.5 2-5",key:"1o3eny"}],["path",{d:"m19 8-.8 3a1.25 1.25 0 0 1-1.2 1H7a1.25 1.25 0 0 1-1.2-1L5 8",key:"1bvca4"}],["path",{d:"M21 3a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a1 1 0 0 1 1-1z",key:"x3qr1j"}],["path",{d:"M6 21c0-2.5 2-2.5 2-5",key:"i3w1gp"}]]);/**
110
110
  * @license lucide-vue-next v0.511.0 - ISC
111
111
  *
112
112
  * This source code is licensed under the ISC license.
@@ -371,12 +371,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
371
371
  *
372
372
  * This source code is licensed under the ISC license.
373
373
  * See the LICENSE file in the root directory of this source tree.
374
- */const Gs=s("arrow-down-0-1",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["rect",{x:"15",y:"4",width:"4",height:"6",ry:"2",key:"1bwicg"}],["path",{d:"M17 20v-6h-2",key:"1qp1so"}],["path",{d:"M15 20h4",key:"1j968p"}]]);/**
374
+ */const $s=s("arrow-down-0-1",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["rect",{x:"15",y:"4",width:"4",height:"6",ry:"2",key:"1bwicg"}],["path",{d:"M17 20v-6h-2",key:"1qp1so"}],["path",{d:"M15 20h4",key:"1j968p"}]]);/**
375
375
  * @license lucide-vue-next v0.511.0 - ISC
376
376
  *
377
377
  * This source code is licensed under the ISC license.
378
378
  * See the LICENSE file in the root directory of this source tree.
379
- */const $s=s("arrow-down-1-0",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M17 10V4h-2",key:"zcsr5x"}],["path",{d:"M15 10h4",key:"id2lce"}],["rect",{x:"15",y:"14",width:"4",height:"6",ry:"2",key:"33xykx"}]]);/**
379
+ */const Gs=s("arrow-down-1-0",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M17 10V4h-2",key:"zcsr5x"}],["path",{d:"M15 10h4",key:"id2lce"}],["rect",{x:"15",y:"14",width:"4",height:"6",ry:"2",key:"33xykx"}]]);/**
380
380
  * @license lucide-vue-next v0.511.0 - ISC
381
381
  *
382
382
  * This source code is licensed under the ISC license.
@@ -681,12 +681,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
681
681
  *
682
682
  * This source code is licensed under the ISC license.
683
683
  * See the LICENSE file in the root directory of this source tree.
684
- */const Gr=s("baggage-claim",[["path",{d:"M22 18H6a2 2 0 0 1-2-2V7a2 2 0 0 0-2-2",key:"4irg2o"}],["path",{d:"M17 14V4a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v10",key:"14fcyx"}],["rect",{width:"13",height:"8",x:"8",y:"6",rx:"1",key:"o6oiis"}],["circle",{cx:"18",cy:"20",r:"2",key:"t9985n"}],["circle",{cx:"9",cy:"20",r:"2",key:"e5v82j"}]]);/**
684
+ */const $r=s("baggage-claim",[["path",{d:"M22 18H6a2 2 0 0 1-2-2V7a2 2 0 0 0-2-2",key:"4irg2o"}],["path",{d:"M17 14V4a2 2 0 0 0-2-2h-1a2 2 0 0 0-2 2v10",key:"14fcyx"}],["rect",{width:"13",height:"8",x:"8",y:"6",rx:"1",key:"o6oiis"}],["circle",{cx:"18",cy:"20",r:"2",key:"t9985n"}],["circle",{cx:"9",cy:"20",r:"2",key:"e5v82j"}]]);/**
685
685
  * @license lucide-vue-next v0.511.0 - ISC
686
686
  *
687
687
  * This source code is licensed under the ISC license.
688
688
  * See the LICENSE file in the root directory of this source tree.
689
- */const $r=s("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/**
689
+ */const Gr=s("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/**
690
690
  * @license lucide-vue-next v0.511.0 - ISC
691
691
  *
692
692
  * This source code is licensed under the ISC license.
@@ -961,12 +961,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
961
961
  *
962
962
  * This source code is licensed under the ISC license.
963
963
  * See the LICENSE file in the root directory of this source tree.
964
- */const Gl=s("book-a",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m8 13 4-7 4 7",key:"4rari8"}],["path",{d:"M9.1 11h5.7",key:"1gkovt"}]]);/**
964
+ */const $l=s("book-a",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"m8 13 4-7 4 7",key:"4rari8"}],["path",{d:"M9.1 11h5.7",key:"1gkovt"}]]);/**
965
965
  * @license lucide-vue-next v0.511.0 - ISC
966
966
  *
967
967
  * This source code is licensed under the ISC license.
968
968
  * See the LICENSE file in the root directory of this source tree.
969
- */const $l=s("book-audio",[["path",{d:"M12 6v7",key:"1f6ttz"}],["path",{d:"M16 8v3",key:"gejaml"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 8v3",key:"1qzp49"}]]);/**
969
+ */const Gl=s("book-audio",[["path",{d:"M12 6v7",key:"1f6ttz"}],["path",{d:"M16 8v3",key:"gejaml"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["path",{d:"M8 8v3",key:"1qzp49"}]]);/**
970
970
  * @license lucide-vue-next v0.511.0 - ISC
971
971
  *
972
972
  * This source code is licensed under the ISC license.
@@ -1241,12 +1241,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
1241
1241
  *
1242
1242
  * This source code is licensed under the ISC license.
1243
1243
  * See the LICENSE file in the root directory of this source tree.
1244
- */const G1=s("bus-front",[["path",{d:"M4 6 2 7",key:"1mqr15"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"m22 7-2-1",key:"1umjhc"}],["rect",{width:"16",height:"16",x:"4",y:"3",rx:"2",key:"1wxw4b"}],["path",{d:"M4 11h16",key:"mpoxn0"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M6 19v2",key:"1loha6"}],["path",{d:"M18 21v-2",key:"sqyl04"}]]);/**
1244
+ */const $1=s("bus-front",[["path",{d:"M4 6 2 7",key:"1mqr15"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"m22 7-2-1",key:"1umjhc"}],["rect",{width:"16",height:"16",x:"4",y:"3",rx:"2",key:"1wxw4b"}],["path",{d:"M4 11h16",key:"mpoxn0"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M6 19v2",key:"1loha6"}],["path",{d:"M18 21v-2",key:"sqyl04"}]]);/**
1245
1245
  * @license lucide-vue-next v0.511.0 - ISC
1246
1246
  *
1247
1247
  * This source code is licensed under the ISC license.
1248
1248
  * See the LICENSE file in the root directory of this source tree.
1249
- */const $1=s("bus",[["path",{d:"M8 6v6",key:"18i7km"}],["path",{d:"M15 6v6",key:"1sg6z9"}],["path",{d:"M2 12h19.6",key:"de5uta"}],["path",{d:"M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3",key:"1wwztk"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}],["path",{d:"M9 18h5",key:"lrx6i"}],["circle",{cx:"16",cy:"18",r:"2",key:"1v4tcr"}]]);/**
1249
+ */const G1=s("bus",[["path",{d:"M8 6v6",key:"18i7km"}],["path",{d:"M15 6v6",key:"1sg6z9"}],["path",{d:"M2 12h19.6",key:"de5uta"}],["path",{d:"M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3",key:"1wwztk"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}],["path",{d:"M9 18h5",key:"lrx6i"}],["circle",{cx:"16",cy:"18",r:"2",key:"1v4tcr"}]]);/**
1250
1250
  * @license lucide-vue-next v0.511.0 - ISC
1251
1251
  *
1252
1252
  * This source code is licensed under the ISC license.
@@ -1556,12 +1556,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
1556
1556
  *
1557
1557
  * This source code is licensed under the ISC license.
1558
1558
  * See the LICENSE file in the root directory of this source tree.
1559
- */const Gh=s("chart-network",[["path",{d:"m13.11 7.664 1.78 2.672",key:"go2gg9"}],["path",{d:"m14.162 12.788-3.324 1.424",key:"11x848"}],["path",{d:"m20 4-6.06 1.515",key:"1wxxh7"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["circle",{cx:"12",cy:"6",r:"2",key:"1jj5th"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}],["circle",{cx:"9",cy:"15",r:"2",key:"lf2ghp"}]]);/**
1559
+ */const $h=s("chart-network",[["path",{d:"m13.11 7.664 1.78 2.672",key:"go2gg9"}],["path",{d:"m14.162 12.788-3.324 1.424",key:"11x848"}],["path",{d:"m20 4-6.06 1.515",key:"1wxxh7"}],["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["circle",{cx:"12",cy:"6",r:"2",key:"1jj5th"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}],["circle",{cx:"9",cy:"15",r:"2",key:"lf2ghp"}]]);/**
1560
1560
  * @license lucide-vue-next v0.511.0 - ISC
1561
1561
  *
1562
1562
  * This source code is licensed under the ISC license.
1563
1563
  * See the LICENSE file in the root directory of this source tree.
1564
- */const $h=s("chart-no-axes-column-decreasing",[["path",{d:"M12 20V10",key:"g8npz5"}],["path",{d:"M18 20v-4",key:"8uic4z"}],["path",{d:"M6 20V4",key:"1w1bmo"}]]);/**
1564
+ */const Gh=s("chart-no-axes-column-decreasing",[["path",{d:"M12 20V10",key:"g8npz5"}],["path",{d:"M18 20v-4",key:"8uic4z"}],["path",{d:"M6 20V4",key:"1w1bmo"}]]);/**
1565
1565
  * @license lucide-vue-next v0.511.0 - ISC
1566
1566
  *
1567
1567
  * This source code is licensed under the ISC license.
@@ -1806,7 +1806,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
1806
1806
  *
1807
1807
  * This source code is licensed under the ISC license.
1808
1808
  * See the LICENSE file in the root directory of this source tree.
1809
- */const Gt=s("circle-divide",[["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}],["line",{x1:"12",x2:"12",y1:"16",y2:"16",key:"aqc6ln"}],["line",{x1:"12",x2:"12",y1:"8",y2:"8",key:"1mkcni"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
1809
+ */const $t=s("circle-divide",[["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}],["line",{x1:"12",x2:"12",y1:"16",y2:"16",key:"aqc6ln"}],["line",{x1:"12",x2:"12",y1:"8",y2:"8",key:"1mkcni"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
1810
1810
  * @license lucide-vue-next v0.511.0 - ISC
1811
1811
  *
1812
1812
  * This source code is licensed under the ISC license.
@@ -1841,7 +1841,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
1841
1841
  *
1842
1842
  * This source code is licensed under the ISC license.
1843
1843
  * See the LICENSE file in the root directory of this source tree.
1844
- */const $t=s("circle-gauge",[["path",{d:"M15.6 2.7a10 10 0 1 0 5.7 5.7",key:"1e0p6d"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M13.4 10.6 19 5",key:"1kr7tw"}]]);/**
1844
+ */const Gt=s("circle-gauge",[["path",{d:"M15.6 2.7a10 10 0 1 0 5.7 5.7",key:"1e0p6d"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M13.4 10.6 19 5",key:"1kr7tw"}]]);/**
1845
1845
  * @license lucide-vue-next v0.511.0 - ISC
1846
1846
  *
1847
1847
  * This source code is licensed under the ISC license.
@@ -2016,12 +2016,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
2016
2016
  *
2017
2017
  * This source code is licensed under the ISC license.
2018
2018
  * See the LICENSE file in the root directory of this source tree.
2019
- */const Gc=s("clock-11",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 9.5 8",key:"l5bg6f"}]]);/**
2019
+ */const $c=s("clock-11",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 9.5 8",key:"l5bg6f"}]]);/**
2020
2020
  * @license lucide-vue-next v0.511.0 - ISC
2021
2021
  *
2022
2022
  * This source code is licensed under the ISC license.
2023
2023
  * See the LICENSE file in the root directory of this source tree.
2024
- */const $c=s("clock-12",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12",key:"1fub01"}]]);/**
2024
+ */const Gc=s("clock-12",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12",key:"1fub01"}]]);/**
2025
2025
  * @license lucide-vue-next v0.511.0 - ISC
2026
2026
  *
2027
2027
  * This source code is licensed under the ISC license.
@@ -2321,12 +2321,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
2321
2321
  *
2322
2322
  * This source code is licensed under the ISC license.
2323
2323
  * See the LICENSE file in the root directory of this source tree.
2324
- */const Gd=s("copy-minus",[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
2324
+ */const $d=s("copy-minus",[["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
2325
2325
  * @license lucide-vue-next v0.511.0 - ISC
2326
2326
  *
2327
2327
  * This source code is licensed under the ISC license.
2328
2328
  * See the LICENSE file in the root directory of this source tree.
2329
- */const $d=s("copy-check",[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
2329
+ */const Gd=s("copy-check",[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
2330
2330
  * @license lucide-vue-next v0.511.0 - ISC
2331
2331
  *
2332
2332
  * This source code is licensed under the ISC license.
@@ -2596,12 +2596,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
2596
2596
  *
2597
2597
  * This source code is licensed under the ISC license.
2598
2598
  * See the LICENSE file in the root directory of this source tree.
2599
- */const G2=s("dna-off",[["path",{d:"M15 2c-1.35 1.5-2.092 3-2.5 4.5L14 8",key:"1bivrr"}],["path",{d:"m17 6-2.891-2.891",key:"xu6p2f"}],["path",{d:"M2 15c3.333-3 6.667-3 10-3",key:"nxix30"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"m20 9 .891.891",key:"3xwk7g"}],["path",{d:"M22 9c-1.5 1.35-3 2.092-4.5 2.5l-1-1",key:"18cutr"}],["path",{d:"M3.109 14.109 4 15",key:"q76aoh"}],["path",{d:"m6.5 12.5 1 1",key:"cs35ky"}],["path",{d:"m7 18 2.891 2.891",key:"1sisit"}],["path",{d:"M9 22c1.35-1.5 2.092-3 2.5-4.5L10 16",key:"rlvei3"}]]);/**
2599
+ */const $2=s("dna-off",[["path",{d:"M15 2c-1.35 1.5-2.092 3-2.5 4.5L14 8",key:"1bivrr"}],["path",{d:"m17 6-2.891-2.891",key:"xu6p2f"}],["path",{d:"M2 15c3.333-3 6.667-3 10-3",key:"nxix30"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"m20 9 .891.891",key:"3xwk7g"}],["path",{d:"M22 9c-1.5 1.35-3 2.092-4.5 2.5l-1-1",key:"18cutr"}],["path",{d:"M3.109 14.109 4 15",key:"q76aoh"}],["path",{d:"m6.5 12.5 1 1",key:"cs35ky"}],["path",{d:"m7 18 2.891 2.891",key:"1sisit"}],["path",{d:"M9 22c1.35-1.5 2.092-3 2.5-4.5L10 16",key:"rlvei3"}]]);/**
2600
2600
  * @license lucide-vue-next v0.511.0 - ISC
2601
2601
  *
2602
2602
  * This source code is licensed under the ISC license.
2603
2603
  * See the LICENSE file in the root directory of this source tree.
2604
- */const $2=s("dock",[["path",{d:"M2 8h20",key:"d11cs7"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M6 16h12",key:"u522kt"}]]);/**
2604
+ */const G2=s("dock",[["path",{d:"M2 8h20",key:"d11cs7"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M6 16h12",key:"u522kt"}]]);/**
2605
2605
  * @license lucide-vue-next v0.511.0 - ISC
2606
2606
  *
2607
2607
  * This source code is licensed under the ISC license.
@@ -2906,12 +2906,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
2906
2906
  *
2907
2907
  * This source code is licensed under the ISC license.
2908
2908
  * See the LICENSE file in the root directory of this source tree.
2909
- */const G0=s("file-clock",[["path",{d:"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"37hlfg"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);/**
2909
+ */const $0=s("file-clock",[["path",{d:"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"37hlfg"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);/**
2910
2910
  * @license lucide-vue-next v0.511.0 - ISC
2911
2911
  *
2912
2912
  * This source code is licensed under the ISC license.
2913
2913
  * See the LICENSE file in the root directory of this source tree.
2914
- */const $0=s("file-code-2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]);/**
2914
+ */const G0=s("file-code-2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]);/**
2915
2915
  * @license lucide-vue-next v0.511.0 - ISC
2916
2916
  *
2917
2917
  * This source code is licensed under the ISC license.
@@ -3191,12 +3191,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
3191
3191
  *
3192
3192
  * This source code is licensed under the ISC license.
3193
3193
  * See the LICENSE file in the root directory of this source tree.
3194
- */const Gu=s("flame-kindling",[["path",{d:"M12 2c1 3 2.5 3.5 3.5 4.5A5 5 0 0 1 17 10a5 5 0 1 1-10 0c0-.3 0-.6.1-.9a2 2 0 1 0 3.3-2C8 4.5 11 2 12 2Z",key:"1ir223"}],["path",{d:"m5 22 14-4",key:"1brv4h"}],["path",{d:"m5 18 14 4",key:"lgyyje"}]]);/**
3194
+ */const $u=s("flame-kindling",[["path",{d:"M12 2c1 3 2.5 3.5 3.5 4.5A5 5 0 0 1 17 10a5 5 0 1 1-10 0c0-.3 0-.6.1-.9a2 2 0 1 0 3.3-2C8 4.5 11 2 12 2Z",key:"1ir223"}],["path",{d:"m5 22 14-4",key:"1brv4h"}],["path",{d:"m5 18 14 4",key:"lgyyje"}]]);/**
3195
3195
  * @license lucide-vue-next v0.511.0 - ISC
3196
3196
  *
3197
3197
  * This source code is licensed under the ISC license.
3198
3198
  * See the LICENSE file in the root directory of this source tree.
3199
- */const $u=s("flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/**
3199
+ */const Gu=s("flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/**
3200
3200
  * @license lucide-vue-next v0.511.0 - ISC
3201
3201
  *
3202
3202
  * This source code is licensed under the ISC license.
@@ -3481,12 +3481,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
3481
3481
  *
3482
3482
  * This source code is licensed under the ISC license.
3483
3483
  * See the LICENSE file in the root directory of this source tree.
3484
- */const Gp=s("gallery-horizontal-end",[["path",{d:"M2 7v10",key:"a2pl2d"}],["path",{d:"M6 5v14",key:"1kq3d7"}],["rect",{width:"12",height:"18",x:"10",y:"3",rx:"2",key:"13i7bc"}]]);/**
3484
+ */const $p=s("gallery-horizontal-end",[["path",{d:"M2 7v10",key:"a2pl2d"}],["path",{d:"M6 5v14",key:"1kq3d7"}],["rect",{width:"12",height:"18",x:"10",y:"3",rx:"2",key:"13i7bc"}]]);/**
3485
3485
  * @license lucide-vue-next v0.511.0 - ISC
3486
3486
  *
3487
3487
  * This source code is licensed under the ISC license.
3488
3488
  * See the LICENSE file in the root directory of this source tree.
3489
- */const $p=s("gallery-thumbnails",[["rect",{width:"18",height:"14",x:"3",y:"3",rx:"2",key:"74y24f"}],["path",{d:"M4 21h1",key:"16zlid"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M19 21h1",key:"edywat"}]]);/**
3489
+ */const Gp=s("gallery-thumbnails",[["rect",{width:"18",height:"14",x:"3",y:"3",rx:"2",key:"74y24f"}],["path",{d:"M4 21h1",key:"16zlid"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M19 21h1",key:"edywat"}]]);/**
3490
3490
  * @license lucide-vue-next v0.511.0 - ISC
3491
3491
  *
3492
3492
  * This source code is licensed under the ISC license.
@@ -3786,12 +3786,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
3786
3786
  *
3787
3787
  * This source code is licensed under the ISC license.
3788
3788
  * See the LICENSE file in the root directory of this source tree.
3789
- */const Gy=s("hard-hat",[["path",{d:"M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5",key:"1p9q5i"}],["path",{d:"M14 6a6 6 0 0 1 6 6v3",key:"1hnv84"}],["path",{d:"M4 15v-3a6 6 0 0 1 6-6",key:"9ciidu"}],["rect",{x:"2",y:"15",width:"20",height:"4",rx:"1",key:"g3x8cw"}]]);/**
3789
+ */const $y=s("hard-hat",[["path",{d:"M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5",key:"1p9q5i"}],["path",{d:"M14 6a6 6 0 0 1 6 6v3",key:"1hnv84"}],["path",{d:"M4 15v-3a6 6 0 0 1 6-6",key:"9ciidu"}],["rect",{x:"2",y:"15",width:"20",height:"4",rx:"1",key:"g3x8cw"}]]);/**
3790
3790
  * @license lucide-vue-next v0.511.0 - ISC
3791
3791
  *
3792
3792
  * This source code is licensed under the ISC license.
3793
3793
  * See the LICENSE file in the root directory of this source tree.
3794
- */const $y=s("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
3794
+ */const Gy=s("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
3795
3795
  * @license lucide-vue-next v0.511.0 - ISC
3796
3796
  *
3797
3797
  * This source code is licensed under the ISC license.
@@ -4076,12 +4076,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
4076
4076
  *
4077
4077
  * This source code is licensed under the ISC license.
4078
4078
  * See the LICENSE file in the root directory of this source tree.
4079
- */const Gf=s("japanese-yen",[["path",{d:"M12 9.5V21m0-11.5L6 3m6 6.5L18 3",key:"2ej80x"}],["path",{d:"M6 15h12",key:"1hwgt5"}],["path",{d:"M6 11h12",key:"wf4gp6"}]]);/**
4079
+ */const $f=s("japanese-yen",[["path",{d:"M12 9.5V21m0-11.5L6 3m6 6.5L18 3",key:"2ej80x"}],["path",{d:"M6 15h12",key:"1hwgt5"}],["path",{d:"M6 11h12",key:"wf4gp6"}]]);/**
4080
4080
  * @license lucide-vue-next v0.511.0 - ISC
4081
4081
  *
4082
4082
  * This source code is licensed under the ISC license.
4083
4083
  * See the LICENSE file in the root directory of this source tree.
4084
- */const $f=s("joystick",[["path",{d:"M21 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2Z",key:"jg2n2t"}],["path",{d:"M6 15v-2",key:"gd6mvg"}],["path",{d:"M12 15V9",key:"8c7uyn"}],["circle",{cx:"12",cy:"6",r:"3",key:"1gm2ql"}]]);/**
4084
+ */const Gf=s("joystick",[["path",{d:"M21 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-2Z",key:"jg2n2t"}],["path",{d:"M6 15v-2",key:"gd6mvg"}],["path",{d:"M12 15V9",key:"8c7uyn"}],["circle",{cx:"12",cy:"6",r:"3",key:"1gm2ql"}]]);/**
4085
4085
  * @license lucide-vue-next v0.511.0 - ISC
4086
4086
  *
4087
4087
  * This source code is licensed under the ISC license.
@@ -4356,12 +4356,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
4356
4356
  *
4357
4357
  * This source code is licensed under the ISC license.
4358
4358
  * See the LICENSE file in the root directory of this source tree.
4359
- */const Gm=s("list-restart",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M7 12H3",key:"13ou7f"}],["path",{d:"M7 18H3",key:"1sijw9"}],["path",{d:"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14",key:"qth677"}],["path",{d:"M11 10v4h4",key:"172dkj"}]]);/**
4359
+ */const $m=s("list-restart",[["path",{d:"M21 6H3",key:"1jwq7v"}],["path",{d:"M7 12H3",key:"13ou7f"}],["path",{d:"M7 18H3",key:"1sijw9"}],["path",{d:"M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14",key:"qth677"}],["path",{d:"M11 10v4h4",key:"172dkj"}]]);/**
4360
4360
  * @license lucide-vue-next v0.511.0 - ISC
4361
4361
  *
4362
4362
  * This source code is licensed under the ISC license.
4363
4363
  * See the LICENSE file in the root directory of this source tree.
4364
- */const $m=s("list-start",[["path",{d:"M16 12H3",key:"1a2rj7"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"M10 6H3",key:"lf8lx7"}],["path",{d:"M21 18V8a2 2 0 0 0-2-2h-5",key:"1hghli"}],["path",{d:"m16 8-2-2 2-2",key:"160uvd"}]]);/**
4364
+ */const Gm=s("list-start",[["path",{d:"M16 12H3",key:"1a2rj7"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"M10 6H3",key:"lf8lx7"}],["path",{d:"M21 18V8a2 2 0 0 0-2-2h-5",key:"1hghli"}],["path",{d:"m16 8-2-2 2-2",key:"160uvd"}]]);/**
4365
4365
  * @license lucide-vue-next v0.511.0 - ISC
4366
4366
  *
4367
4367
  * This source code is licensed under the ISC license.
@@ -4426,7 +4426,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
4426
4426
  *
4427
4427
  * This source code is licensed under the ISC license.
4428
4428
  * See the LICENSE file in the root directory of this source tree.
4429
- */const Gi=s("lock-keyhole-open",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}],["path",{d:"M7 10V7a5 5 0 0 1 9.33-2.5",key:"car5b7"}]]);/**
4429
+ */const $i=s("lock-keyhole-open",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}],["path",{d:"M7 10V7a5 5 0 0 1 9.33-2.5",key:"car5b7"}]]);/**
4430
4430
  * @license lucide-vue-next v0.511.0 - ISC
4431
4431
  *
4432
4432
  * This source code is licensed under the ISC license.
@@ -4436,7 +4436,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
4436
4436
  *
4437
4437
  * This source code is licensed under the ISC license.
4438
4438
  * See the LICENSE file in the root directory of this source tree.
4439
- */const $i=s("lock-open",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);/**
4439
+ */const Gi=s("lock-open",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);/**
4440
4440
  * @license lucide-vue-next v0.511.0 - ISC
4441
4441
  *
4442
4442
  * This source code is licensed under the ISC license.
@@ -4641,12 +4641,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
4641
4641
  *
4642
4642
  * This source code is licensed under the ISC license.
4643
4643
  * See the LICENSE file in the root directory of this source tree.
4644
- */const Gg=s("meh",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"8",x2:"16",y1:"15",y2:"15",key:"1xb1d9"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/**
4644
+ */const $g=s("meh",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"8",x2:"16",y1:"15",y2:"15",key:"1xb1d9"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]);/**
4645
4645
  * @license lucide-vue-next v0.511.0 - ISC
4646
4646
  *
4647
4647
  * This source code is licensed under the ISC license.
4648
4648
  * See the LICENSE file in the root directory of this source tree.
4649
- */const $g=s("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]]);/**
4649
+ */const Gg=s("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]]);/**
4650
4650
  * @license lucide-vue-next v0.511.0 - ISC
4651
4651
  *
4652
4652
  * This source code is licensed under the ISC license.
@@ -4916,12 +4916,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
4916
4916
  *
4917
4917
  * This source code is licensed under the ISC license.
4918
4918
  * See the LICENSE file in the root directory of this source tree.
4919
- */const Gk=s("monitor-x",[["path",{d:"m14.5 12.5-5-5",key:"1jahn5"}],["path",{d:"m9.5 12.5 5-5",key:"1k2t7b"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]]);/**
4919
+ */const $k=s("monitor-x",[["path",{d:"m14.5 12.5-5-5",key:"1jahn5"}],["path",{d:"m9.5 12.5 5-5",key:"1k2t7b"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}]]);/**
4920
4920
  * @license lucide-vue-next v0.511.0 - ISC
4921
4921
  *
4922
4922
  * This source code is licensed under the ISC license.
4923
4923
  * See the LICENSE file in the root directory of this source tree.
4924
- */const $k=s("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
4924
+ */const Gk=s("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
4925
4925
  * @license lucide-vue-next v0.511.0 - ISC
4926
4926
  *
4927
4927
  * This source code is licensed under the ISC license.
@@ -5206,12 +5206,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
5206
5206
  *
5207
5207
  * This source code is licensed under the ISC license.
5208
5208
  * See the LICENSE file in the root directory of this source tree.
5209
- */const G3=s("package-open",[["path",{d:"M12 22v-9",key:"x3hkom"}],["path",{d:"M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z",key:"2ntwy6"}],["path",{d:"M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13",key:"1pmm1c"}],["path",{d:"M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z",key:"12ttoo"}]]);/**
5209
+ */const $3=s("package-open",[["path",{d:"M12 22v-9",key:"x3hkom"}],["path",{d:"M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z",key:"2ntwy6"}],["path",{d:"M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13",key:"1pmm1c"}],["path",{d:"M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z",key:"12ttoo"}]]);/**
5210
5210
  * @license lucide-vue-next v0.511.0 - ISC
5211
5211
  *
5212
5212
  * This source code is licensed under the ISC license.
5213
5213
  * See the LICENSE file in the root directory of this source tree.
5214
- */const $3=s("package-plus",[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);/**
5214
+ */const G3=s("package-plus",[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);/**
5215
5215
  * @license lucide-vue-next v0.511.0 - ISC
5216
5216
  *
5217
5217
  * This source code is licensed under the ISC license.
@@ -5531,12 +5531,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
5531
5531
  *
5532
5532
  * This source code is licensed under the ISC license.
5533
5533
  * See the LICENSE file in the root directory of this source tree.
5534
- */const G4=s("pill-bottle",[["path",{d:"M18 11h-4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h4",key:"17ldeb"}],["path",{d:"M6 7v13a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7",key:"nc37y6"}],["rect",{width:"16",height:"5",x:"4",y:"2",rx:"1",key:"3jeezo"}]]);/**
5534
+ */const $4=s("pill-bottle",[["path",{d:"M18 11h-4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h4",key:"17ldeb"}],["path",{d:"M6 7v13a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7",key:"nc37y6"}],["rect",{width:"16",height:"5",x:"4",y:"2",rx:"1",key:"3jeezo"}]]);/**
5535
5535
  * @license lucide-vue-next v0.511.0 - ISC
5536
5536
  *
5537
5537
  * This source code is licensed under the ISC license.
5538
5538
  * See the LICENSE file in the root directory of this source tree.
5539
- */const $4=s("pill",[["path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z",key:"wa1lgi"}],["path",{d:"m8.5 8.5 7 7",key:"rvfmvr"}]]);/**
5539
+ */const G4=s("pill",[["path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z",key:"wa1lgi"}],["path",{d:"m8.5 8.5 7 7",key:"rvfmvr"}]]);/**
5540
5540
  * @license lucide-vue-next v0.511.0 - ISC
5541
5541
  *
5542
5542
  * This source code is licensed under the ISC license.
@@ -5811,12 +5811,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
5811
5811
  *
5812
5812
  * This source code is licensed under the ISC license.
5813
5813
  * See the LICENSE file in the root directory of this source tree.
5814
- */const G5=s("rectangle-horizontal",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]]);/**
5814
+ */const $5=s("rectangle-horizontal",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]]);/**
5815
5815
  * @license lucide-vue-next v0.511.0 - ISC
5816
5816
  *
5817
5817
  * This source code is licensed under the ISC license.
5818
5818
  * See the LICENSE file in the root directory of this source tree.
5819
- */const $5=s("rectangle-vertical",[["rect",{width:"12",height:"20",x:"6",y:"2",rx:"2",key:"1oxtiu"}]]);/**
5819
+ */const G5=s("rectangle-vertical",[["rect",{width:"12",height:"20",x:"6",y:"2",rx:"2",key:"1oxtiu"}]]);/**
5820
5820
  * @license lucide-vue-next v0.511.0 - ISC
5821
5821
  *
5822
5822
  * This source code is licensed under the ISC license.
@@ -6101,12 +6101,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
6101
6101
  *
6102
6102
  * This source code is licensed under the ISC license.
6103
6103
  * See the LICENSE file in the root directory of this source tree.
6104
- */const Gb=s("scan-line",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 12h10",key:"b7w52i"}]]);/**
6104
+ */const $b=s("scan-line",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 12h10",key:"b7w52i"}]]);/**
6105
6105
  * @license lucide-vue-next v0.511.0 - ISC
6106
6106
  *
6107
6107
  * This source code is licensed under the ISC license.
6108
6108
  * See the LICENSE file in the root directory of this source tree.
6109
- */const $b=s("scan-search",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]);/**
6109
+ */const Gb=s("scan-search",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]);/**
6110
6110
  * @license lucide-vue-next v0.511.0 - ISC
6111
6111
  *
6112
6112
  * This source code is licensed under the ISC license.
@@ -6381,12 +6381,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
6381
6381
  *
6382
6382
  * This source code is licensed under the ISC license.
6383
6383
  * See the LICENSE file in the root directory of this source tree.
6384
- */const Gw=s("shrub",[["path",{d:"M12 22v-7l-2-2",key:"eqv9mc"}],["path",{d:"M17 8v.8A6 6 0 0 1 13.8 20H10A6.5 6.5 0 0 1 7 8a5 5 0 0 1 10 0Z",key:"ubcgy"}],["path",{d:"m14 14-2 2",key:"847xa2"}]]);/**
6384
+ */const $w=s("shrub",[["path",{d:"M12 22v-7l-2-2",key:"eqv9mc"}],["path",{d:"M17 8v.8A6 6 0 0 1 13.8 20H10A6.5 6.5 0 0 1 7 8a5 5 0 0 1 10 0Z",key:"ubcgy"}],["path",{d:"m14 14-2 2",key:"847xa2"}]]);/**
6385
6385
  * @license lucide-vue-next v0.511.0 - ISC
6386
6386
  *
6387
6387
  * This source code is licensed under the ISC license.
6388
6388
  * See the LICENSE file in the root directory of this source tree.
6389
- */const $w=s("shuffle",[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]]);/**
6389
+ */const Gw=s("shuffle",[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]]);/**
6390
6390
  * @license lucide-vue-next v0.511.0 - ISC
6391
6391
  *
6392
6392
  * This source code is licensed under the ISC license.
@@ -6746,12 +6746,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
6746
6746
  *
6747
6747
  * This source code is licensed under the ISC license.
6748
6748
  * See the LICENSE file in the root directory of this source tree.
6749
- */const Ga=s("square-dot",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/**
6749
+ */const $a=s("square-dot",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/**
6750
6750
  * @license lucide-vue-next v0.511.0 - ISC
6751
6751
  *
6752
6752
  * This source code is licensed under the ISC license.
6753
6753
  * See the LICENSE file in the root directory of this source tree.
6754
- */const $a=s("square-equal",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}]]);/**
6754
+ */const Ga=s("square-equal",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 10h10",key:"1101jm"}],["path",{d:"M7 14h10",key:"1mhdw3"}]]);/**
6755
6755
  * @license lucide-vue-next v0.511.0 - ISC
6756
6756
  *
6757
6757
  * This source code is licensed under the ISC license.
@@ -6931,12 +6931,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
6931
6931
  *
6932
6932
  * This source code is licensed under the ISC license.
6933
6933
  * See the LICENSE file in the root directory of this source tree.
6934
- */const Gv=s("squirrel",[["path",{d:"M15.236 22a3 3 0 0 0-2.2-5",key:"21bitc"}],["path",{d:"M16 20a3 3 0 0 1 3-3h1a2 2 0 0 0 2-2v-2a4 4 0 0 0-4-4V4",key:"oh0fg0"}],["path",{d:"M18 13h.01",key:"9veqaj"}],["path",{d:"M18 6a4 4 0 0 0-4 4 7 7 0 0 0-7 7c0-5 4-5 4-10.5a4.5 4.5 0 1 0-9 0 2.5 2.5 0 0 0 5 0C7 10 3 11 3 17c0 2.8 2.2 5 5 5h10",key:"980v8a"}]]);/**
6934
+ */const $v=s("squirrel",[["path",{d:"M15.236 22a3 3 0 0 0-2.2-5",key:"21bitc"}],["path",{d:"M16 20a3 3 0 0 1 3-3h1a2 2 0 0 0 2-2v-2a4 4 0 0 0-4-4V4",key:"oh0fg0"}],["path",{d:"M18 13h.01",key:"9veqaj"}],["path",{d:"M18 6a4 4 0 0 0-4 4 7 7 0 0 0-7 7c0-5 4-5 4-10.5a4.5 4.5 0 1 0-9 0 2.5 2.5 0 0 0 5 0C7 10 3 11 3 17c0 2.8 2.2 5 5 5h10",key:"980v8a"}]]);/**
6935
6935
  * @license lucide-vue-next v0.511.0 - ISC
6936
6936
  *
6937
6937
  * This source code is licensed under the ISC license.
6938
6938
  * See the LICENSE file in the root directory of this source tree.
6939
- */const $v=s("stamp",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M19.27 13.73A2.5 2.5 0 0 0 17.5 13h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-1.5c0-.66-.26-1.3-.73-1.77Z",key:"1sy9ra"}],["path",{d:"M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-3-3c-1.66 0-3 1-3 3s1 2 1 3.5V13",key:"cnxgux"}]]);/**
6939
+ */const Gv=s("stamp",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M19.27 13.73A2.5 2.5 0 0 0 17.5 13h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-1.5c0-.66-.26-1.3-.73-1.77Z",key:"1sy9ra"}],["path",{d:"M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-3-3c-1.66 0-3 1-3 3s1 2 1 3.5V13",key:"cnxgux"}]]);/**
6940
6940
  * @license lucide-vue-next v0.511.0 - ISC
6941
6941
  *
6942
6942
  * This source code is licensed under the ISC license.
@@ -7206,12 +7206,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
7206
7206
  *
7207
7207
  * This source code is licensed under the ISC license.
7208
7208
  * See the LICENSE file in the root directory of this source tree.
7209
- */const G6=s("test-tubes",[["path",{d:"M9 2v17.5A2.5 2.5 0 0 1 6.5 22A2.5 2.5 0 0 1 4 19.5V2",key:"1hjrqt"}],["path",{d:"M20 2v17.5a2.5 2.5 0 0 1-2.5 2.5a2.5 2.5 0 0 1-2.5-2.5V2",key:"16lc8n"}],["path",{d:"M3 2h7",key:"7s29d5"}],["path",{d:"M14 2h7",key:"7sicin"}],["path",{d:"M9 16H4",key:"1bfye3"}],["path",{d:"M20 16h-5",key:"ddnjpe"}]]);/**
7209
+ */const $6=s("test-tubes",[["path",{d:"M9 2v17.5A2.5 2.5 0 0 1 6.5 22A2.5 2.5 0 0 1 4 19.5V2",key:"1hjrqt"}],["path",{d:"M20 2v17.5a2.5 2.5 0 0 1-2.5 2.5a2.5 2.5 0 0 1-2.5-2.5V2",key:"16lc8n"}],["path",{d:"M3 2h7",key:"7s29d5"}],["path",{d:"M14 2h7",key:"7sicin"}],["path",{d:"M9 16H4",key:"1bfye3"}],["path",{d:"M20 16h-5",key:"ddnjpe"}]]);/**
7210
7210
  * @license lucide-vue-next v0.511.0 - ISC
7211
7211
  *
7212
7212
  * This source code is licensed under the ISC license.
7213
7213
  * See the LICENSE file in the root directory of this source tree.
7214
- */const $6=s("text-cursor-input",[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]]);/**
7214
+ */const G6=s("text-cursor-input",[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]]);/**
7215
7215
  * @license lucide-vue-next v0.511.0 - ISC
7216
7216
  *
7217
7217
  * This source code is licensed under the ISC license.
@@ -7496,12 +7496,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
7496
7496
  *
7497
7497
  * This source code is licensed under the ISC license.
7498
7498
  * See the LICENSE file in the root directory of this source tree.
7499
- */const G8=s("turtle",[["path",{d:"m12 10 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a8 8 0 1 0-16 0v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3l2-4h4Z",key:"1lbbv7"}],["path",{d:"M4.82 7.9 8 10",key:"m9wose"}],["path",{d:"M15.18 7.9 12 10",key:"p8dp2u"}],["path",{d:"M16.93 10H20a2 2 0 0 1 0 4H2",key:"12nsm7"}]]);/**
7499
+ */const $8=s("turtle",[["path",{d:"m12 10 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a8 8 0 1 0-16 0v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3l2-4h4Z",key:"1lbbv7"}],["path",{d:"M4.82 7.9 8 10",key:"m9wose"}],["path",{d:"M15.18 7.9 12 10",key:"p8dp2u"}],["path",{d:"M16.93 10H20a2 2 0 0 1 0 4H2",key:"12nsm7"}]]);/**
7500
7500
  * @license lucide-vue-next v0.511.0 - ISC
7501
7501
  *
7502
7502
  * This source code is licensed under the ISC license.
7503
7503
  * See the LICENSE file in the root directory of this source tree.
7504
- */const $8=s("tv-minimal-play",[["path",{d:"M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z",key:"1pctta"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}]]);/**
7504
+ */const G8=s("tv-minimal-play",[["path",{d:"M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z",key:"1pctta"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}]]);/**
7505
7505
  * @license lucide-vue-next v0.511.0 - ISC
7506
7506
  *
7507
7507
  * This source code is licensed under the ISC license.
@@ -7821,7 +7821,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
7821
7821
  *
7822
7822
  * This source code is licensed under the ISC license.
7823
7823
  * See the LICENSE file in the root directory of this source tree.
7824
- */const GM=s("wallet-cards",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2",key:"4125el"}],["path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21",key:"1dpki6"}]]);/**
7824
+ */const $M=s("wallet-cards",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2",key:"4125el"}],["path",{d:"M3 11h3c.8 0 1.6.3 2.1.9l1.1.9c1.6 1.6 4.1 1.6 5.7 0l1.1-.9c.5-.5 1.3-.9 2.1-.9H21",key:"1dpki6"}]]);/**
7825
7825
  * @license lucide-vue-next v0.511.0 - ISC
7826
7826
  *
7827
7827
  * This source code is licensed under the ISC license.
@@ -7831,7 +7831,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
7831
7831
  *
7832
7832
  * This source code is licensed under the ISC license.
7833
7833
  * See the LICENSE file in the root directory of this source tree.
7834
- */const $M=s("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/**
7834
+ */const GM=s("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/**
7835
7835
  * @license lucide-vue-next v0.511.0 - ISC
7836
7836
  *
7837
7837
  * This source code is licensed under the ISC license.
@@ -8016,12 +8016,12 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
8016
8016
  *
8017
8017
  * This source code is licensed under the ISC license.
8018
8018
  * See the LICENSE file in the root directory of this source tree.
8019
- */const vT=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Bn,AArrowUp:Fn,ALargeSmall:On,Accessibility:jn,Activity:Nn,AirVent:Wn,Airplay:_n,AlarmClock:Gn,AlarmClockCheck:it,AlarmClockMinus:at,AlarmClockOff:Un,AlarmClockPlus:ot,AlarmSmoke:$n,Album:Yn,AlignCenter:Kn,AlignCenterHorizontal:Zn,AlignCenterVertical:Xn,AlignEndHorizontal:Jn,AlignEndVertical:Qn,AlignHorizontalDistributeCenter:es,AlignHorizontalDistributeEnd:ts,AlignHorizontalDistributeStart:is,AlignHorizontalJustifyCenter:as,AlignHorizontalJustifyEnd:os,AlignHorizontalJustifyStart:ns,AlignHorizontalSpaceAround:ss,AlignHorizontalSpaceBetween:rs,AlignJustify:ls,AlignLeft:hs,AlignRight:ds,AlignStartHorizontal:cs,AlignStartVertical:us,AlignVerticalDistributeCenter:ps,AlignVerticalDistributeEnd:ys,AlignVerticalDistributeStart:fs,AlignVerticalJustifyCenter:ms,AlignVerticalJustifyEnd:gs,AlignVerticalJustifyStart:ks,AlignVerticalSpaceAround:bs,AlignVerticalSpaceBetween:ws,Ambulance:vs,Ampersand:Ms,Ampersands:Cs,Amphora:xs,Anchor:Es,Angry:Ls,Annoyed:Ss,Antenna:Is,Anvil:Ts,Aperture:Ds,AppWindow:Rs,AppWindowMac:zs,Apple:Hs,Archive:Ps,ArchiveRestore:As,ArchiveX:Vs,Armchair:Bs,ArrowBigDown:Fs,ArrowBigDownDash:qs,ArrowBigLeft:js,ArrowBigLeftDash:Os,ArrowBigRight:_s,ArrowBigRightDash:Ns,ArrowBigUp:Us,ArrowBigUpDash:Ws,ArrowDown:tr,ArrowDown01:Gs,ArrowDown10:$s,ArrowDownAZ:nt,ArrowDownFromLine:Ys,ArrowDownLeft:Zs,ArrowDownNarrowWide:Xs,ArrowDownRight:Ks,ArrowDownToDot:Js,ArrowDownToLine:er,ArrowDownUp:Qs,ArrowDownWideNarrow:st,ArrowDownZA:rt,ArrowLeft:nr,ArrowLeftFromLine:ir,ArrowLeftRight:ar,ArrowLeftToLine:or,ArrowRight:hr,ArrowRightFromLine:sr,ArrowRightLeft:rr,ArrowRightToLine:lr,ArrowUp:br,ArrowUp01:cr,ArrowUp10:ur,ArrowUpAZ:lt,ArrowUpDown:dr,ArrowUpFromDot:pr,ArrowUpFromLine:yr,ArrowUpLeft:fr,ArrowUpNarrowWide:ht,ArrowUpRight:mr,ArrowUpToLine:gr,ArrowUpWideNarrow:kr,ArrowUpZA:ct,ArrowsUpFromLine:wr,Asterisk:vr,AtSign:Mr,Atom:Cr,AudioLines:xr,AudioWaveform:Lr,Award:Er,Axe:Sr,Axis3d:dt,Baby:Ir,Backpack:Tr,Badge:Ur,BadgeAlert:Dr,BadgeCent:zr,BadgeCheck:ut,BadgeDollarSign:Rr,BadgeEuro:Hr,BadgeHelp:Ar,BadgeIndianRupee:Vr,BadgeInfo:Pr,BadgeJapaneseYen:qr,BadgeMinus:Br,BadgePercent:Fr,BadgePlus:Or,BadgePoundSterling:jr,BadgeRussianRuble:Nr,BadgeSwissFranc:_r,BadgeX:Wr,BaggageClaim:Gr,Ban:$r,Banana:Yr,Bandage:Zr,Banknote:Qr,BanknoteArrowDown:Xr,BanknoteArrowUp:Kr,BanknoteX:Jr,Barcode:el,Baseline:tl,Bath:il,Battery:hl,BatteryCharging:al,BatteryFull:ol,BatteryLow:nl,BatteryMedium:sl,BatteryPlus:rl,BatteryWarning:ll,Beaker:cl,Bean:ul,BeanOff:dl,Bed:fl,BedDouble:pl,BedSingle:yl,Beef:gl,Beer:kl,BeerOff:ml,Bell:Ll,BellDot:bl,BellElectric:wl,BellMinus:vl,BellOff:Ml,BellPlus:Cl,BellRing:xl,BetweenHorizontalEnd:pt,BetweenHorizontalStart:yt,BetweenVerticalEnd:El,BetweenVerticalStart:Sl,BicepsFlexed:Il,Bike:Tl,Binary:Dl,Binoculars:zl,Biohazard:Rl,Bird:Hl,Bitcoin:Al,Blend:Vl,Blinds:Pl,Blocks:ql,Bluetooth:jl,BluetoothConnected:Bl,BluetoothOff:Fl,BluetoothSearching:Ol,Bold:Nl,Bolt:_l,Bomb:Wl,Bone:Ul,Book:y1,BookA:Gl,BookAudio:$l,BookCheck:Yl,BookCopy:Zl,BookDashed:ft,BookDown:Kl,BookHeadphones:Xl,BookHeart:Jl,BookImage:Ql,BookKey:e1,BookLock:t1,BookMarked:i1,BookMinus:a1,BookOpen:s1,BookOpenCheck:n1,BookOpenText:o1,BookPlus:r1,BookText:l1,BookType:h1,BookUp:d1,BookUp2:c1,BookUser:u1,BookX:p1,Bookmark:b1,BookmarkCheck:f1,BookmarkMinus:m1,BookmarkPlus:g1,BookmarkX:k1,BoomBox:w1,Bot:C1,BotMessageSquare:v1,BotOff:M1,BowArrow:x1,Box:L1,Boxes:E1,Braces:mt,Brackets:S1,Brain:D1,BrainCircuit:I1,BrainCog:T1,BrickWall:R1,BrickWallFire:z1,Briefcase:P1,BriefcaseBusiness:H1,BriefcaseConveyorBelt:A1,BriefcaseMedical:V1,BringToFront:q1,Brush:F1,BrushCleaning:B1,Bubbles:O1,Bug:_1,BugOff:j1,BugPlay:N1,Building:U1,Building2:W1,Bus:$1,BusFront:G1,Cable:Z1,CableCar:Y1,Cake:K1,CakeSlice:X1,Calculator:J1,Calendar:bh,Calendar1:Q1,CalendarArrowDown:eh,CalendarArrowUp:th,CalendarCheck:ah,CalendarCheck2:ih,CalendarClock:oh,CalendarCog:nh,CalendarDays:sh,CalendarFold:rh,CalendarHeart:lh,CalendarMinus:ch,CalendarMinus2:hh,CalendarOff:dh,CalendarPlus:ph,CalendarPlus2:uh,CalendarRange:yh,CalendarSearch:fh,CalendarSync:mh,CalendarX:kh,CalendarX2:gh,Camera:vh,CameraOff:wh,Candy:xh,CandyCane:Mh,CandyOff:Ch,Cannabis:Lh,Captions:gt,CaptionsOff:Eh,Car:Th,CarFront:Sh,CarTaxiFront:Ih,Caravan:Dh,Carrot:zh,CaseLower:Rh,CaseSensitive:Hh,CaseUpper:Ah,CassetteTape:Vh,Cast:Ph,Castle:qh,Cat:Bh,Cctv:Fh,ChartArea:kt,ChartBar:wt,ChartBarBig:bt,ChartBarDecreasing:Oh,ChartBarIncreasing:jh,ChartBarStacked:Nh,ChartCandlestick:vt,ChartColumn:xt,ChartColumnBig:Mt,ChartColumnDecreasing:_h,ChartColumnIncreasing:Ct,ChartColumnStacked:Wh,ChartGantt:Uh,ChartLine:Lt,ChartNetwork:Gh,ChartNoAxesColumn:St,ChartNoAxesColumnDecreasing:$h,ChartNoAxesColumnIncreasing:Et,ChartNoAxesCombined:Yh,ChartNoAxesGantt:It,ChartPie:Tt,ChartScatter:Dt,ChartSpline:Zh,Check:Jh,CheckCheck:Xh,CheckLine:Kh,ChefHat:Qh,Cherry:ec,ChevronDown:tc,ChevronFirst:ic,ChevronLast:oc,ChevronLeft:ac,ChevronRight:nc,ChevronUp:sc,ChevronsDown:lc,ChevronsDownUp:rc,ChevronsLeft:dc,ChevronsLeftRight:cc,ChevronsLeftRightEllipsis:hc,ChevronsRight:pc,ChevronsRightLeft:uc,ChevronsUp:fc,ChevronsUpDown:yc,Chrome:mc,Church:gc,Cigarette:bc,CigaretteOff:kc,Circle:zc,CircleAlert:Rt,CircleArrowDown:zt,CircleArrowLeft:Ht,CircleArrowOutDownLeft:At,CircleArrowOutDownRight:Vt,CircleArrowOutUpLeft:Pt,CircleArrowOutUpRight:qt,CircleArrowRight:Bt,CircleArrowUp:Ft,CircleCheck:jt,CircleCheckBig:Ot,CircleChevronDown:Nt,CircleChevronLeft:_t,CircleChevronRight:Wt,CircleChevronUp:Ut,CircleDashed:wc,CircleDivide:Gt,CircleDollarSign:vc,CircleDot:Cc,CircleDotDashed:Mc,CircleEllipsis:xc,CircleEqual:Lc,CircleFadingArrowUp:Ec,CircleFadingPlus:Sc,CircleGauge:$t,CircleHelp:Yt,CircleMinus:Zt,CircleOff:Ic,CircleParking:Kt,CircleParkingOff:Xt,CirclePause:Jt,CirclePercent:Qt,CirclePlay:ei,CirclePlus:ti,CirclePower:ii,CircleSlash:Tc,CircleSlash2:ai,CircleSmall:Dc,CircleStop:oi,CircleUser:si,CircleUserRound:ni,CircleX:ri,CircuitBoard:Rc,Citrus:Hc,Clapperboard:Ac,Clipboard:_c,ClipboardCheck:Vc,ClipboardCopy:Pc,ClipboardList:qc,ClipboardMinus:Bc,ClipboardPaste:Fc,ClipboardPen:hi,ClipboardPenLine:li,ClipboardPlus:Oc,ClipboardType:jc,ClipboardX:Nc,Clock:rd,Clock1:Wc,Clock10:Uc,Clock11:Gc,Clock12:$c,Clock2:Yc,Clock3:Zc,Clock4:Xc,Clock5:Kc,Clock6:Jc,Clock7:Qc,Clock8:ed,Clock9:td,ClockAlert:id,ClockArrowDown:ad,ClockArrowUp:od,ClockFading:nd,ClockPlus:sd,Cloud:Md,CloudAlert:ld,CloudCog:hd,CloudDownload:ci,CloudDrizzle:cd,CloudFog:ud,CloudHail:dd,CloudLightning:pd,CloudMoon:fd,CloudMoonRain:yd,CloudOff:md,CloudRain:kd,CloudRainWind:gd,CloudSnow:bd,CloudSun:vd,CloudSunRain:wd,CloudUpload:di,Cloudy:Cd,Clover:xd,Club:Ld,Code:Ed,CodeXml:ui,Codepen:Sd,Codesandbox:Id,Coffee:Td,Cog:Dd,Coins:zd,Columns2:pi,Columns3:yi,Columns3Cog:Se,Columns4:Rd,Combine:Ad,Command:Hd,Compass:Vd,Component:Pd,Computer:qd,ConciergeBell:Bd,Cone:Od,Construction:Fd,Contact:jd,ContactRound:fi,Container:Nd,Contrast:_d,Cookie:Wd,CookingPot:Ud,Copy:Kd,CopyCheck:$d,CopyMinus:Gd,CopyPlus:Yd,CopySlash:Zd,CopyX:Xd,Copyleft:Jd,Copyright:Qd,CornerDownLeft:e2,CornerDownRight:t2,CornerLeftDown:i2,CornerLeftUp:a2,CornerRightDown:o2,CornerRightUp:n2,CornerUpLeft:s2,CornerUpRight:r2,Cpu:l2,CreativeCommons:h2,CreditCard:c2,Croissant:d2,Crop:u2,Cross:p2,Crosshair:y2,Crown:f2,Cuboid:m2,CupSoda:g2,Currency:k2,Cylinder:b2,Dam:w2,Database:C2,DatabaseBackup:v2,DatabaseZap:M2,DecimalsArrowLeft:x2,DecimalsArrowRight:L2,Delete:E2,Dessert:I2,Diameter:S2,Diamond:z2,DiamondMinus:T2,DiamondPercent:mi,DiamondPlus:D2,Dice1:R2,Dice2:H2,Dice3:A2,Dice4:V2,Dice5:P2,Dice6:q2,Dices:B2,Diff:F2,Disc:_2,Disc2:O2,Disc3:j2,DiscAlbum:N2,Divide:W2,Dna:U2,DnaOff:G2,Dock:$2,Dog:Y2,DollarSign:Z2,Donut:X2,DoorClosed:J2,DoorClosedLocked:K2,DoorOpen:Q2,Dot:e0,Download:t0,DraftingCompass:i0,Drama:a0,Dribbble:o0,Drill:n0,Droplet:r0,DropletOff:s0,Droplets:l0,Drum:h0,Drumstick:c0,Dumbbell:d0,Ear:p0,EarOff:u0,Earth:gi,EarthLock:f0,Eclipse:y0,Egg:k0,EggFried:m0,EggOff:g0,Ellipsis:bi,EllipsisVertical:ki,Equal:v0,EqualApproximately:b0,EqualNot:w0,Eraser:M0,EthernetPort:C0,Euro:x0,Expand:L0,ExternalLink:E0,Eye:T0,EyeClosed:S0,EyeOff:I0,Facebook:D0,Factory:z0,Fan:R0,FastForward:H0,Feather:A0,Fence:q0,FerrisWheel:V0,Figma:P0,File:Au,FileArchive:B0,FileAudio:O0,FileAudio2:F0,FileAxis3d:wi,FileBadge:N0,FileBadge2:j0,FileBox:_0,FileChartColumn:Mi,FileChartColumnIncreasing:vi,FileChartLine:Ci,FileChartPie:xi,FileCheck:U0,FileCheck2:W0,FileClock:G0,FileCode:Y0,FileCode2:$0,FileCog:Li,FileDiff:Z0,FileDigit:X0,FileDown:K0,FileHeart:J0,FileImage:Q0,FileInput:eu,FileJson:iu,FileJson2:tu,FileKey:ou,FileKey2:au,FileLock:su,FileLock2:nu,FileMinus:ru,FileMinus2:lu,FileMusic:hu,FileOutput:cu,FilePen:Si,FilePenLine:Ei,FilePlus:pu,FilePlus2:du,FileQuestion:uu,FileScan:yu,FileSearch:mu,FileSearch2:fu,FileSliders:gu,FileSpreadsheet:ku,FileStack:bu,FileSymlink:wu,FileTerminal:vu,FileText:Mu,FileType:xu,FileType2:Cu,FileUp:Lu,FileUser:Eu,FileVideo:Iu,FileVideo2:Su,FileVolume:zu,FileVolume2:Tu,FileWarning:Du,FileX:Hu,FileX2:Ru,Files:Pu,Film:Vu,Fingerprint:qu,FireExtinguisher:Bu,Fish:ju,FishOff:Fu,FishSymbol:Ou,Flag:Uu,FlagOff:Nu,FlagTriangleLeft:_u,FlagTriangleRight:Wu,Flame:$u,FlameKindling:Gu,Flashlight:Xu,FlashlightOff:Yu,FlaskConical:Ku,FlaskConicalOff:Zu,FlaskRound:Ju,FlipHorizontal:ep,FlipHorizontal2:Qu,FlipVertical:tp,FlipVertical2:ip,Flower:op,Flower2:ap,Focus:np,FoldHorizontal:sp,FoldVertical:rp,Folder:Vp,FolderArchive:lp,FolderCheck:hp,FolderClock:dp,FolderClosed:cp,FolderCode:up,FolderCog:Ii,FolderDot:pp,FolderDown:yp,FolderGit:mp,FolderGit2:fp,FolderHeart:gp,FolderInput:kp,FolderKanban:bp,FolderKey:wp,FolderLock:vp,FolderMinus:Cp,FolderOpen:xp,FolderOpenDot:Mp,FolderOutput:Ep,FolderPen:Ti,FolderPlus:Lp,FolderRoot:Sp,FolderSearch:Tp,FolderSearch2:Ip,FolderSymlink:zp,FolderSync:Dp,FolderTree:Rp,FolderUp:Hp,FolderX:Ap,Folders:Pp,Footprints:qp,Forklift:Bp,Forward:Op,Frame:Fp,Framer:jp,Frown:Np,Fuel:Wp,Fullscreen:_p,Funnel:zi,FunnelPlus:Up,FunnelX:Di,GalleryHorizontal:Yp,GalleryHorizontalEnd:Gp,GalleryThumbnails:$p,GalleryVertical:Xp,GalleryVerticalEnd:Zp,Gamepad:Kp,Gamepad2:Jp,Gauge:Qp,Gavel:ey,Gem:ty,Ghost:iy,Gift:ay,GitBranch:ny,GitBranchPlus:oy,GitCommitHorizontal:Ri,GitCommitVertical:sy,GitCompare:ly,GitCompareArrows:ry,GitFork:hy,GitGraph:cy,GitMerge:dy,GitPullRequest:gy,GitPullRequestArrow:uy,GitPullRequestClosed:py,GitPullRequestCreate:my,GitPullRequestCreateArrow:yy,GitPullRequestDraft:fy,Github:ky,Gitlab:by,GlassWater:wy,Glasses:vy,Globe:xy,GlobeLock:My,Goal:Cy,Gpu:Ly,Grab:Ey,GraduationCap:Sy,Grape:Iy,Grid2x2:Pi,Grid2x2Check:Hi,Grid2x2Plus:Ai,Grid2x2X:Vi,Grid3x3:Ie,Grip:zy,GripHorizontal:Ty,GripVertical:Dy,Group:Ry,Guitar:Hy,Ham:Ay,Hamburger:Vy,Hammer:Py,Hand:jy,HandCoins:qy,HandHeart:By,HandHelping:qi,HandMetal:Fy,HandPlatter:Oy,Handshake:_y,HardDrive:Uy,HardDriveDownload:Ny,HardDriveUpload:Wy,HardHat:Gy,Hash:$y,Haze:Yy,HdmiPort:Zy,Heading:af,Heading1:Xy,Heading2:Ky,Heading3:Jy,Heading4:tf,Heading5:Qy,Heading6:ef,HeadphoneOff:of,Headphones:nf,Headset:sf,Heart:uf,HeartCrack:rf,HeartHandshake:lf,HeartMinus:hf,HeartOff:cf,HeartPlus:df,HeartPulse:pf,Heater:yf,Hexagon:ff,Highlighter:mf,History:gf,Hop:bf,HopOff:kf,Hospital:wf,Hotel:vf,Hourglass:Mf,House:Bi,HousePlug:Cf,HousePlus:xf,HouseWifi:Lf,IceCreamBowl:Fi,IceCreamCone:Oi,IdCard:Ef,Image:Af,ImageDown:Sf,ImageMinus:If,ImageOff:Df,ImagePlay:Tf,ImagePlus:zf,ImageUp:Hf,ImageUpscale:Rf,Images:Vf,Import:qf,Inbox:Pf,IndentDecrease:ji,IndentIncrease:Ni,IndianRupee:Bf,Infinity:Ff,Info:Of,InspectionPanel:_f,Instagram:jf,Italic:Nf,IterationCcw:Wf,IterationCw:Uf,JapaneseYen:Gf,Joystick:$f,Kanban:Yf,Key:Kf,KeyRound:Xf,KeySquare:Zf,Keyboard:em,KeyboardMusic:Jf,KeyboardOff:Qf,Lamp:sm,LampCeiling:tm,LampDesk:am,LampFloor:im,LampWallDown:om,LampWallUp:nm,LandPlot:rm,Landmark:lm,Languages:hm,Laptop:dm,LaptopMinimal:_i,LaptopMinimalCheck:cm,Lasso:um,LassoSelect:ym,Laugh:pm,Layers:Wi,Layers2:fm,LayoutDashboard:mm,LayoutGrid:gm,LayoutList:km,LayoutPanelLeft:bm,LayoutPanelTop:wm,LayoutTemplate:vm,Leaf:Mm,LeafyGreen:xm,Lectern:Cm,LetterText:Lm,Library:Sm,LibraryBig:Em,LifeBuoy:Im,Ligature:Tm,Lightbulb:zm,LightbulbOff:Dm,Link:Am,Link2:Hm,Link2Off:Rm,Linkedin:Vm,List:Jm,ListCheck:Pm,ListChecks:qm,ListCollapse:Bm,ListEnd:Fm,ListFilter:Nm,ListFilterPlus:Om,ListMinus:jm,ListMusic:_m,ListOrdered:Wm,ListPlus:Um,ListRestart:Gm,ListStart:$m,ListTodo:Ym,ListTree:Zm,ListVideo:Xm,ListX:Km,Loader:eg,LoaderCircle:Ui,LoaderPinwheel:Qm,Locate:ag,LocateFixed:tg,LocateOff:ig,LocationEdit:og,Lock:sg,LockKeyhole:ng,LockKeyholeOpen:Gi,LockOpen:$i,LogIn:rg,LogOut:lg,Logs:hg,Lollipop:cg,Luggage:dg,Magnet:ug,Mail:vg,MailCheck:pg,MailMinus:yg,MailOpen:fg,MailPlus:mg,MailQuestion:gg,MailSearch:kg,MailWarning:bg,MailX:wg,Mailbox:Mg,Mails:Cg,Map:qg,MapPin:Ag,MapPinCheck:Lg,MapPinCheckInside:xg,MapPinHouse:Eg,MapPinMinus:Ig,MapPinMinusInside:Sg,MapPinOff:Tg,MapPinPlus:zg,MapPinPlusInside:Dg,MapPinX:Rg,MapPinXInside:Hg,MapPinned:Vg,MapPlus:Pg,Mars:Fg,MarsStroke:Bg,Martini:Og,Maximize:jg,Maximize2:Ng,Medal:_g,Megaphone:Ug,MegaphoneOff:Wg,Meh:Gg,MemoryStick:Yg,Menu:$g,Merge:Zg,MessageCircle:sk,MessageCircleCode:Xg,MessageCircleDashed:Kg,MessageCircleHeart:Jg,MessageCircleMore:Qg,MessageCircleOff:ek,MessageCirclePlus:tk,MessageCircleQuestion:ik,MessageCircleReply:ak,MessageCircleWarning:ok,MessageCircleX:nk,MessageSquare:Mk,MessageSquareCode:rk,MessageSquareDashed:lk,MessageSquareDiff:hk,MessageSquareDot:ck,MessageSquareHeart:dk,MessageSquareLock:uk,MessageSquareMore:pk,MessageSquareOff:yk,MessageSquarePlus:fk,MessageSquareQuote:mk,MessageSquareReply:gk,MessageSquareShare:kk,MessageSquareText:bk,MessageSquareWarning:wk,MessageSquareX:vk,MessagesSquare:Ck,Mic:Lk,MicOff:xk,MicVocal:Yi,Microchip:Ek,Microscope:Sk,Microwave:Ik,Milestone:Tk,Milk:zk,MilkOff:Dk,Minimize:Hk,Minimize2:Rk,Minus:Ak,Monitor:$k,MonitorCheck:Vk,MonitorCog:qk,MonitorDot:Pk,MonitorDown:Bk,MonitorOff:Fk,MonitorPause:Ok,MonitorPlay:jk,MonitorSmartphone:Nk,MonitorSpeaker:Wk,MonitorStop:_k,MonitorUp:Uk,MonitorX:Gk,Moon:Zk,MoonStar:Yk,Mountain:Kk,MountainSnow:Xk,Mouse:n3,MouseOff:Jk,MousePointer:i3,MousePointer2:Qk,MousePointerBan:e3,MousePointerClick:t3,Move:m3,Move3d:Zi,MoveDiagonal:o3,MoveDiagonal2:a3,MoveDown:l3,MoveDownLeft:s3,MoveDownRight:r3,MoveHorizontal:c3,MoveLeft:h3,MoveRight:d3,MoveUp:y3,MoveUpLeft:u3,MoveUpRight:p3,MoveVertical:f3,Music:w3,Music2:g3,Music3:k3,Music4:b3,Navigation:x3,Navigation2:M3,Navigation2Off:v3,NavigationOff:C3,Network:L3,Newspaper:E3,Nfc:S3,NonBinary:I3,Notebook:R3,NotebookPen:T3,NotebookTabs:D3,NotebookText:z3,NotepadText:A3,NotepadTextDashed:H3,Nut:P3,NutOff:V3,Octagon:B3,OctagonAlert:Xi,OctagonMinus:q3,OctagonPause:Ji,OctagonX:Ki,Omega:F3,Option:O3,Orbit:N3,Origami:j3,Package:X3,Package2:_3,PackageCheck:W3,PackageMinus:U3,PackageOpen:G3,PackagePlus:$3,PackageSearch:Y3,PackageX:Z3,PaintBucket:K3,PaintRoller:J3,Paintbrush:Q3,PaintbrushVertical:Qi,Palette:e4,Panda:t4,PanelBottom:o4,PanelBottomClose:i4,PanelBottomDashed:ea,PanelBottomOpen:a4,PanelLeft:oa,PanelLeftClose:ta,PanelLeftDashed:ia,PanelLeftOpen:aa,PanelRight:l4,PanelRightClose:n4,PanelRightDashed:na,PanelRightOpen:s4,PanelTop:c4,PanelTopClose:r4,PanelTopDashed:sa,PanelTopOpen:h4,PanelsLeftBottom:d4,PanelsRightBottom:u4,PanelsTopLeft:ra,Paperclip:p4,Parentheses:y4,ParkingMeter:f4,PartyPopper:m4,Pause:g4,PawPrint:k4,PcCase:b4,Pen:ha,PenLine:la,PenOff:w4,PenTool:v4,Pencil:L4,PencilLine:C4,PencilOff:M4,PencilRuler:x4,Pentagon:E4,Percent:S4,PersonStanding:I4,PhilippinePeso:D4,Phone:P4,PhoneCall:T4,PhoneForwarded:z4,PhoneIncoming:R4,PhoneMissed:H4,PhoneOff:A4,PhoneOutgoing:V4,Pi:q4,Piano:B4,Pickaxe:F4,PictureInPicture:j4,PictureInPicture2:O4,PiggyBank:N4,Pilcrow:U4,PilcrowLeft:_4,PilcrowRight:W4,Pill:$4,PillBottle:G4,Pin:Z4,PinOff:Y4,Pipette:X4,Pizza:K4,Plane:e5,PlaneLanding:J4,PlaneTakeoff:Q4,Play:t5,Plug:a5,Plug2:i5,PlugZap:ca,Plus:o5,Pocket:n5,PocketKnife:s5,Podcast:r5,Pointer:h5,PointerOff:l5,Popcorn:c5,Popsicle:d5,PoundSterling:u5,Power:y5,PowerOff:p5,Presentation:f5,Printer:g5,PrinterCheck:m5,Projector:k5,Proportions:b5,Puzzle:w5,Pyramid:v5,QrCode:M5,Quote:x5,Rabbit:C5,Radar:L5,Radiation:E5,Radical:S5,Radio:D5,RadioReceiver:I5,RadioTower:T5,Radius:z5,RailSymbol:R5,Rainbow:H5,Rat:A5,Ratio:V5,Receipt:W5,ReceiptCent:P5,ReceiptEuro:q5,ReceiptIndianRupee:F5,ReceiptJapaneseYen:B5,ReceiptPoundSterling:j5,ReceiptRussianRuble:O5,ReceiptSwissFranc:N5,ReceiptText:_5,RectangleEllipsis:da,RectangleGoggles:U5,RectangleHorizontal:G5,RectangleVertical:$5,Recycle:Y5,Redo:K5,Redo2:Z5,RedoDot:X5,RefreshCcw:Q5,RefreshCcwDot:J5,RefreshCw:tb,RefreshCwOff:eb,Refrigerator:ab,Regex:ib,RemoveFormatting:ob,Repeat:rb,Repeat1:nb,Repeat2:sb,Replace:hb,ReplaceAll:lb,Reply:db,ReplyAll:cb,Rewind:ub,Ribbon:pb,Rocket:yb,RockingChair:fb,RollerCoaster:mb,Rotate3d:ua,RotateCcw:bb,RotateCcwKey:gb,RotateCcwSquare:kb,RotateCw:vb,RotateCwSquare:wb,Route:xb,RouteOff:Mb,Router:Cb,Rows2:pa,Rows3:ya,Rows4:Lb,Rss:Eb,Ruler:Ib,RulerDimensionLine:Sb,RussianRuble:Tb,Sailboat:Db,Salad:zb,Sandwich:Rb,Satellite:Ab,SatelliteDish:Hb,SaudiRiyal:Vb,Save:Bb,SaveAll:Pb,SaveOff:qb,Scale:Fb,Scale3d:fa,Scaling:Ob,Scan:Yb,ScanBarcode:jb,ScanEye:_b,ScanFace:Nb,ScanHeart:Wb,ScanLine:Gb,ScanQrCode:Ub,ScanSearch:$b,ScanText:Zb,School:Xb,Scissors:Jb,ScissorsLineDashed:Kb,ScreenShare:ew,ScreenShareOff:Qb,Scroll:iw,ScrollText:tw,Search:rw,SearchCheck:aw,SearchCode:ow,SearchSlash:nw,SearchX:sw,Section:lw,Send:dw,SendHorizontal:ma,SendToBack:hw,SeparatorHorizontal:cw,SeparatorVertical:pw,Server:mw,ServerCog:uw,ServerCrash:yw,ServerOff:fw,Settings:kw,Settings2:gw,Shapes:bw,Share:vw,Share2:ww,Sheet:Mw,Shell:Cw,Shield:Aw,ShieldAlert:xw,ShieldBan:Lw,ShieldCheck:Ew,ShieldEllipsis:Sw,ShieldHalf:Iw,ShieldMinus:Tw,ShieldOff:Dw,ShieldPlus:zw,ShieldQuestion:Rw,ShieldUser:Hw,ShieldX:ga,Ship:Vw,ShipWheel:qw,Shirt:Pw,ShoppingBag:Bw,ShoppingBasket:Fw,ShoppingCart:Ow,Shovel:jw,ShowerHead:Nw,Shredder:_w,Shrimp:Ww,Shrink:Uw,Shrub:Gw,Shuffle:$w,Sigma:Yw,Signal:Qw,SignalHigh:Zw,SignalLow:Xw,SignalMedium:Kw,SignalZero:Jw,Signature:ev,Signpost:iv,SignpostBig:tv,Siren:av,SkipBack:ov,SkipForward:nv,Skull:sv,Slack:rv,Slash:lv,Slice:cv,SlidersHorizontal:hv,SlidersVertical:ka,Smartphone:pv,SmartphoneCharging:dv,SmartphoneNfc:uv,Smile:fv,SmilePlus:yv,Snail:mv,Snowflake:gv,SoapDispenserDroplet:kv,Sofa:bv,Soup:wv,Space:vv,Spade:Mv,Sparkle:Cv,Sparkles:ba,Speaker:xv,Speech:Lv,SpellCheck:Sv,SpellCheck2:Ev,Spline:Tv,SplinePointer:Iv,Split:zv,SprayCan:Dv,Sprout:Rv,Square:Ov,SquareActivity:wa,SquareArrowDown:Ca,SquareArrowDownLeft:va,SquareArrowDownRight:Ma,SquareArrowLeft:xa,SquareArrowOutDownLeft:La,SquareArrowOutDownRight:Ea,SquareArrowOutUpLeft:Sa,SquareArrowOutUpRight:Ia,SquareArrowRight:Ta,SquareArrowUp:Ra,SquareArrowUpLeft:za,SquareArrowUpRight:Da,SquareAsterisk:Ha,SquareBottomDashedScissors:Aa,SquareChartGantt:Te,SquareCheck:Pa,SquareCheckBig:Va,SquareChevronDown:qa,SquareChevronLeft:Ba,SquareChevronRight:Fa,SquareChevronUp:Oa,SquareCode:ja,SquareDashed:Wa,SquareDashedBottom:Av,SquareDashedBottomCode:Hv,SquareDashedKanban:Na,SquareDashedMousePointer:_a,SquareDashedTopSolid:Vv,SquareDivide:Ua,SquareDot:Ga,SquareEqual:$a,SquareFunction:Ya,SquareKanban:Za,SquareLibrary:Xa,SquareM:Ka,SquareMenu:Ja,SquareMinus:Qa,SquareMousePointer:eo,SquareParking:io,SquareParkingOff:to,SquarePen:ue,SquarePercent:ao,SquarePi:oo,SquarePilcrow:no,SquarePlay:so,SquarePlus:ro,SquarePower:lo,SquareRadical:Pv,SquareRoundCorner:qv,SquareScissors:ho,SquareSigma:co,SquareSlash:po,SquareSplitHorizontal:uo,SquareSplitVertical:yo,SquareSquare:Bv,SquareStack:Fv,SquareTerminal:fo,SquareUser:go,SquareUserRound:mo,SquareX:ko,SquaresExclude:Nv,SquaresIntersect:jv,SquaresSubtract:_v,SquaresUnite:Wv,Squircle:Uv,Squirrel:Gv,Stamp:$v,Star:Xv,StarHalf:Yv,StarOff:Zv,StepBack:Kv,StepForward:Jv,Stethoscope:Qv,Sticker:e6,StickyNote:t6,Store:i6,StretchHorizontal:a6,StretchVertical:o6,Strikethrough:n6,Subscript:s6,Sun:d6,SunDim:l6,SunMedium:r6,SunMoon:h6,SunSnow:c6,Sunrise:u6,Sunset:p6,Superscript:y6,SwatchBook:f6,SwissFranc:m6,SwitchCamera:g6,Sword:k6,Swords:b6,Syringe:w6,Table:I6,Table2:v6,TableCellsMerge:M6,TableCellsSplit:C6,TableColumnsSplit:x6,TableOfContents:L6,TableProperties:E6,TableRowsSplit:S6,Tablet:D6,TabletSmartphone:T6,Tablets:z6,Tag:R6,Tags:H6,Tally1:A6,Tally2:V6,Tally3:P6,Tally4:q6,Tally5:B6,Tangent:F6,Target:O6,Telescope:j6,Tent:_6,TentTree:N6,Terminal:W6,TestTube:U6,TestTubeDiagonal:bo,TestTubes:G6,Text:K6,TextCursor:Y6,TextCursorInput:$6,TextQuote:Z6,TextSearch:X6,TextSelect:wo,Theater:J6,Thermometer:t8,ThermometerSnowflake:Q6,ThermometerSun:e8,ThumbsDown:i8,ThumbsUp:a8,Ticket:c8,TicketCheck:o8,TicketMinus:n8,TicketPercent:s8,TicketPlus:r8,TicketSlash:l8,TicketX:h8,Tickets:p8,TicketsPlane:d8,Timer:f8,TimerOff:u8,TimerReset:y8,ToggleLeft:m8,ToggleRight:g8,Toilet:k8,Tornado:b8,Torus:w8,Touchpad:M8,TouchpadOff:v8,TowerControl:C8,ToyBrick:x8,Tractor:L8,TrafficCone:E8,TrainFront:I8,TrainFrontTunnel:S8,TrainTrack:T8,TramFront:vo,Transgender:D8,Trash:R8,Trash2:z8,TreeDeciduous:H8,TreePalm:Mo,TreePine:A8,Trees:V8,Trello:P8,TrendingDown:q8,TrendingUp:F8,TrendingUpDown:B8,Triangle:N8,TriangleAlert:Co,TriangleDashed:O8,TriangleRight:j8,Trophy:_8,Truck:W8,TruckElectric:U8,Turtle:G8,Tv:Y8,TvMinimal:xo,TvMinimalPlay:$8,Twitch:Z8,Twitter:X8,Type:J8,TypeOutline:K8,Umbrella:eM,UmbrellaOff:Q8,Underline:tM,Undo:oM,Undo2:aM,UndoDot:iM,UnfoldHorizontal:nM,UnfoldVertical:sM,Ungroup:rM,University:Lo,Unlink:hM,Unlink2:lM,Unplug:cM,Upload:dM,Usb:uM,User:CM,UserCheck:pM,UserCog:yM,UserLock:fM,UserMinus:mM,UserPen:gM,UserPlus:kM,UserRound:zo,UserRoundCheck:Eo,UserRoundCog:So,UserRoundMinus:Io,UserRoundPen:bM,UserRoundPlus:To,UserRoundSearch:wM,UserRoundX:Do,UserSearch:vM,UserX:MM,Users:xM,UsersRound:Ro,Utensils:Ao,UtensilsCrossed:Ho,UtilityPole:LM,Variable:EM,Vault:SM,Vegan:IM,VenetianMask:TM,Venus:zM,VenusAndMars:DM,Vibrate:HM,VibrateOff:RM,Video:PM,VideoOff:AM,Videotape:VM,View:qM,Voicemail:BM,Volleyball:FM,Volume:_M,Volume1:OM,Volume2:jM,VolumeOff:NM,VolumeX:WM,Vote:UM,Wallet:$M,WalletCards:GM,WalletMinimal:Vo,Wallpaper:YM,Wand:ZM,WandSparkles:Po,Warehouse:XM,WashingMachine:KM,Watch:JM,Waves:e7,WavesLadder:QM,Waypoints:t7,Webcam:i7,Webhook:a7,WebhookOff:o7,Weight:n7,Wheat:s7,WheatOff:r7,WholeWord:h7,Wifi:p7,WifiHigh:l7,WifiLow:c7,WifiOff:d7,WifiPen:u7,WifiZero:y7,Wind:m7,WindArrowDown:f7,Wine:k7,WineOff:g7,Workflow:b7,Worm:w7,WrapText:v7,Wrench:M7,X:C7,Youtube:x7,Zap:E7,ZapOff:L7,ZoomIn:S7,ZoomOut:I7},Symbol.toStringTag,{value:"Module"}));/**
8019
+ */const vT=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Bn,AArrowUp:Fn,ALargeSmall:On,Accessibility:jn,Activity:Nn,AirVent:Wn,Airplay:_n,AlarmClock:$n,AlarmClockCheck:it,AlarmClockMinus:at,AlarmClockOff:Un,AlarmClockPlus:ot,AlarmSmoke:Gn,Album:Yn,AlignCenter:Kn,AlignCenterHorizontal:Zn,AlignCenterVertical:Xn,AlignEndHorizontal:Jn,AlignEndVertical:Qn,AlignHorizontalDistributeCenter:es,AlignHorizontalDistributeEnd:ts,AlignHorizontalDistributeStart:is,AlignHorizontalJustifyCenter:as,AlignHorizontalJustifyEnd:os,AlignHorizontalJustifyStart:ns,AlignHorizontalSpaceAround:ss,AlignHorizontalSpaceBetween:rs,AlignJustify:ls,AlignLeft:hs,AlignRight:ds,AlignStartHorizontal:cs,AlignStartVertical:us,AlignVerticalDistributeCenter:ps,AlignVerticalDistributeEnd:ys,AlignVerticalDistributeStart:fs,AlignVerticalJustifyCenter:ms,AlignVerticalJustifyEnd:gs,AlignVerticalJustifyStart:ks,AlignVerticalSpaceAround:bs,AlignVerticalSpaceBetween:ws,Ambulance:vs,Ampersand:Ms,Ampersands:Cs,Amphora:xs,Anchor:Es,Angry:Ls,Annoyed:Ss,Antenna:Is,Anvil:Ts,Aperture:Ds,AppWindow:Rs,AppWindowMac:zs,Apple:Hs,Archive:Ps,ArchiveRestore:As,ArchiveX:Vs,Armchair:Bs,ArrowBigDown:Fs,ArrowBigDownDash:qs,ArrowBigLeft:js,ArrowBigLeftDash:Os,ArrowBigRight:_s,ArrowBigRightDash:Ns,ArrowBigUp:Us,ArrowBigUpDash:Ws,ArrowDown:tr,ArrowDown01:$s,ArrowDown10:Gs,ArrowDownAZ:nt,ArrowDownFromLine:Ys,ArrowDownLeft:Zs,ArrowDownNarrowWide:Xs,ArrowDownRight:Ks,ArrowDownToDot:Js,ArrowDownToLine:er,ArrowDownUp:Qs,ArrowDownWideNarrow:st,ArrowDownZA:rt,ArrowLeft:nr,ArrowLeftFromLine:ir,ArrowLeftRight:ar,ArrowLeftToLine:or,ArrowRight:hr,ArrowRightFromLine:sr,ArrowRightLeft:rr,ArrowRightToLine:lr,ArrowUp:br,ArrowUp01:cr,ArrowUp10:ur,ArrowUpAZ:lt,ArrowUpDown:dr,ArrowUpFromDot:pr,ArrowUpFromLine:yr,ArrowUpLeft:fr,ArrowUpNarrowWide:ht,ArrowUpRight:mr,ArrowUpToLine:gr,ArrowUpWideNarrow:kr,ArrowUpZA:ct,ArrowsUpFromLine:wr,Asterisk:vr,AtSign:Mr,Atom:Cr,AudioLines:xr,AudioWaveform:Lr,Award:Er,Axe:Sr,Axis3d:dt,Baby:Ir,Backpack:Tr,Badge:Ur,BadgeAlert:Dr,BadgeCent:zr,BadgeCheck:ut,BadgeDollarSign:Rr,BadgeEuro:Hr,BadgeHelp:Ar,BadgeIndianRupee:Vr,BadgeInfo:Pr,BadgeJapaneseYen:qr,BadgeMinus:Br,BadgePercent:Fr,BadgePlus:Or,BadgePoundSterling:jr,BadgeRussianRuble:Nr,BadgeSwissFranc:_r,BadgeX:Wr,BaggageClaim:$r,Ban:Gr,Banana:Yr,Bandage:Zr,Banknote:Qr,BanknoteArrowDown:Xr,BanknoteArrowUp:Kr,BanknoteX:Jr,Barcode:el,Baseline:tl,Bath:il,Battery:hl,BatteryCharging:al,BatteryFull:ol,BatteryLow:nl,BatteryMedium:sl,BatteryPlus:rl,BatteryWarning:ll,Beaker:cl,Bean:ul,BeanOff:dl,Bed:fl,BedDouble:pl,BedSingle:yl,Beef:gl,Beer:kl,BeerOff:ml,Bell:Ll,BellDot:bl,BellElectric:wl,BellMinus:vl,BellOff:Ml,BellPlus:Cl,BellRing:xl,BetweenHorizontalEnd:pt,BetweenHorizontalStart:yt,BetweenVerticalEnd:El,BetweenVerticalStart:Sl,BicepsFlexed:Il,Bike:Tl,Binary:Dl,Binoculars:zl,Biohazard:Rl,Bird:Hl,Bitcoin:Al,Blend:Vl,Blinds:Pl,Blocks:ql,Bluetooth:jl,BluetoothConnected:Bl,BluetoothOff:Fl,BluetoothSearching:Ol,Bold:Nl,Bolt:_l,Bomb:Wl,Bone:Ul,Book:y1,BookA:$l,BookAudio:Gl,BookCheck:Yl,BookCopy:Zl,BookDashed:ft,BookDown:Kl,BookHeadphones:Xl,BookHeart:Jl,BookImage:Ql,BookKey:e1,BookLock:t1,BookMarked:i1,BookMinus:a1,BookOpen:s1,BookOpenCheck:n1,BookOpenText:o1,BookPlus:r1,BookText:l1,BookType:h1,BookUp:d1,BookUp2:c1,BookUser:u1,BookX:p1,Bookmark:b1,BookmarkCheck:f1,BookmarkMinus:m1,BookmarkPlus:g1,BookmarkX:k1,BoomBox:w1,Bot:C1,BotMessageSquare:v1,BotOff:M1,BowArrow:x1,Box:L1,Boxes:E1,Braces:mt,Brackets:S1,Brain:D1,BrainCircuit:I1,BrainCog:T1,BrickWall:R1,BrickWallFire:z1,Briefcase:P1,BriefcaseBusiness:H1,BriefcaseConveyorBelt:A1,BriefcaseMedical:V1,BringToFront:q1,Brush:F1,BrushCleaning:B1,Bubbles:O1,Bug:_1,BugOff:j1,BugPlay:N1,Building:U1,Building2:W1,Bus:G1,BusFront:$1,Cable:Z1,CableCar:Y1,Cake:K1,CakeSlice:X1,Calculator:J1,Calendar:bh,Calendar1:Q1,CalendarArrowDown:eh,CalendarArrowUp:th,CalendarCheck:ah,CalendarCheck2:ih,CalendarClock:oh,CalendarCog:nh,CalendarDays:sh,CalendarFold:rh,CalendarHeart:lh,CalendarMinus:ch,CalendarMinus2:hh,CalendarOff:dh,CalendarPlus:ph,CalendarPlus2:uh,CalendarRange:yh,CalendarSearch:fh,CalendarSync:mh,CalendarX:kh,CalendarX2:gh,Camera:vh,CameraOff:wh,Candy:xh,CandyCane:Mh,CandyOff:Ch,Cannabis:Lh,Captions:gt,CaptionsOff:Eh,Car:Th,CarFront:Sh,CarTaxiFront:Ih,Caravan:Dh,Carrot:zh,CaseLower:Rh,CaseSensitive:Hh,CaseUpper:Ah,CassetteTape:Vh,Cast:Ph,Castle:qh,Cat:Bh,Cctv:Fh,ChartArea:kt,ChartBar:wt,ChartBarBig:bt,ChartBarDecreasing:Oh,ChartBarIncreasing:jh,ChartBarStacked:Nh,ChartCandlestick:vt,ChartColumn:xt,ChartColumnBig:Mt,ChartColumnDecreasing:_h,ChartColumnIncreasing:Ct,ChartColumnStacked:Wh,ChartGantt:Uh,ChartLine:Lt,ChartNetwork:$h,ChartNoAxesColumn:St,ChartNoAxesColumnDecreasing:Gh,ChartNoAxesColumnIncreasing:Et,ChartNoAxesCombined:Yh,ChartNoAxesGantt:It,ChartPie:Tt,ChartScatter:Dt,ChartSpline:Zh,Check:Jh,CheckCheck:Xh,CheckLine:Kh,ChefHat:Qh,Cherry:ec,ChevronDown:tc,ChevronFirst:ic,ChevronLast:oc,ChevronLeft:ac,ChevronRight:nc,ChevronUp:sc,ChevronsDown:lc,ChevronsDownUp:rc,ChevronsLeft:dc,ChevronsLeftRight:cc,ChevronsLeftRightEllipsis:hc,ChevronsRight:pc,ChevronsRightLeft:uc,ChevronsUp:fc,ChevronsUpDown:yc,Chrome:mc,Church:gc,Cigarette:bc,CigaretteOff:kc,Circle:zc,CircleAlert:Rt,CircleArrowDown:zt,CircleArrowLeft:Ht,CircleArrowOutDownLeft:At,CircleArrowOutDownRight:Vt,CircleArrowOutUpLeft:Pt,CircleArrowOutUpRight:qt,CircleArrowRight:Bt,CircleArrowUp:Ft,CircleCheck:jt,CircleCheckBig:Ot,CircleChevronDown:Nt,CircleChevronLeft:_t,CircleChevronRight:Wt,CircleChevronUp:Ut,CircleDashed:wc,CircleDivide:$t,CircleDollarSign:vc,CircleDot:Cc,CircleDotDashed:Mc,CircleEllipsis:xc,CircleEqual:Lc,CircleFadingArrowUp:Ec,CircleFadingPlus:Sc,CircleGauge:Gt,CircleHelp:Yt,CircleMinus:Zt,CircleOff:Ic,CircleParking:Kt,CircleParkingOff:Xt,CirclePause:Jt,CirclePercent:Qt,CirclePlay:ei,CirclePlus:ti,CirclePower:ii,CircleSlash:Tc,CircleSlash2:ai,CircleSmall:Dc,CircleStop:oi,CircleUser:si,CircleUserRound:ni,CircleX:ri,CircuitBoard:Rc,Citrus:Hc,Clapperboard:Ac,Clipboard:_c,ClipboardCheck:Vc,ClipboardCopy:Pc,ClipboardList:qc,ClipboardMinus:Bc,ClipboardPaste:Fc,ClipboardPen:hi,ClipboardPenLine:li,ClipboardPlus:Oc,ClipboardType:jc,ClipboardX:Nc,Clock:rd,Clock1:Wc,Clock10:Uc,Clock11:$c,Clock12:Gc,Clock2:Yc,Clock3:Zc,Clock4:Xc,Clock5:Kc,Clock6:Jc,Clock7:Qc,Clock8:ed,Clock9:td,ClockAlert:id,ClockArrowDown:ad,ClockArrowUp:od,ClockFading:nd,ClockPlus:sd,Cloud:Md,CloudAlert:ld,CloudCog:hd,CloudDownload:ci,CloudDrizzle:cd,CloudFog:ud,CloudHail:dd,CloudLightning:pd,CloudMoon:fd,CloudMoonRain:yd,CloudOff:md,CloudRain:kd,CloudRainWind:gd,CloudSnow:bd,CloudSun:vd,CloudSunRain:wd,CloudUpload:di,Cloudy:Cd,Clover:xd,Club:Ld,Code:Ed,CodeXml:ui,Codepen:Sd,Codesandbox:Id,Coffee:Td,Cog:Dd,Coins:zd,Columns2:pi,Columns3:yi,Columns3Cog:Se,Columns4:Rd,Combine:Ad,Command:Hd,Compass:Vd,Component:Pd,Computer:qd,ConciergeBell:Bd,Cone:Od,Construction:Fd,Contact:jd,ContactRound:fi,Container:Nd,Contrast:_d,Cookie:Wd,CookingPot:Ud,Copy:Kd,CopyCheck:Gd,CopyMinus:$d,CopyPlus:Yd,CopySlash:Zd,CopyX:Xd,Copyleft:Jd,Copyright:Qd,CornerDownLeft:e2,CornerDownRight:t2,CornerLeftDown:i2,CornerLeftUp:a2,CornerRightDown:o2,CornerRightUp:n2,CornerUpLeft:s2,CornerUpRight:r2,Cpu:l2,CreativeCommons:h2,CreditCard:c2,Croissant:d2,Crop:u2,Cross:p2,Crosshair:y2,Crown:f2,Cuboid:m2,CupSoda:g2,Currency:k2,Cylinder:b2,Dam:w2,Database:C2,DatabaseBackup:v2,DatabaseZap:M2,DecimalsArrowLeft:x2,DecimalsArrowRight:L2,Delete:E2,Dessert:I2,Diameter:S2,Diamond:z2,DiamondMinus:T2,DiamondPercent:mi,DiamondPlus:D2,Dice1:R2,Dice2:H2,Dice3:A2,Dice4:V2,Dice5:P2,Dice6:q2,Dices:B2,Diff:F2,Disc:_2,Disc2:O2,Disc3:j2,DiscAlbum:N2,Divide:W2,Dna:U2,DnaOff:$2,Dock:G2,Dog:Y2,DollarSign:Z2,Donut:X2,DoorClosed:J2,DoorClosedLocked:K2,DoorOpen:Q2,Dot:e0,Download:t0,DraftingCompass:i0,Drama:a0,Dribbble:o0,Drill:n0,Droplet:r0,DropletOff:s0,Droplets:l0,Drum:h0,Drumstick:c0,Dumbbell:d0,Ear:p0,EarOff:u0,Earth:gi,EarthLock:f0,Eclipse:y0,Egg:k0,EggFried:m0,EggOff:g0,Ellipsis:bi,EllipsisVertical:ki,Equal:v0,EqualApproximately:b0,EqualNot:w0,Eraser:M0,EthernetPort:C0,Euro:x0,Expand:L0,ExternalLink:E0,Eye:T0,EyeClosed:S0,EyeOff:I0,Facebook:D0,Factory:z0,Fan:R0,FastForward:H0,Feather:A0,Fence:q0,FerrisWheel:V0,Figma:P0,File:Au,FileArchive:B0,FileAudio:O0,FileAudio2:F0,FileAxis3d:wi,FileBadge:N0,FileBadge2:j0,FileBox:_0,FileChartColumn:Mi,FileChartColumnIncreasing:vi,FileChartLine:Ci,FileChartPie:xi,FileCheck:U0,FileCheck2:W0,FileClock:$0,FileCode:Y0,FileCode2:G0,FileCog:Li,FileDiff:Z0,FileDigit:X0,FileDown:K0,FileHeart:J0,FileImage:Q0,FileInput:eu,FileJson:iu,FileJson2:tu,FileKey:ou,FileKey2:au,FileLock:su,FileLock2:nu,FileMinus:ru,FileMinus2:lu,FileMusic:hu,FileOutput:cu,FilePen:Si,FilePenLine:Ei,FilePlus:pu,FilePlus2:du,FileQuestion:uu,FileScan:yu,FileSearch:mu,FileSearch2:fu,FileSliders:gu,FileSpreadsheet:ku,FileStack:bu,FileSymlink:wu,FileTerminal:vu,FileText:Mu,FileType:xu,FileType2:Cu,FileUp:Lu,FileUser:Eu,FileVideo:Iu,FileVideo2:Su,FileVolume:zu,FileVolume2:Tu,FileWarning:Du,FileX:Hu,FileX2:Ru,Files:Pu,Film:Vu,Fingerprint:qu,FireExtinguisher:Bu,Fish:ju,FishOff:Fu,FishSymbol:Ou,Flag:Uu,FlagOff:Nu,FlagTriangleLeft:_u,FlagTriangleRight:Wu,Flame:Gu,FlameKindling:$u,Flashlight:Xu,FlashlightOff:Yu,FlaskConical:Ku,FlaskConicalOff:Zu,FlaskRound:Ju,FlipHorizontal:ep,FlipHorizontal2:Qu,FlipVertical:tp,FlipVertical2:ip,Flower:op,Flower2:ap,Focus:np,FoldHorizontal:sp,FoldVertical:rp,Folder:Vp,FolderArchive:lp,FolderCheck:hp,FolderClock:dp,FolderClosed:cp,FolderCode:up,FolderCog:Ii,FolderDot:pp,FolderDown:yp,FolderGit:mp,FolderGit2:fp,FolderHeart:gp,FolderInput:kp,FolderKanban:bp,FolderKey:wp,FolderLock:vp,FolderMinus:Cp,FolderOpen:xp,FolderOpenDot:Mp,FolderOutput:Ep,FolderPen:Ti,FolderPlus:Lp,FolderRoot:Sp,FolderSearch:Tp,FolderSearch2:Ip,FolderSymlink:zp,FolderSync:Dp,FolderTree:Rp,FolderUp:Hp,FolderX:Ap,Folders:Pp,Footprints:qp,Forklift:Bp,Forward:Op,Frame:Fp,Framer:jp,Frown:Np,Fuel:Wp,Fullscreen:_p,Funnel:zi,FunnelPlus:Up,FunnelX:Di,GalleryHorizontal:Yp,GalleryHorizontalEnd:$p,GalleryThumbnails:Gp,GalleryVertical:Xp,GalleryVerticalEnd:Zp,Gamepad:Kp,Gamepad2:Jp,Gauge:Qp,Gavel:ey,Gem:ty,Ghost:iy,Gift:ay,GitBranch:ny,GitBranchPlus:oy,GitCommitHorizontal:Ri,GitCommitVertical:sy,GitCompare:ly,GitCompareArrows:ry,GitFork:hy,GitGraph:cy,GitMerge:dy,GitPullRequest:gy,GitPullRequestArrow:uy,GitPullRequestClosed:py,GitPullRequestCreate:my,GitPullRequestCreateArrow:yy,GitPullRequestDraft:fy,Github:ky,Gitlab:by,GlassWater:wy,Glasses:vy,Globe:xy,GlobeLock:My,Goal:Cy,Gpu:Ly,Grab:Ey,GraduationCap:Sy,Grape:Iy,Grid2x2:Pi,Grid2x2Check:Hi,Grid2x2Plus:Ai,Grid2x2X:Vi,Grid3x3:Ie,Grip:zy,GripHorizontal:Ty,GripVertical:Dy,Group:Ry,Guitar:Hy,Ham:Ay,Hamburger:Vy,Hammer:Py,Hand:jy,HandCoins:qy,HandHeart:By,HandHelping:qi,HandMetal:Fy,HandPlatter:Oy,Handshake:_y,HardDrive:Uy,HardDriveDownload:Ny,HardDriveUpload:Wy,HardHat:$y,Hash:Gy,Haze:Yy,HdmiPort:Zy,Heading:af,Heading1:Xy,Heading2:Ky,Heading3:Jy,Heading4:tf,Heading5:Qy,Heading6:ef,HeadphoneOff:of,Headphones:nf,Headset:sf,Heart:uf,HeartCrack:rf,HeartHandshake:lf,HeartMinus:hf,HeartOff:cf,HeartPlus:df,HeartPulse:pf,Heater:yf,Hexagon:ff,Highlighter:mf,History:gf,Hop:bf,HopOff:kf,Hospital:wf,Hotel:vf,Hourglass:Mf,House:Bi,HousePlug:Cf,HousePlus:xf,HouseWifi:Lf,IceCreamBowl:Fi,IceCreamCone:Oi,IdCard:Ef,Image:Af,ImageDown:Sf,ImageMinus:If,ImageOff:Df,ImagePlay:Tf,ImagePlus:zf,ImageUp:Hf,ImageUpscale:Rf,Images:Vf,Import:qf,Inbox:Pf,IndentDecrease:ji,IndentIncrease:Ni,IndianRupee:Bf,Infinity:Ff,Info:Of,InspectionPanel:_f,Instagram:jf,Italic:Nf,IterationCcw:Wf,IterationCw:Uf,JapaneseYen:$f,Joystick:Gf,Kanban:Yf,Key:Kf,KeyRound:Xf,KeySquare:Zf,Keyboard:em,KeyboardMusic:Jf,KeyboardOff:Qf,Lamp:sm,LampCeiling:tm,LampDesk:am,LampFloor:im,LampWallDown:om,LampWallUp:nm,LandPlot:rm,Landmark:lm,Languages:hm,Laptop:dm,LaptopMinimal:_i,LaptopMinimalCheck:cm,Lasso:um,LassoSelect:ym,Laugh:pm,Layers:Wi,Layers2:fm,LayoutDashboard:mm,LayoutGrid:gm,LayoutList:km,LayoutPanelLeft:bm,LayoutPanelTop:wm,LayoutTemplate:vm,Leaf:Mm,LeafyGreen:xm,Lectern:Cm,LetterText:Lm,Library:Sm,LibraryBig:Em,LifeBuoy:Im,Ligature:Tm,Lightbulb:zm,LightbulbOff:Dm,Link:Am,Link2:Hm,Link2Off:Rm,Linkedin:Vm,List:Jm,ListCheck:Pm,ListChecks:qm,ListCollapse:Bm,ListEnd:Fm,ListFilter:Nm,ListFilterPlus:Om,ListMinus:jm,ListMusic:_m,ListOrdered:Wm,ListPlus:Um,ListRestart:$m,ListStart:Gm,ListTodo:Ym,ListTree:Zm,ListVideo:Xm,ListX:Km,Loader:eg,LoaderCircle:Ui,LoaderPinwheel:Qm,Locate:ag,LocateFixed:tg,LocateOff:ig,LocationEdit:og,Lock:sg,LockKeyhole:ng,LockKeyholeOpen:$i,LockOpen:Gi,LogIn:rg,LogOut:lg,Logs:hg,Lollipop:cg,Luggage:dg,Magnet:ug,Mail:vg,MailCheck:pg,MailMinus:yg,MailOpen:fg,MailPlus:mg,MailQuestion:gg,MailSearch:kg,MailWarning:bg,MailX:wg,Mailbox:Mg,Mails:Cg,Map:qg,MapPin:Ag,MapPinCheck:Lg,MapPinCheckInside:xg,MapPinHouse:Eg,MapPinMinus:Ig,MapPinMinusInside:Sg,MapPinOff:Tg,MapPinPlus:zg,MapPinPlusInside:Dg,MapPinX:Rg,MapPinXInside:Hg,MapPinned:Vg,MapPlus:Pg,Mars:Fg,MarsStroke:Bg,Martini:Og,Maximize:jg,Maximize2:Ng,Medal:_g,Megaphone:Ug,MegaphoneOff:Wg,Meh:$g,MemoryStick:Yg,Menu:Gg,Merge:Zg,MessageCircle:sk,MessageCircleCode:Xg,MessageCircleDashed:Kg,MessageCircleHeart:Jg,MessageCircleMore:Qg,MessageCircleOff:ek,MessageCirclePlus:tk,MessageCircleQuestion:ik,MessageCircleReply:ak,MessageCircleWarning:ok,MessageCircleX:nk,MessageSquare:Mk,MessageSquareCode:rk,MessageSquareDashed:lk,MessageSquareDiff:hk,MessageSquareDot:ck,MessageSquareHeart:dk,MessageSquareLock:uk,MessageSquareMore:pk,MessageSquareOff:yk,MessageSquarePlus:fk,MessageSquareQuote:mk,MessageSquareReply:gk,MessageSquareShare:kk,MessageSquareText:bk,MessageSquareWarning:wk,MessageSquareX:vk,MessagesSquare:Ck,Mic:Lk,MicOff:xk,MicVocal:Yi,Microchip:Ek,Microscope:Sk,Microwave:Ik,Milestone:Tk,Milk:zk,MilkOff:Dk,Minimize:Hk,Minimize2:Rk,Minus:Ak,Monitor:Gk,MonitorCheck:Vk,MonitorCog:qk,MonitorDot:Pk,MonitorDown:Bk,MonitorOff:Fk,MonitorPause:Ok,MonitorPlay:jk,MonitorSmartphone:Nk,MonitorSpeaker:Wk,MonitorStop:_k,MonitorUp:Uk,MonitorX:$k,Moon:Zk,MoonStar:Yk,Mountain:Kk,MountainSnow:Xk,Mouse:n3,MouseOff:Jk,MousePointer:i3,MousePointer2:Qk,MousePointerBan:e3,MousePointerClick:t3,Move:m3,Move3d:Zi,MoveDiagonal:o3,MoveDiagonal2:a3,MoveDown:l3,MoveDownLeft:s3,MoveDownRight:r3,MoveHorizontal:c3,MoveLeft:h3,MoveRight:d3,MoveUp:y3,MoveUpLeft:u3,MoveUpRight:p3,MoveVertical:f3,Music:w3,Music2:g3,Music3:k3,Music4:b3,Navigation:x3,Navigation2:M3,Navigation2Off:v3,NavigationOff:C3,Network:L3,Newspaper:E3,Nfc:S3,NonBinary:I3,Notebook:R3,NotebookPen:T3,NotebookTabs:D3,NotebookText:z3,NotepadText:A3,NotepadTextDashed:H3,Nut:P3,NutOff:V3,Octagon:B3,OctagonAlert:Xi,OctagonMinus:q3,OctagonPause:Ji,OctagonX:Ki,Omega:F3,Option:O3,Orbit:N3,Origami:j3,Package:X3,Package2:_3,PackageCheck:W3,PackageMinus:U3,PackageOpen:$3,PackagePlus:G3,PackageSearch:Y3,PackageX:Z3,PaintBucket:K3,PaintRoller:J3,Paintbrush:Q3,PaintbrushVertical:Qi,Palette:e4,Panda:t4,PanelBottom:o4,PanelBottomClose:i4,PanelBottomDashed:ea,PanelBottomOpen:a4,PanelLeft:oa,PanelLeftClose:ta,PanelLeftDashed:ia,PanelLeftOpen:aa,PanelRight:l4,PanelRightClose:n4,PanelRightDashed:na,PanelRightOpen:s4,PanelTop:c4,PanelTopClose:r4,PanelTopDashed:sa,PanelTopOpen:h4,PanelsLeftBottom:d4,PanelsRightBottom:u4,PanelsTopLeft:ra,Paperclip:p4,Parentheses:y4,ParkingMeter:f4,PartyPopper:m4,Pause:g4,PawPrint:k4,PcCase:b4,Pen:ha,PenLine:la,PenOff:w4,PenTool:v4,Pencil:L4,PencilLine:C4,PencilOff:M4,PencilRuler:x4,Pentagon:E4,Percent:S4,PersonStanding:I4,PhilippinePeso:D4,Phone:P4,PhoneCall:T4,PhoneForwarded:z4,PhoneIncoming:R4,PhoneMissed:H4,PhoneOff:A4,PhoneOutgoing:V4,Pi:q4,Piano:B4,Pickaxe:F4,PictureInPicture:j4,PictureInPicture2:O4,PiggyBank:N4,Pilcrow:U4,PilcrowLeft:_4,PilcrowRight:W4,Pill:G4,PillBottle:$4,Pin:Z4,PinOff:Y4,Pipette:X4,Pizza:K4,Plane:e5,PlaneLanding:J4,PlaneTakeoff:Q4,Play:t5,Plug:a5,Plug2:i5,PlugZap:ca,Plus:o5,Pocket:n5,PocketKnife:s5,Podcast:r5,Pointer:h5,PointerOff:l5,Popcorn:c5,Popsicle:d5,PoundSterling:u5,Power:y5,PowerOff:p5,Presentation:f5,Printer:g5,PrinterCheck:m5,Projector:k5,Proportions:b5,Puzzle:w5,Pyramid:v5,QrCode:M5,Quote:x5,Rabbit:C5,Radar:L5,Radiation:E5,Radical:S5,Radio:D5,RadioReceiver:I5,RadioTower:T5,Radius:z5,RailSymbol:R5,Rainbow:H5,Rat:A5,Ratio:V5,Receipt:W5,ReceiptCent:P5,ReceiptEuro:q5,ReceiptIndianRupee:F5,ReceiptJapaneseYen:B5,ReceiptPoundSterling:j5,ReceiptRussianRuble:O5,ReceiptSwissFranc:N5,ReceiptText:_5,RectangleEllipsis:da,RectangleGoggles:U5,RectangleHorizontal:$5,RectangleVertical:G5,Recycle:Y5,Redo:K5,Redo2:Z5,RedoDot:X5,RefreshCcw:Q5,RefreshCcwDot:J5,RefreshCw:tb,RefreshCwOff:eb,Refrigerator:ab,Regex:ib,RemoveFormatting:ob,Repeat:rb,Repeat1:nb,Repeat2:sb,Replace:hb,ReplaceAll:lb,Reply:db,ReplyAll:cb,Rewind:ub,Ribbon:pb,Rocket:yb,RockingChair:fb,RollerCoaster:mb,Rotate3d:ua,RotateCcw:bb,RotateCcwKey:gb,RotateCcwSquare:kb,RotateCw:vb,RotateCwSquare:wb,Route:xb,RouteOff:Mb,Router:Cb,Rows2:pa,Rows3:ya,Rows4:Lb,Rss:Eb,Ruler:Ib,RulerDimensionLine:Sb,RussianRuble:Tb,Sailboat:Db,Salad:zb,Sandwich:Rb,Satellite:Ab,SatelliteDish:Hb,SaudiRiyal:Vb,Save:Bb,SaveAll:Pb,SaveOff:qb,Scale:Fb,Scale3d:fa,Scaling:Ob,Scan:Yb,ScanBarcode:jb,ScanEye:_b,ScanFace:Nb,ScanHeart:Wb,ScanLine:$b,ScanQrCode:Ub,ScanSearch:Gb,ScanText:Zb,School:Xb,Scissors:Jb,ScissorsLineDashed:Kb,ScreenShare:ew,ScreenShareOff:Qb,Scroll:iw,ScrollText:tw,Search:rw,SearchCheck:aw,SearchCode:ow,SearchSlash:nw,SearchX:sw,Section:lw,Send:dw,SendHorizontal:ma,SendToBack:hw,SeparatorHorizontal:cw,SeparatorVertical:pw,Server:mw,ServerCog:uw,ServerCrash:yw,ServerOff:fw,Settings:kw,Settings2:gw,Shapes:bw,Share:vw,Share2:ww,Sheet:Mw,Shell:Cw,Shield:Aw,ShieldAlert:xw,ShieldBan:Lw,ShieldCheck:Ew,ShieldEllipsis:Sw,ShieldHalf:Iw,ShieldMinus:Tw,ShieldOff:Dw,ShieldPlus:zw,ShieldQuestion:Rw,ShieldUser:Hw,ShieldX:ga,Ship:Vw,ShipWheel:qw,Shirt:Pw,ShoppingBag:Bw,ShoppingBasket:Fw,ShoppingCart:Ow,Shovel:jw,ShowerHead:Nw,Shredder:_w,Shrimp:Ww,Shrink:Uw,Shrub:$w,Shuffle:Gw,Sigma:Yw,Signal:Qw,SignalHigh:Zw,SignalLow:Xw,SignalMedium:Kw,SignalZero:Jw,Signature:ev,Signpost:iv,SignpostBig:tv,Siren:av,SkipBack:ov,SkipForward:nv,Skull:sv,Slack:rv,Slash:lv,Slice:cv,SlidersHorizontal:hv,SlidersVertical:ka,Smartphone:pv,SmartphoneCharging:dv,SmartphoneNfc:uv,Smile:fv,SmilePlus:yv,Snail:mv,Snowflake:gv,SoapDispenserDroplet:kv,Sofa:bv,Soup:wv,Space:vv,Spade:Mv,Sparkle:Cv,Sparkles:ba,Speaker:xv,Speech:Lv,SpellCheck:Sv,SpellCheck2:Ev,Spline:Tv,SplinePointer:Iv,Split:zv,SprayCan:Dv,Sprout:Rv,Square:Ov,SquareActivity:wa,SquareArrowDown:Ca,SquareArrowDownLeft:va,SquareArrowDownRight:Ma,SquareArrowLeft:xa,SquareArrowOutDownLeft:La,SquareArrowOutDownRight:Ea,SquareArrowOutUpLeft:Sa,SquareArrowOutUpRight:Ia,SquareArrowRight:Ta,SquareArrowUp:Ra,SquareArrowUpLeft:za,SquareArrowUpRight:Da,SquareAsterisk:Ha,SquareBottomDashedScissors:Aa,SquareChartGantt:Te,SquareCheck:Pa,SquareCheckBig:Va,SquareChevronDown:qa,SquareChevronLeft:Ba,SquareChevronRight:Fa,SquareChevronUp:Oa,SquareCode:ja,SquareDashed:Wa,SquareDashedBottom:Av,SquareDashedBottomCode:Hv,SquareDashedKanban:Na,SquareDashedMousePointer:_a,SquareDashedTopSolid:Vv,SquareDivide:Ua,SquareDot:$a,SquareEqual:Ga,SquareFunction:Ya,SquareKanban:Za,SquareLibrary:Xa,SquareM:Ka,SquareMenu:Ja,SquareMinus:Qa,SquareMousePointer:eo,SquareParking:io,SquareParkingOff:to,SquarePen:ue,SquarePercent:ao,SquarePi:oo,SquarePilcrow:no,SquarePlay:so,SquarePlus:ro,SquarePower:lo,SquareRadical:Pv,SquareRoundCorner:qv,SquareScissors:ho,SquareSigma:co,SquareSlash:po,SquareSplitHorizontal:uo,SquareSplitVertical:yo,SquareSquare:Bv,SquareStack:Fv,SquareTerminal:fo,SquareUser:go,SquareUserRound:mo,SquareX:ko,SquaresExclude:Nv,SquaresIntersect:jv,SquaresSubtract:_v,SquaresUnite:Wv,Squircle:Uv,Squirrel:$v,Stamp:Gv,Star:Xv,StarHalf:Yv,StarOff:Zv,StepBack:Kv,StepForward:Jv,Stethoscope:Qv,Sticker:e6,StickyNote:t6,Store:i6,StretchHorizontal:a6,StretchVertical:o6,Strikethrough:n6,Subscript:s6,Sun:d6,SunDim:l6,SunMedium:r6,SunMoon:h6,SunSnow:c6,Sunrise:u6,Sunset:p6,Superscript:y6,SwatchBook:f6,SwissFranc:m6,SwitchCamera:g6,Sword:k6,Swords:b6,Syringe:w6,Table:I6,Table2:v6,TableCellsMerge:M6,TableCellsSplit:C6,TableColumnsSplit:x6,TableOfContents:L6,TableProperties:E6,TableRowsSplit:S6,Tablet:D6,TabletSmartphone:T6,Tablets:z6,Tag:R6,Tags:H6,Tally1:A6,Tally2:V6,Tally3:P6,Tally4:q6,Tally5:B6,Tangent:F6,Target:O6,Telescope:j6,Tent:_6,TentTree:N6,Terminal:W6,TestTube:U6,TestTubeDiagonal:bo,TestTubes:$6,Text:K6,TextCursor:Y6,TextCursorInput:G6,TextQuote:Z6,TextSearch:X6,TextSelect:wo,Theater:J6,Thermometer:t8,ThermometerSnowflake:Q6,ThermometerSun:e8,ThumbsDown:i8,ThumbsUp:a8,Ticket:c8,TicketCheck:o8,TicketMinus:n8,TicketPercent:s8,TicketPlus:r8,TicketSlash:l8,TicketX:h8,Tickets:p8,TicketsPlane:d8,Timer:f8,TimerOff:u8,TimerReset:y8,ToggleLeft:m8,ToggleRight:g8,Toilet:k8,Tornado:b8,Torus:w8,Touchpad:M8,TouchpadOff:v8,TowerControl:C8,ToyBrick:x8,Tractor:L8,TrafficCone:E8,TrainFront:I8,TrainFrontTunnel:S8,TrainTrack:T8,TramFront:vo,Transgender:D8,Trash:R8,Trash2:z8,TreeDeciduous:H8,TreePalm:Mo,TreePine:A8,Trees:V8,Trello:P8,TrendingDown:q8,TrendingUp:F8,TrendingUpDown:B8,Triangle:N8,TriangleAlert:Co,TriangleDashed:O8,TriangleRight:j8,Trophy:_8,Truck:W8,TruckElectric:U8,Turtle:$8,Tv:Y8,TvMinimal:xo,TvMinimalPlay:G8,Twitch:Z8,Twitter:X8,Type:J8,TypeOutline:K8,Umbrella:eM,UmbrellaOff:Q8,Underline:tM,Undo:oM,Undo2:aM,UndoDot:iM,UnfoldHorizontal:nM,UnfoldVertical:sM,Ungroup:rM,University:Lo,Unlink:hM,Unlink2:lM,Unplug:cM,Upload:dM,Usb:uM,User:CM,UserCheck:pM,UserCog:yM,UserLock:fM,UserMinus:mM,UserPen:gM,UserPlus:kM,UserRound:zo,UserRoundCheck:Eo,UserRoundCog:So,UserRoundMinus:Io,UserRoundPen:bM,UserRoundPlus:To,UserRoundSearch:wM,UserRoundX:Do,UserSearch:vM,UserX:MM,Users:xM,UsersRound:Ro,Utensils:Ao,UtensilsCrossed:Ho,UtilityPole:LM,Variable:EM,Vault:SM,Vegan:IM,VenetianMask:TM,Venus:zM,VenusAndMars:DM,Vibrate:HM,VibrateOff:RM,Video:PM,VideoOff:AM,Videotape:VM,View:qM,Voicemail:BM,Volleyball:FM,Volume:_M,Volume1:OM,Volume2:jM,VolumeOff:NM,VolumeX:WM,Vote:UM,Wallet:GM,WalletCards:$M,WalletMinimal:Vo,Wallpaper:YM,Wand:ZM,WandSparkles:Po,Warehouse:XM,WashingMachine:KM,Watch:JM,Waves:e7,WavesLadder:QM,Waypoints:t7,Webcam:i7,Webhook:a7,WebhookOff:o7,Weight:n7,Wheat:s7,WheatOff:r7,WholeWord:h7,Wifi:p7,WifiHigh:l7,WifiLow:c7,WifiOff:d7,WifiPen:u7,WifiZero:y7,Wind:m7,WindArrowDown:f7,Wine:k7,WineOff:g7,Workflow:b7,Worm:w7,WrapText:v7,Wrench:M7,X:C7,Youtube:x7,Zap:E7,ZapOff:L7,ZoomIn:S7,ZoomOut:I7},Symbol.toStringTag,{value:"Module"}));/**
8020
8020
  * @license lucide-vue-next v0.511.0 - ISC
8021
8021
  *
8022
8022
  * This source code is licensed under the ISC license.
8023
8023
  * See the LICENSE file in the root directory of this source tree.
8024
- */const MT=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Bn,AArrowDownIcon:Bn,AArrowUp:Fn,AArrowUpIcon:Fn,ALargeSmall:On,ALargeSmallIcon:On,Accessibility:jn,AccessibilityIcon:jn,Activity:Nn,ActivityIcon:Nn,ActivitySquare:wa,ActivitySquareIcon:wa,AirVent:Wn,AirVentIcon:Wn,Airplay:_n,AirplayIcon:_n,AlarmCheck:it,AlarmCheckIcon:it,AlarmClock:Gn,AlarmClockCheck:it,AlarmClockCheckIcon:it,AlarmClockIcon:Gn,AlarmClockMinus:at,AlarmClockMinusIcon:at,AlarmClockOff:Un,AlarmClockOffIcon:Un,AlarmClockPlus:ot,AlarmClockPlusIcon:ot,AlarmMinus:at,AlarmMinusIcon:at,AlarmPlus:ot,AlarmPlusIcon:ot,AlarmSmoke:$n,AlarmSmokeIcon:$n,Album:Yn,AlbumIcon:Yn,AlertCircle:Rt,AlertCircleIcon:Rt,AlertOctagon:Xi,AlertOctagonIcon:Xi,AlertTriangle:Co,AlertTriangleIcon:Co,AlignCenter:Kn,AlignCenterHorizontal:Zn,AlignCenterHorizontalIcon:Zn,AlignCenterIcon:Kn,AlignCenterVertical:Xn,AlignCenterVerticalIcon:Xn,AlignEndHorizontal:Jn,AlignEndHorizontalIcon:Jn,AlignEndVertical:Qn,AlignEndVerticalIcon:Qn,AlignHorizontalDistributeCenter:es,AlignHorizontalDistributeCenterIcon:es,AlignHorizontalDistributeEnd:ts,AlignHorizontalDistributeEndIcon:ts,AlignHorizontalDistributeStart:is,AlignHorizontalDistributeStartIcon:is,AlignHorizontalJustifyCenter:as,AlignHorizontalJustifyCenterIcon:as,AlignHorizontalJustifyEnd:os,AlignHorizontalJustifyEndIcon:os,AlignHorizontalJustifyStart:ns,AlignHorizontalJustifyStartIcon:ns,AlignHorizontalSpaceAround:ss,AlignHorizontalSpaceAroundIcon:ss,AlignHorizontalSpaceBetween:rs,AlignHorizontalSpaceBetweenIcon:rs,AlignJustify:ls,AlignJustifyIcon:ls,AlignLeft:hs,AlignLeftIcon:hs,AlignRight:ds,AlignRightIcon:ds,AlignStartHorizontal:cs,AlignStartHorizontalIcon:cs,AlignStartVertical:us,AlignStartVerticalIcon:us,AlignVerticalDistributeCenter:ps,AlignVerticalDistributeCenterIcon:ps,AlignVerticalDistributeEnd:ys,AlignVerticalDistributeEndIcon:ys,AlignVerticalDistributeStart:fs,AlignVerticalDistributeStartIcon:fs,AlignVerticalJustifyCenter:ms,AlignVerticalJustifyCenterIcon:ms,AlignVerticalJustifyEnd:gs,AlignVerticalJustifyEndIcon:gs,AlignVerticalJustifyStart:ks,AlignVerticalJustifyStartIcon:ks,AlignVerticalSpaceAround:bs,AlignVerticalSpaceAroundIcon:bs,AlignVerticalSpaceBetween:ws,AlignVerticalSpaceBetweenIcon:ws,Ambulance:vs,AmbulanceIcon:vs,Ampersand:Ms,AmpersandIcon:Ms,Ampersands:Cs,AmpersandsIcon:Cs,Amphora:xs,AmphoraIcon:xs,Anchor:Es,AnchorIcon:Es,Angry:Ls,AngryIcon:Ls,Annoyed:Ss,AnnoyedIcon:Ss,Antenna:Is,AntennaIcon:Is,Anvil:Ts,AnvilIcon:Ts,Aperture:Ds,ApertureIcon:Ds,AppWindow:Rs,AppWindowIcon:Rs,AppWindowMac:zs,AppWindowMacIcon:zs,Apple:Hs,AppleIcon:Hs,Archive:Ps,ArchiveIcon:Ps,ArchiveRestore:As,ArchiveRestoreIcon:As,ArchiveX:Vs,ArchiveXIcon:Vs,AreaChart:kt,AreaChartIcon:kt,Armchair:Bs,ArmchairIcon:Bs,ArrowBigDown:Fs,ArrowBigDownDash:qs,ArrowBigDownDashIcon:qs,ArrowBigDownIcon:Fs,ArrowBigLeft:js,ArrowBigLeftDash:Os,ArrowBigLeftDashIcon:Os,ArrowBigLeftIcon:js,ArrowBigRight:_s,ArrowBigRightDash:Ns,ArrowBigRightDashIcon:Ns,ArrowBigRightIcon:_s,ArrowBigUp:Us,ArrowBigUpDash:Ws,ArrowBigUpDashIcon:Ws,ArrowBigUpIcon:Us,ArrowDown:tr,ArrowDown01:Gs,ArrowDown01Icon:Gs,ArrowDown10:$s,ArrowDown10Icon:$s,ArrowDownAZ:nt,ArrowDownAZIcon:nt,ArrowDownAz:nt,ArrowDownAzIcon:nt,ArrowDownCircle:zt,ArrowDownCircleIcon:zt,ArrowDownFromLine:Ys,ArrowDownFromLineIcon:Ys,ArrowDownIcon:tr,ArrowDownLeft:Zs,ArrowDownLeftFromCircle:At,ArrowDownLeftFromCircleIcon:At,ArrowDownLeftFromSquare:La,ArrowDownLeftFromSquareIcon:La,ArrowDownLeftIcon:Zs,ArrowDownLeftSquare:va,ArrowDownLeftSquareIcon:va,ArrowDownNarrowWide:Xs,ArrowDownNarrowWideIcon:Xs,ArrowDownRight:Ks,ArrowDownRightFromCircle:Vt,ArrowDownRightFromCircleIcon:Vt,ArrowDownRightFromSquare:Ea,ArrowDownRightFromSquareIcon:Ea,ArrowDownRightIcon:Ks,ArrowDownRightSquare:Ma,ArrowDownRightSquareIcon:Ma,ArrowDownSquare:Ca,ArrowDownSquareIcon:Ca,ArrowDownToDot:Js,ArrowDownToDotIcon:Js,ArrowDownToLine:er,ArrowDownToLineIcon:er,ArrowDownUp:Qs,ArrowDownUpIcon:Qs,ArrowDownWideNarrow:st,ArrowDownWideNarrowIcon:st,ArrowDownZA:rt,ArrowDownZAIcon:rt,ArrowDownZa:rt,ArrowDownZaIcon:rt,ArrowLeft:nr,ArrowLeftCircle:Ht,ArrowLeftCircleIcon:Ht,ArrowLeftFromLine:ir,ArrowLeftFromLineIcon:ir,ArrowLeftIcon:nr,ArrowLeftRight:ar,ArrowLeftRightIcon:ar,ArrowLeftSquare:xa,ArrowLeftSquareIcon:xa,ArrowLeftToLine:or,ArrowLeftToLineIcon:or,ArrowRight:hr,ArrowRightCircle:Bt,ArrowRightCircleIcon:Bt,ArrowRightFromLine:sr,ArrowRightFromLineIcon:sr,ArrowRightIcon:hr,ArrowRightLeft:rr,ArrowRightLeftIcon:rr,ArrowRightSquare:Ta,ArrowRightSquareIcon:Ta,ArrowRightToLine:lr,ArrowRightToLineIcon:lr,ArrowUp:br,ArrowUp01:cr,ArrowUp01Icon:cr,ArrowUp10:ur,ArrowUp10Icon:ur,ArrowUpAZ:lt,ArrowUpAZIcon:lt,ArrowUpAz:lt,ArrowUpAzIcon:lt,ArrowUpCircle:Ft,ArrowUpCircleIcon:Ft,ArrowUpDown:dr,ArrowUpDownIcon:dr,ArrowUpFromDot:pr,ArrowUpFromDotIcon:pr,ArrowUpFromLine:yr,ArrowUpFromLineIcon:yr,ArrowUpIcon:br,ArrowUpLeft:fr,ArrowUpLeftFromCircle:Pt,ArrowUpLeftFromCircleIcon:Pt,ArrowUpLeftFromSquare:Sa,ArrowUpLeftFromSquareIcon:Sa,ArrowUpLeftIcon:fr,ArrowUpLeftSquare:za,ArrowUpLeftSquareIcon:za,ArrowUpNarrowWide:ht,ArrowUpNarrowWideIcon:ht,ArrowUpRight:mr,ArrowUpRightFromCircle:qt,ArrowUpRightFromCircleIcon:qt,ArrowUpRightFromSquare:Ia,ArrowUpRightFromSquareIcon:Ia,ArrowUpRightIcon:mr,ArrowUpRightSquare:Da,ArrowUpRightSquareIcon:Da,ArrowUpSquare:Ra,ArrowUpSquareIcon:Ra,ArrowUpToLine:gr,ArrowUpToLineIcon:gr,ArrowUpWideNarrow:kr,ArrowUpWideNarrowIcon:kr,ArrowUpZA:ct,ArrowUpZAIcon:ct,ArrowUpZa:ct,ArrowUpZaIcon:ct,ArrowsUpFromLine:wr,ArrowsUpFromLineIcon:wr,Asterisk:vr,AsteriskIcon:vr,AsteriskSquare:Ha,AsteriskSquareIcon:Ha,AtSign:Mr,AtSignIcon:Mr,Atom:Cr,AtomIcon:Cr,AudioLines:xr,AudioLinesIcon:xr,AudioWaveform:Lr,AudioWaveformIcon:Lr,Award:Er,AwardIcon:Er,Axe:Sr,AxeIcon:Sr,Axis3D:dt,Axis3DIcon:dt,Axis3d:dt,Axis3dIcon:dt,Baby:Ir,BabyIcon:Ir,Backpack:Tr,BackpackIcon:Tr,Badge:Ur,BadgeAlert:Dr,BadgeAlertIcon:Dr,BadgeCent:zr,BadgeCentIcon:zr,BadgeCheck:ut,BadgeCheckIcon:ut,BadgeDollarSign:Rr,BadgeDollarSignIcon:Rr,BadgeEuro:Hr,BadgeEuroIcon:Hr,BadgeHelp:Ar,BadgeHelpIcon:Ar,BadgeIcon:Ur,BadgeIndianRupee:Vr,BadgeIndianRupeeIcon:Vr,BadgeInfo:Pr,BadgeInfoIcon:Pr,BadgeJapaneseYen:qr,BadgeJapaneseYenIcon:qr,BadgeMinus:Br,BadgeMinusIcon:Br,BadgePercent:Fr,BadgePercentIcon:Fr,BadgePlus:Or,BadgePlusIcon:Or,BadgePoundSterling:jr,BadgePoundSterlingIcon:jr,BadgeRussianRuble:Nr,BadgeRussianRubleIcon:Nr,BadgeSwissFranc:_r,BadgeSwissFrancIcon:_r,BadgeX:Wr,BadgeXIcon:Wr,BaggageClaim:Gr,BaggageClaimIcon:Gr,Ban:$r,BanIcon:$r,Banana:Yr,BananaIcon:Yr,Bandage:Zr,BandageIcon:Zr,Banknote:Qr,BanknoteArrowDown:Xr,BanknoteArrowDownIcon:Xr,BanknoteArrowUp:Kr,BanknoteArrowUpIcon:Kr,BanknoteIcon:Qr,BanknoteX:Jr,BanknoteXIcon:Jr,BarChart:Et,BarChart2:St,BarChart2Icon:St,BarChart3:xt,BarChart3Icon:xt,BarChart4:Ct,BarChart4Icon:Ct,BarChartBig:Mt,BarChartBigIcon:Mt,BarChartHorizontal:wt,BarChartHorizontalBig:bt,BarChartHorizontalBigIcon:bt,BarChartHorizontalIcon:wt,BarChartIcon:Et,Barcode:el,BarcodeIcon:el,Baseline:tl,BaselineIcon:tl,Bath:il,BathIcon:il,Battery:hl,BatteryCharging:al,BatteryChargingIcon:al,BatteryFull:ol,BatteryFullIcon:ol,BatteryIcon:hl,BatteryLow:nl,BatteryLowIcon:nl,BatteryMedium:sl,BatteryMediumIcon:sl,BatteryPlus:rl,BatteryPlusIcon:rl,BatteryWarning:ll,BatteryWarningIcon:ll,Beaker:cl,BeakerIcon:cl,Bean:ul,BeanIcon:ul,BeanOff:dl,BeanOffIcon:dl,Bed:fl,BedDouble:pl,BedDoubleIcon:pl,BedIcon:fl,BedSingle:yl,BedSingleIcon:yl,Beef:gl,BeefIcon:gl,Beer:kl,BeerIcon:kl,BeerOff:ml,BeerOffIcon:ml,Bell:Ll,BellDot:bl,BellDotIcon:bl,BellElectric:wl,BellElectricIcon:wl,BellIcon:Ll,BellMinus:vl,BellMinusIcon:vl,BellOff:Ml,BellOffIcon:Ml,BellPlus:Cl,BellPlusIcon:Cl,BellRing:xl,BellRingIcon:xl,BetweenHorizonalEnd:pt,BetweenHorizonalEndIcon:pt,BetweenHorizonalStart:yt,BetweenHorizonalStartIcon:yt,BetweenHorizontalEnd:pt,BetweenHorizontalEndIcon:pt,BetweenHorizontalStart:yt,BetweenHorizontalStartIcon:yt,BetweenVerticalEnd:El,BetweenVerticalEndIcon:El,BetweenVerticalStart:Sl,BetweenVerticalStartIcon:Sl,BicepsFlexed:Il,BicepsFlexedIcon:Il,Bike:Tl,BikeIcon:Tl,Binary:Dl,BinaryIcon:Dl,Binoculars:zl,BinocularsIcon:zl,Biohazard:Rl,BiohazardIcon:Rl,Bird:Hl,BirdIcon:Hl,Bitcoin:Al,BitcoinIcon:Al,Blend:Vl,BlendIcon:Vl,Blinds:Pl,BlindsIcon:Pl,Blocks:ql,BlocksIcon:ql,Bluetooth:jl,BluetoothConnected:Bl,BluetoothConnectedIcon:Bl,BluetoothIcon:jl,BluetoothOff:Fl,BluetoothOffIcon:Fl,BluetoothSearching:Ol,BluetoothSearchingIcon:Ol,Bold:Nl,BoldIcon:Nl,Bolt:_l,BoltIcon:_l,Bomb:Wl,BombIcon:Wl,Bone:Ul,BoneIcon:Ul,Book:y1,BookA:Gl,BookAIcon:Gl,BookAudio:$l,BookAudioIcon:$l,BookCheck:Yl,BookCheckIcon:Yl,BookCopy:Zl,BookCopyIcon:Zl,BookDashed:ft,BookDashedIcon:ft,BookDown:Kl,BookDownIcon:Kl,BookHeadphones:Xl,BookHeadphonesIcon:Xl,BookHeart:Jl,BookHeartIcon:Jl,BookIcon:y1,BookImage:Ql,BookImageIcon:Ql,BookKey:e1,BookKeyIcon:e1,BookLock:t1,BookLockIcon:t1,BookMarked:i1,BookMarkedIcon:i1,BookMinus:a1,BookMinusIcon:a1,BookOpen:s1,BookOpenCheck:n1,BookOpenCheckIcon:n1,BookOpenIcon:s1,BookOpenText:o1,BookOpenTextIcon:o1,BookPlus:r1,BookPlusIcon:r1,BookTemplate:ft,BookTemplateIcon:ft,BookText:l1,BookTextIcon:l1,BookType:h1,BookTypeIcon:h1,BookUp:d1,BookUp2:c1,BookUp2Icon:c1,BookUpIcon:d1,BookUser:u1,BookUserIcon:u1,BookX:p1,BookXIcon:p1,Bookmark:b1,BookmarkCheck:f1,BookmarkCheckIcon:f1,BookmarkIcon:b1,BookmarkMinus:m1,BookmarkMinusIcon:m1,BookmarkPlus:g1,BookmarkPlusIcon:g1,BookmarkX:k1,BookmarkXIcon:k1,BoomBox:w1,BoomBoxIcon:w1,Bot:C1,BotIcon:C1,BotMessageSquare:v1,BotMessageSquareIcon:v1,BotOff:M1,BotOffIcon:M1,BowArrow:x1,BowArrowIcon:x1,Box:L1,BoxIcon:L1,BoxSelect:Wa,BoxSelectIcon:Wa,Boxes:E1,BoxesIcon:E1,Braces:mt,BracesIcon:mt,Brackets:S1,BracketsIcon:S1,Brain:D1,BrainCircuit:I1,BrainCircuitIcon:I1,BrainCog:T1,BrainCogIcon:T1,BrainIcon:D1,BrickWall:R1,BrickWallFire:z1,BrickWallFireIcon:z1,BrickWallIcon:R1,Briefcase:P1,BriefcaseBusiness:H1,BriefcaseBusinessIcon:H1,BriefcaseConveyorBelt:A1,BriefcaseConveyorBeltIcon:A1,BriefcaseIcon:P1,BriefcaseMedical:V1,BriefcaseMedicalIcon:V1,BringToFront:q1,BringToFrontIcon:q1,Brush:F1,BrushCleaning:B1,BrushCleaningIcon:B1,BrushIcon:F1,Bubbles:O1,BubblesIcon:O1,Bug:_1,BugIcon:_1,BugOff:j1,BugOffIcon:j1,BugPlay:N1,BugPlayIcon:N1,Building:U1,Building2:W1,Building2Icon:W1,BuildingIcon:U1,Bus:$1,BusFront:G1,BusFrontIcon:G1,BusIcon:$1,Cable:Z1,CableCar:Y1,CableCarIcon:Y1,CableIcon:Z1,Cake:K1,CakeIcon:K1,CakeSlice:X1,CakeSliceIcon:X1,Calculator:J1,CalculatorIcon:J1,Calendar:bh,Calendar1:Q1,Calendar1Icon:Q1,CalendarArrowDown:eh,CalendarArrowDownIcon:eh,CalendarArrowUp:th,CalendarArrowUpIcon:th,CalendarCheck:ah,CalendarCheck2:ih,CalendarCheck2Icon:ih,CalendarCheckIcon:ah,CalendarClock:oh,CalendarClockIcon:oh,CalendarCog:nh,CalendarCogIcon:nh,CalendarDays:sh,CalendarDaysIcon:sh,CalendarFold:rh,CalendarFoldIcon:rh,CalendarHeart:lh,CalendarHeartIcon:lh,CalendarIcon:bh,CalendarMinus:ch,CalendarMinus2:hh,CalendarMinus2Icon:hh,CalendarMinusIcon:ch,CalendarOff:dh,CalendarOffIcon:dh,CalendarPlus:ph,CalendarPlus2:uh,CalendarPlus2Icon:uh,CalendarPlusIcon:ph,CalendarRange:yh,CalendarRangeIcon:yh,CalendarSearch:fh,CalendarSearchIcon:fh,CalendarSync:mh,CalendarSyncIcon:mh,CalendarX:kh,CalendarX2:gh,CalendarX2Icon:gh,CalendarXIcon:kh,Camera:vh,CameraIcon:vh,CameraOff:wh,CameraOffIcon:wh,CandlestickChart:vt,CandlestickChartIcon:vt,Candy:xh,CandyCane:Mh,CandyCaneIcon:Mh,CandyIcon:xh,CandyOff:Ch,CandyOffIcon:Ch,Cannabis:Lh,CannabisIcon:Lh,Captions:gt,CaptionsIcon:gt,CaptionsOff:Eh,CaptionsOffIcon:Eh,Car:Th,CarFront:Sh,CarFrontIcon:Sh,CarIcon:Th,CarTaxiFront:Ih,CarTaxiFrontIcon:Ih,Caravan:Dh,CaravanIcon:Dh,Carrot:zh,CarrotIcon:zh,CaseLower:Rh,CaseLowerIcon:Rh,CaseSensitive:Hh,CaseSensitiveIcon:Hh,CaseUpper:Ah,CaseUpperIcon:Ah,CassetteTape:Vh,CassetteTapeIcon:Vh,Cast:Ph,CastIcon:Ph,Castle:qh,CastleIcon:qh,Cat:Bh,CatIcon:Bh,Cctv:Fh,CctvIcon:Fh,ChartArea:kt,ChartAreaIcon:kt,ChartBar:wt,ChartBarBig:bt,ChartBarBigIcon:bt,ChartBarDecreasing:Oh,ChartBarDecreasingIcon:Oh,ChartBarIcon:wt,ChartBarIncreasing:jh,ChartBarIncreasingIcon:jh,ChartBarStacked:Nh,ChartBarStackedIcon:Nh,ChartCandlestick:vt,ChartCandlestickIcon:vt,ChartColumn:xt,ChartColumnBig:Mt,ChartColumnBigIcon:Mt,ChartColumnDecreasing:_h,ChartColumnDecreasingIcon:_h,ChartColumnIcon:xt,ChartColumnIncreasing:Ct,ChartColumnIncreasingIcon:Ct,ChartColumnStacked:Wh,ChartColumnStackedIcon:Wh,ChartGantt:Uh,ChartGanttIcon:Uh,ChartLine:Lt,ChartLineIcon:Lt,ChartNetwork:Gh,ChartNetworkIcon:Gh,ChartNoAxesColumn:St,ChartNoAxesColumnDecreasing:$h,ChartNoAxesColumnDecreasingIcon:$h,ChartNoAxesColumnIcon:St,ChartNoAxesColumnIncreasing:Et,ChartNoAxesColumnIncreasingIcon:Et,ChartNoAxesCombined:Yh,ChartNoAxesCombinedIcon:Yh,ChartNoAxesGantt:It,ChartNoAxesGanttIcon:It,ChartPie:Tt,ChartPieIcon:Tt,ChartScatter:Dt,ChartScatterIcon:Dt,ChartSpline:Zh,ChartSplineIcon:Zh,Check:Jh,CheckCheck:Xh,CheckCheckIcon:Xh,CheckCircle:Ot,CheckCircle2:jt,CheckCircle2Icon:jt,CheckCircleIcon:Ot,CheckIcon:Jh,CheckLine:Kh,CheckLineIcon:Kh,CheckSquare:Va,CheckSquare2:Pa,CheckSquare2Icon:Pa,CheckSquareIcon:Va,ChefHat:Qh,ChefHatIcon:Qh,Cherry:ec,CherryIcon:ec,ChevronDown:tc,ChevronDownCircle:Nt,ChevronDownCircleIcon:Nt,ChevronDownIcon:tc,ChevronDownSquare:qa,ChevronDownSquareIcon:qa,ChevronFirst:ic,ChevronFirstIcon:ic,ChevronLast:oc,ChevronLastIcon:oc,ChevronLeft:ac,ChevronLeftCircle:_t,ChevronLeftCircleIcon:_t,ChevronLeftIcon:ac,ChevronLeftSquare:Ba,ChevronLeftSquareIcon:Ba,ChevronRight:nc,ChevronRightCircle:Wt,ChevronRightCircleIcon:Wt,ChevronRightIcon:nc,ChevronRightSquare:Fa,ChevronRightSquareIcon:Fa,ChevronUp:sc,ChevronUpCircle:Ut,ChevronUpCircleIcon:Ut,ChevronUpIcon:sc,ChevronUpSquare:Oa,ChevronUpSquareIcon:Oa,ChevronsDown:lc,ChevronsDownIcon:lc,ChevronsDownUp:rc,ChevronsDownUpIcon:rc,ChevronsLeft:dc,ChevronsLeftIcon:dc,ChevronsLeftRight:cc,ChevronsLeftRightEllipsis:hc,ChevronsLeftRightEllipsisIcon:hc,ChevronsLeftRightIcon:cc,ChevronsRight:pc,ChevronsRightIcon:pc,ChevronsRightLeft:uc,ChevronsRightLeftIcon:uc,ChevronsUp:fc,ChevronsUpDown:yc,ChevronsUpDownIcon:yc,ChevronsUpIcon:fc,Chrome:mc,ChromeIcon:mc,Church:gc,ChurchIcon:gc,Cigarette:bc,CigaretteIcon:bc,CigaretteOff:kc,CigaretteOffIcon:kc,Circle:zc,CircleAlert:Rt,CircleAlertIcon:Rt,CircleArrowDown:zt,CircleArrowDownIcon:zt,CircleArrowLeft:Ht,CircleArrowLeftIcon:Ht,CircleArrowOutDownLeft:At,CircleArrowOutDownLeftIcon:At,CircleArrowOutDownRight:Vt,CircleArrowOutDownRightIcon:Vt,CircleArrowOutUpLeft:Pt,CircleArrowOutUpLeftIcon:Pt,CircleArrowOutUpRight:qt,CircleArrowOutUpRightIcon:qt,CircleArrowRight:Bt,CircleArrowRightIcon:Bt,CircleArrowUp:Ft,CircleArrowUpIcon:Ft,CircleCheck:jt,CircleCheckBig:Ot,CircleCheckBigIcon:Ot,CircleCheckIcon:jt,CircleChevronDown:Nt,CircleChevronDownIcon:Nt,CircleChevronLeft:_t,CircleChevronLeftIcon:_t,CircleChevronRight:Wt,CircleChevronRightIcon:Wt,CircleChevronUp:Ut,CircleChevronUpIcon:Ut,CircleDashed:wc,CircleDashedIcon:wc,CircleDivide:Gt,CircleDivideIcon:Gt,CircleDollarSign:vc,CircleDollarSignIcon:vc,CircleDot:Cc,CircleDotDashed:Mc,CircleDotDashedIcon:Mc,CircleDotIcon:Cc,CircleEllipsis:xc,CircleEllipsisIcon:xc,CircleEqual:Lc,CircleEqualIcon:Lc,CircleFadingArrowUp:Ec,CircleFadingArrowUpIcon:Ec,CircleFadingPlus:Sc,CircleFadingPlusIcon:Sc,CircleGauge:$t,CircleGaugeIcon:$t,CircleHelp:Yt,CircleHelpIcon:Yt,CircleIcon:zc,CircleMinus:Zt,CircleMinusIcon:Zt,CircleOff:Ic,CircleOffIcon:Ic,CircleParking:Kt,CircleParkingIcon:Kt,CircleParkingOff:Xt,CircleParkingOffIcon:Xt,CirclePause:Jt,CirclePauseIcon:Jt,CirclePercent:Qt,CirclePercentIcon:Qt,CirclePlay:ei,CirclePlayIcon:ei,CirclePlus:ti,CirclePlusIcon:ti,CirclePower:ii,CirclePowerIcon:ii,CircleSlash:Tc,CircleSlash2:ai,CircleSlash2Icon:ai,CircleSlashIcon:Tc,CircleSlashed:ai,CircleSlashedIcon:ai,CircleSmall:Dc,CircleSmallIcon:Dc,CircleStop:oi,CircleStopIcon:oi,CircleUser:si,CircleUserIcon:si,CircleUserRound:ni,CircleUserRoundIcon:ni,CircleX:ri,CircleXIcon:ri,CircuitBoard:Rc,CircuitBoardIcon:Rc,Citrus:Hc,CitrusIcon:Hc,Clapperboard:Ac,ClapperboardIcon:Ac,Clipboard:_c,ClipboardCheck:Vc,ClipboardCheckIcon:Vc,ClipboardCopy:Pc,ClipboardCopyIcon:Pc,ClipboardEdit:hi,ClipboardEditIcon:hi,ClipboardIcon:_c,ClipboardList:qc,ClipboardListIcon:qc,ClipboardMinus:Bc,ClipboardMinusIcon:Bc,ClipboardPaste:Fc,ClipboardPasteIcon:Fc,ClipboardPen:hi,ClipboardPenIcon:hi,ClipboardPenLine:li,ClipboardPenLineIcon:li,ClipboardPlus:Oc,ClipboardPlusIcon:Oc,ClipboardSignature:li,ClipboardSignatureIcon:li,ClipboardType:jc,ClipboardTypeIcon:jc,ClipboardX:Nc,ClipboardXIcon:Nc,Clock:rd,Clock1:Wc,Clock10:Uc,Clock10Icon:Uc,Clock11:Gc,Clock11Icon:Gc,Clock12:$c,Clock12Icon:$c,Clock1Icon:Wc,Clock2:Yc,Clock2Icon:Yc,Clock3:Zc,Clock3Icon:Zc,Clock4:Xc,Clock4Icon:Xc,Clock5:Kc,Clock5Icon:Kc,Clock6:Jc,Clock6Icon:Jc,Clock7:Qc,Clock7Icon:Qc,Clock8:ed,Clock8Icon:ed,Clock9:td,Clock9Icon:td,ClockAlert:id,ClockAlertIcon:id,ClockArrowDown:ad,ClockArrowDownIcon:ad,ClockArrowUp:od,ClockArrowUpIcon:od,ClockFading:nd,ClockFadingIcon:nd,ClockIcon:rd,ClockPlus:sd,ClockPlusIcon:sd,Cloud:Md,CloudAlert:ld,CloudAlertIcon:ld,CloudCog:hd,CloudCogIcon:hd,CloudDownload:ci,CloudDownloadIcon:ci,CloudDrizzle:cd,CloudDrizzleIcon:cd,CloudFog:ud,CloudFogIcon:ud,CloudHail:dd,CloudHailIcon:dd,CloudIcon:Md,CloudLightning:pd,CloudLightningIcon:pd,CloudMoon:fd,CloudMoonIcon:fd,CloudMoonRain:yd,CloudMoonRainIcon:yd,CloudOff:md,CloudOffIcon:md,CloudRain:kd,CloudRainIcon:kd,CloudRainWind:gd,CloudRainWindIcon:gd,CloudSnow:bd,CloudSnowIcon:bd,CloudSun:vd,CloudSunIcon:vd,CloudSunRain:wd,CloudSunRainIcon:wd,CloudUpload:di,CloudUploadIcon:di,Cloudy:Cd,CloudyIcon:Cd,Clover:xd,CloverIcon:xd,Club:Ld,ClubIcon:Ld,Code:Ed,Code2:ui,Code2Icon:ui,CodeIcon:Ed,CodeSquare:ja,CodeSquareIcon:ja,CodeXml:ui,CodeXmlIcon:ui,Codepen:Sd,CodepenIcon:Sd,Codesandbox:Id,CodesandboxIcon:Id,Coffee:Td,CoffeeIcon:Td,Cog:Dd,CogIcon:Dd,Coins:zd,CoinsIcon:zd,Columns:pi,Columns2:pi,Columns2Icon:pi,Columns3:yi,Columns3Cog:Se,Columns3CogIcon:Se,Columns3Icon:yi,Columns4:Rd,Columns4Icon:Rd,ColumnsIcon:pi,ColumnsSettings:Se,ColumnsSettingsIcon:Se,Combine:Ad,CombineIcon:Ad,Command:Hd,CommandIcon:Hd,Compass:Vd,CompassIcon:Vd,Component:Pd,ComponentIcon:Pd,Computer:qd,ComputerIcon:qd,ConciergeBell:Bd,ConciergeBellIcon:Bd,Cone:Od,ConeIcon:Od,Construction:Fd,ConstructionIcon:Fd,Contact:jd,Contact2:fi,Contact2Icon:fi,ContactIcon:jd,ContactRound:fi,ContactRoundIcon:fi,Container:Nd,ContainerIcon:Nd,Contrast:_d,ContrastIcon:_d,Cookie:Wd,CookieIcon:Wd,CookingPot:Ud,CookingPotIcon:Ud,Copy:Kd,CopyCheck:$d,CopyCheckIcon:$d,CopyIcon:Kd,CopyMinus:Gd,CopyMinusIcon:Gd,CopyPlus:Yd,CopyPlusIcon:Yd,CopySlash:Zd,CopySlashIcon:Zd,CopyX:Xd,CopyXIcon:Xd,Copyleft:Jd,CopyleftIcon:Jd,Copyright:Qd,CopyrightIcon:Qd,CornerDownLeft:e2,CornerDownLeftIcon:e2,CornerDownRight:t2,CornerDownRightIcon:t2,CornerLeftDown:i2,CornerLeftDownIcon:i2,CornerLeftUp:a2,CornerLeftUpIcon:a2,CornerRightDown:o2,CornerRightDownIcon:o2,CornerRightUp:n2,CornerRightUpIcon:n2,CornerUpLeft:s2,CornerUpLeftIcon:s2,CornerUpRight:r2,CornerUpRightIcon:r2,Cpu:l2,CpuIcon:l2,CreativeCommons:h2,CreativeCommonsIcon:h2,CreditCard:c2,CreditCardIcon:c2,Croissant:d2,CroissantIcon:d2,Crop:u2,CropIcon:u2,Cross:p2,CrossIcon:p2,Crosshair:y2,CrosshairIcon:y2,Crown:f2,CrownIcon:f2,Cuboid:m2,CuboidIcon:m2,CupSoda:g2,CupSodaIcon:g2,CurlyBraces:mt,CurlyBracesIcon:mt,Currency:k2,CurrencyIcon:k2,Cylinder:b2,CylinderIcon:b2,Dam:w2,DamIcon:w2,Database:C2,DatabaseBackup:v2,DatabaseBackupIcon:v2,DatabaseIcon:C2,DatabaseZap:M2,DatabaseZapIcon:M2,DecimalsArrowLeft:x2,DecimalsArrowLeftIcon:x2,DecimalsArrowRight:L2,DecimalsArrowRightIcon:L2,Delete:E2,DeleteIcon:E2,Dessert:I2,DessertIcon:I2,Diameter:S2,DiameterIcon:S2,Diamond:z2,DiamondIcon:z2,DiamondMinus:T2,DiamondMinusIcon:T2,DiamondPercent:mi,DiamondPercentIcon:mi,DiamondPlus:D2,DiamondPlusIcon:D2,Dice1:R2,Dice1Icon:R2,Dice2:H2,Dice2Icon:H2,Dice3:A2,Dice3Icon:A2,Dice4:V2,Dice4Icon:V2,Dice5:P2,Dice5Icon:P2,Dice6:q2,Dice6Icon:q2,Dices:B2,DicesIcon:B2,Diff:F2,DiffIcon:F2,Disc:_2,Disc2:O2,Disc2Icon:O2,Disc3:j2,Disc3Icon:j2,DiscAlbum:N2,DiscAlbumIcon:N2,DiscIcon:_2,Divide:W2,DivideCircle:Gt,DivideCircleIcon:Gt,DivideIcon:W2,DivideSquare:Ua,DivideSquareIcon:Ua,Dna:U2,DnaIcon:U2,DnaOff:G2,DnaOffIcon:G2,Dock:$2,DockIcon:$2,Dog:Y2,DogIcon:Y2,DollarSign:Z2,DollarSignIcon:Z2,Donut:X2,DonutIcon:X2,DoorClosed:J2,DoorClosedIcon:J2,DoorClosedLocked:K2,DoorClosedLockedIcon:K2,DoorOpen:Q2,DoorOpenIcon:Q2,Dot:e0,DotIcon:e0,DotSquare:Ga,DotSquareIcon:Ga,Download:t0,DownloadCloud:ci,DownloadCloudIcon:ci,DownloadIcon:t0,DraftingCompass:i0,DraftingCompassIcon:i0,Drama:a0,DramaIcon:a0,Dribbble:o0,DribbbleIcon:o0,Drill:n0,DrillIcon:n0,Droplet:r0,DropletIcon:r0,DropletOff:s0,DropletOffIcon:s0,Droplets:l0,DropletsIcon:l0,Drum:h0,DrumIcon:h0,Drumstick:c0,DrumstickIcon:c0,Dumbbell:d0,DumbbellIcon:d0,Ear:p0,EarIcon:p0,EarOff:u0,EarOffIcon:u0,Earth:gi,EarthIcon:gi,EarthLock:f0,EarthLockIcon:f0,Eclipse:y0,EclipseIcon:y0,Edit:ue,Edit2:ha,Edit2Icon:ha,Edit3:la,Edit3Icon:la,EditIcon:ue,Egg:k0,EggFried:m0,EggFriedIcon:m0,EggIcon:k0,EggOff:g0,EggOffIcon:g0,Ellipsis:bi,EllipsisIcon:bi,EllipsisVertical:ki,EllipsisVerticalIcon:ki,Equal:v0,EqualApproximately:b0,EqualApproximatelyIcon:b0,EqualIcon:v0,EqualNot:w0,EqualNotIcon:w0,EqualSquare:$a,EqualSquareIcon:$a,Eraser:M0,EraserIcon:M0,EthernetPort:C0,EthernetPortIcon:C0,Euro:x0,EuroIcon:x0,Expand:L0,ExpandIcon:L0,ExternalLink:E0,ExternalLinkIcon:E0,Eye:T0,EyeClosed:S0,EyeClosedIcon:S0,EyeIcon:T0,EyeOff:I0,EyeOffIcon:I0,Facebook:D0,FacebookIcon:D0,Factory:z0,FactoryIcon:z0,Fan:R0,FanIcon:R0,FastForward:H0,FastForwardIcon:H0,Feather:A0,FeatherIcon:A0,Fence:q0,FenceIcon:q0,FerrisWheel:V0,FerrisWheelIcon:V0,Figma:P0,FigmaIcon:P0,File:Au,FileArchive:B0,FileArchiveIcon:B0,FileAudio:O0,FileAudio2:F0,FileAudio2Icon:F0,FileAudioIcon:O0,FileAxis3D:wi,FileAxis3DIcon:wi,FileAxis3d:wi,FileAxis3dIcon:wi,FileBadge:N0,FileBadge2:j0,FileBadge2Icon:j0,FileBadgeIcon:N0,FileBarChart:vi,FileBarChart2:Mi,FileBarChart2Icon:Mi,FileBarChartIcon:vi,FileBox:_0,FileBoxIcon:_0,FileChartColumn:Mi,FileChartColumnIcon:Mi,FileChartColumnIncreasing:vi,FileChartColumnIncreasingIcon:vi,FileChartLine:Ci,FileChartLineIcon:Ci,FileChartPie:xi,FileChartPieIcon:xi,FileCheck:U0,FileCheck2:W0,FileCheck2Icon:W0,FileCheckIcon:U0,FileClock:G0,FileClockIcon:G0,FileCode:Y0,FileCode2:$0,FileCode2Icon:$0,FileCodeIcon:Y0,FileCog:Li,FileCog2:Li,FileCog2Icon:Li,FileCogIcon:Li,FileDiff:Z0,FileDiffIcon:Z0,FileDigit:X0,FileDigitIcon:X0,FileDown:K0,FileDownIcon:K0,FileEdit:Si,FileEditIcon:Si,FileHeart:J0,FileHeartIcon:J0,FileIcon:Au,FileImage:Q0,FileImageIcon:Q0,FileInput:eu,FileInputIcon:eu,FileJson:iu,FileJson2:tu,FileJson2Icon:tu,FileJsonIcon:iu,FileKey:ou,FileKey2:au,FileKey2Icon:au,FileKeyIcon:ou,FileLineChart:Ci,FileLineChartIcon:Ci,FileLock:su,FileLock2:nu,FileLock2Icon:nu,FileLockIcon:su,FileMinus:ru,FileMinus2:lu,FileMinus2Icon:lu,FileMinusIcon:ru,FileMusic:hu,FileMusicIcon:hu,FileOutput:cu,FileOutputIcon:cu,FilePen:Si,FilePenIcon:Si,FilePenLine:Ei,FilePenLineIcon:Ei,FilePieChart:xi,FilePieChartIcon:xi,FilePlus:pu,FilePlus2:du,FilePlus2Icon:du,FilePlusIcon:pu,FileQuestion:uu,FileQuestionIcon:uu,FileScan:yu,FileScanIcon:yu,FileSearch:mu,FileSearch2:fu,FileSearch2Icon:fu,FileSearchIcon:mu,FileSignature:Ei,FileSignatureIcon:Ei,FileSliders:gu,FileSlidersIcon:gu,FileSpreadsheet:ku,FileSpreadsheetIcon:ku,FileStack:bu,FileStackIcon:bu,FileSymlink:wu,FileSymlinkIcon:wu,FileTerminal:vu,FileTerminalIcon:vu,FileText:Mu,FileTextIcon:Mu,FileType:xu,FileType2:Cu,FileType2Icon:Cu,FileTypeIcon:xu,FileUp:Lu,FileUpIcon:Lu,FileUser:Eu,FileUserIcon:Eu,FileVideo:Iu,FileVideo2:Su,FileVideo2Icon:Su,FileVideoIcon:Iu,FileVolume:zu,FileVolume2:Tu,FileVolume2Icon:Tu,FileVolumeIcon:zu,FileWarning:Du,FileWarningIcon:Du,FileX:Hu,FileX2:Ru,FileX2Icon:Ru,FileXIcon:Hu,Files:Pu,FilesIcon:Pu,Film:Vu,FilmIcon:Vu,Filter:zi,FilterIcon:zi,FilterX:Di,FilterXIcon:Di,Fingerprint:qu,FingerprintIcon:qu,FireExtinguisher:Bu,FireExtinguisherIcon:Bu,Fish:ju,FishIcon:ju,FishOff:Fu,FishOffIcon:Fu,FishSymbol:Ou,FishSymbolIcon:Ou,Flag:Uu,FlagIcon:Uu,FlagOff:Nu,FlagOffIcon:Nu,FlagTriangleLeft:_u,FlagTriangleLeftIcon:_u,FlagTriangleRight:Wu,FlagTriangleRightIcon:Wu,Flame:$u,FlameIcon:$u,FlameKindling:Gu,FlameKindlingIcon:Gu,Flashlight:Xu,FlashlightIcon:Xu,FlashlightOff:Yu,FlashlightOffIcon:Yu,FlaskConical:Ku,FlaskConicalIcon:Ku,FlaskConicalOff:Zu,FlaskConicalOffIcon:Zu,FlaskRound:Ju,FlaskRoundIcon:Ju,FlipHorizontal:ep,FlipHorizontal2:Qu,FlipHorizontal2Icon:Qu,FlipHorizontalIcon:ep,FlipVertical:tp,FlipVertical2:ip,FlipVertical2Icon:ip,FlipVerticalIcon:tp,Flower:op,Flower2:ap,Flower2Icon:ap,FlowerIcon:op,Focus:np,FocusIcon:np,FoldHorizontal:sp,FoldHorizontalIcon:sp,FoldVertical:rp,FoldVerticalIcon:rp,Folder:Vp,FolderArchive:lp,FolderArchiveIcon:lp,FolderCheck:hp,FolderCheckIcon:hp,FolderClock:dp,FolderClockIcon:dp,FolderClosed:cp,FolderClosedIcon:cp,FolderCode:up,FolderCodeIcon:up,FolderCog:Ii,FolderCog2:Ii,FolderCog2Icon:Ii,FolderCogIcon:Ii,FolderDot:pp,FolderDotIcon:pp,FolderDown:yp,FolderDownIcon:yp,FolderEdit:Ti,FolderEditIcon:Ti,FolderGit:mp,FolderGit2:fp,FolderGit2Icon:fp,FolderGitIcon:mp,FolderHeart:gp,FolderHeartIcon:gp,FolderIcon:Vp,FolderInput:kp,FolderInputIcon:kp,FolderKanban:bp,FolderKanbanIcon:bp,FolderKey:wp,FolderKeyIcon:wp,FolderLock:vp,FolderLockIcon:vp,FolderMinus:Cp,FolderMinusIcon:Cp,FolderOpen:xp,FolderOpenDot:Mp,FolderOpenDotIcon:Mp,FolderOpenIcon:xp,FolderOutput:Ep,FolderOutputIcon:Ep,FolderPen:Ti,FolderPenIcon:Ti,FolderPlus:Lp,FolderPlusIcon:Lp,FolderRoot:Sp,FolderRootIcon:Sp,FolderSearch:Tp,FolderSearch2:Ip,FolderSearch2Icon:Ip,FolderSearchIcon:Tp,FolderSymlink:zp,FolderSymlinkIcon:zp,FolderSync:Dp,FolderSyncIcon:Dp,FolderTree:Rp,FolderTreeIcon:Rp,FolderUp:Hp,FolderUpIcon:Hp,FolderX:Ap,FolderXIcon:Ap,Folders:Pp,FoldersIcon:Pp,Footprints:qp,FootprintsIcon:qp,ForkKnife:Ao,ForkKnifeCrossed:Ho,ForkKnifeCrossedIcon:Ho,ForkKnifeIcon:Ao,Forklift:Bp,ForkliftIcon:Bp,FormInput:da,FormInputIcon:da,Forward:Op,ForwardIcon:Op,Frame:Fp,FrameIcon:Fp,Framer:jp,FramerIcon:jp,Frown:Np,FrownIcon:Np,Fuel:Wp,FuelIcon:Wp,Fullscreen:_p,FullscreenIcon:_p,FunctionSquare:Ya,FunctionSquareIcon:Ya,Funnel:zi,FunnelIcon:zi,FunnelPlus:Up,FunnelPlusIcon:Up,FunnelX:Di,FunnelXIcon:Di,GalleryHorizontal:Yp,GalleryHorizontalEnd:Gp,GalleryHorizontalEndIcon:Gp,GalleryHorizontalIcon:Yp,GalleryThumbnails:$p,GalleryThumbnailsIcon:$p,GalleryVertical:Xp,GalleryVerticalEnd:Zp,GalleryVerticalEndIcon:Zp,GalleryVerticalIcon:Xp,Gamepad:Kp,Gamepad2:Jp,Gamepad2Icon:Jp,GamepadIcon:Kp,GanttChart:It,GanttChartIcon:It,GanttChartSquare:Te,GanttChartSquareIcon:Te,Gauge:Qp,GaugeCircle:$t,GaugeCircleIcon:$t,GaugeIcon:Qp,Gavel:ey,GavelIcon:ey,Gem:ty,GemIcon:ty,Ghost:iy,GhostIcon:iy,Gift:ay,GiftIcon:ay,GitBranch:ny,GitBranchIcon:ny,GitBranchPlus:oy,GitBranchPlusIcon:oy,GitCommit:Ri,GitCommitHorizontal:Ri,GitCommitHorizontalIcon:Ri,GitCommitIcon:Ri,GitCommitVertical:sy,GitCommitVerticalIcon:sy,GitCompare:ly,GitCompareArrows:ry,GitCompareArrowsIcon:ry,GitCompareIcon:ly,GitFork:hy,GitForkIcon:hy,GitGraph:cy,GitGraphIcon:cy,GitMerge:dy,GitMergeIcon:dy,GitPullRequest:gy,GitPullRequestArrow:uy,GitPullRequestArrowIcon:uy,GitPullRequestClosed:py,GitPullRequestClosedIcon:py,GitPullRequestCreate:my,GitPullRequestCreateArrow:yy,GitPullRequestCreateArrowIcon:yy,GitPullRequestCreateIcon:my,GitPullRequestDraft:fy,GitPullRequestDraftIcon:fy,GitPullRequestIcon:gy,Github:ky,GithubIcon:ky,Gitlab:by,GitlabIcon:by,GlassWater:wy,GlassWaterIcon:wy,Glasses:vy,GlassesIcon:vy,Globe:xy,Globe2:gi,Globe2Icon:gi,GlobeIcon:xy,GlobeLock:My,GlobeLockIcon:My,Goal:Cy,GoalIcon:Cy,Gpu:Ly,GpuIcon:Ly,Grab:Ey,GrabIcon:Ey,GraduationCap:Sy,GraduationCapIcon:Sy,Grape:Iy,GrapeIcon:Iy,Grid:Ie,Grid2X2:Pi,Grid2X2Check:Hi,Grid2X2CheckIcon:Hi,Grid2X2Icon:Pi,Grid2X2Plus:Ai,Grid2X2PlusIcon:Ai,Grid2X2X:Vi,Grid2X2XIcon:Vi,Grid2x2:Pi,Grid2x2Check:Hi,Grid2x2CheckIcon:Hi,Grid2x2Icon:Pi,Grid2x2Plus:Ai,Grid2x2PlusIcon:Ai,Grid2x2X:Vi,Grid2x2XIcon:Vi,Grid3X3:Ie,Grid3X3Icon:Ie,Grid3x3:Ie,Grid3x3Icon:Ie,GridIcon:Ie,Grip:zy,GripHorizontal:Ty,GripHorizontalIcon:Ty,GripIcon:zy,GripVertical:Dy,GripVerticalIcon:Dy,Group:Ry,GroupIcon:Ry,Guitar:Hy,GuitarIcon:Hy,Ham:Ay,HamIcon:Ay,Hamburger:Vy,HamburgerIcon:Vy,Hammer:Py,HammerIcon:Py,Hand:jy,HandCoins:qy,HandCoinsIcon:qy,HandHeart:By,HandHeartIcon:By,HandHelping:qi,HandHelpingIcon:qi,HandIcon:jy,HandMetal:Fy,HandMetalIcon:Fy,HandPlatter:Oy,HandPlatterIcon:Oy,Handshake:_y,HandshakeIcon:_y,HardDrive:Uy,HardDriveDownload:Ny,HardDriveDownloadIcon:Ny,HardDriveIcon:Uy,HardDriveUpload:Wy,HardDriveUploadIcon:Wy,HardHat:Gy,HardHatIcon:Gy,Hash:$y,HashIcon:$y,Haze:Yy,HazeIcon:Yy,HdmiPort:Zy,HdmiPortIcon:Zy,Heading:af,Heading1:Xy,Heading1Icon:Xy,Heading2:Ky,Heading2Icon:Ky,Heading3:Jy,Heading3Icon:Jy,Heading4:tf,Heading4Icon:tf,Heading5:Qy,Heading5Icon:Qy,Heading6:ef,Heading6Icon:ef,HeadingIcon:af,HeadphoneOff:of,HeadphoneOffIcon:of,Headphones:nf,HeadphonesIcon:nf,Headset:sf,HeadsetIcon:sf,Heart:uf,HeartCrack:rf,HeartCrackIcon:rf,HeartHandshake:lf,HeartHandshakeIcon:lf,HeartIcon:uf,HeartMinus:hf,HeartMinusIcon:hf,HeartOff:cf,HeartOffIcon:cf,HeartPlus:df,HeartPlusIcon:df,HeartPulse:pf,HeartPulseIcon:pf,Heater:yf,HeaterIcon:yf,HelpCircle:Yt,HelpCircleIcon:Yt,HelpingHand:qi,HelpingHandIcon:qi,Hexagon:ff,HexagonIcon:ff,Highlighter:mf,HighlighterIcon:mf,History:gf,HistoryIcon:gf,Home:Bi,HomeIcon:Bi,Hop:bf,HopIcon:bf,HopOff:kf,HopOffIcon:kf,Hospital:wf,HospitalIcon:wf,Hotel:vf,HotelIcon:vf,Hourglass:Mf,HourglassIcon:Mf,House:Bi,HouseIcon:Bi,HousePlug:Cf,HousePlugIcon:Cf,HousePlus:xf,HousePlusIcon:xf,HouseWifi:Lf,HouseWifiIcon:Lf,IceCream:Oi,IceCream2:Fi,IceCream2Icon:Fi,IceCreamBowl:Fi,IceCreamBowlIcon:Fi,IceCreamCone:Oi,IceCreamConeIcon:Oi,IceCreamIcon:Oi,Icon:hx,IdCard:Ef,IdCardIcon:Ef,Image:Af,ImageDown:Sf,ImageDownIcon:Sf,ImageIcon:Af,ImageMinus:If,ImageMinusIcon:If,ImageOff:Df,ImageOffIcon:Df,ImagePlay:Tf,ImagePlayIcon:Tf,ImagePlus:zf,ImagePlusIcon:zf,ImageUp:Hf,ImageUpIcon:Hf,ImageUpscale:Rf,ImageUpscaleIcon:Rf,Images:Vf,ImagesIcon:Vf,Import:qf,ImportIcon:qf,Inbox:Pf,InboxIcon:Pf,Indent:Ni,IndentDecrease:ji,IndentDecreaseIcon:ji,IndentIcon:Ni,IndentIncrease:Ni,IndentIncreaseIcon:Ni,IndianRupee:Bf,IndianRupeeIcon:Bf,Infinity:Ff,InfinityIcon:Ff,Info:Of,InfoIcon:Of,Inspect:eo,InspectIcon:eo,InspectionPanel:_f,InspectionPanelIcon:_f,Instagram:jf,InstagramIcon:jf,Italic:Nf,ItalicIcon:Nf,IterationCcw:Wf,IterationCcwIcon:Wf,IterationCw:Uf,IterationCwIcon:Uf,JapaneseYen:Gf,JapaneseYenIcon:Gf,Joystick:$f,JoystickIcon:$f,Kanban:Yf,KanbanIcon:Yf,KanbanSquare:Za,KanbanSquareDashed:Na,KanbanSquareDashedIcon:Na,KanbanSquareIcon:Za,Key:Kf,KeyIcon:Kf,KeyRound:Xf,KeyRoundIcon:Xf,KeySquare:Zf,KeySquareIcon:Zf,Keyboard:em,KeyboardIcon:em,KeyboardMusic:Jf,KeyboardMusicIcon:Jf,KeyboardOff:Qf,KeyboardOffIcon:Qf,Lamp:sm,LampCeiling:tm,LampCeilingIcon:tm,LampDesk:am,LampDeskIcon:am,LampFloor:im,LampFloorIcon:im,LampIcon:sm,LampWallDown:om,LampWallDownIcon:om,LampWallUp:nm,LampWallUpIcon:nm,LandPlot:rm,LandPlotIcon:rm,Landmark:lm,LandmarkIcon:lm,Languages:hm,LanguagesIcon:hm,Laptop:dm,Laptop2:_i,Laptop2Icon:_i,LaptopIcon:dm,LaptopMinimal:_i,LaptopMinimalCheck:cm,LaptopMinimalCheckIcon:cm,LaptopMinimalIcon:_i,Lasso:um,LassoIcon:um,LassoSelect:ym,LassoSelectIcon:ym,Laugh:pm,LaughIcon:pm,Layers:Wi,Layers2:fm,Layers2Icon:fm,Layers3:Wi,Layers3Icon:Wi,LayersIcon:Wi,Layout:ra,LayoutDashboard:mm,LayoutDashboardIcon:mm,LayoutGrid:gm,LayoutGridIcon:gm,LayoutIcon:ra,LayoutList:km,LayoutListIcon:km,LayoutPanelLeft:bm,LayoutPanelLeftIcon:bm,LayoutPanelTop:wm,LayoutPanelTopIcon:wm,LayoutTemplate:vm,LayoutTemplateIcon:vm,Leaf:Mm,LeafIcon:Mm,LeafyGreen:xm,LeafyGreenIcon:xm,Lectern:Cm,LecternIcon:Cm,LetterText:Lm,LetterTextIcon:Lm,Library:Sm,LibraryBig:Em,LibraryBigIcon:Em,LibraryIcon:Sm,LibrarySquare:Xa,LibrarySquareIcon:Xa,LifeBuoy:Im,LifeBuoyIcon:Im,Ligature:Tm,LigatureIcon:Tm,Lightbulb:zm,LightbulbIcon:zm,LightbulbOff:Dm,LightbulbOffIcon:Dm,LineChart:Lt,LineChartIcon:Lt,Link:Am,Link2:Hm,Link2Icon:Hm,Link2Off:Rm,Link2OffIcon:Rm,LinkIcon:Am,Linkedin:Vm,LinkedinIcon:Vm,List:Jm,ListCheck:Pm,ListCheckIcon:Pm,ListChecks:qm,ListChecksIcon:qm,ListCollapse:Bm,ListCollapseIcon:Bm,ListEnd:Fm,ListEndIcon:Fm,ListFilter:Nm,ListFilterIcon:Nm,ListFilterPlus:Om,ListFilterPlusIcon:Om,ListIcon:Jm,ListMinus:jm,ListMinusIcon:jm,ListMusic:_m,ListMusicIcon:_m,ListOrdered:Wm,ListOrderedIcon:Wm,ListPlus:Um,ListPlusIcon:Um,ListRestart:Gm,ListRestartIcon:Gm,ListStart:$m,ListStartIcon:$m,ListTodo:Ym,ListTodoIcon:Ym,ListTree:Zm,ListTreeIcon:Zm,ListVideo:Xm,ListVideoIcon:Xm,ListX:Km,ListXIcon:Km,Loader:eg,Loader2:Ui,Loader2Icon:Ui,LoaderCircle:Ui,LoaderCircleIcon:Ui,LoaderIcon:eg,LoaderPinwheel:Qm,LoaderPinwheelIcon:Qm,Locate:ag,LocateFixed:tg,LocateFixedIcon:tg,LocateIcon:ag,LocateOff:ig,LocateOffIcon:ig,LocationEdit:og,LocationEditIcon:og,Lock:sg,LockIcon:sg,LockKeyhole:ng,LockKeyholeIcon:ng,LockKeyholeOpen:Gi,LockKeyholeOpenIcon:Gi,LockOpen:$i,LockOpenIcon:$i,LogIn:rg,LogInIcon:rg,LogOut:lg,LogOutIcon:lg,Logs:hg,LogsIcon:hg,Lollipop:cg,LollipopIcon:cg,LucideAArrowDown:Bn,LucideAArrowUp:Fn,LucideALargeSmall:On,LucideAccessibility:jn,LucideActivity:Nn,LucideActivitySquare:wa,LucideAirVent:Wn,LucideAirplay:_n,LucideAlarmCheck:it,LucideAlarmClock:Gn,LucideAlarmClockCheck:it,LucideAlarmClockMinus:at,LucideAlarmClockOff:Un,LucideAlarmClockPlus:ot,LucideAlarmMinus:at,LucideAlarmPlus:ot,LucideAlarmSmoke:$n,LucideAlbum:Yn,LucideAlertCircle:Rt,LucideAlertOctagon:Xi,LucideAlertTriangle:Co,LucideAlignCenter:Kn,LucideAlignCenterHorizontal:Zn,LucideAlignCenterVertical:Xn,LucideAlignEndHorizontal:Jn,LucideAlignEndVertical:Qn,LucideAlignHorizontalDistributeCenter:es,LucideAlignHorizontalDistributeEnd:ts,LucideAlignHorizontalDistributeStart:is,LucideAlignHorizontalJustifyCenter:as,LucideAlignHorizontalJustifyEnd:os,LucideAlignHorizontalJustifyStart:ns,LucideAlignHorizontalSpaceAround:ss,LucideAlignHorizontalSpaceBetween:rs,LucideAlignJustify:ls,LucideAlignLeft:hs,LucideAlignRight:ds,LucideAlignStartHorizontal:cs,LucideAlignStartVertical:us,LucideAlignVerticalDistributeCenter:ps,LucideAlignVerticalDistributeEnd:ys,LucideAlignVerticalDistributeStart:fs,LucideAlignVerticalJustifyCenter:ms,LucideAlignVerticalJustifyEnd:gs,LucideAlignVerticalJustifyStart:ks,LucideAlignVerticalSpaceAround:bs,LucideAlignVerticalSpaceBetween:ws,LucideAmbulance:vs,LucideAmpersand:Ms,LucideAmpersands:Cs,LucideAmphora:xs,LucideAnchor:Es,LucideAngry:Ls,LucideAnnoyed:Ss,LucideAntenna:Is,LucideAnvil:Ts,LucideAperture:Ds,LucideAppWindow:Rs,LucideAppWindowMac:zs,LucideApple:Hs,LucideArchive:Ps,LucideArchiveRestore:As,LucideArchiveX:Vs,LucideAreaChart:kt,LucideArmchair:Bs,LucideArrowBigDown:Fs,LucideArrowBigDownDash:qs,LucideArrowBigLeft:js,LucideArrowBigLeftDash:Os,LucideArrowBigRight:_s,LucideArrowBigRightDash:Ns,LucideArrowBigUp:Us,LucideArrowBigUpDash:Ws,LucideArrowDown:tr,LucideArrowDown01:Gs,LucideArrowDown10:$s,LucideArrowDownAZ:nt,LucideArrowDownAz:nt,LucideArrowDownCircle:zt,LucideArrowDownFromLine:Ys,LucideArrowDownLeft:Zs,LucideArrowDownLeftFromCircle:At,LucideArrowDownLeftFromSquare:La,LucideArrowDownLeftSquare:va,LucideArrowDownNarrowWide:Xs,LucideArrowDownRight:Ks,LucideArrowDownRightFromCircle:Vt,LucideArrowDownRightFromSquare:Ea,LucideArrowDownRightSquare:Ma,LucideArrowDownSquare:Ca,LucideArrowDownToDot:Js,LucideArrowDownToLine:er,LucideArrowDownUp:Qs,LucideArrowDownWideNarrow:st,LucideArrowDownZA:rt,LucideArrowDownZa:rt,LucideArrowLeft:nr,LucideArrowLeftCircle:Ht,LucideArrowLeftFromLine:ir,LucideArrowLeftRight:ar,LucideArrowLeftSquare:xa,LucideArrowLeftToLine:or,LucideArrowRight:hr,LucideArrowRightCircle:Bt,LucideArrowRightFromLine:sr,LucideArrowRightLeft:rr,LucideArrowRightSquare:Ta,LucideArrowRightToLine:lr,LucideArrowUp:br,LucideArrowUp01:cr,LucideArrowUp10:ur,LucideArrowUpAZ:lt,LucideArrowUpAz:lt,LucideArrowUpCircle:Ft,LucideArrowUpDown:dr,LucideArrowUpFromDot:pr,LucideArrowUpFromLine:yr,LucideArrowUpLeft:fr,LucideArrowUpLeftFromCircle:Pt,LucideArrowUpLeftFromSquare:Sa,LucideArrowUpLeftSquare:za,LucideArrowUpNarrowWide:ht,LucideArrowUpRight:mr,LucideArrowUpRightFromCircle:qt,LucideArrowUpRightFromSquare:Ia,LucideArrowUpRightSquare:Da,LucideArrowUpSquare:Ra,LucideArrowUpToLine:gr,LucideArrowUpWideNarrow:kr,LucideArrowUpZA:ct,LucideArrowUpZa:ct,LucideArrowsUpFromLine:wr,LucideAsterisk:vr,LucideAsteriskSquare:Ha,LucideAtSign:Mr,LucideAtom:Cr,LucideAudioLines:xr,LucideAudioWaveform:Lr,LucideAward:Er,LucideAxe:Sr,LucideAxis3D:dt,LucideAxis3d:dt,LucideBaby:Ir,LucideBackpack:Tr,LucideBadge:Ur,LucideBadgeAlert:Dr,LucideBadgeCent:zr,LucideBadgeCheck:ut,LucideBadgeDollarSign:Rr,LucideBadgeEuro:Hr,LucideBadgeHelp:Ar,LucideBadgeIndianRupee:Vr,LucideBadgeInfo:Pr,LucideBadgeJapaneseYen:qr,LucideBadgeMinus:Br,LucideBadgePercent:Fr,LucideBadgePlus:Or,LucideBadgePoundSterling:jr,LucideBadgeRussianRuble:Nr,LucideBadgeSwissFranc:_r,LucideBadgeX:Wr,LucideBaggageClaim:Gr,LucideBan:$r,LucideBanana:Yr,LucideBandage:Zr,LucideBanknote:Qr,LucideBanknoteArrowDown:Xr,LucideBanknoteArrowUp:Kr,LucideBanknoteX:Jr,LucideBarChart:Et,LucideBarChart2:St,LucideBarChart3:xt,LucideBarChart4:Ct,LucideBarChartBig:Mt,LucideBarChartHorizontal:wt,LucideBarChartHorizontalBig:bt,LucideBarcode:el,LucideBaseline:tl,LucideBath:il,LucideBattery:hl,LucideBatteryCharging:al,LucideBatteryFull:ol,LucideBatteryLow:nl,LucideBatteryMedium:sl,LucideBatteryPlus:rl,LucideBatteryWarning:ll,LucideBeaker:cl,LucideBean:ul,LucideBeanOff:dl,LucideBed:fl,LucideBedDouble:pl,LucideBedSingle:yl,LucideBeef:gl,LucideBeer:kl,LucideBeerOff:ml,LucideBell:Ll,LucideBellDot:bl,LucideBellElectric:wl,LucideBellMinus:vl,LucideBellOff:Ml,LucideBellPlus:Cl,LucideBellRing:xl,LucideBetweenHorizonalEnd:pt,LucideBetweenHorizonalStart:yt,LucideBetweenHorizontalEnd:pt,LucideBetweenHorizontalStart:yt,LucideBetweenVerticalEnd:El,LucideBetweenVerticalStart:Sl,LucideBicepsFlexed:Il,LucideBike:Tl,LucideBinary:Dl,LucideBinoculars:zl,LucideBiohazard:Rl,LucideBird:Hl,LucideBitcoin:Al,LucideBlend:Vl,LucideBlinds:Pl,LucideBlocks:ql,LucideBluetooth:jl,LucideBluetoothConnected:Bl,LucideBluetoothOff:Fl,LucideBluetoothSearching:Ol,LucideBold:Nl,LucideBolt:_l,LucideBomb:Wl,LucideBone:Ul,LucideBook:y1,LucideBookA:Gl,LucideBookAudio:$l,LucideBookCheck:Yl,LucideBookCopy:Zl,LucideBookDashed:ft,LucideBookDown:Kl,LucideBookHeadphones:Xl,LucideBookHeart:Jl,LucideBookImage:Ql,LucideBookKey:e1,LucideBookLock:t1,LucideBookMarked:i1,LucideBookMinus:a1,LucideBookOpen:s1,LucideBookOpenCheck:n1,LucideBookOpenText:o1,LucideBookPlus:r1,LucideBookTemplate:ft,LucideBookText:l1,LucideBookType:h1,LucideBookUp:d1,LucideBookUp2:c1,LucideBookUser:u1,LucideBookX:p1,LucideBookmark:b1,LucideBookmarkCheck:f1,LucideBookmarkMinus:m1,LucideBookmarkPlus:g1,LucideBookmarkX:k1,LucideBoomBox:w1,LucideBot:C1,LucideBotMessageSquare:v1,LucideBotOff:M1,LucideBowArrow:x1,LucideBox:L1,LucideBoxSelect:Wa,LucideBoxes:E1,LucideBraces:mt,LucideBrackets:S1,LucideBrain:D1,LucideBrainCircuit:I1,LucideBrainCog:T1,LucideBrickWall:R1,LucideBrickWallFire:z1,LucideBriefcase:P1,LucideBriefcaseBusiness:H1,LucideBriefcaseConveyorBelt:A1,LucideBriefcaseMedical:V1,LucideBringToFront:q1,LucideBrush:F1,LucideBrushCleaning:B1,LucideBubbles:O1,LucideBug:_1,LucideBugOff:j1,LucideBugPlay:N1,LucideBuilding:U1,LucideBuilding2:W1,LucideBus:$1,LucideBusFront:G1,LucideCable:Z1,LucideCableCar:Y1,LucideCake:K1,LucideCakeSlice:X1,LucideCalculator:J1,LucideCalendar:bh,LucideCalendar1:Q1,LucideCalendarArrowDown:eh,LucideCalendarArrowUp:th,LucideCalendarCheck:ah,LucideCalendarCheck2:ih,LucideCalendarClock:oh,LucideCalendarCog:nh,LucideCalendarDays:sh,LucideCalendarFold:rh,LucideCalendarHeart:lh,LucideCalendarMinus:ch,LucideCalendarMinus2:hh,LucideCalendarOff:dh,LucideCalendarPlus:ph,LucideCalendarPlus2:uh,LucideCalendarRange:yh,LucideCalendarSearch:fh,LucideCalendarSync:mh,LucideCalendarX:kh,LucideCalendarX2:gh,LucideCamera:vh,LucideCameraOff:wh,LucideCandlestickChart:vt,LucideCandy:xh,LucideCandyCane:Mh,LucideCandyOff:Ch,LucideCannabis:Lh,LucideCaptions:gt,LucideCaptionsOff:Eh,LucideCar:Th,LucideCarFront:Sh,LucideCarTaxiFront:Ih,LucideCaravan:Dh,LucideCarrot:zh,LucideCaseLower:Rh,LucideCaseSensitive:Hh,LucideCaseUpper:Ah,LucideCassetteTape:Vh,LucideCast:Ph,LucideCastle:qh,LucideCat:Bh,LucideCctv:Fh,LucideChartArea:kt,LucideChartBar:wt,LucideChartBarBig:bt,LucideChartBarDecreasing:Oh,LucideChartBarIncreasing:jh,LucideChartBarStacked:Nh,LucideChartCandlestick:vt,LucideChartColumn:xt,LucideChartColumnBig:Mt,LucideChartColumnDecreasing:_h,LucideChartColumnIncreasing:Ct,LucideChartColumnStacked:Wh,LucideChartGantt:Uh,LucideChartLine:Lt,LucideChartNetwork:Gh,LucideChartNoAxesColumn:St,LucideChartNoAxesColumnDecreasing:$h,LucideChartNoAxesColumnIncreasing:Et,LucideChartNoAxesCombined:Yh,LucideChartNoAxesGantt:It,LucideChartPie:Tt,LucideChartScatter:Dt,LucideChartSpline:Zh,LucideCheck:Jh,LucideCheckCheck:Xh,LucideCheckCircle:Ot,LucideCheckCircle2:jt,LucideCheckLine:Kh,LucideCheckSquare:Va,LucideCheckSquare2:Pa,LucideChefHat:Qh,LucideCherry:ec,LucideChevronDown:tc,LucideChevronDownCircle:Nt,LucideChevronDownSquare:qa,LucideChevronFirst:ic,LucideChevronLast:oc,LucideChevronLeft:ac,LucideChevronLeftCircle:_t,LucideChevronLeftSquare:Ba,LucideChevronRight:nc,LucideChevronRightCircle:Wt,LucideChevronRightSquare:Fa,LucideChevronUp:sc,LucideChevronUpCircle:Ut,LucideChevronUpSquare:Oa,LucideChevronsDown:lc,LucideChevronsDownUp:rc,LucideChevronsLeft:dc,LucideChevronsLeftRight:cc,LucideChevronsLeftRightEllipsis:hc,LucideChevronsRight:pc,LucideChevronsRightLeft:uc,LucideChevronsUp:fc,LucideChevronsUpDown:yc,LucideChrome:mc,LucideChurch:gc,LucideCigarette:bc,LucideCigaretteOff:kc,LucideCircle:zc,LucideCircleAlert:Rt,LucideCircleArrowDown:zt,LucideCircleArrowLeft:Ht,LucideCircleArrowOutDownLeft:At,LucideCircleArrowOutDownRight:Vt,LucideCircleArrowOutUpLeft:Pt,LucideCircleArrowOutUpRight:qt,LucideCircleArrowRight:Bt,LucideCircleArrowUp:Ft,LucideCircleCheck:jt,LucideCircleCheckBig:Ot,LucideCircleChevronDown:Nt,LucideCircleChevronLeft:_t,LucideCircleChevronRight:Wt,LucideCircleChevronUp:Ut,LucideCircleDashed:wc,LucideCircleDivide:Gt,LucideCircleDollarSign:vc,LucideCircleDot:Cc,LucideCircleDotDashed:Mc,LucideCircleEllipsis:xc,LucideCircleEqual:Lc,LucideCircleFadingArrowUp:Ec,LucideCircleFadingPlus:Sc,LucideCircleGauge:$t,LucideCircleHelp:Yt,LucideCircleMinus:Zt,LucideCircleOff:Ic,LucideCircleParking:Kt,LucideCircleParkingOff:Xt,LucideCirclePause:Jt,LucideCirclePercent:Qt,LucideCirclePlay:ei,LucideCirclePlus:ti,LucideCirclePower:ii,LucideCircleSlash:Tc,LucideCircleSlash2:ai,LucideCircleSlashed:ai,LucideCircleSmall:Dc,LucideCircleStop:oi,LucideCircleUser:si,LucideCircleUserRound:ni,LucideCircleX:ri,LucideCircuitBoard:Rc,LucideCitrus:Hc,LucideClapperboard:Ac,LucideClipboard:_c,LucideClipboardCheck:Vc,LucideClipboardCopy:Pc,LucideClipboardEdit:hi,LucideClipboardList:qc,LucideClipboardMinus:Bc,LucideClipboardPaste:Fc,LucideClipboardPen:hi,LucideClipboardPenLine:li,LucideClipboardPlus:Oc,LucideClipboardSignature:li,LucideClipboardType:jc,LucideClipboardX:Nc,LucideClock:rd,LucideClock1:Wc,LucideClock10:Uc,LucideClock11:Gc,LucideClock12:$c,LucideClock2:Yc,LucideClock3:Zc,LucideClock4:Xc,LucideClock5:Kc,LucideClock6:Jc,LucideClock7:Qc,LucideClock8:ed,LucideClock9:td,LucideClockAlert:id,LucideClockArrowDown:ad,LucideClockArrowUp:od,LucideClockFading:nd,LucideClockPlus:sd,LucideCloud:Md,LucideCloudAlert:ld,LucideCloudCog:hd,LucideCloudDownload:ci,LucideCloudDrizzle:cd,LucideCloudFog:ud,LucideCloudHail:dd,LucideCloudLightning:pd,LucideCloudMoon:fd,LucideCloudMoonRain:yd,LucideCloudOff:md,LucideCloudRain:kd,LucideCloudRainWind:gd,LucideCloudSnow:bd,LucideCloudSun:vd,LucideCloudSunRain:wd,LucideCloudUpload:di,LucideCloudy:Cd,LucideClover:xd,LucideClub:Ld,LucideCode:Ed,LucideCode2:ui,LucideCodeSquare:ja,LucideCodeXml:ui,LucideCodepen:Sd,LucideCodesandbox:Id,LucideCoffee:Td,LucideCog:Dd,LucideCoins:zd,LucideColumns:pi,LucideColumns2:pi,LucideColumns3:yi,LucideColumns3Cog:Se,LucideColumns4:Rd,LucideColumnsSettings:Se,LucideCombine:Ad,LucideCommand:Hd,LucideCompass:Vd,LucideComponent:Pd,LucideComputer:qd,LucideConciergeBell:Bd,LucideCone:Od,LucideConstruction:Fd,LucideContact:jd,LucideContact2:fi,LucideContactRound:fi,LucideContainer:Nd,LucideContrast:_d,LucideCookie:Wd,LucideCookingPot:Ud,LucideCopy:Kd,LucideCopyCheck:$d,LucideCopyMinus:Gd,LucideCopyPlus:Yd,LucideCopySlash:Zd,LucideCopyX:Xd,LucideCopyleft:Jd,LucideCopyright:Qd,LucideCornerDownLeft:e2,LucideCornerDownRight:t2,LucideCornerLeftDown:i2,LucideCornerLeftUp:a2,LucideCornerRightDown:o2,LucideCornerRightUp:n2,LucideCornerUpLeft:s2,LucideCornerUpRight:r2,LucideCpu:l2,LucideCreativeCommons:h2,LucideCreditCard:c2,LucideCroissant:d2,LucideCrop:u2,LucideCross:p2,LucideCrosshair:y2,LucideCrown:f2,LucideCuboid:m2,LucideCupSoda:g2,LucideCurlyBraces:mt,LucideCurrency:k2,LucideCylinder:b2,LucideDam:w2,LucideDatabase:C2,LucideDatabaseBackup:v2,LucideDatabaseZap:M2,LucideDecimalsArrowLeft:x2,LucideDecimalsArrowRight:L2,LucideDelete:E2,LucideDessert:I2,LucideDiameter:S2,LucideDiamond:z2,LucideDiamondMinus:T2,LucideDiamondPercent:mi,LucideDiamondPlus:D2,LucideDice1:R2,LucideDice2:H2,LucideDice3:A2,LucideDice4:V2,LucideDice5:P2,LucideDice6:q2,LucideDices:B2,LucideDiff:F2,LucideDisc:_2,LucideDisc2:O2,LucideDisc3:j2,LucideDiscAlbum:N2,LucideDivide:W2,LucideDivideCircle:Gt,LucideDivideSquare:Ua,LucideDna:U2,LucideDnaOff:G2,LucideDock:$2,LucideDog:Y2,LucideDollarSign:Z2,LucideDonut:X2,LucideDoorClosed:J2,LucideDoorClosedLocked:K2,LucideDoorOpen:Q2,LucideDot:e0,LucideDotSquare:Ga,LucideDownload:t0,LucideDownloadCloud:ci,LucideDraftingCompass:i0,LucideDrama:a0,LucideDribbble:o0,LucideDrill:n0,LucideDroplet:r0,LucideDropletOff:s0,LucideDroplets:l0,LucideDrum:h0,LucideDrumstick:c0,LucideDumbbell:d0,LucideEar:p0,LucideEarOff:u0,LucideEarth:gi,LucideEarthLock:f0,LucideEclipse:y0,LucideEdit:ue,LucideEdit2:ha,LucideEdit3:la,LucideEgg:k0,LucideEggFried:m0,LucideEggOff:g0,LucideEllipsis:bi,LucideEllipsisVertical:ki,LucideEqual:v0,LucideEqualApproximately:b0,LucideEqualNot:w0,LucideEqualSquare:$a,LucideEraser:M0,LucideEthernetPort:C0,LucideEuro:x0,LucideExpand:L0,LucideExternalLink:E0,LucideEye:T0,LucideEyeClosed:S0,LucideEyeOff:I0,LucideFacebook:D0,LucideFactory:z0,LucideFan:R0,LucideFastForward:H0,LucideFeather:A0,LucideFence:q0,LucideFerrisWheel:V0,LucideFigma:P0,LucideFile:Au,LucideFileArchive:B0,LucideFileAudio:O0,LucideFileAudio2:F0,LucideFileAxis3D:wi,LucideFileAxis3d:wi,LucideFileBadge:N0,LucideFileBadge2:j0,LucideFileBarChart:vi,LucideFileBarChart2:Mi,LucideFileBox:_0,LucideFileChartColumn:Mi,LucideFileChartColumnIncreasing:vi,LucideFileChartLine:Ci,LucideFileChartPie:xi,LucideFileCheck:U0,LucideFileCheck2:W0,LucideFileClock:G0,LucideFileCode:Y0,LucideFileCode2:$0,LucideFileCog:Li,LucideFileCog2:Li,LucideFileDiff:Z0,LucideFileDigit:X0,LucideFileDown:K0,LucideFileEdit:Si,LucideFileHeart:J0,LucideFileImage:Q0,LucideFileInput:eu,LucideFileJson:iu,LucideFileJson2:tu,LucideFileKey:ou,LucideFileKey2:au,LucideFileLineChart:Ci,LucideFileLock:su,LucideFileLock2:nu,LucideFileMinus:ru,LucideFileMinus2:lu,LucideFileMusic:hu,LucideFileOutput:cu,LucideFilePen:Si,LucideFilePenLine:Ei,LucideFilePieChart:xi,LucideFilePlus:pu,LucideFilePlus2:du,LucideFileQuestion:uu,LucideFileScan:yu,LucideFileSearch:mu,LucideFileSearch2:fu,LucideFileSignature:Ei,LucideFileSliders:gu,LucideFileSpreadsheet:ku,LucideFileStack:bu,LucideFileSymlink:wu,LucideFileTerminal:vu,LucideFileText:Mu,LucideFileType:xu,LucideFileType2:Cu,LucideFileUp:Lu,LucideFileUser:Eu,LucideFileVideo:Iu,LucideFileVideo2:Su,LucideFileVolume:zu,LucideFileVolume2:Tu,LucideFileWarning:Du,LucideFileX:Hu,LucideFileX2:Ru,LucideFiles:Pu,LucideFilm:Vu,LucideFilter:zi,LucideFilterX:Di,LucideFingerprint:qu,LucideFireExtinguisher:Bu,LucideFish:ju,LucideFishOff:Fu,LucideFishSymbol:Ou,LucideFlag:Uu,LucideFlagOff:Nu,LucideFlagTriangleLeft:_u,LucideFlagTriangleRight:Wu,LucideFlame:$u,LucideFlameKindling:Gu,LucideFlashlight:Xu,LucideFlashlightOff:Yu,LucideFlaskConical:Ku,LucideFlaskConicalOff:Zu,LucideFlaskRound:Ju,LucideFlipHorizontal:ep,LucideFlipHorizontal2:Qu,LucideFlipVertical:tp,LucideFlipVertical2:ip,LucideFlower:op,LucideFlower2:ap,LucideFocus:np,LucideFoldHorizontal:sp,LucideFoldVertical:rp,LucideFolder:Vp,LucideFolderArchive:lp,LucideFolderCheck:hp,LucideFolderClock:dp,LucideFolderClosed:cp,LucideFolderCode:up,LucideFolderCog:Ii,LucideFolderCog2:Ii,LucideFolderDot:pp,LucideFolderDown:yp,LucideFolderEdit:Ti,LucideFolderGit:mp,LucideFolderGit2:fp,LucideFolderHeart:gp,LucideFolderInput:kp,LucideFolderKanban:bp,LucideFolderKey:wp,LucideFolderLock:vp,LucideFolderMinus:Cp,LucideFolderOpen:xp,LucideFolderOpenDot:Mp,LucideFolderOutput:Ep,LucideFolderPen:Ti,LucideFolderPlus:Lp,LucideFolderRoot:Sp,LucideFolderSearch:Tp,LucideFolderSearch2:Ip,LucideFolderSymlink:zp,LucideFolderSync:Dp,LucideFolderTree:Rp,LucideFolderUp:Hp,LucideFolderX:Ap,LucideFolders:Pp,LucideFootprints:qp,LucideForkKnife:Ao,LucideForkKnifeCrossed:Ho,LucideForklift:Bp,LucideFormInput:da,LucideForward:Op,LucideFrame:Fp,LucideFramer:jp,LucideFrown:Np,LucideFuel:Wp,LucideFullscreen:_p,LucideFunctionSquare:Ya,LucideFunnel:zi,LucideFunnelPlus:Up,LucideFunnelX:Di,LucideGalleryHorizontal:Yp,LucideGalleryHorizontalEnd:Gp,LucideGalleryThumbnails:$p,LucideGalleryVertical:Xp,LucideGalleryVerticalEnd:Zp,LucideGamepad:Kp,LucideGamepad2:Jp,LucideGanttChart:It,LucideGanttChartSquare:Te,LucideGauge:Qp,LucideGaugeCircle:$t,LucideGavel:ey,LucideGem:ty,LucideGhost:iy,LucideGift:ay,LucideGitBranch:ny,LucideGitBranchPlus:oy,LucideGitCommit:Ri,LucideGitCommitHorizontal:Ri,LucideGitCommitVertical:sy,LucideGitCompare:ly,LucideGitCompareArrows:ry,LucideGitFork:hy,LucideGitGraph:cy,LucideGitMerge:dy,LucideGitPullRequest:gy,LucideGitPullRequestArrow:uy,LucideGitPullRequestClosed:py,LucideGitPullRequestCreate:my,LucideGitPullRequestCreateArrow:yy,LucideGitPullRequestDraft:fy,LucideGithub:ky,LucideGitlab:by,LucideGlassWater:wy,LucideGlasses:vy,LucideGlobe:xy,LucideGlobe2:gi,LucideGlobeLock:My,LucideGoal:Cy,LucideGpu:Ly,LucideGrab:Ey,LucideGraduationCap:Sy,LucideGrape:Iy,LucideGrid:Ie,LucideGrid2X2:Pi,LucideGrid2X2Check:Hi,LucideGrid2X2Plus:Ai,LucideGrid2X2X:Vi,LucideGrid2x2:Pi,LucideGrid2x2Check:Hi,LucideGrid2x2Plus:Ai,LucideGrid2x2X:Vi,LucideGrid3X3:Ie,LucideGrid3x3:Ie,LucideGrip:zy,LucideGripHorizontal:Ty,LucideGripVertical:Dy,LucideGroup:Ry,LucideGuitar:Hy,LucideHam:Ay,LucideHamburger:Vy,LucideHammer:Py,LucideHand:jy,LucideHandCoins:qy,LucideHandHeart:By,LucideHandHelping:qi,LucideHandMetal:Fy,LucideHandPlatter:Oy,LucideHandshake:_y,LucideHardDrive:Uy,LucideHardDriveDownload:Ny,LucideHardDriveUpload:Wy,LucideHardHat:Gy,LucideHash:$y,LucideHaze:Yy,LucideHdmiPort:Zy,LucideHeading:af,LucideHeading1:Xy,LucideHeading2:Ky,LucideHeading3:Jy,LucideHeading4:tf,LucideHeading5:Qy,LucideHeading6:ef,LucideHeadphoneOff:of,LucideHeadphones:nf,LucideHeadset:sf,LucideHeart:uf,LucideHeartCrack:rf,LucideHeartHandshake:lf,LucideHeartMinus:hf,LucideHeartOff:cf,LucideHeartPlus:df,LucideHeartPulse:pf,LucideHeater:yf,LucideHelpCircle:Yt,LucideHelpingHand:qi,LucideHexagon:ff,LucideHighlighter:mf,LucideHistory:gf,LucideHome:Bi,LucideHop:bf,LucideHopOff:kf,LucideHospital:wf,LucideHotel:vf,LucideHourglass:Mf,LucideHouse:Bi,LucideHousePlug:Cf,LucideHousePlus:xf,LucideHouseWifi:Lf,LucideIceCream:Oi,LucideIceCream2:Fi,LucideIceCreamBowl:Fi,LucideIceCreamCone:Oi,LucideIdCard:Ef,LucideImage:Af,LucideImageDown:Sf,LucideImageMinus:If,LucideImageOff:Df,LucideImagePlay:Tf,LucideImagePlus:zf,LucideImageUp:Hf,LucideImageUpscale:Rf,LucideImages:Vf,LucideImport:qf,LucideInbox:Pf,LucideIndent:Ni,LucideIndentDecrease:ji,LucideIndentIncrease:Ni,LucideIndianRupee:Bf,LucideInfinity:Ff,LucideInfo:Of,LucideInspect:eo,LucideInspectionPanel:_f,LucideInstagram:jf,LucideItalic:Nf,LucideIterationCcw:Wf,LucideIterationCw:Uf,LucideJapaneseYen:Gf,LucideJoystick:$f,LucideKanban:Yf,LucideKanbanSquare:Za,LucideKanbanSquareDashed:Na,LucideKey:Kf,LucideKeyRound:Xf,LucideKeySquare:Zf,LucideKeyboard:em,LucideKeyboardMusic:Jf,LucideKeyboardOff:Qf,LucideLamp:sm,LucideLampCeiling:tm,LucideLampDesk:am,LucideLampFloor:im,LucideLampWallDown:om,LucideLampWallUp:nm,LucideLandPlot:rm,LucideLandmark:lm,LucideLanguages:hm,LucideLaptop:dm,LucideLaptop2:_i,LucideLaptopMinimal:_i,LucideLaptopMinimalCheck:cm,LucideLasso:um,LucideLassoSelect:ym,LucideLaugh:pm,LucideLayers:Wi,LucideLayers2:fm,LucideLayers3:Wi,LucideLayout:ra,LucideLayoutDashboard:mm,LucideLayoutGrid:gm,LucideLayoutList:km,LucideLayoutPanelLeft:bm,LucideLayoutPanelTop:wm,LucideLayoutTemplate:vm,LucideLeaf:Mm,LucideLeafyGreen:xm,LucideLectern:Cm,LucideLetterText:Lm,LucideLibrary:Sm,LucideLibraryBig:Em,LucideLibrarySquare:Xa,LucideLifeBuoy:Im,LucideLigature:Tm,LucideLightbulb:zm,LucideLightbulbOff:Dm,LucideLineChart:Lt,LucideLink:Am,LucideLink2:Hm,LucideLink2Off:Rm,LucideLinkedin:Vm,LucideList:Jm,LucideListCheck:Pm,LucideListChecks:qm,LucideListCollapse:Bm,LucideListEnd:Fm,LucideListFilter:Nm,LucideListFilterPlus:Om,LucideListMinus:jm,LucideListMusic:_m,LucideListOrdered:Wm,LucideListPlus:Um,LucideListRestart:Gm,LucideListStart:$m,LucideListTodo:Ym,LucideListTree:Zm,LucideListVideo:Xm,LucideListX:Km,LucideLoader:eg,LucideLoader2:Ui,LucideLoaderCircle:Ui,LucideLoaderPinwheel:Qm,LucideLocate:ag,LucideLocateFixed:tg,LucideLocateOff:ig,LucideLocationEdit:og,LucideLock:sg,LucideLockKeyhole:ng,LucideLockKeyholeOpen:Gi,LucideLockOpen:$i,LucideLogIn:rg,LucideLogOut:lg,LucideLogs:hg,LucideLollipop:cg,LucideLuggage:dg,LucideMSquare:Ka,LucideMagnet:ug,LucideMail:vg,LucideMailCheck:pg,LucideMailMinus:yg,LucideMailOpen:fg,LucideMailPlus:mg,LucideMailQuestion:gg,LucideMailSearch:kg,LucideMailWarning:bg,LucideMailX:wg,LucideMailbox:Mg,LucideMails:Cg,LucideMap:qg,LucideMapPin:Ag,LucideMapPinCheck:Lg,LucideMapPinCheckInside:xg,LucideMapPinHouse:Eg,LucideMapPinMinus:Ig,LucideMapPinMinusInside:Sg,LucideMapPinOff:Tg,LucideMapPinPlus:zg,LucideMapPinPlusInside:Dg,LucideMapPinX:Rg,LucideMapPinXInside:Hg,LucideMapPinned:Vg,LucideMapPlus:Pg,LucideMars:Fg,LucideMarsStroke:Bg,LucideMartini:Og,LucideMaximize:jg,LucideMaximize2:Ng,LucideMedal:_g,LucideMegaphone:Ug,LucideMegaphoneOff:Wg,LucideMeh:Gg,LucideMemoryStick:Yg,LucideMenu:$g,LucideMenuSquare:Ja,LucideMerge:Zg,LucideMessageCircle:sk,LucideMessageCircleCode:Xg,LucideMessageCircleDashed:Kg,LucideMessageCircleHeart:Jg,LucideMessageCircleMore:Qg,LucideMessageCircleOff:ek,LucideMessageCirclePlus:tk,LucideMessageCircleQuestion:ik,LucideMessageCircleReply:ak,LucideMessageCircleWarning:ok,LucideMessageCircleX:nk,LucideMessageSquare:Mk,LucideMessageSquareCode:rk,LucideMessageSquareDashed:lk,LucideMessageSquareDiff:hk,LucideMessageSquareDot:ck,LucideMessageSquareHeart:dk,LucideMessageSquareLock:uk,LucideMessageSquareMore:pk,LucideMessageSquareOff:yk,LucideMessageSquarePlus:fk,LucideMessageSquareQuote:mk,LucideMessageSquareReply:gk,LucideMessageSquareShare:kk,LucideMessageSquareText:bk,LucideMessageSquareWarning:wk,LucideMessageSquareX:vk,LucideMessagesSquare:Ck,LucideMic:Lk,LucideMic2:Yi,LucideMicOff:xk,LucideMicVocal:Yi,LucideMicrochip:Ek,LucideMicroscope:Sk,LucideMicrowave:Ik,LucideMilestone:Tk,LucideMilk:zk,LucideMilkOff:Dk,LucideMinimize:Hk,LucideMinimize2:Rk,LucideMinus:Ak,LucideMinusCircle:Zt,LucideMinusSquare:Qa,LucideMonitor:$k,LucideMonitorCheck:Vk,LucideMonitorCog:qk,LucideMonitorDot:Pk,LucideMonitorDown:Bk,LucideMonitorOff:Fk,LucideMonitorPause:Ok,LucideMonitorPlay:jk,LucideMonitorSmartphone:Nk,LucideMonitorSpeaker:Wk,LucideMonitorStop:_k,LucideMonitorUp:Uk,LucideMonitorX:Gk,LucideMoon:Zk,LucideMoonStar:Yk,LucideMoreHorizontal:bi,LucideMoreVertical:ki,LucideMountain:Kk,LucideMountainSnow:Xk,LucideMouse:n3,LucideMouseOff:Jk,LucideMousePointer:i3,LucideMousePointer2:Qk,LucideMousePointerBan:e3,LucideMousePointerClick:t3,LucideMousePointerSquareDashed:_a,LucideMove:m3,LucideMove3D:Zi,LucideMove3d:Zi,LucideMoveDiagonal:o3,LucideMoveDiagonal2:a3,LucideMoveDown:l3,LucideMoveDownLeft:s3,LucideMoveDownRight:r3,LucideMoveHorizontal:c3,LucideMoveLeft:h3,LucideMoveRight:d3,LucideMoveUp:y3,LucideMoveUpLeft:u3,LucideMoveUpRight:p3,LucideMoveVertical:f3,LucideMusic:w3,LucideMusic2:g3,LucideMusic3:k3,LucideMusic4:b3,LucideNavigation:x3,LucideNavigation2:M3,LucideNavigation2Off:v3,LucideNavigationOff:C3,LucideNetwork:L3,LucideNewspaper:E3,LucideNfc:S3,LucideNonBinary:I3,LucideNotebook:R3,LucideNotebookPen:T3,LucideNotebookTabs:D3,LucideNotebookText:z3,LucideNotepadText:A3,LucideNotepadTextDashed:H3,LucideNut:P3,LucideNutOff:V3,LucideOctagon:B3,LucideOctagonAlert:Xi,LucideOctagonMinus:q3,LucideOctagonPause:Ji,LucideOctagonX:Ki,LucideOmega:F3,LucideOption:O3,LucideOrbit:N3,LucideOrigami:j3,LucideOutdent:ji,LucidePackage:X3,LucidePackage2:_3,LucidePackageCheck:W3,LucidePackageMinus:U3,LucidePackageOpen:G3,LucidePackagePlus:$3,LucidePackageSearch:Y3,LucidePackageX:Z3,LucidePaintBucket:K3,LucidePaintRoller:J3,LucidePaintbrush:Q3,LucidePaintbrush2:Qi,LucidePaintbrushVertical:Qi,LucidePalette:e4,LucidePalmtree:Mo,LucidePanda:t4,LucidePanelBottom:o4,LucidePanelBottomClose:i4,LucidePanelBottomDashed:ea,LucidePanelBottomInactive:ea,LucidePanelBottomOpen:a4,LucidePanelLeft:oa,LucidePanelLeftClose:ta,LucidePanelLeftDashed:ia,LucidePanelLeftInactive:ia,LucidePanelLeftOpen:aa,LucidePanelRight:l4,LucidePanelRightClose:n4,LucidePanelRightDashed:na,LucidePanelRightInactive:na,LucidePanelRightOpen:s4,LucidePanelTop:c4,LucidePanelTopClose:r4,LucidePanelTopDashed:sa,LucidePanelTopInactive:sa,LucidePanelTopOpen:h4,LucidePanelsLeftBottom:d4,LucidePanelsLeftRight:yi,LucidePanelsRightBottom:u4,LucidePanelsTopBottom:ya,LucidePanelsTopLeft:ra,LucidePaperclip:p4,LucideParentheses:y4,LucideParkingCircle:Kt,LucideParkingCircleOff:Xt,LucideParkingMeter:f4,LucideParkingSquare:io,LucideParkingSquareOff:to,LucidePartyPopper:m4,LucidePause:g4,LucidePauseCircle:Jt,LucidePauseOctagon:Ji,LucidePawPrint:k4,LucidePcCase:b4,LucidePen:ha,LucidePenBox:ue,LucidePenLine:la,LucidePenOff:w4,LucidePenSquare:ue,LucidePenTool:v4,LucidePencil:L4,LucidePencilLine:C4,LucidePencilOff:M4,LucidePencilRuler:x4,LucidePentagon:E4,LucidePercent:S4,LucidePercentCircle:Qt,LucidePercentDiamond:mi,LucidePercentSquare:ao,LucidePersonStanding:I4,LucidePhilippinePeso:D4,LucidePhone:P4,LucidePhoneCall:T4,LucidePhoneForwarded:z4,LucidePhoneIncoming:R4,LucidePhoneMissed:H4,LucidePhoneOff:A4,LucidePhoneOutgoing:V4,LucidePi:q4,LucidePiSquare:oo,LucidePiano:B4,LucidePickaxe:F4,LucidePictureInPicture:j4,LucidePictureInPicture2:O4,LucidePieChart:Tt,LucidePiggyBank:N4,LucidePilcrow:U4,LucidePilcrowLeft:_4,LucidePilcrowRight:W4,LucidePilcrowSquare:no,LucidePill:$4,LucidePillBottle:G4,LucidePin:Z4,LucidePinOff:Y4,LucidePipette:X4,LucidePizza:K4,LucidePlane:e5,LucidePlaneLanding:J4,LucidePlaneTakeoff:Q4,LucidePlay:t5,LucidePlayCircle:ei,LucidePlaySquare:so,LucidePlug:a5,LucidePlug2:i5,LucidePlugZap:ca,LucidePlugZap2:ca,LucidePlus:o5,LucidePlusCircle:ti,LucidePlusSquare:ro,LucidePocket:n5,LucidePocketKnife:s5,LucidePodcast:r5,LucidePointer:h5,LucidePointerOff:l5,LucidePopcorn:c5,LucidePopsicle:d5,LucidePoundSterling:u5,LucidePower:y5,LucidePowerCircle:ii,LucidePowerOff:p5,LucidePowerSquare:lo,LucidePresentation:f5,LucidePrinter:g5,LucidePrinterCheck:m5,LucideProjector:k5,LucideProportions:b5,LucidePuzzle:w5,LucidePyramid:v5,LucideQrCode:M5,LucideQuote:x5,LucideRabbit:C5,LucideRadar:L5,LucideRadiation:E5,LucideRadical:S5,LucideRadio:D5,LucideRadioReceiver:I5,LucideRadioTower:T5,LucideRadius:z5,LucideRailSymbol:R5,LucideRainbow:H5,LucideRat:A5,LucideRatio:V5,LucideReceipt:W5,LucideReceiptCent:P5,LucideReceiptEuro:q5,LucideReceiptIndianRupee:F5,LucideReceiptJapaneseYen:B5,LucideReceiptPoundSterling:j5,LucideReceiptRussianRuble:O5,LucideReceiptSwissFranc:N5,LucideReceiptText:_5,LucideRectangleEllipsis:da,LucideRectangleGoggles:U5,LucideRectangleHorizontal:G5,LucideRectangleVertical:$5,LucideRecycle:Y5,LucideRedo:K5,LucideRedo2:Z5,LucideRedoDot:X5,LucideRefreshCcw:Q5,LucideRefreshCcwDot:J5,LucideRefreshCw:tb,LucideRefreshCwOff:eb,LucideRefrigerator:ab,LucideRegex:ib,LucideRemoveFormatting:ob,LucideRepeat:rb,LucideRepeat1:nb,LucideRepeat2:sb,LucideReplace:hb,LucideReplaceAll:lb,LucideReply:db,LucideReplyAll:cb,LucideRewind:ub,LucideRibbon:pb,LucideRocket:yb,LucideRockingChair:fb,LucideRollerCoaster:mb,LucideRotate3D:ua,LucideRotate3d:ua,LucideRotateCcw:bb,LucideRotateCcwKey:gb,LucideRotateCcwSquare:kb,LucideRotateCw:vb,LucideRotateCwSquare:wb,LucideRoute:xb,LucideRouteOff:Mb,LucideRouter:Cb,LucideRows:pa,LucideRows2:pa,LucideRows3:ya,LucideRows4:Lb,LucideRss:Eb,LucideRuler:Ib,LucideRulerDimensionLine:Sb,LucideRussianRuble:Tb,LucideSailboat:Db,LucideSalad:zb,LucideSandwich:Rb,LucideSatellite:Ab,LucideSatelliteDish:Hb,LucideSaudiRiyal:Vb,LucideSave:Bb,LucideSaveAll:Pb,LucideSaveOff:qb,LucideScale:Fb,LucideScale3D:fa,LucideScale3d:fa,LucideScaling:Ob,LucideScan:Yb,LucideScanBarcode:jb,LucideScanEye:_b,LucideScanFace:Nb,LucideScanHeart:Wb,LucideScanLine:Gb,LucideScanQrCode:Ub,LucideScanSearch:$b,LucideScanText:Zb,LucideScatterChart:Dt,LucideSchool:Xb,LucideSchool2:Lo,LucideScissors:Jb,LucideScissorsLineDashed:Kb,LucideScissorsSquare:ho,LucideScissorsSquareDashedBottom:Aa,LucideScreenShare:ew,LucideScreenShareOff:Qb,LucideScroll:iw,LucideScrollText:tw,LucideSearch:rw,LucideSearchCheck:aw,LucideSearchCode:ow,LucideSearchSlash:nw,LucideSearchX:sw,LucideSection:lw,LucideSend:dw,LucideSendHorizonal:ma,LucideSendHorizontal:ma,LucideSendToBack:hw,LucideSeparatorHorizontal:cw,LucideSeparatorVertical:pw,LucideServer:mw,LucideServerCog:uw,LucideServerCrash:yw,LucideServerOff:fw,LucideSettings:kw,LucideSettings2:gw,LucideShapes:bw,LucideShare:vw,LucideShare2:ww,LucideSheet:Mw,LucideShell:Cw,LucideShield:Aw,LucideShieldAlert:xw,LucideShieldBan:Lw,LucideShieldCheck:Ew,LucideShieldClose:ga,LucideShieldEllipsis:Sw,LucideShieldHalf:Iw,LucideShieldMinus:Tw,LucideShieldOff:Dw,LucideShieldPlus:zw,LucideShieldQuestion:Rw,LucideShieldUser:Hw,LucideShieldX:ga,LucideShip:Vw,LucideShipWheel:qw,LucideShirt:Pw,LucideShoppingBag:Bw,LucideShoppingBasket:Fw,LucideShoppingCart:Ow,LucideShovel:jw,LucideShowerHead:Nw,LucideShredder:_w,LucideShrimp:Ww,LucideShrink:Uw,LucideShrub:Gw,LucideShuffle:$w,LucideSidebar:oa,LucideSidebarClose:ta,LucideSidebarOpen:aa,LucideSigma:Yw,LucideSigmaSquare:co,LucideSignal:Qw,LucideSignalHigh:Zw,LucideSignalLow:Xw,LucideSignalMedium:Kw,LucideSignalZero:Jw,LucideSignature:ev,LucideSignpost:iv,LucideSignpostBig:tv,LucideSiren:av,LucideSkipBack:ov,LucideSkipForward:nv,LucideSkull:sv,LucideSlack:rv,LucideSlash:lv,LucideSlashSquare:po,LucideSlice:cv,LucideSliders:ka,LucideSlidersHorizontal:hv,LucideSlidersVertical:ka,LucideSmartphone:pv,LucideSmartphoneCharging:dv,LucideSmartphoneNfc:uv,LucideSmile:fv,LucideSmilePlus:yv,LucideSnail:mv,LucideSnowflake:gv,LucideSoapDispenserDroplet:kv,LucideSofa:bv,LucideSortAsc:ht,LucideSortDesc:st,LucideSoup:wv,LucideSpace:vv,LucideSpade:Mv,LucideSparkle:Cv,LucideSparkles:ba,LucideSpeaker:xv,LucideSpeech:Lv,LucideSpellCheck:Sv,LucideSpellCheck2:Ev,LucideSpline:Tv,LucideSplinePointer:Iv,LucideSplit:zv,LucideSplitSquareHorizontal:uo,LucideSplitSquareVertical:yo,LucideSprayCan:Dv,LucideSprout:Rv,LucideSquare:Ov,LucideSquareActivity:wa,LucideSquareArrowDown:Ca,LucideSquareArrowDownLeft:va,LucideSquareArrowDownRight:Ma,LucideSquareArrowLeft:xa,LucideSquareArrowOutDownLeft:La,LucideSquareArrowOutDownRight:Ea,LucideSquareArrowOutUpLeft:Sa,LucideSquareArrowOutUpRight:Ia,LucideSquareArrowRight:Ta,LucideSquareArrowUp:Ra,LucideSquareArrowUpLeft:za,LucideSquareArrowUpRight:Da,LucideSquareAsterisk:Ha,LucideSquareBottomDashedScissors:Aa,LucideSquareChartGantt:Te,LucideSquareCheck:Pa,LucideSquareCheckBig:Va,LucideSquareChevronDown:qa,LucideSquareChevronLeft:Ba,LucideSquareChevronRight:Fa,LucideSquareChevronUp:Oa,LucideSquareCode:ja,LucideSquareDashed:Wa,LucideSquareDashedBottom:Av,LucideSquareDashedBottomCode:Hv,LucideSquareDashedKanban:Na,LucideSquareDashedMousePointer:_a,LucideSquareDashedTopSolid:Vv,LucideSquareDivide:Ua,LucideSquareDot:Ga,LucideSquareEqual:$a,LucideSquareFunction:Ya,LucideSquareGanttChart:Te,LucideSquareKanban:Za,LucideSquareLibrary:Xa,LucideSquareM:Ka,LucideSquareMenu:Ja,LucideSquareMinus:Qa,LucideSquareMousePointer:eo,LucideSquareParking:io,LucideSquareParkingOff:to,LucideSquarePen:ue,LucideSquarePercent:ao,LucideSquarePi:oo,LucideSquarePilcrow:no,LucideSquarePlay:so,LucideSquarePlus:ro,LucideSquarePower:lo,LucideSquareRadical:Pv,LucideSquareRoundCorner:qv,LucideSquareScissors:ho,LucideSquareSigma:co,LucideSquareSlash:po,LucideSquareSplitHorizontal:uo,LucideSquareSplitVertical:yo,LucideSquareSquare:Bv,LucideSquareStack:Fv,LucideSquareTerminal:fo,LucideSquareUser:go,LucideSquareUserRound:mo,LucideSquareX:ko,LucideSquaresExclude:Nv,LucideSquaresIntersect:jv,LucideSquaresSubtract:_v,LucideSquaresUnite:Wv,LucideSquircle:Uv,LucideSquirrel:Gv,LucideStamp:$v,LucideStar:Xv,LucideStarHalf:Yv,LucideStarOff:Zv,LucideStars:ba,LucideStepBack:Kv,LucideStepForward:Jv,LucideStethoscope:Qv,LucideSticker:e6,LucideStickyNote:t6,LucideStopCircle:oi,LucideStore:i6,LucideStretchHorizontal:a6,LucideStretchVertical:o6,LucideStrikethrough:n6,LucideSubscript:s6,LucideSubtitles:gt,LucideSun:d6,LucideSunDim:l6,LucideSunMedium:r6,LucideSunMoon:h6,LucideSunSnow:c6,LucideSunrise:u6,LucideSunset:p6,LucideSuperscript:y6,LucideSwatchBook:f6,LucideSwissFranc:m6,LucideSwitchCamera:g6,LucideSword:k6,LucideSwords:b6,LucideSyringe:w6,LucideTable:I6,LucideTable2:v6,LucideTableCellsMerge:M6,LucideTableCellsSplit:C6,LucideTableColumnsSplit:x6,LucideTableConfig:Se,LucideTableOfContents:L6,LucideTableProperties:E6,LucideTableRowsSplit:S6,LucideTablet:D6,LucideTabletSmartphone:T6,LucideTablets:z6,LucideTag:R6,LucideTags:H6,LucideTally1:A6,LucideTally2:V6,LucideTally3:P6,LucideTally4:q6,LucideTally5:B6,LucideTangent:F6,LucideTarget:O6,LucideTelescope:j6,LucideTent:_6,LucideTentTree:N6,LucideTerminal:W6,LucideTerminalSquare:fo,LucideTestTube:U6,LucideTestTube2:bo,LucideTestTubeDiagonal:bo,LucideTestTubes:G6,LucideText:K6,LucideTextCursor:Y6,LucideTextCursorInput:$6,LucideTextQuote:Z6,LucideTextSearch:X6,LucideTextSelect:wo,LucideTextSelection:wo,LucideTheater:J6,LucideThermometer:t8,LucideThermometerSnowflake:Q6,LucideThermometerSun:e8,LucideThumbsDown:i8,LucideThumbsUp:a8,LucideTicket:c8,LucideTicketCheck:o8,LucideTicketMinus:n8,LucideTicketPercent:s8,LucideTicketPlus:r8,LucideTicketSlash:l8,LucideTicketX:h8,LucideTickets:p8,LucideTicketsPlane:d8,LucideTimer:f8,LucideTimerOff:u8,LucideTimerReset:y8,LucideToggleLeft:m8,LucideToggleRight:g8,LucideToilet:k8,LucideTornado:b8,LucideTorus:w8,LucideTouchpad:M8,LucideTouchpadOff:v8,LucideTowerControl:C8,LucideToyBrick:x8,LucideTractor:L8,LucideTrafficCone:E8,LucideTrain:vo,LucideTrainFront:I8,LucideTrainFrontTunnel:S8,LucideTrainTrack:T8,LucideTramFront:vo,LucideTransgender:D8,LucideTrash:R8,LucideTrash2:z8,LucideTreeDeciduous:H8,LucideTreePalm:Mo,LucideTreePine:A8,LucideTrees:V8,LucideTrello:P8,LucideTrendingDown:q8,LucideTrendingUp:F8,LucideTrendingUpDown:B8,LucideTriangle:N8,LucideTriangleAlert:Co,LucideTriangleDashed:O8,LucideTriangleRight:j8,LucideTrophy:_8,LucideTruck:W8,LucideTruckElectric:U8,LucideTurtle:G8,LucideTv:Y8,LucideTv2:xo,LucideTvMinimal:xo,LucideTvMinimalPlay:$8,LucideTwitch:Z8,LucideTwitter:X8,LucideType:J8,LucideTypeOutline:K8,LucideUmbrella:eM,LucideUmbrellaOff:Q8,LucideUnderline:tM,LucideUndo:oM,LucideUndo2:aM,LucideUndoDot:iM,LucideUnfoldHorizontal:nM,LucideUnfoldVertical:sM,LucideUngroup:rM,LucideUniversity:Lo,LucideUnlink:hM,LucideUnlink2:lM,LucideUnlock:$i,LucideUnlockKeyhole:Gi,LucideUnplug:cM,LucideUpload:dM,LucideUploadCloud:di,LucideUsb:uM,LucideUser:CM,LucideUser2:zo,LucideUserCheck:pM,LucideUserCheck2:Eo,LucideUserCircle:si,LucideUserCircle2:ni,LucideUserCog:yM,LucideUserCog2:So,LucideUserLock:fM,LucideUserMinus:mM,LucideUserMinus2:Io,LucideUserPen:gM,LucideUserPlus:kM,LucideUserPlus2:To,LucideUserRound:zo,LucideUserRoundCheck:Eo,LucideUserRoundCog:So,LucideUserRoundMinus:Io,LucideUserRoundPen:bM,LucideUserRoundPlus:To,LucideUserRoundSearch:wM,LucideUserRoundX:Do,LucideUserSearch:vM,LucideUserSquare:go,LucideUserSquare2:mo,LucideUserX:MM,LucideUserX2:Do,LucideUsers:xM,LucideUsers2:Ro,LucideUsersRound:Ro,LucideUtensils:Ao,LucideUtensilsCrossed:Ho,LucideUtilityPole:LM,LucideVariable:EM,LucideVault:SM,LucideVegan:IM,LucideVenetianMask:TM,LucideVenus:zM,LucideVenusAndMars:DM,LucideVerified:ut,LucideVibrate:HM,LucideVibrateOff:RM,LucideVideo:PM,LucideVideoOff:AM,LucideVideotape:VM,LucideView:qM,LucideVoicemail:BM,LucideVolleyball:FM,LucideVolume:_M,LucideVolume1:OM,LucideVolume2:jM,LucideVolumeOff:NM,LucideVolumeX:WM,LucideVote:UM,LucideWallet:$M,LucideWallet2:Vo,LucideWalletCards:GM,LucideWalletMinimal:Vo,LucideWallpaper:YM,LucideWand:ZM,LucideWand2:Po,LucideWandSparkles:Po,LucideWarehouse:XM,LucideWashingMachine:KM,LucideWatch:JM,LucideWaves:e7,LucideWavesLadder:QM,LucideWaypoints:t7,LucideWebcam:i7,LucideWebhook:a7,LucideWebhookOff:o7,LucideWeight:n7,LucideWheat:s7,LucideWheatOff:r7,LucideWholeWord:h7,LucideWifi:p7,LucideWifiHigh:l7,LucideWifiLow:c7,LucideWifiOff:d7,LucideWifiPen:u7,LucideWifiZero:y7,LucideWind:m7,LucideWindArrowDown:f7,LucideWine:k7,LucideWineOff:g7,LucideWorkflow:b7,LucideWorm:w7,LucideWrapText:v7,LucideWrench:M7,LucideX:C7,LucideXCircle:ri,LucideXOctagon:Ki,LucideXSquare:ko,LucideYoutube:x7,LucideZap:E7,LucideZapOff:L7,LucideZoomIn:S7,LucideZoomOut:I7,Luggage:dg,LuggageIcon:dg,MSquare:Ka,MSquareIcon:Ka,Magnet:ug,MagnetIcon:ug,Mail:vg,MailCheck:pg,MailCheckIcon:pg,MailIcon:vg,MailMinus:yg,MailMinusIcon:yg,MailOpen:fg,MailOpenIcon:fg,MailPlus:mg,MailPlusIcon:mg,MailQuestion:gg,MailQuestionIcon:gg,MailSearch:kg,MailSearchIcon:kg,MailWarning:bg,MailWarningIcon:bg,MailX:wg,MailXIcon:wg,Mailbox:Mg,MailboxIcon:Mg,Mails:Cg,MailsIcon:Cg,Map:qg,MapIcon:qg,MapPin:Ag,MapPinCheck:Lg,MapPinCheckIcon:Lg,MapPinCheckInside:xg,MapPinCheckInsideIcon:xg,MapPinHouse:Eg,MapPinHouseIcon:Eg,MapPinIcon:Ag,MapPinMinus:Ig,MapPinMinusIcon:Ig,MapPinMinusInside:Sg,MapPinMinusInsideIcon:Sg,MapPinOff:Tg,MapPinOffIcon:Tg,MapPinPlus:zg,MapPinPlusIcon:zg,MapPinPlusInside:Dg,MapPinPlusInsideIcon:Dg,MapPinX:Rg,MapPinXIcon:Rg,MapPinXInside:Hg,MapPinXInsideIcon:Hg,MapPinned:Vg,MapPinnedIcon:Vg,MapPlus:Pg,MapPlusIcon:Pg,Mars:Fg,MarsIcon:Fg,MarsStroke:Bg,MarsStrokeIcon:Bg,Martini:Og,MartiniIcon:Og,Maximize:jg,Maximize2:Ng,Maximize2Icon:Ng,MaximizeIcon:jg,Medal:_g,MedalIcon:_g,Megaphone:Ug,MegaphoneIcon:Ug,MegaphoneOff:Wg,MegaphoneOffIcon:Wg,Meh:Gg,MehIcon:Gg,MemoryStick:Yg,MemoryStickIcon:Yg,Menu:$g,MenuIcon:$g,MenuSquare:Ja,MenuSquareIcon:Ja,Merge:Zg,MergeIcon:Zg,MessageCircle:sk,MessageCircleCode:Xg,MessageCircleCodeIcon:Xg,MessageCircleDashed:Kg,MessageCircleDashedIcon:Kg,MessageCircleHeart:Jg,MessageCircleHeartIcon:Jg,MessageCircleIcon:sk,MessageCircleMore:Qg,MessageCircleMoreIcon:Qg,MessageCircleOff:ek,MessageCircleOffIcon:ek,MessageCirclePlus:tk,MessageCirclePlusIcon:tk,MessageCircleQuestion:ik,MessageCircleQuestionIcon:ik,MessageCircleReply:ak,MessageCircleReplyIcon:ak,MessageCircleWarning:ok,MessageCircleWarningIcon:ok,MessageCircleX:nk,MessageCircleXIcon:nk,MessageSquare:Mk,MessageSquareCode:rk,MessageSquareCodeIcon:rk,MessageSquareDashed:lk,MessageSquareDashedIcon:lk,MessageSquareDiff:hk,MessageSquareDiffIcon:hk,MessageSquareDot:ck,MessageSquareDotIcon:ck,MessageSquareHeart:dk,MessageSquareHeartIcon:dk,MessageSquareIcon:Mk,MessageSquareLock:uk,MessageSquareLockIcon:uk,MessageSquareMore:pk,MessageSquareMoreIcon:pk,MessageSquareOff:yk,MessageSquareOffIcon:yk,MessageSquarePlus:fk,MessageSquarePlusIcon:fk,MessageSquareQuote:mk,MessageSquareQuoteIcon:mk,MessageSquareReply:gk,MessageSquareReplyIcon:gk,MessageSquareShare:kk,MessageSquareShareIcon:kk,MessageSquareText:bk,MessageSquareTextIcon:bk,MessageSquareWarning:wk,MessageSquareWarningIcon:wk,MessageSquareX:vk,MessageSquareXIcon:vk,MessagesSquare:Ck,MessagesSquareIcon:Ck,Mic:Lk,Mic2:Yi,Mic2Icon:Yi,MicIcon:Lk,MicOff:xk,MicOffIcon:xk,MicVocal:Yi,MicVocalIcon:Yi,Microchip:Ek,MicrochipIcon:Ek,Microscope:Sk,MicroscopeIcon:Sk,Microwave:Ik,MicrowaveIcon:Ik,Milestone:Tk,MilestoneIcon:Tk,Milk:zk,MilkIcon:zk,MilkOff:Dk,MilkOffIcon:Dk,Minimize:Hk,Minimize2:Rk,Minimize2Icon:Rk,MinimizeIcon:Hk,Minus:Ak,MinusCircle:Zt,MinusCircleIcon:Zt,MinusIcon:Ak,MinusSquare:Qa,MinusSquareIcon:Qa,Monitor:$k,MonitorCheck:Vk,MonitorCheckIcon:Vk,MonitorCog:qk,MonitorCogIcon:qk,MonitorDot:Pk,MonitorDotIcon:Pk,MonitorDown:Bk,MonitorDownIcon:Bk,MonitorIcon:$k,MonitorOff:Fk,MonitorOffIcon:Fk,MonitorPause:Ok,MonitorPauseIcon:Ok,MonitorPlay:jk,MonitorPlayIcon:jk,MonitorSmartphone:Nk,MonitorSmartphoneIcon:Nk,MonitorSpeaker:Wk,MonitorSpeakerIcon:Wk,MonitorStop:_k,MonitorStopIcon:_k,MonitorUp:Uk,MonitorUpIcon:Uk,MonitorX:Gk,MonitorXIcon:Gk,Moon:Zk,MoonIcon:Zk,MoonStar:Yk,MoonStarIcon:Yk,MoreHorizontal:bi,MoreHorizontalIcon:bi,MoreVertical:ki,MoreVerticalIcon:ki,Mountain:Kk,MountainIcon:Kk,MountainSnow:Xk,MountainSnowIcon:Xk,Mouse:n3,MouseIcon:n3,MouseOff:Jk,MouseOffIcon:Jk,MousePointer:i3,MousePointer2:Qk,MousePointer2Icon:Qk,MousePointerBan:e3,MousePointerBanIcon:e3,MousePointerClick:t3,MousePointerClickIcon:t3,MousePointerIcon:i3,MousePointerSquareDashed:_a,MousePointerSquareDashedIcon:_a,Move:m3,Move3D:Zi,Move3DIcon:Zi,Move3d:Zi,Move3dIcon:Zi,MoveDiagonal:o3,MoveDiagonal2:a3,MoveDiagonal2Icon:a3,MoveDiagonalIcon:o3,MoveDown:l3,MoveDownIcon:l3,MoveDownLeft:s3,MoveDownLeftIcon:s3,MoveDownRight:r3,MoveDownRightIcon:r3,MoveHorizontal:c3,MoveHorizontalIcon:c3,MoveIcon:m3,MoveLeft:h3,MoveLeftIcon:h3,MoveRight:d3,MoveRightIcon:d3,MoveUp:y3,MoveUpIcon:y3,MoveUpLeft:u3,MoveUpLeftIcon:u3,MoveUpRight:p3,MoveUpRightIcon:p3,MoveVertical:f3,MoveVerticalIcon:f3,Music:w3,Music2:g3,Music2Icon:g3,Music3:k3,Music3Icon:k3,Music4:b3,Music4Icon:b3,MusicIcon:w3,Navigation:x3,Navigation2:M3,Navigation2Icon:M3,Navigation2Off:v3,Navigation2OffIcon:v3,NavigationIcon:x3,NavigationOff:C3,NavigationOffIcon:C3,Network:L3,NetworkIcon:L3,Newspaper:E3,NewspaperIcon:E3,Nfc:S3,NfcIcon:S3,NonBinary:I3,NonBinaryIcon:I3,Notebook:R3,NotebookIcon:R3,NotebookPen:T3,NotebookPenIcon:T3,NotebookTabs:D3,NotebookTabsIcon:D3,NotebookText:z3,NotebookTextIcon:z3,NotepadText:A3,NotepadTextDashed:H3,NotepadTextDashedIcon:H3,NotepadTextIcon:A3,Nut:P3,NutIcon:P3,NutOff:V3,NutOffIcon:V3,Octagon:B3,OctagonAlert:Xi,OctagonAlertIcon:Xi,OctagonIcon:B3,OctagonMinus:q3,OctagonMinusIcon:q3,OctagonPause:Ji,OctagonPauseIcon:Ji,OctagonX:Ki,OctagonXIcon:Ki,Omega:F3,OmegaIcon:F3,Option:O3,OptionIcon:O3,Orbit:N3,OrbitIcon:N3,Origami:j3,OrigamiIcon:j3,Outdent:ji,OutdentIcon:ji,Package:X3,Package2:_3,Package2Icon:_3,PackageCheck:W3,PackageCheckIcon:W3,PackageIcon:X3,PackageMinus:U3,PackageMinusIcon:U3,PackageOpen:G3,PackageOpenIcon:G3,PackagePlus:$3,PackagePlusIcon:$3,PackageSearch:Y3,PackageSearchIcon:Y3,PackageX:Z3,PackageXIcon:Z3,PaintBucket:K3,PaintBucketIcon:K3,PaintRoller:J3,PaintRollerIcon:J3,Paintbrush:Q3,Paintbrush2:Qi,Paintbrush2Icon:Qi,PaintbrushIcon:Q3,PaintbrushVertical:Qi,PaintbrushVerticalIcon:Qi,Palette:e4,PaletteIcon:e4,Palmtree:Mo,PalmtreeIcon:Mo,Panda:t4,PandaIcon:t4,PanelBottom:o4,PanelBottomClose:i4,PanelBottomCloseIcon:i4,PanelBottomDashed:ea,PanelBottomDashedIcon:ea,PanelBottomIcon:o4,PanelBottomInactive:ea,PanelBottomInactiveIcon:ea,PanelBottomOpen:a4,PanelBottomOpenIcon:a4,PanelLeft:oa,PanelLeftClose:ta,PanelLeftCloseIcon:ta,PanelLeftDashed:ia,PanelLeftDashedIcon:ia,PanelLeftIcon:oa,PanelLeftInactive:ia,PanelLeftInactiveIcon:ia,PanelLeftOpen:aa,PanelLeftOpenIcon:aa,PanelRight:l4,PanelRightClose:n4,PanelRightCloseIcon:n4,PanelRightDashed:na,PanelRightDashedIcon:na,PanelRightIcon:l4,PanelRightInactive:na,PanelRightInactiveIcon:na,PanelRightOpen:s4,PanelRightOpenIcon:s4,PanelTop:c4,PanelTopClose:r4,PanelTopCloseIcon:r4,PanelTopDashed:sa,PanelTopDashedIcon:sa,PanelTopIcon:c4,PanelTopInactive:sa,PanelTopInactiveIcon:sa,PanelTopOpen:h4,PanelTopOpenIcon:h4,PanelsLeftBottom:d4,PanelsLeftBottomIcon:d4,PanelsLeftRight:yi,PanelsLeftRightIcon:yi,PanelsRightBottom:u4,PanelsRightBottomIcon:u4,PanelsTopBottom:ya,PanelsTopBottomIcon:ya,PanelsTopLeft:ra,PanelsTopLeftIcon:ra,Paperclip:p4,PaperclipIcon:p4,Parentheses:y4,ParenthesesIcon:y4,ParkingCircle:Kt,ParkingCircleIcon:Kt,ParkingCircleOff:Xt,ParkingCircleOffIcon:Xt,ParkingMeter:f4,ParkingMeterIcon:f4,ParkingSquare:io,ParkingSquareIcon:io,ParkingSquareOff:to,ParkingSquareOffIcon:to,PartyPopper:m4,PartyPopperIcon:m4,Pause:g4,PauseCircle:Jt,PauseCircleIcon:Jt,PauseIcon:g4,PauseOctagon:Ji,PauseOctagonIcon:Ji,PawPrint:k4,PawPrintIcon:k4,PcCase:b4,PcCaseIcon:b4,Pen:ha,PenBox:ue,PenBoxIcon:ue,PenIcon:ha,PenLine:la,PenLineIcon:la,PenOff:w4,PenOffIcon:w4,PenSquare:ue,PenSquareIcon:ue,PenTool:v4,PenToolIcon:v4,Pencil:L4,PencilIcon:L4,PencilLine:C4,PencilLineIcon:C4,PencilOff:M4,PencilOffIcon:M4,PencilRuler:x4,PencilRulerIcon:x4,Pentagon:E4,PentagonIcon:E4,Percent:S4,PercentCircle:Qt,PercentCircleIcon:Qt,PercentDiamond:mi,PercentDiamondIcon:mi,PercentIcon:S4,PercentSquare:ao,PercentSquareIcon:ao,PersonStanding:I4,PersonStandingIcon:I4,PhilippinePeso:D4,PhilippinePesoIcon:D4,Phone:P4,PhoneCall:T4,PhoneCallIcon:T4,PhoneForwarded:z4,PhoneForwardedIcon:z4,PhoneIcon:P4,PhoneIncoming:R4,PhoneIncomingIcon:R4,PhoneMissed:H4,PhoneMissedIcon:H4,PhoneOff:A4,PhoneOffIcon:A4,PhoneOutgoing:V4,PhoneOutgoingIcon:V4,Pi:q4,PiIcon:q4,PiSquare:oo,PiSquareIcon:oo,Piano:B4,PianoIcon:B4,Pickaxe:F4,PickaxeIcon:F4,PictureInPicture:j4,PictureInPicture2:O4,PictureInPicture2Icon:O4,PictureInPictureIcon:j4,PieChart:Tt,PieChartIcon:Tt,PiggyBank:N4,PiggyBankIcon:N4,Pilcrow:U4,PilcrowIcon:U4,PilcrowLeft:_4,PilcrowLeftIcon:_4,PilcrowRight:W4,PilcrowRightIcon:W4,PilcrowSquare:no,PilcrowSquareIcon:no,Pill:$4,PillBottle:G4,PillBottleIcon:G4,PillIcon:$4,Pin:Z4,PinIcon:Z4,PinOff:Y4,PinOffIcon:Y4,Pipette:X4,PipetteIcon:X4,Pizza:K4,PizzaIcon:K4,Plane:e5,PlaneIcon:e5,PlaneLanding:J4,PlaneLandingIcon:J4,PlaneTakeoff:Q4,PlaneTakeoffIcon:Q4,Play:t5,PlayCircle:ei,PlayCircleIcon:ei,PlayIcon:t5,PlaySquare:so,PlaySquareIcon:so,Plug:a5,Plug2:i5,Plug2Icon:i5,PlugIcon:a5,PlugZap:ca,PlugZap2:ca,PlugZap2Icon:ca,PlugZapIcon:ca,Plus:o5,PlusCircle:ti,PlusCircleIcon:ti,PlusIcon:o5,PlusSquare:ro,PlusSquareIcon:ro,Pocket:n5,PocketIcon:n5,PocketKnife:s5,PocketKnifeIcon:s5,Podcast:r5,PodcastIcon:r5,Pointer:h5,PointerIcon:h5,PointerOff:l5,PointerOffIcon:l5,Popcorn:c5,PopcornIcon:c5,Popsicle:d5,PopsicleIcon:d5,PoundSterling:u5,PoundSterlingIcon:u5,Power:y5,PowerCircle:ii,PowerCircleIcon:ii,PowerIcon:y5,PowerOff:p5,PowerOffIcon:p5,PowerSquare:lo,PowerSquareIcon:lo,Presentation:f5,PresentationIcon:f5,Printer:g5,PrinterCheck:m5,PrinterCheckIcon:m5,PrinterIcon:g5,Projector:k5,ProjectorIcon:k5,Proportions:b5,ProportionsIcon:b5,Puzzle:w5,PuzzleIcon:w5,Pyramid:v5,PyramidIcon:v5,QrCode:M5,QrCodeIcon:M5,Quote:x5,QuoteIcon:x5,Rabbit:C5,RabbitIcon:C5,Radar:L5,RadarIcon:L5,Radiation:E5,RadiationIcon:E5,Radical:S5,RadicalIcon:S5,Radio:D5,RadioIcon:D5,RadioReceiver:I5,RadioReceiverIcon:I5,RadioTower:T5,RadioTowerIcon:T5,Radius:z5,RadiusIcon:z5,RailSymbol:R5,RailSymbolIcon:R5,Rainbow:H5,RainbowIcon:H5,Rat:A5,RatIcon:A5,Ratio:V5,RatioIcon:V5,Receipt:W5,ReceiptCent:P5,ReceiptCentIcon:P5,ReceiptEuro:q5,ReceiptEuroIcon:q5,ReceiptIcon:W5,ReceiptIndianRupee:F5,ReceiptIndianRupeeIcon:F5,ReceiptJapaneseYen:B5,ReceiptJapaneseYenIcon:B5,ReceiptPoundSterling:j5,ReceiptPoundSterlingIcon:j5,ReceiptRussianRuble:O5,ReceiptRussianRubleIcon:O5,ReceiptSwissFranc:N5,ReceiptSwissFrancIcon:N5,ReceiptText:_5,ReceiptTextIcon:_5,RectangleEllipsis:da,RectangleEllipsisIcon:da,RectangleGoggles:U5,RectangleGogglesIcon:U5,RectangleHorizontal:G5,RectangleHorizontalIcon:G5,RectangleVertical:$5,RectangleVerticalIcon:$5,Recycle:Y5,RecycleIcon:Y5,Redo:K5,Redo2:Z5,Redo2Icon:Z5,RedoDot:X5,RedoDotIcon:X5,RedoIcon:K5,RefreshCcw:Q5,RefreshCcwDot:J5,RefreshCcwDotIcon:J5,RefreshCcwIcon:Q5,RefreshCw:tb,RefreshCwIcon:tb,RefreshCwOff:eb,RefreshCwOffIcon:eb,Refrigerator:ab,RefrigeratorIcon:ab,Regex:ib,RegexIcon:ib,RemoveFormatting:ob,RemoveFormattingIcon:ob,Repeat:rb,Repeat1:nb,Repeat1Icon:nb,Repeat2:sb,Repeat2Icon:sb,RepeatIcon:rb,Replace:hb,ReplaceAll:lb,ReplaceAllIcon:lb,ReplaceIcon:hb,Reply:db,ReplyAll:cb,ReplyAllIcon:cb,ReplyIcon:db,Rewind:ub,RewindIcon:ub,Ribbon:pb,RibbonIcon:pb,Rocket:yb,RocketIcon:yb,RockingChair:fb,RockingChairIcon:fb,RollerCoaster:mb,RollerCoasterIcon:mb,Rotate3D:ua,Rotate3DIcon:ua,Rotate3d:ua,Rotate3dIcon:ua,RotateCcw:bb,RotateCcwIcon:bb,RotateCcwKey:gb,RotateCcwKeyIcon:gb,RotateCcwSquare:kb,RotateCcwSquareIcon:kb,RotateCw:vb,RotateCwIcon:vb,RotateCwSquare:wb,RotateCwSquareIcon:wb,Route:xb,RouteIcon:xb,RouteOff:Mb,RouteOffIcon:Mb,Router:Cb,RouterIcon:Cb,Rows:pa,Rows2:pa,Rows2Icon:pa,Rows3:ya,Rows3Icon:ya,Rows4:Lb,Rows4Icon:Lb,RowsIcon:pa,Rss:Eb,RssIcon:Eb,Ruler:Ib,RulerDimensionLine:Sb,RulerDimensionLineIcon:Sb,RulerIcon:Ib,RussianRuble:Tb,RussianRubleIcon:Tb,Sailboat:Db,SailboatIcon:Db,Salad:zb,SaladIcon:zb,Sandwich:Rb,SandwichIcon:Rb,Satellite:Ab,SatelliteDish:Hb,SatelliteDishIcon:Hb,SatelliteIcon:Ab,SaudiRiyal:Vb,SaudiRiyalIcon:Vb,Save:Bb,SaveAll:Pb,SaveAllIcon:Pb,SaveIcon:Bb,SaveOff:qb,SaveOffIcon:qb,Scale:Fb,Scale3D:fa,Scale3DIcon:fa,Scale3d:fa,Scale3dIcon:fa,ScaleIcon:Fb,Scaling:Ob,ScalingIcon:Ob,Scan:Yb,ScanBarcode:jb,ScanBarcodeIcon:jb,ScanEye:_b,ScanEyeIcon:_b,ScanFace:Nb,ScanFaceIcon:Nb,ScanHeart:Wb,ScanHeartIcon:Wb,ScanIcon:Yb,ScanLine:Gb,ScanLineIcon:Gb,ScanQrCode:Ub,ScanQrCodeIcon:Ub,ScanSearch:$b,ScanSearchIcon:$b,ScanText:Zb,ScanTextIcon:Zb,ScatterChart:Dt,ScatterChartIcon:Dt,School:Xb,School2:Lo,School2Icon:Lo,SchoolIcon:Xb,Scissors:Jb,ScissorsIcon:Jb,ScissorsLineDashed:Kb,ScissorsLineDashedIcon:Kb,ScissorsSquare:ho,ScissorsSquareDashedBottom:Aa,ScissorsSquareDashedBottomIcon:Aa,ScissorsSquareIcon:ho,ScreenShare:ew,ScreenShareIcon:ew,ScreenShareOff:Qb,ScreenShareOffIcon:Qb,Scroll:iw,ScrollIcon:iw,ScrollText:tw,ScrollTextIcon:tw,Search:rw,SearchCheck:aw,SearchCheckIcon:aw,SearchCode:ow,SearchCodeIcon:ow,SearchIcon:rw,SearchSlash:nw,SearchSlashIcon:nw,SearchX:sw,SearchXIcon:sw,Section:lw,SectionIcon:lw,Send:dw,SendHorizonal:ma,SendHorizonalIcon:ma,SendHorizontal:ma,SendHorizontalIcon:ma,SendIcon:dw,SendToBack:hw,SendToBackIcon:hw,SeparatorHorizontal:cw,SeparatorHorizontalIcon:cw,SeparatorVertical:pw,SeparatorVerticalIcon:pw,Server:mw,ServerCog:uw,ServerCogIcon:uw,ServerCrash:yw,ServerCrashIcon:yw,ServerIcon:mw,ServerOff:fw,ServerOffIcon:fw,Settings:kw,Settings2:gw,Settings2Icon:gw,SettingsIcon:kw,Shapes:bw,ShapesIcon:bw,Share:vw,Share2:ww,Share2Icon:ww,ShareIcon:vw,Sheet:Mw,SheetIcon:Mw,Shell:Cw,ShellIcon:Cw,Shield:Aw,ShieldAlert:xw,ShieldAlertIcon:xw,ShieldBan:Lw,ShieldBanIcon:Lw,ShieldCheck:Ew,ShieldCheckIcon:Ew,ShieldClose:ga,ShieldCloseIcon:ga,ShieldEllipsis:Sw,ShieldEllipsisIcon:Sw,ShieldHalf:Iw,ShieldHalfIcon:Iw,ShieldIcon:Aw,ShieldMinus:Tw,ShieldMinusIcon:Tw,ShieldOff:Dw,ShieldOffIcon:Dw,ShieldPlus:zw,ShieldPlusIcon:zw,ShieldQuestion:Rw,ShieldQuestionIcon:Rw,ShieldUser:Hw,ShieldUserIcon:Hw,ShieldX:ga,ShieldXIcon:ga,Ship:Vw,ShipIcon:Vw,ShipWheel:qw,ShipWheelIcon:qw,Shirt:Pw,ShirtIcon:Pw,ShoppingBag:Bw,ShoppingBagIcon:Bw,ShoppingBasket:Fw,ShoppingBasketIcon:Fw,ShoppingCart:Ow,ShoppingCartIcon:Ow,Shovel:jw,ShovelIcon:jw,ShowerHead:Nw,ShowerHeadIcon:Nw,Shredder:_w,ShredderIcon:_w,Shrimp:Ww,ShrimpIcon:Ww,Shrink:Uw,ShrinkIcon:Uw,Shrub:Gw,ShrubIcon:Gw,Shuffle:$w,ShuffleIcon:$w,Sidebar:oa,SidebarClose:ta,SidebarCloseIcon:ta,SidebarIcon:oa,SidebarOpen:aa,SidebarOpenIcon:aa,Sigma:Yw,SigmaIcon:Yw,SigmaSquare:co,SigmaSquareIcon:co,Signal:Qw,SignalHigh:Zw,SignalHighIcon:Zw,SignalIcon:Qw,SignalLow:Xw,SignalLowIcon:Xw,SignalMedium:Kw,SignalMediumIcon:Kw,SignalZero:Jw,SignalZeroIcon:Jw,Signature:ev,SignatureIcon:ev,Signpost:iv,SignpostBig:tv,SignpostBigIcon:tv,SignpostIcon:iv,Siren:av,SirenIcon:av,SkipBack:ov,SkipBackIcon:ov,SkipForward:nv,SkipForwardIcon:nv,Skull:sv,SkullIcon:sv,Slack:rv,SlackIcon:rv,Slash:lv,SlashIcon:lv,SlashSquare:po,SlashSquareIcon:po,Slice:cv,SliceIcon:cv,Sliders:ka,SlidersHorizontal:hv,SlidersHorizontalIcon:hv,SlidersIcon:ka,SlidersVertical:ka,SlidersVerticalIcon:ka,Smartphone:pv,SmartphoneCharging:dv,SmartphoneChargingIcon:dv,SmartphoneIcon:pv,SmartphoneNfc:uv,SmartphoneNfcIcon:uv,Smile:fv,SmileIcon:fv,SmilePlus:yv,SmilePlusIcon:yv,Snail:mv,SnailIcon:mv,Snowflake:gv,SnowflakeIcon:gv,SoapDispenserDroplet:kv,SoapDispenserDropletIcon:kv,Sofa:bv,SofaIcon:bv,SortAsc:ht,SortAscIcon:ht,SortDesc:st,SortDescIcon:st,Soup:wv,SoupIcon:wv,Space:vv,SpaceIcon:vv,Spade:Mv,SpadeIcon:Mv,Sparkle:Cv,SparkleIcon:Cv,Sparkles:ba,SparklesIcon:ba,Speaker:xv,SpeakerIcon:xv,Speech:Lv,SpeechIcon:Lv,SpellCheck:Sv,SpellCheck2:Ev,SpellCheck2Icon:Ev,SpellCheckIcon:Sv,Spline:Tv,SplineIcon:Tv,SplinePointer:Iv,SplinePointerIcon:Iv,Split:zv,SplitIcon:zv,SplitSquareHorizontal:uo,SplitSquareHorizontalIcon:uo,SplitSquareVertical:yo,SplitSquareVerticalIcon:yo,SprayCan:Dv,SprayCanIcon:Dv,Sprout:Rv,SproutIcon:Rv,Square:Ov,SquareActivity:wa,SquareActivityIcon:wa,SquareArrowDown:Ca,SquareArrowDownIcon:Ca,SquareArrowDownLeft:va,SquareArrowDownLeftIcon:va,SquareArrowDownRight:Ma,SquareArrowDownRightIcon:Ma,SquareArrowLeft:xa,SquareArrowLeftIcon:xa,SquareArrowOutDownLeft:La,SquareArrowOutDownLeftIcon:La,SquareArrowOutDownRight:Ea,SquareArrowOutDownRightIcon:Ea,SquareArrowOutUpLeft:Sa,SquareArrowOutUpLeftIcon:Sa,SquareArrowOutUpRight:Ia,SquareArrowOutUpRightIcon:Ia,SquareArrowRight:Ta,SquareArrowRightIcon:Ta,SquareArrowUp:Ra,SquareArrowUpIcon:Ra,SquareArrowUpLeft:za,SquareArrowUpLeftIcon:za,SquareArrowUpRight:Da,SquareArrowUpRightIcon:Da,SquareAsterisk:Ha,SquareAsteriskIcon:Ha,SquareBottomDashedScissors:Aa,SquareBottomDashedScissorsIcon:Aa,SquareChartGantt:Te,SquareChartGanttIcon:Te,SquareCheck:Pa,SquareCheckBig:Va,SquareCheckBigIcon:Va,SquareCheckIcon:Pa,SquareChevronDown:qa,SquareChevronDownIcon:qa,SquareChevronLeft:Ba,SquareChevronLeftIcon:Ba,SquareChevronRight:Fa,SquareChevronRightIcon:Fa,SquareChevronUp:Oa,SquareChevronUpIcon:Oa,SquareCode:ja,SquareCodeIcon:ja,SquareDashed:Wa,SquareDashedBottom:Av,SquareDashedBottomCode:Hv,SquareDashedBottomCodeIcon:Hv,SquareDashedBottomIcon:Av,SquareDashedIcon:Wa,SquareDashedKanban:Na,SquareDashedKanbanIcon:Na,SquareDashedMousePointer:_a,SquareDashedMousePointerIcon:_a,SquareDashedTopSolid:Vv,SquareDashedTopSolidIcon:Vv,SquareDivide:Ua,SquareDivideIcon:Ua,SquareDot:Ga,SquareDotIcon:Ga,SquareEqual:$a,SquareEqualIcon:$a,SquareFunction:Ya,SquareFunctionIcon:Ya,SquareGanttChart:Te,SquareGanttChartIcon:Te,SquareIcon:Ov,SquareKanban:Za,SquareKanbanIcon:Za,SquareLibrary:Xa,SquareLibraryIcon:Xa,SquareM:Ka,SquareMIcon:Ka,SquareMenu:Ja,SquareMenuIcon:Ja,SquareMinus:Qa,SquareMinusIcon:Qa,SquareMousePointer:eo,SquareMousePointerIcon:eo,SquareParking:io,SquareParkingIcon:io,SquareParkingOff:to,SquareParkingOffIcon:to,SquarePen:ue,SquarePenIcon:ue,SquarePercent:ao,SquarePercentIcon:ao,SquarePi:oo,SquarePiIcon:oo,SquarePilcrow:no,SquarePilcrowIcon:no,SquarePlay:so,SquarePlayIcon:so,SquarePlus:ro,SquarePlusIcon:ro,SquarePower:lo,SquarePowerIcon:lo,SquareRadical:Pv,SquareRadicalIcon:Pv,SquareRoundCorner:qv,SquareRoundCornerIcon:qv,SquareScissors:ho,SquareScissorsIcon:ho,SquareSigma:co,SquareSigmaIcon:co,SquareSlash:po,SquareSlashIcon:po,SquareSplitHorizontal:uo,SquareSplitHorizontalIcon:uo,SquareSplitVertical:yo,SquareSplitVerticalIcon:yo,SquareSquare:Bv,SquareSquareIcon:Bv,SquareStack:Fv,SquareStackIcon:Fv,SquareTerminal:fo,SquareTerminalIcon:fo,SquareUser:go,SquareUserIcon:go,SquareUserRound:mo,SquareUserRoundIcon:mo,SquareX:ko,SquareXIcon:ko,SquaresExclude:Nv,SquaresExcludeIcon:Nv,SquaresIntersect:jv,SquaresIntersectIcon:jv,SquaresSubtract:_v,SquaresSubtractIcon:_v,SquaresUnite:Wv,SquaresUniteIcon:Wv,Squircle:Uv,SquircleIcon:Uv,Squirrel:Gv,SquirrelIcon:Gv,Stamp:$v,StampIcon:$v,Star:Xv,StarHalf:Yv,StarHalfIcon:Yv,StarIcon:Xv,StarOff:Zv,StarOffIcon:Zv,Stars:ba,StarsIcon:ba,StepBack:Kv,StepBackIcon:Kv,StepForward:Jv,StepForwardIcon:Jv,Stethoscope:Qv,StethoscopeIcon:Qv,Sticker:e6,StickerIcon:e6,StickyNote:t6,StickyNoteIcon:t6,StopCircle:oi,StopCircleIcon:oi,Store:i6,StoreIcon:i6,StretchHorizontal:a6,StretchHorizontalIcon:a6,StretchVertical:o6,StretchVerticalIcon:o6,Strikethrough:n6,StrikethroughIcon:n6,Subscript:s6,SubscriptIcon:s6,Subtitles:gt,SubtitlesIcon:gt,Sun:d6,SunDim:l6,SunDimIcon:l6,SunIcon:d6,SunMedium:r6,SunMediumIcon:r6,SunMoon:h6,SunMoonIcon:h6,SunSnow:c6,SunSnowIcon:c6,Sunrise:u6,SunriseIcon:u6,Sunset:p6,SunsetIcon:p6,Superscript:y6,SuperscriptIcon:y6,SwatchBook:f6,SwatchBookIcon:f6,SwissFranc:m6,SwissFrancIcon:m6,SwitchCamera:g6,SwitchCameraIcon:g6,Sword:k6,SwordIcon:k6,Swords:b6,SwordsIcon:b6,Syringe:w6,SyringeIcon:w6,Table:I6,Table2:v6,Table2Icon:v6,TableCellsMerge:M6,TableCellsMergeIcon:M6,TableCellsSplit:C6,TableCellsSplitIcon:C6,TableColumnsSplit:x6,TableColumnsSplitIcon:x6,TableConfig:Se,TableConfigIcon:Se,TableIcon:I6,TableOfContents:L6,TableOfContentsIcon:L6,TableProperties:E6,TablePropertiesIcon:E6,TableRowsSplit:S6,TableRowsSplitIcon:S6,Tablet:D6,TabletIcon:D6,TabletSmartphone:T6,TabletSmartphoneIcon:T6,Tablets:z6,TabletsIcon:z6,Tag:R6,TagIcon:R6,Tags:H6,TagsIcon:H6,Tally1:A6,Tally1Icon:A6,Tally2:V6,Tally2Icon:V6,Tally3:P6,Tally3Icon:P6,Tally4:q6,Tally4Icon:q6,Tally5:B6,Tally5Icon:B6,Tangent:F6,TangentIcon:F6,Target:O6,TargetIcon:O6,Telescope:j6,TelescopeIcon:j6,Tent:_6,TentIcon:_6,TentTree:N6,TentTreeIcon:N6,Terminal:W6,TerminalIcon:W6,TerminalSquare:fo,TerminalSquareIcon:fo,TestTube:U6,TestTube2:bo,TestTube2Icon:bo,TestTubeDiagonal:bo,TestTubeDiagonalIcon:bo,TestTubeIcon:U6,TestTubes:G6,TestTubesIcon:G6,Text:K6,TextCursor:Y6,TextCursorIcon:Y6,TextCursorInput:$6,TextCursorInputIcon:$6,TextIcon:K6,TextQuote:Z6,TextQuoteIcon:Z6,TextSearch:X6,TextSearchIcon:X6,TextSelect:wo,TextSelectIcon:wo,TextSelection:wo,TextSelectionIcon:wo,Theater:J6,TheaterIcon:J6,Thermometer:t8,ThermometerIcon:t8,ThermometerSnowflake:Q6,ThermometerSnowflakeIcon:Q6,ThermometerSun:e8,ThermometerSunIcon:e8,ThumbsDown:i8,ThumbsDownIcon:i8,ThumbsUp:a8,ThumbsUpIcon:a8,Ticket:c8,TicketCheck:o8,TicketCheckIcon:o8,TicketIcon:c8,TicketMinus:n8,TicketMinusIcon:n8,TicketPercent:s8,TicketPercentIcon:s8,TicketPlus:r8,TicketPlusIcon:r8,TicketSlash:l8,TicketSlashIcon:l8,TicketX:h8,TicketXIcon:h8,Tickets:p8,TicketsIcon:p8,TicketsPlane:d8,TicketsPlaneIcon:d8,Timer:f8,TimerIcon:f8,TimerOff:u8,TimerOffIcon:u8,TimerReset:y8,TimerResetIcon:y8,ToggleLeft:m8,ToggleLeftIcon:m8,ToggleRight:g8,ToggleRightIcon:g8,Toilet:k8,ToiletIcon:k8,Tornado:b8,TornadoIcon:b8,Torus:w8,TorusIcon:w8,Touchpad:M8,TouchpadIcon:M8,TouchpadOff:v8,TouchpadOffIcon:v8,TowerControl:C8,TowerControlIcon:C8,ToyBrick:x8,ToyBrickIcon:x8,Tractor:L8,TractorIcon:L8,TrafficCone:E8,TrafficConeIcon:E8,Train:vo,TrainFront:I8,TrainFrontIcon:I8,TrainFrontTunnel:S8,TrainFrontTunnelIcon:S8,TrainIcon:vo,TrainTrack:T8,TrainTrackIcon:T8,TramFront:vo,TramFrontIcon:vo,Transgender:D8,TransgenderIcon:D8,Trash:R8,Trash2:z8,Trash2Icon:z8,TrashIcon:R8,TreeDeciduous:H8,TreeDeciduousIcon:H8,TreePalm:Mo,TreePalmIcon:Mo,TreePine:A8,TreePineIcon:A8,Trees:V8,TreesIcon:V8,Trello:P8,TrelloIcon:P8,TrendingDown:q8,TrendingDownIcon:q8,TrendingUp:F8,TrendingUpDown:B8,TrendingUpDownIcon:B8,TrendingUpIcon:F8,Triangle:N8,TriangleAlert:Co,TriangleAlertIcon:Co,TriangleDashed:O8,TriangleDashedIcon:O8,TriangleIcon:N8,TriangleRight:j8,TriangleRightIcon:j8,Trophy:_8,TrophyIcon:_8,Truck:W8,TruckElectric:U8,TruckElectricIcon:U8,TruckIcon:W8,Turtle:G8,TurtleIcon:G8,Tv:Y8,Tv2:xo,Tv2Icon:xo,TvIcon:Y8,TvMinimal:xo,TvMinimalIcon:xo,TvMinimalPlay:$8,TvMinimalPlayIcon:$8,Twitch:Z8,TwitchIcon:Z8,Twitter:X8,TwitterIcon:X8,Type:J8,TypeIcon:J8,TypeOutline:K8,TypeOutlineIcon:K8,Umbrella:eM,UmbrellaIcon:eM,UmbrellaOff:Q8,UmbrellaOffIcon:Q8,Underline:tM,UnderlineIcon:tM,Undo:oM,Undo2:aM,Undo2Icon:aM,UndoDot:iM,UndoDotIcon:iM,UndoIcon:oM,UnfoldHorizontal:nM,UnfoldHorizontalIcon:nM,UnfoldVertical:sM,UnfoldVerticalIcon:sM,Ungroup:rM,UngroupIcon:rM,University:Lo,UniversityIcon:Lo,Unlink:hM,Unlink2:lM,Unlink2Icon:lM,UnlinkIcon:hM,Unlock:$i,UnlockIcon:$i,UnlockKeyhole:Gi,UnlockKeyholeIcon:Gi,Unplug:cM,UnplugIcon:cM,Upload:dM,UploadCloud:di,UploadCloudIcon:di,UploadIcon:dM,Usb:uM,UsbIcon:uM,User:CM,User2:zo,User2Icon:zo,UserCheck:pM,UserCheck2:Eo,UserCheck2Icon:Eo,UserCheckIcon:pM,UserCircle:si,UserCircle2:ni,UserCircle2Icon:ni,UserCircleIcon:si,UserCog:yM,UserCog2:So,UserCog2Icon:So,UserCogIcon:yM,UserIcon:CM,UserLock:fM,UserLockIcon:fM,UserMinus:mM,UserMinus2:Io,UserMinus2Icon:Io,UserMinusIcon:mM,UserPen:gM,UserPenIcon:gM,UserPlus:kM,UserPlus2:To,UserPlus2Icon:To,UserPlusIcon:kM,UserRound:zo,UserRoundCheck:Eo,UserRoundCheckIcon:Eo,UserRoundCog:So,UserRoundCogIcon:So,UserRoundIcon:zo,UserRoundMinus:Io,UserRoundMinusIcon:Io,UserRoundPen:bM,UserRoundPenIcon:bM,UserRoundPlus:To,UserRoundPlusIcon:To,UserRoundSearch:wM,UserRoundSearchIcon:wM,UserRoundX:Do,UserRoundXIcon:Do,UserSearch:vM,UserSearchIcon:vM,UserSquare:go,UserSquare2:mo,UserSquare2Icon:mo,UserSquareIcon:go,UserX:MM,UserX2:Do,UserX2Icon:Do,UserXIcon:MM,Users:xM,Users2:Ro,Users2Icon:Ro,UsersIcon:xM,UsersRound:Ro,UsersRoundIcon:Ro,Utensils:Ao,UtensilsCrossed:Ho,UtensilsCrossedIcon:Ho,UtensilsIcon:Ao,UtilityPole:LM,UtilityPoleIcon:LM,Variable:EM,VariableIcon:EM,Vault:SM,VaultIcon:SM,Vegan:IM,VeganIcon:IM,VenetianMask:TM,VenetianMaskIcon:TM,Venus:zM,VenusAndMars:DM,VenusAndMarsIcon:DM,VenusIcon:zM,Verified:ut,VerifiedIcon:ut,Vibrate:HM,VibrateIcon:HM,VibrateOff:RM,VibrateOffIcon:RM,Video:PM,VideoIcon:PM,VideoOff:AM,VideoOffIcon:AM,Videotape:VM,VideotapeIcon:VM,View:qM,ViewIcon:qM,Voicemail:BM,VoicemailIcon:BM,Volleyball:FM,VolleyballIcon:FM,Volume:_M,Volume1:OM,Volume1Icon:OM,Volume2:jM,Volume2Icon:jM,VolumeIcon:_M,VolumeOff:NM,VolumeOffIcon:NM,VolumeX:WM,VolumeXIcon:WM,Vote:UM,VoteIcon:UM,Wallet:$M,Wallet2:Vo,Wallet2Icon:Vo,WalletCards:GM,WalletCardsIcon:GM,WalletIcon:$M,WalletMinimal:Vo,WalletMinimalIcon:Vo,Wallpaper:YM,WallpaperIcon:YM,Wand:ZM,Wand2:Po,Wand2Icon:Po,WandIcon:ZM,WandSparkles:Po,WandSparklesIcon:Po,Warehouse:XM,WarehouseIcon:XM,WashingMachine:KM,WashingMachineIcon:KM,Watch:JM,WatchIcon:JM,Waves:e7,WavesIcon:e7,WavesLadder:QM,WavesLadderIcon:QM,Waypoints:t7,WaypointsIcon:t7,Webcam:i7,WebcamIcon:i7,Webhook:a7,WebhookIcon:a7,WebhookOff:o7,WebhookOffIcon:o7,Weight:n7,WeightIcon:n7,Wheat:s7,WheatIcon:s7,WheatOff:r7,WheatOffIcon:r7,WholeWord:h7,WholeWordIcon:h7,Wifi:p7,WifiHigh:l7,WifiHighIcon:l7,WifiIcon:p7,WifiLow:c7,WifiLowIcon:c7,WifiOff:d7,WifiOffIcon:d7,WifiPen:u7,WifiPenIcon:u7,WifiZero:y7,WifiZeroIcon:y7,Wind:m7,WindArrowDown:f7,WindArrowDownIcon:f7,WindIcon:m7,Wine:k7,WineIcon:k7,WineOff:g7,WineOffIcon:g7,Workflow:b7,WorkflowIcon:b7,Worm:w7,WormIcon:w7,WrapText:v7,WrapTextIcon:v7,Wrench:M7,WrenchIcon:M7,X:C7,XCircle:ri,XCircleIcon:ri,XIcon:C7,XOctagon:Ki,XOctagonIcon:Ki,XSquare:ko,XSquareIcon:ko,Youtube:x7,YoutubeIcon:x7,Zap:E7,ZapIcon:E7,ZapOff:L7,ZapOffIcon:L7,ZoomIn:S7,ZoomInIcon:S7,ZoomOut:I7,ZoomOutIcon:I7,createLucideIcon:s,icons:vT},Symbol.toStringTag,{value:"Module"})),cx=c.defineComponent({__name:"Icons",props:{name:{},size:{default:16},color:{default:"currentColor"},strokeWidth:{default:2},absoluteStrokeWidth:{type:Boolean,default:!1},classValue:{default:""}},setup(o){const e=o,t=c.computed(()=>MT[e.name]||null);return(i,a)=>t.value?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(t.value),{key:0,size:parseInt(i.size.toString()),color:i.color,"stroke-width":i.strokeWidth,"absolute-stroke-width":i.absoluteStrokeWidth,class:c.normalizeClass(i.classValue)},null,8,["size","color","stroke-width","absolute-stroke-width","class"])):c.createCommentVNode("",!0)}}),CT={class:"tabulator-body"},xT={class:"flex justify-end mb-4"},LT=["id"],ET={class:"flex"},ST={class:"w-1/2"},IT={key:0,class:"flex"},TT=["disabled","value","id"],DT=["for"],zT={class:"w-1/2"},RT={class:"mb-4"},HT=["value"],AT=c.defineComponent({__name:"Tabulator",props:{data:{default:()=>[]},columns:{default:()=>[]},placeholder:{default:""},paginationSize:{default:25},paginationSizeSelector:{default:()=>[25,50,100,200]},action:{type:Boolean,default:!1},actionButtons:{default:()=>[]},heightOffset:{default:250},actionMode:{default:"frontend"}},setup(o,{emit:e}){const t=S=>{const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let R="";for(let O=0;O<S;O++)R+=T.charAt(Math.floor(Math.random()*T.length));return R},i=o,a=c.ref("table_"+t(5)),n=e,r=c.ref(!1),l=c.ref(""),h=c.ref(i.paginationSize),d=c.ref([]),u=c.ref([]);let p=null;const y={title:[{name:"Settings"}],action:[{title:"Cancel",emit:"onClose",class:"btn-outline"},{title:"Apply",emit:"onSave"}]},f=c.computed(()=>i.columns.filter(S=>S.title.toLowerCase().includes(l.value.toLowerCase()))),g=()=>({title:"Action",field:"action",width:99,hozAlign:"center",headerSort:!1,formatter:S=>{var T=[];if(i.actionMode=="api"?T=S.getData().actions:i.actionMode=="frontend"&&(T=i.actionButtons),T){const R=T.map(O=>`
8024
+ */const MT=Object.freeze(Object.defineProperty({__proto__:null,AArrowDown:Bn,AArrowDownIcon:Bn,AArrowUp:Fn,AArrowUpIcon:Fn,ALargeSmall:On,ALargeSmallIcon:On,Accessibility:jn,AccessibilityIcon:jn,Activity:Nn,ActivityIcon:Nn,ActivitySquare:wa,ActivitySquareIcon:wa,AirVent:Wn,AirVentIcon:Wn,Airplay:_n,AirplayIcon:_n,AlarmCheck:it,AlarmCheckIcon:it,AlarmClock:$n,AlarmClockCheck:it,AlarmClockCheckIcon:it,AlarmClockIcon:$n,AlarmClockMinus:at,AlarmClockMinusIcon:at,AlarmClockOff:Un,AlarmClockOffIcon:Un,AlarmClockPlus:ot,AlarmClockPlusIcon:ot,AlarmMinus:at,AlarmMinusIcon:at,AlarmPlus:ot,AlarmPlusIcon:ot,AlarmSmoke:Gn,AlarmSmokeIcon:Gn,Album:Yn,AlbumIcon:Yn,AlertCircle:Rt,AlertCircleIcon:Rt,AlertOctagon:Xi,AlertOctagonIcon:Xi,AlertTriangle:Co,AlertTriangleIcon:Co,AlignCenter:Kn,AlignCenterHorizontal:Zn,AlignCenterHorizontalIcon:Zn,AlignCenterIcon:Kn,AlignCenterVertical:Xn,AlignCenterVerticalIcon:Xn,AlignEndHorizontal:Jn,AlignEndHorizontalIcon:Jn,AlignEndVertical:Qn,AlignEndVerticalIcon:Qn,AlignHorizontalDistributeCenter:es,AlignHorizontalDistributeCenterIcon:es,AlignHorizontalDistributeEnd:ts,AlignHorizontalDistributeEndIcon:ts,AlignHorizontalDistributeStart:is,AlignHorizontalDistributeStartIcon:is,AlignHorizontalJustifyCenter:as,AlignHorizontalJustifyCenterIcon:as,AlignHorizontalJustifyEnd:os,AlignHorizontalJustifyEndIcon:os,AlignHorizontalJustifyStart:ns,AlignHorizontalJustifyStartIcon:ns,AlignHorizontalSpaceAround:ss,AlignHorizontalSpaceAroundIcon:ss,AlignHorizontalSpaceBetween:rs,AlignHorizontalSpaceBetweenIcon:rs,AlignJustify:ls,AlignJustifyIcon:ls,AlignLeft:hs,AlignLeftIcon:hs,AlignRight:ds,AlignRightIcon:ds,AlignStartHorizontal:cs,AlignStartHorizontalIcon:cs,AlignStartVertical:us,AlignStartVerticalIcon:us,AlignVerticalDistributeCenter:ps,AlignVerticalDistributeCenterIcon:ps,AlignVerticalDistributeEnd:ys,AlignVerticalDistributeEndIcon:ys,AlignVerticalDistributeStart:fs,AlignVerticalDistributeStartIcon:fs,AlignVerticalJustifyCenter:ms,AlignVerticalJustifyCenterIcon:ms,AlignVerticalJustifyEnd:gs,AlignVerticalJustifyEndIcon:gs,AlignVerticalJustifyStart:ks,AlignVerticalJustifyStartIcon:ks,AlignVerticalSpaceAround:bs,AlignVerticalSpaceAroundIcon:bs,AlignVerticalSpaceBetween:ws,AlignVerticalSpaceBetweenIcon:ws,Ambulance:vs,AmbulanceIcon:vs,Ampersand:Ms,AmpersandIcon:Ms,Ampersands:Cs,AmpersandsIcon:Cs,Amphora:xs,AmphoraIcon:xs,Anchor:Es,AnchorIcon:Es,Angry:Ls,AngryIcon:Ls,Annoyed:Ss,AnnoyedIcon:Ss,Antenna:Is,AntennaIcon:Is,Anvil:Ts,AnvilIcon:Ts,Aperture:Ds,ApertureIcon:Ds,AppWindow:Rs,AppWindowIcon:Rs,AppWindowMac:zs,AppWindowMacIcon:zs,Apple:Hs,AppleIcon:Hs,Archive:Ps,ArchiveIcon:Ps,ArchiveRestore:As,ArchiveRestoreIcon:As,ArchiveX:Vs,ArchiveXIcon:Vs,AreaChart:kt,AreaChartIcon:kt,Armchair:Bs,ArmchairIcon:Bs,ArrowBigDown:Fs,ArrowBigDownDash:qs,ArrowBigDownDashIcon:qs,ArrowBigDownIcon:Fs,ArrowBigLeft:js,ArrowBigLeftDash:Os,ArrowBigLeftDashIcon:Os,ArrowBigLeftIcon:js,ArrowBigRight:_s,ArrowBigRightDash:Ns,ArrowBigRightDashIcon:Ns,ArrowBigRightIcon:_s,ArrowBigUp:Us,ArrowBigUpDash:Ws,ArrowBigUpDashIcon:Ws,ArrowBigUpIcon:Us,ArrowDown:tr,ArrowDown01:$s,ArrowDown01Icon:$s,ArrowDown10:Gs,ArrowDown10Icon:Gs,ArrowDownAZ:nt,ArrowDownAZIcon:nt,ArrowDownAz:nt,ArrowDownAzIcon:nt,ArrowDownCircle:zt,ArrowDownCircleIcon:zt,ArrowDownFromLine:Ys,ArrowDownFromLineIcon:Ys,ArrowDownIcon:tr,ArrowDownLeft:Zs,ArrowDownLeftFromCircle:At,ArrowDownLeftFromCircleIcon:At,ArrowDownLeftFromSquare:La,ArrowDownLeftFromSquareIcon:La,ArrowDownLeftIcon:Zs,ArrowDownLeftSquare:va,ArrowDownLeftSquareIcon:va,ArrowDownNarrowWide:Xs,ArrowDownNarrowWideIcon:Xs,ArrowDownRight:Ks,ArrowDownRightFromCircle:Vt,ArrowDownRightFromCircleIcon:Vt,ArrowDownRightFromSquare:Ea,ArrowDownRightFromSquareIcon:Ea,ArrowDownRightIcon:Ks,ArrowDownRightSquare:Ma,ArrowDownRightSquareIcon:Ma,ArrowDownSquare:Ca,ArrowDownSquareIcon:Ca,ArrowDownToDot:Js,ArrowDownToDotIcon:Js,ArrowDownToLine:er,ArrowDownToLineIcon:er,ArrowDownUp:Qs,ArrowDownUpIcon:Qs,ArrowDownWideNarrow:st,ArrowDownWideNarrowIcon:st,ArrowDownZA:rt,ArrowDownZAIcon:rt,ArrowDownZa:rt,ArrowDownZaIcon:rt,ArrowLeft:nr,ArrowLeftCircle:Ht,ArrowLeftCircleIcon:Ht,ArrowLeftFromLine:ir,ArrowLeftFromLineIcon:ir,ArrowLeftIcon:nr,ArrowLeftRight:ar,ArrowLeftRightIcon:ar,ArrowLeftSquare:xa,ArrowLeftSquareIcon:xa,ArrowLeftToLine:or,ArrowLeftToLineIcon:or,ArrowRight:hr,ArrowRightCircle:Bt,ArrowRightCircleIcon:Bt,ArrowRightFromLine:sr,ArrowRightFromLineIcon:sr,ArrowRightIcon:hr,ArrowRightLeft:rr,ArrowRightLeftIcon:rr,ArrowRightSquare:Ta,ArrowRightSquareIcon:Ta,ArrowRightToLine:lr,ArrowRightToLineIcon:lr,ArrowUp:br,ArrowUp01:cr,ArrowUp01Icon:cr,ArrowUp10:ur,ArrowUp10Icon:ur,ArrowUpAZ:lt,ArrowUpAZIcon:lt,ArrowUpAz:lt,ArrowUpAzIcon:lt,ArrowUpCircle:Ft,ArrowUpCircleIcon:Ft,ArrowUpDown:dr,ArrowUpDownIcon:dr,ArrowUpFromDot:pr,ArrowUpFromDotIcon:pr,ArrowUpFromLine:yr,ArrowUpFromLineIcon:yr,ArrowUpIcon:br,ArrowUpLeft:fr,ArrowUpLeftFromCircle:Pt,ArrowUpLeftFromCircleIcon:Pt,ArrowUpLeftFromSquare:Sa,ArrowUpLeftFromSquareIcon:Sa,ArrowUpLeftIcon:fr,ArrowUpLeftSquare:za,ArrowUpLeftSquareIcon:za,ArrowUpNarrowWide:ht,ArrowUpNarrowWideIcon:ht,ArrowUpRight:mr,ArrowUpRightFromCircle:qt,ArrowUpRightFromCircleIcon:qt,ArrowUpRightFromSquare:Ia,ArrowUpRightFromSquareIcon:Ia,ArrowUpRightIcon:mr,ArrowUpRightSquare:Da,ArrowUpRightSquareIcon:Da,ArrowUpSquare:Ra,ArrowUpSquareIcon:Ra,ArrowUpToLine:gr,ArrowUpToLineIcon:gr,ArrowUpWideNarrow:kr,ArrowUpWideNarrowIcon:kr,ArrowUpZA:ct,ArrowUpZAIcon:ct,ArrowUpZa:ct,ArrowUpZaIcon:ct,ArrowsUpFromLine:wr,ArrowsUpFromLineIcon:wr,Asterisk:vr,AsteriskIcon:vr,AsteriskSquare:Ha,AsteriskSquareIcon:Ha,AtSign:Mr,AtSignIcon:Mr,Atom:Cr,AtomIcon:Cr,AudioLines:xr,AudioLinesIcon:xr,AudioWaveform:Lr,AudioWaveformIcon:Lr,Award:Er,AwardIcon:Er,Axe:Sr,AxeIcon:Sr,Axis3D:dt,Axis3DIcon:dt,Axis3d:dt,Axis3dIcon:dt,Baby:Ir,BabyIcon:Ir,Backpack:Tr,BackpackIcon:Tr,Badge:Ur,BadgeAlert:Dr,BadgeAlertIcon:Dr,BadgeCent:zr,BadgeCentIcon:zr,BadgeCheck:ut,BadgeCheckIcon:ut,BadgeDollarSign:Rr,BadgeDollarSignIcon:Rr,BadgeEuro:Hr,BadgeEuroIcon:Hr,BadgeHelp:Ar,BadgeHelpIcon:Ar,BadgeIcon:Ur,BadgeIndianRupee:Vr,BadgeIndianRupeeIcon:Vr,BadgeInfo:Pr,BadgeInfoIcon:Pr,BadgeJapaneseYen:qr,BadgeJapaneseYenIcon:qr,BadgeMinus:Br,BadgeMinusIcon:Br,BadgePercent:Fr,BadgePercentIcon:Fr,BadgePlus:Or,BadgePlusIcon:Or,BadgePoundSterling:jr,BadgePoundSterlingIcon:jr,BadgeRussianRuble:Nr,BadgeRussianRubleIcon:Nr,BadgeSwissFranc:_r,BadgeSwissFrancIcon:_r,BadgeX:Wr,BadgeXIcon:Wr,BaggageClaim:$r,BaggageClaimIcon:$r,Ban:Gr,BanIcon:Gr,Banana:Yr,BananaIcon:Yr,Bandage:Zr,BandageIcon:Zr,Banknote:Qr,BanknoteArrowDown:Xr,BanknoteArrowDownIcon:Xr,BanknoteArrowUp:Kr,BanknoteArrowUpIcon:Kr,BanknoteIcon:Qr,BanknoteX:Jr,BanknoteXIcon:Jr,BarChart:Et,BarChart2:St,BarChart2Icon:St,BarChart3:xt,BarChart3Icon:xt,BarChart4:Ct,BarChart4Icon:Ct,BarChartBig:Mt,BarChartBigIcon:Mt,BarChartHorizontal:wt,BarChartHorizontalBig:bt,BarChartHorizontalBigIcon:bt,BarChartHorizontalIcon:wt,BarChartIcon:Et,Barcode:el,BarcodeIcon:el,Baseline:tl,BaselineIcon:tl,Bath:il,BathIcon:il,Battery:hl,BatteryCharging:al,BatteryChargingIcon:al,BatteryFull:ol,BatteryFullIcon:ol,BatteryIcon:hl,BatteryLow:nl,BatteryLowIcon:nl,BatteryMedium:sl,BatteryMediumIcon:sl,BatteryPlus:rl,BatteryPlusIcon:rl,BatteryWarning:ll,BatteryWarningIcon:ll,Beaker:cl,BeakerIcon:cl,Bean:ul,BeanIcon:ul,BeanOff:dl,BeanOffIcon:dl,Bed:fl,BedDouble:pl,BedDoubleIcon:pl,BedIcon:fl,BedSingle:yl,BedSingleIcon:yl,Beef:gl,BeefIcon:gl,Beer:kl,BeerIcon:kl,BeerOff:ml,BeerOffIcon:ml,Bell:Ll,BellDot:bl,BellDotIcon:bl,BellElectric:wl,BellElectricIcon:wl,BellIcon:Ll,BellMinus:vl,BellMinusIcon:vl,BellOff:Ml,BellOffIcon:Ml,BellPlus:Cl,BellPlusIcon:Cl,BellRing:xl,BellRingIcon:xl,BetweenHorizonalEnd:pt,BetweenHorizonalEndIcon:pt,BetweenHorizonalStart:yt,BetweenHorizonalStartIcon:yt,BetweenHorizontalEnd:pt,BetweenHorizontalEndIcon:pt,BetweenHorizontalStart:yt,BetweenHorizontalStartIcon:yt,BetweenVerticalEnd:El,BetweenVerticalEndIcon:El,BetweenVerticalStart:Sl,BetweenVerticalStartIcon:Sl,BicepsFlexed:Il,BicepsFlexedIcon:Il,Bike:Tl,BikeIcon:Tl,Binary:Dl,BinaryIcon:Dl,Binoculars:zl,BinocularsIcon:zl,Biohazard:Rl,BiohazardIcon:Rl,Bird:Hl,BirdIcon:Hl,Bitcoin:Al,BitcoinIcon:Al,Blend:Vl,BlendIcon:Vl,Blinds:Pl,BlindsIcon:Pl,Blocks:ql,BlocksIcon:ql,Bluetooth:jl,BluetoothConnected:Bl,BluetoothConnectedIcon:Bl,BluetoothIcon:jl,BluetoothOff:Fl,BluetoothOffIcon:Fl,BluetoothSearching:Ol,BluetoothSearchingIcon:Ol,Bold:Nl,BoldIcon:Nl,Bolt:_l,BoltIcon:_l,Bomb:Wl,BombIcon:Wl,Bone:Ul,BoneIcon:Ul,Book:y1,BookA:$l,BookAIcon:$l,BookAudio:Gl,BookAudioIcon:Gl,BookCheck:Yl,BookCheckIcon:Yl,BookCopy:Zl,BookCopyIcon:Zl,BookDashed:ft,BookDashedIcon:ft,BookDown:Kl,BookDownIcon:Kl,BookHeadphones:Xl,BookHeadphonesIcon:Xl,BookHeart:Jl,BookHeartIcon:Jl,BookIcon:y1,BookImage:Ql,BookImageIcon:Ql,BookKey:e1,BookKeyIcon:e1,BookLock:t1,BookLockIcon:t1,BookMarked:i1,BookMarkedIcon:i1,BookMinus:a1,BookMinusIcon:a1,BookOpen:s1,BookOpenCheck:n1,BookOpenCheckIcon:n1,BookOpenIcon:s1,BookOpenText:o1,BookOpenTextIcon:o1,BookPlus:r1,BookPlusIcon:r1,BookTemplate:ft,BookTemplateIcon:ft,BookText:l1,BookTextIcon:l1,BookType:h1,BookTypeIcon:h1,BookUp:d1,BookUp2:c1,BookUp2Icon:c1,BookUpIcon:d1,BookUser:u1,BookUserIcon:u1,BookX:p1,BookXIcon:p1,Bookmark:b1,BookmarkCheck:f1,BookmarkCheckIcon:f1,BookmarkIcon:b1,BookmarkMinus:m1,BookmarkMinusIcon:m1,BookmarkPlus:g1,BookmarkPlusIcon:g1,BookmarkX:k1,BookmarkXIcon:k1,BoomBox:w1,BoomBoxIcon:w1,Bot:C1,BotIcon:C1,BotMessageSquare:v1,BotMessageSquareIcon:v1,BotOff:M1,BotOffIcon:M1,BowArrow:x1,BowArrowIcon:x1,Box:L1,BoxIcon:L1,BoxSelect:Wa,BoxSelectIcon:Wa,Boxes:E1,BoxesIcon:E1,Braces:mt,BracesIcon:mt,Brackets:S1,BracketsIcon:S1,Brain:D1,BrainCircuit:I1,BrainCircuitIcon:I1,BrainCog:T1,BrainCogIcon:T1,BrainIcon:D1,BrickWall:R1,BrickWallFire:z1,BrickWallFireIcon:z1,BrickWallIcon:R1,Briefcase:P1,BriefcaseBusiness:H1,BriefcaseBusinessIcon:H1,BriefcaseConveyorBelt:A1,BriefcaseConveyorBeltIcon:A1,BriefcaseIcon:P1,BriefcaseMedical:V1,BriefcaseMedicalIcon:V1,BringToFront:q1,BringToFrontIcon:q1,Brush:F1,BrushCleaning:B1,BrushCleaningIcon:B1,BrushIcon:F1,Bubbles:O1,BubblesIcon:O1,Bug:_1,BugIcon:_1,BugOff:j1,BugOffIcon:j1,BugPlay:N1,BugPlayIcon:N1,Building:U1,Building2:W1,Building2Icon:W1,BuildingIcon:U1,Bus:G1,BusFront:$1,BusFrontIcon:$1,BusIcon:G1,Cable:Z1,CableCar:Y1,CableCarIcon:Y1,CableIcon:Z1,Cake:K1,CakeIcon:K1,CakeSlice:X1,CakeSliceIcon:X1,Calculator:J1,CalculatorIcon:J1,Calendar:bh,Calendar1:Q1,Calendar1Icon:Q1,CalendarArrowDown:eh,CalendarArrowDownIcon:eh,CalendarArrowUp:th,CalendarArrowUpIcon:th,CalendarCheck:ah,CalendarCheck2:ih,CalendarCheck2Icon:ih,CalendarCheckIcon:ah,CalendarClock:oh,CalendarClockIcon:oh,CalendarCog:nh,CalendarCogIcon:nh,CalendarDays:sh,CalendarDaysIcon:sh,CalendarFold:rh,CalendarFoldIcon:rh,CalendarHeart:lh,CalendarHeartIcon:lh,CalendarIcon:bh,CalendarMinus:ch,CalendarMinus2:hh,CalendarMinus2Icon:hh,CalendarMinusIcon:ch,CalendarOff:dh,CalendarOffIcon:dh,CalendarPlus:ph,CalendarPlus2:uh,CalendarPlus2Icon:uh,CalendarPlusIcon:ph,CalendarRange:yh,CalendarRangeIcon:yh,CalendarSearch:fh,CalendarSearchIcon:fh,CalendarSync:mh,CalendarSyncIcon:mh,CalendarX:kh,CalendarX2:gh,CalendarX2Icon:gh,CalendarXIcon:kh,Camera:vh,CameraIcon:vh,CameraOff:wh,CameraOffIcon:wh,CandlestickChart:vt,CandlestickChartIcon:vt,Candy:xh,CandyCane:Mh,CandyCaneIcon:Mh,CandyIcon:xh,CandyOff:Ch,CandyOffIcon:Ch,Cannabis:Lh,CannabisIcon:Lh,Captions:gt,CaptionsIcon:gt,CaptionsOff:Eh,CaptionsOffIcon:Eh,Car:Th,CarFront:Sh,CarFrontIcon:Sh,CarIcon:Th,CarTaxiFront:Ih,CarTaxiFrontIcon:Ih,Caravan:Dh,CaravanIcon:Dh,Carrot:zh,CarrotIcon:zh,CaseLower:Rh,CaseLowerIcon:Rh,CaseSensitive:Hh,CaseSensitiveIcon:Hh,CaseUpper:Ah,CaseUpperIcon:Ah,CassetteTape:Vh,CassetteTapeIcon:Vh,Cast:Ph,CastIcon:Ph,Castle:qh,CastleIcon:qh,Cat:Bh,CatIcon:Bh,Cctv:Fh,CctvIcon:Fh,ChartArea:kt,ChartAreaIcon:kt,ChartBar:wt,ChartBarBig:bt,ChartBarBigIcon:bt,ChartBarDecreasing:Oh,ChartBarDecreasingIcon:Oh,ChartBarIcon:wt,ChartBarIncreasing:jh,ChartBarIncreasingIcon:jh,ChartBarStacked:Nh,ChartBarStackedIcon:Nh,ChartCandlestick:vt,ChartCandlestickIcon:vt,ChartColumn:xt,ChartColumnBig:Mt,ChartColumnBigIcon:Mt,ChartColumnDecreasing:_h,ChartColumnDecreasingIcon:_h,ChartColumnIcon:xt,ChartColumnIncreasing:Ct,ChartColumnIncreasingIcon:Ct,ChartColumnStacked:Wh,ChartColumnStackedIcon:Wh,ChartGantt:Uh,ChartGanttIcon:Uh,ChartLine:Lt,ChartLineIcon:Lt,ChartNetwork:$h,ChartNetworkIcon:$h,ChartNoAxesColumn:St,ChartNoAxesColumnDecreasing:Gh,ChartNoAxesColumnDecreasingIcon:Gh,ChartNoAxesColumnIcon:St,ChartNoAxesColumnIncreasing:Et,ChartNoAxesColumnIncreasingIcon:Et,ChartNoAxesCombined:Yh,ChartNoAxesCombinedIcon:Yh,ChartNoAxesGantt:It,ChartNoAxesGanttIcon:It,ChartPie:Tt,ChartPieIcon:Tt,ChartScatter:Dt,ChartScatterIcon:Dt,ChartSpline:Zh,ChartSplineIcon:Zh,Check:Jh,CheckCheck:Xh,CheckCheckIcon:Xh,CheckCircle:Ot,CheckCircle2:jt,CheckCircle2Icon:jt,CheckCircleIcon:Ot,CheckIcon:Jh,CheckLine:Kh,CheckLineIcon:Kh,CheckSquare:Va,CheckSquare2:Pa,CheckSquare2Icon:Pa,CheckSquareIcon:Va,ChefHat:Qh,ChefHatIcon:Qh,Cherry:ec,CherryIcon:ec,ChevronDown:tc,ChevronDownCircle:Nt,ChevronDownCircleIcon:Nt,ChevronDownIcon:tc,ChevronDownSquare:qa,ChevronDownSquareIcon:qa,ChevronFirst:ic,ChevronFirstIcon:ic,ChevronLast:oc,ChevronLastIcon:oc,ChevronLeft:ac,ChevronLeftCircle:_t,ChevronLeftCircleIcon:_t,ChevronLeftIcon:ac,ChevronLeftSquare:Ba,ChevronLeftSquareIcon:Ba,ChevronRight:nc,ChevronRightCircle:Wt,ChevronRightCircleIcon:Wt,ChevronRightIcon:nc,ChevronRightSquare:Fa,ChevronRightSquareIcon:Fa,ChevronUp:sc,ChevronUpCircle:Ut,ChevronUpCircleIcon:Ut,ChevronUpIcon:sc,ChevronUpSquare:Oa,ChevronUpSquareIcon:Oa,ChevronsDown:lc,ChevronsDownIcon:lc,ChevronsDownUp:rc,ChevronsDownUpIcon:rc,ChevronsLeft:dc,ChevronsLeftIcon:dc,ChevronsLeftRight:cc,ChevronsLeftRightEllipsis:hc,ChevronsLeftRightEllipsisIcon:hc,ChevronsLeftRightIcon:cc,ChevronsRight:pc,ChevronsRightIcon:pc,ChevronsRightLeft:uc,ChevronsRightLeftIcon:uc,ChevronsUp:fc,ChevronsUpDown:yc,ChevronsUpDownIcon:yc,ChevronsUpIcon:fc,Chrome:mc,ChromeIcon:mc,Church:gc,ChurchIcon:gc,Cigarette:bc,CigaretteIcon:bc,CigaretteOff:kc,CigaretteOffIcon:kc,Circle:zc,CircleAlert:Rt,CircleAlertIcon:Rt,CircleArrowDown:zt,CircleArrowDownIcon:zt,CircleArrowLeft:Ht,CircleArrowLeftIcon:Ht,CircleArrowOutDownLeft:At,CircleArrowOutDownLeftIcon:At,CircleArrowOutDownRight:Vt,CircleArrowOutDownRightIcon:Vt,CircleArrowOutUpLeft:Pt,CircleArrowOutUpLeftIcon:Pt,CircleArrowOutUpRight:qt,CircleArrowOutUpRightIcon:qt,CircleArrowRight:Bt,CircleArrowRightIcon:Bt,CircleArrowUp:Ft,CircleArrowUpIcon:Ft,CircleCheck:jt,CircleCheckBig:Ot,CircleCheckBigIcon:Ot,CircleCheckIcon:jt,CircleChevronDown:Nt,CircleChevronDownIcon:Nt,CircleChevronLeft:_t,CircleChevronLeftIcon:_t,CircleChevronRight:Wt,CircleChevronRightIcon:Wt,CircleChevronUp:Ut,CircleChevronUpIcon:Ut,CircleDashed:wc,CircleDashedIcon:wc,CircleDivide:$t,CircleDivideIcon:$t,CircleDollarSign:vc,CircleDollarSignIcon:vc,CircleDot:Cc,CircleDotDashed:Mc,CircleDotDashedIcon:Mc,CircleDotIcon:Cc,CircleEllipsis:xc,CircleEllipsisIcon:xc,CircleEqual:Lc,CircleEqualIcon:Lc,CircleFadingArrowUp:Ec,CircleFadingArrowUpIcon:Ec,CircleFadingPlus:Sc,CircleFadingPlusIcon:Sc,CircleGauge:Gt,CircleGaugeIcon:Gt,CircleHelp:Yt,CircleHelpIcon:Yt,CircleIcon:zc,CircleMinus:Zt,CircleMinusIcon:Zt,CircleOff:Ic,CircleOffIcon:Ic,CircleParking:Kt,CircleParkingIcon:Kt,CircleParkingOff:Xt,CircleParkingOffIcon:Xt,CirclePause:Jt,CirclePauseIcon:Jt,CirclePercent:Qt,CirclePercentIcon:Qt,CirclePlay:ei,CirclePlayIcon:ei,CirclePlus:ti,CirclePlusIcon:ti,CirclePower:ii,CirclePowerIcon:ii,CircleSlash:Tc,CircleSlash2:ai,CircleSlash2Icon:ai,CircleSlashIcon:Tc,CircleSlashed:ai,CircleSlashedIcon:ai,CircleSmall:Dc,CircleSmallIcon:Dc,CircleStop:oi,CircleStopIcon:oi,CircleUser:si,CircleUserIcon:si,CircleUserRound:ni,CircleUserRoundIcon:ni,CircleX:ri,CircleXIcon:ri,CircuitBoard:Rc,CircuitBoardIcon:Rc,Citrus:Hc,CitrusIcon:Hc,Clapperboard:Ac,ClapperboardIcon:Ac,Clipboard:_c,ClipboardCheck:Vc,ClipboardCheckIcon:Vc,ClipboardCopy:Pc,ClipboardCopyIcon:Pc,ClipboardEdit:hi,ClipboardEditIcon:hi,ClipboardIcon:_c,ClipboardList:qc,ClipboardListIcon:qc,ClipboardMinus:Bc,ClipboardMinusIcon:Bc,ClipboardPaste:Fc,ClipboardPasteIcon:Fc,ClipboardPen:hi,ClipboardPenIcon:hi,ClipboardPenLine:li,ClipboardPenLineIcon:li,ClipboardPlus:Oc,ClipboardPlusIcon:Oc,ClipboardSignature:li,ClipboardSignatureIcon:li,ClipboardType:jc,ClipboardTypeIcon:jc,ClipboardX:Nc,ClipboardXIcon:Nc,Clock:rd,Clock1:Wc,Clock10:Uc,Clock10Icon:Uc,Clock11:$c,Clock11Icon:$c,Clock12:Gc,Clock12Icon:Gc,Clock1Icon:Wc,Clock2:Yc,Clock2Icon:Yc,Clock3:Zc,Clock3Icon:Zc,Clock4:Xc,Clock4Icon:Xc,Clock5:Kc,Clock5Icon:Kc,Clock6:Jc,Clock6Icon:Jc,Clock7:Qc,Clock7Icon:Qc,Clock8:ed,Clock8Icon:ed,Clock9:td,Clock9Icon:td,ClockAlert:id,ClockAlertIcon:id,ClockArrowDown:ad,ClockArrowDownIcon:ad,ClockArrowUp:od,ClockArrowUpIcon:od,ClockFading:nd,ClockFadingIcon:nd,ClockIcon:rd,ClockPlus:sd,ClockPlusIcon:sd,Cloud:Md,CloudAlert:ld,CloudAlertIcon:ld,CloudCog:hd,CloudCogIcon:hd,CloudDownload:ci,CloudDownloadIcon:ci,CloudDrizzle:cd,CloudDrizzleIcon:cd,CloudFog:ud,CloudFogIcon:ud,CloudHail:dd,CloudHailIcon:dd,CloudIcon:Md,CloudLightning:pd,CloudLightningIcon:pd,CloudMoon:fd,CloudMoonIcon:fd,CloudMoonRain:yd,CloudMoonRainIcon:yd,CloudOff:md,CloudOffIcon:md,CloudRain:kd,CloudRainIcon:kd,CloudRainWind:gd,CloudRainWindIcon:gd,CloudSnow:bd,CloudSnowIcon:bd,CloudSun:vd,CloudSunIcon:vd,CloudSunRain:wd,CloudSunRainIcon:wd,CloudUpload:di,CloudUploadIcon:di,Cloudy:Cd,CloudyIcon:Cd,Clover:xd,CloverIcon:xd,Club:Ld,ClubIcon:Ld,Code:Ed,Code2:ui,Code2Icon:ui,CodeIcon:Ed,CodeSquare:ja,CodeSquareIcon:ja,CodeXml:ui,CodeXmlIcon:ui,Codepen:Sd,CodepenIcon:Sd,Codesandbox:Id,CodesandboxIcon:Id,Coffee:Td,CoffeeIcon:Td,Cog:Dd,CogIcon:Dd,Coins:zd,CoinsIcon:zd,Columns:pi,Columns2:pi,Columns2Icon:pi,Columns3:yi,Columns3Cog:Se,Columns3CogIcon:Se,Columns3Icon:yi,Columns4:Rd,Columns4Icon:Rd,ColumnsIcon:pi,ColumnsSettings:Se,ColumnsSettingsIcon:Se,Combine:Ad,CombineIcon:Ad,Command:Hd,CommandIcon:Hd,Compass:Vd,CompassIcon:Vd,Component:Pd,ComponentIcon:Pd,Computer:qd,ComputerIcon:qd,ConciergeBell:Bd,ConciergeBellIcon:Bd,Cone:Od,ConeIcon:Od,Construction:Fd,ConstructionIcon:Fd,Contact:jd,Contact2:fi,Contact2Icon:fi,ContactIcon:jd,ContactRound:fi,ContactRoundIcon:fi,Container:Nd,ContainerIcon:Nd,Contrast:_d,ContrastIcon:_d,Cookie:Wd,CookieIcon:Wd,CookingPot:Ud,CookingPotIcon:Ud,Copy:Kd,CopyCheck:Gd,CopyCheckIcon:Gd,CopyIcon:Kd,CopyMinus:$d,CopyMinusIcon:$d,CopyPlus:Yd,CopyPlusIcon:Yd,CopySlash:Zd,CopySlashIcon:Zd,CopyX:Xd,CopyXIcon:Xd,Copyleft:Jd,CopyleftIcon:Jd,Copyright:Qd,CopyrightIcon:Qd,CornerDownLeft:e2,CornerDownLeftIcon:e2,CornerDownRight:t2,CornerDownRightIcon:t2,CornerLeftDown:i2,CornerLeftDownIcon:i2,CornerLeftUp:a2,CornerLeftUpIcon:a2,CornerRightDown:o2,CornerRightDownIcon:o2,CornerRightUp:n2,CornerRightUpIcon:n2,CornerUpLeft:s2,CornerUpLeftIcon:s2,CornerUpRight:r2,CornerUpRightIcon:r2,Cpu:l2,CpuIcon:l2,CreativeCommons:h2,CreativeCommonsIcon:h2,CreditCard:c2,CreditCardIcon:c2,Croissant:d2,CroissantIcon:d2,Crop:u2,CropIcon:u2,Cross:p2,CrossIcon:p2,Crosshair:y2,CrosshairIcon:y2,Crown:f2,CrownIcon:f2,Cuboid:m2,CuboidIcon:m2,CupSoda:g2,CupSodaIcon:g2,CurlyBraces:mt,CurlyBracesIcon:mt,Currency:k2,CurrencyIcon:k2,Cylinder:b2,CylinderIcon:b2,Dam:w2,DamIcon:w2,Database:C2,DatabaseBackup:v2,DatabaseBackupIcon:v2,DatabaseIcon:C2,DatabaseZap:M2,DatabaseZapIcon:M2,DecimalsArrowLeft:x2,DecimalsArrowLeftIcon:x2,DecimalsArrowRight:L2,DecimalsArrowRightIcon:L2,Delete:E2,DeleteIcon:E2,Dessert:I2,DessertIcon:I2,Diameter:S2,DiameterIcon:S2,Diamond:z2,DiamondIcon:z2,DiamondMinus:T2,DiamondMinusIcon:T2,DiamondPercent:mi,DiamondPercentIcon:mi,DiamondPlus:D2,DiamondPlusIcon:D2,Dice1:R2,Dice1Icon:R2,Dice2:H2,Dice2Icon:H2,Dice3:A2,Dice3Icon:A2,Dice4:V2,Dice4Icon:V2,Dice5:P2,Dice5Icon:P2,Dice6:q2,Dice6Icon:q2,Dices:B2,DicesIcon:B2,Diff:F2,DiffIcon:F2,Disc:_2,Disc2:O2,Disc2Icon:O2,Disc3:j2,Disc3Icon:j2,DiscAlbum:N2,DiscAlbumIcon:N2,DiscIcon:_2,Divide:W2,DivideCircle:$t,DivideCircleIcon:$t,DivideIcon:W2,DivideSquare:Ua,DivideSquareIcon:Ua,Dna:U2,DnaIcon:U2,DnaOff:$2,DnaOffIcon:$2,Dock:G2,DockIcon:G2,Dog:Y2,DogIcon:Y2,DollarSign:Z2,DollarSignIcon:Z2,Donut:X2,DonutIcon:X2,DoorClosed:J2,DoorClosedIcon:J2,DoorClosedLocked:K2,DoorClosedLockedIcon:K2,DoorOpen:Q2,DoorOpenIcon:Q2,Dot:e0,DotIcon:e0,DotSquare:$a,DotSquareIcon:$a,Download:t0,DownloadCloud:ci,DownloadCloudIcon:ci,DownloadIcon:t0,DraftingCompass:i0,DraftingCompassIcon:i0,Drama:a0,DramaIcon:a0,Dribbble:o0,DribbbleIcon:o0,Drill:n0,DrillIcon:n0,Droplet:r0,DropletIcon:r0,DropletOff:s0,DropletOffIcon:s0,Droplets:l0,DropletsIcon:l0,Drum:h0,DrumIcon:h0,Drumstick:c0,DrumstickIcon:c0,Dumbbell:d0,DumbbellIcon:d0,Ear:p0,EarIcon:p0,EarOff:u0,EarOffIcon:u0,Earth:gi,EarthIcon:gi,EarthLock:f0,EarthLockIcon:f0,Eclipse:y0,EclipseIcon:y0,Edit:ue,Edit2:ha,Edit2Icon:ha,Edit3:la,Edit3Icon:la,EditIcon:ue,Egg:k0,EggFried:m0,EggFriedIcon:m0,EggIcon:k0,EggOff:g0,EggOffIcon:g0,Ellipsis:bi,EllipsisIcon:bi,EllipsisVertical:ki,EllipsisVerticalIcon:ki,Equal:v0,EqualApproximately:b0,EqualApproximatelyIcon:b0,EqualIcon:v0,EqualNot:w0,EqualNotIcon:w0,EqualSquare:Ga,EqualSquareIcon:Ga,Eraser:M0,EraserIcon:M0,EthernetPort:C0,EthernetPortIcon:C0,Euro:x0,EuroIcon:x0,Expand:L0,ExpandIcon:L0,ExternalLink:E0,ExternalLinkIcon:E0,Eye:T0,EyeClosed:S0,EyeClosedIcon:S0,EyeIcon:T0,EyeOff:I0,EyeOffIcon:I0,Facebook:D0,FacebookIcon:D0,Factory:z0,FactoryIcon:z0,Fan:R0,FanIcon:R0,FastForward:H0,FastForwardIcon:H0,Feather:A0,FeatherIcon:A0,Fence:q0,FenceIcon:q0,FerrisWheel:V0,FerrisWheelIcon:V0,Figma:P0,FigmaIcon:P0,File:Au,FileArchive:B0,FileArchiveIcon:B0,FileAudio:O0,FileAudio2:F0,FileAudio2Icon:F0,FileAudioIcon:O0,FileAxis3D:wi,FileAxis3DIcon:wi,FileAxis3d:wi,FileAxis3dIcon:wi,FileBadge:N0,FileBadge2:j0,FileBadge2Icon:j0,FileBadgeIcon:N0,FileBarChart:vi,FileBarChart2:Mi,FileBarChart2Icon:Mi,FileBarChartIcon:vi,FileBox:_0,FileBoxIcon:_0,FileChartColumn:Mi,FileChartColumnIcon:Mi,FileChartColumnIncreasing:vi,FileChartColumnIncreasingIcon:vi,FileChartLine:Ci,FileChartLineIcon:Ci,FileChartPie:xi,FileChartPieIcon:xi,FileCheck:U0,FileCheck2:W0,FileCheck2Icon:W0,FileCheckIcon:U0,FileClock:$0,FileClockIcon:$0,FileCode:Y0,FileCode2:G0,FileCode2Icon:G0,FileCodeIcon:Y0,FileCog:Li,FileCog2:Li,FileCog2Icon:Li,FileCogIcon:Li,FileDiff:Z0,FileDiffIcon:Z0,FileDigit:X0,FileDigitIcon:X0,FileDown:K0,FileDownIcon:K0,FileEdit:Si,FileEditIcon:Si,FileHeart:J0,FileHeartIcon:J0,FileIcon:Au,FileImage:Q0,FileImageIcon:Q0,FileInput:eu,FileInputIcon:eu,FileJson:iu,FileJson2:tu,FileJson2Icon:tu,FileJsonIcon:iu,FileKey:ou,FileKey2:au,FileKey2Icon:au,FileKeyIcon:ou,FileLineChart:Ci,FileLineChartIcon:Ci,FileLock:su,FileLock2:nu,FileLock2Icon:nu,FileLockIcon:su,FileMinus:ru,FileMinus2:lu,FileMinus2Icon:lu,FileMinusIcon:ru,FileMusic:hu,FileMusicIcon:hu,FileOutput:cu,FileOutputIcon:cu,FilePen:Si,FilePenIcon:Si,FilePenLine:Ei,FilePenLineIcon:Ei,FilePieChart:xi,FilePieChartIcon:xi,FilePlus:pu,FilePlus2:du,FilePlus2Icon:du,FilePlusIcon:pu,FileQuestion:uu,FileQuestionIcon:uu,FileScan:yu,FileScanIcon:yu,FileSearch:mu,FileSearch2:fu,FileSearch2Icon:fu,FileSearchIcon:mu,FileSignature:Ei,FileSignatureIcon:Ei,FileSliders:gu,FileSlidersIcon:gu,FileSpreadsheet:ku,FileSpreadsheetIcon:ku,FileStack:bu,FileStackIcon:bu,FileSymlink:wu,FileSymlinkIcon:wu,FileTerminal:vu,FileTerminalIcon:vu,FileText:Mu,FileTextIcon:Mu,FileType:xu,FileType2:Cu,FileType2Icon:Cu,FileTypeIcon:xu,FileUp:Lu,FileUpIcon:Lu,FileUser:Eu,FileUserIcon:Eu,FileVideo:Iu,FileVideo2:Su,FileVideo2Icon:Su,FileVideoIcon:Iu,FileVolume:zu,FileVolume2:Tu,FileVolume2Icon:Tu,FileVolumeIcon:zu,FileWarning:Du,FileWarningIcon:Du,FileX:Hu,FileX2:Ru,FileX2Icon:Ru,FileXIcon:Hu,Files:Pu,FilesIcon:Pu,Film:Vu,FilmIcon:Vu,Filter:zi,FilterIcon:zi,FilterX:Di,FilterXIcon:Di,Fingerprint:qu,FingerprintIcon:qu,FireExtinguisher:Bu,FireExtinguisherIcon:Bu,Fish:ju,FishIcon:ju,FishOff:Fu,FishOffIcon:Fu,FishSymbol:Ou,FishSymbolIcon:Ou,Flag:Uu,FlagIcon:Uu,FlagOff:Nu,FlagOffIcon:Nu,FlagTriangleLeft:_u,FlagTriangleLeftIcon:_u,FlagTriangleRight:Wu,FlagTriangleRightIcon:Wu,Flame:Gu,FlameIcon:Gu,FlameKindling:$u,FlameKindlingIcon:$u,Flashlight:Xu,FlashlightIcon:Xu,FlashlightOff:Yu,FlashlightOffIcon:Yu,FlaskConical:Ku,FlaskConicalIcon:Ku,FlaskConicalOff:Zu,FlaskConicalOffIcon:Zu,FlaskRound:Ju,FlaskRoundIcon:Ju,FlipHorizontal:ep,FlipHorizontal2:Qu,FlipHorizontal2Icon:Qu,FlipHorizontalIcon:ep,FlipVertical:tp,FlipVertical2:ip,FlipVertical2Icon:ip,FlipVerticalIcon:tp,Flower:op,Flower2:ap,Flower2Icon:ap,FlowerIcon:op,Focus:np,FocusIcon:np,FoldHorizontal:sp,FoldHorizontalIcon:sp,FoldVertical:rp,FoldVerticalIcon:rp,Folder:Vp,FolderArchive:lp,FolderArchiveIcon:lp,FolderCheck:hp,FolderCheckIcon:hp,FolderClock:dp,FolderClockIcon:dp,FolderClosed:cp,FolderClosedIcon:cp,FolderCode:up,FolderCodeIcon:up,FolderCog:Ii,FolderCog2:Ii,FolderCog2Icon:Ii,FolderCogIcon:Ii,FolderDot:pp,FolderDotIcon:pp,FolderDown:yp,FolderDownIcon:yp,FolderEdit:Ti,FolderEditIcon:Ti,FolderGit:mp,FolderGit2:fp,FolderGit2Icon:fp,FolderGitIcon:mp,FolderHeart:gp,FolderHeartIcon:gp,FolderIcon:Vp,FolderInput:kp,FolderInputIcon:kp,FolderKanban:bp,FolderKanbanIcon:bp,FolderKey:wp,FolderKeyIcon:wp,FolderLock:vp,FolderLockIcon:vp,FolderMinus:Cp,FolderMinusIcon:Cp,FolderOpen:xp,FolderOpenDot:Mp,FolderOpenDotIcon:Mp,FolderOpenIcon:xp,FolderOutput:Ep,FolderOutputIcon:Ep,FolderPen:Ti,FolderPenIcon:Ti,FolderPlus:Lp,FolderPlusIcon:Lp,FolderRoot:Sp,FolderRootIcon:Sp,FolderSearch:Tp,FolderSearch2:Ip,FolderSearch2Icon:Ip,FolderSearchIcon:Tp,FolderSymlink:zp,FolderSymlinkIcon:zp,FolderSync:Dp,FolderSyncIcon:Dp,FolderTree:Rp,FolderTreeIcon:Rp,FolderUp:Hp,FolderUpIcon:Hp,FolderX:Ap,FolderXIcon:Ap,Folders:Pp,FoldersIcon:Pp,Footprints:qp,FootprintsIcon:qp,ForkKnife:Ao,ForkKnifeCrossed:Ho,ForkKnifeCrossedIcon:Ho,ForkKnifeIcon:Ao,Forklift:Bp,ForkliftIcon:Bp,FormInput:da,FormInputIcon:da,Forward:Op,ForwardIcon:Op,Frame:Fp,FrameIcon:Fp,Framer:jp,FramerIcon:jp,Frown:Np,FrownIcon:Np,Fuel:Wp,FuelIcon:Wp,Fullscreen:_p,FullscreenIcon:_p,FunctionSquare:Ya,FunctionSquareIcon:Ya,Funnel:zi,FunnelIcon:zi,FunnelPlus:Up,FunnelPlusIcon:Up,FunnelX:Di,FunnelXIcon:Di,GalleryHorizontal:Yp,GalleryHorizontalEnd:$p,GalleryHorizontalEndIcon:$p,GalleryHorizontalIcon:Yp,GalleryThumbnails:Gp,GalleryThumbnailsIcon:Gp,GalleryVertical:Xp,GalleryVerticalEnd:Zp,GalleryVerticalEndIcon:Zp,GalleryVerticalIcon:Xp,Gamepad:Kp,Gamepad2:Jp,Gamepad2Icon:Jp,GamepadIcon:Kp,GanttChart:It,GanttChartIcon:It,GanttChartSquare:Te,GanttChartSquareIcon:Te,Gauge:Qp,GaugeCircle:Gt,GaugeCircleIcon:Gt,GaugeIcon:Qp,Gavel:ey,GavelIcon:ey,Gem:ty,GemIcon:ty,Ghost:iy,GhostIcon:iy,Gift:ay,GiftIcon:ay,GitBranch:ny,GitBranchIcon:ny,GitBranchPlus:oy,GitBranchPlusIcon:oy,GitCommit:Ri,GitCommitHorizontal:Ri,GitCommitHorizontalIcon:Ri,GitCommitIcon:Ri,GitCommitVertical:sy,GitCommitVerticalIcon:sy,GitCompare:ly,GitCompareArrows:ry,GitCompareArrowsIcon:ry,GitCompareIcon:ly,GitFork:hy,GitForkIcon:hy,GitGraph:cy,GitGraphIcon:cy,GitMerge:dy,GitMergeIcon:dy,GitPullRequest:gy,GitPullRequestArrow:uy,GitPullRequestArrowIcon:uy,GitPullRequestClosed:py,GitPullRequestClosedIcon:py,GitPullRequestCreate:my,GitPullRequestCreateArrow:yy,GitPullRequestCreateArrowIcon:yy,GitPullRequestCreateIcon:my,GitPullRequestDraft:fy,GitPullRequestDraftIcon:fy,GitPullRequestIcon:gy,Github:ky,GithubIcon:ky,Gitlab:by,GitlabIcon:by,GlassWater:wy,GlassWaterIcon:wy,Glasses:vy,GlassesIcon:vy,Globe:xy,Globe2:gi,Globe2Icon:gi,GlobeIcon:xy,GlobeLock:My,GlobeLockIcon:My,Goal:Cy,GoalIcon:Cy,Gpu:Ly,GpuIcon:Ly,Grab:Ey,GrabIcon:Ey,GraduationCap:Sy,GraduationCapIcon:Sy,Grape:Iy,GrapeIcon:Iy,Grid:Ie,Grid2X2:Pi,Grid2X2Check:Hi,Grid2X2CheckIcon:Hi,Grid2X2Icon:Pi,Grid2X2Plus:Ai,Grid2X2PlusIcon:Ai,Grid2X2X:Vi,Grid2X2XIcon:Vi,Grid2x2:Pi,Grid2x2Check:Hi,Grid2x2CheckIcon:Hi,Grid2x2Icon:Pi,Grid2x2Plus:Ai,Grid2x2PlusIcon:Ai,Grid2x2X:Vi,Grid2x2XIcon:Vi,Grid3X3:Ie,Grid3X3Icon:Ie,Grid3x3:Ie,Grid3x3Icon:Ie,GridIcon:Ie,Grip:zy,GripHorizontal:Ty,GripHorizontalIcon:Ty,GripIcon:zy,GripVertical:Dy,GripVerticalIcon:Dy,Group:Ry,GroupIcon:Ry,Guitar:Hy,GuitarIcon:Hy,Ham:Ay,HamIcon:Ay,Hamburger:Vy,HamburgerIcon:Vy,Hammer:Py,HammerIcon:Py,Hand:jy,HandCoins:qy,HandCoinsIcon:qy,HandHeart:By,HandHeartIcon:By,HandHelping:qi,HandHelpingIcon:qi,HandIcon:jy,HandMetal:Fy,HandMetalIcon:Fy,HandPlatter:Oy,HandPlatterIcon:Oy,Handshake:_y,HandshakeIcon:_y,HardDrive:Uy,HardDriveDownload:Ny,HardDriveDownloadIcon:Ny,HardDriveIcon:Uy,HardDriveUpload:Wy,HardDriveUploadIcon:Wy,HardHat:$y,HardHatIcon:$y,Hash:Gy,HashIcon:Gy,Haze:Yy,HazeIcon:Yy,HdmiPort:Zy,HdmiPortIcon:Zy,Heading:af,Heading1:Xy,Heading1Icon:Xy,Heading2:Ky,Heading2Icon:Ky,Heading3:Jy,Heading3Icon:Jy,Heading4:tf,Heading4Icon:tf,Heading5:Qy,Heading5Icon:Qy,Heading6:ef,Heading6Icon:ef,HeadingIcon:af,HeadphoneOff:of,HeadphoneOffIcon:of,Headphones:nf,HeadphonesIcon:nf,Headset:sf,HeadsetIcon:sf,Heart:uf,HeartCrack:rf,HeartCrackIcon:rf,HeartHandshake:lf,HeartHandshakeIcon:lf,HeartIcon:uf,HeartMinus:hf,HeartMinusIcon:hf,HeartOff:cf,HeartOffIcon:cf,HeartPlus:df,HeartPlusIcon:df,HeartPulse:pf,HeartPulseIcon:pf,Heater:yf,HeaterIcon:yf,HelpCircle:Yt,HelpCircleIcon:Yt,HelpingHand:qi,HelpingHandIcon:qi,Hexagon:ff,HexagonIcon:ff,Highlighter:mf,HighlighterIcon:mf,History:gf,HistoryIcon:gf,Home:Bi,HomeIcon:Bi,Hop:bf,HopIcon:bf,HopOff:kf,HopOffIcon:kf,Hospital:wf,HospitalIcon:wf,Hotel:vf,HotelIcon:vf,Hourglass:Mf,HourglassIcon:Mf,House:Bi,HouseIcon:Bi,HousePlug:Cf,HousePlugIcon:Cf,HousePlus:xf,HousePlusIcon:xf,HouseWifi:Lf,HouseWifiIcon:Lf,IceCream:Oi,IceCream2:Fi,IceCream2Icon:Fi,IceCreamBowl:Fi,IceCreamBowlIcon:Fi,IceCreamCone:Oi,IceCreamConeIcon:Oi,IceCreamIcon:Oi,Icon:hx,IdCard:Ef,IdCardIcon:Ef,Image:Af,ImageDown:Sf,ImageDownIcon:Sf,ImageIcon:Af,ImageMinus:If,ImageMinusIcon:If,ImageOff:Df,ImageOffIcon:Df,ImagePlay:Tf,ImagePlayIcon:Tf,ImagePlus:zf,ImagePlusIcon:zf,ImageUp:Hf,ImageUpIcon:Hf,ImageUpscale:Rf,ImageUpscaleIcon:Rf,Images:Vf,ImagesIcon:Vf,Import:qf,ImportIcon:qf,Inbox:Pf,InboxIcon:Pf,Indent:Ni,IndentDecrease:ji,IndentDecreaseIcon:ji,IndentIcon:Ni,IndentIncrease:Ni,IndentIncreaseIcon:Ni,IndianRupee:Bf,IndianRupeeIcon:Bf,Infinity:Ff,InfinityIcon:Ff,Info:Of,InfoIcon:Of,Inspect:eo,InspectIcon:eo,InspectionPanel:_f,InspectionPanelIcon:_f,Instagram:jf,InstagramIcon:jf,Italic:Nf,ItalicIcon:Nf,IterationCcw:Wf,IterationCcwIcon:Wf,IterationCw:Uf,IterationCwIcon:Uf,JapaneseYen:$f,JapaneseYenIcon:$f,Joystick:Gf,JoystickIcon:Gf,Kanban:Yf,KanbanIcon:Yf,KanbanSquare:Za,KanbanSquareDashed:Na,KanbanSquareDashedIcon:Na,KanbanSquareIcon:Za,Key:Kf,KeyIcon:Kf,KeyRound:Xf,KeyRoundIcon:Xf,KeySquare:Zf,KeySquareIcon:Zf,Keyboard:em,KeyboardIcon:em,KeyboardMusic:Jf,KeyboardMusicIcon:Jf,KeyboardOff:Qf,KeyboardOffIcon:Qf,Lamp:sm,LampCeiling:tm,LampCeilingIcon:tm,LampDesk:am,LampDeskIcon:am,LampFloor:im,LampFloorIcon:im,LampIcon:sm,LampWallDown:om,LampWallDownIcon:om,LampWallUp:nm,LampWallUpIcon:nm,LandPlot:rm,LandPlotIcon:rm,Landmark:lm,LandmarkIcon:lm,Languages:hm,LanguagesIcon:hm,Laptop:dm,Laptop2:_i,Laptop2Icon:_i,LaptopIcon:dm,LaptopMinimal:_i,LaptopMinimalCheck:cm,LaptopMinimalCheckIcon:cm,LaptopMinimalIcon:_i,Lasso:um,LassoIcon:um,LassoSelect:ym,LassoSelectIcon:ym,Laugh:pm,LaughIcon:pm,Layers:Wi,Layers2:fm,Layers2Icon:fm,Layers3:Wi,Layers3Icon:Wi,LayersIcon:Wi,Layout:ra,LayoutDashboard:mm,LayoutDashboardIcon:mm,LayoutGrid:gm,LayoutGridIcon:gm,LayoutIcon:ra,LayoutList:km,LayoutListIcon:km,LayoutPanelLeft:bm,LayoutPanelLeftIcon:bm,LayoutPanelTop:wm,LayoutPanelTopIcon:wm,LayoutTemplate:vm,LayoutTemplateIcon:vm,Leaf:Mm,LeafIcon:Mm,LeafyGreen:xm,LeafyGreenIcon:xm,Lectern:Cm,LecternIcon:Cm,LetterText:Lm,LetterTextIcon:Lm,Library:Sm,LibraryBig:Em,LibraryBigIcon:Em,LibraryIcon:Sm,LibrarySquare:Xa,LibrarySquareIcon:Xa,LifeBuoy:Im,LifeBuoyIcon:Im,Ligature:Tm,LigatureIcon:Tm,Lightbulb:zm,LightbulbIcon:zm,LightbulbOff:Dm,LightbulbOffIcon:Dm,LineChart:Lt,LineChartIcon:Lt,Link:Am,Link2:Hm,Link2Icon:Hm,Link2Off:Rm,Link2OffIcon:Rm,LinkIcon:Am,Linkedin:Vm,LinkedinIcon:Vm,List:Jm,ListCheck:Pm,ListCheckIcon:Pm,ListChecks:qm,ListChecksIcon:qm,ListCollapse:Bm,ListCollapseIcon:Bm,ListEnd:Fm,ListEndIcon:Fm,ListFilter:Nm,ListFilterIcon:Nm,ListFilterPlus:Om,ListFilterPlusIcon:Om,ListIcon:Jm,ListMinus:jm,ListMinusIcon:jm,ListMusic:_m,ListMusicIcon:_m,ListOrdered:Wm,ListOrderedIcon:Wm,ListPlus:Um,ListPlusIcon:Um,ListRestart:$m,ListRestartIcon:$m,ListStart:Gm,ListStartIcon:Gm,ListTodo:Ym,ListTodoIcon:Ym,ListTree:Zm,ListTreeIcon:Zm,ListVideo:Xm,ListVideoIcon:Xm,ListX:Km,ListXIcon:Km,Loader:eg,Loader2:Ui,Loader2Icon:Ui,LoaderCircle:Ui,LoaderCircleIcon:Ui,LoaderIcon:eg,LoaderPinwheel:Qm,LoaderPinwheelIcon:Qm,Locate:ag,LocateFixed:tg,LocateFixedIcon:tg,LocateIcon:ag,LocateOff:ig,LocateOffIcon:ig,LocationEdit:og,LocationEditIcon:og,Lock:sg,LockIcon:sg,LockKeyhole:ng,LockKeyholeIcon:ng,LockKeyholeOpen:$i,LockKeyholeOpenIcon:$i,LockOpen:Gi,LockOpenIcon:Gi,LogIn:rg,LogInIcon:rg,LogOut:lg,LogOutIcon:lg,Logs:hg,LogsIcon:hg,Lollipop:cg,LollipopIcon:cg,LucideAArrowDown:Bn,LucideAArrowUp:Fn,LucideALargeSmall:On,LucideAccessibility:jn,LucideActivity:Nn,LucideActivitySquare:wa,LucideAirVent:Wn,LucideAirplay:_n,LucideAlarmCheck:it,LucideAlarmClock:$n,LucideAlarmClockCheck:it,LucideAlarmClockMinus:at,LucideAlarmClockOff:Un,LucideAlarmClockPlus:ot,LucideAlarmMinus:at,LucideAlarmPlus:ot,LucideAlarmSmoke:Gn,LucideAlbum:Yn,LucideAlertCircle:Rt,LucideAlertOctagon:Xi,LucideAlertTriangle:Co,LucideAlignCenter:Kn,LucideAlignCenterHorizontal:Zn,LucideAlignCenterVertical:Xn,LucideAlignEndHorizontal:Jn,LucideAlignEndVertical:Qn,LucideAlignHorizontalDistributeCenter:es,LucideAlignHorizontalDistributeEnd:ts,LucideAlignHorizontalDistributeStart:is,LucideAlignHorizontalJustifyCenter:as,LucideAlignHorizontalJustifyEnd:os,LucideAlignHorizontalJustifyStart:ns,LucideAlignHorizontalSpaceAround:ss,LucideAlignHorizontalSpaceBetween:rs,LucideAlignJustify:ls,LucideAlignLeft:hs,LucideAlignRight:ds,LucideAlignStartHorizontal:cs,LucideAlignStartVertical:us,LucideAlignVerticalDistributeCenter:ps,LucideAlignVerticalDistributeEnd:ys,LucideAlignVerticalDistributeStart:fs,LucideAlignVerticalJustifyCenter:ms,LucideAlignVerticalJustifyEnd:gs,LucideAlignVerticalJustifyStart:ks,LucideAlignVerticalSpaceAround:bs,LucideAlignVerticalSpaceBetween:ws,LucideAmbulance:vs,LucideAmpersand:Ms,LucideAmpersands:Cs,LucideAmphora:xs,LucideAnchor:Es,LucideAngry:Ls,LucideAnnoyed:Ss,LucideAntenna:Is,LucideAnvil:Ts,LucideAperture:Ds,LucideAppWindow:Rs,LucideAppWindowMac:zs,LucideApple:Hs,LucideArchive:Ps,LucideArchiveRestore:As,LucideArchiveX:Vs,LucideAreaChart:kt,LucideArmchair:Bs,LucideArrowBigDown:Fs,LucideArrowBigDownDash:qs,LucideArrowBigLeft:js,LucideArrowBigLeftDash:Os,LucideArrowBigRight:_s,LucideArrowBigRightDash:Ns,LucideArrowBigUp:Us,LucideArrowBigUpDash:Ws,LucideArrowDown:tr,LucideArrowDown01:$s,LucideArrowDown10:Gs,LucideArrowDownAZ:nt,LucideArrowDownAz:nt,LucideArrowDownCircle:zt,LucideArrowDownFromLine:Ys,LucideArrowDownLeft:Zs,LucideArrowDownLeftFromCircle:At,LucideArrowDownLeftFromSquare:La,LucideArrowDownLeftSquare:va,LucideArrowDownNarrowWide:Xs,LucideArrowDownRight:Ks,LucideArrowDownRightFromCircle:Vt,LucideArrowDownRightFromSquare:Ea,LucideArrowDownRightSquare:Ma,LucideArrowDownSquare:Ca,LucideArrowDownToDot:Js,LucideArrowDownToLine:er,LucideArrowDownUp:Qs,LucideArrowDownWideNarrow:st,LucideArrowDownZA:rt,LucideArrowDownZa:rt,LucideArrowLeft:nr,LucideArrowLeftCircle:Ht,LucideArrowLeftFromLine:ir,LucideArrowLeftRight:ar,LucideArrowLeftSquare:xa,LucideArrowLeftToLine:or,LucideArrowRight:hr,LucideArrowRightCircle:Bt,LucideArrowRightFromLine:sr,LucideArrowRightLeft:rr,LucideArrowRightSquare:Ta,LucideArrowRightToLine:lr,LucideArrowUp:br,LucideArrowUp01:cr,LucideArrowUp10:ur,LucideArrowUpAZ:lt,LucideArrowUpAz:lt,LucideArrowUpCircle:Ft,LucideArrowUpDown:dr,LucideArrowUpFromDot:pr,LucideArrowUpFromLine:yr,LucideArrowUpLeft:fr,LucideArrowUpLeftFromCircle:Pt,LucideArrowUpLeftFromSquare:Sa,LucideArrowUpLeftSquare:za,LucideArrowUpNarrowWide:ht,LucideArrowUpRight:mr,LucideArrowUpRightFromCircle:qt,LucideArrowUpRightFromSquare:Ia,LucideArrowUpRightSquare:Da,LucideArrowUpSquare:Ra,LucideArrowUpToLine:gr,LucideArrowUpWideNarrow:kr,LucideArrowUpZA:ct,LucideArrowUpZa:ct,LucideArrowsUpFromLine:wr,LucideAsterisk:vr,LucideAsteriskSquare:Ha,LucideAtSign:Mr,LucideAtom:Cr,LucideAudioLines:xr,LucideAudioWaveform:Lr,LucideAward:Er,LucideAxe:Sr,LucideAxis3D:dt,LucideAxis3d:dt,LucideBaby:Ir,LucideBackpack:Tr,LucideBadge:Ur,LucideBadgeAlert:Dr,LucideBadgeCent:zr,LucideBadgeCheck:ut,LucideBadgeDollarSign:Rr,LucideBadgeEuro:Hr,LucideBadgeHelp:Ar,LucideBadgeIndianRupee:Vr,LucideBadgeInfo:Pr,LucideBadgeJapaneseYen:qr,LucideBadgeMinus:Br,LucideBadgePercent:Fr,LucideBadgePlus:Or,LucideBadgePoundSterling:jr,LucideBadgeRussianRuble:Nr,LucideBadgeSwissFranc:_r,LucideBadgeX:Wr,LucideBaggageClaim:$r,LucideBan:Gr,LucideBanana:Yr,LucideBandage:Zr,LucideBanknote:Qr,LucideBanknoteArrowDown:Xr,LucideBanknoteArrowUp:Kr,LucideBanknoteX:Jr,LucideBarChart:Et,LucideBarChart2:St,LucideBarChart3:xt,LucideBarChart4:Ct,LucideBarChartBig:Mt,LucideBarChartHorizontal:wt,LucideBarChartHorizontalBig:bt,LucideBarcode:el,LucideBaseline:tl,LucideBath:il,LucideBattery:hl,LucideBatteryCharging:al,LucideBatteryFull:ol,LucideBatteryLow:nl,LucideBatteryMedium:sl,LucideBatteryPlus:rl,LucideBatteryWarning:ll,LucideBeaker:cl,LucideBean:ul,LucideBeanOff:dl,LucideBed:fl,LucideBedDouble:pl,LucideBedSingle:yl,LucideBeef:gl,LucideBeer:kl,LucideBeerOff:ml,LucideBell:Ll,LucideBellDot:bl,LucideBellElectric:wl,LucideBellMinus:vl,LucideBellOff:Ml,LucideBellPlus:Cl,LucideBellRing:xl,LucideBetweenHorizonalEnd:pt,LucideBetweenHorizonalStart:yt,LucideBetweenHorizontalEnd:pt,LucideBetweenHorizontalStart:yt,LucideBetweenVerticalEnd:El,LucideBetweenVerticalStart:Sl,LucideBicepsFlexed:Il,LucideBike:Tl,LucideBinary:Dl,LucideBinoculars:zl,LucideBiohazard:Rl,LucideBird:Hl,LucideBitcoin:Al,LucideBlend:Vl,LucideBlinds:Pl,LucideBlocks:ql,LucideBluetooth:jl,LucideBluetoothConnected:Bl,LucideBluetoothOff:Fl,LucideBluetoothSearching:Ol,LucideBold:Nl,LucideBolt:_l,LucideBomb:Wl,LucideBone:Ul,LucideBook:y1,LucideBookA:$l,LucideBookAudio:Gl,LucideBookCheck:Yl,LucideBookCopy:Zl,LucideBookDashed:ft,LucideBookDown:Kl,LucideBookHeadphones:Xl,LucideBookHeart:Jl,LucideBookImage:Ql,LucideBookKey:e1,LucideBookLock:t1,LucideBookMarked:i1,LucideBookMinus:a1,LucideBookOpen:s1,LucideBookOpenCheck:n1,LucideBookOpenText:o1,LucideBookPlus:r1,LucideBookTemplate:ft,LucideBookText:l1,LucideBookType:h1,LucideBookUp:d1,LucideBookUp2:c1,LucideBookUser:u1,LucideBookX:p1,LucideBookmark:b1,LucideBookmarkCheck:f1,LucideBookmarkMinus:m1,LucideBookmarkPlus:g1,LucideBookmarkX:k1,LucideBoomBox:w1,LucideBot:C1,LucideBotMessageSquare:v1,LucideBotOff:M1,LucideBowArrow:x1,LucideBox:L1,LucideBoxSelect:Wa,LucideBoxes:E1,LucideBraces:mt,LucideBrackets:S1,LucideBrain:D1,LucideBrainCircuit:I1,LucideBrainCog:T1,LucideBrickWall:R1,LucideBrickWallFire:z1,LucideBriefcase:P1,LucideBriefcaseBusiness:H1,LucideBriefcaseConveyorBelt:A1,LucideBriefcaseMedical:V1,LucideBringToFront:q1,LucideBrush:F1,LucideBrushCleaning:B1,LucideBubbles:O1,LucideBug:_1,LucideBugOff:j1,LucideBugPlay:N1,LucideBuilding:U1,LucideBuilding2:W1,LucideBus:G1,LucideBusFront:$1,LucideCable:Z1,LucideCableCar:Y1,LucideCake:K1,LucideCakeSlice:X1,LucideCalculator:J1,LucideCalendar:bh,LucideCalendar1:Q1,LucideCalendarArrowDown:eh,LucideCalendarArrowUp:th,LucideCalendarCheck:ah,LucideCalendarCheck2:ih,LucideCalendarClock:oh,LucideCalendarCog:nh,LucideCalendarDays:sh,LucideCalendarFold:rh,LucideCalendarHeart:lh,LucideCalendarMinus:ch,LucideCalendarMinus2:hh,LucideCalendarOff:dh,LucideCalendarPlus:ph,LucideCalendarPlus2:uh,LucideCalendarRange:yh,LucideCalendarSearch:fh,LucideCalendarSync:mh,LucideCalendarX:kh,LucideCalendarX2:gh,LucideCamera:vh,LucideCameraOff:wh,LucideCandlestickChart:vt,LucideCandy:xh,LucideCandyCane:Mh,LucideCandyOff:Ch,LucideCannabis:Lh,LucideCaptions:gt,LucideCaptionsOff:Eh,LucideCar:Th,LucideCarFront:Sh,LucideCarTaxiFront:Ih,LucideCaravan:Dh,LucideCarrot:zh,LucideCaseLower:Rh,LucideCaseSensitive:Hh,LucideCaseUpper:Ah,LucideCassetteTape:Vh,LucideCast:Ph,LucideCastle:qh,LucideCat:Bh,LucideCctv:Fh,LucideChartArea:kt,LucideChartBar:wt,LucideChartBarBig:bt,LucideChartBarDecreasing:Oh,LucideChartBarIncreasing:jh,LucideChartBarStacked:Nh,LucideChartCandlestick:vt,LucideChartColumn:xt,LucideChartColumnBig:Mt,LucideChartColumnDecreasing:_h,LucideChartColumnIncreasing:Ct,LucideChartColumnStacked:Wh,LucideChartGantt:Uh,LucideChartLine:Lt,LucideChartNetwork:$h,LucideChartNoAxesColumn:St,LucideChartNoAxesColumnDecreasing:Gh,LucideChartNoAxesColumnIncreasing:Et,LucideChartNoAxesCombined:Yh,LucideChartNoAxesGantt:It,LucideChartPie:Tt,LucideChartScatter:Dt,LucideChartSpline:Zh,LucideCheck:Jh,LucideCheckCheck:Xh,LucideCheckCircle:Ot,LucideCheckCircle2:jt,LucideCheckLine:Kh,LucideCheckSquare:Va,LucideCheckSquare2:Pa,LucideChefHat:Qh,LucideCherry:ec,LucideChevronDown:tc,LucideChevronDownCircle:Nt,LucideChevronDownSquare:qa,LucideChevronFirst:ic,LucideChevronLast:oc,LucideChevronLeft:ac,LucideChevronLeftCircle:_t,LucideChevronLeftSquare:Ba,LucideChevronRight:nc,LucideChevronRightCircle:Wt,LucideChevronRightSquare:Fa,LucideChevronUp:sc,LucideChevronUpCircle:Ut,LucideChevronUpSquare:Oa,LucideChevronsDown:lc,LucideChevronsDownUp:rc,LucideChevronsLeft:dc,LucideChevronsLeftRight:cc,LucideChevronsLeftRightEllipsis:hc,LucideChevronsRight:pc,LucideChevronsRightLeft:uc,LucideChevronsUp:fc,LucideChevronsUpDown:yc,LucideChrome:mc,LucideChurch:gc,LucideCigarette:bc,LucideCigaretteOff:kc,LucideCircle:zc,LucideCircleAlert:Rt,LucideCircleArrowDown:zt,LucideCircleArrowLeft:Ht,LucideCircleArrowOutDownLeft:At,LucideCircleArrowOutDownRight:Vt,LucideCircleArrowOutUpLeft:Pt,LucideCircleArrowOutUpRight:qt,LucideCircleArrowRight:Bt,LucideCircleArrowUp:Ft,LucideCircleCheck:jt,LucideCircleCheckBig:Ot,LucideCircleChevronDown:Nt,LucideCircleChevronLeft:_t,LucideCircleChevronRight:Wt,LucideCircleChevronUp:Ut,LucideCircleDashed:wc,LucideCircleDivide:$t,LucideCircleDollarSign:vc,LucideCircleDot:Cc,LucideCircleDotDashed:Mc,LucideCircleEllipsis:xc,LucideCircleEqual:Lc,LucideCircleFadingArrowUp:Ec,LucideCircleFadingPlus:Sc,LucideCircleGauge:Gt,LucideCircleHelp:Yt,LucideCircleMinus:Zt,LucideCircleOff:Ic,LucideCircleParking:Kt,LucideCircleParkingOff:Xt,LucideCirclePause:Jt,LucideCirclePercent:Qt,LucideCirclePlay:ei,LucideCirclePlus:ti,LucideCirclePower:ii,LucideCircleSlash:Tc,LucideCircleSlash2:ai,LucideCircleSlashed:ai,LucideCircleSmall:Dc,LucideCircleStop:oi,LucideCircleUser:si,LucideCircleUserRound:ni,LucideCircleX:ri,LucideCircuitBoard:Rc,LucideCitrus:Hc,LucideClapperboard:Ac,LucideClipboard:_c,LucideClipboardCheck:Vc,LucideClipboardCopy:Pc,LucideClipboardEdit:hi,LucideClipboardList:qc,LucideClipboardMinus:Bc,LucideClipboardPaste:Fc,LucideClipboardPen:hi,LucideClipboardPenLine:li,LucideClipboardPlus:Oc,LucideClipboardSignature:li,LucideClipboardType:jc,LucideClipboardX:Nc,LucideClock:rd,LucideClock1:Wc,LucideClock10:Uc,LucideClock11:$c,LucideClock12:Gc,LucideClock2:Yc,LucideClock3:Zc,LucideClock4:Xc,LucideClock5:Kc,LucideClock6:Jc,LucideClock7:Qc,LucideClock8:ed,LucideClock9:td,LucideClockAlert:id,LucideClockArrowDown:ad,LucideClockArrowUp:od,LucideClockFading:nd,LucideClockPlus:sd,LucideCloud:Md,LucideCloudAlert:ld,LucideCloudCog:hd,LucideCloudDownload:ci,LucideCloudDrizzle:cd,LucideCloudFog:ud,LucideCloudHail:dd,LucideCloudLightning:pd,LucideCloudMoon:fd,LucideCloudMoonRain:yd,LucideCloudOff:md,LucideCloudRain:kd,LucideCloudRainWind:gd,LucideCloudSnow:bd,LucideCloudSun:vd,LucideCloudSunRain:wd,LucideCloudUpload:di,LucideCloudy:Cd,LucideClover:xd,LucideClub:Ld,LucideCode:Ed,LucideCode2:ui,LucideCodeSquare:ja,LucideCodeXml:ui,LucideCodepen:Sd,LucideCodesandbox:Id,LucideCoffee:Td,LucideCog:Dd,LucideCoins:zd,LucideColumns:pi,LucideColumns2:pi,LucideColumns3:yi,LucideColumns3Cog:Se,LucideColumns4:Rd,LucideColumnsSettings:Se,LucideCombine:Ad,LucideCommand:Hd,LucideCompass:Vd,LucideComponent:Pd,LucideComputer:qd,LucideConciergeBell:Bd,LucideCone:Od,LucideConstruction:Fd,LucideContact:jd,LucideContact2:fi,LucideContactRound:fi,LucideContainer:Nd,LucideContrast:_d,LucideCookie:Wd,LucideCookingPot:Ud,LucideCopy:Kd,LucideCopyCheck:Gd,LucideCopyMinus:$d,LucideCopyPlus:Yd,LucideCopySlash:Zd,LucideCopyX:Xd,LucideCopyleft:Jd,LucideCopyright:Qd,LucideCornerDownLeft:e2,LucideCornerDownRight:t2,LucideCornerLeftDown:i2,LucideCornerLeftUp:a2,LucideCornerRightDown:o2,LucideCornerRightUp:n2,LucideCornerUpLeft:s2,LucideCornerUpRight:r2,LucideCpu:l2,LucideCreativeCommons:h2,LucideCreditCard:c2,LucideCroissant:d2,LucideCrop:u2,LucideCross:p2,LucideCrosshair:y2,LucideCrown:f2,LucideCuboid:m2,LucideCupSoda:g2,LucideCurlyBraces:mt,LucideCurrency:k2,LucideCylinder:b2,LucideDam:w2,LucideDatabase:C2,LucideDatabaseBackup:v2,LucideDatabaseZap:M2,LucideDecimalsArrowLeft:x2,LucideDecimalsArrowRight:L2,LucideDelete:E2,LucideDessert:I2,LucideDiameter:S2,LucideDiamond:z2,LucideDiamondMinus:T2,LucideDiamondPercent:mi,LucideDiamondPlus:D2,LucideDice1:R2,LucideDice2:H2,LucideDice3:A2,LucideDice4:V2,LucideDice5:P2,LucideDice6:q2,LucideDices:B2,LucideDiff:F2,LucideDisc:_2,LucideDisc2:O2,LucideDisc3:j2,LucideDiscAlbum:N2,LucideDivide:W2,LucideDivideCircle:$t,LucideDivideSquare:Ua,LucideDna:U2,LucideDnaOff:$2,LucideDock:G2,LucideDog:Y2,LucideDollarSign:Z2,LucideDonut:X2,LucideDoorClosed:J2,LucideDoorClosedLocked:K2,LucideDoorOpen:Q2,LucideDot:e0,LucideDotSquare:$a,LucideDownload:t0,LucideDownloadCloud:ci,LucideDraftingCompass:i0,LucideDrama:a0,LucideDribbble:o0,LucideDrill:n0,LucideDroplet:r0,LucideDropletOff:s0,LucideDroplets:l0,LucideDrum:h0,LucideDrumstick:c0,LucideDumbbell:d0,LucideEar:p0,LucideEarOff:u0,LucideEarth:gi,LucideEarthLock:f0,LucideEclipse:y0,LucideEdit:ue,LucideEdit2:ha,LucideEdit3:la,LucideEgg:k0,LucideEggFried:m0,LucideEggOff:g0,LucideEllipsis:bi,LucideEllipsisVertical:ki,LucideEqual:v0,LucideEqualApproximately:b0,LucideEqualNot:w0,LucideEqualSquare:Ga,LucideEraser:M0,LucideEthernetPort:C0,LucideEuro:x0,LucideExpand:L0,LucideExternalLink:E0,LucideEye:T0,LucideEyeClosed:S0,LucideEyeOff:I0,LucideFacebook:D0,LucideFactory:z0,LucideFan:R0,LucideFastForward:H0,LucideFeather:A0,LucideFence:q0,LucideFerrisWheel:V0,LucideFigma:P0,LucideFile:Au,LucideFileArchive:B0,LucideFileAudio:O0,LucideFileAudio2:F0,LucideFileAxis3D:wi,LucideFileAxis3d:wi,LucideFileBadge:N0,LucideFileBadge2:j0,LucideFileBarChart:vi,LucideFileBarChart2:Mi,LucideFileBox:_0,LucideFileChartColumn:Mi,LucideFileChartColumnIncreasing:vi,LucideFileChartLine:Ci,LucideFileChartPie:xi,LucideFileCheck:U0,LucideFileCheck2:W0,LucideFileClock:$0,LucideFileCode:Y0,LucideFileCode2:G0,LucideFileCog:Li,LucideFileCog2:Li,LucideFileDiff:Z0,LucideFileDigit:X0,LucideFileDown:K0,LucideFileEdit:Si,LucideFileHeart:J0,LucideFileImage:Q0,LucideFileInput:eu,LucideFileJson:iu,LucideFileJson2:tu,LucideFileKey:ou,LucideFileKey2:au,LucideFileLineChart:Ci,LucideFileLock:su,LucideFileLock2:nu,LucideFileMinus:ru,LucideFileMinus2:lu,LucideFileMusic:hu,LucideFileOutput:cu,LucideFilePen:Si,LucideFilePenLine:Ei,LucideFilePieChart:xi,LucideFilePlus:pu,LucideFilePlus2:du,LucideFileQuestion:uu,LucideFileScan:yu,LucideFileSearch:mu,LucideFileSearch2:fu,LucideFileSignature:Ei,LucideFileSliders:gu,LucideFileSpreadsheet:ku,LucideFileStack:bu,LucideFileSymlink:wu,LucideFileTerminal:vu,LucideFileText:Mu,LucideFileType:xu,LucideFileType2:Cu,LucideFileUp:Lu,LucideFileUser:Eu,LucideFileVideo:Iu,LucideFileVideo2:Su,LucideFileVolume:zu,LucideFileVolume2:Tu,LucideFileWarning:Du,LucideFileX:Hu,LucideFileX2:Ru,LucideFiles:Pu,LucideFilm:Vu,LucideFilter:zi,LucideFilterX:Di,LucideFingerprint:qu,LucideFireExtinguisher:Bu,LucideFish:ju,LucideFishOff:Fu,LucideFishSymbol:Ou,LucideFlag:Uu,LucideFlagOff:Nu,LucideFlagTriangleLeft:_u,LucideFlagTriangleRight:Wu,LucideFlame:Gu,LucideFlameKindling:$u,LucideFlashlight:Xu,LucideFlashlightOff:Yu,LucideFlaskConical:Ku,LucideFlaskConicalOff:Zu,LucideFlaskRound:Ju,LucideFlipHorizontal:ep,LucideFlipHorizontal2:Qu,LucideFlipVertical:tp,LucideFlipVertical2:ip,LucideFlower:op,LucideFlower2:ap,LucideFocus:np,LucideFoldHorizontal:sp,LucideFoldVertical:rp,LucideFolder:Vp,LucideFolderArchive:lp,LucideFolderCheck:hp,LucideFolderClock:dp,LucideFolderClosed:cp,LucideFolderCode:up,LucideFolderCog:Ii,LucideFolderCog2:Ii,LucideFolderDot:pp,LucideFolderDown:yp,LucideFolderEdit:Ti,LucideFolderGit:mp,LucideFolderGit2:fp,LucideFolderHeart:gp,LucideFolderInput:kp,LucideFolderKanban:bp,LucideFolderKey:wp,LucideFolderLock:vp,LucideFolderMinus:Cp,LucideFolderOpen:xp,LucideFolderOpenDot:Mp,LucideFolderOutput:Ep,LucideFolderPen:Ti,LucideFolderPlus:Lp,LucideFolderRoot:Sp,LucideFolderSearch:Tp,LucideFolderSearch2:Ip,LucideFolderSymlink:zp,LucideFolderSync:Dp,LucideFolderTree:Rp,LucideFolderUp:Hp,LucideFolderX:Ap,LucideFolders:Pp,LucideFootprints:qp,LucideForkKnife:Ao,LucideForkKnifeCrossed:Ho,LucideForklift:Bp,LucideFormInput:da,LucideForward:Op,LucideFrame:Fp,LucideFramer:jp,LucideFrown:Np,LucideFuel:Wp,LucideFullscreen:_p,LucideFunctionSquare:Ya,LucideFunnel:zi,LucideFunnelPlus:Up,LucideFunnelX:Di,LucideGalleryHorizontal:Yp,LucideGalleryHorizontalEnd:$p,LucideGalleryThumbnails:Gp,LucideGalleryVertical:Xp,LucideGalleryVerticalEnd:Zp,LucideGamepad:Kp,LucideGamepad2:Jp,LucideGanttChart:It,LucideGanttChartSquare:Te,LucideGauge:Qp,LucideGaugeCircle:Gt,LucideGavel:ey,LucideGem:ty,LucideGhost:iy,LucideGift:ay,LucideGitBranch:ny,LucideGitBranchPlus:oy,LucideGitCommit:Ri,LucideGitCommitHorizontal:Ri,LucideGitCommitVertical:sy,LucideGitCompare:ly,LucideGitCompareArrows:ry,LucideGitFork:hy,LucideGitGraph:cy,LucideGitMerge:dy,LucideGitPullRequest:gy,LucideGitPullRequestArrow:uy,LucideGitPullRequestClosed:py,LucideGitPullRequestCreate:my,LucideGitPullRequestCreateArrow:yy,LucideGitPullRequestDraft:fy,LucideGithub:ky,LucideGitlab:by,LucideGlassWater:wy,LucideGlasses:vy,LucideGlobe:xy,LucideGlobe2:gi,LucideGlobeLock:My,LucideGoal:Cy,LucideGpu:Ly,LucideGrab:Ey,LucideGraduationCap:Sy,LucideGrape:Iy,LucideGrid:Ie,LucideGrid2X2:Pi,LucideGrid2X2Check:Hi,LucideGrid2X2Plus:Ai,LucideGrid2X2X:Vi,LucideGrid2x2:Pi,LucideGrid2x2Check:Hi,LucideGrid2x2Plus:Ai,LucideGrid2x2X:Vi,LucideGrid3X3:Ie,LucideGrid3x3:Ie,LucideGrip:zy,LucideGripHorizontal:Ty,LucideGripVertical:Dy,LucideGroup:Ry,LucideGuitar:Hy,LucideHam:Ay,LucideHamburger:Vy,LucideHammer:Py,LucideHand:jy,LucideHandCoins:qy,LucideHandHeart:By,LucideHandHelping:qi,LucideHandMetal:Fy,LucideHandPlatter:Oy,LucideHandshake:_y,LucideHardDrive:Uy,LucideHardDriveDownload:Ny,LucideHardDriveUpload:Wy,LucideHardHat:$y,LucideHash:Gy,LucideHaze:Yy,LucideHdmiPort:Zy,LucideHeading:af,LucideHeading1:Xy,LucideHeading2:Ky,LucideHeading3:Jy,LucideHeading4:tf,LucideHeading5:Qy,LucideHeading6:ef,LucideHeadphoneOff:of,LucideHeadphones:nf,LucideHeadset:sf,LucideHeart:uf,LucideHeartCrack:rf,LucideHeartHandshake:lf,LucideHeartMinus:hf,LucideHeartOff:cf,LucideHeartPlus:df,LucideHeartPulse:pf,LucideHeater:yf,LucideHelpCircle:Yt,LucideHelpingHand:qi,LucideHexagon:ff,LucideHighlighter:mf,LucideHistory:gf,LucideHome:Bi,LucideHop:bf,LucideHopOff:kf,LucideHospital:wf,LucideHotel:vf,LucideHourglass:Mf,LucideHouse:Bi,LucideHousePlug:Cf,LucideHousePlus:xf,LucideHouseWifi:Lf,LucideIceCream:Oi,LucideIceCream2:Fi,LucideIceCreamBowl:Fi,LucideIceCreamCone:Oi,LucideIdCard:Ef,LucideImage:Af,LucideImageDown:Sf,LucideImageMinus:If,LucideImageOff:Df,LucideImagePlay:Tf,LucideImagePlus:zf,LucideImageUp:Hf,LucideImageUpscale:Rf,LucideImages:Vf,LucideImport:qf,LucideInbox:Pf,LucideIndent:Ni,LucideIndentDecrease:ji,LucideIndentIncrease:Ni,LucideIndianRupee:Bf,LucideInfinity:Ff,LucideInfo:Of,LucideInspect:eo,LucideInspectionPanel:_f,LucideInstagram:jf,LucideItalic:Nf,LucideIterationCcw:Wf,LucideIterationCw:Uf,LucideJapaneseYen:$f,LucideJoystick:Gf,LucideKanban:Yf,LucideKanbanSquare:Za,LucideKanbanSquareDashed:Na,LucideKey:Kf,LucideKeyRound:Xf,LucideKeySquare:Zf,LucideKeyboard:em,LucideKeyboardMusic:Jf,LucideKeyboardOff:Qf,LucideLamp:sm,LucideLampCeiling:tm,LucideLampDesk:am,LucideLampFloor:im,LucideLampWallDown:om,LucideLampWallUp:nm,LucideLandPlot:rm,LucideLandmark:lm,LucideLanguages:hm,LucideLaptop:dm,LucideLaptop2:_i,LucideLaptopMinimal:_i,LucideLaptopMinimalCheck:cm,LucideLasso:um,LucideLassoSelect:ym,LucideLaugh:pm,LucideLayers:Wi,LucideLayers2:fm,LucideLayers3:Wi,LucideLayout:ra,LucideLayoutDashboard:mm,LucideLayoutGrid:gm,LucideLayoutList:km,LucideLayoutPanelLeft:bm,LucideLayoutPanelTop:wm,LucideLayoutTemplate:vm,LucideLeaf:Mm,LucideLeafyGreen:xm,LucideLectern:Cm,LucideLetterText:Lm,LucideLibrary:Sm,LucideLibraryBig:Em,LucideLibrarySquare:Xa,LucideLifeBuoy:Im,LucideLigature:Tm,LucideLightbulb:zm,LucideLightbulbOff:Dm,LucideLineChart:Lt,LucideLink:Am,LucideLink2:Hm,LucideLink2Off:Rm,LucideLinkedin:Vm,LucideList:Jm,LucideListCheck:Pm,LucideListChecks:qm,LucideListCollapse:Bm,LucideListEnd:Fm,LucideListFilter:Nm,LucideListFilterPlus:Om,LucideListMinus:jm,LucideListMusic:_m,LucideListOrdered:Wm,LucideListPlus:Um,LucideListRestart:$m,LucideListStart:Gm,LucideListTodo:Ym,LucideListTree:Zm,LucideListVideo:Xm,LucideListX:Km,LucideLoader:eg,LucideLoader2:Ui,LucideLoaderCircle:Ui,LucideLoaderPinwheel:Qm,LucideLocate:ag,LucideLocateFixed:tg,LucideLocateOff:ig,LucideLocationEdit:og,LucideLock:sg,LucideLockKeyhole:ng,LucideLockKeyholeOpen:$i,LucideLockOpen:Gi,LucideLogIn:rg,LucideLogOut:lg,LucideLogs:hg,LucideLollipop:cg,LucideLuggage:dg,LucideMSquare:Ka,LucideMagnet:ug,LucideMail:vg,LucideMailCheck:pg,LucideMailMinus:yg,LucideMailOpen:fg,LucideMailPlus:mg,LucideMailQuestion:gg,LucideMailSearch:kg,LucideMailWarning:bg,LucideMailX:wg,LucideMailbox:Mg,LucideMails:Cg,LucideMap:qg,LucideMapPin:Ag,LucideMapPinCheck:Lg,LucideMapPinCheckInside:xg,LucideMapPinHouse:Eg,LucideMapPinMinus:Ig,LucideMapPinMinusInside:Sg,LucideMapPinOff:Tg,LucideMapPinPlus:zg,LucideMapPinPlusInside:Dg,LucideMapPinX:Rg,LucideMapPinXInside:Hg,LucideMapPinned:Vg,LucideMapPlus:Pg,LucideMars:Fg,LucideMarsStroke:Bg,LucideMartini:Og,LucideMaximize:jg,LucideMaximize2:Ng,LucideMedal:_g,LucideMegaphone:Ug,LucideMegaphoneOff:Wg,LucideMeh:$g,LucideMemoryStick:Yg,LucideMenu:Gg,LucideMenuSquare:Ja,LucideMerge:Zg,LucideMessageCircle:sk,LucideMessageCircleCode:Xg,LucideMessageCircleDashed:Kg,LucideMessageCircleHeart:Jg,LucideMessageCircleMore:Qg,LucideMessageCircleOff:ek,LucideMessageCirclePlus:tk,LucideMessageCircleQuestion:ik,LucideMessageCircleReply:ak,LucideMessageCircleWarning:ok,LucideMessageCircleX:nk,LucideMessageSquare:Mk,LucideMessageSquareCode:rk,LucideMessageSquareDashed:lk,LucideMessageSquareDiff:hk,LucideMessageSquareDot:ck,LucideMessageSquareHeart:dk,LucideMessageSquareLock:uk,LucideMessageSquareMore:pk,LucideMessageSquareOff:yk,LucideMessageSquarePlus:fk,LucideMessageSquareQuote:mk,LucideMessageSquareReply:gk,LucideMessageSquareShare:kk,LucideMessageSquareText:bk,LucideMessageSquareWarning:wk,LucideMessageSquareX:vk,LucideMessagesSquare:Ck,LucideMic:Lk,LucideMic2:Yi,LucideMicOff:xk,LucideMicVocal:Yi,LucideMicrochip:Ek,LucideMicroscope:Sk,LucideMicrowave:Ik,LucideMilestone:Tk,LucideMilk:zk,LucideMilkOff:Dk,LucideMinimize:Hk,LucideMinimize2:Rk,LucideMinus:Ak,LucideMinusCircle:Zt,LucideMinusSquare:Qa,LucideMonitor:Gk,LucideMonitorCheck:Vk,LucideMonitorCog:qk,LucideMonitorDot:Pk,LucideMonitorDown:Bk,LucideMonitorOff:Fk,LucideMonitorPause:Ok,LucideMonitorPlay:jk,LucideMonitorSmartphone:Nk,LucideMonitorSpeaker:Wk,LucideMonitorStop:_k,LucideMonitorUp:Uk,LucideMonitorX:$k,LucideMoon:Zk,LucideMoonStar:Yk,LucideMoreHorizontal:bi,LucideMoreVertical:ki,LucideMountain:Kk,LucideMountainSnow:Xk,LucideMouse:n3,LucideMouseOff:Jk,LucideMousePointer:i3,LucideMousePointer2:Qk,LucideMousePointerBan:e3,LucideMousePointerClick:t3,LucideMousePointerSquareDashed:_a,LucideMove:m3,LucideMove3D:Zi,LucideMove3d:Zi,LucideMoveDiagonal:o3,LucideMoveDiagonal2:a3,LucideMoveDown:l3,LucideMoveDownLeft:s3,LucideMoveDownRight:r3,LucideMoveHorizontal:c3,LucideMoveLeft:h3,LucideMoveRight:d3,LucideMoveUp:y3,LucideMoveUpLeft:u3,LucideMoveUpRight:p3,LucideMoveVertical:f3,LucideMusic:w3,LucideMusic2:g3,LucideMusic3:k3,LucideMusic4:b3,LucideNavigation:x3,LucideNavigation2:M3,LucideNavigation2Off:v3,LucideNavigationOff:C3,LucideNetwork:L3,LucideNewspaper:E3,LucideNfc:S3,LucideNonBinary:I3,LucideNotebook:R3,LucideNotebookPen:T3,LucideNotebookTabs:D3,LucideNotebookText:z3,LucideNotepadText:A3,LucideNotepadTextDashed:H3,LucideNut:P3,LucideNutOff:V3,LucideOctagon:B3,LucideOctagonAlert:Xi,LucideOctagonMinus:q3,LucideOctagonPause:Ji,LucideOctagonX:Ki,LucideOmega:F3,LucideOption:O3,LucideOrbit:N3,LucideOrigami:j3,LucideOutdent:ji,LucidePackage:X3,LucidePackage2:_3,LucidePackageCheck:W3,LucidePackageMinus:U3,LucidePackageOpen:$3,LucidePackagePlus:G3,LucidePackageSearch:Y3,LucidePackageX:Z3,LucidePaintBucket:K3,LucidePaintRoller:J3,LucidePaintbrush:Q3,LucidePaintbrush2:Qi,LucidePaintbrushVertical:Qi,LucidePalette:e4,LucidePalmtree:Mo,LucidePanda:t4,LucidePanelBottom:o4,LucidePanelBottomClose:i4,LucidePanelBottomDashed:ea,LucidePanelBottomInactive:ea,LucidePanelBottomOpen:a4,LucidePanelLeft:oa,LucidePanelLeftClose:ta,LucidePanelLeftDashed:ia,LucidePanelLeftInactive:ia,LucidePanelLeftOpen:aa,LucidePanelRight:l4,LucidePanelRightClose:n4,LucidePanelRightDashed:na,LucidePanelRightInactive:na,LucidePanelRightOpen:s4,LucidePanelTop:c4,LucidePanelTopClose:r4,LucidePanelTopDashed:sa,LucidePanelTopInactive:sa,LucidePanelTopOpen:h4,LucidePanelsLeftBottom:d4,LucidePanelsLeftRight:yi,LucidePanelsRightBottom:u4,LucidePanelsTopBottom:ya,LucidePanelsTopLeft:ra,LucidePaperclip:p4,LucideParentheses:y4,LucideParkingCircle:Kt,LucideParkingCircleOff:Xt,LucideParkingMeter:f4,LucideParkingSquare:io,LucideParkingSquareOff:to,LucidePartyPopper:m4,LucidePause:g4,LucidePauseCircle:Jt,LucidePauseOctagon:Ji,LucidePawPrint:k4,LucidePcCase:b4,LucidePen:ha,LucidePenBox:ue,LucidePenLine:la,LucidePenOff:w4,LucidePenSquare:ue,LucidePenTool:v4,LucidePencil:L4,LucidePencilLine:C4,LucidePencilOff:M4,LucidePencilRuler:x4,LucidePentagon:E4,LucidePercent:S4,LucidePercentCircle:Qt,LucidePercentDiamond:mi,LucidePercentSquare:ao,LucidePersonStanding:I4,LucidePhilippinePeso:D4,LucidePhone:P4,LucidePhoneCall:T4,LucidePhoneForwarded:z4,LucidePhoneIncoming:R4,LucidePhoneMissed:H4,LucidePhoneOff:A4,LucidePhoneOutgoing:V4,LucidePi:q4,LucidePiSquare:oo,LucidePiano:B4,LucidePickaxe:F4,LucidePictureInPicture:j4,LucidePictureInPicture2:O4,LucidePieChart:Tt,LucidePiggyBank:N4,LucidePilcrow:U4,LucidePilcrowLeft:_4,LucidePilcrowRight:W4,LucidePilcrowSquare:no,LucidePill:G4,LucidePillBottle:$4,LucidePin:Z4,LucidePinOff:Y4,LucidePipette:X4,LucidePizza:K4,LucidePlane:e5,LucidePlaneLanding:J4,LucidePlaneTakeoff:Q4,LucidePlay:t5,LucidePlayCircle:ei,LucidePlaySquare:so,LucidePlug:a5,LucidePlug2:i5,LucidePlugZap:ca,LucidePlugZap2:ca,LucidePlus:o5,LucidePlusCircle:ti,LucidePlusSquare:ro,LucidePocket:n5,LucidePocketKnife:s5,LucidePodcast:r5,LucidePointer:h5,LucidePointerOff:l5,LucidePopcorn:c5,LucidePopsicle:d5,LucidePoundSterling:u5,LucidePower:y5,LucidePowerCircle:ii,LucidePowerOff:p5,LucidePowerSquare:lo,LucidePresentation:f5,LucidePrinter:g5,LucidePrinterCheck:m5,LucideProjector:k5,LucideProportions:b5,LucidePuzzle:w5,LucidePyramid:v5,LucideQrCode:M5,LucideQuote:x5,LucideRabbit:C5,LucideRadar:L5,LucideRadiation:E5,LucideRadical:S5,LucideRadio:D5,LucideRadioReceiver:I5,LucideRadioTower:T5,LucideRadius:z5,LucideRailSymbol:R5,LucideRainbow:H5,LucideRat:A5,LucideRatio:V5,LucideReceipt:W5,LucideReceiptCent:P5,LucideReceiptEuro:q5,LucideReceiptIndianRupee:F5,LucideReceiptJapaneseYen:B5,LucideReceiptPoundSterling:j5,LucideReceiptRussianRuble:O5,LucideReceiptSwissFranc:N5,LucideReceiptText:_5,LucideRectangleEllipsis:da,LucideRectangleGoggles:U5,LucideRectangleHorizontal:$5,LucideRectangleVertical:G5,LucideRecycle:Y5,LucideRedo:K5,LucideRedo2:Z5,LucideRedoDot:X5,LucideRefreshCcw:Q5,LucideRefreshCcwDot:J5,LucideRefreshCw:tb,LucideRefreshCwOff:eb,LucideRefrigerator:ab,LucideRegex:ib,LucideRemoveFormatting:ob,LucideRepeat:rb,LucideRepeat1:nb,LucideRepeat2:sb,LucideReplace:hb,LucideReplaceAll:lb,LucideReply:db,LucideReplyAll:cb,LucideRewind:ub,LucideRibbon:pb,LucideRocket:yb,LucideRockingChair:fb,LucideRollerCoaster:mb,LucideRotate3D:ua,LucideRotate3d:ua,LucideRotateCcw:bb,LucideRotateCcwKey:gb,LucideRotateCcwSquare:kb,LucideRotateCw:vb,LucideRotateCwSquare:wb,LucideRoute:xb,LucideRouteOff:Mb,LucideRouter:Cb,LucideRows:pa,LucideRows2:pa,LucideRows3:ya,LucideRows4:Lb,LucideRss:Eb,LucideRuler:Ib,LucideRulerDimensionLine:Sb,LucideRussianRuble:Tb,LucideSailboat:Db,LucideSalad:zb,LucideSandwich:Rb,LucideSatellite:Ab,LucideSatelliteDish:Hb,LucideSaudiRiyal:Vb,LucideSave:Bb,LucideSaveAll:Pb,LucideSaveOff:qb,LucideScale:Fb,LucideScale3D:fa,LucideScale3d:fa,LucideScaling:Ob,LucideScan:Yb,LucideScanBarcode:jb,LucideScanEye:_b,LucideScanFace:Nb,LucideScanHeart:Wb,LucideScanLine:$b,LucideScanQrCode:Ub,LucideScanSearch:Gb,LucideScanText:Zb,LucideScatterChart:Dt,LucideSchool:Xb,LucideSchool2:Lo,LucideScissors:Jb,LucideScissorsLineDashed:Kb,LucideScissorsSquare:ho,LucideScissorsSquareDashedBottom:Aa,LucideScreenShare:ew,LucideScreenShareOff:Qb,LucideScroll:iw,LucideScrollText:tw,LucideSearch:rw,LucideSearchCheck:aw,LucideSearchCode:ow,LucideSearchSlash:nw,LucideSearchX:sw,LucideSection:lw,LucideSend:dw,LucideSendHorizonal:ma,LucideSendHorizontal:ma,LucideSendToBack:hw,LucideSeparatorHorizontal:cw,LucideSeparatorVertical:pw,LucideServer:mw,LucideServerCog:uw,LucideServerCrash:yw,LucideServerOff:fw,LucideSettings:kw,LucideSettings2:gw,LucideShapes:bw,LucideShare:vw,LucideShare2:ww,LucideSheet:Mw,LucideShell:Cw,LucideShield:Aw,LucideShieldAlert:xw,LucideShieldBan:Lw,LucideShieldCheck:Ew,LucideShieldClose:ga,LucideShieldEllipsis:Sw,LucideShieldHalf:Iw,LucideShieldMinus:Tw,LucideShieldOff:Dw,LucideShieldPlus:zw,LucideShieldQuestion:Rw,LucideShieldUser:Hw,LucideShieldX:ga,LucideShip:Vw,LucideShipWheel:qw,LucideShirt:Pw,LucideShoppingBag:Bw,LucideShoppingBasket:Fw,LucideShoppingCart:Ow,LucideShovel:jw,LucideShowerHead:Nw,LucideShredder:_w,LucideShrimp:Ww,LucideShrink:Uw,LucideShrub:$w,LucideShuffle:Gw,LucideSidebar:oa,LucideSidebarClose:ta,LucideSidebarOpen:aa,LucideSigma:Yw,LucideSigmaSquare:co,LucideSignal:Qw,LucideSignalHigh:Zw,LucideSignalLow:Xw,LucideSignalMedium:Kw,LucideSignalZero:Jw,LucideSignature:ev,LucideSignpost:iv,LucideSignpostBig:tv,LucideSiren:av,LucideSkipBack:ov,LucideSkipForward:nv,LucideSkull:sv,LucideSlack:rv,LucideSlash:lv,LucideSlashSquare:po,LucideSlice:cv,LucideSliders:ka,LucideSlidersHorizontal:hv,LucideSlidersVertical:ka,LucideSmartphone:pv,LucideSmartphoneCharging:dv,LucideSmartphoneNfc:uv,LucideSmile:fv,LucideSmilePlus:yv,LucideSnail:mv,LucideSnowflake:gv,LucideSoapDispenserDroplet:kv,LucideSofa:bv,LucideSortAsc:ht,LucideSortDesc:st,LucideSoup:wv,LucideSpace:vv,LucideSpade:Mv,LucideSparkle:Cv,LucideSparkles:ba,LucideSpeaker:xv,LucideSpeech:Lv,LucideSpellCheck:Sv,LucideSpellCheck2:Ev,LucideSpline:Tv,LucideSplinePointer:Iv,LucideSplit:zv,LucideSplitSquareHorizontal:uo,LucideSplitSquareVertical:yo,LucideSprayCan:Dv,LucideSprout:Rv,LucideSquare:Ov,LucideSquareActivity:wa,LucideSquareArrowDown:Ca,LucideSquareArrowDownLeft:va,LucideSquareArrowDownRight:Ma,LucideSquareArrowLeft:xa,LucideSquareArrowOutDownLeft:La,LucideSquareArrowOutDownRight:Ea,LucideSquareArrowOutUpLeft:Sa,LucideSquareArrowOutUpRight:Ia,LucideSquareArrowRight:Ta,LucideSquareArrowUp:Ra,LucideSquareArrowUpLeft:za,LucideSquareArrowUpRight:Da,LucideSquareAsterisk:Ha,LucideSquareBottomDashedScissors:Aa,LucideSquareChartGantt:Te,LucideSquareCheck:Pa,LucideSquareCheckBig:Va,LucideSquareChevronDown:qa,LucideSquareChevronLeft:Ba,LucideSquareChevronRight:Fa,LucideSquareChevronUp:Oa,LucideSquareCode:ja,LucideSquareDashed:Wa,LucideSquareDashedBottom:Av,LucideSquareDashedBottomCode:Hv,LucideSquareDashedKanban:Na,LucideSquareDashedMousePointer:_a,LucideSquareDashedTopSolid:Vv,LucideSquareDivide:Ua,LucideSquareDot:$a,LucideSquareEqual:Ga,LucideSquareFunction:Ya,LucideSquareGanttChart:Te,LucideSquareKanban:Za,LucideSquareLibrary:Xa,LucideSquareM:Ka,LucideSquareMenu:Ja,LucideSquareMinus:Qa,LucideSquareMousePointer:eo,LucideSquareParking:io,LucideSquareParkingOff:to,LucideSquarePen:ue,LucideSquarePercent:ao,LucideSquarePi:oo,LucideSquarePilcrow:no,LucideSquarePlay:so,LucideSquarePlus:ro,LucideSquarePower:lo,LucideSquareRadical:Pv,LucideSquareRoundCorner:qv,LucideSquareScissors:ho,LucideSquareSigma:co,LucideSquareSlash:po,LucideSquareSplitHorizontal:uo,LucideSquareSplitVertical:yo,LucideSquareSquare:Bv,LucideSquareStack:Fv,LucideSquareTerminal:fo,LucideSquareUser:go,LucideSquareUserRound:mo,LucideSquareX:ko,LucideSquaresExclude:Nv,LucideSquaresIntersect:jv,LucideSquaresSubtract:_v,LucideSquaresUnite:Wv,LucideSquircle:Uv,LucideSquirrel:$v,LucideStamp:Gv,LucideStar:Xv,LucideStarHalf:Yv,LucideStarOff:Zv,LucideStars:ba,LucideStepBack:Kv,LucideStepForward:Jv,LucideStethoscope:Qv,LucideSticker:e6,LucideStickyNote:t6,LucideStopCircle:oi,LucideStore:i6,LucideStretchHorizontal:a6,LucideStretchVertical:o6,LucideStrikethrough:n6,LucideSubscript:s6,LucideSubtitles:gt,LucideSun:d6,LucideSunDim:l6,LucideSunMedium:r6,LucideSunMoon:h6,LucideSunSnow:c6,LucideSunrise:u6,LucideSunset:p6,LucideSuperscript:y6,LucideSwatchBook:f6,LucideSwissFranc:m6,LucideSwitchCamera:g6,LucideSword:k6,LucideSwords:b6,LucideSyringe:w6,LucideTable:I6,LucideTable2:v6,LucideTableCellsMerge:M6,LucideTableCellsSplit:C6,LucideTableColumnsSplit:x6,LucideTableConfig:Se,LucideTableOfContents:L6,LucideTableProperties:E6,LucideTableRowsSplit:S6,LucideTablet:D6,LucideTabletSmartphone:T6,LucideTablets:z6,LucideTag:R6,LucideTags:H6,LucideTally1:A6,LucideTally2:V6,LucideTally3:P6,LucideTally4:q6,LucideTally5:B6,LucideTangent:F6,LucideTarget:O6,LucideTelescope:j6,LucideTent:_6,LucideTentTree:N6,LucideTerminal:W6,LucideTerminalSquare:fo,LucideTestTube:U6,LucideTestTube2:bo,LucideTestTubeDiagonal:bo,LucideTestTubes:$6,LucideText:K6,LucideTextCursor:Y6,LucideTextCursorInput:G6,LucideTextQuote:Z6,LucideTextSearch:X6,LucideTextSelect:wo,LucideTextSelection:wo,LucideTheater:J6,LucideThermometer:t8,LucideThermometerSnowflake:Q6,LucideThermometerSun:e8,LucideThumbsDown:i8,LucideThumbsUp:a8,LucideTicket:c8,LucideTicketCheck:o8,LucideTicketMinus:n8,LucideTicketPercent:s8,LucideTicketPlus:r8,LucideTicketSlash:l8,LucideTicketX:h8,LucideTickets:p8,LucideTicketsPlane:d8,LucideTimer:f8,LucideTimerOff:u8,LucideTimerReset:y8,LucideToggleLeft:m8,LucideToggleRight:g8,LucideToilet:k8,LucideTornado:b8,LucideTorus:w8,LucideTouchpad:M8,LucideTouchpadOff:v8,LucideTowerControl:C8,LucideToyBrick:x8,LucideTractor:L8,LucideTrafficCone:E8,LucideTrain:vo,LucideTrainFront:I8,LucideTrainFrontTunnel:S8,LucideTrainTrack:T8,LucideTramFront:vo,LucideTransgender:D8,LucideTrash:R8,LucideTrash2:z8,LucideTreeDeciduous:H8,LucideTreePalm:Mo,LucideTreePine:A8,LucideTrees:V8,LucideTrello:P8,LucideTrendingDown:q8,LucideTrendingUp:F8,LucideTrendingUpDown:B8,LucideTriangle:N8,LucideTriangleAlert:Co,LucideTriangleDashed:O8,LucideTriangleRight:j8,LucideTrophy:_8,LucideTruck:W8,LucideTruckElectric:U8,LucideTurtle:$8,LucideTv:Y8,LucideTv2:xo,LucideTvMinimal:xo,LucideTvMinimalPlay:G8,LucideTwitch:Z8,LucideTwitter:X8,LucideType:J8,LucideTypeOutline:K8,LucideUmbrella:eM,LucideUmbrellaOff:Q8,LucideUnderline:tM,LucideUndo:oM,LucideUndo2:aM,LucideUndoDot:iM,LucideUnfoldHorizontal:nM,LucideUnfoldVertical:sM,LucideUngroup:rM,LucideUniversity:Lo,LucideUnlink:hM,LucideUnlink2:lM,LucideUnlock:Gi,LucideUnlockKeyhole:$i,LucideUnplug:cM,LucideUpload:dM,LucideUploadCloud:di,LucideUsb:uM,LucideUser:CM,LucideUser2:zo,LucideUserCheck:pM,LucideUserCheck2:Eo,LucideUserCircle:si,LucideUserCircle2:ni,LucideUserCog:yM,LucideUserCog2:So,LucideUserLock:fM,LucideUserMinus:mM,LucideUserMinus2:Io,LucideUserPen:gM,LucideUserPlus:kM,LucideUserPlus2:To,LucideUserRound:zo,LucideUserRoundCheck:Eo,LucideUserRoundCog:So,LucideUserRoundMinus:Io,LucideUserRoundPen:bM,LucideUserRoundPlus:To,LucideUserRoundSearch:wM,LucideUserRoundX:Do,LucideUserSearch:vM,LucideUserSquare:go,LucideUserSquare2:mo,LucideUserX:MM,LucideUserX2:Do,LucideUsers:xM,LucideUsers2:Ro,LucideUsersRound:Ro,LucideUtensils:Ao,LucideUtensilsCrossed:Ho,LucideUtilityPole:LM,LucideVariable:EM,LucideVault:SM,LucideVegan:IM,LucideVenetianMask:TM,LucideVenus:zM,LucideVenusAndMars:DM,LucideVerified:ut,LucideVibrate:HM,LucideVibrateOff:RM,LucideVideo:PM,LucideVideoOff:AM,LucideVideotape:VM,LucideView:qM,LucideVoicemail:BM,LucideVolleyball:FM,LucideVolume:_M,LucideVolume1:OM,LucideVolume2:jM,LucideVolumeOff:NM,LucideVolumeX:WM,LucideVote:UM,LucideWallet:GM,LucideWallet2:Vo,LucideWalletCards:$M,LucideWalletMinimal:Vo,LucideWallpaper:YM,LucideWand:ZM,LucideWand2:Po,LucideWandSparkles:Po,LucideWarehouse:XM,LucideWashingMachine:KM,LucideWatch:JM,LucideWaves:e7,LucideWavesLadder:QM,LucideWaypoints:t7,LucideWebcam:i7,LucideWebhook:a7,LucideWebhookOff:o7,LucideWeight:n7,LucideWheat:s7,LucideWheatOff:r7,LucideWholeWord:h7,LucideWifi:p7,LucideWifiHigh:l7,LucideWifiLow:c7,LucideWifiOff:d7,LucideWifiPen:u7,LucideWifiZero:y7,LucideWind:m7,LucideWindArrowDown:f7,LucideWine:k7,LucideWineOff:g7,LucideWorkflow:b7,LucideWorm:w7,LucideWrapText:v7,LucideWrench:M7,LucideX:C7,LucideXCircle:ri,LucideXOctagon:Ki,LucideXSquare:ko,LucideYoutube:x7,LucideZap:E7,LucideZapOff:L7,LucideZoomIn:S7,LucideZoomOut:I7,Luggage:dg,LuggageIcon:dg,MSquare:Ka,MSquareIcon:Ka,Magnet:ug,MagnetIcon:ug,Mail:vg,MailCheck:pg,MailCheckIcon:pg,MailIcon:vg,MailMinus:yg,MailMinusIcon:yg,MailOpen:fg,MailOpenIcon:fg,MailPlus:mg,MailPlusIcon:mg,MailQuestion:gg,MailQuestionIcon:gg,MailSearch:kg,MailSearchIcon:kg,MailWarning:bg,MailWarningIcon:bg,MailX:wg,MailXIcon:wg,Mailbox:Mg,MailboxIcon:Mg,Mails:Cg,MailsIcon:Cg,Map:qg,MapIcon:qg,MapPin:Ag,MapPinCheck:Lg,MapPinCheckIcon:Lg,MapPinCheckInside:xg,MapPinCheckInsideIcon:xg,MapPinHouse:Eg,MapPinHouseIcon:Eg,MapPinIcon:Ag,MapPinMinus:Ig,MapPinMinusIcon:Ig,MapPinMinusInside:Sg,MapPinMinusInsideIcon:Sg,MapPinOff:Tg,MapPinOffIcon:Tg,MapPinPlus:zg,MapPinPlusIcon:zg,MapPinPlusInside:Dg,MapPinPlusInsideIcon:Dg,MapPinX:Rg,MapPinXIcon:Rg,MapPinXInside:Hg,MapPinXInsideIcon:Hg,MapPinned:Vg,MapPinnedIcon:Vg,MapPlus:Pg,MapPlusIcon:Pg,Mars:Fg,MarsIcon:Fg,MarsStroke:Bg,MarsStrokeIcon:Bg,Martini:Og,MartiniIcon:Og,Maximize:jg,Maximize2:Ng,Maximize2Icon:Ng,MaximizeIcon:jg,Medal:_g,MedalIcon:_g,Megaphone:Ug,MegaphoneIcon:Ug,MegaphoneOff:Wg,MegaphoneOffIcon:Wg,Meh:$g,MehIcon:$g,MemoryStick:Yg,MemoryStickIcon:Yg,Menu:Gg,MenuIcon:Gg,MenuSquare:Ja,MenuSquareIcon:Ja,Merge:Zg,MergeIcon:Zg,MessageCircle:sk,MessageCircleCode:Xg,MessageCircleCodeIcon:Xg,MessageCircleDashed:Kg,MessageCircleDashedIcon:Kg,MessageCircleHeart:Jg,MessageCircleHeartIcon:Jg,MessageCircleIcon:sk,MessageCircleMore:Qg,MessageCircleMoreIcon:Qg,MessageCircleOff:ek,MessageCircleOffIcon:ek,MessageCirclePlus:tk,MessageCirclePlusIcon:tk,MessageCircleQuestion:ik,MessageCircleQuestionIcon:ik,MessageCircleReply:ak,MessageCircleReplyIcon:ak,MessageCircleWarning:ok,MessageCircleWarningIcon:ok,MessageCircleX:nk,MessageCircleXIcon:nk,MessageSquare:Mk,MessageSquareCode:rk,MessageSquareCodeIcon:rk,MessageSquareDashed:lk,MessageSquareDashedIcon:lk,MessageSquareDiff:hk,MessageSquareDiffIcon:hk,MessageSquareDot:ck,MessageSquareDotIcon:ck,MessageSquareHeart:dk,MessageSquareHeartIcon:dk,MessageSquareIcon:Mk,MessageSquareLock:uk,MessageSquareLockIcon:uk,MessageSquareMore:pk,MessageSquareMoreIcon:pk,MessageSquareOff:yk,MessageSquareOffIcon:yk,MessageSquarePlus:fk,MessageSquarePlusIcon:fk,MessageSquareQuote:mk,MessageSquareQuoteIcon:mk,MessageSquareReply:gk,MessageSquareReplyIcon:gk,MessageSquareShare:kk,MessageSquareShareIcon:kk,MessageSquareText:bk,MessageSquareTextIcon:bk,MessageSquareWarning:wk,MessageSquareWarningIcon:wk,MessageSquareX:vk,MessageSquareXIcon:vk,MessagesSquare:Ck,MessagesSquareIcon:Ck,Mic:Lk,Mic2:Yi,Mic2Icon:Yi,MicIcon:Lk,MicOff:xk,MicOffIcon:xk,MicVocal:Yi,MicVocalIcon:Yi,Microchip:Ek,MicrochipIcon:Ek,Microscope:Sk,MicroscopeIcon:Sk,Microwave:Ik,MicrowaveIcon:Ik,Milestone:Tk,MilestoneIcon:Tk,Milk:zk,MilkIcon:zk,MilkOff:Dk,MilkOffIcon:Dk,Minimize:Hk,Minimize2:Rk,Minimize2Icon:Rk,MinimizeIcon:Hk,Minus:Ak,MinusCircle:Zt,MinusCircleIcon:Zt,MinusIcon:Ak,MinusSquare:Qa,MinusSquareIcon:Qa,Monitor:Gk,MonitorCheck:Vk,MonitorCheckIcon:Vk,MonitorCog:qk,MonitorCogIcon:qk,MonitorDot:Pk,MonitorDotIcon:Pk,MonitorDown:Bk,MonitorDownIcon:Bk,MonitorIcon:Gk,MonitorOff:Fk,MonitorOffIcon:Fk,MonitorPause:Ok,MonitorPauseIcon:Ok,MonitorPlay:jk,MonitorPlayIcon:jk,MonitorSmartphone:Nk,MonitorSmartphoneIcon:Nk,MonitorSpeaker:Wk,MonitorSpeakerIcon:Wk,MonitorStop:_k,MonitorStopIcon:_k,MonitorUp:Uk,MonitorUpIcon:Uk,MonitorX:$k,MonitorXIcon:$k,Moon:Zk,MoonIcon:Zk,MoonStar:Yk,MoonStarIcon:Yk,MoreHorizontal:bi,MoreHorizontalIcon:bi,MoreVertical:ki,MoreVerticalIcon:ki,Mountain:Kk,MountainIcon:Kk,MountainSnow:Xk,MountainSnowIcon:Xk,Mouse:n3,MouseIcon:n3,MouseOff:Jk,MouseOffIcon:Jk,MousePointer:i3,MousePointer2:Qk,MousePointer2Icon:Qk,MousePointerBan:e3,MousePointerBanIcon:e3,MousePointerClick:t3,MousePointerClickIcon:t3,MousePointerIcon:i3,MousePointerSquareDashed:_a,MousePointerSquareDashedIcon:_a,Move:m3,Move3D:Zi,Move3DIcon:Zi,Move3d:Zi,Move3dIcon:Zi,MoveDiagonal:o3,MoveDiagonal2:a3,MoveDiagonal2Icon:a3,MoveDiagonalIcon:o3,MoveDown:l3,MoveDownIcon:l3,MoveDownLeft:s3,MoveDownLeftIcon:s3,MoveDownRight:r3,MoveDownRightIcon:r3,MoveHorizontal:c3,MoveHorizontalIcon:c3,MoveIcon:m3,MoveLeft:h3,MoveLeftIcon:h3,MoveRight:d3,MoveRightIcon:d3,MoveUp:y3,MoveUpIcon:y3,MoveUpLeft:u3,MoveUpLeftIcon:u3,MoveUpRight:p3,MoveUpRightIcon:p3,MoveVertical:f3,MoveVerticalIcon:f3,Music:w3,Music2:g3,Music2Icon:g3,Music3:k3,Music3Icon:k3,Music4:b3,Music4Icon:b3,MusicIcon:w3,Navigation:x3,Navigation2:M3,Navigation2Icon:M3,Navigation2Off:v3,Navigation2OffIcon:v3,NavigationIcon:x3,NavigationOff:C3,NavigationOffIcon:C3,Network:L3,NetworkIcon:L3,Newspaper:E3,NewspaperIcon:E3,Nfc:S3,NfcIcon:S3,NonBinary:I3,NonBinaryIcon:I3,Notebook:R3,NotebookIcon:R3,NotebookPen:T3,NotebookPenIcon:T3,NotebookTabs:D3,NotebookTabsIcon:D3,NotebookText:z3,NotebookTextIcon:z3,NotepadText:A3,NotepadTextDashed:H3,NotepadTextDashedIcon:H3,NotepadTextIcon:A3,Nut:P3,NutIcon:P3,NutOff:V3,NutOffIcon:V3,Octagon:B3,OctagonAlert:Xi,OctagonAlertIcon:Xi,OctagonIcon:B3,OctagonMinus:q3,OctagonMinusIcon:q3,OctagonPause:Ji,OctagonPauseIcon:Ji,OctagonX:Ki,OctagonXIcon:Ki,Omega:F3,OmegaIcon:F3,Option:O3,OptionIcon:O3,Orbit:N3,OrbitIcon:N3,Origami:j3,OrigamiIcon:j3,Outdent:ji,OutdentIcon:ji,Package:X3,Package2:_3,Package2Icon:_3,PackageCheck:W3,PackageCheckIcon:W3,PackageIcon:X3,PackageMinus:U3,PackageMinusIcon:U3,PackageOpen:$3,PackageOpenIcon:$3,PackagePlus:G3,PackagePlusIcon:G3,PackageSearch:Y3,PackageSearchIcon:Y3,PackageX:Z3,PackageXIcon:Z3,PaintBucket:K3,PaintBucketIcon:K3,PaintRoller:J3,PaintRollerIcon:J3,Paintbrush:Q3,Paintbrush2:Qi,Paintbrush2Icon:Qi,PaintbrushIcon:Q3,PaintbrushVertical:Qi,PaintbrushVerticalIcon:Qi,Palette:e4,PaletteIcon:e4,Palmtree:Mo,PalmtreeIcon:Mo,Panda:t4,PandaIcon:t4,PanelBottom:o4,PanelBottomClose:i4,PanelBottomCloseIcon:i4,PanelBottomDashed:ea,PanelBottomDashedIcon:ea,PanelBottomIcon:o4,PanelBottomInactive:ea,PanelBottomInactiveIcon:ea,PanelBottomOpen:a4,PanelBottomOpenIcon:a4,PanelLeft:oa,PanelLeftClose:ta,PanelLeftCloseIcon:ta,PanelLeftDashed:ia,PanelLeftDashedIcon:ia,PanelLeftIcon:oa,PanelLeftInactive:ia,PanelLeftInactiveIcon:ia,PanelLeftOpen:aa,PanelLeftOpenIcon:aa,PanelRight:l4,PanelRightClose:n4,PanelRightCloseIcon:n4,PanelRightDashed:na,PanelRightDashedIcon:na,PanelRightIcon:l4,PanelRightInactive:na,PanelRightInactiveIcon:na,PanelRightOpen:s4,PanelRightOpenIcon:s4,PanelTop:c4,PanelTopClose:r4,PanelTopCloseIcon:r4,PanelTopDashed:sa,PanelTopDashedIcon:sa,PanelTopIcon:c4,PanelTopInactive:sa,PanelTopInactiveIcon:sa,PanelTopOpen:h4,PanelTopOpenIcon:h4,PanelsLeftBottom:d4,PanelsLeftBottomIcon:d4,PanelsLeftRight:yi,PanelsLeftRightIcon:yi,PanelsRightBottom:u4,PanelsRightBottomIcon:u4,PanelsTopBottom:ya,PanelsTopBottomIcon:ya,PanelsTopLeft:ra,PanelsTopLeftIcon:ra,Paperclip:p4,PaperclipIcon:p4,Parentheses:y4,ParenthesesIcon:y4,ParkingCircle:Kt,ParkingCircleIcon:Kt,ParkingCircleOff:Xt,ParkingCircleOffIcon:Xt,ParkingMeter:f4,ParkingMeterIcon:f4,ParkingSquare:io,ParkingSquareIcon:io,ParkingSquareOff:to,ParkingSquareOffIcon:to,PartyPopper:m4,PartyPopperIcon:m4,Pause:g4,PauseCircle:Jt,PauseCircleIcon:Jt,PauseIcon:g4,PauseOctagon:Ji,PauseOctagonIcon:Ji,PawPrint:k4,PawPrintIcon:k4,PcCase:b4,PcCaseIcon:b4,Pen:ha,PenBox:ue,PenBoxIcon:ue,PenIcon:ha,PenLine:la,PenLineIcon:la,PenOff:w4,PenOffIcon:w4,PenSquare:ue,PenSquareIcon:ue,PenTool:v4,PenToolIcon:v4,Pencil:L4,PencilIcon:L4,PencilLine:C4,PencilLineIcon:C4,PencilOff:M4,PencilOffIcon:M4,PencilRuler:x4,PencilRulerIcon:x4,Pentagon:E4,PentagonIcon:E4,Percent:S4,PercentCircle:Qt,PercentCircleIcon:Qt,PercentDiamond:mi,PercentDiamondIcon:mi,PercentIcon:S4,PercentSquare:ao,PercentSquareIcon:ao,PersonStanding:I4,PersonStandingIcon:I4,PhilippinePeso:D4,PhilippinePesoIcon:D4,Phone:P4,PhoneCall:T4,PhoneCallIcon:T4,PhoneForwarded:z4,PhoneForwardedIcon:z4,PhoneIcon:P4,PhoneIncoming:R4,PhoneIncomingIcon:R4,PhoneMissed:H4,PhoneMissedIcon:H4,PhoneOff:A4,PhoneOffIcon:A4,PhoneOutgoing:V4,PhoneOutgoingIcon:V4,Pi:q4,PiIcon:q4,PiSquare:oo,PiSquareIcon:oo,Piano:B4,PianoIcon:B4,Pickaxe:F4,PickaxeIcon:F4,PictureInPicture:j4,PictureInPicture2:O4,PictureInPicture2Icon:O4,PictureInPictureIcon:j4,PieChart:Tt,PieChartIcon:Tt,PiggyBank:N4,PiggyBankIcon:N4,Pilcrow:U4,PilcrowIcon:U4,PilcrowLeft:_4,PilcrowLeftIcon:_4,PilcrowRight:W4,PilcrowRightIcon:W4,PilcrowSquare:no,PilcrowSquareIcon:no,Pill:G4,PillBottle:$4,PillBottleIcon:$4,PillIcon:G4,Pin:Z4,PinIcon:Z4,PinOff:Y4,PinOffIcon:Y4,Pipette:X4,PipetteIcon:X4,Pizza:K4,PizzaIcon:K4,Plane:e5,PlaneIcon:e5,PlaneLanding:J4,PlaneLandingIcon:J4,PlaneTakeoff:Q4,PlaneTakeoffIcon:Q4,Play:t5,PlayCircle:ei,PlayCircleIcon:ei,PlayIcon:t5,PlaySquare:so,PlaySquareIcon:so,Plug:a5,Plug2:i5,Plug2Icon:i5,PlugIcon:a5,PlugZap:ca,PlugZap2:ca,PlugZap2Icon:ca,PlugZapIcon:ca,Plus:o5,PlusCircle:ti,PlusCircleIcon:ti,PlusIcon:o5,PlusSquare:ro,PlusSquareIcon:ro,Pocket:n5,PocketIcon:n5,PocketKnife:s5,PocketKnifeIcon:s5,Podcast:r5,PodcastIcon:r5,Pointer:h5,PointerIcon:h5,PointerOff:l5,PointerOffIcon:l5,Popcorn:c5,PopcornIcon:c5,Popsicle:d5,PopsicleIcon:d5,PoundSterling:u5,PoundSterlingIcon:u5,Power:y5,PowerCircle:ii,PowerCircleIcon:ii,PowerIcon:y5,PowerOff:p5,PowerOffIcon:p5,PowerSquare:lo,PowerSquareIcon:lo,Presentation:f5,PresentationIcon:f5,Printer:g5,PrinterCheck:m5,PrinterCheckIcon:m5,PrinterIcon:g5,Projector:k5,ProjectorIcon:k5,Proportions:b5,ProportionsIcon:b5,Puzzle:w5,PuzzleIcon:w5,Pyramid:v5,PyramidIcon:v5,QrCode:M5,QrCodeIcon:M5,Quote:x5,QuoteIcon:x5,Rabbit:C5,RabbitIcon:C5,Radar:L5,RadarIcon:L5,Radiation:E5,RadiationIcon:E5,Radical:S5,RadicalIcon:S5,Radio:D5,RadioIcon:D5,RadioReceiver:I5,RadioReceiverIcon:I5,RadioTower:T5,RadioTowerIcon:T5,Radius:z5,RadiusIcon:z5,RailSymbol:R5,RailSymbolIcon:R5,Rainbow:H5,RainbowIcon:H5,Rat:A5,RatIcon:A5,Ratio:V5,RatioIcon:V5,Receipt:W5,ReceiptCent:P5,ReceiptCentIcon:P5,ReceiptEuro:q5,ReceiptEuroIcon:q5,ReceiptIcon:W5,ReceiptIndianRupee:F5,ReceiptIndianRupeeIcon:F5,ReceiptJapaneseYen:B5,ReceiptJapaneseYenIcon:B5,ReceiptPoundSterling:j5,ReceiptPoundSterlingIcon:j5,ReceiptRussianRuble:O5,ReceiptRussianRubleIcon:O5,ReceiptSwissFranc:N5,ReceiptSwissFrancIcon:N5,ReceiptText:_5,ReceiptTextIcon:_5,RectangleEllipsis:da,RectangleEllipsisIcon:da,RectangleGoggles:U5,RectangleGogglesIcon:U5,RectangleHorizontal:$5,RectangleHorizontalIcon:$5,RectangleVertical:G5,RectangleVerticalIcon:G5,Recycle:Y5,RecycleIcon:Y5,Redo:K5,Redo2:Z5,Redo2Icon:Z5,RedoDot:X5,RedoDotIcon:X5,RedoIcon:K5,RefreshCcw:Q5,RefreshCcwDot:J5,RefreshCcwDotIcon:J5,RefreshCcwIcon:Q5,RefreshCw:tb,RefreshCwIcon:tb,RefreshCwOff:eb,RefreshCwOffIcon:eb,Refrigerator:ab,RefrigeratorIcon:ab,Regex:ib,RegexIcon:ib,RemoveFormatting:ob,RemoveFormattingIcon:ob,Repeat:rb,Repeat1:nb,Repeat1Icon:nb,Repeat2:sb,Repeat2Icon:sb,RepeatIcon:rb,Replace:hb,ReplaceAll:lb,ReplaceAllIcon:lb,ReplaceIcon:hb,Reply:db,ReplyAll:cb,ReplyAllIcon:cb,ReplyIcon:db,Rewind:ub,RewindIcon:ub,Ribbon:pb,RibbonIcon:pb,Rocket:yb,RocketIcon:yb,RockingChair:fb,RockingChairIcon:fb,RollerCoaster:mb,RollerCoasterIcon:mb,Rotate3D:ua,Rotate3DIcon:ua,Rotate3d:ua,Rotate3dIcon:ua,RotateCcw:bb,RotateCcwIcon:bb,RotateCcwKey:gb,RotateCcwKeyIcon:gb,RotateCcwSquare:kb,RotateCcwSquareIcon:kb,RotateCw:vb,RotateCwIcon:vb,RotateCwSquare:wb,RotateCwSquareIcon:wb,Route:xb,RouteIcon:xb,RouteOff:Mb,RouteOffIcon:Mb,Router:Cb,RouterIcon:Cb,Rows:pa,Rows2:pa,Rows2Icon:pa,Rows3:ya,Rows3Icon:ya,Rows4:Lb,Rows4Icon:Lb,RowsIcon:pa,Rss:Eb,RssIcon:Eb,Ruler:Ib,RulerDimensionLine:Sb,RulerDimensionLineIcon:Sb,RulerIcon:Ib,RussianRuble:Tb,RussianRubleIcon:Tb,Sailboat:Db,SailboatIcon:Db,Salad:zb,SaladIcon:zb,Sandwich:Rb,SandwichIcon:Rb,Satellite:Ab,SatelliteDish:Hb,SatelliteDishIcon:Hb,SatelliteIcon:Ab,SaudiRiyal:Vb,SaudiRiyalIcon:Vb,Save:Bb,SaveAll:Pb,SaveAllIcon:Pb,SaveIcon:Bb,SaveOff:qb,SaveOffIcon:qb,Scale:Fb,Scale3D:fa,Scale3DIcon:fa,Scale3d:fa,Scale3dIcon:fa,ScaleIcon:Fb,Scaling:Ob,ScalingIcon:Ob,Scan:Yb,ScanBarcode:jb,ScanBarcodeIcon:jb,ScanEye:_b,ScanEyeIcon:_b,ScanFace:Nb,ScanFaceIcon:Nb,ScanHeart:Wb,ScanHeartIcon:Wb,ScanIcon:Yb,ScanLine:$b,ScanLineIcon:$b,ScanQrCode:Ub,ScanQrCodeIcon:Ub,ScanSearch:Gb,ScanSearchIcon:Gb,ScanText:Zb,ScanTextIcon:Zb,ScatterChart:Dt,ScatterChartIcon:Dt,School:Xb,School2:Lo,School2Icon:Lo,SchoolIcon:Xb,Scissors:Jb,ScissorsIcon:Jb,ScissorsLineDashed:Kb,ScissorsLineDashedIcon:Kb,ScissorsSquare:ho,ScissorsSquareDashedBottom:Aa,ScissorsSquareDashedBottomIcon:Aa,ScissorsSquareIcon:ho,ScreenShare:ew,ScreenShareIcon:ew,ScreenShareOff:Qb,ScreenShareOffIcon:Qb,Scroll:iw,ScrollIcon:iw,ScrollText:tw,ScrollTextIcon:tw,Search:rw,SearchCheck:aw,SearchCheckIcon:aw,SearchCode:ow,SearchCodeIcon:ow,SearchIcon:rw,SearchSlash:nw,SearchSlashIcon:nw,SearchX:sw,SearchXIcon:sw,Section:lw,SectionIcon:lw,Send:dw,SendHorizonal:ma,SendHorizonalIcon:ma,SendHorizontal:ma,SendHorizontalIcon:ma,SendIcon:dw,SendToBack:hw,SendToBackIcon:hw,SeparatorHorizontal:cw,SeparatorHorizontalIcon:cw,SeparatorVertical:pw,SeparatorVerticalIcon:pw,Server:mw,ServerCog:uw,ServerCogIcon:uw,ServerCrash:yw,ServerCrashIcon:yw,ServerIcon:mw,ServerOff:fw,ServerOffIcon:fw,Settings:kw,Settings2:gw,Settings2Icon:gw,SettingsIcon:kw,Shapes:bw,ShapesIcon:bw,Share:vw,Share2:ww,Share2Icon:ww,ShareIcon:vw,Sheet:Mw,SheetIcon:Mw,Shell:Cw,ShellIcon:Cw,Shield:Aw,ShieldAlert:xw,ShieldAlertIcon:xw,ShieldBan:Lw,ShieldBanIcon:Lw,ShieldCheck:Ew,ShieldCheckIcon:Ew,ShieldClose:ga,ShieldCloseIcon:ga,ShieldEllipsis:Sw,ShieldEllipsisIcon:Sw,ShieldHalf:Iw,ShieldHalfIcon:Iw,ShieldIcon:Aw,ShieldMinus:Tw,ShieldMinusIcon:Tw,ShieldOff:Dw,ShieldOffIcon:Dw,ShieldPlus:zw,ShieldPlusIcon:zw,ShieldQuestion:Rw,ShieldQuestionIcon:Rw,ShieldUser:Hw,ShieldUserIcon:Hw,ShieldX:ga,ShieldXIcon:ga,Ship:Vw,ShipIcon:Vw,ShipWheel:qw,ShipWheelIcon:qw,Shirt:Pw,ShirtIcon:Pw,ShoppingBag:Bw,ShoppingBagIcon:Bw,ShoppingBasket:Fw,ShoppingBasketIcon:Fw,ShoppingCart:Ow,ShoppingCartIcon:Ow,Shovel:jw,ShovelIcon:jw,ShowerHead:Nw,ShowerHeadIcon:Nw,Shredder:_w,ShredderIcon:_w,Shrimp:Ww,ShrimpIcon:Ww,Shrink:Uw,ShrinkIcon:Uw,Shrub:$w,ShrubIcon:$w,Shuffle:Gw,ShuffleIcon:Gw,Sidebar:oa,SidebarClose:ta,SidebarCloseIcon:ta,SidebarIcon:oa,SidebarOpen:aa,SidebarOpenIcon:aa,Sigma:Yw,SigmaIcon:Yw,SigmaSquare:co,SigmaSquareIcon:co,Signal:Qw,SignalHigh:Zw,SignalHighIcon:Zw,SignalIcon:Qw,SignalLow:Xw,SignalLowIcon:Xw,SignalMedium:Kw,SignalMediumIcon:Kw,SignalZero:Jw,SignalZeroIcon:Jw,Signature:ev,SignatureIcon:ev,Signpost:iv,SignpostBig:tv,SignpostBigIcon:tv,SignpostIcon:iv,Siren:av,SirenIcon:av,SkipBack:ov,SkipBackIcon:ov,SkipForward:nv,SkipForwardIcon:nv,Skull:sv,SkullIcon:sv,Slack:rv,SlackIcon:rv,Slash:lv,SlashIcon:lv,SlashSquare:po,SlashSquareIcon:po,Slice:cv,SliceIcon:cv,Sliders:ka,SlidersHorizontal:hv,SlidersHorizontalIcon:hv,SlidersIcon:ka,SlidersVertical:ka,SlidersVerticalIcon:ka,Smartphone:pv,SmartphoneCharging:dv,SmartphoneChargingIcon:dv,SmartphoneIcon:pv,SmartphoneNfc:uv,SmartphoneNfcIcon:uv,Smile:fv,SmileIcon:fv,SmilePlus:yv,SmilePlusIcon:yv,Snail:mv,SnailIcon:mv,Snowflake:gv,SnowflakeIcon:gv,SoapDispenserDroplet:kv,SoapDispenserDropletIcon:kv,Sofa:bv,SofaIcon:bv,SortAsc:ht,SortAscIcon:ht,SortDesc:st,SortDescIcon:st,Soup:wv,SoupIcon:wv,Space:vv,SpaceIcon:vv,Spade:Mv,SpadeIcon:Mv,Sparkle:Cv,SparkleIcon:Cv,Sparkles:ba,SparklesIcon:ba,Speaker:xv,SpeakerIcon:xv,Speech:Lv,SpeechIcon:Lv,SpellCheck:Sv,SpellCheck2:Ev,SpellCheck2Icon:Ev,SpellCheckIcon:Sv,Spline:Tv,SplineIcon:Tv,SplinePointer:Iv,SplinePointerIcon:Iv,Split:zv,SplitIcon:zv,SplitSquareHorizontal:uo,SplitSquareHorizontalIcon:uo,SplitSquareVertical:yo,SplitSquareVerticalIcon:yo,SprayCan:Dv,SprayCanIcon:Dv,Sprout:Rv,SproutIcon:Rv,Square:Ov,SquareActivity:wa,SquareActivityIcon:wa,SquareArrowDown:Ca,SquareArrowDownIcon:Ca,SquareArrowDownLeft:va,SquareArrowDownLeftIcon:va,SquareArrowDownRight:Ma,SquareArrowDownRightIcon:Ma,SquareArrowLeft:xa,SquareArrowLeftIcon:xa,SquareArrowOutDownLeft:La,SquareArrowOutDownLeftIcon:La,SquareArrowOutDownRight:Ea,SquareArrowOutDownRightIcon:Ea,SquareArrowOutUpLeft:Sa,SquareArrowOutUpLeftIcon:Sa,SquareArrowOutUpRight:Ia,SquareArrowOutUpRightIcon:Ia,SquareArrowRight:Ta,SquareArrowRightIcon:Ta,SquareArrowUp:Ra,SquareArrowUpIcon:Ra,SquareArrowUpLeft:za,SquareArrowUpLeftIcon:za,SquareArrowUpRight:Da,SquareArrowUpRightIcon:Da,SquareAsterisk:Ha,SquareAsteriskIcon:Ha,SquareBottomDashedScissors:Aa,SquareBottomDashedScissorsIcon:Aa,SquareChartGantt:Te,SquareChartGanttIcon:Te,SquareCheck:Pa,SquareCheckBig:Va,SquareCheckBigIcon:Va,SquareCheckIcon:Pa,SquareChevronDown:qa,SquareChevronDownIcon:qa,SquareChevronLeft:Ba,SquareChevronLeftIcon:Ba,SquareChevronRight:Fa,SquareChevronRightIcon:Fa,SquareChevronUp:Oa,SquareChevronUpIcon:Oa,SquareCode:ja,SquareCodeIcon:ja,SquareDashed:Wa,SquareDashedBottom:Av,SquareDashedBottomCode:Hv,SquareDashedBottomCodeIcon:Hv,SquareDashedBottomIcon:Av,SquareDashedIcon:Wa,SquareDashedKanban:Na,SquareDashedKanbanIcon:Na,SquareDashedMousePointer:_a,SquareDashedMousePointerIcon:_a,SquareDashedTopSolid:Vv,SquareDashedTopSolidIcon:Vv,SquareDivide:Ua,SquareDivideIcon:Ua,SquareDot:$a,SquareDotIcon:$a,SquareEqual:Ga,SquareEqualIcon:Ga,SquareFunction:Ya,SquareFunctionIcon:Ya,SquareGanttChart:Te,SquareGanttChartIcon:Te,SquareIcon:Ov,SquareKanban:Za,SquareKanbanIcon:Za,SquareLibrary:Xa,SquareLibraryIcon:Xa,SquareM:Ka,SquareMIcon:Ka,SquareMenu:Ja,SquareMenuIcon:Ja,SquareMinus:Qa,SquareMinusIcon:Qa,SquareMousePointer:eo,SquareMousePointerIcon:eo,SquareParking:io,SquareParkingIcon:io,SquareParkingOff:to,SquareParkingOffIcon:to,SquarePen:ue,SquarePenIcon:ue,SquarePercent:ao,SquarePercentIcon:ao,SquarePi:oo,SquarePiIcon:oo,SquarePilcrow:no,SquarePilcrowIcon:no,SquarePlay:so,SquarePlayIcon:so,SquarePlus:ro,SquarePlusIcon:ro,SquarePower:lo,SquarePowerIcon:lo,SquareRadical:Pv,SquareRadicalIcon:Pv,SquareRoundCorner:qv,SquareRoundCornerIcon:qv,SquareScissors:ho,SquareScissorsIcon:ho,SquareSigma:co,SquareSigmaIcon:co,SquareSlash:po,SquareSlashIcon:po,SquareSplitHorizontal:uo,SquareSplitHorizontalIcon:uo,SquareSplitVertical:yo,SquareSplitVerticalIcon:yo,SquareSquare:Bv,SquareSquareIcon:Bv,SquareStack:Fv,SquareStackIcon:Fv,SquareTerminal:fo,SquareTerminalIcon:fo,SquareUser:go,SquareUserIcon:go,SquareUserRound:mo,SquareUserRoundIcon:mo,SquareX:ko,SquareXIcon:ko,SquaresExclude:Nv,SquaresExcludeIcon:Nv,SquaresIntersect:jv,SquaresIntersectIcon:jv,SquaresSubtract:_v,SquaresSubtractIcon:_v,SquaresUnite:Wv,SquaresUniteIcon:Wv,Squircle:Uv,SquircleIcon:Uv,Squirrel:$v,SquirrelIcon:$v,Stamp:Gv,StampIcon:Gv,Star:Xv,StarHalf:Yv,StarHalfIcon:Yv,StarIcon:Xv,StarOff:Zv,StarOffIcon:Zv,Stars:ba,StarsIcon:ba,StepBack:Kv,StepBackIcon:Kv,StepForward:Jv,StepForwardIcon:Jv,Stethoscope:Qv,StethoscopeIcon:Qv,Sticker:e6,StickerIcon:e6,StickyNote:t6,StickyNoteIcon:t6,StopCircle:oi,StopCircleIcon:oi,Store:i6,StoreIcon:i6,StretchHorizontal:a6,StretchHorizontalIcon:a6,StretchVertical:o6,StretchVerticalIcon:o6,Strikethrough:n6,StrikethroughIcon:n6,Subscript:s6,SubscriptIcon:s6,Subtitles:gt,SubtitlesIcon:gt,Sun:d6,SunDim:l6,SunDimIcon:l6,SunIcon:d6,SunMedium:r6,SunMediumIcon:r6,SunMoon:h6,SunMoonIcon:h6,SunSnow:c6,SunSnowIcon:c6,Sunrise:u6,SunriseIcon:u6,Sunset:p6,SunsetIcon:p6,Superscript:y6,SuperscriptIcon:y6,SwatchBook:f6,SwatchBookIcon:f6,SwissFranc:m6,SwissFrancIcon:m6,SwitchCamera:g6,SwitchCameraIcon:g6,Sword:k6,SwordIcon:k6,Swords:b6,SwordsIcon:b6,Syringe:w6,SyringeIcon:w6,Table:I6,Table2:v6,Table2Icon:v6,TableCellsMerge:M6,TableCellsMergeIcon:M6,TableCellsSplit:C6,TableCellsSplitIcon:C6,TableColumnsSplit:x6,TableColumnsSplitIcon:x6,TableConfig:Se,TableConfigIcon:Se,TableIcon:I6,TableOfContents:L6,TableOfContentsIcon:L6,TableProperties:E6,TablePropertiesIcon:E6,TableRowsSplit:S6,TableRowsSplitIcon:S6,Tablet:D6,TabletIcon:D6,TabletSmartphone:T6,TabletSmartphoneIcon:T6,Tablets:z6,TabletsIcon:z6,Tag:R6,TagIcon:R6,Tags:H6,TagsIcon:H6,Tally1:A6,Tally1Icon:A6,Tally2:V6,Tally2Icon:V6,Tally3:P6,Tally3Icon:P6,Tally4:q6,Tally4Icon:q6,Tally5:B6,Tally5Icon:B6,Tangent:F6,TangentIcon:F6,Target:O6,TargetIcon:O6,Telescope:j6,TelescopeIcon:j6,Tent:_6,TentIcon:_6,TentTree:N6,TentTreeIcon:N6,Terminal:W6,TerminalIcon:W6,TerminalSquare:fo,TerminalSquareIcon:fo,TestTube:U6,TestTube2:bo,TestTube2Icon:bo,TestTubeDiagonal:bo,TestTubeDiagonalIcon:bo,TestTubeIcon:U6,TestTubes:$6,TestTubesIcon:$6,Text:K6,TextCursor:Y6,TextCursorIcon:Y6,TextCursorInput:G6,TextCursorInputIcon:G6,TextIcon:K6,TextQuote:Z6,TextQuoteIcon:Z6,TextSearch:X6,TextSearchIcon:X6,TextSelect:wo,TextSelectIcon:wo,TextSelection:wo,TextSelectionIcon:wo,Theater:J6,TheaterIcon:J6,Thermometer:t8,ThermometerIcon:t8,ThermometerSnowflake:Q6,ThermometerSnowflakeIcon:Q6,ThermometerSun:e8,ThermometerSunIcon:e8,ThumbsDown:i8,ThumbsDownIcon:i8,ThumbsUp:a8,ThumbsUpIcon:a8,Ticket:c8,TicketCheck:o8,TicketCheckIcon:o8,TicketIcon:c8,TicketMinus:n8,TicketMinusIcon:n8,TicketPercent:s8,TicketPercentIcon:s8,TicketPlus:r8,TicketPlusIcon:r8,TicketSlash:l8,TicketSlashIcon:l8,TicketX:h8,TicketXIcon:h8,Tickets:p8,TicketsIcon:p8,TicketsPlane:d8,TicketsPlaneIcon:d8,Timer:f8,TimerIcon:f8,TimerOff:u8,TimerOffIcon:u8,TimerReset:y8,TimerResetIcon:y8,ToggleLeft:m8,ToggleLeftIcon:m8,ToggleRight:g8,ToggleRightIcon:g8,Toilet:k8,ToiletIcon:k8,Tornado:b8,TornadoIcon:b8,Torus:w8,TorusIcon:w8,Touchpad:M8,TouchpadIcon:M8,TouchpadOff:v8,TouchpadOffIcon:v8,TowerControl:C8,TowerControlIcon:C8,ToyBrick:x8,ToyBrickIcon:x8,Tractor:L8,TractorIcon:L8,TrafficCone:E8,TrafficConeIcon:E8,Train:vo,TrainFront:I8,TrainFrontIcon:I8,TrainFrontTunnel:S8,TrainFrontTunnelIcon:S8,TrainIcon:vo,TrainTrack:T8,TrainTrackIcon:T8,TramFront:vo,TramFrontIcon:vo,Transgender:D8,TransgenderIcon:D8,Trash:R8,Trash2:z8,Trash2Icon:z8,TrashIcon:R8,TreeDeciduous:H8,TreeDeciduousIcon:H8,TreePalm:Mo,TreePalmIcon:Mo,TreePine:A8,TreePineIcon:A8,Trees:V8,TreesIcon:V8,Trello:P8,TrelloIcon:P8,TrendingDown:q8,TrendingDownIcon:q8,TrendingUp:F8,TrendingUpDown:B8,TrendingUpDownIcon:B8,TrendingUpIcon:F8,Triangle:N8,TriangleAlert:Co,TriangleAlertIcon:Co,TriangleDashed:O8,TriangleDashedIcon:O8,TriangleIcon:N8,TriangleRight:j8,TriangleRightIcon:j8,Trophy:_8,TrophyIcon:_8,Truck:W8,TruckElectric:U8,TruckElectricIcon:U8,TruckIcon:W8,Turtle:$8,TurtleIcon:$8,Tv:Y8,Tv2:xo,Tv2Icon:xo,TvIcon:Y8,TvMinimal:xo,TvMinimalIcon:xo,TvMinimalPlay:G8,TvMinimalPlayIcon:G8,Twitch:Z8,TwitchIcon:Z8,Twitter:X8,TwitterIcon:X8,Type:J8,TypeIcon:J8,TypeOutline:K8,TypeOutlineIcon:K8,Umbrella:eM,UmbrellaIcon:eM,UmbrellaOff:Q8,UmbrellaOffIcon:Q8,Underline:tM,UnderlineIcon:tM,Undo:oM,Undo2:aM,Undo2Icon:aM,UndoDot:iM,UndoDotIcon:iM,UndoIcon:oM,UnfoldHorizontal:nM,UnfoldHorizontalIcon:nM,UnfoldVertical:sM,UnfoldVerticalIcon:sM,Ungroup:rM,UngroupIcon:rM,University:Lo,UniversityIcon:Lo,Unlink:hM,Unlink2:lM,Unlink2Icon:lM,UnlinkIcon:hM,Unlock:Gi,UnlockIcon:Gi,UnlockKeyhole:$i,UnlockKeyholeIcon:$i,Unplug:cM,UnplugIcon:cM,Upload:dM,UploadCloud:di,UploadCloudIcon:di,UploadIcon:dM,Usb:uM,UsbIcon:uM,User:CM,User2:zo,User2Icon:zo,UserCheck:pM,UserCheck2:Eo,UserCheck2Icon:Eo,UserCheckIcon:pM,UserCircle:si,UserCircle2:ni,UserCircle2Icon:ni,UserCircleIcon:si,UserCog:yM,UserCog2:So,UserCog2Icon:So,UserCogIcon:yM,UserIcon:CM,UserLock:fM,UserLockIcon:fM,UserMinus:mM,UserMinus2:Io,UserMinus2Icon:Io,UserMinusIcon:mM,UserPen:gM,UserPenIcon:gM,UserPlus:kM,UserPlus2:To,UserPlus2Icon:To,UserPlusIcon:kM,UserRound:zo,UserRoundCheck:Eo,UserRoundCheckIcon:Eo,UserRoundCog:So,UserRoundCogIcon:So,UserRoundIcon:zo,UserRoundMinus:Io,UserRoundMinusIcon:Io,UserRoundPen:bM,UserRoundPenIcon:bM,UserRoundPlus:To,UserRoundPlusIcon:To,UserRoundSearch:wM,UserRoundSearchIcon:wM,UserRoundX:Do,UserRoundXIcon:Do,UserSearch:vM,UserSearchIcon:vM,UserSquare:go,UserSquare2:mo,UserSquare2Icon:mo,UserSquareIcon:go,UserX:MM,UserX2:Do,UserX2Icon:Do,UserXIcon:MM,Users:xM,Users2:Ro,Users2Icon:Ro,UsersIcon:xM,UsersRound:Ro,UsersRoundIcon:Ro,Utensils:Ao,UtensilsCrossed:Ho,UtensilsCrossedIcon:Ho,UtensilsIcon:Ao,UtilityPole:LM,UtilityPoleIcon:LM,Variable:EM,VariableIcon:EM,Vault:SM,VaultIcon:SM,Vegan:IM,VeganIcon:IM,VenetianMask:TM,VenetianMaskIcon:TM,Venus:zM,VenusAndMars:DM,VenusAndMarsIcon:DM,VenusIcon:zM,Verified:ut,VerifiedIcon:ut,Vibrate:HM,VibrateIcon:HM,VibrateOff:RM,VibrateOffIcon:RM,Video:PM,VideoIcon:PM,VideoOff:AM,VideoOffIcon:AM,Videotape:VM,VideotapeIcon:VM,View:qM,ViewIcon:qM,Voicemail:BM,VoicemailIcon:BM,Volleyball:FM,VolleyballIcon:FM,Volume:_M,Volume1:OM,Volume1Icon:OM,Volume2:jM,Volume2Icon:jM,VolumeIcon:_M,VolumeOff:NM,VolumeOffIcon:NM,VolumeX:WM,VolumeXIcon:WM,Vote:UM,VoteIcon:UM,Wallet:GM,Wallet2:Vo,Wallet2Icon:Vo,WalletCards:$M,WalletCardsIcon:$M,WalletIcon:GM,WalletMinimal:Vo,WalletMinimalIcon:Vo,Wallpaper:YM,WallpaperIcon:YM,Wand:ZM,Wand2:Po,Wand2Icon:Po,WandIcon:ZM,WandSparkles:Po,WandSparklesIcon:Po,Warehouse:XM,WarehouseIcon:XM,WashingMachine:KM,WashingMachineIcon:KM,Watch:JM,WatchIcon:JM,Waves:e7,WavesIcon:e7,WavesLadder:QM,WavesLadderIcon:QM,Waypoints:t7,WaypointsIcon:t7,Webcam:i7,WebcamIcon:i7,Webhook:a7,WebhookIcon:a7,WebhookOff:o7,WebhookOffIcon:o7,Weight:n7,WeightIcon:n7,Wheat:s7,WheatIcon:s7,WheatOff:r7,WheatOffIcon:r7,WholeWord:h7,WholeWordIcon:h7,Wifi:p7,WifiHigh:l7,WifiHighIcon:l7,WifiIcon:p7,WifiLow:c7,WifiLowIcon:c7,WifiOff:d7,WifiOffIcon:d7,WifiPen:u7,WifiPenIcon:u7,WifiZero:y7,WifiZeroIcon:y7,Wind:m7,WindArrowDown:f7,WindArrowDownIcon:f7,WindIcon:m7,Wine:k7,WineIcon:k7,WineOff:g7,WineOffIcon:g7,Workflow:b7,WorkflowIcon:b7,Worm:w7,WormIcon:w7,WrapText:v7,WrapTextIcon:v7,Wrench:M7,WrenchIcon:M7,X:C7,XCircle:ri,XCircleIcon:ri,XIcon:C7,XOctagon:Ki,XOctagonIcon:Ki,XSquare:ko,XSquareIcon:ko,Youtube:x7,YoutubeIcon:x7,Zap:E7,ZapIcon:E7,ZapOff:L7,ZapOffIcon:L7,ZoomIn:S7,ZoomInIcon:S7,ZoomOut:I7,ZoomOutIcon:I7,createLucideIcon:s,icons:vT},Symbol.toStringTag,{value:"Module"})),cx=c.defineComponent({__name:"Icons",props:{name:{},size:{default:16},color:{default:"currentColor"},strokeWidth:{default:2},absoluteStrokeWidth:{type:Boolean,default:!1},classValue:{default:""}},setup(o){const e=o,t=c.computed(()=>MT[e.name]||null);return(i,a)=>t.value?(c.openBlock(),c.createBlock(c.resolveDynamicComponent(t.value),{key:0,size:parseInt(i.size.toString()),color:i.color,"stroke-width":i.strokeWidth,"absolute-stroke-width":i.absoluteStrokeWidth,class:c.normalizeClass(i.classValue)},null,8,["size","color","stroke-width","absolute-stroke-width","class"])):c.createCommentVNode("",!0)}}),CT={class:"tabulator-body"},xT={class:"flex justify-end mb-4"},LT=["id"],ET={class:"flex"},ST={class:"w-1/2"},IT={key:0,class:"flex"},TT=["disabled","value","id"],DT=["for"],zT={class:"w-1/2"},RT={class:"mb-4"},HT=["value"],AT=c.defineComponent({__name:"Tabulator",props:{data:{default:()=>[]},columns:{default:()=>[]},placeholder:{default:""},paginationSize:{default:25},paginationSizeSelector:{default:()=>[25,50,100,200]},action:{type:Boolean,default:!1},actionButtons:{default:()=>[]},heightOffset:{default:250},actionMode:{default:"frontend"}},setup(o,{emit:e}){const t=S=>{const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let R="";for(let O=0;O<S;O++)R+=T.charAt(Math.floor(Math.random()*T.length));return R},i=o,a=c.ref("table_"+t(5)),n=e,r=c.ref(!1),l=c.ref(""),h=c.ref(i.paginationSize),d=c.ref([]),u=c.ref([]);let p=null;const y={title:[{name:"Settings"}],action:[{title:"Cancel",emit:"onClose",class:"btn-outline"},{title:"Apply",emit:"onSave"}]},f=c.computed(()=>i.columns.filter(S=>S.title.toLowerCase().includes(l.value.toLowerCase()))),g=()=>({title:"Action",field:"action",width:99,hozAlign:"center",headerSort:!1,formatter:S=>{var T=[];if(i.actionMode=="api"?T=S.getData().actions:i.actionMode=="frontend"&&(T=i.actionButtons),T){const R=T.map(O=>`
8025
8025
  <div class="p-1 hover:bg-secondary cursor-pointer transition-all flex gap-1 font-medium ${O.class} ${O.name.replace(" ","_").toLowerCase()}_${S.getData().id}_${a.value}">
8026
8026
  ${O.name}
8027
8027
  </div>
@@ -8034,7 +8034,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
8034
8034
  ${R}
8035
8035
  </div>
8036
8036
  </div>
8037
- `}else return""},cellClick:m}),k=()=>{const S=document.getElementById(a.value);S&&(d.value=i.columns.map(T=>T.field),C(),p=new gT(S,{data:i.data,columns:u.value,placeholder:i.placeholder??"No records found!",pagination:!0,paginationSize:h.value,paginationSizeSelector:i.paginationSizeSelector,layout:"fitColumns",height:window.innerHeight-i.heightOffset}),p.on("rowClick",b))},b=(S,T)=>{const R=document.querySelector(".action-show");if(S.target.closest(`.action-btn-${a.value}`)||R==null||R.classList.remove("action-show"),i.action){S.preventDefault();const X=document.querySelector(".datarow-selected");X==null||X.classList.remove("datarow-selected"),T.getElement().classList.add("datarow-selected")}},m=(S,T)=>{const R=S.target,O=R.closest(`.action-btn-${a.value}`),X=R.closest(`.action-main-div-body-${a.value}`),P=document.querySelector(".tabulator-tableholder");if(P&&O&&X){const le=P.getBoundingClientRect(),be=X.querySelector(`.action-dropdown-${a.value}`);if(!be)return;const $=be.classList.contains("action-show");document.querySelectorAll(`.action-dropdown-${a.value}`).forEach(we=>we.classList.remove("action-show")),$||(document.addEventListener("click",v),M(be,le))}i.actionMode=="frontend"?i.actionButtons.forEach(le=>{R.classList.contains(le.name.replace(" ","_").toLowerCase()+"_"+T.getData().id+"_"+a.value)&&n&&(T.getRow().getData().id,n(le.emit,T.getData()))}):i.actionMode=="api"&&T.getData().actions.forEach(le=>{R.classList.contains(le.name.replace(" ","_").toLowerCase()+"_"+T.getData().id+"_"+a.value)&&n&&(T.getRow().getData().id,n(le.emit,T.getData()))})},M=(S,T)=>{const R=S;R.style.top="",R.style.left="",R.style.right="",R.classList.add("action-show"),R.style.right="40px",R.getBoundingClientRect().bottom>T.bottom-10&&(R.style.top="-63px")},v=S=>{const T=document.querySelector(".action-show"),R=document.getElementById(a.value),O=S.target.closest(".tabulator-row"),X=S.target.closest(`.action-main-div-body-${a.value}`);console.log(a.value),(!(R!=null&&R.contains(S.target))||!O&&!X)&&(T==null||T.classList.remove("action-show"),document.removeEventListener("click",v))},C=()=>{u.value=i.columns.filter(S=>d.value.includes(S.field)),i.action&&u.value.push(g())},I=()=>{C(),p==null||p.setColumns(u.value),p==null||p.setPageSize(h.value),r.value=!1},L=()=>{r.value=!r.value};return c.onMounted(()=>{h.value=i.paginationSize,k()}),c.onBeforeUnmount(()=>{document.removeEventListener("click",v)}),c.watch(()=>i.data,S=>{p==null||p.setData(S)},{deep:!0}),c.watch(()=>i.columns,()=>{C(),p==null||p.setColumns(u.value)},{deep:!0}),(S,T)=>(c.openBlock(),c.createElementBlock("div",CT,[c.createElementVNode("div",xT,[c.createElementVNode("button",{onClick:L,class:"btn-outline btn-secondary group","aria-label":"Open settings"},[c.createVNode(cx,{name:"Settings"})])]),c.createElementVNode("div",null,[c.createElementVNode("div",{ref:a.value,id:a.value,class:c.normalizeClass({"tabulator-action":S.action})},null,10,LT)]),c.createVNode(qC,{show:r.value,title:y.title,actions:y.action,width:"600px",onOnClose:T[3]||(T[3]=R=>r.value=!1),onOnSave:I},{default:c.withCtx(()=>[c.createElementVNode("div",ET,[c.createElementVNode("div",ST,[T[4]||(T[4]=c.createElementVNode("span",{class:"text-base font-semibold"},"Columns Attributes",-1)),c.createElementVNode("div",null,[c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":T[0]||(T[0]=R=>l.value=R),class:"input-text mb-4",placeholder:"Search for attributes","aria-label":"Search columns"},null,512),[[c.vModelText,l.value]]),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(f.value,R=>(c.openBlock(),c.createElementBlock("div",{key:R.field,class:"my-2"},[R.field!=="action"?(c.openBlock(),c.createElementBlock("div",IT,[c.withDirectives(c.createElementVNode("input",{type:"checkbox",disabled:!R.isNotMandatory,"onUpdate:modelValue":T[1]||(T[1]=O=>d.value=O),value:R.field,class:"mx-1.5",id:R.title,"aria-labelledby":"column-checkbox"},null,8,TT),[[c.vModelCheckbox,d.value]]),c.createElementVNode("label",{for:R.title,class:"select-none"},c.toDisplayString(R.title),9,DT)])):c.createCommentVNode("",!0)]))),128))])]),c.createElementVNode("div",zT,[T[5]||(T[5]=c.createElementVNode("span",{class:"text-base font-semibold"},"Page Size",-1)),c.createElementVNode("div",RT,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(S.paginationSizeSelector,R=>(c.openBlock(),c.createElementBlock("label",{key:R,class:"flex items-center mt-2"},[c.withDirectives(c.createElementVNode("input",{type:"radio","onUpdate:modelValue":T[2]||(T[2]=O=>h.value=O),value:R,class:"mr-2.5","aria-label":"Select page size"},null,8,HT),[[c.vModelRadio,h.value]]),c.createTextVNode(" "+c.toDisplayString(R),1)]))),128))])])])]),_:1},8,["show","title","actions"])]))}}),VT=["aria-checked"],PT={class:"text-[12px]"},F9=c.defineComponent({__name:"Toggle",props:{modelValue:{type:Boolean,default:!1},onText:{default:"On"},offText:{default:"Off"},width:{default:"60px"},disable:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(t.modelValue);c.watch(()=>t.modelValue,r=>{a.value=r});const n=()=>{t.disable||(a.value=!a.value,i("update:modelValue",a.value))};return(r,l)=>(c.openBlock(),c.createElementBlock("button",{onClick:n,class:c.normalizeClass(["relative select-none h-[30px] rounded-xs transition-colors duration-200 border border-border-foreground overflow-hidden",[r.disable?"cursor-not-allowed":"cursor-pointer"]]),style:c.normalizeStyle({width:r.width,maxWidth:r.width,minWidth:r.width}),role:"switch","aria-checked":a.value},[c.createElementVNode("div",{class:c.normalizeClass(["flex items-center justify-center w-1/2 h-full bg-gray-200 shadow-md transform transition-transform duration-200",a.value?"translate-x-full":"translate-x-0"])},[c.createElementVNode("span",PT,c.toDisplayString(a.value?r.onText:r.offText),1)],2)],14,VT))}}),qT={key:0,class:"fixed top-0 left-0 w-[100vw] h-[100vh] bg-background z-10 overflow-hidden"},BT={class:"flex z-10 w-[100vw] top-0 fixed justify-between px-4 py-3 bg-white border-b border-b-border max-h-[50px]"},FT={class:"h-fit my-auto font-bold text-lg relative flex text-[19px]"},OT={key:0},jT={key:3,width:"22px",height:"22px",class:"mt-[4px]",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},NT={key:0,class:"flex justify-end fixed bottom-0 left-0 w-[100vw] bg-white border-t border-t-border max-h-[50px] px-4 py-3"},_T={class:"right-0 flex gap-2"},WT=["onClick"],UT=((o,e)=>{const t=o.__vccOpts||o;for(const[i,a]of e)t[i]=a;return t})(c.defineComponent({__name:"Towser",props:{show:{type:Boolean,default:!1},title:{},actions:{},double:{type:Boolean,default:!1},bodyWidth:{default:50},body2Width:{default:50}},setup(o,{emit:e}){const t=o,i=e,a=c.computed(()=>t.actions?"150px":"100px"),n=c.computed(()=>t.double?`${t.bodyWidth}%`:"100%"),r=c.computed(()=>`
8037
+ `}else return""},cellClick:m}),k=()=>{const S=document.getElementById(a.value);S&&(d.value=i.columns.map(T=>T.field),C(),p=new gT(S,{data:i.data,columns:u.value,placeholder:i.placeholder??"No records found!",pagination:!0,paginationSize:h.value,paginationSizeSelector:i.paginationSizeSelector,layout:"fitColumns",height:window.innerHeight-i.heightOffset}),p.on("rowClick",b))},b=(S,T)=>{const R=document.querySelector(".action-show");if(S.target.closest(`.action-btn-${a.value}`)||R==null||R.classList.remove("action-show"),i.action){S.preventDefault();const X=document.querySelector(".datarow-selected");X==null||X.classList.remove("datarow-selected"),T.getElement().classList.add("datarow-selected")}},m=(S,T)=>{const R=S.target,O=R.closest(`.action-btn-${a.value}`),X=R.closest(`.action-main-div-body-${a.value}`),P=document.querySelector(".tabulator-tableholder");if(P&&O&&X){const le=P.getBoundingClientRect(),be=X.querySelector(`.action-dropdown-${a.value}`);if(!be)return;const G=be.classList.contains("action-show");document.querySelectorAll(`.action-dropdown-${a.value}`).forEach(we=>we.classList.remove("action-show")),G||(document.addEventListener("click",v),M(be,le))}i.actionMode=="frontend"?i.actionButtons.forEach(le=>{R.classList.contains(le.name.replace(" ","_").toLowerCase()+"_"+T.getData().id+"_"+a.value)&&n&&(T.getRow().getData().id,n(le.emit,T.getData()))}):i.actionMode=="api"&&T.getData().actions.forEach(le=>{R.classList.contains(le.name.replace(" ","_").toLowerCase()+"_"+T.getData().id+"_"+a.value)&&n&&(T.getRow().getData().id,n(le.emit,T.getData()))})},M=(S,T)=>{const R=S;R.style.top="",R.style.left="",R.style.right="",R.classList.add("action-show"),R.style.right="40px",R.getBoundingClientRect().bottom>T.bottom-10&&(R.style.top="-63px")},v=S=>{const T=document.querySelector(".action-show"),R=document.getElementById(a.value),O=S.target.closest(".tabulator-row"),X=S.target.closest(`.action-main-div-body-${a.value}`);console.log(a.value),(!(R!=null&&R.contains(S.target))||!O&&!X)&&(T==null||T.classList.remove("action-show"),document.removeEventListener("click",v))},C=()=>{u.value=i.columns.filter(S=>d.value.includes(S.field)),i.action&&u.value.push(g())},I=()=>{C(),p==null||p.setColumns(u.value),p==null||p.setPageSize(h.value),r.value=!1},L=()=>{r.value=!r.value};return c.onMounted(()=>{h.value=i.paginationSize,k()}),c.onBeforeUnmount(()=>{document.removeEventListener("click",v)}),c.watch(()=>i.data,S=>{p==null||p.setData(S)},{deep:!0}),c.watch(()=>i.columns,()=>{C(),p==null||p.setColumns(u.value)},{deep:!0}),(S,T)=>(c.openBlock(),c.createElementBlock("div",CT,[c.createElementVNode("div",xT,[c.createElementVNode("button",{onClick:L,class:"btn-outline btn-secondary group","aria-label":"Open settings"},[c.createVNode(cx,{name:"Settings"})])]),c.createElementVNode("div",null,[c.createElementVNode("div",{ref:a.value,id:a.value,class:c.normalizeClass({"tabulator-action":S.action})},null,10,LT)]),c.createVNode(qC,{show:r.value,title:y.title,actions:y.action,width:"600px",onOnClose:T[3]||(T[3]=R=>r.value=!1),onOnSave:I},{default:c.withCtx(()=>[c.createElementVNode("div",ET,[c.createElementVNode("div",ST,[T[4]||(T[4]=c.createElementVNode("span",{class:"text-base font-semibold"},"Columns Attributes",-1)),c.createElementVNode("div",null,[c.withDirectives(c.createElementVNode("input",{"onUpdate:modelValue":T[0]||(T[0]=R=>l.value=R),class:"input-text mb-4",placeholder:"Search for attributes","aria-label":"Search columns"},null,512),[[c.vModelText,l.value]]),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(f.value,R=>(c.openBlock(),c.createElementBlock("div",{key:R.field,class:"my-2"},[R.field!=="action"?(c.openBlock(),c.createElementBlock("div",IT,[c.withDirectives(c.createElementVNode("input",{type:"checkbox",disabled:!R.isNotMandatory,"onUpdate:modelValue":T[1]||(T[1]=O=>d.value=O),value:R.field,class:"mx-1.5",id:R.title,"aria-labelledby":"column-checkbox"},null,8,TT),[[c.vModelCheckbox,d.value]]),c.createElementVNode("label",{for:R.title,class:"select-none"},c.toDisplayString(R.title),9,DT)])):c.createCommentVNode("",!0)]))),128))])]),c.createElementVNode("div",zT,[T[5]||(T[5]=c.createElementVNode("span",{class:"text-base font-semibold"},"Page Size",-1)),c.createElementVNode("div",RT,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(S.paginationSizeSelector,R=>(c.openBlock(),c.createElementBlock("label",{key:R,class:"flex items-center mt-2"},[c.withDirectives(c.createElementVNode("input",{type:"radio","onUpdate:modelValue":T[2]||(T[2]=O=>h.value=O),value:R,class:"mr-2.5","aria-label":"Select page size"},null,8,HT),[[c.vModelRadio,h.value]]),c.createTextVNode(" "+c.toDisplayString(R),1)]))),128))])])])]),_:1},8,["show","title","actions"])]))}}),VT=["aria-checked"],PT={class:"text-[12px]"},F9=c.defineComponent({__name:"Toggle",props:{modelValue:{type:Boolean,default:!1},onText:{default:"On"},offText:{default:"Off"},width:{default:"60px"},disable:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(t.modelValue);c.watch(()=>t.modelValue,r=>{a.value=r});const n=()=>{t.disable||(a.value=!a.value,i("update:modelValue",a.value))};return(r,l)=>(c.openBlock(),c.createElementBlock("button",{onClick:n,class:c.normalizeClass(["relative select-none h-[30px] rounded-xs transition-colors duration-200 border border-border-foreground overflow-hidden",[r.disable?"cursor-not-allowed":"cursor-pointer"]]),style:c.normalizeStyle({width:r.width,maxWidth:r.width,minWidth:r.width}),role:"switch","aria-checked":a.value},[c.createElementVNode("div",{class:c.normalizeClass(["flex items-center justify-center w-1/2 h-full bg-gray-200 shadow-md transform transition-transform duration-200",a.value?"translate-x-full":"translate-x-0"])},[c.createElementVNode("span",PT,c.toDisplayString(a.value?r.onText:r.offText),1)],2)],14,VT))}}),qT={key:0,class:"fixed top-0 left-0 w-[100vw] h-[100vh] bg-background z-10 overflow-hidden"},BT={class:"flex z-10 w-[100vw] top-0 fixed justify-between px-4 py-3 bg-white border-b border-b-border max-h-[50px]"},FT={class:"h-fit my-auto font-bold text-lg relative flex text-[19px]"},OT={key:0},jT={key:3,width:"22px",height:"22px",class:"mt-[4px]",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},NT={key:0,class:"flex justify-end fixed bottom-0 left-0 w-[100vw] bg-white border-t border-t-border max-h-[50px] px-4 py-3"},_T={class:"right-0 flex gap-2"},WT=["onClick"],UT=((o,e)=>{const t=o.__vccOpts||o;for(const[i,a]of e)t[i]=a;return t})(c.defineComponent({__name:"Towser",props:{show:{type:Boolean,default:!1},title:{},actions:{},double:{type:Boolean,default:!1},bodyWidth:{default:50},body2Width:{default:50}},setup(o,{emit:e}){const t=o,i=e,a=c.computed(()=>t.actions?"150px":"100px"),n=c.computed(()=>t.double?`${t.bodyWidth}%`:"100%"),r=c.computed(()=>`
8038
8038
  min-height: calc(100vh - ${a.value});
8039
8039
  max-height: calc(100vh - ${a.value});
8040
8040
  width: ${n.value}
@@ -8042,10 +8042,10 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
8042
8042
  min-height: calc(100vh - ${a.value});
8043
8043
  max-height: calc(100vh - ${a.value});
8044
8044
  width: ${t.body2Width}%
8045
- `);return(h,d)=>{const u=c.resolveComponent("RouterLink");return c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[c.createVNode(c.Transition,{name:"towser"},{default:c.withCtx(()=>[h.show?(c.openBlock(),c.createElementBlock("div",qT,[c.createElementVNode("div",BT,[c.createElementVNode("div",FT,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(h.title,(p,y)=>(c.openBlock(),c.createElementBlock("span",{key:y,class:"flex"},[p.link?p.link!=="#"?(c.openBlock(),c.createBlock(u,{key:1,to:p.link,class:"hover:underline"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(p.name),1)]),_:2},1032,["to"])):(c.openBlock(),c.createElementBlock("a",{key:2,onClick:d[0]||(d[0]=f=>i("onClose")),class:"hover:underline cursor-pointer"},c.toDisplayString(p.name),1)):(c.openBlock(),c.createElementBlock("span",OT,c.toDisplayString(p.name),1)),h.title.length!==0&&y+1!==h.title.length?(c.openBlock(),c.createElementBlock("svg",jT,d[2]||(d[2]=[c.createElementVNode("path",{d:"M9 6L15 12L9 18",stroke:"gray",style:{"stroke-width":"2.5px"},"stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):c.createCommentVNode("",!0)]))),128))]),c.createElementVNode("button",{class:"absolute cursor-pointer text-[20px] right-4 top-[15px]",onClick:d[1]||(d[1]=p=>i("onClose"))},d[3]||(d[3]=[c.createElementVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16.00 16.00",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:"duration-200","stroke-width":"0.592"},[c.createElementVNode("g",{id:"SVGRepo_iconCarrier"},[c.createElementVNode("path",{d:"M0 14.545L1.455 16 8 9.455 14.545 16 16 14.545 9.455 8 16 1.455 14.545 0 8 6.545 1.455 0 0 1.455 6.545 8z","fill-rule":"evenodd"})])],-1)]))]),c.createElementVNode("div",null,[c.createElementVNode("div",{class:c.normalizeClass([h.double?"flex gap-[15px]":"","px-[15px]"])},[c.createElementVNode("div",{class:"my-[75px] bg-white p-4 overflow-y-auto overflow-x-hidden",style:c.normalizeStyle(r.value)},[c.renderSlot(h.$slots,"default",{},void 0,!0)],4),h.double?(c.openBlock(),c.createElementBlock("div",{key:0,class:"my-[75px] bg-white p-4 overflow-y-auto overflow-x-hidden",style:c.normalizeStyle(l.value)},[c.renderSlot(h.$slots,"body2",{},void 0,!0)],4)):c.createCommentVNode("",!0)],2)]),h.actions?(c.openBlock(),c.createElementBlock("div",NT,[c.createElementVNode("div",_T,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(h.actions,p=>(c.openBlock(),c.createElementBlock("button",{key:p.emit,class:c.normalizeClass(p.class||"btn"),onClick:y=>i(p.emit)},c.toDisplayString(p.title),11,WT))),128))])])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]),_:3})])}}}),[["__scopeId","data-v-93cc0e1e"]]);function dx(o){return o instanceof Date||Object.prototype.toString.call(o)==="[object Date]"}function T7(o){return dx(o)?new Date(o.getTime()):o==null?new Date(NaN):new Date(o)}function GT(o){return dx(o)&&!isNaN(o.getTime())}function ux(o){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 t=T7(o),i=t.getDay(),a=(i+7-e)%7;return t.setDate(t.getDate()-a),t.setHours(0,0,0,0),t}function px(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.firstDayOfWeek,i=t===void 0?0:t,a=e.firstWeekContainsDate,n=a===void 0?1:a;if(!(n>=1&&n<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var r=T7(o),l=r.getFullYear(),h=new Date(0),d=l+1;d>=l-1&&(h.setFullYear(d,0,n),h.setHours(0,0,0,0),h=ux(h,i),!(r.getTime()>=h.getTime()));d--);return h}function O9(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.firstDayOfWeek,i=t===void 0?0:t,a=e.firstWeekContainsDate,n=a===void 0?1:a,r=T7(o),l=ux(r,i),h=px(r,{firstDayOfWeek:i,firstWeekContainsDate:n}),d=l.getTime()-h.getTime();return Math.round(d/(7*24*3600*1e3))+1}var j9={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},$T=/\[([^\]]+)]|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 pe(o){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,t="".concat(Math.abs(o)),i=o<0?"-":"";t.length<e;)t="0".concat(t);return i+t}function yx(o){return Math.round(o.getTimezoneOffset()/15)*15}function fx(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=o>0?"-":"+",i=Math.abs(o),a=Math.floor(i/60),n=i%60;return t+pe(a,2)+e+pe(n,2)}var mx=function(e,t,i){var a=e<12?"AM":"PM";return i?a.toLocaleLowerCase():a},yn={Y:function(e){var t=e.getFullYear();return t<=9999?"".concat(t):"+".concat(t)},YY:function(e){return pe(e.getFullYear(),4).substr(2)},YYYY:function(e){return pe(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return pe(e.getMonth()+1,2)},MMM:function(e,t){return t.monthsShort[e.getMonth()]},MMMM:function(e,t){return t.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return pe(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return pe(e.getHours(),2)},h:function(e){var t=e.getHours();return t===0?12:t>12?t%12:t},hh:function(){var e=yn.h.apply(yn,arguments);return pe(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return pe(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return pe(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return pe(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return pe(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,t){return t.weekdaysMin[e.getDay()]},ddd:function(e,t){return t.weekdaysShort[e.getDay()]},dddd:function(e,t){return t.weekdays[e.getDay()]},A:function(e,t){var i=t.meridiem||mx;return i(e.getHours(),e.getMinutes(),!1)},a:function(e,t){var i=t.meridiem||mx;return i(e.getHours(),e.getMinutes(),!0)},Z:function(e){return fx(yx(e),":")},ZZ:function(e){return fx(yx(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,t){return O9(e,{firstDayOfWeek:t.firstDayOfWeek,firstWeekContainsDate:t.firstWeekContainsDate})},ww:function(e,t){return pe(yn.w(e,t),2)}};function N9(o,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=e?String(e):"YYYY-MM-DDTHH:mm:ss.SSSZ",a=T7(o);if(!GT(a))return"Invalid Date";var n=t.locale||j9;return i.replace($T,function(r,l){return l||(typeof yn[r]=="function"?"".concat(yn[r](a,n)):r)})}function gx(o){return XT(o)||ZT(o)||YT()}function YT(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function ZT(o){if(Symbol.iterator in Object(o)||Object.prototype.toString.call(o)==="[object Arguments]")return Array.from(o)}function XT(o){if(Array.isArray(o)){for(var e=0,t=new Array(o.length);e<o.length;e++)t[e]=o[e];return t}}function kx(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),t.push.apply(t,i)}return t}function KT(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?kx(t,!0).forEach(function(i){Ne(o,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):kx(t).forEach(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(t,i))})}return o}function JT(o,e){return tD(o)||eD(o,e)||QT()}function QT(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function eD(o,e){if(Symbol.iterator in Object(o)||Object.prototype.toString.call(o)==="[object Arguments]"){var t=[],i=!0,a=!1,n=void 0;try{for(var r=o[Symbol.iterator](),l;!(i=(l=r.next()).done)&&(t.push(l.value),!(e&&t.length===e));i=!0);}catch(h){a=!0,n=h}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw n}}return t}}function tD(o){if(Array.isArray(o))return o}function Ne(o,e,t){return e in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}var iD=/(\[[^\[]*\])|(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,bx=/\d/,_e=/\d\d/,aD=/\d{3}/,oD=/\d{4}/,Zo=/\d\d?/,nD=/[+-]\d\d:?\d\d/,wx=/[+-]?\d+/,sD=/[+-]?\d+(\.\d{1,3})?/,_9="year",D7="month",vx="day",Mx="hour",Cx="minute",xx="second",W9="millisecond",Lx={},W=function(e,t,i){var a=Array.isArray(e)?e:[e],n;typeof i=="string"?n=function(l){var h=parseInt(l,10);return Ne({},i,h)}:n=i,a.forEach(function(r){Lx[r]=[t,n]})},rD=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},fn=function(e){return function(t){var i=t[e];if(!Array.isArray(i))throw new Error("Locale[".concat(e,"] need an array"));return new RegExp(i.map(rD).join("|"))}},mn=function(e,t){return function(i,a){var n=a[e];if(!Array.isArray(n))throw new Error("Locale[".concat(e,"] need an array"));var r=n.indexOf(i);if(r<0)throw new Error("Invalid Word");return Ne({},t,r)}};W("Y",wx,_9),W("YY",_e,function(o){var e=new Date().getFullYear(),t=Math.floor(e/100),i=parseInt(o,10);return i=(i>68?t-1:t)*100+i,Ne({},_9,i)}),W("YYYY",oD,_9),W("M",Zo,function(o){return Ne({},D7,parseInt(o,10)-1)}),W("MM",_e,function(o){return Ne({},D7,parseInt(o,10)-1)}),W("MMM",fn("monthsShort"),mn("monthsShort",D7)),W("MMMM",fn("months"),mn("months",D7)),W("D",Zo,vx),W("DD",_e,vx),W(["H","h"],Zo,Mx),W(["HH","hh"],_e,Mx),W("m",Zo,Cx),W("mm",_e,Cx),W("s",Zo,xx),W("ss",_e,xx),W("S",bx,function(o){return Ne({},W9,parseInt(o,10)*100)}),W("SS",_e,function(o){return Ne({},W9,parseInt(o,10)*10)}),W("SSS",aD,W9);function lD(o){return o.meridiemParse||/[ap]\.?m?\.?/i}function hD(o){return"".concat(o).toLowerCase().charAt(0)==="p"}W(["A","a"],lD,function(o,e){var t=typeof e.isPM=="function"?e.isPM(o):hD(o);return{isPM:t}});function cD(o){var e=o.match(/([+-]|\d\d)/g)||["-","0","0"],t=JT(e,3),i=t[0],a=t[1],n=t[2],r=parseInt(a,10)*60+parseInt(n,10);return r===0?0:i==="+"?-r:+r}W(["Z","ZZ"],nD,function(o){return{offset:cD(o)}}),W("x",wx,function(o){return{date:new Date(parseInt(o,10))}}),W("X",sD,function(o){return{date:new Date(parseFloat(o)*1e3)}}),W("d",bx,"weekday"),W("dd",fn("weekdaysMin"),mn("weekdaysMin","weekday")),W("ddd",fn("weekdaysShort"),mn("weekdaysShort","weekday")),W("dddd",fn("weekdays"),mn("weekdays","weekday")),W("w",Zo,"week"),W("ww",_e,"week");function dD(o,e){if(o!==void 0&&e!==void 0){if(e){if(o<12)return o+12}else if(o===12)return 0}return o}function uD(o){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,t=[0,0,1,0,0,0,0],i=[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()],a=!0,n=0;n<7;n++)o[n]===void 0?t[n]=a?i[n]:t[n]:(t[n]=o[n],a=!1);return t}function pD(o,e,t,i,a,n,r){var l;return o<100&&o>=0?(l=new Date(o+400,e,t,i,a,n,r),isFinite(l.getFullYear())&&l.setFullYear(o)):l=new Date(o,e,t,i,a,n,r),l}function yD(){for(var o,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var a=t[0];return a<100&&a>=0?(t[0]+=400,o=new Date(Date.UTC.apply(Date,t)),isFinite(o.getUTCFullYear())&&o.setUTCFullYear(a)):o=new Date(Date.UTC.apply(Date,t)),o}function fD(o,e,t){var i=e.match(iD);if(!i)throw new Error;for(var a=i.length,n={},r=0;r<a;r+=1){var l=i[r],h=Lx[l];if(h){var u=typeof h[0]=="function"?h[0](t):h[0],p=h[1],y=(u.exec(o)||[])[0],f=p(y,t);n=KT({},n,{},f),o=o.replace(y,"")}else{var d=l.replace(/^\[|\]$/g,"");if(o.indexOf(d)===0)o=o.substr(d.length);else throw new Error("not match")}}return n}function mD(o,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{var i=t.locale,a=i===void 0?j9:i,n=t.backupDate,r=n===void 0?new Date:n,l=fD(o,e,a),h=l.year,d=l.month,u=l.day,p=l.hour,y=l.minute,f=l.second,g=l.millisecond,k=l.isPM,b=l.date,m=l.offset,M=l.weekday,v=l.week;if(b)return b;var C=[h,d,u,p,y,f,g];if(C[3]=dD(C[3],k),v!==void 0&&d===void 0&&u===void 0){var I=px(h===void 0?r:new Date(h,3),{firstDayOfWeek:a.firstDayOfWeek,firstWeekContainsDate:a.firstWeekContainsDate});return new Date(I.getTime()+(v-1)*7*24*3600*1e3)}var L,S=uD(C,r);return m!==void 0?(S[6]+=m*60*1e3,L=yD.apply(void 0,gx(S))):L=pD.apply(void 0,gx(S)),M!==void 0&&L.getDay()!==M?new Date(NaN):L}catch{return new Date(NaN)}}var gD=Object.defineProperty,kD=Object.defineProperties,bD=Object.getOwnPropertyDescriptors,z7=Object.getOwnPropertySymbols,Ex=Object.prototype.hasOwnProperty,Sx=Object.prototype.propertyIsEnumerable,Ix=(o,e,t)=>e in o?gD(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Q=(o,e)=>{for(var t in e||(e={}))Ex.call(e,t)&&Ix(o,t,e[t]);if(z7)for(var t of z7(e))Sx.call(e,t)&&Ix(o,t,e[t]);return o},ve=(o,e)=>kD(o,bD(e)),wD=(o,e)=>{var t={};for(var i in o)Ex.call(o,i)&&e.indexOf(i)<0&&(t[i]=o[i]);if(o!=null&&z7)for(var i of z7(o))e.indexOf(i)<0&&Sx.call(o,i)&&(t[i]=o[i]);return t};const vD={formatLocale:j9,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};let gn="en";const Xo={};Xo[gn]=vD;function Tx(o,e,t=!1){if(typeof o!="string")return Xo[gn];let i=gn;return Xo[o]&&(i=o),e&&(Xo[o]=e,i=o),t||(gn=i),Xo[o]||Xo[gn]}function U9(o){return Tx(o,void 0,!0)}function G9(o,e){if(!Array.isArray(o))return[];const t=[],i=o.length;let a=0;for(e=e||i;a<i;)t.push(o.slice(a,a+=e));return t}function Dx(o){return Array.isArray(o)?o[o.length-1]:void 0}function We(o){return Object.prototype.toString.call(o)==="[object Object]"}function He(o,e){const t={};return We(o)&&(Array.isArray(e)||(e=[e]),e.forEach(i=>{Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])})),t}function zx(o,e){if(!We(o))return{};let t=o;return We(e)&&Object.keys(e).forEach(i=>{let a=e[i];const n=o[i];We(a)&&We(n)&&(a=zx(n,a)),t=ve(Q({},t),{[i]:a})}),t}function $9(o){const e=parseInt(String(o),10);return e<10?`0${e}`:`${e}`}function MD(o){const e=/-(\w)/g;return o.replace(e,(t,i)=>i?i.toUpperCase():"")}const Rx="datepicker_locale",Hx="datepicker_prefixClass",Ax="datepicker_getWeek";function Y9(){return c.inject(Rx,c.shallowRef(U9()))}function CD(o){const e=c.computed(()=>We(o.value)?zx(U9(),o.value):U9(o.value));return c.provide(Rx,e),e}function xD(o){c.provide(Hx,o)}function ne(){return c.inject(Hx,"mx")}function LD(o){c.provide(Ax,o)}function ED(){return c.inject(Ax,O9)}function SD(o){const e=o.style.display,t=o.style.visibility;o.style.display="block",o.style.visibility="hidden";const i=window.getComputedStyle(o),a=o.offsetWidth+parseInt(i.marginLeft,10)+parseInt(i.marginRight,10),n=o.offsetHeight+parseInt(i.marginTop,10)+parseInt(i.marginBottom,10);return o.style.display=e,o.style.visibility=t,{width:a,height:n}}function ID(o,e,t,i){let a=0,n=0,r=0,l=0;const h=o.getBoundingClientRect(),d=document.documentElement.clientWidth,u=document.documentElement.clientHeight;return i&&(r=window.pageXOffset+h.left,l=window.pageYOffset+h.top),d-h.left<e&&h.right<e?a=r-h.left+1:h.left+h.width/2<=d/2?a=r:a=r+h.width-e,h.top<=t&&u-h.bottom<=t?n=l+u-h.top-t:h.top+h.height/2<=u/2?n=l+h.height:n=l-t,{left:`${a}px`,top:`${n}px`}}function Z9(o,e=document.body){if(!o||o===e)return null;const t=(n,r)=>getComputedStyle(n,null).getPropertyValue(r);return/(auto|scroll)/.test(t(o,"overflow")+t(o,"overflow-y")+t(o,"overflow-x"))?o:Z9(o.parentElement,e)}let R7;function TD(){if(typeof window>"u")return 0;if(R7!==void 0)return R7;const o=document.createElement("div");o.style.visibility="hidden",o.style.overflow="scroll",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const e=document.createElement("div");return e.style.width="100%",o.appendChild(e),R7=o.offsetWidth-e.offsetWidth,o.parentNode.removeChild(o),R7}const Vx="ontouchend"in document?"touchstart":"mousedown";function DD(o){let e=!1;return function(...i){e||(e=!0,requestAnimationFrame(()=>{e=!1,o.apply(this,i)}))}}function Ae(o,e){return{setup:o,name:o.name,props:e}}function Ve(o,e){return new Proxy(o,{get(i,a){const n=i[a];return n!==void 0?n:e[a]}})}const Ue=()=>o=>o,zD=(o,e)=>{const t={};for(const i in o)if(Object.prototype.hasOwnProperty.call(o,i)){const a=MD(i);let n=o[i];e.indexOf(a)!==-1&&n===""&&(n=!0),t[a]=n}return t};function RD(o,{slots:e}){const t=Ve(o,{appendToBody:!0}),i=ne(),a=c.ref(null),n=c.ref({left:"",top:""}),r=()=>{if(!t.visible||!a.value)return;const h=t.getRelativeElement();if(!h)return;const{width:d,height:u}=SD(a.value);n.value=ID(h,d,u,t.appendToBody)};c.watchEffect(r,{flush:"post"}),c.watchEffect(h=>{const d=t.getRelativeElement();if(!d)return;const u=Z9(d)||window,p=DD(r);u.addEventListener("scroll",p),window.addEventListener("resize",p),h(()=>{u.removeEventListener("scroll",p),window.removeEventListener("resize",p)})},{flush:"post"});const l=h=>{if(!t.visible)return;const d=h.target,u=a.value,p=t.getRelativeElement();u&&!u.contains(d)&&p&&!p.contains(d)&&t.onClickOutside(h)};return c.watchEffect(h=>{document.addEventListener(Vx,l),h(()=>{document.removeEventListener(Vx,l)})}),()=>c.createVNode(c.Teleport,{to:"body",disabled:!t.appendToBody},{default:()=>[c.createVNode(c.Transition,{name:`${i}-zoom-in-down`},{default:()=>{var h;return[t.visible&&c.createVNode("div",{ref:a,class:`${i}-datepicker-main ${i}-datepicker-popup ${t.className}`,style:[Q({position:"absolute"},n.value),t.style||{}]},[(h=e.default)==null?void 0:h.call(e)])]}})]})}const HD=Ue()(["style","className","visible","appendToBody","onClickOutside","getRelativeElement"]);var AD=Ae(RD,HD);const VD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},PD=[c.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 Px(o,e){return c.openBlock(),c.createElementBlock("svg",VD,PD)}const qD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},BD=[c.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 FD(o,e){return c.openBlock(),c.createElementBlock("svg",qD,BD)}const OD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},jD=[c.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),c.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),c.createElementVNode("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},null,-1)];function ND(o,e){return c.openBlock(),c.createElementBlock("svg",OD,jD)}function qo(o,e=0,t=1,i=0,a=0,n=0,r=0){const l=new Date(o,e,t,i,a,n,r);return o<100&&o>=0&&l.setFullYear(o),l}function Pe(o){return o instanceof Date&&!isNaN(o.getTime())}function Bo(o){return Array.isArray(o)&&o.length===2&&o.every(Pe)&&o[0]<=o[1]}function _D(o){return Array.isArray(o)&&o.every(Pe)}function H7(...o){if(o[0]!==void 0&&o[0]!==null){const t=new Date(o[0]);if(Pe(t))return t}const e=o.slice(1);return e.length?H7(...e):new Date}function WD(o){const e=new Date(o);return e.setMonth(0,1),e.setHours(0,0,0,0),e}function qx(o){const e=new Date(o);return e.setDate(1),e.setHours(0,0,0,0),e}function Ge(o){const e=new Date(o);return e.setHours(0,0,0,0),e}function UD({firstDayOfWeek:o,year:e,month:t}){const i=[],a=qo(e,t,0),n=a.getDate(),r=n-(a.getDay()+7-o)%7;for(let u=r;u<=n;u++)i.push(qo(e,t,u-n));a.setMonth(t+1,0);const l=a.getDate();for(let u=1;u<=l;u++)i.push(qo(e,t,u));const h=n-r+1,d=6*7-h-l;for(let u=1;u<=d;u++)i.push(qo(e,t,l+u));return i}function A7(o,e){const t=new Date(o),i=typeof e=="function"?e(t.getMonth()):Number(e),a=t.getFullYear(),n=qo(a,i+1,0).getDate(),r=t.getDate();return t.setMonth(i,Math.min(r,n)),t}function Ko(o,e){const t=new Date(o),i=typeof e=="function"?e(t.getFullYear()):e;return t.setFullYear(i),t}function GD(o,e){const t=new Date(e),i=new Date(o),a=t.getFullYear()-i.getFullYear(),n=t.getMonth()-i.getMonth();return a*12+n}function V7(o,e){const t=new Date(o),i=new Date(e);return t.setHours(i.getHours(),i.getMinutes(),i.getSeconds()),t}function $D(o,{slots:e}){const t=Ve(o,{editable:!0,disabled:!1,clearable:!0,range:!1,multiple:!1}),i=ne(),a=c.ref(null),n=c.computed(()=>t.separator||(t.range?" ~ ":",")),r=f=>t.range?Bo(f):t.multiple?_D(f):Pe(f),l=f=>Array.isArray(f)?f.some(g=>t.disabledDate(g)):t.disabledDate(f),h=c.computed(()=>a.value!==null?a.value:typeof t.renderInputText=="function"?t.renderInputText(t.value):r(t.value)?Array.isArray(t.value)?t.value.map(f=>t.formatDate(f)).join(n.value):t.formatDate(t.value):""),d=f=>{var g;f&&f.stopPropagation(),t.onChange(t.range?[null,null]:null),(g=t.onClear)==null||g.call(t)},u=()=>{var f;if(!t.editable||a.value===null)return;const g=a.value.trim();if(a.value=null,g===""){d();return}let k;if(t.range){let b=g.split(n.value);b.length!==2&&(b=g.split(n.value.trim())),k=b.map(m=>t.parseDate(m.trim()))}else t.multiple?k=g.split(n.value).map(b=>t.parseDate(b.trim())):k=t.parseDate(g);r(k)&&!l(k)?t.onChange(k):(f=t.onInputError)==null||f.call(t,g)},p=f=>{a.value=typeof f=="string"?f:f.target.value},y=f=>{const{keyCode:g}=f;g===9?t.onBlur():g===13&&u()};return()=>{var f,g,k;const b=!t.disabled&&t.clearable&&h.value,m=ve(Q({name:"date",type:"text",autocomplete:"off",value:h.value,class:t.inputClass||`${i}-input`,readonly:!t.editable,disabled:t.disabled,placeholder:t.placeholder},t.inputAttr),{onFocus:t.onFocus,onKeydown:y,onInput:p,onChange:u});return c.createVNode("div",{class:`${i}-input-wrapper`,onClick:t.onClick},[((f=e.input)==null?void 0:f.call(e,m))||c.createVNode("input",m,null),b?c.createVNode("i",{class:`${i}-icon-clear`,onClick:d},[((g=e["icon-clear"])==null?void 0:g.call(e))||c.createVNode(FD,null,null)]):null,c.createVNode("i",{class:`${i}-icon-calendar`},[((k=e["icon-calendar"])==null?void 0:k.call(e))||c.createVNode(Px,null,null)])])}}const X9=Ue()(["placeholder","editable","disabled","clearable","inputClass","inputAttr","range","multiple","separator","renderInputText","onInputError","onClear"]),YD=Ue()(["value","formatDate","parseDate","disabledDate","onChange","onFocus","onBlur","onClick",...X9]);var ZD=Ae($D,YD);function XD(o,{slots:e}){var t;const i=Ve(o,{prefixClass:"mx",valueType:"date",format:"YYYY-MM-DD",type:"date",disabledDate:()=>!1,disabledTime:()=>!1,confirmText:"OK"});xD(i.prefixClass),LD(((t=i.formatter)==null?void 0:t.getWeek)||O9);const a=CD(c.toRef(o,"lang")),n=c.ref(),r=()=>n.value,l=c.ref(!1),h=c.computed(()=>!i.disabled&&(typeof i.open=="boolean"?i.open:l.value)),d=()=>{var L,S;i.disabled||h.value||(l.value=!0,(L=i["onUpdate:open"])==null||L.call(i,!0),(S=i.onOpen)==null||S.call(i))},u=()=>{var L,S;h.value&&(l.value=!1,(L=i["onUpdate:open"])==null||L.call(i,!1),(S=i.onClose)==null||S.call(i))},p=(L,S)=>(S=S||i.format,We(i.formatter)&&typeof i.formatter.stringify=="function"?i.formatter.stringify(L,S):N9(L,S,{locale:a.value.formatLocale})),y=(L,S)=>{if(S=S||i.format,We(i.formatter)&&typeof i.formatter.parse=="function")return i.formatter.parse(L,S);const T=new Date;return mD(L,S,{locale:a.value.formatLocale,backupDate:T})},f=L=>{switch(i.valueType){case"date":return L instanceof Date?new Date(L.getTime()):new Date(NaN);case"timestamp":return typeof L=="number"?new Date(L):new Date(NaN);case"format":return typeof L=="string"?y(L):new Date(NaN);default:return typeof L=="string"?y(L,i.valueType):new Date(NaN)}},g=L=>{if(!Pe(L))return null;switch(i.valueType){case"date":return L;case"timestamp":return L.getTime();case"format":return p(L);default:return p(L,i.valueType)}},k=c.computed(()=>{const L=i.value;return i.range?(Array.isArray(L)?L.slice(0,2):[null,null]).map(f):i.multiple?(Array.isArray(L)?L:[]).map(f):f(L)}),b=(L,S,T=!0)=>{var R,O;const X=Array.isArray(L)?L.map(g):g(L);return(R=i["onUpdate:value"])==null||R.call(i,X),(O=i.onChange)==null||O.call(i,X,S),T&&u(),X},m=c.ref(new Date);c.watchEffect(()=>{h.value&&(m.value=k.value)});const M=(L,S)=>{i.confirm?m.value=L:b(L,S,!i.multiple&&(S===i.type||S==="time"))},v=()=>{var L;const S=b(m.value);(L=i.onConfirm)==null||L.call(i,S)},C=L=>i.disabledDate(L)||i.disabledTime(L),I=L=>{var S;const{prefixClass:T}=i;return c.createVNode("div",{class:`${T}-datepicker-sidebar`},[(S=e.sidebar)==null?void 0:S.call(e,L),(i.shortcuts||[]).map((R,O)=>c.createVNode("button",{key:O,"data-index":O,type:"button",class:`${T}-btn ${T}-btn-text ${T}-btn-shortcut`,onClick:()=>{var X;const P=(X=R.onClick)==null?void 0:X.call(R);P&&b(P)}},[R.text]))])};return()=>{var L,S;const{prefixClass:T,disabled:R,confirm:O,range:X,popupClass:P,popupStyle:le,appendToBody:be}=i,$={value:m.value,"onUpdate:value":M,emit:b},we=e.header&&c.createVNode("div",{class:`${T}-datepicker-header`},[e.header($)]),je=(e.footer||O)&&c.createVNode("div",{class:`${T}-datepicker-footer`},[(L=e.footer)==null?void 0:L.call(e,$),O&&c.createVNode("button",{type:"button",class:`${T}-btn ${T}-datepicker-btn-confirm`,onClick:v},[i.confirmText])]),Ee=(S=e.content)==null?void 0:S.call(e,$),Tn=(e.sidebar||i.shortcuts)&&I($);return c.createVNode("div",{ref:n,class:{[`${T}-datepicker`]:!0,[`${T}-datepicker-range`]:X,disabled:R}},[c.createVNode(ZD,ve(Q({},He(i,X9)),{value:k.value,formatDate:p,parseDate:y,disabledDate:C,onChange:b,onClick:d,onFocus:d,onBlur:u}),He(e,["icon-calendar","icon-clear","input"])),c.createVNode(AD,{className:P,style:le,visible:h.value,appendToBody:be,getRelativeElement:r,onClickOutside:u},{default:()=>[Tn,c.createVNode("div",{class:`${T}-datepicker-content`},[we,Ee,je])]})])}}const KD=[...Ue()(["value","valueType","type","format","formatter","lang","prefixClass","appendToBody","open","popupClass","popupStyle","confirm","confirmText","shortcuts","disabledDate","disabledTime","onOpen","onClose","onConfirm","onChange","onUpdate:open","onUpdate:value"]),...X9];var Bx=Ae(XD,KD);function P7(o){var e=o,{value:t}=e,i=wD(e,["value"]);const a=ne();return c.createVNode("button",ve(Q({},i),{type:"button",class:`${a}-btn ${a}-btn-text ${a}-btn-icon-${t}`}),[c.createVNode("i",{class:`${a}-icon-${t}`},null)])}function K9({type:o,calendar:e,onUpdateCalendar:t},{slots:i}){var a;const n=ne(),r=()=>{t(A7(e,y=>y-1))},l=()=>{t(A7(e,y=>y+1))},h=()=>{t(Ko(e,y=>y-1))},d=()=>{t(Ko(e,y=>y+1))},u=()=>{t(Ko(e,y=>y-10))},p=()=>{t(Ko(e,y=>y+10))};return c.createVNode("div",{class:`${n}-calendar-header`},[c.createVNode(P7,{value:"double-left",onClick:o==="year"?u:h},null),o==="date"&&c.createVNode(P7,{value:"left",onClick:r},null),c.createVNode(P7,{value:"double-right",onClick:o==="year"?p:d},null),o==="date"&&c.createVNode(P7,{value:"right",onClick:l},null),c.createVNode("span",{class:`${n}-calendar-header-label`},[(a=i.default)==null?void 0:a.call(i)])])}function JD({calendar:o,isWeekMode:e,showWeekNumber:t,titleFormat:i,getWeekActive:a,getCellClasses:n,onSelect:r,onUpdatePanel:l,onUpdateCalendar:h,onDateMouseEnter:d,onDateMouseLeave:u}){const p=ne(),y=ED(),f=Y9().value,{yearFormat:g,monthBeforeYear:k,monthFormat:b="MMM",formatLocale:m}=f,M=m.firstDayOfWeek||0;let v=f.days||m.weekdaysMin;v=v.concat(v).slice(M,M+7);const C=o.getFullYear(),I=o.getMonth(),L=G9(UD({firstDayOfWeek:M,year:C,month:I}),7),S=($,we)=>N9($,we,{locale:f.formatLocale}),T=$=>{l($)},R=$=>{const we=$.getAttribute("data-index"),[je,Ee]=we.split(",").map(Dn=>parseInt(Dn,10)),Tn=L[je][Ee];return new Date(Tn)},O=$=>{r(R($.currentTarget))},X=$=>{d&&d(R($.currentTarget))},P=$=>{u&&u(R($.currentTarget))},le=c.createVNode("button",{type:"button",class:`${p}-btn ${p}-btn-text ${p}-btn-current-year`,onClick:()=>T("year")},[S(o,g)]),be=c.createVNode("button",{type:"button",class:`${p}-btn ${p}-btn-text ${p}-btn-current-month`,onClick:()=>T("month")},[S(o,b)]);return t=typeof t=="boolean"?t:e,c.createVNode("div",{class:[`${p}-calendar ${p}-calendar-panel-date`,{[`${p}-calendar-week-mode`]:e}]},[c.createVNode(K9,{type:"date",calendar:o,onUpdateCalendar:h},{default:()=>[k?[be,le]:[le,be]]}),c.createVNode("div",{class:`${p}-calendar-content`},[c.createVNode("table",{class:`${p}-table ${p}-table-date`},[c.createVNode("thead",null,[c.createVNode("tr",null,[t&&c.createVNode("th",{class:`${p}-week-number-header`},null),v.map($=>c.createVNode("th",{key:$},[$]))])]),c.createVNode("tbody",null,[L.map(($,we)=>c.createVNode("tr",{key:we,class:[`${p}-date-row`,{[`${p}-active-week`]:a($)}]},[t&&c.createVNode("td",{class:`${p}-week-number`,"data-index":`${we},0`,onClick:O},[c.createVNode("div",null,[y($[0])])]),$.map((je,Ee)=>c.createVNode("td",{key:Ee,class:["cell",n(je)],title:S(je,i),"data-index":`${we},${Ee}`,onClick:O,onMouseenter:X,onMouseleave:P},[c.createVNode("div",null,[je.getDate()])]))]))])])])])}function QD({calendar:o,getCellClasses:e,onSelect:t,onUpdateCalendar:i,onUpdatePanel:a}){const n=ne(),r=Y9().value,l=r.months||r.formatLocale.monthsShort,h=u=>qo(o.getFullYear(),u),d=u=>{const y=u.currentTarget.getAttribute("data-month");t(h(parseInt(y,10)))};return c.createVNode("div",{class:`${n}-calendar ${n}-calendar-panel-month`},[c.createVNode(K9,{type:"month",calendar:o,onUpdateCalendar:i},{default:()=>[c.createVNode("button",{type:"button",class:`${n}-btn ${n}-btn-text ${n}-btn-current-year`,onClick:()=>a("year")},[o.getFullYear()])]}),c.createVNode("div",{class:`${n}-calendar-content`},[c.createVNode("table",{class:`${n}-table ${n}-table-month`},[G9(l,3).map((u,p)=>c.createVNode("tr",{key:p},[u.map((y,f)=>{const g=p*3+f;return c.createVNode("td",{key:f,class:["cell",e(h(g))],"data-month":g,onClick:d},[c.createVNode("div",null,[y])])})]))])])])}const ez=o=>{const e=Math.floor(o.getFullYear()/10)*10,t=[];for(let i=0;i<10;i++)t.push(e+i);return G9(t,2)};function tz({calendar:o,getCellClasses:e=()=>[],getYearPanel:t=ez,onSelect:i,onUpdateCalendar:a}){const n=ne(),r=p=>qo(p,0),l=p=>{const f=p.currentTarget.getAttribute("data-year");i(r(parseInt(f,10)))},h=t(new Date(o)),d=h[0][0],u=Dx(Dx(h));return c.createVNode("div",{class:`${n}-calendar ${n}-calendar-panel-year`},[c.createVNode(K9,{type:"year",calendar:o,onUpdateCalendar:a},{default:()=>[c.createVNode("span",null,[d]),c.createVNode("span",{class:`${n}-calendar-decade-separator`},null),c.createVNode("span",null,[u])]}),c.createVNode("div",{class:`${n}-calendar-content`},[c.createVNode("table",{class:`${n}-table ${n}-table-year`},[h.map((p,y)=>c.createVNode("tr",{key:y},[p.map((f,g)=>c.createVNode("td",{key:g,class:["cell",e(r(f))],"data-year":f,onClick:l},[c.createVNode("div",null,[f])]))]))])])])}function iz(o){const e=Ve(o,{defaultValue:Ge(new Date),type:"date",disabledDate:()=>!1,getClasses:()=>[],titleFormat:"YYYY-MM-DD"}),t=c.computed(()=>(Array.isArray(e.value)?e.value:[e.value]).filter(Pe).map(M=>e.type==="year"?WD(M):e.type==="month"?qx(M):Ge(M))),i=c.ref(new Date);c.watchEffect(()=>{let m=e.calendar;if(!Pe(m)){const{length:M}=t.value;m=H7(M>0?t.value[M-1]:e.defaultValue)}i.value=qx(m)});const a=m=>{var M;i.value=m,(M=e.onCalendarChange)==null||M.call(e,m)},n=c.ref("date");c.watchEffect(()=>{const m=["date","month","year"],M=Math.max(m.indexOf(e.type),m.indexOf(e.defaultPanel));n.value=M!==-1?m[M]:"date"});const r=m=>{var M;const v=n.value;n.value=m,(M=e.onPanelChange)==null||M.call(e,m,v)},l=m=>e.disabledDate(new Date(m),t.value),h=(m,M)=>{var v,C,I;if(!l(m))if((v=e.onPick)==null||v.call(e,m),e.multiple===!0){const L=t.value.filter(S=>S.getTime()!==m.getTime());L.length===t.value.length&&L.push(m),(C=e["onUpdate:value"])==null||C.call(e,L,M)}else(I=e["onUpdate:value"])==null||I.call(e,m,M)},d=m=>{h(m,e.type==="week"?"week":"date")},u=m=>{if(e.type==="year")h(m,"year");else if(a(m),r("month"),e.partialUpdate&&t.value.length===1){const M=Ko(t.value[0],m.getFullYear());h(M,"year")}},p=m=>{if(e.type==="month")h(m,"month");else if(a(m),r("date"),e.partialUpdate&&t.value.length===1){const M=A7(Ko(t.value[0],m.getFullYear()),m.getMonth());h(M,"month")}},y=(m,M=[])=>(l(m)?M.push("disabled"):t.value.some(v=>v.getTime()===m.getTime())&&M.push("active"),M.concat(e.getClasses(m,t.value,M.join(" ")))),f=m=>{const M=m.getMonth()!==i.value.getMonth(),v=[];return m.getTime()===new Date().setHours(0,0,0,0)&&v.push("today"),M&&v.push("not-current-month"),y(m,v)},g=m=>e.type!=="month"?i.value.getMonth()===m.getMonth()?"active":"":y(m),k=m=>e.type!=="year"?i.value.getFullYear()===m.getFullYear()?"active":"":y(m),b=m=>{if(e.type!=="week")return!1;const M=m[0].getTime(),v=m[6].getTime();return t.value.some(C=>{const I=C.getTime();return I>=M&&I<=v})};return()=>n.value==="year"?c.createVNode(tz,{calendar:i.value,getCellClasses:k,getYearPanel:e.getYearPanel,onSelect:u,onUpdateCalendar:a},null):n.value==="month"?c.createVNode(QD,{calendar:i.value,getCellClasses:g,onSelect:p,onUpdatePanel:r,onUpdateCalendar:a},null):c.createVNode(JD,{isWeekMode:e.type==="week",showWeekNumber:e.showWeekNumber,titleFormat:e.titleFormat,calendar:i.value,getCellClasses:f,getWeekActive:b,onSelect:d,onUpdatePanel:r,onUpdateCalendar:a,onDateMouseEnter:e.onDateMouseEnter,onDateMouseLeave:e.onDateMouseLeave},null)}const q7=Ue()(["type","value","defaultValue","defaultPanel","disabledDate","getClasses","calendar","multiple","partialUpdate","showWeekNumber","titleFormat","getYearPanel","onDateMouseEnter","onDateMouseLeave","onCalendarChange","onPanelChange","onUpdate:value","onPick"]);var B7=Ae(iz,q7);const Fx=(o,e)=>{const t=o.getTime();let[i,a]=e.map(n=>n.getTime());return i>a&&([i,a]=[a,i]),t>i&&t<a};function az(o){const e=Ve(o,{defaultValue:new Date,type:"date"}),t=ne(),i=c.computed(()=>{let b=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];return b=b.map(m=>Ge(m)),Bo(b)?b:[new Date,new Date].map(m=>Ge(m))}),a=c.ref([new Date(NaN),new Date(NaN)]);c.watchEffect(()=>{Bo(e.value)&&(a.value=e.value)});const n=(b,m)=>{var M;const[v,C]=a.value;Pe(v)&&!Pe(C)?(v.getTime()>b.getTime()?a.value=[b,v]:a.value=[v,b],(M=e["onUpdate:value"])==null||M.call(e,a.value,m)):a.value=[b,new Date(NaN)]},r=c.ref([new Date,new Date]),l=c.computed(()=>Bo(e.calendar)?e.calendar:r.value),h=c.computed(()=>e.type==="year"?10*12:e.type==="month"?1*12:1),d=(b,m)=>{var M;const v=GD(b[0],b[1]),C=h.value-v;if(C>0){const I=m===1?0:1;b[I]=A7(b[I],L=>L+(I===0?-C:C))}r.value=b,(M=e.onCalendarChange)==null||M.call(e,b,m)},u=b=>{d([b,l.value[1]],0)},p=b=>{d([l.value[0],b],1)};c.watchEffect(()=>{const b=Bo(e.value)?e.value:i.value;d(b.slice(0,2))});const y=c.ref(null),f=b=>y.value=b,g=()=>y.value=null,k=(b,m,M)=>{const v=e.getClasses?e.getClasses(b,m,M):[],C=Array.isArray(v)?v:[v];return/disabled|active/.test(M)?C:(m.length===2&&Fx(b,m)&&C.push("in-range"),m.length===1&&y.value&&Fx(b,[m[0],y.value])?C.concat("hover-in-range"):C)};return()=>{const b=l.value.map((m,M)=>{const v=ve(Q({},e),{calendar:m,value:a.value,defaultValue:i.value[M],getClasses:k,partialUpdate:!1,multiple:!1,"onUpdate:value":n,onCalendarChange:M===0?u:p,onDateMouseLeave:g,onDateMouseEnter:f});return c.createVNode(B7,v,null)});return c.createVNode("div",{class:`${t}-calendar-range`},[b])}}const J9=q7;var Q9=Ae(az,J9);const Ox=c.defineComponent({setup(o,{slots:e}){const t=ne(),i=c.ref(),a=c.ref(""),n=c.ref(""),r=()=>{if(!i.value)return;const g=i.value,k=g.clientHeight*100/g.scrollHeight;a.value=k<100?`${k}%`:""};c.onMounted(r);const l=TD(),h=g=>{const k=g.currentTarget,{scrollHeight:b,scrollTop:m}=k;n.value=`${m*100/b}%`};let d=!1,u=0;const p=g=>{g.stopImmediatePropagation();const k=g.currentTarget,{offsetTop:b}=k;d=!0,u=g.clientY-b},y=g=>{if(!d||!i.value)return;const{clientY:k}=g,{scrollHeight:b,clientHeight:m}=i.value,v=(k-u)*b/m;i.value.scrollTop=v},f=()=>{d=!1};return c.onMounted(()=>{document.addEventListener("mousemove",y),document.addEventListener("mouseup",f)}),c.onUnmounted(()=>{document.addEventListener("mousemove",y),document.addEventListener("mouseup",f)}),()=>{var g;return c.createVNode("div",{class:`${t}-scrollbar`,style:{position:"relative",overflow:"hidden"}},[c.createVNode("div",{ref:i,class:`${t}-scrollbar-wrap`,style:{marginRight:`-${l}px`},onScroll:h},[(g=e.default)==null?void 0:g.call(e)]),c.createVNode("div",{class:`${t}-scrollbar-track`},[c.createVNode("div",{class:`${t}-scrollbar-thumb`,style:{height:a.value,top:n.value},onMousedown:p},null)])])}}});function oz({options:o,getClasses:e,onSelect:t}){const i=ne(),a=n=>{const r=n.target,l=n.currentTarget;if(r.tagName.toUpperCase()!=="LI")return;const h=l.getAttribute("data-type"),d=parseInt(l.getAttribute("data-index"),10),u=parseInt(r.getAttribute("data-index"),10),p=o[d].list[u].value;t(p,h)};return c.createVNode("div",{class:`${i}-time-columns`},[o.map((n,r)=>c.createVNode(Ox,{key:n.type,class:`${i}-time-column`},{default:()=>[c.createVNode("ul",{class:`${i}-time-list`,"data-index":r,"data-type":n.type,onClick:a},[n.list.map((l,h)=>c.createVNode("li",{key:l.text,"data-index":h,class:[`${i}-time-item`,e(l.value,n.type)]},[l.text]))])]}))])}function nz(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!c.isVNode(o)}function sz(o){let e;const t=ne();return c.createVNode(Ox,null,nz(e=o.options.map(i=>c.createVNode("div",{key:i.text,class:[`${t}-time-option`,o.getClasses(i.value,"time")],onClick:()=>o.onSelect(i.value,"time")},[i.text])))?e:{default:()=>[e]})}function eC({length:o,step:e=1,options:t}){if(Array.isArray(t))return t.filter(a=>a>=0&&a<o);e<=0&&(e=1);const i=[];for(let a=0;a<o;a+=e)i.push(a);return i}function rz(o,e){let{showHour:t,showMinute:i,showSecond:a,use12h:n}=e;const r=e.format||"HH:mm:ss";t=typeof t=="boolean"?t:/[HhKk]/.test(r),i=typeof i=="boolean"?i:/m/.test(r),a=typeof a=="boolean"?a:/s/.test(r),n=typeof n=="boolean"?n:/a/i.test(r);const l=[],h=n&&o.getHours()>=12;return t&&l.push({type:"hour",list:eC({length:n?12:24,step:e.hourStep,options:e.hourOptions}).map(d=>{const u=d===0&&n?"12":$9(d),p=new Date(o);return p.setHours(h?d+12:d),{value:p,text:u}})}),i&&l.push({type:"minute",list:eC({length:60,step:e.minuteStep,options:e.minuteOptions}).map(d=>{const u=new Date(o);return u.setMinutes(d),{value:u,text:$9(d)}})}),a&&l.push({type:"second",list:eC({length:60,step:e.secondStep,options:e.secondOptions}).map(d=>{const u=new Date(o);return u.setSeconds(d),{value:u,text:$9(d)}})}),n&&l.push({type:"ampm",list:["AM","PM"].map((d,u)=>{const p=new Date(o);return p.setHours(p.getHours()%12+u*12),{text:d,value:p}})}),l}function tC(o=""){const e=o.split(":");if(e.length>=2){const t=parseInt(e[0],10),i=parseInt(e[1],10);return{hours:t,minutes:i}}return null}function lz({date:o,option:e,format:t,formatDate:i}){const a=[];if(typeof e=="function")return e()||[];const n=tC(e.start),r=tC(e.end),l=tC(e.step),h=e.format||t;if(n&&r&&l){const d=n.minutes+n.hours*60,u=r.minutes+r.hours*60,p=l.minutes+l.hours*60,y=Math.floor((u-d)/p);for(let f=0;f<=y;f++){const g=d+f*p,k=Math.floor(g/60),b=g%60,m=new Date(o);m.setHours(k,b,0),a.push({value:m,text:i(m,h)})}}return a}const jx=(o,e,t=0)=>{if(t<=0){requestAnimationFrame(()=>{o.scrollTop=e});return}const a=(e-o.scrollTop)/t*10;requestAnimationFrame(()=>{const n=o.scrollTop+a;if(n>=e){o.scrollTop=e;return}o.scrollTop=n,jx(o,e,t-10)})};function hz(o){const e=Ve(o,{defaultValue:Ge(new Date),format:"HH:mm:ss",timeTitleFormat:"YYYY-MM-DD",disabledTime:()=>!1,scrollDuration:100}),t=ne(),i=Y9(),a=(k,b)=>N9(k,b,{locale:i.value.formatLocale}),n=c.ref(new Date);c.watchEffect(()=>{n.value=H7(e.value,e.defaultValue)});const r=k=>Array.isArray(k)?k.every(b=>e.disabledTime(new Date(b))):e.disabledTime(new Date(k)),l=k=>{const b=new Date(k);return r([b.getTime(),b.setMinutes(0,0,0),b.setMinutes(59,59,999)])},h=k=>{const b=new Date(k);return r([b.getTime(),b.setSeconds(0,0),b.setSeconds(59,999)])},d=k=>{const b=new Date(k),m=b.getHours()<12?0:12,M=m+11;return r([b.getTime(),b.setHours(m,0,0,0),b.setHours(M,59,59,999)])},u=(k,b)=>b==="hour"?l(k):b==="minute"?h(k):b==="ampm"?d(k):r(k),p=(k,b)=>{var m;if(!u(k,b)){const M=new Date(k);n.value=M,r(M)||(m=e["onUpdate:value"])==null||m.call(e,M,b)}},y=(k,b)=>u(k,b)?"disabled":k.getTime()===n.value.getTime()?"active":"",f=c.ref(),g=k=>{if(!f.value)return;const b=f.value.querySelectorAll(".active");for(let m=0;m<b.length;m++){const M=b[m],v=Z9(M,f.value);if(v){const C=M.offsetTop;jx(v,C,k)}}};return c.onMounted(()=>g(0)),c.watch(n,()=>g(e.scrollDuration),{flush:"post"}),()=>{let k;return e.timePickerOptions?k=c.createVNode(sz,{onSelect:p,getClasses:y,options:lz({date:n.value,format:e.format,option:e.timePickerOptions,formatDate:a})},null):k=c.createVNode(oz,{options:rz(n.value,e),onSelect:p,getClasses:y},null),c.createVNode("div",{class:`${t}-time`,ref:f},[e.showTimeHeader&&c.createVNode("div",{class:`${t}-time-header`},[c.createVNode("button",{type:"button",class:`${t}-btn ${t}-btn-text ${t}-time-header-title`,onClick:e.onClickTitle},[a(n.value,e.timeTitleFormat)])]),c.createVNode("div",{class:`${t}-time-content`},[k])])}}const F7=Ue()(["value","defaultValue","format","timeTitleFormat","showTimeHeader","disabledTime","timePickerOptions","hourOptions","minuteOptions","secondOptions","hourStep","minuteStep","secondStep","showHour","showMinute","showSecond","use12h","scrollDuration","onClickTitle","onUpdate:value"]);var kn=Ae(hz,F7);function cz(o){const e=Ve(o,{defaultValue:Ge(new Date),disabledTime:()=>!1}),t=ne(),i=c.ref([new Date(NaN),new Date(NaN)]);c.watchEffect(()=>{Bo(e.value)?i.value=e.value:i.value=[new Date(NaN),new Date(NaN)]});const a=(d,u)=>{var p;(p=e["onUpdate:value"])==null||p.call(e,i.value,d==="time"?"time-range":d,u)},n=(d,u)=>{i.value[0]=d,i.value[1].getTime()>=d.getTime()||(i.value[1]=d),a(u,0)},r=(d,u)=>{i.value[1]=d,i.value[0].getTime()<=d.getTime()||(i.value[0]=d),a(u,1)},l=d=>e.disabledTime(d,0),h=d=>d.getTime()<i.value[0].getTime()||e.disabledTime(d,1);return()=>{const d=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];return c.createVNode("div",{class:`${t}-time-range`},[c.createVNode(kn,ve(Q({},e),{"onUpdate:value":n,value:i.value[0],defaultValue:d[0],disabledTime:l}),null),c.createVNode(kn,ve(Q({},e),{"onUpdate:value":r,value:i.value[1],defaultValue:d[1],disabledTime:h}),null)])}}const iC=F7;var aC=Ae(cz,iC);function Nx(o){const e=c.ref(!1),t=()=>{var n;e.value=!1,(n=o.onShowTimePanelChange)==null||n.call(o,!1)},i=()=>{var n;e.value=!0,(n=o.onShowTimePanelChange)==null||n.call(o,!0)};return{timeVisible:c.computed(()=>typeof o.showTimePanel=="boolean"?o.showTimePanel:e.value),openTimePanel:i,closeTimePanel:t}}function dz(o){const e=Ve(o,{disabledTime:()=>!1,defaultValue:Ge(new Date)}),t=c.ref(e.value);c.watchEffect(()=>{t.value=e.value});const{openTimePanel:i,closeTimePanel:a,timeVisible:n}=Nx(e),r=(l,h)=>{var d;h==="date"&&i();let u=V7(l,H7(e.value,e.defaultValue));if(e.disabledTime(new Date(u))&&(u=V7(l,e.defaultValue),e.disabledTime(new Date(u)))){t.value=u;return}(d=e["onUpdate:value"])==null||d.call(e,u,h)};return()=>{const l=ne(),h=ve(Q({},He(e,q7)),{multiple:!1,type:"date",value:t.value,"onUpdate:value":r}),d=ve(Q({},He(e,F7)),{showTimeHeader:!0,value:t.value,"onUpdate:value":e["onUpdate:value"],onClickTitle:a});return c.createVNode("div",{class:`${l}-date-time`},[c.createVNode(B7,h,null),n.value&&c.createVNode(kn,d,null)])}}const _x=Ue()(["showTimePanel","onShowTimePanelChange"]),uz=[..._x,...q7,...F7];var Wx=Ae(dz,uz);function pz(o){const e=Ve(o,{defaultValue:Ge(new Date),disabledTime:()=>!1}),t=c.ref(e.value);c.watchEffect(()=>{t.value=e.value});const{openTimePanel:i,closeTimePanel:a,timeVisible:n}=Nx(e),r=(l,h)=>{var d;h==="date"&&i();const u=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];let p=l.map((y,f)=>{const g=Bo(e.value)?e.value[f]:u[f];return V7(y,g)});if(p[1].getTime()<p[0].getTime()&&(p=[p[0],p[0]]),p.some(e.disabledTime)&&(p=l.map((y,f)=>V7(y,u[f])),p.some(e.disabledTime))){t.value=p;return}(d=e["onUpdate:value"])==null||d.call(e,p,h)};return()=>{const l=ne(),h=ve(Q({},He(e,J9)),{type:"date",value:t.value,"onUpdate:value":r}),d=ve(Q({},He(e,iC)),{showTimeHeader:!0,value:t.value,"onUpdate:value":e["onUpdate:value"],onClickTitle:a});return c.createVNode("div",{class:`${l}-date-time-range`},[c.createVNode(Q9,h,null),n.value&&c.createVNode(aC,d,null)])}}const yz=[..._x,...iC,...J9];var Ux=Ae(pz,yz);const fz=Ue()(["range","open","appendToBody","clearable","confirm","disabled","editable","multiple","partialUpdate","showHour","showMinute","showSecond","showTimeHeader","showTimePanel","showWeekNumber","use12h"]),Gx={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",year:"YYYY",month:"YYYY-MM",time:"HH:mm:ss",week:"w"};function $x(o,{slots:e}){const t=o.type||"date",i=o.format||Gx[t]||Gx.date,a=ve(Q({},zD(o,fz)),{type:t,format:i});return c.createVNode(Bx,He(a,Bx.props),Q({content:n=>{if(a.range){const r=t==="time"?aC:t==="datetime"?Ux:Q9;return c.h(r,He(Q(Q({},a),n),r.props))}else{const r=t==="time"?kn:t==="datetime"?Wx:B7;return c.h(r,He(Q(Q({},a),n),r.props))}},"icon-calendar":()=>t==="time"?c.createVNode(ND,null,null):c.createVNode(Px,null,null)},e))}var oC=Object.assign($x,{locale:Tx,install:o=>{o.component("DatePicker",$x)}},{Calendar:B7,CalendarRange:Q9,TimePanel:kn,TimeRange:aC,DateTime:Wx,DateTimeRange:Ux}),V=[{year:2e3,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2001,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2002,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2003,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2004,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2005,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2006,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2007,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2008,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2009,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2010,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2011,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2012,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2013,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2014,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2015,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2016,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2017,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2018,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2019,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2020,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2021,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2022,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2023,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2024,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2025,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2026,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2027,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2028,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2029,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2030,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2031,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2032,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2033,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2034,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2035,days:[30,32,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2036,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2037,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2038,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2039,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2040,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2041,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2042,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2043,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2044,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2045,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2046,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2047,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2048,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2049,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2050,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2051,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2052,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2053,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2054,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2055,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2056,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2057,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2058,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2059,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2060,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2061,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2062,days:[30,32,31,32,31,31,29,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2063,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2064,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2065,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2066,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2067,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2068,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2069,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2070,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2071,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2072,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2073,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2074,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2075,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2076,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2077,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2078,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2079,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2080,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2081,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2082,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2083,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2084,days:[31,31,32,31,31,30,30,30,29,30,30,30],totalDays:0,daysTillNow:0},{year:2085,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2086,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2087,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2088,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2089,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2090,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2091,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2092,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2093,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2094,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2095,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2096,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2097,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2098,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2099,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2100,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0}],Yx=0;V.forEach(o=>{o.totalDays=o.days.reduce((e,t)=>e+t,0),Yx+=o.totalDays,o.daysTillNow=Yx});var O7=new Date(1943,3,14).getTime(),Zx=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Xx=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Kx=["आइतबार","सोमबार","मंगलबार","बुधबार","बिहिबार","शुक्रबार","शनिबार"],Jx=["आइत","सोम","मंगल","बुध","बिहि","शुक्र","शनि"],Qx=["Baisakh","Jestha","Asar","Shrawan","Bhadra","Aswin","Kartik","Mangsir","Poush","Magh","Falgun","Chaitra"],eL=["Bai","Jes","Asa","Shr","Bhd","Asw","Kar","Man","Pou","Mag","Fal","Cha"],tL=["बैशाख","जेठ","असार","श्रावण","भाद्र","आश्विन","कार्तिक","मंसिर","पौष","माघ","फाल्गुण","चैत्र"],iL=["बै","जे","अ","श्रा","भा","आ","का","मं","पौ","मा","फा","चै"],mz=["०","१","२","३","४","५","६","७","८","९"];function j7(o){return o<10?`0${o}`:`${o}`}function Jo(o){let e="";for(let t=0;t<o.length;t+=1)e+=mz[o.charCodeAt(t)-48];return e}function gz(o){return e=>o<=2?String(e.getYear()).substring(2):o===3?String(e.getYear()).substring(1):String(e.getYear())}function kz(o){return e=>o<=2?Jo(String(e.getYear()).substring(2)):Jo(o===3?String(e.getYear()).substring(1):String(e.getYear()))}function bz(o){return e=>o===1?String(e.getMonth()+1):o===2?j7(e.getMonth()+1):o===3?eL[e.getMonth()]:Qx[e.getMonth()]}function wz(o){return e=>o===1?Jo(String(e.getMonth()+1)):o===2?Jo(j7(e.getMonth()+1)):o===3?iL[e.getMonth()]:tL[e.getMonth()]}function vz(o){return e=>o===1?String(e.getDate()):o===2?j7(e.getDate()):o===3?Xx[e.getDay()]:Zx[e.getDay()]}function Mz(o){return e=>o===1?Jo(String(e.getDate())):o===2?Jo(j7(e.getDate())):o===3?Jx[e.getDay()]:Kx[e.getDay()]}function aL(o){return()=>o}var nC={Y:gz,y:kz,M:bz,m:wz,D:vz,d:Mz};function Cz(o){return o in nC}function xz(o){let e=!1,t="",i="",a=0,n=[];for(let r=0;r<o.length;r+=1){let l=o[r];if(l===i){a+=1;continue}if(i!==""&&(n.push(nC[i](a)),i="",a=0),l==='"'){e=!e;continue}!Cz(l)||e?t+=l:(t&&(n.push(aL(t)),t=""),i=l,a=1)}return t?n.push(aL(t)):i&&n.push(nC[i](a)),n}function Lz(o,e){return xz(e).map(t=>t(o)).join("")}function oL(o){let e=o.split(/[-./]/,3),[t,i=1,a=1]=e.map(r=>{let l=parseInt(r,10);if(Number.isNaN(l))throw new Error("Invalid date");return l});if(t<V[0].year||t>=V[0].year+V.length)throw new Error("Nepal year out of range");if(i<1||i>12)throw new Error("Invalid nepali month must be between 1 - 12");let n=V[t-V[0].year].days[i-1];if(a<1||a>n)throw new Error(`Invalid nepali date must be between 1 - ${n} in ${t} ${i}`);return[t,i-1,a]}var ye=class B{constructor(...e){E(this,"timestamp");E(this,"year");E(this,"month");E(this,"day");if(e.length===0)this.setEnglishDate(new Date);else if(e.length===1){let t=e[0];if(typeof t=="object")if(t instanceof Date)this.setEnglishDate(t);else if(t instanceof B)this.timestamp=t.timestamp,this.year=t.year,this.month=t.month,this.day=t.day;else throw new Error("Invalid date argument");else if(typeof t=="string")this.set(...oL(t));else if(typeof t=="number")this.setEnglishDate(new Date(t));else throw new Error("Invalid date argument")}else if(e.length===3)this.set(e[0],e[1],e[2]);else throw new Error("Invalid argument syntax")}setEnglishDate(e){this.timestamp=e;let t=Math.floor((this.timestamp.getTime()-O7)/864e5),i=Math.floor(t/366);for(;t>=V[i].daysTillNow;)i+=1;let a=V[i-1]?V[i-1].daysTillNow:0;t-=a;let n=V[i];for(this.year=n.year,this.month=0;t>=n.days[this.month];)this.month+=1,t-=n.days[this.month-1];this.day=t+1}getEnglishDate(){return this.timestamp}parse(e){this.set(...oL(e))}getYear(){return this.year}getMonth(){return this.month}getDate(){return this.day}getDay(){return this.timestamp.getDay()}getHours(){return this.timestamp.getHours()}getMinutes(){return this.timestamp.getMinutes()}getSeconds(){return this.timestamp.getSeconds()}getMilliseconds(){return this.timestamp.getMilliseconds()}getTime(){return this.timestamp.getTime()}setYear(e){this.set(e,this.month,this.day)}setMonth(e){this.set(this.year,e,this.day)}setDate(e){this.set(this.year,this.month,e)}set(e,t,i){let a=e+Math.floor(t/12)-V[0].year,n=V[a],r=n.daysTillNow-n.totalDays,l=t%12,h=l<0?12+l:l;for(let d=0;d<h;d+=1)r+=n.days[d];r+=i-1,this.setEnglishDate(new Date(O7+r*864e5))}format(e){return Lz(this,e)}toString(){return`${this.year}/${this.month+1}/${this.day}`}addDays(e){let t=new Date(this.timestamp.getTime()+e*864e5);return new B(t)}addMonths(e){let t=this.year,i=this.month+e;t+=Math.floor(i/12),i=i%12,i<0&&(i+=12,t-=1);let a=t-V[0].year;if(a<0||a>=V.length)throw new Error("Resulting date is out of supported range");let n=V[a].days[i],r=Math.min(this.day,n);return new B(t,i,r)}addYears(e){let t=this.year+e;if(t<V[0].year||t>=V[0].year+V.length)throw new Error("Resulting date is out of supported range");let i=t-V[0].year;if(this.month===11&&this.day===29){let a=V[i].days[11];if(a<29)return new B(t,11,a)}return new B(t,this.month,this.day)}static minimum(){return new Date(O7)}static maximum(){return new Date(O7+V[V.length-1].daysTillNow*864e5)}daysInMonth(){let e=this.year-V[0].year;return V[e].days[this.month]}isLeapYear(){let e=this.year-V[0].year;return V[e].totalDays===366}getWeeksInMonth(){let e=new B(this.year,this.month,1).getDay(),t=this.daysInMonth();return Math.ceil((e+t)/7)}diff(e,t){switch(t){case"day":return Math.floor((this.timestamp.getTime()-e.timestamp.getTime())/864e5);case"month":let i=this.year-e.year,a=this.month-e.month;return i*12+a;case"year":return this.year-e.year;default:throw new Error("Invalid unit for diff calculation")}}startOfDay(){let e=new Date(this.timestamp);return e.setHours(0,0,0,0),new B(e)}endOfDay(){let e=new Date(this.timestamp);return e.setHours(23,59,59,999),new B(e)}startOfWeek(e=0){if(e<0||e>6||!Number.isInteger(e))throw new Error("startOfWeek must be an integer between 0 and 6");let t=(this.getDay()-e+7)%7;return this.clone().startOfDay().addDays(-t)}endOfWeek(e=0){return this.startOfWeek(e).addDays(6).endOfDay()}startOfMonth(){return new B(this.year,this.month,1)}endOfMonth(){let e=this.daysInMonth();return new B(this.year,this.month,e).endOfDay()}startOfYear(){return new B(this.year,0,1)}endOfYear(){let e=this.year-V[0].year,t=V[e].days[11];return new B(this.year,11,t).endOfDay()}static getMonthName(e,t=!1,i=!1){if(e<0||e>11)throw new Error("Invalid month index, must be between 0-11");let a="";return i?a=t?iL[e]:tL[e]:a=t?eL[e]:Qx[e],a}static getDayName(e,t=!1,i=!1){if(e<0||e>6)throw new Error("Invalid day index, must be between 0-6");let a="";return i?a=t?Jx[e]:Kx[e]:a=t?Xx[e]:Zx[e],a}static isValid(e,t,i){try{if(e<V[0].year||e>=V[0].year+V.length||t<0||t>11)return!1;let a=e-V[0].year,n=V[a].days[t];return!(i<1||i>n)}catch{return!1}}isValid(){return B.isValid(this.year,this.month,this.day)}static getCalendarDays(e,t){if(!B.isValid(e,t,1))throw new Error("Invalid year or month");let i={year:0,month:0,days:[]},a={year:0,month:0,days:[]},n={year:0,month:0,days:[]},r=e-V[0].year,l=new B(e,t,1).getDay(),h=V[r].days[t];a.year=e,a.month=t;let d=t-1,u=e,p=t+1,y=e;if(d<0&&(d=11,u--),u>V[0].year&&(i.year=u,i.month=d),u>=V[0].year&&l>0){let g=u-V[0].year,k=V[g].days[d];for(let b=0;b<l;b++)i.days.push(k-l+b+1)}for(let g=1;g<=h;g++)a.days.push(g);p>11&&(p=0,y++),y<V[0].year+V.length&&(n.year=y,n.month=p);let f=42-l-a.days.length;if(y<V[0].year+V.length&&f>0)for(let g=1;g<=f;g++)n.days.push(g);return{prevRemainingDays:l,prevMonth:i,currentMonth:a,nextMonth:n,remainingDays:f}}clone(){return new B(this)}isAfter(e){return this.timestamp.getTime()>e.timestamp.getTime()}isBefore(e){return this.timestamp.getTime()<e.timestamp.getTime()}isEqual(e){return this.year===e.year&&this.month===e.month&&this.day===e.day}isSame(e,t){switch(t){case"year":return this.year===e.year;case"month":return this.year===e.year&&this.month===e.month;case"day":return this.isEqual(e);default:throw new Error("Invalid unit for comparison")}}static getQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??new B().getYear(),a=(e-1)*3,n=new B(i,a,1),r=new B(i,a+2,1).endOfMonth();return{start:n,end:r}}getCurrentQuarter(){return Math.floor(this.month/3)+1}static getQuarters(e){let t=e??new B().getYear();return{Q1:B.getQuarter(1,t),Q2:B.getQuarter(2,t),Q3:B.getQuarter(3,t),Q4:B.getQuarter(4,t)}}static getCurrentFiscalYear(){let e=new B,t=e.getYear();return e.getMonth()<3?t-1:t}static getFiscalYearQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??B.getCurrentFiscalYear(),a=i,n=(e-1)*3+3;e===4&&(a=i+1,n=0),n>11&&(a++,n-=12);let r=n+2,l=a;r>11&&(l++,r-=12);let h=new B(a,n,1),d=new B(l,r,1).endOfMonth();return{start:h,end:d}}getCurrentFiscalYearQuarter(){let e=this.getMonth();return e>=3&&e<=5?1:e>=6&&e<=8?2:e>=9&&e<=11?3:4}getCurrentFiscalYearQuarterDates(){let e=this.getCurrentFiscalYearQuarter(),t=B.getCurrentFiscalYear();return B.getFiscalYearQuarter(e,t)}static getFiscalYearQuarters(e){let t=e??B.getCurrentFiscalYear();return{Q1:B.getFiscalYearQuarter(1,t),Q2:B.getFiscalYearQuarter(2,t),Q3:B.getFiscalYearQuarter(3,t),Q4:B.getFiscalYearQuarter(4,t)}}},$e=o=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(o))throw new Error("Invalid date format. Expected format: YYYY-MM-DD");let e=new Date(o);if(Number.isNaN(e.getTime()))throw new Error(`Invalid date input '${o}'`);try{return new ye(e).format("YYYY-MM-DD")}catch(t){throw console.error("Error During Date Conversion : ",t),new Error("Failed to convert AD to BS")}};function he(o){try{if(!/^\d{4}-\d{2}-\d{2}$/.test(o))throw new Error("Invalid date format. Expected format: YYYY-MM-DD");let e=o?new ye(o):new ye,t=a=>a<10?`0${a}`:`${a}`,i=e.getEnglishDate();return`${i.getFullYear()}-${t(i.getMonth()+1)}-${t(i.getDate())}`}catch(e){throw console.error("Error During Date Conversion : ",e),new Error("Failed to convert BS to AD")}}var Ez=Object.defineProperty,Sz=(o,e,t)=>e in o?Ez(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,N7=(o,e,t)=>Sz(o,typeof e!="symbol"?e+"":e,t),H=[{year:2e3,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2001,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2002,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2003,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2004,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2005,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2006,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2007,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2008,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2009,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2010,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2011,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2012,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2013,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2014,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2015,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2016,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2017,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2018,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2019,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2020,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2021,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2022,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2023,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2024,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2025,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2026,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2027,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2028,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2029,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2030,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2031,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2032,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2033,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2034,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2035,days:[30,32,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2036,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2037,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2038,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2039,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2040,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2041,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2042,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2043,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2044,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2045,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2046,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2047,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2048,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2049,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2050,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2051,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2052,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2053,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2054,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2055,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2056,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2057,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2058,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2059,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2060,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2061,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2062,days:[30,32,31,32,31,31,29,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2063,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2064,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2065,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2066,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2067,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2068,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2069,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2070,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2071,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2072,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2073,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2074,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2075,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2076,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2077,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2078,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2079,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2080,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2081,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2082,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2083,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2084,days:[31,31,32,31,31,30,30,30,29,30,30,30],totalDays:0,daysTillNow:0},{year:2085,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2086,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2087,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2088,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2089,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2090,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2091,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2092,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2093,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2094,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2095,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2096,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2097,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2098,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2099,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2100,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0}],nL=0;H.forEach(o=>{o.totalDays=o.days.reduce((e,t)=>e+t,0),nL+=o.totalDays,o.daysTillNow=nL});var _7=new Date(1943,3,14).getTime(),sL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],W7=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],rL=["आइतबार","सोमबार","मंगलबार","बुधबार","बिहिबार","शुक्रबार","शनिबार"],lL=["आइत","सोम","मंगल","बुध","बिहि","शुक्र","शनि"],sC=["Baisakh","Jestha","Asar","Shrawan","Bhadra","Aswin","Kartik","Mangsir","Poush","Magh","Falgun","Chaitra"],hL=["Bai","Jes","Asa","Shr","Bhd","Asw","Kar","Man","Pou","Mag","Fal","Cha"],cL=["बैशाख","जेठ","असार","श्रावण","भाद्र","आश्विन","कार्तिक","मंसिर","पौष","माघ","फाल्गुण","चैत्र"],dL=["बै","जे","अ","श्रा","भा","आ","का","मं","पौ","मा","फा","चै"],Iz=["०","१","२","३","४","५","६","७","८","९"];function U7(o){return o<10?`0${o}`:`${o}`}function Qo(o){let e="";for(let t=0;t<o.length;t+=1)e+=Iz[o.charCodeAt(t)-48];return e}function Tz(o){return e=>o<=2?String(e.getYear()).substring(2):o===3?String(e.getYear()).substring(1):String(e.getYear())}function Dz(o){return e=>o<=2?Qo(String(e.getYear()).substring(2)):Qo(o===3?String(e.getYear()).substring(1):String(e.getYear()))}function zz(o){return e=>o===1?String(e.getMonth()+1):o===2?U7(e.getMonth()+1):o===3?hL[e.getMonth()]:sC[e.getMonth()]}function Rz(o){return e=>o===1?Qo(String(e.getMonth()+1)):o===2?Qo(U7(e.getMonth()+1)):o===3?dL[e.getMonth()]:cL[e.getMonth()]}function Hz(o){return e=>o===1?String(e.getDate()):o===2?U7(e.getDate()):o===3?W7[e.getDay()]:sL[e.getDay()]}function Az(o){return e=>o===1?Qo(String(e.getDate())):o===2?Qo(U7(e.getDate())):o===3?lL[e.getDay()]:rL[e.getDay()]}function uL(o){return()=>o}var rC={Y:Tz,y:Dz,M:zz,m:Rz,D:Hz,d:Az};function Vz(o){return o in rC}function Pz(o){let e=!1,t="",i="",a=0,n=[];for(let r=0;r<o.length;r+=1){let l=o[r];if(l===i){a+=1;continue}if(i!==""&&(n.push(rC[i](a)),i="",a=0),l==='"'){e=!e;continue}!Vz(l)||e?t+=l:(t&&(n.push(uL(t)),t=""),i=l,a=1)}return t?n.push(uL(t)):i&&n.push(rC[i](a)),n}function qz(o,e){return Pz(e).map(t=>t(o)).join("")}function pL(o){let e=o.split(/[-./]/,3),[t,i=1,a=1]=e.map(r=>{let l=parseInt(r,10);if(Number.isNaN(l))throw new Error("Invalid date");return l});if(t<H[0].year||t>=H[0].year+H.length)throw new Error("Nepal year out of range");if(i<1||i>12)throw new Error("Invalid nepali month must be between 1 - 12");let n=H[t-H[0].year].days[i-1];if(a<1||a>n)throw new Error(`Invalid nepali date must be between 1 - ${n} in ${t} ${i}`);return[t,i-1,a]}var Y=class F{constructor(...e){if(N7(this,"timestamp"),N7(this,"year"),N7(this,"month"),N7(this,"day"),e.length===0)this.setEnglishDate(new Date);else if(e.length===1){let t=e[0];if(typeof t=="object")if(t instanceof Date)this.setEnglishDate(t);else if(t instanceof F)this.timestamp=t.timestamp,this.year=t.year,this.month=t.month,this.day=t.day;else throw new Error("Invalid date argument");else if(typeof t=="string")this.set(...pL(t));else if(typeof t=="number")this.setEnglishDate(new Date(t));else throw new Error("Invalid date argument")}else if(e.length===3)this.set(e[0],e[1],e[2]);else throw new Error("Invalid argument syntax")}setEnglishDate(e){this.timestamp=e;let t=Math.floor((this.timestamp.getTime()-_7)/864e5),i=Math.floor(t/366);for(;t>=H[i].daysTillNow;)i+=1;let a=H[i-1]?H[i-1].daysTillNow:0;t-=a;let n=H[i];for(this.year=n.year,this.month=0;t>=n.days[this.month];)this.month+=1,t-=n.days[this.month-1];this.day=t+1}getEnglishDate(){return this.timestamp}parse(e){this.set(...pL(e))}getYear(){return this.year}getMonth(){return this.month}getDate(){return this.day}getDay(){return this.timestamp.getDay()}getHours(){return this.timestamp.getHours()}getMinutes(){return this.timestamp.getMinutes()}getSeconds(){return this.timestamp.getSeconds()}getMilliseconds(){return this.timestamp.getMilliseconds()}getTime(){return this.timestamp.getTime()}setYear(e){this.set(e,this.month,this.day)}setMonth(e){this.set(this.year,e,this.day)}setDate(e){this.set(this.year,this.month,e)}set(e,t,i){let a=e+Math.floor(t/12)-H[0].year,n=H[a],r=n.daysTillNow-n.totalDays,l=t%12,h=l<0?12+l:l;for(let d=0;d<h;d+=1)r+=n.days[d];r+=i-1,this.setEnglishDate(new Date(_7+r*864e5))}format(e){return qz(this,e)}toString(){return`${this.year}/${this.month+1}/${this.day}`}addDays(e){let t=new Date(this.timestamp.getTime()+e*864e5);return new F(t)}addMonths(e){let t=this.year,i=this.month+e;t+=Math.floor(i/12),i=i%12,i<0&&(i+=12,t-=1);let a=t-H[0].year;if(a<0||a>=H.length)throw new Error("Resulting date is out of supported range");let n=H[a].days[i],r=Math.min(this.day,n);return new F(t,i,r)}addYears(e){let t=this.year+e;if(t<H[0].year||t>=H[0].year+H.length)throw new Error("Resulting date is out of supported range");let i=t-H[0].year;if(this.month===11&&this.day===29){let a=H[i].days[11];if(a<29)return new F(t,11,a)}return new F(t,this.month,this.day)}static minimum(){return new Date(_7)}static maximum(){return new Date(_7+H[H.length-1].daysTillNow*864e5)}daysInMonth(){let e=this.year-H[0].year;return H[e].days[this.month]}isLeapYear(){let e=this.year-H[0].year;return H[e].totalDays===366}getWeeksInMonth(){let e=new F(this.year,this.month,1).getDay(),t=this.daysInMonth();return Math.ceil((e+t)/7)}diff(e,t){switch(t){case"day":return Math.floor((this.timestamp.getTime()-e.timestamp.getTime())/864e5);case"month":let i=this.year-e.year,a=this.month-e.month;return i*12+a;case"year":return this.year-e.year;default:throw new Error("Invalid unit for diff calculation")}}startOfDay(){let e=new Date(this.timestamp);return e.setHours(0,0,0,0),new F(e)}endOfDay(){let e=new Date(this.timestamp);return e.setHours(23,59,59,999),new F(e)}startOfWeek(e=0){if(e<0||e>6||!Number.isInteger(e))throw new Error("startOfWeek must be an integer between 0 and 6");let t=(this.getDay()-e+7)%7;return this.clone().startOfDay().addDays(-t)}endOfWeek(e=0){return this.startOfWeek(e).addDays(6).endOfDay()}startOfMonth(){return new F(this.year,this.month,1)}endOfMonth(){let e=this.daysInMonth();return new F(this.year,this.month,e).endOfDay()}startOfYear(){return new F(this.year,0,1)}endOfYear(){let e=this.year-H[0].year,t=H[e].days[11];return new F(this.year,11,t).endOfDay()}static getMonthName(e,t=!1,i=!1){if(e<0||e>11)throw new Error("Invalid month index, must be between 0-11");let a="";return i?a=t?dL[e]:cL[e]:a=t?hL[e]:sC[e],a}static getDayName(e,t=!1,i=!1){if(e<0||e>6)throw new Error("Invalid day index, must be between 0-6");let a="";return i?a=t?lL[e]:rL[e]:a=t?W7[e]:sL[e],a}static isValid(e,t,i){try{if(e<H[0].year||e>=H[0].year+H.length||t<0||t>11)return!1;let a=e-H[0].year,n=H[a].days[t];return!(i<1||i>n)}catch{return!1}}isValid(){return F.isValid(this.year,this.month,this.day)}static getCalendarDays(e,t){if(!F.isValid(e,t,1))throw new Error("Invalid year or month");let i={year:0,month:0,days:[]},a={year:0,month:0,days:[]},n={year:0,month:0,days:[]},r=e-H[0].year,l=new F(e,t,1).getDay(),h=H[r].days[t];a.year=e,a.month=t;let d=t-1,u=e,p=t+1,y=e;if(d<0&&(d=11,u--),u>H[0].year&&(i.year=u,i.month=d),u>=H[0].year&&l>0){let g=u-H[0].year,k=H[g].days[d];for(let b=0;b<l;b++)i.days.push(k-l+b+1)}for(let g=1;g<=h;g++)a.days.push(g);p>11&&(p=0,y++),y<H[0].year+H.length&&(n.year=y,n.month=p);let f=42-l-a.days.length;if(y<H[0].year+H.length&&f>0)for(let g=1;g<=f;g++)n.days.push(g);return{prevRemainingDays:l,prevMonth:i,currentMonth:a,nextMonth:n,remainingDays:f}}clone(){return new F(this)}isAfter(e){return this.timestamp.getTime()>e.timestamp.getTime()}isBefore(e){return this.timestamp.getTime()<e.timestamp.getTime()}isEqual(e){return this.year===e.year&&this.month===e.month&&this.day===e.day}isSame(e,t){switch(t){case"year":return this.year===e.year;case"month":return this.year===e.year&&this.month===e.month;case"day":return this.isEqual(e);default:throw new Error("Invalid unit for comparison")}}static getQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??new F().getYear(),a=(e-1)*3,n=new F(i,a,1),r=new F(i,a+2,1).endOfMonth();return{start:n,end:r}}getCurrentQuarter(){return Math.floor(this.month/3)+1}static getQuarters(e){let t=e??new F().getYear();return{Q1:F.getQuarter(1,t),Q2:F.getQuarter(2,t),Q3:F.getQuarter(3,t),Q4:F.getQuarter(4,t)}}static getCurrentFiscalYear(){let e=new F,t=e.getYear();return e.getMonth()<3?t-1:t}static getFiscalYearQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??F.getCurrentFiscalYear(),a=i,n=(e-1)*3+3;e===4&&(a=i+1,n=0),n>11&&(a++,n-=12);let r=n+2,l=a;r>11&&(l++,r-=12);let h=new F(a,n,1),d=new F(l,r,1).endOfMonth();return{start:h,end:d}}getCurrentFiscalYearQuarter(){let e=this.getMonth();return e>=3&&e<=5?1:e>=6&&e<=8?2:e>=9&&e<=11?3:4}getCurrentFiscalYearQuarterDates(){let e=this.getCurrentFiscalYearQuarter(),t=F.getCurrentFiscalYear();return F.getFiscalYearQuarter(e,t)}static getFiscalYearQuarters(e){let t=e??F.getCurrentFiscalYear();return{Q1:F.getFiscalYearQuarter(1,t),Q2:F.getFiscalYearQuarter(2,t),Q3:F.getFiscalYearQuarter(3,t),Q4:F.getFiscalYearQuarter(4,t)}}};const Bz=["placeholder","id"],Fz={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},Oz=["id"],jz={class:"calendar__body"},Nz={class:"calendar__head"},_z={class:"calendar__header_label"},Wz={key:0},Uz={key:2},Gz={key:4},$z={class:"calendar__container"},Yz={key:0},Zz={class:"calendar__weeks"},Xz={class:"calendar__days"},Kz=["title","onClick"],Jz=["title","onClick"],Qz=["title","onClick"],eR=["onClick"],tR=["onClick"],G7=10,iR=c.defineComponent({__name:"NepaliDatePicker",props:{modelValue:{type:String,default:""},yearSelect:{type:Boolean,default:!0},monthSelect:{type:Boolean,default:!0},class:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:modelValue","onSelect"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(t.modelValue?new Y(t.modelValue):new Y),n=c.ref(!1),r=c.ref(t.modelValue),l=c.ref(null),h=c.ref(null),d=c.ref(null),u=c.ref(null),p=c.ref(t.modelValue?new Y(t.modelValue).getYear():new Y().getYear()),y=c.ref(t.modelValue?new Y(t.modelValue).getMonth():new Y().getMonth()),f=c.ref(!1),g=c.ref(!1),k=c.ref(H[0].year),b=c.ref(H.length+H[0].year-1),m=c.ref(0);c.watch(()=>t.modelValue,()=>{r.value=t.modelValue,p.value=t.modelValue?new Y(t.modelValue).getYear():new Y().getYear(),y.value=t.modelValue?new Y(t.modelValue).getMonth():new Y().getMonth(),a.value=t.modelValue?new Y(t.modelValue):new Y});const M=c.computed(()=>a.value.year==k.value&&a.value.month==0?[]:(H.forEach(D=>{let x=a.value.year,z=a.value.month-1;v.value[0].month==0&&(x=x-1,z=11),D.year===x&&D.days.forEach((ie,Re)=>{Re===z&&(h.value=ie)})}),Array(h.value).fill(null).map((D,x)=>new Y(a.value.year,a.value.month-1,x+1)).slice(-(I.value?I.value:0)))),v=c.computed(()=>(H.forEach(D=>{D.year===a.value.year&&D.days.forEach((x,z)=>{z===a.value.month&&(l.value=x)})}),Array(l.value).fill(null).map((D,x)=>new Y(a.value.year,a.value.month,x+1)))),C=c.computed(()=>a.value.year==b.value&&a.value.month==11?[]:(H.forEach(D=>{let x=a.value.year,z=a.value.month+1;v.value[0].month==11&&(x=x+1,z=0),D.year===x&&D.days.forEach((ie,Re)=>{Re===z&&(d.value=ie)})}),Array(d.value).fill(null).map((D,x)=>new Y(a.value.year,a.value.month+1,x+1)).slice(0,L.value))),I=c.computed(()=>{const D=new Y(p.value,y.value,1);return W7.forEach((x,z)=>{D.format("DDD")==="Su"?u.value=7:D.format("DDD")===x&&(u.value=z)}),u.value}),L=c.computed(()=>42-v.value.length-(I.value?I.value:0)),S=()=>{if(g.value=!g.value,f.value=!1,g.value){const D=a.value.year,x=H.findIndex(z=>z.year===D);m.value=Math.floor(x/G7)}},T=(D,x)=>{D?n.value=!0:x?n.value=!1:n.value=!n.value,n.value?document.addEventListener("click",u9):(document.removeEventListener("click",u9),LE())},R=()=>{f.value=!f.value,g.value=!1},O=()=>{let D=a.value.month+1,x=a.value.year;D>11&&(x++,D=0),x+1<k.value||x>b.value||(c9(D,x),a.value=new Y(x,D,1))},X=()=>{if(g.value)m.value<Tn.value-1&&m.value++;else{let D=a.value.month,x=a.value.year+1;x<k.value||x>b.value||(c9(D,x),a.value=new Y(x,D,1))}},P=()=>{let D=a.value.month-1,x=a.value.year;D<0&&(x--,D=11),x<k.value||x>b.value||(c9(D,x),a.value=new Y(x,D,1))},le=()=>{if(g.value)m.value>0&&m.value--;else{let D=a.value.month,x=a.value.year-1;x<k.value||x>b.value||(c9(D,x),a.value=new Y(x,D,1))}},be=D=>t.modelValue?new Y(t.modelValue).getTime()===D.getTime():!1,$=D=>a.value.month==D,we=D=>a.value.year==D,je=D=>{const x=new Y;return D.day===x.day&&D.year===x.year&&D.month===x.month},Ee=c.computed(()=>{const D=H.map(z=>z.year),x=m.value*G7;return D.slice(x,x+G7)}),Tn=c.computed(()=>Math.ceil(H.length/G7)),Dn=D=>{let x="";const z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ie=z.length;let Re=0;for(;Re<D;)x+=z.charAt(Math.floor(Math.random()*ie)),Re+=1;return x},zn=Dn(3)+Dn(3)+Dn(3),c9=(D,x)=>{y.value=D,p.value=x},xV=D=>{y.value=D,a.value.setMonth(D),f.value=!1},LV=D=>{p.value=D,a.value.setYear(D),g.value=!1,t.monthSelect&&(f.value=!0)},d9=D=>{a.value=D,r.value=a.value.format("YYYY-MM-DD"),i("update:modelValue",r.value),i("onSelect",r.value),T()},EV=()=>{/^\d{4}-\d{2}-\d{2}$/.test(r.value)||(r.value=t.modelValue);try{const D=new Y(r.value);d9(D)}catch{r.value=t.modelValue}},u9=D=>{const x=document.getElementById("nepali-calendar-"+zn),z=document.getElementById("nepali-date-input-"+zn);x&&!x.contains(D.target)&&z&&!z.contains(D.target)&&(n.value=!1,LE(),document.removeEventListener("click",u9))},LE=()=>{f.value=!1,g.value=!1,a.value=t.modelValue?new Y(t.modelValue):new Y},SV=()=>{f.value=!1,g.value=!1,a.value=new Y,i("update:modelValue",""),i("onSelect",""),T(!1,!0)};return c.onUnmounted(()=>{document.removeEventListener("click",u9)}),(D,x)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["nepali-datepicker",t.class]),key:zn},[c.createElementVNode("div",{class:c.normalizeClass(["calendar-input-div",o.modelValue?"calendar-input-contain-value":""])},[c.withDirectives(c.createElementVNode("input",{type:"text",class:"calendar-input",onClick:x[0]||(x[0]=z=>T(!0)),"onUpdate:modelValue":x[1]||(x[1]=z=>r.value=z),placeholder:o.placeholder,"aria-haspopup":"true",id:"nepali-date-input-"+zn,onKeyup:x[2]||(x[2]=c.withKeys(z=>EV(),["enter"]))},null,40,Bz),[[c.vModelText,r.value]]),c.createElementVNode("div",{class:"calendar-input-icon calender-icon",onClick:x[3]||(x[3]=c.withModifiers(z=>T(!0),["stop"]))},[n.value&&o.modelValue?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("svg",Fz,x[11]||(x[11]=[c.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)])))]),o.modelValue?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["calendar-input-icon",n.value?"":"calendar-clear-input"]),onClick:x[4]||(x[4]=c.withModifiers(z=>SV(),["stop"]))},x[12]||(x[12]=[c.createElementVNode("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c.createElementVNode("path",{id:"Vector",d:"M18 18L12 12M12 12L6 6M12 12L18 6M12 12L6 18","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)):c.createCommentVNode("",!0)],2),c.createVNode(c.Transition,{name:"calendar-animation"},{default:c.withCtx(()=>[n.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["calendar",{show:n.value}]),id:"nepali-calendar-"+zn,style:{"user-select":"none"}},[c.createElementVNode("div",jz,[c.createElementVNode("div",Nz,[c.createElementVNode("div",null,[c.createElementVNode("button",{class:"calendar__toggle_button",onClick:x[5]||(x[5]=z=>le())},x[13]||(x[13]=[c.createElementVNode("i",{class:"calendar-icon-double-left"},null,-1)])),!f.value&&!g.value?(c.openBlock(),c.createElementBlock("button",{key:0,class:"calendar__toggle_button",onClick:x[6]||(x[6]=z=>P())},x[14]||(x[14]=[c.createElementVNode("i",{class:"calendar-icon-left"},null,-1)]))):c.createCommentVNode("",!0)]),c.createElementVNode("div",_z,[o.monthSelect?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",Wz,c.toDisplayString(a.value.format("MMMM")),1)),!f.value&&!g.value&&o.monthSelect?(c.openBlock(),c.createElementBlock("a",{key:1,class:"calendar__header_selector",onClick:c.withModifiers(R,["stop"])},c.toDisplayString(a.value.format("MMMM")),1)):c.createCommentVNode("",!0),o.yearSelect?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",Uz,c.toDisplayString(a.value.format("YYYY")),1)),!g.value&&o.yearSelect?(c.openBlock(),c.createElementBlock("a",{key:3,class:"calendar__header_selector",onClick:c.withModifiers(S,["stop"])},c.toDisplayString(a.value.format("YYYY")),1)):c.createCommentVNode("",!0),g.value&&o.yearSelect?(c.openBlock(),c.createElementBlock("a",Gz,c.toDisplayString(Ee.value[0])+" ~ "+c.toDisplayString(Ee.value[Ee.value.length-1]),1)):c.createCommentVNode("",!0)]),c.createElementVNode("div",null,[!f.value&&!g.value?(c.openBlock(),c.createElementBlock("button",{key:0,class:"calendar__toggle_button",onClick:x[7]||(x[7]=z=>O())},x[15]||(x[15]=[c.createElementVNode("i",{class:"calendar-icon-right"},null,-1)]))):c.createCommentVNode("",!0),c.createElementVNode("button",{class:"calendar__toggle_button",onClick:x[8]||(x[8]=z=>X())},x[16]||(x[16]=[c.createElementVNode("i",{class:"calendar-icon-double-right"},null,-1)]))])]),c.createElementVNode("div",$z,[!f.value&&!g.value?(c.openBlock(),c.createElementBlock("div",Yz,[c.createElementVNode("div",Zz,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(W7),(z,ie)=>(c.openBlock(),c.createElementBlock("div",{key:ie,class:"calendar__weekday"},c.toDisplayString(z),1))),128))]),c.createElementVNode("div",Xz,[a.value.year==k.value&&a.value.month==0?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:0},c.renderList(I.value,z=>(c.openBlock(),c.createElementBlock("div",{class:"calendar__day_spacer",key:z}))),128)):c.createCommentVNode("",!0),I.value?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:1},c.renderList(M.value,(z,ie)=>(c.openBlock(),c.createElementBlock("div",{key:ie,class:"calendar__day not_current_month",title:`${z.year}-${z.month+1}-${z.day}`,onClick:Re=>d9(z)},[c.createElementVNode("span",null,c.toDisplayString(z.day),1)],8,Kz))),128)):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(v.value,(z,ie)=>(c.openBlock(),c.createElementBlock("div",{key:ie,class:c.normalizeClass(["calendar__day",{selected:be(z),today:je(z)}]),title:`${z.year}-${z.month+1}-${z.day}`,onClick:Re=>d9(z)},[c.createElementVNode("span",null,c.toDisplayString(z.day),1)],10,Jz))),128)),I.value?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:2},c.renderList(C.value,(z,ie)=>(c.openBlock(),c.createElementBlock("div",{key:ie,class:"calendar__day not_current_month",title:`${z.year}-${z.month+1}-${z.day}`,onClick:Re=>d9(z)},[c.createElementVNode("span",null,c.toDisplayString(z.day),1)],8,Qz))),128)):c.createCommentVNode("",!0),a.value.year==b.value&&a.value.month==11?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:3},c.renderList(L.value,z=>(c.openBlock(),c.createElementBlock("div",{class:"calendar__day_spacer",key:z}))),128)):c.createCommentVNode("",!0)])])):c.createCommentVNode("",!0),f.value?(c.openBlock(),c.createElementBlock("div",{key:1,class:"calendar__months",onClick:x[9]||(x[9]=c.withModifiers(()=>{},["stop"]))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(sC),(z,ie)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["calendar_month",{selected:$(ie)}]),onClick:Re=>xV(ie)},c.toDisplayString(z),11,eR))),256))])):c.createCommentVNode("",!0),g.value?(c.openBlock(),c.createElementBlock("div",{key:2,class:"calendar__years",onClick:x[10]||(x[10]=c.withModifiers(()=>{},["stop"]))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(Ee.value,z=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["calendar__year",{selected:we(z)}]),onClick:ie=>LV(z)},c.toDisplayString(z),11,tR))),256))])):c.createCommentVNode("",!0)])])],10,Oz)):c.createCommentVNode("",!0)]),_:1})],2))}}),aR=(o,e)=>{const t=o.__vccOpts||o;for(const[i,a]of e)t[i]=a;return t},lC=aR(iR,[["__scopeId","data-v-2be2f4ff"]]),oR={class:"flex gap-[5px]"},nR=c.defineComponent({__name:"DateSelector",props:{modelValue:{default:""}},emits:["update:modelValue"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(""),n=c.ref(!1);c.watch(()=>t.modelValue,l=>{/^\d{4}-\d{2}-\d{2}$/.test(l)?l!==a.value&&(a.value=n.value?l?$e(l):"":l):i("update:modelValue",n.value?a.value?he(a.value):"":a.value)},{immediate:!0}),c.watch(()=>a.value,l=>{i("update:modelValue",n.value?l?he(l):"":l)}),c.watch(()=>n.value,()=>{r()});const r=()=>{n.value?a.value=a.value?$e(a.value):"":a.value=a.value?he(a.value):""};return(l,h)=>(c.openBlock(),c.createElementBlock("div",oR,[n.value?(c.openBlock(),c.createBlock(c.unref(lC),{key:1,modelValue:a.value,"onUpdate:modelValue":h[1]||(h[1]=d=>a.value=d),class:"w-[120px]! min-w-[120px]! max-w-[120px]!"},null,8,["modelValue"])):(c.openBlock(),c.createBlock(c.unref(oC),{key:0,value:a.value,"onUpdate:value":h[0]||(h[0]=d=>a.value=d),valueType:"YYYY-MM-DD",class:"w-[120px]! min-w-[120px]! max-w-[120px]!"},null,8,["value"])),c.createVNode(F9,{modelValue:n.value,"onUpdate:modelValue":h[2]||(h[2]=d=>n.value=d),onText:"BS",offText:"AD"},null,8,["modelValue"])]))}});function hC(o){return o===0?!1:Array.isArray(o)&&o.length===0?!0:!o}function sR(o){return(...e)=>!o(...e)}function rR(o,e){return o===void 0&&(o="undefined"),o===null&&(o="null"),o===!1&&(o="false"),o.toString().toLowerCase().indexOf(e.trim())!==-1}function lR(o){return o.filter(e=>!e.$isLabel)}function cC(o,e){return t=>t.reduce((i,a)=>a[o]&&a[o].length?(i.push({$groupLabel:a[e],$isLabel:!0}),i.concat(a[o])):i,[])}const yL=(...o)=>e=>o.reduce((t,i)=>i(t),e);var hR={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(o,e){return hC(o)?"":e?o[e]:o}},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},filteringSortFunc:{type:Function,default:null}},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 o=this.search||"",e=o.toLowerCase().trim();let t=this.options.concat();return this.internalSearch?t=this.groupValues?this.filterAndFlat(t,e,this.label):this.filterOptions(t,e,this.label,this.customLabel):t=this.groupValues?cC(this.groupValues,this.groupLabel)(t):t,t=this.hideSelected?t.filter(sR(this.isSelected)):t,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?t.push({isTag:!0,label:o}):t.unshift({isTag:!0,label:o})),t.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(o=>o[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(o,e,t){return yL(this.filterGroups(e,t,this.groupValues,this.groupLabel,this.customLabel),cC(this.groupValues,this.groupLabel))(o)},flatAndStrip(o){return yL(cC(this.groupValues,this.groupLabel),lR)(o)},updateSearch(o){this.search=o},isExistingOption(o){return this.options?this.optionKeys.indexOf(o)>-1:!1},isSelected(o){const e=this.trackBy?o[this.trackBy]:o;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(o){return!!o.$isDisabled},getOptionLabel(o){if(hC(o))return"";if(o.isTag)return o.label;if(o.$isLabel)return o.$groupLabel;const e=this.customLabel(o,this.label);return hC(e)?"":e},select(o,e){if(o.$isLabel&&this.groupSelect){this.selectGroup(o);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||o.$isDisabled||o.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(o.isTag)this.$emit("tag",o.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(o)){e!=="Tab"&&this.removeElement(o);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([o])):this.$emit("update:modelValue",o),this.$emit("select",o,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(o){const e=this.options.find(t=>t[this.groupLabel]===o.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const t=this.trackBy?e[this.groupValues].map(a=>a[this.trackBy]):e[this.groupValues],i=this.internalValue.filter(a=>t.indexOf(this.trackBy?a[this.trackBy]:a)===-1);this.$emit("update:modelValue",i)}else{const t=e[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&t.splice(this.max-this.internalValue.length),this.$emit("select",t,this.id),this.$emit("update:modelValue",this.internalValue.concat(t))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(o){return o[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(o){return o[this.groupValues].every(this.isOptionDisabled)},removeElement(o,e=!0){if(this.disabled||o.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const t=typeof o=="object"?this.valueKeys.indexOf(o[this.trackBy]):this.valueKeys.indexOf(o);if(this.multiple){const i=this.internalValue.slice(0,t).concat(this.internalValue.slice(t+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",o,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 o=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>o||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(o-40,this.maxHeight))},filterOptions(o,e,t,i){return e?o.filter(a=>rR(i(a,t),e)).sort((a,n)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(a,n):i(a,t).length-i(n,t).length):o},filterGroups(o,e,t,i,a){return n=>n.map(r=>{if(!r[t])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=this.filterOptions(r[t],o,e,a);return l.length?{[i]:r[i],[t]:l}:[]})}}},cR={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(o,e){return{"multiselect__option--highlight":o===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(o,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const t=this.options.find(i=>i[this.groupLabel]===e.$groupLabel);return t&&!this.wholeGroupDisabled(t)?["multiselect__option--group",{"multiselect__option--highlight":o===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(t)}]:"multiselect__option--disabled"},addPointerElement({key:o}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],o),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(o){this.pointer=o,this.pointerDirty=!0}}},fL={name:"vue-multiselect",mixins:[hR,cR],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:o=>`and ${o} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},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)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const dR=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],uR={ref:"tags",class:"multiselect__tags"},pR={class:"multiselect__tags-wrap"},yR=["textContent"],fR=["onKeypress","onMousedown"],mR=["textContent"],gR={class:"multiselect__spinner"},kR=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],bR=["id","aria-multiselectable"],wR={key:0},vR={class:"multiselect__option"},MR=["aria-selected","id","role"],CR=["onClick","onMouseenter","data-select","data-selected","data-deselect"],xR=["data-select","data-deselect","onMouseenter","onMousedown"],LR={class:"multiselect__option"},ER={class:"multiselect__option"};function SR(o,e,t,i,a,n){return c.openBlock(),c.createElementBlock("div",{tabindex:o.searchable?-1:t.tabindex,class:c.normalizeClass([{"multiselect--active":o.isOpen,"multiselect--disabled":t.disabled,"multiselect--above":n.isAbove,"multiselect--has-options-group":n.hasOptionGroup},"multiselect"]),onFocus:e[14]||(e[14]=r=>o.activate()),onBlur:e[15]||(e[15]=r=>o.searchable?!1:o.deactivate()),onKeydown:[e[16]||(e[16]=c.withKeys(c.withModifiers(r=>o.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=c.withKeys(c.withModifiers(r=>o.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=c.withKeys(c.withModifiers(r=>o.addPointerElement(r),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=c.withKeys(r=>o.deactivate(),["esc"])),role:"combobox","aria-expanded":o.isOpen,"aria-owns":"listbox-"+o.id,"aria-activedescendant":o.isOpen&&o.pointer!==null?o.id+"-"+o.pointer:null},[c.renderSlot(o.$slots,"caret",{toggle:o.toggle},()=>[c.createElementVNode("div",{onMousedown:e[0]||(e[0]=c.withModifiers(r=>o.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),c.renderSlot(o.$slots,"clear",{search:o.search}),c.createElementVNode("div",uR,[c.renderSlot(o.$slots,"selection",{search:o.search,remove:o.removeElement,values:n.visibleValues,isOpen:o.isOpen},()=>[c.withDirectives(c.createElementVNode("div",pR,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.visibleValues,(r,l)=>c.renderSlot(o.$slots,"tag",{option:r,search:o.search,remove:o.removeElement},()=>[(c.openBlock(),c.createElementBlock("span",{class:"multiselect__tag",key:l,onMousedown:e[1]||(e[1]=c.withModifiers(()=>{},["prevent"]))},[c.createElementVNode("span",{textContent:c.toDisplayString(o.getOptionLabel(r))},null,8,yR),c.createElementVNode("i",{tabindex:"1",onKeypress:c.withKeys(c.withModifiers(h=>o.removeElement(r),["prevent"]),["enter"]),onMousedown:c.withModifiers(h=>o.removeElement(r),["prevent"]),class:"multiselect__tag-icon"},null,40,fR)],32))])),256))],512),[[c.vShow,n.visibleValues.length>0]]),o.internalValue&&o.internalValue.length>t.limit?c.renderSlot(o.$slots,"limit",{key:0},()=>[c.createElementVNode("strong",{class:"multiselect__strong",textContent:c.toDisplayString(t.limitText(o.internalValue.length-t.limit))},null,8,mR)]):c.createCommentVNode("v-if",!0)]),c.createVNode(c.Transition,{name:"multiselect__loading"},{default:c.withCtx(()=>[c.renderSlot(o.$slots,"loading",{},()=>[c.withDirectives(c.createElementVNode("div",gR,null,512),[[c.vShow,t.loading]])])]),_:3}),o.searchable?(c.openBlock(),c.createElementBlock("input",{key:0,ref:"search",name:t.name,id:o.id,type:"text",autocomplete:"off",spellcheck:t.spellcheck,placeholder:o.placeholder,required:n.isRequired,style:c.normalizeStyle(n.inputStyle),value:o.search,disabled:t.disabled,tabindex:t.tabindex,"aria-label":t.name+"-searchbox",onInput:e[2]||(e[2]=r=>o.updateSearch(r.target.value)),onFocus:e[3]||(e[3]=c.withModifiers(r=>o.activate(),["prevent"])),onBlur:e[4]||(e[4]=c.withModifiers(r=>o.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=c.withKeys(r=>o.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=c.withKeys(c.withModifiers(r=>o.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=c.withKeys(c.withModifiers(r=>o.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=c.withKeys(c.withModifiers(r=>o.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=c.withKeys(c.withModifiers(r=>o.addPointerElement(r),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+o.id},null,44,kR)):c.createCommentVNode("v-if",!0),n.isSingleLabelVisible?(c.openBlock(),c.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=c.withModifiers((...r)=>o.toggle&&o.toggle(...r),["prevent"]))},[c.renderSlot(o.$slots,"singleLabel",{option:n.singleValue},()=>[c.createTextVNode(c.toDisplayString(o.currentOptionLabel),1)])],32)):c.createCommentVNode("v-if",!0),n.isPlaceholderVisible?(c.openBlock(),c.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=c.withModifiers((...r)=>o.toggle&&o.toggle(...r),["prevent"]))},[c.renderSlot(o.$slots,"placeholder",{},()=>[c.createTextVNode(c.toDisplayString(o.placeholder),1)])],32)):c.createCommentVNode("v-if",!0)],512),c.createVNode(c.Transition,{name:"multiselect",persisted:""},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...r)=>o.activate&&o.activate(...r)),tabindex:"-1",onMousedown:e[13]||(e[13]=c.withModifiers(()=>{},["prevent"])),style:c.normalizeStyle({maxHeight:o.optimizedHeight+"px"}),ref:"list"},[c.createElementVNode("ul",{class:"multiselect__content",style:c.normalizeStyle(n.contentStyle),role:"listbox",id:"listbox-"+o.id,"aria-multiselectable":o.multiple},[c.renderSlot(o.$slots,"beforeList"),o.multiple&&o.max===o.internalValue.length?(c.openBlock(),c.createElementBlock("li",wR,[c.createElementVNode("span",vR,[c.renderSlot(o.$slots,"maxElements",{},()=>[c.createTextVNode("Maximum of "+c.toDisplayString(o.max)+" options selected. First remove a selected option to select another.",1)])])])):c.createCommentVNode("v-if",!0),!o.max||o.internalValue.length<o.max?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:1},c.renderList(o.filteredOptions,(r,l)=>(c.openBlock(),c.createElementBlock("li",{class:"multiselect__element",key:l,"aria-selected":o.isSelected(r),id:o.id+"-"+l,role:r&&(r.$isLabel||r.$isDisabled)?null:"option"},[r&&(r.$isLabel||r.$isDisabled)?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass([o.optionHighlight(l,r),"multiselect__option"]),onClick:c.withModifiers(h=>o.select(r),["stop"]),onMouseenter:c.withModifiers(h=>o.pointerSet(l),["self"]),"data-select":r&&r.isTag?o.tagPlaceholder:n.selectLabelText,"data-selected":n.selectedLabelText,"data-deselect":n.deselectLabelText},[c.renderSlot(o.$slots,"option",{option:r,search:o.search,index:l},()=>[c.createElementVNode("span",null,c.toDisplayString(o.getOptionLabel(r)),1)])],42,CR)),r&&(r.$isLabel||r.$isDisabled)?(c.openBlock(),c.createElementBlock("span",{key:1,"data-select":o.groupSelect&&n.selectGroupLabelText,"data-deselect":o.groupSelect&&n.deselectGroupLabelText,class:c.normalizeClass([o.groupHighlight(l,r),"multiselect__option"]),onMouseenter:c.withModifiers(h=>o.groupSelect&&o.pointerSet(l),["self"]),onMousedown:c.withModifiers(h=>o.selectGroup(r),["prevent"])},[c.renderSlot(o.$slots,"option",{option:r,search:o.search,index:l},()=>[c.createElementVNode("span",null,c.toDisplayString(o.getOptionLabel(r)),1)])],42,xR)):c.createCommentVNode("v-if",!0)],8,MR))),128)):c.createCommentVNode("v-if",!0),c.withDirectives(c.createElementVNode("li",null,[c.createElementVNode("span",LR,[c.renderSlot(o.$slots,"noResult",{search:o.search},()=>[e[20]||(e[20]=c.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[c.vShow,t.showNoResults&&o.filteredOptions.length===0&&o.search&&!t.loading]]),c.withDirectives(c.createElementVNode("li",null,[c.createElementVNode("span",ER,[c.renderSlot(o.$slots,"noOptions",{},()=>[e[21]||(e[21]=c.createTextVNode("List is empty."))])])],512),[[c.vShow,t.showNoOptions&&(o.options.length===0||n.hasOptionGroup===!0&&o.filteredOptions.length===0)&&!o.search&&!t.loading]]),c.renderSlot(o.$slots,"afterList")],12,bR)],36),[[c.vShow,o.isOpen]])]),_:3})],42,dR)}fL.render=SR;const IR={class:"flex gap-[5px] w-[100%]"},TR=c.defineComponent({__name:"DateRange",props:{modelValue:{default:()=>({startDate:"",endDate:"",dateType:"today",isBS:!1})}},emits:["update:modelValue","search"],setup(o,{emit:e}){const t=e,i=o,a=new ye,n=a.format("YYYY-MM-DD"),r=n?he(n):"",l=c.ref(i.modelValue.isBS?i.modelValue.isBS:!1),h=c.ref(""),d=c.ref(""),u=v=>y.find(C=>C.id===v)||y[4],p=c.computed({get(){return u(i.modelValue.dateType||"today")},set(v){m({dateType:v.id})}}),y=[{name:"Year to date",id:"year_to_date"},{name:"Quarter to date",id:"quarter_to_date"},{name:"Month to date",id:"month_to_date"},{name:"Week to date",id:"week_to_date"},{name:"Today",id:"today"},{name:"Last 30 days",id:"last_30_days"},{name:"Last 90 days",id:"last_90_days"},{name:"First quarter (Q1)",id:"first_quarter"},{name:"Second quarter (Q2)",id:"second_quarter"},{name:"Third quarter (Q3)",id:"third_quarter"},{name:"Fourth quarter (Q4)",id:"fourth_quarter"},{name:"Custom",id:"custom"}];c.onMounted(()=>{f()});const f=()=>{if(i.modelValue.startDate&&i.modelValue.endDate)h.value=l.value?$e(i.modelValue.startDate):i.modelValue.startDate,d.value=l.value?$e(i.modelValue.endDate):i.modelValue.endDate;else{const v=l.value?n:r;h.value=v,d.value=v,m({startDate:r,endDate:r})}i.modelValue.dateType||(p.value=u("today"),m({dateType:"today"})),i.modelValue.isBS||m({isBS:!1})},g=()=>{h.value&&(h.value=h.value?l.value?$e(h.value):he(h.value):""),d.value&&(d.value=d.value?l.value?$e(d.value):he(d.value):"")},k=()=>{m({dateType:"custom"}),b()},b=()=>{let v=h.value,C=d.value;l.value&&(v=h.value?he(h.value):"",C=d.value?he(d.value):""),m({startDate:v,endDate:C})},m=v=>{t("update:modelValue",{...i.modelValue,...v})},M=()=>{b(),t("search",i.modelValue)};return c.watch(()=>l.value,()=>{g(),m({isBS:l.value})}),c.watch(()=>i.modelValue.startDate,v=>{v&&v!==(h.value?l.value?he(h.value):h.value:"")&&(h.value=l.value?$e(v):v,m({dateType:"custom"}))}),c.watch(()=>i.modelValue.endDate,v=>{v&&v!==(d.value?l.value?he(d.value):d.value:"")&&(d.value=l.value?$e(v):v,m({dateType:"custom"}))}),c.watch(()=>i.modelValue.isBS,v=>{v!==l.value&&(l.value=v)}),c.watch(()=>h.value,()=>{b()}),c.watch(()=>d.value,()=>{b()}),c.watch(()=>i.modelValue.dateType,v=>{if(v==="custom")return;let C,I;switch(v){case"year_to_date":C=ye.getFiscalYearQuarter(1).start,I=a;break;case"quarter_to_date":C=a.getCurrentFiscalYearQuarterDates().start,I=a;break;case"month_to_date":C=a.startOfMonth(),I=a;break;case"week_to_date":C=a.startOfWeek(),I=a;break;case"today":C=a,I=a;break;case"last_30_days":C=a.addDays(-30),I=a;break;case"last_90_days":C=a.addDays(-90),I=a;break;case"first_quarter":C=ye.getFiscalYearQuarter(1).start,I=ye.getFiscalYearQuarter(1).end;break;case"second_quarter":C=ye.getFiscalYearQuarter(2).start,I=ye.getFiscalYearQuarter(2).end;break;case"third_quarter":C=ye.getFiscalYearQuarter(3).start,I=ye.getFiscalYearQuarter(3).end;break;case"fourth_quarter":C=ye.getFiscalYearQuarter(4).start,I=ye.getFiscalYearQuarter(4).end;break;default:return}const L=C.format("YYYY-MM-DD"),S=I.format("YYYY-MM-DD");l.value?(h.value=L,d.value=S):(h.value=L?he(L):"",d.value=S?he(S):""),m({startDate:L?he(L):"",endDate:S?he(S):""})}),(v,C)=>(c.openBlock(),c.createElementBlock("div",IR,[c.createVNode(c.unref(fL),{modelValue:p.value,"onUpdate:modelValue":C[0]||(C[0]=I=>p.value=I),options:y,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Select Date Type",class:"remove-height w-[160px] max-w-[160px]",label:"name","track-by":"id"},null,8,["modelValue"]),l.value?(c.openBlock(),c.createBlock(c.unref(lC),{key:1,modelValue:h.value,"onUpdate:modelValue":C[3]||(C[3]=I=>h.value=I),class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onOnSelect:C[4]||(C[4]=I=>k())},null,8,["modelValue"])):(c.openBlock(),c.createBlock(c.unref(oC),{key:0,value:h.value,"onUpdate:value":C[1]||(C[1]=I=>h.value=I),valueType:"YYYY-MM-DD",class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onChange:C[2]||(C[2]=I=>k())},null,8,["value"])),C[11]||(C[11]=c.createElementVNode("p",{class:"h-fit my-auto"},"-",-1)),l.value?(c.openBlock(),c.createBlock(c.unref(lC),{key:3,modelValue:d.value,"onUpdate:modelValue":C[7]||(C[7]=I=>d.value=I),class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onOnSelect:C[8]||(C[8]=I=>k())},null,8,["modelValue"])):(c.openBlock(),c.createBlock(c.unref(oC),{key:2,value:d.value,"onUpdate:value":C[5]||(C[5]=I=>d.value=I),valueType:"YYYY-MM-DD",class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onChange:C[6]||(C[6]=I=>k())},null,8,["value"])),c.createVNode(F9,{modelValue:l.value,"onUpdate:modelValue":C[9]||(C[9]=I=>l.value=I),onText:"BS",offText:"AD"},null,8,["modelValue"]),c.createElementVNode("button",{class:"btn-outline",onClick:C[10]||(C[10]=I=>M())},"Search")]))}}),DR={mounted:(o,e)=>{if(e.value){o.classList.add("flex"),o.classList.add("flex-col");const t=o.querySelector("input"),i=document.createElement("span");i.classList.add("text-red-500","text-[12px]","error-message"),t==null||t.classList.add("border-red-500"),o.classList.add("border-red-500"),i.textContent=e.value,o.appendChild(i)}},updated:(o,e)=>{const t=o.querySelector("input"),i=o.querySelector(".error-message");if(!i&&e.value){const a=document.createElement("span");a.classList.add("text-red-500","text-[12px]","error-message"),a.textContent=e.value,t==null||t.classList.add("border-red-500"),o.appendChild(a)}else e.value?(o.classList.add("input-error"),t==null||t.classList.add("border-red-500"),i&&(i.textContent=e.value)):(o.classList.remove("input-error"),o.classList.remove("border-red-500"),t==null||t.classList.remove("border-red-500"),i&&i.remove())}},dC=new WeakMap,zR={mounted(o,e){let t=null,i=0;o.classList.add("hide-scrollbar");const a=()=>{o.classList.remove("hide-scrollbar")},n=()=>{o.classList.add("hide-scrollbar"),i=Date.now()},r=()=>{Date.now()-i>=100&&a(),t&&clearTimeout(t),t=setTimeout(n,1e3)};o.addEventListener("scroll",r),dC.set(o,r)},unmounted(o){const e=dC.get(o);e&&(o.removeEventListener("scroll",e),dC.delete(o))}};var uC={exports:{}},mL;function RR(){if(mL)return uC.exports;mL=1;var o=uC.exports={},e,t;function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=i}catch{e=i}try{typeof clearTimeout=="function"?t=clearTimeout:t=a}catch{t=a}})();function n(k){if(e===setTimeout)return setTimeout(k,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(k,0);try{return e(k,0)}catch{try{return e.call(null,k,0)}catch{return e.call(this,k,0)}}}function r(k){if(t===clearTimeout)return clearTimeout(k);if((t===a||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(k);try{return t(k)}catch{try{return t.call(null,k)}catch{return t.call(this,k)}}}var l=[],h=!1,d,u=-1;function p(){!h||!d||(h=!1,d.length?l=d.concat(l):u=-1,l.length&&y())}function y(){if(!h){var k=n(p);h=!0;for(var b=l.length;b;){for(d=l,l=[];++u<b;)d&&d[u].run();u=-1,b=l.length}d=null,h=!1,r(k)}}o.nextTick=function(k){var b=new Array(arguments.length-1);if(arguments.length>1)for(var m=1;m<arguments.length;m++)b[m-1]=arguments[m];l.push(new f(k,b)),l.length===1&&!h&&n(y)};function f(k,b){this.fun=k,this.array=b}f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function g(){}return o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(k){return[]},o.binding=function(k){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(k){throw new Error("process.chdir is not supported")},o.umask=function(){return 0},uC.exports}var gL=RR();const pC=new WeakMap,HR={mounted(o){gL.nextTick(()=>{const e=()=>{typeof o.select=="function"&&o.select()};o.addEventListener("focus",e),pC.set(o,e)})},unmounted(o){const e=pC.get(o);e&&(o.removeEventListener("focus",e),pC.delete(o))}},kL=(o,e,t="RS.",i="usa",a="nepali")=>{const n=parseFloat(o);if(isNaN(n))return"";const r=i==="euro",l=r?",":".",h=r?".":",",d=n.toFixed(2).split(".");let u=d[0];const p=d[1];if(a==="nepali"){const y=u.slice(-3),f=u.slice(0,-3),g=f.replace(/\B(?=(\d{2})+(?!\d))/g,h);u=f?g+h+y:y}else u=u.replace(/\B(?=(\d{3})+(?!\d))/g,h);return e&&t?`${t}${u}${l}${p}`:`${u}${l}${p}`},bL=(o,e,t="RS.",i="usa",a="nepali")=>{if(!o)return 0;const n=i==="euro",r=n?",":".",l=n?".":",";let h=o.trim();e&&t&&h.startsWith(t)&&(h=h.slice(t.length).trim());const d=new RegExp(`\\${l}(?=\\d{2,3})`,"g");h=h.replace(d,"");const u=h.lastIndexOf(r);u!==-1&&r!=="."&&(h=h.slice(0,u)+"."+h.slice(u+1));const p=parseFloat(h);return isNaN(p)?0:p},$7=(o,e,t=!0)=>{t?o.value=kL(o.value,!1,"",e.format,e.structure):o.value=bL(o.value,!1,"",e.format,e.structure).toString()},AR={mounted(o,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};gL.nextTick(()=>{o.value&&$7(o,t)});const i=()=>{$7(o,t),o.removeEventListener("blur",i),o.removeEventListener("keydown",n)},a=()=>{$7(o,t,!1),o.addEventListener("blur",i),o.addEventListener("keydown",n)},n=r=>{const l=/^\d$/.test(r.key),h=r.key===".",d=r.ctrlKey||r.metaKey,u=r.key==="Enter"||r.key==="Tab"||r.key==="Backspace",p=o.value.includes(".");if(h&&p){r.preventDefault();return}l||h&&!p||d||u||r.preventDefault()};o.addEventListener("focus",a),o.eventCleanUp=()=>{o.removeEventListener("focus",a),o.removeEventListener("blur",i),o.removeEventListener("keydown",n)}},updated(o,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};document.activeElement!=o&&$7(o,t)},unmounted(o){}},VR={mounted(o){const e=o.closest(".sidebar-dropdown");if(!e)return;const t=700,i=()=>{const r=o.scrollHeight,l=r*1e3/t;o.style.overflow="hidden",o.style.transition=`height ${l}ms linear`,o.style.height=`${r}px`,clearTimeout(o._timeout),o._timeout=window.setTimeout(()=>{o.style.height="",o.style.transition="",o.style.overflow=""},l)},a=()=>{const r=o.scrollHeight,l=r*1e3/t;o.style.transition=`height ${l}ms linear`,o.style.overflow="hidden",o.style.height=`${r}px`,o.offsetHeight,o.style.height="0px",clearTimeout(o._timeout),o._timeout=window.setTimeout(()=>{o.style.transition="",o.style.overflow=""},l)},n=new MutationObserver(()=>{e.classList.contains("sidebar-item-open")?i():a()});n.observe(e,{attributes:!0,attributeFilter:["class"]}),o._observer=n,e.classList.contains("sidebar-item-open")?o.style.height="auto":(o.style.height="0px",o.style.overflow="hidden")},unmounted(o){o._observer&&o._observer.disconnect(),clearTimeout(o._timeout)}};class PR{constructor(){this.socket=null,this.url="",this.isConnected=!1}setURL(e){this.url=e}init(){var e,t;return this.url==""?(console.log("❗WebSocket url not set!"),Promise.resolve(this)):(((e=this.socket)==null?void 0:e.readyState)==WebSocket.OPEN&&((t=this.socket)==null||t.close()),this.socket?(console.log("❗WebSocket is already initialized"),Promise.resolve(this)):(this.socket=new WebSocket(this.url),new Promise((i,a)=>{this.socket.onopen=()=>{this.isConnected=!0,console.log("✅ WebSocket connected"),i(this)},this.socket.onclose=()=>{this.isConnected=!1},this.socket.onerror=n=>{this.close(),console.error("⛔ WebSocket error occurred:",n),a(n)}})))}onMessage(e){return this.socket?(this.socket.onmessage=t=>{e&&t.data&&e(t.data)},Promise.resolve(this)):(console.error("❗WebSocket is not initialized"),Promise.resolve(this))}sendMessage(e){return new Promise((t,i)=>{if(this.socket&&this.isConnected)try{this.socket.send(e),t()}catch(a){console.error("❗Error sending message:",a),i(a)}else{const a="❗WebSocket is not connected";console.error(a),i(new Error(a))}})}close(){this.socket&&(this.socket.close(),this.isConnected=!1,console.log("❌ WebSocket connection closed"))}getConnectionStatus(){return this.isConnected}}/*!
8045
+ `);return(h,d)=>{const u=c.resolveComponent("RouterLink");return c.openBlock(),c.createBlock(c.Teleport,{to:"body"},[c.createVNode(c.Transition,{name:"towser"},{default:c.withCtx(()=>[h.show?(c.openBlock(),c.createElementBlock("div",qT,[c.createElementVNode("div",BT,[c.createElementVNode("div",FT,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(h.title,(p,y)=>(c.openBlock(),c.createElementBlock("span",{key:y,class:"flex"},[p.link?p.link!=="#"?(c.openBlock(),c.createBlock(u,{key:1,to:p.link,class:"hover:underline"},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(p.name),1)]),_:2},1032,["to"])):(c.openBlock(),c.createElementBlock("a",{key:2,onClick:d[0]||(d[0]=f=>i("onClose")),class:"hover:underline cursor-pointer"},c.toDisplayString(p.name),1)):(c.openBlock(),c.createElementBlock("span",OT,c.toDisplayString(p.name),1)),h.title.length!==0&&y+1!==h.title.length?(c.openBlock(),c.createElementBlock("svg",jT,d[2]||(d[2]=[c.createElementVNode("path",{d:"M9 6L15 12L9 18",stroke:"gray",style:{"stroke-width":"2.5px"},"stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):c.createCommentVNode("",!0)]))),128))]),c.createElementVNode("button",{class:"absolute cursor-pointer text-[20px] right-4 top-[15px]",onClick:d[1]||(d[1]=p=>i("onClose"))},d[3]||(d[3]=[c.createElementVNode("svg",{width:"16px",height:"16px",viewBox:"0 0 16.00 16.00",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:"duration-200","stroke-width":"0.592"},[c.createElementVNode("g",{id:"SVGRepo_iconCarrier"},[c.createElementVNode("path",{d:"M0 14.545L1.455 16 8 9.455 14.545 16 16 14.545 9.455 8 16 1.455 14.545 0 8 6.545 1.455 0 0 1.455 6.545 8z","fill-rule":"evenodd"})])],-1)]))]),c.createElementVNode("div",null,[c.createElementVNode("div",{class:c.normalizeClass([h.double?"flex gap-[15px]":"","px-[15px]"])},[c.createElementVNode("div",{class:"my-[75px] bg-white p-4 overflow-y-auto overflow-x-hidden",style:c.normalizeStyle(r.value)},[c.renderSlot(h.$slots,"default",{},void 0,!0)],4),h.double?(c.openBlock(),c.createElementBlock("div",{key:0,class:"my-[75px] bg-white p-4 overflow-y-auto overflow-x-hidden",style:c.normalizeStyle(l.value)},[c.renderSlot(h.$slots,"body2",{},void 0,!0)],4)):c.createCommentVNode("",!0)],2)]),h.actions?(c.openBlock(),c.createElementBlock("div",NT,[c.createElementVNode("div",_T,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(h.actions,p=>(c.openBlock(),c.createElementBlock("button",{key:p.emit,class:c.normalizeClass(p.class||"btn"),onClick:y=>i(p.emit)},c.toDisplayString(p.title),11,WT))),128))])])):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]),_:3})])}}}),[["__scopeId","data-v-93cc0e1e"]]);function dx(o){return o instanceof Date||Object.prototype.toString.call(o)==="[object Date]"}function T7(o){return dx(o)?new Date(o.getTime()):o==null?new Date(NaN):new Date(o)}function $T(o){return dx(o)&&!isNaN(o.getTime())}function ux(o){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 t=T7(o),i=t.getDay(),a=(i+7-e)%7;return t.setDate(t.getDate()-a),t.setHours(0,0,0,0),t}function px(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.firstDayOfWeek,i=t===void 0?0:t,a=e.firstWeekContainsDate,n=a===void 0?1:a;if(!(n>=1&&n<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var r=T7(o),l=r.getFullYear(),h=new Date(0),d=l+1;d>=l-1&&(h.setFullYear(d,0,n),h.setHours(0,0,0,0),h=ux(h,i),!(r.getTime()>=h.getTime()));d--);return h}function O9(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.firstDayOfWeek,i=t===void 0?0:t,a=e.firstWeekContainsDate,n=a===void 0?1:a,r=T7(o),l=ux(r,i),h=px(r,{firstDayOfWeek:i,firstWeekContainsDate:n}),d=l.getTime()-h.getTime();return Math.round(d/(7*24*3600*1e3))+1}var j9={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},GT=/\[([^\]]+)]|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 pe(o){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,t="".concat(Math.abs(o)),i=o<0?"-":"";t.length<e;)t="0".concat(t);return i+t}function yx(o){return Math.round(o.getTimezoneOffset()/15)*15}function fx(o){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=o>0?"-":"+",i=Math.abs(o),a=Math.floor(i/60),n=i%60;return t+pe(a,2)+e+pe(n,2)}var mx=function(e,t,i){var a=e<12?"AM":"PM";return i?a.toLocaleLowerCase():a},yn={Y:function(e){var t=e.getFullYear();return t<=9999?"".concat(t):"+".concat(t)},YY:function(e){return pe(e.getFullYear(),4).substr(2)},YYYY:function(e){return pe(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return pe(e.getMonth()+1,2)},MMM:function(e,t){return t.monthsShort[e.getMonth()]},MMMM:function(e,t){return t.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return pe(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return pe(e.getHours(),2)},h:function(e){var t=e.getHours();return t===0?12:t>12?t%12:t},hh:function(){var e=yn.h.apply(yn,arguments);return pe(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return pe(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return pe(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return pe(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return pe(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,t){return t.weekdaysMin[e.getDay()]},ddd:function(e,t){return t.weekdaysShort[e.getDay()]},dddd:function(e,t){return t.weekdays[e.getDay()]},A:function(e,t){var i=t.meridiem||mx;return i(e.getHours(),e.getMinutes(),!1)},a:function(e,t){var i=t.meridiem||mx;return i(e.getHours(),e.getMinutes(),!0)},Z:function(e){return fx(yx(e),":")},ZZ:function(e){return fx(yx(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,t){return O9(e,{firstDayOfWeek:t.firstDayOfWeek,firstWeekContainsDate:t.firstWeekContainsDate})},ww:function(e,t){return pe(yn.w(e,t),2)}};function N9(o,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=e?String(e):"YYYY-MM-DDTHH:mm:ss.SSSZ",a=T7(o);if(!$T(a))return"Invalid Date";var n=t.locale||j9;return i.replace(GT,function(r,l){return l||(typeof yn[r]=="function"?"".concat(yn[r](a,n)):r)})}function gx(o){return XT(o)||ZT(o)||YT()}function YT(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function ZT(o){if(Symbol.iterator in Object(o)||Object.prototype.toString.call(o)==="[object Arguments]")return Array.from(o)}function XT(o){if(Array.isArray(o)){for(var e=0,t=new Array(o.length);e<o.length;e++)t[e]=o[e];return t}}function kx(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(o);e&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),t.push.apply(t,i)}return t}function KT(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?kx(t,!0).forEach(function(i){Ne(o,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):kx(t).forEach(function(i){Object.defineProperty(o,i,Object.getOwnPropertyDescriptor(t,i))})}return o}function JT(o,e){return tD(o)||eD(o,e)||QT()}function QT(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function eD(o,e){if(Symbol.iterator in Object(o)||Object.prototype.toString.call(o)==="[object Arguments]"){var t=[],i=!0,a=!1,n=void 0;try{for(var r=o[Symbol.iterator](),l;!(i=(l=r.next()).done)&&(t.push(l.value),!(e&&t.length===e));i=!0);}catch(h){a=!0,n=h}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw n}}return t}}function tD(o){if(Array.isArray(o))return o}function Ne(o,e,t){return e in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}var iD=/(\[[^\[]*\])|(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,bx=/\d/,_e=/\d\d/,aD=/\d{3}/,oD=/\d{4}/,Zo=/\d\d?/,nD=/[+-]\d\d:?\d\d/,wx=/[+-]?\d+/,sD=/[+-]?\d+(\.\d{1,3})?/,_9="year",D7="month",vx="day",Mx="hour",Cx="minute",xx="second",W9="millisecond",Lx={},W=function(e,t,i){var a=Array.isArray(e)?e:[e],n;typeof i=="string"?n=function(l){var h=parseInt(l,10);return Ne({},i,h)}:n=i,a.forEach(function(r){Lx[r]=[t,n]})},rD=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},fn=function(e){return function(t){var i=t[e];if(!Array.isArray(i))throw new Error("Locale[".concat(e,"] need an array"));return new RegExp(i.map(rD).join("|"))}},mn=function(e,t){return function(i,a){var n=a[e];if(!Array.isArray(n))throw new Error("Locale[".concat(e,"] need an array"));var r=n.indexOf(i);if(r<0)throw new Error("Invalid Word");return Ne({},t,r)}};W("Y",wx,_9),W("YY",_e,function(o){var e=new Date().getFullYear(),t=Math.floor(e/100),i=parseInt(o,10);return i=(i>68?t-1:t)*100+i,Ne({},_9,i)}),W("YYYY",oD,_9),W("M",Zo,function(o){return Ne({},D7,parseInt(o,10)-1)}),W("MM",_e,function(o){return Ne({},D7,parseInt(o,10)-1)}),W("MMM",fn("monthsShort"),mn("monthsShort",D7)),W("MMMM",fn("months"),mn("months",D7)),W("D",Zo,vx),W("DD",_e,vx),W(["H","h"],Zo,Mx),W(["HH","hh"],_e,Mx),W("m",Zo,Cx),W("mm",_e,Cx),W("s",Zo,xx),W("ss",_e,xx),W("S",bx,function(o){return Ne({},W9,parseInt(o,10)*100)}),W("SS",_e,function(o){return Ne({},W9,parseInt(o,10)*10)}),W("SSS",aD,W9);function lD(o){return o.meridiemParse||/[ap]\.?m?\.?/i}function hD(o){return"".concat(o).toLowerCase().charAt(0)==="p"}W(["A","a"],lD,function(o,e){var t=typeof e.isPM=="function"?e.isPM(o):hD(o);return{isPM:t}});function cD(o){var e=o.match(/([+-]|\d\d)/g)||["-","0","0"],t=JT(e,3),i=t[0],a=t[1],n=t[2],r=parseInt(a,10)*60+parseInt(n,10);return r===0?0:i==="+"?-r:+r}W(["Z","ZZ"],nD,function(o){return{offset:cD(o)}}),W("x",wx,function(o){return{date:new Date(parseInt(o,10))}}),W("X",sD,function(o){return{date:new Date(parseFloat(o)*1e3)}}),W("d",bx,"weekday"),W("dd",fn("weekdaysMin"),mn("weekdaysMin","weekday")),W("ddd",fn("weekdaysShort"),mn("weekdaysShort","weekday")),W("dddd",fn("weekdays"),mn("weekdays","weekday")),W("w",Zo,"week"),W("ww",_e,"week");function dD(o,e){if(o!==void 0&&e!==void 0){if(e){if(o<12)return o+12}else if(o===12)return 0}return o}function uD(o){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,t=[0,0,1,0,0,0,0],i=[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()],a=!0,n=0;n<7;n++)o[n]===void 0?t[n]=a?i[n]:t[n]:(t[n]=o[n],a=!1);return t}function pD(o,e,t,i,a,n,r){var l;return o<100&&o>=0?(l=new Date(o+400,e,t,i,a,n,r),isFinite(l.getFullYear())&&l.setFullYear(o)):l=new Date(o,e,t,i,a,n,r),l}function yD(){for(var o,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var a=t[0];return a<100&&a>=0?(t[0]+=400,o=new Date(Date.UTC.apply(Date,t)),isFinite(o.getUTCFullYear())&&o.setUTCFullYear(a)):o=new Date(Date.UTC.apply(Date,t)),o}function fD(o,e,t){var i=e.match(iD);if(!i)throw new Error;for(var a=i.length,n={},r=0;r<a;r+=1){var l=i[r],h=Lx[l];if(h){var u=typeof h[0]=="function"?h[0](t):h[0],p=h[1],y=(u.exec(o)||[])[0],f=p(y,t);n=KT({},n,{},f),o=o.replace(y,"")}else{var d=l.replace(/^\[|\]$/g,"");if(o.indexOf(d)===0)o=o.substr(d.length);else throw new Error("not match")}}return n}function mD(o,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{var i=t.locale,a=i===void 0?j9:i,n=t.backupDate,r=n===void 0?new Date:n,l=fD(o,e,a),h=l.year,d=l.month,u=l.day,p=l.hour,y=l.minute,f=l.second,g=l.millisecond,k=l.isPM,b=l.date,m=l.offset,M=l.weekday,v=l.week;if(b)return b;var C=[h,d,u,p,y,f,g];if(C[3]=dD(C[3],k),v!==void 0&&d===void 0&&u===void 0){var I=px(h===void 0?r:new Date(h,3),{firstDayOfWeek:a.firstDayOfWeek,firstWeekContainsDate:a.firstWeekContainsDate});return new Date(I.getTime()+(v-1)*7*24*3600*1e3)}var L,S=uD(C,r);return m!==void 0?(S[6]+=m*60*1e3,L=yD.apply(void 0,gx(S))):L=pD.apply(void 0,gx(S)),M!==void 0&&L.getDay()!==M?new Date(NaN):L}catch{return new Date(NaN)}}var gD=Object.defineProperty,kD=Object.defineProperties,bD=Object.getOwnPropertyDescriptors,z7=Object.getOwnPropertySymbols,Ex=Object.prototype.hasOwnProperty,Sx=Object.prototype.propertyIsEnumerable,Ix=(o,e,t)=>e in o?gD(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Q=(o,e)=>{for(var t in e||(e={}))Ex.call(e,t)&&Ix(o,t,e[t]);if(z7)for(var t of z7(e))Sx.call(e,t)&&Ix(o,t,e[t]);return o},ve=(o,e)=>kD(o,bD(e)),wD=(o,e)=>{var t={};for(var i in o)Ex.call(o,i)&&e.indexOf(i)<0&&(t[i]=o[i]);if(o!=null&&z7)for(var i of z7(o))e.indexOf(i)<0&&Sx.call(o,i)&&(t[i]=o[i]);return t};const vD={formatLocale:j9,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};let gn="en";const Xo={};Xo[gn]=vD;function Tx(o,e,t=!1){if(typeof o!="string")return Xo[gn];let i=gn;return Xo[o]&&(i=o),e&&(Xo[o]=e,i=o),t||(gn=i),Xo[o]||Xo[gn]}function U9(o){return Tx(o,void 0,!0)}function $9(o,e){if(!Array.isArray(o))return[];const t=[],i=o.length;let a=0;for(e=e||i;a<i;)t.push(o.slice(a,a+=e));return t}function Dx(o){return Array.isArray(o)?o[o.length-1]:void 0}function We(o){return Object.prototype.toString.call(o)==="[object Object]"}function He(o,e){const t={};return We(o)&&(Array.isArray(e)||(e=[e]),e.forEach(i=>{Object.prototype.hasOwnProperty.call(o,i)&&(t[i]=o[i])})),t}function zx(o,e){if(!We(o))return{};let t=o;return We(e)&&Object.keys(e).forEach(i=>{let a=e[i];const n=o[i];We(a)&&We(n)&&(a=zx(n,a)),t=ve(Q({},t),{[i]:a})}),t}function G9(o){const e=parseInt(String(o),10);return e<10?`0${e}`:`${e}`}function MD(o){const e=/-(\w)/g;return o.replace(e,(t,i)=>i?i.toUpperCase():"")}const Rx="datepicker_locale",Hx="datepicker_prefixClass",Ax="datepicker_getWeek";function Y9(){return c.inject(Rx,c.shallowRef(U9()))}function CD(o){const e=c.computed(()=>We(o.value)?zx(U9(),o.value):U9(o.value));return c.provide(Rx,e),e}function xD(o){c.provide(Hx,o)}function ne(){return c.inject(Hx,"mx")}function LD(o){c.provide(Ax,o)}function ED(){return c.inject(Ax,O9)}function SD(o){const e=o.style.display,t=o.style.visibility;o.style.display="block",o.style.visibility="hidden";const i=window.getComputedStyle(o),a=o.offsetWidth+parseInt(i.marginLeft,10)+parseInt(i.marginRight,10),n=o.offsetHeight+parseInt(i.marginTop,10)+parseInt(i.marginBottom,10);return o.style.display=e,o.style.visibility=t,{width:a,height:n}}function ID(o,e,t,i){let a=0,n=0,r=0,l=0;const h=o.getBoundingClientRect(),d=document.documentElement.clientWidth,u=document.documentElement.clientHeight;return i&&(r=window.pageXOffset+h.left,l=window.pageYOffset+h.top),d-h.left<e&&h.right<e?a=r-h.left+1:h.left+h.width/2<=d/2?a=r:a=r+h.width-e,h.top<=t&&u-h.bottom<=t?n=l+u-h.top-t:h.top+h.height/2<=u/2?n=l+h.height:n=l-t,{left:`${a}px`,top:`${n}px`}}function Z9(o,e=document.body){if(!o||o===e)return null;const t=(n,r)=>getComputedStyle(n,null).getPropertyValue(r);return/(auto|scroll)/.test(t(o,"overflow")+t(o,"overflow-y")+t(o,"overflow-x"))?o:Z9(o.parentElement,e)}let R7;function TD(){if(typeof window>"u")return 0;if(R7!==void 0)return R7;const o=document.createElement("div");o.style.visibility="hidden",o.style.overflow="scroll",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const e=document.createElement("div");return e.style.width="100%",o.appendChild(e),R7=o.offsetWidth-e.offsetWidth,o.parentNode.removeChild(o),R7}const Vx="ontouchend"in document?"touchstart":"mousedown";function DD(o){let e=!1;return function(...i){e||(e=!0,requestAnimationFrame(()=>{e=!1,o.apply(this,i)}))}}function Ae(o,e){return{setup:o,name:o.name,props:e}}function Ve(o,e){return new Proxy(o,{get(i,a){const n=i[a];return n!==void 0?n:e[a]}})}const Ue=()=>o=>o,zD=(o,e)=>{const t={};for(const i in o)if(Object.prototype.hasOwnProperty.call(o,i)){const a=MD(i);let n=o[i];e.indexOf(a)!==-1&&n===""&&(n=!0),t[a]=n}return t};function RD(o,{slots:e}){const t=Ve(o,{appendToBody:!0}),i=ne(),a=c.ref(null),n=c.ref({left:"",top:""}),r=()=>{if(!t.visible||!a.value)return;const h=t.getRelativeElement();if(!h)return;const{width:d,height:u}=SD(a.value);n.value=ID(h,d,u,t.appendToBody)};c.watchEffect(r,{flush:"post"}),c.watchEffect(h=>{const d=t.getRelativeElement();if(!d)return;const u=Z9(d)||window,p=DD(r);u.addEventListener("scroll",p),window.addEventListener("resize",p),h(()=>{u.removeEventListener("scroll",p),window.removeEventListener("resize",p)})},{flush:"post"});const l=h=>{if(!t.visible)return;const d=h.target,u=a.value,p=t.getRelativeElement();u&&!u.contains(d)&&p&&!p.contains(d)&&t.onClickOutside(h)};return c.watchEffect(h=>{document.addEventListener(Vx,l),h(()=>{document.removeEventListener(Vx,l)})}),()=>c.createVNode(c.Teleport,{to:"body",disabled:!t.appendToBody},{default:()=>[c.createVNode(c.Transition,{name:`${i}-zoom-in-down`},{default:()=>{var h;return[t.visible&&c.createVNode("div",{ref:a,class:`${i}-datepicker-main ${i}-datepicker-popup ${t.className}`,style:[Q({position:"absolute"},n.value),t.style||{}]},[(h=e.default)==null?void 0:h.call(e)])]}})]})}const HD=Ue()(["style","className","visible","appendToBody","onClickOutside","getRelativeElement"]);var AD=Ae(RD,HD);const VD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},PD=[c.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 Px(o,e){return c.openBlock(),c.createElementBlock("svg",VD,PD)}const qD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},BD=[c.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 FD(o,e){return c.openBlock(),c.createElementBlock("svg",qD,BD)}const OD={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},jD=[c.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),c.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),c.createElementVNode("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},null,-1)];function ND(o,e){return c.openBlock(),c.createElementBlock("svg",OD,jD)}function qo(o,e=0,t=1,i=0,a=0,n=0,r=0){const l=new Date(o,e,t,i,a,n,r);return o<100&&o>=0&&l.setFullYear(o),l}function Pe(o){return o instanceof Date&&!isNaN(o.getTime())}function Bo(o){return Array.isArray(o)&&o.length===2&&o.every(Pe)&&o[0]<=o[1]}function _D(o){return Array.isArray(o)&&o.every(Pe)}function H7(...o){if(o[0]!==void 0&&o[0]!==null){const t=new Date(o[0]);if(Pe(t))return t}const e=o.slice(1);return e.length?H7(...e):new Date}function WD(o){const e=new Date(o);return e.setMonth(0,1),e.setHours(0,0,0,0),e}function qx(o){const e=new Date(o);return e.setDate(1),e.setHours(0,0,0,0),e}function $e(o){const e=new Date(o);return e.setHours(0,0,0,0),e}function UD({firstDayOfWeek:o,year:e,month:t}){const i=[],a=qo(e,t,0),n=a.getDate(),r=n-(a.getDay()+7-o)%7;for(let u=r;u<=n;u++)i.push(qo(e,t,u-n));a.setMonth(t+1,0);const l=a.getDate();for(let u=1;u<=l;u++)i.push(qo(e,t,u));const h=n-r+1,d=6*7-h-l;for(let u=1;u<=d;u++)i.push(qo(e,t,l+u));return i}function A7(o,e){const t=new Date(o),i=typeof e=="function"?e(t.getMonth()):Number(e),a=t.getFullYear(),n=qo(a,i+1,0).getDate(),r=t.getDate();return t.setMonth(i,Math.min(r,n)),t}function Ko(o,e){const t=new Date(o),i=typeof e=="function"?e(t.getFullYear()):e;return t.setFullYear(i),t}function $D(o,e){const t=new Date(e),i=new Date(o),a=t.getFullYear()-i.getFullYear(),n=t.getMonth()-i.getMonth();return a*12+n}function V7(o,e){const t=new Date(o),i=new Date(e);return t.setHours(i.getHours(),i.getMinutes(),i.getSeconds()),t}function GD(o,{slots:e}){const t=Ve(o,{editable:!0,disabled:!1,clearable:!0,range:!1,multiple:!1}),i=ne(),a=c.ref(null),n=c.computed(()=>t.separator||(t.range?" ~ ":",")),r=f=>t.range?Bo(f):t.multiple?_D(f):Pe(f),l=f=>Array.isArray(f)?f.some(g=>t.disabledDate(g)):t.disabledDate(f),h=c.computed(()=>a.value!==null?a.value:typeof t.renderInputText=="function"?t.renderInputText(t.value):r(t.value)?Array.isArray(t.value)?t.value.map(f=>t.formatDate(f)).join(n.value):t.formatDate(t.value):""),d=f=>{var g;f&&f.stopPropagation(),t.onChange(t.range?[null,null]:null),(g=t.onClear)==null||g.call(t)},u=()=>{var f;if(!t.editable||a.value===null)return;const g=a.value.trim();if(a.value=null,g===""){d();return}let k;if(t.range){let b=g.split(n.value);b.length!==2&&(b=g.split(n.value.trim())),k=b.map(m=>t.parseDate(m.trim()))}else t.multiple?k=g.split(n.value).map(b=>t.parseDate(b.trim())):k=t.parseDate(g);r(k)&&!l(k)?t.onChange(k):(f=t.onInputError)==null||f.call(t,g)},p=f=>{a.value=typeof f=="string"?f:f.target.value},y=f=>{const{keyCode:g}=f;g===9?t.onBlur():g===13&&u()};return()=>{var f,g,k;const b=!t.disabled&&t.clearable&&h.value,m=ve(Q({name:"date",type:"text",autocomplete:"off",value:h.value,class:t.inputClass||`${i}-input`,readonly:!t.editable,disabled:t.disabled,placeholder:t.placeholder},t.inputAttr),{onFocus:t.onFocus,onKeydown:y,onInput:p,onChange:u});return c.createVNode("div",{class:`${i}-input-wrapper`,onClick:t.onClick},[((f=e.input)==null?void 0:f.call(e,m))||c.createVNode("input",m,null),b?c.createVNode("i",{class:`${i}-icon-clear`,onClick:d},[((g=e["icon-clear"])==null?void 0:g.call(e))||c.createVNode(FD,null,null)]):null,c.createVNode("i",{class:`${i}-icon-calendar`},[((k=e["icon-calendar"])==null?void 0:k.call(e))||c.createVNode(Px,null,null)])])}}const X9=Ue()(["placeholder","editable","disabled","clearable","inputClass","inputAttr","range","multiple","separator","renderInputText","onInputError","onClear"]),YD=Ue()(["value","formatDate","parseDate","disabledDate","onChange","onFocus","onBlur","onClick",...X9]);var ZD=Ae(GD,YD);function XD(o,{slots:e}){var t;const i=Ve(o,{prefixClass:"mx",valueType:"date",format:"YYYY-MM-DD",type:"date",disabledDate:()=>!1,disabledTime:()=>!1,confirmText:"OK"});xD(i.prefixClass),LD(((t=i.formatter)==null?void 0:t.getWeek)||O9);const a=CD(c.toRef(o,"lang")),n=c.ref(),r=()=>n.value,l=c.ref(!1),h=c.computed(()=>!i.disabled&&(typeof i.open=="boolean"?i.open:l.value)),d=()=>{var L,S;i.disabled||h.value||(l.value=!0,(L=i["onUpdate:open"])==null||L.call(i,!0),(S=i.onOpen)==null||S.call(i))},u=()=>{var L,S;h.value&&(l.value=!1,(L=i["onUpdate:open"])==null||L.call(i,!1),(S=i.onClose)==null||S.call(i))},p=(L,S)=>(S=S||i.format,We(i.formatter)&&typeof i.formatter.stringify=="function"?i.formatter.stringify(L,S):N9(L,S,{locale:a.value.formatLocale})),y=(L,S)=>{if(S=S||i.format,We(i.formatter)&&typeof i.formatter.parse=="function")return i.formatter.parse(L,S);const T=new Date;return mD(L,S,{locale:a.value.formatLocale,backupDate:T})},f=L=>{switch(i.valueType){case"date":return L instanceof Date?new Date(L.getTime()):new Date(NaN);case"timestamp":return typeof L=="number"?new Date(L):new Date(NaN);case"format":return typeof L=="string"?y(L):new Date(NaN);default:return typeof L=="string"?y(L,i.valueType):new Date(NaN)}},g=L=>{if(!Pe(L))return null;switch(i.valueType){case"date":return L;case"timestamp":return L.getTime();case"format":return p(L);default:return p(L,i.valueType)}},k=c.computed(()=>{const L=i.value;return i.range?(Array.isArray(L)?L.slice(0,2):[null,null]).map(f):i.multiple?(Array.isArray(L)?L:[]).map(f):f(L)}),b=(L,S,T=!0)=>{var R,O;const X=Array.isArray(L)?L.map(g):g(L);return(R=i["onUpdate:value"])==null||R.call(i,X),(O=i.onChange)==null||O.call(i,X,S),T&&u(),X},m=c.ref(new Date);c.watchEffect(()=>{h.value&&(m.value=k.value)});const M=(L,S)=>{i.confirm?m.value=L:b(L,S,!i.multiple&&(S===i.type||S==="time"))},v=()=>{var L;const S=b(m.value);(L=i.onConfirm)==null||L.call(i,S)},C=L=>i.disabledDate(L)||i.disabledTime(L),I=L=>{var S;const{prefixClass:T}=i;return c.createVNode("div",{class:`${T}-datepicker-sidebar`},[(S=e.sidebar)==null?void 0:S.call(e,L),(i.shortcuts||[]).map((R,O)=>c.createVNode("button",{key:O,"data-index":O,type:"button",class:`${T}-btn ${T}-btn-text ${T}-btn-shortcut`,onClick:()=>{var X;const P=(X=R.onClick)==null?void 0:X.call(R);P&&b(P)}},[R.text]))])};return()=>{var L,S;const{prefixClass:T,disabled:R,confirm:O,range:X,popupClass:P,popupStyle:le,appendToBody:be}=i,G={value:m.value,"onUpdate:value":M,emit:b},we=e.header&&c.createVNode("div",{class:`${T}-datepicker-header`},[e.header(G)]),je=(e.footer||O)&&c.createVNode("div",{class:`${T}-datepicker-footer`},[(L=e.footer)==null?void 0:L.call(e,G),O&&c.createVNode("button",{type:"button",class:`${T}-btn ${T}-datepicker-btn-confirm`,onClick:v},[i.confirmText])]),Ee=(S=e.content)==null?void 0:S.call(e,G),Tn=(e.sidebar||i.shortcuts)&&I(G);return c.createVNode("div",{ref:n,class:{[`${T}-datepicker`]:!0,[`${T}-datepicker-range`]:X,disabled:R}},[c.createVNode(ZD,ve(Q({},He(i,X9)),{value:k.value,formatDate:p,parseDate:y,disabledDate:C,onChange:b,onClick:d,onFocus:d,onBlur:u}),He(e,["icon-calendar","icon-clear","input"])),c.createVNode(AD,{className:P,style:le,visible:h.value,appendToBody:be,getRelativeElement:r,onClickOutside:u},{default:()=>[Tn,c.createVNode("div",{class:`${T}-datepicker-content`},[we,Ee,je])]})])}}const KD=[...Ue()(["value","valueType","type","format","formatter","lang","prefixClass","appendToBody","open","popupClass","popupStyle","confirm","confirmText","shortcuts","disabledDate","disabledTime","onOpen","onClose","onConfirm","onChange","onUpdate:open","onUpdate:value"]),...X9];var Bx=Ae(XD,KD);function P7(o){var e=o,{value:t}=e,i=wD(e,["value"]);const a=ne();return c.createVNode("button",ve(Q({},i),{type:"button",class:`${a}-btn ${a}-btn-text ${a}-btn-icon-${t}`}),[c.createVNode("i",{class:`${a}-icon-${t}`},null)])}function K9({type:o,calendar:e,onUpdateCalendar:t},{slots:i}){var a;const n=ne(),r=()=>{t(A7(e,y=>y-1))},l=()=>{t(A7(e,y=>y+1))},h=()=>{t(Ko(e,y=>y-1))},d=()=>{t(Ko(e,y=>y+1))},u=()=>{t(Ko(e,y=>y-10))},p=()=>{t(Ko(e,y=>y+10))};return c.createVNode("div",{class:`${n}-calendar-header`},[c.createVNode(P7,{value:"double-left",onClick:o==="year"?u:h},null),o==="date"&&c.createVNode(P7,{value:"left",onClick:r},null),c.createVNode(P7,{value:"double-right",onClick:o==="year"?p:d},null),o==="date"&&c.createVNode(P7,{value:"right",onClick:l},null),c.createVNode("span",{class:`${n}-calendar-header-label`},[(a=i.default)==null?void 0:a.call(i)])])}function JD({calendar:o,isWeekMode:e,showWeekNumber:t,titleFormat:i,getWeekActive:a,getCellClasses:n,onSelect:r,onUpdatePanel:l,onUpdateCalendar:h,onDateMouseEnter:d,onDateMouseLeave:u}){const p=ne(),y=ED(),f=Y9().value,{yearFormat:g,monthBeforeYear:k,monthFormat:b="MMM",formatLocale:m}=f,M=m.firstDayOfWeek||0;let v=f.days||m.weekdaysMin;v=v.concat(v).slice(M,M+7);const C=o.getFullYear(),I=o.getMonth(),L=$9(UD({firstDayOfWeek:M,year:C,month:I}),7),S=(G,we)=>N9(G,we,{locale:f.formatLocale}),T=G=>{l(G)},R=G=>{const we=G.getAttribute("data-index"),[je,Ee]=we.split(",").map(Dn=>parseInt(Dn,10)),Tn=L[je][Ee];return new Date(Tn)},O=G=>{r(R(G.currentTarget))},X=G=>{d&&d(R(G.currentTarget))},P=G=>{u&&u(R(G.currentTarget))},le=c.createVNode("button",{type:"button",class:`${p}-btn ${p}-btn-text ${p}-btn-current-year`,onClick:()=>T("year")},[S(o,g)]),be=c.createVNode("button",{type:"button",class:`${p}-btn ${p}-btn-text ${p}-btn-current-month`,onClick:()=>T("month")},[S(o,b)]);return t=typeof t=="boolean"?t:e,c.createVNode("div",{class:[`${p}-calendar ${p}-calendar-panel-date`,{[`${p}-calendar-week-mode`]:e}]},[c.createVNode(K9,{type:"date",calendar:o,onUpdateCalendar:h},{default:()=>[k?[be,le]:[le,be]]}),c.createVNode("div",{class:`${p}-calendar-content`},[c.createVNode("table",{class:`${p}-table ${p}-table-date`},[c.createVNode("thead",null,[c.createVNode("tr",null,[t&&c.createVNode("th",{class:`${p}-week-number-header`},null),v.map(G=>c.createVNode("th",{key:G},[G]))])]),c.createVNode("tbody",null,[L.map((G,we)=>c.createVNode("tr",{key:we,class:[`${p}-date-row`,{[`${p}-active-week`]:a(G)}]},[t&&c.createVNode("td",{class:`${p}-week-number`,"data-index":`${we},0`,onClick:O},[c.createVNode("div",null,[y(G[0])])]),G.map((je,Ee)=>c.createVNode("td",{key:Ee,class:["cell",n(je)],title:S(je,i),"data-index":`${we},${Ee}`,onClick:O,onMouseenter:X,onMouseleave:P},[c.createVNode("div",null,[je.getDate()])]))]))])])])])}function QD({calendar:o,getCellClasses:e,onSelect:t,onUpdateCalendar:i,onUpdatePanel:a}){const n=ne(),r=Y9().value,l=r.months||r.formatLocale.monthsShort,h=u=>qo(o.getFullYear(),u),d=u=>{const y=u.currentTarget.getAttribute("data-month");t(h(parseInt(y,10)))};return c.createVNode("div",{class:`${n}-calendar ${n}-calendar-panel-month`},[c.createVNode(K9,{type:"month",calendar:o,onUpdateCalendar:i},{default:()=>[c.createVNode("button",{type:"button",class:`${n}-btn ${n}-btn-text ${n}-btn-current-year`,onClick:()=>a("year")},[o.getFullYear()])]}),c.createVNode("div",{class:`${n}-calendar-content`},[c.createVNode("table",{class:`${n}-table ${n}-table-month`},[$9(l,3).map((u,p)=>c.createVNode("tr",{key:p},[u.map((y,f)=>{const g=p*3+f;return c.createVNode("td",{key:f,class:["cell",e(h(g))],"data-month":g,onClick:d},[c.createVNode("div",null,[y])])})]))])])])}const ez=o=>{const e=Math.floor(o.getFullYear()/10)*10,t=[];for(let i=0;i<10;i++)t.push(e+i);return $9(t,2)};function tz({calendar:o,getCellClasses:e=()=>[],getYearPanel:t=ez,onSelect:i,onUpdateCalendar:a}){const n=ne(),r=p=>qo(p,0),l=p=>{const f=p.currentTarget.getAttribute("data-year");i(r(parseInt(f,10)))},h=t(new Date(o)),d=h[0][0],u=Dx(Dx(h));return c.createVNode("div",{class:`${n}-calendar ${n}-calendar-panel-year`},[c.createVNode(K9,{type:"year",calendar:o,onUpdateCalendar:a},{default:()=>[c.createVNode("span",null,[d]),c.createVNode("span",{class:`${n}-calendar-decade-separator`},null),c.createVNode("span",null,[u])]}),c.createVNode("div",{class:`${n}-calendar-content`},[c.createVNode("table",{class:`${n}-table ${n}-table-year`},[h.map((p,y)=>c.createVNode("tr",{key:y},[p.map((f,g)=>c.createVNode("td",{key:g,class:["cell",e(r(f))],"data-year":f,onClick:l},[c.createVNode("div",null,[f])]))]))])])])}function iz(o){const e=Ve(o,{defaultValue:$e(new Date),type:"date",disabledDate:()=>!1,getClasses:()=>[],titleFormat:"YYYY-MM-DD"}),t=c.computed(()=>(Array.isArray(e.value)?e.value:[e.value]).filter(Pe).map(M=>e.type==="year"?WD(M):e.type==="month"?qx(M):$e(M))),i=c.ref(new Date);c.watchEffect(()=>{let m=e.calendar;if(!Pe(m)){const{length:M}=t.value;m=H7(M>0?t.value[M-1]:e.defaultValue)}i.value=qx(m)});const a=m=>{var M;i.value=m,(M=e.onCalendarChange)==null||M.call(e,m)},n=c.ref("date");c.watchEffect(()=>{const m=["date","month","year"],M=Math.max(m.indexOf(e.type),m.indexOf(e.defaultPanel));n.value=M!==-1?m[M]:"date"});const r=m=>{var M;const v=n.value;n.value=m,(M=e.onPanelChange)==null||M.call(e,m,v)},l=m=>e.disabledDate(new Date(m),t.value),h=(m,M)=>{var v,C,I;if(!l(m))if((v=e.onPick)==null||v.call(e,m),e.multiple===!0){const L=t.value.filter(S=>S.getTime()!==m.getTime());L.length===t.value.length&&L.push(m),(C=e["onUpdate:value"])==null||C.call(e,L,M)}else(I=e["onUpdate:value"])==null||I.call(e,m,M)},d=m=>{h(m,e.type==="week"?"week":"date")},u=m=>{if(e.type==="year")h(m,"year");else if(a(m),r("month"),e.partialUpdate&&t.value.length===1){const M=Ko(t.value[0],m.getFullYear());h(M,"year")}},p=m=>{if(e.type==="month")h(m,"month");else if(a(m),r("date"),e.partialUpdate&&t.value.length===1){const M=A7(Ko(t.value[0],m.getFullYear()),m.getMonth());h(M,"month")}},y=(m,M=[])=>(l(m)?M.push("disabled"):t.value.some(v=>v.getTime()===m.getTime())&&M.push("active"),M.concat(e.getClasses(m,t.value,M.join(" ")))),f=m=>{const M=m.getMonth()!==i.value.getMonth(),v=[];return m.getTime()===new Date().setHours(0,0,0,0)&&v.push("today"),M&&v.push("not-current-month"),y(m,v)},g=m=>e.type!=="month"?i.value.getMonth()===m.getMonth()?"active":"":y(m),k=m=>e.type!=="year"?i.value.getFullYear()===m.getFullYear()?"active":"":y(m),b=m=>{if(e.type!=="week")return!1;const M=m[0].getTime(),v=m[6].getTime();return t.value.some(C=>{const I=C.getTime();return I>=M&&I<=v})};return()=>n.value==="year"?c.createVNode(tz,{calendar:i.value,getCellClasses:k,getYearPanel:e.getYearPanel,onSelect:u,onUpdateCalendar:a},null):n.value==="month"?c.createVNode(QD,{calendar:i.value,getCellClasses:g,onSelect:p,onUpdatePanel:r,onUpdateCalendar:a},null):c.createVNode(JD,{isWeekMode:e.type==="week",showWeekNumber:e.showWeekNumber,titleFormat:e.titleFormat,calendar:i.value,getCellClasses:f,getWeekActive:b,onSelect:d,onUpdatePanel:r,onUpdateCalendar:a,onDateMouseEnter:e.onDateMouseEnter,onDateMouseLeave:e.onDateMouseLeave},null)}const q7=Ue()(["type","value","defaultValue","defaultPanel","disabledDate","getClasses","calendar","multiple","partialUpdate","showWeekNumber","titleFormat","getYearPanel","onDateMouseEnter","onDateMouseLeave","onCalendarChange","onPanelChange","onUpdate:value","onPick"]);var B7=Ae(iz,q7);const Fx=(o,e)=>{const t=o.getTime();let[i,a]=e.map(n=>n.getTime());return i>a&&([i,a]=[a,i]),t>i&&t<a};function az(o){const e=Ve(o,{defaultValue:new Date,type:"date"}),t=ne(),i=c.computed(()=>{let b=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];return b=b.map(m=>$e(m)),Bo(b)?b:[new Date,new Date].map(m=>$e(m))}),a=c.ref([new Date(NaN),new Date(NaN)]);c.watchEffect(()=>{Bo(e.value)&&(a.value=e.value)});const n=(b,m)=>{var M;const[v,C]=a.value;Pe(v)&&!Pe(C)?(v.getTime()>b.getTime()?a.value=[b,v]:a.value=[v,b],(M=e["onUpdate:value"])==null||M.call(e,a.value,m)):a.value=[b,new Date(NaN)]},r=c.ref([new Date,new Date]),l=c.computed(()=>Bo(e.calendar)?e.calendar:r.value),h=c.computed(()=>e.type==="year"?10*12:e.type==="month"?1*12:1),d=(b,m)=>{var M;const v=$D(b[0],b[1]),C=h.value-v;if(C>0){const I=m===1?0:1;b[I]=A7(b[I],L=>L+(I===0?-C:C))}r.value=b,(M=e.onCalendarChange)==null||M.call(e,b,m)},u=b=>{d([b,l.value[1]],0)},p=b=>{d([l.value[0],b],1)};c.watchEffect(()=>{const b=Bo(e.value)?e.value:i.value;d(b.slice(0,2))});const y=c.ref(null),f=b=>y.value=b,g=()=>y.value=null,k=(b,m,M)=>{const v=e.getClasses?e.getClasses(b,m,M):[],C=Array.isArray(v)?v:[v];return/disabled|active/.test(M)?C:(m.length===2&&Fx(b,m)&&C.push("in-range"),m.length===1&&y.value&&Fx(b,[m[0],y.value])?C.concat("hover-in-range"):C)};return()=>{const b=l.value.map((m,M)=>{const v=ve(Q({},e),{calendar:m,value:a.value,defaultValue:i.value[M],getClasses:k,partialUpdate:!1,multiple:!1,"onUpdate:value":n,onCalendarChange:M===0?u:p,onDateMouseLeave:g,onDateMouseEnter:f});return c.createVNode(B7,v,null)});return c.createVNode("div",{class:`${t}-calendar-range`},[b])}}const J9=q7;var Q9=Ae(az,J9);const Ox=c.defineComponent({setup(o,{slots:e}){const t=ne(),i=c.ref(),a=c.ref(""),n=c.ref(""),r=()=>{if(!i.value)return;const g=i.value,k=g.clientHeight*100/g.scrollHeight;a.value=k<100?`${k}%`:""};c.onMounted(r);const l=TD(),h=g=>{const k=g.currentTarget,{scrollHeight:b,scrollTop:m}=k;n.value=`${m*100/b}%`};let d=!1,u=0;const p=g=>{g.stopImmediatePropagation();const k=g.currentTarget,{offsetTop:b}=k;d=!0,u=g.clientY-b},y=g=>{if(!d||!i.value)return;const{clientY:k}=g,{scrollHeight:b,clientHeight:m}=i.value,v=(k-u)*b/m;i.value.scrollTop=v},f=()=>{d=!1};return c.onMounted(()=>{document.addEventListener("mousemove",y),document.addEventListener("mouseup",f)}),c.onUnmounted(()=>{document.addEventListener("mousemove",y),document.addEventListener("mouseup",f)}),()=>{var g;return c.createVNode("div",{class:`${t}-scrollbar`,style:{position:"relative",overflow:"hidden"}},[c.createVNode("div",{ref:i,class:`${t}-scrollbar-wrap`,style:{marginRight:`-${l}px`},onScroll:h},[(g=e.default)==null?void 0:g.call(e)]),c.createVNode("div",{class:`${t}-scrollbar-track`},[c.createVNode("div",{class:`${t}-scrollbar-thumb`,style:{height:a.value,top:n.value},onMousedown:p},null)])])}}});function oz({options:o,getClasses:e,onSelect:t}){const i=ne(),a=n=>{const r=n.target,l=n.currentTarget;if(r.tagName.toUpperCase()!=="LI")return;const h=l.getAttribute("data-type"),d=parseInt(l.getAttribute("data-index"),10),u=parseInt(r.getAttribute("data-index"),10),p=o[d].list[u].value;t(p,h)};return c.createVNode("div",{class:`${i}-time-columns`},[o.map((n,r)=>c.createVNode(Ox,{key:n.type,class:`${i}-time-column`},{default:()=>[c.createVNode("ul",{class:`${i}-time-list`,"data-index":r,"data-type":n.type,onClick:a},[n.list.map((l,h)=>c.createVNode("li",{key:l.text,"data-index":h,class:[`${i}-time-item`,e(l.value,n.type)]},[l.text]))])]}))])}function nz(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!c.isVNode(o)}function sz(o){let e;const t=ne();return c.createVNode(Ox,null,nz(e=o.options.map(i=>c.createVNode("div",{key:i.text,class:[`${t}-time-option`,o.getClasses(i.value,"time")],onClick:()=>o.onSelect(i.value,"time")},[i.text])))?e:{default:()=>[e]})}function eC({length:o,step:e=1,options:t}){if(Array.isArray(t))return t.filter(a=>a>=0&&a<o);e<=0&&(e=1);const i=[];for(let a=0;a<o;a+=e)i.push(a);return i}function rz(o,e){let{showHour:t,showMinute:i,showSecond:a,use12h:n}=e;const r=e.format||"HH:mm:ss";t=typeof t=="boolean"?t:/[HhKk]/.test(r),i=typeof i=="boolean"?i:/m/.test(r),a=typeof a=="boolean"?a:/s/.test(r),n=typeof n=="boolean"?n:/a/i.test(r);const l=[],h=n&&o.getHours()>=12;return t&&l.push({type:"hour",list:eC({length:n?12:24,step:e.hourStep,options:e.hourOptions}).map(d=>{const u=d===0&&n?"12":G9(d),p=new Date(o);return p.setHours(h?d+12:d),{value:p,text:u}})}),i&&l.push({type:"minute",list:eC({length:60,step:e.minuteStep,options:e.minuteOptions}).map(d=>{const u=new Date(o);return u.setMinutes(d),{value:u,text:G9(d)}})}),a&&l.push({type:"second",list:eC({length:60,step:e.secondStep,options:e.secondOptions}).map(d=>{const u=new Date(o);return u.setSeconds(d),{value:u,text:G9(d)}})}),n&&l.push({type:"ampm",list:["AM","PM"].map((d,u)=>{const p=new Date(o);return p.setHours(p.getHours()%12+u*12),{text:d,value:p}})}),l}function tC(o=""){const e=o.split(":");if(e.length>=2){const t=parseInt(e[0],10),i=parseInt(e[1],10);return{hours:t,minutes:i}}return null}function lz({date:o,option:e,format:t,formatDate:i}){const a=[];if(typeof e=="function")return e()||[];const n=tC(e.start),r=tC(e.end),l=tC(e.step),h=e.format||t;if(n&&r&&l){const d=n.minutes+n.hours*60,u=r.minutes+r.hours*60,p=l.minutes+l.hours*60,y=Math.floor((u-d)/p);for(let f=0;f<=y;f++){const g=d+f*p,k=Math.floor(g/60),b=g%60,m=new Date(o);m.setHours(k,b,0),a.push({value:m,text:i(m,h)})}}return a}const jx=(o,e,t=0)=>{if(t<=0){requestAnimationFrame(()=>{o.scrollTop=e});return}const a=(e-o.scrollTop)/t*10;requestAnimationFrame(()=>{const n=o.scrollTop+a;if(n>=e){o.scrollTop=e;return}o.scrollTop=n,jx(o,e,t-10)})};function hz(o){const e=Ve(o,{defaultValue:$e(new Date),format:"HH:mm:ss",timeTitleFormat:"YYYY-MM-DD",disabledTime:()=>!1,scrollDuration:100}),t=ne(),i=Y9(),a=(k,b)=>N9(k,b,{locale:i.value.formatLocale}),n=c.ref(new Date);c.watchEffect(()=>{n.value=H7(e.value,e.defaultValue)});const r=k=>Array.isArray(k)?k.every(b=>e.disabledTime(new Date(b))):e.disabledTime(new Date(k)),l=k=>{const b=new Date(k);return r([b.getTime(),b.setMinutes(0,0,0),b.setMinutes(59,59,999)])},h=k=>{const b=new Date(k);return r([b.getTime(),b.setSeconds(0,0),b.setSeconds(59,999)])},d=k=>{const b=new Date(k),m=b.getHours()<12?0:12,M=m+11;return r([b.getTime(),b.setHours(m,0,0,0),b.setHours(M,59,59,999)])},u=(k,b)=>b==="hour"?l(k):b==="minute"?h(k):b==="ampm"?d(k):r(k),p=(k,b)=>{var m;if(!u(k,b)){const M=new Date(k);n.value=M,r(M)||(m=e["onUpdate:value"])==null||m.call(e,M,b)}},y=(k,b)=>u(k,b)?"disabled":k.getTime()===n.value.getTime()?"active":"",f=c.ref(),g=k=>{if(!f.value)return;const b=f.value.querySelectorAll(".active");for(let m=0;m<b.length;m++){const M=b[m],v=Z9(M,f.value);if(v){const C=M.offsetTop;jx(v,C,k)}}};return c.onMounted(()=>g(0)),c.watch(n,()=>g(e.scrollDuration),{flush:"post"}),()=>{let k;return e.timePickerOptions?k=c.createVNode(sz,{onSelect:p,getClasses:y,options:lz({date:n.value,format:e.format,option:e.timePickerOptions,formatDate:a})},null):k=c.createVNode(oz,{options:rz(n.value,e),onSelect:p,getClasses:y},null),c.createVNode("div",{class:`${t}-time`,ref:f},[e.showTimeHeader&&c.createVNode("div",{class:`${t}-time-header`},[c.createVNode("button",{type:"button",class:`${t}-btn ${t}-btn-text ${t}-time-header-title`,onClick:e.onClickTitle},[a(n.value,e.timeTitleFormat)])]),c.createVNode("div",{class:`${t}-time-content`},[k])])}}const F7=Ue()(["value","defaultValue","format","timeTitleFormat","showTimeHeader","disabledTime","timePickerOptions","hourOptions","minuteOptions","secondOptions","hourStep","minuteStep","secondStep","showHour","showMinute","showSecond","use12h","scrollDuration","onClickTitle","onUpdate:value"]);var kn=Ae(hz,F7);function cz(o){const e=Ve(o,{defaultValue:$e(new Date),disabledTime:()=>!1}),t=ne(),i=c.ref([new Date(NaN),new Date(NaN)]);c.watchEffect(()=>{Bo(e.value)?i.value=e.value:i.value=[new Date(NaN),new Date(NaN)]});const a=(d,u)=>{var p;(p=e["onUpdate:value"])==null||p.call(e,i.value,d==="time"?"time-range":d,u)},n=(d,u)=>{i.value[0]=d,i.value[1].getTime()>=d.getTime()||(i.value[1]=d),a(u,0)},r=(d,u)=>{i.value[1]=d,i.value[0].getTime()<=d.getTime()||(i.value[0]=d),a(u,1)},l=d=>e.disabledTime(d,0),h=d=>d.getTime()<i.value[0].getTime()||e.disabledTime(d,1);return()=>{const d=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];return c.createVNode("div",{class:`${t}-time-range`},[c.createVNode(kn,ve(Q({},e),{"onUpdate:value":n,value:i.value[0],defaultValue:d[0],disabledTime:l}),null),c.createVNode(kn,ve(Q({},e),{"onUpdate:value":r,value:i.value[1],defaultValue:d[1],disabledTime:h}),null)])}}const iC=F7;var aC=Ae(cz,iC);function Nx(o){const e=c.ref(!1),t=()=>{var n;e.value=!1,(n=o.onShowTimePanelChange)==null||n.call(o,!1)},i=()=>{var n;e.value=!0,(n=o.onShowTimePanelChange)==null||n.call(o,!0)};return{timeVisible:c.computed(()=>typeof o.showTimePanel=="boolean"?o.showTimePanel:e.value),openTimePanel:i,closeTimePanel:t}}function dz(o){const e=Ve(o,{disabledTime:()=>!1,defaultValue:$e(new Date)}),t=c.ref(e.value);c.watchEffect(()=>{t.value=e.value});const{openTimePanel:i,closeTimePanel:a,timeVisible:n}=Nx(e),r=(l,h)=>{var d;h==="date"&&i();let u=V7(l,H7(e.value,e.defaultValue));if(e.disabledTime(new Date(u))&&(u=V7(l,e.defaultValue),e.disabledTime(new Date(u)))){t.value=u;return}(d=e["onUpdate:value"])==null||d.call(e,u,h)};return()=>{const l=ne(),h=ve(Q({},He(e,q7)),{multiple:!1,type:"date",value:t.value,"onUpdate:value":r}),d=ve(Q({},He(e,F7)),{showTimeHeader:!0,value:t.value,"onUpdate:value":e["onUpdate:value"],onClickTitle:a});return c.createVNode("div",{class:`${l}-date-time`},[c.createVNode(B7,h,null),n.value&&c.createVNode(kn,d,null)])}}const _x=Ue()(["showTimePanel","onShowTimePanelChange"]),uz=[..._x,...q7,...F7];var Wx=Ae(dz,uz);function pz(o){const e=Ve(o,{defaultValue:$e(new Date),disabledTime:()=>!1}),t=c.ref(e.value);c.watchEffect(()=>{t.value=e.value});const{openTimePanel:i,closeTimePanel:a,timeVisible:n}=Nx(e),r=(l,h)=>{var d;h==="date"&&i();const u=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];let p=l.map((y,f)=>{const g=Bo(e.value)?e.value[f]:u[f];return V7(y,g)});if(p[1].getTime()<p[0].getTime()&&(p=[p[0],p[0]]),p.some(e.disabledTime)&&(p=l.map((y,f)=>V7(y,u[f])),p.some(e.disabledTime))){t.value=p;return}(d=e["onUpdate:value"])==null||d.call(e,p,h)};return()=>{const l=ne(),h=ve(Q({},He(e,J9)),{type:"date",value:t.value,"onUpdate:value":r}),d=ve(Q({},He(e,iC)),{showTimeHeader:!0,value:t.value,"onUpdate:value":e["onUpdate:value"],onClickTitle:a});return c.createVNode("div",{class:`${l}-date-time-range`},[c.createVNode(Q9,h,null),n.value&&c.createVNode(aC,d,null)])}}const yz=[..._x,...iC,...J9];var Ux=Ae(pz,yz);const fz=Ue()(["range","open","appendToBody","clearable","confirm","disabled","editable","multiple","partialUpdate","showHour","showMinute","showSecond","showTimeHeader","showTimePanel","showWeekNumber","use12h"]),$x={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",year:"YYYY",month:"YYYY-MM",time:"HH:mm:ss",week:"w"};function Gx(o,{slots:e}){const t=o.type||"date",i=o.format||$x[t]||$x.date,a=ve(Q({},zD(o,fz)),{type:t,format:i});return c.createVNode(Bx,He(a,Bx.props),Q({content:n=>{if(a.range){const r=t==="time"?aC:t==="datetime"?Ux:Q9;return c.h(r,He(Q(Q({},a),n),r.props))}else{const r=t==="time"?kn:t==="datetime"?Wx:B7;return c.h(r,He(Q(Q({},a),n),r.props))}},"icon-calendar":()=>t==="time"?c.createVNode(ND,null,null):c.createVNode(Px,null,null)},e))}var oC=Object.assign(Gx,{locale:Tx,install:o=>{o.component("DatePicker",Gx)}},{Calendar:B7,CalendarRange:Q9,TimePanel:kn,TimeRange:aC,DateTime:Wx,DateTimeRange:Ux}),V=[{year:2e3,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2001,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2002,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2003,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2004,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2005,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2006,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2007,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2008,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2009,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2010,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2011,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2012,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2013,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2014,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2015,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2016,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2017,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2018,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2019,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2020,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2021,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2022,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2023,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2024,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2025,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2026,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2027,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2028,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2029,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2030,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2031,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2032,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2033,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2034,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2035,days:[30,32,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2036,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2037,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2038,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2039,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2040,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2041,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2042,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2043,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2044,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2045,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2046,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2047,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2048,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2049,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2050,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2051,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2052,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2053,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2054,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2055,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2056,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2057,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2058,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2059,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2060,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2061,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2062,days:[30,32,31,32,31,31,29,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2063,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2064,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2065,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2066,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2067,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2068,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2069,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2070,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2071,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2072,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2073,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2074,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2075,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2076,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2077,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2078,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2079,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2080,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2081,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2082,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2083,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2084,days:[31,31,32,31,31,30,30,30,29,30,30,30],totalDays:0,daysTillNow:0},{year:2085,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2086,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2087,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2088,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2089,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2090,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2091,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2092,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2093,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2094,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2095,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2096,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2097,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2098,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2099,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2100,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0}],Yx=0;V.forEach(o=>{o.totalDays=o.days.reduce((e,t)=>e+t,0),Yx+=o.totalDays,o.daysTillNow=Yx});var O7=new Date(1943,3,14).getTime(),Zx=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Xx=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Kx=["आइतबार","सोमबार","मंगलबार","बुधबार","बिहिबार","शुक्रबार","शनिबार"],Jx=["आइत","सोम","मंगल","बुध","बिहि","शुक्र","शनि"],Qx=["Baisakh","Jestha","Asar","Shrawan","Bhadra","Aswin","Kartik","Mangsir","Poush","Magh","Falgun","Chaitra"],eL=["Bai","Jes","Asa","Shr","Bhd","Asw","Kar","Man","Pou","Mag","Fal","Cha"],tL=["बैशाख","जेठ","असार","श्रावण","भाद्र","आश्विन","कार्तिक","मंसिर","पौष","माघ","फाल्गुण","चैत्र"],iL=["बै","जे","अ","श्रा","भा","आ","का","मं","पौ","मा","फा","चै"],mz=["०","१","२","३","४","५","६","७","८","९"];function j7(o){return o<10?`0${o}`:`${o}`}function Jo(o){let e="";for(let t=0;t<o.length;t+=1)e+=mz[o.charCodeAt(t)-48];return e}function gz(o){return e=>o<=2?String(e.getYear()).substring(2):o===3?String(e.getYear()).substring(1):String(e.getYear())}function kz(o){return e=>o<=2?Jo(String(e.getYear()).substring(2)):Jo(o===3?String(e.getYear()).substring(1):String(e.getYear()))}function bz(o){return e=>o===1?String(e.getMonth()+1):o===2?j7(e.getMonth()+1):o===3?eL[e.getMonth()]:Qx[e.getMonth()]}function wz(o){return e=>o===1?Jo(String(e.getMonth()+1)):o===2?Jo(j7(e.getMonth()+1)):o===3?iL[e.getMonth()]:tL[e.getMonth()]}function vz(o){return e=>o===1?String(e.getDate()):o===2?j7(e.getDate()):o===3?Xx[e.getDay()]:Zx[e.getDay()]}function Mz(o){return e=>o===1?Jo(String(e.getDate())):o===2?Jo(j7(e.getDate())):o===3?Jx[e.getDay()]:Kx[e.getDay()]}function aL(o){return()=>o}var nC={Y:gz,y:kz,M:bz,m:wz,D:vz,d:Mz};function Cz(o){return o in nC}function xz(o){let e=!1,t="",i="",a=0,n=[];for(let r=0;r<o.length;r+=1){let l=o[r];if(l===i){a+=1;continue}if(i!==""&&(n.push(nC[i](a)),i="",a=0),l==='"'){e=!e;continue}!Cz(l)||e?t+=l:(t&&(n.push(aL(t)),t=""),i=l,a=1)}return t?n.push(aL(t)):i&&n.push(nC[i](a)),n}function Lz(o,e){return xz(e).map(t=>t(o)).join("")}function oL(o){let e=o.split(/[-./]/,3),[t,i=1,a=1]=e.map(r=>{let l=parseInt(r,10);if(Number.isNaN(l))throw new Error("Invalid date");return l});if(t<V[0].year||t>=V[0].year+V.length)throw new Error("Nepal year out of range");if(i<1||i>12)throw new Error("Invalid nepali month must be between 1 - 12");let n=V[t-V[0].year].days[i-1];if(a<1||a>n)throw new Error(`Invalid nepali date must be between 1 - ${n} in ${t} ${i}`);return[t,i-1,a]}var ye=class B{constructor(...e){E(this,"timestamp");E(this,"year");E(this,"month");E(this,"day");if(e.length===0)this.setEnglishDate(new Date);else if(e.length===1){let t=e[0];if(typeof t=="object")if(t instanceof Date)this.setEnglishDate(t);else if(t instanceof B)this.timestamp=t.timestamp,this.year=t.year,this.month=t.month,this.day=t.day;else throw new Error("Invalid date argument");else if(typeof t=="string")this.set(...oL(t));else if(typeof t=="number")this.setEnglishDate(new Date(t));else throw new Error("Invalid date argument")}else if(e.length===3)this.set(e[0],e[1],e[2]);else throw new Error("Invalid argument syntax")}setEnglishDate(e){this.timestamp=e;let t=Math.floor((this.timestamp.getTime()-O7)/864e5),i=Math.floor(t/366);for(;t>=V[i].daysTillNow;)i+=1;let a=V[i-1]?V[i-1].daysTillNow:0;t-=a;let n=V[i];for(this.year=n.year,this.month=0;t>=n.days[this.month];)this.month+=1,t-=n.days[this.month-1];this.day=t+1}getEnglishDate(){return this.timestamp}parse(e){this.set(...oL(e))}getYear(){return this.year}getMonth(){return this.month}getDate(){return this.day}getDay(){return this.timestamp.getDay()}getHours(){return this.timestamp.getHours()}getMinutes(){return this.timestamp.getMinutes()}getSeconds(){return this.timestamp.getSeconds()}getMilliseconds(){return this.timestamp.getMilliseconds()}getTime(){return this.timestamp.getTime()}setYear(e){this.set(e,this.month,this.day)}setMonth(e){this.set(this.year,e,this.day)}setDate(e){this.set(this.year,this.month,e)}set(e,t,i){let a=e+Math.floor(t/12)-V[0].year,n=V[a],r=n.daysTillNow-n.totalDays,l=t%12,h=l<0?12+l:l;for(let d=0;d<h;d+=1)r+=n.days[d];r+=i-1,this.setEnglishDate(new Date(O7+r*864e5))}format(e){return Lz(this,e)}toString(){return`${this.year}/${this.month+1}/${this.day}`}addDays(e){let t=new Date(this.timestamp.getTime()+e*864e5);return new B(t)}addMonths(e){let t=this.year,i=this.month+e;t+=Math.floor(i/12),i=i%12,i<0&&(i+=12,t-=1);let a=t-V[0].year;if(a<0||a>=V.length)throw new Error("Resulting date is out of supported range");let n=V[a].days[i],r=Math.min(this.day,n);return new B(t,i,r)}addYears(e){let t=this.year+e;if(t<V[0].year||t>=V[0].year+V.length)throw new Error("Resulting date is out of supported range");let i=t-V[0].year;if(this.month===11&&this.day===29){let a=V[i].days[11];if(a<29)return new B(t,11,a)}return new B(t,this.month,this.day)}static minimum(){return new Date(O7)}static maximum(){return new Date(O7+V[V.length-1].daysTillNow*864e5)}daysInMonth(){let e=this.year-V[0].year;return V[e].days[this.month]}isLeapYear(){let e=this.year-V[0].year;return V[e].totalDays===366}getWeeksInMonth(){let e=new B(this.year,this.month,1).getDay(),t=this.daysInMonth();return Math.ceil((e+t)/7)}diff(e,t){switch(t){case"day":return Math.floor((this.timestamp.getTime()-e.timestamp.getTime())/864e5);case"month":let i=this.year-e.year,a=this.month-e.month;return i*12+a;case"year":return this.year-e.year;default:throw new Error("Invalid unit for diff calculation")}}startOfDay(){let e=new Date(this.timestamp);return e.setHours(0,0,0,0),new B(e)}endOfDay(){let e=new Date(this.timestamp);return e.setHours(23,59,59,999),new B(e)}startOfWeek(e=0){if(e<0||e>6||!Number.isInteger(e))throw new Error("startOfWeek must be an integer between 0 and 6");let t=(this.getDay()-e+7)%7;return this.clone().startOfDay().addDays(-t)}endOfWeek(e=0){return this.startOfWeek(e).addDays(6).endOfDay()}startOfMonth(){return new B(this.year,this.month,1)}endOfMonth(){let e=this.daysInMonth();return new B(this.year,this.month,e).endOfDay()}startOfYear(){return new B(this.year,0,1)}endOfYear(){let e=this.year-V[0].year,t=V[e].days[11];return new B(this.year,11,t).endOfDay()}static getMonthName(e,t=!1,i=!1){if(e<0||e>11)throw new Error("Invalid month index, must be between 0-11");let a="";return i?a=t?iL[e]:tL[e]:a=t?eL[e]:Qx[e],a}static getDayName(e,t=!1,i=!1){if(e<0||e>6)throw new Error("Invalid day index, must be between 0-6");let a="";return i?a=t?Jx[e]:Kx[e]:a=t?Xx[e]:Zx[e],a}static isValid(e,t,i){try{if(e<V[0].year||e>=V[0].year+V.length||t<0||t>11)return!1;let a=e-V[0].year,n=V[a].days[t];return!(i<1||i>n)}catch{return!1}}isValid(){return B.isValid(this.year,this.month,this.day)}static getCalendarDays(e,t){if(!B.isValid(e,t,1))throw new Error("Invalid year or month");let i={year:0,month:0,days:[]},a={year:0,month:0,days:[]},n={year:0,month:0,days:[]},r=e-V[0].year,l=new B(e,t,1).getDay(),h=V[r].days[t];a.year=e,a.month=t;let d=t-1,u=e,p=t+1,y=e;if(d<0&&(d=11,u--),u>V[0].year&&(i.year=u,i.month=d),u>=V[0].year&&l>0){let g=u-V[0].year,k=V[g].days[d];for(let b=0;b<l;b++)i.days.push(k-l+b+1)}for(let g=1;g<=h;g++)a.days.push(g);p>11&&(p=0,y++),y<V[0].year+V.length&&(n.year=y,n.month=p);let f=42-l-a.days.length;if(y<V[0].year+V.length&&f>0)for(let g=1;g<=f;g++)n.days.push(g);return{prevRemainingDays:l,prevMonth:i,currentMonth:a,nextMonth:n,remainingDays:f}}clone(){return new B(this)}isAfter(e){return this.timestamp.getTime()>e.timestamp.getTime()}isBefore(e){return this.timestamp.getTime()<e.timestamp.getTime()}isEqual(e){return this.year===e.year&&this.month===e.month&&this.day===e.day}isSame(e,t){switch(t){case"year":return this.year===e.year;case"month":return this.year===e.year&&this.month===e.month;case"day":return this.isEqual(e);default:throw new Error("Invalid unit for comparison")}}static getQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??new B().getYear(),a=(e-1)*3,n=new B(i,a,1),r=new B(i,a+2,1).endOfMonth();return{start:n,end:r}}getCurrentQuarter(){return Math.floor(this.month/3)+1}static getQuarters(e){let t=e??new B().getYear();return{Q1:B.getQuarter(1,t),Q2:B.getQuarter(2,t),Q3:B.getQuarter(3,t),Q4:B.getQuarter(4,t)}}static getCurrentFiscalYear(){let e=new B,t=e.getYear();return e.getMonth()<3?t-1:t}static getFiscalYearQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??B.getCurrentFiscalYear(),a=i,n=(e-1)*3+3;e===4&&(a=i+1,n=0),n>11&&(a++,n-=12);let r=n+2,l=a;r>11&&(l++,r-=12);let h=new B(a,n,1),d=new B(l,r,1).endOfMonth();return{start:h,end:d}}getCurrentFiscalYearQuarter(){let e=this.getMonth();return e>=3&&e<=5?1:e>=6&&e<=8?2:e>=9&&e<=11?3:4}getCurrentFiscalYearQuarterDates(){let e=this.getCurrentFiscalYearQuarter(),t=B.getCurrentFiscalYear();return B.getFiscalYearQuarter(e,t)}static getFiscalYearQuarters(e){let t=e??B.getCurrentFiscalYear();return{Q1:B.getFiscalYearQuarter(1,t),Q2:B.getFiscalYearQuarter(2,t),Q3:B.getFiscalYearQuarter(3,t),Q4:B.getFiscalYearQuarter(4,t)}}},Ge=o=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(o))throw new Error("Invalid date format. Expected format: YYYY-MM-DD");let e=new Date(o);if(Number.isNaN(e.getTime()))throw new Error(`Invalid date input '${o}'`);try{return new ye(e).format("YYYY-MM-DD")}catch(t){throw console.error("Error During Date Conversion : ",t),new Error("Failed to convert AD to BS")}};function he(o){try{if(!/^\d{4}-\d{2}-\d{2}$/.test(o))throw new Error("Invalid date format. Expected format: YYYY-MM-DD");let e=o?new ye(o):new ye,t=a=>a<10?`0${a}`:`${a}`,i=e.getEnglishDate();return`${i.getFullYear()}-${t(i.getMonth()+1)}-${t(i.getDate())}`}catch(e){throw console.error("Error During Date Conversion : ",e),new Error("Failed to convert BS to AD")}}var Ez=Object.defineProperty,Sz=(o,e,t)=>e in o?Ez(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,N7=(o,e,t)=>Sz(o,typeof e!="symbol"?e+"":e,t),H=[{year:2e3,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2001,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2002,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2003,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2004,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2005,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2006,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2007,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2008,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2009,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2010,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2011,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2012,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2013,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2014,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2015,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2016,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2017,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2018,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2019,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2020,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2021,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2022,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2023,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2024,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2025,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2026,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2027,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2028,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2029,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2030,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2031,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2032,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2033,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2034,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2035,days:[30,32,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2036,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2037,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2038,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2039,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2040,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2041,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2042,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2043,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2044,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2045,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2046,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2047,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2048,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2049,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2050,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2051,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2052,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2053,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2054,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2055,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2056,days:[31,31,32,31,32,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2057,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2058,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2059,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2060,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2061,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2062,days:[30,32,31,32,31,31,29,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2063,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2064,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2065,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2066,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2067,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2068,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2069,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2070,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2071,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2072,days:[31,32,31,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2073,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2074,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2075,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2076,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2077,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2078,days:[31,31,31,32,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2079,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2080,days:[31,32,31,32,31,30,30,30,29,29,30,30],totalDays:0,daysTillNow:0},{year:2081,days:[31,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2082,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2083,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2084,days:[31,31,32,31,31,30,30,30,29,30,30,30],totalDays:0,daysTillNow:0},{year:2085,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2086,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2087,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2088,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2089,days:[30,32,31,32,31,30,30,30,29,30,29,31],totalDays:0,daysTillNow:0},{year:2090,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2091,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2092,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2093,days:[31,31,31,32,31,31,29,30,30,29,29,31],totalDays:0,daysTillNow:0},{year:2094,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2095,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2096,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0},{year:2097,days:[31,31,31,32,31,31,29,30,30,29,30,30],totalDays:0,daysTillNow:0},{year:2098,days:[31,31,32,31,31,31,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2099,days:[31,31,32,32,31,30,30,29,30,29,30,30],totalDays:0,daysTillNow:0},{year:2100,days:[31,32,31,32,31,30,30,30,29,29,30,31],totalDays:0,daysTillNow:0}],nL=0;H.forEach(o=>{o.totalDays=o.days.reduce((e,t)=>e+t,0),nL+=o.totalDays,o.daysTillNow=nL});var _7=new Date(1943,3,14).getTime(),sL=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],W7=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],rL=["आइतबार","सोमबार","मंगलबार","बुधबार","बिहिबार","शुक्रबार","शनिबार"],lL=["आइत","सोम","मंगल","बुध","बिहि","शुक्र","शनि"],sC=["Baisakh","Jestha","Asar","Shrawan","Bhadra","Aswin","Kartik","Mangsir","Poush","Magh","Falgun","Chaitra"],hL=["Bai","Jes","Asa","Shr","Bhd","Asw","Kar","Man","Pou","Mag","Fal","Cha"],cL=["बैशाख","जेठ","असार","श्रावण","भाद्र","आश्विन","कार्तिक","मंसिर","पौष","माघ","फाल्गुण","चैत्र"],dL=["बै","जे","अ","श्रा","भा","आ","का","मं","पौ","मा","फा","चै"],Iz=["०","१","२","३","४","५","६","७","८","९"];function U7(o){return o<10?`0${o}`:`${o}`}function Qo(o){let e="";for(let t=0;t<o.length;t+=1)e+=Iz[o.charCodeAt(t)-48];return e}function Tz(o){return e=>o<=2?String(e.getYear()).substring(2):o===3?String(e.getYear()).substring(1):String(e.getYear())}function Dz(o){return e=>o<=2?Qo(String(e.getYear()).substring(2)):Qo(o===3?String(e.getYear()).substring(1):String(e.getYear()))}function zz(o){return e=>o===1?String(e.getMonth()+1):o===2?U7(e.getMonth()+1):o===3?hL[e.getMonth()]:sC[e.getMonth()]}function Rz(o){return e=>o===1?Qo(String(e.getMonth()+1)):o===2?Qo(U7(e.getMonth()+1)):o===3?dL[e.getMonth()]:cL[e.getMonth()]}function Hz(o){return e=>o===1?String(e.getDate()):o===2?U7(e.getDate()):o===3?W7[e.getDay()]:sL[e.getDay()]}function Az(o){return e=>o===1?Qo(String(e.getDate())):o===2?Qo(U7(e.getDate())):o===3?lL[e.getDay()]:rL[e.getDay()]}function uL(o){return()=>o}var rC={Y:Tz,y:Dz,M:zz,m:Rz,D:Hz,d:Az};function Vz(o){return o in rC}function Pz(o){let e=!1,t="",i="",a=0,n=[];for(let r=0;r<o.length;r+=1){let l=o[r];if(l===i){a+=1;continue}if(i!==""&&(n.push(rC[i](a)),i="",a=0),l==='"'){e=!e;continue}!Vz(l)||e?t+=l:(t&&(n.push(uL(t)),t=""),i=l,a=1)}return t?n.push(uL(t)):i&&n.push(rC[i](a)),n}function qz(o,e){return Pz(e).map(t=>t(o)).join("")}function pL(o){let e=o.split(/[-./]/,3),[t,i=1,a=1]=e.map(r=>{let l=parseInt(r,10);if(Number.isNaN(l))throw new Error("Invalid date");return l});if(t<H[0].year||t>=H[0].year+H.length)throw new Error("Nepal year out of range");if(i<1||i>12)throw new Error("Invalid nepali month must be between 1 - 12");let n=H[t-H[0].year].days[i-1];if(a<1||a>n)throw new Error(`Invalid nepali date must be between 1 - ${n} in ${t} ${i}`);return[t,i-1,a]}var Y=class F{constructor(...e){if(N7(this,"timestamp"),N7(this,"year"),N7(this,"month"),N7(this,"day"),e.length===0)this.setEnglishDate(new Date);else if(e.length===1){let t=e[0];if(typeof t=="object")if(t instanceof Date)this.setEnglishDate(t);else if(t instanceof F)this.timestamp=t.timestamp,this.year=t.year,this.month=t.month,this.day=t.day;else throw new Error("Invalid date argument");else if(typeof t=="string")this.set(...pL(t));else if(typeof t=="number")this.setEnglishDate(new Date(t));else throw new Error("Invalid date argument")}else if(e.length===3)this.set(e[0],e[1],e[2]);else throw new Error("Invalid argument syntax")}setEnglishDate(e){this.timestamp=e;let t=Math.floor((this.timestamp.getTime()-_7)/864e5),i=Math.floor(t/366);for(;t>=H[i].daysTillNow;)i+=1;let a=H[i-1]?H[i-1].daysTillNow:0;t-=a;let n=H[i];for(this.year=n.year,this.month=0;t>=n.days[this.month];)this.month+=1,t-=n.days[this.month-1];this.day=t+1}getEnglishDate(){return this.timestamp}parse(e){this.set(...pL(e))}getYear(){return this.year}getMonth(){return this.month}getDate(){return this.day}getDay(){return this.timestamp.getDay()}getHours(){return this.timestamp.getHours()}getMinutes(){return this.timestamp.getMinutes()}getSeconds(){return this.timestamp.getSeconds()}getMilliseconds(){return this.timestamp.getMilliseconds()}getTime(){return this.timestamp.getTime()}setYear(e){this.set(e,this.month,this.day)}setMonth(e){this.set(this.year,e,this.day)}setDate(e){this.set(this.year,this.month,e)}set(e,t,i){let a=e+Math.floor(t/12)-H[0].year,n=H[a],r=n.daysTillNow-n.totalDays,l=t%12,h=l<0?12+l:l;for(let d=0;d<h;d+=1)r+=n.days[d];r+=i-1,this.setEnglishDate(new Date(_7+r*864e5))}format(e){return qz(this,e)}toString(){return`${this.year}/${this.month+1}/${this.day}`}addDays(e){let t=new Date(this.timestamp.getTime()+e*864e5);return new F(t)}addMonths(e){let t=this.year,i=this.month+e;t+=Math.floor(i/12),i=i%12,i<0&&(i+=12,t-=1);let a=t-H[0].year;if(a<0||a>=H.length)throw new Error("Resulting date is out of supported range");let n=H[a].days[i],r=Math.min(this.day,n);return new F(t,i,r)}addYears(e){let t=this.year+e;if(t<H[0].year||t>=H[0].year+H.length)throw new Error("Resulting date is out of supported range");let i=t-H[0].year;if(this.month===11&&this.day===29){let a=H[i].days[11];if(a<29)return new F(t,11,a)}return new F(t,this.month,this.day)}static minimum(){return new Date(_7)}static maximum(){return new Date(_7+H[H.length-1].daysTillNow*864e5)}daysInMonth(){let e=this.year-H[0].year;return H[e].days[this.month]}isLeapYear(){let e=this.year-H[0].year;return H[e].totalDays===366}getWeeksInMonth(){let e=new F(this.year,this.month,1).getDay(),t=this.daysInMonth();return Math.ceil((e+t)/7)}diff(e,t){switch(t){case"day":return Math.floor((this.timestamp.getTime()-e.timestamp.getTime())/864e5);case"month":let i=this.year-e.year,a=this.month-e.month;return i*12+a;case"year":return this.year-e.year;default:throw new Error("Invalid unit for diff calculation")}}startOfDay(){let e=new Date(this.timestamp);return e.setHours(0,0,0,0),new F(e)}endOfDay(){let e=new Date(this.timestamp);return e.setHours(23,59,59,999),new F(e)}startOfWeek(e=0){if(e<0||e>6||!Number.isInteger(e))throw new Error("startOfWeek must be an integer between 0 and 6");let t=(this.getDay()-e+7)%7;return this.clone().startOfDay().addDays(-t)}endOfWeek(e=0){return this.startOfWeek(e).addDays(6).endOfDay()}startOfMonth(){return new F(this.year,this.month,1)}endOfMonth(){let e=this.daysInMonth();return new F(this.year,this.month,e).endOfDay()}startOfYear(){return new F(this.year,0,1)}endOfYear(){let e=this.year-H[0].year,t=H[e].days[11];return new F(this.year,11,t).endOfDay()}static getMonthName(e,t=!1,i=!1){if(e<0||e>11)throw new Error("Invalid month index, must be between 0-11");let a="";return i?a=t?dL[e]:cL[e]:a=t?hL[e]:sC[e],a}static getDayName(e,t=!1,i=!1){if(e<0||e>6)throw new Error("Invalid day index, must be between 0-6");let a="";return i?a=t?lL[e]:rL[e]:a=t?W7[e]:sL[e],a}static isValid(e,t,i){try{if(e<H[0].year||e>=H[0].year+H.length||t<0||t>11)return!1;let a=e-H[0].year,n=H[a].days[t];return!(i<1||i>n)}catch{return!1}}isValid(){return F.isValid(this.year,this.month,this.day)}static getCalendarDays(e,t){if(!F.isValid(e,t,1))throw new Error("Invalid year or month");let i={year:0,month:0,days:[]},a={year:0,month:0,days:[]},n={year:0,month:0,days:[]},r=e-H[0].year,l=new F(e,t,1).getDay(),h=H[r].days[t];a.year=e,a.month=t;let d=t-1,u=e,p=t+1,y=e;if(d<0&&(d=11,u--),u>H[0].year&&(i.year=u,i.month=d),u>=H[0].year&&l>0){let g=u-H[0].year,k=H[g].days[d];for(let b=0;b<l;b++)i.days.push(k-l+b+1)}for(let g=1;g<=h;g++)a.days.push(g);p>11&&(p=0,y++),y<H[0].year+H.length&&(n.year=y,n.month=p);let f=42-l-a.days.length;if(y<H[0].year+H.length&&f>0)for(let g=1;g<=f;g++)n.days.push(g);return{prevRemainingDays:l,prevMonth:i,currentMonth:a,nextMonth:n,remainingDays:f}}clone(){return new F(this)}isAfter(e){return this.timestamp.getTime()>e.timestamp.getTime()}isBefore(e){return this.timestamp.getTime()<e.timestamp.getTime()}isEqual(e){return this.year===e.year&&this.month===e.month&&this.day===e.day}isSame(e,t){switch(t){case"year":return this.year===e.year;case"month":return this.year===e.year&&this.month===e.month;case"day":return this.isEqual(e);default:throw new Error("Invalid unit for comparison")}}static getQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??new F().getYear(),a=(e-1)*3,n=new F(i,a,1),r=new F(i,a+2,1).endOfMonth();return{start:n,end:r}}getCurrentQuarter(){return Math.floor(this.month/3)+1}static getQuarters(e){let t=e??new F().getYear();return{Q1:F.getQuarter(1,t),Q2:F.getQuarter(2,t),Q3:F.getQuarter(3,t),Q4:F.getQuarter(4,t)}}static getCurrentFiscalYear(){let e=new F,t=e.getYear();return e.getMonth()<3?t-1:t}static getFiscalYearQuarter(e,t){if(e<1||e>4||!Number.isInteger(e))throw new Error("Quarter must be an integer between 1 and 4");let i=t??F.getCurrentFiscalYear(),a=i,n=(e-1)*3+3;e===4&&(a=i+1,n=0),n>11&&(a++,n-=12);let r=n+2,l=a;r>11&&(l++,r-=12);let h=new F(a,n,1),d=new F(l,r,1).endOfMonth();return{start:h,end:d}}getCurrentFiscalYearQuarter(){let e=this.getMonth();return e>=3&&e<=5?1:e>=6&&e<=8?2:e>=9&&e<=11?3:4}getCurrentFiscalYearQuarterDates(){let e=this.getCurrentFiscalYearQuarter(),t=F.getCurrentFiscalYear();return F.getFiscalYearQuarter(e,t)}static getFiscalYearQuarters(e){let t=e??F.getCurrentFiscalYear();return{Q1:F.getFiscalYearQuarter(1,t),Q2:F.getFiscalYearQuarter(2,t),Q3:F.getFiscalYearQuarter(3,t),Q4:F.getFiscalYearQuarter(4,t)}}};const Bz=["placeholder","id"],Fz={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},Oz=["id"],jz={class:"calendar__body"},Nz={class:"calendar__head"},_z={class:"calendar__header_label"},Wz={key:0},Uz={key:2},$z={key:4},Gz={class:"calendar__container"},Yz={key:0},Zz={class:"calendar__weeks"},Xz={class:"calendar__days"},Kz=["title","onClick"],Jz=["title","onClick"],Qz=["title","onClick"],eR=["onClick"],tR=["onClick"],$7=10,iR=c.defineComponent({__name:"NepaliDatePicker",props:{modelValue:{type:String,default:""},yearSelect:{type:Boolean,default:!0},monthSelect:{type:Boolean,default:!0},class:{type:String,default:""},placeholder:{type:String,default:""}},emits:["update:modelValue","onSelect"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(t.modelValue?new Y(t.modelValue):new Y),n=c.ref(!1),r=c.ref(t.modelValue),l=c.ref(null),h=c.ref(null),d=c.ref(null),u=c.ref(null),p=c.ref(t.modelValue?new Y(t.modelValue).getYear():new Y().getYear()),y=c.ref(t.modelValue?new Y(t.modelValue).getMonth():new Y().getMonth()),f=c.ref(!1),g=c.ref(!1),k=c.ref(H[0].year),b=c.ref(H.length+H[0].year-1),m=c.ref(0);c.watch(()=>t.modelValue,()=>{r.value=t.modelValue,p.value=t.modelValue?new Y(t.modelValue).getYear():new Y().getYear(),y.value=t.modelValue?new Y(t.modelValue).getMonth():new Y().getMonth(),a.value=t.modelValue?new Y(t.modelValue):new Y});const M=c.computed(()=>a.value.year==k.value&&a.value.month==0?[]:(H.forEach(D=>{let x=a.value.year,z=a.value.month-1;v.value[0].month==0&&(x=x-1,z=11),D.year===x&&D.days.forEach((ie,Re)=>{Re===z&&(h.value=ie)})}),Array(h.value).fill(null).map((D,x)=>new Y(a.value.year,a.value.month-1,x+1)).slice(-(I.value?I.value:0)))),v=c.computed(()=>(H.forEach(D=>{D.year===a.value.year&&D.days.forEach((x,z)=>{z===a.value.month&&(l.value=x)})}),Array(l.value).fill(null).map((D,x)=>new Y(a.value.year,a.value.month,x+1)))),C=c.computed(()=>a.value.year==b.value&&a.value.month==11?[]:(H.forEach(D=>{let x=a.value.year,z=a.value.month+1;v.value[0].month==11&&(x=x+1,z=0),D.year===x&&D.days.forEach((ie,Re)=>{Re===z&&(d.value=ie)})}),Array(d.value).fill(null).map((D,x)=>new Y(a.value.year,a.value.month+1,x+1)).slice(0,L.value))),I=c.computed(()=>{const D=new Y(p.value,y.value,1);return W7.forEach((x,z)=>{D.format("DDD")==="Su"?u.value=7:D.format("DDD")===x&&(u.value=z)}),u.value}),L=c.computed(()=>42-v.value.length-(I.value?I.value:0)),S=()=>{if(g.value=!g.value,f.value=!1,g.value){const D=a.value.year,x=H.findIndex(z=>z.year===D);m.value=Math.floor(x/$7)}},T=(D,x)=>{D?n.value=!0:x?n.value=!1:n.value=!n.value,n.value?document.addEventListener("click",u9):(document.removeEventListener("click",u9),LE())},R=()=>{f.value=!f.value,g.value=!1},O=()=>{let D=a.value.month+1,x=a.value.year;D>11&&(x++,D=0),x+1<k.value||x>b.value||(c9(D,x),a.value=new Y(x,D,1))},X=()=>{if(g.value)m.value<Tn.value-1&&m.value++;else{let D=a.value.month,x=a.value.year+1;x<k.value||x>b.value||(c9(D,x),a.value=new Y(x,D,1))}},P=()=>{let D=a.value.month-1,x=a.value.year;D<0&&(x--,D=11),x<k.value||x>b.value||(c9(D,x),a.value=new Y(x,D,1))},le=()=>{if(g.value)m.value>0&&m.value--;else{let D=a.value.month,x=a.value.year-1;x<k.value||x>b.value||(c9(D,x),a.value=new Y(x,D,1))}},be=D=>t.modelValue?new Y(t.modelValue).getTime()===D.getTime():!1,G=D=>a.value.month==D,we=D=>a.value.year==D,je=D=>{const x=new Y;return D.day===x.day&&D.year===x.year&&D.month===x.month},Ee=c.computed(()=>{const D=H.map(z=>z.year),x=m.value*$7;return D.slice(x,x+$7)}),Tn=c.computed(()=>Math.ceil(H.length/$7)),Dn=D=>{let x="";const z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ie=z.length;let Re=0;for(;Re<D;)x+=z.charAt(Math.floor(Math.random()*ie)),Re+=1;return x},zn=Dn(3)+Dn(3)+Dn(3),c9=(D,x)=>{y.value=D,p.value=x},xV=D=>{y.value=D,a.value.setMonth(D),f.value=!1},LV=D=>{p.value=D,a.value.setYear(D),g.value=!1,t.monthSelect&&(f.value=!0)},d9=D=>{a.value=D,r.value=a.value.format("YYYY-MM-DD"),i("update:modelValue",r.value),i("onSelect",r.value),T()},EV=()=>{/^\d{4}-\d{2}-\d{2}$/.test(r.value)||(r.value=t.modelValue);try{const D=new Y(r.value);d9(D)}catch{r.value=t.modelValue}},u9=D=>{const x=document.getElementById("nepali-calendar-"+zn),z=document.getElementById("nepali-date-input-"+zn);x&&!x.contains(D.target)&&z&&!z.contains(D.target)&&(n.value=!1,LE(),document.removeEventListener("click",u9))},LE=()=>{f.value=!1,g.value=!1,a.value=t.modelValue?new Y(t.modelValue):new Y},SV=()=>{f.value=!1,g.value=!1,a.value=new Y,i("update:modelValue",""),i("onSelect",""),T(!1,!0)};return c.onUnmounted(()=>{document.removeEventListener("click",u9)}),(D,x)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["nepali-datepicker",t.class]),key:zn},[c.createElementVNode("div",{class:c.normalizeClass(["calendar-input-div",o.modelValue?"calendar-input-contain-value":""])},[c.withDirectives(c.createElementVNode("input",{type:"text",class:"calendar-input",onClick:x[0]||(x[0]=z=>T(!0)),"onUpdate:modelValue":x[1]||(x[1]=z=>r.value=z),placeholder:o.placeholder,"aria-haspopup":"true",id:"nepali-date-input-"+zn,onKeyup:x[2]||(x[2]=c.withKeys(z=>EV(),["enter"]))},null,40,Bz),[[c.vModelText,r.value]]),c.createElementVNode("div",{class:"calendar-input-icon calender-icon",onClick:x[3]||(x[3]=c.withModifiers(z=>T(!0),["stop"]))},[n.value&&o.modelValue?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("svg",Fz,x[11]||(x[11]=[c.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)])))]),o.modelValue?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["calendar-input-icon",n.value?"":"calendar-clear-input"]),onClick:x[4]||(x[4]=c.withModifiers(z=>SV(),["stop"]))},x[12]||(x[12]=[c.createElementVNode("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c.createElementVNode("path",{id:"Vector",d:"M18 18L12 12M12 12L6 6M12 12L18 6M12 12L6 18","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]),2)):c.createCommentVNode("",!0)],2),c.createVNode(c.Transition,{name:"calendar-animation"},{default:c.withCtx(()=>[n.value?(c.openBlock(),c.createElementBlock("div",{key:0,class:c.normalizeClass(["calendar",{show:n.value}]),id:"nepali-calendar-"+zn,style:{"user-select":"none"}},[c.createElementVNode("div",jz,[c.createElementVNode("div",Nz,[c.createElementVNode("div",null,[c.createElementVNode("button",{class:"calendar__toggle_button",onClick:x[5]||(x[5]=z=>le())},x[13]||(x[13]=[c.createElementVNode("i",{class:"calendar-icon-double-left"},null,-1)])),!f.value&&!g.value?(c.openBlock(),c.createElementBlock("button",{key:0,class:"calendar__toggle_button",onClick:x[6]||(x[6]=z=>P())},x[14]||(x[14]=[c.createElementVNode("i",{class:"calendar-icon-left"},null,-1)]))):c.createCommentVNode("",!0)]),c.createElementVNode("div",_z,[o.monthSelect?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",Wz,c.toDisplayString(a.value.format("MMMM")),1)),!f.value&&!g.value&&o.monthSelect?(c.openBlock(),c.createElementBlock("a",{key:1,class:"calendar__header_selector",onClick:c.withModifiers(R,["stop"])},c.toDisplayString(a.value.format("MMMM")),1)):c.createCommentVNode("",!0),o.yearSelect?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("a",Uz,c.toDisplayString(a.value.format("YYYY")),1)),!g.value&&o.yearSelect?(c.openBlock(),c.createElementBlock("a",{key:3,class:"calendar__header_selector",onClick:c.withModifiers(S,["stop"])},c.toDisplayString(a.value.format("YYYY")),1)):c.createCommentVNode("",!0),g.value&&o.yearSelect?(c.openBlock(),c.createElementBlock("a",$z,c.toDisplayString(Ee.value[0])+" ~ "+c.toDisplayString(Ee.value[Ee.value.length-1]),1)):c.createCommentVNode("",!0)]),c.createElementVNode("div",null,[!f.value&&!g.value?(c.openBlock(),c.createElementBlock("button",{key:0,class:"calendar__toggle_button",onClick:x[7]||(x[7]=z=>O())},x[15]||(x[15]=[c.createElementVNode("i",{class:"calendar-icon-right"},null,-1)]))):c.createCommentVNode("",!0),c.createElementVNode("button",{class:"calendar__toggle_button",onClick:x[8]||(x[8]=z=>X())},x[16]||(x[16]=[c.createElementVNode("i",{class:"calendar-icon-double-right"},null,-1)]))])]),c.createElementVNode("div",Gz,[!f.value&&!g.value?(c.openBlock(),c.createElementBlock("div",Yz,[c.createElementVNode("div",Zz,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(W7),(z,ie)=>(c.openBlock(),c.createElementBlock("div",{key:ie,class:"calendar__weekday"},c.toDisplayString(z),1))),128))]),c.createElementVNode("div",Xz,[a.value.year==k.value&&a.value.month==0?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:0},c.renderList(I.value,z=>(c.openBlock(),c.createElementBlock("div",{class:"calendar__day_spacer",key:z}))),128)):c.createCommentVNode("",!0),I.value?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:1},c.renderList(M.value,(z,ie)=>(c.openBlock(),c.createElementBlock("div",{key:ie,class:"calendar__day not_current_month",title:`${z.year}-${z.month+1}-${z.day}`,onClick:Re=>d9(z)},[c.createElementVNode("span",null,c.toDisplayString(z.day),1)],8,Kz))),128)):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(v.value,(z,ie)=>(c.openBlock(),c.createElementBlock("div",{key:ie,class:c.normalizeClass(["calendar__day",{selected:be(z),today:je(z)}]),title:`${z.year}-${z.month+1}-${z.day}`,onClick:Re=>d9(z)},[c.createElementVNode("span",null,c.toDisplayString(z.day),1)],10,Jz))),128)),I.value?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:2},c.renderList(C.value,(z,ie)=>(c.openBlock(),c.createElementBlock("div",{key:ie,class:"calendar__day not_current_month",title:`${z.year}-${z.month+1}-${z.day}`,onClick:Re=>d9(z)},[c.createElementVNode("span",null,c.toDisplayString(z.day),1)],8,Qz))),128)):c.createCommentVNode("",!0),a.value.year==b.value&&a.value.month==11?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:3},c.renderList(L.value,z=>(c.openBlock(),c.createElementBlock("div",{class:"calendar__day_spacer",key:z}))),128)):c.createCommentVNode("",!0)])])):c.createCommentVNode("",!0),f.value?(c.openBlock(),c.createElementBlock("div",{key:1,class:"calendar__months",onClick:x[9]||(x[9]=c.withModifiers(()=>{},["stop"]))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(c.unref(sC),(z,ie)=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["calendar_month",{selected:G(ie)}]),onClick:Re=>xV(ie)},c.toDisplayString(z),11,eR))),256))])):c.createCommentVNode("",!0),g.value?(c.openBlock(),c.createElementBlock("div",{key:2,class:"calendar__years",onClick:x[10]||(x[10]=c.withModifiers(()=>{},["stop"]))},[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(Ee.value,z=>(c.openBlock(),c.createElementBlock("div",{class:c.normalizeClass(["calendar__year",{selected:we(z)}]),onClick:ie=>LV(z)},c.toDisplayString(z),11,tR))),256))])):c.createCommentVNode("",!0)])])],10,Oz)):c.createCommentVNode("",!0)]),_:1})],2))}}),aR=(o,e)=>{const t=o.__vccOpts||o;for(const[i,a]of e)t[i]=a;return t},lC=aR(iR,[["__scopeId","data-v-2be2f4ff"]]),oR={class:"flex gap-[5px]"},nR=c.defineComponent({__name:"DateSelector",props:{modelValue:{default:""},inputWidth:{default:120},isBS:{type:Boolean,default:!1},showToggle:{type:Boolean,default:!0}},emits:["update:modelValue","update:isBS"],setup(o,{emit:e}){const t=o,i=e,a=c.ref(""),n=c.ref(t.isBS);c.watch(()=>t.modelValue,l=>{/^\d{4}-\d{2}-\d{2}$/.test(l)?l!==a.value&&(a.value=n.value?l?Ge(l):"":l):i("update:modelValue",n.value?a.value?he(a.value):"":a.value)},{immediate:!0}),c.watch(()=>a.value,l=>{i("update:modelValue",n.value?l?he(l):"":l)});const r=()=>{n.value?a.value=a.value?Ge(a.value):"":a.value=a.value?he(a.value):""};return c.watch(()=>t.isBS,l=>{l!==n.value&&(n.value=l)}),c.watch(()=>n.value,l=>{i("update:isBS",l),r()}),(l,h)=>(c.openBlock(),c.createElementBlock("div",oR,[n.value?(c.openBlock(),c.createBlock(c.unref(lC),{key:1,modelValue:a.value,"onUpdate:modelValue":h[1]||(h[1]=d=>a.value=d),style:c.normalizeStyle(`width: ${l.inputWidth}px; min-width: ${l.inputWidth}px; max-width: ${l.inputWidth}px`)},null,8,["modelValue","style"])):(c.openBlock(),c.createBlock(c.unref(oC),{key:0,value:a.value,"onUpdate:value":h[0]||(h[0]=d=>a.value=d),valueType:"YYYY-MM-DD",style:c.normalizeStyle(`width: ${l.inputWidth}px; min-width: ${l.inputWidth}px; max-width: ${l.inputWidth}px`)},null,8,["value","style"])),l.showToggle?(c.openBlock(),c.createBlock(F9,{key:2,modelValue:n.value,"onUpdate:modelValue":h[2]||(h[2]=d=>n.value=d),onText:"BS",offText:"AD"},null,8,["modelValue"])):c.createCommentVNode("",!0)]))}});function hC(o){return o===0?!1:Array.isArray(o)&&o.length===0?!0:!o}function sR(o){return(...e)=>!o(...e)}function rR(o,e){return o===void 0&&(o="undefined"),o===null&&(o="null"),o===!1&&(o="false"),o.toString().toLowerCase().indexOf(e.trim())!==-1}function lR(o){return o.filter(e=>!e.$isLabel)}function cC(o,e){return t=>t.reduce((i,a)=>a[o]&&a[o].length?(i.push({$groupLabel:a[e],$isLabel:!0}),i.concat(a[o])):i,[])}const yL=(...o)=>e=>o.reduce((t,i)=>i(t),e);var hR={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(o,e){return hC(o)?"":e?o[e]:o}},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},filteringSortFunc:{type:Function,default:null}},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 o=this.search||"",e=o.toLowerCase().trim();let t=this.options.concat();return this.internalSearch?t=this.groupValues?this.filterAndFlat(t,e,this.label):this.filterOptions(t,e,this.label,this.customLabel):t=this.groupValues?cC(this.groupValues,this.groupLabel)(t):t,t=this.hideSelected?t.filter(sR(this.isSelected)):t,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?t.push({isTag:!0,label:o}):t.unshift({isTag:!0,label:o})),t.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(o=>o[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(o,e,t){return yL(this.filterGroups(e,t,this.groupValues,this.groupLabel,this.customLabel),cC(this.groupValues,this.groupLabel))(o)},flatAndStrip(o){return yL(cC(this.groupValues,this.groupLabel),lR)(o)},updateSearch(o){this.search=o},isExistingOption(o){return this.options?this.optionKeys.indexOf(o)>-1:!1},isSelected(o){const e=this.trackBy?o[this.trackBy]:o;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(o){return!!o.$isDisabled},getOptionLabel(o){if(hC(o))return"";if(o.isTag)return o.label;if(o.$isLabel)return o.$groupLabel;const e=this.customLabel(o,this.label);return hC(e)?"":e},select(o,e){if(o.$isLabel&&this.groupSelect){this.selectGroup(o);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||o.$isDisabled||o.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(o.isTag)this.$emit("tag",o.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(o)){e!=="Tab"&&this.removeElement(o);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([o])):this.$emit("update:modelValue",o),this.$emit("select",o,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(o){const e=this.options.find(t=>t[this.groupLabel]===o.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const t=this.trackBy?e[this.groupValues].map(a=>a[this.trackBy]):e[this.groupValues],i=this.internalValue.filter(a=>t.indexOf(this.trackBy?a[this.trackBy]:a)===-1);this.$emit("update:modelValue",i)}else{const t=e[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&t.splice(this.max-this.internalValue.length),this.$emit("select",t,this.id),this.$emit("update:modelValue",this.internalValue.concat(t))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(o){return o[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(o){return o[this.groupValues].every(this.isOptionDisabled)},removeElement(o,e=!0){if(this.disabled||o.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const t=typeof o=="object"?this.valueKeys.indexOf(o[this.trackBy]):this.valueKeys.indexOf(o);if(this.multiple){const i=this.internalValue.slice(0,t).concat(this.internalValue.slice(t+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",o,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 o=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>o||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(o-40,this.maxHeight))},filterOptions(o,e,t,i){return e?o.filter(a=>rR(i(a,t),e)).sort((a,n)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(a,n):i(a,t).length-i(n,t).length):o},filterGroups(o,e,t,i,a){return n=>n.map(r=>{if(!r[t])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=this.filterOptions(r[t],o,e,a);return l.length?{[i]:r[i],[t]:l}:[]})}}},cR={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(o,e){return{"multiselect__option--highlight":o===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(o,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const t=this.options.find(i=>i[this.groupLabel]===e.$groupLabel);return t&&!this.wholeGroupDisabled(t)?["multiselect__option--group",{"multiselect__option--highlight":o===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(t)}]:"multiselect__option--disabled"},addPointerElement({key:o}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],o),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(o){this.pointer=o,this.pointerDirty=!0}}},fL={name:"vue-multiselect",mixins:[hR,cR],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:o=>`and ${o} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1}},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)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}}};const dR=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],uR={ref:"tags",class:"multiselect__tags"},pR={class:"multiselect__tags-wrap"},yR=["textContent"],fR=["onKeypress","onMousedown"],mR=["textContent"],gR={class:"multiselect__spinner"},kR=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],bR=["id","aria-multiselectable"],wR={key:0},vR={class:"multiselect__option"},MR=["aria-selected","id","role"],CR=["onClick","onMouseenter","data-select","data-selected","data-deselect"],xR=["data-select","data-deselect","onMouseenter","onMousedown"],LR={class:"multiselect__option"},ER={class:"multiselect__option"};function SR(o,e,t,i,a,n){return c.openBlock(),c.createElementBlock("div",{tabindex:o.searchable?-1:t.tabindex,class:c.normalizeClass([{"multiselect--active":o.isOpen,"multiselect--disabled":t.disabled,"multiselect--above":n.isAbove,"multiselect--has-options-group":n.hasOptionGroup},"multiselect"]),onFocus:e[14]||(e[14]=r=>o.activate()),onBlur:e[15]||(e[15]=r=>o.searchable?!1:o.deactivate()),onKeydown:[e[16]||(e[16]=c.withKeys(c.withModifiers(r=>o.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=c.withKeys(c.withModifiers(r=>o.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=c.withKeys(c.withModifiers(r=>o.addPointerElement(r),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=c.withKeys(r=>o.deactivate(),["esc"])),role:"combobox","aria-expanded":o.isOpen,"aria-owns":"listbox-"+o.id,"aria-activedescendant":o.isOpen&&o.pointer!==null?o.id+"-"+o.pointer:null},[c.renderSlot(o.$slots,"caret",{toggle:o.toggle},()=>[c.createElementVNode("div",{onMousedown:e[0]||(e[0]=c.withModifiers(r=>o.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),c.renderSlot(o.$slots,"clear",{search:o.search}),c.createElementVNode("div",uR,[c.renderSlot(o.$slots,"selection",{search:o.search,remove:o.removeElement,values:n.visibleValues,isOpen:o.isOpen},()=>[c.withDirectives(c.createElementVNode("div",pR,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.visibleValues,(r,l)=>c.renderSlot(o.$slots,"tag",{option:r,search:o.search,remove:o.removeElement},()=>[(c.openBlock(),c.createElementBlock("span",{class:"multiselect__tag",key:l,onMousedown:e[1]||(e[1]=c.withModifiers(()=>{},["prevent"]))},[c.createElementVNode("span",{textContent:c.toDisplayString(o.getOptionLabel(r))},null,8,yR),c.createElementVNode("i",{tabindex:"1",onKeypress:c.withKeys(c.withModifiers(h=>o.removeElement(r),["prevent"]),["enter"]),onMousedown:c.withModifiers(h=>o.removeElement(r),["prevent"]),class:"multiselect__tag-icon"},null,40,fR)],32))])),256))],512),[[c.vShow,n.visibleValues.length>0]]),o.internalValue&&o.internalValue.length>t.limit?c.renderSlot(o.$slots,"limit",{key:0},()=>[c.createElementVNode("strong",{class:"multiselect__strong",textContent:c.toDisplayString(t.limitText(o.internalValue.length-t.limit))},null,8,mR)]):c.createCommentVNode("v-if",!0)]),c.createVNode(c.Transition,{name:"multiselect__loading"},{default:c.withCtx(()=>[c.renderSlot(o.$slots,"loading",{},()=>[c.withDirectives(c.createElementVNode("div",gR,null,512),[[c.vShow,t.loading]])])]),_:3}),o.searchable?(c.openBlock(),c.createElementBlock("input",{key:0,ref:"search",name:t.name,id:o.id,type:"text",autocomplete:"off",spellcheck:t.spellcheck,placeholder:o.placeholder,required:n.isRequired,style:c.normalizeStyle(n.inputStyle),value:o.search,disabled:t.disabled,tabindex:t.tabindex,"aria-label":t.name+"-searchbox",onInput:e[2]||(e[2]=r=>o.updateSearch(r.target.value)),onFocus:e[3]||(e[3]=c.withModifiers(r=>o.activate(),["prevent"])),onBlur:e[4]||(e[4]=c.withModifiers(r=>o.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=c.withKeys(r=>o.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=c.withKeys(c.withModifiers(r=>o.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=c.withKeys(c.withModifiers(r=>o.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=c.withKeys(c.withModifiers(r=>o.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=c.withKeys(c.withModifiers(r=>o.addPointerElement(r),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+o.id},null,44,kR)):c.createCommentVNode("v-if",!0),n.isSingleLabelVisible?(c.openBlock(),c.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=c.withModifiers((...r)=>o.toggle&&o.toggle(...r),["prevent"]))},[c.renderSlot(o.$slots,"singleLabel",{option:n.singleValue},()=>[c.createTextVNode(c.toDisplayString(o.currentOptionLabel),1)])],32)):c.createCommentVNode("v-if",!0),n.isPlaceholderVisible?(c.openBlock(),c.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=c.withModifiers((...r)=>o.toggle&&o.toggle(...r),["prevent"]))},[c.renderSlot(o.$slots,"placeholder",{},()=>[c.createTextVNode(c.toDisplayString(o.placeholder),1)])],32)):c.createCommentVNode("v-if",!0)],512),c.createVNode(c.Transition,{name:"multiselect",persisted:""},{default:c.withCtx(()=>[c.withDirectives(c.createElementVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...r)=>o.activate&&o.activate(...r)),tabindex:"-1",onMousedown:e[13]||(e[13]=c.withModifiers(()=>{},["prevent"])),style:c.normalizeStyle({maxHeight:o.optimizedHeight+"px"}),ref:"list"},[c.createElementVNode("ul",{class:"multiselect__content",style:c.normalizeStyle(n.contentStyle),role:"listbox",id:"listbox-"+o.id,"aria-multiselectable":o.multiple},[c.renderSlot(o.$slots,"beforeList"),o.multiple&&o.max===o.internalValue.length?(c.openBlock(),c.createElementBlock("li",wR,[c.createElementVNode("span",vR,[c.renderSlot(o.$slots,"maxElements",{},()=>[c.createTextVNode("Maximum of "+c.toDisplayString(o.max)+" options selected. First remove a selected option to select another.",1)])])])):c.createCommentVNode("v-if",!0),!o.max||o.internalValue.length<o.max?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:1},c.renderList(o.filteredOptions,(r,l)=>(c.openBlock(),c.createElementBlock("li",{class:"multiselect__element",key:l,"aria-selected":o.isSelected(r),id:o.id+"-"+l,role:r&&(r.$isLabel||r.$isDisabled)?null:"option"},[r&&(r.$isLabel||r.$isDisabled)?c.createCommentVNode("v-if",!0):(c.openBlock(),c.createElementBlock("span",{key:0,class:c.normalizeClass([o.optionHighlight(l,r),"multiselect__option"]),onClick:c.withModifiers(h=>o.select(r),["stop"]),onMouseenter:c.withModifiers(h=>o.pointerSet(l),["self"]),"data-select":r&&r.isTag?o.tagPlaceholder:n.selectLabelText,"data-selected":n.selectedLabelText,"data-deselect":n.deselectLabelText},[c.renderSlot(o.$slots,"option",{option:r,search:o.search,index:l},()=>[c.createElementVNode("span",null,c.toDisplayString(o.getOptionLabel(r)),1)])],42,CR)),r&&(r.$isLabel||r.$isDisabled)?(c.openBlock(),c.createElementBlock("span",{key:1,"data-select":o.groupSelect&&n.selectGroupLabelText,"data-deselect":o.groupSelect&&n.deselectGroupLabelText,class:c.normalizeClass([o.groupHighlight(l,r),"multiselect__option"]),onMouseenter:c.withModifiers(h=>o.groupSelect&&o.pointerSet(l),["self"]),onMousedown:c.withModifiers(h=>o.selectGroup(r),["prevent"])},[c.renderSlot(o.$slots,"option",{option:r,search:o.search,index:l},()=>[c.createElementVNode("span",null,c.toDisplayString(o.getOptionLabel(r)),1)])],42,xR)):c.createCommentVNode("v-if",!0)],8,MR))),128)):c.createCommentVNode("v-if",!0),c.withDirectives(c.createElementVNode("li",null,[c.createElementVNode("span",LR,[c.renderSlot(o.$slots,"noResult",{search:o.search},()=>[e[20]||(e[20]=c.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[c.vShow,t.showNoResults&&o.filteredOptions.length===0&&o.search&&!t.loading]]),c.withDirectives(c.createElementVNode("li",null,[c.createElementVNode("span",ER,[c.renderSlot(o.$slots,"noOptions",{},()=>[e[21]||(e[21]=c.createTextVNode("List is empty."))])])],512),[[c.vShow,t.showNoOptions&&(o.options.length===0||n.hasOptionGroup===!0&&o.filteredOptions.length===0)&&!o.search&&!t.loading]]),c.renderSlot(o.$slots,"afterList")],12,bR)],36),[[c.vShow,o.isOpen]])]),_:3})],42,dR)}fL.render=SR;const IR={class:"flex gap-[5px] w-[100%]"},TR=c.defineComponent({__name:"DateRange",props:{modelValue:{default:()=>({startDate:"",endDate:"",dateType:"today",isBS:!1})}},emits:["update:modelValue","search"],setup(o,{emit:e}){const t=e,i=o,a=new ye,n=a.format("YYYY-MM-DD"),r=n?he(n):"",l=c.ref(i.modelValue.isBS?i.modelValue.isBS:!1),h=c.ref(""),d=c.ref(""),u=v=>y.find(C=>C.id===v)||y[4],p=c.computed({get(){return u(i.modelValue.dateType||"today")},set(v){m({dateType:v.id})}}),y=[{name:"Year to date",id:"year_to_date"},{name:"Quarter to date",id:"quarter_to_date"},{name:"Month to date",id:"month_to_date"},{name:"Week to date",id:"week_to_date"},{name:"Today",id:"today"},{name:"Last 30 days",id:"last_30_days"},{name:"Last 90 days",id:"last_90_days"},{name:"First quarter (Q1)",id:"first_quarter"},{name:"Second quarter (Q2)",id:"second_quarter"},{name:"Third quarter (Q3)",id:"third_quarter"},{name:"Fourth quarter (Q4)",id:"fourth_quarter"},{name:"Custom",id:"custom"}];c.onMounted(()=>{f()});const f=()=>{if(i.modelValue.startDate&&i.modelValue.endDate)h.value=l.value?Ge(i.modelValue.startDate):i.modelValue.startDate,d.value=l.value?Ge(i.modelValue.endDate):i.modelValue.endDate;else{const v=l.value?n:r;h.value=v,d.value=v,m({startDate:r,endDate:r})}i.modelValue.dateType||(p.value=u("today"),m({dateType:"today"})),i.modelValue.isBS||m({isBS:!1})},g=()=>{h.value&&(h.value=h.value?l.value?Ge(h.value):he(h.value):""),d.value&&(d.value=d.value?l.value?Ge(d.value):he(d.value):"")},k=()=>{m({dateType:"custom"}),b()},b=()=>{let v=h.value,C=d.value;l.value&&(v=h.value?he(h.value):"",C=d.value?he(d.value):""),m({startDate:v,endDate:C})},m=v=>{t("update:modelValue",{...i.modelValue,...v})},M=()=>{b(),t("search",i.modelValue)};return c.watch(()=>l.value,()=>{g(),m({isBS:l.value})}),c.watch(()=>i.modelValue.startDate,v=>{v&&v!==(h.value?l.value?he(h.value):h.value:"")&&(h.value=l.value?Ge(v):v,m({dateType:"custom"}))}),c.watch(()=>i.modelValue.endDate,v=>{v&&v!==(d.value?l.value?he(d.value):d.value:"")&&(d.value=l.value?Ge(v):v,m({dateType:"custom"}))}),c.watch(()=>i.modelValue.isBS,v=>{v!==l.value&&(l.value=v)}),c.watch(()=>h.value,()=>{b()}),c.watch(()=>d.value,()=>{b()}),c.watch(()=>i.modelValue.dateType,v=>{if(v==="custom")return;let C,I;switch(v){case"year_to_date":C=ye.getFiscalYearQuarter(1).start,I=a;break;case"quarter_to_date":C=a.getCurrentFiscalYearQuarterDates().start,I=a;break;case"month_to_date":C=a.startOfMonth(),I=a;break;case"week_to_date":C=a.startOfWeek(),I=a;break;case"today":C=a,I=a;break;case"last_30_days":C=a.addDays(-30),I=a;break;case"last_90_days":C=a.addDays(-90),I=a;break;case"first_quarter":C=ye.getFiscalYearQuarter(1).start,I=ye.getFiscalYearQuarter(1).end;break;case"second_quarter":C=ye.getFiscalYearQuarter(2).start,I=ye.getFiscalYearQuarter(2).end;break;case"third_quarter":C=ye.getFiscalYearQuarter(3).start,I=ye.getFiscalYearQuarter(3).end;break;case"fourth_quarter":C=ye.getFiscalYearQuarter(4).start,I=ye.getFiscalYearQuarter(4).end;break;default:return}const L=C.format("YYYY-MM-DD"),S=I.format("YYYY-MM-DD");l.value?(h.value=L,d.value=S):(h.value=L?he(L):"",d.value=S?he(S):""),m({startDate:L?he(L):"",endDate:S?he(S):""})}),(v,C)=>(c.openBlock(),c.createElementBlock("div",IR,[c.createVNode(c.unref(fL),{modelValue:p.value,"onUpdate:modelValue":C[0]||(C[0]=I=>p.value=I),options:y,searchable:!1,"close-on-select":!0,"allow-empty":!1,"show-labels":!1,placeholder:"Select Date Type",class:"remove-height w-[160px] max-w-[160px]",label:"name","track-by":"id"},null,8,["modelValue"]),l.value?(c.openBlock(),c.createBlock(c.unref(lC),{key:1,modelValue:h.value,"onUpdate:modelValue":C[3]||(C[3]=I=>h.value=I),class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onOnSelect:C[4]||(C[4]=I=>k())},null,8,["modelValue"])):(c.openBlock(),c.createBlock(c.unref(oC),{key:0,value:h.value,"onUpdate:value":C[1]||(C[1]=I=>h.value=I),valueType:"YYYY-MM-DD",class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onChange:C[2]||(C[2]=I=>k())},null,8,["value"])),C[11]||(C[11]=c.createElementVNode("p",{class:"h-fit my-auto"},"-",-1)),l.value?(c.openBlock(),c.createBlock(c.unref(lC),{key:3,modelValue:d.value,"onUpdate:modelValue":C[7]||(C[7]=I=>d.value=I),class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onOnSelect:C[8]||(C[8]=I=>k())},null,8,["modelValue"])):(c.openBlock(),c.createBlock(c.unref(oC),{key:2,value:d.value,"onUpdate:value":C[5]||(C[5]=I=>d.value=I),valueType:"YYYY-MM-DD",class:"w-[120px]! min-w-[120px]! max-w-[120px]!",onChange:C[6]||(C[6]=I=>k())},null,8,["value"])),c.createVNode(F9,{modelValue:l.value,"onUpdate:modelValue":C[9]||(C[9]=I=>l.value=I),onText:"BS",offText:"AD"},null,8,["modelValue"]),c.createElementVNode("button",{class:"btn-outline",onClick:C[10]||(C[10]=I=>M())},"Search")]))}}),DR={mounted:(o,e)=>{if(e.value){o.classList.add("flex"),o.classList.add("flex-col");const t=o.querySelector("input"),i=document.createElement("span");i.classList.add("text-red-500","text-[12px]","error-message"),t==null||t.classList.add("border-red-500"),o.classList.add("border-red-500"),i.textContent=e.value,o.appendChild(i)}},updated:(o,e)=>{const t=o.querySelector("input"),i=o.querySelector(".error-message");if(!i&&e.value){const a=document.createElement("span");a.classList.add("text-red-500","text-[12px]","error-message"),a.textContent=e.value,t==null||t.classList.add("border-red-500"),o.appendChild(a)}else e.value?(o.classList.add("input-error"),t==null||t.classList.add("border-red-500"),i&&(i.textContent=e.value)):(o.classList.remove("input-error"),o.classList.remove("border-red-500"),t==null||t.classList.remove("border-red-500"),i&&i.remove())}},dC=new WeakMap,zR={mounted(o,e){let t=null,i=0;o.classList.add("hide-scrollbar");const a=()=>{o.classList.remove("hide-scrollbar")},n=()=>{o.classList.add("hide-scrollbar"),i=Date.now()},r=()=>{Date.now()-i>=100&&a(),t&&clearTimeout(t),t=setTimeout(n,1e3)};o.addEventListener("scroll",r),dC.set(o,r)},unmounted(o){const e=dC.get(o);e&&(o.removeEventListener("scroll",e),dC.delete(o))}};var uC={exports:{}},mL;function RR(){if(mL)return uC.exports;mL=1;var o=uC.exports={},e,t;function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=i}catch{e=i}try{typeof clearTimeout=="function"?t=clearTimeout:t=a}catch{t=a}})();function n(k){if(e===setTimeout)return setTimeout(k,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(k,0);try{return e(k,0)}catch{try{return e.call(null,k,0)}catch{return e.call(this,k,0)}}}function r(k){if(t===clearTimeout)return clearTimeout(k);if((t===a||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(k);try{return t(k)}catch{try{return t.call(null,k)}catch{return t.call(this,k)}}}var l=[],h=!1,d,u=-1;function p(){!h||!d||(h=!1,d.length?l=d.concat(l):u=-1,l.length&&y())}function y(){if(!h){var k=n(p);h=!0;for(var b=l.length;b;){for(d=l,l=[];++u<b;)d&&d[u].run();u=-1,b=l.length}d=null,h=!1,r(k)}}o.nextTick=function(k){var b=new Array(arguments.length-1);if(arguments.length>1)for(var m=1;m<arguments.length;m++)b[m-1]=arguments[m];l.push(new f(k,b)),l.length===1&&!h&&n(y)};function f(k,b){this.fun=k,this.array=b}f.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={};function g(){}return o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(k){return[]},o.binding=function(k){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(k){throw new Error("process.chdir is not supported")},o.umask=function(){return 0},uC.exports}var gL=RR();const pC=new WeakMap,HR={mounted(o){gL.nextTick(()=>{const e=()=>{typeof o.select=="function"&&o.select()};o.addEventListener("focus",e),pC.set(o,e)})},unmounted(o){const e=pC.get(o);e&&(o.removeEventListener("focus",e),pC.delete(o))}},kL=(o,e,t="RS.",i="usa",a="nepali")=>{const n=parseFloat(o);if(isNaN(n))return"";const r=i==="euro",l=r?",":".",h=r?".":",",d=n.toFixed(2).split(".");let u=d[0];const p=d[1];if(a==="nepali"){const y=u.slice(-3),f=u.slice(0,-3),g=f.replace(/\B(?=(\d{2})+(?!\d))/g,h);u=f?g+h+y:y}else u=u.replace(/\B(?=(\d{3})+(?!\d))/g,h);return e&&t?`${t}${u}${l}${p}`:`${u}${l}${p}`},bL=(o,e,t="RS.",i="usa",a="nepali")=>{if(!o)return 0;const n=i==="euro",r=n?",":".",l=n?".":",";let h=o.trim();e&&t&&h.startsWith(t)&&(h=h.slice(t.length).trim());const d=new RegExp(`\\${l}(?=\\d{2,3})`,"g");h=h.replace(d,"");const u=h.lastIndexOf(r);u!==-1&&r!=="."&&(h=h.slice(0,u)+"."+h.slice(u+1));const p=parseFloat(h);return isNaN(p)?0:p},G7=(o,e,t=!0)=>{t?o.value=kL(o.value,!1,"",e.format,e.structure):o.value=bL(o.value,!1,"",e.format,e.structure).toString()},AR={mounted(o,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};gL.nextTick(()=>{o.value&&G7(o,t)});const i=()=>{G7(o,t),o.removeEventListener("blur",i),o.removeEventListener("keydown",n)},a=()=>{G7(o,t,!1),o.addEventListener("blur",i),o.addEventListener("keydown",n)},n=r=>{const l=/^\d$/.test(r.key),h=r.key===".",d=r.ctrlKey||r.metaKey,u=r.key==="Enter"||r.key==="Tab"||r.key==="Backspace",p=o.value.includes(".");if(h&&p){r.preventDefault();return}l||h&&!p||d||u||r.preventDefault()};o.addEventListener("focus",a),o.eventCleanUp=()=>{o.removeEventListener("focus",a),o.removeEventListener("blur",i),o.removeEventListener("keydown",n)}},updated(o,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};document.activeElement!=o&&G7(o,t)},unmounted(o){}},VR={mounted(o){const e=o.closest(".sidebar-dropdown");if(!e)return;const t=700,i=()=>{const r=o.scrollHeight,l=r*1e3/t;o.style.overflow="hidden",o.style.transition=`height ${l}ms linear`,o.style.height=`${r}px`,clearTimeout(o._timeout),o._timeout=window.setTimeout(()=>{o.style.height="",o.style.transition="",o.style.overflow=""},l)},a=()=>{const r=o.scrollHeight,l=r*1e3/t;o.style.transition=`height ${l}ms linear`,o.style.overflow="hidden",o.style.height=`${r}px`,o.offsetHeight,o.style.height="0px",clearTimeout(o._timeout),o._timeout=window.setTimeout(()=>{o.style.transition="",o.style.overflow=""},l)},n=new MutationObserver(()=>{e.classList.contains("sidebar-item-open")?i():a()});n.observe(e,{attributes:!0,attributeFilter:["class"]}),o._observer=n,e.classList.contains("sidebar-item-open")?o.style.height="auto":(o.style.height="0px",o.style.overflow="hidden")},unmounted(o){o._observer&&o._observer.disconnect(),clearTimeout(o._timeout)}};class PR{constructor(){this.socket=null,this.url="",this.isConnected=!1}setURL(e){this.url=e}init(){var e,t;return this.url==""?(console.log("❗WebSocket url not set!"),Promise.resolve(this)):(((e=this.socket)==null?void 0:e.readyState)==WebSocket.OPEN&&((t=this.socket)==null||t.close()),this.socket?(console.log("❗WebSocket is already initialized"),Promise.resolve(this)):(this.socket=new WebSocket(this.url),new Promise((i,a)=>{this.socket.onopen=()=>{this.isConnected=!0,console.log("✅ WebSocket connected"),i(this)},this.socket.onclose=()=>{this.isConnected=!1},this.socket.onerror=n=>{this.close(),console.error("⛔ WebSocket error occurred:",n),a(n)}})))}onMessage(e){return this.socket?(this.socket.onmessage=t=>{e&&t.data&&e(t.data)},Promise.resolve(this)):(console.error("❗WebSocket is not initialized"),Promise.resolve(this))}sendMessage(e){return new Promise((t,i)=>{if(this.socket&&this.isConnected)try{this.socket.send(e),t()}catch(a){console.error("❗Error sending message:",a),i(a)}else{const a="❗WebSocket is not connected";console.error(a),i(new Error(a))}})}close(){this.socket&&(this.socket.close(),this.isConnected=!1,console.log("❌ WebSocket connection closed"))}getConnectionStatus(){return this.isConnected}}/*!
8046
8046
  * sweetalert2 v11.21.2
8047
8047
  * Released under the MIT License.
8048
- */function wL(o,e,t){if(typeof o=="function"?o===e:o.has(e))return arguments.length<3?e:t;throw new TypeError("Private element is not present on this object")}function qR(o,e){if(e.has(o))throw new TypeError("Cannot initialize the same private elements twice on an object")}function vL(o,e){return o.get(wL(o,e))}function BR(o,e,t){qR(o,e),e.set(o,t)}function FR(o,e,t){return o.set(wL(o,e),t),t}const OR=100,A={},jR=()=>{A.previousActiveElement instanceof HTMLElement?(A.previousActiveElement.focus(),A.previousActiveElement=null):document.body&&document.body.focus()},NR=o=>new Promise(e=>{if(!o)return e();const t=window.scrollX,i=window.scrollY;A.restoreFocusTimeout=setTimeout(()=>{jR(),e()},OR),window.scrollTo(t,i)}),ML="swal2-",w=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((o,e)=>(o[e]=ML+e,o),{}),Y7=["success","warning","info","question","error"].reduce((o,e)=>(o[e]=ML+e,o),{}),CL="SweetAlert2:",yC=o=>o.charAt(0).toUpperCase()+o.slice(1),se=o=>{console.warn(`${CL} ${typeof o=="object"?o.join(" "):o}`)},Fo=o=>{console.error(`${CL} ${o}`)},xL=[],_R=o=>{xL.includes(o)||(xL.push(o),se(o))},LL=(o,e=null)=>{_R(`"${o}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`)},Z7=o=>typeof o=="function"?o():o,fC=o=>o&&typeof o.toPromise=="function",bn=o=>fC(o)?o.toPromise():Promise.resolve(o),mC=o=>o&&Promise.resolve(o)===o,re=()=>document.body.querySelector(`.${w.container}`),wn=o=>{const e=re();return e?e.querySelector(o):null},fe=o=>wn(`.${o}`),N=()=>fe(w.popup),en=()=>fe(w.icon),WR=()=>fe(w["icon-content"]),EL=()=>fe(w.title),gC=()=>fe(w["html-container"]),SL=()=>fe(w.image),kC=()=>fe(w["progress-steps"]),X7=()=>fe(w["validation-message"]),De=()=>wn(`.${w.actions} .${w.confirm}`),tn=()=>wn(`.${w.actions} .${w.cancel}`),Oo=()=>wn(`.${w.actions} .${w.deny}`),UR=()=>fe(w["input-label"]),an=()=>wn(`.${w.loader}`),vn=()=>fe(w.actions),IL=()=>fe(w.footer),K7=()=>fe(w["timer-progress-bar"]),bC=()=>fe(w.close),GR=`
8048
+ */function wL(o,e,t){if(typeof o=="function"?o===e:o.has(e))return arguments.length<3?e:t;throw new TypeError("Private element is not present on this object")}function qR(o,e){if(e.has(o))throw new TypeError("Cannot initialize the same private elements twice on an object")}function vL(o,e){return o.get(wL(o,e))}function BR(o,e,t){qR(o,e),e.set(o,t)}function FR(o,e,t){return o.set(wL(o,e),t),t}const OR=100,A={},jR=()=>{A.previousActiveElement instanceof HTMLElement?(A.previousActiveElement.focus(),A.previousActiveElement=null):document.body&&document.body.focus()},NR=o=>new Promise(e=>{if(!o)return e();const t=window.scrollX,i=window.scrollY;A.restoreFocusTimeout=setTimeout(()=>{jR(),e()},OR),window.scrollTo(t,i)}),ML="swal2-",w=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((o,e)=>(o[e]=ML+e,o),{}),Y7=["success","warning","info","question","error"].reduce((o,e)=>(o[e]=ML+e,o),{}),CL="SweetAlert2:",yC=o=>o.charAt(0).toUpperCase()+o.slice(1),se=o=>{console.warn(`${CL} ${typeof o=="object"?o.join(" "):o}`)},Fo=o=>{console.error(`${CL} ${o}`)},xL=[],_R=o=>{xL.includes(o)||(xL.push(o),se(o))},LL=(o,e=null)=>{_R(`"${o}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`)},Z7=o=>typeof o=="function"?o():o,fC=o=>o&&typeof o.toPromise=="function",bn=o=>fC(o)?o.toPromise():Promise.resolve(o),mC=o=>o&&Promise.resolve(o)===o,re=()=>document.body.querySelector(`.${w.container}`),wn=o=>{const e=re();return e?e.querySelector(o):null},fe=o=>wn(`.${o}`),N=()=>fe(w.popup),en=()=>fe(w.icon),WR=()=>fe(w["icon-content"]),EL=()=>fe(w.title),gC=()=>fe(w["html-container"]),SL=()=>fe(w.image),kC=()=>fe(w["progress-steps"]),X7=()=>fe(w["validation-message"]),De=()=>wn(`.${w.actions} .${w.confirm}`),tn=()=>wn(`.${w.actions} .${w.cancel}`),Oo=()=>wn(`.${w.actions} .${w.deny}`),UR=()=>fe(w["input-label"]),an=()=>wn(`.${w.loader}`),vn=()=>fe(w.actions),IL=()=>fe(w.footer),K7=()=>fe(w["timer-progress-bar"]),bC=()=>fe(w.close),$R=`
8049
8049
  a[href],
8050
8050
  area[href],
8051
8051
  input:not([disabled]),
@@ -8060,7 +8060,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
8060
8060
  audio[controls],
8061
8061
  video[controls],
8062
8062
  summary
8063
- `,wC=()=>{const o=N();if(!o)return[];const e=o.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),t=Array.from(e).sort((n,r)=>{const l=parseInt(n.getAttribute("tabindex")||"0"),h=parseInt(r.getAttribute("tabindex")||"0");return l>h?1:l<h?-1:0}),i=o.querySelectorAll(GR),a=Array.from(i).filter(n=>n.getAttribute("tabindex")!=="-1");return[...new Set(t.concat(a))].filter(n=>ce(n))},vC=()=>qe(document.body,w.shown)&&!qe(document.body,w["toast-shown"])&&!qe(document.body,w["no-backdrop"]),J7=()=>{const o=N();return o?qe(o,w.toast):!1},$R=()=>{const o=N();return o?o.hasAttribute("data-loading"):!1},me=(o,e)=>{if(o.textContent="",e){const i=new DOMParser().parseFromString(e,"text/html"),a=i.querySelector("head");a&&Array.from(a.childNodes).forEach(r=>{o.appendChild(r)});const n=i.querySelector("body");n&&Array.from(n.childNodes).forEach(r=>{r instanceof HTMLVideoElement||r instanceof HTMLAudioElement?o.appendChild(r.cloneNode(!0)):o.appendChild(r)})}},qe=(o,e)=>{if(!e)return!1;const t=e.split(/\s+/);for(let i=0;i<t.length;i++)if(!o.classList.contains(t[i]))return!1;return!0},YR=(o,e)=>{Array.from(o.classList).forEach(t=>{!Object.values(w).includes(t)&&!Object.values(Y7).includes(t)&&!Object.values(e.showClass||{}).includes(t)&&o.classList.remove(t)})},ge=(o,e,t)=>{if(YR(o,e),!e.customClass)return;const i=e.customClass[t];if(i){if(typeof i!="string"&&!i.forEach){se(`Invalid type of customClass.${t}! Expected string or iterable object, got "${typeof i}"`);return}_(o,i)}},Q7=(o,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return o.querySelector(`.${w.popup} > .${w[e]}`);case"checkbox":return o.querySelector(`.${w.popup} > .${w.checkbox} input`);case"radio":return o.querySelector(`.${w.popup} > .${w.radio} input:checked`)||o.querySelector(`.${w.popup} > .${w.radio} input:first-child`);case"range":return o.querySelector(`.${w.popup} > .${w.range} input`);default:return o.querySelector(`.${w.popup} > .${w.input}`)}},TL=o=>{if(o.focus(),o.type!=="file"){const e=o.value;o.value="",o.value=e}},DL=(o,e,t)=>{!o||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(i=>{Array.isArray(o)?o.forEach(a=>{t?a.classList.add(i):a.classList.remove(i)}):t?o.classList.add(i):o.classList.remove(i)}))},_=(o,e)=>{DL(o,e,!0)},Me=(o,e)=>{DL(o,e,!1)},Ye=(o,e)=>{const t=Array.from(o.children);for(let i=0;i<t.length;i++){const a=t[i];if(a instanceof HTMLElement&&qe(a,e))return a}},jo=(o,e,t)=>{t===`${parseInt(t)}`&&(t=parseInt(t)),t||parseInt(t)===0?o.style.setProperty(e,typeof t=="number"?`${t}px`:t):o.style.removeProperty(e)},ee=(o,e="flex")=>{o&&(o.style.display=e)},oe=o=>{o&&(o.style.display="none")},MC=(o,e="block")=>{o&&new MutationObserver(()=>{Mn(o,o.innerHTML,e)}).observe(o,{childList:!0,subtree:!0})},zL=(o,e,t,i)=>{const a=o.querySelector(e);a&&a.style.setProperty(t,i)},Mn=(o,e,t="flex")=>{e?ee(o,t):oe(o)},ce=o=>!!(o&&(o.offsetWidth||o.offsetHeight||o.getClientRects().length)),ZR=()=>!ce(De())&&!ce(Oo())&&!ce(tn()),CC=o=>o.scrollHeight>o.clientHeight,XR=(o,e)=>{let t=o;for(;t&&t!==e;){if(CC(t))return!0;t=t.parentElement}return!1},RL=o=>{const e=window.getComputedStyle(o),t=parseFloat(e.getPropertyValue("animation-duration")||"0"),i=parseFloat(e.getPropertyValue("transition-duration")||"0");return t>0||i>0},xC=(o,e=!1)=>{const t=K7();t&&ce(t)&&(e&&(t.style.transition="none",t.style.width="100%"),setTimeout(()=>{t.style.transition=`width ${o/1e3}s linear`,t.style.width="0%"},10))},KR=()=>{const o=K7();if(!o)return;const e=parseInt(window.getComputedStyle(o).width);o.style.removeProperty("transition"),o.style.width="100%";const t=parseInt(window.getComputedStyle(o).width),i=e/t*100;o.style.width=`${i}%`},JR=()=>typeof window>"u"||typeof document>"u",QR=`
8063
+ `,wC=()=>{const o=N();if(!o)return[];const e=o.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),t=Array.from(e).sort((n,r)=>{const l=parseInt(n.getAttribute("tabindex")||"0"),h=parseInt(r.getAttribute("tabindex")||"0");return l>h?1:l<h?-1:0}),i=o.querySelectorAll($R),a=Array.from(i).filter(n=>n.getAttribute("tabindex")!=="-1");return[...new Set(t.concat(a))].filter(n=>ce(n))},vC=()=>qe(document.body,w.shown)&&!qe(document.body,w["toast-shown"])&&!qe(document.body,w["no-backdrop"]),J7=()=>{const o=N();return o?qe(o,w.toast):!1},GR=()=>{const o=N();return o?o.hasAttribute("data-loading"):!1},me=(o,e)=>{if(o.textContent="",e){const i=new DOMParser().parseFromString(e,"text/html"),a=i.querySelector("head");a&&Array.from(a.childNodes).forEach(r=>{o.appendChild(r)});const n=i.querySelector("body");n&&Array.from(n.childNodes).forEach(r=>{r instanceof HTMLVideoElement||r instanceof HTMLAudioElement?o.appendChild(r.cloneNode(!0)):o.appendChild(r)})}},qe=(o,e)=>{if(!e)return!1;const t=e.split(/\s+/);for(let i=0;i<t.length;i++)if(!o.classList.contains(t[i]))return!1;return!0},YR=(o,e)=>{Array.from(o.classList).forEach(t=>{!Object.values(w).includes(t)&&!Object.values(Y7).includes(t)&&!Object.values(e.showClass||{}).includes(t)&&o.classList.remove(t)})},ge=(o,e,t)=>{if(YR(o,e),!e.customClass)return;const i=e.customClass[t];if(i){if(typeof i!="string"&&!i.forEach){se(`Invalid type of customClass.${t}! Expected string or iterable object, got "${typeof i}"`);return}_(o,i)}},Q7=(o,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return o.querySelector(`.${w.popup} > .${w[e]}`);case"checkbox":return o.querySelector(`.${w.popup} > .${w.checkbox} input`);case"radio":return o.querySelector(`.${w.popup} > .${w.radio} input:checked`)||o.querySelector(`.${w.popup} > .${w.radio} input:first-child`);case"range":return o.querySelector(`.${w.popup} > .${w.range} input`);default:return o.querySelector(`.${w.popup} > .${w.input}`)}},TL=o=>{if(o.focus(),o.type!=="file"){const e=o.value;o.value="",o.value=e}},DL=(o,e,t)=>{!o||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(i=>{Array.isArray(o)?o.forEach(a=>{t?a.classList.add(i):a.classList.remove(i)}):t?o.classList.add(i):o.classList.remove(i)}))},_=(o,e)=>{DL(o,e,!0)},Me=(o,e)=>{DL(o,e,!1)},Ye=(o,e)=>{const t=Array.from(o.children);for(let i=0;i<t.length;i++){const a=t[i];if(a instanceof HTMLElement&&qe(a,e))return a}},jo=(o,e,t)=>{t===`${parseInt(t)}`&&(t=parseInt(t)),t||parseInt(t)===0?o.style.setProperty(e,typeof t=="number"?`${t}px`:t):o.style.removeProperty(e)},ee=(o,e="flex")=>{o&&(o.style.display=e)},oe=o=>{o&&(o.style.display="none")},MC=(o,e="block")=>{o&&new MutationObserver(()=>{Mn(o,o.innerHTML,e)}).observe(o,{childList:!0,subtree:!0})},zL=(o,e,t,i)=>{const a=o.querySelector(e);a&&a.style.setProperty(t,i)},Mn=(o,e,t="flex")=>{e?ee(o,t):oe(o)},ce=o=>!!(o&&(o.offsetWidth||o.offsetHeight||o.getClientRects().length)),ZR=()=>!ce(De())&&!ce(Oo())&&!ce(tn()),CC=o=>o.scrollHeight>o.clientHeight,XR=(o,e)=>{let t=o;for(;t&&t!==e;){if(CC(t))return!0;t=t.parentElement}return!1},RL=o=>{const e=window.getComputedStyle(o),t=parseFloat(e.getPropertyValue("animation-duration")||"0"),i=parseFloat(e.getPropertyValue("transition-duration")||"0");return t>0||i>0},xC=(o,e=!1)=>{const t=K7();t&&ce(t)&&(e&&(t.style.transition="none",t.style.width="100%"),setTimeout(()=>{t.style.transition=`width ${o/1e3}s linear`,t.style.width="0%"},10))},KR=()=>{const o=K7();if(!o)return;const e=parseInt(window.getComputedStyle(o).width);o.style.removeProperty("transition"),o.style.width="100%";const t=parseInt(window.getComputedStyle(o).width),i=e/t*100;o.style.width=`${i}%`},JR=()=>typeof window>"u"||typeof document>"u",QR=`
8064
8064
  <div aria-labelledby="${w.title}" aria-describedby="${w["html-container"]}" class="${w.popup}" tabindex="-1">
8065
8065
  <button type="button" class="${w.close}"></button>
8066
8066
  <ul class="${w["progress-steps"]}"></ul>
@@ -8103,7 +8103,7 @@ Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.ad
8103
8103
  <span class="swal2-x-mark-line-left"></span>
8104
8104
  <span class="swal2-x-mark-line-right"></span>
8105
8105
  </span>
8106
- `,PL=(o,e)=>{if(!e.icon&&!e.iconHtml)return;let t=o.innerHTML,i="";e.iconHtml?i=qL(e.iconHtml):e.icon==="success"?(i=LH,t=t.replace(/ style=".*?"/g,"")):e.icon==="error"?i=EH:e.icon&&(i=qL({question:"?",warning:"!",info:"i"}[e.icon])),t.trim()!==i.trim()&&me(o,i)},SH=(o,e)=>{if(e.iconColor){o.style.color=e.iconColor,o.style.borderColor=e.iconColor;for(const t of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])zL(o,t,"background-color",e.iconColor);zL(o,".swal2-success-ring","border-color",e.iconColor)}},qL=o=>`<div class="${w["icon-content"]}">${o}</div>`,IH=(o,e)=>{const t=SL();if(t){if(!e.imageUrl){oe(t);return}ee(t,""),t.setAttribute("src",e.imageUrl),t.setAttribute("alt",e.imageAlt||""),jo(t,"width",e.imageWidth),jo(t,"height",e.imageHeight),t.className=w.image,ge(t,e,"image")}};let TC=!1,BL=0,FL=0,OL=0,jL=0;const TH=o=>{o.addEventListener("mousedown",t9),document.body.addEventListener("mousemove",i9),o.addEventListener("mouseup",a9),o.addEventListener("touchstart",t9),document.body.addEventListener("touchmove",i9),o.addEventListener("touchend",a9)},DH=o=>{o.removeEventListener("mousedown",t9),document.body.removeEventListener("mousemove",i9),o.removeEventListener("mouseup",a9),o.removeEventListener("touchstart",t9),document.body.removeEventListener("touchmove",i9),o.removeEventListener("touchend",a9)},t9=o=>{const e=N();if(o.target===e||en().contains(o.target)){TC=!0;const t=NL(o);BL=t.clientX,FL=t.clientY,OL=parseInt(e.style.insetInlineStart)||0,jL=parseInt(e.style.insetBlockStart)||0,_(e,"swal2-dragging")}},i9=o=>{const e=N();if(TC){let{clientX:t,clientY:i}=NL(o);e.style.insetInlineStart=`${OL+(t-BL)}px`,e.style.insetBlockStart=`${jL+(i-FL)}px`}},a9=()=>{const o=N();TC=!1,Me(o,"swal2-dragging")},NL=o=>{let e=0,t=0;return o.type.startsWith("mouse")?(e=o.clientX,t=o.clientY):o.type.startsWith("touch")&&(e=o.touches[0].clientX,t=o.touches[0].clientY),{clientX:e,clientY:t}},zH=(o,e)=>{const t=re(),i=N();if(!(!t||!i)){if(e.toast){jo(t,"width",e.width),i.style.width="100%";const a=an();a&&i.insertBefore(a,en())}else jo(i,"width",e.width);jo(i,"padding",e.padding),e.color&&(i.style.color=e.color),e.background&&(i.style.background=e.background),oe(X7()),RH(i,e),e.draggable&&!e.toast?(_(i,w.draggable),TH(i)):(Me(i,w.draggable),DH(i))}},RH=(o,e)=>{const t=e.showClass||{};o.className=`${w.popup} ${ce(o)?t.popup:""}`,e.toast?(_([document.documentElement,document.body],w["toast-shown"]),_(o,w.toast)):_(o,w.modal),ge(o,e,"popup"),typeof e.customClass=="string"&&_(o,e.customClass),e.icon&&_(o,w[`icon-${e.icon}`])},HH=(o,e)=>{const t=kC();if(!t)return;const{progressSteps:i,currentProgressStep:a}=e;if(!i||i.length===0||a===void 0){oe(t);return}ee(t),t.textContent="",a>=i.length&&se("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),i.forEach((n,r)=>{const l=AH(n);if(t.appendChild(l),r===a&&_(l,w["active-progress-step"]),r!==i.length-1){const h=VH(e);t.appendChild(h)}})},AH=o=>{const e=document.createElement("li");return _(e,w["progress-step"]),me(e,o),e},VH=o=>{const e=document.createElement("li");return _(e,w["progress-step-line"]),o.progressStepsDistance&&jo(e,"width",o.progressStepsDistance),e},PH=(o,e)=>{const t=EL();t&&(MC(t),Mn(t,e.title||e.titleText,"block"),e.title&&LC(e.title,t),e.titleText&&(t.innerText=e.titleText),ge(t,e,"title"))},_L=(o,e)=>{zH(o,e),uH(o,e),HH(o,e),xH(o,e),IH(o,e),PH(o,e),dH(o,e),MH(o,e),lH(o,e),CH(o,e);const t=N();typeof e.didRender=="function"&&t&&e.didRender(t),A.eventEmitter.emit("didRender",t)},qH=()=>ce(N()),WL=()=>{var o;return(o=De())===null||o===void 0?void 0:o.click()},BH=()=>{var o;return(o=Oo())===null||o===void 0?void 0:o.click()},FH=()=>{var o;return(o=tn())===null||o===void 0?void 0:o.click()},on=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),UL=o=>{o.keydownTarget&&o.keydownHandlerAdded&&(o.keydownTarget.removeEventListener("keydown",o.keydownHandler,{capture:o.keydownListenerCapture}),o.keydownHandlerAdded=!1)},OH=(o,e,t)=>{UL(o),e.toast||(o.keydownHandler=i=>NH(e,i,t),o.keydownTarget=e.keydownListenerCapture?window:N(),o.keydownListenerCapture=e.keydownListenerCapture,o.keydownTarget.addEventListener("keydown",o.keydownHandler,{capture:o.keydownListenerCapture}),o.keydownHandlerAdded=!0)},DC=(o,e)=>{var t;const i=wC();if(i.length){o=o+e,o===-2&&(o=i.length-1),o===i.length?o=0:o===-1&&(o=i.length-1),i[o].focus();return}(t=N())===null||t===void 0||t.focus()},GL=["ArrowRight","ArrowDown"],jH=["ArrowLeft","ArrowUp"],NH=(o,e,t)=>{o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?_H(e,o):e.key==="Tab"?WH(e):[...GL,...jH].includes(e.key)?UH(e.key):e.key==="Escape"&&GH(e,o,t)))},_H=(o,e)=>{if(!Z7(e.allowEnterKey))return;const t=Q7(N(),e.input);if(o.target&&t&&o.target instanceof HTMLElement&&o.target.outerHTML===t.outerHTML){if(["textarea","file"].includes(e.input))return;WL(),o.preventDefault()}},WH=o=>{const e=o.target,t=wC();let i=-1;for(let a=0;a<t.length;a++)if(e===t[a]){i=a;break}o.shiftKey?DC(i,-1):DC(i,1),o.stopPropagation(),o.preventDefault()},UH=o=>{const e=vn(),t=De(),i=Oo(),a=tn();if(!e||!t||!i||!a)return;const n=[t,i,a];if(document.activeElement instanceof HTMLElement&&!n.includes(document.activeElement))return;const r=GL.includes(o)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let h=0;h<e.children.length;h++){if(l=l[r],!l)return;if(l instanceof HTMLButtonElement&&ce(l))break}l instanceof HTMLButtonElement&&l.focus()}},GH=(o,e,t)=>{Z7(e.allowEscapeKey)&&(o.preventDefault(),t(on.esc))};var nn={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const $H=()=>{const o=re();Array.from(document.body.children).forEach(t=>{t.contains(o)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},$L=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},YL=typeof window<"u"&&!!window.GestureEvent,YH=()=>{if(YL&&!qe(document.body,w.iosfix)){const o=document.body.scrollTop;document.body.style.top=`${o*-1}px`,_(document.body,w.iosfix),ZH()}},ZH=()=>{const o=re();if(!o)return;let e;o.ontouchstart=t=>{e=XH(t)},o.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}},XH=o=>{const e=o.target,t=re(),i=gC();return!t||!i||KH(o)||JH(o)?!1:e===t||!CC(t)&&e instanceof HTMLElement&&!XR(e,i)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(CC(i)&&i.contains(e))},KH=o=>o.touches&&o.touches.length&&o.touches[0].touchType==="stylus",JH=o=>o.touches&&o.touches.length>1,QH=()=>{if(qe(document.body,w.iosfix)){const o=parseInt(document.body.style.top,10);Me(document.body,w.iosfix),document.body.style.top="",document.body.scrollTop=o*-1}},eA=()=>{const o=document.createElement("div");o.className=w["scrollbar-measure"],document.body.appendChild(o);const e=o.getBoundingClientRect().width-o.clientWidth;return document.body.removeChild(o),e};let sn=null;const tA=o=>{sn===null&&(document.body.scrollHeight>window.innerHeight||o==="scroll")&&(sn=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${sn+eA()}px`)},iA=()=>{sn!==null&&(document.body.style.paddingRight=`${sn}px`,sn=null)};function ZL(o,e,t,i){J7()?KL(o,i):(NR(t).then(()=>KL(o,i)),UL(A)),YL?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),vC()&&(iA(),QH(),$L()),aA()}function aA(){Me([document.documentElement,document.body],[w.shown,w["height-auto"],w["no-backdrop"],w["toast-shown"]])}function Ze(o){o=nA(o);const e=nn.swalPromiseResolve.get(this),t=oA(this);this.isAwaitingPromise?o.isDismissed||(xn(this),e(o)):t&&e(o)}const oA=o=>{const e=N();if(!e)return!1;const t=Z.innerParams.get(o);if(!t||qe(e,t.hideClass.popup))return!1;Me(e,t.showClass.popup),_(e,t.hideClass.popup);const i=re();return Me(i,t.showClass.backdrop),_(i,t.hideClass.backdrop),sA(o,e,t),!0};function XL(o){const e=nn.swalPromiseReject.get(this);xn(this),e&&e(o)}const xn=o=>{o.isAwaitingPromise&&(delete o.isAwaitingPromise,Z.innerParams.get(o)||o._destroy())},nA=o=>typeof o>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},o),sA=(o,e,t)=>{var i;const a=re(),n=RL(e);typeof t.willClose=="function"&&t.willClose(e),(i=A.eventEmitter)===null||i===void 0||i.emit("willClose",e),n?rA(o,e,a,t.returnFocus,t.didClose):ZL(o,a,t.returnFocus,t.didClose)},rA=(o,e,t,i,a)=>{A.swalCloseEventFinishedCallback=ZL.bind(null,o,t,i,a);const n=function(r){if(r.target===e){var l;(l=A.swalCloseEventFinishedCallback)===null||l===void 0||l.call(A),delete A.swalCloseEventFinishedCallback,e.removeEventListener("animationend",n),e.removeEventListener("transitionend",n)}};e.addEventListener("animationend",n),e.addEventListener("transitionend",n)},KL=(o,e)=>{setTimeout(()=>{var t;typeof e=="function"&&e.bind(o.params)(),(t=A.eventEmitter)===null||t===void 0||t.emit("didClose"),o._destroy&&o._destroy()})},rn=o=>{let e=N();if(e||new Wo,e=N(),!e)return;const t=an();J7()?oe(en()):lA(e,o),ee(t),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},lA=(o,e)=>{const t=vn(),i=an();!t||!i||(!e&&ce(De())&&(e=De()),ee(t),e&&(oe(e),i.setAttribute("data-button-to-replace",e.className),t.insertBefore(i,e)),_([o,t],w.loading))},hA=(o,e)=>{e.input==="select"||e.input==="radio"?yA(o,e):["text","email","number","tel","textarea"].some(t=>t===e.input)&&(fC(e.inputValue)||mC(e.inputValue))&&(rn(De()),fA(o,e))},cA=(o,e)=>{const t=o.getInput();if(!t)return null;switch(e.input){case"checkbox":return dA(t);case"radio":return uA(t);case"file":return pA(t);default:return e.inputAutoTrim?t.value.trim():t.value}},dA=o=>o.checked?1:0,uA=o=>o.checked?o.value:null,pA=o=>o.files&&o.files.length?o.getAttribute("multiple")!==null?o.files:o.files[0]:null,yA=(o,e)=>{const t=N();if(!t)return;const i=a=>{e.input==="select"?mA(t,o9(a),e):e.input==="radio"&&gA(t,o9(a),e)};fC(e.inputOptions)||mC(e.inputOptions)?(rn(De()),bn(e.inputOptions).then(a=>{o.hideLoading(),i(a)})):typeof e.inputOptions=="object"?i(e.inputOptions):Fo(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},fA=(o,e)=>{const t=o.getInput();t&&(oe(t),bn(e.inputValue).then(i=>{t.value=e.input==="number"?`${parseFloat(i)||0}`:`${i}`,ee(t),t.focus(),o.hideLoading()}).catch(i=>{Fo(`Error in inputValue promise: ${i}`),t.value="",ee(t),t.focus(),o.hideLoading()}))};function mA(o,e,t){const i=Ye(o,w.select);if(!i)return;const a=(n,r,l)=>{const h=document.createElement("option");h.value=l,me(h,r),h.selected=JL(l,t.inputValue),n.appendChild(h)};e.forEach(n=>{const r=n[0],l=n[1];if(Array.isArray(l)){const h=document.createElement("optgroup");h.label=r,h.disabled=!1,i.appendChild(h),l.forEach(d=>a(h,d[1],d[0]))}else a(i,l,r)}),i.focus()}function gA(o,e,t){const i=Ye(o,w.radio);if(!i)return;e.forEach(n=>{const r=n[0],l=n[1],h=document.createElement("input"),d=document.createElement("label");h.type="radio",h.name=w.radio,h.value=r,JL(r,t.inputValue)&&(h.checked=!0);const u=document.createElement("span");me(u,l),u.className=w.label,d.appendChild(h),d.appendChild(u),i.appendChild(d)});const a=i.querySelectorAll("input");a.length&&a[0].focus()}const o9=o=>{const e=[];return o instanceof Map?o.forEach((t,i)=>{let a=t;typeof a=="object"&&(a=o9(a)),e.push([i,a])}):Object.keys(o).forEach(t=>{let i=o[t];typeof i=="object"&&(i=o9(i)),e.push([t,i])}),e},JL=(o,e)=>!!e&&e.toString()===o.toString(),kA=o=>{const e=Z.innerParams.get(o);o.disableButtons(),e.input?QL(o,"confirm"):RC(o,!0)},bA=o=>{const e=Z.innerParams.get(o);o.disableButtons(),e.returnInputValueOnDeny?QL(o,"deny"):zC(o,!1)},wA=(o,e)=>{o.disableButtons(),e(on.cancel)},QL=(o,e)=>{const t=Z.innerParams.get(o);if(!t.input){Fo(`The "input" parameter is needed to be set when using returnInputValueOn${yC(e)}`);return}const i=o.getInput(),a=cA(o,t);t.inputValidator?vA(o,a,e):i&&!i.checkValidity()?(o.enableButtons(),o.showValidationMessage(t.validationMessage||i.validationMessage)):e==="deny"?zC(o,a):RC(o,a)},vA=(o,e,t)=>{const i=Z.innerParams.get(o);o.disableInput(),Promise.resolve().then(()=>bn(i.inputValidator(e,i.validationMessage))).then(n=>{o.enableButtons(),o.enableInput(),n?o.showValidationMessage(n):t==="deny"?zC(o,e):RC(o,e)})},zC=(o,e)=>{const t=Z.innerParams.get(o||void 0);t.showLoaderOnDeny&&rn(Oo()),t.preDeny?(o.isAwaitingPromise=!0,Promise.resolve().then(()=>bn(t.preDeny(e,t.validationMessage))).then(a=>{a===!1?(o.hideLoading(),xn(o)):o.close({isDenied:!0,value:typeof a>"u"?e:a})}).catch(a=>tE(o||void 0,a))):o.close({isDenied:!0,value:e})},eE=(o,e)=>{o.close({isConfirmed:!0,value:e})},tE=(o,e)=>{o.rejectPromise(e)},RC=(o,e)=>{const t=Z.innerParams.get(o||void 0);t.showLoaderOnConfirm&&rn(),t.preConfirm?(o.resetValidationMessage(),o.isAwaitingPromise=!0,Promise.resolve().then(()=>bn(t.preConfirm(e,t.validationMessage))).then(a=>{ce(X7())||a===!1?(o.hideLoading(),xn(o)):eE(o,typeof a>"u"?e:a)}).catch(a=>tE(o||void 0,a))):eE(o,e)};function n9(){const o=Z.innerParams.get(this);if(!o)return;const e=Z.domCache.get(this);oe(e.loader),J7()?o.icon&&ee(en()):MA(e),Me([e.popup,e.actions],w.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const MA=o=>{const e=o.popup.getElementsByClassName(o.loader.getAttribute("data-button-to-replace"));e.length?ee(e[0],"inline-block"):ZR()&&oe(o.actions)};function iE(){const o=Z.innerParams.get(this),e=Z.domCache.get(this);return e?Q7(e.popup,o.input):null}function aE(o,e,t){const i=Z.domCache.get(o);e.forEach(a=>{i[a].disabled=t})}function oE(o,e){const t=N();if(!(!t||!o))if(o.type==="radio"){const i=t.querySelectorAll(`[name="${w.radio}"]`);for(let a=0;a<i.length;a++)i[a].disabled=e}else o.disabled=e}function nE(){aE(this,["confirmButton","denyButton","cancelButton"],!1)}function sE(){aE(this,["confirmButton","denyButton","cancelButton"],!0)}function rE(){oE(this.getInput(),!1)}function lE(){oE(this.getInput(),!0)}function hE(o){const e=Z.domCache.get(this),t=Z.innerParams.get(this);me(e.validationMessage,o),e.validationMessage.className=w["validation-message"],t.customClass&&t.customClass.validationMessage&&_(e.validationMessage,t.customClass.validationMessage),ee(e.validationMessage);const i=this.getInput();i&&(i.setAttribute("aria-invalid","true"),i.setAttribute("aria-describedby",w["validation-message"]),TL(i),_(i,w.inputerror))}function cE(){const o=Z.domCache.get(this);o.validationMessage&&oe(o.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Me(e,w.inputerror))}const ln={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},CA=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],xA={allowEnterKey:void 0},LA=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],dE=o=>Object.prototype.hasOwnProperty.call(ln,o),uE=o=>CA.indexOf(o)!==-1,pE=o=>xA[o],EA=o=>{dE(o)||se(`Unknown parameter "${o}"`)},SA=o=>{LA.includes(o)&&se(`The parameter "${o}" is incompatible with toasts`)},IA=o=>{const e=pE(o);e&&LL(o,e)},yE=o=>{o.backdrop===!1&&o.allowOutsideClick&&se('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),o.theme&&!["light","dark","auto","minimal","borderless","embed-iframe"].includes(o.theme)&&se(`Invalid theme "${o.theme}". Expected "light", "dark", "auto", "minimal", "borderless", or "embed-iframe"`);for(const e in o)EA(e),o.toast&&SA(e),IA(e)};function fE(o){const e=re(),t=N(),i=Z.innerParams.get(this);if(!t||qe(t,i.hideClass.popup)){se("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const a=TA(o),n=Object.assign({},i,a);yE(n),e.dataset.swal2Theme=n.theme,_L(this,n),Z.innerParams.set(this,n),Object.defineProperties(this,{params:{value:Object.assign({},this.params,o),writable:!1,enumerable:!0}})}const TA=o=>{const e={};return Object.keys(o).forEach(t=>{uE(t)?e[t]=o[t]:se(`Invalid parameter to update: ${t}`)}),e};function mE(){const o=Z.domCache.get(this),e=Z.innerParams.get(this);if(!e){gE(this);return}o.popup&&A.swalCloseEventFinishedCallback&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),A.eventEmitter.emit("didDestroy"),DA(this)}const DA=o=>{gE(o),delete o.params,delete A.keydownHandler,delete A.keydownTarget,delete A.currentInstance},gE=o=>{o.isAwaitingPromise?(HC(Z,o),o.isAwaitingPromise=!0):(HC(nn,o),HC(Z,o),delete o.isAwaitingPromise,delete o.disableButtons,delete o.enableButtons,delete o.getInput,delete o.disableInput,delete o.enableInput,delete o.hideLoading,delete o.disableLoading,delete o.showValidationMessage,delete o.resetValidationMessage,delete o.close,delete o.closePopup,delete o.closeModal,delete o.closeToast,delete o.rejectPromise,delete o.update,delete o._destroy)},HC=(o,e)=>{for(const t in o)o[t].delete(e)};var zA=Object.freeze({__proto__:null,_destroy:mE,close:Ze,closeModal:Ze,closePopup:Ze,closeToast:Ze,disableButtons:sE,disableInput:lE,disableLoading:n9,enableButtons:nE,enableInput:rE,getInput:iE,handleAwaitingPromise:xn,hideLoading:n9,rejectPromise:XL,resetValidationMessage:cE,showValidationMessage:hE,update:fE});const RA=(o,e,t)=>{o.toast?HA(o,e,t):(VA(e),PA(e),qA(o,e,t))},HA=(o,e,t)=>{e.popup.onclick=()=>{o&&(AA(o)||o.timer||o.input)||t(on.close)}},AA=o=>!!(o.showConfirmButton||o.showDenyButton||o.showCancelButton||o.showCloseButton);let s9=!1;const VA=o=>{o.popup.onmousedown=()=>{o.container.onmouseup=function(e){o.container.onmouseup=()=>{},e.target===o.container&&(s9=!0)}}},PA=o=>{o.container.onmousedown=e=>{e.target===o.container&&e.preventDefault(),o.popup.onmouseup=function(t){o.popup.onmouseup=()=>{},(t.target===o.popup||t.target instanceof HTMLElement&&o.popup.contains(t.target))&&(s9=!0)}}},qA=(o,e,t)=>{e.container.onclick=i=>{if(s9){s9=!1;return}i.target===e.container&&Z7(o.allowOutsideClick)&&t(on.backdrop)}},BA=o=>typeof o=="object"&&o.jquery,kE=o=>o instanceof Element||BA(o),FA=o=>{const e={};return typeof o[0]=="object"&&!kE(o[0])?Object.assign(e,o[0]):["title","html","icon"].forEach((t,i)=>{const a=o[i];typeof a=="string"||kE(a)?e[t]=a:a!==void 0&&Fo(`Unexpected type of ${t}! Expected "string" or "Element", got ${typeof a}`)}),e};function OA(...o){return new this(...o)}function jA(o){class e extends this{_main(i,a){return super._main(i,Object.assign({},o,a))}}return e}const NA=()=>A.timeout&&A.timeout.getTimerLeft(),bE=()=>{if(A.timeout)return KR(),A.timeout.stop()},wE=()=>{if(A.timeout){const o=A.timeout.start();return xC(o),o}},_A=()=>{const o=A.timeout;return o&&(o.running?bE():wE())},WA=o=>{if(A.timeout){const e=A.timeout.increase(o);return xC(e,!0),e}},UA=()=>!!(A.timeout&&A.timeout.isRunning());let vE=!1;const AC={};function GA(o="data-swal-template"){AC[o]=this,vE||(document.body.addEventListener("click",$A),vE=!0)}const $A=o=>{for(let e=o.target;e&&e!==document;e=e.parentNode)for(const t in AC){const i=e.getAttribute(t);if(i){AC[t].fire({template:i});return}}};class YA{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,t){const i=this._getHandlersByEventName(e);i.includes(t)||i.push(t)}once(e,t){const i=(...a)=>{this.removeListener(e,i),t.apply(this,a)};this.on(e,i)}emit(e,...t){this._getHandlersByEventName(e).forEach(i=>{try{i.apply(this,t)}catch(a){console.error(a)}})}removeListener(e,t){const i=this._getHandlersByEventName(e),a=i.indexOf(t);a>-1&&i.splice(a,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}A.eventEmitter=new YA;var ZA=Object.freeze({__proto__:null,argsToParams:FA,bindClickHandler:GA,clickCancel:FH,clickConfirm:WL,clickDeny:BH,enableLoading:rn,fire:OA,getActions:vn,getCancelButton:tn,getCloseButton:bC,getConfirmButton:De,getContainer:re,getDenyButton:Oo,getFocusableElements:wC,getFooter:IL,getHtmlContainer:gC,getIcon:en,getIconContent:WR,getImage:SL,getInputLabel:UR,getLoader:an,getPopup:N,getProgressSteps:kC,getTimerLeft:NA,getTimerProgressBar:K7,getTitle:EL,getValidationMessage:X7,increaseTimer:WA,isDeprecatedParameter:pE,isLoading:$R,isTimerRunning:UA,isUpdatableParameter:uE,isValidParameter:dE,isVisible:qH,mixin:jA,off:(o,e)=>{if(!o){A.eventEmitter.reset();return}e?A.eventEmitter.removeListener(o,e):A.eventEmitter.removeAllListeners(o)},on:(o,e)=>{A.eventEmitter.on(o,e)},once:(o,e)=>{A.eventEmitter.once(o,e)},resumeTimer:wE,showLoading:rn,stopTimer:bE,toggleTimer:_A});class XA{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ME=["swal-title","swal-html","swal-footer"],KA=o=>{const e=typeof o.template=="string"?document.querySelector(o.template):o.template;if(!e)return{};const t=e.content;return nV(t),Object.assign(JA(t),QA(t),eV(t),tV(t),iV(t),aV(t),oV(t,ME))},JA=o=>{const e={};return Array.from(o.querySelectorAll("swal-param")).forEach(i=>{_o(i,["name","value"]);const a=i.getAttribute("name"),n=i.getAttribute("value");!a||!n||(typeof ln[a]=="boolean"?e[a]=n!=="false":typeof ln[a]=="object"?e[a]=JSON.parse(n):e[a]=n)}),e},QA=o=>{const e={};return Array.from(o.querySelectorAll("swal-function-param")).forEach(i=>{const a=i.getAttribute("name"),n=i.getAttribute("value");!a||!n||(e[a]=new Function(`return ${n}`)())}),e},eV=o=>{const e={};return Array.from(o.querySelectorAll("swal-button")).forEach(i=>{_o(i,["type","color","aria-label"]);const a=i.getAttribute("type");!a||!["confirm","cancel","deny"].includes(a)||(e[`${a}ButtonText`]=i.innerHTML,e[`show${yC(a)}Button`]=!0,i.hasAttribute("color")&&(e[`${a}ButtonColor`]=i.getAttribute("color")),i.hasAttribute("aria-label")&&(e[`${a}ButtonAriaLabel`]=i.getAttribute("aria-label")))}),e},tV=o=>{const e={},t=o.querySelector("swal-image");return t&&(_o(t,["src","width","height","alt"]),t.hasAttribute("src")&&(e.imageUrl=t.getAttribute("src")||void 0),t.hasAttribute("width")&&(e.imageWidth=t.getAttribute("width")||void 0),t.hasAttribute("height")&&(e.imageHeight=t.getAttribute("height")||void 0),t.hasAttribute("alt")&&(e.imageAlt=t.getAttribute("alt")||void 0)),e},iV=o=>{const e={},t=o.querySelector("swal-icon");return t&&(_o(t,["type","color"]),t.hasAttribute("type")&&(e.icon=t.getAttribute("type")),t.hasAttribute("color")&&(e.iconColor=t.getAttribute("color")),e.iconHtml=t.innerHTML),e},aV=o=>{const e={},t=o.querySelector("swal-input");t&&(_o(t,["type","label","placeholder","value"]),e.input=t.getAttribute("type")||"text",t.hasAttribute("label")&&(e.inputLabel=t.getAttribute("label")),t.hasAttribute("placeholder")&&(e.inputPlaceholder=t.getAttribute("placeholder")),t.hasAttribute("value")&&(e.inputValue=t.getAttribute("value")));const i=Array.from(o.querySelectorAll("swal-input-option"));return i.length&&(e.inputOptions={},i.forEach(a=>{_o(a,["value"]);const n=a.getAttribute("value");if(!n)return;const r=a.innerHTML;e.inputOptions[n]=r})),e},oV=(o,e)=>{const t={};for(const i in e){const a=e[i],n=o.querySelector(a);n&&(_o(n,[]),t[a.replace(/^swal-/,"")]=n.innerHTML.trim())}return t},nV=o=>{const e=ME.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(o.children).forEach(t=>{const i=t.tagName.toLowerCase();e.includes(i)||se(`Unrecognized element <${i}>`)})},_o=(o,e)=>{Array.from(o.attributes).forEach(t=>{e.indexOf(t.name)===-1&&se([`Unrecognized attribute "${t.name}" on <${o.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},CE=10,sV=o=>{const e=re(),t=N();typeof o.willOpen=="function"&&o.willOpen(t),A.eventEmitter.emit("willOpen",t);const a=window.getComputedStyle(document.body).overflowY;hV(e,t,o),setTimeout(()=>{rV(e,t)},CE),vC()&&(lV(e,o.scrollbarPadding,a),$H()),!J7()&&!A.previousActiveElement&&(A.previousActiveElement=document.activeElement),typeof o.didOpen=="function"&&setTimeout(()=>o.didOpen(t)),A.eventEmitter.emit("didOpen",t),Me(e,w["no-transition"])},r9=o=>{const e=N();if(o.target!==e)return;const t=re();e.removeEventListener("animationend",r9),e.removeEventListener("transitionend",r9),t.style.overflowY="auto"},rV=(o,e)=>{RL(e)?(o.style.overflowY="hidden",e.addEventListener("animationend",r9),e.addEventListener("transitionend",r9)):o.style.overflowY="auto"},lV=(o,e,t)=>{YH(),e&&t!=="hidden"&&tA(t),setTimeout(()=>{o.scrollTop=0})},hV=(o,e,t)=>{_(o,t.showClass.backdrop),t.animation?(e.style.setProperty("opacity","0","important"),ee(e,"grid"),setTimeout(()=>{_(e,t.showClass.popup),e.style.removeProperty("opacity")},CE)):ee(e,"grid"),_([document.documentElement,document.body],w.shown),t.heightAuto&&t.backdrop&&!t.toast&&_([document.documentElement,document.body],w["height-auto"])};var xE={email:(o,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(o)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(o,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(o)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function cV(o){o.inputValidator||(o.input==="email"&&(o.inputValidator=xE.email),o.input==="url"&&(o.inputValidator=xE.url))}function dV(o){(!o.target||typeof o.target=="string"&&!document.querySelector(o.target)||typeof o.target!="string"&&!o.target.appendChild)&&(se('Target parameter is not valid, defaulting to "body"'),o.target="body")}function uV(o){cV(o),o.showLoaderOnConfirm&&!o.preConfirm&&se(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
8106
+ `,PL=(o,e)=>{if(!e.icon&&!e.iconHtml)return;let t=o.innerHTML,i="";e.iconHtml?i=qL(e.iconHtml):e.icon==="success"?(i=LH,t=t.replace(/ style=".*?"/g,"")):e.icon==="error"?i=EH:e.icon&&(i=qL({question:"?",warning:"!",info:"i"}[e.icon])),t.trim()!==i.trim()&&me(o,i)},SH=(o,e)=>{if(e.iconColor){o.style.color=e.iconColor,o.style.borderColor=e.iconColor;for(const t of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])zL(o,t,"background-color",e.iconColor);zL(o,".swal2-success-ring","border-color",e.iconColor)}},qL=o=>`<div class="${w["icon-content"]}">${o}</div>`,IH=(o,e)=>{const t=SL();if(t){if(!e.imageUrl){oe(t);return}ee(t,""),t.setAttribute("src",e.imageUrl),t.setAttribute("alt",e.imageAlt||""),jo(t,"width",e.imageWidth),jo(t,"height",e.imageHeight),t.className=w.image,ge(t,e,"image")}};let TC=!1,BL=0,FL=0,OL=0,jL=0;const TH=o=>{o.addEventListener("mousedown",t9),document.body.addEventListener("mousemove",i9),o.addEventListener("mouseup",a9),o.addEventListener("touchstart",t9),document.body.addEventListener("touchmove",i9),o.addEventListener("touchend",a9)},DH=o=>{o.removeEventListener("mousedown",t9),document.body.removeEventListener("mousemove",i9),o.removeEventListener("mouseup",a9),o.removeEventListener("touchstart",t9),document.body.removeEventListener("touchmove",i9),o.removeEventListener("touchend",a9)},t9=o=>{const e=N();if(o.target===e||en().contains(o.target)){TC=!0;const t=NL(o);BL=t.clientX,FL=t.clientY,OL=parseInt(e.style.insetInlineStart)||0,jL=parseInt(e.style.insetBlockStart)||0,_(e,"swal2-dragging")}},i9=o=>{const e=N();if(TC){let{clientX:t,clientY:i}=NL(o);e.style.insetInlineStart=`${OL+(t-BL)}px`,e.style.insetBlockStart=`${jL+(i-FL)}px`}},a9=()=>{const o=N();TC=!1,Me(o,"swal2-dragging")},NL=o=>{let e=0,t=0;return o.type.startsWith("mouse")?(e=o.clientX,t=o.clientY):o.type.startsWith("touch")&&(e=o.touches[0].clientX,t=o.touches[0].clientY),{clientX:e,clientY:t}},zH=(o,e)=>{const t=re(),i=N();if(!(!t||!i)){if(e.toast){jo(t,"width",e.width),i.style.width="100%";const a=an();a&&i.insertBefore(a,en())}else jo(i,"width",e.width);jo(i,"padding",e.padding),e.color&&(i.style.color=e.color),e.background&&(i.style.background=e.background),oe(X7()),RH(i,e),e.draggable&&!e.toast?(_(i,w.draggable),TH(i)):(Me(i,w.draggable),DH(i))}},RH=(o,e)=>{const t=e.showClass||{};o.className=`${w.popup} ${ce(o)?t.popup:""}`,e.toast?(_([document.documentElement,document.body],w["toast-shown"]),_(o,w.toast)):_(o,w.modal),ge(o,e,"popup"),typeof e.customClass=="string"&&_(o,e.customClass),e.icon&&_(o,w[`icon-${e.icon}`])},HH=(o,e)=>{const t=kC();if(!t)return;const{progressSteps:i,currentProgressStep:a}=e;if(!i||i.length===0||a===void 0){oe(t);return}ee(t),t.textContent="",a>=i.length&&se("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),i.forEach((n,r)=>{const l=AH(n);if(t.appendChild(l),r===a&&_(l,w["active-progress-step"]),r!==i.length-1){const h=VH(e);t.appendChild(h)}})},AH=o=>{const e=document.createElement("li");return _(e,w["progress-step"]),me(e,o),e},VH=o=>{const e=document.createElement("li");return _(e,w["progress-step-line"]),o.progressStepsDistance&&jo(e,"width",o.progressStepsDistance),e},PH=(o,e)=>{const t=EL();t&&(MC(t),Mn(t,e.title||e.titleText,"block"),e.title&&LC(e.title,t),e.titleText&&(t.innerText=e.titleText),ge(t,e,"title"))},_L=(o,e)=>{zH(o,e),uH(o,e),HH(o,e),xH(o,e),IH(o,e),PH(o,e),dH(o,e),MH(o,e),lH(o,e),CH(o,e);const t=N();typeof e.didRender=="function"&&t&&e.didRender(t),A.eventEmitter.emit("didRender",t)},qH=()=>ce(N()),WL=()=>{var o;return(o=De())===null||o===void 0?void 0:o.click()},BH=()=>{var o;return(o=Oo())===null||o===void 0?void 0:o.click()},FH=()=>{var o;return(o=tn())===null||o===void 0?void 0:o.click()},on=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),UL=o=>{o.keydownTarget&&o.keydownHandlerAdded&&(o.keydownTarget.removeEventListener("keydown",o.keydownHandler,{capture:o.keydownListenerCapture}),o.keydownHandlerAdded=!1)},OH=(o,e,t)=>{UL(o),e.toast||(o.keydownHandler=i=>NH(e,i,t),o.keydownTarget=e.keydownListenerCapture?window:N(),o.keydownListenerCapture=e.keydownListenerCapture,o.keydownTarget.addEventListener("keydown",o.keydownHandler,{capture:o.keydownListenerCapture}),o.keydownHandlerAdded=!0)},DC=(o,e)=>{var t;const i=wC();if(i.length){o=o+e,o===-2&&(o=i.length-1),o===i.length?o=0:o===-1&&(o=i.length-1),i[o].focus();return}(t=N())===null||t===void 0||t.focus()},$L=["ArrowRight","ArrowDown"],jH=["ArrowLeft","ArrowUp"],NH=(o,e,t)=>{o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?_H(e,o):e.key==="Tab"?WH(e):[...$L,...jH].includes(e.key)?UH(e.key):e.key==="Escape"&&$H(e,o,t)))},_H=(o,e)=>{if(!Z7(e.allowEnterKey))return;const t=Q7(N(),e.input);if(o.target&&t&&o.target instanceof HTMLElement&&o.target.outerHTML===t.outerHTML){if(["textarea","file"].includes(e.input))return;WL(),o.preventDefault()}},WH=o=>{const e=o.target,t=wC();let i=-1;for(let a=0;a<t.length;a++)if(e===t[a]){i=a;break}o.shiftKey?DC(i,-1):DC(i,1),o.stopPropagation(),o.preventDefault()},UH=o=>{const e=vn(),t=De(),i=Oo(),a=tn();if(!e||!t||!i||!a)return;const n=[t,i,a];if(document.activeElement instanceof HTMLElement&&!n.includes(document.activeElement))return;const r=$L.includes(o)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let h=0;h<e.children.length;h++){if(l=l[r],!l)return;if(l instanceof HTMLButtonElement&&ce(l))break}l instanceof HTMLButtonElement&&l.focus()}},$H=(o,e,t)=>{Z7(e.allowEscapeKey)&&(o.preventDefault(),t(on.esc))};var nn={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const GH=()=>{const o=re();Array.from(document.body.children).forEach(t=>{t.contains(o)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},GL=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},YL=typeof window<"u"&&!!window.GestureEvent,YH=()=>{if(YL&&!qe(document.body,w.iosfix)){const o=document.body.scrollTop;document.body.style.top=`${o*-1}px`,_(document.body,w.iosfix),ZH()}},ZH=()=>{const o=re();if(!o)return;let e;o.ontouchstart=t=>{e=XH(t)},o.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}},XH=o=>{const e=o.target,t=re(),i=gC();return!t||!i||KH(o)||JH(o)?!1:e===t||!CC(t)&&e instanceof HTMLElement&&!XR(e,i)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(CC(i)&&i.contains(e))},KH=o=>o.touches&&o.touches.length&&o.touches[0].touchType==="stylus",JH=o=>o.touches&&o.touches.length>1,QH=()=>{if(qe(document.body,w.iosfix)){const o=parseInt(document.body.style.top,10);Me(document.body,w.iosfix),document.body.style.top="",document.body.scrollTop=o*-1}},eA=()=>{const o=document.createElement("div");o.className=w["scrollbar-measure"],document.body.appendChild(o);const e=o.getBoundingClientRect().width-o.clientWidth;return document.body.removeChild(o),e};let sn=null;const tA=o=>{sn===null&&(document.body.scrollHeight>window.innerHeight||o==="scroll")&&(sn=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${sn+eA()}px`)},iA=()=>{sn!==null&&(document.body.style.paddingRight=`${sn}px`,sn=null)};function ZL(o,e,t,i){J7()?KL(o,i):(NR(t).then(()=>KL(o,i)),UL(A)),YL?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),vC()&&(iA(),QH(),GL()),aA()}function aA(){Me([document.documentElement,document.body],[w.shown,w["height-auto"],w["no-backdrop"],w["toast-shown"]])}function Ze(o){o=nA(o);const e=nn.swalPromiseResolve.get(this),t=oA(this);this.isAwaitingPromise?o.isDismissed||(xn(this),e(o)):t&&e(o)}const oA=o=>{const e=N();if(!e)return!1;const t=Z.innerParams.get(o);if(!t||qe(e,t.hideClass.popup))return!1;Me(e,t.showClass.popup),_(e,t.hideClass.popup);const i=re();return Me(i,t.showClass.backdrop),_(i,t.hideClass.backdrop),sA(o,e,t),!0};function XL(o){const e=nn.swalPromiseReject.get(this);xn(this),e&&e(o)}const xn=o=>{o.isAwaitingPromise&&(delete o.isAwaitingPromise,Z.innerParams.get(o)||o._destroy())},nA=o=>typeof o>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},o),sA=(o,e,t)=>{var i;const a=re(),n=RL(e);typeof t.willClose=="function"&&t.willClose(e),(i=A.eventEmitter)===null||i===void 0||i.emit("willClose",e),n?rA(o,e,a,t.returnFocus,t.didClose):ZL(o,a,t.returnFocus,t.didClose)},rA=(o,e,t,i,a)=>{A.swalCloseEventFinishedCallback=ZL.bind(null,o,t,i,a);const n=function(r){if(r.target===e){var l;(l=A.swalCloseEventFinishedCallback)===null||l===void 0||l.call(A),delete A.swalCloseEventFinishedCallback,e.removeEventListener("animationend",n),e.removeEventListener("transitionend",n)}};e.addEventListener("animationend",n),e.addEventListener("transitionend",n)},KL=(o,e)=>{setTimeout(()=>{var t;typeof e=="function"&&e.bind(o.params)(),(t=A.eventEmitter)===null||t===void 0||t.emit("didClose"),o._destroy&&o._destroy()})},rn=o=>{let e=N();if(e||new Wo,e=N(),!e)return;const t=an();J7()?oe(en()):lA(e,o),ee(t),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},lA=(o,e)=>{const t=vn(),i=an();!t||!i||(!e&&ce(De())&&(e=De()),ee(t),e&&(oe(e),i.setAttribute("data-button-to-replace",e.className),t.insertBefore(i,e)),_([o,t],w.loading))},hA=(o,e)=>{e.input==="select"||e.input==="radio"?yA(o,e):["text","email","number","tel","textarea"].some(t=>t===e.input)&&(fC(e.inputValue)||mC(e.inputValue))&&(rn(De()),fA(o,e))},cA=(o,e)=>{const t=o.getInput();if(!t)return null;switch(e.input){case"checkbox":return dA(t);case"radio":return uA(t);case"file":return pA(t);default:return e.inputAutoTrim?t.value.trim():t.value}},dA=o=>o.checked?1:0,uA=o=>o.checked?o.value:null,pA=o=>o.files&&o.files.length?o.getAttribute("multiple")!==null?o.files:o.files[0]:null,yA=(o,e)=>{const t=N();if(!t)return;const i=a=>{e.input==="select"?mA(t,o9(a),e):e.input==="radio"&&gA(t,o9(a),e)};fC(e.inputOptions)||mC(e.inputOptions)?(rn(De()),bn(e.inputOptions).then(a=>{o.hideLoading(),i(a)})):typeof e.inputOptions=="object"?i(e.inputOptions):Fo(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},fA=(o,e)=>{const t=o.getInput();t&&(oe(t),bn(e.inputValue).then(i=>{t.value=e.input==="number"?`${parseFloat(i)||0}`:`${i}`,ee(t),t.focus(),o.hideLoading()}).catch(i=>{Fo(`Error in inputValue promise: ${i}`),t.value="",ee(t),t.focus(),o.hideLoading()}))};function mA(o,e,t){const i=Ye(o,w.select);if(!i)return;const a=(n,r,l)=>{const h=document.createElement("option");h.value=l,me(h,r),h.selected=JL(l,t.inputValue),n.appendChild(h)};e.forEach(n=>{const r=n[0],l=n[1];if(Array.isArray(l)){const h=document.createElement("optgroup");h.label=r,h.disabled=!1,i.appendChild(h),l.forEach(d=>a(h,d[1],d[0]))}else a(i,l,r)}),i.focus()}function gA(o,e,t){const i=Ye(o,w.radio);if(!i)return;e.forEach(n=>{const r=n[0],l=n[1],h=document.createElement("input"),d=document.createElement("label");h.type="radio",h.name=w.radio,h.value=r,JL(r,t.inputValue)&&(h.checked=!0);const u=document.createElement("span");me(u,l),u.className=w.label,d.appendChild(h),d.appendChild(u),i.appendChild(d)});const a=i.querySelectorAll("input");a.length&&a[0].focus()}const o9=o=>{const e=[];return o instanceof Map?o.forEach((t,i)=>{let a=t;typeof a=="object"&&(a=o9(a)),e.push([i,a])}):Object.keys(o).forEach(t=>{let i=o[t];typeof i=="object"&&(i=o9(i)),e.push([t,i])}),e},JL=(o,e)=>!!e&&e.toString()===o.toString(),kA=o=>{const e=Z.innerParams.get(o);o.disableButtons(),e.input?QL(o,"confirm"):RC(o,!0)},bA=o=>{const e=Z.innerParams.get(o);o.disableButtons(),e.returnInputValueOnDeny?QL(o,"deny"):zC(o,!1)},wA=(o,e)=>{o.disableButtons(),e(on.cancel)},QL=(o,e)=>{const t=Z.innerParams.get(o);if(!t.input){Fo(`The "input" parameter is needed to be set when using returnInputValueOn${yC(e)}`);return}const i=o.getInput(),a=cA(o,t);t.inputValidator?vA(o,a,e):i&&!i.checkValidity()?(o.enableButtons(),o.showValidationMessage(t.validationMessage||i.validationMessage)):e==="deny"?zC(o,a):RC(o,a)},vA=(o,e,t)=>{const i=Z.innerParams.get(o);o.disableInput(),Promise.resolve().then(()=>bn(i.inputValidator(e,i.validationMessage))).then(n=>{o.enableButtons(),o.enableInput(),n?o.showValidationMessage(n):t==="deny"?zC(o,e):RC(o,e)})},zC=(o,e)=>{const t=Z.innerParams.get(o||void 0);t.showLoaderOnDeny&&rn(Oo()),t.preDeny?(o.isAwaitingPromise=!0,Promise.resolve().then(()=>bn(t.preDeny(e,t.validationMessage))).then(a=>{a===!1?(o.hideLoading(),xn(o)):o.close({isDenied:!0,value:typeof a>"u"?e:a})}).catch(a=>tE(o||void 0,a))):o.close({isDenied:!0,value:e})},eE=(o,e)=>{o.close({isConfirmed:!0,value:e})},tE=(o,e)=>{o.rejectPromise(e)},RC=(o,e)=>{const t=Z.innerParams.get(o||void 0);t.showLoaderOnConfirm&&rn(),t.preConfirm?(o.resetValidationMessage(),o.isAwaitingPromise=!0,Promise.resolve().then(()=>bn(t.preConfirm(e,t.validationMessage))).then(a=>{ce(X7())||a===!1?(o.hideLoading(),xn(o)):eE(o,typeof a>"u"?e:a)}).catch(a=>tE(o||void 0,a))):eE(o,e)};function n9(){const o=Z.innerParams.get(this);if(!o)return;const e=Z.domCache.get(this);oe(e.loader),J7()?o.icon&&ee(en()):MA(e),Me([e.popup,e.actions],w.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const MA=o=>{const e=o.popup.getElementsByClassName(o.loader.getAttribute("data-button-to-replace"));e.length?ee(e[0],"inline-block"):ZR()&&oe(o.actions)};function iE(){const o=Z.innerParams.get(this),e=Z.domCache.get(this);return e?Q7(e.popup,o.input):null}function aE(o,e,t){const i=Z.domCache.get(o);e.forEach(a=>{i[a].disabled=t})}function oE(o,e){const t=N();if(!(!t||!o))if(o.type==="radio"){const i=t.querySelectorAll(`[name="${w.radio}"]`);for(let a=0;a<i.length;a++)i[a].disabled=e}else o.disabled=e}function nE(){aE(this,["confirmButton","denyButton","cancelButton"],!1)}function sE(){aE(this,["confirmButton","denyButton","cancelButton"],!0)}function rE(){oE(this.getInput(),!1)}function lE(){oE(this.getInput(),!0)}function hE(o){const e=Z.domCache.get(this),t=Z.innerParams.get(this);me(e.validationMessage,o),e.validationMessage.className=w["validation-message"],t.customClass&&t.customClass.validationMessage&&_(e.validationMessage,t.customClass.validationMessage),ee(e.validationMessage);const i=this.getInput();i&&(i.setAttribute("aria-invalid","true"),i.setAttribute("aria-describedby",w["validation-message"]),TL(i),_(i,w.inputerror))}function cE(){const o=Z.domCache.get(this);o.validationMessage&&oe(o.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Me(e,w.inputerror))}const ln={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},CA=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],xA={allowEnterKey:void 0},LA=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],dE=o=>Object.prototype.hasOwnProperty.call(ln,o),uE=o=>CA.indexOf(o)!==-1,pE=o=>xA[o],EA=o=>{dE(o)||se(`Unknown parameter "${o}"`)},SA=o=>{LA.includes(o)&&se(`The parameter "${o}" is incompatible with toasts`)},IA=o=>{const e=pE(o);e&&LL(o,e)},yE=o=>{o.backdrop===!1&&o.allowOutsideClick&&se('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),o.theme&&!["light","dark","auto","minimal","borderless","embed-iframe"].includes(o.theme)&&se(`Invalid theme "${o.theme}". Expected "light", "dark", "auto", "minimal", "borderless", or "embed-iframe"`);for(const e in o)EA(e),o.toast&&SA(e),IA(e)};function fE(o){const e=re(),t=N(),i=Z.innerParams.get(this);if(!t||qe(t,i.hideClass.popup)){se("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const a=TA(o),n=Object.assign({},i,a);yE(n),e.dataset.swal2Theme=n.theme,_L(this,n),Z.innerParams.set(this,n),Object.defineProperties(this,{params:{value:Object.assign({},this.params,o),writable:!1,enumerable:!0}})}const TA=o=>{const e={};return Object.keys(o).forEach(t=>{uE(t)?e[t]=o[t]:se(`Invalid parameter to update: ${t}`)}),e};function mE(){const o=Z.domCache.get(this),e=Z.innerParams.get(this);if(!e){gE(this);return}o.popup&&A.swalCloseEventFinishedCallback&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),A.eventEmitter.emit("didDestroy"),DA(this)}const DA=o=>{gE(o),delete o.params,delete A.keydownHandler,delete A.keydownTarget,delete A.currentInstance},gE=o=>{o.isAwaitingPromise?(HC(Z,o),o.isAwaitingPromise=!0):(HC(nn,o),HC(Z,o),delete o.isAwaitingPromise,delete o.disableButtons,delete o.enableButtons,delete o.getInput,delete o.disableInput,delete o.enableInput,delete o.hideLoading,delete o.disableLoading,delete o.showValidationMessage,delete o.resetValidationMessage,delete o.close,delete o.closePopup,delete o.closeModal,delete o.closeToast,delete o.rejectPromise,delete o.update,delete o._destroy)},HC=(o,e)=>{for(const t in o)o[t].delete(e)};var zA=Object.freeze({__proto__:null,_destroy:mE,close:Ze,closeModal:Ze,closePopup:Ze,closeToast:Ze,disableButtons:sE,disableInput:lE,disableLoading:n9,enableButtons:nE,enableInput:rE,getInput:iE,handleAwaitingPromise:xn,hideLoading:n9,rejectPromise:XL,resetValidationMessage:cE,showValidationMessage:hE,update:fE});const RA=(o,e,t)=>{o.toast?HA(o,e,t):(VA(e),PA(e),qA(o,e,t))},HA=(o,e,t)=>{e.popup.onclick=()=>{o&&(AA(o)||o.timer||o.input)||t(on.close)}},AA=o=>!!(o.showConfirmButton||o.showDenyButton||o.showCancelButton||o.showCloseButton);let s9=!1;const VA=o=>{o.popup.onmousedown=()=>{o.container.onmouseup=function(e){o.container.onmouseup=()=>{},e.target===o.container&&(s9=!0)}}},PA=o=>{o.container.onmousedown=e=>{e.target===o.container&&e.preventDefault(),o.popup.onmouseup=function(t){o.popup.onmouseup=()=>{},(t.target===o.popup||t.target instanceof HTMLElement&&o.popup.contains(t.target))&&(s9=!0)}}},qA=(o,e,t)=>{e.container.onclick=i=>{if(s9){s9=!1;return}i.target===e.container&&Z7(o.allowOutsideClick)&&t(on.backdrop)}},BA=o=>typeof o=="object"&&o.jquery,kE=o=>o instanceof Element||BA(o),FA=o=>{const e={};return typeof o[0]=="object"&&!kE(o[0])?Object.assign(e,o[0]):["title","html","icon"].forEach((t,i)=>{const a=o[i];typeof a=="string"||kE(a)?e[t]=a:a!==void 0&&Fo(`Unexpected type of ${t}! Expected "string" or "Element", got ${typeof a}`)}),e};function OA(...o){return new this(...o)}function jA(o){class e extends this{_main(i,a){return super._main(i,Object.assign({},o,a))}}return e}const NA=()=>A.timeout&&A.timeout.getTimerLeft(),bE=()=>{if(A.timeout)return KR(),A.timeout.stop()},wE=()=>{if(A.timeout){const o=A.timeout.start();return xC(o),o}},_A=()=>{const o=A.timeout;return o&&(o.running?bE():wE())},WA=o=>{if(A.timeout){const e=A.timeout.increase(o);return xC(e,!0),e}},UA=()=>!!(A.timeout&&A.timeout.isRunning());let vE=!1;const AC={};function $A(o="data-swal-template"){AC[o]=this,vE||(document.body.addEventListener("click",GA),vE=!0)}const GA=o=>{for(let e=o.target;e&&e!==document;e=e.parentNode)for(const t in AC){const i=e.getAttribute(t);if(i){AC[t].fire({template:i});return}}};class YA{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,t){const i=this._getHandlersByEventName(e);i.includes(t)||i.push(t)}once(e,t){const i=(...a)=>{this.removeListener(e,i),t.apply(this,a)};this.on(e,i)}emit(e,...t){this._getHandlersByEventName(e).forEach(i=>{try{i.apply(this,t)}catch(a){console.error(a)}})}removeListener(e,t){const i=this._getHandlersByEventName(e),a=i.indexOf(t);a>-1&&i.splice(a,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}A.eventEmitter=new YA;var ZA=Object.freeze({__proto__:null,argsToParams:FA,bindClickHandler:$A,clickCancel:FH,clickConfirm:WL,clickDeny:BH,enableLoading:rn,fire:OA,getActions:vn,getCancelButton:tn,getCloseButton:bC,getConfirmButton:De,getContainer:re,getDenyButton:Oo,getFocusableElements:wC,getFooter:IL,getHtmlContainer:gC,getIcon:en,getIconContent:WR,getImage:SL,getInputLabel:UR,getLoader:an,getPopup:N,getProgressSteps:kC,getTimerLeft:NA,getTimerProgressBar:K7,getTitle:EL,getValidationMessage:X7,increaseTimer:WA,isDeprecatedParameter:pE,isLoading:GR,isTimerRunning:UA,isUpdatableParameter:uE,isValidParameter:dE,isVisible:qH,mixin:jA,off:(o,e)=>{if(!o){A.eventEmitter.reset();return}e?A.eventEmitter.removeListener(o,e):A.eventEmitter.removeAllListeners(o)},on:(o,e)=>{A.eventEmitter.on(o,e)},once:(o,e)=>{A.eventEmitter.once(o,e)},resumeTimer:wE,showLoading:rn,stopTimer:bE,toggleTimer:_A});class XA{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ME=["swal-title","swal-html","swal-footer"],KA=o=>{const e=typeof o.template=="string"?document.querySelector(o.template):o.template;if(!e)return{};const t=e.content;return nV(t),Object.assign(JA(t),QA(t),eV(t),tV(t),iV(t),aV(t),oV(t,ME))},JA=o=>{const e={};return Array.from(o.querySelectorAll("swal-param")).forEach(i=>{_o(i,["name","value"]);const a=i.getAttribute("name"),n=i.getAttribute("value");!a||!n||(typeof ln[a]=="boolean"?e[a]=n!=="false":typeof ln[a]=="object"?e[a]=JSON.parse(n):e[a]=n)}),e},QA=o=>{const e={};return Array.from(o.querySelectorAll("swal-function-param")).forEach(i=>{const a=i.getAttribute("name"),n=i.getAttribute("value");!a||!n||(e[a]=new Function(`return ${n}`)())}),e},eV=o=>{const e={};return Array.from(o.querySelectorAll("swal-button")).forEach(i=>{_o(i,["type","color","aria-label"]);const a=i.getAttribute("type");!a||!["confirm","cancel","deny"].includes(a)||(e[`${a}ButtonText`]=i.innerHTML,e[`show${yC(a)}Button`]=!0,i.hasAttribute("color")&&(e[`${a}ButtonColor`]=i.getAttribute("color")),i.hasAttribute("aria-label")&&(e[`${a}ButtonAriaLabel`]=i.getAttribute("aria-label")))}),e},tV=o=>{const e={},t=o.querySelector("swal-image");return t&&(_o(t,["src","width","height","alt"]),t.hasAttribute("src")&&(e.imageUrl=t.getAttribute("src")||void 0),t.hasAttribute("width")&&(e.imageWidth=t.getAttribute("width")||void 0),t.hasAttribute("height")&&(e.imageHeight=t.getAttribute("height")||void 0),t.hasAttribute("alt")&&(e.imageAlt=t.getAttribute("alt")||void 0)),e},iV=o=>{const e={},t=o.querySelector("swal-icon");return t&&(_o(t,["type","color"]),t.hasAttribute("type")&&(e.icon=t.getAttribute("type")),t.hasAttribute("color")&&(e.iconColor=t.getAttribute("color")),e.iconHtml=t.innerHTML),e},aV=o=>{const e={},t=o.querySelector("swal-input");t&&(_o(t,["type","label","placeholder","value"]),e.input=t.getAttribute("type")||"text",t.hasAttribute("label")&&(e.inputLabel=t.getAttribute("label")),t.hasAttribute("placeholder")&&(e.inputPlaceholder=t.getAttribute("placeholder")),t.hasAttribute("value")&&(e.inputValue=t.getAttribute("value")));const i=Array.from(o.querySelectorAll("swal-input-option"));return i.length&&(e.inputOptions={},i.forEach(a=>{_o(a,["value"]);const n=a.getAttribute("value");if(!n)return;const r=a.innerHTML;e.inputOptions[n]=r})),e},oV=(o,e)=>{const t={};for(const i in e){const a=e[i],n=o.querySelector(a);n&&(_o(n,[]),t[a.replace(/^swal-/,"")]=n.innerHTML.trim())}return t},nV=o=>{const e=ME.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(o.children).forEach(t=>{const i=t.tagName.toLowerCase();e.includes(i)||se(`Unrecognized element <${i}>`)})},_o=(o,e)=>{Array.from(o.attributes).forEach(t=>{e.indexOf(t.name)===-1&&se([`Unrecognized attribute "${t.name}" on <${o.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},CE=10,sV=o=>{const e=re(),t=N();typeof o.willOpen=="function"&&o.willOpen(t),A.eventEmitter.emit("willOpen",t);const a=window.getComputedStyle(document.body).overflowY;hV(e,t,o),setTimeout(()=>{rV(e,t)},CE),vC()&&(lV(e,o.scrollbarPadding,a),GH()),!J7()&&!A.previousActiveElement&&(A.previousActiveElement=document.activeElement),typeof o.didOpen=="function"&&setTimeout(()=>o.didOpen(t)),A.eventEmitter.emit("didOpen",t),Me(e,w["no-transition"])},r9=o=>{const e=N();if(o.target!==e)return;const t=re();e.removeEventListener("animationend",r9),e.removeEventListener("transitionend",r9),t.style.overflowY="auto"},rV=(o,e)=>{RL(e)?(o.style.overflowY="hidden",e.addEventListener("animationend",r9),e.addEventListener("transitionend",r9)):o.style.overflowY="auto"},lV=(o,e,t)=>{YH(),e&&t!=="hidden"&&tA(t),setTimeout(()=>{o.scrollTop=0})},hV=(o,e,t)=>{_(o,t.showClass.backdrop),t.animation?(e.style.setProperty("opacity","0","important"),ee(e,"grid"),setTimeout(()=>{_(e,t.showClass.popup),e.style.removeProperty("opacity")},CE)):ee(e,"grid"),_([document.documentElement,document.body],w.shown),t.heightAuto&&t.backdrop&&!t.toast&&_([document.documentElement,document.body],w["height-auto"])};var xE={email:(o,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(o)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(o,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(o)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function cV(o){o.inputValidator||(o.input==="email"&&(o.inputValidator=xE.email),o.input==="url"&&(o.inputValidator=xE.url))}function dV(o){(!o.target||typeof o.target=="string"&&!document.querySelector(o.target)||typeof o.target!="string"&&!o.target.appendChild)&&(se('Target parameter is not valid, defaulting to "body"'),o.target="body")}function uV(o){cV(o),o.showLoaderOnConfirm&&!o.preConfirm&&se(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
8107
8107
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
8108
8108
  https://sweetalert2.github.io/#ajax-request`),dV(o),typeof o.title=="string"&&(o.title=o.title.split(`
8109
- `).join("<br />")),nH(o)}let ze;var l9=new WeakMap;class J{constructor(...e){if(BR(this,l9,void 0),typeof window>"u")return;ze=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,FR(l9,this,this._main(ze.params))}_main(e,t={}){if(yE(Object.assign({},t,e)),A.currentInstance){const n=nn.swalPromiseResolve.get(A.currentInstance),{isAwaitingPromise:r}=A.currentInstance;A.currentInstance._destroy(),r||n({isDismissed:!0}),vC()&&$L()}A.currentInstance=ze;const i=yV(e,t);uV(i),Object.freeze(i),A.timeout&&(A.timeout.stop(),delete A.timeout),clearTimeout(A.restoreFocusTimeout);const a=fV(ze);return _L(ze,i),Z.innerParams.set(ze,i),pV(ze,a,i)}then(e){return vL(l9,this).then(e)}finally(e){return vL(l9,this).finally(e)}}const pV=(o,e,t)=>new Promise((i,a)=>{const n=r=>{o.close({isDismissed:!0,dismiss:r})};nn.swalPromiseResolve.set(o,i),nn.swalPromiseReject.set(o,a),e.confirmButton.onclick=()=>{kA(o)},e.denyButton.onclick=()=>{bA(o)},e.cancelButton.onclick=()=>{wA(o,n)},e.closeButton.onclick=()=>{n(on.close)},RA(t,e,n),OH(A,t,n),hA(o,t),sV(t),mV(A,t,n),gV(e,t),setTimeout(()=>{e.container.scrollTop=0})}),yV=(o,e)=>{const t=KA(o),i=Object.assign({},ln,e,t,o);return i.showClass=Object.assign({},ln.showClass,i.showClass),i.hideClass=Object.assign({},ln.hideClass,i.hideClass),i.animation===!1&&(i.showClass={backdrop:"swal2-noanimation"},i.hideClass={}),i},fV=o=>{const e={popup:N(),container:re(),actions:vn(),confirmButton:De(),denyButton:Oo(),cancelButton:tn(),loader:an(),closeButton:bC(),validationMessage:X7(),progressSteps:kC()};return Z.domCache.set(o,e),e},mV=(o,e,t)=>{const i=K7();oe(i),e.timer&&(o.timeout=new XA(()=>{t("timer"),delete o.timeout},e.timer),e.timerProgressBar&&(ee(i),ge(i,e,"timerProgressBar"),setTimeout(()=>{o.timeout&&o.timeout.running&&xC(e.timer)})))},gV=(o,e)=>{if(!e.toast){if(!Z7(e.allowEnterKey)){LL("allowEnterKey"),wV();return}kV(o)||bV(o,e)||DC(-1,1)}},kV=o=>{const e=Array.from(o.popup.querySelectorAll("[autofocus]"));for(const t of e)if(t instanceof HTMLElement&&ce(t))return t.focus(),!0;return!1},bV=(o,e)=>e.focusDeny&&ce(o.denyButton)?(o.denyButton.focus(),!0):e.focusCancel&&ce(o.cancelButton)?(o.cancelButton.focus(),!0):e.focusConfirm&&ce(o.confirmButton)?(o.confirmButton.focus(),!0):!1,wV=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const o=new Date,e=localStorage.getItem("swal-initiation");e?(o.getTime()-Date.parse(e))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const t=document.createElement("audio");t.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",t.loop=!0,document.body.appendChild(t),setTimeout(()=>{t.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${o}`)}J.prototype.disableButtons=sE,J.prototype.enableButtons=nE,J.prototype.getInput=iE,J.prototype.disableInput=lE,J.prototype.enableInput=rE,J.prototype.hideLoading=n9,J.prototype.disableLoading=n9,J.prototype.showValidationMessage=hE,J.prototype.resetValidationMessage=cE,J.prototype.close=Ze,J.prototype.closePopup=Ze,J.prototype.closeModal=Ze,J.prototype.closeToast=Ze,J.prototype.rejectPromise=XL,J.prototype.update=fE,J.prototype._destroy=mE,Object.assign(J,ZA),Object.keys(zA).forEach(o=>{J[o]=function(...e){return ze&&ze[o]?ze[o](...e):null}}),J.DismissReason=on,J.version="11.21.2";const Wo=J;Wo.default=Wo,typeof document<"u"&&function(o,e){var t=o.createElement("style");if(o.getElementsByTagName("head")[0].appendChild(t),t.styleSheet)t.styleSheet.disabled||(t.styleSheet.cssText=e);else try{t.innerHTML=e}catch{t.innerText=e}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-confirm-button-border: 0;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-border: 0;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-border: 0;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-button-transition);box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:var(--swal2-confirm-button-border);border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:var(--swal2-deny-button-border);border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:var(--swal2-cancel-button-border);border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);color:inherit;font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:1px solid #d9d9d9;border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const h9=o=>Wo.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:o||3e3,timerProgressBar:!0,didOpen:e=>{e.onmouseenter=Wo.stopTimer,e.onmouseleave=Wo.resumeTimer,e.onclick=()=>{Wo.close()}}}),vV={error(o,e){h9(e).fire({icon:"error",title:o})},warn(o,e){h9(e).fire({icon:"warning",title:o})},success(o,e){h9(e).fire({icon:"success",title:o})},info(o,e){h9(e).fire({icon:"info",title:o})}},MV=(o,e)=>{const t=o.toLowerCase().split("+").map(h=>h.trim()),i={ctrl:t.includes("ctrl"),alt:t.includes("alt"),shift:t.includes("shift"),meta:t.includes("meta")},a=t.filter(h=>!["ctrl","alt","shift","meta"].includes(h));if(a.length===0)throw new Error("No main keys specified in shortcut.");const n=new Set,r=h=>{n.add(h.key.toLowerCase());const d=h.ctrlKey===i.ctrl&&h.altKey===i.alt&&h.shiftKey===i.shift&&h.metaKey===i.meta,u=a.every(p=>n.has(p));d&&u&&(h.preventDefault(),e(h))},l=h=>{n.delete(h.key.toLowerCase())};return window.addEventListener("keydown",r),window.addEventListener("keyup",l),{destroy(){window.removeEventListener("keydown",r),window.removeEventListener("keyup",l)}}},CV={install(o){o.config.globalProperties.$focusNext=function(e){var r;const i=(r=this.$refs)==null?void 0:r[e];if(i&&typeof i.activate=="function"){i.activate();return}const a=document.getElementById(e);if(!a)return;const n=a.tagName;(n==="INPUT"||n==="TEXTAREA"||n==="BUTTON")&&a.focus()}}};j.ContentLayout=HE,j.CurrencyFormatter=kL,j.CurrencyUnformatter=bL,j.DateRange=TR,j.DateSelector=nR,j.FocusNext=CV,j.Icons=cx,j.InputCurrency=AR,j.InputError=DR,j.InputSelect=HR,j.Modal=qC,j.ScrollbarAnimateDropdown=VR,j.ScrollbarScroll=zR,j.Switch=WE,j.Tabulator=AT,j.Toast=vV,j.Toggle=F9,j.Towser=UT,j.WebSocketWrapper=PR,j.createShortCutKey=MV,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
8109
+ `).join("<br />")),nH(o)}let ze;var l9=new WeakMap;class J{constructor(...e){if(BR(this,l9,void 0),typeof window>"u")return;ze=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,FR(l9,this,this._main(ze.params))}_main(e,t={}){if(yE(Object.assign({},t,e)),A.currentInstance){const n=nn.swalPromiseResolve.get(A.currentInstance),{isAwaitingPromise:r}=A.currentInstance;A.currentInstance._destroy(),r||n({isDismissed:!0}),vC()&&GL()}A.currentInstance=ze;const i=yV(e,t);uV(i),Object.freeze(i),A.timeout&&(A.timeout.stop(),delete A.timeout),clearTimeout(A.restoreFocusTimeout);const a=fV(ze);return _L(ze,i),Z.innerParams.set(ze,i),pV(ze,a,i)}then(e){return vL(l9,this).then(e)}finally(e){return vL(l9,this).finally(e)}}const pV=(o,e,t)=>new Promise((i,a)=>{const n=r=>{o.close({isDismissed:!0,dismiss:r})};nn.swalPromiseResolve.set(o,i),nn.swalPromiseReject.set(o,a),e.confirmButton.onclick=()=>{kA(o)},e.denyButton.onclick=()=>{bA(o)},e.cancelButton.onclick=()=>{wA(o,n)},e.closeButton.onclick=()=>{n(on.close)},RA(t,e,n),OH(A,t,n),hA(o,t),sV(t),mV(A,t,n),gV(e,t),setTimeout(()=>{e.container.scrollTop=0})}),yV=(o,e)=>{const t=KA(o),i=Object.assign({},ln,e,t,o);return i.showClass=Object.assign({},ln.showClass,i.showClass),i.hideClass=Object.assign({},ln.hideClass,i.hideClass),i.animation===!1&&(i.showClass={backdrop:"swal2-noanimation"},i.hideClass={}),i},fV=o=>{const e={popup:N(),container:re(),actions:vn(),confirmButton:De(),denyButton:Oo(),cancelButton:tn(),loader:an(),closeButton:bC(),validationMessage:X7(),progressSteps:kC()};return Z.domCache.set(o,e),e},mV=(o,e,t)=>{const i=K7();oe(i),e.timer&&(o.timeout=new XA(()=>{t("timer"),delete o.timeout},e.timer),e.timerProgressBar&&(ee(i),ge(i,e,"timerProgressBar"),setTimeout(()=>{o.timeout&&o.timeout.running&&xC(e.timer)})))},gV=(o,e)=>{if(!e.toast){if(!Z7(e.allowEnterKey)){LL("allowEnterKey"),wV();return}kV(o)||bV(o,e)||DC(-1,1)}},kV=o=>{const e=Array.from(o.popup.querySelectorAll("[autofocus]"));for(const t of e)if(t instanceof HTMLElement&&ce(t))return t.focus(),!0;return!1},bV=(o,e)=>e.focusDeny&&ce(o.denyButton)?(o.denyButton.focus(),!0):e.focusCancel&&ce(o.cancelButton)?(o.cancelButton.focus(),!0):e.focusConfirm&&ce(o.confirmButton)?(o.confirmButton.focus(),!0):!1,wV=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const o=new Date,e=localStorage.getItem("swal-initiation");e?(o.getTime()-Date.parse(e))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const t=document.createElement("audio");t.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",t.loop=!0,document.body.appendChild(t),setTimeout(()=>{t.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${o}`)}J.prototype.disableButtons=sE,J.prototype.enableButtons=nE,J.prototype.getInput=iE,J.prototype.disableInput=lE,J.prototype.enableInput=rE,J.prototype.hideLoading=n9,J.prototype.disableLoading=n9,J.prototype.showValidationMessage=hE,J.prototype.resetValidationMessage=cE,J.prototype.close=Ze,J.prototype.closePopup=Ze,J.prototype.closeModal=Ze,J.prototype.closeToast=Ze,J.prototype.rejectPromise=XL,J.prototype.update=fE,J.prototype._destroy=mE,Object.assign(J,ZA),Object.keys(zA).forEach(o=>{J[o]=function(...e){return ze&&ze[o]?ze[o](...e):null}}),J.DismissReason=on,J.version="11.21.2";const Wo=J;Wo.default=Wo,typeof document<"u"&&function(o,e){var t=o.createElement("style");if(o.getElementsByTagName("head")[0].appendChild(t),t.styleSheet)t.styleSheet.disabled||(t.styleSheet.cssText=e);else try{t.innerHTML=e}catch{t.innerText=e}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-confirm-button-border: 0;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-border: 0;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-border: 0;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-button-transition);box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:var(--swal2-confirm-button-border);border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:var(--swal2-deny-button-border);border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:var(--swal2-cancel-button-border);border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);color:inherit;font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:1px solid #d9d9d9;border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const h9=o=>Wo.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:o||3e3,timerProgressBar:!0,didOpen:e=>{e.onmouseenter=Wo.stopTimer,e.onmouseleave=Wo.resumeTimer,e.onclick=()=>{Wo.close()}}}),vV={error(o,e){h9(e).fire({icon:"error",title:o})},warn(o,e){h9(e).fire({icon:"warning",title:o})},success(o,e){h9(e).fire({icon:"success",title:o})},info(o,e){h9(e).fire({icon:"info",title:o})}},MV=(o,e)=>{const t=o.toLowerCase().split("+").map(h=>h.trim()),i={ctrl:t.includes("ctrl"),alt:t.includes("alt"),shift:t.includes("shift"),meta:t.includes("meta")},a=t.filter(h=>!["ctrl","alt","shift","meta"].includes(h));if(a.length===0)throw new Error("No main keys specified in shortcut.");const n=new Set,r=h=>{n.add(h.key.toLowerCase());const d=h.ctrlKey===i.ctrl&&h.altKey===i.alt&&h.shiftKey===i.shift&&h.metaKey===i.meta,u=a.every(p=>n.has(p));d&&u&&(h.preventDefault(),e(h))},l=h=>{n.delete(h.key.toLowerCase())};return window.addEventListener("keydown",r),window.addEventListener("keyup",l),{destroy(){window.removeEventListener("keydown",r),window.removeEventListener("keyup",l)}}},CV={install(o){o.config.globalProperties.$focusNext=function(e){var r;const i=(r=this.$refs)==null?void 0:r[e];if(i&&typeof i.activate=="function"){i.activate();return}const a=document.getElementById(e);if(!a)return;const n=a.tagName;(n==="INPUT"||n==="TEXTAREA"||n==="BUTTON")&&a.focus()}}};j.ContentLayout=HE,j.CurrencyFormatter=kL,j.CurrencyUnformatter=bL,j.DateRange=TR,j.DateSelector=nR,j.FocusNext=CV,j.Icons=cx,j.InputCurrency=AR,j.InputError=DR,j.InputSelect=HR,j.Modal=qC,j.ScrollbarAnimateDropdown=VR,j.ScrollbarScroll=zR,j.Switch=WE,j.Tabulator=AT,j.Toast=vV,j.Toggle=F9,j.Towser=UT,j.WebSocketWrapper=PR,j.createShortCutKey=MV,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});