@amsom-habitat/amsom-table 4.6.4 → 4.7.0

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,4 +1,4 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.select-max-item-per-page[data-v-cbeabcc6]{height:100%;color:var(--bs-secondary);border:1px solid var(--bs-secondary);background-color:#0000;font-size:12px}.select-max-item-per-page[data-v-cbeabcc6]:hover{color:var(--bs-white);cursor:pointer;background-color:var(--bs-secondary)}.select-max-item-per-page[data-v-cbeabcc6]:focus{box-shadow:none}input[type=checkbox][data-v-cbeabcc6]{pointer-events:none}.cursor-default[data-v-cbeabcc6]{cursor:default!important}.hoverable[data-v-cbeabcc6]:hover{cursor:pointer!important}.hoverable-grab[data-v-cbeabcc6]:hover{cursor:grab!important}.hoverable-grabbing[data-v-cbeabcc6]:hover{cursor:grabbing!important}.hoverable-no-drop[data-v-cbeabcc6]:hover{cursor:no-drop!important}.addLineState[data-v-cbeabcc6]{background-color:#edecd4!important}.deleteLineState[data-v-cbeabcc6]{background-color:#f8d6da!important}.updateLineState[data-v-cbeabcc6]{background-color:#c4e8ff!important}.sticky-column-left[data-v-cbeabcc6]{background-color:#fff;border-left:1px solid #ddd;position:sticky;left:0}.sticky-column-right[data-v-cbeabcc6]{background-color:#fff;border-left:1px solid #ddd;position:sticky;right:0}table[data-v-cbeabcc6]{border-radius:10px!important}table tr:first-child th[data-v-cbeabcc6]:first-child{border-top-left-radius:10px!important}table tr:first-child th[data-v-cbeabcc6]:last-child{border-top-right-radius:10px!important}table tr:last-child td[data-v-cbeabcc6]:first-child{border-bottom-left-radius:10px!important}table tr:last-child td[data-v-cbeabcc6]:last-child{border-bottom-right-radius:10px!important}.deep-filter-ghost-class[data-v-cbeabcc6]{background-color:var(--bs-secondary)!important;color:rgba(var(--bs-white-rgb), 1)!important}.col-12.p-0.overflow-x-auto[data-v-cbeabcc6],.table-container[data-v-cbeabcc6]{max-width:100%;overflow-x:auto}.bottom-scrollbar[data-v-cbeabcc6]{white-space:nowrap;z-index:100;scrollbar-width:auto;width:100%;height:15px;transition:opacity .3s ease-in-out;display:none;position:fixed;bottom:0;left:0;overflow:auto hidden}.bottom-scrollbar.visible[data-v-cbeabcc6]{display:block}.scrollbar-content[data-v-cbeabcc6]{width:2000px;height:1px}.infinite-scroll-container[data-v-cbeabcc6]{border:1px solid #ddd;border-radius:10px}.infinite-scroll-container .sticky-column-left[data-v-cbeabcc6],.infinite-scroll-container .sticky-column-right[data-v-cbeabcc6]{z-index:10}.infinite-scroll-container thead th.sticky-top[data-v-cbeabcc6]{z-index:20!important}.infinite-scroll-container thead th.sticky-top.sticky-column-left[data-v-cbeabcc6],.infinite-scroll-container thead th.sticky-top.sticky-column-right[data-v-cbeabcc6]{z-index:30!important}.infinite-scroll-container[data-v-cbeabcc6]::-webkit-scrollbar{height:8px}.infinite-scroll-container[data-v-cbeabcc6]::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.infinite-scroll-container[data-v-cbeabcc6]::-webkit-scrollbar-thumb:hover{background-color:#ccc}.infinite-scroll-container[data-v-cbeabcc6]::-webkit-scrollbar-track{background-color:#0000}@keyframes scrollHighlightFade-cbeabcc6{0%{box-shadow:inset 0 0 0 3px #0d6efde6}60%{box-shadow:inset 0 0 0 3px #0d6efd80}to{box-shadow:inset 0 0 0 3px #0d6efd00}}.scroll-to-highlight[data-v-cbeabcc6]{animation:1.8s ease-out forwards scrollHighlightFade-cbeabcc6}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.select-max-item-per-page[data-v-15dacfb7]{height:100%;color:var(--bs-secondary);border:1px solid var(--bs-secondary);background-color:#0000;font-size:12px}.select-max-item-per-page[data-v-15dacfb7]:hover{color:var(--bs-white);cursor:pointer;background-color:var(--bs-secondary)}.select-max-item-per-page[data-v-15dacfb7]:focus{box-shadow:none}input[type=checkbox][data-v-15dacfb7]{pointer-events:none}.cursor-default[data-v-15dacfb7]{cursor:default!important}.hoverable[data-v-15dacfb7]:hover{cursor:pointer!important}.hoverable-grab[data-v-15dacfb7]:hover{cursor:grab!important}.hoverable-grabbing[data-v-15dacfb7]:hover{cursor:grabbing!important}.hoverable-no-drop[data-v-15dacfb7]:hover{cursor:no-drop!important}.addLineState[data-v-15dacfb7]{background-color:#edecd4!important}.deleteLineState[data-v-15dacfb7]{background-color:#f8d6da!important}.updateLineState[data-v-15dacfb7]{background-color:#c4e8ff!important}.sticky-column-left[data-v-15dacfb7]{background-color:#fff;border-left:1px solid #ddd;position:sticky;left:0}.sticky-column-right[data-v-15dacfb7]{background-color:#fff;border-left:1px solid #ddd;position:sticky;right:0}table[data-v-15dacfb7]{border-radius:10px!important}table tr:first-child th[data-v-15dacfb7]:first-child{border-top-left-radius:10px!important}table tr:first-child th[data-v-15dacfb7]:last-child{border-top-right-radius:10px!important}table tr:last-child td[data-v-15dacfb7]:first-child{border-bottom-left-radius:10px!important}table tr:last-child td[data-v-15dacfb7]:last-child{border-bottom-right-radius:10px!important}.deep-filter-ghost-class[data-v-15dacfb7]{background-color:var(--bs-secondary)!important;color:rgba(var(--bs-white-rgb), 1)!important}.col-12.p-0.overflow-x-auto[data-v-15dacfb7],.table-container[data-v-15dacfb7]{max-width:100%;overflow-x:auto}.bottom-scrollbar[data-v-15dacfb7]{white-space:nowrap;z-index:100;scrollbar-width:auto;width:100%;height:15px;transition:opacity .3s ease-in-out;display:none;position:fixed;bottom:0;left:0;overflow:auto hidden}.bottom-scrollbar.visible[data-v-15dacfb7]{display:block}.scrollbar-content[data-v-15dacfb7]{width:2000px;height:1px}.infinite-scroll-container[data-v-15dacfb7]{border:1px solid #ddd;border-radius:10px}.infinite-scroll-container .sticky-column-left[data-v-15dacfb7],.infinite-scroll-container .sticky-column-right[data-v-15dacfb7]{z-index:10}.infinite-scroll-container thead th.sticky-top[data-v-15dacfb7]{z-index:20!important}.infinite-scroll-container thead th.sticky-top.sticky-column-left[data-v-15dacfb7],.infinite-scroll-container thead th.sticky-top.sticky-column-right[data-v-15dacfb7]{z-index:30!important}.infinite-scroll-container[data-v-15dacfb7]::-webkit-scrollbar{height:8px}.infinite-scroll-container[data-v-15dacfb7]::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.infinite-scroll-container[data-v-15dacfb7]::-webkit-scrollbar-thumb:hover{background-color:#ccc}.infinite-scroll-container[data-v-15dacfb7]::-webkit-scrollbar-track{background-color:#0000}@keyframes scrollHighlightFade-15dacfb7{0%{box-shadow:inset 0 0 0 3px #0d6efde6}60%{box-shadow:inset 0 0 0 3px #0d6efd80}to{box-shadow:inset 0 0 0 3px #0d6efd00}}.scroll-to-highlight[data-v-15dacfb7]{animation:1.8s ease-out forwards scrollHighlightFade-15dacfb7}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, h as l, normalizeClass as u, normalizeStyle as d, openBlock as f, renderList as p, renderSlot as ee, resolveComponent as m, toDisplayString as h, vModelCheckbox as te, vModelSelect as g, watch as ne, withCtx as re, withDirectives as ie, withModifiers as ae } from "vue";
3
3
  import { VueDraggableNext as _ } from "vue-draggable-next";
4
4
  import v from "moment-timezone";
@@ -4715,6 +4715,18 @@ var aa = {
4715
4715
  type: Number,
4716
4716
  default: null
4717
4717
  },
4718
+ infiniteScrollThreshold: {
4719
+ type: Number,
4720
+ default: 100
4721
+ },
4722
+ maxHeight: {
4723
+ type: [Number, String],
4724
+ default: null
4725
+ },
4726
+ fillBottomGap: {
4727
+ type: Number,
4728
+ default: 0
4729
+ },
4718
4730
  maxItemPerPageList: {
4719
4731
  type: Array,
4720
4732
  default: () => [
@@ -4898,6 +4910,10 @@ var aa = {
4898
4910
  deepSortsList: [],
4899
4911
  isInternalUpdate: !1,
4900
4912
  currentVisibleItems: 0,
4913
+ resolvedMaxHeightPx: 0,
4914
+ fillHeightPx: 0,
4915
+ heightResizeObserver: null,
4916
+ heightRaf: null,
4901
4917
  scrollTimeout: null,
4902
4918
  stickyColumnsUpdateTimeout: null,
4903
4919
  normalizedItemsCache: /* @__PURE__ */ new Map(),
@@ -4980,8 +4996,27 @@ var aa = {
4980
4996
  let t = (this.currentPage - 1) * this.maxItemsPerPage, n = this.currentPage * this.maxItemsPerPage;
4981
4997
  return e.slice(t, n);
4982
4998
  },
4999
+ usesMaxHeight() {
5000
+ return this.infiniteScroll && this.maxHeight !== null && this.maxHeight !== void 0 && this.maxHeight !== "";
5001
+ },
5002
+ usesFill() {
5003
+ return this.usesMaxHeight && this.maxHeight === "fill";
5004
+ },
5005
+ infiniteScrollPageSize() {
5006
+ if (this.usesMaxHeight) {
5007
+ if (this.maxItemPerPage > 0) return this.maxItemPerPage;
5008
+ if (this.resolvedMaxHeightPx > 0) {
5009
+ let e = this.trHeightPx || 60;
5010
+ return Math.max(1, Math.ceil(this.resolvedMaxHeightPx / e));
5011
+ }
5012
+ return 20;
5013
+ }
5014
+ return this.maxItemPerPage;
5015
+ },
4983
5016
  tableMaxHeight() {
4984
5017
  if (!this.infiniteScroll) return "auto";
5018
+ if (this.usesFill) return this.fillHeightPx > 0 ? `${this.fillHeightPx}px` : "auto";
5019
+ if (this.usesMaxHeight) return typeof this.maxHeight == "number" ? `${this.maxHeight}px` : String(this.maxHeight);
4985
5020
  let e = this.trHeightPx || 60;
4986
5021
  return `${50 + this.maxItemPerPage * e}px`;
4987
5022
  },
@@ -5019,8 +5054,8 @@ var aa = {
5019
5054
  sortedItems: {
5020
5055
  handler(e) {
5021
5056
  if (this.infiniteScroll) {
5022
- let t = this.infiniteScrollIncrement || this.maxItemPerPage;
5023
- this.currentVisibleItems === 0 ? this.currentVisibleItems = Math.min(this.maxItemPerPage + t, e.length) : this.currentVisibleItems = Math.min(this.currentVisibleItems, e.length);
5057
+ let t = this.infiniteScrollIncrement || this.infiniteScrollPageSize;
5058
+ this.currentVisibleItems === 0 ? this.currentVisibleItems = Math.min(this.infiniteScrollPageSize + t, e.length) : this.currentVisibleItems = Math.min(this.currentVisibleItems, e.length);
5024
5059
  }
5025
5060
  this.infiniteScroll || (this.totalPages = this.newTotalPage(e.length));
5026
5061
  },
@@ -5029,8 +5064,8 @@ var aa = {
5029
5064
  filtereditems: {
5030
5065
  handler(e, t) {
5031
5066
  if (this.infiniteScroll && t && e.length !== t.length) if (e.length > t.length && this.currentVisibleItems < e.length) {
5032
- let t = this.infiniteScrollIncrement || this.maxItemPerPage;
5033
- this.currentVisibleItems = Math.min(this.maxItemPerPage + t, e.length);
5067
+ let t = this.infiniteScrollIncrement || this.infiniteScrollPageSize;
5068
+ this.currentVisibleItems = Math.min(this.infiniteScrollPageSize + t, e.length);
5034
5069
  } else e.length < t.length && this.currentVisibleItems > e.length && (this.currentVisibleItems = Math.min(this.currentVisibleItems, e.length));
5035
5070
  },
5036
5071
  immediate: !1
@@ -5128,12 +5163,10 @@ var aa = {
5128
5163
  ...e,
5129
5164
  customSort: t?.customSort || e.customSort || null
5130
5165
  };
5131
- })), this.stickyScrollbarHorizontal && (this.checkTableOverflow(), window.addEventListener("resize", this.checkTableOverflow), window.addEventListener("scroll", this.handleTableScroll)), this.tableContainer = this.$refs.table?.closest(".overflow-x-auto"), this.infiniteScroll && this.$nextTick(() => {
5132
- this.$refs.scrollContainer;
5133
- });
5166
+ })), this.stickyScrollbarHorizontal && (this.checkTableOverflow(), window.addEventListener("resize", this.checkTableOverflow), window.addEventListener("scroll", this.handleTableScroll)), this.tableContainer = this.$refs.table?.closest(".overflow-x-auto"), this.infiniteScroll && this.usesMaxHeight && this.$nextTick(() => this.initHeightObserver());
5134
5167
  },
5135
5168
  beforeUnmount() {
5136
- this.cleanupResizeObserver(), window.removeEventListener("resize", this.checkTableOverflow), window.removeEventListener("scroll", this.handleTableScroll), this.scrollTimeout &&= (clearTimeout(this.scrollTimeout), null), this.stickyColumnsUpdateTimeout &&= (clearTimeout(this.stickyColumnsUpdateTimeout), null), this.stickyColumnsAnimationFrame &&= (cancelAnimationFrame(this.stickyColumnsAnimationFrame), null), this.normalizedItemsCache.clear(), this.deepSortCache = null;
5169
+ this.cleanupResizeObserver(), this.cleanupHeightObserver(), window.removeEventListener("resize", this.checkTableOverflow), window.removeEventListener("scroll", this.handleTableScroll), this.scrollTimeout &&= (clearTimeout(this.scrollTimeout), null), this.stickyColumnsUpdateTimeout &&= (clearTimeout(this.stickyColumnsUpdateTimeout), null), this.stickyColumnsAnimationFrame &&= (cancelAnimationFrame(this.stickyColumnsAnimationFrame), null), this.normalizedItemsCache.clear(), this.deepSortCache = null;
5137
5170
  },
5138
5171
  methods: {
5139
5172
  moment: v,
@@ -5198,6 +5231,39 @@ var aa = {
5198
5231
  cleanupResizeObserver() {
5199
5232
  this.resizeObserver &&= (this.resizeObserver.disconnect(), null);
5200
5233
  },
5234
+ computeFillHeight() {
5235
+ let e = this.$refs.scrollContainer;
5236
+ if (!e) return;
5237
+ let t = e.getBoundingClientRect().top, n = this.trHeightPx || 60;
5238
+ this.fillHeightPx = Math.max(n + 50, Math.floor(window.innerHeight - t - this.fillBottomGap));
5239
+ },
5240
+ measureResolvedHeight() {
5241
+ let e = this.$refs.scrollContainer;
5242
+ e && (this.resolvedMaxHeightPx = e.clientHeight);
5243
+ },
5244
+ syncInfiniteFill() {
5245
+ if (!this.infiniteScroll || !this.usesMaxHeight) return;
5246
+ let e = this.$refs.scrollContainer;
5247
+ if (!e) return;
5248
+ let t = this.trHeightPx || 60, n = this.infiniteScrollIncrement || 1, r = Math.max(1, Math.ceil(e.clientHeight / t)) + n;
5249
+ this.currentVisibleItems < r && (this.currentVisibleItems = Math.min(r, this.sortedItems.length));
5250
+ },
5251
+ refreshMaxHeight() {
5252
+ this.heightRaf ||= requestAnimationFrame(() => {
5253
+ this.heightRaf = null, this.usesFill && this.computeFillHeight(), this.$nextTick(() => {
5254
+ this.measureResolvedHeight(), this.syncInfiniteFill();
5255
+ });
5256
+ });
5257
+ },
5258
+ initHeightObserver() {
5259
+ if (!this.usesMaxHeight) return;
5260
+ this.heightResizeObserver = new ResizeObserver(() => this.refreshMaxHeight()), this.heightResizeObserver.observe(document.body);
5261
+ let e = this.$refs.scrollContainer;
5262
+ e && this.heightResizeObserver.observe(e), this.refreshMaxHeight();
5263
+ },
5264
+ cleanupHeightObserver() {
5265
+ this.heightResizeObserver &&= (this.heightResizeObserver.disconnect(), null), this.heightRaf &&= (cancelAnimationFrame(this.heightRaf), null);
5266
+ },
5201
5267
  updateStickyColumns() {
5202
5268
  this.columns.some((e) => e.stickyLeft || e.stickyRight) && document.getElementById(this.tableId) && (this.stickyColumnsAnimationFrame && cancelAnimationFrame(this.stickyColumnsAnimationFrame), this.stickyColumnsAnimationFrame = requestAnimationFrame(() => {
5203
5269
  let e = [];
@@ -5376,9 +5442,9 @@ var aa = {
5376
5442
  }
5377
5443
  },
5378
5444
  handleInfiniteScroll(e) {
5379
- let { target: t } = e;
5380
- if (t.scrollTop + t.clientHeight >= t.scrollHeight - 10 && this.currentVisibleItems < this.sortedItems.length) {
5381
- let e = this.infiniteScrollIncrement || this.maxItemPerPage, t = Math.min(this.currentVisibleItems + e, this.sortedItems.length);
5445
+ let { target: t } = e, n = this.infiniteScrollThreshold;
5446
+ if (t.scrollTop + t.clientHeight >= t.scrollHeight - n && this.currentVisibleItems < this.sortedItems.length) {
5447
+ let e = this.infiniteScrollIncrement || this.infiniteScrollPageSize, t = Math.min(this.currentVisibleItems + e, this.sortedItems.length);
5382
5448
  t > this.currentVisibleItems && (this.currentVisibleItems = t);
5383
5449
  }
5384
5450
  },
@@ -5785,6 +5851,6 @@ function Wa(t, c, l, ne, _, v) {
5785
5851
  }, [...c[23] ||= [a("div", { class: "scrollbar-content" }, null, -1)]], 10, Ua)) : r("", !0)])) : r("", !0)
5786
5852
  ], 64);
5787
5853
  }
5788
- var Ga = /* @__PURE__ */ ia(aa, [["render", Wa], ["__scopeId", "data-v-cbeabcc6"]]), Ka = Ga;
5854
+ var Ga = /* @__PURE__ */ ia(aa, [["render", Wa], ["__scopeId", "data-v-15dacfb7"]]), Ka = Ga;
5789
5855
  //#endregion
5790
5856
  export { Ga as AmsomTableDraggable, Ka as default };
