@nylas/react 1.1.0-canary.9 → 1.1.0

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 (156) hide show
  1. package/README.md +110 -2
  2. package/dist/add-circle-icon_2.entry-7165bd0e.js +25 -0
  3. package/dist/add-circle-icon_2.entry-f1ddca18.cjs +1 -0
  4. package/dist/archive-icon_7.entry-7411c224.js +75 -0
  5. package/dist/archive-icon_7.entry-e3df60ed.cjs +1 -0
  6. package/dist/arrow-icon.entry-280e18b0.cjs +1 -0
  7. package/dist/arrow-icon.entry-38949317.js +15 -0
  8. package/dist/bold-icon_3.entry-5963945c.js +35 -0
  9. package/dist/bold-icon_3.entry-5dffbedd.cjs +1 -0
  10. package/dist/button-component_2.entry-237733b4.js +26 -0
  11. package/dist/button-component_2.entry-b29d2873.cjs +1 -0
  12. package/dist/calendar-agenda-fill-icon_48.entry-9afba869.js +5105 -0
  13. package/dist/calendar-agenda-fill-icon_48.entry-d3830dbb.cjs +7 -0
  14. package/dist/calendar-cancel-icon.entry-77ccf227.cjs +1 -0
  15. package/dist/calendar-cancel-icon.entry-780723a6.js +15 -0
  16. package/dist/calendar-check-icon_2.entry-2c89c230.js +25 -0
  17. package/dist/calendar-check-icon_2.entry-b37ac7f0.cjs +1 -0
  18. package/dist/calendar-icon.entry-02dd3990.js +15 -0
  19. package/dist/calendar-icon.entry-ffc93569.cjs +1 -0
  20. package/dist/checkbox-component_2.entry-00b6a1e9.cjs +1 -0
  21. package/dist/checkbox-component_2.entry-ee9d0e6c.js +56 -0
  22. package/dist/chevron-icon_3.entry-468abc26.cjs +1 -0
  23. package/dist/chevron-icon_3.entry-f62e9ef1.js +129 -0
  24. package/dist/clock-icon_4.entry-766a1b23.js +45 -0
  25. package/dist/clock-icon_4.entry-7dc2cc4a.cjs +1 -0
  26. package/dist/constants-50c3e067-8a40a5fe.js +3883 -0
  27. package/dist/constants-50c3e067-9f2a6372.cjs +15 -0
  28. package/dist/copy-icon.entry-2a841508.js +15 -0
  29. package/dist/copy-icon.entry-e5251410.cjs +1 -0
  30. package/dist/core-js-38e53e34.cjs +4 -0
  31. package/dist/core-js-a9d3b6e1.js +3297 -0
  32. package/dist/delete-icon_2.entry-1a5c39dc.cjs +1 -0
  33. package/dist/delete-icon_2.entry-64555a2f.js +25 -0
  34. package/dist/document-refresh-icon.entry-4bf6398b.js +15 -0
  35. package/dist/document-refresh-icon.entry-fdc7ddda.cjs +1 -0
  36. package/dist/dom-68f08be9.cjs +15 -0
  37. package/dist/dom-86e17616.js +664 -0
  38. package/dist/{types/elements → elements}/index.d.ts +47 -1
  39. package/dist/elements-dc5b338e-2da1fe61.js +28031 -0
  40. package/dist/elements-dc5b338e-c8016c3d.cjs +16516 -0
  41. package/dist/flow-40ff9cea-6f8c30e2.cjs +9 -0
  42. package/dist/flow-40ff9cea-ee70fdf5.js +505 -0
  43. package/dist/focus-visible-e8093c16-0a38a184.cjs +1 -0
  44. package/dist/focus-visible-e8093c16-9d0c98c0.js +84 -0
  45. package/dist/forward-icon_6.entry-390ef70a.js +953 -0
  46. package/dist/forward-icon_6.entry-7238ef38.cjs +3 -0
  47. package/dist/globe-icon.entry-81f42f89.cjs +1 -0
  48. package/dist/globe-icon.entry-8d106260.js +15 -0
  49. package/dist/google-logo-icon_4.entry-aabd3886.js +680 -0
  50. package/dist/google-logo-icon_4.entry-fa2b8999.cjs +1 -0
  51. package/dist/index-53420959-5fc8ad2b.js +5 -0
  52. package/dist/index-53420959-fcf45780.cjs +1 -0
  53. package/dist/index-5ccfd9df.js +7859 -0
  54. package/dist/index-6d9eeb53-58c8980a.js +4971 -0
  55. package/dist/index-6d9eeb53-b2a6d09f.cjs +41 -0
  56. package/dist/index-eb33703c.cjs +42 -0
  57. package/dist/index.es-c9454237-00ccd1e6.js +3135 -0
  58. package/dist/index.es-c9454237-b64161d1.cjs +7 -0
  59. package/dist/info-icon_2.entry-b2e11336.cjs +1 -0
  60. package/dist/info-icon_2.entry-bb8ed71c.js +34 -0
  61. package/dist/input-component.entry-378b1ccc.cjs +1 -0
  62. package/dist/input-component.entry-cb86170f.js +65 -0
  63. package/dist/input-dropdown.entry-98954c93.cjs +1 -0
  64. package/dist/input-dropdown.entry-a76c339e.js +134 -0
  65. package/dist/mailbox-store-edc386fc-156b7236.cjs +1 -0
  66. package/dist/mailbox-store-edc386fc-8bc7558b.js +380 -0
  67. package/dist/multi-select-dropdown.entry-40b855e1.cjs +1 -0
  68. package/dist/multi-select-dropdown.entry-6b686695.js +91 -0
  69. package/dist/nylas-booked-event-card_12.entry-9d693125.cjs +1 -0
  70. package/dist/nylas-booked-event-card_12.entry-e861bb16.js +1134 -0
  71. package/dist/nylas-form-card.entry-b158d789.js +57 -0
  72. package/dist/nylas-form-card.entry-ca4a8746.cjs +1 -0
  73. package/dist/nylas-if-state.entry-8e4d922c.js +94 -0
  74. package/dist/nylas-if-state.entry-95fac42d.cjs +1 -0
  75. package/dist/nylas-list-folders.entry-83c39684.js +120 -0
  76. package/dist/nylas-list-folders.entry-8a22e0c8.cjs +1 -0
  77. package/dist/nylas-list-threads.entry-54c582af.cjs +1 -0
  78. package/dist/nylas-list-threads.entry-7ea370e1.js +70 -0
  79. package/dist/nylas-login.entry-9115fd81.js +73 -0
  80. package/dist/nylas-login.entry-fb627e40.cjs +1 -0
  81. package/dist/nylas-mailbox-pagination.entry-04626d27.cjs +1 -0
  82. package/dist/nylas-mailbox-pagination.entry-3ff02cf9.js +101 -0
  83. package/dist/nylas-mailbox-toolbar-button.entry-8d00c789.cjs +1 -0
  84. package/dist/nylas-mailbox-toolbar-button.entry-f752e925.js +82 -0
  85. package/dist/nylas-mailbox.entry-99c27b6c.js +134 -0
  86. package/dist/nylas-mailbox.entry-b3974f4e.cjs +1 -0
  87. package/dist/nylas-provider.entry-a3ad02a5.cjs +1 -0
  88. package/dist/nylas-provider.entry-c206aa32.js +145 -0
  89. package/dist/nylas-reminder-emails.entry-414ce6fe.js +129 -0
  90. package/dist/nylas-reminder-emails.entry-59c07bfe.cjs +4 -0
  91. package/dist/nylas-reminder-time_2.entry-197d83a0.js +105 -0
  92. package/dist/nylas-reminder-time_2.entry-d79dcd85.cjs +1 -0
  93. package/dist/nylas-scheduler-editor.entry-7f389982.js +1447 -0
  94. package/dist/nylas-scheduler-editor.entry-f1c6964a.cjs +2 -0
  95. package/dist/nylas-scheduling.entry-1a8bd6fc.cjs +1 -0
  96. package/dist/nylas-scheduling.entry-4fa5381d.js +345 -0
  97. package/dist/nylas-threads-refresh.entry-20602e7b.js +74 -0
  98. package/dist/nylas-threads-refresh.entry-56b53449.cjs +1 -0
  99. package/dist/nylas-threads-search.entry-8872473c.js +69 -0
  100. package/dist/nylas-threads-search.entry-8e0ec3ae.cjs +1 -0
  101. package/dist/nylas-time-window-picker.entry-9ac542b7.js +316 -0
  102. package/dist/nylas-time-window-picker.entry-ca47f721.cjs +1 -0
  103. package/dist/nylas-view-thread.entry-1f758e43.cjs +1 -0
  104. package/dist/nylas-view-thread.entry-dcd3d5be.js +203 -0
  105. package/dist/person-icon.entry-63b28ace.cjs +1 -0
  106. package/dist/person-icon.entry-93130c05.js +15 -0
  107. package/dist/play-icon_2.entry-6a99c32d.js +25 -0
  108. package/dist/play-icon_2.entry-b67fb649.cjs +1 -0
  109. package/dist/react.cjs +1 -0
  110. package/dist/react.js +144 -0
  111. package/dist/refresh-icon.entry-84783c91.js +15 -0
  112. package/dist/refresh-icon.entry-b49792fc.cjs +1 -0
  113. package/dist/register-component-887199a9-003f96c5.cjs +1 -0
  114. package/dist/register-component-887199a9-b41dfa7a.js +109 -0
  115. package/dist/scheduler-config-store-2a3b403d-73610089.js +27 -0
  116. package/dist/scheduler-config-store-2a3b403d-a5e3433a.cjs +1 -0
  117. package/dist/scheduler-store-fe281404-bddb1b6a.js +469 -0
  118. package/dist/scheduler-store-fe281404-c3e477f6.cjs +1 -0
  119. package/dist/textarea-component.entry-28c4bc05.cjs +1 -0
  120. package/dist/textarea-component.entry-40e959e5.js +36 -0
  121. package/dist/time-period-selector.entry-af71523a.cjs +1 -0
  122. package/dist/time-period-selector.entry-da5d8652.js +93 -0
  123. package/dist/translate-icon.entry-92b83635.js +15 -0
  124. package/dist/translate-icon.entry-a2ed4f76.cjs +1 -0
  125. package/dist/warning-icon.entry-19f721c3.js +15 -0
  126. package/dist/warning-icon.entry-3ab9a59e.cjs +1 -0
  127. package/package.json +12 -8
  128. package/dist/elements/index.js +0 -92
  129. package/dist/elements/index.js.map +0 -1
  130. package/dist/elements/react-component-lib/createComponent.js +0 -65
  131. package/dist/elements/react-component-lib/createComponent.js.map +0 -1
  132. package/dist/elements/react-component-lib/createOverlayComponent.js +0 -98
  133. package/dist/elements/react-component-lib/createOverlayComponent.js.map +0 -1
  134. package/dist/elements/react-component-lib/index.js +0 -3
  135. package/dist/elements/react-component-lib/index.js.map +0 -1
  136. package/dist/elements/react-component-lib/interfaces.js +0 -2
  137. package/dist/elements/react-component-lib/interfaces.js.map +0 -1
  138. package/dist/elements/react-component-lib/utils/attachProps.js +0 -92
  139. package/dist/elements/react-component-lib/utils/attachProps.js.map +0 -1
  140. package/dist/elements/react-component-lib/utils/case.js +0 -7
  141. package/dist/elements/react-component-lib/utils/case.js.map +0 -1
  142. package/dist/elements/react-component-lib/utils/dev.js +0 -13
  143. package/dist/elements/react-component-lib/utils/dev.js.map +0 -1
  144. package/dist/elements/react-component-lib/utils/index.js +0 -31
  145. package/dist/elements/react-component-lib/utils/index.js.map +0 -1
  146. package/dist/index.js +0 -29
  147. package/dist/index.js.map +0 -1
  148. /package/dist/{types/elements → elements}/react-component-lib/createComponent.d.ts +0 -0
  149. /package/dist/{types/elements → elements}/react-component-lib/createOverlayComponent.d.ts +0 -0
  150. /package/dist/{types/elements → elements}/react-component-lib/index.d.ts +0 -0
  151. /package/dist/{types/elements → elements}/react-component-lib/interfaces.d.ts +0 -0
  152. /package/dist/{types/elements → elements}/react-component-lib/utils/attachProps.d.ts +0 -0
  153. /package/dist/{types/elements → elements}/react-component-lib/utils/case.d.ts +0 -0
  154. /package/dist/{types/elements → elements}/react-component-lib/utils/dev.d.ts +0 -0
  155. /package/dist/{types/elements → elements}/react-component-lib/utils/index.d.ts +0 -0
  156. /package/dist/{types/index.d.ts → index.d.ts} +0 -0
