bs-ad-calendar-react 1.0.1

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.
@@ -0,0 +1,1969 @@
1
+ import _t, { useMemo as ht, useState as X, useEffect as xt, useRef as xr } from "react";
2
+ var Re = { exports: {} }, xe = {};
3
+ var ft;
4
+ function wr() {
5
+ if (ft) return xe;
6
+ ft = 1;
7
+ var t = _t, e = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
8
+ function c(l, u, d) {
9
+ var h, y = {}, m = null, R = null;
10
+ d !== void 0 && (m = "" + d), u.key !== void 0 && (m = "" + u.key), u.ref !== void 0 && (R = u.ref);
11
+ for (h in u) a.call(u, h) && !o.hasOwnProperty(h) && (y[h] = u[h]);
12
+ if (l && l.defaultProps) for (h in u = l.defaultProps, u) y[h] === void 0 && (y[h] = u[h]);
13
+ return { $$typeof: e, type: l, key: m, ref: R, props: y, _owner: s.current };
14
+ }
15
+ return xe.Fragment = n, xe.jsx = c, xe.jsxs = c, xe;
16
+ }
17
+ var we = {};
18
+ var gt;
19
+ function kr() {
20
+ return gt || (gt = 1, process.env.NODE_ENV !== "production" && (function() {
21
+ var t = _t, e = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.portal"), a = /* @__PURE__ */ Symbol.for("react.fragment"), s = /* @__PURE__ */ Symbol.for("react.strict_mode"), o = /* @__PURE__ */ Symbol.for("react.profiler"), c = /* @__PURE__ */ Symbol.for("react.provider"), l = /* @__PURE__ */ Symbol.for("react.context"), u = /* @__PURE__ */ Symbol.for("react.forward_ref"), d = /* @__PURE__ */ Symbol.for("react.suspense"), h = /* @__PURE__ */ Symbol.for("react.suspense_list"), y = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), R = /* @__PURE__ */ Symbol.for("react.offscreen"), v = Symbol.iterator, N = "@@iterator";
22
+ function K(r) {
23
+ if (r === null || typeof r != "object")
24
+ return null;
25
+ var i = v && r[v] || r[N];
26
+ return typeof i == "function" ? i : null;
27
+ }
28
+ var _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
29
+ function w(r) {
30
+ {
31
+ for (var i = arguments.length, f = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
32
+ f[p - 1] = arguments[p];
33
+ $("error", r, f);
34
+ }
35
+ }
36
+ function $(r, i, f) {
37
+ {
38
+ var p = _.ReactDebugCurrentFrame, M = p.getStackAddendum();
39
+ M !== "" && (i += "%s", f = f.concat([M]));
40
+ var C = f.map(function(E) {
41
+ return String(E);
42
+ });
43
+ C.unshift("Warning: " + i), Function.prototype.apply.call(console[r], console, C);
44
+ }
45
+ }
46
+ var T = !1, ne = !1, S = !1, j = !1, ue = !1, P;
47
+ P = /* @__PURE__ */ Symbol.for("react.module.reference");
48
+ function ae(r) {
49
+ return !!(typeof r == "string" || typeof r == "function" || r === a || r === o || ue || r === s || r === d || r === h || j || r === R || T || ne || S || typeof r == "object" && r !== null && (r.$$typeof === m || r.$$typeof === y || r.$$typeof === c || r.$$typeof === l || r.$$typeof === u || // This needs to include all possible module reference object
50
+ // types supported by any Flight configuration anywhere since
51
+ // we don't know which Flight build this will end up being used
52
+ // with.
53
+ r.$$typeof === P || r.getModuleId !== void 0));
54
+ }
55
+ function F(r, i, f) {
56
+ var p = r.displayName;
57
+ if (p)
58
+ return p;
59
+ var M = i.displayName || i.name || "";
60
+ return M !== "" ? f + "(" + M + ")" : f;
61
+ }
62
+ function W(r) {
63
+ return r.displayName || "Context";
64
+ }
65
+ function U(r) {
66
+ if (r == null)
67
+ return null;
68
+ if (typeof r.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
69
+ return r.displayName || r.name || null;
70
+ if (typeof r == "string")
71
+ return r;
72
+ switch (r) {
73
+ case a:
74
+ return "Fragment";
75
+ case n:
76
+ return "Portal";
77
+ case o:
78
+ return "Profiler";
79
+ case s:
80
+ return "StrictMode";
81
+ case d:
82
+ return "Suspense";
83
+ case h:
84
+ return "SuspenseList";
85
+ }
86
+ if (typeof r == "object")
87
+ switch (r.$$typeof) {
88
+ case l:
89
+ var i = r;
90
+ return W(i) + ".Consumer";
91
+ case c:
92
+ var f = r;
93
+ return W(f._context) + ".Provider";
94
+ case u:
95
+ return F(r, r.render, "ForwardRef");
96
+ case y:
97
+ var p = r.displayName || null;
98
+ return p !== null ? p : U(r.type) || "Memo";
99
+ case m: {
100
+ var M = r, C = M._payload, E = M._init;
101
+ try {
102
+ return U(E(C));
103
+ } catch {
104
+ return null;
105
+ }
106
+ }
107
+ }
108
+ return null;
109
+ }
110
+ var V = Object.assign, z = 0, he, fe, H, ge, me, pe, Me;
111
+ function ye() {
112
+ }
113
+ ye.__reactDisabledLog = !0;
114
+ function Ie() {
115
+ {
116
+ if (z === 0) {
117
+ he = console.log, fe = console.info, H = console.warn, ge = console.error, me = console.group, pe = console.groupCollapsed, Me = console.groupEnd;
118
+ var r = {
119
+ configurable: !0,
120
+ enumerable: !0,
121
+ value: ye,
122
+ writable: !0
123
+ };
124
+ Object.defineProperties(console, {
125
+ info: r,
126
+ log: r,
127
+ warn: r,
128
+ error: r,
129
+ group: r,
130
+ groupCollapsed: r,
131
+ groupEnd: r
132
+ });
133
+ }
134
+ z++;
135
+ }
136
+ }
137
+ function ke() {
138
+ {
139
+ if (z--, z === 0) {
140
+ var r = {
141
+ configurable: !0,
142
+ enumerable: !0,
143
+ writable: !0
144
+ };
145
+ Object.defineProperties(console, {
146
+ log: V({}, r, {
147
+ value: he
148
+ }),
149
+ info: V({}, r, {
150
+ value: fe
151
+ }),
152
+ warn: V({}, r, {
153
+ value: H
154
+ }),
155
+ error: V({}, r, {
156
+ value: ge
157
+ }),
158
+ group: V({}, r, {
159
+ value: me
160
+ }),
161
+ groupCollapsed: V({}, r, {
162
+ value: pe
163
+ }),
164
+ groupEnd: V({}, r, {
165
+ value: Me
166
+ })
167
+ });
168
+ }
169
+ z < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
170
+ }
171
+ }
172
+ var se = _.ReactCurrentDispatcher, ce;
173
+ function le(r, i, f) {
174
+ {
175
+ if (ce === void 0)
176
+ try {
177
+ throw Error();
178
+ } catch (M) {
179
+ var p = M.stack.trim().match(/\n( *(at )?)/);
180
+ ce = p && p[1] || "";
181
+ }
182
+ return `
183
+ ` + ce + r;
184
+ }
185
+ }
186
+ var _e = !1, oe;
187
+ {
188
+ var Ne = typeof WeakMap == "function" ? WeakMap : Map;
189
+ oe = new Ne();
190
+ }
191
+ function Be(r, i) {
192
+ if (!r || _e)
193
+ return "";
194
+ {
195
+ var f = oe.get(r);
196
+ if (f !== void 0)
197
+ return f;
198
+ }
199
+ var p;
200
+ _e = !0;
201
+ var M = Error.prepareStackTrace;
202
+ Error.prepareStackTrace = void 0;
203
+ var C;
204
+ C = se.current, se.current = null, Ie();
205
+ try {
206
+ if (i) {
207
+ var E = function() {
208
+ throw Error();
209
+ };
210
+ if (Object.defineProperty(E.prototype, "props", {
211
+ set: function() {
212
+ throw Error();
213
+ }
214
+ }), typeof Reflect == "object" && Reflect.construct) {
215
+ try {
216
+ Reflect.construct(E, []);
217
+ } catch (L) {
218
+ p = L;
219
+ }
220
+ Reflect.construct(r, [], E);
221
+ } else {
222
+ try {
223
+ E.call();
224
+ } catch (L) {
225
+ p = L;
226
+ }
227
+ r.call(E.prototype);
228
+ }
229
+ } else {
230
+ try {
231
+ throw Error();
232
+ } catch (L) {
233
+ p = L;
234
+ }
235
+ r();
236
+ }
237
+ } catch (L) {
238
+ if (L && p && typeof L.stack == "string") {
239
+ for (var D = L.stack.split(`
240
+ `), B = p.stack.split(`
241
+ `), O = D.length - 1, A = B.length - 1; O >= 1 && A >= 0 && D[O] !== B[A]; )
242
+ A--;
243
+ for (; O >= 1 && A >= 0; O--, A--)
244
+ if (D[O] !== B[A]) {
245
+ if (O !== 1 || A !== 1)
246
+ do
247
+ if (O--, A--, A < 0 || D[O] !== B[A]) {
248
+ var G = `
249
+ ` + D[O].replace(" at new ", " at ");
250
+ return r.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", r.displayName)), typeof r == "function" && oe.set(r, G), G;
251
+ }
252
+ while (O >= 1 && A >= 0);
253
+ break;
254
+ }
255
+ }
256
+ } finally {
257
+ _e = !1, se.current = C, ke(), Error.prepareStackTrace = M;
258
+ }
259
+ var be = r ? r.displayName || r.name : "", de = be ? le(be) : "";
260
+ return typeof r == "function" && oe.set(r, de), de;
261
+ }
262
+ function He(r, i, f) {
263
+ return Be(r, !1);
264
+ }
265
+ function b(r) {
266
+ var i = r.prototype;
267
+ return !!(i && i.isReactComponent);
268
+ }
269
+ function k(r, i, f) {
270
+ if (r == null)
271
+ return "";
272
+ if (typeof r == "function")
273
+ return Be(r, b(r));
274
+ if (typeof r == "string")
275
+ return le(r);
276
+ switch (r) {
277
+ case d:
278
+ return le("Suspense");
279
+ case h:
280
+ return le("SuspenseList");
281
+ }
282
+ if (typeof r == "object")
283
+ switch (r.$$typeof) {
284
+ case u:
285
+ return He(r.render);
286
+ case y:
287
+ return k(r.type, i, f);
288
+ case m: {
289
+ var p = r, M = p._payload, C = p._init;
290
+ try {
291
+ return k(C(M), i, f);
292
+ } catch {
293
+ }
294
+ }
295
+ }
296
+ return "";
297
+ }
298
+ var J = Object.prototype.hasOwnProperty, te = {}, Le = _.ReactDebugCurrentFrame;
299
+ function Ce(r) {
300
+ if (r) {
301
+ var i = r._owner, f = k(r.type, r._source, i ? i.type : null);
302
+ Le.setExtraStackFrame(f);
303
+ } else
304
+ Le.setExtraStackFrame(null);
305
+ }
306
+ function nr(r, i, f, p, M) {
307
+ {
308
+ var C = Function.call.bind(J);
309
+ for (var E in r)
310
+ if (C(r, E)) {
311
+ var D = void 0;
312
+ try {
313
+ if (typeof r[E] != "function") {
314
+ var B = Error((p || "React class") + ": " + f + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
315
+ throw B.name = "Invariant Violation", B;
316
+ }
317
+ D = r[E](i, E, p, f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
318
+ } catch (O) {
319
+ D = O;
320
+ }
321
+ D && !(D instanceof Error) && (Ce(M), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", f, E, typeof D), Ce(null)), D instanceof Error && !(D.message in te) && (te[D.message] = !0, Ce(M), w("Failed %s type: %s", f, D.message), Ce(null));
322
+ }
323
+ }
324
+ }
325
+ var ar = Array.isArray;
326
+ function qe(r) {
327
+ return ar(r);
328
+ }
329
+ function sr(r) {
330
+ {
331
+ var i = typeof Symbol == "function" && Symbol.toStringTag, f = i && r[Symbol.toStringTag] || r.constructor.name || "Object";
332
+ return f;
333
+ }
334
+ }
335
+ function or(r) {
336
+ try {
337
+ return et(r), !1;
338
+ } catch {
339
+ return !0;
340
+ }
341
+ }
342
+ function et(r) {
343
+ return "" + r;
344
+ }
345
+ function tt(r) {
346
+ if (or(r))
347
+ return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", sr(r)), et(r);
348
+ }
349
+ var rt = _.ReactCurrentOwner, ir = {
350
+ key: !0,
351
+ ref: !0,
352
+ __self: !0,
353
+ __source: !0
354
+ }, nt, at;
355
+ function ur(r) {
356
+ if (J.call(r, "ref")) {
357
+ var i = Object.getOwnPropertyDescriptor(r, "ref").get;
358
+ if (i && i.isReactWarning)
359
+ return !1;
360
+ }
361
+ return r.ref !== void 0;
362
+ }
363
+ function cr(r) {
364
+ if (J.call(r, "key")) {
365
+ var i = Object.getOwnPropertyDescriptor(r, "key").get;
366
+ if (i && i.isReactWarning)
367
+ return !1;
368
+ }
369
+ return r.key !== void 0;
370
+ }
371
+ function lr(r, i) {
372
+ typeof r.ref == "string" && rt.current;
373
+ }
374
+ function dr(r, i) {
375
+ {
376
+ var f = function() {
377
+ nt || (nt = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
378
+ };
379
+ f.isReactWarning = !0, Object.defineProperty(r, "key", {
380
+ get: f,
381
+ configurable: !0
382
+ });
383
+ }
384
+ }
385
+ function hr(r, i) {
386
+ {
387
+ var f = function() {
388
+ at || (at = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
389
+ };
390
+ f.isReactWarning = !0, Object.defineProperty(r, "ref", {
391
+ get: f,
392
+ configurable: !0
393
+ });
394
+ }
395
+ }
396
+ var fr = function(r, i, f, p, M, C, E) {
397
+ var D = {
398
+ // This tag allows us to uniquely identify this as a React Element
399
+ $$typeof: e,
400
+ // Built-in properties that belong on the element
401
+ type: r,
402
+ key: i,
403
+ ref: f,
404
+ props: E,
405
+ // Record the component responsible for creating this element.
406
+ _owner: C
407
+ };
408
+ return D._store = {}, Object.defineProperty(D._store, "validated", {
409
+ configurable: !1,
410
+ enumerable: !1,
411
+ writable: !0,
412
+ value: !1
413
+ }), Object.defineProperty(D, "_self", {
414
+ configurable: !1,
415
+ enumerable: !1,
416
+ writable: !1,
417
+ value: p
418
+ }), Object.defineProperty(D, "_source", {
419
+ configurable: !1,
420
+ enumerable: !1,
421
+ writable: !1,
422
+ value: M
423
+ }), Object.freeze && (Object.freeze(D.props), Object.freeze(D)), D;
424
+ };
425
+ function gr(r, i, f, p, M) {
426
+ {
427
+ var C, E = {}, D = null, B = null;
428
+ f !== void 0 && (tt(f), D = "" + f), cr(i) && (tt(i.key), D = "" + i.key), ur(i) && (B = i.ref, lr(i, M));
429
+ for (C in i)
430
+ J.call(i, C) && !ir.hasOwnProperty(C) && (E[C] = i[C]);
431
+ if (r && r.defaultProps) {
432
+ var O = r.defaultProps;
433
+ for (C in O)
434
+ E[C] === void 0 && (E[C] = O[C]);
435
+ }
436
+ if (D || B) {
437
+ var A = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
438
+ D && dr(E, A), B && hr(E, A);
439
+ }
440
+ return fr(r, D, B, M, p, rt.current, E);
441
+ }
442
+ }
443
+ var We = _.ReactCurrentOwner, st = _.ReactDebugCurrentFrame;
444
+ function ve(r) {
445
+ if (r) {
446
+ var i = r._owner, f = k(r.type, r._source, i ? i.type : null);
447
+ st.setExtraStackFrame(f);
448
+ } else
449
+ st.setExtraStackFrame(null);
450
+ }
451
+ var Ue;
452
+ Ue = !1;
453
+ function Ve(r) {
454
+ return typeof r == "object" && r !== null && r.$$typeof === e;
455
+ }
456
+ function ot() {
457
+ {
458
+ if (We.current) {
459
+ var r = U(We.current.type);
460
+ if (r)
461
+ return `
462
+
463
+ Check the render method of \`` + r + "`.";
464
+ }
465
+ return "";
466
+ }
467
+ }
468
+ function mr(r) {
469
+ return "";
470
+ }
471
+ var it = {};
472
+ function pr(r) {
473
+ {
474
+ var i = ot();
475
+ if (!i) {
476
+ var f = typeof r == "string" ? r : r.displayName || r.name;
477
+ f && (i = `
478
+
479
+ Check the top-level render call using <` + f + ">.");
480
+ }
481
+ return i;
482
+ }
483
+ }
484
+ function ut(r, i) {
485
+ {
486
+ if (!r._store || r._store.validated || r.key != null)
487
+ return;
488
+ r._store.validated = !0;
489
+ var f = pr(i);
490
+ if (it[f])
491
+ return;
492
+ it[f] = !0;
493
+ var p = "";
494
+ r && r._owner && r._owner !== We.current && (p = " It was passed a child from " + U(r._owner.type) + "."), ve(r), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, p), ve(null);
495
+ }
496
+ }
497
+ function ct(r, i) {
498
+ {
499
+ if (typeof r != "object")
500
+ return;
501
+ if (qe(r))
502
+ for (var f = 0; f < r.length; f++) {
503
+ var p = r[f];
504
+ Ve(p) && ut(p, i);
505
+ }
506
+ else if (Ve(r))
507
+ r._store && (r._store.validated = !0);
508
+ else if (r) {
509
+ var M = K(r);
510
+ if (typeof M == "function" && M !== r.entries)
511
+ for (var C = M.call(r), E; !(E = C.next()).done; )
512
+ Ve(E.value) && ut(E.value, i);
513
+ }
514
+ }
515
+ }
516
+ function yr(r) {
517
+ {
518
+ var i = r.type;
519
+ if (i == null || typeof i == "string")
520
+ return;
521
+ var f;
522
+ if (typeof i == "function")
523
+ f = i.propTypes;
524
+ else if (typeof i == "object" && (i.$$typeof === u || // Note: Memo only checks outer props here.
525
+ // Inner props are checked in the reconciler.
526
+ i.$$typeof === y))
527
+ f = i.propTypes;
528
+ else
529
+ return;
530
+ if (f) {
531
+ var p = U(i);
532
+ nr(f, r.props, "prop", p, r);
533
+ } else if (i.PropTypes !== void 0 && !Ue) {
534
+ Ue = !0;
535
+ var M = U(i);
536
+ w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
537
+ }
538
+ typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
539
+ }
540
+ }
541
+ function vr(r) {
542
+ {
543
+ for (var i = Object.keys(r.props), f = 0; f < i.length; f++) {
544
+ var p = i[f];
545
+ if (p !== "children" && p !== "key") {
546
+ ve(r), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), ve(null);
547
+ break;
548
+ }
549
+ }
550
+ r.ref !== null && (ve(r), w("Invalid attribute `ref` supplied to `React.Fragment`."), ve(null));
551
+ }
552
+ }
553
+ var lt = {};
554
+ function dt(r, i, f, p, M, C) {
555
+ {
556
+ var E = ae(r);
557
+ if (!E) {
558
+ var D = "";
559
+ (r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (D += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
560
+ var B = mr();
561
+ B ? D += B : D += ot();
562
+ var O;
563
+ r === null ? O = "null" : qe(r) ? O = "array" : r !== void 0 && r.$$typeof === e ? (O = "<" + (U(r.type) || "Unknown") + " />", D = " Did you accidentally export a JSX literal instead of a component?") : O = typeof r, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", O, D);
564
+ }
565
+ var A = gr(r, i, f, M, C);
566
+ if (A == null)
567
+ return A;
568
+ if (E) {
569
+ var G = i.children;
570
+ if (G !== void 0)
571
+ if (p)
572
+ if (qe(G)) {
573
+ for (var be = 0; be < G.length; be++)
574
+ ct(G[be], r);
575
+ Object.freeze && Object.freeze(G);
576
+ } else
577
+ w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
578
+ else
579
+ ct(G, r);
580
+ }
581
+ if (J.call(i, "key")) {
582
+ var de = U(r), L = Object.keys(i).filter(function(_r) {
583
+ return _r !== "key";
584
+ }), Je = L.length > 0 ? "{key: someKey, " + L.join(": ..., ") + ": ...}" : "{key: someKey}";
585
+ if (!lt[de + Je]) {
586
+ var Mr = L.length > 0 ? "{" + L.join(": ..., ") + ": ...}" : "{}";
587
+ w(`A props object containing a "key" prop is being spread into JSX:
588
+ let props = %s;
589
+ <%s {...props} />
590
+ React keys must be passed directly to JSX without using spread:
591
+ let props = %s;
592
+ <%s key={someKey} {...props} />`, Je, de, Mr, de), lt[de + Je] = !0;
593
+ }
594
+ }
595
+ return r === a ? vr(A) : yr(A), A;
596
+ }
597
+ }
598
+ function br(r, i, f) {
599
+ return dt(r, i, f, !0);
600
+ }
601
+ function Dr(r, i, f) {
602
+ return dt(r, i, f, !1);
603
+ }
604
+ var Er = Dr, Sr = br;
605
+ we.Fragment = a, we.jsx = Er, we.jsxs = Sr;
606
+ })()), we;
607
+ }
608
+ var mt;
609
+ function Cr() {
610
+ return mt || (mt = 1, process.env.NODE_ENV === "production" ? Re.exports = wr() : Re.exports = kr()), Re.exports;
611
+ }
612
+ var g = Cr();
613
+ const Ee = [1943, 4, 14], wt = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Rr = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ee = [[[30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], 366], [[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], 366], [[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[30, 32, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], 366], [[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], 366], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 32, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[30, 32, 31, 32, 31, 31, 29, 30, 29, 30, 29, 31], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], 366], [[31, 31, 31, 32, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], 366], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[30, 32, 31, 32, 31, 30, 30, 30, 29, 30, 29, 31], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 29, 31], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365], [[31, 32, 31, 32, 31, 30, 30, 30, 29, 29, 30, 31], 366], [[31, 31, 31, 32, 31, 31, 29, 30, 30, 29, 30, 30], 365], [[31, 31, 32, 31, 31, 31, 30, 29, 30, 29, 30, 30], 365], [[31, 31, 32, 32, 31, 30, 30, 29, 30, 29, 30, 30], 365]];
614
+ let kt = class extends Error {
615
+ constructor(e) {
616
+ super(e), this.name = "DateOutOfRangeError";
617
+ }
618
+ };
619
+ const Ct = () => Ee[0] + 1, Rt = () => Ee[0] + ee.length - 1, jt = () => 2e3, Tt = () => 2e3 + ee.length - 1, Ye = (t) => t % 400 === 0 || t % 4 === 0 && t % 100 !== 0, ze = (t) => Ye(t) ? Rr : wt, jr = (t, e, n) => !(t < Ct() || t > Rt() || e < 1 || e > 12 || n < 1 || n > ze(t)[e - 1]), pt = (t, e, n) => {
620
+ let a = t * 365 + n;
621
+ for (let s = 0; s < e - 1; s++) a += wt[s];
622
+ return e <= 2 && (t -= 1), a += Math.floor(t / 4) - Math.floor(t / 100) + Math.floor(t / 400), a;
623
+ };
624
+ function Tr(t, e, n) {
625
+ const a = e + 1;
626
+ if (!jr(t, a, n)) throw new kt("Date out of range");
627
+ let s = 2e3, o = 1, c = 1, l = Math.abs(pt(t, a, n) - pt(...Ee)), u = 0;
628
+ for (; l >= ee[u][1]; ) l -= ee[u][1], s += 1, u += 1;
629
+ let d = 0;
630
+ for (; l >= ee[u][0][d]; ) l -= ee[u][0][d], o += 1, d += 1;
631
+ return c += l, [s, o - 1, c];
632
+ }
633
+ const Yr = (t, e, n) => !(t < jt() || t > Tt() || e < 1 || e > 12 || n < 1 || n > ee[t - 2e3][0][e - 1]), Or = (t, e, n) => {
634
+ let a = n - 1;
635
+ const s = t - 2e3;
636
+ for (let o = 0; o < e - 1; o++) a += ee[s][0][o];
637
+ for (let o = 0; o < s; o++) a += ee[o][1];
638
+ return a;
639
+ }, Ar = (t, e, n) => {
640
+ const a = e + 1;
641
+ if (!Yr(t, a, n)) throw new kt("Date out of range");
642
+ let [s, o, c] = [Ee[0], 1, 1];
643
+ const l = ze(s).slice(0, Ee[1] - 1).reduce((y, m) => y + m, 0) + Ee[2] - 1;
644
+ let u = Math.abs(Or(t, a, n) + l);
645
+ for (; u >= 366 && Ye(s) || u >= 365 && !Ye(s); ) u -= Ye(s) ? 366 : 365, s += 1;
646
+ const d = ze(s);
647
+ let h = 0;
648
+ for (; u >= d[h]; ) u -= d[h], o += 1, h += 1;
649
+ return c += u, [s, o - 1, c];
650
+ }, re = { enMinYear: Ct, enMaxYear: Rt, npMinYear: jt, npMaxYear: Tt, englishToNepali: Tr, nepaliToEnglish: Ar }, Yt = "en", Z = "ne", Ot = 207e5, At = 198e5, $r = 5049018e5, Fr = new Date(1986, 0, 1, 0, 15), Ae = ["Baisakh", "Jestha", "Asar", "Shrawan", "Bhadra", "Aswin", "Kartik", "Mangsir", "Poush", "Magh", "Falgun", "Chaitra"], Xe = ["Bai", "Jes", "Asa", "Shr", "Bhd", "Asw", "Kar", "Man", "Pou", "Mag", "Fal", "Cha"], $t = ["बैशाख", "जेठ", "असार", "श्रावण", "भाद्र", "आश्विन", "कार्तिक", "मंसिर", "पौष", "माघ", "फाल्गुण", "चैत्र"], Pr = ["बै", "जे", "अ", "श्रा", "भा", "आ", "का", "मं", "पौ", "मा", "फा", "चै"], Ze = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], Qe = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Ir = ["जनवरी", "फेब्रुअरी", "मार्च", "अप्रिल", "मे", "जुन", "जुलाई", "अगस्ट", "सेप्टेम्बर", "अक्टोबर", "नोभेम्बर", "डिसेम्बर"], Nr = ["जन", "फेब", "मार", "अप्रि", "मे", "जुन", "जुला", "अग", "सेप", "अक्टो", "नोभे", "डिसे"], Ft = ["०", "१", "२", "३", "४", "५", "६", "७", "८", "९"], Se = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], $e = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], Pt = ["आइत", "सोम", "मंगल", "बुध", "बिहि", "शुक्र", "शनि"], It = ["आइतबार", "सोमबार", "मंगलबार", "बुधबार", "बिहिबार", "शुक्रबार", "शनिबार"], Br = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DD?|ddd?d?|do?|YYYY|YY|y{2,4}|yo?|a|A|hh?|HH?|mm?|ss?|SSS|x|X|.)/g, Hr = (t) => {
651
+ const e = t.getTime(), n = e < $r ? At : Ot, a = new Date(e + n), s = a.getUTCFullYear(), o = a.getUTCMonth(), c = a.getUTCDate(), l = a.getUTCHours(), u = a.getUTCMinutes(), d = a.getUTCSeconds(), h = a.getUTCMilliseconds(), y = a.getUTCDay();
652
+ return { year: s, month0: o, day: c, hour: l, minute: u, second: d, ms: h, weekDay: y };
653
+ }, yt = (t, e, n, a, s, o, c) => {
654
+ const l = new Date(t, e, n, a, s, o, c);
655
+ let u = l < Fr ? At : Ot;
656
+ const d = -1 * l.getTimezoneOffset() * 60 * 1e3;
657
+ return new Date(l.getTime() - u + d);
658
+ }, Fe = (t) => {
659
+ const e = t.match(Br);
660
+ return e ? e.map((n) => n.startsWith("[") && n.endsWith("]") ? n.slice(1, -1) : n) : [];
661
+ }, Q = (t) => {
662
+ if (t.length === 0) return new RegExp("");
663
+ let e = [...t];
664
+ if (e = e.sort((a, s) => s.length - a.length), e[0] === "") return new RegExp("");
665
+ const n = `(${e.join("|")})`;
666
+ return new RegExp(n);
667
+ }, q = (t) => t.toString().padStart(2, "0"), Nt = (t) => t.toString().padStart(3, "0"), Lr = (t) => t.split("").map((e) => Ft[e.charCodeAt(0) - 48]).join(""), Y = (t, e) => {
668
+ const n = typeof t == "string" ? t : String(t);
669
+ return e !== Z ? n : Lr(n);
670
+ }, qr = (t, e) => Y(t.getYear(), e).substring(2), Wr = (t, e) => Y(t.getYear(), e), Ur = (t, e) => Y(t.getEnglishYear(), e).substring(2), Vr = (t, e) => Y(t.getEnglishYear(), e), Jr = (t, e) => Y(t.getMonth() + 1, e), Gr = (t, e) => Y(q(t.getMonth() + 1), e), Kr = (t, e) => e === Z ? Pr[t.getMonth()] : Xe[t.getMonth()], zr = (t, e) => e === Z ? $t[t.getMonth()] : Ae[t.getMonth()], Xr = (t, e) => Y(t.getEnglishMonth() + 1, e), Zr = (t, e) => Y(q(t.getEnglishMonth() + 1), e), Qr = (t, e) => e === Z ? Nr[t.getEnglishMonth()] : Qe[t.getEnglishMonth()], en = (t, e) => e === Z ? Ir[t.getEnglishMonth()] : Ze[t.getEnglishMonth()], tn = (t, e) => Y(t.getDate(), e), rn = (t, e) => Y(q(t.getDate()), e), nn = (t, e) => Y(t.getEnglishDate(), e), an = (t, e) => Y(q(t.getEnglishDate()), e), Bt = (t, e) => Y(t.getDay(), e), Oe = (t, e) => e === Z ? Pt[t.getDay()] : Se[t.getDay()], Ht = (t, e) => e === Z ? It[t.getDay()] : $e[t.getDay()], Lt = (t, e) => Y(t.getHours(), e), qt = (t, e) => Y(q(t.getHours()), e), Wt = (t, e) => {
671
+ const n = t.getHours(), a = n > 12 ? n - 12 : n;
672
+ return Y(a, e);
673
+ }, Ut = (t, e) => {
674
+ const n = t.getHours(), a = n > 12 ? n - 12 : n;
675
+ return Y(q(a), e);
676
+ }, Vt = (t, e) => Y(t.getMinutes(), e), Jt = (t, e) => Y(q(t.getMinutes()), e), Gt = (t, e) => Y(t.getSeconds(), e), Kt = (t, e) => Y(q(t.getSeconds()), e), zt = (t, e) => Y(Nt(t.getMilliseconds()), e), Xt = (t, e) => e === Z ? t.getHours() >= 12 ? "पिम" : "एम" : t.getHours() >= 12 ? "PM" : "AM", Zt = (t, e) => e === Z ? t.getHours() >= 12 ? "पिम" : "एम" : t.getHours() >= 12 ? "pm" : "am", vt = { YY: qr, YYYY: Wr, M: Jr, MM: Gr, MMM: Kr, MMMM: zr, D: tn, DD: rn, d: Bt, dd: Oe, ddd: Oe, dddd: Ht, H: Lt, HH: qt, h: Wt, hh: Ut, m: Vt, mm: Jt, s: Gt, ss: Kt, SSS: zt, A: Xt, a: Zt }, Qt = (t, e, n) => {
677
+ const a = Fe(e), s = (o) => o in vt ? vt[o](t, n) : o;
678
+ return a.map(s).join("");
679
+ }, sn = (t, e) => Qt(t, e, Yt), on = (t, e) => Qt(t, e, Z), un = (t) => {
680
+ const e = q(t.getYear()), n = q(t.getMonth() + 1), a = q(t.getDate()), s = q(t.getHours()), o = q(t.getMinutes()), c = q(t.getSeconds()), l = t.getMilliseconds(), u = l === 0 ? "" : `.${Nt(l)}`;
681
+ return `${e}-${n}-${a} ${s}:${o}:${c}${u}`;
682
+ }, bt = { YY: Ur, YYYY: Vr, M: Xr, MM: Zr, MMM: Qr, MMMM: en, D: nn, DD: an, d: Bt, dd: Oe, ddd: Oe, dddd: Ht, H: Lt, HH: qt, h: Wt, hh: Ut, m: Vt, mm: Jt, s: Gt, ss: Kt, SSS: zt, A: Xt, a: Zt }, er = (t, e, n) => {
683
+ const a = Fe(e), s = (o) => o in bt ? bt[o](t, n) : o;
684
+ return a.map(s).join("");
685
+ }, cn = (t, e) => er(t, e, Yt), ln = (t, e) => er(t, e, Z);
686
+ function dn(t) {
687
+ const e = t.split(/[-./]/, 3), [n, a = 1, s = 1] = e.map((o) => {
688
+ const c = parseInt(o, 10);
689
+ if (Number.isNaN(c)) throw new Error("Invalid date");
690
+ return c;
691
+ });
692
+ return [n, a - 1, s];
693
+ }
694
+ function hn(t) {
695
+ if (!t) return [0, 0, 0, 0];
696
+ const [e, n = "0"] = t.split(".", 2), a = e.split(":", 3), [s, o = 0, c = 0] = a.map((u) => {
697
+ const d = parseInt(u, 10);
698
+ if (Number.isNaN(d)) throw new Error("Invalid time");
699
+ return d;
700
+ });
701
+ let l = parseInt(n, 10);
702
+ return Number.isNaN(l) && (l = 0), [s, o, c, l];
703
+ }
704
+ function fn(t) {
705
+ const [e, n] = t.split(" ", 2), [a, s, o] = dn(e), [c, l, u, d] = hn(n);
706
+ return [a, s, o, c, l, u, d];
707
+ }
708
+ const Dt = { YY: /(\d\d)/, YYYY: /(\d\d\d\d)/, M: /(1[0-2]|0[1-9]|[1-9])/, MM: /(1[0-2]|0[1-9]|[1-9])/, D: /(3[0-2]|[1-2]\d|0[1-9]|[1-9]| [1-9])/, DD: /(3[0-2]|[1-2]\d|0[1-9]|[1-9]| [1-9])/, H: /(2[0-3]|[0-1]\d|\d)/, HH: /(2[0-3]|[0-1]\d|\d)/, hh: /(1[0-2]|0[1-9]|[1-9])/, mm: /([0-5]\d|\d)/, ss: /([0-5]\d|\d)/, SSS: /(\d\d\d)/, A: /(AM|PM)/, a: /(am|pm)/, MMMM: Q(Ae), MMM: Q(Xe), dddd: Q($e), ddd: Q(Se), dd: Q(Se), d: /([0-6])/ };
709
+ function gn(t) {
710
+ const e = [], n = [];
711
+ for (const s of t) s in Dt ? (e.push(s), n.push(Dt[s].source)) : n.push(s.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"));
712
+ const a = n.join("");
713
+ return { dateTokens: e, regex: new RegExp(`^${a}$`) };
714
+ }
715
+ function mn(t, e) {
716
+ let [n, a, s, o, c, l, u, d] = [0, 1, 1, 0, 0, 0, 0, 0], h = !1, y = !1;
717
+ for (let m = 0; m < t.length; m++) {
718
+ const R = t[m], v = parseInt(e[m + 1]);
719
+ switch (R) {
720
+ case "YYYY":
721
+ n = v;
722
+ break;
723
+ case "YY":
724
+ n = 2e3 + parseInt(e[m]);
725
+ break;
726
+ case "MM":
727
+ case "M":
728
+ a = v;
729
+ break;
730
+ case "MMMM":
731
+ a = Ae.indexOf(e[m + 1]) + 1;
732
+ break;
733
+ case "MMM":
734
+ a = Xe.indexOf(e[m + 1]) + 1;
735
+ break;
736
+ case "DD":
737
+ case "D":
738
+ s = v;
739
+ break;
740
+ case "HH":
741
+ case "H":
742
+ o = v;
743
+ break;
744
+ case "hh":
745
+ case "h":
746
+ c = v, y = !0;
747
+ break;
748
+ case "mm":
749
+ case "m":
750
+ l = v;
751
+ break;
752
+ case "ss":
753
+ case "s":
754
+ u = v;
755
+ break;
756
+ case "SSS":
757
+ d = v;
758
+ break;
759
+ case "A":
760
+ case "a":
761
+ h = e[m + 1].toLowerCase() === "pm";
762
+ }
763
+ }
764
+ return y && (o = c + (h ? 12 : 0)), { year: n, month0: a - 1, day: s, hour: o, minute: l, second: u, ms: d };
765
+ }
766
+ function tr(t, e) {
767
+ const n = Fe(e), { dateTokens: a, regex: s } = gn(n), o = RegExp(s).exec(t);
768
+ if (!o) throw new Error("Invalid date format");
769
+ const { year: c, month0: l, day: u, hour: d, minute: h, second: y, ms: m } = mn(a, o);
770
+ return [c, l, u, d, h, y, m];
771
+ }
772
+ const Et = { YY: /(\d\d)/, YYYY: /(\d\d\d\d)/, M: /(1[0-2]|0[1-9]|[1-9])/, MM: /(1[0-2]|0[1-9]|[1-9])/, D: /(3[0-2]|[1-2]\d|0[1-9]|[1-9]| [1-9])/, DD: /(3[0-2]|[1-2]\d|0[1-9]|[1-9]| [1-9])/, H: /(2[0-3]|[0-1]\d|\d)/, HH: /(2[0-3]|[0-1]\d|\d)/, hh: /(1[0-2]|0[1-9]|[1-9])/, mm: /([0-5]\d|\d)/, ss: /([0-5]\d|\d)/, SSS: /(\d\d\d)/, A: /(AM|PM)/, a: /(am|pm)/, MMMM: Q(Ze), MMM: Q(Qe), dddd: Q($e), ddd: Q(Se), dd: Q(Se), d: /([0-6])/ };
773
+ function pn(t) {
774
+ const e = [], n = [];
775
+ for (const s of t) s in Et ? (e.push(s), n.push(Et[s].source)) : n.push(s.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"));
776
+ const a = n.join("");
777
+ return { dateTokens: e, regex: new RegExp(`^${a}$`) };
778
+ }
779
+ function yn(t, e) {
780
+ let [n, a, s, o, c, l, u, d] = [0, 1, 1, 0, 0, 0, 0, 0], h = !1, y = !1;
781
+ for (let m = 0; m < t.length; m++) {
782
+ const R = t[m], v = parseInt(e[m + 1]);
783
+ switch (R) {
784
+ case "YYYY":
785
+ n = v;
786
+ break;
787
+ case "YY":
788
+ n = 2e3 + parseInt(e[m]);
789
+ break;
790
+ case "MM":
791
+ case "M":
792
+ a = v;
793
+ break;
794
+ case "MMMM":
795
+ a = Ze.indexOf(e[m + 1]) + 1;
796
+ break;
797
+ case "MMM":
798
+ a = Qe.indexOf(e[m + 1]) + 1;
799
+ break;
800
+ case "DD":
801
+ case "D":
802
+ s = v;
803
+ break;
804
+ case "HH":
805
+ case "H":
806
+ o = v;
807
+ break;
808
+ case "hh":
809
+ case "h":
810
+ c = v, y = !0;
811
+ break;
812
+ case "mm":
813
+ case "m":
814
+ l = v;
815
+ break;
816
+ case "ss":
817
+ case "s":
818
+ u = v;
819
+ break;
820
+ case "SSS":
821
+ d = v;
822
+ break;
823
+ case "A":
824
+ case "a":
825
+ h = e[m + 1].toLowerCase() === "pm";
826
+ }
827
+ }
828
+ return y && (o = c + (h ? 12 : 0)), { year: n, month0: a - 1, day: s, hour: o, minute: l, second: u, ms: d };
829
+ }
830
+ function vn(t, e) {
831
+ const n = Fe(e), { dateTokens: a, regex: s } = pn(n), o = RegExp(s).exec(t);
832
+ if (!o) throw new Error("Invalid date format");
833
+ const { year: c, month0: l, day: u, hour: d, minute: h, second: y, ms: m } = yn(a, o);
834
+ return [c, l, u, d, h, y, m];
835
+ }
836
+ function bn(t) {
837
+ const e = { एम: "AM", पिम: "PM" };
838
+ $t.forEach((a, s) => e[a] = Ae[s]), It.forEach((a, s) => e[a] = $e[s]), Pt.forEach((a, s) => e[a] = Se[s]), Ft.forEach((a, s) => e[a] = String(s));
839
+ const n = new RegExp(Object.keys(e).join("|"), "g");
840
+ return t.replace(n, (a) => e[a]);
841
+ }
842
+ function Dn(t, e) {
843
+ const n = bn(t);
844
+ return tr(n, e);
845
+ }
846
+ class Pe extends Error {
847
+ constructor(e) {
848
+ super(e), this.name = "ValidationError";
849
+ }
850
+ }
851
+ const En = (t) => {
852
+ if (t < 0 || t > 23) throw new Pe("Hour should be in the range 0-23");
853
+ }, Sn = (t) => {
854
+ if (t < 0 || t > 59) throw new Pe("Minute should be in the range 0-59");
855
+ }, Mn = (t) => {
856
+ if (t < 0 || t > 59) throw new Pe("Second should be in the range 0-59");
857
+ }, _n = (t) => {
858
+ if (t < 0 || t > 999) throw new Pe("Millisecond should be in the range 0-999");
859
+ }, xn = (t, e, n, a) => {
860
+ En(t), Sn(e), Mn(n), _n(a);
861
+ };
862
+ class I {
863
+ timestamp;
864
+ year;
865
+ yearEn;
866
+ month;
867
+ monthEn;
868
+ day;
869
+ dayEn;
870
+ hour;
871
+ minute;
872
+ weekDay;
873
+ constructor(...e) {
874
+ if (e.length === 0) this.initFromCurrentDate();
875
+ else if (e.length === 1 && e[0] instanceof Date) this.initFromEnglishDate(e[0]);
876
+ else if (e.length === 1 && e[0] instanceof I) this.initFromNepaliDate(e[0]);
877
+ else if (e.length === 1 && typeof e[0] == "string") this.parseFromString(e[0]);
878
+ else if (e.length === 1 && typeof e[0] == "number") this.initFromTimestamp(e[0]);
879
+ else if (e.length === 2 && typeof e[0] == "string" && typeof e[1] == "string") this.parseFromStringWithFormat(e[0], e[1]);
880
+ else if (e.length >= 2 && e.length <= 8 && e.every((n) => typeof n == "number")) this.initFromComponents(e);
881
+ else throw new Error("Invalid date argument");
882
+ }
883
+ initFromCurrentDate() {
884
+ this._setDateObject(/* @__PURE__ */ new Date());
885
+ }
886
+ initFromEnglishDate(e) {
887
+ this._setDateObject(e);
888
+ }
889
+ initFromNepaliDate(e) {
890
+ this.set(e.year, e.month, e.day, e.hour, e.minute, e.getSeconds(), e.getMilliseconds());
891
+ }
892
+ parseFromString(e) {
893
+ const n = fn(e);
894
+ this.set(n[0], n[1], n[2], n[3], n[4], n[5], n[6]);
895
+ }
896
+ initFromTimestamp(e) {
897
+ this._setDateObject(new Date(e));
898
+ }
899
+ parseFromStringWithFormat(e, n) {
900
+ const a = tr(e, n);
901
+ this.set(a[0], a[1], a[2], a[3], a[4], a[5], a[6]);
902
+ }
903
+ initFromComponents(e) {
904
+ this.set(e[0], e[1], e[2] ?? 1, e[3] ?? 0, e[4] ?? 0, e[5] ?? 0, e[6] ?? 0);
905
+ }
906
+ _setDateObject(e, n = !0) {
907
+ this.timestamp = e;
908
+ const { year: a, month0: s, day: o, hour: c, minute: l, weekDay: u } = Hr(e);
909
+ if (this.yearEn = a, this.monthEn = s, this.dayEn = o, this.hour = c, this.minute = l, this.weekDay = u, n) {
910
+ const [d, h, y] = re.englishToNepali(a, s, o);
911
+ this.year = d, this.month = h, this.day = y;
912
+ }
913
+ }
914
+ getDateObject() {
915
+ return this.timestamp;
916
+ }
917
+ getYear() {
918
+ return this.year;
919
+ }
920
+ getEnglishYear() {
921
+ return this.yearEn;
922
+ }
923
+ getMonth() {
924
+ return this.month;
925
+ }
926
+ getEnglishMonth() {
927
+ return this.monthEn;
928
+ }
929
+ getDate() {
930
+ return this.day;
931
+ }
932
+ getEnglishDate() {
933
+ return this.dayEn;
934
+ }
935
+ getDay() {
936
+ return this.weekDay;
937
+ }
938
+ getHours() {
939
+ return this.hour;
940
+ }
941
+ getMinutes() {
942
+ return this.minute;
943
+ }
944
+ getSeconds() {
945
+ return this.timestamp.getSeconds();
946
+ }
947
+ getMilliseconds() {
948
+ return this.timestamp.getMilliseconds();
949
+ }
950
+ getTime() {
951
+ return this.timestamp.getTime();
952
+ }
953
+ setYear(e) {
954
+ this.set(e, this.month, this.day, this.hour, this.minute, this.timestamp.getSeconds(), this.timestamp.getMilliseconds());
955
+ }
956
+ setMonth(e) {
957
+ this.set(this.year, e, this.day, this.hour, this.minute, this.timestamp.getSeconds(), this.timestamp.getMilliseconds());
958
+ }
959
+ setDate(e) {
960
+ this.set(this.year, this.month, e, this.hour, this.minute, this.timestamp.getSeconds(), this.timestamp.getMilliseconds());
961
+ }
962
+ setHours(e) {
963
+ this.set(this.year, this.month, this.day, e, this.minute, this.timestamp.getSeconds(), this.timestamp.getMilliseconds());
964
+ }
965
+ setMinutes(e) {
966
+ this.set(this.year, this.month, this.day, this.hour, e, this.timestamp.getSeconds(), this.timestamp.getMilliseconds());
967
+ }
968
+ setSeconds(e) {
969
+ this.set(this.year, this.month, this.day, this.hour, this.minute, e, this.timestamp.getMilliseconds());
970
+ }
971
+ setMilliseconds(e) {
972
+ this.set(this.year, this.month, this.day, this.hour, this.minute, this.timestamp.getSeconds(), e);
973
+ }
974
+ setTime(e) {
975
+ this._setDateObject(new Date(e));
976
+ }
977
+ set(e, n, a, s, o, c, l) {
978
+ xn(s, o, c, l);
979
+ const [u, d, h] = re.nepaliToEnglish(e, n, a);
980
+ this.year = e, this.month = n, this.day = a, this._setDateObject(yt(u, d, h, s, o, c, l), !1);
981
+ }
982
+ setDateObject(e) {
983
+ this._setDateObject(e, !0);
984
+ }
985
+ format(e) {
986
+ return sn(this, e);
987
+ }
988
+ formatNepali(e) {
989
+ return on(this, e);
990
+ }
991
+ toString() {
992
+ return un(this);
993
+ }
994
+ formatEnglishDate(e) {
995
+ return cn(this, e);
996
+ }
997
+ formatEnglishDateInNepali(e) {
998
+ return ln(this, e);
999
+ }
1000
+ static fromEnglishDate(e, n, a, s = 0, o = 0, c = 0, l = 0) {
1001
+ const u = yt(e, n, a, s, o, c, l);
1002
+ return new I(u);
1003
+ }
1004
+ static parseNepaliFormat(e, n) {
1005
+ const [a, s, o, c, l, u, d] = Dn(e, n);
1006
+ return new I(a, s, o, c, l, u, d);
1007
+ }
1008
+ static parseEnglishDate(e, n) {
1009
+ const [a, s, o, c, l, u, d] = vn(e, n);
1010
+ return I.fromEnglishDate(a, s, o, c, l, u, d);
1011
+ }
1012
+ static getDaysOfMonth(e, n) {
1013
+ if (e < re.npMinYear() || e > re.npMaxYear()) throw new Error("Year out of range");
1014
+ if (n < 0 || n > 11) throw new Error("Month out of range");
1015
+ return ee[e - re.npMinYear()][0][n];
1016
+ }
1017
+ static minSupportedDate() {
1018
+ return I.fromEnglishDate(re.enMinYear(), 0, 1).getDateObject();
1019
+ }
1020
+ static maxSupportedDate() {
1021
+ return I.fromEnglishDate(re.enMaxYear(), 11, 31).getDateObject();
1022
+ }
1023
+ static minSupportedNepaliDate() {
1024
+ return new I(re.npMinYear(), 0, 1);
1025
+ }
1026
+ static maxSupportedNepaliDate() {
1027
+ const e = re.npMaxYear();
1028
+ return new I(e, 11, this.getDaysOfMonth(e, 11));
1029
+ }
1030
+ static minimum() {
1031
+ return console.warn("`NepaliDate.minimum()` is deprecated and will be removed in a future version. Please use `NepaliDate.minSupportedDate()` instead."), this.minSupportedDate();
1032
+ }
1033
+ static maximum() {
1034
+ return console.warn("`NepaliDate.maximum()` is deprecated and will be removed in a future version. Please use `NepaliDate.maxSupportedDate()` instead."), this.maxSupportedDate();
1035
+ }
1036
+ }
1037
+ const wn = [
1038
+ "बैशाख",
1039
+ "जेठ",
1040
+ "आषाढ",
1041
+ "श्रावण",
1042
+ "भाद्र",
1043
+ "आश्विन",
1044
+ "कार्तिक",
1045
+ "मंसिर",
1046
+ "पौष",
1047
+ "माघ",
1048
+ "फाल्गुन",
1049
+ "चैत्र"
1050
+ ], rr = [
1051
+ "Baishakh",
1052
+ "Jestha",
1053
+ "Ashadh",
1054
+ "Shrawan",
1055
+ "Bhadra",
1056
+ "Ashwin",
1057
+ "Kartik",
1058
+ "Mangsir",
1059
+ "Poush",
1060
+ "Magh",
1061
+ "Falgun",
1062
+ "Chaitra"
1063
+ ], kn = [
1064
+ "January",
1065
+ "February",
1066
+ "March",
1067
+ "April",
1068
+ "May",
1069
+ "June",
1070
+ "July",
1071
+ "August",
1072
+ "September",
1073
+ "October",
1074
+ "November",
1075
+ "December"
1076
+ ], Cn = [
1077
+ "आइत",
1078
+ "सोम",
1079
+ "मंगल",
1080
+ "बुध",
1081
+ "बिहि",
1082
+ "शुक्र",
1083
+ "शनि"
1084
+ ], Rn = [
1085
+ "Sun",
1086
+ "Mon",
1087
+ "Tue",
1088
+ "Wed",
1089
+ "Thu",
1090
+ "Fri",
1091
+ "Sat"
1092
+ ], jn = [
1093
+ "०",
1094
+ "१",
1095
+ "२",
1096
+ "३",
1097
+ "४",
1098
+ "५",
1099
+ "६",
1100
+ "७",
1101
+ "८",
1102
+ "९"
1103
+ ], fa = {
1104
+ light: {
1105
+ primary: "#3b82f6",
1106
+ background: "#ffffff",
1107
+ text: "#1f2937",
1108
+ border: "#e5e7eb",
1109
+ hover: "#f3f4f6",
1110
+ selected: "#3b82f6",
1111
+ today: "#dbeafe",
1112
+ disabled: "#d1d5db"
1113
+ },
1114
+ dark: {
1115
+ primary: "#60a5fa",
1116
+ background: "#1f2937",
1117
+ text: "#f9fafb",
1118
+ border: "#374151",
1119
+ hover: "#374151",
1120
+ selected: "#3b82f6",
1121
+ today: "#1e40af",
1122
+ disabled: "#6b7280"
1123
+ }
1124
+ }, De = (t) => t.toString().split("").map((e) => jn[parseInt(e)]).join(""), Tn = (t, e, n) => {
1125
+ if (t === "BS")
1126
+ try {
1127
+ const a = n === 11 ? new I(e + 1, 0, 1) : new I(e, n + 1, 1);
1128
+ return new I(a.getTime() - 1440 * 60 * 1e3).getDate();
1129
+ } catch {
1130
+ return 30;
1131
+ }
1132
+ return new Date(e, n + 1, 0).getDate();
1133
+ }, Yn = (t, e, n) => {
1134
+ if (t === "BS")
1135
+ try {
1136
+ return new I(e, n, 1).getDay() || 0;
1137
+ } catch {
1138
+ return 0;
1139
+ }
1140
+ return new Date(e, n, 1).getDay();
1141
+ }, ie = (t) => {
1142
+ const e = /* @__PURE__ */ new Date();
1143
+ if (t === "BS")
1144
+ try {
1145
+ const n = I.fromEnglishDate(e.getFullYear(), e.getMonth(), e.getDate());
1146
+ return { year: n.getYear(), month: n.getMonth(), day: n.getDate() };
1147
+ } catch {
1148
+ return { year: 2081, month: 0, day: 1 };
1149
+ }
1150
+ return { year: e.getFullYear(), month: e.getMonth(), day: e.getDate() };
1151
+ }, On = (t, e, n, a, s) => {
1152
+ if (t === "BS")
1153
+ try {
1154
+ const o = new I(e, n, a), l = new Date(o.getEnglishYear(), o.getEnglishMonth(), o.getEnglishDate()).toISOString().split("T")[0];
1155
+ return {
1156
+ bs: `${e}-${String(n + 1).padStart(2, "0")}-${String(a).padStart(2, "0")}`,
1157
+ ad: l,
1158
+ formatted: {
1159
+ bs: `${s[n]} ${a}, ${e}`,
1160
+ ad: new Date(o.getEnglishYear(), o.getEnglishMonth(), o.getEnglishDate()).toLocaleDateString("en-US", { year: "numeric", month: "long", day: "numeric" })
1161
+ }
1162
+ };
1163
+ } catch {
1164
+ const o = `${e}-${String(n + 1).padStart(2, "0")}-${String(a).padStart(2, "0")}`;
1165
+ return {
1166
+ bs: o,
1167
+ ad: o,
1168
+ formatted: {
1169
+ bs: `${s[n]} ${a}, ${e}`,
1170
+ ad: `${s[n]} ${a}, ${e}`
1171
+ }
1172
+ };
1173
+ }
1174
+ else {
1175
+ const o = new Date(e, n, a), c = o.toISOString().split("T")[0];
1176
+ try {
1177
+ const l = I.fromEnglishDate(e, n, a), u = `${l.getYear()}-${String(l.getMonth() + 1).padStart(2, "0")}-${String(l.getDate()).padStart(2, "0")}`;
1178
+ return {
1179
+ ad: c,
1180
+ bs: u,
1181
+ formatted: {
1182
+ ad: o.toLocaleDateString("en-US", { year: "numeric", month: "long", day: "numeric" }),
1183
+ bs: `${rr[l.getMonth()]} ${l.getDate()}, ${l.getYear()}`
1184
+ }
1185
+ };
1186
+ } catch {
1187
+ return {
1188
+ ad: c,
1189
+ bs: c,
1190
+ formatted: {
1191
+ ad: o.toLocaleDateString("en-US", { year: "numeric", month: "long", day: "numeric" }),
1192
+ bs: o.toLocaleDateString("en-US", { year: "numeric", month: "long", day: "numeric" })
1193
+ }
1194
+ };
1195
+ }
1196
+ }
1197
+ }, ga = (t, e, n) => {
1198
+ const a = new Date(t.year, t.month, t.day).getTime(), s = new Date(e.year, e.month, e.day).getTime(), o = new Date(n.year, n.month, n.day).getTime();
1199
+ return a >= s && a <= o;
1200
+ }, St = (t) => {
1201
+ try {
1202
+ const [e, n, a] = t.split("-").map(Number);
1203
+ return !e || !n || !a ? null : { year: e, month: n - 1, day: a };
1204
+ } catch {
1205
+ return null;
1206
+ }
1207
+ }, je = (t, e, n, a = "AD") => {
1208
+ if (!e && !n) return !1;
1209
+ const s = new Date(t.year, t.month, t.day).getTime();
1210
+ if (e) {
1211
+ const o = St(e);
1212
+ if (o) {
1213
+ const c = new Date(o.year, o.month, o.day).getTime();
1214
+ if (s < c) return !0;
1215
+ }
1216
+ }
1217
+ if (n) {
1218
+ const o = St(n);
1219
+ if (o) {
1220
+ const c = new Date(o.year, o.month, o.day).getTime();
1221
+ if (s > c) return !0;
1222
+ }
1223
+ }
1224
+ return !1;
1225
+ }, An = (t = "AD") => {
1226
+ const e = ht(() => ie(t), [t]), [n, a] = X(e.year), [s, o] = X(e.month), [c, l] = X(null), [u, d] = X(null), [h, y] = X(null);
1227
+ xt(() => {
1228
+ a(e.year), o(e.month);
1229
+ }, [e.year, e.month]);
1230
+ const m = ht(() => {
1231
+ const _ = Tn(t, n, s), w = Yn(t, n, s), $ = [];
1232
+ for (let T = 0; T < w; T++)
1233
+ $.push(null);
1234
+ for (let T = 1; T <= _; T++)
1235
+ $.push(T);
1236
+ return $;
1237
+ }, [n, s, t]);
1238
+ return {
1239
+ // State
1240
+ currentYear: n,
1241
+ currentMonth: s,
1242
+ selectedDate: c,
1243
+ rangeStart: u,
1244
+ rangeEnd: h,
1245
+ today: e,
1246
+ calendarDays: m,
1247
+ // Actions
1248
+ setCurrentYear: a,
1249
+ setCurrentMonth: o,
1250
+ setSelectedDate: l,
1251
+ setRangeStart: d,
1252
+ setRangeEnd: y,
1253
+ navigateMonth: (_) => {
1254
+ let $ = s + _, T = n;
1255
+ for (; $ > 11; )
1256
+ $ -= 12, T += 1;
1257
+ for (; $ < 0; )
1258
+ $ += 12, T -= 1;
1259
+ o($), a(T);
1260
+ },
1261
+ // Helpers
1262
+ isToday: (_) => n === e.year && s === e.month && _ === e.day,
1263
+ isSelected: (_, w = "single") => w === "range" ? !!(u && u.year === n && u.month === s && u.day === _) || !!(h && h.year === n && h.month === s && h.day === _) : !!(c && c.year === n && c.month === s && c.day === _),
1264
+ isInRange: (_) => {
1265
+ if (!u || !h) return !1;
1266
+ const w = new Date(n, s, _).getTime(), $ = new Date(u.year, u.month, u.day).getTime(), T = new Date(h.year, h.month, h.day).getTime();
1267
+ return w >= $ && w <= T;
1268
+ }
1269
+ };
1270
+ }, $n = () => [
1271
+ {
1272
+ key: "today",
1273
+ label: "Today",
1274
+ getValue: (t) => {
1275
+ const e = ie(t);
1276
+ return { start: e, end: e };
1277
+ }
1278
+ },
1279
+ {
1280
+ key: "yesterday",
1281
+ label: "Yesterday",
1282
+ getValue: (t) => {
1283
+ const e = ie(t), n = { ...e, day: e.day - 1 };
1284
+ return { start: n, end: n };
1285
+ }
1286
+ },
1287
+ {
1288
+ key: "last7days",
1289
+ label: "Last 7 Days",
1290
+ getValue: (t) => {
1291
+ const e = ie(t);
1292
+ return { start: { ...e, day: e.day - 6 }, end: e };
1293
+ }
1294
+ },
1295
+ {
1296
+ key: "last30days",
1297
+ label: "Last 30 Days",
1298
+ getValue: (t) => {
1299
+ const e = ie(t);
1300
+ return { start: { ...e, day: e.day - 29 }, end: e };
1301
+ }
1302
+ },
1303
+ {
1304
+ key: "thisMonth",
1305
+ label: "This Month",
1306
+ getValue: (t) => {
1307
+ const e = ie(t);
1308
+ return { start: { ...e, day: 1 }, end: e };
1309
+ }
1310
+ },
1311
+ {
1312
+ key: "lastMonth",
1313
+ label: "Last Month",
1314
+ getValue: (t) => {
1315
+ const e = ie(t), n = e.month === 0 ? 11 : e.month - 1, a = e.month === 0 ? e.year - 1 : e.year;
1316
+ return { start: { year: a, month: n, day: 1 }, end: { year: a, month: n, day: 30 } };
1317
+ }
1318
+ },
1319
+ {
1320
+ key: "last3months",
1321
+ label: "Last 3 Months",
1322
+ getValue: (t) => {
1323
+ const e = ie(t);
1324
+ return { start: {
1325
+ year: e.month < 3 ? e.year - 1 : e.year,
1326
+ month: e.month < 3 ? e.month + 9 : e.month - 3,
1327
+ day: 1
1328
+ }, end: e };
1329
+ }
1330
+ }
1331
+ ], Fn = "_calendar_1qlbw_1", Pn = "_grid_1qlbw_11", In = "_header_1qlbw_22", Nn = "_navButton_1qlbw_29", Bn = "_monthYear_1qlbw_55", Hn = "_pickerOverlay_1qlbw_75", Ln = "_pickerContent_1qlbw_85", qn = "_pickerHeader_1qlbw_95", Wn = "_closeButton_1qlbw_109", Un = "_pickerBody_1qlbw_128", Vn = "_pickerSection_1qlbw_132", Jn = "_pickerSectionHeader_1qlbw_148", Gn = "_yearNav_1qlbw_159", Kn = "_yearGrid_1qlbw_191", zn = "_selected_1qlbw_211", Xn = "_monthGrid_1qlbw_217", Zn = "_dayHeader_1qlbw_249", Qn = "_day_1qlbw_249", ea = "_dayDisabled_1qlbw_270", ta = "_dayOtherMonth_1qlbw_270", ra = "_daySelected_1qlbw_274", na = "_dayToday_1qlbw_279", aa = "_dayInRange_1qlbw_285", x = {
1332
+ calendar: Fn,
1333
+ grid: Pn,
1334
+ header: In,
1335
+ navButton: Nn,
1336
+ monthYear: Bn,
1337
+ pickerOverlay: Hn,
1338
+ pickerContent: Ln,
1339
+ pickerHeader: qn,
1340
+ closeButton: Wn,
1341
+ pickerBody: Un,
1342
+ pickerSection: Vn,
1343
+ pickerSectionHeader: Jn,
1344
+ yearNav: Gn,
1345
+ yearGrid: Kn,
1346
+ selected: zn,
1347
+ monthGrid: Xn,
1348
+ dayHeader: Zn,
1349
+ day: Qn,
1350
+ dayDisabled: ea,
1351
+ dayOtherMonth: ta,
1352
+ daySelected: ra,
1353
+ dayToday: na,
1354
+ dayInRange: aa
1355
+ }, sa = ({
1356
+ currentYear: t,
1357
+ currentMonth: e,
1358
+ months: n,
1359
+ onYearChange: a,
1360
+ onMonthChange: s,
1361
+ onClose: o,
1362
+ showNepaliNumbers: c = !1,
1363
+ convertToNepaliNumber: l = (d) => d.toString(),
1364
+ calendarType: u
1365
+ }) => {
1366
+ const [d, h] = X(
1367
+ Math.floor(t / 12) * 12
1368
+ ), y = u === "BS" ? 2e3 : 1944, m = u === "BS" ? 2100 : 2043;
1369
+ return /* @__PURE__ */ g.jsx(
1370
+ "div",
1371
+ {
1372
+ className: x.pickerOverlay,
1373
+ onClick: o,
1374
+ children: /* @__PURE__ */ g.jsxs(
1375
+ "div",
1376
+ {
1377
+ className: x.pickerContent,
1378
+ onClick: (R) => R.stopPropagation(),
1379
+ children: [
1380
+ /* @__PURE__ */ g.jsxs("div", { className: x.pickerHeader, children: [
1381
+ /* @__PURE__ */ g.jsx("h3", { children: "Select Month & Year" }),
1382
+ /* @__PURE__ */ g.jsx("button", { onClick: o, className: x.closeButton, children: "×" })
1383
+ ] }),
1384
+ /* @__PURE__ */ g.jsxs("div", { className: x.pickerBody, children: [
1385
+ /* @__PURE__ */ g.jsxs("div", { className: x.pickerSection, children: [
1386
+ /* @__PURE__ */ g.jsxs("div", { className: x.pickerSectionHeader, children: [
1387
+ /* @__PURE__ */ g.jsx("label", { children: "Year" }),
1388
+ /* @__PURE__ */ g.jsxs("div", { className: x.yearNav, children: [
1389
+ /* @__PURE__ */ g.jsx(
1390
+ "button",
1391
+ {
1392
+ onClick: () => h(Math.max(y, d - 12)),
1393
+ disabled: d <= y,
1394
+ children: "«"
1395
+ }
1396
+ ),
1397
+ /* @__PURE__ */ g.jsxs("span", { children: [
1398
+ c ? l(d) : d,
1399
+ " - ",
1400
+ c ? l(d + 11) : d + 11
1401
+ ] }),
1402
+ /* @__PURE__ */ g.jsx(
1403
+ "button",
1404
+ {
1405
+ onClick: () => h(Math.min(m - 11, d + 12)),
1406
+ disabled: d + 11 >= m,
1407
+ children: "»"
1408
+ }
1409
+ )
1410
+ ] })
1411
+ ] }),
1412
+ /* @__PURE__ */ g.jsx("div", { className: x.yearGrid, children: Array.from({ length: 12 }, (R, v) => {
1413
+ const N = d + v;
1414
+ return N > m ? null : /* @__PURE__ */ g.jsx(
1415
+ "button",
1416
+ {
1417
+ onClick: () => a(N),
1418
+ className: N === t ? x.selected : "",
1419
+ children: c ? l(N) : N
1420
+ },
1421
+ N
1422
+ );
1423
+ }) })
1424
+ ] }),
1425
+ /* @__PURE__ */ g.jsxs("div", { className: x.pickerSection, children: [
1426
+ /* @__PURE__ */ g.jsx("label", { children: "Month" }),
1427
+ /* @__PURE__ */ g.jsx("div", { className: x.monthGrid, children: n.map((R, v) => /* @__PURE__ */ g.jsx(
1428
+ "button",
1429
+ {
1430
+ onClick: () => {
1431
+ s(v), o();
1432
+ },
1433
+ className: v === e ? x.selected : "",
1434
+ children: R
1435
+ },
1436
+ v
1437
+ )) })
1438
+ ] })
1439
+ ] })
1440
+ ]
1441
+ }
1442
+ )
1443
+ }
1444
+ );
1445
+ }, Ge = ({
1446
+ currentMonth: t,
1447
+ currentYear: e,
1448
+ months: n,
1449
+ onNavigateMonth: a,
1450
+ onYearChange: s,
1451
+ onMonthChange: o,
1452
+ disabled: c = !1,
1453
+ showNepaliNumbers: l = !1,
1454
+ convertToNepaliNumber: u,
1455
+ calendarType: d
1456
+ }) => {
1457
+ const [h, y] = X(!1);
1458
+ return /* @__PURE__ */ g.jsxs("div", { className: x.header, children: [
1459
+ /* @__PURE__ */ g.jsx(
1460
+ "button",
1461
+ {
1462
+ className: x.navButton,
1463
+ onClick: () => a(-12),
1464
+ disabled: c,
1465
+ "aria-label": "Previous year",
1466
+ title: "Previous year",
1467
+ children: "«"
1468
+ }
1469
+ ),
1470
+ /* @__PURE__ */ g.jsx(
1471
+ "button",
1472
+ {
1473
+ className: x.navButton,
1474
+ onClick: () => a(-1),
1475
+ disabled: c,
1476
+ "aria-label": "Previous month",
1477
+ children: "‹"
1478
+ }
1479
+ ),
1480
+ /* @__PURE__ */ g.jsxs(
1481
+ "button",
1482
+ {
1483
+ className: x.monthYear,
1484
+ onClick: () => y(!0),
1485
+ disabled: c,
1486
+ children: [
1487
+ n[t],
1488
+ " ",
1489
+ l ? u(e) : e
1490
+ ]
1491
+ }
1492
+ ),
1493
+ /* @__PURE__ */ g.jsx(
1494
+ "button",
1495
+ {
1496
+ className: x.navButton,
1497
+ onClick: () => a(1),
1498
+ disabled: c,
1499
+ "aria-label": "Next month",
1500
+ children: "›"
1501
+ }
1502
+ ),
1503
+ /* @__PURE__ */ g.jsx(
1504
+ "button",
1505
+ {
1506
+ className: x.navButton,
1507
+ onClick: () => a(12),
1508
+ disabled: c,
1509
+ "aria-label": "Next year",
1510
+ title: "Next year",
1511
+ children: "»"
1512
+ }
1513
+ ),
1514
+ h && /* @__PURE__ */ g.jsx(
1515
+ sa,
1516
+ {
1517
+ currentYear: e,
1518
+ currentMonth: t,
1519
+ months: n,
1520
+ onYearChange: s,
1521
+ onMonthChange: o,
1522
+ onClose: () => y(!1),
1523
+ showNepaliNumbers: l,
1524
+ convertToNepaliNumber: u,
1525
+ calendarType: d
1526
+ }
1527
+ )
1528
+ ] });
1529
+ }, Ke = ({
1530
+ calendarDays: t,
1531
+ days: e,
1532
+ onDateSelect: n,
1533
+ isSelected: a,
1534
+ isInRange: s,
1535
+ isToday: o,
1536
+ isDisabled: c,
1537
+ disabled: l = !1,
1538
+ showNepaliNumbers: u = !1,
1539
+ convertToNepaliNumber: d
1540
+ }) => /* @__PURE__ */ g.jsxs("div", { className: x.grid, children: [
1541
+ e.map((h) => /* @__PURE__ */ g.jsx("div", { className: x.dayHeader, children: h }, h)),
1542
+ t.map((h, y) => {
1543
+ const m = h ? c?.(h) || l : !1;
1544
+ return /* @__PURE__ */ g.jsx(
1545
+ "div",
1546
+ {
1547
+ className: `${x.day} ${h === null ? x.dayOtherMonth : m ? x.dayDisabled : a(h) ? x.daySelected : s(h) ? x.dayInRange : o(h) ? x.dayToday : ""}`,
1548
+ onClick: () => h && !m && n(h),
1549
+ children: h ? u ? d(h) : h : ""
1550
+ },
1551
+ y
1552
+ );
1553
+ })
1554
+ ] }), Mt = ({
1555
+ presets: t,
1556
+ calendarType: e,
1557
+ onPresetSelect: n,
1558
+ activePreset: a,
1559
+ position: s = "top"
1560
+ }) => {
1561
+ const o = (c) => {
1562
+ const l = c.getValue(e);
1563
+ n(c, l);
1564
+ };
1565
+ return /* @__PURE__ */ g.jsx("div", { style: {
1566
+ display: "flex",
1567
+ flexDirection: s === "left" ? "column" : "row",
1568
+ flexWrap: s === "top" ? "wrap" : "nowrap",
1569
+ gap: "8px",
1570
+ marginBottom: s === "top" ? "16px" : 0,
1571
+ padding: "12px",
1572
+ backgroundColor: "#f8f9fa",
1573
+ borderRadius: "6px",
1574
+ border: "1px solid #e9ecef",
1575
+ minWidth: s === "left" ? "150px" : "auto",
1576
+ maxWidth: s === "left" ? "180px" : "none",
1577
+ flexShrink: 0
1578
+ }, children: t.map((c) => /* @__PURE__ */ g.jsx(
1579
+ "button",
1580
+ {
1581
+ onClick: () => o(c),
1582
+ style: {
1583
+ padding: "6px 12px",
1584
+ fontSize: "12px",
1585
+ border: "1px solid #dee2e6",
1586
+ borderRadius: "4px",
1587
+ backgroundColor: a === c.key ? "#007bff" : "#ffffff",
1588
+ color: a === c.key ? "#ffffff" : "#495057",
1589
+ cursor: "pointer",
1590
+ transition: "all 0.2s"
1591
+ },
1592
+ children: c.label
1593
+ },
1594
+ c.key
1595
+ )) });
1596
+ }, oa = ({
1597
+ calendarType: t = "AD",
1598
+ value: e,
1599
+ onChange: n,
1600
+ className: a = "",
1601
+ showToday: s = !0,
1602
+ disabled: o = !1,
1603
+ outputFormat: c = "both",
1604
+ onDateSelect: l,
1605
+ mode: u = "single",
1606
+ onRangeSelect: d,
1607
+ showRangePresets: h = !1,
1608
+ rangePresetsPosition: y = "top",
1609
+ predefinedRanges: m,
1610
+ onPresetSelect: R,
1611
+ renderPresets: v,
1612
+ showNepaliMonths: N = !1,
1613
+ showNepaliDays: K = !1,
1614
+ showNepaliNumbers: _ = !1,
1615
+ theme: w = "light",
1616
+ colors: $,
1617
+ minDate: T,
1618
+ maxDate: ne
1619
+ }) => {
1620
+ const {
1621
+ currentYear: S,
1622
+ currentMonth: j,
1623
+ selectedDate: ue,
1624
+ rangeStart: P,
1625
+ rangeEnd: ae,
1626
+ today: F,
1627
+ calendarDays: W,
1628
+ setSelectedDate: U,
1629
+ setRangeStart: V,
1630
+ setRangeEnd: z,
1631
+ setCurrentYear: he,
1632
+ setCurrentMonth: fe,
1633
+ navigateMonth: H,
1634
+ isToday: ge,
1635
+ isSelected: me,
1636
+ isInRange: pe
1637
+ } = An(t), [Me, ye] = X(), Ie = $n(), ke = m || Ie, se = t === "BS" && N ? wn : t === "BS" ? rr : kn, ce = t === "BS" && K ? Cn : Rn, le = (b, k) => {
1638
+ k.start && k.end && (V(k.start), z(k.end), ye(b.key), R?.(b, k), d?.(k));
1639
+ }, _e = (b, k) => {
1640
+ V(b), z(k), ye(void 0), d?.({ start: b, end: k });
1641
+ }, oe = (b) => {
1642
+ if (o) return;
1643
+ const k = { year: S, month: j, day: b };
1644
+ if (je(k, T, ne, t)) return;
1645
+ if (u === "range") {
1646
+ if (ye(void 0), !P || P && ae)
1647
+ V(k), z(null);
1648
+ else {
1649
+ const te = new Date(P.year, P.month, P.day).getTime();
1650
+ new Date(k.year, k.month, k.day).getTime() < te ? (V(k), z(P), d?.({ start: k, end: P })) : (z(k), d?.({ start: P, end: k }));
1651
+ }
1652
+ return;
1653
+ }
1654
+ U(k);
1655
+ const J = On(t, S, j, b, se);
1656
+ if (l?.(J), n) {
1657
+ let te;
1658
+ switch (c) {
1659
+ case "iso":
1660
+ te = J.ad;
1661
+ break;
1662
+ case "object":
1663
+ te = JSON.stringify(J);
1664
+ break;
1665
+ default:
1666
+ te = JSON.stringify(J);
1667
+ break;
1668
+ }
1669
+ n(te);
1670
+ }
1671
+ }, Ne = (b) => {
1672
+ if (!o) {
1673
+ switch (b.key) {
1674
+ case "ArrowLeft":
1675
+ H(-1);
1676
+ break;
1677
+ case "ArrowRight":
1678
+ H(1);
1679
+ break;
1680
+ case "ArrowUp":
1681
+ H(-12);
1682
+ break;
1683
+ case "ArrowDown":
1684
+ H(12);
1685
+ break;
1686
+ case "PageUp":
1687
+ b.shiftKey ? H(-12) : H(-1);
1688
+ break;
1689
+ case "PageDown":
1690
+ b.shiftKey ? H(12) : H(1);
1691
+ break;
1692
+ default:
1693
+ return;
1694
+ }
1695
+ b.preventDefault();
1696
+ }
1697
+ }, He = {
1698
+ ...$ ? Object.entries($).reduce((b, [k, J]) => (b[`--calendar-${k}`] = J, b), {}) : {}
1699
+ };
1700
+ return /* @__PURE__ */ g.jsxs(
1701
+ "div",
1702
+ {
1703
+ className: `${x.calendar} ${a}`,
1704
+ style: He,
1705
+ "data-theme": w,
1706
+ onKeyDown: Ne,
1707
+ tabIndex: 0,
1708
+ role: "application",
1709
+ "aria-label": "Calendar",
1710
+ children: [
1711
+ u === "range" && v && /* @__PURE__ */ g.jsxs("div", { style: { display: "flex", gap: "16px" }, children: [
1712
+ /* @__PURE__ */ g.jsx("div", { children: v({ onRangeChange: _e }) }),
1713
+ /* @__PURE__ */ g.jsxs("div", { style: { flex: 1 }, children: [
1714
+ /* @__PURE__ */ g.jsx(
1715
+ Ge,
1716
+ {
1717
+ currentMonth: j,
1718
+ currentYear: S,
1719
+ months: se,
1720
+ onNavigateMonth: H,
1721
+ onYearChange: he,
1722
+ onMonthChange: fe,
1723
+ disabled: o,
1724
+ showNepaliNumbers: _,
1725
+ convertToNepaliNumber: De,
1726
+ calendarType: t
1727
+ }
1728
+ ),
1729
+ /* @__PURE__ */ g.jsx(
1730
+ Ke,
1731
+ {
1732
+ calendarDays: W,
1733
+ days: ce,
1734
+ onDateSelect: oe,
1735
+ isSelected: (b) => me(b, u),
1736
+ isInRange: pe,
1737
+ isToday: (b) => s && ge(b),
1738
+ isDisabled: (b) => je({ year: S, month: j, day: b }, T, ne, t),
1739
+ disabled: o,
1740
+ showNepaliNumbers: _,
1741
+ convertToNepaliNumber: De
1742
+ }
1743
+ )
1744
+ ] })
1745
+ ] }),
1746
+ u === "range" && h && y === "left" && !v && /* @__PURE__ */ g.jsxs("div", { style: { display: "flex", gap: "16px", flexWrap: "wrap" }, children: [
1747
+ /* @__PURE__ */ g.jsx(
1748
+ Mt,
1749
+ {
1750
+ presets: ke,
1751
+ calendarType: t,
1752
+ onPresetSelect: le,
1753
+ activePreset: Me,
1754
+ position: "left"
1755
+ }
1756
+ ),
1757
+ /* @__PURE__ */ g.jsxs("div", { style: { flex: "1 1 280px", minWidth: "280px" }, children: [
1758
+ /* @__PURE__ */ g.jsx(
1759
+ Ge,
1760
+ {
1761
+ currentMonth: j,
1762
+ currentYear: S,
1763
+ months: se,
1764
+ onNavigateMonth: H,
1765
+ onYearChange: he,
1766
+ onMonthChange: fe,
1767
+ disabled: o,
1768
+ showNepaliNumbers: _,
1769
+ convertToNepaliNumber: De,
1770
+ calendarType: t
1771
+ }
1772
+ ),
1773
+ /* @__PURE__ */ g.jsx(
1774
+ Ke,
1775
+ {
1776
+ calendarDays: W,
1777
+ days: ce,
1778
+ onDateSelect: oe,
1779
+ isSelected: (b) => me(b, u),
1780
+ isInRange: pe,
1781
+ isToday: (b) => s && ge(b),
1782
+ isDisabled: (b) => je({ year: S, month: j, day: b }, T, ne, t),
1783
+ disabled: o,
1784
+ showNepaliNumbers: _,
1785
+ convertToNepaliNumber: De
1786
+ }
1787
+ )
1788
+ ] })
1789
+ ] }),
1790
+ (!u || u === "single" || !h && !v || y === "top") && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
1791
+ u === "range" && h && /* @__PURE__ */ g.jsx(
1792
+ Mt,
1793
+ {
1794
+ presets: ke,
1795
+ calendarType: t,
1796
+ onPresetSelect: le,
1797
+ activePreset: Me,
1798
+ position: "top"
1799
+ }
1800
+ ),
1801
+ /* @__PURE__ */ g.jsx(
1802
+ Ge,
1803
+ {
1804
+ currentMonth: j,
1805
+ currentYear: S,
1806
+ months: se,
1807
+ onNavigateMonth: H,
1808
+ onYearChange: he,
1809
+ onMonthChange: fe,
1810
+ disabled: o,
1811
+ showNepaliNumbers: _,
1812
+ convertToNepaliNumber: De,
1813
+ calendarType: t
1814
+ }
1815
+ ),
1816
+ /* @__PURE__ */ g.jsx(
1817
+ Ke,
1818
+ {
1819
+ calendarDays: W,
1820
+ days: ce,
1821
+ onDateSelect: oe,
1822
+ isSelected: (b) => me(b, u),
1823
+ isInRange: pe,
1824
+ isToday: (b) => s && ge(b),
1825
+ isDisabled: (b) => je({ year: S, month: j, day: b }, T, ne, t),
1826
+ disabled: o,
1827
+ showNepaliNumbers: _,
1828
+ convertToNepaliNumber: De
1829
+ }
1830
+ )
1831
+ ] })
1832
+ ]
1833
+ }
1834
+ );
1835
+ }, ia = "_datePicker_pdqgs_1", ua = "_input_pdqgs_7", ca = "_iconButton_pdqgs_36", la = "_popup_pdqgs_62", Te = {
1836
+ datePicker: ia,
1837
+ input: ua,
1838
+ iconButton: ca,
1839
+ popup: la
1840
+ }, ma = ({
1841
+ placeholder: t = "Select date",
1842
+ format: e = "YYYY-MM-DD",
1843
+ onDateSelect: n,
1844
+ inputClassName: a = "",
1845
+ popupClassName: s = "",
1846
+ style: o,
1847
+ inputStyle: c,
1848
+ icon: l,
1849
+ showIcon: u = !0,
1850
+ calendarType: d = "AD",
1851
+ ...h
1852
+ }) => {
1853
+ const [y, m] = X(!1), [R, v] = X(null), [N, K] = X(""), _ = xr(null);
1854
+ xt(() => {
1855
+ const S = (j) => {
1856
+ _.current && !_.current.contains(j.target) && m(!1);
1857
+ };
1858
+ return y && document.addEventListener("mousedown", S), () => {
1859
+ document.removeEventListener("mousedown", S);
1860
+ };
1861
+ }, [y]);
1862
+ const w = (S) => {
1863
+ v(S);
1864
+ const j = d === "BS" ? S.bs : S.ad;
1865
+ K(j), m(!1), n?.(S);
1866
+ }, $ = (S) => {
1867
+ const j = S.target.value, ue = S.target.selectionStart || 0, P = N.length;
1868
+ if (j === "") {
1869
+ K("");
1870
+ return;
1871
+ }
1872
+ if (ue === j.length && j.length > P) {
1873
+ const F = j.replace(/[^0-9]/g, "");
1874
+ let W = F;
1875
+ F.length > 4 && F.length <= 6 ? W = F.slice(0, 4) + "-" + F.slice(4) : F.length > 6 && (W = F.slice(0, 4) + "-" + F.slice(4, 6) + "-" + F.slice(6, 8)), K(W);
1876
+ } else {
1877
+ const F = j.replace(/[^0-9-]/g, "");
1878
+ F.length <= 10 && K(F);
1879
+ }
1880
+ }, T = () => {
1881
+ const S = N.trim();
1882
+ if (!S) {
1883
+ v(null);
1884
+ return;
1885
+ }
1886
+ const j = S.match(/^(\d{4})-(\d{2})-(\d{2})$/);
1887
+ if (j) {
1888
+ const [, ue, P, ae] = j, F = parseInt(P), W = parseInt(ae);
1889
+ if (F < 1 || F > 12 || W < 1 || W > 32) {
1890
+ K(R ? d === "BS" ? R.formatted.bs : R.formatted.ad : "");
1891
+ return;
1892
+ }
1893
+ const U = {
1894
+ bs: d === "BS" ? `${ue}-${P}-${ae}` : "",
1895
+ ad: d === "AD" ? `${ue}-${P}-${ae}` : "",
1896
+ formatted: {
1897
+ bs: d === "BS" ? S : "",
1898
+ ad: d === "AD" ? S : ""
1899
+ }
1900
+ };
1901
+ v(U), n?.(U);
1902
+ } else S.length < 10 && K(R ? d === "BS" ? R.formatted.bs : R.formatted.ad : "");
1903
+ }, ne = (S) => {
1904
+ S.key === "Enter" ? (T(), m(!1)) : S.key === "Escape" && m(!1);
1905
+ };
1906
+ return /* @__PURE__ */ g.jsxs("div", { className: `${Te.datePicker} ${a}`, ref: _, style: o, children: [
1907
+ /* @__PURE__ */ g.jsx(
1908
+ "input",
1909
+ {
1910
+ type: "text",
1911
+ value: N,
1912
+ placeholder: t || "YYYY-MM-DD",
1913
+ onChange: $,
1914
+ onBlur: T,
1915
+ onKeyDown: ne,
1916
+ className: Te.input,
1917
+ style: c,
1918
+ "aria-label": "Date picker input",
1919
+ "aria-haspopup": "dialog",
1920
+ "aria-expanded": y,
1921
+ maxLength: 10
1922
+ }
1923
+ ),
1924
+ /* @__PURE__ */ g.jsx(
1925
+ "button",
1926
+ {
1927
+ type: "button",
1928
+ className: Te.iconButton,
1929
+ onClick: () => m(!y),
1930
+ "aria-label": "Toggle calendar",
1931
+ style: { display: u ? "flex" : "none" },
1932
+ children: l || /* @__PURE__ */ g.jsxs("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
1933
+ /* @__PURE__ */ g.jsx("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }),
1934
+ /* @__PURE__ */ g.jsx("line", { x1: "16", y1: "2", x2: "16", y2: "6" }),
1935
+ /* @__PURE__ */ g.jsx("line", { x1: "8", y1: "2", x2: "8", y2: "6" }),
1936
+ /* @__PURE__ */ g.jsx("line", { x1: "3", y1: "10", x2: "21", y2: "10" })
1937
+ ] })
1938
+ }
1939
+ ),
1940
+ y && /* @__PURE__ */ g.jsx("div", { className: `${Te.popup} ${s}`, children: /* @__PURE__ */ g.jsx(
1941
+ oa,
1942
+ {
1943
+ calendarType: d,
1944
+ onDateSelect: w,
1945
+ ...h
1946
+ }
1947
+ ) })
1948
+ ] });
1949
+ };
1950
+ export {
1951
+ oa as Calendar,
1952
+ ma as CalendarInput,
1953
+ fa as DEFAULT_COLORS,
1954
+ ma as DatePicker,
1955
+ Rn as ENGLISH_DAYS,
1956
+ kn as ENGLISH_MONTHS_AD,
1957
+ rr as ENGLISH_MONTHS_BS,
1958
+ Cn as NEPALI_DAYS,
1959
+ jn as NEPALI_DIGITS,
1960
+ wn as NEPALI_MONTHS,
1961
+ De as convertToNepaliNumber,
1962
+ On as createDateOutput,
1963
+ $n as createPredefinedRanges,
1964
+ Tn as getDaysInMonth,
1965
+ Yn as getFirstDayOfMonth,
1966
+ ie as getTodayDate,
1967
+ ga as isDateInRange,
1968
+ An as useCalendar
1969
+ };