1!(function (t, e) { 2 'object' == typeof exports && 'undefined' != typeof module 3 ? (module.exports = e()) 4 : 'function' == typeof define && define.amd 5 ? define(e) 6 : ((t = 'undefined' != typeof globalThis ? globalThis : t || self).dayjs = e()); 7})(this, function () { 8 'use strict'; 9 var t = 1e3, 10 e = 6e4, 11 n = 36e5, 12 r = 'millisecond', 13 i = 'second', 14 s = 'minute', 15 u = 'hour', 16 a = 'day', 17 o = 'week', 18 c = 'month', 19 f = 'quarter', 20 h = 'year', 21 d = 'date', 22 l = 'Invalid Date', 23 $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, 24 y = /\[([^\]]+)]|Y{1,4}|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, 25 M = { 26 name: 'en', 27 weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), 28 months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), 29 ordinal: function (t) { 30 var e = ['th', 'st', 'nd', 'rd'], 31 n = t % 100; 32 return '[' + t + (e[(n - 20) % 10] || e[n] || e[0]) + ']'; 33 } 34 }, 35 m = function (t, e, n) { 36 var r = String(t); 37 return !r || r.length >= e ? t : '' + Array(e + 1 - r.length).join(n) + t; 38 }, 39 v = { 40 s: m, 41 z: function (t) { 42 var e = -t.utcOffset(), 43 n = Math.abs(e), 44 r = Math.floor(n / 60), 45 i = n % 60; 46 return (e <= 0 ? '+' : '-') + m(r, 2, '0') + ':' + m(i, 2, '0'); 47 }, 48 m: function t(e, n) { 49 if (e.date() < n.date()) return -t(n, e); 50 var r = 12 * (n.year() - e.year()) + (n.month() - e.month()), 51 i = e.clone().add(r, c), 52 s = n - i < 0, 53 u = e.clone().add(r + (s ? -1 : 1), c); 54 return +(-(r + (n - i) / (s ? i - u : u - i)) || 0); 55 }, 56 a: function (t) { 57 return t < 0 ? Math.ceil(t) || 0 : Math.floor(t); 58 }, 59 p: function (t) { 60 return ( 61 { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t] || 62 String(t || '') 63 .toLowerCase() 64 .replace(/s$/, '') 65 ); 66 }, 67 u: function (t) { 68 return void 0 === t; 69 } 70 }, 71 g = 'en', 72 D = {}; 73 D[g] = M; 74 var p = '$isDayjsObject', 75 S = function (t) { 76 return t instanceof _ || !(!t || !t[p]); 77 }, 78 w = function t(e, n, r) { 79 var i; 80 if (!e) return g; 81 if ('string' == typeof e) { 82 var s = e.toLowerCase(); 83 (D[s] && (i = s), n && ((D[s] = n), (i = s))); 84 var u = e.split('-'); 85 if (!i && u.length > 1) return t(u[0]); 86 } else { 87 var a = e.name; 88 ((D[a] = e), (i = a)); 89 } 90 return (!r && i && (g = i), i || (!r && g)); 91 }, 92 O = function (t, e) { 93 if (S(t)) return t.clone(); 94 var n = 'object' == typeof e ? e : {}; 95 return ((n.date = t), (n.args = arguments), new _(n)); 96 }, 97 b = v; 98 ((b.l = w), 99 (b.i = S), 100 (b.w = function (t, e) { 101 return O(t, { locale: e.$L, utc: e.$u, x: e.$x, $offset: e.$offset }); 102 })); 103 var _ = (function () { 104 function M(t) { 105 ((this.$L = w(t.locale, null, !0)), this.parse(t), (this.$x = this.$x || t.x || {}), (this[p] = !0)); 106 } 107 var m = M.prototype; 108 return ( 109 (m.parse = function (t) { 110 ((this.$d = (function (t) { 111 var e = t.date, 112 n = t.utc; 113 if (null === e) return new Date(NaN); 114 if (b.u(e)) return new Date(); 115 if (e instanceof Date) return new Date(e); 116 if ('string' == typeof e && !/Z$/i.test(e)) { 117 var r = e.match($); 118 if (r) { 119 var i = r[2] - 1 || 0, 120 s = (r[7] || '0').substring(0, 3); 121 return n 122 ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s)) 123 : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, s); 124 } 125 } 126 return new Date(e); 127 })(t)), 128 this.init()); 129 }), 130 (m.init = function () { 131 var t = this.$d;
132 ((this.$y = t.getFullYear()), 133 (this.$M = t.getMonth()), 134 (this.$D = t.getDate()), 135 (this.$W = t.getDay()), 136 (this.$H = t.getHours()), 137 (this.$m = t.getMinutes()), 138 (this.$s = t.getSeconds()), 139 (this.$ms = t.getMilliseconds())); 140 }), 141 (m.$utils = function () { 142 return b; 143 }), 144 (m.isValid = function () { 145 return !(this.$d.toString() === l); 146 }), 147 (m.isSame = function (t, e) { 148 var n = O(t); 149 return this.startOf(e) <= n && n <= this.endOf(e); 150 }), 151 (m.isAfter = function (t, e) { 152 return O(t) < this.startOf(e); 153 }), 154 (m.isBefore = function (t, e) { 155 return this.endOf(e) < O(t); 156 }), 157 (m.$g = function (t, e, n) { 158 return b.u(t) ? this[e] : this.set(n, t); 159 }), 160 (m.unix = function () { 161 return Math.floor(this.valueOf() / 1e3); 162 }), 163 (m.valueOf = function () { 164 return this.$d.getTime(); 165 }), 166 (m.startOf = function (t, e) { 167 var n = this, 168 r = !!b.u(e) || e, 169 f = b.p(t), 170 l = function (t, e) { 171 var i = b.w(n.$u ? Date.UTC(n.$y, e, t) : new Date(n.$y, e, t), n); 172 return r ? i : i.endOf(a); 173 }, 174 $ = function (t, e) { 175 return b.w(n.toDate()[t].apply(n.toDate('s'), (r ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e)), n); 176 }, 177 y = this.$W, 178 M = this.$M, 179 m = this.$D, 180 v = 'set' + (this.$u ? 'UTC' : ''); 181 switch (f) { 182 case h: 183 return r ? l(1, 0) : l(31, 11); 184 case c: 185 return r ? l(1, M) : l(0, M + 1); 186 case o: 187 var g = this.$locale().weekStart || 0, 188 D = (y < g ? y + 7 : y) - g; 189 return l(r ? m - D : m + (6 - D), M); 190 case a: 191 case d: 192 return $(v + 'Hours', 0); 193 case u: 194 return $(v + 'Minutes', 1); 195 case s: 196 return $(v + 'Seconds', 2); 197 case i: 198 return $(v + 'Milliseconds', 3); 199 default: 200 return this.clone(); 201 } 202 }), 203 (m.endOf = function (t) { 204 return this.startOf(t, !1); 205 }), 206 (m.$set = function (t, e) { 207 var n, 208 o = b.p(t), 209 f = 'set' + (this.$u ? 'UTC' : ''), 210 l = ((n = {}), 211 (n[a] = f + 'Date'), 212 (n[d] = f + 'Date'), 213 (n[c] = f + 'Month'), 214 (n[h] = f + 'FullYear'), 215 (n[u] = f + 'Hours'), 216 (n[s] = f + 'Minutes'), 217 (n[i] = f + 'Seconds'), 218 (n[r] = f + 'Milliseconds'), 219 n)[o], 220 $ = o === a ? this.$D + (e - this.$W) : e; 221 if (o === c || o === h) { 222 var y = this.clone().set(d, 1); 223 (y.$d[l]($), y.init(), (this.$d = y.set(d, Math.min(this.$D, y.daysInMonth())).$d)); 224 } else l && this.$d[l]($); 225 return (this.init(), this); 226 }), 227 (m.set = function (t, e) { 228 return this.clone().$set(t, e); 229 }), 230 (m.get = function (t) { 231 return this[b.p(t)](); 232 }), 233 (m.add = function (r, f) { 234 var d, 235 l = this; 236 r = Number(r); 237 var $ = b.p(f), 238 y = function (t) { 239 var e = O(l); 240 return b.w(e.date(e.date() + Math.round(t * r)), l); 241 }; 242 if ($ === c) return this.set(c, this.$M + r); 243 if ($ === h) return this.set(h, this.$y + r); 244 if ($ === a) return y(1); 245 if ($ === o) return y(7); 246 var M = ((d = {}), (d[s] = e), (d[u] = n), (d[i] = t), d)[$] || 1, 247 m = this.$d.getTime() + r * M; 248 return b.w(m, this); 249 }), 250 (m.subtract = function (t, e) { 251 return this.add(-1 * t, e); 252 }), 253 (m.format = function (t) { 254 var e = this, 255 n = this.$locale(); 256 if (!this.isValid()) return n.invalidDate || l; 257 var r = t || 'YYYY-MM-DDTHH:mm:ssZ', 258 i = b.z(this), 259 s = this.$H, 260 u = this.$m, 261 a = this.$M, 262 o = n.weekdays, 263 c = n.months, 264 f = n.meridiem, 265 h = function (t, n, i, s) { 266 return (t && (t[n] || t(e, r))) || i[n].slice(0, s); 267 }, 268 d = function (t) { 269 return b.s(s % 12 || 12, t, '0'); 270 }, 271 $ = 272 f || 273 function (t, e, n) { 274 var r = t < 12 ? 'AM' : 'PM'; 275 return n ? r.toLowerCase() : r; 276 }; 277 return r.replace(y, function (t, r) { 278 return ( 279 r || 280 (function (t) { 281 switch (t) { 282 case 'YY': 283 return String(e.$y).slice(-2); 284 case 'YYYY': 285 return b.s(e.$y, 4, '0'); 286 case 'M': 287 return a + 1; 288 case 'MM': 289 return b.s(a + 1, 2, '0'); 290 case 'MMM': 291 return h(n.monthsShort, a, c, 3); 292 case 'MMMM': 293 return h(c, a); 294 case 'D': 295 return e.$D; 296 case 'DD': 297 return b.s(e.$D, 2, '0'); 298 case 'd': 299 return String(e.$W); 300 case 'dd': 301 return h(n.weekdaysMin, e.$W, o, 2); 302 case 'ddd': 303 return h(n.weekdaysShort, e.$W, o, 3); 304 case 'dddd': 305 return o[e.$W]; 306 case 'H': 307 return String(s); 308 case 'HH': 309 return b.s(s, 2, '0'); 310 case 'h': 311 return d(1); 312 case 'hh': 313 return d(2); 314 case 'a': 315 return $(s, u, !0); 316 case 'A': 317 return $(s, u, !1); 318 case 'm': 319 return String(u); 320 case 'mm': 321 return b.s(u, 2, '0'); 322 case 's': 323 return String(e.$s); 324 case 'ss': 325 return b.s(e.$s, 2, '0'); 326 case 'SSS': 327 return b.s(e.$ms, 3, '0'); 328 case 'Z': 329 return i; 330 } 331 return null; 332 })(t) || 333 i.replace(':', '') 334 ); 335 }); 336 }), 337 (m.utcOffset = function () { 338 return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); 339 }), 340 (m.diff = function (r, d, l) { 341 var $, 342 y = this, 343 M = b.p(d), 344 m = O(r), 345 v = (m.utcOffset() - this.utcOffset()) * e, 346 g = this - m, 347 D = function () { 348 return b.m(y, m); 349 }; 350 switch (M) { 351 case h: 352 $ = D() / 12; 353 break; 354 case c: 355 $ = D(); 356 break; 357 case f: 358 $ = D() / 3; 359 break; 360 case o: 361 $ = (g - v) / 6048e5; 362 break; 363 case a: 364 $ = (g - v) / 864e5; 365 break; 366 case u: 367 $ = g / n; 368 break; 369 case s: 370 $ = g / e; 371 break; 372 case i: 373 $ = g / t; 374 break; 375 default: 376 $ = g; 377 } 378 return l ? $ : b.a($); 379 }), 380 (m.daysInMonth = function () { 381 return this.endOf(c).$D; 382 }), 383 (m.$locale = function () { 384 return D[this.$L]; 385 }), 386 (m.locale = function (t, e) { 387 if (!t) return this.$L; 388 var n = this.clone(), 389 r = w(t, e, !0); 390 return (r && (n.$L = r), n); 391 }), 392 (m.clone = function () { 393 return b.w(this.$d, this); 394 }), 395 (m.toDate = function () { 396 return new Date(this.valueOf()); 397 }), 398 (m.toJSON = function () { 399 return this.isValid() ? this.toISOString() : null; 400 }), 401 (m.toISOString = function () { 402 return this.$d.toISOString(); 403 }), 404 (m.toString = function () { 405 return this.$d.toUTCString(); 406 }), 407 M 408 ); 409 })(), 410 k = _.prototype; 411 return ( 412 (O.prototype = k), 413 [ 414 ['$ms', r], 415 ['$s', i], 416 ['$m', s], 417 ['$H', u], 418 ['$W', a], 419 ['$M', c], 420 ['$y', h], 421 ['$D', d] 422 ].forEach(function (t) { 423 k[t[1]] = function (e) { 424 return this.$g(e, t[0], t[1]); 425 }; 426 }), 427 (O.extend = function (t, e) { 428 return (t.$i || (t(e, _, O), (t.$i = !0)), O); 429 }), 430 (O.locale = w), 431 (O.isDayjs = S), 432 (O.unix = function (t) { 433 return O(1e3 * t); 434 }), 435 (O.en = D[g]), 436 (O.Ls = D), 437 (O.p = {}), 438 O 439 ); 440});
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.