@nylas/react 1.1.0-canary.8 → 1.1.0-canary.9

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.
Files changed (131) hide show
  1. package/dist/elements/index.js +92 -0
  2. package/dist/elements/index.js.map +1 -0
  3. package/dist/elements/react-component-lib/createComponent.js +65 -0
  4. package/dist/elements/react-component-lib/createComponent.js.map +1 -0
  5. package/dist/elements/react-component-lib/createOverlayComponent.js +98 -0
  6. package/dist/elements/react-component-lib/createOverlayComponent.js.map +1 -0
  7. package/dist/elements/react-component-lib/index.js +3 -0
  8. package/dist/elements/react-component-lib/index.js.map +1 -0
  9. package/dist/elements/react-component-lib/interfaces.js +2 -0
  10. package/dist/elements/react-component-lib/interfaces.js.map +1 -0
  11. package/dist/elements/react-component-lib/utils/attachProps.js +92 -0
  12. package/dist/elements/react-component-lib/utils/attachProps.js.map +1 -0
  13. package/dist/elements/react-component-lib/utils/case.js +7 -0
  14. package/dist/elements/react-component-lib/utils/case.js.map +1 -0
  15. package/dist/elements/react-component-lib/utils/dev.js +13 -0
  16. package/dist/elements/react-component-lib/utils/dev.js.map +1 -0
  17. package/dist/elements/react-component-lib/utils/index.js +31 -0
  18. package/dist/elements/react-component-lib/utils/index.js.map +1 -0
  19. package/dist/index.js +29 -0
  20. package/dist/index.js.map +1 -0
  21. package/package.json +8 -12
  22. package/dist/add-circle-icon_22.entry-080abc71.cjs +0 -1
  23. package/dist/add-circle-icon_22.entry-bda9be31.js +0 -1818
  24. package/dist/archive-icon_7.entry-ca20da59.cjs +0 -1
  25. package/dist/archive-icon_7.entry-e2954750.js +0 -75
  26. package/dist/arrow-icon.entry-03a85113.js +0 -15
  27. package/dist/arrow-icon.entry-548b027e.cjs +0 -1
  28. package/dist/bold-icon_3.entry-70ffa7f0.js +0 -35
  29. package/dist/bold-icon_3.entry-9a7b1869.cjs +0 -1
  30. package/dist/calendar-cancel-icon.entry-45388fdc.cjs +0 -1
  31. package/dist/calendar-cancel-icon.entry-6bbc119f.js +0 -15
  32. package/dist/calendar-check-icon_2.entry-6628456c.cjs +0 -1
  33. package/dist/calendar-check-icon_2.entry-f633f7a6.js +0 -25
  34. package/dist/calendar-icon.entry-379b1fa1.cjs +0 -1
  35. package/dist/calendar-icon.entry-62b82c27.js +0 -15
  36. package/dist/chevron-icon_3.entry-74425e1f.js +0 -117
  37. package/dist/chevron-icon_3.entry-7ff803ad.cjs +0 -1
  38. package/dist/close-icon.entry-18e140ed.cjs +0 -1
  39. package/dist/close-icon.entry-6a8ea4a7.js +0 -15
  40. package/dist/constants-f34b9c6e-95a17764.js +0 -3749
  41. package/dist/constants-f34b9c6e-e7137e51.cjs +0 -15
  42. package/dist/core-js-38e53e34.cjs +0 -4
  43. package/dist/core-js-a9d3b6e1.js +0 -3297
  44. package/dist/document-refresh-icon.entry-32c75418.js +0 -15
  45. package/dist/document-refresh-icon.entry-f15f795a.cjs +0 -1
  46. package/dist/dom-68f08be9.cjs +0 -15
  47. package/dist/dom-86e17616.js +0 -664
  48. package/dist/elements-dc5b338e-1f23530f.cjs +0 -16516
  49. package/dist/elements-dc5b338e-62fe1cf3.js +0 -28031
  50. package/dist/flow-40ff9cea-6f8c30e2.cjs +0 -9
  51. package/dist/flow-40ff9cea-ee70fdf5.js +0 -505
  52. package/dist/focus-visible-e8093c16-1f664070.js +0 -84
  53. package/dist/focus-visible-e8093c16-f0f05815.cjs +0 -1
  54. package/dist/forward-icon_6.entry-7fab04d7.js +0 -953
  55. package/dist/forward-icon_6.entry-ef5e2e0f.cjs +0 -3
  56. package/dist/globe-icon.entry-398a9826.cjs +0 -1
  57. package/dist/globe-icon.entry-b8e1efae.js +0 -15
  58. package/dist/google-logo-icon_4.entry-38d5c2f2.cjs +0 -1
  59. package/dist/google-logo-icon_4.entry-5eca9538.js +0 -381
  60. package/dist/index-93c50de4.cjs +0 -37
  61. package/dist/index-f93f6948.js +0 -4006
  62. package/dist/index.es-df564f87-b773d34f.js +0 -3137
  63. package/dist/index.es-df564f87-e4a4092a.cjs +0 -7
  64. package/dist/info-icon_2.entry-2eb70f49.cjs +0 -1
  65. package/dist/info-icon_2.entry-6bbfa6dc.js +0 -34
  66. package/dist/loading-icon.entry-b563b2e6.js +0 -15
  67. package/dist/loading-icon.entry-fb04b893.cjs +0 -1
  68. package/dist/mailbox-store-69c5c5f6-631eddb5.cjs +0 -1
  69. package/dist/mailbox-store-69c5c5f6-8ab4670b.js +0 -380
  70. package/dist/nylas-additional-participants.entry-33a45477.cjs +0 -1
  71. package/dist/nylas-additional-participants.entry-4b214308.js +0 -81
  72. package/dist/nylas-booked-event-card_10.entry-3e225025.cjs +0 -1
  73. package/dist/nylas-booked-event-card_10.entry-e93bc290.js +0 -782
  74. package/dist/nylas-form-card.entry-0748fdd5.js +0 -54
  75. package/dist/nylas-form-card.entry-eb3607bc.cjs +0 -1
  76. package/dist/nylas-if-state.entry-276d61ad.cjs +0 -1
  77. package/dist/nylas-if-state.entry-f8abd025.js +0 -94
  78. package/dist/nylas-list-folders.entry-78cc680e.js +0 -120
  79. package/dist/nylas-list-folders.entry-afe02f0e.cjs +0 -1
  80. package/dist/nylas-list-threads.entry-217088de.js +0 -70
  81. package/dist/nylas-list-threads.entry-6395c12f.cjs +0 -1
  82. package/dist/nylas-login.entry-e4d57589.js +0 -73
  83. package/dist/nylas-login.entry-ec81e21b.cjs +0 -1
  84. package/dist/nylas-mailbox-pagination.entry-069673aa.js +0 -101
  85. package/dist/nylas-mailbox-pagination.entry-d4d929f1.cjs +0 -1
  86. package/dist/nylas-mailbox-toolbar-button.entry-03c5f5c8.js +0 -82
  87. package/dist/nylas-mailbox-toolbar-button.entry-2b9e4431.cjs +0 -1
  88. package/dist/nylas-mailbox.entry-1342178d.cjs +0 -1
  89. package/dist/nylas-mailbox.entry-7e6b4791.js +0 -134
  90. package/dist/nylas-provider.entry-0ae8e70a.cjs +0 -1
  91. package/dist/nylas-provider.entry-498a7be9.js +0 -145
  92. package/dist/nylas-scheduler-editor.entry-4de2bb97.js +0 -2275
  93. package/dist/nylas-scheduler-editor.entry-72c91b7d.cjs +0 -7
  94. package/dist/nylas-scheduling.entry-1a004916.cjs +0 -1
  95. package/dist/nylas-scheduling.entry-4e18ab43.js +0 -235
  96. package/dist/nylas-threads-refresh.entry-d020c89e.cjs +0 -1
  97. package/dist/nylas-threads-refresh.entry-fc2d8028.js +0 -74
  98. package/dist/nylas-threads-search.entry-0abcbc10.cjs +0 -1
  99. package/dist/nylas-threads-search.entry-f92f7e30.js +0 -69
  100. package/dist/nylas-view-thread.entry-2f1474cf.js +0 -203
  101. package/dist/nylas-view-thread.entry-56080c89.cjs +0 -1
  102. package/dist/people-icon.entry-431e5044.cjs +0 -1
  103. package/dist/people-icon.entry-b4778e15.js +0 -15
  104. package/dist/play-icon_2.entry-24ffa01f.js +0 -25
  105. package/dist/play-icon_2.entry-f97db395.cjs +0 -1
  106. package/dist/react.cjs +0 -1
  107. package/dist/react.js +0 -98
  108. package/dist/refresh-icon.entry-8395104b.js +0 -15
  109. package/dist/refresh-icon.entry-cf4416b8.cjs +0 -1
  110. package/dist/register-component-b9cfcbaf-c0147194.js +0 -109
  111. package/dist/register-component-b9cfcbaf-d40e1f3c.cjs +0 -1
  112. package/dist/scheduler-config-store-07d98279-0610e42f.cjs +0 -1
  113. package/dist/scheduler-config-store-07d98279-3b70606c.js +0 -24
  114. package/dist/scheduler-store-24fd0e91-2dba20c2.cjs +0 -1
  115. package/dist/scheduler-store-24fd0e91-47098841.js +0 -302
  116. package/dist/time-period-selector.entry-1e849c2e.js +0 -76
  117. package/dist/time-period-selector.entry-d8f3462f.cjs +0 -1
  118. package/dist/translate-icon.entry-66533238.cjs +0 -1
  119. package/dist/translate-icon.entry-d847f706.js +0 -15
  120. package/dist/warning-icon.entry-1f0f00ed.cjs +0 -1
  121. package/dist/warning-icon.entry-b5db0151.js +0 -15
  122. /package/dist/{elements → types/elements}/index.d.ts +0 -0
  123. /package/dist/{elements → types/elements}/react-component-lib/createComponent.d.ts +0 -0
  124. /package/dist/{elements → types/elements}/react-component-lib/createOverlayComponent.d.ts +0 -0
  125. /package/dist/{elements → types/elements}/react-component-lib/index.d.ts +0 -0
  126. /package/dist/{elements → types/elements}/react-component-lib/interfaces.d.ts +0 -0
  127. /package/dist/{elements → types/elements}/react-component-lib/utils/attachProps.d.ts +0 -0
  128. /package/dist/{elements → types/elements}/react-component-lib/utils/case.d.ts +0 -0
  129. /package/dist/{elements → types/elements}/react-component-lib/utils/dev.d.ts +0 -0
  130. /package/dist/{elements → types/elements}/react-component-lib/utils/index.d.ts +0 -0
  131. /package/dist/{index.d.ts → types/index.d.ts} +0 -0
