PageSourceSearch

http://lhne.org/media/com_dpcalendar/js/modules/libraries/datejs.min.js?86151592

js lhne.org collected 2026-09-24 13:37:24 UTC 18,280 bytes, 6 lines download raw bytes

vendor: 4,123 bytes, lines 1-6
1/**
2 * @package   DPCalendar
3 * @copyright Digital Peak GmbH. <https://www.digital-peak.com>
4 * @license   https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
5 */
6var t=1e3,e=6e4,n=36e5,s=864e5,r=6048e5,i="millisecond",a="second",o="minute",u="hour",c="day",h="week",f="month",d="quarter",l="year",$="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},g=function(t,e,n){var s=String(t);return!s||s.length>=e?t:""+Array(e+1-s.length).join(n)+t},D={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),s=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+g(s,2,"0")+":"+g(r,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var s=12*(n.year()-e.year())+(n.month()-e.month()),r=e.clone().add(s,f),i=n-r<0,a=e.clone().add(s+(i?-1:1),f);return+(-(s+(n-r)/(i?r-a:a-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:f,y:l,w:h,d:c,D:$,h:u,m:o,s:a,ms:i,Q:d}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},p="en",Y={};Y[p]=y;var S="$isDayjsObject",w=function(t){return t instanceof k||!(!t||!t[S])},O=function t(e,n,s){var r;if(!e)return p;if("string"==typeof e){var i=e.toLowerCase();Y[i]&&(r=i),n&&(Y[i]=n,r=i);var a=e.split("-");if(!r&&a.length>1)return t(a[0])}else{var o=e.name;Y[o]=e,r=o}return!s&&r&&(p=r),r||!s&&p},b=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new k(n)},T=D;T.l=O,T.i=w,T.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function y(t){this.$L=O(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[S]=!0}var g=y.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(T.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var s=e.match(v);if(s){var r=s[2]-1||0,i=(s[7]||"0").substring(0,3);return n?new Date(Date.UTC(s[1],r,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)):new Date(s[1],r,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)}}return new Date(e)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return T},g.isValid=function(){return!(this.$d.toString()===m)},g.isSame=function(t,e){var n=b(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return b(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<b(t)},g.$g=function(t,e,n){return T.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,s=!!T.u(e)||e,r=T.p(t),i=function(t,e){var r=T.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return s?r:r.endOf(c)},d=function(t,e){return T.w(n.toDate()[t].apply(n.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,v=this.$M,M=this.$D,y="set"+(this.$u?"UTC":"");switch(r){case l:return s?i(1,0):i(31,11);case f:return s?i(1,v):i(0,v+1);case h:var g=this.$locale().weekStart||0,D=(m<g?m+7:m)-g;return i(s?M-D:M+(6-D),v);case c:case $:return d(y+"Hours",0);case u:return d(y+"Minutes",1);case o:return d(y+"Seconds",2);case a:return d(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,s=T.p(t),r="set"+(this.$u?"UTC":""),h=(n={},n[c]=r+"Date",n[$]=r+"Date",n[f]=r+"Month",n[l]=r+"FullYear",n[u]=r+"Hours",n[o]=r+"Minutes",n[a]=r+"Seconds",n[i]=r+"Milliseconds",n)[s],d=s===c?this.$D+(e-this.$W):e;if(s===f||s===l){var m=this.clone().set($,1);
vendor: 1,649 bytes, line 6
6m.$d[h](d),m.init(),this.$d=m.set($,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](d);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[T.p(t)]()},g.add=function(s,r){var i,d=this;s=Number(s);var $=T.p(r),m=function(t){var e=b(d);return T.w(e.date(e.date()+Math.round(t*s)),d)};if($===f)return this.set(f,this.$M+s);if($===l)return this.set(l,this.$y+s);if($===c)return m(1);if($===h)return m(7);var v=(i={},i[o]=e,i[u]=n,i[a]=t,i)[$]||1,M=this.$d.getTime()+s*v;return T.w(M,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||m;var s=t||"YYYY-MM-DDTHH:mm:ssZ",r=T.z(this),i=this.$H,a=this.$m,o=this.$M,u=n.weekdays,c=n.months,h=n.meridiem,f=function(t,n,r,i){return t&&(t[n]||t(e,s))||r[n].slice(0,i)},d=function(t){return T.s(i%12||12,t,"0")},l=h||function(t,e,n){var s=t<12?"AM":"PM";return n?s.toLowerCase():s};return s.replace(M,function(t,s){return s||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return T.s(e.$y,4,"0");case"M":return o+1;case"MM":return T.s(o+1,2,"0");case"MMM":return f(n.monthsShort,o,c,3);case"MMMM":return f(c,o);case"D":return e.$D;case"DD":return T.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(n.weekdaysMin,e.$W,u,2);case"ddd":return f(n.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(i);case"HH":return T.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return l(i,a,!0);case"A":return l(i,a,!1);case"m":return String(a);case"mm":return T.s(a,2,"0");case"s":return String(e.$s);
6case"ss":return T.s(e.$s,2,"0");case"SSS":return T.s(e.$ms,3,"0");case"Z":return r}return null}(t)||r.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(i,$,m){var v,M=this,y=T.p($),g=b(i),D=(g.utcOffset()-this.utcOffset())*e,p=this-g,Y=function(){return T.m(M,g)};switch(y){case l:v=Y()/12;break;case f:v=Y();break;case d:v=Y()/3;break;case h:v=(p-D)/r;break;case c:v=(p-D)/s;break;case u:v=p/n;break;case o:v=p/e;break;case a:v=p/t;break;default:v=p}return m?v:T.a(v)},g.daysInMonth=function(){return this.endOf(f).$D},g.$locale=function(){return Y[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),s=O(t,e,!0);return s&&(n.$L=s),n},g.clone=function(){return T.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},y}(),L=k.prototype;b.prototype=L,[["$ms",i],["$s",a],["$m",o],["$H",u],["$W",c],["$M",f],["$y",l],["$D",$]].forEach(function(t){L[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),b.extend=function(t,e){return t.$i||(t(e,k,b),t.$i=!0),b},b.locale=O,b.isDayjs=w,b.unix=function(t){return b(1e3*t)},b.en=Y[p],b.Ls=Y,b.p={};var H={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"},x=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,C=/\d/,_=/\d\d/,U=/\d\d?/,A=/\d*[^-_:/,()\s\d]+/,j={},N=function(t){return(t=+t)+(t>68?1900:2e3)};var W=function(t){return function(e){this[t]=+e}},Z=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],F=function(t){var e=j[t];return e&&(e.indexOf?e:e.s.concat(e.f))},z=function(t,e){var n,s=j.meridiem;if(s){for(var r=1;r<=24;r+=1)if(t.indexOf(s(r,0,e))>-1){n=r>12;break}}else n=t===(e?"pm":"PM");return n},I={A:[A,function(t){this.afternoon=z(t,!1)}],a:[A,function(t){this.afternoon=z(t,!0)}],Q:[C,function(t){this.month=3*(t-1)+1}],S:[C,function(t){this.milliseconds=100*+t}],SS:[_,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[U,W("seconds")],ss:[U,W("seconds")],m:[U,W("minutes")],mm:[U,W("minutes")],H:[U,W("hours")],h:[U,W("hours")],HH:[U,W("hours")],hh:[U,W("hours")],D:[U,W("day")],DD:[_,W("day")],Do:[A,function(t){var e=j.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var s=1;s<=31;s+=1)e(s).replace(/\[|\]/g,"")===t&&(this.day=s)}],w:[U,W("week")],ww:[_,W("week")],M:[U,W("month")],MM:[_,W("month")],MMM:[A,function(t){var e=F("months"),n=(F("monthsShort")||e.map(function(t){return t.slice(0,3)})).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[A,function(t){var e=F("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,W("year")],YY:[_,function(t){this.year=N(t)}],YYYY:[/\d{4}/,W("year")],Z:Z,ZZ:Z};function P(t){var e,n;e=t,n=j&&j.formats;for(var s=(t=e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,e,s){var r=s&&s.toUpperCase();return e||n[s]||H[s]||n[r].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(t,e,n){return e||n.slice(1)})})).match(x),r=s.length,i=0;i<r;i+=1){var a=s[i],o=I[a],u=o&&o[0],c=o&&o[1];s[i]=c?{regex:u,parser:c}:a.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,i=0;n<r;n+=1){var a=s[n];if("string"==typeof a)i+=a.length;else{var o=a.regex,u=a.parser,c=t.slice(i),h=o.exec(c)[0];u.call(e,h),t=t.replace(h,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}var J,E,V=31536e6,Q=2628e6,X=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,q=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,B={years:V,months:Q,days:s,hours:n,minutes:e,seconds:t,milliseconds:1,weeks:r},G=function(t){return t instanceof rt},K=function(t,e,n){return new rt(t,n,e.$l)},R=function(t){return E.p(t)+"s"},tt=function(t){return t<0},et=function(t){return tt(t)?Math.ceil(t):Math.floor(t)},nt=function(t){return Math.abs(t)},st=function(t,e){return t?tt(t)?{negative:!0,format:""+nt(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}}
6,rt=function(){function r(t,e,n){var s=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return K(t*B[R(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach(function(e){s.$d[R(e)]=t[e]}),this.calMilliseconds(),this;if("string"==typeof t){var r=t.match(X);if(r){var i=r.slice(2).map(function(t){return null!=t?Number(t):0});return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var i=r.prototype;return i.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce(function(e,n){return e+(t.$d[n]||0)*B[n]},0)},i.parseFromMilliseconds=function(){var r=this.$ms;this.$d.years=et(r/V),r%=V,this.$d.months=et(r/Q),r%=Q,this.$d.days=et(r/s),r%=s,this.$d.hours=et(r/n),r%=n,this.$d.minutes=et(r/e),r%=e,this.$d.seconds=et(r/t),r%=t,this.$d.milliseconds=r},i.toISOString=function(){var t=st(this.$d.years,"Y"),e=st(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var s=st(n,"D"),r=st(this.$d.hours,"H"),i=st(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var o=st(a,"S"),u=t.negative||e.negative||s.negative||r.negative||i.negative||o.negative,c=r.format||i.format||o.format?"T":"",h=(u?"-":"")+"P"+t.format+e.format+s.format+c+r.format+i.format+o.format;return"P"===h||"-P"===h?"P0D":h},i.toJSON=function(){return this.toISOString()},i.format=function(t){var e=t||"YYYY-MM-DDTHH:mm:ss",n={Y:this.$d.years,YY:E.s(this.$d.years,2,"0"),YYYY:E.s(this.$d.years,4,"0"),M:this.$d.months,MM:E.s(this.$d.months,2,"0"),D:this.$d.days,DD:E.s(this.$d.days,2,"0"),H:this.$d.hours,HH:E.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:E.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:E.s(this.$d.seconds,2,"0"),SSS:E.s(this.$d.milliseconds,3,"0")};return e.replace(q,function(t,e){return e||String(n[t])})},i.as=function(t){return this.$ms/B[R(t)]},i.get=function(t){var e=this.$ms,n=R(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?et(e/B[n]):this.$d[n],e||0},i.add=function(t,e,n){var s;return s=e?t*B[R(e)]:G(t)?t.$ms:K(t,this).$ms,K(this.$ms+s*(n?-1:1),this)},i.subtract=function(t,e){return this.add(t,e,!0)},i.locale=function(t){var e=this.clone();return e.$l=t,e},i.clone=function(){return K(this.$ms,this)},i.humanize=function(t){return J().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},i.valueOf=function(){return this.asMilliseconds()},i.milliseconds=function(){return this.get("milliseconds")},i.asMilliseconds=function(){return this.as("milliseconds")},i.seconds=function(){return this.get("seconds")},i.asSeconds=function(){return this.as("seconds")},i.minutes=function(){return this.get("minutes")},i.asMinutes=function(){return this.as("minutes")},i.hours=function(){return this.get("hours")},i.asHours=function(){return this.as("hours")},i.days=function(){return this.get("days")},i.asDays=function(){return this.as("days")},i.weeks=function(){return this.get("weeks")},i.asWeeks=function(){return this.as("weeks")},i.months=function(){return this.get("months")},i.asMonths=function(){return this.as("months")},i.years=function(){return this.get("years")},i.asYears=function(){return this.as("years")},r}(),it=function(t,e,n){return t.add(e.years()*n,"y").add(e.months()*n,"M").add(e.days()*n,"d").add(e.hours()*n,"h").add(e.minutes()*n,"m").add(e.seconds()*n,"s").add(e.milliseconds()*n,"ms")};function at(){return at=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},at.apply(this,arguments)}var ot=/[+-]\d\d(?::?\d\d)?/g,ut=/([+-]|\d\d)/g;b.extend(function(t,e,n){var s=e.prototype,r=function(t){var e=t.date,s=t.utc;return Array.isArray(e)?s?e.length?new Date(Date.UTC.apply(null,e)):new Date:1===e.length?n(String(e[0])).toDate():new(Function.prototype.bind.apply(Date,[null].concat(e))):e},i=s.parse;s.parse=function(t){t.date=r.bind(this)(t),i.bind(this)(t)}}),b.extend(function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(N=t.parseTwoDigitYear);var s=e.prototype,r=s.parse;s.parse=function(t){var e=t.date,s=t.utc,i=t.args;this.$u=s;var a=i[1];if("string"==typeof a){var o=!0===i[2],u=!0===i[3],c=o||u,h=i[2];u&&(h=i[2]),j=this.$locale(),!o&&h&&(j=n.Ls[h]),this.$d=function(t,e,n,s){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var r=P(e)(t),i=r.year,a=r.month,o=r.day,u=r.hours,c=r.minutes,h=r.
6seconds,f=r.milliseconds,d=r.zone,l=r.week,$=new Date,m=o||(i||a?1:$.getDate()),v=i||$.getFullYear(),M=0;i&&!a||(M=a>0?a-1:$.getMonth());var y,g=u||0,D=c||0,p=h||0,Y=f||0;return d?new Date(Date.UTC(v,M,m,g,D,p,Y+60*d.offset*1e3)):n?new Date(Date.UTC(v,M,m,g,D,p,Y)):(y=new Date(v,M,m,g,D,p,Y),l&&(y=s(y).week(l).toDate()),y)}catch(t){return new Date("")}}(e,a,s,n),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),c&&e!=this.format(a)&&(this.$d=new Date("")),j={}}else if(a instanceof Array)for(var f=a.length,d=1;d<=f;d+=1){i[1]=a[d-1];var l=n.apply(this,i);if(l.isValid()){this.$d=l.$d,this.$L=l.$L,this.init();break}d===f&&(this.$d=new Date(""))}else r.call(this,t)}}),b.extend(function(t,e,n){J=n,E=n().$utils(),n.duration=function(t,e){var s=n.locale();return K(t,{$l:s},e)},n.isDuration=G;var s=e.prototype.add,r=e.prototype.subtract;e.prototype.add=function(t,e){return G(t)?it(this,t,1):s.bind(this)(t,e)},e.prototype.subtract=function(t,e){return G(t)?it(this,t,-1):r.bind(this)(t,e)}}),b.extend(function(t,e,n){n.updateLocale=function(t,e){var s=n.Ls[t];if(s)return(e?Object.keys(e):[]).forEach(function(t){s[t]&&e[t]&&"object"==typeof s[t]&&"object"==typeof e[t]&&!Array.isArray(s[t])?s[t]=at({},s[t],e[t]):s[t]=e[t]}),s}}),b.extend(function(t,n,s){var r=n.prototype;s.utc=function(t){return new n({date:t,utc:!0,args:arguments})},r.utc=function(t){var e=s(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),o):e},r.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var i=r.parse;r.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),i.call(this,t)};var a=r.init;r.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else a.call(this)};var u=r.utcOffset;r.utcOffset=function(t,e){var n=this.$utils().u;if(n(t))return this.$u?0:n(this.$offset)?u.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var e=t.match(ot);if(!e)return null;var n=(""+e[0]).match(ut)||["-",0,0],s=n[0],r=60*+n[1]+ +n[2];return 0===r?0:"+"===s?r:-r}(t),null===t))return this;var s=Math.abs(t)<=16?60*t:t;if(0===s)return this.utc(e);var r=this.clone();if(e)return r.$offset=s,r.$u=!1,r;var i=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(r=this.local().add(s+i,o)).$offset=s,r.$x.$localOffset=i,r};var c=r.format;r.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,e)},r.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-t*e},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var h=r.toDate;r.toDate=function(t){return"s"===t&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var f=r.diff;r.diff=function(t,e,n){if(t&&this.$u===t.$u)return f.call(this,t,e,n);var r=this.local(),i=s(t).local();return f.call(r,i,e,n)}});const ct=Joomla.getOptions("DPCalendar.calendar.names");ct&&b.updateLocale("en",{months:ct.monthNames,monthsShort:ct.monthNamesShort,weekdays:ct.dayNames,weekdaysShort:ct.dayNamesShort,weekdaysMin:ct.dayNamesMin});export{b as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.