@amsom-habitat/amsom-table 4.5.4 → 4.5.6

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,6 +1,6 @@
1
- (function(F,Pe){typeof exports=="object"&&typeof module<"u"?Pe(exports,require("@fortawesome/vue-fontawesome"),require("@fortawesome/fontawesome-svg-core"),require("@fortawesome/free-solid-svg-icons"),require("vue-draggable-next"),require("moment-timezone"),require("vue")):typeof define=="function"&&define.amd?define(["exports","@fortawesome/vue-fontawesome","@fortawesome/fontawesome-svg-core","@fortawesome/free-solid-svg-icons","vue-draggable-next","moment-timezone","vue"],Pe):(F=typeof globalThis<"u"?globalThis:F||self,Pe(F.AmsomTable={},F.FontAwesomeVue,F.FontAwesomeCore,F.FontAwesomeSolid,F.VueDraggableNext,F.moment,F.Vue))})(this,function(F,Pe,Zs,J,Ks,Q,a){"use strict";var Wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var at={exports:{}},Ut;function Js(){return Ut||(Ut=1,function(n,l){(function(c,d){n.exports=d()})(Wt,function(){var c;function d(){return c.apply(null,arguments)}function f(e){c=e}function m(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function S(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Y(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(k(e,t))return!1;return!0}function h(e){return e===void 0}function T(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function w(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function le(e,t){var s=[],r,i=e.length;for(r=0;r<i;++r)s.push(t(e[r],r));return s}function oe(e,t){for(var s in t)k(t,s)&&(e[s]=t[s]);return k(t,"toString")&&(e.toString=t.toString),k(t,"valueOf")&&(e.valueOf=t.valueOf),e}function G(e,t,s,r){return Ds(e,t,s,r,!0).utc()}function jr(){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==null&&(e._pf=jr()),e._pf}var ot;Array.prototype.some?ot=Array.prototype.some:ot=function(e){var t=Object(this),s=t.length>>>0,r;for(r=0;r<s;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function ct(e){var t=null,s=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=M(e),s=ot.call(t.parsedDateParts,function(i){return i!=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&&s),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 Be(e){var t=G(NaN);return e!=null?oe(M(t),e):M(t).userInvalidated=!0,t}var $t=d.momentProperties=[],dt=!1;function ut(e,t){var s,r,i,o=$t.length;if(h(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),h(t._i)||(e._i=t._i),h(t._f)||(e._f=t._f),h(t._l)||(e._l=t._l),h(t._strict)||(e._strict=t._strict),h(t._tzm)||(e._tzm=t._tzm),h(t._isUTC)||(e._isUTC=t._isUTC),h(t._offset)||(e._offset=t._offset),h(t._pf)||(e._pf=M(t)),h(t._locale)||(e._locale=t._locale),o>0)for(s=0;s<o;s++)r=$t[s],i=t[r],h(i)||(e[r]=i);return e}function Ye(e){ut(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),dt===!1&&(dt=!0,d.updateOffset(this),dt=!1)}function H(e){return e instanceof Ye||e!=null&&e._isAMomentObject!=null}function es(e){d.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function W(e,t){var s=!0;return oe(function(){if(d.deprecationHandler!=null&&d.deprecationHandler(null,e),s){var r=[],i,o,u,g=arguments.length;for(o=0;o<g;o++){if(i="",typeof arguments[o]=="object"){i+=`
2
- [`+o+"] ";for(u in arguments[0])k(arguments[0],u)&&(i+=u+": "+arguments[0][u]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}es(e+`
1
+ (function(B,Pe){typeof exports=="object"&&typeof module<"u"?Pe(exports,require("@fortawesome/vue-fontawesome"),require("@fortawesome/fontawesome-svg-core"),require("@fortawesome/free-solid-svg-icons"),require("vue-draggable-next"),require("moment-timezone"),require("vue")):typeof define=="function"&&define.amd?define(["exports","@fortawesome/vue-fontawesome","@fortawesome/fontawesome-svg-core","@fortawesome/free-solid-svg-icons","vue-draggable-next","moment-timezone","vue"],Pe):(B=typeof globalThis<"u"?globalThis:B||self,Pe(B.AmsomTable={},B.FontAwesomeVue,B.FontAwesomeCore,B.FontAwesomeSolid,B.VueDraggableNext,B.moment,B.Vue))})(this,function(B,Pe,Zs,Q,Ks,X,a){"use strict";var Wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var at={exports:{}},Ut;function Js(){return Ut||(Ut=1,function(n,l){(function(c,d){n.exports=d()})(Wt,function(){var c;function d(){return c.apply(null,arguments)}function f(e){c=e}function m(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function S(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function O(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(w(e,t))return!1;return!0}function h(e){return e===void 0}function Y(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function k(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function F(e,t){var s=[],r,i=e.length;for(r=0;r<i;++r)s.push(t(e[r],r));return s}function oe(e,t){for(var s in t)w(t,s)&&(e[s]=t[s]);return w(t,"toString")&&(e.toString=t.toString),w(t,"valueOf")&&(e.valueOf=t.valueOf),e}function q(e,t,s,r){return Ds(e,t,s,r,!0).utc()}function jr(){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==null&&(e._pf=jr()),e._pf}var ot;Array.prototype.some?ot=Array.prototype.some:ot=function(e){var t=Object(this),s=t.length>>>0,r;for(r=0;r<s;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function ct(e){var t=null,s=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=M(e),s=ot.call(t.parsedDateParts,function(i){return i!=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&&s),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 Be(e){var t=q(NaN);return e!=null?oe(M(t),e):M(t).userInvalidated=!0,t}var $t=d.momentProperties=[],dt=!1;function ut(e,t){var s,r,i,o=$t.length;if(h(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),h(t._i)||(e._i=t._i),h(t._f)||(e._f=t._f),h(t._l)||(e._l=t._l),h(t._strict)||(e._strict=t._strict),h(t._tzm)||(e._tzm=t._tzm),h(t._isUTC)||(e._isUTC=t._isUTC),h(t._offset)||(e._offset=t._offset),h(t._pf)||(e._pf=M(t)),h(t._locale)||(e._locale=t._locale),o>0)for(s=0;s<o;s++)r=$t[s],i=t[r],h(i)||(e[r]=i);return e}function Ye(e){ut(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),dt===!1&&(dt=!0,d.updateOffset(this),dt=!1)}function j(e){return e instanceof Ye||e!=null&&e._isAMomentObject!=null}function es(e){d.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function V(e,t){var s=!0;return oe(function(){if(d.deprecationHandler!=null&&d.deprecationHandler(null,e),s){var r=[],i,o,u,g=arguments.length;for(o=0;o<g;o++){if(i="",typeof arguments[o]=="object"){i+=`
2
+ [`+o+"] ";for(u in arguments[0])w(arguments[0],u)&&(i+=u+": "+arguments[0][u]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}es(e+`
3
3
  Arguments: `+Array.prototype.slice.call(r).join("")+`
4
- `+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var ts={};function ss(e,t){d.deprecationHandler!=null&&d.deprecationHandler(e,t),ts[e]||(es(t),ts[e]=!0)}d.suppressDeprecationWarnings=!1,d.deprecationHandler=null;function q(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function zr(e){var t,s;for(s in e)k(e,s)&&(t=e[s],q(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ht(e,t){var s=oe({},e),r;for(r in t)k(t,r)&&(S(e[r])&&S(t[r])?(s[r]={},oe(s[r],e[r]),oe(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)k(e,r)&&!k(t,r)&&S(e[r])&&(s[r]=oe({},s[r]));return s}function ft(e){e!=null&&this.set(e)}var mt;Object.keys?mt=Object.keys:mt=function(e){var t,s=[];for(t in e)k(e,t)&&s.push(t);return s};var Gr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function qr(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return q(r)?r.call(t,s):r}function Z(e,t,s){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?s?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var yt=/(\[[^\[]*\])|(\\)?([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,We=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,gt={},ke={};function p(e,t,s,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(ke[e]=i),t&&(ke[t[0]]=function(){return Z(i.apply(this,arguments),t[1],t[2])}),s&&(ke[s]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Zr(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Kr(e){var t=e.match(yt),s,r;for(s=0,r=t.length;s<r;s++)ke[t[s]]?t[s]=ke[t[s]]:t[s]=Zr(t[s]);return function(i){var o="",u;for(u=0;u<r;u++)o+=q(t[u])?t[u].call(i,e):t[u];return o}}function Ve(e,t){return e.isValid()?(t=rs(t,e.localeData()),gt[t]=gt[t]||Kr(t),gt[t](e)):e.localeData().invalidDate()}function rs(e,t){var s=5;function r(i){return t.longDateFormat(i)||i}for(We.lastIndex=0;s>=0&&We.test(e);)e=e.replace(We,r),We.lastIndex=0,s-=1;return e}var Jr={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 Qr(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(yt).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Xr="Invalid date";function $r(){return this._invalidDate}var ei="%d",ti=/\d{1,2}/;function si(e){return this._ordinal.replace("%d",e)}var ri={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 ii(e,t,s,r){var i=this._relativeTime[s];return q(i)?i(e,t,s,r):i.replace(/%d/i,e)}function ni(e,t){var s=this._relativeTime[e>0?"future":"past"];return q(s)?s(t):s.replace(/%s/i,t)}var is={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 V(e){return typeof e=="string"?is[e]||is[e.toLowerCase()]:void 0}function _t(e){var t={},s,r;for(r in e)k(e,r)&&(s=V(r),s&&(t[s]=e[r]));return t}var ai={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 li(e){var t=[],s;for(s in e)k(e,s)&&t.push({unit:s,priority:ai[s]});return t.sort(function(r,i){return r.priority-i.priority}),t}var ns=/\d/,B=/\d\d/,as=/\d{3}/,kt=/\d{4}/,Ue=/[+-]?\d{6}/,v=/\d\d?/,ls=/\d\d\d\d?/,os=/\d\d\d\d\d\d?/,He=/\d{1,3}/,St=/\d{1,4}/,je=/[+-]?\d{1,6}/,Se=/\d+/,ze=/[+-]?\d+/,oi=/Z|[+-]\d\d:?\d\d/gi,Ge=/Z|[+-]\d\d(?::?\d\d)?/gi,ci=/[+-]?\d+(\.\d{1,3})?/,Te=/[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,pe=/^[1-9]\d?/,pt=/^([1-9]\d|\d)/,qe;qe={};function _(e,t,s){qe[e]=q(t)?t:function(r,i){return r&&s?s:t}}function di(e,t){return k(qe,e)?qe[e](t._strict,t._locale):new RegExp(ui(e))}function ui(e){return X(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,i,o){return s||r||i||o}))}function X(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function x(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=U(t)),s}var wt={};function O(e,t){var s,r=t,i;for(typeof e=="string"&&(e=[e]),T(t)&&(r=function(o,u){u[t]=x(o)}),i=e.length,s=0;s<i;s++)wt[e[s]]=r}function Oe(e,t){O(e,function(s,r,i,o){i._w=i._w||{},t(s,i._w,i,o)})}function hi(e,t,s){t!=null&&k(wt,e)&&wt[e](t,s._a,s,e)}function Ze(e){return e%4===0&&e%100!==0||e%400===0}var R=0,$=1,K=2,L=3,j=4,ee=5,me=6,fi=7,mi=8;p("Y",0,0,function(){var e=this.year();return e<=9999?Z(e,4):"+"+e}),p(0,["YY",2],0,function(){return this.year()%100}),p(0,["YYYY",4],0,"year"),p(0,["YYYYY",5],0,"year"),p(0,["YYYYYY",6,!0],0,"year"),_("Y",ze),_("YY",v,B),_("YYYY",St,kt),_("YYYYY",je,Ue),_("YYYYYY",je,Ue),O(["YYYYY","YYYYYY"],R),O("YYYY",function(e,t){t[R]=e.length===2?d.parseTwoDigitYear(e):x(e)}),O("YY",function(e,t){t[R]=d.parseTwoDigitYear(e)}),O("Y",function(e,t){t[R]=parseInt(e,10)});function ve(e){return Ze(e)?366:365}d.parseTwoDigitYear=function(e){return x(e)+(x(e)>68?1900:2e3)};var cs=we("FullYear",!0);function yi(){return Ze(this.year())}function we(e,t){return function(s){return s!=null?(ds(this,e,s),d.updateOffset(this,t),this):Ie(this,e)}}function Ie(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function ds(e,t,s){var r,i,o,u,g;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(i?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(i?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(i?r.setUTCHours(s):r.setHours(s));case"Date":return void(i?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}o=s,u=e.month(),g=e.date(),g=g===29&&u===1&&!Ze(o)?28:g,i?r.setUTCFullYear(o,u,g):r.setFullYear(o,u,g)}}function gi(e){return e=V(e),q(this[e])?this[e]():this}function _i(e,t){if(typeof e=="object"){e=_t(e);var s=li(e),r,i=s.length;for(r=0;r<i;r++)this[s[r].unit](e[s[r].unit])}else if(e=V(e),q(this[e]))return this[e](t);return this}function ki(e,t){return(e%t+t)%t}var E;Array.prototype.indexOf?E=Array.prototype.indexOf:E=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function bt(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=ki(t,12);return e+=(t-s)/12,s===1?Ze(e)?29:28:31-s%7%2}p("M",["MM",2],"Mo",function(){return this.month()+1}),p("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),p("MMMM",0,0,function(e){return this.localeData().months(this,e)}),_("M",v,pe),_("MM",v,B),_("MMM",function(e,t){return t.monthsShortRegex(e)}),_("MMMM",function(e,t){return t.monthsRegex(e)}),O(["M","MM"],function(e,t){t[$]=x(e)-1}),O(["MMM","MMMM"],function(e,t,s,r){var i=s._locale.monthsParse(e,r,s._strict);i!=null?t[$]=i:M(s).invalidMonth=e});var Si="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),us="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),hs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,pi=Te,wi=Te;function bi(e,t){return e?m(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||hs).test(t)?"format":"standalone"][e.month()]:m(this._months)?this._months:this._months.standalone}function Mi(e,t){return e?m(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[hs.test(t)?"format":"standalone"][e.month()]:m(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function xi(e,t,s){var r,i,o,u=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=G([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return s?t==="MMM"?(i=E.call(this._shortMonthsParse,u),i!==-1?i:null):(i=E.call(this._longMonthsParse,u),i!==-1?i:null):t==="MMM"?(i=E.call(this._shortMonthsParse,u),i!==-1?i:(i=E.call(this._longMonthsParse,u),i!==-1?i:null)):(i=E.call(this._longMonthsParse,u),i!==-1?i:(i=E.call(this._shortMonthsParse,u),i!==-1?i:null))}function Di(e,t,s){var r,i,o;if(this._monthsParseExact)return xi.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=G([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function fs(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=x(t);else if(t=e.localeData().monthsParse(t),!T(t))return e}var s=t,r=e.date();return r=r<29?r:Math.min(r,bt(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,r):e._d.setMonth(s,r),e}function ms(e){return e!=null?(fs(this,e),d.updateOffset(this,!0),this):Ie(this,"Month")}function Ci(){return bt(this.year(),this.month())}function Pi(e){return this._monthsParseExact?(k(this,"_monthsRegex")||ys.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(k(this,"_monthsShortRegex")||(this._monthsShortRegex=pi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Yi(e){return this._monthsParseExact?(k(this,"_monthsRegex")||ys.call(this),e?this._monthsStrictRegex:this._monthsRegex):(k(this,"_monthsRegex")||(this._monthsRegex=wi),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ys(){function e(b,D){return D.length-b.length}var t=[],s=[],r=[],i,o,u,g;for(i=0;i<12;i++)o=G([2e3,i]),u=X(this.monthsShort(o,"")),g=X(this.months(o,"")),t.push(u),s.push(g),r.push(g),r.push(u);t.sort(e),s.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ti(e,t,s,r,i,o,u){var g;return e<100&&e>=0?(g=new Date(e+400,t,s,r,i,o,u),isFinite(g.getFullYear())&&g.setFullYear(e)):g=new Date(e,t,s,r,i,o,u),g}function Ne(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ke(e,t,s){var r=7+t-s,i=(7+Ne(e,0,r).getUTCDay()-t)%7;return-i+r-1}function gs(e,t,s,r,i){var o=(7+s-r)%7,u=Ke(e,r,i),g=1+7*(t-1)+o+u,b,D;return g<=0?(b=e-1,D=ve(b)+g):g>ve(e)?(b=e+1,D=g-ve(e)):(b=e,D=g),{year:b,dayOfYear:D}}function Ee(e,t,s){var r=Ke(e.year(),t,s),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,u;return i<1?(u=e.year()-1,o=i+te(u,t,s)):i>te(e.year(),t,s)?(o=i-te(e.year(),t,s),u=e.year()+1):(u=e.year(),o=i),{week:o,year:u}}function te(e,t,s){var r=Ke(e,t,s),i=Ke(e+1,t,s);return(ve(e)-r+i)/7}p("w",["ww",2],"wo","week"),p("W",["WW",2],"Wo","isoWeek"),_("w",v,pe),_("ww",v,B),_("W",v,pe),_("WW",v,B),Oe(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=x(e)});function Oi(e){return Ee(e,this._week.dow,this._week.doy).week}var vi={dow:0,doy:6};function Ii(){return this._week.dow}function Ni(){return this._week.doy}function Ei(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Li(e){var t=Ee(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}p("d",0,"do","day"),p("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),p("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),p("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),p("e",0,0,"weekday"),p("E",0,0,"isoWeekday"),_("d",v),_("e",v),_("E",v),_("dd",function(e,t){return t.weekdaysMinRegex(e)}),_("ddd",function(e,t){return t.weekdaysShortRegex(e)}),_("dddd",function(e,t){return t.weekdaysRegex(e)}),Oe(["dd","ddd","dddd"],function(e,t,s,r){var i=s._locale.weekdaysParse(e,r,s._strict);i!=null?t.d=i:M(s).invalidWeekday=e}),Oe(["d","e","E"],function(e,t,s,r){t[r]=x(e)});function Ri(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ai(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Mt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Fi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),_s="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Wi=Te,Vi=Te,Ui=Te;function Hi(e,t){var s=m(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Mt(s,this._week.dow):e?s[e.day()]:s}function ji(e){return e===!0?Mt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zi(e){return e===!0?Mt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Gi(e,t,s){var r,i,o,u=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=G([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return s?t==="dddd"?(i=E.call(this._weekdaysParse,u),i!==-1?i:null):t==="ddd"?(i=E.call(this._shortWeekdaysParse,u),i!==-1?i:null):(i=E.call(this._minWeekdaysParse,u),i!==-1?i:null):t==="dddd"?(i=E.call(this._weekdaysParse,u),i!==-1||(i=E.call(this._shortWeekdaysParse,u),i!==-1)?i:(i=E.call(this._minWeekdaysParse,u),i!==-1?i:null)):t==="ddd"?(i=E.call(this._shortWeekdaysParse,u),i!==-1||(i=E.call(this._weekdaysParse,u),i!==-1)?i:(i=E.call(this._minWeekdaysParse,u),i!==-1?i:null)):(i=E.call(this._minWeekdaysParse,u),i!==-1||(i=E.call(this._weekdaysParse,u),i!==-1)?i:(i=E.call(this._shortWeekdaysParse,u),i!==-1?i:null))}function qi(e,t,s){var r,i,o;if(this._weekdaysParseExact)return Gi.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=G([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function Zi(e){if(!this.isValid())return e!=null?this:NaN;var t=Ie(this,"Day");return e!=null?(e=Ri(e,this.localeData()),this.add(e-t,"d")):t}function Ki(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Ji(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ai(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Qi(e){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(k(this,"_weekdaysRegex")||(this._weekdaysRegex=Wi),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xi(e){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(k(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Vi),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $i(e){return this._weekdaysParseExact?(k(this,"_weekdaysRegex")||xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(k(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ui),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function xt(){function e(A,ae){return ae.length-A.length}var t=[],s=[],r=[],i=[],o,u,g,b,D;for(o=0;o<7;o++)u=G([2e3,1]).day(o),g=X(this.weekdaysMin(u,"")),b=X(this.weekdaysShort(u,"")),D=X(this.weekdays(u,"")),t.push(g),s.push(b),r.push(D),i.push(g),i.push(b),i.push(D);t.sort(e),s.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Dt(){return this.hours()%12||12}function en(){return this.hours()||24}p("H",["HH",2],0,"hour"),p("h",["hh",2],0,Dt),p("k",["kk",2],0,en),p("hmm",0,0,function(){return""+Dt.apply(this)+Z(this.minutes(),2)}),p("hmmss",0,0,function(){return""+Dt.apply(this)+Z(this.minutes(),2)+Z(this.seconds(),2)}),p("Hmm",0,0,function(){return""+this.hours()+Z(this.minutes(),2)}),p("Hmmss",0,0,function(){return""+this.hours()+Z(this.minutes(),2)+Z(this.seconds(),2)});function ks(e,t){p(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ks("a",!0),ks("A",!1);function Ss(e,t){return t._meridiemParse}_("a",Ss),_("A",Ss),_("H",v,pt),_("h",v,pe),_("k",v,pe),_("HH",v,B),_("hh",v,B),_("kk",v,B),_("hmm",ls),_("hmmss",os),_("Hmm",ls),_("Hmmss",os),O(["H","HH"],L),O(["k","kk"],function(e,t,s){var r=x(e);t[L]=r===24?0:r}),O(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),O(["h","hh"],function(e,t,s){t[L]=x(e),M(s).bigHour=!0}),O("hmm",function(e,t,s){var r=e.length-2;t[L]=x(e.substr(0,r)),t[j]=x(e.substr(r)),M(s).bigHour=!0}),O("hmmss",function(e,t,s){var r=e.length-4,i=e.length-2;t[L]=x(e.substr(0,r)),t[j]=x(e.substr(r,2)),t[ee]=x(e.substr(i)),M(s).bigHour=!0}),O("Hmm",function(e,t,s){var r=e.length-2;t[L]=x(e.substr(0,r)),t[j]=x(e.substr(r))}),O("Hmmss",function(e,t,s){var r=e.length-4,i=e.length-2;t[L]=x(e.substr(0,r)),t[j]=x(e.substr(r,2)),t[ee]=x(e.substr(i))});function tn(e){return(e+"").toLowerCase().charAt(0)==="p"}var sn=/[ap]\.?m?\.?/i,rn=we("Hours",!0);function nn(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var ps={calendar:Gr,longDateFormat:Jr,invalidDate:Xr,ordinal:ei,dayOfMonthOrdinalParse:ti,relativeTime:ri,months:Si,monthsShort:us,week:vi,weekdays:Fi,weekdaysMin:Bi,weekdaysShort:_s,meridiemParse:sn},N={},Le={},Re;function an(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function ws(e){return e&&e.toLowerCase().replace("_","-")}function ln(e){for(var t=0,s,r,i,o;t<e.length;){for(o=ws(e[t]).split("-"),s=o.length,r=ws(e[t+1]),r=r?r.split("-"):null;s>0;){if(i=Je(o.slice(0,s).join("-")),i)return i;if(r&&r.length>=s&&an(o,r)>=s-1)break;s--}t++}return Re}function on(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Je(e){var t=null,s;if(N[e]===void 0&&n&&n.exports&&on(e))try{t=Re._abbr,s=Vt,s("./locale/"+e),ce(t)}catch{N[e]=null}return N[e]}function ce(e,t){var s;return e&&(h(t)?s=se(e):s=Ct(e,t),s?Re=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Re._abbr}function Ct(e,t){if(t!==null){var s,r=ps;if(t.abbr=e,N[e]!=null)ss("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=N[e]._config;else if(t.parentLocale!=null)if(N[t.parentLocale]!=null)r=N[t.parentLocale]._config;else if(s=Je(t.parentLocale),s!=null)r=s._config;else return Le[t.parentLocale]||(Le[t.parentLocale]=[]),Le[t.parentLocale].push({name:e,config:t}),null;return N[e]=new ft(ht(r,t)),Le[e]&&Le[e].forEach(function(i){Ct(i.name,i.config)}),ce(e),N[e]}else return delete N[e],null}function cn(e,t){if(t!=null){var s,r,i=ps;N[e]!=null&&N[e].parentLocale!=null?N[e].set(ht(N[e]._config,t)):(r=Je(e),r!=null&&(i=r._config),t=ht(i,t),r==null&&(t.abbr=e),s=new ft(t),s.parentLocale=N[e],N[e]=s),ce(e)}else N[e]!=null&&(N[e].parentLocale!=null?(N[e]=N[e].parentLocale,e===ce()&&ce(e)):N[e]!=null&&delete N[e]);return N[e]}function se(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Re;if(!m(e)){if(t=Je(e),t)return t;e=[e]}return ln(e)}function dn(){return mt(N)}function Pt(e){var t,s=e._a;return s&&M(e).overflow===-2&&(t=s[$]<0||s[$]>11?$:s[K]<1||s[K]>bt(s[R],s[$])?K:s[L]<0||s[L]>24||s[L]===24&&(s[j]!==0||s[ee]!==0||s[me]!==0)?L:s[j]<0||s[j]>59?j:s[ee]<0||s[ee]>59?ee:s[me]<0||s[me]>999?me:-1,M(e)._overflowDayOfYear&&(t<R||t>K)&&(t=K),M(e)._overflowWeeks&&t===-1&&(t=fi),M(e)._overflowWeekday&&t===-1&&(t=mi),M(e).overflow=t),e}var un=/^\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)?)?$/,hn=/^\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)?)?$/,fn=/Z|[+-]\d\d(?::?\d\d)?/,Qe=[["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]],Yt=[["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/]],mn=/^\/?Date\((-?\d+)/i,yn=/^(?:(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}))$/,gn={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function bs(e){var t,s,r=e._i,i=un.exec(r)||hn.exec(r),o,u,g,b,D=Qe.length,A=Yt.length;if(i){for(M(e).iso=!0,t=0,s=D;t<s;t++)if(Qe[t][1].exec(i[1])){u=Qe[t][0],o=Qe[t][2]!==!1;break}if(u==null){e._isValid=!1;return}if(i[3]){for(t=0,s=A;t<s;t++)if(Yt[t][1].exec(i[3])){g=(i[2]||" ")+Yt[t][0];break}if(g==null){e._isValid=!1;return}}if(!o&&g!=null){e._isValid=!1;return}if(i[4])if(fn.exec(i[4]))b="Z";else{e._isValid=!1;return}e._f=u+(g||"")+(b||""),Ot(e)}else e._isValid=!1}function _n(e,t,s,r,i,o){var u=[kn(e),us.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(i,10)];return o&&u.push(parseInt(o,10)),u}function kn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Sn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function pn(e,t,s){if(e){var r=_s.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return M(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function wn(e,t,s){if(e)return gn[e];if(t)return 0;var r=parseInt(s,10),i=r%100,o=(r-i)/100;return o*60+i}function Ms(e){var t=yn.exec(Sn(e._i)),s;if(t){if(s=_n(t[4],t[3],t[2],t[5],t[6],t[7]),!pn(t[1],s,e))return;e._a=s,e._tzm=wn(t[8],t[9],t[10]),e._d=Ne.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),M(e).rfc2822=!0}else e._isValid=!1}function bn(e){var t=mn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(bs(e),e._isValid===!1)delete e._isValid;else return;if(Ms(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:d.createFromInputFallback(e)}d.createFromInputFallback=W("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 be(e,t,s){return e??t??s}function Mn(e){var t=new Date(d.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Tt(e){var t,s,r=[],i,o,u;if(!e._d){for(i=Mn(e),e._w&&e._a[K]==null&&e._a[$]==null&&xn(e),e._dayOfYear!=null&&(u=be(e._a[R],i[R]),(e._dayOfYear>ve(u)||e._dayOfYear===0)&&(M(e)._overflowDayOfYear=!0),s=Ne(u,0,e._dayOfYear),e._a[$]=s.getUTCMonth(),e._a[K]=s.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?1:0:e._a[t];e._a[L]===24&&e._a[j]===0&&e._a[ee]===0&&e._a[me]===0&&(e._nextDay=!0,e._a[L]=0),e._d=(e._useUTC?Ne:Ti).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[L]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(M(e).weekdayMismatch=!0)}}function xn(e){var t,s,r,i,o,u,g,b,D;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,u=4,s=be(t.GG,e._a[R],Ee(I(),1,4).year),r=be(t.W,1),i=be(t.E,1),(i<1||i>7)&&(b=!0)):(o=e._locale._week.dow,u=e._locale._week.doy,D=Ee(I(),o,u),s=be(t.gg,e._a[R],D.year),r=be(t.w,D.week),t.d!=null?(i=t.d,(i<0||i>6)&&(b=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(b=!0)):i=o),r<1||r>te(s,o,u)?M(e)._overflowWeeks=!0:b!=null?M(e)._overflowWeekday=!0:(g=gs(s,r,i,o,u),e._a[R]=g.year,e._dayOfYear=g.dayOfYear)}d.ISO_8601=function(){},d.RFC_2822=function(){};function Ot(e){if(e._f===d.ISO_8601){bs(e);return}if(e._f===d.RFC_2822){Ms(e);return}e._a=[],M(e).empty=!0;var t=""+e._i,s,r,i,o,u,g=t.length,b=0,D,A;for(i=rs(e._f,e._locale).match(yt)||[],A=i.length,s=0;s<A;s++)o=i[s],r=(t.match(di(o,e))||[])[0],r&&(u=t.substr(0,t.indexOf(r)),u.length>0&&M(e).unusedInput.push(u),t=t.slice(t.indexOf(r)+r.length),b+=r.length),ke[o]?(r?M(e).empty=!1:M(e).unusedTokens.push(o),hi(o,r,e)):e._strict&&!r&&M(e).unusedTokens.push(o);M(e).charsLeftOver=g-b,t.length>0&&M(e).unusedInput.push(t),e._a[L]<=12&&M(e).bigHour===!0&&e._a[L]>0&&(M(e).bigHour=void 0),M(e).parsedDateParts=e._a.slice(0),M(e).meridiem=e._meridiem,e._a[L]=Dn(e._locale,e._a[L],e._meridiem),D=M(e).era,D!==null&&(e._a[R]=e._locale.erasConvertYear(D,e._a[R])),Tt(e),Pt(e)}function Dn(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Cn(e){var t,s,r,i,o,u,g=!1,b=e._f.length;if(b===0){M(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<b;i++)o=0,u=!1,t=ut({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],Ot(t),ct(t)&&(u=!0),o+=M(t).charsLeftOver,o+=M(t).unusedTokens.length*10,M(t).score=o,g?o<r&&(r=o,s=t):(r==null||o<r||u)&&(r=o,s=t,u&&(g=!0));oe(e,s||t)}function Pn(e){if(!e._d){var t=_t(e._i),s=t.day===void 0?t.date:t.day;e._a=le([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Tt(e)}}function Yn(e){var t=new Ye(Pt(xs(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function xs(e){var t=e._i,s=e._f;return e._locale=e._locale||se(e._l),t===null||s===void 0&&t===""?Be({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),H(t)?new Ye(Pt(t)):(w(t)?e._d=t:m(s)?Cn(e):s?Ot(e):Tn(e),ct(e)||(e._d=null),e))}function Tn(e){var t=e._i;h(t)?e._d=new Date(d.now()):w(t)?e._d=new Date(t.valueOf()):typeof t=="string"?bn(e):m(t)?(e._a=le(t.slice(0),function(s){return parseInt(s,10)}),Tt(e)):S(t)?Pn(e):T(t)?e._d=new Date(t):d.createFromInputFallback(e)}function Ds(e,t,s,r,i){var o={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(S(e)&&Y(e)||m(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=s,o._i=e,o._f=t,o._strict=r,Yn(o)}function I(e,t,s,r){return Ds(e,t,s,r,!1)}var On=W("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=I.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Be()}),vn=W("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=I.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Be()});function Cs(e,t){var s,r;if(t.length===1&&m(t[0])&&(t=t[0]),!t.length)return I();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function In(){var e=[].slice.call(arguments,0);return Cs("isBefore",e)}function Nn(){var e=[].slice.call(arguments,0);return Cs("isAfter",e)}var En=function(){return Date.now?Date.now():+new Date},Ae=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ln(e){var t,s=!1,r,i=Ae.length;for(t in e)if(k(e,t)&&!(E.call(Ae,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Ae[r]]){if(s)return!1;parseFloat(e[Ae[r]])!==x(e[Ae[r]])&&(s=!0)}return!0}function Rn(){return this._isValid}function An(){return z(NaN)}function Xe(e){var t=_t(e),s=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,u=t.day||0,g=t.hour||0,b=t.minute||0,D=t.second||0,A=t.millisecond||0;this._isValid=Ln(t),this._milliseconds=+A+D*1e3+b*6e4+g*1e3*60*60,this._days=+u+o*7,this._months=+i+r*3+s*12,this._data={},this._locale=se(),this._bubble()}function $e(e){return e instanceof Xe}function vt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Fn(e,t,s){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,u;for(u=0;u<r;u++)x(e[u])!==x(t[u])&&o++;return o+i}function Ps(e,t){p(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+Z(~~(s/60),2)+t+Z(~~s%60,2)})}Ps("Z",":"),Ps("ZZ",""),_("Z",Ge),_("ZZ",Ge),O(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=It(Ge,e)});var Bn=/([\+\-]|\d\d)/gi;function It(e,t){var s=(t||"").match(e),r,i,o;return s===null?null:(r=s[s.length-1]||[],i=(r+"").match(Bn)||["-",0,0],o=+(i[1]*60)+x(i[2]),o===0?0:i[0]==="+"?o:-o)}function Nt(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(H(e)||w(e)?e.valueOf():I(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),d.updateOffset(s,!1),s):I(e).local()}function Et(e){return-Math.round(e._d.getTimezoneOffset())}d.updateOffset=function(){};function Wn(e,t,s){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=It(Ge,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(i=Et(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?vs(this,z(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Et(this)}function Vn(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Un(e){return this.utcOffset(0,e)}function Hn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Et(this),"m")),this}function jn(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=It(oi,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function zn(e){return this.isValid()?(e=e?I(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Gn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qn(){if(!h(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ut(e,this),e=xs(e),e._a?(t=e._isUTC?G(e._a):I(e._a),this._isDSTShifted=this.isValid()&&Fn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Zn(){return this.isValid()?!this._isUTC:!1}function Kn(){return this.isValid()?this._isUTC:!1}function Ys(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Jn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Qn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function z(e,t){var s=e,r=null,i,o,u;return $e(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:T(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=Jn.exec(e))?(i=r[1]==="-"?-1:1,s={y:0,d:x(r[K])*i,h:x(r[L])*i,m:x(r[j])*i,s:x(r[ee])*i,ms:x(vt(r[me]*1e3))*i}):(r=Qn.exec(e))?(i=r[1]==="-"?-1:1,s={y:ye(r[2],i),M:ye(r[3],i),w:ye(r[4],i),d:ye(r[5],i),h:ye(r[6],i),m:ye(r[7],i),s:ye(r[8],i)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(u=Xn(I(s.from),I(s.to)),s={},s.ms=u.milliseconds,s.M=u.months),o=new Xe(s),$e(e)&&k(e,"_locale")&&(o._locale=e._locale),$e(e)&&k(e,"_isValid")&&(o._isValid=e._isValid),o}z.fn=Xe.prototype,z.invalid=An;function ye(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function Ts(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Xn(e,t){var s;return e.isValid()&&t.isValid()?(t=Nt(t,e),e.isBefore(t)?s=Ts(e,t):(s=Ts(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function Os(e,t){return function(s,r){var i,o;return r!==null&&!isNaN(+r)&&(ss(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."),o=s,s=r,r=o),i=z(s,r),vs(this,i,e),this}}function vs(e,t,s,r){var i=t._milliseconds,o=vt(t._days),u=vt(t._months);e.isValid()&&(r=r??!0,u&&fs(e,Ie(e,"Month")+u*s),o&&ds(e,"Date",Ie(e,"Date")+o*s),i&&e._d.setTime(e._d.valueOf()+i*s),r&&d.updateOffset(e,o||u))}var $n=Os(1,"add"),ea=Os(-1,"subtract");function Is(e){return typeof e=="string"||e instanceof String}function ta(e){return H(e)||w(e)||Is(e)||T(e)||ra(e)||sa(e)||e===null||e===void 0}function sa(e){var t=S(e)&&!Y(e),s=!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,o,u=r.length;for(i=0;i<u;i+=1)o=r[i],s=s||k(e,o);return t&&s}function ra(e){var t=m(e),s=!1;return t&&(s=e.filter(function(r){return!T(r)&&Is(e)}).length===0),t&&s}function ia(e){var t=S(e)&&!Y(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<r.length;i+=1)o=r[i],s=s||k(e,o);return t&&s}function na(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function aa(e,t){arguments.length===1&&(arguments[0]?ta(arguments[0])?(e=arguments[0],t=void 0):ia(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||I(),r=Nt(s,this).startOf("day"),i=d.calendarFormat(this,r)||"sameElse",o=t&&(q(t[i])?t[i].call(this,s):t[i]);return this.format(o||this.localeData().calendar(i,this,I(s)))}function la(){return new Ye(this)}function oa(e,t){var s=H(e)?e:I(e);return this.isValid()&&s.isValid()?(t=V(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function ca(e,t){var s=H(e)?e:I(e);return this.isValid()&&s.isValid()?(t=V(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function da(e,t,s,r){var i=H(e)?e:I(e),o=H(t)?t:I(t);return this.isValid()&&i.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,s):!this.isBefore(i,s))&&(r[1]===")"?this.isBefore(o,s):!this.isAfter(o,s))):!1}function ua(e,t){var s=H(e)?e:I(e),r;return this.isValid()&&s.isValid()?(t=V(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function ha(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function fa(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ma(e,t,s){var r,i,o;if(!this.isValid())return NaN;if(r=Nt(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=V(t),t){case"year":o=et(this,r)/12;break;case"month":o=et(this,r);break;case"quarter":o=et(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return s?o:U(o)}function et(e,t){if(e.date()<t.date())return-et(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),i,o;return t-r<0?(i=e.clone().add(s-1,"months"),o=(t-r)/(r-i)):(i=e.clone().add(s+1,"months"),o=(t-r)/(i-r)),-(s+o)||0}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function ya(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ga(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?Ve(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):q(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ve(s,"Z")):Ve(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _a(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(s+r+i+o)}function ka(e){e||(e=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var t=Ve(this,e);return this.localeData().postformat(t)}function Sa(e,t){return this.isValid()&&(H(e)&&e.isValid()||I(e).isValid())?z({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pa(e){return this.from(I(),e)}function wa(e,t){return this.isValid()&&(H(e)&&e.isValid()||I(e).isValid())?z({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ba(e){return this.to(I(),e)}function Ns(e){var t;return e===void 0?this._locale._abbr:(t=se(e),t!=null&&(this._locale=t),this)}var Es=W("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 Ls(){return this._locale}var tt=1e3,Me=60*tt,st=60*Me,Rs=(365*400+97)*24*st;function xe(e,t){return(e%t+t)%t}function As(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-Rs:new Date(e,t,s).valueOf()}function Fs(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-Rs:Date.UTC(e,t,s)}function Ma(e){var t,s;if(e=V(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Fs:As,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=xe(t+(this._isUTC?0:this.utcOffset()*Me),st);break;case"minute":t=this._d.valueOf(),t-=xe(t,Me);break;case"second":t=this._d.valueOf(),t-=xe(t,tt);break}return this._d.setTime(t),d.updateOffset(this,!0),this}function xa(e){var t,s;if(e=V(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Fs:As,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=st-xe(t+(this._isUTC?0:this.utcOffset()*Me),st)-1;break;case"minute":t=this._d.valueOf(),t+=Me-xe(t,Me)-1;break;case"second":t=this._d.valueOf(),t+=tt-xe(t,tt)-1;break}return this._d.setTime(t),d.updateOffset(this,!0),this}function Da(){return this._d.valueOf()-(this._offset||0)*6e4}function Ca(){return Math.floor(this.valueOf()/1e3)}function Pa(){return new Date(this.valueOf())}function Ya(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ta(){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 Oa(){return this.isValid()?this.toISOString():null}function va(){return ct(this)}function Ia(){return oe({},M(this))}function Na(){return M(this).overflow}function Ea(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}p("N",0,0,"eraAbbr"),p("NN",0,0,"eraAbbr"),p("NNN",0,0,"eraAbbr"),p("NNNN",0,0,"eraName"),p("NNNNN",0,0,"eraNarrow"),p("y",["y",1],"yo","eraYear"),p("y",["yy",2],0,"eraYear"),p("y",["yyy",3],0,"eraYear"),p("y",["yyyy",4],0,"eraYear"),_("N",Lt),_("NN",Lt),_("NNN",Lt),_("NNNN",za),_("NNNNN",Ga),O(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var i=s._locale.erasParse(e,r,s._strict);i?M(s).era=i:M(s).invalidEra=e}),_("y",Se),_("yy",Se),_("yyy",Se),_("yyyy",Se),_("yo",qa),O(["y","yy","yyy","yyyy"],R),O(["yo"],function(e,t,s,r){var i;s._locale._eraYearOrdinalRegex&&(i=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[R]=s._locale.eraYearOrdinalParse(e,i):t[R]=parseInt(e,10)});function La(e,t){var s,r,i,o=this._eras||se("en")._eras;for(s=0,r=o.length;s<r;++s){switch(typeof o[s].since){case"string":i=d(o[s].since).startOf("day"),o[s].since=i.valueOf();break}switch(typeof o[s].until){case"undefined":o[s].until=1/0;break;case"string":i=d(o[s].until).startOf("day").valueOf(),o[s].until=i.valueOf();break}}return o}function Ra(e,t,s){var r,i,o=this.eras(),u,g,b;for(e=e.toUpperCase(),r=0,i=o.length;r<i;++r)if(u=o[r].name.toUpperCase(),g=o[r].abbr.toUpperCase(),b=o[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(g===e)return o[r];break;case"NNNN":if(u===e)return o[r];break;case"NNNNN":if(b===e)return o[r];break}else if([u,g,b].indexOf(e)>=0)return o[r]}function Aa(e,t){var s=e.since<=e.until?1:-1;return t===void 0?d(e.since).year():d(e.since).year()+(t-e.offset)*s}function Fa(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function Ba(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function Wa(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function Va(){var e,t,s,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(s=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-d(i[e].since).year())*s+i[e].offset;return this.year()}function Ua(e){return k(this,"_erasNameRegex")||Rt.call(this),e?this._erasNameRegex:this._erasRegex}function Ha(e){return k(this,"_erasAbbrRegex")||Rt.call(this),e?this._erasAbbrRegex:this._erasRegex}function ja(e){return k(this,"_erasNarrowRegex")||Rt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Lt(e,t){return t.erasAbbrRegex(e)}function za(e,t){return t.erasNameRegex(e)}function Ga(e,t){return t.erasNarrowRegex(e)}function qa(e,t){return t._eraYearOrdinalRegex||Se}function Rt(){var e=[],t=[],s=[],r=[],i,o,u,g,b,D=this.eras();for(i=0,o=D.length;i<o;++i)u=X(D[i].name),g=X(D[i].abbr),b=X(D[i].narrow),t.push(u),e.push(g),s.push(b),r.push(u),r.push(g),r.push(b);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}p(0,["gg",2],0,function(){return this.weekYear()%100}),p(0,["GG",2],0,function(){return this.isoWeekYear()%100});function rt(e,t){p(0,[e,e.length],0,t)}rt("gggg","weekYear"),rt("ggggg","weekYear"),rt("GGGG","isoWeekYear"),rt("GGGGG","isoWeekYear"),_("G",ze),_("g",ze),_("GG",v,B),_("gg",v,B),_("GGGG",St,kt),_("gggg",St,kt),_("GGGGG",je,Ue),_("ggggg",je,Ue),Oe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=x(e)}),Oe(["gg","GG"],function(e,t,s,r){t[r]=d.parseTwoDigitYear(e)});function Za(e){return Bs.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ka(e){return Bs.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ja(){return te(this.year(),1,4)}function Qa(){return te(this.isoWeekYear(),1,4)}function Xa(){var e=this.localeData()._week;return te(this.year(),e.dow,e.doy)}function $a(){var e=this.localeData()._week;return te(this.weekYear(),e.dow,e.doy)}function Bs(e,t,s,r,i){var o;return e==null?Ee(this,r,i).year:(o=te(e,r,i),t>o&&(t=o),el.call(this,e,t,s,r,i))}function el(e,t,s,r,i){var o=gs(e,t,s,r,i),u=Ne(o.year,0,o.dayOfYear);return this.year(u.getUTCFullYear()),this.month(u.getUTCMonth()),this.date(u.getUTCDate()),this}p("Q",0,"Qo","quarter"),_("Q",ns),O("Q",function(e,t){t[$]=(x(e)-1)*3});function tl(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}p("D",["DD",2],"Do","date"),_("D",v,pe),_("DD",v,B),_("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),O(["D","DD"],K),O("Do",function(e,t){t[K]=x(e.match(v)[0])});var Ws=we("Date",!0);p("DDD",["DDDD",3],"DDDo","dayOfYear"),_("DDD",He),_("DDDD",as),O(["DDD","DDDD"],function(e,t,s){s._dayOfYear=x(e)});function sl(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}p("m",["mm",2],0,"minute"),_("m",v,pt),_("mm",v,B),O(["m","mm"],j);var rl=we("Minutes",!1);p("s",["ss",2],0,"second"),_("s",v,pt),_("ss",v,B),O(["s","ss"],ee);var il=we("Seconds",!1);p("S",0,0,function(){return~~(this.millisecond()/100)}),p(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),p(0,["SSS",3],0,"millisecond"),p(0,["SSSS",4],0,function(){return this.millisecond()*10}),p(0,["SSSSS",5],0,function(){return this.millisecond()*100}),p(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),p(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),p(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),p(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),_("S",He,ns),_("SS",He,B),_("SSS",He,as);var de,Vs;for(de="SSSS";de.length<=9;de+="S")_(de,Se);function nl(e,t){t[me]=x(("0."+e)*1e3)}for(de="S";de.length<=9;de+="S")O(de,nl);Vs=we("Milliseconds",!1),p("z",0,0,"zoneAbbr"),p("zz",0,0,"zoneName");function al(){return this._isUTC?"UTC":""}function ll(){return this._isUTC?"Coordinated Universal Time":""}var y=Ye.prototype;y.add=$n,y.calendar=aa,y.clone=la,y.diff=ma,y.endOf=xa,y.format=ka,y.from=Sa,y.fromNow=pa,y.to=wa,y.toNow=ba,y.get=gi,y.invalidAt=Na,y.isAfter=oa,y.isBefore=ca,y.isBetween=da,y.isSame=ua,y.isSameOrAfter=ha,y.isSameOrBefore=fa,y.isValid=va,y.lang=Es,y.locale=Ns,y.localeData=Ls,y.max=vn,y.min=On,y.parsingFlags=Ia,y.set=_i,y.startOf=Ma,y.subtract=ea,y.toArray=Ya,y.toObject=Ta,y.toDate=Pa,y.toISOString=ga,y.inspect=_a,typeof Symbol<"u"&&Symbol.for!=null&&(y[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),y.toJSON=Oa,y.toString=ya,y.unix=Ca,y.valueOf=Da,y.creationData=Ea,y.eraName=Fa,y.eraNarrow=Ba,y.eraAbbr=Wa,y.eraYear=Va,y.year=cs,y.isLeapYear=yi,y.weekYear=Za,y.isoWeekYear=Ka,y.quarter=y.quarters=tl,y.month=ms,y.daysInMonth=Ci,y.week=y.weeks=Ei,y.isoWeek=y.isoWeeks=Li,y.weeksInYear=Xa,y.weeksInWeekYear=$a,y.isoWeeksInYear=Ja,y.isoWeeksInISOWeekYear=Qa,y.date=Ws,y.day=y.days=Zi,y.weekday=Ki,y.isoWeekday=Ji,y.dayOfYear=sl,y.hour=y.hours=rn,y.minute=y.minutes=rl,y.second=y.seconds=il,y.millisecond=y.milliseconds=Vs,y.utcOffset=Wn,y.utc=Un,y.local=Hn,y.parseZone=jn,y.hasAlignedHourOffset=zn,y.isDST=Gn,y.isLocal=Zn,y.isUtcOffset=Kn,y.isUtc=Ys,y.isUTC=Ys,y.zoneAbbr=al,y.zoneName=ll,y.dates=W("dates accessor is deprecated. Use date instead.",Ws),y.months=W("months accessor is deprecated. Use month instead",ms),y.years=W("years accessor is deprecated. Use year instead",cs),y.zone=W("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Vn),y.isDSTShifted=W("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qn);function ol(e){return I(e*1e3)}function cl(){return I.apply(null,arguments).parseZone()}function Us(e){return e}var P=ft.prototype;P.calendar=qr,P.longDateFormat=Qr,P.invalidDate=$r,P.ordinal=si,P.preparse=Us,P.postformat=Us,P.relativeTime=ii,P.pastFuture=ni,P.set=zr,P.eras=La,P.erasParse=Ra,P.erasConvertYear=Aa,P.erasAbbrRegex=Ha,P.erasNameRegex=Ua,P.erasNarrowRegex=ja,P.months=bi,P.monthsShort=Mi,P.monthsParse=Di,P.monthsRegex=Yi,P.monthsShortRegex=Pi,P.week=Oi,P.firstDayOfYear=Ni,P.firstDayOfWeek=Ii,P.weekdays=Hi,P.weekdaysMin=zi,P.weekdaysShort=ji,P.weekdaysParse=qi,P.weekdaysRegex=Qi,P.weekdaysShortRegex=Xi,P.weekdaysMinRegex=$i,P.isPM=tn,P.meridiem=nn;function it(e,t,s,r){var i=se(),o=G().set(r,t);return i[s](o,e)}function Hs(e,t,s){if(T(e)&&(t=e,e=void 0),e=e||"",t!=null)return it(e,t,s,"month");var r,i=[];for(r=0;r<12;r++)i[r]=it(e,r,s,"month");return i}function At(e,t,s,r){typeof e=="boolean"?(T(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,T(t)&&(s=t,t=void 0),t=t||"");var i=se(),o=e?i._week.dow:0,u,g=[];if(s!=null)return it(t,(s+o)%7,r,"day");for(u=0;u<7;u++)g[u]=it(t,(u+o)%7,r,"day");return g}function dl(e,t){return Hs(e,t,"months")}function ul(e,t){return Hs(e,t,"monthsShort")}function hl(e,t,s){return At(e,t,s,"weekdays")}function fl(e,t,s){return At(e,t,s,"weekdaysShort")}function ml(e,t,s){return At(e,t,s,"weekdaysMin")}ce("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,s=x(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}}),d.lang=W("moment.lang is deprecated. Use moment.locale instead.",ce),d.langData=W("moment.langData is deprecated. Use moment.localeData instead.",se);var re=Math.abs;function yl(){var e=this._data;return this._milliseconds=re(this._milliseconds),this._days=re(this._days),this._months=re(this._months),e.milliseconds=re(e.milliseconds),e.seconds=re(e.seconds),e.minutes=re(e.minutes),e.hours=re(e.hours),e.months=re(e.months),e.years=re(e.years),this}function js(e,t,s,r){var i=z(t,s);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function gl(e,t){return js(this,e,t,1)}function _l(e,t){return js(this,e,t,-1)}function zs(e){return e<0?Math.floor(e):Math.ceil(e)}function kl(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,i,o,u,g,b;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=zs(Ft(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,i=U(e/1e3),r.seconds=i%60,o=U(i/60),r.minutes=o%60,u=U(o/60),r.hours=u%24,t+=U(u/24),b=U(Gs(t)),s+=b,t-=zs(Ft(b)),g=U(s/12),s%=12,r.days=t,r.months=s,r.years=g,this}function Gs(e){return e*4800/146097}function Ft(e){return e*146097/4800}function Sl(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=V(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+Gs(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(Ft(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 new Error("Unknown unit "+e)}}function ie(e){return function(){return this.as(e)}}var qs=ie("ms"),pl=ie("s"),wl=ie("m"),bl=ie("h"),Ml=ie("d"),xl=ie("w"),Dl=ie("M"),Cl=ie("Q"),Pl=ie("y"),Yl=qs;function Tl(){return z(this)}function Ol(e){return e=V(e),this.isValid()?this[e+"s"]():NaN}function ge(e){return function(){return this.isValid()?this._data[e]:NaN}}var vl=ge("milliseconds"),Il=ge("seconds"),Nl=ge("minutes"),El=ge("hours"),Ll=ge("days"),Rl=ge("months"),Al=ge("years");function Fl(){return U(this.days()/7)}var ne=Math.round,De={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Bl(e,t,s,r,i){return i.relativeTime(t||1,!!s,e,r)}function Wl(e,t,s,r){var i=z(e).abs(),o=ne(i.as("s")),u=ne(i.as("m")),g=ne(i.as("h")),b=ne(i.as("d")),D=ne(i.as("M")),A=ne(i.as("w")),ae=ne(i.as("y")),ue=o<=s.ss&&["s",o]||o<s.s&&["ss",o]||u<=1&&["m"]||u<s.m&&["mm",u]||g<=1&&["h"]||g<s.h&&["hh",g]||b<=1&&["d"]||b<s.d&&["dd",b];return s.w!=null&&(ue=ue||A<=1&&["w"]||A<s.w&&["ww",A]),ue=ue||D<=1&&["M"]||D<s.M&&["MM",D]||ae<=1&&["y"]||["yy",ae],ue[2]=t,ue[3]=+e>0,ue[4]=r,Bl.apply(null,ue)}function Vl(e){return e===void 0?ne:typeof e=="function"?(ne=e,!0):!1}function Ul(e,t){return De[e]===void 0?!1:t===void 0?De[e]:(De[e]=t,e==="s"&&(De.ss=t-1),!0)}function Hl(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=De,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},De,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=Wl(this,!s,r,i),s&&(o=i.pastFuture(+this,o)),i.postformat(o)}var Bt=Math.abs;function Ce(e){return(e>0)-(e<0)||+e}function nt(){if(!this.isValid())return this.localeData().invalidDate();var e=Bt(this._milliseconds)/1e3,t=Bt(this._days),s=Bt(this._months),r,i,o,u,g=this.asSeconds(),b,D,A,ae;return g?(r=U(e/60),i=U(r/60),e%=60,r%=60,o=U(s/12),s%=12,u=e?e.toFixed(3).replace(/\.?0+$/,""):"",b=g<0?"-":"",D=Ce(this._months)!==Ce(g)?"-":"",A=Ce(this._days)!==Ce(g)?"-":"",ae=Ce(this._milliseconds)!==Ce(g)?"-":"",b+"P"+(o?D+o+"Y":"")+(s?D+s+"M":"")+(t?A+t+"D":"")+(i||r||e?"T":"")+(i?ae+i+"H":"")+(r?ae+r+"M":"")+(e?ae+u+"S":"")):"P0D"}var C=Xe.prototype;C.isValid=Rn,C.abs=yl,C.add=gl,C.subtract=_l,C.as=Sl,C.asMilliseconds=qs,C.asSeconds=pl,C.asMinutes=wl,C.asHours=bl,C.asDays=Ml,C.asWeeks=xl,C.asMonths=Dl,C.asQuarters=Cl,C.asYears=Pl,C.valueOf=Yl,C._bubble=kl,C.clone=Tl,C.get=Ol,C.milliseconds=vl,C.seconds=Il,C.minutes=Nl,C.hours=El,C.days=Ll,C.weeks=Fl,C.months=Rl,C.years=Al,C.humanize=Hl,C.toISOString=nt,C.toString=nt,C.toJSON=nt,C.locale=Ns,C.localeData=Ls,C.toIsoString=W("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nt),C.lang=Es,p("X",0,0,"unix"),p("x",0,0,"valueOf"),_("x",ze),_("X",ci),O("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)}),O("x",function(e,t,s){s._d=new Date(x(e))});//! moment.js
5
- return d.version="2.30.1",f(I),d.fn=y,d.min=In,d.max=Nn,d.now=En,d.utc=G,d.unix=ol,d.months=dl,d.isDate=w,d.locale=ce,d.invalid=Be,d.duration=z,d.isMoment=H,d.weekdays=hl,d.parseZone=cl,d.localeData=se,d.isDuration=$e,d.monthsShort=ul,d.weekdaysMin=ml,d.defineLocale=Ct,d.updateLocale=cn,d.locales=dn,d.weekdaysShort=fl,d.normalizeUnits=V,d.relativeTimeRounding=Vl,d.relativeTimeThreshold=Ul,d.calendarFormat=na,d.prototype=y,d.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"},d})}(at)),at.exports}(function(n,l){(function(c,d){d(typeof Vt=="function"?Js():c.moment)})(Wt,function(c){//! moment.js locale configuration
6
- var d=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,f=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,m=/(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,S=[/^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],k=c.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:m,monthsShortRegex:m,monthsStrictRegex:d,monthsShortStrictRegex:f,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,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(Y,h){switch(h){case"D":return Y+(Y===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return Y+(Y===1?"er":"e");case"w":case"W":return Y+(Y===1?"re":"e")}},week:{dow:1,doy:4}});return k})})();function he(n,l=!0){if(!n)return null;let c=n.toString().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return l?c.toLowerCase():c}function Ht(n){return n?n==null?void 0:n.toLocaleString("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:2}):"0 €"}function lt(n,l="DD/MM/YYYY"){return!n||!Q.unix(n).isValid()?n:Q.unix(n).format(l)}function jt(n,l="DD/MM/YYYY à HH:mm"){return lt(n,l)}const zt=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)?$/;function Qs(n,l){const c=n.replace(/\d+/g,f=>(+f+1e5).toString()),d=l.replace(/\d+/g,f=>(+f+1e5).toString());return c.localeCompare(d)}function Gt(n){return n!=null&&n!==""&&!isNaN(n)}function qt(n){return n&&Q(n,"DD/MM/YYYY",!0).isValid()}function Zt(n){return typeof n=="boolean"}function Xs(n,l,c){const m=(n?1:0)-(l?1:0);return c?-m:m}function $s(n,l){const c=(n==null||n==="")&&typeof n!="boolean",d=(l==null||l==="")&&typeof l!="boolean";return c&&d?0:c?1:d?-1:null}function Kt(n){return typeof n=="string"&&n.includes("€")}function er(n,l,c){const d=parseFloat(n.replace("€","").replace(",",".").replace(/\s/g,"").trim()),f=parseFloat(l.replace("€","").replace(",",".").replace(/\s/g,"").trim());if(isNaN(d)&&isNaN(f))return 0;if(isNaN(d))return 1;if(isNaN(f))return-1;const m=d-f;return c?m:-m}function Fe(n,l,c){const d=$s(n,l);if(d!==null)return d;if(Zt(n)&&Zt(l))return Xs(n,l,c);if(zt.test(n)&&zt.test(l)){const k=Qs(n,l);return c?k:-k}if(Gt(n)&&Gt(l)){const k=parseFloat(n),Y=parseFloat(l);return c?k-Y:Y-k}if(qt(n)&&qt(l)){const k=Q(n,"DD/MM/YYYY").unix(),Y=Q(l,"DD/MM/YYYY").unix();return c?k-Y:Y-k}if(Kt(n)&&Kt(l))return er(n,l,c);const f=typeof n=="string"?he(n).toLowerCase():he(String(n)).toLowerCase(),m=typeof l=="string"?he(l).toLowerCase():he(String(l)).toLowerCase(),S=f.localeCompare(m,void 0,{numeric:!0,sensitivity:"base"});return c?S:-S}function tr(n,l,c=!1){return!n||!Array.isArray(n)?n:n.sort((d,f)=>{const m=d==null?void 0:d[l],S=f==null?void 0:f[l];return Fe(m,S,c)})}function Jt(n,l=!1,c){return!n||!Array.isArray(n)?n:n.sort((d,f)=>c(d,f,l))}function Qt(n,l){let c=fe(n);if(!c)c={columns:l};else if(!c.columns)c.columns=l;else{let d=l.filter(function(m){return!c.columns.some(function(S){return S.id===m.id})});c.columns=c.columns.concat(d);let f=c.columns.filter(function(m){return!l.some(function(S){return m.id===S.id})});c.columns=c.columns.filter(function(m){return!f.some(function(S){return m.id===S.id})}),c.columns.filter(m=>{for(let S of l)S.id===m.id&&S.libelle!==m.libelle&&(m.libelle=S.libelle)})}_e(n,c)}function sr(n,l,c=null){let d=fe(n);d?c&&!d[c]&&(d[c]=l):c?(d={},d[c]=l):d=l,_e(n,d)}function fe(n){return JSON.parse(window.localStorage.getItem(n))}function _e(n,l,c=null){let d=fe(n);return c?d[c]=l:d=l,window.localStorage.setItem(n,JSON.stringify(d))}const rr=(n,l)=>{const c=n.__vccOpts||n;for(const[d,f]of l)c[d]=f;return c};Zs.library.add(J.faEye,J.faEyeSlash,J.faArrowDownWideShort,J.faArrowDownShortWide,J.faTrash,J.faPlus,J.faXmark,J.faGreaterThan,J.faFilter);const ir={name:"AmsomTableDraggable",components:{VueDraggableNext:Ks.VueDraggableNext,FontAwesomeIcon:Pe.FontAwesomeIcon},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(n){return["left","center","right"].includes(n)}},trFontSize:{type:String,default:"fs-6"},trHeightPx:{type:Number,default:60},noValueText:{type:String,default:"Aucune valeur"}},emits:["changeSubject","lineEditModeAddNewLine","update:ckSelectedItems","update:dynamicColumns","update:deepSortsListPreset","contextmenu"],data(){return{checkAllCheckBox:!1,isDragging:!1,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 n=[];return this.totalPages<=1?n:(this.currentPage===1?n=[1,2,3]:this.currentPage===this.totalPages?n=[this.totalPages-2,this.totalPages-1,this.totalPages]:n=[this.currentPage-1,this.currentPage,this.currentPage+1],n.filter(l=>l>=1&&l<=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:Q(this.pickedDate[0]).set({hour:0,minute:0}).unix(),fin:Q(this.pickedDate[1]).set({hour:23,minute:59}).unix()}},normalizedSearch(){return this.search?he(this.search):""},hasDateFilter(){return this.dateFilterBounds&&Array.isArray(this.columnNameDateFilter)&&this.columnNameDateFilter.length>0},visibleColumns(){return this.columns.filter(n=>n.show&&(!n.onlyOnEditMode||this.lineEditMode))},filtereditems(){var n,l;return this.items?this.items.filter(c=>{const d=this.filterBy(c,this.normalizedSearch);if(this.hasDateFilter){const f=this.columnNameDateFilter.some(m=>{const S=c[m];if(S){const k=Q(S,"DD/MM/YYYY").unix();return k>=this.dateFilterBounds.deb&&k<=this.dateFilterBounds.fin}return!1});return d&&f}return d}):[]`${this.normalizedSearch}_${this.hasDateFilter}_${(n=this.dateFilterBounds)==null?void 0:n.deb}_${(l=this.dateFilterBounds)==null?void 0:l.fin}`},sortedItems(){if(!this.filtereditems)return[];if(!this.sortKey&&(!this.deepSorts||this.deepSortsList.length===0))return this.filtereditems;const n=this.columns.find(l=>l.id===this.sortKey);return this.deepSorts&&this.deepSortsList.length>0?this.deepSortsColumnList(this.deepSortsList,[...this.filtereditems]):n!=null&&n.customSort?Jt([...this.filtereditems],this.sortAsc,n.customSort):n!=null&&n.formatter||n!=null&&n.type?Jt([...this.filtereditems],this.sortAsc,(l,c,d)=>{const f=this.formatColumnValue(l,n),m=this.formatColumnValue(c,n);return Fe(f,m,d)}):this.sortKey?tr([...this.filtereditems],this.sortKey,this.sortAsc):this.filtereditems},showeditems(){const n=this.sortedItems;if(this.infiniteScroll)return n.slice(0,this.currentVisibleItems);if(this.maxItemsPerPage===-1)return n;const l=(this.currentPage-1)*this.maxItemsPerPage,c=this.currentPage*this.maxItemsPerPage;return n.slice(l,c)},tableMaxHeight(){if(!this.infiniteScroll)return"auto";const n=this.trHeightPx||60,l=50,c=this.maxItemPerPage;return`${l+c*n}px`},deepSortsListComputed(){return this.deepSortsList}},watch:{ckSelectedItems:{handler(n){n&&(this.selectedItems=n)},immediate:!0},dynamicColumns:{handler(n){n&&!this.isInternalUpdate&&(this.isInternalUpdate=!0,this.columns=this.getColumnsById(n,this.defaultColumns),this.$nextTick(()=>{this.isInternalUpdate=!1}))},immediate:!0},columns:{handler(n){this.localStorageItemName!==null&&_e(this.localStorageItemName,this.getRefactoColumns(n),"columns"),this.dynamicColumns&&!this.isInternalUpdate&&(this.isInternalUpdate=!0,this.$emit("update:dynamicColumns",this.getRefactoColumns(n)),this.$nextTick(()=>{this.isInternalUpdate=!1})),this.forceTableUpdateIndex+=1}},headerEditMode:{handler(n){var l;if(n)this.maxItemsPerPage=3;else{const c=this.localStorageMaxItemPerPageName!==null?fe(this.localStorageMaxItemPerPageName):this.localStorageItemName!==null?(l=fe(this.localStorageItemName))==null?void 0:l.maxItemPerPage:this.maxItemPerPage;this.maxItemsPerPage=c??this.maxItemPerPage}}},sortedItems:{handler(n){if(this.infiniteScroll){const l=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems===0?this.currentVisibleItems=Math.min(this.maxItemPerPage+l,n.length):this.currentVisibleItems=Math.min(this.currentVisibleItems,n.length)}this.infiniteScroll||(this.totalPages=this.newTotalPage(n.length))},immediate:!0},filtereditems:{handler(n,l){if(this.infiniteScroll&&l&&n.length!==l.length)if(n.length>l.length&&this.currentVisibleItems<n.length){const c=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+c,n.length)}else n.length<l.length&&this.currentVisibleItems>n.length&&(this.currentVisibleItems=Math.min(this.currentVisibleItems,n.length))},immediate:!1},maxItemPerPage:{handler(n){n!==this.maxItemsPerPage&&(this.maxItemsPerPage=n)},immediate:!0},maxItemsPerPage:{handler(n){if(!this.headerEditMode){if(this.localStorageItemName!==null&&_e(this.localStorageItemName,n,"maxItemPerPage"),this.localStorageMaxItemPerPageName!==null&&_e(this.localStorageMaxItemPerPageName,n),this.infiniteScroll){const l=this.infiniteScrollIncrement||n;this.currentVisibleItems=Math.min(n+l,this.sortedItems.length)}this.currentPage!==1&&!this.infiniteScroll&&(this.currentPage=1),this.infiniteScroll||(this.totalPages=this.newTotalPage(this.filtereditems.length))}}},search:{handler(n,l){n!==l&&(this.normalizedItemsCache.clear(),this.currentPage>1&&this.$nextTick(()=>{this.adjustPageAfterSearch()}),this.infiniteScroll&&this.$nextTick(()=>{const c=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+c,this.filtereditems.length)}))},immediate:!1},showeditems:{handler(n,l){n!==l&&(this.shouldAdjustPage(n)&&this.adjustPageAfterSearch(),n.length>0?this.checkAllCheckBox=n.every(c=>this.selectedItems.includes(c.id)):this.checkAllCheckBox=!1,this.infiniteScroll||(this.totalPages=this.newTotalPage(this.filtereditems.length)),this.columns.some(c=>c.stickyLeft||c.stickyRight)&&this.$nextTick(()=>{this.debouncedUpdateStickyColumns()}))},flush:"post"},deepSortsList:{handler(n){n&&n.length>0&&this.$emit("update:deepSortsListPreset",n),this.infiniteScroll&&this.currentVisibleItems>0&&this.$nextTick(()=>{const l=this.currentVisibleItems;this.currentVisibleItems=Math.min(l,this.sortedItems.length)})},deep:!0},deepSortsListPreset:{handler(n){n&&n.length>0&&JSON.stringify(n)!==JSON.stringify(this.deepSortsList)&&(this.deepSortsList=n.map(l=>{const c=this.columns.find(d=>d.id===l.id);return{...l,customSort:(c==null?void 0:c.customSort)||l.customSort||null}}))},deep:!0,immediate:!0},tdItemsList:{handler(n,l){n!==l&&this.columns.some(c=>c.stickyLeft||c.stickyRight)&&this.$nextTick(()=>{this.debouncedUpdateStickyColumns()})},deep:!0,immediate:!1}},mounted(){var n;if(this.localStorageItemName!==null){Qt(this.localStorageItemName,this.getRefactoColumns(this.copyDefaultColumns())),sr(this.localStorageItemName,this.maxItemPerPage,"maxItemPerPage");let l=fe(this.localStorageItemName);l&&(this.columns=this.getColumnsById(l.columns,this.defaultColumns),this.maxItemsPerPage=l.maxItemPerPage)}if(this.localStorageMaxItemPerPageName!==null){let l=fe(this.localStorageMaxItemPerPageName);l&&(this.maxItemsPerPage=l)}if(this.dynamicColumns&&(this.columns=this.getColumnsById(this.dynamicColumns,this.defaultColumns)),this.ckSelectedItems&&(this.selectedItems=this.ckSelectedItems),this.infiniteScroll){const l=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+l,this.filtereditems.length)}else this.totalPages=this.newTotalPage(this.filtereditems.length);if(this.initResizeObserver(),!this.deepSorts){const l=this.columns.find(c=>c.isSorted!==null&&c.isSorted!==void 0);l&&(this.sortKey=l.id,this.sortAsc=l.isSorted,this.currentHeaderSort=l)}this.deepSortsListPreset&&this.deepSortsListPreset.length>0&&this.deepSorts&&(this.deepSortsList=this.deepSortsListPreset.map(l=>{const c=this.columns.find(d=>d.id===l.id);return{...l,customSort:(c==null?void 0:c.customSort)||l.customSort||null}})),this.stickyScrollbarHorizontal&&(this.checkTableOverflow(),window.addEventListener("resize",this.checkTableOverflow),window.addEventListener("scroll",this.handleTableScroll)),this.tableContainer=(n=this.$refs.table)==null?void 0:n.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),this.scrollTimeout=null),this.stickyColumnsUpdateTimeout&&(clearTimeout(this.stickyColumnsUpdateTimeout),this.stickyColumnsUpdateTimeout=null),this.stickyColumnsAnimationFrame&&(cancelAnimationFrame(this.stickyColumnsAnimationFrame),this.stickyColumnsAnimationFrame=null),this.normalizedItemsCache.clear(),this.deepSortCache=null},methods:{moment:Q,unixToDateString:lt,unixToDateTimeString:jt,toCurrencyEUR:Ht,formatColumnValue(n,l){const c=n[l.id];if(l.formatter&&typeof l.formatter=="function")return l.formatter(c,n);if(l.type)switch(l.type){case"unixDate":return c?lt(c):"";case"unixDateTime":return c?jt(c):"";case"currency":return c!=null?Ht(c):"";default:return c}return c},shouldAdjustPage(n){return n.length===0&&this.filtereditems.length>0&&this.currentPage>1&&!this.infiniteScroll},getRefactoColumns(n){return n.map(l=>({id:l.id,show:l.show}))},getColumnsById(n,l){return n.map(c=>({...l.find(f=>f.id===c.id),show:c.show}))},adjustPageAfterSearch(){if(this.filtereditems.length>0&&this.showeditems.length===0){const n=Math.ceil(this.filtereditems.length/this.maxItemsPerPage);n>0&&n!==this.currentPage&&(this.currentPage=n)}else this.filtereditems.length===0&&(this.currentPage=1)},initResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{this.updateStickyColumns()});const n=this.$refs.table;n&&this.resizeObserver.observe(n)},handleTableScroll(){this.tableContainer&&(Math.ceil(window.scrollY+window.innerHeight)>=this.tableContainer.scrollHeight?this.showScrollbar=!1:this.checkTableOverflow())},checkTableOverflow(){this.$nextTick(()=>{const n=document.querySelector(`#${this.tableId}-bottom-scrollbar`);if(this.tableContainer&&n){const l=this.tableContainer.scrollHeight,c=window.innerHeight;this.showScrollbar=l>c,this.showScrollbar&&(document.querySelector(`#${this.tableId}-bottom-scrollbar .scrollbar-content`).style.width=this.tableContainer.scrollWidth+"px",n.addEventListener("scroll",()=>{this.tableContainer.scrollLeft=n.scrollLeft}),this.tableContainer.addEventListener("scroll",()=>{n.scrollLeft=this.tableContainer.scrollLeft}))}})},cleanupResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},updateStickyColumns(){!this.columns.some(c=>c.stickyLeft||c.stickyRight)||!document.getElementById(this.tableId)||(this.stickyColumnsAnimationFrame&&cancelAnimationFrame(this.stickyColumnsAnimationFrame),this.stickyColumnsAnimationFrame=requestAnimationFrame(()=>{const c=[];this.columns.forEach((m,S)=>{if(!m.stickyLeft&&!m.stickyRight)return;const k=document.getElementById(`${this.tableId}-${m.id}-th-${S}`);if(!k)return;const Y=document.querySelectorAll(`#${this.tableId} [data-column-id="${m.id}"]`),h=k.getBoundingClientRect().width;let T=0;Y.forEach(w=>{const le=w.getBoundingClientRect().width;le>T&&(T=le)}),c.push({column:m,thElement:k,tdElements:Y,width:Math.max(T,h)-1})});let d=0,f=0;c.forEach(({column:m,thElement:S,tdElements:k,width:Y})=>{if(m.stickyLeft){const h=`${d}px`;S.style.left=h,k.forEach(T=>{T.style.left=h}),d+=Y}if(m.stickyRight){const h=`${f}px`;S.style.right=h,k.forEach(T=>{T.style.right=h}),f+=Y}}),this.stickyColumnsAnimationFrame=null}))},newTotalPage(n){return Math.ceil(n/this.maxItemsPerPage)},lineStateClass(n){const l=this.lineStatesList.find(c=>c.state===n);return l?l.class:""},checkItem(n){const l=this.selectedItems.indexOf(n);if(l!==-1)this.selectedItems.splice(l,1),this.checkAllCheckBox=!1;else if(this.selectedItems.push(n),!this.checkAllCheckBox){const c=this.showeditems.map(d=>d.id);this.checkAllCheckBox=c.every(d=>this.selectedItems.includes(d))}this.$emit("update:ckSelectedItems",this.selectedItems)},toggleAllCheckBox(){const n=this.showeditems.map(l=>l.id);if(this.checkAllCheckBox)this.selectedItems=this.selectedItems.filter(l=>!n.includes(l)),this.checkAllCheckBox=!1;else{const l=new Set([...this.selectedItems,...n]);this.selectedItems=Array.from(l),this.checkAllCheckBox=!0}this.$emit("update:ckSelectedItems",this.selectedItems)},updateCurrentSort(n){this.currentHeaderSort&&(this.currentHeaderSort.isSorted=null);const l=this.infiniteScroll?this.currentVisibleItems:null;this.updateSortitems(n.id),n.isSorted=this.sortAsc,this.currentHeaderSort=n,this.infiniteScroll&&l&&this.$nextTick(()=>{this.currentVisibleItems=Math.min(l,this.sortedItems.length)})},checkMove(n){const l=this.columns.reduce((c,d,f)=>(d.fixed&&c.push(f),c),[]);return!l.includes(n.draggedContext.index)&&!l.includes(n.relatedContext.index)},filterBy(n,l){if(!l)return!0;const c=`${n.id}_${l}`;if(this.normalizedItemsCache.has(c))return this.normalizedItemsCache.get(c);const d=this.visibleColumns.some(f=>{if(f.customSearch&&typeof f.customSearch=="function")return f.customSearch(n,l);const m=n[f.id];if(f.type||f.formatter){const S=this.formatColumnValue(n,f);if(S&&he(S.toString()).includes(l))return!0}return m&&he(m.toString()).includes(l)});return this.normalizedItemsCache.size>1e3&&this.normalizedItemsCache.clear(),this.normalizedItemsCache.set(c,d),d},getDefaultMaxItemPerPage(){return this.maxItemPerPage},copyDefaultColumns(){return this.defaultColumns.map(n=>{const l={};for(const c in n)if(n.hasOwnProperty(c)){const d=n[c];typeof d=="function"||d===null||d===void 0?l[c]=d:Array.isArray(d)?l[c]=[...d]:typeof d=="object"?l[c]={...d}:l[c]=d}return l})},getTableContent(){return this.items},getColumns(){return this.columns},getNbLines(){return this.showeditems.length},updateSortitems(n){this.items&&(this.sortKey===n?this.sortAsc=!this.sortAsc:(this.sortAsc=!0,this.sortKey=n))},selectSubject(n){this.$emit("changeSubject",n)},saveTablePreferences(){this.localStorageItemName!==null&&_e(this.localStorageItemName,this.getRefactoColumns(this.columns),"columns"),this.dynamicColumns&&this.$emit("update:dynamicColumns",this.getRefactoColumns(this.columns)),this.headerEditMode=!1,this.currentPage=this.previousCurrentPage},resetTablePreferences(){this.columns=this.copyDefaultColumns(),this.localStorageItemName!==null&&Qt(this.localStorageItemName,this.getRefactoColumns(this.columns)),this.dynamicColumns&&this.$emit("update:dynamicColumns",this.getRefactoColumns(this.columns)),this.currentPage=this.previousCurrentPage},editTablePreferences(){this.headerEditMode=!0,this.previousCurrentPage=this.currentPage,this.currentPage=1},addDeepSort(n){const l=this.infiniteScroll?this.currentVisibleItems:null;this.deepSortCache=null,this.deepSortCacheKey="",this.deepSortsList.push({id:n.id,libelle:n.libelle,asc:!0,customSort:n.customSort||null}),this.infiniteScroll&&l&&this.$nextTick(()=>{this.currentVisibleItems=Math.min(l,this.sortedItems.length)})},toggleDeepSortDirection(n){this.deepSortCache=null,this.deepSortCacheKey="",n.asc=!n.asc},deepSortsColumnList(n,l){if(!n||n.length===0)return l;const c=JSON.stringify(n.map(d=>({id:d.id,asc:d.asc})));return this.deepSortCache&&this.deepSortCacheKey===c?l.sort((d,f)=>{for(const m of n){let S;if(m.customSort)S=m.customSort(d,f,m.asc);else{const k=d[m.id],Y=f[m.id];S=Fe(k,Y,m.asc)}if(S!==0)return S}return 0}):(this.deepSortCacheKey=c,this.deepSortCache=!0,l.sort((d,f)=>{for(const m of n){let S;if(m.customSort)S=m.customSort(d,f,m.asc);else{const k=d[m.id],Y=f[m.id];S=Fe(k,Y,m.asc)}if(S!==0)return S}return 0}))},handleScrollEvent(n){if(this.infiniteScroll){if(this.scrollTimeout)return;this.scrollTimeout=setTimeout(()=>{this.handleInfiniteScroll(n),this.scrollTimeout=null},50)}},handleInfiniteScroll(n){const{target:l}=n;if(l.scrollTop+l.clientHeight>=l.scrollHeight-10&&this.currentVisibleItems<this.sortedItems.length){const d=this.infiniteScrollIncrement||this.maxItemPerPage,f=Math.min(this.currentVisibleItems+d,this.sortedItems.length);f>this.currentVisibleItems&&(this.currentVisibleItems=f)}},handleContextMenu(n,l){let c=null;const d=n.target.closest("td");if(d){const f=d.getAttribute("data-column-id");f&&(c=this.columns.find(m=>m.id===f))}this.$emit("contextmenu",{event:n,item:l,column:c})},refreshStickyColumns(){this.columns.some(n=>n.stickyLeft||n.stickyRight)&&this.$nextTick(()=>{this.updateStickyColumns()})},debouncedUpdateStickyColumns(){this.stickyColumnsUpdateTimeout&&clearTimeout(this.stickyColumnsUpdateTimeout),this.stickyColumnsUpdateTimeout=setTimeout(()=>{this.updateStickyColumns(),this.stickyColumnsUpdateTimeout=null},50)}}},nr={key:0,class:"mb-3 text-center"},ar={key:1,class:"row mb-1 mx-auto"},lr={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"}},or={class:"text-nowrap"},cr={class:"d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-1 mx-2 user-select-none"},dr={key:0,class:"text-nowrap",style:{height:"20px"}},ur=["value"],hr={key:1,class:"d-flex align-items-center text-nowrap"},fr={key:0,class:"d-flex ms-2"},mr={class:"row mx-auto mb-3 rounded-0"},yr=["id"],gr=["id"],_r=["id","onDragstart","onDragend"],kr={class:"d-flex flex-column align-items-center"},Sr={key:0,class:"mx-auto my-auto mb-2 mt-2 hoverable d-inline-block"},pr={class:"d-inline-flex text-nowrap"},wr={key:0,class:"ms-2 float-end"},br={key:1,class:"ms-2"},Mr={key:1},xr=["id"],Dr=["id"],Cr={class:"d-inline-flex text-nowrap"},Pr={key:1,class:"ms-2 hoverable"},Yr={key:0},Tr=["colspan"],Or=["id"],vr=["onClick","onContextmenu"],Ir=["data-column-id","onClick"],Nr=["id","value"],Er=["data-column-id"],Lr={class:"row ms-auto mb-2"},Rr={class:"m-0 pagination pagination-sm"},Ar={class:"page-item hoverable"},Fr={class:"page-item hoverable"},Br=["onClick"],Wr={class:"page-item hoverable"},Vr={class:"page-item hoverable"},Ur=["id"];function Hr(n,l,c,d,f,m){var Y;const S=a.resolveComponent("font-awesome-icon"),k=a.resolveComponent("vue-draggable-next");return a.openBlock(),a.createElementBlock(a.Fragment,null,[c.lineEditMode?(a.openBlock(),a.createElementBlock("div",nr,[a.createElementVNode("button",{type:"button",class:"btn btn-success rounded-5 m-0 p-0",style:{height:"45px",width:"45px"},onClick:l[0]||(l[0]=h=>n.$emit("lineEditModeAddNewLine"))},[a.createVNode(S,{icon:"fa-solid fa-plus",size:"xl"})])])):a.createCommentVNode("",!0),c.showLineNumber||c.showModifyColumnsBtn||c.showMaxItemPerPageBtn||c.deepSorts?(a.openBlock(),a.createElementBlock("div",ar,[a.createElementVNode("div",{class:a.normalizeClass(["d-flex justify-content-start p-0",c.deepSorts&&f.deepSortsList.length>0&&c.showModifyColumnsBtn?"col-12 col-sm-8 col-lg-9 col-xl-10":"col"])},[c.showLineNumber?(a.openBlock(),a.createElementBlock("div",lr,[a.createElementVNode("b",or,a.toDisplayString(m.showItemsLinesNumber+" / "+m.filtereditems.length),1),l[20]||(l[20]=a.createElementVNode("span",{class:"ms-1"},"lignes",-1))])):a.createCommentVNode("",!0),c.deepSorts&&f.deepSortsList.length>0?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["d-flex align-items-center flex-wrap",{"ms-4":c.showLineNumber}])},[l[21]||(l[21]=a.createElementVNode("span",{class:"me-1 text-secondary h-auto fs-7 mb-1 mb-lg-0"},"Tri :",-1)),a.createVNode(k,{modelValue:f.deepSortsList,"onUpdate:modelValue":l[1]||(l[1]=h=>f.deepSortsList=h),tag:"div",group:"deepSorts",class:"d-flex flex-wrap","ghost-class":"deep-filter-ghost-class"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.deepSortsList,(h,T)=>(a.openBlock(),a.createElementBlock("div",{key:h.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"}},[a.createVNode(S,{class:"hoverable",icon:"fa-solid fa-xmark",onClick:w=>f.deepSortsList.splice(T,1)},null,8,["onClick"]),a.createElementVNode("div",cr,[a.createElementVNode("span",null,a.toDisplayString(h.libelle),1)]),a.createVNode(S,{class:"hoverable",icon:h.asc?"fa-solid fa-arrow-down-short-wide":"fa-solid fa-arrow-down-wide-short",onClick:w=>m.toggleDeepSortDirection(h)},null,8,["icon","onClick"])]))),128))]),_:1},8,["modelValue"])],2)):a.createCommentVNode("",!0)],2),c.showMaxItemPerPageBtn||c.showModifyColumnsBtn?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["d-flex align-items-center justify-content-end p-0",c.deepSorts&&f.deepSortsList.length>0?"col-12 col-sm-4 col-lg-3 col-xl-2 mt-1 mt-sm-0":"col"])},[c.showMaxItemPerPageBtn&&!f.headerEditMode?(a.openBlock(),a.createElementBlock("div",dr,[c.maxItemPerPageList.length>0?a.withDirectives((a.openBlock(),a.createElementBlock("select",{key:0,"onUpdate:modelValue":l[2]||(l[2]=h=>f.maxItemsPerPage=h),class:"form-select d-flex justify-content-center align-items-center ms-auto py-0 rounded-3 select-max-item-per-page"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.maxItemPerPageList,h=>(a.openBlock(),a.createElementBlock("option",{key:h.value,value:h.value},a.toDisplayString(h.text),9,ur))),128))],512)),[[a.vModelSelect,f.maxItemsPerPage]]):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),c.showModifyColumnsBtn?(a.openBlock(),a.createElementBlock("div",hr,[f.headerEditMode?(a.openBlock(),a.createElementBlock("div",fr,[a.createElementVNode("button",{id:"btn-save-table",class:"btn btn-sm btn-success d-flex justify-content-center align-items-center ms-auto me-2 px-2 py-0 rounded-3",type:"button",onClick:l[3]||(l[3]=(...h)=>m.saveTablePreferences&&m.saveTablePreferences(...h))}," Sauvegarder "),a.createElementVNode("button",{id:"btn-reset-table",class:"btn btn-sm btn-outline-danger d-flex justify-content-center align-items-center px-2 py-0 rounded-3",type:"button",onClick:l[4]||(l[4]=(...h)=>m.resetTablePreferences&&m.resetTablePreferences(...h))}," Réinitialiser le tableau ")])):(a.openBlock(),a.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:l[5]||(l[5]=(...h)=>m.editTablePreferences&&m.editTablePreferences(...h))}," Modifier colonnes "))])):a.createCommentVNode("",!0)],2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",mr,[a.createElementVNode("div",{ref:"scrollContainer",class:a.normalizeClass(["col-12 p-0 overflow-x-auto mb-2",{border:c.infiniteScroll,"infinite-scroll-container":c.infiniteScroll}]),style:a.normalizeStyle(c.infiniteScroll?{maxHeight:m.tableMaxHeight,overflowY:"auto",borderRadius:"10px"}:{borderRadius:"10px !important"}),onScroll:l[15]||(l[15]=(...h)=>m.handleScrollEvent&&m.handleScrollEvent(...h))},[(a.openBlock(),a.createElementBlock("table",{id:c.tableId,ref:"table",key:f.forceTableUpdateIndex,class:a.normalizeClass(["table table-striped table-hover table-responsive align-middle border-1 border-top border-bottom position-relative m-0",[c.border?"table-bordered":"table-borderless",c.tableSm?"table-sm":""]]),style:a.normalizeStyle([{"border-collapse":"separate","border-spacing":"0"},{borderLeft:c.border?"":"1px solid #ddd",borderRight:c.border?"":"1px solid #ddd"}])},[a.createElementVNode("thead",null,[f.headerEditMode?(a.openBlock(),a.createBlock(k,{key:0,modelValue:f.columns,"onUpdate:modelValue":l[9]||(l[9]=h=>f.columns=h),"ghost-class":c.ghostClass,"drag-class":c.ghostClass,tag:"tr",move:m.checkMove,group:"columns"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.columns,(h,T)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:h.id},[h.id==="checkBox"?(a.openBlock(),a.createElementBlock("th",{key:0,id:`${c.tableId}-${h.id}-th-${T}`,class:a.normalizeClass(["text-center",[c.headerBgColor,h.stickyLeft?"sticky-column-left":"",h.stickyRight?"sticky-column-right":"",c.infiniteScroll?"sticky-top":""]]),scope:"col",onClick:l[8]||(l[8]=a.withModifiers((...w)=>m.toggleAllCheckBox&&m.toggleAllCheckBox(...w),["stop"]))},[a.withDirectives(a.createElementVNode("input",{id:"checkBoxSelectAll","onUpdate:modelValue":l[6]||(l[6]=w=>f.checkAllCheckBox=w),class:"form-check-input",type:"checkbox",onClick:l[7]||(l[7]=a.withModifiers((...w)=>m.toggleAllCheckBox&&m.toggleAllCheckBox(...w),["stop"]))},null,512),[[a.vModelCheckbox,f.checkAllCheckBox]])],10,gr)):(h.show||f.headerEditMode)&&(!h.onlyOnEditMode||c.lineEditMode)?(a.openBlock(),a.createElementBlock("th",{key:1,id:`${c.tableId}-${h.id}-th-${T}`,scope:"col",class:a.normalizeClass(["text-center",[h.isDragging?"hoverable-grabbing":c.headerBgColor+" hoverable-grab",h.stickyLeft?"sticky-column-left":"",h.stickyRight?"sticky-column-right":"",c.headerTextColor,c.infiniteScroll?"sticky-top":"",{"table-danger":!h.show}]]),onDragstart:w=>h.isDragging=!0,onDragend:w=>h.isDragging=!1},[a.createElementVNode("div",kr,[f.headerEditMode&&!h.keepShow?(a.openBlock(),a.createElementBlock("div",Sr,[h.show?(a.openBlock(),a.createBlock(S,{key:0,icon:"fa-solid fa-eye",class:"fa-lg",onClick:w=>h.show=!1},null,8,["onClick"])):(a.openBlock(),a.createBlock(S,{key:1,icon:"fa-solid fa-eye-slash",class:"fa-lg",onClick:w=>h.show=!0},null,8,["onClick"]))])):a.createCommentVNode("",!0),a.createElementVNode("div",pr,[a.renderSlot(n.$slots,"tableHeaderTh",{header:h},void 0,!0),h.isSortable&&!c.deepSorts?(a.openBlock(),a.createElementBlock("div",wr,[a.createVNode(S,{icon:f.sortKey!==h.id||f.sortKey===h.id&&!f.sortAsc?"fa-solid fa-arrow-down-wide-short":"fa-solid fa-arrow-down-short-wide",class:"hoverable",onClick:w=>m.updateCurrentSort(h)},null,8,["icon","onClick"])])):c.deepSorts&&!f.deepSortsList.some(w=>w.id===h.id)&&h.isSortable?(a.openBlock(),a.createElementBlock("div",br,[a.createVNode(S,{icon:"fa-solid fa-filter",onClick:w=>m.addDeepSort(h)},null,8,["onClick"])])):a.createCommentVNode("",!0)])])],42,_r)):a.createCommentVNode("",!0)],64))),128))]),_:3},8,["modelValue","ghost-class","drag-class","move"])):(a.openBlock(),a.createElementBlock("tr",Mr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.columns,(h,T)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:h.id},[h.id==="checkBox"?(a.openBlock(),a.createElementBlock("th",{key:0,id:`${c.tableId}-${h.id}-th-${T}`,class:a.normalizeClass(["text-center",[c.headerBgColor,h.stickyLeft?"sticky-column-left":"",h.stickyRight?"sticky-column-right":"",c.infiniteScroll?"sticky-top":""]]),scope:"col",onClick:l[12]||(l[12]=a.withModifiers((...w)=>m.toggleAllCheckBox&&m.toggleAllCheckBox(...w),["stop"]))},[a.withDirectives(a.createElementVNode("input",{id:"checkBoxSelectAll","onUpdate:modelValue":l[10]||(l[10]=w=>f.checkAllCheckBox=w),class:"form-check-input",type:"checkbox",onClick:l[11]||(l[11]=a.withModifiers((...w)=>m.toggleAllCheckBox&&m.toggleAllCheckBox(...w),["stop"]))},null,512),[[a.vModelCheckbox,f.checkAllCheckBox]])],10,xr)):h.show&&(!h.onlyOnEditMode||c.lineEditMode)?(a.openBlock(),a.createElementBlock("th",{key:1,id:`${c.tableId}-${h.id}-th-${T}`,scope:"col",class:a.normalizeClass(["text-center",[h.isDragging?"":c.headerBgColor,h.stickyLeft?"sticky-column-left":"",h.stickyRight?"sticky-column-right":"",c.headerTextColor,c.infiniteScroll?"sticky-top":""]])},[a.createElementVNode("div",Cr,[a.renderSlot(n.$slots,"tableHeaderTh",{header:h},void 0,!0),h.isSortable&&!c.deepSorts?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["ms-2 float-end hoverable",{"opacity-50":f.sortKey!==h.id}])},[a.createVNode(S,{icon:f.sortKey!==h.id||f.sortKey===h.id&&!f.sortAsc?"fa-solid fa-arrow-down-wide-short":"fa-solid fa-arrow-down-short-wide",onClick:w=>m.updateCurrentSort(h)},null,8,["icon","onClick"])],2)):c.deepSorts&&!f.deepSortsList.some(w=>w.id===h.id)&&h.isSortable?(a.openBlock(),a.createElementBlock("div",Pr,[a.createVNode(S,{icon:"fa-solid fa-filter",onClick:w=>m.addDeepSort(h)},null,8,["onClick"])])):a.createCommentVNode("",!0)])],10,Dr)):a.createCommentVNode("",!0)],64))),128))]))]),a.createElementVNode("tbody",null,[((Y=m.showeditems)==null?void 0:Y.length)===0?(a.openBlock(),a.createElementBlock("tr",Yr,[a.createElementVNode("th",{colspan:f.columns.length,class:"text-center",style:{"border-top-left-radius":"0px !important","border-top-right-radius":"0px !important"}},[a.createElementVNode("span",{id:`${c.tableId}-no-value`,class:"text-danger fs-5"},a.toDisplayString(c.noValueText),9,Or)],8,Tr)])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(m.showeditems,(h,T)=>(a.openBlock(),a.createElementBlock("tr",{key:h.id,class:a.normalizeClass([{hoverable:c.clickable&&!f.headerEditMode,"hoverable-no-drop":c.clickable&&f.headerEditMode},c.trFontSize]),style:a.normalizeStyle({height:c.trHeightPx+"px"}),onClick:w=>c.clickable&&!f.headerEditMode?m.selectSubject(h):null,onContextmenu:w=>m.handleContextMenu(w,h)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.columns,w=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:w.id},[w.id==="checkBox"?(a.openBlock(),a.createElementBlock("td",{key:0,"data-column-id":w.id,class:a.normalizeClass(["text-center",[c.tdClass,h.lineState?m.lineStateClass(h.lineState):"",w.stickyLeft?"sticky-column-left":"",w.stickyRight?"sticky-column-right":""]]),onClick:a.withModifiers(le=>m.checkItem(h.id),["stop"])},[a.withDirectives(a.createElementVNode("input",{id:`${c.tableId}-checkbox-${T}`,"onUpdate:modelValue":l[13]||(l[13]=le=>f.selectedItems=le),type:"checkbox",class:"form-check-input hoverable",value:h.id,onClick:l[14]||(l[14]=a.withModifiers(()=>{},["stop"]))},null,8,Nr),[[a.vModelCheckbox,f.selectedItems]])],10,Ir)):(w.show||f.headerEditMode)&&(!w.onlyOnEditMode||c.lineEditMode)?(a.openBlock(),a.createElementBlock("td",{key:1,"data-column-id":w.id,class:a.normalizeClass([[c.tdClass,w.show?"":"table-danger",!c.deepSorts&&w.isSorted!==null&&w.isSorted!==void 0?"bg-gray-200":"",h.lineState?m.lineStateClass(h.lineState):"",w.stickyLeft?"sticky-column-left":"",w.stickyRight?"sticky-column-right":""],"text-center text-nowrap"])},[a.renderSlot(n.$slots,"tableBodyTd",{header:w,item:h,formattedValue:m.formatColumnValue(h,w)},()=>[a.createTextVNode(a.toDisplayString(m.formatColumnValue(h,w)),1)],!0)],10,Er)):a.createCommentVNode("",!0)],64))),128))],46,vr))),128))])],14,yr))],38)]),a.createElementVNode("div",Lr,[!c.infiniteScroll&&f.totalPages&&f.totalPages>1?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["col p-0 me-3 d-flex",{"justify-content-center":c.paginationPosition==="center","justify-content-end":c.paginationPosition==="right","justify-content-start":c.paginationPosition==="left"}])},[a.createElementVNode("ul",Rr,[a.createElementVNode("li",Ar,[a.createElementVNode("a",{class:a.normalizeClass(["page-link",{disabled:f.currentPage===1}]),onClick:l[16]||(l[16]=h=>f.currentPage=1)}," « ",2)]),a.createElementVNode("li",Fr,[a.createElementVNode("a",{class:a.normalizeClass(["page-link",{disabled:f.currentPage===1}]),onClick:l[17]||(l[17]=h=>f.currentPage-=1)}," < ",2)]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.currentDisplayPagination,h=>(a.openBlock(),a.createElementBlock("li",{key:h,class:a.normalizeClass(["page-item hoverable",{active:f.currentPage===h}])},[a.createElementVNode("a",{class:"page-link",onClick:T=>f.currentPage=h},a.toDisplayString(h),9,Br)],2))),128)),a.createElementVNode("li",Wr,[a.createElementVNode("a",{class:a.normalizeClass(["page-link",{disabled:f.currentPage===f.totalPages}]),onClick:l[18]||(l[18]=h=>f.currentPage+=1)}," > ",2)]),a.createElementVNode("li",Vr,[a.createElementVNode("a",{class:a.normalizeClass(["page-link",{disabled:f.currentPage===f.totalPages}]),onClick:l[19]||(l[19]=h=>f.currentPage=f.totalPages)}," » ",2)])])],2)):a.createCommentVNode("",!0),c.stickyScrollbarHorizontal?(a.openBlock(),a.createElementBlock("div",{key:1,id:`${c.tableId}-bottom-scrollbar`,class:a.normalizeClass(["bottom-scrollbar",{visible:f.showScrollbar}])},[...l[22]||(l[22]=[a.createElementVNode("div",{class:"scrollbar-content"},null,-1)])],10,Ur)):a.createCommentVNode("",!0)])],64)}const Xt=rr(ir,[["render",Hr],["__scopeId","data-v-f3204e33"]]);F.AmsomTableDraggable=Xt,F.default=Xt,Object.defineProperties(F,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
4
+ `+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var ts={};function ss(e,t){d.deprecationHandler!=null&&d.deprecationHandler(e,t),ts[e]||(es(t),ts[e]=!0)}d.suppressDeprecationWarnings=!1,d.deprecationHandler=null;function Z(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function zr(e){var t,s;for(s in e)w(e,s)&&(t=e[s],Z(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function ht(e,t){var s=oe({},e),r;for(r in t)w(t,r)&&(S(e[r])&&S(t[r])?(s[r]={},oe(s[r],e[r]),oe(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)w(e,r)&&!w(t,r)&&S(e[r])&&(s[r]=oe({},s[r]));return s}function ft(e){e!=null&&this.set(e)}var mt;Object.keys?mt=Object.keys:mt=function(e){var t,s=[];for(t in e)w(e,t)&&s.push(t);return s};var Gr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function qr(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return Z(r)?r.call(t,s):r}function K(e,t,s){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?s?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var yt=/(\[[^\[]*\])|(\\)?([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,We=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,gt={},ke={};function p(e,t,s,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(ke[e]=i),t&&(ke[t[0]]=function(){return K(i.apply(this,arguments),t[1],t[2])}),s&&(ke[s]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Zr(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Kr(e){var t=e.match(yt),s,r;for(s=0,r=t.length;s<r;s++)ke[t[s]]?t[s]=ke[t[s]]:t[s]=Zr(t[s]);return function(i){var o="",u;for(u=0;u<r;u++)o+=Z(t[u])?t[u].call(i,e):t[u];return o}}function Ve(e,t){return e.isValid()?(t=rs(t,e.localeData()),gt[t]=gt[t]||Kr(t),gt[t](e)):e.localeData().invalidDate()}function rs(e,t){var s=5;function r(i){return t.longDateFormat(i)||i}for(We.lastIndex=0;s>=0&&We.test(e);)e=e.replace(We,r),We.lastIndex=0,s-=1;return e}var Jr={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 Qr(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(yt).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Xr="Invalid date";function $r(){return this._invalidDate}var ei="%d",ti=/\d{1,2}/;function si(e){return this._ordinal.replace("%d",e)}var ri={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 ii(e,t,s,r){var i=this._relativeTime[s];return Z(i)?i(e,t,s,r):i.replace(/%d/i,e)}function ni(e,t){var s=this._relativeTime[e>0?"future":"past"];return Z(s)?s(t):s.replace(/%s/i,t)}var is={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 U(e){return typeof e=="string"?is[e]||is[e.toLowerCase()]:void 0}function _t(e){var t={},s,r;for(r in e)w(e,r)&&(s=U(r),s&&(t[s]=e[r]));return t}var ai={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 li(e){var t=[],s;for(s in e)w(e,s)&&t.push({unit:s,priority:ai[s]});return t.sort(function(r,i){return r.priority-i.priority}),t}var ns=/\d/,W=/\d\d/,as=/\d{3}/,kt=/\d{4}/,Ue=/[+-]?\d{6}/,v=/\d\d?/,ls=/\d\d\d\d?/,os=/\d\d\d\d\d\d?/,He=/\d{1,3}/,St=/\d{1,4}/,je=/[+-]?\d{1,6}/,Se=/\d+/,ze=/[+-]?\d+/,oi=/Z|[+-]\d\d:?\d\d/gi,Ge=/Z|[+-]\d\d(?::?\d\d)?/gi,ci=/[+-]?\d+(\.\d{1,3})?/,Te=/[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,pe=/^[1-9]\d?/,pt=/^([1-9]\d|\d)/,qe;qe={};function _(e,t,s){qe[e]=Z(t)?t:function(r,i){return r&&s?s:t}}function di(e,t){return w(qe,e)?qe[e](t._strict,t._locale):new RegExp(ui(e))}function ui(e){return $(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,i,o){return s||r||i||o}))}function $(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function H(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function x(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=H(t)),s}var wt={};function T(e,t){var s,r=t,i;for(typeof e=="string"&&(e=[e]),Y(t)&&(r=function(o,u){u[t]=x(o)}),i=e.length,s=0;s<i;s++)wt[e[s]]=r}function Oe(e,t){T(e,function(s,r,i,o){i._w=i._w||{},t(s,i._w,i,o)})}function hi(e,t,s){t!=null&&w(wt,e)&&wt[e](t,s._a,s,e)}function Ze(e){return e%4===0&&e%100!==0||e%400===0}var R=0,ee=1,J=2,L=3,z=4,te=5,me=6,fi=7,mi=8;p("Y",0,0,function(){var e=this.year();return e<=9999?K(e,4):"+"+e}),p(0,["YY",2],0,function(){return this.year()%100}),p(0,["YYYY",4],0,"year"),p(0,["YYYYY",5],0,"year"),p(0,["YYYYYY",6,!0],0,"year"),_("Y",ze),_("YY",v,W),_("YYYY",St,kt),_("YYYYY",je,Ue),_("YYYYYY",je,Ue),T(["YYYYY","YYYYYY"],R),T("YYYY",function(e,t){t[R]=e.length===2?d.parseTwoDigitYear(e):x(e)}),T("YY",function(e,t){t[R]=d.parseTwoDigitYear(e)}),T("Y",function(e,t){t[R]=parseInt(e,10)});function ve(e){return Ze(e)?366:365}d.parseTwoDigitYear=function(e){return x(e)+(x(e)>68?1900:2e3)};var cs=we("FullYear",!0);function yi(){return Ze(this.year())}function we(e,t){return function(s){return s!=null?(ds(this,e,s),d.updateOffset(this,t),this):Ie(this,e)}}function Ie(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function ds(e,t,s){var r,i,o,u,g;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(i?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(i?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(i?r.setUTCHours(s):r.setHours(s));case"Date":return void(i?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}o=s,u=e.month(),g=e.date(),g=g===29&&u===1&&!Ze(o)?28:g,i?r.setUTCFullYear(o,u,g):r.setFullYear(o,u,g)}}function gi(e){return e=U(e),Z(this[e])?this[e]():this}function _i(e,t){if(typeof e=="object"){e=_t(e);var s=li(e),r,i=s.length;for(r=0;r<i;r++)this[s[r].unit](e[s[r].unit])}else if(e=U(e),Z(this[e]))return this[e](t);return this}function ki(e,t){return(e%t+t)%t}var E;Array.prototype.indexOf?E=Array.prototype.indexOf:E=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function bt(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=ki(t,12);return e+=(t-s)/12,s===1?Ze(e)?29:28:31-s%7%2}p("M",["MM",2],"Mo",function(){return this.month()+1}),p("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),p("MMMM",0,0,function(e){return this.localeData().months(this,e)}),_("M",v,pe),_("MM",v,W),_("MMM",function(e,t){return t.monthsShortRegex(e)}),_("MMMM",function(e,t){return t.monthsRegex(e)}),T(["M","MM"],function(e,t){t[ee]=x(e)-1}),T(["MMM","MMMM"],function(e,t,s,r){var i=s._locale.monthsParse(e,r,s._strict);i!=null?t[ee]=i:M(s).invalidMonth=e});var Si="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),us="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),hs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,pi=Te,wi=Te;function bi(e,t){return e?m(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||hs).test(t)?"format":"standalone"][e.month()]:m(this._months)?this._months:this._months.standalone}function Mi(e,t){return e?m(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[hs.test(t)?"format":"standalone"][e.month()]:m(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function xi(e,t,s){var r,i,o,u=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=q([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return s?t==="MMM"?(i=E.call(this._shortMonthsParse,u),i!==-1?i:null):(i=E.call(this._longMonthsParse,u),i!==-1?i:null):t==="MMM"?(i=E.call(this._shortMonthsParse,u),i!==-1?i:(i=E.call(this._longMonthsParse,u),i!==-1?i:null)):(i=E.call(this._longMonthsParse,u),i!==-1?i:(i=E.call(this._shortMonthsParse,u),i!==-1?i:null))}function Di(e,t,s){var r,i,o;if(this._monthsParseExact)return xi.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=q([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function fs(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=x(t);else if(t=e.localeData().monthsParse(t),!Y(t))return e}var s=t,r=e.date();return r=r<29?r:Math.min(r,bt(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,r):e._d.setMonth(s,r),e}function ms(e){return e!=null?(fs(this,e),d.updateOffset(this,!0),this):Ie(this,"Month")}function Ci(){return bt(this.year(),this.month())}function Pi(e){return this._monthsParseExact?(w(this,"_monthsRegex")||ys.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=pi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Yi(e){return this._monthsParseExact?(w(this,"_monthsRegex")||ys.call(this),e?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=wi),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ys(){function e(b,D){return D.length-b.length}var t=[],s=[],r=[],i,o,u,g;for(i=0;i<12;i++)o=q([2e3,i]),u=$(this.monthsShort(o,"")),g=$(this.months(o,"")),t.push(u),s.push(g),r.push(g),r.push(u);t.sort(e),s.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Ti(e,t,s,r,i,o,u){var g;return e<100&&e>=0?(g=new Date(e+400,t,s,r,i,o,u),isFinite(g.getFullYear())&&g.setFullYear(e)):g=new Date(e,t,s,r,i,o,u),g}function Ne(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ke(e,t,s){var r=7+t-s,i=(7+Ne(e,0,r).getUTCDay()-t)%7;return-i+r-1}function gs(e,t,s,r,i){var o=(7+s-r)%7,u=Ke(e,r,i),g=1+7*(t-1)+o+u,b,D;return g<=0?(b=e-1,D=ve(b)+g):g>ve(e)?(b=e+1,D=g-ve(e)):(b=e,D=g),{year:b,dayOfYear:D}}function Ee(e,t,s){var r=Ke(e.year(),t,s),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,u;return i<1?(u=e.year()-1,o=i+se(u,t,s)):i>se(e.year(),t,s)?(o=i-se(e.year(),t,s),u=e.year()+1):(u=e.year(),o=i),{week:o,year:u}}function se(e,t,s){var r=Ke(e,t,s),i=Ke(e+1,t,s);return(ve(e)-r+i)/7}p("w",["ww",2],"wo","week"),p("W",["WW",2],"Wo","isoWeek"),_("w",v,pe),_("ww",v,W),_("W",v,pe),_("WW",v,W),Oe(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=x(e)});function Oi(e){return Ee(e,this._week.dow,this._week.doy).week}var vi={dow:0,doy:6};function Ii(){return this._week.dow}function Ni(){return this._week.doy}function Ei(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Li(e){var t=Ee(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}p("d",0,"do","day"),p("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),p("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),p("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),p("e",0,0,"weekday"),p("E",0,0,"isoWeekday"),_("d",v),_("e",v),_("E",v),_("dd",function(e,t){return t.weekdaysMinRegex(e)}),_("ddd",function(e,t){return t.weekdaysShortRegex(e)}),_("dddd",function(e,t){return t.weekdaysRegex(e)}),Oe(["dd","ddd","dddd"],function(e,t,s,r){var i=s._locale.weekdaysParse(e,r,s._strict);i!=null?t.d=i:M(s).invalidWeekday=e}),Oe(["d","e","E"],function(e,t,s,r){t[r]=x(e)});function Ri(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ai(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Mt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Fi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),_s="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Wi=Te,Vi=Te,Ui=Te;function Hi(e,t){var s=m(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Mt(s,this._week.dow):e?s[e.day()]:s}function ji(e){return e===!0?Mt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zi(e){return e===!0?Mt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Gi(e,t,s){var r,i,o,u=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=q([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return s?t==="dddd"?(i=E.call(this._weekdaysParse,u),i!==-1?i:null):t==="ddd"?(i=E.call(this._shortWeekdaysParse,u),i!==-1?i:null):(i=E.call(this._minWeekdaysParse,u),i!==-1?i:null):t==="dddd"?(i=E.call(this._weekdaysParse,u),i!==-1||(i=E.call(this._shortWeekdaysParse,u),i!==-1)?i:(i=E.call(this._minWeekdaysParse,u),i!==-1?i:null)):t==="ddd"?(i=E.call(this._shortWeekdaysParse,u),i!==-1||(i=E.call(this._weekdaysParse,u),i!==-1)?i:(i=E.call(this._minWeekdaysParse,u),i!==-1?i:null)):(i=E.call(this._minWeekdaysParse,u),i!==-1||(i=E.call(this._weekdaysParse,u),i!==-1)?i:(i=E.call(this._shortWeekdaysParse,u),i!==-1?i:null))}function qi(e,t,s){var r,i,o;if(this._weekdaysParseExact)return Gi.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=q([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function Zi(e){if(!this.isValid())return e!=null?this:NaN;var t=Ie(this,"Day");return e!=null?(e=Ri(e,this.localeData()),this.add(e-t,"d")):t}function Ki(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Ji(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ai(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Qi(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=Wi),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xi(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Vi),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $i(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ui),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function xt(){function e(A,le){return le.length-A.length}var t=[],s=[],r=[],i=[],o,u,g,b,D;for(o=0;o<7;o++)u=q([2e3,1]).day(o),g=$(this.weekdaysMin(u,"")),b=$(this.weekdaysShort(u,"")),D=$(this.weekdays(u,"")),t.push(g),s.push(b),r.push(D),i.push(g),i.push(b),i.push(D);t.sort(e),s.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Dt(){return this.hours()%12||12}function en(){return this.hours()||24}p("H",["HH",2],0,"hour"),p("h",["hh",2],0,Dt),p("k",["kk",2],0,en),p("hmm",0,0,function(){return""+Dt.apply(this)+K(this.minutes(),2)}),p("hmmss",0,0,function(){return""+Dt.apply(this)+K(this.minutes(),2)+K(this.seconds(),2)}),p("Hmm",0,0,function(){return""+this.hours()+K(this.minutes(),2)}),p("Hmmss",0,0,function(){return""+this.hours()+K(this.minutes(),2)+K(this.seconds(),2)});function ks(e,t){p(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ks("a",!0),ks("A",!1);function Ss(e,t){return t._meridiemParse}_("a",Ss),_("A",Ss),_("H",v,pt),_("h",v,pe),_("k",v,pe),_("HH",v,W),_("hh",v,W),_("kk",v,W),_("hmm",ls),_("hmmss",os),_("Hmm",ls),_("Hmmss",os),T(["H","HH"],L),T(["k","kk"],function(e,t,s){var r=x(e);t[L]=r===24?0:r}),T(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),T(["h","hh"],function(e,t,s){t[L]=x(e),M(s).bigHour=!0}),T("hmm",function(e,t,s){var r=e.length-2;t[L]=x(e.substr(0,r)),t[z]=x(e.substr(r)),M(s).bigHour=!0}),T("hmmss",function(e,t,s){var r=e.length-4,i=e.length-2;t[L]=x(e.substr(0,r)),t[z]=x(e.substr(r,2)),t[te]=x(e.substr(i)),M(s).bigHour=!0}),T("Hmm",function(e,t,s){var r=e.length-2;t[L]=x(e.substr(0,r)),t[z]=x(e.substr(r))}),T("Hmmss",function(e,t,s){var r=e.length-4,i=e.length-2;t[L]=x(e.substr(0,r)),t[z]=x(e.substr(r,2)),t[te]=x(e.substr(i))});function tn(e){return(e+"").toLowerCase().charAt(0)==="p"}var sn=/[ap]\.?m?\.?/i,rn=we("Hours",!0);function nn(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var ps={calendar:Gr,longDateFormat:Jr,invalidDate:Xr,ordinal:ei,dayOfMonthOrdinalParse:ti,relativeTime:ri,months:Si,monthsShort:us,week:vi,weekdays:Fi,weekdaysMin:Bi,weekdaysShort:_s,meridiemParse:sn},N={},Le={},Re;function an(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function ws(e){return e&&e.toLowerCase().replace("_","-")}function ln(e){for(var t=0,s,r,i,o;t<e.length;){for(o=ws(e[t]).split("-"),s=o.length,r=ws(e[t+1]),r=r?r.split("-"):null;s>0;){if(i=Je(o.slice(0,s).join("-")),i)return i;if(r&&r.length>=s&&an(o,r)>=s-1)break;s--}t++}return Re}function on(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Je(e){var t=null,s;if(N[e]===void 0&&n&&n.exports&&on(e))try{t=Re._abbr,s=Vt,s("./locale/"+e),ce(t)}catch{N[e]=null}return N[e]}function ce(e,t){var s;return e&&(h(t)?s=re(e):s=Ct(e,t),s?Re=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Re._abbr}function Ct(e,t){if(t!==null){var s,r=ps;if(t.abbr=e,N[e]!=null)ss("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=N[e]._config;else if(t.parentLocale!=null)if(N[t.parentLocale]!=null)r=N[t.parentLocale]._config;else if(s=Je(t.parentLocale),s!=null)r=s._config;else return Le[t.parentLocale]||(Le[t.parentLocale]=[]),Le[t.parentLocale].push({name:e,config:t}),null;return N[e]=new ft(ht(r,t)),Le[e]&&Le[e].forEach(function(i){Ct(i.name,i.config)}),ce(e),N[e]}else return delete N[e],null}function cn(e,t){if(t!=null){var s,r,i=ps;N[e]!=null&&N[e].parentLocale!=null?N[e].set(ht(N[e]._config,t)):(r=Je(e),r!=null&&(i=r._config),t=ht(i,t),r==null&&(t.abbr=e),s=new ft(t),s.parentLocale=N[e],N[e]=s),ce(e)}else N[e]!=null&&(N[e].parentLocale!=null?(N[e]=N[e].parentLocale,e===ce()&&ce(e)):N[e]!=null&&delete N[e]);return N[e]}function re(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Re;if(!m(e)){if(t=Je(e),t)return t;e=[e]}return ln(e)}function dn(){return mt(N)}function Pt(e){var t,s=e._a;return s&&M(e).overflow===-2&&(t=s[ee]<0||s[ee]>11?ee:s[J]<1||s[J]>bt(s[R],s[ee])?J:s[L]<0||s[L]>24||s[L]===24&&(s[z]!==0||s[te]!==0||s[me]!==0)?L:s[z]<0||s[z]>59?z:s[te]<0||s[te]>59?te:s[me]<0||s[me]>999?me:-1,M(e)._overflowDayOfYear&&(t<R||t>J)&&(t=J),M(e)._overflowWeeks&&t===-1&&(t=fi),M(e)._overflowWeekday&&t===-1&&(t=mi),M(e).overflow=t),e}var un=/^\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)?)?$/,hn=/^\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)?)?$/,fn=/Z|[+-]\d\d(?::?\d\d)?/,Qe=[["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]],Yt=[["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/]],mn=/^\/?Date\((-?\d+)/i,yn=/^(?:(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}))$/,gn={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function bs(e){var t,s,r=e._i,i=un.exec(r)||hn.exec(r),o,u,g,b,D=Qe.length,A=Yt.length;if(i){for(M(e).iso=!0,t=0,s=D;t<s;t++)if(Qe[t][1].exec(i[1])){u=Qe[t][0],o=Qe[t][2]!==!1;break}if(u==null){e._isValid=!1;return}if(i[3]){for(t=0,s=A;t<s;t++)if(Yt[t][1].exec(i[3])){g=(i[2]||" ")+Yt[t][0];break}if(g==null){e._isValid=!1;return}}if(!o&&g!=null){e._isValid=!1;return}if(i[4])if(fn.exec(i[4]))b="Z";else{e._isValid=!1;return}e._f=u+(g||"")+(b||""),Ot(e)}else e._isValid=!1}function _n(e,t,s,r,i,o){var u=[kn(e),us.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(i,10)];return o&&u.push(parseInt(o,10)),u}function kn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Sn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function pn(e,t,s){if(e){var r=_s.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return M(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function wn(e,t,s){if(e)return gn[e];if(t)return 0;var r=parseInt(s,10),i=r%100,o=(r-i)/100;return o*60+i}function Ms(e){var t=yn.exec(Sn(e._i)),s;if(t){if(s=_n(t[4],t[3],t[2],t[5],t[6],t[7]),!pn(t[1],s,e))return;e._a=s,e._tzm=wn(t[8],t[9],t[10]),e._d=Ne.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),M(e).rfc2822=!0}else e._isValid=!1}function bn(e){var t=mn.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(bs(e),e._isValid===!1)delete e._isValid;else return;if(Ms(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:d.createFromInputFallback(e)}d.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 be(e,t,s){return e??t??s}function Mn(e){var t=new Date(d.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Tt(e){var t,s,r=[],i,o,u;if(!e._d){for(i=Mn(e),e._w&&e._a[J]==null&&e._a[ee]==null&&xn(e),e._dayOfYear!=null&&(u=be(e._a[R],i[R]),(e._dayOfYear>ve(u)||e._dayOfYear===0)&&(M(e)._overflowDayOfYear=!0),s=Ne(u,0,e._dayOfYear),e._a[ee]=s.getUTCMonth(),e._a[J]=s.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?1:0:e._a[t];e._a[L]===24&&e._a[z]===0&&e._a[te]===0&&e._a[me]===0&&(e._nextDay=!0,e._a[L]=0),e._d=(e._useUTC?Ne:Ti).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[L]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(M(e).weekdayMismatch=!0)}}function xn(e){var t,s,r,i,o,u,g,b,D;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,u=4,s=be(t.GG,e._a[R],Ee(I(),1,4).year),r=be(t.W,1),i=be(t.E,1),(i<1||i>7)&&(b=!0)):(o=e._locale._week.dow,u=e._locale._week.doy,D=Ee(I(),o,u),s=be(t.gg,e._a[R],D.year),r=be(t.w,D.week),t.d!=null?(i=t.d,(i<0||i>6)&&(b=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(b=!0)):i=o),r<1||r>se(s,o,u)?M(e)._overflowWeeks=!0:b!=null?M(e)._overflowWeekday=!0:(g=gs(s,r,i,o,u),e._a[R]=g.year,e._dayOfYear=g.dayOfYear)}d.ISO_8601=function(){},d.RFC_2822=function(){};function Ot(e){if(e._f===d.ISO_8601){bs(e);return}if(e._f===d.RFC_2822){Ms(e);return}e._a=[],M(e).empty=!0;var t=""+e._i,s,r,i,o,u,g=t.length,b=0,D,A;for(i=rs(e._f,e._locale).match(yt)||[],A=i.length,s=0;s<A;s++)o=i[s],r=(t.match(di(o,e))||[])[0],r&&(u=t.substr(0,t.indexOf(r)),u.length>0&&M(e).unusedInput.push(u),t=t.slice(t.indexOf(r)+r.length),b+=r.length),ke[o]?(r?M(e).empty=!1:M(e).unusedTokens.push(o),hi(o,r,e)):e._strict&&!r&&M(e).unusedTokens.push(o);M(e).charsLeftOver=g-b,t.length>0&&M(e).unusedInput.push(t),e._a[L]<=12&&M(e).bigHour===!0&&e._a[L]>0&&(M(e).bigHour=void 0),M(e).parsedDateParts=e._a.slice(0),M(e).meridiem=e._meridiem,e._a[L]=Dn(e._locale,e._a[L],e._meridiem),D=M(e).era,D!==null&&(e._a[R]=e._locale.erasConvertYear(D,e._a[R])),Tt(e),Pt(e)}function Dn(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Cn(e){var t,s,r,i,o,u,g=!1,b=e._f.length;if(b===0){M(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<b;i++)o=0,u=!1,t=ut({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],Ot(t),ct(t)&&(u=!0),o+=M(t).charsLeftOver,o+=M(t).unusedTokens.length*10,M(t).score=o,g?o<r&&(r=o,s=t):(r==null||o<r||u)&&(r=o,s=t,u&&(g=!0));oe(e,s||t)}function Pn(e){if(!e._d){var t=_t(e._i),s=t.day===void 0?t.date:t.day;e._a=F([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),Tt(e)}}function Yn(e){var t=new Ye(Pt(xs(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function xs(e){var t=e._i,s=e._f;return e._locale=e._locale||re(e._l),t===null||s===void 0&&t===""?Be({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),j(t)?new Ye(Pt(t)):(k(t)?e._d=t:m(s)?Cn(e):s?Ot(e):Tn(e),ct(e)||(e._d=null),e))}function Tn(e){var t=e._i;h(t)?e._d=new Date(d.now()):k(t)?e._d=new Date(t.valueOf()):typeof t=="string"?bn(e):m(t)?(e._a=F(t.slice(0),function(s){return parseInt(s,10)}),Tt(e)):S(t)?Pn(e):Y(t)?e._d=new Date(t):d.createFromInputFallback(e)}function Ds(e,t,s,r,i){var o={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(S(e)&&O(e)||m(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=s,o._i=e,o._f=t,o._strict=r,Yn(o)}function I(e,t,s,r){return Ds(e,t,s,r,!1)}var On=V("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=I.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Be()}),vn=V("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=I.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Be()});function Cs(e,t){var s,r;if(t.length===1&&m(t[0])&&(t=t[0]),!t.length)return I();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function In(){var e=[].slice.call(arguments,0);return Cs("isBefore",e)}function Nn(){var e=[].slice.call(arguments,0);return Cs("isAfter",e)}var En=function(){return Date.now?Date.now():+new Date},Ae=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ln(e){var t,s=!1,r,i=Ae.length;for(t in e)if(w(e,t)&&!(E.call(Ae,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Ae[r]]){if(s)return!1;parseFloat(e[Ae[r]])!==x(e[Ae[r]])&&(s=!0)}return!0}function Rn(){return this._isValid}function An(){return G(NaN)}function Xe(e){var t=_t(e),s=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,u=t.day||0,g=t.hour||0,b=t.minute||0,D=t.second||0,A=t.millisecond||0;this._isValid=Ln(t),this._milliseconds=+A+D*1e3+b*6e4+g*1e3*60*60,this._days=+u+o*7,this._months=+i+r*3+s*12,this._data={},this._locale=re(),this._bubble()}function $e(e){return e instanceof Xe}function vt(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Fn(e,t,s){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,u;for(u=0;u<r;u++)x(e[u])!==x(t[u])&&o++;return o+i}function Ps(e,t){p(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+K(~~(s/60),2)+t+K(~~s%60,2)})}Ps("Z",":"),Ps("ZZ",""),_("Z",Ge),_("ZZ",Ge),T(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=It(Ge,e)});var Bn=/([\+\-]|\d\d)/gi;function It(e,t){var s=(t||"").match(e),r,i,o;return s===null?null:(r=s[s.length-1]||[],i=(r+"").match(Bn)||["-",0,0],o=+(i[1]*60)+x(i[2]),o===0?0:i[0]==="+"?o:-o)}function Nt(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(j(e)||k(e)?e.valueOf():I(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),d.updateOffset(s,!1),s):I(e).local()}function Et(e){return-Math.round(e._d.getTimezoneOffset())}d.updateOffset=function(){};function Wn(e,t,s){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=It(Ge,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(i=Et(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?vs(this,G(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Et(this)}function Vn(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Un(e){return this.utcOffset(0,e)}function Hn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Et(this),"m")),this}function jn(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=It(oi,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function zn(e){return this.isValid()?(e=e?I(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Gn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qn(){if(!h(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ut(e,this),e=xs(e),e._a?(t=e._isUTC?q(e._a):I(e._a),this._isDSTShifted=this.isValid()&&Fn(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Zn(){return this.isValid()?!this._isUTC:!1}function Kn(){return this.isValid()?this._isUTC:!1}function Ys(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Jn=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Qn=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function G(e,t){var s=e,r=null,i,o,u;return $e(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:Y(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=Jn.exec(e))?(i=r[1]==="-"?-1:1,s={y:0,d:x(r[J])*i,h:x(r[L])*i,m:x(r[z])*i,s:x(r[te])*i,ms:x(vt(r[me]*1e3))*i}):(r=Qn.exec(e))?(i=r[1]==="-"?-1:1,s={y:ye(r[2],i),M:ye(r[3],i),w:ye(r[4],i),d:ye(r[5],i),h:ye(r[6],i),m:ye(r[7],i),s:ye(r[8],i)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(u=Xn(I(s.from),I(s.to)),s={},s.ms=u.milliseconds,s.M=u.months),o=new Xe(s),$e(e)&&w(e,"_locale")&&(o._locale=e._locale),$e(e)&&w(e,"_isValid")&&(o._isValid=e._isValid),o}G.fn=Xe.prototype,G.invalid=An;function ye(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function Ts(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Xn(e,t){var s;return e.isValid()&&t.isValid()?(t=Nt(t,e),e.isBefore(t)?s=Ts(e,t):(s=Ts(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function Os(e,t){return function(s,r){var i,o;return r!==null&&!isNaN(+r)&&(ss(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."),o=s,s=r,r=o),i=G(s,r),vs(this,i,e),this}}function vs(e,t,s,r){var i=t._milliseconds,o=vt(t._days),u=vt(t._months);e.isValid()&&(r=r??!0,u&&fs(e,Ie(e,"Month")+u*s),o&&ds(e,"Date",Ie(e,"Date")+o*s),i&&e._d.setTime(e._d.valueOf()+i*s),r&&d.updateOffset(e,o||u))}var $n=Os(1,"add"),ea=Os(-1,"subtract");function Is(e){return typeof e=="string"||e instanceof String}function ta(e){return j(e)||k(e)||Is(e)||Y(e)||ra(e)||sa(e)||e===null||e===void 0}function sa(e){var t=S(e)&&!O(e),s=!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,o,u=r.length;for(i=0;i<u;i+=1)o=r[i],s=s||w(e,o);return t&&s}function ra(e){var t=m(e),s=!1;return t&&(s=e.filter(function(r){return!Y(r)&&Is(e)}).length===0),t&&s}function ia(e){var t=S(e)&&!O(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<r.length;i+=1)o=r[i],s=s||w(e,o);return t&&s}function na(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function aa(e,t){arguments.length===1&&(arguments[0]?ta(arguments[0])?(e=arguments[0],t=void 0):ia(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||I(),r=Nt(s,this).startOf("day"),i=d.calendarFormat(this,r)||"sameElse",o=t&&(Z(t[i])?t[i].call(this,s):t[i]);return this.format(o||this.localeData().calendar(i,this,I(s)))}function la(){return new Ye(this)}function oa(e,t){var s=j(e)?e:I(e);return this.isValid()&&s.isValid()?(t=U(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function ca(e,t){var s=j(e)?e:I(e);return this.isValid()&&s.isValid()?(t=U(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function da(e,t,s,r){var i=j(e)?e:I(e),o=j(t)?t:I(t);return this.isValid()&&i.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,s):!this.isBefore(i,s))&&(r[1]===")"?this.isBefore(o,s):!this.isAfter(o,s))):!1}function ua(e,t){var s=j(e)?e:I(e),r;return this.isValid()&&s.isValid()?(t=U(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function ha(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function fa(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function ma(e,t,s){var r,i,o;if(!this.isValid())return NaN;if(r=Nt(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=U(t),t){case"year":o=et(this,r)/12;break;case"month":o=et(this,r);break;case"quarter":o=et(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return s?o:H(o)}function et(e,t){if(e.date()<t.date())return-et(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),i,o;return t-r<0?(i=e.clone().add(s-1,"months"),o=(t-r)/(r-i)):(i=e.clone().add(s+1,"months"),o=(t-r)/(i-r)),-(s+o)||0}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function ya(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ga(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?Ve(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Z(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ve(s,"Z")):Ve(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _a(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(s+r+i+o)}function ka(e){e||(e=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var t=Ve(this,e);return this.localeData().postformat(t)}function Sa(e,t){return this.isValid()&&(j(e)&&e.isValid()||I(e).isValid())?G({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pa(e){return this.from(I(),e)}function wa(e,t){return this.isValid()&&(j(e)&&e.isValid()||I(e).isValid())?G({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ba(e){return this.to(I(),e)}function Ns(e){var t;return e===void 0?this._locale._abbr:(t=re(e),t!=null&&(this._locale=t),this)}var Es=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 Ls(){return this._locale}var tt=1e3,Me=60*tt,st=60*Me,Rs=(365*400+97)*24*st;function xe(e,t){return(e%t+t)%t}function As(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-Rs:new Date(e,t,s).valueOf()}function Fs(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-Rs:Date.UTC(e,t,s)}function Ma(e){var t,s;if(e=U(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Fs:As,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=xe(t+(this._isUTC?0:this.utcOffset()*Me),st);break;case"minute":t=this._d.valueOf(),t-=xe(t,Me);break;case"second":t=this._d.valueOf(),t-=xe(t,tt);break}return this._d.setTime(t),d.updateOffset(this,!0),this}function xa(e){var t,s;if(e=U(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Fs:As,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=st-xe(t+(this._isUTC?0:this.utcOffset()*Me),st)-1;break;case"minute":t=this._d.valueOf(),t+=Me-xe(t,Me)-1;break;case"second":t=this._d.valueOf(),t+=tt-xe(t,tt)-1;break}return this._d.setTime(t),d.updateOffset(this,!0),this}function Da(){return this._d.valueOf()-(this._offset||0)*6e4}function Ca(){return Math.floor(this.valueOf()/1e3)}function Pa(){return new Date(this.valueOf())}function Ya(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ta(){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 Oa(){return this.isValid()?this.toISOString():null}function va(){return ct(this)}function Ia(){return oe({},M(this))}function Na(){return M(this).overflow}function Ea(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}p("N",0,0,"eraAbbr"),p("NN",0,0,"eraAbbr"),p("NNN",0,0,"eraAbbr"),p("NNNN",0,0,"eraName"),p("NNNNN",0,0,"eraNarrow"),p("y",["y",1],"yo","eraYear"),p("y",["yy",2],0,"eraYear"),p("y",["yyy",3],0,"eraYear"),p("y",["yyyy",4],0,"eraYear"),_("N",Lt),_("NN",Lt),_("NNN",Lt),_("NNNN",za),_("NNNNN",Ga),T(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var i=s._locale.erasParse(e,r,s._strict);i?M(s).era=i:M(s).invalidEra=e}),_("y",Se),_("yy",Se),_("yyy",Se),_("yyyy",Se),_("yo",qa),T(["y","yy","yyy","yyyy"],R),T(["yo"],function(e,t,s,r){var i;s._locale._eraYearOrdinalRegex&&(i=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[R]=s._locale.eraYearOrdinalParse(e,i):t[R]=parseInt(e,10)});function La(e,t){var s,r,i,o=this._eras||re("en")._eras;for(s=0,r=o.length;s<r;++s){switch(typeof o[s].since){case"string":i=d(o[s].since).startOf("day"),o[s].since=i.valueOf();break}switch(typeof o[s].until){case"undefined":o[s].until=1/0;break;case"string":i=d(o[s].until).startOf("day").valueOf(),o[s].until=i.valueOf();break}}return o}function Ra(e,t,s){var r,i,o=this.eras(),u,g,b;for(e=e.toUpperCase(),r=0,i=o.length;r<i;++r)if(u=o[r].name.toUpperCase(),g=o[r].abbr.toUpperCase(),b=o[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(g===e)return o[r];break;case"NNNN":if(u===e)return o[r];break;case"NNNNN":if(b===e)return o[r];break}else if([u,g,b].indexOf(e)>=0)return o[r]}function Aa(e,t){var s=e.since<=e.until?1:-1;return t===void 0?d(e.since).year():d(e.since).year()+(t-e.offset)*s}function Fa(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function Ba(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function Wa(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function Va(){var e,t,s,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(s=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-d(i[e].since).year())*s+i[e].offset;return this.year()}function Ua(e){return w(this,"_erasNameRegex")||Rt.call(this),e?this._erasNameRegex:this._erasRegex}function Ha(e){return w(this,"_erasAbbrRegex")||Rt.call(this),e?this._erasAbbrRegex:this._erasRegex}function ja(e){return w(this,"_erasNarrowRegex")||Rt.call(this),e?this._erasNarrowRegex:this._erasRegex}function Lt(e,t){return t.erasAbbrRegex(e)}function za(e,t){return t.erasNameRegex(e)}function Ga(e,t){return t.erasNarrowRegex(e)}function qa(e,t){return t._eraYearOrdinalRegex||Se}function Rt(){var e=[],t=[],s=[],r=[],i,o,u,g,b,D=this.eras();for(i=0,o=D.length;i<o;++i)u=$(D[i].name),g=$(D[i].abbr),b=$(D[i].narrow),t.push(u),e.push(g),s.push(b),r.push(u),r.push(g),r.push(b);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}p(0,["gg",2],0,function(){return this.weekYear()%100}),p(0,["GG",2],0,function(){return this.isoWeekYear()%100});function rt(e,t){p(0,[e,e.length],0,t)}rt("gggg","weekYear"),rt("ggggg","weekYear"),rt("GGGG","isoWeekYear"),rt("GGGGG","isoWeekYear"),_("G",ze),_("g",ze),_("GG",v,W),_("gg",v,W),_("GGGG",St,kt),_("gggg",St,kt),_("GGGGG",je,Ue),_("ggggg",je,Ue),Oe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=x(e)}),Oe(["gg","GG"],function(e,t,s,r){t[r]=d.parseTwoDigitYear(e)});function Za(e){return Bs.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Ka(e){return Bs.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ja(){return se(this.year(),1,4)}function Qa(){return se(this.isoWeekYear(),1,4)}function Xa(){var e=this.localeData()._week;return se(this.year(),e.dow,e.doy)}function $a(){var e=this.localeData()._week;return se(this.weekYear(),e.dow,e.doy)}function Bs(e,t,s,r,i){var o;return e==null?Ee(this,r,i).year:(o=se(e,r,i),t>o&&(t=o),el.call(this,e,t,s,r,i))}function el(e,t,s,r,i){var o=gs(e,t,s,r,i),u=Ne(o.year,0,o.dayOfYear);return this.year(u.getUTCFullYear()),this.month(u.getUTCMonth()),this.date(u.getUTCDate()),this}p("Q",0,"Qo","quarter"),_("Q",ns),T("Q",function(e,t){t[ee]=(x(e)-1)*3});function tl(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}p("D",["DD",2],"Do","date"),_("D",v,pe),_("DD",v,W),_("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),T(["D","DD"],J),T("Do",function(e,t){t[J]=x(e.match(v)[0])});var Ws=we("Date",!0);p("DDD",["DDDD",3],"DDDo","dayOfYear"),_("DDD",He),_("DDDD",as),T(["DDD","DDDD"],function(e,t,s){s._dayOfYear=x(e)});function sl(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}p("m",["mm",2],0,"minute"),_("m",v,pt),_("mm",v,W),T(["m","mm"],z);var rl=we("Minutes",!1);p("s",["ss",2],0,"second"),_("s",v,pt),_("ss",v,W),T(["s","ss"],te);var il=we("Seconds",!1);p("S",0,0,function(){return~~(this.millisecond()/100)}),p(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),p(0,["SSS",3],0,"millisecond"),p(0,["SSSS",4],0,function(){return this.millisecond()*10}),p(0,["SSSSS",5],0,function(){return this.millisecond()*100}),p(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),p(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),p(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),p(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),_("S",He,ns),_("SS",He,W),_("SSS",He,as);var de,Vs;for(de="SSSS";de.length<=9;de+="S")_(de,Se);function nl(e,t){t[me]=x(("0."+e)*1e3)}for(de="S";de.length<=9;de+="S")T(de,nl);Vs=we("Milliseconds",!1),p("z",0,0,"zoneAbbr"),p("zz",0,0,"zoneName");function al(){return this._isUTC?"UTC":""}function ll(){return this._isUTC?"Coordinated Universal Time":""}var y=Ye.prototype;y.add=$n,y.calendar=aa,y.clone=la,y.diff=ma,y.endOf=xa,y.format=ka,y.from=Sa,y.fromNow=pa,y.to=wa,y.toNow=ba,y.get=gi,y.invalidAt=Na,y.isAfter=oa,y.isBefore=ca,y.isBetween=da,y.isSame=ua,y.isSameOrAfter=ha,y.isSameOrBefore=fa,y.isValid=va,y.lang=Es,y.locale=Ns,y.localeData=Ls,y.max=vn,y.min=On,y.parsingFlags=Ia,y.set=_i,y.startOf=Ma,y.subtract=ea,y.toArray=Ya,y.toObject=Ta,y.toDate=Pa,y.toISOString=ga,y.inspect=_a,typeof Symbol<"u"&&Symbol.for!=null&&(y[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),y.toJSON=Oa,y.toString=ya,y.unix=Ca,y.valueOf=Da,y.creationData=Ea,y.eraName=Fa,y.eraNarrow=Ba,y.eraAbbr=Wa,y.eraYear=Va,y.year=cs,y.isLeapYear=yi,y.weekYear=Za,y.isoWeekYear=Ka,y.quarter=y.quarters=tl,y.month=ms,y.daysInMonth=Ci,y.week=y.weeks=Ei,y.isoWeek=y.isoWeeks=Li,y.weeksInYear=Xa,y.weeksInWeekYear=$a,y.isoWeeksInYear=Ja,y.isoWeeksInISOWeekYear=Qa,y.date=Ws,y.day=y.days=Zi,y.weekday=Ki,y.isoWeekday=Ji,y.dayOfYear=sl,y.hour=y.hours=rn,y.minute=y.minutes=rl,y.second=y.seconds=il,y.millisecond=y.milliseconds=Vs,y.utcOffset=Wn,y.utc=Un,y.local=Hn,y.parseZone=jn,y.hasAlignedHourOffset=zn,y.isDST=Gn,y.isLocal=Zn,y.isUtcOffset=Kn,y.isUtc=Ys,y.isUTC=Ys,y.zoneAbbr=al,y.zoneName=ll,y.dates=V("dates accessor is deprecated. Use date instead.",Ws),y.months=V("months accessor is deprecated. Use month instead",ms),y.years=V("years accessor is deprecated. Use year instead",cs),y.zone=V("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Vn),y.isDSTShifted=V("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qn);function ol(e){return I(e*1e3)}function cl(){return I.apply(null,arguments).parseZone()}function Us(e){return e}var P=ft.prototype;P.calendar=qr,P.longDateFormat=Qr,P.invalidDate=$r,P.ordinal=si,P.preparse=Us,P.postformat=Us,P.relativeTime=ii,P.pastFuture=ni,P.set=zr,P.eras=La,P.erasParse=Ra,P.erasConvertYear=Aa,P.erasAbbrRegex=Ha,P.erasNameRegex=Ua,P.erasNarrowRegex=ja,P.months=bi,P.monthsShort=Mi,P.monthsParse=Di,P.monthsRegex=Yi,P.monthsShortRegex=Pi,P.week=Oi,P.firstDayOfYear=Ni,P.firstDayOfWeek=Ii,P.weekdays=Hi,P.weekdaysMin=zi,P.weekdaysShort=ji,P.weekdaysParse=qi,P.weekdaysRegex=Qi,P.weekdaysShortRegex=Xi,P.weekdaysMinRegex=$i,P.isPM=tn,P.meridiem=nn;function it(e,t,s,r){var i=re(),o=q().set(r,t);return i[s](o,e)}function Hs(e,t,s){if(Y(e)&&(t=e,e=void 0),e=e||"",t!=null)return it(e,t,s,"month");var r,i=[];for(r=0;r<12;r++)i[r]=it(e,r,s,"month");return i}function At(e,t,s,r){typeof e=="boolean"?(Y(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,Y(t)&&(s=t,t=void 0),t=t||"");var i=re(),o=e?i._week.dow:0,u,g=[];if(s!=null)return it(t,(s+o)%7,r,"day");for(u=0;u<7;u++)g[u]=it(t,(u+o)%7,r,"day");return g}function dl(e,t){return Hs(e,t,"months")}function ul(e,t){return Hs(e,t,"monthsShort")}function hl(e,t,s){return At(e,t,s,"weekdays")}function fl(e,t,s){return At(e,t,s,"weekdaysShort")}function ml(e,t,s){return At(e,t,s,"weekdaysMin")}ce("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,s=x(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}}),d.lang=V("moment.lang is deprecated. Use moment.locale instead.",ce),d.langData=V("moment.langData is deprecated. Use moment.localeData instead.",re);var ie=Math.abs;function yl(){var e=this._data;return this._milliseconds=ie(this._milliseconds),this._days=ie(this._days),this._months=ie(this._months),e.milliseconds=ie(e.milliseconds),e.seconds=ie(e.seconds),e.minutes=ie(e.minutes),e.hours=ie(e.hours),e.months=ie(e.months),e.years=ie(e.years),this}function js(e,t,s,r){var i=G(t,s);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function gl(e,t){return js(this,e,t,1)}function _l(e,t){return js(this,e,t,-1)}function zs(e){return e<0?Math.floor(e):Math.ceil(e)}function kl(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,i,o,u,g,b;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=zs(Ft(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,i=H(e/1e3),r.seconds=i%60,o=H(i/60),r.minutes=o%60,u=H(o/60),r.hours=u%24,t+=H(u/24),b=H(Gs(t)),s+=b,t-=zs(Ft(b)),g=H(s/12),s%=12,r.days=t,r.months=s,r.years=g,this}function Gs(e){return e*4800/146097}function Ft(e){return e*146097/4800}function Sl(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=U(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+Gs(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(Ft(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 new Error("Unknown unit "+e)}}function ne(e){return function(){return this.as(e)}}var qs=ne("ms"),pl=ne("s"),wl=ne("m"),bl=ne("h"),Ml=ne("d"),xl=ne("w"),Dl=ne("M"),Cl=ne("Q"),Pl=ne("y"),Yl=qs;function Tl(){return G(this)}function Ol(e){return e=U(e),this.isValid()?this[e+"s"]():NaN}function ge(e){return function(){return this.isValid()?this._data[e]:NaN}}var vl=ge("milliseconds"),Il=ge("seconds"),Nl=ge("minutes"),El=ge("hours"),Ll=ge("days"),Rl=ge("months"),Al=ge("years");function Fl(){return H(this.days()/7)}var ae=Math.round,De={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Bl(e,t,s,r,i){return i.relativeTime(t||1,!!s,e,r)}function Wl(e,t,s,r){var i=G(e).abs(),o=ae(i.as("s")),u=ae(i.as("m")),g=ae(i.as("h")),b=ae(i.as("d")),D=ae(i.as("M")),A=ae(i.as("w")),le=ae(i.as("y")),ue=o<=s.ss&&["s",o]||o<s.s&&["ss",o]||u<=1&&["m"]||u<s.m&&["mm",u]||g<=1&&["h"]||g<s.h&&["hh",g]||b<=1&&["d"]||b<s.d&&["dd",b];return s.w!=null&&(ue=ue||A<=1&&["w"]||A<s.w&&["ww",A]),ue=ue||D<=1&&["M"]||D<s.M&&["MM",D]||le<=1&&["y"]||["yy",le],ue[2]=t,ue[3]=+e>0,ue[4]=r,Bl.apply(null,ue)}function Vl(e){return e===void 0?ae:typeof e=="function"?(ae=e,!0):!1}function Ul(e,t){return De[e]===void 0?!1:t===void 0?De[e]:(De[e]=t,e==="s"&&(De.ss=t-1),!0)}function Hl(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=De,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},De,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=Wl(this,!s,r,i),s&&(o=i.pastFuture(+this,o)),i.postformat(o)}var Bt=Math.abs;function Ce(e){return(e>0)-(e<0)||+e}function nt(){if(!this.isValid())return this.localeData().invalidDate();var e=Bt(this._milliseconds)/1e3,t=Bt(this._days),s=Bt(this._months),r,i,o,u,g=this.asSeconds(),b,D,A,le;return g?(r=H(e/60),i=H(r/60),e%=60,r%=60,o=H(s/12),s%=12,u=e?e.toFixed(3).replace(/\.?0+$/,""):"",b=g<0?"-":"",D=Ce(this._months)!==Ce(g)?"-":"",A=Ce(this._days)!==Ce(g)?"-":"",le=Ce(this._milliseconds)!==Ce(g)?"-":"",b+"P"+(o?D+o+"Y":"")+(s?D+s+"M":"")+(t?A+t+"D":"")+(i||r||e?"T":"")+(i?le+i+"H":"")+(r?le+r+"M":"")+(e?le+u+"S":"")):"P0D"}var C=Xe.prototype;C.isValid=Rn,C.abs=yl,C.add=gl,C.subtract=_l,C.as=Sl,C.asMilliseconds=qs,C.asSeconds=pl,C.asMinutes=wl,C.asHours=bl,C.asDays=Ml,C.asWeeks=xl,C.asMonths=Dl,C.asQuarters=Cl,C.asYears=Pl,C.valueOf=Yl,C._bubble=kl,C.clone=Tl,C.get=Ol,C.milliseconds=vl,C.seconds=Il,C.minutes=Nl,C.hours=El,C.days=Ll,C.weeks=Fl,C.months=Rl,C.years=Al,C.humanize=Hl,C.toISOString=nt,C.toString=nt,C.toJSON=nt,C.locale=Ns,C.localeData=Ls,C.toIsoString=V("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nt),C.lang=Es,p("X",0,0,"unix"),p("x",0,0,"valueOf"),_("x",ze),_("X",ci),T("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)}),T("x",function(e,t,s){s._d=new Date(x(e))});//! moment.js
5
+ return d.version="2.30.1",f(I),d.fn=y,d.min=In,d.max=Nn,d.now=En,d.utc=q,d.unix=ol,d.months=dl,d.isDate=k,d.locale=ce,d.invalid=Be,d.duration=G,d.isMoment=j,d.weekdays=hl,d.parseZone=cl,d.localeData=re,d.isDuration=$e,d.monthsShort=ul,d.weekdaysMin=ml,d.defineLocale=Ct,d.updateLocale=cn,d.locales=dn,d.weekdaysShort=fl,d.normalizeUnits=U,d.relativeTimeRounding=Vl,d.relativeTimeThreshold=Ul,d.calendarFormat=na,d.prototype=y,d.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"},d})}(at)),at.exports}(function(n,l){(function(c,d){d(typeof Vt=="function"?Js():c.moment)})(Wt,function(c){//! moment.js locale configuration
6
+ var d=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,f=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,m=/(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,S=[/^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],w=c.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:m,monthsShortRegex:m,monthsStrictRegex:d,monthsShortStrictRegex:f,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,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(O,h){switch(h){case"D":return O+(O===1?"er":"");default:case"M":case"Q":case"DDD":case"d":return O+(O===1?"er":"e");case"w":case"W":return O+(O===1?"re":"e")}},week:{dow:1,doy:4}});return w})})();function he(n,l=!0){if(!n)return null;let c=n.toString().normalize("NFD").replace(/[\u0300-\u036f]/g,"");return l?c.toLowerCase():c}function Ht(n){return n?n==null?void 0:n.toLocaleString("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:2}):"0 €"}function lt(n,l="DD/MM/YYYY"){return!n||!X.unix(n).isValid()?n:X.unix(n).format(l)}function jt(n,l="DD/MM/YYYY à HH:mm"){return lt(n,l)}const zt=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)?$/;function Qs(n,l){const c=n.replace(/\d+/g,f=>(+f+1e5).toString()),d=l.replace(/\d+/g,f=>(+f+1e5).toString());return c.localeCompare(d)}function Gt(n){return n!=null&&n!==""&&!isNaN(n)}function qt(n){return n&&X(n,"DD/MM/YYYY",!0).isValid()}function Zt(n){return typeof n=="boolean"}function Xs(n,l,c){const m=(n?1:0)-(l?1:0);return c?-m:m}function $s(n,l){const c=(n==null||n==="")&&typeof n!="boolean",d=(l==null||l==="")&&typeof l!="boolean";return c&&d?0:c?1:d?-1:null}function Kt(n){return typeof n=="string"&&n.includes("€")}function er(n,l,c){const d=parseFloat(n.replace("€","").replace(",",".").replace(/\s/g,"").trim()),f=parseFloat(l.replace("€","").replace(",",".").replace(/\s/g,"").trim());if(isNaN(d)&&isNaN(f))return 0;if(isNaN(d))return 1;if(isNaN(f))return-1;const m=d-f;return c?m:-m}function Fe(n,l,c){var w,O,h,Y;const d=$s(n,l);if(d!==null)return d;if(Zt(n)&&Zt(l))return Xs(n,l,c);if(zt.test(n)&&zt.test(l)){const k=Qs(n,l);return c?k:-k}if(Gt(n)&&Gt(l)){const k=parseFloat(n),F=parseFloat(l);return c?k-F:F-k}if(qt(n)&&qt(l)){const k=X(n,"DD/MM/YYYY").unix(),F=X(l,"DD/MM/YYYY").unix();return c?k-F:F-k}if(Kt(n)&&Kt(l))return er(n,l,c);const f=typeof n=="string"?(w=he(n))==null?void 0:w.toLowerCase():(O=he(String(n)))==null?void 0:O.toLowerCase(),m=typeof l=="string"?(h=he(l))==null?void 0:h.toLowerCase():(Y=he(String(l)))==null?void 0:Y.toLowerCase(),S=f==null?void 0:f.localeCompare(m,void 0,{numeric:!0,sensitivity:"base"});return c?S:-S}function tr(n,l,c=!1){return!n||!Array.isArray(n)?n:n.sort((d,f)=>{const m=d==null?void 0:d[l],S=f==null?void 0:f[l];return Fe(m,S,c)})}function Jt(n,l=!1,c){return!n||!Array.isArray(n)?n:n.sort((d,f)=>c(d,f,l))}function Qt(n,l){let c=fe(n);if(!c)c={columns:l};else if(!c.columns)c.columns=l;else{let d=l.filter(function(m){return!c.columns.some(function(S){return S.id===m.id})});c.columns=c.columns.concat(d);let f=c.columns.filter(function(m){return!l.some(function(S){return m.id===S.id})});c.columns=c.columns.filter(function(m){return!f.some(function(S){return m.id===S.id})}),c.columns.filter(m=>{for(let S of l)S.id===m.id&&S.libelle!==m.libelle&&(m.libelle=S.libelle)})}_e(n,c)}function sr(n,l,c=null){let d=fe(n);d?c&&!d[c]&&(d[c]=l):c?(d={},d[c]=l):d=l,_e(n,d)}function fe(n){return JSON.parse(window.localStorage.getItem(n))}function _e(n,l,c=null){let d=fe(n);return c?d[c]=l:d=l,window.localStorage.setItem(n,JSON.stringify(d))}const rr=(n,l)=>{const c=n.__vccOpts||n;for(const[d,f]of l)c[d]=f;return c};Zs.library.add(Q.faEye,Q.faEyeSlash,Q.faArrowDownWideShort,Q.faArrowDownShortWide,Q.faTrash,Q.faPlus,Q.faXmark,Q.faGreaterThan,Q.faFilter);const ir={name:"AmsomTableDraggable",components:{VueDraggableNext:Ks.VueDraggableNext,FontAwesomeIcon:Pe.FontAwesomeIcon},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(n){return["left","center","right"].includes(n)}},trFontSize:{type:String,default:"fs-6"},trHeightPx:{type:Number,default:60},noValueText:{type:String,default:"Aucune valeur"}},emits:["changeSubject","lineEditModeAddNewLine","update:ckSelectedItems","update:dynamicColumns","update:deepSortsListPreset","contextmenu"],data(){return{checkAllCheckBox:!1,isDragging:!1,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 n=[];return this.totalPages<=1?n:(this.currentPage===1?n=[1,2,3]:this.currentPage===this.totalPages?n=[this.totalPages-2,this.totalPages-1,this.totalPages]:n=[this.currentPage-1,this.currentPage,this.currentPage+1],n.filter(l=>l>=1&&l<=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:X(this.pickedDate[0]).set({hour:0,minute:0}).unix(),fin:X(this.pickedDate[1]).set({hour:23,minute:59}).unix()}},normalizedSearch(){return this.search?he(this.search):""},hasDateFilter(){return this.dateFilterBounds&&Array.isArray(this.columnNameDateFilter)&&this.columnNameDateFilter.length>0},visibleColumns(){return this.columns.filter(n=>n.show&&(!n.onlyOnEditMode||this.lineEditMode))},filtereditems(){var n,l;return this.items?this.items.filter(c=>{const d=this.filterBy(c,this.normalizedSearch);if(this.hasDateFilter){const f=this.columnNameDateFilter.some(m=>{const S=c[m];if(S){const w=X(S,"DD/MM/YYYY").unix();return w>=this.dateFilterBounds.deb&&w<=this.dateFilterBounds.fin}return!1});return d&&f}return d}):[]`${this.normalizedSearch}_${this.hasDateFilter}_${(n=this.dateFilterBounds)==null?void 0:n.deb}_${(l=this.dateFilterBounds)==null?void 0:l.fin}`},sortedItems(){if(!this.filtereditems)return[];if(!this.sortKey&&(!this.deepSorts||this.deepSortsList.length===0))return this.filtereditems;const n=this.columns.find(l=>l.id===this.sortKey);return this.deepSorts&&this.deepSortsList.length>0?this.deepSortsColumnList(this.deepSortsList,[...this.filtereditems]):n!=null&&n.customSort?Jt([...this.filtereditems],this.sortAsc,n.customSort):n!=null&&n.formatter||n!=null&&n.type?Jt([...this.filtereditems],this.sortAsc,(l,c,d)=>{const f=this.formatColumnValue(l,n),m=this.formatColumnValue(c,n);return Fe(f,m,d)}):this.sortKey?tr([...this.filtereditems],this.sortKey,this.sortAsc):this.filtereditems},showeditems(){const n=this.sortedItems;if(this.infiniteScroll)return n.slice(0,this.currentVisibleItems);if(this.maxItemsPerPage===-1)return n;const l=(this.currentPage-1)*this.maxItemsPerPage,c=this.currentPage*this.maxItemsPerPage;return n.slice(l,c)},tableMaxHeight(){if(!this.infiniteScroll)return"auto";const n=this.trHeightPx||60,l=50,c=this.maxItemPerPage;return`${l+c*n}px`},deepSortsListComputed(){return this.deepSortsList}},watch:{ckSelectedItems:{handler(n){n&&(this.selectedItems=n)},immediate:!0},dynamicColumns:{handler(n){n&&!this.isInternalUpdate&&(this.isInternalUpdate=!0,this.columns=this.getColumnsById(n,this.defaultColumns),this.$nextTick(()=>{this.isInternalUpdate=!1}))},immediate:!0},columns:{handler(n){this.localStorageItemName!==null&&_e(this.localStorageItemName,this.getRefactoColumns(n),"columns"),this.dynamicColumns&&!this.isInternalUpdate&&(this.isInternalUpdate=!0,this.$emit("update:dynamicColumns",this.getRefactoColumns(n)),this.$nextTick(()=>{this.isInternalUpdate=!1})),this.forceTableUpdateIndex+=1}},headerEditMode:{handler(n){var l;if(n)this.maxItemsPerPage=3;else{const c=this.localStorageMaxItemPerPageName!==null?fe(this.localStorageMaxItemPerPageName):this.localStorageItemName!==null?(l=fe(this.localStorageItemName))==null?void 0:l.maxItemPerPage:this.maxItemPerPage;this.maxItemsPerPage=c??this.maxItemPerPage}}},sortedItems:{handler(n){if(this.infiniteScroll){const l=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems===0?this.currentVisibleItems=Math.min(this.maxItemPerPage+l,n.length):this.currentVisibleItems=Math.min(this.currentVisibleItems,n.length)}this.infiniteScroll||(this.totalPages=this.newTotalPage(n.length))},immediate:!0},filtereditems:{handler(n,l){if(this.infiniteScroll&&l&&n.length!==l.length)if(n.length>l.length&&this.currentVisibleItems<n.length){const c=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+c,n.length)}else n.length<l.length&&this.currentVisibleItems>n.length&&(this.currentVisibleItems=Math.min(this.currentVisibleItems,n.length))},immediate:!1},maxItemPerPage:{handler(n){n!==this.maxItemsPerPage&&(this.maxItemsPerPage=n)},immediate:!0},maxItemsPerPage:{handler(n){if(!this.headerEditMode){if(this.localStorageItemName!==null&&_e(this.localStorageItemName,n,"maxItemPerPage"),this.localStorageMaxItemPerPageName!==null&&_e(this.localStorageMaxItemPerPageName,n),this.infiniteScroll){const l=this.infiniteScrollIncrement||n;this.currentVisibleItems=Math.min(n+l,this.sortedItems.length)}this.currentPage!==1&&!this.infiniteScroll&&(this.currentPage=1),this.infiniteScroll||(this.totalPages=this.newTotalPage(this.filtereditems.length))}}},search:{handler(n,l){n!==l&&(this.normalizedItemsCache.clear(),this.currentPage>1&&this.$nextTick(()=>{this.adjustPageAfterSearch()}),this.infiniteScroll&&this.$nextTick(()=>{const c=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+c,this.filtereditems.length)}))},immediate:!1},showeditems:{handler(n,l){n!==l&&(this.shouldAdjustPage(n)&&this.adjustPageAfterSearch(),n.length>0?this.checkAllCheckBox=n.every(c=>this.selectedItems.includes(c.id)):this.checkAllCheckBox=!1,this.infiniteScroll||(this.totalPages=this.newTotalPage(this.filtereditems.length)),this.columns.some(c=>c.stickyLeft||c.stickyRight)&&this.$nextTick(()=>{this.debouncedUpdateStickyColumns()}))},flush:"post"},deepSortsList:{handler(n){n&&n.length>0&&this.$emit("update:deepSortsListPreset",n),this.infiniteScroll&&this.currentVisibleItems>0&&this.$nextTick(()=>{const l=this.currentVisibleItems;this.currentVisibleItems=Math.min(l,this.sortedItems.length)})},deep:!0},deepSortsListPreset:{handler(n){n&&n.length>0&&JSON.stringify(n)!==JSON.stringify(this.deepSortsList)&&(this.deepSortsList=n.map(l=>{const c=this.columns.find(d=>d.id===l.id);return{...l,customSort:(c==null?void 0:c.customSort)||l.customSort||null}}))},deep:!0,immediate:!0},tdItemsList:{handler(n,l){n!==l&&this.columns.some(c=>c.stickyLeft||c.stickyRight)&&this.$nextTick(()=>{this.debouncedUpdateStickyColumns()})},deep:!0,immediate:!1}},mounted(){var n;if(this.localStorageItemName!==null){Qt(this.localStorageItemName,this.getRefactoColumns(this.copyDefaultColumns())),sr(this.localStorageItemName,this.maxItemPerPage,"maxItemPerPage");let l=fe(this.localStorageItemName);l&&(this.columns=this.getColumnsById(l.columns,this.defaultColumns),this.maxItemsPerPage=l.maxItemPerPage)}if(this.localStorageMaxItemPerPageName!==null){let l=fe(this.localStorageMaxItemPerPageName);l&&(this.maxItemsPerPage=l)}if(this.dynamicColumns&&(this.columns=this.getColumnsById(this.dynamicColumns,this.defaultColumns)),this.ckSelectedItems&&(this.selectedItems=this.ckSelectedItems),this.infiniteScroll){const l=this.infiniteScrollIncrement||this.maxItemPerPage;this.currentVisibleItems=Math.min(this.maxItemPerPage+l,this.filtereditems.length)}else this.totalPages=this.newTotalPage(this.filtereditems.length);if(this.initResizeObserver(),!this.deepSorts){const l=this.columns.find(c=>c.isSorted!==null&&c.isSorted!==void 0);l&&(this.sortKey=l.id,this.sortAsc=l.isSorted,this.currentHeaderSort=l)}this.deepSortsListPreset&&this.deepSortsListPreset.length>0&&this.deepSorts&&(this.deepSortsList=this.deepSortsListPreset.map(l=>{const c=this.columns.find(d=>d.id===l.id);return{...l,customSort:(c==null?void 0:c.customSort)||l.customSort||null}})),this.stickyScrollbarHorizontal&&(this.checkTableOverflow(),window.addEventListener("resize",this.checkTableOverflow),window.addEventListener("scroll",this.handleTableScroll)),this.tableContainer=(n=this.$refs.table)==null?void 0:n.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),this.scrollTimeout=null),this.stickyColumnsUpdateTimeout&&(clearTimeout(this.stickyColumnsUpdateTimeout),this.stickyColumnsUpdateTimeout=null),this.stickyColumnsAnimationFrame&&(cancelAnimationFrame(this.stickyColumnsAnimationFrame),this.stickyColumnsAnimationFrame=null),this.normalizedItemsCache.clear(),this.deepSortCache=null},methods:{moment:X,unixToDateString:lt,unixToDateTimeString:jt,toCurrencyEUR:Ht,formatColumnValue(n,l){const c=n[l.id];if(l.formatter&&typeof l.formatter=="function")return l.formatter(c,n);if(l.type)switch(l.type){case"unixDate":return c?lt(c):"";case"unixDateTime":return c?jt(c):"";case"currency":return c!=null?Ht(c):"";default:return c}return c},shouldAdjustPage(n){return n.length===0&&this.filtereditems.length>0&&this.currentPage>1&&!this.infiniteScroll},getRefactoColumns(n){return n.map(l=>({id:l.id,show:l.show}))},getColumnsById(n,l){return n.map(c=>({...l.find(f=>f.id===c.id),show:c.show}))},adjustPageAfterSearch(){if(this.filtereditems.length>0&&this.showeditems.length===0){const n=Math.ceil(this.filtereditems.length/this.maxItemsPerPage);n>0&&n!==this.currentPage&&(this.currentPage=n)}else this.filtereditems.length===0&&(this.currentPage=1)},initResizeObserver(){this.resizeObserver=new ResizeObserver(()=>{this.updateStickyColumns()});const n=this.$refs.table;n&&this.resizeObserver.observe(n)},handleTableScroll(){this.tableContainer&&(Math.ceil(window.scrollY+window.innerHeight)>=this.tableContainer.scrollHeight?this.showScrollbar=!1:this.checkTableOverflow())},checkTableOverflow(){this.$nextTick(()=>{const n=document.querySelector(`#${this.tableId}-bottom-scrollbar`);if(this.tableContainer&&n){const l=this.tableContainer.scrollHeight,c=window.innerHeight;this.showScrollbar=l>c,this.showScrollbar&&(document.querySelector(`#${this.tableId}-bottom-scrollbar .scrollbar-content`).style.width=this.tableContainer.scrollWidth+"px",n.addEventListener("scroll",()=>{this.tableContainer.scrollLeft=n.scrollLeft}),this.tableContainer.addEventListener("scroll",()=>{n.scrollLeft=this.tableContainer.scrollLeft}))}})},cleanupResizeObserver(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},updateStickyColumns(){!this.columns.some(c=>c.stickyLeft||c.stickyRight)||!document.getElementById(this.tableId)||(this.stickyColumnsAnimationFrame&&cancelAnimationFrame(this.stickyColumnsAnimationFrame),this.stickyColumnsAnimationFrame=requestAnimationFrame(()=>{const c=[];this.columns.forEach((m,S)=>{if(!m.stickyLeft&&!m.stickyRight)return;const w=document.getElementById(`${this.tableId}-${m.id}-th-${S}`);if(!w)return;const O=document.querySelectorAll(`#${this.tableId} [data-column-id="${m.id}"]`),h=w.getBoundingClientRect().width;let Y=0;O.forEach(k=>{const F=k.getBoundingClientRect().width;F>Y&&(Y=F)}),c.push({column:m,thElement:w,tdElements:O,width:Math.max(Y,h)-1})});let d=0,f=0;c.forEach(({column:m,thElement:S,tdElements:w,width:O})=>{if(m.stickyLeft){const h=`${d}px`;S.style.left=h,w.forEach(Y=>{Y.style.left=h}),d+=O}if(m.stickyRight){const h=`${f}px`;S.style.right=h,w.forEach(Y=>{Y.style.right=h}),f+=O}}),this.stickyColumnsAnimationFrame=null}))},newTotalPage(n){return Math.ceil(n/this.maxItemsPerPage)},lineStateClass(n){const l=this.lineStatesList.find(c=>c.state===n);return l?l.class:""},checkItem(n){const l=this.selectedItems.indexOf(n);if(l!==-1)this.selectedItems.splice(l,1),this.checkAllCheckBox=!1;else if(this.selectedItems.push(n),!this.checkAllCheckBox){const c=this.showeditems.map(d=>d.id);this.checkAllCheckBox=c.every(d=>this.selectedItems.includes(d))}this.$emit("update:ckSelectedItems",this.selectedItems)},toggleAllCheckBox(){const n=this.showeditems.map(l=>l.id);if(this.checkAllCheckBox)this.selectedItems=this.selectedItems.filter(l=>!n.includes(l)),this.checkAllCheckBox=!1;else{const l=new Set([...this.selectedItems,...n]);this.selectedItems=Array.from(l),this.checkAllCheckBox=!0}this.$emit("update:ckSelectedItems",this.selectedItems)},updateCurrentSort(n){this.currentHeaderSort&&(this.currentHeaderSort.isSorted=null);const l=this.infiniteScroll?this.currentVisibleItems:null;this.updateSortitems(n.id),n.isSorted=this.sortAsc,this.currentHeaderSort=n,this.infiniteScroll&&l&&this.$nextTick(()=>{this.currentVisibleItems=Math.min(l,this.sortedItems.length)})},checkMove(n){const l=this.columns.reduce((c,d,f)=>(d.fixed&&c.push(f),c),[]);return!l.includes(n.draggedContext.index)&&!l.includes(n.relatedContext.index)},filterBy(n,l){if(!l)return!0;const c=`${n.id}_${l}`;if(this.normalizedItemsCache.has(c))return this.normalizedItemsCache.get(c);const d=this.visibleColumns.some(f=>{if(f.customSearch&&typeof f.customSearch=="function")return f.customSearch(n,l);const m=n[f.id];if(f.type||f.formatter){const S=this.formatColumnValue(n,f);if(S&&he(S.toString()).includes(l))return!0}return m&&he(m.toString()).includes(l)});return this.normalizedItemsCache.size>1e3&&this.normalizedItemsCache.clear(),this.normalizedItemsCache.set(c,d),d},getDefaultMaxItemPerPage(){return this.maxItemPerPage},copyDefaultColumns(){return this.defaultColumns.map(n=>{const l={};for(const c in n)if(n.hasOwnProperty(c)){const d=n[c];typeof d=="function"||d===null||d===void 0?l[c]=d:Array.isArray(d)?l[c]=[...d]:typeof d=="object"?l[c]={...d}:l[c]=d}return l})},getTableContent(){return this.items},getColumns(){return this.columns},getNbLines(){return this.showeditems.length},updateSortitems(n){this.items&&(this.sortKey===n?this.sortAsc=!this.sortAsc:(this.sortAsc=!0,this.sortKey=n))},selectSubject(n){this.$emit("changeSubject",n)},saveTablePreferences(){this.localStorageItemName!==null&&_e(this.localStorageItemName,this.getRefactoColumns(this.columns),"columns"),this.dynamicColumns&&this.$emit("update:dynamicColumns",this.getRefactoColumns(this.columns)),this.headerEditMode=!1,this.currentPage=this.previousCurrentPage},resetTablePreferences(){this.columns=this.copyDefaultColumns(),this.localStorageItemName!==null&&Qt(this.localStorageItemName,this.getRefactoColumns(this.columns)),this.dynamicColumns&&this.$emit("update:dynamicColumns",this.getRefactoColumns(this.columns)),this.currentPage=this.previousCurrentPage},editTablePreferences(){this.headerEditMode=!0,this.previousCurrentPage=this.currentPage,this.currentPage=1},addDeepSort(n){const l=this.infiniteScroll?this.currentVisibleItems:null;this.deepSortCache=null,this.deepSortCacheKey="",this.deepSortsList.push({id:n.id,libelle:n.libelle,asc:!0,customSort:n.customSort||null}),this.infiniteScroll&&l&&this.$nextTick(()=>{this.currentVisibleItems=Math.min(l,this.sortedItems.length)})},toggleDeepSortDirection(n){this.deepSortCache=null,this.deepSortCacheKey="",n.asc=!n.asc},deepSortsColumnList(n,l){if(!n||n.length===0)return l;const c=JSON.stringify(n.map(d=>({id:d.id,asc:d.asc})));return this.deepSortCache&&this.deepSortCacheKey===c?l.sort((d,f)=>{for(const m of n){let S;if(m.customSort)S=m.customSort(d,f,m.asc);else{const w=d[m.id],O=f[m.id];S=Fe(w,O,m.asc)}if(S!==0)return S}return 0}):(this.deepSortCacheKey=c,this.deepSortCache=!0,l.sort((d,f)=>{for(const m of n){let S;if(m.customSort)S=m.customSort(d,f,m.asc);else{const w=d[m.id],O=f[m.id];S=Fe(w,O,m.asc)}if(S!==0)return S}return 0}))},handleScrollEvent(n){if(this.infiniteScroll){if(this.scrollTimeout)return;this.scrollTimeout=setTimeout(()=>{this.handleInfiniteScroll(n),this.scrollTimeout=null},50)}},handleInfiniteScroll(n){const{target:l}=n;if(l.scrollTop+l.clientHeight>=l.scrollHeight-10&&this.currentVisibleItems<this.sortedItems.length){const d=this.infiniteScrollIncrement||this.maxItemPerPage,f=Math.min(this.currentVisibleItems+d,this.sortedItems.length);f>this.currentVisibleItems&&(this.currentVisibleItems=f)}},handleContextMenu(n,l){let c=null;const d=n.target.closest("td");if(d){const f=d.getAttribute("data-column-id");f&&(c=this.columns.find(m=>m.id===f))}this.$emit("contextmenu",{event:n,item:l,column:c})},refreshStickyColumns(){this.columns.some(n=>n.stickyLeft||n.stickyRight)&&this.$nextTick(()=>{this.updateStickyColumns()})},debouncedUpdateStickyColumns(){this.stickyColumnsUpdateTimeout&&clearTimeout(this.stickyColumnsUpdateTimeout),this.stickyColumnsUpdateTimeout=setTimeout(()=>{this.updateStickyColumns(),this.stickyColumnsUpdateTimeout=null},50)}}},nr={key:0,class:"mb-3 text-center"},ar={key:1,class:"row mb-1 mx-auto"},lr={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"}},or={class:"text-nowrap"},cr={class:"d-flex justify-content-center align-items-center fs-7 px-2 py-0 rounded-1 mx-2 user-select-none"},dr={key:0,class:"text-nowrap",style:{height:"20px"}},ur=["value"],hr={key:1,class:"d-flex align-items-center text-nowrap"},fr={key:0,class:"d-flex ms-2"},mr={class:"row mx-auto mb-3 rounded-0"},yr=["id"],gr=["id"],_r=["id","onDragstart","onDragend"],kr={class:"d-flex flex-column align-items-center"},Sr={key:0,class:"mx-auto my-auto mb-2 mt-2 hoverable d-inline-block"},pr={class:"d-inline-flex text-nowrap"},wr={key:0,class:"ms-2 float-end"},br={key:1,class:"ms-2"},Mr={key:1},xr=["id"],Dr=["id"],Cr={class:"d-inline-flex text-nowrap"},Pr={key:1,class:"ms-2 hoverable"},Yr={key:0},Tr=["colspan"],Or=["id"],vr=["onClick","onContextmenu"],Ir=["data-column-id","onClick"],Nr=["id","value"],Er=["data-column-id"],Lr={class:"row ms-auto mb-2"},Rr={class:"m-0 pagination pagination-sm"},Ar={class:"page-item hoverable"},Fr={class:"page-item hoverable"},Br=["onClick"],Wr={class:"page-item hoverable"},Vr={class:"page-item hoverable"},Ur=["id"];function Hr(n,l,c,d,f,m){var O;const S=a.resolveComponent("font-awesome-icon"),w=a.resolveComponent("vue-draggable-next");return a.openBlock(),a.createElementBlock(a.Fragment,null,[c.lineEditMode?(a.openBlock(),a.createElementBlock("div",nr,[a.createElementVNode("button",{type:"button",class:"btn btn-success rounded-5 m-0 p-0",style:{height:"45px",width:"45px"},onClick:l[0]||(l[0]=h=>n.$emit("lineEditModeAddNewLine"))},[a.createVNode(S,{icon:"fa-solid fa-plus",size:"xl"})])])):a.createCommentVNode("",!0),c.showLineNumber||c.showModifyColumnsBtn||c.showMaxItemPerPageBtn||c.deepSorts?(a.openBlock(),a.createElementBlock("div",ar,[a.createElementVNode("div",{class:a.normalizeClass(["d-flex justify-content-start p-0",c.deepSorts&&f.deepSortsList.length>0&&c.showModifyColumnsBtn?"col-12 col-sm-8 col-lg-9 col-xl-10":"col"])},[c.showLineNumber?(a.openBlock(),a.createElementBlock("div",lr,[a.createElementVNode("b",or,a.toDisplayString(m.showItemsLinesNumber+" / "+m.filtereditems.length),1),l[20]||(l[20]=a.createElementVNode("span",{class:"ms-1"},"lignes",-1))])):a.createCommentVNode("",!0),c.deepSorts&&f.deepSortsList.length>0?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["d-flex align-items-center flex-wrap",{"ms-4":c.showLineNumber}])},[l[21]||(l[21]=a.createElementVNode("span",{class:"me-1 text-secondary h-auto fs-7 mb-1 mb-lg-0"},"Tri :",-1)),a.createVNode(w,{modelValue:f.deepSortsList,"onUpdate:modelValue":l[1]||(l[1]=h=>f.deepSortsList=h),tag:"div",group:"deepSorts",class:"d-flex flex-wrap","ghost-class":"deep-filter-ghost-class"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.deepSortsList,(h,Y)=>(a.openBlock(),a.createElementBlock("div",{key:h.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"}},[a.createVNode(S,{class:"hoverable",icon:"fa-solid fa-xmark",onClick:k=>f.deepSortsList.splice(Y,1)},null,8,["onClick"]),a.createElementVNode("div",cr,[a.createElementVNode("span",null,a.toDisplayString(h.libelle),1)]),a.createVNode(S,{class:"hoverable",icon:h.asc?"fa-solid fa-arrow-down-short-wide":"fa-solid fa-arrow-down-wide-short",onClick:k=>m.toggleDeepSortDirection(h)},null,8,["icon","onClick"])]))),128))]),_:1},8,["modelValue"])],2)):a.createCommentVNode("",!0)],2),c.showMaxItemPerPageBtn||c.showModifyColumnsBtn?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["d-flex align-items-center justify-content-end p-0",c.deepSorts&&f.deepSortsList.length>0?"col-12 col-sm-4 col-lg-3 col-xl-2 mt-1 mt-sm-0":"col"])},[c.showMaxItemPerPageBtn&&!f.headerEditMode?(a.openBlock(),a.createElementBlock("div",dr,[c.maxItemPerPageList.length>0?a.withDirectives((a.openBlock(),a.createElementBlock("select",{key:0,"onUpdate:modelValue":l[2]||(l[2]=h=>f.maxItemsPerPage=h),class:"form-select d-flex justify-content-center align-items-center ms-auto py-0 rounded-3 select-max-item-per-page"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.maxItemPerPageList,h=>(a.openBlock(),a.createElementBlock("option",{key:h.value,value:h.value},a.toDisplayString(h.text),9,ur))),128))],512)),[[a.vModelSelect,f.maxItemsPerPage]]):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),c.showModifyColumnsBtn?(a.openBlock(),a.createElementBlock("div",hr,[f.headerEditMode?(a.openBlock(),a.createElementBlock("div",fr,[a.createElementVNode("button",{id:"btn-save-table",class:"btn btn-sm btn-success d-flex justify-content-center align-items-center ms-auto me-2 px-2 py-0 rounded-3",type:"button",onClick:l[3]||(l[3]=(...h)=>m.saveTablePreferences&&m.saveTablePreferences(...h))}," Sauvegarder "),a.createElementVNode("button",{id:"btn-reset-table",class:"btn btn-sm btn-outline-danger d-flex justify-content-center align-items-center px-2 py-0 rounded-3",type:"button",onClick:l[4]||(l[4]=(...h)=>m.resetTablePreferences&&m.resetTablePreferences(...h))}," Réinitialiser le tableau ")])):(a.openBlock(),a.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:l[5]||(l[5]=(...h)=>m.editTablePreferences&&m.editTablePreferences(...h))}," Modifier colonnes "))])):a.createCommentVNode("",!0)],2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",mr,[a.createElementVNode("div",{ref:"scrollContainer",class:a.normalizeClass(["col-12 p-0 overflow-x-auto mb-2",{border:c.infiniteScroll,"infinite-scroll-container":c.infiniteScroll}]),style:a.normalizeStyle(c.infiniteScroll?{maxHeight:m.tableMaxHeight,overflowY:"auto",borderRadius:"10px"}:{borderRadius:"10px !important"}),onScroll:l[15]||(l[15]=(...h)=>m.handleScrollEvent&&m.handleScrollEvent(...h))},[(a.openBlock(),a.createElementBlock("table",{id:c.tableId,ref:"table",key:f.forceTableUpdateIndex,class:a.normalizeClass(["table table-striped table-hover table-responsive align-middle border-1 border-top border-bottom position-relative m-0",[c.border?"table-bordered":"table-borderless",c.tableSm?"table-sm":""]]),style:a.normalizeStyle([{"border-collapse":"separate","border-spacing":"0"},{borderLeft:c.border?"":"1px solid #ddd",borderRight:c.border?"":"1px solid #ddd"}])},[a.createElementVNode("thead",null,[f.headerEditMode?(a.openBlock(),a.createBlock(w,{key:0,modelValue:f.columns,"onUpdate:modelValue":l[9]||(l[9]=h=>f.columns=h),"ghost-class":c.ghostClass,"drag-class":c.ghostClass,tag:"tr",move:m.checkMove,group:"columns"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.columns,(h,Y)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:h.id},[h.id==="checkBox"?(a.openBlock(),a.createElementBlock("th",{key:0,id:`${c.tableId}-${h.id}-th-${Y}`,class:a.normalizeClass(["text-center",[c.headerBgColor,h.stickyLeft?"sticky-column-left":"",h.stickyRight?"sticky-column-right":"",c.infiniteScroll?"sticky-top":""]]),scope:"col",onClick:l[8]||(l[8]=a.withModifiers((...k)=>m.toggleAllCheckBox&&m.toggleAllCheckBox(...k),["stop"]))},[a.withDirectives(a.createElementVNode("input",{id:"checkBoxSelectAll","onUpdate:modelValue":l[6]||(l[6]=k=>f.checkAllCheckBox=k),class:"form-check-input",type:"checkbox",onClick:l[7]||(l[7]=a.withModifiers((...k)=>m.toggleAllCheckBox&&m.toggleAllCheckBox(...k),["stop"]))},null,512),[[a.vModelCheckbox,f.checkAllCheckBox]])],10,gr)):(h.show||f.headerEditMode)&&(!h.onlyOnEditMode||c.lineEditMode)?(a.openBlock(),a.createElementBlock("th",{key:1,id:`${c.tableId}-${h.id}-th-${Y}`,scope:"col",class:a.normalizeClass(["text-center",[h.isDragging?"hoverable-grabbing":c.headerBgColor+" hoverable-grab",h.stickyLeft?"sticky-column-left":"",h.stickyRight?"sticky-column-right":"",c.headerTextColor,c.infiniteScroll?"sticky-top":"",{"table-danger":!h.show}]]),onDragstart:k=>h.isDragging=!0,onDragend:k=>h.isDragging=!1},[a.createElementVNode("div",kr,[f.headerEditMode&&!h.keepShow?(a.openBlock(),a.createElementBlock("div",Sr,[h.show?(a.openBlock(),a.createBlock(S,{key:0,icon:"fa-solid fa-eye",class:"fa-lg",onClick:k=>h.show=!1},null,8,["onClick"])):(a.openBlock(),a.createBlock(S,{key:1,icon:"fa-solid fa-eye-slash",class:"fa-lg",onClick:k=>h.show=!0},null,8,["onClick"]))])):a.createCommentVNode("",!0),a.createElementVNode("div",pr,[a.renderSlot(n.$slots,"tableHeaderTh",{header:h},void 0,!0),h.isSortable&&!c.deepSorts?(a.openBlock(),a.createElementBlock("div",wr,[a.createVNode(S,{icon:f.sortKey!==h.id||f.sortKey===h.id&&!f.sortAsc?"fa-solid fa-arrow-down-wide-short":"fa-solid fa-arrow-down-short-wide",class:"hoverable",onClick:k=>m.updateCurrentSort(h)},null,8,["icon","onClick"])])):c.deepSorts&&!f.deepSortsList.some(k=>k.id===h.id)&&h.isSortable?(a.openBlock(),a.createElementBlock("div",br,[a.createVNode(S,{icon:"fa-solid fa-filter",onClick:k=>m.addDeepSort(h)},null,8,["onClick"])])):a.createCommentVNode("",!0)])])],42,_r)):a.createCommentVNode("",!0)],64))),128))]),_:3},8,["modelValue","ghost-class","drag-class","move"])):(a.openBlock(),a.createElementBlock("tr",Mr,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.columns,(h,Y)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:h.id},[h.id==="checkBox"?(a.openBlock(),a.createElementBlock("th",{key:0,id:`${c.tableId}-${h.id}-th-${Y}`,class:a.normalizeClass(["text-center",[c.headerBgColor,h.stickyLeft?"sticky-column-left":"",h.stickyRight?"sticky-column-right":"",c.infiniteScroll?"sticky-top":""]]),scope:"col",onClick:l[12]||(l[12]=a.withModifiers((...k)=>m.toggleAllCheckBox&&m.toggleAllCheckBox(...k),["stop"]))},[a.withDirectives(a.createElementVNode("input",{id:"checkBoxSelectAll","onUpdate:modelValue":l[10]||(l[10]=k=>f.checkAllCheckBox=k),class:"form-check-input",type:"checkbox",onClick:l[11]||(l[11]=a.withModifiers((...k)=>m.toggleAllCheckBox&&m.toggleAllCheckBox(...k),["stop"]))},null,512),[[a.vModelCheckbox,f.checkAllCheckBox]])],10,xr)):h.show&&(!h.onlyOnEditMode||c.lineEditMode)?(a.openBlock(),a.createElementBlock("th",{key:1,id:`${c.tableId}-${h.id}-th-${Y}`,scope:"col",class:a.normalizeClass(["text-center",[h.isDragging?"":c.headerBgColor,h.stickyLeft?"sticky-column-left":"",h.stickyRight?"sticky-column-right":"",c.headerTextColor,c.infiniteScroll?"sticky-top":""]])},[a.createElementVNode("div",Cr,[a.renderSlot(n.$slots,"tableHeaderTh",{header:h},void 0,!0),h.isSortable&&!c.deepSorts?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["ms-2 float-end hoverable",{"opacity-50":f.sortKey!==h.id}])},[a.createVNode(S,{icon:f.sortKey!==h.id||f.sortKey===h.id&&!f.sortAsc?"fa-solid fa-arrow-down-wide-short":"fa-solid fa-arrow-down-short-wide",onClick:k=>m.updateCurrentSort(h)},null,8,["icon","onClick"])],2)):c.deepSorts&&!f.deepSortsList.some(k=>k.id===h.id)&&h.isSortable?(a.openBlock(),a.createElementBlock("div",Pr,[a.createVNode(S,{icon:"fa-solid fa-filter",onClick:k=>m.addDeepSort(h)},null,8,["onClick"])])):a.createCommentVNode("",!0)])],10,Dr)):a.createCommentVNode("",!0)],64))),128))]))]),a.createElementVNode("tbody",null,[((O=m.showeditems)==null?void 0:O.length)===0?(a.openBlock(),a.createElementBlock("tr",Yr,[a.createElementVNode("th",{colspan:f.columns.length,class:"text-center",style:{"border-top-left-radius":"0px !important","border-top-right-radius":"0px !important"}},[a.createElementVNode("span",{id:`${c.tableId}-no-value`,class:"text-danger fs-5"},a.toDisplayString(c.noValueText),9,Or)],8,Tr)])):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(m.showeditems,(h,Y)=>(a.openBlock(),a.createElementBlock("tr",{key:h.id,class:a.normalizeClass([{hoverable:c.clickable&&!f.headerEditMode,"hoverable-no-drop":c.clickable&&f.headerEditMode},c.trFontSize]),style:a.normalizeStyle({height:c.trHeightPx+"px"}),onClick:k=>c.clickable&&!f.headerEditMode?m.selectSubject(h):null,onContextmenu:k=>m.handleContextMenu(k,h)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.columns,k=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:k.id},[k.id==="checkBox"?(a.openBlock(),a.createElementBlock("td",{key:0,"data-column-id":k.id,class:a.normalizeClass(["text-center",[c.tdClass,h.lineState?m.lineStateClass(h.lineState):"",k.stickyLeft?"sticky-column-left":"",k.stickyRight?"sticky-column-right":""]]),onClick:a.withModifiers(F=>m.checkItem(h.id),["stop"])},[a.withDirectives(a.createElementVNode("input",{id:`${c.tableId}-checkbox-${Y}`,"onUpdate:modelValue":l[13]||(l[13]=F=>f.selectedItems=F),type:"checkbox",class:"form-check-input hoverable",value:h.id,onClick:l[14]||(l[14]=a.withModifiers(()=>{},["stop"]))},null,8,Nr),[[a.vModelCheckbox,f.selectedItems]])],10,Ir)):(k.show||f.headerEditMode)&&(!k.onlyOnEditMode||c.lineEditMode)?(a.openBlock(),a.createElementBlock("td",{key:1,"data-column-id":k.id,class:a.normalizeClass([[c.tdClass,k.show?"":"table-danger",!c.deepSorts&&k.isSorted!==null&&k.isSorted!==void 0?"bg-gray-200":"",h.lineState?m.lineStateClass(h.lineState):"",k.stickyLeft?"sticky-column-left":"",k.stickyRight?"sticky-column-right":""],"text-center text-nowrap"])},[a.renderSlot(n.$slots,"tableBodyTd",{header:k,item:h,formattedValue:m.formatColumnValue(h,k)},()=>[a.createTextVNode(a.toDisplayString(m.formatColumnValue(h,k)),1)],!0)],10,Er)):a.createCommentVNode("",!0)],64))),128))],46,vr))),128))])],14,yr))],38)]),a.createElementVNode("div",Lr,[!c.infiniteScroll&&f.totalPages&&f.totalPages>1?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["col p-0 me-3 d-flex",{"justify-content-center":c.paginationPosition==="center","justify-content-end":c.paginationPosition==="right","justify-content-start":c.paginationPosition==="left"}])},[a.createElementVNode("ul",Rr,[a.createElementVNode("li",Ar,[a.createElementVNode("a",{class:a.normalizeClass(["page-link",{disabled:f.currentPage===1}]),onClick:l[16]||(l[16]=h=>f.currentPage=1)}," « ",2)]),a.createElementVNode("li",Fr,[a.createElementVNode("a",{class:a.normalizeClass(["page-link",{disabled:f.currentPage===1}]),onClick:l[17]||(l[17]=h=>f.currentPage-=1)}," < ",2)]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.currentDisplayPagination,h=>(a.openBlock(),a.createElementBlock("li",{key:h,class:a.normalizeClass(["page-item hoverable",{active:f.currentPage===h}])},[a.createElementVNode("a",{class:"page-link",onClick:Y=>f.currentPage=h},a.toDisplayString(h),9,Br)],2))),128)),a.createElementVNode("li",Wr,[a.createElementVNode("a",{class:a.normalizeClass(["page-link",{disabled:f.currentPage===f.totalPages}]),onClick:l[18]||(l[18]=h=>f.currentPage+=1)}," > ",2)]),a.createElementVNode("li",Vr,[a.createElementVNode("a",{class:a.normalizeClass(["page-link",{disabled:f.currentPage===f.totalPages}]),onClick:l[19]||(l[19]=h=>f.currentPage=f.totalPages)}," » ",2)])])],2)):a.createCommentVNode("",!0),c.stickyScrollbarHorizontal?(a.openBlock(),a.createElementBlock("div",{key:1,id:`${c.tableId}-bottom-scrollbar`,class:a.normalizeClass(["bottom-scrollbar",{visible:f.showScrollbar}])},[...l[22]||(l[22]=[a.createElementVNode("div",{class:"scrollbar-content"},null,-1)])],10,Ur)):a.createCommentVNode("",!0)])],64)}const Xt=rr(ir,[["render",Hr],["__scopeId","data-v-f3204e33"]]);B.AmsomTableDraggable=Xt,B.default=Xt,Object.defineProperties(B,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amsom-habitat/amsom-table",
3
- "version": "4.5.4",
3
+ "version": "4.5.6",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",