@@ -1,4 +1,4 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.select-max-item-per-page[data-v-cbeabcc6]{height:100%;color:var(--bs-secondary);border:1px solid var(--bs-secondary);background-color:#0000;font-size:12px}.select-max-item-per-page[data-v-cbeabcc6]:hover{color:var(--bs-white);cursor:pointer;background-color:var(--bs-secondary)}.select-max-item-per-page[data-v-cbeabcc6]:focus{box-shadow:none}input[type=checkbox][data-v-cbeabcc6]{pointer-events:none}.cursor-default[data-v-cbeabcc6]{cursor:default!important}.hoverable[data-v-cbeabcc6]:hover{cursor:pointer!important}.hoverable-grab[data-v-cbeabcc6]:hover{cursor:grab!important}.hoverable-grabbing[data-v-cbeabcc6]:hover{cursor:grabbing!important}.hoverable-no-drop[data-v-cbeabcc6]:hover{cursor:no-drop!important}.addLineState[data-v-cbeabcc6]{background-color:#edecd4!important}.deleteLineState[data-v-cbeabcc6]{background-color:#f8d6da!important}.updateLineState[data-v-cbeabcc6]{background-color:#c4e8ff!important}.sticky-column-left[data-v-cbeabcc6]{background-color:#fff;border-left:1px solid #ddd;position:sticky;left:0}.sticky-column-right[data-v-cbeabcc6]{background-color:#fff;border-left:1px solid #ddd;position:sticky;right:0}table[data-v-cbeabcc6]{border-radius:10px!important}table tr:first-child th[data-v-cbeabcc6]:first-child{border-top-left-radius:10px!important}table tr:first-child th[data-v-cbeabcc6]:last-child{border-top-right-radius:10px!important}table tr:last-child td[data-v-cbeabcc6]:first-child{border-bottom-left-radius:10px!important}table tr:last-child td[data-v-cbeabcc6]:last-child{border-bottom-right-radius:10px!important}.deep-filter-ghost-class[data-v-cbeabcc6]{background-color:var(--bs-secondary)!important;color:rgba(var(--bs-white-rgb), 1)!important}.col-12.p-0.overflow-x-auto[data-v-cbeabcc6],.table-container[data-v-cbeabcc6]{max-width:100%;overflow-x:auto}.bottom-scrollbar[data-v-cbeabcc6]{white-space:nowrap;z-index:100;scrollbar-width:auto;width:100%;height:15px;transition:opacity .3s ease-in-out;display:none;position:fixed;bottom:0;left:0;overflow:auto hidden}.bottom-scrollbar.visible[data-v-cbeabcc6]{display:block}.scrollbar-content[data-v-cbeabcc6]{width:2000px;height:1px}.infinite-scroll-container[data-v-cbeabcc6]{border:1px solid #ddd;border-radius:10px}.infinite-scroll-container .sticky-column-left[data-v-cbeabcc6],.infinite-scroll-container .sticky-column-right[data-v-cbeabcc6]{z-index:10}.infinite-scroll-container thead th.sticky-top[data-v-cbeabcc6]{z-index:20!important}.infinite-scroll-container thead th.sticky-top.sticky-column-left[data-v-cbeabcc6],.infinite-scroll-container thead th.sticky-top.sticky-column-right[data-v-cbeabcc6]{z-index:30!important}.infinite-scroll-container[data-v-cbeabcc6]::-webkit-scrollbar{height:8px}.infinite-scroll-container[data-v-cbeabcc6]::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.infinite-scroll-container[data-v-cbeabcc6]::-webkit-scrollbar-thumb:hover{background-color:#ccc}.infinite-scroll-container[data-v-cbeabcc6]::-webkit-scrollbar-track{background-color:#0000}@keyframes scrollHighlightFade-cbeabcc6{0%{box-shadow:inset 0 0 0 3px #0d6efde6}60%{box-shadow:inset 0 0 0 3px #0d6efd80}to{box-shadow:inset 0 0 0 3px #0d6efd00}}.scroll-to-highlight[data-v-cbeabcc6]{animation:1.8s ease-out forwards scrollHighlightFade-cbeabcc6}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.select-max-item-per-page[data-v-15dacfb7]{height:100%;color:var(--bs-secondary);border:1px solid var(--bs-secondary);background-color:#0000;font-size:12px}.select-max-item-per-page[data-v-15dacfb7]:hover{color:var(--bs-white);cursor:pointer;background-color:var(--bs-secondary)}.select-max-item-per-page[data-v-15dacfb7]:focus{box-shadow:none}input[type=checkbox][data-v-15dacfb7]{pointer-events:none}.cursor-default[data-v-15dacfb7]{cursor:default!important}.hoverable[data-v-15dacfb7]:hover{cursor:pointer!important}.hoverable-grab[data-v-15dacfb7]:hover{cursor:grab!important}.hoverable-grabbing[data-v-15dacfb7]:hover{cursor:grabbing!important}.hoverable-no-drop[data-v-15dacfb7]:hover{cursor:no-drop!important}.addLineState[data-v-15dacfb7]{background-color:#edecd4!important}.deleteLineState[data-v-15dacfb7]{background-color:#f8d6da!important}.updateLineState[data-v-15dacfb7]{background-color:#c4e8ff!important}.sticky-column-left[data-v-15dacfb7]{background-color:#fff;border-left:1px solid #ddd;position:sticky;left:0}.sticky-column-right[data-v-15dacfb7]{background-color:#fff;border-left:1px solid #ddd;position:sticky;right:0}table[data-v-15dacfb7]{border-radius:10px!important}table tr:first-child th[data-v-15dacfb7]:first-child{border-top-left-radius:10px!important}table tr:first-child th[data-v-15dacfb7]:last-child{border-top-right-radius:10px!important}table tr:last-child td[data-v-15dacfb7]:first-child{border-bottom-left-radius:10px!important}table tr:last-child td[data-v-15dacfb7]:last-child{border-bottom-right-radius:10px!important}.deep-filter-ghost-class[data-v-15dacfb7]{background-color:var(--bs-secondary)!important;color:rgba(var(--bs-white-rgb), 1)!important}.col-12.p-0.overflow-x-auto[data-v-15dacfb7],.table-container[data-v-15dacfb7]{max-width:100%;overflow-x:auto}.bottom-scrollbar[data-v-15dacfb7]{white-space:nowrap;z-index:100;scrollbar-width:auto;width:100%;height:15px;transition:opacity .3s ease-in-out;display:none;position:fixed;bottom:0;left:0;overflow:auto hidden}.bottom-scrollbar.visible[data-v-15dacfb7]{display:block}.scrollbar-content[data-v-15dacfb7]{width:2000px;height:1px}.infinite-scroll-container[data-v-15dacfb7]{border:1px solid #ddd;border-radius:10px}.infinite-scroll-container .sticky-column-left[data-v-15dacfb7],.infinite-scroll-container .sticky-column-right[data-v-15dacfb7]{z-index:10}.infinite-scroll-container thead th.sticky-top[data-v-15dacfb7]{z-index:20!important}.infinite-scroll-container thead th.sticky-top.sticky-column-left[data-v-15dacfb7],.infinite-scroll-container thead th.sticky-top.sticky-column-right[data-v-15dacfb7]{z-index:30!important}.infinite-scroll-container[data-v-15dacfb7]::-webkit-scrollbar{height:8px}.infinite-scroll-container[data-v-15dacfb7]::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.infinite-scroll-container[data-v-15dacfb7]::-webkit-scrollbar-thumb:hover{background-color:#ccc}.infinite-scroll-container[data-v-15dacfb7]::-webkit-scrollbar-track{background-color:#0000}@keyframes scrollHighlightFade-15dacfb7{0%{box-shadow:inset 0 0 0 3px #0d6efde6}60%{box-shadow:inset 0 0 0 3px #0d6efd80}to{box-shadow:inset 0 0 0 3px #0d6efd00}}.scroll-to-highlight[data-v-15dacfb7]{animation:1.8s ease-out forwards scrollHighlightFade-15dacfb7}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`),require(`vue-draggable-next`),require(`moment-timezone`)):typeof define==`function`&&define.amd?define([`exports`,`vue`,`vue-draggable-next`,`moment-timezone`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.AmsomTable={},e.Vue,e.vue_draggable_next,e.moment_timezone))})(this,function(e,t,n,r){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e},f=(e,t,n)=>(n=e==null?{}:i(c(e)),d(t||!e||!e.__esModule?a(n,`default`,{value:e,enumerable:!0}):n,e));let p=f(r,1);r=f(r);function ee(e,t,n){return(t=te(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?m(Object(n),!0).forEach(function(t){ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function te(e){var t=g(e,`string`);return typeof t==`symbol`?t:t+``}var ne=()=>{},re={},ie={},ae=null,_={mark:ne,measure:ne};try{typeof window<`u`&&(re=window),typeof document<`u`&&(ie=document),typeof MutationObserver<`u`&&(ae=MutationObserver),typeof performance<`u`&&(_=performance)}catch{}var{userAgent:oe=``}=re.navigator||{},v=re,y=ie,se=ae,b=_;v.document;var ce=!!y.documentElement&&!!y.head&&typeof y.addEventListener==`function`&&typeof y.createElement==`function`,le=~oe.indexOf(`MSIE`)||~oe.indexOf(`Trident/`),ue=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,de=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,fe={classic:{fa:`solid`,fas:`solid`,"fa-solid":`solid`,far:`regular`,"fa-regular":`regular`,fal:`light`,"fa-light":`light`,fat:`thin`,"fa-thin":`thin`,fab:`brands`,"fa-brands":`brands`},duotone:{fa:`solid`,fad:`solid`,"fa-solid":`solid`,"fa-duotone":`solid`,fadr:`regular`,"fa-regular":`regular`,fadl:`light`,"fa-light":`light`,fadt:`thin`,"fa-thin":`thin`},sharp:{fa:`solid`,fass:`solid`,"fa-solid":`solid`,fasr:`regular`,"fa-regular":`regular`,fasl:`light`,"fa-light":`light`,fast:`thin`,"fa-thin":`thin`},"sharp-duotone":{fa:`solid`,fasds:`solid`,"fa-solid":`solid`,fasdr:`regular`,"fa-regular":`regular`,fasdl:`light`,"fa-light":`light`,fasdt:`thin`,"fa-thin":`thin`}},pe={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},x=[`fa-classic`,`fa-duotone`,`fa-sharp`,`fa-sharp-duotone`],S=`classic`,me=`duotone`,he=[S,me,`sharp`,`sharp-duotone`],ge={classic:{900:`fas`,400:`far`,normal:`far`,300:`fal`,100:`fat`},duotone:{900:`fad`,400:`fadr`,300:`fadl`,100:`fadt`},sharp:{900:`fass`,400:`fasr`,300:`fasl`,100:`fast`},"sharp-duotone":{900:`fasds`,400:`fasdr`,300:`fasdl`,100:`fasdt`}},C={"Font Awesome 6 Free":{900:`fas`,400:`far`},"Font Awesome 6 Pro":{900:`fas`,400:`far`,normal:`far`,300:`fal`,100:`fat`},"Font Awesome 6 Brands":{400:`fab`,normal:`fab`},"Font Awesome 6 Duotone":{900:`fad`,400:`fadr`,normal:`fadr`,300:`fadl`,100:`fadt`},"Font Awesome 6 Sharp":{900:`fass`,400:`fasr`,normal:`fasr`,300:`fasl`,100:`fast`},"Font Awesome 6 Sharp Duotone":{900:`fasds`,400:`fasdr`,normal:`fasdr`,300:`fasdl`,100:`fasdt`}},_e=new Map([[`classic`,{defaultShortPrefixId:`fas`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`,`brands`],futureStyleIds:[],defaultFontWeight:900}],[`sharp`,{defaultShortPrefixId:`fass`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`duotone`,{defaultShortPrefixId:`fad`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`sharp-duotone`,{defaultShortPrefixId:`fasds`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}]]),ve={classic:{solid:`fas`,regular:`far`,light:`fal`,thin:`fat`,brands:`fab`},duotone:{solid:`fad`,regular:`fadr`,light:`fadl`,thin:`fadt`},sharp:{solid:`fass`,regular:`fasr`,light:`fasl`,thin:`fast`},"sharp-duotone":{solid:`fasds`,regular:`fasdr`,light:`fasdl`,thin:`fasdt`}},ye=[`fak`,`fa-kit`,`fakd`,`fa-kit-duotone`],be={kit:{fak:`kit`,"fa-kit":`kit`},"kit-duotone":{fakd:`kit-duotone`,"fa-kit-duotone":`kit-duotone`}},xe=[`kit`],Se={kit:{"fa-kit":`fak`},"kit-duotone":{"fa-kit-duotone":`fakd`}},Ce=[`fak`,`fakd`],we={kit:{fak:`fa-kit`},"kit-duotone":{fakd:`fa-kit-duotone`}},Te={kit:{kit:`fak`},"kit-duotone":{"kit-duotone":`fakd`}},Ee={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},De=[`fa-classic`,`fa-duotone`,`fa-sharp`,`fa-sharp-duotone`],Oe=[`fak`,`fa-kit`,`fakd`,`fa-kit-duotone`],ke={"Font Awesome Kit":{400:`fak`,normal:`fak`},"Font Awesome Kit Duotone":{400:`fakd`,normal:`fakd`}},Ae={classic:{"fa-brands":`fab`,"fa-duotone":`fad`,"fa-light":`fal`,"fa-regular":`far`,"fa-solid":`fas`,"fa-thin":`fat`},duotone:{"fa-regular":`fadr`,"fa-light":`fadl`,"fa-thin":`fadt`},sharp:{"fa-solid":`fass`,"fa-regular":`fasr`,"fa-light":`fasl`,"fa-thin":`fast`},"sharp-duotone":{"fa-solid":`fasds`,"fa-regular":`fasdr`,"fa-light":`fasdl`,"fa-thin":`fasdt`}},je={classic:[`fas`,`far`,`fal`,`fat`,`fad`],duotone:[`fadr`,`fadl`,`fadt`],sharp:[`fass`,`fasr`,`fasl`,`fast`],"sharp-duotone":[`fasds`,`fasdr`,`fasdl`,`fasdt`]},w={classic:{fab:`fa-brands`,fad:`fa-duotone`,fal:`fa-light`,far:`fa-regular`,fas:`fa-solid`,fat:`fa-thin`},duotone:{fadr:`fa-regular`,fadl:`fa-light`,fadt:`fa-thin`},sharp:{fass:`fa-solid`,fasr:`fa-regular`,fasl:`fa-light`,fast:`fa-thin`},"sharp-duotone":{fasds:`fa-solid`,fasdr:`fa-regular`,fasdl:`fa-light`,fasdt:`fa-thin`}},Me=[`fa-solid`,`fa-regular`,`fa-light`,`fa-thin`,`fa-duotone`,`fa-brands`],Ne=[`fa`,`fas`,`far`,`fal`,`fat`,`fad`,`fadr`,`fadl`,`fadt`,`fab`,`fass`,`fasr`,`fasl`,`fast`,`fasds`,`fasdr`,`fasdl`,`fasdt`,...De,...Me],Pe=[`solid`,`regular`,`light`,`thin`,`duotone`,`brands`],Fe=[1,2,3,4,5,6,7,8,9,10],T=Fe.concat([11,12,13,14,15,16,17,18,19,20]),Ie=[...Object.keys(je),...Pe,`2xs`,`xs`,`sm`,`lg`,`xl`,`2xl`,`beat`,`border`,`fade`,`beat-fade`,`bounce`,`flip-both`,`flip-horizontal`,`flip-vertical`,`flip`,`fw`,`inverse`,`layers-counter`,`layers-text`,`layers`,`li`,`pull-left`,`pull-right`,`pulse`,`rotate-180`,`rotate-270`,`rotate-90`,`rotate-by`,`shake`,`spin-pulse`,`spin-reverse`,`spin`,`stack-1x`,`stack-2x`,`stack`,`ul`,Ee.GROUP,Ee.SWAP_OPACITY,Ee.PRIMARY,Ee.SECONDARY].concat(Fe.map(e=>`${e}x`),T.map(e=>`w-${e}`)),Le={"Font Awesome 5 Free":{900:`fas`,400:`far`},"Font Awesome 5 Pro":{900:`fas`,400:`far`,normal:`far`,300:`fal`},"Font Awesome 5 Brands":{400:`fab`,normal:`fab`},"Font Awesome 5 Duotone":{900:`fad`}},E=`___FONT_AWESOME___`,D=16,Re=`fa`,ze=`svg-inline--fa`,O=`data-fa-i2svg`,Be=`data-fa-pseudo-element`,Ve=`data-fa-pseudo-element-pending`,He=`data-prefix`,Ue=`data-icon`,We=`fontawesome-i2svg`,Ge=`async`,Ke=[`HTML`,`HEAD`,`STYLE`,`SCRIPT`],qe=(()=>{try{return process.env.NODE_ENV===`production`}catch{return!1}})();function Je(e){return new Proxy(e,{get(e,t){return t in e?e[t]:e[S]}})}var Ye=h({},fe);Ye[S]=h(h(h(h({},{"fa-duotone":`duotone`}),fe[S]),be.kit),be[`kit-duotone`]);var Xe=Je(Ye),k=h({},ve);k[S]=h(h(h(h({},{duotone:`fad`}),k[S]),Te.kit),Te[`kit-duotone`]);var Ze=Je(k),Qe=h({},w);Qe[S]=h(h({},Qe[S]),we.kit);var A=Je(Qe),j=h({},Ae);j[S]=h(h({},j[S]),Se.kit),Je(j);var M=ue,$e=`fa-layers-text`,N=de;Je(h({},ge));var et=[`class`,`data-prefix`,`data-icon`,`data-fa-transform`,`data-fa-mask`],tt=pe,nt=[...xe,...Ie],P=v.FontAwesomeConfig||{};function rt(e){var t=y.querySelector(`script[`+e+`]`);if(t)return t.getAttribute(e)}function F(e){return e===``?!0:e===`false`?!1:e===`true`?!0:e}y&&typeof y.querySelector==`function`&&[[`data-family-prefix`,`familyPrefix`],[`data-css-prefix`,`cssPrefix`],[`data-family-default`,`familyDefault`],[`data-style-default`,`styleDefault`],[`data-replacement-class`,`replacementClass`],[`data-auto-replace-svg`,`autoReplaceSvg`],[`data-auto-add-css`,`autoAddCss`],[`data-auto-a11y`,`autoA11y`],[`data-search-pseudo-elements`,`searchPseudoElements`],[`data-observe-mutations`,`observeMutations`],[`data-mutate-approach`,`mutateApproach`],[`data-keep-original-source`,`keepOriginalSource`],[`data-measure-performance`,`measurePerformance`],[`data-show-missing-icons`,`showMissingIcons`]].forEach(e=>{let[t,n]=e,r=F(rt(t));r!=null&&(P[n]=r)});var I={styleDefault:`solid`,familyDefault:S,cssPrefix:Re,replacementClass:ze,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:`async`,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};P.familyPrefix&&(P.cssPrefix=P.familyPrefix);var L=h(h({},I),P);L.autoReplaceSvg||(L.observeMutations=!1);var R={};Object.keys(I).forEach(e=>{Object.defineProperty(R,e,{enumerable:!0,set:function(t){L[e]=t,z.forEach(e=>e(R))},get:function(){return L[e]}})}),Object.defineProperty(R,`familyPrefix`,{enumerable:!0,set:function(e){L.cssPrefix=e,z.forEach(e=>e(R))},get:function(){return L.cssPrefix}}),v.FontAwesomeConfig=R;var z=[];function it(e){return z.push(e),()=>{z.splice(z.indexOf(e),1)}}var at=D,B={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function ot(e){if(!e||!ce)return;let t=y.createElement(`style`);t.setAttribute(`type`,`text/css`),t.innerHTML=e;let n=y.head.childNodes,r=null;for(let e=n.length-1;e>-1;e--){let t=n[e],i=(t.tagName||``).toUpperCase();[`STYLE`,`LINK`].indexOf(i)>-1&&(r=t)}return y.head.insertBefore(t,r),e}var st=`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`;function ct(){let e=12,t=``;for(;e-- >0;)t+=st[Math.random()*62|0];return t}function lt(e){let t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ut(e){return e.classList?lt(e.classList):(e.getAttribute(`class`)||``).split(` `).filter(e=>e)}function dt(e){return`${e}`.replace(/&/g,`&amp;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function ft(e){return Object.keys(e||{}).reduce((t,n)=>t+`${n}="${dt(e[n])}" `,``).trim()}function pt(e){return Object.keys(e||{}).reduce((t,n)=>t+`${n}: ${e[n].trim()};`,``)}function V(e){return e.size!==B.size||e.x!==B.x||e.y!==B.y||e.rotate!==B.rotate||e.flipX||e.flipY}function mt(e){let{transform:t,containerWidth:n,iconWidth:r}=e;return{outer:{transform:`translate(${n/2} 256)`},inner:{transform:`${`translate(${t.x*32}, ${t.y*32}) `} ${`scale(${t.size/16*(t.flipX?-1:1)}, ${t.size/16*(t.flipY?-1:1)}) `} ${`rotate(${t.rotate} 0 0)`}`},path:{transform:`translate(${r/2*-1} -256)`}}}function ht(e){let{transform:t,width:n=D,height:r=D,startCentered:i=!1}=e,a=``;return i&&le?a+=`translate(${t.x/at-n/2}em, ${t.y/at-r/2}em) `:i?a+=`translate(calc(-50% + ${t.x/at}em), calc(-50% + ${t.y/at}em)) `:a+=`translate(${t.x/at}em, ${t.y/at}em) `,a+=`scale(${t.size/at*(t.flipX?-1:1)}, ${t.size/at*(t.flipY?-1:1)}) `,a+=`rotate(${t.rotate}deg) `,a}var gt=`:root, :host {
3
3
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
4
4
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
@@ -558,4 +558,4 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
558
558
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ur(Object(n),!0).forEach(function(t){Y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wr(e,t){if(e==null)return{};var n,r,i=Gr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Gr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Kr(e){return Br(e)||Vr(e)||Xr(e)||Hr()}function qr(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Jr(e){var t=qr(e,`string`);return typeof t==`symbol`?t:t+``}function Yr(e){"@babel/helpers - typeof";return Yr=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Yr(e)}function Xr(e,t){if(e){if(typeof e==`string`)return zr(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zr(e,t):void 0}}function Zr(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Y({},e,t):{}}function Qr(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip===`horizontal`||e.flip===`both`,"fa-flip-vertical":e.flip===`vertical`||e.flip===`both`},Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(t,`fa-${e.size}`,e.size!==null),`fa-rotate-${e.rotation}`,e.rotation!==null),`fa-rotate-by`,e.rotateBy),`fa-pull-${e.pull}`,e.pull!==null),`fa-swap-opacity`,e.swapOpacity),`fa-bounce`,e.bounce),`fa-shake`,e.shake),`fa-beat`,e.beat),`fa-fade`,e.fade),`fa-beat-fade`,e.beatFade),Y(Y(Y(Y(t,`fa-flash`,e.flash),`fa-spin-pulse`,e.spinPulse),`fa-spin-reverse`,e.spinReverse),`fa-width-auto`,e.widthAuto));return Object.keys(n).map(function(e){return n[e]?e:null}).filter(function(e){return e})}var $r=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},ei={exports:{}};(function(e){(function(t){var n=function(e,t,r){if(!l(t)||d(t)||f(t)||p(t)||c(t))return t;var i,a=0,o=0;if(u(t))for(i=[],o=t.length;a<o;a++)i.push(n(e,t[a],r));else for(var s in i={},t)Object.prototype.hasOwnProperty.call(t,s)&&(i[e(s,r)]=n(e,t[s],r));return i},r=function(e,t){t||={};var n=t.separator||`_`,r=t.split||/(?=[A-Z])/;return e.split(r).join(n)},i=function(e){return ee(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():``}),e.substr(0,1).toLowerCase()+e.substr(1))},a=function(e){var t=i(e);return t.substr(0,1).toUpperCase()+t.substr(1)},o=function(e,t){return r(e,t).toLowerCase()},s=Object.prototype.toString,c=function(e){return typeof e==`function`},l=function(e){return e===Object(e)},u=function(e){return s.call(e)==`[object Array]`},d=function(e){return s.call(e)==`[object Date]`},f=function(e){return s.call(e)==`[object RegExp]`},p=function(e){return s.call(e)==`[object Boolean]`},ee=function(e){return e-=0,e===e},m=function(e,t){var n=t&&`process`in t?t.process:t;return typeof n==`function`?function(t,r){return n(t,e,r)}:e},h={camelize:i,decamelize:o,pascalize:a,depascalize:o,camelizeKeys:function(e,t){return n(m(i,t),e)},decamelizeKeys:function(e,t){return n(m(o,t),e,t)},pascalizeKeys:function(e,t){return n(m(a,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h})($r)})(ei);var ti=ei.exports,ni=[`gradientFill`],ri=[`class`,`style`],ii=[`type`,`stops`,`id`];function ai(e){return e.split(`;`).map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n=t.indexOf(`:`),r=ti.camelize(t.slice(0,n));return e[r]=t.slice(n+1).trim(),e},{})}function oi(e){return e.split(/\s+/).reduce(function(e,t){return e[t]=!0,e},{})}function si(e,n){return(0,t.h)(`stop`,X({key:`${n}-${e.offset}`,offset:e.offset,"stop-color":e.color},e.opacity!==void 0&&{"stop-opacity":e.opacity}))}function ci(e){if(typeof e==`string`)return e;var t=(e.children||[]).map(ci);return e.tag===`path`&&e.attributes&&`fill`in e.attributes?X(X({},e),{},{attributes:X(X({},e.attributes),{},{fill:void 0}),children:t}):X(X({},e),{},{children:t})}function li(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e==`string`)return e;var i=n.gradientFill,a=i===void 0?null:i,o=Wr(n,ni),s=a||`fill`in r?ci(e):e,c=(s.children||[]).map(function(e){return li(e,{},{})}),l=Object.keys(s.attributes||{}).reduce(function(e,t){var n=s.attributes[t];switch(t){case`class`:e.class=oi(n);break;case`style`:e.style=ai(n);break;default:e.attrs[t]=n}return e},{attrs:{},class:{},style:{}});r.class;var u=r.style,d=u===void 0?{}:u,f=Wr(r,ri);if(a&&a.id&&(a.type===`linear`||a.type===`radial`)){var p=a.type,ee=a.stops,m=ee===void 0?[]:ee,h=a.id,g=Wr(a,ii),te=(0,t.h)(p===`linear`?`linearGradient`:`radialGradient`,X(X({},g),{},{id:h}),m.map(si));return(0,t.h)(s.tag,X(X(X(X({},o),{},{class:l.class,style:X(X({},l.style),d)},l.attrs),f),{},{fill:`url(#${h})`}),[te].concat(Kr(c)))}return(0,t.h)(e.tag,X(X(X({},o),{},{class:l.class,style:X(X({},l.style),d)},l.attrs),f),c)}var ui=!1;try{ui=process.env.NODE_ENV===`production`}catch{}function di(){if(!ui&&console&&typeof console.error==`function`){var e;(e=console).error.apply(e,arguments)}}function fi(e){if(e&&Yr(e)===`object`&&e.prefix&&e.iconName&&e.icon)return e;if(Ir.icon)return Ir.icon(e);if(e===null)return null;if(Yr(e)===`object`&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e==`string`)return{prefix:`fas`,iconName:e}}var pi=(0,t.defineComponent)({name:`FontAwesomeIcon`,props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(e){return[!0,!1,`horizontal`,`vertical`,`both`].indexOf(e)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(e){return[`right`,`left`].indexOf(e)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(e){return[90,180,270].indexOf(Number.parseInt(e,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(e){return[`2xs`,`xs`,`sm`,`lg`,`xl`,`2xl`,`1x`,`2x`,`3x`,`4x`,`5x`,`6x`,`7x`,`8x`,`9x`,`10x`].indexOf(e)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1},gradientFill:{type:Object,default:null,validator:function(e){return typeof e.id!=`string`||!e.id?(console.warn(`FontAwesomeIcon: gradientFill.id must be a non-empty string`),!1):e.type!==`linear`&&e.type!==`radial`?(console.warn(`FontAwesomeIcon: gradientFill.type must be "linear" or "radial"`),!1):!0}}},setup:function(e,n){var r=n.attrs,i=(0,t.computed)(function(){return fi(e.icon)}),a=(0,t.computed)(function(){return Zr(`classes`,Qr(e))}),o=(0,t.computed)(function(){return Zr(`transform`,typeof e.transform==`string`?Ir.transform(e.transform):e.transform)}),s=(0,t.computed)(function(){return Zr(`mask`,fi(e.mask))}),c=(0,t.computed)(function(){var t=X(X(X(X({},a.value),o.value),s.value),{},{symbol:e.symbol,maskId:e.maskId});return t.title=e.title,t.titleId=e.titleId,Lr(i.value,t)});(0,t.watch)(c,function(e){if(!e)return di(`Could not find one or more icon(s)`,i.value,s.value)},{immediate:!0}),e.gradientFill&&e.symbol&&di(`gradientFill is not supported when symbol is true and will be ignored`);var l=(0,t.computed)(function(){return c.value?li(c.value.abstract[0],{gradientFill:e.symbol?null:e.gradientFill},r):null});return function(){return l.value}}});(0,t.defineComponent)({name:`FontAwesomeLayers`,props:{fixedWidth:{type:Boolean,default:!1}},setup:function(e,n){var r=n.slots,i=Pr.familyPrefix,a=(0,t.computed)(function(){return[`${i}-layers`].concat(Kr(e.fixedWidth?[`${i}-fw`]:[]))});return function(){return(0,t.h)(`div`,{class:a.value},r.default?r.default():[])}}}),(0,t.defineComponent)({name:`FontAwesomeLayersText`,props:{value:{type:[String,Number],default:``},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(e){return[`bottom-left`,`bottom-right`,`top-left`,`top-right`].indexOf(e)>-1}}},setup:function(e,n){var r=n.attrs,i=Pr.familyPrefix,a=(0,t.computed)(function(){return Zr(`classes`,[].concat(Kr(e.counter?[`${i}-layers-counter`]:[]),Kr(e.position?[`${i}-layers-${e.position}`]:[])))}),o=(0,t.computed)(function(){return Zr(`transform`,typeof e.transform==`string`?Ir.transform(e.transform):e.transform)}),s=(0,t.computed)(function(){var t=Rr(e.value.toString(),X(X({},o.value),a.value)).abstract;return e.counter&&(t[0].attributes.class=t[0].attributes.class.replace(`fa-layers-text`,``)),t[0]}),c=(0,t.computed)(function(){return li(s.value,{},r)});return function(){return c.value}}});var mi={prefix:`fas`,iconName:`eye-slash`,icon:[640,512,[],`f070`,`M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z`]},hi={prefix:`fas`,iconName:`arrow-down-wide-short`,icon:[576,512,[`sort-amount-asc`,`sort-amount-down`],`f160`,`M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 301.7 32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96z`]},gi={prefix:`fas`,iconName:`filter`,icon:[512,512,[],`f0b0`,`M3.9 54.9C10.5 40.9 24.5 32 40 32l432 0c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9 320 448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6l0-79.1L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z`]},_i={prefix:`fas`,iconName:`eye`,icon:[576,512,[128065],`f06e`,`M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z`]},vi={prefix:`fas`,iconName:`trash`,icon:[448,512,[],`f1f8`,`M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z`]},yi={prefix:`fas`,iconName:`circle-info`,icon:[512,512,[`info-circle`],`f05a`,`M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z`]},bi={prefix:`fas`,iconName:`arrow-down-short-wide`,icon:[576,512,[`sort-amount-desc`,`sort-amount-down-alt`],`f884`,`M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 301.7 32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 128l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z`]},xi={prefix:`fas`,iconName:`greater-than`,icon:[384,512,[62769],`3e`,`M3.4 81.7c-7.9 15.8-1.5 35 14.3 42.9L280.5 256 17.7 387.4C1.9 395.3-4.5 414.5 3.4 430.3s27.1 22.2 42.9 14.3l320-160c10.8-5.4 17.7-16.5 17.7-28.6s-6.8-23.2-17.7-28.6l-320-160c-15.8-7.9-35-1.5-42.9 14.3z`]},Si={prefix:`fas`,iconName:`plus`,icon:[448,512,[10133,61543,`add`],`2b`,`M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z`]},Ci={prefix:`fas`,iconName:`xmark`,icon:[384,512,[128473,10005,10006,10060,215,`close`,`multiply`,`remove`,`times`],`f00d`,`M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z`]},wi=u(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.moment=r()})(e,(function(){"use strict";var e;function n(){return e.apply(null,arguments)}function r(t){e=t}function i(e){return e instanceof Array||Object.prototype.toString.call(e)===`[object Array]`}function a(e){return e!=null&&Object.prototype.toString.call(e)===`[object Object]`}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;for(var t in e)if(o(e,t))return!1;return!0}function c(e){return e===void 0}function l(e){return typeof e==`number`||Object.prototype.toString.call(e)===`[object Number]`}function u(e){return e instanceof Date||Object.prototype.toString.call(e)===`[object Date]`}function d(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function f(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,`toString`)&&(e.toString=t.toString),o(t,`valueOf`)&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return tr(e,t,n,r,!0).utc()}function ee(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function m(e){return e._pf??=ee(),e._pf}var h=Array.prototype.some?Array.prototype.some:function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function g(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=m(e),n=h.call(t.parsedDateParts,function(e){return e!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function te(e){var t=p(NaN);return e==null?m(t).userInvalidated=!0:f(m(t),e),t}var ne=n.momentProperties=[],re=!1;function ie(e,t){var n,r,i,a=ne.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=m(t)),c(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)r=ne[n],i=t[r],c(i)||(e[r]=i);return e}function ae(e){ie(this,e),this._d=new Date(e._d==null?NaN:e._d.getTime()),this.isValid()||(this._d=new Date(NaN)),re===!1&&(re=!0,n.updateOffset(this),re=!1)}function _(e){return e instanceof ae||e!=null&&e._isAMomentObject!=null}function oe(e){n.suppressDeprecationWarnings===!1&&typeof console<`u`&&console.warn&&console.warn(`Deprecation warning: `+e)}function v(e,t){var r=!0;return f(function(){if(n.deprecationHandler!=null&&n.deprecationHandler(null,e),r){var i=[],a,s,c,l=arguments.length;for(s=0;s<l;s++){if(a=``,typeof arguments[s]==`object`){for(c in a+=`
559
559
  [`+s+`] `,arguments[0])o(arguments[0],c)&&(a+=c+`: `+arguments[0][c]+`, `);a=a.slice(0,-2)}else a=arguments[s];i.push(a)}oe(e+`
560
560
  Arguments: `+Array.prototype.slice.call(i).join(``)+`
561
- `+Error().stack),r=!1}return t.apply(this,arguments)},t)}var y={};function se(e,t){n.deprecationHandler!=null&&n.deprecationHandler(e,t),y[e]||(oe(t),y[e]=!0)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;function b(e){return typeof Function<`u`&&e instanceof Function||Object.prototype.toString.call(e)===`[object Function]`}function ce(e){var t,n;for(n in e)o(e,n)&&(t=e[n],b(t)?this[n]=t:this[`_`+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+`|\\d{1,2}`)}function le(e,t){var n=f({},e),r;for(r in t)o(t,r)&&(a(e[r])&&a(t[r])?(n[r]={},f(n[r],e[r]),f(n[r],t[r])):t[r]==null?delete n[r]:n[r]=t[r]);for(r in e)o(e,r)&&!o(t,r)&&a(e[r])&&(n[r]=f({},n[r]));return n}function ue(e){e!=null&&this.set(e)}var de=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n},fe={sameDay:`[Today at] LT`,nextDay:`[Tomorrow at] LT`,nextWeek:`dddd [at] LT`,lastDay:`[Yesterday at] LT`,lastWeek:`[Last] dddd [at] LT`,sameElse:`L`};function pe(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return b(r)?r.call(t,n):r}function x(e,t,n){var r=``+Math.abs(e),i=t-r.length;return(e>=0?n?`+`:``:`-`)+(10**Math.max(0,i)).toString().substr(1)+r}var S=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,me=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,he={},ge={};function C(e,t,n,r){var i=r;typeof r==`string`&&(i=function(){return this[r]()}),e&&(ge[e]=i),t&&(ge[t[0]]=function(){return x(i.apply(this,arguments),t[1],t[2])}),n&&(ge[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function _e(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,``):e.replace(/\\/g,``)}function ve(e){var t=e.match(S),n,r;for(n=0,r=t.length;n<r;n++)ge[t[n]]?t[n]=ge[t[n]]:t[n]=_e(t[n]);return function(n){var i=``,a;for(a=0;a<r;a++)i+=b(t[a])?t[a].call(n,e):t[a];return i}}function ye(e,t){return e.isValid()?(t=be(t,e.localeData()),he[t]=he[t]||ve(t),he[t](e)):e.localeData().invalidDate()}function be(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(me.lastIndex=0;n>=0&&me.test(e);)e=e.replace(me,r),me.lastIndex=0,--n;return e}var xe={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};function Se(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(S).map(function(e){return e===`MMMM`||e===`MM`||e===`DD`||e===`dddd`?e.slice(1):e}).join(``),this._longDateFormat[e])}var Ce=`Invalid date`;function we(){return this._invalidDate}var Te=`%d`,Ee=/\d{1,2}/;function De(e){return this._ordinal.replace(`%d`,e)}var Oe={future:`in %s`,past:`%s ago`,s:`a few seconds`,ss:`%d seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,w:`a week`,ww:`%d weeks`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`};function ke(e,t,n,r){var i=this._relativeTime[n];return b(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Ae(e,t){var n=this._relativeTime[e>0?`future`:`past`];return b(n)?n(t):n.replace(/%s/i,t)}var je={D:`date`,dates:`date`,date:`date`,d:`day`,days:`day`,day:`day`,e:`weekday`,weekdays:`weekday`,weekday:`weekday`,E:`isoWeekday`,isoweekdays:`isoWeekday`,isoweekday:`isoWeekday`,DDD:`dayOfYear`,dayofyears:`dayOfYear`,dayofyear:`dayOfYear`,h:`hour`,hours:`hour`,hour:`hour`,ms:`millisecond`,milliseconds:`millisecond`,millisecond:`millisecond`,m:`minute`,minutes:`minute`,minute:`minute`,M:`month`,months:`month`,month:`month`,Q:`quarter`,quarters:`quarter`,quarter:`quarter`,s:`second`,seconds:`second`,second:`second`,gg:`weekYear`,weekyears:`weekYear`,weekyear:`weekYear`,GG:`isoWeekYear`,isoweekyears:`isoWeekYear`,isoweekyear:`isoWeekYear`,w:`week`,weeks:`week`,week:`week`,W:`isoWeek`,isoweeks:`isoWeek`,isoweek:`isoWeek`,y:`year`,years:`year`,year:`year`};function w(e){return typeof e==`string`?je[e]||je[e.toLowerCase()]:void 0}function Me(e){var t={},n,r;for(r in e)o(e,r)&&(n=w(r),n&&(t[n]=e[r]));return t}var Ne={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Pe(e){var t=[],n;for(n in e)o(e,n)&&t.push({unit:n,priority:Ne[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}var Fe=/\d/,T=/\d\d/,Ie=/\d{3}/,Le=/\d{4}/,E=/[+-]?\d{6}/,D=/\d\d?/,Re=/\d\d\d\d?/,ze=/\d\d\d\d\d\d?/,O=/\d{1,3}/,Be=/\d{1,4}/,Ve=/[+-]?\d{1,6}/,He=/\d+/,Ue=/[+-]?\d+/,We=/Z|[+-]\d\d:?\d\d/gi,Ge=/Z|[+-]\d\d(?::?\d\d)?/gi,Ke=/[+-]?\d+(\.\d{1,3})?/,qe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Je=/^[1-9]\d?/,Ye=/^([1-9]\d|\d)/,Xe={};function k(e,t,n){Xe[e]=b(t)?t:function(e,r){return e&&n?n:t}}function Ze(e,t){return o(Xe,e)?Xe[e](t._strict,t._locale):new RegExp(Qe(e))}function Qe(e){return A(e.replace(`\\`,``).replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function A(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,`\\$&`)}function j(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function M(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=j(t)),n}var $e={};function N(e,t){var n,r=t,i;for(typeof e==`string`&&(e=[e]),l(t)&&(r=function(e,n){n[t]=M(e)}),i=e.length,n=0;n<i;n++)$e[e[n]]=r}function et(e,t){N(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function tt(e,t,n){t!=null&&o($e,e)&&$e[e](t,n._a,n,e)}function nt(e){return e%4==0&&e%100!=0||e%400==0}var P=0,rt=1,F=2,I=3,L=4,R=5,z=6,it=7,at=8;C(`Y`,0,0,function(){var e=this.year();return e<=9999?x(e,4):`+`+e}),C(0,[`YY`,2],0,function(){return this.year()%100}),C(0,[`YYYY`,4],0,`year`),C(0,[`YYYYY`,5],0,`year`),C(0,[`YYYYYY`,6,!0],0,`year`),k(`Y`,Ue),k(`YY`,D,T),k(`YYYY`,Be,Le),k(`YYYYY`,Ve,E),k(`YYYYYY`,Ve,E),N([`YYYYY`,`YYYYYY`],P),N(`YYYY`,function(e,t){t[P]=e.length===2?n.parseTwoDigitYear(e):M(e)}),N(`YY`,function(e,t){t[P]=n.parseTwoDigitYear(e)}),N(`Y`,function(e,t){t[P]=parseInt(e,10)});function B(e){return nt(e)?366:365}n.parseTwoDigitYear=function(e){return M(e)+(M(e)>68?1900:2e3)};var ot=ct(`FullYear`,!0);function st(){return nt(this.year())}function ct(e,t){return function(r){return r==null?lt(this,e):(ut(this,e,r),n.updateOffset(this,t),this)}}function lt(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case`Milliseconds`:return r?n.getUTCMilliseconds():n.getMilliseconds();case`Seconds`:return r?n.getUTCSeconds():n.getSeconds();case`Minutes`:return r?n.getUTCMinutes():n.getMinutes();case`Hours`:return r?n.getUTCHours():n.getHours();case`Date`:return r?n.getUTCDate():n.getDate();case`Day`:return r?n.getUTCDay():n.getDay();case`Month`:return r?n.getUTCMonth():n.getMonth();case`FullYear`:return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function ut(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case`Milliseconds`:i?r.setUTCMilliseconds(n):r.setMilliseconds(n);return;case`Seconds`:i?r.setUTCSeconds(n):r.setSeconds(n);return;case`Minutes`:i?r.setUTCMinutes(n):r.setMinutes(n);return;case`Hours`:i?r.setUTCHours(n):r.setHours(n);return;case`Date`:i?r.setUTCDate(n):r.setDate(n);return;case`FullYear`:break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!nt(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function dt(e){return e=w(e),b(this[e])?this[e]():this}function ft(e,t){if(typeof e==`object`){e=Me(e);var n=Pe(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=w(e),b(this[e]))return this[e](t);return this}function pt(e,t){return(e%t+t)%t}var V=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function mt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=pt(t,12);return e+=(t-n)/12,n===1?nt(e)?29:28:31-n%7%2}C(`M`,[`MM`,2],`Mo`,function(){return this.month()+1}),C(`MMM`,0,0,function(e){return this.localeData().monthsShort(this,e)}),C(`MMMM`,0,0,function(e){return this.localeData().months(this,e)}),k(`M`,D,Je),k(`MM`,D,T),k(`MMM`,function(e,t){return t.monthsShortRegex(e)}),k(`MMMM`,function(e,t){return t.monthsRegex(e)}),N([`M`,`MM`],function(e,t){t[rt]=M(e)-1}),N([`MMM`,`MMMM`],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i==null?m(n).invalidMonth=e:t[rt]=i});var ht=`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),gt=`Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec`.split(`_`),_t=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,vt=qe,yt=qe;function bt(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||_t).test(t)?`format`:`standalone`][e.month()]:i(this._months)?this._months:this._months.standalone}function xt(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[_t.test(t)?`format`:`standalone`][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function H(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,``).toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,``).toLocaleLowerCase();return n?t===`MMM`?(i=V.call(this._shortMonthsParse,o),i===-1?null:i):(i=V.call(this._longMonthsParse,o),i===-1?null:i):t===`MMM`?(i=V.call(this._shortMonthsParse,o),i===-1?(i=V.call(this._longMonthsParse,o),i===-1?null:i):i):(i=V.call(this._longMonthsParse,o),i===-1?(i=V.call(this._shortMonthsParse,o),i===-1?null:i):i)}function St(e,t,n){var r,i,a;if(this._monthsParseExact)return H.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=RegExp(`^`+this.months(i,``).replace(`.`,``)+`$`,`i`),this._shortMonthsParse[r]=RegExp(`^`+this.monthsShort(i,``).replace(`.`,``)+`$`,`i`)),!n&&!this._monthsParse[r]&&(a=`^`+this.months(i,``)+`|^`+this.monthsShort(i,``),this._monthsParse[r]=new RegExp(a.replace(`.`,``),`i`)),n&&t===`MMMM`&&this._longMonthsParse[r].test(e)||n&&t===`MMM`&&this._shortMonthsParse[r].test(e)||!n&&this._monthsParse[r].test(e))return r}function Ct(e,t){if(!e.isValid())return e;if(typeof t==`string`){if(/^\d+$/.test(t))t=M(t);else if(t=e.localeData().monthsParse(t),!l(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,mt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function wt(e){return e==null?lt(this,`Month`):(Ct(this,e),n.updateOffset(this,!0),this)}function Tt(){return mt(this.year(),this.month())}function Et(e){return this._monthsParseExact?(o(this,`_monthsRegex`)||Ot.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,`_monthsShortRegex`)||(this._monthsShortRegex=vt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Dt(e){return this._monthsParseExact?(o(this,`_monthsRegex`)||Ot.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,`_monthsRegex`)||(this._monthsRegex=yt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ot(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i,a,o,s;for(i=0;i<12;i++)a=p([2e3,i]),o=A(this.monthsShort(a,``)),s=A(this.months(a,``)),t.push(o),n.push(s),r.push(s),r.push(o);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`),this._monthsShortStrictRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`)}function kt(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function At(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function jt(e,t,n){var r=7+t-n;return-((7+At(e,0,r).getUTCDay()-t)%7)+r-1}function Mt(e,t,n,r,i){var a=(7+n-r)%7,o=jt(e,r,i),s=1+7*(t-1)+a+o,c,l;return s<=0?(c=e-1,l=B(c)+s):s>B(e)?(c=e+1,l=s-B(e)):(c=e,l=s),{year:c,dayOfYear:l}}function Nt(e,t,n){var r=jt(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+U(o,t,n)):i>U(e.year(),t,n)?(a=i-U(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function U(e,t,n){var r=jt(e,t,n),i=jt(e+1,t,n);return(B(e)-r+i)/7}C(`w`,[`ww`,2],`wo`,`week`),C(`W`,[`WW`,2],`Wo`,`isoWeek`),k(`w`,D,Je),k(`ww`,D,T),k(`W`,D,Je),k(`WW`,D,T),et([`w`,`ww`,`W`,`WW`],function(e,t,n,r){t[r.substr(0,1)]=M(e)});function Pt(e){return Nt(e,this._week.dow,this._week.doy).week}var Ft={dow:0,doy:6};function It(){return this._week.dow}function Lt(){return this._week.doy}function Rt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,`d`)}function zt(e){var t=Nt(this,1,4).week;return e==null?t:this.add((e-t)*7,`d`)}C(`d`,0,`do`,`day`),C(`dd`,0,0,function(e){return this.localeData().weekdaysMin(this,e)}),C(`ddd`,0,0,function(e){return this.localeData().weekdaysShort(this,e)}),C(`dddd`,0,0,function(e){return this.localeData().weekdays(this,e)}),C(`e`,0,0,`weekday`),C(`E`,0,0,`isoWeekday`),k(`d`,D),k(`e`,D),k(`E`,D),k(`dd`,function(e,t){return t.weekdaysMinRegex(e)}),k(`ddd`,function(e,t){return t.weekdaysShortRegex(e)}),k(`dddd`,function(e,t){return t.weekdaysRegex(e)}),et([`dd`,`ddd`,`dddd`],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i==null?m(n).invalidWeekday=e:t.d=i}),et([`d`,`e`,`E`],function(e,t,n,r){t[r]=M(e)});function Bt(e,t){return typeof e==`string`?isNaN(e)?(e=t.weekdaysParse(e),typeof e==`number`?e:null):parseInt(e,10):e}function Vt(e,t){return typeof e==`string`?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ht(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Ut=`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),Wt=`Sun_Mon_Tue_Wed_Thu_Fri_Sat`.split(`_`),Gt=`Su_Mo_Tu_We_Th_Fr_Sa`.split(`_`),Kt=qe,qt=qe,Jt=qe;function Yt(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?`format`:`standalone`];return e===!0?Ht(n,this._week.dow):e?n[e.day()]:n}function Xt(e){return e===!0?Ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Zt(e){return e===!0?Ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Qt(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,``).toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,``).toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,``).toLocaleLowerCase();return n?t===`dddd`?(i=V.call(this._weekdaysParse,o),i===-1?null:i):t===`ddd`?(i=V.call(this._shortWeekdaysParse,o),i===-1?null:i):(i=V.call(this._minWeekdaysParse,o),i===-1?null:i):t===`dddd`?(i=V.call(this._weekdaysParse,o),i!==-1||(i=V.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=V.call(this._minWeekdaysParse,o),i===-1?null:i)):t===`ddd`?(i=V.call(this._shortWeekdaysParse,o),i!==-1||(i=V.call(this._weekdaysParse,o),i!==-1)?i:(i=V.call(this._minWeekdaysParse,o),i===-1?null:i)):(i=V.call(this._minWeekdaysParse,o),i!==-1||(i=V.call(this._weekdaysParse,o),i!==-1)?i:(i=V.call(this._shortWeekdaysParse,o),i===-1?null:i))}function $t(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Qt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=RegExp(`^`+this.weekdays(i,``).replace(`.`,`\\.?`)+`$`,`i`),this._shortWeekdaysParse[r]=RegExp(`^`+this.weekdaysShort(i,``).replace(`.`,`\\.?`)+`$`,`i`),this._minWeekdaysParse[r]=RegExp(`^`+this.weekdaysMin(i,``).replace(`.`,`\\.?`)+`$`,`i`)),this._weekdaysParse[r]||(a=`^`+this.weekdays(i,``)+`|^`+this.weekdaysShort(i,``)+`|^`+this.weekdaysMin(i,``),this._weekdaysParse[r]=new RegExp(a.replace(`.`,``),`i`)),n&&t===`dddd`&&this._fullWeekdaysParse[r].test(e)||n&&t===`ddd`&&this._shortWeekdaysParse[r].test(e)||n&&t===`dd`&&this._minWeekdaysParse[r].test(e)||!n&&this._weekdaysParse[r].test(e))return r}function en(e){if(!this.isValid())return e==null?NaN:this;var t=lt(this,`Day`);return e==null?t:(e=Bt(e,this.localeData()),this.add(e-t,`d`))}function tn(e){if(!this.isValid())return e==null?NaN:this;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,`d`)}function nn(e){if(!this.isValid())return e==null?NaN:this;if(e!=null){var t=Vt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function rn(e){return this._weekdaysParseExact?(o(this,`_weekdaysRegex`)||sn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,`_weekdaysRegex`)||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function an(e){return this._weekdaysParseExact?(o(this,`_weekdaysRegex`)||sn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,`_weekdaysShortRegex`)||(this._weekdaysShortRegex=qt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function on(e){return this._weekdaysParseExact?(o(this,`_weekdaysRegex`)||sn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,`_weekdaysMinRegex`)||(this._weekdaysMinRegex=Jt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function sn(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i=[],a,o,s,c,l;for(a=0;a<7;a++)o=p([2e3,1]).day(a),s=A(this.weekdaysMin(o,``)),c=A(this.weekdaysShort(o,``)),l=A(this.weekdays(o,``)),t.push(s),n.push(c),r.push(l),i.push(s),i.push(c),i.push(l);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=RegExp(`^(`+i.join(`|`)+`)`,`i`),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._weekdaysShortStrictRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`),this._weekdaysMinStrictRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`)}function cn(){return this.hours()%12||12}function ln(){return this.hours()||24}C(`H`,[`HH`,2],0,`hour`),C(`h`,[`hh`,2],0,cn),C(`k`,[`kk`,2],0,ln),C(`hmm`,0,0,function(){return``+cn.apply(this)+x(this.minutes(),2)}),C(`hmmss`,0,0,function(){return``+cn.apply(this)+x(this.minutes(),2)+x(this.seconds(),2)}),C(`Hmm`,0,0,function(){return``+this.hours()+x(this.minutes(),2)}),C(`Hmmss`,0,0,function(){return``+this.hours()+x(this.minutes(),2)+x(this.seconds(),2)});function un(e,t){C(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}un(`a`,!0),un(`A`,!1);function dn(e,t){return t._meridiemParse}k(`a`,dn),k(`A`,dn),k(`H`,D,Ye),k(`h`,D,Je),k(`k`,D,Je),k(`HH`,D,T),k(`hh`,D,T),k(`kk`,D,T),k(`hmm`,Re),k(`hmmss`,ze),k(`Hmm`,Re),k(`Hmmss`,ze),N([`H`,`HH`],I),N([`k`,`kk`],function(e,t,n){var r=M(e);t[I]=r===24?0:r}),N([`a`,`A`],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),N([`h`,`hh`],function(e,t,n){t[I]=M(e),m(n).bigHour=!0}),N(`hmm`,function(e,t,n){var r=e.length-2;t[I]=M(e.substr(0,r)),t[L]=M(e.substr(r)),m(n).bigHour=!0}),N(`hmmss`,function(e,t,n){var r=e.length-4,i=e.length-2;t[I]=M(e.substr(0,r)),t[L]=M(e.substr(r,2)),t[R]=M(e.substr(i)),m(n).bigHour=!0}),N(`Hmm`,function(e,t,n){var r=e.length-2;t[I]=M(e.substr(0,r)),t[L]=M(e.substr(r))}),N(`Hmmss`,function(e,t,n){var r=e.length-4,i=e.length-2;t[I]=M(e.substr(0,r)),t[L]=M(e.substr(r,2)),t[R]=M(e.substr(i))});function fn(e){return(e+``).toLowerCase().charAt(0)===`p`}var pn=/[ap]\.?m?\.?/i,mn=ct(`Hours`,!0);function hn(e,t,n){return e>11?n?`pm`:`PM`:n?`am`:`AM`}var gn={calendar:fe,longDateFormat:xe,invalidDate:Ce,ordinal:Te,dayOfMonthOrdinalParse:Ee,relativeTime:Oe,months:ht,monthsShort:gt,week:Ft,weekdays:Ut,weekdaysMin:Gt,weekdaysShort:Wt,meridiemParse:pn},W={},G={},_n;function vn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function K(e){return e&&e.toLowerCase().replace(`_`,`-`)}function yn(e){for(var t=0,n,r,i,a;t<e.length;){for(a=K(e[t]).split(`-`),n=a.length,r=K(e[t+1]),r=r?r.split(`-`):null;n>0;){if(i=xn(a.slice(0,n).join(`-`)),i)return i;if(r&&r.length>=n&&vn(a,r)>=n-1)break;n--}t++}return _n}function bn(e){return!!(e&&e.match(`^[^/\\\\]*$`))}function xn(e){var n=null,r;if(W[e]===void 0&&t!==void 0&&t&&t.exports&&bn(e))try{n=_n._abbr,r=require,r(`./locale/`+e),Sn(n)}catch{W[e]=null}return W[e]}function Sn(e,t){var n;return e&&(n=c(t)?Tn(e):Cn(e,t),n?_n=n:typeof console<`u`&&console.warn&&console.warn(`Locale `+e+` not found. Did you forget to load it?`)),_n._abbr}function Cn(e,t){if(t!==null){var n,r=gn;if(t.abbr=e,W[e]!=null)se(`defineLocaleOverride`,`use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.`),r=W[e]._config;else if(t.parentLocale!=null)if(W[t.parentLocale]!=null)r=W[t.parentLocale]._config;else if(n=xn(t.parentLocale),n!=null)r=n._config;else return G[t.parentLocale]||(G[t.parentLocale]=[]),G[t.parentLocale].push({name:e,config:t}),null;return W[e]=new ue(le(r,t)),G[e]&&G[e].forEach(function(e){Cn(e.name,e.config)}),Sn(e),W[e]}else return delete W[e],null}function wn(e,t){if(t!=null){var n,r,i=gn;W[e]!=null&&W[e].parentLocale!=null?W[e].set(le(W[e]._config,t)):(r=xn(e),r!=null&&(i=r._config),t=le(i,t),r??(t.abbr=e),n=new ue(t),n.parentLocale=W[e],W[e]=n),Sn(e)}else W[e]!=null&&(W[e].parentLocale==null?W[e]!=null&&delete W[e]:(W[e]=W[e].parentLocale,e===Sn()&&Sn(e)));return W[e]}function Tn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return _n;if(!i(e)){if(t=xn(e),t)return t;e=[e]}return yn(e)}function En(){return de(W)}function Dn(e){var t,n=e._a;return n&&m(e).overflow===-2&&(t=n[rt]<0||n[rt]>11?rt:n[F]<1||n[F]>mt(n[P],n[rt])?F:n[I]<0||n[I]>24||n[I]===24&&(n[L]!==0||n[R]!==0||n[z]!==0)?I:n[L]<0||n[L]>59?L:n[R]<0||n[R]>59?R:n[z]<0||n[z]>999?z:-1,m(e)._overflowDayOfYear&&(t<P||t>F)&&(t=F),m(e)._overflowWeeks&&t===-1&&(t=it),m(e)._overflowWeekday&&t===-1&&(t=at),m(e).overflow=t),e}var On=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,An=/Z|[+-]\d\d(?::?\d\d)?/,jn=[[`YYYYYY-MM-DD`,/[+-]\d{6}-\d\d-\d\d/],[`YYYY-MM-DD`,/\d{4}-\d\d-\d\d/],[`GGGG-[W]WW-E`,/\d{4}-W\d\d-\d/],[`GGGG-[W]WW`,/\d{4}-W\d\d/,!1],[`YYYY-DDD`,/\d{4}-\d{3}/],[`YYYY-MM`,/\d{4}-\d\d/,!1],[`YYYYYYMMDD`,/[+-]\d{10}/],[`YYYYMMDD`,/\d{8}/],[`GGGG[W]WWE`,/\d{4}W\d{3}/],[`GGGG[W]WW`,/\d{4}W\d{2}/,!1],[`YYYYDDD`,/\d{7}/],[`YYYYMM`,/\d{6}/,!1],[`YYYY`,/\d{4}/,!1]],Mn=[[`HH:mm:ss.SSSS`,/\d\d:\d\d:\d\d\.\d+/],[`HH:mm:ss,SSSS`,/\d\d:\d\d:\d\d,\d+/],[`HH:mm:ss`,/\d\d:\d\d:\d\d/],[`HH:mm`,/\d\d:\d\d/],[`HHmmss.SSSS`,/\d\d\d\d\d\d\.\d+/],[`HHmmss,SSSS`,/\d\d\d\d\d\d,\d+/],[`HHmmss`,/\d\d\d\d\d\d/],[`HHmm`,/\d\d\d\d/],[`HH`,/\d\d/]],Nn=/^\/?Date\((-?\d+)/i,Pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Fn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function In(e){var t,n,r=e._i,i=On.exec(r)||kn.exec(r),a,o,s,c,l=jn.length,u=Mn.length;if(i){for(m(e).iso=!0,t=0,n=l;t<n;t++)if(jn[t][1].exec(i[1])){o=jn[t][0],a=jn[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(i[3]){for(t=0,n=u;t<n;t++)if(Mn[t][1].exec(i[3])){s=(i[2]||` `)+Mn[t][0];break}if(s==null){e._isValid=!1;return}}if(!a&&s!=null){e._isValid=!1;return}if(i[4])if(An.exec(i[4]))c=`Z`;else{e._isValid=!1;return}e._f=o+(s||``)+(c||``),Jn(e)}else e._isValid=!1}function Ln(e,t,n,r,i,a){var o=[Rn(e),gt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Rn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function zn(e){return e.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function Bn(e,t,n){return e&&Wt.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay()?(m(n).weekdayMismatch=!0,n._isValid=!1,!1):!0}function Vn(e,t,n){if(e)return Fn[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Hn(e){var t=Pn.exec(zn(e._i)),n;if(t){if(n=Ln(t[4],t[3],t[2],t[5],t[6],t[7]),!Bn(t[1],n,e))return;e._a=n,e._tzm=Vn(t[8],t[9],t[10]),e._d=At.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function Un(e){var t=Nn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(In(e),e._isValid===!1)delete e._isValid;else return;if(Hn(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:n.createFromInputFallback(e)}n.createFromInputFallback=v(`value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.`,function(e){e._d=new Date(e._i+(e._useUTC?` UTC`:``))});function Wn(e,t,n){return e??t??n}function Gn(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Kn(e){var t,n,r=[],i,a,o;if(!e._d){for(i=Gn(e),e._w&&e._a[F]==null&&e._a[rt]==null&&qn(e),e._dayOfYear!=null&&(o=Wn(e._a[P],i[P]),(e._dayOfYear>B(o)||e._dayOfYear===0)&&(m(e)._overflowDayOfYear=!0),n=At(o,0,e._dayOfYear),e._a[rt]=n.getUTCMonth(),e._a[F]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?+(t===2):e._a[t];e._a[I]===24&&e._a[L]===0&&e._a[R]===0&&e._a[z]===0&&(e._nextDay=!0,e._a[I]=0),e._d=(e._useUTC?At:kt).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[I]=24),e._w&&e._w.d!==void 0&&e._w.d!==a&&(m(e).weekdayMismatch=!0)}}function qn(e){var t=e._w,n,r,i,a,o,s,c,l;t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=Wn(t.GG,e._a[P],Nt(q(),1,4).year),r=Wn(t.W,1),i=Wn(t.E,1),(i<1||i>7)&&(c=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=Nt(q(),a,o),n=Wn(t.gg,e._a[P],l.year),r=Wn(t.w,l.week),t.d==null?t.e==null?i=a:(i=t.e+a,(t.e<0||t.e>6)&&(c=!0)):(i=t.d,(i<0||i>6)&&(c=!0))),r<1||r>U(n,a,o)?m(e)._overflowWeeks=!0:c==null?(s=Mt(n,r,i,a,o),e._a[P]=s.year,e._dayOfYear=s.dayOfYear):m(e)._overflowWeekday=!0}n.ISO_8601=function(){},n.RFC_2822=function(){};function Jn(e){if(e._f===n.ISO_8601){In(e);return}if(e._f===n.RFC_2822){Hn(e);return}e._a=[],m(e).empty=!0;var t=``+e._i,r,i,a,o,s,c=t.length,l=0,u,d;for(a=be(e._f,e._locale).match(S)||[],d=a.length,r=0;r<d;r++)o=a[r],i=(t.match(Ze(o,e))||[])[0],i&&(s=t.substr(0,t.indexOf(i)),s.length>0&&m(e).unusedInput.push(s),t=t.slice(t.indexOf(i)+i.length),l+=i.length),ge[o]?(i?m(e).empty=!1:m(e).unusedTokens.push(o),tt(o,i,e)):e._strict&&!i&&m(e).unusedTokens.push(o);m(e).charsLeftOver=c-l,t.length>0&&m(e).unusedInput.push(t),e._a[I]<=12&&m(e).bigHour===!0&&e._a[I]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[I]=Yn(e._locale,e._a[I],e._meridiem),u=m(e).era,u!==null&&(e._a[P]=e._locale.erasConvertYear(u,e._a[P])),Kn(e),Dn(e)}function Yn(e,t,n){var r;return n==null?t:e.meridiemHour==null?e.isPM==null?t:(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0),t):e.meridiemHour(t,n)}function Xn(e){var t,n,r,i,a,o,s=!1,c=e._f.length;if(c===0){m(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)a=0,o=!1,t=ie({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],Jn(t),g(t)&&(o=!0),a+=m(t).charsLeftOver,a+=m(t).unusedTokens.length*10,m(t).score=a,s?a<r&&(r=a,n=t):(r==null||a<r||o)&&(r=a,n=t,o&&(s=!0));f(e,n||t)}function Zn(e){if(!e._d){var t=Me(e._i),n=t.day===void 0?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Kn(e)}}function Qn(e){var t=new ae(Dn($n(e)));return t._nextDay&&=(t.add(1,`d`),void 0),t}function $n(e){var t=e._i,n=e._f;return e._locale=e._locale||Tn(e._l),t===null||n===void 0&&t===``?te({nullInput:!0}):(typeof t==`string`&&(e._i=t=e._locale.preparse(t)),_(t)?new ae(Dn(t)):(u(t)?e._d=t:i(n)?Xn(e):n?Jn(e):er(e),g(e)||(e._d=null),e))}function er(e){var t=e._i;c(t)?e._d=new Date(n.now()):u(t)?e._d=new Date(t.valueOf()):typeof t==`string`?Un(e):i(t)?(e._a=d(t.slice(0),function(e){return parseInt(e,10)}),Kn(e)):a(t)?Zn(e):l(t)?e._d=new Date(t):n.createFromInputFallback(e)}function tr(e,t,n,r,o){var c={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(a(e)&&s(e)||i(e)&&e.length===0)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=o,c._l=n,c._i=e,c._f=t,c._strict=r,Qn(c)}function q(e,t,n,r){return tr(e,t,n,r,!1)}var nr=v(`moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/`,function(){var e=q.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:te()}),rr=v(`moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/`,function(){var e=q.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:te()});function ir(e,t){var n,r;if(t.length===1&&i(t[0])&&(t=t[0]),!t.length)return q();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function ar(){return ir(`isBefore`,[].slice.call(arguments,0))}function or(){return ir(`isAfter`,[].slice.call(arguments,0))}var sr=function(){return Date.now?Date.now():+new Date},cr=[`year`,`quarter`,`month`,`week`,`day`,`hour`,`minute`,`second`,`millisecond`];function lr(e){var t,n=!1,r,i=cr.length;for(t in e)if(o(e,t)&&!(V.call(cr,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[cr[r]]){if(n)return!1;parseFloat(e[cr[r]])!==M(e[cr[r]])&&(n=!0)}return!0}function ur(){return this._isValid}function dr(){return J(NaN)}function fr(e){var t=Me(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=lr(t),this._milliseconds=+u+l*1e3+c*6e4+s*1e3*60*60,this._days=+o+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=Tn(),this._bubble()}function pr(e){return e instanceof fr}function mr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function hr(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0,o;for(o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&M(e[o])!==M(t[o]))&&a++;return a+i}function gr(e,t){C(e,0,0,function(){var e=this.utcOffset(),n=`+`;return e<0&&(e=-e,n=`-`),n+x(~~(e/60),2)+t+x(~~e%60,2)})}gr(`Z`,`:`),gr(`ZZ`,``),k(`Z`,Ge),k(`ZZ`,Ge),N([`Z`,`ZZ`],function(e,t,n){n._useUTC=!0,n._tzm=vr(Ge,e)});var _r=/([\+\-]|\d\d)/gi;function vr(e,t){var n=(t||``).match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+``).match(_r)||[`-`,0,0],a=+(i[1]*60)+M(i[2]),a===0?0:i[0]===`+`?a:-a)}function yr(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(_(e)||u(e)?e.valueOf():q(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),n.updateOffset(r,!1),r):q(e).local()}function br(e){return-Math.round(e._d.getTimezoneOffset())}n.updateOffset=function(){};function xr(e,t,r){var i=this._offset||0,a;if(!this.isValid())return e==null?NaN:this;if(e!=null){if(typeof e==`string`){if(e=vr(Ge,e),e===null)return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(a=br(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,`m`),i!==e&&(!t||this._changeInProgress?Rr(this,J(e-i,`m`),1,!1):this._changeInProgress||=(this._changeInProgress=!0,n.updateOffset(this,!0),null)),this}else return this._isUTC?i:br(this)}function Sr(e,t){return e==null?-this.utcOffset():(typeof e!=`string`&&(e=-e),this.utcOffset(e,t),this)}function Cr(e){return this.utcOffset(0,e)}function wr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(br(this),`m`)),this}function Tr(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i==`string`){var e=vr(We,this._i);e==null?this.utcOffset(0,!0):this.utcOffset(e)}return this}function Er(e){return this.isValid()?(e=e?q(e).utcOffset():0,(this.utcOffset()-e)%60==0):!1}function Dr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Or(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ie(e,this),e=$n(e),e._a?(t=e._isUTC?p(e._a):q(e._a),this._isDSTShifted=this.isValid()&&hr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return this.isValid()?!this._isUTC:!1}function Ar(){return this.isValid()?this._isUTC:!1}function jr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Mr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Nr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function J(e,t){var n=e,r=null,i,a,s;return pr(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Mr.exec(e))?(i=r[1]===`-`?-1:1,n={y:0,d:M(r[F])*i,h:M(r[I])*i,m:M(r[L])*i,s:M(r[R])*i,ms:M(mr(r[z]*1e3))*i}):(r=Nr.exec(e))?(i=r[1]===`-`?-1:1,n={y:Pr(r[2],i),M:Pr(r[3],i),w:Pr(r[4],i),d:Pr(r[5],i),h:Pr(r[6],i),m:Pr(r[7],i),s:Pr(r[8],i)}):n==null?n={}:typeof n==`object`&&(`from`in n||`to`in n)&&(s=Ir(q(n.from),q(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new fr(n),pr(e)&&o(e,`_locale`)&&(a._locale=e._locale),pr(e)&&o(e,`_isValid`)&&(a._isValid=e._isValid),a}J.fn=fr.prototype,J.invalid=dr;function Pr(e,t){var n=e&&parseFloat(e.replace(`,`,`.`));return(isNaN(n)?0:n)*t}function Fr(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,`M`).isAfter(t)&&--n.months,n.milliseconds=t-+e.clone().add(n.months,`M`),n}function Ir(e,t){var n;return e.isValid()&&t.isValid()?(t=yr(t,e),e.isBefore(t)?n=Fr(e,t):(n=Fr(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Lr(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(se(t,`moment().`+t+`(period, number) is deprecated. Please use moment().`+t+`(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.`),a=n,n=r,r=a),i=J(n,r),Rr(this,i,e),this}}function Rr(e,t,r,i){var a=t._milliseconds,o=mr(t._days),s=mr(t._months);e.isValid()&&(i??=!0,s&&Ct(e,lt(e,`Month`)+s*r),o&&ut(e,`Date`,lt(e,`Date`)+o*r),a&&e._d.setTime(e._d.valueOf()+a*r),i&&n.updateOffset(e,o||s))}var zr=Lr(1,`add`),Br=Lr(-1,`subtract`);function Y(e){return typeof e==`string`||e instanceof String}function Vr(e){return _(e)||u(e)||Y(e)||l(e)||Ur(e)||Hr(e)||e==null}function Hr(e){var t=a(e)&&!s(e),n=!1,r=[`years`,`year`,`y`,`months`,`month`,`M`,`days`,`day`,`d`,`dates`,`date`,`D`,`hours`,`hour`,`h`,`minutes`,`minute`,`m`,`seconds`,`second`,`s`,`milliseconds`,`millisecond`,`ms`],i,c,l=r.length;for(i=0;i<l;i+=1)c=r[i],n||=o(e,c);return t&&n}function Ur(e){var t=i(e),n=!1;return t&&(n=e.filter(function(t){return!l(t)&&Y(e)}).length===0),t&&n}function X(e){var t=a(e)&&!s(e),n=!1,r=[`sameDay`,`nextDay`,`lastDay`,`nextWeek`,`lastWeek`,`sameElse`],i,c;for(i=0;i<r.length;i+=1)c=r[i],n||=o(e,c);return t&&n}function Wr(e,t){var n=e.diff(t,`days`,!0);return n<-6?`sameElse`:n<-1?`lastWeek`:n<0?`lastDay`:n<1?`sameDay`:n<2?`nextDay`:n<7?`nextWeek`:`sameElse`}function Gr(e,t){arguments.length===1&&(arguments[0]?Vr(arguments[0])?(e=arguments[0],t=void 0):X(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||q(),i=yr(r,this).startOf(`day`),a=n.calendarFormat(this,i)||`sameElse`,o=t&&(b(t[a])?t[a].call(this,r):t[a]);return this.format(o||this.localeData().calendar(a,this,q(r)))}function Kr(){return new ae(this)}function qr(e,t){var n=_(e)?e:q(e);return this.isValid()&&n.isValid()?(t=w(t)||`millisecond`,t===`millisecond`?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Jr(e,t){var n=_(e)?e:q(e);return this.isValid()&&n.isValid()?(t=w(t)||`millisecond`,t===`millisecond`?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Yr(e,t,n,r){var i=_(e)?e:q(e),a=_(t)?t:q(t);return this.isValid()&&i.isValid()&&a.isValid()?(r||=`()`,(r[0]===`(`?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===`)`?this.isBefore(a,n):!this.isAfter(a,n))):!1}function Xr(e,t){var n=_(e)?e:q(e),r;return this.isValid()&&n.isValid()?(t=w(t)||`millisecond`,t===`millisecond`?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Zr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Qr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function $r(e,t,n){var r,i,a;if(!this.isValid()||(r=yr(e,this),!r.isValid()))return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=w(t),t){case`year`:a=ei(this,r)/12;break;case`month`:a=ei(this,r);break;case`quarter`:a=ei(this,r)/3;break;case`second`:a=(this-r)/1e3;break;case`minute`:a=(this-r)/6e4;break;case`hour`:a=(this-r)/36e5;break;case`day`:a=(this-r-i)/864e5;break;case`week`:a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:j(a)}function ei(e,t){if(e.date()<t.date())return-ei(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,`months`),i,a;return t-r<0?(i=e.clone().add(n-1,`months`),a=(t-r)/(r-i)):(i=e.clone().add(n+1,`months`),a=(t-r)/(i-r)),-(n+a)||0}n.defaultFormat=`YYYY-MM-DDTHH:mm:ssZ`,n.defaultFormatUtc=`YYYY-MM-DDTHH:mm:ss[Z]`;function ti(){return this.clone().locale(`en`).format(`ddd MMM DD YYYY HH:mm:ss [GMT]ZZ`)}function ni(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?ye(n,t?`YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]`:`YYYYYY-MM-DD[T]HH:mm:ss.SSSZ`):b(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace(`Z`,ye(n,`Z`)):ye(n,t?`YYYY-MM-DD[T]HH:mm:ss.SSS[Z]`:`YYYY-MM-DD[T]HH:mm:ss.SSSZ`)}function ri(){if(!this.isValid())return`moment.invalid(/* `+this._i+` */)`;var e=`moment`,t=``,n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?`moment.utc`:`moment.parseZone`,t=`Z`),n=`[`+e+`("]`,r=0<=this.year()&&this.year()<=9999?`YYYY`:`YYYYYY`,i=`-MM-DD[T]HH:mm:ss.SSS`,a=t+`[")]`,this.format(n+r+i+a)}function ii(e){e||=this.isUtc()?n.defaultFormatUtc:n.defaultFormat;var t=ye(this,e);return this.localeData().postformat(t)}function ai(e,t){return this.isValid()&&(_(e)&&e.isValid()||q(e).isValid())?J({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oi(e){return this.from(q(),e)}function si(e,t){return this.isValid()&&(_(e)&&e.isValid()||q(e).isValid())?J({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ci(e){return this.to(q(),e)}function li(e){var t;return e===void 0?this._locale._abbr:(t=Tn(e),t!=null&&(this._locale=t),this)}var ui=v(`moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.`,function(e){return e===void 0?this.localeData():this.locale(e)});function di(){return this._locale}var fi=1e3,pi=60*fi,mi=60*pi,hi=146097*24*mi;function gi(e,t){return(e%t+t)%t}function _i(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hi:new Date(e,t,n).valueOf()}function vi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hi:Date.UTC(e,t,n)}function yi(e){var t,r;if(e=w(e),e===void 0||e===`millisecond`||!this.isValid())return this;switch(r=this._isUTC?vi:_i,e){case`year`:t=r(this.year(),0,1);break;case`quarter`:t=r(this.year(),this.month()-this.month()%3,1);break;case`month`:t=r(this.year(),this.month(),1);break;case`week`:t=r(this.year(),this.month(),this.date()-this.weekday());break;case`isoWeek`:t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case`day`:case`date`:t=r(this.year(),this.month(),this.date());break;case`hour`:t=this._d.valueOf(),t-=gi(t+(this._isUTC?0:this.utcOffset()*pi),mi);break;case`minute`:t=this._d.valueOf(),t-=gi(t,pi);break;case`second`:t=this._d.valueOf(),t-=gi(t,fi);break}return this._d.setTime(t),n.updateOffset(this,!0),this}function bi(e){var t,r;if(e=w(e),e===void 0||e===`millisecond`||!this.isValid())return this;switch(r=this._isUTC?vi:_i,e){case`year`:t=r(this.year()+1,0,1)-1;break;case`quarter`:t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case`month`:t=r(this.year(),this.month()+1,1)-1;break;case`week`:t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case`isoWeek`:t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case`day`:case`date`:t=r(this.year(),this.month(),this.date()+1)-1;break;case`hour`:t=this._d.valueOf(),t+=mi-gi(t+(this._isUTC?0:this.utcOffset()*pi),mi)-1;break;case`minute`:t=this._d.valueOf(),t+=pi-gi(t,pi)-1;break;case`second`:t=this._d.valueOf(),t+=fi-gi(t,fi)-1;break}return this._d.setTime(t),n.updateOffset(this,!0),this}function xi(){return this._d.valueOf()-(this._offset||0)*6e4}function Si(){return Math.floor(this.valueOf()/1e3)}function Ci(){return new Date(this.valueOf())}function wi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ti(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ei(){return this.isValid()?this.toISOString():null}function Di(){return g(this)}function Oi(){return f({},m(this))}function ki(){return m(this).overflow}function Ai(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}C(`N`,0,0,`eraAbbr`),C(`NN`,0,0,`eraAbbr`),C(`NNN`,0,0,`eraAbbr`),C(`NNNN`,0,0,`eraName`),C(`NNNNN`,0,0,`eraNarrow`),C(`y`,[`y`,1],`yo`,`eraYear`),C(`y`,[`yy`,2],0,`eraYear`),C(`y`,[`yyy`,3],0,`eraYear`),C(`y`,[`yyyy`,4],0,`eraYear`),k(`N`,Vi),k(`NN`,Vi),k(`NNN`,Vi),k(`NNNN`,Hi),k(`NNNNN`,Ui),N([`N`,`NN`,`NNN`,`NNNN`,`NNNNN`],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?m(n).era=i:m(n).invalidEra=e}),k(`y`,He),k(`yy`,He),k(`yyy`,He),k(`yyyy`,He),k(`yo`,Wi),N([`y`,`yy`,`yyy`,`yyyy`],P),N([`yo`],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[P]=n._locale.eraYearOrdinalParse(e,i):t[P]=parseInt(e,10)});function ji(e,t){var r,i,a,o=this._eras||Tn(`en`)._eras;for(r=0,i=o.length;r<i;++r){switch(typeof o[r].since){case`string`:a=n(o[r].since).startOf(`day`),o[r].since=a.valueOf();break}switch(typeof o[r].until){case`undefined`:o[r].until=1/0;break;case`string`:a=n(o[r].until).startOf(`day`).valueOf(),o[r].until=a.valueOf();break}}return o}function Mi(e,t,n){var r,i,a=this.eras(),o,s,c;for(e=e.toUpperCase(),r=0,i=a.length;r<i;++r)if(o=a[r].name.toUpperCase(),s=a[r].abbr.toUpperCase(),c=a[r].narrow.toUpperCase(),n)switch(t){case`N`:case`NN`:case`NNN`:if(s===e)return a[r];break;case`NNNN`:if(o===e)return a[r];break;case`NNNNN`:if(c===e)return a[r];break}else if([o,s,c].indexOf(e)>=0)return a[r]}function Ni(e,t){var r=e.since<=e.until?1:-1;return t===void 0?n(e.since).year():n(e.since).year()+(t-e.offset)*r}function Pi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf(`day`).valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return``}function Fi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf(`day`).valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return``}function Ii(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf(`day`).valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return``}function Li(){var e,t,r,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,i=this.clone().startOf(`day`).valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-n(a[e].since).year())*r+a[e].offset;return this.year()}function Ri(e){return o(this,`_erasNameRegex`)||Gi.call(this),e?this._erasNameRegex:this._erasRegex}function zi(e){return o(this,`_erasAbbrRegex`)||Gi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Bi(e){return o(this,`_erasNarrowRegex`)||Gi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Vi(e,t){return t.erasAbbrRegex(e)}function Hi(e,t){return t.erasNameRegex(e)}function Ui(e,t){return t.erasNarrowRegex(e)}function Wi(e,t){return t._eraYearOrdinalRegex||He}function Gi(){var e=[],t=[],n=[],r=[],i,a,o,s,c,l=this.eras();for(i=0,a=l.length;i<a;++i)o=A(l[i].name),s=A(l[i].abbr),c=A(l[i].narrow),t.push(o),e.push(s),n.push(c),r.push(o),r.push(s),r.push(c);this._erasRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._erasNameRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`),this._erasAbbrRegex=RegExp(`^(`+e.join(`|`)+`)`,`i`),this._erasNarrowRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`)}C(0,[`gg`,2],0,function(){return this.weekYear()%100}),C(0,[`GG`,2],0,function(){return this.isoWeekYear()%100});function Ki(e,t){C(0,[e,e.length],0,t)}Ki(`gggg`,`weekYear`),Ki(`ggggg`,`weekYear`),Ki(`GGGG`,`isoWeekYear`),Ki(`GGGGG`,`isoWeekYear`),k(`G`,Ue),k(`g`,Ue),k(`GG`,D,T),k(`gg`,D,T),k(`GGGG`,Be,Le),k(`gggg`,Be,Le),k(`GGGGG`,Ve,E),k(`ggggg`,Ve,E),et([`gggg`,`ggggg`,`GGGG`,`GGGGG`],function(e,t,n,r){t[r.substr(0,2)]=M(e)}),et([`gg`,`GG`],function(e,t,r,i){t[i]=n.parseTwoDigitYear(e)});function qi(e){return $i.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ji(e){return $i.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Yi(){return U(this.year(),1,4)}function Xi(){return U(this.isoWeekYear(),1,4)}function Zi(){var e=this.localeData()._week;return U(this.year(),e.dow,e.doy)}function Qi(){var e=this.localeData()._week;return U(this.weekYear(),e.dow,e.doy)}function $i(e,t,n,r,i){var a;return e==null?Nt(this,r,i).year:(a=U(e,r,i),t>a&&(t=a),ea.call(this,e,t,n,r,i))}function ea(e,t,n,r,i){var a=Mt(e,t,n,r,i),o=At(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}C(`Q`,0,`Qo`,`quarter`),k(`Q`,Fe),N(`Q`,function(e,t){t[rt]=(M(e)-1)*3});function ta(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}C(`D`,[`DD`,2],`Do`,`date`),k(`D`,D,Je),k(`DD`,D,T),k(`Do`,function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),N([`D`,`DD`],F),N(`Do`,function(e,t){t[F]=M(e.match(D)[0])});var na=ct(`Date`,!0);C(`DDD`,[`DDDD`,3],`DDDo`,`dayOfYear`),k(`DDD`,O),k(`DDDD`,Ie),N([`DDD`,`DDDD`],function(e,t,n){n._dayOfYear=M(e)});function ra(e){var t=Math.round((this.clone().startOf(`day`)-this.clone().startOf(`year`))/864e5)+1;return e==null?t:this.add(e-t,`d`)}C(`m`,[`mm`,2],0,`minute`),k(`m`,D,Ye),k(`mm`,D,T),N([`m`,`mm`],L);var ia=ct(`Minutes`,!1);C(`s`,[`ss`,2],0,`second`),k(`s`,D,Ye),k(`ss`,D,T),N([`s`,`ss`],R);var aa=ct(`Seconds`,!1);C(`S`,0,0,function(){return~~(this.millisecond()/100)}),C(0,[`SS`,2],0,function(){return~~(this.millisecond()/10)}),C(0,[`SSS`,3],0,`millisecond`),C(0,[`SSSS`,4],0,function(){return this.millisecond()*10}),C(0,[`SSSSS`,5],0,function(){return this.millisecond()*100}),C(0,[`SSSSSS`,6],0,function(){return this.millisecond()*1e3}),C(0,[`SSSSSSS`,7],0,function(){return this.millisecond()*1e4}),C(0,[`SSSSSSSS`,8],0,function(){return this.millisecond()*1e5}),C(0,[`SSSSSSSSS`,9],0,function(){return this.millisecond()*1e6}),k(`S`,O,Fe),k(`SS`,O,T),k(`SSS`,O,Ie);var oa,sa;for(oa=`SSSS`;oa.length<=9;oa+=`S`)k(oa,He);function ca(e,t){t[z]=M((`0.`+e)*1e3)}for(oa=`S`;oa.length<=9;oa+=`S`)N(oa,ca);sa=ct(`Milliseconds`,!1),C(`z`,0,0,`zoneAbbr`),C(`zz`,0,0,`zoneName`);function la(){return this._isUTC?`UTC`:``}function ua(){return this._isUTC?`Coordinated Universal Time`:``}var Z=ae.prototype;Z.add=zr,Z.calendar=Gr,Z.clone=Kr,Z.diff=$r,Z.endOf=bi,Z.format=ii,Z.from=ai,Z.fromNow=oi,Z.to=si,Z.toNow=ci,Z.get=dt,Z.invalidAt=ki,Z.isAfter=qr,Z.isBefore=Jr,Z.isBetween=Yr,Z.isSame=Xr,Z.isSameOrAfter=Zr,Z.isSameOrBefore=Qr,Z.isValid=Di,Z.lang=ui,Z.locale=li,Z.localeData=di,Z.max=rr,Z.min=nr,Z.parsingFlags=Oi,Z.set=ft,Z.startOf=yi,Z.subtract=Br,Z.toArray=wi,Z.toObject=Ti,Z.toDate=Ci,Z.toISOString=ni,Z.inspect=ri,typeof Symbol<`u`&&Symbol.for!=null&&(Z[Symbol.for(`nodejs.util.inspect.custom`)]=function(){return`Moment<`+this.format()+`>`}),Z.toJSON=Ei,Z.toString=ti,Z.unix=Si,Z.valueOf=xi,Z.creationData=Ai,Z.eraName=Pi,Z.eraNarrow=Fi,Z.eraAbbr=Ii,Z.eraYear=Li,Z.year=ot,Z.isLeapYear=st,Z.weekYear=qi,Z.isoWeekYear=Ji,Z.quarter=Z.quarters=ta,Z.month=wt,Z.daysInMonth=Tt,Z.week=Z.weeks=Rt,Z.isoWeek=Z.isoWeeks=zt,Z.weeksInYear=Zi,Z.weeksInWeekYear=Qi,Z.isoWeeksInYear=Yi,Z.isoWeeksInISOWeekYear=Xi,Z.date=na,Z.day=Z.days=en,Z.weekday=tn,Z.isoWeekday=nn,Z.dayOfYear=ra,Z.hour=Z.hours=mn,Z.minute=Z.minutes=ia,Z.second=Z.seconds=aa,Z.millisecond=Z.milliseconds=sa,Z.utcOffset=xr,Z.utc=Cr,Z.local=wr,Z.parseZone=Tr,Z.hasAlignedHourOffset=Er,Z.isDST=Dr,Z.isLocal=kr,Z.isUtcOffset=Ar,Z.isUtc=jr,Z.isUTC=jr,Z.zoneAbbr=la,Z.zoneName=ua,Z.dates=v(`dates accessor is deprecated. Use date instead.`,na),Z.months=v(`months accessor is deprecated. Use month instead`,wt),Z.years=v(`years accessor is deprecated. Use year instead`,ot),Z.zone=v(`moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/`,Sr),Z.isDSTShifted=v(`isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information`,Or);function da(e){return q(e*1e3)}function fa(){return q.apply(null,arguments).parseZone()}function pa(e){return e}var Q=ue.prototype;Q.calendar=pe,Q.longDateFormat=Se,Q.invalidDate=we,Q.ordinal=De,Q.preparse=pa,Q.postformat=pa,Q.relativeTime=ke,Q.pastFuture=Ae,Q.set=ce,Q.eras=ji,Q.erasParse=Mi,Q.erasConvertYear=Ni,Q.erasAbbrRegex=zi,Q.erasNameRegex=Ri,Q.erasNarrowRegex=Bi,Q.months=bt,Q.monthsShort=xt,Q.monthsParse=St,Q.monthsRegex=Dt,Q.monthsShortRegex=Et,Q.week=Pt,Q.firstDayOfYear=Lt,Q.firstDayOfWeek=It,Q.weekdays=Yt,Q.weekdaysMin=Zt,Q.weekdaysShort=Xt,Q.weekdaysParse=$t,Q.weekdaysRegex=rn,Q.weekdaysShortRegex=an,Q.weekdaysMinRegex=on,Q.isPM=fn,Q.meridiem=hn;function ma(e,t,n,r){var i=Tn(),a=p().set(r,t);return i[n](a,e)}function ha(e,t,n){if(l(e)&&(t=e,e=void 0),e||=``,t!=null)return ma(e,t,n,`month`);var r,i=[];for(r=0;r<12;r++)i[r]=ma(e,r,n,`month`);return i}function ga(e,t,n,r){typeof e==`boolean`?(l(t)&&(n=t,t=void 0),t||=``):(t=e,n=t,e=!1,l(t)&&(n=t,t=void 0),t||=``);var i=Tn(),a=e?i._week.dow:0,o,s=[];if(n!=null)return ma(t,(n+a)%7,r,`day`);for(o=0;o<7;o++)s[o]=ma(t,(o+a)%7,r,`day`);return s}function _a(e,t){return ha(e,t,`months`)}function va(e,t){return ha(e,t,`monthsShort`)}function ya(e,t,n){return ga(e,t,n,`weekdays`)}function ba(e,t,n){return ga(e,t,n,`weekdaysShort`)}function xa(e,t,n){return ga(e,t,n,`weekdaysMin`)}Sn(`en`,{eras:[{since:`0001-01-01`,until:1/0,offset:1,name:`Anno Domini`,narrow:`AD`,abbr:`AD`},{since:`0000-12-31`,until:-1/0,offset:1,name:`Before Christ`,narrow:`BC`,abbr:`BC`}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(M(e%100/10)===1?`th`:t===1?`st`:t===2?`nd`:t===3?`rd`:`th`)}}),n.lang=v(`moment.lang is deprecated. Use moment.locale instead.`,Sn),n.langData=v(`moment.langData is deprecated. Use moment.localeData instead.`,Tn);var Sa=Math.abs;function Ca(){var e=this._data;return this._milliseconds=Sa(this._milliseconds),this._days=Sa(this._days),this._months=Sa(this._months),e.milliseconds=Sa(e.milliseconds),e.seconds=Sa(e.seconds),e.minutes=Sa(e.minutes),e.hours=Sa(e.hours),e.months=Sa(e.months),e.years=Sa(e.years),this}function wa(e,t,n,r){var i=J(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Ta(e,t){return wa(this,e,t,1)}function Ea(e,t){return wa(this,e,t,-1)}function Da(e){return e<0?Math.floor(e):Math.ceil(e)}function Oa(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Da(Aa(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=j(e/1e3),r.seconds=i%60,a=j(i/60),r.minutes=a%60,o=j(a/60),r.hours=o%24,t+=j(o/24),c=j(ka(t)),n+=c,t-=Da(Aa(c)),s=j(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function ka(e){return e*4800/146097}function Aa(e){return e*146097/4800}function ja(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=w(e),e===`month`||e===`quarter`||e===`year`)switch(t=this._days+r/864e5,n=this._months+ka(t),e){case`month`:return n;case`quarter`:return n/3;case`year`:return n/12}else switch(t=this._days+Math.round(Aa(this._months)),e){case`week`:return t/7+r/6048e5;case`day`:return t+r/864e5;case`hour`:return t*24+r/36e5;case`minute`:return t*1440+r/6e4;case`second`:return t*86400+r/1e3;case`millisecond`:return Math.floor(t*864e5)+r;default:throw Error(`Unknown unit `+e)}}function Ma(e){return function(){return this.as(e)}}var Na=Ma(`ms`),Pa=Ma(`s`),Fa=Ma(`m`),Ia=Ma(`h`),La=Ma(`d`),Ra=Ma(`w`),za=Ma(`M`),Ba=Ma(`Q`),Va=Ma(`y`),Ha=Na;function Ua(){return J(this)}function Wa(e){return e=w(e),this.isValid()?this[e+`s`]():NaN}function Ga(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ka=Ga(`milliseconds`),qa=Ga(`seconds`),Ja=Ga(`minutes`),Ya=Ga(`hours`),Xa=Ga(`days`),Za=Ga(`months`),Qa=Ga(`years`);function $a(){return j(this.days()/7)}var eo=Math.round,to={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ro(e,t,n,r){var i=J(e).abs(),a=eo(i.as(`s`)),o=eo(i.as(`m`)),s=eo(i.as(`h`)),c=eo(i.as(`d`)),l=eo(i.as(`M`)),u=eo(i.as(`w`)),d=eo(i.as(`y`)),f=a<=n.ss&&[`s`,a]||a<n.s&&[`ss`,a]||o<=1&&[`m`]||o<n.m&&[`mm`,o]||s<=1&&[`h`]||s<n.h&&[`hh`,s]||c<=1&&[`d`]||c<n.d&&[`dd`,c];return n.w!=null&&(f=f||u<=1&&[`w`]||u<n.w&&[`ww`,u]),f=f||l<=1&&[`M`]||l<n.M&&[`MM`,l]||d<=1&&[`y`]||[`yy`,d],f[2]=t,f[3]=+e>0,f[4]=r,no.apply(null,f)}function io(e){return e===void 0?eo:typeof e==`function`?(eo=e,!0):!1}function ao(e,t){return to[e]===void 0?!1:t===void 0?to[e]:(to[e]=t,e===`s`&&(to.ss=t-1),!0)}function oo(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=to,i,a;return typeof e==`object`&&(t=e,e=!1),typeof e==`boolean`&&(n=e),typeof t==`object`&&(r=Object.assign({},to,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=ro(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var so=Math.abs;function co(e){return(e>0)-(e<0)||+e}function lo(){if(!this.isValid())return this.localeData().invalidDate();var e=so(this._milliseconds)/1e3,t=so(this._days),n=so(this._months),r,i,a,o,s=this.asSeconds(),c,l,u,d;return s?(r=j(e/60),i=j(r/60),e%=60,r%=60,a=j(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,``):``,c=s<0?`-`:``,l=co(this._months)===co(s)?``:`-`,u=co(this._days)===co(s)?``:`-`,d=co(this._milliseconds)===co(s)?``:`-`,c+`P`+(a?l+a+`Y`:``)+(n?l+n+`M`:``)+(t?u+t+`D`:``)+(i||r||e?`T`:``)+(i?d+i+`H`:``)+(r?d+r+`M`:``)+(e?d+o+`S`:``)):`P0D`}var $=fr.prototype;return $.isValid=ur,$.abs=Ca,$.add=Ta,$.subtract=Ea,$.as=ja,$.asMilliseconds=Na,$.asSeconds=Pa,$.asMinutes=Fa,$.asHours=Ia,$.asDays=La,$.asWeeks=Ra,$.asMonths=za,$.asQuarters=Ba,$.asYears=Va,$.valueOf=Ha,$._bubble=Oa,$.clone=Ua,$.get=Wa,$.milliseconds=Ka,$.seconds=qa,$.minutes=Ja,$.hours=Ya,$.days=Xa,$.weeks=$a,$.months=Za,$.years=Qa,$.humanize=oo,$.toISOString=lo,$.toString=lo,$.toJSON=lo,$.locale=li,$.localeData=di,$.toIsoString=v(`toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)`,lo),$.lang=ui,C(`X`,0,0,`unix`),C(`x`,0,0,`valueOf`),k(`x`,Ue),k(`X`,Ke),N(`X`,function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),N(`x`,function(e,t,n){n._d=new Date(M(e))}),n.version=`2.30.1`,r(q),n.fn=Z,n.min=ar,n.max=or,n.now=sr,n.utc=p,n.unix=da,n.months=_a,n.isDate=u,n.locale=Sn,n.invalid=te,n.duration=J,n.isMoment=_,n.weekdays=ya,n.parseZone=fa,n.localeData=Tn,n.isDuration=pr,n.monthsShort=va,n.weekdaysMin=xa,n.defineLocale=Cn,n.updateLocale=wn,n.locales=En,n.weekdaysShort=ba,n.normalizeUnits=w,n.relativeTimeRounding=io,n.relativeTimeThreshold=ao,n.calendarFormat=Wr,n.prototype=Z,n.HTML5_FMT={DATETIME_LOCAL:`YYYY-MM-DDTHH:mm`,DATETIME_LOCAL_SECONDS:`YYYY-MM-DDTHH:mm:ss`,DATETIME_LOCAL_MS:`YYYY-MM-DDTHH:mm:ss.SSS`,DATE:`YYYY-MM-DD`,TIME:`HH:mm`,TIME_SECONDS:`HH:mm:ss`,TIME_MS:`HH:mm:ss.SSS`,WEEK:`GGGG-[W]WW`,MONTH:`YYYY-MM`},n}))}));u(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0&&typeof require==`function`?r(wi()):typeof define==`function`&&define.amd?define([`../moment`],r):r(n.moment)})(e,(function(e){"use strict";var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];return e.defineLocale(`fr`,{months:`janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre`.split(`_`),monthsShort:`janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.`.split(`_`),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:`dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi`.split(`_`),weekdaysShort:`dim._lun._mar._mer._jeu._ven._sam.`.split(`_`),weekdaysMin:`di_lu_ma_me_je_ve_sa`.split(`_`),weekdaysParseExact:!0,longDateFormat:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},calendar:{sameDay:`[Aujourd’hui à] LT`,nextDay:`[Demain à] LT`,nextWeek:`dddd [à] LT`,lastDay:`[Hier à] LT`,lastWeek:`dddd [dernier à] LT`,sameElse:`L`},relativeTime:{future:`dans %s`,past:`il y a %s`,s:`quelques secondes`,ss:`%d secondes`,m:`une minute`,mm:`%d minutes`,h:`une heure`,hh:`%d heures`,d:`un jour`,dd:`%d jours`,w:`une semaine`,ww:`%d semaines`,M:`un mois`,MM:`%d mois`,y:`un an`,yy:`%d ans`},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case`D`:return e+(e===1?`er`:``);default:case`M`:case`Q`:case`DDD`:case`d`:return e+(e===1?`er`:`e`);case`w`:case`W`:return e+(e===1?`re`:`e`)}},week:{dow:1,doy:4}})}))}))();function Ti(e,t=!0){if(!e)return null;let n=e.toString().normalize(`NFD`).replace(/[\u0300-\u036f]/g,``);return t?n.toLowerCase():n}function Ei(e){return e?e?.toLocaleString(`fr-FR`,{style:`currency`,currency:`EUR`,minimumFractionDigits:2}):`0 €`}function Di(e,t=`DD/MM/YYYY`){return!e||!p.default.unix(e).isValid()?e:p.default.unix(e).format(t)}function Oi(e,t=`DD/MM/YYYY à HH:mm`){return Di(e,t)}var ki=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)?$/;function Ai(e,t){let n=e.replace(/\d+/g,e=>(+e+1e5).toString()),r=t.replace(/\d+/g,e=>(+e+1e5).toString());return n.localeCompare(r)}function ji(e){return e!=null&&e!==``&&!isNaN(e)}function Mi(e){return e&&(0,p.default)(e,`DD/MM/YYYY`,!0).isValid()}function Ni(e){return typeof e==`boolean`}function Pi(e,t,n){let r=!!e-+!!t;return n?-r:r}function Fi(e,t){let n=(e==null||e===``)&&typeof e!=`boolean`,r=(t==null||t===``)&&typeof t!=`boolean`;return n&&r?0:n?1:r?-1:null}function Ii(e){return typeof e==`string`&&e.includes(`€`)}function Li(e,t,n){let r=parseFloat(e.replace(`€`,``).replace(`,`,`.`).replace(/\s/g,``).trim()),i=parseFloat(t.replace(`€`,``).replace(`,`,`.`).replace(/\s/g,``).trim());if(isNaN(r)&&isNaN(i))return 0;if(isNaN(r))return 1;if(isNaN(i))return-1;let a=r-i;return n?a:-a}function Ri(e,t,n){let r=Fi(e,t);if(r!==null)return r;if(Ni(e)&&Ni(t))return Pi(e,t,n);if(ki.test(e)&&ki.test(t)){let r=Ai(e,t);return n?r:-r}if(ji(e)&&ji(t)){let r=parseFloat(e),i=parseFloat(t);return n?r-i:i-r}if(Mi(e)&&Mi(t)){let r=(0,p.default)(e,`DD/MM/YYYY`).unix(),i=(0,p.default)(t,`DD/MM/YYYY`).unix();return n?r-i:i-r}if(Ii(e)&&Ii(t))return Li(e,t,n);let i=typeof e==`string`?Ti(e)?.toLowerCase():Ti(String(e))?.toLowerCase(),a=typeof t==`string`?Ti(t)?.toLowerCase():Ti(String(t))?.toLowerCase(),o=i?.localeCompare(a,void 0,{numeric:!0,sensitivity:`base`});return n?o:-o}function zi(e,t,n=!1){return!e||!Array.isArray(e)?e:e.sort((e,r)=>{let i=e?.[t],a=r?.[t];return Ri(i,a,n)})}function Bi(e,t=!1,n){return!e||!Array.isArray(e)?e:e.sort((e,r)=>n(e,r,t))}function Vi(e,t){let n=Ui(e);if(!n)n={columns:t};else if(!n.columns)n.columns=t;else{let e=t.filter(function(e){return!n.columns.some(function(t){return t.id===e.id})});n.columns=n.columns.concat(e);let r=n.columns.filter(function(e){return!t.some(function(t){return e.id===t.id})});n.columns=n.columns.filter(function(e){return!r.some(function(t){return e.id===t.id})}),n.columns.filter(e=>{for(let n of t)n.id===e.id&&n.libelle!==e.libelle&&(e.libelle=n.libelle)})}Wi(e,n)}function Hi(e,t,n=null){let r=Ui(e);r?n&&!r[n]&&(r[n]=t):n?(r={},r[n]=t):r=t,Wi(e,r)}function Ui(e){return JSON.parse(window.localStorage.getItem(e))}function Wi(e,t,n=null){let r=Ui(e);return n?r[n]=t:r=t,window.localStorage.setItem(e,JSON.stringify(r))}var Gi=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};Fr.add(_i,mi,hi,bi,vi,Si,Ci,xi,gi,yi);var Ki={name:`AmsomTableDraggable`,components:{VueDraggableNext:n.VueDraggableNext,FontAwesomeIcon:pi},props:{tableId:{type:String,default:`table-draggable`,require:!0},defaultColumns:{type:Array,require:!0,default:null},dynamicColumns:{type:Array,default:null},localStorageItemName:{type:String,default:null},localStorageMaxItemPerPageName:{type:String,default:null},tdItemsList:{type:[Array,Object],require:!0,default:null},search:{type:String,default:null},pickedDate:{type:Array,default:null},columnNameDateFilter:{type:Array,default:null},maxItemPerPage:{type:Number,default:-1},infiniteScroll:{type:Boolean,default:!1},infiniteScrollIncrement:{type:Number,default:null},maxItemPerPageList:{type:Array,default:()=>[{value:5,text:`5`},{value:10,text:`10`},{value:15,text:`15`},{value:25,text:`25`},{value:50,text:`50`},{value:100,text:`100`},{value:500,text:`500`},{value:1e3,text:`1000`},{value:-1,text:`Tous`}]},tdClass:{type:String,default:``},showMaxItemPerPageBtn:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},showModifyColumnsBtn:{type:Boolean,default:!1},showLineNumber:{type:Boolean,default:!1},ghostClass:{type:String,default:`bg-success`},headerBgColor:{type:String,default:`bg-white`},headerTextColor:{type:String,default:`text-primary`},lineEditMode:{type:Boolean,default:!1},border:{type:Boolean,default:!1},tableSm:{type:Boolean,default:!1},deepSorts:{type:Boolean,default:!1},deepSortsListPreset:{type:Array,default:null},ckSelectedItems:{type:Array,default:null},lineStatesList:{type:Array,default:()=>[{state:`add`,class:`addLineState`},{state:`delete`,class:`deleteLineState`},{state:`update`,class:`updateLineState`}]},stickyScrollbarHorizontal:{type:Boolean,default:!1},paginationPosition:{type:String,default:`left`,validator(e){return[`left`,`center`,`right`].includes(e)}},trFontSize:{type:String,default:`fs-6`},trHeightPx:{type:Number,default:60},noValueText:{type:String,default:`Aucune valeur`},editModeMaxRows:{type:Number,default:3},scrollToId:{type:[String,Number],default:null}},emits:[`changeSubject`,`lineEditModeAddNewLine`,`update:ckSelectedItems`,`update:dynamicColumns`,`update:deepSortsListPreset`,`contextmenu`,`postSaveColumns`,`postResetColumns`,`scrolled`],data(){return{checkAllCheckBox:!1,isDragging:!1,scrollHighlightId:null,sortKey:null,sortAsc:!1,currentPage:1,previousCurrentPage:1,selectedItems:[],currentHeaderSort:null,headerEditMode:!1,totalPages:null,columns:this.copyDefaultColumns(),maxItemsPerPage:this.getDefaultMaxItemPerPage(),forceTableUpdateIndex:0,resizeObserver:null,showScrollbar:!1,tableContainer:null,deepSortsList:[],isInternalUpdate:!1,currentVisibleItems:0,scrollTimeout:null,stickyColumnsUpdateTimeout:null,normalizedItemsCache:new Map,deepSortCache:null,deepSortCacheKey:``,stickyColumnsAnimationFrame:null}},computed:{currentDisplayPagination(){let e=[];return this.totalPages<=1?e:(e=this.currentPage===1?[1,2,3]:this.currentPage===this.totalPages?[this.totalPages-2,this.totalPages-1,this.totalPages]:[this.currentPage-1,this.currentPage,this.currentPage+1],e.filter(e=>e>=1&&e<=this.totalPages))},items(){return this.tdItemsList?this.tdItemsList:[]},showItemsLinesNumber(){return this.showeditems.length},dateFilterBounds(){return!this.pickedDate||!this.pickedDate[0]||!this.pickedDate[1]?null:{deb:(0,r.default)(this.pickedDate[0]).set({hour:0,minute:0}).unix(),fin:(0,r.default)(this.pickedDate[1]).set({hour:23,minute:59}).unix()}},normalizedSearch(){return this.search?Ti(this.search):``},hasDateFilter(){return this.dateFilterBounds&&Array.isArray(this.columnNameDateFilter)&&this.columnNameDateFilter.length>0},visibleColumns(){return this.columns.filter(e=>e.show&&(!e.onlyOnEditMode||this.lineEditMode))},filtereditems(){return this.items?(`${this.normalizedSearch}${this.hasDateFilter}${this.dateFilterBounds?.deb}${this.dateFilterBounds?.fin}`,this.items.filter(e=>{let t=this.filterBy(e,this.normalizedSearch);if(this.hasDateFilter){let n=this.columnNameDateFilter.some(t=>{let n=e[t];if(n){let e=(0,r.default)(n,`DD/MM/YYYY`).unix();return e>=this.dateFilterBounds.deb&&e<=this.dateFilterBounds.fin}return!1});return t&&n}return t})):[]},sortedItems(){if(!this.filtereditems)return[];if(!this.sortKey&&(!this.deepSorts||this.deepSortsList.length===0))return this.filtereditems;let e=this.columns.find(e=>e.id===this.sortKey);return this.deepSorts&&this.deepSortsList.length>0?this.deepSortsColumnList(this.deepSortsList,[...this.filtereditems]):e?.customSort?Bi([...this.filtereditems],this.sortAsc,e.customSort):e?.formatter||e?.type?Bi([...this.filtereditems],this.sortAsc,(t,n,r)=>Ri(this.formatColumnValue(t,e),this.formatColumnValue(n,e),r)):this.sortKey?zi([...this.filtereditems],this.sortKey,this.sortAsc):this.filtereditems},showeditems(){let e=this.sortedItems;if(this.infiniteScroll)return e.slice(0,this.currentVisibleItems);if(this.maxItemsPerPage===-1)return e;let t=(this.currentPage-1)*this.maxItemsPerPage,n=this.currentPage*this.maxItemsPerPage;return e.slice(t,n)},tableMaxHeight(){if(!this.infiniteScroll)return`auto`;let e=this.trHeightPx||60;return`${50+this.maxItemPerPage*e}px`},deepSortsListComputed(){return this.deepSortsList}},watch:{ckSelectedItems:{handler(e){e&&(this.selectedItems=e)},immediate:!0},dynamicColumns:{handler(e){e&&!this.isInternalUpdate&&(this.isInternalUpdate=!0,this.columns=this.getColumnsById(e,this.defaultColumns),this.$nextTick(()=>{this.isInternalUpdate=!1}))},immediate:!0},columns:{handler(e){this.localStorageItemName!==null&&Wi(this.localStorageItemName,this.getRefactoColumns(e),`columns`),this.dynamicColumns&&!this.isInternalUpdate&&(this.isInternalUpdate=!0,this.$emit(`update:dynamicColumns`,this.getRefactoColumns(e)),this.$nextTick(()=>{this.isInternalUpdate=!1})),this.forceTableUpdateIndex+=1}},headerEditMode:{handler(e){if(e)this.maxItemsPerPage=this.editModeMaxRows;else{let e=this.localStorageMaxItemPerPageName===null?this.localStorageItemName===null?this.maxItemPerPage:Ui(this.localStorageItemName)?.maxItemPerPage:Ui(this.localStorageMaxItemPerPageName);this.maxItemsPerPage=e??this.maxItemPerPage}}},sortedItems:{handler(e){if(this.infiniteScroll){let t=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems===0?this.currentVisibleItems=Math.min(this.maxItemPerPage+t,e.length):this.currentVisibleItems=Math.min(this.currentVisibleItems,e.length)}this.infiniteScroll||(this.totalPages=this.newTotalPage(e.length))},immediate:!0},filtereditems:{handler(e,t){if(this.infiniteScroll&&t&&e.length!==t.length)if(e.length>t.length&&this.currentVisibleItems<e.length){let t=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+t,e.length)}else e.length<t.length&&this.currentVisibleItems>e.length&&(this.currentVisibleItems=Math.min(this.currentVisibleItems,e.length))},immediate:!1},maxItemPerPage:{handler(e){e!==this.maxItemsPerPage&&(this.maxItemsPerPage=e)},immediate:!0},maxItemsPerPage:{handler(e){if(!this.headerEditMode){if(this.localStorageItemName!==null&&Wi(this.localStorageItemName,e,`maxItemPerPage`),this.localStorageMaxItemPerPageName!==null&&Wi(this.localStorageMaxItemPerPageName,e),this.infiniteScroll){let t=this.infiniteScrollIncrement||e;this.currentVisibleItems=Math.min(e+t,this.sortedItems.length)}this.currentPage!==1&&!this.infiniteScroll&&(this.currentPage=1),this.infiniteScroll||(this.totalPages=this.newTotalPage(this.filtereditems.length))}}},search:{handler(e,t){e!==t&&(this.normalizedItemsCache.clear(),this.currentPage>1&&this.$nextTick(()=>{this.adjustPageAfterSearch()}),this.infiniteScroll&&this.$nextTick(()=>{let e=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+e,this.filtereditems.length)}))},immediate:!1},showeditems:{handler(e,t){e!==t&&(this.shouldAdjustPage(e)&&this.adjustPageAfterSearch(),e.length>0?this.checkAllCheckBox=e.every(e=>this.selectedItems.includes(e.id)):this.checkAllCheckBox=!1,this.infiniteScroll||(this.totalPages=this.newTotalPage(this.filtereditems.length)),this.columns.some(e=>e.stickyLeft||e.stickyRight)&&this.$nextTick(()=>{this.debouncedUpdateStickyColumns()}))},flush:`post`},deepSortsList:{handler(e){e&&e.length>0&&this.$emit(`update:deepSortsListPreset`,e),this.infiniteScroll&&this.currentVisibleItems>0&&this.$nextTick(()=>{let e=this.currentVisibleItems;this.currentVisibleItems=Math.min(e,this.sortedItems.length)})},deep:!0},deepSortsListPreset:{handler(e){e&&e.length>0&&JSON.stringify(e)!==JSON.stringify(this.deepSortsList)&&(this.deepSortsList=e.map(e=>{let t=this.columns.find(t=>t.id===e.id);return{...e,customSort:t?.customSort||e.customSort||null}}))},deep:!0,immediate:!0},scrollToId:{handler(e){e!=null&&this.scrollToItem(e)}},tdItemsList:{handler(e,t){e!==t&&this.columns.some(e=>e.stickyLeft||e.stickyRight)&&this.$nextTick(()=>{this.debouncedUpdateStickyColumns()})},deep:!0,immediate:!1}},mounted(){if(this.localStorageItemName!==null){Vi(this.localStorageItemName,this.getRefactoColumns(this.copyDefaultColumns())),Hi(this.localStorageItemName,this.maxItemPerPage,`maxItemPerPage`);let e=Ui(this.localStorageItemName);e&&(this.columns=this.getColumnsById(e.columns,this.defaultColumns),this.maxItemsPerPage=e.maxItemPerPage)}if(this.localStorageMaxItemPerPageName!==null){let e=Ui(this.localStorageMaxItemPerPageName);e&&(this.maxItemsPerPage=e)}if(this.dynamicColumns&&(this.columns=this.getColumnsById(this.dynamicColumns,this.defaultColumns)),this.ckSelectedItems&&(this.selectedItems=this.ckSelectedItems),this.infiniteScroll){let e=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+e,this.filtereditems.length)}else this.totalPages=this.newTotalPage(this.filtereditems.length);if(this.initResizeObserver(),!this.deepSorts){let e=this.columns.find(e=>e.isSorted!==null&&e.isSorted!==void 0);e&&(this.sortKey=e.id,this.sortAsc=e.isSorted,this.currentHeaderSort=e)}this.deepSortsListPreset&&this.deepSortsListPreset.length>0&&this.deepSorts&&(this.deepSortsList=this.deepSortsListPreset.map(e=>{let t=this.columns.find(t=>t.id===e.id);return{...e,customSort:t?.customSort||e.customSort||null}})),this.stickyScrollbarHorizontal&&(this.checkTableOverflow(),window.addEventListener(`resize`,this.checkTableOverflow),window.addEventListener(`scroll`,this.handleTableScroll)),this.tableContainer=this.$refs.table?.closest(`.overflow-x-auto`),this.infiniteScroll&&this.$nextTick(()=>{this.$refs.scrollContainer})},beforeUnmount(){this.cleanupResizeObserver(),window.removeEventListener(`resize`,this.checkTableOverflow),window.removeEventListener(`scroll`,this.handleTableScroll),this.scrollTimeout&&=(clearTimeout(this.scrollTimeout),null),this.stickyColumnsUpdateTimeout&&=(clearTimeout(this.stickyColumnsUpdateTimeout),null),this.stickyColumnsAnimationFrame&&=(cancelAnimationFrame(this.stickyColumnsAnimationFrame),null),this.normalizedItemsCache.clear(),this.deepSortCache=null},methods:{moment:r.default,unixToDateString:Di,unixToDateTimeString:Oi,toCurrencyEUR:Ei,formatColumnValue(e,t){let n=e[t.id];if(t.formatter&&typeof t.formatter==`function`)return t.formatter(n,e);if(t.type)switch(t.type){case`unixDate`:return n?Di(n):``;case`unixDateTime`:return n?Oi(n):``;case`currency`:return n==null?``:Ei(n);default:return n}return n},shouldAdjustPage(e){return e.length===0&&this.filtereditems.length>0&&this.currentPage>1&&!this.infiniteScroll},getRefactoColumns(e){return e.map(e=>({id:e.id,show:e.show}))},getColumnsById(e,t){return e.map(e=>({...t.find(t=>t.id===e.id),show:e.show}))},adjustPageAfterSearch(){if(this.filtereditems.length>0&&this.showeditems.length===0){let e=Math.ceil(this.filtereditems.length/this.maxItemsPerPage);e>0&&e!==this.currentPage&&(this.currentPage=e)}else this.filtereditems.length===0&&(this.currentPage=1)},initResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{this.updateStickyColumns()});let e=this.$refs.table;e&&this.resizeObserver.observe(e)},handleTableScroll(){this.tableContainer&&(Math.ceil(window.scrollY+window.innerHeight)>=this.tableContainer.scrollHeight?this.showScrollbar=!1:this.checkTableOverflow())},checkTableOverflow(){this.$nextTick(()=>{let e=document.querySelector(`#${this.tableId}-bottom-scrollbar`);if(this.tableContainer&&e){let t=this.tableContainer.scrollHeight,n=window.innerHeight;this.showScrollbar=t>n,this.showScrollbar&&(document.querySelector(`#${this.tableId}-bottom-scrollbar .scrollbar-content`).style.width=this.tableContainer.scrollWidth+`px`,e.addEventListener(`scroll`,()=>{this.tableContainer.scrollLeft=e.scrollLeft}),this.tableContainer.addEventListener(`scroll`,()=>{e.scrollLeft=this.tableContainer.scrollLeft}))}})},cleanupResizeObserver(){this.resizeObserver&&=(this.resizeObserver.disconnect(),null)},updateStickyColumns(){this.columns.some(e=>e.stickyLeft||e.stickyRight)&&document.getElementById(this.tableId)&&(this.stickyColumnsAnimationFrame&&cancelAnimationFrame(this.stickyColumnsAnimationFrame),this.stickyColumnsAnimationFrame=requestAnimationFrame(()=>{let e=[];this.columns.forEach((t,n)=>{if(!t.stickyLeft&&!t.stickyRight)return;let r=document.getElementById(`${this.tableId}-${t.id}-th-${n}`);if(!r)return;let i=document.querySelectorAll(`#${this.tableId} [data-column-id="${t.id}"]`),a=r.getBoundingClientRect().width,o=0;i.forEach(e=>{let t=e.getBoundingClientRect().width;t>o&&(o=t)}),e.push({column:t,thElement:r,tdElements:i,width:Math.max(o,a)-1})});let t=0,n=0;e.forEach(({column:e,thElement:r,tdElements:i,width:a})=>{if(e.stickyLeft){let e=`${t}px`;r.style.left=e,i.forEach(t=>{t.style.left=e}),t+=a}if(e.stickyRight){let e=`${n}px`;r.style.right=e,i.forEach(t=>{t.style.right=e}),n+=a}}),this.stickyColumnsAnimationFrame=null}))},newTotalPage(e){return Math.ceil(e/this.maxItemsPerPage)},lineStateClass(e){let t=this.lineStatesList.find(t=>t.state===e);return t?t.class:``},checkItem(e){let t=this.selectedItems.indexOf(e);if(t!==-1)this.selectedItems.splice(t,1),this.checkAllCheckBox=!1;else if(this.selectedItems.push(e),!this.checkAllCheckBox){let e=this.showeditems.map(e=>e.id);this.checkAllCheckBox=e.every(e=>this.selectedItems.includes(e))}this.$emit(`update:ckSelectedItems`,this.selectedItems)},toggleAllCheckBox(){let e=(this.infiniteScroll?this.sortedItems:this.showeditems).map(e=>e.id);if(this.checkAllCheckBox){let t=new Set(e);this.selectedItems=this.selectedItems.filter(e=>!t.has(e)),this.checkAllCheckBox=!1}else{let t=new Set([...this.selectedItems,...e]);this.selectedItems=Array.from(t),this.checkAllCheckBox=!0}this.$emit(`update:ckSelectedItems`,this.selectedItems)},updateCurrentSort(e){this.currentHeaderSort&&(this.currentHeaderSort.isSorted=null);let t=this.infiniteScroll?this.currentVisibleItems:null;this.updateSortitems(e.id),e.isSorted=this.sortAsc,this.currentHeaderSort=e,this.infiniteScroll&&t&&this.$nextTick(()=>{this.currentVisibleItems=Math.min(t,this.sortedItems.length)})},checkMove(e){let t=this.columns.reduce((e,t,n)=>(t.fixed&&e.push(n),e),[]);return!t.includes(e.draggedContext.index)&&!t.includes(e.relatedContext.index)},filterBy(e,t){if(!t)return!0;let n=`${e.id}_${t}`;if(this.normalizedItemsCache.has(n))return this.normalizedItemsCache.get(n);let r=this.visibleColumns.filter(e=>!e.noSearch).some(n=>{if(n.customSearch&&typeof n.customSearch==`function`)return n.customSearch(e,t);let r=e[n.id];if(n.type||n.formatter){let r=this.formatColumnValue(e,n);if(r&&Ti(r.toString()).includes(t))return!0}return r&&Ti(r.toString()).includes(t)});return this.normalizedItemsCache.size>1e3&&this.normalizedItemsCache.clear(),this.normalizedItemsCache.set(n,r),r},getDefaultMaxItemPerPage(){return this.maxItemPerPage},copyDefaultColumns(){return this.defaultColumns.map(e=>{let t={};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];typeof r==`function`||r==null?t[n]=r:Array.isArray(r)?t[n]=[...r]:typeof r==`object`?t[n]={...r}:t[n]=r}return t})},getTableContent(){return this.items},getColumns(){return this.columns},getNbLines(){return this.showeditems.length},updateSortitems(e){this.items&&(this.sortKey===e?this.sortAsc=!this.sortAsc:(this.sortAsc=!0,this.sortKey=e))},selectSubject(e){this.$emit(`changeSubject`,e)},saveTablePreferences(){this.localStorageItemName!==null&&Wi(this.localStorageItemName,this.getRefactoColumns(this.columns),`columns`),this.dynamicColumns&&this.$emit(`update:dynamicColumns`,this.getRefactoColumns(this.columns)),this.headerEditMode=!1,this.currentPage=this.previousCurrentPage,this.$emit(`postSaveColumns`)},resetTablePreferences(){this.columns=this.copyDefaultColumns(),this.localStorageItemName!==null&&Vi(this.localStorageItemName,this.getRefactoColumns(this.columns)),this.dynamicColumns&&this.$emit(`update:dynamicColumns`,this.getRefactoColumns(this.columns)),this.currentPage=this.previousCurrentPage,this.$emit(`postResetColumns`)},editTablePreferences(){this.headerEditMode=!0,this.previousCurrentPage=this.currentPage,this.currentPage=1},addDeepSort(e){let t=this.infiniteScroll?this.currentVisibleItems:null;this.deepSortCache=null,this.deepSortCacheKey=``,this.deepSortsList.push({id:e.id,libelle:e.libelle,asc:!0,customSort:e.customSort||null}),this.infiniteScroll&&t&&this.$nextTick(()=>{this.currentVisibleItems=Math.min(t,this.sortedItems.length)})},toggleDeepSortDirection(e){this.deepSortCache=null,this.deepSortCacheKey=``,e.asc=!e.asc},deepSortsColumnList(e,t){if(!e||e.length===0)return t;let n=JSON.stringify(e.map(e=>({id:e.id,asc:e.asc})));return this.deepSortCache&&this.deepSortCacheKey===n?t.sort((t,n)=>{for(let r of e){let e;if(r.customSort)e=r.customSort(t,n,r.asc);else{let i=t[r.id],a=n[r.id];e=Ri(i,a,r.asc)}if(e!==0)return e}return 0}):(this.deepSortCacheKey=n,this.deepSortCache=!0,t.sort((t,n)=>{for(let r of e){let e;if(r.customSort)e=r.customSort(t,n,r.asc);else{let i=t[r.id],a=n[r.id];e=Ri(i,a,r.asc)}if(e!==0)return e}return 0}))},handleScrollEvent(e){if(this.infiniteScroll){if(this.scrollTimeout)return;this.scrollTimeout=setTimeout(()=>{this.handleInfiniteScroll(e),this.scrollTimeout=null},50)}},handleInfiniteScroll(e){let{target:t}=e;if(t.scrollTop+t.clientHeight>=t.scrollHeight-10&&this.currentVisibleItems<this.sortedItems.length){let e=this.infiniteScrollIncrement||this.maxItemPerPage,t=Math.min(this.currentVisibleItems+e,this.sortedItems.length);t>this.currentVisibleItems&&(this.currentVisibleItems=t)}},handleContextMenu(e,t){let n=null,r=e.target.closest(`td`);if(r){let e=r.getAttribute(`data-column-id`);e&&(n=this.columns.find(t=>t.id===e))}this.$emit(`contextmenu`,{event:e,item:t,column:n})},refreshStickyColumns(){this.columns.some(e=>e.stickyLeft||e.stickyRight)&&this.$nextTick(()=>{this.updateStickyColumns()})},debouncedUpdateStickyColumns(){this.stickyColumnsUpdateTimeout&&clearTimeout(this.stickyColumnsUpdateTimeout),this.stickyColumnsUpdateTimeout=setTimeout(()=>{this.updateStickyColumns(),this.stickyColumnsUpdateTimeout=null},50)},scrollToItem(e){let t=this.sortedItems.findIndex(t=>t.id===e);if(t===-1)return;let n=this.sortedItems[t],r=`${this.tableId}-row-${n.id}`;this.$emit(`scrolled`,{value:e,index:t,id:n.id});let i=()=>{this.scrollHighlightId=n.id,clearTimeout(this.$_highlightTimer),this.$_highlightTimer=setTimeout(()=>{this.scrollHighlightId=null},1800)},a=()=>{this.$nextTick(()=>{let e=this.$refs.table?.querySelector(`[id="${r}"]`)||document.getElementById(r);if(e)if(i(),this.infiniteScroll&&this.$refs.scrollContainer){let t=this.$refs.scrollContainer,n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.top-r.top-(r.height-n.height)/2;t.scrollBy({top:i,behavior:`smooth`})}else e.scrollIntoView({behavior:`smooth`,block:`center`})})};if(this.infiniteScroll)this.currentVisibleItems<=t&&(this.currentVisibleItems=t+1),a();else if(this.maxItemsPerPage!==-1){let e=Math.ceil((t+1)/this.maxItemsPerPage);this.currentPage!==e&&(this.currentPage=e),a()}else a()}}},qi={key:0,class:`mb-3 text-center`},Ji={key:1,class:`row mb-1 mx-auto`},Yi={key:0,class:`btn btn-sm btn-outline-secondary cursor-default align-self-center bg-transparent text-secondary border-secondary d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-1`,style:{height:`20px`}},Xi={class:`text-nowrap`},Zi={class:`d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-1 mx-2 user-select-none`},Qi={key:0,class:`text-nowrap`,style:{height:`20px`}},$i=[`value`],ea={key:1,class:`d-flex align-items-center text-nowrap`},ta={key:0,class:`d-flex ms-2`},na=[`title`],ra={class:`badge bg-info fs-6`},ia={class:`row mx-auto mb-3 rounded-0`},aa=[`id`],oa=[`id`],sa=[`id`,`onDragstart`,`onDragend`],ca={class:`d-flex flex-column align-items-center`},la={key:0,class:`mx-auto my-auto mb-2 mt-2 hoverable d-inline-block`},ua={class:`d-inline-flex text-nowrap`},Z={key:0,class:`ms-2 float-end`},da={key:1,class:`ms-2`},fa={key:1},pa=[`id`],Q=[`id`],ma={class:`d-inline-flex text-nowrap`},ha={key:1,class:`ms-2 hoverable`},ga={key:0},_a=[`colspan`],va=[`id`],ya=[`id`,`onClick`,`onContextmenu`],ba=[`data-column-id`,`onClick`],xa=[`id`,`value`],Sa=[`data-column-id`],Ca={key:3,class:`row ms-auto mb-2`},wa={class:`m-0 pagination pagination-sm`},Ta={class:`page-item hoverable`},Ea={class:`page-item hoverable`},Da=[`onClick`],Oa={class:`page-item hoverable`},ka={class:`page-item hoverable`},Aa=[`id`];function ja(e,n,r,i,a,o){let s=(0,t.resolveComponent)(`font-awesome-icon`),c=(0,t.resolveComponent)(`vue-draggable-next`);return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[r.lineEditMode?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qi,[(0,t.createElementVNode)(`button`,{type:`button`,class:`btn btn-success rounded-5 m-0 p-0`,style:{height:`45px`,width:`45px`},onClick:n[0]||=t=>e.$emit(`lineEditModeAddNewLine`)},[(0,t.createVNode)(s,{icon:`fa-solid fa-plus`,size:`xl`})])])):(0,t.createCommentVNode)(``,!0),r.showLineNumber||r.showModifyColumnsBtn||r.showMaxItemPerPageBtn||r.deepSorts?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ji,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`d-flex justify-content-start p-0`,r.deepSorts&&a.deepSortsList.length>0&&r.showModifyColumnsBtn?`col-12 col-sm-8 col-lg-9 col-xl-10`:`col`])},[r.showLineNumber?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Yi,[(0,t.createElementVNode)(`b`,Xi,(0,t.toDisplayString)(o.showItemsLinesNumber+` / `+o.filtereditems.length),1),n[20]||=(0,t.createElementVNode)(`span`,{class:`ms-1`},`lignes`,-1)])):(0,t.createCommentVNode)(``,!0),r.deepSorts&&a.deepSortsList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)([`d-flex align-items-center flex-wrap`,{"ms-4":r.showLineNumber}])},[n[21]||=(0,t.createElementVNode)(`span`,{class:`me-1 text-secondary h-auto fs-7 mb-1 mb-lg-0`},`Tri :`,-1),(0,t.createVNode)(c,{modelValue:a.deepSortsList,"onUpdate:modelValue":n[1]||=e=>a.deepSortsList=e,tag:`div`,group:`deepSorts`,class:`d-flex flex-wrap`,"ghost-class":`deep-filter-ghost-class`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.deepSortsList,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:`d-flex align-items-center border border-secondary hoverable-grab text-secondary rounded-1 fs-7 px-2 py-0 me-2 mb-1 mb-lg-0`,style:{height:`20px`}},[(0,t.createVNode)(s,{class:`hoverable`,icon:`fa-solid fa-xmark`,onClick:e=>a.deepSortsList.splice(n,1)},null,8,[`onClick`]),(0,t.createElementVNode)(`div`,Zi,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.libelle),1)]),(0,t.createVNode)(s,{class:`hoverable`,icon:e.asc?`fa-solid fa-arrow-down-short-wide`:`fa-solid fa-arrow-down-wide-short`,onClick:t=>o.toggleDeepSortDirection(e)},null,8,[`icon`,`onClick`])]))),128))]),_:1},8,[`modelValue`])],2)):(0,t.createCommentVNode)(``,!0)],2),r.showMaxItemPerPageBtn||r.showModifyColumnsBtn?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([`d-flex align-items-center justify-content-end p-0`,r.deepSorts&&a.deepSortsList.length>0?`col-12 col-sm-4 col-lg-3 col-xl-2 mt-1 mt-sm-0`:`col`])},[r.showMaxItemPerPageBtn&&!a.headerEditMode?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Qi,[r.maxItemPerPageList.length>0?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`select`,{key:0,"onUpdate:modelValue":n[2]||=e=>a.maxItemsPerPage=e,class:`form-select d-flex justify-content-center align-items-center ms-auto py-0 rounded-3 select-max-item-per-page`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.maxItemPerPageList,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:e.value,value:e.value},(0,t.toDisplayString)(e.text),9,$i))),128))],512)),[[t.vModelSelect,a.maxItemsPerPage]]):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0),r.showModifyColumnsBtn?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ea,[a.headerEditMode?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ta,[(0,t.createElementVNode)(`button`,{id:`btn-reset-table`,class:`btn btn-sm btn-outline-danger d-flex justify-content-center align-items-center ms-auto me-2 px-2 py-0 rounded-3`,type:`button`,onClick:n[3]||=(...e)=>o.resetTablePreferences&&o.resetTablePreferences(...e)},` Réinitialiser le tableau `),(0,t.createElementVNode)(`button`,{id:`btn-save-table`,class:`btn btn-sm btn-success d-flex justify-content-center align-items-center px-2 py-0 rounded-3`,type:`button`,onClick:n[4]||=(...e)=>o.saveTablePreferences&&o.saveTablePreferences(...e)},` Sauvegarder `)])):((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,id:`btn-edit-table`,class:`btn btn-sm btn-outline-secondary d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-3 ms-2`,style:{height:`20px`},type:`button`,onClick:n[5]||=(...e)=>o.editTablePreferences&&o.editTablePreferences(...e)},` Modifier colonnes `))])):(0,t.createCommentVNode)(``,!0)],2)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0),a.headerEditMode?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,title:`Déplacez les colonnes pour les réorganiser et utilisez l'icône œil pour les afficher ou les masquer. Seules ${r.editModeMaxRows} lignes sont affichées pour faciliter les modifications.`,class:`d-flex justify-content-center align-items-center mb-3`},[(0,t.createElementVNode)(`div`,ra,[(0,t.createVNode)(s,{icon:`fa-solid fa-circle-info`,class:`me-2`}),n[22]||=(0,t.createTextVNode)(` Vous êtes entrain d'éditer l'affichage du tableau `,-1)])],8,na)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,ia,[(0,t.createElementVNode)(`div`,{ref:`scrollContainer`,class:(0,t.normalizeClass)([`col-12 p-0 overflow-x-auto mb-2`,{border:r.infiniteScroll,"infinite-scroll-container":r.infiniteScroll}]),style:(0,t.normalizeStyle)(r.infiniteScroll?{maxHeight:o.tableMaxHeight,overflowY:`auto`,borderRadius:`10px`}:{borderRadius:`10px !important`}),onScroll:n[15]||=(...e)=>o.handleScrollEvent&&o.handleScrollEvent(...e)},[((0,t.openBlock)(),(0,t.createElementBlock)(`table`,{id:r.tableId,ref:`table`,key:a.forceTableUpdateIndex,class:(0,t.normalizeClass)([`table table-striped table-responsive align-middle border-1 border-top border-bottom position-relative m-0`,[r.border?`table-bordered`:`table-borderless`,r.tableSm?`table-sm`:``,r.clickable&&!a.headerEditMode?`table-hover cursor-pointer`:``]]),style:(0,t.normalizeStyle)([{"border-collapse":`separate`,"border-spacing":`0`},{borderLeft:r.border?``:`1px solid #ddd`,borderRight:r.border?``:`1px solid #ddd`}])},[(0,t.createElementVNode)(`thead`,null,[a.headerEditMode?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,modelValue:a.columns,"onUpdate:modelValue":n[9]||=e=>a.columns=e,"ghost-class":r.ghostClass,"drag-class":r.ghostClass,tag:`tr`,move:o.checkMove,group:`columns`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.columns,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i.id},[i.id===`checkBox`?((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{key:0,id:`${r.tableId}-${i.id}-th-${c}`,class:(0,t.normalizeClass)([`text-center`,[r.headerBgColor,i.stickyLeft?`sticky-column-left`:``,i.stickyRight?`sticky-column-right`:``,r.infiniteScroll?`sticky-top`:``]]),scope:`col`,onClick:n[8]||=(0,t.withModifiers)((...e)=>o.toggleAllCheckBox&&o.toggleAllCheckBox(...e),[`stop`])},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{id:`checkBoxSelectAll`,"onUpdate:modelValue":n[6]||=e=>a.checkAllCheckBox=e,class:`form-check-input`,type:`checkbox`,onClick:n[7]||=(0,t.withModifiers)((...e)=>o.toggleAllCheckBox&&o.toggleAllCheckBox(...e),[`stop`])},null,512),[[t.vModelCheckbox,a.checkAllCheckBox]])],10,oa)):(i.show||a.headerEditMode)&&(!i.onlyOnEditMode||r.lineEditMode)?((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{key:1,id:`${r.tableId}-${i.id}-th-${c}`,scope:`col`,class:(0,t.normalizeClass)([`text-center`,[i.isDragging?`hoverable-grabbing`:r.headerBgColor+` hoverable-grab`,i.stickyLeft?`sticky-column-left`:``,i.stickyRight?`sticky-column-right`:``,r.headerTextColor,r.infiniteScroll?`sticky-top`:``,{"table-danger":!i.show}]]),onDragstart:e=>i.isDragging=!0,onDragend:e=>i.isDragging=!1},[(0,t.createElementVNode)(`div`,ca,[a.headerEditMode&&!i.keepShow?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,la,[i.show?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,icon:`fa-solid fa-eye`,class:`fa-lg`,onClick:e=>i.show=!1},null,8,[`onClick`])):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,icon:`fa-solid fa-eye-slash`,class:`fa-lg`,onClick:e=>i.show=!0},null,8,[`onClick`]))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,ua,[(0,t.renderSlot)(e.$slots,`tableHeaderTh`,{header:i},void 0,!0),i.isSortable&&!r.deepSorts?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Z,[(0,t.createVNode)(s,{icon:a.sortKey!==i.id||a.sortKey===i.id&&!a.sortAsc?`fa-solid fa-arrow-down-wide-short`:`fa-solid fa-arrow-down-short-wide`,class:`hoverable`,onClick:e=>o.updateCurrentSort(i)},null,8,[`icon`,`onClick`])])):r.deepSorts&&!a.deepSortsList.some(e=>e.id===i.id)&&i.isSortable?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,da,[(0,t.createVNode)(s,{icon:`fa-solid fa-filter`,onClick:e=>o.addDeepSort(i)},null,8,[`onClick`])])):(0,t.createCommentVNode)(``,!0)])])],42,sa)):(0,t.createCommentVNode)(``,!0)],64))),128))]),_:3},8,[`modelValue`,`ghost-class`,`drag-class`,`move`])):((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,fa,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.columns,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i.id},[i.id===`checkBox`?((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{key:0,id:`${r.tableId}-${i.id}-th-${c}`,class:(0,t.normalizeClass)([`text-center`,[r.headerBgColor,i.stickyLeft?`sticky-column-left`:``,i.stickyRight?`sticky-column-right`:``,r.infiniteScroll?`sticky-top`:``]]),scope:`col`,onClick:n[12]||=(0,t.withModifiers)((...e)=>o.toggleAllCheckBox&&o.toggleAllCheckBox(...e),[`stop`])},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{id:`checkBoxSelectAll`,"onUpdate:modelValue":n[10]||=e=>a.checkAllCheckBox=e,class:`form-check-input`,type:`checkbox`,onClick:n[11]||=(0,t.withModifiers)((...e)=>o.toggleAllCheckBox&&o.toggleAllCheckBox(...e),[`stop`])},null,512),[[t.vModelCheckbox,a.checkAllCheckBox]])],10,pa)):i.show&&(!i.onlyOnEditMode||r.lineEditMode)?((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{key:1,id:`${r.tableId}-${i.id}-th-${c}`,scope:`col`,class:(0,t.normalizeClass)([`text-center`,[i.isDragging?``:r.headerBgColor,i.stickyLeft?`sticky-column-left`:``,i.stickyRight?`sticky-column-right`:``,r.headerTextColor,r.infiniteScroll?`sticky-top`:``]])},[(0,t.createElementVNode)(`div`,ma,[(0,t.renderSlot)(e.$slots,`tableHeaderTh`,{header:i},void 0,!0),i.isSortable&&!r.deepSorts?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([`ms-2 float-end hoverable`,{"opacity-50":a.sortKey!==i.id}])},[(0,t.createVNode)(s,{icon:a.sortKey!==i.id||a.sortKey===i.id&&!a.sortAsc?`fa-solid fa-arrow-down-wide-short`:`fa-solid fa-arrow-down-short-wide`,onClick:e=>o.updateCurrentSort(i)},null,8,[`icon`,`onClick`])],2)):r.deepSorts&&!a.deepSortsList.some(e=>e.id===i.id)&&i.isSortable?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ha,[(0,t.createVNode)(s,{icon:`fa-solid fa-filter`,onClick:e=>o.addDeepSort(i)},null,8,[`onClick`])])):(0,t.createCommentVNode)(``,!0)])],10,Q)):(0,t.createCommentVNode)(``,!0)],64))),128))]))]),(0,t.createElementVNode)(`tbody`,null,[o.showeditems?.length===0?((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,ga,[(0,t.createElementVNode)(`th`,{colspan:a.columns.length,class:`text-center`,style:{"border-top-left-radius":`0px !important`,"border-top-right-radius":`0px !important`}},[(0,t.createElementVNode)(`span`,{id:`${r.tableId}-no-value`,class:`text-danger fs-5`},(0,t.toDisplayString)(r.noValueText),9,va)],8,_a)])):((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(o.showeditems,(i,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,{id:`${r.tableId}-row-${i.id}`,key:i.id,class:(0,t.normalizeClass)([{hoverable:r.clickable&&!a.headerEditMode,"hoverable-no-drop":r.clickable&&a.headerEditMode,"scroll-to-highlight":i.id===a.scrollHighlightId},r.trFontSize]),style:(0,t.normalizeStyle)({height:r.trHeightPx+`px`}),onClick:e=>r.clickable&&!a.headerEditMode?o.selectSubject(i):null,onContextmenu:e=>o.handleContextMenu(e,i)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.columns,c=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:c.id},[c.id===`checkBox`?((0,t.openBlock)(),(0,t.createElementBlock)(`td`,{key:0,"data-column-id":c.id,class:(0,t.normalizeClass)([`text-center`,[r.tdClass,i.lineState?o.lineStateClass(i.lineState):``,c.stickyLeft?`sticky-column-left`:``,c.stickyRight?`sticky-column-right`:``]]),onClick:(0,t.withModifiers)(e=>o.checkItem(i.id),[`stop`])},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{id:`${r.tableId}-checkbox-${s}`,"onUpdate:modelValue":n[13]||=e=>a.selectedItems=e,type:`checkbox`,class:`form-check-input hoverable`,value:i.id,onClick:n[14]||=(0,t.withModifiers)(()=>{},[`stop`])},null,8,xa),[[t.vModelCheckbox,a.selectedItems]])],10,ba)):(c.show||a.headerEditMode)&&(!c.onlyOnEditMode||r.lineEditMode)?((0,t.openBlock)(),(0,t.createElementBlock)(`td`,{key:1,"data-column-id":c.id,class:(0,t.normalizeClass)([[r.tdClass,c.show?``:`table-danger`,!r.deepSorts&&c.isSorted!==null&&c.isSorted!==void 0?`bg-gray-200`:``,i.lineState?o.lineStateClass(i.lineState):``,c.stickyLeft?`sticky-column-left`:``,c.stickyRight?`sticky-column-right`:``],`text-center text-nowrap`])},[(0,t.renderSlot)(e.$slots,`tableBodyTd`,{header:c,item:i,formattedValue:o.formatColumnValue(i,c)},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o.formatColumnValue(i,c)),1)],!0)],10,Sa)):(0,t.createCommentVNode)(``,!0)],64))),128))],46,ya))),128))])],14,aa))],38)]),!r.infiniteScroll&&a.totalPages&&a.totalPages>1||r.stickyScrollbarHorizontal?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ca,[!r.infiniteScroll&&a.totalPages&&a.totalPages>1?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([`col p-0 me-3 d-flex`,{"justify-content-center":r.paginationPosition===`center`,"justify-content-end":r.paginationPosition===`right`,"justify-content-start":r.paginationPosition===`left`}])},[(0,t.createElementVNode)(`ul`,wa,[(0,t.createElementVNode)(`li`,Ta,[(0,t.createElementVNode)(`a`,{class:(0,t.normalizeClass)([`page-link`,{disabled:a.currentPage===1}]),onClick:n[16]||=e=>a.currentPage=1},` « `,2)]),(0,t.createElementVNode)(`li`,Ea,[(0,t.createElementVNode)(`a`,{class:(0,t.normalizeClass)([`page-link`,{disabled:a.currentPage===1}]),onClick:n[17]||=e=>--a.currentPage},` < `,2)]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.currentDisplayPagination,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:e,class:(0,t.normalizeClass)([`page-item hoverable`,{active:a.currentPage===e}])},[(0,t.createElementVNode)(`a`,{class:`page-link`,onClick:t=>a.currentPage=e},(0,t.toDisplayString)(e),9,Da)],2))),128)),(0,t.createElementVNode)(`li`,Oa,[(0,t.createElementVNode)(`a`,{class:(0,t.normalizeClass)([`page-link`,{disabled:a.currentPage===a.totalPages}]),onClick:n[18]||=e=>a.currentPage+=1},` > `,2)]),(0,t.createElementVNode)(`li`,ka,[(0,t.createElementVNode)(`a`,{class:(0,t.normalizeClass)([`page-link`,{disabled:a.currentPage===a.totalPages}]),onClick:n[19]||=e=>a.currentPage=a.totalPages},` » `,2)])])],2)):(0,t.createCommentVNode)(``,!0),r.stickyScrollbarHorizontal?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,id:`${r.tableId}-bottom-scrollbar`,class:(0,t.normalizeClass)([`bottom-scrollbar`,{visible:a.showScrollbar}])},[...n[23]||=[(0,t.createElementVNode)(`div`,{class:`scrollbar-content`},null,-1)]],10,Aa)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0)],64)}var Ma=Gi(Ki,[[`render`,ja],[`__scopeId`,`data-v-cbeabcc6`]]),Na=Ma;e.AmsomTableDraggable=Ma,e.default=Na});
561
+ `+Error().stack),r=!1}return t.apply(this,arguments)},t)}var y={};function se(e,t){n.deprecationHandler!=null&&n.deprecationHandler(e,t),y[e]||(oe(t),y[e]=!0)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;function b(e){return typeof Function<`u`&&e instanceof Function||Object.prototype.toString.call(e)===`[object Function]`}function ce(e){var t,n;for(n in e)o(e,n)&&(t=e[n],b(t)?this[n]=t:this[`_`+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+`|\\d{1,2}`)}function le(e,t){var n=f({},e),r;for(r in t)o(t,r)&&(a(e[r])&&a(t[r])?(n[r]={},f(n[r],e[r]),f(n[r],t[r])):t[r]==null?delete n[r]:n[r]=t[r]);for(r in e)o(e,r)&&!o(t,r)&&a(e[r])&&(n[r]=f({},n[r]));return n}function ue(e){e!=null&&this.set(e)}var de=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n},fe={sameDay:`[Today at] LT`,nextDay:`[Tomorrow at] LT`,nextWeek:`dddd [at] LT`,lastDay:`[Yesterday at] LT`,lastWeek:`[Last] dddd [at] LT`,sameElse:`L`};function pe(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return b(r)?r.call(t,n):r}function x(e,t,n){var r=``+Math.abs(e),i=t-r.length;return(e>=0?n?`+`:``:`-`)+(10**Math.max(0,i)).toString().substr(1)+r}var S=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,me=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,he={},ge={};function C(e,t,n,r){var i=r;typeof r==`string`&&(i=function(){return this[r]()}),e&&(ge[e]=i),t&&(ge[t[0]]=function(){return x(i.apply(this,arguments),t[1],t[2])}),n&&(ge[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function _e(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,``):e.replace(/\\/g,``)}function ve(e){var t=e.match(S),n,r;for(n=0,r=t.length;n<r;n++)ge[t[n]]?t[n]=ge[t[n]]:t[n]=_e(t[n]);return function(n){var i=``,a;for(a=0;a<r;a++)i+=b(t[a])?t[a].call(n,e):t[a];return i}}function ye(e,t){return e.isValid()?(t=be(t,e.localeData()),he[t]=he[t]||ve(t),he[t](e)):e.localeData().invalidDate()}function be(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(me.lastIndex=0;n>=0&&me.test(e);)e=e.replace(me,r),me.lastIndex=0,--n;return e}var xe={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};function Se(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(S).map(function(e){return e===`MMMM`||e===`MM`||e===`DD`||e===`dddd`?e.slice(1):e}).join(``),this._longDateFormat[e])}var Ce=`Invalid date`;function we(){return this._invalidDate}var Te=`%d`,Ee=/\d{1,2}/;function De(e){return this._ordinal.replace(`%d`,e)}var Oe={future:`in %s`,past:`%s ago`,s:`a few seconds`,ss:`%d seconds`,m:`a minute`,mm:`%d minutes`,h:`an hour`,hh:`%d hours`,d:`a day`,dd:`%d days`,w:`a week`,ww:`%d weeks`,M:`a month`,MM:`%d months`,y:`a year`,yy:`%d years`};function ke(e,t,n,r){var i=this._relativeTime[n];return b(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Ae(e,t){var n=this._relativeTime[e>0?`future`:`past`];return b(n)?n(t):n.replace(/%s/i,t)}var je={D:`date`,dates:`date`,date:`date`,d:`day`,days:`day`,day:`day`,e:`weekday`,weekdays:`weekday`,weekday:`weekday`,E:`isoWeekday`,isoweekdays:`isoWeekday`,isoweekday:`isoWeekday`,DDD:`dayOfYear`,dayofyears:`dayOfYear`,dayofyear:`dayOfYear`,h:`hour`,hours:`hour`,hour:`hour`,ms:`millisecond`,milliseconds:`millisecond`,millisecond:`millisecond`,m:`minute`,minutes:`minute`,minute:`minute`,M:`month`,months:`month`,month:`month`,Q:`quarter`,quarters:`quarter`,quarter:`quarter`,s:`second`,seconds:`second`,second:`second`,gg:`weekYear`,weekyears:`weekYear`,weekyear:`weekYear`,GG:`isoWeekYear`,isoweekyears:`isoWeekYear`,isoweekyear:`isoWeekYear`,w:`week`,weeks:`week`,week:`week`,W:`isoWeek`,isoweeks:`isoWeek`,isoweek:`isoWeek`,y:`year`,years:`year`,year:`year`};function w(e){return typeof e==`string`?je[e]||je[e.toLowerCase()]:void 0}function Me(e){var t={},n,r;for(r in e)o(e,r)&&(n=w(r),n&&(t[n]=e[r]));return t}var Ne={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Pe(e){var t=[],n;for(n in e)o(e,n)&&t.push({unit:n,priority:Ne[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}var Fe=/\d/,T=/\d\d/,Ie=/\d{3}/,Le=/\d{4}/,E=/[+-]?\d{6}/,D=/\d\d?/,Re=/\d\d\d\d?/,ze=/\d\d\d\d\d\d?/,O=/\d{1,3}/,Be=/\d{1,4}/,Ve=/[+-]?\d{1,6}/,He=/\d+/,Ue=/[+-]?\d+/,We=/Z|[+-]\d\d:?\d\d/gi,Ge=/Z|[+-]\d\d(?::?\d\d)?/gi,Ke=/[+-]?\d+(\.\d{1,3})?/,qe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Je=/^[1-9]\d?/,Ye=/^([1-9]\d|\d)/,Xe={};function k(e,t,n){Xe[e]=b(t)?t:function(e,r){return e&&n?n:t}}function Ze(e,t){return o(Xe,e)?Xe[e](t._strict,t._locale):new RegExp(Qe(e))}function Qe(e){return A(e.replace(`\\`,``).replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function A(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,`\\$&`)}function j(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function M(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=j(t)),n}var $e={};function N(e,t){var n,r=t,i;for(typeof e==`string`&&(e=[e]),l(t)&&(r=function(e,n){n[t]=M(e)}),i=e.length,n=0;n<i;n++)$e[e[n]]=r}function et(e,t){N(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function tt(e,t,n){t!=null&&o($e,e)&&$e[e](t,n._a,n,e)}function nt(e){return e%4==0&&e%100!=0||e%400==0}var P=0,rt=1,F=2,I=3,L=4,R=5,z=6,it=7,at=8;C(`Y`,0,0,function(){var e=this.year();return e<=9999?x(e,4):`+`+e}),C(0,[`YY`,2],0,function(){return this.year()%100}),C(0,[`YYYY`,4],0,`year`),C(0,[`YYYYY`,5],0,`year`),C(0,[`YYYYYY`,6,!0],0,`year`),k(`Y`,Ue),k(`YY`,D,T),k(`YYYY`,Be,Le),k(`YYYYY`,Ve,E),k(`YYYYYY`,Ve,E),N([`YYYYY`,`YYYYYY`],P),N(`YYYY`,function(e,t){t[P]=e.length===2?n.parseTwoDigitYear(e):M(e)}),N(`YY`,function(e,t){t[P]=n.parseTwoDigitYear(e)}),N(`Y`,function(e,t){t[P]=parseInt(e,10)});function B(e){return nt(e)?366:365}n.parseTwoDigitYear=function(e){return M(e)+(M(e)>68?1900:2e3)};var ot=ct(`FullYear`,!0);function st(){return nt(this.year())}function ct(e,t){return function(r){return r==null?lt(this,e):(ut(this,e,r),n.updateOffset(this,t),this)}}function lt(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case`Milliseconds`:return r?n.getUTCMilliseconds():n.getMilliseconds();case`Seconds`:return r?n.getUTCSeconds():n.getSeconds();case`Minutes`:return r?n.getUTCMinutes():n.getMinutes();case`Hours`:return r?n.getUTCHours():n.getHours();case`Date`:return r?n.getUTCDate():n.getDate();case`Day`:return r?n.getUTCDay():n.getDay();case`Month`:return r?n.getUTCMonth():n.getMonth();case`FullYear`:return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function ut(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case`Milliseconds`:i?r.setUTCMilliseconds(n):r.setMilliseconds(n);return;case`Seconds`:i?r.setUTCSeconds(n):r.setSeconds(n);return;case`Minutes`:i?r.setUTCMinutes(n):r.setMinutes(n);return;case`Hours`:i?r.setUTCHours(n):r.setHours(n);return;case`Date`:i?r.setUTCDate(n):r.setDate(n);return;case`FullYear`:break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!nt(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function dt(e){return e=w(e),b(this[e])?this[e]():this}function ft(e,t){if(typeof e==`object`){e=Me(e);var n=Pe(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=w(e),b(this[e]))return this[e](t);return this}function pt(e,t){return(e%t+t)%t}var V=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function mt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=pt(t,12);return e+=(t-n)/12,n===1?nt(e)?29:28:31-n%7%2}C(`M`,[`MM`,2],`Mo`,function(){return this.month()+1}),C(`MMM`,0,0,function(e){return this.localeData().monthsShort(this,e)}),C(`MMMM`,0,0,function(e){return this.localeData().months(this,e)}),k(`M`,D,Je),k(`MM`,D,T),k(`MMM`,function(e,t){return t.monthsShortRegex(e)}),k(`MMMM`,function(e,t){return t.monthsRegex(e)}),N([`M`,`MM`],function(e,t){t[rt]=M(e)-1}),N([`MMM`,`MMMM`],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i==null?m(n).invalidMonth=e:t[rt]=i});var ht=`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),gt=`Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec`.split(`_`),_t=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,vt=qe,yt=qe;function bt(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||_t).test(t)?`format`:`standalone`][e.month()]:i(this._months)?this._months:this._months.standalone}function xt(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[_t.test(t)?`format`:`standalone`][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function H(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,``).toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,``).toLocaleLowerCase();return n?t===`MMM`?(i=V.call(this._shortMonthsParse,o),i===-1?null:i):(i=V.call(this._longMonthsParse,o),i===-1?null:i):t===`MMM`?(i=V.call(this._shortMonthsParse,o),i===-1?(i=V.call(this._longMonthsParse,o),i===-1?null:i):i):(i=V.call(this._longMonthsParse,o),i===-1?(i=V.call(this._shortMonthsParse,o),i===-1?null:i):i)}function St(e,t,n){var r,i,a;if(this._monthsParseExact)return H.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=RegExp(`^`+this.months(i,``).replace(`.`,``)+`$`,`i`),this._shortMonthsParse[r]=RegExp(`^`+this.monthsShort(i,``).replace(`.`,``)+`$`,`i`)),!n&&!this._monthsParse[r]&&(a=`^`+this.months(i,``)+`|^`+this.monthsShort(i,``),this._monthsParse[r]=new RegExp(a.replace(`.`,``),`i`)),n&&t===`MMMM`&&this._longMonthsParse[r].test(e)||n&&t===`MMM`&&this._shortMonthsParse[r].test(e)||!n&&this._monthsParse[r].test(e))return r}function Ct(e,t){if(!e.isValid())return e;if(typeof t==`string`){if(/^\d+$/.test(t))t=M(t);else if(t=e.localeData().monthsParse(t),!l(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,mt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function wt(e){return e==null?lt(this,`Month`):(Ct(this,e),n.updateOffset(this,!0),this)}function Tt(){return mt(this.year(),this.month())}function Et(e){return this._monthsParseExact?(o(this,`_monthsRegex`)||Ot.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,`_monthsShortRegex`)||(this._monthsShortRegex=vt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Dt(e){return this._monthsParseExact?(o(this,`_monthsRegex`)||Ot.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,`_monthsRegex`)||(this._monthsRegex=yt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ot(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i,a,o,s;for(i=0;i<12;i++)a=p([2e3,i]),o=A(this.monthsShort(a,``)),s=A(this.months(a,``)),t.push(o),n.push(s),r.push(s),r.push(o);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`),this._monthsShortStrictRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`)}function kt(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function At(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function jt(e,t,n){var r=7+t-n;return-((7+At(e,0,r).getUTCDay()-t)%7)+r-1}function Mt(e,t,n,r,i){var a=(7+n-r)%7,o=jt(e,r,i),s=1+7*(t-1)+a+o,c,l;return s<=0?(c=e-1,l=B(c)+s):s>B(e)?(c=e+1,l=s-B(e)):(c=e,l=s),{year:c,dayOfYear:l}}function Nt(e,t,n){var r=jt(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+U(o,t,n)):i>U(e.year(),t,n)?(a=i-U(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function U(e,t,n){var r=jt(e,t,n),i=jt(e+1,t,n);return(B(e)-r+i)/7}C(`w`,[`ww`,2],`wo`,`week`),C(`W`,[`WW`,2],`Wo`,`isoWeek`),k(`w`,D,Je),k(`ww`,D,T),k(`W`,D,Je),k(`WW`,D,T),et([`w`,`ww`,`W`,`WW`],function(e,t,n,r){t[r.substr(0,1)]=M(e)});function Pt(e){return Nt(e,this._week.dow,this._week.doy).week}var Ft={dow:0,doy:6};function It(){return this._week.dow}function Lt(){return this._week.doy}function Rt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,`d`)}function zt(e){var t=Nt(this,1,4).week;return e==null?t:this.add((e-t)*7,`d`)}C(`d`,0,`do`,`day`),C(`dd`,0,0,function(e){return this.localeData().weekdaysMin(this,e)}),C(`ddd`,0,0,function(e){return this.localeData().weekdaysShort(this,e)}),C(`dddd`,0,0,function(e){return this.localeData().weekdays(this,e)}),C(`e`,0,0,`weekday`),C(`E`,0,0,`isoWeekday`),k(`d`,D),k(`e`,D),k(`E`,D),k(`dd`,function(e,t){return t.weekdaysMinRegex(e)}),k(`ddd`,function(e,t){return t.weekdaysShortRegex(e)}),k(`dddd`,function(e,t){return t.weekdaysRegex(e)}),et([`dd`,`ddd`,`dddd`],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i==null?m(n).invalidWeekday=e:t.d=i}),et([`d`,`e`,`E`],function(e,t,n,r){t[r]=M(e)});function Bt(e,t){return typeof e==`string`?isNaN(e)?(e=t.weekdaysParse(e),typeof e==`number`?e:null):parseInt(e,10):e}function Vt(e,t){return typeof e==`string`?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ht(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Ut=`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),Wt=`Sun_Mon_Tue_Wed_Thu_Fri_Sat`.split(`_`),Gt=`Su_Mo_Tu_We_Th_Fr_Sa`.split(`_`),Kt=qe,qt=qe,Jt=qe;function Yt(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?`format`:`standalone`];return e===!0?Ht(n,this._week.dow):e?n[e.day()]:n}function Xt(e){return e===!0?Ht(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Zt(e){return e===!0?Ht(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Qt(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,``).toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,``).toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,``).toLocaleLowerCase();return n?t===`dddd`?(i=V.call(this._weekdaysParse,o),i===-1?null:i):t===`ddd`?(i=V.call(this._shortWeekdaysParse,o),i===-1?null:i):(i=V.call(this._minWeekdaysParse,o),i===-1?null:i):t===`dddd`?(i=V.call(this._weekdaysParse,o),i!==-1||(i=V.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=V.call(this._minWeekdaysParse,o),i===-1?null:i)):t===`ddd`?(i=V.call(this._shortWeekdaysParse,o),i!==-1||(i=V.call(this._weekdaysParse,o),i!==-1)?i:(i=V.call(this._minWeekdaysParse,o),i===-1?null:i)):(i=V.call(this._minWeekdaysParse,o),i!==-1||(i=V.call(this._weekdaysParse,o),i!==-1)?i:(i=V.call(this._shortWeekdaysParse,o),i===-1?null:i))}function $t(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Qt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=RegExp(`^`+this.weekdays(i,``).replace(`.`,`\\.?`)+`$`,`i`),this._shortWeekdaysParse[r]=RegExp(`^`+this.weekdaysShort(i,``).replace(`.`,`\\.?`)+`$`,`i`),this._minWeekdaysParse[r]=RegExp(`^`+this.weekdaysMin(i,``).replace(`.`,`\\.?`)+`$`,`i`)),this._weekdaysParse[r]||(a=`^`+this.weekdays(i,``)+`|^`+this.weekdaysShort(i,``)+`|^`+this.weekdaysMin(i,``),this._weekdaysParse[r]=new RegExp(a.replace(`.`,``),`i`)),n&&t===`dddd`&&this._fullWeekdaysParse[r].test(e)||n&&t===`ddd`&&this._shortWeekdaysParse[r].test(e)||n&&t===`dd`&&this._minWeekdaysParse[r].test(e)||!n&&this._weekdaysParse[r].test(e))return r}function en(e){if(!this.isValid())return e==null?NaN:this;var t=lt(this,`Day`);return e==null?t:(e=Bt(e,this.localeData()),this.add(e-t,`d`))}function tn(e){if(!this.isValid())return e==null?NaN:this;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,`d`)}function nn(e){if(!this.isValid())return e==null?NaN:this;if(e!=null){var t=Vt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function rn(e){return this._weekdaysParseExact?(o(this,`_weekdaysRegex`)||sn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,`_weekdaysRegex`)||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function an(e){return this._weekdaysParseExact?(o(this,`_weekdaysRegex`)||sn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,`_weekdaysShortRegex`)||(this._weekdaysShortRegex=qt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function on(e){return this._weekdaysParseExact?(o(this,`_weekdaysRegex`)||sn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,`_weekdaysMinRegex`)||(this._weekdaysMinRegex=Jt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function sn(){function e(e,t){return t.length-e.length}var t=[],n=[],r=[],i=[],a,o,s,c,l;for(a=0;a<7;a++)o=p([2e3,1]).day(a),s=A(this.weekdaysMin(o,``)),c=A(this.weekdaysShort(o,``)),l=A(this.weekdays(o,``)),t.push(s),n.push(c),r.push(l),i.push(s),i.push(c),i.push(l);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=RegExp(`^(`+i.join(`|`)+`)`,`i`),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._weekdaysShortStrictRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`),this._weekdaysMinStrictRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`)}function cn(){return this.hours()%12||12}function ln(){return this.hours()||24}C(`H`,[`HH`,2],0,`hour`),C(`h`,[`hh`,2],0,cn),C(`k`,[`kk`,2],0,ln),C(`hmm`,0,0,function(){return``+cn.apply(this)+x(this.minutes(),2)}),C(`hmmss`,0,0,function(){return``+cn.apply(this)+x(this.minutes(),2)+x(this.seconds(),2)}),C(`Hmm`,0,0,function(){return``+this.hours()+x(this.minutes(),2)}),C(`Hmmss`,0,0,function(){return``+this.hours()+x(this.minutes(),2)+x(this.seconds(),2)});function un(e,t){C(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}un(`a`,!0),un(`A`,!1);function dn(e,t){return t._meridiemParse}k(`a`,dn),k(`A`,dn),k(`H`,D,Ye),k(`h`,D,Je),k(`k`,D,Je),k(`HH`,D,T),k(`hh`,D,T),k(`kk`,D,T),k(`hmm`,Re),k(`hmmss`,ze),k(`Hmm`,Re),k(`Hmmss`,ze),N([`H`,`HH`],I),N([`k`,`kk`],function(e,t,n){var r=M(e);t[I]=r===24?0:r}),N([`a`,`A`],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),N([`h`,`hh`],function(e,t,n){t[I]=M(e),m(n).bigHour=!0}),N(`hmm`,function(e,t,n){var r=e.length-2;t[I]=M(e.substr(0,r)),t[L]=M(e.substr(r)),m(n).bigHour=!0}),N(`hmmss`,function(e,t,n){var r=e.length-4,i=e.length-2;t[I]=M(e.substr(0,r)),t[L]=M(e.substr(r,2)),t[R]=M(e.substr(i)),m(n).bigHour=!0}),N(`Hmm`,function(e,t,n){var r=e.length-2;t[I]=M(e.substr(0,r)),t[L]=M(e.substr(r))}),N(`Hmmss`,function(e,t,n){var r=e.length-4,i=e.length-2;t[I]=M(e.substr(0,r)),t[L]=M(e.substr(r,2)),t[R]=M(e.substr(i))});function fn(e){return(e+``).toLowerCase().charAt(0)===`p`}var pn=/[ap]\.?m?\.?/i,mn=ct(`Hours`,!0);function hn(e,t,n){return e>11?n?`pm`:`PM`:n?`am`:`AM`}var gn={calendar:fe,longDateFormat:xe,invalidDate:Ce,ordinal:Te,dayOfMonthOrdinalParse:Ee,relativeTime:Oe,months:ht,monthsShort:gt,week:Ft,weekdays:Ut,weekdaysMin:Gt,weekdaysShort:Wt,meridiemParse:pn},W={},G={},_n;function vn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function K(e){return e&&e.toLowerCase().replace(`_`,`-`)}function yn(e){for(var t=0,n,r,i,a;t<e.length;){for(a=K(e[t]).split(`-`),n=a.length,r=K(e[t+1]),r=r?r.split(`-`):null;n>0;){if(i=xn(a.slice(0,n).join(`-`)),i)return i;if(r&&r.length>=n&&vn(a,r)>=n-1)break;n--}t++}return _n}function bn(e){return!!(e&&e.match(`^[^/\\\\]*$`))}function xn(e){var n=null,r;if(W[e]===void 0&&t!==void 0&&t&&t.exports&&bn(e))try{n=_n._abbr,r=require,r(`./locale/`+e),Sn(n)}catch{W[e]=null}return W[e]}function Sn(e,t){var n;return e&&(n=c(t)?Tn(e):Cn(e,t),n?_n=n:typeof console<`u`&&console.warn&&console.warn(`Locale `+e+` not found. Did you forget to load it?`)),_n._abbr}function Cn(e,t){if(t!==null){var n,r=gn;if(t.abbr=e,W[e]!=null)se(`defineLocaleOverride`,`use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.`),r=W[e]._config;else if(t.parentLocale!=null)if(W[t.parentLocale]!=null)r=W[t.parentLocale]._config;else if(n=xn(t.parentLocale),n!=null)r=n._config;else return G[t.parentLocale]||(G[t.parentLocale]=[]),G[t.parentLocale].push({name:e,config:t}),null;return W[e]=new ue(le(r,t)),G[e]&&G[e].forEach(function(e){Cn(e.name,e.config)}),Sn(e),W[e]}else return delete W[e],null}function wn(e,t){if(t!=null){var n,r,i=gn;W[e]!=null&&W[e].parentLocale!=null?W[e].set(le(W[e]._config,t)):(r=xn(e),r!=null&&(i=r._config),t=le(i,t),r??(t.abbr=e),n=new ue(t),n.parentLocale=W[e],W[e]=n),Sn(e)}else W[e]!=null&&(W[e].parentLocale==null?W[e]!=null&&delete W[e]:(W[e]=W[e].parentLocale,e===Sn()&&Sn(e)));return W[e]}function Tn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return _n;if(!i(e)){if(t=xn(e),t)return t;e=[e]}return yn(e)}function En(){return de(W)}function Dn(e){var t,n=e._a;return n&&m(e).overflow===-2&&(t=n[rt]<0||n[rt]>11?rt:n[F]<1||n[F]>mt(n[P],n[rt])?F:n[I]<0||n[I]>24||n[I]===24&&(n[L]!==0||n[R]!==0||n[z]!==0)?I:n[L]<0||n[L]>59?L:n[R]<0||n[R]>59?R:n[z]<0||n[z]>999?z:-1,m(e)._overflowDayOfYear&&(t<P||t>F)&&(t=F),m(e)._overflowWeeks&&t===-1&&(t=it),m(e)._overflowWeekday&&t===-1&&(t=at),m(e).overflow=t),e}var On=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,An=/Z|[+-]\d\d(?::?\d\d)?/,jn=[[`YYYYYY-MM-DD`,/[+-]\d{6}-\d\d-\d\d/],[`YYYY-MM-DD`,/\d{4}-\d\d-\d\d/],[`GGGG-[W]WW-E`,/\d{4}-W\d\d-\d/],[`GGGG-[W]WW`,/\d{4}-W\d\d/,!1],[`YYYY-DDD`,/\d{4}-\d{3}/],[`YYYY-MM`,/\d{4}-\d\d/,!1],[`YYYYYYMMDD`,/[+-]\d{10}/],[`YYYYMMDD`,/\d{8}/],[`GGGG[W]WWE`,/\d{4}W\d{3}/],[`GGGG[W]WW`,/\d{4}W\d{2}/,!1],[`YYYYDDD`,/\d{7}/],[`YYYYMM`,/\d{6}/,!1],[`YYYY`,/\d{4}/,!1]],Mn=[[`HH:mm:ss.SSSS`,/\d\d:\d\d:\d\d\.\d+/],[`HH:mm:ss,SSSS`,/\d\d:\d\d:\d\d,\d+/],[`HH:mm:ss`,/\d\d:\d\d:\d\d/],[`HH:mm`,/\d\d:\d\d/],[`HHmmss.SSSS`,/\d\d\d\d\d\d\.\d+/],[`HHmmss,SSSS`,/\d\d\d\d\d\d,\d+/],[`HHmmss`,/\d\d\d\d\d\d/],[`HHmm`,/\d\d\d\d/],[`HH`,/\d\d/]],Nn=/^\/?Date\((-?\d+)/i,Pn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Fn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function In(e){var t,n,r=e._i,i=On.exec(r)||kn.exec(r),a,o,s,c,l=jn.length,u=Mn.length;if(i){for(m(e).iso=!0,t=0,n=l;t<n;t++)if(jn[t][1].exec(i[1])){o=jn[t][0],a=jn[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(i[3]){for(t=0,n=u;t<n;t++)if(Mn[t][1].exec(i[3])){s=(i[2]||` `)+Mn[t][0];break}if(s==null){e._isValid=!1;return}}if(!a&&s!=null){e._isValid=!1;return}if(i[4])if(An.exec(i[4]))c=`Z`;else{e._isValid=!1;return}e._f=o+(s||``)+(c||``),Jn(e)}else e._isValid=!1}function Ln(e,t,n,r,i,a){var o=[Rn(e),gt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Rn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function zn(e){return e.replace(/\([^()]*\)|[\n\t]/g,` `).replace(/(\s\s+)/g,` `).replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function Bn(e,t,n){return e&&Wt.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay()?(m(n).weekdayMismatch=!0,n._isValid=!1,!1):!0}function Vn(e,t,n){if(e)return Fn[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Hn(e){var t=Pn.exec(zn(e._i)),n;if(t){if(n=Ln(t[4],t[3],t[2],t[5],t[6],t[7]),!Bn(t[1],n,e))return;e._a=n,e._tzm=Vn(t[8],t[9],t[10]),e._d=At.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function Un(e){var t=Nn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(In(e),e._isValid===!1)delete e._isValid;else return;if(Hn(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:n.createFromInputFallback(e)}n.createFromInputFallback=v(`value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.`,function(e){e._d=new Date(e._i+(e._useUTC?` UTC`:``))});function Wn(e,t,n){return e??t??n}function Gn(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Kn(e){var t,n,r=[],i,a,o;if(!e._d){for(i=Gn(e),e._w&&e._a[F]==null&&e._a[rt]==null&&qn(e),e._dayOfYear!=null&&(o=Wn(e._a[P],i[P]),(e._dayOfYear>B(o)||e._dayOfYear===0)&&(m(e)._overflowDayOfYear=!0),n=At(o,0,e._dayOfYear),e._a[rt]=n.getUTCMonth(),e._a[F]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?+(t===2):e._a[t];e._a[I]===24&&e._a[L]===0&&e._a[R]===0&&e._a[z]===0&&(e._nextDay=!0,e._a[I]=0),e._d=(e._useUTC?At:kt).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[I]=24),e._w&&e._w.d!==void 0&&e._w.d!==a&&(m(e).weekdayMismatch=!0)}}function qn(e){var t=e._w,n,r,i,a,o,s,c,l;t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=Wn(t.GG,e._a[P],Nt(q(),1,4).year),r=Wn(t.W,1),i=Wn(t.E,1),(i<1||i>7)&&(c=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=Nt(q(),a,o),n=Wn(t.gg,e._a[P],l.year),r=Wn(t.w,l.week),t.d==null?t.e==null?i=a:(i=t.e+a,(t.e<0||t.e>6)&&(c=!0)):(i=t.d,(i<0||i>6)&&(c=!0))),r<1||r>U(n,a,o)?m(e)._overflowWeeks=!0:c==null?(s=Mt(n,r,i,a,o),e._a[P]=s.year,e._dayOfYear=s.dayOfYear):m(e)._overflowWeekday=!0}n.ISO_8601=function(){},n.RFC_2822=function(){};function Jn(e){if(e._f===n.ISO_8601){In(e);return}if(e._f===n.RFC_2822){Hn(e);return}e._a=[],m(e).empty=!0;var t=``+e._i,r,i,a,o,s,c=t.length,l=0,u,d;for(a=be(e._f,e._locale).match(S)||[],d=a.length,r=0;r<d;r++)o=a[r],i=(t.match(Ze(o,e))||[])[0],i&&(s=t.substr(0,t.indexOf(i)),s.length>0&&m(e).unusedInput.push(s),t=t.slice(t.indexOf(i)+i.length),l+=i.length),ge[o]?(i?m(e).empty=!1:m(e).unusedTokens.push(o),tt(o,i,e)):e._strict&&!i&&m(e).unusedTokens.push(o);m(e).charsLeftOver=c-l,t.length>0&&m(e).unusedInput.push(t),e._a[I]<=12&&m(e).bigHour===!0&&e._a[I]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[I]=Yn(e._locale,e._a[I],e._meridiem),u=m(e).era,u!==null&&(e._a[P]=e._locale.erasConvertYear(u,e._a[P])),Kn(e),Dn(e)}function Yn(e,t,n){var r;return n==null?t:e.meridiemHour==null?e.isPM==null?t:(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0),t):e.meridiemHour(t,n)}function Xn(e){var t,n,r,i,a,o,s=!1,c=e._f.length;if(c===0){m(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<c;i++)a=0,o=!1,t=ie({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],Jn(t),g(t)&&(o=!0),a+=m(t).charsLeftOver,a+=m(t).unusedTokens.length*10,m(t).score=a,s?a<r&&(r=a,n=t):(r==null||a<r||o)&&(r=a,n=t,o&&(s=!0));f(e,n||t)}function Zn(e){if(!e._d){var t=Me(e._i),n=t.day===void 0?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Kn(e)}}function Qn(e){var t=new ae(Dn($n(e)));return t._nextDay&&=(t.add(1,`d`),void 0),t}function $n(e){var t=e._i,n=e._f;return e._locale=e._locale||Tn(e._l),t===null||n===void 0&&t===``?te({nullInput:!0}):(typeof t==`string`&&(e._i=t=e._locale.preparse(t)),_(t)?new ae(Dn(t)):(u(t)?e._d=t:i(n)?Xn(e):n?Jn(e):er(e),g(e)||(e._d=null),e))}function er(e){var t=e._i;c(t)?e._d=new Date(n.now()):u(t)?e._d=new Date(t.valueOf()):typeof t==`string`?Un(e):i(t)?(e._a=d(t.slice(0),function(e){return parseInt(e,10)}),Kn(e)):a(t)?Zn(e):l(t)?e._d=new Date(t):n.createFromInputFallback(e)}function tr(e,t,n,r,o){var c={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(a(e)&&s(e)||i(e)&&e.length===0)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=o,c._l=n,c._i=e,c._f=t,c._strict=r,Qn(c)}function q(e,t,n,r){return tr(e,t,n,r,!1)}var nr=v(`moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/`,function(){var e=q.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:te()}),rr=v(`moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/`,function(){var e=q.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:te()});function ir(e,t){var n,r;if(t.length===1&&i(t[0])&&(t=t[0]),!t.length)return q();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function ar(){return ir(`isBefore`,[].slice.call(arguments,0))}function or(){return ir(`isAfter`,[].slice.call(arguments,0))}var sr=function(){return Date.now?Date.now():+new Date},cr=[`year`,`quarter`,`month`,`week`,`day`,`hour`,`minute`,`second`,`millisecond`];function lr(e){var t,n=!1,r,i=cr.length;for(t in e)if(o(e,t)&&!(V.call(cr,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[cr[r]]){if(n)return!1;parseFloat(e[cr[r]])!==M(e[cr[r]])&&(n=!0)}return!0}function ur(){return this._isValid}function dr(){return J(NaN)}function fr(e){var t=Me(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=lr(t),this._milliseconds=+u+l*1e3+c*6e4+s*1e3*60*60,this._days=+o+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=Tn(),this._bubble()}function pr(e){return e instanceof fr}function mr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function hr(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0,o;for(o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&M(e[o])!==M(t[o]))&&a++;return a+i}function gr(e,t){C(e,0,0,function(){var e=this.utcOffset(),n=`+`;return e<0&&(e=-e,n=`-`),n+x(~~(e/60),2)+t+x(~~e%60,2)})}gr(`Z`,`:`),gr(`ZZ`,``),k(`Z`,Ge),k(`ZZ`,Ge),N([`Z`,`ZZ`],function(e,t,n){n._useUTC=!0,n._tzm=vr(Ge,e)});var _r=/([\+\-]|\d\d)/gi;function vr(e,t){var n=(t||``).match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+``).match(_r)||[`-`,0,0],a=+(i[1]*60)+M(i[2]),a===0?0:i[0]===`+`?a:-a)}function yr(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(_(e)||u(e)?e.valueOf():q(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),n.updateOffset(r,!1),r):q(e).local()}function br(e){return-Math.round(e._d.getTimezoneOffset())}n.updateOffset=function(){};function xr(e,t,r){var i=this._offset||0,a;if(!this.isValid())return e==null?NaN:this;if(e!=null){if(typeof e==`string`){if(e=vr(Ge,e),e===null)return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(a=br(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,`m`),i!==e&&(!t||this._changeInProgress?Rr(this,J(e-i,`m`),1,!1):this._changeInProgress||=(this._changeInProgress=!0,n.updateOffset(this,!0),null)),this}else return this._isUTC?i:br(this)}function Sr(e,t){return e==null?-this.utcOffset():(typeof e!=`string`&&(e=-e),this.utcOffset(e,t),this)}function Cr(e){return this.utcOffset(0,e)}function wr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(br(this),`m`)),this}function Tr(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i==`string`){var e=vr(We,this._i);e==null?this.utcOffset(0,!0):this.utcOffset(e)}return this}function Er(e){return this.isValid()?(e=e?q(e).utcOffset():0,(this.utcOffset()-e)%60==0):!1}function Dr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Or(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ie(e,this),e=$n(e),e._a?(t=e._isUTC?p(e._a):q(e._a),this._isDSTShifted=this.isValid()&&hr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return this.isValid()?!this._isUTC:!1}function Ar(){return this.isValid()?this._isUTC:!1}function jr(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Mr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Nr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function J(e,t){var n=e,r=null,i,a,s;return pr(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Mr.exec(e))?(i=r[1]===`-`?-1:1,n={y:0,d:M(r[F])*i,h:M(r[I])*i,m:M(r[L])*i,s:M(r[R])*i,ms:M(mr(r[z]*1e3))*i}):(r=Nr.exec(e))?(i=r[1]===`-`?-1:1,n={y:Pr(r[2],i),M:Pr(r[3],i),w:Pr(r[4],i),d:Pr(r[5],i),h:Pr(r[6],i),m:Pr(r[7],i),s:Pr(r[8],i)}):n==null?n={}:typeof n==`object`&&(`from`in n||`to`in n)&&(s=Ir(q(n.from),q(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new fr(n),pr(e)&&o(e,`_locale`)&&(a._locale=e._locale),pr(e)&&o(e,`_isValid`)&&(a._isValid=e._isValid),a}J.fn=fr.prototype,J.invalid=dr;function Pr(e,t){var n=e&&parseFloat(e.replace(`,`,`.`));return(isNaN(n)?0:n)*t}function Fr(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,`M`).isAfter(t)&&--n.months,n.milliseconds=t-+e.clone().add(n.months,`M`),n}function Ir(e,t){var n;return e.isValid()&&t.isValid()?(t=yr(t,e),e.isBefore(t)?n=Fr(e,t):(n=Fr(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Lr(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(se(t,`moment().`+t+`(period, number) is deprecated. Please use moment().`+t+`(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.`),a=n,n=r,r=a),i=J(n,r),Rr(this,i,e),this}}function Rr(e,t,r,i){var a=t._milliseconds,o=mr(t._days),s=mr(t._months);e.isValid()&&(i??=!0,s&&Ct(e,lt(e,`Month`)+s*r),o&&ut(e,`Date`,lt(e,`Date`)+o*r),a&&e._d.setTime(e._d.valueOf()+a*r),i&&n.updateOffset(e,o||s))}var zr=Lr(1,`add`),Br=Lr(-1,`subtract`);function Y(e){return typeof e==`string`||e instanceof String}function Vr(e){return _(e)||u(e)||Y(e)||l(e)||Ur(e)||Hr(e)||e==null}function Hr(e){var t=a(e)&&!s(e),n=!1,r=[`years`,`year`,`y`,`months`,`month`,`M`,`days`,`day`,`d`,`dates`,`date`,`D`,`hours`,`hour`,`h`,`minutes`,`minute`,`m`,`seconds`,`second`,`s`,`milliseconds`,`millisecond`,`ms`],i,c,l=r.length;for(i=0;i<l;i+=1)c=r[i],n||=o(e,c);return t&&n}function Ur(e){var t=i(e),n=!1;return t&&(n=e.filter(function(t){return!l(t)&&Y(e)}).length===0),t&&n}function X(e){var t=a(e)&&!s(e),n=!1,r=[`sameDay`,`nextDay`,`lastDay`,`nextWeek`,`lastWeek`,`sameElse`],i,c;for(i=0;i<r.length;i+=1)c=r[i],n||=o(e,c);return t&&n}function Wr(e,t){var n=e.diff(t,`days`,!0);return n<-6?`sameElse`:n<-1?`lastWeek`:n<0?`lastDay`:n<1?`sameDay`:n<2?`nextDay`:n<7?`nextWeek`:`sameElse`}function Gr(e,t){arguments.length===1&&(arguments[0]?Vr(arguments[0])?(e=arguments[0],t=void 0):X(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||q(),i=yr(r,this).startOf(`day`),a=n.calendarFormat(this,i)||`sameElse`,o=t&&(b(t[a])?t[a].call(this,r):t[a]);return this.format(o||this.localeData().calendar(a,this,q(r)))}function Kr(){return new ae(this)}function qr(e,t){var n=_(e)?e:q(e);return this.isValid()&&n.isValid()?(t=w(t)||`millisecond`,t===`millisecond`?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Jr(e,t){var n=_(e)?e:q(e);return this.isValid()&&n.isValid()?(t=w(t)||`millisecond`,t===`millisecond`?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Yr(e,t,n,r){var i=_(e)?e:q(e),a=_(t)?t:q(t);return this.isValid()&&i.isValid()&&a.isValid()?(r||=`()`,(r[0]===`(`?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===`)`?this.isBefore(a,n):!this.isAfter(a,n))):!1}function Xr(e,t){var n=_(e)?e:q(e),r;return this.isValid()&&n.isValid()?(t=w(t)||`millisecond`,t===`millisecond`?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Zr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Qr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function $r(e,t,n){var r,i,a;if(!this.isValid()||(r=yr(e,this),!r.isValid()))return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=w(t),t){case`year`:a=ei(this,r)/12;break;case`month`:a=ei(this,r);break;case`quarter`:a=ei(this,r)/3;break;case`second`:a=(this-r)/1e3;break;case`minute`:a=(this-r)/6e4;break;case`hour`:a=(this-r)/36e5;break;case`day`:a=(this-r-i)/864e5;break;case`week`:a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:j(a)}function ei(e,t){if(e.date()<t.date())return-ei(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,`months`),i,a;return t-r<0?(i=e.clone().add(n-1,`months`),a=(t-r)/(r-i)):(i=e.clone().add(n+1,`months`),a=(t-r)/(i-r)),-(n+a)||0}n.defaultFormat=`YYYY-MM-DDTHH:mm:ssZ`,n.defaultFormatUtc=`YYYY-MM-DDTHH:mm:ss[Z]`;function ti(){return this.clone().locale(`en`).format(`ddd MMM DD YYYY HH:mm:ss [GMT]ZZ`)}function ni(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?ye(n,t?`YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]`:`YYYYYY-MM-DD[T]HH:mm:ss.SSSZ`):b(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace(`Z`,ye(n,`Z`)):ye(n,t?`YYYY-MM-DD[T]HH:mm:ss.SSS[Z]`:`YYYY-MM-DD[T]HH:mm:ss.SSSZ`)}function ri(){if(!this.isValid())return`moment.invalid(/* `+this._i+` */)`;var e=`moment`,t=``,n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?`moment.utc`:`moment.parseZone`,t=`Z`),n=`[`+e+`("]`,r=0<=this.year()&&this.year()<=9999?`YYYY`:`YYYYYY`,i=`-MM-DD[T]HH:mm:ss.SSS`,a=t+`[")]`,this.format(n+r+i+a)}function ii(e){e||=this.isUtc()?n.defaultFormatUtc:n.defaultFormat;var t=ye(this,e);return this.localeData().postformat(t)}function ai(e,t){return this.isValid()&&(_(e)&&e.isValid()||q(e).isValid())?J({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oi(e){return this.from(q(),e)}function si(e,t){return this.isValid()&&(_(e)&&e.isValid()||q(e).isValid())?J({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ci(e){return this.to(q(),e)}function li(e){var t;return e===void 0?this._locale._abbr:(t=Tn(e),t!=null&&(this._locale=t),this)}var ui=v(`moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.`,function(e){return e===void 0?this.localeData():this.locale(e)});function di(){return this._locale}var fi=1e3,pi=60*fi,mi=60*pi,hi=146097*24*mi;function gi(e,t){return(e%t+t)%t}function _i(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hi:new Date(e,t,n).valueOf()}function vi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hi:Date.UTC(e,t,n)}function yi(e){var t,r;if(e=w(e),e===void 0||e===`millisecond`||!this.isValid())return this;switch(r=this._isUTC?vi:_i,e){case`year`:t=r(this.year(),0,1);break;case`quarter`:t=r(this.year(),this.month()-this.month()%3,1);break;case`month`:t=r(this.year(),this.month(),1);break;case`week`:t=r(this.year(),this.month(),this.date()-this.weekday());break;case`isoWeek`:t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case`day`:case`date`:t=r(this.year(),this.month(),this.date());break;case`hour`:t=this._d.valueOf(),t-=gi(t+(this._isUTC?0:this.utcOffset()*pi),mi);break;case`minute`:t=this._d.valueOf(),t-=gi(t,pi);break;case`second`:t=this._d.valueOf(),t-=gi(t,fi);break}return this._d.setTime(t),n.updateOffset(this,!0),this}function bi(e){var t,r;if(e=w(e),e===void 0||e===`millisecond`||!this.isValid())return this;switch(r=this._isUTC?vi:_i,e){case`year`:t=r(this.year()+1,0,1)-1;break;case`quarter`:t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case`month`:t=r(this.year(),this.month()+1,1)-1;break;case`week`:t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case`isoWeek`:t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case`day`:case`date`:t=r(this.year(),this.month(),this.date()+1)-1;break;case`hour`:t=this._d.valueOf(),t+=mi-gi(t+(this._isUTC?0:this.utcOffset()*pi),mi)-1;break;case`minute`:t=this._d.valueOf(),t+=pi-gi(t,pi)-1;break;case`second`:t=this._d.valueOf(),t+=fi-gi(t,fi)-1;break}return this._d.setTime(t),n.updateOffset(this,!0),this}function xi(){return this._d.valueOf()-(this._offset||0)*6e4}function Si(){return Math.floor(this.valueOf()/1e3)}function Ci(){return new Date(this.valueOf())}function wi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ti(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Ei(){return this.isValid()?this.toISOString():null}function Di(){return g(this)}function Oi(){return f({},m(this))}function ki(){return m(this).overflow}function Ai(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}C(`N`,0,0,`eraAbbr`),C(`NN`,0,0,`eraAbbr`),C(`NNN`,0,0,`eraAbbr`),C(`NNNN`,0,0,`eraName`),C(`NNNNN`,0,0,`eraNarrow`),C(`y`,[`y`,1],`yo`,`eraYear`),C(`y`,[`yy`,2],0,`eraYear`),C(`y`,[`yyy`,3],0,`eraYear`),C(`y`,[`yyyy`,4],0,`eraYear`),k(`N`,Vi),k(`NN`,Vi),k(`NNN`,Vi),k(`NNNN`,Hi),k(`NNNNN`,Ui),N([`N`,`NN`,`NNN`,`NNNN`,`NNNNN`],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?m(n).era=i:m(n).invalidEra=e}),k(`y`,He),k(`yy`,He),k(`yyy`,He),k(`yyyy`,He),k(`yo`,Wi),N([`y`,`yy`,`yyy`,`yyyy`],P),N([`yo`],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[P]=n._locale.eraYearOrdinalParse(e,i):t[P]=parseInt(e,10)});function ji(e,t){var r,i,a,o=this._eras||Tn(`en`)._eras;for(r=0,i=o.length;r<i;++r){switch(typeof o[r].since){case`string`:a=n(o[r].since).startOf(`day`),o[r].since=a.valueOf();break}switch(typeof o[r].until){case`undefined`:o[r].until=1/0;break;case`string`:a=n(o[r].until).startOf(`day`).valueOf(),o[r].until=a.valueOf();break}}return o}function Mi(e,t,n){var r,i,a=this.eras(),o,s,c;for(e=e.toUpperCase(),r=0,i=a.length;r<i;++r)if(o=a[r].name.toUpperCase(),s=a[r].abbr.toUpperCase(),c=a[r].narrow.toUpperCase(),n)switch(t){case`N`:case`NN`:case`NNN`:if(s===e)return a[r];break;case`NNNN`:if(o===e)return a[r];break;case`NNNNN`:if(c===e)return a[r];break}else if([o,s,c].indexOf(e)>=0)return a[r]}function Ni(e,t){var r=e.since<=e.until?1:-1;return t===void 0?n(e.since).year():n(e.since).year()+(t-e.offset)*r}function Pi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf(`day`).valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return``}function Fi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf(`day`).valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return``}function Ii(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf(`day`).valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return``}function Li(){var e,t,r,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,i=this.clone().startOf(`day`).valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-n(a[e].since).year())*r+a[e].offset;return this.year()}function Ri(e){return o(this,`_erasNameRegex`)||Gi.call(this),e?this._erasNameRegex:this._erasRegex}function zi(e){return o(this,`_erasAbbrRegex`)||Gi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Bi(e){return o(this,`_erasNarrowRegex`)||Gi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Vi(e,t){return t.erasAbbrRegex(e)}function Hi(e,t){return t.erasNameRegex(e)}function Ui(e,t){return t.erasNarrowRegex(e)}function Wi(e,t){return t._eraYearOrdinalRegex||He}function Gi(){var e=[],t=[],n=[],r=[],i,a,o,s,c,l=this.eras();for(i=0,a=l.length;i<a;++i)o=A(l[i].name),s=A(l[i].abbr),c=A(l[i].narrow),t.push(o),e.push(s),n.push(c),r.push(o),r.push(s),r.push(c);this._erasRegex=RegExp(`^(`+r.join(`|`)+`)`,`i`),this._erasNameRegex=RegExp(`^(`+t.join(`|`)+`)`,`i`),this._erasAbbrRegex=RegExp(`^(`+e.join(`|`)+`)`,`i`),this._erasNarrowRegex=RegExp(`^(`+n.join(`|`)+`)`,`i`)}C(0,[`gg`,2],0,function(){return this.weekYear()%100}),C(0,[`GG`,2],0,function(){return this.isoWeekYear()%100});function Ki(e,t){C(0,[e,e.length],0,t)}Ki(`gggg`,`weekYear`),Ki(`ggggg`,`weekYear`),Ki(`GGGG`,`isoWeekYear`),Ki(`GGGGG`,`isoWeekYear`),k(`G`,Ue),k(`g`,Ue),k(`GG`,D,T),k(`gg`,D,T),k(`GGGG`,Be,Le),k(`gggg`,Be,Le),k(`GGGGG`,Ve,E),k(`ggggg`,Ve,E),et([`gggg`,`ggggg`,`GGGG`,`GGGGG`],function(e,t,n,r){t[r.substr(0,2)]=M(e)}),et([`gg`,`GG`],function(e,t,r,i){t[i]=n.parseTwoDigitYear(e)});function qi(e){return $i.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ji(e){return $i.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Yi(){return U(this.year(),1,4)}function Xi(){return U(this.isoWeekYear(),1,4)}function Zi(){var e=this.localeData()._week;return U(this.year(),e.dow,e.doy)}function Qi(){var e=this.localeData()._week;return U(this.weekYear(),e.dow,e.doy)}function $i(e,t,n,r,i){var a;return e==null?Nt(this,r,i).year:(a=U(e,r,i),t>a&&(t=a),ea.call(this,e,t,n,r,i))}function ea(e,t,n,r,i){var a=Mt(e,t,n,r,i),o=At(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}C(`Q`,0,`Qo`,`quarter`),k(`Q`,Fe),N(`Q`,function(e,t){t[rt]=(M(e)-1)*3});function ta(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}C(`D`,[`DD`,2],`Do`,`date`),k(`D`,D,Je),k(`DD`,D,T),k(`Do`,function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),N([`D`,`DD`],F),N(`Do`,function(e,t){t[F]=M(e.match(D)[0])});var na=ct(`Date`,!0);C(`DDD`,[`DDDD`,3],`DDDo`,`dayOfYear`),k(`DDD`,O),k(`DDDD`,Ie),N([`DDD`,`DDDD`],function(e,t,n){n._dayOfYear=M(e)});function ra(e){var t=Math.round((this.clone().startOf(`day`)-this.clone().startOf(`year`))/864e5)+1;return e==null?t:this.add(e-t,`d`)}C(`m`,[`mm`,2],0,`minute`),k(`m`,D,Ye),k(`mm`,D,T),N([`m`,`mm`],L);var ia=ct(`Minutes`,!1);C(`s`,[`ss`,2],0,`second`),k(`s`,D,Ye),k(`ss`,D,T),N([`s`,`ss`],R);var aa=ct(`Seconds`,!1);C(`S`,0,0,function(){return~~(this.millisecond()/100)}),C(0,[`SS`,2],0,function(){return~~(this.millisecond()/10)}),C(0,[`SSS`,3],0,`millisecond`),C(0,[`SSSS`,4],0,function(){return this.millisecond()*10}),C(0,[`SSSSS`,5],0,function(){return this.millisecond()*100}),C(0,[`SSSSSS`,6],0,function(){return this.millisecond()*1e3}),C(0,[`SSSSSSS`,7],0,function(){return this.millisecond()*1e4}),C(0,[`SSSSSSSS`,8],0,function(){return this.millisecond()*1e5}),C(0,[`SSSSSSSSS`,9],0,function(){return this.millisecond()*1e6}),k(`S`,O,Fe),k(`SS`,O,T),k(`SSS`,O,Ie);var oa,sa;for(oa=`SSSS`;oa.length<=9;oa+=`S`)k(oa,He);function ca(e,t){t[z]=M((`0.`+e)*1e3)}for(oa=`S`;oa.length<=9;oa+=`S`)N(oa,ca);sa=ct(`Milliseconds`,!1),C(`z`,0,0,`zoneAbbr`),C(`zz`,0,0,`zoneName`);function la(){return this._isUTC?`UTC`:``}function ua(){return this._isUTC?`Coordinated Universal Time`:``}var Z=ae.prototype;Z.add=zr,Z.calendar=Gr,Z.clone=Kr,Z.diff=$r,Z.endOf=bi,Z.format=ii,Z.from=ai,Z.fromNow=oi,Z.to=si,Z.toNow=ci,Z.get=dt,Z.invalidAt=ki,Z.isAfter=qr,Z.isBefore=Jr,Z.isBetween=Yr,Z.isSame=Xr,Z.isSameOrAfter=Zr,Z.isSameOrBefore=Qr,Z.isValid=Di,Z.lang=ui,Z.locale=li,Z.localeData=di,Z.max=rr,Z.min=nr,Z.parsingFlags=Oi,Z.set=ft,Z.startOf=yi,Z.subtract=Br,Z.toArray=wi,Z.toObject=Ti,Z.toDate=Ci,Z.toISOString=ni,Z.inspect=ri,typeof Symbol<`u`&&Symbol.for!=null&&(Z[Symbol.for(`nodejs.util.inspect.custom`)]=function(){return`Moment<`+this.format()+`>`}),Z.toJSON=Ei,Z.toString=ti,Z.unix=Si,Z.valueOf=xi,Z.creationData=Ai,Z.eraName=Pi,Z.eraNarrow=Fi,Z.eraAbbr=Ii,Z.eraYear=Li,Z.year=ot,Z.isLeapYear=st,Z.weekYear=qi,Z.isoWeekYear=Ji,Z.quarter=Z.quarters=ta,Z.month=wt,Z.daysInMonth=Tt,Z.week=Z.weeks=Rt,Z.isoWeek=Z.isoWeeks=zt,Z.weeksInYear=Zi,Z.weeksInWeekYear=Qi,Z.isoWeeksInYear=Yi,Z.isoWeeksInISOWeekYear=Xi,Z.date=na,Z.day=Z.days=en,Z.weekday=tn,Z.isoWeekday=nn,Z.dayOfYear=ra,Z.hour=Z.hours=mn,Z.minute=Z.minutes=ia,Z.second=Z.seconds=aa,Z.millisecond=Z.milliseconds=sa,Z.utcOffset=xr,Z.utc=Cr,Z.local=wr,Z.parseZone=Tr,Z.hasAlignedHourOffset=Er,Z.isDST=Dr,Z.isLocal=kr,Z.isUtcOffset=Ar,Z.isUtc=jr,Z.isUTC=jr,Z.zoneAbbr=la,Z.zoneName=ua,Z.dates=v(`dates accessor is deprecated. Use date instead.`,na),Z.months=v(`months accessor is deprecated. Use month instead`,wt),Z.years=v(`years accessor is deprecated. Use year instead`,ot),Z.zone=v(`moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/`,Sr),Z.isDSTShifted=v(`isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information`,Or);function da(e){return q(e*1e3)}function fa(){return q.apply(null,arguments).parseZone()}function pa(e){return e}var Q=ue.prototype;Q.calendar=pe,Q.longDateFormat=Se,Q.invalidDate=we,Q.ordinal=De,Q.preparse=pa,Q.postformat=pa,Q.relativeTime=ke,Q.pastFuture=Ae,Q.set=ce,Q.eras=ji,Q.erasParse=Mi,Q.erasConvertYear=Ni,Q.erasAbbrRegex=zi,Q.erasNameRegex=Ri,Q.erasNarrowRegex=Bi,Q.months=bt,Q.monthsShort=xt,Q.monthsParse=St,Q.monthsRegex=Dt,Q.monthsShortRegex=Et,Q.week=Pt,Q.firstDayOfYear=Lt,Q.firstDayOfWeek=It,Q.weekdays=Yt,Q.weekdaysMin=Zt,Q.weekdaysShort=Xt,Q.weekdaysParse=$t,Q.weekdaysRegex=rn,Q.weekdaysShortRegex=an,Q.weekdaysMinRegex=on,Q.isPM=fn,Q.meridiem=hn;function ma(e,t,n,r){var i=Tn(),a=p().set(r,t);return i[n](a,e)}function ha(e,t,n){if(l(e)&&(t=e,e=void 0),e||=``,t!=null)return ma(e,t,n,`month`);var r,i=[];for(r=0;r<12;r++)i[r]=ma(e,r,n,`month`);return i}function ga(e,t,n,r){typeof e==`boolean`?(l(t)&&(n=t,t=void 0),t||=``):(t=e,n=t,e=!1,l(t)&&(n=t,t=void 0),t||=``);var i=Tn(),a=e?i._week.dow:0,o,s=[];if(n!=null)return ma(t,(n+a)%7,r,`day`);for(o=0;o<7;o++)s[o]=ma(t,(o+a)%7,r,`day`);return s}function _a(e,t){return ha(e,t,`months`)}function va(e,t){return ha(e,t,`monthsShort`)}function ya(e,t,n){return ga(e,t,n,`weekdays`)}function ba(e,t,n){return ga(e,t,n,`weekdaysShort`)}function xa(e,t,n){return ga(e,t,n,`weekdaysMin`)}Sn(`en`,{eras:[{since:`0001-01-01`,until:1/0,offset:1,name:`Anno Domini`,narrow:`AD`,abbr:`AD`},{since:`0000-12-31`,until:-1/0,offset:1,name:`Before Christ`,narrow:`BC`,abbr:`BC`}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(M(e%100/10)===1?`th`:t===1?`st`:t===2?`nd`:t===3?`rd`:`th`)}}),n.lang=v(`moment.lang is deprecated. Use moment.locale instead.`,Sn),n.langData=v(`moment.langData is deprecated. Use moment.localeData instead.`,Tn);var Sa=Math.abs;function Ca(){var e=this._data;return this._milliseconds=Sa(this._milliseconds),this._days=Sa(this._days),this._months=Sa(this._months),e.milliseconds=Sa(e.milliseconds),e.seconds=Sa(e.seconds),e.minutes=Sa(e.minutes),e.hours=Sa(e.hours),e.months=Sa(e.months),e.years=Sa(e.years),this}function wa(e,t,n,r){var i=J(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Ta(e,t){return wa(this,e,t,1)}function Ea(e,t){return wa(this,e,t,-1)}function Da(e){return e<0?Math.floor(e):Math.ceil(e)}function Oa(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,c;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Da(Aa(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=j(e/1e3),r.seconds=i%60,a=j(i/60),r.minutes=a%60,o=j(a/60),r.hours=o%24,t+=j(o/24),c=j(ka(t)),n+=c,t-=Da(Aa(c)),s=j(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function ka(e){return e*4800/146097}function Aa(e){return e*146097/4800}function ja(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=w(e),e===`month`||e===`quarter`||e===`year`)switch(t=this._days+r/864e5,n=this._months+ka(t),e){case`month`:return n;case`quarter`:return n/3;case`year`:return n/12}else switch(t=this._days+Math.round(Aa(this._months)),e){case`week`:return t/7+r/6048e5;case`day`:return t+r/864e5;case`hour`:return t*24+r/36e5;case`minute`:return t*1440+r/6e4;case`second`:return t*86400+r/1e3;case`millisecond`:return Math.floor(t*864e5)+r;default:throw Error(`Unknown unit `+e)}}function Ma(e){return function(){return this.as(e)}}var Na=Ma(`ms`),Pa=Ma(`s`),Fa=Ma(`m`),Ia=Ma(`h`),La=Ma(`d`),Ra=Ma(`w`),za=Ma(`M`),Ba=Ma(`Q`),Va=Ma(`y`),Ha=Na;function Ua(){return J(this)}function Wa(e){return e=w(e),this.isValid()?this[e+`s`]():NaN}function Ga(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ka=Ga(`milliseconds`),qa=Ga(`seconds`),Ja=Ga(`minutes`),Ya=Ga(`hours`),Xa=Ga(`days`),Za=Ga(`months`),Qa=Ga(`years`);function $a(){return j(this.days()/7)}var eo=Math.round,to={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ro(e,t,n,r){var i=J(e).abs(),a=eo(i.as(`s`)),o=eo(i.as(`m`)),s=eo(i.as(`h`)),c=eo(i.as(`d`)),l=eo(i.as(`M`)),u=eo(i.as(`w`)),d=eo(i.as(`y`)),f=a<=n.ss&&[`s`,a]||a<n.s&&[`ss`,a]||o<=1&&[`m`]||o<n.m&&[`mm`,o]||s<=1&&[`h`]||s<n.h&&[`hh`,s]||c<=1&&[`d`]||c<n.d&&[`dd`,c];return n.w!=null&&(f=f||u<=1&&[`w`]||u<n.w&&[`ww`,u]),f=f||l<=1&&[`M`]||l<n.M&&[`MM`,l]||d<=1&&[`y`]||[`yy`,d],f[2]=t,f[3]=+e>0,f[4]=r,no.apply(null,f)}function io(e){return e===void 0?eo:typeof e==`function`?(eo=e,!0):!1}function ao(e,t){return to[e]===void 0?!1:t===void 0?to[e]:(to[e]=t,e===`s`&&(to.ss=t-1),!0)}function oo(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=to,i,a;return typeof e==`object`&&(t=e,e=!1),typeof e==`boolean`&&(n=e),typeof t==`object`&&(r=Object.assign({},to,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=ro(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var so=Math.abs;function co(e){return(e>0)-(e<0)||+e}function lo(){if(!this.isValid())return this.localeData().invalidDate();var e=so(this._milliseconds)/1e3,t=so(this._days),n=so(this._months),r,i,a,o,s=this.asSeconds(),c,l,u,d;return s?(r=j(e/60),i=j(r/60),e%=60,r%=60,a=j(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,``):``,c=s<0?`-`:``,l=co(this._months)===co(s)?``:`-`,u=co(this._days)===co(s)?``:`-`,d=co(this._milliseconds)===co(s)?``:`-`,c+`P`+(a?l+a+`Y`:``)+(n?l+n+`M`:``)+(t?u+t+`D`:``)+(i||r||e?`T`:``)+(i?d+i+`H`:``)+(r?d+r+`M`:``)+(e?d+o+`S`:``)):`P0D`}var $=fr.prototype;return $.isValid=ur,$.abs=Ca,$.add=Ta,$.subtract=Ea,$.as=ja,$.asMilliseconds=Na,$.asSeconds=Pa,$.asMinutes=Fa,$.asHours=Ia,$.asDays=La,$.asWeeks=Ra,$.asMonths=za,$.asQuarters=Ba,$.asYears=Va,$.valueOf=Ha,$._bubble=Oa,$.clone=Ua,$.get=Wa,$.milliseconds=Ka,$.seconds=qa,$.minutes=Ja,$.hours=Ya,$.days=Xa,$.weeks=$a,$.months=Za,$.years=Qa,$.humanize=oo,$.toISOString=lo,$.toString=lo,$.toJSON=lo,$.locale=li,$.localeData=di,$.toIsoString=v(`toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)`,lo),$.lang=ui,C(`X`,0,0,`unix`),C(`x`,0,0,`valueOf`),k(`x`,Ue),k(`X`,Ke),N(`X`,function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),N(`x`,function(e,t,n){n._d=new Date(M(e))}),n.version=`2.30.1`,r(q),n.fn=Z,n.min=ar,n.max=or,n.now=sr,n.utc=p,n.unix=da,n.months=_a,n.isDate=u,n.locale=Sn,n.invalid=te,n.duration=J,n.isMoment=_,n.weekdays=ya,n.parseZone=fa,n.localeData=Tn,n.isDuration=pr,n.monthsShort=va,n.weekdaysMin=xa,n.defineLocale=Cn,n.updateLocale=wn,n.locales=En,n.weekdaysShort=ba,n.normalizeUnits=w,n.relativeTimeRounding=io,n.relativeTimeThreshold=ao,n.calendarFormat=Wr,n.prototype=Z,n.HTML5_FMT={DATETIME_LOCAL:`YYYY-MM-DDTHH:mm`,DATETIME_LOCAL_SECONDS:`YYYY-MM-DDTHH:mm:ss`,DATETIME_LOCAL_MS:`YYYY-MM-DDTHH:mm:ss.SSS`,DATE:`YYYY-MM-DD`,TIME:`HH:mm`,TIME_SECONDS:`HH:mm:ss`,TIME_MS:`HH:mm:ss.SSS`,WEEK:`GGGG-[W]WW`,MONTH:`YYYY-MM`},n}))}));u(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0&&typeof require==`function`?r(wi()):typeof define==`function`&&define.amd?define([`../moment`],r):r(n.moment)})(e,(function(e){"use strict";var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];return e.defineLocale(`fr`,{months:`janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre`.split(`_`),monthsShort:`janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.`.split(`_`),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:`dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi`.split(`_`),weekdaysShort:`dim._lun._mar._mer._jeu._ven._sam.`.split(`_`),weekdaysMin:`di_lu_ma_me_je_ve_sa`.split(`_`),weekdaysParseExact:!0,longDateFormat:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},calendar:{sameDay:`[Aujourd’hui à] LT`,nextDay:`[Demain à] LT`,nextWeek:`dddd [à] LT`,lastDay:`[Hier à] LT`,lastWeek:`dddd [dernier à] LT`,sameElse:`L`},relativeTime:{future:`dans %s`,past:`il y a %s`,s:`quelques secondes`,ss:`%d secondes`,m:`une minute`,mm:`%d minutes`,h:`une heure`,hh:`%d heures`,d:`un jour`,dd:`%d jours`,w:`une semaine`,ww:`%d semaines`,M:`un mois`,MM:`%d mois`,y:`un an`,yy:`%d ans`},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case`D`:return e+(e===1?`er`:``);default:case`M`:case`Q`:case`DDD`:case`d`:return e+(e===1?`er`:`e`);case`w`:case`W`:return e+(e===1?`re`:`e`)}},week:{dow:1,doy:4}})}))}))();function Ti(e,t=!0){if(!e)return null;let n=e.toString().normalize(`NFD`).replace(/[\u0300-\u036f]/g,``);return t?n.toLowerCase():n}function Ei(e){return e?e?.toLocaleString(`fr-FR`,{style:`currency`,currency:`EUR`,minimumFractionDigits:2}):`0 €`}function Di(e,t=`DD/MM/YYYY`){return!e||!p.default.unix(e).isValid()?e:p.default.unix(e).format(t)}function Oi(e,t=`DD/MM/YYYY à HH:mm`){return Di(e,t)}var ki=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)?$/;function Ai(e,t){let n=e.replace(/\d+/g,e=>(+e+1e5).toString()),r=t.replace(/\d+/g,e=>(+e+1e5).toString());return n.localeCompare(r)}function ji(e){return e!=null&&e!==``&&!isNaN(e)}function Mi(e){return e&&(0,p.default)(e,`DD/MM/YYYY`,!0).isValid()}function Ni(e){return typeof e==`boolean`}function Pi(e,t,n){let r=!!e-+!!t;return n?-r:r}function Fi(e,t){let n=(e==null||e===``)&&typeof e!=`boolean`,r=(t==null||t===``)&&typeof t!=`boolean`;return n&&r?0:n?1:r?-1:null}function Ii(e){return typeof e==`string`&&e.includes(`€`)}function Li(e,t,n){let r=parseFloat(e.replace(`€`,``).replace(`,`,`.`).replace(/\s/g,``).trim()),i=parseFloat(t.replace(`€`,``).replace(`,`,`.`).replace(/\s/g,``).trim());if(isNaN(r)&&isNaN(i))return 0;if(isNaN(r))return 1;if(isNaN(i))return-1;let a=r-i;return n?a:-a}function Ri(e,t,n){let r=Fi(e,t);if(r!==null)return r;if(Ni(e)&&Ni(t))return Pi(e,t,n);if(ki.test(e)&&ki.test(t)){let r=Ai(e,t);return n?r:-r}if(ji(e)&&ji(t)){let r=parseFloat(e),i=parseFloat(t);return n?r-i:i-r}if(Mi(e)&&Mi(t)){let r=(0,p.default)(e,`DD/MM/YYYY`).unix(),i=(0,p.default)(t,`DD/MM/YYYY`).unix();return n?r-i:i-r}if(Ii(e)&&Ii(t))return Li(e,t,n);let i=typeof e==`string`?Ti(e)?.toLowerCase():Ti(String(e))?.toLowerCase(),a=typeof t==`string`?Ti(t)?.toLowerCase():Ti(String(t))?.toLowerCase(),o=i?.localeCompare(a,void 0,{numeric:!0,sensitivity:`base`});return n?o:-o}function zi(e,t,n=!1){return!e||!Array.isArray(e)?e:e.sort((e,r)=>{let i=e?.[t],a=r?.[t];return Ri(i,a,n)})}function Bi(e,t=!1,n){return!e||!Array.isArray(e)?e:e.sort((e,r)=>n(e,r,t))}function Vi(e,t){let n=Ui(e);if(!n)n={columns:t};else if(!n.columns)n.columns=t;else{let e=t.filter(function(e){return!n.columns.some(function(t){return t.id===e.id})});n.columns=n.columns.concat(e);let r=n.columns.filter(function(e){return!t.some(function(t){return e.id===t.id})});n.columns=n.columns.filter(function(e){return!r.some(function(t){return e.id===t.id})}),n.columns.filter(e=>{for(let n of t)n.id===e.id&&n.libelle!==e.libelle&&(e.libelle=n.libelle)})}Wi(e,n)}function Hi(e,t,n=null){let r=Ui(e);r?n&&!r[n]&&(r[n]=t):n?(r={},r[n]=t):r=t,Wi(e,r)}function Ui(e){return JSON.parse(window.localStorage.getItem(e))}function Wi(e,t,n=null){let r=Ui(e);return n?r[n]=t:r=t,window.localStorage.setItem(e,JSON.stringify(r))}var Gi=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};Fr.add(_i,mi,hi,bi,vi,Si,Ci,xi,gi,yi);var Ki={name:`AmsomTableDraggable`,components:{VueDraggableNext:n.VueDraggableNext,FontAwesomeIcon:pi},props:{tableId:{type:String,default:`table-draggable`,require:!0},defaultColumns:{type:Array,require:!0,default:null},dynamicColumns:{type:Array,default:null},localStorageItemName:{type:String,default:null},localStorageMaxItemPerPageName:{type:String,default:null},tdItemsList:{type:[Array,Object],require:!0,default:null},search:{type:String,default:null},pickedDate:{type:Array,default:null},columnNameDateFilter:{type:Array,default:null},maxItemPerPage:{type:Number,default:-1},infiniteScroll:{type:Boolean,default:!1},infiniteScrollIncrement:{type:Number,default:null},infiniteScrollThreshold:{type:Number,default:100},maxHeight:{type:[Number,String],default:null},fillBottomGap:{type:Number,default:0},maxItemPerPageList:{type:Array,default:()=>[{value:5,text:`5`},{value:10,text:`10`},{value:15,text:`15`},{value:25,text:`25`},{value:50,text:`50`},{value:100,text:`100`},{value:500,text:`500`},{value:1e3,text:`1000`},{value:-1,text:`Tous`}]},tdClass:{type:String,default:``},showMaxItemPerPageBtn:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},showModifyColumnsBtn:{type:Boolean,default:!1},showLineNumber:{type:Boolean,default:!1},ghostClass:{type:String,default:`bg-success`},headerBgColor:{type:String,default:`bg-white`},headerTextColor:{type:String,default:`text-primary`},lineEditMode:{type:Boolean,default:!1},border:{type:Boolean,default:!1},tableSm:{type:Boolean,default:!1},deepSorts:{type:Boolean,default:!1},deepSortsListPreset:{type:Array,default:null},ckSelectedItems:{type:Array,default:null},lineStatesList:{type:Array,default:()=>[{state:`add`,class:`addLineState`},{state:`delete`,class:`deleteLineState`},{state:`update`,class:`updateLineState`}]},stickyScrollbarHorizontal:{type:Boolean,default:!1},paginationPosition:{type:String,default:`left`,validator(e){return[`left`,`center`,`right`].includes(e)}},trFontSize:{type:String,default:`fs-6`},trHeightPx:{type:Number,default:60},noValueText:{type:String,default:`Aucune valeur`},editModeMaxRows:{type:Number,default:3},scrollToId:{type:[String,Number],default:null}},emits:[`changeSubject`,`lineEditModeAddNewLine`,`update:ckSelectedItems`,`update:dynamicColumns`,`update:deepSortsListPreset`,`contextmenu`,`postSaveColumns`,`postResetColumns`,`scrolled`],data(){return{checkAllCheckBox:!1,isDragging:!1,scrollHighlightId:null,sortKey:null,sortAsc:!1,currentPage:1,previousCurrentPage:1,selectedItems:[],currentHeaderSort:null,headerEditMode:!1,totalPages:null,columns:this.copyDefaultColumns(),maxItemsPerPage:this.getDefaultMaxItemPerPage(),forceTableUpdateIndex:0,resizeObserver:null,showScrollbar:!1,tableContainer:null,deepSortsList:[],isInternalUpdate:!1,currentVisibleItems:0,resolvedMaxHeightPx:0,fillHeightPx:0,heightResizeObserver:null,heightRaf:null,scrollTimeout:null,stickyColumnsUpdateTimeout:null,normalizedItemsCache:new Map,deepSortCache:null,deepSortCacheKey:``,stickyColumnsAnimationFrame:null}},computed:{currentDisplayPagination(){let e=[];return this.totalPages<=1?e:(e=this.currentPage===1?[1,2,3]:this.currentPage===this.totalPages?[this.totalPages-2,this.totalPages-1,this.totalPages]:[this.currentPage-1,this.currentPage,this.currentPage+1],e.filter(e=>e>=1&&e<=this.totalPages))},items(){return this.tdItemsList?this.tdItemsList:[]},showItemsLinesNumber(){return this.showeditems.length},dateFilterBounds(){return!this.pickedDate||!this.pickedDate[0]||!this.pickedDate[1]?null:{deb:(0,r.default)(this.pickedDate[0]).set({hour:0,minute:0}).unix(),fin:(0,r.default)(this.pickedDate[1]).set({hour:23,minute:59}).unix()}},normalizedSearch(){return this.search?Ti(this.search):``},hasDateFilter(){return this.dateFilterBounds&&Array.isArray(this.columnNameDateFilter)&&this.columnNameDateFilter.length>0},visibleColumns(){return this.columns.filter(e=>e.show&&(!e.onlyOnEditMode||this.lineEditMode))},filtereditems(){return this.items?(`${this.normalizedSearch}${this.hasDateFilter}${this.dateFilterBounds?.deb}${this.dateFilterBounds?.fin}`,this.items.filter(e=>{let t=this.filterBy(e,this.normalizedSearch);if(this.hasDateFilter){let n=this.columnNameDateFilter.some(t=>{let n=e[t];if(n){let e=(0,r.default)(n,`DD/MM/YYYY`).unix();return e>=this.dateFilterBounds.deb&&e<=this.dateFilterBounds.fin}return!1});return t&&n}return t})):[]},sortedItems(){if(!this.filtereditems)return[];if(!this.sortKey&&(!this.deepSorts||this.deepSortsList.length===0))return this.filtereditems;let e=this.columns.find(e=>e.id===this.sortKey);return this.deepSorts&&this.deepSortsList.length>0?this.deepSortsColumnList(this.deepSortsList,[...this.filtereditems]):e?.customSort?Bi([...this.filtereditems],this.sortAsc,e.customSort):e?.formatter||e?.type?Bi([...this.filtereditems],this.sortAsc,(t,n,r)=>Ri(this.formatColumnValue(t,e),this.formatColumnValue(n,e),r)):this.sortKey?zi([...this.filtereditems],this.sortKey,this.sortAsc):this.filtereditems},showeditems(){let e=this.sortedItems;if(this.infiniteScroll)return e.slice(0,this.currentVisibleItems);if(this.maxItemsPerPage===-1)return e;let t=(this.currentPage-1)*this.maxItemsPerPage,n=this.currentPage*this.maxItemsPerPage;return e.slice(t,n)},usesMaxHeight(){return this.infiniteScroll&&this.maxHeight!==null&&this.maxHeight!==void 0&&this.maxHeight!==``},usesFill(){return this.usesMaxHeight&&this.maxHeight===`fill`},infiniteScrollPageSize(){if(this.usesMaxHeight){if(this.maxItemPerPage>0)return this.maxItemPerPage;if(this.resolvedMaxHeightPx>0){let e=this.trHeightPx||60;return Math.max(1,Math.ceil(this.resolvedMaxHeightPx/e))}return 20}return this.maxItemPerPage},tableMaxHeight(){if(!this.infiniteScroll)return`auto`;if(this.usesFill)return this.fillHeightPx>0?`${this.fillHeightPx}px`:`auto`;if(this.usesMaxHeight)return typeof this.maxHeight==`number`?`${this.maxHeight}px`:String(this.maxHeight);let e=this.trHeightPx||60;return`${50+this.maxItemPerPage*e}px`},deepSortsListComputed(){return this.deepSortsList}},watch:{ckSelectedItems:{handler(e){e&&(this.selectedItems=e)},immediate:!0},dynamicColumns:{handler(e){e&&!this.isInternalUpdate&&(this.isInternalUpdate=!0,this.columns=this.getColumnsById(e,this.defaultColumns),this.$nextTick(()=>{this.isInternalUpdate=!1}))},immediate:!0},columns:{handler(e){this.localStorageItemName!==null&&Wi(this.localStorageItemName,this.getRefactoColumns(e),`columns`),this.dynamicColumns&&!this.isInternalUpdate&&(this.isInternalUpdate=!0,this.$emit(`update:dynamicColumns`,this.getRefactoColumns(e)),this.$nextTick(()=>{this.isInternalUpdate=!1})),this.forceTableUpdateIndex+=1}},headerEditMode:{handler(e){if(e)this.maxItemsPerPage=this.editModeMaxRows;else{let e=this.localStorageMaxItemPerPageName===null?this.localStorageItemName===null?this.maxItemPerPage:Ui(this.localStorageItemName)?.maxItemPerPage:Ui(this.localStorageMaxItemPerPageName);this.maxItemsPerPage=e??this.maxItemPerPage}}},sortedItems:{handler(e){if(this.infiniteScroll){let t=this.infiniteScrollIncrement||this.infiniteScrollPageSize;this.currentVisibleItems===0?this.currentVisibleItems=Math.min(this.infiniteScrollPageSize+t,e.length):this.currentVisibleItems=Math.min(this.currentVisibleItems,e.length)}this.infiniteScroll||(this.totalPages=this.newTotalPage(e.length))},immediate:!0},filtereditems:{handler(e,t){if(this.infiniteScroll&&t&&e.length!==t.length)if(e.length>t.length&&this.currentVisibleItems<e.length){let t=this.infiniteScrollIncrement||this.infiniteScrollPageSize;this.currentVisibleItems=Math.min(this.infiniteScrollPageSize+t,e.length)}else e.length<t.length&&this.currentVisibleItems>e.length&&(this.currentVisibleItems=Math.min(this.currentVisibleItems,e.length))},immediate:!1},maxItemPerPage:{handler(e){e!==this.maxItemsPerPage&&(this.maxItemsPerPage=e)},immediate:!0},maxItemsPerPage:{handler(e){if(!this.headerEditMode){if(this.localStorageItemName!==null&&Wi(this.localStorageItemName,e,`maxItemPerPage`),this.localStorageMaxItemPerPageName!==null&&Wi(this.localStorageMaxItemPerPageName,e),this.infiniteScroll){let t=this.infiniteScrollIncrement||e;this.currentVisibleItems=Math.min(e+t,this.sortedItems.length)}this.currentPage!==1&&!this.infiniteScroll&&(this.currentPage=1),this.infiniteScroll||(this.totalPages=this.newTotalPage(this.filtereditems.length))}}},search:{handler(e,t){e!==t&&(this.normalizedItemsCache.clear(),this.currentPage>1&&this.$nextTick(()=>{this.adjustPageAfterSearch()}),this.infiniteScroll&&this.$nextTick(()=>{let e=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+e,this.filtereditems.length)}))},immediate:!1},showeditems:{handler(e,t){e!==t&&(this.shouldAdjustPage(e)&&this.adjustPageAfterSearch(),e.length>0?this.checkAllCheckBox=e.every(e=>this.selectedItems.includes(e.id)):this.checkAllCheckBox=!1,this.infiniteScroll||(this.totalPages=this.newTotalPage(this.filtereditems.length)),this.columns.some(e=>e.stickyLeft||e.stickyRight)&&this.$nextTick(()=>{this.debouncedUpdateStickyColumns()}))},flush:`post`},deepSortsList:{handler(e){e&&e.length>0&&this.$emit(`update:deepSortsListPreset`,e),this.infiniteScroll&&this.currentVisibleItems>0&&this.$nextTick(()=>{let e=this.currentVisibleItems;this.currentVisibleItems=Math.min(e,this.sortedItems.length)})},deep:!0},deepSortsListPreset:{handler(e){e&&e.length>0&&JSON.stringify(e)!==JSON.stringify(this.deepSortsList)&&(this.deepSortsList=e.map(e=>{let t=this.columns.find(t=>t.id===e.id);return{...e,customSort:t?.customSort||e.customSort||null}}))},deep:!0,immediate:!0},scrollToId:{handler(e){e!=null&&this.scrollToItem(e)}},tdItemsList:{handler(e,t){e!==t&&this.columns.some(e=>e.stickyLeft||e.stickyRight)&&this.$nextTick(()=>{this.debouncedUpdateStickyColumns()})},deep:!0,immediate:!1}},mounted(){if(this.localStorageItemName!==null){Vi(this.localStorageItemName,this.getRefactoColumns(this.copyDefaultColumns())),Hi(this.localStorageItemName,this.maxItemPerPage,`maxItemPerPage`);let e=Ui(this.localStorageItemName);e&&(this.columns=this.getColumnsById(e.columns,this.defaultColumns),this.maxItemsPerPage=e.maxItemPerPage)}if(this.localStorageMaxItemPerPageName!==null){let e=Ui(this.localStorageMaxItemPerPageName);e&&(this.maxItemsPerPage=e)}if(this.dynamicColumns&&(this.columns=this.getColumnsById(this.dynamicColumns,this.defaultColumns)),this.ckSelectedItems&&(this.selectedItems=this.ckSelectedItems),this.infiniteScroll){let e=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+e,this.filtereditems.length)}else this.totalPages=this.newTotalPage(this.filtereditems.length);if(this.initResizeObserver(),!this.deepSorts){let e=this.columns.find(e=>e.isSorted!==null&&e.isSorted!==void 0);e&&(this.sortKey=e.id,this.sortAsc=e.isSorted,this.currentHeaderSort=e)}this.deepSortsListPreset&&this.deepSortsListPreset.length>0&&this.deepSorts&&(this.deepSortsList=this.deepSortsListPreset.map(e=>{let t=this.columns.find(t=>t.id===e.id);return{...e,customSort:t?.customSort||e.customSort||null}})),this.stickyScrollbarHorizontal&&(this.checkTableOverflow(),window.addEventListener(`resize`,this.checkTableOverflow),window.addEventListener(`scroll`,this.handleTableScroll)),this.tableContainer=this.$refs.table?.closest(`.overflow-x-auto`),this.infiniteScroll&&this.usesMaxHeight&&this.$nextTick(()=>this.initHeightObserver())},beforeUnmount(){this.cleanupResizeObserver(),this.cleanupHeightObserver(),window.removeEventListener(`resize`,this.checkTableOverflow),window.removeEventListener(`scroll`,this.handleTableScroll),this.scrollTimeout&&=(clearTimeout(this.scrollTimeout),null),this.stickyColumnsUpdateTimeout&&=(clearTimeout(this.stickyColumnsUpdateTimeout),null),this.stickyColumnsAnimationFrame&&=(cancelAnimationFrame(this.stickyColumnsAnimationFrame),null),this.normalizedItemsCache.clear(),this.deepSortCache=null},methods:{moment:r.default,unixToDateString:Di,unixToDateTimeString:Oi,toCurrencyEUR:Ei,formatColumnValue(e,t){let n=e[t.id];if(t.formatter&&typeof t.formatter==`function`)return t.formatter(n,e);if(t.type)switch(t.type){case`unixDate`:return n?Di(n):``;case`unixDateTime`:return n?Oi(n):``;case`currency`:return n==null?``:Ei(n);default:return n}return n},shouldAdjustPage(e){return e.length===0&&this.filtereditems.length>0&&this.currentPage>1&&!this.infiniteScroll},getRefactoColumns(e){return e.map(e=>({id:e.id,show:e.show}))},getColumnsById(e,t){return e.map(e=>({...t.find(t=>t.id===e.id),show:e.show}))},adjustPageAfterSearch(){if(this.filtereditems.length>0&&this.showeditems.length===0){let e=Math.ceil(this.filtereditems.length/this.maxItemsPerPage);e>0&&e!==this.currentPage&&(this.currentPage=e)}else this.filtereditems.length===0&&(this.currentPage=1)},initResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{this.updateStickyColumns()});let e=this.$refs.table;e&&this.resizeObserver.observe(e)},handleTableScroll(){this.tableContainer&&(Math.ceil(window.scrollY+window.innerHeight)>=this.tableContainer.scrollHeight?this.showScrollbar=!1:this.checkTableOverflow())},checkTableOverflow(){this.$nextTick(()=>{let e=document.querySelector(`#${this.tableId}-bottom-scrollbar`);if(this.tableContainer&&e){let t=this.tableContainer.scrollHeight,n=window.innerHeight;this.showScrollbar=t>n,this.showScrollbar&&(document.querySelector(`#${this.tableId}-bottom-scrollbar .scrollbar-content`).style.width=this.tableContainer.scrollWidth+`px`,e.addEventListener(`scroll`,()=>{this.tableContainer.scrollLeft=e.scrollLeft}),this.tableContainer.addEventListener(`scroll`,()=>{e.scrollLeft=this.tableContainer.scrollLeft}))}})},cleanupResizeObserver(){this.resizeObserver&&=(this.resizeObserver.disconnect(),null)},computeFillHeight(){let e=this.$refs.scrollContainer;if(!e)return;let t=e.getBoundingClientRect().top,n=this.trHeightPx||60;this.fillHeightPx=Math.max(n+50,Math.floor(window.innerHeight-t-this.fillBottomGap))},measureResolvedHeight(){let e=this.$refs.scrollContainer;e&&(this.resolvedMaxHeightPx=e.clientHeight)},syncInfiniteFill(){if(!this.infiniteScroll||!this.usesMaxHeight)return;let e=this.$refs.scrollContainer;if(!e)return;let t=this.trHeightPx||60,n=this.infiniteScrollIncrement||1,r=Math.max(1,Math.ceil(e.clientHeight/t))+n;this.currentVisibleItems<r&&(this.currentVisibleItems=Math.min(r,this.sortedItems.length))},refreshMaxHeight(){this.heightRaf||=requestAnimationFrame(()=>{this.heightRaf=null,this.usesFill&&this.computeFillHeight(),this.$nextTick(()=>{this.measureResolvedHeight(),this.syncInfiniteFill()})})},initHeightObserver(){if(!this.usesMaxHeight)return;this.heightResizeObserver=new ResizeObserver(()=>this.refreshMaxHeight()),this.heightResizeObserver.observe(document.body);let e=this.$refs.scrollContainer;e&&this.heightResizeObserver.observe(e),this.refreshMaxHeight()},cleanupHeightObserver(){this.heightResizeObserver&&=(this.heightResizeObserver.disconnect(),null),this.heightRaf&&=(cancelAnimationFrame(this.heightRaf),null)},updateStickyColumns(){this.columns.some(e=>e.stickyLeft||e.stickyRight)&&document.getElementById(this.tableId)&&(this.stickyColumnsAnimationFrame&&cancelAnimationFrame(this.stickyColumnsAnimationFrame),this.stickyColumnsAnimationFrame=requestAnimationFrame(()=>{let e=[];this.columns.forEach((t,n)=>{if(!t.stickyLeft&&!t.stickyRight)return;let r=document.getElementById(`${this.tableId}-${t.id}-th-${n}`);if(!r)return;let i=document.querySelectorAll(`#${this.tableId} [data-column-id="${t.id}"]`),a=r.getBoundingClientRect().width,o=0;i.forEach(e=>{let t=e.getBoundingClientRect().width;t>o&&(o=t)}),e.push({column:t,thElement:r,tdElements:i,width:Math.max(o,a)-1})});let t=0,n=0;e.forEach(({column:e,thElement:r,tdElements:i,width:a})=>{if(e.stickyLeft){let e=`${t}px`;r.style.left=e,i.forEach(t=>{t.style.left=e}),t+=a}if(e.stickyRight){let e=`${n}px`;r.style.right=e,i.forEach(t=>{t.style.right=e}),n+=a}}),this.stickyColumnsAnimationFrame=null}))},newTotalPage(e){return Math.ceil(e/this.maxItemsPerPage)},lineStateClass(e){let t=this.lineStatesList.find(t=>t.state===e);return t?t.class:``},checkItem(e){let t=this.selectedItems.indexOf(e);if(t!==-1)this.selectedItems.splice(t,1),this.checkAllCheckBox=!1;else if(this.selectedItems.push(e),!this.checkAllCheckBox){let e=this.showeditems.map(e=>e.id);this.checkAllCheckBox=e.every(e=>this.selectedItems.includes(e))}this.$emit(`update:ckSelectedItems`,this.selectedItems)},toggleAllCheckBox(){let e=(this.infiniteScroll?this.sortedItems:this.showeditems).map(e=>e.id);if(this.checkAllCheckBox){let t=new Set(e);this.selectedItems=this.selectedItems.filter(e=>!t.has(e)),this.checkAllCheckBox=!1}else{let t=new Set([...this.selectedItems,...e]);this.selectedItems=Array.from(t),this.checkAllCheckBox=!0}this.$emit(`update:ckSelectedItems`,this.selectedItems)},updateCurrentSort(e){this.currentHeaderSort&&(this.currentHeaderSort.isSorted=null);let t=this.infiniteScroll?this.currentVisibleItems:null;this.updateSortitems(e.id),e.isSorted=this.sortAsc,this.currentHeaderSort=e,this.infiniteScroll&&t&&this.$nextTick(()=>{this.currentVisibleItems=Math.min(t,this.sortedItems.length)})},checkMove(e){let t=this.columns.reduce((e,t,n)=>(t.fixed&&e.push(n),e),[]);return!t.includes(e.draggedContext.index)&&!t.includes(e.relatedContext.index)},filterBy(e,t){if(!t)return!0;let n=`${e.id}_${t}`;if(this.normalizedItemsCache.has(n))return this.normalizedItemsCache.get(n);let r=this.visibleColumns.filter(e=>!e.noSearch).some(n=>{if(n.customSearch&&typeof n.customSearch==`function`)return n.customSearch(e,t);let r=e[n.id];if(n.type||n.formatter){let r=this.formatColumnValue(e,n);if(r&&Ti(r.toString()).includes(t))return!0}return r&&Ti(r.toString()).includes(t)});return this.normalizedItemsCache.size>1e3&&this.normalizedItemsCache.clear(),this.normalizedItemsCache.set(n,r),r},getDefaultMaxItemPerPage(){return this.maxItemPerPage},copyDefaultColumns(){return this.defaultColumns.map(e=>{let t={};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];typeof r==`function`||r==null?t[n]=r:Array.isArray(r)?t[n]=[...r]:typeof r==`object`?t[n]={...r}:t[n]=r}return t})},getTableContent(){return this.items},getColumns(){return this.columns},getNbLines(){return this.showeditems.length},updateSortitems(e){this.items&&(this.sortKey===e?this.sortAsc=!this.sortAsc:(this.sortAsc=!0,this.sortKey=e))},selectSubject(e){this.$emit(`changeSubject`,e)},saveTablePreferences(){this.localStorageItemName!==null&&Wi(this.localStorageItemName,this.getRefactoColumns(this.columns),`columns`),this.dynamicColumns&&this.$emit(`update:dynamicColumns`,this.getRefactoColumns(this.columns)),this.headerEditMode=!1,this.currentPage=this.previousCurrentPage,this.$emit(`postSaveColumns`)},resetTablePreferences(){this.columns=this.copyDefaultColumns(),this.localStorageItemName!==null&&Vi(this.localStorageItemName,this.getRefactoColumns(this.columns)),this.dynamicColumns&&this.$emit(`update:dynamicColumns`,this.getRefactoColumns(this.columns)),this.currentPage=this.previousCurrentPage,this.$emit(`postResetColumns`)},editTablePreferences(){this.headerEditMode=!0,this.previousCurrentPage=this.currentPage,this.currentPage=1},addDeepSort(e){let t=this.infiniteScroll?this.currentVisibleItems:null;this.deepSortCache=null,this.deepSortCacheKey=``,this.deepSortsList.push({id:e.id,libelle:e.libelle,asc:!0,customSort:e.customSort||null}),this.infiniteScroll&&t&&this.$nextTick(()=>{this.currentVisibleItems=Math.min(t,this.sortedItems.length)})},toggleDeepSortDirection(e){this.deepSortCache=null,this.deepSortCacheKey=``,e.asc=!e.asc},deepSortsColumnList(e,t){if(!e||e.length===0)return t;let n=JSON.stringify(e.map(e=>({id:e.id,asc:e.asc})));return this.deepSortCache&&this.deepSortCacheKey===n?t.sort((t,n)=>{for(let r of e){let e;if(r.customSort)e=r.customSort(t,n,r.asc);else{let i=t[r.id],a=n[r.id];e=Ri(i,a,r.asc)}if(e!==0)return e}return 0}):(this.deepSortCacheKey=n,this.deepSortCache=!0,t.sort((t,n)=>{for(let r of e){let e;if(r.customSort)e=r.customSort(t,n,r.asc);else{let i=t[r.id],a=n[r.id];e=Ri(i,a,r.asc)}if(e!==0)return e}return 0}))},handleScrollEvent(e){if(this.infiniteScroll){if(this.scrollTimeout)return;this.scrollTimeout=setTimeout(()=>{this.handleInfiniteScroll(e),this.scrollTimeout=null},50)}},handleInfiniteScroll(e){let{target:t}=e,n=this.infiniteScrollThreshold;if(t.scrollTop+t.clientHeight>=t.scrollHeight-n&&this.currentVisibleItems<this.sortedItems.length){let e=this.infiniteScrollIncrement||this.infiniteScrollPageSize,t=Math.min(this.currentVisibleItems+e,this.sortedItems.length);t>this.currentVisibleItems&&(this.currentVisibleItems=t)}},handleContextMenu(e,t){let n=null,r=e.target.closest(`td`);if(r){let e=r.getAttribute(`data-column-id`);e&&(n=this.columns.find(t=>t.id===e))}this.$emit(`contextmenu`,{event:e,item:t,column:n})},refreshStickyColumns(){this.columns.some(e=>e.stickyLeft||e.stickyRight)&&this.$nextTick(()=>{this.updateStickyColumns()})},debouncedUpdateStickyColumns(){this.stickyColumnsUpdateTimeout&&clearTimeout(this.stickyColumnsUpdateTimeout),this.stickyColumnsUpdateTimeout=setTimeout(()=>{this.updateStickyColumns(),this.stickyColumnsUpdateTimeout=null},50)},scrollToItem(e){let t=this.sortedItems.findIndex(t=>t.id===e);if(t===-1)return;let n=this.sortedItems[t],r=`${this.tableId}-row-${n.id}`;this.$emit(`scrolled`,{value:e,index:t,id:n.id});let i=()=>{this.scrollHighlightId=n.id,clearTimeout(this.$_highlightTimer),this.$_highlightTimer=setTimeout(()=>{this.scrollHighlightId=null},1800)},a=()=>{this.$nextTick(()=>{let e=this.$refs.table?.querySelector(`[id="${r}"]`)||document.getElementById(r);if(e)if(i(),this.infiniteScroll&&this.$refs.scrollContainer){let t=this.$refs.scrollContainer,n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.top-r.top-(r.height-n.height)/2;t.scrollBy({top:i,behavior:`smooth`})}else e.scrollIntoView({behavior:`smooth`,block:`center`})})};if(this.infiniteScroll)this.currentVisibleItems<=t&&(this.currentVisibleItems=t+1),a();else if(this.maxItemsPerPage!==-1){let e=Math.ceil((t+1)/this.maxItemsPerPage);this.currentPage!==e&&(this.currentPage=e),a()}else a()}}},qi={key:0,class:`mb-3 text-center`},Ji={key:1,class:`row mb-1 mx-auto`},Yi={key:0,class:`btn btn-sm btn-outline-secondary cursor-default align-self-center bg-transparent text-secondary border-secondary d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-1`,style:{height:`20px`}},Xi={class:`text-nowrap`},Zi={class:`d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-1 mx-2 user-select-none`},Qi={key:0,class:`text-nowrap`,style:{height:`20px`}},$i=[`value`],ea={key:1,class:`d-flex align-items-center text-nowrap`},ta={key:0,class:`d-flex ms-2`},na=[`title`],ra={class:`badge bg-info fs-6`},ia={class:`row mx-auto mb-3 rounded-0`},aa=[`id`],oa=[`id`],sa=[`id`,`onDragstart`,`onDragend`],ca={class:`d-flex flex-column align-items-center`},la={key:0,class:`mx-auto my-auto mb-2 mt-2 hoverable d-inline-block`},ua={class:`d-inline-flex text-nowrap`},Z={key:0,class:`ms-2 float-end`},da={key:1,class:`ms-2`},fa={key:1},pa=[`id`],Q=[`id`],ma={class:`d-inline-flex text-nowrap`},ha={key:1,class:`ms-2 hoverable`},ga={key:0},_a=[`colspan`],va=[`id`],ya=[`id`,`onClick`,`onContextmenu`],ba=[`data-column-id`,`onClick`],xa=[`id`,`value`],Sa=[`data-column-id`],Ca={key:3,class:`row ms-auto mb-2`},wa={class:`m-0 pagination pagination-sm`},Ta={class:`page-item hoverable`},Ea={class:`page-item hoverable`},Da=[`onClick`],Oa={class:`page-item hoverable`},ka={class:`page-item hoverable`},Aa=[`id`];function ja(e,n,r,i,a,o){let s=(0,t.resolveComponent)(`font-awesome-icon`),c=(0,t.resolveComponent)(`vue-draggable-next`);return(0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[r.lineEditMode?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qi,[(0,t.createElementVNode)(`button`,{type:`button`,class:`btn btn-success rounded-5 m-0 p-0`,style:{height:`45px`,width:`45px`},onClick:n[0]||=t=>e.$emit(`lineEditModeAddNewLine`)},[(0,t.createVNode)(s,{icon:`fa-solid fa-plus`,size:`xl`})])])):(0,t.createCommentVNode)(``,!0),r.showLineNumber||r.showModifyColumnsBtn||r.showMaxItemPerPageBtn||r.deepSorts?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ji,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`d-flex justify-content-start p-0`,r.deepSorts&&a.deepSortsList.length>0&&r.showModifyColumnsBtn?`col-12 col-sm-8 col-lg-9 col-xl-10`:`col`])},[r.showLineNumber?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Yi,[(0,t.createElementVNode)(`b`,Xi,(0,t.toDisplayString)(o.showItemsLinesNumber+` / `+o.filtereditems.length),1),n[20]||=(0,t.createElementVNode)(`span`,{class:`ms-1`},`lignes`,-1)])):(0,t.createCommentVNode)(``,!0),r.deepSorts&&a.deepSortsList.length>0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)([`d-flex align-items-center flex-wrap`,{"ms-4":r.showLineNumber}])},[n[21]||=(0,t.createElementVNode)(`span`,{class:`me-1 text-secondary h-auto fs-7 mb-1 mb-lg-0`},`Tri :`,-1),(0,t.createVNode)(c,{modelValue:a.deepSortsList,"onUpdate:modelValue":n[1]||=e=>a.deepSortsList=e,tag:`div`,group:`deepSorts`,class:`d-flex flex-wrap`,"ghost-class":`deep-filter-ghost-class`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.deepSortsList,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:`d-flex align-items-center border border-secondary hoverable-grab text-secondary rounded-1 fs-7 px-2 py-0 me-2 mb-1 mb-lg-0`,style:{height:`20px`}},[(0,t.createVNode)(s,{class:`hoverable`,icon:`fa-solid fa-xmark`,onClick:e=>a.deepSortsList.splice(n,1)},null,8,[`onClick`]),(0,t.createElementVNode)(`div`,Zi,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.libelle),1)]),(0,t.createVNode)(s,{class:`hoverable`,icon:e.asc?`fa-solid fa-arrow-down-short-wide`:`fa-solid fa-arrow-down-wide-short`,onClick:t=>o.toggleDeepSortDirection(e)},null,8,[`icon`,`onClick`])]))),128))]),_:1},8,[`modelValue`])],2)):(0,t.createCommentVNode)(``,!0)],2),r.showMaxItemPerPageBtn||r.showModifyColumnsBtn?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([`d-flex align-items-center justify-content-end p-0`,r.deepSorts&&a.deepSortsList.length>0?`col-12 col-sm-4 col-lg-3 col-xl-2 mt-1 mt-sm-0`:`col`])},[r.showMaxItemPerPageBtn&&!a.headerEditMode?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Qi,[r.maxItemPerPageList.length>0?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`select`,{key:0,"onUpdate:modelValue":n[2]||=e=>a.maxItemsPerPage=e,class:`form-select d-flex justify-content-center align-items-center ms-auto py-0 rounded-3 select-max-item-per-page`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.maxItemPerPageList,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`option`,{key:e.value,value:e.value},(0,t.toDisplayString)(e.text),9,$i))),128))],512)),[[t.vModelSelect,a.maxItemsPerPage]]):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0),r.showModifyColumnsBtn?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ea,[a.headerEditMode?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ta,[(0,t.createElementVNode)(`button`,{id:`btn-reset-table`,class:`btn btn-sm btn-outline-danger d-flex justify-content-center align-items-center ms-auto me-2 px-2 py-0 rounded-3`,type:`button`,onClick:n[3]||=(...e)=>o.resetTablePreferences&&o.resetTablePreferences(...e)},` Réinitialiser le tableau `),(0,t.createElementVNode)(`button`,{id:`btn-save-table`,class:`btn btn-sm btn-success d-flex justify-content-center align-items-center px-2 py-0 rounded-3`,type:`button`,onClick:n[4]||=(...e)=>o.saveTablePreferences&&o.saveTablePreferences(...e)},` Sauvegarder `)])):((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,id:`btn-edit-table`,class:`btn btn-sm btn-outline-secondary d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-3 ms-2`,style:{height:`20px`},type:`button`,onClick:n[5]||=(...e)=>o.editTablePreferences&&o.editTablePreferences(...e)},` Modifier colonnes `))])):(0,t.createCommentVNode)(``,!0)],2)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0),a.headerEditMode?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,title:`Déplacez les colonnes pour les réorganiser et utilisez l'icône œil pour les afficher ou les masquer. Seules ${r.editModeMaxRows} lignes sont affichées pour faciliter les modifications.`,class:`d-flex justify-content-center align-items-center mb-3`},[(0,t.createElementVNode)(`div`,ra,[(0,t.createVNode)(s,{icon:`fa-solid fa-circle-info`,class:`me-2`}),n[22]||=(0,t.createTextVNode)(` Vous êtes entrain d'éditer l'affichage du tableau `,-1)])],8,na)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,ia,[(0,t.createElementVNode)(`div`,{ref:`scrollContainer`,class:(0,t.normalizeClass)([`col-12 p-0 overflow-x-auto mb-2`,{border:r.infiniteScroll,"infinite-scroll-container":r.infiniteScroll}]),style:(0,t.normalizeStyle)(r.infiniteScroll?{maxHeight:o.tableMaxHeight,overflowY:`auto`,borderRadius:`10px`}:{borderRadius:`10px !important`}),onScroll:n[15]||=(...e)=>o.handleScrollEvent&&o.handleScrollEvent(...e)},[((0,t.openBlock)(),(0,t.createElementBlock)(`table`,{id:r.tableId,ref:`table`,key:a.forceTableUpdateIndex,class:(0,t.normalizeClass)([`table table-striped table-responsive align-middle border-1 border-top border-bottom position-relative m-0`,[r.border?`table-bordered`:`table-borderless`,r.tableSm?`table-sm`:``,r.clickable&&!a.headerEditMode?`table-hover cursor-pointer`:``]]),style:(0,t.normalizeStyle)([{"border-collapse":`separate`,"border-spacing":`0`},{borderLeft:r.border?``:`1px solid #ddd`,borderRight:r.border?``:`1px solid #ddd`}])},[(0,t.createElementVNode)(`thead`,null,[a.headerEditMode?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,modelValue:a.columns,"onUpdate:modelValue":n[9]||=e=>a.columns=e,"ghost-class":r.ghostClass,"drag-class":r.ghostClass,tag:`tr`,move:o.checkMove,group:`columns`},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.columns,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i.id},[i.id===`checkBox`?((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{key:0,id:`${r.tableId}-${i.id}-th-${c}`,class:(0,t.normalizeClass)([`text-center`,[r.headerBgColor,i.stickyLeft?`sticky-column-left`:``,i.stickyRight?`sticky-column-right`:``,r.infiniteScroll?`sticky-top`:``]]),scope:`col`,onClick:n[8]||=(0,t.withModifiers)((...e)=>o.toggleAllCheckBox&&o.toggleAllCheckBox(...e),[`stop`])},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{id:`checkBoxSelectAll`,"onUpdate:modelValue":n[6]||=e=>a.checkAllCheckBox=e,class:`form-check-input`,type:`checkbox`,onClick:n[7]||=(0,t.withModifiers)((...e)=>o.toggleAllCheckBox&&o.toggleAllCheckBox(...e),[`stop`])},null,512),[[t.vModelCheckbox,a.checkAllCheckBox]])],10,oa)):(i.show||a.headerEditMode)&&(!i.onlyOnEditMode||r.lineEditMode)?((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{key:1,id:`${r.tableId}-${i.id}-th-${c}`,scope:`col`,class:(0,t.normalizeClass)([`text-center`,[i.isDragging?`hoverable-grabbing`:r.headerBgColor+` hoverable-grab`,i.stickyLeft?`sticky-column-left`:``,i.stickyRight?`sticky-column-right`:``,r.headerTextColor,r.infiniteScroll?`sticky-top`:``,{"table-danger":!i.show}]]),onDragstart:e=>i.isDragging=!0,onDragend:e=>i.isDragging=!1},[(0,t.createElementVNode)(`div`,ca,[a.headerEditMode&&!i.keepShow?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,la,[i.show?((0,t.openBlock)(),(0,t.createBlock)(s,{key:0,icon:`fa-solid fa-eye`,class:`fa-lg`,onClick:e=>i.show=!1},null,8,[`onClick`])):((0,t.openBlock)(),(0,t.createBlock)(s,{key:1,icon:`fa-solid fa-eye-slash`,class:`fa-lg`,onClick:e=>i.show=!0},null,8,[`onClick`]))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,ua,[(0,t.renderSlot)(e.$slots,`tableHeaderTh`,{header:i},void 0,!0),i.isSortable&&!r.deepSorts?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Z,[(0,t.createVNode)(s,{icon:a.sortKey!==i.id||a.sortKey===i.id&&!a.sortAsc?`fa-solid fa-arrow-down-wide-short`:`fa-solid fa-arrow-down-short-wide`,class:`hoverable`,onClick:e=>o.updateCurrentSort(i)},null,8,[`icon`,`onClick`])])):r.deepSorts&&!a.deepSortsList.some(e=>e.id===i.id)&&i.isSortable?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,da,[(0,t.createVNode)(s,{icon:`fa-solid fa-filter`,onClick:e=>o.addDeepSort(i)},null,8,[`onClick`])])):(0,t.createCommentVNode)(``,!0)])])],42,sa)):(0,t.createCommentVNode)(``,!0)],64))),128))]),_:3},8,[`modelValue`,`ghost-class`,`drag-class`,`move`])):((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,fa,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.columns,(i,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:i.id},[i.id===`checkBox`?((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{key:0,id:`${r.tableId}-${i.id}-th-${c}`,class:(0,t.normalizeClass)([`text-center`,[r.headerBgColor,i.stickyLeft?`sticky-column-left`:``,i.stickyRight?`sticky-column-right`:``,r.infiniteScroll?`sticky-top`:``]]),scope:`col`,onClick:n[12]||=(0,t.withModifiers)((...e)=>o.toggleAllCheckBox&&o.toggleAllCheckBox(...e),[`stop`])},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{id:`checkBoxSelectAll`,"onUpdate:modelValue":n[10]||=e=>a.checkAllCheckBox=e,class:`form-check-input`,type:`checkbox`,onClick:n[11]||=(0,t.withModifiers)((...e)=>o.toggleAllCheckBox&&o.toggleAllCheckBox(...e),[`stop`])},null,512),[[t.vModelCheckbox,a.checkAllCheckBox]])],10,pa)):i.show&&(!i.onlyOnEditMode||r.lineEditMode)?((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{key:1,id:`${r.tableId}-${i.id}-th-${c}`,scope:`col`,class:(0,t.normalizeClass)([`text-center`,[i.isDragging?``:r.headerBgColor,i.stickyLeft?`sticky-column-left`:``,i.stickyRight?`sticky-column-right`:``,r.headerTextColor,r.infiniteScroll?`sticky-top`:``]])},[(0,t.createElementVNode)(`div`,ma,[(0,t.renderSlot)(e.$slots,`tableHeaderTh`,{header:i},void 0,!0),i.isSortable&&!r.deepSorts?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([`ms-2 float-end hoverable`,{"opacity-50":a.sortKey!==i.id}])},[(0,t.createVNode)(s,{icon:a.sortKey!==i.id||a.sortKey===i.id&&!a.sortAsc?`fa-solid fa-arrow-down-wide-short`:`fa-solid fa-arrow-down-short-wide`,onClick:e=>o.updateCurrentSort(i)},null,8,[`icon`,`onClick`])],2)):r.deepSorts&&!a.deepSortsList.some(e=>e.id===i.id)&&i.isSortable?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,ha,[(0,t.createVNode)(s,{icon:`fa-solid fa-filter`,onClick:e=>o.addDeepSort(i)},null,8,[`onClick`])])):(0,t.createCommentVNode)(``,!0)])],10,Q)):(0,t.createCommentVNode)(``,!0)],64))),128))]))]),(0,t.createElementVNode)(`tbody`,null,[o.showeditems?.length===0?((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,ga,[(0,t.createElementVNode)(`th`,{colspan:a.columns.length,class:`text-center`,style:{"border-top-left-radius":`0px !important`,"border-top-right-radius":`0px !important`}},[(0,t.createElementVNode)(`span`,{id:`${r.tableId}-no-value`,class:`text-danger fs-5`},(0,t.toDisplayString)(r.noValueText),9,va)],8,_a)])):((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(o.showeditems,(i,s)=>((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,{id:`${r.tableId}-row-${i.id}`,key:i.id,class:(0,t.normalizeClass)([{hoverable:r.clickable&&!a.headerEditMode,"hoverable-no-drop":r.clickable&&a.headerEditMode,"scroll-to-highlight":i.id===a.scrollHighlightId},r.trFontSize]),style:(0,t.normalizeStyle)({height:r.trHeightPx+`px`}),onClick:e=>r.clickable&&!a.headerEditMode?o.selectSubject(i):null,onContextmenu:e=>o.handleContextMenu(e,i)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.columns,c=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:c.id},[c.id===`checkBox`?((0,t.openBlock)(),(0,t.createElementBlock)(`td`,{key:0,"data-column-id":c.id,class:(0,t.normalizeClass)([`text-center`,[r.tdClass,i.lineState?o.lineStateClass(i.lineState):``,c.stickyLeft?`sticky-column-left`:``,c.stickyRight?`sticky-column-right`:``]]),onClick:(0,t.withModifiers)(e=>o.checkItem(i.id),[`stop`])},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{id:`${r.tableId}-checkbox-${s}`,"onUpdate:modelValue":n[13]||=e=>a.selectedItems=e,type:`checkbox`,class:`form-check-input hoverable`,value:i.id,onClick:n[14]||=(0,t.withModifiers)(()=>{},[`stop`])},null,8,xa),[[t.vModelCheckbox,a.selectedItems]])],10,ba)):(c.show||a.headerEditMode)&&(!c.onlyOnEditMode||r.lineEditMode)?((0,t.openBlock)(),(0,t.createElementBlock)(`td`,{key:1,"data-column-id":c.id,class:(0,t.normalizeClass)([[r.tdClass,c.show?``:`table-danger`,!r.deepSorts&&c.isSorted!==null&&c.isSorted!==void 0?`bg-gray-200`:``,i.lineState?o.lineStateClass(i.lineState):``,c.stickyLeft?`sticky-column-left`:``,c.stickyRight?`sticky-column-right`:``],`text-center text-nowrap`])},[(0,t.renderSlot)(e.$slots,`tableBodyTd`,{header:c,item:i,formattedValue:o.formatColumnValue(i,c)},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o.formatColumnValue(i,c)),1)],!0)],10,Sa)):(0,t.createCommentVNode)(``,!0)],64))),128))],46,ya))),128))])],14,aa))],38)]),!r.infiniteScroll&&a.totalPages&&a.totalPages>1||r.stickyScrollbarHorizontal?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,Ca,[!r.infiniteScroll&&a.totalPages&&a.totalPages>1?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:(0,t.normalizeClass)([`col p-0 me-3 d-flex`,{"justify-content-center":r.paginationPosition===`center`,"justify-content-end":r.paginationPosition===`right`,"justify-content-start":r.paginationPosition===`left`}])},[(0,t.createElementVNode)(`ul`,wa,[(0,t.createElementVNode)(`li`,Ta,[(0,t.createElementVNode)(`a`,{class:(0,t.normalizeClass)([`page-link`,{disabled:a.currentPage===1}]),onClick:n[16]||=e=>a.currentPage=1},` « `,2)]),(0,t.createElementVNode)(`li`,Ea,[(0,t.createElementVNode)(`a`,{class:(0,t.normalizeClass)([`page-link`,{disabled:a.currentPage===1}]),onClick:n[17]||=e=>--a.currentPage},` < `,2)]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.currentDisplayPagination,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:e,class:(0,t.normalizeClass)([`page-item hoverable`,{active:a.currentPage===e}])},[(0,t.createElementVNode)(`a`,{class:`page-link`,onClick:t=>a.currentPage=e},(0,t.toDisplayString)(e),9,Da)],2))),128)),(0,t.createElementVNode)(`li`,Oa,[(0,t.createElementVNode)(`a`,{class:(0,t.normalizeClass)([`page-link`,{disabled:a.currentPage===a.totalPages}]),onClick:n[18]||=e=>a.currentPage+=1},` > `,2)]),(0,t.createElementVNode)(`li`,ka,[(0,t.createElementVNode)(`a`,{class:(0,t.normalizeClass)([`page-link`,{disabled:a.currentPage===a.totalPages}]),onClick:n[19]||=e=>a.currentPage=a.totalPages},` » `,2)])])],2)):(0,t.createCommentVNode)(``,!0),r.stickyScrollbarHorizontal?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,id:`${r.tableId}-bottom-scrollbar`,class:(0,t.normalizeClass)([`bottom-scrollbar`,{visible:a.showScrollbar}])},[...n[23]||=[(0,t.createElementVNode)(`div`,{class:`scrollbar-content`},null,-1)]],10,Aa)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0)],64)}var Ma=Gi(Ki,[[`render`,ja],[`__scopeId`,`data-v-15dacfb7`]]),Na=Ma;e.AmsomTableDraggable=Ma,e.default=Na});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amsom-habitat/amsom-table",
3
- "version": "4.6.4",
3
+ "version": "4.7.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",