@@ -0,0 +1,664 @@
1
+ (function() {
2
+ var f = new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));
3
+ function h(e) {
4
+ var t = f.has(e);
5
+ return e = /^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e), !t && e;
6
+ }
7
+ function s(e) {
8
+ var t = e.isConnected;
9
+ if (t !== void 0)
10
+ return t;
11
+ for (; e && !(e.__CE_isImportDocument || e instanceof Document); )
12
+ e = e.parentNode || (window.ShadowRoot && e instanceof ShadowRoot ? e.host : void 0);
13
+ return !(!e || !(e.__CE_isImportDocument || e instanceof Document));
14
+ }
15
+ function m(e, t) {
16
+ for (; t && t !== e && !t.nextSibling; )
17
+ t = t.parentNode;
18
+ return t && t !== e ? t.nextSibling : null;
19
+ }
20
+ function p(e, t, n) {
21
+ n = n === void 0 ? /* @__PURE__ */ new Set() : n;
22
+ for (var r = e; r; ) {
23
+ if (r.nodeType === Node.ELEMENT_NODE) {
24
+ var o = r;
25
+ t(o);
26
+ var i = o.localName;
27
+ if (i === "link" && o.getAttribute("rel") === "import") {
28
+ if (r = o.import, r instanceof Node && !n.has(r))
29
+ for (n.add(r), r = r.firstChild; r; r = r.nextSibling)
30
+ p(r, t, n);
31
+ r = m(e, o);
32
+ continue;
33
+ } else if (i === "template") {
34
+ r = m(e, o);
35
+ continue;
36
+ }
37
+ if (o = o.__CE_shadowRoot)
38
+ for (o = o.firstChild; o; o = o.nextSibling)
39
+ p(o, t, n);
40
+ }
41
+ r = r.firstChild ? r.firstChild : m(e, r);
42
+ }
43
+ }
44
+ function d(e, t, n) {
45
+ e[t] = n;
46
+ }
47
+ function _() {
48
+ this.a = /* @__PURE__ */ new Map(), this.g = /* @__PURE__ */ new Map(), this.c = [], this.f = [], this.b = !1;
49
+ }
50
+ function ot(e, t, n) {
51
+ e.a.set(t, n), e.g.set(n.constructorFunction, n);
52
+ }
53
+ function rt(e, t) {
54
+ e.b = !0, e.c.push(t);
55
+ }
56
+ function it(e, t) {
57
+ e.b = !0, e.f.push(t);
58
+ }
59
+ function O(e, t) {
60
+ e.b && p(t, function(n) {
61
+ return C(e, n);
62
+ });
63
+ }
64
+ function C(e, t) {
65
+ if (e.b && !t.__CE_patched) {
66
+ t.__CE_patched = !0;
67
+ for (var n = 0; n < e.c.length; n++)
68
+ e.c[n](t);
69
+ for (n = 0; n < e.f.length; n++)
70
+ e.f[n](t);
71
+ }
72
+ }
73
+ function w(e, t) {
74
+ var n = [];
75
+ for (p(t, function(o) {
76
+ return n.push(o);
77
+ }), t = 0; t < n.length; t++) {
78
+ var r = n[t];
79
+ r.__CE_state === 1 ? e.connectedCallback(r) : S(e, r);
80
+ }
81
+ }
82
+ function v(e, t) {
83
+ var n = [];
84
+ for (p(t, function(o) {
85
+ return n.push(o);
86
+ }), t = 0; t < n.length; t++) {
87
+ var r = n[t];
88
+ r.__CE_state === 1 && e.disconnectedCallback(r);
89
+ }
90
+ }
91
+ function E(e, t, n) {
92
+ n = n === void 0 ? {} : n;
93
+ var r = n.u || /* @__PURE__ */ new Set(), o = n.i || function(l) {
94
+ return S(e, l);
95
+ }, i = [];
96
+ if (p(t, function(l) {
97
+ if (l.localName === "link" && l.getAttribute("rel") === "import") {
98
+ var c = l.import;
99
+ c instanceof Node && (c.__CE_isImportDocument = !0, c.__CE_hasRegistry = !0), c && c.readyState === "complete" ? c.__CE_documentLoadHandled = !0 : l.addEventListener("load", function() {
100
+ var a = l.import;
101
+ if (!a.__CE_documentLoadHandled) {
102
+ a.__CE_documentLoadHandled = !0;
103
+ var u = new Set(r);
104
+ u.delete(a), E(e, a, { u, i: o });
105
+ }
106
+ });
107
+ } else
108
+ i.push(l);
109
+ }, r), e.b)
110
+ for (t = 0; t < i.length; t++)
111
+ C(e, i[t]);
112
+ for (t = 0; t < i.length; t++)
113
+ o(i[t]);
114
+ }
115
+ function S(e, t) {
116
+ if (t.__CE_state === void 0) {
117
+ var n = t.ownerDocument;
118
+ if ((n.defaultView || n.__CE_isImportDocument && n.__CE_hasRegistry) && (n = e.a.get(t.localName))) {
119
+ n.constructionStack.push(t);
120
+ var r = n.constructorFunction;
121
+ try {
122
+ try {
123
+ if (new r() !== t)
124
+ throw Error("The custom element constructor did not produce the element being upgraded.");
125
+ } finally {
126
+ n.constructionStack.pop();
127
+ }
128
+ } catch (l) {
129
+ throw t.__CE_state = 2, l;
130
+ }
131
+ if (t.__CE_state = 1, t.__CE_definition = n, n.attributeChangedCallback)
132
+ for (n = n.observedAttributes, r = 0; r < n.length; r++) {
133
+ var o = n[r], i = t.getAttribute(o);
134
+ i !== null && e.attributeChangedCallback(t, o, null, i, null);
135
+ }
136
+ s(t) && e.connectedCallback(t);
137
+ }
138
+ }
139
+ }
140
+ _.prototype.connectedCallback = function(e) {
141
+ var t = e.__CE_definition;
142
+ t.connectedCallback && t.connectedCallback.call(e);
143
+ }, _.prototype.disconnectedCallback = function(e) {
144
+ var t = e.__CE_definition;
145
+ t.disconnectedCallback && t.disconnectedCallback.call(e);
146
+ }, _.prototype.attributeChangedCallback = function(e, t, n, r, o) {
147
+ var i = e.__CE_definition;
148
+ i.attributeChangedCallback && -1 < i.observedAttributes.indexOf(t) && i.attributeChangedCallback.call(e, t, n, r, o);
149
+ };
150
+ function P(e) {
151
+ var t = document;
152
+ this.c = e, this.a = t, this.b = void 0, E(this.c, this.a), this.a.readyState === "loading" && (this.b = new MutationObserver(this.f.bind(this)), this.b.observe(this.a, { childList: !0, subtree: !0 }));
153
+ }
154
+ function F(e) {
155
+ e.b && e.b.disconnect();
156
+ }
157
+ P.prototype.f = function(e) {
158
+ var t = this.a.readyState;
159
+ for (t !== "interactive" && t !== "complete" || F(this), t = 0; t < e.length; t++)
160
+ for (var n = e[t].addedNodes, r = 0; r < n.length; r++)
161
+ E(this.c, n[r]);
162
+ };
163
+ function lt() {
164
+ var e = this;
165
+ this.b = this.a = void 0, this.c = new Promise(function(t) {
166
+ e.b = t, e.a && t(e.a);
167
+ });
168
+ }
169
+ function I(e) {
170
+ if (e.a)
171
+ throw Error("Already resolved.");
172
+ e.a = void 0, e.b && e.b(void 0);
173
+ }
174
+ function y(e) {
175
+ this.c = !1, this.a = e, this.j = /* @__PURE__ */ new Map(), this.f = function(t) {
176
+ return t();
177
+ }, this.b = !1, this.g = [], this.o = new P(e);
178
+ }
179
+ y.prototype.l = function(e, t) {
180
+ var n = this;
181
+ if (!(t instanceof Function))
182
+ throw new TypeError("Custom element constructors must be functions.");
183
+ if (!h(e))
184
+ throw new SyntaxError("The element name '" + e + "' is not valid.");
185
+ if (this.a.a.get(e))
186
+ throw Error("A custom element with name '" + e + "' has already been defined.");
187
+ if (this.c)
188
+ throw Error("A custom element is already being defined.");
189
+ this.c = !0;
190
+ try {
191
+ var r = function(g) {
192
+ var N = o[g];
193
+ if (N !== void 0 && !(N instanceof Function))
194
+ throw Error("The '" + g + "' callback must be a function.");
195
+ return N;
196
+ }, o = t.prototype;
197
+ if (!(o instanceof Object))
198
+ throw new TypeError("The custom element constructor's prototype is not an object.");
199
+ var i = r("connectedCallback"), l = r("disconnectedCallback"), c = r("adoptedCallback"), a = r("attributeChangedCallback"), u = t.observedAttributes || [];
200
+ } catch {
201
+ return;
202
+ } finally {
203
+ this.c = !1;
204
+ }
205
+ t = { localName: e, constructorFunction: t, connectedCallback: i, disconnectedCallback: l, adoptedCallback: c, attributeChangedCallback: a, observedAttributes: u, constructionStack: [] }, ot(
206
+ this.a,
207
+ e,
208
+ t
209
+ ), this.g.push(t), this.b || (this.b = !0, this.f(function() {
210
+ return st(n);
211
+ }));
212
+ }, y.prototype.i = function(e) {
213
+ E(this.a, e);
214
+ };
215
+ function st(e) {
216
+ if (e.b !== !1) {
217
+ e.b = !1;
218
+ for (var t = e.g, n = [], r = /* @__PURE__ */ new Map(), o = 0; o < t.length; o++)
219
+ r.set(t[o].localName, []);
220
+ for (E(e.a, document, { i: function(c) {
221
+ if (c.__CE_state === void 0) {
222
+ var a = c.localName, u = r.get(a);
223
+ u ? u.push(c) : e.a.a.get(a) && n.push(c);
224
+ }
225
+ } }), o = 0; o < n.length; o++)
226
+ S(e.a, n[o]);
227
+ for (; 0 < t.length; ) {
228
+ var i = t.shift();
229
+ o = i.localName, i = r.get(i.localName);
230
+ for (var l = 0; l < i.length; l++)
231
+ S(e.a, i[l]);
232
+ (o = e.j.get(o)) && I(o);
233
+ }
234
+ }
235
+ }
236
+ y.prototype.get = function(e) {
237
+ if (e = this.a.a.get(e))
238
+ return e.constructorFunction;
239
+ }, y.prototype.m = function(e) {
240
+ if (!h(e))
241
+ return Promise.reject(new SyntaxError("'" + e + "' is not a valid custom element name."));
242
+ var t = this.j.get(e);
243
+ return t || (t = new lt(), this.j.set(e, t), this.a.a.get(e) && !this.g.some(function(n) {
244
+ return n.localName === e;
245
+ }) && I(t)), t.c;
246
+ }, y.prototype.s = function(e) {
247
+ F(this.o);
248
+ var t = this.f;
249
+ this.f = function(n) {
250
+ return e(function() {
251
+ return t(n);
252
+ });
253
+ };
254
+ }, window.CustomElementRegistry = y, y.prototype.define = y.prototype.l, y.prototype.upgrade = y.prototype.i, y.prototype.get = y.prototype.get, y.prototype.whenDefined = y.prototype.m, y.prototype.polyfillWrapFlushCallback = y.prototype.s;
255
+ var z = window.Document.prototype.createElement, U = window.Document.prototype.createElementNS, ct = window.Document.prototype.importNode, at = window.Document.prototype.prepend, ut = window.Document.prototype.append, pt = window.DocumentFragment.prototype.prepend, ft = window.DocumentFragment.prototype.append, B = window.Node.prototype.cloneNode, T = window.Node.prototype.appendChild, W = window.Node.prototype.insertBefore, j = window.Node.prototype.removeChild, V = window.Node.prototype.replaceChild, L = Object.getOwnPropertyDescriptor(
256
+ window.Node.prototype,
257
+ "textContent"
258
+ ), $ = window.Element.prototype.attachShadow, M = Object.getOwnPropertyDescriptor(window.Element.prototype, "innerHTML"), x = window.Element.prototype.getAttribute, G = window.Element.prototype.setAttribute, J = window.Element.prototype.removeAttribute, D = window.Element.prototype.getAttributeNS, K = window.Element.prototype.setAttributeNS, Q = window.Element.prototype.removeAttributeNS, Y = window.Element.prototype.insertAdjacentElement, Z = window.Element.prototype.insertAdjacentHTML, ht = window.Element.prototype.prepend, dt = window.Element.prototype.append, k = window.Element.prototype.before, mt = window.Element.prototype.after, X = window.Element.prototype.replaceWith, q = window.Element.prototype.remove, gt = window.HTMLElement, H = Object.getOwnPropertyDescriptor(window.HTMLElement.prototype, "innerHTML"), tt = window.HTMLElement.prototype.insertAdjacentElement, et = window.HTMLElement.prototype.insertAdjacentHTML, nt = new function() {
259
+ }();
260
+ function yt() {
261
+ var e = b;
262
+ window.HTMLElement = function() {
263
+ function t() {
264
+ var n = this.constructor, r = e.g.get(n);
265
+ if (!r)
266
+ throw Error("The custom element being constructed was not registered with `customElements`.");
267
+ var o = r.constructionStack;
268
+ if (o.length === 0)
269
+ return o = z.call(document, r.localName), Object.setPrototypeOf(o, n.prototype), o.__CE_state = 1, o.__CE_definition = r, C(e, o), o;
270
+ r = o.length - 1;
271
+ var i = o[r];
272
+ if (i === nt)
273
+ throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
274
+ return o[r] = nt, Object.setPrototypeOf(i, n.prototype), C(e, i), i;
275
+ }
276
+ return t.prototype = gt.prototype, Object.defineProperty(t.prototype, "constructor", { writable: !0, configurable: !0, enumerable: !1, value: t }), t;
277
+ }();
278
+ }
279
+ function R(e, t, n) {
280
+ function r(o) {
281
+ return function(i) {
282
+ for (var l = [], c = 0; c < arguments.length; ++c)
283
+ l[c] = arguments[c];
284
+ c = [];
285
+ for (var a = [], u = 0; u < l.length; u++) {
286
+ var g = l[u];
287
+ if (g instanceof Element && s(g) && a.push(g), g instanceof DocumentFragment)
288
+ for (g = g.firstChild; g; g = g.nextSibling)
289
+ c.push(g);
290
+ else
291
+ c.push(g);
292
+ }
293
+ for (o.apply(this, l), l = 0; l < a.length; l++)
294
+ v(e, a[l]);
295
+ if (s(this))
296
+ for (l = 0; l < c.length; l++)
297
+ a = c[l], a instanceof Element && w(e, a);
298
+ };
299
+ }
300
+ n.h !== void 0 && (t.prepend = r(n.h)), n.append !== void 0 && (t.append = r(n.append));
301
+ }
302
+ function vt() {
303
+ var e = b;
304
+ d(Document.prototype, "createElement", function(t) {
305
+ if (this.__CE_hasRegistry) {
306
+ var n = e.a.get(t);
307
+ if (n)
308
+ return new n.constructorFunction();
309
+ }
310
+ return t = z.call(this, t), C(e, t), t;
311
+ }), d(Document.prototype, "importNode", function(t, n) {
312
+ return t = ct.call(this, t, !!n), this.__CE_hasRegistry ? E(e, t) : O(e, t), t;
313
+ }), d(Document.prototype, "createElementNS", function(t, n) {
314
+ if (this.__CE_hasRegistry && (t === null || t === "http://www.w3.org/1999/xhtml")) {
315
+ var r = e.a.get(n);
316
+ if (r)
317
+ return new r.constructorFunction();
318
+ }
319
+ return t = U.call(
320
+ this,
321
+ t,
322
+ n
323
+ ), C(e, t), t;
324
+ }), R(e, Document.prototype, { h: at, append: ut });
325
+ }
326
+ function wt() {
327
+ function e(n, r) {
328
+ Object.defineProperty(n, "textContent", { enumerable: r.enumerable, configurable: !0, get: r.get, set: function(o) {
329
+ if (this.nodeType === Node.TEXT_NODE)
330
+ r.set.call(this, o);
331
+ else {
332
+ var i = void 0;
333
+ if (this.firstChild) {
334
+ var l = this.childNodes, c = l.length;
335
+ if (0 < c && s(this)) {
336
+ i = Array(c);
337
+ for (var a = 0; a < c; a++)
338
+ i[a] = l[a];
339
+ }
340
+ }
341
+ if (r.set.call(this, o), i)
342
+ for (o = 0; o < i.length; o++)
343
+ v(t, i[o]);
344
+ }
345
+ } });
346
+ }
347
+ var t = b;
348
+ d(Node.prototype, "insertBefore", function(n, r) {
349
+ if (n instanceof DocumentFragment) {
350
+ var o = Array.prototype.slice.apply(n.childNodes);
351
+ if (n = W.call(this, n, r), s(this))
352
+ for (r = 0; r < o.length; r++)
353
+ w(t, o[r]);
354
+ return n;
355
+ }
356
+ return o = s(n), r = W.call(this, n, r), o && v(t, n), s(this) && w(t, n), r;
357
+ }), d(Node.prototype, "appendChild", function(n) {
358
+ if (n instanceof DocumentFragment) {
359
+ var r = Array.prototype.slice.apply(n.childNodes);
360
+ if (n = T.call(this, n), s(this))
361
+ for (var o = 0; o < r.length; o++)
362
+ w(t, r[o]);
363
+ return n;
364
+ }
365
+ return r = s(n), o = T.call(this, n), r && v(t, n), s(this) && w(t, n), o;
366
+ }), d(Node.prototype, "cloneNode", function(n) {
367
+ return n = B.call(this, !!n), this.ownerDocument.__CE_hasRegistry ? E(t, n) : O(
368
+ t,
369
+ n
370
+ ), n;
371
+ }), d(Node.prototype, "removeChild", function(n) {
372
+ var r = s(n), o = j.call(this, n);
373
+ return r && v(t, n), o;
374
+ }), d(Node.prototype, "replaceChild", function(n, r) {
375
+ if (n instanceof DocumentFragment) {
376
+ var o = Array.prototype.slice.apply(n.childNodes);
377
+ if (n = V.call(this, n, r), s(this))
378
+ for (v(t, r), r = 0; r < o.length; r++)
379
+ w(t, o[r]);
380
+ return n;
381
+ }
382
+ o = s(n);
383
+ var i = V.call(this, n, r), l = s(this);
384
+ return l && v(t, r), o && v(t, n), l && w(t, n), i;
385
+ }), L && L.get ? e(Node.prototype, L) : rt(t, function(n) {
386
+ e(n, { enumerable: !0, configurable: !0, get: function() {
387
+ for (var r = [], o = 0; o < this.childNodes.length; o++) {
388
+ var i = this.childNodes[o];
389
+ i.nodeType !== Node.COMMENT_NODE && r.push(i.textContent);
390
+ }
391
+ return r.join("");
392
+ }, set: function(r) {
393
+ for (; this.firstChild; )
394
+ j.call(this, this.firstChild);
395
+ r != null && r !== "" && T.call(this, document.createTextNode(r));
396
+ } });
397
+ });
398
+ }
399
+ function Et(e) {
400
+ function t(r) {
401
+ return function(o) {
402
+ for (var i = [], l = 0; l < arguments.length; ++l)
403
+ i[l] = arguments[l];
404
+ l = [];
405
+ for (var c = [], a = 0; a < i.length; a++) {
406
+ var u = i[a];
407
+ if (u instanceof Element && s(u) && c.push(u), u instanceof DocumentFragment)
408
+ for (u = u.firstChild; u; u = u.nextSibling)
409
+ l.push(u);
410
+ else
411
+ l.push(u);
412
+ }
413
+ for (r.apply(this, i), i = 0; i < c.length; i++)
414
+ v(e, c[i]);
415
+ if (s(this))
416
+ for (i = 0; i < l.length; i++)
417
+ c = l[i], c instanceof Element && w(e, c);
418
+ };
419
+ }
420
+ var n = Element.prototype;
421
+ k !== void 0 && (n.before = t(k)), k !== void 0 && (n.after = t(mt)), X !== void 0 && d(n, "replaceWith", function(r) {
422
+ for (var o = [], i = 0; i < arguments.length; ++i)
423
+ o[i] = arguments[i];
424
+ i = [];
425
+ for (var l = [], c = 0; c < o.length; c++) {
426
+ var a = o[c];
427
+ if (a instanceof Element && s(a) && l.push(a), a instanceof DocumentFragment)
428
+ for (a = a.firstChild; a; a = a.nextSibling)
429
+ i.push(a);
430
+ else
431
+ i.push(a);
432
+ }
433
+ for (c = s(this), X.apply(this, o), o = 0; o < l.length; o++)
434
+ v(e, l[o]);
435
+ if (c)
436
+ for (v(e, this), o = 0; o < i.length; o++)
437
+ l = i[o], l instanceof Element && w(e, l);
438
+ }), q !== void 0 && d(n, "remove", function() {
439
+ var r = s(this);
440
+ q.call(this), r && v(e, this);
441
+ });
442
+ }
443
+ function _t() {
444
+ function e(o, i) {
445
+ Object.defineProperty(o, "innerHTML", { enumerable: i.enumerable, configurable: !0, get: i.get, set: function(l) {
446
+ var c = this, a = void 0;
447
+ if (s(this) && (a = [], p(this, function(N) {
448
+ N !== c && a.push(N);
449
+ })), i.set.call(this, l), a)
450
+ for (var u = 0; u < a.length; u++) {
451
+ var g = a[u];
452
+ g.__CE_state === 1 && r.disconnectedCallback(g);
453
+ }
454
+ return this.ownerDocument.__CE_hasRegistry ? E(r, this) : O(r, this), l;
455
+ } });
456
+ }
457
+ function t(o, i) {
458
+ d(o, "insertAdjacentElement", function(l, c) {
459
+ var a = s(c);
460
+ return l = i.call(this, l, c), a && v(r, c), s(l) && w(r, c), l;
461
+ });
462
+ }
463
+ function n(o, i) {
464
+ function l(c, a) {
465
+ for (var u = []; c !== a; c = c.nextSibling)
466
+ u.push(c);
467
+ for (a = 0; a < u.length; a++)
468
+ E(r, u[a]);
469
+ }
470
+ d(o, "insertAdjacentHTML", function(c, a) {
471
+ if (c = c.toLowerCase(), c === "beforebegin") {
472
+ var u = this.previousSibling;
473
+ i.call(this, c, a), l(u || this.parentNode.firstChild, this);
474
+ } else if (c === "afterbegin")
475
+ u = this.firstChild, i.call(this, c, a), l(this.firstChild, u);
476
+ else if (c === "beforeend")
477
+ u = this.lastChild, i.call(this, c, a), l(u || this.firstChild, null);
478
+ else if (c === "afterend")
479
+ u = this.nextSibling, i.call(this, c, a), l(
480
+ this.nextSibling,
481
+ u
482
+ );
483
+ else
484
+ throw new SyntaxError("The value provided (" + String(c) + ") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");
485
+ });
486
+ }
487
+ var r = b;
488
+ $ && d(Element.prototype, "attachShadow", function(o) {
489
+ o = $.call(this, o);
490
+ var i = r;
491
+ if (i.b && !o.__CE_patched) {
492
+ o.__CE_patched = !0;
493
+ for (var l = 0; l < i.c.length; l++)
494
+ i.c[l](o);
495
+ }
496
+ return this.__CE_shadowRoot = o;
497
+ }), M && M.get ? e(Element.prototype, M) : H && H.get ? e(HTMLElement.prototype, H) : it(r, function(o) {
498
+ e(o, {
499
+ enumerable: !0,
500
+ configurable: !0,
501
+ get: function() {
502
+ return B.call(this, !0).innerHTML;
503
+ },
504
+ set: function(i) {
505
+ var l = this.localName === "template", c = l ? this.content : this, a = U.call(document, this.namespaceURI, this.localName);
506
+ for (a.innerHTML = i; 0 < c.childNodes.length; )
507
+ j.call(c, c.childNodes[0]);
508
+ for (i = l ? a.content : a; 0 < i.childNodes.length; )
509
+ T.call(c, i.childNodes[0]);
510
+ }
511
+ });
512
+ }), d(Element.prototype, "setAttribute", function(o, i) {
513
+ if (this.__CE_state !== 1)
514
+ return G.call(this, o, i);
515
+ var l = x.call(this, o);
516
+ G.call(this, o, i), i = x.call(this, o), r.attributeChangedCallback(this, o, l, i, null);
517
+ }), d(Element.prototype, "setAttributeNS", function(o, i, l) {
518
+ if (this.__CE_state !== 1)
519
+ return K.call(this, o, i, l);
520
+ var c = D.call(this, o, i);
521
+ K.call(this, o, i, l), l = D.call(this, o, i), r.attributeChangedCallback(this, i, c, l, o);
522
+ }), d(Element.prototype, "removeAttribute", function(o) {
523
+ if (this.__CE_state !== 1)
524
+ return J.call(this, o);
525
+ var i = x.call(this, o);
526
+ J.call(this, o), i !== null && r.attributeChangedCallback(this, o, i, null, null);
527
+ }), d(Element.prototype, "removeAttributeNS", function(o, i) {
528
+ if (this.__CE_state !== 1)
529
+ return Q.call(this, o, i);
530
+ var l = D.call(this, o, i);
531
+ Q.call(this, o, i);
532
+ var c = D.call(
533
+ this,
534
+ o,
535
+ i
536
+ );
537
+ l !== c && r.attributeChangedCallback(this, i, l, c, o);
538
+ }), tt ? t(HTMLElement.prototype, tt) : Y ? t(Element.prototype, Y) : console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."), et ? n(HTMLElement.prototype, et) : Z ? n(Element.prototype, Z) : console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched."), R(r, Element.prototype, { h: ht, append: dt }), Et(r);
539
+ }
540
+ var A = window.customElements;
541
+ if (!A || A.forcePolyfill || typeof A.define != "function" || typeof A.get != "function") {
542
+ var b = new _();
543
+ yt(), vt(), R(b, DocumentFragment.prototype, { h: pt, append: ft }), wt(), _t(), document.__CE_hasRegistry = !0;
544
+ var Ct = new y(b);
545
+ Object.defineProperty(window, "customElements", { configurable: !0, enumerable: !0, value: Ct });
546
+ }
547
+ }).call(self);
548
+ typeof document.baseURI != "string" && Object.defineProperty(Document.prototype, "baseURI", { enumerable: !0, configurable: !0, get: function() {
549
+ var f = document.querySelector("base");
550
+ return f && f.href ? f.href : document.URL;
551
+ } });
552
+ typeof window.CustomEvent != "function" && (window.CustomEvent = function(f, h) {
553
+ h = h || { bubbles: !1, cancelable: !1, detail: void 0 };
554
+ var s = document.createEvent("CustomEvent");
555
+ return s.initCustomEvent(f, h.bubbles, h.cancelable, h.detail), s;
556
+ }, window.CustomEvent.prototype = window.Event.prototype);
557
+ (function(f, h, s) {
558
+ f.composedPath || (f.composedPath = function() {
559
+ if (this.path)
560
+ return this.path;
561
+ var m = this.target;
562
+ for (this.path = []; m.parentNode !== null; )
563
+ this.path.push(m), m = m.parentNode;
564
+ return this.path.push(h, s), this.path;
565
+ });
566
+ })(Event.prototype, document, window);
567
+ /*!
568
+ Element.closest and Element.matches
569
+ https://github.com/jonathantneal/closest
570
+ Creative Commons Zero v1.0 Universal
571
+ */
572
+ (function(f) {
573
+ typeof f.matches != "function" && (f.matches = f.msMatchesSelector || f.mozMatchesSelector || f.webkitMatchesSelector || function(h) {
574
+ h = (this.document || this.ownerDocument).querySelectorAll(h);
575
+ for (var s = 0; h[s] && h[s] !== this; )
576
+ ++s;
577
+ return !!h[s];
578
+ }), typeof f.closest != "function" && (f.closest = function(h) {
579
+ for (var s = this; s && s.nodeType === 1; ) {
580
+ if (s.matches(h))
581
+ return s;
582
+ s = s.parentNode;
583
+ }
584
+ return null;
585
+ });
586
+ })(window.Element.prototype);
587
+ /*!
588
+ Element.getRootNode()
589
+ */
590
+ (function(f) {
591
+ function h(m) {
592
+ return m = s(m), m && m.nodeType === 11 ? h(m.host) : m;
593
+ }
594
+ function s(m) {
595
+ return m && m.parentNode ? s(m.parentNode) : m;
596
+ }
597
+ typeof f.getRootNode != "function" && (f.getRootNode = function(m) {
598
+ return m && m.composed ? h(this) : s(this);
599
+ });
600
+ })(Element.prototype);
601
+ /*!
602
+ Element.isConnected()
603
+ */
604
+ (function(f) {
605
+ "isConnected" in f || Object.defineProperty(f, "isConnected", { configurable: !0, enumerable: !0, get: function() {
606
+ var h = this.getRootNode({ composed: !0 });
607
+ return h && h.nodeType === 9;
608
+ } });
609
+ })(Element.prototype);
610
+ /*!
611
+ Element.remove()
612
+ */
613
+ (function(f) {
614
+ f.forEach(function(h) {
615
+ h.hasOwnProperty("remove") || Object.defineProperty(h, "remove", { configurable: !0, enumerable: !0, writable: !0, value: function() {
616
+ this.parentNode !== null && this.parentNode.removeChild(this);
617
+ } });
618
+ });
619
+ })([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
620
+ /*!
621
+ Element.classList
622
+ */
623
+ (function(f) {
624
+ "classList" in f || Object.defineProperty(f, "classList", { get: function() {
625
+ var h = this, s = (h.getAttribute("class") || "").replace(/^\s+|\s$/g, "").split(/\s+/g);
626
+ function m() {
627
+ s.length > 0 ? h.setAttribute("class", s.join(" ")) : h.removeAttribute("class");
628
+ }
629
+ return s[0] === "" && s.splice(0, 1), s.toggle = function(p, d) {
630
+ d !== void 0 ? d ? s.add(p) : s.remove(p) : s.indexOf(p) !== -1 ? s.splice(s.indexOf(p), 1) : s.push(p), m();
631
+ }, s.add = function() {
632
+ for (var p = [].slice.call(arguments), d = 0, _ = p.length; d < _; d++)
633
+ s.indexOf(p[d]) === -1 && s.push(p[d]);
634
+ m();
635
+ }, s.remove = function() {
636
+ for (var p = [].slice.call(arguments), d = 0, _ = p.length; d < _; d++)
637
+ s.indexOf(p[d]) !== -1 && s.splice(s.indexOf(p[d]), 1);
638
+ m();
639
+ }, s.item = function(p) {
640
+ return s[p];
641
+ }, s.contains = function(p) {
642
+ return s.indexOf(p) !== -1;
643
+ }, s.replace = function(p, d) {
644
+ s.indexOf(p) !== -1 && s.splice(s.indexOf(p), 1, d), m();
645
+ }, s.value = h.getAttribute("class") || "", s;
646
+ } });
647
+ })(Element.prototype);
648
+ /*!
649
+ DOMTokenList
650
+ */
651
+ (function(f) {
652
+ try {
653
+ document.body.classList.add();
654
+ } catch {
655
+ var h = f.add, s = f.remove;
656
+ f.add = function() {
657
+ for (var p = 0; p < arguments.length; p++)
658
+ h.call(this, arguments[p]);
659
+ }, f.remove = function() {
660
+ for (var p = 0; p < arguments.length; p++)
661
+ s.call(this, arguments[p]);
662
+ };
663
+ }
664
+ })(DOMTokenList.prototype);