Version Description
- July 13, 2021 =
- Fix issue where HLS script sometimes doesn't load depending on theme hooks.
- Fix missing "Login" translation in non-logged-in template.
Download this release
Release Info
Developer | 2winfactor |
Plugin | The Ultimate Video Player For WordPress – by Presto Player |
Version | 1.5.5 |
Comparing to | |
See all releases |
Version 1.5.5
- .gitattributes +7 -0
- LICENSE +674 -0
- dist/analytics/0-3f75c1ce.js +19 -0
- dist/analytics/0-3f75c1ce.js.map +1 -0
- dist/analytics/0-ecdca2a6.js +19 -0
- dist/analytics/0-ecdca2a6.js.map +1 -0
- dist/analytics/4-1071be7e.js +19 -0
- dist/analytics/4-1071be7e.js.map +1 -0
- dist/analytics/4-1a7d5725.js +19 -0
- dist/analytics/4-1a7d5725.js.map +1 -0
- dist/analytics/5-2ed7cff3.js +19 -0
- dist/analytics/5-2ed7cff3.js.map +1 -0
- dist/analytics/5-48078a33.js +19 -0
- dist/analytics/5-48078a33.js.map +1 -0
- dist/analytics/6-952599ce.js +19 -0
- dist/analytics/6-952599ce.js.map +1 -0
- dist/analytics/6-c200bf25.js +19 -0
- dist/analytics/6-c200bf25.js.map +1 -0
- dist/analytics/7-5437b4a3.js +30 -0
- dist/analytics/7-5437b4a3.js.map +1 -0
- dist/analytics/7-c4380ef8.js +30 -0
- dist/analytics/7-c4380ef8.js.map +1 -0
- dist/analytics/admin-5fb77cbc.js +19 -0
- dist/analytics/admin-5fb77cbc.js.map +1 -0
- dist/analytics/admin-6b67906f.js +19 -0
- dist/analytics/admin-6b67906f.js.map +1 -0
- dist/analytics/admin-866190a9.css +20 -0
- dist/analytics/admin-866190a9.css.map +1 -0
- dist/analytics/admin.dependencies.wp.json +4 -0
- dist/analytics/manifest.json +42 -0
- dist/analytics/runtime-07fc3029.js +18 -0
- dist/analytics/runtime-07fc3029.js.map +1 -0
- dist/analytics/runtime-86dd3f98.js +18 -0
- dist/analytics/runtime-86dd3f98.js.map +1 -0
- dist/analytics/vendors--presto-player--admin-6682354b.js +33 -0
.gitattributes
ADDED
@@ -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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
Version 3, 29 June 2007
|
3 |
+
|
4 |
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
5 |
+
Everyone is permitted to copy and distribute verbatim copies
|
6 |
+
of this license document, but changing it is not allowed.
|
7 |
+
|
8 |
+
Preamble
|
9 |
+
|
10 |
+
The GNU General Public License is a free, copyleft license for
|
11 |
+
software and other kinds of works.
|
12 |
+
|
13 |
+
The licenses for most software and other practical works are designed
|
14 |
+
to take away your freedom to share and change the works. By contrast,
|
15 |
+
the GNU General Public License is intended to guarantee your freedom to
|
16 |
+
share and change all versions of a program--to make sure it remains free
|
17 |
+
software for all its users. We, the Free Software Foundation, use the
|
18 |
+
GNU General Public License for most of our software; it applies also to
|
19 |
+
any other work released this way by its authors. You can apply it to
|
20 |
+
your programs, too.
|
21 |
+
|
22 |
+
When we speak of free software, we are referring to freedom, not
|
23 |
+
price. Our General Public Licenses are designed to make sure that you
|
24 |
+
have the freedom to distribute copies of free software (and charge for
|
25 |
+
them if you wish), that you receive source code or can get it if you
|
26 |
+
want it, that you can change the software or use pieces of it in new
|
27 |
+
free programs, and that you know you can do these things.
|
28 |
+
|
29 |
+
To protect your rights, we need to prevent others from denying you
|
30 |
+
these rights or asking you to surrender the rights. Therefore, you have
|
31 |
+
certain responsibilities if you distribute copies of the software, or if
|
32 |
+
you modify it: responsibilities to respect the freedom of others.
|
33 |
+
|
34 |
+
For example, if you distribute copies of such a program, whether
|
35 |
+
gratis or for a fee, you must pass on to the recipients the same
|
36 |
+
freedoms that you received. You must make sure that they, too, receive
|
37 |
+
or can get the source code. And you must show them these terms so they
|
38 |
+
know their rights.
|
39 |
+
|
40 |
+
Developers that use the GNU GPL protect your rights with two steps:
|
41 |
+
(1) assert copyright on the software, and (2) offer you this License
|
42 |
+
giving you legal permission to copy, distribute and/or modify it.
|
43 |
+
|
44 |
+
For the developers' and authors' protection, the GPL clearly explains
|
45 |
+
that there is no warranty for this free software. For both users' and
|
46 |
+
authors' sake, the GPL requires that modified versions be marked as
|
47 |
+
changed, so that their problems will not be attributed erroneously to
|
48 |
+
authors of previous versions.
|
49 |
+
|
50 |
+
Some devices are designed to deny users access to install or run
|
51 |
+
modified versions of the software inside them, although the manufacturer
|
52 |
+
can do so. This is fundamentally incompatible with the aim of
|
53 |
+
protecting users' freedom to change the software. The systematic
|
54 |
+
pattern of such abuse occurs in the area of products for individuals to
|
55 |
+
use, which is precisely where it is most unacceptable. Therefore, we
|
56 |
+
have designed this version of the GPL to prohibit the practice for those
|
57 |
+
products. If such problems arise substantially in other domains, we
|
58 |
+
stand ready to extend this provision to those domains in future versions
|
59 |
+
of the GPL, as needed to protect the freedom of users.
|
60 |
+
|
61 |
+
Finally, every program is threatened constantly by software patents.
|
62 |
+
States should not allow patents to restrict development and use of
|
63 |
+
software on general-purpose computers, but in those that do, we wish to
|
64 |
+
avoid the special danger that patents applied to a free program could
|
65 |
+
make it effectively proprietary. To prevent this, the GPL assures that
|
66 |
+
patents cannot be used to render the program non-free.
|
67 |
+
|
68 |
+
The precise terms and conditions for copying, distribution and
|
69 |
+
modification follow.
|
70 |
+
|
71 |
+
TERMS AND CONDITIONS
|
72 |
+
|
73 |
+
0. Definitions.
|
74 |
+
|
75 |
+
"This License" refers to version 3 of the GNU General Public License.
|
76 |
+
|
77 |
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
78 |
+
works, such as semiconductor masks.
|
79 |
+
|
80 |
+
"The Program" refers to any copyrightable work licensed under this
|
81 |
+
License. Each licensee is addressed as "you". "Licensees" and
|
82 |
+
"recipients" may be individuals or organizations.
|
83 |
+
|
84 |
+
To "modify" a work means to copy from or adapt all or part of the work
|
85 |
+
in a fashion requiring copyright permission, other than the making of an
|
86 |
+
exact copy. The resulting work is called a "modified version" of the
|
87 |
+
earlier work or a work "based on" the earlier work.
|
88 |
+
|
89 |
+
A "covered work" means either the unmodified Program or a work based
|
90 |
+
on the Program.
|
91 |
+
|
92 |
+
To "propagate" a work means to do anything with it that, without
|
93 |
+
permission, would make you directly or secondarily liable for
|
94 |
+
infringement under applicable copyright law, except executing it on a
|
95 |
+
computer or modifying a private copy. Propagation includes copying,
|
96 |
+
distribution (with or without modification), making available to the
|
97 |
+
public, and in some countries other activities as well.
|
98 |
+
|
99 |
+
To "convey" a work means any kind of propagation that enables other
|
100 |
+
parties to make or receive copies. Mere interaction with a user through
|
101 |
+
a computer network, with no transfer of a copy, is not conveying.
|
102 |
+
|
103 |
+
An interactive user interface displays "Appropriate Legal Notices"
|
104 |
+
to the extent that it includes a convenient and prominently visible
|
105 |
+
feature that (1) displays an appropriate copyright notice, and (2)
|
106 |
+
tells the user that there is no warranty for the work (except to the
|
107 |
+
extent that warranties are provided), that licensees may convey the
|
108 |
+
work under this License, and how to view a copy of this License. If
|
109 |
+
the interface presents a list of user commands or options, such as a
|
110 |
+
menu, a prominent item in the list meets this criterion.
|
111 |
+
|
112 |
+
1. Source Code.
|
113 |
+
|
114 |
+
The "source code" for a work means the preferred form of the work
|
115 |
+
for making modifications to it. "Object code" means any non-source
|
116 |
+
form of a work.
|
117 |
+
|
118 |
+
A "Standard Interface" means an interface that either is an official
|
119 |
+
standard defined by a recognized standards body, or, in the case of
|
120 |
+
interfaces specified for a particular programming language, one that
|
121 |
+
is widely used among developers working in that language.
|
122 |
+
|
123 |
+
The "System Libraries" of an executable work include anything, other
|
124 |
+
than the work as a whole, that (a) is included in the normal form of
|
125 |
+
packaging a Major Component, but which is not part of that Major
|
126 |
+
Component, and (b) serves only to enable use of the work with that
|
127 |
+
Major Component, or to implement a Standard Interface for which an
|
128 |
+
implementation is available to the public in source code form. A
|
129 |
+
"Major Component", in this context, means a major essential component
|
130 |
+
(kernel, window system, and so on) of the specific operating system
|
131 |
+
(if any) on which the executable work runs, or a compiler used to
|
132 |
+
produce the work, or an object code interpreter used to run it.
|
133 |
+
|
134 |
+
The "Corresponding Source" for a work in object code form means all
|
135 |
+
the source code needed to generate, install, and (for an executable
|
136 |
+
work) run the object code and to modify the work, including scripts to
|
137 |
+
control those activities. However, it does not include the work's
|
138 |
+
System Libraries, or general-purpose tools or generally available free
|
139 |
+
programs which are used unmodified in performing those activities but
|
140 |
+
which are not part of the work. For example, Corresponding Source
|
141 |
+
includes interface definition files associated with source files for
|
142 |
+
the work, and the source code for shared libraries and dynamically
|
143 |
+
linked subprograms that the work is specifically designed to require,
|
144 |
+
such as by intimate data communication or control flow between those
|
145 |
+
subprograms and other parts of the work.
|
146 |
+
|
147 |
+
The Corresponding Source need not include anything that users
|
148 |
+
can regenerate automatically from other parts of the Corresponding
|
149 |
+
Source.
|
150 |
+
|
151 |
+
The Corresponding Source for a work in source code form is that
|
152 |
+
same work.
|
153 |
+
|
154 |
+
2. Basic Permissions.
|
155 |
+
|
156 |
+
All rights granted under this License are granted for the term of
|
157 |
+
copyright on the Program, and are irrevocable provided the stated
|
158 |
+
conditions are met. This License explicitly affirms your unlimited
|
159 |
+
permission to run the unmodified Program. The output from running a
|
160 |
+
covered work is covered by this License only if the output, given its
|
161 |
+
content, constitutes a covered work. This License acknowledges your
|
162 |
+
rights of fair use or other equivalent, as provided by copyright law.
|
163 |
+
|
164 |
+
You may make, run and propagate covered works that you do not
|
165 |
+
convey, without conditions so long as your license otherwise remains
|
166 |
+
in force. You may convey covered works to others for the sole purpose
|
167 |
+
of having them make modifications exclusively for you, or provide you
|
168 |
+
with facilities for running those works, provided that you comply with
|
169 |
+
the terms of this License in conveying all material for which you do
|
170 |
+
not control copyright. Those thus making or running the covered works
|
171 |
+
for you must do so exclusively on your behalf, under your direction
|
172 |
+
and control, on terms that prohibit them from making any copies of
|
173 |
+
your copyrighted material outside their relationship with you.
|
174 |
+
|
175 |
+
Conveying under any other circumstances is permitted solely under
|
176 |
+
the conditions stated below. Sublicensing is not allowed; section 10
|
177 |
+
makes it unnecessary.
|
178 |
+
|
179 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
180 |
+
|
181 |
+
No covered work shall be deemed part of an effective technological
|
182 |
+
measure under any applicable law fulfilling obligations under article
|
183 |
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
184 |
+
similar laws prohibiting or restricting circumvention of such
|
185 |
+
measures.
|
186 |
+
|
187 |
+
When you convey a covered work, you waive any legal power to forbid
|
188 |
+
circumvention of technological measures to the extent such circumvention
|
189 |
+
is effected by exercising rights under this License with respect to
|
190 |
+
the covered work, and you disclaim any intention to limit operation or
|
191 |
+
modification of the work as a means of enforcing, against the work's
|
192 |
+
users, your or third parties' legal rights to forbid circumvention of
|
193 |
+
technological measures.
|
194 |
+
|
195 |
+
4. Conveying Verbatim Copies.
|
196 |
+
|
197 |
+
You may convey verbatim copies of the Program's source code as you
|
198 |
+
receive it, in any medium, provided that you conspicuously and
|
199 |
+
appropriately publish on each copy an appropriate copyright notice;
|
200 |
+
keep intact all notices stating that this License and any
|
201 |
+
non-permissive terms added in accord with section 7 apply to the code;
|
202 |
+
keep intact all notices of the absence of any warranty; and give all
|
203 |
+
recipients a copy of this License along with the Program.
|
204 |
+
|
205 |
+
You may charge any price or no price for each copy that you convey,
|
206 |
+
and you may offer support or warranty protection for a fee.
|
207 |
+
|
208 |
+
5. Conveying Modified Source Versions.
|
209 |
+
|
210 |
+
You may convey a work based on the Program, or the modifications to
|
211 |
+
produce it from the Program, in the form of source code under the
|
212 |
+
terms of section 4, provided that you also meet all of these conditions:
|
213 |
+
|
214 |
+
a) The work must carry prominent notices stating that you modified
|
215 |
+
it, and giving a relevant date.
|
216 |
+
|
217 |
+
b) The work must carry prominent notices stating that it is
|
218 |
+
released under this License and any conditions added under section
|
219 |
+
7. This requirement modifies the requirement in section 4 to
|
220 |
+
"keep intact all notices".
|
221 |
+
|
222 |
+
c) You must license the entire work, as a whole, under this
|
223 |
+
License to anyone who comes into possession of a copy. This
|
224 |
+
License will therefore apply, along with any applicable section 7
|
225 |
+
additional terms, to the whole of the work, and all its parts,
|
226 |
+
regardless of how they are packaged. This License gives no
|
227 |
+
permission to license the work in any other way, but it does not
|
228 |
+
invalidate such permission if you have separately received it.
|
229 |
+
|
230 |
+
d) If the work has interactive user interfaces, each must display
|
231 |
+
Appropriate Legal Notices; however, if the Program has interactive
|
232 |
+
interfaces that do not display Appropriate Legal Notices, your
|
233 |
+
work need not make them do so.
|
234 |
+
|
235 |
+
A compilation of a covered work with other separate and independent
|
236 |
+
works, which are not by their nature extensions of the covered work,
|
237 |
+
and which are not combined with it such as to form a larger program,
|
238 |
+
in or on a volume of a storage or distribution medium, is called an
|
239 |
+
"aggregate" if the compilation and its resulting copyright are not
|
240 |
+
used to limit the access or legal rights of the compilation's users
|
241 |
+
beyond what the individual works permit. Inclusion of a covered work
|
242 |
+
in an aggregate does not cause this License to apply to the other
|
243 |
+
parts of the aggregate.
|
244 |
+
|
245 |
+
6. Conveying Non-Source Forms.
|
246 |
+
|
247 |
+
You may convey a covered work in object code form under the terms
|
248 |
+
of sections 4 and 5, provided that you also convey the
|
249 |
+
machine-readable Corresponding Source under the terms of this License,
|
250 |
+
in one of these ways:
|
251 |
+
|
252 |
+
a) Convey the object code in, or embodied in, a physical product
|
253 |
+
(including a physical distribution medium), accompanied by the
|
254 |
+
Corresponding Source fixed on a durable physical medium
|
255 |
+
customarily used for software interchange.
|
256 |
+
|
257 |
+
b) Convey the object code in, or embodied in, a physical product
|
258 |
+
(including a physical distribution medium), accompanied by a
|
259 |
+
written offer, valid for at least three years and valid for as
|
260 |
+
long as you offer spare parts or customer support for that product
|
261 |
+
model, to give anyone who possesses the object code either (1) a
|
262 |
+
copy of the Corresponding Source for all the software in the
|
263 |
+
product that is covered by this License, on a durable physical
|
264 |
+
medium customarily used for software interchange, for a price no
|
265 |
+
more than your reasonable cost of physically performing this
|
266 |
+
conveying of source, or (2) access to copy the
|
267 |
+
Corresponding Source from a network server at no charge.
|
268 |
+
|
269 |
+
c) Convey individual copies of the object code with a copy of the
|
270 |
+
written offer to provide the Corresponding Source. This
|
271 |
+
alternative is allowed only occasionally and noncommercially, and
|
272 |
+
only if you received the object code with such an offer, in accord
|
273 |
+
with subsection 6b.
|
274 |
+
|
275 |
+
d) Convey the object code by offering access from a designated
|
276 |
+
place (gratis or for a charge), and offer equivalent access to the
|
277 |
+
Corresponding Source in the same way through the same place at no
|
278 |
+
further charge. You need not require recipients to copy the
|
279 |
+
Corresponding Source along with the object code. If the place to
|
280 |
+
copy the object code is a network server, the Corresponding Source
|
281 |
+
may be on a different server (operated by you or a third party)
|
282 |
+
that supports equivalent copying facilities, provided you maintain
|
283 |
+
clear directions next to the object code saying where to find the
|
284 |
+
Corresponding Source. Regardless of what server hosts the
|
285 |
+
Corresponding Source, you remain obligated to ensure that it is
|
286 |
+
available for as long as needed to satisfy these requirements.
|
287 |
+
|
288 |
+
e) Convey the object code using peer-to-peer transmission, provided
|
289 |
+
you inform other peers where the object code and Corresponding
|
290 |
+
Source of the work are being offered to the general public at no
|
291 |
+
charge under subsection 6d.
|
292 |
+
|
293 |
+
A separable portion of the object code, whose source code is excluded
|
294 |
+
from the Corresponding Source as a System Library, need not be
|
295 |
+
included in conveying the object code work.
|
296 |
+
|
297 |
+
A "User Product" is either (1) a "consumer product", which means any
|
298 |
+
tangible personal property which is normally used for personal, family,
|
299 |
+
or household purposes, or (2) anything designed or sold for incorporation
|
300 |
+
into a dwelling. In determining whether a product is a consumer product,
|
301 |
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
302 |
+
product received by a particular user, "normally used" refers to a
|
303 |
+
typical or common use of that class of product, regardless of the status
|
304 |
+
of the particular user or of the way in which the particular user
|
305 |
+
actually uses, or expects or is expected to use, the product. A product
|
306 |
+
is a consumer product regardless of whether the product has substantial
|
307 |
+
commercial, industrial or non-consumer uses, unless such uses represent
|
308 |
+
the only significant mode of use of the product.
|
309 |
+
|
310 |
+
"Installation Information" for a User Product means any methods,
|
311 |
+
procedures, authorization keys, or other information required to install
|
312 |
+
and execute modified versions of a covered work in that User Product from
|
313 |
+
a modified version of its Corresponding Source. The information must
|
314 |
+
suffice to ensure that the continued functioning of the modified object
|
315 |
+
code is in no case prevented or interfered with solely because
|
316 |
+
modification has been made.
|
317 |
+
|
318 |
+
If you convey an object code work under this section in, or with, or
|
319 |
+
specifically for use in, a User Product, and the conveying occurs as
|
320 |
+
part of a transaction in which the right of possession and use of the
|
321 |
+
User Product is transferred to the recipient in perpetuity or for a
|
322 |
+
fixed term (regardless of how the transaction is characterized), the
|
323 |
+
Corresponding Source conveyed under this section must be accompanied
|
324 |
+
by the Installation Information. But this requirement does not apply
|
325 |
+
if neither you nor any third party retains the ability to install
|
326 |
+
modified object code on the User Product (for example, the work has
|
327 |
+
been installed in ROM).
|
328 |
+
|
329 |
+
The requirement to provide Installation Information does not include a
|
330 |
+
requirement to continue to provide support service, warranty, or updates
|
331 |
+
for a work that has been modified or installed by the recipient, or for
|
332 |
+
the User Product in which it has been modified or installed. Access to a
|
333 |
+
network may be denied when the modification itself materially and
|
334 |
+
adversely affects the operation of the network or violates the rules and
|
335 |
+
protocols for communication across the network.
|
336 |
+
|
337 |
+
Corresponding Source conveyed, and Installation Information provided,
|
338 |
+
in accord with this section must be in a format that is publicly
|
339 |
+
documented (and with an implementation available to the public in
|
340 |
+
source code form), and must require no special password or key for
|
341 |
+
unpacking, reading or copying.
|
342 |
+
|
343 |
+
7. Additional Terms.
|
344 |
+
|
345 |
+
"Additional permissions" are terms that supplement the terms of this
|
346 |
+
License by making exceptions from one or more of its conditions.
|
347 |
+
Additional permissions that are applicable to the entire Program shall
|
348 |
+
be treated as though they were included in this License, to the extent
|
349 |
+
that they are valid under applicable law. If additional permissions
|
350 |
+
apply only to part of the Program, that part may be used separately
|
351 |
+
under those permissions, but the entire Program remains governed by
|
352 |
+
this License without regard to the additional permissions.
|
353 |
+
|
354 |
+
When you convey a copy of a covered work, you may at your option
|
355 |
+
remove any additional permissions from that copy, or from any part of
|
356 |
+
it. (Additional permissions may be written to require their own
|
357 |
+
removal in certain cases when you modify the work.) You may place
|
358 |
+
additional permissions on material, added by you to a covered work,
|
359 |
+
for which you have or can give appropriate copyright permission.
|
360 |
+
|
361 |
+
Notwithstanding any other provision of this License, for material you
|
362 |
+
add to a covered work, you may (if authorized by the copyright holders of
|
363 |
+
that material) supplement the terms of this License with terms:
|
364 |
+
|
365 |
+
a) Disclaiming warranty or limiting liability differently from the
|
366 |
+
terms of sections 15 and 16 of this License; or
|
367 |
+
|
368 |
+
b) Requiring preservation of specified reasonable legal notices or
|
369 |
+
author attributions in that material or in the Appropriate Legal
|
370 |
+
Notices displayed by works containing it; or
|
371 |
+
|
372 |
+
c) Prohibiting misrepresentation of the origin of that material, or
|
373 |
+
requiring that modified versions of such material be marked in
|
374 |
+
reasonable ways as different from the original version; or
|
375 |
+
|
376 |
+
d) Limiting the use for publicity purposes of names of licensors or
|
377 |
+
authors of the material; or
|
378 |
+
|
379 |
+
e) Declining to grant rights under trademark law for use of some
|
380 |
+
trade names, trademarks, or service marks; or
|
381 |
+
|
382 |
+
f) Requiring indemnification of licensors and authors of that
|
383 |
+
material by anyone who conveys the material (or modified versions of
|
384 |
+
it) with contractual assumptions of liability to the recipient, for
|
385 |
+
any liability that these contractual assumptions directly impose on
|
386 |
+
those licensors and authors.
|
387 |
+
|
388 |
+
All other non-permissive additional terms are considered "further
|
389 |
+
restrictions" within the meaning of section 10. If the Program as you
|
390 |
+
received it, or any part of it, contains a notice stating that it is
|
391 |
+
governed by this License along with a term that is a further
|
392 |
+
restriction, you may remove that term. If a license document contains
|
393 |
+
a further restriction but permits relicensing or conveying under this
|
394 |
+
License, you may add to a covered work material governed by the terms
|
395 |
+
of that license document, provided that the further restriction does
|
396 |
+
not survive such relicensing or conveying.
|
397 |
+
|
398 |
+
If you add terms to a covered work in accord with this section, you
|
399 |
+
must place, in the relevant source files, a statement of the
|
400 |
+
additional terms that apply to those files, or a notice indicating
|
401 |
+
where to find the applicable terms.
|
402 |
+
|
403 |
+
Additional terms, permissive or non-permissive, may be stated in the
|
404 |
+
form of a separately written license, or stated as exceptions;
|
405 |
+
the above requirements apply either way.
|
406 |
+
|
407 |
+
8. Termination.
|
408 |
+
|
409 |
+
You may not propagate or modify a covered work except as expressly
|
410 |
+
provided under this License. Any attempt otherwise to propagate or
|
411 |
+
modify it is void, and will automatically terminate your rights under
|
412 |
+
this License (including any patent licenses granted under the third
|
413 |
+
paragraph of section 11).
|
414 |
+
|
415 |
+
However, if you cease all violation of this License, then your
|
416 |
+
license from a particular copyright holder is reinstated (a)
|
417 |
+
provisionally, unless and until the copyright holder explicitly and
|
418 |
+
finally terminates your license, and (b) permanently, if the copyright
|
419 |
+
holder fails to notify you of the violation by some reasonable means
|
420 |
+
prior to 60 days after the cessation.
|
421 |
+
|
422 |
+
Moreover, your license from a particular copyright holder is
|
423 |
+
reinstated permanently if the copyright holder notifies you of the
|
424 |
+
violation by some reasonable means, this is the first time you have
|
425 |
+
received notice of violation of this License (for any work) from that
|
426 |
+
copyright holder, and you cure the violation prior to 30 days after
|
427 |
+
your receipt of the notice.
|
428 |
+
|
429 |
+
Termination of your rights under this section does not terminate the
|
430 |
+
licenses of parties who have received copies or rights from you under
|
431 |
+
this License. If your rights have been terminated and not permanently
|
432 |
+
reinstated, you do not qualify to receive new licenses for the same
|
433 |
+
material under section 10.
|
434 |
+
|
435 |
+
9. Acceptance Not Required for Having Copies.
|
436 |
+
|
437 |
+
You are not required to accept this License in order to receive or
|
438 |
+
run a copy of the Program. Ancillary propagation of a covered work
|
439 |
+
occurring solely as a consequence of using peer-to-peer transmission
|
440 |
+
to receive a copy likewise does not require acceptance. However,
|
441 |
+
nothing other than this License grants you permission to propagate or
|
442 |
+
modify any covered work. These actions infringe copyright if you do
|
443 |
+
not accept this License. Therefore, by modifying or propagating a
|
444 |
+
covered work, you indicate your acceptance of this License to do so.
|
445 |
+
|
446 |
+
10. Automatic Licensing of Downstream Recipients.
|
447 |
+
|
448 |
+
Each time you convey a covered work, the recipient automatically
|
449 |
+
receives a license from the original licensors, to run, modify and
|
450 |
+
propagate that work, subject to this License. You are not responsible
|
451 |
+
for enforcing compliance by third parties with this License.
|
452 |
+
|
453 |
+
An "entity transaction" is a transaction transferring control of an
|
454 |
+
organization, or substantially all assets of one, or subdividing an
|
455 |
+
organization, or merging organizations. If propagation of a covered
|
456 |
+
work results from an entity transaction, each party to that
|
457 |
+
transaction who receives a copy of the work also receives whatever
|
458 |
+
licenses to the work the party's predecessor in interest had or could
|
459 |
+
give under the previous paragraph, plus a right to possession of the
|
460 |
+
Corresponding Source of the work from the predecessor in interest, if
|
461 |
+
the predecessor has it or can get it with reasonable efforts.
|
462 |
+
|
463 |
+
You may not impose any further restrictions on the exercise of the
|
464 |
+
rights granted or affirmed under this License. For example, you may
|
465 |
+
not impose a license fee, royalty, or other charge for exercise of
|
466 |
+
rights granted under this License, and you may not initiate litigation
|
467 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
468 |
+
any patent claim is infringed by making, using, selling, offering for
|
469 |
+
sale, or importing the Program or any portion of it.
|
470 |
+
|
471 |
+
11. Patents.
|
472 |
+
|
473 |
+
A "contributor" is a copyright holder who authorizes use under this
|
474 |
+
License of the Program or a work on which the Program is based. The
|
475 |
+
work thus licensed is called the contributor's "contributor version".
|
476 |
+
|
477 |
+
A contributor's "essential patent claims" are all patent claims
|
478 |
+
owned or controlled by the contributor, whether already acquired or
|
479 |
+
hereafter acquired, that would be infringed by some manner, permitted
|
480 |
+
by this License, of making, using, or selling its contributor version,
|
481 |
+
but do not include claims that would be infringed only as a
|
482 |
+
consequence of further modification of the contributor version. For
|
483 |
+
purposes of this definition, "control" includes the right to grant
|
484 |
+
patent sublicenses in a manner consistent with the requirements of
|
485 |
+
this License.
|
486 |
+
|
487 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
488 |
+
patent license under the contributor's essential patent claims, to
|
489 |
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
490 |
+
propagate the contents of its contributor version.
|
491 |
+
|
492 |
+
In the following three paragraphs, a "patent license" is any express
|
493 |
+
agreement or commitment, however denominated, not to enforce a patent
|
494 |
+
(such as an express permission to practice a patent or covenant not to
|
495 |
+
sue for patent infringement). To "grant" such a patent license to a
|
496 |
+
party means to make such an agreement or commitment not to enforce a
|
497 |
+
patent against the party.
|
498 |
+
|
499 |
+
If you convey a covered work, knowingly relying on a patent license,
|
500 |
+
and the Corresponding Source of the work is not available for anyone
|
501 |
+
to copy, free of charge and under the terms of this License, through a
|
502 |
+
publicly available network server or other readily accessible means,
|
503 |
+
then you must either (1) cause the Corresponding Source to be so
|
504 |
+
available, or (2) arrange to deprive yourself of the benefit of the
|
505 |
+
patent license for this particular work, or (3) arrange, in a manner
|
506 |
+
consistent with the requirements of this License, to extend the patent
|
507 |
+
license to downstream recipients. "Knowingly relying" means you have
|
508 |
+
actual knowledge that, but for the patent license, your conveying the
|
509 |
+
covered work in a country, or your recipient's use of the covered work
|
510 |
+
in a country, would infringe one or more identifiable patents in that
|
511 |
+
country that you have reason to believe are valid.
|
512 |
+
|
513 |
+
If, pursuant to or in connection with a single transaction or
|
514 |
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
515 |
+
covered work, and grant a patent license to some of the parties
|
516 |
+
receiving the covered work authorizing them to use, propagate, modify
|
517 |
+
or convey a specific copy of the covered work, then the patent license
|
518 |
+
you grant is automatically extended to all recipients of the covered
|
519 |
+
work and works based on it.
|
520 |
+
|
521 |
+
A patent license is "discriminatory" if it does not include within
|
522 |
+
the scope of its coverage, prohibits the exercise of, or is
|
523 |
+
conditioned on the non-exercise of one or more of the rights that are
|
524 |
+
specifically granted under this License. You may not convey a covered
|
525 |
+
work if you are a party to an arrangement with a third party that is
|
526 |
+
in the business of distributing software, under which you make payment
|
527 |
+
to the third party based on the extent of your activity of conveying
|
528 |
+
the work, and under which the third party grants, to any of the
|
529 |
+
parties who would receive the covered work from you, a discriminatory
|
530 |
+
patent license (a) in connection with copies of the covered work
|
531 |
+
conveyed by you (or copies made from those copies), or (b) primarily
|
532 |
+
for and in connection with specific products or compilations that
|
533 |
+
contain the covered work, unless you entered into that arrangement,
|
534 |
+
or that patent license was granted, prior to 28 March 2007.
|
535 |
+
|
536 |
+
Nothing in this License shall be construed as excluding or limiting
|
537 |
+
any implied license or other defenses to infringement that may
|
538 |
+
otherwise be available to you under applicable patent law.
|
539 |
+
|
540 |
+
12. No Surrender of Others' Freedom.
|
541 |
+
|
542 |
+
If conditions are imposed on you (whether by court order, agreement or
|
543 |
+
otherwise) that contradict the conditions of this License, they do not
|
544 |
+
excuse you from the conditions of this License. If you cannot convey a
|
545 |
+
covered work so as to satisfy simultaneously your obligations under this
|
546 |
+
License and any other pertinent obligations, then as a consequence you may
|
547 |
+
not convey it at all. For example, if you agree to terms that obligate you
|
548 |
+
to collect a royalty for further conveying from those to whom you convey
|
549 |
+
the Program, the only way you could satisfy both those terms and this
|
550 |
+
License would be to refrain entirely from conveying the Program.
|
551 |
+
|
552 |
+
13. Use with the GNU Affero General Public License.
|
553 |
+
|
554 |
+
Notwithstanding any other provision of this License, you have
|
555 |
+
permission to link or combine any covered work with a work licensed
|
556 |
+
under version 3 of the GNU Affero General Public License into a single
|
557 |
+
combined work, and to convey the resulting work. The terms of this
|
558 |
+
License will continue to apply to the part which is the covered work,
|
559 |
+
but the special requirements of the GNU Affero General Public License,
|
560 |
+
section 13, concerning interaction through a network will apply to the
|
561 |
+
combination as such.
|
562 |
+
|
563 |
+
14. Revised Versions of this License.
|
564 |
+
|
565 |
+
The Free Software Foundation may publish revised and/or new versions of
|
566 |
+
the GNU General Public License from time to time. Such new versions will
|
567 |
+
be similar in spirit to the present version, but may differ in detail to
|
568 |
+
address new problems or concerns.
|
569 |
+
|
570 |
+
Each version is given a distinguishing version number. If the
|
571 |
+
Program specifies that a certain numbered version of the GNU General
|
572 |
+
Public License "or any later version" applies to it, you have the
|
573 |
+
option of following the terms and conditions either of that numbered
|
574 |
+
version or of any later version published by the Free Software
|
575 |
+
Foundation. If the Program does not specify a version number of the
|
576 |
+
GNU General Public License, you may choose any version ever published
|
577 |
+
by the Free Software Foundation.
|
578 |
+
|
579 |
+
If the Program specifies that a proxy can decide which future
|
580 |
+
versions of the GNU General Public License can be used, that proxy's
|
581 |
+
public statement of acceptance of a version permanently authorizes you
|
582 |
+
to choose that version for the Program.
|
583 |
+
|
584 |
+
Later license versions may give you additional or different
|
585 |
+
permissions. However, no additional obligations are imposed on any
|
586 |
+
author or copyright holder as a result of your choosing to follow a
|
587 |
+
later version.
|
588 |
+
|
589 |
+
15. Disclaimer of Warranty.
|
590 |
+
|
591 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
592 |
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
593 |
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
594 |
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
595 |
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
596 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
597 |
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
598 |
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
599 |
+
|
600 |
+
16. Limitation of Liability.
|
601 |
+
|
602 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
603 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
604 |
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
605 |
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
606 |
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
607 |
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
608 |
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
609 |
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
610 |
+
SUCH DAMAGES.
|
611 |
+
|
612 |
+
17. Interpretation of Sections 15 and 16.
|
613 |
+
|
614 |
+
If the disclaimer of warranty and limitation of liability provided
|
615 |
+
above cannot be given local legal effect according to their terms,
|
616 |
+
reviewing courts shall apply local law that most closely approximates
|
617 |
+
an absolute waiver of all civil liability in connection with the
|
618 |
+
Program, unless a warranty or assumption of liability accompanies a
|
619 |
+
copy of the Program in return for a fee.
|
620 |
+
|
621 |
+
END OF TERMS AND CONDITIONS
|
622 |
+
|
623 |
+
How to Apply These Terms to Your New Programs
|
624 |
+
|
625 |
+
If you develop a new program, and you want it to be of the greatest
|
626 |
+
possible use to the public, the best way to achieve this is to make it
|
627 |
+
free software which everyone can redistribute and change under these terms.
|
628 |
+
|
629 |
+
To do so, attach the following notices to the program. It is safest
|
630 |
+
to attach them to the start of each source file to most effectively
|
631 |
+
state the exclusion of warranty; and each file should have at least
|
632 |
+
the "copyright" line and a pointer to where the full notice is found.
|
633 |
+
|
634 |
+
<one line to give the program's name and a brief idea of what it does.>
|
635 |
+
Copyright (C) <year> <name of author>
|
636 |
+
|
637 |
+
This program is free software: you can redistribute it and/or modify
|
638 |
+
it under the terms of the GNU General Public License as published by
|
639 |
+
the Free Software Foundation, either version 3 of the License, or
|
640 |
+
(at your option) any later version.
|
641 |
+
|
642 |
+
This program is distributed in the hope that it will be useful,
|
643 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
644 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
645 |
+
GNU General Public License for more details.
|
646 |
+
|
647 |
+
You should have received a copy of the GNU General Public License
|
648 |
+
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
649 |
+
|
650 |
+
Also add information on how to contact you by electronic and paper mail.
|
651 |
+
|
652 |
+
If the program does terminal interaction, make it output a short
|
653 |
+
notice like this when it starts in an interactive mode:
|
654 |
+
|
655 |
+
<program> Copyright (C) <year> <name of author>
|
656 |
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
657 |
+
This is free software, and you are welcome to redistribute it
|
658 |
+
under certain conditions; type `show c' for details.
|
659 |
+
|
660 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
661 |
+
parts of the General Public License. Of course, your program's commands
|
662 |
+
might be different; for a GUI interface, you would use an "about box".
|
663 |
+
|
664 |
+
You should also get your employer (if you work as a programmer) or school,
|
665 |
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
666 |
+
For more information on this, and how to apply and follow the GNU GPL, see
|
667 |
+
<https://www.gnu.org/licenses/>.
|
668 |
+
|
669 |
+
The GNU General Public License does not permit incorporating your program
|
670 |
+
into proprietary programs. If your program is a subroutine library, you
|
671 |
+
may consider it more useful to permit linking proprietary applications with
|
672 |
+
the library. If this is what you want to do, use the GNU Lesser General
|
673 |
+
Public License instead of this License. But first, please read
|
674 |
+
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
dist/analytics/0-3f75c1ce.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/
|
18 |
+
(window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[0],{51:function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeObserver",(function(){return V})),n.d(t,"ResizeObserverEntry",(function(){return m})),n.d(t,"ResizeObserverSize",(function(){return c}));var r,i=[],o="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var s,a=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,a(this)},u=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,a(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),h=function(e){return e instanceof SVGElement&&"getBBox"in e},f=function(e){if(h(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},d=function(e){var t,n;if(e instanceof Element)return!0;var r=null===(n=null===(t=e)||void 0===t?void 0:t.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(r&&e instanceof r.Element)},v="undefined"!=typeof window?window:{},p=new WeakMap,l=/auto|scroll/,g=/^tb|vertical/,b=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},E=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},x=a({devicePixelContentBoxSize:E(),borderBoxSize:E(),contentBoxSize:E(),contentRect:new u(0,0,0,0)}),y=function(e,t){if(void 0===t&&(t=!1),p.has(e)&&!t)return p.get(e);if(f(e))return p.set(e,x),x;var n=getComputedStyle(e),r=h(e)&&e.ownerSVGElement&&e.getBBox(),i=!b&&"border-box"===n.boxSizing,o=g.test(n.writingMode||""),s=!r&&l.test(n.overflowY||""),c=!r&&l.test(n.overflowX||""),d=r?0:w(n.paddingTop),v=r?0:w(n.paddingRight),y=r?0:w(n.paddingBottom),T=r?0:w(n.paddingLeft),m=r?0:w(n.borderTopWidth),z=r?0:w(n.borderRightWidth),S=r?0:w(n.borderBottomWidth),B=T+v,O=d+y,R=(r?0:w(n.borderLeftWidth))+z,k=m+S,C=c?e.offsetHeight-k-e.clientHeight:0,N=s?e.offsetWidth-R-e.clientWidth:0,D=i?B+R:0,P=i?O+k:0,M=r?r.width:w(n.width)-D-N,_=r?r.height:w(n.height)-P-C,F=M+B+N+R,I=_+O+C+k,L=a({devicePixelContentBoxSize:E(Math.round(M*devicePixelRatio),Math.round(_*devicePixelRatio),o),borderBoxSize:E(F,I,o),contentBoxSize:E(M,_,o),contentRect:new u(T,d,M,_)});return p.set(e,L),L},T=function(e,t,n){var i=y(e,n),o=i.borderBoxSize,s=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return a;case r.BORDER_BOX:return o;default:return s}},m=function(e){var t=y(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=a([t.borderBoxSize]),this.contentBoxSize=a([t.contentBoxSize]),this.devicePixelContentBoxSize=a([t.devicePixelContentBoxSize])},z=function(e){if(f(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},S=function(){var e=1/0,t=[];i.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new m(t.target),i=z(t.target);r.push(n),t.lastReportedSize=T(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},B=function(e){i.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(z(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},O=function(){var e,t=0;for(B(t);i.some((function(e){return e.activeTargets.length>0}));)t=S(),B(t);return i.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:o}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=o),window.dispatchEvent(e)),t>0},R=[],k=function(e){if(!s){var t=0,n=document.createTextNode("");new MutationObserver((function(){return R.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),s=function(){n.textContent=""+(t?t--:t++)}}R.push(e),s()},C=0,N={attributes:!0,characterData:!0,childList:!0,subtree:!0},D=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],P=function(e){return void 0===e&&(e=0),Date.now()+e},M=!1,_=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!M){M=!0;var n,r=P(e);n=function(){var n=!1;try{n=O()}finally{if(M=!1,e=r-P(),!C)return;n?t.run(1e3):e>0?t.run(e):t.start()}},k((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,N)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),D.forEach((function(t){return v.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),D.forEach((function(t){return v.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),F=function(e){!C&&e>0&&_.start(),!(C+=e)&&_.stop()},I=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=T(this.target,this.observedBox,!0);return e=this.target,h(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),L=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},W=new WeakMap,X=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},A=function(){function e(){}return e.connect=function(e,t){var n=new L(e,t);W.set(e,n)},e.observe=function(e,t,n){var r=W.get(e),o=0===r.observationTargets.length;X(r.observationTargets,t)<0&&(o&&i.push(r),r.observationTargets.push(new I(t,n&&n.box)),F(1),_.schedule())},e.unobserve=function(e,t){var n=W.get(e),r=X(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&i.splice(i.indexOf(n),1),n.observationTargets.splice(r,1),F(-1))},e.disconnect=function(e){var t=this,n=W.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),V=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");A.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!d(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");A.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!d(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");A.unobserve(this,e)},e.prototype.disconnect=function(){A.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()}}]);
|
19 |
+
//# sourceMappingURL=0-3f75c1ce.js.map
|
dist/analytics/0-3f75c1ce.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/resize-observer.js"],"names":["ResizeObserverBoxOptions","resizeObservers","msg","trigger","freeze","obj","Object","ResizeObserverSize","inlineSize","blockSize","this","DOMRectReadOnly","x","y","width","height","top","left","bottom","right","prototype","toJSON","_a","fromRect","rectangle","isSVG","target","SVGElement","isHidden","getBBox","_b","offsetWidth","offsetHeight","getClientRects","length","isElement","Element","scope","ownerDocument","defaultView","global","window","cache","WeakMap","scrollRegexp","verticalRegexp","IE","test","navigator","userAgent","parseDimension","pixel","parseFloat","size","switchSizes","zeroBoxes","devicePixelContentBoxSize","borderBoxSize","contentBoxSize","contentRect","calculateBoxSizes","forceRecalculation","has","get","set","cs","getComputedStyle","svg","ownerSVGElement","removePadding","boxSizing","writingMode","canScrollVertically","overflowY","canScrollHorizontally","overflowX","paddingTop","paddingRight","paddingBottom","paddingLeft","borderTop","borderTopWidth","borderRight","borderRightWidth","borderBottom","borderBottomWidth","horizontalPadding","verticalPadding","horizontalBorderArea","borderLeftWidth","verticalBorderArea","horizontalScrollbarThickness","clientHeight","verticalScrollbarThickness","clientWidth","widthReduction","heightReduction","contentWidth","contentHeight","borderBoxWidth","borderBoxHeight","boxes","Math","round","devicePixelRatio","calculateBoxSize","observedBox","DEVICE_PIXEL_CONTENT_BOX","BORDER_BOX","ResizeObserverEntry","calculateDepthForNode","node","Infinity","depth","parent","parentNode","broadcastActiveObservations","shallowestDepth","callbacks","forEach","ro","activeTargets","entries","ot","entry","targetDepth","push","lastReportedSize","callback","call","observer","splice","_i","callbacks_1","gatherActiveObservationsAtDepth","skippedTargets","observationTargets","isActive","process","event","some","ErrorEvent","message","document","createEvent","initEvent","dispatchEvent","queueMicroTask","toggle_1","el_1","createTextNode","MutationObserver","cb","observe","characterData","textContent","watching","observerConfig","attributes","childList","subtree","events","time","timeout","Date","now","scheduled","scheduler","Scheduler","_this","stopped","listener","schedule","run","until","elementsHaveResized","start","requestAnimationFrame","stop","body","addEventListener","name","disconnect","removeEventListener","updateCount","n","ResizeObservation","CONTENT_BOX","tagName","type","isReplacedElement","display","ResizeObserverDetail","resizeObserver","observerMap","getObservationIndex","i","ResizeObserverController","connect","detail","options","firstObservation","box","unobserve","index","lastObservation","indexOf","slice","ResizeObserver","arguments","TypeError","toString"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,iKAAgpBA,EAA5oBC,EAAgB,GAA8RC,EAAI,iEAAmX,SAAUF,GAA0BA,EAAqC,WAAE,aAAaA,EAAsC,YAAE,cAAcA,EAAmD,yBAAE,2BAAnM,CAAiOA,IAA2BA,EAAyB,KAAK,IAA8tOG,EAA1tOC,EAAO,SAAgBC,GAAK,OAAOC,OAAOF,OAAOC,IAAWE,EAA8B,SAA4BC,EAAWC,GAAWC,KAAKF,WAAWA,EAAWE,KAAKD,UAAUA,EAAUL,EAAOM,OAAyCC,EAAgB,WAAW,SAASA,EAAgBC,EAAEC,EAAEC,EAAMC,GAAgK,OAAxJL,KAAKE,EAAEA,EAAEF,KAAKG,EAAEA,EAAEH,KAAKI,MAAMA,EAAMJ,KAAKK,OAAOA,EAAOL,KAAKM,IAAIN,KAAKG,EAAEH,KAAKO,KAAKP,KAAKE,EAAEF,KAAKQ,OAAOR,KAAKM,IAAIN,KAAKK,OAAOL,KAAKS,MAAMT,KAAKO,KAAKP,KAAKI,MAAaV,EAAOM,MAAiY,OAA1XC,EAAgBS,UAAUC,OAAO,WAAW,IAAIC,EAAGZ,KAA2G,MAAM,CAACE,EAA3GU,EAAGV,EAA4GC,EAAxGS,EAAGT,EAAyGG,IAAnGM,EAAGN,IAAwGG,MAA9FG,EAAGH,MAAuGD,OAA1FI,EAAGJ,OAAqGD,KAAzFK,EAAGL,KAAgGH,MAArFQ,EAAGR,MAA8FC,OAAjFO,EAAGP,SAA+FJ,EAAgBY,SAAS,SAASC,GAAW,OAAO,IAAIb,EAAgBa,EAAUZ,EAAEY,EAAUX,EAAEW,EAAUV,MAAMU,EAAUT,SAAiBJ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E,EAAM,GAAGpB,GAAa,KAAMa,EAAyBf,WAAW,SAASW,GAAgB,IAAIxB,EAAM/J,KAAS6L,EAAOL,EAAYnI,IAAIkI,GAAgBM,EAAO/D,mBAAmBuE,QAAQxF,SAAQ,SAASI,GAAI,OAAO8C,EAAMkC,UAAUV,EAAetE,EAAGjG,WAAW6K,EAAO9E,cAAcU,OAAO,EAAEoE,EAAO9E,cAAcvF,SAAiBmK,EAA9wC,GAA+yCW,EAAe,WAAW,SAASA,EAAehF,GAAU,GAAsB,IAAnBiF,UAAU/K,OAAY,MAAM,IAAIgL,UAAU,kFAAmF,GAAqB,mBAAXlF,EAAuB,MAAM,IAAIkF,UAAU,iGAAkGb,EAAyBC,QAAQ5L,KAAKsH,GAA47B,OAAj7BgF,EAAe5L,UAAUqI,QAAQ,SAAS/H,EAAO8K,GAAS,GAAsB,IAAnBS,UAAU/K,OAAY,MAAM,IAAIgL,UAAU,6FAA8F,IAAI/K,EAAUT,GAAS,MAAM,IAAIwL,UAAU,wFAAyFb,EAAyB5C,QAAQ/I,KAAKgB,EAAO8K,IAAWQ,EAAe5L,UAAUuL,UAAU,SAASjL,GAAQ,GAAsB,IAAnBuL,UAAU/K,OAAY,MAAM,IAAIgL,UAAU,+FAAgG,IAAI/K,EAAUT,GAAS,MAAM,IAAIwL,UAAU,0FAA2Fb,EAAyBM,UAAUjM,KAAKgB,IAAUsL,EAAe5L,UAAUkK,WAAW,WAAWe,EAAyBf,WAAW5K,OAAQsM,EAAeG,SAAS,WAAW,MAAM,kDAA0DH,EAA7yC","file":"analytics/0-3f75c1ce.js","sourcesContent":["var resizeObservers=[];var hasActiveObservations=function hasActiveObservations(){return resizeObservers.some(function(ro){return ro.activeTargets.length>0;});};var hasSkippedObservations=function hasSkippedObservations(){return resizeObservers.some(function(ro){return ro.skippedTargets.length>0;});};var msg='ResizeObserver loop completed with undelivered notifications.';var deliverResizeLoopError=function deliverResizeLoopError(){var event;if(typeof ErrorEvent==='function'){event=new ErrorEvent('error',{message:msg});}else{event=document.createEvent('Event');event.initEvent('error',false,false);event.message=msg;}window.dispatchEvent(event);};var ResizeObserverBoxOptions;(function(ResizeObserverBoxOptions){ResizeObserverBoxOptions[\"BORDER_BOX\"]=\"border-box\";ResizeObserverBoxOptions[\"CONTENT_BOX\"]=\"content-box\";ResizeObserverBoxOptions[\"DEVICE_PIXEL_CONTENT_BOX\"]=\"device-pixel-content-box\";})(ResizeObserverBoxOptions||(ResizeObserverBoxOptions={}));var freeze=function freeze(obj){return Object.freeze(obj);};var ResizeObserverSize=function(){function ResizeObserverSize(inlineSize,blockSize){this.inlineSize=inlineSize;this.blockSize=blockSize;freeze(this);}return ResizeObserverSize;}();var DOMRectReadOnly=function(){function DOMRectReadOnly(x,y,width,height){this.x=x;this.y=y;this.width=width;this.height=height;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return freeze(this);}DOMRectReadOnly.prototype.toJSON=function(){var _a=this,x=_a.x,y=_a.y,top=_a.top,right=_a.right,bottom=_a.bottom,left=_a.left,width=_a.width,height=_a.height;return{x:x,y:y,top:top,right:right,bottom:bottom,left:left,width:width,height:height};};DOMRectReadOnly.fromRect=function(rectangle){return new DOMRectReadOnly(rectangle.x,rectangle.y,rectangle.width,rectangle.height);};return DOMRectReadOnly;}();var isSVG=function isSVG(target){return target instanceof SVGElement&&'getBBox'in target;};var isHidden=function isHidden(target){if(isSVG(target)){var _a=target.getBBox(),width=_a.width,height=_a.height;return!width&&!height;}var _b=target,offsetWidth=_b.offsetWidth,offsetHeight=_b.offsetHeight;return!(offsetWidth||offsetHeight||target.getClientRects().length);};var isElement=function isElement(obj){var _a,_b;if(obj instanceof Element){return true;}var scope=(_b=(_a=obj)===null||_a===void 0?void 0:_a.ownerDocument)===null||_b===void 0?void 0:_b.defaultView;return!!(scope&&obj instanceof scope.Element);};var isReplacedElement=function isReplacedElement(target){switch(target.tagName){case'INPUT':if(target.type!=='image'){break;}case'VIDEO':case'AUDIO':case'EMBED':case'OBJECT':case'CANVAS':case'IFRAME':case'IMG':return true;}return false;};var global=typeof window!=='undefined'?window:{};var cache=new WeakMap();var scrollRegexp=/auto|scroll/;var verticalRegexp=/^tb|vertical/;var IE=/msie|trident/i.test(global.navigator&&global.navigator.userAgent);var parseDimension=function parseDimension(pixel){return parseFloat(pixel||'0');};var size=function size(inlineSize,blockSize,switchSizes){if(inlineSize===void 0){inlineSize=0;}if(blockSize===void 0){blockSize=0;}if(switchSizes===void 0){switchSizes=false;}return new ResizeObserverSize((switchSizes?blockSize:inlineSize)||0,(switchSizes?inlineSize:blockSize)||0);};var zeroBoxes=freeze({devicePixelContentBoxSize:size(),borderBoxSize:size(),contentBoxSize:size(),contentRect:new DOMRectReadOnly(0,0,0,0)});var calculateBoxSizes=function calculateBoxSizes(target,forceRecalculation){if(forceRecalculation===void 0){forceRecalculation=false;}if(cache.has(target)&&!forceRecalculation){return cache.get(target);}if(isHidden(target)){cache.set(target,zeroBoxes);return zeroBoxes;}var cs=getComputedStyle(target);var svg=isSVG(target)&&target.ownerSVGElement&&target.getBBox();var removePadding=!IE&&cs.boxSizing==='border-box';var switchSizes=verticalRegexp.test(cs.writingMode||'');var canScrollVertically=!svg&&scrollRegexp.test(cs.overflowY||'');var canScrollHorizontally=!svg&&scrollRegexp.test(cs.overflowX||'');var paddingTop=svg?0:parseDimension(cs.paddingTop);var paddingRight=svg?0:parseDimension(cs.paddingRight);var paddingBottom=svg?0:parseDimension(cs.paddingBottom);var paddingLeft=svg?0:parseDimension(cs.paddingLeft);var borderTop=svg?0:parseDimension(cs.borderTopWidth);var borderRight=svg?0:parseDimension(cs.borderRightWidth);var borderBottom=svg?0:parseDimension(cs.borderBottomWidth);var borderLeft=svg?0:parseDimension(cs.borderLeftWidth);var horizontalPadding=paddingLeft+paddingRight;var verticalPadding=paddingTop+paddingBottom;var horizontalBorderArea=borderLeft+borderRight;var verticalBorderArea=borderTop+borderBottom;var horizontalScrollbarThickness=!canScrollHorizontally?0:target.offsetHeight-verticalBorderArea-target.clientHeight;var verticalScrollbarThickness=!canScrollVertically?0:target.offsetWidth-horizontalBorderArea-target.clientWidth;var widthReduction=removePadding?horizontalPadding+horizontalBorderArea:0;var heightReduction=removePadding?verticalPadding+verticalBorderArea:0;var contentWidth=svg?svg.width:parseDimension(cs.width)-widthReduction-verticalScrollbarThickness;var contentHeight=svg?svg.height:parseDimension(cs.height)-heightReduction-horizontalScrollbarThickness;var borderBoxWidth=contentWidth+horizontalPadding+verticalScrollbarThickness+horizontalBorderArea;var borderBoxHeight=contentHeight+verticalPadding+horizontalScrollbarThickness+verticalBorderArea;var boxes=freeze({devicePixelContentBoxSize:size(Math.round(contentWidth*devicePixelRatio),Math.round(contentHeight*devicePixelRatio),switchSizes),borderBoxSize:size(borderBoxWidth,borderBoxHeight,switchSizes),contentBoxSize:size(contentWidth,contentHeight,switchSizes),contentRect:new DOMRectReadOnly(paddingLeft,paddingTop,contentWidth,contentHeight)});cache.set(target,boxes);return boxes;};var calculateBoxSize=function calculateBoxSize(target,observedBox,forceRecalculation){var _a=calculateBoxSizes(target,forceRecalculation),borderBoxSize=_a.borderBoxSize,contentBoxSize=_a.contentBoxSize,devicePixelContentBoxSize=_a.devicePixelContentBoxSize;switch(observedBox){case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return devicePixelContentBoxSize;case ResizeObserverBoxOptions.BORDER_BOX:return borderBoxSize;default:return contentBoxSize;}};var ResizeObserverEntry=function(){function ResizeObserverEntry(target){var boxes=calculateBoxSizes(target);this.target=target;this.contentRect=boxes.contentRect;this.borderBoxSize=freeze([boxes.borderBoxSize]);this.contentBoxSize=freeze([boxes.contentBoxSize]);this.devicePixelContentBoxSize=freeze([boxes.devicePixelContentBoxSize]);}return ResizeObserverEntry;}();var calculateDepthForNode=function calculateDepthForNode(node){if(isHidden(node)){return Infinity;}var depth=0;var parent=node.parentNode;while(parent){depth+=1;parent=parent.parentNode;}return depth;};var broadcastActiveObservations=function broadcastActiveObservations(){var shallowestDepth=Infinity;var callbacks=[];resizeObservers.forEach(function processObserver(ro){if(ro.activeTargets.length===0){return;}var entries=[];ro.activeTargets.forEach(function processTarget(ot){var entry=new ResizeObserverEntry(ot.target);var targetDepth=calculateDepthForNode(ot.target);entries.push(entry);ot.lastReportedSize=calculateBoxSize(ot.target,ot.observedBox);if(targetDepth<shallowestDepth){shallowestDepth=targetDepth;}});callbacks.push(function resizeObserverCallback(){ro.callback.call(ro.observer,entries,ro.observer);});ro.activeTargets.splice(0,ro.activeTargets.length);});for(var _i=0,callbacks_1=callbacks;_i<callbacks_1.length;_i++){var callback=callbacks_1[_i];callback();}return shallowestDepth;};var gatherActiveObservationsAtDepth=function gatherActiveObservationsAtDepth(depth){resizeObservers.forEach(function processObserver(ro){ro.activeTargets.splice(0,ro.activeTargets.length);ro.skippedTargets.splice(0,ro.skippedTargets.length);ro.observationTargets.forEach(function processTarget(ot){if(ot.isActive()){if(calculateDepthForNode(ot.target)>depth){ro.activeTargets.push(ot);}else{ro.skippedTargets.push(ot);}}});});};var process=function process(){var depth=0;gatherActiveObservationsAtDepth(depth);while(hasActiveObservations()){depth=broadcastActiveObservations();gatherActiveObservationsAtDepth(depth);}if(hasSkippedObservations()){deliverResizeLoopError();}return depth>0;};var trigger;var callbacks=[];var notify=function notify(){return callbacks.splice(0).forEach(function(cb){return cb();});};var queueMicroTask=function queueMicroTask(callback){if(!trigger){var toggle_1=0;var el_1=document.createTextNode('');var config={characterData:true};new MutationObserver(function(){return notify();}).observe(el_1,config);trigger=function trigger(){el_1.textContent=\"\"+(toggle_1?toggle_1--:toggle_1++);};}callbacks.push(callback);trigger();};var queueResizeObserver=function queueResizeObserver(cb){queueMicroTask(function ResizeObserver(){requestAnimationFrame(cb);});};var watching=0;var isWatching=function isWatching(){return!!watching;};var CATCH_PERIOD=250;var observerConfig={attributes:true,characterData:true,childList:true,subtree:true};var events=['resize','load','transitionend','animationend','animationstart','animationiteration','keyup','keydown','mouseup','mousedown','mouseover','mouseout','blur','focus'];var time=function time(timeout){if(timeout===void 0){timeout=0;}return Date.now()+timeout;};var scheduled=false;var Scheduler=function(){function Scheduler(){var _this=this;this.stopped=true;this.listener=function(){return _this.schedule();};}Scheduler.prototype.run=function(timeout){var _this=this;if(timeout===void 0){timeout=CATCH_PERIOD;}if(scheduled){return;}scheduled=true;var until=time(timeout);queueResizeObserver(function(){var elementsHaveResized=false;try{elementsHaveResized=process();}finally{scheduled=false;timeout=until-time();if(!isWatching()){return;}if(elementsHaveResized){_this.run(1000);}else if(timeout>0){_this.run(timeout);}else{_this.start();}}});};Scheduler.prototype.schedule=function(){this.stop();this.run();};Scheduler.prototype.observe=function(){var _this=this;var cb=function cb(){return _this.observer&&_this.observer.observe(document.body,observerConfig);};document.body?cb():global.addEventListener('DOMContentLoaded',cb);};Scheduler.prototype.start=function(){var _this=this;if(this.stopped){this.stopped=false;this.observer=new MutationObserver(this.listener);this.observe();events.forEach(function(name){return global.addEventListener(name,_this.listener,true);});}};Scheduler.prototype.stop=function(){var _this=this;if(!this.stopped){this.observer&&this.observer.disconnect();events.forEach(function(name){return global.removeEventListener(name,_this.listener,true);});this.stopped=true;}};return Scheduler;}();var scheduler=new Scheduler();var updateCount=function updateCount(n){!watching&&n>0&&scheduler.start();watching+=n;!watching&&scheduler.stop();};var skipNotifyOnElement=function skipNotifyOnElement(target){return!isSVG(target)&&!isReplacedElement(target)&&getComputedStyle(target).display==='inline';};var ResizeObservation=function(){function ResizeObservation(target,observedBox){this.target=target;this.observedBox=observedBox||ResizeObserverBoxOptions.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0};}ResizeObservation.prototype.isActive=function(){var size=calculateBoxSize(this.target,this.observedBox,true);if(skipNotifyOnElement(this.target)){this.lastReportedSize=size;}if(this.lastReportedSize.inlineSize!==size.inlineSize||this.lastReportedSize.blockSize!==size.blockSize){return true;}return false;};return ResizeObservation;}();var ResizeObserverDetail=function(){function ResizeObserverDetail(resizeObserver,callback){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=resizeObserver;this.callback=callback;}return ResizeObserverDetail;}();var observerMap=new WeakMap();var getObservationIndex=function getObservationIndex(observationTargets,target){for(var i=0;i<observationTargets.length;i+=1){if(observationTargets[i].target===target){return i;}}return-1;};var ResizeObserverController=function(){function ResizeObserverController(){}ResizeObserverController.connect=function(resizeObserver,callback){var detail=new ResizeObserverDetail(resizeObserver,callback);observerMap.set(resizeObserver,detail);};ResizeObserverController.observe=function(resizeObserver,target,options){var detail=observerMap.get(resizeObserver);var firstObservation=detail.observationTargets.length===0;if(getObservationIndex(detail.observationTargets,target)<0){firstObservation&&resizeObservers.push(detail);detail.observationTargets.push(new ResizeObservation(target,options&&options.box));updateCount(1);scheduler.schedule();}};ResizeObserverController.unobserve=function(resizeObserver,target){var detail=observerMap.get(resizeObserver);var index=getObservationIndex(detail.observationTargets,target);var lastObservation=detail.observationTargets.length===1;if(index>=0){lastObservation&&resizeObservers.splice(resizeObservers.indexOf(detail),1);detail.observationTargets.splice(index,1);updateCount(-1);}};ResizeObserverController.disconnect=function(resizeObserver){var _this=this;var detail=observerMap.get(resizeObserver);detail.observationTargets.slice().forEach(function(ot){return _this.unobserve(resizeObserver,ot.target);});detail.activeTargets.splice(0,detail.activeTargets.length);};return ResizeObserverController;}();var ResizeObserver=function(){function ResizeObserver(callback){if(arguments.length===0){throw new TypeError(\"Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.\");}if(typeof callback!=='function'){throw new TypeError(\"Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.\");}ResizeObserverController.connect(this,callback);}ResizeObserver.prototype.observe=function(target,options){if(arguments.length===0){throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.\");}if(!isElement(target)){throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element\");}ResizeObserverController.observe(this,target,options);};ResizeObserver.prototype.unobserve=function(target){if(arguments.length===0){throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.\");}if(!isElement(target)){throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element\");}ResizeObserverController.unobserve(this,target);};ResizeObserver.prototype.disconnect=function(){ResizeObserverController.disconnect(this);};ResizeObserver.toString=function(){return'function ResizeObserver () { [polyfill code] }';};return ResizeObserver;}();export{ResizeObserver,ResizeObserverEntry,ResizeObserverSize};"],"sourceRoot":""}
|
dist/analytics/0-ecdca2a6.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/
|
18 |
+
(window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[0],{46:function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeObserver",(function(){return V})),n.d(t,"ResizeObserverEntry",(function(){return m})),n.d(t,"ResizeObserverSize",(function(){return c}));var r,i=[],o="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var s,a=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,a(this)},u=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,a(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),h=function(e){return e instanceof SVGElement&&"getBBox"in e},f=function(e){if(h(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},d=function(e){var t,n;if(e instanceof Element)return!0;var r=null===(n=null===(t=e)||void 0===t?void 0:t.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(r&&e instanceof r.Element)},v="undefined"!=typeof window?window:{},p=new WeakMap,l=/auto|scroll/,g=/^tb|vertical/,b=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},E=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},x=a({devicePixelContentBoxSize:E(),borderBoxSize:E(),contentBoxSize:E(),contentRect:new u(0,0,0,0)}),y=function(e,t){if(void 0===t&&(t=!1),p.has(e)&&!t)return p.get(e);if(f(e))return p.set(e,x),x;var n=getComputedStyle(e),r=h(e)&&e.ownerSVGElement&&e.getBBox(),i=!b&&"border-box"===n.boxSizing,o=g.test(n.writingMode||""),s=!r&&l.test(n.overflowY||""),c=!r&&l.test(n.overflowX||""),d=r?0:w(n.paddingTop),v=r?0:w(n.paddingRight),y=r?0:w(n.paddingBottom),T=r?0:w(n.paddingLeft),m=r?0:w(n.borderTopWidth),z=r?0:w(n.borderRightWidth),S=r?0:w(n.borderBottomWidth),B=T+v,O=d+y,R=(r?0:w(n.borderLeftWidth))+z,k=m+S,C=c?e.offsetHeight-k-e.clientHeight:0,N=s?e.offsetWidth-R-e.clientWidth:0,D=i?B+R:0,P=i?O+k:0,M=r?r.width:w(n.width)-D-N,_=r?r.height:w(n.height)-P-C,F=M+B+N+R,I=_+O+C+k,L=a({devicePixelContentBoxSize:E(Math.round(M*devicePixelRatio),Math.round(_*devicePixelRatio),o),borderBoxSize:E(F,I,o),contentBoxSize:E(M,_,o),contentRect:new u(T,d,M,_)});return p.set(e,L),L},T=function(e,t,n){var i=y(e,n),o=i.borderBoxSize,s=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return a;case r.BORDER_BOX:return o;default:return s}},m=function(e){var t=y(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=a([t.borderBoxSize]),this.contentBoxSize=a([t.contentBoxSize]),this.devicePixelContentBoxSize=a([t.devicePixelContentBoxSize])},z=function(e){if(f(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},S=function(){var e=1/0,t=[];i.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new m(t.target),i=z(t.target);r.push(n),t.lastReportedSize=T(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},B=function(e){i.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(z(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},O=function(){var e,t=0;for(B(t);i.some((function(e){return e.activeTargets.length>0}));)t=S(),B(t);return i.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:o}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=o),window.dispatchEvent(e)),t>0},R=[],k=function(e){if(!s){var t=0,n=document.createTextNode("");new MutationObserver((function(){return R.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),s=function(){n.textContent=""+(t?t--:t++)}}R.push(e),s()},C=0,N={attributes:!0,characterData:!0,childList:!0,subtree:!0},D=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],P=function(e){return void 0===e&&(e=0),Date.now()+e},M=!1,_=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!M){M=!0;var n,r=P(e);n=function(){var n=!1;try{n=O()}finally{if(M=!1,e=r-P(),!C)return;n?t.run(1e3):e>0?t.run(e):t.start()}},k((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,N)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),D.forEach((function(t){return v.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),D.forEach((function(t){return v.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),F=function(e){!C&&e>0&&_.start(),!(C+=e)&&_.stop()},I=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=T(this.target,this.observedBox,!0);return e=this.target,h(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),L=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},W=new WeakMap,X=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},A=function(){function e(){}return e.connect=function(e,t){var n=new L(e,t);W.set(e,n)},e.observe=function(e,t,n){var r=W.get(e),o=0===r.observationTargets.length;X(r.observationTargets,t)<0&&(o&&i.push(r),r.observationTargets.push(new I(t,n&&n.box)),F(1),_.schedule())},e.unobserve=function(e,t){var n=W.get(e),r=X(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&i.splice(i.indexOf(n),1),n.observationTargets.splice(r,1),F(-1))},e.disconnect=function(e){var t=this,n=W.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),V=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");A.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!d(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");A.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!d(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");A.unobserve(this,e)},e.prototype.disconnect=function(){A.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()}}]);
|
19 |
+
//# sourceMappingURL=0-ecdca2a6.js.map
|
dist/analytics/0-ecdca2a6.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/resize-observer.js"],"names":["ResizeObserverBoxOptions","resizeObservers","msg","trigger","freeze","obj","Object","ResizeObserverSize","inlineSize","blockSize","this","DOMRectReadOnly","x","y","width","height","top","left","bottom","right","prototype","toJSON","_a","fromRect","rectangle","isSVG","target","SVGElement","isHidden","getBBox","_b","offsetWidth","offsetHeight","getClientRects","length","isElement","Element","scope","ownerDocument","defaultView","global","window","cache","WeakMap","scrollRegexp","verticalRegexp","IE","test","navigator","userAgent","parseDimension","pixel","parseFloat","size","switchSizes","zeroBoxes","devicePixelContentBoxSize","borderBoxSize","contentBoxSize","contentRect","calculateBoxSizes","forceRecalculation","has","get","set","cs","getComputedStyle","svg","ownerSVGElement","removePadding","boxSizing","writingMode","canScrollVertically","overflowY","canScrollHorizontally","overflowX","paddingTop","paddingRight","paddingBottom","paddingLeft","borderTop","borderTopWidth","borderRight","borderRightWidth","borderBottom","borderBottomWidth","horizontalPadding","verticalPadding","horizontalBorderArea","borderLeftWidth","verticalBorderArea","horizontalScrollbarThickness","clientHeight","verticalScrollbarThickness","clientWidth","widthReduction","heightReduction","contentWidth","contentHeight","borderBoxWidth","borderBoxHeight","boxes","Math","round","devicePixelRatio","calculateBoxSize","observedBox","DEVICE_PIXEL_CONTENT_BOX","BORDER_BOX","ResizeObserverEntry","calculateDepthForNode","node","Infinity","depth","parent","parentNode","broadcastActiveObservations","shallowestDepth","callbacks","forEach","ro","activeTargets","entries","ot","entry","targetDepth","push","lastReportedSize","callback","call","observer","splice","_i","callbacks_1","gatherActiveObservationsAtDepth","skippedTargets","observationTargets","isActive","process","event","some","ErrorEvent","message","document","createEvent","initEvent","dispatchEvent","queueMicroTask","toggle_1","el_1","createTextNode","MutationObserver","cb","observe","characterData","textContent","watching","observerConfig","attributes","childList","subtree","events","time","timeout","Date","now","scheduled","scheduler","Scheduler","_this","stopped","listener","schedule","run","until","elementsHaveResized","start","requestAnimationFrame","stop","body","addEventListener","name","disconnect","removeEventListener","updateCount","n","ResizeObservation","CONTENT_BOX","tagName","type","isReplacedElement","display","ResizeObserverDetail","resizeObserver","observerMap","getObservationIndex","i","ResizeObserverController","connect","detail","options","firstObservation","box","unobserve","index","lastObservation","indexOf","slice","ResizeObserver","arguments","TypeError","toString"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,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AAO,EAAEoE,EAAO9E,cAAcvF,SAAiBmK,EAA9wC,GAA+yCW,EAAe,WAAW,SAASA,EAAehF,GAAU,GAAsB,IAAnBiF,UAAU/K,OAAY,MAAM,IAAIgL,UAAU,kFAAmF,GAAqB,mBAAXlF,EAAuB,MAAM,IAAIkF,UAAU,iGAAkGb,EAAyBC,QAAQ5L,KAAKsH,GAA47B,OAAj7BgF,EAAe5L,UAAUqI,QAAQ,SAAS/H,EAAO8K,GAAS,GAAsB,IAAnBS,UAAU/K,OAAY,MAAM,IAAIgL,UAAU,6FAA8F,IAAI/K,EAAUT,GAAS,MAAM,IAAIwL,UAAU,wFAAyFb,EAAyB5C,QAAQ/I,KAAKgB,EAAO8K,IAAWQ,EAAe5L,UAAUuL,UAAU,SAASjL,GAAQ,GAAsB,IAAnBuL,UAAU/K,OAAY,MAAM,IAAIgL,UAAU,+FAAgG,IAAI/K,EAAUT,GAAS,MAAM,IAAIwL,UAAU,0FAA2Fb,EAAyBM,UAAUjM,KAAKgB,IAAUsL,EAAe5L,UAAUkK,WAAW,WAAWe,EAAyBf,WAAW5K,OAAQsM,EAAeG,SAAS,WAAW,MAAM,kDAA0DH,EAA7yC","file":"analytics/0-ecdca2a6.js","sourcesContent":["var resizeObservers=[];var hasActiveObservations=function hasActiveObservations(){return resizeObservers.some(function(ro){return ro.activeTargets.length>0;});};var hasSkippedObservations=function hasSkippedObservations(){return resizeObservers.some(function(ro){return ro.skippedTargets.length>0;});};var msg='ResizeObserver loop completed with undelivered notifications.';var deliverResizeLoopError=function deliverResizeLoopError(){var event;if(typeof ErrorEvent==='function'){event=new ErrorEvent('error',{message:msg});}else{event=document.createEvent('Event');event.initEvent('error',false,false);event.message=msg;}window.dispatchEvent(event);};var ResizeObserverBoxOptions;(function(ResizeObserverBoxOptions){ResizeObserverBoxOptions[\"BORDER_BOX\"]=\"border-box\";ResizeObserverBoxOptions[\"CONTENT_BOX\"]=\"content-box\";ResizeObserverBoxOptions[\"DEVICE_PIXEL_CONTENT_BOX\"]=\"device-pixel-content-box\";})(ResizeObserverBoxOptions||(ResizeObserverBoxOptions={}));var freeze=function freeze(obj){return Object.freeze(obj);};var ResizeObserverSize=function(){function ResizeObserverSize(inlineSize,blockSize){this.inlineSize=inlineSize;this.blockSize=blockSize;freeze(this);}return ResizeObserverSize;}();var DOMRectReadOnly=function(){function DOMRectReadOnly(x,y,width,height){this.x=x;this.y=y;this.width=width;this.height=height;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return freeze(this);}DOMRectReadOnly.prototype.toJSON=function(){var _a=this,x=_a.x,y=_a.y,top=_a.top,right=_a.right,bottom=_a.bottom,left=_a.left,width=_a.width,height=_a.height;return{x:x,y:y,top:top,right:right,bottom:bottom,left:left,width:width,height:height};};DOMRectReadOnly.fromRect=function(rectangle){return new DOMRectReadOnly(rectangle.x,rectangle.y,rectangle.width,rectangle.height);};return DOMRectReadOnly;}();var isSVG=function isSVG(target){return target instanceof SVGElement&&'getBBox'in target;};var isHidden=function isHidden(target){if(isSVG(target)){var _a=target.getBBox(),width=_a.width,height=_a.height;return!width&&!height;}var _b=target,offsetWidth=_b.offsetWidth,offsetHeight=_b.offsetHeight;return!(offsetWidth||offsetHeight||target.getClientRects().length);};var isElement=function isElement(obj){var _a,_b;if(obj instanceof Element){return true;}var scope=(_b=(_a=obj)===null||_a===void 0?void 0:_a.ownerDocument)===null||_b===void 0?void 0:_b.defaultView;return!!(scope&&obj instanceof scope.Element);};var isReplacedElement=function isReplacedElement(target){switch(target.tagName){case'INPUT':if(target.type!=='image'){break;}case'VIDEO':case'AUDIO':case'EMBED':case'OBJECT':case'CANVAS':case'IFRAME':case'IMG':return true;}return false;};var global=typeof window!=='undefined'?window:{};var cache=new WeakMap();var scrollRegexp=/auto|scroll/;var verticalRegexp=/^tb|vertical/;var IE=/msie|trident/i.test(global.navigator&&global.navigator.userAgent);var parseDimension=function parseDimension(pixel){return parseFloat(pixel||'0');};var size=function size(inlineSize,blockSize,switchSizes){if(inlineSize===void 0){inlineSize=0;}if(blockSize===void 0){blockSize=0;}if(switchSizes===void 0){switchSizes=false;}return new ResizeObserverSize((switchSizes?blockSize:inlineSize)||0,(switchSizes?inlineSize:blockSize)||0);};var zeroBoxes=freeze({devicePixelContentBoxSize:size(),borderBoxSize:size(),contentBoxSize:size(),contentRect:new DOMRectReadOnly(0,0,0,0)});var calculateBoxSizes=function calculateBoxSizes(target,forceRecalculation){if(forceRecalculation===void 0){forceRecalculation=false;}if(cache.has(target)&&!forceRecalculation){return cache.get(target);}if(isHidden(target)){cache.set(target,zeroBoxes);return zeroBoxes;}var cs=getComputedStyle(target);var svg=isSVG(target)&&target.ownerSVGElement&&target.getBBox();var removePadding=!IE&&cs.boxSizing==='border-box';var switchSizes=verticalRegexp.test(cs.writingMode||'');var canScrollVertically=!svg&&scrollRegexp.test(cs.overflowY||'');var canScrollHorizontally=!svg&&scrollRegexp.test(cs.overflowX||'');var paddingTop=svg?0:parseDimension(cs.paddingTop);var paddingRight=svg?0:parseDimension(cs.paddingRight);var paddingBottom=svg?0:parseDimension(cs.paddingBottom);var paddingLeft=svg?0:parseDimension(cs.paddingLeft);var borderTop=svg?0:parseDimension(cs.borderTopWidth);var borderRight=svg?0:parseDimension(cs.borderRightWidth);var borderBottom=svg?0:parseDimension(cs.borderBottomWidth);var borderLeft=svg?0:parseDimension(cs.borderLeftWidth);var horizontalPadding=paddingLeft+paddingRight;var verticalPadding=paddingTop+paddingBottom;var horizontalBorderArea=borderLeft+borderRight;var verticalBorderArea=borderTop+borderBottom;var horizontalScrollbarThickness=!canScrollHorizontally?0:target.offsetHeight-verticalBorderArea-target.clientHeight;var verticalScrollbarThickness=!canScrollVertically?0:target.offsetWidth-horizontalBorderArea-target.clientWidth;var widthReduction=removePadding?horizontalPadding+horizontalBorderArea:0;var heightReduction=removePadding?verticalPadding+verticalBorderArea:0;var contentWidth=svg?svg.width:parseDimension(cs.width)-widthReduction-verticalScrollbarThickness;var contentHeight=svg?svg.height:parseDimension(cs.height)-heightReduction-horizontalScrollbarThickness;var borderBoxWidth=contentWidth+horizontalPadding+verticalScrollbarThickness+horizontalBorderArea;var borderBoxHeight=contentHeight+verticalPadding+horizontalScrollbarThickness+verticalBorderArea;var boxes=freeze({devicePixelContentBoxSize:size(Math.round(contentWidth*devicePixelRatio),Math.round(contentHeight*devicePixelRatio),switchSizes),borderBoxSize:size(borderBoxWidth,borderBoxHeight,switchSizes),contentBoxSize:size(contentWidth,contentHeight,switchSizes),contentRect:new DOMRectReadOnly(paddingLeft,paddingTop,contentWidth,contentHeight)});cache.set(target,boxes);return boxes;};var calculateBoxSize=function calculateBoxSize(target,observedBox,forceRecalculation){var _a=calculateBoxSizes(target,forceRecalculation),borderBoxSize=_a.borderBoxSize,contentBoxSize=_a.contentBoxSize,devicePixelContentBoxSize=_a.devicePixelContentBoxSize;switch(observedBox){case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return devicePixelContentBoxSize;case ResizeObserverBoxOptions.BORDER_BOX:return borderBoxSize;default:return contentBoxSize;}};var ResizeObserverEntry=function(){function ResizeObserverEntry(target){var boxes=calculateBoxSizes(target);this.target=target;this.contentRect=boxes.contentRect;this.borderBoxSize=freeze([boxes.borderBoxSize]);this.contentBoxSize=freeze([boxes.contentBoxSize]);this.devicePixelContentBoxSize=freeze([boxes.devicePixelContentBoxSize]);}return ResizeObserverEntry;}();var calculateDepthForNode=function calculateDepthForNode(node){if(isHidden(node)){return Infinity;}var depth=0;var parent=node.parentNode;while(parent){depth+=1;parent=parent.parentNode;}return depth;};var broadcastActiveObservations=function broadcastActiveObservations(){var shallowestDepth=Infinity;var callbacks=[];resizeObservers.forEach(function processObserver(ro){if(ro.activeTargets.length===0){return;}var entries=[];ro.activeTargets.forEach(function processTarget(ot){var entry=new ResizeObserverEntry(ot.target);var targetDepth=calculateDepthForNode(ot.target);entries.push(entry);ot.lastReportedSize=calculateBoxSize(ot.target,ot.observedBox);if(targetDepth<shallowestDepth){shallowestDepth=targetDepth;}});callbacks.push(function resizeObserverCallback(){ro.callback.call(ro.observer,entries,ro.observer);});ro.activeTargets.splice(0,ro.activeTargets.length);});for(var _i=0,callbacks_1=callbacks;_i<callbacks_1.length;_i++){var callback=callbacks_1[_i];callback();}return shallowestDepth;};var gatherActiveObservationsAtDepth=function gatherActiveObservationsAtDepth(depth){resizeObservers.forEach(function processObserver(ro){ro.activeTargets.splice(0,ro.activeTargets.length);ro.skippedTargets.splice(0,ro.skippedTargets.length);ro.observationTargets.forEach(function processTarget(ot){if(ot.isActive()){if(calculateDepthForNode(ot.target)>depth){ro.activeTargets.push(ot);}else{ro.skippedTargets.push(ot);}}});});};var process=function process(){var depth=0;gatherActiveObservationsAtDepth(depth);while(hasActiveObservations()){depth=broadcastActiveObservations();gatherActiveObservationsAtDepth(depth);}if(hasSkippedObservations()){deliverResizeLoopError();}return depth>0;};var trigger;var callbacks=[];var notify=function notify(){return callbacks.splice(0).forEach(function(cb){return cb();});};var queueMicroTask=function queueMicroTask(callback){if(!trigger){var toggle_1=0;var el_1=document.createTextNode('');var config={characterData:true};new MutationObserver(function(){return notify();}).observe(el_1,config);trigger=function trigger(){el_1.textContent=\"\"+(toggle_1?toggle_1--:toggle_1++);};}callbacks.push(callback);trigger();};var queueResizeObserver=function queueResizeObserver(cb){queueMicroTask(function ResizeObserver(){requestAnimationFrame(cb);});};var watching=0;var isWatching=function isWatching(){return!!watching;};var CATCH_PERIOD=250;var observerConfig={attributes:true,characterData:true,childList:true,subtree:true};var events=['resize','load','transitionend','animationend','animationstart','animationiteration','keyup','keydown','mouseup','mousedown','mouseover','mouseout','blur','focus'];var time=function time(timeout){if(timeout===void 0){timeout=0;}return Date.now()+timeout;};var scheduled=false;var Scheduler=function(){function Scheduler(){var _this=this;this.stopped=true;this.listener=function(){return _this.schedule();};}Scheduler.prototype.run=function(timeout){var _this=this;if(timeout===void 0){timeout=CATCH_PERIOD;}if(scheduled){return;}scheduled=true;var until=time(timeout);queueResizeObserver(function(){var elementsHaveResized=false;try{elementsHaveResized=process();}finally{scheduled=false;timeout=until-time();if(!isWatching()){return;}if(elementsHaveResized){_this.run(1000);}else if(timeout>0){_this.run(timeout);}else{_this.start();}}});};Scheduler.prototype.schedule=function(){this.stop();this.run();};Scheduler.prototype.observe=function(){var _this=this;var cb=function cb(){return _this.observer&&_this.observer.observe(document.body,observerConfig);};document.body?cb():global.addEventListener('DOMContentLoaded',cb);};Scheduler.prototype.start=function(){var _this=this;if(this.stopped){this.stopped=false;this.observer=new MutationObserver(this.listener);this.observe();events.forEach(function(name){return global.addEventListener(name,_this.listener,true);});}};Scheduler.prototype.stop=function(){var _this=this;if(!this.stopped){this.observer&&this.observer.disconnect();events.forEach(function(name){return global.removeEventListener(name,_this.listener,true);});this.stopped=true;}};return Scheduler;}();var scheduler=new Scheduler();var updateCount=function updateCount(n){!watching&&n>0&&scheduler.start();watching+=n;!watching&&scheduler.stop();};var skipNotifyOnElement=function skipNotifyOnElement(target){return!isSVG(target)&&!isReplacedElement(target)&&getComputedStyle(target).display==='inline';};var ResizeObservation=function(){function ResizeObservation(target,observedBox){this.target=target;this.observedBox=observedBox||ResizeObserverBoxOptions.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0};}ResizeObservation.prototype.isActive=function(){var size=calculateBoxSize(this.target,this.observedBox,true);if(skipNotifyOnElement(this.target)){this.lastReportedSize=size;}if(this.lastReportedSize.inlineSize!==size.inlineSize||this.lastReportedSize.blockSize!==size.blockSize){return true;}return false;};return ResizeObservation;}();var ResizeObserverDetail=function(){function ResizeObserverDetail(resizeObserver,callback){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=resizeObserver;this.callback=callback;}return ResizeObserverDetail;}();var observerMap=new WeakMap();var getObservationIndex=function getObservationIndex(observationTargets,target){for(var i=0;i<observationTargets.length;i+=1){if(observationTargets[i].target===target){return i;}}return-1;};var ResizeObserverController=function(){function ResizeObserverController(){}ResizeObserverController.connect=function(resizeObserver,callback){var detail=new ResizeObserverDetail(resizeObserver,callback);observerMap.set(resizeObserver,detail);};ResizeObserverController.observe=function(resizeObserver,target,options){var detail=observerMap.get(resizeObserver);var firstObservation=detail.observationTargets.length===0;if(getObservationIndex(detail.observationTargets,target)<0){firstObservation&&resizeObservers.push(detail);detail.observationTargets.push(new ResizeObservation(target,options&&options.box));updateCount(1);scheduler.schedule();}};ResizeObserverController.unobserve=function(resizeObserver,target){var detail=observerMap.get(resizeObserver);var index=getObservationIndex(detail.observationTargets,target);var lastObservation=detail.observationTargets.length===1;if(index>=0){lastObservation&&resizeObservers.splice(resizeObservers.indexOf(detail),1);detail.observationTargets.splice(index,1);updateCount(-1);}};ResizeObserverController.disconnect=function(resizeObserver){var _this=this;var detail=observerMap.get(resizeObserver);detail.observationTargets.slice().forEach(function(ot){return _this.unobserve(resizeObserver,ot.target);});detail.activeTargets.splice(0,detail.activeTargets.length);};return ResizeObserverController;}();var ResizeObserver=function(){function ResizeObserver(callback){if(arguments.length===0){throw new TypeError(\"Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.\");}if(typeof callback!=='function'){throw new TypeError(\"Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.\");}ResizeObserverController.connect(this,callback);}ResizeObserver.prototype.observe=function(target,options){if(arguments.length===0){throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.\");}if(!isElement(target)){throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element\");}ResizeObserverController.observe(this,target,options);};ResizeObserver.prototype.unobserve=function(target){if(arguments.length===0){throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.\");}if(!isElement(target)){throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element\");}ResizeObserverController.unobserve(this,target);};ResizeObserver.prototype.disconnect=function(){ResizeObserverController.disconnect(this);};ResizeObserver.toString=function(){return'function ResizeObserver () { [polyfill code] }';};return ResizeObserver;}();export{ResizeObserver,ResizeObserverEntry,ResizeObserverSize};"],"sourceRoot":""}
|
dist/analytics/4-1071be7e.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/
|
18 |
+
(window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[4],{49:function(e,n,t){"use strict";t.r(n);var o=t(23);n.default=function(e){var n=e.config,t=e.selector,r=e.src,a=e.preload;return new Promise((function(e,i){if(window.Hls){if(window.Hls.isSupported()){var l,s=!["metadata","none"].includes(a);null!==(l=wp)&&void 0!==l&&l.blocks&&(s=!0);var u=new window.Hls({autoStartLoad:s});return u.loadSource(r),u.on(window.Hls.Events.LEVEL_SWITCHED,(function(e,n){var o=t.closest(".presto-player__wrapper").querySelector(".plyr__menu__container [data-plyr='quality'][value='0'] span");u.autoLevelEnabled?o.innerHTML="AUTO (".concat(u.levels[n.level].height,"p)"):o.innerHTML="AUTO"})),void u.on(window.Hls.Events.MANIFEST_PARSED,(function(r,a){var i=u.levels.map((function(e){return e.height}));i.unshift(0);var l=i.findIndex((function(e){var n;return e===parseInt(null===(n=prestoPlayer)||void 0===n?void 0:n.hls_start_level)}));u.startLevel=l?l-1:2,n.quality={default:0,options:i,forced:!0,onChange:function(e){0===e?prestoHLS.currentLevel=-1:prestoHLS.levels.forEach((function(n,t){n.height===e&&(console.log("Found quality match with "+e),prestoHLS.currentLevel=t)}))}},u.attachMedia(t),window.prestoHLS=u;var s=new o.a(t,Object(o.b)({},n));s.hls=u;return s.on("waiting",(function e(){u.startLoad(-1),s.off("waiting",e)})),s.on("languagechange",(function(){setTimeout((function(){return u.subtitleTrack=s.currentTrack}),50)})),e(s)}))}return e(new o.a(t,Object(o.b)({},n)))}}))}}}]);
|
19 |
+
//# sourceMappingURL=4-1071be7e.js.map
|
dist/analytics/4-1071be7e.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/hls.js"],"names":["_ref","config","selector","src","preload","Promise","resolve","reject","window","Hls","isSupported","_wp","autoStartLoad","includes","wp","blocks","hls","loadSource","on","Events","LEVEL_SWITCHED","event","data","span","closest","querySelector","autoLevelEnabled","innerHTML","concat","levels","level","height","MANIFEST_PARSED","availableQualities","map","l","unshift","startLevel","findIndex","qty","_prestoPlayer","parseInt","prestoPlayer","hls_start_level","quality","default","options","forced","onChange","newQuality","prestoHLS","currentLevel","forEach","levelIndex","console","log","attachMedia","player","firstPlay","startLoad","off","setTimeout","subtitleTrack","currentTrack"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,mBAkBuM,UAlBjI,SAAaA,GAAM,IAAIC,EAAOD,EAAKC,OAAOC,EAASF,EAAKE,SAASC,EAAIH,EAAKG,IAAIC,EAAQJ,EAAKI,QAAQ,OAAO,IAAIC,SAAQ,SAASC,EAAQC,GAAQ,GAAIC,OAAOC,IAAX,CAAwB,GAAGD,OAAOC,IAAIC,cAAc,CAAC,IAAIC,EAC1QC,GAAe,CAAC,WAAW,QAAQC,SAAST,GAClC,QAAVO,EAAIG,UAAkB,IAANH,GAAcA,EAAII,SAAQH,GAAc,GAC5D,IAAII,EAAI,IAAIR,OAAOC,IAAI,CAACG,cAAcA,IAegE,OAfhDI,EAAIC,WAAWd,GACrEa,EAAIE,G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Spread2}from'./index.js';var hls=function hls(_ref){var config=_ref.config,selector=_ref.selector,src=_ref.src,preload=_ref.preload;return new Promise(function(resolve,reject){if(!window.Hls){return;}if(window.Hls.isSupported()){var _wp;// should we autoload start\nvar autoStartLoad=!['metadata','none'].includes(preload);// always autoload in admin for preview\nif((_wp=wp)!==null&&_wp!==void 0&&_wp.blocks){autoStartLoad=true;}// maybe don't auto start load depending on performance parameter\nvar hls=new window.Hls({autoStartLoad:autoStartLoad});hls.loadSource(src);// update menu container to dynamically display quality\nhls.on(window.Hls.Events.LEVEL_SWITCHED,function(event,data){var span=selector.closest('.presto-player__wrapper').querySelector(\".plyr__menu__container [data-plyr='quality'][value='0'] span\");if(hls.autoLevelEnabled){span.innerHTML=\"AUTO (\".concat(hls.levels[data.level].height,\"p)\");}else{span.innerHTML=\"AUTO\";}});// From the m3u8 playlist, hls parses the manifest and returns\n// all available video qualities. This is important, in this approach,\n// we will have one source on the Plyr player.\nhls.on(window.Hls.Events.MANIFEST_PARSED,function(event,data){// Transform available levels into an array of integers (height values).\nvar availableQualities=hls.levels.map(function(l){return l.height;});availableQualities.unshift(0);//prepend 0 to quality array;\n// do start level\nvar startLevel=availableQualities.findIndex(function(qty){var _prestoPlayer;return qty===parseInt((_prestoPlayer=prestoPlayer)===null||_prestoPlayer===void 0?void 0:_prestoPlayer.hls_start_level);});hls.startLevel=startLevel?startLevel-1:2;// Add new qualities to option\nconfig.quality={default:0,options:availableQualities,// this ensures Plyr to use Hls to update quality level\nforced:true,onChange:function onChange(newQuality){if(newQuality===0){prestoHLS.currentLevel=-1;//Enable AUTO quality if option.value = 0\n}else{prestoHLS.levels.forEach(function(level,levelIndex){if(level.height===newQuality){console.log('Found quality match with '+newQuality);prestoHLS.currentLevel=levelIndex;}});}}};// attach media and make our HLS options available globally\nhls.attachMedia(selector);window.prestoHLS=hls;// Initialize player\nvar player=new PrestoPlayer(selector,_objectSpread2({},config));player.hls=hls;// make sure we start loading on the first play\nvar firstPlay=function firstPlay(){hls.startLoad(-1);player.off('waiting',firstPlay);};player.on('waiting',firstPlay);// Handle changing captions\nplayer.on('languagechange',function(){// Caption support is still flaky. See: https://github.com/sampotts/plyr/issues/994\nsetTimeout(function(){return hls.subtitleTrack=player.currentTrack;},50);});return resolve(player);});return;}return resolve(new PrestoPlayer(selector,_objectSpread2({},config)));});};export default hls;"],"sourceRoot":""}
|
dist/analytics/4-1a7d5725.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/
|
18 |
+
(window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[4],{54:function(e,n,t){"use strict";t.r(n);var o=t(21);n.default=function(e){var n=e.config,t=e.selector,r=e.src,a=e.preload;return new Promise((function(e,i){if(window.Hls){if(window.Hls.isSupported()){var l,s=!["metadata","none"].includes(a);null!==(l=wp)&&void 0!==l&&l.blocks&&(s=!0);var u=new window.Hls({autoStartLoad:s});return u.loadSource(r),u.on(window.Hls.Events.LEVEL_SWITCHED,(function(e,n){var o=t.closest(".presto-player__wrapper").querySelector(".plyr__menu__container [data-plyr='quality'][value='0'] span");u.autoLevelEnabled?o.innerHTML="AUTO (".concat(u.levels[n.level].height,"p)"):o.innerHTML="AUTO"})),void u.on(window.Hls.Events.MANIFEST_PARSED,(function(r,a){var i=u.levels.map((function(e){return e.height}));i.unshift(0);var l=i.findIndex((function(e){var n;return e===parseInt(null===(n=prestoPlayer)||void 0===n?void 0:n.hls_start_level)}));u.startLevel=l?l-1:2,n.quality={default:0,options:i,forced:!0,onChange:function(e){0===e?prestoHLS.currentLevel=-1:prestoHLS.levels.forEach((function(n,t){n.height===e&&(console.log("Found quality match with "+e),prestoHLS.currentLevel=t)}))}},u.attachMedia(t),window.prestoHLS=u;var s=new o.a(t,Object(o.b)({},n));s.hls=u;return s.on("waiting",(function e(){u.startLoad(-1),s.off("waiting",e)})),s.on("languagechange",(function(){setTimeout((function(){return u.subtitleTrack=s.currentTrack}),50)})),e(s)}))}return e(new o.a(t,Object(o.b)({},n)))}}))}}}]);
|
19 |
+
//# sourceMappingURL=4-1a7d5725.js.map
|
dist/analytics/4-1a7d5725.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/hls.js"],"names":["_ref","config","selector","src","preload","Promise","resolve","reject","window","Hls","isSupported","_wp","autoStartLoad","includes","wp","blocks","hls","loadSource","on","Events","LEVEL_SWITCHED","event","data","span","closest","querySelector","autoLevelEnabled","innerHTML","concat","levels","level","height","MANIFEST_PARSED","availableQualities","map","l","unshift","startLevel","findIndex","qty","_prestoPlayer","parseInt","prestoPlayer","hls_start_level","quality","default","options","forced","onChange","newQuality","prestoHLS","currentLevel","forEach","levelIndex","console","log","attachMedia","player","firstPlay","startLoad","off","setTimeout","subtitleTrack","currentTrack"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,mBAkBuM,UAlBjI,SAAaA,GAAM,IAAIC,EAAOD,EAAKC,OAAOC,EAASF,EAAKE,SAASC,EAAIH,EAAKG,IAAIC,EAAQJ,EAAKI,QAAQ,OAAO,IAAIC,SAAQ,SAASC,EAAQC,GAAQ,GAAIC,OAAOC,IAAX,CAAwB,GAAGD,OAAOC,IAAIC,cAAc,CAAC,IAAIC,EAC1QC,GAAe,CAA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B2C,YAAW,WAAW,OAAO7C,EAAI8C,cAAcL,EAAOM,eAAe,OAAczD,EAAQmD,MAAmB,OAAOnD,EAAQ,IAAI,IAAaJ,EAAS,YAAe,GAAGD","file":"analytics/4-1a7d5725.js","sourcesContent":["import{P as PrestoPlayer,_ as _objectSpread2}from'./index.js';var hls=function hls(_ref){var config=_ref.config,selector=_ref.selector,src=_ref.src,preload=_ref.preload;return new Promise(function(resolve,reject){if(!window.Hls){return;}if(window.Hls.isSupported()){var _wp;// should we autoload start\nvar autoStartLoad=!['metadata','none'].includes(preload);// always autoload in admin for preview\nif((_wp=wp)!==null&&_wp!==void 0&&_wp.blocks){autoStartLoad=true;}// maybe don't auto start load depending on performance parameter\nvar hls=new window.Hls({autoStartLoad:autoStartLoad});hls.loadSource(src);// update menu container to dynamically display quality\nhls.on(window.Hls.Events.LEVEL_SWITCHED,function(event,data){var span=selector.closest('.presto-player__wrapper').querySelector(\".plyr__menu__container [data-plyr='quality'][value='0'] span\");if(hls.autoLevelEnabled){span.innerHTML=\"AUTO (\".concat(hls.levels[data.level].height,\"p)\");}else{span.innerHTML=\"AUTO\";}});// From the m3u8 playlist, hls parses the manifest and returns\n// all available video qualities. This is important, in this approach,\n// we will have one source on the Plyr player.\nhls.on(window.Hls.Events.MANIFEST_PARSED,function(event,data){// Transform available levels into an array of integers (height values).\nvar availableQualities=hls.levels.map(function(l){return l.height;});availableQualities.unshift(0);//prepend 0 to quality array;\n// do start level\nvar startLevel=availableQualities.findIndex(function(qty){var _prestoPlayer;return qty===parseInt((_prestoPlayer=prestoPlayer)===null||_prestoPlayer===void 0?void 0:_prestoPlayer.hls_start_level);});hls.startLevel=startLevel?startLevel-1:2;// Add new qualities to option\nconfig.quality={default:0,options:availableQualities,// this ensures Plyr to use Hls to update quality level\nforced:true,onChange:function onChange(newQuality){if(newQuality===0){prestoHLS.currentLevel=-1;//Enable AUTO quality if option.value = 0\n}else{prestoHLS.levels.forEach(function(level,levelIndex){if(level.height===newQuality){console.log('Found quality match with '+newQuality);prestoHLS.currentLevel=levelIndex;}});}}};// attach media and make our HLS options available globally\nhls.attachMedia(selector);window.prestoHLS=hls;// Initialize player\nvar player=new PrestoPlayer(selector,_objectSpread2({},config));player.hls=hls;// make sure we start loading on the first play\nvar firstPlay=function firstPlay(){hls.startLoad(-1);player.off('waiting',firstPlay);};player.on('waiting',firstPlay);// Handle changing captions\nplayer.on('languagechange',function(){// Caption support is still flaky. See: https://github.com/sampotts/plyr/issues/994\nsetTimeout(function(){return hls.subtitleTrack=player.currentTrack;},50);});return resolve(player);});return;}return resolve(new PrestoPlayer(selector,_objectSpread2({},config)));});};export default hls;"],"sourceRoot":""}
|
dist/analytics/5-2ed7cff3.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/
|
18 |
+
(window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[5],{47:function(e,a,o){"use strict";o.r(a);var d=o(23);a.default=function(e){var a,o,s,i,_,r,t,l,n,v,p;if("undefined"!=typeof learndash_video_data&&"presto"===(null===(a=learndash_video_data)||void 0===a?void 0:a.videos_found_provider)){if(Object(d.d)(e),window.learndash_video_data.videos_auto_complete="on"===(null===(o=prestoPlayer)||void 0===o||null===(s=o.learndash)||void 0===s?void 0:s.lesson_video_auto_complete),window.learndash_video_data.videos_hide_complete_button="AFTER"===(null===(i=learndash_video_data)||void 0===i?void 0:i.videos_shown)&&"on"===(null===(_=prestoPlayer)||void 0===_||null===(r=_.learndash)||void 0===r?void 0:r.lesson_video_hide_complete_button),window.learndash_video_data.videos_auto_complete_delay=null===(t=prestoPlayer)||void 0===t||null===(l=t.learndash)||void 0===l?void 0:l.lesson_video_auto_complete_delay,window.learndash_video_data.videos_auto_complete_delay_message=null===(n=prestoPlayer)||void 0===n||null===(v=n.learndash)||void 0===v?void 0:v.videos_auto_complete_delay_message,window.learndash_video_data.video_track_path="/","BEFORE"===(null===(p=learndash_video_data)||void 0===p?void 0:p.videos_shown))return learndash_video_data.videos_auto_complete=!1,jQuery(document).trigger("learndash_video_disable_assets",[!0]),void jQuery((function(){"1"===learndash_video_data.video_debug&&console.log("PRESTO: init"),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').length&&("1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(true)"),LearnDash_disable_assets(!0),LearnDash_watchPlayers(),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').forEach((function(e,a){var o="presto-player__wrapper-player-"+a,d=e.getAttribute("id");void 0!==d&&""!=d||(d=o,e.setAttribute("id",d)),ld_video_players[o]={},ld_video_players[o].player_key=o,ld_video_players[o].player_type=learndash_video_data.videos_found_provider,ld_video_players[o].player_id=d,ld_video_players[o].player_wrapper=e.closest("presto-player"),void 0!==ld_video_players[o].player_wrapper?ld_video_players[o].player_cookie_key=ld_video_players[o].player_wrapper.getAttribute("data-video-cookie-key"):ld_video_players[o].player_cookie_key="",ld_video_players[o].player_cookie_values=LearnDash_Video_Progress_initSettings(ld_video_players[o]),"complete"===LearnDash_Video_Progress_getSetting(ld_video_players[o],"video_state")?(LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()):(wp.hooks.addAction("presto.playerTimeUpdate","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),e.duration&&e.duration===e.currentTime&&(LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd())})),wp.hooks.addAction("presto.playerPlaying","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","play")})),wp.hooks.addAction("presto.playerPause","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is paused"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),console.log(e.duration),console.log(e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","pause")})),wp.hooks.addAction("presto.playerEnded","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: video ended"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: setting 'video_state' to 'complete'"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()})))})))}));window.LearnDash_disable_assets(!0),wp.hooks.addAction("presto.playerEnded","presto-player",(function(){window.LearnDash_disable_assets(!1)}))}}}}]);
|
19 |
+
//# sourceMappingURL=5-2ed7cff3.js.map
|
dist/analytics/5-2ed7cff3.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/learndash.js"],"names":["player","_learndash_video_data","_prestoPlayer","_prestoPlayer$learnda","_learndash_video_data2","_prestoPlayer2","_prestoPlayer2$learnd","_prestoPlayer3","_prestoPlayer3$learnd","_prestoPlayer4","_prestoPlayer4$learnd","_learndash_video_data3","learndash_video_data","videos_found_provider","window","videos_auto_complete","prestoPlayer","learndash","lesson_video_auto_complete","videos_hide_complete_button","videos_shown","lesson_video_hide_complete_button","videos_auto_complete_delay","lesson_video_auto_complete_delay","videos_auto_complete_delay_message","video_track_path","jQuery","document","trigger","video_debug","console","log","querySelectorAll","length","LearnDash_disable_assets","LearnDash_watchPlayers","forEach","element","index","element_key","element_id","getAttribute","setAttribute","ld_video_players","closest","LearnDash_Video_Progress_initSettings","LearnDash_Video_Progress_getSetting","LearnDash_watchPlayersEnd","wp","hooks","addAction","LearnDash_Video_Progress_setSetting","duration","currentTime"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,mBAkByN,UAlB/J,SAAmBA,GAAQ,IAAIC,EAAsBC,EAAcC,EAAsBC,EAAuBC,EAAeC,EAAsBC,EAAeC,EAAsBC,EAAeC,EAAsBC,EAAuB,GAAiC,oBAAvBC,sBAA+K,YAA3F,QAA9CX,EAAsBW,4BAAsD,IAAxBX,OAA+B,EAAOA,EAAsBY,uBAAhK,CAMhT,GAN2f,YAAeb,GAG1gBc,OAAOF,qBAAqBG,qBAA2O,QAAtL,QAA9Bb,EAAcc,oBAAsC,IAAhBd,GAAgF,QAAjDC,EAAsBD,EAAce,iBAA2C,IAAxBd,OAA/D,EAAqGA,EAAsBe,4BAAmCJ,OAAOF,qBAAqBO,4BAA4B,WAA2D,QAA/Cf,EAAuBQ,4BAAuD,IAAzBR,OAAgC,EAAOA,EAAuBgB,eAA+O,QAA/L,QAA/Bf,EAAeW,oBAAuC,IAAjBX,GAAkF,QAAlDC,EAAsBD,EAAeY,iBAA2C,IAAxBX,OAAhE,EAAsGA,EAAsBe,mCAA0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mBC,QAAQC,IAAI,mDAAoDG,0BAAyB,GAClkBa,uCAAoDjC,OAAOoB,0BAAyB,GAAMc,GAAGC,MAAMC,UAAU,qBAAqB,iBAAgB,WAAWpC,OAAOoB,0BAAyB","file":"analytics/5-2ed7cff3.js","sourcesContent":["import{r as resumeProgress}from'./index.js';var learndash=function learndash(player){var _learndash_video_data,_prestoPlayer,_prestoPlayer$learnda,_learndash_video_data2,_prestoPlayer2,_prestoPlayer2$learnd,_prestoPlayer3,_prestoPlayer3$learnd,_prestoPlayer4,_prestoPlayer4$learnd,_learndash_video_data3;if(typeof learndash_video_data==='undefined'||((_learndash_video_data=learndash_video_data)===null||_learndash_video_data===void 0?void 0:_learndash_video_data.videos_found_provider)!=='presto'){return;}resumeProgress(player);// maybe resume progress\n// Learndash has this logic in a shitty method on their php class\n// we have to fake it here since we don't have access to it\nwindow.learndash_video_data.videos_auto_complete=((_prestoPlayer=prestoPlayer)===null||_prestoPlayer===void 0?void 0:(_prestoPlayer$learnda=_prestoPlayer.learndash)===null||_prestoPlayer$learnda===void 0?void 0:_prestoPlayer$learnda.lesson_video_auto_complete)==='on';window.learndash_video_data.videos_hide_complete_button='AFTER'===((_learndash_video_data2=learndash_video_data)===null||_learndash_video_data2===void 0?void 0:_learndash_video_data2.videos_shown)&&((_prestoPlayer2=prestoPlayer)===null||_prestoPlayer2===void 0?void 0:(_prestoPlayer2$learnd=_prestoPlayer2.learndash)===null||_prestoPlayer2$learnd===void 0?void 0:_prestoPlayer2$learnd.lesson_video_hide_complete_button)==='on';window.learndash_video_data.videos_auto_complete_delay=(_prestoPlayer3=prestoPlayer)===null||_prestoPlayer3===void 0?void 0:(_prestoPlayer3$learnd=_prestoPlayer3.learndash)===null||_prestoPlayer3$learnd===void 0?void 0:_prestoPlayer3$learnd.lesson_video_auto_complete_delay;window.learndash_video_data.videos_auto_complete_delay_message=(_prestoPlayer4=prestoPlayer)===null||_prestoPlayer4===void 0?void 0:(_prestoPlayer4$learnd=_prestoPlayer4.learndash)===null||_prestoPlayer4$learnd===void 0?void 0:_prestoPlayer4$learnd.videos_auto_complete_delay_message;// Temporarily set the video track path to '/' to set the cookie globally\nwindow.learndash_video_data.video_track_path='/';// Learndash has this logic in a shitty method on their php class\n// we have to fake it here since we don't have access to it\nif('BEFORE'===((_learndash_video_data3=learndash_video_data)===null||_learndash_video_data3===void 0?void 0:_learndash_video_data3.videos_shown)){learndash_video_data.videos_auto_complete=false;jQuery(document).trigger('learndash_video_disable_assets',[true]);// Set learndash video players\njQuery(function(){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: init');}if(document.querySelectorAll('presto-player[data-video-progression=\"true\"][data-video-provider=\"'+learndash_video_data.videos_found_provider+'\"]').length){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(true)');}// Disable learndash assets and watch players.\nLearnDash_disable_assets(true);LearnDash_watchPlayers();// Go through all the <presto-player> instances\ndocument.querySelectorAll('presto-player[data-video-progression=\"true\"][data-video-provider=\"'+learndash_video_data.videos_found_provider+'\"]').forEach(function(element,index){var element_key='presto-player__wrapper-player-'+index;var element_id=element.getAttribute('id');if(typeof element_id==='undefined'||element_id==''){element_id=element_key;element.setAttribute('id',element_id);}ld_video_players[element_key]={};ld_video_players[element_key]['player_key']=element_key;ld_video_players[element_key]['player_type']=learndash_video_data.videos_found_provider;ld_video_players[element_key]['player_id']=element_id;ld_video_players[element_key]['player_wrapper']=element.closest('presto-player');if(typeof ld_video_players[element_key]['player_wrapper']!=='undefined'){ld_video_players[element_key]['player_cookie_key']=ld_video_players[element_key]['player_wrapper'].getAttribute('data-video-cookie-key');}else{ld_video_players[element_key]['player_cookie_key']='';}ld_video_players[element_key]['player_cookie_values']=LearnDash_Video_Progress_initSettings(ld_video_players[element_key]);// Check if video has been completed already.\n// If yes, enable the assets back and end watch players function.\n// If no, then apply all the filters and performs the actions again.\nif(LearnDash_Video_Progress_getSetting(ld_video_players[element_key],'video_state')==='complete'){LearnDash_disable_assets(false);LearnDash_watchPlayersEnd();}else{// Player Seeked.\nwp.hooks.addAction('presto.playerTimeUpdate','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is playing');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_duration',player.duration);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);if(player.duration&&player.duration===player.currentTime){LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','complete');if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(false)');}LearnDash_disable_assets(false);// Stop watching players.\nLearnDash_watchPlayersEnd();}});// Player Playing.\nwp.hooks.addAction('presto.playerPlaying','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is playing');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_duration',player.duration);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','play');});// Player Paused.\nwp.hooks.addAction('presto.playerPause','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is paused');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);console.log(player.duration);console.log(player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','pause');});// Player Ended.\nwp.hooks.addAction('presto.playerEnded','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: video ended');}if(learndash_video_data.video_debug==='1'){console.log(\"PRESTO: setting 'video_state' to 'complete'\");}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','complete');if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(false)');}LearnDash_disable_assets(false);// Stop watching players.\nLearnDash_watchPlayersEnd();});}});}});return;}else{window.LearnDash_disable_assets(true);wp.hooks.addAction('presto.playerEnded','presto-player',function(){window.LearnDash_disable_assets(false);});}};export default learndash;"],"sourceRoot":""}
|
dist/analytics/5-48078a33.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/
|
18 |
+
(window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[5],{52:function(e,a,o){"use strict";o.r(a);var d=o(21);a.default=function(e){var a,o,s,i,_,r,t,l,n,v,p;if("undefined"!=typeof learndash_video_data&&"presto"===(null===(a=learndash_video_data)||void 0===a?void 0:a.videos_found_provider)){if(Object(d.d)(e),window.learndash_video_data.videos_auto_complete="on"===(null===(o=prestoPlayer)||void 0===o||null===(s=o.learndash)||void 0===s?void 0:s.lesson_video_auto_complete),window.learndash_video_data.videos_hide_complete_button="AFTER"===(null===(i=learndash_video_data)||void 0===i?void 0:i.videos_shown)&&"on"===(null===(_=prestoPlayer)||void 0===_||null===(r=_.learndash)||void 0===r?void 0:r.lesson_video_hide_complete_button),window.learndash_video_data.videos_auto_complete_delay=null===(t=prestoPlayer)||void 0===t||null===(l=t.learndash)||void 0===l?void 0:l.lesson_video_auto_complete_delay,window.learndash_video_data.videos_auto_complete_delay_message=null===(n=prestoPlayer)||void 0===n||null===(v=n.learndash)||void 0===v?void 0:v.videos_auto_complete_delay_message,window.learndash_video_data.video_track_path="/","BEFORE"===(null===(p=learndash_video_data)||void 0===p?void 0:p.videos_shown))return learndash_video_data.videos_auto_complete=!1,jQuery(document).trigger("learndash_video_disable_assets",[!0]),void jQuery((function(){"1"===learndash_video_data.video_debug&&console.log("PRESTO: init"),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').length&&("1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(true)"),LearnDash_disable_assets(!0),LearnDash_watchPlayers(),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').forEach((function(e,a){var o="presto-player__wrapper-player-"+a,d=e.getAttribute("id");void 0!==d&&""!=d||(d=o,e.setAttribute("id",d)),ld_video_players[o]={},ld_video_players[o].player_key=o,ld_video_players[o].player_type=learndash_video_data.videos_found_provider,ld_video_players[o].player_id=d,ld_video_players[o].player_wrapper=e.closest("presto-player"),void 0!==ld_video_players[o].player_wrapper?ld_video_players[o].player_cookie_key=ld_video_players[o].player_wrapper.getAttribute("data-video-cookie-key"):ld_video_players[o].player_cookie_key="",ld_video_players[o].player_cookie_values=LearnDash_Video_Progress_initSettings(ld_video_players[o]),"complete"===LearnDash_Video_Progress_getSetting(ld_video_players[o],"video_state")?(LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()):(wp.hooks.addAction("presto.playerTimeUpdate","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),e.duration&&e.duration===e.currentTime&&(LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd())})),wp.hooks.addAction("presto.playerPlaying","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","play")})),wp.hooks.addAction("presto.playerPause","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is paused"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),console.log(e.duration),console.log(e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","pause")})),wp.hooks.addAction("presto.playerEnded","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: video ended"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: setting 'video_state' to 'complete'"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()})))})))}));window.LearnDash_disable_assets(!0),wp.hooks.addAction("presto.playerEnded","presto-player",(function(){window.LearnDash_disable_assets(!1)}))}}}}]);
|
19 |
+
//# sourceMappingURL=5-48078a33.js.map
|
dist/analytics/5-48078a33.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/learndash.js"],"names":["player","_learndash_video_data","_prestoPlayer","_prestoPlayer$learnda","_learndash_video_data2","_prestoPlayer2","_prestoPlayer2$learnd","_prestoPlayer3","_prestoPlayer3$learnd","_prestoPlayer4","_prestoPlayer4$learnd","_learndash_video_data3","learndash_video_data","videos_found_provider","window","videos_auto_complete","prestoPlayer","learndash","lesson_video_auto_complete","videos_hide_complete_button","videos_shown","lesson_video_hide_complete_button","videos_auto_complete_delay","lesson_video_auto_complete_delay","videos_auto_complete_delay_message","video_track_path","jQuery","document","trigger","video_debug","console","log","querySelectorAll","length","LearnDash_disable_assets","LearnDash_watchPlayers","forEach","element","index","element_key","element_id","getAttribute","setAttribute","ld_video_players","closest","LearnDash_Video_Progress_initSettings","LearnDash_Video_Progress_getSetting","LearnDash_watchPlayersEnd","wp","hooks","addAction","LearnDash_Video_Progress_setSetting","duration","currentTime"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,mBAkByN,UAlB/J,SAAmBA,GAAQ,IAAIC,EAAsBC,EAAcC,EAAsBC,EAAuBC,EAAeC,EAAsBC,EAAeC,EAAsBC,EAAeC,EAAsBC,EAAuB,GAAiC,oBAAvBC,sBAA+K,YAA3F,QAA9CX,EAAsBW,4BAAsD,IAAxBX,OAA+B,EAAOA,EAAsBY,uBAAhK,CAMhT,GAN2f,YAAeb,GAG1gBc,OAAOF,qBAAqBG,qBAA2O,QAAtL,QAA9Bb,EAAcc,oBAAsC,IAAhBd,GAAgF,QAAjDC,EAAsBD,EAAce,iBAA2C,IAAxBd,OAA/D,EAAqGA,EAAsBe,4BAAmCJ,OAAOF,qBAAqBO,4BAA4B,WAA2D,QAA/Cf,EAAuBQ,4BAAuD,IAAzBR,OAAgC,EAAOA,EAAuBgB,eAA+O,QAA/L,QAA/Bf,EAAeW,oBAAuC,IAAjBX,GAAkF,QAAlDC,EAAsBD,EAAeY,iBAA2C,IAAxBX,OAAhE,EAAsGA,EAAsBe,mCAA0CP,OAAOF,qBAAqBU,2BAA2D,QAA/Bf,EAAeS,oBAAuC,IAAjBT,GAAkF,QAAlDC,EAAsBD,EAAeU,iBAA2C,IAAxBT,OAAhE,EAAsGA,EAAsBe,iCAAiCT,OAAOF,qBAAqBY,mCAAmE,QAA/Bf,EAAeO,oBAAuC,IAAjBP,GAAkF,QAAlDC,EAAsBD,EAAeQ,iBAA2C,IAAxBP,OAAhE,EAAsGA,EAAsBc,mCAClsCV,OAAOF,qBAAqBa,iBAAiB,IAE1C,YAA4D,QAA/Cd,EAAuBC,4BAAuD,IAAzBD,OAAgC,EAAOA,EAA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YAAkD,MAAnC3B,qBAAqBiB,aAAmBC,QAAQC,IAAI,mDAAoDG,0BAAyB,GACnoBa,gCACAC,GAAGC,MAAMC,UAAU,uBAAuB,iBAAgB,SAASlD,GAA8C,MAAnCY,qBAAqBiB,aAAmBC,QAAQC,IAAI,4BAA6BoB,oCAAoCR,iBAAiBJ,GAAa,iBAAiBvC,EAAOoD,UAAUD,oCAAoCR,iBAAiBJ,GAAa,aAAavC,EAAOqD,aAAaF,oCAAoCR,iBAAiBJ,GAAa,cAAc,WACtbS,GAAGC,MAAMC,UAAU,qBAAqB,iBAAgB,SAASlD,GAA8C,MAAnCY,qBAAqBiB,aAAmBC,QAAQC,IAAI,2BAA4BoB,oCAAoCR,iBAAiBJ,GAAa,aAAavC,EAAOqD,aAAavB,QAAQC,IAAI/B,EAAOoD,UAAUtB,QAAQC,IAAI/B,EAAOqD,aAAaF,oCAAoCR,iBAAiBJ,GAAa,cAAc,YAC5YS,GAAGC,MAAMC,UAAU,qBAAqB,iBAAgB,SAASlD,GAA8C,MAAnCY,qBAAqBiB,aAAmBC,QAAQC,IAAI,uBAA8D,MAAnCnB,qBAAqBiB,aAAmBC,QAAQC,IAAI,+CAAgDoB,oCAAoCR,iBAAiBJ,GAAa,aAAavC,EAAOqD,aAAaF,oCAAoCR,iBAAiBJ,GAAa,cAAc,YAAkD,MAAnC3B,qBAAqBiB,aAAmBC,QAAQC,IAAI,mDAAoDG,0BAAyB,GAClkBa,uCAAoDjC,OAAOoB,0BAAyB,GAAMc,GAAGC,MAAMC,UAAU,qBAAqB,iBAAgB,WAAWpC,OAAOoB,0BAAyB","file":"analytics/5-48078a33.js","sourcesContent":["import{r as resumeProgress}from'./index.js';var learndash=function learndash(player){var _learndash_video_data,_prestoPlayer,_prestoPlayer$learnda,_learndash_video_data2,_prestoPlayer2,_prestoPlayer2$learnd,_prestoPlayer3,_prestoPlayer3$learnd,_prestoPlayer4,_prestoPlayer4$learnd,_learndash_video_data3;if(typeof learndash_video_data==='undefined'||((_learndash_video_data=learndash_video_data)===null||_learndash_video_data===void 0?void 0:_learndash_video_data.videos_found_provider)!=='presto'){return;}resumeProgress(player);// maybe resume progress\n// Learndash has this logic in a shitty method on their php class\n// we have to fake it here since we don't have access to it\nwindow.learndash_video_data.videos_auto_complete=((_prestoPlayer=prestoPlayer)===null||_prestoPlayer===void 0?void 0:(_prestoPlayer$learnda=_prestoPlayer.learndash)===null||_prestoPlayer$learnda===void 0?void 0:_prestoPlayer$learnda.lesson_video_auto_complete)==='on';window.learndash_video_data.videos_hide_complete_button='AFTER'===((_learndash_video_data2=learndash_video_data)===null||_learndash_video_data2===void 0?void 0:_learndash_video_data2.videos_shown)&&((_prestoPlayer2=prestoPlayer)===null||_prestoPlayer2===void 0?void 0:(_prestoPlayer2$learnd=_prestoPlayer2.learndash)===null||_prestoPlayer2$learnd===void 0?void 0:_prestoPlayer2$learnd.lesson_video_hide_complete_button)==='on';window.learndash_video_data.videos_auto_complete_delay=(_prestoPlayer3=prestoPlayer)===null||_prestoPlayer3===void 0?void 0:(_prestoPlayer3$learnd=_prestoPlayer3.learndash)===null||_prestoPlayer3$learnd===void 0?void 0:_prestoPlayer3$learnd.lesson_video_auto_complete_delay;window.learndash_video_data.videos_auto_complete_delay_message=(_prestoPlayer4=prestoPlayer)===null||_prestoPlayer4===void 0?void 0:(_prestoPlayer4$learnd=_prestoPlayer4.learndash)===null||_prestoPlayer4$learnd===void 0?void 0:_prestoPlayer4$learnd.videos_auto_complete_delay_message;// Temporarily set the video track path to '/' to set the cookie globally\nwindow.learndash_video_data.video_track_path='/';// Learndash has this logic in a shitty method on their php class\n// we have to fake it here since we don't have access to it\nif('BEFORE'===((_learndash_video_data3=learndash_video_data)===null||_learndash_video_data3===void 0?void 0:_learndash_video_data3.videos_shown)){learndash_video_data.videos_auto_complete=false;jQuery(document).trigger('learndash_video_disable_assets',[true]);// Set learndash video players\njQuery(function(){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: init');}if(document.querySelectorAll('presto-player[data-video-progression=\"true\"][data-video-provider=\"'+learndash_video_data.videos_found_provider+'\"]').length){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(true)');}// Disable learndash assets and watch players.\nLearnDash_disable_assets(true);LearnDash_watchPlayers();// Go through all the <presto-player> instances\ndocument.querySelectorAll('presto-player[data-video-progression=\"true\"][data-video-provider=\"'+learndash_video_data.videos_found_provider+'\"]').forEach(function(element,index){var element_key='presto-player__wrapper-player-'+index;var element_id=element.getAttribute('id');if(typeof element_id==='undefined'||element_id==''){element_id=element_key;element.setAttribute('id',element_id);}ld_video_players[element_key]={};ld_video_players[element_key]['player_key']=element_key;ld_video_players[element_key]['player_type']=learndash_video_data.videos_found_provider;ld_video_players[element_key]['player_id']=element_id;ld_video_players[element_key]['player_wrapper']=element.closest('presto-player');if(typeof ld_video_players[element_key]['player_wrapper']!=='undefined'){ld_video_players[element_key]['player_cookie_key']=ld_video_players[element_key]['player_wrapper'].getAttribute('data-video-cookie-key');}else{ld_video_players[element_key]['player_cookie_key']='';}ld_video_players[element_key]['player_cookie_values']=LearnDash_Video_Progress_initSettings(ld_video_players[element_key]);// Check if video has been completed already.\n// If yes, enable the assets back and end watch players function.\n// If no, then apply all the filters and performs the actions again.\nif(LearnDash_Video_Progress_getSetting(ld_video_players[element_key],'video_state')==='complete'){LearnDash_disable_assets(false);LearnDash_watchPlayersEnd();}else{// Player Seeked.\nwp.hooks.addAction('presto.playerTimeUpdate','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is playing');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_duration',player.duration);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);if(player.duration&&player.duration===player.currentTime){LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','complete');if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(false)');}LearnDash_disable_assets(false);// Stop watching players.\nLearnDash_watchPlayersEnd();}});// Player Playing.\nwp.hooks.addAction('presto.playerPlaying','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is playing');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_duration',player.duration);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','play');});// Player Paused.\nwp.hooks.addAction('presto.playerPause','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is paused');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);console.log(player.duration);console.log(player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','pause');});// Player Ended.\nwp.hooks.addAction('presto.playerEnded','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: video ended');}if(learndash_video_data.video_debug==='1'){console.log(\"PRESTO: setting 'video_state' to 'complete'\");}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','complete');if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(false)');}LearnDash_disable_assets(false);// Stop watching players.\nLearnDash_watchPlayersEnd();});}});}});return;}else{window.LearnDash_disable_assets(true);wp.hooks.addAction('presto.playerEnded','presto-player',function(){window.LearnDash_disable_assets(false);});}};export default learndash;"],"sourceRoot":""}
|
dist/analytics/6-952599ce.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/
|
18 |
+
(window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[6],{53:function(t,o,n){"use strict";n.r(o),o.default=function(t){var o=function(t,o){var e,r=n().post_id,a={action:"sync_video_playback",currentTime:t.currentTime,duration:t.duration,post_id:r};a[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];var u=a;o&&(u=Object.assign(a,o)),jQuery.post(null===(e=_tutorobject)||void 0===e?void 0:e.ajaxurl,u)},n=function(){var t=jQuery("#tutor_video_tracking_information").val();return t?JSON.parse(t):{}},e=0;t.on("timeupdate",(function(t){var n=t.detail.plyr;e/4>=30&&(o(n),e=0),e++})),t.on("ended",(function(t){var e=n(),r=t.detail.plyr;o(r,{is_ended:!0}),e.autoload_next_course_content&&function(){var t,o;if(_tutorobject.nonce_key&&null!==(t=_tutorobject)&&void 0!==t&&t.ajaxurl){var e={action:"autoload_next_course_content",post_id:n().post_id};e[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key],jQuery.post(null===(o=_tutorobject)||void 0===o?void 0:o.ajaxurl,e).done((function(t){var o;null!=t&&t.success&&null!=t&&null!==(o=t.data)&&void 0!==o&&o.next_url&&(location.href=t.data.next_url)}))}}()}))}}}]);
|
19 |
+
//# sourceMappingURL=6-952599ce.js.map
|
dist/analytics/6-952599ce.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/tutor.js"],"names":["player","sync_time","instance","options","_tutorobject4","post_id","getVideoData","data","action","currentTime","duration","_tutorobject","nonce_key","data_send","Object","assign","jQuery","post","ajaxurl","video_track_data","val","JSON","parse","tempTimeNow","on","event","detail","plyr","video_data","is_ended","autoload_next_course_content","_tutorobject2","_tutorobject3","done","response","_response$data","success","next_url","location","href","autoload_content"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,OAOoO,UAPpO,SAAeA,GACf,IACIC,EAAU,SAAmBC,EAASC,GAAS,IAAIC,EAAkBC,EAAQC,IAAeD,QAAYE,EAAK,CAACC,OAAO,sBAAsBC,YAAYP,EAASO,YAAYC,SAASR,EAASQ,SAASL,QAAQA,GAASE,EAAKI,aAAaC,WAAWD,aAAaA,aAAaC,WAAW,IAAIC,EAAUN,EAAQJ,IAASU,EAAUC,OAAOC,OAAOR,EAAKJ,IAAUa,OAAOC,KAAoC,QAA9Bb,EAAcO,oBAAsC,IAAhBP,OAAuB,EAAOA,EAAcc,QAAQL,IACrcP,EAAa,WAAwB,IAAIa,EAAiBH,OAAO,qCAAqCI,MAAM,OAAOD,EAAiBE,KAAKC,MAAMH,GAAkB,IACjKI,EAAY,EAChBvB,EAAOwB,GAAG,cAAa,SAASC,GAAO,IAAIvB,EAASuB,EAAMC,OAAOC,KAA0BJ,EAAY,GADjE,KAEAtB,EAAUC,GAAUqB,EAAY,GAAGA,OACzEvB,EAAOwB,GAAG,SAAQ,SAASC,GAAO,IAAIG,EAAWtB,IAAmBJ,EAASuB,EAAMC,OAAOC,KAA8B1B,EAAUC,EAA1B,CAAC2B,UAAS,IAAkCD,EAAWE,8BAN1I,WAA4B,IAAIC,EAAcC,EAAc,GAAIrB,aAAaC,WAA4C,QAA9BmB,EAAcpB,oBAAsC,IAAhBoB,GAAwBA,EAAcb,QAAzG,CAA2H,IAAuCX,EAAK,CAACC,OAAO,+BAA+BH,QAAvEC,IAAeD,SAAyEE,EAAKI,aAAaC,WAAWD,aAAaA,aAAaC,WAAWI,OAAOC,KAAoC,QAA9Be,EAAcrB,oBAAsC,IAAhBqB,OAAuB,EAAOA,EAAcd,QAAQX,GAAM0B,MAAK,SAASC,GAAU,IAAIC,EAAkBD,SAAoCA,EAASE,SAA7CF,MAAsDA,GAAqE,QAAhCC,EAAeD,EAAS3B,YAA+B,IAAjB4B,GAAyBA,EAAeE,WAAUC,SAASC,KAAKL,EAAS3B,KAAK8B,cAM7hBG","file":"analytics/6-952599ce.js","sourcesContent":["function tutor(player){// autoload course content\nvar autoload_content=function autoload_content(){var _tutorobject2,_tutorobject3;if(!_tutorobject.nonce_key||!((_tutorobject2=_tutorobject)!==null&&_tutorobject2!==void 0&&_tutorobject2.ajaxurl)){return;}var post_id=getVideoData().post_id;var data={action:'autoload_next_course_content',post_id:post_id};data[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];jQuery.post((_tutorobject3=_tutorobject)===null||_tutorobject3===void 0?void 0:_tutorobject3.ajaxurl,data).done(function(response){var _response$data;if(response!==null&&response!==void 0&&response.success&&response!==null&&response!==void 0&&(_response$data=response.data)!==null&&_response$data!==void 0&&_response$data.next_url){location.href=response.data.next_url;}});};// sync time with server\nvar sync_time=function sync_time(instance,options){var _tutorobject4;var post_id=getVideoData().post_id;var data={action:'sync_video_playback',currentTime:instance.currentTime,duration:instance.duration,post_id:post_id};data[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];var data_send=data;if(options){data_send=Object.assign(data,options);}jQuery.post((_tutorobject4=_tutorobject)===null||_tutorobject4===void 0?void 0:_tutorobject4.ajaxurl,data_send);};// get video data\nvar getVideoData=function getVideoData(){var video_track_data=jQuery('#tutor_video_tracking_information').val();return video_track_data?JSON.parse(video_track_data):{};};// update time on server every 250ms\nvar tempTimeNow=0;var intervalSeconds=30;//Send to tutor backend about video playing time in this interval\nplayer.on('timeupdate',function(event){var instance=event.detail.plyr;var tempTimeNowInSec=tempTimeNow/4;//timeupdate firing 250ms interval\nif(tempTimeNowInSec>=intervalSeconds){sync_time(instance);tempTimeNow=0;}tempTimeNow++;});// on end, sync time and autoload content\nplayer.on('ended',function(event){var video_data=getVideoData();var instance=event.detail.plyr;var data={is_ended:true};sync_time(instance,data);if(video_data.autoload_next_course_content){autoload_content();}});}export default tutor;"],"sourceRoot":""}
|
dist/analytics/6-c200bf25.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/
|
18 |
+
(window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[6],{48:function(t,o,n){"use strict";n.r(o),o.default=function(t){var o=function(t,o){var e,r=n().post_id,a={action:"sync_video_playback",currentTime:t.currentTime,duration:t.duration,post_id:r};a[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];var u=a;o&&(u=Object.assign(a,o)),jQuery.post(null===(e=_tutorobject)||void 0===e?void 0:e.ajaxurl,u)},n=function(){var t=jQuery("#tutor_video_tracking_information").val();return t?JSON.parse(t):{}},e=0;t.on("timeupdate",(function(t){var n=t.detail.plyr;e/4>=30&&(o(n),e=0),e++})),t.on("ended",(function(t){var e=n(),r=t.detail.plyr;o(r,{is_ended:!0}),e.autoload_next_course_content&&function(){var t,o;if(_tutorobject.nonce_key&&null!==(t=_tutorobject)&&void 0!==t&&t.ajaxurl){var e={action:"autoload_next_course_content",post_id:n().post_id};e[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key],jQuery.post(null===(o=_tutorobject)||void 0===o?void 0:o.ajaxurl,e).done((function(t){var o;null!=t&&t.success&&null!=t&&null!==(o=t.data)&&void 0!==o&&o.next_url&&(location.href=t.data.next_url)}))}}()}))}}}]);
|
19 |
+
//# sourceMappingURL=6-c200bf25.js.map
|
dist/analytics/6-c200bf25.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/tutor.js"],"names":["player","sync_time","instance","options","_tutorobject4","post_id","getVideoData","data","action","currentTime","duration","_tutorobject","nonce_key","data_send","Object","assign","jQuery","post","ajaxurl","video_track_data","val","JSON","parse","tempTimeNow","on","event","detail","plyr","video_data","is_ended","autoload_next_course_content","_tutorobject2","_tutorobject3","done","response","_response$data","success","next_url","location","href","autoload_content"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,OAOoO,UAPpO,SAAeA,GACf,IACIC,EAAU,SAAmBC,EAASC,GAAS,IAAIC,EAAkBC,EAAQC,IAAeD,QAAYE,EAAK,CAACC,OAAO,sBAAsBC,YAAYP,EAASO,YAAYC,SAASR,EAASQ,SAASL,QAAQA,GAASE,EAAKI,aAAaC,WAAWD,aAAaA,aAAaC,WAAW,IAAIC,EAAUN,EAAQJ,IAASU,EAAUC,OAAOC,OAAOR,EAAKJ,IAAUa,OAAOC,KAAoC,QAA9Bb,EAAcO,oBAAsC,IAAhBP,OAAuB,EAAOA,EAAcc,QAAQL,IACrcP,EAAa,WAAwB,IAAIa,EAAiBH,OAAO,qCAAqCI,MAAM,OAAOD,EAAiBE,KAAKC,MAAMH,GAAkB,IACjKI,EAAY,EAChBvB,EAAOwB,GAAG,cAAa,SAASC,GAAO,IAAIvB,EAASuB,EAAMC,OAAOC,KAA0BJ,EAAY,GADjE,KAEAtB,EAAUC,GAAUqB,EAAY,GAAGA,OACzEvB,EAAOwB,GAAG,SAAQ,SAASC,GAAO,IAAIG,EAAWtB,IAAmBJ,EAASuB,EAAMC,OAAOC,KAA8B1B,EAAUC,EAA1B,CAAC2B,UAAS,IAAkCD,EAAWE,8BAN1I,WAA4B,IAAIC,EAAcC,EAAc,GAAIrB,aAAaC,WAA4C,QAA9BmB,EAAcpB,oBAAsC,IAAhBoB,GAAwBA,EAAcb,QAAzG,CAA2H,IAAuCX,EAAK,CAACC,OAAO,+BAA+BH,QAAvEC,IAAeD,SAAyEE,EAAKI,aAAaC,WAAWD,aAAaA,aAAaC,WAAWI,OAAOC,KAAoC,QAA9Be,EAAcrB,oBAAsC,IAAhBqB,OAAuB,EAAOA,EAAcd,QAAQX,GAAM0B,MAAK,SAASC,GAAU,IAAIC,EAAkBD,SAAoCA,EAASE,SAA7CF,MAAsDA,GAAqE,QAAhCC,EAAeD,EAAS3B,YAA+B,IAAjB4B,GAAyBA,EAAeE,WAAUC,SAASC,KAAKL,EAAS3B,KAAK8B,cAM7hBG","file":"analytics/6-c200bf25.js","sourcesContent":["function tutor(player){// autoload course content\nvar autoload_content=function autoload_content(){var _tutorobject2,_tutorobject3;if(!_tutorobject.nonce_key||!((_tutorobject2=_tutorobject)!==null&&_tutorobject2!==void 0&&_tutorobject2.ajaxurl)){return;}var post_id=getVideoData().post_id;var data={action:'autoload_next_course_content',post_id:post_id};data[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];jQuery.post((_tutorobject3=_tutorobject)===null||_tutorobject3===void 0?void 0:_tutorobject3.ajaxurl,data).done(function(response){var _response$data;if(response!==null&&response!==void 0&&response.success&&response!==null&&response!==void 0&&(_response$data=response.data)!==null&&_response$data!==void 0&&_response$data.next_url){location.href=response.data.next_url;}});};// sync time with server\nvar sync_time=function sync_time(instance,options){var _tutorobject4;var post_id=getVideoData().post_id;var data={action:'sync_video_playback',currentTime:instance.currentTime,duration:instance.duration,post_id:post_id};data[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];var data_send=data;if(options){data_send=Object.assign(data,options);}jQuery.post((_tutorobject4=_tutorobject)===null||_tutorobject4===void 0?void 0:_tutorobject4.ajaxurl,data_send);};// get video data\nvar getVideoData=function getVideoData(){var video_track_data=jQuery('#tutor_video_tracking_information').val();return video_track_data?JSON.parse(video_track_data):{};};// update time on server every 250ms\nvar tempTimeNow=0;var intervalSeconds=30;//Send to tutor backend about video playing time in this interval\nplayer.on('timeupdate',function(event){var instance=event.detail.plyr;var tempTimeNowInSec=tempTimeNow/4;//timeupdate firing 250ms interval\nif(tempTimeNowInSec>=intervalSeconds){sync_time(instance);tempTimeNow=0;}tempTimeNow++;});// on end, sync time and autoload content\nplayer.on('ended',function(event){var video_data=getVideoData();var instance=event.detail.plyr;var data={is_ended:true};sync_time(instance,data);if(video_data.autoload_next_course_content){autoload_content();}});}export default tutor;"],"sourceRoot":""}
|
dist/analytics/7-5437b4a3.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/
|
18 |
+
(window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[7],{50:function(t,e,n){"use strict";n.r(e),n.d(e,"scopeCss",(function(){return y}));var r=n(15),o=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",c=new RegExp("(-shadowcsshost"+o,"gim"),s=new RegExp("(-shadowcsscontext"+o,"gim"),a=new RegExp("(-shadowcssslotted"+o,"gim"),i=/-shadowcsshost-no-combinator([^\s]*)/,u=[/::shadow/g,/::content/g],l=/-shadowcsshost/gim,h=/:host/gim,p=/::slotted/gim,f=/:host-context/gim,d=/\/\*\s*[\s\S]*?\*\//g,g=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,m=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,v=/([{}])/g,w=function(t,e){var n=x(t),r=0;return n.escapedString.replace(m,(function(){var t=arguments.length<=2?void 0:arguments[2],o="",c=arguments.length<=4?void 0:arguments[4],s="";c&&c.startsWith("{%BLOCK%")&&(o=n.blocks[r++],c=c.substring("%BLOCK%".length+1),s="{");var a={selector:t,content:o},i=e(a);return"".concat(arguments.length<=1?void 0:arguments[1]).concat(i.selector).concat(arguments.length<=3?void 0:arguments[3]).concat(s).concat(i.content).concat(c)}))},x=function(t){for(var e=t.split(v),n=[],r=[],o=0,c=[],s=0;s<e.length;s++){var a=e[s];"}"===a&&o--,o>0?c.push(a):(c.length>0&&(r.push(c.join("")),n.push("%BLOCK%"),c=[]),n.push(a)),"{"===a&&o++}return c.length>0&&(r.push(c.join("")),n.push("%BLOCK%")),{escapedString:n.join(""),blocks:r}},_=function(t,e,n){return t.replace(e,(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e[2]){for(var o=e[2].split(","),c=[],s=0;s<o.length;s++){var a=o[s].trim();if(!a)break;c.push(n("-shadowcsshost-no-combinator",a,e[3]))}return c.join(",")}return"-shadowcsshost-no-combinator"+e[3]}))},b=function(t,e,n){return t+e.replace("-shadowcsshost","")+n},O=function(t,e,n){return e.indexOf("-shadowcsshost")>-1?b(t,e,n):t+e+n+", "+e+" "+t+n},S=function(t,e){return!function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")([>\\s~+[.,{:][\\s\\S]*)?$","m")}(e).test(t)},W=function(t,e,n){for(var r,o="."+(e=e.replace(/\[is=([^\]]*)\]/g,(function(t){return arguments.length<=1?void 0:arguments[1]}))),c=function(t){var r=t.trim();if(!r)return"";if(t.indexOf("-shadowcsshost-no-combinator")>-1)r=function(t,e,n){if(l.lastIndex=0,l.test(t)){var r=".".concat(n);return t.replace(i,(function(t,e){return e.replace(/([^:]*)(:*)(.*)/,(function(t,e,n,o){return e+r+n+o}))})).replace(l,r+" ")}return e+" "+t}(t,e,n);else{var c=t.replace(l,"");if(c.length>0){var s=c.match(/([^:]*)(:*)(.*)/);s&&(r=s[1]+o+s[2]+s[3])}}return r},s=function(t){var e=[],n=0;return{content:(t=t.replace(/(\[[^\]]*\])/g,(function(t,r){var o="__ph-".concat(n,"__");return e.push(r),n++,o}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(function(t,r,o){var c="__ph-".concat(n,"__");return e.push(o),n++,r+c})),placeholders:e}}(t),a="",u=0,h=/( |>|\+|~(?!=))\s*/g,p=!((t=s.content).indexOf("-shadowcsshost-no-combinator")>-1);null!==(r=h.exec(t));){var f=r[1],d=t.slice(u,r.index).trim(),g=(p=p||d.indexOf("-shadowcsshost-no-combinator")>-1)?c(d):d;a+="".concat(g," ").concat(f," "),u=h.lastIndex}var m,v=t.substring(u);return a+=(p=p||v.indexOf("-shadowcsshost-no-combinator")>-1)?c(v):v,m=s.placeholders,a.replace(/__ph-(\d+)__/g,(function(t,e){return m[+e]}))},j=function t(e,n,r,o,c){return w(e,(function(e){var c=e.selector,s=e.content;return"@"!==e.selector[0]?c=function(t,e,n,r){return t.split(",").map((function(t){return r&&t.indexOf("."+r)>-1?t.trim():S(t,e)?W(t,e,n).trim():t.trim()})).join(", ")}(e.selector,n,r,o):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(s=t(e.content,n,r,o)),{selector:c.replace(/\s{2,}/g," ").trim(),content:s}}))},k=function(t,e,n,r,o){var i=function(t,e){var n="."+e+" > ",r=[];return t=t.replace(a,(function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];if(e[2]){for(var c=e[2].trim(),s=e[3],a=n+c+s,i="",u=e[4]-1;u>=0;u--){var l=e[5][u];if("}"===l||","===l)break;i=l+i}var h=i+a,p="".concat(i.trimRight()).concat(a.trim());if(h.trim()!==p.trim()){var f="".concat(p,", ").concat(h);r.push({orgSelector:h,updatedSelector:f})}return a}return"-shadowcsshost-no-combinator"+e[3]})),{selectors:r,cssText:t}}(t=function(t){return _(t,s,O)}(t=function(t){return _(t,c,b)}(t=t.replace(f,"-shadowcsscontext").replace(h,"-shadowcsshost").replace(p,"-shadowcssslotted"))),r);return t=function(t){return u.reduce((function(t,e){return t.replace(e," ")}),t)}(t=i.cssText),e&&(t=j(t,e,n,r)),{cssText:(t=(t=t.replace(/-shadowcsshost-no-combinator/g,".".concat(n))).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:i.selectors}},y=function(t,e,n){var o=e+"-h",c=e+"-s",s=t.match(g)||[];t=function(t){return t.replace(d,"")}(t);var a=[];if(n){var i=function(t){var e="/*!@___".concat(a.length,"___*/"),n="/*!@".concat(t.selector,"*/");return a.push({placeholder:e,comment:n}),t.selector=e+t.selector,t};t=w(t,(function(t){return"@"!==t.selector[0]?i(t):t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document")?(t.content=w(t.content,i),t):t}))}var u=k(t,e,o,c);return t=[u.cssText].concat(Object(r.a)(s)).join("\n"),n&&a.forEach((function(e){var n=e.placeholder,r=e.comment;t=t.replace(n,r)})),u.slottedSelectors.forEach((function(e){t=t.replace(e.orgSelector,e.updatedSelector)})),t};
|
19 |
+
/**
|
20 |
+
* @license
|
21 |
+
* Copyright Google Inc. All Rights Reserved.
|
22 |
+
*
|
23 |
+
* Use of this source code is governed by an MIT-style license that can be
|
24 |
+
* found in the LICENSE file at https://angular.io/license
|
25 |
+
*
|
26 |
+
* This file is a port of shadowCSS from webcomponents.js to TypeScript.
|
27 |
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
28 |
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
29 |
+
*/}}]);
|
30 |
+
//# sourceMappingURL=7-5437b4a3.js.map
|
dist/analytics/7-5437b4a3.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./node_modules/@stencil/core/internal/client/shadow-css.js"],"names":["_parenSuffix","_cssColonHostRe","RegExp","_cssColonHostContextRe","_cssColonSlottedRe","_polyfillHostNoCombinatorRe","_shadowDOMSelectorsRe","_polyfillHostRe","_colonHostRe","_colonSlottedRe","_colonHostContextRe","_commentRe","_commentWithHashRe","_ruleRe","_curlyRe","processRules","input","ruleCallback","inputWithEscapedBlocks","escapeBlocks","nextBlockIndex","escapedString","replace","selector","arguments","length","undefined","content","suffix","contentPrefix","startsWith","blocks","substring","cssRule","rule","concat","inputParts","split","resultParts","escapedBlocks","bracketCount","currentBlockParts","partIndex","part","push","join","convertColonRule","cssText","regExp","partReplacer","_len","m","Array","_key","parts","r","i","p","trim","_polyfillHost","colonHostPartReplacer","host","colonHostContextPartReplacer","indexOf","selectorNeedsScoping","scopeSelector","makeScopeMatcher","test","applyStrictSelectorScope","hostSelector","res","className","_","_scopeSelectorPart","scopedP","lastIndex","replaceBy","before","colon","after","applySimpleSelectorScope","t","matches","match","safeContent","placeholders","index","keep","pseudo","exp","safeSelector","scopedSelector","startIndex","sep","shouldScope","exec","separator","_part","slice","scopedPart","scopeSelectors","scopeSelectorText","slotSelector","commentOriginalSelector","map","shallowPart","scopeCssText","scopeId","hostScopeId","slotScopeId","slotted","slotClass","selectors","_len2","_key2","compound","slottedSelector","prefixSelector","char","orgSelector","addedSelector","trimRight","updatedSelector","convertColonSlotted","convertColonHostContext","convertColonHost","reduce","result","pattern","convertShadowDOMSelectors","slottedSelectors","scopeCss","commentsWithHash","stripComments","orgSelectors","processCommentedSelector","placeholder","comment","scoped","forEach","_ref"],"mappings":";;;;;;;;;;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SAASO,WAAW,cAAcI,EAAKP,QAAQZ,EAAamB,EAAKP,QAAQ4G,GAAiCrG,GAAaA,KAAS,IAAIwG,EAAOhC,EAAa3D,EAAQ4D,EAAQC,EAAYC,GAAuZ,OAA1Y9D,EAAQ,CAAC2F,EAAO3F,SAASZ,OAAO,YAAmBiG,IAAmBvF,KAAK,MAAS0D,GAAyB+B,EAAaK,SAAQ,SAASC,GAAM,IAAIJ,EAAYI,EAAKJ,YAAYC,EAAQG,EAAKH,QAAQ1F,EAAQA,EAAQzB,QAAQkH,EAAYC,MAAaC,EAAOR,iBAAiBS,SAAQ,SAASvB,GAAiBrE,EAAQA,EAAQzB,QAAQ8F,EAAgBG,YAAYH,EAAgBM,oBAA2B3E","file":"analytics/7-5437b4a3.js","sourcesContent":["import _toConsumableArray from\"@babel/runtime/helpers/esm/toConsumableArray\";/*\n Stencil Client Platform v2.5.2 | MIT Licensed | https://stenciljs.com\n */ /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n *\n * This file is a port of shadowCSS from webcomponents.js to TypeScript.\n * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js\n * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts\n */var safeSelector=function safeSelector(selector){var placeholders=[];var index=0;var content;// Replaces attribute selectors with placeholders.\n// The WS in [attr=\"va lue\"] would otherwise be interpreted as a selector separator.\nselector=selector.replace(/(\\[[^\\]]*\\])/g,function(_,keep){var replaceBy=\"__ph-\".concat(index,\"__\");placeholders.push(keep);index++;return replaceBy;});// Replaces the expression in `:nth-child(2n + 1)` with a placeholder.\n// WS and \"+\" would otherwise be interpreted as selector separators.\ncontent=selector.replace(/(:nth-[-\\w]+)(\\([^)]+\\))/g,function(_,pseudo,exp){var replaceBy=\"__ph-\".concat(index,\"__\");placeholders.push(exp);index++;return pseudo+replaceBy;});var ss={content:content,placeholders:placeholders};return ss;};var restoreSafeSelector=function restoreSafeSelector(placeholders,content){return content.replace(/__ph-(\\d+)__/g,function(_,index){return placeholders[+index];});};var _polyfillHost='-shadowcsshost';var _polyfillSlotted='-shadowcssslotted';// note: :host-context pre-processed to -shadowcsshostcontext.\nvar _polyfillHostContext='-shadowcsscontext';var _parenSuffix=')(?:\\\\(('+'(?:\\\\([^)(]*\\\\)|[^)(]*)+?'+')\\\\))?([^,{]*)';var _cssColonHostRe=new RegExp('('+_polyfillHost+_parenSuffix,'gim');var _cssColonHostContextRe=new RegExp('('+_polyfillHostContext+_parenSuffix,'gim');var _cssColonSlottedRe=new RegExp('('+_polyfillSlotted+_parenSuffix,'gim');var _polyfillHostNoCombinator=_polyfillHost+'-no-combinator';var _polyfillHostNoCombinatorRe=/-shadowcsshost-no-combinator([^\\s]*)/;var _shadowDOMSelectorsRe=[/::shadow/g,/::content/g];var _selectorReSuffix='([>\\\\s~+[.,{:][\\\\s\\\\S]*)?$';var _polyfillHostRe=/-shadowcsshost/gim;var _colonHostRe=/:host/gim;var _colonSlottedRe=/::slotted/gim;var _colonHostContextRe=/:host-context/gim;var _commentRe=/\\/\\*\\s*[\\s\\S]*?\\*\\//g;var stripComments=function stripComments(input){return input.replace(_commentRe,'');};var _commentWithHashRe=/\\/\\*\\s*#\\s*source(Mapping)?URL=[\\s\\S]+?\\*\\//g;var extractCommentsWithHash=function extractCommentsWithHash(input){return input.match(_commentWithHashRe)||[];};var _ruleRe=/(\\s*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))/g;var _curlyRe=/([{}])/g;var OPEN_CURLY='{';var CLOSE_CURLY='}';var BLOCK_PLACEHOLDER='%BLOCK%';var processRules=function processRules(input,ruleCallback){var inputWithEscapedBlocks=escapeBlocks(input);var nextBlockIndex=0;return inputWithEscapedBlocks.escapedString.replace(_ruleRe,function(){var selector=arguments.length<=2?undefined:arguments[2];var content='';var suffix=arguments.length<=4?undefined:arguments[4];var contentPrefix='';if(suffix&&suffix.startsWith('{'+BLOCK_PLACEHOLDER)){content=inputWithEscapedBlocks.blocks[nextBlockIndex++];suffix=suffix.substring(BLOCK_PLACEHOLDER.length+1);contentPrefix='{';}var cssRule={selector:selector,content:content};var rule=ruleCallback(cssRule);return\"\".concat(arguments.length<=1?undefined:arguments[1]).concat(rule.selector).concat(arguments.length<=3?undefined:arguments[3]).concat(contentPrefix).concat(rule.content).concat(suffix);});};var escapeBlocks=function escapeBlocks(input){var inputParts=input.split(_curlyRe);var resultParts=[];var escapedBlocks=[];var bracketCount=0;var currentBlockParts=[];for(var partIndex=0;partIndex<inputParts.length;partIndex++){var part=inputParts[partIndex];if(part===CLOSE_CURLY){bracketCount--;}if(bracketCount>0){currentBlockParts.push(part);}else{if(currentBlockParts.length>0){escapedBlocks.push(currentBlockParts.join(''));resultParts.push(BLOCK_PLACEHOLDER);currentBlockParts=[];}resultParts.push(part);}if(part===OPEN_CURLY){bracketCount++;}}if(currentBlockParts.length>0){escapedBlocks.push(currentBlockParts.join(''));resultParts.push(BLOCK_PLACEHOLDER);}var strEscapedBlocks={escapedString:resultParts.join(''),blocks:escapedBlocks};return strEscapedBlocks;};var insertPolyfillHostInCssText=function insertPolyfillHostInCssText(selector){selector=selector.replace(_colonHostContextRe,_polyfillHostContext).replace(_colonHostRe,_polyfillHost).replace(_colonSlottedRe,_polyfillSlotted);return selector;};var convertColonRule=function convertColonRule(cssText,regExp,partReplacer){// m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule\nreturn cssText.replace(regExp,function(){for(var _len=arguments.length,m=new Array(_len),_key=0;_key<_len;_key++){m[_key]=arguments[_key];}if(m[2]){var parts=m[2].split(',');var r=[];for(var i=0;i<parts.length;i++){var p=parts[i].trim();if(!p)break;r.push(partReplacer(_polyfillHostNoCombinator,p,m[3]));}return r.join(',');}else{return _polyfillHostNoCombinator+m[3];}});};var colonHostPartReplacer=function colonHostPartReplacer(host,part,suffix){return host+part.replace(_polyfillHost,'')+suffix;};var convertColonHost=function convertColonHost(cssText){return convertColonRule(cssText,_cssColonHostRe,colonHostPartReplacer);};var colonHostContextPartReplacer=function colonHostContextPartReplacer(host,part,suffix){if(part.indexOf(_polyfillHost)>-1){return colonHostPartReplacer(host,part,suffix);}else{return host+part+suffix+', '+part+' '+host+suffix;}};var convertColonSlotted=function convertColonSlotted(cssText,slotScopeId){var slotClass='.'+slotScopeId+' > ';var selectors=[];cssText=cssText.replace(_cssColonSlottedRe,function(){for(var _len2=arguments.length,m=new Array(_len2),_key2=0;_key2<_len2;_key2++){m[_key2]=arguments[_key2];}if(m[2]){var compound=m[2].trim();var suffix=m[3];var slottedSelector=slotClass+compound+suffix;var prefixSelector='';for(var i=m[4]-1;i>=0;i--){var char=m[5][i];if(char==='}'||char===','){break;}prefixSelector=char+prefixSelector;}var orgSelector=prefixSelector+slottedSelector;var addedSelector=\"\".concat(prefixSelector.trimRight()).concat(slottedSelector.trim());if(orgSelector.trim()!==addedSelector.trim()){var updatedSelector=\"\".concat(addedSelector,\", \").concat(orgSelector);selectors.push({orgSelector:orgSelector,updatedSelector:updatedSelector});}return slottedSelector;}else{return _polyfillHostNoCombinator+m[3];}});return{selectors:selectors,cssText:cssText};};var convertColonHostContext=function convertColonHostContext(cssText){return convertColonRule(cssText,_cssColonHostContextRe,colonHostContextPartReplacer);};var convertShadowDOMSelectors=function convertShadowDOMSelectors(cssText){return _shadowDOMSelectorsRe.reduce(function(result,pattern){return result.replace(pattern,' ');},cssText);};var makeScopeMatcher=function makeScopeMatcher(scopeSelector){var lre=/\\[/g;var rre=/\\]/g;scopeSelector=scopeSelector.replace(lre,'\\\\[').replace(rre,'\\\\]');return new RegExp('^('+scopeSelector+')'+_selectorReSuffix,'m');};var selectorNeedsScoping=function selectorNeedsScoping(selector,scopeSelector){var re=makeScopeMatcher(scopeSelector);return!re.test(selector);};var applySimpleSelectorScope=function applySimpleSelectorScope(selector,scopeSelector,hostSelector){// In Android browser, the lastIndex is not reset when the regex is used in String.replace()\n_polyfillHostRe.lastIndex=0;if(_polyfillHostRe.test(selector)){var replaceBy=\".\".concat(hostSelector);return selector.replace(_polyfillHostNoCombinatorRe,function(_,selector){return selector.replace(/([^:]*)(:*)(.*)/,function(_,before,colon,after){return before+replaceBy+colon+after;});}).replace(_polyfillHostRe,replaceBy+' ');}return scopeSelector+' '+selector;};var applyStrictSelectorScope=function applyStrictSelectorScope(selector,scopeSelector,hostSelector){var isRe=/\\[is=([^\\]]*)\\]/g;scopeSelector=scopeSelector.replace(isRe,function(_){return arguments.length<=1?undefined:arguments[1];});var className='.'+scopeSelector;var _scopeSelectorPart=function _scopeSelectorPart(p){var scopedP=p.trim();if(!scopedP){return'';}if(p.indexOf(_polyfillHostNoCombinator)>-1){scopedP=applySimpleSelectorScope(p,scopeSelector,hostSelector);}else{// remove :host since it should be unnecessary\nvar t=p.replace(_polyfillHostRe,'');if(t.length>0){var matches=t.match(/([^:]*)(:*)(.*)/);if(matches){scopedP=matches[1]+className+matches[2]+matches[3];}}}return scopedP;};var safeContent=safeSelector(selector);selector=safeContent.content;var scopedSelector='';var startIndex=0;var res;var sep=/( |>|\\+|~(?!=))\\s*/g;// If a selector appears before :host it should not be shimmed as it\n// matches on ancestor elements and not on elements in the host's shadow\n// `:host-context(div)` is transformed to\n// `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`\n// the `div` is not part of the component in the 2nd selectors and should not be scoped.\n// Historically `component-tag:host` was matching the component so we also want to preserve\n// this behavior to avoid breaking legacy apps (it should not match).\n// The behavior should be:\n// - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)\n// - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a\n// `:host-context(tag)`)\nvar hasHost=selector.indexOf(_polyfillHostNoCombinator)>-1;// Only scope parts after the first `-shadowcsshost-no-combinator` when it is present\nvar shouldScope=!hasHost;while((res=sep.exec(selector))!==null){var separator=res[1];var _part=selector.slice(startIndex,res.index).trim();shouldScope=shouldScope||_part.indexOf(_polyfillHostNoCombinator)>-1;var scopedPart=shouldScope?_scopeSelectorPart(_part):_part;scopedSelector+=\"\".concat(scopedPart,\" \").concat(separator,\" \");startIndex=sep.lastIndex;}var part=selector.substring(startIndex);shouldScope=shouldScope||part.indexOf(_polyfillHostNoCombinator)>-1;scopedSelector+=shouldScope?_scopeSelectorPart(part):part;// replace the placeholders with their original values\nreturn restoreSafeSelector(safeContent.placeholders,scopedSelector);};var scopeSelector=function scopeSelector(selector,scopeSelectorText,hostSelector,slotSelector){return selector.split(',').map(function(shallowPart){if(slotSelector&&shallowPart.indexOf('.'+slotSelector)>-1){return shallowPart.trim();}if(selectorNeedsScoping(shallowPart,scopeSelectorText)){return applyStrictSelectorScope(shallowPart,scopeSelectorText,hostSelector).trim();}else{return shallowPart.trim();}}).join(', ');};var scopeSelectors=function scopeSelectors(cssText,scopeSelectorText,hostSelector,slotSelector,commentOriginalSelector){return processRules(cssText,function(rule){var selector=rule.selector;var content=rule.content;if(rule.selector[0]!=='@'){selector=scopeSelector(rule.selector,scopeSelectorText,hostSelector,slotSelector);}else if(rule.selector.startsWith('@media')||rule.selector.startsWith('@supports')||rule.selector.startsWith('@page')||rule.selector.startsWith('@document')){content=scopeSelectors(rule.content,scopeSelectorText,hostSelector,slotSelector);}var cssRule={selector:selector.replace(/\\s{2,}/g,' ').trim(),content:content};return cssRule;});};var scopeCssText=function scopeCssText(cssText,scopeId,hostScopeId,slotScopeId,commentOriginalSelector){cssText=insertPolyfillHostInCssText(cssText);cssText=convertColonHost(cssText);cssText=convertColonHostContext(cssText);var slotted=convertColonSlotted(cssText,slotScopeId);cssText=slotted.cssText;cssText=convertShadowDOMSelectors(cssText);if(scopeId){cssText=scopeSelectors(cssText,scopeId,hostScopeId,slotScopeId);}cssText=cssText.replace(/-shadowcsshost-no-combinator/g,\".\".concat(hostScopeId));cssText=cssText.replace(/>\\s*\\*\\s+([^{, ]+)/gm,' $1 ');return{cssText:cssText.trim(),slottedSelectors:slotted.selectors};};var scopeCss=function scopeCss(cssText,scopeId,commentOriginalSelector){var hostScopeId=scopeId+'-h';var slotScopeId=scopeId+'-s';var commentsWithHash=extractCommentsWithHash(cssText);cssText=stripComments(cssText);var orgSelectors=[];if(commentOriginalSelector){var processCommentedSelector=function processCommentedSelector(rule){var placeholder=\"/*!@___\".concat(orgSelectors.length,\"___*/\");var comment=\"/*!@\".concat(rule.selector,\"*/\");orgSelectors.push({placeholder:placeholder,comment:comment});rule.selector=placeholder+rule.selector;return rule;};cssText=processRules(cssText,function(rule){if(rule.selector[0]!=='@'){return processCommentedSelector(rule);}else if(rule.selector.startsWith('@media')||rule.selector.startsWith('@supports')||rule.selector.startsWith('@page')||rule.selector.startsWith('@document')){rule.content=processRules(rule.content,processCommentedSelector);return rule;}return rule;});}var scoped=scopeCssText(cssText,scopeId,hostScopeId,slotScopeId);cssText=[scoped.cssText].concat(_toConsumableArray(commentsWithHash)).join('\\n');if(commentOriginalSelector){orgSelectors.forEach(function(_ref){var placeholder=_ref.placeholder,comment=_ref.comment;cssText=cssText.replace(placeholder,comment);});}scoped.slottedSelectors.forEach(function(slottedSelector){cssText=cssText.replace(slottedSelector.orgSelector,slottedSelector.updatedSelector);});return cssText;};export{scopeCss};"],"sourceRoot":""}
|
dist/analytics/7-c4380ef8.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/
|
18 |
+
(window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[7],{55:function(t,e,n){"use strict";n.r(e),n.d(e,"scopeCss",(function(){return y}));var r=n(9),o=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",c=new RegExp("(-shadowcsshost"+o,"gim"),s=new RegExp("(-shadowcsscontext"+o,"gim"),a=new RegExp("(-shadowcssslotted"+o,"gim"),i=/-shadowcsshost-no-combinator([^\s]*)/,u=[/::shadow/g,/::content/g],l=/-shadowcsshost/gim,h=/:host/gim,p=/::slotted/gim,f=/:host-context/gim,d=/\/\*\s*[\s\S]*?\*\//g,g=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,m=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,v=/([{}])/g,w=function(t,e){var n=x(t),r=0;return n.escapedString.replace(m,(function(){var t=arguments.length<=2?void 0:arguments[2],o="",c=arguments.length<=4?void 0:arguments[4],s="";c&&c.startsWith("{%BLOCK%")&&(o=n.blocks[r++],c=c.substring("%BLOCK%".length+1),s="{");var a={selector:t,content:o},i=e(a);return"".concat(arguments.length<=1?void 0:arguments[1]).concat(i.selector).concat(arguments.length<=3?void 0:arguments[3]).concat(s).concat(i.content).concat(c)}))},x=function(t){for(var e=t.split(v),n=[],r=[],o=0,c=[],s=0;s<e.length;s++){var a=e[s];"}"===a&&o--,o>0?c.push(a):(c.length>0&&(r.push(c.join("")),n.push("%BLOCK%"),c=[]),n.push(a)),"{"===a&&o++}return c.length>0&&(r.push(c.join("")),n.push("%BLOCK%")),{escapedString:n.join(""),blocks:r}},_=function(t,e,n){return t.replace(e,(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e[2]){for(var o=e[2].split(","),c=[],s=0;s<o.length;s++){var a=o[s].trim();if(!a)break;c.push(n("-shadowcsshost-no-combinator",a,e[3]))}return c.join(",")}return"-shadowcsshost-no-combinator"+e[3]}))},b=function(t,e,n){return t+e.replace("-shadowcsshost","")+n},O=function(t,e,n){return e.indexOf("-shadowcsshost")>-1?b(t,e,n):t+e+n+", "+e+" "+t+n},S=function(t,e){return!function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")([>\\s~+[.,{:][\\s\\S]*)?$","m")}(e).test(t)},W=function(t,e,n){for(var r,o="."+(e=e.replace(/\[is=([^\]]*)\]/g,(function(t){return arguments.length<=1?void 0:arguments[1]}))),c=function(t){var r=t.trim();if(!r)return"";if(t.indexOf("-shadowcsshost-no-combinator")>-1)r=function(t,e,n){if(l.lastIndex=0,l.test(t)){var r=".".concat(n);return t.replace(i,(function(t,e){return e.replace(/([^:]*)(:*)(.*)/,(function(t,e,n,o){return e+r+n+o}))})).replace(l,r+" ")}return e+" "+t}(t,e,n);else{var c=t.replace(l,"");if(c.length>0){var s=c.match(/([^:]*)(:*)(.*)/);s&&(r=s[1]+o+s[2]+s[3])}}return r},s=function(t){var e=[],n=0;return{content:(t=t.replace(/(\[[^\]]*\])/g,(function(t,r){var o="__ph-".concat(n,"__");return e.push(r),n++,o}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(function(t,r,o){var c="__ph-".concat(n,"__");return e.push(o),n++,r+c})),placeholders:e}}(t),a="",u=0,h=/( |>|\+|~(?!=))\s*/g,p=!((t=s.content).indexOf("-shadowcsshost-no-combinator")>-1);null!==(r=h.exec(t));){var f=r[1],d=t.slice(u,r.index).trim(),g=(p=p||d.indexOf("-shadowcsshost-no-combinator")>-1)?c(d):d;a+="".concat(g," ").concat(f," "),u=h.lastIndex}var m,v=t.substring(u);return a+=(p=p||v.indexOf("-shadowcsshost-no-combinator")>-1)?c(v):v,m=s.placeholders,a.replace(/__ph-(\d+)__/g,(function(t,e){return m[+e]}))},j=function t(e,n,r,o,c){return w(e,(function(e){var c=e.selector,s=e.content;return"@"!==e.selector[0]?c=function(t,e,n,r){return t.split(",").map((function(t){return r&&t.indexOf("."+r)>-1?t.trim():S(t,e)?W(t,e,n).trim():t.trim()})).join(", ")}(e.selector,n,r,o):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(s=t(e.content,n,r,o)),{selector:c.replace(/\s{2,}/g," ").trim(),content:s}}))},k=function(t,e,n,r,o){var i=function(t,e){var n="."+e+" > ",r=[];return t=t.replace(a,(function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];if(e[2]){for(var c=e[2].trim(),s=e[3],a=n+c+s,i="",u=e[4]-1;u>=0;u--){var l=e[5][u];if("}"===l||","===l)break;i=l+i}var h=i+a,p="".concat(i.trimRight()).concat(a.trim());if(h.trim()!==p.trim()){var f="".concat(p,", ").concat(h);r.push({orgSelector:h,updatedSelector:f})}return a}return"-shadowcsshost-no-combinator"+e[3]})),{selectors:r,cssText:t}}(t=function(t){return _(t,s,O)}(t=function(t){return _(t,c,b)}(t=t.replace(f,"-shadowcsscontext").replace(h,"-shadowcsshost").replace(p,"-shadowcssslotted"))),r);return t=function(t){return u.reduce((function(t,e){return t.replace(e," ")}),t)}(t=i.cssText),e&&(t=j(t,e,n,r)),{cssText:(t=(t=t.replace(/-shadowcsshost-no-combinator/g,".".concat(n))).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:i.selectors}},y=function(t,e,n){var o=e+"-h",c=e+"-s",s=t.match(g)||[];t=function(t){return t.replace(d,"")}(t);var a=[];if(n){var i=function(t){var e="/*!@___".concat(a.length,"___*/"),n="/*!@".concat(t.selector,"*/");return a.push({placeholder:e,comment:n}),t.selector=e+t.selector,t};t=w(t,(function(t){return"@"!==t.selector[0]?i(t):t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document")?(t.content=w(t.content,i),t):t}))}var u=k(t,e,o,c);return t=[u.cssText].concat(Object(r.a)(s)).join("\n"),n&&a.forEach((function(e){var n=e.placeholder,r=e.comment;t=t.replace(n,r)})),u.slottedSelectors.forEach((function(e){t=t.replace(e.orgSelector,e.updatedSelector)})),t};
|
19 |
+
/**
|
20 |
+
* @license
|
21 |
+
* Copyright Google Inc. All Rights Reserved.
|
22 |
+
*
|
23 |
+
* Use of this source code is governed by an MIT-style license that can be
|
24 |
+
* found in the LICENSE file at https://angular.io/license
|
25 |
+
*
|
26 |
+
* This file is a port of shadowCSS from webcomponents.js to TypeScript.
|
27 |
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
28 |
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
29 |
+
*/}}]);
|
30 |
+
//# sourceMappingURL=7-c4380ef8.js.map
|
dist/analytics/7-c4380ef8.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./node_modules/@presto-player/components/node_modules/@stencil/core/internal/client/shadow-css.js"],"names":["_parenSuffix","_cssColonHostRe","RegExp","_cssColonHostContextRe","_cssColonSlottedRe","_polyfillHostNoCombinatorRe","_shadowDOMSelectorsRe","_polyfillHostRe","_colonHostRe","_colonSlottedRe","_colonHostContextRe","_commentRe","_commentWithHashRe","_ruleRe","_curlyRe","processRules","input","ruleCallback","inputWithEscapedBlocks","escapeBlocks","nextBlockIndex","escapedString","replace","selector","arguments","length","undefined","content","suffix","contentPrefix","startsWith","blocks","substring","cssRule","rule","concat","inputParts","split","resultParts","escapedBlocks","bracketCount","currentBlockParts","partIndex","part","push","join","convertColonRule","cssText","regExp","partReplacer","_len","m","Array","_key","parts","r","i","p","trim","_polyfillHost","colonHostPartReplacer","host","colonHostContextPartReplacer","indexOf","selectorNeedsScoping","scopeSelector","makeScopeMatcher","test","applyStrictSelectorScope","hostSelector","res","className","_","_scopeSelectorPart","scopedP","lastIndex","replaceBy","before","colon","after","applySimpleSelectorScope","t","matches","match","safeContent","placeholders","index","keep","pseudo","exp","safeSelector","scopedSelector","startIndex","sep","shouldScope","exec","separator","_part","slice","scopedPart","scopeSelectors","scopeSelectorText","slotSelector","commentOriginalSelector","map","shallowPart","scopeCssText","scopeId","hostScopeId","slotScopeId","slotted","slotClass","selectors","_len2","_key2","compound","slottedSelector","prefixSelector","char","orgSelector","addedSelector","trimRight","updatedSelector","convertColonSlotted","convertColonHostContext","convertColonHost","reduce","result","pattern","convertShadowDOMSelectors","slottedSelectors","scopeCss","commentsWithHash","stripComments","orgSelectors","processCommentedSelector","placeholder","comment","scoped","forEach","_ref"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,2DAiBiDA,EAAa,kDAA4DC,EAAgB,IAAIC,OAAO,kBAAkBF,EAAa,OAAWG,EAAuB,IAAID,OAAO,qBAAyBF,EAAa,OAAWI,EAAmB,IAAIF,OAAO,qBAAqBF,EAAa,OAAwEK,EAA4B,uCAA2CC,EAAsB,CAAC,YAAY,cAAqEC,EAAgB,oBAAwBC,EAAa,WAAeC,EAAgB,eAAmBC,EAAoB,mBAAuBC,EAAW,uBAAiHC,EAAmB,+CAAoKC,EAAQ,wDAA4DC,EAAS,UAAqFC,EAAa,SAAsBC,EAAMC,GAAc,IAAIC,EAAuBC,EAAaH,GAAWI,EAAe,EAAE,OAAOF,EAAuBG,cAAcC,QAAQT,GAAQ,WAAW,IAAIU,EAASC,UAAUC,QAAQ,OAAEC,EAAUF,UAAU,GAAOG,EAAQ,GAAOC,EAAOJ,UAAUC,QAAQ,OAAEC,EAAUF,UAAU,GAAOK,EAAc,GAAMD,GAAQA,EAAOE,WAAW,cAAwBH,EAAQT,EAAuBa,OAAOX,KAAkBQ,EAAOA,EAAOI,UAA7d,UAAyfP,OAAO,GAAGI,EAAc,KAAK,IAAII,EAAQ,CAACV,SAASA,EAASI,QAAQA,GAAaO,EAAKjB,EAAagB,GAAS,MAAM,GAAGE,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EAAa,GAAG,GAAG/B,EAAwB,CAAC,IAAIgC,EAAyB,SAAkCrG,GAAM,IAAIsG,EAAY,UAAUrG,OAAOmG,EAAa7G,OAAO,SAAagH,EAAQ,OAAOtG,OAAOD,EAAKX,SAAS,MAA2G,OAArG+G,EAAa1F,KAAK,CAAC4F,YAAYA,EAAYC,QAAQA,IAAUvG,EAAKX,SAASiH,EAAYtG,EAAKX,SAAgBW,GAAOa,EAAQhC,EAAagC,GAAQ,SAASb,GAAM,MAAsB,MAAnBA,EAAKX,SAAS,GAAiBgH,EAAyBrG,GAAeA,EAAKX,SAASO,WAAW,WAAWI,EAAKX,SAASO,WAAW,cAAcI,EAAKX,SAASO,WAAW,UAAUI,EAAKX,SAASO,WAAW,cAAcI,EAAKP,QAAQZ,EAAamB,EAAKP,QAAQ4G,GAAiCrG,GAAaA,KAAS,IAAIwG,EAAOhC,EAAa3D,EAAQ4D,EAAQC,EAAYC,GAAuZ,OAA1Y9D,EAAQ,CAAC2F,EAAO3F,SAASZ,OAAO,YAAmBiG,IAAmBvF,KAAK,MAAS0D,GAAyB+B,EAAaK,SAAQ,SAASC,GAAM,IAAIJ,EAAYI,EAAKJ,YAAYC,EAAQG,EAAKH,QAAQ1F,EAAQA,EAAQzB,QAAQkH,EAAYC,MAAaC,EAAOR,iBAAiBS,SAAQ,SAASvB,GAAiBrE,EAAQA,EAAQzB,QAAQ8F,EAAgBG,YAAYH,EAAgBM,oBAA2B3E","file":"analytics/7-c4380ef8.js","sourcesContent":["import _toConsumableArray from\"@babel/runtime/helpers/esm/toConsumableArray\";/*\n Stencil Client Platform v2.5.2 | MIT Licensed | https://stenciljs.com\n */ /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n *\n * This file is a port of shadowCSS from webcomponents.js to TypeScript.\n * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js\n * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts\n */var safeSelector=function safeSelector(selector){var placeholders=[];var index=0;var content;// Replaces attribute selectors with placeholders.\n// The WS in [attr=\"va lue\"] would otherwise be interpreted as a selector separator.\nselector=selector.replace(/(\\[[^\\]]*\\])/g,function(_,keep){var replaceBy=\"__ph-\".concat(index,\"__\");placeholders.push(keep);index++;return replaceBy;});// Replaces the expression in `:nth-child(2n + 1)` with a placeholder.\n// WS and \"+\" would otherwise be interpreted as selector separators.\ncontent=selector.replace(/(:nth-[-\\w]+)(\\([^)]+\\))/g,function(_,pseudo,exp){var replaceBy=\"__ph-\".concat(index,\"__\");placeholders.push(exp);index++;return pseudo+replaceBy;});var ss={content:content,placeholders:placeholders};return ss;};var restoreSafeSelector=function restoreSafeSelector(placeholders,content){return content.replace(/__ph-(\\d+)__/g,function(_,index){return placeholders[+index];});};var _polyfillHost='-shadowcsshost';var _polyfillSlotted='-shadowcssslotted';// note: :host-context pre-processed to -shadowcsshostcontext.\nvar _polyfillHostContext='-shadowcsscontext';var _parenSuffix=')(?:\\\\(('+'(?:\\\\([^)(]*\\\\)|[^)(]*)+?'+')\\\\))?([^,{]*)';var _cssColonHostRe=new RegExp('('+_polyfillHost+_parenSuffix,'gim');var _cssColonHostContextRe=new RegExp('('+_polyfillHostContext+_parenSuffix,'gim');var _cssColonSlottedRe=new RegExp('('+_polyfillSlotted+_parenSuffix,'gim');var _polyfillHostNoCombinator=_polyfillHost+'-no-combinator';var _polyfillHostNoCombinatorRe=/-shadowcsshost-no-combinator([^\\s]*)/;var _shadowDOMSelectorsRe=[/::shadow/g,/::content/g];var _selectorReSuffix='([>\\\\s~+[.,{:][\\\\s\\\\S]*)?$';var _polyfillHostRe=/-shadowcsshost/gim;var _colonHostRe=/:host/gim;var _colonSlottedRe=/::slotted/gim;var _colonHostContextRe=/:host-context/gim;var _commentRe=/\\/\\*\\s*[\\s\\S]*?\\*\\//g;var stripComments=function stripComments(input){return input.replace(_commentRe,'');};var _commentWithHashRe=/\\/\\*\\s*#\\s*source(Mapping)?URL=[\\s\\S]+?\\*\\//g;var extractCommentsWithHash=function extractCommentsWithHash(input){return input.match(_commentWithHashRe)||[];};var _ruleRe=/(\\s*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))/g;var _curlyRe=/([{}])/g;var OPEN_CURLY='{';var CLOSE_CURLY='}';var BLOCK_PLACEHOLDER='%BLOCK%';var processRules=function processRules(input,ruleCallback){var inputWithEscapedBlocks=escapeBlocks(input);var nextBlockIndex=0;return inputWithEscapedBlocks.escapedString.replace(_ruleRe,function(){var selector=arguments.length<=2?undefined:arguments[2];var content='';var suffix=arguments.length<=4?undefined:arguments[4];var contentPrefix='';if(suffix&&suffix.startsWith('{'+BLOCK_PLACEHOLDER)){content=inputWithEscapedBlocks.blocks[nextBlockIndex++];suffix=suffix.substring(BLOCK_PLACEHOLDER.length+1);contentPrefix='{';}var cssRule={selector:selector,content:content};var rule=ruleCallback(cssRule);return\"\".concat(arguments.length<=1?undefined:arguments[1]).concat(rule.selector).concat(arguments.length<=3?undefined:arguments[3]).concat(contentPrefix).concat(rule.content).concat(suffix);});};var escapeBlocks=function escapeBlocks(input){var inputParts=input.split(_curlyRe);var resultParts=[];var escapedBlocks=[];var bracketCount=0;var currentBlockParts=[];for(var partIndex=0;partIndex<inputParts.length;partIndex++){var part=inputParts[partIndex];if(part===CLOSE_CURLY){bracketCount--;}if(bracketCount>0){currentBlockParts.push(part);}else{if(currentBlockParts.length>0){escapedBlocks.push(currentBlockParts.join(''));resultParts.push(BLOCK_PLACEHOLDER);currentBlockParts=[];}resultParts.push(part);}if(part===OPEN_CURLY){bracketCount++;}}if(currentBlockParts.length>0){escapedBlocks.push(currentBlockParts.join(''));resultParts.push(BLOCK_PLACEHOLDER);}var strEscapedBlocks={escapedString:resultParts.join(''),blocks:escapedBlocks};return strEscapedBlocks;};var insertPolyfillHostInCssText=function insertPolyfillHostInCssText(selector){selector=selector.replace(_colonHostContextRe,_polyfillHostContext).replace(_colonHostRe,_polyfillHost).replace(_colonSlottedRe,_polyfillSlotted);return selector;};var convertColonRule=function convertColonRule(cssText,regExp,partReplacer){// m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule\nreturn cssText.replace(regExp,function(){for(var _len=arguments.length,m=new Array(_len),_key=0;_key<_len;_key++){m[_key]=arguments[_key];}if(m[2]){var parts=m[2].split(',');var r=[];for(var i=0;i<parts.length;i++){var p=parts[i].trim();if(!p)break;r.push(partReplacer(_polyfillHostNoCombinator,p,m[3]));}return r.join(',');}else{return _polyfillHostNoCombinator+m[3];}});};var colonHostPartReplacer=function colonHostPartReplacer(host,part,suffix){return host+part.replace(_polyfillHost,'')+suffix;};var convertColonHost=function convertColonHost(cssText){return convertColonRule(cssText,_cssColonHostRe,colonHostPartReplacer);};var colonHostContextPartReplacer=function colonHostContextPartReplacer(host,part,suffix){if(part.indexOf(_polyfillHost)>-1){return colonHostPartReplacer(host,part,suffix);}else{return host+part+suffix+', '+part+' '+host+suffix;}};var convertColonSlotted=function convertColonSlotted(cssText,slotScopeId){var slotClass='.'+slotScopeId+' > ';var selectors=[];cssText=cssText.replace(_cssColonSlottedRe,function(){for(var _len2=arguments.length,m=new Array(_len2),_key2=0;_key2<_len2;_key2++){m[_key2]=arguments[_key2];}if(m[2]){var compound=m[2].trim();var suffix=m[3];var slottedSelector=slotClass+compound+suffix;var prefixSelector='';for(var i=m[4]-1;i>=0;i--){var char=m[5][i];if(char==='}'||char===','){break;}prefixSelector=char+prefixSelector;}var orgSelector=prefixSelector+slottedSelector;var addedSelector=\"\".concat(prefixSelector.trimRight()).concat(slottedSelector.trim());if(orgSelector.trim()!==addedSelector.trim()){var updatedSelector=\"\".concat(addedSelector,\", \").concat(orgSelector);selectors.push({orgSelector:orgSelector,updatedSelector:updatedSelector});}return slottedSelector;}else{return _polyfillHostNoCombinator+m[3];}});return{selectors:selectors,cssText:cssText};};var convertColonHostContext=function convertColonHostContext(cssText){return convertColonRule(cssText,_cssColonHostContextRe,colonHostContextPartReplacer);};var convertShadowDOMSelectors=function convertShadowDOMSelectors(cssText){return _shadowDOMSelectorsRe.reduce(function(result,pattern){return result.replace(pattern,' ');},cssText);};var makeScopeMatcher=function makeScopeMatcher(scopeSelector){var lre=/\\[/g;var rre=/\\]/g;scopeSelector=scopeSelector.replace(lre,'\\\\[').replace(rre,'\\\\]');return new RegExp('^('+scopeSelector+')'+_selectorReSuffix,'m');};var selectorNeedsScoping=function selectorNeedsScoping(selector,scopeSelector){var re=makeScopeMatcher(scopeSelector);return!re.test(selector);};var applySimpleSelectorScope=function applySimpleSelectorScope(selector,scopeSelector,hostSelector){// In Android browser, the lastIndex is not reset when the regex is used in String.replace()\n_polyfillHostRe.lastIndex=0;if(_polyfillHostRe.test(selector)){var replaceBy=\".\".concat(hostSelector);return selector.replace(_polyfillHostNoCombinatorRe,function(_,selector){return selector.replace(/([^:]*)(:*)(.*)/,function(_,before,colon,after){return before+replaceBy+colon+after;});}).replace(_polyfillHostRe,replaceBy+' ');}return scopeSelector+' '+selector;};var applyStrictSelectorScope=function applyStrictSelectorScope(selector,scopeSelector,hostSelector){var isRe=/\\[is=([^\\]]*)\\]/g;scopeSelector=scopeSelector.replace(isRe,function(_){return arguments.length<=1?undefined:arguments[1];});var className='.'+scopeSelector;var _scopeSelectorPart=function _scopeSelectorPart(p){var scopedP=p.trim();if(!scopedP){return'';}if(p.indexOf(_polyfillHostNoCombinator)>-1){scopedP=applySimpleSelectorScope(p,scopeSelector,hostSelector);}else{// remove :host since it should be unnecessary\nvar t=p.replace(_polyfillHostRe,'');if(t.length>0){var matches=t.match(/([^:]*)(:*)(.*)/);if(matches){scopedP=matches[1]+className+matches[2]+matches[3];}}}return scopedP;};var safeContent=safeSelector(selector);selector=safeContent.content;var scopedSelector='';var startIndex=0;var res;var sep=/( |>|\\+|~(?!=))\\s*/g;// If a selector appears before :host it should not be shimmed as it\n// matches on ancestor elements and not on elements in the host's shadow\n// `:host-context(div)` is transformed to\n// `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`\n// the `div` is not part of the component in the 2nd selectors and should not be scoped.\n// Historically `component-tag:host` was matching the component so we also want to preserve\n// this behavior to avoid breaking legacy apps (it should not match).\n// The behavior should be:\n// - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)\n// - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a\n// `:host-context(tag)`)\nvar hasHost=selector.indexOf(_polyfillHostNoCombinator)>-1;// Only scope parts after the first `-shadowcsshost-no-combinator` when it is present\nvar shouldScope=!hasHost;while((res=sep.exec(selector))!==null){var separator=res[1];var _part=selector.slice(startIndex,res.index).trim();shouldScope=shouldScope||_part.indexOf(_polyfillHostNoCombinator)>-1;var scopedPart=shouldScope?_scopeSelectorPart(_part):_part;scopedSelector+=\"\".concat(scopedPart,\" \").concat(separator,\" \");startIndex=sep.lastIndex;}var part=selector.substring(startIndex);shouldScope=shouldScope||part.indexOf(_polyfillHostNoCombinator)>-1;scopedSelector+=shouldScope?_scopeSelectorPart(part):part;// replace the placeholders with their original values\nreturn restoreSafeSelector(safeContent.placeholders,scopedSelector);};var scopeSelector=function scopeSelector(selector,scopeSelectorText,hostSelector,slotSelector){return selector.split(',').map(function(shallowPart){if(slotSelector&&shallowPart.indexOf('.'+slotSelector)>-1){return shallowPart.trim();}if(selectorNeedsScoping(shallowPart,scopeSelectorText)){return applyStrictSelectorScope(shallowPart,scopeSelectorText,hostSelector).trim();}else{return shallowPart.trim();}}).join(', ');};var scopeSelectors=function scopeSelectors(cssText,scopeSelectorText,hostSelector,slotSelector,commentOriginalSelector){return processRules(cssText,function(rule){var selector=rule.selector;var content=rule.content;if(rule.selector[0]!=='@'){selector=scopeSelector(rule.selector,scopeSelectorText,hostSelector,slotSelector);}else if(rule.selector.startsWith('@media')||rule.selector.startsWith('@supports')||rule.selector.startsWith('@page')||rule.selector.startsWith('@document')){content=scopeSelectors(rule.content,scopeSelectorText,hostSelector,slotSelector);}var cssRule={selector:selector.replace(/\\s{2,}/g,' ').trim(),content:content};return cssRule;});};var scopeCssText=function scopeCssText(cssText,scopeId,hostScopeId,slotScopeId,commentOriginalSelector){cssText=insertPolyfillHostInCssText(cssText);cssText=convertColonHost(cssText);cssText=convertColonHostContext(cssText);var slotted=convertColonSlotted(cssText,slotScopeId);cssText=slotted.cssText;cssText=convertShadowDOMSelectors(cssText);if(scopeId){cssText=scopeSelectors(cssText,scopeId,hostScopeId,slotScopeId);}cssText=cssText.replace(/-shadowcsshost-no-combinator/g,\".\".concat(hostScopeId));cssText=cssText.replace(/>\\s*\\*\\s+([^{, ]+)/gm,' $1 ');return{cssText:cssText.trim(),slottedSelectors:slotted.selectors};};var scopeCss=function scopeCss(cssText,scopeId,commentOriginalSelector){var hostScopeId=scopeId+'-h';var slotScopeId=scopeId+'-s';var commentsWithHash=extractCommentsWithHash(cssText);cssText=stripComments(cssText);var orgSelectors=[];if(commentOriginalSelector){var processCommentedSelector=function processCommentedSelector(rule){var placeholder=\"/*!@___\".concat(orgSelectors.length,\"___*/\");var comment=\"/*!@\".concat(rule.selector,\"*/\");orgSelectors.push({placeholder:placeholder,comment:comment});rule.selector=placeholder+rule.selector;return rule;};cssText=processRules(cssText,function(rule){if(rule.selector[0]!=='@'){return processCommentedSelector(rule);}else if(rule.selector.startsWith('@media')||rule.selector.startsWith('@supports')||rule.selector.startsWith('@page')||rule.selector.startsWith('@document')){rule.content=processRules(rule.content,processCommentedSelector);return rule;}return rule;});}var scoped=scopeCssText(cssText,scopeId,hostScopeId,slotScopeId);cssText=[scoped.cssText].concat(_toConsumableArray(commentsWithHash)).join('\\n');if(commentOriginalSelector){orgSelectors.forEach(function(_ref){var placeholder=_ref.placeholder,comment=_ref.comment;cssText=cssText.replace(placeholder,comment);});}scoped.slottedSelectors.forEach(function(slottedSelector){cssText=cssText.replace(slottedSelector.orgSelector,slottedSelector.updatedSelector);});return cssText;};export{scopeCss};"],"sourceRoot":""}
|
dist/analytics/admin-5fb77cbc.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/
|
18 |
+
(window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[1],{33:function(e,t,a){a(34),e.exports=a(49)},36:function(e,t){function a(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}a.keys=function(){return[]},a.resolve=a,e.exports=a,a.id=36},49:function(e,t,a){"use strict";a.r(t);var r=a(21),n=a(0),c=a(25),l=a(26),o=a(15),i=a(27),s=a(28),p=a(20),d=a(4),u=a(29),m=a.n(u);function f(e){return{path:e.pathname,hash:e.hash,query:m.a.parse(e.search)}}var h=a(32),b=Object(h.a)(),y=wp.element.createContext({route:f(b.location)}),v=a(10),w=wp.element.useContext,E="";function g(e){var t=e.path,a=e.onRoute,r=e.children,n=w(y).route,c=Object(v.a)("".concat(t))("".concat(n.hash.substr(1)));return c?(a&&(E!==c.path&&a(),E=c.path),React.createElement("div",null,wp.element.cloneElement(r,{route:c}))):null}var R=a(17),O=a.n(R);wp.element.useContext;function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=Object(p.a)(e);if(t){var n=Object(p.a)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return Object(s.a)(this,a)}}var x=function(e){Object(i.a)(a,e);var t=j(a);function a(e){var r;Object(c.a)(this,a),r=t.call(this,e),Object(d.a)(Object(o.a)(r),"handleRouteChange",(function(e){var t=f(null==e?void 0:e.location);r.setState({route:t})})),r.routes=Object.keys(e.routes).map((function(t){return e.routes[t].path})),r.unlisten=b.listen(r.handleRouteChange);var n=f(b.location);return r.state={route:n,defaultRoute:null!=e&&e.defaultRoute?"#".concat(null==e?void 0:e.defaultRoute):"#/"},r}return Object(l.a)(a,[{key:"componentWillUnmount",value:function(){this.unlisten()}},{key:"render",value:function(){var e=this.props,t=e.children,a=(e.NotFound,this.state),r=a.route,n=a.defaultRoute;if(!r.hash)return b.push(n),React.createElement("div",null);var c=!1;(this.routes||[]).forEach((function(e){var t=Object(v.a)(r.hash.substr(1))("".concat(r.hash.substr(1)));t&&(c={name:e,data:t})}));var l={route:r,matched:c},o=!c;return React.createElement(y.Provider,{value:l},o?React.createElement("div",null,"Not found"):t)}}]),a}(wp.element.Component),_=function(e){var t=e.width,a=e.height;return React.createElement("svg",{id:"e8f68bdd-4984-4f2e-95b7-7fc8ec281257","data-name":"Layer 1",width:t,height:a,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 918.14 765.54"},React.createElement("defs",null,React.createElement("linearGradient",{id:"27aa7b70-b106-4a00-be67-693c8380e41d",x1:"397.74",y1:"717.25",x2:"397.74",y2:"86.11",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:"0","stop-color":"gray","stop-opacity":"0.25"}),React.createElement("stop",{offset:"0.54","stop-color":"gray","stop-opacity":"0.12"}),React.createElement("stop",{offset:"1","stop-color":"gray","stop-opacity":"0.1"})),React.createElement("linearGradient",{id:"46a816da-c484-41ec-8a6f-fbf14454d910",x1:"288.88",y1:"378.44",x2:"288.88",y2:"209.65",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"32b634d8-28f1-48d9-a868-f602a2cad942",x1:"288.88",y1:"328.29",x2:"288.88",y2:"223.1",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("clipPath",{id:"7a4c6aff-0be0-461b-a111-b3ae1b8fbf73",transform:"translate(-140.93 -67.23)"},React.createElement("rect",{id:"8cc91f6d-19b0-43cc-9c18-2faa83ac34ba","data-name":"<Rectangle>",x:"354.51",y:"291.55",width:"150.6",height:"101.52",fill:"#fff"})),React.createElement("linearGradient",{id:"38f1cb81-8fac-4205-a0ff-a33ac00d354c",x1:"288.88",y1:"594.94",x2:"288.88",y2:"426.14",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"6fc01aaf-135e-403e-a209-43b2a4fe59f1",x1:"288.88",y1:"544.79",x2:"288.88",y2:"439.6",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("clipPath",{id:"79ce363a-d134-40e4-9f82-b96d04a36978",transform:"translate(-140.93 -67.23)"},React.createElement("rect",{id:"5b44e697-61fe-43bd-9a58-5f3e41301748","data-name":"<Rectangle>",x:"354.51",y:"508.05",width:"150.6",height:"101.52",fill:"#fff"})),React.createElement("linearGradient",{id:"54803c44-522d-4b9e-9a34-f1f7b43e8483",x1:"671.57",y1:"760.34",x2:"671.57",y2:"129.2",gradientTransform:"translate(1109.43 -194.1) rotate(90)",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"089a6a47-adaa-499b-aefb-cd6464b62fb8",x1:"670.96",y1:"553.63",x2:"670.96",y2:"387.28",gradientTransform:"translate(1129.51 -168.41) rotate(90)",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"fd8d88e0-7826-450d-9e0b-001d1be709c2",x1:"637.66",y1:"754.12",x2:"637.66",y2:"601.05",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"8d1793c5-b76e-44e2-a52e-569460402331",x1:"778.37",y1:"673.86",x2:"778.37",y2:"569.13",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"4745700d-8097-45ff-9f71-625443fc4ad8",x1:"778.37",y1:"774.41",x2:"778.37",y2:"713.66",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"})),React.createElement("title",null,"secure data"),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"162.9",y:"86.11",width:"469.69",height:"631.14",fill:"url(#27aa7b70-b106-4a00-be67-693c8380e41d)"})),React.createElement("rect",{x:"169.02",y:"94.67",width:"455.01",height:"609.12",fill:"#f2f2f2"}),React.createElement("rect",{x:"204.49",y:"120.36",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"204.49",y:"142.37",width:"156.56",height:"4.89",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"384.29",y:"120.36",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"408.75",y:"259.8",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"412.42",y:"273.25",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"419.76",y:"286.7",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"408.75",y:"476.29",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"412.42",y:"489.75",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"419.76",y:"503.2",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"205.71",y:"209.65",width:"166.35",height:"168.79",fill:"url(#46a816da-c484-41ec-8a6f-fbf14454d910)"})),React.createElement("rect",{x:"206.76",y:"213.32",width:"163.72",height:"161.45",fill:"#f5f5f5"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"212.53",y:"223.1",width:"152.7",height:"105.19",fill:"url(#32b634d8-28f1-48d9-a868-f602a2cad942)"})),React.createElement("rect",{id:"689f37f3-cc41-448d-b172-63ec123bc985","data-name":"<Rectangle>",x:"213.58",y:"224.32",width:"150.6",height:"101.52",fill:"#fff"}),React.createElement("g",{"clip-path":"url(#7a4c6aff-0be0-461b-a111-b3ae1b8fbf73)"},React.createElement("polygon",{points:"200.82 322.18 238.74 263.46 254.64 289.15 288.88 253.68 318.24 289.15 343.93 236.56 409.98 341.75 195.93 334.41 200.82 322.18",fill:"#6c63ff",opacity:"0.4"}),React.createElement("circle",{cx:"230.17",cy:"239",r:"11.01",fill:"#6c63ff",opacity:"0.4"})),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"205.71",y:"426.14",width:"166.35",height:"168.79",fill:"url(#38f1cb81-8fac-4205-a0ff-a33ac00d354c)"})),React.createElement("rect",{x:"206.76",y:"429.81",width:"163.72",height:"161.45",fill:"#f5f5f5"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"212.53",y:"439.6",width:"152.7",height:"105.19",fill:"url(#6fc01aaf-135e-403e-a209-43b2a4fe59f1)"})),React.createElement("rect",{id:"b429ac3a-f8a8-4171-bcce-5b6c002c0714","data-name":"<Rectangle>",x:"213.58",y:"440.82",width:"150.6",height:"101.52",fill:"#fff"}),React.createElement("g",{"clip-path":"url(#79ce363a-d134-40e4-9f82-b96d04a36978)"},React.createElement("polygon",{points:"200.82 538.67 238.74 479.96 254.64 505.65 288.88 470.18 318.24 505.65 343.93 453.05 409.98 558.24 195.93 550.9 200.82 538.67",fill:"#bdbdbd",opacity:"0.4"}),React.createElement("circle",{cx:"230.17",cy:"455.5",r:"11.01",fill:"#bdbdbd",opacity:"0.4"})),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"349.09",y:"242.63",width:"631.14",height:"469.69",transform:"translate(-74.16 969.06) rotate(-78.76)",fill:"url(#54803c44-522d-4b9e-9a34-f1f7b43e8483)"})),React.createElement("rect",{x:"359.37",y:"247.33",width:"609.12",height:"455.01",transform:"translate(-72.16 966.22) rotate(-78.76)",fill:"#fff"}),React.createElement("rect",{x:"523.5",y:"197.22",width:"322.91",height:"4.89",transform:"translate(-88.86 -196.94) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"433.36",y:"650.7",width:"322.91",height:"4.89",transform:"translate(-2.18 -170.66) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"428.58",y:"671.14",width:"249.52",height:"4.89",transform:"translate(1.01 -162.18) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"424.6",y:"683.47",width:"92.96",height:"4.89",transform:"translate(1.84 -145.91) rotate(11.24)",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"519.57",y:"209.08",width:"161.45",height:"4.89",transform:"translate(-88.17 -180.2) rotate(11.24)",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"512.84",y:"249.31",width:"291.11",height:"4.89",transform:"translate(-79.21 -190.76) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"509.47",y:"255.44",width:"70.94",height:"4.89",transform:"translate(-80.19 -168.52) rotate(11.24)",fill:"#3ad29f",opacity:"0.7"}),React.createElement("rect",{x:"501.56",y:"307.59",width:"322.91",height:"4.89",transform:"translate(-67.76 -190.54) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"575.87",y:"357.6",width:"166.35",height:"289.88",transform:"translate(-103.27 983.74) rotate(-78.76)",fill:"url(#089a6a47-adaa-499b-aefb-cd6464b62fb8)"})),React.createElement("rect",{x:"516.06",y:"420.61",width:"286.22",height:"162.68",transform:"translate(-30.42 -186.11) rotate(11.24)",fill:"#fff"}),React.createElement("rect",{x:"496.08",y:"335.18",width:"322.91",height:"4.89",transform:"translate(-62.49 -188.94) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"547.86",y:"424.02",width:"35.47",height:"118.64",transform:"translate(-35.84 -168.22) rotate(11.24)",fill:"#6c63ff"}),React.createElement("rect",{x:"606.43",y:"475.19",width:"35.47",height:"79.5",transform:"translate(-28.56 -179.03) rotate(11.24)",fill:"#3ad29f"}),React.createElement("rect",{x:"665.23",y:"523.93",width:"35.47",height:"42.81",transform:"translate(-21.5 -189.92) rotate(11.24)",fill:"#f55f44"}),React.createElement("rect",{x:"731.91",y:"492.72",width:"35.47",height:"86.84",transform:"translate(-22.02 -203.09) rotate(11.24)",fill:"#fdd835"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"128.65",y:"645.09",width:"3.67",height:"20.79",fill:"#47e6b1"}),React.createElement("rect",{x:"269.58",y:"712.31",width:"3.67",height:"20.79",transform:"translate(853.2 384.07) rotate(90)",fill:"#47e6b1"})),React.createElement("path",{d:"M699.44,75.56a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,699.44,75.56Z",transform:"translate(-140.93 -67.23)",fill:"#4d8af0",opacity:"0.5"}),React.createElement("path",{d:"M286.33,179.4a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,286.33,179.4Z",transform:"translate(-140.93 -67.23)",fill:"#fdd835",opacity:"0.5"}),React.createElement("path",{d:"M253.63,484.46a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,253.63,484.46Z",transform:"translate(-140.93 -67.23)",fill:"#fdd835",opacity:"0.5"}),React.createElement("circle",{cx:"337.81",cy:"28.62",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"7.34",cy:"317.46",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"863.76",cy:"120.36",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"822.17",cy:"339.3",r:"7.34",fill:"#4d8af0",opacity:"0.5"}),React.createElement("circle",{cx:"37.68",cy:"145.22",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("circle",{cx:"853.29",cy:"647.34",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("circle",{cx:"910.8",cy:"430.97",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("rect",{x:"544.42",y:"601.05",width:"186.48",height:"153.07",fill:"url(#fd8d88e0-7826-450d-9e0b-001d1be709c2)"}),React.createElement("path",{d:"M723.82,639a54.55,54.55,0,0,1,109.1,0v34.91h15.27V639a69.82,69.82,0,0,0-139.65,0v34.91h15.27Z",transform:"translate(-140.93 -67.23)",fill:"url(#8d1793c5-b76e-44e2-a52e-569460402331)"}),React.createElement("path",{d:"M726,638.25a52.37,52.37,0,1,1,104.74,0v33.52H845.4V638.25a67,67,0,0,0-134.06,0v33.52H726Z",transform:"translate(-140.93 -67.23)",fill:"#f5f5f5"}),React.createElement("rect",{x:"546.32",y:"602.45",width:"182.24",height:"148.73",fill:"#6c63ff"}),React.createElement("rect",{x:"546.32",y:"602.45",width:"182.24",height:"148.73",fill:"#f5f5f5"}),React.createElement("rect",{x:"546.32",y:"631.77",width:"182.24",height:"90.07",fill:"#6c63ff"}),React.createElement("path",{d:"M791.73,727a13.36,13.36,0,1,0-23.08,9.15v28.51a9.72,9.72,0,0,0,19.44,0V736.18A13.3,13.3,0,0,0,791.73,727Z",transform:"translate(-140.93 -67.23)",fill:"url(#4745700d-8097-45ff-9f71-625443fc4ad8)"}),React.createElement("path",{d:"M789.89,729.38a11.52,11.52,0,1,0-19.9,7.89v24.58a8.38,8.38,0,1,0,16.76,0V737.27A11.47,11.47,0,0,0,789.89,729.38Z",transform:"translate(-140.93 -67.23)",opacity:"0.2"}))},D=wp.i18n.__,P=wp.components,k=P.Flex,N=P.FlexItem,S=P.FlexBlock,F=function(){return React.createElement(k,{style:{padding:"30px",background:"#fff"}},React.createElement(N,null,React.createElement(_,{width:"250px"})),React.createElement(S,{style:{marginLeft:"20px"}},React.createElement("h1",null,D("Get detailed video insights.","presto-player")),React.createElement("p",null,D("Upgrade to Pro and get video insights like plays, watch-time, and drop off numbers.","presto-player")),React.createElement("a",{href:"https://prestoplayer.com",target:"_blank",className:"button button-primary"},D("Learn More","presto-player"))))},C=a(6),T=a(3),M=a.n(T);function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function B(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?I(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):I(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}wp.i18n.__;var V=wp.apiFetch,A=wp.element.useState,H=wp.compose.createHigherOrderComponent,G=function(){return H((function(e){return function(t){var a=A(!1),r=Object(n.a)(a,2),c=r[0],l=r[1],o=A(1),i=Object(n.a)(o,2),s=i[0],p=i[1],d=A(0),u=Object(n.a)(d,2),m=u[0],f=u[1],h=A(0),b=Object(n.a)(h,2),y=b[0],v=b[1],w=A([]),E=Object(n.a)(w,2),g=E[0],R=E[1],O=A(""),j=Object(n.a)(O,2),x=j[0],_=j[1],D=function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.endpoint,r=t.params,n=void 0===r?{}:r,l(!0),e.prev=2,e.next=5,V({path:wp.url.addQueryArgs(a,B({page:s,per_page:5},n)),parse:!1}).then((function(e){var t=e.headers?parseInt(e.headers.get("X-WP-Total")):0,a=e.headers?parseInt(e.headers.get("X-WP-TotalPages")):0;return f(t),v(a),e.json()}));case 5:c=e.sent,R(c),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.message&&_(e.t0.message);case 13:return e.prev=13,l(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement(e,Object.assign({loading:c,setLoading:l,fetchData:D,page:s,setPage:p,total:m,setTotal:f,totalPages:y,setTotalPages:v,data:g,setData:R,error:x,setError:_},t))}}),"withDataList")},U=wp.i18n,L=U.__,W=U.sprintf,Z=function(e){var t=(new Date).getTimezoneOffset();return new Date(e.getTime()-60*t*1e3).toISOString().split("T")[0]+"T00:00:00.000Z"},Y=wp.components,z=Y.Spinner,Q=Y.Flex,X=Y.FlexItem,q=function(e){var t=e.height,a=void 0===t?100:t;return React.createElement(Q,{style:{height:"".concat(a,"px")},align:"center",justify:"center"},React.createElement(X,null,React.createElement(z,null)))},J=wp.i18n.__,K=wp.components,$=K.Card,ee=K.CardBody,te=K.Flex,ae=K.FlexBlock,re=K.Button,ne=K.ButtonGroup,ce=wp.element,le=ce.useState,oe=ce.useEffect,ie=function(e){var t=e.page,a=e.setPage,r=e.perPage,c=e.total,l=e.totalPages,o=le(!1),i=Object(n.a)(o,2),s=i[0],p=i[1],d=le(!1),u=Object(n.a)(d,2),m=u[0],f=u[1],h=le(0),b=Object(n.a)(h,2),y=b[0],v=b[1],w=le(0),E=Object(n.a)(w,2),g=E[0],R=E[1];oe((function(){v(Math.min(r*t,c)),R(r*(t-1)+1)}),[r,t,c]);return oe((function(){p(t-1>0),f(l>=t+1)}),[t,l]),React.createElement($,{size:"large",className:"presto-card pagination"},React.createElement(ee,{className:"presto-flow"},React.createElement(te,null,React.createElement(ae,null,sprintf(J("Showing %1s to %2s of %3s","presto-player"),g,y,c)),React.createElement(ae,null,React.createElement(te,{justify:"flex-end"},React.createElement(ne,null,React.createElement(re,{isSecondary:!0,disabled:!s,onClick:function(){a(Math.max(t-1,0))}},J("Previous","presto-player")),React.createElement(re,{isSecondary:!0,disabled:!m,onClick:function(){a(Math.min(l,t+1))}},J("Next","presto-player"))))))))},se=wp.i18n.__,pe=wp.element,de=(pe.useRef,pe.useEffect,pe.useState,wp.components),ue=de.Card,me=de.CardBody,fe=(de.Flex,de.FlexBlock,de.Button,de.ButtonGroup,function(e){var t=e.columns,a=e.data,r=e.onRowClick,n=e.title;return a.length?React.createElement(ue,{size:"large",className:"presto-card table-card"},React.createElement(me,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},n),React.createElement("table",{role:"table",className:O()("presto-table",{"is-clickable":r})},React.createElement("thead",{role:"rowgroup"},React.createElement("tr",{role:"row"},t&&t.map((function(e){return React.createElement("th",{key:e.key,role:"columnheader"},e.label)})))),React.createElement("tbody",{role:"rowgroup"},a.map((function(e,a){return React.createElement("tr",{role:"row",key:"row-".concat(a),onClick:function(){return r&&r(e)}},t.map((function(t,r){return React.createElement("td",{role:"cell","data-title":t.label,key:"row-".concat(a,"-").concat(r),"aria-label":t.label},t.render?t.render(e):React.createElement("div",null,t.value(e)))})))})))))):React.createElement(ue,{size:"large",className:"presto-card table-card"},React.createElement(me,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},n),React.createElement("div",{style:{opacity:.65}},se("No data available.","presto-player"))))}),he=wp.i18n.__,be=wp.element,ye=(be.useEffect,be.useState,wp.components),ve=ye.Card,we=ye.CardBody,Ee=function(e){var t=e.perPage,a=void 0===t?10:t,r=e.title,n=e.page,c=e.setPage,l=e.loading,o=e.total,i=e.totalPages,s=e.columns,p=e.data,d=e.onSelect;return l?React.createElement(ve,null,React.createElement(q,null)):null!=p&&p.length?React.createElement("div",{className:"datatable"},React.createElement(fe,{data:p,columns:s,perPage:a,onRowClick:d,title:r}),!!o&&React.createElement(ie,{page:n,setPage:c,perPage:a,total:o,totalPages:i})):React.createElement(ve,{size:"large",className:"presto-card"},React.createElement(we,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},r),React.createElement("div",{style:{opacity:.65}},he("No data available.","presto-player"))))};function ge(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Re(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ge(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Oe=wp.i18n.__,je=wp.element.useEffect,xe=(0,wp.compose.compose)([G()])((function(e){var t=e.loading,a=e.page,r=e.setPage,n=e.total,c=e.totalPages,l=e.data,o=e.error,i=e.fetchData,s=e.startDate,p=e.endDate;je((function(){i({endpoint:"/presto-player/v1/analytics/top-users",params:Re(Re({per_page:5},s?{start:Z(s)}:{}),p?{end:Z(p)}:{})})}),[a,s,p]);var d=[{key:"name",label:Oe("Name","presto-player"),value:function(e){var t;return null==e||null===(t=e.user)||void 0===t?void 0:t.name}},{key:"total_view",label:Oe("Total View","presto-player"),value:function(e){var t,a;return null==e||null===(t=e.stats)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.data}},{key:"avg_view_time",label:Oe("Avg View Time","presto-player"),render:function(e){var t,a;return React.createElement("div",{className:"presto-badge"},null==e||null===(t=e.stats)||void 0===t||null===(a=t[1])||void 0===a?void 0:a.data)}}];return o?{error:o}:React.createElement(Ee,{title:Oe("Top Users","presto-player"),page:a,perPage:5,setPage:r,loading:t,total:n,totalPages:c,columns:d,data:l,onSelect:function(e){var t,a;return a=null==e||null===(t=e.user)||void 0===t?void 0:t.id,void b.push("#/user/".concat(a))}})}));function _e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function De(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):_e(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Pe=wp.i18n.__,ke=wp.element.useEffect,Ne=(0,wp.compose.compose)([G()])((function(e){var t=e.loading,a=e.page,r=e.setPage,n=e.total,c=e.totalPages,l=e.data,o=e.error,i=e.fetchData,s=e.startDate,p=e.endDate,d=e.userId;ke((function(){i({endpoint:"/presto-player/v1/analytics/top-videos",params:De(De(De({per_page:10},s?{start:Z(s)}:{}),p?{end:Z(p)}:{}),d?{user_id:d}:{})})}),[a,s,p]);var u=[{key:"name",label:Pe("Name","presto-player"),render:function(e){return React.createElement("h3",{style:{marginBottom:0,wordBreak:"break-all"}},e.video.title?e.video.title:Pe("Untitled","presto-player"))}},{key:"total_view",label:Pe("Total View","presto-player"),value:function(e){return e.stats[0].data}},{key:"avg_view_time",label:Pe("Avg View Time","presto-player"),render:function(e){return React.createElement("div",{className:"presto-badge"},e.stats[1].data)}},{key:"view_more",label:"",render:function(e){return React.createElement("span",{style:{color:"var(--wp-admin-theme-color, #007cba)"}},Pe("View Details","presto-player")," →")}}];return o?{error:o}:React.createElement(Ee,{title:Pe("Top Videos","presto-player"),perPage:10,page:a,setPage:r,loading:t,total:n,totalPages:c,columns:u,data:l,onSelect:function(e){var t,a;a=null==e||null===(t=e.video)||void 0===t?void 0:t.id,b.push("#/video/".concat(a))}})})),Se=wp.apiFetch;Se.use(Se.createNonceMiddleware(prestoPlayer.nonce)),Se.use(Se.createRootURLMiddleware(prestoPlayer.root+prestoPlayer.prestoVersionString));var Fe=Se,Ce=a(11),Te=a.n(Ce);function Me(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Ie(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Me(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Be=wp.i18n,Ve=Be.__,Ae=Be.sprintf,He=wp.components,Ge=(He.Card,He.CardBody),Ue=wp.element,Le=Ue.useState,We=Ue.useEffect,Ze=(Ue.useRef,function(e){var t=Le(!0),a=Object(n.a)(t,2),r=a[0],c=a[1],l=Le(0),o=Object(n.a)(l,2),i=o[0],s=o[1],p=e.startDate,d=e.endDate,u=Le([{name:"Views",data:[]}]),m=Object(n.a)(u,2),f=m[0],h=m[1],b={options:{chart:{toolbar:{show:!1}},yaxis:{min:0,labels:{formatter:function(e){return e<1?0:Math.abs(e)>999?Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)+"k":Math.sign(e)*Math.abs(e).toFixed(0)}}},colors:["#7c3aed"],xaxis:{type:"datetime",min:new Date(p).setHours(0,0,0,0),max:new Date(d).setHours(23,59,59,999)},dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};We((function(){y()}),[e]);var y=function(){c(!0),Fe({path:"/presto-player/v1/analytics/views?"+jQuery.param(Ie(Ie({},p?{start:Z(p)}:{}),d?{end:Z(d)}:{})),parse:!1}).then(function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(t.headers&&t.headers.get("X-WP-Total")),e.next=3,t.json();case 3:a=e.sent,r=[],a.length&&a.forEach((function(e){r.push({x:e.date_time,y:e.total})})),h([{name:"Views",data:r}]);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e)})).finally((function(){c(!1)}))};return r?React.createElement(Ge,null,React.createElement(q,null)):React.createElement(Ge,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},Ae(Ve("%d Unique Views","presto-player"),i)),React.createElement(Te.a,{options:b.options,series:f,type:"area",height:280}))}),Ye=wp.i18n,ze=Ye.__,Qe=Ye.sprintf,Xe=wp.components,qe=(Xe.Card,Xe.CardBody),Je=wp.element,Ke=Je.useState,$e=Je.useEffect,et=(Je.useRef,function(e){var t=Ke(!0),a=Object(n.a)(t,2),r=a[0],c=a[1],l=Ke(0),o=Object(n.a)(l,2),i=o[0],s=o[1],p=e.startDate,d=e.endDate,u=Ke([{name:"Views",data:[]}]),m=Object(n.a)(u,2),f=m[0],h=m[1],b={options:{chart:{toolbar:{show:!1}},yaxis:{labels:{formatter:function(e){return Math.abs(e)>999?Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)+"k min":(Math.sign(e)*Math.abs(e)).toFixed(1)+"min"}}},colors:["#7c3aed"],xaxis:{type:"datetime",min:new Date(p).setHours(0,0,0,0),max:new Date(d).setHours(23,59,59,999)},dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};$e((function(){R()}),[e]);var y,v,w,E,g,R=function(){c(!0),Fe({path:"/presto-player/v1/analytics/watch-time?"+jQuery.param({start:Z(p),end:Z(d)}),parse:!1}).then(function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:a=e.sent,r=a.data,n=a.average,s(parseFloat(n)),c=[],r.length&&r.forEach((function(e){c.push({x:e.date_time,y:(e.total/60).toFixed(2)})})),h([{name:"Watch Time",data:c}]);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e)})).finally((function(){c(!1)}))};return r?React.createElement(qe,null,React.createElement(q,null)):React.createElement(qe,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},Qe(ze("%s average watch time","presto-player"),(y=i,v=Math.floor(y/60/60),w=Math.floor(y/60)-60*v,E=y%60,g="",v&&(g+=W(L("%d hours","presto-player"),v)+", "),w&&(g+=W(L("%d minutes","presto-player"),w)+" "),(v||w)&&E&&(g+=L("and","presto-player")+" "),g+=W(L("%d seconds","presto-player"),E)))),React.createElement(Te.a,{options:b.options,series:f,type:"area",height:280}))}),tt=wp.i18n.__,at=wp.components,rt=at.Panel,nt=at.TabPanel,ct=function(e){var t=e.startDate,a=e.endDate;return React.createElement(rt,null,React.createElement(nt,{className:"presto-module-tabs",onSelect:function(){},tabs:[{name:"views",title:tt("Views","presto-player")},{name:"watch",title:tt("Watch Time","presto-player")}]},(function(e){switch(e.name){case"views":return React.createElement(Ze,{startDate:t,endDate:a});case"watch":return React.createElement(et,{startDate:t,endDate:a});default:return React.createElement(React.Fragment,null,"Not Found")}})))},lt=a(30),ot=a.n(lt),it=(a(44),wp.i18n.__),st=wp.element,pt=st.useRef,dt=st.useEffect,ut=st.useState,mt=function(e){var t=e.startDate,a=e.setStartDate,r=e.endDate,c=e.setEndDate,l=pt(),o=ut(25),i=Object(n.a)(o,2),s=i[0],p=i[1];return dt((function(){new ot.a({element:null==l?void 0:l.current,singleMode:!1,format:"MMMM D YYYY",autoApply:!1,plugins:["ranges"],maxDate:new Date,numberOfMonths:2,buttonText:{apply:it("Apply","presto-player"),cancel:it("Cancel","presto-player")},dropdowns:{minYear:1990,maxYear:null,months:!0,years:!0},setup:function(e){e.setDateRange(t,r),e.on("button:apply",(function(e,t){a(e.dateInstance),c(t.dateInstance),p(l.current.value.length)}))}})}),[l]),React.createElement("div",{className:"component-base-control"},React.createElement("div",{className:"components-base-control__field"},React.createElement("input",{className:"components-text-control__input presto-settings__date-select",ref:l,size:s})))},ft=wp.i18n.__,ht=wp.components,bt=ht.Flex,yt=ht.FlexBlock,vt=ht.FlexItem,wt=(wp.element.useState,function(e){var t=e.startDate,a=e.endDate,r=e.setStartDate,n=e.setEndDate;return React.createElement(React.Fragment,null,React.createElement(bt,null,React.createElement(yt,null,React.createElement("h1",null,ft("Analytics","presto-player"))),React.createElement(vt,null,React.createElement(mt,{startDate:t,setStartDate:r,endDate:a,setEndDate:n}))),React.createElement("div",{className:"presto-flow"},React.createElement("div",{className:"presto-dashboard"},React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ct,{startDate:t,endDate:a})),React.createElement("div",{className:"presto-dashboard__item"},React.createElement(xe,{startDate:t,endDate:a}))),React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(Ne,{startDate:t,endDate:a}))))))}),Et=a(18),gt=wp.components,Rt=gt.Card,Ot=gt.CardBody,jt=function(e){var t=e.loading,a=e.title,r=e.value,n=e.label;return t?React.createElement(Rt,null,React.createElement(Ot,null,React.createElement(q,null))):React.createElement(Rt,{className:"presto-player__stat-card"},React.createElement(Ot,null,React.createElement("div",{className:"presto-subtitle"},a),React.createElement("h1",null,r),React.createElement("div",null,n)))};function xt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function _t(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):xt(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Dt,Pt,kt,Nt=wp.apiFetch,St=wp.element.useState,Ft=wp.compose.createHigherOrderComponent,Ct=function(){return Ft((function(e){return function(t){var a=St(!1),r=Object(n.a)(a,2),c=r[0],l=r[1],o=St([]),i=Object(n.a)(o,2),s=i[0],p=i[1],d=St(""),u=Object(n.a)(d,2),m=u[0],f=u[1],h=function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.endpoint,r=t.params,n=void 0===r?{}:r,l(!0),e.prev=2,e.next=5,Nt({path:wp.url.addQueryArgs(a,_t({},n))});case 5:c=e.sent,p(c),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.message&&f(e.t0.message);case 13:return e.prev=13,l(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement(e,Object.assign({loading:c,setLoading:l,fetchData:h,stat:s,setStat:p,error:m,setError:f},t))}}),"withStat")},Tt=wp.i18n.__,Mt=wp.compose.compose,It=wp.element.useEffect,Bt=Mt([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return It((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/total-views"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(null==n?void 0:n.view),title:Tt("Total Views","presto-player")})})),Vt=wp.i18n.__,At=wp.compose.compose,Ht=wp.element.useEffect,Gt=At([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Ht((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/average-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseFloat(null==n?void 0:n.view).toFixed(2),title:Vt("Average Watch Time","presto-player"),label:Vt("seconds","presto-player")})})),Ut=wp.i18n.__,Lt=wp.compose.compose,Wt=wp.element.useEffect,Zt=Lt([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Wt((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/total-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseFloat(null==n?void 0:n.view).toFixed(2),title:Ut("Total Watch Time","presto-player"),label:Ut("seconds","presto-player")})})),Yt=a(2),zt=wp.i18n.__,Qt=wp.components,Xt=Qt.Flex,qt=Qt.FlexBlock,Jt=Qt.FlexItem,Kt=Qt.Spinner,$t=Qt.Button,ea=wp.element,ta=ea.useEffect,aa=ea.useState,ra=wp.apiFetch,na=function(e){var t,a,r,c,l=e.route,o=e.startDate,i=e.endDate,s=e.setStartDate,p=e.setEndDate,d=aa(!0),u=Object(n.a)(d,2),m=u[0],f=u[1],h=aa({}),y=Object(n.a)(h,2),v=y[0],w=y[1],E=aa(""),g=Object(n.a)(E,2),R=g[0],O=g[1],j=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.prev=1,e.next=4,ra({url:"/wp-json/wp/v2/users/".concat(null==l||null===(t=l.params)||void 0===t?void 0:t.id,"?context=edit")});case 4:a=e.sent,w(a),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),"rest_no_route"===e.t0.code&&O("User Not Found");case 11:return e.prev=11,f(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])})));return function(){return e.apply(this,arguments)}}();return ta((function(){j()}),[]),R?Object(Yt.b)("div",{className:"presto-flow"},Object(Yt.b)(Xt,null,Object(Yt.b)(qt,null,Object(Yt.b)("h2",null,R)))):Object(Yt.b)("div",{className:"presto-flow"},Object(Yt.b)(Xt,null,Object(Yt.b)(qt,null,Object(Yt.b)($t,{isSecondary:!0,onClick:function(){b.push("#/")}},"← ",zt("Back to Dashboard","presto-player")))),Object(Yt.b)(Xt,{wrap:!0},Object(Yt.b)(qt,null,m?Object(Yt.b)(Kt,null):Object(Yt.b)("div",{css:Object(Yt.a)(Dt||(Dt=Object(Et.a)(["\n display: flex;\n align-items: center;\n\n .presto__edit-user-button {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease;\n }\n\n &:hover {\n .presto__edit-user-button {\n opacity: 1;\n visibility: visible;\n }\n }\n "])))},Object(Yt.b)("div",null,Object(Yt.b)("h1",{className:"presto-dashboard__title"},null==v?void 0:v.name),Object(Yt.b)("p",{css:Object(Yt.a)(Pt||(Pt=Object(Et.a)(["\n margin-top: -10px;\n opacity: 0.65;\n "])))},null==v?void 0:v.email)),!!v.id&&Object(Yt.b)("div",{className:"presto__edit-user-button",css:Object(Yt.a)(kt||(kt=Object(Et.a)(["\n margin: 0 20px;\n "])))},Object(Yt.b)($t,{href:"/wp-admin/user-edit.php?user_id=".concat(null==v?void 0:v.id),isSecondary:!0,isSmall:!0},zt("View Profile","presto-player")," →")))),Object(Yt.b)(Jt,null,Object(Yt.b)(mt,{startDate:o,setStartDate:s,endDate:i,setEndDate:p}))),Object(Yt.b)("div",{className:"presto-dashboard presto-flow"},Object(Yt.b)("div",{className:"presto-dashboard__row"},Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Bt,{userId:null==l||null===(t=l.params)||void 0===t?void 0:t.id,startDate:o,endDate:i})),Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Gt,{userId:null==l||null===(a=l.params)||void 0===a?void 0:a.id,startDate:o,endDate:i})),Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Zt,{userId:null==l||null===(r=l.params)||void 0===r?void 0:r.id,startDate:o,endDate:i}))),Object(Yt.b)("div",{className:"presto-dashboard__row"},Object(Yt.b)("div",{className:"presto-dashboard__item is-large"},Object(Yt.b)(Ne,{startDate:o,endDate:i,userId:null==l||null===(c=l.params)||void 0===c?void 0:c.id})))))},ca=wp.i18n.__,la=wp.compose.compose,oa=wp.element.useEffect,ia=la([Ct()])((function(e){var t=e.video_id,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return oa((function(){c({endpoint:"/presto-player/v1/analytics/video/".concat(t,"/average-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(n),title:ca("Average Watch Time","presto-player"),label:ca("seconds","presto-player")})})),sa=wp.i18n,pa=sa.__,da=(sa.sprintf,wp.components),ua=da.Card,ma=da.CardBody,fa=wp.element,ha=fa.useState,ba=fa.useEffect,ya=(fa.useRef,function(e){var t=e.video_id,a=e.startDate,r=e.endDate,c=ha(!0),l=Object(n.a)(c,2),o=l[0],i=l[1],s=ha([{name:"Views",data:[]}]),p=Object(n.a)(s,2),d=p[0],u=p[1];ba((function(){i(!0),Fe({path:wp.url.addQueryArgs("/presto-player/v1/analytics/video/".concat(t,"/timeline"),{start:Z(a),end:Z(r)})}).then((function(e){var t=[];e.length&&e.forEach((function(e){t.push({x:e.watch_time,y:e.total})})),u([{name:"Viewers",data:t}])})).catch((function(e){console.error(e)})).finally((function(){i(!1)}))}),[a,r]);var m={options:{chart:{toolbar:{show:!1}},tickAmount:1,yaxis:{labels:{formatter:function(e){return parseInt(e)}}},xaxis:{labels:{formatter:function(e){return t=e,t=1e3*parseInt(t||0),new Date(t).toISOString().substr(11,8);var t}}},colors:["#7c3aed"],dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};return o?React.createElement(ua,null,React.createElement(ma,null,React.createElement(q,null))):React.createElement(ua,null,React.createElement(ma,null,React.createElement("div",{className:"presto-card__title"},pa("Audience Retention","presto-player")),React.createElement(Te.a,{options:m.options,series:d,type:"area",height:280})))}),va=wp.i18n.__,wa=wp.compose.compose,Ea=wp.element.useEffect,ga=wa([Ct()])((function(e){var t=e.video_id,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Ea((function(){c({endpoint:"/presto-player/v1/analytics/video/".concat(t,"/views"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(n),title:va("Unique Views","presto-player")})})),Ra=a(31);function Oa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function ja(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Oa(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var xa=wp.data.useSelect,_a=function(e){var t,a,r,n=e.src,c=e.preset,l=e.branding,o=e.attributes,i=e.adminPreview,s=e.type,p=o.chapters,d=o.mutedOverlay,u=o.mutedPreview,m=xa((function(e){var t;return null===(t=e("presto-player/player"))||void 0===t?void 0:t.youtube()})),f=xa((function(e){var t;return null===(t=e("presto-player/player"))||void 0===t?void 0:t.playerCSS()}));return React.createElement("div",{className:"wp-block-video presto-block-video",style:ja(ja(ja({"--presto-player-border-radius":"".concat(null==c?void 0:c.border_radius,"px")},null!=c&&c.caption_background?{"--plyr-captions-background":c.caption_background}:{}),null!=l&&l.color?{"--plyr-color-main":l.color}:{}),{},{"--presto-player-email-border-radius":"".concat((null==c||null===(t=c.email_collection)||void 0===t?void 0:t.border_radius)||0,"px"),"--presto-player-logo-width":"".concat((null==l?void 0:l.logo_width)||75,"px")})},React.createElement(Ra.a,{src:n,css:f,isAdmin:!0,preload:"metadata",preset:c,bunny:{thumbnail:null==o?void 0:o.previewThumbnail,preview:null==o?void 0:o.preview},youtube:{channelId:null==m?void 0:m.channel_id},tracks:!(null==c||!c.captions)&&[{kind:"captions",label:"English",srclang:"en",src:"/path/to/captions.en.vtt",default:!0}],branding:l,chapters:p,blockAttributes:o,poster:o.poster,provider:s},React.createElement("div",{slot:"player-end"},(null==u?void 0:u.enabled)&&(null==d?void 0:d.enabled)&&React.createElement("div",{className:"presto-player__overlay is-image",style:{position:"absolute",width:"".concat((null==d?void 0:d.width)||100,"%"),left:"".concat(100*((null==d||null===(a=d.focalPoint)||void 0===a?void 0:a.x)||.5),"%"),top:"".concat(100*((null==d||null===(r=d.focalPoint)||void 0===r?void 0:r.y)||.5),"%")}},React.createElement("img",{src:null==d?void 0:d.src,style:{transform:"translateX(-50%) translateY(-50%)"}})),i)))};function Da(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Pa(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Da(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ka=wp.i18n.__,Na=wp.components,Sa=Na.Flex,Fa=Na.FlexBlock,Ca=Na.FlexItem,Ta=Na.Spinner,Ma=Na.Button,Ia=Na.TextControl,Ba=wp.element,Va=Ba.useEffect,Aa=Ba.useState,Ha=wp.apiFetch,Ga=function(e){var t,a,r,c=e.route,l=e.startDate,o=e.endDate,i=e.setStartDate,s=e.setEndDate,p=Aa(!0),d=Object(n.a)(p,2),u=d[0],m=d[1],f=Aa({}),h=Object(n.a)(f,2),y=h[0],v=h[1],w=Aa(""),E=Object(n.a)(w,2),g=E[0],R=E[1],O=Aa(null),j=Object(n.a)(O,2),x=j[0],_=j[1],D=Aa(!1),P=Object(n.a)(D,2),k=P[0],N=P[1],S=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a,r,n;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.prev=1,e.next=4,Ha({url:"".concat(null===(t=prestoPlayer)||void 0===t?void 0:t.root).concat(null===(a=prestoPlayer)||void 0===a?void 0:a.prestoVersionString,"videos/").concat(null==c||null===(r=c.params)||void 0===r?void 0:r.id)});case 4:n=e.sent,v(n),_(null==n?void 0:n.title),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),"rest_no_route"===e.t0.code&&R("Video Not Found");case 12:return e.prev=12,m(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("New Video title ".concat(x)),m(!0),e.prev=2,t=Pa(Pa({},y),{title:x}),e.next=6,wp.apiFetch({method:"POST",url:wp.url.addQueryArgs("".concat(prestoPlayer.root).concat(prestoPlayer.prestoVersionString,"videos/").concat(y.id),{_method:"PUT"}),data:t});case 6:if(a=e.sent){e.next=9;break}throw genericError;case 9:N(!1),v(a),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),R(null!==e.t0&&void 0!==e.t0&&e.t0.message?e.t0.message:genericError);case 16:return e.prev=16,m(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})));return function(){return e.apply(this,arguments)}}(),T=function(){_(null==y?void 0:y.title),N(!1)};return Va((function(){S()}),[]),g?React.createElement("div",{className:"presto-flow"},React.createElement(Sa,null,React.createElement(Fa,null,React.createElement("h2",null,g)))):React.createElement("div",{className:"presto-flow"},React.createElement(Sa,null,React.createElement(Fa,null,React.createElement(Ma,{isSecondary:!0,onClick:function(){b.push("#/")}},"← ",ka("Back to Dashboard","presto-player")))),React.createElement(Sa,{wrap:!0},React.createElement(Fa,null,u?React.createElement(Ta,null):k?React.createElement("div",{className:"presto-inline-edit presto-inline-edit--editing"},React.createElement(Ia,{className:"presto-inline-edit__input",type:"text",value:x,onChange:function(e){return _(e)}}),React.createElement(Ma,{className:"presto-inline-edit__button",isPrimary:!0,onClick:F}," ","Save"," "),React.createElement(Ma,{className:"presto-inline-edit__button",isSecondary:!0,onClick:T}," ","Cancel"," ")):React.createElement("div",{className:"presto-inline-edit"},React.createElement("h1",{className:"presto-dashboard__title presto-inline-edit__text"},null==y?void 0:y.title),React.createElement("button",{className:"presto-inline-edit__edit",onClick:function(){return N(!0)}},React.createElement("span",{className:"dashicon dashicons dashicons-edit"})))),React.createElement(Ca,null,React.createElement(mt,{startDate:l,setStartDate:i,endDate:o,setEndDate:s}))),React.createElement("div",{className:"presto-dashboard presto-flow"},React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ga,{video_id:null==c||null===(t=c.params)||void 0===t?void 0:t.id,startDate:l,endDate:o})),React.createElement("div",{className:"presto-dashboard__item"},!!Object.keys(y||{}).length&&React.createElement(_a,{src:null==y?void 0:y.src,attributes:{},type:null==y?void 0:y.type,preset:{"play-large":!0,play:!0,progress:!0,"current-time":!0}})),React.createElement("div",{className:"presto-dashboard__item"},React.createElement(ia,{video_id:null==c||null===(a=c.params)||void 0===a?void 0:a.id,startDate:l,endDate:o}))),React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ya,{video_id:null==c||null===(r=c.params)||void 0===r?void 0:r.id,startDate:l,endDate:o})))))},Ua={dashboard:{path:"/"},video:{path:"/video/:id"},user:{path:"/user/:id"}},La=wp.element.useState,Wa=function(){var e,t=function(){window.scrollTo(0,0)},a=La(new Date(Date.now()-6048e5)),r=Object(n.a)(a,2),c=r[0],l=r[1],o=La(new Date),i=Object(n.a)(o,2),s=i[0],p=i[1];return null!==(e=prestoPlayer)&&void 0!==e&&e.isPremium?React.createElement("div",{className:"presto-dashboard__content"},React.createElement(x,{routes:Ua},React.createElement(g,{path:Ua.dashboard.path,onRoute:t},React.createElement(wt,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})),React.createElement(g,{path:Ua.video.path,onRoute:t},React.createElement(Ga,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})),React.createElement(g,{path:Ua.user.path,onRoute:t},React.createElement(na,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})))):React.createElement("div",{className:"presto-dashboard__content"},React.createElement(F,null))},Za=wp.element.render;Object(r.c)(),Za(React.createElement(Wa,null),document.getElementById("presto-analytics-page"))}},[[33,2,3]]]);
|
19 |
+
//# sourceMappingURL=admin-5fb77cbc.js.map
|
dist/analytics/admin-5fb77cbc.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./node_modules/@presto-player/components/node_modules/@stencil/core/internal/client lazy ^\\.\\/.*$ include: \\.entry\\.js$ exclude: \\.system\\.entry\\.js$ namespace object","webpack:///./src/router/utils.js","webpack:///./src/router/context.js","webpack:///./src/router/route.js","webpack:///./src/router/link.js","webpack:///./src/router/index.js","webpack:///./src/admin/analytics/pages/illustration.js","webpack:///./src/admin/analytics/pages/AnalyticsUpgrade.js","webpack:///./src/admin/analytics/hocs/withDataList.js","webpack:///./src/admin/analytics/util.js","webpack:///./src/admin/settings/components/Loading.js","webpack:///./src/admin/ui/Pagination.js","webpack:///./src/admin/ui/Table.js","webpack:///./src/admin/analytics/components/DataTable.js","webpack:///./src/admin/analytics/components/TopUsers.js","webpack:///./src/admin/analytics/components/TopVideos.js","webpack:///./src/shared/services/fetch.js","webpack:///./src/admin/analytics/components/TotalViewsGraph.js","webpack:///./src/admin/analytics/components/TotalWatchGraph.js","webpack:///./src/admin/analytics/components/OverviewPanel.js","webpack:///./src/admin/analytics/components/DatePicker.js","webpack:///./src/admin/analytics/pages/Dashboard.js","webpack:///./src/admin/ui/StatCard.js","webpack:///./src/admin/analytics/hocs/withStat.js","webpack:///./src/admin/analytics/components/TotalVideoViewsByUser.js","webpack:///./src/admin/analytics/components/VideoAverageWatchTimeByUser.js","webpack:///./src/admin/analytics/components/VideoTotalWatchTimeByUser.js","webpack:///./src/admin/analytics/pages/User.js","webpack:///./src/admin/analytics/components/VideoAverageWatchTime.js","webpack:///./src/admin/analytics/components/VideoTimeline.js","webpack:///./src/admin/analytics/components/VideoViews.js","webpack:///./src/admin/blocks/shared/Player.js","webpack:///./src/admin/analytics/pages/Video.js","webpack:///./src/admin/analytics/routes.js","webpack:///./src/admin/analytics/App.js","webpack:///./src/admin/analytics/index.js"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","module","exports","id","locationToRoute","location","path","pathname","hash","query","qs","parse","search","history","createBrowserHistory","RouterContext","wp","element","createContext","route","useContext","prev","Route","onRoute","children","matched","match","checkMatch","substr","cloneElement","Router","props","setState","routes","Object","map","key","unlisten","listen","handleRouteChange","state","defaultRoute","this","NotFound","push","forEach","name","isMatched","data","routerContextValue","is404","Provider","value","Component","width","height","data-name","xmlns","xmlnsXlink","viewBox","x1","y1","x2","y2","gradientUnits","offset","stop-color","stop-opacity","xlinkHref","transform","x","y","fill","gradientTransform","opacity","clip-path","points","cx","cy","r","d","__","i18n","components","Flex","FlexItem","FlexBlock","style","padding","background","marginLeft","href","target","className","apiFetch","useState","createHigherOrderComponent","compose","WrappedComponent","loading","setLoading","page","setPage","total","setTotal","totalPages","setTotalPages","setData","error","setError","fetchData","a","endpoint","params","url","addQueryArgs","per_page","res","headers","parseInt","get","json","responseData","console","message","sprintf","convertDateTimeToAbsoluteDate","dateTime","Date","getTimezoneOffset","getTime","toISOString","split","Spinner","align","justify","Card","CardBody","Button","ButtonGroup","useEffect","perPage","hasPrevious","setHasPrevious","hasNext","setHasNext","end","setEnd","start","setStart","Math","min","size","isSecondary","disabled","onClick","max","useRef","columns","onRowClick","title","length","role","classNames","column","label","row","rowIndex","columnIndex","data-title","aria-label","render","onSelect","Loading","Table","Pagination","withDataList","startDate","endDate","user","stats","DataTable","userId","user_id","marginBottom","wordBreak","video","color","use","createNonceMiddleware","prestoPlayer","nonce","createRootURLMiddleware","root","prestoVersionString","totalViews","setTotalViews","series","setSeries","chart","options","toolbar","show","yaxis","labels","formatter","num","abs","sign","toFixed","colors","xaxis","type","setHours","dataLabels","enabled","stroke","curve","gradient","shadeIntensity","opacityFrom","opacityTo","stops","fetchViews","jQuery","param","item","date_time","catch","finally","averageTime","setAverageTime","fetchMinutes","savedSeconds","hours","minutes","seconds","out","average","parseFloat","floor","Panel","TabPanel","tabs","tab","TotalViewsGraph","TotalWatchGraph","setStartDate","setEndDate","dateRef","inputSize","setInputSize","Litepicker","current","singleMode","format","autoApply","plugins","maxDate","numberOfMonths","buttonText","apply","cancel","dropdowns","minYear","maxYear","months","years","setup","picker","setDateRange","on","dateInstance","ref","DatePicker","OverviewPanel","TopUsers","TopVideos","stat","setStat","withStat","StatCard","view","User","setUser","getUser","wrap","css","email","isSmall","TotalVideoViewsByUser","VideoAverageWatchTimeByUser","VideoTotalWatchTimeByUser","video_id","watch_time","tickAmount","useSelect","src","preset","branding","attributes","adminPreview","chapters","mutedOverlay","mutedPreview","youtube","select","playerCSS","border_radius","caption_background","email_collection","logo_width","isAdmin","preload","bunny","thumbnail","previewThumbnail","preview","channelId","channel_id","tracks","captions","kind","srclang","default","blockAttributes","poster","provider","slot","position","left","focalPoint","top","TextControl","Video","setVideo","thisName","setThisName","editing","setEditing","getVideo","putVideo","log","method","_method","saved","genericError","cancelEditing","onChange","isPrimary","VideoViews","Player","play","progress","VideoAverageWatchTime","VideoTimeline","dashboard","scrollToTop","window","scrollTo","now","isPremium","Dashboard","AnalyticsUpgrade","defineCustomElements","App","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;8JAAA,SAASA,EAAyBC,GAGjC,OAAOC,QAAQC,UAAUC,MAAK,WAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBL,EAAM,KAEjD,MADAI,EAAEE,KAAO,mBACHF,KAGRL,EAAyBQ,KAAO,WAAa,MAAO,IACpDR,EAAyBG,QAAUH,EACnCS,EAAOC,QAAUV,EACjBA,EAAyBW,GAAK,I,kICXvB,SAASC,EAAgBC,GAE9B,MAAO,CACLC,KAAMD,EAASE,SACfC,KAAMH,EAASG,KACfC,MAAOC,IAAGC,MAAMN,EAASO,S,YCHhBC,EAAUC,cACVC,EAAgBC,GAAGC,Q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AAQ,SADxB,mBAAOvL,EAAP,KAAkBsE,EAAlB,KAGA,EAA8BxJ,GAAS,IAAIiC,MAA3C,mBAAOkD,EAAP,KAAgBsE,EAAhB,KAEA,OAAI,UAAC1D,oBAAD,OAAC,EAAc2K,UASjB,2BAAK5Q,UAAU,6BACb,oBAAC,EAAD,CAAQ5D,OAAQA,IACd,oBAACX,EAAD,CAAOhB,KAAM2B,GAAOmU,UAAU9V,KAAMiB,QAAS8U,GAC3C,oBAACK,GAAD,CACEzL,UAAWA,EACXC,QAASA,EACTqE,aAAcA,EACdC,WAAYA,KAGhB,oBAAClO,EAAD,CAAOhB,KAAM2B,GAAOyJ,MAAMpL,KAAMiB,QAAS8U,GACvC,oBAAC,GAAD,CACEpL,UAAWA,EACXC,QAASA,EACTqE,aAAcA,EACdC,WAAYA,KAGhB,oBAAClO,EAAD,CAAOhB,KAAM2B,GAAOkJ,KAAK7K,KAAMiB,QAAS8U,GACtC,oBAAC,GAAD,CACEpL,UAAWA,EACXC,QAASA,EACTqE,aAAcA,EACdC,WAAYA,OA9BlB,2BAAK3J,UAAU,6BACb,oBAAC8Q,EAAD,QCxBAhM,GAAW3J,GAAGC,QAAd0J,OAIRiM,cAeAjM,GAAO,oBAACkM,GAAD,MAASC,SAASC,eAAe,4B","file":"analytics/admin-5fb77cbc.js","sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 36;","import qs from \"querystringify\";\nexport function locationToRoute(location) {\n // location comes from the history package\n return {\n path: location.pathname,\n hash: location.hash,\n query: qs.parse(location.search),\n };\n}\n","import { createBrowserHistory } from \"history\";\nimport { locationToRoute } from \"./utils\";\n\nexport const history = createBrowserHistory();\nexport const RouterContext = wp.element.createContext({\n route: locationToRoute(history.location),\n});\n","import { RouterContext } from \"./context\";\nconst { useContext } = wp.element;\nimport { match } from \"path-to-regexp\";\nlet prev = \"\";\n\nexport function Route({ path, onRoute, children }) {\n // Extract route from RouterContext\n const { route } = useContext(RouterContext);\n\n const checkMatch = match(`${path}`);\n const matched = checkMatch(`${route.hash.substr(1)}`);\n\n if (!matched) {\n return null;\n }\n\n if (onRoute) {\n if (prev !== matched.path) {\n onRoute();\n }\n prev = matched.path;\n }\n\n return <div>{wp.element.cloneElement(children, { route: matched })}</div>;\n}\n","const { useContext } = wp.element;\nimport { RouterContext, history } from \"./context\";\nimport classNames from \"classnames\";\nimport { match } from \"path-to-regexp\";\n\nexport function Link(props) {\n const { to, onClick, children, activeClassName } = props;\n const { route } = useContext(RouterContext);\n\n let state = { ...props };\n delete state.activeClassName;\n\n const isActive = () => {\n const checkMatch = match(`${to}`);\n return checkMatch(`${route.hash.substr(1)}`);\n };\n\n const handleClick = (e) => {\n e.preventDefault();\n // Dont' navigate if current path\n if (route.path === to) {\n return;\n }\n // Trigger onClick prop manually\n if (onClick) {\n onClick(e);\n }\n // Use history API to navigate page\n history.push(`#${to}`);\n };\n\n return (\n <a\n {...state}\n className={classNames({ [activeClassName]: isActive() }, props.className)}\n onClick={handleClick}\n >\n {children}\n </a>\n );\n}\n","const { Component } = wp.element;\nimport { locationToRoute } from \"./utils\";\nimport { history, RouterContext } from \"./context\";\nimport { Route } from \"./route\";\nimport { Link } from \"./link\";\nimport { match } from \"path-to-regexp\";\n\nclass Router extends Component {\n constructor(props) {\n super(props);\n\n // Convert our routes into an array for easy 404 checking\n this.routes = Object.keys(props.routes).map(\n (key) => props.routes[key].path\n );\n\n // Listen for path changes from the history API\n this.unlisten = history.listen(this.handleRouteChange);\n\n const route = locationToRoute(history.location);\n\n // Define the initial RouterContext value\n this.state = {\n route,\n defaultRoute: props?.defaultRoute ? `#${props?.defaultRoute}` : \"#/\",\n };\n }\n\n componentWillUnmount() {\n // Stop listening for changes if the Router component unmounts\n this.unlisten();\n }\n\n handleRouteChange = (location) => {\n const route = locationToRoute(location?.location);\n this.setState({ route: route });\n };\n\n render() {\n // Define our variables\n const { children, NotFound } = this.props;\n const { route, defaultRoute } = this.state;\n\n if (!route.hash) {\n history.push(defaultRoute);\n return <div></div>;\n }\n\n let matched = false;\n // match route\n (this.routes || []).forEach((name) => {\n const checkMatch = match(route.hash.substr(1));\n const isMatched = checkMatch(`${route.hash.substr(1)}`);\n if (!isMatched) {\n return;\n }\n matched = {\n name,\n data: isMatched,\n };\n });\n\n const routerContextValue = { route, matched };\n\n // Check if 404 if no route matched\n const is404 = !matched;\n\n return (\n <RouterContext.Provider value={routerContextValue}>\n {is404 ? <div>Not found</div> : children}\n </RouterContext.Provider>\n );\n }\n}\nexport { history, RouterContext, Router, Route, Link };\n","export default ({ width, height }) => {\n return (\n <svg\n id=\"e8f68bdd-4984-4f2e-95b7-7fc8ec281257\"\n data-name=\"Layer 1\"\n width={width}\n height={height}\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"0 0 918.14 765.54\"\n >\n <defs>\n <linearGradient\n id=\"27aa7b70-b106-4a00-be67-693c8380e41d\"\n x1=\"397.74\"\n y1=\"717.25\"\n x2=\"397.74\"\n y2=\"86.11\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stop-color=\"gray\" stop-opacity=\"0.25\" />\n <stop offset=\"0.54\" stop-color=\"gray\" stop-opacity=\"0.12\" />\n <stop offset=\"1\" stop-color=\"gray\" stop-opacity=\"0.1\" />\n </linearGradient>\n <linearGradient\n id=\"46a816da-c484-41ec-8a6f-fbf14454d910\"\n x1=\"288.88\"\n y1=\"378.44\"\n x2=\"288.88\"\n y2=\"209.65\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"32b634d8-28f1-48d9-a868-f602a2cad942\"\n x1=\"288.88\"\n y1=\"328.29\"\n x2=\"288.88\"\n y2=\"223.1\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <clipPath\n id=\"7a4c6aff-0be0-461b-a111-b3ae1b8fbf73\"\n transform=\"translate(-140.93 -67.23)\"\n >\n <rect\n id=\"8cc91f6d-19b0-43cc-9c18-2faa83ac34ba\"\n data-name=\"<Rectangle>\"\n x=\"354.51\"\n y=\"291.55\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n </clipPath>\n <linearGradient\n id=\"38f1cb81-8fac-4205-a0ff-a33ac00d354c\"\n x1=\"288.88\"\n y1=\"594.94\"\n x2=\"288.88\"\n y2=\"426.14\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"6fc01aaf-135e-403e-a209-43b2a4fe59f1\"\n x1=\"288.88\"\n y1=\"544.79\"\n x2=\"288.88\"\n y2=\"439.6\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <clipPath\n id=\"79ce363a-d134-40e4-9f82-b96d04a36978\"\n transform=\"translate(-140.93 -67.23)\"\n >\n <rect\n id=\"5b44e697-61fe-43bd-9a58-5f3e41301748\"\n data-name=\"<Rectangle>\"\n x=\"354.51\"\n y=\"508.05\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n </clipPath>\n <linearGradient\n id=\"54803c44-522d-4b9e-9a34-f1f7b43e8483\"\n x1=\"671.57\"\n y1=\"760.34\"\n x2=\"671.57\"\n y2=\"129.2\"\n gradientTransform=\"translate(1109.43 -194.1) rotate(90)\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"089a6a47-adaa-499b-aefb-cd6464b62fb8\"\n x1=\"670.96\"\n y1=\"553.63\"\n x2=\"670.96\"\n y2=\"387.28\"\n gradientTransform=\"translate(1129.51 -168.41) rotate(90)\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"fd8d88e0-7826-450d-9e0b-001d1be709c2\"\n x1=\"637.66\"\n y1=\"754.12\"\n x2=\"637.66\"\n y2=\"601.05\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"8d1793c5-b76e-44e2-a52e-569460402331\"\n x1=\"778.37\"\n y1=\"673.86\"\n x2=\"778.37\"\n y2=\"569.13\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"4745700d-8097-45ff-9f71-625443fc4ad8\"\n x1=\"778.37\"\n y1=\"774.41\"\n x2=\"778.37\"\n y2=\"713.66\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n </defs>\n <title>secure data</title>\n <g opacity=\"0.5\">\n <rect\n x=\"162.9\"\n y=\"86.11\"\n width=\"469.69\"\n height=\"631.14\"\n fill=\"url(#27aa7b70-b106-4a00-be67-693c8380e41d)\"\n />\n </g>\n <rect\n x=\"169.02\"\n y=\"94.67\"\n width=\"455.01\"\n height=\"609.12\"\n fill=\"#f2f2f2\"\n />\n <rect x=\"204.49\" y=\"120.36\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect\n x=\"204.49\"\n y=\"142.37\"\n width=\"156.56\"\n height=\"4.89\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect x=\"384.29\" y=\"120.36\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"408.75\" y=\"259.8\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"412.42\" y=\"273.25\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"419.76\" y=\"286.7\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"408.75\" y=\"476.29\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"412.42\" y=\"489.75\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"419.76\" y=\"503.2\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <g opacity=\"0.5\">\n <rect\n x=\"205.71\"\n y=\"209.65\"\n width=\"166.35\"\n height=\"168.79\"\n fill=\"url(#46a816da-c484-41ec-8a6f-fbf14454d910)\"\n />\n </g>\n <rect\n x=\"206.76\"\n y=\"213.32\"\n width=\"163.72\"\n height=\"161.45\"\n fill=\"#f5f5f5\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"212.53\"\n y=\"223.1\"\n width=\"152.7\"\n height=\"105.19\"\n fill=\"url(#32b634d8-28f1-48d9-a868-f602a2cad942)\"\n />\n </g>\n <rect\n id=\"689f37f3-cc41-448d-b172-63ec123bc985\"\n data-name=\"<Rectangle>\"\n x=\"213.58\"\n y=\"224.32\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n <g clip-path=\"url(#7a4c6aff-0be0-461b-a111-b3ae1b8fbf73)\">\n <polygon\n points=\"200.82 322.18 238.74 263.46 254.64 289.15 288.88 253.68 318.24 289.15 343.93 236.56 409.98 341.75 195.93 334.41 200.82 322.18\"\n fill=\"#6c63ff\"\n opacity=\"0.4\"\n />\n <circle cx=\"230.17\" cy=\"239\" r=\"11.01\" fill=\"#6c63ff\" opacity=\"0.4\" />\n </g>\n <g opacity=\"0.5\">\n <rect\n x=\"205.71\"\n y=\"426.14\"\n width=\"166.35\"\n height=\"168.79\"\n fill=\"url(#38f1cb81-8fac-4205-a0ff-a33ac00d354c)\"\n />\n </g>\n <rect\n x=\"206.76\"\n y=\"429.81\"\n width=\"163.72\"\n height=\"161.45\"\n fill=\"#f5f5f5\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"212.53\"\n y=\"439.6\"\n width=\"152.7\"\n height=\"105.19\"\n fill=\"url(#6fc01aaf-135e-403e-a209-43b2a4fe59f1)\"\n />\n </g>\n <rect\n id=\"b429ac3a-f8a8-4171-bcce-5b6c002c0714\"\n data-name=\"<Rectangle>\"\n x=\"213.58\"\n y=\"440.82\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n <g clip-path=\"url(#79ce363a-d134-40e4-9f82-b96d04a36978)\">\n <polygon\n points=\"200.82 538.67 238.74 479.96 254.64 505.65 288.88 470.18 318.24 505.65 343.93 453.05 409.98 558.24 195.93 550.9 200.82 538.67\"\n fill=\"#bdbdbd\"\n opacity=\"0.4\"\n />\n <circle cx=\"230.17\" cy=\"455.5\" r=\"11.01\" fill=\"#bdbdbd\" opacity=\"0.4\" />\n </g>\n <g opacity=\"0.5\">\n <rect\n x=\"349.09\"\n y=\"242.63\"\n width=\"631.14\"\n height=\"469.69\"\n transform=\"translate(-74.16 969.06) rotate(-78.76)\"\n fill=\"url(#54803c44-522d-4b9e-9a34-f1f7b43e8483)\"\n />\n </g>\n <rect\n x=\"359.37\"\n y=\"247.33\"\n width=\"609.12\"\n height=\"455.01\"\n transform=\"translate(-72.16 966.22) rotate(-78.76)\"\n fill=\"#fff\"\n />\n <rect\n x=\"523.5\"\n y=\"197.22\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-88.86 -196.94) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"433.36\"\n y=\"650.7\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-2.18 -170.66) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"428.58\"\n y=\"671.14\"\n width=\"249.52\"\n height=\"4.89\"\n transform=\"translate(1.01 -162.18) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"424.6\"\n y=\"683.47\"\n width=\"92.96\"\n height=\"4.89\"\n transform=\"translate(1.84 -145.91) rotate(11.24)\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect\n x=\"519.57\"\n y=\"209.08\"\n width=\"161.45\"\n height=\"4.89\"\n transform=\"translate(-88.17 -180.2) rotate(11.24)\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect\n x=\"512.84\"\n y=\"249.31\"\n width=\"291.11\"\n height=\"4.89\"\n transform=\"translate(-79.21 -190.76) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"509.47\"\n y=\"255.44\"\n width=\"70.94\"\n height=\"4.89\"\n transform=\"translate(-80.19 -168.52) rotate(11.24)\"\n fill=\"#3ad29f\"\n opacity=\"0.7\"\n />\n <rect\n x=\"501.56\"\n y=\"307.59\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-67.76 -190.54) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"575.87\"\n y=\"357.6\"\n width=\"166.35\"\n height=\"289.88\"\n transform=\"translate(-103.27 983.74) rotate(-78.76)\"\n fill=\"url(#089a6a47-adaa-499b-aefb-cd6464b62fb8)\"\n />\n </g>\n <rect\n x=\"516.06\"\n y=\"420.61\"\n width=\"286.22\"\n height=\"162.68\"\n transform=\"translate(-30.42 -186.11) rotate(11.24)\"\n fill=\"#fff\"\n />\n <rect\n x=\"496.08\"\n y=\"335.18\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-62.49 -188.94) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"547.86\"\n y=\"424.02\"\n width=\"35.47\"\n height=\"118.64\"\n transform=\"translate(-35.84 -168.22) rotate(11.24)\"\n fill=\"#6c63ff\"\n />\n <rect\n x=\"606.43\"\n y=\"475.19\"\n width=\"35.47\"\n height=\"79.5\"\n transform=\"translate(-28.56 -179.03) rotate(11.24)\"\n fill=\"#3ad29f\"\n />\n <rect\n x=\"665.23\"\n y=\"523.93\"\n width=\"35.47\"\n height=\"42.81\"\n transform=\"translate(-21.5 -189.92) rotate(11.24)\"\n fill=\"#f55f44\"\n />\n <rect\n x=\"731.91\"\n y=\"492.72\"\n width=\"35.47\"\n height=\"86.84\"\n transform=\"translate(-22.02 -203.09) rotate(11.24)\"\n fill=\"#fdd835\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"128.65\"\n y=\"645.09\"\n width=\"3.67\"\n height=\"20.79\"\n fill=\"#47e6b1\"\n />\n <rect\n x=\"269.58\"\n y=\"712.31\"\n width=\"3.67\"\n height=\"20.79\"\n transform=\"translate(853.2 384.07) rotate(90)\"\n fill=\"#47e6b1\"\n />\n </g>\n <path\n d=\"M699.44,75.56a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,699.44,75.56Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#4d8af0\"\n opacity=\"0.5\"\n />\n <path\n d=\"M286.33,179.4a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,286.33,179.4Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#fdd835\"\n opacity=\"0.5\"\n />\n <path\n d=\"M253.63,484.46a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,253.63,484.46Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#fdd835\"\n opacity=\"0.5\"\n />\n <circle cx=\"337.81\" cy=\"28.62\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"7.34\" cy=\"317.46\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"863.76\" cy=\"120.36\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"822.17\" cy=\"339.3\" r=\"7.34\" fill=\"#4d8af0\" opacity=\"0.5\" />\n <circle cx=\"37.68\" cy=\"145.22\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <circle cx=\"853.29\" cy=\"647.34\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <circle cx=\"910.8\" cy=\"430.97\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <rect\n x=\"544.42\"\n y=\"601.05\"\n width=\"186.48\"\n height=\"153.07\"\n fill=\"url(#fd8d88e0-7826-450d-9e0b-001d1be709c2)\"\n />\n <path\n d=\"M723.82,639a54.55,54.55,0,0,1,109.1,0v34.91h15.27V639a69.82,69.82,0,0,0-139.65,0v34.91h15.27Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"url(#8d1793c5-b76e-44e2-a52e-569460402331)\"\n />\n <path\n d=\"M726,638.25a52.37,52.37,0,1,1,104.74,0v33.52H845.4V638.25a67,67,0,0,0-134.06,0v33.52H726Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#f5f5f5\"\n />\n <rect\n x=\"546.32\"\n y=\"602.45\"\n width=\"182.24\"\n height=\"148.73\"\n fill=\"#6c63ff\"\n />\n <rect\n x=\"546.32\"\n y=\"602.45\"\n width=\"182.24\"\n height=\"148.73\"\n fill=\"#f5f5f5\"\n />\n <rect\n x=\"546.32\"\n y=\"631.77\"\n width=\"182.24\"\n height=\"90.07\"\n fill=\"#6c63ff\"\n />\n <path\n d=\"M791.73,727a13.36,13.36,0,1,0-23.08,9.15v28.51a9.72,9.72,0,0,0,19.44,0V736.18A13.3,13.3,0,0,0,791.73,727Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"url(#4745700d-8097-45ff-9f71-625443fc4ad8)\"\n />\n <path\n d=\"M789.89,729.38a11.52,11.52,0,1,0-19.9,7.89v24.58a8.38,8.38,0,1,0,16.76,0V737.27A11.47,11.47,0,0,0,789.89,729.38Z\"\n transform=\"translate(-140.93 -67.23)\"\n opacity=\"0.2\"\n />\n </svg>\n );\n};\n","const { __ } = wp.i18n;\n\nimport Illustration from \"./illustration\";\nconst { Flex, FlexItem, FlexBlock } = wp.components;\n\nexport default () => {\n return (\n <Flex style={{ padding: \"30px\", background: \"#fff\" }}>\n <FlexItem>\n <Illustration width=\"250px\" />\n </FlexItem>\n <FlexBlock style={{ marginLeft: \"20px\" }}>\n <h1>{__(\"Get detailed video insights.\", \"presto-player\")}</h1>\n <p>\n {__(\n \"Upgrade to Pro and get video insights like plays, watch-time, and drop off numbers.\",\n \"presto-player\"\n )}\n </p>\n <a\n href=\"https://prestoplayer.com\"\n target=\"_blank\"\n className=\"button button-primary\"\n >\n {__(\"Learn More\", \"presto-player\")}\n </a>\n </FlexBlock>\n </Flex>\n );\n};\n","/**\n * WordPress dependencies\n */\nconst { __ } = wp.i18n;\nconst { apiFetch } = wp;\nconst { useState } = wp.element;\nconst { createHigherOrderComponent } = wp.compose;\n\n/**\n * Higher order component factory\n *\n * @return {Function} The higher order component.\n */\nexport default () =>\n createHigherOrderComponent(\n (WrappedComponent) => (props) => {\n const [loading, setLoading] = useState(false);\n const [page, setPage] = useState(1);\n const [total, setTotal] = useState(0);\n const [totalPages, setTotalPages] = useState(0);\n const [data, setData] = useState([]);\n const [error, setError] = useState(\"\");\n\n // fetch data\n // we could also abstract this function to make it reusable\n // or do a higher order component\n const fetchData = async ({ endpoint, params = {} }) => {\n setLoading(true);\n\n let responseData;\n try {\n responseData = await apiFetch({\n path: wp.url.addQueryArgs(endpoint, {\n page,\n per_page: 5,\n ...params,\n }),\n parse: false,\n }).then((res) => {\n const total = res.headers\n ? parseInt(res.headers.get(\"X-WP-Total\"))\n : 0;\n const totalPages = res.headers\n ? parseInt(res.headers.get(\"X-WP-TotalPages\"))\n : 0;\n setTotal(total);\n setTotalPages(totalPages);\n return res.json();\n });\n\n setData(responseData);\n } catch (e) {\n console.error(e);\n if (e?.message) {\n setError(e.message);\n }\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <WrappedComponent\n loading={loading}\n setLoading={setLoading}\n fetchData={fetchData}\n page={page}\n setPage={setPage}\n total={total}\n setTotal={setTotal}\n totalPages={totalPages}\n setTotalPages={setTotalPages}\n data={data}\n setData={setData}\n error={error}\n setError={setError}\n {...props}\n />\n );\n },\n \"withDataList\"\n );\n","const { __, sprintf } = wp.i18n;\n\nexport const humanSeconds = (savedSeconds) => {\n const hours = Math.floor(savedSeconds / 60 / 60);\n const minutes = Math.floor(savedSeconds / 60) - hours * 60;\n const seconds = savedSeconds % 60;\n\n let out = \"\";\n if (hours) {\n out += sprintf(__(\"%d hours\", \"presto-player\"), hours) + \", \";\n }\n if (minutes) {\n out += sprintf(__(\"%d minutes\", \"presto-player\"), minutes) + \" \";\n }\n if ((hours || minutes) && seconds) {\n out += __(\"and\", \"presto-player\") + \" \";\n }\n\n out += sprintf(__(\"%d seconds\", \"presto-player\"), seconds);\n\n return out;\n};\n\nexport const timestamp = (seconds) => {\n seconds = parseInt(seconds || 0) * 1000;\n return new Date(seconds).toISOString().substr(11, 8);\n};\n\n/*\n * This function remove the user timezone from new Date()\n * https://stackoverflow.com/a/29774197/1972413\n*/\nexport const convertDateTimeToAbsoluteDate = (dateTime) => {\n const offset = new Date().getTimezoneOffset()\n var date = new Date(dateTime.getTime() - (offset*60*1000))\n return date.toISOString().split('T')[0]+'T00:00:00.000Z';\n}\n","const { Spinner, Flex, FlexItem } = wp.components;\nexport default ({ height = 100 }) => {\n return (\n <Flex style={{ height: `${height}px` }} align=\"center\" justify=\"center\">\n <FlexItem>\n <Spinner />\n </FlexItem>\n </Flex>\n );\n};\n","const { __ } = wp.i18n;\nconst { Card, CardBody, Flex, FlexBlock, Button, ButtonGroup } = wp.components;\nconst { useState, useEffect } = wp.element;\n\nexport default ({ page, setPage, perPage, total, totalPages }) => {\n // do we have prev/next\n const [hasPrevious, setHasPrevious] = useState(false);\n const [hasNext, setHasNext] = useState(false);\n\n // end and start cursors\n const [end, setEnd] = useState(0);\n const [start, setStart] = useState(0);\n\n // set end and start\n useEffect(() => {\n setEnd(Math.min(perPage * page, total));\n setStart(perPage * (page - 1) + 1);\n }, [perPage, page, total]);\n\n // update page when pagination is clicked\n const nextPage = () => {\n setPage(Math.min(totalPages, page + 1));\n };\n const prevPage = () => {\n setPage(Math.max(page - 1, 0));\n };\n\n // set prev/next\n useEffect(() => {\n setHasPrevious(page - 1 > 0);\n setHasNext(totalPages >= page + 1);\n }, [page, totalPages]);\n\n return (\n <Card size=\"large\" className=\"presto-card pagination\">\n <CardBody className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n {sprintf(\n __(\"Showing %1s to %2s of %3s\", \"presto-player\"),\n start,\n end,\n total\n )}\n </FlexBlock>\n <FlexBlock>\n <Flex justify=\"flex-end\">\n {\n <ButtonGroup>\n <Button\n isSecondary\n disabled={!hasPrevious}\n onClick={prevPage}\n >\n {__(\"Previous\", \"presto-player\")}\n </Button>\n <Button isSecondary disabled={!hasNext} onClick={nextPage}>\n {__(\"Next\", \"presto-player\")}\n </Button>\n </ButtonGroup>\n }\n </Flex>\n </FlexBlock>\n </Flex>\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { useRef, useEffect, useState } = wp.element;\nconst { Card, CardBody ,Flex, FlexBlock, Button, ButtonGroup } = wp.components;\n\nimport classNames from 'classnames';\n\nexport default ({ columns , data , onRowClick , title }) => {\n\n if (!data.length) {\n return (\n <Card size=\"large\" className=\"presto-card table-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {title}\n </div>\n <div style={{ opacity: 0.65 }}>\n {__(\"No data available.\", \"presto-player\")}\n </div>\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card size=\"large\" className=\"presto-card table-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {title}\n </div>\n <table role=\"table\" className={classNames('presto-table', { 'is-clickable': onRowClick })}>\n <thead role=\"rowgroup\">\n <tr role=\"row\">\n {columns && columns.map((column) => {\n return (\n <th key={column.key} role=\"columnheader\">\n {column.label}\n </th>\n );\n })}\n </tr>\n </thead>\n\n <tbody role=\"rowgroup\">\n {data.map((row , rowIndex) => {\n return (\n <tr role=\"row\" key={`row-${rowIndex}`}\n onClick={() => onRowClick && onRowClick(row)}\n >\n {columns.map((column , columnIndex ) => {\n return (\n <td role=\"cell\" data-title={column.label} key={`row-${rowIndex}-${columnIndex}`} aria-label={column.label}>\n {column.render ? column.render(row) : (<div>{column.value(row)}</div>)}\n </td>\n );\n })}\n </tr>\n );\n })}\n </tbody>\n </table>\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { useEffect, useState } = wp.element;\nconst { Card, CardBody } = wp.components;\nimport Loading from \"@/admin/settings/components/Loading\";\nimport Pagination from \"@/admin/ui/Pagination\";\nimport Table from \"@/admin/ui/Table\";\n\nexport default ({\n perPage = 10,\n title,\n page,\n setPage,\n loading,\n total,\n totalPages,\n columns,\n data,\n onSelect,\n}) => {\n if (loading) {\n return (\n <Card>\n <Loading />\n </Card>\n );\n }\n\n if (!data?.length) {\n return (\n <Card size=\"large\" className=\"presto-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">{title}</div>\n <div style={{ opacity: 0.65 }}>\n {__(\"No data available.\", \"presto-player\")}\n </div>\n </CardBody>\n </Card>\n );\n }\n\n return (\n <div className=\"datatable\">\n <Table\n data={data}\n columns={columns}\n perPage={perPage}\n onRowClick={onSelect}\n title={title}\n />\n\n {!!total && (\n <Pagination\n page={page}\n setPage={setPage}\n perPage={perPage}\n total={total}\n totalPages={totalPages}\n />\n )}\n </div>\n );\n};\n","const { __ } = wp.i18n;\nconst { useEffect } = wp.element;\nconst { compose } = wp.compose;\n\nimport { history } from \"@/router/context\";\nimport withDataList from \"../hocs/withDataList\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\nimport DataTable from \"./DataTable\";\n\nexport default compose([withDataList()])(\n ({\n loading,\n page,\n setPage,\n total,\n totalPages,\n data,\n error,\n fetchData,\n startDate,\n endDate,\n }) => {\n // 10 per page\n const per_page = 5;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: \"/presto-player/v1/analytics/top-users\",\n params: {\n per_page,\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n },\n });\n }, [page, startDate, endDate]);\n\n // navigate to user screen here\n const navigate = (id) => {\n history.push(`#/user/${id}`);\n };\n\n const columns = [\n {\n key: \"name\",\n label: __(\"Name\", \"presto-player\"),\n value: (row) => row?.user?.name,\n },\n {\n key: \"total_view\",\n label: __(\"Total View\", \"presto-player\"),\n value: (row) => row?.stats?.[0]?.data,\n },\n {\n key: \"avg_view_time\",\n label: __(\"Avg View Time\", \"presto-player\"),\n render: (row) => (\n <div className=\"presto-badge\">{row?.stats?.[1]?.data}</div>\n ),\n },\n ];\n\n if (error) {\n return { error };\n }\n\n return (\n <DataTable\n title={__(\"Top Users\", \"presto-player\")}\n page={page}\n perPage={per_page}\n setPage={setPage}\n loading={loading}\n total={total}\n totalPages={totalPages}\n columns={columns}\n data={data}\n onSelect={(row) => navigate(row?.user?.id)}\n />\n );\n }\n);\n","const { __ } = wp.i18n;\nconst { useEffect } = wp.element;\nconst { compose } = wp.compose;\n\nimport { history } from \"@/router/context\";\nimport withDataList from \"../hocs/withDataList\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\nimport DataTable from \"./DataTable\";\n\n\nexport default compose([withDataList()])(\n ({\n loading,\n page,\n setPage,\n total,\n totalPages,\n data,\n error,\n fetchData,\n startDate,\n endDate,\n userId\n }) => {\n // 10 per page\n const per_page = 10;\n\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: \"/presto-player/v1/analytics/top-videos\",\n params: {\n per_page,\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n ...(userId ? { user_id: userId }: {})\n },\n });\n }, [page, startDate, endDate]);\n\n const navigate = (id) => {\n history.push(`#/video/${id}`);\n };\n\n const columns = [\n {\n key: \"name\",\n label: __(\"Name\", \"presto-player\"),\n render(row) {\n return (\n <h3 style={{ marginBottom: 0, wordBreak:'break-all' }}>\n {row.video.title\n ? row.video.title\n : __(\"Untitled\", \"presto-player\")}\n </h3>\n );\n },\n },\n {\n key: \"total_view\",\n label: __(\"Total View\", \"presto-player\"),\n value(row) {\n return row.stats[0].data;\n },\n },\n {\n key: \"avg_view_time\",\n label: __(\"Avg View Time\", \"presto-player\"),\n render(row) {\n return <div className=\"presto-badge\">{row.stats[1].data}</div>;\n },\n },\n {\n key: \"view_more\",\n label: \"\",\n render(row) {\n return (\n <span\n style={{\n color: \"var(--wp-admin-theme-color, #007cba)\",\n }}\n >\n {__(\"View Details\", \"presto-player\")} →\n </span>\n );\n },\n },\n ];\n\n if (error) {\n return { error };\n }\n\n return (\n <DataTable\n title={__(\"Top Videos\", \"presto-player\")}\n perPage={per_page}\n page={page}\n setPage={setPage}\n loading={loading}\n total={total}\n totalPages={totalPages}\n columns={columns}\n data={data}\n onSelect={(row) => {\n navigate(row?.video?.id);\n }}\n />\n );\n }\n);\n","// import apiFetch from \"@wordpress/api-fetch\";\nconst { apiFetch } = wp;\n\n// nonce and root\napiFetch.use(apiFetch.createNonceMiddleware(prestoPlayer.nonce));\napiFetch.use(\n apiFetch.createRootURLMiddleware(\n prestoPlayer.root + prestoPlayer.prestoVersionString\n )\n);\n\nexport default apiFetch;\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default (props) => {\n const [loading, setLoading] = useState(true);\n const [totalViews, setTotalViews] = useState(0);\n const { startDate, endDate } = props;\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n yaxis: {\n min: 0,\n labels: {\n formatter: function (num) {\n if (num < 1) {\n return 0;\n }\n return Math.abs(num) > 999\n ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + \"k\"\n : Math.sign(num) * Math.abs(num).toFixed(0);\n },\n },\n },\n colors: [\"#7c3aed\"],\n xaxis: {\n type: \"datetime\",\n min: new Date(startDate).setHours(0, 0, 0, 0),\n max: new Date(endDate).setHours(23, 59, 59, 999),\n },\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n // fetch only if we already mounted\n useEffect(() => {\n fetchViews();\n }, [props]);\n\n const fetchViews = () => {\n setLoading(true);\n apiFetch({\n path:\n \"/presto-player/v1/analytics/views?\" +\n jQuery.param({\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n }),\n parse: false,\n })\n .then(async (res) => {\n setTotalViews(res.headers && res.headers.get(\"X-WP-Total\"));\n const data = await res.json();\n\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n series.push({\n x: item.date_time,\n y: item.total,\n });\n });\n }\n setSeries([\n {\n name: \"Views\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n if (loading) {\n return (\n <CardBody>\n <Loading />\n </CardBody>\n );\n }\n\n return (\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {sprintf(__(\"%d Unique Views\", \"presto-player\"), totalViews)}\n </div>\n <Chart options={chart.options} series={series} type=\"area\" height={280} />\n </CardBody>\n );\n};\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate, humanSeconds } from \"../util\";\n\n\nexport default (props) => {\n const [loading, setLoading] = useState(true);\n const [averageTime, setAverageTime] = useState(0);\n const { startDate, endDate } = props;\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n yaxis: {\n labels: {\n formatter: function (num) {\n return Math.abs(num) > 999\n ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + \"k min\"\n : (Math.sign(num) * Math.abs(num)).toFixed(1) + \"min\";\n },\n },\n },\n colors: [\"#7c3aed\"],\n xaxis: {\n type: \"datetime\",\n min: new Date(startDate).setHours(0, 0, 0, 0),\n max: new Date(endDate).setHours(23, 59, 59, 999),\n },\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n // fetch only if we already mounted\n useEffect(() => {\n fetchMinutes();\n }, [props]);\n\n const fetchMinutes = () => {\n setLoading(true);\n apiFetch({\n path:\n \"/presto-player/v1/analytics/watch-time?\" +\n jQuery.param({\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n }),\n parse: false,\n })\n .then(async (res) => {\n const { data, average } = await res.json();\n\n setAverageTime(parseFloat(average));\n\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n series.push({\n x: item.date_time,\n y: (item.total / 60).toFixed(2),\n });\n });\n }\n setSeries([\n {\n name: \"Watch Time\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n if (loading) {\n return (\n <CardBody>\n <Loading />\n </CardBody>\n );\n }\n\n return (\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {sprintf(\n __(\"%s average watch time\", \"presto-player\"),\n humanSeconds(averageTime)\n )}\n </div>\n <Chart options={chart.options} series={series} type=\"area\" height={280} />\n </CardBody>\n );\n};\n","const { __ } = wp.i18n;\nconst { Panel, TabPanel } = wp.components;\n\nimport TotalViewsGraph from \"./TotalViewsGraph\";\nimport TotalWatchGraph from \"./TotalWatchGraph\";\n\nexport default ({ startDate, endDate }) => {\n return (\n <Panel>\n <TabPanel\n className=\"presto-module-tabs\"\n onSelect={() => {}}\n tabs={[\n {\n name: \"views\",\n title: __(\"Views\", \"presto-player\"),\n },\n {\n name: \"watch\",\n title: __(\"Watch Time\", \"presto-player\"),\n },\n ]}\n >\n {(tab) => {\n switch (tab.name) {\n case \"views\":\n return (\n <TotalViewsGraph startDate={startDate} endDate={endDate} />\n );\n case \"watch\":\n return (\n <TotalWatchGraph startDate={startDate} endDate={endDate} />\n );\n default:\n return <>Not Found</>;\n }\n }}\n </TabPanel>\n </Panel>\n );\n};\n","const { __ } = wp.i18n;\nconst { useRef, useEffect, useState } = wp.element;\n\nimport Litepicker from \"litepicker\";\nimport \"litepicker/dist/plugins/ranges\";\n\nexport default ({ startDate, setStartDate, endDate, setEndDate }) => {\n const dateRef = useRef();\n const [inputSize, setInputSize] = useState(25);\n\n let datepicker;\n useEffect(() => {\n datepicker = new Litepicker({\n element: dateRef?.current,\n singleMode: false,\n format: \"MMMM D YYYY\",\n autoApply: false,\n plugins: [\"ranges\"],\n maxDate: new Date(),\n numberOfMonths: 2,\n buttonText: {\n apply: __(\"Apply\", \"presto-player\"),\n cancel: __(\"Cancel\", \"presto-player\"),\n },\n dropdowns: {\n minYear: 1990,\n maxYear: null,\n months: true,\n years: true,\n },\n setup: (picker) => {\n picker.setDateRange(startDate, endDate);\n picker.on(\"button:apply\", (start, end) => {\n setStartDate(start.dateInstance);\n setEndDate(end.dateInstance);\n setInputSize(dateRef.current.value.length);\n });\n },\n });\n }, [dateRef]);\n\n return (\n <div className=\"component-base-control\">\n <div className=\"components-base-control__field\">\n <input\n className=\"components-text-control__input presto-settings__date-select\"\n ref={dateRef}\n size={inputSize}\n />\n </div>\n </div>\n );\n};\n","const { __ } = wp.i18n;\nconst { Flex, FlexBlock, FlexItem } = wp.components;\nconst { useState } = wp.element;\n\nimport TopUsers from \"../components/TopUsers\";\nimport TopVideos from \"../components/TopVideos\";\nimport OverviewPanel from \"../components/OverviewPanel\";\nimport DatePicker from \"../components/DatePicker\";\n\nexport default function ({ startDate, endDate, setStartDate, setEndDate }) {\n return (\n <>\n <Flex>\n <FlexBlock>\n <h1>{__(\"Analytics\", \"presto-player\")}</h1>\n </FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-flow\">\n <div className=\"presto-dashboard\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <OverviewPanel startDate={startDate} endDate={endDate} />\n </div>\n <div className=\"presto-dashboard__item\">\n <TopUsers startDate={startDate} endDate={endDate} />\n </div>\n </div>\n\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <TopVideos startDate={startDate} endDate={endDate} />\n </div>\n </div>\n </div>\n </div>\n </>\n );\n}\n","const { Card, CardBody } = wp.components;\nimport Loading from \"@/admin/settings/components/Loading\";\n\nexport default ({ loading, title , value, label }) => {\n if (loading) {\n return (\n <Card>\n <CardBody>\n <Loading />\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card className=\"presto-player__stat-card\">\n <CardBody>\n <div className=\"presto-subtitle\">{title}</div>\n <h1>{value}</h1>\n <div>{label}</div>\n </CardBody>\n </Card>\n );\n};\n","/**\n * WordPress dependencies\n */\nconst { apiFetch } = wp;\nconst { useState } = wp.element;\nconst { createHigherOrderComponent } = wp.compose;\n\n/**\n * Higher order component factory\n *\n * @return {Function} The higher order component.\n */\nexport default () =>\n createHigherOrderComponent(\n (WrappedComponent) => (props) => {\n const [loading, setLoading] = useState(false);\n const [stat, setStat] = useState([]);\n const [error, setError] = useState(\"\");\n\n // fetch data\n // we could also abstract this function to make it reusable\n // or do a higher order component\n const fetchData = async ({ endpoint, params = {} }) => {\n setLoading(true);\n\n let responseData;\n try {\n responseData = await apiFetch({\n path: wp.url.addQueryArgs(endpoint, {\n ...params,\n }),\n });\n setStat(responseData);\n } catch (e) {\n console.error(e);\n if (e?.message) {\n setError(e.message);\n }\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <WrappedComponent\n loading={loading}\n setLoading={setLoading}\n fetchData={fetchData}\n stat={stat}\n setStat={setStat}\n error={error}\n setError={setError}\n {...props}\n />\n );\n },\n \"withStat\"\n );\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/total-views`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n\n <StatCard\n loading={loading}\n value={parseInt(stat?.view)}\n title={__(\"Total Views\", \"presto-player\")}\n />\n );\n});\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/average-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseFloat(stat?.view).toFixed(2)}\n title={__(\"Average Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/total-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseFloat(stat?.view).toFixed(2)}\n title={__(\"Total Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","/** @jsx jsx */\n\nconst { __ } = wp.i18n;\n\nconst { Flex, FlexBlock, FlexItem, Spinner, Button } = wp.components;\n\nimport { history } from \"@/router/context\";\nimport DatePicker from \"../components/DatePicker\";\nimport TopVideos from \"../components/TopVideos\";\nimport TotalVideoViewsByUser from \"../components/TotalVideoViewsByUser\";\nimport VideoAverageWatchTimeByUser from \"../components/VideoAverageWatchTimeByUser\";\nimport VideoTotalWatchTimeByUser from \"../components/VideoTotalWatchTimeByUser\";\n\nconst { useEffect, useState } = wp.element;\nconst { apiFetch } = wp;\n\nimport { css, jsx } from \"@emotion/core\";\n\nconst User = ({ route, startDate, endDate, setStartDate, setEndDate }) => {\n const [loading, setLoading] = useState(true);\n const [user, setUser] = useState({});\n const [error, setError] = useState(\"\");\n\n const back = () => {\n history.push(`#/`);\n };\n\n const getUser = async () => {\n setLoading(true);\n try {\n let user = await apiFetch({\n url: `/wp-json/wp/v2/users/${route?.params?.id}?context=edit`,\n });\n setUser(user);\n } catch (e) {\n if (e.code === \"rest_no_route\") {\n setError(\"User Not Found\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n useEffect(() => {\n getUser();\n }, []);\n\n if (error) {\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <h2>{error}</h2>\n </FlexBlock>\n </Flex>\n </div>\n );\n }\n\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <Button isSecondary onClick={back}>\n ← {__(\"Back to Dashboard\", \"presto-player\")}\n </Button>\n </FlexBlock>\n </Flex>\n <Flex wrap>\n <FlexBlock>\n {loading ? (\n <Spinner />\n ) : (\n <div\n css={css`\n display: flex;\n align-items: center;\n\n .presto__edit-user-button {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease;\n }\n\n &:hover {\n .presto__edit-user-button {\n opacity: 1;\n visibility: visible;\n }\n }\n `}\n >\n <div>\n <h1 className=\"presto-dashboard__title\">{user?.name}</h1>\n <p\n css={css`\n margin-top: -10px;\n opacity: 0.65;\n `}\n >\n {user?.email}\n </p>\n </div>\n {!!user.id && (\n <div\n className=\"presto__edit-user-button\"\n css={css`\n margin: 0 20px;\n `}\n >\n <Button\n href={`/wp-admin/user-edit.php?user_id=${user?.id}`}\n isSecondary\n isSmall\n >\n {__(\"View Profile\", \"presto-player\")} →\n </Button>\n </div>\n )}\n </div>\n )}\n </FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-dashboard presto-flow\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item\">\n <TotalVideoViewsByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoAverageWatchTimeByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoTotalWatchTimeByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <TopVideos\n startDate={startDate}\n endDate={endDate}\n userId={route?.params?.id}\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default User;\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { video_id, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/video/${video_id}/average-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n\n <StatCard\n loading={loading}\n value={parseInt(stat)}\n title={__(\"Average Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate, timestamp } from \"../util\";\n\n\nexport default (props) => {\n const { video_id, startDate, endDate } = props;\n const [loading, setLoading] = useState(true);\n\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const fetchTimeline = () => {\n setLoading(true);\n apiFetch({\n path: wp.url.addQueryArgs(\n `/presto-player/v1/analytics/video/${video_id}/timeline`,\n {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n }\n ),\n })\n .then((data) => {\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n // add another to them\n series.push({\n x: item.watch_time,\n y: item.total,\n });\n });\n }\n setSeries([\n {\n name: \"Viewers\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n useEffect(() => {\n fetchTimeline();\n }, [startDate, endDate]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n tickAmount: 1,\n yaxis: {\n labels: {\n formatter: function (num) {\n return parseInt(num);\n },\n },\n },\n xaxis: {\n labels: {\n formatter: function (num) {\n return timestamp(num);\n },\n },\n },\n colors: [\"#7c3aed\"],\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n if (loading) {\n return (\n <Card>\n <CardBody>\n <Loading />\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card>\n <CardBody>\n <div className=\"presto-card__title\">\n {__(\"Audience Retention\", \"presto-player\")}\n </div>\n <Chart\n options={chart.options}\n series={series}\n type=\"area\"\n height={280}\n />\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { video_id, startDate, endDate, stat, fetchData, loading } = props;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/video/${video_id}/views`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseInt(stat)}\n title={__(\"Unique Views\", \"presto-player\")}\n />\n );\n});\n","import { PrestoPlayer } from \"@presto-player/react\";\n\nconst { useSelect } = wp.data;\n\nexport default ({ src, preset, branding, attributes, adminPreview, type }) => {\n const { chapters, mutedOverlay, mutedPreview } = attributes;\n\n const youtube = useSelect((select) => {\n return select(\"presto-player/player\")?.youtube();\n });\n\n const css = useSelect((select) => {\n return select(\"presto-player/player\")?.playerCSS();\n });\n\n const mutedOverlayContent = () => {\n return (\n <div\n className=\"presto-player__overlay is-image\"\n style={{\n position: \"absolute\",\n width: `${mutedOverlay?.width || 100}%`,\n left: `${(mutedOverlay?.focalPoint?.x || 0.5) * 100}%`,\n top: `${(mutedOverlay?.focalPoint?.y || 0.5) * 100}%`,\n }}\n >\n <img\n src={mutedOverlay?.src}\n style={{\n transform: \"translateX(-50%) translateY(-50%)\",\n }}\n />\n </div>\n );\n };\n\n return (\n <div\n className=\"wp-block-video presto-block-video\"\n style={{\n \"--presto-player-border-radius\": `${preset?.border_radius}px`,\n ...(preset?.caption_background\n ? { \"--plyr-captions-background\": preset.caption_background }\n : {}),\n ...(branding?.color ? { \"--plyr-color-main\": branding.color } : {}),\n \"--presto-player-email-border-radius\": `${\n preset?.email_collection?.border_radius || 0\n }px`,\n \"--presto-player-logo-width\": `${branding?.logo_width || 75}px`,\n }}\n >\n <PrestoPlayer\n src={src}\n css={css}\n isAdmin={true}\n preload=\"metadata\"\n preset={preset}\n bunny={{\n thumbnail: attributes?.previewThumbnail,\n preview: attributes?.preview,\n }}\n youtube={{\n channelId: youtube?.channel_id,\n }}\n tracks={\n !!preset?.captions && [\n {\n kind: \"captions\",\n label: \"English\",\n srclang: \"en\",\n src: \"/path/to/captions.en.vtt\",\n default: true,\n },\n ]\n }\n branding={branding}\n chapters={chapters}\n blockAttributes={attributes}\n poster={attributes.poster}\n provider={type}\n >\n <div slot=\"player-end\">\n {mutedPreview?.enabled &&\n mutedOverlay?.enabled &&\n mutedOverlayContent()}\n {adminPreview}\n </div>\n </PrestoPlayer>\n </div>\n );\n};\n","const { __ } = wp.i18n;\n\nconst { Flex, FlexBlock, FlexItem, Spinner, Button, TextControl } =\n wp.components;\n\nimport { history } from \"@/router/context\";\nimport DatePicker from \"../components/DatePicker\";\nimport VideoAverageWatchTime from \"../components/VideoAverageWatchTime\";\nimport VideoTimeline from \"../components/VideoTimeline\";\nimport VideoViews from \"../components/VideoViews\";\nimport Player from \"../../blocks/shared/Player\";\n\nconst { useEffect, useState } = wp.element;\nconst { apiFetch } = wp;\n\nconst Video = ({ route, startDate, endDate, setStartDate, setEndDate }) => {\n const [loading, setLoading] = useState(true);\n const [video, setVideo] = useState({});\n const [error, setError] = useState(\"\");\n const [thisName, setThisName] = useState(null);\n const [editing, setEditing] = useState(false);\n\n const back = () => {\n history.push(`#/`);\n };\n\n const getVideo = async () => {\n setLoading(true);\n try {\n let video = await apiFetch({\n url: `${prestoPlayer?.root}${prestoPlayer?.prestoVersionString}videos/${route?.params?.id}`,\n });\n setVideo(video);\n setThisName(video?.title);\n } catch (e) {\n if (e.code === \"rest_no_route\") {\n setError(\"Video Not Found\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n const putVideo = async () => {\n console.log(`New Video title ${thisName}`);\n setLoading(true);\n try {\n const data = {\n ...video,\n ...{ title: thisName },\n };\n let saved = await wp.apiFetch({\n method: \"POST\",\n url: wp.url.addQueryArgs(\n `${prestoPlayer.root}${prestoPlayer.prestoVersionString}videos/${video.id}`,\n { _method: \"PUT\" }\n ),\n data,\n });\n\n if (!saved) {\n throw genericError;\n }\n setEditing(false);\n setVideo(saved);\n } catch (e) {\n setError(e?.message ? e.message : genericError);\n } finally {\n setLoading(false);\n }\n };\n\n const cancelEditing = () => {\n setThisName(video?.title);\n setEditing(false);\n };\n\n const renderVideoEditableTitle = () => {\n if (loading) {\n return <Spinner />;\n } else if (editing) {\n return (\n <div className=\"presto-inline-edit presto-inline-edit--editing\">\n <TextControl\n className=\"presto-inline-edit__input\"\n type=\"text\"\n value={thisName}\n onChange={(title) => setThisName(title)}\n />\n <Button\n className=\"presto-inline-edit__button\"\n isPrimary\n onClick={putVideo}\n >\n {\" \"}\n Save{\" \"}\n </Button>\n <Button\n className=\"presto-inline-edit__button\"\n isSecondary\n onClick={cancelEditing}\n >\n {\" \"}\n Cancel{\" \"}\n </Button>\n </div>\n );\n } else {\n return (\n <div className=\"presto-inline-edit\">\n <h1 className=\"presto-dashboard__title presto-inline-edit__text\">\n {video?.title}\n </h1>\n\n <button\n className=\"presto-inline-edit__edit\"\n onClick={() => setEditing(true)}\n >\n <span className=\"dashicon dashicons dashicons-edit\"></span>\n </button>\n </div>\n );\n }\n };\n\n useEffect(() => {\n getVideo();\n }, []);\n\n if (error) {\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <h2>{error}</h2>\n </FlexBlock>\n </Flex>\n </div>\n );\n }\n\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <Button isSecondary onClick={back}>\n ← {__(\"Back to Dashboard\", \"presto-player\")}\n </Button>\n </FlexBlock>\n </Flex>\n <Flex wrap>\n <FlexBlock>{renderVideoEditableTitle()}</FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-dashboard presto-flow\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <VideoViews\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n {!!Object.keys(video || {}).length && (\n <Player\n src={video?.src}\n attributes={{}}\n type={video?.type}\n preset={{\n \"play-large\": true,\n play: true,\n progress: true,\n \"current-time\": true,\n }}\n />\n )}\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoAverageWatchTime\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <VideoTimeline\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default Video;\n","export const routes = {\n dashboard: {\n path: \"/\",\n },\n video: {\n path: \"/video/:id\",\n },\n user: {\n path: \"/user/:id\",\n },\n};\n","const { useState } = wp.element;\n\nimport { Route, Router } from \"@/router\";\n\nimport AnalyticsUpgrade from \"./pages/AnalyticsUpgrade\";\nimport Dashboard from \"./pages/Dashboard\";\n\nimport User from \"./pages/User\";\nimport Video from \"./pages/Video\";\nimport { routes } from \"./routes\";\n\nexport default () => {\n const scrollToTop = () => {\n window.scrollTo(0, 0);\n };\n\n const [startDate, setStartDate] = useState(\n new Date(Date.now() - 7 * 24 * 60 * 60 * 1000)\n );\n const [endDate, setEndDate] = useState(new Date());\n\n if (!prestoPlayer?.isPremium) {\n return (\n <div className=\"presto-dashboard__content\">\n <AnalyticsUpgrade />\n </div>\n );\n }\n\n return (\n <div className=\"presto-dashboard__content\">\n <Router routes={routes}>\n <Route path={routes.dashboard.path} onRoute={scrollToTop}>\n <Dashboard\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n <Route path={routes.video.path} onRoute={scrollToTop}>\n <Video\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n <Route path={routes.user.path} onRoute={scrollToTop}>\n <User\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n </Router>\n </div>\n );\n};\n","const { render } = wp.element;\n\nimport { defineCustomElements } from \"@presto-player/components/dist/custom-elements\";\n\ndefineCustomElements();\n\n/**\n * App\n */\nimport App from \"./App\";\n\n/**\n * styles\n */\nimport \"./analytics.scss\";\n\n/**\n * Render\n */\nrender(<App />, document.getElementById(\"presto-analytics-page\"));\n"],"sourceRoot":""}
|
dist/analytics/admin-6b67906f.js
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/
|
18 |
+
(window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[1],{31:function(e,t,a){a(32),e.exports=a(44)},34:function(e,t){function a(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}a.keys=function(){return[]},a.resolve=a,e.exports=a,a.id=34},44:function(e,t,a){"use strict";a.r(t);var r=a(23),n=a(1),c=a(6),l=a(7),o=a(5),i=a(8),s=a(14),p=a(11),d=a(4),u=a(27),m=a.n(u);function f(e){return{path:e.pathname,hash:e.hash,query:m.a.parse(e.search)}}var h=a(30),b=Object(h.a)(),y=wp.element.createContext({route:f(b.location)}),v=a(16),w=wp.element.useContext,E="";function g(e){var t=e.path,a=e.onRoute,r=e.children,n=w(y).route,c=Object(v.a)("".concat(t))("".concat(n.hash.substr(1)));return c?(a&&(E!==c.path&&a(),E=c.path),React.createElement("div",null,wp.element.cloneElement(r,{route:c}))):null}var R=a(21),O=a.n(R);wp.element.useContext;function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=Object(p.a)(e);if(t){var n=Object(p.a)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return Object(s.a)(this,a)}}var x=function(e){Object(i.a)(a,e);var t=j(a);function a(e){var r;Object(c.a)(this,a),r=t.call(this,e),Object(d.a)(Object(o.a)(r),"handleRouteChange",(function(e){var t=f(null==e?void 0:e.location);r.setState({route:t})})),r.routes=Object.keys(e.routes).map((function(t){return e.routes[t].path})),r.unlisten=b.listen(r.handleRouteChange);var n=f(b.location);return r.state={route:n,defaultRoute:null!=e&&e.defaultRoute?"#".concat(null==e?void 0:e.defaultRoute):"#/"},r}return Object(l.a)(a,[{key:"componentWillUnmount",value:function(){this.unlisten()}},{key:"render",value:function(){var e=this.props,t=e.children,a=(e.NotFound,this.state),r=a.route,n=a.defaultRoute;if(!r.hash)return b.push(n),React.createElement("div",null);var c=!1;(this.routes||[]).forEach((function(e){var t=Object(v.a)(r.hash.substr(1))("".concat(r.hash.substr(1)));t&&(c={name:e,data:t})}));var l={route:r,matched:c},o=!c;return React.createElement(y.Provider,{value:l},o?React.createElement("div",null,"Not found"):t)}}]),a}(wp.element.Component),_=function(e){var t=e.width,a=e.height;return React.createElement("svg",{id:"e8f68bdd-4984-4f2e-95b7-7fc8ec281257","data-name":"Layer 1",width:t,height:a,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 918.14 765.54"},React.createElement("defs",null,React.createElement("linearGradient",{id:"27aa7b70-b106-4a00-be67-693c8380e41d",x1:"397.74",y1:"717.25",x2:"397.74",y2:"86.11",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:"0","stop-color":"gray","stop-opacity":"0.25"}),React.createElement("stop",{offset:"0.54","stop-color":"gray","stop-opacity":"0.12"}),React.createElement("stop",{offset:"1","stop-color":"gray","stop-opacity":"0.1"})),React.createElement("linearGradient",{id:"46a816da-c484-41ec-8a6f-fbf14454d910",x1:"288.88",y1:"378.44",x2:"288.88",y2:"209.65",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"32b634d8-28f1-48d9-a868-f602a2cad942",x1:"288.88",y1:"328.29",x2:"288.88",y2:"223.1",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("clipPath",{id:"7a4c6aff-0be0-461b-a111-b3ae1b8fbf73",transform:"translate(-140.93 -67.23)"},React.createElement("rect",{id:"8cc91f6d-19b0-43cc-9c18-2faa83ac34ba","data-name":"<Rectangle>",x:"354.51",y:"291.55",width:"150.6",height:"101.52",fill:"#fff"})),React.createElement("linearGradient",{id:"38f1cb81-8fac-4205-a0ff-a33ac00d354c",x1:"288.88",y1:"594.94",x2:"288.88",y2:"426.14",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"6fc01aaf-135e-403e-a209-43b2a4fe59f1",x1:"288.88",y1:"544.79",x2:"288.88",y2:"439.6",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("clipPath",{id:"79ce363a-d134-40e4-9f82-b96d04a36978",transform:"translate(-140.93 -67.23)"},React.createElement("rect",{id:"5b44e697-61fe-43bd-9a58-5f3e41301748","data-name":"<Rectangle>",x:"354.51",y:"508.05",width:"150.6",height:"101.52",fill:"#fff"})),React.createElement("linearGradient",{id:"54803c44-522d-4b9e-9a34-f1f7b43e8483",x1:"671.57",y1:"760.34",x2:"671.57",y2:"129.2",gradientTransform:"translate(1109.43 -194.1) rotate(90)",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"089a6a47-adaa-499b-aefb-cd6464b62fb8",x1:"670.96",y1:"553.63",x2:"670.96",y2:"387.28",gradientTransform:"translate(1129.51 -168.41) rotate(90)",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"fd8d88e0-7826-450d-9e0b-001d1be709c2",x1:"637.66",y1:"754.12",x2:"637.66",y2:"601.05",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"8d1793c5-b76e-44e2-a52e-569460402331",x1:"778.37",y1:"673.86",x2:"778.37",y2:"569.13",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"4745700d-8097-45ff-9f71-625443fc4ad8",x1:"778.37",y1:"774.41",x2:"778.37",y2:"713.66",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"})),React.createElement("title",null,"secure data"),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"162.9",y:"86.11",width:"469.69",height:"631.14",fill:"url(#27aa7b70-b106-4a00-be67-693c8380e41d)"})),React.createElement("rect",{x:"169.02",y:"94.67",width:"455.01",height:"609.12",fill:"#f2f2f2"}),React.createElement("rect",{x:"204.49",y:"120.36",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"204.49",y:"142.37",width:"156.56",height:"4.89",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"384.29",y:"120.36",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"408.75",y:"259.8",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"412.42",y:"273.25",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"419.76",y:"286.7",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"408.75",y:"476.29",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"412.42",y:"489.75",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"419.76",y:"503.2",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"205.71",y:"209.65",width:"166.35",height:"168.79",fill:"url(#46a816da-c484-41ec-8a6f-fbf14454d910)"})),React.createElement("rect",{x:"206.76",y:"213.32",width:"163.72",height:"161.45",fill:"#f5f5f5"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"212.53",y:"223.1",width:"152.7",height:"105.19",fill:"url(#32b634d8-28f1-48d9-a868-f602a2cad942)"})),React.createElement("rect",{id:"689f37f3-cc41-448d-b172-63ec123bc985","data-name":"<Rectangle>",x:"213.58",y:"224.32",width:"150.6",height:"101.52",fill:"#fff"}),React.createElement("g",{"clip-path":"url(#7a4c6aff-0be0-461b-a111-b3ae1b8fbf73)"},React.createElement("polygon",{points:"200.82 322.18 238.74 263.46 254.64 289.15 288.88 253.68 318.24 289.15 343.93 236.56 409.98 341.75 195.93 334.41 200.82 322.18",fill:"#6c63ff",opacity:"0.4"}),React.createElement("circle",{cx:"230.17",cy:"239",r:"11.01",fill:"#6c63ff",opacity:"0.4"})),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"205.71",y:"426.14",width:"166.35",height:"168.79",fill:"url(#38f1cb81-8fac-4205-a0ff-a33ac00d354c)"})),React.createElement("rect",{x:"206.76",y:"429.81",width:"163.72",height:"161.45",fill:"#f5f5f5"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"212.53",y:"439.6",width:"152.7",height:"105.19",fill:"url(#6fc01aaf-135e-403e-a209-43b2a4fe59f1)"})),React.createElement("rect",{id:"b429ac3a-f8a8-4171-bcce-5b6c002c0714","data-name":"<Rectangle>",x:"213.58",y:"440.82",width:"150.6",height:"101.52",fill:"#fff"}),React.createElement("g",{"clip-path":"url(#79ce363a-d134-40e4-9f82-b96d04a36978)"},React.createElement("polygon",{points:"200.82 538.67 238.74 479.96 254.64 505.65 288.88 470.18 318.24 505.65 343.93 453.05 409.98 558.24 195.93 550.9 200.82 538.67",fill:"#bdbdbd",opacity:"0.4"}),React.createElement("circle",{cx:"230.17",cy:"455.5",r:"11.01",fill:"#bdbdbd",opacity:"0.4"})),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"349.09",y:"242.63",width:"631.14",height:"469.69",transform:"translate(-74.16 969.06) rotate(-78.76)",fill:"url(#54803c44-522d-4b9e-9a34-f1f7b43e8483)"})),React.createElement("rect",{x:"359.37",y:"247.33",width:"609.12",height:"455.01",transform:"translate(-72.16 966.22) rotate(-78.76)",fill:"#fff"}),React.createElement("rect",{x:"523.5",y:"197.22",width:"322.91",height:"4.89",transform:"translate(-88.86 -196.94) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"433.36",y:"650.7",width:"322.91",height:"4.89",transform:"translate(-2.18 -170.66) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"428.58",y:"671.14",width:"249.52",height:"4.89",transform:"translate(1.01 -162.18) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"424.6",y:"683.47",width:"92.96",height:"4.89",transform:"translate(1.84 -145.91) rotate(11.24)",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"519.57",y:"209.08",width:"161.45",height:"4.89",transform:"translate(-88.17 -180.2) rotate(11.24)",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"512.84",y:"249.31",width:"291.11",height:"4.89",transform:"translate(-79.21 -190.76) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"509.47",y:"255.44",width:"70.94",height:"4.89",transform:"translate(-80.19 -168.52) rotate(11.24)",fill:"#3ad29f",opacity:"0.7"}),React.createElement("rect",{x:"501.56",y:"307.59",width:"322.91",height:"4.89",transform:"translate(-67.76 -190.54) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"575.87",y:"357.6",width:"166.35",height:"289.88",transform:"translate(-103.27 983.74) rotate(-78.76)",fill:"url(#089a6a47-adaa-499b-aefb-cd6464b62fb8)"})),React.createElement("rect",{x:"516.06",y:"420.61",width:"286.22",height:"162.68",transform:"translate(-30.42 -186.11) rotate(11.24)",fill:"#fff"}),React.createElement("rect",{x:"496.08",y:"335.18",width:"322.91",height:"4.89",transform:"translate(-62.49 -188.94) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"547.86",y:"424.02",width:"35.47",height:"118.64",transform:"translate(-35.84 -168.22) rotate(11.24)",fill:"#6c63ff"}),React.createElement("rect",{x:"606.43",y:"475.19",width:"35.47",height:"79.5",transform:"translate(-28.56 -179.03) rotate(11.24)",fill:"#3ad29f"}),React.createElement("rect",{x:"665.23",y:"523.93",width:"35.47",height:"42.81",transform:"translate(-21.5 -189.92) rotate(11.24)",fill:"#f55f44"}),React.createElement("rect",{x:"731.91",y:"492.72",width:"35.47",height:"86.84",transform:"translate(-22.02 -203.09) rotate(11.24)",fill:"#fdd835"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"128.65",y:"645.09",width:"3.67",height:"20.79",fill:"#47e6b1"}),React.createElement("rect",{x:"269.58",y:"712.31",width:"3.67",height:"20.79",transform:"translate(853.2 384.07) rotate(90)",fill:"#47e6b1"})),React.createElement("path",{d:"M699.44,75.56a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,699.44,75.56Z",transform:"translate(-140.93 -67.23)",fill:"#4d8af0",opacity:"0.5"}),React.createElement("path",{d:"M286.33,179.4a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,286.33,179.4Z",transform:"translate(-140.93 -67.23)",fill:"#fdd835",opacity:"0.5"}),React.createElement("path",{d:"M253.63,484.46a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,253.63,484.46Z",transform:"translate(-140.93 -67.23)",fill:"#fdd835",opacity:"0.5"}),React.createElement("circle",{cx:"337.81",cy:"28.62",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"7.34",cy:"317.46",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"863.76",cy:"120.36",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"822.17",cy:"339.3",r:"7.34",fill:"#4d8af0",opacity:"0.5"}),React.createElement("circle",{cx:"37.68",cy:"145.22",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("circle",{cx:"853.29",cy:"647.34",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("circle",{cx:"910.8",cy:"430.97",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("rect",{x:"544.42",y:"601.05",width:"186.48",height:"153.07",fill:"url(#fd8d88e0-7826-450d-9e0b-001d1be709c2)"}),React.createElement("path",{d:"M723.82,639a54.55,54.55,0,0,1,109.1,0v34.91h15.27V639a69.82,69.82,0,0,0-139.65,0v34.91h15.27Z",transform:"translate(-140.93 -67.23)",fill:"url(#8d1793c5-b76e-44e2-a52e-569460402331)"}),React.createElement("path",{d:"M726,638.25a52.37,52.37,0,1,1,104.74,0v33.52H845.4V638.25a67,67,0,0,0-134.06,0v33.52H726Z",transform:"translate(-140.93 -67.23)",fill:"#f5f5f5"}),React.createElement("rect",{x:"546.32",y:"602.45",width:"182.24",height:"148.73",fill:"#6c63ff"}),React.createElement("rect",{x:"546.32",y:"602.45",width:"182.24",height:"148.73",fill:"#f5f5f5"}),React.createElement("rect",{x:"546.32",y:"631.77",width:"182.24",height:"90.07",fill:"#6c63ff"}),React.createElement("path",{d:"M791.73,727a13.36,13.36,0,1,0-23.08,9.15v28.51a9.72,9.72,0,0,0,19.44,0V736.18A13.3,13.3,0,0,0,791.73,727Z",transform:"translate(-140.93 -67.23)",fill:"url(#4745700d-8097-45ff-9f71-625443fc4ad8)"}),React.createElement("path",{d:"M789.89,729.38a11.52,11.52,0,1,0-19.9,7.89v24.58a8.38,8.38,0,1,0,16.76,0V737.27A11.47,11.47,0,0,0,789.89,729.38Z",transform:"translate(-140.93 -67.23)",opacity:"0.2"}))},D=wp.i18n.__,P=wp.components,k=P.Flex,N=P.FlexItem,S=P.FlexBlock,F=function(){return React.createElement(k,{style:{padding:"30px",background:"#fff"}},React.createElement(N,null,React.createElement(_,{width:"250px"})),React.createElement(S,{style:{marginLeft:"20px"}},React.createElement("h1",null,D("Get detailed video insights.","presto-player")),React.createElement("p",null,D("Upgrade to Pro and get video insights like plays, watch-time, and drop off numbers.","presto-player")),React.createElement("a",{href:"https://prestoplayer.com",target:"_blank",className:"button button-primary"},D("Learn More","presto-player"))))},C=a(3),T=a(0),M=a.n(T);function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function B(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?I(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):I(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}wp.i18n.__;var V=wp.apiFetch,A=wp.element.useState,H=wp.compose.createHigherOrderComponent,G=function(){return H((function(e){return function(t){var a=A(!1),r=Object(n.a)(a,2),c=r[0],l=r[1],o=A(1),i=Object(n.a)(o,2),s=i[0],p=i[1],d=A(0),u=Object(n.a)(d,2),m=u[0],f=u[1],h=A(0),b=Object(n.a)(h,2),y=b[0],v=b[1],w=A([]),E=Object(n.a)(w,2),g=E[0],R=E[1],O=A(""),j=Object(n.a)(O,2),x=j[0],_=j[1],D=function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.endpoint,r=t.params,n=void 0===r?{}:r,l(!0),e.prev=2,e.next=5,V({path:wp.url.addQueryArgs(a,B({page:s,per_page:5},n)),parse:!1}).then((function(e){var t=e.headers?parseInt(e.headers.get("X-WP-Total")):0,a=e.headers?parseInt(e.headers.get("X-WP-TotalPages")):0;return f(t),v(a),e.json()}));case 5:c=e.sent,R(c),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.message&&_(e.t0.message);case 13:return e.prev=13,l(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement(e,Object.assign({loading:c,setLoading:l,fetchData:D,page:s,setPage:p,total:m,setTotal:f,totalPages:y,setTotalPages:v,data:g,setData:R,error:x,setError:_},t))}}),"withDataList")},U=wp.i18n,L=U.__,W=U.sprintf,Z=function(e){var t=(new Date).getTimezoneOffset();return new Date(e.getTime()-60*t*1e3).toISOString().split("T")[0]+"T00:00:00.000Z"},Y=wp.components,z=Y.Spinner,Q=Y.Flex,X=Y.FlexItem,q=function(e){var t=e.height,a=void 0===t?100:t;return React.createElement(Q,{style:{height:"".concat(a,"px")},align:"center",justify:"center"},React.createElement(X,null,React.createElement(z,null)))},J=wp.i18n.__,K=wp.components,$=K.Card,ee=K.CardBody,te=K.Flex,ae=K.FlexBlock,re=K.Button,ne=K.ButtonGroup,ce=wp.element,le=ce.useState,oe=ce.useEffect,ie=function(e){var t=e.page,a=e.setPage,r=e.perPage,c=e.total,l=e.totalPages,o=le(!1),i=Object(n.a)(o,2),s=i[0],p=i[1],d=le(!1),u=Object(n.a)(d,2),m=u[0],f=u[1],h=le(0),b=Object(n.a)(h,2),y=b[0],v=b[1],w=le(0),E=Object(n.a)(w,2),g=E[0],R=E[1];oe((function(){v(Math.min(r*t,c)),R(r*(t-1)+1)}),[r,t,c]);return oe((function(){p(t-1>0),f(l>=t+1)}),[t,l]),React.createElement($,{size:"large",className:"presto-card pagination"},React.createElement(ee,{className:"presto-flow"},React.createElement(te,null,React.createElement(ae,null,sprintf(J("Showing %1s to %2s of %3s","presto-player"),g,y,c)),React.createElement(ae,null,React.createElement(te,{justify:"flex-end"},React.createElement(ne,null,React.createElement(re,{isSecondary:!0,disabled:!s,onClick:function(){a(Math.max(t-1,0))}},J("Previous","presto-player")),React.createElement(re,{isSecondary:!0,disabled:!m,onClick:function(){a(Math.min(l,t+1))}},J("Next","presto-player"))))))))},se=wp.i18n.__,pe=wp.element,de=(pe.useRef,pe.useEffect,pe.useState,wp.components),ue=de.Card,me=de.CardBody,fe=(de.Flex,de.FlexBlock,de.Button,de.ButtonGroup,function(e){var t=e.columns,a=e.data,r=e.onRowClick,n=e.title;return a.length?React.createElement(ue,{size:"large",className:"presto-card table-card"},React.createElement(me,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},n),React.createElement("table",{role:"table",className:O()("presto-table",{"is-clickable":r})},React.createElement("thead",{role:"rowgroup"},React.createElement("tr",{role:"row"},t&&t.map((function(e){return React.createElement("th",{key:e.key,role:"columnheader"},e.label)})))),React.createElement("tbody",{role:"rowgroup"},a.map((function(e,a){return React.createElement("tr",{role:"row",key:"row-".concat(a),onClick:function(){return r&&r(e)}},t.map((function(t,r){return React.createElement("td",{role:"cell","data-title":t.label,key:"row-".concat(a,"-").concat(r),"aria-label":t.label},t.render?t.render(e):React.createElement("div",null,t.value(e)))})))})))))):React.createElement(ue,{size:"large",className:"presto-card table-card"},React.createElement(me,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},n),React.createElement("div",{style:{opacity:.65}},se("No data available.","presto-player"))))}),he=wp.i18n.__,be=wp.element,ye=(be.useEffect,be.useState,wp.components),ve=ye.Card,we=ye.CardBody,Ee=function(e){var t=e.perPage,a=void 0===t?10:t,r=e.title,n=e.page,c=e.setPage,l=e.loading,o=e.total,i=e.totalPages,s=e.columns,p=e.data,d=e.onSelect;return l?React.createElement(ve,null,React.createElement(q,null)):null!=p&&p.length?React.createElement("div",{className:"datatable"},React.createElement(fe,{data:p,columns:s,perPage:a,onRowClick:d,title:r}),!!o&&React.createElement(ie,{page:n,setPage:c,perPage:a,total:o,totalPages:i})):React.createElement(ve,{size:"large",className:"presto-card"},React.createElement(we,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},r),React.createElement("div",{style:{opacity:.65}},he("No data available.","presto-player"))))};function ge(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Re(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ge(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Oe=wp.i18n.__,je=wp.element.useEffect,xe=(0,wp.compose.compose)([G()])((function(e){var t=e.loading,a=e.page,r=e.setPage,n=e.total,c=e.totalPages,l=e.data,o=e.error,i=e.fetchData,s=e.startDate,p=e.endDate;je((function(){i({endpoint:"/presto-player/v1/analytics/top-users",params:Re(Re({per_page:5},s?{start:Z(s)}:{}),p?{end:Z(p)}:{})})}),[a,s,p]);var d=[{key:"name",label:Oe("Name","presto-player"),value:function(e){var t;return null==e||null===(t=e.user)||void 0===t?void 0:t.name}},{key:"total_view",label:Oe("Total View","presto-player"),value:function(e){var t,a;return null==e||null===(t=e.stats)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.data}},{key:"avg_view_time",label:Oe("Avg View Time","presto-player"),render:function(e){var t,a;return React.createElement("div",{className:"presto-badge"},null==e||null===(t=e.stats)||void 0===t||null===(a=t[1])||void 0===a?void 0:a.data)}}];return o?{error:o}:React.createElement(Ee,{title:Oe("Top Users","presto-player"),page:a,perPage:5,setPage:r,loading:t,total:n,totalPages:c,columns:d,data:l,onSelect:function(e){var t,a;return a=null==e||null===(t=e.user)||void 0===t?void 0:t.id,void b.push("#/user/".concat(a))}})}));function _e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function De(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):_e(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Pe=wp.i18n.__,ke=wp.element.useEffect,Ne=(0,wp.compose.compose)([G()])((function(e){var t=e.loading,a=e.page,r=e.setPage,n=e.total,c=e.totalPages,l=e.data,o=e.error,i=e.fetchData,s=e.startDate,p=e.endDate,d=e.userId;ke((function(){i({endpoint:"/presto-player/v1/analytics/top-videos",params:De(De(De({per_page:10},s?{start:Z(s)}:{}),p?{end:Z(p)}:{}),d?{user_id:d}:{})})}),[a,s,p]);var u=[{key:"name",label:Pe("Name","presto-player"),render:function(e){return React.createElement("h3",{style:{marginBottom:0,wordBreak:"break-all"}},e.video.title?e.video.title:Pe("Untitled","presto-player"))}},{key:"total_view",label:Pe("Total View","presto-player"),value:function(e){return e.stats[0].data}},{key:"avg_view_time",label:Pe("Avg View Time","presto-player"),render:function(e){return React.createElement("div",{className:"presto-badge"},e.stats[1].data)}},{key:"view_more",label:"",render:function(e){return React.createElement("span",{style:{color:"var(--wp-admin-theme-color, #007cba)"}},Pe("View Details","presto-player")," →")}}];return o?{error:o}:React.createElement(Ee,{title:Pe("Top Videos","presto-player"),perPage:10,page:a,setPage:r,loading:t,total:n,totalPages:c,columns:u,data:l,onSelect:function(e){var t,a;a=null==e||null===(t=e.video)||void 0===t?void 0:t.id,b.push("#/video/".concat(a))}})})),Se=wp.apiFetch;Se.use(Se.createNonceMiddleware(prestoPlayer.nonce)),Se.use(Se.createRootURLMiddleware(prestoPlayer.root+prestoPlayer.prestoVersionString));var Fe=Se,Ce=a(17),Te=a.n(Ce);function Me(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Ie(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Me(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Be=wp.i18n,Ve=Be.__,Ae=Be.sprintf,He=wp.components,Ge=(He.Card,He.CardBody),Ue=wp.element,Le=Ue.useState,We=Ue.useEffect,Ze=(Ue.useRef,function(e){var t=Le(!0),a=Object(n.a)(t,2),r=a[0],c=a[1],l=Le(0),o=Object(n.a)(l,2),i=o[0],s=o[1],p=e.startDate,d=e.endDate,u=Le([{name:"Views",data:[]}]),m=Object(n.a)(u,2),f=m[0],h=m[1],b={options:{chart:{toolbar:{show:!1}},yaxis:{min:0,labels:{formatter:function(e){return e<1?0:Math.abs(e)>999?Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)+"k":Math.sign(e)*Math.abs(e).toFixed(0)}}},colors:["#7c3aed"],xaxis:{type:"datetime",min:new Date(p).setHours(0,0,0,0),max:new Date(d).setHours(23,59,59,999)},dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};We((function(){y()}),[e]);var y=function(){c(!0),Fe({path:"/presto-player/v1/analytics/views?"+jQuery.param(Ie(Ie({},p?{start:Z(p)}:{}),d?{end:Z(d)}:{})),parse:!1}).then(function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(t.headers&&t.headers.get("X-WP-Total")),e.next=3,t.json();case 3:a=e.sent,r=[],a.length&&a.forEach((function(e){r.push({x:e.date_time,y:e.total})})),h([{name:"Views",data:r}]);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e)})).finally((function(){c(!1)}))};return r?React.createElement(Ge,null,React.createElement(q,null)):React.createElement(Ge,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},Ae(Ve("%d Unique Views","presto-player"),i)),React.createElement(Te.a,{options:b.options,series:f,type:"area",height:280}))}),Ye=wp.i18n,ze=Ye.__,Qe=Ye.sprintf,Xe=wp.components,qe=(Xe.Card,Xe.CardBody),Je=wp.element,Ke=Je.useState,$e=Je.useEffect,et=(Je.useRef,function(e){var t=Ke(!0),a=Object(n.a)(t,2),r=a[0],c=a[1],l=Ke(0),o=Object(n.a)(l,2),i=o[0],s=o[1],p=e.startDate,d=e.endDate,u=Ke([{name:"Views",data:[]}]),m=Object(n.a)(u,2),f=m[0],h=m[1],b={options:{chart:{toolbar:{show:!1}},yaxis:{labels:{formatter:function(e){return Math.abs(e)>999?Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)+"k min":(Math.sign(e)*Math.abs(e)).toFixed(1)+"min"}}},colors:["#7c3aed"],xaxis:{type:"datetime",min:new Date(p).setHours(0,0,0,0),max:new Date(d).setHours(23,59,59,999)},dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};$e((function(){R()}),[e]);var y,v,w,E,g,R=function(){c(!0),Fe({path:"/presto-player/v1/analytics/watch-time?"+jQuery.param({start:Z(p),end:Z(d)}),parse:!1}).then(function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:a=e.sent,r=a.data,n=a.average,s(parseFloat(n)),c=[],r.length&&r.forEach((function(e){c.push({x:e.date_time,y:(e.total/60).toFixed(2)})})),h([{name:"Watch Time",data:c}]);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e)})).finally((function(){c(!1)}))};return r?React.createElement(qe,null,React.createElement(q,null)):React.createElement(qe,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},Qe(ze("%s average watch time","presto-player"),(y=i,v=Math.floor(y/60/60),w=Math.floor(y/60)-60*v,E=y%60,g="",v&&(g+=W(L("%d hours","presto-player"),v)+", "),w&&(g+=W(L("%d minutes","presto-player"),w)+" "),(v||w)&&E&&(g+=L("and","presto-player")+" "),g+=W(L("%d seconds","presto-player"),E)))),React.createElement(Te.a,{options:b.options,series:f,type:"area",height:280}))}),tt=wp.i18n.__,at=wp.components,rt=at.Panel,nt=at.TabPanel,ct=function(e){var t=e.startDate,a=e.endDate;return React.createElement(rt,null,React.createElement(nt,{className:"presto-module-tabs",onSelect:function(){},tabs:[{name:"views",title:tt("Views","presto-player")},{name:"watch",title:tt("Watch Time","presto-player")}]},(function(e){switch(e.name){case"views":return React.createElement(Ze,{startDate:t,endDate:a});case"watch":return React.createElement(et,{startDate:t,endDate:a});default:return React.createElement(React.Fragment,null,"Not Found")}})))},lt=a(28),ot=a.n(lt),it=(a(40),wp.i18n.__),st=wp.element,pt=st.useRef,dt=st.useEffect,ut=st.useState,mt=function(e){var t=e.startDate,a=e.setStartDate,r=e.endDate,c=e.setEndDate,l=pt(),o=ut(25),i=Object(n.a)(o,2),s=i[0],p=i[1];return dt((function(){new ot.a({element:null==l?void 0:l.current,singleMode:!1,format:"MMMM D YYYY",autoApply:!1,plugins:["ranges"],maxDate:new Date,numberOfMonths:2,buttonText:{apply:it("Apply","presto-player"),cancel:it("Cancel","presto-player")},dropdowns:{minYear:1990,maxYear:null,months:!0,years:!0},setup:function(e){e.setDateRange(t,r),e.on("button:apply",(function(e,t){a(e.dateInstance),c(t.dateInstance),p(l.current.value.length)}))}})}),[l]),React.createElement("div",{className:"component-base-control"},React.createElement("div",{className:"components-base-control__field"},React.createElement("input",{className:"components-text-control__input presto-settings__date-select",ref:l,size:s})))},ft=wp.i18n.__,ht=wp.components,bt=ht.Flex,yt=ht.FlexBlock,vt=ht.FlexItem,wt=(wp.element.useState,function(e){var t=e.startDate,a=e.endDate,r=e.setStartDate,n=e.setEndDate;return React.createElement(React.Fragment,null,React.createElement(bt,null,React.createElement(yt,null,React.createElement("h1",null,ft("Analytics","presto-player"))),React.createElement(vt,null,React.createElement(mt,{startDate:t,setStartDate:r,endDate:a,setEndDate:n}))),React.createElement("div",{className:"presto-flow"},React.createElement("div",{className:"presto-dashboard"},React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ct,{startDate:t,endDate:a})),React.createElement("div",{className:"presto-dashboard__item"},React.createElement(xe,{startDate:t,endDate:a}))),React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(Ne,{startDate:t,endDate:a}))))))}),Et=a(22),gt=wp.components,Rt=gt.Card,Ot=gt.CardBody,jt=function(e){var t=e.loading,a=e.title,r=e.value,n=e.label;return t?React.createElement(Rt,null,React.createElement(Ot,null,React.createElement(q,null))):React.createElement(Rt,{className:"presto-player__stat-card"},React.createElement(Ot,null,React.createElement("div",{className:"presto-subtitle"},a),React.createElement("h1",null,r),React.createElement("div",null,n)))};function xt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function _t(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):xt(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Dt,Pt,kt,Nt=wp.apiFetch,St=wp.element.useState,Ft=wp.compose.createHigherOrderComponent,Ct=function(){return Ft((function(e){return function(t){var a=St(!1),r=Object(n.a)(a,2),c=r[0],l=r[1],o=St([]),i=Object(n.a)(o,2),s=i[0],p=i[1],d=St(""),u=Object(n.a)(d,2),m=u[0],f=u[1],h=function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.endpoint,r=t.params,n=void 0===r?{}:r,l(!0),e.prev=2,e.next=5,Nt({path:wp.url.addQueryArgs(a,_t({},n))});case 5:c=e.sent,p(c),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.message&&f(e.t0.message);case 13:return e.prev=13,l(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement(e,Object.assign({loading:c,setLoading:l,fetchData:h,stat:s,setStat:p,error:m,setError:f},t))}}),"withStat")},Tt=wp.i18n.__,Mt=wp.compose.compose,It=wp.element.useEffect,Bt=Mt([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return It((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/total-views"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(null==n?void 0:n.view),title:Tt("Total Views","presto-player")})})),Vt=wp.i18n.__,At=wp.compose.compose,Ht=wp.element.useEffect,Gt=At([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Ht((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/average-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseFloat(null==n?void 0:n.view).toFixed(2),title:Vt("Average Watch Time","presto-player"),label:Vt("seconds","presto-player")})})),Ut=wp.i18n.__,Lt=wp.compose.compose,Wt=wp.element.useEffect,Zt=Lt([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Wt((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/total-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseFloat(null==n?void 0:n.view).toFixed(2),title:Ut("Total Watch Time","presto-player"),label:Ut("seconds","presto-player")})})),Yt=a(2),zt=wp.i18n.__,Qt=wp.components,Xt=Qt.Flex,qt=Qt.FlexBlock,Jt=Qt.FlexItem,Kt=Qt.Spinner,$t=Qt.Button,ea=wp.element,ta=ea.useEffect,aa=ea.useState,ra=wp.apiFetch,na=function(e){var t,a,r,c,l=e.route,o=e.startDate,i=e.endDate,s=e.setStartDate,p=e.setEndDate,d=aa(!0),u=Object(n.a)(d,2),m=u[0],f=u[1],h=aa({}),y=Object(n.a)(h,2),v=y[0],w=y[1],E=aa(""),g=Object(n.a)(E,2),R=g[0],O=g[1],j=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.prev=1,e.next=4,ra({url:"/wp-json/wp/v2/users/".concat(null==l||null===(t=l.params)||void 0===t?void 0:t.id,"?context=edit")});case 4:a=e.sent,w(a),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),"rest_no_route"===e.t0.code&&O("User Not Found");case 11:return e.prev=11,f(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])})));return function(){return e.apply(this,arguments)}}();return ta((function(){j()}),[]),R?Object(Yt.b)("div",{className:"presto-flow"},Object(Yt.b)(Xt,null,Object(Yt.b)(qt,null,Object(Yt.b)("h2",null,R)))):Object(Yt.b)("div",{className:"presto-flow"},Object(Yt.b)(Xt,null,Object(Yt.b)(qt,null,Object(Yt.b)($t,{isSecondary:!0,onClick:function(){b.push("#/")}},"← ",zt("Back to Dashboard","presto-player")))),Object(Yt.b)(Xt,{wrap:!0},Object(Yt.b)(qt,null,m?Object(Yt.b)(Kt,null):Object(Yt.b)("div",{css:Object(Yt.a)(Dt||(Dt=Object(Et.a)(["\n display: flex;\n align-items: center;\n\n .presto__edit-user-button {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease;\n }\n\n &:hover {\n .presto__edit-user-button {\n opacity: 1;\n visibility: visible;\n }\n }\n "])))},Object(Yt.b)("div",null,Object(Yt.b)("h1",{className:"presto-dashboard__title"},null==v?void 0:v.name),Object(Yt.b)("p",{css:Object(Yt.a)(Pt||(Pt=Object(Et.a)(["\n margin-top: -10px;\n opacity: 0.65;\n "])))},null==v?void 0:v.email)),!!v.id&&Object(Yt.b)("div",{className:"presto__edit-user-button",css:Object(Yt.a)(kt||(kt=Object(Et.a)(["\n margin: 0 20px;\n "])))},Object(Yt.b)($t,{href:"/wp-admin/user-edit.php?user_id=".concat(null==v?void 0:v.id),isSecondary:!0,isSmall:!0},zt("View Profile","presto-player")," →")))),Object(Yt.b)(Jt,null,Object(Yt.b)(mt,{startDate:o,setStartDate:s,endDate:i,setEndDate:p}))),Object(Yt.b)("div",{className:"presto-dashboard presto-flow"},Object(Yt.b)("div",{className:"presto-dashboard__row"},Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Bt,{userId:null==l||null===(t=l.params)||void 0===t?void 0:t.id,startDate:o,endDate:i})),Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Gt,{userId:null==l||null===(a=l.params)||void 0===a?void 0:a.id,startDate:o,endDate:i})),Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Zt,{userId:null==l||null===(r=l.params)||void 0===r?void 0:r.id,startDate:o,endDate:i}))),Object(Yt.b)("div",{className:"presto-dashboard__row"},Object(Yt.b)("div",{className:"presto-dashboard__item is-large"},Object(Yt.b)(Ne,{startDate:o,endDate:i,userId:null==l||null===(c=l.params)||void 0===c?void 0:c.id})))))},ca=wp.i18n.__,la=wp.compose.compose,oa=wp.element.useEffect,ia=la([Ct()])((function(e){var t=e.video_id,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return oa((function(){c({endpoint:"/presto-player/v1/analytics/video/".concat(t,"/average-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(n),title:ca("Average Watch Time","presto-player"),label:ca("seconds","presto-player")})})),sa=wp.i18n,pa=sa.__,da=(sa.sprintf,wp.components),ua=da.Card,ma=da.CardBody,fa=wp.element,ha=fa.useState,ba=fa.useEffect,ya=(fa.useRef,function(e){var t=e.video_id,a=e.startDate,r=e.endDate,c=ha(!0),l=Object(n.a)(c,2),o=l[0],i=l[1],s=ha([{name:"Views",data:[]}]),p=Object(n.a)(s,2),d=p[0],u=p[1];ba((function(){i(!0),Fe({path:wp.url.addQueryArgs("/presto-player/v1/analytics/video/".concat(t,"/timeline"),{start:Z(a),end:Z(r)})}).then((function(e){var t=[];e.length&&e.forEach((function(e){t.push({x:e.watch_time,y:e.total})})),u([{name:"Viewers",data:t}])})).catch((function(e){console.error(e)})).finally((function(){i(!1)}))}),[a,r]);var m={options:{chart:{toolbar:{show:!1}},tickAmount:1,yaxis:{labels:{formatter:function(e){return parseInt(e)}}},xaxis:{labels:{formatter:function(e){return t=e,t=1e3*parseInt(t||0),new Date(t).toISOString().substr(11,8);var t}}},colors:["#7c3aed"],dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};return o?React.createElement(ua,null,React.createElement(ma,null,React.createElement(q,null))):React.createElement(ua,null,React.createElement(ma,null,React.createElement("div",{className:"presto-card__title"},pa("Audience Retention","presto-player")),React.createElement(Te.a,{options:m.options,series:d,type:"area",height:280})))}),va=wp.i18n.__,wa=wp.compose.compose,Ea=wp.element.useEffect,ga=wa([Ct()])((function(e){var t=e.video_id,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Ea((function(){c({endpoint:"/presto-player/v1/analytics/video/".concat(t,"/views"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(n),title:va("Unique Views","presto-player")})})),Ra=a(29);function Oa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function ja(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Oa(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var xa=wp.data.useSelect,_a=function(e){var t,a,r,n=e.src,c=e.preset,l=e.branding,o=e.attributes,i=e.adminPreview,s=e.type,p=o.chapters,d=o.mutedOverlay,u=o.mutedPreview,m=xa((function(e){var t;return null===(t=e("presto-player/player"))||void 0===t?void 0:t.youtube()})),f=xa((function(e){var t;return null===(t=e("presto-player/player"))||void 0===t?void 0:t.playerCSS()}));return React.createElement("div",{className:"wp-block-video presto-block-video",style:ja(ja(ja({"--presto-player-border-radius":"".concat(null==c?void 0:c.border_radius,"px")},null!=c&&c.caption_background?{"--plyr-captions-background":c.caption_background}:{}),null!=l&&l.color?{"--plyr-color-main":l.color}:{}),{},{"--presto-player-email-border-radius":"".concat((null==c||null===(t=c.email_collection)||void 0===t?void 0:t.border_radius)||0,"px"),"--presto-player-logo-width":"".concat((null==l?void 0:l.logo_width)||75,"px")})},React.createElement(Ra.a,{src:n,css:f,isAdmin:!0,preload:"metadata",preset:c,bunny:{thumbnail:null==o?void 0:o.previewThumbnail,preview:null==o?void 0:o.preview},youtube:{channelId:null==m?void 0:m.channel_id},tracks:!(null==c||!c.captions)&&[{kind:"captions",label:"English",srclang:"en",src:"/path/to/captions.en.vtt",default:!0}],branding:l,chapters:p,blockAttributes:o,poster:o.poster,provider:s},React.createElement("div",{slot:"player-end"},(null==u?void 0:u.enabled)&&(null==d?void 0:d.enabled)&&React.createElement("div",{className:"presto-player__overlay is-image",style:{position:"absolute",width:"".concat((null==d?void 0:d.width)||100,"%"),left:"".concat(100*((null==d||null===(a=d.focalPoint)||void 0===a?void 0:a.x)||.5),"%"),top:"".concat(100*((null==d||null===(r=d.focalPoint)||void 0===r?void 0:r.y)||.5),"%")}},React.createElement("img",{src:null==d?void 0:d.src,style:{transform:"translateX(-50%) translateY(-50%)"}})),i)))};function Da(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Pa(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Da(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ka=wp.i18n.__,Na=wp.components,Sa=Na.Flex,Fa=Na.FlexBlock,Ca=Na.FlexItem,Ta=Na.Spinner,Ma=Na.Button,Ia=Na.TextControl,Ba=wp.element,Va=Ba.useEffect,Aa=Ba.useState,Ha=wp.apiFetch,Ga=function(e){var t,a,r,c=e.route,l=e.startDate,o=e.endDate,i=e.setStartDate,s=e.setEndDate,p=Aa(!0),d=Object(n.a)(p,2),u=d[0],m=d[1],f=Aa({}),h=Object(n.a)(f,2),y=h[0],v=h[1],w=Aa(""),E=Object(n.a)(w,2),g=E[0],R=E[1],O=Aa(null),j=Object(n.a)(O,2),x=j[0],_=j[1],D=Aa(!1),P=Object(n.a)(D,2),k=P[0],N=P[1],S=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a,r,n;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.prev=1,e.next=4,Ha({url:"".concat(null===(t=prestoPlayer)||void 0===t?void 0:t.root).concat(null===(a=prestoPlayer)||void 0===a?void 0:a.prestoVersionString,"videos/").concat(null==c||null===(r=c.params)||void 0===r?void 0:r.id)});case 4:n=e.sent,v(n),_(null==n?void 0:n.title),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),"rest_no_route"===e.t0.code&&R("Video Not Found");case 12:return e.prev=12,m(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("New Video title ".concat(x)),m(!0),e.prev=2,t=Pa(Pa({},y),{title:x}),e.next=6,wp.apiFetch({method:"POST",url:wp.url.addQueryArgs("".concat(prestoPlayer.root).concat(prestoPlayer.prestoVersionString,"videos/").concat(y.id),{_method:"PUT"}),data:t});case 6:if(a=e.sent){e.next=9;break}throw genericError;case 9:N(!1),v(a),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),R(null!==e.t0&&void 0!==e.t0&&e.t0.message?e.t0.message:genericError);case 16:return e.prev=16,m(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})));return function(){return e.apply(this,arguments)}}(),T=function(){_(null==y?void 0:y.title),N(!1)};return Va((function(){S()}),[]),g?React.createElement("div",{className:"presto-flow"},React.createElement(Sa,null,React.createElement(Fa,null,React.createElement("h2",null,g)))):React.createElement("div",{className:"presto-flow"},React.createElement(Sa,null,React.createElement(Fa,null,React.createElement(Ma,{isSecondary:!0,onClick:function(){b.push("#/")}},"← ",ka("Back to Dashboard","presto-player")))),React.createElement(Sa,{wrap:!0},React.createElement(Fa,null,u?React.createElement(Ta,null):k?React.createElement("div",{className:"presto-inline-edit presto-inline-edit--editing"},React.createElement(Ia,{className:"presto-inline-edit__input",type:"text",value:x,onChange:function(e){return _(e)}}),React.createElement(Ma,{className:"presto-inline-edit__button",isPrimary:!0,onClick:F}," ","Save"," "),React.createElement(Ma,{className:"presto-inline-edit__button",isSecondary:!0,onClick:T}," ","Cancel"," ")):React.createElement("div",{className:"presto-inline-edit"},React.createElement("h1",{className:"presto-dashboard__title presto-inline-edit__text"},null==y?void 0:y.title),React.createElement("button",{className:"presto-inline-edit__edit",onClick:function(){return N(!0)}},React.createElement("span",{className:"dashicon dashicons dashicons-edit"})))),React.createElement(Ca,null,React.createElement(mt,{startDate:l,setStartDate:i,endDate:o,setEndDate:s}))),React.createElement("div",{className:"presto-dashboard presto-flow"},React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ga,{video_id:null==c||null===(t=c.params)||void 0===t?void 0:t.id,startDate:l,endDate:o})),React.createElement("div",{className:"presto-dashboard__item"},!!Object.keys(y||{}).length&&React.createElement(_a,{src:null==y?void 0:y.src,attributes:{},type:null==y?void 0:y.type,preset:{"play-large":!0,play:!0,progress:!0,"current-time":!0}})),React.createElement("div",{className:"presto-dashboard__item"},React.createElement(ia,{video_id:null==c||null===(a=c.params)||void 0===a?void 0:a.id,startDate:l,endDate:o}))),React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ya,{video_id:null==c||null===(r=c.params)||void 0===r?void 0:r.id,startDate:l,endDate:o})))))},Ua={dashboard:{path:"/"},video:{path:"/video/:id"},user:{path:"/user/:id"}},La=wp.element.useState,Wa=function(){var e,t=function(){window.scrollTo(0,0)},a=La(new Date(Date.now()-6048e5)),r=Object(n.a)(a,2),c=r[0],l=r[1],o=La(new Date),i=Object(n.a)(o,2),s=i[0],p=i[1];return null!==(e=prestoPlayer)&&void 0!==e&&e.isPremium?React.createElement("div",{className:"presto-dashboard__content"},React.createElement(x,{routes:Ua},React.createElement(g,{path:Ua.dashboard.path,onRoute:t},React.createElement(wt,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})),React.createElement(g,{path:Ua.video.path,onRoute:t},React.createElement(Ga,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})),React.createElement(g,{path:Ua.user.path,onRoute:t},React.createElement(na,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})))):React.createElement("div",{className:"presto-dashboard__content"},React.createElement(F,null))},Za=wp.element.render;Object(r.c)(),Za(React.createElement(Wa,null),document.getElementById("presto-analytics-page"))}},[[31,2,3]]]);
|
19 |
+
//# sourceMappingURL=admin-6b67906f.js.map
|
dist/analytics/admin-6b67906f.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./node_modules/@stencil/core/internal/client lazy ^\\.\\/.*$ include: \\.entry\\.js$ exclude: \\.system\\.entry\\.js$ namespace object","webpack:///./src/router/utils.js","webpack:///./src/router/context.js","webpack:///./src/router/route.js","webpack:///./src/router/link.js","webpack:///./src/router/index.js","webpack:///./src/admin/analytics/pages/illustration.js","webpack:///./src/admin/analytics/pages/AnalyticsUpgrade.js","webpack:///./src/admin/analytics/hocs/withDataList.js","webpack:///./src/admin/analytics/util.js","webpack:///./src/admin/settings/components/Loading.js","webpack:///./src/admin/ui/Pagination.js","webpack:///./src/admin/ui/Table.js","webpack:///./src/admin/analytics/components/DataTable.js","webpack:///./src/admin/analytics/components/TopUsers.js","webpack:///./src/admin/analytics/components/TopVideos.js","webpack:///./src/shared/services/fetch.js","webpack:///./src/admin/analytics/components/TotalViewsGraph.js","webpack:///./src/admin/analytics/components/TotalWatchGraph.js","webpack:///./src/admin/analytics/components/OverviewPanel.js","webpack:///./src/admin/analytics/components/DatePicker.js","webpack:///./src/admin/analytics/pages/Dashboard.js","webpack:///./src/admin/ui/StatCard.js","webpack:///./src/admin/analytics/hocs/withStat.js","webpack:///./src/admin/analytics/components/TotalVideoViewsByUser.js","webpack:///./src/admin/analytics/components/VideoAverageWatchTimeByUser.js","webpack:///./src/admin/analytics/components/VideoTotalWatchTimeByUser.js","webpack:///./src/admin/analytics/pages/User.js","webpack:///./src/admin/analytics/components/VideoAverageWatchTime.js","webpack:///./src/admin/analytics/components/VideoTimeline.js","webpack:///./src/admin/analytics/components/VideoViews.js","webpack:///./src/admin/blocks/shared/Player.js","webpack:///./src/admin/analytics/pages/Video.js","webpack:///./src/admin/analytics/routes.js","webpack:///./src/admin/analytics/App.js","webpack:///./src/admin/analytics/index.js"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","module","exports","id","locationToRoute","location","path","pathname","hash","query","qs","parse","search","history","createBrowserHistory","RouterContext","wp","element","createContext","route","useContext","prev","Route","onRoute","children","matched","match","checkMatch","substr","cloneElement","Router","props","setState","routes","Object","map","key","unlisten","listen","handleRouteChange","state","defaultRoute","this","NotFound","push","forEach","name","isMatched","data","routerContextValue","is404","Provider","value","Component","width","height","data-name","xmlns","xmlnsXlink","viewBox","x1","y1","x2","y2","gradientUnits","offset","stop-color","stop-opacity","xlinkHref","transform","x","y","fill","gradientTransform","opacity","clip-path","points","cx","cy","r","d","__","i18n","components","Flex","FlexItem","FlexBlock","style","padding","background","marginLeft","href","target","className","apiFetch","useState","createHigherOrderComponent","compose","WrappedComponent","loading","setLoading","page","setPage","total","setTotal","totalPages","setTotalPages","setData","error","setError","fetchData","a","endpoint","params","url","addQueryArgs","per_page","res","headers","parseInt","get","json","responseData","console","message","sprintf","convertDateTimeToAbsoluteDate","dateTime","Date","getTimezoneOffset","getTime","toISOString","split","Spinner","align","justify","Card","CardBody","Button","ButtonGroup","useEffect","perPage","hasPrevious","setHasPrevious","hasNext","setHasNext","end","setEnd","start","setStart","Math","min","size","isSecondary","disabled","onClick","max","useRef","columns","onRowClick","title","length","role","classNames","column","label","row","rowIndex","columnIndex","data-title","aria-label","render","onSelect","Loading","Table","Pagination","withDataList","startDate","endDate","user","stats","DataTable","userId","user_id","marginBottom","wordBreak","video","color","use","createNonceMiddleware","prestoPlayer","nonce","createRootURLMiddleware","root","prestoVersionString","totalViews","setTotalViews","series","setSeries","chart","options","toolbar","show","yaxis","labels","formatter","num","abs","sign","toFixed","colors","xaxis","type","setHours","dataLabels","enabled","stroke","curve","gradient","shadeIntensity","opacityFrom","opacityTo","stops","fetchViews","jQuery","param","item","date_time","catch","finally","averageTime","setAverageTime","fetchMinutes","savedSeconds","hours","minutes","seconds","out","average","parseFloat","floor","Panel","TabPanel","tabs","tab","TotalViewsGraph","TotalWatchGraph","setStartDate","setEndDate","dateRef","inputSize","setInputSize","Litepicker","current","singleMode","format","autoApply","plugins","maxDate","numberOfMonths","buttonText","apply","cancel","dropdowns","minYear","maxYear","months","years","setup","picker","setDateRange","on","dateInstance","ref","DatePicker","OverviewPanel","TopUsers","TopVideos","stat","setStat","withStat","StatCard","view","User","setUser","getUser","wrap","css","email","isSmall","TotalVideoViewsByUser","VideoAverageWatchTimeByUser","VideoTotalWatchTimeByUser","video_id","watch_time","tickAmount","useSelect","src","preset","branding","attributes","adminPreview","chapters","mutedOverlay","mutedPreview","youtube","select","playerCSS","border_radius","caption_background","email_collection","logo_width","isAdmin","preload","bunny","thumbnail","previewThumbnail","preview","channelId","channel_id","tracks","captions","kind","srclang","default","blockAttributes","poster","provider","slot","position","left","focalPoint","top","TextControl","Video","setVideo","thisName","setThisName","editing","setEditing","getVideo","putVideo","log","method","_method","saved","genericError","cancelEditing","onChange","isPrimary","VideoViews","Player","play","progress","VideoAverageWatchTime","VideoTimeline","dashboard","scrollToTop","window","scrollTo","now","isPremium","Dashboard","AnalyticsUpgrade","defineCustomElements","App","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;8JAAA,SAASA,EAAyBC,GAGjC,OAAOC,QAAQC,UAAUC,MAAK,WAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBL,EAAM,KAEjD,MADAI,EAAEE,KAAO,mBACHF,KAGRL,EAAyBQ,KAAO,WAAa,MAAO,IACpDR,EAAyBG,QAAUH,EACnCS,EAAOC,QAAUV,EACjBA,EAAyBW,GAAK,I,8HCXvB,SAASC,EAAgBC,GAE9B,MAAO,CACLC,KAAMD,EAASE,SACfC,KAAMH,EAASG,KACfC,MAAOC,IAAGC,MAAMN,EAASO,S,YCHhBC,EAAUC,cACVC,EAAgBC,GAAGC,QAAQC,cAAc,CACpDC,MAAOf,EAAgBS,EAAQR,Y,QCJzBe,EAAeJ,GAAGC,QAAlBG,WAEJC,EAAO,GAEJ,SAASC,EAAT,GAA6C,IAA5BhB,EAA2B,EAA3BA,KAAMiB,EAAqB,EAArBA,QAASC,EAAY,EAAZA,SAE7BL,EAAUC,EAAWL,GAArBI,MAGFM,EADaC,YAAM,GAAD,OAAIpB,GACZqB,CAAW,GAAD,OAAIR,EAAMX,KAAKoB,OAAO,KAEhD,OAAKH,GAI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AWA,EACXC,QAASA,EACTqE,aAAcA,EACdC,WAAYA,KAGhB,oBAAClO,EAAD,CAAOhB,KAAM2B,GAAOyJ,MAAMpL,KAAMiB,QAAS8U,GACvC,oBAAC,GAAD,CACEpL,UAAWA,EACXC,QAASA,EACTqE,aAAcA,EACdC,WAAYA,KAGhB,oBAAClO,EAAD,CAAOhB,KAAM2B,GAAOkJ,KAAK7K,KAAMiB,QAAS8U,GACtC,oBAAC,GAAD,CACEpL,UAAWA,EACXC,QAASA,EACTqE,aAAcA,EACdC,WAAYA,OA9BlB,2BAAK3J,UAAU,6BACb,oBAAC8Q,EAAD,QCxBAhM,GAAW3J,GAAGC,QAAd0J,OAIRiM,cAeAjM,GAAO,oBAACkM,GAAD,MAASC,SAASC,eAAe,4B","file":"analytics/admin-6b67906f.js","sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 34;","import qs from \"querystringify\";\nexport function locationToRoute(location) {\n // location comes from the history package\n return {\n path: location.pathname,\n hash: location.hash,\n query: qs.parse(location.search),\n };\n}\n","import { createBrowserHistory } from \"history\";\nimport { locationToRoute } from \"./utils\";\n\nexport const history = createBrowserHistory();\nexport const RouterContext = wp.element.createContext({\n route: locationToRoute(history.location),\n});\n","import { RouterContext } from \"./context\";\nconst { useContext } = wp.element;\nimport { match } from \"path-to-regexp\";\nlet prev = \"\";\n\nexport function Route({ path, onRoute, children }) {\n // Extract route from RouterContext\n const { route } = useContext(RouterContext);\n\n const checkMatch = match(`${path}`);\n const matched = checkMatch(`${route.hash.substr(1)}`);\n\n if (!matched) {\n return null;\n }\n\n if (onRoute) {\n if (prev !== matched.path) {\n onRoute();\n }\n prev = matched.path;\n }\n\n return <div>{wp.element.cloneElement(children, { route: matched })}</div>;\n}\n","const { useContext } = wp.element;\nimport { RouterContext, history } from \"./context\";\nimport classNames from \"classnames\";\nimport { match } from \"path-to-regexp\";\n\nexport function Link(props) {\n const { to, onClick, children, activeClassName } = props;\n const { route } = useContext(RouterContext);\n\n let state = { ...props };\n delete state.activeClassName;\n\n const isActive = () => {\n const checkMatch = match(`${to}`);\n return checkMatch(`${route.hash.substr(1)}`);\n };\n\n const handleClick = (e) => {\n e.preventDefault();\n // Dont' navigate if current path\n if (route.path === to) {\n return;\n }\n // Trigger onClick prop manually\n if (onClick) {\n onClick(e);\n }\n // Use history API to navigate page\n history.push(`#${to}`);\n };\n\n return (\n <a\n {...state}\n className={classNames({ [activeClassName]: isActive() }, props.className)}\n onClick={handleClick}\n >\n {children}\n </a>\n );\n}\n","const { Component } = wp.element;\nimport { locationToRoute } from \"./utils\";\nimport { history, RouterContext } from \"./context\";\nimport { Route } from \"./route\";\nimport { Link } from \"./link\";\nimport { match } from \"path-to-regexp\";\n\nclass Router extends Component {\n constructor(props) {\n super(props);\n\n // Convert our routes into an array for easy 404 checking\n this.routes = Object.keys(props.routes).map(\n (key) => props.routes[key].path\n );\n\n // Listen for path changes from the history API\n this.unlisten = history.listen(this.handleRouteChange);\n\n const route = locationToRoute(history.location);\n\n // Define the initial RouterContext value\n this.state = {\n route,\n defaultRoute: props?.defaultRoute ? `#${props?.defaultRoute}` : \"#/\",\n };\n }\n\n componentWillUnmount() {\n // Stop listening for changes if the Router component unmounts\n this.unlisten();\n }\n\n handleRouteChange = (location) => {\n const route = locationToRoute(location?.location);\n this.setState({ route: route });\n };\n\n render() {\n // Define our variables\n const { children, NotFound } = this.props;\n const { route, defaultRoute } = this.state;\n\n if (!route.hash) {\n history.push(defaultRoute);\n return <div></div>;\n }\n\n let matched = false;\n // match route\n (this.routes || []).forEach((name) => {\n const checkMatch = match(route.hash.substr(1));\n const isMatched = checkMatch(`${route.hash.substr(1)}`);\n if (!isMatched) {\n return;\n }\n matched = {\n name,\n data: isMatched,\n };\n });\n\n const routerContextValue = { route, matched };\n\n // Check if 404 if no route matched\n const is404 = !matched;\n\n return (\n <RouterContext.Provider value={routerContextValue}>\n {is404 ? <div>Not found</div> : children}\n </RouterContext.Provider>\n );\n }\n}\nexport { history, RouterContext, Router, Route, Link };\n","export default ({ width, height }) => {\n return (\n <svg\n id=\"e8f68bdd-4984-4f2e-95b7-7fc8ec281257\"\n data-name=\"Layer 1\"\n width={width}\n height={height}\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"0 0 918.14 765.54\"\n >\n <defs>\n <linearGradient\n id=\"27aa7b70-b106-4a00-be67-693c8380e41d\"\n x1=\"397.74\"\n y1=\"717.25\"\n x2=\"397.74\"\n y2=\"86.11\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stop-color=\"gray\" stop-opacity=\"0.25\" />\n <stop offset=\"0.54\" stop-color=\"gray\" stop-opacity=\"0.12\" />\n <stop offset=\"1\" stop-color=\"gray\" stop-opacity=\"0.1\" />\n </linearGradient>\n <linearGradient\n id=\"46a816da-c484-41ec-8a6f-fbf14454d910\"\n x1=\"288.88\"\n y1=\"378.44\"\n x2=\"288.88\"\n y2=\"209.65\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"32b634d8-28f1-48d9-a868-f602a2cad942\"\n x1=\"288.88\"\n y1=\"328.29\"\n x2=\"288.88\"\n y2=\"223.1\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <clipPath\n id=\"7a4c6aff-0be0-461b-a111-b3ae1b8fbf73\"\n transform=\"translate(-140.93 -67.23)\"\n >\n <rect\n id=\"8cc91f6d-19b0-43cc-9c18-2faa83ac34ba\"\n data-name=\"<Rectangle>\"\n x=\"354.51\"\n y=\"291.55\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n </clipPath>\n <linearGradient\n id=\"38f1cb81-8fac-4205-a0ff-a33ac00d354c\"\n x1=\"288.88\"\n y1=\"594.94\"\n x2=\"288.88\"\n y2=\"426.14\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"6fc01aaf-135e-403e-a209-43b2a4fe59f1\"\n x1=\"288.88\"\n y1=\"544.79\"\n x2=\"288.88\"\n y2=\"439.6\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <clipPath\n id=\"79ce363a-d134-40e4-9f82-b96d04a36978\"\n transform=\"translate(-140.93 -67.23)\"\n >\n <rect\n id=\"5b44e697-61fe-43bd-9a58-5f3e41301748\"\n data-name=\"<Rectangle>\"\n x=\"354.51\"\n y=\"508.05\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n </clipPath>\n <linearGradient\n id=\"54803c44-522d-4b9e-9a34-f1f7b43e8483\"\n x1=\"671.57\"\n y1=\"760.34\"\n x2=\"671.57\"\n y2=\"129.2\"\n gradientTransform=\"translate(1109.43 -194.1) rotate(90)\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"089a6a47-adaa-499b-aefb-cd6464b62fb8\"\n x1=\"670.96\"\n y1=\"553.63\"\n x2=\"670.96\"\n y2=\"387.28\"\n gradientTransform=\"translate(1129.51 -168.41) rotate(90)\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"fd8d88e0-7826-450d-9e0b-001d1be709c2\"\n x1=\"637.66\"\n y1=\"754.12\"\n x2=\"637.66\"\n y2=\"601.05\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"8d1793c5-b76e-44e2-a52e-569460402331\"\n x1=\"778.37\"\n y1=\"673.86\"\n x2=\"778.37\"\n y2=\"569.13\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"4745700d-8097-45ff-9f71-625443fc4ad8\"\n x1=\"778.37\"\n y1=\"774.41\"\n x2=\"778.37\"\n y2=\"713.66\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n </defs>\n <title>secure data</title>\n <g opacity=\"0.5\">\n <rect\n x=\"162.9\"\n y=\"86.11\"\n width=\"469.69\"\n height=\"631.14\"\n fill=\"url(#27aa7b70-b106-4a00-be67-693c8380e41d)\"\n />\n </g>\n <rect\n x=\"169.02\"\n y=\"94.67\"\n width=\"455.01\"\n height=\"609.12\"\n fill=\"#f2f2f2\"\n />\n <rect x=\"204.49\" y=\"120.36\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect\n x=\"204.49\"\n y=\"142.37\"\n width=\"156.56\"\n height=\"4.89\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect x=\"384.29\" y=\"120.36\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"408.75\" y=\"259.8\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"412.42\" y=\"273.25\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"419.76\" y=\"286.7\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"408.75\" y=\"476.29\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"412.42\" y=\"489.75\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"419.76\" y=\"503.2\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <g opacity=\"0.5\">\n <rect\n x=\"205.71\"\n y=\"209.65\"\n width=\"166.35\"\n height=\"168.79\"\n fill=\"url(#46a816da-c484-41ec-8a6f-fbf14454d910)\"\n />\n </g>\n <rect\n x=\"206.76\"\n y=\"213.32\"\n width=\"163.72\"\n height=\"161.45\"\n fill=\"#f5f5f5\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"212.53\"\n y=\"223.1\"\n width=\"152.7\"\n height=\"105.19\"\n fill=\"url(#32b634d8-28f1-48d9-a868-f602a2cad942)\"\n />\n </g>\n <rect\n id=\"689f37f3-cc41-448d-b172-63ec123bc985\"\n data-name=\"<Rectangle>\"\n x=\"213.58\"\n y=\"224.32\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n <g clip-path=\"url(#7a4c6aff-0be0-461b-a111-b3ae1b8fbf73)\">\n <polygon\n points=\"200.82 322.18 238.74 263.46 254.64 289.15 288.88 253.68 318.24 289.15 343.93 236.56 409.98 341.75 195.93 334.41 200.82 322.18\"\n fill=\"#6c63ff\"\n opacity=\"0.4\"\n />\n <circle cx=\"230.17\" cy=\"239\" r=\"11.01\" fill=\"#6c63ff\" opacity=\"0.4\" />\n </g>\n <g opacity=\"0.5\">\n <rect\n x=\"205.71\"\n y=\"426.14\"\n width=\"166.35\"\n height=\"168.79\"\n fill=\"url(#38f1cb81-8fac-4205-a0ff-a33ac00d354c)\"\n />\n </g>\n <rect\n x=\"206.76\"\n y=\"429.81\"\n width=\"163.72\"\n height=\"161.45\"\n fill=\"#f5f5f5\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"212.53\"\n y=\"439.6\"\n width=\"152.7\"\n height=\"105.19\"\n fill=\"url(#6fc01aaf-135e-403e-a209-43b2a4fe59f1)\"\n />\n </g>\n <rect\n id=\"b429ac3a-f8a8-4171-bcce-5b6c002c0714\"\n data-name=\"<Rectangle>\"\n x=\"213.58\"\n y=\"440.82\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n <g clip-path=\"url(#79ce363a-d134-40e4-9f82-b96d04a36978)\">\n <polygon\n points=\"200.82 538.67 238.74 479.96 254.64 505.65 288.88 470.18 318.24 505.65 343.93 453.05 409.98 558.24 195.93 550.9 200.82 538.67\"\n fill=\"#bdbdbd\"\n opacity=\"0.4\"\n />\n <circle cx=\"230.17\" cy=\"455.5\" r=\"11.01\" fill=\"#bdbdbd\" opacity=\"0.4\" />\n </g>\n <g opacity=\"0.5\">\n <rect\n x=\"349.09\"\n y=\"242.63\"\n width=\"631.14\"\n height=\"469.69\"\n transform=\"translate(-74.16 969.06) rotate(-78.76)\"\n fill=\"url(#54803c44-522d-4b9e-9a34-f1f7b43e8483)\"\n />\n </g>\n <rect\n x=\"359.37\"\n y=\"247.33\"\n width=\"609.12\"\n height=\"455.01\"\n transform=\"translate(-72.16 966.22) rotate(-78.76)\"\n fill=\"#fff\"\n />\n <rect\n x=\"523.5\"\n y=\"197.22\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-88.86 -196.94) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"433.36\"\n y=\"650.7\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-2.18 -170.66) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"428.58\"\n y=\"671.14\"\n width=\"249.52\"\n height=\"4.89\"\n transform=\"translate(1.01 -162.18) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"424.6\"\n y=\"683.47\"\n width=\"92.96\"\n height=\"4.89\"\n transform=\"translate(1.84 -145.91) rotate(11.24)\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect\n x=\"519.57\"\n y=\"209.08\"\n width=\"161.45\"\n height=\"4.89\"\n transform=\"translate(-88.17 -180.2) rotate(11.24)\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect\n x=\"512.84\"\n y=\"249.31\"\n width=\"291.11\"\n height=\"4.89\"\n transform=\"translate(-79.21 -190.76) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"509.47\"\n y=\"255.44\"\n width=\"70.94\"\n height=\"4.89\"\n transform=\"translate(-80.19 -168.52) rotate(11.24)\"\n fill=\"#3ad29f\"\n opacity=\"0.7\"\n />\n <rect\n x=\"501.56\"\n y=\"307.59\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-67.76 -190.54) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"575.87\"\n y=\"357.6\"\n width=\"166.35\"\n height=\"289.88\"\n transform=\"translate(-103.27 983.74) rotate(-78.76)\"\n fill=\"url(#089a6a47-adaa-499b-aefb-cd6464b62fb8)\"\n />\n </g>\n <rect\n x=\"516.06\"\n y=\"420.61\"\n width=\"286.22\"\n height=\"162.68\"\n transform=\"translate(-30.42 -186.11) rotate(11.24)\"\n fill=\"#fff\"\n />\n <rect\n x=\"496.08\"\n y=\"335.18\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-62.49 -188.94) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"547.86\"\n y=\"424.02\"\n width=\"35.47\"\n height=\"118.64\"\n transform=\"translate(-35.84 -168.22) rotate(11.24)\"\n fill=\"#6c63ff\"\n />\n <rect\n x=\"606.43\"\n y=\"475.19\"\n width=\"35.47\"\n height=\"79.5\"\n transform=\"translate(-28.56 -179.03) rotate(11.24)\"\n fill=\"#3ad29f\"\n />\n <rect\n x=\"665.23\"\n y=\"523.93\"\n width=\"35.47\"\n height=\"42.81\"\n transform=\"translate(-21.5 -189.92) rotate(11.24)\"\n fill=\"#f55f44\"\n />\n <rect\n x=\"731.91\"\n y=\"492.72\"\n width=\"35.47\"\n height=\"86.84\"\n transform=\"translate(-22.02 -203.09) rotate(11.24)\"\n fill=\"#fdd835\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"128.65\"\n y=\"645.09\"\n width=\"3.67\"\n height=\"20.79\"\n fill=\"#47e6b1\"\n />\n <rect\n x=\"269.58\"\n y=\"712.31\"\n width=\"3.67\"\n height=\"20.79\"\n transform=\"translate(853.2 384.07) rotate(90)\"\n fill=\"#47e6b1\"\n />\n </g>\n <path\n d=\"M699.44,75.56a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,699.44,75.56Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#4d8af0\"\n opacity=\"0.5\"\n />\n <path\n d=\"M286.33,179.4a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,286.33,179.4Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#fdd835\"\n opacity=\"0.5\"\n />\n <path\n d=\"M253.63,484.46a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,253.63,484.46Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#fdd835\"\n opacity=\"0.5\"\n />\n <circle cx=\"337.81\" cy=\"28.62\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"7.34\" cy=\"317.46\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"863.76\" cy=\"120.36\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"822.17\" cy=\"339.3\" r=\"7.34\" fill=\"#4d8af0\" opacity=\"0.5\" />\n <circle cx=\"37.68\" cy=\"145.22\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <circle cx=\"853.29\" cy=\"647.34\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <circle cx=\"910.8\" cy=\"430.97\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <rect\n x=\"544.42\"\n y=\"601.05\"\n width=\"186.48\"\n height=\"153.07\"\n fill=\"url(#fd8d88e0-7826-450d-9e0b-001d1be709c2)\"\n />\n <path\n d=\"M723.82,639a54.55,54.55,0,0,1,109.1,0v34.91h15.27V639a69.82,69.82,0,0,0-139.65,0v34.91h15.27Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"url(#8d1793c5-b76e-44e2-a52e-569460402331)\"\n />\n <path\n d=\"M726,638.25a52.37,52.37,0,1,1,104.74,0v33.52H845.4V638.25a67,67,0,0,0-134.06,0v33.52H726Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#f5f5f5\"\n />\n <rect\n x=\"546.32\"\n y=\"602.45\"\n width=\"182.24\"\n height=\"148.73\"\n fill=\"#6c63ff\"\n />\n <rect\n x=\"546.32\"\n y=\"602.45\"\n width=\"182.24\"\n height=\"148.73\"\n fill=\"#f5f5f5\"\n />\n <rect\n x=\"546.32\"\n y=\"631.77\"\n width=\"182.24\"\n height=\"90.07\"\n fill=\"#6c63ff\"\n />\n <path\n d=\"M791.73,727a13.36,13.36,0,1,0-23.08,9.15v28.51a9.72,9.72,0,0,0,19.44,0V736.18A13.3,13.3,0,0,0,791.73,727Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"url(#4745700d-8097-45ff-9f71-625443fc4ad8)\"\n />\n <path\n d=\"M789.89,729.38a11.52,11.52,0,1,0-19.9,7.89v24.58a8.38,8.38,0,1,0,16.76,0V737.27A11.47,11.47,0,0,0,789.89,729.38Z\"\n transform=\"translate(-140.93 -67.23)\"\n opacity=\"0.2\"\n />\n </svg>\n );\n};\n","const { __ } = wp.i18n;\n\nimport Illustration from \"./illustration\";\nconst { Flex, FlexItem, FlexBlock } = wp.components;\n\nexport default () => {\n return (\n <Flex style={{ padding: \"30px\", background: \"#fff\" }}>\n <FlexItem>\n <Illustration width=\"250px\" />\n </FlexItem>\n <FlexBlock style={{ marginLeft: \"20px\" }}>\n <h1>{__(\"Get detailed video insights.\", \"presto-player\")}</h1>\n <p>\n {__(\n \"Upgrade to Pro and get video insights like plays, watch-time, and drop off numbers.\",\n \"presto-player\"\n )}\n </p>\n <a\n href=\"https://prestoplayer.com\"\n target=\"_blank\"\n className=\"button button-primary\"\n >\n {__(\"Learn More\", \"presto-player\")}\n </a>\n </FlexBlock>\n </Flex>\n );\n};\n","/**\n * WordPress dependencies\n */\nconst { __ } = wp.i18n;\nconst { apiFetch } = wp;\nconst { useState } = wp.element;\nconst { createHigherOrderComponent } = wp.compose;\n\n/**\n * Higher order component factory\n *\n * @return {Function} The higher order component.\n */\nexport default () =>\n createHigherOrderComponent(\n (WrappedComponent) => (props) => {\n const [loading, setLoading] = useState(false);\n const [page, setPage] = useState(1);\n const [total, setTotal] = useState(0);\n const [totalPages, setTotalPages] = useState(0);\n const [data, setData] = useState([]);\n const [error, setError] = useState(\"\");\n\n // fetch data\n // we could also abstract this function to make it reusable\n // or do a higher order component\n const fetchData = async ({ endpoint, params = {} }) => {\n setLoading(true);\n\n let responseData;\n try {\n responseData = await apiFetch({\n path: wp.url.addQueryArgs(endpoint, {\n page,\n per_page: 5,\n ...params,\n }),\n parse: false,\n }).then((res) => {\n const total = res.headers\n ? parseInt(res.headers.get(\"X-WP-Total\"))\n : 0;\n const totalPages = res.headers\n ? parseInt(res.headers.get(\"X-WP-TotalPages\"))\n : 0;\n setTotal(total);\n setTotalPages(totalPages);\n return res.json();\n });\n\n setData(responseData);\n } catch (e) {\n console.error(e);\n if (e?.message) {\n setError(e.message);\n }\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <WrappedComponent\n loading={loading}\n setLoading={setLoading}\n fetchData={fetchData}\n page={page}\n setPage={setPage}\n total={total}\n setTotal={setTotal}\n totalPages={totalPages}\n setTotalPages={setTotalPages}\n data={data}\n setData={setData}\n error={error}\n setError={setError}\n {...props}\n />\n );\n },\n \"withDataList\"\n );\n","const { __, sprintf } = wp.i18n;\n\nexport const humanSeconds = (savedSeconds) => {\n const hours = Math.floor(savedSeconds / 60 / 60);\n const minutes = Math.floor(savedSeconds / 60) - hours * 60;\n const seconds = savedSeconds % 60;\n\n let out = \"\";\n if (hours) {\n out += sprintf(__(\"%d hours\", \"presto-player\"), hours) + \", \";\n }\n if (minutes) {\n out += sprintf(__(\"%d minutes\", \"presto-player\"), minutes) + \" \";\n }\n if ((hours || minutes) && seconds) {\n out += __(\"and\", \"presto-player\") + \" \";\n }\n\n out += sprintf(__(\"%d seconds\", \"presto-player\"), seconds);\n\n return out;\n};\n\nexport const timestamp = (seconds) => {\n seconds = parseInt(seconds || 0) * 1000;\n return new Date(seconds).toISOString().substr(11, 8);\n};\n\n/*\n * This function remove the user timezone from new Date()\n * https://stackoverflow.com/a/29774197/1972413\n*/\nexport const convertDateTimeToAbsoluteDate = (dateTime) => {\n const offset = new Date().getTimezoneOffset()\n var date = new Date(dateTime.getTime() - (offset*60*1000))\n return date.toISOString().split('T')[0]+'T00:00:00.000Z';\n}\n","const { Spinner, Flex, FlexItem } = wp.components;\nexport default ({ height = 100 }) => {\n return (\n <Flex style={{ height: `${height}px` }} align=\"center\" justify=\"center\">\n <FlexItem>\n <Spinner />\n </FlexItem>\n </Flex>\n );\n};\n","const { __ } = wp.i18n;\nconst { Card, CardBody, Flex, FlexBlock, Button, ButtonGroup } = wp.components;\nconst { useState, useEffect } = wp.element;\n\nexport default ({ page, setPage, perPage, total, totalPages }) => {\n // do we have prev/next\n const [hasPrevious, setHasPrevious] = useState(false);\n const [hasNext, setHasNext] = useState(false);\n\n // end and start cursors\n const [end, setEnd] = useState(0);\n const [start, setStart] = useState(0);\n\n // set end and start\n useEffect(() => {\n setEnd(Math.min(perPage * page, total));\n setStart(perPage * (page - 1) + 1);\n }, [perPage, page, total]);\n\n // update page when pagination is clicked\n const nextPage = () => {\n setPage(Math.min(totalPages, page + 1));\n };\n const prevPage = () => {\n setPage(Math.max(page - 1, 0));\n };\n\n // set prev/next\n useEffect(() => {\n setHasPrevious(page - 1 > 0);\n setHasNext(totalPages >= page + 1);\n }, [page, totalPages]);\n\n return (\n <Card size=\"large\" className=\"presto-card pagination\">\n <CardBody className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n {sprintf(\n __(\"Showing %1s to %2s of %3s\", \"presto-player\"),\n start,\n end,\n total\n )}\n </FlexBlock>\n <FlexBlock>\n <Flex justify=\"flex-end\">\n {\n <ButtonGroup>\n <Button\n isSecondary\n disabled={!hasPrevious}\n onClick={prevPage}\n >\n {__(\"Previous\", \"presto-player\")}\n </Button>\n <Button isSecondary disabled={!hasNext} onClick={nextPage}>\n {__(\"Next\", \"presto-player\")}\n </Button>\n </ButtonGroup>\n }\n </Flex>\n </FlexBlock>\n </Flex>\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { useRef, useEffect, useState } = wp.element;\nconst { Card, CardBody ,Flex, FlexBlock, Button, ButtonGroup } = wp.components;\n\nimport classNames from 'classnames';\n\nexport default ({ columns , data , onRowClick , title }) => {\n\n if (!data.length) {\n return (\n <Card size=\"large\" className=\"presto-card table-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {title}\n </div>\n <div style={{ opacity: 0.65 }}>\n {__(\"No data available.\", \"presto-player\")}\n </div>\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card size=\"large\" className=\"presto-card table-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {title}\n </div>\n <table role=\"table\" className={classNames('presto-table', { 'is-clickable': onRowClick })}>\n <thead role=\"rowgroup\">\n <tr role=\"row\">\n {columns && columns.map((column) => {\n return (\n <th key={column.key} role=\"columnheader\">\n {column.label}\n </th>\n );\n })}\n </tr>\n </thead>\n\n <tbody role=\"rowgroup\">\n {data.map((row , rowIndex) => {\n return (\n <tr role=\"row\" key={`row-${rowIndex}`}\n onClick={() => onRowClick && onRowClick(row)}\n >\n {columns.map((column , columnIndex ) => {\n return (\n <td role=\"cell\" data-title={column.label} key={`row-${rowIndex}-${columnIndex}`} aria-label={column.label}>\n {column.render ? column.render(row) : (<div>{column.value(row)}</div>)}\n </td>\n );\n })}\n </tr>\n );\n })}\n </tbody>\n </table>\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { useEffect, useState } = wp.element;\nconst { Card, CardBody } = wp.components;\nimport Loading from \"@/admin/settings/components/Loading\";\nimport Pagination from \"@/admin/ui/Pagination\";\nimport Table from \"@/admin/ui/Table\";\n\nexport default ({\n perPage = 10,\n title,\n page,\n setPage,\n loading,\n total,\n totalPages,\n columns,\n data,\n onSelect,\n}) => {\n if (loading) {\n return (\n <Card>\n <Loading />\n </Card>\n );\n }\n\n if (!data?.length) {\n return (\n <Card size=\"large\" className=\"presto-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">{title}</div>\n <div style={{ opacity: 0.65 }}>\n {__(\"No data available.\", \"presto-player\")}\n </div>\n </CardBody>\n </Card>\n );\n }\n\n return (\n <div className=\"datatable\">\n <Table\n data={data}\n columns={columns}\n perPage={perPage}\n onRowClick={onSelect}\n title={title}\n />\n\n {!!total && (\n <Pagination\n page={page}\n setPage={setPage}\n perPage={perPage}\n total={total}\n totalPages={totalPages}\n />\n )}\n </div>\n );\n};\n","const { __ } = wp.i18n;\nconst { useEffect } = wp.element;\nconst { compose } = wp.compose;\n\nimport { history } from \"@/router/context\";\nimport withDataList from \"../hocs/withDataList\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\nimport DataTable from \"./DataTable\";\n\nexport default compose([withDataList()])(\n ({\n loading,\n page,\n setPage,\n total,\n totalPages,\n data,\n error,\n fetchData,\n startDate,\n endDate,\n }) => {\n // 10 per page\n const per_page = 5;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: \"/presto-player/v1/analytics/top-users\",\n params: {\n per_page,\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n },\n });\n }, [page, startDate, endDate]);\n\n // navigate to user screen here\n const navigate = (id) => {\n history.push(`#/user/${id}`);\n };\n\n const columns = [\n {\n key: \"name\",\n label: __(\"Name\", \"presto-player\"),\n value: (row) => row?.user?.name,\n },\n {\n key: \"total_view\",\n label: __(\"Total View\", \"presto-player\"),\n value: (row) => row?.stats?.[0]?.data,\n },\n {\n key: \"avg_view_time\",\n label: __(\"Avg View Time\", \"presto-player\"),\n render: (row) => (\n <div className=\"presto-badge\">{row?.stats?.[1]?.data}</div>\n ),\n },\n ];\n\n if (error) {\n return { error };\n }\n\n return (\n <DataTable\n title={__(\"Top Users\", \"presto-player\")}\n page={page}\n perPage={per_page}\n setPage={setPage}\n loading={loading}\n total={total}\n totalPages={totalPages}\n columns={columns}\n data={data}\n onSelect={(row) => navigate(row?.user?.id)}\n />\n );\n }\n);\n","const { __ } = wp.i18n;\nconst { useEffect } = wp.element;\nconst { compose } = wp.compose;\n\nimport { history } from \"@/router/context\";\nimport withDataList from \"../hocs/withDataList\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\nimport DataTable from \"./DataTable\";\n\n\nexport default compose([withDataList()])(\n ({\n loading,\n page,\n setPage,\n total,\n totalPages,\n data,\n error,\n fetchData,\n startDate,\n endDate,\n userId\n }) => {\n // 10 per page\n const per_page = 10;\n\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: \"/presto-player/v1/analytics/top-videos\",\n params: {\n per_page,\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n ...(userId ? { user_id: userId }: {})\n },\n });\n }, [page, startDate, endDate]);\n\n const navigate = (id) => {\n history.push(`#/video/${id}`);\n };\n\n const columns = [\n {\n key: \"name\",\n label: __(\"Name\", \"presto-player\"),\n render(row) {\n return (\n <h3 style={{ marginBottom: 0, wordBreak:'break-all' }}>\n {row.video.title\n ? row.video.title\n : __(\"Untitled\", \"presto-player\")}\n </h3>\n );\n },\n },\n {\n key: \"total_view\",\n label: __(\"Total View\", \"presto-player\"),\n value(row) {\n return row.stats[0].data;\n },\n },\n {\n key: \"avg_view_time\",\n label: __(\"Avg View Time\", \"presto-player\"),\n render(row) {\n return <div className=\"presto-badge\">{row.stats[1].data}</div>;\n },\n },\n {\n key: \"view_more\",\n label: \"\",\n render(row) {\n return (\n <span\n style={{\n color: \"var(--wp-admin-theme-color, #007cba)\",\n }}\n >\n {__(\"View Details\", \"presto-player\")} →\n </span>\n );\n },\n },\n ];\n\n if (error) {\n return { error };\n }\n\n return (\n <DataTable\n title={__(\"Top Videos\", \"presto-player\")}\n perPage={per_page}\n page={page}\n setPage={setPage}\n loading={loading}\n total={total}\n totalPages={totalPages}\n columns={columns}\n data={data}\n onSelect={(row) => {\n navigate(row?.video?.id);\n }}\n />\n );\n }\n);\n","// import apiFetch from \"@wordpress/api-fetch\";\nconst { apiFetch } = wp;\n\n// nonce and root\napiFetch.use(apiFetch.createNonceMiddleware(prestoPlayer.nonce));\napiFetch.use(\n apiFetch.createRootURLMiddleware(\n prestoPlayer.root + prestoPlayer.prestoVersionString\n )\n);\n\nexport default apiFetch;\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default (props) => {\n const [loading, setLoading] = useState(true);\n const [totalViews, setTotalViews] = useState(0);\n const { startDate, endDate } = props;\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n yaxis: {\n min: 0,\n labels: {\n formatter: function (num) {\n if (num < 1) {\n return 0;\n }\n return Math.abs(num) > 999\n ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + \"k\"\n : Math.sign(num) * Math.abs(num).toFixed(0);\n },\n },\n },\n colors: [\"#7c3aed\"],\n xaxis: {\n type: \"datetime\",\n min: new Date(startDate).setHours(0, 0, 0, 0),\n max: new Date(endDate).setHours(23, 59, 59, 999),\n },\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n // fetch only if we already mounted\n useEffect(() => {\n fetchViews();\n }, [props]);\n\n const fetchViews = () => {\n setLoading(true);\n apiFetch({\n path:\n \"/presto-player/v1/analytics/views?\" +\n jQuery.param({\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n }),\n parse: false,\n })\n .then(async (res) => {\n setTotalViews(res.headers && res.headers.get(\"X-WP-Total\"));\n const data = await res.json();\n\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n series.push({\n x: item.date_time,\n y: item.total,\n });\n });\n }\n setSeries([\n {\n name: \"Views\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n if (loading) {\n return (\n <CardBody>\n <Loading />\n </CardBody>\n );\n }\n\n return (\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {sprintf(__(\"%d Unique Views\", \"presto-player\"), totalViews)}\n </div>\n <Chart options={chart.options} series={series} type=\"area\" height={280} />\n </CardBody>\n );\n};\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate, humanSeconds } from \"../util\";\n\n\nexport default (props) => {\n const [loading, setLoading] = useState(true);\n const [averageTime, setAverageTime] = useState(0);\n const { startDate, endDate } = props;\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n yaxis: {\n labels: {\n formatter: function (num) {\n return Math.abs(num) > 999\n ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + \"k min\"\n : (Math.sign(num) * Math.abs(num)).toFixed(1) + \"min\";\n },\n },\n },\n colors: [\"#7c3aed\"],\n xaxis: {\n type: \"datetime\",\n min: new Date(startDate).setHours(0, 0, 0, 0),\n max: new Date(endDate).setHours(23, 59, 59, 999),\n },\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n // fetch only if we already mounted\n useEffect(() => {\n fetchMinutes();\n }, [props]);\n\n const fetchMinutes = () => {\n setLoading(true);\n apiFetch({\n path:\n \"/presto-player/v1/analytics/watch-time?\" +\n jQuery.param({\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n }),\n parse: false,\n })\n .then(async (res) => {\n const { data, average } = await res.json();\n\n setAverageTime(parseFloat(average));\n\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n series.push({\n x: item.date_time,\n y: (item.total / 60).toFixed(2),\n });\n });\n }\n setSeries([\n {\n name: \"Watch Time\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n if (loading) {\n return (\n <CardBody>\n <Loading />\n </CardBody>\n );\n }\n\n return (\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {sprintf(\n __(\"%s average watch time\", \"presto-player\"),\n humanSeconds(averageTime)\n )}\n </div>\n <Chart options={chart.options} series={series} type=\"area\" height={280} />\n </CardBody>\n );\n};\n","const { __ } = wp.i18n;\nconst { Panel, TabPanel } = wp.components;\n\nimport TotalViewsGraph from \"./TotalViewsGraph\";\nimport TotalWatchGraph from \"./TotalWatchGraph\";\n\nexport default ({ startDate, endDate }) => {\n return (\n <Panel>\n <TabPanel\n className=\"presto-module-tabs\"\n onSelect={() => {}}\n tabs={[\n {\n name: \"views\",\n title: __(\"Views\", \"presto-player\"),\n },\n {\n name: \"watch\",\n title: __(\"Watch Time\", \"presto-player\"),\n },\n ]}\n >\n {(tab) => {\n switch (tab.name) {\n case \"views\":\n return (\n <TotalViewsGraph startDate={startDate} endDate={endDate} />\n );\n case \"watch\":\n return (\n <TotalWatchGraph startDate={startDate} endDate={endDate} />\n );\n default:\n return <>Not Found</>;\n }\n }}\n </TabPanel>\n </Panel>\n );\n};\n","const { __ } = wp.i18n;\nconst { useRef, useEffect, useState } = wp.element;\n\nimport Litepicker from \"litepicker\";\nimport \"litepicker/dist/plugins/ranges\";\n\nexport default ({ startDate, setStartDate, endDate, setEndDate }) => {\n const dateRef = useRef();\n const [inputSize, setInputSize] = useState(25);\n\n let datepicker;\n useEffect(() => {\n datepicker = new Litepicker({\n element: dateRef?.current,\n singleMode: false,\n format: \"MMMM D YYYY\",\n autoApply: false,\n plugins: [\"ranges\"],\n maxDate: new Date(),\n numberOfMonths: 2,\n buttonText: {\n apply: __(\"Apply\", \"presto-player\"),\n cancel: __(\"Cancel\", \"presto-player\"),\n },\n dropdowns: {\n minYear: 1990,\n maxYear: null,\n months: true,\n years: true,\n },\n setup: (picker) => {\n picker.setDateRange(startDate, endDate);\n picker.on(\"button:apply\", (start, end) => {\n setStartDate(start.dateInstance);\n setEndDate(end.dateInstance);\n setInputSize(dateRef.current.value.length);\n });\n },\n });\n }, [dateRef]);\n\n return (\n <div className=\"component-base-control\">\n <div className=\"components-base-control__field\">\n <input\n className=\"components-text-control__input presto-settings__date-select\"\n ref={dateRef}\n size={inputSize}\n />\n </div>\n </div>\n );\n};\n","const { __ } = wp.i18n;\nconst { Flex, FlexBlock, FlexItem } = wp.components;\nconst { useState } = wp.element;\n\nimport TopUsers from \"../components/TopUsers\";\nimport TopVideos from \"../components/TopVideos\";\nimport OverviewPanel from \"../components/OverviewPanel\";\nimport DatePicker from \"../components/DatePicker\";\n\nexport default function ({ startDate, endDate, setStartDate, setEndDate }) {\n return (\n <>\n <Flex>\n <FlexBlock>\n <h1>{__(\"Analytics\", \"presto-player\")}</h1>\n </FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-flow\">\n <div className=\"presto-dashboard\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <OverviewPanel startDate={startDate} endDate={endDate} />\n </div>\n <div className=\"presto-dashboard__item\">\n <TopUsers startDate={startDate} endDate={endDate} />\n </div>\n </div>\n\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <TopVideos startDate={startDate} endDate={endDate} />\n </div>\n </div>\n </div>\n </div>\n </>\n );\n}\n","const { Card, CardBody } = wp.components;\nimport Loading from \"@/admin/settings/components/Loading\";\n\nexport default ({ loading, title , value, label }) => {\n if (loading) {\n return (\n <Card>\n <CardBody>\n <Loading />\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card className=\"presto-player__stat-card\">\n <CardBody>\n <div className=\"presto-subtitle\">{title}</div>\n <h1>{value}</h1>\n <div>{label}</div>\n </CardBody>\n </Card>\n );\n};\n","/**\n * WordPress dependencies\n */\nconst { apiFetch } = wp;\nconst { useState } = wp.element;\nconst { createHigherOrderComponent } = wp.compose;\n\n/**\n * Higher order component factory\n *\n * @return {Function} The higher order component.\n */\nexport default () =>\n createHigherOrderComponent(\n (WrappedComponent) => (props) => {\n const [loading, setLoading] = useState(false);\n const [stat, setStat] = useState([]);\n const [error, setError] = useState(\"\");\n\n // fetch data\n // we could also abstract this function to make it reusable\n // or do a higher order component\n const fetchData = async ({ endpoint, params = {} }) => {\n setLoading(true);\n\n let responseData;\n try {\n responseData = await apiFetch({\n path: wp.url.addQueryArgs(endpoint, {\n ...params,\n }),\n });\n setStat(responseData);\n } catch (e) {\n console.error(e);\n if (e?.message) {\n setError(e.message);\n }\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <WrappedComponent\n loading={loading}\n setLoading={setLoading}\n fetchData={fetchData}\n stat={stat}\n setStat={setStat}\n error={error}\n setError={setError}\n {...props}\n />\n );\n },\n \"withStat\"\n );\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/total-views`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n\n <StatCard\n loading={loading}\n value={parseInt(stat?.view)}\n title={__(\"Total Views\", \"presto-player\")}\n />\n );\n});\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/average-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseFloat(stat?.view).toFixed(2)}\n title={__(\"Average Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/total-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseFloat(stat?.view).toFixed(2)}\n title={__(\"Total Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","/** @jsx jsx */\n\nconst { __ } = wp.i18n;\n\nconst { Flex, FlexBlock, FlexItem, Spinner, Button } = wp.components;\n\nimport { history } from \"@/router/context\";\nimport DatePicker from \"../components/DatePicker\";\nimport TopVideos from \"../components/TopVideos\";\nimport TotalVideoViewsByUser from \"../components/TotalVideoViewsByUser\";\nimport VideoAverageWatchTimeByUser from \"../components/VideoAverageWatchTimeByUser\";\nimport VideoTotalWatchTimeByUser from \"../components/VideoTotalWatchTimeByUser\";\n\nconst { useEffect, useState } = wp.element;\nconst { apiFetch } = wp;\n\nimport { css, jsx } from \"@emotion/core\";\n\nconst User = ({ route, startDate, endDate, setStartDate, setEndDate }) => {\n const [loading, setLoading] = useState(true);\n const [user, setUser] = useState({});\n const [error, setError] = useState(\"\");\n\n const back = () => {\n history.push(`#/`);\n };\n\n const getUser = async () => {\n setLoading(true);\n try {\n let user = await apiFetch({\n url: `/wp-json/wp/v2/users/${route?.params?.id}?context=edit`,\n });\n setUser(user);\n } catch (e) {\n if (e.code === \"rest_no_route\") {\n setError(\"User Not Found\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n useEffect(() => {\n getUser();\n }, []);\n\n if (error) {\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <h2>{error}</h2>\n </FlexBlock>\n </Flex>\n </div>\n );\n }\n\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <Button isSecondary onClick={back}>\n ← {__(\"Back to Dashboard\", \"presto-player\")}\n </Button>\n </FlexBlock>\n </Flex>\n <Flex wrap>\n <FlexBlock>\n {loading ? (\n <Spinner />\n ) : (\n <div\n css={css`\n display: flex;\n align-items: center;\n\n .presto__edit-user-button {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease;\n }\n\n &:hover {\n .presto__edit-user-button {\n opacity: 1;\n visibility: visible;\n }\n }\n `}\n >\n <div>\n <h1 className=\"presto-dashboard__title\">{user?.name}</h1>\n <p\n css={css`\n margin-top: -10px;\n opacity: 0.65;\n `}\n >\n {user?.email}\n </p>\n </div>\n {!!user.id && (\n <div\n className=\"presto__edit-user-button\"\n css={css`\n margin: 0 20px;\n `}\n >\n <Button\n href={`/wp-admin/user-edit.php?user_id=${user?.id}`}\n isSecondary\n isSmall\n >\n {__(\"View Profile\", \"presto-player\")} →\n </Button>\n </div>\n )}\n </div>\n )}\n </FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-dashboard presto-flow\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item\">\n <TotalVideoViewsByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoAverageWatchTimeByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoTotalWatchTimeByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <TopVideos\n startDate={startDate}\n endDate={endDate}\n userId={route?.params?.id}\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default User;\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { video_id, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/video/${video_id}/average-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n\n <StatCard\n loading={loading}\n value={parseInt(stat)}\n title={__(\"Average Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate, timestamp } from \"../util\";\n\n\nexport default (props) => {\n const { video_id, startDate, endDate } = props;\n const [loading, setLoading] = useState(true);\n\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const fetchTimeline = () => {\n setLoading(true);\n apiFetch({\n path: wp.url.addQueryArgs(\n `/presto-player/v1/analytics/video/${video_id}/timeline`,\n {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n }\n ),\n })\n .then((data) => {\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n // add another to them\n series.push({\n x: item.watch_time,\n y: item.total,\n });\n });\n }\n setSeries([\n {\n name: \"Viewers\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n useEffect(() => {\n fetchTimeline();\n }, [startDate, endDate]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n tickAmount: 1,\n yaxis: {\n labels: {\n formatter: function (num) {\n return parseInt(num);\n },\n },\n },\n xaxis: {\n labels: {\n formatter: function (num) {\n return timestamp(num);\n },\n },\n },\n colors: [\"#7c3aed\"],\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n if (loading) {\n return (\n <Card>\n <CardBody>\n <Loading />\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card>\n <CardBody>\n <div className=\"presto-card__title\">\n {__(\"Audience Retention\", \"presto-player\")}\n </div>\n <Chart\n options={chart.options}\n series={series}\n type=\"area\"\n height={280}\n />\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { video_id, startDate, endDate, stat, fetchData, loading } = props;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/video/${video_id}/views`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseInt(stat)}\n title={__(\"Unique Views\", \"presto-player\")}\n />\n );\n});\n","import { PrestoPlayer } from \"@presto-player/react\";\n\nconst { useSelect } = wp.data;\n\nexport default ({ src, preset, branding, attributes, adminPreview, type }) => {\n const { chapters, mutedOverlay, mutedPreview } = attributes;\n\n const youtube = useSelect((select) => {\n return select(\"presto-player/player\")?.youtube();\n });\n\n const css = useSelect((select) => {\n return select(\"presto-player/player\")?.playerCSS();\n });\n\n const mutedOverlayContent = () => {\n return (\n <div\n className=\"presto-player__overlay is-image\"\n style={{\n position: \"absolute\",\n width: `${mutedOverlay?.width || 100}%`,\n left: `${(mutedOverlay?.focalPoint?.x || 0.5) * 100}%`,\n top: `${(mutedOverlay?.focalPoint?.y || 0.5) * 100}%`,\n }}\n >\n <img\n src={mutedOverlay?.src}\n style={{\n transform: \"translateX(-50%) translateY(-50%)\",\n }}\n />\n </div>\n );\n };\n\n return (\n <div\n className=\"wp-block-video presto-block-video\"\n style={{\n \"--presto-player-border-radius\": `${preset?.border_radius}px`,\n ...(preset?.caption_background\n ? { \"--plyr-captions-background\": preset.caption_background }\n : {}),\n ...(branding?.color ? { \"--plyr-color-main\": branding.color } : {}),\n \"--presto-player-email-border-radius\": `${\n preset?.email_collection?.border_radius || 0\n }px`,\n \"--presto-player-logo-width\": `${branding?.logo_width || 75}px`,\n }}\n >\n <PrestoPlayer\n src={src}\n css={css}\n isAdmin={true}\n preload=\"metadata\"\n preset={preset}\n bunny={{\n thumbnail: attributes?.previewThumbnail,\n preview: attributes?.preview,\n }}\n youtube={{\n channelId: youtube?.channel_id,\n }}\n tracks={\n !!preset?.captions && [\n {\n kind: \"captions\",\n label: \"English\",\n srclang: \"en\",\n src: \"/path/to/captions.en.vtt\",\n default: true,\n },\n ]\n }\n branding={branding}\n chapters={chapters}\n blockAttributes={attributes}\n poster={attributes.poster}\n provider={type}\n >\n <div slot=\"player-end\">\n {mutedPreview?.enabled &&\n mutedOverlay?.enabled &&\n mutedOverlayContent()}\n {adminPreview}\n </div>\n </PrestoPlayer>\n </div>\n );\n};\n","const { __ } = wp.i18n;\n\nconst { Flex, FlexBlock, FlexItem, Spinner, Button, TextControl } =\n wp.components;\n\nimport { history } from \"@/router/context\";\nimport DatePicker from \"../components/DatePicker\";\nimport VideoAverageWatchTime from \"../components/VideoAverageWatchTime\";\nimport VideoTimeline from \"../components/VideoTimeline\";\nimport VideoViews from \"../components/VideoViews\";\nimport Player from \"../../blocks/shared/Player\";\n\nconst { useEffect, useState } = wp.element;\nconst { apiFetch } = wp;\n\nconst Video = ({ route, startDate, endDate, setStartDate, setEndDate }) => {\n const [loading, setLoading] = useState(true);\n const [video, setVideo] = useState({});\n const [error, setError] = useState(\"\");\n const [thisName, setThisName] = useState(null);\n const [editing, setEditing] = useState(false);\n\n const back = () => {\n history.push(`#/`);\n };\n\n const getVideo = async () => {\n setLoading(true);\n try {\n let video = await apiFetch({\n url: `${prestoPlayer?.root}${prestoPlayer?.prestoVersionString}videos/${route?.params?.id}`,\n });\n setVideo(video);\n setThisName(video?.title);\n } catch (e) {\n if (e.code === \"rest_no_route\") {\n setError(\"Video Not Found\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n const putVideo = async () => {\n console.log(`New Video title ${thisName}`);\n setLoading(true);\n try {\n const data = {\n ...video,\n ...{ title: thisName },\n };\n let saved = await wp.apiFetch({\n method: \"POST\",\n url: wp.url.addQueryArgs(\n `${prestoPlayer.root}${prestoPlayer.prestoVersionString}videos/${video.id}`,\n { _method: \"PUT\" }\n ),\n data,\n });\n\n if (!saved) {\n throw genericError;\n }\n setEditing(false);\n setVideo(saved);\n } catch (e) {\n setError(e?.message ? e.message : genericError);\n } finally {\n setLoading(false);\n }\n };\n\n const cancelEditing = () => {\n setThisName(video?.title);\n setEditing(false);\n };\n\n const renderVideoEditableTitle = () => {\n if (loading) {\n return <Spinner />;\n } else if (editing) {\n return (\n <div className=\"presto-inline-edit presto-inline-edit--editing\">\n <TextControl\n className=\"presto-inline-edit__input\"\n type=\"text\"\n value={thisName}\n onChange={(title) => setThisName(title)}\n />\n <Button\n className=\"presto-inline-edit__button\"\n isPrimary\n onClick={putVideo}\n >\n {\" \"}\n Save{\" \"}\n </Button>\n <Button\n className=\"presto-inline-edit__button\"\n isSecondary\n onClick={cancelEditing}\n >\n {\" \"}\n Cancel{\" \"}\n </Button>\n </div>\n );\n } else {\n return (\n <div className=\"presto-inline-edit\">\n <h1 className=\"presto-dashboard__title presto-inline-edit__text\">\n {video?.title}\n </h1>\n\n <button\n className=\"presto-inline-edit__edit\"\n onClick={() => setEditing(true)}\n >\n <span className=\"dashicon dashicons dashicons-edit\"></span>\n </button>\n </div>\n );\n }\n };\n\n useEffect(() => {\n getVideo();\n }, []);\n\n if (error) {\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <h2>{error}</h2>\n </FlexBlock>\n </Flex>\n </div>\n );\n }\n\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <Button isSecondary onClick={back}>\n ← {__(\"Back to Dashboard\", \"presto-player\")}\n </Button>\n </FlexBlock>\n </Flex>\n <Flex wrap>\n <FlexBlock>{renderVideoEditableTitle()}</FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-dashboard presto-flow\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <VideoViews\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n {!!Object.keys(video || {}).length && (\n <Player\n src={video?.src}\n attributes={{}}\n type={video?.type}\n preset={{\n \"play-large\": true,\n play: true,\n progress: true,\n \"current-time\": true,\n }}\n />\n )}\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoAverageWatchTime\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <VideoTimeline\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default Video;\n","export const routes = {\n dashboard: {\n path: \"/\",\n },\n video: {\n path: \"/video/:id\",\n },\n user: {\n path: \"/user/:id\",\n },\n};\n","const { useState } = wp.element;\n\nimport { Route, Router } from \"@/router\";\n\nimport AnalyticsUpgrade from \"./pages/AnalyticsUpgrade\";\nimport Dashboard from \"./pages/Dashboard\";\n\nimport User from \"./pages/User\";\nimport Video from \"./pages/Video\";\nimport { routes } from \"./routes\";\n\nexport default () => {\n const scrollToTop = () => {\n window.scrollTo(0, 0);\n };\n\n const [startDate, setStartDate] = useState(\n new Date(Date.now() - 7 * 24 * 60 * 60 * 1000)\n );\n const [endDate, setEndDate] = useState(new Date());\n\n if (!prestoPlayer?.isPremium) {\n return (\n <div className=\"presto-dashboard__content\">\n <AnalyticsUpgrade />\n </div>\n );\n }\n\n return (\n <div className=\"presto-dashboard__content\">\n <Router routes={routes}>\n <Route path={routes.dashboard.path} onRoute={scrollToTop}>\n <Dashboard\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n <Route path={routes.video.path} onRoute={scrollToTop}>\n <Video\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n <Route path={routes.user.path} onRoute={scrollToTop}>\n <User\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n </Router>\n </div>\n );\n};\n","const { render } = wp.element;\n\nimport { defineCustomElements } from \"@presto-player/components/dist/custom-elements\";\n\ndefineCustomElements();\n\n/**\n * App\n */\nimport App from \"./App\";\n\n/**\n * styles\n */\nimport \"./analytics.scss\";\n\n/**\n * Render\n */\nrender(<App />, document.getElementById(\"presto-analytics-page\"));\n"],"sourceRoot":""}
|
dist/analytics/admin-866190a9.css
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/
|
18 |
+
*{box-sizing:inherit}.presto-inline-edit__text{display:inline;margin:0 8px 0 0}.presto-inline-edit__input{flex-grow:1;max-width:640px}.presto-inline-edit__input input{height:36px}.presto-inline-edit .presto-inline-edit__button{margin-right:4px}.presto-inline-edit__edit{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;width:28px;height:28px;border-radius:50%;border:none;opacity:.5;color:#fff;background-color:var(--wp-admin-theme-color)}.presto-inline-edit__edit:hover{opacity:1;background-color:var(--wp-admin-theme-color-darker-10)}.presto-inline-edit--editing{align-items:stretch}.datatable{display:flex;flex-direction:column;background:#fff;border:1px solid #e2e4e7}.datatable .table-card{border-bottom-left-radius:0;border-bottom-right-radius:0;border:none}.datatable .pagination{border-top-left-radius:0;border-top-right-radius:0;margin-top:auto;border:none}.presto-flow>*+*{margin-top:var(--presto-flow-space,2em)}.presto-loading{display:flex;align-items:center;justify-content:center;min-height:100px}table.presto-table{width:100%;border-collapse:collapse}table.presto-table td h2,table.presto-table td h3{margin:0 0 8px}table.presto-table.is-clickable td{cursor:pointer;transition:background-color .25s ease}table.presto-table.is-clickable tr:hover td{background-color:#f3f3f3}table.presto-table td,table.presto-table th{text-align:left;padding:.65rem;border-top:1px solid #e2e4e7}table.presto-table tr:first-child td{border-top:none}table.presto-table th{color:#757575;background-color:#f7f7f7;border:none;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px}@media (min-device-width:768px)and (max-device-width:1024px),only screen and (max-width:760px){table.presto-table,table.presto-table tbody,table.presto-table td,table.presto-table th,table.presto-table thead,table.presto-table tr{display:block}table.presto-table thead tr{position:absolute;top:-9999px;left:-9999px}table.presto-table tr{margin:0 0 1rem}table.presto-table tr:nth-child(odd){background:#f3f3f3}table.presto-table td{border:none;border-bottom:1px solid #fff;position:relative;padding:10px 10px 10px 50%}table.presto-table td:before{position:absolute;top:10px;left:10px;width:45%;padding-right:10px;white-space:nowrap;content:attr(data-title);font-weight:700}}.presto-dashboard__row{--spacing:1rem;--column-count:2;display:flex;flex-wrap:wrap;margin:0 calc(var(--spacing)*-0.5);align-items:stretch;justify-content:space-between}.presto-dashboard__item{flex:0 1 33.33%;padding:calc(var(--spacing)/3);width:33.33%}.presto-dashboard__item>*{height:100%}.presto-dashboard__item.is-large{flex:1}.presto-dashboard__header{background:#fff;padding:20px;display:flex;align-items:center;justify-content:space-between}.presto-dashboard__logo{max-width:175px}.presto-dashboard__content{margin:25px 0;width:calc(100% - 20px)}.presto-dashboard__body{max-width:800px;margin-left:auto;margin-right:auto}@media(max-width:767px){.presto-dashboard__row{display:block}.presto-dashboard__item{width:100%}}.presto-dashboard__title{line-height:1em}.presto-settings-page-notices.components-snackbar-list{position:fixed!important;left:auto;right:40px;bottom:40px;width:auto}.presto-card__title{opacity:.75;font-size:1rem;clear:both;margin:.75rem 0}.presto-player-dashboard__version{line-height:1;padding:6px 12px;background:#f1f1f1;color:#666;font-weight:500;border-radius:999px}.presto-player-dashboard__header{background:#fff;margin-left:-20px;margin-right:-20px;padding:20px;display:flex;align-items:center;justify-content:space-between;max-width:calc(100% + 20px)}.presto-player-dashboard__logo{max-height:30px;max-width:200px}.presto-module-tabs [role=tablist]{border-bottom:1px solid #e2e4e7}.presto-badge{border-radius:9999px;border:1px solid var(--wp-admin-theme-color,#007cba);color:var(--wp-admin-theme-color,#007cba);padding:5px 10px;line-height:1;white-space:nowrap;display:inline-block}.apexcharts-xaxis text,.apexcharts-yaxis text{opacity:.35}:root{--wp-admin-theme-color:#7c3aed!important;--wp-admin-theme-color-darker-10:#6127c7!important;--wp-admin-theme-color-darker-20:#501ea5!important;--litepickerDayIsInRange:#f3f3f3;--litepicker-container-months-color-bg:#fff;--litepicker-container-months-box-shadow-color:#ddd;--litepicker-footer-color-bg:#fafafa;--litepicker-footer-box-shadow-color:#ddd;--litepicker-tooltip-color-bg:#fff;--litepicker-month-header-color:#333;--litepicker-button-prev-month-color:#9e9e9e;--litepicker-button-next-month-color:#9e9e9e;--litepicker-button-prev-month-color-hover:var(--wp-admin-theme-color,#7c3aed);--litepicker-button-next-month-color-hover:var(--wp-admin-theme-color,#7c3aed);--litepicker-month-width:calc(var(--litepicker-day-width)*7);--litepicker-month-weekday-color:#9e9e9e;--litepicker-month-week-number-color:#9e9e9e;--litepicker-day-width:38px;--litepicker-day-color:#333;--litepicker-day-color-hover:var(--wp-admin-theme-color,#7c3aed);--litepicker-is-today-color:#f44336;--litepicker-is-in-range-color:rgba(124,58,237,0.12156862745098039);--litepicker-is-locked-color:#9e9e9e;--litepicker-is-start-color:#fff;--litepicker-is-start-color-bg:var(--wp-admin-theme-color,#7c3aed);--litepicker-is-end-color:#fff;--litepicker-is-end-color-bg:var(--wp-admin-theme-color,#7c3aed);--litepicker-button-cancel-color:#fff;--litepicker-button-cancel-color-bg:#9e9e9e;--litepicker-button-apply-color:#fff;--litepicker-button-apply-color-bg:var(--wp-admin-theme-color,#7c3aed);--litepicker-button-reset-color:#909090;--litepicker-button-reset-color-hover:var(--wp-admin-theme-color,#7c3aed);--litepicker-highlighted-day-color:#333;--litepicker-highlighted-day-color-bg:#ffeb3b}.presto-player__stat-card{display:flex;align-items:center;justify-content:center;text-align:center}.presto-player__stat-card h1{font-size:3rem;margin-bottom:.4em}.presto-options__pro-badge{margin:0 4px;line-height:1;background:var(--wp-admin-theme-color);color:#fff;padding:3px 6px;border-radius:9999px;font-size:10px;display:inline-block}.presto-options__disabled-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-self:center;z-index:99}.presto-options__card{position:relative}.litepicker{font-size:1em}.litepicker .container__days>a,.litepicker .container__days>div{margin-bottom:5px}.litepicker .container__footer,.litepicker .container__main .container__predefined-ranges,.litepicker .container__months{border:1px solid #e0e0e0;box-shadow:none;border-radius:0;margin:0}.litepicker .container__main .container__predefined-ranges{margin-right:-1px;padding:16px;max-width:125px;width:125px;border-radius:0}.litepicker .container__main .container__predefined-ranges>div{color:var(--wp-admin-theme-color,#007cba)}.litepicker .container__months .month-item-header div>.month-item-year{padding:0 24px 0 8px}.litepicker .container__footer{margin-top:-1px;padding:8px}.litepicker .container__footer .button-apply,.litepicker .container__footer .button-cancel{display:inline-flex;text-decoration:none;font-size:13px;margin:0;border:0;cursor:pointer;-webkit-appearance:none;background:none;transition:box-shadow .1s linear;height:36px;align-items:center;box-sizing:border-box;padding:6px 12px;border-radius:2px;color:#1e1e1e;white-space:nowrap}.litepicker .container__footer .button-apply{background:#007cba;background:var(--wp-admin-theme-color);color:#fff;text-decoration:none;text-shadow:none}.presto-settings__page{margin:25px 25px 25px auto}.presto-settings__loading{min-height:200px;width:100%;display:flex;align-items:center;justify-content:center}.presto-settings__body .components-card,.presto-settings__setting{max-width:800px}.presto-settings__navigation{margin-left:-20px;margin-right:-20px;padding-right:20px;position:sticky;top:32px;z-index:99}@media screen and (max-width:782px){.presto-settings__navigation{top:46px}}.presto-settings .components-snackbar.is-snackbar-error{background:#cc1818}.presto-settings__date-select,.presto-settings__date-select:disabled{padding-right:30px;background:#fff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E) no-repeat right 5px top 55%;background-size:16px 16px;cursor:pointer;vertical-align:middle;opacity:1;box-shadow:none;color:#444;border-color:#757575;-webkit-user-select:none;-ms-user-select:none;user-select:none}.is-color-control{max-width:250px}
|
19 |
+
|
20 |
+
/*# sourceMappingURL=admin-866190a9.css.map*/
|
dist/analytics/admin-866190a9.css.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///./src/admin/analytics/analytics.scss","webpack:///./src/admin/scss/admin.scss","webpack:///./src/admin/scss/datatable.scss","webpack:///./src/admin/analytics/scss/utility.scss","webpack:///./src/admin/analytics/scss/layout.scss","webpack:///./src/admin/analytics/scss/typography.scss","webpack:///./src/admin/analytics/scss/notices.scss","webpack:///./src/admin/analytics/scss/components.scss"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,EACE,6CCCE,eAEA,iBAEF,2BACE,YACA,gBACA,iCACE,YAGJ,gDACE,iBAEF,0BACE,eACA,oBACA,uBACA,mBAEA,WACA,YACA,kBACA,YACA,WACA,WACA,6CAEA,gCACE,UACA,uDAGJ,6BACE,oBCpCJ,WACI,aACA,sBACA,gBACA,yBACF,uBACE,4BACA,6BAEA,YAEF,uBACE,yBACA,0BAEA,gBACA,YChBJ,iBACE,wCAEF,gBACE,aACA,mBACA,uBACA,iBAGF,mBACE,WACA,yBAGE,kDAEE,eAKF,mCACE,eACA,sCAGF,4CACE,yBAIJ,4CAEE,gBACA,eACA,6BAGF,qCACE,gBAGF,sBACE,cACA,yBACA,YACA,eACA,gBACA,yBACA,mBAOJ,+FAMI,uIAKE,cAIF,4BACE,kBACA,YACA,aAGF,sBACE,gBAGF,qCACE,mBAGF,sBAGE,yCACA,kBAEA,2BAGF,6BAEE,kBAEA,SACA,UACA,UACA,mBACA,mBAIA,yBACA,eALA,CAKA,CC3GJ,uBACE,eACA,iBAEA,aACA,eACA,mCACA,oBACA,8BAGF,wBACE,gBACA,+BACA,aAEA,0BACE,YAGF,iCACE,OAIJ,0BACE,gBACA,aACA,aACA,mBACA,8BAEF,wBACE,gBAEF,2BACE,cACA,wBAEF,wBACE,gBACA,iBACA,kBAGJ,wBAEI,uBACE,cAEF,wBACE,YCnDJ,yBACE,gBCFJ,uDACE,yBACA,UACA,WACA,YACA,WCJA,oBACE,YACA,eACA,WACA,gBAKF,kCACE,cACA,iBACA,mBACA,WACA,gBACA,oBAGF,iCACE,gBACA,kBACA,mBACA,aACA,aACA,mBACA,8BACA,4BAGF,+BACE,gBACA,gBAIJ,mCACE,gCAGF,cACE,qBACA,qDACA,0CACA,iBACA,cACA,mBACA,qBAGF,8CAEE,YPxCF,MACE,yCACA,mDACA,mDAGA,iCAGA,4CACA,oDACA,qCACA,0CACA,mCACA,qCACA,6CACA,6CACA,+EAIA,+EAIA,6DACA,yCACA,6CACA,4BACA,4BACA,iEACA,oCACA,oEACA,qCACA,iCACA,mEACA,+BACA,iEACA,sCACA,4CACA,qCACA,uEACA,wCACA,0EACA,wCACA,8CAGF,0BACE,aACA,mBACA,uBACA,kBAEA,6BACE,eACA,mBAIJ,2BACE,aACA,cACA,uCACA,WACA,gBACA,qBACA,eACA,qBAGF,kCACE,kBACA,MACA,OACA,QACA,SACA,aACA,mBACA,oBACA,WAGF,sBACE,kBAGF,YACE,cAEA,gEAEE,kBAGF,yHAGE,yBACA,gBACA,gBACA,SAIA,2DACE,kBACA,aACA,gBACA,YACA,gBAEA,+DACE,0CAMJ,uEACE,qBAIJ,+BACE,gBACA,YAEA,2FAEE,oBACA,qBACA,eACA,SACA,SACA,eACA,wBACA,gBACA,iCACA,YACA,mBACA,sBACA,iBACA,kBACA,cACA,mBAGF,6CACE,mBACA,uCACA,WACA,qBACA,iBAMJ,uBACE,2BAEF,0BACE,iBACA,WACA,aACA,mBACA,uBAEF,kEAEE,gBAGF,6BACE,kBACA,mBACA,mBACA,gBACA,SACA,WAEA,oCARF,6BASI,UAIJ,wDACE,mBAGF,qEAEE,mBACA,kSAGA,0BACA,eACA,sBACA,UACA,gBACA,WACA,qBACA,+DAIJ,kBACE,gB","file":"analytics/admin-866190a9.css","sourcesContent":["* {\n box-sizing: inherit;\n}\n\n@import \"../scss/admin.scss\";\n@import \"../scss/datatable.scss\";\n@import \"./scss/utility.scss\";\n@import \"./scss/layout.scss\";\n@import \"./scss/typography.scss\";\n@import \"./scss/notices.scss\";\n@import \"./scss/components.scss\";\n\n:root {\n --wp-admin-theme-color: #7c3aed !important;\n --wp-admin-theme-color-darker-10: #6127c7 !important;\n --wp-admin-theme-color-darker-20: #501ea5 !important;\n // --litepickerDayIsEndBg: var(--wp-admin-theme-color, #7c3aed);\n // --litepickerDayIsStartBg: var(--wp-admin-theme-color, #7c3aed);\n --litepickerDayIsInRange: #f3f3f3;\n // --litepickerDayIsTodayColor: var(--wp-admin-theme-color, #7c3aed);\n\n --litepicker-container-months-color-bg: #fff;\n --litepicker-container-months-box-shadow-color: #ddd;\n --litepicker-footer-color-bg: #fafafa;\n --litepicker-footer-box-shadow-color: #ddd;\n --litepicker-tooltip-color-bg: #fff;\n --litepicker-month-header-color: #333;\n --litepicker-button-prev-month-color: #9e9e9e;\n --litepicker-button-next-month-color: #9e9e9e;\n --litepicker-button-prev-month-color-hover: var(\n --wp-admin-theme-color,\n #7c3aed\n );\n --litepicker-button-next-month-color-hover: var(\n --wp-admin-theme-color,\n #7c3aed\n );\n --litepicker-month-width: calc(var(--litepicker-day-width) * 7);\n --litepicker-month-weekday-color: #9e9e9e;\n --litepicker-month-week-number-color: #9e9e9e;\n --litepicker-day-width: 38px;\n --litepicker-day-color: #333;\n --litepicker-day-color-hover: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-is-today-color: #f44336;\n --litepicker-is-in-range-color: #7c3aed1f;\n --litepicker-is-locked-color: #9e9e9e;\n --litepicker-is-start-color: #fff;\n --litepicker-is-start-color-bg: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-is-end-color: #fff;\n --litepicker-is-end-color-bg: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-button-cancel-color: #fff;\n --litepicker-button-cancel-color-bg: #9e9e9e;\n --litepicker-button-apply-color: #fff;\n --litepicker-button-apply-color-bg: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-button-reset-color: #909090;\n --litepicker-button-reset-color-hover: var(--wp-admin-theme-color, #7c3aed);\n --litepicker-highlighted-day-color: #333;\n --litepicker-highlighted-day-color-bg: #ffeb3b;\n}\n\n.presto-player__stat-card {\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n\n h1 {\n font-size: 3rem;\n margin-bottom: 0.4em;\n }\n}\n\n.presto-options__pro-badge {\n margin: 0 4px;\n line-height: 1;\n background: var(--wp-admin-theme-color);\n color: white;\n padding: 3px 6px;\n border-radius: 9999px;\n font-size: 10px;\n display: inline-block;\n}\n\n.presto-options__disabled-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-self: center;\n z-index: 99;\n}\n\n.presto-options__card {\n position: relative;\n}\n\n.litepicker {\n font-size: 1em;\n\n .container__days > div,\n .container__days > a {\n margin-bottom: 5px;\n }\n\n .container__months,\n .container__footer,\n .container__main .container__predefined-ranges {\n border: 1px solid #e0e0e0;\n box-shadow: none;\n border-radius: 0;\n margin: 0;\n }\n\n .container__main {\n .container__predefined-ranges {\n margin-right: -1px;\n padding: 16px;\n max-width: 125px;\n width: 125px;\n border-radius: 0;\n\n > div {\n color: var(--wp-admin-theme-color, #007cba);\n }\n }\n }\n\n .container__months {\n .month-item-header div > .month-item-year {\n padding: 0 24px 0 8px;\n }\n }\n\n .container__footer {\n margin-top: -1px;\n padding: 8px;\n\n .button-cancel,\n .button-apply {\n display: inline-flex;\n text-decoration: none;\n font-size: 13px;\n margin: 0;\n border: 0;\n cursor: pointer;\n -webkit-appearance: none;\n background: none;\n transition: box-shadow 0.1s linear;\n height: 36px;\n align-items: center;\n box-sizing: border-box;\n padding: 6px 12px;\n border-radius: 2px;\n color: #1e1e1e;\n white-space: nowrap;\n }\n\n .button-apply {\n background: #007cba;\n background: var(--wp-admin-theme-color);\n color: #fff;\n text-decoration: none;\n text-shadow: none;\n }\n }\n}\n\n.presto-settings {\n &__page {\n margin: 25px 25px 25px auto;\n }\n &__loading {\n min-height: 200px;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n &__setting,\n &__body .components-card {\n max-width: 800px;\n }\n\n &__navigation {\n margin-left: -20px;\n margin-right: -20px;\n padding-right: 20px;\n position: sticky;\n top: 32px;\n z-index: 99;\n\n @media screen and (max-width: 782px) {\n top: 46px;\n }\n }\n\n .components-snackbar.is-snackbar-error {\n background: #cc1818;\n }\n\n &__date-select,\n &__date-select:disabled {\n padding-right: 30px;\n background: #fff\n url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E)\n no-repeat right 5px top 55%;\n background-size: 16px 16px;\n cursor: pointer;\n vertical-align: middle;\n opacity: 1;\n box-shadow: none;\n color: #444;\n border-color: #757575;\n user-select: none;\n }\n}\n\n.is-color-control {\n max-width: 250px;\n}\n",".presto-inline-edit {\n &__text {\n display: inline;\n margin: 0;\n margin-right: 8px;\n }\n &__input {\n flex-grow: 1;\n max-width: 640px;\n input {\n height: 36px;\n }\n }\n .presto-inline-edit__button {\n margin-right: 4px;\n }\n &__edit {\n cursor: pointer;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n\n width: 28px;\n height: 28px;\n border-radius: 50%;\n border: none;\n opacity: 0.5;\n color: #fff;\n background-color: var(--wp-admin-theme-color);\n\n &:hover {\n opacity: 1;\n background-color: var(--wp-admin-theme-color-darker-10);\n }\n }\n &--editing {\n align-items: stretch;\n }\n}\n",".datatable{\n display: flex;\n flex-direction: column;\n background: #fff;\n border: 1px solid rgb(226, 228, 231);\n .table-card{\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n border-bottom:none ;\n border:none;\n }\n .pagination{\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-top: none;\n margin-top:auto;\n border:none;\n }\n}",".presto-flow > * + * {\n margin-top: var(--presto-flow-space, 2em);\n}\n.presto-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 100px;\n}\n\ntable.presto-table {\n width: 100%;\n border-collapse: collapse;\n\n td {\n h2,\n h3 {\n margin: 0 0 8px 0;\n }\n }\n\n &.is-clickable {\n td {\n cursor: pointer;\n transition: background-color 0.25s ease;\n }\n\n tr:hover td {\n background-color: #f3f3f3;\n }\n }\n\n th,\n td {\n text-align: left;\n padding: 0.65rem;\n border-top: 1px solid rgb(226, 228, 231);\n }\n\n tr:first-child td {\n border-top: none;\n }\n\n th {\n color: #757575;\n background-color: #f7f7f7;\n border: none;\n font-size: 10px;\n font-weight: bold;\n text-transform: uppercase;\n letter-spacing: 1px;\n }\n}\n\n/*\n\tMax width before this PARTICULAR table gets nasty. This query will take effect for any screen smaller than 760px and also iPads specifically.\n\t*/\n@media only screen and (max-width: 760px),\n (min-device-width: 768px) and (max-device-width: 1024px) {\n table.presto-table {\n display: block;\n\n /* Force table to not be like tables anymore */\n thead,\n tbody,\n th,\n td,\n tr {\n display: block;\n }\n\n /* Hide table headers (but not display: none;, for accessibility) */\n thead tr {\n position: absolute;\n top: -9999px;\n left: -9999px;\n }\n\n tr {\n margin: 0 0 1rem 0;\n }\n\n tr:nth-child(odd) {\n background: #f3f3f3;\n }\n\n td {\n /* Behave like a \"row\" */\n border: none;\n border-bottom: 1px solid #fff;\n position: relative;\n padding: 10px;\n padding-left: 50%;\n }\n\n td:before {\n /* Now like a table header */\n position: absolute;\n /* Top/left values mimic padding */\n top: 10px;\n left: 10px;\n width: 45%;\n padding-right: 10px;\n white-space: nowrap;\n }\n\n td:before {\n content: attr(data-title);\n font-weight: bold;\n }\n }\n}\n",".presto-dashboard {\n &__row {\n --spacing: 1rem;\n --column-count: 2;\n\n display: flex;\n flex-wrap: wrap;\n margin: 0 calc(var(--spacing) * -0.5);\n align-items: stretch;\n justify-content: space-between;\n }\n\n &__item {\n flex: 0 1 33.33%;\n padding: calc(var(--spacing) / 3);\n width: 33.33%;\n\n > * {\n height: 100%;\n }\n\n &.is-large {\n flex: 1;\n }\n }\n\n &__header {\n background: #fff;\n padding: 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n &__logo {\n max-width: 175px;\n }\n &__content {\n margin: 25px 0;\n width: calc(100% - 20px);\n }\n &__body {\n max-width: 800px;\n margin-left: auto;\n margin-right: auto;\n }\n}\n@media (max-width:767px){\n .presto-dashboard{\n &__row{\n display: block;\n }\n &__item{\n width:100%;\n }\n }\n}",".presto-dashboard {\n &__title {\n line-height: 1em;\n }\n}\n",".presto-settings-page-notices.components-snackbar-list {\n position: fixed !important;\n left: auto;\n right: 40px;\n bottom: 40px;\n width: auto;\n}\n",".presto-card {\n &__title {\n opacity: 0.75;\n font-size: 1rem;\n clear: both;\n margin: 0.75rem 0;\n }\n}\n\n.presto-player-dashboard {\n &__version {\n line-height: 1;\n padding: 6px 12px;\n background: #f1f1f1;\n color: #666;\n font-weight: 500;\n border-radius: 999px;\n }\n\n &__header {\n background: #fff;\n margin-left: -20px;\n margin-right: -20px;\n padding: 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n max-width: calc(100% + 20px);\n }\n\n &__logo {\n max-height: 30px;\n max-width: 200px;\n }\n}\n\n.presto-module-tabs [role=\"tablist\"] {\n border-bottom: 1px solid rgb(226, 228, 231);\n}\n\n.presto-badge {\n border-radius: 9999px;\n border: 1px solid var(--wp-admin-theme-color, #007cba);\n color: var(--wp-admin-theme-color, #007cba);\n padding: 5px 10px;\n line-height: 1;\n white-space: nowrap;\n display: inline-block;\n}\n\n.apexcharts-xaxis text,\n.apexcharts-yaxis text {\n opacity: 0.35;\n}\n"],"sourceRoot":""}
|
dist/analytics/admin.dependencies.wp.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"dependencies": [],
|
3 |
+
"version": "3fac1105663758c61158472b0fa657c3"
|
4 |
+
}
|
dist/analytics/manifest.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"admin.css": "analytics/admin-866190a9.css",
|
3 |
+
"admin.css.map": "analytics/admin-866190a9.css.map",
|
4 |
+
"admin.js": "analytics/admin-5fb77cbc.js",
|
5 |
+
"admin.js.map": "analytics/admin-5fb77cbc.js.map",
|
6 |
+
"analytics/0-3f75c1ce.js": "analytics/0-3f75c1ce.js",
|
7 |
+
"analytics/0-3f75c1ce.js.map": "analytics/0-3f75c1ce.js.map",
|
8 |
+
"analytics/4-1a7d5725.js": "analytics/4-1a7d5725.js",
|
9 |
+
"analytics/4-1a7d5725.js.map": "analytics/4-1a7d5725.js.map",
|
10 |
+
"analytics/5-48078a33.js": "analytics/5-48078a33.js",
|
11 |
+
"analytics/5-48078a33.js.map": "analytics/5-48078a33.js.map",
|
12 |
+
"analytics/6-952599ce.js": "analytics/6-952599ce.js",
|
13 |
+
"analytics/6-952599ce.js.map": "analytics/6-952599ce.js.map",
|
14 |
+
"analytics/7-c4380ef8.js": "analytics/7-c4380ef8.js",
|
15 |
+
"analytics/7-c4380ef8.js.map": "analytics/7-c4380ef8.js.map",
|
16 |
+
"runtime.js": "analytics/runtime-86dd3f98.js",
|
17 |
+
"runtime.js.map": "analytics/runtime-86dd3f98.js.map",
|
18 |
+
"vendors--presto-player--admin.js": "analytics/vendors--presto-player--admin-831bbaae.js",
|
19 |
+
"vendors--presto-player--admin.js.map": "analytics/vendors--presto-player--admin-831bbaae.js.map",
|
20 |
+
"wpackioEp": {
|
21 |
+
"admin": {
|
22 |
+
"assets": {
|
23 |
+
"js": [
|
24 |
+
"analytics/runtime-86dd3f98.js",
|
25 |
+
"analytics/vendors--presto-player--admin-831bbaae.js",
|
26 |
+
"analytics/admin-5fb77cbc.js"
|
27 |
+
],
|
28 |
+
"js.map": [
|
29 |
+
"analytics/runtime-86dd3f98.js.map",
|
30 |
+
"analytics/vendors--presto-player--admin-831bbaae.js.map",
|
31 |
+
"analytics/admin-5fb77cbc.js.map"
|
32 |
+
],
|
33 |
+
"css": [
|
34 |
+
"analytics/admin-866190a9.css"
|
35 |
+
],
|
36 |
+
"css.map": [
|
37 |
+
"analytics/admin-866190a9.css.map"
|
38 |
+
]
|
39 |
+
}
|
40 |
+
}
|
41 |
+
}
|
42 |
+
}
|
dist/analytics/runtime-07fc3029.js
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/!function(e){function r(r){for(var n,u,i=r[0],c=r[1],l=r[2],p=0,s=[];p<i.length;p++)u=i[p],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);s.length;)s.shift()();return a.push.apply(a,l||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(a.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={2:0},a=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var a,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"analytics/"+({}[e]||e)+"-"+{0:"ecdca2a6",4:"1071be7e",5:"2ed7cff3",6:"c200bf25",7:"5437b4a3"}[e]+".js"}(e);var c=new Error;a=function(r){i.onerror=i.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",c.name="ChunkLoadError",c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){a({type:"timeout",target:i})}),12e4);i.onerror=i.onload=a,document.head.appendChild(i)}return Promise.all(r)},u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="",u.oe=function(e){throw console.error(e),e};var i=window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var f=c;t()}([]);
|
18 |
+
//# sourceMappingURL=runtime-07fc3029.js.map
|
dist/analytics/runtime-07fc3029.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","2","exports","module","l","e","promises","installedChunkData","promise","Promise","resolve","reject","onScriptComplete","script","document","createElement","charset","timeout","nc","setAttribute","src","p","jsonpScriptSrc","error","Error","event","onerror","onload","clearTimeout","chunk","errorType","type","realSrc","target","message","name","request","undefined","setTimeout","head","appendChild","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","err","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":";;;;;;;;;;;;;;;;gBACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAKnBhB,EAAkB,CACrBiB,EAAG,GAGAZ,EAAkB,GAQtB,SAASS,EAAoB1B,GAG5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L,EAAoB8C,EAAEC,EAAQ,IAAKA,GAC5BA,GAIR/C,EAAoBgD,EAAI,SAASgB,EAAQC,GAAY,OAAOnF,OAAOC,UAAUC,eAAeC,KAAK+E,EAAQC,IAGzGjE,EAAoBuB,EAAI,GAGxBvB,EAAoBkE,GAAK,SAASC,GAA2B,MAApBC,QAAQ3C,MAAM0C,GAAYA,GAEnE,IAAIE,EAAaC,OAA0C,kCAAIA,OAA0C,mCAAK,GAC1GC,EAAmBF,EAAWlF,KAAK2E,KAAKO,GAC5CA,EAAWlF,KAAOf,EAClBiG,EAAaA,EAAWG,QACxB,IAAI,IAAI7F,EAAI,EAAGA,EAAI0F,EAAWxF,OAAQF,IAAKP,EAAqBiG,EAAW1F,IAC3E,IAAIU,EAAsBkF,EAI1B9E,I","file":"analytics/runtime-07fc3029.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"analytics/\" + ({}[chunkId]||chunkId) + \"-\" + {\"0\":\"ecdca2a6\",\"4\":\"1071be7e\",\"5\":\"2ed7cff3\",\"6\":\"c200bf25\",\"7\":\"5437b4a3\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"wpackioprestoPlayeranalyticsJsonp\"] = window[\"wpackioprestoPlayeranalyticsJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
|
dist/analytics/runtime-86dd3f98.js
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/!function(e){function r(r){for(var n,u,i=r[0],c=r[1],l=r[2],p=0,s=[];p<i.length;p++)u=i[p],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);s.length;)s.shift()();return a.push.apply(a,l||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(a.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={2:0},a=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var a,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"analytics/"+({}[e]||e)+"-"+{0:"3f75c1ce",4:"1a7d5725",5:"48078a33",6:"952599ce",7:"c4380ef8"}[e]+".js"}(e);var c=new Error;a=function(r){i.onerror=i.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",c.name="ChunkLoadError",c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){a({type:"timeout",target:i})}),12e4);i.onerror=i.onload=a,document.head.appendChild(i)}return Promise.all(r)},u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="",u.oe=function(e){throw console.error(e),e};var i=window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var f=c;t()}([]);
|
18 |
+
//# sourceMappingURL=runtime-86dd3f98.js.map
|
dist/analytics/runtime-86dd3f98.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","2","exports","module","l","e","promises","installedChunkData","promise","Promise","resolve","reject","onScriptComplete","script","document","createElement","charset","timeout","nc","setAttribute","src","p","jsonpScriptSrc","error","Error","event","onerror","onload","clearTimeout","chunk","errorType","type","realSrc","target","message","name","request","undefined","setTimeout","head","appendChild","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","err","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":";;;;;;;;;;;;;;;;gBACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,I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,GADU,EAAPA,IAAUF,EAAQvD,EAAoBuD,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAK7E,OAAO8E,OAAO,MAGvB,GAFA5D,EAAoBoD,EAAEO,GACtB7E,OAAOmE,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOvD,EAAoB8C,EAAEa,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIR3D,EAAoB+D,EAAI,SAAS1D,GAChC,IAAI0C,EAAS1C,GAAUA,EAAOqD,WAC7B,WAAwB,OAAOrD,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAL,EAAoB8C,EAAEC,EAAQ,IAAKA,GAC5BA,GAIR/C,EAAoBgD,EAAI,SAASgB,EAAQC,GAAY,OAAOnF,OAAOC,UAAUC,eAAeC,KAAK+E,EAAQC,IAGzGjE,EAAoBuB,EAAI,GAGxBvB,EAAoBkE,GAAK,SAASC,GAA2B,MAApBC,QAAQ3C,MAAM0C,GAAYA,GAEnE,IAAIE,EAAaC,OAA0C,kCAAIA,OAA0C,mCAAK,GAC1GC,EAAmBF,EAAWlF,KAAK2E,KAAKO,GAC5CA,EAAWlF,KAAOf,EAClBiG,EAAaA,EAAWG,QACxB,IAAI,IAAI7F,EAAI,EAAGA,EAAI0F,EAAWxF,OAAQF,IAAKP,EAAqBiG,EAAW1F,IAC3E,IAAIU,EAAsBkF,EAI1B9E,I","file":"analytics/runtime-86dd3f98.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"analytics/\" + ({}[chunkId]||chunkId) + \"-\" + {\"0\":\"3f75c1ce\",\"4\":\"1a7d5725\",\"5\":\"48078a33\",\"6\":\"952599ce\",\"7\":\"c4380ef8\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"wpackioprestoPlayeranalyticsJsonp\"] = window[\"wpackioprestoPlayeranalyticsJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
|
dist/analytics/vendors--presto-player--admin-6682354b.js
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
*
|
3 |
+
* Presto Player
|
4 |
+
*
|
5 |
+
* @author Presto Made, Inc
|
6 |
+
* @version 0.1.0
|
7 |
+
* @link undefined
|
8 |
+
* @license GPL
|
9 |
+
*
|
10 |
+
* Copyright (c) 2021 Presto Made, Inc
|
11 |
+
*
|
12 |
+
* This software is released under the GPL License
|
13 |
+
* https://opensource.org/licenses/GPL
|
14 |
+
*
|
15 |
+
* Compiled with the help of https://wpack.io
|
16 |
+
* A zero setup Webpack Bundler Script for WordPress
|
17 |
+
*/
|
18 |
+
(window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[3],[function(e,t,i){e.exports=i(33)},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(20);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}}(e,t)||Object(n.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,i){"use strict";i.d(t,"a",(function(){return D})),i.d(t,"b",(function(){return z}));var n=i(10),r=i(13);var a=i(9);var o=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,i=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(i,t),this.tags.push(i)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);r.insertRule(e,a?0:r.cssRules.length)}catch(e){0}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var s=function(e){function t(e,t,n){var r=t.trim().split(g);t=r;var a=r.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<a;++s)t[s]=i(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<a;++s)for(var c=0;c<o;++c)t[l++]=i(e[c]+" ",r[s],n).trim()}return t}function i(e,t,i){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*i&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,i,n){var o=e+";",s=2*t+3*i+4*n;if(944===s){e=o.indexOf(":",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+";",1===E||2===E&&a(l,1)?"-webkit-"+l+l:l}if(0===E||2===E&&!a(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(C,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(l=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+l+o;case 1005:return p.test(o)?o.replace(u,":-webkit-")+o.replace(u,":-moz-")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(x,"tb");break;case 232:l=o.replace(x,"tb-rl");break;case 220:l=o.replace(x,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+l+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(l,"-webkit-"+l)+";"+o.replace(l,"-ms-"+l+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+l+"-ms-flex-"+l+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(_,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(_,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,i,n).replace(":fill-available",":stretch"):o.replace(l,"-webkit-"+l)+o.replace(l,"-moz-"+l.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===i+n&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+o}return o}function a(e,t){var i=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?i:10);return i=e.substring(i+1,e.length-1),D(2!==t?n:n.replace(A,"$1"),i,t)}function o(e,t){var i=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return i!==t+";"?i.replace(k," or ($1)").substring(4):"("+t+")"}function s(e,t,i,n,r,a,o,s,l,h){for(var d,u=0,p=t;u<O;++u)switch(d=I[u].call(c,e,p,i,n,r,a,o,s,l,h)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?E=1:(E=2,D=e):E=0),l}function c(e,i){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<O){var l=s(-1,i,n,n,P,T,0,0,0,0);void 0!==l&&"string"==typeof l&&(i=l)}var c=function e(i,n,l,c,u){for(var p,f,g,m,x,k=0,_=0,A=0,S=0,C=0,I=0,D=g=p=0,N=0,R=0,F=0,Y=0,H=l.length,$=H-1,j="",X="",B="",W="";N<H;){if(f=l.charCodeAt(N),N===$&&0!==_+S+A+k&&(0!==_&&(f=47===_?10:47),S=A=k=0,H++,$++),0===_+S+A+k){if(N===$&&(0<R&&(j=j.replace(d,"")),0<j.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:j+=l.charAt(N)}f=59}switch(f){case 123:for(p=(j=j.trim()).charCodeAt(0),g=1,Y=++N;N<H;){switch(f=l.charCodeAt(N)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(N+1)){case 42:case 47:e:{for(D=N+1;D<$;++D)switch(l.charCodeAt(D)){case 47:if(42===f&&42===l.charCodeAt(D-1)&&N+2!==D){N=D+1;break e}break;case 10:if(47===f){N=D+1;break e}}N=D}}break;case 91:f++;case 40:f++;case 34:case 39:for(;N++<$&&l.charCodeAt(N)!==f;);}if(0===g)break;N++}switch(g=l.substring(Y,N),0===p&&(p=(j=j.replace(h,"").trim()).charCodeAt(0)),p){case 64:switch(0<R&&(j=j.replace(d,"")),f=j.charCodeAt(1)){case 100:case 109:case 115:case 45:R=n;break;default:R=M}if(Y=(g=e(n,R,g,f,u+1)).length,0<O&&(x=s(3,g,R=t(M,j,F),n,P,T,Y,f,u,c),j=R.join(""),void 0!==x&&0===(Y=(g=x.trim()).length)&&(f=0,g="")),0<Y)switch(f){case 115:j=j.replace(w,o);case 100:case 109:case 45:g=j+"{"+g+"}";break;case 107:g=(j=j.replace(v,"$1 $2"))+"{"+g+"}",g=1===E||2===E&&a("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=j+g,112===c&&(X+=g,g="")}else g="";break;default:g=e(n,t(n,j,F),g,c,u+1)}B+=g,g=F=R=D=p=0,j="",f=l.charCodeAt(++N);break;case 125:case 59:if(1<(Y=(j=(0<R?j.replace(d,""):j).trim()).length))switch(0===D&&(p=j.charCodeAt(0),45===p||96<p&&123>p)&&(Y=(j=j.replace(" ",":")).length),0<O&&void 0!==(x=s(1,j,n,i,P,T,X.length,c,u,c))&&0===(Y=(j=x.trim()).length)&&(j="\0\0"),p=j.charCodeAt(0),f=j.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){W+=j+l.charAt(N);break}default:58!==j.charCodeAt(Y-1)&&(X+=r(j,p,f,j.charCodeAt(2)))}F=R=D=p=0,j="",f=l.charCodeAt(++N)}}switch(f){case 13:case 10:47===_?_=0:0===1+p&&107!==c&&0<j.length&&(R=1,j+="\0"),0<O*z&&s(0,j,n,i,P,T,X.length,c,u,c),T=1,P++;break;case 59:case 125:if(0===_+S+A+k){T++;break}default:switch(T++,m=l.charAt(N),f){case 9:case 32:if(0===S+k+_)switch(C){case 44:case 58:case 9:case 32:m="";break;default:32!==f&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===S+_+k&&(R=F=1,m="\f"+m);break;case 108:if(0===S+_+k+L&&0<D)switch(N-D){case 2:112===C&&58===l.charCodeAt(N-3)&&(L=C);case 8:111===I&&(L=I)}break;case 58:0===S+_+k&&(D=N);break;case 44:0===_+A+S+k&&(R=1,m+="\r");break;case 34:case 39:0===_&&(S=S===f?0:0===S?f:S);break;case 91:0===S+_+A&&k++;break;case 93:0===S+_+A&&k--;break;case 41:0===S+_+k&&A--;break;case 40:if(0===S+_+k){if(0===p)switch(2*C+3*I){case 533:break;default:p=1}A++}break;case 64:0===_+A+S+k+D+g&&(g=1);break;case 42:case 47:if(!(0<S+k+A))switch(_){case 0:switch(2*f+3*l.charCodeAt(N+1)){case 235:_=47;break;case 220:Y=N,_=42}break;case 42:47===f&&42===C&&Y+2!==N&&(33===l.charCodeAt(Y+2)&&(X+=l.substring(Y,N+1)),m="",_=0)}}0===_&&(j+=m)}I=C,C=f,N++}if(0<(Y=X.length)){if(R=n,0<O&&(void 0!==(x=s(2,X,R,i,P,T,Y,c,u,c))&&0===(X=x).length))return W+X+B;if(X=R.join(",")+"{"+X+"}",0!=E*L){switch(2!==E||a(X,2)||(L=0),L){case 111:X=X.replace(b,":-moz-$1")+X;break;case 112:X=X.replace(y,"::-webkit-input-$1")+X.replace(y,"::-moz-$1")+X.replace(y,":-ms-input-$1")+X}L=0}}return W+X+B}(M,n,i,0,0);return 0<O&&(void 0!==(l=s(-2,c,n,n,P,T,c.length,0,0,0))&&(c=l)),"",L=0,T=P=1,c}var h=/^\0+/g,d=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,_=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,T=1,P=1,L=0,E=1,M=[],I=[],O=0,D=null,z=0;return c.use=function e(t){switch(t){case void 0:case null:O=I.length=0;break;default:if("function"==typeof t)I[O++]=t;else if("object"===Object(n.a)(t))for(var i=0,r=t.length;i<r;++i)e(t[i]);else z=0|!!t}return e},c.set=l,void 0!==e&&l(e),c};function l(e){e&&c.current.insert(e+"}")}var c={current:null},h=function(e,t,i,n,r,a,o,s,h,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return c.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return c.current.insert(i[0]+t),"";default:return t+(0===d?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(l)}},d=function(e){void 0===e&&(e={});var t,i=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var n=new s(t);var r,a={};r=e.container||document.head;var l,d=document.querySelectorAll("style[data-emotion-"+i+"]");Array.prototype.forEach.call(d,(function(e){e.getAttribute("data-emotion-"+i).split(" ").forEach((function(e){a[e]=!0})),e.parentNode!==r&&r.appendChild(e)})),n.use(e.stylisPlugins)(h),l=function(e,t,i,r){var a=t.name;c.current=i,n(e,t.styles),r&&(u.inserted[a]=!0)};var u={key:i,sheet:new o({key:i,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:l};return u};i(41);function u(e,t,i){var n="";return i.split(" ").forEach((function(i){void 0!==e[i]?t.push(e[i]):n+=i+" "})),n}var p=function(e,t,i){var n=e.key+"-"+t.name;if(!1===i&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var r=t;do{e.insert("."+n,r,e.sheet,!0);r=r.next}while(void 0!==r)}};var f=function(e){for(var t,i=0,n=0,r=e.length;r>=4;++n,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),i=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&i)+(59797*(i>>>16)<<16);switch(r){case 3:i^=(255&e.charCodeAt(n+2))<<16;case 2:i^=(255&e.charCodeAt(n+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(n)))+(59797*(i>>>16)<<16)}return(((i=1540483477*(65535&(i^=i>>>13))+(59797*(i>>>16)<<16))^i>>>15)>>>0).toString(36)},g={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var m=/[A-Z]|^ms/g,v=/_EMO_([^_]+?)_([^]*?)_EMO_/g,y=function(e){return 45===e.charCodeAt(1)},b=function(e){return null!=e&&"boolean"!=typeof e},x=function(e){var t={};return function(i){return void 0===t[i]&&(t[i]=e(i)),t[i]}}((function(e){return y(e)?e:e.replace(m,"-$&").toLowerCase()})),w=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(v,(function(e,t,i){return _={name:t,styles:i,next:_},t}))}return 1===g[e]||y(e)||"number"!=typeof t||0===t?t:t+"px"};function k(e,t,i,r){if(null==i)return"";if(void 0!==i.__emotion_styles)return i;switch(Object(n.a)(i)){case"boolean":return"";case"object":if(1===i.anim)return _={name:i.name,styles:i.styles,next:_},i.name;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)_={name:a.name,styles:a.styles,next:_},a=a.next;return i.styles+";"}return function(e,t,i){var r="";if(Array.isArray(i))for(var a=0;a<i.length;a++)r+=k(e,t,i[a],!1);else for(var o in i){var s=i[o];if("object"!==Object(n.a)(s))null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":b(s)&&(r+=x(o)+":"+w(o,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=k(e,t,s,!1);switch(o){case"animation":case"animationName":r+=x(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<s.length;c++)b(s[c])&&(r+=x(o)+":"+w(o,s[c])+";")}return r}(e,t,i);case"function":if(void 0!==e){var o=_,s=i(e);return _=o,k(e,t,s,r)}break;case"string":}if(null==t)return i;var l=t[i];return void 0===l||r?i:l}var _,A=/label:\s*([^\s;\n{]+)\s*;/g;var S=function(e,t,i){if(1===e.length&&"object"===Object(n.a)(e[0])&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";_=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,a+=k(i,t,o,!1)):a+=o[0];for(var s=1;s<e.length;s++)a+=k(i,t,e[s],46===a.charCodeAt(a.length-1)),r&&(a+=o[s]);A.lastIndex=0;for(var l,c="";null!==(l=A.exec(a));)c+="-"+l[1];return{name:f(a)+c,styles:a,next:_}},C=Object.prototype.hasOwnProperty,T=Object(a.createContext)("undefined"!=typeof HTMLElement?d():null),P=Object(a.createContext)({}),L=(T.Provider,function(e){var t=function(t,i){return Object(a.createElement)(T.Consumer,null,(function(n){return e(t,n,i)}))};return Object(a.forwardRef)(t)}),E="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",M=function(e,t){var i={};for(var n in t)C.call(t,n)&&(i[n]=t[n]);return i[E]=e,i},I=function(e,t,i,n){var r=null===i?t.css:t.css(i);"string"==typeof r&&void 0!==e.registered[r]&&(r=e.registered[r]);var o=t[E],s=[r],l="";"string"==typeof t.className?l=u(e.registered,s,t.className):null!=t.className&&(l=t.className+" ");var c=S(s);p(e,c,"string"==typeof o);l+=e.key+"-"+c.name;var h={};for(var d in t)C.call(t,d)&&"css"!==d&&d!==E&&(h[d]=t[d]);return h.ref=n,h.className=l,Object(a.createElement)(o,h)},O=L((function(e,t,i){return"function"==typeof e.css?Object(a.createElement)(P.Consumer,null,(function(n){return I(t,e,n,i)})):I(t,e,null,i)}));var D=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return S(t)},z=function(e,t){var i=arguments;if(null==t||!C.call(t,"css"))return a.createElement.apply(void 0,i);var n=i.length,r=new Array(n);r[0]=O,r[1]=M(e,t);for(var o=2;o<n;o++)r[o]=i[o];return a.createElement.apply(null,r)},N=(a.Component,function e(t){for(var i=t.length,r=0,a="";r<i;r++){var o=t[r];if(null!=o){var s=void 0;switch(Object(n.a)(o)){case"boolean":break;case"object":if(Array.isArray(o))s=e(o);else for(var l in s="",o)o[l]&&l&&(s&&(s+=" "),s+=l);break;default:s=o}s&&(a&&(a+=" "),a+=s)}}return a});function R(e,t,i){var n=[],r=u(e,n,i);return n.length<2?i:r+t(n)}L((function(e,t){return Object(a.createElement)(P.Consumer,null,(function(i){var n=function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];var r=S(i,t.registered);return p(t,r,!1),t.key+"-"+r.name},r={css:n,cx:function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return R(t.registered,n,N(i))},theme:i},a=e.children(r);return!0,a}))}))},function(e,t,i){"use strict";function n(e,t,i,n,r,a,o){try{var s=e[a](o),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,r)}function r(e){return function(){var t=this,i=arguments;return new Promise((function(r,a){var o=e.apply(t,i);function s(e){n(o,r,a,s,l,"next",e)}function l(e){n(o,r,a,s,l,"throw",e)}s(void 0)}))}}i.d(t,"a",(function(){return r}))},function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}i.d(t,"a",(function(){return r}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(13);function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(n.a)(e,t)}},function(e,t,i){"use strict";e.exports=i(36)},function(e,t,i){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}i.d(t,"a",(function(){return n}))},function(e,t){function i(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=i=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=i=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),i(t)}e.exports=i,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,i){"use strict";function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i(12),r=i.n(n),a=i(5);function o(e,t){return!t||"object"!==r()(t)&&"function"!=typeof t?Object(a.a)(e):t}},function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i(19);var r=i(20);function a(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));i(10);function n(e,t){void 0===t&&(t={});for(var i=function(e){for(var t=[],i=0;i<e.length;){var n=e[i];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:i,value:e[i++]});else{var r=1,a="";if("?"===e[s=i+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--r){s++;break}}else if("("===e[s]&&(r++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);a+=e[s++]}else a+=e[s++]+e[s++];if(r)throw new TypeError("Unbalanced pattern at "+i);if(!a)throw new TypeError("Missing pattern at "+i);t.push({type:"PATTERN",index:i,value:a}),i=s}else{for(var o="",s=i+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;o+=e[s++]}if(!o)throw new TypeError("Missing parameter name at "+i);t.push({type:"NAME",index:i,value:o}),i=s}else t.push({type:"CLOSE",index:i,value:e[i++]});else t.push({type:"OPEN",index:i,value:e[i++]});else t.push({type:"ESCAPED_CHAR",index:i++,value:e[i++]});else t.push({type:"MODIFIER",index:i,value:e[i++]})}return t.push({type:"END",index:i,value:""}),t}(e),n=t.prefixes,r=void 0===n?"./":n,o="[^"+a(t.delimiter||"/#?")+"]+?",s=[],l=0,c=0,h="",d=function(e){if(c<i.length&&i[c].type===e)return i[c++].value},u=function(e){var t=d(e);if(void 0!==t)return t;var n=i[c],r=n.type,a=n.index;throw new TypeError("Unexpected "+r+" at "+a+", expected "+e)},p=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t};c<i.length;){var f=d("CHAR"),g=d("NAME"),m=d("PATTERN");if(g||m){var v=f||"";-1===r.indexOf(v)&&(h+=v,v=""),h&&(s.push(h),h=""),s.push({name:g||l++,prefix:v,suffix:"",pattern:m||o,modifier:d("MODIFIER")||""})}else{var y=f||d("ESCAPED_CHAR");if(y)h+=y;else if(h&&(s.push(h),h=""),d("OPEN")){v=p();var b=d("NAME")||"",x=d("PATTERN")||"",w=p();u("CLOSE"),s.push({name:b||(x?l++:""),pattern:b&&!x?o:x,prefix:v,suffix:w,modifier:d("MODIFIER")||""})}else u("END")}}return s}function r(e,t){var i=[];return function(e,t,i){void 0===i&&(i={});var n=i.decode,r=void 0===n?function(e){return e}:n;return function(i){var n=e.exec(i);if(!n)return!1;for(var a=n[0],o=n.index,s=Object.create(null),l=function(e){if(void 0===n[e])return"continue";var i=t[e-1];"*"===i.modifier||"+"===i.modifier?s[i.name]=n[e].split(i.prefix+i.suffix).map((function(e){return r(e,i)})):s[i.name]=r(n[e],i)},c=1;c<n.length;c++)l(c);return{path:a,index:o,params:s}}}(l(e,i,t),i,t)}function a(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function o(e){return e&&e.sensitive?"":"i"}function s(e,t,i){return function(e,t,i){void 0===i&&(i={});for(var n=i.strict,r=void 0!==n&&n,s=i.start,l=void 0===s||s,c=i.end,h=void 0===c||c,d=i.encode,u=void 0===d?function(e){return e}:d,p="["+a(i.endsWith||"")+"]|$",f="["+a(i.delimiter||"/#?")+"]",g=l?"^":"",m=0,v=e;m<v.length;m++){var y=v[m];if("string"==typeof y)g+=a(u(y));else{var b=a(u(y.prefix)),x=a(u(y.suffix));if(y.pattern)if(t&&t.push(y),b||x)if("+"===y.modifier||"*"===y.modifier){var w="*"===y.modifier?"?":"";g+="(?:"+b+"((?:"+y.pattern+")(?:"+x+b+"(?:"+y.pattern+"))*)"+x+")"+w}else g+="(?:"+b+"("+y.pattern+")"+x+")"+y.modifier;else g+="("+y.pattern+")"+y.modifier;else g+="(?:"+b+x+")"+y.modifier}}if(h)r||(g+=f+"?"),g+=i.endsWith?"(?="+p+")":"$";else{var k=e[e.length-1],_="string"==typeof k?f.indexOf(k[k.length-1])>-1:void 0===k;r||(g+="(?:"+f+"(?="+p+"))?"),_||(g+="(?="+f+"|"+p+")")}return new RegExp(g,o(i))}(n(e,i),t,i)}function l(e,t,i){return e instanceof RegExp?function(e,t){if(!t)return e;for(var i=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,r=i.exec(e.source);r;)t.push({name:r[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),r=i.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,i){var n=e.map((function(e){return l(e,t,i).source}));return new RegExp("(?:"+n.join("|")+")",o(i))}(e,t,i):s(e,t,i)}},function(e,t,i){"use strict";var n=i(12);Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=d(i(35)),l=i(9),c=d(l),h=d(i(37));function d(e){return e&&e.__esModule?e:{default:e}}window.ApexCharts=s.default;var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=n(t)&&"function"!=typeof t?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return c.default.createRef?i.chartRef=c.default.createRef():i.setRef=function(e){return i.chartRef=e},i.chart=null,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+n(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,l.Component),o(e,[{key:"render",value:function(){var e=function(e,t){var i={};for(var n in e)0<=t.indexOf(n)||Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);return i}(this.props,[]);return c.default.createElement("div",a({ref:c.default.createRef?this.chartRef:this.setRef},e))}},{key:"componentDidMount",value:function(){var e=c.default.createRef?this.chartRef.current:this.chartRef;this.chart=new s.default(e,this.getConfig()),this.chart.render()}},{key:"getConfig",value:function(){var e=this.props,t=e.type,i=e.height,n=e.width,r=e.series,a=e.options,o={chart:{type:t,height:i,width:n},series:r};return this.extend(a,o)}},{key:"isObject",value:function(e){return e&&"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e)&&null!=e}},{key:"extend",value:function(e,t){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}return t});var n=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach((function(r){i.isObject(t[r])&&r in e?n[r]=i.extend(e[r],t[r]):Object.assign(n,function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}({},r,t[r]))})),n}},{key:"componentDidUpdate",value:function(e){if(!this.chart)return null;var t=this.props,i=t.options,n=t.series,r=t.height,a=t.width,o=JSON.stringify(e.options),s=JSON.stringify(e.series),l=JSON.stringify(i),c=JSON.stringify(n);o===l&&s===c&&r===e.height&&a===e.width||(s===c?this.chart.updateOptions(this.getConfig()):o===l&&r===e.height&&a===e.width?this.chart.updateSeries(n):this.chart.updateOptions(this.getConfig()))}},{key:"componentWillUnmount",value:function(){this.chart&&"function"==typeof this.chart.destroy&&this.chart.destroy()}}]),e}();(t.default=u).propTypes={type:h.default.string.isRequired,width:h.default.any,height:h.default.any,series:h.default.array.isRequired,options:h.default.object.isRequired},u.defaultProps={type:"line",width:"100%",height:"auto"}},function(e,t,i){"use strict";e.exports=i(43)},function(e,t,i){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(19);function r(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Object(n.a)(e,t):void 0}}},function(e,t,i){var n,r=i(12);
|
19 |
+
/*!
|
20 |
+
Copyright (c) 2018 Jed Watson.
|
21 |
+
Licensed under the MIT License (MIT), see
|
22 |
+
http://jedwatson.github.io/classnames
|
23 |
+
*/!function(){"use strict";var a={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var n=r(i);if("string"===n||"number"===n)e.push(i);else if(Array.isArray(i)){if(i.length){var s=o.apply(null,i);s&&e.push(s)}}else if("object"===n)if(i.toString===Object.prototype.toString)for(var l in i)a.call(i,l)&&i[l]&&e.push(l);else e.push(i.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):"object"===r(i(25))&&i(25)?void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n):window.classNames=o}()},function(e,t,i){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return go})),i.d(t,"b",(function(){return Hi})),i.d(t,"c",(function(){return Vo})),i.d(t,"d",(function(){return Ma}));var n=i(15),r=i(3),a=i(4),o=i(6),s=i(7),l=i(5),c=i(8),h=i(14),d=i(11),u=i(13);function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function f(e,t,i){return(f=p()?Reflect.construct:function(e,t,i){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return i&&Object(u.a)(r,i.prototype),r}).apply(null,arguments)}function g(e){var t="function"==typeof Map?new Map:void 0;return(g=function(e){if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;var i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return f(e,arguments,Object(d.a)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Object(u.a)(n,e)})(e)}var m,v,y,b,x=i(0),w=i.n(x),k=i(10),_=i(1),A=!1,S=!0,C=!1,T=!0,P=!0,L=!0,E=!0,M=!0,I=!0,O=!0,D=!0,z=!0,N=!0,R=!0,F=!0,Y=!1,H=!0,$=!0,j=!0,X=!0,B=!0,W=!0,V=!0,G=!0,U=!0,q=!0,Z=!0,J=!0,Q=!0,K=!0,ee=!0,te=!0,ie=!0,ne=!0,re=!0,ae=!0,oe=!0,se=!0,le=!0,ce=!0,he=!0,de=!0,ue=!0,pe=!0,fe=!1,ge=!1,me=!1,ve=!1,ye=!1,be=!1,xe=!1,we=!1,ke=!1,_e=!0,Ae=!1,Se=!0,Ce=!1,Te=!0,Pe=!0,Le=!0,Ee=!1,Me=!0,Ie=!0,Oe=!1,De=!1,ze=!1,Ne=!0;var Re=0,Fe=!1,Ye=!1,He=!1,$e=!1,je=0,Xe=!1,Be="undefined"!=typeof window?window:{},We=(Ee&&Be.CSS,Be.document||{head:{}}),Ve=(Be.HTMLElement,{$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,i,n){return e.addEventListener(t,i,n)},rel:function(e,t,i,n){return e.removeEventListener(t,i,n)},ce:function(e,t){return new CustomEvent(e,t)}}),Ge=!Ce||!U||function(){return(We.head.attachShadow+"").indexOf("[native")>-1}(),Ue=function(){var e=!1;try{We.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){e=!0}}))}catch(e){}return e}(),qe=!!Me&&function(){try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1}(),Ze=function(e,t,i,n){z&&i&&(Y&&(i=n?i.filter((function(e){return 32&Object(_.a)(e,1)[0]})):i.filter((function(e){return!(32&Object(_.a)(e,1)[0])}))),i.map((function(i){var n=Object(_.a)(i,3),r=n[0],a=n[1],o=n[2],s=H?Qe(e,r):e,l=Je(t,o),c=Ke(r);Ve.ael(s,a,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return Ve.rel(s,a,l,c)}))})))},Je=function(e,t){return function(i){try{we?256&e.$flags$?e.$lazyInstance$[t](i):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,i]):e.$hostElement$[t](i)}catch(e){ui(e)}}},Qe=function(e,t){return R&&4&t?We:N&&8&t?Be:F&&16&t?We.body:Y&&32&t?e.parentElement:e},Ke=function(e){return Ue?{passive:0!=(1&e),capture:0!=(2&e)}:0!=(2&e)},et="http://www.w3.org/1999/xlink",tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(ke&&performance.mark){var i="st:".concat(e,":").concat(t,":").concat(Re++);return performance.mark(i),function(){return performance.measure("[Stencil] ".concat(e,"() <").concat(t,">"),i)}}return function(){}},it=function(e,t){return ke&&performance.mark?(0===performance.getEntriesByName(e).length&&performance.mark(e),function(){0===performance.getEntriesByName(t).length&&performance.measure(t,e)}):function(){}},nt=new WeakMap,rt=function(e,t,i){var n=yi.get(e);qe&&i?(n=n||new CSSStyleSheet).replace(t):n=t,yi.set(e,n)},at=function(e,t,i,r){var a=st(t,i),o=yi.get(a);if(!Ne)return a;if(e=11===e.nodeType?e:We,o)if("string"==typeof o){e=e.head||e;var s,l=nt.get(e);if(l||nt.set(e,l=new Set),!l.has(a)){if(be&&e.host&&(s=e.querySelector("[".concat("sty-id",'="').concat(a,'"]'))))s.innerHTML=o;else{if(Ee&&Ve.$cssShim$){var c=(s=Ve.$cssShim$.createHostStyle(r,a,o,!!(10&t.$flags$)))["s-sc"];c&&(a=c,l=null)}else(s=We.createElement("style")).innerHTML=o;(ye||fe)&&s.setAttribute("sty-id",a),e.insertBefore(s,e.querySelector("link"))}l&&l.add(a)}}else Me&&!e.adoptedStyleSheets.includes(o)&&(e.adoptedStyleSheets=[].concat(Object(n.a)(e.adoptedStyleSheets),[o]));return a},ot=function(e){var t=e.$cmpMeta$,i=e.$hostElement$,n=t.$flags$,r=tt("attachStyles",t.$tagName$),a=at(U&&Ge&&i.shadowRoot?i.shadowRoot:i.getRootNode(),t,e.$modeName$,i);(U||G)&&Z&&10&n&&(i["s-sc"]=a,i.classList.add(a+"-h"),G&&2&n&&i.classList.add(a+"-s")),r()},st=function(e,t){return"sc-"+(X&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$)},lt=function(e){return bi.map((function(t){return t(e)})).find((function(e){return!!e}))},ct={},ht=function(e){return"object"===(e=Object(k.a)(e))||"function"===e},dt=function(e,t){for(var i=null,n=null,r=null,a=!1,o=!1,s=[],l=function t(n){for(var r=0;r<n.length;r++)i=n[r],Array.isArray(i)?t(i):null!=i&&"boolean"!=typeof i&&((a="function"!=typeof e&&!ht(i))?i=String(i):me&&"function"!=typeof e&&void 0===i.$flags$&&fi("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects."),a&&o?s[s.length-1].$text$+=i:s.push(a?ut(null,i):i),o=a)},c=arguments.length,h=new Array(c>2?c-2:0),d=2;d<c;d++)h[d-2]=arguments[d];if(l(h),t&&(me&&"input"===e&&yt(t),ae&&t.key&&(n=t.key),_e&&t.name&&(r=t.name),ne)){var u=t.className||t.class;u&&(t.class="object"!==Object(k.a)(u)?u:Object.keys(u).filter((function(e){return u[e]})).join(" "))}if(me&&s.some(ft)&&fi("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function."),re&&"function"==typeof e)return e(null===t?{}:t,s,gt);var p=ut(e,null);return p.$attrs$=t,s.length>0&&(p.$children$=s),ae&&(p.$key$=n),_e&&(p.$name$=r),p},ut=function(e,t){var i={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return te&&(i.$attrs$=null),ae&&(i.$key$=null),_e&&(i.$name$=null),i},pt={},ft=function(e){return e&&e.$tag$===pt},gt={forEach:function(e,t){return e.map(mt).forEach(t)},map:function(e,t){return e.map(mt).map(t).map(vt)}},mt=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}},vt=function(e){if("function"==typeof e.vtag){var t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),dt.apply(void 0,[e.vtag,t].concat(Object(n.a)(e.vchildren||[])))}var i=ut(e.vtag,e.vtext);return i.$attrs$=e.vattrs,i.$children$=e.vchildren,i.$key$=e.vkey,i.$name$=e.vname,i},yt=function(e){var t=Object.keys(e),i=t.indexOf("type"),n=t.indexOf("min"),r=t.indexOf("max"),a=t.indexOf("min"),o=t.indexOf("value");-1!==o&&(o<i||o<n||o<r||o<a)&&gi('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},bt=function(e,t,i,r,a,o){if(i!==r){var s=di(e,t),l=t.toLowerCase();if(ne&&"class"===t){var c=e.classList,h=wt(i),d=wt(r);c.remove.apply(c,Object(n.a)(h.filter((function(e){return e&&!d.includes(e)})))),c.add.apply(c,Object(n.a)(d.filter((function(e){return e&&!h.includes(e)}))))}else if(he&&"style"===t){if(ee)for(var u in i)r&&null!=r[u]||(!ye&&u.includes("-")?e.style.removeProperty(u):e.style[u]="");for(var p in r)i&&r[p]===i[p]||(!ye&&p.includes("-")?e.style.setProperty(p,r[p]):e.style[p]=r[p])}else if(ae&&"key"===t);else if(se&&"ref"===t)r&&r(e);else if(!oe||(we?s:e.__lookupSetter__(t))||"o"!==t[0]||"n"!==t[1]){if(le){var f=ht(r);if((s||f&&null!==r)&&!a)try{if(e.tagName.includes("-"))e[t]=r;else{var g=null==r?"":r;"list"===t?s=!1:null!=i&&e[t]==g||(e[t]=g)}}catch(e){}var m=!1;ie&&l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,m=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(ie&&m?e.removeAttributeNS(et,t):e.removeAttribute(t)):(!s||4&o||a)&&!f&&(r=!0===r?"":r,ie&&m?e.setAttributeNS(et,t,r):e.setAttribute(t,r))}}else t="-"===t[2]?t.slice(3):di(Be,l)?l.slice(2):l[2]+t.slice(3),i&&Ve.rel(e,t,i,!1),r&&Ve.ael(e,t,r,!1)}},xt=/\s/,wt=function(e){return e?e.split(xt):[]},kt=function(e,t,i,n){var r=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,a=e&&e.$attrs$||ct,o=t.$attrs$||ct;if(ee)for(n in a)n in o||bt(r,n,a[n],void 0,i,t.$flags$);for(n in o)bt(r,n,a[n],o[n],i,t.$flags$)},_t=function e(t,i,n,r){var a,o,s,l=i.$children$[n],c=0;if(_e&&!Fe&&(He=!0,"slot"===l.$tag$&&(m&&r.classList.add(m+"-s"),l.$flags$|=l.$children$?2:1)),me&&l.$elm$&&fi("The JSX ".concat(null!==l.$text$?'"'.concat(l.$text$,'" text'):'"'.concat(l.$tag$,'" element')," node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes")),de&&null!==l.$text$)a=l.$elm$=We.createTextNode(l.$text$);else if(_e&&1&l.$flags$)a=l.$elm$=ge||ye?zt(l):We.createTextNode("");else{if(K&&!$e&&($e="svg"===l.$tag$),a=l.$elm$=K?We.createElementNS($e?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",_e&&2&l.$flags$?"slot-fb":l.$tag$):We.createElement(_e&&2&l.$flags$?"slot-fb":l.$tag$),K&&$e&&"foreignObject"===l.$tag$&&($e=!1),te&&kt(null,l,$e),(U||G)&&null!=m&&a["s-si"]!==m&&a.classList.add(a["s-si"]=m),l.$children$)for(c=0;c<l.$children$.length;++c)(o=e(t,l,c,a))&&a.appendChild(o);K&&("svg"===l.$tag$?$e=!1:"foreignObject"===a.tagName&&($e=!0))}return _e&&(a["s-hn"]=y,3&l.$flags$&&(a["s-sr"]=!0,a["s-cr"]=v,a["s-sn"]=l.$name$||"",(s=t&&t.$children$&&t.$children$[n])&&s.$tag$===l.$tag$&&t.$elm$&&At(t.$elm$,!1))),a},At=function e(t,i){Ve.$flags$|=1;for(var n=t.childNodes,r=n.length-1;r>=0;r--){var a=n[r];a["s-hn"]!==y&&a["s-ol"]&&(Lt(a).insertBefore(a,Pt(a)),a["s-ol"].remove(),a["s-ol"]=void 0,He=!0),i&&e(a,i)}Ve.$flags$&=-2},St=function(e,t,i,n,r,a){var o,s=_e&&e["s-cr"]&&e["s-cr"].parentNode||e;for(U&&s.shadowRoot&&s.tagName===y&&(s=s.shadowRoot);r<=a;++r)n[r]&&(o=_t(null,i,r,e))&&(n[r].$elm$=o,s.insertBefore(o,_e?Pt(t):t))},Ct=function(e,t,i,n,r){for(;t<=i;++t)(n=e[t])&&(r=n.$elm$,Ot(n),_e&&(Ye=!0,r["s-ol"]?r["s-ol"].remove():At(r,!0)),r.remove())},Tt=function(e,t){return e.$tag$===t.$tag$&&(_e&&"slot"===e.$tag$?e.$name$===t.$name$:!ae||e.$key$===t.$key$)},Pt=function(e){return e&&e["s-ol"]||e},Lt=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode},Et=function(e,t){var i,n=t.$elm$=e.$elm$,r=e.$children$,a=t.$children$,o=t.$tag$,s=t.$text$;de&&null!==s?de&&_e&&(i=n["s-cr"])?i.parentNode.textContent=s:de&&e.$text$!==s&&(n.data=s):(K&&($e="svg"===o||"foreignObject"!==o&&$e),(te||V)&&(q&&"slot"===o||kt(e,t,$e)),ee&&null!==r&&null!==a?function(e,t,i,n){for(var r,a,o=0,s=0,l=0,c=0,h=t.length-1,d=t[0],u=t[h],p=n.length-1,f=n[0],g=n[p];o<=h&&s<=p;)if(null==d)d=t[++o];else if(null==u)u=t[--h];else if(null==f)f=n[++s];else if(null==g)g=n[--p];else if(Tt(d,f))Et(d,f),d=t[++o],f=n[++s];else if(Tt(u,g))Et(u,g),u=t[--h],g=n[--p];else if(Tt(d,g))!_e||"slot"!==d.$tag$&&"slot"!==g.$tag$||At(d.$elm$.parentNode,!1),Et(d,g),e.insertBefore(d.$elm$,u.$elm$.nextSibling),d=t[++o],g=n[--p];else if(Tt(u,f))!_e||"slot"!==d.$tag$&&"slot"!==g.$tag$||At(u.$elm$.parentNode,!1),Et(u,f),e.insertBefore(u.$elm$,d.$elm$),u=t[--h],f=n[++s];else{if(l=-1,ae)for(c=o;c<=h;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===f.$key$){l=c;break}ae&&l>=0?((a=t[l]).$tag$!==f.$tag$?r=_t(t&&t[s],i,l,e):(Et(a,f),t[l]=void 0,r=a.$elm$),f=n[++s]):(r=_t(t&&t[s],i,s,e),f=n[++s]),r&&(_e?Lt(d.$elm$).insertBefore(r,Pt(d.$elm$)):d.$elm$.parentNode.insertBefore(r,d.$elm$))}o>h?St(e,null==n[p+1]?null:n[p+1].$elm$,i,n,s,p):ee&&s>p&&Ct(t,o,h)}(n,r,t,a):null!==a?(ee&&de&&null!==e.$text$&&(n.textContent=""),St(n,null,t,a,0,a.length-1)):ee&&null!==r&&Ct(r,0,r.length-1),K&&$e&&"svg"===o&&($e=!1))},Mt=[],It=function(e,t){return 1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t},Ot=function e(t){se&&(t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(e))},Dt=function(e,t){var i=e.$hostElement$,n=e.$cmpMeta$,r=e.$vnode$||ut(null,null),a=ft(t)?t:dt(null,null,t);if(y=i.tagName,me&&Array.isArray(t)&&t.some(ft))throw new Error('The <Host> must be the single root component.\nLooks like the render() function of "'.concat(y.toLowerCase(),'" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n '));if(V&&n.$attrsToReflect$&&(a.$attrs$=a.$attrs$||{},n.$attrsToReflect$.map((function(e){var t=Object(_.a)(e,2),n=t[0],r=t[1];return a.$attrs$[r]=i[n]}))),a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=r.$elm$=U&&i.shadowRoot||i,(G||U)&&(m=i["s-sc"]),_e&&(v=i["s-cr"],Fe=Ge&&0!=(1&n.$flags$),Ye=!1),Et(r,a),_e){if(Ve.$flags$|=1,He){var o,s,l,c,h,d;!function e(t){for(var i,n,r,a,o,s,l=0,c=t.childNodes,h=c.length;l<h;l++){if((i=c[l])["s-sr"]&&(n=i["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,a=i["s-sn"],s=r.length-1;s>=0;s--)(n=r[s])["s-cn"]||n["s-nr"]||n["s-hn"]===i["s-hn"]||(It(n,a)?(o=Mt.find((function(e){return e.$nodeToRelocate$===n})),Ye=!0,n["s-sn"]=n["s-sn"]||a,o?o.$slotRefNode$=i:Mt.push({$slotRefNode$:i,$nodeToRelocate$:n}),n["s-sr"]&&Mt.map((function(e){It(e.$nodeToRelocate$,n["s-sn"])&&(o=Mt.find((function(e){return e.$nodeToRelocate$===n})))&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$)}))):Mt.some((function(e){return e.$nodeToRelocate$===n}))||Mt.push({$nodeToRelocate$:n}));1===i.nodeType&&e(i)}}(a.$elm$);for(var u=0;u<Mt.length;u++)(s=(o=Mt[u]).$nodeToRelocate$)["s-ol"]||((l=ge||ye?Nt(s):We.createTextNode(""))["s-nr"]=s,s.parentNode.insertBefore(s["s-ol"]=l,s));for(u=0;u<Mt.length;u++)if(s=(o=Mt[u]).$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,h=o.$slotRefNode$.nextSibling,l=s["s-ol"];l=l.previousSibling;)if((d=l["s-nr"])&&d["s-sn"]===s["s-sn"]&&c===d.parentNode&&(!(d=d.nextSibling)||!d["s-nr"])){h=d;break}(!h&&c!==s.parentNode||s.nextSibling!==h)&&s!==h&&(!s["s-hn"]&&s["s-ol"]&&(s["s-hn"]=s["s-ol"].parentNode.nodeName),c.insertBefore(s,h))}else 1===s.nodeType&&(s.hidden=!0)}Ye&&function e(t){var i,n,r,a,o,s,l=t.childNodes;for(n=0,r=l.length;n<r;n++)if(1===(i=l[n]).nodeType){if(i["s-sr"])for(o=i["s-sn"],i.hidden=!1,a=0;a<r;a++)if(s=l[a].nodeType,l[a]["s-hn"]!==i["s-hn"]||""!==o){if(1===s&&o===l[a].getAttribute("slot")){i.hidden=!0;break}}else if(1===s||3===s&&""!==l[a].textContent.trim()){i.hidden=!0;break}e(i)}}(a.$elm$),Ve.$flags$&=-2,Mt.length=0}},zt=function(e){return We.createComment("<slot".concat(e.$name$?' name="'+e.$name$+'"':"","> (host=").concat(y.toLowerCase(),")"))},Nt=function(e){return We.createComment("org-location for "+(e.localName?"<".concat(e.localName,"> (host=").concat(e["s-hn"],")"):"[".concat(e.textContent,"]")))},Rt=function(e,t,i){var n=function(e){return we?ci(e).$hostElement$:e}(e);return{emit:function(e){return me&&!n.isConnected&&gi('The "'.concat(t,'" event was emitted, but the dispatcher node is no longer connected to the dom.')),Ft(n,t,{bubbles:!!(4&i),composed:!!(2&i),cancelable:!!(1&i),detail:e})}}},Ft=function(e,t,i){var n=Ve.ce(t,i);return e.dispatchEvent(n),n},Yt=function(e,t){De&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))},Ht=function(e,t){if(pe&&ee&&(e.$flags$|=16),!(De&&4&e.$flags$)){Yt(e,e.$ancestorComponent$);var i=function(){return $t(e,t)};return pe?Pi(i):i()}e.$flags$|=512},$t=function(e,t){var i,n=e.$hostElement$,r=tt("scheduleUpdate",e.$cmpMeta$.$tagName$),a=we?e.$lazyInstance$:n;return t?(we&&z&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map((function(e){var t=Object(_.a)(e,2),i=t[0],n=t[1];return Vt(a,i,n)})),e.$queuedListeners$=null)),Ut(n,"componentWillLoad"),L&&(i=Vt(a,"componentWillLoad"))):(Ut(n,"componentWillUpdate"),E&&(i=Vt(a,"componentWillUpdate"))),Ut(n,"componentWillRender"),M&&(i=Gt(i,(function(){return Vt(a,"componentWillRender")}))),r(),Gt(i,(function(){return jt(e,a,t)}))},jt=function(){var e=Object(r.a)(w.a.mark((function e(t,i,n){var r,a,o,s,l,c;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.$hostElement$,a=tt("update",t.$cmpMeta$.$tagName$),o=r["s-rc"],Q&&n&&ot(t),s=tt("render",t.$cmpMeta$.$tagName$),me&&(t.$flags$|=1024),!ye){e.next=11;break}return e.next=9,Xt(t,i,r);case 9:e.next=12;break;case 11:Xt(t,i,r);case 12:if(Ee&&Ve.$cssShim$&&Ve.$cssShim$.updateHost(r),me&&(t.$renderCount$++,t.$flags$&=-1025),ye)try{Zt(r),n&&(1&t.$cmpMeta$.$flags$?r["s-en"]="":2&t.$cmpMeta$.$flags$&&(r["s-en"]="c"))}catch(e){ui(e,r)}De&&o&&(o.map((function(e){return e()})),r["s-rc"]=void 0),s(),a(),De?(l=r["s-p"],c=function(){return Bt(t)},0===l.length?c():(Promise.all(l).then(c),t.$flags$|=4,l.length=0)):Bt(t);case 19:case"end":return e.stop()}}),e)})));return function(t,i,n){return e.apply(this,arguments)}}(),Xt=function(e,t,i){var n=!!A,r=!!we,a=!!pe,o=!!ee;try{if(t,t=(n||t.render)&&t.render(),o&&a&&(e.$flags$&=-17),(o||r)&&(e.$flags$|=2),D||V)if(ce||V){if(ye)return Promise.resolve(t).then((function(t){return Dt(e,t)}));Dt(e,t)}else i.textContent=t}catch(t){ui(t,e.$hostElement$)}return null,null},Bt=function(e){var t=e.$cmpMeta$.$tagName$,i=e.$hostElement$,n=tt("postUpdate",t),r=we?e.$lazyInstance$:i,a=e.$ancestorComponent$;P&&(me&&(e.$flags$|=1024),Vt(r,"componentDidRender"),me&&(e.$flags$&=-1025)),Ut(i,"componentDidRender"),64&e.$flags$?(T&&(me&&(e.$flags$|=1024),Vt(r,"componentDidUpdate"),me&&(e.$flags$&=-1025)),Ut(i,"componentDidUpdate"),n()):(e.$flags$|=64,De&&Z&&qt(i),S&&(me&&(e.$flags$|=2048),Vt(r,"componentDidLoad"),me&&(e.$flags$&=-2049)),Ut(i,"componentDidLoad"),n(),De&&(e.$onReadyResolve$(i),a||Wt(t))),fe&&i["s-hmr-load"]&&i["s-hmr-load"](),j&&we&&e.$onInstanceResolve$(i),De&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Ti((function(){return Ht(e,!1)})),e.$flags$&=-517)},Wt=function(e){Z&&qt(We.documentElement),ze&&(Ve.$flags$|=2),Ti((function(){return Ft(Be,"appload",{detail:{namespace:"app"}})})),ke&&performance.measure&&performance.measure("[Stencil] ".concat("app"," initial load (by ").concat(e,")"),"st:app:start")},Vt=function(e,t,i){if(e&&e[t])try{return e[t](i)}catch(e){ui(e)}},Gt=function(e,t){return e&&e.then?e.then(t):t()},Ut=function(e,t){xe&&Ft(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:"app"}})},qt=function(e){return Se?e.classList.add("hydrated"):Ae?e.setAttribute("hydrated",""):void 0},Zt=function e(t){var i=t.children;if(null!=i)for(var n=0,r=i.length;n<r;n++){var a=i[n];"function"==typeof a.connectedCallback&&a.connectedCallback(),e(a)}},Jt=function e(t,i,n,r,a,o,s){var l,c,h,d;if(1===o.nodeType){for((l=o.getAttribute("c-id"))&&((c=l.split("."))[0]!==s&&"0"!==c[0]||(h={$flags$:0,$hostId$:c[0],$nodeId$:c[1],$depth$:c[2],$index$:c[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},i.push(h),o.removeAttribute("c-id"),t.$children$||(t.$children$=[]),t.$children$[h.$index$]=h,t=h,r&&"0"===h.$depth$&&(r[h.$index$]=h.$elm$))),d=o.childNodes.length-1;d>=0;d--)e(t,i,n,r,a,o.childNodes[d],s);if(o.shadowRoot)for(d=o.shadowRoot.childNodes.length-1;d>=0;d--)e(t,i,n,r,a,o.shadowRoot.childNodes[d],s)}else if(8===o.nodeType)(c=o.nodeValue.split("."))[1]!==s&&"0"!==c[1]||(l=c[0],h={$flags$:0,$hostId$:c[1],$nodeId$:c[2],$depth$:c[3],$index$:c[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===l?(h.$elm$=o.nextSibling,h.$elm$&&3===h.$elm$.nodeType&&(h.$text$=h.$elm$.textContent,i.push(h),o.remove(),t.$children$||(t.$children$=[]),t.$children$[h.$index$]=h,r&&"0"===h.$depth$&&(r[h.$index$]=h.$elm$))):h.$hostId$===s&&("s"===l?(h.$tag$="slot",c[5]?o["s-sn"]=h.$name$=c[5]:o["s-sn"]="",o["s-sr"]=!0,U&&r&&(h.$elm$=We.createElement(h.$tag$),h.$name$&&h.$elm$.setAttribute("name",h.$name$),o.parentNode.insertBefore(h.$elm$,o),o.remove(),"0"===h.$depth$&&(r[h.$index$]=h.$elm$)),n.push(h),t.$children$||(t.$children$=[]),t.$children$[h.$index$]=h):"r"===l&&(U&&r?o.remove():_e&&(a["s-cr"]=o,o["s-cn"]=!0))));else if(t&&"style"===t.$tag$){var u=ut(null,o.textContent);u.$elm$=o,u.$index$="0",t.$children$=[u]}},Qt=function e(t,i){if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n++)e(t.childNodes[n],i);if(t.shadowRoot)for(n=0;n<t.shadowRoot.childNodes.length;n++)e(t.shadowRoot.childNodes[n],i)}else if(8===t.nodeType){var r=t.nodeValue.split(".");"o"===r[0]&&(i.set(r[1]+"."+r[2],t),t.nodeValue="",t["s-en"]=r[3])}},Kt=function(e,t,i,n){var r,a,o=ci(e),s=we?o.$hostElement$:e,l=o.$instanceValues$.get(t),c=o.$flags$,h=we?o.$lazyInstance$:s;if(r=i,a=n.$members$[t][0],i=null==r||ht(r)?r:Te&&4&a?"false"!==r&&(""===r||!!r):Pe&&2&a?parseFloat(r):Le&&1&a?String(r):r,!(we&&8&c&&void 0!==l||i===l)&&(o.$instanceValues$.set(t,i),me&&(1024&o.$flags$?gi('The state/prop "'.concat(t,'" changed during rendering. This can potentially lead to infinite-loops and other bugs.'),"\nElement",s,"\nNew value",i,"\nOld value",l):2048&o.$flags$&&gi('The state/prop "'.concat(t,'" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"'),"\nElement",s,"\nNew value",i,"\nOld value",l)),!we||h)){if(ue&&n.$watchers$&&128&c){var d=n.$watchers$[t];d&&d.map((function(e){try{h[e](i,l,t)}catch(e){ui(e,s)}}))}if(ee&&2==(18&c)){if(Ie&&h.componentShouldUpdate&&!1===h.componentShouldUpdate(i,l,t))return;Ht(o,!1)}}},ei=function(e,t,i){if($&&t.$members$){ue&&e.watchers&&(t.$watchers$=e.watchers);var n=Object.entries(t.$members$),r=e.prototype;if(n.map((function(e){var n=Object(_.a)(e,2),a=n[0],o=Object(_.a)(n[1],1)[0];(W||J)&&(31&o||(!we||2&i)&&32&o)?Object.defineProperty(r,a,{get:function(){return e=a,ci(this).$instanceValues$.get(e);var e},set:function(e){if(me){var n=ci(this);0==(1&i)&&0==(8&n.$flags$)&&0!=(31&o)&&0==(1024&o)&&gi('@Prop() "'.concat(a,'" on <').concat(t.$tagName$,"> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability"))}Kt(this,a,e,t)},configurable:!0,enumerable:!0}):we&&j&&1&i&&64&o&&Object.defineProperty(r,a,{value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=ci(this);return n.$onInstancePromise$.then((function(){var e;return(e=n.$lazyInstance$)[a].apply(e,t)}))}})})),B&&(!we||1&i)){var a=new Map;r.attributeChangedCallback=function(e,t,i){var n=this;Ve.jmp((function(){var t=a.get(e);n[t]=(null!==i||"boolean"!=typeof n[t])&&i}))},e.observedAttributes=n.filter((function(e){var t=Object(_.a)(e,2);t[0];return 15&t[1][0]})).map((function(e){var i=Object(_.a)(e,2),n=i[0],r=i[1],o=r[1]||n;return a.set(o,n),V&&512&r[0]&&t.$attrsToReflect$.push([n,o]),o}))}}return e},ti=function(){var e=Object(r.a)(w.a.mark((function e(t,n,r,a,o){var s,l,c,h,d,u,p;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(we||ye||Q)||0!=(32&n.$flags$)){e.next=36;break}if(!we&&!be){e.next=22;break}if(n.$flags$|=32,!(o=vi(r,n,a)).then){e.next=10;break}return s=it("st:load:".concat(r.$tagName$,":").concat(n.$modeName$),"[Stencil] Load module for <".concat(r.$tagName$,">")),e.next=8,o;case 8:o=e.sent,s();case 10:if(!me&&!ge||o){e.next=12;break}throw new Error('Constructor for "'.concat(r.$tagName$,"#").concat(n.$modeName$,'" was not found'));case 12:$&&!o.isProxied&&(ue&&(r.$watchers$=o.watchers),ei(o,r,2),o.isProxied=!0),l=tt("createInstance",r.$tagName$),$&&(n.$flags$|=8);try{new o(n)}catch(e){ui(e)}$&&(n.$flags$&=-9),ue&&(n.$flags$|=128),l(),ii(n.$lazyInstance$),e.next=24;break;case 22:o=t.constructor,n.$flags$|=160;case 24:if(!Q||!o.style){e.next=36;break}if(c=o.style,X&&"string"!=typeof c&&(c=c[n.$modeName$=lt(t)],ye&&n.$modeName$&&t.setAttribute("s-mode",n.$modeName$)),h=st(r,n.$modeName$),yi.has(h)){e.next=36;break}if(d=tt("registerStyles",r.$tagName$),!(!ye&&U&&Ce&&8&r.$flags$)){e.next=34;break}return e.next=33,i.e(7).then(i.bind(null,50)).then((function(e){return e.scopeCss(c,h,!1)}));case 33:c=e.sent;case 34:rt(h,c,!!(1&r.$flags$)),d();case 36:u=n.$ancestorComponent$,p=function(){return Ht(n,!0)},De&&u&&u["s-rc"]?u["s-rc"].push(p):p();case 39:case"end":return e.stop()}}),e)})));return function(t,i,n,r,a){return e.apply(this,arguments)}}(),ii=function(e){we&&I&&Vt(e,"connectedCallback")},ni=function(e){if(0==(1&Ve.$flags$)){var t=ci(e),i=t.$cmpMeta$,n=tt("connectedCallback",i.$tagName$);if(Y&&Ze(e,t,i.$listeners$,!0),1&t.$flags$)Ze(e,t,i.$listeners$,!1),ii(t.$lazyInstance$);else{var r;if(t.$flags$|=1,be&&(r=e.getAttribute("s-id"))){if(U&&Ge&&1&i.$flags$){var a=X?at(e.shadowRoot,i,e.getAttribute("s-mode")):at(e.shadowRoot,i);e.classList.remove(a+"-h",a+"-s")}!function(e,t,i,n){var r=tt("hydrateClient",t),a=e.shadowRoot,o=[],s=U&&a?[]:null,l=n.$vnode$=ut(t,null);Ve.$orgLocNodes$||Qt(We.body,Ve.$orgLocNodes$=new Map),e["s-id"]=i,e.removeAttribute("s-id"),Jt(l,o,[],s,e,e,i),o.map((function(e){var i=e.$hostId$+"."+e.$nodeId$,n=Ve.$orgLocNodes$.get(i),r=e.$elm$;n&&Ge&&""===n["s-en"]&&n.parentNode.insertBefore(r,n.nextSibling),a||(r["s-hn"]=t,n&&(r["s-ol"]=n,r["s-ol"]["s-nr"]=r)),Ve.$orgLocNodes$.delete(i)})),U&&a&&s.map((function(e){e&&a.appendChild(e)})),r()}(e,i.$tagName$,r,t)}if(_e&&!r&&(ye||(q||U)&&12&i.$flags$)&&ri(e),De)for(var o=e;o=o.parentNode||o.host;)if(be&&1===o.nodeType&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){Yt(t,t.$ancestorComponent$=o);break}W&&we&&!ye&&i.$members$&&Object.entries(i.$members$).map((function(t){var i=Object(_.a)(t,2),n=i[0];if(31&Object(_.a)(i[1],1)[0]&&e.hasOwnProperty(n)){var r=e[n];delete e[n],e[n]=r}})),Oe?Ti((function(){return ti(e,t,i)})):ti(e,t,i)}n()}},ri=function(e){var t=e["s-cr"]=We.createComment(ge?"content-ref (host=".concat(e.localName,")"):"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},ai=function(e){if(0==(1&Ve.$flags$)){var t=ci(e),i=we?t.$lazyInstance$:e;z&&t.$rmListeners$&&(t.$rmListeners$.map((function(e){return e()})),t.$rmListeners$=void 0),Ee&&Ve.$cssShim$&&Ve.$cssShim$.removeHost(e),we&&O&&Vt(i,"disconnectedCallback"),C&&Vt(i,"componentDidUnload")}},oi=function(e,t){var i={$flags$:t[0],$tagName$:t[1]};$&&(i.$members$=t[2]),z&&(i.$listeners$=t[3]),ue&&(i.$watchers$=e.$watchers$),V&&(i.$attrsToReflect$=[]),U&&!Ge&&1&i.$flags$&&(i.$flags$|=8);var n=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost:function(){hi(this,i)},connectedCallback:function(){ni(this),I&&n&&n.call(this)},disconnectedCallback:function(){ai(this),O&&r&&r.call(this)}}),e.is=i.$tagName$,ei(e,i,3)},si=function(e){Ge?e.attachShadow({mode:"open"}):e.shadowRoot=e},li=new WeakMap,ci=function(e){return li.get(e)},hi=function(e,t){var i={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return me&&(i.$renderCount$=0),j&&we&&(i.$onInstancePromise$=new Promise((function(e){return i.$onInstanceResolve$=e}))),De&&(i.$onReadyPromise$=new Promise((function(e){return i.$onReadyResolve$=e})),e["s-p"]=[],e["s-rc"]=[]),Ze(e,i,t.$listeners$,!1),li.set(e,i)},di=function(e,t){return t in e},ui=function(e,t){return(b||console.error)(e,t)},pi=ve?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],fi=function(){for(var e,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return(e=console).error.apply(e,pi.concat(i))},gi=function(){for(var e,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return(e=console).warn.apply(e,pi.concat(i))},mi=new Map,vi=function(e,t,n){var r=e.$tagName$.replace(/-/g,"_"),a=e.$lazyBundleId$;if(!me||"string"==typeof a){var o=!fe&&mi.get(a);return o?o[r]:i(34)("./".concat(a,".entry.js").concat(BUILD.hotModuleReplacement&&n?"?s-hmr="+n:"")).then((function(e){return fe||mi.set(a,e),e[r]}),ui)}fi("Trying to lazily load component <".concat(e.$tagName$,'> with style mode "').concat(t.$modeName$,'", but it does not exist.'))},yi=new Map,bi=[],xi=[],wi=[],ki=[],_i=function(e,t){return function(i){e.push(i),Xe||(Xe=!0,t&&4&Ve.$flags$?Ti(Ci):Ve.raf(Ci))}},Ai=function(e){for(var t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){ui(e)}e.length=0},Si=function(e,t){for(var i=0,n=0;i<e.length&&(n=performance.now())<t;)try{e[i++](n)}catch(e){ui(e)}i===e.length?e.length=0:0!==i&&e.splice(0,i)},Ci=function e(){if(ze&&je++,Ai(xi),ze){var t=2==(6&Ve.$flags$)?performance.now()+14*Math.ceil(.1*je):1/0;Si(wi,t),Si(ki,t),wi.length>0&&(ki.push.apply(ki,wi),wi.length=0),(Xe=xi.length+wi.length+ki.length>0)?Ve.raf(e):je=0}else Ai(wi),(Xe=xi.length>0)&&Ve.raf(e)},Ti=function(e){return Promise.resolve(t).then(e);var t},Pi=_i(wi,!0);function Li(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=Object(d.a)(e);if(t){var r=Object(d.a)(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return Object(h.a)(this,i)}}var Ei=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),si(Object(l.a)(e)),e.show=!1,e.youtubeRenderKey=1,e}return Object(s.a)(i,[{key:"componentWillLoad",value:function(){this.handleDuration()}},{key:"handleButtonCountChange",value:function(e,t){console.log(e),(null==e?void 0:e.button_count)!==(null==t?void 0:t.button_count)&&this.youtubeRenderKey++,(null==e?void 0:e.enabled)&&this.handleDuration()}},{key:"handleDuration",value:function(){var e,t;(null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.blocks)?this.show=!0:this.show=function(e){var t=e.current,i=e.duration,n=e.showAfter;if(t===n)return!0;var r=t/i*100;return 99.9<r&&(r=100),r>=n}({current:this.currentTime,duration:this.duration,showAfter:(null===(t=this.config)||void 0===t?void 0:t.percentage_start)||0})}},{key:"youtubeButton",value:function(){var e,t,i,n;if("youtube"===(null===(e=this.config)||void 0===e?void 0:e.button_type)&&(null===(t=this.youtube)||void 0===t?void 0:t.channelId))return dt("presto-youtube-subscribe-button",{key:this.youtubeRenderKey,channel:null===(i=this.youtube)||void 0===i?void 0:i.channelId,showCount:null===(n=this.config)||void 0===n?void 0:n.button_count})}},{key:"customButton",value:function(){var e,t,i,n,r,a,o,s,l,c,h;if("custom"===(null===(e=this.config)||void 0===e?void 0:e.button_type))return dt("presto-player-button",{type:"primary",size:"small",href:null===(i=null===(t=this.config)||void 0===t?void 0:t.button_link)||void 0===i?void 0:i.url,target:(null===(r=null===(n=this.config)||void 0===n?void 0:n.button_link)||void 0===r?void 0:r.opensInNewTab)?"_blank":"_self",style:Object.assign(Object.assign({"--presto-player-button-border-radius":"".concat(null===(a=this.config)||void 0===a?void 0:a.button_radius,"px")},(null===(o=this.config)||void 0===o?void 0:o.button_color)?{"--presto-player-button-color":"".concat(null===(s=this.config)||void 0===s?void 0:s.button_color)}:{}),(null===(l=this.config)||void 0===l?void 0:l.button_text_color)?{"--presto-player-button-text":"".concat(null===(c=this.config)||void 0===c?void 0:c.button_text_color)}:{})},null===(h=this.config)||void 0===h?void 0:h.button_text)}},{key:"render",value:function(){var e,t;return dt("presto-action-bar-ui",{open:this.show,style:{"--presto-action-bar-background":(null===(e=this.config)||void 0===e?void 0:e.background_color)||"#1d1d1d"}},null===(t=this.config)||void 0===t?void 0:t.text,dt("div",{slot:"button"},this.youtubeButton(),this.customButton()))}},{key:"el",get:function(){return this}}],[{key:"watchers",get:function(){return{config:["handleButtonCountChange"],currentTime:["handleDuration"],duration:["handleDuration"]}}},{key:"style",get:function(){return":host{display:block}"}}]),i}(g(HTMLElement)),Mi=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),si(Object(l.a)(e)),e}return Object(s.a)(i,[{key:"render",value:function(){return dt("div",{class:{bar:!0,"bar--open":this.open}},dt("span",{part:"content",class:"bar__content"},dt("slot",null)),dt("span",{part:"button",class:"bar__button"},dt("slot",{name:"button"})))}}],[{key:"style",get:function(){return":host{display:block;overflow:hidden}.bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;background:var(--presto-action-bar-background, #1d1d1d);color:#fff;padding:0 var(--presto-action-bar-padding, 6px);line-height:1em;font-size:16px;margin-top:-100%;transition:margin var(--presto-action-bar-animation-speed, 0.5s) ease-in-out;transform:translate3d(0)}.bar.bar--open{margin-top:0}.bar__button{margin:var(--presto-action-bar-padding, 6px);display:flex;align-items:center}.bar__content{margin:var(--presto-action-bar-padding, 6px);width:100%;text-align:center}@media screen and (min-width: 480px){.bar__content{width:auto}}"}}]),i}(g(HTMLElement)),Ii=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),e}return Object(s.a)(i,[{key:"componentWillLoad",value:function(){this.poster=this.poster||this.thumbnail}},{key:"render",value:function(){return dt("presto-video",{getRef:this.getRef,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks})}}]),i}(g(HTMLElement)),Oi=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),e.playVideo=Rt(Object(l.a)(e),"playVideo",7),e.rewatchVideo=Rt(Object(l.a)(e),"rewatchVideo",7),e.percentagePassed=0,e}return Object(s.a)(i,[{key:"componentWillLoad",value:function(){this.handleDuration()}},{key:"timePassed",value:function(e){var t=e.current,i=e.duration,n=e.showAfter;if(t===n)return!0;var r=t/i*100;return 99.9<r&&(r=100),r>=n}},{key:"handlePlayerInit",value:function(e,t){var i=this;t||(this.player.on("play playing timeupdate",(function(){i.skipped||i.show&&i.player.pause()})),this.player.on("ended",(function(){var e,t;if(i.ended=!0,100===(null===(t=null===(e=i.preset)||void 0===e?void 0:e.cta)||void 0===t?void 0:t.percentage)){if(!i.enabled)return;if(i.skipped)return;i.show=!0}})))}},{key:"handleDuration",value:function(){var e,t;this.enabled=!this.skipped&&(null===(t=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===t?void 0:t.enabled),this.handleTime()}},{key:"handlePercentagePassed",value:function(){this.percentagePassed=this.currentTime/this.duration*100}},{key:"handlePercentagePassedChange",value:function(){this.ended=this.percentagePassed>=99.9}},{key:"handleTime",value:function(){var e,t;this.enabled&&(this.skipped||100!==(null===(t=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===t?void 0:t.percentage)&&this.checkTime())}},{key:"checkTime",value:function(){var e,t;this.show=this.timePassed({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===t?void 0:t.percentage)||0})}},{key:"skip",value:function(){this.skipped=!0,this.show=!1,this.playVideo.emit()}},{key:"rewatch",value:function(){var e=this;this.ended=!1,this.show=!1,this.rewatchVideo.emit(),this.player.once("timeupdate",(function(){setTimeout((function(){return e.player.play()}),500)})),this.player.restart()}},{key:"render",value:function(){var e,t,i,n,r,a,o,s,l,c,h,d,u,p,f,g,m,v,y,b,x,w,k,_,A,S,C,T,P,L=this;if(this.show)return dt("presto-cta-overlay-ui",{style:Object.assign(Object.assign(Object.assign({"--presto-player-button-border-radius":"".concat(null===(t=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===t?void 0:t.button_radius,"px")},(null===(n=null===(i=this.preset)||void 0===i?void 0:i.cta)||void 0===n?void 0:n.background_opacity)?{"--presto-player-cta-background-opacity":"".concat((null===(a=null===(r=this.preset)||void 0===r?void 0:r.cta)||void 0===a?void 0:a.background_opacity)/100)}:{}),(null===(s=null===(o=this.preset)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.button_color)?{"--presto-player-button-color":"".concat(null===(c=null===(l=this.preset)||void 0===l?void 0:l.cta)||void 0===c?void 0:c.button_color)}:{}),(null===(d=null===(h=this.preset)||void 0===h?void 0:h.cta)||void 0===d?void 0:d.button_text_color)?{"--presto-player-button-text":"".concat(null===(p=null===(u=this.preset)||void 0===u?void 0:u.cta)||void 0===p?void 0:p.button_text_color)}:{}),direction:this.direction,class:"email-overlay",headline:null===(g=null===(f=this.preset)||void 0===f?void 0:f.cta)||void 0===g?void 0:g.headline,"bottom-text":null===(v=null===(m=this.preset)||void 0===m?void 0:m.cta)||void 0===v?void 0:v.bottom_text,"show-button":null===(b=null===(y=this.preset)||void 0===y?void 0:y.cta)||void 0===b?void 0:b.show_button,buttonLink:null===(w=null===(x=this.preset)||void 0===x?void 0:x.cta)||void 0===w?void 0:w.button_link,allowSkip:!this.ended&&(null===(_=null===(k=this.preset)||void 0===k?void 0:k.cta)||void 0===_?void 0:_.show_skip),allowRewatch:this.ended&&(null===(S=null===(A=this.preset)||void 0===A?void 0:A.cta)||void 0===S?void 0:S.show_rewatch),"skip-text":null===(C=null==this?void 0:this.i18n)||void 0===C?void 0:C.skip,"button-text":null===(P=null===(T=this.preset)||void 0===T?void 0:T.cta)||void 0===P?void 0:P.button_text,onSkip:function(){return L.skip()},onRewatch:function(){return L.rewatch()}})}}],[{key:"watchers",get:function(){return{player:["handlePlayerInit"],duration:["handleDuration","handlePercentagePassed"],currentTime:["handlePercentagePassed","handleTime"],percentagePassed:["handlePercentagePassedChange"]}}},{key:"style",get:function(){return":host{display:block}"}}]),i}(g(HTMLElement)),Di=function(e,t,n){var r=function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}({minFontSize:-1/0,maxFontSize:1/0},n),a=function(e){var n=t||1,a=function(){e.style.fontSize=Math.max(Math.min(e.clientWidth/(10*n),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize))+"px"};if(a(),"ResizeObserver"in window==!1)var o=i.e(0).then(i.bind(null,46)).then((function(){window.ResizeObserver=o.ResizeObserver,new ResizeObserver(a).observe(e)}));else new ResizeObserver(a).observe(e)};if(e.length)for(var o=0;o<e.length;o++)a(e[o]);else a(e);return e},zi=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),si(Object(l.a)(e)),e.skip=Rt(Object(l.a)(e),"skip",7),e.rewatch=Rt(Object(l.a)(e),"rewatch",7),e}return Object(s.a)(i,[{key:"componentDidLoad",value:function(){Di(this.textInput,3,{maxFontSize:20,minFontSize:8})}},{key:"handleCTAClick",value:function(e){var t;(null===(t=this.buttonLink)||void 0===t?void 0:t.url)&&(e.preventDefault(),e.stopPropagation(),this.handleLink())}},{key:"handleLink",value:function(){var e,t,i;(null===(e=this.buttonLink)||void 0===e?void 0:e.opensInNewTab)?window.open(null===(t=this.buttonLink)||void 0===t?void 0:t.url,"_blank"):window.location.href=null===(i=this.buttonLink)||void 0===i?void 0:i.url}},{key:"render",value:function(){var e,t,i,n=this;return dt("div",{class:"wrapper",ref:function(e){return n.textInput=e}},dt("div",{onClick:function(e){return n.handleCTAClick(e)},class:"overlay ".concat("rtl"===this.direction?"rtl":""," ").concat((null===(e=this.buttonLink)||void 0===e?void 0:e.url)?"has-link":"")},dt("div",{class:"content"},dt("h1",{part:"cta-headline"},this.headline||this.defaultHeadline),this.bottomText&&dt("p",{part:"cta-bottom-text",innerHTML:this.bottomText}),this.showButton&&dt("presto-player-button",{full:!0,onClick:function(e){return n.handleCTAClick(e)},part:"cta-button",href:null===(t=null==this?void 0:this.buttonLink)||void 0===t?void 0:t.url,target:(null===(i=null==this?void 0:this.buttonLink)||void 0===i?void 0:i.opensInNewTab)?"_blank":"_self",class:"button",type:"primary"},this.buttonText))),!!this.allowRewatch&&dt("div",{class:"rewatch",onClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),n.rewatch.emit()}},dt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-corner-up-left"},dt("polyline",{points:"9 14 4 9 9 4"}),dt("path",{d:"M20 20v-7a4 4 0 0 0-4-4H4"})),this.rewatchText||"Rewatch"),!!this.allowSkip&&dt("div",{class:"skip",onClick:function(e){e.preventDefault(),n.skip.emit()}},this.skipText||"Skip"," →"))}}],[{key:"style",get:function(){return':host{display:block;font-size:16px;width:100%;height:100%;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:99999;user-select:none}*{box-sizing:border-box}a{color:#fff}.wrapper{height:100%;position:relative;color:#fff;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif)}.overlay{position:relative;display:flex;align-items:center;justify-content:center;padding:48px;height:100%}.overlay.has-link{cursor:pointer}.overlay:before{content:"";border-radius:var(--presto-player-border-radius, 0);opacity:var(--presto-player-cta-background-opacity, 0.75);position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--presto-player-cta-background, #000);z-index:-1;box-shadow:inset 0 0 100px black}.content{width:80%;max-width:600px}.content *~*{margin-top:22px}button{background:var(--plyr-color-main, #000);appearance:none;padding:6px 12px;align-items:center;display:inline-flex;border-width:1px;border-color:transparent;color:#fff;border-radius:0;cursor:pointer;font-size:0.8em;border-radius:0 var(--presto-player-cta-border-radius, 0) var(--presto-player-cta-border-radius) 0}@media screen and (min-width: 700px){button{padding:10px 18px}}button:focus{box-shadow:white 0px 0px 0px 2px, var(--plyr-color-main, #000) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;z-index:1}button:focus,button:hover{outline:none}h1{font-size:1.5em;font-weight:500;margin:0;line-height:1.1em}.skip,.rewatch{font-size:0.8em;font-weight:600;position:absolute;top:0;right:0;padding:4%;cursor:pointer}.rewatch{display:inline-flex;align-items:center;right:auto;left:0}.rewatch .icon{margin-right:5px}p{font-size:0.85em;margin:0;margin-top:1.5em;line-height:1.4em;opacity:0.75}'}}]),i}(g(HTMLElement)),Ni=function(e){Object(c.a)(h,e);var t,i,n=Li(h);function h(){var e;return Object(o.a)(this,h),(e=n.call(this)).__registerHost(),e.playVideo=Rt(Object(l.a)(e),"playVideo",7),e}return Object(s.a)(h,[{key:"setStorage",value:function(e){window.localStorage.setItem("presto.videos.email_collection",JSON.stringify(Object(a.a)({},this.videoId,e)))}},{key:"getStorage",value:function(){return window.localStorage.getItem("presto.videos.email_collection")}},{key:"componentWillLoad",value:function(){this.handleDuration()}},{key:"timePassed",value:function(e){var t=e.current,i=e.duration,n=e.showAfter;if(t===n)return!0;var r=t/i*100;return 99.9<r&&(r=100),r>=n}},{key:"handlePlayerInit",value:function(e,t){var i=this;t||this.player.on("play playing timeupdate",(function(){i.getStorage()||i.show&&i.player.pause()}))}},{key:"handleDuration",value:function(){var e,t;this.enabled=!this.getStorage()&&(null===(t=null===(e=this.preset)||void 0===e?void 0:e.email_collection)||void 0===t?void 0:t.enabled),this.handleTime()}},{key:"handleTime",value:function(){this.enabled&&(this.getStorage()||this.checkTime())}},{key:"checkTime",value:function(){var e,t;this.show=this.timePassed({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null===(e=this.preset)||void 0===e?void 0:e.email_collection)||void 0===t?void 0:t.percentage)||0})}},{key:"getNonce",value:(i=Object(r.a)(w.a.mark((function e(){var t;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",fetch("".concat(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.ajaxurl,"?action=presto_refresh_progress_nonce")));case 1:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"submit",value:(t=Object(r.a)(w.a.mark((function e(t){var i,n,r,a,o,s,l,c,h;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.loading=!0,this.error="",e.next=4,this.getNonce();case 4:return n=e.sent,e.next=7,n.json();case 7:return r=e.sent,a=r.data,e.prev=9,e.next=12,fetch(null===(i=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===i?void 0:i.ajaxurl,{method:"post",body:new URLSearchParams(Object.assign({action:"presto_player_email_submit",nonce:a,preset_id:this.preset.id,video_id:this.videoId},(null==t?void 0:t.detail)||{}))});case 12:return o=e.sent,e.next=15,o.json();case 15:if(s=e.sent,l=s.success,c=s.data,!l){e.next=24;break}this.setStorage("collected"),this.show=!1,this.playVideo.emit(),e.next=25;break;case 24:throw c;case 25:e.next=31;break;case 27:e.prev=27,e.t0=e.catch(9),(h=null===e.t0||void 0===e.t0?void 0:e.t0[0])&&"string"==typeof h&&(this.error=h);case 31:return e.prev=31,this.loading=!1,e.finish(31);case 34:case"end":return e.stop()}}),e,this,[[9,27,31,34]])}))),function(e){return t.apply(this,arguments)})},{key:"skip",value:function(){this.setStorage("skipped"),this.show=!1,this.playVideo.emit()}},{key:"render",value:function(){var e,t,i,n,r,a,o,s,l,c,h,d=this;if(this.show)return dt("presto-email-overlay-ui",{direction:this.direction,class:"email-overlay",headline:null===(t=null===(e=this.preset)||void 0===e?void 0:e.email_collection)||void 0===t?void 0:t.headline,defaultHeadline:null===(i=null==this?void 0:this.i18n)||void 0===i?void 0:i.emailDefaultHeadline,bottomText:null===(r=null===(n=this.preset)||void 0===n?void 0:n.email_collection)||void 0===r?void 0:r.bottom_text,allowSkip:null===(o=null===(a=this.preset)||void 0===a?void 0:a.email_collection)||void 0===o?void 0:o.allow_skip,skipText:null===(s=null==this?void 0:this.i18n)||void 0===s?void 0:s.skip,buttonText:null===(c=null===(l=this.preset)||void 0===l?void 0:l.email_collection)||void 0===c?void 0:c.button_text,placeholder:null===(h=null==this?void 0:this.i18n)||void 0===h?void 0:h.emailPlaceholder,isLoading:this.loading,errorMessage:this.error,onSubmitForm:function(e){return d.submit(e)},onSkip:function(){return d.skip()}})}}],[{key:"watchers",get:function(){return{player:["handlePlayerInit"],duration:["handleDuration"],currentTime:["handleTime"]}}},{key:"style",get:function(){return":host{display:block}"}}]),h}(g(HTMLElement)),Ri=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),si(Object(l.a)(e)),e.submitForm=Rt(Object(l.a)(e),"submitForm",7),e.skip=Rt(Object(l.a)(e),"skip",7),e}return Object(s.a)(i,[{key:"handleSubmit",value:function(e){this.submitForm.emit({email:this.email}),e.preventDefault()}},{key:"componentDidLoad",value:function(){Di(this.textInput,3,{maxFontSize:20,minFontSize:8})}},{key:"handleChange",value:function(e){this.email=e.target.value}},{key:"render",value:function(){var e=this;return dt("div",{class:"overlay ".concat("rtl"===this.direction?"rtl":""),ref:function(t){return e.textInput=t}},dt("div",{class:"content"},dt("h1",null,this.headline||this.defaultHeadline),this.isLoading?dt("presto-player-spinner",null):dt("form",{onSubmit:function(t){return e.handleSubmit(t)}},dt("input",{type:"email",placeholder:this.placeholder,value:this.email,onInput:function(t){return e.handleChange(t)},required:!0}),dt("button",{type:"submit"},this.buttonText||"Play")),this.errorMessage&&dt("p",{class:"error"},this.errorMessage),this.bottomText&&dt("p",{innerHTML:this.bottomText}),!!this.allowSkip&&dt("div",{class:"skip",onClick:function(){e.skip.emit()}},this.skipText||"Skip"," →")))}}],[{key:"style",get:function(){return':host{display:block;font-size:16px;width:100%;height:100%;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:99999}*{box-sizing:border-box}a{color:#fff}.overlay{position:relative;display:flex;align-items:center;text-align:center;justify-content:center;padding:48px;color:#fff;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif);height:100%}.overlay:before{content:"";border-radius:var(--presto-player-border-radius, 0);opacity:var(--presto-player-email-background-opacity, 0.75);position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--presto-player-email-background, #000);z-index:-1;box-shadow:inset 0 0 100px black}.content{width:20em}form{display:flex;align-items:stretch;justify-content:center}input{background:#fff;border:none;font-size:0.8em;line-height:20px;padding:6px 8px;border-radius:0;border-width:1px;border-style:solid;border-color:transparent;border-radius:var(--presto-player-email-border-radius, 0) 0 0 var(--presto-player-email-border-radius);flex:1}@media screen and (min-width: 700px){input{padding:10px 14px}}input:focus{border-color:var(--plyr-color-main, #000);z-index:1}input:focus,input:hover{outline:none}.rtl input{border-radius:0 var(--presto-player-email-border-radius, 0) var(--presto-player-email-border-radius) 0}button{background:var(--plyr-color-main, #000);appearance:none;padding:6px 12px;align-items:center;display:inline-flex;border-width:1px;border-color:transparent;color:#fff;border-radius:0;cursor:pointer;font-size:0.8em;border-radius:0 var(--presto-player-email-border-radius, 0) var(--presto-player-email-border-radius) 0}@media screen and (min-width: 700px){button{padding:10px 18px}}button:focus{box-shadow:white 0px 0px 0px 2px, var(--plyr-color-main, #000) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;z-index:1}button:focus,button:hover{outline:none}.rtl button{border-radius:var(--presto-player-email-border-radius, 0) 0 0 var(--presto-player-email-border-radius)}h1{font-size:1.5em;font-weight:500;margin:0 0 22px 0;max-width:600px;line-height:1.1em}.skip{font-size:0.8em;font-weight:600;position:absolute;top:0;right:0;padding:4%;cursor:pointer}p{font-size:0.7em;margin:0;margin-top:1.5em}'}}]),i}(g(HTMLElement)),Fi=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),e.playVideo=Rt(Object(l.a)(e),"playVideo",7),e}return Object(s.a)(i,[{key:"render",value:function(){var e,t,i,n,r,a,o,s,l=this;return dt("div",{class:"presto-player__muted-overlay",onClick:function(){l.mutedPreview=!1,l.playVideo.emit()}},dt("div",{class:"plyr__control plyr__control--overlaid","data-plyr":"play","aria-label":"Play",part:"muted-overlay-play"},dt("svg",{id:"plyr-play",viewBox:"0 0 18 18"},dt("path",{d:"M15.562 8.1L3.87.225c-.818-.562-1.87 0-1.87.9v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8z"})),dt("span",{class:"plyr__sr-only"},"Play")),(null===(e=this.mutedOverlay)||void 0===e?void 0:e.enabled)&&(null===(t=this.mutedOverlay)||void 0===t?void 0:t.src)?dt("div",{class:"presto-player__overlay is-image",part:"muted-overlay-image",style:{width:"".concat((null===(i=this.mutedOverlay)||void 0===i?void 0:i.width)||50,"%"),left:"".concat(100*((null===(r=null===(n=this.mutedOverlay)||void 0===n?void 0:n.focalPoint)||void 0===r?void 0:r.x)||.5),"%"),top:"".concat(100*((null===(o=null===(a=this.mutedOverlay)||void 0===a?void 0:a.focalPoint)||void 0===o?void 0:o.y)||.5),"%")}},dt("img",{src:null===(s=this.mutedOverlay)||void 0===s?void 0:s.src,style:{transform:"translateX(-50%) translateY(-50%)"}})):"")}}],[{key:"style",get:function(){return":host{display:block}"}}]),i}(g(HTMLElement));function Yi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Hi(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Yi(Object(i),!0).forEach((function(t){Vi(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Yi(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function $i(e){return($i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ji(e,t,i,n,r,a,o){try{var s=e[a](o),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,r)}function Xi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bi(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Wi(e,t,i){return t&&Bi(e.prototype,t),i&&Bi(e,i),e}function Vi(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Gi(e,t){if(null==e)return{};var i,n,r=function(e,t){if(null==e)return{};var i,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)i=a[n],t.indexOf(i)>=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Ui(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==i)return;var n,r,a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}(e,t)||Zi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qi(e){return function(e){if(Array.isArray(e))return Ji(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Zi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zi(e,t){if(e){if("string"==typeof e)return Ji(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ji(e,t):void 0}}function Ji(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Qi(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=Zi(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==i.return||i.return()}finally{if(s)throw a}}}}var Ki=["premium","referrerPolicy"];function en(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function tn(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function nn(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function rn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function an(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(i),!0).forEach((function(t){nn(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):rn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var on={addCSS:!0,thumbWidth:15,watch:!0};function sn(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}var ln=function(e){return null!=e?e.constructor:null},cn=function(e,t){return!!(e&&t&&e instanceof t)},hn=function(e){return null==e},dn=function(e){return ln(e)===Object},un=function(e){return ln(e)===String},pn=function(e){return Array.isArray(e)},fn=function(e){return cn(e,NodeList)},gn=un,mn=pn,vn=fn,yn=function(e){return cn(e,Element)},bn=function(e){return cn(e,Event)},xn=function(e){return hn(e)||(un(e)||pn(e)||fn(e))&&!e.length||dn(e)&&!Object.keys(e).length};function wn(e,t){if(1>t){var i=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(i))}return Math.round(e/t)*t}var kn,_n,An,Sn=function(){function e(t,i){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),yn(t)?this.element=t:gn(t)&&(this.element=document.querySelector(t)),yn(this.element)&&xn(this.element.rangeTouch)&&(this.config=an({},on,{},i),this.init())}return function(e,t,i){t&&tn(e.prototype,t),i&&tn(e,i)}(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,i=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(e){t.element[i](e,(function(e){return t.set(e)}),!1)}))}},{key:"get",value:function(t){if(!e.enabled||!bn(t))return null;var i,n=t.target,r=t.changedTouches[0],a=parseFloat(n.getAttribute("min"))||0,o=parseFloat(n.getAttribute("max"))||100,s=parseFloat(n.getAttribute("step"))||1,l=n.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(i=100/l.width*(r.clientX-l.left))?i=0:100<i&&(i=100),50>i?i-=(100-2*i)*c:50<i&&(i+=2*(i-50)*c),a+wn(i/100*(o-a),s)}},{key:"set",value:function(t){e.enabled&&bn(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var i=new Event(t,{bubbles:!0});e.dispatchEvent(i)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=null;if(xn(t)||gn(t)?n=Array.from(document.querySelectorAll(gn(t)?t:'input[type="range"]')):yn(t)?n=[t]:vn(t)?n=Array.from(t):mn(t)&&(n=t.filter(yn)),xn(n))return null;var r=an({},on,{},i);if(gn(t)&&r.watch){var a=new MutationObserver((function(i){Array.from(i).forEach((function(i){Array.from(i.addedNodes).forEach((function(i){yn(i)&&sn(i,t)&&new e(i,r)}))}))}));a.observe(document.body,{childList:!0,subtree:!0})}return n.map((function(t){return new e(t,i)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}(),Cn=function(e){return null!=e?e.constructor:null},Tn=function(e,t){return Boolean(e&&t&&e instanceof t)},Pn=function(e){return null==e},Ln=function(e){return Cn(e)===Object},En=function(e){return Cn(e)===String},Mn=function(e){return Cn(e)===Function},In=function(e){return Array.isArray(e)},On=function(e){return Tn(e,NodeList)},Dn=function(e){return Pn(e)||(En(e)||In(e)||On(e))&&!e.length||Ln(e)&&!Object.keys(e).length},zn=Pn,Nn=Ln,Rn=function(e){return Cn(e)===Number&&!Number.isNaN(e)},Fn=En,Yn=function(e){return Cn(e)===Boolean},Hn=Mn,$n=In,jn=On,Xn=function(e){return null!==e&&"object"==$i(e)&&1===e.nodeType&&"object"==$i(e.style)&&"object"==$i(e.ownerDocument)},Bn=function(e){return Tn(e,Event)},Wn=function(e){return Tn(e,KeyboardEvent)},Vn=function(e){return Tn(e,TextTrack)||!Pn(e)&&En(e.kind)},Gn=function(e){return Tn(e,Promise)&&Mn(e.then)},Un=function(e){if(Tn(e,window.URL))return!0;if(!En(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!Dn(new URL(t).hostname)}catch(e){return!1}},qn=Dn,Zn=(kn=document.createElement("span"),_n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},An=Object.keys(_n).find((function(e){return void 0!==kn.style[e]})),!!Fn(An)&&_n[An]);function Jn(e,t){setTimeout((function(){try{e.hidden=!0,e.hidden=!1}catch(e){}}),t)}var Qn={isIE:/* @cc_on!@ */!!document.documentMode,isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function Kn(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function er(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];if(!i.length)return e;var r=i.shift();return Nn(r)?(Object.keys(r).forEach((function(t){Nn(r[t])?(Object.keys(e).includes(t)||Object.assign(e,Vi({},t,{})),er(e[t],r[t])):Object.assign(e,Vi({},t,r[t]))})),er.apply(void 0,[e].concat(i))):e}function tr(e,t){var i=e.length?e:[e];Array.from(i).reverse().forEach((function(e,i){var n=i>0?t.cloneNode(!0):t,r=e.parentNode,a=e.nextSibling;n.appendChild(e),a?r.insertBefore(n,a):r.appendChild(n)}))}function ir(e,t){Xn(e)&&!qn(t)&&Object.entries(t).filter((function(e){var t=Ui(e,2)[1];return!zn(t)})).forEach((function(t){var i=Ui(t,2),n=i[0],r=i[1];return e.setAttribute(n,r)}))}function nr(e,t,i){var n=document.createElement(e);return Nn(t)&&ir(n,t),Fn(i)&&(n.innerText=i),n}function rr(e,t,i,n){Xn(t)&&t.appendChild(nr(e,i,n))}function ar(e){jn(e)||$n(e)?Array.from(e).forEach(ar):Xn(e)&&Xn(e.parentNode)&&e.parentNode.removeChild(e)}function or(e){if(Xn(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function sr(e,t){return Xn(t)&&Xn(t.parentNode)&&Xn(e)?(t.parentNode.replaceChild(e,t),e):null}function lr(e,t){if(!Fn(e)||qn(e))return{};var i={},n=er({},t);return e.split(",").forEach((function(e){var t=e.trim(),r=t.replace(".",""),a=t.replace(/[[\]]/g,"").split("="),o=Ui(a,1)[0],s=a.length>1?a[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":Fn(n.class)?i.class="".concat(n.class," ").concat(r):i.class=r;break;case"#":i.id=t.replace("#","");break;case"[":i[o]=s}})),er(n,i)}function cr(e,t){if(Xn(e)){var i=t;Yn(i)||(i=!e.hidden),e.hidden=i}}function hr(e,t,i){if(jn(e))return Array.from(e).map((function(e){return hr(e,t,i)}));if(Xn(e)){var n="toggle";return void 0!==i&&(n=i?"add":"remove"),e.classList[n](t),e.classList.contains(t)}return!1}function dr(e,t){return Xn(e)&&e.classList.contains(t)}function ur(e,t){var i=Element.prototype;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function pr(e){return this.elements.container.querySelectorAll(e)}function fr(e){return this.elements.container.querySelector(e)}function gr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Xn(e)&&(e.focus({preventScroll:!0}),t&&hr(e,this.config.classNames.tabFocus))}var mr={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},vr={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,i){var n=Qn.isIPhone&&i&&vr.playsinline,r=vr[e]||"html5"!==t;return{api:r,ui:r&&vr.rangeInput&&("video"!==e||!Qn.isIPhone||n)}},pip:!(Qn.isIPhone||!Hn(nr("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||nr("video").disablePictureInPicture)),airplay:Hn(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){if(qn(e))return!1;var t=Ui(e.split("/"),1)[0],i=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(mr).includes(i)&&(i+='; codecs="'.concat(mr[e],'"'));try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:function(){var e=document.createElement("input");return e.type="range","range"===e.type}(),touch:"ontouchstart"in document.documentElement,transitions:!1!==Zn,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},yr=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function br(e,t,i){var n=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&"addEventListener"in e&&!qn(t)&&Hn(i)){var s=t.split(" "),l=o;yr&&(l={passive:a,capture:o}),s.forEach((function(t){n&&n.eventListeners&&r&&n.eventListeners.push({element:e,type:t,callback:i,options:l}),e[r?"addEventListener":"removeEventListener"](t,i,l)}))}}function xr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];br.call(this,e,t,i,!0,n,r)}function wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];br.call(this,e,t,i,!1,n,r)}function kr(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=function o(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];wr(e,i,o,r,a),n.apply(t,l)};br.call(this,e,i,o,!0,r,a)}function _r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(Xn(e)&&!qn(t)){var r=new CustomEvent(t,{bubbles:i,detail:Hi(Hi({},n),{},{plyr:this})});e.dispatchEvent(r)}}function Ar(){this&&this.eventListeners&&(this.eventListeners.forEach((function(e){var t=e.element,i=e.type,n=e.callback,r=e.options;t.removeEventListener(i,n,r)})),this.eventListeners=[])}function Sr(){var e=this;return new Promise((function(t){return e.ready?setTimeout(t,0):xr.call(e,e.elements.container,"ready",t)})).then((function(){}))}function Cr(e){Gn(e)&&e.then(null,(function(){}))}function Tr(e){return!!($n(e)||Fn(e)&&e.includes(":"))&&($n(e)?e:e.split(":")).map(Number).every(Rn)}function Pr(e){if(!$n(e)||!e.every(Rn))return null;var t=Ui(e,2),i=t[0],n=t[1],r=function e(t,i){return 0===i?t:e(i,t%i)}(i,n);return[i/r,n/r]}function Lr(e){var t=function(e){return Tr(e)?e.split(":").map(Number):null},i=t(e);if(null===i&&(i=t(this.config.ratio)),null===i&&!qn(this.embed)&&$n(this.embed.ratio)&&(i=this.embed.ratio),null===i&&this.isHTML5){var n=this.media;i=Pr([n.videoWidth,n.videoHeight])}return i}function Er(e){if(!this.isVideo)return{};var t=this.elements.wrapper,i=Lr.call(this,e),n=Ui($n(i)?i:[0,0],2),r=100/n[0]*n[1];if(t.style.paddingBottom=r-.25+"%",this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var a=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),o=(a-r)/(a/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(o,"%)")}else this.isHTML5&&t.classList.toggle(this.config.classNames.videoFixedRatio,null!==i);return{padding:r,ratio:i}}var Mr={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(t){var i=t.getAttribute("type");return!!qn(i)||vr.mime.call(e,i)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:Mr.getSources.call(this).map((function(e){return Number(e.getAttribute("size"))})).filter(Boolean)},setup:function(){if(this.isHTML5){var e=this;e.options.speed=e.config.speed.options,qn(this.config.ratio)||Er.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=Mr.getSources.call(e).find((function(t){return t.getAttribute("src")===e.source}));return t&&Number(t.getAttribute("size"))},set:function(t){if(e.quality!==t){if(e.config.quality.forced&&Hn(e.config.quality.onChange))e.config.quality.onChange(t);else{var i=Mr.getSources.call(e).find((function(e){return Number(e.getAttribute("size"))===t}));if(!i)return;var n=e.media,r=n.currentTime,a=n.paused,o=n.preload,s=n.readyState,l=n.playbackRate;e.media.src=i.getAttribute("src"),("none"!==o||s)&&(e.once("loadedmetadata",(function(){e.speed=l,e.currentTime=r,a||Cr(e.play())})),e.media.load())}_r.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(ar(Mr.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Ir(e){return $n(e)?e.filter((function(t,i){return e.indexOf(t)===i})):e}function Or(e){return"".concat(e,"-").concat(Math.floor(1e4*Math.random()))}function Dr(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return qn(e)?e:e.toString().replace(/{(\d+)}/g,(function(e,t){return i[t].toString()}))}var zr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),i.toString())},Nr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toString().replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))};function Rr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return t=zr(t,"-"," "),t=zr(t,"_"," "),t=Nr(t),zr(t," ","")}function Fr(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}var Yr={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Hr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(qn(e)||qn(t))return"";var i=Kn(t.i18n,e);if(qn(i))return Object.keys(Yr).includes(e)?Yr[e]:"";var n={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(n).forEach((function(e){var t=Ui(e,2),n=t[0],r=t[1];i=zr(i,n,r)})),i},$r=function(){function e(t){var i=this;Xi(this,e),en(this,"get",(function(t){if(!e.supported||!i.enabled)return null;var n=window.localStorage.getItem(i.key);if(qn(n))return null;var r=JSON.parse(n);return Fn(t)&&t.length?r[t]:r})),en(this,"set",(function(t){if(e.supported&&i.enabled&&Nn(t)){var n=i.get();qn(n)&&(n={}),er(n,t),window.localStorage.setItem(i.key,JSON.stringify(n))}})),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}return Wi(e,null,[{key:"supported",get:function(){try{if(!("localStorage"in window))return!1;var e="___test";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}}]),e}();function jr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(i,n){try{var r=new XMLHttpRequest;if(!("withCredentials"in r))return;r.addEventListener("load",(function(){if("text"===t)try{i(JSON.parse(r.responseText))}catch(e){i(r.responseText)}else i(r.response)})),r.addEventListener("error",(function(){throw new Error(r.status)})),r.open("GET",e,!0),r.responseType=t,r.send()}catch(e){n(e)}}))}function Xr(e,t){if(Fn(e)){var i=Fn(t),n=function(){return null!==document.getElementById(t)},r=function(e,t){e.innerHTML=t,i&&n()||document.body.insertAdjacentElement("afterbegin",e)};if(!i||!n()){var a=$r.supported,o=document.createElement("div");if(o.setAttribute("hidden",""),i&&o.setAttribute("id",t),a){var s=window.localStorage.getItem("cache-".concat(t));if(null!==s){var l=JSON.parse(s);r(o,l.content)}}jr(e).then((function(e){qn(e)||(a&&window.localStorage.setItem("cache-".concat(t),JSON.stringify({content:e})),r(o,e))})).catch((function(){}))}}}var Br=function(e){return Math.trunc(e/60/60%60,10)},Wr=function(e){return Math.trunc(e%60,10)};function Vr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!Rn(e))return Vr(void 0,t,i);var n,r=function(e){return"0".concat(e).slice(-2)},a=Br(e),o=(n=e,Math.trunc(n/60%60,10)),s=Wr(e);return a=t||a>0?"".concat(a,":"):"","".concat(i&&e>0?"-":"").concat(a).concat(r(o),":").concat(r(s))}var Gr={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location).host!==window.location.host||Qn.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=fr.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:pr.call(this,this.config.selectors.buttons.play),pause:fr.call(this,this.config.selectors.buttons.pause),restart:fr.call(this,this.config.selectors.buttons.restart),rewind:fr.call(this,this.config.selectors.buttons.rewind),fastForward:fr.call(this,this.config.selectors.buttons.fastForward),mute:fr.call(this,this.config.selectors.buttons.mute),pip:fr.call(this,this.config.selectors.buttons.pip),airplay:fr.call(this,this.config.selectors.buttons.airplay),settings:fr.call(this,this.config.selectors.buttons.settings),captions:fr.call(this,this.config.selectors.buttons.captions),fullscreen:fr.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=fr.call(this,this.config.selectors.progress),this.elements.inputs={seek:fr.call(this,this.config.selectors.inputs.seek),volume:fr.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:fr.call(this,this.config.selectors.display.buffer),currentTime:fr.call(this,this.config.selectors.display.currentTime),duration:fr.call(this,this.config.selectors.display.duration)},Xn(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon:function(e,t){var i="http://www.w3.org/2000/svg",n=Gr.getIconUrl.call(this),r="".concat(n.cors?"":n.url,"#").concat(this.config.iconPrefix),a=document.createElementNS(i,"svg");ir(a,er(t,{"aria-hidden":"true",focusable:"false"}));var o=document.createElementNS(i,"use"),s="".concat(r,"-").concat(e);return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",s),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s),a.appendChild(o),a},createLabel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Hr(e,this.config);return nr("span",Hi(Hi({},t),{},{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),i)},createBadge:function(e){if(qn(e))return null;var t=nr("span",{class:this.config.classNames.menu.value});return t.appendChild(nr("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var i=this,n=er({},t),r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return(t=Rr(t)).charAt(0).toLowerCase()+t.slice(1)}(e),a={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(e){Object.keys(n).includes(e)&&(a[e]=n[e],delete n[e])})),"button"!==a.element||Object.keys(n).includes("type")||(n.type="button"),Object.keys(n).includes("class")?n.class.split(" ").some((function(e){return e===i.config.classNames.control}))||er(n,{class:"".concat(n.class," ").concat(this.config.classNames.control)}):n.class=this.config.classNames.control,e){case"play":a.toggle=!0,a.label="play",a.labelPressed="pause",a.icon="play",a.iconPressed="pause";break;case"mute":a.toggle=!0,a.label="mute",a.labelPressed="unmute",a.icon="volume",a.iconPressed="muted";break;case"captions":a.toggle=!0,a.label="enableCaptions",a.labelPressed="disableCaptions",a.icon="captions-off",a.iconPressed="captions-on";break;case"fullscreen":a.toggle=!0,a.label="enterFullscreen",a.labelPressed="exitFullscreen",a.icon="enter-fullscreen",a.iconPressed="exit-fullscreen";break;case"play-large":n.class+=" ".concat(this.config.classNames.control,"--overlaid"),r="play",a.label="play",a.icon="play";break;default:qn(a.label)&&(a.label=r),qn(a.icon)&&(a.icon=e)}var o=nr(a.element);return a.toggle?(o.appendChild(Gr.createIcon.call(this,a.iconPressed,{class:"icon--pressed"})),o.appendChild(Gr.createIcon.call(this,a.icon,{class:"icon--not-pressed"})),o.appendChild(Gr.createLabel.call(this,a.labelPressed,{class:"label--pressed"})),o.appendChild(Gr.createLabel.call(this,a.label,{class:"label--not-pressed"}))):(o.appendChild(Gr.createIcon.call(this,a.icon)),o.appendChild(Gr.createLabel.call(this,a.label))),er(n,lr(this.config.selectors.buttons[r],n)),ir(o,n),"play"===r?($n(this.elements.buttons[r])||(this.elements.buttons[r]=[]),this.elements.buttons[r].push(o)):this.elements.buttons[r]=o,o},createRange:function(e,t){var i=nr("input",er(lr(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Hr(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=i,Gr.updateRangeFill.call(this,i),Sn.setup(i),i},createProgress:function(e,t){var i=nr("progress",er(lr(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){i.appendChild(nr("span",null,"0"));var n={played:"played",buffer:"buffered"}[e],r=n?Hr(n,this.config):"";i.innerText="% ".concat(r.toLowerCase())}return this.elements.display[e]=i,i},createTime:function(e,t){var i=lr(this.config.selectors.display[e],t),n=nr("div",er(i,{class:"".concat(i.class?i.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":Hr(e,this.config)}),"00:00");return this.elements.display[e]=n,n},bindMenuItemShortcuts:function(e,t){var i=this;xr.call(this,e,"keydown keyup",(function(n){if([32,38,39,40].includes(n.which)&&(n.preventDefault(),n.stopPropagation(),"keydown"!==n.type)){var r,a=ur(e,'[role="menuitemradio"]');if(!a&&[32,39].includes(n.which))Gr.showMenuPanel.call(i,t,!0);else 32!==n.which&&(40===n.which||a&&39===n.which?(r=e.nextElementSibling,Xn(r)||(r=e.parentNode.firstElementChild)):(r=e.previousElementSibling,Xn(r)||(r=e.parentNode.lastElementChild)),gr.call(i,r,!0))}}),!1),xr.call(this,e,"keyup",(function(e){13===e.which&&Gr.focusFirstMenuItem.call(i,null,!0)}))},createMenuItem:function(e){var t=this,i=e.value,n=e.list,r=e.type,a=e.title,o=e.badge,s=void 0===o?null:o,l=e.checked,c=void 0!==l&&l,h=lr(this.config.selectors.inputs[r]),d=nr("button",er(h,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(h.class?h.class:"").trim(),"aria-checked":c,value:i})),u=nr("span");u.innerHTML=a,Xn(s)&&u.appendChild(s),d.appendChild(u),Object.defineProperty(d,"checked",{enumerable:!0,get:function(){return"true"===d.getAttribute("aria-checked")},set:function(e){e&&Array.from(d.parentNode.children).filter((function(e){return ur(e,'[role="menuitemradio"]')})).forEach((function(e){return e.setAttribute("aria-checked","false")})),d.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(d,"click keyup",(function(e){if(!Wn(e)||32===e.which){switch(e.preventDefault(),e.stopPropagation(),d.checked=!0,r){case"language":t.currentTrack=Number(i);break;case"quality":t.quality=i;break;case"speed":t.speed=parseFloat(i)}Gr.showMenuPanel.call(t,"home",Wn(e))}}),r,!1),Gr.bindMenuItemShortcuts.call(this,d,r),n.appendChild(d)},formatTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Rn(e)?Vr(e,Br(this.duration)>0,t):e},updateTimeDisplay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Xn(e)&&Rn(t)&&(e.innerText=Gr.formatTime(t,i))},updateVolume:function(){this.supported.ui&&(Xn(this.elements.inputs.volume)&&Gr.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),Xn(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Xn(e)&&(e.value=t,Gr.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&Bn(e)){var i=0;if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=function(e,t){return 0===e||0===t||Number.isNaN(e)||Number.isNaN(t)?0:(e/t*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===e.type&&Gr.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":!function(e,i){var n=Rn(i)?i:0,r=Xn(e)?e:t.elements.display.buffer;if(Xn(r)){r.value=n;var a=r.getElementsByTagName("span")[0];Xn(a)&&(a.childNodes[0].nodeValue=n)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=Bn(e)?e.target:e;if(Xn(t)&&"range"===t.getAttribute("type")){if(ur(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var i=Gr.formatTime(this.currentTime),n=Gr.formatTime(this.duration),r=Hr("seekLabel",this.config);t.setAttribute("aria-valuetext",r.replace("{currentTime}",i).replace("{duration}",n))}else if(ur(t,this.config.selectors.inputs.volume)){var a=100*t.value;t.setAttribute("aria-valuenow",a),t.setAttribute("aria-valuetext","".concat(a.toFixed(1),"%"))}else t.setAttribute("aria-valuenow",t.value);Qn.isWebkit&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip:function(e){var t=this;if(this.config.tooltips.seek&&Xn(this.elements.inputs.seek)&&Xn(this.elements.display.seekTooltip)&&0!==this.duration){var i="".concat(this.config.classNames.tooltip,"--visible"),n=function(e){return hr(t.elements.display.seekTooltip,i,e)};if(this.touch)n(!1);else{var r=0,a=this.elements.progress.getBoundingClientRect();if(Bn(e))r=100/a.width*(e.pageX-a.left);else{if(!dr(this.elements.display.seekTooltip,i))return;r=parseFloat(this.elements.display.seekTooltip.style.left,10)}r<0?r=0:r>100&&(r=100),Gr.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*r),this.elements.display.seekTooltip.style.left="".concat(r,"%"),Bn(e)&&["mouseenter","mouseleave"].includes(e.type)&&n("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!Xn(this.elements.display.duration)&&this.config.invertTime;Gr.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||Gr.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return cr(this.elements.display.currentTime,!0),void cr(this.elements.progress,!0);Xn(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=Xn(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&Gr.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&Gr.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),Gr.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){cr(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,i){var n=this.elements.settings.panels[e],r=null,a=t;if("captions"===e)r=this.currentTrack;else{if(r=qn(i)?this[e]:i,qn(r)&&(r=this.config[e].default),!qn(this.options[e])&&!this.options[e].includes(r))return void this.debug.warn("Unsupported value of '".concat(r,"' for ").concat(e));if(!this.config[e].options.includes(r))return void this.debug.warn("Disabled value of '".concat(r,"' for ").concat(e))}if(Xn(a)||(a=n&&n.querySelector('[role="menu"]')),Xn(a)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=Gr.getLabel.call(this,e,r);var o=a&&a.querySelector('[value="'.concat(r,'"]'));Xn(o)&&(o.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?Hr("normal",this.config):"".concat(t,"×");case"quality":if(Rn(t)){if(0===t)return Hr("auto",this.config);var i=Hr("qualityLabel.".concat(t),this.config);return i.length?i:"".concat(t,"p")}return Nr(t);case"captions":return Zr.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(Xn(this.elements.settings.panels.quality)){var i="quality",n=this.elements.settings.panels.quality.querySelector('[role="menu"]');$n(e)&&(this.options.quality=Ir(e).filter((function(e){return t.config.quality.options.includes(e)})));var r=!qn(this.options.quality)&&this.options.quality.length>1;if(Gr.toggleMenuButton.call(this,i,r),or(n),Gr.checkMenu.call(this),r){var a=function(e){var i=Hr("qualityBadge.".concat(e),t.config);return i.length?Gr.createBadge.call(t,i):null};this.options.quality.sort((function(e,i){var n=t.config.quality.options;return n.indexOf(e)>n.indexOf(i)?1:-1})).forEach((function(e){Gr.createMenuItem.call(t,{value:e,list:n,type:i,title:Gr.getLabel.call(t,"quality",e),badge:a(e)})})),Gr.updateSetting.call(this,i,n)}}},setCaptionsMenu:function(){var e=this;if(Xn(this.elements.settings.panels.captions)){var t="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=Zr.getTracks.call(this),r=Boolean(n.length);if(Gr.toggleMenuButton.call(this,t,r),or(i),Gr.checkMenu.call(this),r){var a=n.map((function(t,n){return{value:n,checked:e.captions.toggled&&e.currentTrack===n,title:Zr.getLabel.call(e,t),badge:t.language&&Gr.createBadge.call(e,t.language.toUpperCase()),list:i,type:"language"}}));a.unshift({value:-1,checked:!this.captions.toggled,title:Hr("disabled",this.config),list:i,type:"language"}),a.forEach(Gr.createMenuItem.bind(this)),Gr.updateSetting.call(this,t,i)}}},setSpeedMenu:function(){var e=this;if(Xn(this.elements.settings.panels.speed)){var t="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(t){return t>=e.minimumSpeed&&t<=e.maximumSpeed}));var n=!qn(this.options.speed)&&this.options.speed.length>1;Gr.toggleMenuButton.call(this,t,n),or(i),Gr.checkMenu.call(this),n&&(this.options.speed.forEach((function(n){Gr.createMenuItem.call(e,{value:n,list:i,type:t,title:Gr.getLabel.call(e,"speed",n)})})),Gr.updateSetting.call(this,t,i))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!qn(e)&&Object.values(e).some((function(e){return!e.hidden}));cr(this.elements.settings.menu,!t)},focusFirstMenuItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var i=e;Xn(i)||(i=Object.values(this.elements.settings.panels).find((function(e){return!e.hidden})));var n=i.querySelector('[role^="menuitem"]');gr.call(this,n,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,i=this.elements.buttons.settings;if(Xn(t)&&Xn(i)){var n=t.hidden,r=n;if(Yn(e))r=e;else if(Wn(e)&&27===e.which)r=!1;else if(Bn(e)){var a=Hn(e.composedPath)?e.composedPath()[0]:e.target,o=t.contains(a);if(o||!o&&e.target!==i&&r)return}i.setAttribute("aria-expanded",r),cr(t,!r),hr(this.elements.container,this.config.classNames.menu.open,r),r&&Wn(e)?Gr.focusFirstMenuItem.call(this,null,!0):r||n||gr.call(this,i,Wn(e))}},getMenuSize:function(e){var t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);var i=t.scrollWidth,n=t.scrollHeight;return ar(t),{width:i,height:n}},showMenuPanel:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(t));if(Xn(n)){var r=n.parentNode,a=Array.from(r.children).find((function(e){return!e.hidden}));if(vr.transitions&&!vr.reducedMotion){r.style.width="".concat(a.scrollWidth,"px"),r.style.height="".concat(a.scrollHeight,"px");var o=Gr.getMenuSize.call(this,n),s=function t(i){i.target===r&&["width","height"].includes(i.propertyName)&&(r.style.width="",r.style.height="",wr.call(e,r,Zn,t))};xr.call(this,r,Zn,s),r.style.width="".concat(o.width,"px"),r.style.height="".concat(o.height,"px")}cr(a,!0),cr(n,!1),Gr.focusFirstMenuItem.call(this,n,i)}},setDownloadUrl:function(){var e=this.elements.buttons.download;Xn(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,i=Gr.bindMenuItemShortcuts,n=Gr.createButton,r=Gr.createProgress,a=Gr.createRange,o=Gr.createTime,s=Gr.setQualityMenu,l=Gr.setSpeedMenu,c=Gr.showMenuPanel;this.elements.controls=null,$n(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(n.call(this,"play-large"));var h=nr("div",lr(this.config.selectors.controls.wrapper));this.elements.controls=h;var d={class:"plyr__controls__item"};return Ir($n(this.config.controls)?this.config.controls:[]).forEach((function(s){if("restart"===s&&h.appendChild(n.call(t,"restart",d)),"rewind"===s&&h.appendChild(n.call(t,"rewind",d)),"play"===s&&h.appendChild(n.call(t,"play",d)),"fast-forward"===s&&h.appendChild(n.call(t,"fast-forward",d)),"progress"===s){var l=nr("div",{class:"".concat(d.class," plyr__progress__container")}),u=nr("div",lr(t.config.selectors.progress));if(u.appendChild(a.call(t,"seek",{id:"plyr-seek-".concat(e.id)})),u.appendChild(r.call(t,"buffer")),t.config.tooltips.seek){var p=nr("span",{class:t.config.classNames.tooltip},"00:00");u.appendChild(p),t.elements.display.seekTooltip=p}t.elements.progress=u,l.appendChild(t.elements.progress),h.appendChild(l)}if("current-time"===s&&h.appendChild(o.call(t,"currentTime",d)),"duration"===s&&h.appendChild(o.call(t,"duration",d)),"mute"===s||"volume"===s){var f=t.elements.volume;if(Xn(f)&&h.contains(f)||(f=nr("div",er({},d,{class:"".concat(d.class," plyr__volume").trim()})),t.elements.volume=f,h.appendChild(f)),"mute"===s&&f.appendChild(n.call(t,"mute")),"volume"===s&&!Qn.isIos){var g={max:1,step:.05,value:t.config.volume};f.appendChild(a.call(t,"volume",er(g,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===s&&h.appendChild(n.call(t,"captions",d)),"settings"===s&&!qn(t.config.settings)){var m=nr("div",er({},d,{class:"".concat(d.class," plyr__menu").trim(),hidden:""}));m.appendChild(n.call(t,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(e.id),"aria-expanded":!1}));var v=nr("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),y=nr("div"),b=nr("div",{id:"plyr-settings-".concat(e.id,"-home")}),x=nr("div",{role:"menu"});b.appendChild(x),y.appendChild(b),t.elements.settings.panels.home=b,t.config.settings.forEach((function(n){var r=nr("button",er(lr(t.config.selectors.buttons.settings),{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(t,r,n),xr.call(t,r,"click",(function(){c.call(t,n,!1)}));var a=nr("span",null,Hr(n,t.config)),o=nr("span",{class:t.config.classNames.menu.value});o.innerHTML=e[n],a.appendChild(o),r.appendChild(a),x.appendChild(r);var s=nr("div",{id:"plyr-settings-".concat(e.id,"-").concat(n),hidden:""}),l=nr("button",{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});l.appendChild(nr("span",{"aria-hidden":!0},Hr(n,t.config))),l.appendChild(nr("span",{class:t.config.classNames.hidden},Hr("menuBack",t.config))),xr.call(t,s,"keydown",(function(e){37===e.which&&(e.preventDefault(),e.stopPropagation(),c.call(t,"home",!0))}),!1),xr.call(t,l,"click",(function(){c.call(t,"home",!1)})),s.appendChild(l),s.appendChild(nr("div",{role:"menu"})),y.appendChild(s),t.elements.settings.buttons[n]=r,t.elements.settings.panels[n]=s})),v.appendChild(y),m.appendChild(v),h.appendChild(m),t.elements.settings.popup=v,t.elements.settings.menu=m}if("pip"===s&&vr.pip&&h.appendChild(n.call(t,"pip",d)),"airplay"===s&&vr.airplay&&h.appendChild(n.call(t,"airplay",d)),"download"===s){var w=er({},d,{element:"a",href:t.download,target:"_blank"});t.isHTML5&&(w.download="");var k=t.config.urls.download;!Un(k)&&t.isEmbed&&er(w,{icon:"logo-".concat(t.provider),label:t.provider}),h.appendChild(n.call(t,"download",w))}"fullscreen"===s&&h.appendChild(n.call(t,"fullscreen",d))})),this.isHTML5&&s.call(this,Mr.getQualityOptions.call(this)),l.call(this),h},inject:function(){var e=this;if(this.config.loadSprite){var t=Gr.getIconUrl.call(this);t.cors&&Xr(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var i=null;this.elements.controls=null;var n,r={id:this.id,seektime:this.config.seekTime,title:this.config.title},a=!0;if(Hn(this.config.controls)&&(this.config.controls=this.config.controls.call(this,r)),this.config.controls||(this.config.controls=[]),Xn(this.config.controls)||Fn(this.config.controls)?i=this.config.controls:(i=Gr.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Zr.getLabel.call(this)}),a=!1),a&&Fn(this.config.controls)&&(i=function(e){var t=e;return Object.entries(r).forEach((function(e){var i=Ui(e,2),n=i[0],r=i[1];t=zr(t,"{".concat(n,"}"),r)})),t}(i)),Fn(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),Xn(n)||(n=this.elements.container),n[Xn(i)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",i),Xn(this.elements.controls)||Gr.findElements.call(this),!qn(this.elements.buttons)){var o=function(t){var i=e.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:function(){return dr(t,i)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];hr(t,i,e)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(e){$n(e)||jn(e)?Array.from(e).filter(Boolean).forEach(o):o(e)}))}if(Qn.isEdge&&Jn(n),this.config.tooltips.controls){var s=this.config,l=s.classNames,c=s.selectors,h="".concat(c.controls.wrapper," ").concat(c.labels," .").concat(l.hidden),d=pr.call(this,h);Array.from(d).forEach((function(t){hr(t,e.config.classNames.hidden,!1),hr(t,e.config.classNames.tooltip,!0)}))}}};function Ur(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e;if(t){var n=document.createElement("a");n.href=i,i=n.href}try{return new URL(i)}catch(e){return null}}function qr(e){var t=new URLSearchParams;return Nn(e)&&Object.entries(e).forEach((function(e){var i=Ui(e,2),n=i[0],r=i[1];t.set(n,r)})),t}var Zr={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!vr.textTracks)$n(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Gr.setCaptionsMenu.call(this);else{if(Xn(this.elements.captions)||(this.elements.captions=nr("div",lr(this.config.selectors.captions)),function(e,t){Xn(e)&&Xn(t)&&t.parentNode.insertBefore(e,t.nextSibling)}(this.elements.captions,this.elements.wrapper)),Qn.isIE&&window.URL){var e=this.media.querySelectorAll("track");Array.from(e).forEach((function(e){var t=e.getAttribute("src"),i=Ur(t);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&jr(t,"blob").then((function(t){e.setAttribute("src",window.URL.createObjectURL(t))})).catch((function(){ar(e)}))}))}var t=Ir((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(e){return e.split("-")[0]}))),i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===i&&(i=Ui(t,1)[0]);var n=this.storage.get("captions");if(Yn(n)||(n=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:n,language:i,languages:t}),this.isHTML5){var r=this.config.captions.update?"addtrack removetrack":"removetrack";xr.call(this,this.media.textTracks,r,Zr.update.bind(this))}setTimeout(Zr.update.bind(this),0)}},update:function(){var e=this,t=Zr.getTracks.call(this,!0),i=this.captions,n=i.active,r=i.language,a=i.meta,o=i.currentTrackNode,s=Boolean(t.find((function(e){return e.language===r})));this.isHTML5&&this.isVideo&&t.filter((function(e){return!a.get(e)})).forEach((function(t){e.debug.log("Track added",t),a.set(t,{default:"showing"===t.mode}),"showing"===t.mode&&(t.mode="hidden"),xr.call(e,t,"cuechange",(function(){return Zr.updateCues.call(e)}))})),(s&&this.language!==r||!t.includes(o))&&(Zr.setLanguage.call(this,r),Zr.toggle.call(this,n&&s)),hr(this.elements.container,this.config.classNames.captions.enabled,!qn(t)),$n(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Gr.setCaptionsMenu.call(this)},toggle:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var n=this.captions.toggled,r=this.config.classNames.captions.active,a=zn(e)?!n:e;if(a!==n){if(i||(this.captions.active=a,this.storage.set({captions:a})),!this.language&&a&&!i){var o=Zr.getTracks.call(this),s=Zr.findTrack.call(this,[this.captions.language].concat(qi(this.captions.languages)),!0);return this.captions.language=s.language,void Zr.set.call(this,o.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=a),hr(this.elements.container,r,a),this.captions.toggled=a,Gr.updateSetting.call(this,"captions"),_r.call(this,this.media,a?"captionsenabled":"captionsdisabled")}setTimeout((function(){a&&t.captions.toggled&&t.captions.currentTrackNode&&(t.captions.currentTrackNode.mode="hidden")}))}},set:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=Zr.getTracks.call(this);if(-1!==e)if(Rn(e))if(e in i){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;var n=i[e],r=n||{},a=r.language;this.captions.currentTrackNode=n,Gr.updateSetting.call(this,"captions"),t||(this.captions.language=a,this.storage.set({language:a})),this.isVimeo&&this.embed.enableTextTrack(a),_r.call(this,this.media,"languagechange")}Zr.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&Zr.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else Zr.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Fn(e)){var i=e.toLowerCase();this.captions.language=i;var n=Zr.getTracks.call(this),r=Zr.findTrack.call(this,[i]);Zr.set.call(this,n.indexOf(r),t)}else this.debug.warn("Invalid language argument",e)},getTracks:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter((function(i){return!e.isHTML5||t||e.captions.meta.has(i)})).filter((function(e){return["captions","subtitles"].includes(e.kind)}))},findTrack:function(e){var t,i=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Zr.getTracks.call(this),a=function(e){return Number((i.captions.meta.get(e)||{}).default)},o=Array.from(r).sort((function(e,t){return a(t)-a(e)}));return e.every((function(e){return!(t=o.find((function(t){return t.language===e})))})),t||(n?o[0]:void 0)},getCurrentTrack:function(){return Zr.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!Vn(t)&&vr.textTracks&&this.captions.toggled&&(t=Zr.getCurrentTrack.call(this)),Vn(t)?qn(t.label)?qn(t.language)?Hr("enabled",this.config):e.language.toUpperCase():t.label:Hr("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(Xn(this.elements.captions))if(zn(e)||Array.isArray(e)){var t=e;if(!t){var i=Zr.getCurrentTrack.call(this);t=Array.from((i||{}).activeCues||[]).map((function(e){return e.getCueAsHTML()})).map(Fr)}var n=t.map((function(e){return e.trim()})).join("\n");if(n!==this.elements.captions.innerHTML){or(this.elements.captions);var r=nr("span",lr(this.config.selectors.caption));r.innerHTML=n,this.elements.captions.appendChild(r),_r.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},Jr={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.4/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"},auto:"AUTO"},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1}},Qr="picture-in-picture",Kr="inline",ea={html5:"html5",youtube:"youtube",vimeo:"vimeo"},ta="audio",ia="video";var na=function(){},ra=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Xi(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return Wi(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):na}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):na}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):na}}]),e}(),aa=function(){function e(t){var i=this;Xi(this,e),en(this,"onChange",(function(){if(i.enabled){var e=i.player.elements.buttons.fullscreen;Xn(e)&&(e.pressed=i.active);var t=i.target===i.player.media?i.target:i.player.elements.container;_r.call(i.player,t,i.active?"enterfullscreen":"exitfullscreen",!0)}})),en(this,"toggleFallback",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e?i.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(i.scrollPosition.x,i.scrollPosition.y),document.body.style.overflow=e?"hidden":"",hr(i.target,i.player.config.classNames.fullscreen.fallback,e),Qn.isIos){var t=document.head.querySelector('meta[name="viewport"]'),n="viewport-fit=cover";t||(t=document.createElement("meta")).setAttribute("name","viewport");var r=Fn(t.content)&&t.content.includes(n);e?(i.cleanupViewport=!r,r||(t.content+=",".concat(n))):i.cleanupViewport&&(t.content=t.content.split(",").filter((function(e){return e.trim()!==n})).join(","))}i.onChange()})),en(this,"trapFocus",(function(e){if(!Qn.isIos&&i.active&&"Tab"===e.key&&9===e.keyCode){var t=document.activeElement,n=pr.call(i.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),r=Ui(n,1)[0],a=n[n.length-1];t!==a||e.shiftKey?t===r&&e.shiftKey&&(a.focus(),e.preventDefault()):(r.focus(),e.preventDefault())}})),en(this,"update",(function(){var t;i.enabled?(t=i.forceFallback?"Fallback (forced)":e.native?"Native":"Fallback",i.player.debug.log("".concat(t," fullscreen enabled"))):i.player.debug.log("Fullscreen not supported and fallback disabled");hr(i.player.elements.container,i.player.config.classNames.fullscreen.enabled,i.enabled)})),en(this,"enter",(function(){i.enabled&&(Qn.isIos&&i.player.config.fullscreen.iosNative?i.player.isVimeo?i.player.embed.requestFullscreen():i.target.webkitEnterFullscreen():!e.native||i.forceFallback?i.toggleFallback(!0):i.prefix?qn(i.prefix)||i.target["".concat(i.prefix,"Request").concat(i.property)]():i.target.requestFullscreen({navigationUI:"hide"}))})),en(this,"exit",(function(){if(i.enabled)if(Qn.isIos&&i.player.config.fullscreen.iosNative)i.target.webkitExitFullscreen(),Cr(i.player.play());else if(!e.native||i.forceFallback)i.toggleFallback(!1);else if(i.prefix){if(!qn(i.prefix)){var t="moz"===i.prefix?"Cancel":"Exit";document["".concat(i.prefix).concat(t).concat(i.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),en(this,"toggle",(function(){i.active?i.exit():i.enter()})),this.player=t,this.prefix=e.prefix,this.property=e.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===t.config.fullscreen.fallback,this.player.elements.fullscreen=t.config.fullscreen.container&&function(e,t){return(Element.prototype.closest||function(){var e=this;do{if(ur.matches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}).call(e,t)}(this.player.elements.container,t.config.fullscreen.container),xr.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){i.onChange()})),xr.call(this.player,this.player.elements.container,"dblclick",(function(e){Xn(i.player.elements.controls)&&i.player.elements.controls.contains(e.target)||i.player.listeners.proxy(e,i.toggle,"fullscreen")})),xr.call(this,this.player.elements.container,"keydown",(function(e){return i.trapFocus(e)})),this.update()}return Wi(e,[{key:"usingNative",get:function(){return e.native&&!this.forceFallback}},{key:"enabled",get:function(){return(e.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!e.native||this.forceFallback)return dr(this.target,this.player.config.classNames.fullscreen.fallback);var t=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}},{key:"target",get:function(){return Qn.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(Hn(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some((function(t){return!(!Hn(document["".concat(t,"ExitFullscreen")])&&!Hn(document["".concat(t,"CancelFullScreen")])||(e=t,0))})),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),e}();function oa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(i,n){var r=new Image,a=function(){delete r.onload,delete r.onerror,(r.naturalWidth>=t?i:n)(r)};Object.assign(r,{onload:a,onerror:a,src:e})}))}var sa={addStyleHook:function(){hr(this.elements.container,this.config.selectors.container.replace(".",""),!0),hr(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var e=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void sa.toggleNativeControls.call(this,!0);Xn(this.elements.controls)||(Gr.inject.call(this),this.listeners.controls()),sa.toggleNativeControls.call(this),this.isHTML5&&Zr.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Gr.updateVolume.call(this),Gr.timeUpdate.call(this),sa.checkPlaying.call(this),hr(this.elements.container,this.config.classNames.pip.supported,vr.pip&&this.isHTML5&&this.isVideo),hr(this.elements.container,this.config.classNames.airplay.supported,vr.airplay&&this.isHTML5),hr(this.elements.container,this.config.classNames.isIos,Qn.isIos),hr(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){_r.call(e,e.media,"ready")}),0),sa.setTitle.call(this),this.poster&&sa.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&Gr.durationUpdate.call(this)},setTitle:function(){var e=Hr("play",this.config);if(Fn(this.config.title)&&!qn(this.config.title)&&(e+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(t){t.setAttribute("aria-label",e)})),this.isEmbed){var t=fr.call(this,"iframe");if(!Xn(t))return;var i=qn(this.config.title)?"video":this.config.title,n=Hr("frameTitle",this.config);t.setAttribute("title",n.replace("{title}",i))}},togglePoster:function(e){hr(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return i&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),Sr.call(this).then((function(){return oa(e)})).catch((function(i){throw e===t.poster&&sa.togglePoster.call(t,!1),i})).then((function(){if(e!==t.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(t.elements.poster.style,{backgroundImage:"url('".concat(e,"')"),backgroundSize:""}),sa.togglePoster.call(t,!0),e})))},checkPlaying:function(e){var t=this;hr(this.elements.container,this.config.classNames.playing,this.playing),hr(this.elements.container,this.config.classNames.paused,this.paused),hr(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(e){Object.assign(e,{pressed:t.playing}),e.setAttribute("aria-label",Hr(t.playing?"pause":"play",t.config))})),Bn(e)&&"timeupdate"===e.type||sa.toggleControls.call(this)},checkLoading:function(e){var t=this;this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){hr(t.elements.container,t.config.classNames.loading,t.loading),sa.toggleControls.call(t)}),this.loading?250:0)},toggleControls:function(e){var t=this.elements.controls;if(t&&this.config.hideControls){var i=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||i))}},migrateStyles:function(){var e=this;Object.values(Hi({},this.media.style)).filter((function(e){return!qn(e)&&Fn(e)&&e.startsWith("--plyr")})).forEach((function(t){e.elements.container.style.setProperty(t,e.media.style.getPropertyValue(t)),e.media.style.removeProperty(t)})),qn(this.media.style)&&this.media.removeAttribute("style")}},la=function(){function e(t){var i=this;Xi(this,e),en(this,"firstTouch",(function(){var e=i.player,t=e.elements;e.touch=!0,hr(t.container,e.config.classNames.isTouch,!0)})),en(this,"setTabFocus",(function(e){var t=i.player,n=t.elements;if(clearTimeout(i.focusTimer),"keydown"!==e.type||9===e.which){"keydown"===e.type&&(i.lastKeyDown=e.timeStamp);var r=e.timeStamp-i.lastKeyDown<=20;("focus"!==e.type||r)&&(function(){var e=t.config.classNames.tabFocus;hr(pr.call(t,".".concat(e)),e,!1)}(),"focusout"!==e.type&&(i.focusTimer=setTimeout((function(){var e=document.activeElement;n.container.contains(e)&&hr(document.activeElement,t.config.classNames.tabFocus,!0)}),10)))}})),en(this,"global",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=i.player;t.config.keyboard.global&&br.call(t,window,"keydown keyup",i.handleKey,e,!1),br.call(t,document.body,"click",i.toggleMenu,e),kr.call(t,document.body,"touchstart",i.firstTouch),br.call(t,document.body,"keydown focus blur focusout",i.setTabFocus,e,!1,!0)})),en(this,"container",(function(){var e=i.player,t=e.config,n=e.elements,r=e.timers;!t.keyboard.global&&t.keyboard.focused&&xr.call(e,n.container,"keydown keyup",i.handleKey,!1),xr.call(e,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(t){var i=n.controls;i&&"enterfullscreen"===t.type&&(i.pressed=!1,i.hover=!1);var a=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(sa.toggleControls.call(e,!0),a=e.touch?3e3:2e3),clearTimeout(r.controls),r.controls=setTimeout((function(){return sa.toggleControls.call(e,!1)}),a)}));var a=function(t){if(!t)return Er.call(e);var i=n.container.getBoundingClientRect(),r=i.width,a=i.height;return Er.call(e,"".concat(r,":").concat(a))},o=function(){clearTimeout(r.resized),r.resized=setTimeout(a,50)};xr.call(e,n.container,"enterfullscreen exitfullscreen",(function(t){var i=e.fullscreen,r=i.target,s=i.usingNative;if(r===n.container&&(e.isEmbed||!qn(e.config.ratio))){var l="enterfullscreen"===t.type;(function(t,i,n){if(e.isVimeo&&!e.config.vimeo.premium){var r=e.elements.wrapper.firstChild,a=Ui(t,2)[1],o=Ui(Lr.call(e),2),s=o[0],l=o[1];r.style.maxWidth=n?a/l*s+"px":null,r.style.margin=n?"0 auto":null}})(a(l).ratio,0,l),l&&setTimeout((function(){return Jn(n.container)}),100),s||(l?xr.call(e,window,"resize",o):wr.call(e,window,"resize",o))}}))})),en(this,"media",(function(){var e=i.player,t=e.elements;if(xr.call(e,e.media,"timeupdate seeking seeked",(function(t){return Gr.timeUpdate.call(e,t)})),xr.call(e,e.media,"durationchange loadeddata loadedmetadata",(function(t){return Gr.durationUpdate.call(e,t)})),xr.call(e,e.media,"ended",(function(){e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())})),xr.call(e,e.media,"progress playing seeking seeked",(function(t){return Gr.updateProgress.call(e,t)})),xr.call(e,e.media,"volumechange",(function(t){return Gr.updateVolume.call(e,t)})),xr.call(e,e.media,"playing play pause ended emptied timeupdate",(function(t){return sa.checkPlaying.call(e,t)})),xr.call(e,e.media,"waiting canplay seeked playing",(function(t){return sa.checkLoading.call(e,t)})),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){var n=fr.call(e,".".concat(e.config.classNames.video));if(!Xn(n))return;xr.call(e,t.container,"click",(function(r){([t.container,n].includes(r.target)||n.contains(r.target))&&(e.touch&&e.config.hideControls||(e.ended?(i.proxy(r,e.restart,"restart"),i.proxy(r,(function(){Cr(e.play())}),"play")):i.proxy(r,(function(){Cr(e.togglePlay())}),"play")))}))}e.supported.ui&&e.config.disableContextMenu&&xr.call(e,t.wrapper,"contextmenu",(function(e){e.preventDefault()}),!1),xr.call(e,e.media,"volumechange",(function(){e.storage.set({volume:e.volume,muted:e.muted})})),xr.call(e,e.media,"ratechange",(function(){Gr.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})})),xr.call(e,e.media,"qualitychange",(function(t){Gr.updateSetting.call(e,"quality",null,t.detail.quality)})),xr.call(e,e.media,"ready qualitychange",(function(){Gr.setDownloadUrl.call(e)}));var r=e.config.events.concat(["keyup","keydown"]).join(" ");xr.call(e,e.media,r,(function(i){var n=i.detail,r=void 0===n?{}:n;"error"===i.type&&(r=e.media.error),_r.call(e,t.container,i.type,!0,r)}))})),en(this,"proxy",(function(e,t,n){var r=i.player,a=r.config.listeners[n],o=!0;Hn(a)&&(o=a.call(r,e)),!1!==o&&Hn(t)&&t.call(r,e)})),en(this,"bind",(function(e,t,n,r){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=i.player,s=o.config.listeners[r],l=Hn(s);xr.call(o,e,t,(function(e){return i.proxy(e,n,r)}),a&&!l)})),en(this,"controls",(function(){var e=i.player,t=e.elements,n=Qn.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach((function(t){i.bind(t,"click",(function(){Cr(e.togglePlay())}),"play")})),i.bind(t.buttons.restart,"click",e.restart,"restart"),i.bind(t.buttons.rewind,"click",(function(){e.lastSeekTime=Date.now(),e.rewind()}),"rewind"),i.bind(t.buttons.fastForward,"click",(function(){e.lastSeekTime=Date.now(),e.forward()}),"fastForward"),i.bind(t.buttons.mute,"click",(function(){e.muted=!e.muted}),"mute"),i.bind(t.buttons.captions,"click",(function(){return e.toggleCaptions()})),i.bind(t.buttons.download,"click",(function(){_r.call(e,e.media,"download")}),"download"),i.bind(t.buttons.fullscreen,"click",(function(){e.fullscreen.toggle()}),"fullscreen"),i.bind(t.buttons.pip,"click",(function(){e.pip="toggle"}),"pip"),i.bind(t.buttons.airplay,"click",e.airplay,"airplay"),i.bind(t.buttons.settings,"click",(function(t){t.stopPropagation(),t.preventDefault(),Gr.toggleMenu.call(e,t)}),null,!1),i.bind(t.buttons.settings,"keyup",(function(t){var i=t.which;[13,32].includes(i)&&(13!==i?(t.preventDefault(),t.stopPropagation(),Gr.toggleMenu.call(e,t)):Gr.focusFirstMenuItem.call(e,null,!0))}),null,!1),i.bind(t.settings.menu,"keydown",(function(t){27===t.which&&Gr.toggleMenu.call(e,t)})),i.bind(t.inputs.seek,"mousedown mousemove",(function(e){var i=t.progress.getBoundingClientRect(),n=100/i.width*(e.pageX-i.left);e.currentTarget.setAttribute("seek-value",n)})),i.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(t){var i=t.currentTarget,n=t.keyCode?t.keyCode:t.which,r="play-on-seeked";if(!Wn(t)||39===n||37===n){e.lastSeekTime=Date.now();var a=i.hasAttribute(r),o=["mouseup","touchend","keyup"].includes(t.type);a&&o?(i.removeAttribute(r),Cr(e.play())):!o&&e.playing&&(i.setAttribute(r,""),e.pause())}})),Qn.isIos){var r=pr.call(e,'input[type="range"]');Array.from(r).forEach((function(e){return i.bind(e,n,(function(e){return Jn(e.target)}))}))}i.bind(t.inputs.seek,n,(function(t){var i=t.currentTarget,n=i.getAttribute("seek-value");qn(n)&&(n=i.value),i.removeAttribute("seek-value"),e.currentTime=n/i.max*e.duration}),"seek"),i.bind(t.progress,"mouseenter mouseleave mousemove",(function(t){return Gr.updateSeekTooltip.call(e,t)})),i.bind(t.progress,"mousemove touchmove",(function(t){var i=e.previewThumbnails;i&&i.loaded&&i.startMove(t)})),i.bind(t.progress,"mouseleave touchend click",(function(){var t=e.previewThumbnails;t&&t.loaded&&t.endMove(!1,!0)})),i.bind(t.progress,"mousedown touchstart",(function(t){var i=e.previewThumbnails;i&&i.loaded&&i.startScrubbing(t)})),i.bind(t.progress,"mouseup touchend",(function(t){var i=e.previewThumbnails;i&&i.loaded&&i.endScrubbing(t)})),Qn.isWebkit&&Array.from(pr.call(e,'input[type="range"]')).forEach((function(t){i.bind(t,"input",(function(t){return Gr.updateRangeFill.call(e,t.target)}))})),e.config.toggleInvert&&!Xn(t.display.duration)&&i.bind(t.display.currentTime,"click",(function(){0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,Gr.timeUpdate.call(e))})),i.bind(t.inputs.volume,n,(function(t){e.volume=t.target.value}),"volume"),i.bind(t.controls,"mouseenter mouseleave",(function(i){t.controls.hover=!e.touch&&"mouseenter"===i.type})),t.fullscreen&&Array.from(t.fullscreen.children).filter((function(e){return!e.contains(t.container)})).forEach((function(n){i.bind(n,"mouseenter mouseleave",(function(i){t.controls.hover=!e.touch&&"mouseenter"===i.type}))})),i.bind(t.controls,"mousedown mouseup touchstart touchend touchcancel",(function(e){t.controls.pressed=["mousedown","touchstart"].includes(e.type)})),i.bind(t.controls,"focusin",(function(){var n=e.config,r=e.timers;hr(t.controls,n.classNames.noTransition,!0),sa.toggleControls.call(e,!0),setTimeout((function(){hr(t.controls,n.classNames.noTransition,!1)}),0);var a=i.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout((function(){return sa.toggleControls.call(e,!1)}),a)})),i.bind(t.inputs.volume,"wheel",(function(t){var i=t.webkitDirectionInvertedFromDevice,n=Ui([t.deltaX,-t.deltaY].map((function(e){return i?-e:e})),2),r=n[0],a=n[1],o=Math.sign(Math.abs(r)>Math.abs(a)?r:a);e.increaseVolume(o/50);var s=e.media.volume;(1===o&&s<1||-1===o&&s>0)&&t.preventDefault()}),"volume",!1)})),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return Wi(e,[{key:"handleKey",value:function(e){var t=this.player,i=t.elements,n=e.keyCode?e.keyCode:e.which,r="keydown"===e.type,a=r&&n===this.lastKey;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&Rn(n))if(r){var o=document.activeElement;if(Xn(o)){var s=t.config.selectors.editable;if(o!==i.inputs.seek&&ur(o,s))return;if(32===e.which&&ur(o,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(n)&&(e.preventDefault(),e.stopPropagation()),n){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:a||(t.currentTime=t.duration/10*(n-48));break;case 32:case 75:a||Cr(t.togglePlay());break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:a||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:a||t.toggleCaptions();break;case 76:t.loop=!t.loop}27===n&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=n}else this.lastKey=null}},{key:"toggleMenu",value:function(e){Gr.toggleMenu.call(this.player,e)}}]),e}();var ca=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(){var e=function(){},t={},i={},n={};function r(e,t){if(e){var r=n[e];if(i[e]=t,r)for(;r.length;)r[0](e,t),r.splice(0,1)}}function a(t,i){t.call&&(t={success:t}),i.length?(t.error||e)(i):(t.success||e)(t)}function o(t,i,n,r){var a,s,l=document,c=n.async,h=(n.numRetries||0)+1,d=n.before||e,u=t.replace(/[\?|#].*$/,""),p=t.replace(/^(css|img)!/,"");r=r||0,/(^css!|\.css$)/.test(u)?((s=l.createElement("link")).rel="stylesheet",s.href=p,(a="hideFocus"in s)&&s.relList&&(a=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(u)?(s=l.createElement("img")).src=p:((s=l.createElement("script")).src=t,s.async=void 0===c||c),s.onload=s.onerror=s.onbeforeload=function(e){var l=e.type[0];if(a)try{s.sheet.cssText.length||(l="e")}catch(e){18!=e.code&&(l="e")}if("e"==l){if((r+=1)<h)return o(t,i,n,r)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";i(t,l,e.defaultPrevented)},!1!==d(t,s)&&l.head.appendChild(s)}function s(e,t,i){var n,r,a=(e=e.push?e:[e]).length,s=a,l=[];for(n=function(e,i,n){if("e"==i&&l.push(e),"b"==i){if(!n)return;l.push(e)}--a||t(l)},r=0;r<s;r++)o(e[r],n,i)}function l(e,i,n){var o,l;if(i&&i.trim&&(o=i),l=(o?n:i)||{},o){if(o in t)throw"LoadJS";t[o]=!0}function c(t,i){s(e,(function(e){a(l,e),t&&a({success:t,error:i},e),r(o,e)}),l)}if(l.returnPromise)return new Promise(c);c()}return l.ready=function(e,t){return function(e,t){e=e.push?e:[e];var r,a,o,s=[],l=e.length,c=l;for(r=function(e,i){i.length&&s.push(e),--c||t(s)};l--;)a=e[l],(o=i[a])?r(a,o):(n[a]=n[a]||[]).push(r)}(e,(function(e){a(t,e)})),l},l.done=function(e){r(e,[])},l.reset=function(){t={},i={},n={}},l.isDefined=function(e){return e in t},l}()}));function ha(e){return new Promise((function(t,i){ca(e,{success:t,error:i})}))}function da(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,_r.call(this,this.media,e?"play":"pause"))}var ua={setup:function(){var e=this;hr(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,Er.call(e),Nn(window.Vimeo)?ua.ready.call(e):ha(e.config.urls.vimeo.sdk).then((function(){ua.ready.call(e)})).catch((function(t){e.debug.warn("Vimeo SDK (player.js) failed to load",t)}))},ready:function(){var e=this,t=this,i=t.config.vimeo,n=i.premium,r=i.referrerPolicy,a=Gi(i,Ki);n&&Object.assign(a,{controls:!1,sidedock:!1});var o=qr(Hi({loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},a)),s=t.media.getAttribute("src");qn(s)&&(s=t.media.getAttribute(t.config.attributes.embed.id));var l=function(e){return qn(e)?null:Rn(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}(s),c=nr("iframe"),h=Dr(t.config.urls.vimeo.iframe,l,o);if(c.setAttribute("src",h),c.setAttribute("allowfullscreen",""),c.setAttribute("allow",["autoplay","fullscreen","picture-in-picture"].join("; ")),qn(r)||c.setAttribute("referrerPolicy",r),n||!i.customControls)c.setAttribute("data-poster",t.poster),t.media=sr(c,t.media);else{var d=nr("div",{class:t.config.classNames.embedContainer,"data-poster":t.poster});d.appendChild(c),t.media=sr(d,t.media)}i.customControls||jr(Dr(t.config.urls.vimeo.api,h)).then((function(e){!qn(e)&&e.thumbnail_url&&sa.setPoster.call(t,e.thumbnail_url).catch((function(){}))})),t.embed=new window.Vimeo.Player(c,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=function(){return da.call(t,!0),t.embed.play()},t.media.pause=function(){return da.call(t,!1),t.embed.pause()},t.media.stop=function(){t.pause(),t.currentTime=0};var u=t.media.currentTime;Object.defineProperty(t.media,"currentTime",{get:function(){return u},set:function(e){var i=t.embed,n=t.media,r=t.paused,a=t.volume,o=r&&!i.hasPlayed;n.seeking=!0,_r.call(t,n,"seeking"),Promise.resolve(o&&i.setVolume(0)).then((function(){return i.setCurrentTime(e)})).then((function(){return o&&i.pause()})).then((function(){return o&&i.setVolume(a)})).catch((function(){}))}});var p=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:function(){return p},set:function(e){t.embed.setPlaybackRate(e).then((function(){p=e,_r.call(t,t.media,"ratechange")})).catch((function(){t.options.speed=[1]}))}});var f=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return f},set:function(e){t.embed.setVolume(e).then((function(){f=e,_r.call(t,t.media,"volumechange")}))}});var g=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return g},set:function(e){var i=!!Yn(e)&&e;t.embed.setVolume(i?0:t.config.volume).then((function(){g=i,_r.call(t,t.media,"volumechange")}))}});var m,v=t.config.loop;Object.defineProperty(t.media,"loop",{get:function(){return v},set:function(e){var i=Yn(e)?e:t.config.loop.active;t.embed.setLoop(i).then((function(){v=i}))}}),t.embed.getVideoUrl().then((function(e){m=e,Gr.setDownloadUrl.call(t)})).catch((function(t){e.debug.warn(t)})),Object.defineProperty(t.media,"currentSrc",{get:function(){return m}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then((function(i){var n=Ui(i,2),r=n[0],a=n[1];t.embed.ratio=[r,a],Er.call(e)})),t.embed.setAutopause(t.config.autopause).then((function(e){t.config.autopause=e})),t.embed.getVideoTitle().then((function(i){t.config.title=i,sa.setTitle.call(e)})),t.embed.getCurrentTime().then((function(e){u=e,_r.call(t,t.media,"timeupdate")})),t.embed.getDuration().then((function(e){t.media.duration=e,_r.call(t,t.media,"durationchange")})),t.embed.getTextTracks().then((function(e){t.media.textTracks=e,Zr.setup.call(t)})),t.embed.on("cuechange",(function(e){var i=e.cues,n=(void 0===i?[]:i).map((function(e){return function(e){var t=document.createDocumentFragment(),i=document.createElement("div");return t.appendChild(i),i.innerHTML=e,t.firstChild.innerText}(e.text)}));Zr.updateCues.call(t,n)})),t.embed.on("loaded",(function(){t.embed.getPaused().then((function(e){da.call(t,!e),e||_r.call(t,t.media,"playing")})),Xn(t.embed.element)&&t.supported.ui&&t.embed.element.setAttribute("tabindex",-1)})),t.embed.on("bufferstart",(function(){_r.call(t,t.media,"waiting")})),t.embed.on("bufferend",(function(){_r.call(t,t.media,"playing")})),t.embed.on("play",(function(){da.call(t,!0),_r.call(t,t.media,"playing")})),t.embed.on("pause",(function(){da.call(t,!1)})),t.embed.on("timeupdate",(function(e){t.media.seeking=!1,u=e.seconds,_r.call(t,t.media,"timeupdate")})),t.embed.on("progress",(function(e){t.media.buffered=e.percent,_r.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&_r.call(t,t.media,"canplaythrough"),t.embed.getDuration().then((function(e){e!==t.media.duration&&(t.media.duration=e,_r.call(t,t.media,"durationchange"))}))})),t.embed.on("seeked",(function(){t.media.seeking=!1,_r.call(t,t.media,"seeked")})),t.embed.on("ended",(function(){t.media.paused=!0,_r.call(t,t.media,"ended")})),t.embed.on("error",(function(e){t.media.error=e,_r.call(t,t.media,"error")})),i.customControls&&setTimeout((function(){return sa.build.call(t)}),0)}};function pa(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,_r.call(this,this.media,e?"play":"pause"))}function fa(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var ga={setup:function(){var e=this;if(hr(this.elements.wrapper,this.config.classNames.embed,!0),Nn(window.YT)&&Hn(window.YT.Player))ga.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){Hn(t)&&t(),ga.ready.call(e)},ha(this.config.urls.youtube.sdk).catch((function(t){e.debug.warn("YouTube API failed to load",t)}))}},getTitle:function(e){var t=this;jr(Dr(this.config.urls.youtube.api,e)).then((function(e){if(Nn(e)){var i=e.title,n=e.height,r=e.width;t.config.title=i,sa.setTitle.call(t),t.embed.ratio=[r,n]}Er.call(t)})).catch((function(){Er.call(t)}))},ready:function(){var e=this,t=e.config.youtube,i=e.media&&e.media.getAttribute("id");if(qn(i)||!i.startsWith("youtube-")){var n=e.media.getAttribute("src");qn(n)&&(n=e.media.getAttribute(this.config.attributes.embed.id));var r=function(e){return qn(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}(n),a=nr("div",{id:Or(e.provider),"data-poster":t.customControls?e.poster:void 0});if(e.media=sr(a,e.media),t.customControls){var o=function(e){return"https://i.ytimg.com/vi/".concat(r,"/").concat(e,"default.jpg")};oa(o("maxres"),121).catch((function(){return oa(o("sd"),121)})).catch((function(){return oa(o("hq"))})).then((function(t){return sa.setPoster.call(e,t.src)})).then((function(t){t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")})).catch((function(){}))}e.embed=new window.YT.Player(e.media,{videoId:r,host:fa(t),playerVars:er({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},t),events:{onError:function(t){if(!e.media.error){var i=t.data,n={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[i]||"An unknown error occured";e.media.error={code:i,message:n},_r.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var i=t.target;e.media.playbackRate=i.getPlaybackRate(),_r.call(e,e.media,"ratechange")},onReady:function(i){if(!Hn(e.media.play)){var n=i.target;ga.getTitle.call(e,r),e.media.play=function(){pa.call(e,!0),n.playVideo()},e.media.pause=function(){pa.call(e,!1),n.pauseVideo()},e.media.stop=function(){n.stopVideo()},e.media.duration=n.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:function(){return Number(n.getCurrentTime())},set:function(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,_r.call(e,e.media,"seeking"),n.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:function(){return n.getPlaybackRate()},set:function(e){n.setPlaybackRate(e)}});var a=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return a},set:function(t){a=t,n.setVolume(100*a),_r.call(e,e.media,"volumechange")}});var o=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return o},set:function(t){var i=Yn(t)?t:o;o=i,n[i?"mute":"unMute"](),n.setVolume(100*a),_r.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:function(){return n.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}});var s=n.getAvailablePlaybackRates();e.options.speed=s.filter((function(t){return e.config.speed.options.includes(t)})),e.supported.ui&&t.customControls&&e.media.setAttribute("tabindex",-1),_r.call(e,e.media,"timeupdate"),_r.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval((function(){e.media.buffered=n.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&_r.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),_r.call(e,e.media,"canplaythrough"))}),200),t.customControls&&setTimeout((function(){return sa.build.call(e)}),50)}},onStateChange:function(i){var n=i.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(i.data)&&(e.media.seeking=!1,_r.call(e,e.media,"seeked")),i.data){case-1:_r.call(e,e.media,"timeupdate"),e.media.buffered=n.getVideoLoadedFraction(),_r.call(e,e.media,"progress");break;case 0:pa.call(e,!1),e.media.loop?(n.stopVideo(),n.playVideo()):_r.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(pa.call(e,!0),_r.call(e,e.media,"playing"),e.timers.playing=setInterval((function(){_r.call(e,e.media,"timeupdate")}),50),e.media.duration!==n.getDuration()&&(e.media.duration=n.getDuration(),_r.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),pa.call(e,!1);break;case 3:_r.call(e,e.media,"waiting")}_r.call(e,e.elements.container,"statechange",!1,{code:i.data})}}})}}},ma={setup:function(){this.media?(hr(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),hr(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&hr(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=nr("div",{class:this.config.classNames.video}),tr(this.media,this.elements.wrapper),this.elements.poster=nr("div",{class:this.config.classNames.poster,hidden:""}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Mr.setup.call(this):this.isYouTube?ga.setup.call(this):this.isVimeo&&ua.setup.call(this)):this.debug.warn("No media element found!")}},va=function(){function e(t){var i=this;Xi(this,e),en(this,"load",(function(){i.enabled&&(Nn(window.google)&&Nn(window.google.ima)?i.ready():ha(i.player.config.urls.googleIMA.sdk).then((function(){i.ready()})).catch((function(){i.trigger("error",new Error("Google IMA SDK failed to load"))})))})),en(this,"ready",(function(){var e;i.enabled||((e=i).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),i.startSafetyTimer(12e3,"ready()"),i.managerPromise.then((function(){i.clearSafetyTimer("onAdsManagerLoaded()")})),i.listeners(),i.setupIMA()})),en(this,"setupIMA",(function(){i.elements.container=nr("div",{class:i.player.config.classNames.ads}),i.player.elements.container.appendChild(i.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(i.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(i.player.config.playsinline),i.elements.displayContainer=new google.ima.AdDisplayContainer(i.elements.container,i.player.media),i.loader=new google.ima.AdsLoader(i.elements.displayContainer),i.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(e){return i.onAdsManagerLoaded(e)}),!1),i.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return i.onAdError(e)}),!1),i.requestAds()})),en(this,"requestAds",(function(){var e=i.player.elements.container;try{var t=new google.ima.AdsRequest;t.adTagUrl=i.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!i.player.muted),i.loader.requestAds(t)}catch(e){i.onAdError(e)}})),en(this,"pollCountdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return clearInterval(i.countdownTimer),void i.elements.container.removeAttribute("data-badge-text");i.countdownTimer=setInterval((function(){var e=Vr(Math.max(i.manager.getRemainingTime(),0)),t="".concat(Hr("advertisement",i.player.config)," - ").concat(e);i.elements.container.setAttribute("data-badge-text",t)}),100)})),en(this,"onAdsManagerLoaded",(function(e){if(i.enabled){var t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,i.manager=e.getAdsManager(i.player,t),i.cuePoints=i.manager.getCuePoints(),i.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return i.onAdError(e)})),Object.keys(google.ima.AdEvent.Type).forEach((function(e){i.manager.addEventListener(google.ima.AdEvent.Type[e],(function(e){return i.onAdEvent(e)}))})),i.trigger("loaded")}})),en(this,"addCuePoints",(function(){qn(i.cuePoints)||i.cuePoints.forEach((function(e){if(0!==e&&-1!==e&&e<i.player.duration){var t=i.player.elements.progress;if(Xn(t)){var n=100/i.player.duration*e,r=nr("span",{class:i.player.config.classNames.cues});r.style.left="".concat(n.toString(),"%"),t.appendChild(r)}}}))})),en(this,"onAdEvent",(function(e){var t=i.player.elements.container,n=e.getAd(),r=e.getAdData();switch(function(e){_r.call(i.player,i.player.media,"ads".concat(e.replace(/_/g,"").toLowerCase()))}(e.type),e.type){case google.ima.AdEvent.Type.LOADED:i.trigger("loaded"),i.pollCountdown(!0),n.isLinear()||(n.width=t.offsetWidth,n.height=t.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:i.manager.setVolume(i.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:i.player.ended?i.loadAds():i.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:i.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:i.pollCountdown(),i.resumeContent();break;case google.ima.AdEvent.Type.LOG:r.adError&&i.player.debug.warn("Non-fatal ad error: ".concat(r.adError.getMessage()))}})),en(this,"onAdError",(function(e){i.cancel(),i.player.debug.warn("Ads error",e)})),en(this,"listeners",(function(){var e,t=i.player.elements.container;i.player.on("canplay",(function(){i.addCuePoints()})),i.player.on("ended",(function(){i.loader.contentComplete()})),i.player.on("timeupdate",(function(){e=i.player.currentTime})),i.player.on("seeked",(function(){var t=i.player.currentTime;qn(i.cuePoints)||i.cuePoints.forEach((function(n,r){e<n&&n<t&&(i.manager.discardAdBreak(),i.cuePoints.splice(r,1))}))})),window.addEventListener("resize",(function(){i.manager&&i.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)}))})),en(this,"play",(function(){var e=i.player.elements.container;i.managerPromise||i.resumeContent(),i.managerPromise.then((function(){i.manager.setVolume(i.player.volume),i.elements.displayContainer.initialize();try{i.initialized||(i.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),i.manager.start()),i.initialized=!0}catch(e){i.onAdError(e)}})).catch((function(){}))})),en(this,"resumeContent",(function(){i.elements.container.style.zIndex="",i.playing=!1,Cr(i.player.media.play())})),en(this,"pauseContent",(function(){i.elements.container.style.zIndex=3,i.playing=!0,i.player.media.pause()})),en(this,"cancel",(function(){i.initialized&&i.resumeContent(),i.trigger("error"),i.loadAds()})),en(this,"loadAds",(function(){i.managerPromise.then((function(){i.manager&&i.manager.destroy(),i.managerPromise=new Promise((function(e){i.on("loaded",e),i.player.debug.log(i.manager)})),i.initialized=!1,i.requestAds()})).catch((function(){}))})),en(this,"trigger",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=i.events[e];$n(a)&&a.forEach((function(e){Hn(e)&&e.apply(i,n)}))})),en(this,"on",(function(e,t){return $n(i.events[e])||(i.events[e]=[]),i.events[e].push(t),i})),en(this,"startSafetyTimer",(function(e,t){i.player.debug.log("Safety timer invoked from: ".concat(t)),i.safetyTimer=setTimeout((function(){i.cancel(),i.clearSafetyTimer("startSafetyTimer()")}),e)})),en(this,"clearSafetyTimer",(function(e){zn(i.safetyTimer)||(i.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(i.safetyTimer),i.safetyTimer=null)})),this.player=t,this.config=t.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((function(e,t){i.on("loaded",e),i.on("error",t)})),this.load()}return Wi(e,[{key:"enabled",get:function(){var e=this.config;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!qn(e.publisherId)||Un(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;return Un(e.tagUrl)?e.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(qr({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId}))}}]),e}(),ya=function(e){var t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(e){var i={};e.split(/\r\n|\n|\r/).forEach((function(e){if(Rn(i.startTime)){if(!qn(e.trim())&&qn(i.text)){var t,n,r=e.trim().split("#xywh=");t=Ui(r,1),i.text=t[0],r[1]&&(n=Ui(r[1].split(","),4),i.x=n[0],i.y=n[1],i.w=n[2],i.h=n[3])}}else{var a=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);a&&(i.startTime=60*Number(a[1]||0)*60+60*Number(a[2])+Number(a[3])+Number("0.".concat(a[4])),i.endTime=60*Number(a[6]||0)*60+60*Number(a[7])+Number(a[8])+Number("0.".concat(a[9])))}})),i.text&&t.push(i)})),t},ba=function(e,t){var i={};return e>t.width/t.height?(i.width=t.width,i.height=1/e*t.width):(i.height=t.height,i.width=e*t.height),i},xa=function(){function e(t){var i=this;Xi(this,e),en(this,"load",(function(){i.player.elements.display.seekTooltip&&(i.player.elements.display.seekTooltip.hidden=i.enabled),i.enabled&&i.getThumbnails().then((function(){i.enabled&&(i.render(),i.determineContainerAutoSizing(),i.loaded=!0)}))})),en(this,"getThumbnails",(function(){return new Promise((function(e){var t=i.player.config.previewThumbnails.src;if(qn(t))throw new Error("Missing previewThumbnails.src config attribute");var n=function(){i.thumbnails.sort((function(e,t){return e.height-t.height})),i.player.debug.log("Preview thumbnails",i.thumbnails),e()};if(Hn(t))t((function(e){i.thumbnails=e,n()}));else{var r=(Fn(t)?[t]:t).map((function(e){return i.getThumbnail(e)}));Promise.all(r).then(n)}}))})),en(this,"getThumbnail",(function(e){return new Promise((function(t){jr(e).then((function(n){var r={frames:ya(n),height:null,urlPrefix:""};r.frames[0].text.startsWith("/")||r.frames[0].text.startsWith("http://")||r.frames[0].text.startsWith("https://")||(r.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var a=new Image;a.onload=function(){r.height=a.naturalHeight,r.width=a.naturalWidth,i.thumbnails.push(r),t()},a.src=r.urlPrefix+r.frames[0].text}))}))})),en(this,"startMove",(function(e){if(i.loaded&&Bn(e)&&["touchmove","mousemove"].includes(e.type)&&i.player.media.duration){if("touchmove"===e.type)i.seekTime=i.player.media.duration*(i.player.elements.inputs.seek.value/100);else{var t=i.player.elements.progress.getBoundingClientRect(),n=100/t.width*(e.pageX-t.left);i.seekTime=i.player.media.duration*(n/100),i.seekTime<0&&(i.seekTime=0),i.seekTime>i.player.media.duration-1&&(i.seekTime=i.player.media.duration-1),i.mousePosX=e.pageX,i.elements.thumb.time.innerText=Vr(i.seekTime)}i.showImageAtCurrentTime()}})),en(this,"endMove",(function(){i.toggleThumbContainer(!1,!0)})),en(this,"startScrubbing",(function(e){(zn(e.button)||!1===e.button||0===e.button)&&(i.mouseDown=!0,i.player.media.duration&&(i.toggleScrubbingContainer(!0),i.toggleThumbContainer(!1,!0),i.showImageAtCurrentTime()))})),en(this,"endScrubbing",(function(){i.mouseDown=!1,Math.ceil(i.lastTime)===Math.ceil(i.player.media.currentTime)?i.toggleScrubbingContainer(!1):kr.call(i.player,i.player.media,"timeupdate",(function(){i.mouseDown||i.toggleScrubbingContainer(!1)}))})),en(this,"listeners",(function(){i.player.on("play",(function(){i.toggleThumbContainer(!1,!0)})),i.player.on("seeked",(function(){i.toggleThumbContainer(!1)})),i.player.on("timeupdate",(function(){i.lastTime=i.player.media.currentTime}))})),en(this,"render",(function(){i.elements.thumb.container=nr("div",{class:i.player.config.classNames.previewThumbnails.thumbContainer}),i.elements.thumb.imageContainer=nr("div",{class:i.player.config.classNames.previewThumbnails.imageContainer}),i.elements.thumb.container.appendChild(i.elements.thumb.imageContainer);var e=nr("div",{class:i.player.config.classNames.previewThumbnails.timeContainer});i.elements.thumb.time=nr("span",{},"00:00"),e.appendChild(i.elements.thumb.time),i.elements.thumb.container.appendChild(e),Xn(i.player.elements.progress)&&i.player.elements.progress.appendChild(i.elements.thumb.container),i.elements.scrubbing.container=nr("div",{class:i.player.config.classNames.previewThumbnails.scrubbingContainer}),i.player.elements.wrapper.appendChild(i.elements.scrubbing.container)})),en(this,"destroy",(function(){i.elements.thumb.container&&i.elements.thumb.container.remove(),i.elements.scrubbing.container&&i.elements.scrubbing.container.remove()})),en(this,"showImageAtCurrentTime",(function(){i.mouseDown?i.setScrubbingContainerSize():i.setThumbContainerSizeAndPos();var e=i.thumbnails[0].frames.findIndex((function(e){return i.seekTime>=e.startTime&&i.seekTime<=e.endTime})),t=e>=0,n=0;i.mouseDown||i.toggleThumbContainer(t),t&&(i.thumbnails.forEach((function(t,r){i.loadedImages.includes(t.frames[e].text)&&(n=r)})),e!==i.showingThumb&&(i.showingThumb=e,i.loadImage(n)))})),en(this,"loadImage",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=i.showingThumb,n=i.thumbnails[e],r=n.urlPrefix,a=n.frames[t],o=n.frames[t].text,s=r+o;if(i.currentImageElement&&i.currentImageElement.dataset.filename===o)i.showImage(i.currentImageElement,a,e,t,o,!1),i.currentImageElement.dataset.index=t,i.removeOldImages(i.currentImageElement);else{i.loadingImage&&i.usingSprites&&(i.loadingImage.onload=null);var l=new Image;l.src=s,l.dataset.index=t,l.dataset.filename=o,i.showingThumbFilename=o,i.player.debug.log("Loading image: ".concat(s)),l.onload=function(){return i.showImage(l,a,e,t,o,!0)},i.loadingImage=l,i.removeOldImages(l)}})),en(this,"showImage",(function(e,t,n,r,a){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];i.player.debug.log("Showing thumb: ".concat(a,". num: ").concat(r,". qual: ").concat(n,". newimg: ").concat(o)),i.setImageSizeAndOffset(e,t),o&&(i.currentImageContainer.appendChild(e),i.currentImageElement=e,i.loadedImages.includes(a)||i.loadedImages.push(a)),i.preloadNearby(r,!0).then(i.preloadNearby(r,!1)).then(i.getHigherQuality(n,e,t,a))})),en(this,"removeOldImages",(function(e){Array.from(i.currentImageContainer.children).forEach((function(t){if("img"===t.tagName.toLowerCase()){var n=i.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;var r=i.currentImageContainer;setTimeout((function(){r.removeChild(t),i.player.debug.log("Removing thumb: ".concat(t.dataset.filename))}),n)}}}))})),en(this,"preloadNearby",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(n){setTimeout((function(){var r=i.thumbnails[0].frames[e].text;if(i.showingThumbFilename===r){var a;a=t?i.thumbnails[0].frames.slice(e):i.thumbnails[0].frames.slice(0,e).reverse();var o=!1;a.forEach((function(e){var t=e.text;if(t!==r&&!i.loadedImages.includes(t)){o=!0,i.player.debug.log("Preloading thumb filename: ".concat(t));var a=i.thumbnails[0].urlPrefix+t,s=new Image;s.src=a,s.onload=function(){i.player.debug.log("Preloaded thumb filename: ".concat(t)),i.loadedImages.includes(t)||i.loadedImages.push(t),n()}}})),o||n()}}),300)}))})),en(this,"getHigherQuality",(function(e,t,n,r){if(e<i.thumbnails.length-1){var a=t.naturalHeight;i.usingSprites&&(a=n.h),a<i.thumbContainerHeight&&setTimeout((function(){i.showingThumbFilename===r&&(i.player.debug.log("Showing higher quality thumb for: ".concat(r)),i.loadImage(e+1))}),300)}})),en(this,"toggleThumbContainer",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i.player.config.classNames.previewThumbnails.thumbContainerShown;i.elements.thumb.container.classList.toggle(n,e),!e&&t&&(i.showingThumb=null,i.showingThumbFilename=null)})),en(this,"toggleScrubbingContainer",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=i.player.config.classNames.previewThumbnails.scrubbingContainerShown;i.elements.scrubbing.container.classList.toggle(t,e),e||(i.showingThumb=null,i.showingThumbFilename=null)})),en(this,"determineContainerAutoSizing",(function(){(i.elements.thumb.imageContainer.clientHeight>20||i.elements.thumb.imageContainer.clientWidth>20)&&(i.sizeSpecifiedInCSS=!0)})),en(this,"setThumbContainerSizeAndPos",(function(){if(i.sizeSpecifiedInCSS){if(i.elements.thumb.imageContainer.clientHeight>20&&i.elements.thumb.imageContainer.clientWidth<20){var e=Math.floor(i.elements.thumb.imageContainer.clientHeight*i.thumbAspectRatio);i.elements.thumb.imageContainer.style.width="".concat(e,"px")}else if(i.elements.thumb.imageContainer.clientHeight<20&&i.elements.thumb.imageContainer.clientWidth>20){var t=Math.floor(i.elements.thumb.imageContainer.clientWidth/i.thumbAspectRatio);i.elements.thumb.imageContainer.style.height="".concat(t,"px")}}else{var n=Math.floor(i.thumbContainerHeight*i.thumbAspectRatio);i.elements.thumb.imageContainer.style.height="".concat(i.thumbContainerHeight,"px"),i.elements.thumb.imageContainer.style.width="".concat(n,"px")}i.setThumbContainerPos()})),en(this,"setThumbContainerPos",(function(){var e=i.player.elements.progress.getBoundingClientRect(),t=i.player.elements.container.getBoundingClientRect(),n=i.elements.thumb.container,r=t.left-e.left+10,a=t.right-e.left-n.clientWidth-10,o=i.mousePosX-e.left-n.clientWidth/2;o<r&&(o=r),o>a&&(o=a),n.style.left="".concat(o,"px")})),en(this,"setScrubbingContainerSize",(function(){var e=ba(i.thumbAspectRatio,{width:i.player.media.clientWidth,height:i.player.media.clientHeight}),t=e.width,n=e.height;i.elements.scrubbing.container.style.width="".concat(t,"px"),i.elements.scrubbing.container.style.height="".concat(n,"px")})),en(this,"setImageSizeAndOffset",(function(e,t){if(i.usingSprites){var n=i.thumbContainerHeight/t.h;e.style.height=e.naturalHeight*n+"px",e.style.width=e.naturalWidth*n+"px",e.style.left="-".concat(t.x*n,"px"),e.style.top="-".concat(t.y*n,"px")}})),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return Wi(e,[{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?ba(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}]),e}(),wa={insertElements:function(e,t){var i=this;Fn(t)?rr(e,this.media,{src:t}):$n(t)&&t.forEach((function(t){rr(e,i.media,t)}))},change:function(e){var t=this;Kn(e,"sources.length")?(Mr.cancelRequests.call(this),this.destroy.call(this,(function(){t.options.quality=[],ar(t.media),t.media=null,Xn(t.elements.container)&&t.elements.container.removeAttribute("class");var i=e.sources,n=e.type,r=Ui(i,1)[0],a=r.provider,o=void 0===a?ea.html5:a,s=r.src,l="html5"===o?n:"div",c="html5"===o?{}:{src:s};Object.assign(t,{provider:o,type:n,supported:vr.check(n,o,t.config.playsinline),media:nr(l,c)}),t.elements.container.appendChild(t.media),Yn(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),qn(e.poster)||(t.poster=e.poster),t.config.loop.active&&t.media.setAttribute("loop",""),t.config.muted&&t.media.setAttribute("muted",""),t.config.playsinline&&t.media.setAttribute("playsinline","")),sa.addStyleHook.call(t),t.isHTML5&&wa.insertElements.call(t,"source",i),t.config.title=e.title,ma.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&wa.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&&sa.build.call(t),t.isHTML5&&t.media.load(),qn(e.previewThumbnails)||(Object.assign(t.config.previewThumbnails,e.previewThumbnails),t.previewThumbnails&&t.previewThumbnails.loaded&&(t.previewThumbnails.destroy(),t.previewThumbnails=null),t.config.previewThumbnails.enabled&&(t.previewThumbnails=new xa(t))),t.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}};var ka,_a,Aa,Sa,Ca,Ta,Pa=function(){function e(t,i){var n=this;if(Xi(this,e),en(this,"play",(function(){return Hn(n.media.play)?(n.ads&&n.ads.enabled&&n.ads.managerPromise.then((function(){return n.ads.play()})).catch((function(){return Cr(n.media.play())})),n.media.play()):null})),en(this,"pause",(function(){return n.playing&&Hn(n.media.pause)?n.media.pause():null})),en(this,"togglePlay",(function(e){return(Yn(e)?e:!n.playing)?n.play():n.pause()})),en(this,"stop",(function(){n.isHTML5?(n.pause(),n.restart()):Hn(n.media.stop)&&n.media.stop()})),en(this,"restart",(function(){n.currentTime=0})),en(this,"rewind",(function(e){n.currentTime-=Rn(e)?e:n.config.seekTime})),en(this,"forward",(function(e){n.currentTime+=Rn(e)?e:n.config.seekTime})),en(this,"increaseVolume",(function(e){var t=n.media.muted?0:n.volume;n.volume=t+(Rn(e)?e:0)})),en(this,"decreaseVolume",(function(e){n.increaseVolume(-e)})),en(this,"airplay",(function(){vr.airplay&&n.media.webkitShowPlaybackTargetPicker()})),en(this,"toggleControls",(function(e){if(n.supported.ui&&!n.isAudio){var t=dr(n.elements.container,n.config.classNames.hideControls),i=void 0===e?void 0:!e,r=hr(n.elements.container,n.config.classNames.hideControls,i);if(r&&$n(n.config.controls)&&n.config.controls.includes("settings")&&!qn(n.config.settings)&&Gr.toggleMenu.call(n,!1),r!==t){var a=r?"controlshidden":"controlsshown";_r.call(n,n.media,a)}return!r}return!1})),en(this,"on",(function(e,t){xr.call(n,n.elements.container,e,t)})),en(this,"once",(function(e,t){kr.call(n,n.elements.container,e,t)})),en(this,"off",(function(e,t){wr(n.elements.container,e,t)})),en(this,"destroy",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n.ready){var i=function(){document.body.style.overflow="",n.embed=null,t?(Object.keys(n.elements).length&&(ar(n.elements.buttons.play),ar(n.elements.captions),ar(n.elements.controls),ar(n.elements.wrapper),n.elements.buttons.play=null,n.elements.captions=null,n.elements.controls=null,n.elements.wrapper=null),Hn(e)&&e()):(Ar.call(n),Mr.cancelRequests.call(n),sr(n.elements.original,n.elements.container),_r.call(n,n.elements.original,"destroyed",!0),Hn(e)&&e.call(n.elements.original),n.ready=!1,setTimeout((function(){n.elements=null,n.media=null}),200))};n.stop(),clearTimeout(n.timers.loading),clearTimeout(n.timers.controls),clearTimeout(n.timers.resized),n.isHTML5?(sa.toggleNativeControls.call(n,!0),i()):n.isYouTube?(clearInterval(n.timers.buffering),clearInterval(n.timers.playing),null!==n.embed&&Hn(n.embed.destroy)&&n.embed.destroy(),i()):n.isVimeo&&(null!==n.embed&&n.embed.unload().then(i),setTimeout(i,200))}})),en(this,"supports",(function(e){return vr.mime.call(n,e)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=vr.touch,this.media=t,Fn(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||jn(this.media)||$n(this.media))&&(this.media=this.media[0]),this.config=er({},Jr,e.defaults,i||{},function(){try{return JSON.parse(n.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new ra(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",vr),!zn(this.media)&&Xn(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(vr.check().api){var r=this.media.cloneNode(!0);r.autoplay=!1,this.elements.original=r;var a=this.media.tagName.toLowerCase(),o=null,s=null;switch(a){case"div":if(o=this.media.querySelector("iframe"),Xn(o)){if(s=Ur(o.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?ea.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?ea.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=o,this.elements.container.className="",s.search.length){var l=["1","true"];l.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),l.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=l.includes(s.searchParams.get("playsinline")),this.config.youtube.hl=s.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(qn(this.provider)||!Object.values(ea).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=ia;break;case"video":case"audio":this.type=a,this.provider=ea.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=vr.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new la(this),this.storage=new $r(this),this.media.plyr=this,Xn(this.elements.container)||(this.elements.container=nr("div",{tabindex:0}),tr(this.media,this.elements.container)),sa.migrateStyles.call(this),sa.addStyleHook.call(this),ma.setup.call(this),this.config.debug&&xr.call(this,this.elements.container,this.config.events.join(" "),(function(e){n.debug.log("event: ".concat(e.type))})),this.fullscreen=new aa(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&sa.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new va(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return Cr(n.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new xa(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return Wi(e,[{key:"isHTML5",get:function(){return this.provider===ea.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===ea.youtube}},{key:"isVimeo",get:function(){return this.provider===ea.vimeo}},{key:"isVideo",get:function(){return this.type===ia}},{key:"isAudio",get:function(){return this.type===ta}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",get:function(){return Number(this.media.currentTime)},set:function(e){if(this.duration){var t=Rn(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}}},{key:"buffered",get:function(){var e=this.media.buffered;return Rn(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var e=parseFloat(this.config.duration),t=(this.media||{}).duration,i=Rn(t)&&t!==1/0?t:0;return e||i}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(e){var t=e;Fn(t)&&(t=Number(t)),Rn(t)||(t=this.storage.get("volume")),Rn(t)||(t=this.config.volume),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!qn(e)&&this.muted&&t>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(e){var t=e;Yn(t)||(t=this.storage.get("muted")),Yn(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",get:function(){return Number(this.media.playbackRate)},set:function(e){var t=this,i=null;Rn(e)&&(i=e),Rn(i)||(i=this.storage.get("speed")),Rn(i)||(i=this.config.speed.selected);var n=this.minimumSpeed,r=this.maximumSpeed;i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(e,t),i)}(i,n,r),this.config.speed.selected=i,setTimeout((function(){t.media.playbackRate=i}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,qi(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,qi(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(e){var t=this.config.quality,i=this.options.quality;if(i.length){var n=[!qn(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(Rn),r=!0;if(!i.includes(n)){var a=function(e,t){return $n(e)&&e.length?e.reduce((function(e,i){return Math.abs(i-t)<Math.abs(e-t)?i:e})):null}(i,n);this.debug.warn("Unsupported quality option: ".concat(n,", using ").concat(a," instead")),n=a,r=!1}t.selected=n,this.media.quality=n,r&&this.storage.set({quality:n})}}},{key:"loop",get:function(){return Boolean(this.media.loop)},set:function(e){var t=Yn(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}},{key:"source",get:function(){return this.media.currentSrc},set:function(e){wa.change.call(this,e)}},{key:"download",get:function(){var e=this.config.urls.download;return Un(e)?e:this.source},set:function(e){Un(e)&&(this.config.urls.download=e,Gr.setDownloadUrl.call(this))}},{key:"poster",get:function(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null},set:function(e){this.isVideo?sa.setPoster.call(this,e,!1).catch((function(){})):this.debug.warn("Poster can only be set for video")}},{key:"ratio",get:function(){if(!this.isVideo)return null;var e=Pr(Lr.call(this));return $n(e)?e.join(":"):e},set:function(e){this.isVideo?Fn(e)&&Tr(e)?(this.config.ratio=e,Er.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(e,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",get:function(){return Boolean(this.config.autoplay)},set:function(e){var t=Yn(e)?e:this.config.autoplay;this.config.autoplay=t}},{key:"toggleCaptions",value:function(e){Zr.toggle.call(this,e,!1)}},{key:"currentTrack",get:function(){var e=this.captions,t=e.toggled,i=e.currentTrack;return t?i:-1},set:function(e){Zr.set.call(this,e,!1)}},{key:"language",get:function(){return(Zr.getCurrentTrack.call(this)||{}).language},set:function(e){Zr.setLanguage.call(this,e,!1)}},{key:"pip",get:function(){return vr.pip?qn(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Qr:null},set:function(e){if(vr.pip){var t=Yn(e)?e:!this.pip;Hn(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Qr:Kr),Hn(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}}}],[{key:"supported",value:function(e,t,i){return vr.check(e,t,i)}},{key:"loadSprite",value:function(e,t){return Xr(e,t)}},{key:"setup",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;return Fn(t)?n=Array.from(document.querySelectorAll(t)):jn(t)?n=Array.from(t):$n(t)&&(n=t.filter(Xn)),qn(n)?null:n.map((function(t){return new e(t,i)}))}}]),e}();function La(e){e.on("timeupdate",(function(){return function(e){var t,i;if(null!=e&&null!==(t=e.config)&&void 0!==t&&null!==(i=t.mutedPreview)&&void 0!==i&&i.enabled)return;!function(e){var t;if(0===e.currentTime)return;if(null==e||null===(t=e.config)||void 0===t||!t.save_player_position)return;localStorage.setItem("player-progress-".concat(Ea(e)),e.currentTime)}(e)}(e)})),e.on("ready",(function(){return Ma(e)})),e.on("loadeddata",(function(){return Ma(e)}))}function Ea(e){var t,i;return null==e||null===(t=e.config)||void 0===t||null===(i=t.blockAttributes)||void 0===i?void 0:i.id}function Ma(e){var t,i,n;if(null!=e&&null!==(t=e.config)&&void 0!==t&&t.save_player_position&&(null==e||null===(i=e.config)||void 0===i||null===(n=i.mutedPreview)||void 0===n||!n.enabled)){var r=function(e){return parseFloat(localStorage.getItem("player-progress-".concat(Ea(e))))}(e);return e.hls&&r>=0&&e.hls.startLoad(r),e.duration&&(r=Math.min(r,e.duration)),!r||r<1?0:(e.currentTime=r,null!=e&&e.isVimeo&&setTimeout((function(){e.embed.setCurrentTime(r||0)}),0),r)}}Pa.defaults=function(e){return JSON.parse(JSON.stringify(e))}(Jr);var Ia,Oa,Da,za,Na=(null===(ka=window)||void 0===ka||null===(_a=ka.prestoPlayer)||void 0===_a||null===(Aa=_a.i18n)||void 0===Aa?void 0:Aa.hide_chapters)||"Hide Chapters",Ra=(null===(Sa=window)||void 0===Sa||null===(Ca=Sa.prestoPlayer)||void 0===Ca||null===(Ta=Ca.i18n)||void 0===Ta?void 0:Ta.show_chapters)||"Show Chapters",Fa='<button class="plyr__controls__item plyr__control" type="button" data-plyr="chapters">\n<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-list">\n <line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line>\n <line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line>\n <line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>\n</svg>\n<span class="label--pressed plyr__tooltip" role="tooltip">'.concat(Na,'</span>\n<span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(Ra,"</span>\n</button>\n"),Ya='\n<div class="presto-player-toc__wrapper">\n <div class="presto-player-toc__cover" data-player-toc-cover></div>\n <div class="presto-player-toc">\n <div class="presto-player-toc__title">'.concat((null===(Ia=window)||void 0===Ia||null===(Oa=Ia.prestoPlayer)||void 0===Oa||null===(Da=Oa.i18n)||void 0===Da?void 0:Da.chapters)||"Chapters",'</div>\n <div class="presto-player-toc__list" data-player-toc></div>\n </div>\n</div>');function Ha(e){var t,i,n,r,a,o,s,l,c,h,d,u,p,f=0,g={},m=null,v=0;if(r=e.detail.plyr,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!e.length)return e;var t={};return e.forEach((function(e){var i,n=e.time.split(":");n.length>1&&(i=60*parseInt(n[0])),t[parseInt(n[1])+parseInt(i)]=e})),t}((null===(t=r)||void 0===t||null===(i=t.config)||void 0===i?void 0:i.chapters)||[]),"html5"!==r.provider||r.duration){if(n&&Object.keys(n).length){a=jQuery(r.elements.container).closest(".presto-player__wrapper").find(".plyr");var y=(p=jQuery(r.elements.controls)).find(".plyr__time");y=y.length?y:p.find(".plyr__progress__container"),(c=a.find('[data-plyr="chapters"]')).length||(c=jQuery(Fa).insertAfter(y)),(s=a.find(".presto-player-toc__wrapper")).length||(s=jQuery(Ya).appendTo(a)),h=s.find("[data-player-toc-cover]"),l=s.find("[data-player-toc]"),o=a.find(".plyr__progress__container");var b,x=jQuery('<div class="presto-player__chapters"></div>').appendTo(o);d=jQuery('<div class="presto-player__chapter-markers"></div>').appendTo(x),b=0,l.find(".presto-player-toc__chapter").length||(Object.keys(n).forEach((function(e){b++;var t=n[e],i=jQuery(function(e){var t=e.name,i=void 0===t?"Untitled":t,n=e.order,r=void 0===n?1:n,a=e.highlight;return'<div class="presto-player-toc__chapter '.concat(void 0!==a&&a?"is-highlighted":"",'" data-chapter-item>\n \n <span class="presto-player-toc__order">\n ').concat(r,'\n </span>\n <span class="presto-player-toc__name">\n ').concat(i,"\n </div>\n</div>")}({name:t.title,order:b})).appendTo(l);i.data("presto-player-timestamp",e),g[e]=i,i.on("click",(function(){r.currentTime=parseFloat(e),r.play(),S(!1)}))})),u=s.find("[data-chapter-item]")),A(),c.off("click"),c.on("click",S),_(),r.off("timeupdate"),r.on("timeupdate",_),m=window.setInterval(k,100),h.off("click"),h.on("click",(function(){return S(!1)})),l.off("mouseleave"),l.on("mouseleave",w)}}else r.on("loadedmetadata",Ha);function w(){if(r.playing){var e=setTimeout((function(){S(!1),l.off("mouseleave",w)}),2e3);l.on("mouseenter",(function(){clearTimeout(e)}))}}function k(){v++,r.duration&&(A(),window.clearInterval(m)),v>50&&window.clearInterval(m)}function _(){f=r.currentTime;var e=Object.keys(n).filter((function(e){return e<=f})).map((function(e){return parseInt(e,10)})),t=Math.max.apply(Math,qi(e));u&&u.removeClass("is-highlighted"),jQuery(g[t||0]).addClass("is-highlighted")}function A(){r.duration&&(Object.keys(n).forEach((function(e){if(parseInt(e)&&!d.find("[data-timestamp=".concat(e,"]")).length){var t=n[e],i=parseInt(e)/r.duration*100,a=jQuery(function(e){var t=e.position,i=void 0===t?0:t,n=e.name,r=void 0===n?"":n;return'<div class="presto-player-progress__marker plyr__controls__item plyr__control" style="left: '.concat(i,'%" data-timeline-marker>\n <span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(r,"</span>\n </div>")}({position:i,name:"".concat(t.title)})).prependTo(d);a.attr("data-timestamp",e),a.data("timestamp",e),a.on("click",(function(t){r.currentTime=parseInt(e),r.play()}))}})),s.find("[data-timeline-marker]"))}function S(e){void 0!==$i(e)?s.toggleClass("is-showing",e):s.toggleClass("is-showing")}}function $a(e){za=e,jQuery(za.elements.container).closest(".presto-player__wrapper"),za.on("ready",Ha),za.on("controlshidden",ja),za.on("controlsshown",Xa)}function ja(e){var t,i,n;jQuery(null==e||null===(t=e.detail)||void 0===t||null===(i=t.plyr)||void 0===i||null===(n=i.elements)||void 0===n?void 0:n.container).closest(".presto-player__wrapper").addClass("presto-player--hide-controls")}function Xa(e){var t,i,n;jQuery(null==e||null===(t=e.detail)||void 0===t||null===(i=t.plyr)||void 0===i||null===(n=i.elements)||void 0===n?void 0:n.container).closest(".presto-player__wrapper").removeClass("presto-player--hide-controls")}function Ba(e){var t,i;return Hi(Hi(Hi({video_current_time:parseInt((null==e?void 0:e.currentTime)||0),video_provider:(null==e?void 0:e.provider)||"html5"},null!=e&&e.duration?{video_duration:parseInt(null==e?void 0:e.duration)}:{}),null!=e&&e.source?{video_url:null==e?void 0:e.source}:{}),null!=e&&null!==(t=e.config)&&void 0!==t&&t.title?{video_title:null==e||null===(i=e.config)||void 0===i?void 0:i.title}:{})}function Wa(e){var t;null===(t=window)||void 0===t||t.gtag("event","Play",Ba(e))}function Va(e){var t;null===(t=window)||void 0===t||t.gtag("event","Pause",Ba(e))}function Ga(e){var t;null===(t=window)||void 0===t||t.gtag("event","Player Load",Ba(e))}var Ua,qa={25:!1,50:!1,75:!1,100:!1};function Za(e){if(e.currentTime){var t=parseFloat(e.currentTime)/parseFloat(e.duration)*100;Object.keys(qa).forEach((function(i){var n;!qa[i]&&t>=parseInt(i)&&(qa[i]=!0,null===(n=window)||void 0===n||n.gtag("event","".concat(i," Percent Played"),Ba(e)))}))}}var Ja="presto-player.analytics",Qa="";function Ka(e){!function(e){var t,i,n,r,a,o,s,l;if(!Qa)return;var c=new FormData;if(c.append("action","presto_player_progress"),c.append("duration",null==e?void 0:e.video_current_time),c.append("video_id",null===(t=Ua)||void 0===t||null===(i=t.config)||void 0===i?void 0:i.id),c.append("nonce",Qa),!(null!==(n=window)&&void 0!==n&&null!==(r=n.prestoPlayer)&&void 0!==r&&r.debug_navigator)){var h,d;return void navigator.sendBeacon(null===(h=window)||void 0===h||null===(d=h.prestoPlayer)||void 0===d?void 0:d.ajaxurl,c)}jQuery.ajax({type:"POST",url:null===(a=window)||void 0===a||null===(o=a.prestoPlayer)||void 0===o?void 0:o.ajaxurl,dataType:"json",cache:!1,data:{action:"presto_player_progress",duration:null==e?void 0:e.video_current_time,video_id:null===(s=Ua)||void 0===s||null===(l=s.config)||void 0===l?void 0:l.id,nonce:Qa}})}(function(e){var t,i;return Hi(Hi(Hi({video_current_time:parseInt((null==e?void 0:e.currentTime)||0),video_provider:(null==e?void 0:e.provider)||"html5"},null!=e&&e.duration?{video_duration:parseInt(null==e?void 0:e.duration)}:{}),null!=e&&e.source?{video_url:null==e?void 0:e.source}:{}),null!=e&&null!==(t=e.config)&&void 0!==t&&t.title?{video_title:null==e||null===(i=e.config)||void 0===i?void 0:i.title}:{})}(e))}function eo(e){var t,i;null!==(t=window)&&void 0!==t&&null!==(i=t.prestoPlayer)&&void 0!==i&&i.isPremium&&(!function(){var e;null!==(e=window)&&void 0!==e&&e.gtag&&(wp.hooks.addAction("presto.playerPlay","presto-player",Wa),wp.hooks.addAction("presto.playerPause","presto-player",Va),wp.hooks.addAction("presto.playerReady","presto-player",Ga),wp.hooks.addAction("presto.playerTimeUpdate","presto-player",Za))}(),(Ua=e).config.analytics&&(wp.hooks.hasAction("presto.nonceRefreshed",Ja)||wp.hooks.addAction("presto.nonceRefreshed",Ja,(function(e){Qa=e})),wp.hooks.hasAction("presto.playerPlay",Ja)||wp.hooks.addAction("presto.playerPlay",Ja,Ka),wp.hooks.hasAction("presto.playerEnded",Ja)||wp.hooks.addAction("presto.playerEnded",Ja,Ka),wp.hooks.hasAction("presto.playerHidden",Ja)||wp.hooks.addAction("presto.playerHidden",Ja,Ka),wp.hooks.hasAction("presto.playerPause",Ja)||wp.hooks.addAction("presto.playerPause",Ja,Ka),wp.hooks.hasAction("presto.playerSeeked",Ja)||wp.hooks.addAction("presto.playerSeeked",Ja,Ka)))}var to=function(e){e.on("ready",(function(){var t,i,n,r;null==e||null===(t=e.config)||void 0===t||!t.logo||null!=e&&null!==(i=e.config)&&void 0!==i&&i.logo_added||(jQuery('<img src="'.concat(null==e||null===(n=e.config)||void 0===n?void 0:n.logo,'" class="presto-player__logo is-bottom-right" part="logo">')).insertBefore(null==e||null===(r=e.elements)||void 0===r?void 0:r.controls),e.config.logo_added=!0)}))};function io(e){var t;null!=e&&null!==(t=e.config)&&void 0!==t&&t.poster&&(e.poster=e.config.poster)}var no=function(e){e.on("ready",(function(){ro("Ready",e)})),e.on("play",(function(){ro("Play",e)})),e.on("playing",(function(){ro("Playing",e)})),e.on("pause",(function(){ro("Pause",e)})),e.on("ended",(function(){ro("Ended",e)})),e.on("seeked",(function(){ro("Seeked",e)})),e.on("timeupdate",(function(){ro("TimeUpdate",e)})),e.on("enterfullscreen",(function(){ro("EnterFullScreen",e)})),e.on("exitfullscreen",(function(){ro("ExitFullScreen",e)})),document.addEventListener("visibilitychange",(function(){ro("hidden"===document.visibilityState?"Hidden":"Visible",e)})),e.on("statechange",(function(t){var i;switch(null==t||null===(i=t.detail)||void 0===i?void 0:i.code){case 0:ro("Ended",e);break;case 1:ro("Play",e);break;case 2:ro("Pause",e)}}))};function ro(e,t){window.wp.hooks.doAction("presto.player".concat(e),t)}var ao,oo=Date.now(),so=function(e){var t,i;if(e.automations){(null===(i=null===(t=null===window||void 0===window?void 0:window.wp)||void 0===t?void 0:t.hooks)||void 0===i?void 0:i.hasAction("presto.nonceRefreshed","presto-player.progress"))||window.wp.hooks.addAction("presto.nonceRefreshed","presto-player.progress",(function(e){ao=e})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerTimeUpdate","presto-player",r),null===window||void 0===window||window.wp.hooks.addAction("presto.playerEnded","presto-player",(function(e){return r(e,100)}));var n={0:!1,10:!1,20:!1,30:!1,40:!1,50:!1,60:!1,70:!1,80:!1,90:!1,100:!1}}function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ao&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.ajaxProgress)&&(i||(i=parseFloat(e.currentTime)/parseFloat(e.duration)*100),e.watched=e.watched||{},Object.keys(n).forEach((function(t){var n,r,a,o,s,l,c,h,d,u=parseInt(t);if(!e.watched[u]&&i>=u){e.watched[u]=!0;var p=new FormData;if(p.append("action","presto_player_progress_percent"),p.append("id",null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.id),p.append("percent",u.toString()),p.append("visit_time",oo.toString()),p.append("nonce",ao),(null===(r=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===r?void 0:r.debug)&&console.log("".concat(u," percent watched.")),null===(a=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===a?void 0:a.debug_navigator)window.jQuery.ajax({type:"POST",url:null===(h=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===h?void 0:h.ajaxurl,dataType:"json",cache:!1,data:{action:"presto_player_progress_percent",id:null===(d=null==e?void 0:e.config)||void 0===d?void 0:d.id,visit_time:oo,percent:u,nonce:ao}});else{var f=navigator.sendBeacon(null===(o=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===o?void 0:o.ajaxurl,p);(null===(s=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===s?void 0:s.debug)&&(f?console.log("Successfully queued progress:",{id:null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.id,percent:u,visit_time:oo,nonce:ao}):console.log("Failed to queue progress",{id:null===(c=null==e?void 0:e.config)||void 0===c?void 0:c.id,percent:u,visit_time:oo,nonce:ao}))}}})))}},lo=!1,co=!1;function ho(e){return e.status>=200&&e.status<300?Promise.resolve(e):Promise.reject(new Error(e.statusText))}var uo=function(e){var t,i;(e.config.analytics||e.config.automations)&&(null===(i=null===(t=null===window||void 0===window?void 0:window.wp)||void 0===t?void 0:t.hooks)||void 0===i||i.addAction("presto.playerPlaying","presto-player",(function(){null===window||void 0===window||window.wp.hooks.doAction("presto.playerGetNonce")})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerGetNonce","presto-player",(function(){var e;lo||co||(co=!0,fetch("".concat(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.ajaxurl,"?action=presto_refresh_progress_nonce")).then(ho).then((function(e){return e.json()})).then((function(e){var t=e.data;null===window||void 0===window||window.wp.hooks.doAction("presto.nonceRefreshed",t),lo=!0})).catch((function(e){console.log("Request failed",e)})).finally((function(){co=!1})))})))},po=function(e){var t=window.navigator.userAgent;if(!!t.match(/iPad/i)||!!t.match(/iPhone/i)){var i=function(e,t){for(var i,n=null==e||null===(i=e.elements)||void 0===i?void 0:i.container.getRootNode().host;(null!=n?n.nodeType:void 0)===Node.ELEMENT_NODE&&"BODY"!==n.tagName&&"HTML"!==n.tagName;)t?n.classList.add("presto-player-fullscreen-open"):n.classList.remove("presto-player-fullscreen-open"),n=n.parentNode};wp.hooks.addAction("presto.playerEnterFullScreen","presto-player",(function(){var t;null!=e&&null!==(t=e.fullscreen)&&void 0!==t&&t.active&&i(e,!0)})),wp.hooks.addAction("presto.playerExitFullScreen","presto-player",(function(){var t;null!=e&&null!==(t=e.fullscreen)&&void 0!==t&&t.active||i(e,!1)}))}},fo=function(){var e,t=(e=w.a.mark((function e(t){var n,r,a,o;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("ResizeObserver"in window!=0){e.next=5;break}return e.next=3,i.e(0).then(i.bind(null,46));case 3:a=e.sent,window.ResizeObserver=a.ResizeObserver;case 5:if(o=new ResizeObserver((function(e){var t,i=Qi(e);try{for(i.s();!(t=i.n()).done;){var n=t.value,r=n.contentRect;jQuery(n.target).find(".plyr__menu__container").css({maxHeight:"".concat(r.height-48,"px")})}}catch(e){i.e(e)}finally{i.f()}})),null!=t&&null!==(n=t.elements)&&void 0!==n&&n.container){e.next=8;break}return e.abrupt("return");case 8:o.observe(null==t||null===(r=t.elements)||void 0===r?void 0:r.container),t.on("playing",(function(){var e,i,n=null==t||null===(e=t.elements)||void 0===e?void 0:e.container.getBoundingClientRect();jQuery(null==t||null===(i=t.elements)||void 0===i?void 0:i.container).find(".plyr__menu__container").css({maxHeight:"".concat(n.height-48,"px")})}));case 10:case"end":return e.stop()}}),e)})),function(){var t=this,i=arguments;return new Promise((function(n,r){var a=e.apply(t,i);function o(e){ji(a,n,r,o,s,"next",e)}function s(e){ji(a,n,r,o,s,"throw",e)}o(void 0)}))});return function(e){return t.apply(this,arguments)}}();function go(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=Hi(Hi(Hi({},r),{iconUrl:"".concat(null===(t=window)||void 0===t||null===(n=t.prestoPlayer)||void 0===n?void 0:n.plugin_url,"img/sprite.svg")}),{chapters:(null==r?void 0:r.chapters)||[],controls:(null==r?void 0:r.controls)||[],settings:Object.keys((null==r?void 0:r.settings)||{}).length?r.settings:{}}),o=new Pa(e,a);return"undefined"!=typeof learndash_video_data&&i.e(5).then(i.bind(null,47)).then((function(e){(0,e.default)(o)})),"undefined"!=typeof _tutorobject&&i.e(6).then(i.bind(null,48)).then((function(e){(0,e.default)(o)})),no(o),po(o),fo(o),to(o),io(o),$a(o),prestoPlayer.isAdmin||(uo(o),so(a),La(o),eo(o)),o}function mo(e){return"m3u8"===function(e){return e.split(/[#?]/)[0].split(".").pop().trim()}(e)}var vo=function(e){var t=e.config,n=e.selector,r=e.src,a=e.preload;return r&&mo(r)?i.e(4).then(i.bind(null,49)).then((function(e){return(0,e.default)({config:t,selector:n,src:r,preload:a})})):new Promise((function(e){return e(new go(n,Hi({},t)))}))};var yo=function(e,t){if(t){var i=document.createElement("style");e.shadowRoot.append(i),i.appendChild(document.createTextNode(t))}},bo=function(e){Object(c.a)(k,e);var t,a,h,d,u,p,f,g,m,v,y,b,x=Li(k);function k(){var e;return Object(o.a)(this,k),(e=x.call(this)).__registerHost(),si(Object(l.a)(e)),e.previouslyPlaying=!1,e}return Object(s.a)(k,[{key:"play",value:(b=Object(r.a)(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.shouldLazyLoad=!1,e.abrupt("return",this.player.play());case 2:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"restart",value:(y=Object(r.a)(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.shouldLazyLoad=!1,e.abrupt("return",this.player.restart());case 2:case"end":return e.stop()}}),e,this)}))),function(){return y.apply(this,arguments)})},{key:"pause",value:(v=Object(r.a)(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.pause());case 1:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"stop",value:(m=Object(r.a)(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.stop());case 1:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{key:"fullscreenToggle",value:(g=Object(r.a)(w.a.mark((function e(t){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.fullscreen.toggle(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"on",value:(f=Object(r.a)(w.a.mark((function e(t,i){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.on(t,i));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"off",value:(p=Object(r.a)(w.a.mark((function e(t,i){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.off(t,i));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"handleStickyChange",value:function(){var e=this;(function(e){for(var t=[];e.parentNode&&"body"!=e.parentNode.nodeName.toLowerCase();)e=e.parentNode,t.push(e);return t})(this.el).forEach((function(t){t.classList.toggle("presto-sticky-parent",e.isSticky)}))}},{key:"getConfig",value:function(){return Object.assign(Object.assign({},function(e){var t,i,r,a,o,s=e.preset,l=void 0===s?{}:s,c=e.chapters,h=e.branding,d=e.src,u=e.analytics,p=e.automations,f=e.autoplay,g=e.blockAttributes,m=void 0===g?{}:g,v=e.provider,y=void 0===v?"":v,b=e.provider_video_id,x=void 0===b?"":b,w=e.youtube,k=e.type,_=e.isAdmin,A=e.i18n,S=e.storage,C=void 0===S?{enabled:!_,key:"presto-player-".concat(l.id)}:S,T=["settings"],P=Object(n.a)(["youtube","vimeo"].includes(y)?["pip"]:[]),L=["play-large","rewind","play","fast-forward","progress","current-time","mute","volume","captions","settings","pip","fullscreen"].filter((function(e){return((null==l?void 0:l[e])||T.includes(e))&&!P.includes(e)}));(null===(t=null==m?void 0:m.mutedPreview)||void 0===t?void 0:t.enabled)&&(C={enabled:!1});var E=Object.assign(Object.assign(Object.assign(Object.assign({id:null==m?void 0:m.id,title:(null==m?void 0:m.title)||"",blockAttributes:Object.assign(Object.assign({},m),{type:k}),src:d,ajaxProgress:!0,analytics:u,automations:p,mutedPreview:{enabled:null===(i=null==m?void 0:m.mutedPreview)||void 0===i?void 0:i.enabled},chapters:c,controls:L,settings:["captions","quality","loop"].concat(Object(n.a)((null==l?void 0:l.speed)?["speed"]:[])),hideControls:null==l?void 0:l.auto_hide,captions:{active:null==l?void 0:l.captions_enabled,language:"auto",update:!1},logo:null==h?void 0:h.logo,logo_width:null==h?void 0:h.logo_width,hide_logo:null==l?void 0:l.hide_logo,lazy_load_youtube:null==l?void 0:l.lazy_load_youtube,save_player_position:!!(null==l?void 0:l.save_player_position),sticky_scroll:null==l?void 0:l.sticky_scroll,play_video_viewport:null==l?void 0:l.play_video_viewport,autoplay:!(!f||(null===(r=window.wp)||void 0===r?void 0:r.blocks)),playsInline:!(!(null==m?void 0:m.playsInline)||(null===(a=window.wp)||void 0===a?void 0:a.blocks))},y?{provider:y}:{}),x?{provider_video_id:x}:{}),(null==m?void 0:m.poster)?{poster:m.poster}:{}),{invertTime:!0,storage:C,resetOnEnd:!!(null==l?void 0:l.reset_on_end),vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!!(null==w?void 0:w.noCookie)},tooltips:{controls:!0,seek:!0},i18n:A});return(null===(o=null===window||void 0===window?void 0:window.wp)||void 0===o?void 0:o.hooks)&&(E=window.wp.hooks.applyFilters("presto.playerSettings",E)),E}({preset:this.preset,chapters:this.chapters,branding:this.branding,analytics:!!this.analytics,automations:!!this.automations,autoplay:!this.isAdmin&&!!this.autoplay,blockAttributes:this.blockAttributes,provider:this.provider,youtube:this.youtube,provider_video_id:this.provider_video_id,i18n:this.i18n})),this.iconUrl?{iconUrl:this.iconUrl}:{})}},{key:"getPlayerData",value:function(){return{selector:this.playerEl,src:this.src||"",preload:this.preload,provider:this.provider,config:this.getConfig(),isAdmin:this.isAdmin}}},{key:"createPlayer",value:(u=Object(r.a)(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vo(this.getPlayerData());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"handlePlayerElementChange",value:function(){!function(e){var t=e.src,i=e.el,n=e.preload,r=e.currentTime;if(!i.getAttribute("hls_loaded")&&["metadata","none"].includes(n)&&mo(t)){if(r>0)return i.style.height=null,i.style.paddingBottom=null,void i.setAttribute("hls_loaded","1");i.style.height="0px",i.style.paddingBottom="56.25%"}}({src:this.src,el:this.playerEl,preload:this.preload,currentTime:this.currentTime})}},{key:"handleMutedPreview",value:function(e){var t,i,n,r,a,o,s,l=this;this.player&&!this.isAdmin&&(!e&&this.preset.captions_enabled&&setTimeout((function(){var e;l.player.toggleCaptions(null===(e=null==l?void 0:l.preset)||void 0===e?void 0:e.captions_enabled)}),0),(null===(n=null===(i=null===(t=this.originalConfig)||void 0===t?void 0:t.blockAttributes)||void 0===i?void 0:i.mutedPreview)||void 0===n?void 0:n.enabled)&&function(e){var t=e.player,i=e.mutedPreview,n=e.captions,r=e.progress,a=e.savePosition,o=e.onPlay,s=window.navigator.userAgent;if(!s.match(/iPad/i)&&!s.match(/iPhone/i)){t.config.mutedPreview.enabled=i,t.muted=i,t.loop=i,t.config.ajaxProgress=!i&&r,t.config.save_player_position=!i&&a;try{t.toggleCaptions(!!i&&!!n)}catch(e){}return setTimeout((function(){Ma(t)||t.restart(),setTimeout((function(){t.muted=i,o()}),0)}),0),t}console.log("ios device, do not do muted autoplay")}({player:this.player,mutedPreview:this.mutedPreview,captions:!!(null===(a=null===(r=this.blockAttributes)||void 0===r?void 0:r.mutedPreview)||void 0===a?void 0:a.captions),progress:null===(o=this.originalConfig)||void 0===o?void 0:o.ajaxProgress,savePosition:null===(s=this.originalConfig)||void 0===s?void 0:s.save_player_position,onPlay:function(){return l.play()}}))}},{key:"onPlayerReady",value:function(){var e,t,i=this;this.observer&&(this.observer.disconnect(),this.observer.observe(this.el)),this.currentTime=this.player.currentTime,this.duration=this.player.duration,this.mutedPreview=null===(t=null===(e=this.blockAttributes)||void 0===e?void 0:e.mutedPreview)||void 0===t?void 0:t.enabled,this.player.on("timeupdate loadedmetadata",(function(){i.currentTime=i.player.currentTime,i.duration=i.player.duration})),this.player.on("playing",(function(){return i.playClass="presto-player--playing"})),this.player.on("pause",(function(){return i.playClass="presto-player--paused"})),this.player.on("ended",(function(){return i.playClass="presto-player--ended"}))}},{key:"handlePlayerEvents",value:function(e){var t=this;e.on("ready",(function(e){t.player=e.detail.plyr,t.onPlayerReady()}))}},{key:"handleLazyLoadChange",value:function(){var e=this;"youtube"!==this.provider||this.shouldLazyLoad||this.isAdmin||setTimeout((function(){e.onReload("play")}),50)}},{key:"shouldLazyLoadVideo",value:function(){var e,t,i;return"youtube"===this.provider&&!this.autoplay&&!(null===(t=null===(e=this.blockAttributes)||void 0===e?void 0:e.mutedPreview)||void 0===t?void 0:t.enabled)&&!!(null===(i=this.preset)||void 0===i?void 0:i.lazy_load_youtube)}},{key:"componentWillLoad",value:function(){var e,t,i=null===(e=this.el.children)||void 0===e?void 0:e[0];i&&i.classList&&i.classList.contains("presto-iframe-fallback-container")&&i.remove(),this.shouldLazyLoad=this.shouldLazyLoadVideo(),this.i18n=null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.i18n,this.originalConfig||(this.originalConfig=this.getConfig()),this.trackIntersection()}},{key:"componentDidLoad",value:(d=Object(r.a)(w.a.mark((function e(){var t=this;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout((function(){t.initialize()}),0);case 1:case"end":return e.stop()}}),e)}))),function(){return d.apply(this,arguments)})},{key:"initialize",value:(h=Object(r.a)(w.a.mark((function e(){var t;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createPlayer();case 2:return t=e.sent,this.handlePlayerEvents(t),this.syncVideoHeight(),yo(this.el,this.css),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"onReload",value:(a=Object(r.a)(w.a.mark((function e(t){var i,n=this;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initialize();case 2:i=e.sent,"play"==t&&i.on("ready",(function(){n.play(),i.muted=!0,i.muted=!1,i.off("ready",n.play)}));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"syncVideoHeight",value:(t=Object(r.a)(w.a.mark((function e(){var t,n=this;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("ResizeObserver"in window!=0){e.next=5;break}return e.next=3,i.e(0).then(i.bind(null,46));case 3:t=e.sent,window.ResizeObserver=t.ResizeObserver;case 5:new ResizeObserver((function(){n.isSticky||(n.videoHeight=n.el.getBoundingClientRect().height)})).observe(this.el);case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"playVideoOnlyInViewport",value:function(){var e;!this.isAdmin&&(null===(e=this.preset)||void 0===e?void 0:e.play_video_viewport)&&this.player&&("visible"===document.visibilityState?this.observer.observe(this.el):(this.player.playing&&(this.previouslyPlaying=!0),this.pause(),this.observer.disconnect()))}},{key:"trackIntersection",value:function(){var e=this;this.observer=new IntersectionObserver((function(t){e.handleVisibilityIntersection(null==t?void 0:t[0])})),this.observer.observe(this.el)}},{key:"handleVisibilityIntersection",value:function(e){e&&(this.handleStickyScroll(e),this.handleVisibilityPlayChange(e))}},{key:"handleStickyScroll",value:function(e){var t,i,n=this;if(null===(t=this.preset)||void 0===t?void 0:t.sticky_scroll)if(this.isAdmin||this.mutedPreview||!(null===(i=null==this?void 0:this.player)||void 0===i?void 0:i.playing))this.isSticky=!1;else{var r=e.boundingClientRect;if(this.isSticky=r.height<-r.top,"visible"===document.visibilityState&&this.isSticky&&this.player){var a=function e(){window.removeEventListener("scroll",e),n.player.paused&&(n.isSticky=!1)};this.player.once("pause",(function(){window.addEventListener("scroll",a)}))}}}},{key:"handleVisibilityPlayChange",value:function(e){var t;if(!this.isAdmin&&(null===(t=this.preset)||void 0===t?void 0:t.play_video_viewport)&&(!this.player&&this.originalConfig.autoplay&&(this.previouslyPlaying=!0,this.autoplay=!!(null==e?void 0:e.isIntersecting)),this.player))return(null==e?void 0:e.isIntersecting)?(this.originalConfig.autoplay&&(this.autoplay=!0),this.previouslyPlaying&&this.play(),void(this.previouslyPlaying=!1)):void("visible"===document.visibilityState&&this.isSticky||(this.player.playing&&(this.previouslyPlaying=!0),this.pause()))}},{key:"renderMutedOverlay",value:function(){var e,t=this;if(this.player&&this.mutedPreview&&!this.isAdmin)return dt("presto-muted-overlay",{mutedOverlay:null===(e=this.player.config.blockAttributes)||void 0===e?void 0:e.mutedOverlay,onPlayVideo:function(){t.mutedPreview=!1,t.play()}})}},{key:"renderVideo",value:function(){var e,t=this;switch(this.provider){case"vimeo":return dt("presto-vimeo",{player:this.player,getRef:function(e){return t.playerEl=e},poster:this.poster,src:this.src});case"youtube":return dt("presto-youtube",{onReload:function(e){return t.onReload(null==e?void 0:e.detail)},player:this.player,getRef:function(e){return t.playerEl=e},lazyLoad:this.shouldLazyLoad,poster:this.poster,src:this.src});case"bunny":return dt("presto-bunny",{thumbnail:null===(e=null==this?void 0:this.bunny)||void 0===e?void 0:e.thumbnail,getRef:function(e){return t.playerEl=e},player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks});default:return dt("presto-video",{getRef:function(e){return t.playerEl=e},player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks})}}},{key:"renderCTA",value:function(){var e,t=this;if((null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.isPremium)&&!this.isAdmin)return dt("presto-cta-overlay",{direction:this.direction,player:this.player,preset:this.preset,i18n:this.i18n,onPlayVideo:function(){t.mutedPreview=!1,t.play()},onRewatchVideo:function(){t.mutedPreview=!1},currentTime:this.currentTime,duration:this.duration})}},{key:"renderEmailOverlay",value:function(){var e,t,i=this;if((null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.isPremium)&&!this.isAdmin&&!(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.logged_in))return dt("presto-email-overlay",{direction:this.direction,player:this.player,preset:this.preset,videoId:this.video_id,i18n:this.i18n,onPlayVideo:function(){i.mutedPreview=!1,i.play()},currentTime:this.currentTime,duration:this.duration})}},{key:"renderActionBar",value:function(){var e,t;if(null===(t=null===(e=this.preset)||void 0===e?void 0:e.action_bar)||void 0===t?void 0:t.enabled)return dt("presto-action-bar",{config:this.preset.action_bar,currentTime:this.currentTime,duration:this.duration,youtube:this.youtube})}},{key:"stickyPositionClass",value:function(){var e,t;return this.isSticky?(null===(e=this.preset)||void 0===e?void 0:e.sticky_scroll_position)?"presto-sticky--".concat(null===(t=this.preset)||void 0===t?void 0:t.sticky_scroll_position.replace(/\s+/g,"-")):"presto-sticky--bottom-right":""}},{key:"render",value:function(){var e,t,i,n,r;return dt(pt,{style:{height:this.isSticky?"".concat(this.videoHeight,"px"):"auto"}},dt("div",{part:"wrapper",dir:this.direction,class:"presto-player__wrapper fitvidsignore\n presto-video-id-".concat(this.video_id,"\n ").concat(this.isSticky?"presto-sticky":"","\n ").concat(this.stickyPositionClass(),"\n ").concat("rtl"===this.direction?"rtl":"","\n ").concat(!!(null===(e=this.preset)||void 0===e?void 0:e.skin)&&"skin-".concat(null===(t=this.preset)||void 0===t?void 0:t.skin),"\n ").concat((null===(i=this.preset)||void 0===i?void 0:i.hide_youtube)?"hide-youtube-ui":"","\n ").concat((null===(n=this.preset)||void 0===n?void 0:n.caption_style)?"caption-style-".concat(null===(r=this.preset)||void 0===r?void 0:r.caption_style):"","\n ").concat(this.mutedPreview?"is-muted-overlay":"","\n ").concat(this.playClass?this.playClass:"")},dt("div",null,dt("slot",{name:"player-start"}),this.renderCTA(),this.renderEmailOverlay(),dt("slot",{name:"player-before-video"}),this.renderVideo(),dt("slot",{name:"player-after-video"}),this.renderActionBar(),this.renderMutedOverlay(),dt("slot",{name:"player-end"}))))}},{key:"el",get:function(){return this}}],[{key:"watchers",get:function(){return{isSticky:["handleStickyChange"],playerEl:["handlePlayerElementChange"],currentTime:["handlePlayerElementChange"],mutedPreview:["handleMutedPreview"],shouldLazyLoad:["handleLazyLoadChange"]}}},{key:"style",get:function(){return'@charset "UTF-8";@keyframes plyr-progress{to{background-position:var(--plyr-progress-loading-size, 25px) 0}}@keyframes plyr-popup{0%{opacity:0.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:var(--plyr-font-family, inherit);font-variant-numeric:tabular-nums;font-weight:var(--plyr-font-weight-regular, 400);line-height:var(--plyr-line-height, 1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow 0.3s ease;z-index:0}.plyr video,.plyr audio,.plyr iframe{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui *::after,.plyr--full-ui *::before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:var(--plyr-badge-background, #4a5464);border-radius:var(--plyr-badge-border-radius, 2px);color:var(--plyr-badge-text-color, #fff);font-size:var(--plyr-font-size-badge, 9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in 0.3s ease;bottom:0;display:none;font-size:var(--plyr-font-size-small, 13px);left:0;padding:var(--plyr-control-spacing, 10px);position:absolute;text-align:center;transition:transform 0.4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width: 480px){.plyr__captions{font-size:var(--plyr-font-size-base, 15px);padding:calc(var(--plyr-control-spacing, 10px) * 2)}}@media (min-width: 768px){.plyr__captions{font-size:var(--plyr-font-size-large, 18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 10px) * -4))}.plyr__caption{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));border-radius:2px;box-decoration-break:clone;color:var(--plyr-captions-text-color, #fff);line-height:185%;padding:0.2em 0.5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:transparent;border:0;border-radius:var(--plyr-control-radius, 3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:calc(var(--plyr-control-spacing, 10px) * 0.7);position:relative;transition:all 0.3s ease}.plyr__control svg{display:block;fill:currentColor;height:var(--plyr-control-icon-size, 18px);pointer-events:none;width:var(--plyr-control-icon-size, 18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,.plyr__control.plyr__control--pressed .label--not-pressed{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 calc(var(--plyr-control-spacing, 10px) / 2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time{padding-left:0}.plyr__controls:empty{display:none}.plyr [data-plyr=captions],.plyr [data-plyr=pip],.plyr [data-plyr=airplay],.plyr [data-plyr=fullscreen]{display:none}.plyr--captions-enabled [data-plyr=captions],.plyr--pip-supported [data-plyr=pip],.plyr--airplay-supported [data-plyr=airplay],.plyr--fullscreen-enabled [data-plyr=fullscreen]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform 0.3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup 0.2s ease;background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));border-radius:4px;bottom:100%;box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-menu-color, #4a5464);font-size:var(--plyr-font-size-base, 15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)}.plyr__menu__container::after{border:var(--plyr-menu-arrow-size, 4px) solid transparent;border-top-color:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));content:"";height:0;position:absolute;right:calc(((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7)) - (var(--plyr-menu-arrow-size, 4px) / 2));top:100%;width:0}.plyr__menu__container [role=menu]{padding:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:var(--plyr-menu-color, #4a5464);display:flex;font-size:var(--plyr-font-size-menu, var(--plyr-font-size-small, 13px));padding-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control::after{border:var(--plyr-menu-item-arrow-size, 4px) solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4)}.plyr__menu__container .plyr__control--forward::after{border-left-color:var(--plyr-menu-arrow-color, #728197);right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:var(--plyr-font-weight-regular, 400);margin:calc(var(--plyr-control-spacing, 10px) * 0.7);margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);position:relative;width:calc(100% - (calc(var(--plyr-control-spacing, 10px) * 0.7) * 2))}.plyr__menu__container .plyr__control--back::after{border-right-color:var(--plyr-menu-arrow-color, #728197);left:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back::before{background:var(--plyr-menu-back-border-color, #dcdfe5);box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color, #fff);content:"";height:1px;left:0;margin-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container .plyr__control[role=menuitemradio]::before,.plyr__menu__container .plyr__control[role=menuitemradio]::after{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0, 0, 0, 0.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform 0.3s ease, opacity 0.3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:var(--plyr-control-toggle-checked-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(35, 40, 47, 0.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) - 2) * -1);overflow:hidden;padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:transparent;border:0;border-radius:calc(var(--plyr-range-thumb-height, 13px) * 2);color:var(--plyr-range-fill-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));display:block;height:calc((var(--plyr-range-thumb-active-shadow-width, 3px) * 2) + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow 0.3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background-image:linear-gradient(to right, currentColor var(--value, 0%), transparent var(--value, 0%))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);-webkit-appearance:none;margin-top:calc(((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px)) / 2) * -1)}.plyr--full-ui input[type=range]::-moz-range-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px)}.plyr--full-ui input[type=range]::-ms-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);margin-top:0}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr__poster{background-color:var(--plyr-video-background, var(--plyr-video-background, black));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity 0.2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr__time{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px))}.plyr__time+.plyr__time::before{content:"⁄";margin-right:var(--plyr-control-spacing, 10px)}@media (max-width: 767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:var(--plyr-tooltip-radius, 3px);bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-tooltip-color, #4a5464);font-size:var(--plyr-font-size-small, 13px);font-weight:var(--plyr-font-weight-regular, 400);left:50%;line-height:1.3;margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:calc(var(--plyr-control-spacing, 10px) / 2) calc(calc(var(--plyr-control-spacing, 10px) / 2) * 1.5);pointer-events:none;position:absolute;transform:translate(-50%, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control:hover .plyr__tooltip,.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%, 0) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translate(0, 10px) scale(0.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip::before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip::before{left:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7))}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0, 10px) scale(0.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));transform:translateX(50%)}.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible{transform:translate(0, 0) scale(1)}.plyr__progress{left:calc(var(--plyr-range-thumb-height, 13px) * 0.5);margin-right:var(--plyr-range-thumb-height, 13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:calc(var(--plyr-range-thumb-height, 13px) * -0.5);margin-right:calc(var(--plyr-range-thumb-height, 13px) * -0.5);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));left:0}.plyr__progress__buffer{-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:var(--plyr-range-track-height, 5px);left:0;margin-top:calc((var(--plyr-range-track-height, 5px) / 2) * -1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:transparent}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;transition:width 0.2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 25%, transparent 25%, transparent 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 75%, transparent 75%, transparent);background-repeat:repeat-x;background-size:var(--plyr-progress-loading-size, 25px) var(--plyr-progress-loading-size, 25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:calc(var(--plyr-control-spacing, 10px) / 2);margin-right:calc(var(--plyr-control-spacing, 10px) / 2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:var(--plyr-audio-controls-background, #fff);border-radius:inherit;color:var(--plyr-audio-control-color, #4a5464);padding:var(--plyr-control-spacing, 10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:var(--plyr-audio-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-audio-control-color-hover, #fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--audio .plyr__progress__buffer{color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr--video{background:var(--plyr-video-background, var(--plyr-video-background, black));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:var(--plyr-video-background, var(--plyr-video-background, black));height:100%;margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;left:0;position:absolute;top:0}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:var(--plyr-video-control-color, #fff);left:0;padding:calc(var(--plyr-control-spacing, 10px) / 2);padding-top:calc(var(--plyr-control-spacing, 10px) * 2);position:absolute;right:0;transition:opacity 0.4s ease-in-out, transform 0.4s ease-in-out;z-index:3}@media (min-width: 480px){.plyr--video .plyr__controls{padding:var(--plyr-control-spacing, 10px);padding-top:calc(var(--plyr-control-spacing, 10px) * 3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-video-control-color-hover, #fff)}.plyr__control--overlaid{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));border:0;border-radius:100%;color:var(--plyr-video-control-color, #fff);display:none;left:50%;opacity:0.9;padding:calc(var(--plyr-control-spacing, 10px) * 1.5);position:absolute;top:50%;transform:translate(-50%, -50%);transition:0.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:hover,.plyr__control--overlaid:focus{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--video .plyr__progress__buffer{color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr:fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__video-wrapper{height:100%;position:static}.plyr:fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-webkit-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__video-wrapper{height:100%;position:static}.plyr:-webkit-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-moz-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__video-wrapper{height:100%;position:static}.plyr:-moz-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-moz-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-ms-fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__video-wrapper{height:100%;position:static}.plyr:-ms-fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%;bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__video-wrapper{height:100%;position:static}.plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads::after{background:#23282f;border-radius:2px;bottom:var(--plyr-control-spacing, 10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:var(--plyr-control-spacing, 10px);z-index:3}.plyr__ads::after:empty{display:none}.plyr__cues{background:currentColor;display:block;height:var(--plyr-range-track-height, 5px);left:0;margin:-var(--plyr-range-track-height, 5px)/2 0 0;opacity:0.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:3px;bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:var(--plyr-tooltip-radius, 3px);pointer-events:none;position:absolute;transform:translate(0, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0, 0) scale(1)}.plyr__preview-thumb::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:rgba(0, 0, 0, 0.55);border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);color:#fff;font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity 0.3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none !important}.plyr__sr-only{clip:rect(1px, 1px, 1px, 1px);overflow:hidden;border:0 !important;height:1px !important;padding:0 !important;position:absolute !important;width:1px !important}.plyr [hidden]{display:none !important}video,iframe{max-width:100%}.presto-player__wrapper{position:relative;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper img{max-width:100%}.presto-player__wrapper .plyr.plyr--video.plyr--menu-open{overflow:hidden}.presto-player__wrapper .plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{top:50%;transform:translateY(-50%)}.presto-player__wrapper .plyr--fullscreen-fallback.plyr{border-radius:0 !important}.presto-player__wrapper .plyr--fullscreen-fallback.plyr iframe{border-radius:0 !important}.presto-player__wrapper .plyr__menu__container{overflow:auto}.presto-player__wrapper .plyr__menu__container:after{display:none}.presto-player__wrapper img{border:none}.presto-player__wrapper video{margin:auto}.presto-player__wrapper iframe{height:100%}.presto-player__wrapper .plyr--video .plyr__control:active,.presto-player__wrapper .plyr--video .plyr__control:focus{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .plyr__poster{background-size:cover;z-index:2}.presto-player__wrapper .presto-player__logo{margin:0;display:block;position:absolute;z-index:3;opacity:0.5;object-fit:contain;transition:bottom 0.4s ease-in-out;max-width:var(--presto-player-logo-width, 75px)}.presto-player__wrapper .presto-player__logo.is-bottom-right{left:auto;right:20px;top:auto;bottom:60px}.presto-player__wrapper .presto-player__logo.is-bottom-left{left:20px;right:auto;top:auto;bottom:60px}@media screen and (min-width: 380px){.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-left,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-left{bottom:20px}}.presto-player__wrapper .presto-player-progress__marker{width:16px;height:16px;padding:0;border:2px solid rgba(255, 255, 255, 0.5);position:absolute;border-radius:9999px;bottom:calc(50% - 8px);z-index:9;margin-left:-8px !important}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__poster{display:none}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__control.plyr__control--overlaid{display:none}.presto-player__wrapper button.plyr__control.plyr__control--overlaid:focus{background:inherit;border:none;outline:0;position:absolute;top:50%;transform:translate(-50%, -50%)}.presto-player__wrapper .plyr__controls__item.plyr__progress__container{position:relative}.presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{box-shadow:none}.presto-player__wrapper .plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.75)))}.presto-player__wrapper .presto-player-toc{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";line-height:1.4;position:absolute;top:auto;right:0;left:0;bottom:0;max-height:calc(100%);max-width:calc(100%);background:rgba(255, 255, 255, 0.9);background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));left:auto;padding:20px 15px;border-radius:4px;width:100%;z-index:9;box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:#4a5464;color:var(--plyr-menu-color, #4a5464);font-size:15px;font-size:var(--plyr-font-size-base, 15px);white-space:nowrap;z-index:3;display:flex;flex-direction:column;transition:bottom 0.25s ease}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc{right:20px;bottom:60px;width:300px;max-height:calc(100% - 80px);max-width:calc(100vw - 70px)}}.presto-player__wrapper .presto-player-toc__wrapper{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out, visibility 0.3s ease-in-out}.presto-player__wrapper .presto-player-toc__wrapper.is-showing{visibility:visible;opacity:1}.presto-player__wrapper .presto-player-toc__cover{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3}.presto-player__wrapper .presto-player-toc__list{flex:1;overflow:auto}.presto-player__wrapper .presto-player-toc__title{font-size:12px;font-weight:bold;margin-bottom:10px;margin-left:10px;margin-right:10px;display:none}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc__title{display:block}}.presto-player__wrapper .presto-player-toc__name{white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.presto-player__wrapper .presto-player-toc__chapter{padding:12px;border-radius:3px;cursor:pointer;line-height:1;display:flex;align-items:center;transition:background-color 0.4s ease, color 0.4s ease;margin-bottom:2px;position:relative}.presto-player__wrapper .presto-player-toc__chapter:last-child{margin-bottom:0}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted,.presto-player__wrapper .presto-player-toc__chapter:hover{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted{padding-right:30px}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted:after{background:rgba(255, 255, 255, 0.5);content:"";display:block;flex-shrink:0;height:8px;width:8px;margin-right:10px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;border-radius:9999px;position:absolute;right:7px}.presto-player__wrapper .presto-player-toc__order{margin-right:12px;opacity:0.5}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper.rtl .presto-player-toc__order{order:2;margin-left:12px;margin-right:0}.presto-player__wrapper.rtl .presto-player-toc__name{direction:rtl}.presto-player__wrapper .presto-player-error{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0, 0, 0, 0.9);color:#fff;display:flex;align-items:center;justify-content:center;z-index:10;text-align:center}.presto-player__wrapper .presto-player-error__title{font-size:18px;font-weight:bold;margin-bottom:8px}.presto-player__wrapper .presto-player-error__description{opacity:0.75}.presto-player__wrapper.hide-youtube-ui .plyr__video-embed iframe{top:-50%;height:200%}.presto-player__wrapper .plyr--vimeo.plyr--playing .plyr__video-embed__container{pointer-events:none}.presto-player__wrapper .plyr__control--overlaid{border-radius:6px;padding-left:26px;padding-right:26px;position:absolute !important;top:50% !important}.presto-player__wrapper.skin-stacked .plyr__controls{flex-wrap:wrap}.presto-player__wrapper.skin-stacked .presto-player-progress__marker{transform:scale(0.75)}.presto-player__wrapper.skin-stacked .plyr__controls{justify-content:flex-start}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container{order:-1;flex:1 0 100%}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+:not(.plyr__time),.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+.plyr__time+*{margin-left:auto}.presto-player__wrapper.skin-stacked .plyr__controls .plyr__controls__item:first-child{margin:0}.presto-player__wrapper.skin-stacked .plyr__progress{height:19px;display:flex;align-items:center}.presto-player__wrapper.skin-stacked .plyr__progress .plyr__progress__buffer{height:3px;transition:all 0.25s ease;position:absolute;top:calc(50% + 1px)}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-upper{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-lower{height:3px;transition:height 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .presto-player-progress__marker{transform:scale(1)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress .plyr__progress__buffer{height:5px;top:calc(50%)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]{overflow:visible}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-upper{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-lower{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-thumb{visibility:visible;opacity:1}.presto-sticky-parent{z-index:99998}@media screen and (min-width: 960px){.presto-sticky{--presto-sticky-space:15px;position:fixed;z-index:3000;max-width:var(--presto-sticky-width, 380px);width:100vw}.presto-sticky .plyr__controls,.presto-sticky .presto-player-toc__wrapper,.presto-sticky presto-action-bar,.presto-sticky .presto-player__logo{display:none}.presto-sticky--top-left{top:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--top-center{top:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--top-right{top:var(--presto-sticky-space);right:var(--presto-sticky-space)}.presto-sticky--center-left{top:0;bottom:0;margin:auto 0;left:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--center-center{top:0;bottom:0;right:0;left:0;margin:auto;display:flex;align-items:center}.presto-sticky--center-right{top:0;bottom:0;margin:auto 0;right:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--bottom-left{bottom:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--bottom-center{bottom:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--bottom-right{bottom:var(--presto-sticky-space);right:var(--presto-sticky-space)}}.presto-player__overlay{position:absolute;top:50%;left:50%;z-index:3}.presto-player__muted-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.presto-player__muted-overlay .plyr__control--overlaid{display:block;opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay{cursor:pointer}.presto-player__wrapper.is-muted-overlay .plyr--playing .presto-player__muted-overlay .plyr__control--overlaid{opacity:1;visibility:visible}.presto-player__wrapper.is-muted-overlay .presto-player__logo{display:none}.presto-player__wrapper.is-muted-overlay .plyr__controls{display:none}.presto-player__wrapper.is-muted-overlay .plyr .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(0) !important}.presto-player__wrapper.rtl .plyr__captions{direction:rtl}.presto-player__wrapper.caption-style-full .plyr__captions{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));padding-top:0;padding-bottom:0}.presto-player__wrapper.caption-style-full .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 13px) * -4))}.presto-player__wrapper.caption-style-full.skin-stacked .plyr:not(.plyr--hide-controls):not(.is-muted-overlay) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 17px) * -4))}.presto-player__play-cover{cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:99}.presto-player__chapters{width:100%;position:absolute;top:0;height:100%}.presto-player__chapter-markers{margin:0 8px;height:100%;position:relative}.presto-player-progress__marker.plyr__controls__item.plyr__control:hover{border:0;background:#fff}'}}]),k}(g(HTMLElement)),xo=function(e,t){return qi(t)},wo=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),si(Object(l.a)(e)),e.prestoBlur=Rt(Object(l.a)(e),"prestoBlur",7),e.prestoFocus=Rt(Object(l.a)(e),"prestoFocus",7),e.hasFocus=!1,e.hasLabel=!1,e.hasPrefix=!1,e.hasSuffix=!1,e.type="default",e.size="medium",e.full=!1,e.disabled=!1,e.submit=!1,e}return Object(s.a)(i,[{key:"componentWillLoad",value:function(){this.handleSlotChange()}},{key:"click",value:function(){this.button.click()}},{key:"focus",value:function(e){this.button.focus(e)}},{key:"blur",value:function(){this.button.blur()}},{key:"handleSlotChange",value:function(){this.hasLabel=!!this.button.children,this.hasPrefix=!!this.button.querySelector('[slot="prefix"]'),this.hasSuffix=!!this.button.querySelector('[slot="suffix"]')}},{key:"handleBlur",value:function(){this.hasFocus=!1,this.prestoBlur.emit()}},{key:"handleFocus",value:function(){this.hasFocus=!0,this.prestoFocus.emit()}},{key:"handleClick",value:function(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}},{key:"render",value:function(){var e=this,t=!!this.href,i=dt(xo,null,dt("span",{part:"prefix",class:"button__prefix"},dt("slot",{onSlotchange:function(){return e.handleSlotChange()},name:"prefix"})),dt("span",{part:"label",class:"button__label"},dt("slot",{onSlotchange:function(){return e.handleSlotChange()}})),dt("span",{part:"suffix",class:"button__suffix"},dt("slot",{onSlotchange:function(){return e.handleSlotChange()},name:"suffix"}))),n=dt("button",{part:"base",class:{button:!0,"button--default":"default"===this.type,"button--primary":"primary"===this.type,"button--success":"success"===this.type,"button--info":"info"===this.type,"button--warning":"warning"===this.type,"button--danger":"danger"===this.type,"button--text":"text"===this.type,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--has-label":this.hasLabel,"button--has-prefix":this.hasPrefix,"button--has-suffix":this.hasSuffix},disabled:this.disabled,type:this.submit?"submit":"button",name:this.name,value:this.value,onBlur:function(){return e.handleBlur},onFocus:function(){return e.handleFocus},onClick:function(){return e.handleClick}},i),r=dt("a",{part:"base",class:{button:!0,"button--default":"default"===this.type,"button--primary":"primary"===this.type,"button--success":"success"===this.type,"button--info":"info"===this.type,"button--warning":"warning"===this.type,"button--danger":"danger"===this.type,"button--text":"text"===this.type,"button--small":"small"===this.size,"button--medium":"medium"===this.size,"button--large":"large"===this.size,"button--disabled":this.disabled,"button--focused":this.hasFocus,"button--has-label":this.hasLabel,"button--has-prefix":this.hasPrefix,"button--has-suffix":this.hasSuffix},href:this.href,target:this.target,download:this.download,rel:this.target?"noreferrer noopener":void 0,role:"button","aria-disabled":this.disabled?"true":"false",tabindex:this.disabled?"-1":"0",onBlur:function(){return e.handleBlur},onFocus:function(){return e.handleFocus},onClick:function(){return e.handleClick}},i);return t?r:n}},{key:"button",get:function(){return this}}],[{key:"style",get:function(){return":host{display:inline-block;width:auto;cursor:pointer}:host([full]){display:block}.button{display:inline-flex;align-items:stretch;justify-content:center;width:100%;border-style:solid;border-width:var(--presto-player-button-border-width);font-family:var(--plyr-font-family, inherit);font-weight:var(--presto-player-button-font-weight, 500);text-decoration:none;user-select:none;white-space:nowrap;vertical-align:middle;padding:0;transition:var(--presto--player-transition-fast, 150ms) background-color, var(--presto-player-transition-fast, 150ms) color, var(--presto-player-transition-fast, 150ms) border, var(--presto--player-transition-fast, 150ms) box-shadow;cursor:inherit;border-radius:var(--presto-player-button-border-radius, 0.25rem)}.button::-moz-focus-inner{border:0}.button:focus{outline:none}.button.button--disabled{opacity:0.5;cursor:not-allowed}.button.button--disabled *{pointer-events:none}.button ::slotted(.presto--icon){pointer-events:none}.button__prefix,.button__suffix{flex:0 0 auto;display:flex;align-items:center}.button__label{display:flex;align-items:center}.button__label ::slotted(presto-icon){vertical-align:-2px}.button.button--default{background-color:var(--presto-player-color-white, #fff);border-color:var(--presto-player-color-gray-300, #d1d5db);color:var(--presto-player-color-gray-600, #4b5563)}.button.button--default:hover:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:0.75}.button.button--default:focus:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:1}.button.button--default:active:not(.button--disabled){border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-color, var(--plyr-color-main));opacity:1}.button.button--primary{background-color:var(--presto-player-button-color, var(--plyr-color-main));border-color:var(--presto-player-button-color, var(--plyr-color-main));color:var(--presto-player-button-text, #fff)}.button.button--primary:hover:not(.button--disabled){opacity:0.9}.button.button--primary:focus:not(.button--disabled){opacity:1}.button.button--primary:active:not(.button--disabled){opacity:1}.button--text{background-color:transparent;border-color:transparent;color:var(--presto-player-button-color, var(--plyr-color-main))}.button--text:hover:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.8}.button--text:focus:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.7}.button--text:active:not(.button--disabled){background-color:transparent;border-color:transparent;opacity:0.7}.button--small{font-size:var(--presto-player-button-font-size-small, 0.875rem);height:var(--presto-player-button-height-small, 1.875rem);line-height:calc(var(--presto-player-button-height-small, 1.875rem) - var(--presto-player-button-border-width, 1px) * 2)}.button--medium{font-size:var(--presto-player-button-font-size-medium, 1rem);height:var(--presto-player-button-height-medium, 2.5rem);line-height:calc(var(--presto-player-button-height-medium, 2.5rem) - var(--presto-player-button-border-width, 1px) * 2)}.button--large{font-size:var(--presto-player-button-font-size-large, 1.25rem);height:var(--presto-player-button-height-large, 3.125rem);line-height:calc(var(--presto-player-button-height-large, 3.125rem) - var(--presto-player-button-border-width, 1px) * 2)}.button--full{display:block}.button--has-label.button--small .button__label{padding:0 var(--presto-player-button-spacing-small, 0.75rem)}.button--has-label.button--medium .button__label{padding:0 var(--presto-player-button-spacing-medium, 1rem)}.button--has-label.button--large .button__label{padding:0 var(--presto-player-button-spacing-large, 1.25rem)}.button--has-prefix.button--small{padding-left:var(--presto-player-button-spacing-x-small, 0.5rem)}.button--has-prefix.button--small .button__label{padding-left:var(--presto-player-button-spacing-x-small, 0.5rem)}.button--has-prefix.button--medium{padding-left:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-prefix.button--medium .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-prefix.button--large{padding-left:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-prefix.button--large .button__label{padding-left:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-suffix.button--small,.button--caret.button--small{padding-right:var(--presto-player-button-spacing-x-small, 0.5rem)}.button--has-suffix.button--small .button__label,.button--caret.button--small .button__label{padding-right:var(--presto-player-button-spacing-x-small, 0.5rem)}.button--has-suffix.button--medium,.button--caret.button--medium{padding-right:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-suffix.button--medium .button__label,.button--caret.button--medium .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-suffix.button--large,.button--caret.button--large{padding-right:var(--presto-player-button-spacing-small, 0.75rem)}.button--has-suffix.button--large .button__label,.button--caret.button--large .button__label{padding-right:var(--presto-player-button-spacing-small, 0.75rem)}"}}]),i}(g(HTMLElement)),ko=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),si(Object(l.a)(e)),e.effect="sheen",e}return Object(s.a)(i,[{key:"render",value:function(){return dt("div",{part:"base",class:{skeleton:!0,"skeleton--pulse":"pulse"===this.effect,"skeleton--sheen":"sheen"===this.effect},"aria-busy":"true","aria-live":"polite"},dt("div",{part:"indicator",class:"skeleton__indicator"}))}}],[{key:"style",get:function(){return":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--border-radius:var(--presto-player-border-radius-pill);--color:#e5e7eb;--sheen-color:#f3f4f6;display:block;position:relative}.skeleton{display:flex;width:100%;height:100%;min-height:1rem}.skeleton__indicator{flex:1 1 auto;background:var(--color);border-radius:var(--border-radius)}.skeleton--sheen .skeleton__indicator{background:linear-gradient(270deg, var(--sheen-color), var(--color), var(--color), var(--sheen-color));background-size:400% 100%;background-size:400% 100%;animation:sheen 8s ease-in-out infinite}.skeleton--pulse .skeleton__indicator{animation:pulse 2s ease-in-out 0.5s infinite}@keyframes sheen{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes pulse{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}"}}]),i}(g(HTMLElement)),_o=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),si(Object(l.a)(e)),e}return Object(s.a)(i,[{key:"render",value:function(){return dt("span",{part:"base",class:"spinner","aria-busy":"true","aria-live":"polite"})}}],[{key:"style",get:function(){return":host{position:relative;box-sizing:border-box;--track-color:#0d131e20;--indicator-color:var(--plyr-color-main);--stroke-width:2px;display:inline-flex}:host *,:host *:before,:host *:after{box-sizing:inherit}.spinner{display:inline-block;width:1em;height:1em;border-radius:50%;border:solid var(--stroke-width) var(--track-color);border-top-color:var(--indicator-color);border-right-color:var(--indicator-color);animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}"}}]),i}(g(HTMLElement)),Ao=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),e}return Object(s.a)(i,[{key:"render",value:function(){return dt("video",{class:"presto-player__player",part:"video",ref:this.getRef,autoplay:this.autoplay,preload:this.preload,"data-poster":this.poster,playsinline:this.playsinline},dt("source",{src:this.src}),!!this.tracks&&!!this.tracks.length&&this.tracks.map((function(e){return dt("track",{kind:"captions",label:(null==e?void 0:e.label)?e.label:"Captions",src:null==e?void 0:e.src,srclang:(null==e?void 0:e.srcLang)?null==e?void 0:e.srcLang:"en"})})))}}],[{key:"style",get:function(){return":host{display:block}"}}]),i}(g(HTMLElement)),So=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),si(Object(l.a)(e)),e}return Object(s.a)(i,[{key:"render",value:function(){return dt("div",{class:"curtain"},dt("div",{class:"content",part:"curtain-content"},dt("slot",null)))}}],[{key:"style",get:function(){return':host{font-size:16px}.curtain{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:#000;text-align:center;color:#fff;padding-bottom:56.25%;position:relative;font-size:1.5em}::slotted(:not(:first-child)){margin-top:14px}.content{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;padding:48px}'}}]),i}(g(HTMLElement)),Co=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),e}return Object(s.a)(i,[{key:"getId",value:function(e){var t=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/.exec(e||"");return(null==t?void 0:t[5])||""}},{key:"render",value:function(){if(this.src)return dt("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef},dt("iframe",{src:"https://player.vimeo.com/video/".concat(this.getId(this.src),"?loop=false&byline=false&portrait=false&title=false&speed=true&transparent=0&gesture=media"),allowFullScreen:!0,allowTransparency:!0,allow:"autoplay"}))}}],[{key:"style",get:function(){return":host{display:block}"}}]),i}(g(HTMLElement)),To=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),e.reload=Rt(Object(l.a)(e),"reload",7),e}return Object(s.a)(i,[{key:"handlePlayerChange",value:function(){this.player&&(this.player.ratio="16:9",this.fixes())}},{key:"fixes",value:function(){var e=this;this.player.on("statechange",(function(t){var i,n,r,a,o;1===t.detail.code&&((null===(o=null===(a=null===(r=null===(n=null===(i=null==t?void 0:t.detail)||void 0===i?void 0:i.plyr)||void 0===n?void 0:n.config)||void 0===r?void 0:r.blockAttributes)||void 0===a?void 0:a.mutedPreview)||void 0===o?void 0:o.enabled)||(e.player.muted=!1))}))}},{key:"getId",value:function(e){var t,i=(e||"").match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return i&&11===(null===(t=null==i?void 0:i[2])||void 0===t?void 0:t.length)?i[2]:null}},{key:"loadPlayer",value:function(){this.lazyLoad=!1,this.reloadPlayer=!0}},{key:"componentDidRender",value:function(){this.reloadPlayer&&(this.reloadPlayer=!1,this.reload.emit("play"))}},{key:"setWebView",value:function(){var e,t=null===(e=window.navigator)||void 0===e?void 0:e.standalone,i=window.navigator.userAgent.toLowerCase(),n=/safari/.test(i),r=/iphone|ipod|ipad/.test(i);this.isWebView=r?!t&&!n:i.includes("wv")}},{key:"componentWillLoad",value:function(){if(this.setWebView(),this.poster||(this.poster="//img.youtube.com/vi/".concat(this.getId(this.src),"/maxresdefault.jpg")),this.lazyLoad){var e=window.navigator.userAgent;(!!e.match(/iPad/i)||!!e.match(/iPhone/i))&&(this.lazyLoad=!1)}}},{key:"render",value:function(){var e=this;return this.isWebView?dt("div",{class:"fallback-container"},dt("iframe",{src:this.src,allowFullScreen:!0,allowtransparency:!0,allow:"autoplay"})):this.lazyLoad?dt("div",null,dt("presto-video",{part:"video",getRef:this.getRef,poster:this.poster,src:""}),dt("div",{class:"presto-player__play-cover",onClick:function(){return e.loadPlayer()}})):dt("div",{class:"plyr__video-embed",part:"embed",ref:this.getRef,"data-plyr-provider":"youtube","data-plyr-embed-id":this.getId(this.src)})}}],[{key:"watchers",get:function(){return{player:["handlePlayerChange"]}}},{key:"style",get:function(){return":host{display:block}.fallback-container{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.fallback-container iframe,.fallback-container object,.fallback-container embed{position:absolute;top:0;left:0;width:100%;height:100%}"}}]),i}(g(HTMLElement)),Po=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),e.layout="default",e}return Object(s.a)(i,[{key:"waitForApi",value:function(e){var t=setInterval((function(){var i;(null===(i=null===window||void 0===window?void 0:window.gapi)||void 0===i?void 0:i.ytsubscribe)&&(clearInterval(t),e())}),50)}},{key:"componentDidLoad",value:function(){var e=this,t=document.createElement("script");t.type="text/javascript",t.async=!1,t.src="https://apis.google.com/js/platform.js";var i=document.getElementsByTagName("script")[0];i&&i.parentNode.insertBefore(t,i),this.waitForApi((function(){window.gapi.ytsubscribe.render(e.textInput,{channelId:e.channel,layout:e.layout,count:e.showCount?"default":"hidden"})}))}},{key:"render",value:function(){var e=this;return dt("div",{class:"g-ytsubscribe",ref:function(t){return e.textInput=t}})}}],[{key:"style",get:function(){return":host{display:block}"}}]),i}(g(HTMLElement)),Lo=oi(Ei,[1,"presto-action-bar",{config:[16],currentTime:[2,"current-time"],duration:[2],direction:[1],youtube:[16],show:[32],youtubeRenderKey:[32]}]),Eo=oi(Mi,[1,"presto-action-bar-ui",{open:[4]}]),Mo=oi(Ii,[0,"presto-bunny",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1025],player:[8],tracks:[16],playsinline:[4],provider:[1],thumbnail:[1],previewUrl:[1,"preview-url"]}]),Io=oi(Oi,[0,"presto-cta-overlay",{player:[8],preset:[16],videoId:[2,"video-id"],i18n:[16],currentTime:[2,"current-time"],duration:[2],direction:[1],enabled:[32],show:[32],loading:[32],error:[32],skipped:[32],percentagePassed:[32],ended:[32]}]),Oo=oi(zi,[1,"presto-cta-overlay-ui",{headline:[1],defaultHeadline:[1,"default-headline"],bottomText:[1,"bottom-text"],showButton:[4,"show-button"],buttonText:[1,"button-text"],buttonType:[1,"button-type"],buttonLink:[16],allowRewatch:[4,"allow-rewatch"],allowSkip:[4,"allow-skip"],skipText:[1,"skip-text"],rewatchText:[1,"rewatch-text"],direction:[1]}]),Do=oi(Ni,[0,"presto-email-overlay",{player:[8],preset:[16],videoId:[2,"video-id"],i18n:[16],currentTime:[2,"current-time"],duration:[2],direction:[1],enabled:[32],show:[32],loading:[32],error:[32]}]),zo=oi(Ri,[1,"presto-email-overlay-ui",{headline:[1],defaultHeadline:[1,"default-headline"],bottomText:[1,"bottom-text"],buttonText:[1,"button-text"],placeholder:[1],allowSkip:[4,"allow-skip"],borderRadius:[2,"border-radius"],skipText:[1,"skip-text"],isLoading:[4,"is-loading"],errorMessage:[1,"error-message"],direction:[1],email:[32]}]),No=oi(Fi,[0,"presto-muted-overlay",{mutedPreview:[4,"muted-preview"],mutedOverlay:[16]}]),Ro=oi(bo,[1,"presto-player",{video_id:[2],iconUrl:[1,"icon-url"],src:[1],bunny:[16],branding:[16],config:[16],preset:[16],chapters:[16],blockAttributes:[16],tracks:[16],analytics:[4],automations:[4],provider:[1],provider_video_id:[1],actionBar:[16],youtube:[16],type:[1],autoplay:[1540],preload:[1],poster:[1],playsinline:[4],isAdmin:[4,"is-admin"],direction:[1],css:[1],player:[32],playerEl:[32],shouldLazyLoad:[32],mutedPreview:[32],currentTime:[32],duration:[32],isSticky:[32],videoHeight:[32],playClass:[32],previouslyPlaying:[32]},[[8,"visibilitychange","playVideoOnlyInViewport"]]]),Fo=oi(wo,[1,"presto-player-button",{type:[513],size:[513],full:[516],disabled:[516],submit:[516],name:[1],value:[1],href:[1],target:[513],download:[1],hasFocus:[32],hasLabel:[32],hasPrefix:[32],hasSuffix:[32]}]),Yo=oi(ko,[1,"presto-player-skeleton",{effect:[1]}]),Ho=oi(_o,[1,"presto-player-spinner"]),$o=oi(Ao,[0,"presto-video",{getRef:[1040],autoplay:[4],src:[1],preload:[1],poster:[1],player:[8],tracks:[16],playsinline:[4],provider:[1]}]),jo=oi(So,[1,"presto-video-curtain-ui",{actionUrl:[1,"action-url"]}]),Xo=oi(Co,[0,"presto-vimeo",{src:[1],poster:[1],player:[8],getRef:[1040]}]),Bo=oi(To,[0,"presto-youtube",{src:[1],poster:[1025],lazyLoad:[1028,"lazy-load"],player:[8],getRef:[1040],reloadPlayer:[32],isWebView:[32]}]),Wo=oi(Po,[0,"presto-youtube-subscribe-button",{channel:[1],layout:[1],showCount:[4,"show-count"]}]),Vo=function(e){"undefined"!=typeof customElements&&[Lo,Eo,Mo,Io,Oo,Do,zo,No,Ro,Fo,Yo,Ho,$o,jo,Xo,Bo,Wo].forEach((function(t){customElements.get(t.is)||customElements.define(t.is,t,e)}))}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,i){"use strict";
|
24 |
+
/*
|
25 |
+
object-assign
|
26 |
+
(c) Sindre Sorhus
|
27 |
+
@license MIT
|
28 |
+
*/var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var i,s,l=o(e),c=1;c<arguments.length;c++){for(var h in i=Object(arguments[c]))r.call(i,h)&&(l[h]=i[h]);if(n){s=n(i);for(var d=0;d<s.length;d++)a.call(i,s[d])&&(l[s[d]]=i[s[d]])}}return l}},function(e,t,i){"use strict";var n=Object.prototype.hasOwnProperty;function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function a(e){try{return encodeURIComponent(e)}catch(e){return null}}t.stringify=function(e,t){t=t||"";var i,r,o=[];for(r in"string"!=typeof t&&(t="?"),e)if(n.call(e,r)){if((i=e[r])||null!=i&&!isNaN(i)||(i=""),r=a(r),i=a(i),null===r||null===i)continue;o.push(r+"="+i)}return o.length?t+o.join("&"):""},t.parse=function(e){for(var t,i=/([^=?#&]+)=?([^&]*)/g,n={};t=i.exec(e);){var a=r(t[1]),o=r(t[2]);null===a||null===o||a in n||(n[a]=o)}return n}},function(e,t,i){(function(e){var n,r,a,o,s=i(12);window,o=function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==s(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=4)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(t,i,n){void 0===t&&(t=null),void 0===i&&(i=null),void 0===n&&(n="en-US"),this.dateInstance="object"==s(i)&&null!==i?i.parse(t instanceof e?t.clone().toJSDate():t):"string"==typeof i?e.parseDateTime(t,i,n):t?e.parseDateTime(t):e.parseDateTime(new Date),this.lang=n}return e.parseDateTime=function(t,i,n){if(void 0===i&&(i="YYYY-MM-DD"),void 0===n&&(n="en-US"),!t)return new Date(NaN);if(t instanceof Date)return new Date(t);if(t instanceof e)return t.clone().toJSDate();if(/^-?\d{10,}$/.test(t))return e.getDateZeroTime(new Date(Number(t)));if("string"==typeof t){for(var r=[],a=null;null!=(a=e.regex.exec(i));)"\\"!==a[1]&&r.push(a);if(r.length){var o={year:null,month:null,shortMonth:null,longMonth:null,day:null,value:""};r[0].index>0&&(o.value+=".*?");for(var s=0,l=Object.entries(r);s<l.length;s++){var c=l[s],h=c[0],d=c[1],u=Number(h),p=e.formatPatterns(d[0],n),f=p.group,g=p.pattern;o[f]=u+1,o.value+=g,o.value+=".*?"}var m=new RegExp("^"+o.value+"$");if(m.test(t)){var v=m.exec(t),y=Number(v[o.year]),b=null;o.month?b=Number(v[o.month])-1:o.shortMonth?b=e.shortMonths(n).indexOf(v[o.shortMonth]):o.longMonth&&(b=e.longMonths(n).indexOf(v[o.longMonth]));var x=Number(v[o.day])||1;return new Date(y,b,x,0,0,0,0)}}}return e.getDateZeroTime(new Date(t))},e.convertArray=function(t,i){return t.map((function(t){return t instanceof Array?t.map((function(t){return new e(t,i)})):new e(t,i)}))},e.getDateZeroTime=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)},e.shortMonths=function(t){return e.MONTH_JS.map((function(e){return new Date(2019,e).toLocaleString(t,{month:"short"})}))},e.longMonths=function(t){return e.MONTH_JS.map((function(e){return new Date(2019,e).toLocaleString(t,{month:"long"})}))},e.formatPatterns=function(t,i){switch(t){case"YY":case"YYYY":return{group:"year",pattern:"(\\d{"+t.length+"})"};case"M":return{group:"month",pattern:"(\\d{1,2})"};case"MM":return{group:"month",pattern:"(\\d{2})"};case"MMM":return{group:"shortMonth",pattern:"("+e.shortMonths(i).join("|")+")"};case"MMMM":return{group:"longMonth",pattern:"("+e.longMonths(i).join("|")+")"};case"D":return{group:"day",pattern:"(\\d{1,2})"};case"DD":return{group:"day",pattern:"(\\d{2})"}}},e.prototype.toJSDate=function(){return this.dateInstance},e.prototype.toLocaleString=function(e,t){return this.dateInstance.toLocaleString(e,t)},e.prototype.toDateString=function(){return this.dateInstance.toDateString()},e.prototype.getSeconds=function(){return this.dateInstance.getSeconds()},e.prototype.getDay=function(){return this.dateInstance.getDay()},e.prototype.getTime=function(){return this.dateInstance.getTime()},e.prototype.getDate=function(){return this.dateInstance.getDate()},e.prototype.getMonth=function(){return this.dateInstance.getMonth()},e.prototype.getFullYear=function(){return this.dateInstance.getFullYear()},e.prototype.setMonth=function(e){return this.dateInstance.setMonth(e)},e.prototype.setHours=function(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===i&&(i=0),void 0===n&&(n=0),this.dateInstance.setHours(e,t,i,n)},e.prototype.setSeconds=function(e){return this.dateInstance.setSeconds(e)},e.prototype.setDate=function(e){return this.dateInstance.setDate(e)},e.prototype.setFullYear=function(e){return this.dateInstance.setFullYear(e)},e.prototype.getWeek=function(e){var t=new Date(this.timestamp()),i=(this.getDay()+(7-e))%7;t.setDate(t.getDate()-i);var n=t.getTime();return t.setMonth(0,1),t.getDay()!==e&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((n-t.getTime())/6048e5)},e.prototype.clone=function(){return new e(this.toJSDate())},e.prototype.isBetween=function(e,t,i){switch(void 0===i&&(i="()"),i){default:case"()":return this.timestamp()>e.getTime()&&this.timestamp()<t.getTime();case"[)":return this.timestamp()>=e.getTime()&&this.timestamp()<t.getTime();case"(]":return this.timestamp()>e.getTime()&&this.timestamp()<=t.getTime();case"[]":return this.timestamp()>=e.getTime()&&this.timestamp()<=t.getTime()}},e.prototype.isBefore=function(e,t){switch(void 0===t&&(t="seconds"),t){case"second":case"seconds":return e.getTime()>this.getTime();case"day":case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()>new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(e.getFullYear(),e.getMonth(),1).getTime()>new Date(this.getFullYear(),this.getMonth(),1).getTime();case"year":case"years":return e.getFullYear()>this.getFullYear()}throw new Error("isBefore: Invalid unit!")},e.prototype.isSameOrBefore=function(e,t){switch(void 0===t&&(t="seconds"),t){case"second":case"seconds":return e.getTime()>=this.getTime();case"day":case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()>=new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(e.getFullYear(),e.getMonth(),1).getTime()>=new Date(this.getFullYear(),this.getMonth(),1).getTime()}throw new Error("isSameOrBefore: Invalid unit!")},e.prototype.isAfter=function(e,t){switch(void 0===t&&(t="seconds"),t){case"second":case"seconds":return this.getTime()>e.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>new Date(e.getFullYear(),e.getMonth(),1).getTime();case"year":case"years":return this.getFullYear()>e.getFullYear()}throw new Error("isAfter: Invalid unit!")},e.prototype.isSameOrAfter=function(e,t){switch(void 0===t&&(t="seconds"),t){case"second":case"seconds":return this.getTime()>=e.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>=new Date(e.getFullYear(),e.getMonth(),1).getTime()}throw new Error("isSameOrAfter: Invalid unit!")},e.prototype.isSame=function(e,t){switch(void 0===t&&(t="seconds"),t){case"second":case"seconds":return this.getTime()===e.getTime();case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()===new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()===new Date(e.getFullYear(),e.getMonth(),1).getTime()}throw new Error("isSame: Invalid unit!")},e.prototype.add=function(e,t){switch(void 0===t&&(t="seconds"),t){case"second":case"seconds":this.setSeconds(this.getSeconds()+e);break;case"day":case"days":this.setDate(this.getDate()+e);break;case"month":case"months":this.setMonth(this.getMonth()+e)}return this},e.prototype.subtract=function(e,t){switch(void 0===t&&(t="seconds"),t){case"second":case"seconds":this.setSeconds(this.getSeconds()-e);break;case"day":case"days":this.setDate(this.getDate()-e);break;case"month":case"months":this.setMonth(this.getMonth()-e)}return this},e.prototype.diff=function(e,t){switch(void 0===t&&(t="seconds"),t){default:case"second":case"seconds":return this.getTime()-e.getTime();case"day":case"days":return Math.round((this.timestamp()-e.getTime())/864e5);case"month":case"months":}},e.prototype.format=function(t,i){if(void 0===i&&(i="en-US"),"object"==s(t))return t.output(this.clone().toJSDate());for(var n="",r=[],a=null;null!=(a=e.regex.exec(t));)"\\"!==a[1]&&r.push(a);if(r.length){r[0].index>0&&(n+=t.substring(0,r[0].index));for(var o=0,l=Object.entries(r);o<l.length;o++){var c=l[o],h=c[0],d=c[1],u=Number(h);n+=this.formatTokens(d[0],i),r[u+1]&&(n+=t.substring(d.index+d[0].length,r[u+1].index)),u===r.length-1&&(n+=t.substring(d.index+d[0].length))}}return n.replace(/\\/g,"")},e.prototype.timestamp=function(){return new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0,0).getTime()},e.prototype.formatTokens=function(t,i){switch(t){case"YY":return String(this.getFullYear()).slice(-2);case"YYYY":return String(this.getFullYear());case"M":return String(this.getMonth()+1);case"MM":return("0"+(this.getMonth()+1)).slice(-2);case"MMM":return e.shortMonths(i)[this.getMonth()];case"MMMM":return e.longMonths(i)[this.getMonth()];case"D":return String(this.getDate());case"DD":return("0"+this.getDate()).slice(-2);default:return""}},e.regex=/(\\)?(Y{2,4}|M{1,4}|D{1,2}|d{1,4})/g,e.MONTH_JS=[0,1,2,3,4,5,6,7,8,9,10,11],e}();t.DateTime=n},function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=this&&this.__spreadArrays||function(){for(var e=0,t=0,i=arguments.length;t<i;t++)e+=arguments[t].length;var n=Array(e),r=0;for(t=0;t<i;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,r++)n[r]=a[o];return n};Object.defineProperty(t,"__esModule",{value:!0});var o=i(5),s=i(0),l=i(3),c=i(2),h=function(e){function t(t){var i=e.call(this,t)||this;return i.preventClick=!1,i.bindEvents(),i}return r(t,e),t.prototype.scrollToDate=function(e){if(this.options.scrollToDate){var t=this.options.startDate instanceof s.DateTime?this.options.startDate.clone():null,i=this.options.endDate instanceof s.DateTime?this.options.endDate.clone():null;!this.options.startDate||e&&e!==this.options.element?e&&this.options.endDate&&e===this.options.elementEnd&&(i.setDate(1),this.options.numberOfMonths>1&&i.isAfter(t)&&i.setMonth(i.getMonth()-(this.options.numberOfMonths-1)),this.calendars[0]=i.clone()):(t.setDate(1),this.calendars[0]=t.clone())}},t.prototype.bindEvents=function(){document.addEventListener("click",this.onClick.bind(this),!0),this.ui=document.createElement("div"),this.ui.className=l.litepicker,this.ui.style.display="none",this.ui.addEventListener("mouseenter",this.onMouseEnter.bind(this),!0),this.ui.addEventListener("mouseleave",this.onMouseLeave.bind(this),!1),this.options.autoRefresh?(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("keyup",this.onInput.bind(this),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("keyup",this.onInput.bind(this),!0)):(this.options.element instanceof HTMLElement&&this.options.element.addEventListener("change",this.onInput.bind(this),!0),this.options.elementEnd instanceof HTMLElement&&this.options.elementEnd.addEventListener("change",this.onInput.bind(this),!0)),this.options.parentEl?this.options.parentEl instanceof HTMLElement?this.options.parentEl.appendChild(this.ui):document.querySelector(this.options.parentEl).appendChild(this.ui):this.options.inlineMode?this.options.element instanceof HTMLInputElement?this.options.element.parentNode.appendChild(this.ui):this.options.element.appendChild(this.ui):document.body.appendChild(this.ui),this.updateInput(),this.init(),"function"==typeof this.options.setup&&this.options.setup.call(this,this),this.render(),this.options.inlineMode&&this.show()},t.prototype.updateInput=function(){if(this.options.element instanceof HTMLInputElement){var e=this.options.startDate,t=this.options.endDate;if(this.options.singleMode&&e)this.options.element.value=e.format(this.options.format,this.options.lang);else if(!this.options.singleMode&&e&&t){var i=e.format(this.options.format,this.options.lang),n=t.format(this.options.format,this.options.lang);this.options.elementEnd instanceof HTMLInputElement?(this.options.element.value=i,this.options.elementEnd.value=n):this.options.element.value=""+i+this.options.delimiter+n}e||t||(this.options.element.value="",this.options.elementEnd instanceof HTMLInputElement&&(this.options.elementEnd.value=""))}},t.prototype.isSamePicker=function(e){return e.closest("."+l.litepicker)===this.ui},t.prototype.shouldShown=function(e){return!e.disabled&&(e===this.options.element||this.options.elementEnd&&e===this.options.elementEnd)},t.prototype.shouldResetDatePicked=function(){return this.options.singleMode||2===this.datePicked.length},t.prototype.shouldSwapDatePicked=function(){return 2===this.datePicked.length&&this.datePicked[0].getTime()>this.datePicked[1].getTime()},t.prototype.shouldCheckLockDays=function(){return this.options.disallowLockDaysInRange&&2===this.datePicked.length},t.prototype.onClick=function(e){var t=e.target;if(t&&this.ui)if(this.shouldShown(t))this.show(t);else if(t.closest("."+l.litepicker)||!this.isShowning()){if(this.isSamePicker(t))if(this.emit("before:click",t),this.preventClick)this.preventClick=!1;else{if(t.classList.contains(l.dayItem)){if(e.preventDefault(),t.classList.contains(l.isLocked))return;if(this.shouldResetDatePicked()&&(this.datePicked.length=0),this.datePicked[this.datePicked.length]=new s.DateTime(t.dataset.time),this.shouldSwapDatePicked()){var i=this.datePicked[1].clone();this.datePicked[1]=this.datePicked[0].clone(),this.datePicked[0]=i.clone()}return this.shouldCheckLockDays()&&c.rangeIsLocked(this.datePicked,this.options)&&(this.emit("error:range",this.datePicked),this.datePicked.length=0),this.render(),this.emit.apply(this,a(["preselect"],a(this.datePicked).map((function(e){return e.clone()})))),void(this.options.autoApply&&(this.options.singleMode&&this.datePicked.length?(this.setDate(this.datePicked[0]),this.hide()):this.options.singleMode||2!==this.datePicked.length||(this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide())))}if(t.classList.contains(l.buttonPreviousMonth)){e.preventDefault();var n=0,r=this.options.switchingMonths||this.options.numberOfMonths;if(this.options.splitView){var o=t.closest("."+l.monthItem);n=c.findNestedMonthItem(o),r=1}return this.calendars[n].setMonth(this.calendars[n].getMonth()-r),this.gotoDate(this.calendars[n],n),void this.emit("change:month",this.calendars[n],n)}if(t.classList.contains(l.buttonNextMonth))return e.preventDefault(),n=0,r=this.options.switchingMonths||this.options.numberOfMonths,this.options.splitView&&(o=t.closest("."+l.monthItem),n=c.findNestedMonthItem(o),r=1),this.calendars[n].setMonth(this.calendars[n].getMonth()+r),this.gotoDate(this.calendars[n],n),void this.emit("change:month",this.calendars[n],n);t.classList.contains(l.buttonCancel)&&(e.preventDefault(),this.hide(),this.emit("button:cancel")),t.classList.contains(l.buttonApply)&&(e.preventDefault(),this.options.singleMode&&this.datePicked.length?this.setDate(this.datePicked[0]):this.options.singleMode||2!==this.datePicked.length||this.setDateRange(this.datePicked[0],this.datePicked[1]),this.hide(),this.emit("button:apply",this.options.startDate,this.options.endDate))}}else this.hide()},t.prototype.showTooltip=function(e,t){var i=this.ui.querySelector("."+l.containerTooltip);i.style.visibility="visible",i.innerHTML=t;var n=this.ui.getBoundingClientRect(),r=i.getBoundingClientRect(),a=e.getBoundingClientRect(),o=a.top,s=a.left;if(this.options.inlineMode&&this.options.parentEl){var c=this.ui.parentNode.getBoundingClientRect();o-=c.top,s-=c.left}else o-=n.top,s-=n.left;o-=r.height,s-=r.width/2,s+=a.width/2,i.style.top=o+"px",i.style.left=s+"px",this.emit("tooltip",i,e)},t.prototype.hideTooltip=function(){this.ui.querySelector("."+l.containerTooltip).style.visibility="hidden"},t.prototype.shouldAllowMouseEnter=function(e){return!this.options.singleMode&&!e.classList.contains(l.isLocked)},t.prototype.shouldAllowRepick=function(){return this.options.elementEnd&&this.options.allowRepick&&this.options.startDate&&this.options.endDate},t.prototype.isDayItem=function(e){return e.classList.contains(l.dayItem)},t.prototype.onMouseEnter=function(e){var t=this,i=e.target;if(this.isDayItem(i)&&this.shouldAllowMouseEnter(i)){if(this.shouldAllowRepick()&&(this.triggerElement===this.options.element?this.datePicked[0]=this.options.endDate.clone():this.triggerElement===this.options.elementEnd&&(this.datePicked[0]=this.options.startDate.clone())),1!==this.datePicked.length)return;var n=this.ui.querySelector("."+l.dayItem+'[data-time="'+this.datePicked[0].getTime()+'"]'),r=this.datePicked[0].clone(),a=new s.DateTime(i.dataset.time),o=!1;if(r.getTime()>a.getTime()){var c=r.clone();r=a.clone(),a=c.clone(),o=!0}if(Array.prototype.slice.call(this.ui.querySelectorAll("."+l.dayItem)).forEach((function(e){var i=new s.DateTime(e.dataset.time),n=t.renderDay(i);i.isBetween(r,a)&&n.classList.add(l.isInRange),e.className=n.className})),i.classList.add(l.isEndDate),o?(n&&n.classList.add(l.isFlipped),i.classList.add(l.isFlipped)):(n&&n.classList.remove(l.isFlipped),i.classList.remove(l.isFlipped)),this.options.showTooltip){var h=a.diff(r,"day")+1;if("function"==typeof this.options.tooltipNumber&&(h=this.options.tooltipNumber.call(this,h)),h>0){var d=this.pluralSelector(h),u=h+" "+(this.options.tooltipText[d]?this.options.tooltipText[d]:"["+d+"]");this.showTooltip(i,u);var p=window.navigator.userAgent,f=/(iphone|ipad)/i.test(p),g=/OS 1([0-2])/i.test(p);f&&g&&i.dispatchEvent(new Event("click"))}else this.hideTooltip()}}},t.prototype.onMouseLeave=function(e){e.target,this.options.allowRepick&&(!this.options.allowRepick||this.options.startDate||this.options.endDate)&&(this.datePicked.length=0,this.render())},t.prototype.onInput=function(e){var t=this.parseInput(),i=t[0],n=t[1],r=this.options.format;if(this.options.elementEnd?i instanceof s.DateTime&&n instanceof s.DateTime&&i.format(r)===this.options.element.value&&n.format(r)===this.options.elementEnd.value:this.options.singleMode?i instanceof s.DateTime&&i.format(r)===this.options.element.value:i instanceof s.DateTime&&n instanceof s.DateTime&&""+i.format(r)+this.options.delimiter+n.format(r)===this.options.element.value){if(n&&i.getTime()>n.getTime()){var a=i.clone();i=n.clone(),n=a.clone()}this.options.startDate=new s.DateTime(i,this.options.format,this.options.lang),n&&(this.options.endDate=new s.DateTime(n,this.options.format,this.options.lang)),this.updateInput(),this.render();var o=i.clone(),l=0;(this.options.elementEnd?i.format(r)===e.target.value:e.target.value.startsWith(i.format(r)))||(o=n.clone(),l=this.options.numberOfMonths-1),this.emit("selected",this.getStartDate(),this.getEndDate()),this.gotoDate(o,l)}},t}(o.Calendar);t.Litepicker=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findNestedMonthItem=function(e){for(var t=e.parentNode.childNodes,i=0;i<t.length;i+=1)if(t.item(i)===e)return i;return 0},t.dateIsLocked=function(e,t,i){var n=!1;return t.lockDays.length&&(n=t.lockDays.filter((function(i){return i instanceof Array?e.isBetween(i[0],i[1],t.lockDaysInclusivity):i.isSame(e,"day")})).length),n||"function"!=typeof t.lockDaysFilter||(n=t.lockDaysFilter.call(this,e.clone(),null,i)),n},t.rangeIsLocked=function(e,t){var i=!1;return t.lockDays.length&&(i=t.lockDays.filter((function(i){if(i instanceof Array){var n=e[0].toDateString()===i[0].toDateString()&&e[1].toDateString()===i[1].toDateString();return i[0].isBetween(e[0],e[1],t.lockDaysInclusivity)||i[1].isBetween(e[0],e[1],t.lockDaysInclusivity)||n}return i.isBetween(e[0],e[1],t.lockDaysInclusivity)})).length),i||"function"!=typeof t.lockDaysFilter||(i=t.lockDaysFilter.call(this,e[0].clone(),e[1].clone(),e)),i}},function(e,t,i){var n=i(8);"string"==typeof n&&(n=[[e.i,n,""]]);var r={insert:function(e){var t=document.querySelector("head"),i=window._lastElementInsertedByStyleLoader;window.disableLitepickerStyles||(i?i.nextSibling?t.insertBefore(e,i.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e)},singleton:!1};i(10)(n,r),n.locals&&(e.exports=n.locals)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(1);t.Litepicker=n.Litepicker,i(11),window.Litepicker=n.Litepicker,t.default=n.Litepicker},function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});Object.defineProperty(t,"__esModule",{value:!0});var a=i(6),o=i(0),s=i(3),l=i(2),c=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.render=function(){var e=this;this.emit("before:render",this.ui);var t=document.createElement("div");t.className=s.containerMain;var i=document.createElement("div");i.className=s.containerMonths,s["columns"+this.options.numberOfColumns]&&(i.classList.remove(s.columns2,s.columns3,s.columns4),i.classList.add(s["columns"+this.options.numberOfColumns])),this.options.splitView&&i.classList.add(s.splitView),this.options.showWeekNumbers&&i.classList.add(s.showWeekNumbers);for(var n=this.calendars[0].clone(),r=n.getMonth(),a=n.getMonth()+this.options.numberOfMonths,o=0,l=r;l<a;l+=1){var c=n.clone();c.setDate(1),c.setHours(0,0,0,0),this.options.splitView?c=this.calendars[o].clone():c.setMonth(l),i.appendChild(this.renderMonth(c,o)),o+=1}if(this.ui.innerHTML="",t.appendChild(i),this.options.resetButton){var h=void 0;"function"==typeof this.options.resetButton?h=this.options.resetButton.call(this):((h=document.createElement("button")).type="button",h.className=s.resetButton,h.innerHTML=this.options.buttonText.reset),h.addEventListener("click",(function(t){t.preventDefault(),e.clearSelection()})),t.querySelector("."+s.monthItem+":last-child").querySelector("."+s.monthItemHeader).appendChild(h)}this.ui.appendChild(t),this.options.autoApply&&!this.options.footerHTML||this.ui.appendChild(this.renderFooter()),this.options.showTooltip&&this.ui.appendChild(this.renderTooltip()),this.ui.dataset.plugins=(this.options.plugins||[]).join("|"),this.emit("render",this.ui)},t.prototype.renderMonth=function(e,t){var i=this,n=e.clone(),r=32-new Date(n.getFullYear(),n.getMonth(),32).getDate(),a=document.createElement("div");a.className=s.monthItem;var c=document.createElement("div");c.className=s.monthItemHeader;var h=document.createElement("div");if(this.options.dropdowns.months){var d=document.createElement("select");d.className=s.monthItemName;for(var u=0;u<12;u+=1){var p=document.createElement("option"),f=new o.DateTime(new Date(e.getFullYear(),u,2,0,0,0)),g=new o.DateTime(new Date(e.getFullYear(),u,1,0,0,0));p.value=String(u),p.text=f.toLocaleString(this.options.lang,{month:"long"}),p.disabled=this.options.minDate&&g.isBefore(new o.DateTime(this.options.minDate),"month")||this.options.maxDate&&g.isAfter(new o.DateTime(this.options.maxDate),"month"),p.selected=g.getMonth()===e.getMonth(),d.appendChild(p)}d.addEventListener("change",(function(e){var t=e.target,n=0;if(i.options.splitView){var r=t.closest("."+s.monthItem);n=l.findNestedMonthItem(r)}i.calendars[n].setMonth(Number(t.value)),i.render(),i.emit("change:month",i.calendars[n],n,e)})),h.appendChild(d)}else(f=document.createElement("strong")).className=s.monthItemName,f.innerHTML=e.toLocaleString(this.options.lang,{month:"long"}),h.appendChild(f);if(this.options.dropdowns.years){var m=document.createElement("select");m.className=s.monthItemYear;var v=this.options.dropdowns.minYear,y=this.options.dropdowns.maxYear?this.options.dropdowns.maxYear:(new Date).getFullYear();for(e.getFullYear()>y&&((p=document.createElement("option")).value=String(e.getFullYear()),p.text=String(e.getFullYear()),p.selected=!0,p.disabled=!0,m.appendChild(p)),u=y;u>=v;u-=1){p=document.createElement("option");var b=new o.DateTime(new Date(u,0,1,0,0,0));p.value=String(u),p.text=String(u),p.disabled=this.options.minDate&&b.isBefore(new o.DateTime(this.options.minDate),"year")||this.options.maxDate&&b.isAfter(new o.DateTime(this.options.maxDate),"year"),p.selected=e.getFullYear()===u,m.appendChild(p)}if(e.getFullYear()<v&&((p=document.createElement("option")).value=String(e.getFullYear()),p.text=String(e.getFullYear()),p.selected=!0,p.disabled=!0,m.appendChild(p)),"asc"===this.options.dropdowns.years){var x=Array.prototype.slice.call(m.childNodes).reverse();m.innerHTML="",x.forEach((function(e){e.innerHTML=e.value,m.appendChild(e)}))}m.addEventListener("change",(function(e){var t=e.target,n=0;if(i.options.splitView){var r=t.closest("."+s.monthItem);n=l.findNestedMonthItem(r)}i.calendars[n].setFullYear(Number(t.value)),i.render(),i.emit("change:year",i.calendars[n],n,e)})),h.appendChild(m)}else{var w=document.createElement("span");w.className=s.monthItemYear,w.innerHTML=String(e.getFullYear()),h.appendChild(w)}var k=document.createElement("button");k.type="button",k.className=s.buttonPreviousMonth,k.innerHTML=this.options.buttonText.previousMonth;var _=document.createElement("button");_.type="button",_.className=s.buttonNextMonth,_.innerHTML=this.options.buttonText.nextMonth,c.appendChild(k),c.appendChild(h),c.appendChild(_),this.options.minDate&&n.isSameOrBefore(new o.DateTime(this.options.minDate),"month")&&a.classList.add(s.noPreviousMonth),this.options.maxDate&&n.isSameOrAfter(new o.DateTime(this.options.maxDate),"month")&&a.classList.add(s.noNextMonth);var A=document.createElement("div");A.className=s.monthItemWeekdaysRow,this.options.showWeekNumbers&&(A.innerHTML="<div>W</div>");for(var S=1;S<=7;S+=1){var C=3+this.options.firstDay+S,T=document.createElement("div");T.innerHTML=this.weekdayName(C),T.title=this.weekdayName(C,"long"),A.appendChild(T)}var P=document.createElement("div");P.className=s.containerDays;var L=this.calcSkipDays(n);this.options.showWeekNumbers&&L&&P.appendChild(this.renderWeekNumber(n));for(var E=0;E<L;E+=1){var M=document.createElement("div");P.appendChild(M)}for(E=1;E<=r;E+=1)n.setDate(E),this.options.showWeekNumbers&&n.getDay()===this.options.firstDay&&P.appendChild(this.renderWeekNumber(n)),P.appendChild(this.renderDay(n));return a.appendChild(c),a.appendChild(A),a.appendChild(P),this.emit("render:month",a,e),a},t.prototype.renderDay=function(e){e.setHours();var t=document.createElement("div");if(t.className=s.dayItem,t.innerHTML=String(e.getDate()),t.dataset.time=String(e.getTime()),e.toDateString()===(new Date).toDateString()&&t.classList.add(s.isToday),this.datePicked.length)this.datePicked[0].toDateString()===e.toDateString()&&(t.classList.add(s.isStartDate),this.options.singleMode&&t.classList.add(s.isEndDate)),2===this.datePicked.length&&this.datePicked[1].toDateString()===e.toDateString()&&t.classList.add(s.isEndDate),2===this.datePicked.length&&e.isBetween(this.datePicked[0],this.datePicked[1])&&t.classList.add(s.isInRange);else if(this.options.startDate){var i=this.options.startDate,n=this.options.endDate;i.toDateString()===e.toDateString()&&(t.classList.add(s.isStartDate),this.options.singleMode&&t.classList.add(s.isEndDate)),n&&n.toDateString()===e.toDateString()&&t.classList.add(s.isEndDate),i&&n&&e.isBetween(i,n)&&t.classList.add(s.isInRange)}if(this.options.minDate&&e.isBefore(new o.DateTime(this.options.minDate))&&t.classList.add(s.isLocked),this.options.maxDate&&e.isAfter(new o.DateTime(this.options.maxDate))&&t.classList.add(s.isLocked),this.options.minDays>1&&1===this.datePicked.length){var r=this.options.minDays-1,a=this.datePicked[0].clone().subtract(r,"day"),c=this.datePicked[0].clone().add(r,"day");e.isBetween(a,this.datePicked[0],"(]")&&t.classList.add(s.isLocked),e.isBetween(this.datePicked[0],c,"[)")&&t.classList.add(s.isLocked)}if(this.options.maxDays&&1===this.datePicked.length){var h=this.options.maxDays;a=this.datePicked[0].clone().subtract(h,"day"),c=this.datePicked[0].clone().add(h,"day"),e.isSameOrBefore(a)&&t.classList.add(s.isLocked),e.isSameOrAfter(c)&&t.classList.add(s.isLocked)}return this.options.selectForward&&1===this.datePicked.length&&e.isBefore(this.datePicked[0])&&t.classList.add(s.isLocked),this.options.selectBackward&&1===this.datePicked.length&&e.isAfter(this.datePicked[0])&&t.classList.add(s.isLocked),l.dateIsLocked(e,this.options,this.datePicked)&&t.classList.add(s.isLocked),this.options.highlightedDays.length&&this.options.highlightedDays.filter((function(t){return t instanceof Array?e.isBetween(t[0],t[1],"[]"):t.isSame(e,"day")})).length&&t.classList.add(s.isHighlighted),t.tabIndex=t.classList.contains("is-locked")?-1:0,this.emit("render:day",t,e),t},t.prototype.renderFooter=function(){var e=document.createElement("div");if(e.className=s.containerFooter,this.options.footerHTML?e.innerHTML=this.options.footerHTML:e.innerHTML='\n <span class="'+s.previewDateRange+'"></span>\n <button type="button" class="'+s.buttonCancel+'">'+this.options.buttonText.cancel+'</button>\n <button type="button" class="'+s.buttonApply+'">'+this.options.buttonText.apply+"</button>\n ",this.options.singleMode){if(1===this.datePicked.length){var t=this.datePicked[0].format(this.options.format,this.options.lang);e.querySelector("."+s.previewDateRange).innerHTML=t}}else if(1===this.datePicked.length&&e.querySelector("."+s.buttonApply).setAttribute("disabled",""),2===this.datePicked.length){t=this.datePicked[0].format(this.options.format,this.options.lang);var i=this.datePicked[1].format(this.options.format,this.options.lang);e.querySelector("."+s.previewDateRange).innerHTML=""+t+this.options.delimiter+i}return this.emit("render:footer",e),e},t.prototype.renderWeekNumber=function(e){var t=document.createElement("div"),i=e.getWeek(this.options.firstDay);return t.className=s.weekNumber,t.innerHTML=53===i&&0===e.getMonth()?"53 / 1":i,t},t.prototype.renderTooltip=function(){var e=document.createElement("div");return e.className=s.containerTooltip,e},t.prototype.weekdayName=function(e,t){return void 0===t&&(t="short"),new Date(1970,0,e,12,0,0,0).toLocaleString(this.options.lang,{weekday:t})},t.prototype.calcSkipDays=function(e){var t=e.getDay()-this.options.firstDay;return t<0&&(t+=7),t},t}(a.LPCore);t.Calendar=c},function(e,t,i){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=i(7),s=i(0),l=i(1),c=function(e){function t(t){var i=e.call(this)||this;i.datePicked=[],i.calendars=[],i.options={element:null,elementEnd:null,parentEl:null,firstDay:1,format:"YYYY-MM-DD",lang:"en-US",delimiter:" - ",numberOfMonths:1,numberOfColumns:1,startDate:null,endDate:null,zIndex:9999,position:"auto",selectForward:!1,selectBackward:!1,splitView:!1,inlineMode:!1,singleMode:!0,autoApply:!0,allowRepick:!1,showWeekNumbers:!1,showTooltip:!0,scrollToDate:!0,mobileFriendly:!0,resetButton:!1,autoRefresh:!1,lockDaysFormat:"YYYY-MM-DD",lockDays:[],disallowLockDaysInRange:!1,lockDaysInclusivity:"[]",highlightedDaysFormat:"YYYY-MM-DD",highlightedDays:[],dropdowns:{minYear:1990,maxYear:null,months:!1,years:!1},buttonText:{apply:"Apply",cancel:"Cancel",previousMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.919 0l2.748 2.667L5.333 8l5.334 5.333L7.919 16 0 8z" fill-rule="nonzero"/></svg>',nextMonth:'<svg width="11" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M2.748 16L0 13.333 5.333 8 0 2.667 2.748 0l7.919 8z" fill-rule="nonzero"/></svg>',reset:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/>\n </svg>'},tooltipText:{one:"day",other:"days"}},i.options=a(a({},i.options),t.element.dataset),Object.keys(i.options).forEach((function(e){"true"!==i.options[e]&&"false"!==i.options[e]||(i.options[e]="true"===i.options[e])}));var n=a(a({},i.options.dropdowns),t.dropdowns),r=a(a({},i.options.buttonText),t.buttonText),o=a(a({},i.options.tooltipText),t.tooltipText);i.options=a(a({},i.options),t),i.options.dropdowns=a({},n),i.options.buttonText=a({},r),i.options.tooltipText=a({},o),i.options.elementEnd||(i.options.allowRepick=!1),i.options.lockDays.length&&(i.options.lockDays=s.DateTime.convertArray(i.options.lockDays,i.options.lockDaysFormat)),i.options.highlightedDays.length&&(i.options.highlightedDays=s.DateTime.convertArray(i.options.highlightedDays,i.options.highlightedDaysFormat));var l=i.parseInput(),c=l[0],h=l[1];i.options.startDate&&(i.options.singleMode||i.options.endDate)&&(c=new s.DateTime(i.options.startDate,i.options.format,i.options.lang)),c&&i.options.endDate&&(h=new s.DateTime(i.options.endDate,i.options.format,i.options.lang)),c instanceof s.DateTime&&!isNaN(c.getTime())&&(i.options.startDate=c),i.options.startDate&&h instanceof s.DateTime&&!isNaN(h.getTime())&&(i.options.endDate=h),!i.options.singleMode||i.options.startDate instanceof s.DateTime||(i.options.startDate=null),i.options.singleMode||i.options.startDate instanceof s.DateTime&&i.options.endDate instanceof s.DateTime||(i.options.startDate=null,i.options.endDate=null);for(var d=0;d<i.options.numberOfMonths;d+=1){var u=i.options.startDate instanceof s.DateTime?i.options.startDate.clone():new s.DateTime;if(!i.options.startDate&&(0===d||i.options.splitView)){var p=i.options.maxDate?new s.DateTime(i.options.maxDate):null,f=i.options.minDate?new s.DateTime(i.options.minDate):null,g=i.options.numberOfMonths-1;f&&p&&u.isAfter(p)?(u=f.clone()).setDate(1):!f&&p&&u.isAfter(p)&&((u=p.clone()).setDate(1),u.setMonth(u.getMonth()-g))}u.setDate(1),u.setMonth(u.getMonth()+d),i.calendars[d]=u}if(i.options.showTooltip)if(i.options.tooltipPluralSelector)i.pluralSelector=i.options.tooltipPluralSelector;else try{var m=new Intl.PluralRules(i.options.lang);i.pluralSelector=m.select.bind(m)}catch(e){i.pluralSelector=function(e){return 0===Math.abs(e)?"one":"other"}}return i}return r(t,e),t.add=function(e,t){l.Litepicker.prototype[e]=t},t.prototype.DateTime=function(e,t){return e?new s.DateTime(e,t):new s.DateTime},t.prototype.init=function(){var e=this;this.options.plugins&&this.options.plugins.length&&this.options.plugins.forEach((function(t){l.Litepicker.prototype.hasOwnProperty(t)?l.Litepicker.prototype[t].init.call(e,e):console.warn("Litepicker: plugin «"+t+"» not found.")}))},t.prototype.parseInput=function(){var e=this.options.delimiter,t=new RegExp(""+e),i=this.options.element instanceof HTMLInputElement?this.options.element.value.split(e):[];if(this.options.elementEnd){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length&&this.options.elementEnd instanceof HTMLInputElement&&this.options.elementEnd.value.length)return[new s.DateTime(this.options.element.value,this.options.format),new s.DateTime(this.options.elementEnd.value,this.options.format)]}else if(this.options.singleMode){if(this.options.element instanceof HTMLInputElement&&this.options.element.value.length)return[new s.DateTime(this.options.element.value,this.options.format)]}else if(this.options.element instanceof HTMLInputElement&&t.test(this.options.element.value)&&i.length&&i.length%2==0){var n=i.slice(0,i.length/2).join(e),r=i.slice(i.length/2).join(e);return[new s.DateTime(n,this.options.format),new s.DateTime(r,this.options.format)]}return[]},t.prototype.isShowning=function(){return this.ui&&"none"!==this.ui.style.display},t.prototype.findPosition=function(e){var t=e.getBoundingClientRect(),i=this.ui.getBoundingClientRect(),n=this.options.position.split(" "),r=window.scrollX||window.pageXOffset,a=window.scrollY||window.pageYOffset,o=0,s=0;if("auto"!==n[0]&&/top|bottom/.test(n[0]))o=t[n[0]]+a,"top"===n[0]&&(o-=i.height);else{o=t.bottom+a;var l=t.bottom+i.height>window.innerHeight,c=t.top+a-i.height>=i.height;l&&c&&(o=t.top+a-i.height)}if(/left|right/.test(n[0])||n[1]&&"auto"!==n[1]&&/left|right/.test(n[1]))s=/left|right/.test(n[0])?t[n[0]]+r:t[n[1]]+r,"right"!==n[0]&&"right"!==n[1]||(s-=i.width);else{s=t.left+r,l=t.left+i.width>window.innerWidth;var h=t.right+r-i.width>=0;l&&h&&(s=t.right+r-i.width)}return{left:s,top:o}},t}(o.EventEmitter);t.LPCore=c},function(e,t,i){"use strict";var n,r="object"==("undefined"==typeof Reflect?"undefined":s(Reflect))?Reflect:null,a=r&&"function"==typeof r.apply?r.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)};n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function h(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function d(e,t,i,n){var r,a,o,l;if("function"!=typeof i)throw new TypeError('The "listener" argument must be of type Function. Received type '+s(i));if(void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),a=e._events),o=a[t]),void 0===o)o=a[t]=i,++e._eventsCount;else if("function"==typeof o?o=a[t]=n?[i,o]:[o,i]:n?o.unshift(i):o.push(i),(r=h(e))>0&&o.length>r&&!o.warned){o.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=o.length,l=c,console&&console.warn&&console.warn(l)}return e}function u(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,a(this.listener,this.target,e))}function p(e,t,i){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},r=u.bind(n);return r.listener=i,n.wrapFn=r,r}function f(e,t,i){var n=e._events;if(void 0===n)return[];var r=n[t];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(r):m(r,r.length)}function g(e){var t=this._events;if(void 0!==t){var i=t[e];if("function"==typeof i)return 1;if(void 0!==i)return i.length}return 0}function m(e,t){for(var i=new Array(t),n=0;n<t;++n)i[n]=e[n];return i}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return h(this)},l.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var n="error"===e,r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=r[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var c=l.length,h=m(l,c);for(i=0;i<c;++i)a(h[i],this,t)}return!0},l.prototype.addListener=function(e,t){return d(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return d(this,e,t,!0)},l.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+s(t));return this.on(e,p(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+s(t));return this.prependListener(e,p(this,e,t)),this},l.prototype.removeListener=function(e,t){var i,n,r,a,o;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+s(t));if(void 0===(n=this._events))return this;if(void 0===(i=n[e]))return this;if(i===t||i.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(r=-1,a=i.length-1;a>=0;a--)if(i[a]===t||i[a].listener===t){o=i[a].listener,r=a;break}if(r<0)return this;0===r?i.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(i,r),1===i.length&&(n[e]=i[0]),void 0!==n.removeListener&&this.emit("removeListener",e,o||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,i,n;if(void 0===(i=this._events))return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete i[e]),this;if(0===arguments.length){var r,a=Object.keys(i);for(n=0;n<a.length;++n)"removeListener"!==(r=a[n])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},l.prototype.listeners=function(e){return f(this,e,!0)},l.prototype.rawListeners=function(e){return f(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,i){(t=i(9)(!1)).push([e.i,':root{--litepicker-container-months-color-bg: #fff;--litepicker-container-months-box-shadow-color: #ddd;--litepicker-footer-color-bg: #fafafa;--litepicker-footer-box-shadow-color: #ddd;--litepicker-tooltip-color-bg: #fff;--litepicker-month-header-color: #333;--litepicker-button-prev-month-color: #9e9e9e;--litepicker-button-next-month-color: #9e9e9e;--litepicker-button-prev-month-color-hover: #2196f3;--litepicker-button-next-month-color-hover: #2196f3;--litepicker-month-width: calc(var(--litepicker-day-width) * 7);--litepicker-month-weekday-color: #9e9e9e;--litepicker-month-week-number-color: #9e9e9e;--litepicker-day-width: 38px;--litepicker-day-color: #333;--litepicker-day-color-hover: #2196f3;--litepicker-is-today-color: #f44336;--litepicker-is-in-range-color: #bbdefb;--litepicker-is-locked-color: #9e9e9e;--litepicker-is-start-color: #fff;--litepicker-is-start-color-bg: #2196f3;--litepicker-is-end-color: #fff;--litepicker-is-end-color-bg: #2196f3;--litepicker-button-cancel-color: #fff;--litepicker-button-cancel-color-bg: #9e9e9e;--litepicker-button-apply-color: #fff;--litepicker-button-apply-color-bg: #2196f3;--litepicker-button-reset-color: #909090;--litepicker-button-reset-color-hover: #2196f3;--litepicker-highlighted-day-color: #333;--litepicker-highlighted-day-color-bg: #ffeb3b}.show-week-numbers{--litepicker-month-width: calc(var(--litepicker-day-width) * 8)}.litepicker{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;font-size:0.8em;display:none}.litepicker button{border:none;background:none}.litepicker .container__main{display:-webkit-box;display:-ms-flexbox;display:flex}.litepicker .container__months{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;background-color:var(--litepicker-container-months-color-bg);border-radius:5px;-webkit-box-shadow:0 0 5px var(--litepicker-container-months-box-shadow-color);box-shadow:0 0 5px var(--litepicker-container-months-box-shadow-color);width:calc(var(--litepicker-month-width) + 10px);-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__months.columns-2{width:calc((var(--litepicker-month-width) * 2) + 20px)}.litepicker .container__months.columns-3{width:calc((var(--litepicker-month-width) * 3) + 30px)}.litepicker .container__months.columns-4{width:calc((var(--litepicker-month-width) * 4) + 40px)}.litepicker .container__months.split-view .month-item-header .button-previous-month,.litepicker .container__months.split-view .month-item-header .button-next-month{visibility:visible}.litepicker .container__months .month-item{padding:5px;width:var(--litepicker-month-width);-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__months .month-item-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-weight:500;padding:10px 5px;text-align:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--litepicker-month-header-color)}.litepicker .container__months .month-item-header div{-webkit-box-flex:1;-ms-flex:1;flex:1}.litepicker .container__months .month-item-header div>.month-item-name{margin-right:5px}.litepicker .container__months .month-item-header div>.month-item-year{padding:0}.litepicker .container__months .month-item-header .reset-button{color:var(--litepicker-button-reset-color)}.litepicker .container__months .month-item-header .reset-button>svg{fill:var(--litepicker-button-reset-color)}.litepicker .container__months .month-item-header .reset-button *{pointer-events:none}.litepicker .container__months .month-item-header .reset-button:hover{color:var(--litepicker-button-reset-color-hover)}.litepicker .container__months .month-item-header .reset-button:hover>svg{fill:var(--litepicker-button-reset-color-hover)}.litepicker .container__months .month-item-header .button-previous-month,.litepicker .container__months .month-item-header .button-next-month{visibility:hidden;text-decoration:none;padding:3px 5px;border-radius:3px;-webkit-transition:color 0.3s, border 0.3s;transition:color 0.3s, border 0.3s;cursor:default}.litepicker .container__months .month-item-header .button-previous-month *,.litepicker .container__months .month-item-header .button-next-month *{pointer-events:none}.litepicker .container__months .month-item-header .button-previous-month{color:var(--litepicker-button-prev-month-color)}.litepicker .container__months .month-item-header .button-previous-month>svg,.litepicker .container__months .month-item-header .button-previous-month>img{fill:var(--litepicker-button-prev-month-color)}.litepicker .container__months .month-item-header .button-previous-month:hover{color:var(--litepicker-button-prev-month-color-hover)}.litepicker .container__months .month-item-header .button-previous-month:hover>svg{fill:var(--litepicker-button-prev-month-color-hover)}.litepicker .container__months .month-item-header .button-next-month{color:var(--litepicker-button-next-month-color)}.litepicker .container__months .month-item-header .button-next-month>svg,.litepicker .container__months .month-item-header .button-next-month>img{fill:var(--litepicker-button-next-month-color)}.litepicker .container__months .month-item-header .button-next-month:hover{color:var(--litepicker-button-next-month-color-hover)}.litepicker .container__months .month-item-header .button-next-month:hover>svg{fill:var(--litepicker-button-next-month-color-hover)}.litepicker .container__months .month-item-weekdays-row{display:-webkit-box;display:-ms-flexbox;display:flex;justify-self:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;color:var(--litepicker-month-weekday-color)}.litepicker .container__months .month-item-weekdays-row>div{padding:5px 0;font-size:85%;-webkit-box-flex:1;-ms-flex:1;flex:1;width:var(--litepicker-day-width);text-align:center}.litepicker .container__months .month-item:first-child .button-previous-month{visibility:visible}.litepicker .container__months .month-item:last-child .button-next-month{visibility:visible}.litepicker .container__months .month-item.no-previous-month .button-previous-month{visibility:hidden}.litepicker .container__months .month-item.no-next-month .button-next-month{visibility:hidden}.litepicker .container__days{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;justify-self:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;text-align:center;-webkit-box-sizing:content-box;box-sizing:content-box}.litepicker .container__days>div,.litepicker .container__days>a{padding:5px 0;width:var(--litepicker-day-width)}.litepicker .container__days .day-item{color:var(--litepicker-day-color);text-align:center;text-decoration:none;border-radius:3px;-webkit-transition:color 0.3s, border 0.3s;transition:color 0.3s, border 0.3s;cursor:default}.litepicker .container__days .day-item:hover{color:var(--litepicker-day-color-hover);-webkit-box-shadow:inset 0 0 0 1px var(--litepicker-day-color-hover);box-shadow:inset 0 0 0 1px var(--litepicker-day-color-hover)}.litepicker .container__days .day-item.is-today{color:var(--litepicker-is-today-color)}.litepicker .container__days .day-item.is-locked{color:var(--litepicker-is-locked-color)}.litepicker .container__days .day-item.is-locked:hover{color:var(--litepicker-is-locked-color);-webkit-box-shadow:none;box-shadow:none;cursor:default}.litepicker .container__days .day-item.is-in-range{background-color:var(--litepicker-is-in-range-color);border-radius:0}.litepicker .container__days .day-item.is-start-date{color:var(--litepicker-is-start-color);background-color:var(--litepicker-is-start-color-bg);border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:0;border-bottom-right-radius:0}.litepicker .container__days .day-item.is-start-date.is-flipped{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-end-date{color:var(--litepicker-is-end-color);background-color:var(--litepicker-is-end-color-bg);border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-end-date.is-flipped{border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:0;border-bottom-right-radius:0}.litepicker .container__days .day-item.is-start-date.is-end-date{border-top-left-radius:5px;border-bottom-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px}.litepicker .container__days .day-item.is-highlighted{color:var(--litepicker-highlighted-day-color);background-color:var(--litepicker-highlighted-day-color-bg)}.litepicker .container__days .week-number{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;color:var(--litepicker-month-week-number-color);font-size:85%}.litepicker .container__footer{text-align:right;padding:10px 5px;margin:0 5px;background-color:var(--litepicker-footer-color-bg);-webkit-box-shadow:inset 0px 3px 3px 0px var(--litepicker-footer-box-shadow-color);box-shadow:inset 0px 3px 3px 0px var(--litepicker-footer-box-shadow-color);border-bottom-left-radius:5px;border-bottom-right-radius:5px}.litepicker .container__footer .preview-date-range{margin-right:10px;font-size:90%}.litepicker .container__footer .button-cancel{background-color:var(--litepicker-button-cancel-color-bg);color:var(--litepicker-button-cancel-color);border:0;padding:3px 7px 4px;border-radius:3px}.litepicker .container__footer .button-cancel *{pointer-events:none}.litepicker .container__footer .button-apply{background-color:var(--litepicker-button-apply-color-bg);color:var(--litepicker-button-apply-color);border:0;padding:3px 7px 4px;border-radius:3px;margin-left:10px;margin-right:10px}.litepicker .container__footer .button-apply:disabled{opacity:0.7}.litepicker .container__footer .button-apply *{pointer-events:none}.litepicker .container__tooltip{position:absolute;margin-top:-4px;padding:4px 8px;border-radius:4px;background-color:var(--litepicker-tooltip-color-bg);-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.25);box-shadow:0 1px 3px rgba(0,0,0,0.25);white-space:nowrap;font-size:11px;pointer-events:none;visibility:hidden}.litepicker .container__tooltip:before{position:absolute;bottom:-5px;left:calc(50% - 5px);border-top:5px solid rgba(0,0,0,0.12);border-right:5px solid transparent;border-left:5px solid transparent;content:""}.litepicker .container__tooltip:after{position:absolute;bottom:-4px;left:calc(50% - 4px);border-top:4px solid var(--litepicker-tooltip-color-bg);border-right:4px solid transparent;border-left:4px solid transparent;content:""}\n',""]),t.locals={showWeekNumbers:"show-week-numbers",litepicker:"litepicker",containerMain:"container__main",containerMonths:"container__months",columns2:"columns-2",columns3:"columns-3",columns4:"columns-4",splitView:"split-view",monthItemHeader:"month-item-header",buttonPreviousMonth:"button-previous-month",buttonNextMonth:"button-next-month",monthItem:"month-item",monthItemName:"month-item-name",monthItemYear:"month-item-year",resetButton:"reset-button",monthItemWeekdaysRow:"month-item-weekdays-row",noPreviousMonth:"no-previous-month",noNextMonth:"no-next-month",containerDays:"container__days",dayItem:"day-item",isToday:"is-today",isLocked:"is-locked",isInRange:"is-in-range",isStartDate:"is-start-date",isFlipped:"is-flipped",isEndDate:"is-end-date",isHighlighted:"is-highlighted",weekNumber:"week-number",containerFooter:"container__footer",previewDateRange:"preview-date-range",buttonCancel:"button-cancel",buttonApply:"button-apply",containerTooltip:"container__tooltip"},e.exports=t},function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i,n,r,a=e[1]||"",o=e[3];if(!o)return a;if(t&&"function"==typeof btoa){var s=(i=o,n=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(r," */")),l=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[a].concat(l).concat([s]).join("\n")}return[a].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,n){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(n)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(r[o]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);n&&r[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),t.push(l))}},t}},function(e,t,i){"use strict";var n,r={},a=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}();function o(e,t){for(var i=[],n={},r=0;r<e.length;r++){var a=e[r],o=t.base?a[0]+t.base:a[0],s={css:a[1],media:a[2],sourceMap:a[3]};n[o]?n[o].parts.push(s):i.push(n[o]={id:o,parts:[s]})}return i}function l(e,t){for(var i=0;i<e.length;i++){var n=e[i],a=r[n.id],o=0;if(a){for(a.refs++;o<a.parts.length;o++)a.parts[o](n.parts[o]);for(;o<n.parts.length;o++)a.parts.push(m(n.parts[o],t))}else{for(var s=[];o<n.parts.length;o++)s.push(m(n.parts[o],t));r[n.id]={id:n.id,refs:1,parts:s}}}}function c(e){var t=document.createElement("style");if(void 0===e.attributes.nonce){var n=i.nc;n&&(e.attributes.nonce=n)}if(Object.keys(e.attributes).forEach((function(i){t.setAttribute(i,e.attributes[i])})),"function"==typeof e.insert)e.insert(t);else{var r=a(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}return t}var h,d=(h=[],function(e,t){return h[e]=t,h.filter(Boolean).join("\n")});function u(e,t,i,n){var r=i?"":n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,r);else{var a=document.createTextNode(r),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function p(e,t,i){var n=i.css,r=i.media,a=i.sourceMap;if(r&&e.setAttribute("media",r),a&&btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var f=null,g=0;function m(e,t){var i,n,r;if(t.singleton){var a=g++;i=f||(f=c(t)),n=u.bind(null,i,a,!1),r=u.bind(null,i,a,!0)}else i=c(t),n=p.bind(null,i,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).attributes="object"==s(t.attributes)?t.attributes:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n));var i=o(e,t);return l(i,t),function(e){for(var n=[],a=0;a<i.length;a++){var s=i[a],c=r[s.id];c&&(c.refs--,n.push(c))}e&&l(o(e,t),t);for(var h=0;h<n.length;h++){var d=n[h];if(0===d.refs){for(var u=0;u<d.parts.length;u++)d.parts[u]();delete r[d.id]}}}}},function(e,t,i){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r=i(0),a=i(1),o=i(2);a.Litepicker.prototype.show=function(e){void 0===e&&(e=null),this.emit("before:show",e);var t=e||this.options.element;if(this.triggerElement=t,!this.isShowning()){if(this.options.inlineMode)return this.ui.style.position="relative",this.ui.style.display="inline-block",this.ui.style.top=null,this.ui.style.left=null,this.ui.style.bottom=null,void(this.ui.style.right=null);this.scrollToDate(e),this.render(),this.ui.style.position="absolute",this.ui.style.display="block",this.ui.style.zIndex=this.options.zIndex;var i=this.findPosition(t);this.ui.style.top=i.top+"px",this.ui.style.left=i.left+"px",this.ui.style.right=null,this.ui.style.bottom=null,this.emit("show",e)}},a.Litepicker.prototype.hide=function(){this.isShowning()&&(this.datePicked.length=0,this.updateInput(),this.options.inlineMode?this.render():(this.ui.style.display="none",this.emit("hide")))},a.Litepicker.prototype.getDate=function(){return this.getStartDate()},a.Litepicker.prototype.getStartDate=function(){return this.options.startDate?this.options.startDate.clone():null},a.Litepicker.prototype.getEndDate=function(){return this.options.endDate?this.options.endDate.clone():null},a.Litepicker.prototype.setDate=function(e,t){void 0===t&&(t=!1);var i=new r.DateTime(e,this.options.format,this.options.lang);o.dateIsLocked(i,this.options,[i])&&!t?this.emit("error:date",i):(this.setStartDate(e),this.options.inlineMode&&this.render(),this.emit("selected",this.getDate()))},a.Litepicker.prototype.setStartDate=function(e){e&&(this.options.startDate=new r.DateTime(e,this.options.format,this.options.lang),this.updateInput())},a.Litepicker.prototype.setEndDate=function(e){e&&(this.options.endDate=new r.DateTime(e,this.options.format,this.options.lang),this.options.startDate.getTime()>this.options.endDate.getTime()&&(this.options.endDate=this.options.startDate.clone(),this.options.startDate=new r.DateTime(e,this.options.format,this.options.lang)),this.updateInput())},a.Litepicker.prototype.setDateRange=function(e,t,i){void 0===i&&(i=!1),this.triggerElement=void 0;var n=new r.DateTime(e,this.options.format,this.options.lang),a=new r.DateTime(t,this.options.format,this.options.lang);(this.options.disallowLockDaysInRange?o.rangeIsLocked([n,a],this.options):o.dateIsLocked(n,this.options,[n,a])||o.dateIsLocked(a,this.options,[n,a]))&&!i?this.emit("error:range",[n,a]):(this.setStartDate(n),this.setEndDate(a),this.options.inlineMode&&this.render(),this.updateInput(),this.emit("selected",this.getStartDate(),this.getEndDate()))},a.Litepicker.prototype.gotoDate=function(e,t){void 0===t&&(t=0);var i=new r.DateTime(e);i.setDate(1),this.calendars[t]=i.clone(),this.render()},a.Litepicker.prototype.setLockDays=function(e){this.options.lockDays=r.DateTime.convertArray(e,this.options.lockDaysFormat),this.render()},a.Litepicker.prototype.setHighlightedDays=function(e){this.options.highlightedDays=r.DateTime.convertArray(e,this.options.highlightedDaysFormat),this.render()},a.Litepicker.prototype.setOptions=function(e){delete e.element,delete e.elementEnd,delete e.parentEl,e.startDate&&(e.startDate=new r.DateTime(e.startDate,this.options.format,this.options.lang)),e.endDate&&(e.endDate=new r.DateTime(e.endDate,this.options.format,this.options.lang));var t=n(n({},this.options.dropdowns),e.dropdowns),i=n(n({},this.options.buttonText),e.buttonText),a=n(n({},this.options.tooltipText),e.tooltipText);this.options=n(n({},this.options),e),this.options.dropdowns=n({},t),this.options.buttonText=n({},i),this.options.tooltipText=n({},a),!this.options.singleMode||this.options.startDate instanceof r.DateTime||(this.options.startDate=null,this.options.endDate=null),this.options.singleMode||this.options.startDate instanceof r.DateTime&&this.options.endDate instanceof r.DateTime||(this.options.startDate=null,this.options.endDate=null);for(var o=0;o<this.options.numberOfMonths;o+=1){var s=this.options.startDate?this.options.startDate.clone():new r.DateTime;s.setDate(1),s.setMonth(s.getMonth()+o),this.calendars[o]=s}this.options.lockDays.length&&(this.options.lockDays=r.DateTime.convertArray(this.options.lockDays,this.options.lockDaysFormat)),this.options.highlightedDays.length&&(this.options.highlightedDays=r.DateTime.convertArray(this.options.highlightedDays,this.options.highlightedDaysFormat)),this.render(),this.options.inlineMode&&this.show(),this.updateInput()},a.Litepicker.prototype.clearSelection=function(){this.options.startDate=null,this.options.endDate=null,this.datePicked.length=0,this.updateInput(),this.isShowning()&&this.render(),this.emit("clear:selection")},a.Litepicker.prototype.destroy=function(){this.ui&&this.ui.parentNode&&(this.ui.parentNode.removeChild(this.ui),this.ui=null),this.emit("destroy")}}])},"object"==s(t)&&"object"==s(e)?e.exports=o():(r=[],void 0===(a="function"==typeof(n=o)?n.apply(t,r):n)||(e.exports=a))}).call(this,i(24)(e))},function(e,t,i){"use strict";i.d(t,"a",(function(){return x}));var n=i(6),r=i(7),a=i(8),o=i(14),s=i(11),l=i(18),c=i.n(l),h=function(e){return e.replace(/([A-Z])/g,(function(e){return"-".concat(e[0].toLowerCase())}))},d=i(10),u=function(e,t,i){var n=t.className||t.class,r=i.className||i.class,a=g(e),o=g(n?n.split(" "):[]),s=g(r?r.split(" "):[]),l=[];return a.forEach((function(e){o.has(e)?(l.push(e),o.delete(e)):s.has(e)||l.push(e)})),o.forEach((function(e){return l.push(e)})),l.join(" ")},p=function(e,t){var i="on"+e,n=i in t;if(!n){var r=t.createElement("div");r.setAttribute(i,"return;"),n="function"==typeof r[i]}return n},f=function(e,t,i){var n=e.__events||(e.__events={}),r=n[t];r&&e.removeEventListener(t,r),e.addEventListener(t,n[t]=function(e){i&&i.call(this,e)})},g=function(e){var t=new Map;return e.forEach((function(e){return t.set(e,e)})),t},m=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){return t.forEach((function(t){"function"==typeof t?t(e):null!=t&&(t.current=e)}))}};function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=Object(s.a)(e);if(t){var r=Object(s.a)(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return Object(o.a)(this,i)}}var y=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i},b=function(e,t,i){var o=e.toLowerCase().split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(""),s=function(t){Object(a.a)(l,t);var s=v(l);function l(e){var t;return Object(n.a)(this,l),(t=s.call(this,e)).setComponentElRef=function(e){t.componentEl=e},t}return Object(r.a)(l,[{key:"componentDidMount",value:function(){this.componentDidUpdate(this.props)}},{key:"componentDidUpdate",value:function(e){!function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof Element){var n=u(e.classList,t,i);""!==n&&(e.className=n),Object.keys(t).forEach((function(i){if("children"!==i&&"style"!==i&&"ref"!==i&&"class"!==i&&"className"!==i&&"forwardedRef"!==i)if(0===i.indexOf("on")&&i[2]===i[2].toUpperCase()){var n=i.substring(2),r=n[0].toLowerCase()+n.substring(1);"undefined"==typeof document||p(r,document)||f(e,r,t[i])}else{e[i]=t[i],"string"===Object(d.a)(t[i])?e.setAttribute(h(i),t[i]):e[i]=t[i]}}))}}(this.componentEl,this.props,e)}},{key:"render",value:function(){var t=this.props,n=t.children,r=t.forwardedRef,a=t.style,o=(t.className,t.ref,y(t,["children","forwardedRef","style","className","ref"])),s=Object.keys(o).reduce((function(e,t){if(0===t.indexOf("on")&&t[2]===t[2].toUpperCase()){var i=t.substring(2).toLowerCase();"undefined"!=typeof document&&p(i,document)&&(e[t]=o[t])}else e[t]=o[t];return e}),{});i&&(s=i(this.props,s));var l=Object.assign(Object.assign({},s),{ref:m(r,this.setComponentElRef),style:a});return c.a.createElement(e,l,n)}}],[{key:"displayName",get:function(){return o}}]),l}(c.a.Component);return t&&(s.contextType=t),function(e,t){var i=function(t,i){return c.a.createElement(e,Object.assign({},t,{forwardedRef:i}))};return i.displayName=t,c.a.forwardRef(i)}(s,o)},x=b("presto-player")},function(e,t,i){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}i.d(t,"a",(function(){return u}));var r,a=r||(r={});a.Pop="POP",a.Push="PUSH",a.Replace="REPLACE";var o=function(e){return e};function s(e){e.preventDefault(),e.returnValue=""}function l(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function c(){return Math.random().toString(36).substr(2,8)}function h(e){var t=e.pathname,i=e.search;return(void 0===t?"/":t)+(void 0===i?"":i)+(void 0===(e=e.hash)?"":e)}function d(e){var t={};if(e){var i=e.indexOf("#");0<=i&&(t.hash=e.substr(i),e=e.substr(0,i)),0<=(i=e.indexOf("?"))&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}function u(e){function t(){var e=f.location,t=g.state||{};return[t.idx,o({pathname:e.pathname,search:e.search,hash:e.hash,state:t.usr||null,key:t.key||"default"})]}function i(e){return"string"==typeof e?e:h(e)}function a(e,t){return void 0===t&&(t=null),o(n({},b,{},"string"==typeof e?d(e):e,{state:t,key:c()}))}function u(e){v=e,e=t(),y=e[0],b=e[1],x.call({action:v,location:b})}function p(e){g.go(e)}void 0===e&&(e={});var f=void 0===(e=e.window)?document.defaultView:e,g=f.history,m=null;f.addEventListener("popstate",(function(){if(m)w.call(m),m=null;else{var e=r.Pop,i=t(),n=i[0];if(i=i[1],w.length){if(null!=n){var a=y-n;a&&(m={action:e,location:i,retry:function(){p(-1*a)}},p(a))}}else u(e)}}));var v=r.Pop,y=(e=t())[0],b=e[1],x=l(),w=l();return null==y&&(y=0,g.replaceState(n({},g.state,{idx:y}),"")),{get action(){return v},get location(){return b},createHref:i,push:function e(t,n){var o=r.Push,s=a(t,n);if(!w.length||(w.call({action:o,location:s,retry:function(){e(t,n)}}),0)){var l=[{usr:s.state,key:s.key,idx:y+1},i(s)];s=l[0],l=l[1];try{g.pushState(s,"",l)}catch(e){f.location.assign(l)}u(o)}},replace:function e(t,n){var o=r.Replace,s=a(t,n);w.length&&(w.call({action:o,location:s,retry:function(){e(t,n)}}),1)||(s=[{usr:s.state,key:s.key,idx:y},i(s)],g.replaceState(s[0],"",s[1]),u(o))},go:p,back:function(){p(-1)},forward:function(){p(1)},listen:function(e){return x.push(e)},block:function(e){var t=w.push(e);return 1===w.length&&f.addEventListener("beforeunload",s),function(){t(),w.length||f.removeEventListener("beforeunload",s)}}}}},,function(e,t,i){var n="prestoPlayerdist".replace(/[^a-zA-Z0-9_-]/g,"");i.p=window["__wpackIo".concat(n)]},function(e,t,i){(function(e){var t=i(12),n=function(e){"use strict";var i=Object.prototype,n=i.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,i){return e[t]=i}}function c(e,t,i,n){var r=t&&t.prototype instanceof u?t:u,a=Object.create(r.prototype),o=new A(n||[]);return a._invoke=function(e,t,i){var n="suspendedStart";return function(r,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw a;return C()}for(i.method=r,i.arg=a;;){var o=i.delegate;if(o){var s=w(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var l=h(e,t,i);if("normal"===l.type){if(n=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),a}function h(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function u(){}function p(){}function f(){}var g={};g[a]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(S([])));v&&v!==i&&n.call(v,a)&&(g=v);var y=f.prototype=u.prototype=Object.create(g);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,i){var r;this._invoke=function(a,o){function s(){return new i((function(r,s){!function r(a,o,s,l){var c=h(e[a],e,o);if("throw"!==c.type){var d=c.arg,u=d.value;return u&&"object"===t(u)&&n.call(u,"__await")?i.resolve(u.__await).then((function(e){r("next",e,s,l)}),(function(e){r("throw",e,s,l)})):i.resolve(u).then((function(e){d.value=e,s(d)}),(function(e){return r("throw",e,s,l)}))}l(c.arg)}(a,o,r,s)}))}return r=r?r.then(s,s):s()}}function w(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=h(i,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var r=n.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=y.constructor=f,f.constructor=p,p.displayName=l(f,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(x.prototype),x.prototype[o]=function(){return this},e.AsyncIterator=x,e.async=function(t,i,n,r,a){void 0===a&&(a=Promise);var o=new x(c(t,i,n,r),a);return e.isGeneratorFunction(i)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(y),l(y,s,"Generator"),y[a]=function(){return this},y.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var i in e)t.push(i);return t.reverse(),function i(){for(;t.length;){var n=t.pop();if(n in e)return i.value=n,i.done=!1,i}return i.done=!0,i}},e.values=S,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(i,n){return o.type="throw",o.arg=e,t.next=i,n&&(t.method="next",t.arg=void 0),!!n}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),_(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;_(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:S(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,i(24)(e))},,function(e,t,i){"use strict";var n,r=i(12);
|
29 |
+
/*!
|
30 |
+
* ApexCharts v3.27.1
|
31 |
+
* (c) 2018-2021 Juned Chhipa
|
32 |
+
* Released under the MIT License.
|
33 |
+
*/function a(e){return(a="function"==typeof Symbol&&"symbol"==r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,i){return t&&s(e.prototype,t),i&&s(e,i),e}function c(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function h(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function d(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?h(Object(i),!0).forEach((function(t){c(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&function(e,t){(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}(e,t)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return!t||"object"!=r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return f(this,i)}}function m(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var y=function(){function e(){o(this,e)}return l(e,[{key:"shadeRGBColor",value:function(e,t){var i=t.split(","),n=e<0?0:255,r=e<0?-1*e:e,a=parseInt(i[0].slice(4),10),o=parseInt(i[1],10),s=parseInt(i[2],10);return"rgb("+(Math.round((n-a)*r)+a)+","+(Math.round((n-o)*r)+o)+","+(Math.round((n-s)*r)+s)+")"}},{key:"shadeHexColor",value:function(e,t){var i=parseInt(t.slice(1),16),n=e<0?0:255,r=e<0?-1*e:e,a=i>>16,o=i>>8&255,s=255&i;return"#"+(16777216+65536*(Math.round((n-a)*r)+a)+256*(Math.round((n-o)*r)+o)+(Math.round((n-s)*r)+s)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,i){return e.isColorHex(i)?this.shadeHexColor(t,i):this.shadeRGBColor(t,i)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&"object"===a(e)&&!Array.isArray(e)&&null!=e}},{key:"listToArray",value:function(e){var t,i=[];for(t=0;t<e.length;t++)i[t]=e[t];return i}},{key:"extend",value:function(e,t){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}return t});var n=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach((function(r){i.isObject(t[r])&&r in e?n[r]=i.extend(e[r],t[r]):Object.assign(n,c({},r,t[r]))})),n}},{key:"extendArray",value:function(t,i){var n=[];return t.map((function(t){n.push(e.extend(i,t))})),n}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],i=0;i<e.length;i++)t[i]=this.clone(e[i]);return t}if("[object Null]"===Object.prototype.toString.call(e))return null;if("[object Date]"===Object.prototype.toString.call(e))return e;if("object"===a(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=this.clone(e[r]));return n}return e}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}},{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}},{key:"parseNumber",value:function(e){return null===e?e:parseFloat(e)}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){var t=String(e).split(/[eE]/);if(1===t.length)return t[0];var i="",n=e<0?"-":"",r=t[0].replace(".",""),a=Number(t[1])+1;if(a<0){for(i=n+"0.";a++;)i+="0";return i+r.replace(/^-/,"")}for(a-=r.length;a--;)i+="0";return r+i}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),i=e.clientHeight,n=e.clientWidth;return i-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),i]}},{key:"getBoundingClientRect",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce((function(e,t){return Array.isArray(t)&&(t=t.reduce((function(e,t){return e.length>t.length?e:t}))),e.length>t.length?e:t}),0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==e.substring(0,1)&&(e="#999999");var i=e.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var n=0;n<i.length;n++)i[n]=parseInt(1===i[n].length?i[n]+i[n]:i[n],16);return void 0!==t&&i.push(t),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,t){for(var i=[],n=2*Math.PI/t,r=0;r<t;r++){var a={};a.x=e*Math.sin(r*n),a.y=-e*Math.cos(r*n),i.push(a)}return i}},{key:"polarToCartesian",value:function(e,t,i,n){var r=(n-90)*Math.PI/180;return{x:e+i*Math.cos(r),y:t+i*Math.sin(r)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",i=e.toString().slice();return i.replace(/[` ~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,i){if(i>=e.length)for(var n=i-e.length+1;n--;)e.push(void 0);return e.splice(i,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e.style.key=t[i])}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0&&parseInt(e.substring(n+5,e.indexOf(".",n)),10)}},{key:"sanitizeDom",value:function(e){return e.replace(/\&/g,"&").replace(/\</g,"<").replace(/\>/g,">").replace(/\"/g,""")}}]),e}(),b=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.setEasingFunctions()}return l(e,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;case"easeinout":e="<>";break;case"swing":e=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1};break;case"bounce":e=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375};break;case"elastic":e=function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1};break;default:e="<>"}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,i,n){e.attr(t).animate(n).attr(i)}},{key:"animateMarker",value:function(e,t,i,n,r,a){t||(t=0),e.attr({r:t,width:t,height:t}).animate(n,r).attr({r:i,width:i.width,height:i.height}).afterAll((function(){a()}))}},{key:"animateCircle",value:function(e,t,i,n,r){e.attr({r:t.r,cx:t.cx,cy:t.cy}).animate(n,r).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(e,t,i,n,r){e.attr(t).animate(n).attr(i).afterAll((function(){return r()}))}},{key:"animatePathsGradually",value:function(e){var t=e.el,i=e.realIndex,n=e.j,r=e.fill,a=e.pathFrom,o=e.pathTo,s=e.speed,l=e.delay,c=this.w,h=0;c.config.chart.animations.animateGradually.enabled&&(h=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(h=0),this.morphSVG(t,i,n,"line"!==c.config.chart.type||c.globals.comboCharts?r:"stroke",a,o,s,l*h)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(e){e.el.classList.remove("apexcharts-element-hidden")}))}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof t.config.chart.events.animationEnd&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,i,n,r,a,o,s){var l=this,c=this.w;r||(r=e.attr("pathFrom")),a||(a=e.attr("pathTo"));var h=function(e){return"radar"===c.config.chart.type&&(o=1),"M 0 ".concat(c.globals.gridHeight)};(!r||r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r=h()),(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=h()),c.globals.shouldAnimate||(o=1),e.plot(r).animate(1,c.globals.easing,s).plot(r).animate(o,c.globals.easing,s).plot(a).afterAll((function(){y.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(e):"none"!==n&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&t===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(e),l.showDelayedElements()}))}}]),e}(),x=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"getDefaultFilter",value:function(e,t){var i=this.w;e.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==i.config.states.normal.filter?this.applyFilter(e,t,i.config.states.normal.filter.type,i.config.states.normal.filter.value):i.config.chart.dropShadow.enabled&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var i=this.w;i.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,i){var n=this,r=this.w,a=i.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var i=r.config.chart.dropShadow;(i.enabled?n.addShadow(e,t,i):e).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:a}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,i){var n=this,r=this.w,a=i.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var i=r.config.chart.dropShadow;(i.enabled?n.addShadow(e,t,i):e).componentTransfer({rgb:{type:"linear",slope:a}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(i){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:n});break;case"darken":this.addDarkenFilter(e,t,{intensity:n})}}},{key:"addShadow",value:function(e,t,i){var n=i.blur,r=i.top,a=i.left,o=i.color,s=i.opacity,l=e.flood(Array.isArray(o)?o[t]:o,s).composite(e.sourceAlpha,"in").offset(a,r).gaussianBlur(n).merge(e.source);return e.blend(e.source,l)}},{key:"dropShadow",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=t.top,r=t.left,a=t.blur,o=t.color,s=t.opacity,l=t.noUserSpaceOnUse,c=this.w;return e.unfilter(!0),y.isIE()&&"radialBar"===c.config.chart.type||(o=Array.isArray(o)?o[i]:o,e.filter((function(e){var t;t=y.isSafari()||y.isFirefox()||y.isIE()?e.flood(o,s).composite(e.sourceAlpha,"in").offset(r,n).gaussianBlur(a):e.flood(o,s).composite(e.sourceAlpha,"in").offset(r,n).gaussianBlur(a).merge(e.source),e.blend(e.source,t)})),l||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,i){var n=this.w;if(void 0!==n.globals.selectedDataPoints[t]&&n.globals.selectedDataPoints[t].indexOf(i)>-1){e.node.setAttribute("selected",!0);var r=n.config.states.active.filter;"none"!==r&&this.applyFilter(e,t,r.type,r.value)}}},{key:"_scaleFilterSize",value:function(e){!function(t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),e}(),w=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"drawLine",value:function(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=this.w,l=s.globals.dom.Paper.line().attr({x1:e,y1:t,x2:i,y2:n,stroke:r,"stroke-dasharray":a,"stroke-width":o});return l}},{key:"drawRect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,h=this.w,d=h.globals.dom.Paper.rect();return d.attr({x:e,y:t,width:i>0?i:0,height:n>0?n:0,rx:r,ry:r,opacity:o,"stroke-width":null!==s?s:0,stroke:null!==l?l:"none","stroke-dasharray":c}),d.node.setAttribute("fill",a),d}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",r=this.w,a=r.globals.dom.Paper.polygon(e).attr({fill:n,stroke:t,"stroke-width":i});return a}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;e<0&&(e=0);var n=i.globals.dom.Paper.circle(2*e);return null!==t&&n.attr(t),n}},{key:"drawPath",value:function(e){var t=e.d,i=void 0===t?"":t,n=e.stroke,r=void 0===n?"#a8a8a8":n,a=e.strokeWidth,o=void 0===a?1:a,s=e.fill,l=e.fillOpacity,c=void 0===l?1:l,h=e.strokeOpacity,d=void 0===h?1:h,u=e.classes,p=e.strokeLinecap,f=void 0===p?null:p,g=e.strokeDashArray,m=void 0===g?0:g,v=this.w;return null===f&&(f=v.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(v.globals.gridHeight)),v.globals.dom.Paper.path(i).attr({fill:s,"fill-opacity":c,stroke:r,"stroke-opacity":d,"stroke-linecap":f,"stroke-width":o,"stroke-dasharray":m,class:u})}},{key:"group",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,i=t.globals.dom.Paper.group();return null!==e&&i.attr(e),i}},{key:"move",value:function(e,t){return["M",e,t].join(" ")}},{key:"line",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=null;return null===i?n=["L",e,t].join(" "):"H"===i?n=["H",e].join(" "):"V"===i&&(n=["V",t].join(" ")),n}},{key:"curve",value:function(e,t,i,n,r,a){return["C",e,t,i,n,r,a].join(" ")}},{key:"quadraticCurve",value:function(e,t,i,n){return["Q",e,t,i,n].join(" ")}},{key:"arc",value:function(e,t,i,n,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l="A";s&&(l="a");var c=[l,e,t,i,n,r,a,o].join(" ");return c}},{key:"renderPaths",value:function(e){var t,i=e.j,n=e.realIndex,r=e.pathFrom,a=e.pathTo,o=e.stroke,s=e.strokeWidth,l=e.strokeLinecap,c=e.fill,h=e.animationDelay,u=e.initialSpeed,p=e.dataChangeSpeed,f=e.className,g=e.shouldClipToGrid,m=void 0===g||g,v=e.bindEventsOnPaths,y=void 0===v||v,w=e.drawShadow,k=void 0===w||w,_=this.w,A=new x(this.ctx),S=new b(this.ctx),C=this.w.config.chart.animations.enabled,T=C&&this.w.config.chart.animations.dynamicAnimation.enabled,P=!!(C&&!_.globals.resized||T&&_.globals.dataChanged&&_.globals.shouldAnimate);P?t=r:(t=a,_.globals.animationEnded=!0);var L,E=_.config.stroke.dashArray;L=Array.isArray(E)?E[n]:_.config.stroke.dashArray;var M=this.drawPath({d:t,stroke:o,strokeWidth:s,fill:c,fillOpacity:1,classes:f,strokeLinecap:l,strokeDashArray:L});if(M.attr("index",n),m&&M.attr({"clip-path":"url(#gridRectMask".concat(_.globals.cuid,")")}),"none"!==_.config.states.normal.filter.type)A.getDefaultFilter(M,n);else if(_.config.chart.dropShadow.enabled&&k&&(!_.config.chart.dropShadow.enabledOnSeries||_.config.chart.dropShadow.enabledOnSeries&&-1!==_.config.chart.dropShadow.enabledOnSeries.indexOf(n))){var I=_.config.chart.dropShadow;A.dropShadow(M,I,n)}y&&(M.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,M)),M.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,M)),M.node.addEventListener("mousedown",this.pathMouseDown.bind(this,M))),M.attr({pathTo:a,pathFrom:r});var O={el:M,j:i,realIndex:n,pathFrom:r,pathTo:a,fill:c,strokeWidth:s,delay:h};return!C||_.globals.resized||_.globals.dataChanged?!_.globals.resized&&_.globals.dataChanged||S.showDelayedElements():S.animatePathsGradually(d(d({},O),{},{speed:u})),_.globals.dataChanged&&T&&P&&S.animatePathsGradually(d(d({},O),{},{speed:p})),M}},{key:"drawPattern",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=this.w,o=a.globals.dom.Paper.pattern(t,i,(function(a){"horizontalLines"===e?a.line(0,0,i,0).stroke({color:n,width:r+1}):"verticalLines"===e?a.line(0,0,0,t).stroke({color:n,width:r+1}):"slantedLines"===e?a.line(0,0,t,i).stroke({color:n,width:r}):"squares"===e?a.rect(t,i).fill("none").stroke({color:n,width:r}):"circles"===e&&a.circle(t).fill("none").stroke({color:n,width:r})}));return o}},{key:"drawGradient",value:function(e,t,i,n,r){var a,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,h=this.w;t.length<9&&0===t.indexOf("#")&&(t=y.hexToRgba(t,n)),i.length<9&&0===i.indexOf("#")&&(i=y.hexToRgba(i,r));var d=0,u=1,p=1,f=null;null!==s&&(d=void 0!==s[0]?s[0]/100:0,u=void 0!==s[1]?s[1]/100:1,p=void 0!==s[2]?s[2]/100:1,f=void 0!==s[3]?s[3]/100:null);var g=!("donut"!==h.config.chart.type&&"pie"!==h.config.chart.type&&"polarArea"!==h.config.chart.type&&"bubble"!==h.config.chart.type);if(a=null===l||0===l.length?h.globals.dom.Paper.gradient(g?"radial":"linear",(function(e){e.at(d,t,n),e.at(u,i,r),e.at(p,i,r),null!==f&&e.at(f,t,n)})):h.globals.dom.Paper.gradient(g?"radial":"linear",(function(e){(Array.isArray(l[c])?l[c]:l).forEach((function(t){e.at(t.offset/100,t.color,t.opacity)}))})),g){var m=h.globals.gridWidth/2,v=h.globals.gridHeight/2;"bubble"!==h.config.chart.type?a.attr({gradientUnits:"userSpaceOnUse",cx:m,cy:v,r:o}):a.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===e?a.from(0,0).to(0,1):"diagonal"===e?a.from(0,0).to(1,1):"horizontal"===e?a.from(0,1).to(1,1):"diagonal2"===e&&a.from(1,0).to(0,1);return a}},{key:"drawText",value:function(e){var t,i=e.x,n=e.y,r=e.text,a=e.textAnchor,o=e.fontSize,s=e.fontFamily,l=e.fontWeight,c=e.foreColor,h=e.opacity,d=e.cssClass,u=void 0===d?"":d,p=e.isPlainText,f=void 0===p||p,g=this.w;return void 0===r&&(r=""),a||(a="start"),c&&c.length||(c=g.config.chart.foreColor),s=s||g.config.chart.fontFamily,l=l||"regular",(t=Array.isArray(r)?g.globals.dom.Paper.text((function(e){for(var t=0;t<r.length;t++)0===t?e.tspan(r[t]):e.tspan(r[t]).newLine()})):f?g.globals.dom.Paper.plain(r):g.globals.dom.Paper.text((function(e){return e.tspan(r)}))).attr({x:i,y:n,"text-anchor":a,"dominant-baseline":"auto","font-size":o,"font-family":s,"font-weight":l,fill:c,class:"apexcharts-text "+u}),t.node.style.fontFamily=s,t.node.style.opacity=h,t}},{key:"drawMarker",value:function(e,t,i){e=e||0;var n=i.pSize||0,r=null;if("square"===i.shape||"rect"===i.shape){var a=void 0===i.pRadius?n/2:i.pRadius;null!==t&&n||(n=0,a=0);var o=1.2*n+a,s=this.drawRect(o,o,o,o,a);s.attr({x:e-o/2,y:t-o/2,cx:e,cy:t,class:i.class?i.class:"",fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,stroke:i.pointStrokeColor,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}),r=s}else"circle"!==i.shape&&i.shape||(y.isNumber(t)||(n=0,t=0),r=this.drawCircle(n,{cx:e,cy:t,class:i.class?i.class:"",stroke:i.pointStrokeColor,fill:i.pointFillColor,"fill-opacity":i.pointFillOpacity?i.pointFillOpacity:1,"stroke-width":i.pointStrokeWidth?i.pointStrokeWidth:0,"stroke-opacity":i.pointStrokeOpacity?i.pointStrokeOpacity:1}));return r}},{key:"pathMouseEnter",value:function(e,t){var i=this.w,n=new x(this.ctx),r=parseInt(e.node.getAttribute("index"),10),a=parseInt(e.node.getAttribute("j"),10);if("function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:r,dataPointIndex:a,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:r,dataPointIndex:a,w:i}]),("none"===i.config.states.active.filter.type||"true"!==e.node.getAttribute("selected"))&&"none"!==i.config.states.hover.filter.type&&"none"!==i.config.states.active.filter.type&&!i.globals.isTouchDevice){var o=i.config.states.hover.filter;n.applyFilter(e,r,o.type,o.value)}}},{key:"pathMouseLeave",value:function(e,t){var i=this.w,n=new x(this.ctx),r=parseInt(e.node.getAttribute("index"),10),a=parseInt(e.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:r,dataPointIndex:a,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:r,dataPointIndex:a,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"!==i.config.states.hover.filter.type&&n.getDefaultFilter(e,r)}},{key:"pathMouseDown",value:function(e,t){var i=this.w,n=new x(this.ctx),r=parseInt(e.node.getAttribute("index"),10),a=parseInt(e.node.getAttribute("j"),10),o="false";if("true"===e.node.getAttribute("selected")){if(e.node.setAttribute("selected","false"),i.globals.selectedDataPoints[r].indexOf(a)>-1){var s=i.globals.selectedDataPoints[r].indexOf(a);i.globals.selectedDataPoints[r].splice(s,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,c=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,h=function(e){Array.prototype.forEach.call(e,(function(e){e.node.setAttribute("selected","false"),n.getDefaultFilter(e,r)}))};h(l),h(c)}e.node.setAttribute("selected","true"),o="true",void 0===i.globals.selectedDataPoints[r]&&(i.globals.selectedDataPoints[r]=[]),i.globals.selectedDataPoints[r].push(a)}if("true"===o){var d=i.config.states.active.filter;"none"!==d&&n.applyFilter(e,r,d.type,d.value)}else"none"!==i.config.states.active.filter.type&&n.getDefaultFilter(e,r);"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:a,w:i}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:r,dataPointIndex:a,w:i}])}},{key:"rotateAroundCenter",value:function(e){var t=e.getBBox();return{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,i,n){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.w,o=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:i,foreColor:"#fff",opacity:0});n&&o.attr("transform",n),a.globals.dom.Paper.add(o);var s=o.bbox();return r||(s=o.node.getBoundingClientRect()),o.remove(),{width:s.width,height:s.height}}},{key:"placeTextWithEllipsis",value:function(e,t,i){if("function"==typeof e.getComputedTextLength&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=i/1.1)){for(var n=t.length-3;n>0;n-=3)if(e.getSubStringLength(0,n)<=i/1.1)return void(e.textContent=t.substring(0,n)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])}}]),e}(),k=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t}return l(e,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;if("vertical"===e.label.orientation){var n=null!==t?t:0,r=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(n,"']"));if(null!==r){var a=r.getBoundingClientRect();r.setAttribute("x",parseFloat(r.getAttribute("x"))-a.height+4),"top"===e.label.position?r.setAttribute("y",parseFloat(r.getAttribute("y"))+a.width):r.setAttribute("y",parseFloat(r.getAttribute("y"))-a.width);var o=this.annoCtx.graphics.rotateAroundCenter(r),s=o.x,l=o.y;r.setAttribute("transform","rotate(-90 ".concat(s," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var i=this.w;if(!e||!t.label.text||t.label.text&&!t.label.text.trim())return null;var n=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),r=e.getBoundingClientRect(),a=t.label.style.padding.left,o=t.label.style.padding.right,s=t.label.style.padding.top,l=t.label.style.padding.bottom;"vertical"===t.label.orientation&&(s=t.label.style.padding.left,l=t.label.style.padding.right,a=t.label.style.padding.top,o=t.label.style.padding.bottom);var c=r.left-n.left-a,h=r.top-n.top-s,d=this.annoCtx.graphics.drawRect(c-i.globals.barPadForNumericAxis,h,r.width+a+o,r.height+s+l,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&d.node.classList.add(t.id),d}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,i=function(i,n,r){var a=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(n,"']"));if(a){var o=a.parentNode,s=e.addBackgroundToAnno(a,i);s&&o.insertBefore(s.node,a)}};t.config.annotations.xaxis.map((function(e,t){i(e,t,"xaxis")})),t.config.annotations.yaxis.map((function(e,t){i(e,t,"yaxis")})),t.config.annotations.points.map((function(e,t){i(e,t,"point")}))}},{key:"getStringX",value:function(e){var t=this.w,i=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var n=t.globals.labels.indexOf(e),r=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(n+1)+")");return r&&(i=parseFloat(r.getAttribute("x"))),i}}]),e}(),_=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis}return l(e,[{key:"addXaxisAnnotation",value:function(e,t,i){var n=this.w,r=this.invertAxis?n.globals.minY:n.globals.minX,a=this.invertAxis?n.globals.maxY:n.globals.maxX,o=this.invertAxis?n.globals.yRange[0]:n.globals.xRange,s=(e.x-r)/(o/n.globals.gridWidth);this.annoCtx.inversedReversedAxis&&(s=(a-e.x)/(o/n.globals.gridWidth));var l=e.label.text;"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.dataFormatXNumeric||(s=this.annoCtx.helpers.getStringX(e.x));var c=e.strokeDashArray;if(y.isNumber(s)){if(null===e.x2||void 0===e.x2){var h=this.annoCtx.graphics.drawLine(s+e.offsetX,0+e.offsetY,s+e.offsetX,n.globals.gridHeight+e.offsetY,e.borderColor,c,e.borderWidth);t.appendChild(h.node),e.id&&h.node.classList.add(e.id)}else{var d=(e.x2-r)/(o/n.globals.gridWidth);if(this.annoCtx.inversedReversedAxis&&(d=(a-e.x2)/(o/n.globals.gridWidth)),"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.invertAxis||n.globals.dataFormatXNumeric||(d=this.annoCtx.helpers.getStringX(e.x2)),d<s){var u=s;s=d,d=u}var p=this.annoCtx.graphics.drawRect(s+e.offsetX,0+e.offsetY,d-s,n.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,c);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(n.globals.cuid,")")),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}var f="top"===e.label.position?4:n.globals.gridHeight,g=this.annoCtx.graphics.getTextRects(l,parseFloat(e.label.style.fontSize)),m=this.annoCtx.graphics.drawText({x:s+e.label.offsetX,y:f+e.label.offsetY-("vertical"===e.label.orientation?"top"===e.label.position?g.width/2-12:-g.width/2:0),text:l,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});m.attr({rel:i}),t.appendChild(m.node),this.annoCtx.helpers.setOrientations(e,i)}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map((function(t,n){e.addXaxisAnnotation(t,i.node,n)})),i}}]),e}(),A=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"getStackedSeriesTotals",value:function(){var e=this.w,t=[];if(0===e.globals.series.length)return t;for(var i=0;i<e.globals.series[e.globals.maxValsInArrayIndex].length;i++){for(var n=0,r=0;r<e.globals.series.length;r++)void 0!==e.globals.series[r][i]&&(n+=e.globals.series[r][i]);t.push(n)}return e.globals.stackedSeriesTotals=t,t}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.w.config.series.reduce((function(e,t){return e+t}),0):this.w.globals.series[e].reduce((function(e,t){return e+t}),0)}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===e?this.w.config.series.filter((function(e){return null!==e})):this.w.config.series[e].data.filter((function(e){return null!==e}))).length}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every((function(e,t,i){return e===i[0]}))}},{key:"getCategoryLabels",value:function(e){var t=this.w,i=e.slice();return t.config.xaxis.convertedCatToNumeric&&(i=e.map((function(e,i){return t.config.xaxis.labels.formatter(e-t.globals.minX+1)}))),i}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map((function(e){return e.length})).indexOf(Math.max.apply(Math,e.globals.series.map((function(e){return e.length}))))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach((function(e){t=Math.max(t,e)})),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map((function(e,t){var i=0;if(Array.isArray(e))for(var n=0;n<e.length;n++)i+=e[n];else i+=e;return i}))}},{key:"getSeriesTotalsXRange",value:function(e,t){var i=this.w;return i.globals.series.map((function(n,r){for(var a=0,o=0;o<n.length;o++)i.globals.seriesX[r][o]>e&&i.globals.seriesX[r][o]<t&&(a+=n[o]);return a}))}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map((function(t,i){var n=[];if(Array.isArray(t))for(var r=0;r<t.length;r++){var a=e.globals.stackedSeriesTotals[r],o=0;a&&(o=100*t[r]/a),n.push(o)}else{var s=100*t/e.globals.seriesTotals.reduce((function(e,t){return e+t}),0);n.push(s)}return n}))}},{key:"getCalculatedRatios",value:function(){var e,t,i,n,r=this.w.globals,a=[],o=0,s=[],l=.1,c=0;if(r.yRange=[],r.isMultipleYAxis)for(var h=0;h<r.minYArr.length;h++)r.yRange.push(Math.abs(r.minYArr[h]-r.maxYArr[h])),s.push(0);else r.yRange.push(Math.abs(r.minY-r.maxY));r.xRange=Math.abs(r.maxX-r.minX),r.zRange=Math.abs(r.maxZ-r.minZ);for(var d=0;d<r.yRange.length;d++)a.push(r.yRange[d]/r.gridHeight);if(t=r.xRange/r.gridWidth,i=Math.abs(r.initialMaxX-r.initialMinX)/r.gridWidth,e=r.yRange/r.gridWidth,n=r.xRange/r.gridHeight,(o=r.zRange/r.gridHeight*16)||(o=1),r.minY!==Number.MIN_VALUE&&0!==Math.abs(r.minY)&&(r.hasNegs=!0),r.isMultipleYAxis){s=[];for(var u=0;u<a.length;u++)s.push(-r.minYArr[u]/a[u])}else s.push(-r.minY/a[0]),r.minY!==Number.MIN_VALUE&&0!==Math.abs(r.minY)&&(l=-r.minY/e,c=r.minX/t);return{yRatio:a,invertedYRatio:e,zRatio:o,xRatio:t,initialXRatio:i,invertedXRatio:n,baseLineInvertedY:l,baseLineY:s,baseLineX:c}}},{key:"getLogSeries",value:function(e){var t=this,i=this.w;return i.globals.seriesLog=e.map((function(e,n){return i.config.yaxis[n]&&i.config.yaxis[n].logarithmic?e.map((function(e){return null===e?null:t.getLogVal(e,n)})):e})),i.globals.invalidLogScale?e:i.globals.seriesLog}},{key:"getLogVal",value:function(e,t){var i=this.w;return(Math.log(e)-Math.log(i.globals.minYArr[t]))/(Math.log(i.globals.maxYArr[t])-Math.log(i.globals.minYArr[t]))}},{key:"getLogYRatios",value:function(e){var t=this,i=this.w,n=this.w.globals;return n.yLogRatio=e.slice(),n.logYRange=n.yRange.map((function(e,r){if(i.config.yaxis[r]&&t.w.config.yaxis[r].logarithmic){var a,o=-Number.MAX_VALUE,s=Number.MIN_VALUE;return n.seriesLog.forEach((function(e,t){e.forEach((function(e){i.config.yaxis[t]&&i.config.yaxis[t].logarithmic&&(o=Math.max(e,o),s=Math.min(e,s))}))})),a=Math.pow(n.yRange[r],Math.abs(s-o)/n.yRange[r]),n.yLogRatio[r]=a/n.gridHeight,a}})),n.invalidLogScale?e.slice():n.yLogRatio}}],[{key:"checkComboSeries",value:function(e){var t=!1,i=0,n=0;return e.length&&void 0!==e[0].type&&e.forEach((function(e){"bar"!==e.type&&"column"!==e.type&&"candlestick"!==e.type&&"boxPlot"!==e.type||i++,void 0!==e.type&&n++})),n>1&&(t=!0),{comboBarCount:i,comboCharts:t}}},{key:"extendArrayProps",value:function(e,t,i){return t.yaxis&&(t=e.extendYAxis(t,i)),t.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),t.annotations.xaxis&&(t=e.extendXAxisAnnotations(t)),t.annotations.points&&(t=e.extendPointAnnotations(t))),t}}]),e}(),S=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t}return l(e,[{key:"addYaxisAnnotation",value:function(e,t,i){var n,r=this.w,a=e.strokeDashArray,o=this._getY1Y2("y1",e),s=e.label.text;if(null===e.y2||void 0===e.y2){var l=this.annoCtx.graphics.drawLine(0+e.offsetX,o+e.offsetY,this._getYAxisAnnotationWidth(e),o+e.offsetY,e.borderColor,a,e.borderWidth);t.appendChild(l.node),e.id&&l.node.classList.add(e.id)}else{if((n=this._getY1Y2("y2",e))>o){var c=o;o=n,n=c}var h=this.annoCtx.graphics.drawRect(0+e.offsetX,n+e.offsetY,this._getYAxisAnnotationWidth(e),o-n,0,e.fillColor,e.opacity,1,e.borderColor,a);h.node.classList.add("apexcharts-annotation-rect"),h.attr("clip-path","url(#gridRectMask".concat(r.globals.cuid,")")),t.appendChild(h.node),e.id&&h.node.classList.add(e.id)}var d="right"===e.label.position?r.globals.gridWidth:0,u=this.annoCtx.graphics.drawText({x:d+e.label.offsetX,y:(n||o)+e.label.offsetY-3,text:s,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});u.attr({rel:i}),t.appendChild(u.node)}},{key:"_getY1Y2",value:function(e,t){var i,n="y1"===e?t.y:t.y2,r=this.w;if(this.annoCtx.invertAxis){var a=r.globals.labels.indexOf(n);r.config.xaxis.convertedCatToNumeric&&(a=r.globals.categoryLabels.indexOf(n));var o=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child("+(a+1)+")");o&&(i=parseFloat(o.getAttribute("y")))}else{var s;s=r.config.yaxis[t.yAxisIndex].logarithmic?(n=new A(this.annoCtx.ctx).getLogVal(n,t.yAxisIndex))/r.globals.yLogRatio[t.yAxisIndex]:(n-r.globals.minYArr[t.yAxisIndex])/(r.globals.yRange[t.yAxisIndex]/r.globals.gridHeight),i=r.globals.gridHeight-s,r.config.yaxis[t.yAxisIndex]&&r.config.yaxis[t.yAxisIndex].reversed&&(i=s)}return i}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.map((function(t,n){e.addYaxisAnnotation(t,i.node,n)})),i}}]),e}(),C=function(){function e(t){o(this,e),this.w=t.w,this.annoCtx=t}return l(e,[{key:"addPointAnnotation",value:function(e,t,i){var n=this.w,r=0,a=0,o=0;this.annoCtx.invertAxis&&console.warn("Point annotation is not supported in horizontal bar charts.");var s=parseFloat(e.y);if("string"==typeof e.x){var l=n.globals.labels.indexOf(e.x);n.config.xaxis.convertedCatToNumeric&&(l=n.globals.categoryLabels.indexOf(e.x)),r=this.annoCtx.helpers.getStringX(e.x),null===e.y&&(s=n.globals.series[e.seriesIndex][l])}else r=(e.x-n.globals.minX)/(n.globals.xRange/n.globals.gridWidth);for(var c,h=[],d=0,u=0;u<=e.seriesIndex;u++){var p=n.config.yaxis[u].seriesName;if(p)for(var f=u+1;f<=e.seriesIndex;f++)n.config.yaxis[f].seriesName===p&&-1===h.indexOf(p)&&(d++,h.push(p))}if(n.config.yaxis[e.yAxisIndex].logarithmic)c=(s=new A(this.annoCtx.ctx).getLogVal(s,e.yAxisIndex))/n.globals.yLogRatio[e.yAxisIndex];else{var g=e.yAxisIndex+d;c=(s-n.globals.minYArr[g])/(n.globals.yRange[g]/n.globals.gridHeight)}if(a=n.globals.gridHeight-c-parseFloat(e.label.style.fontSize)-e.marker.size,o=n.globals.gridHeight-c,n.config.yaxis[e.yAxisIndex]&&n.config.yaxis[e.yAxisIndex].reversed&&(a=c+parseFloat(e.label.style.fontSize)+e.marker.size,o=c),y.isNumber(r)){var m={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},v=this.annoCtx.graphics.drawMarker(r+e.marker.offsetX,o+e.marker.offsetY,m);t.appendChild(v.node);var b=e.label.text?e.label.text:"",x=this.annoCtx.graphics.drawText({x:r+e.label.offsetX,y:a+e.label.offsetY,text:b,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(x.attr({rel:i}),t.appendChild(x.node),e.customSVG.SVG){var w=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});w.attr({transform:"translate(".concat(r+e.customSVG.offsetX,", ").concat(a+e.customSVG.offsetY,")")}),w.node.innerHTML=e.customSVG.SVG,t.appendChild(w.node)}if(e.image.path){var k=e.image.width?e.image.width:20,_=e.image.height?e.image.height:20;this.annoCtx.addImage({x:r+e.image.offsetX-k/2,y:a+e.image.offsetY-_/2,width:k,height:_,path:e.image.path,appendTo:".apexcharts-point-annotations"})}}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map((function(t,n){e.addPointAnnotation(t,i.node,n)})),i}}]),e}(),T={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},P=function(){function e(){o(this,e),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={x:0,y:null,yAxisIndex:0,seriesIndex:0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return l(e,[{key:"init",value:function(){return{annotations:{position:"front",yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[T],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",dateFormatter:function(e){return new Date(e).toDateString()}},png:{filename:void 0},svg:{filename:void 0}},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,rangeBarOverlap:!0,rangeBarGroupRows:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal"}},bubble:{minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)/e.globals.series.length+"%"}}}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return null!==e?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,fillColors:void 0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:5,vertical:2},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",width:8,height:8,radius:2,offsetX:0,offsetY:0,onClick:void 0,onDblClick:void 0,showNullDataPoints:!0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"light",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),e}(),L=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.graphics=new w(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new k(this),this.xAxisAnnotations=new _(this),this.yAxisAnnotations=new S(this),this.pointsAnnotations=new C(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return l(e,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),n=this.pointsAnnotations.drawPointAnnotations(),r=e.config.chart.animations.enabled,a=[t,i,n],o=[i.node,t.node,n.node],s=0;s<3;s++)e.globals.dom.elGraphical.add(a[s]),!r||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&o[s].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:o[s],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map((function(t,i){e.addImage(t,i)}))}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map((function(t,i){e.addText(t,i)}))}},{key:"addXaxisAnnotation",value:function(e,t,i){this.xAxisAnnotations.addXaxisAnnotation(e,t,i)}},{key:"addYaxisAnnotation",value:function(e,t,i){this.yAxisAnnotations.addYaxisAnnotation(e,t,i)}},{key:"addPointAnnotation",value:function(e,t,i){this.pointsAnnotations.addPointAnnotation(e,t,i)}},{key:"addText",value:function(e,t){var i=e.x,n=e.y,r=e.text,a=e.textAnchor,o=e.foreColor,s=e.fontSize,l=e.fontFamily,c=e.fontWeight,h=e.cssClass,d=e.backgroundColor,u=e.borderWidth,p=e.strokeDashArray,f=e.borderRadius,g=e.borderColor,m=e.appendTo,v=void 0===m?".apexcharts-annotations":m,y=e.paddingLeft,b=void 0===y?4:y,x=e.paddingRight,w=void 0===x?4:x,k=e.paddingBottom,_=void 0===k?2:k,A=e.paddingTop,S=void 0===A?2:A,C=this.w,T=this.graphics.drawText({x:i,y:n,text:r,textAnchor:a||"start",fontSize:s||"12px",fontWeight:c||"regular",fontFamily:l||C.config.chart.fontFamily,foreColor:o||C.config.chart.foreColor,cssClass:h}),P=C.globals.dom.baseEl.querySelector(v);P&&P.appendChild(T.node);var L=T.bbox();if(r){var E=this.graphics.drawRect(L.x-b,L.y-S,L.width+b+w,L.height+_+S,f,d||"transparent",1,u,g,p);P.insertBefore(E.node,T.node)}}},{key:"addImage",value:function(e,t){var i=this.w,n=e.path,r=e.x,a=void 0===r?0:r,o=e.y,s=void 0===o?0:o,l=e.width,c=void 0===l?20:l,h=e.height,d=void 0===h?20:h,u=e.appendTo,p=void 0===u?".apexcharts-annotations":u,f=i.globals.dom.Paper.image(n);f.size(c,d).move(a,s);var g=i.globals.dom.baseEl.querySelector(p);g&&g.appendChild(f.node)}},{key:"addXaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(e,t,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(e){var t=e.params,i=e.pushToMemory,n=e.context,r=e.type,a=e.contextMethod,o=n,s=o.w,l=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations")),c=l.childNodes.length+1,h=new P,d=Object.assign({},"xaxis"===r?h.xAxisAnnotation:"yaxis"===r?h.yAxisAnnotation:h.pointAnnotation),u=y.extend(d,t);switch(r){case"xaxis":this.addXaxisAnnotation(u,l,c);break;case"yaxis":this.addYaxisAnnotation(u,l,c);break;case"point":this.addPointAnnotation(u,l,c)}var p=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(r,"-annotations .apexcharts-").concat(r,"-annotation-label[rel='").concat(c,"']")),f=this.helpers.addBackgroundToAnno(p,u);return f&&l.insertBefore(f.node,p),i&&s.globals.memory.methodsToExec.push({context:o,id:u.id?u.id:y.randomId(),method:a,label:"addAnnotation",params:t}),n}},{key:"clearAnnotations",value:function(e){var t=e.w,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");t.globals.memory.methodsToExec.map((function(e,i){"addText"!==e.label&&"addAnnotation"!==e.label||t.globals.memory.methodsToExec.splice(i,1)})),i=y.listToArray(i),Array.prototype.forEach.call(i,(function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}))}},{key:"removeAnnotation",value:function(e,t){var i=e.w,n=i.globals.dom.baseEl.querySelectorAll(".".concat(t));n&&(i.globals.memory.methodsToExec.map((function(e,n){e.id===t&&i.globals.memory.methodsToExec.splice(n,1)})),Array.prototype.forEach.call(n,(function(e){e.parentElement.removeChild(e)})))}}]),e}(),E=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0}return l(e,[{key:"clippedImgArea",value:function(e){var t=this.w,i=t.config,n=parseInt(t.globals.gridWidth,10),r=parseInt(t.globals.gridHeight,10),a=n>r?n:r,o=e.image,s=0,l=0;void 0===e.width&&void 0===e.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(s=i.fill.image.width+1,l=i.fill.image.height):(s=a+1,l=a):(s=e.width,l=e.height);var c=document.createElementNS(t.globals.SVGNS,"pattern");w.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:s+"px",height:l+"px"});var h=document.createElementNS(t.globals.SVGNS,"image");c.appendChild(h),h.setAttributeNS(window.SVG.xlink,"href",o),w.setAttrs(h,{x:0,y:0,preserveAspectRatio:"none",width:s+"px",height:l+"px"}),h.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(e){var t=this.w;return("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||"heatmap"===t.config.chart.type||"treemap"===t.config.chart.type?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var i,n,r,a=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var o=this.getFillColors()[this.seriesIndex];void 0!==t.globals.seriesColors[this.seriesIndex]&&(o=t.globals.seriesColors[this.seriesIndex]),"function"==typeof o&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var s=this.getFillType(this.seriesIndex),l=Array.isArray(a.fill.opacity)?a.fill.opacity[this.seriesIndex]:a.fill.opacity;e.color&&(o=e.color);var c=o;if(-1===o.indexOf("rgb")?o.length<9&&(c=y.hexToRgba(o,l)):o.indexOf("rgba")>-1&&(l=y.getOpacityFromRGBA(o)),e.opacity&&(l=e.opacity),"pattern"===s&&(n=this.handlePatternFill(n,o,l,c)),"gradient"===s&&(r=this.handleGradientFill(o,l,this.seriesIndex)),"image"===s){var h=a.fill.image.src,d=e.patternID?e.patternID:"";this.clippedImgArea({opacity:l,image:Array.isArray(h)?e.seriesNumber<h.length?h[e.seriesNumber]:h[0]:h,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:"pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(d)}),i="url(#pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(d,")")}else i="gradient"===s?r:"pattern"===s?n:c;return e.solid&&(i=c),i}},{key:"getFillType",value:function(e){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,t=e.config,i=this.opts,n=[];return e.globals.comboCharts?"line"===e.config.series[this.seriesIndex].type?Array.isArray(e.globals.stroke.colors)?n=e.globals.stroke.colors:n.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?n=e.globals.fill.colors:n.push(e.globals.fill.colors):"line"===t.chart.type?Array.isArray(e.globals.stroke.colors)?n=e.globals.stroke.colors:n.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?n=e.globals.fill.colors:n.push(e.globals.fill.colors),void 0!==i.fillColors&&(n=[],Array.isArray(i.fillColors)?n=i.fillColors.slice():n.push(i.fillColors)),n}},{key:"handlePatternFill",value:function(e,t,i,n){var r=this.w.config,a=this.opts,o=new w(this.ctx),s=void 0===r.fill.pattern.strokeWidth?Array.isArray(r.stroke.width)?r.stroke.width[this.seriesIndex]:r.stroke.width:Array.isArray(r.fill.pattern.strokeWidth)?r.fill.pattern.strokeWidth[this.seriesIndex]:r.fill.pattern.strokeWidth,l=t;return Array.isArray(r.fill.pattern.style)?void 0!==r.fill.pattern.style[a.seriesNumber]?o.drawPattern(r.fill.pattern.style[a.seriesNumber],r.fill.pattern.width,r.fill.pattern.height,l,s,i):n:o.drawPattern(r.fill.pattern.style,r.fill.pattern.width,r.fill.pattern.height,l,s,i)}},{key:"handleGradientFill",value:function(e,t,i){var n,r=this.w.config,a=this.opts,o=new w(this.ctx),s=new y,l=r.fill.gradient.type,c=e,h=void 0===r.fill.gradient.opacityFrom?t:Array.isArray(r.fill.gradient.opacityFrom)?r.fill.gradient.opacityFrom[i]:r.fill.gradient.opacityFrom;c.indexOf("rgba")>-1&&(h=y.getOpacityFromRGBA(c));var d=void 0===r.fill.gradient.opacityTo?t:Array.isArray(r.fill.gradient.opacityTo)?r.fill.gradient.opacityTo[i]:r.fill.gradient.opacityTo;if(void 0===r.fill.gradient.gradientToColors||0===r.fill.gradient.gradientToColors.length)n="dark"===r.fill.gradient.shade?s.shadeColor(-1*parseFloat(r.fill.gradient.shadeIntensity),e.indexOf("rgb")>-1?y.rgb2hex(e):e):s.shadeColor(parseFloat(r.fill.gradient.shadeIntensity),e.indexOf("rgb")>-1?y.rgb2hex(e):e);else if(r.fill.gradient.gradientToColors[a.seriesNumber]){var u=r.fill.gradient.gradientToColors[a.seriesNumber];n=u,u.indexOf("rgba")>-1&&(d=y.getOpacityFromRGBA(u))}else n=e;if(r.fill.gradient.inverseColors){var p=c;c=n,n=p}return c.indexOf("rgb")>-1&&(c=y.rgb2hex(c)),n.indexOf("rgb")>-1&&(n=y.rgb2hex(n)),o.drawGradient(l,c,n,h,d,a.size,r.fill.gradient.stops,r.fill.gradient.colorStops,i)}}]),e}(),M=function(){function e(t,i){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)void 0===e.globals.markers.size[t]&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map((function(t){return e.config.markers.size}))}},{key:"plotChartMarkers",value:function(e,t,i,n){var r,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.w,s=t,l=e,c=null,h=new w(this.ctx);if((o.globals.markers.size[t]>0||a)&&(c=h.group({class:a?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(o.globals.cuid,")")),Array.isArray(l.x))for(var d=0;d<l.x.length;d++){var u=i;1===i&&0===d&&(u=0),1===i&&1===d&&(u=1);var p="apexcharts-marker";"line"!==o.config.chart.type&&"area"!==o.config.chart.type||o.globals.comboCharts||o.config.tooltip.intersect||(p+=" no-pointer-events");var f=Array.isArray(o.config.markers.size)?o.globals.markers.size[t]>0:o.config.markers.size>0;if(f||a){y.isNumber(l.y[d])?p+=" w".concat(y.randomId()):p="apexcharts-nullpoint";var g=this.getMarkerConfig(p,t,u);o.config.series[s].data[u]&&(o.config.series[s].data[u].fillColor&&(g.pointFillColor=o.config.series[s].data[u].fillColor),o.config.series[s].data[u].strokeColor&&(g.pointStrokeColor=o.config.series[s].data[u].strokeColor)),n&&(g.pSize=n),(r=h.drawMarker(l.x[d],l.y[d],g)).attr("rel",u),r.attr("j",u),r.attr("index",t),r.node.setAttribute("default-marker-size",g.pSize);var m=new x(this.ctx);m.setSelectionFilter(r,t,u),this.addEvents(r),c&&c.add(r)}else void 0===o.globals.pointsArray[t]&&(o.globals.pointsArray[t]=[]),o.globals.pointsArray[t].push([l.x[d],l.y[d]])}return c}},{key:"getMarkerConfig",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.w,r=this.getMarkerStyle(t),a=n.globals.markers.size[t],o=n.config.markers;return null!==i&&o.discrete.length&&o.discrete.map((function(e){e.seriesIndex===t&&e.dataPointIndex===i&&(r.pointStrokeColor=e.strokeColor,r.pointFillColor=e.fillColor,a=e.size)})),{pSize:a,pRadius:o.radius,width:Array.isArray(o.width)?o.width[t]:o.width,height:Array.isArray(o.height)?o.height[t]:o.height,pointStrokeWidth:Array.isArray(o.strokeWidth)?o.strokeWidth[t]:o.strokeWidth,pointStrokeColor:r.pointStrokeColor,pointFillColor:r.pointFillColor,shape:Array.isArray(o.shape)?o.shape[t]:o.shape,class:e,pointStrokeOpacity:Array.isArray(o.strokeOpacity)?o.strokeOpacity[t]:o.strokeOpacity,pointStrokeDashArray:Array.isArray(o.strokeDashArray)?o.strokeDashArray[t]:o.strokeDashArray,pointFillOpacity:Array.isArray(o.fillOpacity)?o.fillOpacity[t]:o.fillOpacity,seriesIndex:t}}},{key:"addEvents",value:function(e){var t=this.w,i=new w(this.ctx);e.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,i=t.globals.markers.colors,n=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(n)?n[e]:n,pointFillColor:Array.isArray(i)?i[e]:i}}}]),e}(),I=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled}return l(e,[{key:"draw",value:function(e,t,i){var n=this.w,r=new w(this.ctx),a=i.realIndex,o=i.pointsPos,s=i.zRatio,l=i.elParent,c=r.group({class:"apexcharts-series-markers apexcharts-series-".concat(n.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(n.globals.cuid,")")),Array.isArray(o.x))for(var h=0;h<o.x.length;h++){var d=t+1,u=!0;0===t&&0===h&&(d=0),0===t&&1===h&&(d=1);var p=0,f=n.globals.markers.size[a];if(s!==1/0){f=n.globals.seriesZ[a][d]/s;var g=n.config.plotOptions.bubble;g.minBubbleRadius&&f<g.minBubbleRadius&&(f=g.minBubbleRadius),g.maxBubbleRadius&&f>g.maxBubbleRadius&&(f=g.maxBubbleRadius)}n.config.chart.animations.enabled||(p=f);var m=o.x[h],v=o.y[h];if(p=p||0,null!==v&&void 0!==n.globals.series[a][d]||(u=!1),u){var y=this.drawPoint(m,v,p,f,a,d,t);c.add(y)}l.add(c)}}},{key:"drawPoint",value:function(e,t,i,n,r,a,o){var s,l=this.w,c=r,h=new b(this.ctx),d=new x(this.ctx),u=new E(this.ctx),p=new M(this.ctx),f=new w(this.ctx),g=p.getMarkerConfig("apexcharts-marker",c),m=u.fillPath({seriesNumber:r,dataPointIndex:a,patternUnits:"objectBoundingBox",value:l.globals.series[r][o]});if("circle"===g.shape?s=f.drawCircle(i):"square"!==g.shape&&"rect"!==g.shape||(s=f.drawRect(0,0,g.width-g.pointStrokeWidth/2,g.height-g.pointStrokeWidth/2,g.pRadius)),l.config.series[c].data[a]&&l.config.series[c].data[a].fillColor&&(m=l.config.series[c].data[a].fillColor),s.attr({x:e-g.width/2-g.pointStrokeWidth/2,y:t-g.height/2-g.pointStrokeWidth/2,cx:e,cy:t,fill:m,"fill-opacity":g.pointFillOpacity,stroke:g.pointStrokeColor,r:n,"stroke-width":g.pointStrokeWidth,"stroke-dasharray":g.pointStrokeDashArray,"stroke-opacity":g.pointStrokeOpacity}),l.config.chart.dropShadow.enabled){var v=l.config.chart.dropShadow;d.dropShadow(s,v,r)}if(!this.initialAnim||l.globals.dataChanged||l.globals.resized)l.globals.animationEnded=!0;else{var y=l.config.chart.animations.speed;h.animateMarker(s,0,"circle"===g.shape?n:{width:g.width,height:g.height},y,l.globals.easing,(function(){window.setTimeout((function(){h.animationCompleted(s)}),100)}))}if(l.globals.dataChanged&&"circle"===g.shape)if(this.dynamicAnim){var k,_,A,S,C=l.config.chart.animations.dynamicAnimation.speed;null!=(S=l.globals.previousPaths[r]&&l.globals.previousPaths[r][o])&&(k=S.x,_=S.y,A=void 0!==S.r?S.r:n);for(var T=0;T<l.globals.collapsedSeries.length;T++)l.globals.collapsedSeries[T].index===r&&(C=1,n=0);0===e&&0===t&&(n=0),h.animateCircle(s,{cx:k,cy:_,r:A},{cx:e,cy:t,r:n},C,l.globals.easing)}else s.attr({r:n});return s.attr({rel:a,j:a,index:r,"default-marker-size":n}),d.setSelectionFilter(s,r,a),p.addEvents(s),s.node.classList.add("apexcharts-marker"),s}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),e}(),O=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"dataLabelsCorrection",value:function(e,t,i,n,r,a,o){var s=this.w,l=!1,c=new w(this.ctx).getTextRects(i,o),h=c.width,d=c.height;t<0&&(t=0),t>s.globals.gridHeight+d&&(t=s.globals.gridHeight+d/2),void 0===s.globals.dataLabelsRects[n]&&(s.globals.dataLabelsRects[n]=[]),s.globals.dataLabelsRects[n].push({x:e,y:t,width:h,height:d});var u=s.globals.dataLabelsRects[n].length-2,p=void 0!==s.globals.lastDrawnDataLabelsIndexes[n]?s.globals.lastDrawnDataLabelsIndexes[n][s.globals.lastDrawnDataLabelsIndexes[n].length-1]:0;if(void 0!==s.globals.dataLabelsRects[n][u]){var f=s.globals.dataLabelsRects[n][p];(e>f.x+f.width+2||t>f.y+f.height+2||e+h<f.x)&&(l=!0)}return(0===r||a)&&(l=!0),{x:e,y:t,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(e,t,i){var n=this,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,a=this.w,o=new w(this.ctx),s=a.config.dataLabels,l=0,c=0,h=i,d=null;if(!s.enabled||!Array.isArray(e.x))return d;d=o.group({class:"apexcharts-data-labels"});for(var u=0;u<e.x.length;u++)if(l=e.x[u]+s.offsetX,c=e.y[u]+s.offsetY+r,!isNaN(l)){1===i&&0===u&&(h=0),1===i&&1===u&&(h=1);var p=a.globals.series[t][h],f="",g=function(e){return a.config.dataLabels.formatter(e,{ctx:n.ctx,seriesIndex:t,dataPointIndex:h,w:a})};if("bubble"===a.config.chart.type){f=g(p=a.globals.seriesZ[t][h]),c=e.y[u];var m=new I(this.ctx),v=m.centerTextInBubble(c,t,h);c=v.y}else void 0!==p&&(f=g(p));this.plotDataLabelsText({x:l,y:c,text:f,i:t,j:h,parent:d,offsetCorrection:!0,dataLabelsConfig:a.config.dataLabels})}return d}},{key:"plotDataLabelsText",value:function(e){var t=this.w,i=new w(this.ctx),n=e.x,r=e.y,a=e.i,o=e.j,s=e.text,l=e.textAnchor,c=e.fontSize,h=e.parent,d=e.dataLabelsConfig,u=e.color,p=e.alwaysDrawDataLabel,f=e.offsetCorrection;if(!(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(a)<0)){var g={x:n,y:r,drawnextLabel:!0};f&&(g=this.dataLabelsCorrection(n,r,s,a,o,p,parseInt(d.style.fontSize,10))),t.globals.zoomed||(n=g.x,r=g.y),g.textRects&&(n<-10-g.textRects.width||n>t.globals.gridWidth+g.textRects.width+10)&&(s="");var m=t.globals.dataLabels.style.colors[a];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(m=t.globals.dataLabels.style.colors[o]),"function"==typeof m&&(m=m({series:t.globals.series,seriesIndex:a,dataPointIndex:o,w:t})),u&&(m=u);var v=d.offsetX,y=d.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(v=0,y=0),g.drawnextLabel){var b=i.drawText({width:100,height:parseInt(d.style.fontSize,10),x:n+v,y:r+y,foreColor:m,textAnchor:l||d.textAnchor,text:s,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"});if(b.attr({class:"apexcharts-datalabel",cx:n,cy:r}),d.dropShadow.enabled){var k=d.dropShadow;new x(this.ctx).dropShadow(b,k)}h.add(b),void 0===t.globals.lastDrawnDataLabelsIndexes[a]&&(t.globals.lastDrawnDataLabelsIndexes[a]=[]),t.globals.lastDrawnDataLabelsIndexes[a].push(o)}}}},{key:"addBackgroundToDataLabel",value:function(e,t){var i=this.w,n=i.config.dataLabels.background,r=n.padding,a=n.padding/2,o=t.width,s=t.height,l=new w(this.ctx).drawRect(t.x-r,t.y-a/2,o+2*r,s+a,n.borderRadius,"transparent"===i.config.chart.background?"#fff":i.config.chart.background,n.opacity,n.borderWidth,n.borderColor);return n.dropShadow.enabled&&new x(this.ctx).dropShadow(l,n.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var e=this.w;if("bubble"!==e.config.chart.type)for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<t.length;i++){var n=t[i],r=n.getBBox(),a=null;if(r.width&&r.height&&(a=this.addBackgroundToDataLabel(n,r)),a){n.parentNode.insertBefore(a.node,n);var o=n.getAttribute("fill");!e.config.chart.animations.enabled||e.globals.resized||e.globals.dataChanged?a.attr({fill:o}):a.animate().attr({fill:o}),n.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),n=0;n<t.length;n++)i&&i.insertBefore(t[n],i.nextSibling)}}]),e}(),D=function(){function e(t){o(this,e),this.w=t.w,this.barCtx=t}return l(e,[{key:"handleBarDataLabels",value:function(e){var t=e.x,i=e.y,n=e.y1,r=e.y2,a=e.i,o=e.j,s=e.realIndex,l=e.series,c=e.barHeight,h=e.barWidth,d=e.barYPosition,u=e.visibleSeries,p=e.renderedPath,f=this.w,g=new w(this.barCtx.ctx),m=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[s]:this.barCtx.strokeWidth,v=t+parseFloat(h*u),y=i+parseFloat(c*u);f.globals.isXNumeric&&!f.globals.isBarHorizontal&&(v=t+parseFloat(h*(u+1)),y=i+parseFloat(c*(u+1))-m);var b,x=t,k=i,_=f.config.dataLabels,A=this.barCtx.barOptions.dataLabels;void 0!==d&&this.barCtx.isTimelineBar&&(y=d,k=d);var S=_.offsetX,C=_.offsetY,T={width:0,height:0};if(f.config.dataLabels.enabled){var P=this.barCtx.series[a][o];T=g.getTextRects(f.globals.yLabelFormatters[0](P),parseFloat(_.style.fontSize))}var L={x:t,y:i,i:a,j:o,renderedPath:p,bcx:v,bcy:y,barHeight:c,barWidth:h,textRects:T,strokeWidth:m,dataLabelsX:x,dataLabelsY:k,barDataLabelsConfig:A,offX:S,offY:C};return b=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(L):this.calculateColumnsDataLabelsPosition(L),p.attr({cy:b.bcy,cx:b.bcx,j:o,val:l[a][o],barHeight:c,barWidth:h}),this.drawCalculatedDataLabels({x:b.dataLabelsX,y:b.dataLabelsY,val:this.barCtx.isTimelineBar?[n,r]:l[a][o],i:s,j:o,barWidth:h,barHeight:c,textRects:T,dataLabelsConfig:_})}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t,i=this.w,n=e.i,r=e.j,a=e.y,o=e.bcx,s=e.barWidth,l=e.barHeight,c=e.textRects,h=e.dataLabelsY,d=e.barDataLabelsConfig,u=e.strokeWidth,p=e.offX,f=e.offY;l=Math.abs(l);var g="vertical"===i.config.plotOptions.bar.dataLabels.orientation;o-=u/2;var m=i.globals.gridWidth/i.globals.dataPoints;t=i.globals.isXNumeric?o-s/2+p:o-m+s/2+p,g&&(t=t+c.height/2-u/2-2);var v=this.barCtx.series[n][r]<0,y=a;switch(this.barCtx.isReversed&&(y=a-l+(v?2*l:0),a-=l),d.position){case"center":h=g?v?y+l/2+f:y+l/2-f:v?y-l/2+c.height/2+f:y+l/2+c.height/2-f;break;case"bottom":h=g?v?y+l+f:y+l-f:v?y-l+c.height+u+f:y+l-c.height/2+u-f;break;case"top":h=g?v?y+f:y-f:v?y-c.height/2-f:y+c.height+f}return i.config.chart.stacked||(h<0?h=0+u:h+c.height/3>i.globals.gridHeight&&(h=i.globals.gridHeight-u)),{bcx:o,bcy:a,dataLabelsX:t,dataLabelsY:h}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,i=e.x,n=e.i,r=e.j,a=e.bcy,o=e.barHeight,s=e.barWidth,l=e.textRects,c=e.dataLabelsX,h=e.strokeWidth,d=e.barDataLabelsConfig,u=e.offX,p=e.offY,f=t.globals.gridHeight/t.globals.dataPoints;s=Math.abs(s);var g=a-(this.barCtx.isTimelineBar?0:f)+o/2+l.height/2+p-3,m=this.barCtx.series[n][r]<0,v=i;switch(this.barCtx.isReversed&&(v=i+s-(m?2*s:0),i=t.globals.gridWidth-s),d.position){case"center":c=m?v+s/2-u:Math.max(l.width/2,v-s/2)+u;break;case"bottom":c=m?v+s-h-Math.round(l.width/2)-u:v-s+h+Math.round(l.width/2)+u;break;case"top":c=m?v-h+Math.round(l.width/2)-u:v-h-Math.round(l.width/2)+u}return t.config.chart.stacked||(c<0?c=c+l.width+h:c+l.width/2>t.globals.gridWidth&&(c=t.globals.gridWidth-l.width-h)),{bcx:i,bcy:a,dataLabelsX:c,dataLabelsY:g}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,i=e.y,n=e.val,r=e.i,a=e.j,o=e.textRects,s=e.barHeight,l=e.barWidth,c=e.dataLabelsConfig,h=this.w,u="rotate(0)";"vertical"===h.config.plotOptions.bar.dataLabels.orientation&&(u="rotate(-90, ".concat(t,", ").concat(i,")"));var p=new O(this.barCtx.ctx),f=new w(this.barCtx.ctx),g=c.formatter,m=null,v=h.globals.collapsedSeriesIndices.indexOf(r)>-1;if(c.enabled&&!v){m=f.group({class:"apexcharts-data-labels",transform:u});var y="";void 0!==n&&(y=g(n,{seriesIndex:r,dataPointIndex:a,w:h}));var b=h.globals.series[r][a]<0,x=h.config.plotOptions.bar.dataLabels.position;"vertical"===h.config.plotOptions.bar.dataLabels.orientation&&("top"===x&&(c.textAnchor=b?"end":"start"),"center"===x&&(c.textAnchor="middle"),"bottom"===x&&(c.textAnchor=b?"end":"start")),this.barCtx.isTimelineBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&l<f.getTextRects(y,parseFloat(c.style.fontSize)).width&&(y=""),h.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?(l>0&&o.width/1.6>l||l<0&&o.width/1.6<l)&&(y=""):o.height/1.6>s&&(y=""));var k=d({},c);this.barCtx.isHorizontal&&n<0&&("start"===c.textAnchor?k.textAnchor="end":"end"===c.textAnchor&&(k.textAnchor="start")),p.plotDataLabelsText({x:t,y:i,text:y,i:r,j:a,parent:m,dataLabelsConfig:k,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return m}}]),e}(),z=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.legendInactiveClass="legend-mouseover-inactive"}return l(e,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(y.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),i=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(e,t){var i=this.w;function n(i){for(var n=0;n<i.length;n++)i[n].index===t&&e.node.classList.add("apexcharts-series-collapsed")}n(i.globals.collapsedSeries),n(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var t=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.w,r=y.clone(n.globals.initialSeries);n.globals.previousPaths=[],i?(n.globals.collapsedSeries=[],n.globals.ancillaryCollapsedSeries=[],n.globals.collapsedSeriesIndices=[],n.globals.ancillaryCollapsedSeriesIndices=[]):r=this.emptyCollapsedSeries(r),n.config.series=r,e&&(t&&(n.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(r,n.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,i=0;i<e.length;i++)t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i].data=[]);return e}},{key:"toggleSeriesOnHover",value:function(e,t){var i=this.w,n=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels");if("mousemove"===e.type){var r=parseInt(t.getAttribute("rel"),10)-1,a=null,o=null;i.globals.axisCharts||"radialBar"===i.config.chart.type?i.globals.axisCharts?(a=i.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(r,"']")),o=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(r,"']"))):a=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"']")):a=i.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"'] path"));for(var s=0;s<n.length;s++)n[s].classList.add(this.legendInactiveClass);null!==a&&(i.globals.axisCharts||a.parentNode.classList.remove(this.legendInactiveClass),a.classList.remove(this.legendInactiveClass),null!==o&&o.classList.remove(this.legendInactiveClass))}else if("mouseout"===e.type)for(var l=0;l<n.length;l++)n[l].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var i=this,n=this.w,r=n.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),a=function(e){for(var t=0;t<r.length;t++)r[t].classList[e](i.legendInactiveClass)};if("mousemove"===e.type){var o=parseInt(t.getAttribute("rel"),10)-1;a("add"),function(e){for(var t=0;t<r.length;t++){var n=parseInt(r[t].getAttribute("val"),10);n>=e.from&&n<=e.to&&r[t].classList.remove(i.legendInactiveClass)}}(n.config.plotOptions.heatmap.colorScale.ranges[o])}else"mouseout"===e.type&&a("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc",i=this.w,n=0;if(i.config.series.length>1)for(var r=i.config.series.map((function(t,n){var r=!1;return e&&(r="bar"===i.config.series[n].type||"column"===i.config.series[n].type),t.data&&t.data.length>0&&!r?n:-1})),a="asc"===t?0:r.length-1;"asc"===t?a<r.length:a>=0;"asc"===t?a++:a--)if(-1!==r[a]){n=r[a];break}return n}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(t,i,n){for(var r=t[i].childNodes,a={type:n,paths:[],realIndex:t[i].getAttribute("data:realIndex")},o=0;o<r.length;o++)if(r[o].hasAttribute("pathTo")){var s=r[o].getAttribute("pathTo");a.paths.push({d:s})}e.globals.previousPaths.push(a)}e.globals.previousPaths=[],["line","area","bar","rangebar","candlestick","radar"].forEach((function(i){for(var n,r=(n=i,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(n,"-series .apexcharts-series"))),a=0;a<r.length;a++)t(r,a,i)})),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(i.length>0)for(var n=function(t){for(var i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(t,"'] rect")),n=[],r=function(e){var t=function(t){return i[e].getAttribute(t)},r={x:parseFloat(t("x")),y:parseFloat(t("y")),width:parseFloat(t("width")),height:parseFloat(t("height"))};n.push({rect:r,color:i[e].getAttribute("color")})},a=0;a<i.length;a++)r(a);e.globals.previousPaths.push(n)},r=0;r<i.length;r++)n(r);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(e){var t=this.w,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series"));if(i.length>0)for(var n=0;n<i.length;n++){for(var r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series[data\\:realIndex='").concat(n,"'] circle")),a=[],o=0;o<r.length;o++)a.push({x:r[o].getAttribute("cx"),y:r[o].getAttribute("cy"),r:r[o].getAttribute("r")});t.globals.previousPaths.push(a)}}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,t=e.config.noData,i=new w(this.ctx),n=e.globals.svgWidth/2,r=e.globals.svgHeight/2,a="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,"left"===t.align?(n=10,a="start"):"right"===t.align&&(n=e.globals.svgWidth-10,a="end"),"top"===t.verticalAlign?r=50:"bottom"===t.verticalAlign&&(r=e.globals.svgHeight-50),n+=t.offsetX,r=r+parseInt(t.style.fontSize,10)+2+t.offsetY,void 0!==t.text&&""!==t.text){var o=i.drawText({x:n,y:r,text:t.text,textAnchor:a,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(o)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,i=0;i<e.length;i++)if(0===e[i].length)for(var n=0;n<e[t.globals.maxValsInArrayIndex].length;n++)e[i].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,i=this.filteredSeriesX(),n=0;n<i.length-1;n++)if(i[n][0]!==i[n+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map((function(e){return e.length>0?e:[]}))}}]),e}(),N=function(){function e(t){o(this,e),this.w=t.w,this.barCtx=t}return l(e,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<e.length;i++)if(e[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[i].length),t.globals.isXNumeric)for(var n=0;n<e[i].length;n++)t.globals.seriesX[i][n]>t.globals.minX&&t.globals.seriesX[i][n]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],this.barCtx.radiusOnSeriesNumber=e.length-1,t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(){var e,t,i,n,r,a,o,s,l=this.w,c=l.globals.dataPoints;this.barCtx.isTimelineBar&&(c=l.globals.labels.length);var h=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(h=1),this.barCtx.isHorizontal)r=(i=l.globals.gridHeight/c)/h,l.globals.isXNumeric&&(r=(i=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),r=r*parseInt(this.barCtx.barOptions.barHeight,10)/100,s=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),t=(i-r*this.barCtx.seriesLen)/2;else{if(n=l.globals.gridWidth/this.barCtx.visibleItems,l.config.xaxis.convertedCatToNumeric&&(n=l.globals.gridWidth/l.globals.dataPoints),a=n/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric){var d=this.barCtx.xRatio;l.config.xaxis.convertedCatToNumeric&&(d=this.barCtx.initialXRatio),l.globals.minXDiff&&.5!==l.globals.minXDiff&&l.globals.minXDiff/d>0&&(n=l.globals.minXDiff/d),(a=n/this.barCtx.seriesLen*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(a=1)}o=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.yaxisIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.yaxisIndex]:0),e=l.globals.padHorizontal+(n-a*this.barCtx.seriesLen)/2}return{x:e,y:t,yDivision:i,xDivision:n,barHeight:r,barWidth:a,zeroH:o,zeroW:s}}},{key:"getPathFillColor",value:function(e,t,i,n){var r=this.w,a=new E(this.barCtx.ctx),o=null,s=this.barCtx.barOptions.distributed?i:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(n){e[t][i]>=n.from&&e[t][i]<=n.to&&(o=n.color)})),r.config.series[t].data[i]&&r.config.series[t].data[i].fillColor&&(o=r.config.series[t].data[i].fillColor),a.fillPath({seriesNumber:this.barCtx.barOptions.distributed?s:n,dataPointIndex:i,color:o,value:e[t][i]})}},{key:"getStrokeWidth",value:function(e,t,i){var n=0,r=this.w;return void 0===this.barCtx.series[e][t]||null===this.barCtx.series[e][t]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,r.config.stroke.show&&(this.barCtx.isNullValue||(n=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),n}},{key:"barBackground",value:function(e){var t=e.j,i=e.i,n=e.x1,r=e.x2,a=e.y1,o=e.y2,s=e.elSeries,l=this.w,c=new w(this.barCtx.ctx),h=new z(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&h===i){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t-=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[t],u=c.drawRect(void 0!==n?n:0,void 0!==a?a:0,void 0!==r?r:l.globals.gridWidth,void 0!==o?o:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);s.add(u),u.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t=e.barWidth,i=e.barXPosition,n=e.yRatio,r=e.y1,a=e.y2,o=e.strokeWidth,s=e.series,l=e.realIndex,c=e.i,h=e.j,d=e.w,u=new w(this.barCtx.ctx);(o=Array.isArray(o)?o[l]:o)||(o=0);var p={barWidth:t,strokeWidth:o,yRatio:n,barXPosition:i,y1:r,y2:a},f=this.getRoundedBars(d,p,s,c,h),g=i,m=i+t,v=u.move(g,r),y=u.move(g,r),b=u.line(m-o,r);return d.globals.previousPaths.length>0&&(y=this.barCtx.getPreviousPath(l,h,!1)),v=v+u.line(g,f.y2)+f.pathWithRadius+u.line(m-o,f.y2)+b+b+"z",y=y+u.line(g,r)+b+b+b+b+b+u.line(g,r),d.config.chart.stacked&&(this.barCtx.yArrj.push(f.y2),this.barCtx.yArrjF.push(Math.abs(r-f.y2)),this.barCtx.yArrjVal.push(this.barCtx.series[c][h])),{pathTo:v,pathFrom:y}}},{key:"getBarpaths",value:function(e){var t=e.barYPosition,i=e.barHeight,n=e.x1,r=e.x2,a=e.strokeWidth,o=e.series,s=e.realIndex,l=e.i,c=e.j,h=e.w,d=new w(this.barCtx.ctx);(a=Array.isArray(a)?a[s]:a)||(a=0);var u={barHeight:i,strokeWidth:a,barYPosition:t,x2:r,x1:n},p=this.getRoundedBars(h,u,o,l,c),f=d.move(n,t),g=d.move(n,t);h.globals.previousPaths.length>0&&(g=this.barCtx.getPreviousPath(s,c,!1));var m=t,v=t+i,y=d.line(n,v-a);return f=f+d.line(p.x2,m)+p.pathWithRadius+d.line(p.x2,v-a)+y+y+"z",g=g+d.line(n,m)+y+y+y+y+y+d.line(n,m),h.config.chart.stacked&&(this.barCtx.xArrj.push(p.x2),this.barCtx.xArrjF.push(Math.abs(n-p.x2)),this.barCtx.xArrjVal.push(this.barCtx.series[l][c])),{pathTo:f,pathFrom:g}}},{key:"getRoundedBars",value:function(e,t,i,n,r){var a=new w(this.barCtx.ctx),o=e.config.plotOptions.bar.borderRadius;if(e.config.chart.stacked&&i.length>1&&n!==this.barCtx.radiusOnSeriesNumber&&(o=0),this.barCtx.isHorizontal){var s="",l=t.x2;if(Math.abs(t.x1-t.x2)<o&&(o=Math.abs(t.x1-t.x2)),void 0!==i[n][r]||null!==i[n][r]){var c=this.barCtx.isReversed?i[n][r]>0:i[n][r]<0;c&&(o*=-1),l-=o,s=a.quadraticCurve(l+o,t.barYPosition,l+o,t.barYPosition+(c?-1*o:o))+a.line(l+o,t.barYPosition+t.barHeight-t.strokeWidth-(c?-1*o:o))+a.quadraticCurve(l+o,t.barYPosition+t.barHeight-t.strokeWidth,l,t.barYPosition+t.barHeight-t.strokeWidth)}return{pathWithRadius:s,x2:l}}var h="",d=t.y2;if(Math.abs(t.y1-t.y2)<o&&(o=Math.abs(t.y1-t.y2)),void 0!==i[n][r]||null!==i[n][r]){var u=i[n][r]<0;u&&(o*=-1),d+=o,h=a.quadraticCurve(t.barXPosition,d-o,t.barXPosition+(u?-1*o:o),d-o)+a.line(t.barXPosition+t.barWidth-t.strokeWidth-(u?-1*o:o),d-o)+a.quadraticCurve(t.barXPosition+t.barWidth-t.strokeWidth,d-o,t.barXPosition+t.barWidth-t.strokeWidth,d)}return{pathWithRadius:h,y2:d}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,i=this.w,n=0;n<t.length;n++){for(var r=0,a=0;a<t[i.globals.maxValsInArrayIndex].length;a++)r+=t[n][a];0===r&&this.barCtx.zeroSerieses.push(n)}for(var o=t.length-1;o>=0;o--)this.barCtx.zeroSerieses.indexOf(o)>-1&&o===this.radiusOnSeriesNumber&&(this.barCtx.radiusOnSeriesNumber-=1);for(var s=t.length-1;s>=0;s--)i.globals.collapsedSeriesIndices.indexOf(this.barCtx.radiusOnSeriesNumber)>-1&&(this.barCtx.radiusOnSeriesNumber-=1)}},{key:"getXForValue",value:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=i?t:null;return null!=e&&(n=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),n}},{key:"getYForValue",value:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=i?t:null;return null!=e&&(n=t-e/this.barCtx.yRatio[this.barCtx.yaxisIndex]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[this.barCtx.yaxisIndex]:0)),n}},{key:"getGoalValues",value:function(e,t,i,n,r){var a=this,o=this.w,s=[];return o.globals.seriesGoals[n]&&o.globals.seriesGoals[n][r]&&Array.isArray(o.globals.seriesGoals[n][r])&&o.globals.seriesGoals[n][r].forEach((function(n){var r;s.push((c(r={},e,"x"===e?a.getXForValue(n.value,t,!1):a.getYForValue(n.value,i,!1)),c(r,"attrs",n),r))})),s}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,i=e.barYPosition,n=e.goalX,r=e.goalY,a=e.barWidth,o=e.barHeight,s=this.w,l=new w(this.barCtx.ctx),c=l.group({className:"apexcharts-bar-goals-groups"}),h=null;return s.globals.isBarHorizontal?Array.isArray(n)&&n.forEach((function(e){h=l.drawLine(e.x,i,e.x,i+o,e.attrs.strokeColor?e.attrs.strokeColor:void 0,0,e.attrs.strokeWidth?e.attrs.strokeWidth:2),c.add(h)})):Array.isArray(r)&&r.forEach((function(e){h=l.drawLine(t,e.y,t+a,e.y,e.attrs.strokeColor?e.attrs.strokeColor:void 0,0,e.attrs.strokeWidth?e.attrs.strokeWidth:2),c.add(h)})),c}}]),e}(),R=function(){function e(t,i){o(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.barOptions=n.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=n.config.stroke.width,this.isNullValue=!1,this.isTimelineBar="datetime"===n.config.xaxis.type&&n.globals.seriesRangeBarTimeline.length,this.xyRatios=i,null!==this.xyRatios&&(this.xRatio=i.xRatio,this.initialXRatio=i.initialXRatio,this.yRatio=i.yRatio,this.invertedXRatio=i.invertedXRatio,this.invertedYRatio=i.invertedYRatio,this.baseLineY=i.baseLineY,this.baseLineInvertedY=i.baseLineInvertedY),this.yaxisIndex=0,this.seriesLen=0,this.barHelpers=new N(this)}return l(e,[{key:"draw",value:function(e,t){var i=this.w,n=new w(this.ctx),r=new A(this.ctx,i);e=r.getLogSeries(e),this.series=e,this.yRatio=r.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var a=n.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.");for(var o=0,s=0;o<e.length;o++,s++){var l,c,h,u,p=void 0,f=void 0,g=[],m=[],v=i.globals.comboCharts?t[o]:o,b=n.group({class:"apexcharts-series",rel:o+1,seriesName:y.escapeString(i.globals.seriesNames[v]),"data:realIndex":v});this.ctx.series.addCollapsedClassToSeries(b,v),e[o].length>0&&(this.visibleI=this.visibleI+1);var x=0,k=0;this.yRatio.length>1&&(this.yaxisIndex=v),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var _=this.barHelpers.initialPositions();f=_.y,x=_.barHeight,c=_.yDivision,u=_.zeroW,p=_.x,k=_.barWidth,l=_.xDivision,h=_.zeroH,this.horizontal||m.push(p+k/2);for(var S=n.group({class:"apexcharts-datalabels","data:realIndex":v}),C=n.group({class:"apexcharts-bar-goals-markers",style:"pointer-events: none"}),T=0;T<i.globals.dataPoints;T++){var P=this.barHelpers.getStrokeWidth(o,T,v),L=null,E={indexes:{i:o,j:T,realIndex:v,bc:s},x:p,y:f,strokeWidth:P,elSeries:b};this.isHorizontal?(L=this.drawBarPaths(d(d({},E),{},{barHeight:x,zeroW:u,yDivision:c})),k=this.series[o][T]/this.invertedYRatio):(L=this.drawColumnPaths(d(d({},E),{},{xDivision:l,barWidth:k,zeroH:h})),x=this.series[o][T]/this.yRatio[this.yaxisIndex]);var M=this.barHelpers.drawGoalLine({barXPosition:L.barXPosition,barYPosition:L.barYPosition,goalX:L.goalX,goalY:L.goalY,barHeight:x,barWidth:k});M&&C.add(M),f=L.y,p=L.x,T>0&&m.push(p+k/2),g.push(f);var I=this.barHelpers.getPathFillColor(e,o,T,v);this.renderSeries({realIndex:v,pathFill:I,j:T,i:o,pathFrom:L.pathFrom,pathTo:L.pathTo,strokeWidth:P,elSeries:b,x:p,y:f,series:e,barHeight:x,barWidth:k,elDataLabelsWrap:S,elGoalsMarkers:C,visibleSeries:this.visibleI,type:"bar"})}i.globals.seriesXvalues[v]=m,i.globals.seriesYvalues[v]=g,a.add(b)}return a}},{key:"renderSeries",value:function(e){var t=e.realIndex,i=e.pathFill,n=e.lineFill,r=e.j,a=e.i,o=e.pathFrom,s=e.pathTo,l=e.strokeWidth,c=e.elSeries,h=e.x,d=e.y,u=e.y1,p=e.y2,f=e.series,g=e.barHeight,m=e.barWidth,v=e.barYPosition,y=e.elDataLabelsWrap,b=e.elGoalsMarkers,k=e.visibleSeries,_=e.type,A=this.w,S=new w(this.ctx);n||(n=this.barOptions.distributed?A.globals.stroke.colors[r]:A.globals.stroke.colors[t]),A.config.series[a].data[r]&&A.config.series[a].data[r].strokeColor&&(n=A.config.series[a].data[r].strokeColor),this.isNullValue&&(i="none");var C=r/A.config.chart.animations.animateGradually.delay*(A.config.chart.animations.speed/A.globals.dataPoints)/2.4,T=S.renderPaths({i:a,j:r,realIndex:t,pathFrom:o,pathTo:s,stroke:n,strokeWidth:l,strokeLineCap:A.config.stroke.lineCap,fill:i,animationDelay:C,initialSpeed:A.config.chart.animations.speed,dataChangeSpeed:A.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(_,"-area")});T.attr("clip-path","url(#gridRectMask".concat(A.globals.cuid,")")),void 0!==u&&void 0!==p&&(T.attr("data-range-y1",u),T.attr("data-range-y2",p)),new x(this.ctx).setSelectionFilter(T,t,r),c.add(T);var P=new D(this).handleBarDataLabels({x:h,y:d,y1:u,y2:p,i:a,j:r,series:f,realIndex:t,barHeight:g,barWidth:m,barYPosition:v,renderedPath:T,visibleSeries:k});return null!==P&&y.add(P),c.add(y),b&&c.add(b),c}},{key:"drawBarPaths",value:function(e){var t=e.indexes,i=e.barHeight,n=e.strokeWidth,r=e.zeroW,a=e.x,o=e.y,s=e.yDivision,l=e.elSeries,c=this.w,h=t.i,d=t.j;c.globals.isXNumeric&&(o=(c.globals.seriesX[h][d]-c.globals.minX)/this.invertedXRatio-i);var u=o+i*this.visibleI;a=this.barHelpers.getXForValue(this.series[h][d],r);var p=this.barHelpers.getBarpaths({barYPosition:u,barHeight:i,x1:r,x2:a,strokeWidth:n,series:this.series,realIndex:t.realIndex,i:h,j:d,w:c});return c.globals.isXNumeric||(o+=s),this.barHelpers.barBackground({j:d,i:h,y1:u-i*this.visibleI,y2:i*this.seriesLen,elSeries:l}),{pathTo:p.pathTo,pathFrom:p.pathFrom,x:a,y:o,goalX:this.barHelpers.getGoalValues("x",r,null,h,d),barYPosition:u}}},{key:"drawColumnPaths",value:function(e){var t=e.indexes,i=e.x,n=e.y,r=e.xDivision,a=e.barWidth,o=e.zeroH,s=e.strokeWidth,l=e.elSeries,c=this.w,h=t.realIndex,d=t.i,u=t.j,p=t.bc;if(c.globals.isXNumeric){var f=h;c.globals.seriesX[h].length||(f=c.globals.maxValsInArrayIndex),i=(c.globals.seriesX[f][u]-c.globals.minX)/this.xRatio-a*this.seriesLen/2}var g=i+a*this.visibleI;n=this.barHelpers.getYForValue(this.series[d][u],o);var m=this.barHelpers.getColumnPaths({barXPosition:g,barWidth:a,y1:o,y2:n,strokeWidth:s,series:this.series,realIndex:t.realIndex,i:d,j:u,w:c});return c.globals.isXNumeric||(i+=r),this.barHelpers.barBackground({bc:p,j:u,i:d,x1:g-s/2-a*this.visibleI,x2:a*this.seriesLen+s/2,elSeries:l}),{pathTo:m.pathTo,pathFrom:m.pathFrom,x:i,y:n,goalY:this.barHelpers.getGoalValues("y",null,o,d,u),barXPosition:g}}},{key:"getPreviousPath",value:function(e,t){for(var i,n=this.w,r=0;r<n.globals.previousPaths.length;r++){var a=n.globals.previousPaths[r];a.paths&&a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(e,10)&&void 0!==n.globals.previousPaths[r].paths[t]&&(i=n.globals.previousPaths[r].paths[t].d)}return i}}]),e}(),F=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return l(e,[{key:"isValidDate",value:function(e){return!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var i=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var i=this.w.globals.locale,n=this.w.config.xaxis.labels.datetimeUTC,r=["\0"].concat(m(i.months)),a=[""].concat(m(i.shortMonths)),o=[""].concat(m(i.days)),s=[""].concat(m(i.shortDays));function l(e,t){var i=e+"";for(t=t||2;i.length<t;)i="0"+i;return i}var c=n?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var h=(n?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+r[0])).replace(/(^|[^\\])MMM/g,"$1"+a[0])).replace(/(^|[^\\])MM/g,"$1"+l(h))).replace(/(^|[^\\])M/g,"$1"+h);var d=n?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+o[0])).replace(/(^|[^\\])ddd/g,"$1"+s[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var u=n?e.getUTCHours():e.getHours(),p=u>12?u-12:0===u?12:u;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+l(u))).replace(/(^|[^\\])H/g,"$1"+u)).replace(/(^|[^\\])hh+/g,"$1"+l(p))).replace(/(^|[^\\])h/g,"$1"+p);var f=n?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(f))).replace(/(^|[^\\])m/g,"$1"+f);var g=n?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(g))).replace(/(^|[^\\])s/g,"$1"+g);var v=n?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(v,3)),v=Math.round(v/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(v)),v=Math.round(v/10);var y=u<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+v)).replace(/(^|[^\\])TT+/g,"$1"+y)).replace(/(^|[^\\])T/g,"$1"+y.charAt(0));var b=y.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+b)).replace(/(^|[^\\])t/g,"$1"+b.charAt(0));var x=-e.getTimezoneOffset(),w=n||!x?"Z":x>0?"+":"-";if(!n){var k=(x=Math.abs(x))%60;w+=l(Math.floor(x/60))+":"+l(k)}t=t.replace(/(^|[^\\])K/g,"$1"+w);var _=(n?e.getUTCDay():e.getDay())+1;return(t=(t=(t=(t=t.replace(new RegExp(o[0],"g"),o[_])).replace(new RegExp(s[0],"g"),s[_])).replace(new RegExp(r[0],"g"),r[h])).replace(new RegExp(a[0],"g"),a[h])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,i){var n=this.w;void 0!==n.config.xaxis.min&&(e=n.config.xaxis.min),void 0!==n.config.xaxis.max&&(t=n.config.xaxis.max);var r=this.getDate(e),a=this.getDate(t),o=this.formatDate(r,"yyyy MM dd HH mm ss fff").split(" "),s=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(o[6],10),maxMillisecond:parseInt(s[6],10),minSecond:parseInt(o[5],10),maxSecond:parseInt(s[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(s[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(s[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(s[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(s[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(s[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,i){return this.determineDaysOfMonths(e,t)-i}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,i){var n=this.daysCntOfYear[t]+i;return t>1&&this.isLeapYear()&&n++,n}},{key:"determineDaysOfMonths",value:function(e,t){var i=30;switch(e=y.monthMod(e),!0){case this.months30.indexOf(e)>-1:2===e&&(i=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:i=31}return i}}]),e}(),Y=function(e){u(i,R);var t=g(i);function i(){return o(this,i),t.apply(this,arguments)}return l(i,[{key:"draw",value:function(e,t){var i=this.w,n=new w(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(e);for(var r=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),a=0;a<e.length;a++){var o,s,l,c=void 0,h=void 0,u=void 0,p=i.globals.comboCharts?t[a]:a,f=n.group({class:"apexcharts-series",seriesName:y.escapeString(i.globals.seriesNames[p]),rel:a+1,"data:realIndex":p});e[a].length>0&&(this.visibleI=this.visibleI+1);var g=0,m=0;this.yRatio.length>1&&(this.yaxisIndex=p);var v=this.barHelpers.initialPositions();h=v.y,l=v.zeroW,c=v.x,m=v.barWidth,o=v.xDivision,s=v.zeroH;for(var b=n.group({class:"apexcharts-datalabels","data:realIndex":p}),x=0;x<i.globals.dataPoints;x++){var k=this.barHelpers.getStrokeWidth(a,x,p),_=this.seriesRangeStart[a][x],A=this.seriesRangeEnd[a][x],S=null,C=null,T={x:c,y:h,strokeWidth:k,elSeries:f};if(u=v.yDivision,g=v.barHeight,this.isHorizontal){C=h+g*this.visibleI;var P=this.seriesLen;i.config.plotOptions.bar.rangeBarGroupRows&&(P=1);var L=(u-g*P)/2;if(void 0===i.config.series[a].data[x])break;if(this.isTimelineBar&&i.config.series[a].data[x].x){var E=this.detectOverlappingBars({i:a,j:x,barYPosition:C,srty:L,barHeight:g,yDivision:u,initPositions:v});g=E.barHeight,C=E.barYPosition}m=(S=this.drawRangeBarPaths(d({indexes:{i:a,j:x,realIndex:p},barHeight:g,barYPosition:C,zeroW:l,yDivision:u,y1:_,y2:A},T))).barWidth}else g=(S=this.drawRangeColumnPaths(d({indexes:{i:a,j:x,realIndex:p},zeroH:s,barWidth:m,xDivision:o},T))).barHeight;h=S.y,c=S.x;var M=this.barHelpers.getPathFillColor(e,a,x,p),I=i.globals.stroke.colors[p];this.renderSeries({realIndex:p,pathFill:M,lineFill:I,j:x,i:a,x:c,y:h,y1:_,y2:A,pathFrom:S.pathFrom,pathTo:S.pathTo,strokeWidth:k,elSeries:f,series:e,barHeight:g,barYPosition:C,barWidth:m,elDataLabelsWrap:b,visibleSeries:this.visibleI,type:"rangebar"})}r.add(f)}return r}},{key:"detectOverlappingBars",value:function(e){var t=e.i,i=e.j,n=e.barYPosition,r=e.srty,a=e.barHeight,o=e.yDivision,s=e.initPositions,l=this.w,c=[],h=l.config.series[t].data[i].rangeName,d=l.config.series[t].data[i].x,u=l.globals.labels.indexOf(d),p=l.globals.seriesRangeBarTimeline[t].findIndex((function(e){return e.x===d&&e.overlaps.length>0}));return n=l.config.plotOptions.bar.rangeBarGroupRows?r+o*u:r+a*this.visibleI+o*u,p>-1&&!l.config.plotOptions.bar.rangeBarOverlap&&(c=l.globals.seriesRangeBarTimeline[t][p].overlaps).indexOf(h)>-1&&(n=(a=s.barHeight/c.length)*this.visibleI+o*(100-parseInt(this.barOptions.barHeight,10))/100/2+a*(this.visibleI+c.indexOf(h))+o*u),{barYPosition:n,barHeight:a}}},{key:"drawRangeColumnPaths",value:function(e){var t=e.indexes,i=e.x,n=(e.strokeWidth,e.xDivision),r=e.barWidth,a=e.zeroH,o=this.w,s=t.i,l=t.j,c=this.yRatio[this.yaxisIndex],h=t.realIndex,d=this.getRangeValue(h,l),u=Math.min(d.start,d.end),p=Math.max(d.start,d.end);o.globals.isXNumeric&&(i=(o.globals.seriesX[s][l]-o.globals.minX)/this.xRatio-r/2);var f=i+r*this.visibleI;void 0===this.series[s][l]||null===this.series[s][l]?u=a:(u=a-u/c,p=a-p/c);var g=Math.abs(p-u),m=this.barHelpers.getColumnPaths({barXPosition:f,barWidth:r,y1:u,y2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:t.realIndex,i:h,j:l,w:o});return o.globals.isXNumeric||(i+=n),{pathTo:m.pathTo,pathFrom:m.pathFrom,barHeight:g,x:i,y:p,barXPosition:f}}},{key:"drawRangeBarPaths",value:function(e){var t=e.indexes,i=e.y,n=e.y1,r=e.y2,a=e.yDivision,o=e.barHeight,s=e.barYPosition,l=e.zeroW,c=this.w,h=l+n/this.invertedYRatio,d=l+r/this.invertedYRatio,u=Math.abs(d-h),p=this.barHelpers.getBarpaths({barYPosition:s,barHeight:o,x1:h,x2:d,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:t.realIndex,realIndex:t.realIndex,j:t.j,w:c});return c.globals.isXNumeric||(i+=a),{pathTo:p.pathTo,pathFrom:p.pathFrom,barWidth:u,x:d,y:i}}},{key:"getRangeValue",value:function(e,t){var i=this.w;return{start:i.globals.seriesRangeStart[e][t],end:i.globals.seriesRangeEnd[e][t]}}},{key:"getTooltipValues",value:function(e){var t=e.ctx,i=e.seriesIndex,n=e.dataPointIndex,r=e.y1,a=e.y2,o=e.w,s=o.globals.seriesRangeStart[i][n],l=o.globals.seriesRangeEnd[i][n],c=o.globals.labels[n],h=o.config.series[i].name?o.config.series[i].name:"",d=o.config.tooltip.y.formatter,u=o.config.tooltip.y.title.formatter,p={w:o,seriesIndex:i,dataPointIndex:n,start:s,end:l};"function"==typeof u&&(h=u(h,p)),Number.isFinite(r)&&Number.isFinite(a)&&(s=r,l=a,o.config.series[i].data[n].x&&(c=o.config.series[i].data[n].x+":"),"function"==typeof d&&(c=d(c,p)));var f="",g="",m=o.globals.colors[i];if(void 0===o.config.tooltip.x.formatter)if("datetime"===o.config.xaxis.type){var v=new F(t);f=v.formatDate(v.getDate(s),o.config.tooltip.x.format),g=v.formatDate(v.getDate(l),o.config.tooltip.x.format)}else f=s,g=l;else f=o.config.tooltip.x.formatter(s),g=o.config.tooltip.x.formatter(l);return{start:s,end:l,startVal:f,endVal:g,ylabel:c,color:m,seriesName:h}}},{key:"buildCustomTooltipHTML",value:function(e){return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+e.color+'">'+(e.seriesName||"")+'</span></div><div> <span class="category">'+e.ylabel+' </span> <span class="value start-value">'+e.start+'</span> <span class="separator">-</span> <span class="value end-value">'+e.end+"</span></div></div>"}}]),i}(),H=function(){function e(t){o(this,e),this.opts=t}return l(e,[{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0,y.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,n=t.dataPointIndex,r=t.w;return e._getBoxTooltip(r,i,n,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,n=t.dataPointIndex,r=t.w;return e._getBoxTooltip(r,i,n,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:5,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var i=t.seriesIndex,n=t.dataPointIndex,r=t.w,a=r.globals.seriesRangeStart[i][n];return r.globals.seriesRangeEnd[i][n]-a},background:{enabled:!1},style:{colors:["#fff"]}},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(e){var t=new Y(e.ctx,null),i=t.getTooltipValues(e),n=i.color,r=i.seriesName,a=i.ylabel,o=i.startVal,s=i.endVal;return t.buildCustomTooltipHTML({color:n,seriesName:r,ylabel:a,start:o,end:s})}(e):function(e){var t=new Y(e.ctx,null),i=t.getTooltipValues(e),n=i.color,r=i.seriesName,a=i.ylabel,o=i.start,s=i.end;return t.buildCustomTooltipHTML({color:n,seriesName:r,ylabel:a,start:o,end:s})}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"area",value:function(){return{stroke:{width:4},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"brush",value:function(e){return y.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach((function(t,i){e.yaxis[i].min=0,e.yaxis[i].max=100})),"bar"===e.chart.type&&(e.dataLabels.formatter=t||function(e){return"number"==typeof e&&e?e.toFixed(0)+"%":e}),e}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,i){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(e){return y.isNumber(e)?Math.floor(e):e};var n=e.xaxis.labels.formatter,r=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return i&&i.length&&(r=i.map((function(e){return Array.isArray(e)?e:String(e)}))),r&&r.length&&(e.xaxis.labels.formatter=function(e){return y.isNumber(e)?n(r[Math.floor(e)-1]):n(e)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"polarArea",value:function(){return this.opts.yaxis[0].tickAmount=this.opts.yaxis[0].tickAmount?this.opts.yaxis[0].tickAmount:6,{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{labels:{formatter:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}},{key:"_getBoxTooltip",value:function(e,t,i,n,r){var a=e.globals.seriesCandleO[t][i],o=e.globals.seriesCandleH[t][i],s=e.globals.seriesCandleM[t][i],l=e.globals.seriesCandleL[t][i],c=e.globals.seriesCandleC[t][i];return e.config.series[t].type&&e.config.series[t].type!==r?'<div class="apexcharts-custom-tooltip">\n '.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][i],"</strong>\n </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(n[0],': <span class="value">')+a+"</span></div>"+"<div>".concat(n[1],': <span class="value">')+o+"</span></div>"+(s?"<div>".concat(n[2],': <span class="value">')+s+"</span></div>":"")+"<div>".concat(n[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(n[4],': <span class="value">')+c+"</span></div></div>"}}]),e}(),$=function(){function e(t){o(this,e),this.opts=t}return l(e,[{key:"init",value:function(e){var t=e.responsiveOverride,i=this.opts,n=new P,r=new H(i);this.chartType=i.chart.type,"histogram"===this.chartType&&(i.chart.type="bar",i=y.extend({plotOptions:{bar:{columnWidth:"99.99%"}}},i)),i=this.extendYAxis(i),i=this.extendAnnotations(i);var o=n.init(),s={};if(i&&"object"===a(i)){var l={};l=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","histogram","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)?r[i.chart.type]():r.line(),i.chart.brush&&i.chart.brush.enabled&&(l=r.brush(l)),i.chart.stacked&&"100%"===i.chart.stackType&&(i=r.stacked100(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},t||(i.xaxis.convertedCatToNumeric=!1),((i=this.checkForCatToNumericXAxis(this.chartType,l,i)).chart.sparkline&&i.chart.sparkline.enabled||window.Apex.chart&&window.Apex.chart.sparkline&&window.Apex.chart.sparkline.enabled)&&(l=r.sparkline(l)),s=y.extend(o,l)}var c=y.extend(s,window.Apex);return o=y.extend(c,i),this.handleUserInputErrors(o)}},{key:"checkForCatToNumericXAxis",value:function(e,t,i){var n=new H(i),r="bar"===e&&i.plotOptions&&i.plotOptions.bar&&i.plotOptions.bar.horizontal,a="pie"===e||"polarArea"===e||"donut"===e||"radar"===e||"radialBar"===e||"heatmap"===e,o="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,s=i.xaxis.tickPlacement?i.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return r||a||!o||"between"===s||(i=n.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(e,t){var i=new P;(void 0===e.yaxis||!e.yaxis||Array.isArray(e.yaxis)&&0===e.yaxis.length)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=y.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[y.extend(i.yAxis,e.yaxis)]:e.yaxis=y.extendArray(e.yaxis,i.yAxis);var n=!1;e.yaxis.forEach((function(e){e.logarithmic&&(n=!0)}));var r=e.series;return t&&!r&&(r=t.config.series),n&&r.length!==e.yaxis.length&&r.length&&(e.yaxis=r.map((function(t,n){if(t.name||(r[n].name="series-".concat(n+1)),e.yaxis[n])return e.yaxis[n].seriesName=r[n].name,e.yaxis[n];var a=y.extend(i.yAxis,e.yaxis[0]);return a.show=!1,a}))),n&&r.length>1&&r.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes. Please make sure to equalize both."),e}},{key:"extendAnnotations",value:function(e){return void 0===e.annotations&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new P;return e.annotations.yaxis=y.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new P;return e.annotations.xaxis=y.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new P;return e.annotations.points=y.extendArray(void 0!==e.annotations.points?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&"dark"===e.theme.mode&&(e.tooltip||(e.tooltip={}),"light"!==e.tooltip.theme&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.chart.background||(e.chart.background="#424242"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===t.chart.type&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return"bar"!==t.chart.type&&"rangeBar"!==t.chart.type||t.tooltip.shared&&"barWidth"===t.xaxis.crosshairs.width&&t.series.length>1&&(console.warn('crosshairs.width = "barWidth" is only supported in single series, not in a multi-series barChart.'),t.xaxis.crosshairs.width="tickWidth"),"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t.chart.group&&0===t.yaxis[0].labels.minWidth&&console.warn("It looks like you have multiple charts in synchronization. You must provide yaxis.labels.minWidth which must be EQUAL for all grouped charts to prevent incorrect behaviour."),Array.isArray(t.stroke.width)&&"line"!==t.chart.type&&"area"!==t.chart.type&&(console.warn("stroke.width option accepts array only for line and area charts. Reverted back to Number"),t.stroke.width=t.stroke.width[0]),t}}]),e}(),j=function(){function e(){o(this,e)}return l(e,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRangeBarTimeline=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.xaxisLabelsCount=0,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],goldenPadding:35,invalidLogScale:!1,ignoreYAxisIndexes:[],yAxisSameScaleIndices:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:"pan"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.pan,selectionEnabled:"selection"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=y.extend({},e),t.initialSeries=y.clone(e.series),t.lastXAxis=y.clone(t.initialConfig.xaxis),t.lastYAxis=y.clone(t.initialConfig.yaxis),t}}]),e}(),X=function(){function e(t){o(this,e),this.opts=t}return l(e,[{key:"init",value:function(){var e=new $(this.opts).init({responsiveOverride:!1});return{config:e,globals:(new j).init(e)}}}]),e}(),B=function(){function e(t){o(this,e),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new A(this.ctx)}return l(e,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new z(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&null!==e[this.activeSeriesIndex].data[0]&&void 0!==e[this.activeSeriesIndex].data[0].x&&null!==e[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new z(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&void 0!==e[this.activeSeriesIndex].data[0]&&null!==e[this.activeSeriesIndex].data[0]&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var i=this.w.config,n=this.w.globals,r="boxPlot"===i.chart.type||"boxPlot"===i.series[t].type,a=0;a<e[t].data.length;a++)if(void 0!==e[t].data[a][1]&&(Array.isArray(e[t].data[a][1])&&4===e[t].data[a][1].length&&!r?this.twoDSeries.push(y.parseNumber(e[t].data[a][1][3])):e[t].data[a].length>=5?this.twoDSeries.push(y.parseNumber(e[t].data[a][4])):this.twoDSeries.push(y.parseNumber(e[t].data[a][1])),n.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var o=new Date(e[t].data[a][0]);o=new Date(o).getTime(),this.twoDSeriesX.push(o)}else this.twoDSeriesX.push(e[t].data[a][0]);for(var s=0;s<e[t].data.length;s++)void 0!==e[t].data[s][2]&&(this.threeDSeries.push(e[t].data[s][2]),n.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var i=this.w.config,n=this.w.globals,r=new F(this.ctx),a=t;n.collapsedSeriesIndices.indexOf(t)>-1&&(a=this.activeSeriesIndex);for(var o=0;o<e[t].data.length;o++)void 0!==e[t].data[o].y&&(Array.isArray(e[t].data[o].y)?this.twoDSeries.push(y.parseNumber(e[t].data[o].y[e[t].data[o].y.length-1])):this.twoDSeries.push(y.parseNumber(e[t].data[o].y))),void 0!==e[t].data[o].goals&&Array.isArray(e[t].data[o].goals)?(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[o].goals)):(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var s=0;s<e[a].data.length;s++){var l="string"==typeof e[a].data[s].x,c=Array.isArray(e[a].data[s].x),h=!c&&!!r.isValidDate(e[a].data[s].x.toString());if(l||h)if(l||i.xaxis.convertedCatToNumeric){var d=n.isBarHorizontal&&n.isRangeData;"datetime"!==i.xaxis.type||d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[a].data[s].x)):this.twoDSeriesX.push(r.parseDate(e[a].data[s].x))}else"datetime"===i.xaxis.type?this.twoDSeriesX.push(r.parseDate(e[a].data[s].x.toString())):(n.dataFormatXNumeric=!0,n.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[a].data[s].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[a].data[s].x)):(n.isXNumeric=!0,n.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[a].data[s].x))}if(e[t].data[0]&&void 0!==e[t].data[0].z){for(var u=0;u<e[t].data.length;u++)this.threeDSeries.push(e[t].data[u].z);n.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var i=this.w.config,n=this.w.globals,r={};return this.isFormat2DArray()?r=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(r=this.handleRangeDataFormat("xy",e,t)),n.seriesRangeStart.push(r.start),n.seriesRangeEnd.push(r.end),"datetime"===i.xaxis.type&&n.seriesRangeBarTimeline.push(r.rangeUniques),n.seriesRangeBarTimeline.forEach((function(e,t){e&&e.forEach((function(e,t){e.y.forEach((function(t,i){for(var n=0;n<e.y.length;n++)if(i!==n){var r=t.y1,a=t.y2,o=e.y[n].y1;r<=e.y[n].y2&&o<=a&&(e.overlaps.indexOf(t.rangeName)<0&&e.overlaps.push(t.rangeName),e.overlaps.indexOf(e.y[n].rangeName)<0&&e.overlaps.push(e.y[n].rangeName))}}))}))})),r}},{key:"handleCandleStickBoxData",value:function(e,t){var i=this.w.globals,n={};return this.isFormat2DArray()?n=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(n=this.handleCandleStickBoxDataFormat("xy",e,t)),i.seriesCandleO[t]=n.o,i.seriesCandleH[t]=n.h,i.seriesCandleM[t]=n.m,i.seriesCandleL[t]=n.l,i.seriesCandleC[t]=n.c,n}},{key:"handleRangeDataFormat",value:function(e,t,i){var n=[],r=[],a=t[i].data.filter((function(e,t,i){return t===i.findIndex((function(t){return t.x===e.x}))})).map((function(e,t){return{x:e.x,overlaps:[],y:[]}})),o="Please provide [Start, End] values in valid format. Read more https://apexcharts.com/docs/series/#rangecharts",s=new z(this.ctx).getActiveConfigSeriesIndex();if("array"===e){if(2!==t[s].data[0][1].length)throw new Error(o);for(var l=0;l<t[i].data.length;l++)n.push(t[i].data[l][1][0]),r.push(t[i].data[l][1][1])}else if("xy"===e){if(2!==t[s].data[0].y.length)throw new Error(o);for(var c=function(e){var o=y.randomId(),s=t[i].data[e].x,l={y1:t[i].data[e].y[0],y2:t[i].data[e].y[1],rangeName:o};t[i].data[e].rangeName=o;var c=a.findIndex((function(e){return e.x===s}));a[c].y.push(l),n.push(l.y1),r.push(l.y2)},h=0;h<t[i].data.lengt
|