@@ -1,4006 +0,0 @@
1
- var Gr = Object.defineProperty;
2
- var Zr = (t, e, n) => e in t ? Gr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var wt = (t, e, n) => (Zr(t, typeof e != "symbol" ? e + "" : e, n), n);
4
- import ht, { createElement as Jr, useReducer as Xr, useRef as kt, useEffect as Qr } from "react";
5
- import "react-dom";
6
- const Vr = "nylas-web-elements", qn = (
7
- /* nylas-web-elements */
8
- { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !0, cmpDidUnload: !1, cmpDidUpdate: !0, cmpShouldUpdate: !1, cmpWillLoad: !0, cmpWillRender: !0, cmpWillUpdate: !0, connectedCallback: !0, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !0, element: !1, event: !0, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !0, hasRenderFn: !0, hostListener: !0, hostListenerTarget: !0, hostListenerTargetBody: !0, hostListenerTargetDocument: !0, hostListenerTargetParent: !1, hostListenerTargetWindow: !0, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !0, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !0, propNumber: !0, propString: !0, reflect: !1, scoped: !0, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !0, slot: !0, slotChildNodesFix: !1, slotRelocation: !0, state: !0, style: !0, svg: !0, taskQueue: !0, transformTagName: !1, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !0, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !0, vdomRender: !0, vdomStyle: !0, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
9
- );
10
- let He, Ot, yt, Kn = !1, ot = !1, Ht = !1, le = !1, _t = null, Dt = !1;
11
- const Oe = (t, e = "") => () => {
12
- }, ea = (t, e) => () => {
13
- }, ta = "{visibility:hidden}.hydrated{visibility:inherit}", Gn = "slot-fb{display:contents}slot-fb[hidden]{display:none}", na = [
14
- "formAssociatedCallback",
15
- "formResetCallback",
16
- "formDisabledCallback",
17
- "formStateRestoreCallback"
18
- ], un = {}, ra = "http://www.w3.org/2000/svg", aa = "http://www.w3.org/1999/xhtml", oa = (t) => t != null, jt = (t) => (t = typeof t, t === "object" || t === "function");
19
- function Zn(t) {
20
- var e, n, r;
21
- return (r = (n = (e = t.head) === null || e === void 0 ? void 0 : e.querySelector('meta[name="csp-nonce"]')) === null || n === void 0 ? void 0 : n.getAttribute("content")) !== null && r !== void 0 ? r : void 0;
22
- }
23
- const Jn = (t, e, ...n) => {
24
- let r = null, a = null, i = null, o = !1, l = !1;
25
- const s = [], u = (f) => {
26
- for (let h = 0; h < f.length; h++)
27
- r = f[h], Array.isArray(r) ? u(r) : r != null && typeof r != "boolean" && ((o = typeof t != "function" && !jt(r)) && (r = String(r)), o && l ? s[s.length - 1].$text$ += r : s.push(o ? it(null, r) : r), l = o);
28
- };
29
- if (u(n), e) {
30
- e.key && (a = e.key), e.name && (i = e.name);
31
- {
32
- const f = e.className || e.class;
33
- f && (e.class = typeof f != "object" ? f : Object.keys(f).filter((h) => f[h]).join(" "));
34
- }
35
- }
36
- if (typeof t == "function")
37
- return t(e === null ? {} : e, s, la);
38
- const d = it(t, null);
39
- return d.$attrs$ = e, s.length > 0 && (d.$children$ = s), d.$key$ = a, d.$name$ = i, d;
40
- }, it = (t, e) => {
41
- const n = {
42
- $flags$: 0,
43
- $tag$: t,
44
- $text$: e,
45
- $elm$: null,
46
- $children$: null
47
- };
48
- return n.$attrs$ = null, n.$key$ = null, n.$name$ = null, n;
49
- }, ia = {}, sa = (t) => t && t.$tag$ === ia, la = {
50
- forEach: (t, e) => t.map(dn).forEach(e),
51
- map: (t, e) => t.map(dn).map(e).map(ca)
52
- }, dn = (t) => ({
53
- vattrs: t.$attrs$,
54
- vchildren: t.$children$,
55
- vkey: t.$key$,
56
- vname: t.$name$,
57
- vtag: t.$tag$,
58
- vtext: t.$text$
59
- }), ca = (t) => {
60
- if (typeof t.vtag == "function") {
61
- const n = Object.assign({}, t.vattrs);
62
- return t.vkey && (n.key = t.vkey), t.vname && (n.name = t.vname), Jn(t.vtag, n, ...t.vchildren || []);
63
- }
64
- const e = it(t.vtag, t.vtext);
65
- return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;
66
- }, ua = (t, e) => t != null && !jt(t) ? e & 4 ? t === "false" ? !1 : t === "" || !!t : e & 2 ? parseFloat(t) : e & 1 ? String(t) : t : t, da = (t) => $e(t).$hostElement$, hi = (t, e, n) => {
67
- const r = da(t);
68
- return {
69
- emit: (a) => Xn(r, e, {
70
- bubbles: !!(n & 4),
71
- composed: !!(n & 2),
72
- cancelable: !!(n & 1),
73
- detail: a
74
- })
75
- };
76
- }, Xn = (t, e, n) => {
77
- const r = B.ce(e, n);
78
- return t.dispatchEvent(r), r;
79
- }, fn = /* @__PURE__ */ new WeakMap(), fa = (t, e, n) => {
80
- let r = lt.get(t);
81
- Pa && n ? (r = r || new CSSStyleSheet(), typeof r == "string" ? r = e : r.replaceSync(e)) : r = e, lt.set(t, r);
82
- }, ha = (t, e, n) => {
83
- var r;
84
- const a = Qn(e), i = lt.get(a);
85
- if (t = t.nodeType === 11 ? t : re, i)
86
- if (typeof i == "string") {
87
- t = t.head || t;
88
- let o = fn.get(t), l;
89
- if (o || fn.set(t, o = /* @__PURE__ */ new Set()), !o.has(a)) {
90
- {
91
- l = re.createElement("style"), l.innerHTML = i;
92
- const s = (r = B.$nonce$) !== null && r !== void 0 ? r : Zn(re);
93
- s != null && l.setAttribute("nonce", s), t.insertBefore(l, t.querySelector("link"));
94
- }
95
- e.$flags$ & 4 && (l.innerHTML += Gn), o && o.add(a);
96
- }
97
- } else
98
- t.adoptedStyleSheets.includes(i) || (t.adoptedStyleSheets = [...t.adoptedStyleSheets, i]);
99
- return a;
100
- }, ya = (t) => {
101
- const e = t.$cmpMeta$, n = t.$hostElement$, r = e.$flags$, a = Oe("attachStyles", e.$tagName$), i = ha(n.shadowRoot ? n.shadowRoot : n.getRootNode(), e);
102
- r & 10 && (n["s-sc"] = i, n.classList.add(i + "-h"), r & 2 && n.classList.add(i + "-s")), a();
103
- }, Qn = (t, e) => "sc-" + t.$tagName$, hn = (t, e, n, r, a, i) => {
104
- if (n !== r) {
105
- let o = $n(t, e), l = e.toLowerCase();
106
- if (e === "class") {
107
- const s = t.classList, u = yn(n), d = yn(r);
108
- s.remove(...u.filter((f) => f && !d.includes(f))), s.add(...d.filter((f) => f && !u.includes(f)));
109
- } else if (e === "style") {
110
- for (const s in n)
111
- (!r || r[s] == null) && (s.includes("-") ? t.style.removeProperty(s) : t.style[s] = "");
112
- for (const s in r)
113
- (!n || r[s] !== n[s]) && (s.includes("-") ? t.style.setProperty(s, r[s]) : t.style[s] = r[s]);
114
- } else if (e !== "key")
115
- if (e === "ref")
116
- r && r(t);
117
- else if (!o && e[0] === "o" && e[1] === "n") {
118
- if (e[2] === "-" ? e = e.slice(3) : $n(et, l) ? e = l.slice(2) : e = l[2] + e.slice(3), n || r) {
119
- const s = e.endsWith(Vn);
120
- e = e.replace(ma, ""), n && B.rel(t, e, n, s), r && B.ael(t, e, r, s);
121
- }
122
- } else {
123
- const s = jt(r);
124
- if ((o || s && r !== null) && !a)
125
- try {
126
- if (t.tagName.includes("-"))
127
- t[e] = r;
128
- else {
129
- const u = r ?? "";
130
- e === "list" ? o = !1 : (n == null || t[e] != u) && (t[e] = u);
131
- }
132
- } catch {
133
- }
134
- r == null || r === !1 ? (r !== !1 || t.getAttribute(e) === "") && t.removeAttribute(e) : (!o || i & 4 || a) && !s && (r = r === !0 ? "" : r, t.setAttribute(e, r));
135
- }
136
- }
137
- }, pa = /\s/, yn = (t) => t ? t.split(pa) : [], Vn = "Capture", ma = new RegExp(Vn + "$"), er = (t, e, n, r) => {
138
- const a = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, i = t && t.$attrs$ || un, o = e.$attrs$ || un;
139
- for (r in i)
140
- r in o || hn(a, r, i[r], void 0, n, e.$flags$);
141
- for (r in o)
142
- hn(a, r, i[r], o[r], n, e.$flags$);
143
- }, st = (t, e, n, r) => {
144
- const a = e.$children$[n];
145
- let i = 0, o, l, s;
146
- if (Kn || (Ht = !0, a.$tag$ === "slot" && (He && r.classList.add(He + "-s"), a.$flags$ |= a.$children$ ? (
147
- // slot element has fallback content
148
- 2
149
- ) : (
150
- // slot element does not have fallback content
151
- 1
152
- ))), a.$text$ !== null)
153
- o = a.$elm$ = re.createTextNode(a.$text$);
154
- else if (a.$flags$ & 1)
155
- o = a.$elm$ = re.createTextNode("");
156
- else {
157
- if (le || (le = a.$tag$ === "svg"), o = a.$elm$ = re.createElementNS(le ? ra : aa, a.$flags$ & 2 ? "slot-fb" : a.$tag$), le && a.$tag$ === "foreignObject" && (le = !1), er(null, a, le), oa(He) && o["s-si"] !== He && o.classList.add(o["s-si"] = He), a.$children$)
158
- for (i = 0; i < a.$children$.length; ++i)
159
- l = st(t, a, i, o), l && o.appendChild(l);
160
- a.$tag$ === "svg" ? le = !1 : o.tagName === "foreignObject" && (le = !0);
161
- }
162
- return o["s-hn"] = yt, a.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Ot, o["s-sn"] = a.$name$ || "", s = t && t.$children$ && t.$children$[n], s && s.$tag$ === a.$tag$ && t.$elm$ && Qe(t.$elm$, !1)), o;
163
- }, Qe = (t, e) => {
164
- B.$flags$ |= 1;
165
- const n = t.childNodes;
166
- for (let r = n.length - 1; r >= 0; r--) {
167
- const a = n[r];
168
- a["s-hn"] !== yt && a["s-ol"] && (rr(a).insertBefore(a, Ft(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, Ht = !0), e && Qe(a, e);
169
- }
170
- B.$flags$ &= -2;
171
- }, tr = (t, e, n, r, a, i) => {
172
- let o = t["s-cr"] && t["s-cr"].parentNode || t, l;
173
- for (o.shadowRoot && o.tagName === yt && (o = o.shadowRoot); a <= i; ++a)
174
- r[a] && (l = st(null, n, a, t), l && (r[a].$elm$ = l, o.insertBefore(l, Ft(e))));
175
- }, nr = (t, e, n) => {
176
- for (let r = e; r <= n; ++r) {
177
- const a = t[r];
178
- if (a) {
179
- const i = a.$elm$;
180
- ir(a), i && (ot = !0, i["s-ol"] ? i["s-ol"].remove() : Qe(i, !0), i.remove());
181
- }
182
- }
183
- }, ga = (t, e, n, r, a = !1) => {
184
- let i = 0, o = 0, l = 0, s = 0, u = e.length - 1, d = e[0], f = e[u], h = r.length - 1, y = r[0], p = r[h], g, b;
185
- for (; i <= u && o <= h; )
186
- if (d == null)
187
- d = e[++i];
188
- else if (f == null)
189
- f = e[--u];
190
- else if (y == null)
191
- y = r[++o];
192
- else if (p == null)
193
- p = r[--h];
194
- else if (at(d, y, a))
195
- je(d, y, a), d = e[++i], y = r[++o];
196
- else if (at(f, p, a))
197
- je(f, p, a), f = e[--u], p = r[--h];
198
- else if (at(d, p, a))
199
- (d.$tag$ === "slot" || p.$tag$ === "slot") && Qe(d.$elm$.parentNode, !1), je(d, p, a), t.insertBefore(d.$elm$, f.$elm$.nextSibling), d = e[++i], p = r[--h];
200
- else if (at(f, y, a))
201
- (d.$tag$ === "slot" || p.$tag$ === "slot") && Qe(f.$elm$.parentNode, !1), je(f, y, a), t.insertBefore(f.$elm$, d.$elm$), f = e[--u], y = r[++o];
202
- else {
203
- for (l = -1, s = i; s <= u; ++s)
204
- if (e[s] && e[s].$key$ !== null && e[s].$key$ === y.$key$) {
205
- l = s;
206
- break;
207
- }
208
- l >= 0 ? (b = e[l], b.$tag$ !== y.$tag$ ? g = st(e && e[o], n, l, t) : (je(b, y, a), e[l] = void 0, g = b.$elm$), y = r[++o]) : (g = st(e && e[o], n, o, t), y = r[++o]), g && rr(d.$elm$).insertBefore(g, Ft(d.$elm$));
209
- }
210
- i > u ? tr(t, r[h + 1] == null ? null : r[h + 1].$elm$, n, r, o, h) : o > h && nr(e, i, u);
211
- }, at = (t, e, n = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : n ? !0 : t.$key$ === e.$key$ : !1, Ft = (t) => t && t["s-ol"] || t, rr = (t) => (t["s-ol"] ? t["s-ol"] : t).parentNode, je = (t, e, n = !1) => {
212
- const r = e.$elm$ = t.$elm$, a = t.$children$, i = e.$children$, o = e.$tag$, l = e.$text$;
213
- let s;
214
- l === null ? (le = o === "svg" ? !0 : o === "foreignObject" ? !1 : le, o === "slot" || er(t, e, le), a !== null && i !== null ? ga(r, a, e, i, n) : i !== null ? (t.$text$ !== null && (r.textContent = ""), tr(r, null, e, i, 0, i.length - 1)) : a !== null && nr(a, 0, a.length - 1), le && o === "svg" && (le = !1)) : (s = r["s-cr"]) ? s.parentNode.textContent = l : t.$text$ !== l && (r.data = l);
215
- }, ar = (t) => {
216
- const e = t.childNodes;
217
- for (const n of e)
218
- if (n.nodeType === 1) {
219
- if (n["s-sr"]) {
220
- const r = n["s-sn"];
221
- n.hidden = !1;
222
- for (const a of e)
223
- if (a !== n) {
224
- if (a["s-hn"] !== n["s-hn"] || r !== "") {
225
- if (a.nodeType === 1 && (r === a.getAttribute("slot") || r === a["s-sn"])) {
226
- n.hidden = !0;
227
- break;
228
- }
229
- } else if (a.nodeType === 1 || a.nodeType === 3 && a.textContent.trim() !== "") {
230
- n.hidden = !0;
231
- break;
232
- }
233
- }
234
- }
235
- ar(n);
236
- }
237
- }, Ce = [], or = (t) => {
238
- let e, n, r;
239
- for (const a of t.childNodes) {
240
- if (a["s-sr"] && (e = a["s-cr"]) && e.parentNode) {
241
- n = e.parentNode.childNodes;
242
- const i = a["s-sn"];
243
- for (r = n.length - 1; r >= 0; r--)
244
- if (e = n[r], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== a["s-hn"] && !qn.experimentalSlotFixes)
245
- if (pn(e, i)) {
246
- let o = Ce.find((l) => l.$nodeToRelocate$ === e);
247
- ot = !0, e["s-sn"] = e["s-sn"] || i, o ? (o.$nodeToRelocate$["s-sh"] = a["s-hn"], o.$slotRefNode$ = a) : (e["s-sh"] = a["s-hn"], Ce.push({
248
- $slotRefNode$: a,
249
- $nodeToRelocate$: e
250
- })), e["s-sr"] && Ce.map((l) => {
251
- pn(l.$nodeToRelocate$, e["s-sn"]) && (o = Ce.find((s) => s.$nodeToRelocate$ === e), o && !l.$slotRefNode$ && (l.$slotRefNode$ = o.$slotRefNode$));
252
- });
253
- } else
254
- Ce.some((o) => o.$nodeToRelocate$ === e) || Ce.push({
255
- $nodeToRelocate$: e
256
- });
257
- }
258
- a.nodeType === 1 && or(a);
259
- }
260
- }, pn = (t, e) => t.nodeType === 1 ? t.getAttribute("slot") === null && e === "" || t.getAttribute("slot") === e : t["s-sn"] === e ? !0 : e === "", ir = (t) => {
261
- t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(ir);
262
- }, va = (t, e, n = !1) => {
263
- var r, a, i, o;
264
- const l = t.$hostElement$, s = t.$cmpMeta$, u = t.$vnode$ || it(null, null), d = sa(e) ? e : Jn(null, null, e);
265
- if (yt = l.tagName, n && d.$attrs$)
266
- for (const f of Object.keys(d.$attrs$))
267
- l.hasAttribute(f) && !["key", "ref", "style", "class"].includes(f) && (d.$attrs$[f] = l[f]);
268
- d.$tag$ = null, d.$flags$ |= 4, t.$vnode$ = d, d.$elm$ = u.$elm$ = l.shadowRoot || l, He = l["s-sc"], Ot = l["s-cr"], Kn = (s.$flags$ & 1) !== 0, ot = !1, je(u, d, n);
269
- {
270
- if (B.$flags$ |= 1, Ht) {
271
- or(d.$elm$);
272
- for (const f of Ce) {
273
- const h = f.$nodeToRelocate$;
274
- if (!h["s-ol"]) {
275
- const y = re.createTextNode("");
276
- y["s-nr"] = h, h.parentNode.insertBefore(h["s-ol"] = y, h);
277
- }
278
- }
279
- for (const f of Ce) {
280
- const h = f.$nodeToRelocate$, y = f.$slotRefNode$;
281
- if (y) {
282
- const p = y.parentNode;
283
- let g = y.nextSibling;
284
- {
285
- let b = (r = h["s-ol"]) === null || r === void 0 ? void 0 : r.previousSibling;
286
- for (; b; ) {
287
- let T = (a = b["s-nr"]) !== null && a !== void 0 ? a : null;
288
- if (T && T["s-sn"] === h["s-sn"] && p === T.parentNode && (T = T.nextSibling, !T || !T["s-nr"])) {
289
- g = T;
290
- break;
291
- }
292
- b = b.previousSibling;
293
- }
294
- }
295
- (!g && p !== h.parentNode || h.nextSibling !== g) && h !== g && (!h["s-hn"] && h["s-ol"] && (h["s-hn"] = h["s-ol"].parentNode.nodeName), p.insertBefore(h, g), h.nodeType === 1 && (h.hidden = (i = h["s-ih"]) !== null && i !== void 0 ? i : !1));
296
- } else
297
- h.nodeType === 1 && (n && (h["s-ih"] = (o = h.hidden) !== null && o !== void 0 ? o : !1), h.hidden = !0);
298
- }
299
- }
300
- ot && ar(d.$elm$), B.$flags$ &= -2, Ce.length = 0;
301
- }
302
- Ot = void 0;
303
- }, sr = (t, e) => {
304
- e && !t.$onRenderResolve$ && e["s-p"] && e["s-p"].push(new Promise((n) => t.$onRenderResolve$ = n));
305
- }, pt = (t, e) => {
306
- if (t.$flags$ |= 16, t.$flags$ & 4) {
307
- t.$flags$ |= 512;
308
- return;
309
- }
310
- return sr(t, t.$ancestorComponent$), Ha(() => ba(t, e));
311
- }, ba = (t, e) => {
312
- const n = Oe("scheduleUpdate", t.$cmpMeta$.$tagName$), r = t.$lazyInstance$;
313
- let a;
314
- return e ? (t.$flags$ |= 256, t.$queuedListeners$ && (t.$queuedListeners$.map(([i, o]) => xe(r, i, o)), t.$queuedListeners$ = void 0), a = xe(r, "componentWillLoad")) : a = xe(r, "componentWillUpdate"), a = mn(a, () => xe(r, "componentWillRender")), n(), mn(a, () => wa(t, r, e));
315
- }, mn = (t, e) => $a(t) ? t.then(e) : e(), $a = (t) => t instanceof Promise || t && t.then && typeof t.then == "function", wa = async (t, e, n) => {
316
- var r;
317
- const a = t.$hostElement$, i = Oe("update", t.$cmpMeta$.$tagName$), o = a["s-rc"];
318
- n && ya(t);
319
- const l = Oe("render", t.$cmpMeta$.$tagName$);
320
- ka(t, e, a, n), o && (o.map((s) => s()), a["s-rc"] = void 0), l(), i();
321
- {
322
- const s = (r = a["s-p"]) !== null && r !== void 0 ? r : [], u = () => Ea(t);
323
- s.length === 0 ? u() : (Promise.all(s).then(u), t.$flags$ |= 4, s.length = 0);
324
- }
325
- }, ka = (t, e, n, r) => {
326
- try {
327
- _t = e, e = e.render(), t.$flags$ &= -17, t.$flags$ |= 2, va(t, e, r);
328
- } catch (a) {
329
- M(a, t.$hostElement$);
330
- }
331
- return _t = null, null;
332
- }, gn = () => _t, Ea = (t) => {
333
- const e = t.$cmpMeta$.$tagName$, n = t.$hostElement$, r = Oe("postUpdate", e), a = t.$lazyInstance$, i = t.$ancestorComponent$;
334
- xe(a, "componentDidRender"), t.$flags$ & 64 ? (xe(a, "componentDidUpdate"), r()) : (t.$flags$ |= 64, cr(n), xe(a, "componentDidLoad"), r(), t.$onReadyResolve$(n), i || lr()), t.$onInstanceResolve$(n), t.$onRenderResolve$ && (t.$onRenderResolve$(), t.$onRenderResolve$ = void 0), t.$flags$ & 512 && zt(() => pt(t, !1)), t.$flags$ &= -517;
335
- }, vn = (t) => {
336
- {
337
- const e = $e(t), n = e.$hostElement$.isConnected;
338
- return n && (e.$flags$ & 18) === 2 && pt(e, !1), n;
339
- }
340
- }, lr = (t) => {
341
- cr(re.documentElement), zt(() => Xn(et, "appload", { detail: { namespace: Vr } }));
342
- }, xe = (t, e, n) => {
343
- if (t && t[e])
344
- try {
345
- return t[e](n);
346
- } catch (r) {
347
- M(r);
348
- }
349
- }, cr = (t) => t.classList.add("hydrated"), Ta = (t, e) => $e(t).$instanceValues$.get(e), Sa = (t, e, n, r) => {
350
- const a = $e(t), i = a.$hostElement$, o = a.$instanceValues$.get(e), l = a.$flags$, s = a.$lazyInstance$;
351
- n = ua(n, r.$members$[e][0]);
352
- const u = Number.isNaN(o) && Number.isNaN(n), d = n !== o && !u;
353
- if ((!(l & 8) || o === void 0) && d && (a.$instanceValues$.set(e, n), s)) {
354
- if (r.$watchers$ && l & 128) {
355
- const f = r.$watchers$[e];
356
- f && f.map((h) => {
357
- try {
358
- s[h](n, o, e);
359
- } catch (y) {
360
- M(y, i);
361
- }
362
- });
363
- }
364
- (l & 18) === 2 && pt(a, !1);
365
- }
366
- }, ur = (t, e, n) => {
367
- var r;
368
- const a = t.prototype;
369
- if (e.$flags$ & 64 && n & 1 && na.forEach((i) => Object.defineProperty(a, i, {
370
- value(...o) {
371
- const l = $e(this), s = l.$lazyInstance$;
372
- if (!s)
373
- l.$onReadyPromise$.then((u) => {
374
- const d = u[i];
375
- typeof d == "function" && d.call(u, ...o);
376
- });
377
- else {
378
- const u = s[i];
379
- typeof u == "function" && u.call(s, ...o);
380
- }
381
- }
382
- })), e.$members$) {
383
- t.watchers && (e.$watchers$ = t.watchers);
384
- const i = Object.entries(e.$members$);
385
- if (i.map(([o, [l]]) => {
386
- l & 31 || n & 2 && l & 32 ? Object.defineProperty(a, o, {
387
- get() {
388
- return Ta(this, o);
389
- },
390
- set(s) {
391
- Sa(this, o, s, e);
392
- },
393
- configurable: !0,
394
- enumerable: !0
395
- }) : n & 1 && l & 64 && Object.defineProperty(a, o, {
396
- value(...s) {
397
- var u;
398
- const d = $e(this);
399
- return (u = d == null ? void 0 : d.$onInstancePromise$) === null || u === void 0 ? void 0 : u.then(() => {
400
- var f;
401
- return (f = d.$lazyInstance$) === null || f === void 0 ? void 0 : f[o](...s);
402
- });
403
- }
404
- });
405
- }), n & 1) {
406
- const o = /* @__PURE__ */ new Map();
407
- a.attributeChangedCallback = function(l, s, u) {
408
- B.jmp(() => {
409
- var d;
410
- const f = o.get(l);
411
- if (this.hasOwnProperty(f))
412
- u = this[f], delete this[f];
413
- else {
414
- if (a.hasOwnProperty(f) && typeof this[f] == "number" && this[f] == u)
415
- return;
416
- if (f == null) {
417
- const h = $e(this), y = h == null ? void 0 : h.$flags$;
418
- if (y && !(y & 8) && y & 128 && u !== s) {
419
- const p = h.$lazyInstance$, g = (d = e.$watchers$) === null || d === void 0 ? void 0 : d[l];
420
- g == null || g.forEach((b) => {
421
- p[b] != null && p[b].call(p, u, s, l);
422
- });
423
- }
424
- return;
425
- }
426
- }
427
- this[f] = u === null && typeof this[f] == "boolean" ? !1 : u;
428
- });
429
- }, t.observedAttributes = Array.from(/* @__PURE__ */ new Set([
430
- ...Object.keys((r = e.$watchers$) !== null && r !== void 0 ? r : {}),
431
- ...i.filter(
432
- ([l, s]) => s[0] & 15
433
- /* MEMBER_FLAGS.HasAttribute */
434
- ).map(([l, s]) => {
435
- const u = s[1] || l;
436
- return o.set(u, l), u;
437
- })
438
- ]));
439
- }
440
- }
441
- return t;
442
- }, Ca = async (t, e, n, r) => {
443
- let a;
444
- if (!(e.$flags$ & 32)) {
445
- e.$flags$ |= 32;
446
- {
447
- if (a = Aa(n), a.then) {
448
- const s = ea();
449
- a = await a, s();
450
- }
451
- a.isProxied || (n.$watchers$ = a.watchers, ur(
452
- a,
453
- n,
454
- 2
455
- /* PROXY_FLAGS.proxyState */
456
- ), a.isProxied = !0);
457
- const l = Oe("createInstance", n.$tagName$);
458
- e.$flags$ |= 8;
459
- try {
460
- new a(e);
461
- } catch (s) {
462
- M(s);
463
- }
464
- e.$flags$ &= -9, e.$flags$ |= 128, l(), Mt(e.$lazyInstance$);
465
- }
466
- if (a.style) {
467
- let l = a.style;
468
- const s = Qn(n);
469
- if (!lt.has(s)) {
470
- const u = Oe("registerStyles", n.$tagName$);
471
- fa(s, l, !!(n.$flags$ & 1)), u();
472
- }
473
- }
474
- }
475
- const i = e.$ancestorComponent$, o = () => pt(e, !0);
476
- i && i["s-rc"] ? i["s-rc"].push(o) : o();
477
- }, Mt = (t) => {
478
- xe(t, "connectedCallback");
479
- }, xa = (t) => {
480
- if (!(B.$flags$ & 1)) {
481
- const e = $e(t), n = e.$cmpMeta$, r = Oe("connectedCallback", n.$tagName$);
482
- if (e.$flags$ & 1)
483
- dr(t, e, n.$listeners$), e != null && e.$lazyInstance$ ? Mt(e.$lazyInstance$) : e != null && e.$onReadyPromise$ && e.$onReadyPromise$.then(() => Mt(e.$lazyInstance$));
484
- else {
485
- e.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
486
- n.$flags$ & 12 && Oa(t);
487
- {
488
- let a = t;
489
- for (; a = a.parentNode || a.host; )
490
- if (a["s-p"]) {
491
- sr(e, e.$ancestorComponent$ = a);
492
- break;
493
- }
494
- }
495
- n.$members$ && Object.entries(n.$members$).map(([a, [i]]) => {
496
- if (i & 31 && t.hasOwnProperty(a)) {
497
- const o = t[a];
498
- delete t[a], t[a] = o;
499
- }
500
- }), Ca(t, e, n);
501
- }
502
- r();
503
- }
504
- }, Oa = (t) => {
505
- const e = t["s-cr"] = re.createComment("");
506
- e["s-cn"] = !0, t.insertBefore(e, t.firstChild);
507
- }, bn = (t) => {
508
- xe(t, "disconnectedCallback");
509
- }, _a = async (t) => {
510
- if (!(B.$flags$ & 1)) {
511
- const e = $e(t);
512
- e.$rmListeners$ && (e.$rmListeners$.map((n) => n()), e.$rmListeners$ = void 0), e != null && e.$lazyInstance$ ? bn(e.$lazyInstance$) : e != null && e.$onReadyPromise$ && e.$onReadyPromise$.then(() => bn(e.$lazyInstance$));
513
- }
514
- }, Da = (t, e = {}) => {
515
- var n;
516
- const r = Oe(), a = [], i = e.exclude || [], o = et.customElements, l = re.head, s = /* @__PURE__ */ l.querySelector("meta[charset]"), u = /* @__PURE__ */ re.createElement("style"), d = [];
517
- let f, h = !0;
518
- Object.assign(B, e), B.$resourcesUrl$ = new URL(e.resourcesUrl || "./", re.baseURI).href;
519
- let y = !1;
520
- if (t.map((p) => {
521
- p[1].map((g) => {
522
- var b;
523
- const T = {
524
- $flags$: g[0],
525
- $tagName$: g[1],
526
- $members$: g[2],
527
- $listeners$: g[3]
528
- };
529
- T.$flags$ & 4 && (y = !0), T.$members$ = g[2], T.$listeners$ = g[3], T.$watchers$ = (b = g[4]) !== null && b !== void 0 ? b : {};
530
- const L = T.$tagName$, V = class extends HTMLElement {
531
- // StencilLazyHost
532
- constructor(ie) {
533
- super(ie), ie = this, Ia(ie, T), T.$flags$ & 1 && ie.attachShadow({ mode: "open" });
534
- }
535
- connectedCallback() {
536
- f && (clearTimeout(f), f = null), h ? d.push(this) : B.jmp(() => xa(this));
537
- }
538
- disconnectedCallback() {
539
- B.jmp(() => _a(this));
540
- }
541
- componentOnReady() {
542
- return $e(this).$onReadyPromise$;
543
- }
544
- };
545
- T.$flags$ & 64 && (V.formAssociated = !0), T.$lazyBundleId$ = p[0], !i.includes(L) && !o.get(L) && (a.push(L), o.define(L, ur(
546
- V,
547
- T,
548
- 1
549
- /* PROXY_FLAGS.isElementConstructor */
550
- )));
551
- });
552
- }), y && (u.innerHTML += Gn), u.innerHTML += a + ta, u.innerHTML.length) {
553
- u.setAttribute("data-styles", "");
554
- const p = (n = B.$nonce$) !== null && n !== void 0 ? n : Zn(re);
555
- p != null && u.setAttribute("nonce", p), l.insertBefore(u, s ? s.nextSibling : l.firstChild);
556
- }
557
- h = !1, d.length ? d.map((p) => p.connectedCallback()) : B.jmp(() => f = setTimeout(lr, 30)), r();
558
- }, yi = (t, e) => e, dr = (t, e, n, r) => {
559
- n && n.map(([a, i, o]) => {
560
- const l = Ra(t, a), s = Ma(e, o), u = La(a);
561
- B.ael(l, i, s, u), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => B.rel(l, i, s, u));
562
- });
563
- }, Ma = (t, e) => (n) => {
564
- try {
565
- t.$flags$ & 256 ? t.$lazyInstance$[e](n) : (t.$queuedListeners$ = t.$queuedListeners$ || []).push([e, n]);
566
- } catch (r) {
567
- M(r);
568
- }
569
- }, Ra = (t, e) => e & 4 ? re : e & 8 ? et : e & 16 ? re.body : t, La = (t) => Na ? {
570
- passive: (t & 1) !== 0,
571
- capture: (t & 2) !== 0
572
- } : (t & 2) !== 0, pi = (t) => B.$nonce$ = t, Wt = /* @__PURE__ */ new WeakMap(), $e = (t) => Wt.get(t), mi = (t, e) => Wt.set(e.$lazyInstance$ = t, e), Ia = (t, e) => {
573
- const n = {
574
- $flags$: 0,
575
- $hostElement$: t,
576
- $cmpMeta$: e,
577
- $instanceValues$: /* @__PURE__ */ new Map()
578
- };
579
- return n.$onInstancePromise$ = new Promise((r) => n.$onInstanceResolve$ = r), n.$onReadyPromise$ = new Promise((r) => n.$onReadyResolve$ = r), t["s-p"] = [], t["s-rc"] = [], dr(t, n, e.$listeners$), Wt.set(t, n);
580
- }, $n = (t, e) => e in t, M = (t, e) => (0, console.error)(t, e), Et = /* @__PURE__ */ new Map(), Aa = (t, e, n) => {
581
- const r = t.$tagName$.replace(/-/g, "_"), a = t.$lazyBundleId$, i = Et.get(a);
582
- if (i)
583
- return i[r];
584
- if (!n || !qn.hotModuleReplacement) {
585
- const o = (l) => (Et.set(a, l), l[r]);
586
- switch (a) {
587
- case "document-refresh-icon":
588
- return import(
589
- /* webpackMode: "lazy" */
590
- "./document-refresh-icon.entry-32c75418.js"
591
- ).then(o, M);
592
- case "nylas-additional-participants":
593
- return import(
594
- /* webpackMode: "lazy" */
595
- "./nylas-additional-participants.entry-4b214308.js"
596
- ).then(o, M);
597
- case "nylas-if-state":
598
- return import(
599
- /* webpackMode: "lazy" */
600
- "./nylas-if-state.entry-f8abd025.js"
601
- ).then(o, M);
602
- case "nylas-list-folders":
603
- return import(
604
- /* webpackMode: "lazy" */
605
- "./nylas-list-folders.entry-78cc680e.js"
606
- ).then(o, M);
607
- case "nylas-list-threads":
608
- return import(
609
- /* webpackMode: "lazy" */
610
- "./nylas-list-threads.entry-217088de.js"
611
- ).then(o, M);
612
- case "nylas-login":
613
- return import(
614
- /* webpackMode: "lazy" */
615
- "./nylas-login.entry-e4d57589.js"
616
- ).then(o, M);
617
- case "nylas-mailbox":
618
- return import(
619
- /* webpackMode: "lazy" */
620
- "./nylas-mailbox.entry-7e6b4791.js"
621
- ).then(o, M);
622
- case "nylas-mailbox-pagination":
623
- return import(
624
- /* webpackMode: "lazy" */
625
- "./nylas-mailbox-pagination.entry-069673aa.js"
626
- ).then(o, M);
627
- case "nylas-mailbox-toolbar-button":
628
- return import(
629
- /* webpackMode: "lazy" */
630
- "./nylas-mailbox-toolbar-button.entry-03c5f5c8.js"
631
- ).then(o, M);
632
- case "nylas-provider":
633
- return import(
634
- /* webpackMode: "lazy" */
635
- "./nylas-provider.entry-498a7be9.js"
636
- ).then(o, M);
637
- case "nylas-scheduler-editor":
638
- return import(
639
- /* webpackMode: "lazy" */
640
- "./nylas-scheduler-editor.entry-4de2bb97.js"
641
- ).then(o, M);
642
- case "nylas-scheduling":
643
- return import(
644
- /* webpackMode: "lazy" */
645
- "./nylas-scheduling.entry-4e18ab43.js"
646
- ).then(o, M);
647
- case "nylas-threads-refresh":
648
- return import(
649
- /* webpackMode: "lazy" */
650
- "./nylas-threads-refresh.entry-fc2d8028.js"
651
- ).then(o, M);
652
- case "nylas-threads-search":
653
- return import(
654
- /* webpackMode: "lazy" */
655
- "./nylas-threads-search.entry-f92f7e30.js"
656
- ).then(o, M);
657
- case "nylas-view-thread":
658
- return import(
659
- /* webpackMode: "lazy" */
660
- "./nylas-view-thread.entry-2f1474cf.js"
661
- ).then(o, M);
662
- case "people-icon":
663
- return import(
664
- /* webpackMode: "lazy" */
665
- "./people-icon.entry-b4778e15.js"
666
- ).then(o, M);
667
- case "archive-icon_7":
668
- return import(
669
- /* webpackMode: "lazy" */
670
- "./archive-icon_7.entry-e2954750.js"
671
- ).then(o, M);
672
- case "arrow-icon":
673
- return import(
674
- /* webpackMode: "lazy" */
675
- "./arrow-icon.entry-03a85113.js"
676
- ).then(o, M);
677
- case "forward-icon_6":
678
- return import(
679
- /* webpackMode: "lazy" */
680
- "./forward-icon_6.entry-7fab04d7.js"
681
- ).then(o, M);
682
- case "google-logo-icon_4":
683
- return import(
684
- /* webpackMode: "lazy" */
685
- "./google-logo-icon_4.entry-5eca9538.js"
686
- ).then(o, M);
687
- case "nylas-booked-event-card_10":
688
- return import(
689
- /* webpackMode: "lazy" */
690
- "./nylas-booked-event-card_10.entry-e93bc290.js"
691
- ).then(o, M);
692
- case "bold-icon_3":
693
- return import(
694
- /* webpackMode: "lazy" */
695
- "./bold-icon_3.entry-70ffa7f0.js"
696
- ).then(o, M);
697
- case "calendar-check-icon_2":
698
- return import(
699
- /* webpackMode: "lazy" */
700
- "./calendar-check-icon_2.entry-f633f7a6.js"
701
- ).then(o, M);
702
- case "add-circle-icon_22":
703
- return import(
704
- /* webpackMode: "lazy" */
705
- "./add-circle-icon_22.entry-bda9be31.js"
706
- ).then(o, M);
707
- case "play-icon_2":
708
- return import(
709
- /* webpackMode: "lazy" */
710
- "./play-icon_2.entry-24ffa01f.js"
711
- ).then(o, M);
712
- case "refresh-icon":
713
- return import(
714
- /* webpackMode: "lazy" */
715
- "./refresh-icon.entry-8395104b.js"
716
- ).then(o, M);
717
- case "translate-icon":
718
- return import(
719
- /* webpackMode: "lazy" */
720
- "./translate-icon.entry-d847f706.js"
721
- ).then(o, M);
722
- case "warning-icon":
723
- return import(
724
- /* webpackMode: "lazy" */
725
- "./warning-icon.entry-b5db0151.js"
726
- ).then(o, M);
727
- case "calendar-cancel-icon":
728
- return import(
729
- /* webpackMode: "lazy" */
730
- "./calendar-cancel-icon.entry-6bbc119f.js"
731
- ).then(o, M);
732
- case "calendar-icon":
733
- return import(
734
- /* webpackMode: "lazy" */
735
- "./calendar-icon.entry-62b82c27.js"
736
- ).then(o, M);
737
- case "time-period-selector":
738
- return import(
739
- /* webpackMode: "lazy" */
740
- "./time-period-selector.entry-1e849c2e.js"
741
- ).then(o, M);
742
- case "nylas-form-card":
743
- return import(
744
- /* webpackMode: "lazy" */
745
- "./nylas-form-card.entry-0748fdd5.js"
746
- ).then(o, M);
747
- case "loading-icon":
748
- return import(
749
- /* webpackMode: "lazy" */
750
- "./loading-icon.entry-b563b2e6.js"
751
- ).then(o, M);
752
- case "globe-icon":
753
- return import(
754
- /* webpackMode: "lazy" */
755
- "./globe-icon.entry-b8e1efae.js"
756
- ).then(o, M);
757
- case "close-icon":
758
- return import(
759
- /* webpackMode: "lazy" */
760
- "./close-icon.entry-6a8ea4a7.js"
761
- ).then(o, M);
762
- case "info-icon_2":
763
- return import(
764
- /* webpackMode: "lazy" */
765
- "./info-icon_2.entry-6bbfa6dc.js"
766
- ).then(o, M);
767
- case "chevron-icon_3":
768
- return import(
769
- /* webpackMode: "lazy" */
770
- "./chevron-icon_3.entry-74425e1f.js"
771
- ).then(o, M);
772
- }
773
- }
774
- return import(
775
- /* @vite-ignore */
776
- /* webpackInclude: /\.entry\.js$/ */
777
- /* webpackExclude: /\.system\.entry\.js$/ */
778
- /* webpackMode: "lazy" */
779
- `./${a}.entry.js`
780
- ).then((o) => (Et.set(a, o), o[r]), M);
781
- }, lt = /* @__PURE__ */ new Map(), et = typeof window < "u" ? window : {}, re = et.document || { head: {} }, B = {
782
- $flags$: 0,
783
- $resourcesUrl$: "",
784
- jmp: (t) => t(),
785
- raf: (t) => requestAnimationFrame(t),
786
- ael: (t, e, n, r) => t.addEventListener(e, n, r),
787
- rel: (t, e, n, r) => t.removeEventListener(e, n, r),
788
- ce: (t, e) => new CustomEvent(t, e)
789
- }, Na = /* @__PURE__ */ (() => {
790
- let t = !1;
791
- try {
792
- re.addEventListener("e", null, Object.defineProperty({}, "passive", {
793
- get() {
794
- t = !0;
795
- }
796
- }));
797
- } catch {
798
- }
799
- return t;
800
- })(), Ua = (t) => Promise.resolve(t), Pa = /* @__PURE__ */ (() => {
801
- try {
802
- return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
803
- } catch {
804
- }
805
- return !1;
806
- })(), wn = [], fr = [], Ya = (t, e) => (n) => {
807
- t.push(n), Dt || (Dt = !0, e && B.$flags$ & 4 ? zt(Rt) : B.raf(Rt));
808
- }, kn = (t) => {
809
- for (let e = 0; e < t.length; e++)
810
- try {
811
- t[e](performance.now());
812
- } catch (n) {
813
- M(n);
814
- }
815
- t.length = 0;
816
- }, Rt = () => {
817
- kn(wn), kn(fr), (Dt = wn.length > 0) && B.raf(Rt);
818
- }, zt = (t) => Ua().then(t), Ha = /* @__PURE__ */ Ya(fr, !0), ja = (t, e, n) => {
819
- const r = t.get(e);
820
- r ? r.includes(n) || r.push(n) : t.set(e, [n]);
821
- }, Fa = (t, e) => {
822
- let n;
823
- return (...r) => {
824
- n && clearTimeout(n), n = setTimeout(() => {
825
- n = 0, t(...r);
826
- }, e);
827
- };
828
- }, Wa = (t) => !("isConnected" in t) || t.isConnected, En = Fa((t) => {
829
- for (let e of t.keys())
830
- t.set(e, t.get(e).filter(Wa));
831
- }, 2e3), za = () => {
832
- if (typeof gn != "function")
833
- return {};
834
- const t = /* @__PURE__ */ new Map();
835
- return {
836
- dispose: () => t.clear(),
837
- get: (e) => {
838
- const n = gn();
839
- n && ja(t, e, n);
840
- },
841
- set: (e) => {
842
- const n = t.get(e);
843
- n && t.set(e, n.filter(vn)), En(t);
844
- },
845
- reset: () => {
846
- t.forEach((e) => e.forEach(vn)), En(t);
847
- }
848
- };
849
- }, Tt = (t) => typeof t == "function" ? t() : t, Ba = (t, e = (n, r) => n !== r) => {
850
- const n = Tt(t);
851
- let r = new Map(Object.entries(n ?? {}));
852
- const a = {
853
- dispose: [],
854
- get: [],
855
- set: [],
856
- reset: []
857
- }, i = () => {
858
- var p;
859
- r = new Map(Object.entries((p = Tt(t)) !== null && p !== void 0 ? p : {})), a.reset.forEach((g) => g());
860
- }, o = () => {
861
- a.dispose.forEach((p) => p()), i();
862
- }, l = (p) => (a.get.forEach((g) => g(p)), r.get(p)), s = (p, g) => {
863
- const b = r.get(p);
864
- e(g, b, p) && (r.set(p, g), a.set.forEach((T) => T(p, g, b)));
865
- }, u = typeof Proxy > "u" ? {} : new Proxy(n, {
866
- get(p, g) {
867
- return l(g);
868
- },
869
- ownKeys(p) {
870
- return Array.from(r.keys());
871
- },
872
- getOwnPropertyDescriptor() {
873
- return {
874
- enumerable: !0,
875
- configurable: !0
876
- };
877
- },
878
- has(p, g) {
879
- return r.has(g);
880
- },
881
- set(p, g, b) {
882
- return s(g, b), !0;
883
- }
884
- }), d = (p, g) => (a[p].push(g), () => {
885
- qa(a[p], g);
886
- });
887
- return {
888
- state: u,
889
- get: l,
890
- set: s,
891
- on: d,
892
- onChange: (p, g) => {
893
- const b = d("set", (L, V) => {
894
- L === p && g(V);
895
- }), T = d("reset", () => g(Tt(t)[p]));
896
- return () => {
897
- b(), T();
898
- };
899
- },
900
- use: (...p) => {
901
- const g = p.reduce((b, T) => (T.set && b.push(d("set", T.set)), T.get && b.push(d("get", T.get)), T.reset && b.push(d("reset", T.reset)), T.dispose && b.push(d("dispose", T.dispose)), b), []);
902
- return () => g.forEach((b) => b());
903
- },
904
- dispose: o,
905
- reset: i,
906
- forceUpdate: (p) => {
907
- const g = r.get(p);
908
- a.set.forEach((b) => b(p, g, g));
909
- }
910
- };
911
- }, qa = (t, e) => {
912
- const n = t.indexOf(e);
913
- n >= 0 && (t[n] = t[t.length - 1], t.length--);
914
- }, Ka = (t, e) => {
915
- const n = Ba(t, e);
916
- return n.use(za()), n;
917
- };
918
- var Ga = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
919
- function gi(t) {
920
- if (t.__esModule)
921
- return t;
922
- var e = Object.defineProperty({}, "__esModule", { value: !0 });
923
- return Object.keys(t).forEach(function(n) {
924
- var r = Object.getOwnPropertyDescriptor(t, n);
925
- Object.defineProperty(e, n, r.get ? r : {
926
- enumerable: !0,
927
- get: function() {
928
- return t[n];
929
- }
930
- });
931
- }), e;
932
- }
933
- var hr = { exports: {} };
934
- (function(t, e) {
935
- (function(n, r) {
936
- t.exports = r();
937
- })(Ga, function() {
938
- var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", o = "second", l = "minute", s = "hour", u = "day", d = "week", f = "month", h = "quarter", y = "year", p = "date", g = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|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, L = { 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(C) {
939
- var E = ["th", "st", "nd", "rd"], w = C % 100;
940
- return "[" + C + (E[(w - 20) % 10] || E[w] || E[0]) + "]";
941
- } }, V = function(C, E, w) {
942
- var _ = String(C);
943
- return !_ || _.length >= E ? C : "" + Array(E + 1 - _.length).join(w) + C;
944
- }, ie = { s: V, z: function(C) {
945
- var E = -C.utcOffset(), w = Math.abs(E), _ = Math.floor(w / 60), S = w % 60;
946
- return (E <= 0 ? "+" : "-") + V(_, 2, "0") + ":" + V(S, 2, "0");
947
- }, m: function C(E, w) {
948
- if (E.date() < w.date())
949
- return -C(w, E);
950
- var _ = 12 * (w.year() - E.year()) + (w.month() - E.month()), S = E.clone().add(_, f), R = w - S < 0, D = E.clone().add(_ + (R ? -1 : 1), f);
951
- return +(-(_ + (w - S) / (R ? S - D : D - S)) || 0);
952
- }, a: function(C) {
953
- return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
954
- }, p: function(C) {
955
- return { M: f, y, w: d, d: u, D: p, h: s, m: l, s: o, ms: i, Q: h }[C] || String(C || "").toLowerCase().replace(/s$/, "");
956
- }, u: function(C) {
957
- return C === void 0;
958
- } }, he = "en", ee = {};
959
- ee[he] = L;
960
- var Re = function(C) {
961
- return C instanceof Ne;
962
- }, Ae = function C(E, w, _) {
963
- var S;
964
- if (!E)
965
- return he;
966
- if (typeof E == "string") {
967
- var R = E.toLowerCase();
968
- ee[R] && (S = R), w && (ee[R] = w, S = R);
969
- var D = E.split("-");
970
- if (!S && D.length > 1)
971
- return C(D[0]);
972
- } else {
973
- var P = E.name;
974
- ee[P] = E, S = P;
975
- }
976
- return !_ && S && (he = S), S || !_ && he;
977
- }, q = function(C, E) {
978
- if (Re(C))
979
- return C.clone();
980
- var w = typeof E == "object" ? E : {};
981
- return w.date = C, w.args = arguments, new Ne(w);
982
- }, H = ie;
983
- H.l = Ae, H.i = Re, H.w = function(C, E) {
984
- return q(C, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
985
- };
986
- var Ne = function() {
987
- function C(w) {
988
- this.$L = Ae(w.locale, null, !0), this.parse(w);
989
- }
990
- var E = C.prototype;
991
- return E.parse = function(w) {
992
- this.$d = function(_) {
993
- var S = _.date, R = _.utc;
994
- if (S === null)
995
- return /* @__PURE__ */ new Date(NaN);
996
- if (H.u(S))
997
- return /* @__PURE__ */ new Date();
998
- if (S instanceof Date)
999
- return new Date(S);
1000
- if (typeof S == "string" && !/Z$/i.test(S)) {
1001
- var D = S.match(b);
1002
- if (D) {
1003
- var P = D[2] - 1 || 0, z = (D[7] || "0").substring(0, 3);
1004
- return R ? new Date(Date.UTC(D[1], P, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, z)) : new Date(D[1], P, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, z);
1005
- }
1006
- }
1007
- return new Date(S);
1008
- }(w), this.$x = w.x || {}, this.init();
1009
- }, E.init = function() {
1010
- var w = this.$d;
1011
- this.$y = w.getFullYear(), this.$M = w.getMonth(), this.$D = w.getDate(), this.$W = w.getDay(), this.$H = w.getHours(), this.$m = w.getMinutes(), this.$s = w.getSeconds(), this.$ms = w.getMilliseconds();
1012
- }, E.$utils = function() {
1013
- return H;
1014
- }, E.isValid = function() {
1015
- return this.$d.toString() !== g;
1016
- }, E.isSame = function(w, _) {
1017
- var S = q(w);
1018
- return this.startOf(_) <= S && S <= this.endOf(_);
1019
- }, E.isAfter = function(w, _) {
1020
- return q(w) < this.startOf(_);
1021
- }, E.isBefore = function(w, _) {
1022
- return this.endOf(_) < q(w);
1023
- }, E.$g = function(w, _, S) {
1024
- return H.u(w) ? this[_] : this.set(S, w);
1025
- }, E.unix = function() {
1026
- return Math.floor(this.valueOf() / 1e3);
1027
- }, E.valueOf = function() {
1028
- return this.$d.getTime();
1029
- }, E.startOf = function(w, _) {
1030
- var S = this, R = !!H.u(_) || _, D = H.p(w), P = function(pe, X) {
1031
- var se = H.w(S.$u ? Date.UTC(S.$y, X, pe) : new Date(S.$y, X, pe), S);
1032
- return R ? se : se.endOf(u);
1033
- }, z = function(pe, X) {
1034
- return H.w(S.toDate()[pe].apply(S.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), S);
1035
- }, W = this.$W, J = this.$M, ge = this.$D, ye = "set" + (this.$u ? "UTC" : "");
1036
- switch (D) {
1037
- case y:
1038
- return R ? P(1, 0) : P(31, 11);
1039
- case f:
1040
- return R ? P(1, J) : P(0, J + 1);
1041
- case d:
1042
- var ke = this.$locale().weekStart || 0, Ee = (W < ke ? W + 7 : W) - ke;
1043
- return P(R ? ge - Ee : ge + (6 - Ee), J);
1044
- case u:
1045
- case p:
1046
- return z(ye + "Hours", 0);
1047
- case s:
1048
- return z(ye + "Minutes", 1);
1049
- case l:
1050
- return z(ye + "Seconds", 2);
1051
- case o:
1052
- return z(ye + "Milliseconds", 3);
1053
- default:
1054
- return this.clone();
1055
- }
1056
- }, E.endOf = function(w) {
1057
- return this.startOf(w, !1);
1058
- }, E.$set = function(w, _) {
1059
- var S, R = H.p(w), D = "set" + (this.$u ? "UTC" : ""), P = (S = {}, S[u] = D + "Date", S[p] = D + "Date", S[f] = D + "Month", S[y] = D + "FullYear", S[s] = D + "Hours", S[l] = D + "Minutes", S[o] = D + "Seconds", S[i] = D + "Milliseconds", S)[R], z = R === u ? this.$D + (_ - this.$W) : _;
1060
- if (R === f || R === y) {
1061
- var W = this.clone().set(p, 1);
1062
- W.$d[P](z), W.init(), this.$d = W.set(p, Math.min(this.$D, W.daysInMonth())).$d;
1063
- } else
1064
- P && this.$d[P](z);
1065
- return this.init(), this;
1066
- }, E.set = function(w, _) {
1067
- return this.clone().$set(w, _);
1068
- }, E.get = function(w) {
1069
- return this[H.p(w)]();
1070
- }, E.add = function(w, _) {
1071
- var S, R = this;
1072
- w = Number(w);
1073
- var D = H.p(_), P = function(J) {
1074
- var ge = q(R);
1075
- return H.w(ge.date(ge.date() + Math.round(J * w)), R);
1076
- };
1077
- if (D === f)
1078
- return this.set(f, this.$M + w);
1079
- if (D === y)
1080
- return this.set(y, this.$y + w);
1081
- if (D === u)
1082
- return P(1);
1083
- if (D === d)
1084
- return P(7);
1085
- var z = (S = {}, S[l] = r, S[s] = a, S[o] = n, S)[D] || 1, W = this.$d.getTime() + w * z;
1086
- return H.w(W, this);
1087
- }, E.subtract = function(w, _) {
1088
- return this.add(-1 * w, _);
1089
- }, E.format = function(w) {
1090
- var _ = this, S = this.$locale();
1091
- if (!this.isValid())
1092
- return S.invalidDate || g;
1093
- var R = w || "YYYY-MM-DDTHH:mm:ssZ", D = H.z(this), P = this.$H, z = this.$m, W = this.$M, J = S.weekdays, ge = S.months, ye = function(X, se, qe, Le) {
1094
- return X && (X[se] || X(_, R)) || qe[se].slice(0, Le);
1095
- }, ke = function(X) {
1096
- return H.s(P % 12 || 12, X, "0");
1097
- }, Ee = S.meridiem || function(X, se, qe) {
1098
- var Le = X < 12 ? "AM" : "PM";
1099
- return qe ? Le.toLowerCase() : Le;
1100
- }, pe = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: W + 1, MM: H.s(W + 1, 2, "0"), MMM: ye(S.monthsShort, W, ge, 3), MMMM: ye(ge, W), D: this.$D, DD: H.s(this.$D, 2, "0"), d: String(this.$W), dd: ye(S.weekdaysMin, this.$W, J, 2), ddd: ye(S.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(P), HH: H.s(P, 2, "0"), h: ke(1), hh: ke(2), a: Ee(P, z, !0), A: Ee(P, z, !1), m: String(z), mm: H.s(z, 2, "0"), s: String(this.$s), ss: H.s(this.$s, 2, "0"), SSS: H.s(this.$ms, 3, "0"), Z: D };
1101
- return R.replace(T, function(X, se) {
1102
- return se || pe[X] || D.replace(":", "");
1103
- });
1104
- }, E.utcOffset = function() {
1105
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1106
- }, E.diff = function(w, _, S) {
1107
- var R, D = H.p(_), P = q(w), z = (P.utcOffset() - this.utcOffset()) * r, W = this - P, J = H.m(this, P);
1108
- return J = (R = {}, R[y] = J / 12, R[f] = J, R[h] = J / 3, R[d] = (W - z) / 6048e5, R[u] = (W - z) / 864e5, R[s] = W / a, R[l] = W / r, R[o] = W / n, R)[D] || W, S ? J : H.a(J);
1109
- }, E.daysInMonth = function() {
1110
- return this.endOf(f).$D;
1111
- }, E.$locale = function() {
1112
- return ee[this.$L];
1113
- }, E.locale = function(w, _) {
1114
- if (!w)
1115
- return this.$L;
1116
- var S = this.clone(), R = Ae(w, _, !0);
1117
- return R && (S.$L = R), S;
1118
- }, E.clone = function() {
1119
- return H.w(this.$d, this);
1120
- }, E.toDate = function() {
1121
- return new Date(this.valueOf());
1122
- }, E.toJSON = function() {
1123
- return this.isValid() ? this.toISOString() : null;
1124
- }, E.toISOString = function() {
1125
- return this.$d.toISOString();
1126
- }, E.toString = function() {
1127
- return this.$d.toUTCString();
1128
- }, C;
1129
- }(), Be = Ne.prototype;
1130
- return q.prototype = Be, [["$ms", i], ["$s", o], ["$m", l], ["$H", s], ["$W", u], ["$M", f], ["$y", y], ["$D", p]].forEach(function(C) {
1131
- Be[C[1]] = function(E) {
1132
- return this.$g(E, C[0], C[1]);
1133
- };
1134
- }), q.extend = function(C, E) {
1135
- return C.$i || (C(E, Ne, q), C.$i = !0), q;
1136
- }, q.locale = Ae, q.isDayjs = Re, q.unix = function(C) {
1137
- return q(1e3 * C);
1138
- }, q.en = ee[he], q.Ls = ee, q.p = {}, q;
1139
- });
1140
- })(hr);
1141
- const yr = hr.exports;
1142
- var Lt = [
1143
- "MO",
1144
- "TU",
1145
- "WE",
1146
- "TH",
1147
- "FR",
1148
- "SA",
1149
- "SU"
1150
- ], oe = (
1151
- /** @class */
1152
- function() {
1153
- function t(e, n) {
1154
- if (n === 0)
1155
- throw new Error("Can't create weekday with n == 0");
1156
- this.weekday = e, this.n = n;
1157
- }
1158
- return t.fromStr = function(e) {
1159
- return new t(Lt.indexOf(e));
1160
- }, t.prototype.nth = function(e) {
1161
- return this.n === e ? this : new t(this.weekday, e);
1162
- }, t.prototype.equals = function(e) {
1163
- return this.weekday === e.weekday && this.n === e.n;
1164
- }, t.prototype.toString = function() {
1165
- var e = Lt[this.weekday];
1166
- return this.n && (e = (this.n > 0 ? "+" : "") + String(this.n) + e), e;
1167
- }, t.prototype.getJsWeekday = function() {
1168
- return this.weekday === 6 ? 0 : this.weekday + 1;
1169
- }, t;
1170
- }()
1171
- ), Z = function(t) {
1172
- return t != null;
1173
- }, ve = function(t) {
1174
- return typeof t == "number";
1175
- }, Tn = function(t) {
1176
- return typeof t == "string" && Lt.includes(t);
1177
- }, ce = Array.isArray, we = function(t, e) {
1178
- e === void 0 && (e = t), arguments.length === 1 && (e = t, t = 0);
1179
- for (var n = [], r = t; r < e; r++)
1180
- n.push(r);
1181
- return n;
1182
- }, N = function(t, e) {
1183
- var n = 0, r = [];
1184
- if (ce(t))
1185
- for (; n < e; n++)
1186
- r[n] = [].concat(t);
1187
- else
1188
- for (; n < e; n++)
1189
- r[n] = t;
1190
- return r;
1191
- }, Za = function(t) {
1192
- return ce(t) ? t : [t];
1193
- };
1194
- function Ye(t, e, n) {
1195
- n === void 0 && (n = " ");
1196
- var r = String(t);
1197
- return e = e >> 0, r.length > e ? String(r) : (e = e - r.length, e > n.length && (n += N(n, e / n.length)), n.slice(0, e) + String(r));
1198
- }
1199
- var Ja = function(t, e, n) {
1200
- var r = t.split(e);
1201
- return n ? r.slice(0, n).concat([r.slice(n).join(e)]) : r;
1202
- }, fe = function(t, e) {
1203
- var n = t % e;
1204
- return n * e < 0 ? n + e : n;
1205
- }, St = function(t, e) {
1206
- return { div: Math.floor(t / e), mod: fe(t, e) };
1207
- }, be = function(t) {
1208
- return !Z(t) || t.length === 0;
1209
- }, Q = function(t) {
1210
- return !be(t);
1211
- }, F = function(t, e) {
1212
- return Q(t) && t.indexOf(e) !== -1;
1213
- }, Ie = function(t, e, n, r, a, i) {
1214
- return r === void 0 && (r = 0), a === void 0 && (a = 0), i === void 0 && (i = 0), new Date(Date.UTC(t, e - 1, n, r, a, i));
1215
- }, Xa = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], pr = 1e3 * 60 * 60 * 24, mr = 9999, gr = Ie(1970, 1, 1), Qa = [6, 0, 1, 2, 3, 4, 5], Xe = function(t) {
1216
- return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0;
1217
- }, vr = function(t) {
1218
- return t instanceof Date;
1219
- }, Je = function(t) {
1220
- return vr(t) && !isNaN(t.getTime());
1221
- }, Sn = function(t) {
1222
- return t.getTimezoneOffset() * 60 * 1e3;
1223
- }, Va = function(t, e) {
1224
- var n = t.getTime() - Sn(t), r = e.getTime() - Sn(e), a = n - r;
1225
- return Math.round(a / pr);
1226
- }, It = function(t) {
1227
- return Va(t, gr);
1228
- }, br = function(t) {
1229
- return new Date(gr.getTime() + t * pr);
1230
- }, eo = function(t) {
1231
- var e = t.getUTCMonth();
1232
- return e === 1 && Xe(t.getUTCFullYear()) ? 29 : Xa[e];
1233
- }, We = function(t) {
1234
- return Qa[t.getUTCDay()];
1235
- }, Cn = function(t, e) {
1236
- var n = Ie(t, e + 1, 1);
1237
- return [We(n), eo(n)];
1238
- }, $r = function(t, e) {
1239
- return e = e || t, new Date(Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
1240
- }, At = function(t) {
1241
- var e = new Date(t.getTime());
1242
- return e;
1243
- }, xn = function(t) {
1244
- for (var e = [], n = 0; n < t.length; n++)
1245
- e.push(At(t[n]));
1246
- return e;
1247
- }, Ve = function(t) {
1248
- t.sort(function(e, n) {
1249
- return e.getTime() - n.getTime();
1250
- });
1251
- }, Bt = function(t, e) {
1252
- e === void 0 && (e = !0);
1253
- var n = new Date(t);
1254
- return [
1255
- Ye(n.getUTCFullYear().toString(), 4, "0"),
1256
- Ye(n.getUTCMonth() + 1, 2, "0"),
1257
- Ye(n.getUTCDate(), 2, "0"),
1258
- "T",
1259
- Ye(n.getUTCHours(), 2, "0"),
1260
- Ye(n.getUTCMinutes(), 2, "0"),
1261
- Ye(n.getUTCSeconds(), 2, "0"),
1262
- e ? "Z" : ""
1263
- ].join("");
1264
- }, qt = function(t) {
1265
- var e = /^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/, n = e.exec(t);
1266
- if (!n)
1267
- throw new Error("Invalid UNTIL value: ".concat(t));
1268
- return new Date(Date.UTC(parseInt(n[1], 10), parseInt(n[2], 10) - 1, parseInt(n[3], 10), parseInt(n[5], 10) || 0, parseInt(n[6], 10) || 0, parseInt(n[7], 10) || 0));
1269
- }, On = function(t, e) {
1270
- var n = t.toLocaleString("sv-SE", { timeZone: e });
1271
- return n.replace(" ", "T") + "Z";
1272
- }, to = function(t, e) {
1273
- var n = Intl.DateTimeFormat().resolvedOptions().timeZone, r = new Date(On(t, n)), a = new Date(On(t, e ?? "UTC")), i = a.getTime() - r.getTime();
1274
- return new Date(t.getTime() - i);
1275
- }, Fe = (
1276
- /** @class */
1277
- function() {
1278
- function t(e, n) {
1279
- this.minDate = null, this.maxDate = null, this._result = [], this.total = 0, this.method = e, this.args = n, e === "between" ? (this.maxDate = n.inc ? n.before : new Date(n.before.getTime() - 1), this.minDate = n.inc ? n.after : new Date(n.after.getTime() + 1)) : e === "before" ? this.maxDate = n.inc ? n.dt : new Date(n.dt.getTime() - 1) : e === "after" && (this.minDate = n.inc ? n.dt : new Date(n.dt.getTime() + 1));
1280
- }
1281
- return t.prototype.accept = function(e) {
1282
- ++this.total;
1283
- var n = this.minDate && e < this.minDate, r = this.maxDate && e > this.maxDate;
1284
- if (this.method === "between") {
1285
- if (n)
1286
- return !0;
1287
- if (r)
1288
- return !1;
1289
- } else if (this.method === "before") {
1290
- if (r)
1291
- return !1;
1292
- } else if (this.method === "after")
1293
- return n ? !0 : (this.add(e), !1);
1294
- return this.add(e);
1295
- }, t.prototype.add = function(e) {
1296
- return this._result.push(e), !0;
1297
- }, t.prototype.getValue = function() {
1298
- var e = this._result;
1299
- switch (this.method) {
1300
- case "all":
1301
- case "between":
1302
- return e;
1303
- case "before":
1304
- case "after":
1305
- default:
1306
- return e.length ? e[e.length - 1] : null;
1307
- }
1308
- }, t.prototype.clone = function() {
1309
- return new t(this.method, this.args);
1310
- }, t;
1311
- }()
1312
- ), Nt = function(t, e) {
1313
- return Nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
1314
- n.__proto__ = r;
1315
- } || function(n, r) {
1316
- for (var a in r)
1317
- Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
1318
- }, Nt(t, e);
1319
- };
1320
- function Kt(t, e) {
1321
- if (typeof e != "function" && e !== null)
1322
- throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
1323
- Nt(t, e);
1324
- function n() {
1325
- this.constructor = t;
1326
- }
1327
- t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
1328
- }
1329
- var ue = function() {
1330
- return ue = Object.assign || function(e) {
1331
- for (var n, r = 1, a = arguments.length; r < a; r++) {
1332
- n = arguments[r];
1333
- for (var i in n)
1334
- Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
1335
- }
1336
- return e;
1337
- }, ue.apply(this, arguments);
1338
- };
1339
- function $(t, e, n) {
1340
- if (n || arguments.length === 2)
1341
- for (var r = 0, a = e.length, i; r < a; r++)
1342
- (i || !(r in e)) && (i || (i = Array.prototype.slice.call(e, 0, r)), i[r] = e[r]);
1343
- return t.concat(i || Array.prototype.slice.call(e));
1344
- }
1345
- var _n = (
1346
- /** @class */
1347
- function(t) {
1348
- Kt(e, t);
1349
- function e(n, r, a) {
1350
- var i = t.call(this, n, r) || this;
1351
- return i.iterator = a, i;
1352
- }
1353
- return e.prototype.add = function(n) {
1354
- return this.iterator(n, this._result.length) ? (this._result.push(n), !0) : !1;
1355
- }, e;
1356
- }(Fe)
1357
- ), ct = {
1358
- dayNames: [
1359
- "Sunday",
1360
- "Monday",
1361
- "Tuesday",
1362
- "Wednesday",
1363
- "Thursday",
1364
- "Friday",
1365
- "Saturday"
1366
- ],
1367
- monthNames: [
1368
- "January",
1369
- "February",
1370
- "March",
1371
- "April",
1372
- "May",
1373
- "June",
1374
- "July",
1375
- "August",
1376
- "September",
1377
- "October",
1378
- "November",
1379
- "December"
1380
- ],
1381
- tokens: {
1382
- SKIP: /^[ \r\n\t]+|^\.$/,
1383
- number: /^[1-9][0-9]*/,
1384
- numberAsText: /^(one|two|three)/i,
1385
- every: /^every/i,
1386
- "day(s)": /^days?/i,
1387
- "weekday(s)": /^weekdays?/i,
1388
- "week(s)": /^weeks?/i,
1389
- "hour(s)": /^hours?/i,
1390
- "minute(s)": /^minutes?/i,
1391
- "month(s)": /^months?/i,
1392
- "year(s)": /^years?/i,
1393
- on: /^(on|in)/i,
1394
- at: /^(at)/i,
1395
- the: /^the/i,
1396
- first: /^first/i,
1397
- second: /^second/i,
1398
- third: /^third/i,
1399
- nth: /^([1-9][0-9]*)(\.|th|nd|rd|st)/i,
1400
- last: /^last/i,
1401
- for: /^for/i,
1402
- "time(s)": /^times?/i,
1403
- until: /^(un)?til/i,
1404
- monday: /^mo(n(day)?)?/i,
1405
- tuesday: /^tu(e(s(day)?)?)?/i,
1406
- wednesday: /^we(d(n(esday)?)?)?/i,
1407
- thursday: /^th(u(r(sday)?)?)?/i,
1408
- friday: /^fr(i(day)?)?/i,
1409
- saturday: /^sa(t(urday)?)?/i,
1410
- sunday: /^su(n(day)?)?/i,
1411
- january: /^jan(uary)?/i,
1412
- february: /^feb(ruary)?/i,
1413
- march: /^mar(ch)?/i,
1414
- april: /^apr(il)?/i,
1415
- may: /^may/i,
1416
- june: /^june?/i,
1417
- july: /^july?/i,
1418
- august: /^aug(ust)?/i,
1419
- september: /^sep(t(ember)?)?/i,
1420
- october: /^oct(ober)?/i,
1421
- november: /^nov(ember)?/i,
1422
- december: /^dec(ember)?/i,
1423
- comma: /^(,\s*|(and|or)\s*)+/i
1424
- }
1425
- }, Dn = function(t, e) {
1426
- return t.indexOf(e) !== -1;
1427
- }, no = function(t) {
1428
- return t.toString();
1429
- }, ro = function(t, e, n) {
1430
- return "".concat(e, " ").concat(n, ", ").concat(t);
1431
- }, _e = (
1432
- /** @class */
1433
- function() {
1434
- function t(e, n, r, a) {
1435
- if (n === void 0 && (n = no), r === void 0 && (r = ct), a === void 0 && (a = ro), this.text = [], this.language = r || ct, this.gettext = n, this.dateFormatter = a, this.rrule = e, this.options = e.options, this.origOptions = e.origOptions, this.origOptions.bymonthday) {
1436
- var i = [].concat(this.options.bymonthday), o = [].concat(this.options.bynmonthday);
1437
- i.sort(function(d, f) {
1438
- return d - f;
1439
- }), o.sort(function(d, f) {
1440
- return f - d;
1441
- }), this.bymonthday = i.concat(o), this.bymonthday.length || (this.bymonthday = null);
1442
- }
1443
- if (Z(this.origOptions.byweekday)) {
1444
- var l = ce(this.origOptions.byweekday) ? this.origOptions.byweekday : [this.origOptions.byweekday], s = String(l);
1445
- this.byweekday = {
1446
- allWeeks: l.filter(function(d) {
1447
- return !d.n;
1448
- }),
1449
- someWeeks: l.filter(function(d) {
1450
- return !!d.n;
1451
- }),
1452
- isWeekdays: s.indexOf("MO") !== -1 && s.indexOf("TU") !== -1 && s.indexOf("WE") !== -1 && s.indexOf("TH") !== -1 && s.indexOf("FR") !== -1 && s.indexOf("SA") === -1 && s.indexOf("SU") === -1,
1453
- isEveryDay: s.indexOf("MO") !== -1 && s.indexOf("TU") !== -1 && s.indexOf("WE") !== -1 && s.indexOf("TH") !== -1 && s.indexOf("FR") !== -1 && s.indexOf("SA") !== -1 && s.indexOf("SU") !== -1
1454
- };
1455
- var u = function(d, f) {
1456
- return d.weekday - f.weekday;
1457
- };
1458
- this.byweekday.allWeeks.sort(u), this.byweekday.someWeeks.sort(u), this.byweekday.allWeeks.length || (this.byweekday.allWeeks = null), this.byweekday.someWeeks.length || (this.byweekday.someWeeks = null);
1459
- } else
1460
- this.byweekday = null;
1461
- }
1462
- return t.isFullyConvertible = function(e) {
1463
- var n = !0;
1464
- if (!(e.options.freq in t.IMPLEMENTED) || e.origOptions.until && e.origOptions.count)
1465
- return !1;
1466
- for (var r in e.origOptions) {
1467
- if (Dn(["dtstart", "wkst", "freq"], r))
1468
- return !0;
1469
- if (!Dn(t.IMPLEMENTED[e.options.freq], r))
1470
- return !1;
1471
- }
1472
- return n;
1473
- }, t.prototype.isFullyConvertible = function() {
1474
- return t.isFullyConvertible(this.rrule);
1475
- }, t.prototype.toString = function() {
1476
- var e = this.gettext;
1477
- if (!(this.options.freq in t.IMPLEMENTED))
1478
- return e("RRule error: Unable to fully convert this rrule to text");
1479
- if (this.text = [e("every")], this[x.FREQUENCIES[this.options.freq]](), this.options.until) {
1480
- this.add(e("until"));
1481
- var n = this.options.until;
1482
- this.add(this.dateFormatter(n.getUTCFullYear(), this.language.monthNames[n.getUTCMonth()], n.getUTCDate()));
1483
- } else
1484
- this.options.count && this.add(e("for")).add(this.options.count.toString()).add(this.plural(this.options.count) ? e("times") : e("time"));
1485
- return this.isFullyConvertible() || this.add(e("(~ approximate)")), this.text.join("");
1486
- }, t.prototype.HOURLY = function() {
1487
- var e = this.gettext;
1488
- this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("hours") : e("hour"));
1489
- }, t.prototype.MINUTELY = function() {
1490
- var e = this.gettext;
1491
- this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("minutes") : e("minute"));
1492
- }, t.prototype.DAILY = function() {
1493
- var e = this.gettext;
1494
- this.options.interval !== 1 && this.add(this.options.interval.toString()), this.byweekday && this.byweekday.isWeekdays ? this.add(this.plural(this.options.interval) ? e("weekdays") : e("weekday")) : this.add(this.plural(this.options.interval) ? e("days") : e("day")), this.origOptions.bymonth && (this.add(e("in")), this._bymonth()), this.bymonthday ? this._bymonthday() : this.byweekday ? this._byweekday() : this.origOptions.byhour && this._byhour();
1495
- }, t.prototype.WEEKLY = function() {
1496
- var e = this.gettext;
1497
- this.options.interval !== 1 && this.add(this.options.interval.toString()).add(this.plural(this.options.interval) ? e("weeks") : e("week")), this.byweekday && this.byweekday.isWeekdays ? this.options.interval === 1 ? this.add(this.plural(this.options.interval) ? e("weekdays") : e("weekday")) : this.add(e("on")).add(e("weekdays")) : this.byweekday && this.byweekday.isEveryDay ? this.add(this.plural(this.options.interval) ? e("days") : e("day")) : (this.options.interval === 1 && this.add(e("week")), this.origOptions.bymonth && (this.add(e("in")), this._bymonth()), this.bymonthday ? this._bymonthday() : this.byweekday && this._byweekday());
1498
- }, t.prototype.MONTHLY = function() {
1499
- var e = this.gettext;
1500
- this.origOptions.bymonth ? (this.options.interval !== 1 && (this.add(this.options.interval.toString()).add(e("months")), this.plural(this.options.interval) && this.add(e("in"))), this._bymonth()) : (this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("months") : e("month"))), this.bymonthday ? this._bymonthday() : this.byweekday && this.byweekday.isWeekdays ? this.add(e("on")).add(e("weekdays")) : this.byweekday && this._byweekday();
1501
- }, t.prototype.YEARLY = function() {
1502
- var e = this.gettext;
1503
- this.origOptions.bymonth ? (this.options.interval !== 1 && (this.add(this.options.interval.toString()), this.add(e("years"))), this._bymonth()) : (this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("years") : e("year"))), this.bymonthday ? this._bymonthday() : this.byweekday && this._byweekday(), this.options.byyearday && this.add(e("on the")).add(this.list(this.options.byyearday, this.nth, e("and"))).add(e("day")), this.options.byweekno && this.add(e("in")).add(this.plural(this.options.byweekno.length) ? e("weeks") : e("week")).add(this.list(this.options.byweekno, void 0, e("and")));
1504
- }, t.prototype._bymonthday = function() {
1505
- var e = this.gettext;
1506
- this.byweekday && this.byweekday.allWeeks ? this.add(e("on")).add(this.list(this.byweekday.allWeeks, this.weekdaytext, e("or"))).add(e("the")).add(this.list(this.bymonthday, this.nth, e("or"))) : this.add(e("on the")).add(this.list(this.bymonthday, this.nth, e("and")));
1507
- }, t.prototype._byweekday = function() {
1508
- var e = this.gettext;
1509
- this.byweekday.allWeeks && !this.byweekday.isWeekdays && this.add(e("on")).add(this.list(this.byweekday.allWeeks, this.weekdaytext)), this.byweekday.someWeeks && (this.byweekday.allWeeks && this.add(e("and")), this.add(e("on the")).add(this.list(this.byweekday.someWeeks, this.weekdaytext, e("and"))));
1510
- }, t.prototype._byhour = function() {
1511
- var e = this.gettext;
1512
- this.add(e("at")).add(this.list(this.origOptions.byhour, void 0, e("and")));
1513
- }, t.prototype._bymonth = function() {
1514
- this.add(this.list(this.options.bymonth, this.monthtext, this.gettext("and")));
1515
- }, t.prototype.nth = function(e) {
1516
- e = parseInt(e.toString(), 10);
1517
- var n, r = this.gettext;
1518
- if (e === -1)
1519
- return r("last");
1520
- var a = Math.abs(e);
1521
- switch (a) {
1522
- case 1:
1523
- case 21:
1524
- case 31:
1525
- n = a + r("st");
1526
- break;
1527
- case 2:
1528
- case 22:
1529
- n = a + r("nd");
1530
- break;
1531
- case 3:
1532
- case 23:
1533
- n = a + r("rd");
1534
- break;
1535
- default:
1536
- n = a + r("th");
1537
- }
1538
- return e < 0 ? n + " " + r("last") : n;
1539
- }, t.prototype.monthtext = function(e) {
1540
- return this.language.monthNames[e - 1];
1541
- }, t.prototype.weekdaytext = function(e) {
1542
- var n = ve(e) ? (e + 1) % 7 : e.getJsWeekday();
1543
- return (e.n ? this.nth(e.n) + " " : "") + this.language.dayNames[n];
1544
- }, t.prototype.plural = function(e) {
1545
- return e % 100 !== 1;
1546
- }, t.prototype.add = function(e) {
1547
- return this.text.push(" "), this.text.push(e), this;
1548
- }, t.prototype.list = function(e, n, r, a) {
1549
- var i = this;
1550
- a === void 0 && (a = ","), ce(e) || (e = [e]);
1551
- var o = function(s, u, d) {
1552
- for (var f = "", h = 0; h < s.length; h++)
1553
- h !== 0 && (h === s.length - 1 ? f += " " + d + " " : f += u + " "), f += s[h];
1554
- return f;
1555
- };
1556
- n = n || function(s) {
1557
- return s.toString();
1558
- };
1559
- var l = function(s) {
1560
- return n && n.call(i, s);
1561
- };
1562
- return r ? o(e.map(l), a, r) : e.map(l).join(a + " ");
1563
- }, t;
1564
- }()
1565
- ), ao = (
1566
- /** @class */
1567
- function() {
1568
- function t(e) {
1569
- this.done = !0, this.rules = e;
1570
- }
1571
- return t.prototype.start = function(e) {
1572
- return this.text = e, this.done = !1, this.nextSymbol();
1573
- }, t.prototype.isDone = function() {
1574
- return this.done && this.symbol === null;
1575
- }, t.prototype.nextSymbol = function() {
1576
- var e, n;
1577
- this.symbol = null, this.value = null;
1578
- do {
1579
- if (this.done)
1580
- return !1;
1581
- var r = void 0;
1582
- e = null;
1583
- for (var a in this.rules) {
1584
- r = this.rules[a];
1585
- var i = r.exec(this.text);
1586
- i && (e === null || i[0].length > e[0].length) && (e = i, n = a);
1587
- }
1588
- if (e != null && (this.text = this.text.substr(e[0].length), this.text === "" && (this.done = !0)), e == null) {
1589
- this.done = !0, this.symbol = null, this.value = null;
1590
- return;
1591
- }
1592
- } while (n === "SKIP");
1593
- return this.symbol = n, this.value = e, !0;
1594
- }, t.prototype.accept = function(e) {
1595
- if (this.symbol === e) {
1596
- if (this.value) {
1597
- var n = this.value;
1598
- return this.nextSymbol(), n;
1599
- }
1600
- return this.nextSymbol(), !0;
1601
- }
1602
- return !1;
1603
- }, t.prototype.acceptNumber = function() {
1604
- return this.accept("number");
1605
- }, t.prototype.expect = function(e) {
1606
- if (this.accept(e))
1607
- return !0;
1608
- throw new Error("expected " + e + " but found " + this.symbol);
1609
- }, t;
1610
- }()
1611
- );
1612
- function wr(t, e) {
1613
- e === void 0 && (e = ct);
1614
- var n = {}, r = new ao(e.tokens);
1615
- if (!r.start(t))
1616
- return null;
1617
- return a(), n;
1618
- function a() {
1619
- r.expect("every");
1620
- var h = r.acceptNumber();
1621
- if (h && (n.interval = parseInt(h[0], 10)), r.isDone())
1622
- throw new Error("Unexpected end");
1623
- switch (r.symbol) {
1624
- case "day(s)":
1625
- n.freq = x.DAILY, r.nextSymbol() && (o(), f());
1626
- break;
1627
- case "weekday(s)":
1628
- n.freq = x.WEEKLY, n.byweekday = [x.MO, x.TU, x.WE, x.TH, x.FR], r.nextSymbol(), f();
1629
- break;
1630
- case "week(s)":
1631
- n.freq = x.WEEKLY, r.nextSymbol() && (i(), f());
1632
- break;
1633
- case "hour(s)":
1634
- n.freq = x.HOURLY, r.nextSymbol() && (i(), f());
1635
- break;
1636
- case "minute(s)":
1637
- n.freq = x.MINUTELY, r.nextSymbol() && (i(), f());
1638
- break;
1639
- case "month(s)":
1640
- n.freq = x.MONTHLY, r.nextSymbol() && (i(), f());
1641
- break;
1642
- case "year(s)":
1643
- n.freq = x.YEARLY, r.nextSymbol() && (i(), f());
1644
- break;
1645
- case "monday":
1646
- case "tuesday":
1647
- case "wednesday":
1648
- case "thursday":
1649
- case "friday":
1650
- case "saturday":
1651
- case "sunday":
1652
- n.freq = x.WEEKLY;
1653
- var y = r.symbol.substr(0, 2).toUpperCase();
1654
- if (n.byweekday = [x[y]], !r.nextSymbol())
1655
- return;
1656
- for (; r.accept("comma"); ) {
1657
- if (r.isDone())
1658
- throw new Error("Unexpected end");
1659
- var p = s();
1660
- if (!p)
1661
- throw new Error("Unexpected symbol " + r.symbol + ", expected weekday");
1662
- n.byweekday.push(x[p]), r.nextSymbol();
1663
- }
1664
- d(), f();
1665
- break;
1666
- case "january":
1667
- case "february":
1668
- case "march":
1669
- case "april":
1670
- case "may":
1671
- case "june":
1672
- case "july":
1673
- case "august":
1674
- case "september":
1675
- case "october":
1676
- case "november":
1677
- case "december":
1678
- if (n.freq = x.YEARLY, n.bymonth = [l()], !r.nextSymbol())
1679
- return;
1680
- for (; r.accept("comma"); ) {
1681
- if (r.isDone())
1682
- throw new Error("Unexpected end");
1683
- var g = l();
1684
- if (!g)
1685
- throw new Error("Unexpected symbol " + r.symbol + ", expected month");
1686
- n.bymonth.push(g), r.nextSymbol();
1687
- }
1688
- i(), f();
1689
- break;
1690
- default:
1691
- throw new Error("Unknown symbol");
1692
- }
1693
- }
1694
- function i() {
1695
- var h = r.accept("on"), y = r.accept("the");
1696
- if (h || y)
1697
- do {
1698
- var p = u(), g = s(), b = l();
1699
- if (p)
1700
- g ? (r.nextSymbol(), n.byweekday || (n.byweekday = []), n.byweekday.push(x[g].nth(p))) : (n.bymonthday || (n.bymonthday = []), n.bymonthday.push(p), r.accept("day(s)"));
1701
- else if (g)
1702
- r.nextSymbol(), n.byweekday || (n.byweekday = []), n.byweekday.push(x[g]);
1703
- else if (r.symbol === "weekday(s)")
1704
- r.nextSymbol(), n.byweekday || (n.byweekday = [x.MO, x.TU, x.WE, x.TH, x.FR]);
1705
- else if (r.symbol === "week(s)") {
1706
- r.nextSymbol();
1707
- var T = r.acceptNumber();
1708
- if (!T)
1709
- throw new Error("Unexpected symbol " + r.symbol + ", expected week number");
1710
- for (n.byweekno = [parseInt(T[0], 10)]; r.accept("comma"); ) {
1711
- if (T = r.acceptNumber(), !T)
1712
- throw new Error("Unexpected symbol " + r.symbol + "; expected monthday");
1713
- n.byweekno.push(parseInt(T[0], 10));
1714
- }
1715
- } else if (b)
1716
- r.nextSymbol(), n.bymonth || (n.bymonth = []), n.bymonth.push(b);
1717
- else
1718
- return;
1719
- } while (r.accept("comma") || r.accept("the") || r.accept("on"));
1720
- }
1721
- function o() {
1722
- var h = r.accept("at");
1723
- if (h)
1724
- do {
1725
- var y = r.acceptNumber();
1726
- if (!y)
1727
- throw new Error("Unexpected symbol " + r.symbol + ", expected hour");
1728
- for (n.byhour = [parseInt(y[0], 10)]; r.accept("comma"); ) {
1729
- if (y = r.acceptNumber(), !y)
1730
- throw new Error("Unexpected symbol " + r.symbol + "; expected hour");
1731
- n.byhour.push(parseInt(y[0], 10));
1732
- }
1733
- } while (r.accept("comma") || r.accept("at"));
1734
- }
1735
- function l() {
1736
- switch (r.symbol) {
1737
- case "january":
1738
- return 1;
1739
- case "february":
1740
- return 2;
1741
- case "march":
1742
- return 3;
1743
- case "april":
1744
- return 4;
1745
- case "may":
1746
- return 5;
1747
- case "june":
1748
- return 6;
1749
- case "july":
1750
- return 7;
1751
- case "august":
1752
- return 8;
1753
- case "september":
1754
- return 9;
1755
- case "october":
1756
- return 10;
1757
- case "november":
1758
- return 11;
1759
- case "december":
1760
- return 12;
1761
- default:
1762
- return !1;
1763
- }
1764
- }
1765
- function s() {
1766
- switch (r.symbol) {
1767
- case "monday":
1768
- case "tuesday":
1769
- case "wednesday":
1770
- case "thursday":
1771
- case "friday":
1772
- case "saturday":
1773
- case "sunday":
1774
- return r.symbol.substr(0, 2).toUpperCase();
1775
- default:
1776
- return !1;
1777
- }
1778
- }
1779
- function u() {
1780
- switch (r.symbol) {
1781
- case "last":
1782
- return r.nextSymbol(), -1;
1783
- case "first":
1784
- return r.nextSymbol(), 1;
1785
- case "second":
1786
- return r.nextSymbol(), r.accept("last") ? -2 : 2;
1787
- case "third":
1788
- return r.nextSymbol(), r.accept("last") ? -3 : 3;
1789
- case "nth":
1790
- var h = parseInt(r.value[1], 10);
1791
- if (h < -366 || h > 366)
1792
- throw new Error("Nth out of range: " + h);
1793
- return r.nextSymbol(), r.accept("last") ? -h : h;
1794
- default:
1795
- return !1;
1796
- }
1797
- }
1798
- function d() {
1799
- r.accept("on"), r.accept("the");
1800
- var h = u();
1801
- if (h)
1802
- for (n.bymonthday = [h], r.nextSymbol(); r.accept("comma"); ) {
1803
- if (h = u(), !h)
1804
- throw new Error("Unexpected symbol " + r.symbol + "; expected monthday");
1805
- n.bymonthday.push(h), r.nextSymbol();
1806
- }
1807
- }
1808
- function f() {
1809
- if (r.symbol === "until") {
1810
- var h = Date.parse(r.text);
1811
- if (!h)
1812
- throw new Error("Cannot parse until date:" + r.text);
1813
- n.until = new Date(h);
1814
- } else
1815
- r.accept("for") && (n.count = parseInt(r.value[0], 10), r.expect("number"));
1816
- }
1817
- }
1818
- var U;
1819
- (function(t) {
1820
- t[t.YEARLY = 0] = "YEARLY", t[t.MONTHLY = 1] = "MONTHLY", t[t.WEEKLY = 2] = "WEEKLY", t[t.DAILY = 3] = "DAILY", t[t.HOURLY = 4] = "HOURLY", t[t.MINUTELY = 5] = "MINUTELY", t[t.SECONDLY = 6] = "SECONDLY";
1821
- })(U || (U = {}));
1822
- function Gt(t) {
1823
- return t < U.HOURLY;
1824
- }
1825
- var oo = function(t, e) {
1826
- return e === void 0 && (e = ct), new x(wr(t, e) || void 0);
1827
- }, ze = [
1828
- "count",
1829
- "until",
1830
- "interval",
1831
- "byweekday",
1832
- "bymonthday",
1833
- "bymonth"
1834
- ];
1835
- _e.IMPLEMENTED = [];
1836
- _e.IMPLEMENTED[U.HOURLY] = ze;
1837
- _e.IMPLEMENTED[U.MINUTELY] = ze;
1838
- _e.IMPLEMENTED[U.DAILY] = ["byhour"].concat(ze);
1839
- _e.IMPLEMENTED[U.WEEKLY] = ze;
1840
- _e.IMPLEMENTED[U.MONTHLY] = ze;
1841
- _e.IMPLEMENTED[U.YEARLY] = ["byweekno", "byyearday"].concat(ze);
1842
- var io = function(t, e, n, r) {
1843
- return new _e(t, e, n, r).toString();
1844
- }, so = _e.isFullyConvertible, ut = (
1845
- /** @class */
1846
- function() {
1847
- function t(e, n, r, a) {
1848
- this.hour = e, this.minute = n, this.second = r, this.millisecond = a || 0;
1849
- }
1850
- return t.prototype.getHours = function() {
1851
- return this.hour;
1852
- }, t.prototype.getMinutes = function() {
1853
- return this.minute;
1854
- }, t.prototype.getSeconds = function() {
1855
- return this.second;
1856
- }, t.prototype.getMilliseconds = function() {
1857
- return this.millisecond;
1858
- }, t.prototype.getTime = function() {
1859
- return (this.hour * 60 * 60 + this.minute * 60 + this.second) * 1e3 + this.millisecond;
1860
- }, t;
1861
- }()
1862
- ), lo = (
1863
- /** @class */
1864
- function(t) {
1865
- Kt(e, t);
1866
- function e(n, r, a, i, o, l, s) {
1867
- var u = t.call(this, i, o, l, s) || this;
1868
- return u.year = n, u.month = r, u.day = a, u;
1869
- }
1870
- return e.fromDate = function(n) {
1871
- return new this(n.getUTCFullYear(), n.getUTCMonth() + 1, n.getUTCDate(), n.getUTCHours(), n.getUTCMinutes(), n.getUTCSeconds(), n.valueOf() % 1e3);
1872
- }, e.prototype.getWeekday = function() {
1873
- return We(new Date(this.getTime()));
1874
- }, e.prototype.getTime = function() {
1875
- return new Date(Date.UTC(this.year, this.month - 1, this.day, this.hour, this.minute, this.second, this.millisecond)).getTime();
1876
- }, e.prototype.getDay = function() {
1877
- return this.day;
1878
- }, e.prototype.getMonth = function() {
1879
- return this.month;
1880
- }, e.prototype.getYear = function() {
1881
- return this.year;
1882
- }, e.prototype.addYears = function(n) {
1883
- this.year += n;
1884
- }, e.prototype.addMonths = function(n) {
1885
- if (this.month += n, this.month > 12) {
1886
- var r = Math.floor(this.month / 12), a = fe(this.month, 12);
1887
- this.month = a, this.year += r, this.month === 0 && (this.month = 12, --this.year);
1888
- }
1889
- }, e.prototype.addWeekly = function(n, r) {
1890
- r > this.getWeekday() ? this.day += -(this.getWeekday() + 1 + (6 - r)) + n * 7 : this.day += -(this.getWeekday() - r) + n * 7, this.fixDay();
1891
- }, e.prototype.addDaily = function(n) {
1892
- this.day += n, this.fixDay();
1893
- }, e.prototype.addHours = function(n, r, a) {
1894
- for (r && (this.hour += Math.floor((23 - this.hour) / n) * n); ; ) {
1895
- this.hour += n;
1896
- var i = St(this.hour, 24), o = i.div, l = i.mod;
1897
- if (o && (this.hour = l, this.addDaily(o)), be(a) || F(a, this.hour))
1898
- break;
1899
- }
1900
- }, e.prototype.addMinutes = function(n, r, a, i) {
1901
- for (r && (this.minute += Math.floor((1439 - (this.hour * 60 + this.minute)) / n) * n); ; ) {
1902
- this.minute += n;
1903
- var o = St(this.minute, 60), l = o.div, s = o.mod;
1904
- if (l && (this.minute = s, this.addHours(l, !1, a)), (be(a) || F(a, this.hour)) && (be(i) || F(i, this.minute)))
1905
- break;
1906
- }
1907
- }, e.prototype.addSeconds = function(n, r, a, i, o) {
1908
- for (r && (this.second += Math.floor((86399 - (this.hour * 3600 + this.minute * 60 + this.second)) / n) * n); ; ) {
1909
- this.second += n;
1910
- var l = St(this.second, 60), s = l.div, u = l.mod;
1911
- if (s && (this.second = u, this.addMinutes(s, !1, a, i)), (be(a) || F(a, this.hour)) && (be(i) || F(i, this.minute)) && (be(o) || F(o, this.second)))
1912
- break;
1913
- }
1914
- }, e.prototype.fixDay = function() {
1915
- if (!(this.day <= 28)) {
1916
- var n = Cn(this.year, this.month - 1)[1];
1917
- if (!(this.day <= n))
1918
- for (; this.day > n; ) {
1919
- if (this.day -= n, ++this.month, this.month === 13 && (this.month = 1, ++this.year, this.year > mr))
1920
- return;
1921
- n = Cn(this.year, this.month - 1)[1];
1922
- }
1923
- }
1924
- }, e.prototype.add = function(n, r) {
1925
- var a = n.freq, i = n.interval, o = n.wkst, l = n.byhour, s = n.byminute, u = n.bysecond;
1926
- switch (a) {
1927
- case U.YEARLY:
1928
- return this.addYears(i);
1929
- case U.MONTHLY:
1930
- return this.addMonths(i);
1931
- case U.WEEKLY:
1932
- return this.addWeekly(i, o);
1933
- case U.DAILY:
1934
- return this.addDaily(i);
1935
- case U.HOURLY:
1936
- return this.addHours(i, r, l);
1937
- case U.MINUTELY:
1938
- return this.addMinutes(i, r, l, s);
1939
- case U.SECONDLY:
1940
- return this.addSeconds(i, r, l, s, u);
1941
- }
1942
- }, e;
1943
- }(ut)
1944
- );
1945
- function kr(t) {
1946
- for (var e = [], n = Object.keys(t), r = 0, a = n; r < a.length; r++) {
1947
- var i = a[r];
1948
- F(Yo, i) || e.push(i), vr(t[i]) && !Je(t[i]) && e.push(i);
1949
- }
1950
- if (e.length)
1951
- throw new Error("Invalid options: " + e.join(", "));
1952
- return ue({}, t);
1953
- }
1954
- function co(t) {
1955
- var e = ue(ue({}, Zt), kr(t));
1956
- if (Z(e.byeaster) && (e.freq = x.YEARLY), !(Z(e.freq) && x.FREQUENCIES[e.freq]))
1957
- throw new Error("Invalid frequency: ".concat(e.freq, " ").concat(t.freq));
1958
- if (e.dtstart || (e.dtstart = new Date((/* @__PURE__ */ new Date()).setMilliseconds(0))), Z(e.wkst) ? ve(e.wkst) || (e.wkst = e.wkst.weekday) : e.wkst = x.MO.weekday, Z(e.bysetpos)) {
1959
- ve(e.bysetpos) && (e.bysetpos = [e.bysetpos]);
1960
- for (var n = 0; n < e.bysetpos.length; n++) {
1961
- var r = e.bysetpos[n];
1962
- if (r === 0 || !(r >= -366 && r <= 366))
1963
- throw new Error("bysetpos must be between 1 and 366, or between -366 and -1");
1964
- }
1965
- }
1966
- if (!(e.byweekno || Q(e.byweekno) || Q(e.byyearday) || e.bymonthday || Q(e.bymonthday) || Z(e.byweekday) || Z(e.byeaster)))
1967
- switch (e.freq) {
1968
- case x.YEARLY:
1969
- e.bymonth || (e.bymonth = e.dtstart.getUTCMonth() + 1), e.bymonthday = e.dtstart.getUTCDate();
1970
- break;
1971
- case x.MONTHLY:
1972
- e.bymonthday = e.dtstart.getUTCDate();
1973
- break;
1974
- case x.WEEKLY:
1975
- e.byweekday = [We(e.dtstart)];
1976
- break;
1977
- }
1978
- if (Z(e.bymonth) && !ce(e.bymonth) && (e.bymonth = [e.bymonth]), Z(e.byyearday) && !ce(e.byyearday) && ve(e.byyearday) && (e.byyearday = [e.byyearday]), !Z(e.bymonthday))
1979
- e.bymonthday = [], e.bynmonthday = [];
1980
- else if (ce(e.bymonthday)) {
1981
- for (var a = [], i = [], n = 0; n < e.bymonthday.length; n++) {
1982
- var r = e.bymonthday[n];
1983
- r > 0 ? a.push(r) : r < 0 && i.push(r);
1984
- }
1985
- e.bymonthday = a, e.bynmonthday = i;
1986
- } else
1987
- e.bymonthday < 0 ? (e.bynmonthday = [e.bymonthday], e.bymonthday = []) : (e.bynmonthday = [], e.bymonthday = [e.bymonthday]);
1988
- if (Z(e.byweekno) && !ce(e.byweekno) && (e.byweekno = [e.byweekno]), !Z(e.byweekday))
1989
- e.bynweekday = null;
1990
- else if (ve(e.byweekday))
1991
- e.byweekday = [e.byweekday], e.bynweekday = null;
1992
- else if (Tn(e.byweekday))
1993
- e.byweekday = [oe.fromStr(e.byweekday).weekday], e.bynweekday = null;
1994
- else if (e.byweekday instanceof oe)
1995
- !e.byweekday.n || e.freq > x.MONTHLY ? (e.byweekday = [e.byweekday.weekday], e.bynweekday = null) : (e.bynweekday = [[e.byweekday.weekday, e.byweekday.n]], e.byweekday = null);
1996
- else {
1997
- for (var o = [], l = [], n = 0; n < e.byweekday.length; n++) {
1998
- var s = e.byweekday[n];
1999
- if (ve(s)) {
2000
- o.push(s);
2001
- continue;
2002
- } else if (Tn(s)) {
2003
- o.push(oe.fromStr(s).weekday);
2004
- continue;
2005
- }
2006
- !s.n || e.freq > x.MONTHLY ? o.push(s.weekday) : l.push([s.weekday, s.n]);
2007
- }
2008
- e.byweekday = Q(o) ? o : null, e.bynweekday = Q(l) ? l : null;
2009
- }
2010
- return Z(e.byhour) ? ve(e.byhour) && (e.byhour = [e.byhour]) : e.byhour = e.freq < x.HOURLY ? [e.dtstart.getUTCHours()] : null, Z(e.byminute) ? ve(e.byminute) && (e.byminute = [e.byminute]) : e.byminute = e.freq < x.MINUTELY ? [e.dtstart.getUTCMinutes()] : null, Z(e.bysecond) ? ve(e.bysecond) && (e.bysecond = [e.bysecond]) : e.bysecond = e.freq < x.SECONDLY ? [e.dtstart.getUTCSeconds()] : null, { parsedOptions: e };
2011
- }
2012
- function uo(t) {
2013
- var e = t.dtstart.getTime() % 1e3;
2014
- if (!Gt(t.freq))
2015
- return [];
2016
- var n = [];
2017
- return t.byhour.forEach(function(r) {
2018
- t.byminute.forEach(function(a) {
2019
- t.bysecond.forEach(function(i) {
2020
- n.push(new ut(r, a, i, e));
2021
- });
2022
- });
2023
- }), n;
2024
- }
2025
- function Ut(t) {
2026
- var e = t.split(`
2027
- `).map(fo).filter(function(n) {
2028
- return n !== null;
2029
- });
2030
- return ue(ue({}, e[0]), e[1]);
2031
- }
2032
- function dt(t) {
2033
- var e = {}, n = /DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(t);
2034
- if (!n)
2035
- return e;
2036
- var r = n[1], a = n[2];
2037
- return r && (e.tzid = r), e.dtstart = qt(a), e;
2038
- }
2039
- function fo(t) {
2040
- if (t = t.replace(/^\s+|\s+$/, ""), !t.length)
2041
- return null;
2042
- var e = /^([A-Z]+?)[:;]/.exec(t.toUpperCase());
2043
- if (!e)
2044
- return Mn(t);
2045
- var n = e[1];
2046
- switch (n.toUpperCase()) {
2047
- case "RRULE":
2048
- case "EXRULE":
2049
- return Mn(t);
2050
- case "DTSTART":
2051
- return dt(t);
2052
- default:
2053
- throw new Error("Unsupported RFC prop ".concat(n, " in ").concat(t));
2054
- }
2055
- }
2056
- function Mn(t) {
2057
- var e = t.replace(/^RRULE:/i, ""), n = dt(e), r = t.replace(/^(?:RRULE|EXRULE):/i, "").split(";");
2058
- return r.forEach(function(a) {
2059
- var i = a.split("="), o = i[0], l = i[1];
2060
- switch (o.toUpperCase()) {
2061
- case "FREQ":
2062
- n.freq = U[l.toUpperCase()];
2063
- break;
2064
- case "WKST":
2065
- n.wkst = me[l.toUpperCase()];
2066
- break;
2067
- case "COUNT":
2068
- case "INTERVAL":
2069
- case "BYSETPOS":
2070
- case "BYMONTH":
2071
- case "BYMONTHDAY":
2072
- case "BYYEARDAY":
2073
- case "BYWEEKNO":
2074
- case "BYHOUR":
2075
- case "BYMINUTE":
2076
- case "BYSECOND":
2077
- var s = ho(l), u = o.toLowerCase();
2078
- n[u] = s;
2079
- break;
2080
- case "BYWEEKDAY":
2081
- case "BYDAY":
2082
- n.byweekday = yo(l);
2083
- break;
2084
- case "DTSTART":
2085
- case "TZID":
2086
- var d = dt(t);
2087
- n.tzid = d.tzid, n.dtstart = d.dtstart;
2088
- break;
2089
- case "UNTIL":
2090
- n.until = qt(l);
2091
- break;
2092
- case "BYEASTER":
2093
- n.byeaster = Number(l);
2094
- break;
2095
- default:
2096
- throw new Error("Unknown RRULE property '" + o + "'");
2097
- }
2098
- }), n;
2099
- }
2100
- function ho(t) {
2101
- if (t.indexOf(",") !== -1) {
2102
- var e = t.split(",");
2103
- return e.map(Rn);
2104
- }
2105
- return Rn(t);
2106
- }
2107
- function Rn(t) {
2108
- return /^[+-]?\d+$/.test(t) ? Number(t) : t;
2109
- }
2110
- function yo(t) {
2111
- var e = t.split(",");
2112
- return e.map(function(n) {
2113
- if (n.length === 2)
2114
- return me[n];
2115
- var r = n.match(/^([+-]?\d{1,2})([A-Z]{2})$/);
2116
- if (!r || r.length < 3)
2117
- throw new SyntaxError("Invalid weekday string: ".concat(n));
2118
- var a = Number(r[1]), i = r[2], o = me[i].weekday;
2119
- return new oe(o, a);
2120
- });
2121
- }
2122
- var ft = (
2123
- /** @class */
2124
- function() {
2125
- function t(e, n) {
2126
- if (isNaN(e.getTime()))
2127
- throw new RangeError("Invalid date passed to DateWithZone");
2128
- this.date = e, this.tzid = n;
2129
- }
2130
- return Object.defineProperty(t.prototype, "isUTC", {
2131
- get: function() {
2132
- return !this.tzid || this.tzid.toUpperCase() === "UTC";
2133
- },
2134
- enumerable: !1,
2135
- configurable: !0
2136
- }), t.prototype.toString = function() {
2137
- var e = Bt(this.date.getTime(), this.isUTC);
2138
- return this.isUTC ? ":".concat(e) : ";TZID=".concat(this.tzid, ":").concat(e);
2139
- }, t.prototype.getTime = function() {
2140
- return this.date.getTime();
2141
- }, t.prototype.rezonedDate = function() {
2142
- return this.isUTC ? this.date : to(this.date, this.tzid);
2143
- }, t;
2144
- }()
2145
- );
2146
- function Pt(t) {
2147
- for (var e = [], n = "", r = Object.keys(t), a = Object.keys(Zt), i = 0; i < r.length; i++)
2148
- if (r[i] !== "tzid" && F(a, r[i])) {
2149
- var o = r[i].toUpperCase(), l = t[r[i]], s = "";
2150
- if (!(!Z(l) || ce(l) && !l.length)) {
2151
- switch (o) {
2152
- case "FREQ":
2153
- s = x.FREQUENCIES[t.freq];
2154
- break;
2155
- case "WKST":
2156
- ve(l) ? s = new oe(l).toString() : s = l.toString();
2157
- break;
2158
- case "BYWEEKDAY":
2159
- o = "BYDAY", s = Za(l).map(function(y) {
2160
- return y instanceof oe ? y : ce(y) ? new oe(y[0], y[1]) : new oe(y);
2161
- }).toString();
2162
- break;
2163
- case "DTSTART":
2164
- n = po(l, t.tzid);
2165
- break;
2166
- case "UNTIL":
2167
- s = Bt(l, !t.tzid);
2168
- break;
2169
- default:
2170
- if (ce(l)) {
2171
- for (var u = [], d = 0; d < l.length; d++)
2172
- u[d] = String(l[d]);
2173
- s = u.toString();
2174
- } else
2175
- s = String(l);
2176
- }
2177
- s && e.push([o, s]);
2178
- }
2179
- }
2180
- var f = e.map(function(y) {
2181
- var p = y[0], g = y[1];
2182
- return "".concat(p, "=").concat(g.toString());
2183
- }).join(";"), h = "";
2184
- return f !== "" && (h = "RRULE:".concat(f)), [n, h].filter(function(y) {
2185
- return !!y;
2186
- }).join(`
2187
- `);
2188
- }
2189
- function po(t, e) {
2190
- return t ? "DTSTART" + new ft(new Date(t), e).toString() : "";
2191
- }
2192
- function mo(t, e) {
2193
- return Array.isArray(t) ? !Array.isArray(e) || t.length !== e.length ? !1 : t.every(function(n, r) {
2194
- return n.getTime() === e[r].getTime();
2195
- }) : t instanceof Date ? e instanceof Date && t.getTime() === e.getTime() : t === e;
2196
- }
2197
- var go = (
2198
- /** @class */
2199
- function() {
2200
- function t() {
2201
- this.all = !1, this.before = [], this.after = [], this.between = [];
2202
- }
2203
- return t.prototype._cacheAdd = function(e, n, r) {
2204
- n && (n = n instanceof Date ? At(n) : xn(n)), e === "all" ? this.all = n : (r._value = n, this[e].push(r));
2205
- }, t.prototype._cacheGet = function(e, n) {
2206
- var r = !1, a = n ? Object.keys(n) : [], i = function(d) {
2207
- for (var f = 0; f < a.length; f++) {
2208
- var h = a[f];
2209
- if (!mo(n[h], d[h]))
2210
- return !0;
2211
- }
2212
- return !1;
2213
- }, o = this[e];
2214
- if (e === "all")
2215
- r = this.all;
2216
- else if (ce(o))
2217
- for (var l = 0; l < o.length; l++) {
2218
- var s = o[l];
2219
- if (!(a.length && i(s))) {
2220
- r = s._value;
2221
- break;
2222
- }
2223
- }
2224
- if (!r && this.all) {
2225
- for (var u = new Fe(e, n), l = 0; l < this.all.length && u.accept(this.all[l]); l++)
2226
- ;
2227
- r = u.getValue(), this._cacheAdd(e, r, n);
2228
- }
2229
- return ce(r) ? xn(r) : r instanceof Date ? At(r) : r;
2230
- }, t;
2231
- }()
2232
- ), vo = $($($($($($($($($($($($($([], N(1, 31), !0), N(2, 28), !0), N(3, 31), !0), N(4, 30), !0), N(5, 31), !0), N(6, 30), !0), N(7, 31), !0), N(8, 31), !0), N(9, 30), !0), N(10, 31), !0), N(11, 30), !0), N(12, 31), !0), N(1, 7), !0), bo = $($($($($($($($($($($($($([], N(1, 31), !0), N(2, 29), !0), N(3, 31), !0), N(4, 30), !0), N(5, 31), !0), N(6, 30), !0), N(7, 31), !0), N(8, 31), !0), N(9, 30), !0), N(10, 31), !0), N(11, 30), !0), N(12, 31), !0), N(1, 7), !0), $o = we(1, 29), wo = we(1, 30), De = we(1, 31), te = we(1, 32), ko = $($($($($($($($($($($($($([], te, !0), wo, !0), te, !0), De, !0), te, !0), De, !0), te, !0), te, !0), De, !0), te, !0), De, !0), te, !0), te.slice(0, 7), !0), Eo = $($($($($($($($($($($($($([], te, !0), $o, !0), te, !0), De, !0), te, !0), De, !0), te, !0), te, !0), De, !0), te, !0), De, !0), te, !0), te.slice(0, 7), !0), To = we(-28, 0), So = we(-29, 0), Me = we(-30, 0), ne = we(-31, 0), Co = $($($($($($($($($($($($($([], ne, !0), So, !0), ne, !0), Me, !0), ne, !0), Me, !0), ne, !0), ne, !0), Me, !0), ne, !0), Me, !0), ne, !0), ne.slice(0, 7), !0), xo = $($($($($($($($($($($($($([], ne, !0), To, !0), ne, !0), Me, !0), ne, !0), Me, !0), ne, !0), ne, !0), Me, !0), ne, !0), Me, !0), ne, !0), ne.slice(0, 7), !0), Oo = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366], _o = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365], Ln = function() {
2233
- for (var t = [], e = 0; e < 55; e++)
2234
- t = t.concat(we(7));
2235
- return t;
2236
- }();
2237
- function Do(t, e) {
2238
- var n = Ie(t, 1, 1), r = Xe(t) ? 366 : 365, a = Xe(t + 1) ? 366 : 365, i = It(n), o = We(n), l = ue(ue({ yearlen: r, nextyearlen: a, yearordinal: i, yearweekday: o }, Mo(t)), { wnomask: null });
2239
- if (be(e.byweekno))
2240
- return l;
2241
- l.wnomask = N(0, r + 7);
2242
- var s, u, d = s = fe(7 - o + e.wkst, 7);
2243
- d >= 4 ? (d = 0, u = l.yearlen + fe(o - e.wkst, 7)) : u = r - d;
2244
- for (var f = Math.floor(u / 7), h = fe(u, 7), y = Math.floor(f + h / 4), p = 0; p < e.byweekno.length; p++) {
2245
- var g = e.byweekno[p];
2246
- if (g < 0 && (g += y + 1), g > 0 && g <= y) {
2247
- var b = void 0;
2248
- g > 1 ? (b = d + (g - 1) * 7, d !== s && (b -= 7 - s)) : b = d;
2249
- for (var T = 0; T < 7 && (l.wnomask[b] = 1, b++, l.wdaymask[b] !== e.wkst); T++)
2250
- ;
2251
- }
2252
- }
2253
- if (F(e.byweekno, 1)) {
2254
- var b = d + y * 7;
2255
- if (d !== s && (b -= 7 - s), b < r)
2256
- for (var p = 0; p < 7 && (l.wnomask[b] = 1, b += 1, l.wdaymask[b] !== e.wkst); p++)
2257
- ;
2258
- }
2259
- if (d) {
2260
- var L = void 0;
2261
- if (F(e.byweekno, -1))
2262
- L = -1;
2263
- else {
2264
- var V = We(Ie(t - 1, 1, 1)), ie = fe(7 - V.valueOf() + e.wkst, 7), he = Xe(t - 1) ? 366 : 365, ee = void 0;
2265
- ie >= 4 ? (ie = 0, ee = he + fe(V - e.wkst, 7)) : ee = r - d, L = Math.floor(52 + fe(ee, 7) / 4);
2266
- }
2267
- if (F(e.byweekno, L))
2268
- for (var b = 0; b < d; b++)
2269
- l.wnomask[b] = 1;
2270
- }
2271
- return l;
2272
- }
2273
- function Mo(t) {
2274
- var e = Xe(t) ? 366 : 365, n = Ie(t, 1, 1), r = We(n);
2275
- return e === 365 ? {
2276
- mmask: vo,
2277
- mdaymask: Eo,
2278
- nmdaymask: xo,
2279
- wdaymask: Ln.slice(r),
2280
- mrange: _o
2281
- } : {
2282
- mmask: bo,
2283
- mdaymask: ko,
2284
- nmdaymask: Co,
2285
- wdaymask: Ln.slice(r),
2286
- mrange: Oo
2287
- };
2288
- }
2289
- function Ro(t, e, n, r, a, i) {
2290
- var o = {
2291
- lastyear: t,
2292
- lastmonth: e,
2293
- nwdaymask: []
2294
- }, l = [];
2295
- if (i.freq === x.YEARLY)
2296
- if (be(i.bymonth))
2297
- l = [[0, n]];
2298
- else
2299
- for (var s = 0; s < i.bymonth.length; s++)
2300
- e = i.bymonth[s], l.push(r.slice(e - 1, e + 1));
2301
- else
2302
- i.freq === x.MONTHLY && (l = [r.slice(e - 1, e + 1)]);
2303
- if (be(l))
2304
- return o;
2305
- o.nwdaymask = N(0, n);
2306
- for (var s = 0; s < l.length; s++)
2307
- for (var u = l[s], d = u[0], f = u[1] - 1, h = 0; h < i.bynweekday.length; h++) {
2308
- var y = void 0, p = i.bynweekday[h], g = p[0], b = p[1];
2309
- b < 0 ? (y = f + (b + 1) * 7, y -= fe(a[y] - g, 7)) : (y = d + (b - 1) * 7, y += fe(7 - a[y] + g, 7)), d <= y && y <= f && (o.nwdaymask[y] = 1);
2310
- }
2311
- return o;
2312
- }
2313
- function Lo(t, e) {
2314
- e === void 0 && (e = 0);
2315
- var n = t % 19, r = Math.floor(t / 100), a = t % 100, i = Math.floor(r / 4), o = r % 4, l = Math.floor((r + 8) / 25), s = Math.floor((r - l + 1) / 3), u = Math.floor(19 * n + r - i - s + 15) % 30, d = Math.floor(a / 4), f = a % 4, h = Math.floor(32 + 2 * o + 2 * d - u - f) % 7, y = Math.floor((n + 11 * u + 22 * h) / 451), p = Math.floor((u + h - 7 * y + 114) / 31), g = (u + h - 7 * y + 114) % 31 + 1, b = Date.UTC(t, p - 1, g + e), T = Date.UTC(t, 0, 1);
2316
- return [Math.ceil((b - T) / (1e3 * 60 * 60 * 24))];
2317
- }
2318
- var Io = (
2319
- /** @class */
2320
- function() {
2321
- function t(e) {
2322
- this.options = e;
2323
- }
2324
- return t.prototype.rebuild = function(e, n) {
2325
- var r = this.options;
2326
- if (e !== this.lastyear && (this.yearinfo = Do(e, r)), Q(r.bynweekday) && (n !== this.lastmonth || e !== this.lastyear)) {
2327
- var a = this.yearinfo, i = a.yearlen, o = a.mrange, l = a.wdaymask;
2328
- this.monthinfo = Ro(e, n, i, o, l, r);
2329
- }
2330
- Z(r.byeaster) && (this.eastermask = Lo(e, r.byeaster));
2331
- }, Object.defineProperty(t.prototype, "lastyear", {
2332
- get: function() {
2333
- return this.monthinfo ? this.monthinfo.lastyear : null;
2334
- },
2335
- enumerable: !1,
2336
- configurable: !0
2337
- }), Object.defineProperty(t.prototype, "lastmonth", {
2338
- get: function() {
2339
- return this.monthinfo ? this.monthinfo.lastmonth : null;
2340
- },
2341
- enumerable: !1,
2342
- configurable: !0
2343
- }), Object.defineProperty(t.prototype, "yearlen", {
2344
- get: function() {
2345
- return this.yearinfo.yearlen;
2346
- },
2347
- enumerable: !1,
2348
- configurable: !0
2349
- }), Object.defineProperty(t.prototype, "yearordinal", {
2350
- get: function() {
2351
- return this.yearinfo.yearordinal;
2352
- },
2353
- enumerable: !1,
2354
- configurable: !0
2355
- }), Object.defineProperty(t.prototype, "mrange", {
2356
- get: function() {
2357
- return this.yearinfo.mrange;
2358
- },
2359
- enumerable: !1,
2360
- configurable: !0
2361
- }), Object.defineProperty(t.prototype, "wdaymask", {
2362
- get: function() {
2363
- return this.yearinfo.wdaymask;
2364
- },
2365
- enumerable: !1,
2366
- configurable: !0
2367
- }), Object.defineProperty(t.prototype, "mmask", {
2368
- get: function() {
2369
- return this.yearinfo.mmask;
2370
- },
2371
- enumerable: !1,
2372
- configurable: !0
2373
- }), Object.defineProperty(t.prototype, "wnomask", {
2374
- get: function() {
2375
- return this.yearinfo.wnomask;
2376
- },
2377
- enumerable: !1,
2378
- configurable: !0
2379
- }), Object.defineProperty(t.prototype, "nwdaymask", {
2380
- get: function() {
2381
- return this.monthinfo ? this.monthinfo.nwdaymask : [];
2382
- },
2383
- enumerable: !1,
2384
- configurable: !0
2385
- }), Object.defineProperty(t.prototype, "nextyearlen", {
2386
- get: function() {
2387
- return this.yearinfo.nextyearlen;
2388
- },
2389
- enumerable: !1,
2390
- configurable: !0
2391
- }), Object.defineProperty(t.prototype, "mdaymask", {
2392
- get: function() {
2393
- return this.yearinfo.mdaymask;
2394
- },
2395
- enumerable: !1,
2396
- configurable: !0
2397
- }), Object.defineProperty(t.prototype, "nmdaymask", {
2398
- get: function() {
2399
- return this.yearinfo.nmdaymask;
2400
- },
2401
- enumerable: !1,
2402
- configurable: !0
2403
- }), t.prototype.ydayset = function() {
2404
- return [we(this.yearlen), 0, this.yearlen];
2405
- }, t.prototype.mdayset = function(e, n) {
2406
- for (var r = this.mrange[n - 1], a = this.mrange[n], i = N(null, this.yearlen), o = r; o < a; o++)
2407
- i[o] = o;
2408
- return [i, r, a];
2409
- }, t.prototype.wdayset = function(e, n, r) {
2410
- for (var a = N(null, this.yearlen + 7), i = It(Ie(e, n, r)) - this.yearordinal, o = i, l = 0; l < 7 && (a[i] = i, ++i, this.wdaymask[i] !== this.options.wkst); l++)
2411
- ;
2412
- return [a, o, i];
2413
- }, t.prototype.ddayset = function(e, n, r) {
2414
- var a = N(null, this.yearlen), i = It(Ie(e, n, r)) - this.yearordinal;
2415
- return a[i] = i, [a, i, i + 1];
2416
- }, t.prototype.htimeset = function(e, n, r, a) {
2417
- var i = this, o = [];
2418
- return this.options.byminute.forEach(function(l) {
2419
- o = o.concat(i.mtimeset(e, l, r, a));
2420
- }), Ve(o), o;
2421
- }, t.prototype.mtimeset = function(e, n, r, a) {
2422
- var i = this.options.bysecond.map(function(o) {
2423
- return new ut(e, n, o, a);
2424
- });
2425
- return Ve(i), i;
2426
- }, t.prototype.stimeset = function(e, n, r, a) {
2427
- return [new ut(e, n, r, a)];
2428
- }, t.prototype.getdayset = function(e) {
2429
- switch (e) {
2430
- case U.YEARLY:
2431
- return this.ydayset.bind(this);
2432
- case U.MONTHLY:
2433
- return this.mdayset.bind(this);
2434
- case U.WEEKLY:
2435
- return this.wdayset.bind(this);
2436
- case U.DAILY:
2437
- return this.ddayset.bind(this);
2438
- default:
2439
- return this.ddayset.bind(this);
2440
- }
2441
- }, t.prototype.gettimeset = function(e) {
2442
- switch (e) {
2443
- case U.HOURLY:
2444
- return this.htimeset.bind(this);
2445
- case U.MINUTELY:
2446
- return this.mtimeset.bind(this);
2447
- case U.SECONDLY:
2448
- return this.stimeset.bind(this);
2449
- }
2450
- }, t;
2451
- }()
2452
- );
2453
- function Ao(t, e, n, r, a, i) {
2454
- for (var o = [], l = 0; l < t.length; l++) {
2455
- var s = void 0, u = void 0, d = t[l];
2456
- d < 0 ? (s = Math.floor(d / e.length), u = fe(d, e.length)) : (s = Math.floor((d - 1) / e.length), u = fe(d - 1, e.length));
2457
- for (var f = [], h = n; h < r; h++) {
2458
- var y = i[h];
2459
- Z(y) && f.push(y);
2460
- }
2461
- var p = void 0;
2462
- s < 0 ? p = f.slice(s)[0] : p = f[s];
2463
- var g = e[u], b = br(a.yearordinal + p), T = $r(b, g);
2464
- F(o, T) || o.push(T);
2465
- }
2466
- return Ve(o), o;
2467
- }
2468
- function Er(t, e) {
2469
- var n = e.dtstart, r = e.freq, a = e.interval, i = e.until, o = e.bysetpos, l = e.count;
2470
- if (l === 0 || a === 0)
2471
- return Se(t);
2472
- var s = lo.fromDate(n), u = new Io(e);
2473
- u.rebuild(s.year, s.month);
2474
- for (var d = Po(u, s, e); ; ) {
2475
- var f = u.getdayset(r)(s.year, s.month, s.day), h = f[0], y = f[1], p = f[2], g = Uo(h, y, p, u, e);
2476
- if (Q(o))
2477
- for (var b = Ao(o, d, y, p, u, h), T = 0; T < b.length; T++) {
2478
- var L = b[T];
2479
- if (i && L > i)
2480
- return Se(t);
2481
- if (L >= n) {
2482
- var V = In(L, e);
2483
- if (!t.accept(V) || l && (--l, !l))
2484
- return Se(t);
2485
- }
2486
- }
2487
- else
2488
- for (var T = y; T < p; T++) {
2489
- var ie = h[T];
2490
- if (Z(ie))
2491
- for (var he = br(u.yearordinal + ie), ee = 0; ee < d.length; ee++) {
2492
- var Re = d[ee], L = $r(he, Re);
2493
- if (i && L > i)
2494
- return Se(t);
2495
- if (L >= n) {
2496
- var V = In(L, e);
2497
- if (!t.accept(V) || l && (--l, !l))
2498
- return Se(t);
2499
- }
2500
- }
2501
- }
2502
- if (e.interval === 0 || (s.add(e, g), s.year > mr))
2503
- return Se(t);
2504
- Gt(r) || (d = u.gettimeset(r)(s.hour, s.minute, s.second, 0)), u.rebuild(s.year, s.month);
2505
- }
2506
- }
2507
- function No(t, e, n) {
2508
- var r = n.bymonth, a = n.byweekno, i = n.byweekday, o = n.byeaster, l = n.bymonthday, s = n.bynmonthday, u = n.byyearday;
2509
- return Q(r) && !F(r, t.mmask[e]) || Q(a) && !t.wnomask[e] || Q(i) && !F(i, t.wdaymask[e]) || Q(t.nwdaymask) && !t.nwdaymask[e] || o !== null && !F(t.eastermask, e) || (Q(l) || Q(s)) && !F(l, t.mdaymask[e]) && !F(s, t.nmdaymask[e]) || Q(u) && (e < t.yearlen && !F(u, e + 1) && !F(u, -t.yearlen + e) || e >= t.yearlen && !F(u, e + 1 - t.yearlen) && !F(u, -t.nextyearlen + e - t.yearlen));
2510
- }
2511
- function In(t, e) {
2512
- return new ft(t, e.tzid).rezonedDate();
2513
- }
2514
- function Se(t) {
2515
- return t.getValue();
2516
- }
2517
- function Uo(t, e, n, r, a) {
2518
- for (var i = !1, o = e; o < n; o++) {
2519
- var l = t[o];
2520
- i = No(r, l, a), i && (t[l] = null);
2521
- }
2522
- return i;
2523
- }
2524
- function Po(t, e, n) {
2525
- var r = n.freq, a = n.byhour, i = n.byminute, o = n.bysecond;
2526
- return Gt(r) ? uo(n) : r >= x.HOURLY && Q(a) && !F(a, e.hour) || r >= x.MINUTELY && Q(i) && !F(i, e.minute) || r >= x.SECONDLY && Q(o) && !F(o, e.second) ? [] : t.gettimeset(r)(e.hour, e.minute, e.second, e.millisecond);
2527
- }
2528
- var me = {
2529
- MO: new oe(0),
2530
- TU: new oe(1),
2531
- WE: new oe(2),
2532
- TH: new oe(3),
2533
- FR: new oe(4),
2534
- SA: new oe(5),
2535
- SU: new oe(6)
2536
- }, Zt = {
2537
- freq: U.YEARLY,
2538
- dtstart: null,
2539
- interval: 1,
2540
- wkst: me.MO,
2541
- count: null,
2542
- until: null,
2543
- tzid: null,
2544
- bysetpos: null,
2545
- bymonth: null,
2546
- bymonthday: null,
2547
- bynmonthday: null,
2548
- byyearday: null,
2549
- byweekno: null,
2550
- byweekday: null,
2551
- bynweekday: null,
2552
- byhour: null,
2553
- byminute: null,
2554
- bysecond: null,
2555
- byeaster: null
2556
- }, Yo = Object.keys(Zt), x = (
2557
- /** @class */
2558
- function() {
2559
- function t(e, n) {
2560
- e === void 0 && (e = {}), n === void 0 && (n = !1), this._cache = n ? null : new go(), this.origOptions = kr(e);
2561
- var r = co(e).parsedOptions;
2562
- this.options = r;
2563
- }
2564
- return t.parseText = function(e, n) {
2565
- return wr(e, n);
2566
- }, t.fromText = function(e, n) {
2567
- return oo(e, n);
2568
- }, t.fromString = function(e) {
2569
- return new t(t.parseString(e) || void 0);
2570
- }, t.prototype._iter = function(e) {
2571
- return Er(e, this.options);
2572
- }, t.prototype._cacheGet = function(e, n) {
2573
- return this._cache ? this._cache._cacheGet(e, n) : !1;
2574
- }, t.prototype._cacheAdd = function(e, n, r) {
2575
- if (this._cache)
2576
- return this._cache._cacheAdd(e, n, r);
2577
- }, t.prototype.all = function(e) {
2578
- if (e)
2579
- return this._iter(new _n("all", {}, e));
2580
- var n = this._cacheGet("all");
2581
- return n === !1 && (n = this._iter(new Fe("all", {})), this._cacheAdd("all", n)), n;
2582
- }, t.prototype.between = function(e, n, r, a) {
2583
- if (r === void 0 && (r = !1), !Je(e) || !Je(n))
2584
- throw new Error("Invalid date passed in to RRule.between");
2585
- var i = {
2586
- before: n,
2587
- after: e,
2588
- inc: r
2589
- };
2590
- if (a)
2591
- return this._iter(new _n("between", i, a));
2592
- var o = this._cacheGet("between", i);
2593
- return o === !1 && (o = this._iter(new Fe("between", i)), this._cacheAdd("between", o, i)), o;
2594
- }, t.prototype.before = function(e, n) {
2595
- if (n === void 0 && (n = !1), !Je(e))
2596
- throw new Error("Invalid date passed in to RRule.before");
2597
- var r = { dt: e, inc: n }, a = this._cacheGet("before", r);
2598
- return a === !1 && (a = this._iter(new Fe("before", r)), this._cacheAdd("before", a, r)), a;
2599
- }, t.prototype.after = function(e, n) {
2600
- if (n === void 0 && (n = !1), !Je(e))
2601
- throw new Error("Invalid date passed in to RRule.after");
2602
- var r = { dt: e, inc: n }, a = this._cacheGet("after", r);
2603
- return a === !1 && (a = this._iter(new Fe("after", r)), this._cacheAdd("after", a, r)), a;
2604
- }, t.prototype.count = function() {
2605
- return this.all().length;
2606
- }, t.prototype.toString = function() {
2607
- return Pt(this.origOptions);
2608
- }, t.prototype.toText = function(e, n, r) {
2609
- return io(this, e, n, r);
2610
- }, t.prototype.isFullyConvertibleToText = function() {
2611
- return so(this);
2612
- }, t.prototype.clone = function() {
2613
- return new t(this.origOptions);
2614
- }, t.FREQUENCIES = [
2615
- "YEARLY",
2616
- "MONTHLY",
2617
- "WEEKLY",
2618
- "DAILY",
2619
- "HOURLY",
2620
- "MINUTELY",
2621
- "SECONDLY"
2622
- ], t.YEARLY = U.YEARLY, t.MONTHLY = U.MONTHLY, t.WEEKLY = U.WEEKLY, t.DAILY = U.DAILY, t.HOURLY = U.HOURLY, t.MINUTELY = U.MINUTELY, t.SECONDLY = U.SECONDLY, t.MO = me.MO, t.TU = me.TU, t.WE = me.WE, t.TH = me.TH, t.FR = me.FR, t.SA = me.SA, t.SU = me.SU, t.parseString = Ut, t.optionsToString = Pt, t;
2623
- }()
2624
- );
2625
- function Ho(t, e, n, r, a, i) {
2626
- var o = {}, l = t.accept;
2627
- function s(h, y) {
2628
- n.forEach(function(p) {
2629
- p.between(h, y, !0).forEach(function(g) {
2630
- o[Number(g)] = !0;
2631
- });
2632
- });
2633
- }
2634
- a.forEach(function(h) {
2635
- var y = new ft(h, i).rezonedDate();
2636
- o[Number(y)] = !0;
2637
- }), t.accept = function(h) {
2638
- var y = Number(h);
2639
- return isNaN(y) ? l.call(this, h) : !o[y] && (s(new Date(y - 1), new Date(y + 1)), !o[y]) ? (o[y] = !0, l.call(this, h)) : !0;
2640
- }, t.method === "between" && (s(t.args.after, t.args.before), t.accept = function(h) {
2641
- var y = Number(h);
2642
- return o[y] ? !0 : (o[y] = !0, l.call(this, h));
2643
- });
2644
- for (var u = 0; u < r.length; u++) {
2645
- var d = new ft(r[u], i).rezonedDate();
2646
- if (!t.accept(new Date(d.getTime())))
2647
- break;
2648
- }
2649
- e.forEach(function(h) {
2650
- Er(t, h.options);
2651
- });
2652
- var f = t._result;
2653
- switch (Ve(f), t.method) {
2654
- case "all":
2655
- case "between":
2656
- return f;
2657
- case "before":
2658
- return f.length && f[f.length - 1] || null;
2659
- case "after":
2660
- default:
2661
- return f.length && f[0] || null;
2662
- }
2663
- }
2664
- var An = {
2665
- dtstart: null,
2666
- cache: !1,
2667
- unfold: !1,
2668
- forceset: !1,
2669
- compatible: !1,
2670
- tzid: null
2671
- };
2672
- function jo(t, e) {
2673
- var n = [], r = [], a = [], i = [], o = dt(t), l = o.dtstart, s = o.tzid, u = qo(t, e.unfold);
2674
- return u.forEach(function(d) {
2675
- var f;
2676
- if (d) {
2677
- var h = Bo(d), y = h.name, p = h.parms, g = h.value;
2678
- switch (y.toUpperCase()) {
2679
- case "RRULE":
2680
- if (p.length)
2681
- throw new Error("unsupported RRULE parm: ".concat(p.join(",")));
2682
- n.push(Ut(d));
2683
- break;
2684
- case "RDATE":
2685
- var b = (f = /RDATE(?:;TZID=([^:=]+))?/i.exec(d)) !== null && f !== void 0 ? f : [], T = b[1];
2686
- T && !s && (s = T), r = r.concat(Un(g, p));
2687
- break;
2688
- case "EXRULE":
2689
- if (p.length)
2690
- throw new Error("unsupported EXRULE parm: ".concat(p.join(",")));
2691
- a.push(Ut(g));
2692
- break;
2693
- case "EXDATE":
2694
- i = i.concat(Un(g, p));
2695
- break;
2696
- case "DTSTART":
2697
- break;
2698
- default:
2699
- throw new Error("unsupported property: " + y);
2700
- }
2701
- }
2702
- }), {
2703
- dtstart: l,
2704
- tzid: s,
2705
- rrulevals: n,
2706
- rdatevals: r,
2707
- exrulevals: a,
2708
- exdatevals: i
2709
- };
2710
- }
2711
- function Fo(t, e) {
2712
- var n = jo(t, e), r = n.rrulevals, a = n.rdatevals, i = n.exrulevals, o = n.exdatevals, l = n.dtstart, s = n.tzid, u = e.cache === !1;
2713
- if (e.compatible && (e.forceset = !0, e.unfold = !0), e.forceset || r.length > 1 || a.length || i.length || o.length) {
2714
- var d = new Go(u);
2715
- return d.dtstart(l), d.tzid(s || void 0), r.forEach(function(h) {
2716
- d.rrule(new x(Ct(h, l, s), u));
2717
- }), a.forEach(function(h) {
2718
- d.rdate(h);
2719
- }), i.forEach(function(h) {
2720
- d.exrule(new x(Ct(h, l, s), u));
2721
- }), o.forEach(function(h) {
2722
- d.exdate(h);
2723
- }), e.compatible && e.dtstart && d.rdate(l), d;
2724
- }
2725
- var f = r[0] || {};
2726
- return new x(Ct(f, f.dtstart || e.dtstart || l, f.tzid || e.tzid || s), u);
2727
- }
2728
- function Nn(t, e) {
2729
- return e === void 0 && (e = {}), Fo(t, Wo(e));
2730
- }
2731
- function Ct(t, e, n) {
2732
- return ue(ue({}, t), { dtstart: e, tzid: n });
2733
- }
2734
- function Wo(t) {
2735
- var e = [], n = Object.keys(t), r = Object.keys(An);
2736
- if (n.forEach(function(a) {
2737
- F(r, a) || e.push(a);
2738
- }), e.length)
2739
- throw new Error("Invalid options: " + e.join(", "));
2740
- return ue(ue({}, An), t);
2741
- }
2742
- function zo(t) {
2743
- if (t.indexOf(":") === -1)
2744
- return {
2745
- name: "RRULE",
2746
- value: t
2747
- };
2748
- var e = Ja(t, ":", 1), n = e[0], r = e[1];
2749
- return {
2750
- name: n,
2751
- value: r
2752
- };
2753
- }
2754
- function Bo(t) {
2755
- var e = zo(t), n = e.name, r = e.value, a = n.split(";");
2756
- if (!a)
2757
- throw new Error("empty property name");
2758
- return {
2759
- name: a[0].toUpperCase(),
2760
- parms: a.slice(1),
2761
- value: r
2762
- };
2763
- }
2764
- function qo(t, e) {
2765
- if (e === void 0 && (e = !1), t = t && t.trim(), !t)
2766
- throw new Error("Invalid empty string");
2767
- if (!e)
2768
- return t.split(/\s/);
2769
- for (var n = t.split(`
2770
- `), r = 0; r < n.length; ) {
2771
- var a = n[r] = n[r].replace(/\s+$/g, "");
2772
- a ? r > 0 && a[0] === " " ? (n[r - 1] += a.slice(1), n.splice(r, 1)) : r += 1 : n.splice(r, 1);
2773
- }
2774
- return n;
2775
- }
2776
- function Ko(t) {
2777
- t.forEach(function(e) {
2778
- if (!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))
2779
- throw new Error("unsupported RDATE/EXDATE parm: " + e);
2780
- });
2781
- }
2782
- function Un(t, e) {
2783
- return Ko(e), t.split(",").map(function(n) {
2784
- return qt(n);
2785
- });
2786
- }
2787
- function Pn(t) {
2788
- var e = this;
2789
- return function(n) {
2790
- if (n !== void 0 && (e["_".concat(t)] = n), e["_".concat(t)] !== void 0)
2791
- return e["_".concat(t)];
2792
- for (var r = 0; r < e._rrule.length; r++) {
2793
- var a = e._rrule[r].origOptions[t];
2794
- if (a)
2795
- return a;
2796
- }
2797
- };
2798
- }
2799
- var Go = (
2800
- /** @class */
2801
- function(t) {
2802
- Kt(e, t);
2803
- function e(n) {
2804
- n === void 0 && (n = !1);
2805
- var r = t.call(this, {}, n) || this;
2806
- return r.dtstart = Pn.apply(r, ["dtstart"]), r.tzid = Pn.apply(r, ["tzid"]), r._rrule = [], r._rdate = [], r._exrule = [], r._exdate = [], r;
2807
- }
2808
- return e.prototype._iter = function(n) {
2809
- return Ho(n, this._rrule, this._exrule, this._rdate, this._exdate, this.tzid());
2810
- }, e.prototype.rrule = function(n) {
2811
- Yn(n, this._rrule);
2812
- }, e.prototype.exrule = function(n) {
2813
- Yn(n, this._exrule);
2814
- }, e.prototype.rdate = function(n) {
2815
- Hn(n, this._rdate);
2816
- }, e.prototype.exdate = function(n) {
2817
- Hn(n, this._exdate);
2818
- }, e.prototype.rrules = function() {
2819
- return this._rrule.map(function(n) {
2820
- return Nn(n.toString());
2821
- });
2822
- }, e.prototype.exrules = function() {
2823
- return this._exrule.map(function(n) {
2824
- return Nn(n.toString());
2825
- });
2826
- }, e.prototype.rdates = function() {
2827
- return this._rdate.map(function(n) {
2828
- return new Date(n.getTime());
2829
- });
2830
- }, e.prototype.exdates = function() {
2831
- return this._exdate.map(function(n) {
2832
- return new Date(n.getTime());
2833
- });
2834
- }, e.prototype.valueOf = function() {
2835
- var n = [];
2836
- return !this._rrule.length && this._dtstart && (n = n.concat(Pt({ dtstart: this._dtstart }))), this._rrule.forEach(function(r) {
2837
- n = n.concat(r.toString().split(`
2838
- `));
2839
- }), this._exrule.forEach(function(r) {
2840
- n = n.concat(r.toString().split(`
2841
- `).map(function(a) {
2842
- return a.replace(/^RRULE:/, "EXRULE:");
2843
- }).filter(function(a) {
2844
- return !/^DTSTART/.test(a);
2845
- }));
2846
- }), this._rdate.length && n.push(jn("RDATE", this._rdate, this.tzid())), this._exdate.length && n.push(jn("EXDATE", this._exdate, this.tzid())), n;
2847
- }, e.prototype.toString = function() {
2848
- return this.valueOf().join(`
2849
- `);
2850
- }, e.prototype.clone = function() {
2851
- var n = new e(!!this._cache);
2852
- return this._rrule.forEach(function(r) {
2853
- return n.rrule(r.clone());
2854
- }), this._exrule.forEach(function(r) {
2855
- return n.exrule(r.clone());
2856
- }), this._rdate.forEach(function(r) {
2857
- return n.rdate(new Date(r.getTime()));
2858
- }), this._exdate.forEach(function(r) {
2859
- return n.exdate(new Date(r.getTime()));
2860
- }), n;
2861
- }, e;
2862
- }(x)
2863
- );
2864
- function Yn(t, e) {
2865
- if (!(t instanceof x))
2866
- throw new TypeError(String(t) + " is not RRule instance");
2867
- F(e.map(String), String(t)) || e.push(t);
2868
- }
2869
- function Hn(t, e) {
2870
- if (!(t instanceof Date))
2871
- throw new TypeError(String(t) + " is not Date instance");
2872
- F(e.map(Number), Number(t)) || (e.push(t), Ve(e));
2873
- }
2874
- function jn(t, e, n) {
2875
- var r = !n || n.toUpperCase() === "UTC", a = r ? "".concat(t, ":") : "".concat(t, ";TZID=").concat(n, ":"), i = e.map(function(o) {
2876
- return Bt(o.valueOf(), r);
2877
- }).join(",");
2878
- return "".concat(a).concat(i);
2879
- }
2880
- function vi(...t) {
2881
- window && window.localStorage && window.localStorage.getItem("debug") && console.debug(...t);
2882
- }
2883
- function bi(...t) {
2884
- console.error(...t);
2885
- }
2886
- function $i() {
2887
- return Math.random().toString(36).substr(2, 9);
2888
- }
2889
- function wi(t) {
2890
- return t.toString().replace(/^on/, "");
2891
- }
2892
- function ki(t) {
2893
- const e = new Date(t * 1e3), n = /* @__PURE__ */ new Date(), r = new Date(n.getFullYear(), n.getMonth(), n.getDate());
2894
- return e >= r ? new Intl.DateTimeFormat("default", {
2895
- hour: "numeric",
2896
- minute: "numeric",
2897
- hour12: !0
2898
- }).format(e) : new Intl.DateTimeFormat("default", {
2899
- month: "short",
2900
- day: "numeric"
2901
- }).format(e);
2902
- }
2903
- function Ei(t) {
2904
- return t.name ? `${t.name} - ${t.email}` : t.email;
2905
- }
2906
- function Ti(t, e = "", n = 1, r = 3) {
2907
- const a = t.find((s) => {
2908
- var u;
2909
- return ((u = s.email) == null ? void 0 : u.toLowerCase()) === e.toLowerCase();
2910
- }), i = t.filter((s) => {
2911
- var u;
2912
- return ((u = s.email) == null ? void 0 : u.toLowerCase()) !== e.toLowerCase();
2913
- }), o = i.length, l = i.slice(0, r).map((s) => s.name || s.email).join(", ");
2914
- return o === 0 ? a ? "me" : "" : o === 1 ? a && n > 1 ? `me, ${l}` : l : o === 2 ? a ? `me, ${l}` : `${l}` : a ? `me, ${l}, +${o - r}` : `${l}, +${o - r}`;
2915
- }
2916
- const Fn = [
2917
- { amount: 60, name: "seconds" },
2918
- { amount: 60, name: "minutes" },
2919
- { amount: 24, name: "hours" },
2920
- { amount: 7, name: "days" },
2921
- { amount: 4.34524, name: "weeks" },
2922
- { amount: 12, name: "months" },
2923
- { amount: Number.POSITIVE_INFINITY, name: "years" }
2924
- ], Si = (t) => {
2925
- const e = new Intl.RelativeTimeFormat(void 0, {
2926
- numeric: "auto"
2927
- }), n = /* @__PURE__ */ new Date();
2928
- let r = (t.getTime() - n.getTime()) / 1e3;
2929
- for (let a = 0; a <= Fn.length; a++) {
2930
- const i = Fn[a];
2931
- if (Math.abs(r) < i.amount)
2932
- return e.format(Math.round(r), i.name);
2933
- r /= i.amount;
2934
- }
2935
- };
2936
- function Ci(t) {
2937
- return new Date(t.getFullYear(), t.getMonth() + 1, 0);
2938
- }
2939
- function xi(t) {
2940
- return new Date(t.getFullYear(), t.getMonth(), 1);
2941
- }
2942
- function Oi(t, e) {
2943
- return t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate();
2944
- }
2945
- function _i(t, e) {
2946
- return t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth();
2947
- }
2948
- function Di(t) {
2949
- return t.replace(/\w\S*/g, (e) => e.charAt(0).toUpperCase() + e.substr(1).toLowerCase());
2950
- }
2951
- function Mi(t) {
2952
- return t.replace("CATEGORY_", "").replace(/_/g, " ");
2953
- }
2954
- function Zo(t) {
2955
- return /<[^>]*>/g.test(t) ? "html" : "plain";
2956
- }
2957
- function Ri(t) {
2958
- var a, i;
2959
- const e = t.headers, n = e && ((a = e.find((o) => o.name === "Content-Type")) == null ? void 0 : a.value) || "", r = e && ((i = e.find((o) => o.name === "Content-Disposition")) == null ? void 0 : i.value) || "";
2960
- return !!(n.includes("text/html") || r.includes("inline") || t.body && Zo(t.body) === "html");
2961
- }
2962
- function Li(t) {
2963
- let r = t.split(`
2964
- `).filter((i) => i.trim().length > 0).map((i) => `<p>${i}</p>`).join("");
2965
- const a = /((?:https?|ftp):\/\/[^\s]+)/g;
2966
- return r = r.replace(a, '<a href="$1">$1</a>'), r;
2967
- }
2968
- function Ii(t) {
2969
- return new DOMParser().parseFromString(t, "text/html").body.textContent || "";
2970
- }
2971
- const Ai = (t) => t === "" ? !0 : /^(0[0-9]|1[0-2]|^[0-9])(:[0-5][0-9][ap]m?|:[0-5][0-9]|:[0-5]|:)?$/i.test(t), Ni = (t) => /^(0[1-9]|1[0-2]):([0-5][0-9])(am|pm)$/i.test(t);
2972
- function Ui(t = null) {
2973
- let e = yr();
2974
- t && (e = t);
2975
- const n = e.minute() % 15;
2976
- let r;
2977
- return n !== 0 ? r = e.add(15 - n, "minute") : r = e, r;
2978
- }
2979
- function Pi(t) {
2980
- const e = yr();
2981
- let n = "";
2982
- const [r, a] = t.split(":");
2983
- r.length === 1 ? n += "0" + r : r.length === 2 && (n += r), n += ":", a === void 0 || a == "" ? n += "00" : a.length === 1 ? n += a + "0" : n += a;
2984
- const i = n.slice(-1);
2985
- return i === "a" && (n += "m"), i === "p" && (n += "m"), n.slice(-1) !== "m" && (n.split(":")[0] == "00" ? n += "am" : n += e.format("a")), n;
2986
- }
2987
- function Yi(t) {
2988
- const [e, n] = t.split(":").map((l) => parseInt(l, 10));
2989
- let r = e;
2990
- const a = r >= 12 ? "pm" : "am";
2991
- r = r % 12, r = r || 12;
2992
- const i = r.toString().padStart(2, "0"), o = n.toString().padStart(2, "0");
2993
- return `${i}:${o}${a}`;
2994
- }
2995
- function Hi(t) {
2996
- const [e, n] = t.split(/(am|pm)/i), [r, a] = e.split(":").map((o) => parseInt(o, 10));
2997
- let i = r;
2998
- return n.toLowerCase() === "pm" && i < 12 ? i += 12 : n.toLowerCase() === "am" && i === 12 && (i = 0), `${i.toString().padStart(2, "0")}:${a.toString().padStart(2, "0")}`;
2999
- }
3000
- function ji(t) {
3001
- const [e, n] = t.match(/(\d+):(\d+)(am|pm)/).slice(1);
3002
- let r = parseInt(e, 10) * 60 + parseInt(n, 10);
3003
- return t.includes("pm") && parseInt(e, 10) < 12 && (r += 12 * 60), t.includes("am") && parseInt(e, 10) === 12 && (r -= 12 * 60), r;
3004
- }
3005
- function Fi(t) {
3006
- const e = Math.floor(t / 60), n = t % 60;
3007
- return `${e}:${n < 10 ? "0" : ""}${n}`;
3008
- }
3009
- function Wi() {
3010
- const t = navigator.userAgent, e = /Chrome/.test(t) && /Google Inc/.test(navigator.vendor), n = /Safari/.test(t) && /Apple Computer/.test(navigator.vendor), r = /Firefox/.test(t), a = /Trident/.test(t), i = /Edge/.test(t);
3011
- return e && /Edg/.test(t) ? "Edge (Chromium)" : e ? "Chrome" : n ? "Safari" : r ? "Firefox" : a ? "Internet Explorer" : i ? "Edge (Legacy)" : "Unknown";
3012
- }
3013
- function Wn(t, e = null) {
3014
- return e ? [null, e] : [t, null];
3015
- }
3016
- function zi(t, e) {
3017
- const n = {
3018
- "config.id": e == null ? void 0 : e.id,
3019
- id: e == null ? void 0 : e.id
3020
- };
3021
- return Object.keys(n).forEach((r) => {
3022
- t = t.replace(`{${r}}`, n[r]);
3023
- }), t;
3024
- }
3025
- function Bi(t) {
3026
- if (t.keyCode < 48 || t.keyCode > 90 && t.keyCode < 96 || t.keyCode > 111 && t.keyCode < 186 || t.keyCode > 222 || t.keyCode === 32 || t.keyCode === 91 || t.keyCode === 92 || t.keyCode === 93 || t.keyCode >= 112 && t.keyCode <= 123 || t.keyCode >= 37 && t.keyCode <= 40 || t.ctrlKey || t.altKey || t.metaKey)
3027
- return !0;
3028
- const e = [
3029
- 48,
3030
- 49,
3031
- 50,
3032
- 51,
3033
- 52,
3034
- 53,
3035
- 54,
3036
- 55,
3037
- 56,
3038
- 57,
3039
- 186,
3040
- 187,
3041
- 188,
3042
- 189,
3043
- 190,
3044
- 191,
3045
- 192,
3046
- 219,
3047
- 220,
3048
- 221,
3049
- 222
3050
- ];
3051
- return t.shiftKey && e.includes(t.keyCode), !1;
3052
- }
3053
- class qi {
3054
- constructor(e) {
3055
- this.defaultAuthArgs = {}, this.session = e;
3056
- }
3057
- setActiveGrantId(e) {
3058
- this.activeGrantId = e;
3059
- }
3060
- async request({ method: e, path: n, body: r, headers: a }) {
3061
- try {
3062
- const i = await this.session.fetch(`grants/me/${n}`, {
3063
- method: e,
3064
- headers: a ? new Headers(a) : void 0,
3065
- body: r,
3066
- ...this.session.isMultiAccount() && this.activeGrantId ? { grant_id: this.activeGrantId } : {}
3067
- });
3068
- if (typeof i > "u")
3069
- throw new Error("Response is undefined");
3070
- return Wn(i);
3071
- } catch (i) {
3072
- return Wn(null, {
3073
- message: String(i)
3074
- });
3075
- }
3076
- }
3077
- async currentUser() {
3078
- const e = this.session.isMultiAccount() ? this.activeGrantId : void 0, n = await this.session.getProfile(e);
3079
- return n ? {
3080
- id: n.sub,
3081
- email: n.email,
3082
- name: n.name
3083
- } : null;
3084
- }
3085
- async authenticationUrl(e) {
3086
- let n = this.defaultAuthArgs || {};
3087
- return e && (n = { ...n, ...e }), this.session.auth(n);
3088
- }
3089
- setDefaultAuthArgs(e) {
3090
- this.defaultAuthArgs = e;
3091
- }
3092
- }
3093
- Ka({});
3094
- function Ki() {
3095
- var t = [];
3096
- if (typeof window < "u") {
3097
- var e = window;
3098
- (!e.customElements || e.Element && (!e.Element.prototype.closest || !e.Element.prototype.matches || !e.Element.prototype.remove || !e.Element.prototype.getRootNode)) && t.push(import(
3099
- /* webpackChunkName: "polyfills-dom" */
3100
- "./dom-86e17616.js"
3101
- ));
3102
- var n = function() {
3103
- try {
3104
- var r = new URL("b", "http://a");
3105
- return r.pathname = "c%20d", r.href === "http://a/c%20d" && r.searchParams;
3106
- } catch {
3107
- return !1;
3108
- }
3109
- };
3110
- (typeof Object.assign != "function" || !Object.entries || !Array.prototype.find || !Array.prototype.includes || !String.prototype.startsWith || !String.prototype.endsWith || e.NodeList && !e.NodeList.prototype.forEach || !e.fetch || !n() || typeof WeakMap > "u") && t.push(import(
3111
- /* webpackChunkName: "polyfills-core-js" */
3112
- "./core-js-a9d3b6e1.js"
3113
- ));
3114
- }
3115
- return Promise.all(t);
3116
- }
3117
- async function Jo() {
3118
- await import("./elements-dc5b338e-62fe1cf3.js");
3119
- }
3120
- const Xo = Jo, Qo = (t, e) => {
3121
- if (!(typeof window > "u"))
3122
- return Xo(), Da(JSON.parse('[["nylas-scheduler-editor",[[1,"nylas-scheduler-editor",{"defaultRequiresSessionAuth":[1028,"default-requires-session-auth"],"configurationId":[1025,"configuration-id"],"nylasApiRequest":[1040],"nylasSessionsConfig":[16],"defaultAuthArgs":[16],"eventOverrides":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"defaultSchedulerConfigStoreState":[16],"mode":[1],"automaticComponentRegistration":[32],"store":[64],"schedulerConnector":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]],{"defaultRequiresSessionAuth":["defaultRequiresSessionAuthChanged"],"configurationId":["configurationIdChanged"]}]]],["nylas-scheduling",[[1,"nylas-scheduling",{"mode":[1],"defaultSchedulerState":[16],"sessionId":[1,"session-id"],"schedulerApiUrl":[1,"scheduler-api-url"],"bookingInfo":[16],"rescheduleBookingId":[1,"reschedule-booking-id"],"cancelBookingId":[1,"cancel-booking-id"],"configurationId":[1,"configuration-id"],"nylasBranding":[4,"nylas-branding"],"eventOverrides":[16],"isLoading":[4,"is-loading"],"themeConfig":[16],"showNotification":[4,"show-notification"],"automaticComponentRegistration":[32],"selectedDateLabel":[32],"getNylasSchedulerStore":[64],"getNylasSchedulerConnector":[64],"getRef":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"],[0,"monthChanged","monthChangedHandler"],[0,"detailsConfirmed","bookButtonClickedHandler"],[0,"dateSelected","dateSelectedHandler"],[0,"cancelBookedEventError","cancelBookedEventErrorHandler"],[0,"rescheduleBookedEventError","rescheduleBookedEventErrorHandler"]],{"bookingInfo":["bookingInfoChanged"]}]]],["nylas-view-thread",[[1,"nylas-view-thread",{"draft":[16],"thread":[16],"messages":[16],"attachments":[16],"state":[32],"internalMessages":[32],"showAllEmails":[32],"showComposer":[32]},null,{"thread":["threadChanged"],"messages":["updateInternalMessages"]}]]],["nylas-list-folders",[[1,"nylas-list-folders",{"folders":[16],"selectedFolder":[1,"selected-folder"],"defaultFolders":[32],"otherFolders":[32]},null,{"folders":["watchFolders"]}]]],["nylas-additional-participants",[[65,"nylas-additional-participants",{"name":[1],"eventParticipants":[16],"participants":[32],"participantsValid":[32]},null,{"name":["elementNameChangedHandler"]}]]],["nylas-mailbox-pagination",[[1,"nylas-mailbox-pagination",{"state":[1],"hasNextPage":[4,"has-next-page"],"hasPreviousPage":[4,"has-previous-page"],"scrollTarget":[1,"scroll-target"],"mobileOnlyInfiniteScroll":[4,"mobile-only-infinite-scroll"],"mobileViewPortWidth":[2,"mobile-view-port-width"],"nextPage":[64],"previousPage":[64]},[[9,"scroll","handlePageScroll"]]]]],["nylas-threads-refresh",[[1,"nylas-threads-refresh",{"start":[32],"state":[32],"pulling":[32],"updateState":[64]}]]],["document-refresh-icon",[[2,"document-refresh-icon",{"width":[1],"height":[1]}]]],["nylas-if-state",[[1,"nylas-if-state",{"state":[1],"isStateSet":[4,"is-state-set"],"isBoolean":[4,"is-boolean"],"getStore":[16],"transition":[1],"show":[32],"classes":[32]},null,{"getStore":["onGetStoreChange"]}]]],["nylas-list-threads",[[1,"nylas-list-threads",{"threads":[16],"isAuthenticated":[4,"is-authenticated"],"tokenInfo":[16],"state":[1],"showCheckbox":[4,"show-checkbox"]}]]],["nylas-login",[[1,"nylas-login",{"isAuthenticated":[4,"is-authenticated"],"nylasConnector":[16],"scopes":[16],"loginMethod":[1,"login-method"],"companyName":[1,"company-name"],"logoUrl":[1,"logo-url"],"logoWidth":[1,"logo-width"],"providers":[1],"buttonText":[1,"button-text"],"email":[32]}]]],["nylas-mailbox",[[1,"nylas-mailbox",{"automaticComponentRegistration":[4,"automatic-component-registration"],"eventOverrides":[16],"authConfig":[16],"defaultAuthStoreState":[16],"defaultMailboxStoreState":[16],"getMailboxStore":[64],"getAuthStore":[64],"getNylasAuth":[64],"getNylasMailboxConnector":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["nylas-mailbox-toolbar-button",[[1,"nylas-mailbox-toolbar-button",{"method":[1],"dataState":[1,"data-state"],"iconOnly":[4,"icon-only"],"mailboxConnector":[16]}]]],["nylas-provider",[[1,"nylas-provider",{"authConfig":[16],"eventOverrides":[16],"automaticComponentRegistration":[4,"automatic-component-registration"],"getNylasAuth":[64],"getNylasConnector":[64],"getMailboxStore":[64],"getAuthStore":[64],"getNylasSchedulerStore":[64],"getNylasSchedulerConfigStore":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["nylas-threads-search",[[1,"nylas-threads-search",{"query":[1],"internalQuery":[32]},null,{"query":["onQueryChange"]}]]],["people-icon",[[2,"people-icon",{"width":[1],"height":[1]}]]],["arrow-icon",[[2,"arrow-icon",{"width":[1],"height":[1]}]]],["refresh-icon",[[2,"refresh-icon",{"width":[1],"height":[1]}]]],["translate-icon",[[2,"translate-icon",{"width":[1],"height":[1]}]]],["warning-icon",[[2,"warning-icon",{"width":[1],"height":[1]}]]],["calendar-cancel-icon",[[2,"calendar-cancel-icon",{"width":[1],"height":[1]}]]],["time-period-selector",[[2,"time-period-selector",{"timePeriods":[16],"defaultSelectedPeriod":[1,"default-selected-period"],"defaultSelectedNumber":[2,"default-selected-number"],"selectedPeriod":[32],"selectedNumber":[32],"numberOptions":[32],"timePeriodOptions":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"defaultSelectedPeriod":["defaultSelectedPeriodChangedHandler"],"defaultSelectedNumber":["defaultSelectedNumberChangedHandler"],"timePeriods":["timePeriodsChangedHandler"]}]]],["calendar-icon",[[2,"calendar-icon",{"width":[1],"height":[1]}]]],["nylas-form-card",[[65,"nylas-form-card"]]],["loading-icon",[[1,"loading-icon",{"width":[1],"height":[1]}]]],["globe-icon",[[2,"globe-icon",{"width":[1],"height":[1]}]]],["close-icon",[[2,"close-icon",{"width":[1],"height":[1]}]]],["chevron-icon_3",[[1,"select-dropdown",{"name":[1],"options":[16],"defaultSelectedOption":[16],"withSearch":[4,"with-search"],"pluralizedLabel":[1,"pluralized-label"],"selectedOption":[32],"isOpen":[32],"searchValue":[32],"filteredOptions":[32],"ariaActivedescendant":[32]},[[6,"click","handleOutsideClick"]],{"options":["optionsChangedHandler"],"defaultSelectedOption":["defaultSelectedOptionChangedHandler"]}],[2,"search-icon",{"width":[1],"height":[1]}],[2,"chevron-icon",{"width":[1],"height":[1]}]]],["add-circle-icon_22",[[65,"nylas-availability-picker",{"selectedConfiguration":[16],"openHours":[16],"name":[1],"defaultTimezone":[1,"default-timezone"],"schedule":[32],"timezone":[32],"overlapDays":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["configChangedHandler"],"schedule":["scheduleChanged"]}],[65,"nylas-location-component",{"selectedConfiguration":[16],"eventLocation":[1,"event-location"],"name":[1],"location":[32],"selectedLocationOption":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"eventLocation":["eventLocationChangedHandler"]}],[65,"nylas-limit-future-bookings",{"selectedConfiguration":[16],"availableDaysInFuture":[2,"available-days-in-future"],"name":[1],"selectedNumber":[32],"selectedPeriod":[32]},[[0,"timePeriodChanged","timePeriodChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"availableDaysInFuture":["availableDaysInFutureChanged"]}],[65,"nylas-min-cancellation-notice",{"selectedConfiguration":[16],"minCancellationNotice":[2,"min-cancellation-notice"],"name":[1],"selectedNumber":[32],"selectedPeriod":[32]},[[0,"timePeriodChanged","timePeriodChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"availableDaysInFuture":["availableDaysInFutureChanged"]}],[65,"nylas-booking-calendar-picker",{"calendars":[16],"currentUser":[16],"name":[1],"defaultBookingCalendar":[1,"default-booking-calendar"],"selectedCalendar":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-calendar-picker",{"calendars":[16],"currentUser":[16],"name":[1],"defaultSelectedCalendars":[16],"selectedCalendars":[32]},[[0,"selectedOptionsChanged","selectedOptionsChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-custom-booking-flow",{"selectedConfiguration":[16],"name":[1],"bookingType":[1,"booking-type"],"selectedBookingType":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}],[65,"nylas-event-duration",{"selectedConfiguration":[16],"name":[1],"eventDurationMinutes":[2,"event-duration-minutes"],"duration":[32],"durationMinutes":[32],"durationIncrement":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"durationMinutes":["durationMinutesChangedHandler"]}],[65,"nylas-buffer-time",{"name":[1],"buffer":[16],"selectedBeforeBufferTime":[32],"selectedAfterBufferTime":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-event-description",{"selectedConfiguration":[16],"eventDescription":[1,"event-description"],"name":[1],"description":[32]},null,{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}],[65,"nylas-event-title",{"selectedConfiguration":[16],"eventTitle":[1,"event-title"],"name":[1],"showTokens":[32],"availableTokens":[32],"filteredTokens":[32],"ariaActivedescendant":[32],"currentWord":[32],"validationError":[32]},[[8,"formSubmitted","formSubmittedHandler"]],{"name":["elementNameChangedHandler"],"ariaActivedescendant":["ariaActivedescendantChangedHandler"],"selectedConfiguration":["configChangedHandler"]}],[65,"nylas-event-info"],[65,"nylas-event-limits"],[2,"calendar-info-icon",{"width":[1],"height":[1]}],[2,"calendar-patterns-icon",{"width":[1],"height":[1]}],[2,"flow-icon",{"width":[1],"height":[1]}],[1,"multi-select-dropdown",{"name":[1],"label":[1],"options":[16],"availableOptions":[32],"isOpen":[32],"ariaActivedescendant":[32],"shouldFocusFirstOption":[32]},[[6,"click","handleOutsideClick"]]],[2,"add-circle-icon",{"width":[1],"height":[1]}],[6,"button-component",{"variant":[1],"disabled":[4],"type":[1],"clickHandler":[16],"mouseOverHandler":[16],"mouseOutHandler":[16],"focusHandler":[16],"blurHandler":[16]}],[2,"location-icon",{"width":[1],"height":[1]}],[2,"location-off-icon",{"width":[1],"height":[1]}],[1,"nylas-time-window-picker",{"time":[1],"minimumStartTime":[1,"minimum-start-time"],"placeholder":[1],"setTime":[16],"name":[1],"hasError":[4,"has-error"],"setFormError":[16],"err":[32],"showTimes":[32],"ariaActivedescendant":[32],"times":[32],"shouldAutoScroll":[32]},[[4,"click","handleOutsideClick"]],{"minimumStartTime":["minimumStartTimeChangedHandler"]}]]],["google-logo-icon_4",[[6,"nylas-editor-tabs",{"calendars":[16],"selectedConfiguration":[16],"currentUser":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"mode":[1],"action":[32],"activeTab":[32],"isLoading":[32],"hasUnsavedChanges":[32],"changesSaved":[32],"formState":[32],"error":[32]},[[0,"valueChanged","handleValueChanged"]],{"selectedConfiguration":["configChangedHandler"]}],[1,"nylas-list-configurations",{"configurations":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"state":[32],"error":[32],"getState":[64],"setState":[64],"setError":[64]}],[2,"google-logo-icon",{"width":[1],"height":[1]}],[2,"microsoft-logo-icon",{"width":[1],"height":[1]}]]],["calendar-check-icon_2",[[2,"calendar-check-icon",{"width":[1],"height":[1]}],[2,"checkmark-circle-icon",{"width":[1],"height":[1]}]]],["play-icon_2",[[2,"play-icon",{"width":[1],"height":[1]}],[2,"stop-icon",{"width":[1],"height":[1]}]]],["bold-icon_3",[[2,"bold-icon",{"width":[1],"height":[1]}],[2,"italic-icon",{"width":[1],"height":[1]}],[2,"underline-icon",{"width":[1],"height":[1]}]]],["forward-icon_6",[[1,"nylas-composer",{"message":[16],"viewEmailElement":[16]},null,{"message":["watchBody"]}],[1,"nylas-summarize-message-button",{"message":[16],"state":[32],"updateState":[64],"playAudio":[64]}],[2,"forward-icon",{"width":[1],"height":[1]}],[1,"nylas-view-email",{"message":[16],"parent":[16],"attachments":[16],"detectDarkMode":[4,"detect-dark-mode"],"state":[32],"sanitizedBody":[32],"styles":[32],"viewEmailElement":[32],"hoistedFontURLs":[32]},[[9,"resize","handleScroll"]],{"message":["messageChanged"],"viewEmailElement":["viewEmailElementChanged"]}],[2,"reply-all-icon",{"width":[1],"height":[1]}],[2,"reply-icon",{"width":[1],"height":[1]}]]],["archive-icon_7",[[2,"archive-icon",{"width":[1],"height":[1]}],[2,"folder-icon",{"width":[1],"height":[1]}],[2,"inbox-icon",{"width":[1],"height":[1]}],[2,"sent-icon",{"width":[1],"height":[1]}],[2,"spam-icon",{"width":[1],"height":[1]}],[2,"star-icon",{"width":[1],"height":[1]}],[2,"trash-icon",{"width":[1],"height":[1]}]]],["nylas-booked-event-card_10",[[1,"nylas-locale-switch",{"selectedTimezone":[1025,"selected-timezone"],"selectedLanguage":[1025,"selected-language"]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]]],[1,"nylas-booked-event-card",{"eventInfo":[16],"rescheduleBookingId":[1,"reschedule-booking-id"],"bookingInfo":[8,"booking-info"],"selectedTimezone":[1,"selected-timezone"],"selectedTimeslot":[16]}],[1,"nylas-notification",{"ttl":[8],"allowedCategories":[16],"notifications":[32]},[[16,"nylasSchedulerError","onError"],[16,"nylasSchedulerWarning","onWarning"],[16,"nylasSchedulerInfo","onInfo"],[16,"nylasSchedulerSuccess","onSuccess"]]],[1,"nylas-selected-event-card",{"selectedDate":[16],"selectedTimeslot":[16],"selectedTimezone":[1,"selected-timezone"],"startTime":[32],"endTime":[32]},null,{"selectedTimeslot":["handleSelectedTimeslotChange"]}],[1,"nylas-booking-form",{"isLoading":[4,"is-loading"],"bookingInfo":[8,"booking-info"],"eventInfo":[16],"name":[32],"email":[32],"guestEmails":[32],"guestEmailErrors":[32],"isNameValid":[32],"isEmailValid":[32],"validationError":[32]},null,{"bookingInfo":["bookingInfoChangedHandler"]}],[1,"nylas-cancel-booking-form",{"cancelBookingId":[1,"cancel-booking-id"],"cancellationReason":[32],"cancellationError":[32]}],[1,"nylas-cancelled-event-card",{"cancelledEventInfo":[16]}],[1,"nylas-date-picker",{"selectableDates":[16],"selectedDate":[16],"isLoading":[4,"is-loading"],"month":[32],"dates":[32]}],[2,"nylas-logo",{"width":[1],"height":[1]}],[1,"nylas-timeslot-picker",{"selectedDate":[16],"availability":[16],"selectedTimeslot":[16],"isLoading":[4,"loading-state"],"selectedTimezone":[1,"selected-timezone"],"times":[32],"hoveredTimeslotIndex":[32],"selectedTimeslotIndex":[32]},null,{"selectedDate":["selectedDateChanged"],"availability":["availabilityChanged"]}]]],["info-icon_2",[[2,"info-icon",{"width":[1],"height":[1]}],[1,"tooltip-component",{"position":[1]}]]]]'), e);
3123
- };
3124
- (function() {
3125
- if (typeof window < "u" && window.Reflect !== void 0 && window.customElements !== void 0) {
3126
- var t = HTMLElement;
3127
- window.HTMLElement = function() {
3128
- return Reflect.construct(t, [], this.constructor);
3129
- }, HTMLElement.prototype = t.prototype, HTMLElement.prototype.constructor = HTMLElement, Object.setPrototypeOf(HTMLElement, t);
3130
- }
3131
- })();
3132
- var Yt = { exports: {} }, Ge = {};
3133
- /**
3134
- * @license React
3135
- * react-jsx-runtime.production.min.js
3136
- *
3137
- * Copyright (c) Facebook, Inc. and its affiliates.
3138
- *
3139
- * This source code is licensed under the MIT license found in the
3140
- * LICENSE file in the root directory of this source tree.
3141
- */
3142
- var zn;
3143
- function Vo() {
3144
- if (zn)
3145
- return Ge;
3146
- zn = 1;
3147
- var t = ht, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
3148
- function o(l, s, u) {
3149
- var d, f = {}, h = null, y = null;
3150
- u !== void 0 && (h = "" + u), s.key !== void 0 && (h = "" + s.key), s.ref !== void 0 && (y = s.ref);
3151
- for (d in s)
3152
- r.call(s, d) && !i.hasOwnProperty(d) && (f[d] = s[d]);
3153
- if (l && l.defaultProps)
3154
- for (d in s = l.defaultProps, s)
3155
- f[d] === void 0 && (f[d] = s[d]);
3156
- return { $$typeof: e, type: l, key: h, ref: y, props: f, _owner: a.current };
3157
- }
3158
- return Ge.Fragment = n, Ge.jsx = o, Ge.jsxs = o, Ge;
3159
- }
3160
- var Ze = {};
3161
- /**
3162
- * @license React
3163
- * react-jsx-runtime.development.js
3164
- *
3165
- * Copyright (c) Facebook, Inc. and its affiliates.
3166
- *
3167
- * This source code is licensed under the MIT license found in the
3168
- * LICENSE file in the root directory of this source tree.
3169
- */
3170
- var Bn;
3171
- function ei() {
3172
- return Bn || (Bn = 1, process.env.NODE_ENV !== "production" && function() {
3173
- var t = ht, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), p = Symbol.iterator, g = "@@iterator";
3174
- function b(c) {
3175
- if (c === null || typeof c != "object")
3176
- return null;
3177
- var m = p && c[p] || c[g];
3178
- return typeof m == "function" ? m : null;
3179
- }
3180
- var T = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
3181
- function L(c) {
3182
- {
3183
- for (var m = arguments.length, k = new Array(m > 1 ? m - 1 : 0), O = 1; O < m; O++)
3184
- k[O - 1] = arguments[O];
3185
- V("error", c, k);
3186
- }
3187
- }
3188
- function V(c, m, k) {
3189
- {
3190
- var O = T.ReactDebugCurrentFrame, Y = O.getStackAddendum();
3191
- Y !== "" && (m += "%s", k = k.concat([Y]));
3192
- var j = k.map(function(A) {
3193
- return String(A);
3194
- });
3195
- j.unshift("Warning: " + m), Function.prototype.apply.call(console[c], console, j);
3196
- }
3197
- }
3198
- var ie = !1, he = !1, ee = !1, Re = !1, Ae = !1, q;
3199
- q = Symbol.for("react.module.reference");
3200
- function H(c) {
3201
- return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || Ae || c === a || c === u || c === d || Re || c === y || ie || he || ee || typeof c == "object" && c !== null && (c.$$typeof === h || c.$$typeof === f || c.$$typeof === o || c.$$typeof === l || c.$$typeof === s || // This needs to include all possible module reference object
3202
- // types supported by any Flight configuration anywhere since
3203
- // we don't know which Flight build this will end up being used
3204
- // with.
3205
- c.$$typeof === q || c.getModuleId !== void 0));
3206
- }
3207
- function Ne(c, m, k) {
3208
- var O = c.displayName;
3209
- if (O)
3210
- return O;
3211
- var Y = m.displayName || m.name || "";
3212
- return Y !== "" ? k + "(" + Y + ")" : k;
3213
- }
3214
- function Be(c) {
3215
- return c.displayName || "Context";
3216
- }
3217
- function C(c) {
3218
- if (c == null)
3219
- return null;
3220
- if (typeof c.tag == "number" && L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
3221
- return c.displayName || c.name || null;
3222
- if (typeof c == "string")
3223
- return c;
3224
- switch (c) {
3225
- case r:
3226
- return "Fragment";
3227
- case n:
3228
- return "Portal";
3229
- case i:
3230
- return "Profiler";
3231
- case a:
3232
- return "StrictMode";
3233
- case u:
3234
- return "Suspense";
3235
- case d:
3236
- return "SuspenseList";
3237
- }
3238
- if (typeof c == "object")
3239
- switch (c.$$typeof) {
3240
- case l:
3241
- var m = c;
3242
- return Be(m) + ".Consumer";
3243
- case o:
3244
- var k = c;
3245
- return Be(k._context) + ".Provider";
3246
- case s:
3247
- return Ne(c, c.render, "ForwardRef");
3248
- case f:
3249
- var O = c.displayName || null;
3250
- return O !== null ? O : C(c.type) || "Memo";
3251
- case h: {
3252
- var Y = c, j = Y._payload, A = Y._init;
3253
- try {
3254
- return C(A(j));
3255
- } catch {
3256
- return null;
3257
- }
3258
- }
3259
- }
3260
- return null;
3261
- }
3262
- var E = Object.assign, w = 0, _, S, R, D, P, z, W;
3263
- function J() {
3264
- }
3265
- J.__reactDisabledLog = !0;
3266
- function ge() {
3267
- {
3268
- if (w === 0) {
3269
- _ = console.log, S = console.info, R = console.warn, D = console.error, P = console.group, z = console.groupCollapsed, W = console.groupEnd;
3270
- var c = {
3271
- configurable: !0,
3272
- enumerable: !0,
3273
- value: J,
3274
- writable: !0
3275
- };
3276
- Object.defineProperties(console, {
3277
- info: c,
3278
- log: c,
3279
- warn: c,
3280
- error: c,
3281
- group: c,
3282
- groupCollapsed: c,
3283
- groupEnd: c
3284
- });
3285
- }
3286
- w++;
3287
- }
3288
- }
3289
- function ye() {
3290
- {
3291
- if (w--, w === 0) {
3292
- var c = {
3293
- configurable: !0,
3294
- enumerable: !0,
3295
- writable: !0
3296
- };
3297
- Object.defineProperties(console, {
3298
- log: E({}, c, {
3299
- value: _
3300
- }),
3301
- info: E({}, c, {
3302
- value: S
3303
- }),
3304
- warn: E({}, c, {
3305
- value: R
3306
- }),
3307
- error: E({}, c, {
3308
- value: D
3309
- }),
3310
- group: E({}, c, {
3311
- value: P
3312
- }),
3313
- groupCollapsed: E({}, c, {
3314
- value: z
3315
- }),
3316
- groupEnd: E({}, c, {
3317
- value: W
3318
- })
3319
- });
3320
- }
3321
- w < 0 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
3322
- }
3323
- }
3324
- var ke = T.ReactCurrentDispatcher, Ee;
3325
- function pe(c, m, k) {
3326
- {
3327
- if (Ee === void 0)
3328
- try {
3329
- throw Error();
3330
- } catch (Y) {
3331
- var O = Y.stack.trim().match(/\n( *(at )?)/);
3332
- Ee = O && O[1] || "";
3333
- }
3334
- return `
3335
- ` + Ee + c;
3336
- }
3337
- }
3338
- var X = !1, se;
3339
- {
3340
- var qe = typeof WeakMap == "function" ? WeakMap : Map;
3341
- se = new qe();
3342
- }
3343
- function Le(c, m) {
3344
- if (!c || X)
3345
- return "";
3346
- {
3347
- var k = se.get(c);
3348
- if (k !== void 0)
3349
- return k;
3350
- }
3351
- var O;
3352
- X = !0;
3353
- var Y = Error.prepareStackTrace;
3354
- Error.prepareStackTrace = void 0;
3355
- var j;
3356
- j = ke.current, ke.current = null, ge();
3357
- try {
3358
- if (m) {
3359
- var A = function() {
3360
- throw Error();
3361
- };
3362
- if (Object.defineProperty(A.prototype, "props", {
3363
- set: function() {
3364
- throw Error();
3365
- }
3366
- }), typeof Reflect == "object" && Reflect.construct) {
3367
- try {
3368
- Reflect.construct(A, []);
3369
- } catch (Te) {
3370
- O = Te;
3371
- }
3372
- Reflect.construct(c, [], A);
3373
- } else {
3374
- try {
3375
- A.call();
3376
- } catch (Te) {
3377
- O = Te;
3378
- }
3379
- c.call(A.prototype);
3380
- }
3381
- } else {
3382
- try {
3383
- throw Error();
3384
- } catch (Te) {
3385
- O = Te;
3386
- }
3387
- c();
3388
- }
3389
- } catch (Te) {
3390
- if (Te && O && typeof Te.stack == "string") {
3391
- for (var I = Te.stack.split(`
3392
- `), ae = O.stack.split(`
3393
- `), K = I.length - 1, G = ae.length - 1; K >= 1 && G >= 0 && I[K] !== ae[G]; )
3394
- G--;
3395
- for (; K >= 1 && G >= 0; K--, G--)
3396
- if (I[K] !== ae[G]) {
3397
- if (K !== 1 || G !== 1)
3398
- do
3399
- if (K--, G--, G < 0 || I[K] !== ae[G]) {
3400
- var de = `
3401
- ` + I[K].replace(" at new ", " at ");
3402
- return c.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", c.displayName)), typeof c == "function" && se.set(c, de), de;
3403
- }
3404
- while (K >= 1 && G >= 0);
3405
- break;
3406
- }
3407
- }
3408
- } finally {
3409
- X = !1, ke.current = j, ye(), Error.prepareStackTrace = Y;
3410
- }
3411
- var Pe = c ? c.displayName || c.name : "", cn = Pe ? pe(Pe) : "";
3412
- return typeof c == "function" && se.set(c, cn), cn;
3413
- }
3414
- function Cr(c, m, k) {
3415
- return Le(c, !1);
3416
- }
3417
- function xr(c) {
3418
- var m = c.prototype;
3419
- return !!(m && m.isReactComponent);
3420
- }
3421
- function tt(c, m, k) {
3422
- if (c == null)
3423
- return "";
3424
- if (typeof c == "function")
3425
- return Le(c, xr(c));
3426
- if (typeof c == "string")
3427
- return pe(c);
3428
- switch (c) {
3429
- case u:
3430
- return pe("Suspense");
3431
- case d:
3432
- return pe("SuspenseList");
3433
- }
3434
- if (typeof c == "object")
3435
- switch (c.$$typeof) {
3436
- case s:
3437
- return Cr(c.render);
3438
- case f:
3439
- return tt(c.type, m, k);
3440
- case h: {
3441
- var O = c, Y = O._payload, j = O._init;
3442
- try {
3443
- return tt(j(Y), m, k);
3444
- } catch {
3445
- }
3446
- }
3447
- }
3448
- return "";
3449
- }
3450
- var nt = Object.prototype.hasOwnProperty, Jt = {}, Xt = T.ReactDebugCurrentFrame;
3451
- function rt(c) {
3452
- if (c) {
3453
- var m = c._owner, k = tt(c.type, c._source, m ? m.type : null);
3454
- Xt.setExtraStackFrame(k);
3455
- } else
3456
- Xt.setExtraStackFrame(null);
3457
- }
3458
- function Or(c, m, k, O, Y) {
3459
- {
3460
- var j = Function.call.bind(nt);
3461
- for (var A in c)
3462
- if (j(c, A)) {
3463
- var I = void 0;
3464
- try {
3465
- if (typeof c[A] != "function") {
3466
- var ae = Error((O || "React class") + ": " + k + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
3467
- throw ae.name = "Invariant Violation", ae;
3468
- }
3469
- I = c[A](m, A, O, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
3470
- } catch (K) {
3471
- I = K;
3472
- }
3473
- I && !(I instanceof Error) && (rt(Y), L("%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).", O || "React class", k, A, typeof I), rt(null)), I instanceof Error && !(I.message in Jt) && (Jt[I.message] = !0, rt(Y), L("Failed %s type: %s", k, I.message), rt(null));
3474
- }
3475
- }
3476
- }
3477
- var _r = Array.isArray;
3478
- function mt(c) {
3479
- return _r(c);
3480
- }
3481
- function Dr(c) {
3482
- {
3483
- var m = typeof Symbol == "function" && Symbol.toStringTag, k = m && c[Symbol.toStringTag] || c.constructor.name || "Object";
3484
- return k;
3485
- }
3486
- }
3487
- function Mr(c) {
3488
- try {
3489
- return Qt(c), !1;
3490
- } catch {
3491
- return !0;
3492
- }
3493
- }
3494
- function Qt(c) {
3495
- return "" + c;
3496
- }
3497
- function Vt(c) {
3498
- if (Mr(c))
3499
- return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Dr(c)), Qt(c);
3500
- }
3501
- var Ke = T.ReactCurrentOwner, Rr = {
3502
- key: !0,
3503
- ref: !0,
3504
- __self: !0,
3505
- __source: !0
3506
- }, en, tn, gt;
3507
- gt = {};
3508
- function Lr(c) {
3509
- if (nt.call(c, "ref")) {
3510
- var m = Object.getOwnPropertyDescriptor(c, "ref").get;
3511
- if (m && m.isReactWarning)
3512
- return !1;
3513
- }
3514
- return c.ref !== void 0;
3515
- }
3516
- function Ir(c) {
3517
- if (nt.call(c, "key")) {
3518
- var m = Object.getOwnPropertyDescriptor(c, "key").get;
3519
- if (m && m.isReactWarning)
3520
- return !1;
3521
- }
3522
- return c.key !== void 0;
3523
- }
3524
- function Ar(c, m) {
3525
- if (typeof c.ref == "string" && Ke.current && m && Ke.current.stateNode !== m) {
3526
- var k = C(Ke.current.type);
3527
- gt[k] || (L('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(Ke.current.type), c.ref), gt[k] = !0);
3528
- }
3529
- }
3530
- function Nr(c, m) {
3531
- {
3532
- var k = function() {
3533
- en || (en = !0, L("%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)", m));
3534
- };
3535
- k.isReactWarning = !0, Object.defineProperty(c, "key", {
3536
- get: k,
3537
- configurable: !0
3538
- });
3539
- }
3540
- }
3541
- function Ur(c, m) {
3542
- {
3543
- var k = function() {
3544
- tn || (tn = !0, L("%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)", m));
3545
- };
3546
- k.isReactWarning = !0, Object.defineProperty(c, "ref", {
3547
- get: k,
3548
- configurable: !0
3549
- });
3550
- }
3551
- }
3552
- var Pr = function(c, m, k, O, Y, j, A) {
3553
- var I = {
3554
- // This tag allows us to uniquely identify this as a React Element
3555
- $$typeof: e,
3556
- // Built-in properties that belong on the element
3557
- type: c,
3558
- key: m,
3559
- ref: k,
3560
- props: A,
3561
- // Record the component responsible for creating this element.
3562
- _owner: j
3563
- };
3564
- return I._store = {}, Object.defineProperty(I._store, "validated", {
3565
- configurable: !1,
3566
- enumerable: !1,
3567
- writable: !0,
3568
- value: !1
3569
- }), Object.defineProperty(I, "_self", {
3570
- configurable: !1,
3571
- enumerable: !1,
3572
- writable: !1,
3573
- value: O
3574
- }), Object.defineProperty(I, "_source", {
3575
- configurable: !1,
3576
- enumerable: !1,
3577
- writable: !1,
3578
- value: Y
3579
- }), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
3580
- };
3581
- function Yr(c, m, k, O, Y) {
3582
- {
3583
- var j, A = {}, I = null, ae = null;
3584
- k !== void 0 && (Vt(k), I = "" + k), Ir(m) && (Vt(m.key), I = "" + m.key), Lr(m) && (ae = m.ref, Ar(m, Y));
3585
- for (j in m)
3586
- nt.call(m, j) && !Rr.hasOwnProperty(j) && (A[j] = m[j]);
3587
- if (c && c.defaultProps) {
3588
- var K = c.defaultProps;
3589
- for (j in K)
3590
- A[j] === void 0 && (A[j] = K[j]);
3591
- }
3592
- if (I || ae) {
3593
- var G = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
3594
- I && Nr(A, G), ae && Ur(A, G);
3595
- }
3596
- return Pr(c, I, ae, Y, O, Ke.current, A);
3597
- }
3598
- }
3599
- var vt = T.ReactCurrentOwner, nn = T.ReactDebugCurrentFrame;
3600
- function Ue(c) {
3601
- if (c) {
3602
- var m = c._owner, k = tt(c.type, c._source, m ? m.type : null);
3603
- nn.setExtraStackFrame(k);
3604
- } else
3605
- nn.setExtraStackFrame(null);
3606
- }
3607
- var bt;
3608
- bt = !1;
3609
- function $t(c) {
3610
- return typeof c == "object" && c !== null && c.$$typeof === e;
3611
- }
3612
- function rn() {
3613
- {
3614
- if (vt.current) {
3615
- var c = C(vt.current.type);
3616
- if (c)
3617
- return `
3618
-
3619
- Check the render method of \`` + c + "`.";
3620
- }
3621
- return "";
3622
- }
3623
- }
3624
- function Hr(c) {
3625
- {
3626
- if (c !== void 0) {
3627
- var m = c.fileName.replace(/^.*[\\\/]/, ""), k = c.lineNumber;
3628
- return `
3629
-
3630
- Check your code at ` + m + ":" + k + ".";
3631
- }
3632
- return "";
3633
- }
3634
- }
3635
- var an = {};
3636
- function jr(c) {
3637
- {
3638
- var m = rn();
3639
- if (!m) {
3640
- var k = typeof c == "string" ? c : c.displayName || c.name;
3641
- k && (m = `
3642
-
3643
- Check the top-level render call using <` + k + ">.");
3644
- }
3645
- return m;
3646
- }
3647
- }
3648
- function on(c, m) {
3649
- {
3650
- if (!c._store || c._store.validated || c.key != null)
3651
- return;
3652
- c._store.validated = !0;
3653
- var k = jr(m);
3654
- if (an[k])
3655
- return;
3656
- an[k] = !0;
3657
- var O = "";
3658
- c && c._owner && c._owner !== vt.current && (O = " It was passed a child from " + C(c._owner.type) + "."), Ue(c), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, O), Ue(null);
3659
- }
3660
- }
3661
- function sn(c, m) {
3662
- {
3663
- if (typeof c != "object")
3664
- return;
3665
- if (mt(c))
3666
- for (var k = 0; k < c.length; k++) {
3667
- var O = c[k];
3668
- $t(O) && on(O, m);
3669
- }
3670
- else if ($t(c))
3671
- c._store && (c._store.validated = !0);
3672
- else if (c) {
3673
- var Y = b(c);
3674
- if (typeof Y == "function" && Y !== c.entries)
3675
- for (var j = Y.call(c), A; !(A = j.next()).done; )
3676
- $t(A.value) && on(A.value, m);
3677
- }
3678
- }
3679
- }
3680
- function Fr(c) {
3681
- {
3682
- var m = c.type;
3683
- if (m == null || typeof m == "string")
3684
- return;
3685
- var k;
3686
- if (typeof m == "function")
3687
- k = m.propTypes;
3688
- else if (typeof m == "object" && (m.$$typeof === s || // Note: Memo only checks outer props here.
3689
- // Inner props are checked in the reconciler.
3690
- m.$$typeof === f))
3691
- k = m.propTypes;
3692
- else
3693
- return;
3694
- if (k) {
3695
- var O = C(m);
3696
- Or(k, c.props, "prop", O, c);
3697
- } else if (m.PropTypes !== void 0 && !bt) {
3698
- bt = !0;
3699
- var Y = C(m);
3700
- L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
3701
- }
3702
- typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
3703
- }
3704
- }
3705
- function Wr(c) {
3706
- {
3707
- for (var m = Object.keys(c.props), k = 0; k < m.length; k++) {
3708
- var O = m[k];
3709
- if (O !== "children" && O !== "key") {
3710
- Ue(c), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), Ue(null);
3711
- break;
3712
- }
3713
- }
3714
- c.ref !== null && (Ue(c), L("Invalid attribute `ref` supplied to `React.Fragment`."), Ue(null));
3715
- }
3716
- }
3717
- function ln(c, m, k, O, Y, j) {
3718
- {
3719
- var A = H(c);
3720
- if (!A) {
3721
- var I = "";
3722
- (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
3723
- var ae = Hr(Y);
3724
- ae ? I += ae : I += rn();
3725
- var K;
3726
- c === null ? K = "null" : mt(c) ? K = "array" : c !== void 0 && c.$$typeof === e ? (K = "<" + (C(c.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : K = typeof c, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, I);
3727
- }
3728
- var G = Yr(c, m, k, Y, j);
3729
- if (G == null)
3730
- return G;
3731
- if (A) {
3732
- var de = m.children;
3733
- if (de !== void 0)
3734
- if (O)
3735
- if (mt(de)) {
3736
- for (var Pe = 0; Pe < de.length; Pe++)
3737
- sn(de[Pe], c);
3738
- Object.freeze && Object.freeze(de);
3739
- } else
3740
- L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
3741
- else
3742
- sn(de, c);
3743
- }
3744
- return c === r ? Wr(G) : Fr(G), G;
3745
- }
3746
- }
3747
- function zr(c, m, k) {
3748
- return ln(c, m, k, !0);
3749
- }
3750
- function Br(c, m, k) {
3751
- return ln(c, m, k, !1);
3752
- }
3753
- var qr = Br, Kr = zr;
3754
- Ze.Fragment = r, Ze.jsx = qr, Ze.jsxs = Kr;
3755
- }()), Ze;
3756
- }
3757
- process.env.NODE_ENV === "production" ? Yt.exports = Vo() : Yt.exports = ei();
3758
- var ti = Yt.exports;
3759
- const ni = (t) => t.toLowerCase().split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(""), Tr = (t) => t.replace(/([A-Z])/g, (e) => `-${e[0].toLowerCase()}`), ri = (t, e, n = {}) => {
3760
- if (t instanceof Element) {
3761
- const r = ai(t.classList, e, n);
3762
- r !== "" && (t.className = r), Object.keys(e).forEach((a) => {
3763
- if (!(a === "children" || a === "style" || a === "ref" || a === "class" || a === "className" || a === "forwardedRef"))
3764
- if (a.indexOf("on") === 0 && a[2] === a[2].toUpperCase()) {
3765
- const i = a.substring(2), o = i[0].toLowerCase() + i.substring(1);
3766
- Sr(o) || ii(t, o, e[a]);
3767
- } else
3768
- t[a] = e[a], typeof e[a] === "string" && t.setAttribute(Tr(a), e[a]);
3769
- });
3770
- }
3771
- }, ai = (t, e, n) => {
3772
- const r = e.className || e.class, a = n.className || n.class, i = xt(t), o = xt(r ? r.split(" ") : []), l = xt(a ? a.split(" ") : []), s = [];
3773
- return i.forEach((u) => {
3774
- o.has(u) ? (s.push(u), o.delete(u)) : l.has(u) || s.push(u);
3775
- }), o.forEach((u) => s.push(u)), s.join(" ");
3776
- }, oi = (t) => {
3777
- switch (t) {
3778
- case "doubleclick":
3779
- return "dblclick";
3780
- }
3781
- return t;
3782
- };
3783
- /**
3784
- * Checks if an event is supported in the current execution environment.
3785
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
3786
- */
3787
- const Sr = (t) => {
3788
- if (typeof document > "u")
3789
- return !0;
3790
- {
3791
- const e = "on" + oi(t);
3792
- let n = e in document;
3793
- if (!n) {
3794
- const r = document.createElement("div");
3795
- r.setAttribute(e, "return;"), n = typeof r[e] == "function";
3796
- }
3797
- return n;
3798
- }
3799
- }, ii = (t, e, n) => {
3800
- const r = t.__events || (t.__events = {}), a = r[e];
3801
- a && t.removeEventListener(e, a), t.addEventListener(
3802
- e,
3803
- r[e] = function(o) {
3804
- n && n.call(this, o);
3805
- }
3806
- );
3807
- }, xt = (t) => {
3808
- const e = /* @__PURE__ */ new Map();
3809
- return t.forEach((n) => e.set(n, n)), e;
3810
- }, si = (t, e) => {
3811
- typeof t == "function" ? t(e) : t != null && (t.current = e);
3812
- }, li = (...t) => (e) => {
3813
- t.forEach((n) => {
3814
- si(n, e);
3815
- });
3816
- }, ci = (t, e) => {
3817
- const n = (r, a) => /* @__PURE__ */ ti.jsx(t, { ...r, forwardedRef: a });
3818
- return n.displayName = e, ht.forwardRef(n);
3819
- }, v = (t, e, n, r) => {
3820
- r !== void 0 && r();
3821
- const a = ni(t), i = class extends ht.Component {
3822
- constructor(l) {
3823
- super(l);
3824
- wt(this, "componentEl");
3825
- wt(this, "setComponentElRef", (l) => {
3826
- this.componentEl = l;
3827
- });
3828
- }
3829
- componentDidMount() {
3830
- this.componentDidUpdate(this.props);
3831
- }
3832
- componentDidUpdate(l) {
3833
- ri(this.componentEl, this.props, l);
3834
- }
3835
- render() {
3836
- const { children: l, forwardedRef: s, style: u, className: d, ref: f, ...h } = this.props;
3837
- let y = Object.keys(h).reduce((g, b) => {
3838
- const T = h[b];
3839
- if (b.indexOf("on") === 0 && b[2] === b[2].toUpperCase()) {
3840
- const L = b.substring(2).toLowerCase();
3841
- typeof document < "u" && Sr(L) && (g[b] = T);
3842
- } else {
3843
- const L = typeof T;
3844
- (L === "string" || L === "boolean" || L === "number") && (g[Tr(b)] = T);
3845
- }
3846
- return g;
3847
- }, {});
3848
- n && (y = n(this.props, y));
3849
- const p = {
3850
- ...y,
3851
- ref: li(s, this.setComponentElRef),
3852
- style: u
3853
- };
3854
- return Jr(t, p, l);
3855
- }
3856
- static get displayName() {
3857
- return a;
3858
- }
3859
- };
3860
- return e && (i.contextType = e), ci(i, a);
3861
- };
3862
- Qo();
3863
- const Gi = /* @__PURE__ */ v("add-circle-icon"), Zi = /* @__PURE__ */ v("archive-icon"), Ji = /* @__PURE__ */ v("arrow-icon"), Xi = /* @__PURE__ */ v("bold-icon"), Qi = /* @__PURE__ */ v("button-component"), Vi = /* @__PURE__ */ v("calendar-cancel-icon"), es = /* @__PURE__ */ v("calendar-check-icon"), ts = /* @__PURE__ */ v("calendar-icon"), ns = /* @__PURE__ */ v("calendar-info-icon"), rs = /* @__PURE__ */ v("calendar-patterns-icon"), as = /* @__PURE__ */ v("checkmark-circle-icon"), os = /* @__PURE__ */ v("chevron-icon"), is = /* @__PURE__ */ v("close-icon"), ss = /* @__PURE__ */ v("document-refresh-icon"), ls = /* @__PURE__ */ v("flow-icon"), cs = /* @__PURE__ */ v("folder-icon"), us = /* @__PURE__ */ v("forward-icon"), ds = /* @__PURE__ */ v("globe-icon"), fs = /* @__PURE__ */ v("google-logo-icon"), hs = /* @__PURE__ */ v("inbox-icon"), ys = /* @__PURE__ */ v("info-icon"), ps = /* @__PURE__ */ v("italic-icon"), ms = /* @__PURE__ */ v("loading-icon"), gs = /* @__PURE__ */ v("location-icon"), vs = /* @__PURE__ */ v("location-off-icon"), bs = /* @__PURE__ */ v("microsoft-logo-icon"), $s = /* @__PURE__ */ v("multi-select-dropdown"), ws = /* @__PURE__ */ v("nylas-additional-participants"), ks = /* @__PURE__ */ v("nylas-availability-picker"), Es = /* @__PURE__ */ v("nylas-booked-event-card"), Ts = /* @__PURE__ */ v("nylas-booking-calendar-picker"), Ss = /* @__PURE__ */ v("nylas-booking-form"), Cs = /* @__PURE__ */ v("nylas-buffer-time"), xs = /* @__PURE__ */ v("nylas-calendar-picker"), Os = /* @__PURE__ */ v("nylas-cancel-booking-form"), _s = /* @__PURE__ */ v("nylas-cancelled-event-card"), Ds = /* @__PURE__ */ v("nylas-composer"), Ms = /* @__PURE__ */ v("nylas-custom-booking-flow"), Rs = /* @__PURE__ */ v("nylas-date-picker"), Ls = /* @__PURE__ */ v("nylas-editor-tabs"), Is = /* @__PURE__ */ v("nylas-event-description"), As = /* @__PURE__ */ v("nylas-event-duration"), Ns = /* @__PURE__ */ v("nylas-event-info"), Us = /* @__PURE__ */ v("nylas-event-limits"), Ps = /* @__PURE__ */ v("nylas-event-title"), Ys = /* @__PURE__ */ v("nylas-form-card"), Hs = /* @__PURE__ */ v("nylas-if-state"), js = /* @__PURE__ */ v("nylas-limit-future-bookings"), Fs = /* @__PURE__ */ v("nylas-list-configurations"), Ws = /* @__PURE__ */ v("nylas-list-folders"), zs = /* @__PURE__ */ v("nylas-list-threads"), Bs = /* @__PURE__ */ v("nylas-locale-switch"), qs = /* @__PURE__ */ v("nylas-location-component"), Ks = /* @__PURE__ */ v("nylas-login"), Gs = /* @__PURE__ */ v("nylas-logo"), Zs = /* @__PURE__ */ v("nylas-mailbox"), Js = /* @__PURE__ */ v("nylas-mailbox-pagination"), Xs = /* @__PURE__ */ v("nylas-mailbox-toolbar-button"), Qs = /* @__PURE__ */ v("nylas-min-cancellation-notice"), Vs = /* @__PURE__ */ v("nylas-notification"), el = /* @__PURE__ */ v("nylas-provider"), tl = /* @__PURE__ */ v("nylas-scheduler-editor"), nl = /* @__PURE__ */ v("nylas-scheduling"), rl = /* @__PURE__ */ v("nylas-selected-event-card"), al = /* @__PURE__ */ v("nylas-summarize-message-button"), ol = /* @__PURE__ */ v("nylas-threads-refresh"), il = /* @__PURE__ */ v("nylas-threads-search"), sl = /* @__PURE__ */ v("nylas-time-window-picker"), ll = /* @__PURE__ */ v("nylas-timeslot-picker"), cl = /* @__PURE__ */ v("nylas-view-email"), ul = /* @__PURE__ */ v("nylas-view-thread"), dl = /* @__PURE__ */ v("people-icon"), fl = /* @__PURE__ */ v("play-icon"), hl = /* @__PURE__ */ v("refresh-icon"), yl = /* @__PURE__ */ v("reply-all-icon"), pl = /* @__PURE__ */ v("reply-icon"), ml = /* @__PURE__ */ v("search-icon"), gl = /* @__PURE__ */ v("select-dropdown"), vl = /* @__PURE__ */ v("sent-icon"), bl = /* @__PURE__ */ v("spam-icon"), $l = /* @__PURE__ */ v("star-icon"), wl = /* @__PURE__ */ v("stop-icon"), kl = /* @__PURE__ */ v("time-period-selector"), El = /* @__PURE__ */ v("tooltip-component"), Tl = /* @__PURE__ */ v("translate-icon"), Sl = /* @__PURE__ */ v("trash-icon"), Cl = /* @__PURE__ */ v("underline-icon"), xl = /* @__PURE__ */ v("warning-icon");
3864
- function Ol() {
3865
- const [, t] = Xr((a) => a + 1, 0), e = kt(), n = kt(null), r = kt(null);
3866
- return Qr(() => {
3867
- e.current && (n.current || e.current.getNylasMailboxConnector().then((a) => {
3868
- a && (n.current = a, r.current = n.current.nylasAuthStore, a.nylasAuthStore.on("set", t), t());
3869
- }));
3870
- }, []), [e, r.current];
3871
- }
3872
- export {
3873
- ns as $,
3874
- Yi as A,
3875
- Hi as B,
3876
- Bi as C,
3877
- yr as D,
3878
- Pi as E,
3879
- yi as F,
3880
- Ai as G,
3881
- ia as H,
3882
- Ui as I,
3883
- Ni as J,
3884
- Fi as K,
3885
- Wi as L,
3886
- gi as M,
3887
- qi as N,
3888
- bi as O,
3889
- Ol as P,
3890
- Ki as Q,
3891
- Qo as R,
3892
- pi as S,
3893
- Gi as T,
3894
- Zi as U,
3895
- Ji as V,
3896
- Xi as W,
3897
- Qi as X,
3898
- Vi as Y,
3899
- es as Z,
3900
- ts as _,
3901
- Ti as a,
3902
- fl as a$,
3903
- rs as a0,
3904
- as as a1,
3905
- os as a2,
3906
- is as a3,
3907
- ss as a4,
3908
- ls as a5,
3909
- cs as a6,
3910
- us as a7,
3911
- ds as a8,
3912
- fs as a9,
3913
- Ys as aA,
3914
- Hs as aB,
3915
- js as aC,
3916
- Fs as aD,
3917
- Ws as aE,
3918
- zs as aF,
3919
- Bs as aG,
3920
- qs as aH,
3921
- Ks as aI,
3922
- Gs as aJ,
3923
- Zs as aK,
3924
- Js as aL,
3925
- Xs as aM,
3926
- Qs as aN,
3927
- Vs as aO,
3928
- el as aP,
3929
- tl as aQ,
3930
- nl as aR,
3931
- rl as aS,
3932
- al as aT,
3933
- ol as aU,
3934
- il as aV,
3935
- sl as aW,
3936
- ll as aX,
3937
- cl as aY,
3938
- ul as aZ,
3939
- dl as a_,
3940
- hs as aa,
3941
- ys as ab,
3942
- ps as ac,
3943
- ms as ad,
3944
- gs as ae,
3945
- vs as af,
3946
- bs as ag,
3947
- $s as ah,
3948
- ws as ai,
3949
- ks as aj,
3950
- Es as ak,
3951
- Ts as al,
3952
- Ss as am,
3953
- Cs as an,
3954
- xs as ao,
3955
- Os as ap,
3956
- _s as aq,
3957
- Ds as ar,
3958
- Ms as as,
3959
- Rs as at,
3960
- Ls as au,
3961
- Is as av,
3962
- As as aw,
3963
- Ns as ax,
3964
- Us as ay,
3965
- Ps as az,
3966
- ki as b,
3967
- hl as b0,
3968
- yl as b1,
3969
- pl as b2,
3970
- ml as b3,
3971
- gl as b4,
3972
- vl as b5,
3973
- bl as b6,
3974
- $l as b7,
3975
- wl as b8,
3976
- kl as b9,
3977
- El as ba,
3978
- Tl as bb,
3979
- Sl as bc,
3980
- Cl as bd,
3981
- xl as be,
3982
- hi as c,
3983
- vi as d,
3984
- Ka as e,
3985
- Mi as f,
3986
- da as g,
3987
- Jn as h,
3988
- Ga as i,
3989
- Wn as j,
3990
- wi as k,
3991
- Si as l,
3992
- Ei as m,
3993
- Ri as n,
3994
- Zo as o,
3995
- Li as p,
3996
- Ii as q,
3997
- mi as r,
3998
- zi as s,
3999
- Di as t,
4000
- $i as u,
4001
- Ci as v,
4002
- xi as w,
4003
- Oi as x,
4004
- _i as y,
4005
- ji as z
4006
- };