Version Description
- New: Call to Action
- Fix: Section - Background Opacity issue fix.
- Improvement: Post - Added an option for Complete Box Link.
Download this release
Release Info
Developer | Nikschavan |
Plugin | Gutenberg Blocks – Ultimate Addons for Gutenberg |
Version | 1.7.0 |
Comparing to | |
See all releases |
Code changes from version 1.6.2 to 1.7.0
- classes/class-uagb-block-helper.php +2061 -1937
- classes/class-uagb-config.php +608 -567
- classes/class-uagb-helper.php +568 -539
- classes/class-uagb-loader.php +1 -1
- dist/blocks.build.js +0 -1
classes/class-uagb-block-helper.php
CHANGED
@@ -1,1937 +1,2061 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* UAGB Block Helper.
|
4 |
-
*
|
5 |
-
* @package UAGB
|
6 |
-
*/
|
7 |
-
|
8 |
-
if ( ! class_exists( 'UAGB_Block_Helper' ) ) {
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Class UAGB_Block_Helper.
|
12 |
-
*/
|
13 |
-
class UAGB_Block_Helper {
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Get Section Block CSS
|
17 |
-
*
|
18 |
-
* @since 0.0.1
|
19 |
-
* @param array $attr The block attributes.
|
20 |
-
* @param string $id The selector ID.
|
21 |
-
* @return array The Widget List.
|
22 |
-
*/
|
23 |
-
public static function get_section_css( $attr, $id ) {
|
24 |
-
|
25 |
-
// @codingStandardsIgnoreStart
|
26 |
-
|
27 |
-
global $content_width;
|
28 |
-
|
29 |
-
$defaults = UAGB_Helper::$block_list['uagb/section']['attributes'];
|
30 |
-
|
31 |
-
$attr = array_merge( $defaults, $attr );
|
32 |
-
|
33 |
-
$bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
|
34 |
-
|
35 |
-
$style = array(
|
36 |
-
'padding-top' => $attr['topPadding'] . 'px',
|
37 |
-
'padding-bottom' => $attr['bottomPadding'] . 'px',
|
38 |
-
'padding-left' => $attr['leftPadding'] . 'px',
|
39 |
-
'padding-right' => $attr['rightPadding'] . 'px',
|
40 |
-
'border-radius' => $attr['borderRadius'] . "px"
|
41 |
-
);
|
42 |
-
|
43 |
-
if ( 'right' == $attr['align'] ) {
|
44 |
-
$style['margin-right'] = $attr['rightMargin'] . 'px';
|
45 |
-
$style['margin-left'] = 'auto';
|
46 |
-
$style['margin-top'] = $attr['topMargin'] . 'px';
|
47 |
-
$style['margin-bottom'] = $attr['bottomMargin'] . 'px';
|
48 |
-
} elseif ( 'left' == $attr['align'] ) {
|
49 |
-
$style['margin-right'] = 'auto';
|
50 |
-
$style['margin-left'] = $attr['leftMargin'] . 'px';
|
51 |
-
$style['margin-top'] = $attr['topMargin'] . 'px';
|
52 |
-
$style['margin-bottom'] = $attr['bottomMargin'] . 'px';
|
53 |
-
} elseif ( 'center' == $attr['align'] ) {
|
54 |
-
$style['margin-right'] = 'auto';
|
55 |
-
$style['margin-left'] = 'auto';
|
56 |
-
$style['margin-top'] = $attr['topMargin'] . 'px';
|
57 |
-
$style['margin-bottom'] = $attr['bottomMargin'] . 'px';
|
58 |
-
} else {
|
59 |
-
$style['margin-top'] = $attr['topMargin'] . 'px';
|
60 |
-
$style['margin-bottom'] = $attr['bottomMargin'] . 'px';
|
61 |
-
}
|
62 |
-
|
63 |
-
if ( "none" != $attr['borderStyle'] ) {
|
64 |
-
$style["border-style"] = $attr['borderStyle'];
|
65 |
-
$style["border-width"] = $attr['borderWidth'] . "px";
|
66 |
-
$style["border-color"] = $attr['borderColor'];
|
67 |
-
}
|
68 |
-
|
69 |
-
$position = str_replace( '-', ' ', $attr['backgroundPosition'] );
|
70 |
-
|
71 |
-
$section_width = '100%';
|
72 |
-
|
73 |
-
if ( isset( $attr['contentWidth'] ) ) {
|
74 |
-
|
75 |
-
if ( 'boxed' == $attr['contentWidth'] ) {
|
76 |
-
if ( isset( $attr['width'] ) ) {
|
77 |
-
$section_width = $attr['width'] . 'px';
|
78 |
-
}
|
79 |
-
}
|
80 |
-
}
|
81 |
-
|
82 |
-
if ( 'wide' != $attr['align'] && 'full' != $attr['align'] ) {
|
83 |
-
$style['max-width'] = $section_width;
|
84 |
-
}
|
85 |
-
|
86 |
-
|
87 |
-
if ( '
|
88 |
-
|
89 |
-
$style['background-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
$style['background-
|
94 |
-
|
95 |
-
|
96 |
-
$style['background-
|
97 |
-
$style['
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
$style['background-image'] = '
|
105 |
-
}
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
' .uagb-
|
128 |
-
'
|
129 |
-
),
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
*
|
160 |
-
*
|
161 |
-
* @
|
162 |
-
* @
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
$
|
171 |
-
|
172 |
-
$
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
'
|
177 |
-
'
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
'
|
186 |
-
'
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
);
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
'
|
197 |
-
'border-
|
198 |
-
'
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
*
|
211 |
-
*
|
212 |
-
* @
|
213 |
-
* @
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
$
|
222 |
-
|
223 |
-
$
|
224 |
-
|
225 |
-
$
|
226 |
-
|
227 |
-
|
228 |
-
$
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
'
|
243 |
-
'-
|
244 |
-
'-
|
245 |
-
'
|
246 |
-
'-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
)
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
$button['
|
255 |
-
$button['
|
256 |
-
$button['
|
257 |
-
$button['
|
258 |
-
$button['
|
259 |
-
$button['
|
260 |
-
$button['
|
261 |
-
$button['
|
262 |
-
$button['
|
263 |
-
$button['
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
'
|
273 |
-
'border-
|
274 |
-
'border-
|
275 |
-
'
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
'
|
282 |
-
'border-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
$
|
349 |
-
|
350 |
-
$
|
351 |
-
|
352 |
-
$
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
*
|
360 |
-
*
|
361 |
-
* @
|
362 |
-
* @
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
$
|
370 |
-
|
371 |
-
$
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
'height'
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
'
|
381 |
-
'height'
|
382 |
-
'
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
'margin-
|
391 |
-
'margin-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
'
|
417 |
-
'
|
418 |
-
'
|
419 |
-
'border-
|
420 |
-
'border-
|
421 |
-
'
|
422 |
-
'
|
423 |
-
'padding-
|
424 |
-
'padding-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
'color'
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
'
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
'
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
'
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
'
|
459 |
-
'border-top-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
)
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
*
|
489 |
-
*
|
490 |
-
* @
|
491 |
-
* @param
|
492 |
-
* @
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
$
|
500 |
-
|
501 |
-
$
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
'
|
515 |
-
'
|
516 |
-
'
|
517 |
-
|
518 |
-
|
519 |
-
'padding-left'
|
520 |
-
'padding-right'
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
'
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
'
|
530 |
-
'
|
531 |
-
),
|
532 |
-
' .uagb-
|
533 |
-
'
|
534 |
-
'
|
535 |
-
'margin-bottom'
|
536 |
-
),
|
537 |
-
' .uagb-
|
538 |
-
'
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
)
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
)
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
$
|
667 |
-
$
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
$
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
$selectors
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
"
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
"
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
"
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
"
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
"
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
"
|
785 |
-
)
|
786 |
-
|
787 |
-
|
788 |
-
$
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
if ( "
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
$
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
"
|
915 |
-
"
|
916 |
-
"
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
if ( $attr['
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
"
|
1069 |
-
);
|
1070 |
-
|
1071 |
-
$
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
1151 |
-
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
1324 |
-
"
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
-
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
1362 |
-
|
1363 |
-
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
1372 |
-
|
1373 |
-
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
1419 |
-
|
1420 |
-
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
-
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
|
1524 |
-
|
1525 |
-
|
1526 |
-
|
1527 |
-
|
1528 |
-
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
1536 |
-
|
1537 |
-
|
1538 |
-
|
1539 |
-
|
1540 |
-
|
1541 |
-
|
1542 |
-
|
1543 |
-
|
1544 |
-
|
1545 |
-
|
1546 |
-
|
1547 |
-
|
1548 |
-
|
1549 |
-
|
1550 |
-
|
1551 |
-
|
1552 |
-
|
1553 |
-
|
1554 |
-
|
1555 |
-
|
1556 |
-
|
1557 |
-
|
1558 |
-
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
1562 |
-
|
1563 |
-
|
1564 |
-
|
1565 |
-
|
1566 |
-
|
1567 |
-
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
'
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
1595 |
-
|
1596 |
-
|
1597 |
-
|
1598 |
-
|
1599 |
-
|
1600 |
-
|
1601 |
-
|
1602 |
-
|
1603 |
-
|
1604 |
-
|
1605 |
-
|
1606 |
-
|
1607 |
-
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
-
|
1622 |
-
|
1623 |
-
|
1624 |
-
|
1625 |
-
|
1626 |
-
|
1627 |
-
|
1628 |
-
|
1629 |
-
|
1630 |
-
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
1635 |
-
|
1636 |
-
|
1637 |
-
|
1638 |
-
|
1639 |
-
$m_selectors['
|
1640 |
-
'
|
1641 |
-
|
1642 |
-
|
1643 |
-
|
1644 |
-
|
1645 |
-
|
1646 |
-
|
1647 |
-
|
1648 |
-
$
|
1649 |
-
|
1650 |
-
|
1651 |
-
|
1652 |
-
|
1653 |
-
|
1654 |
-
|
1655 |
-
|
1656 |
-
|
1657 |
-
|
1658 |
-
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
-
|
1682 |
-
|
1683 |
-
|
1684 |
-
|
1685 |
-
|
1686 |
-
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
|
1704 |
-
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
-
|
1711 |
-
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
|
1732 |
-
|
1733 |
-
|
1734 |
-
|
1735 |
-
|
1736 |
-
|
1737 |
-
|
1738 |
-
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
-
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
$attr =
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
|
1768 |
-
|
1769 |
-
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
1774 |
-
|
1775 |
-
|
1776 |
-
|
1777 |
-
|
1778 |
-
|
1779 |
-
|
1780 |
-
|
1781 |
-
|
1782 |
-
|
1783 |
-
|
1784 |
-
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
-
|
1793 |
-
|
1794 |
-
|
1795 |
-
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
1799 |
-
|
1800 |
-
|
1801 |
-
|
1802 |
-
|
1803 |
-
|
1804 |
-
|
1805 |
-
|
1806 |
-
|
1807 |
-
|
1808 |
-
|
1809 |
-
|
1810 |
-
|
1811 |
-
|
1812 |
-
|
1813 |
-
|
1814 |
-
|
1815 |
-
|
1816 |
-
|
1817 |
-
|
1818 |
-
|
1819 |
-
|
1820 |
-
|
1821 |
-
|
1822 |
-
|
1823 |
-
|
1824 |
-
|
1825 |
-
|
1826 |
-
|
1827 |
-
|
1828 |
-
|
1829 |
-
|
1830 |
-
|
1831 |
-
|
1832 |
-
|
1833 |
-
|
1834 |
-
|
1835 |
-
" .
|
1836 |
-
|
1837 |
-
|
1838 |
-
|
1839 |
-
|
1840 |
-
|
1841 |
-
|
1842 |
-
|
1843 |
-
|
1844 |
-
|
1845 |
-
|
1846 |
-
|
1847 |
-
|
1848 |
-
|
1849 |
-
|
1850 |
-
|
1851 |
-
|
1852 |
-
|
1853 |
-
|
1854 |
-
|
1855 |
-
|
1856 |
-
|
1857 |
-
|
1858 |
-
|
1859 |
-
|
1860 |
-
|
1861 |
-
|
1862 |
-
|
1863 |
-
|
1864 |
-
|
1865 |
-
|
1866 |
-
|
1867 |
-
|
1868 |
-
|
1869 |
-
|
1870 |
-
|
1871 |
-
|
1872 |
-
|
1873 |
-
|
1874 |
-
|
1875 |
-
|
1876 |
-
|
1877 |
-
|
1878 |
-
|
1879 |
-
|
1880 |
-
|
1881 |
-
|
1882 |
-
|
1883 |
-
|
1884 |
-
|
1885 |
-
|
1886 |
-
$
|
1887 |
-
|
1888 |
-
|
1889 |
-
|
1890 |
-
$
|
1891 |
-
|
1892 |
-
|
1893 |
-
|
1894 |
-
|
1895 |
-
|
1896 |
-
|
1897 |
-
|
1898 |
-
|
1899 |
-
|
1900 |
-
|
1901 |
-
|
1902 |
-
|
1903 |
-
|
1904 |
-
|
1905 |
-
|
1906 |
-
|
1907 |
-
|
1908 |
-
|
1909 |
-
|
1910 |
-
|
1911 |
-
|
1912 |
-
|
1913 |
-
],
|
1914 |
-
[
|
1915 |
-
|
1916 |
-
|
1917 |
-
|
1918 |
-
|
1919 |
-
|
1920 |
-
]
|
1921 |
-
|
1922 |
-
|
1923 |
-
|
1924 |
-
|
1925 |
-
|
1926 |
-
|
1927 |
-
|
1928 |
-
|
1929 |
-
|
1930 |
-
|
1931 |
-
|
1932 |
-
|
1933 |
-
|
1934 |
-
|
1935 |
-
|
1936 |
-
|
1937 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* UAGB Block Helper.
|
4 |
+
*
|
5 |
+
* @package UAGB
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! class_exists( 'UAGB_Block_Helper' ) ) {
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Class UAGB_Block_Helper.
|
12 |
+
*/
|
13 |
+
class UAGB_Block_Helper {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Get Section Block CSS
|
17 |
+
*
|
18 |
+
* @since 0.0.1
|
19 |
+
* @param array $attr The block attributes.
|
20 |
+
* @param string $id The selector ID.
|
21 |
+
* @return array The Widget List.
|
22 |
+
*/
|
23 |
+
public static function get_section_css( $attr, $id ) {
|
24 |
+
|
25 |
+
// @codingStandardsIgnoreStart
|
26 |
+
|
27 |
+
global $content_width;
|
28 |
+
|
29 |
+
$defaults = UAGB_Helper::$block_list['uagb/section']['attributes'];
|
30 |
+
|
31 |
+
$attr = array_merge( $defaults, $attr );
|
32 |
+
|
33 |
+
$bg_type = ( isset( $attr['backgroundType'] ) ) ? $attr['backgroundType'] : 'none';
|
34 |
+
|
35 |
+
$style = array(
|
36 |
+
'padding-top' => $attr['topPadding'] . 'px',
|
37 |
+
'padding-bottom' => $attr['bottomPadding'] . 'px',
|
38 |
+
'padding-left' => $attr['leftPadding'] . 'px',
|
39 |
+
'padding-right' => $attr['rightPadding'] . 'px',
|
40 |
+
'border-radius' => $attr['borderRadius'] . "px"
|
41 |
+
);
|
42 |
+
|
43 |
+
if ( 'right' == $attr['align'] ) {
|
44 |
+
$style['margin-right'] = $attr['rightMargin'] . 'px';
|
45 |
+
$style['margin-left'] = 'auto';
|
46 |
+
$style['margin-top'] = $attr['topMargin'] . 'px';
|
47 |
+
$style['margin-bottom'] = $attr['bottomMargin'] . 'px';
|
48 |
+
} elseif ( 'left' == $attr['align'] ) {
|
49 |
+
$style['margin-right'] = 'auto';
|
50 |
+
$style['margin-left'] = $attr['leftMargin'] . 'px';
|
51 |
+
$style['margin-top'] = $attr['topMargin'] . 'px';
|
52 |
+
$style['margin-bottom'] = $attr['bottomMargin'] . 'px';
|
53 |
+
} elseif ( 'center' == $attr['align'] ) {
|
54 |
+
$style['margin-right'] = 'auto';
|
55 |
+
$style['margin-left'] = 'auto';
|
56 |
+
$style['margin-top'] = $attr['topMargin'] . 'px';
|
57 |
+
$style['margin-bottom'] = $attr['bottomMargin'] . 'px';
|
58 |
+
} else {
|
59 |
+
$style['margin-top'] = $attr['topMargin'] . 'px';
|
60 |
+
$style['margin-bottom'] = $attr['bottomMargin'] . 'px';
|
61 |
+
}
|
62 |
+
|
63 |
+
if ( "none" != $attr['borderStyle'] ) {
|
64 |
+
$style["border-style"] = $attr['borderStyle'];
|
65 |
+
$style["border-width"] = $attr['borderWidth'] . "px";
|
66 |
+
$style["border-color"] = $attr['borderColor'];
|
67 |
+
}
|
68 |
+
|
69 |
+
$position = str_replace( '-', ' ', $attr['backgroundPosition'] );
|
70 |
+
|
71 |
+
$section_width = '100%';
|
72 |
+
|
73 |
+
if ( isset( $attr['contentWidth'] ) ) {
|
74 |
+
|
75 |
+
if ( 'boxed' == $attr['contentWidth'] ) {
|
76 |
+
if ( isset( $attr['width'] ) ) {
|
77 |
+
$section_width = $attr['width'] . 'px';
|
78 |
+
}
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
82 |
+
if ( 'wide' != $attr['align'] && 'full' != $attr['align'] ) {
|
83 |
+
$style['max-width'] = $section_width;
|
84 |
+
}
|
85 |
+
|
86 |
+
|
87 |
+
if ( 'image' === $bg_type ) {
|
88 |
+
|
89 |
+
$style['background-image'] = ( isset( $attr['backgroundImage'] ) ) ? "url('" . $attr['backgroundImage']['url'] . "' )" : null;
|
90 |
+
$style['background-position'] = $position;
|
91 |
+
$style['background-attachment'] = $attr['backgroundAttachment'];
|
92 |
+
$style['background-repeat'] = $attr['backgroundRepeat'];
|
93 |
+
$style['background-size'] = $attr['backgroundSize'];
|
94 |
+
|
95 |
+
} elseif ( 'gradient' === $bg_type ) {
|
96 |
+
$style['background-color'] = 'transparent';
|
97 |
+
$style['opacity'] = ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "";
|
98 |
+
|
99 |
+
if ( 'linear' === $attr['gradientType'] ) {
|
100 |
+
|
101 |
+
$style['background-image'] = 'linear-gradient(' . $attr['gradientAngle'] . 'deg, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
|
102 |
+
} else {
|
103 |
+
|
104 |
+
$style['background-image'] = 'radial-gradient( at center center, ' . $attr['gradientColor1'] . ' ' . $attr['gradientLocation1'] . '%, ' . $attr['gradientColor2'] . ' ' . $attr['gradientLocation2'] . '%)';
|
105 |
+
}
|
106 |
+
}
|
107 |
+
|
108 |
+
$inner_width = '100%';
|
109 |
+
|
110 |
+
if ( isset( $attr['contentWidth'] ) ) {
|
111 |
+
if ( 'boxed' != $attr['contentWidth'] ) {
|
112 |
+
if ( isset( $attr['themeWidth'] ) && $attr['themeWidth'] == true ) {
|
113 |
+
$inner_width = $content_width . 'px';
|
114 |
+
} else {
|
115 |
+
if ( isset( $attr['innerWidth'] ) ) {
|
116 |
+
$inner_width = $attr['innerWidth'] . 'px';
|
117 |
+
}
|
118 |
+
}
|
119 |
+
}
|
120 |
+
}
|
121 |
+
|
122 |
+
$selectors = array(
|
123 |
+
'.uagb-section__wrap' => $style,
|
124 |
+
' > .uagb-section__video-wrap' => array(
|
125 |
+
'opacity' => ( isset( $attr['backgroundVideoOpacity'] ) && '' != $attr['backgroundVideoOpacity'] ) ? ( ( 100 - $attr['backgroundVideoOpacity'] ) / 100 ) : 0.5,
|
126 |
+
),
|
127 |
+
' > .uagb-section__inner-wrap' => array(
|
128 |
+
'max-width' => $inner_width,
|
129 |
+
),
|
130 |
+
);
|
131 |
+
|
132 |
+
if ( 'video' == $bg_type ) {
|
133 |
+
$selectors[' > .uagb-section__overlay'] = array(
|
134 |
+
'opacity' => 1,
|
135 |
+
'background-color' => $attr['backgroundVideoColor'],
|
136 |
+
);
|
137 |
+
} else if ( 'image' == $bg_type ) {
|
138 |
+
$selectors[' > .uagb-section__overlay'] = array(
|
139 |
+
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : 0,
|
140 |
+
'background-color' => $attr['backgroundImageColor'],
|
141 |
+
);
|
142 |
+
} else if ( 'color' == $bg_type ) {
|
143 |
+
$selectors[' > .uagb-section__overlay'] = array(
|
144 |
+
'opacity' => ( isset( $attr['backgroundOpacity'] ) && '' != $attr['backgroundOpacity'] ) ? $attr['backgroundOpacity'] / 100 : "",
|
145 |
+
'background-color' => $attr['backgroundColor'],
|
146 |
+
);
|
147 |
+
}
|
148 |
+
|
149 |
+
$selectors[' > .uagb-section__overlay']["border-radius"] = $attr['borderRadius'] . "px";
|
150 |
+
|
151 |
+
// @codingStandardsIgnoreEnd
|
152 |
+
|
153 |
+
return UAGB_Helper::generate_css( $selectors, '#uagb-section-' . $id );
|
154 |
+
}
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Get Advanced Heading Block CSS
|
158 |
+
*
|
159 |
+
* @since 0.0.1
|
160 |
+
* @param array $attr The block attributes.
|
161 |
+
* @param string $id The selector ID.
|
162 |
+
* @return array The Widget List.
|
163 |
+
*/
|
164 |
+
public static function get_adv_heading_css( $attr, $id ) {
|
165 |
+
|
166 |
+
// @codingStandardsIgnoreStart
|
167 |
+
|
168 |
+
$defaults = UAGB_Helper::$block_list['uagb/advanced-heading']['attributes'];
|
169 |
+
|
170 |
+
$attr = array_merge( $defaults, (array) $attr );
|
171 |
+
|
172 |
+
$selectors = array(
|
173 |
+
' .uagb-heading-text' => array(
|
174 |
+
'text-align' => $attr['headingAlign'],
|
175 |
+
'font-size' => $attr['headFontSize'] . "px",
|
176 |
+
'color' => $attr['headingColor'],
|
177 |
+
'margin-bottom' => $attr['headSpace'] . "px",
|
178 |
+
),
|
179 |
+
' .uagb-separator-wrap' => array(
|
180 |
+
'text-align' => $attr['headingAlign'],
|
181 |
+
),
|
182 |
+
' .uagb-desc-text' => array(
|
183 |
+
'text-align' => $attr['headingAlign'],
|
184 |
+
'font-size' => $attr['subHeadFontSize'] . "px",
|
185 |
+
'color' => $attr['subHeadingColor'],
|
186 |
+
'margin-bottom' => $attr['subHeadSpace'] . "px",
|
187 |
+
)
|
188 |
+
|
189 |
+
);
|
190 |
+
|
191 |
+
$seperatorStyle = isset( $attr['seperatorStyle'] ) ? $attr['seperatorStyle'] : '';
|
192 |
+
if( 'none' !== $seperatorStyle ){
|
193 |
+
$selectors[' .uagb-separator'] = array (
|
194 |
+
'border-top-style' => $attr['seperatorStyle'] ,
|
195 |
+
'border-top-width' => $attr['separatorHeight'] . "px",
|
196 |
+
'width' => $attr['separatorWidth'] . "%",
|
197 |
+
'border-color' => $attr['separatorColor'],
|
198 |
+
'margin-bottom' => $attr['separatorSpace'] . "px",
|
199 |
+
);
|
200 |
+
|
201 |
+
}
|
202 |
+
// @codingStandardsIgnoreEnd
|
203 |
+
|
204 |
+
return UAGB_Helper::generate_css( $selectors, '#uagb-adv-heading-' . $id );
|
205 |
+
}
|
206 |
+
|
207 |
+
/**
|
208 |
+
* Get Multi Buttons Block CSS
|
209 |
+
*
|
210 |
+
* @since 0.0.1
|
211 |
+
* @param array $attr The block attributes.
|
212 |
+
* @param string $id The selector ID.
|
213 |
+
* @return array The Widget List.
|
214 |
+
*/
|
215 |
+
public static function get_buttons_css( $attr, $id ) {
|
216 |
+
|
217 |
+
// @codingStandardsIgnoreStart
|
218 |
+
|
219 |
+
$defaults = UAGB_Helper::$block_list['uagb/buttons']['attributes'];
|
220 |
+
|
221 |
+
$attr = array_merge( $defaults, (array) $attr );
|
222 |
+
|
223 |
+
$alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
|
224 |
+
|
225 |
+
$m_selectors = array();
|
226 |
+
$t_selectors = array();
|
227 |
+
|
228 |
+
$selectors = array(
|
229 |
+
' .uagb-button__wrapper' => array(
|
230 |
+
'margin-left' => ( $attr['gap']/2 ) . 'px',
|
231 |
+
'margin-right' => ( $attr['gap']/2 ) . 'px'
|
232 |
+
),
|
233 |
+
' .uagb-button__wrapper:first-child' => array (
|
234 |
+
'margin-left' => 0
|
235 |
+
),
|
236 |
+
' .uagb-button__wrapper:last-child' => array (
|
237 |
+
'margin-right' => 0
|
238 |
+
),
|
239 |
+
' .uagb-buttons__wrap' => array (
|
240 |
+
'justify-content' => $alignment,
|
241 |
+
'-webkit-box-pack'=> $alignment,
|
242 |
+
'-ms-flex-pack' => $alignment,
|
243 |
+
'justify-content' => $alignment,
|
244 |
+
'-webkit-box-align' => $alignment,
|
245 |
+
'-ms-flex-align' => $alignment,
|
246 |
+
'align-items' => $alignment,
|
247 |
+
)
|
248 |
+
);
|
249 |
+
|
250 |
+
foreach ( $attr['buttons'] as $key => $button ) {
|
251 |
+
|
252 |
+
$button['size'] = ( isset( $button['size'] ) ) ? $button['size'] : '';
|
253 |
+
$button['borderWidth'] = ( isset( $button['borderWidth'] ) ) ? $button['borderWidth'] : '';
|
254 |
+
$button['borderStyle'] = ( isset( $button['borderStyle'] ) ) ? $button['borderStyle'] : '';
|
255 |
+
$button['borderColor'] = ( isset( $button['borderColor'] ) ) ? $button['borderColor'] : '';
|
256 |
+
$button['borderRadius'] = ( isset( $button['borderRadius'] ) ) ? $button['borderRadius'] : '';
|
257 |
+
$button['background'] = ( isset( $button['background'] ) ) ? $button['background'] : '';
|
258 |
+
$button['hBackground'] = ( isset( $button['hBackground'] ) ) ? $button['hBackground'] : '';
|
259 |
+
$button['borderHColor'] = ( isset( $button['borderHColor'] ) ) ? $button['borderHColor'] : '';
|
260 |
+
$button['vPadding'] = ( isset( $button['vPadding'] ) ) ? $button['vPadding'] : '';
|
261 |
+
$button['hPadding'] = ( isset( $button['hPadding'] ) ) ? $button['hPadding'] : '';
|
262 |
+
$button['color'] = ( isset( $button['color'] ) ) ? $button['color'] : '';
|
263 |
+
$button['hColor'] = ( isset( $button['hColor'] ) ) ? $button['hColor'] : '';
|
264 |
+
|
265 |
+
if ( $attr['btn_count'] <= $key ) {
|
266 |
+
break;
|
267 |
+
}
|
268 |
+
|
269 |
+
$selectors[' .uagb-buttons-repeater-' . $key] = array (
|
270 |
+
'font-size' => $button['size'] . 'px',
|
271 |
+
'border-width' => $button['borderWidth'] . 'px',
|
272 |
+
'border-color' => $button['borderColor'],
|
273 |
+
'border-style' => $button['borderStyle'],
|
274 |
+
'border-radius' => $button['borderRadius'] . 'px',
|
275 |
+
'background' => $button['background']
|
276 |
+
);
|
277 |
+
|
278 |
+
$selectors[' .uagb-buttons-repeater-' . $key . ':hover'] = array (
|
279 |
+
'background' => $button['hBackground'],
|
280 |
+
'border-width' => $button['borderWidth'] . 'px',
|
281 |
+
'border-color' => $button['borderHColor'],
|
282 |
+
'border-style' => $button['borderStyle'],
|
283 |
+
);
|
284 |
+
|
285 |
+
$selectors[' .uagb-buttons-repeater-' . $key . ' a.uagb-button__link'] = array (
|
286 |
+
'padding' => $button['vPadding'] . 'px ' . $button['hPadding'] . 'px',
|
287 |
+
'color' => $button['color']
|
288 |
+
);
|
289 |
+
|
290 |
+
$selectors[' .uagb-buttons-repeater-' . $key . ':hover a.uagb-button__link'] = array (
|
291 |
+
'color' => $button['hColor']
|
292 |
+
);
|
293 |
+
}
|
294 |
+
|
295 |
+
if ( "desktop" == $attr['stack'] ) {
|
296 |
+
|
297 |
+
$selectors[" .uagb-button__wrapper"] = array (
|
298 |
+
'margin-left' => 0,
|
299 |
+
'margin-right' => 0,
|
300 |
+
"margin-bottom" => $attr['gap'] . "px"
|
301 |
+
);
|
302 |
+
|
303 |
+
$selectors[" .uagb-buttons__wrap"] = array (
|
304 |
+
"flex-direction" => "column"
|
305 |
+
);
|
306 |
+
|
307 |
+
$selectors[" .uagb-button__wrapper:last-child"] = array (
|
308 |
+
"margin-bottom" => 0
|
309 |
+
);
|
310 |
+
|
311 |
+
} else if ( "tablet" == $attr['stack'] ) {
|
312 |
+
|
313 |
+
$t_selectors[" .uagb-button__wrapper"] = array (
|
314 |
+
'margin-left' => 0,
|
315 |
+
'margin-right' => 0,
|
316 |
+
"margin-bottom" => $attr['gap'] . "px"
|
317 |
+
);
|
318 |
+
|
319 |
+
$t_selectors[" .uagb-buttons__wrap"] = array (
|
320 |
+
"flex-direction" => "column"
|
321 |
+
);
|
322 |
+
|
323 |
+
$t_selectors[" .uagb-button__wrapper:last-child"] = array (
|
324 |
+
"margin-bottom" => 0
|
325 |
+
);
|
326 |
+
|
327 |
+
} else if ( "mobile" == $attr['stack'] ) {
|
328 |
+
|
329 |
+
$m_selectors[" .uagb-button__wrapper"] = array (
|
330 |
+
'margin-left' => 0,
|
331 |
+
'margin-right' => 0,
|
332 |
+
"margin-bottom" => $attr['gap'] . "px"
|
333 |
+
);
|
334 |
+
|
335 |
+
$m_selectors[" .uagb-buttons__wrap"] = array (
|
336 |
+
"flex-direction" => "column"
|
337 |
+
);
|
338 |
+
|
339 |
+
$m_selectors[" .uagb-button__wrapper:last-child"] = array (
|
340 |
+
"margin-bottom" => 0
|
341 |
+
);
|
342 |
+
}
|
343 |
+
|
344 |
+
// @codingStandardsIgnoreEnd
|
345 |
+
|
346 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-buttons-' . $id );
|
347 |
+
|
348 |
+
$tablet = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 976px)', $t_selectors, '#uagb-buttons-' . $id );
|
349 |
+
|
350 |
+
$mobile = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 767px)', $m_selectors, '#uagb-buttons-' . $id );
|
351 |
+
|
352 |
+
return $desktop . $tablet . $mobile;
|
353 |
+
}
|
354 |
+
|
355 |
+
|
356 |
+
/**
|
357 |
+
* Get Info Box CSS
|
358 |
+
*
|
359 |
+
* @since 0.0.1
|
360 |
+
* @param array $attr The block attributes.
|
361 |
+
* @param string $id The selector ID.
|
362 |
+
* @return array The Widget List.
|
363 |
+
*/
|
364 |
+
public static function get_info_box_css( $attr, $id ) {
|
365 |
+
|
366 |
+
// @codingStandardsIgnoreStart.
|
367 |
+
$defaults = UAGB_Helper::$block_list['uagb/info-box']['attributes'];
|
368 |
+
|
369 |
+
$attr = (object) array_merge( $defaults, (array) $attr );
|
370 |
+
|
371 |
+
$selectors = array(
|
372 |
+
' .uagb-ifb-icon' => array(
|
373 |
+
'height' => $attr->iconSize. "px",
|
374 |
+
'width' => $attr->iconSize. "px",
|
375 |
+
'line-height' => $attr->iconSize. "px",
|
376 |
+
),
|
377 |
+
' .uagb-ifb-icon > span' => array(
|
378 |
+
'font-size' => $attr->iconSize. "px",
|
379 |
+
'height' => $attr->iconSize. "px",
|
380 |
+
'width' => $attr->iconSize. "px",
|
381 |
+
'line-height' => $attr->iconSize. "px",
|
382 |
+
'color' => $attr->iconColor,
|
383 |
+
),
|
384 |
+
' .uagb-ifb-icon:hover > span' => array(
|
385 |
+
'color' => $attr->iconHover ,
|
386 |
+
),
|
387 |
+
' .uagb-infobox__content-wrap .uagb-ifb-imgicon-wrap' => array(
|
388 |
+
'margin-left' => $attr->iconLeftMargin.'px',
|
389 |
+
'margin-right' => $attr->iconRightMargin.'px',
|
390 |
+
'margin-top' => $attr->iconTopMargin.'px',
|
391 |
+
'margin-bottom' => $attr->iconBottomMargin.'px',
|
392 |
+
),
|
393 |
+
|
394 |
+
// Image.
|
395 |
+
' .uagb-ifb-image-content > img' => array(
|
396 |
+
'width'=> $attr->imageWidth.'px',
|
397 |
+
'max-width'=> $attr->imageWidth.'px',
|
398 |
+
),
|
399 |
+
|
400 |
+
' .uagb-infobox .uagb-ifb-image-content img' => array(
|
401 |
+
'border-radius' => $attr->iconimgBorderRadius.'px',
|
402 |
+
),
|
403 |
+
|
404 |
+
|
405 |
+
// CTA style .
|
406 |
+
' .uagb-infobox-cta-link' => array(
|
407 |
+
'font-size' => $attr->ctaFontSize.'px',
|
408 |
+
'color' => $attr->ctaLinkColor,
|
409 |
+
),
|
410 |
+
' .uagb-infobox-cta-link:hover' => array(
|
411 |
+
'color' => $attr->ctaLinkHoverColor,
|
412 |
+
),
|
413 |
+
' .uagb-ifb-button-wrapper .uagb-infobox-cta-link' => array(
|
414 |
+
'font-size' => $attr->ctaFontSize.'px',
|
415 |
+
'color' => $attr->ctaBtnLinkColor,
|
416 |
+
'background-color' => $attr->ctaBgColor,
|
417 |
+
'border-style' => $attr->ctaBorderStyle,
|
418 |
+
'border-color' => $attr->ctaBorderColor,
|
419 |
+
'border-radius' => $attr->ctaBorderRadius . "px",
|
420 |
+
'border-width' => $attr->ctaBorderWidth . "px",
|
421 |
+
'padding-top' => $attr->ctaBtnVertPadding . "px",
|
422 |
+
'padding-bottom' => $attr->ctaBtnVertPadding . "px",
|
423 |
+
'padding-left' => $attr->ctaBtnHrPadding . "px",
|
424 |
+
'padding-right' => $attr->ctaBtnHrPadding . "px",
|
425 |
+
|
426 |
+
),
|
427 |
+
' .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover' => array(
|
428 |
+
'color' => $attr->ctaLinkHoverColor,
|
429 |
+
'background-color' => $attr->ctaBgHoverColor,
|
430 |
+
'border-color' => $attr->ctaBorderhoverColor,
|
431 |
+
),
|
432 |
+
|
433 |
+
// Prefix Style.
|
434 |
+
' .uagb-ifb-title-prefix' => array(
|
435 |
+
'font-size' => $attr->prefixFontSize.'px',
|
436 |
+
'color' => $attr->prefixColor,
|
437 |
+
'margin-bottom' => $attr->prefixSpace.'px',
|
438 |
+
),
|
439 |
+
|
440 |
+
// Title Style.
|
441 |
+
' .uagb-ifb-title' => array(
|
442 |
+
'font-size' => $attr->headFontSize.'px',
|
443 |
+
'color' => $attr->headingColor,
|
444 |
+
'margin-bottom' => $attr->headSpace.'px',
|
445 |
+
),
|
446 |
+
|
447 |
+
// Description Style.
|
448 |
+
' .uagb-ifb-desc' => array(
|
449 |
+
'font-size' => $attr->subHeadFontSize.'px',
|
450 |
+
'color' => $attr->subHeadingColor,
|
451 |
+
'margin-bottom' => $attr->subHeadSpace.'px',
|
452 |
+
),
|
453 |
+
|
454 |
+
// Seperator.
|
455 |
+
' .uagb-ifb-separator' => array(
|
456 |
+
'width' => $attr->seperatorWidth.'%',
|
457 |
+
'border-top-width' => $attr->seperatorThickness.'px',
|
458 |
+
'border-top-color' => $attr->seperatorColor,
|
459 |
+
'border-top-style' => $attr->seperatorStyle,
|
460 |
+
),
|
461 |
+
' .uagb-ifb-separator-parent' => array(
|
462 |
+
'margin-bottom' => $attr->seperatorSpace.'px',
|
463 |
+
),
|
464 |
+
|
465 |
+
// CTA icon space.
|
466 |
+
' .uagb-ifb-align-icon-after' => array(
|
467 |
+
'margin-left' => $attr->ctaIconSpace.'px',
|
468 |
+
),
|
469 |
+
' .uagb-ifb-align-icon-before' => array(
|
470 |
+
'margin-right' => $attr->ctaIconSpace.'px',
|
471 |
+
),
|
472 |
+
|
473 |
+
);
|
474 |
+
|
475 |
+
if( 'above-title' === $attr->iconimgPosition || 'below-title' === $attr->iconimgPosition ){
|
476 |
+
$selectors[' .uagb-infobox__content-wrap'] = array(
|
477 |
+
'text-align' => $attr->headingAlign,
|
478 |
+
);
|
479 |
+
}
|
480 |
+
|
481 |
+
// @codingStandardsIgnoreEnd.
|
482 |
+
return UAGB_Helper::generate_css( $selectors, '#uagb-infobox-' . $id );
|
483 |
+
}
|
484 |
+
|
485 |
+
|
486 |
+
/**
|
487 |
+
* Get CTA CSS
|
488 |
+
*
|
489 |
+
* @since 1.7.0
|
490 |
+
* @param array $attr The block attributes.
|
491 |
+
* @param string $id The selector ID.
|
492 |
+
* @return array The Widget List.
|
493 |
+
*/
|
494 |
+
public static function get_call_to_action_css( $attr, $id ) {
|
495 |
+
|
496 |
+
// @codingStandardsIgnoreStart.
|
497 |
+
$defaults = UAGB_Helper::$block_list['uagb/call-to-action']['attributes'];
|
498 |
+
|
499 |
+
$attr = (object) array_merge( $defaults, (array) $attr );
|
500 |
+
|
501 |
+
$selectors = array(
|
502 |
+
' .uagb-cta__button-wrapper a.uagb-cta-typeof-text' => array(
|
503 |
+
'font-size' => $attr->ctaFontSize. "px",
|
504 |
+
'color' => $attr->ctaBtnLinkColor,
|
505 |
+
),
|
506 |
+
' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-text ' => array(
|
507 |
+
'color' => $attr->ctaLinkHoverColor,
|
508 |
+
),
|
509 |
+
' .uagb-cta__button-wrapper a.uagb-cta-typeof-button' => array(
|
510 |
+
'font-size' => $attr->ctaFontSize. "px",
|
511 |
+
'color' => $attr->ctaBtnLinkColor,
|
512 |
+
'background-color' => $attr->ctaBgColor,
|
513 |
+
'border-style' => $attr->ctaBorderStyle,
|
514 |
+
'border-color' => $attr->ctaBorderColor,
|
515 |
+
'border-radius' => $attr->ctaBorderRadius. "px",
|
516 |
+
'border-width' => $attr->ctaBorderWidth. "px",
|
517 |
+
'padding-top' => $attr->ctaBtnVertPadding. "px",
|
518 |
+
'padding-bottom' => $attr->ctaBtnVertPadding. "px",
|
519 |
+
'padding-left' => $attr->ctaBtnHrPadding. "px",
|
520 |
+
'padding-right' => $attr->ctaBtnHrPadding. "px",
|
521 |
+
),
|
522 |
+
' .uagb-cta__button-wrapper:hover a.uagb-cta-typeof-button' => array(
|
523 |
+
'color' => $attr->ctaLinkHoverColor,
|
524 |
+
'background-color' => $attr->ctaBgHoverColor,
|
525 |
+
'border-color' => $attr->ctaBorderhoverColor,
|
526 |
+
),
|
527 |
+
' .uagb-cta__title' => array(
|
528 |
+
'font-size' => $attr->titleFontSize. "px",
|
529 |
+
'color' => $attr->titleColor,
|
530 |
+
'margin-bottom' => $attr->titleSpace. "px",
|
531 |
+
),
|
532 |
+
' .uagb-cta__desc' => array(
|
533 |
+
'font-size' => $attr->descFontSize. "px",
|
534 |
+
'color' => $attr->descColor,
|
535 |
+
'margin-bottom' => $attr->descSpace. "px",
|
536 |
+
),
|
537 |
+
' .uagb-cta__align-button-after' => array(
|
538 |
+
'margin-left' => $attr->ctaIconSpace. "px",
|
539 |
+
),
|
540 |
+
' .uagb-cta__align-button-before' => array(
|
541 |
+
'margin-right' => $attr->ctaIconSpace. "px",
|
542 |
+
),
|
543 |
+
);
|
544 |
+
|
545 |
+
$selectors[' .uagb-cta__content-wrap'] = array(
|
546 |
+
'text-align' => $attr->textAlign,
|
547 |
+
);
|
548 |
+
|
549 |
+
if( 'left' === $attr->textAlign && "right" === $attr->ctaPosition ){
|
550 |
+
$selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
|
551 |
+
'margin-left' => $attr->ctaLeftSpace. "px",
|
552 |
+
'margin-right' => '0px',
|
553 |
+
);
|
554 |
+
}
|
555 |
+
|
556 |
+
if( 'right' === $attr->textAlign && 'right' === $attr->ctaPosition ){
|
557 |
+
$selectors[' .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
|
558 |
+
'margin-right' => $attr->ctaRightSpace. "px",
|
559 |
+
'margin-left' => '0px',
|
560 |
+
);
|
561 |
+
}
|
562 |
+
|
563 |
+
if( $attr->ctaPosition === "right" && ( $attr->ctaType === 'text' || $attr->ctaType === 'button' ) ){
|
564 |
+
$selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content"] = array(
|
565 |
+
"width" => $attr->contentWidth."%",
|
566 |
+
);
|
567 |
+
|
568 |
+
$selectors[" .uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper"] = array(
|
569 |
+
"width" => (100 - $attr->contentWidth )."%",
|
570 |
+
);
|
571 |
+
}
|
572 |
+
|
573 |
+
// Tablet.
|
574 |
+
$t_selectors[' .uagb-cta__content-stacked-tablet .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
|
575 |
+
'margin-left' => "0",
|
576 |
+
'margin-right' => "0",
|
577 |
+
);
|
578 |
+
|
579 |
+
if( $attr->ctaPosition === "right" && ( $attr->ctaType === 'text' || $attr->ctaType === 'button' ) ){
|
580 |
+
$t_selectors[" .uagb-cta__content-stacked-tablet.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content"] = array(
|
581 |
+
"width" => "100%",
|
582 |
+
);
|
583 |
+
$t_selectors[" .uagb-cta__content-stacked-tablet.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper"] = array(
|
584 |
+
"width" => "100%",
|
585 |
+
);
|
586 |
+
}
|
587 |
+
|
588 |
+
// mobile.
|
589 |
+
$m_selectors[' .uagb-cta__content-stacked-mobile .uagb-cta__left-right-wrap .uagb-cta__content'] = array(
|
590 |
+
'margin-left' => "0",
|
591 |
+
'margin-right' => "0",
|
592 |
+
);
|
593 |
+
|
594 |
+
if( $attr->ctaPosition === "right" && ( $attr->ctaType === 'text' || $attr->ctaType === 'button' ) ){
|
595 |
+
$m_selectors[" .uagb-cta__content-stacked-mobile.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__content"] = array(
|
596 |
+
"width" => "100%",
|
597 |
+
);
|
598 |
+
$m_selectors[" .uagb-cta__content-stacked-mobile.uagb-cta__content-right .uagb-cta__left-right-wrap .uagb-cta__link-wrapper"] = array(
|
599 |
+
"width" => "100%",
|
600 |
+
);
|
601 |
+
}
|
602 |
+
|
603 |
+
// @codingStandardsIgnoreEnd.
|
604 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-cta-block-' . $id );
|
605 |
+
$tablet = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 976px)', $t_selectors, '#uagb-cta-block-' . $id );
|
606 |
+
$mobile = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 767px)', $m_selectors, '#uagb-cta-block-' . $id );
|
607 |
+
|
608 |
+
return $desktop . $tablet . $mobile;
|
609 |
+
}
|
610 |
+
|
611 |
+
/**
|
612 |
+
* Get Testimonial CSS
|
613 |
+
*
|
614 |
+
* @since 0.0.1
|
615 |
+
* @param array $attr The block attributes.
|
616 |
+
* @param string $id The selector ID.
|
617 |
+
* @return array The Widget List.
|
618 |
+
*/
|
619 |
+
public static function get_testimonial_css( $attr, $id ) {
|
620 |
+
|
621 |
+
// @codingStandardsIgnoreStart.
|
622 |
+
|
623 |
+
$defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
|
624 |
+
|
625 |
+
$attr = (object) array_merge( $defaults, (array) $attr );
|
626 |
+
|
627 |
+
$img_align = 'center';
|
628 |
+
if( 'left' === $attr->headingAlign){
|
629 |
+
$img_align = 'flex-start';
|
630 |
+
}else if( 'right' === $attr->headingAlign){
|
631 |
+
$img_align = 'flex-end';
|
632 |
+
}
|
633 |
+
|
634 |
+
$position = str_replace( '-', ' ', $attr->backgroundPosition );
|
635 |
+
|
636 |
+
$selectors = array(
|
637 |
+
' .uagb-testimonial__wrap' => array(
|
638 |
+
'padding-left' => ( ($attr->columnGap) /2 ) . 'px',
|
639 |
+
'padding-right' => ( ($attr->columnGap) /2 ) . 'px',
|
640 |
+
'margin-bottom' => $attr->rowGap . 'px',
|
641 |
+
),
|
642 |
+
' .uagb-testimonial__wrap .uagb-tm__image-content' => array(
|
643 |
+
'padding-left' => $attr->imgHrPadding . 'px',
|
644 |
+
'padding-right' => $attr->imgHrPadding . 'px',
|
645 |
+
'padding-top' => $attr->imgVrPadding . 'px',
|
646 |
+
'padding-bottom' => $attr->imgVrPadding . 'px',
|
647 |
+
),
|
648 |
+
' .uagb-tm__image img' => array(
|
649 |
+
'width' => $attr->imageWidth . 'px',
|
650 |
+
'max-width' => $attr->imageWidth . 'px',
|
651 |
+
),
|
652 |
+
' .uagb-tm__content' => array(
|
653 |
+
'text-align' => $attr->headingAlign,
|
654 |
+
'padding' => $attr->contentPadding . 'px',
|
655 |
+
),
|
656 |
+
' .uagb-tm__author-name' => array(
|
657 |
+
'color' => $attr->authorColor,
|
658 |
+
'font-size' => $attr->nameFontSize . 'px',
|
659 |
+
'margin-bottom' => $attr->nameSpace . 'px',
|
660 |
+
),
|
661 |
+
' .uagb-tm__company' => array(
|
662 |
+
'color' => $attr->companyColor,
|
663 |
+
'font-size' => $attr->companyFontSize . 'px',
|
664 |
+
),
|
665 |
+
' .uagb-tm__desc' => array(
|
666 |
+
'color' => $attr->descColor,
|
667 |
+
'font-size' => $attr->descFontSize . 'px',
|
668 |
+
'margin-bottom' => $attr->descSpace . 'px',
|
669 |
+
),
|
670 |
+
' .uagb-testimonial__wrap.uagb-tm__bg-type-color .uagb-tm__content' => array(
|
671 |
+
'background-color' => $attr->backgroundColor,
|
672 |
+
),
|
673 |
+
' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__content' => array(
|
674 |
+
'background-image' => ( isset( $attr->backgroundImage['url'] ) ) ? 'url("'.$attr->backgroundImage['url'].'")' : null,
|
675 |
+
'background-position'=> $position,
|
676 |
+
'background-repeat'=> $attr->backgroundRepeat,
|
677 |
+
'background-size'=> $attr->backgroundSize,
|
678 |
+
),
|
679 |
+
' .uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__overlay' => array(
|
680 |
+
'background-color' => $attr->backgroundImageColor,
|
681 |
+
'opacity' => ( isset( $attr->backgroundOpacity ) && '' != $attr->backgroundOpacity ) ? ( ( 100 - $attr->backgroundOpacity ) / 100 ) : '0.5',
|
682 |
+
),
|
683 |
+
' .uagb-testimonial__wrap .uagb-tm__content' => array(
|
684 |
+
'border-color' => $attr->borderColor,
|
685 |
+
'border-style' => $attr->borderStyle,
|
686 |
+
'border-width' => $attr->borderWidth . 'px',
|
687 |
+
'border-radius' => $attr->borderRadius . 'px',
|
688 |
+
),
|
689 |
+
' ul.slick-dots li button:before' => array(
|
690 |
+
'color' => $attr->arrowColor,
|
691 |
+
),
|
692 |
+
' ul.slick-dots li.slick-active button:before' => array(
|
693 |
+
'color' => $attr->arrowColor,
|
694 |
+
),
|
695 |
+
' .uagb-tm__image-position-top .uagb-tm__image-content' => array(
|
696 |
+
'justify-content' => $img_align,
|
697 |
+
),
|
698 |
+
);
|
699 |
+
|
700 |
+
if( '1' === $attr->test_item_count || $attr->test_item_count === $attr->columns || 'dots' === $attr->arrowDots ){
|
701 |
+
$selectors['.uagb-slick-carousel'] = array(
|
702 |
+
'padding' => '0px',
|
703 |
+
);
|
704 |
+
}
|
705 |
+
|
706 |
+
$r_selectors = array(
|
707 |
+
' .uagb-tm__content' => array(
|
708 |
+
'text-align' => 'center',
|
709 |
+
)
|
710 |
+
);
|
711 |
+
|
712 |
+
// @codingStandardsIgnoreEnd.
|
713 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-testimonial-' . $id );
|
714 |
+
|
715 |
+
$mobile = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 767px)', $r_selectors, '#uagb-testimonial-' . $id );
|
716 |
+
|
717 |
+
return $desktop . $mobile;
|
718 |
+
|
719 |
+
}
|
720 |
+
|
721 |
+
/**
|
722 |
+
* Get Team Block CSS
|
723 |
+
*
|
724 |
+
* @since 0.0.1
|
725 |
+
* @param array $attr The block attributes.
|
726 |
+
* @param string $id The selector ID.
|
727 |
+
* @return array The Widget List.
|
728 |
+
*/
|
729 |
+
public static function get_team_css( $attr, $id ) {
|
730 |
+
|
731 |
+
// @codingStandardsIgnoreStart
|
732 |
+
|
733 |
+
$defaults = UAGB_Helper::$block_list['uagb/team']['attributes'];
|
734 |
+
|
735 |
+
$attr = array_merge( $defaults, (array) $attr );
|
736 |
+
|
737 |
+
$selectors = array(
|
738 |
+
" p.uagb-team__desc" => array(
|
739 |
+
"font-size" => $attr['descFontSize'] . "px",
|
740 |
+
"color" => $attr['descColor'],
|
741 |
+
"margin-bottom" => $attr['descSpace'] . "px",
|
742 |
+
),
|
743 |
+
" .uagb-team__prefix" => array(
|
744 |
+
"font-size" => $attr['prefixFontSize'] . "px",
|
745 |
+
"color" => $attr['prefixColor'],
|
746 |
+
),
|
747 |
+
" .uagb-team__desc-wrap" => array(
|
748 |
+
"margin-top" => $attr['prefixSpace'] . "px",
|
749 |
+
),
|
750 |
+
" .uagb-team__social-icon a" => array(
|
751 |
+
"color" => $attr['socialColor'],
|
752 |
+
"font-size" => $attr['socialFontSize'] . "px",
|
753 |
+
"width" => $attr['socialFontSize'] . "px",
|
754 |
+
"height" => $attr['socialFontSize'] . "px",
|
755 |
+
),
|
756 |
+
" .uagb-team__social-icon:hover a" => array(
|
757 |
+
"color" => $attr['socialHoverColor'],
|
758 |
+
),
|
759 |
+
".uagb-team__image-position-left .uagb-team__social-icon" => array(
|
760 |
+
"margin-right" => $attr['socialSpace'] . "px",
|
761 |
+
"margin-left" => "0",
|
762 |
+
),
|
763 |
+
".uagb-team__image-position-right .uagb-team__social-icon" => array(
|
764 |
+
"margin-left" => $attr['socialSpace'] . "px",
|
765 |
+
"margin-right" => "0",
|
766 |
+
),
|
767 |
+
".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon" => array(
|
768 |
+
"margin-right" => ( $attr['socialSpace'] / 2 ) . "px",
|
769 |
+
"margin-left" => ( $attr['socialSpace'] / 2 ) . "px",
|
770 |
+
),
|
771 |
+
".uagb-team__image-position-above.uagb-team__align-left .uagb-team__social-icon" => array(
|
772 |
+
"margin-right" => $attr['socialSpace'] . "px",
|
773 |
+
"margin-left" => "0",
|
774 |
+
),
|
775 |
+
".uagb-team__image-position-above.uagb-team__align-right .uagb-team__social-icon" => array(
|
776 |
+
"margin-left" => $attr['socialSpace'] . "px",
|
777 |
+
"margin-right" => "0",
|
778 |
+
),
|
779 |
+
" .uagb-team__image-wrap" => array(
|
780 |
+
"margin-top" => $attr['imgTopMargin'] . "px",
|
781 |
+
"margin-bottom" => $attr['imgBottomMargin'] . "px",
|
782 |
+
"margin-left" => $attr['imgLeftMargin'] . "px",
|
783 |
+
"margin-right" => $attr['imgRightMargin'] . "px",
|
784 |
+
"width" => $attr['imgWidth'] . "px"
|
785 |
+
),
|
786 |
+
);
|
787 |
+
|
788 |
+
if( 'above' == $attr['imgPosition'] ) {
|
789 |
+
if ( 'center' == $attr['align'] ) {
|
790 |
+
$selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
|
791 |
+
$selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
|
792 |
+
} else if ( 'left' == $attr['align'] ) {
|
793 |
+
$selectors[" .uagb-team__image-wrap"]["margin-right"] = "auto";
|
794 |
+
} else if ( 'right' == $attr['align'] ) {
|
795 |
+
$selectors[" .uagb-team__image-wrap"]["margin-left"] = "auto";
|
796 |
+
}
|
797 |
+
}
|
798 |
+
|
799 |
+
if ( "above" != $attr['imgPosition'] ) {
|
800 |
+
if ( "middle" == $attr['imgAlign'] ) {
|
801 |
+
$selectors[" .uagb-team__image-wrap"]["align-self"] = "center";
|
802 |
+
}
|
803 |
+
}
|
804 |
+
|
805 |
+
$selectors[" " . $attr['tag'] . ".uagb-team__title"] = array(
|
806 |
+
"font-size" => $attr['titleFontSize'] . "px",
|
807 |
+
"color" => $attr['titleColor'],
|
808 |
+
"margin-bottom" => $attr['titleSpace'] . "px",
|
809 |
+
);
|
810 |
+
|
811 |
+
// @codingStandardsIgnoreEnd
|
812 |
+
|
813 |
+
return UAGB_Helper::generate_css( $selectors, '#uagb-team-' . $id );
|
814 |
+
}
|
815 |
+
|
816 |
+
/**
|
817 |
+
* Get Social Share Block CSS
|
818 |
+
*
|
819 |
+
* @since 0.0.1
|
820 |
+
* @param array $attr The block attributes.
|
821 |
+
* @param string $id The selector ID.
|
822 |
+
* @return array The Widget List.
|
823 |
+
*/
|
824 |
+
public static function get_social_share_css( $attr, $id ) {
|
825 |
+
|
826 |
+
// @codingStandardsIgnoreStart
|
827 |
+
|
828 |
+
$defaults = UAGB_Helper::$block_list['uagb/social-share']['attributes'];
|
829 |
+
|
830 |
+
$attr = array_merge( $defaults, (array) $attr );
|
831 |
+
|
832 |
+
$alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
|
833 |
+
|
834 |
+
$m_selectors = array();
|
835 |
+
$t_selectors = array();
|
836 |
+
|
837 |
+
$selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper"] = array(
|
838 |
+
"margin-left" => 0,
|
839 |
+
"margin-right" => 0,
|
840 |
+
"margin-bottom" => $attr['gap'] . "px"
|
841 |
+
);
|
842 |
+
|
843 |
+
$selectors[".uagb-social-share__layout-vertical .uagb-social-share__wrap"] = array(
|
844 |
+
"flex-direction" => "column"
|
845 |
+
);
|
846 |
+
|
847 |
+
$selectors[".uagb-social-share__layout-vertical .uagb-ss__wrapper:last-child"] = array(
|
848 |
+
"margin-bottom" => 0
|
849 |
+
);
|
850 |
+
|
851 |
+
$selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"] = array(
|
852 |
+
"margin-left" => ( $attr['gap']/2 ) . "px",
|
853 |
+
"margin-right" => ( $attr['gap']/2 ) . "px"
|
854 |
+
);
|
855 |
+
|
856 |
+
$selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:first-child"] = array(
|
857 |
+
"margin-left" => 0
|
858 |
+
);
|
859 |
+
|
860 |
+
$selectors[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:last-child"] = array(
|
861 |
+
"margin-right" => 0
|
862 |
+
);
|
863 |
+
|
864 |
+
$selectors[" .uagb-ss__wrapper"] = array(
|
865 |
+
"border-radius" => $attr['borderRadius'] . "px"
|
866 |
+
);
|
867 |
+
|
868 |
+
$selectors[" .uagb-ss__source-wrap"] = array(
|
869 |
+
"width" => $attr['size'] . "px",
|
870 |
+
"height" => $attr['size'] . "px",
|
871 |
+
"line-height" => $attr['size'] . "px"
|
872 |
+
);
|
873 |
+
|
874 |
+
$selectors[" .uagb-ss__source-image"] = array(
|
875 |
+
"width" => $attr['size'] . "px"
|
876 |
+
);
|
877 |
+
|
878 |
+
$selectors[" .uagb-ss__source-icon"] = array(
|
879 |
+
"width" => $attr['size'] . "px",
|
880 |
+
"height" => $attr['size'] . "px",
|
881 |
+
"font-size" => $attr['size'] . "px",
|
882 |
+
"line-height" => $attr['size'] . "px"
|
883 |
+
);
|
884 |
+
|
885 |
+
foreach ( $attr['socials'] as $key => $social ) {
|
886 |
+
|
887 |
+
$social['icon_color'] = ( isset( $social['icon_color'] ) ) ? $social['icon_color'] : '';
|
888 |
+
$social['icon_hover_color'] = ( isset( $social['icon_hover_color'] ) ) ? $social['icon_hover_color'] : '';
|
889 |
+
|
890 |
+
if ( $attr['social_count'] <= $key ) {
|
891 |
+
break;
|
892 |
+
}
|
893 |
+
|
894 |
+
$selectors[" .uagb-ss-repeater-" . $key . " a.uagb-ss__link"] = array (
|
895 |
+
"color" => $social['icon_color'],
|
896 |
+
"padding" => $attr['bgSize'] . "px"
|
897 |
+
);
|
898 |
+
|
899 |
+
$selectors[" .uagb-ss-repeater-" . $key . ":hover a.uagb-ss__link"] = array (
|
900 |
+
"color" => $social['icon_hover_color']
|
901 |
+
);
|
902 |
+
|
903 |
+
$selectors[" .uagb-ss-repeater-" . $key] = array (
|
904 |
+
"background" => $social['icon_bg_color']
|
905 |
+
);
|
906 |
+
|
907 |
+
$selectors[" .uagb-ss-repeater-" . $key . ":hover"] = array (
|
908 |
+
"background" => $social['icon_bg_hover_color']
|
909 |
+
);
|
910 |
+
}
|
911 |
+
|
912 |
+
$selectors[" .uagb-social-share__wrap"] = array(
|
913 |
+
"justify-content" => $alignment,
|
914 |
+
"-webkit-box-pack" => $alignment,
|
915 |
+
"-ms-flex-pack" => $alignment,
|
916 |
+
"justify-content" => $alignment,
|
917 |
+
"-webkit-box-align" => $alignment,
|
918 |
+
"-ms-flex-align" => $alignment,
|
919 |
+
"align-items" => $alignment,
|
920 |
+
);
|
921 |
+
|
922 |
+
if ( 'horizontal' == $attr['social_layout'] ) {
|
923 |
+
|
924 |
+
if ( "desktop" == $attr['stack'] ) {
|
925 |
+
|
926 |
+
$selectors[" .uagb-ss__wrapper"] = array (
|
927 |
+
"margin-left" => 0,
|
928 |
+
"margin-right" => 0,
|
929 |
+
"margin-bottom" => $attr['gap'] . "px"
|
930 |
+
);
|
931 |
+
|
932 |
+
$selectors[" .uagb-social-share__wrap"] = array (
|
933 |
+
"flex-direction" => "column"
|
934 |
+
);
|
935 |
+
|
936 |
+
$selectors[" .uagb-ss__wrapper:last-child"] = array (
|
937 |
+
"margin-bottom" => 0
|
938 |
+
);
|
939 |
+
|
940 |
+
} else if ( "tablet" == $attr['stack'] ) {
|
941 |
+
|
942 |
+
$t_selectors[" .uagb-ss__wrapper"] = array (
|
943 |
+
"margin-left" => 0,
|
944 |
+
"margin-right" => 0,
|
945 |
+
"margin-bottom" => $attr['gap'] . "px"
|
946 |
+
);
|
947 |
+
|
948 |
+
$t_selectors[" .uagb-social-share__wrap"] = array (
|
949 |
+
"flex-direction" => "column"
|
950 |
+
);
|
951 |
+
|
952 |
+
$t_selectors[" .uagb-ss__wrapper:last-child"] = array (
|
953 |
+
"margin-bottom" => 0
|
954 |
+
);
|
955 |
+
|
956 |
+
} else if ( "mobile" == $attr['stack'] ) {
|
957 |
+
|
958 |
+
$m_selectors[" .uagb-ss__wrapper"] = array (
|
959 |
+
"margin-left" => 0,
|
960 |
+
"margin-right" => 0,
|
961 |
+
"margin-bottom" => $attr['gap'] . "px"
|
962 |
+
);
|
963 |
+
|
964 |
+
$m_selectors[" .uagb-social-share__wrap"] = array (
|
965 |
+
"flex-direction" => "column"
|
966 |
+
);
|
967 |
+
|
968 |
+
$m_selectors[" .uagb-ss__wrapper:last-child"] = array (
|
969 |
+
"margin-bottom" => 0
|
970 |
+
);
|
971 |
+
}
|
972 |
+
}
|
973 |
+
|
974 |
+
// @codingStandardsIgnoreEnd
|
975 |
+
|
976 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-social-share-' . $id );
|
977 |
+
|
978 |
+
$tablet = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 976px)', $t_selectors, '#uagb-social-share-' . $id );
|
979 |
+
|
980 |
+
$mobile = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 767px)', $m_selectors, '#uagb-social-share-' . $id );
|
981 |
+
|
982 |
+
return $desktop . $tablet . $mobile;
|
983 |
+
}
|
984 |
+
|
985 |
+
/**
|
986 |
+
* Get Icon List Block CSS
|
987 |
+
*
|
988 |
+
* @since 0.0.1
|
989 |
+
* @param array $attr The block attributes.
|
990 |
+
* @param string $id The selector ID.
|
991 |
+
* @return array The Widget List.
|
992 |
+
*/
|
993 |
+
public static function get_icon_list_css( $attr, $id ) {
|
994 |
+
|
995 |
+
// @codingStandardsIgnoreStart
|
996 |
+
|
997 |
+
$defaults = UAGB_Helper::$block_list['uagb/icon-list']['attributes'];
|
998 |
+
|
999 |
+
$attr = array_merge( $defaults, (array) $attr );
|
1000 |
+
|
1001 |
+
$alignment = ( $attr['align'] == 'left' ) ? 'flex-start' : ( ( $attr['align'] == 'right' ) ? 'flex-end' : 'center' );
|
1002 |
+
|
1003 |
+
$m_selectors = array();
|
1004 |
+
$t_selectors = array();
|
1005 |
+
|
1006 |
+
$selectors[".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper"] = array(
|
1007 |
+
"margin-left" => 0,
|
1008 |
+
"margin-right" => 0,
|
1009 |
+
"margin-bottom" => $attr['gap'] . "px"
|
1010 |
+
);
|
1011 |
+
|
1012 |
+
$selectors[".uagb-icon-list__layout-vertical .uagb-icon-list__wrap"] = array(
|
1013 |
+
"flex-direction" => "column"
|
1014 |
+
);
|
1015 |
+
|
1016 |
+
$selectors[".uagb-icon-list__layout-vertical .uagb-icon-list__wrapper:last-child"] = array(
|
1017 |
+
"margin-bottom" => 0
|
1018 |
+
);
|
1019 |
+
|
1020 |
+
$selectors[".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper"] = array(
|
1021 |
+
"margin-left" => ( $attr['gap']/2 ) . "px",
|
1022 |
+
"margin-right" => ( $attr['gap']/2 ) . "px"
|
1023 |
+
);
|
1024 |
+
|
1025 |
+
$selectors[".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:first-child"] = array(
|
1026 |
+
"margin-left" => 0
|
1027 |
+
);
|
1028 |
+
|
1029 |
+
$selectors[".uagb-icon-list__layout-horizontal .uagb-icon-list__wrapper:last-child"] = array(
|
1030 |
+
"margin-right" => 0
|
1031 |
+
);
|
1032 |
+
|
1033 |
+
$selectors[" .uagb-icon-list__source-image"] = array(
|
1034 |
+
"width" => $attr['size'] . "px"
|
1035 |
+
);
|
1036 |
+
|
1037 |
+
$selectors[" .uagb-icon-list__source-icon"] = array(
|
1038 |
+
"width" => $attr['size'] . "px",
|
1039 |
+
"height" => $attr['size'] . "px",
|
1040 |
+
"font-size" => $attr['size'] . "px"
|
1041 |
+
);
|
1042 |
+
|
1043 |
+
$selectors[" .uagb-icon-list__source-icon:before"] = array(
|
1044 |
+
"width" => $attr['size'] . "px",
|
1045 |
+
"height" => $attr['size'] . "px",
|
1046 |
+
"font-size" => $attr['size'] . "px"
|
1047 |
+
);
|
1048 |
+
|
1049 |
+
$selectors[" .uagb-icon-list__label-wrap"] = array(
|
1050 |
+
"text-align" => $attr['align']
|
1051 |
+
);
|
1052 |
+
|
1053 |
+
if ( 'right' == $attr['align'] ) {
|
1054 |
+
$selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
|
1055 |
+
"margin-left" => $attr['inner_gap'] . "px"
|
1056 |
+
);
|
1057 |
+
$selectors[" .uagb-icon-list__content-wrap"] = array(
|
1058 |
+
"flex-direction" => "row-reverse"
|
1059 |
+
);
|
1060 |
+
} else {
|
1061 |
+
$selectors[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"] = array(
|
1062 |
+
"margin-right" => $attr['inner_gap'] . "px"
|
1063 |
+
);
|
1064 |
+
}
|
1065 |
+
|
1066 |
+
$selectors[" .uagb-icon-list__source-wrap"] = array(
|
1067 |
+
"padding" => $attr['bgSize'] . "px",
|
1068 |
+
"border-radius" => $attr['borderRadius'] . "px"
|
1069 |
+
);
|
1070 |
+
|
1071 |
+
foreach ( $attr['icons'] as $key => $icon ) {
|
1072 |
+
|
1073 |
+
$icon['icon_color'] = ( isset( $icon['icon_color'] ) ) ? $icon['icon_color'] : '';
|
1074 |
+
$icon['icon_hover_color'] = ( isset( $icon['icon_hover_color'] ) ) ? $icon['icon_hover_color'] : '';
|
1075 |
+
$icon['icon_bg_color'] = ( isset( $icon['icon_bg_color'] ) ) ? $icon['icon_bg_color'] : '';
|
1076 |
+
$icon['icon_bg_hover_color'] = ( isset( $icon['icon_bg_hover_color'] ) ) ? $icon['icon_bg_hover_color'] : '';
|
1077 |
+
$icon['label_color'] = ( isset( $icon['label_color'] ) ) ? $icon['label_color'] : '';
|
1078 |
+
$icon['label_hover_color'] = ( isset( $icon['label_hover_color'] ) ) ? $icon['label_hover_color'] : '';
|
1079 |
+
|
1080 |
+
if ( $attr['icon_count'] <= $key ) {
|
1081 |
+
break;
|
1082 |
+
}
|
1083 |
+
|
1084 |
+
$selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-icon"] = array (
|
1085 |
+
"color" => $icon['icon_color']
|
1086 |
+
);
|
1087 |
+
|
1088 |
+
$selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-icon"] = array (
|
1089 |
+
"color" => $icon['icon_hover_color']
|
1090 |
+
);
|
1091 |
+
|
1092 |
+
$selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__label"] = array (
|
1093 |
+
"color" => $icon['label_color'],
|
1094 |
+
"font-size" => $attr['fontSize'] . 'px'
|
1095 |
+
);
|
1096 |
+
|
1097 |
+
$selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__label"] = array (
|
1098 |
+
"color" => $icon['label_hover_color']
|
1099 |
+
);
|
1100 |
+
|
1101 |
+
$selectors[" .uagb-icon-list-repeater-" . $key . " .uagb-icon-list__source-wrap"] = array(
|
1102 |
+
"background" => $icon['icon_bg_color']
|
1103 |
+
);
|
1104 |
+
|
1105 |
+
$selectors[" .uagb-icon-list-repeater-" . $key . ":hover .uagb-icon-list__source-wrap"] = array(
|
1106 |
+
"background" => $icon['icon_bg_hover_color']
|
1107 |
+
);
|
1108 |
+
}
|
1109 |
+
|
1110 |
+
$selectors[" .uagb-icon-list__wrap"] = array(
|
1111 |
+
"justify-content" => $alignment,
|
1112 |
+
"-webkit-box-pack" => $alignment,
|
1113 |
+
"-ms-flex-pack" => $alignment,
|
1114 |
+
"justify-content" => $alignment,
|
1115 |
+
"-webkit-box-align" => $alignment,
|
1116 |
+
"-ms-flex-align" => $alignment,
|
1117 |
+
"align-items" => $alignment,
|
1118 |
+
);
|
1119 |
+
|
1120 |
+
if ( 'horizontal' == $attr['icon_layout'] ) {
|
1121 |
+
|
1122 |
+
if ( "tablet" == $attr['stack'] ) {
|
1123 |
+
|
1124 |
+
$t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
|
1125 |
+
"margin-left" => 0,
|
1126 |
+
"margin-right" => 0,
|
1127 |
+
"margin-bottom" => $attr['gap'] . "px"
|
1128 |
+
);
|
1129 |
+
|
1130 |
+
$t_selectors[" .uagb-icon-list__wrap"] = array (
|
1131 |
+
"flex-direction" => "column"
|
1132 |
+
);
|
1133 |
+
|
1134 |
+
$t_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
|
1135 |
+
"margin-bottom" => 0
|
1136 |
+
);
|
1137 |
+
|
1138 |
+
} else if ( "mobile" == $attr['stack'] ) {
|
1139 |
+
|
1140 |
+
$m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper"] = array (
|
1141 |
+
"margin-left" => 0,
|
1142 |
+
"margin-right" => 0,
|
1143 |
+
"margin-bottom" => $attr['gap'] . "px"
|
1144 |
+
);
|
1145 |
+
|
1146 |
+
$m_selectors[" .uagb-icon-list__wrap"] = array (
|
1147 |
+
"flex-direction" => "column"
|
1148 |
+
);
|
1149 |
+
|
1150 |
+
$m_selectors[" .uagb-icon-list__wrap .uagb-icon-list__wrapper:last-child"] = array (
|
1151 |
+
"margin-bottom" => 0
|
1152 |
+
);
|
1153 |
+
}
|
1154 |
+
}
|
1155 |
+
|
1156 |
+
// @codingStandardsIgnoreEnd
|
1157 |
+
|
1158 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-icon-list-' . $id );
|
1159 |
+
|
1160 |
+
$tablet = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 976px)', $t_selectors, '#uagb-icon-list-' . $id );
|
1161 |
+
|
1162 |
+
$mobile = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 767px)', $m_selectors, '#uagb-icon-list-' . $id );
|
1163 |
+
|
1164 |
+
return $desktop . $tablet . $mobile;
|
1165 |
+
}
|
1166 |
+
|
1167 |
+
/**
|
1168 |
+
* Get Content Timeline Block CSS
|
1169 |
+
*
|
1170 |
+
* @since 0.0.1
|
1171 |
+
* @param array $attr The block attributes.
|
1172 |
+
* @param string $id The selector ID.
|
1173 |
+
* @return array The Widget List.
|
1174 |
+
*/
|
1175 |
+
public static function get_content_timeline_css( $attr, $id ) {
|
1176 |
+
|
1177 |
+
// @codingStandardsIgnoreStart
|
1178 |
+
|
1179 |
+
$defaults = UAGB_Helper::$block_list['uagb/content-timeline']['attributes'];
|
1180 |
+
|
1181 |
+
$attr = array_merge( $defaults, (array) $attr );
|
1182 |
+
|
1183 |
+
$t_selectors = array();
|
1184 |
+
|
1185 |
+
$selectors[" .uagb-timeline__heading"] = array(
|
1186 |
+
"text-align" => $attr['align'],
|
1187 |
+
"color" => $attr['headingColor'],
|
1188 |
+
"font-size" => $attr['headFontSize'] . "px"
|
1189 |
+
);
|
1190 |
+
|
1191 |
+
$selectors[" .uagb-timeline__heading-text"] = array(
|
1192 |
+
"margin-bottom" => $attr['headSpace'] . "px"
|
1193 |
+
);
|
1194 |
+
|
1195 |
+
$selectors[" .uagb-timeline-desc-content"] = array(
|
1196 |
+
"text-align" => $attr['align'],
|
1197 |
+
"color" => $attr['subHeadingColor'],
|
1198 |
+
"font-size" => $attr['subHeadFontSize'] . "px",
|
1199 |
+
);
|
1200 |
+
$selectors[' .uagb-timeline__events-new'] = array(
|
1201 |
+
'text-align' => $attr['align']
|
1202 |
+
);
|
1203 |
+
$selectors['.uagb-timeline__date-inner'] = array(
|
1204 |
+
'text-align' => $attr['align']
|
1205 |
+
);
|
1206 |
+
|
1207 |
+
$selectors[' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after'] = array(
|
1208 |
+
'border-left-color' => $attr['backgroundColor']
|
1209 |
+
);
|
1210 |
+
|
1211 |
+
$selectors[' .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after'] = array(
|
1212 |
+
'border-left-color' => $attr['backgroundColor']
|
1213 |
+
);
|
1214 |
+
|
1215 |
+
$selectors[' .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after'] = array(
|
1216 |
+
'border-right-color' => $attr['backgroundColor']
|
1217 |
+
);
|
1218 |
+
|
1219 |
+
$selectors[' .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after'] = array(
|
1220 |
+
'border-right-color' => $attr['backgroundColor']
|
1221 |
+
);
|
1222 |
+
|
1223 |
+
$selectors[' .uagb-timeline__line__inner'] = array(
|
1224 |
+
'background-color' => $attr['separatorFillColor']
|
1225 |
+
);
|
1226 |
+
|
1227 |
+
$selectors[' .uagb-timeline__line'] = array(
|
1228 |
+
'background-color' => $attr['separatorColor'],
|
1229 |
+
'width' => $attr['separatorwidth'].'px'
|
1230 |
+
);
|
1231 |
+
|
1232 |
+
$selectors[' .uagb-timeline__right-block .uagb-timeline__line'] = array(
|
1233 |
+
'right' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
|
1234 |
+
);
|
1235 |
+
|
1236 |
+
$selectors[' .uagb-timeline__left-block .uagb-timeline__line'] = array(
|
1237 |
+
'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
|
1238 |
+
);
|
1239 |
+
|
1240 |
+
$selectors[' .uagb-timeline__center-block .uagb-timeline__line'] = array(
|
1241 |
+
'right' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
|
1242 |
+
);
|
1243 |
+
|
1244 |
+
$selectors[' .uagb-timeline__marker'] = array(
|
1245 |
+
'background-color' => $attr['separatorBg'],
|
1246 |
+
'min-height'=> $attr['connectorBgsize'].'px',
|
1247 |
+
'min-width' => $attr['connectorBgsize'].'px',
|
1248 |
+
'line-height' => $attr['connectorBgsize'].'px',
|
1249 |
+
'border'=> $attr['borderwidth'].'px solid'.$attr['separatorBorder'],
|
1250 |
+
);
|
1251 |
+
|
1252 |
+
$selectors[' .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow'] = array(
|
1253 |
+
'height' => $attr['connectorBgsize'].'px',
|
1254 |
+
);
|
1255 |
+
|
1256 |
+
$selectors[' .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow'] = array(
|
1257 |
+
'height' => $attr['connectorBgsize'].'px',
|
1258 |
+
);
|
1259 |
+
|
1260 |
+
$selectors[' .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow'] = array(
|
1261 |
+
'height' => $attr['connectorBgsize'].'px',
|
1262 |
+
);
|
1263 |
+
|
1264 |
+
$selectors[' .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow'] = array(
|
1265 |
+
'height' => $attr['connectorBgsize'].'px',
|
1266 |
+
);
|
1267 |
+
|
1268 |
+
$selectors[' .uagb-timeline__center-block .uagb-timeline__marker'] = array(
|
1269 |
+
'margin-left' => $attr['horizontalSpace'].'px',
|
1270 |
+
'margin-right'=> $attr['horizontalSpace'].'px',
|
1271 |
+
);
|
1272 |
+
|
1273 |
+
$selectors[' .uagb-timeline__field:not(:last-child)'] = array(
|
1274 |
+
'margin-bottom' => $attr['verticalSpace'].'px',
|
1275 |
+
);
|
1276 |
+
|
1277 |
+
$selectors[' .uagb-timeline__date-hide.uagb-timeline__date-inner'] = array(
|
1278 |
+
'margin-bottom' => $attr['dateBottomspace'].'px',
|
1279 |
+
'color'=> $attr['dateColor'],
|
1280 |
+
'font-size' => $attr['dateFontsize'].'px',
|
1281 |
+
'text-align'=> $attr['align'],
|
1282 |
+
);
|
1283 |
+
|
1284 |
+
$selectors[' .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left'] = array(
|
1285 |
+
'margin-left' => $attr['horizontalSpace'].'px',
|
1286 |
+
);
|
1287 |
+
|
1288 |
+
$selectors[' .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right'] = array(
|
1289 |
+
'margin-right' => $attr['horizontalSpace'].'px',
|
1290 |
+
);
|
1291 |
+
|
1292 |
+
$selectors[' .uagb-timeline__date-new'] = array(
|
1293 |
+
'color'=> $attr['dateColor'],
|
1294 |
+
'font-size' => $attr['dateFontsize'].'px',
|
1295 |
+
);
|
1296 |
+
|
1297 |
+
$selectors[' .uagb-timeline__events-inner-new'] = array(
|
1298 |
+
'background-color' => $attr['backgroundColor'],
|
1299 |
+
'border-radius' => $attr['borderRadius'].'px',
|
1300 |
+
'padding'=> $attr['bgPadding'].'px',
|
1301 |
+
);
|
1302 |
+
|
1303 |
+
$selectors[' .uagb-timeline__main .uagb-timeline__icon-new'] = array(
|
1304 |
+
'color'=> $attr['iconColor'],
|
1305 |
+
'font-size' => $attr['iconSize'].'px',
|
1306 |
+
);
|
1307 |
+
|
1308 |
+
$selectors[' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon'] = array(
|
1309 |
+
'background' => $attr['iconBgFocus'],
|
1310 |
+
'border-color'=> $attr['borderFocus'],
|
1311 |
+
);
|
1312 |
+
|
1313 |
+
|
1314 |
+
$selectors[' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new'] = array(
|
1315 |
+
'color'=> $attr['iconFocus'],
|
1316 |
+
);
|
1317 |
+
|
1318 |
+
$t_selectors[' .uagb-timeline__center-block .uagb-timeline__marker'] = array(
|
1319 |
+
'margin-left' => 0,
|
1320 |
+
'margin-right' => 0,
|
1321 |
+
);
|
1322 |
+
|
1323 |
+
$t_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading"] = array(
|
1324 |
+
"text-align" => 'left',
|
1325 |
+
);
|
1326 |
+
$t_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content"] = array(
|
1327 |
+
"text-align" => 'left',
|
1328 |
+
);
|
1329 |
+
|
1330 |
+
$t_selectors[' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new'] = array(
|
1331 |
+
'text-align' => 'left'
|
1332 |
+
);
|
1333 |
+
$t_selectors['.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner'] = array(
|
1334 |
+
'text-align' => 'left'
|
1335 |
+
);
|
1336 |
+
$t_selectors[' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner'] = array(
|
1337 |
+
'text-align'=> 'left',
|
1338 |
+
);
|
1339 |
+
$t_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after"] = array(
|
1340 |
+
"border-right-color" => $attr['backgroundColor'],
|
1341 |
+
);
|
1342 |
+
$t_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line"] = array(
|
1343 |
+
'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
|
1344 |
+
);
|
1345 |
+
|
1346 |
+
$m_selectors[' .uagb-timeline__center-block .uagb-timeline__marker'] = array(
|
1347 |
+
'margin-left' => 0,
|
1348 |
+
'margin-right' => 0,
|
1349 |
+
);
|
1350 |
+
|
1351 |
+
$m_selectors[' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left'] = array(
|
1352 |
+
'margin-left' => $attr['horizontalSpace'].'px',
|
1353 |
+
);
|
1354 |
+
$m_selectors[' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right'] = array(
|
1355 |
+
'margin-left' => $attr['horizontalSpace'].'px',
|
1356 |
+
);
|
1357 |
+
|
1358 |
+
$m_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading"] = array(
|
1359 |
+
"text-align" => 'left',
|
1360 |
+
);
|
1361 |
+
$m_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content"] = array(
|
1362 |
+
"text-align" => 'left',
|
1363 |
+
);
|
1364 |
+
|
1365 |
+
$m_selectors[' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new'] = array(
|
1366 |
+
'text-align' => 'left'
|
1367 |
+
);
|
1368 |
+
$m_selectors['.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner'] = array(
|
1369 |
+
'text-align' => 'left'
|
1370 |
+
);
|
1371 |
+
$m_selectors[' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner'] = array(
|
1372 |
+
'text-align'=> 'left',
|
1373 |
+
);
|
1374 |
+
$m_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after"] = array(
|
1375 |
+
"border-right-color" => $attr['backgroundColor'],
|
1376 |
+
);
|
1377 |
+
$m_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line"] = array(
|
1378 |
+
'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
|
1379 |
+
);
|
1380 |
+
// @codingStandardsIgnoreEnd
|
1381 |
+
|
1382 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
|
1383 |
+
$tablet = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 1024px)', $t_selectors, '#uagb-ctm-' . $id );
|
1384 |
+
$mobile = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 767px)', $m_selectors, '#uagb-ctm-' . $id );
|
1385 |
+
|
1386 |
+
return $desktop . $tablet . $mobile;
|
1387 |
+
}
|
1388 |
+
|
1389 |
+
/**
|
1390 |
+
* Get Content Timeline Block CSS
|
1391 |
+
*
|
1392 |
+
* @since 0.0.1
|
1393 |
+
* @param array $attr The block attributes.
|
1394 |
+
* @param string $id The selector ID.
|
1395 |
+
* @return array The Widget List.
|
1396 |
+
*/
|
1397 |
+
public static function get_post_timeline_css( $attr, $id ) {
|
1398 |
+
|
1399 |
+
// @codingStandardsIgnoreStart
|
1400 |
+
|
1401 |
+
$defaults = UAGB_Helper::$block_list['uagb/post-timeline']['attributes'];
|
1402 |
+
|
1403 |
+
$attr = array_merge( $defaults, (array) $attr );
|
1404 |
+
|
1405 |
+
$t_selectors = array();
|
1406 |
+
|
1407 |
+
$selectors[" .uagb-timeline__heading"] = array(
|
1408 |
+
"text-align" => $attr['align'],
|
1409 |
+
);
|
1410 |
+
$selectors[" .uagb-timeline__author"] = array(
|
1411 |
+
"text-align" => $attr['align'],
|
1412 |
+
"margin-bottom" => $attr['authorSpace'] . "px"
|
1413 |
+
);
|
1414 |
+
$selectors[" .uagb-timeline__link_parent"] = array(
|
1415 |
+
"text-align" => $attr['align'],
|
1416 |
+
);
|
1417 |
+
$selectors[" .uagb-timeline__image a"] = array(
|
1418 |
+
"text-align" => $attr['align'],
|
1419 |
+
);
|
1420 |
+
$selectors[" .uagb-timeline__author-link"] = array(
|
1421 |
+
"color" => $attr['authorColor'],
|
1422 |
+
"font-size" => $attr['authorFontSize'] . "px"
|
1423 |
+
);
|
1424 |
+
|
1425 |
+
$selectors[" .dashicons-admin-users"] = array(
|
1426 |
+
"color" => $attr['authorColor'],
|
1427 |
+
"font-size" => $attr['authorFontSize'] . "px"
|
1428 |
+
);
|
1429 |
+
|
1430 |
+
$selectors[" .uagb-timeline__link"] = array(
|
1431 |
+
"color" => $attr['ctaColor'],
|
1432 |
+
"font-size" => $attr['ctaFontSize'] . "px",
|
1433 |
+
"background-color" => $attr['ctaBackground'],
|
1434 |
+
);
|
1435 |
+
|
1436 |
+
$selectors[" .uagb-timeline__heading a"] = array(
|
1437 |
+
"text-align" => $attr['align'],
|
1438 |
+
"color" => $attr['headingColor'],
|
1439 |
+
"font-size" => $attr['headFontSize'] . "px"
|
1440 |
+
);
|
1441 |
+
|
1442 |
+
$selectors[" .uagb-timeline__heading-text"] = array(
|
1443 |
+
"margin-bottom" => $attr['headSpace'] . "px"
|
1444 |
+
);
|
1445 |
+
|
1446 |
+
$selectors[" .uagb-timeline-desc-content"] = array(
|
1447 |
+
"text-align" => $attr['align'],
|
1448 |
+
"color" => $attr['subHeadingColor'],
|
1449 |
+
"font-size" => $attr['subHeadFontSize'] . "px",
|
1450 |
+
);
|
1451 |
+
$selectors[" .uagb_timeline__cta-enable .uagb-timeline-desc-content"] = array(
|
1452 |
+
"margin-bottom" => $attr['contentSpace'] . "px",
|
1453 |
+
);
|
1454 |
+
|
1455 |
+
$selectors[' .uagb-timeline__events-new'] = array(
|
1456 |
+
'text-align' => $attr['align']
|
1457 |
+
);
|
1458 |
+
$selectors['.uagb-timeline__date-inner'] = array(
|
1459 |
+
'text-align' => $attr['align']
|
1460 |
+
);
|
1461 |
+
|
1462 |
+
$selectors[' .uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after'] = array(
|
1463 |
+
'border-left-color' => $attr['backgroundColor']
|
1464 |
+
);
|
1465 |
+
|
1466 |
+
$selectors[' .uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after'] = array(
|
1467 |
+
'border-left-color' => $attr['backgroundColor']
|
1468 |
+
);
|
1469 |
+
|
1470 |
+
$selectors[' .uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after'] = array(
|
1471 |
+
'border-right-color' => $attr['backgroundColor']
|
1472 |
+
);
|
1473 |
+
|
1474 |
+
$selectors[' .uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after'] = array(
|
1475 |
+
'border-right-color' => $attr['backgroundColor']
|
1476 |
+
);
|
1477 |
+
|
1478 |
+
$selectors[' .uagb-timeline__line__inner'] = array(
|
1479 |
+
'background-color' => $attr['separatorFillColor']
|
1480 |
+
);
|
1481 |
+
|
1482 |
+
$selectors[' .uagb-timeline__line'] = array(
|
1483 |
+
'background-color' => $attr['separatorColor'],
|
1484 |
+
'width' => $attr['separatorwidth'].'px'
|
1485 |
+
);
|
1486 |
+
|
1487 |
+
$selectors[' .uagb-timeline__right-block .uagb-timeline__line'] = array(
|
1488 |
+
'right' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
|
1489 |
+
);
|
1490 |
+
|
1491 |
+
$selectors[' .uagb-timeline__left-block .uagb-timeline__line'] = array(
|
1492 |
+
'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
|
1493 |
+
);
|
1494 |
+
|
1495 |
+
$selectors[' .uagb-timeline__center-block .uagb-timeline__line'] = array(
|
1496 |
+
'right' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
|
1497 |
+
);
|
1498 |
+
|
1499 |
+
$selectors[' .uagb-timeline__marker'] = array(
|
1500 |
+
'background-color' => $attr['separatorBg'],
|
1501 |
+
'min-height'=> $attr['connectorBgsize'].'px',
|
1502 |
+
'min-width' => $attr['connectorBgsize'].'px',
|
1503 |
+
'line-height' => $attr['connectorBgsize'].'px',
|
1504 |
+
'border'=> $attr['borderwidth'].'px solid'.$attr['separatorBorder'],
|
1505 |
+
);
|
1506 |
+
|
1507 |
+
$selectors[' .uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow'] = array(
|
1508 |
+
'height' => $attr['connectorBgsize'].'px',
|
1509 |
+
);
|
1510 |
+
|
1511 |
+
$selectors[' .uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow'] = array(
|
1512 |
+
'height' => $attr['connectorBgsize'].'px',
|
1513 |
+
);
|
1514 |
+
|
1515 |
+
$selectors[' .uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow'] = array(
|
1516 |
+
'height' => $attr['connectorBgsize'].'px',
|
1517 |
+
);
|
1518 |
+
|
1519 |
+
$selectors[' .uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow'] = array(
|
1520 |
+
'height' => $attr['connectorBgsize'].'px',
|
1521 |
+
);
|
1522 |
+
|
1523 |
+
$selectors[' .uagb-timeline__center-block .uagb-timeline__marker'] = array(
|
1524 |
+
'margin-left' => $attr['horizontalSpace'].'px',
|
1525 |
+
'margin-right'=> $attr['horizontalSpace'].'px',
|
1526 |
+
);
|
1527 |
+
|
1528 |
+
$selectors[' .uagb-timeline__field:not(:last-child)'] = array(
|
1529 |
+
'margin-bottom' => $attr['verticalSpace'].'px',
|
1530 |
+
);
|
1531 |
+
|
1532 |
+
$selectors[' .uagb-timeline__date-hide.uagb-timeline__date-inner'] = array(
|
1533 |
+
'margin-bottom' => $attr['dateBottomspace'].'px',
|
1534 |
+
'color'=> $attr['dateColor'],
|
1535 |
+
'font-size' => $attr['dateFontsize'].'px',
|
1536 |
+
'text-align'=> $attr['align'],
|
1537 |
+
);
|
1538 |
+
|
1539 |
+
$selectors[' .uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left'] = array(
|
1540 |
+
'margin-left' => $attr['horizontalSpace'].'px',
|
1541 |
+
);
|
1542 |
+
|
1543 |
+
$selectors[' .uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right'] = array(
|
1544 |
+
'margin-right' => $attr['horizontalSpace'].'px',
|
1545 |
+
);
|
1546 |
+
|
1547 |
+
$selectors[' .uagb-timeline__date-new'] = array(
|
1548 |
+
'color'=> $attr['dateColor'],
|
1549 |
+
'font-size' => $attr['dateFontsize'].'px',
|
1550 |
+
);
|
1551 |
+
|
1552 |
+
$selectors[' .uagb-timeline__events-inner-new'] = array(
|
1553 |
+
'background-color' => $attr['backgroundColor'],
|
1554 |
+
'border-radius' => $attr['borderRadius'].'px',
|
1555 |
+
'padding'=> $attr['bgPadding'].'px',
|
1556 |
+
);
|
1557 |
+
|
1558 |
+
$selectors[' .uagb-content'] = array(
|
1559 |
+
'padding'=> $attr['contentPadding'].'px',
|
1560 |
+
);
|
1561 |
+
|
1562 |
+
$selectors[' .uagb-timeline__main .uagb-timeline__icon-new'] = array(
|
1563 |
+
'color'=> $attr['iconColor'],
|
1564 |
+
'font-size' => $attr['iconSize'].'px',
|
1565 |
+
);
|
1566 |
+
|
1567 |
+
$selectors[' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon'] = array(
|
1568 |
+
'background' => $attr['iconBgFocus'],
|
1569 |
+
'border-color'=> $attr['borderFocus'],
|
1570 |
+
);
|
1571 |
+
|
1572 |
+
$selectors[' .uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new'] = array(
|
1573 |
+
'color'=> $attr['iconFocus'],
|
1574 |
+
);
|
1575 |
+
|
1576 |
+
$t_selectors[' .uagb-timeline__center-block .uagb-timeline__marker'] = array(
|
1577 |
+
'margin-left' => 0,
|
1578 |
+
'margin-right' => 0,
|
1579 |
+
);
|
1580 |
+
|
1581 |
+
$t_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__heading"] = array(
|
1582 |
+
"text-align" => 'left',
|
1583 |
+
);
|
1584 |
+
$t_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline-desc-content"] = array(
|
1585 |
+
"text-align" => 'left',
|
1586 |
+
);
|
1587 |
+
|
1588 |
+
$t_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author"] = array(
|
1589 |
+
"text-align" => 'left',
|
1590 |
+
);
|
1591 |
+
$t_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent"] = array(
|
1592 |
+
"text-align" => 'left',
|
1593 |
+
);
|
1594 |
+
|
1595 |
+
$t_selectors[' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__events-new'] = array(
|
1596 |
+
'text-align' => 'left'
|
1597 |
+
);
|
1598 |
+
$t_selectors['.uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-inner'] = array(
|
1599 |
+
'text-align' => 'left'
|
1600 |
+
);
|
1601 |
+
$t_selectors[' .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__date-hide.uagb-timeline__date-inner'] = array(
|
1602 |
+
'text-align'=> 'left',
|
1603 |
+
);
|
1604 |
+
|
1605 |
+
$t_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__day-right .uagb-timeline__arrow:after"] = array(
|
1606 |
+
"border-right-color" => $attr['backgroundColor'],
|
1607 |
+
);
|
1608 |
+
|
1609 |
+
$t_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__line"] = array(
|
1610 |
+
'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
|
1611 |
+
);
|
1612 |
+
$t_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__image a"] = array(
|
1613 |
+
'text-align' => 'left',
|
1614 |
+
);
|
1615 |
+
|
1616 |
+
// Mobile responsive CSS.
|
1617 |
+
$m_selectors[' .uagb-timeline__center-block .uagb-timeline__marker'] = array(
|
1618 |
+
'margin-left' => 0,
|
1619 |
+
'margin-right' => 0,
|
1620 |
+
);
|
1621 |
+
|
1622 |
+
$m_selectors[' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left'] = array(
|
1623 |
+
'margin-left' => $attr['horizontalSpace'].'px',
|
1624 |
+
);
|
1625 |
+
$m_selectors[' .uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right'] = array(
|
1626 |
+
'margin-left' => $attr['horizontalSpace'].'px',
|
1627 |
+
);
|
1628 |
+
|
1629 |
+
$m_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__heading"] = array(
|
1630 |
+
"text-align" => 'left',
|
1631 |
+
);
|
1632 |
+
$m_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline-desc-content"] = array(
|
1633 |
+
"text-align" => 'left',
|
1634 |
+
);
|
1635 |
+
|
1636 |
+
$m_selectors[' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__events-new'] = array(
|
1637 |
+
'text-align' => 'left'
|
1638 |
+
);
|
1639 |
+
$m_selectors['.uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-inner'] = array(
|
1640 |
+
'text-align' => 'left'
|
1641 |
+
);
|
1642 |
+
$m_selectors[' .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__date-hide.uagb-timeline__date-inner'] = array(
|
1643 |
+
'text-align'=> 'left',
|
1644 |
+
);
|
1645 |
+
$m_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__author"] = array(
|
1646 |
+
"text-align" => 'left',
|
1647 |
+
);
|
1648 |
+
$m_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-tablet .uagb-timeline__link_parent"] = array(
|
1649 |
+
"text-align" => 'left',
|
1650 |
+
);
|
1651 |
+
$m_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__day-right .uagb-timeline__arrow:after"] = array(
|
1652 |
+
"border-right-color" => $attr['backgroundColor'],
|
1653 |
+
);
|
1654 |
+
$m_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__line"] = array(
|
1655 |
+
'left' => 'calc( '.$attr['connectorBgsize'].'px / 2 )',
|
1656 |
+
);
|
1657 |
+
$m_selectors[" .uagb-timeline__center-block.uagb-timeline__responsive-mobile .uagb-timeline__image a"] = array(
|
1658 |
+
'text-align' => 'left',
|
1659 |
+
);
|
1660 |
+
|
1661 |
+
// @codingStandardsIgnoreEnd
|
1662 |
+
|
1663 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-ctm-' . $id );
|
1664 |
+
$tablet = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 1024px)', $t_selectors, '#uagb-ctm-' . $id );
|
1665 |
+
$mobile = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 767px)', $m_selectors, '#uagb-ctm-' . $id );
|
1666 |
+
|
1667 |
+
return $desktop . $tablet . $mobile;
|
1668 |
+
}
|
1669 |
+
|
1670 |
+
|
1671 |
+
/**
|
1672 |
+
* Get Restaurant Menu Block CSS
|
1673 |
+
*
|
1674 |
+
* @since 1.0.2
|
1675 |
+
* @param array $attr The block attributes.
|
1676 |
+
* @param string $id The selector ID.
|
1677 |
+
* @return array The Widget List.
|
1678 |
+
*/
|
1679 |
+
public static function get_restaurant_menu_css( $attr, $id ) {
|
1680 |
+
|
1681 |
+
// @codingStandardsIgnoreStart
|
1682 |
+
|
1683 |
+
$defaults = UAGB_Helper::$block_list['uagb/restaurant-menu']['attributes'];
|
1684 |
+
|
1685 |
+
$attr = array_merge( $defaults, (array) $attr );
|
1686 |
+
|
1687 |
+
$m_selectors = array();
|
1688 |
+
$t_selectors = array();
|
1689 |
+
|
1690 |
+
$selectors[" .uagb-rest_menu__wrap"] = array(
|
1691 |
+
'padding-left' => ($attr['columnGap']/2) . "px",
|
1692 |
+
'padding-right' => ($attr['columnGap']/2). "px",
|
1693 |
+
'margin-bottom' => $attr['rowGap'] . "px"
|
1694 |
+
);
|
1695 |
+
|
1696 |
+
$selectors[' .uagb-rest_menu__wrap .uagb-rm__image-content'] = array(
|
1697 |
+
'padding-left' => $attr['imgHrPadding'] .'px',
|
1698 |
+
'padding-right' => $attr['imgHrPadding'] .'px',
|
1699 |
+
'padding-top' => $attr['imgVrPadding'] .'px',
|
1700 |
+
'padding-bottom' => $attr['imgVrPadding'] .'px',
|
1701 |
+
);
|
1702 |
+
|
1703 |
+
$selectors[' .uagb-rm__image img'] = array(
|
1704 |
+
'width'=> $attr['imageWidth'] .'px',
|
1705 |
+
'max-width'=> $attr['imageWidth'] .'px',
|
1706 |
+
);
|
1707 |
+
|
1708 |
+
$align = $attr['headingAlign'];
|
1709 |
+
if( 'left' === $align ){
|
1710 |
+
$align = 'flex-start';
|
1711 |
+
}else if( 'right' === $align ){
|
1712 |
+
$align = 'flex-end';
|
1713 |
+
}
|
1714 |
+
|
1715 |
+
$selectors[' .uagb-rm__separator-parent'] = array(
|
1716 |
+
'justify-content' => $align,
|
1717 |
+
);
|
1718 |
+
|
1719 |
+
$selectors[' .uagb-rm__content'] = array(
|
1720 |
+
'text-align' => $attr['headingAlign'] ,
|
1721 |
+
'padding-left' => $attr['contentHrPadding'] . 'px',
|
1722 |
+
'padding-right' => $attr['contentHrPadding'] . 'px',
|
1723 |
+
'padding-top' => $attr['contentVrPadding'] . 'px',
|
1724 |
+
'padding-bottom' => $attr['contentVrPadding'] . 'px',
|
1725 |
+
);
|
1726 |
+
|
1727 |
+
$selectors[' .uagb-rm__title'] = array(
|
1728 |
+
'font-size' => $attr['titleFontSize'] .'px',
|
1729 |
+
'color'=> $attr['titleColor'] ,
|
1730 |
+
'margin-bottom'=> $attr['titleSpace'] .'px',
|
1731 |
+
);
|
1732 |
+
|
1733 |
+
$selectors[' .uagb-rm__price'] = array(
|
1734 |
+
'font-size' => $attr['priceFontSize'].'px',
|
1735 |
+
'color'=> $attr['priceColor'],
|
1736 |
+
);
|
1737 |
+
|
1738 |
+
$selectors[' .uagb-rm__desc'] = array(
|
1739 |
+
'font-size' => $attr['descFontSize'].'px',
|
1740 |
+
'color'=> $attr['descColor'],
|
1741 |
+
'margin-bottom'=> $attr['descSpace'].'px',
|
1742 |
+
);
|
1743 |
+
|
1744 |
+
if ( $attr['seperatorStyle'] != "none" ) {
|
1745 |
+
$selectors[' .uagb-rest_menu__wrap .uagb-rm__separator'] = array(
|
1746 |
+
'border-top-color'=> $attr['seperatorColor'],
|
1747 |
+
'border-top-style'=> $attr['seperatorStyle'],
|
1748 |
+
'border-top-width'=> $attr['seperatorThickness'] . "px",
|
1749 |
+
'width'=> $attr['seperatorWidth'] . "%",
|
1750 |
+
);
|
1751 |
+
}
|
1752 |
+
|
1753 |
+
$r_selectors[' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['columns'].'n+1)'] = array(
|
1754 |
+
'margin-left'=> '0%',
|
1755 |
+
'clear'=> 'left',
|
1756 |
+
);
|
1757 |
+
|
1758 |
+
$t_selectors[' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['tcolumns'].'n+1)'] = array(
|
1759 |
+
'margin-left'=> '0%',
|
1760 |
+
'clear'=> 'left',
|
1761 |
+
);
|
1762 |
+
|
1763 |
+
$m_selectors[' .uagb-rest_menu__wrap.uagb-rm__desk-column-'.$attr['columns'].':nth-child('.$attr['mcolumns'].'n+1)'] = array(
|
1764 |
+
'margin-left'=> '0%',
|
1765 |
+
'clear'=> 'left',
|
1766 |
+
);
|
1767 |
+
|
1768 |
+
// @codingStandardsIgnoreEnd
|
1769 |
+
|
1770 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-rm-' . $id );
|
1771 |
+
$r_desktop = UAGB_Helper::generate_responsive_css( '@media only screen and (min-width: 1024px)', $r_selectors, '#uagb-rm-' . $id );
|
1772 |
+
$tablet = UAGB_Helper::generate_responsive_css( '@media only screen and (min-width: 768px) and (max-width: 1023px)', $t_selectors, '#uagb-rm-' . $id );
|
1773 |
+
$mobile = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 767px)', $m_selectors, '#uagb-rm-' . $id );
|
1774 |
+
|
1775 |
+
return $desktop . $r_desktop . $tablet . $mobile;
|
1776 |
+
}
|
1777 |
+
|
1778 |
+
/**
|
1779 |
+
* Get Post Grid Block CSS
|
1780 |
+
*
|
1781 |
+
* @since 1.4.0
|
1782 |
+
* @param array $attr The block attributes.
|
1783 |
+
* @param string $id The selector ID.
|
1784 |
+
* @return array The Widget List.
|
1785 |
+
*/
|
1786 |
+
public static function get_post_grid_css( $attr, $id ) {
|
1787 |
+
|
1788 |
+
// @codingStandardsIgnoreStart
|
1789 |
+
|
1790 |
+
$defaults = UAGB_Helper::$block_list['uagb/post-grid']['attributes'];
|
1791 |
+
|
1792 |
+
$attr = array_merge( $defaults, (array) $attr );
|
1793 |
+
|
1794 |
+
$selectors = self::get_post_selectors( $attr );
|
1795 |
+
|
1796 |
+
$m_selectors = self::get_post_mobile_selectors( $attr );
|
1797 |
+
|
1798 |
+
// @codingStandardsIgnoreEnd
|
1799 |
+
|
1800 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__grid-' . $id );
|
1801 |
+
|
1802 |
+
$mobile = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 767px)', $m_selectors, '#uagb-post__grid-' . $id );
|
1803 |
+
|
1804 |
+
return $desktop . $mobile;
|
1805 |
+
}
|
1806 |
+
|
1807 |
+
/**
|
1808 |
+
* Get Post Carousel Block CSS
|
1809 |
+
*
|
1810 |
+
* @since 1.4.0
|
1811 |
+
* @param array $attr The block attributes.
|
1812 |
+
* @param string $id The selector ID.
|
1813 |
+
* @return array The Widget List.
|
1814 |
+
*/
|
1815 |
+
public static function get_post_carousel_css( $attr, $id ) {
|
1816 |
+
|
1817 |
+
// @codingStandardsIgnoreStart
|
1818 |
+
|
1819 |
+
$defaults = UAGB_Helper::$block_list['uagb/post-carousel']['attributes'];
|
1820 |
+
|
1821 |
+
$attr = array_merge( $defaults, (array) $attr );
|
1822 |
+
|
1823 |
+
$selectors = self::get_post_selectors( $attr );
|
1824 |
+
|
1825 |
+
$m_selectors = self::get_post_mobile_selectors( $attr );
|
1826 |
+
|
1827 |
+
$selectors[" .slick-arrow"] = array(
|
1828 |
+
"border-color" => $attr['arrowColor']
|
1829 |
+
);
|
1830 |
+
|
1831 |
+
$selectors[" .slick-arrow span"] = array(
|
1832 |
+
"color" => $attr['arrowColor'],
|
1833 |
+
"font-size" => $attr['arrowSize'] . "px",
|
1834 |
+
"width" => $attr['arrowSize'] . "px",
|
1835 |
+
"height" => $attr['arrowSize'] . "px"
|
1836 |
+
);
|
1837 |
+
|
1838 |
+
$selectors[" .slick-arrow"] = array(
|
1839 |
+
"border-color" => $attr['arrowColor'],
|
1840 |
+
"border-width" => $attr['arrowBorderSize'] . "px",
|
1841 |
+
"border-radius" => $attr['arrowBorderRadius'] . "px"
|
1842 |
+
);
|
1843 |
+
|
1844 |
+
$selectors[".uagb-post-grid ul.slick-dots li.slick-active button:before"] = array(
|
1845 |
+
"color" => $attr['arrowColor']
|
1846 |
+
);
|
1847 |
+
|
1848 |
+
$selectors[".uagb-slick-carousel ul.slick-dots li button:before"] = array(
|
1849 |
+
"color" => $attr['arrowColor']
|
1850 |
+
);
|
1851 |
+
|
1852 |
+
if ( isset( $attr['arrowDots'] ) && 'dots' == $attr['arrowDots'] ) {
|
1853 |
+
|
1854 |
+
$selectors[".uagb-slick-carousel"] = array(
|
1855 |
+
"padding" => "0"
|
1856 |
+
);
|
1857 |
+
}
|
1858 |
+
|
1859 |
+
// @codingStandardsIgnoreEnd
|
1860 |
+
|
1861 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__carousel-' . $id );
|
1862 |
+
|
1863 |
+
$mobile = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 767px)', $m_selectors, '#uagb-post__carousel-' . $id );
|
1864 |
+
|
1865 |
+
return $desktop . $mobile;
|
1866 |
+
}
|
1867 |
+
|
1868 |
+
/**
|
1869 |
+
* Get Post Masonry Block CSS
|
1870 |
+
*
|
1871 |
+
* @since 1.4.0
|
1872 |
+
* @param array $attr The block attributes.
|
1873 |
+
* @param string $id The selector ID.
|
1874 |
+
* @return array The Widget List.
|
1875 |
+
*/
|
1876 |
+
public static function get_post_masonry_css( $attr, $id ) {
|
1877 |
+
|
1878 |
+
// @codingStandardsIgnoreStart
|
1879 |
+
|
1880 |
+
$defaults = UAGB_Helper::$block_list['uagb/post-masonry']['attributes'];
|
1881 |
+
|
1882 |
+
$attr = array_merge( $defaults, (array) $attr );
|
1883 |
+
|
1884 |
+
$selectors = self::get_post_selectors( $attr );
|
1885 |
+
|
1886 |
+
$m_selectors = self::get_post_mobile_selectors( $attr );
|
1887 |
+
|
1888 |
+
// @codingStandardsIgnoreEnd
|
1889 |
+
|
1890 |
+
$desktop = UAGB_Helper::generate_css( $selectors, '#uagb-post__masonry-' . $id );
|
1891 |
+
|
1892 |
+
$mobile = UAGB_Helper::generate_responsive_css( '@media only screen and (max-width: 767px)', $m_selectors, '#uagb-post__masonry-' . $id );
|
1893 |
+
|
1894 |
+
return $desktop . $mobile;
|
1895 |
+
}
|
1896 |
+
|
1897 |
+
/**
|
1898 |
+
* Get Post Block Selectors CSS
|
1899 |
+
*
|
1900 |
+
* @param array $attr The block attributes.
|
1901 |
+
* @since 1.4.0
|
1902 |
+
*/
|
1903 |
+
public static function get_post_selectors( $attr ) {
|
1904 |
+
|
1905 |
+
// @codingStandardsIgnoreStart
|
1906 |
+
return array(
|
1907 |
+
" .uagb-post__items" => array(
|
1908 |
+
"margin-right" => ( -$attr['rowGap']/2 ) . "px",
|
1909 |
+
"margin-left" => ( -$attr['rowGap']/2 ) . "px",
|
1910 |
+
),
|
1911 |
+
" .uagb-post__items article" => array(
|
1912 |
+
"padding-right" => ( $attr['rowGap']/2 ) . "px",
|
1913 |
+
"padding-left" => ( $attr['rowGap']/2 ) . "px",
|
1914 |
+
"margin-bottom" => ( $attr['columnGap'] ) . "px"
|
1915 |
+
),
|
1916 |
+
" .uagb-post__inner-wrap" => array(
|
1917 |
+
"background" => $attr['bgColor']
|
1918 |
+
),
|
1919 |
+
" .uagb-post__text" => array(
|
1920 |
+
"padding" => ( $attr['contentPadding'] ) . "px",
|
1921 |
+
"text-align" => $attr['align']
|
1922 |
+
),
|
1923 |
+
" .uagb-post__text .uagb-post__title" => array(
|
1924 |
+
"color"=> $attr['titleColor'],
|
1925 |
+
"font-size"=> $attr['titleFontSize'] . "px",
|
1926 |
+
"margin-bottom"=> $attr['titleBottomSpace'] . "px"
|
1927 |
+
),
|
1928 |
+
" .uagb-post__text .uagb-post__title a" => array(
|
1929 |
+
"color"=> $attr['titleColor'],
|
1930 |
+
"font-size"=> $attr['titleFontSize'] . "px"
|
1931 |
+
),
|
1932 |
+
" .uagb-post__text .uagb-post-grid-byline" => array(
|
1933 |
+
"color"=> $attr['metaColor'],
|
1934 |
+
"font-size"=> $attr['metaFontSize'] . "px",
|
1935 |
+
"margin-bottom"=> $attr['metaBottomSpace'] . "px"
|
1936 |
+
),
|
1937 |
+
" .uagb-post__text .uagb-post-grid-byline .uagb-post__author" => array(
|
1938 |
+
"color"=> $attr['metaColor'],
|
1939 |
+
"font-size"=> $attr['metaFontSize'] . "px",
|
1940 |
+
),
|
1941 |
+
" .uagb-post__text .uagb-post-grid-byline .uagb-post__author a" => array(
|
1942 |
+
"color"=> $attr['metaColor'],
|
1943 |
+
"font-size"=> $attr['metaFontSize'] . "px",
|
1944 |
+
),
|
1945 |
+
" .uagb-post__text .uagb-post__excerpt" => array(
|
1946 |
+
"color"=> $attr['excerptColor'],
|
1947 |
+
"font-size"=> $attr['excerptFontSize'] . "px",
|
1948 |
+
"margin-bottom"=> $attr['excerptBottomSpace'] . "px"
|
1949 |
+
),
|
1950 |
+
" .uagb-post__text .uagb-post__cta" => array(
|
1951 |
+
"color"=> $attr['ctaColor'],
|
1952 |
+
"font-size"=> $attr['ctaFontSize'] . "px",
|
1953 |
+
"background"=> $attr['ctaBgColor'],
|
1954 |
+
"border-color"=> $attr['borderColor'],
|
1955 |
+
"border-width"=> $attr['borderWidth'] . "px",
|
1956 |
+
"border-radius"=> $attr['borderRadius'] . "px",
|
1957 |
+
"border-style"=> $attr['borderStyle'],
|
1958 |
+
),
|
1959 |
+
" .uagb-post__text .uagb-post__cta:hover" => array(
|
1960 |
+
"border-color"=> $attr['borderHColor']
|
1961 |
+
),
|
1962 |
+
" .uagb-post__text .uagb-post__cta a" => array(
|
1963 |
+
"color"=> $attr['ctaColor'],
|
1964 |
+
"font-size"=> $attr['ctaFontSize'] . "px",
|
1965 |
+
"padding" => ( $attr['btnVPadding'] ) . "px " . ( $attr['btnHPadding'] ) . "px",
|
1966 |
+
),
|
1967 |
+
" .uagb-post__text .uagb-post__cta:hover" => array(
|
1968 |
+
"color"=> $attr['ctaHColor'],
|
1969 |
+
"background"=> $attr['ctaBgHColor']
|
1970 |
+
),
|
1971 |
+
" .uagb-post__text .uagb-post__cta:hover a" => array(
|
1972 |
+
"color"=> $attr['ctaHColor']
|
1973 |
+
),
|
1974 |
+
" .uagb-post__image:before" => array(
|
1975 |
+
"background-color" => $attr['bgOverlayColor'],
|
1976 |
+
"opacity" => ( $attr['overlayOpacity'] / 100 )
|
1977 |
+
),
|
1978 |
+
);
|
1979 |
+
// @codingStandardsIgnoreEnd
|
1980 |
+
}
|
1981 |
+
|
1982 |
+
/**
|
1983 |
+
* Get Post Block Selectors CSS for Mobile devices
|
1984 |
+
*
|
1985 |
+
* @param array $attr The block attributes.
|
1986 |
+
* @since 1.6.1
|
1987 |
+
*/
|
1988 |
+
public static function get_post_mobile_selectors( $attr ) {
|
1989 |
+
|
1990 |
+
// @codingStandardsIgnoreStart
|
1991 |
+
return array(
|
1992 |
+
" .uagb-post__text" => array(
|
1993 |
+
"padding" => ( $attr['contentPaddingMobile'] ) . "px",
|
1994 |
+
)
|
1995 |
+
);
|
1996 |
+
// @codingStandardsIgnoreEnd
|
1997 |
+
}
|
1998 |
+
|
1999 |
+
/**
|
2000 |
+
* Get Testimonial Js
|
2001 |
+
*
|
2002 |
+
* @since 1.6.0
|
2003 |
+
* @param array $attr The block attributes.
|
2004 |
+
* @param string $id The selector ID.
|
2005 |
+
*/
|
2006 |
+
public static function get_testimonial_js( $attr, $id ) {
|
2007 |
+
|
2008 |
+
// @codingStandardsIgnoreStart.
|
2009 |
+
|
2010 |
+
$defaults = UAGB_Helper::$block_list['uagb/testimonial']['attributes'];
|
2011 |
+
|
2012 |
+
$attr = array_merge( $defaults, (array) $attr );
|
2013 |
+
|
2014 |
+
$dots = ( "dots" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
|
2015 |
+
$arrows = ( "arrows" == $attr['arrowDots'] || "arrowDots" == $attr['arrowDots'] ) ? true : false;
|
2016 |
+
|
2017 |
+
$slick_options = [
|
2018 |
+
'slidesToShow' => $attr['columns'],
|
2019 |
+
'slidesToScroll' => 1,
|
2020 |
+
'autoplaySpeed' => $attr['autoplaySpeed'],
|
2021 |
+
'autoplay' => $attr['autoplay'],
|
2022 |
+
'infinite' => $attr['infiniteLoop'],
|
2023 |
+
'pauseOnHover' => $attr['pauseOnHover'],
|
2024 |
+
'speed' => $attr['transitionSpeed'],
|
2025 |
+
'arrows' => $arrows,
|
2026 |
+
'dots' => $dots,
|
2027 |
+
'rtl' => false,
|
2028 |
+
'prevArrow' => '<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button" style="border-color: '.$attr["arrowColor"].';border-radius:'.$attr["arrowBorderRadius"].'px;border-width:'.$attr["arrowBorderSize"].'px"><span class="fas fa-angle-left" style= "font-size:'.$attr["arrowSize"].'px;color: '.$attr["arrowColor"].';height:'.$attr["arrowSize"].'px;width:'.$attr["arrowSize"].'px"></span></button>',
|
2029 |
+
'nextArrow' => '<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button" style="border-color: '.$attr["arrowColor"].';border-radius:'.$attr["arrowBorderRadius"].'px;border-width:'.$attr["arrowBorderSize"].'px"><span class="fas fa-angle-right" style= "font-size:'.$attr["arrowSize"].'px;color: '.$attr["arrowColor"].';height:'.$attr["arrowSize"].'px;width:'.$attr["arrowSize"].'px"></span></button>',
|
2030 |
+
'responsive' => [
|
2031 |
+
[
|
2032 |
+
'breakpoint' => 1024,
|
2033 |
+
'settings' => [
|
2034 |
+
'slidesToShow' => $attr['tcolumns'],
|
2035 |
+
'slidesToScroll' => 1,
|
2036 |
+
],
|
2037 |
+
],
|
2038 |
+
[
|
2039 |
+
'breakpoint' => 767,
|
2040 |
+
'settings' => [
|
2041 |
+
'slidesToShow' => $attr['mcolumns'],
|
2042 |
+
'slidesToScroll' => 1,
|
2043 |
+
],
|
2044 |
+
]
|
2045 |
+
]
|
2046 |
+
];
|
2047 |
+
|
2048 |
+
$settings = json_encode($slick_options);
|
2049 |
+
$selector = '#uagb-testimonial-'. $id;
|
2050 |
+
?>
|
2051 |
+
if( jQuery( ".wp-block-uagb-testimonial" ).length > 0 ){
|
2052 |
+
return true
|
2053 |
+
} else {
|
2054 |
+
jQuery( "<?php echo $selector ?>" ).find( ".is-carousel" ).slick( <?php echo $settings ?> );
|
2055 |
+
}
|
2056 |
+
<?php
|
2057 |
+
// @codingStandardsIgnoreEnd.
|
2058 |
+
}
|
2059 |
+
|
2060 |
+
}
|
2061 |
+
}
|
classes/class-uagb-config.php
CHANGED
@@ -1,567 +1,608 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* UAGB Config.
|
4 |
-
*
|
5 |
-
* @package UAGB
|
6 |
-
*/
|
7 |
-
|
8 |
-
if ( ! class_exists( 'UAGB_Config' ) ) {
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Class UAGB_Config.
|
12 |
-
*/
|
13 |
-
class UAGB_Config {
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Block Attributes
|
17 |
-
*
|
18 |
-
* @var block_attributes
|
19 |
-
*/
|
20 |
-
public static $block_attributes = null;
|
21 |
-
|
22 |
-
/**
|
23 |
-
* Get Widget List.
|
24 |
-
*
|
25 |
-
* @since 0.0.1
|
26 |
-
*
|
27 |
-
* @return array The Widget List.
|
28 |
-
*/
|
29 |
-
public static function get_block_attributes() {
|
30 |
-
|
31 |
-
if ( null === self::$block_attributes ) {
|
32 |
-
|
33 |
-
self::$block_attributes = array(
|
34 |
-
'uagb/advanced-heading' => array(
|
35 |
-
'slug' => '',
|
36 |
-
'title' => __( 'Advanced Heading', 'ultimate-addons-for-gutenberg' ),
|
37 |
-
'description' => __( 'This block lets you add a combination of a heading and a sub-heading with a separator in between.', 'ultimate-addons-for-gutenberg' ),
|
38 |
-
'default' => true,
|
39 |
-
'attributes' => array(
|
40 |
-
'headingAlign' => 'center',
|
41 |
-
'headingColor' => '',
|
42 |
-
'subHeadingColor' => '',
|
43 |
-
'separatorColor' => '',
|
44 |
-
'seperatorStyle' => 'solid',
|
45 |
-
'separatorHeight' => '',
|
46 |
-
'separatorWidth' => '',
|
47 |
-
'headFontSize' => '',
|
48 |
-
'subHeadFontSize' => '',
|
49 |
-
'headSpace' => 15,
|
50 |
-
'separatorSpace' => 15,
|
51 |
-
'subHeadSpace' => '',
|
52 |
-
),
|
53 |
-
),
|
54 |
-
'uagb/content-timeline' => array(
|
55 |
-
'slug' => '',
|
56 |
-
'title' => __( 'Content Timeline', 'ultimate-addons-for-gutenberg' ),
|
57 |
-
'description' => __( 'The Timeline block lets you create beautiful timelines on your website.', 'ultimate-addons-for-gutenberg' ),
|
58 |
-
'default' => true,
|
59 |
-
'attributes' => array(
|
60 |
-
'align' => 'center',
|
61 |
-
'headingColor' => '',
|
62 |
-
'subHeadingColor' => '',
|
63 |
-
'separatorBg' => '#eee',
|
64 |
-
'backgroundColor' => '#eee',
|
65 |
-
'separatorColor' => '#eee',
|
66 |
-
'separatorFillColor' => '#61ce70',
|
67 |
-
'separatorBorder' => '#eee',
|
68 |
-
'borderFocus' => '#5cb85c',
|
69 |
-
'horizontalSpace' => 10,
|
70 |
-
'verticalSpace' => 15,
|
71 |
-
'headFontSize' => '',
|
72 |
-
'timelinAlignment' => 'center',
|
73 |
-
'arrowlinAlignment' => 'center',
|
74 |
-
'subHeadFontSize' => '',
|
75 |
-
'headSpace' => 5,
|
76 |
-
'separatorwidth' => 3,
|
77 |
-
'borderwidth' => 0,
|
78 |
-
'iconColor' => '#333',
|
79 |
-
'iconFocus' => '#fff',
|
80 |
-
'iconBgFocus' => '#61ce70',
|
81 |
-
'dateColor' => '#333',
|
82 |
-
'dateFontsize' => 12,
|
83 |
-
'connectorBgsize' => 35,
|
84 |
-
'dateBottomspace' => 5,
|
85 |
-
'borderRadius' => 2,
|
86 |
-
'bgPadding' => 20,
|
87 |
-
'iconSize' => 12,
|
88 |
-
'stack' => 'tablet',
|
89 |
-
),
|
90 |
-
),
|
91 |
-
'uagb/google-map' => array(
|
92 |
-
'slug' => '',
|
93 |
-
'title' => __( 'Google Map', 'ultimate-addons-for-gutenberg' ),
|
94 |
-
'description' => __( 'This block allows you to place a Google Map Location.', 'ultimate-addons-for-gutenberg' ),
|
95 |
-
'default' => true,
|
96 |
-
'attributes' => array(
|
97 |
-
'block_id' => '',
|
98 |
-
'height' => '300',
|
99 |
-
),
|
100 |
-
),
|
101 |
-
'uagb/icon-list' => array(
|
102 |
-
'slug' => '',
|
103 |
-
'title' => __( 'Icon List', 'ultimate-addons-for-gutenberg' ),
|
104 |
-
'description' => __( 'This block allows you to place an image or icon in a list format.', 'ultimate-addons-for-gutenberg' ),
|
105 |
-
'default' => true,
|
106 |
-
'attributes' => array(
|
107 |
-
'align' => 'left',
|
108 |
-
'icon_count' => '1',
|
109 |
-
'icons' => array(
|
110 |
-
array(
|
111 |
-
'label' => __( 'Label #1', 'ultimate-addons-for-gutenberg' ),
|
112 |
-
'image_icon' => 'icon',
|
113 |
-
'icon' => 'fab fa-facebook',
|
114 |
-
'image' => '',
|
115 |
-
'icon_color' => '#3a3a3a',
|
116 |
-
'icon_hover_color' => '#3a3a3a',
|
117 |
-
'icon_bg_color' => '',
|
118 |
-
'icon_bg_hover_color' => '',
|
119 |
-
'label_color' => '',
|
120 |
-
'label_hover_color' => '',
|
121 |
-
'link' => '#',
|
122 |
-
'target' => false,
|
123 |
-
),
|
124 |
-
),
|
125 |
-
'gap' => '10',
|
126 |
-
'inner_gap' => '15',
|
127 |
-
'size' => '40',
|
128 |
-
'bgSize' => '0',
|
129 |
-
'borderRadius' => '0',
|
130 |
-
'fontSize' => '',
|
131 |
-
'icon_layout' => 'vertical',
|
132 |
-
'stack' => 'none',
|
133 |
-
),
|
134 |
-
),
|
135 |
-
'uagb/info-box' => array(
|
136 |
-
'slug' => '',
|
137 |
-
'title' => __( 'Info Box', 'ultimate-addons-for-gutenberg' ),
|
138 |
-
'description' => __( 'This block allows you to place an image or icon along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
|
139 |
-
'default' => true,
|
140 |
-
'attributes' => array(
|
141 |
-
'headingAlign' => 'center',
|
142 |
-
'headingColor' => '',
|
143 |
-
'subHeadingColor' => '',
|
144 |
-
'prefixColor' => '',
|
145 |
-
'prefixFontSize' => '',
|
146 |
-
'headFontSize' => '',
|
147 |
-
'subHeadFontSize' => '',
|
148 |
-
'separatorWidth' => '',
|
149 |
-
'separatorHeight' => '',
|
150 |
-
'headSpace' => '10',
|
151 |
-
'separatorSpace' => '10',
|
152 |
-
'subHeadSpace' => '10',
|
153 |
-
'icon' => '',
|
154 |
-
'iconColor' => '#333',
|
155 |
-
'iconSize' => '40',
|
156 |
-
'iconimgPosition' => 'above-title',
|
157 |
-
'block_id' => '',
|
158 |
-
'iconHover' => '',
|
159 |
-
'iconimgBorderRadius' => '0',
|
160 |
-
'seperatorStyle' => 'solid',
|
161 |
-
'seperatorWidth' => '30',
|
162 |
-
'seperatorColor' => '#333',
|
163 |
-
'seperatorThickness' => '2',
|
164 |
-
'ctaLinkColor' => '#333',
|
165 |
-
'ctaFontSize' => '',
|
166 |
-
'ctaBtnLinkColor' => '#333',
|
167 |
-
'ctaBgColor' => 'transparent',
|
168 |
-
'ctaBtnVertPadding' => '10',
|
169 |
-
'ctaBtnHrPadding' => '14',
|
170 |
-
'ctaBorderStyle' => 'solid',
|
171 |
-
'ctaBorderColor' => '#333',
|
172 |
-
'ctaBorderWidth' => '1',
|
173 |
-
'ctaBorderRadius' => '0',
|
174 |
-
'prefixSpace' => '5',
|
175 |
-
'iconLeftMargin' => '5',
|
176 |
-
'iconRightMargin' => '10',
|
177 |
-
'iconTopMargin' => '5',
|
178 |
-
'iconBottomMargin' => '5',
|
179 |
-
'imageSize' => 'thumbnail',
|
180 |
-
'imageWidth' => '120',
|
181 |
-
'seperatorSpace' => '15',
|
182 |
-
'ctaLinkHoverColor' => '',
|
183 |
-
'ctaBgHoverColor' => '',
|
184 |
-
'ctaBorderhoverColor' => '',
|
185 |
-
'ctaIconSpace' => '5',
|
186 |
-
),
|
187 |
-
),
|
188 |
-
'uagb/
|
189 |
-
'slug' => '',
|
190 |
-
'title' => __( '
|
191 |
-
'description' => __( 'This block allows you to
|
192 |
-
'default' => true,
|
193 |
-
'attributes' => array(
|
194 |
-
'
|
195 |
-
'
|
196 |
-
'
|
197 |
-
'
|
198 |
-
'
|
199 |
-
'
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
'
|
209 |
-
'
|
210 |
-
'
|
211 |
-
'
|
212 |
-
'
|
213 |
-
'
|
214 |
-
'
|
215 |
-
'
|
216 |
-
'
|
217 |
-
'
|
218 |
-
'
|
219 |
-
'
|
220 |
-
'
|
221 |
-
'
|
222 |
-
'
|
223 |
-
'
|
224 |
-
'
|
225 |
-
'
|
226 |
-
'
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
'
|
236 |
-
'
|
237 |
-
'
|
238 |
-
'
|
239 |
-
'
|
240 |
-
'
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
'
|
248 |
-
'
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
'
|
253 |
-
'
|
254 |
-
'
|
255 |
-
'
|
256 |
-
'
|
257 |
-
'
|
258 |
-
'
|
259 |
-
'
|
260 |
-
'
|
261 |
-
'
|
262 |
-
'
|
263 |
-
'
|
264 |
-
'
|
265 |
-
'
|
266 |
-
'
|
267 |
-
'
|
268 |
-
'
|
269 |
-
'
|
270 |
-
'
|
271 |
-
'
|
272 |
-
'
|
273 |
-
'
|
274 |
-
'
|
275 |
-
'
|
276 |
-
'
|
277 |
-
'
|
278 |
-
'
|
279 |
-
'
|
280 |
-
'
|
281 |
-
'
|
282 |
-
'
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
'
|
289 |
-
'
|
290 |
-
'
|
291 |
-
|
292 |
-
|
293 |
-
'
|
294 |
-
'
|
295 |
-
'
|
296 |
-
'
|
297 |
-
'
|
298 |
-
'
|
299 |
-
'
|
300 |
-
'
|
301 |
-
'
|
302 |
-
'
|
303 |
-
'
|
304 |
-
'
|
305 |
-
'
|
306 |
-
'
|
307 |
-
'
|
308 |
-
'
|
309 |
-
'
|
310 |
-
'
|
311 |
-
'
|
312 |
-
'
|
313 |
-
'
|
314 |
-
'
|
315 |
-
'
|
316 |
-
'
|
317 |
-
'
|
318 |
-
'
|
319 |
-
'
|
320 |
-
'
|
321 |
-
'
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
'
|
328 |
-
'
|
329 |
-
'
|
330 |
-
|
331 |
-
|
332 |
-
'
|
333 |
-
'
|
334 |
-
'
|
335 |
-
'
|
336 |
-
'
|
337 |
-
'
|
338 |
-
'
|
339 |
-
'
|
340 |
-
'
|
341 |
-
'
|
342 |
-
'
|
343 |
-
'
|
344 |
-
'
|
345 |
-
'
|
346 |
-
'
|
347 |
-
'
|
348 |
-
'
|
349 |
-
'
|
350 |
-
'
|
351 |
-
'
|
352 |
-
'
|
353 |
-
'
|
354 |
-
'
|
355 |
-
'
|
356 |
-
'
|
357 |
-
'
|
358 |
-
'
|
359 |
-
'
|
360 |
-
'
|
361 |
-
'
|
362 |
-
'
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
),
|
368 |
-
|
369 |
-
|
370 |
-
'
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
'
|
376 |
-
'
|
377 |
-
'
|
378 |
-
'
|
379 |
-
'
|
380 |
-
'
|
381 |
-
'
|
382 |
-
'
|
383 |
-
'
|
384 |
-
'
|
385 |
-
'
|
386 |
-
'
|
387 |
-
'
|
388 |
-
'
|
389 |
-
'
|
390 |
-
'
|
391 |
-
'
|
392 |
-
'
|
393 |
-
'
|
394 |
-
'
|
395 |
-
'
|
396 |
-
'
|
397 |
-
'
|
398 |
-
'
|
399 |
-
'
|
400 |
-
'
|
401 |
-
'
|
402 |
-
'
|
403 |
-
'
|
404 |
-
'
|
405 |
-
'
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
'
|
412 |
-
'
|
413 |
-
'
|
414 |
-
|
415 |
-
|
416 |
-
'
|
417 |
-
'
|
418 |
-
'
|
419 |
-
'
|
420 |
-
'
|
421 |
-
'
|
422 |
-
'
|
423 |
-
'
|
424 |
-
'
|
425 |
-
'
|
426 |
-
'
|
427 |
-
'
|
428 |
-
'
|
429 |
-
'
|
430 |
-
'
|
431 |
-
'
|
432 |
-
'
|
433 |
-
'
|
434 |
-
'
|
435 |
-
'
|
436 |
-
'
|
437 |
-
'
|
438 |
-
'
|
439 |
-
'
|
440 |
-
'
|
441 |
-
'
|
442 |
-
'
|
443 |
-
'
|
444 |
-
'
|
445 |
-
'
|
446 |
-
'
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
'
|
452 |
-
'
|
453 |
-
'
|
454 |
-
'
|
455 |
-
|
456 |
-
'
|
457 |
-
'
|
458 |
-
'
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
'
|
471 |
-
'
|
472 |
-
'
|
473 |
-
'
|
474 |
-
'
|
475 |
-
'
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
'
|
485 |
-
'
|
486 |
-
'
|
487 |
-
'
|
488 |
-
'
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
'
|
498 |
-
'
|
499 |
-
'
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
'
|
526 |
-
'
|
527 |
-
'
|
528 |
-
'
|
529 |
-
'
|
530 |
-
'
|
531 |
-
'
|
532 |
-
'
|
533 |
-
'
|
534 |
-
'
|
535 |
-
'
|
536 |
-
'
|
537 |
-
'
|
538 |
-
'
|
539 |
-
'
|
540 |
-
'
|
541 |
-
'
|
542 |
-
'
|
543 |
-
'
|
544 |
-
'
|
545 |
-
'
|
546 |
-
'
|
547 |
-
'
|
548 |
-
'
|
549 |
-
'
|
550 |
-
'
|
551 |
-
'
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* UAGB Config.
|
4 |
+
*
|
5 |
+
* @package UAGB
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! class_exists( 'UAGB_Config' ) ) {
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Class UAGB_Config.
|
12 |
+
*/
|
13 |
+
class UAGB_Config {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Block Attributes
|
17 |
+
*
|
18 |
+
* @var block_attributes
|
19 |
+
*/
|
20 |
+
public static $block_attributes = null;
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Get Widget List.
|
24 |
+
*
|
25 |
+
* @since 0.0.1
|
26 |
+
*
|
27 |
+
* @return array The Widget List.
|
28 |
+
*/
|
29 |
+
public static function get_block_attributes() {
|
30 |
+
|
31 |
+
if ( null === self::$block_attributes ) {
|
32 |
+
|
33 |
+
self::$block_attributes = array(
|
34 |
+
'uagb/advanced-heading' => array(
|
35 |
+
'slug' => '',
|
36 |
+
'title' => __( 'Advanced Heading', 'ultimate-addons-for-gutenberg' ),
|
37 |
+
'description' => __( 'This block lets you add a combination of a heading and a sub-heading with a separator in between.', 'ultimate-addons-for-gutenberg' ),
|
38 |
+
'default' => true,
|
39 |
+
'attributes' => array(
|
40 |
+
'headingAlign' => 'center',
|
41 |
+
'headingColor' => '',
|
42 |
+
'subHeadingColor' => '',
|
43 |
+
'separatorColor' => '',
|
44 |
+
'seperatorStyle' => 'solid',
|
45 |
+
'separatorHeight' => '',
|
46 |
+
'separatorWidth' => '',
|
47 |
+
'headFontSize' => '',
|
48 |
+
'subHeadFontSize' => '',
|
49 |
+
'headSpace' => 15,
|
50 |
+
'separatorSpace' => 15,
|
51 |
+
'subHeadSpace' => '',
|
52 |
+
),
|
53 |
+
),
|
54 |
+
'uagb/content-timeline' => array(
|
55 |
+
'slug' => '',
|
56 |
+
'title' => __( 'Content Timeline', 'ultimate-addons-for-gutenberg' ),
|
57 |
+
'description' => __( 'The Timeline block lets you create beautiful timelines on your website.', 'ultimate-addons-for-gutenberg' ),
|
58 |
+
'default' => true,
|
59 |
+
'attributes' => array(
|
60 |
+
'align' => 'center',
|
61 |
+
'headingColor' => '',
|
62 |
+
'subHeadingColor' => '',
|
63 |
+
'separatorBg' => '#eee',
|
64 |
+
'backgroundColor' => '#eee',
|
65 |
+
'separatorColor' => '#eee',
|
66 |
+
'separatorFillColor' => '#61ce70',
|
67 |
+
'separatorBorder' => '#eee',
|
68 |
+
'borderFocus' => '#5cb85c',
|
69 |
+
'horizontalSpace' => 10,
|
70 |
+
'verticalSpace' => 15,
|
71 |
+
'headFontSize' => '',
|
72 |
+
'timelinAlignment' => 'center',
|
73 |
+
'arrowlinAlignment' => 'center',
|
74 |
+
'subHeadFontSize' => '',
|
75 |
+
'headSpace' => 5,
|
76 |
+
'separatorwidth' => 3,
|
77 |
+
'borderwidth' => 0,
|
78 |
+
'iconColor' => '#333',
|
79 |
+
'iconFocus' => '#fff',
|
80 |
+
'iconBgFocus' => '#61ce70',
|
81 |
+
'dateColor' => '#333',
|
82 |
+
'dateFontsize' => 12,
|
83 |
+
'connectorBgsize' => 35,
|
84 |
+
'dateBottomspace' => 5,
|
85 |
+
'borderRadius' => 2,
|
86 |
+
'bgPadding' => 20,
|
87 |
+
'iconSize' => 12,
|
88 |
+
'stack' => 'tablet',
|
89 |
+
),
|
90 |
+
),
|
91 |
+
'uagb/google-map' => array(
|
92 |
+
'slug' => '',
|
93 |
+
'title' => __( 'Google Map', 'ultimate-addons-for-gutenberg' ),
|
94 |
+
'description' => __( 'This block allows you to place a Google Map Location.', 'ultimate-addons-for-gutenberg' ),
|
95 |
+
'default' => true,
|
96 |
+
'attributes' => array(
|
97 |
+
'block_id' => '',
|
98 |
+
'height' => '300',
|
99 |
+
),
|
100 |
+
),
|
101 |
+
'uagb/icon-list' => array(
|
102 |
+
'slug' => '',
|
103 |
+
'title' => __( 'Icon List', 'ultimate-addons-for-gutenberg' ),
|
104 |
+
'description' => __( 'This block allows you to place an image or icon in a list format.', 'ultimate-addons-for-gutenberg' ),
|
105 |
+
'default' => true,
|
106 |
+
'attributes' => array(
|
107 |
+
'align' => 'left',
|
108 |
+
'icon_count' => '1',
|
109 |
+
'icons' => array(
|
110 |
+
array(
|
111 |
+
'label' => __( 'Label #1', 'ultimate-addons-for-gutenberg' ),
|
112 |
+
'image_icon' => 'icon',
|
113 |
+
'icon' => 'fab fa-facebook',
|
114 |
+
'image' => '',
|
115 |
+
'icon_color' => '#3a3a3a',
|
116 |
+
'icon_hover_color' => '#3a3a3a',
|
117 |
+
'icon_bg_color' => '',
|
118 |
+
'icon_bg_hover_color' => '',
|
119 |
+
'label_color' => '',
|
120 |
+
'label_hover_color' => '',
|
121 |
+
'link' => '#',
|
122 |
+
'target' => false,
|
123 |
+
),
|
124 |
+
),
|
125 |
+
'gap' => '10',
|
126 |
+
'inner_gap' => '15',
|
127 |
+
'size' => '40',
|
128 |
+
'bgSize' => '0',
|
129 |
+
'borderRadius' => '0',
|
130 |
+
'fontSize' => '',
|
131 |
+
'icon_layout' => 'vertical',
|
132 |
+
'stack' => 'none',
|
133 |
+
),
|
134 |
+
),
|
135 |
+
'uagb/info-box' => array(
|
136 |
+
'slug' => '',
|
137 |
+
'title' => __( 'Info Box', 'ultimate-addons-for-gutenberg' ),
|
138 |
+
'description' => __( 'This block allows you to place an image or icon along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
|
139 |
+
'default' => true,
|
140 |
+
'attributes' => array(
|
141 |
+
'headingAlign' => 'center',
|
142 |
+
'headingColor' => '',
|
143 |
+
'subHeadingColor' => '',
|
144 |
+
'prefixColor' => '',
|
145 |
+
'prefixFontSize' => '',
|
146 |
+
'headFontSize' => '',
|
147 |
+
'subHeadFontSize' => '',
|
148 |
+
'separatorWidth' => '',
|
149 |
+
'separatorHeight' => '',
|
150 |
+
'headSpace' => '10',
|
151 |
+
'separatorSpace' => '10',
|
152 |
+
'subHeadSpace' => '10',
|
153 |
+
'icon' => '',
|
154 |
+
'iconColor' => '#333',
|
155 |
+
'iconSize' => '40',
|
156 |
+
'iconimgPosition' => 'above-title',
|
157 |
+
'block_id' => '',
|
158 |
+
'iconHover' => '',
|
159 |
+
'iconimgBorderRadius' => '0',
|
160 |
+
'seperatorStyle' => 'solid',
|
161 |
+
'seperatorWidth' => '30',
|
162 |
+
'seperatorColor' => '#333',
|
163 |
+
'seperatorThickness' => '2',
|
164 |
+
'ctaLinkColor' => '#333',
|
165 |
+
'ctaFontSize' => '',
|
166 |
+
'ctaBtnLinkColor' => '#333',
|
167 |
+
'ctaBgColor' => 'transparent',
|
168 |
+
'ctaBtnVertPadding' => '10',
|
169 |
+
'ctaBtnHrPadding' => '14',
|
170 |
+
'ctaBorderStyle' => 'solid',
|
171 |
+
'ctaBorderColor' => '#333',
|
172 |
+
'ctaBorderWidth' => '1',
|
173 |
+
'ctaBorderRadius' => '0',
|
174 |
+
'prefixSpace' => '5',
|
175 |
+
'iconLeftMargin' => '5',
|
176 |
+
'iconRightMargin' => '10',
|
177 |
+
'iconTopMargin' => '5',
|
178 |
+
'iconBottomMargin' => '5',
|
179 |
+
'imageSize' => 'thumbnail',
|
180 |
+
'imageWidth' => '120',
|
181 |
+
'seperatorSpace' => '15',
|
182 |
+
'ctaLinkHoverColor' => '',
|
183 |
+
'ctaBgHoverColor' => '',
|
184 |
+
'ctaBorderhoverColor' => '',
|
185 |
+
'ctaIconSpace' => '5',
|
186 |
+
),
|
187 |
+
),
|
188 |
+
'uagb/call-to-action' => array(
|
189 |
+
'slug' => '',
|
190 |
+
'title' => __( 'Call To Action', 'ultimate-addons-for-gutenberg' ),
|
191 |
+
'description' => __( 'This block allows you to place an CTA along with a heading and description within a single block.', 'ultimate-addons-for-gutenberg' ),
|
192 |
+
'default' => true,
|
193 |
+
'attributes' => array(
|
194 |
+
'textAlign' => 'left',
|
195 |
+
'titleColor' => '',
|
196 |
+
'descColor' => '',
|
197 |
+
'ctaPosition' => 'right',
|
198 |
+
'titleTag' => '',
|
199 |
+
'titleFontSize' => '',
|
200 |
+
'descFontSize' => '',
|
201 |
+
'titleSpace' => 10,
|
202 |
+
'descSpace' => 10,
|
203 |
+
'buttonAlign' => 'top',
|
204 |
+
'ctaTarget' => false,
|
205 |
+
'ctaIconPosition' => 'after',
|
206 |
+
'ctaIconSpace' => 5,
|
207 |
+
'ctaType' => 'button',
|
208 |
+
'ctaLink' => '#',
|
209 |
+
'ctaFontSize' => '',
|
210 |
+
'ctaBtnLinkColor' => '#333',
|
211 |
+
'ctaBgColor' => 'transparent',
|
212 |
+
'ctaBgHoverColor' => 'transparent',
|
213 |
+
'ctaBorderColor' => '#333',
|
214 |
+
'ctaBorderhoverColor' => '',
|
215 |
+
'ctaBorderStyle' => 'solid',
|
216 |
+
'ctaBtnVertPadding' => 10,
|
217 |
+
'ctaBtnHrPadding' => 14,
|
218 |
+
'ctaBorderWidth' => 1,
|
219 |
+
'ctaBorderRadius' => 0,
|
220 |
+
'stack' => 'tablet',
|
221 |
+
'showTitle' => true,
|
222 |
+
'showDesc' => true,
|
223 |
+
'ctaLeftSpace' => 5,
|
224 |
+
'ctaRightSpace' => 5,
|
225 |
+
'contentWidth' => 70,
|
226 |
+
'ctaLinkHoverColor' => '',
|
227 |
+
),
|
228 |
+
),
|
229 |
+
'uagb/buttons' => array(
|
230 |
+
'slug' => '',
|
231 |
+
'title' => __( 'Multi Buttons', 'ultimate-addons-for-gutenberg' ),
|
232 |
+
'description' => __( 'This block allows you to add multiple buttons with a single block.', 'ultimate-addons-for-gutenberg' ),
|
233 |
+
'default' => true,
|
234 |
+
'attributes' => array(
|
235 |
+
'block_id' => '',
|
236 |
+
'align' => 'center',
|
237 |
+
'btn_count' => '2',
|
238 |
+
'buttons' => UAGB_Helper::get_button_defaults(),
|
239 |
+
'gap' => 10,
|
240 |
+
'stack' => 'none',
|
241 |
+
),
|
242 |
+
),
|
243 |
+
'uagb/post-carousel' => array(
|
244 |
+
'slug' => '',
|
245 |
+
'title' => __( 'Post Carousel', 'ultimate-addons-for-gutenberg' ),
|
246 |
+
'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a carousel layout.', 'ultimate-addons-for-gutenberg' ),
|
247 |
+
'default' => true,
|
248 |
+
'attributes' => array(
|
249 |
+
'align' => 'left',
|
250 |
+
'rowGap' => '20',
|
251 |
+
'columnGap' => '20',
|
252 |
+
'bgColor' => '#e4e4e4',
|
253 |
+
'titleColor' => '#3b3b3b',
|
254 |
+
'titleTag' => 'h3',
|
255 |
+
'titleFontSize' => '',
|
256 |
+
'metaFontSize' => '',
|
257 |
+
'excerptFontSize' => '',
|
258 |
+
'ctaFontSize' => '',
|
259 |
+
'metaColor' => '#777777',
|
260 |
+
'excerptColor' => '',
|
261 |
+
'ctaColor' => '#ffffff',
|
262 |
+
'ctaBgColor' => '#333333',
|
263 |
+
'ctaHColor' => '',
|
264 |
+
'ctaBgHColor' => '',
|
265 |
+
'contentPadding' => '20',
|
266 |
+
'contentPaddingMobile' => '',
|
267 |
+
'btnVPadding' => '5',
|
268 |
+
'btnHPadding' => '10',
|
269 |
+
'titleBottomSpace' => '15',
|
270 |
+
'metaBottomSpace' => '15',
|
271 |
+
'excerptBottomSpace' => '25',
|
272 |
+
'arrowSize' => '20',
|
273 |
+
'arrowColor' => '#aaaaaa',
|
274 |
+
'arrowDots' => '',
|
275 |
+
'arrowBorderSize' => '1',
|
276 |
+
'arrowBorderRadius' => '0',
|
277 |
+
'overlayOpacity' => '50',
|
278 |
+
'bgOverlayColor' => '#ffffff',
|
279 |
+
'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
|
280 |
+
'borderWidth' => '1',
|
281 |
+
'borderStyle' => 'none',
|
282 |
+
'borderColor' => '',
|
283 |
+
'borderHColor' => '',
|
284 |
+
'borderRadius' => '0',
|
285 |
+
),
|
286 |
+
),
|
287 |
+
'uagb/post-grid' => array(
|
288 |
+
'slug' => '',
|
289 |
+
'title' => __( 'Post Grid', 'ultimate-addons-for-gutenberg' ),
|
290 |
+
'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a grid layout.', 'ultimate-addons-for-gutenberg' ),
|
291 |
+
'default' => true,
|
292 |
+
'attributes' => array(
|
293 |
+
'align' => 'left',
|
294 |
+
'rowGap' => '20',
|
295 |
+
'columnGap' => '20',
|
296 |
+
'bgColor' => '#e4e4e4',
|
297 |
+
'titleColor' => '#3b3b3b',
|
298 |
+
'titleTag' => 'h3',
|
299 |
+
'titleFontSize' => '',
|
300 |
+
'metaFontSize' => '',
|
301 |
+
'excerptFontSize' => '',
|
302 |
+
'ctaFontSize' => '',
|
303 |
+
'metaColor' => '#777777',
|
304 |
+
'excerptColor' => '',
|
305 |
+
'ctaColor' => '#ffffff',
|
306 |
+
'ctaBgColor' => '#333333',
|
307 |
+
'ctaHColor' => '',
|
308 |
+
'ctaBgHColor' => '',
|
309 |
+
'contentPadding' => '20',
|
310 |
+
'contentPaddingMobile' => '',
|
311 |
+
'btnVPadding' => '5',
|
312 |
+
'btnHPadding' => '10',
|
313 |
+
'titleBottomSpace' => '15',
|
314 |
+
'metaBottomSpace' => '15',
|
315 |
+
'excerptBottomSpace' => '25',
|
316 |
+
'overlayOpacity' => '50',
|
317 |
+
'bgOverlayColor' => '#ffffff',
|
318 |
+
'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
|
319 |
+
'borderWidth' => '1',
|
320 |
+
'borderStyle' => 'none',
|
321 |
+
'borderColor' => '',
|
322 |
+
'borderHColor' => '',
|
323 |
+
'borderRadius' => '0',
|
324 |
+
),
|
325 |
+
),
|
326 |
+
'uagb/post-masonry' => array(
|
327 |
+
'slug' => '',
|
328 |
+
'title' => __( 'Post Masonry', 'ultimate-addons-for-gutenberg' ),
|
329 |
+
'description' => __( 'This block fetches the blog posts you may have on your website and displays them in a masonry layout.', 'ultimate-addons-for-gutenberg' ),
|
330 |
+
'default' => true,
|
331 |
+
'attributes' => array(
|
332 |
+
'align' => 'left',
|
333 |
+
'rowGap' => '20',
|
334 |
+
'columnGap' => '20',
|
335 |
+
'bgColor' => '#e4e4e4',
|
336 |
+
'titleColor' => '#3b3b3b',
|
337 |
+
'titleTag' => 'h3',
|
338 |
+
'titleFontSize' => '',
|
339 |
+
'metaFontSize' => '',
|
340 |
+
'excerptFontSize' => '',
|
341 |
+
'ctaFontSize' => '',
|
342 |
+
'metaColor' => '#777777',
|
343 |
+
'excerptColor' => '',
|
344 |
+
'ctaColor' => '#ffffff',
|
345 |
+
'ctaBgColor' => '#333333',
|
346 |
+
'ctaHColor' => '',
|
347 |
+
'ctaBgHColor' => '',
|
348 |
+
'contentPadding' => '20',
|
349 |
+
'contentPaddingMobile' => '',
|
350 |
+
'btnVPadding' => '5',
|
351 |
+
'btnHPadding' => '10',
|
352 |
+
'titleBottomSpace' => '15',
|
353 |
+
'metaBottomSpace' => '15',
|
354 |
+
'excerptBottomSpace' => '25',
|
355 |
+
'overlayOpacity' => '50',
|
356 |
+
'bgOverlayColor' => '#ffffff',
|
357 |
+
'ctaText' => __( 'Read More', 'ultimate-addons-for-gutenberg' ),
|
358 |
+
'borderWidth' => '1',
|
359 |
+
'borderStyle' => 'none',
|
360 |
+
'borderColor' => '',
|
361 |
+
'borderHColor' => '',
|
362 |
+
'borderRadius' => '0',
|
363 |
+
),
|
364 |
+
),
|
365 |
+
'uagb/post-timeline' => array(
|
366 |
+
'slug' => '',
|
367 |
+
'title' => __( 'Post Timeline', 'ultimate-addons-for-gutenberg' ),
|
368 |
+
'description' => __( 'The Timeline block lets you create beautiful timelines of Posts on your website.', 'ultimate-addons-for-gutenberg' ),
|
369 |
+
'default' => true,
|
370 |
+
'attributes' => array(
|
371 |
+
'align' => 'center',
|
372 |
+
'headingColor' => '',
|
373 |
+
'subHeadingColor' => '',
|
374 |
+
'separatorBg' => '#eee',
|
375 |
+
'backgroundColor' => '#eee',
|
376 |
+
'separatorColor' => '#eee',
|
377 |
+
'separatorFillColor' => '#61ce70',
|
378 |
+
'separatorBorder' => '#eee',
|
379 |
+
'borderFocus' => '#5cb85c',
|
380 |
+
'horizontalSpace' => 10,
|
381 |
+
'verticalSpace' => 15,
|
382 |
+
'headFontSize' => '',
|
383 |
+
'timelinAlignment' => 'center',
|
384 |
+
'arrowlinAlignment' => 'center',
|
385 |
+
'subHeadFontSize' => '',
|
386 |
+
'headSpace' => 5,
|
387 |
+
'contentSpace' => 5,
|
388 |
+
'authorSpace' => 5,
|
389 |
+
'separatorwidth' => 3,
|
390 |
+
'borderwidth' => 0,
|
391 |
+
'iconColor' => '#333',
|
392 |
+
'iconFocus' => '#fff',
|
393 |
+
'iconBgFocus' => '#61ce70',
|
394 |
+
'dateColor' => '#333',
|
395 |
+
'dateFontsize' => 12,
|
396 |
+
'connectorBgsize' => 35,
|
397 |
+
'dateBottomspace' => 5,
|
398 |
+
'borderRadius' => 2,
|
399 |
+
'bgPadding' => 20,
|
400 |
+
'contentPadding' => 10,
|
401 |
+
'iconSize' => 12,
|
402 |
+
'stack' => 'tablet',
|
403 |
+
'ctaColor' => '#fff',
|
404 |
+
'authorColor' => '#333',
|
405 |
+
'ctaFontSize' => '',
|
406 |
+
'authorFontSize' => 11,
|
407 |
+
'ctaBackground' => '#333',
|
408 |
+
),
|
409 |
+
),
|
410 |
+
'uagb/restaurant-menu' => array(
|
411 |
+
'slug' => '',
|
412 |
+
'title' => __( 'Restaurant Menu', 'ultimate-addons-for-gutenberg' ),
|
413 |
+
'description' => __( 'This block allows you to add attractive Restaurant Menu.', 'ultimate-addons-for-gutenberg' ),
|
414 |
+
'default' => true,
|
415 |
+
'attributes' => array(
|
416 |
+
'block_id' => '',
|
417 |
+
'headingAlign' => 'left',
|
418 |
+
'descColor' => '#333',
|
419 |
+
'priceColor' => '#888888',
|
420 |
+
'titleColor' => '#333',
|
421 |
+
'imagePosition' => 'top',
|
422 |
+
'imageAlignment' => 'top',
|
423 |
+
'titleFontSize' => '',
|
424 |
+
'priceFontSize' => '',
|
425 |
+
'descFontSize' => '',
|
426 |
+
'priceSpace' => 5,
|
427 |
+
'descSpace' => 15,
|
428 |
+
'titleSpace' => 10,
|
429 |
+
'imgVrPadding' => 0,
|
430 |
+
'imgHrPadding' => 0,
|
431 |
+
'imgTopPadding' => 0,
|
432 |
+
'imgBottomPadding' => 0,
|
433 |
+
'iconImage' => '',
|
434 |
+
'imageSize' => 'medium',
|
435 |
+
'imageWidth' => '',
|
436 |
+
'columns' => 2,
|
437 |
+
'tcolumns' => 2,
|
438 |
+
'mcolumns' => 1,
|
439 |
+
'rowGap' => 10,
|
440 |
+
'columnGap' => 10,
|
441 |
+
'contentHrPadding' => 5,
|
442 |
+
'contentVrPadding' => 5,
|
443 |
+
'seperatorStyle' => 'dashed',
|
444 |
+
'seperatorWidth' => '100',
|
445 |
+
'seperatorThickness' => '1',
|
446 |
+
'seperatorColor' => '#b2b4b5',
|
447 |
+
),
|
448 |
+
),
|
449 |
+
'uagb/section' => array(
|
450 |
+
'slug' => '',
|
451 |
+
'title' => __( 'Section', 'ultimate-addons-for-gutenberg' ),
|
452 |
+
'description' => __( 'This block is an outer wrap section that allows you to add other blocks within it.', 'ultimate-addons-for-gutenberg' ),
|
453 |
+
'default' => true,
|
454 |
+
'attributes' => array(
|
455 |
+
'topPadding' => '20',
|
456 |
+
'bottomPadding' => '20',
|
457 |
+
'leftPadding' => '20',
|
458 |
+
'rightPadding' => '20',
|
459 |
+
'topMargin' => '0',
|
460 |
+
'bottomMargin' => '0',
|
461 |
+
'leftMargin' => '0',
|
462 |
+
'rightMargin' => '0',
|
463 |
+
'contentWidth' => 'boxed',
|
464 |
+
'width' => '900',
|
465 |
+
'innerWidth' => '1140',
|
466 |
+
'tag' => 'section',
|
467 |
+
'backgroundType' => 'none',
|
468 |
+
'gradientColor1' => '',
|
469 |
+
'gradientColor2' => '',
|
470 |
+
'backgroundVideoColor' => '',
|
471 |
+
'backgroundPosition' => 'center-center',
|
472 |
+
'backgroundSize' => 'cover',
|
473 |
+
'backgroundRepeat' => 'no-repeat',
|
474 |
+
'backgroundAttachment' => 'scroll',
|
475 |
+
'gradientType' => 'linear',
|
476 |
+
'gradientLocation1' => '0',
|
477 |
+
'gradientLocation2' => '100',
|
478 |
+
'gradientAngle' => '0',
|
479 |
+
'backgroundColor' => '',
|
480 |
+
'backgroundOpacity' => '',
|
481 |
+
'backgroundVideoOpacity' => '50',
|
482 |
+
'backgroundImageColor' => '',
|
483 |
+
'align' => 'center',
|
484 |
+
'borderStyle' => 'none',
|
485 |
+
'borderWidth' => '1',
|
486 |
+
'borderRadius' => '',
|
487 |
+
'borderColor' => '',
|
488 |
+
'themeWidth' => false,
|
489 |
+
),
|
490 |
+
),
|
491 |
+
'uagb/social-share' => array(
|
492 |
+
'slug' => '',
|
493 |
+
'title' => __( 'Social Share', 'ultimate-addons-for-gutenberg' ),
|
494 |
+
'description' => __( 'This block allows you to let users share your content across various social networking sites.', 'ultimate-addons-for-gutenberg' ),
|
495 |
+
'default' => true,
|
496 |
+
'attributes' => array(
|
497 |
+
'align' => 'center',
|
498 |
+
'social_count' => '1',
|
499 |
+
'socials' => array(
|
500 |
+
array(
|
501 |
+
'type' => 'facebook',
|
502 |
+
'image_icon' => 'icon',
|
503 |
+
'icon' => 'fab fa-facebook',
|
504 |
+
'image' => '',
|
505 |
+
'icon_color' => '#3a3a3a',
|
506 |
+
'icon_hover_color' => '#3a3a3a',
|
507 |
+
'icon_bg_color' => '',
|
508 |
+
'icon_bg_hover_color' => '',
|
509 |
+
),
|
510 |
+
),
|
511 |
+
'gap' => '10',
|
512 |
+
'size' => '40',
|
513 |
+
'bgSize' => '0',
|
514 |
+
'borderRadius' => '0',
|
515 |
+
'social_layout' => 'horizontal',
|
516 |
+
'stack' => 'none',
|
517 |
+
),
|
518 |
+
),
|
519 |
+
'uagb/team' => array(
|
520 |
+
'slug' => '',
|
521 |
+
'title' => __( 'Team', 'ultimate-addons-for-gutenberg' ),
|
522 |
+
'description' => __( 'This block allows you to display your team. Add their picture, name, what they do and links to their social profiles.', 'ultimate-addons-for-gutenberg' ),
|
523 |
+
'default' => true,
|
524 |
+
'attributes' => array(
|
525 |
+
'block_id' => '',
|
526 |
+
'align' => 'center',
|
527 |
+
'tag' => 'h3',
|
528 |
+
'titleColor' => '',
|
529 |
+
'prefixColor' => '#888888',
|
530 |
+
'descColor' => '',
|
531 |
+
'socialColor' => '#333',
|
532 |
+
'socialHoverColor' => '',
|
533 |
+
'titleFontSize' => '',
|
534 |
+
'prefixFontSize' => 15,
|
535 |
+
'descFontSize' => '',
|
536 |
+
'socialFontSize' => 20,
|
537 |
+
'image' => '',
|
538 |
+
'imgStyle' => 'normal',
|
539 |
+
'imgPosition' => 'above',
|
540 |
+
'imgAlign' => 'top',
|
541 |
+
'imgSiz' => 'thumbnail',
|
542 |
+
'imgWidth' => 120,
|
543 |
+
'titleSpace' => '',
|
544 |
+
'prefixSpace' => '',
|
545 |
+
'descSpace' => 10,
|
546 |
+
'imgLeftMargin' => 20,
|
547 |
+
'imgRightMargin' => 20,
|
548 |
+
'imgTopMargin' => 15,
|
549 |
+
'imgBottomMargin' => 15,
|
550 |
+
'socialSpace' => 20,
|
551 |
+
'headingTag' => 'h3',
|
552 |
+
),
|
553 |
+
),
|
554 |
+
'uagb/testimonial' => array(
|
555 |
+
'slug' => '',
|
556 |
+
'title' => __( 'Testimonial', 'ultimate-addons-for-gutenberg' ),
|
557 |
+
'description' => __( 'This block helps your display some amazing client feedback within your website.', 'ultimate-addons-for-gutenberg' ),
|
558 |
+
'default' => true,
|
559 |
+
'attributes' => array(
|
560 |
+
'headingAlign' => 'center',
|
561 |
+
'companyColor' => '#888888',
|
562 |
+
'descColor' => '#333',
|
563 |
+
'authorColor' => '#333',
|
564 |
+
'nameFontSize' => '',
|
565 |
+
'companyFontSize' => 15,
|
566 |
+
'descFontSize' => '',
|
567 |
+
'descSpace' => 15,
|
568 |
+
'block_id' => '',
|
569 |
+
'nameSpace' => 5,
|
570 |
+
'imgVrPadding' => 10,
|
571 |
+
'imgHrPadding' => 10,
|
572 |
+
'imageWidth' => 60,
|
573 |
+
'rowGap' => 10,
|
574 |
+
'columnGap' => 10,
|
575 |
+
'contentPadding' => 5,
|
576 |
+
'backgroundColor' => '',
|
577 |
+
'backgroundImage' => '',
|
578 |
+
'backgroundPosition' => 'center-center',
|
579 |
+
'backgroundSize' => 'cover',
|
580 |
+
'backgroundRepeat' => 'no-repeat',
|
581 |
+
'backgroundImageColor' => '',
|
582 |
+
'backgroundOpacity' => 0,
|
583 |
+
'borderStyle' => 'none',
|
584 |
+
'borderWidth' => 1,
|
585 |
+
'borderRadius' => 0,
|
586 |
+
'borderColor' => '#333',
|
587 |
+
'arrowColor' => '#333',
|
588 |
+
'arrowDots' => 'arrowDots',
|
589 |
+
'arrowBorderSize' => 1,
|
590 |
+
'arrowBorderRadius' => 0,
|
591 |
+
'columns' => 1,
|
592 |
+
'autoplaySpeed' => 2000,
|
593 |
+
'autoplay' => true,
|
594 |
+
'infiniteLoop' => true,
|
595 |
+
'pauseOnHover' => true,
|
596 |
+
'transitionSpeed' => 500,
|
597 |
+
'tcolumns' => 1,
|
598 |
+
'mcolumns' => 1,
|
599 |
+
'arrowSize' => 20,
|
600 |
+
'test_item_count' => 3,
|
601 |
+
),
|
602 |
+
),
|
603 |
+
);
|
604 |
+
}
|
605 |
+
return self::$block_attributes;
|
606 |
+
}
|
607 |
+
}
|
608 |
+
}
|
classes/class-uagb-helper.php
CHANGED
@@ -1,539 +1,568 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* UAGB Helper.
|
4 |
-
*
|
5 |
-
* @package UAGB
|
6 |
-
*/
|
7 |
-
|
8 |
-
if ( ! class_exists( 'UAGB_Helper' ) ) {
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Class UAGB_Helper.
|
12 |
-
*/
|
13 |
-
final class UAGB_Helper {
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Member Variable
|
17 |
-
*
|
18 |
-
* @since 0.0.1
|
19 |
-
* @var instance
|
20 |
-
*/
|
21 |
-
private static $instance;
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Member Variable
|
25 |
-
*
|
26 |
-
* @since 0.0.1
|
27 |
-
* @var instance
|
28 |
-
*/
|
29 |
-
public static $block_list;
|
30 |
-
|
31 |
-
/**
|
32 |
-
* Page Blocks Variable
|
33 |
-
*
|
34 |
-
* @since 1.6.0
|
35 |
-
* @var instance
|
36 |
-
*/
|
37 |
-
public static $page_blocks;
|
38 |
-
|
39 |
-
/**
|
40 |
-
* Initiator
|
41 |
-
*
|
42 |
-
* @since 0.0.1
|
43 |
-
*/
|
44 |
-
public static function get_instance() {
|
45 |
-
if ( ! isset( self::$instance ) ) {
|
46 |
-
self::$instance = new self;
|
47 |
-
}
|
48 |
-
return self::$instance;
|
49 |
-
}
|
50 |
-
|
51 |
-
/**
|
52 |
-
* Constructor
|
53 |
-
*/
|
54 |
-
public function __construct() {
|
55 |
-
|
56 |
-
require( UAGB_DIR . 'classes/class-uagb-config.php' );
|
57 |
-
require( UAGB_DIR . 'classes/class-uagb-block-helper.php' );
|
58 |
-
|
59 |
-
self::$block_list = UAGB_Config::get_block_attributes();
|
60 |
-
|
61 |
-
add_action( 'wp_head', array( $this, 'generate_stylesheet' ), 80 );
|
62 |
-
add_action( 'wp_footer', array( $this, 'generate_script' ), 1000 );
|
63 |
-
}
|
64 |
-
|
65 |
-
|
66 |
-
/**
|
67 |
-
* Parse CSS into correct CSS syntax.
|
68 |
-
*
|
69 |
-
* @param array $selectors The block selectors.
|
70 |
-
* @param string $id The selector ID.
|
71 |
-
* @since 0.0.1
|
72 |
-
*/
|
73 |
-
public static function generate_css( $selectors, $id ) {
|
74 |
-
|
75 |
-
$styling_css = '';
|
76 |
-
|
77 |
-
if ( empty( $selectors ) ) {
|
78 |
-
return;
|
79 |
-
}
|
80 |
-
|
81 |
-
foreach ( $selectors as $key => $value ) {
|
82 |
-
|
83 |
-
$styling_css .= $id;
|
84 |
-
|
85 |
-
$styling_css .= $key . ' { ';
|
86 |
-
$css = '';
|
87 |
-
|
88 |
-
foreach ( $value as $j => $val ) {
|
89 |
-
|
90 |
-
$css .= $j . ': ' . $val . ';';
|
91 |
-
}
|
92 |
-
|
93 |
-
$styling_css .= $css . ' } ';
|
94 |
-
}
|
95 |
-
|
96 |
-
return $styling_css;
|
97 |
-
}
|
98 |
-
|
99 |
-
/**
|
100 |
-
* Parse CSS into correct CSS syntax.
|
101 |
-
*
|
102 |
-
* @param string $query Media Query string.
|
103 |
-
* @param array $selectors The block selectors.
|
104 |
-
* @param string $id The selector ID.
|
105 |
-
* @since 0.0.1
|
106 |
-
*/
|
107 |
-
public static function generate_responsive_css( $query, $selectors, $id ) {
|
108 |
-
|
109 |
-
$css = $query . ' { ';
|
110 |
-
$css .= self::generate_css( $selectors, $id );
|
111 |
-
$css .= ' } ';
|
112 |
-
|
113 |
-
return $css;
|
114 |
-
}
|
115 |
-
|
116 |
-
/**
|
117 |
-
* Generates CSS recurrsively.
|
118 |
-
*
|
119 |
-
* @param object $block The block object.
|
120 |
-
* @since 0.0.1
|
121 |
-
*/
|
122 |
-
public function get_block_css( $block ) {
|
123 |
-
|
124 |
-
// @codingStandardsIgnoreStart
|
125 |
-
|
126 |
-
$block = ( array ) $block;
|
127 |
-
|
128 |
-
$name = $block['blockName'];
|
129 |
-
$css = '';
|
130 |
-
|
131 |
-
if( ! isset( $name ) ) {
|
132 |
-
return;
|
133 |
-
}
|
134 |
-
|
135 |
-
if ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) {
|
136 |
-
$blockattr = $block['attrs'];
|
137 |
-
if ( isset( $blockattr['block_id'] ) ) {
|
138 |
-
$block_id = $blockattr['block_id'];
|
139 |
-
}
|
140 |
-
}
|
141 |
-
|
142 |
-
switch ( $name ) {
|
143 |
-
case 'uagb/section':
|
144 |
-
$css .= UAGB_Block_Helper::get_section_css( $blockattr, $block_id );
|
145 |
-
break;
|
146 |
-
|
147 |
-
case 'uagb/advanced-heading':
|
148 |
-
$css .= UAGB_Block_Helper::get_adv_heading_css( $blockattr, $block_id );
|
149 |
-
break;
|
150 |
-
|
151 |
-
case 'uagb/info-box':
|
152 |
-
$css .= UAGB_Block_Helper::get_info_box_css( $blockattr, $block_id );
|
153 |
-
break;
|
154 |
-
|
155 |
-
case 'uagb/buttons':
|
156 |
-
$css .= UAGB_Block_Helper::get_buttons_css( $blockattr, $block_id );
|
157 |
-
break;
|
158 |
-
|
159 |
-
case 'uagb/testimonial':
|
160 |
-
$css .= UAGB_Block_Helper::get_testimonial_css( $blockattr, $block_id );
|
161 |
-
break;
|
162 |
-
|
163 |
-
case 'uagb/team':
|
164 |
-
$css .= UAGB_Block_Helper::get_team_css( $blockattr, $block_id );
|
165 |
-
break;
|
166 |
-
|
167 |
-
case 'uagb/social-share':
|
168 |
-
$css .= UAGB_Block_Helper::get_social_share_css( $blockattr, $block_id );
|
169 |
-
break;
|
170 |
-
|
171 |
-
case 'uagb/content-timeline':
|
172 |
-
$css .= UAGB_Block_Helper::get_content_timeline_css( $blockattr, $block_id );
|
173 |
-
break;
|
174 |
-
|
175 |
-
case 'uagb/
|
176 |
-
$css .= UAGB_Block_Helper::
|
177 |
-
break;
|
178 |
-
|
179 |
-
case 'uagb/
|
180 |
-
$css .= UAGB_Block_Helper::
|
181 |
-
break;
|
182 |
-
|
183 |
-
case 'uagb/
|
184 |
-
$css .= UAGB_Block_Helper::
|
185 |
-
break;
|
186 |
-
|
187 |
-
case 'uagb/
|
188 |
-
$css .= UAGB_Block_Helper::
|
189 |
-
break;
|
190 |
-
|
191 |
-
case 'uagb/post-
|
192 |
-
$css .= UAGB_Block_Helper::
|
193 |
-
break;
|
194 |
-
|
195 |
-
case 'uagb/post-
|
196 |
-
$css .= UAGB_Block_Helper::
|
197 |
-
break;
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
break;
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
if
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
break;
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
$
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
*
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* UAGB Helper.
|
4 |
+
*
|
5 |
+
* @package UAGB
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! class_exists( 'UAGB_Helper' ) ) {
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Class UAGB_Helper.
|
12 |
+
*/
|
13 |
+
final class UAGB_Helper {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Member Variable
|
17 |
+
*
|
18 |
+
* @since 0.0.1
|
19 |
+
* @var instance
|
20 |
+
*/
|
21 |
+
private static $instance;
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Member Variable
|
25 |
+
*
|
26 |
+
* @since 0.0.1
|
27 |
+
* @var instance
|
28 |
+
*/
|
29 |
+
public static $block_list;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Page Blocks Variable
|
33 |
+
*
|
34 |
+
* @since 1.6.0
|
35 |
+
* @var instance
|
36 |
+
*/
|
37 |
+
public static $page_blocks;
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Initiator
|
41 |
+
*
|
42 |
+
* @since 0.0.1
|
43 |
+
*/
|
44 |
+
public static function get_instance() {
|
45 |
+
if ( ! isset( self::$instance ) ) {
|
46 |
+
self::$instance = new self;
|
47 |
+
}
|
48 |
+
return self::$instance;
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
* Constructor
|
53 |
+
*/
|
54 |
+
public function __construct() {
|
55 |
+
|
56 |
+
require( UAGB_DIR . 'classes/class-uagb-config.php' );
|
57 |
+
require( UAGB_DIR . 'classes/class-uagb-block-helper.php' );
|
58 |
+
|
59 |
+
self::$block_list = UAGB_Config::get_block_attributes();
|
60 |
+
|
61 |
+
add_action( 'wp_head', array( $this, 'generate_stylesheet' ), 80 );
|
62 |
+
add_action( 'wp_footer', array( $this, 'generate_script' ), 1000 );
|
63 |
+
}
|
64 |
+
|
65 |
+
|
66 |
+
/**
|
67 |
+
* Parse CSS into correct CSS syntax.
|
68 |
+
*
|
69 |
+
* @param array $selectors The block selectors.
|
70 |
+
* @param string $id The selector ID.
|
71 |
+
* @since 0.0.1
|
72 |
+
*/
|
73 |
+
public static function generate_css( $selectors, $id ) {
|
74 |
+
|
75 |
+
$styling_css = '';
|
76 |
+
|
77 |
+
if ( empty( $selectors ) ) {
|
78 |
+
return;
|
79 |
+
}
|
80 |
+
|
81 |
+
foreach ( $selectors as $key => $value ) {
|
82 |
+
|
83 |
+
$styling_css .= $id;
|
84 |
+
|
85 |
+
$styling_css .= $key . ' { ';
|
86 |
+
$css = '';
|
87 |
+
|
88 |
+
foreach ( $value as $j => $val ) {
|
89 |
+
|
90 |
+
$css .= $j . ': ' . $val . ';';
|
91 |
+
}
|
92 |
+
|
93 |
+
$styling_css .= $css . ' } ';
|
94 |
+
}
|
95 |
+
|
96 |
+
return $styling_css;
|
97 |
+
}
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Parse CSS into correct CSS syntax.
|
101 |
+
*
|
102 |
+
* @param string $query Media Query string.
|
103 |
+
* @param array $selectors The block selectors.
|
104 |
+
* @param string $id The selector ID.
|
105 |
+
* @since 0.0.1
|
106 |
+
*/
|
107 |
+
public static function generate_responsive_css( $query, $selectors, $id ) {
|
108 |
+
|
109 |
+
$css = $query . ' { ';
|
110 |
+
$css .= self::generate_css( $selectors, $id );
|
111 |
+
$css .= ' } ';
|
112 |
+
|
113 |
+
return $css;
|
114 |
+
}
|
115 |
+
|
116 |
+
/**
|
117 |
+
* Generates CSS recurrsively.
|
118 |
+
*
|
119 |
+
* @param object $block The block object.
|
120 |
+
* @since 0.0.1
|
121 |
+
*/
|
122 |
+
public function get_block_css( $block ) {
|
123 |
+
|
124 |
+
// @codingStandardsIgnoreStart
|
125 |
+
|
126 |
+
$block = ( array ) $block;
|
127 |
+
|
128 |
+
$name = $block['blockName'];
|
129 |
+
$css = '';
|
130 |
+
|
131 |
+
if( ! isset( $name ) ) {
|
132 |
+
return;
|
133 |
+
}
|
134 |
+
|
135 |
+
if ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) {
|
136 |
+
$blockattr = $block['attrs'];
|
137 |
+
if ( isset( $blockattr['block_id'] ) ) {
|
138 |
+
$block_id = $blockattr['block_id'];
|
139 |
+
}
|
140 |
+
}
|
141 |
+
|
142 |
+
switch ( $name ) {
|
143 |
+
case 'uagb/section':
|
144 |
+
$css .= UAGB_Block_Helper::get_section_css( $blockattr, $block_id );
|
145 |
+
break;
|
146 |
+
|
147 |
+
case 'uagb/advanced-heading':
|
148 |
+
$css .= UAGB_Block_Helper::get_adv_heading_css( $blockattr, $block_id );
|
149 |
+
break;
|
150 |
+
|
151 |
+
case 'uagb/info-box':
|
152 |
+
$css .= UAGB_Block_Helper::get_info_box_css( $blockattr, $block_id );
|
153 |
+
break;
|
154 |
+
|
155 |
+
case 'uagb/buttons':
|
156 |
+
$css .= UAGB_Block_Helper::get_buttons_css( $blockattr, $block_id );
|
157 |
+
break;
|
158 |
+
|
159 |
+
case 'uagb/testimonial':
|
160 |
+
$css .= UAGB_Block_Helper::get_testimonial_css( $blockattr, $block_id );
|
161 |
+
break;
|
162 |
+
|
163 |
+
case 'uagb/team':
|
164 |
+
$css .= UAGB_Block_Helper::get_team_css( $blockattr, $block_id );
|
165 |
+
break;
|
166 |
+
|
167 |
+
case 'uagb/social-share':
|
168 |
+
$css .= UAGB_Block_Helper::get_social_share_css( $blockattr, $block_id );
|
169 |
+
break;
|
170 |
+
|
171 |
+
case 'uagb/content-timeline':
|
172 |
+
$css .= UAGB_Block_Helper::get_content_timeline_css( $blockattr, $block_id );
|
173 |
+
break;
|
174 |
+
|
175 |
+
case 'uagb/call-to-action':
|
176 |
+
$css .= UAGB_Block_Helper::get_call_to_action_css( $blockattr, $block_id );
|
177 |
+
break;
|
178 |
+
|
179 |
+
case 'uagb/post-timeline':
|
180 |
+
$css .= UAGB_Block_Helper::get_post_timeline_css( $blockattr, $block_id );
|
181 |
+
break;
|
182 |
+
|
183 |
+
case 'uagb/restaurant-menu':
|
184 |
+
$css .= UAGB_Block_Helper::get_restaurant_menu_css( $blockattr, $block_id );
|
185 |
+
break;
|
186 |
+
|
187 |
+
case 'uagb/icon-list':
|
188 |
+
$css .= UAGB_Block_Helper::get_icon_list_css( $blockattr, $block_id );
|
189 |
+
break;
|
190 |
+
|
191 |
+
case 'uagb/post-grid':
|
192 |
+
$css .= UAGB_Block_Helper::get_post_grid_css( $blockattr, $block_id );
|
193 |
+
break;
|
194 |
+
|
195 |
+
case 'uagb/post-carousel':
|
196 |
+
$css .= UAGB_Block_Helper::get_post_carousel_css( $blockattr, $block_id );
|
197 |
+
break;
|
198 |
+
|
199 |
+
case 'uagb/post-masonry':
|
200 |
+
$css .= UAGB_Block_Helper::get_post_masonry_css( $blockattr, $block_id );
|
201 |
+
break;
|
202 |
+
|
203 |
+
default:
|
204 |
+
// Nothing to do here.
|
205 |
+
break;
|
206 |
+
}
|
207 |
+
|
208 |
+
if ( isset( $block['innerBlocks'] ) ) {
|
209 |
+
foreach ( $block['innerBlocks'] as $j => $inner_block ) {
|
210 |
+
$css .= $this->get_block_css( $inner_block );
|
211 |
+
}
|
212 |
+
}
|
213 |
+
|
214 |
+
echo $css;
|
215 |
+
|
216 |
+
// @codingStandardsIgnoreEnd
|
217 |
+
}
|
218 |
+
|
219 |
+
/**
|
220 |
+
* Generates Js recurrsively.
|
221 |
+
*
|
222 |
+
* @param object $block The block object.
|
223 |
+
* @since 1.6.0
|
224 |
+
*/
|
225 |
+
public function get_block_js( $block ) {
|
226 |
+
|
227 |
+
// @codingStandardsIgnoreStart
|
228 |
+
|
229 |
+
$block = ( array ) $block;
|
230 |
+
|
231 |
+
$name = $block['blockName'];
|
232 |
+
$js = '';
|
233 |
+
|
234 |
+
if( ! isset( $name ) ) {
|
235 |
+
return;
|
236 |
+
}
|
237 |
+
|
238 |
+
if ( isset( $block['attrs'] ) && is_array( $block['attrs'] ) ) {
|
239 |
+
$blockattr = $block['attrs'];
|
240 |
+
if ( isset( $blockattr['block_id'] ) ) {
|
241 |
+
$block_id = $blockattr['block_id'];
|
242 |
+
}
|
243 |
+
}
|
244 |
+
|
245 |
+
switch ( $name ) {
|
246 |
+
|
247 |
+
case 'uagb/testimonial':
|
248 |
+
$js .= UAGB_Block_Helper::get_testimonial_js( $blockattr, $block_id );
|
249 |
+
break;
|
250 |
+
|
251 |
+
default:
|
252 |
+
// Nothing to do here.
|
253 |
+
break;
|
254 |
+
}
|
255 |
+
|
256 |
+
if ( isset( $block['innerBlocks'] ) ) {
|
257 |
+
foreach ( $block['innerBlocks'] as $j => $inner_block ) {
|
258 |
+
$js .= $this->get_block_js( $inner_block );
|
259 |
+
}
|
260 |
+
}
|
261 |
+
|
262 |
+
echo $js;
|
263 |
+
|
264 |
+
// @codingStandardsIgnoreEnd
|
265 |
+
}
|
266 |
+
|
267 |
+
/**
|
268 |
+
* Generates stylesheet and appends in head tag.
|
269 |
+
*
|
270 |
+
* @since 0.0.1
|
271 |
+
*/
|
272 |
+
public function generate_stylesheet() {
|
273 |
+
|
274 |
+
$this_post = array();
|
275 |
+
|
276 |
+
if ( is_single() || is_page() || is_404() ) {
|
277 |
+
global $post;
|
278 |
+
$this_post = $post;
|
279 |
+
$this->_generate_stylesheet( $this_post );
|
280 |
+
if ( ! is_object( $post ) ) {
|
281 |
+
return;
|
282 |
+
}
|
283 |
+
} elseif ( is_archive() || is_home() || is_search() ) {
|
284 |
+
global $wp_query;
|
285 |
+
|
286 |
+
if ( $wp_query->have_posts() ) {
|
287 |
+
while ( $wp_query->have_posts() ) {
|
288 |
+
$wp_query->the_post();
|
289 |
+
global $post;
|
290 |
+
$this_post = $post;
|
291 |
+
$this->_generate_stylesheet( $this_post );
|
292 |
+
}
|
293 |
+
}
|
294 |
+
}
|
295 |
+
}
|
296 |
+
|
297 |
+
/**
|
298 |
+
* Generates stylesheet in loop.
|
299 |
+
*
|
300 |
+
* @param object $this_post Current Post Object.
|
301 |
+
* @since 1.7.0
|
302 |
+
*/
|
303 |
+
public function _generate_stylesheet( $this_post ) {
|
304 |
+
|
305 |
+
if ( has_blocks( get_the_ID() ) ) {
|
306 |
+
|
307 |
+
$blocks = $this->parse( $this_post->post_content );
|
308 |
+
self::$page_blocks = $blocks;
|
309 |
+
|
310 |
+
if ( ! is_array( $blocks ) || empty( $blocks ) ) {
|
311 |
+
return;
|
312 |
+
}
|
313 |
+
|
314 |
+
ob_start();
|
315 |
+
?>
|
316 |
+
<style type="text/css" media="all" id="uagb-style-frontend"><?php $this->get_stylesheet( $blocks ); ?></style>
|
317 |
+
<?php
|
318 |
+
}
|
319 |
+
}
|
320 |
+
|
321 |
+
/**
|
322 |
+
* Generates scripts and appends in footer tag.
|
323 |
+
*
|
324 |
+
* @since 1.5.0
|
325 |
+
*/
|
326 |
+
public function generate_script() {
|
327 |
+
|
328 |
+
$blocks = self::$page_blocks;
|
329 |
+
|
330 |
+
if ( ! is_array( $blocks ) || empty( $blocks ) ) {
|
331 |
+
return;
|
332 |
+
}
|
333 |
+
|
334 |
+
ob_start();
|
335 |
+
?>
|
336 |
+
<script type="text/javascript" id="uagb-script-frontend">
|
337 |
+
( function( $ ) {
|
338 |
+
<?php $this->get_scripts( $blocks ); ?>
|
339 |
+
})(jQuery)
|
340 |
+
</script>
|
341 |
+
<?php
|
342 |
+
}
|
343 |
+
|
344 |
+
/**
|
345 |
+
* Parse Guten Block.
|
346 |
+
*
|
347 |
+
* @param string $content the content string.
|
348 |
+
* @since 1.1.0
|
349 |
+
*/
|
350 |
+
public function parse( $content ) {
|
351 |
+
|
352 |
+
global $wp_version;
|
353 |
+
|
354 |
+
return ( version_compare( $wp_version, '5', '>=' ) ) ? parse_blocks( $content ) : gutenberg_parse_blocks( $content );
|
355 |
+
}
|
356 |
+
|
357 |
+
/**
|
358 |
+
* Generates stylesheet for reusable blocks.
|
359 |
+
*
|
360 |
+
* @param array $blocks Blocks array.
|
361 |
+
* @since 1.1.0
|
362 |
+
*/
|
363 |
+
public function get_stylesheet( $blocks ) {
|
364 |
+
|
365 |
+
foreach ( $blocks as $i => $block ) {
|
366 |
+
|
367 |
+
if ( is_array( $block ) ) {
|
368 |
+
|
369 |
+
if ( 'core/block' == $block['blockName'] ) {
|
370 |
+
|
371 |
+
$id = ( isset( $block['attrs']['ref'] ) ) ? $block['attrs']['ref'] : 0;
|
372 |
+
|
373 |
+
if ( $id ) {
|
374 |
+
|
375 |
+
$content = get_post_field( 'post_content', $id );
|
376 |
+
|
377 |
+
$reusable_blocks = $this->parse( $content );
|
378 |
+
|
379 |
+
$this->get_stylesheet( $reusable_blocks );
|
380 |
+
}
|
381 |
+
} else {
|
382 |
+
|
383 |
+
// Get CSS for the Block.
|
384 |
+
$this->get_block_css( $block );
|
385 |
+
}
|
386 |
+
}
|
387 |
+
}
|
388 |
+
}
|
389 |
+
|
390 |
+
|
391 |
+
/**
|
392 |
+
* Generates scripts for reusable blocks.
|
393 |
+
*
|
394 |
+
* @param array $blocks Blocks array.
|
395 |
+
* @since 1.6.0
|
396 |
+
*/
|
397 |
+
public function get_scripts( $blocks ) {
|
398 |
+
|
399 |
+
foreach ( $blocks as $i => $block ) {
|
400 |
+
|
401 |
+
if ( is_array( $block ) ) {
|
402 |
+
|
403 |
+
if ( 'core/block' == $block['blockName'] ) {
|
404 |
+
|
405 |
+
$id = ( isset( $block['attrs']['ref'] ) ) ? $block['attrs']['ref'] : 0;
|
406 |
+
|
407 |
+
if ( $id ) {
|
408 |
+
|
409 |
+
$content = get_post_field( 'post_content', $id );
|
410 |
+
|
411 |
+
$reusable_blocks = $this->parse( $content );
|
412 |
+
|
413 |
+
$this->get_scripts( $reusable_blocks );
|
414 |
+
}
|
415 |
+
} else {
|
416 |
+
|
417 |
+
// Get CSS for the Block.
|
418 |
+
$this->get_block_js( $block );
|
419 |
+
}
|
420 |
+
}
|
421 |
+
}
|
422 |
+
}
|
423 |
+
|
424 |
+
/**
|
425 |
+
* Get Buttons default array.
|
426 |
+
*
|
427 |
+
* @since 0.0.1
|
428 |
+
*/
|
429 |
+
public static function get_button_defaults() {
|
430 |
+
|
431 |
+
$default = array();
|
432 |
+
|
433 |
+
for ( $i = 1; $i <= 2; $i++ ) {
|
434 |
+
array_push(
|
435 |
+
$default,
|
436 |
+
array(
|
437 |
+
'size' => '',
|
438 |
+
'vPadding' => 10,
|
439 |
+
'hPadding' => 14,
|
440 |
+
'borderWidth' => 1,
|
441 |
+
'borderRadius' => 2,
|
442 |
+
'borderStyle' => 'solid',
|
443 |
+
'borderColor' => '#333',
|
444 |
+
'borderHColor' => '#333',
|
445 |
+
'color' => '#333',
|
446 |
+
'background' => '',
|
447 |
+
'hColor' => '#333',
|
448 |
+
'hBackground' => '',
|
449 |
+
)
|
450 |
+
);
|
451 |
+
}
|
452 |
+
|
453 |
+
return $default;
|
454 |
+
}
|
455 |
+
|
456 |
+
/**
|
457 |
+
* Returns an option from the database for
|
458 |
+
* the admin settings page.
|
459 |
+
*
|
460 |
+
* @param string $key The option key.
|
461 |
+
* @param mixed $default Option default value if option is not available.
|
462 |
+
* @param boolean $network_override Whether to allow the network admin setting to be overridden on subsites.
|
463 |
+
* @return string Return the option value
|
464 |
+
*/
|
465 |
+
public static function get_admin_settings_option( $key, $default = false, $network_override = false ) {
|
466 |
+
|
467 |
+
// Get the site-wide option if we're in the network admin.
|
468 |
+
if ( $network_override && is_multisite() ) {
|
469 |
+
$value = get_site_option( $key, $default );
|
470 |
+
} else {
|
471 |
+
$value = get_option( $key, $default );
|
472 |
+
}
|
473 |
+
|
474 |
+
return $value;
|
475 |
+
}
|
476 |
+
|
477 |
+
/**
|
478 |
+
* Updates an option from the admin settings page.
|
479 |
+
*
|
480 |
+
* @param string $key The option key.
|
481 |
+
* @param mixed $value The value to update.
|
482 |
+
* @param bool $network Whether to allow the network admin setting to be overridden on subsites.
|
483 |
+
* @return mixed
|
484 |
+
*/
|
485 |
+
static public function update_admin_settings_option( $key, $value, $network = false ) {
|
486 |
+
|
487 |
+
// Update the site-wide option since we're in the network admin.
|
488 |
+
if ( $network && is_multisite() ) {
|
489 |
+
update_site_option( $key, $value );
|
490 |
+
} else {
|
491 |
+
update_option( $key, $value );
|
492 |
+
}
|
493 |
+
|
494 |
+
}
|
495 |
+
|
496 |
+
/**
|
497 |
+
* Is Knowledgebase.
|
498 |
+
*
|
499 |
+
* @return string
|
500 |
+
* @since 0.0.1
|
501 |
+
*/
|
502 |
+
static public function knowledgebase_data() {
|
503 |
+
|
504 |
+
$knowledgebase = array(
|
505 |
+
'enable_knowledgebase' => true,
|
506 |
+
'knowledgebase_url' => 'https://www.ultimategutenberg.com/docs/',
|
507 |
+
);
|
508 |
+
|
509 |
+
return $knowledgebase;
|
510 |
+
}
|
511 |
+
|
512 |
+
/**
|
513 |
+
* Is Knowledgebase.
|
514 |
+
*
|
515 |
+
* @return string
|
516 |
+
* @since 0.0.1
|
517 |
+
*/
|
518 |
+
static public function support_data() {
|
519 |
+
|
520 |
+
$support = array(
|
521 |
+
'enable_support' => true,
|
522 |
+
'support_url' => 'https://www.ultimategutenberg.com/support/',
|
523 |
+
);
|
524 |
+
|
525 |
+
return $support;
|
526 |
+
}
|
527 |
+
|
528 |
+
/**
|
529 |
+
* Provide Widget settings.
|
530 |
+
*
|
531 |
+
* @return array()
|
532 |
+
* @since 0.0.1
|
533 |
+
*/
|
534 |
+
static public function get_block_options() {
|
535 |
+
|
536 |
+
$blocks = self::$block_list;
|
537 |
+
$saved_blocks = self::get_admin_settings_option( '_uagb_blocks' );
|
538 |
+
if ( is_array( $blocks ) ) {
|
539 |
+
|
540 |
+
foreach ( $blocks as $slug => $data ) {
|
541 |
+
|
542 |
+
$_slug = str_replace( 'uagb/', '', $slug );
|
543 |
+
|
544 |
+
if ( isset( $saved_blocks[ $_slug ] ) ) {
|
545 |
+
|
546 |
+
if ( 'disabled' === $saved_blocks[ $_slug ] ) {
|
547 |
+
$blocks[ $slug ]['is_activate'] = false;
|
548 |
+
} else {
|
549 |
+
$blocks[ $slug ]['is_activate'] = true;
|
550 |
+
}
|
551 |
+
} else {
|
552 |
+
$blocks[ $slug ]['is_activate'] = ( isset( $data['default'] ) ) ? $data['default'] : false;
|
553 |
+
}
|
554 |
+
}
|
555 |
+
}
|
556 |
+
|
557 |
+
self::$block_list = $blocks;
|
558 |
+
|
559 |
+
return apply_filters( 'uagb_enabled_blocks', self::$block_list );
|
560 |
+
}
|
561 |
+
}
|
562 |
+
|
563 |
+
/**
|
564 |
+
* Prepare if class 'UAGB_Helper' exist.
|
565 |
+
* Kicking this off by calling 'get_instance()' method
|
566 |
+
*/
|
567 |
+
UAGB_Helper::get_instance();
|
568 |
+
}
|
classes/class-uagb-loader.php
CHANGED
@@ -73,7 +73,7 @@ if ( ! class_exists( 'UAGB_Loader' ) ) {
|
|
73 |
define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
|
74 |
define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
|
75 |
define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
|
76 |
-
define( 'UAGB_VER', '1.
|
77 |
define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
|
78 |
define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
|
79 |
define( 'UAGB_SLUG', 'uagb' );
|
73 |
define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
|
74 |
define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
|
75 |
define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
|
76 |
+
define( 'UAGB_VER', '1.7.0' );
|
77 |
define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
|
78 |
define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
|
79 |
define( 'UAGB_SLUG', 'uagb' );
|
dist/blocks.build.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=137)}([function(e,t,n){var a,r;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var r=typeof a;if("string"===r||"number"===r)e.push(a);else if(Array.isArray(a)&&a.length){var i=n.apply(null,a);i&&e.push(i)}else if("object"===r)for(var l in a)o.call(a,l)&&a[l]&&e.push(l)}}return e.join(" ")}var o={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(a=[],void 0!==(r=function(){return n}.apply(t,a))&&(e.exports=r))}()},function(e,t,n){"use strict";(function(t){"production"===t.env.NODE_ENV?e.exports=n(284):e.exports=n(285)}).call(t,n(2))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===a||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function i(){h&&d&&(h=!1,d.length?m=d.concat(m):g=-1,m.length&&l())}function l(){if(!h){var e=r(i);h=!0;for(var t=m.length;t;){for(d=m,m=[];++g<t;)d&&d[g].run();g=-1,t=m.length}d=null,h=!1,o(e)}}function s(e,t){this.fun=e,this.array=t}function u(){}var c,f,p=e.exports={};!function(){try{c="function"===typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"===typeof clearTimeout?clearTimeout:a}catch(e){f=a}}();var d,m=[],h=!1,g=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];m.push(new s(e,t)),1!==m.length||h||r(l)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=u,p.addListener=u,p.once=u,p.off=u,p.removeListener=u,p.removeAllListeners=u,p.emit=u,p.prependListener=u,p.prependOnceListener=u,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){"use strict";var a=wp.element.createElement,r={section:a("svg",{width:20,height:20},a("path",{d:"M20 18.008h-20v-16.016h20v16.016zM1.172 16.836h17.656v-13.672h-17.656v13.672z"}),a("path",{d:"M7.617 4.604h4.766v1.172h-4.766v-1.172z"}),a("path",{d:"M8.998 14.385h-6.237v-6.238h6.238v6.238zM3.932 13.213h3.894v-3.894h-3.894v3.894z"}),a("path",{d:"M17.24 11.852h-6.237v-3.705h6.238v3.705zM12.174 10.68h3.894v-1.361h-3.894v1.361z"}),a("path",{d:"M11.588 13.024h5.066v1.172h-5.066v-1.172z"})),buttons:a("svg",{width:20,height:20},a("path",{d:"M20 18.008h-20v-16.016h20v16.016zM1.172 16.836h17.656v-13.672h-17.656v13.672z"}),a("path",{d:"M10.758 6.289h-7.421v7.421l12.987 0.001v-7.422h-5.566zM5.192 11.855v-3.711h3.711v3.711h-3.711zM14.469 11.855h-3.711v-3.711h3.711v3.711z"})),advanced_heading:a("svg",{width:20,height:20},a("path",{d:"M0 18h20v2h-20v-2z"}),a("path",{d:"M11 0h-2l-7.25 16h2.25l2.21-5h7.59l2.2 5h2.25l-7.25-16zM7.090 9l2.91-6.59 2.91 6.59h-5.82z"})),google_map:a("svg",{width:20,height:20},a("path",{d:"M10 0c-4.112 0-7.458 3.347-7.458 7.461 0 6.13 6.716 12.115 7.002 12.367 0.131 0.115 0.293 0.172 0.456 0.172s0.326-0.058 0.456-0.172c0.286-0.252 7.002-6.237 7.002-12.367 0-4.114-3.345-7.461-7.458-7.461v0zM10 18.363c-1.485-1.439-6.077-6.265-6.077-10.902 0-3.353 2.726-6.080 6.077-6.080s6.077 2.728 6.077 6.080c0 4.637-4.592 9.463-6.077 10.902v0z"}),a("path",{d:"M10 3.986c-1.904 0-3.453 1.559-3.453 3.475s1.549 3.476 3.453 3.476c1.904 0 3.453-1.559 3.453-3.476s-1.549-3.475-3.453-3.475v0zM10 9.555c-1.142 0-2.071-0.939-2.071-2.094s0.929-2.095 2.071-2.095 2.072 0.94 2.072 2.095c0 1.155-0.93 2.094-2.072 2.094v0z"})),info_box:a("svg",{width:20,height:20},a("path",{d:"M0 1.992v16.016h20v-16.016h-20zM11.406 16.836h-10.234v-10.898h10.234v10.898zM18.828 16.836h-6.25v-2.852h6.25v2.852zM18.828 12.813h-6.25v-6.875h6.25v6.875zM1.172 4.766v-1.602h17.656v1.602h-17.656z"}),a("path",{d:"M2.652 15.325h7.274v-7.877h-7.274v7.877zM3.824 8.62h4.931v5.534h-4.931v-5.534z"}),a("path",{d:"M13.486 10.13h4.434v1.172h-4.434v-1.172z"}),a("path",{d:"M13.486 7.448h4.434v1.172h-4.434v-1.172z"})),post_carousel:a("svg",{width:20,height:20},a("path",{d:"M7.554 12.936h4.893v-5.871h-4.893v5.871zM8.888 8.399h2.224v3.202h-2.224v-3.202z"}),a("path",{d:"M13.913 8.868l1.132 1.132-1.132 1.132 0.944 0.944 2.076-2.076-2.076-2.076-0.943 0.943z"}),a("path",{d:"M5.144 7.924l-2.076 2.076 2.076 2.076 0.943-0.944-1.132-1.132 1.132-1.132-0.944-0.943z"}),a("path",{d:"M19.31 0h-18.619c-0.381 0-0.691 0.309-0.691 0.691v18.619c0 0.382 0.309 0.691 0.691 0.691h18.619c0.382 0 0.691-0.309 0.691-0.691v-18.619c0-0.381-0.309-0.691-0.69-0.691v0zM1.32 18.62v-17.301h17.3v17.3h-17.3z"})),post_masonry:a("svg",{width:20,height:20},a("path",{d:"M19.31 0h-18.619c-0.381 0-0.691 0.309-0.691 0.691v18.619c0 0.382 0.309 0.691 0.691 0.691h18.619c0.382 0 0.691-0.309 0.691-0.691v-18.619c0-0.381-0.309-0.691-0.69-0.691v0zM18.62 6.206h-4.825v-4.825h4.825v4.825zM18.62 12.413h-4.825v-4.825h4.825v4.825zM7.588 5.788h4.825v8.825h-4.825v-8.825zM12.413 1.381v3.025h-4.825v-3.025h4.825zM6.206 1.381v11.025h-4.825v-11.025h4.825zM1.381 13.794h4.825v4.826h-4.825v-4.826zM7.588 18.62v-2.826h4.825v2.826h-4.825zM13.794 18.62v-4.826h4.825v4.826h-4.825z"})),post_grid:a("svg",{width:20,height:20},a("path",{d:"M19.31 0h-18.619c-0.381 0-0.691 0.309-0.691 0.691v18.619c0 0.382 0.309 0.691 0.691 0.691h18.619c0.382 0 0.691-0.309 0.691-0.691v-18.619c0-0.381-0.309-0.691-0.69-0.691v0zM18.62 6.206h-4.825v-4.825h4.825v4.825zM18.62 12.413h-4.825v-4.825h4.825v4.825zM1.381 7.588h4.825v4.825h-4.825v-4.825zM7.588 7.588h4.825v4.825h-4.825v-4.825zM12.413 1.381v4.825h-4.825v-4.825h4.825zM6.206 1.381v4.825h-4.825v-4.825h4.825zM1.381 13.794h4.825v4.826h-4.825v-4.826zM7.588 18.62v-4.826h4.825v4.826h-4.825zM13.794 18.62v-4.826h4.825v4.826h-4.825z"})),testimonial:a("svg",{width:20,height:20},a("path",{d:"M9.996 0c-5.516 0-9.996 4.479-9.996 9.997 0 5.523 4.48 10.003 9.996 10.003 5.524 0 10.004-4.48 10.004-10.003 0-5.518-4.48-9.997-10.004-9.997v0zM9.996 18.749c-4.821 0-8.745-3.926-8.745-8.752 0-4.822 3.923-8.746 8.745-8.746 4.829 0 8.753 3.924 8.753 8.746 0 4.826-3.924 8.752-8.753 8.752v0z"}),a("path",{d:"M8.007 6.732l-0.292-0.201-0.006-0.012-0.019-0.006-0.214-0.098 0.006 0.012c-0.201-0.079-0.416-0.14-0.641-0.14-1.018 0-1.843 0.854-1.843 1.91s0.825 1.917 1.843 1.917c0.323 0 0.622-0.098 0.891-0.25-0.091 1.019-0.605 2.514-2.491 4.034-0.267 0.212-0.317 0.604-0.109 0.879 0.121 0.159 0.3 0.243 0.476 0.243 0.134 0 0.263-0.041 0.372-0.134 2.319-1.866 2.894-3.784 2.971-5.070 0.134-1.636-0.365-2.502-0.817-2.948l-0.128-0.134z"}),a("path",{d:"M14.068 6.732l-0.293-0.201-0.008-0.012-0.017-0.006-0.214-0.098 0.006 0.012c-0.202-0.079-0.415-0.14-0.641-0.14-1.019 0-1.843 0.854-1.843 1.91s0.824 1.917 1.843 1.917c0.324 0 0.623-0.098 0.891-0.25-0.092 1.019-0.604 2.514-2.496 4.034-0.262 0.212-0.311 0.604-0.104 0.879 0.116 0.159 0.299 0.243 0.476 0.243 0.134 0 0.263-0.041 0.372-0.134 2.319-1.866 2.893-3.784 2.972-5.070 0.134-1.636-0.366-2.502-0.818-2.948l-0.128-0.134z"})),cf7_styler:a("svg",{width:20,height:20},a("path",{d:"M0 2.969v14.063h20v-14.063h-20zM18.828 15.859h-17.656v-11.719h17.656v11.719z"}),a("path",{d:"M11.758 13.516h5.898v1.172h-5.898v-1.172z"}),a("path",{d:"M11.758 11.172h5.898v1.172h-5.898v-1.172z"}),a("path",{d:"M11.758 8.828h5.898v1.172h-5.898v-1.172z"}),a("path",{d:"M11.758 6.484h3.555v1.172h-3.555v-1.172z"}),a("path",{d:"M16.484 6.484h1.172v1.172h-1.172v-1.172z"}),a("path",{d:"M8.386 10.468c0.629-0.538 1.028-1.336 1.028-2.226 0-1.615-1.314-2.93-2.93-2.93s-2.93 1.314-2.93 2.93c0 0.89 0.4 1.688 1.028 2.226-1.307 0.687-2.2 2.057-2.2 3.633v0.586h8.203v-0.586c0-1.576-0.893-2.947-2.2-3.633zM6.484 6.484c0.969 0 1.758 0.789 1.758 1.758s-0.789 1.758-1.758 1.758-1.758-0.789-1.758-1.758 0.789-1.758 1.758-1.758zM3.614 13.516c0.272-1.336 1.456-2.344 2.871-2.344s2.599 1.008 2.871 2.344h-5.742z"})),content_timeline:a("svg",{width:20,height:20},a("path",{d:"M9.375 0h1.25v20h-1.25v-20z"}),a("path",{d:"M1.875 3.125h5v2.5h-5v-2.5zM0.625 6.875h7.5v-5h-7.5v5z"}),a("path",{d:"M1.875 14.592h5v2.5h-5v-2.5zM0.625 18.342h7.5v-5h-7.5v5z"}),a("path",{d:"M18.125 11.25h-5v-2.5h5v2.5zM11.875 7.5v5h7.5v-5h-7.5z"})),post_timeline:a("svg",{width:20,height:20},a("path",{d:"M7.048 8.364c-0.001 0.019-0.001 0.037 0 0.056 0.016 0.286 0.26 0.505 0.545 0.489h9.134c0.019 0.001 0.037 0.001 0.056 0 0.286-0.015 0.505-0.26 0.489-0.545v-5.453c0.001-0.019 0.001-0.037 0-0.056-0.016-0.286-0.26-0.505-0.545-0.489h-9.134c-0.019-0.001-0.037-0.001-0.056 0-0.286 0.015-0.505 0.26-0.489 0.545v5.453zM8.138 3.456h8.044v4.363h-8.044v-4.363z"}),a("path",{d:"M19.999 17.089v-5.453c0.001-0.019 0.001-0.037 0-0.056-0.015-0.286-0.26-0.505-0.545-0.489h-11.861c-0.019-0.001-0.037-0.001-0.056 0-0.286 0.015-0.505 0.26-0.489 0.545v5.453c-0.001 0.019-0.001 0.037 0 0.056 0.016 0.286 0.26 0.505 0.545 0.489h11.861c0.019 0.001 0.037 0.001 0.056 0 0.286-0.016 0.505-0.26 0.489-0.546zM18.909 16.544h-10.77v-4.363h10.77v4.363z"}),a("path",{d:"M4.754 4.795c-0.286-1.279-1.554-2.083-2.833-1.797-1.083 0.242-1.853 1.203-1.854 2.312-0.028 1.102 0.725 2.071 1.8 2.318v4.417c-1.28 0.279-2.091 1.543-1.812 2.823 0.198 0.906 0.906 1.614 1.812 1.812h1.091c1.080-0.245 1.841-1.211 1.827-2.318 0.014-1.107-0.747-2.073-1.827-2.318v-4.417c1.279-0.286 2.083-1.555 1.797-2.833zM3.722 14.362c0 0.708-0.573 1.282-1.281 1.282-0 0-0.001 0-0.002 0-0.697-0.015-1.254-0.584-1.254-1.281s0.557-1.267 1.254-1.282c0.708-0.001 1.282 0.573 1.282 1.281zM2.44 6.592c-0.697-0.015-1.254-0.584-1.254-1.281s0.557-1.267 1.254-1.281c0.712-0 1.294 0.569 1.309 1.281-0.015 0.712-0.597 1.282-1.309 1.281z"}),a("path",{d:"M9.229 5.365h3.136c0.301 0 0.545-0.244 0.545-0.545s-0.244-0.545-0.545-0.545h-3.136c-0.301 0-0.545 0.244-0.545 0.545s0.244 0.545 0.545 0.545z"}),a("path",{d:"M15.091 5.91h-5.862c-0.301 0-0.545 0.244-0.545 0.545s0.244 0.546 0.545 0.546h5.863c0.301 0 0.545-0.244 0.545-0.546s-0.245-0.545-0.546-0.545z"}),a("path",{d:"M9.229 14.090h3.136c0.301 0 0.545-0.244 0.545-0.545s-0.244-0.545-0.545-0.545h-3.136c-0.301 0-0.545 0.244-0.545 0.545s0.244 0.545 0.545 0.545z"}),a("path",{d:"M9.229 15.726h5.863c0.301 0 0.545-0.244 0.545-0.545s-0.244-0.545-0.545-0.545h-5.863c-0.301 0-0.545 0.244-0.545 0.545s0.244 0.545 0.545 0.545z"})),icon_list:a("svg",{width:20,height:20},a("path",{d:"M1.44 15.48c-0.76 0-1.44 0.64-1.44 1.4s0.68 1.44 1.44 1.44 1.4-0.68 1.4-1.44c0-0.76-0.64-1.4-1.4-1.4v0z"}),a("path",{d:"M1.44 8.6c-0.76 0-1.44 0.64-1.44 1.4s0.68 1.4 1.44 1.4 1.4-0.64 1.4-1.4c0-0.76-0.64-1.4-1.4-1.4v0z"}),a("path",{d:"M6.56 4.4h12.12c0.72 0 1.32-0.56 1.32-1.28s-0.6-1.32-1.32-1.32h-12.12c-0.72 0-1.32 0.6-1.32 1.32s0.6 1.28 1.32 1.28v0z"}),a("path",{d:"M1.44 1.68c-0.76 0-1.44 0.68-1.44 1.44s0.68 1.4 1.44 1.4 1.4-0.64 1.4-1.4-0.64-1.44-1.4-1.44v0z"}),a("path",{d:"M18.68 8.68h-12.12c-0.72 0-1.32 0.6-1.32 1.32s0.6 1.32 1.32 1.32h12.12c0.72 0 1.32-0.6 1.32-1.32s-0.6-1.32-1.32-1.32v0z"}),a("path",{d:"M18.68 15.56h-12.12c-0.72 0-1.32 0.6-1.32 1.32s0.6 1.32 1.32 1.32h12.12c0.72 0 1.32-0.6 1.32-1.32s-0.6-1.32-1.32-1.32v0z"})),team:a("svg",{width:20,height:20},a("path",{d:"M20 14.124c0-1.17-0.35-2.3-1.013-3.268-0.477-0.696-1.091-1.274-1.803-1.703 0.838-0.794 1.362-1.915 1.362-3.158 0-2.399-1.952-4.351-4.351-4.351-1.423 0-2.755 0.704-3.565 1.859-0.206-0.030-0.416-0.046-0.63-0.046s-0.424 0.016-0.63 0.046c-0.81-1.155-2.142-1.859-3.565-1.859-2.399 0-4.351 1.952-4.351 4.351 0 1.242 0.524 2.364 1.362 3.158-0.712 0.429-1.326 1.008-1.803 1.703-0.663 0.968-1.014 2.098-1.014 3.268v2.42h4.195v1.813h11.611v-1.813h4.194v-2.42h-0zM14.195 2.717c1.807 0 3.277 1.47 3.277 3.278s-1.47 3.277-3.277 3.277c-0.032 0-0.065-0-0.097-0.001 0.002-0.007 0.005-0.014 0.007-0.021 0.056-0.159 0.102-0.322 0.14-0.488 0.003-0.012 0.006-0.024 0.008-0.035 0.010-0.045 0.018-0.090 0.027-0.136 0.004-0.021 0.008-0.043 0.012-0.064 0.007-0.041 0.013-0.081 0.018-0.122 0.004-0.029 0.008-0.057 0.011-0.085 0.004-0.036 0.009-0.072 0.012-0.109s0.006-0.074 0.008-0.111c0.002-0.029 0.004-0.059 0.006-0.088 0.003-0.063 0.004-0.127 0.005-0.19 0-0.004 0-0.009 0-0.014 0-0.002-0-0.005-0-0.007 0-0.065-0.002-0.129-0.005-0.193-0.001-0.019-0.002-0.037-0.003-0.056-0.003-0.054-0.007-0.109-0.012-0.163-0.001-0.012-0.002-0.024-0.004-0.037-0.162-1.568-1.153-2.911-2.582-3.531 0.616-0.692 1.507-1.103 2.45-1.103v0zM8.866 4.732c0.010-0.004 0.021-0.008 0.031-0.011 0.033-0.012 0.066-0.023 0.099-0.033 0.025-0.008 0.050-0.016 0.075-0.023 0.018-0.005 0.037-0.011 0.055-0.016 0.033-0.009 0.066-0.018 0.1-0.026 0.248-0.060 0.507-0.093 0.773-0.093s0.525 0.033 0.773 0.094c0.033 0.008 0.066 0.017 0.099 0.026 0.019 0.005 0.038 0.010 0.056 0.016 0.025 0.007 0.050 0.015 0.075 0.023 0.033 0.011 0.066 0.022 0.1 0.034 0.010 0.004 0.020 0.007 0.030 0.011 1.096 0.405 1.918 1.381 2.104 2.565 0.002 0.009 0.003 0.019 0.004 0.028 0.006 0.040 0.011 0.080 0.015 0.121 0.002 0.015 0.003 0.030 0.005 0.045 0.004 0.037 0.006 0.074 0.009 0.112 0.001 0.016 0.002 0.032 0.003 0.048 0.002 0.048 0.003 0.096 0.004 0.144 0 0.004 0 0.008 0 0.012 0 0.002-0 0.004-0 0.006 0 0.047-0.002 0.093-0.003 0.139-0.001 0.015-0.001 0.029-0.002 0.044-0.002 0.045-0.006 0.089-0.010 0.133-0.002 0.017-0.004 0.034-0.006 0.051-0.003 0.029-0.007 0.057-0.011 0.085-0.003 0.022-0.006 0.044-0.010 0.066-0.005 0.033-0.011 0.066-0.018 0.1-0.006 0.029-0.012 0.059-0.019 0.088-0.004 0.018-0.008 0.035-0.012 0.053-0.010 0.044-0.022 0.087-0.034 0.13-0.005 0.017-0.010 0.034-0.014 0.051-0.008 0.025-0.016 0.049-0.024 0.074-0.006 0.020-0.013 0.039-0.020 0.058-0.007 0.022-0.015 0.044-0.023 0.066-0.014 0.037-0.029 0.074-0.044 0.111-0.007 0.016-0.014 0.032-0.021 0.049-0.013 0.031-0.027 0.061-0.041 0.091l-0.005 0.011c-0.005 0.011-0.010 0.021-0.015 0.032-0.016 0.032-0.032 0.064-0.049 0.096-0.007 0.012-0.013 0.025-0.020 0.037-0 0.001-0.001 0.002-0.001 0.002-0.019 0.034-0.038 0.067-0.058 0.1-0.008 0.013-0.016 0.026-0.024 0.039-0.021 0.035-0.044 0.070-0.066 0.103-0.014 0.021-0.029 0.042-0.043 0.063-0.013 0.018-0.025 0.035-0.038 0.052-0.017 0.023-0.033 0.045-0.050 0.067-0.012 0.015-0.023 0.030-0.035 0.045-0.018 0.022-0.036 0.045-0.055 0.067-0.012 0.014-0.023 0.027-0.035 0.041-0.020 0.022-0.039 0.044-0.059 0.066-0.012 0.013-0.024 0.025-0.036 0.038-0.032 0.034-0.065 0.067-0.099 0.1-0.020 0.019-0.040 0.039-0.061 0.058-0.014 0.013-0.029 0.026-0.043 0.038-0.024 0.021-0.047 0.041-0.071 0.062-0.012 0.011-0.025 0.021-0.037 0.031-0.029 0.024-0.059 0.047-0.089 0.070-0.008 0.006-0.016 0.012-0.025 0.019-0.545 0.405-1.221 0.646-1.951 0.646s-1.406-0.24-1.951-0.646c-0.008-0.006-0.016-0.012-0.024-0.018-0.030-0.023-0.060-0.046-0.089-0.070-0.012-0.010-0.025-0.020-0.037-0.030-0.024-0.021-0.048-0.041-0.072-0.062-0.014-0.013-0.029-0.025-0.043-0.038-0.021-0.019-0.041-0.038-0.061-0.058-0.034-0.033-0.067-0.066-0.1-0.101-0.012-0.012-0.024-0.025-0.036-0.037-0.020-0.022-0.039-0.044-0.058-0.066-0.012-0.013-0.024-0.027-0.035-0.040-0.019-0.022-0.037-0.045-0.055-0.067-0.012-0.015-0.024-0.030-0.035-0.045-0.017-0.022-0.034-0.044-0.050-0.067-0.013-0.017-0.025-0.035-0.037-0.053-0.015-0.021-0.029-0.041-0.044-0.062-0.023-0.034-0.045-0.069-0.066-0.104-0.008-0.013-0.016-0.026-0.023-0.039-0.020-0.034-0.040-0.067-0.058-0.102-0.007-0.013-0.013-0.025-0.020-0.038-0.017-0.032-0.034-0.064-0.050-0.096-0.006-0.012-0.011-0.023-0.017-0.035-0.001-0.002-0.002-0.003-0.003-0.005-0.015-0.031-0.029-0.063-0.043-0.095-0.007-0.015-0.013-0.030-0.020-0.046-0.015-0.038-0.030-0.075-0.045-0.113-0.008-0.021-0.015-0.041-0.022-0.062s-0.015-0.043-0.022-0.064c-0.008-0.023-0.015-0.046-0.022-0.069-0.010-0.035-0.020-0.070-0.030-0.105-0.007-0.025-0.013-0.049-0.019-0.074-0.005-0.020-0.009-0.039-0.014-0.059-0.005-0.024-0.011-0.048-0.016-0.073-0.007-0.038-0.014-0.076-0.020-0.114-0.003-0.020-0.006-0.041-0.009-0.062-0.004-0.030-0.008-0.061-0.012-0.092-0.002-0.015-0.004-0.030-0.005-0.046-0.004-0.046-0.008-0.091-0.010-0.137-0.001-0.013-0.001-0.026-0.002-0.039-0.002-0.049-0.004-0.098-0.004-0.148 0-0.053 0.002-0.105 0.004-0.158 0-0.014 0.002-0.028 0.003-0.042 0.002-0.039 0.005-0.079 0.009-0.118 0.001-0.014 0.003-0.027 0.004-0.041 0.005-0.042 0.010-0.084 0.016-0.126 0.001-0.008 0.002-0.016 0.004-0.024 0.186-1.185 1.008-2.161 2.105-2.566v0zM2.528 5.995c0-1.807 1.47-3.278 3.277-3.278 0.943 0 1.834 0.411 2.45 1.103-1.43 0.621-2.421 1.964-2.582 3.533-0.001 0.011-0.002 0.021-0.003 0.032-0.005 0.056-0.009 0.112-0.013 0.168-0.001 0.017-0.002 0.034-0.003 0.052-0.003 0.067-0.005 0.135-0.005 0.202s0.002 0.137 0.005 0.205c0.001 0.027 0.003 0.055 0.005 0.082 0.003 0.039 0.005 0.079 0.009 0.118 0.003 0.035 0.007 0.070 0.011 0.104 0.004 0.030 0.007 0.060 0.012 0.090 0.005 0.040 0.011 0.079 0.018 0.118 0.004 0.023 0.008 0.046 0.013 0.070 0.008 0.044 0.016 0.088 0.025 0.131 0.003 0.014 0.007 0.028 0.010 0.043 0.036 0.161 0.082 0.319 0.136 0.473 0.003 0.010 0.007 0.020 0.010 0.030-0.032 0.001-0.065 0.001-0.097 0.001-1.807-0-3.277-1.47-3.277-3.277v0zM5.095 12.841c-0.012 0.019-0.023 0.038-0.035 0.056-0.025 0.040-0.049 0.079-0.072 0.12-0.013 0.022-0.026 0.045-0.039 0.067-0.021 0.037-0.042 0.075-0.062 0.112-0.013 0.024-0.025 0.047-0.038 0.071-0.019 0.037-0.039 0.075-0.057 0.113-0.012 0.024-0.024 0.048-0.035 0.071-0.019 0.040-0.037 0.080-0.055 0.12-0.010 0.022-0.020 0.044-0.030 0.065-0.021 0.048-0.041 0.097-0.060 0.145-0.006 0.014-0.012 0.028-0.018 0.043-0.025 0.063-0.048 0.127-0.071 0.191-0.005 0.015-0.010 0.029-0.015 0.044-0.017 0.049-0.034 0.098-0.049 0.148-0.007 0.023-0.014 0.046-0.021 0.069-0.013 0.042-0.025 0.084-0.037 0.127-0.007 0.025-0.014 0.051-0.020 0.076-0.010 0.041-0.021 0.082-0.030 0.122-0.006 0.026-0.012 0.052-0.018 0.078-0.009 0.041-0.018 0.083-0.026 0.125-0.005 0.025-0.010 0.050-0.015 0.075-0.008 0.046-0.016 0.091-0.023 0.137-0.003 0.021-0.007 0.043-0.011 0.064-0.010 0.067-0.019 0.134-0.027 0.202 0 0.001-0 0.002-0 0.002-0.007 0.062-0.013 0.123-0.018 0.185h-3.139v-1.346c0-1.839 1.057-3.491 2.714-4.276 0.604 0.317 1.29 0.498 2.017 0.498 0.211 0 0.422-0.015 0.631-0.046 0.033 0.047 0.066 0.093 0.1 0.138 0.012 0.015 0.024 0.030 0.036 0.045 0.034 0.043 0.068 0.086 0.104 0.128 0.014 0.017 0.029 0.034 0.044 0.051 0.033 0.038 0.067 0.076 0.102 0.113 0.018 0.020 0.036 0.039 0.055 0.058 0.031 0.032 0.064 0.065 0.096 0.096 0.012 0.012 0.024 0.024 0.036 0.036-0.047 0.028-0.093 0.057-0.139 0.087-0.008 0.005-0.015 0.010-0.022 0.015-0.046 0.030-0.091 0.060-0.136 0.091-0.016 0.011-0.031 0.021-0.046 0.032-0.040 0.028-0.079 0.057-0.119 0.086-0.012 0.009-0.025 0.018-0.037 0.028-0.050 0.038-0.099 0.076-0.148 0.116-0.011 0.008-0.021 0.017-0.032 0.026-0.039 0.032-0.077 0.064-0.115 0.097-0.015 0.013-0.029 0.025-0.044 0.038-0.038 0.034-0.075 0.067-0.113 0.102-0.010 0.009-0.020 0.018-0.029 0.027-0.046 0.043-0.091 0.087-0.135 0.131-0.012 0.012-0.023 0.023-0.034 0.035-0.034 0.035-0.067 0.070-0.1 0.105-0.013 0.014-0.026 0.028-0.039 0.043-0.037 0.041-0.074 0.081-0.11 0.123-0.006 0.006-0.012 0.013-0.017 0.019-0.041 0.048-0.081 0.097-0.121 0.146-0.011 0.014-0.022 0.028-0.033 0.042-0.029 0.038-0.059 0.076-0.088 0.115-0.011 0.015-0.023 0.030-0.034 0.045-0.038 0.052-0.075 0.104-0.111 0.157-0.039 0.057-0.076 0.114-0.113 0.172v0zM5.268 17.283v-1.346c0-0.060 0.001-0.119 0.003-0.178 0.001-0.020 0.002-0.039 0.003-0.058 0.002-0.039 0.004-0.079 0.007-0.118 0.002-0.024 0.004-0.048 0.007-0.071 0.003-0.035 0.006-0.070 0.010-0.104 0.003-0.025 0.007-0.050 0.010-0.076 0.004-0.033 0.008-0.065 0.013-0.098 0.004-0.026 0.009-0.052 0.013-0.078 0.005-0.031 0.010-0.063 0.016-0.094 0.005-0.027 0.011-0.053 0.016-0.079 0.006-0.030 0.012-0.061 0.019-0.091 0.006-0.027 0.013-0.053 0.019-0.079 0.007-0.030 0.014-0.059 0.022-0.089 0.007-0.027 0.015-0.053 0.023-0.080 0.008-0.029 0.016-0.058 0.025-0.086 0.008-0.027 0.017-0.053 0.026-0.079 0.009-0.028 0.018-0.056 0.028-0.084 0.009-0.026 0.019-0.053 0.029-0.079 0.010-0.028 0.020-0.055 0.030-0.082s0.021-0.052 0.031-0.078c0.011-0.027 0.022-0.054 0.033-0.081s0.023-0.051 0.034-0.077c0.012-0.026 0.024-0.053 0.036-0.079s0.025-0.051 0.037-0.076c0.013-0.026 0.025-0.051 0.039-0.077s0.026-0.050 0.040-0.075c0.014-0.025 0.027-0.050 0.041-0.075s0.028-0.049 0.043-0.073c0.014-0.025 0.029-0.049 0.044-0.074s0.030-0.048 0.046-0.072c0.015-0.024 0.031-0.048 0.046-0.072s0.032-0.047 0.048-0.071c0.016-0.024 0.032-0.047 0.049-0.070s0.034-0.046 0.051-0.069c0.017-0.023 0.034-0.046 0.051-0.068s0.036-0.045 0.054-0.067c0.018-0.022 0.036-0.044 0.054-0.066s0.037-0.044 0.056-0.065 0.038-0.043 0.056-0.064 0.039-0.042 0.058-0.063c0.019-0.021 0.039-0.042 0.058-0.062s0.040-0.041 0.061-0.061c0.020-0.020 0.041-0.040 0.061-0.060s0.041-0.039 0.063-0.059c0.021-0.020 0.042-0.039 0.063-0.058s0.043-0.038 0.065-0.057c0.022-0.019 0.044-0.038 0.066-0.056s0.045-0.036 0.067-0.054c0.023-0.018 0.045-0.036 0.068-0.054s0.046-0.035 0.069-0.052c0.023-0.017 0.047-0.035 0.071-0.052s0.047-0.033 0.071-0.050c0.024-0.016 0.049-0.033 0.073-0.049s0.048-0.031 0.072-0.047c0.025-0.016 0.050-0.032 0.075-0.047s0.049-0.029 0.074-0.044c0.026-0.015 0.052-0.030 0.078-0.045 0.025-0.014 0.050-0.028 0.075-0.041 0.027-0.014 0.054-0.028 0.080-0.042 0.025-0.013 0.051-0.026 0.077-0.039 0.020-0.010 0.041-0.020 0.061-0.029 0.603 0.317 1.289 0.498 2.017 0.498s1.414-0.18 2.017-0.498c0.021 0.010 0.041 0.019 0.061 0.029 0.026 0.013 0.052 0.026 0.078 0.039s0.053 0.028 0.079 0.042c0.026 0.014 0.051 0.028 0.077 0.042s0.052 0.029 0.077 0.044c0.025 0.015 0.050 0.030 0.075 0.045s0.050 0.031 0.075 0.047c0.025 0.015 0.049 0.031 0.073 0.047s0.048 0.032 0.072 0.049c0.024 0.017 0.048 0.033 0.071 0.050s0.047 0.034 0.070 0.051c0.023 0.017 0.047 0.035 0.069 0.053s0.046 0.035 0.068 0.053c0.022 0.018 0.045 0.036 0.067 0.055s0.044 0.037 0.066 0.055c0.022 0.019 0.043 0.038 0.065 0.057s0.042 0.039 0.063 0.058c0.021 0.020 0.042 0.039 0.063 0.059s0.041 0.040 0.061 0.060c0.020 0.021 0.041 0.041 0.061 0.062s0.039 0.041 0.058 0.062c0.020 0.021 0.039 0.043 0.058 0.064s0.038 0.043 0.056 0.064c0.019 0.022 0.038 0.043 0.056 0.066s0.036 0.043 0.054 0.065c0.018 0.022 0.036 0.045 0.054 0.068s0.034 0.045 0.051 0.067c0.017 0.023 0.034 0.046 0.051 0.070s0.032 0.046 0.049 0.070c0.016 0.023 0.033 0.047 0.048 0.071s0.031 0.047 0.046 0.071c0.015 0.024 0.031 0.048 0.046 0.072s0.029 0.049 0.044 0.073c0.014 0.024 0.029 0.049 0.043 0.074s0.027 0.050 0.041 0.075c0.013 0.025 0.027 0.050 0.040 0.075s0.026 0.051 0.038 0.077c0.013 0.025 0.025 0.050 0.037 0.076s0.024 0.052 0.036 0.079c0.012 0.026 0.023 0.051 0.034 0.077s0.022 0.054 0.033 0.080c0.011 0.026 0.021 0.052 0.032 0.079s0.020 0.055 0.030 0.082c0.010 0.026 0.020 0.052 0.029 0.079 0.010 0.028 0.019 0.056 0.028 0.084 0.009 0.027 0.017 0.053 0.026 0.079 0.009 0.029 0.017 0.058 0.025 0.087 0.008 0.026 0.015 0.053 0.022 0.079 0.008 0.029 0.015 0.059 0.022 0.089 0.006 0.027 0.013 0.053 0.019 0.079 0.007 0.030 0.013 0.061 0.019 0.091 0.005 0.026 0.011 0.053 0.016 0.079 0.006 0.031 0.011 0.062 0.016 0.094 0.004 0.026 0.009 0.052 0.013 0.079 0.005 0.032 0.009 0.065 0.013 0.097 0.003 0.025 0.007 0.051 0.010 0.076 0.004 0.034 0.007 0.069 0.010 0.104 0.002 0.024 0.005 0.047 0.007 0.071 0.003 0.040 0.005 0.079 0.006 0.119 0.001 0.019 0.003 0.039 0.003 0.058 0.002 0.059 0.003 0.119 0.003 0.178v1.346h-9.463zM15.787 15.47c-0.010-0.13-0.026-0.261-0.045-0.39-0.003-0.021-0.007-0.041-0.010-0.061-0.008-0.047-0.015-0.094-0.024-0.14-0.005-0.024-0.010-0.049-0.014-0.074-0.008-0.042-0.017-0.085-0.027-0.127-0.006-0.025-0.012-0.051-0.018-0.076-0.010-0.041-0.020-0.083-0.031-0.124-0.007-0.025-0.013-0.050-0.020-0.075-0.012-0.043-0.024-0.086-0.037-0.128-0.007-0.023-0.013-0.045-0.020-0.067-0.016-0.050-0.033-0.101-0.050-0.151-0.005-0.014-0.009-0.028-0.014-0.042-0.023-0.064-0.047-0.128-0.072-0.191-0.005-0.013-0.011-0.027-0.017-0.041-0.020-0.049-0.040-0.098-0.061-0.147-0.009-0.021-0.019-0.043-0.029-0.064-0.018-0.041-0.037-0.081-0.056-0.121-0.011-0.024-0.023-0.047-0.034-0.070-0.019-0.038-0.038-0.076-0.058-0.114-0.012-0.023-0.025-0.047-0.038-0.071-0.021-0.038-0.041-0.075-0.063-0.113-0.013-0.022-0.025-0.045-0.038-0.067-0.023-0.040-0.048-0.080-0.073-0.12-0.012-0.019-0.022-0.038-0.034-0.056-0.037-0.058-0.074-0.115-0.113-0.172-0.037-0.053-0.074-0.105-0.111-0.157-0.011-0.015-0.022-0.029-0.033-0.045-0.029-0.039-0.058-0.077-0.088-0.115-0.011-0.014-0.021-0.028-0.032-0.041-0.040-0.049-0.080-0.098-0.121-0.146-0.005-0.006-0.011-0.012-0.016-0.018-0.036-0.042-0.073-0.084-0.111-0.125-0.013-0.014-0.026-0.028-0.039-0.042-0.033-0.036-0.067-0.071-0.101-0.105-0.011-0.012-0.022-0.023-0.034-0.034-0.044-0.044-0.089-0.088-0.135-0.131-0.010-0.009-0.019-0.018-0.029-0.027-0.037-0.035-0.075-0.069-0.113-0.102-0.015-0.013-0.029-0.025-0.044-0.038-0.038-0.033-0.076-0.065-0.115-0.097-0.011-0.009-0.021-0.018-0.032-0.026-0.048-0.039-0.098-0.078-0.148-0.116-0.012-0.009-0.025-0.018-0.037-0.028-0.039-0.029-0.079-0.057-0.119-0.085-0.015-0.011-0.031-0.022-0.047-0.033-0.044-0.031-0.089-0.061-0.134-0.090-0.008-0.005-0.016-0.011-0.024-0.016-0.046-0.029-0.092-0.058-0.138-0.086 0.012-0.012 0.023-0.024 0.035-0.035 0.033-0.032 0.066-0.065 0.098-0.098 0.018-0.019 0.036-0.037 0.054-0.056 0.035-0.038 0.070-0.076 0.103-0.115 0.014-0.017 0.029-0.033 0.043-0.050 0.036-0.043 0.071-0.086 0.105-0.13 0.011-0.014 0.023-0.029 0.034-0.043 0.034-0.046 0.068-0.092 0.101-0.138 0.21 0.031 0.421 0.046 0.631 0.046 0.728 0 1.414-0.18 2.017-0.498 1.657 0.785 2.714 2.436 2.714 4.276v1.346h-3.139z"})),social_share:a("svg",{width:20,height:20},a("path",{d:"M13.751 4.999l1.25 1.25-8.753 8.753-1.25-1.25 8.753-8.753z"}),a("path",{d:"M13.749 12.502l-1.874-1.874 1.255-1.256 0.619 0.628 3.749-3.749-3.749-3.749-3.749 3.749 0.628 0.619-1.256 1.255-1.874-1.874 6.251-6.251 6.251 6.251-6.251 6.251z"}),a("path",{d:"M6.251 20l-6.251-6.251 6.251-6.251 1.874 1.874-1.255 1.256-0.619-0.628-3.749 3.749 3.749 3.749 3.749-3.749-0.628-0.619 1.256-1.256 1.874 1.874-6.251 6.251z"})),restaurant_menu:a("svg",{width:20,height:20},a("path",{d:"M0 2.136v15.729h20v-15.729h-20zM18.828 7.038h-8.242v-3.73h8.242v3.73zM1.172 3.307h8.242v13.385h-8.242v-13.385zM10.586 16.693v-8.483h8.242v8.483h-8.242z"}),a("path",{d:"M2.742 4.661v4.492c0 1.188 0.826 2.185 1.934 2.45v2.563h-0.898v1.172h2.969v-1.172h-0.898v-2.563c1.108-0.265 1.934-1.263 1.934-2.45v-4.492h-5.039zM6.61 9.154c0 0.743-0.605 1.348-1.348 1.348s-1.348-0.604-1.348-1.348v-3.32h2.695v3.32z"}),a("path",{d:"M13.050 4.661h3.275v1.172h-3.275v-1.172z"}),a("path",{d:"M12.109 9.414h5.156v1.172h-5.156v-1.172z"}),a("path",{d:"M12.109 11.79h5.156v1.172h-5.156v-1.172z"}),a("path",{d:"M12.109 14.167h5.156v1.172h-5.156v-1.172z"}))};t.a=r},function(e,t,n){var a=n(76),r="object"==typeof self&&self&&self.Object===Object&&self,o=a||r||Function("return this")();e.exports=o},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){function a(e,t){if((e=i(e))<1||e>l)return[];var n=s,a=u(e,s);t=o(t),e-=s;for(var c=r(a,t);++n<e;)t(n);return c}var r=n(85),o=n(321),i=n(99),l=9007199254740991,s=4294967295,u=Math.min;e.exports=a},function(e,t,n){function a(e,t){var n=o(e,t);return r(n)?n:void 0}var r=n(157),o=n(162);e.exports=a},function(e,t,n){function a(e){return null==e?void 0===e?s:l:u&&u in Object(e)?o(e):i(e)}var r=n(12),o=n(158),i=n(159),l="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=a},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var a="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,r=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===a};e.exports=n(282)(r,!0)}else e.exports=n(283)()}).call(t,n(2))},function(e,t,n){var a=n(4),r=a.Symbol;e.exports=r},function(e,t,n){function a(e,t){return r(e)?e:o(e,t)?[e]:i(l(e))}var r=n(6),o=n(53),i=n(197),l=n(91);e.exports=a},function(e,t,n){function a(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}var r=n(38),o=1/0;e.exports=a},function(e,t,n){function a(e,t,n,a){var i=!n;n||(n={});for(var l=-1,s=t.length;++l<s;){var u=t[l],c=a?a(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),i?o(n,u,c):r(n,u,c)}return n}var r=n(40),o=n(94);e.exports=a},function(e,t,n){"use strict";function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;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={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=a(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)o.call(n,c)&&(s[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)i.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},function(e,t,n){"use strict";var a=["fab fa-buromobelexperte","fas fa-burn","fas fa-bullseye","fas fa-bullhorn","fas fa-building","far fa-building","fas fa-bug","fab fa-btc","fas fa-briefcase-medical","fas fa-briefcase","fas fa-braille","fas fa-boxes","fas fa-box-open","fas fa-box","fas fa-bowling-ball","fas fa-bookmark","far fa-bookmark","fas fa-book","fas fa-bomb","fas fa-bolt","fas fa-bold","fab fa-bluetooth-b","fab fa-bluetooth","fab fa-blogger-b","fab fa-blogger","fas fa-blind","fab fa-blackberry","fab fa-black-tie","fab fa-bity","fab fa-bitcoin","fab fa-bitbucket","fas fa-birthday-cake","fas fa-binoculars","fab fa-bimobject","fas fa-bicycle","fas fa-bell-slash","far fa-bell-slash","fas fa-bell","far fa-bell","fab fa-behance-square","fab fa-behance","fas fa-beer","fas fa-bed","fas fa-battery-three-quarters","fas fa-battery-quarter","fas fa-battery-half","fas fa-battery-full","fas fa-battery-empty","fas fa-bath","fas fa-basketball-ball","fas fa-baseball-ball","fas fa-bars","fas fa-barcode","fab fa-bandcamp","fas fa-band-aid","fas fa-ban","fas fa-balance-scale","fas fa-backward","fab fa-aws","fab fa-aviato","fab fa-avianex","fab fa-autoprefixer","fas fa-audio-description","fab fa-audible","fas fa-at","fab fa-asymmetrik","fas fa-asterisk","fas fa-assistive-listening-systems","fas fa-arrows-alt-v","fas fa-arrows-alt-h","fas fa-arrows-alt","fas fa-arrow-up","fas fa-arrow-right","fas fa-arrow-left","fas fa-arrow-down","fas fa-arrow-circle-up","fas fa-arrow-circle-right","fas fa-arrow-circle-left","fas fa-arrow-circle-down","fas fa-arrow-alt-circle-up","far fa-arrow-alt-circle-up","fas fa-arrow-alt-circle-right","far fa-arrow-alt-circle-right","fas fa-arrow-alt-circle-left","far fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-down","far fa-arrow-alt-circle-down","fas fa-archive","fab fa-apple-pay","fab fa-apple","fab fa-apper","fab fa-app-store-ios","fab fa-app-store","fab fa-angular","fab fa-angrycreative","fas fa-angle-up","fas fa-angle-right","fas fa-angle-left","fas fa-angle-down","fas fa-angle-double-up","fas fa-angle-double-right","fas fa-angle-double-left","fas fa-angle-double-down","fab fa-angellist","fab fa-android","fas fa-anchor","fab fa-amilia","fas fa-american-sign-language-interpreting","fas fa-ambulance","fab fa-amazon-pay","fab fa-amazon","fas fa-allergies","fas fa-align-right","fas fa-align-left","fas fa-align-justify","fas fa-align-center","fab fa-algolia","fab fa-affiliatetheme","fab fa-adversal","fab fa-adn","fas fa-adjust","fas fa-address-card","far fa-address-card","fas fa-address-book","far fa-address-book","fab fa-accusoft","fab fa-accessible-icon","fab fa-500px","fab fa-youtube-square","fab fa-youtube","fab fa-yoast","fas fa-yen-sign","fab fa-yelp","fab fa-yandex-international","fab fa-yandex","fab fa-yahoo","fab fa-y-combinator","fab fa-xing-square","fab fa-xing","fab fa-xbox","fas fa-x-ray","fas fa-wrench","fab fa-wpforms","fab fa-wpexplorer","fab fa-wpbeginner","fab fa-wordpress-simple","fab fa-wordpress","fas fa-won-sign","fab fa-wolf-pack-battalion","fas fa-wine-glass","fab fa-windows","fas fa-window-restore","far fa-window-restore","fas fa-window-minimize","far fa-window-minimize","fas fa-window-maximize","far fa-window-maximize","fas fa-window-close","far fa-window-close","fab fa-wikipedia-w","fas fa-wifi","fab fa-whmcs","fas fa-wheelchair","fab fa-whatsapp-square","fab fa-whatsapp","fab fa-weixin","fas fa-weight","fab fa-weibo","fas fa-warehouse","fab fa-vuejs","fas fa-volume-up","fas fa-volume-off","fas fa-volume-down","fas fa-volleyball-ball","fab fa-vnv","fab fa-vk","fab fa-vine","fab fa-vimeo-v","fab fa-vimeo-square","fab fa-vimeo","fas fa-video-slash","fas fa-video","fab fa-viber","fas fa-vials","fas fa-vial","fab fa-viadeo-square","fab fa-viadeo","fab fa-viacoin","fas fa-venus-mars","fas fa-venus-double","fas fa-venus","fab fa-vaadin","fas fa-utensils","fas fa-utensil-spoon","fab fa-ussunnah","fas fa-users-cog","fas fa-users","fas fa-user-times","fas fa-user-tie","fas fa-user-tag","fas fa-user-slash","fas fa-user-shield","fas fa-user-secret","fas fa-user-plus","fas fa-user-ninja","fas fa-user-minus","fas fa-user-md","fas fa-user-lock","fas fa-user-graduate","fas fa-user-friends","fas fa-user-edit","fas fa-user-cog","fas fa-user-clock","fas fa-user-circle","far fa-user-circle","fas fa-user-check","fas fa-user-astronaut","fas fa-user-alt-slash","fas fa-user-alt","fas fa-user","far fa-user","fab fa-usb","fas fa-upload","fab fa-untappd","fas fa-unlock-alt","fas fa-unlock","fas fa-unlink","fas fa-university","fas fa-universal-access","fab fa-uniregistry","fas fa-undo-alt","fas fa-undo","fas fa-underline","fas fa-umbrella","fab fa-uikit","fab fa-uber","fab fa-typo3","fab fa-twitter-square","fab fa-twitter","fab fa-twitch","fas fa-tv","fab fa-tumblr-square","fab fa-tumblr","fas fa-tty","fas fa-truck-moving","fas fa-truck-loading","fas fa-truck","fas fa-trophy","fab fa-tripadvisor","fab fa-trello","fas fa-tree","fas fa-trash-alt","far fa-trash-alt","fas fa-trash","fas fa-transgender-alt","fas fa-transgender","fas fa-train","fas fa-trademark","fab fa-trade-federation","fas fa-toggle-on","fas fa-toggle-off","fas fa-tint","fas fa-times-circle","far fa-times-circle","fas fa-times","fas fa-ticket-alt","fas fa-thumbtack","fas fa-thumbs-up","far fa-thumbs-up","fas fa-thumbs-down","far fa-thumbs-down","fas fa-thermometer-three-quarters","fas fa-thermometer-quarter","fas fa-thermometer-half","fas fa-thermometer-full","fas fa-thermometer-empty","fas fa-thermometer","fab fa-themeisle","fas fa-th-list","fas fa-th-large","fas fa-th","fas fa-text-width","fas fa-text-height","fas fa-terminal","fab fa-tencent-weibo","fab fa-telegram-plane","fab fa-telegram","fab fa-teamspeak","fas fa-taxi","fas fa-tasks","fas fa-tape","fas fa-tags","fas fa-tag","fas fa-tachometer-alt","fas fa-tablets","fas fa-tablet-alt","fas fa-tablet","fas fa-table-tennis","fas fa-table","fas fa-syringe","fas fa-sync-alt","fas fa-sync","fab fa-supple","fas fa-superscript","fab fa-superpowers","fas fa-sun","far fa-sun","fas fa-suitcase","fas fa-subway","fas fa-subscript","fab fa-stumbleupon-circle","fab fa-stumbleupon","fab fa-studiovinari","fab fa-stripe-s","fab fa-stripe","fas fa-strikethrough","fas fa-street-view","fab fa-strava","fas fa-stopwatch","fas fa-stop-circle","far fa-stop-circle","fas fa-stop","fas fa-sticky-note","far fa-sticky-note","fab fa-sticker-mule","fas fa-stethoscope","fas fa-step-forward","fas fa-step-backward","fab fa-steam-symbol","fab fa-steam-square","fab fa-steam","fab fa-staylinked","fas fa-star-half","far fa-star-half","fa fa-star","fas fa-star","far fa-star","fab fa-stack-overflow","fab fa-stack-exchange","fas fa-square-full","fas fa-square","far fa-square","fab fa-spotify","fas fa-spinner","fab fa-speakap","fas fa-space-shuttle","fab fa-soundcloud","fas fa-sort-up","fas fa-sort-numeric-up","fas fa-sort-numeric-down","fas fa-sort-down","fas fa-sort-amount-up","fas fa-sort-amount-down","fas fa-sort-alpha-up","fas fa-sort-alpha-down","fas fa-sort","fas fa-snowflake","far fa-snowflake","fab fa-snapchat-square","fab fa-snapchat-ghost","fab fa-snapchat","fas fa-smoking","fas fa-smile","far fa-smile","fab fa-slideshare","fas fa-sliders-h","fab fa-slack-hash","fab fa-slack","fab fa-skype","fab fa-skyatlas","fab fa-sith","fas fa-sitemap","fab fa-sistrix","fab fa-simplybuilt","fas fa-signal","fas fa-sign-out-alt","fas fa-sign-language","fas fa-sign-in-alt","fas fa-sign","fas fa-shower","fas fa-shopping-cart","fas fa-shopping-basket","fas fa-shopping-bag","fab fa-shirtsinbulk","fas fa-shipping-fast","fas fa-ship","fas fa-shield-alt","fas fa-shekel-sign","fas fa-share-square","far fa-share-square","fas fa-share-alt-square","fas fa-share-alt","fas fa-share","fab fa-servicestack","fas fa-server","fab fa-sellsy","fab fa-sellcast","fas fa-seedling","fab fa-searchengin","fas fa-search-plus","fas fa-search-minus","fas fa-search","fab fa-scribd","fab fa-schlix","fas fa-save","far fa-save","fab fa-sass","fab fa-safari","fas fa-rupee-sign","fas fa-ruble-sign","fas fa-rss-square","fas fa-rss","fab fa-rockrms","fab fa-rocketchat","fas fa-rocket","fas fa-road","fas fa-ribbon","fas fa-retweet","fab fa-resolving","fab fa-researchgate","fab fa-replyd","fas fa-reply-all","fas fa-reply","fab fa-renren","fas fa-registered","far fa-registered","fas fa-redo-alt","fas fa-redo","fab fa-reddit-square","fab fa-reddit-alien","fab fa-reddit","fab fa-red-river","fas fa-recycle","fab fa-rebel","fab fa-readme","fab fa-react","fab fa-ravelry","fas fa-random","fab fa-r-project","fas fa-quote-right","fas fa-quote-left","fab fa-quora","fab fa-quinscape","fas fa-quidditch","fas fa-question-circle","far fa-question-circle","fas fa-question","fas fa-qrcode","fab fa-qq","fab fa-python","fas fa-puzzle-piece","fab fa-pushed","fab fa-product-hunt","fas fa-procedures","fas fa-print","fas fa-prescription-bottle-alt","fas fa-prescription-bottle","fas fa-power-off","fas fa-pound-sign","fas fa-portrait","fas fa-poo","fas fa-podcast","fas fa-plus-square","far fa-plus-square","fas fa-plus-circle","fas fa-plus","fas fa-plug","fab fa-playstation","fas fa-play-circle","far fa-play-circle","fas fa-play","fas fa-plane","fab fa-pinterest-square","fab fa-pinterest-p","fab fa-pinterest","fas fa-pills","fas fa-piggy-bank","fab fa-pied-piper-pp","fab fa-pied-piper-hat","fab fa-pied-piper-alt","fab fa-pied-piper","fab fa-php","fas fa-phone-volume","fas fa-phone-square","fas fa-phone-slash","fas fa-phone","fab fa-phoenix-squadron","fab fa-phoenix-framework","fab fa-phabricator","fab fa-periscope","fas fa-percent","fas fa-people-carry","fas fa-pencil-alt","fas fa-pen-square","fab fa-paypal","fas fa-paw","fas fa-pause-circle","far fa-pause-circle","fas fa-pause","fab fa-patreon","fas fa-paste","fas fa-paragraph","fas fa-parachute-box","fas fa-paperclip","fas fa-paper-plane","far fa-paper-plane","fas fa-pallet","fab fa-palfed","fas fa-paint-brush","fab fa-pagelines","fab fa-page4","fas fa-outdent","fab fa-osi","fab fa-optin-monster","fab fa-opera","fab fa-openid","fab fa-opencart","fab fa-old-republic","fab fa-odnoklassniki-square","fab fa-odnoklassniki","fas fa-object-ungroup","far fa-object-ungroup","fas fa-object-group","far fa-object-group","fab fa-nutritionix","fab fa-ns8","fab fa-npm","fas fa-notes-medical","fab fa-node-js","fab fa-node","fab fa-nintendo-switch","fas fa-newspaper","far fa-newspaper","fas fa-neuter","fab fa-napster","fas fa-music","fas fa-mouse-pointer","fas fa-motorcycle","fas fa-moon","far fa-moon","fas fa-money-bill-alt","far fa-money-bill-alt","fab fa-monero","fab fa-modx","fas fa-mobile-alt","fas fa-mobile","fab fa-mizuni","fab fa-mixcloud","fab fa-mix","fas fa-minus-square","far fa-minus-square","fas fa-minus-circle","fas fa-minus","fab fa-microsoft","fas fa-microphone-slash","fas fa-microphone","fas fa-microchip","fas fa-mercury","fas fa-meh","far fa-meh","fab fa-meetup","fab fa-medrt","fas fa-medkit","fab fa-medium-m","fab fa-medium","fab fa-medapps","fab fa-maxcdn","fab fa-mastodon","fas fa-mars-stroke-v","fas fa-mars-stroke-h","fas fa-mars-stroke","fas fa-mars-double","fas fa-mars","fas fa-map-signs","fas fa-map-pin","fas fa-map-marker-alt","fas fa-map-marker","fas fa-map","far fa-map","fab fa-mandalorian","fas fa-male","fas fa-magnet","fas fa-magic","fab fa-magento","fab fa-lyft","fas fa-low-vision","fas fa-long-arrow-alt-up","fas fa-long-arrow-alt-right","fas fa-long-arrow-alt-left","fas fa-long-arrow-alt-down","fas fa-lock-open","fas fa-lock","fas fa-location-arrow","fas fa-list-ul","fas fa-list-ol","fas fa-list-alt","far fa-list-alt","fas fa-list","fas fa-lira-sign","fab fa-linux","fab fa-linode","fab fa-linkedin-in","fab fa-linkedin","fas fa-link","fab fa-line","fas fa-lightbulb","far fa-lightbulb","fas fa-life-ring","far fa-life-ring","fas fa-level-up-alt","fas fa-level-down-alt","fab fa-less","fas fa-lemon","far fa-lemon","fab fa-leanpub","fas fa-leaf","fab fa-lastfm-square","fab fa-lastfm","fab fa-laravel","fas fa-laptop","fas fa-language","fab fa-korvue","fab fa-kickstarter-k","fab fa-kickstarter","fab fa-keycdn","fas fa-keyboard","far fa-keyboard","fab fa-keybase","fas fa-key","fab fa-jsfiddle","fab fa-js-square","fab fa-js","fab fa-joomla","fab fa-joget","fab fa-jenkins","fab fa-jedi-order","fab fa-java","fab fa-itunes-note","fab fa-itunes","fas fa-italic","fab fa-ioxhost","fab fa-internet-explorer","fab fa-instagram","fas fa-info-circle","fas fa-info","fas fa-industry","fas fa-indent","fas fa-inbox","fab fa-imdb","fas fa-images","far fa-images","fas fa-image","far fa-image","fas fa-id-card-alt","fas fa-id-card","far fa-id-card","fas fa-id-badge","far fa-id-badge","fas fa-i-cursor","fab fa-hubspot","fab fa-html5","fab fa-houzz","fas fa-hourglass-start","fas fa-hourglass-half","fas fa-hourglass-end","fas fa-hourglass","far fa-hourglass","fab fa-hotjar","fas fa-hospital-symbol","fas fa-hospital-alt","fas fa-hospital","far fa-hospital","fab fa-hooli","fas fa-home","fas fa-hockey-puck","fas fa-history","fab fa-hire-a-helper","fab fa-hips","fas fa-heartbeat","fas fa-heart","far fa-heart","fas fa-headphones","fas fa-heading","fas fa-hdd","far fa-hdd","fas fa-hashtag","fas fa-handshake","far fa-handshake","fas fa-hands-helping","fas fa-hands","fas fa-hand-spock","far fa-hand-spock","fas fa-hand-scissors","far fa-hand-scissors","fas fa-hand-rock","far fa-hand-rock","fas fa-hand-pointer","far fa-hand-pointer","fas fa-hand-point-up","far fa-hand-point-up","fas fa-hand-point-right","far fa-hand-point-right","fas fa-hand-point-left","far fa-hand-point-left","fas fa-hand-point-down","far fa-hand-point-down","fas fa-hand-peace","far fa-hand-peace","fas fa-hand-paper","far fa-hand-paper","fas fa-hand-lizard","far fa-hand-lizard","fas fa-hand-holding-usd","fas fa-hand-holding-heart","fas fa-hand-holding","fab fa-hacker-news-square","fab fa-hacker-news","fas fa-h-square","fab fa-gulp","fab fa-grunt","fab fa-gripfire","fab fa-grav","fab fa-gratipay","fas fa-graduation-cap","fab fa-google-wallet","fab fa-google-plus-square","fab fa-google-plus-g","fab fa-google-plus","fab fa-google-play","fab fa-google-drive","fab fa-google","fab fa-goodreads-g","fab fa-goodreads","fas fa-golf-ball","fab fa-gofore","fas fa-globe","fab fa-glide-g","fab fa-glide","fas fa-glass-martini","fab fa-gitter","fab fa-gitlab","fab fa-gitkraken","fab fa-github-square","fab fa-github-alt","fab fa-github","fab fa-git-square","fab fa-git","fas fa-gift","fab fa-gg-circle","fab fa-gg","fab fa-get-pocket","fas fa-genderless","fas fa-gem","far fa-gem","fas fa-gavel","fas fa-gamepad","fab fa-galactic-senate","fab fa-galactic-republic","fas fa-futbol","far fa-futbol","fab fa-fulcrum","fas fa-frown","far fa-frown","fab fa-freebsd","fab fa-free-code-camp","fab fa-foursquare","fas fa-forward","fab fa-forumbee","fab fa-fort-awesome-alt","fab fa-fort-awesome","fas fa-football-ball","fab fa-fonticons-fi","fab fa-fonticons","far fa-font-awesome-logo-full","fas fa-font-awesome-logo-full","fab fa-font-awesome-logo-full","fab fa-font-awesome-flag","fab fa-font-awesome-alt","fab fa-font-awesome","fas fa-font","fas fa-folder-open","far fa-folder-open","fas fa-folder","far fa-folder","fab fa-fly","fab fa-flipboard","fab fa-flickr","fas fa-flask","fas fa-flag-checkered","fas fa-flag","far fa-flag","fab fa-firstdraft","fab fa-first-order-alt","fab fa-first-order","fas fa-first-aid","fab fa-firefox","fas fa-fire-extinguisher","fas fa-fire","fas fa-filter","fas fa-film","fas fa-file-word","far fa-file-word","fas fa-file-video","far fa-file-video","fas fa-file-powerpoint","far fa-file-powerpoint","fas fa-file-pdf","far fa-file-pdf","fas fa-file-medical-alt","fas fa-file-medical","fas fa-file-image","far fa-file-image","fas fa-file-excel","far fa-file-excel","fas fa-file-code","far fa-file-code","fas fa-file-audio","far fa-file-audio","fas fa-file-archive","far fa-file-archive","fas fa-file-alt","far fa-file-alt","fas fa-file","far fa-file","fas fa-fighter-jet","fas fa-female","fas fa-fax","fas fa-fast-forward","fas fa-fast-backward","fab fa-facebook-square","fab fa-facebook-messenger","fab fa-facebook-f","fab fa-facebook","fas fa-eye-slash","far fa-eye-slash","fas fa-eye-dropper","fas fa-eye","far fa-eye","fas fa-external-link-square-alt","fas fa-external-link-alt","fab fa-expeditedssl","fas fa-expand-arrows-alt","fas fa-expand","fas fa-exclamation-triangle","fas fa-exclamation-circle","fas fa-exclamation","fas fa-exchange-alt","fas fa-euro-sign","fab fa-etsy","fab fa-ethereum","fab fa-erlang","fas fa-eraser","fab fa-envira","fas fa-envelope-square","fas fa-envelope-open","far fa-envelope-open","fas fa-envelope","far fa-envelope","fab fa-empire","fab fa-ember","fas fa-ellipsis-v","fas fa-ellipsis-h","fab fa-elementor","fas fa-eject","fas fa-edit","far fa-edit","fab fa-edge","fab fa-ebay","fab fa-earlybirds","fab fa-dyalog","fab fa-drupal","fab fa-dropbox","fab fa-dribbble-square","fab fa-dribbble","fab fa-draft2digital","fas fa-download","fas fa-dove","fas fa-dot-circle","far fa-dot-circle","fas fa-donate","fas fa-dolly-flatbed","fas fa-dolly","fas fa-dollar-sign","fab fa-docker","fab fa-dochub","fas fa-dna","fab fa-discourse","fab fa-discord","fab fa-digital-ocean","fab fa-digg","fas fa-diagnoses","fab fa-deviantart","fas fa-desktop","fab fa-deskpro","fab fa-deploydog","fab fa-delicious","fas fa-deaf","fas fa-database","fab fa-dashcube","fab fa-d-and-d","fab fa-cuttlefish","fas fa-cut","fas fa-cubes","fas fa-cube","fab fa-css3-alt","fab fa-css3","fas fa-crosshairs","fas fa-crop","fas fa-credit-card","far fa-credit-card","fab fa-creative-commons-share","fab fa-creative-commons-sampling-plus","fab fa-creative-commons-sampling","fab fa-creative-commons-sa","fab fa-creative-commons-remix","fab fa-creative-commons-pd-alt","fab fa-creative-commons-pd","fab fa-creative-commons-nd","fab fa-creative-commons-nc-jp","fab fa-creative-commons-nc-eu","fab fa-creative-commons-nc","fab fa-creative-commons-by","fab fa-creative-commons","fab fa-cpanel","fas fa-couch","fas fa-copyright","far fa-copyright","fas fa-copy","far fa-copy","fab fa-contao","fab fa-connectdevelop","fas fa-compress","fas fa-compass","far fa-compass","fas fa-comments","far fa-comments","fas fa-comment-slash","fas fa-comment-dots","far fa-comment-dots","fas fa-comment-alt","far fa-comment-alt","fas fa-comment","far fa-comment","fas fa-columns","fas fa-cogs","fas fa-cog","fas fa-coffee","fab fa-codiepie","fab fa-codepen","fas fa-code-branch","fas fa-code","fab fa-cloudversify","fab fa-cloudsmith","fab fa-cloudscale","fas fa-cloud-upload-alt","fas fa-cloud-download-alt","fas fa-cloud","fas fa-closed-captioning","far fa-closed-captioning","fas fa-clone","far fa-clone","fas fa-clock","far fa-clock","fas fa-clipboard-list","fas fa-clipboard-check","fas fa-clipboard","far fa-clipboard","fas fa-circle-notch","fas fa-circle","far fa-circle","fab fa-chrome","fas fa-child","fas fa-chevron-up","fas fa-chevron-right","fas fa-chevron-left","fas fa-chevron-down","fas fa-chevron-circle-up","fas fa-chevron-circle-right","fas fa-chevron-circle-left","fas fa-chevron-circle-down","fas fa-chess-rook","fas fa-chess-queen","fas fa-chess-pawn","fas fa-chess-knight","fas fa-chess-king","fas fa-chess-board","fas fa-chess-bishop","fas fa-chess","fas fa-check-square","far fa-check-square","fas fa-check-circle","far fa-check-circle","fas fa-check","fas fa-chart-pie","fas fa-chart-line","fas fa-chart-bar","far fa-chart-bar","fas fa-chart-area","fas fa-certificate","fab fa-centercode","fab fa-cc-visa","fab fa-cc-stripe","fab fa-cc-paypal","fab fa-cc-mastercard","fab fa-cc-jcb","fab fa-cc-discover","fab fa-cc-diners-club","fab fa-cc-apple-pay","fab fa-cc-amex","fab fa-cc-amazon-pay","fas fa-cart-plus","fas fa-cart-arrow-down","fas fa-caret-up","fas fa-caret-square-up","far fa-caret-square-up","fas fa-caret-square-right","far fa-caret-square-right","fas fa-caret-square-left","far fa-caret-square-left","fas fa-caret-square-down","far fa-caret-square-down","fas fa-caret-right","fas fa-caret-left","fas fa-caret-down","fas fa-car","fas fa-capsules","fas fa-camera-retro","fas fa-camera","fas fa-calendar-times","far fa-calendar-times","fas fa-calendar-plus","far fa-calendar-plus","fas fa-calendar-minus","far fa-calendar-minus","fas fa-calendar-check","far fa-calendar-check","fas fa-calendar-alt","far fa-calendar-alt","fas fa-calendar","far fa-calendar","fas fa-calculator","fab fa-buysellads","fas fa-bus","far fa-angry","far fa-dizzy","far fa-flushed","far fa-frown-open","far fa-grimace","far fa-grin-alt","far fa-grin-beam-sweat","far fa-grin-beam","far fa-grin-hearts","far fa-grin-squint-tears","far fa-grin-squint","far fa-grin-stars","far fa-grin-tears","far fa-grin-tongue-squint","far fa-grin-tongue-wink","far fa-grin-tongue","far fa-grin-wink","far fa-grin","far fa-kiss-beam","far fa-kiss-wink-heart","far fa-kiss","far fa-laugh-beam","far fa-laugh-squint","far fa-laugh-wink","far fa-laugh","far fa-meh-blank","far fa-meh-rolling-eyes","far fa-sad-cry","far fa-sad-tear","far fa-smile-beam","far fa-smile-wink","far fa-surprise","far fa-tired","fab fa-acquisitions-incorporated","fab fa-alipay","fab fa-creative-commons-zero","fab fa-critical-role","fab fa-d-and-d-beyond","fab fa-dev","fab fa-ello","fab fa-fantasy-flight-games","fab fa-hackerrank","fab fa-hornbill","fab fa-kaggle","fab fa-mailchimp","fab fa-markdown","fab fa-megaport","fab fa-neos","fab fa-nimblr","fab fa-penny-arcade","fab fa-rev","fab fa-shopware","fab fa-squarespace","fab fa-the-red-yeti","fab fa-themeco","fab fa-think-peaks","fab fa-weebly","fab fa-wix","fab fa-wizards-of-the-coast","fab fa-wpressr","fab fa-zhihu","fas fa-ad","fas fa-air-freshener","fas fa-angry","fas fa-ankh","fas fa-apple-alt","fas fa-archway","fas fa-atlas","fas fa-atom","fas fa-award","fas fa-backspace","fas fa-bezier-curve","fas fa-bible","fas fa-blender-phone","fas fa-blender","fas fa-bone","fas fa-bong","fas fa-book-dead","fas fa-book-open","fas fa-book-reader","fas fa-brain","fas fa-broadcast-tower","fas fa-broom","fas fa-brush","fas fa-bus-alt","fas fa-business-time","fas fa-campground","fas fa-cannabis","fas fa-car-alt","fas fa-car-battery","fas fa-car-crash","fas fa-car-side","fas fa-cat","fas fa-chair","fas fa-chalkboard-teacher","fas fa-chalkboard","fas fa-charging-station","fas fa-check-double","fas fa-church","fas fa-city","fas fa-cloud-moon","fas fa-cloud-sun","fas fa-cocktail","fas fa-coins","fas fa-comment-dollar","fas fa-comments-dollar","fas fa-compact-disc","fas fa-concierge-bell","fas fa-cookie-bite","fas fa-cookie","fas fa-crop-alt","fas fa-cross","fas fa-crow","fas fa-crown","fas fa-dharmachakra","fas fa-dice-d20","fas fa-dice-d6","fas fa-dice-five","fas fa-dice-four","fas fa-dice-one","fas fa-dice-six","fas fa-dice-three","fas fa-dice-two","fas fa-dice","fas fa-digital-tachograph","fas fa-directions","fas fa-divide","fas fa-dizzy","fas fa-dog","fas fa-door-closed","fas fa-door-open","fas fa-drafting-compass","fas fa-dragon","fas fa-draw-polygon","fas fa-drum-steelpan","fas fa-drum","fas fa-drumstick-bite","fas fa-dumbbell","fas fa-dungeon","fas fa-envelope-open-text","fas fa-equals","fas fa-feather-alt","fas fa-feather","fas fa-file-contract","fas fa-file-csv","fas fa-file-download","fas fa-file-export","fas fa-file-import","fas fa-file-invoice-dollar","fas fa-file-invoice","fas fa-file-prescription","fas fa-file-signature","fas fa-file-upload","fas fa-fill-drip","fas fa-fill","fas fa-fingerprint","fas fa-fish","fas fa-fist-raised","fas fa-flushed","fas fa-folder-minus","fas fa-folder-plus","fas fa-frog","fas fa-frown-open","fas fa-funnel-dollar","fas fa-gas-pump","fas fa-ghost","fas fa-glass-martini-alt","fas fa-glasses","fas fa-globe-africa","fas fa-globe-americas","fas fa-globe-asia","fas fa-gopuram","fas fa-greater-than-equal","fas fa-greater-than","fas fa-grimace","fas fa-grin-alt","fas fa-grin-beam-sweat","fas fa-grin-beam","fas fa-grin-hearts","fas fa-grin-squint-tears","fas fa-grin-squint","fas fa-grin-stars","fas fa-grin-tears","fas fa-grin-tongue-squint","fas fa-grin-tongue-wink","fas fa-grin-tongue","fas fa-grin-wink","fas fa-grin","fas fa-grip-horizontal","fas fa-grip-vertical","fas fa-hammer","fas fa-hamsa","fas fa-hanukiah","fas fa-hat-wizard","fas fa-haykal","fas fa-headphones-alt","fas fa-headset","fas fa-helicopter","fas fa-highlighter","fas fa-hiking","fas fa-hippo","fas fa-horse","fas fa-hot-tub","fas fa-hotel","fas fa-house-damage","fas fa-hryvnia","fas fa-infinity","fas fa-jedi","fas fa-joint","fas fa-journal-whills","fas fa-kaaba","fas fa-khanda","fas fa-kiss-beam","fas fa-kiss-wink-heart","fas fa-kiss","fas fa-kiwi-bird","fas fa-landmark","fas fa-laptop-code","fas fa-laugh-beam","fas fa-laugh-squint","fas fa-laugh-wink","fas fa-laugh","fas fa-layer-group","fas fa-less-than-equal","fas fa-less-than","fas fa-luggage-cart","fas fa-mail-bulk","fas fa-map-marked-alt","fas fa-map-marked","fas fa-marker","fas fa-mask","fas fa-medal","fas fa-meh-blank","fas fa-meh-rolling-eyes","fas fa-memory","fas fa-menorah","fas fa-microphone-alt-slash","fas fa-microphone-alt","fas fa-microscope","fas fa-money-bill-wave-alt","fas fa-money-bill-wave","fas fa-money-bill","fas fa-money-check-alt","fas fa-money-check","fas fa-monument","fas fa-mortar-pestle","fas fa-mosque","fas fa-mountain","fas fa-network-wired","fas fa-not-equal","fas fa-oil-can","fas fa-om","fas fa-otter","fas fa-paint-roller","fas fa-palette","fas fa-parking","fas fa-passport","fas fa-pastafarianism","fas fa-peace","fas fa-pen-alt","fas fa-pen-fancy","fas fa-pen-nib","fas fa-pen","fas fa-pencil-ruler","fas fa-percentage","fas fa-place-of-worship","fas fa-plane-arrival","fas fa-plane-departure","fas fa-poll-h","fas fa-poll","fas fa-poop","fas fa-pray","fas fa-praying-hands","fas fa-prescription","fas fa-project-diagram","fas fa-quran","fas fa-receipt","fas fa-ring","fas fa-robot","fas fa-route","fas fa-ruler-combined","fas fa-ruler-horizontal","fas fa-ruler-vertical","fas fa-ruler","fas fa-running","fas fa-sad-cry","fas fa-sad-tear","fas fa-school","fas fa-screwdriver","fas fa-scroll","fas fa-search-dollar","fas fa-search-location","fas fa-shapes","fas fa-shoe-prints","fas fa-shuttle-van","fas fa-signature","fas fa-skull-crossbones","fas fa-skull","fas fa-slash","fas fa-smile-beam","fas fa-smile-wink","fas fa-smoking-ban","fas fa-socks","fas fa-solar-panel","fas fa-spa","fas fa-spider","fas fa-splotch","fas fa-spray-can","fas fa-square-root-alt","fas fa-stamp","fas fa-star-and-crescent","fas fa-star-half-alt","fas fa-star-of-david","fas fa-star-of-life","fas fa-store-alt","fas fa-store","fas fa-stream","fas fa-stroopwafel","fas fa-suitcase-rolling","fas fa-surprise","fas fa-swatchbook","fas fa-swimmer","fas fa-swimming-pool","fas fa-synagogue","fas fa-teeth-open","fas fa-teeth","fas fa-theater-masks","fas fa-tint-slash","fas fa-tired","fas fa-toilet-paper","fas fa-toolbox","fas fa-tooth","fas fa-torah","fas fa-torii-gate","fas fa-tractor","fas fa-traffic-light","fas fa-truck-monster","fas fa-truck-pickup","fas fa-tshirt","fas fa-umbrella-beach","fas fa-user-injured","fas fa-vector-square","fas fa-vihara","fas fa-volume-mute","fas fa-vr-cardboard","fas fa-walking","fas fa-wallet","fas fa-weight-hanging","fas fa-wind","fas fa-wine-bottle","fas fa-wine-glass-alt","fas fa-yin-yang"];t.a=a},function(e,t,n){!function(t,a){e.exports=a(n(11),n(1),n(0),n(23),n(329))}(window,function(e,t,n,a,r){return function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=15)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";function a(e){return(a="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 r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.flattenPossiblyCategorizedSource=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Array.isArray(e))return o(e);if(null!==t)return void 0!==e[t]?o(e[t]):[];var n=[],a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){r(e,t,n[t])})}return e}({},e);return Object.keys(a).forEach(function(e){n=o(n).concat(o(a[e]))}),n},t.getPossibleCategories=function(e){return Array.isArray(e)?null:Object.keys(e)},t.convertToHex=function(e){return String.fromCodePoint(parseInt(e,10))},t.isArrayEqual=function(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;var n=o(e);n.sort();var a=o(t);return a.sort(),JSON.stringify(n)===JSON.stringify(a)},t.getOffset=function(e){var t=e.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,a=window.pageYOffset||document.documentElement.scrollTop;return{top:t.top+a,left:t.left+n}},t.getSourceType=function(e){return null===e?"null":"object"!==a(e)||Array.isArray(e)?Array.isArray(e)?"array":a(e):"object"},t.InvalidSourceException=function(e,t){this.givenType=e,this.requiredType=t,this.message="Expected of type: ".concat(this.requiredType,", found: ").concat(this.givenType),this.toString=function(){return"Invalid Source Exception: ".concat(this.message)}},t.fuzzySearch=function(e,t){e=e.toLowerCase();var n=(t=t.toLowerCase()).length,a=e.length;if(a>n)return!1;if(a===n)return e===t;e:for(var r=0,o=0;r<a;r++){for(var i=e.codePointAt(r);o<n;)if(t.codePointAt(o++)===i)continue e;return!1}return!0},t.debounce=void 0,t.debounce=function(e,t){var n;return function(){var a=this,r=arguments;clearTimeout(n),n=setTimeout(function(){return e.apply(a,r)},t)}}},function(e,t){e.exports=n},,,function(e,t){e.exports=a},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e){return(r="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 o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=a(n(1)),u=n(6),c=a(n(0)),f=a(n(3)),p=n(2),d=function(e){function t(e){var n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!a||"object"!==r(a)&&"function"!=typeof a?l(this):a,Object.defineProperty(l(n),"syncPortalPosition",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.resetPortalPosition(),n.fixWindowOverflow()}}),Object.defineProperty(l(n),"fixWindowOverflow",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=n.props.domRef.current.offsetWidth,t=n.props.domRef.current.offsetHeight,a=window,r=a.innerWidth,o=a.pageYOffset,i=document.documentElement.clientHeight,l=(0,p.getOffset)(n.props.domRef.current),s=l.left,u=l.top,c="self"===n.state.appendRoot?n.props.domRef.current:n.state.appendRoot,f=(0,p.getOffset)(c),d=n.props.btnRef.current,m=n.props.domRef.current,h=(0,p.getOffset)(d),g=getComputedStyle(d),b=(parseInt(g.borderTop,10)||0)+(parseInt(g.borderBottom,10)||0);if(s+e>r-20){var v=h.left+n.props.btnRef.current.offsetWidth-(e+f.left);v+f.left<0&&(v=10-f.left),m.style.left="".concat(v,"px")}t+u-o>i&&h.top-t>0&&("self"===n.state.appendRoot?m.style.top="-".concat(t-b,"px"):m.style.top="".concat(h.top+b-t,"px"))}}),n.state={},n.debouncedSyncPortalPosition=(0,p.debounce)(n.syncPortalPosition,250),n}return function(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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.PureComponent),i(t,null,[{key:"getDerivedStateFromProps",value:function(e){var n=t.calculateAppendAndClass(e.appendRoot);return{appendRoot:n.appendRoot,portalClasses:n.portalClasses}}},{key:"calculateAppendAndClass",value:function(e){var t="self",n=(0,f.default)({"rfipdropdown--portal":!1!==e});return!1!==e&&(t=document.querySelector(e)),{portalClasses:n,appendRoot:t}}}]),i(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.debouncedSyncPortalPosition),window.addEventListener("scroll",this.debouncedSyncPortalPosition),this.syncPortalPosition()}},{key:"componentDidUpdate",value:function(){this.syncPortalPosition()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.debouncedSyncPortalPosition),window.removeEventListener("scroll",this.debouncedSyncPortalPosition)}},{key:"positionPortal",value:function(){var e=this.props.domRef.current.style.display;this.props.domRef.current.style.display="none";var t=this.props.btnRef.current,n=(0,p.getOffset)(t),a=(0,p.getOffset)(this.state.appendRoot),r=t.offsetHeight;this.props.domRef.current.style.left="".concat(n.left-a.left,"px"),this.props.domRef.current.style.top="".concat(n.top+r,"px"),this.props.domRef.current.style.display=e}},{key:"resetPortalPosition",value:function(){var e=this.props.domRef.current;"self"===this.state.appendRoot?e.style.top="":this.positionPortal()}},{key:"render",value:function(){var e=(0,f.default)(this.props.className,this.state.portalClasses),t=s.default.createElement("div",{className:e,ref:this.props.domRef},this.props.children);return"self"===this.state.appendRoot?t:(0,u.createPortal)(t,this.state.appendRoot)}}]),t}();Object.defineProperty(d,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{appendRoot:c.default.oneOfType([c.default.bool,c.default.string]),children:c.default.node.isRequired,domRef:c.default.object.isRequired,btnRef:c.default.object.isRequired,className:c.default.string.isRequired}}),Object.defineProperty(d,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{appendRoot:!1}});var m=d;t.default=m},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e){return(r="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 o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function l(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=a(n(1)),c=a(n(0)),f=a(n(3)),p=n(2),d=function(e){function t(e){var n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!a||"object"!==r(a)&&"function"!=typeof a?s(this):a,Object.defineProperty(s(n),"handleChangePage",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=n.props.currentPage,o=n.state.totalPage;null!==a?"next"===a?r+=1:r-=1:r=parseInt(e.target.value,10)-1,r<0&&(r=0),r>o-1&&(r=o-1),t=r+1,null===a&&Number.isNaN(r)&&(r=0,t=""),n.setState({viewPage:t}),n.props.handleChangePage(r)}}),Object.defineProperty(s(n),"handlePageKeyBoard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){13!==e.keyCode&&32!==e.keyCode||n.handleChangePage({},t)}}),Object.defineProperty(s(n),"handleChangeValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.props.handleChangeValue(e)}}),Object.defineProperty(s(n),"handleValueKeyboard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){13!==e.keyCode&&32!==e.keyCode||n.handleChangeValue(t)}}),n.state={viewPage:n.props.currentPage+1},n}return function(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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.default.PureComponent),l(t,null,[{key:"getDerivedStateFromProps",value:function(e,n){var a=t.getCategoryFilteredState(e.currentCategory,e.categories,e.icons),r=t.getCategoryFilteredState(e.currentCategory,e.categories,null===e.search?e.icons:e.search),o=t.getActiveIcons(a,r,e.currentSearch),i=o.activeIcons,l=o.activeTitles,s=e.currentPage,u=e.iconsPerPage,c={iconView:t.getCurrentViewIcons(i,u,s),titleView:t.getCurrentViewIcons(l,u,s),totalPage:Math.ceil(i.length/u)};return""!==n.viewPage&&(c.viewPage=e.currentPage+1),c}},{key:"getActiveIcons",value:function(e,t,n){var a=o(e),r=o(t);if(""===n||null===n)return{activeIcons:a,activeTitles:r};var i=[],l=[];return a.forEach(function(e,a){(0,p.fuzzySearch)(n,t[a])&&(i.push(e),l.push(t[a]))}),{activeIcons:i,activeTitles:l}}},{key:"getCategoryFilteredState",value:function(e,t,n){var a=null,r=(0,p.getSourceType)(n);if(Array.isArray(t)){if("object"!==r)throw new p.InvalidSourceException(r,"object")}else if("array"!==r)throw new p.InvalidSourceException(r,"array");return 0!==e&&Array.isArray(t)&&(a=t[e]||null),(0,p.flattenPossiblyCategorizedSource)(n,a)}},{key:"getCurrentViewIcons",value:function(e,t,n){var a=n*t,r=(n+1)*t;return e.slice(a,r)}}]),l(t,[{key:"renderPager",value:function(){var e=this;if(this.state.totalPage<1)return null;var t=this.props.currentPage>0?u.default.createElement("span",{className:"rfipicons__left",role:"button",tabIndex:0,onKeyDown:function(t){return e.handlePageKeyBoard(t,"prev")},onClick:function(t){return e.handleChangePage(t,"prev")}},u.default.createElement("span",{role:"presentation",className:"rfipicons__label","aria-label":"Left"},u.default.createElement("i",{className:"fipicon-angle-left"}))):null,n=this.props.currentPage<this.state.totalPage-1?u.default.createElement("span",{className:"rfipicons__right",role:"button",tabIndex:0,onKeyDown:function(t){return e.handlePageKeyBoard(t,"next")},onClick:function(t){return e.handleChangePage(t,"next")}},u.default.createElement("span",{role:"presentation",className:"rfipicons__label","aria-label":"Right"},u.default.createElement("i",{className:"fipicon-angle-right"}))):null;return u.default.createElement("div",{className:"rfipicons__pager"},u.default.createElement("div",{className:"rfipicons__num"},u.default.createElement("input",{value:this.state.viewPage,onChange:this.handleChangePage,className:"rfipicons__cp",type:"tel",min:1}),u.default.createElement("span",{className:"rfipicons__sp"},"/"),u.default.createElement("span",{className:"rfipicons__tp"},this.state.totalPage)),u.default.createElement("div",{className:"rfipicons__arrow"},t,n))}},{key:"renderIconView",value:function(){var e=this;return this.state.totalPage>0?this.state.iconView.map(function(t,n){var a=(0,f.default)("rfipicons__icon",{"rfipicons__icon--selected":e.props.value===t||Array.isArray(e.props.value)&&e.props.value.includes(t)});return u.default.createElement("span",{className:a,key:t,title:e.state.titleView[n]},u.default.createElement("span",{className:"rfipicons__ibox",tabIndex:0,role:"button",onClick:function(){return e.handleChangeValue(t)},onKeyDown:function(n){return e.handleValueKeyboard(n,t)}},e.props.renderIcon(t)))}):u.default.createElement("span",{className:"rfipicons__icon--error"},u.default.createElement("span",{className:"rfipicons__ibox--error"},this.props.noIconPlaceholder))}},{key:"render",value:function(){return u.default.createElement("div",{className:"rfipicons"},this.renderPager(),u.default.createElement("div",{className:"rfipicons__selector"},this.renderIconView()))}}]),t}();Object.defineProperty(d,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{categories:c.default.arrayOf(c.default.string),currentCategory:c.default.number,isMulti:c.default.bool.isRequired,icons:c.default.oneOfType([c.default.arrayOf(c.default.string),c.default.arrayOf(c.default.number),c.default.objectOf(c.default.oneOfType([c.default.arrayOf(c.default.number),c.default.arrayOf(c.default.string)]))]).isRequired,search:c.default.oneOfType([c.default.objectOf(c.default.arrayOf(c.default.string)),c.default.arrayOf(c.default.string)]),value:c.default.oneOfType([c.default.number,c.default.string,c.default.arrayOf(c.default.oneOfType([c.default.number,c.default.string]))]).isRequired,currentSearch:c.default.string.isRequired,handleChangeValue:c.default.func.isRequired,currentPage:c.default.number.isRequired,iconsPerPage:c.default.number.isRequired,handleChangePage:c.default.func.isRequired,renderIcon:c.default.func.isRequired,noIconPlaceholder:c.default.string.isRequired}}),Object.defineProperty(d,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{categories:null,currentCategory:null,search:null}});var m=d;t.default=m},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(1)),o=a(n(0)),i=function(e){return r.default.createElement("div",{className:"rfipsearch"},r.default.createElement("input",{type:"text",className:"rfipsearch__input",value:e.value,onChange:e.handleSearch,placeholder:e.placeholder}))};i.propTypes={handleSearch:o.default.func.isRequired,value:o.default.string.isRequired,placeholder:o.default.string.isRequired};var l=i;t.default=l},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e){return(r="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 o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(1)),l=a(n(0)),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(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}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var n,a;return function(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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.PureComponent),n=t,(a=[{key:"render",value:function(){return i.default.createElement("div",{className:"rfipcategory"},i.default.createElement("select",{className:"rfipcategory__select",onChange:this.props.handleCategory,value:this.props.value},this.props.categories.map(function(e,t){return i.default.createElement("option",{className:"rfipcategory__select__option",key:e,value:t},e)})),i.default.createElement("i",{className:"fipicon-angle-down",role:"presentation","aria-label":"Open"}))}}])&&o(n.prototype,a),t}();Object.defineProperty(s,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{handleCategory:l.default.func.isRequired,value:l.default.number.isRequired,categories:l.default.arrayOf(l.default.string).isRequired}});var u=s;t.default=u},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e){return(r="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 o(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=a(n(1)),u=a(n(0)),c=a(n(10)),f=a(n(9)),p=a(n(8)),d=n(2),m=function(e){function t(e){var n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!a||"object"!==r(a)&&"function"!=typeof a?l(this):a,Object.defineProperty(l(n),"handleCategory",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=parseInt(e.target.value,10);Number.isNaN(t)&&(t=0),n.props.handleChangeCategory(t),n.props.handleChangePage(0)}}),Object.defineProperty(l(n),"handleSearch",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.target.value;n.props.handleChangeSearch(t)}}),n.state={},n}return function(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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.PureComponent),i(t,null,[{key:"getDerivedStateFromProps",value:function(e){var t=(0,d.getPossibleCategories)(e.icons);return null!==t&&(t=[e.allCatPlaceholder].concat(function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(t))),{categories:t,searchString:e.currentSearch}}}]),i(t,[{key:"render",value:function(){return s.default.createElement("div",{className:"rfipdropdown__selector"},this.props.showSearch?s.default.createElement(f.default,{handleSearch:this.handleSearch,value:this.state.searchString,placeholder:this.props.searchPlaceholder}):null,this.props.showCategory&&this.state.categories&&this.state.categories.length?s.default.createElement(c.default,{handleCategory:this.handleCategory,value:this.props.currentCategory,categories:this.state.categories}):null,s.default.createElement(p.default,{categories:this.state.categories,currentCategory:this.props.currentCategory,isMulti:this.props.isMulti,icons:this.props.icons,search:this.props.search,value:this.props.value,currentSearch:this.props.currentSearch,handleChangeValue:this.props.handleChangeValue,currentPage:this.props.currentPage,iconsPerPage:this.props.iconsPerPage,handleChangePage:this.props.handleChangePage,renderIcon:this.props.renderIcon,noIconPlaceholder:this.props.noIconPlaceholder}))}}]),t}();Object.defineProperty(m,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{isMulti:u.default.bool.isRequired,value:u.default.oneOfType([u.default.number,u.default.string,u.default.arrayOf(u.default.any)]).isRequired,currentCategory:u.default.number.isRequired,currentPage:u.default.number.isRequired,currentSearch:u.default.string.isRequired,icons:u.default.oneOfType([u.default.arrayOf(u.default.number),u.default.arrayOf(u.default.string),u.default.objectOf(u.default.oneOfType([u.default.arrayOf(u.default.number),u.default.arrayOf(u.default.string)]))]).isRequired,search:u.default.oneOfType([u.default.object,u.default.arrayOf(u.default.string)]),showCategory:u.default.bool.isRequired,showSearch:u.default.bool.isRequired,iconsPerPage:u.default.number.isRequired,allCatPlaceholder:u.default.string.isRequired,searchPlaceholder:u.default.string.isRequired,noIconPlaceholder:u.default.string.isRequired,renderIcon:u.default.func.isRequired,handleChangeValue:u.default.func.isRequired,handleChangeCategory:u.default.func.isRequired,handleChangePage:u.default.func.isRequired,handleChangeSearch:u.default.func.isRequired}}),Object.defineProperty(m,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{search:null}});var h=m;t.default=h},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e){return(r="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 o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}function i(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function l(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=a(n(1)),c=a(n(0)),f=a(n(3)),p=function(e){function t(){var e,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return l(a,(n=a=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),Object.defineProperty(s(a),"handleClick",{configurable:!0,enumerable:!0,writable:!0,value:function(){a.props.onClick()}}),Object.defineProperty(s(a),"handleKeyDown",{configurable:!0,enumerable:!0,writable:!0,value:function(e){32!==e.keyCode&&13!==e.keyCode||a.props.onClick()}}),Object.defineProperty(s(a),"handleDelete",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){e.stopPropagation(),a.props.handleDeleteValue(t)}}),Object.defineProperty(s(a),"handleDeleteKeyboard",{configurable:!0,enumerable:!0,writable:!0,value:function(e,t){32!==e.keyCode&&13!==e.keyCode||a.props.handleDeleteValue(t)}}),Object.defineProperty(s(a),"renderEmptyIcon",{configurable:!0,enumerable:!0,writable:!0,value:function(){return u.default.createElement("span",{className:"rfipbtn__icon--empty"},a.props.noSelectedPlaceholder)}}),n))}var n,a;return function(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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.default.PureComponent),n=t,(a=[{key:"renderIcon",value:function(e){var t=this;return""===e||null===e||void 0===e?this.renderEmptyIcon():u.default.createElement("span",{className:"rfipbtn__icon",key:e},u.default.createElement("span",{className:"rfipbtn__elm"},this.props.renderIcon(e)),u.default.createElement("span",{className:"rfipbtn__del",onClick:function(n){return t.handleDelete(n,e)},onKeyDown:function(n){return t.handleDeleteKeyboard(n,e)},tabIndex:0,role:"button"},"\xd7"))}},{key:"renderCurrentIcons",value:function(){var e=this;return this.props.isMulti?this.props.value.length?this.props.value.map(function(t){return e.renderIcon(t)}):this.renderEmptyIcon():this.renderIcon(this.props.value)}},{key:"render",value:function(){var e={onClick:this.handleClick,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,tabIndex:0},t=(0,f.default)("rfipbtn__button","rfipbtn__button--".concat(this.props.isOpen?"open":"close")),n=(0,f.default)(this.props.className);return u.default.createElement("div",o({className:n,ref:this.props.domRef},e),u.default.createElement("div",{className:"rfipbtn__current"},this.renderCurrentIcons()),u.default.createElement("div",{className:t},u.default.createElement("i",{className:"fipicon-angle-down",role:"presentation","aria-label":"Open"})))}}])&&i(n.prototype,a),t}();Object.defineProperty(p,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{className:c.default.string.isRequired,isOpen:c.default.bool.isRequired,onClick:c.default.func.isRequired,domRef:c.default.object.isRequired,isMulti:c.default.bool.isRequired,value:c.default.oneOfType([c.default.number,c.default.string,c.default.arrayOf(c.default.oneOfType([c.default.number,c.default.string]))]).isRequired,renderIcon:c.default.func.isRequired,handleDeleteValue:c.default.func.isRequired,noSelectedPlaceholder:c.default.string.isRequired}});var d=p;t.default=d},function(e,t){e.exports=r},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e){return(r="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 o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function s(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=a(n(1)),f=a(n(0)),p=a(n(3)),d=n(13),m=a(n(12)),h=a(n(11)),g=a(n(7)),b=n(2),v=[],y="",w=function(e){function t(e){var n,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=(t.__proto__||Object.getPrototypeOf(t)).call(this,e),n=!a||"object"!==r(a)&&"function"!=typeof a?u(this):a,Object.defineProperty(u(n),"handleOuterClick",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.target;n.isClickWithin(t)||n.closeDropdown()}}),Object.defineProperty(u(n),"handleEscapeKeyboard",{configurable:!0,enumerable:!0,writable:!0,value:function(e){27===e.keyCode&&n.closeDropdown()}}),Object.defineProperty(u(n),"isClickWithin",{configurable:!0,enumerable:!0,writable:!0,value:function(e){return n.fipButtonRef.current.contains(e)||n.fipDropDownRef.current&&n.fipDropDownRef.current.contains(e)}}),Object.defineProperty(u(n),"handleToggle",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.setState(function(e){return n.handleDropDown(!e.isOpen,!1)})}}),Object.defineProperty(u(n),"closeDropdown",{configurable:!0,enumerable:!0,writable:!0,value:function(){n.handleDropDown(!1)}}),Object.defineProperty(u(n),"handleDropDown",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={isOpen:e};return r.elemClass=t.getDerivedClassName("rfip",n.props.theme,n.props.isMulti,e),r.btnClass=t.getDerivedClassName("rfipbtn",n.props.theme,n.props.isMulti,e),r.ddClass=t.getDerivedClassName("rfipdropdown",n.props.theme,n.props.isMulti,e),a&&n.setState(r),r}}),Object.defineProperty(u(n),"handleChangeValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t;n.props.isMulti?(t=o(n.state.value)).includes(e)?(t=t.filter(function(t){return t!==e})).length||(t=v):t.push(e):t=e===n.state.value?y:e,n.setState({value:t}),n.props.onChange(t)}}),Object.defineProperty(u(n),"handleDeleteValue",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var a;a=n.props.isMulti?n.state.value.filter(function(t){return t!==e}):t.getDerivedValue(a,n.props.isMulti),n.setState({value:a}),n.props.onChange(a)}}),Object.defineProperty(u(n),"handleChangePage",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.setState({currentPage:e})}}),Object.defineProperty(u(n),"handleChangeCategory",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.setState({currentCategory:e,currentPage:0})}}),Object.defineProperty(u(n),"handleChangeSearch",{configurable:!0,enumerable:!0,writable:!0,value:function(e){n.setState({currentSearch:e,currentPage:0})}}),Object.defineProperty(u(n),"resetPortalStyle",{configurable:!0,enumerable:!0,writable:!0,value:function(e){["maxHeight","paddingTop","paddingBottom"].forEach(function(t){e.style[t]=null})}}),Object.defineProperty(u(n),"handlePortalEnter",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];n.resetPortalStyle(t);var a=getComputedStyle(t);n.fipPortalComputedStyle={height:a.height,paddingTop:a.paddingTop,paddingBottom:a.paddingBottom},["maxHeight","paddingTop","paddingBottom"].forEach(function(e){t.style[e]="0px"})}}),Object.defineProperty(u(n),"handlePortalEntering",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];t.style.maxHeight=n.fipPortalComputedStyle.height,t.style.paddingTop=n.fipPortalComputedStyle.paddingTop,t.style.paddingBottom=n.fipPortalComputedStyle.paddingBottom}}),Object.defineProperty(u(n),"handlePortalEntered",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];n.resetPortalStyle(t),n.props.showSearch&&void 0===window.orientation&&-1===navigator.userAgent.indexOf("IEMobile")&&t.querySelector(".rfipsearch__input").focus()}}),Object.defineProperty(u(n),"handlePortalExit",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];n.resetPortalStyle(t);var a=getComputedStyle(t).height;t.style.maxHeight=a}}),Object.defineProperty(u(n),"handlePortalExiting",{configurable:!0,enumerable:!0,writable:!0,value:function(e){var t=e.childNodes[0];t.style.maxHeight="0px",t.style.paddingTop="0px",t.style.paddingBottom="0px"}}),Object.defineProperty(u(n),"renderIcon",{configurable:!0,enumerable:!0,writable:!0,value:function(e){if("function"==typeof n.props.renderFunc)return n.props.renderFunc(e);if("class"===n.props.renderUsing)return c.default.createElement("i",{className:e});var t=i({},n.props.renderUsing,n.props.convertHex?(0,b.convertToHex)(e):e);return c.default.createElement("i",t)}}),n.fipButtonRef=c.default.createRef(),n.fipDropDownRef=c.default.createRef(),n.state={currentCategory:0,currentPage:0,isOpen:!1,currentSearch:""},n.fipPortalComputedStyle=null,n}return function(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,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.default.PureComponent),s(t,null,[{key:"getDerivedStateFromProps",value:function(e,n){var a={};return a.elemClass=t.getDerivedClassName("rfip",e.theme,e.isMulti,n.isOpen),a.btnClass=t.getDerivedClassName("rfipbtn",e.theme,e.isMulti,n.isOpen),a.ddClass=t.getDerivedClassName("rfipdropdown",e.theme,e.isMulti,n.isOpen),a.value=t.getDerivedValue(e.value,e.isMulti),e.showCategory||(a.currentCategory=0,a.currentPage=0),e.showSearch||(a.currentSearch="",a.currentPage=0),a}},{key:"getDerivedClassName",value:function(e,t,n,a){return(0,p.default)(e,"".concat(e,"--").concat(t),i({},"".concat(e,"--multi"),n),"".concat(e,"--").concat(a?"open":"close"))}},{key:"getDerivedValue",value:function(e,t){var n=e;return t?n=Array.isArray(e)?o(e):v:"number"!=typeof e&&"string"!=typeof e&&(n=y),n}}]),s(t,[{key:"componentDidMount",value:function(){var e=this;["click"].forEach(function(t){document.addEventListener(t,e.handleOuterClick,!1)}),document.addEventListener("keydown",this.handleEscapeKeyboard,!1),this.props.onChange(this.state.value)}},{key:"componentWillUnmount",value:function(){var e=this;["click"].forEach(function(t){document.removeEventListener(t,e.handleOuterClick,!1)}),document.removeEventListener("keydown",this.handleEscapeKeyboard,!1)}},{key:"render",value:function(){var e={currentCategory:this.state.currentCategory,currentPage:this.state.currentPage,currentSearch:this.state.currentSearch,value:this.state.value,isMulti:this.props.isMulti,icons:this.props.icons,search:this.props.search,showCategory:this.props.showCategory,showSearch:this.props.showSearch,iconsPerPage:this.props.iconsPerPage,allCatPlaceholder:this.props.allCatPlaceholder,searchPlaceholder:this.props.searchPlaceholder,noIconPlaceholder:this.props.noIconPlaceholder,renderIcon:this.renderIcon,handleChangeValue:this.handleChangeValue,handleChangeCategory:this.handleChangeCategory,handleChangePage:this.handleChangePage,handleChangeSearch:this.handleChangeSearch};return c.default.createElement("div",{className:this.state.elemClass,ref:this.fipRef},c.default.createElement(m.default,{className:this.state.btnClass,isOpen:this.state.isOpen,onClick:this.handleToggle,domRef:this.fipButtonRef,isMulti:this.props.isMulti,value:this.state.value,renderIcon:this.renderIcon,handleDeleteValue:this.handleDeleteValue,noSelectedPlaceholder:this.props.noSelectedPlaceholder}),c.default.createElement(d.CSSTransition,{classNames:"fipappear",timeout:300,in:this.state.isOpen,unmountOnExit:!0,onEnter:this.handlePortalEnter,onEntering:this.handlePortalEntering,onEntered:this.handlePortalEntered,onExit:this.handlePortalExit,onExiting:this.handlePortalExiting},c.default.createElement(g.default,{appendRoot:this.props.appendTo,domRef:this.fipDropDownRef,btnRef:this.fipButtonRef,className:this.state.ddClass},c.default.createElement(h.default,e))))}}]),t}();Object.defineProperty(w,"propTypes",{configurable:!0,enumerable:!0,writable:!0,value:{icons:f.default.oneOfType([f.default.arrayOf(f.default.string),f.default.arrayOf(f.default.number),f.default.objectOf(f.default.oneOfType([f.default.arrayOf(f.default.number),f.default.arrayOf(f.default.string)]))]).isRequired,search:f.default.oneOfType([f.default.objectOf(f.default.arrayOf(f.default.string)),f.default.arrayOf(f.default.string)]),iconsPerPage:f.default.number,theme:f.default.string,onChange:f.default.func.isRequired,showCategory:f.default.bool,showSearch:f.default.bool,value:f.default.oneOfType([f.default.arrayOf(f.default.string),f.default.arrayOf(f.default.number),f.default.number,f.default.string]),isMulti:f.default.bool,renderUsing:f.default.string,convertHex:f.default.bool,renderFunc:f.default.func,appendTo:f.default.oneOfType([f.default.bool,f.default.string]),allCatPlaceholder:f.default.string,searchPlaceholder:f.default.string,noIconPlaceholder:f.default.string,noSelectedPlaceholder:f.default.string}}),Object.defineProperty(w,"defaultProps",{configurable:!0,enumerable:!0,writable:!0,value:{search:null,iconsPerPage:20,theme:"default",showCategory:!0,showSearch:!0,value:null,isMulti:!1,renderUsing:"class",convertHex:!0,renderFunc:null,appendTo:!1,allCatPlaceholder:"Show from all",searchPlaceholder:"Search Icons",noIconPlaceholder:"No icons found",noSelectedPlaceholder:"Select icon"}}),Object.defineProperty(w,"displayName",{configurable:!0,enumerable:!0,writable:!0,value:"FontIconPicker"});var _=w;t.default=_},function(e,t,n){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=((a=n(14))&&a.__esModule?a:{default:a}).default;t.default=r}]).default})},function(e,t,n){function a(e){return i(e)?r(e):o(e)}var r=n(84),o=n(189),i=n(35);e.exports=a},function(e,t,n){"use strict";(function(t){function n(e,t,n,r,o,i,l,s){if(a(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,l,s],f=0;u=new Error(t.replace(/%s/g,function(){return c[f++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var a=function(e){};"production"!==t.env.NODE_ENV&&(a=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(2))},function(e,t,n){"use strict";(function(t){var n={};"production"!==t.env.NODE_ENV&&Object.freeze(n),e.exports=n}).call(t,n(2))},function(e,t,n){"use strict";function a(e){return function(){return e}}var r=function(){};r.thatReturns=a,r.thatReturnsFalse=a(!1),r.thatReturnsTrue=a(!0),r.thatReturnsNull=a(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";(function(t){function a(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==t.env.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(e){console.error(e)}}}"production"===t.env.NODE_ENV?(a(),e.exports=n(293)):e.exports=n(296)}).call(t,n(2))},function(e,t){function n(e){return void 0===e}e.exports=n},function(e,t,n){function a(e,t){if(null==e)return{};var n=r(l(e),function(e){return[e]});return t=o(t),i(e,n,function(e,n){return t(e,n[0])})}var r=n(42),o=n(144),i=n(205),l=n(54);e.exports=a},function(e,t,n){function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}var r=n(147),o=n(148),i=n(149),l=n(150),s=n(151);a.prototype.clear=r,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=l,a.prototype.set=s,e.exports=a},function(e,t,n){function a(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}var r=n(28);e.exports=a},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){var a=n(9),r=a(Object,"create");e.exports=r},function(e,t,n){function a(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}var r=n(171);e.exports=a},function(e,t){function n(e,t){var n=typeof e;return!!(t=null==t?a:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}var a=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t,n){(function(e){var a=n(76),r="object"==typeof t&&t&&!t.nodeType&&t,o=r&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===r,l=i&&a.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||l&&l.binding&&l.binding("util")}catch(e){}}();e.exports=s}).call(t,n(51)(e))},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||a)}var a=Object.prototype;e.exports=n},function(e,t,n){function a(e){return null!=e&&o(e.length)&&!r(e)}var r=n(75),o=n(52);e.exports=a},function(e,t,n){var a=n(191),r=n(44),o=n(192),i=n(193),l=n(194),s=n(10),u=n(77),c=u(a),f=u(r),p=u(o),d=u(i),m=u(l),h=s;(a&&"[object DataView]"!=h(new a(new ArrayBuffer(1)))||r&&"[object Map]"!=h(new r)||o&&"[object Promise]"!=h(o.resolve())||i&&"[object Set]"!=h(new i)||l&&"[object WeakMap]"!=h(new l))&&(h=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,a=n?u(n):"";if(a)switch(a){case c:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case m:return"[object WeakMap]"}return t}),e.exports=h},function(e,t,n){function a(e,t){t=r(t,e);for(var n=0,a=t.length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}var r=n(13),o=n(14);e.exports=a},function(e,t,n){function a(e){return"symbol"==typeof e||o(e)&&r(e)==i}var r=n(10),o=n(7),i="[object Symbol]";e.exports=a},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){function a(e,t,n){var a=e[t];l.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}var r=n(94),o=n(28),i=Object.prototype,l=i.hasOwnProperty;e.exports=a},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.canUseDOM=t.slidesOnLeft=t.slidesOnRight=t.siblingDirection=t.getTotalSlides=t.getPostClones=t.getPreClones=t.getTrackLeft=t.getTrackAnimateCSS=t.getTrackCSS=t.checkSpecKeys=t.getSlideCount=t.checkNavigable=t.getNavigableIndexes=t.swipeEnd=t.swipeMove=t.swipeStart=t.keyHandler=t.changeSlide=t.slideHandler=t.initializedState=t.extractObject=t.canGoNext=t.getSwipeDirection=t.getHeight=t.getWidth=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.lazyStartIndex=t.getRequiredLazySlides=t.getOnDemandLazySlides=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o=n(1),i=a(o),l=n(23),s=a(l),u=t.getOnDemandLazySlides=function(e){for(var t=[],n=c(e),a=f(e),r=n;r<a;r++)e.lazyLoadedList.indexOf(r)<0&&t.push(r);return t},c=(t.getRequiredLazySlides=function(e){for(var t=[],n=c(e),a=f(e),r=n;r<a;r++)t.push(r);return t},t.lazyStartIndex=function(e){return e.currentSlide-p(e)}),f=t.lazyEndIndex=function(e){return e.currentSlide+d(e)},p=t.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},d=t.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},m=t.getWidth=function(e){return e&&e.offsetWidth||0},h=t.getHeight=function(e){return e&&e.offsetHeight||0},g=t.getSwipeDirection=function(e){var t,n,a,r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,a=Math.atan2(n,t),r=Math.round(180*a/Math.PI),r<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?"left":r>=135&&r<=225?"right":!0===o?r>=35&&r<=135?"up":"down":"vertical"},b=t.canGoNext=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1?t=!1:(e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1)),t},v=(t.extractObject=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},t.initializedState=function(e){var t=i.default.Children.count(e.children),n=Math.ceil(m(s.default.findDOMNode(e.listRef))),a=Math.ceil(m(s.default.findDOMNode(e.trackRef))),r=void 0;if(e.vertical)r=n;else{var o=e.centerMode&&2*parseInt(e.centerPadding);"string"===typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(o*=n/100),r=Math.ceil((n-o)/e.slidesToShow)}var l=s.default.findDOMNode(e.listRef)&&h(s.default.findDOMNode(e.listRef).querySelector('[data-index="0"]')),c=l*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=t-1-e.initialSlide);var p=e.lazyLoadedList||[],d=u({currentSlide:f,lazyLoadedList:p},e);p.concat(d);var g={slideCount:t,slideWidth:r,listWidth:n,trackWidth:a,currentSlide:f,slideHeight:l,listHeight:c,lazyLoadedList:p};return null===e.autoplaying&&e.autoplay&&(g.autoplaying="playing"),g},t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,a=e.fade,o=e.infinite,i=e.index,l=e.slideCount,s=e.lazyLoadedList,c=e.lazyLoad,f=e.currentSlide,p=e.centerMode,d=e.slidesToScroll,m=e.slidesToShow,h=e.useCSS;if(t&&n)return{};var g=i,v=void 0,y=void 0,w=void 0,_={},x={};if(a){if(!o&&(i<0||i>=l))return{};i<0?g=i+l:i>=l&&(g=i-l),c&&s.indexOf(g)<0&&s.push(g),_={animating:!0,currentSlide:g,lazyLoadedList:s},x={animating:!1}}else v=g,g<0?(v=g+l,o?l%d!==0&&(v=l-l%d):v=0):!b(e)&&g>f?g=v=f:p&&g>=l?(g=o?l:l-1,v=o?0:l-1):g>=l&&(v=g-l,o?l%d!==0&&(v=0):v=l-m),y=C(r({},e,{slideIndex:g})),w=C(r({},e,{slideIndex:v})),o||(y===w&&(g=v),y=w),c&&s.concat(u(r({},e,{currentSlide:g}))),h?(_={animating:!0,currentSlide:v,trackStyle:k(r({},e,{left:y})),lazyLoadedList:s},x={animating:!1,currentSlide:v,trackStyle:E(r({},e,{left:w})),swipeLeft:null}):_={currentSlide:v,trackStyle:E(r({},e,{left:w})),lazyLoadedList:s};return{state:_,nextState:x}},t.changeSlide=function(e,t){var n,a,o,i,l,s=e.slidesToScroll,u=e.slidesToShow,c=e.slideCount,f=e.currentSlide,p=e.lazyLoad,d=e.infinite;if(i=c%s!==0,n=i?0:(c-f)%s,"previous"===t.message)o=0===n?s:u-n,l=f-o,p&&!d&&(a=f-o,l=-1===a?c-1:a);else if("next"===t.message)o=0===n?s:n,l=f+o,p&&!d&&(l=(f+s)%c+n);else if("dots"===t.message){if((l=t.index*t.slidesToScroll)===t.currentSlide)return null}else if("children"===t.message){if((l=t.index)===t.currentSlide)return null;if(d){var m=P(r({},e,{targetSlide:l}));l>t.currentSlide&&"left"===m?l-=c:l<t.currentSlide&&"right"===m&&(l+=c)}}else if("index"===t.message&&(l=Number(t.index))===t.currentSlide)return null;return l},t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""},t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&e.preventDefault(),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},t.swipeMove=function(e,t){var n=t.scrolling,a=t.animating,o=t.vertical,i=t.swipeToSlide,l=t.verticalSwiping,s=t.rtl,u=t.currentSlide,c=t.edgeFriction,f=t.edgeDragged,p=t.onEdge,d=t.swiped,m=t.swiping,h=t.slideCount,v=t.slidesToScroll,y=t.infinite,w=t.touchObject,_=t.swipeEvent,k=t.listHeight,x=t.listWidth;if(!n){if(a)return e.preventDefault();o&&i&&l&&e.preventDefault();var S=void 0,T={},P=C(t);w.curX=e.touches?e.touches[0].pageX:e.clientX,w.curY=e.touches?e.touches[0].pageY:e.clientY,w.swipeLength=Math.round(Math.sqrt(Math.pow(w.curX-w.startX,2)));var O=Math.round(Math.sqrt(Math.pow(w.curY-w.startY,2)));if(!l&&!m&&O>10)return{scrolling:!0};l&&(w.swipeLength=O);var N=(s?-1:1)*(w.curX>w.startX?1:-1);l&&(N=w.curY>w.startY?1:-1);var R=Math.ceil(h/v),I=g(t.touchObject,l),j=w.swipeLength;return y||(0===u&&"right"===I||u+1>=R&&"left"===I||!b(t)&&"left"===I)&&(j=w.swipeLength*c,!1===f&&p&&(p(I),T.edgeDragged=!0)),(!d&&_&&(_(I),T.swiped=!0),S=o?P+j*(k/x)*N:s?P-j*N:P+j*N,l&&(S=P+j*N),T=r({},T,{touchObject:w,swipeLeft:S,trackStyle:E(r({},t,{left:S}))}),Math.abs(w.curX-w.startX)<.8*Math.abs(w.curY-w.startY))?T:(w.swipeLength>10&&(T.swiping=!0,e.preventDefault()),T)}},t.swipeEnd=function(e,t){var n=t.dragging,a=t.swipe,o=t.touchObject,i=t.listWidth,l=t.touchThreshold,s=t.verticalSwiping,u=t.listHeight,c=t.currentSlide,f=t.swipeToSlide,p=t.scrolling,d=t.onSwipe;if(!n)return a&&e.preventDefault(),{};var m=s?u/l:i/l,h=g(o,s),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(p)return b;if(!o.swipeLength)return b;if(o.swipeLength>m){e.preventDefault(),d&&d(h);var v=void 0,_=void 0;switch(h){case"left":case"up":_=c+w(t),v=f?y(t,_):_,b.currentDirection=0;break;case"right":case"down":_=c-w(t),v=f?y(t,_):_,b.currentDirection=1;break;default:v=c}b.triggerSlideHandler=v}else{var E=C(t);b.trackStyle=k(r({},t,{left:E}))}return b},t.getNavigableIndexes=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,a=e.infinite?-1*e.slidesToShow:0,r=[];n<t;)r.push(n),n=a+e.slidesToScroll,a+=Math.min(e.slidesToScroll,e.slidesToShow);return r}),y=t.checkNavigable=function(e,t){var n=v(e),a=0;if(t>n[n.length-1])t=n[n.length-1];else for(var r in n){if(t<n[r]){t=a;break}a=n[r]}return t},w=t.getSlideCount=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n=void 0,a=s.default.findDOMNode(e.listRef),r=a.querySelectorAll(".slick-slide");if(Array.from(r).every(function(a){if(e.vertical){if(a.offsetTop+h(a)/2>-1*e.swipeLeft)return n=a,!1}else if(a.offsetLeft-t+m(a)/2>-1*e.swipeLeft)return n=a,!1;return!0}),!n)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-o)||1}return e.slidesToScroll},_=t.checkSpecKeys=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error("Keys Missing:",e)},E=t.getTrackCSS=function(e){_(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var t=void 0,n=void 0,a=e.slideCount+2*e.slidesToShow;e.vertical?n=a*e.slideHeight:t=T(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=r({},o,{WebkitTransform:i,transform:l,msTransform:s})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},k=t.getTrackAnimateCSS=function(e){_(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=E(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},C=t.getTrackLeft=function(e){if(e.unslick)return 0;_(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,a=e.slideIndex,r=e.trackRef,o=e.infinite,i=e.centerMode,l=e.slideCount,u=e.slidesToShow,c=e.slidesToScroll,f=e.slideWidth,p=e.listWidth,d=e.variableWidth,m=e.slideHeight,h=e.fade,g=e.vertical,b=0,v=0;if(h||1===e.slideCount)return 0;var y=0;if(o?(y=-x(e),l%c!==0&&a+c>l&&(y=-(a>l?u-(a-l):l%c)),i&&(y+=parseInt(u/2))):(l%c!==0&&a+c>l&&(y=u-l%c),i&&(y=parseInt(u/2))),b=y*f,v=y*m,t=g?a*m*-1+v:a*f*-1+b,!0===d){var w,E=s.default.findDOMNode(r);if(w=a+x(e),n=E&&E.childNodes[w],t=n?-1*n.offsetLeft:0,!0===i){w=o?a+x(e):a,n=E&&E.children[w],t=0;for(var k=0;k<w;k++)t-=E&&E.children[k]&&E.children[k].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(p-n.offsetWidth)/2}}return t},x=t.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},S=t.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},T=t.getTotalSlides=function(e){return 1===e.slideCount?1:x(e)+e.slideCount+S(e)},P=t.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+O(e)?"left":"right":e.targetSlide<e.currentSlide-N(e)?"right":"left"},O=t.slidesOnRight=function(e){var t=e.slidesToShow,n=e.centerMode,a=e.rtl,r=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(r)>0&&(o+=1),a&&t%2===0&&(o+=1),o}return a?0:t-1},N=t.slidesOnLeft=function(e){var t=e.slidesToShow,n=e.centerMode,a=e.rtl,r=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(r)>0&&(o+=1),a||t%2!==0||(o+=1),o}return a?t-1:0};t.canUseDOM=function(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}},function(e,t){function n(e,t){for(var n=-1,a=null==e?0:e.length,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}e.exports=n},function(e,t,n){function a(e){var t=this.__data__=new r(e);this.size=t.size}var r=n(26),o=n(152),i=n(153),l=n(154),s=n(155),u=n(156);a.prototype.clear=o,a.prototype.delete=i,a.prototype.get=l,a.prototype.has=s,a.prototype.set=u,e.exports=a},function(e,t,n){var a=n(9),r=n(4),o=a(r,"Map");e.exports=o},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}var r=n(163),o=n(170),i=n(172),l=n(173),s=n(174);a.prototype.clear=r,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=l,a.prototype.set=s,e.exports=a},function(e,t){function n(e,t){for(var n=-1,a=t.length,r=e.length;++n<a;)e[r+n]=t[n];return e}e.exports=n},function(e,t,n){var a=n(185),r=n(83),o=Object.prototype,i=o.propertyIsEnumerable,l=Object.getOwnPropertySymbols,s=l?function(e){return null==e?[]:(e=Object(e),a(l(e),function(t){return i.call(e,t)}))}:r;e.exports=s},function(e,t,n){var a=n(186),r=n(7),o=Object.prototype,i=o.hasOwnProperty,l=o.propertyIsEnumerable,s=a(function(){return arguments}())?a:function(e){return r(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},function(e,t,n){(function(e){var a=n(4),r=n(187),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=i&&i.exports===o,s=l?a.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||r;e.exports=c}).call(t,n(51)(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 n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}var a=9007199254740991;e.exports=n},function(e,t,n){function a(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(l.test(e)||!i.test(e)||null!=t&&e in Object(t))}var r=n(6),o=n(38),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/;e.exports=a},function(e,t,n){function a(e){return r(e,i,o)}var r=n(82),o=n(96),i=n(97);e.exports=a},function(e,t,n){var a=n(87),r=a(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=wp.htmlEntities.decodeEntities,s=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.post,n=e.attributes,a=n.newTab?"_blank":"_self";if(n.displayPostImage&&void 0!==t.featured_image_src&&n.imgSize&&t.featured_image_src[n.imgSize]){var r=t.featured_image_src[n.imgSize];return wp.element.createElement("div",{className:"uagb-post__image"},wp.element.createElement("a",{href:t.link,target:a,rel:"noopener noreferrer"},wp.element.createElement("img",{src:r[0],alt:l(t.title.rendered.trim())||__("(Untitled)")})))}return null}}]),t}(React.Component);t.a=s},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=wp.htmlEntities.decodeEntities,s=wp.i18n.__,u=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.post,n=e.attributes,a=n.titleTag,r=n.newTab?"_blank":"_self";return wp.element.createElement(a,{className:"uagb-post__title"},wp.element.createElement("a",{href:t.link,target:r,rel:"noopener noreferrer"},l(t.title.rendered.trim())||s("(Untitled)")))}}]),t}(React.Component);t.a=u},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=wp.date,s=l.dateI18n,u=l.format,c=l.__experimentalGetSettings,f=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.post,n=e.attributes,a=c().formats.date;return wp.element.createElement("div",{className:"uagb-post-grid-byline"},n.displayPostAuthor&&void 0!==t.author_info&&wp.element.createElement("span",{className:"uagb-post__author"},wp.element.createElement("span",{className:"dashicons-admin-users dashicons"}),wp.element.createElement("a",{target:"_blank",href:t.author_info.author_link,rel:"noopener noreferrer"},t.author_info.display_name)),n.displayPostDate&&t.date_gmt&&wp.element.createElement("time",{dateTime:u("c",t.date_gmt),className:"uagb-post__date"},wp.element.createElement("span",{className:"dashicons-calendar dashicons"}),s(a,t.date_gmt)),n.displayPostComment&&void 0!==t.comment_info&&wp.element.createElement("span",{className:"uagb-post__comment"},wp.element.createElement("span",{className:"dashicons-admin-comments dashicons"}),t.comment_info))}}]),t}(React.Component);t.a=f},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=n(210),l=(n.n(i),function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}()),s=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.post,n=e.attributes;if(void 0==t.excerpt)return null;var a=t.excerpt.split(" "),r=t.excerpt,o=n.excerptLength?n.excerptLength:25;if(o>=a.length)r=t.excerpt;else{r=a.slice(0,o).join(" "),r+=" ..."}return n.displayPostExcerpt?wp.element.createElement("div",{className:"uagb-post__excerpt"},wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:r}})):null}}]),t}(React.Component);t.a=s},function(e,t){function n(e){return a.test(e)}var a=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=n},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=wp.i18n.__,s=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.post,n=e.attributes,a=n.newTab?"_blank":"_self";if(n.displayPostLink){var r=n.ctaText?n.ctaText:l("Read More");return wp.element.createElement("div",{className:"uagb-post__cta"},wp.element.createElement("a",{className:"uagb-post__link uagb-text-link",href:t.link,target:a,rel:"noopener noreferrer"},r))}return null}}]),t}(React.Component);t.a=s},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n,r=e.attributes,o=(r.newTab,r.align),i=r.rowGap,l=r.columnGap,s=r.bgColor,u=r.contentPadding,c=r.contentPaddingMobile,f=r.titleColor,p=(r.titleTag,r.titleFontSize),d=r.metaFontSize,m=r.excerptFontSize,h=r.ctaFontSize,g=r.metaColor,b=r.excerptColor,v=r.ctaColor,y=r.ctaBgColor,w=r.ctaHColor,_=r.ctaBgHColor,E=r.titleBottomSpace,k=r.metaBottomSpace,C=r.excerptBottomSpace,x=(r.equalHeight,r.excerptLength,r.overlayOpacity),S=r.bgOverlayColor,T=r.borderWidth,P=r.borderStyle,O=r.borderColor,N=r.borderHColor,R=r.borderRadius,I=r.btnVPadding,j=r.btnHPadding,A={},M=(n={" .uagb-post__items":{"margin-right":-i/2+"px","margin-left":-i/2+"px"}," .uagb-post__items article":{"padding-right":i/2+"px","padding-left":i/2+"px","margin-bottom":l+"px"}," .uagb-post__inner-wrap":{background:s}," .uagb-post__text":{padding:u+"px","text-align":o}," .uagb-post__text .uagb-post__title":{color:f,"font-size":p+"px","margin-bottom":E+"px"}," .uagb-post__text .uagb-post__title a":{color:f,"font-size":p+"px"}," .uagb-post__text .uagb-post-grid-byline":{color:g,"font-size":d+"px","margin-bottom":k+"px"}," .uagb-post__text .uagb-post-grid-byline .uagb-post__author":{color:g,"font-size":d+"px"}," .uagb-post__text .uagb-post-grid-byline .uagb-post__author a":{color:g,"font-size":d+"px"}," .uagb-post__text .uagb-post__excerpt":{color:b,"font-size":m+"px","margin-bottom":C+"px"}," .uagb-post__text .uagb-post__cta":{color:v,"font-size":h+"px",background:y,"border-width":T+"px","border-radius":R+"px","border-color":O,"border-style":P}," .uagb-post__text .uagb-post__cta:hover":{"border-color":N}," .uagb-post__text .uagb-post__cta a":{color:v,"font-size":h+"px",padding:I+"px "+j+"px"}},a(n," .uagb-post__text .uagb-post__cta:hover",{color:w,background:_}),a(n," .uagb-post__text .uagb-post__cta:hover a",{color:w}),a(n," .uagb-post__image:before",{"background-color":S,opacity:x/100}),n);A={" .uagb-post__text":{padding:c+"px"}};var z="";for(var D in M){z+="#"+t+"-"+e.clientId,z+=D+" { ";var L=M[D],B="";for(var F in L)B+=F+": "+L[F]+";";z+=B+" } "}z+="@media only screen and (max-width: 767px) {";for(var D in A){z+="#"+t+"-"+e.clientId,z+=D+" { ";var L=A[D],B="";for(var F in L)B+=F+": "+L[F]+";";z+=B+" } "}return z+=" }"}t.a=r},function(e,t){},function(e,t){},function(e,t,n){var a,r;!function(o,i){a=i,void 0!==(r="function"===typeof a?a.call(t,n,t,e):a)&&(e.exports=r)}("undefined"!=typeof window&&window,function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},a=n[e]=n[e]||[];return-1==a.indexOf(t)&&a.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var a=n.indexOf(t);return-1!=a&&n.splice(a,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var a=this._onceEvents&&this._onceEvents[e],r=0;r<n.length;r++){var o=n[r];a&&a[o]&&(this.off(e,o),delete a[o]),o.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})},function(e,t,n){var a,r;!function(o,i){a=i,void 0!==(r="function"===typeof a?a.call(t,n,t,e):a)&&(e.exports=r)}(window,function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}function t(){}function n(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<u;t++){e[s[t]]=0}return e}function a(e){var t=getComputedStyle(e);return t||l("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function r(){if(!c){c=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var r=a(t);i=200==Math.round(e(r.width)),o.isBoxSizeOuter=i,n.removeChild(t)}}function o(t){if(r(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var o=a(t);if("none"==o.display)return n();var l={};l.width=t.offsetWidth,l.height=t.offsetHeight;for(var c=l.isBorderBox="border-box"==o.boxSizing,f=0;f<u;f++){var p=s[f],d=o[p],m=parseFloat(d);l[p]=isNaN(m)?0:m}var h=l.paddingLeft+l.paddingRight,g=l.paddingTop+l.paddingBottom,b=l.marginLeft+l.marginRight,v=l.marginTop+l.marginBottom,y=l.borderLeftWidth+l.borderRightWidth,w=l.borderTopWidth+l.borderBottomWidth,_=c&&i,E=e(o.width);!1!==E&&(l.width=E+(_?0:h+y));var k=e(o.height);return!1!==k&&(l.height=k+(_?0:g+w)),l.innerWidth=l.width-(h+y),l.innerHeight=l.height-(g+w),l.outerWidth=l.width+b,l.outerHeight=l.height+v,l}}var i,l="undefined"==typeof console?t:function(e){console.error(e)},s=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=s.length,c=!1;return o})},function(e,t,n){function a(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}var r=n(80);e.exports=a},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";(function(t){function a(e,n,a,l,s){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var c;try{if("function"!==typeof e[u]){var f=Error((l||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.");throw f.name="Invariant Violation",f}c=e[u](n,u,l,a,null,o)}catch(e){c=e}if(!c||c instanceof Error||r((l||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in i)){i[c.message]=!0;var p=s?s():"";r("Failed "+a+" type: "+c.message+(null!=p?p:""))}}}var r=function(){};if("production"!==t.env.NODE_ENV){var o=n(68),i={};r=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}e.exports=a}).call(t,n(2))},function(e,t,n){"use strict";(function(t){var a=n(22),r=a;if("production"!==t.env.NODE_ENV){var o=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var r=0,o="Warning: "+e.replace(/%s/g,function(){return n[r++]});"undefined"!==typeof console&&console.error(o);try{throw new Error(o)}catch(e){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,a=Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];o.apply(void 0,[t].concat(a))}}}e.exports=r}).call(t,n(2))},function(e,t,n){"use strict";function a(e){var t=e.attributes,n=t.dateBottomspace,a=t.backgroundColor,r=t.separatorColor,o=t.separatorFillColor,i=t.separatorBg,l=t.separatorBorder,s=t.borderFocus,u=t.verticalSpace,c=t.horizontalSpace,f=t.separatorwidth,p=t.borderwidth,d=t.connectorBgsize,m=t.borderRadius,h=t.bgPadding,g=(t.width,t.readMoreText,t.icon,t.iconColor),b=t.dateFontsize,v=t.dateColor,y=t.iconSize,w=t.iconFocus,_=t.iconBgFocus,E=t.block_id,k=t.headFontSize,C=t.align,x=t.headingColor,S=t.headSpace,T=t.subHeadFontSize,P=t.subHeadingColor;if(e.clientId)var O=e.clientId;else var O=E;var N={};N[".uagb-timeline__heading"]={"font-size":k+"px","text-align":C,color:x},N[".uagb-timeline__heading a"]={"font-size":k+"px","text-align":C,color:x},N[".uagb-timeline__heading-text"]={"margin-bottom":S+"px"},N[".uagb-timeline-desc-content"]={"font-size":T+"px","text-align":C,color:P},N[".uagb-timeline__events-new"]={"text-align":C},N[".uagb-timeline__date-inner"]={"text-align":C},N[".uagb-timeline__center-block .uagb-timeline__day-right .uagb-timeline__arrow:after"]={"border-left-color":a},N[".uagb-timeline__right-block .uagb-timeline__day-right .uagb-timeline__arrow:after"]={"border-left-color":a},N[".uagb-timeline__center-block .uagb-timeline__day-left .uagb-timeline__arrow:after"]={"border-right-color":a},N[".uagb-timeline__left-block .uagb-timeline__day-left .uagb-timeline__arrow:after"]={"border-right-color":a},N[".uagb-timeline__line__inner"]={"background-color":o},N[".uagb-timeline__line"]={"background-color":r,width:f+"px"},N[".uagb-timeline__right-block .uagb-timeline__line"]={right:"calc( "+d+"px / 2 )"},N[".uagb-timeline__left-block .uagb-timeline__line"]={left:"calc( "+d+"px / 2 )"},N[".uagb-timeline__center-block .uagb-timeline__line"]={right:"calc( "+d+"px / 2 )"},N[".uagb-timeline__marker"]={"background-color":i,"min-height":d+"px","min-width":d+"px","line-height":d+"px",border:p+"px solid"+l},N[".uagb-timeline__left-block .uagb-timeline__left .uagb-timeline__arrow"]={height:d+"px"},N[".uagb-timeline__right-block .uagb-timeline__right .uagb-timeline__arrow"]={height:d+"px"},N[".uagb-timeline__center-block .uagb-timeline__left .uagb-timeline__arrow"]={height:d+"px"},N[".uagb-timeline__center-block .uagb-timeline__right .uagb-timeline__arrow"]={height:d+"px"},N[".uagb-timeline__center-block .uagb-timeline__marker"]={"margin-left":c+"px","margin-right":c+"px"},N[".uagb-timeline__field:not(:last-child)"]={"margin-bottom":u+"px"},N[".uagb-timeline__date-hide.uagb-timeline__date-inner"]={"margin-bottom":n+"px",color:v,"font-size":b+"px","text-align":C},N[".uagb-timeline__left-block .uagb-timeline__day-new.uagb-timeline__day-left"]={"margin-left":c+"px"},N[".uagb-timeline__right-block .uagb-timeline__day-new.uagb-timeline__day-right"]={"margin-right":c+"px"},N[".uagb-timeline__date-new"]={color:v,"font-size":b+"px"},N[".uagb-timeline__events-inner-new"]={"background-color":a,"border-radius":m+"px",padding:h+"px"},N[".uagb-timeline__main .uagb-timeline__icon-new"]={color:g,"font-size":y+"px"},N[".uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon"]={background:_,"border-color":s},N[".uagb-timeline__main .uagb-timeline__marker.uagb-timeline__in-view-icon .uagb-timeline__icon-new"]={color:w};var R={};R[".uagb-timeline__center-block .uagb-timeline__marker"]={"margin-left":"0px","margin-right":"0px"},R[".uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-left"]={"margin-left":c+"px"},R[".uagb-timeline__center-block .uagb-timeline__day-new.uagb-timeline__day-right"]={"margin-left":c+"px"};var I="";for(var j in N){I+=".block-editor-page #wpwrap #uagb-ctm-"+O+" "+j+" { ";var A=N[j],M="";for(var z in A)M+=z+": "+A[z]+";";I+=M+" } "}I+="@media(max-width:768px){";for(var j in R){I+=".block-editor-page #wpwrap #uagb-ctm-"+O+" "+j+" { ";var A=R[j],M="";for(var z in A)M+=z+": "+A[z]+";";I+=M+" } "}return I+="}"}t.a=a},function(e,t,n){"use strict";function a(e){var t="uagb-timeline__arrow-top ";"center"==e.arrowlinAlignment?t="uagb-timeline__arrow-center ":"bottom"==e.arrowlinAlignment&&(t="uagb-timeline__arrow-bottom ");var n="uagb-timeline__center-block ";return"left"==e.timelinAlignment?n="uagb-timeline__left-block ":"right"==e.timelinAlignment&&(n="uagb-timeline__right-block "),n+=t+"",n+="uagb-timeline__responsive-"+e.stack+" uagb-timeline",[n]}t.a=a},function(e,t,n){"use strict";function a(e,t){var n="";return"left"==e.timelinAlignment?n="uagb-timeline__widget uagb-timeline__left":"right"==e.timelinAlignment?n="uagb-timeline__widget uagb-timeline__right":"center"==e.timelinAlignment&&(n=t%2=="0"?"uagb-timeline__widget uagb-timeline__right":"uagb-timeline__widget uagb-timeline__left"),[n]}t.a=a},function(e,t,n){"use strict";function a(e,t){var n="";return"left"==e.timelinAlignment?n="uagb-timeline__day-new uagb-timeline__day-left":"right"==e.timelinAlignment?n="uagb-timeline__day-new uagb-timeline__day-right":"center"==e.timelinAlignment&&(n=t%2=="0"?"uagb-timeline__day-new uagb-timeline__day-right":"uagb-timeline__day-new uagb-timeline__day-left"),[n]}t.a=a},function(e,t,n){function a(e){if(!o(e))return!1;var t=r(e);return t==l||t==s||t==i||t==u}var r=n(10),o=n(5),i="[object AsyncFunction]",l="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=a},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(45))},function(e,t){function n(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var a=Function.prototype,r=a.toString;e.exports=n},function(e,t,n){function a(e,t,n,i,l){return e===t||(null==e||null==t||!o(e)&&!o(t)?e!==e&&t!==t:r(e,t,n,i,a,l))}var r=n(175),o=n(7);e.exports=a},function(e,t,n){function a(e,t,n,a,u,c){var f=n&l,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var m=c.get(e);if(m&&c.get(t))return m==t;var h=-1,g=!0,b=n&s?new r:void 0;for(c.set(e,t),c.set(t,e);++h<p;){var v=e[h],y=t[h];if(a)var w=f?a(y,v,h,t,e,c):a(v,y,h,e,t,c);if(void 0!==w){if(w)continue;g=!1;break}if(b){if(!o(t,function(e,t){if(!i(b,t)&&(v===e||u(v,e,n,a,c)))return b.push(t)})){g=!1;break}}else if(v!==y&&!u(v,y,n,a,c)){g=!1;break}}return c.delete(e),c.delete(t),g}var r=n(176),o=n(179),i=n(180),l=1,s=2;e.exports=a},function(e,t,n){var a=n(4),r=a.Uint8Array;e.exports=r},function(e,t,n){function a(e){return r(e,i,o)}var r=n(82),o=n(48),i=n(19);e.exports=a},function(e,t,n){function a(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}var r=n(47),o=n(6);e.exports=a},function(e,t){function n(){return[]}e.exports=n},function(e,t,n){function a(e,t){var n=i(e),a=!n&&o(e),c=!n&&!a&&l(e),p=!n&&!a&&!c&&u(e),d=n||a||c||p,m=d?r(e.length,String):[],h=m.length;for(var g in e)!t&&!f.call(e,g)||d&&("length"==g||c&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,h))||m.push(g);return m}var r=n(85),o=n(49),i=n(6),l=n(50),s=n(31),u=n(86),c=Object.prototype,f=c.hasOwnProperty;e.exports=a},function(e,t){function n(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}e.exports=n},function(e,t,n){var a=n(188),r=n(32),o=n(33),i=o&&o.isTypedArray,l=i?r(i):a;e.exports=l},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){function a(e){return e===e&&!r(e)}var r=n(5);e.exports=a},function(e,t){function n(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=n},function(e,t,n){function a(e,t,n){var a=null==e?void 0:r(e,t);return void 0===a?n:a}var r=n(37);e.exports=a},function(e,t,n){function a(e){return null==e?"":r(e)}var r=n(92);e.exports=a},function(e,t,n){function a(e){if("string"==typeof e)return e;if(i(e))return o(e,a)+"";if(l(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}var r=n(12),o=n(42),i=n(6),l=n(38),s=1/0,u=r?r.prototype:void 0,c=u?u.toString:void 0;e.exports=a},function(e,t){function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},function(e,t,n){function a(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var r=n(95);e.exports=a},function(e,t,n){var a=n(9),r=function(){try{var e=a(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},function(e,t,n){var a=n(47),r=n(55),o=n(48),i=n(83),l=Object.getOwnPropertySymbols,s=l?function(e){for(var t=[];e;)a(t,o(e)),e=r(e);return t}:i;e.exports=s},function(e,t,n){function a(e){return i(e)?r(e,!0):o(e)}var r=n(84),o=n(207),i=n(35);e.exports=a},function(e,t){function n(e,t,n){var a=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++a<r;)o[a]=e[a+t];return o}e.exports=n},function(e,t,n){function a(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}var r=n(220);e.exports=a},function(e,t,n){function a(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l,"");var n=u.test(e);return n||c.test(e)?f(e.slice(2),n?2:8):s.test(e)?i:+e}var r=n(5),o=n(38),i=NaN,l=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;e.exports=a},function(e,t,n){function a(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,l=o(a.length-t,0),s=Array(l);++i<l;)s[i]=a[t+i];i=-1;for(var u=Array(t+1);++i<t;)u[i]=a[i];return u[t]=n(s),r(e,this,u)}}var r=n(234),o=Math.max;e.exports=a},function(e,t,n){var a=n(235),r=n(237),o=r(a);e.exports=o},function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var a=t(e[n]);if(a)return a}}},function(e,t,n){"use strict";var a=e.exports={};a.isIE=function(e){return!!function(){var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/")}()&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}())},a.isLegacyOpera=function(){return!!window.opera}},function(e,t,n){"use strict";t.__esModule=!0;var a=n(291),r=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default=r.default},function(e,t,n){"use strict";var a=!("undefined"===typeof window||!window.document||!window.document.createElement),r={canUseDOM:a,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:a&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:a&&!!window.screen,isInWorker:!a};e.exports=r},function(e,t,n){"use strict";function a(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=a},function(e,t,n){"use strict";function a(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function r(e,t){if(a(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!o.call(t,n[i])||!a(e[n[i]],t[n[i]]))return!1;return!0}var o=Object.prototype.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function a(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?a(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var r=n(294);e.exports=a},function(e,t){function n(e,t){var n=0,a=e.length;for(n;n<a&&!1!==t(e[n],n);n++);}function a(e){return"[object Array]"===Object.prototype.toString.apply(e)}function r(e){return"function"===typeof e}e.exports={isFunction:r,isArray:a,each:n}},function(e,t,n){"use strict";function a(e,t){var n=e.attributes,a=n.align,r=n.contentWidth,o=n.leftPadding,i=n.rightPadding,l=n.topPadding,s=n.bottomPadding,u=n.leftMargin,c=n.rightMargin,f=n.topMargin,p=n.bottomMargin,d=n.width,m=n.backgroundPosition,h=n.backgroundSize,g=n.backgroundAttachment,b=n.backgroundImage,v=n.backgroundColor,y=n.backgroundRepeat,w=n.backgroundType,_=n.gradientColor1,E=n.gradientColor2,k=n.gradientLocation1,C=n.gradientLocation2,x=n.gradientType,S=n.gradientAngle,T=n.borderStyle,P=n.borderWidth,O=n.borderRadius,N=n.borderColor,R={"padding-top":l+"px","padding-bottom":s+"px","padding-left":o+"px","padding-right":i+"px","border-radius":O+"px"};"right"==a?(R["margin-left"]="auto",R["margin-top"]=f+"px",R["margin-bottom"]=p+"px",R["margin-right"]=c+"px"):"left"==a?(R["margin-right"]="auto",R["margin-top"]=f+"px",R["margin-bottom"]=p+"px",R["margin-left"]=u+"px"):"center"==a?(R["margin-right"]="auto",R["margin-left"]="auto",R["margin-top"]=f+"px",R["margin-bottom"]=p+"px"):(R["margin-top"]=f+"px",R["margin-bottom"]=p+"px"),"none"!=T&&(R["border-style"]=T,R["border-width"]=P+"px",R["border-color"]=N);var I=m.replace("-"," "),j="100%";return"boxed"==r&&""!=d&&(j=d+"px"),R["max-width"]=j,"color"===w?R["background-color"]=v:"image"===w?(R["background-image"]=b?"url("+b.url+")":null,R["background-position"]=I,R["background-attachment"]=g,R["background-repeat"]=y,R["background-size"]=h):"gradient"===w&&(R["background-color"]="transparent",R["background-image"]="linear"===x?"linear-gradient("+S+"deg, "+_+" "+k+"%, "+E+" "+C+"%)":"radial-gradient( at center center, "+_+" "+k+"%, "+E+" "+C+"%)"),R}t.a=a},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=wp.editor.RichText,s=wp.i18n.__,u=wp.blocks.createBlock,c=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,a=e.props;return"not_set"!==n?wp.element.createElement(l,{tagName:"div",value:t.prefixTitle,placeholder:s("Write a Prefix"),className:"uagb-ifb-title-prefix",multiline:!1,onChange:function(e){n({prefixTitle:e})},onMerge:a.mergeBlocks,unstableOnSplit:a.insertBlocksAfter?function(e,t){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];n({content:e}),a.insertBlocksAfter([].concat(o,[u("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return a.onReplace([])}}):wp.element.createElement(l.Content,{tagName:"span",value:t.prefixTitle,className:"uagb-ifb-title-prefix"})}}]),t}(React.Component);t.a=c},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=wp.editor.RichText,s=wp.blocks.createBlock,u=wp.i18n.__,c=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,a=e.props;return"not_set"!==n?wp.element.createElement(l,{tagName:t.headingTag,placeholder:u("Write a Heading"),value:t.infoBoxTitle,className:"uagb-ifb-title",onChange:function(e){return n({infoBoxTitle:e})},multiline:!1,onMerge:a.mergeBlocks,unstableOnSplit:a.insertBlocksAfter?function(e,t){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];n({content:e}),a.insertBlocksAfter([].concat(o,[s("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return a.onReplace([])}}):wp.element.createElement(l.Content,{tagName:t.headingTag,value:t.infoBoxTitle,className:"uagb-ifb-title"})}}]),t}(React.Component);t.a=c},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=wp.editor.RichText,s=wp.i18n.__,u=wp.blocks.createBlock,c=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,a=e.props;return"not_set"!==n?wp.element.createElement(l,{tagName:"p",value:t.headingDesc,placeholder:s("Write a Description"),className:"uagb-ifb-desc",onChange:function(e){return n({headingDesc:e})},onMerge:a.mergeBlocks,unstableOnSplit:a.insertBlocksAfter?function(e,t){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];n({content:e}),a.insertBlocksAfter([].concat(o,[u("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return a.onReplace([])}}):wp.element.createElement(l.Content,{tagName:"p",value:t.headingDesc,className:"uagb-ifb-desc"})}}]),t}(React.Component);t.a=c},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=(wp.editor.RichText,wp.i18n.__,function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props.attributes;return wp.element.createElement("div",{className:"uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap"},wp.element.createElement("div",{className:"uagb-ifb-icon-wrap"},wp.element.createElement("span",{className:"uagb-ifb-icon"},wp.element.createElement("span",{className:e.icon}))))}}]),t}(React.Component));t.a=l},function(e,t,n){"use strict";function a(e){var t="uagb-infobox-has-image";"icon"==e.source_type&&(t="uagb-infobox-has-icon");var n="";return n+="uagb-infobox ",n+=t+" ",n+="uagb-infobox-icon-"+e.iconimgPosition+" ","left"!==e.iconimgPosition&&"left-title"!==e.iconimgPosition||(n+="uagb-infobox-left "),"right"!==e.iconimgPosition&&"right-title"!==e.iconimgPosition||(n+="uagb-infobox-right "),"left"!==e.iconimgPosition&&"right"!==e.iconimgPosition||"none"===e.stack||(n+="uagb-infobox-stacked-"+e.stack+" ","right"===e.iconimgPosition&&(n+="uagb-infobox-reverse-order-"+e.stack+" ")),"above-title"===e.iconimgPosition&&"below-title"===e.iconimgPosition||(n+="uagb-infobox-image-valign-"+e.sourceAlign+" "),e.enableBorder&&(n+="uagb-infobox-enable-border "),n+="uagb-infobox-enable-border-radius ",[n]}t.a=a},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){this.props.attributes;return wp.element.createElement("div",{className:"uagb-ifb-separator-parent"},wp.element.createElement("div",{className:"uagb-ifb-separator"}))}}]),t}(React.Component);t.a=l},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=n(0),l=n.n(i),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),u=(wp.editor.RichText,wp.i18n.__,function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),s(t,[{key:"render",value:function(){var e=this.props.attributes,t="_self",n="noopener noreferrer";e.ctaTarget&&(t="_blank");var a="";return""!==e.ctaIcon&&(a=wp.element.createElement("span",{className:l()("uagb-ifb-"+e.ctaType+"-icon","uagb-ifb-align-icon-"+e.ctaIconPosition)},wp.element.createElement("i",{className:e.ctaIcon}))),wp.element.createElement("div",{className:"uagb-ifb-cta uagb-infobox-cta-link-style"},"text"===e.ctaType&&wp.element.createElement("a",{href:e.ctaLink,target:t,className:"uagb-infobox-cta-link",rel:n},"before"===e.ctaIconPosition&&a,wp.element.createElement("span",{className:"uagb-inline-editing"},e.ctaText),"after"===e.ctaIconPosition&&a),"button"===e.ctaType&&wp.element.createElement("div",{className:"uagb-ifb-button-wrapper"},wp.element.createElement("a",{href:e.ctaLink,className:"uagb-infobox-cta-link uagb-ifb-cta-button",target:t,rel:n},a,wp.element.createElement("span",{className:"uagb-ifb-cta-content-wrapper"},wp.element.createElement("span",{className:"uagb-inline-editing "},e.ctaText)))))}}]),t}(React.Component));t.a=u},function(e,t,n){"use strict";function a(e){var t=e.attributes,n=t.headingAlign,a=t.headingColor,r=t.subHeadingColor,o=t.prefixColor,i=t.prefixFontSize,l=t.headFontSize,s=t.subHeadFontSize,u=(t.separatorWidth,t.separatorHeight,t.headSpace),c=(t.separatorSpace,t.subHeadSpace),f=(t.icon,t.iconColor),p=t.iconSize,d=t.iconimgPosition,m=t.block_id,h=t.iconHover,g=t.iconimgBorderRadius,b=t.seperatorStyle,v=t.seperatorWidth,y=t.seperatorColor,w=t.seperatorThickness,_=t.seperatorSpace,E=t.ctaLinkColor,k=t.ctaFontSize,C=(t.ctaBtnSize,t.ctaBtnLinkColor),x=t.ctaBgColor,S=t.ctaBtnVertPadding,T=t.ctaBtnHrPadding,P=t.ctaBorderStyle,O=t.ctaBorderColor,N=t.ctaBorderWidth,R=t.ctaBorderRadius,I=t.prefixSpace,j=t.iconLeftMargin,A=t.iconRightMargin,M=t.iconTopMargin,z=t.iconBottomMargin,D=(t.imageSize,t.imageWidth),L=t.ctaLinkHoverColor,B=t.ctaBgHoverColor,F=t.ctaBorderhoverColor,U=t.ctaIconSpace;if(e.clientId)var W="uagb-infobox-"+e.clientId;else var W="uagb-infobox-"+m;var H={};H[".uagb-ifb-icon"]={height:p+"px",width:p+"px","line-height":p+"px"},H[".uagb-ifb-icon > span"]={"font-size":p+"px",height:p+"px",color:f,width:p+"px","line-height":p+"px"},H[".uagb-ifb-icon:hover > span"]={color:h},H[".uagb-infobox__content-wrap .uagb-ifb-imgicon-wrap"]={"margin-left":j+"px","margin-right":A+"px","margin-top":M+"px","margin-bottom":z+"px"},H[".uagb-ifb-image-content img"]={width:D+"px","max-width":D+"px"},H[".uagb-infobox .uagb-ifb-image-content img"]={"border-radius":g+"px"},"above-title"!=d&&"below-title"!=d||(H[".uagb-infobox__content-wrap"]={"text-align":n}),H[".uagb-infobox-cta-link a"]={"font-size":k+"px",color:E},H[".uagb-infobox-cta-link a:hover"]={color:L},H[".uagb-infobox-cta-link span"]={"font-size":k+"px",color:E},H[".uagb-infobox-cta-link:hover span"]={color:L},H[".uagb-ifb-button-wrapper .uagb-infobox-cta-link span"]={"font-size":k+"px",color:C},H[".uagb-ifb-button-wrapper:hover .uagb-infobox-cta-link span"]={color:L},H[".uagb-ifb-button-wrapper .uagb-infobox-cta-link"]={"font-size":k+"px",color:C,"background-color":x,"border-style":P,"border-color":O,"border-radius":R+"px","border-width":N+"px","padding-top":S+"px","padding-bottom":S+"px","padding-left":T+"px","padding-right":T+"px"},H[".uagb-ifb-button-wrapper:hover .uagb-infobox-cta-link"]={color:L,"background-color":B,"border-color":F},H[".editor-rich-text .uagb-ifb-title-prefix"]={"font-size":i+"px",color:o,"margin-bottom":I+"px"},H[".editor-rich-text .uagb-ifb-title"]={"font-size":l+"px",color:a,"margin-bottom":u+"px"},H[".editor-rich-text .uagb-ifb-desc"]={"font-size":s+"px",color:r,"margin-bottom":c+"px"},H[".uagb-ifb-separator"]={width:v+"%","border-top-width":w+"px","border-top-color":y,"border-top-style":b},H[".uagb-ifb-separator-parent"]={"margin-bottom":_+"px"},H[".uagb-ifb-content"]={padding:"undefined"!=typeof blockPadding?blockPadding+"px":"inherit"},H[".uagb-ifb-align-icon-after"]={"margin-left":U+"px"},H[".uagb-ifb-align-icon-before"]={"margin-right":U+"px"};var V="";for(var q in H){V+=" .block-editor-page #wpwrap #"+W+" "+q+" { ";var G=H[q],$="";for(var Y in G)$+=Y+": "+G[Y]+";";V+=$+" } "}return V}t.a=a},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=(wp.editor.RichText,wp.i18n.__,function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props.attributes,t="";"undefined"!==typeof e.iconImage&&null!==e.iconImage&&""!==e.iconImage&&(t=e.iconImage.url);var n="";if(""!==t){var a=e.iconImage.sizes,r=e.imageSize;return n="undefined"!==typeof a&&"undefined"!==typeof a[r]?a[r].url:t,wp.element.createElement("div",{className:"uagb-ifb-image-icon-content uagb-ifb-imgicon-wrap"},wp.element.createElement("div",{className:"uagb-ifb-image"},wp.element.createElement("div",{className:"uagb-ifb-image-content"},wp.element.createElement("img",{className:"",src:n,alt:e.iconImage.alt}))))}return null}}]),t}(React.Component));t.a=l},function(e,t,n){"use strict";(function(e){function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(){}t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}(n(11)),s=a(n(1)),u=a(n(23)),c=n(122),f=n(123),p="unmounted";t.UNMOUNTED=p;var d="exited";t.EXITED=d;var m="entering";t.ENTERING=m;var h="entered";t.ENTERED=h;t.EXITING="exiting";var g=function(e){function t(t,n){var a;a=e.call(this,t,n)||this;var r,o=n.transitionGroup,i=o&&!o.isMounting?t.enter:t.appear;return a.appearStatus=null,t.in?i?(r=d,a.appearStatus=m):r=h:r=t.unmountOnExit||t.mountOnEnter?p:d,a.state={status:r},a.nextCallback=null,a}o(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===p?{status:d}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==m&&n!==h&&(t=m):n!==m&&n!==h||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,a=this.props.timeout;return e=t=n=a,null!=a&&"number"!==typeof a&&(e=a.exit,t=a.enter,n=a.appear),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=u.default.findDOMNode(this);t===m?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:p})},n.performEnter=function(e,t){var n=this,a=this.props.enter,r=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts();if(!t&&!a)return void this.safeSetState({status:h},function(){n.props.onEntered(e)});this.props.onEnter(e,r),this.safeSetState({status:m},function(){n.props.onEntering(e,r),n.onTransitionEnd(e,o.enter,function(){n.safeSetState({status:h},function(){n.props.onEntered(e,r)})})})},n.performExit=function(e){var t=this,n=this.props.exit,a=this.getTimeouts();if(!n)return void this.safeSetState({status:d},function(){t.props.onExited(e)});this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,a.exit,function(){t.safeSetState({status:d},function(){t.props.onExited(e)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(a){n&&(n=!1,t.nextCallback=null,e(a))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===p)return null;var t=this.props,n=t.children,a=r(t,["children"]);if(delete a.in,delete a.mountOnEnter,delete a.unmountOnExit,delete a.appear,delete a.enter,delete a.exit,delete a.timeout,delete a.addEndListener,delete a.onEnter,delete a.onEntering,delete a.onEntered,delete a.onExit,delete a.onExiting,delete a.onExited,"function"===typeof n)return n(e,a);var o=s.default.Children.only(n);return s.default.cloneElement(o,a)},t}(s.default.Component);g.contextTypes={transitionGroup:l.object},g.childContextTypes={transitionGroup:function(){}},g.propTypes="production"!==e.env.NODE_ENV?{children:l.oneOfType([l.func.isRequired,l.element.isRequired]).isRequired,in:l.bool,mountOnEnter:l.bool,unmountOnExit:l.bool,appear:l.bool,enter:l.bool,exit:l.bool,timeout:function(t){var n="production"!==e.env.NODE_ENV?f.timeoutsShape:{};t.addEndListener||(n=n.isRequired);for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return n.apply(void 0,[t].concat(r))},addEndListener:l.func,onEnter:l.func,onEntering:l.func,onEntered:l.func,onExit:l.func,onExiting:l.func,onExited:l.func}:{},g.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:i,onEntering:i,onEntered:i,onExit:i,onExiting:i,onExited:i},g.UNMOUNTED=0,g.EXITED=1,g.ENTERING=2,g.ENTERED=3,g.EXITING=4;var b=(0,c.polyfill)(g);t.default=b}).call(t,n(2))},function(e,t,n){"use strict";function a(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function r(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}this.setState(t.bind(this))}function o(e,t){try{var n=this.props,a=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,a)}finally{this.props=n,this.state=a}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,l=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?l="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==l){var s=e.displayName||e.name,u="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=a,t.componentWillReceiveProps=r),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var a=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,a)}}return e}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"polyfill",function(){return i}),a.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";function a(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!==typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}}t.__esModule=!0,t.transitionTimeout=a,t.classNamesShape=t.timeoutsShape=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(11)),o=r.default.oneOfType([r.default.number,r.default.shape({enter:r.default.number,exit:r.default.number}).isRequired]);t.timeoutsShape=o;var i=r.default.oneOfType([r.default.string,r.default.shape({enter:r.default.string,exit:r.default.string,active:r.default.string}),r.default.shape({enter:r.default.string,enterDone:r.default.string,enterActive:r.default.string,exit:r.default.string,exitDone:r.default.string,exitActive:r.default.string})]);t.classNamesShape=i},function(e,t,n){"use strict";(function(a){function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i.apply(this,arguments)}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.__esModule=!0,t.default=void 0;var u=r(n(11)),c=r(n(1)),f=n(122),p=n(335),d=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},m="production"!==a.env.NODE_ENV?{component:u.default.any,children:u.default.node,appear:u.default.bool,enter:u.default.bool,exit:u.default.bool,childFactory:u.default.func}:{},h={component:"div",childFactory:function(e){return e}},g=function(e){function t(t,n){var a;a=e.call(this,t,n)||this;var r=a.handleExited.bind(s(s(a)));return a.state={handleExited:r,firstRender:!0},a}l(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){var n=t.children,a=t.handleExited;return{children:t.firstRender?(0,p.getInitialChildMapping)(e,a):(0,p.getNextChildMapping)(e,n,a),firstRender:!1}},n.handleExited=function(e,t){var n=(0,p.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.setState(function(t){var n=i({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,a=o(e,["component","childFactory"]),r=d(this.state.children).map(n);return delete a.appear,delete a.enter,delete a.exit,null===t?r:c.default.createElement(t,a,r)},t}(c.default.Component);g.childContextTypes={transitionGroup:u.default.object.isRequired},g.propTypes="production"!==a.env.NODE_ENV?m:{},g.defaultProps=h;var b=(0,f.polyfill)(g);t.default=b,e.exports=t.default}).call(t,n(2))},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),s=wp.editor.RichText,u=wp.i18n.__,c=wp.blocks.createBlock,f=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.props,o=e.index_value,i=t.test_block[o],l="";i&&"undefined"!==typeof i&&(l=i.name);var f=[].concat(a(t.test_block));return"not_set"!==n?wp.element.createElement(s,{tagName:"div",value:l,placeholder:u("Author Name"),className:"uagb-tm__author-name",onChange:function(e){var t={description:f[o].description,name:e,company:f[o].company,image:f[o].image};f[o]=t,n({test_block:f})},onMerge:r.mergeBlocks,unstableOnSplit:r.insertBlocksAfter?function(e,t){for(var a=arguments.length,o=Array(a>2?a-2:0),i=2;i<a;i++)o[i-2]=arguments[i];n({content:e}),r.insertBlocksAfter([].concat(o,[c("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return r.onReplace([])}}):wp.element.createElement(s.Content,{tagName:"span",value:l,className:"uagb-tm__author-name"})}}]),t}(React.Component);t.a=f},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),s=wp.editor.RichText,u=wp.blocks.createBlock,c=wp.i18n.__,f=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.props,o=e.index_value,i=t.test_block[o],l="";i&&"undefined"!==typeof i&&(l=i.company);var f=[].concat(a(t.test_block));return"not_set"!==n?wp.element.createElement(s,{tagName:"div",value:l,className:"uagb-tm__company",onChange:function(e){var t={description:f[o].description,name:f[o].name,company:e,image:f[o].image};f[o]=t,n({test_block:f})},multiline:!1,placeholder:c("Company Name"),onMerge:r.mergeBlocks,unstableOnSplit:r.insertBlocksAfter?function(e,t){for(var a=arguments.length,o=Array(a>2?a-2:0),i=2;i<a;i++)o[i-2]=arguments[i];n({content:e}),r.insertBlocksAfter([].concat(o,[u("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return r.onReplace([])}}):wp.element.createElement(s.Content,{tagName:"span",value:l,className:"uagb-tm__company"})}}]),t}(React.Component);t.a=f},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),s=wp.editor.RichText,u=wp.i18n.__,c=wp.blocks.createBlock,f=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.props,o=e.index_value,i=t.test_block[o],l="";i&&"undefined"!==typeof i&&(l=i.description);var f=[].concat(a(t.test_block));return"not_set"!==n?wp.element.createElement(s,{tagName:"div",value:l,placeholder:u("Write Description"),className:"uagb-tm__desc",onChange:function(e){var t={description:e,name:f[o].name,company:f[o].company,image:f[o].image};f[o]=t,n({test_block:f})},onMerge:r.mergeBlocks,unstableOnSplit:r.insertBlocksAfter?function(e,t){for(var a=arguments.length,o=Array(a>2?a-2:0),i=2;i<a;i++)o[i-2]=arguments[i];n({content:e}),r.insertBlocksAfter([].concat(o,[c("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return r.onReplace([])}}):wp.element.createElement(s.Content,{tagName:"div",value:l,className:"uagb-tm__desc"})}}]),t}(React.Component);t.a=f},function(e,t,n){"use strict";function a(e){var t="";return t+=" uagb-tm__imgicon-style-"+e.iconimgStyle+" ",t+="uagb-tm__image-position-"+e.imagePosition+" ","left"!=e.imagePosition&&"right"!=e.imagePosition||(t+="uagb-tm__image-aligned-"+e.imageAlignment+" ","none"!==e.stack&&(t+="uagb-tm-stacked-"+e.stack+" ","right"===e.imagePosition&&(t+="uagb-tm-reverse-order-"+e.stack+" "))),t+="uagb-tm__bg-type-"+e.backgroundType+" ",[t]}t.a=a},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=(wp.editor.RichText,wp.i18n.__,function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.index_value,a="",r=t.test_block[n];if(r&&"undefined"!==typeof r){var o=r.image,i="";if("undefined"!==typeof o&&null!==o&&""!==o&&(a=o.url),""!==a){var l=o.sizes,s=t.imageSize;return i="undefined"!==typeof l&&"undefined"!==typeof l[s]?l[s].url:a,wp.element.createElement("div",{className:"uagb-tm__image-content",key:"tm_img-wrap-"+n},wp.element.createElement("div",{className:"uagb-tm__image",key:"tm_img-"+n},wp.element.createElement("img",{className:"",src:i,alt:o.alt})))}return null}return null}}]),t}(React.Component));t.a=l},function(e,t,n){"use strict";var a={facebook:"https://www.facebook.com/sharer.php?u=",twitter:"https://twitter.com/share?url=",google:"https://plus.google.com/share?url=",pinterest:"https://pinterest.com/pin/create/link/?url=",linkedin:"https://www.linkedin.com/shareArticle?url=",digg:"http://digg.com/submit?url=",blogger:"https://www.blogger.com/blog_this.pyra?t&u=",reddit:"https://reddit.com/submit?url=",stumbleupon:"https://www.stumbleupon.com/submit?url=",tumblr:"https://www.tumblr.com/widgets/share/tool?canonicalUrl=",myspace:"https://myspace.com/post?u=",email:"mailto:?body="};t.a=a},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),s=wp.editor.RichText,u=wp.i18n.__,c=wp.blocks.createBlock,f=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.props,o=e.index_value,i=t.rest_menu_item_arr[o],l="";if(i&&"undefined"!==typeof i&&(l=i.title),"not_set"!==n){var f=[].concat(a(t.rest_menu_item_arr));return wp.element.createElement(s,{tagName:t.headingTag,value:l,placeholder:u("Write a Title"),className:"uagb-rm__title",onChange:function(e){var t={description:f[o].description,title:e,price:f[o].price,image:f[o].image};f[o]=t,n({rest_menu_item_arr:f})},onMerge:r.mergeBlocks,unstableOnSplit:r.insertBlocksAfter?function(e,t){for(var a=arguments.length,o=Array(a>2?a-2:0),i=2;i<a;i++)o[i-2]=arguments[i];n({content:e}),r.insertBlocksAfter([].concat(o,[c("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return r.onReplace([])}})}return wp.element.createElement(s.Content,{tagName:t.headingTag,value:l,className:"uagb-rm__title"})}}]),t}(React.Component);t.a=f},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),s=wp.editor.RichText,u=wp.i18n.__,c=wp.blocks.createBlock,f=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.props,o=e.index_value,i=t.rest_menu_item_arr[o],l="";i&&"undefined"!==typeof i&&(l=i.price);var f=[].concat(a(t.rest_menu_item_arr));return"not_set"!==n?wp.element.createElement(s,{tagName:"div",value:l,className:"uagb-rm__price",placeholder:u("Price"),onChange:function(e){var t={description:f[o].description,title:f[o].title,price:e,image:f[o].image};f[o]=t,n({rest_menu_item_arr:f})},multiline:!1,onMerge:r.mergeBlocks,unstableOnSplit:r.insertBlocksAfter?function(e,t){for(var a=arguments.length,o=Array(a>2?a-2:0),i=2;i<a;i++)o[i-2]=arguments[i];n({content:e}),r.insertBlocksAfter([].concat(o,[c("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return r.onReplace([])}}):wp.element.createElement(s.Content,{tagName:"span",value:l,className:"uagb-rm__price"})}}]),t}(React.Component);t.a=f},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),s=wp.editor.RichText,u=wp.i18n.__,c=wp.blocks.createBlock,f=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,r=e.props,o=e.index_value,i=t.rest_menu_item_arr[o],l="";i&&"undefined"!==typeof i&&(l=i.description);var f=[].concat(a(t.rest_menu_item_arr));return"not_set"!==n?wp.element.createElement(s,{tagName:"div",value:l,placeholder:u("Write a Description"),className:"uagb-rm__desc",onChange:function(e){var t={description:e,title:f[o].title,price:f[o].price,image:f[o].image};f[o]=t,n({rest_menu_item_arr:f})},onMerge:r.mergeBlocks,unstableOnSplit:r.insertBlocksAfter?function(e,t){for(var a=arguments.length,o=Array(a>2?a-2:0),i=2;i<a;i++)o[i-2]=arguments[i];n({content:e}),r.insertBlocksAfter([].concat(o,[c("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return r.onReplace([])}}):wp.element.createElement(s.Content,{tagName:"div",value:l,className:"uagb-rm__desc"})}}]),t}(React.Component);t.a=f},function(e,t,n){"use strict";function a(e){var t="",n=0;return e.rest_menu_item_arr.map(function(t,a){var r=e.rest_menu_item_arr[a];if(r&&"undefined"!==typeof r){var o=r.image;"undefined"!==typeof o&&null!==o&&""!==o&&n++}}),n>0&&(t+="uagb-rm__image-position-"+e.imagePosition+" "),t+=" uagb-rm__align-"+e.headingAlign+" ","left"!=e.imagePosition&&"right"!=e.imagePosition||(t+="uagb-rm__image-aligned-"+e.imageAlignment+" ","none"!==e.stack&&(t+="uagb-rm-stacked-"+e.stack+" ","right"===e.imagePosition&&(t+="uagb-rm-reverse-order-"+e.stack+" "))),t+="uagb-rm__desk-column-"+e.columns+" ",t+="uagb-rm__tablet-column-"+e.tcolumns+" ",t+="uagb-rm__mobile-column-"+e.mcolumns+" ",[t]}t.a=a},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=(wp.editor.RichText,wp.i18n.__,function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.index_value,a="",r=t.rest_menu_item_arr[n];if(r&&"undefined"!==typeof r){var o=r.image,i="";if("undefined"!==typeof o&&null!==o&&""!==o&&(a=o.url),""!==a){var l=o.sizes,s=t.imageSize;return i="undefined"!==typeof l&&"undefined"!==typeof l[s]?l[s].url:a,wp.element.createElement("div",{className:"uagb-rm__image-content",key:"rm_img-wrap-"+n},wp.element.createElement("div",{className:"uagb-rm__image",key:"rm_img-"+n},wp.element.createElement("img",{className:"",src:i,alt:o.alt})))}return null}return null}}]),t}(React.Component));t.a=l},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(138),n(141),n(314),n(320),n(327),n(339),n(345),n(351),n(357),n(359),n(365),n(371)},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=n(0),l=(n.n(i),n(139)),s=n(3),u=n(140),c=(n.n(u),function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}()),f=wp.i18n.__,p=wp.blocks,d=p.registerBlockType,m=p.createBlock,h=wp.editor,g=h.AlignmentToolbar,b=h.BlockControls,v=h.InspectorControls,y=h.RichText,w=h.PanelColorSettings,_=h.ColorPalette,E=wp.components,k=E.PanelBody,C=E.SelectControl,x=E.RangeControl,S=wp.element,T=S.Component,P=S.Fragment,O=function(e){function t(){a(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.splitBlock=e.splitBlock.bind(e),e}return o(t,e),c(t,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId});var e=document.createElement("style");e.setAttribute("id","uagb-adv-heading-style-"+this.props.clientId),document.head.appendChild(e)}},{key:"splitBlock",value:function(e,t){for(var n=this.props,a=n.attributes,r=n.insertBlocksAfter,o=n.setAttributes,i=n.onReplace,l=arguments.length,s=Array(l>2?l-2:0),u=2;u<l;u++)s[u-2]=arguments[u];t&&s.push(m("core/paragraph",{content:t})),s.length&&r&&r(s);var c=a.content;e?c!==e&&o({content:e}):i([])}},{key:"render",value:function(){var e=this.props,t=(e.isSelected,e.className),n=e.setAttributes,a=e.insertBlocksAfter,r=e.mergeBlocks,o=e.onReplace,i=e.attributes,s=i.headingTitle,u=i.headingDesc,c=i.headingAlign,p=i.headingColor,d=i.subHeadingColor,h=i.separatorColor,E=i.headingTag,S=i.headFontSize,T=i.subHeadFontSize,O=i.separatorWidth,N=i.seperatorStyle,R=i.separatorHeight,I=i.headSpace,j=i.separatorSpace,A=i.subHeadSpace,M=document.getElementById("uagb-adv-heading-style-"+this.props.clientId);return null!=M&&"undefined"!=typeof M&&(M.innerHTML=Object(l.a)(this.props)),wp.element.createElement(P,null,wp.element.createElement(b,{key:"controls"},wp.element.createElement(g,{value:c,onChange:function(e){return n({headingAlign:e})}})),wp.element.createElement(v,null,wp.element.createElement(k,{title:f("Typography")},wp.element.createElement(C,{label:f("Tag"),value:E,onChange:function(e){return n({headingTag:e})},options:[{value:"h1",label:f("H1")},{value:"h2",label:f("H2")},{value:"h3",label:f("H3")},{value:"h4",label:f("H4")},{value:"h5",label:f("H5")},{value:"h6",label:f("H6")}]}),wp.element.createElement(x,{label:f("Heading Font Size"),value:S,onChange:function(e){return n({headFontSize:e})},min:10,max:100,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:30}),wp.element.createElement(x,{label:f("Sub-Heading Font Size"),value:T,onChange:function(e){return n({subHeadFontSize:e})},min:10,max:100,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:10})),wp.element.createElement(k,{title:f("Separator"),initialOpen:!1},wp.element.createElement(C,{label:f("Style"),value:N,onChange:function(e){return n({seperatorStyle:e})},options:[{value:"none",label:f("None")},{value:"solid",label:f("Solid")},{value:"double",label:f("Double")},{value:"dashed",label:f("Dashed")},{value:"dotted",label:f("Dotted")}]}),"none"!==N&&wp.element.createElement(P,null,wp.element.createElement(x,{label:f("Thickness"),value:R,onChange:function(e){return n({separatorHeight:e})},min:0,max:20,beforeIcon:"",allowReset:!0,initialPosition:3}),wp.element.createElement(x,{label:f("Width"),value:O,onChange:function(e){return n({separatorWidth:e})},min:0,max:100,beforeIcon:"",allowReset:!0,initialPosition:20}))),wp.element.createElement(w,{title:f("Color Settings"),initialOpen:!1,colorSettings:[{value:p,onChange:function(e){return n({headingColor:e})},label:f("Heading Color")},{value:d,onChange:function(e){return n({subHeadingColor:e})},label:f("Sub-Heading Color")}]},"none"!==N&&wp.element.createElement(P,null,wp.element.createElement("p",{className:"uagb-setting-label"},f("Seperator Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:h}}))),wp.element.createElement(_,{value:h,onChange:function(e){return n({separatorColor:e})},allowReset:!0}))),wp.element.createElement(k,{title:f("Spacing"),initialOpen:!1},wp.element.createElement(x,{label:f("Heading Spacing"),value:I,onChange:function(e){return n({headSpace:e})},min:0,max:50,beforeIcon:"",allowReset:!0,initialPosition:0}),"none"!==N&&wp.element.createElement(P,null,wp.element.createElement(x,{label:f("Separator Spacing"),value:j,onChange:function(e){return n({separatorSpace:e})},min:0,max:50,beforeIcon:"",allowReset:!0,initialPosition:0})),wp.element.createElement(x,{label:f("Sub-Heading Spacing"),value:A,onChange:function(e){return n({subHeadSpace:e})},min:0,max:50,beforeIcon:"",allowReset:!0,initialPosition:0}))),wp.element.createElement("div",{className:t,id:"uagb-adv-heading-"+this.props.clientId},wp.element.createElement(y,{tagName:E,placeholder:f("Write a Heading"),value:s,className:"uagb-heading-text",multiline:!1,onChange:function(e){n({headingTitle:e})},onMerge:r,unstableOnSplit:a?function(e,t){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];n({content:e}),a([].concat(o,[m("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return o([])}}),"none"!==N&&wp.element.createElement("div",{className:"uagb-separator-wrap"},wp.element.createElement("div",{className:"uagb-separator"})),wp.element.createElement(y,{tagName:"p",placeholder:f("Write a Description"),value:u,className:"uagb-desc-text",onChange:function(e){return n({headingDesc:e})},onMerge:r,unstableOnSplit:this.splitBlock,onRemove:function(){return o([])}})))}}]),t}(T);d("uagb/advanced-heading",{title:uagb_blocks_info.blocks["uagb/advanced-heading"].title,description:uagb_blocks_info.blocks["uagb/advanced-heading"].description,icon:s.a.advanced_heading,keywords:[f("advanced heading"),f("uagb")],category:uagb_blocks_info.category,attributes:{block_id:{type:"string"},headingTitle:{source:"html",selector:"h1,h2,h3,h4,h5,h6"},headingDesc:{source:"html",selector:"p",default:""},headingAlign:{type:"string",default:"center"},headingColor:{type:"string"},subHeadingColor:{type:"string"},separatorColor:{type:"string"},headingTag:{type:"string",default:"h2"},seperatorStyle:{type:"string",default:"solid"},separatorHeight:{type:"number"},separatorWidth:{type:"number"},headFontSize:{type:"number"},subHeadFontSize:{type:"number"},headSpace:{type:"number",default:15},separatorSpace:{type:"number",default:15},subHeadSpace:{type:"number"}},transforms:{from:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return console.log(t),m("uagb/advanced-heading",{headingDesc:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return console.log(t),m("uagb/advanced-heading",{headingTitle:t,headingTag:"h3"})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.content;return console.log(t),m("core/paragraph",{content:t})}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.content;return console.log(t),m("core/heading",{content:t})}}]},edit:O,save:function(e){var t=e.attributes,n=t.block_id,a=t.headingTitle,r=t.headingDesc,o=t.headingTag,i=t.seperatorStyle,l="";return"none"!==i&&(l=wp.element.createElement("div",{className:"uagb-separator-wrap"},wp.element.createElement("div",{className:"uagb-separator"}))),wp.element.createElement("div",{className:e.className,id:"uagb-adv-heading-"+n},wp.element.createElement(y.Content,{tagName:o,value:a,className:"uagb-heading-text"}),l,wp.element.createElement(y.Content,{tagName:"p",value:r,className:"uagb-desc-text"}))}})},function(e,t,n){"use strict";function a(e){var t=e.attributes,n=t.headingAlign,a=t.headingTag,r=t.headFontSize,o=t.headingColor,i=t.headSpace,l=t.seperatorStyle,s=t.separatorHeight,u=t.separatorWidth,c=t.separatorColor,f=t.separatorSpace,p=t.subHeadFontSize,d=t.subHeadingColor,m=t.subHeadSpace,h={" .uagb-separator-wrap":{"text-align":n}," .editor-rich-text .uagb-desc-text":{"text-align":n,"font-size":p+"px",color:d,"margin-bottom":m+"px"}};h[" .editor-rich-text "+a+".uagb-heading-text"]={"text-align":n,"font-size":r+"px",color:o,"margin-bottom":i+"px"},"none"!==l&&(h[" .uagb-separator"]={"border-top-style":l,"border-top-width":s+"px",width:u+"%","border-color":c,"margin-bottom":f+"px"});var g="";for(var b in h){g+=".block-editor-page #wpwrap #uagb-adv-heading-"+e.clientId,g+=b+" { ";var v=h[b],y="";for(var w in v)y+=w+": "+v[w]+";";g+=y+" } "}return g}t.a=a},function(e,t){},function(e,t,n){"use strict";n(142),n(221),n(288)},function(e,t,n){"use strict";var a=n(143),r=n(3),o=n(63),i=(n.n(o),n(64)),l=(n.n(i),wp.i18n.__);(0,wp.blocks.registerBlockType)("uagb/post-grid",{title:uagb_blocks_info.blocks["uagb/post-grid"].title,description:uagb_blocks_info.blocks["uagb/post-grid"].description,icon:r.a.post_grid,category:uagb_blocks_info.category,keywords:[l("post"),l("grid"),l("uagb")],edit:a.a,save:function(){return null}})},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=n(24),l=n.n(i),s=n(25),u=n.n(s),c=n(209),f=n(62),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),m=wp.element,h=m.Component,g=m.Fragment,b=wp.i18n.__,v=wp.components,y=v.PanelBody,w=v.Placeholder,_=v.QueryControls,E=v.RangeControl,k=v.SelectControl,C=v.Spinner,x=v.ToggleControl,S=v.TabPanel,T=v.TextControl,P=wp.editor,O=P.InspectorControls,N=P.BlockAlignmentToolbar,R=P.BlockControls,I=P.ColorPalette,j=wp.data.withSelect,A=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),d(t,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId});var e=document.createElement("style");e.setAttribute("id","uagb-post-grid-style-"+this.props.clientId),document.head.appendChild(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.categoriesList,a=e.setAttributes,r=e.latestPosts,o=(t.block_id,t.displayPostDate),i=t.displayPostComment,l=t.displayPostExcerpt,s=t.displayPostAuthor,u=t.displayPostImage,d=t.imgSize,m=t.imgPosition,h=t.displayPostLink,v=t.newTab,P=t.ctaText,j=t.borderWidth,A=t.borderStyle,M=t.borderColor,z=t.borderHColor,D=t.borderRadius,L=t.btnVPadding,B=t.btnHPadding,F=t.align,U=t.columns,W=t.tcolumns,H=t.mcolumns,V=t.order,q=t.orderBy,G=t.categories,$=t.postsToShow,Y=t.rowGap,K=t.columnGap,Q=t.bgColor,X=t.contentPadding,J=t.contentPaddingMobile,Z=t.titleColor,ee=t.titleTag,te=t.titleFontSize,ne=t.metaFontSize,ae=t.excerptFontSize,re=t.ctaFontSize,oe=t.metaColor,ie=t.excerptColor,le=t.ctaColor,se=t.ctaBgColor,ue=t.ctaHColor,ce=t.ctaBgHColor,fe=t.titleBottomSpace,pe=t.metaBottomSpace,de=t.excerptBottomSpace,me=t.equalHeight,he=t.excerptLength,ge=t.overlayOpacity,be=t.bgOverlayColor,ve=wp.element.createElement(g,null,wp.element.createElement("p",{className:"uagb-setting-label"},b("Hover Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ue}}))),wp.element.createElement(I,{value:ue,onChange:function(e){return a({ctaHColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},b("Background Hover Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ce}}))),wp.element.createElement(I,{value:ce,onChange:function(e){return a({ctaBgHColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},b("Border Hover Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:z}}))),wp.element.createElement(I,{value:z,onChange:function(e){return a({borderHColor:e})},allowReset:!0})),ye=wp.element.createElement(g,null,wp.element.createElement("p",{className:"uagb-setting-label"},b("Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:le}}))),wp.element.createElement(I,{value:le,onChange:function(e){return a({ctaColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},b("Background Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:se}}))),wp.element.createElement(I,{value:se,onChange:function(e){return a({ctaBgColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},b("Border Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:M}}))),wp.element.createElement(I,{value:M,onChange:function(e){return a({borderColor:e})},allowReset:!0})),we=wp.element.createElement(O,null,wp.element.createElement(y,{title:b("General")},wp.element.createElement(_,p({order:V,orderBy:q},{numberOfItems:$,categoriesList:n,selectedCategoryId:G,onOrderChange:function(e){return a({order:e})},onOrderByChange:function(e){return a({orderBy:e})},onCategoryChange:function(e){return a({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return a({postsToShow:e})}})),wp.element.createElement(E,{label:b("Columns"),value:U,onChange:function(e){return a({columns:e})},min:1,max:Ee?Math.min(4,r.length):4}),wp.element.createElement(E,{label:b("Columns (Tablet)"),value:W,onChange:function(e){return a({tcolumns:e})},min:1,max:Ee?Math.min(4,r.length):4}),wp.element.createElement(E,{label:b("Columns (Mobile)"),value:H,onChange:function(e){return a({mcolumns:e})},min:1,max:Ee?Math.min(4,r.length):4}),wp.element.createElement(x,{label:b("Equal Height"),checked:me,onChange:function(e){return a({equalHeight:!me})}})),wp.element.createElement(y,{title:b("Image"),initialOpen:!1},wp.element.createElement(x,{label:b("Show Featured Image"),checked:u,onChange:function(e){return a({displayPostImage:!u})}}),1==u&&wp.element.createElement(k,{label:b("Image Sizes"),value:d,onChange:function(e){return a({imgSize:e})},options:[{value:"thumbnail",label:b("Thumbnail")},{value:"medium",label:b("Medium")},{value:"medium_large",label:b("Medium Large")},{value:"large",label:b("Large")}]}),1==u&&wp.element.createElement(k,{label:b("Image Position"),value:m,onChange:function(e){return a({imgPosition:e})},options:[{value:"top",label:b("Top")},{value:"background",label:b("Background")}]}),1==u&&"background"==m&&wp.element.createElement(g,null,wp.element.createElement("p",{className:"uagb-setting-label"},b("Background Overlay Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:be}}))),wp.element.createElement(I,{value:be,onChange:function(e){return a({bgOverlayColor:e})},allowReset:!0}),wp.element.createElement(E,{label:b("Overlay Opacity"),value:ge,onChange:function(e){return a({overlayOpacity:e})},min:0,max:100,allowReset:!0}))),wp.element.createElement(y,{title:b("Content"),initialOpen:!1},wp.element.createElement(x,{label:b("Show Author"),checked:s,onChange:function(e){return a({displayPostAuthor:!s})}}),wp.element.createElement(x,{label:b("Show Date"),checked:o,onChange:function(e){return a({displayPostDate:!o})}}),wp.element.createElement(x,{label:b("Show Comment"),checked:i,onChange:function(e){return a({displayPostComment:!i})}}),wp.element.createElement(x,{label:b("Show Excerpt"),checked:l,onChange:function(e){return a({displayPostExcerpt:!l})}}),l&&wp.element.createElement(E,{label:b("Excerpt Length"),value:he,onChange:function(e){return a({excerptLength:e})},min:1,max:50,allowReset:!0})),wp.element.createElement(y,{title:b("Read More Link"),initialOpen:!1},wp.element.createElement(x,{label:b("Show Read More Link"),checked:h,onChange:function(e){return a({displayPostLink:!h})}}),wp.element.createElement(x,{label:b("Open links in New Tab"),checked:v,onChange:function(e){return a({newTab:!v})}}),h&&wp.element.createElement(g,null,wp.element.createElement(T,{label:b("Text"),value:P,onChange:function(e){return a({ctaText:e})}}),wp.element.createElement(E,{label:b("Button Text Font Size"),value:re,onChange:function(e){return a({ctaFontSize:e})},min:1,max:50,beforeIcon:"editor-textcolor",allowReset:!0}),wp.element.createElement(k,{label:b("Border Style"),value:A,onChange:function(e){return a({borderStyle:e})},options:[{value:"none",label:b("None")},{value:"solid",label:b("Solid")},{value:"dashed",label:b("Dashed")},{value:"dotted",label:b("Dotted")},{value:"double",label:b("Double")}]}),wp.element.createElement(E,{label:b("Button Border"),value:j,onChange:function(e){return a({borderWidth:e})},min:0,max:10,allowReset:!0}),wp.element.createElement(E,{label:b("Button Border Radius"),value:D,onChange:function(e){return a({borderRadius:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Button Vertical Padding"),value:L,onChange:function(e){return a({btnVPadding:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Button Horizontal Padding"),value:B,onChange:function(e){return a({btnHPadding:e})},min:0,max:50,allowReset:!0}),wp.element.createElement("p",{className:"uagb-inspect-tab-title"},wp.element.createElement("strong",null,b("Colors"))),wp.element.createElement(S,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:b("Normal"),className:"uagb-normal-tab"},{name:"hover",title:b("Hover"),className:"uagb-hover-tab"}]},function(e){var t=void 0;return t="hover"===e.name?ve:ye,wp.element.createElement("div",null,t)}))),wp.element.createElement(y,{title:b("Typography"),initialOpen:!1},wp.element.createElement(k,{label:b("Title Tag"),value:ee,onChange:function(e){return a({titleTag:e})},options:[{value:"h1",label:b("H1")},{value:"h2",label:b("H2")},{value:"h3",label:b("H3")},{value:"h4",label:b("H4")},{value:"h5",label:b("H5")},{value:"h6",label:b("H6")}]}),wp.element.createElement(E,{label:b("Title Font Size"),value:te,onChange:function(e){return a({titleFontSize:e})},min:1,max:50,beforeIcon:"editor-textcolor",allowReset:!0}),(s||o||i)&&wp.element.createElement(E,{label:b("Meta Font Size"),value:ne,onChange:function(e){return a({metaFontSize:e})},min:1,max:50,beforeIcon:"editor-textcolor",allowReset:!0}),l&&wp.element.createElement(E,{label:b("Excerpt Font Size"),value:ae,onChange:function(e){return a({excerptFontSize:e})},min:1,max:50,beforeIcon:"editor-textcolor",allowReset:!0})),wp.element.createElement(y,{title:b("Colors"),initialOpen:!1},"top"==m&&wp.element.createElement(g,null,wp.element.createElement("p",{className:"uagb-setting-label"},b("Blog Background Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:Q}}))),wp.element.createElement(I,{value:Q,onChange:function(e){return a({bgColor:e})},allowReset:!0})),wp.element.createElement(g,null,wp.element.createElement("p",{className:"uagb-setting-label"},b("Title Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:Z}}))),wp.element.createElement(I,{value:Z,onChange:function(e){return a({titleColor:e})},allowReset:!0})),wp.element.createElement(g,null,wp.element.createElement("p",{className:"uagb-setting-label"},b("Meta Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:oe}}))),wp.element.createElement(I,{value:oe,onChange:function(e){return a({metaColor:e})}})),1==l&&wp.element.createElement(g,null,wp.element.createElement("p",{className:"uagb-setting-label"},b("Excerpt Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ie}}))),wp.element.createElement(I,{value:ie,onChange:function(e){return a({excerptColor:e})},allowReset:!0}))),wp.element.createElement(y,{title:b("Spacing"),initialOpen:!1},wp.element.createElement(E,{label:b("Row Gap"),value:Y,onChange:function(e){return a({rowGap:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Column Gap"),value:K,onChange:function(e){return a({columnGap:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Content Padding"),value:X,onChange:function(e){return a({contentPadding:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Content Padding (Mobile)"),value:J,onChange:function(e){return a({contentPaddingMobile:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Title Bottom Spacing"),value:fe,onChange:function(e){return a({titleBottomSpace:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Meta Bottom Spacing"),value:pe,onChange:function(e){return a({metaBottomSpace:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Excerpt Bottom Spacing"),value:de,onChange:function(e){return a({excerptBottomSpace:e})},min:0,max:50,allowReset:!0}))),_e=document.getElementById("uagb-post-grid-style-"+this.props.clientId);null!=_e&&"undefined"!=typeof _e&&(_e.innerHTML=Object(f.a)(this.props,"uagb-post__grid"));var Ee=Array.isArray(r)&&r.length;return Ee?wp.element.createElement(g,null,we,wp.element.createElement(R,null,wp.element.createElement(N,{value:F,onChange:function(e){a({align:e})},controls:["left","center","right"]})),wp.element.createElement(c.a,{attributes:t,className:this.props.className,latestPosts:r,block_id:this.props.clientId})):wp.element.createElement(g,null,we,wp.element.createElement(w,{icon:"admin-post",label:uagb_blocks_info.blocks["uagb/post-grid"].title},Array.isArray(r)?b("No posts found."):wp.element.createElement(C,null)))}}]),t}(h);t.a=j(function(e,t){var n=t.attributes,a=n.categories,r=n.postsToShow,o=n.order,i=n.orderBy,s=e("core"),c=s.getEntityRecords,f=u()({categories:a,order:o,orderby:i,per_page:r},function(e){return!l()(e)}),p={per_page:100};return{latestPosts:c("postType","post",f),categoriesList:c("taxonomy","category",p)}})(A)},function(e,t,n){function a(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?l(e)?o(e[0],e[1]):r(e):s(e)}var r=n(145),o=n(196),i=n(39),l=n(6),s=n(203);e.exports=a},function(e,t,n){function a(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}var r=n(146),o=n(195),i=n(89);e.exports=a},function(e,t,n){function a(e,t,n,a){var s=n.length,u=s,c=!a;if(null==e)return!u;for(e=Object(e);s--;){var f=n[s];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++s<u;){f=n[s];var p=f[0],d=e[p],m=f[1];if(c&&f[2]){if(void 0===d&&!(p in e))return!1}else{var h=new r;if(a)var g=a(d,m,p,e,t,h);if(!(void 0===g?o(m,d,i|l,a,h):g))return!1}}return!0}var r=n(43),o=n(78),i=1,l=2;e.exports=a},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function a(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}var r=n(27),o=Array.prototype,i=o.splice;e.exports=a},function(e,t,n){function a(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}var r=n(27);e.exports=a},function(e,t,n){function a(e){return r(this.__data__,e)>-1}var r=n(27);e.exports=a},function(e,t,n){function a(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}var r=n(27);e.exports=a},function(e,t,n){function a(){this.__data__=new r,this.size=0}var r=n(26);e.exports=a},function(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function a(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<l-1)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}var r=n(26),o=n(44),i=n(46),l=200;e.exports=a},function(e,t,n){function a(e){return!(!i(e)||o(e))&&(r(e)?m:u).test(l(e))}var r=n(75),o=n(160),i=n(5),l=n(77),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,p=c.toString,d=f.hasOwnProperty,m=RegExp("^"+p.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=a},function(e,t,n){function a(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var a=!0}catch(e){}var r=l.call(e);return a&&(t?e[s]=n:delete e[s]),r}var r=n(12),o=Object.prototype,i=o.hasOwnProperty,l=o.toString,s=r?r.toStringTag:void 0;e.exports=a},function(e,t){function n(e){return r.call(e)}var a=Object.prototype,r=a.toString;e.exports=n},function(e,t,n){function a(e){return!!o&&o in e}var r=n(161),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=a},function(e,t,n){var a=n(4),r=a["__core-js_shared__"];e.exports=r},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t,n){function a(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}var r=n(164),o=n(26),i=n(44);e.exports=a},function(e,t,n){function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}var r=n(165),o=n(166),i=n(167),l=n(168),s=n(169);a.prototype.clear=r,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=l,a.prototype.set=s,e.exports=a},function(e,t,n){function a(){this.__data__=r?r(null):{},this.size=0}var r=n(29);e.exports=a},function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},function(e,t,n){function a(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return l.call(t,e)?t[e]:void 0}var r=n(29),o="__lodash_hash_undefined__",i=Object.prototype,l=i.hasOwnProperty;e.exports=a},function(e,t,n){function a(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}var r=n(29),o=Object.prototype,i=o.hasOwnProperty;e.exports=a},function(e,t,n){function a(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}var r=n(29),o="__lodash_hash_undefined__";e.exports=a},function(e,t,n){function a(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}var r=n(30);e.exports=a},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function a(e){return r(this,e).get(e)}var r=n(30);e.exports=a},function(e,t,n){function a(e){return r(this,e).has(e)}var r=n(30);e.exports=a},function(e,t,n){function a(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}var r=n(30);e.exports=a},function(e,t,n){function a(e,t,n,a,g,v){var y=u(e),w=u(t),_=y?m:s(e),E=w?m:s(t);_=_==d?h:_,E=E==d?h:E;var k=_==h,C=E==h,x=_==E;if(x&&c(e)){if(!c(t))return!1;y=!0,k=!1}if(x&&!k)return v||(v=new r),y||f(e)?o(e,t,n,a,g,v):i(e,t,_,n,a,g,v);if(!(n&p)){var S=k&&b.call(e,"__wrapped__"),T=C&&b.call(t,"__wrapped__");if(S||T){var P=S?e.value():e,O=T?t.value():t;return v||(v=new r),g(P,O,n,a,v)}}return!!x&&(v||(v=new r),l(e,t,n,a,g,v))}var r=n(43),o=n(79),i=n(181),l=n(184),s=n(36),u=n(6),c=n(50),f=n(86),p=1,d="[object Arguments]",m="[object Array]",h="[object Object]",g=Object.prototype,b=g.hasOwnProperty;e.exports=a},function(e,t,n){function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}var r=n(46),o=n(177),i=n(178);a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){function n(e){return this.__data__.set(e,a),this}var a="__lodash_hash_undefined__";e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t){function n(e,t){for(var n=-1,a=null==e?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}e.exports=n},function(e,t){function n(e,t){return e.has(t)}e.exports=n},function(e,t,n){function a(e,t,n,a,r,k,x){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!k(new o(e),new o(t)));case p:case d:case g:return i(+e,+t);case m:return e.name==t.name&&e.message==t.message;case b:case y:return e==t+"";case h:var S=s;case v:var T=a&c;if(S||(S=u),e.size!=t.size&&!T)return!1;var P=x.get(e);if(P)return P==t;a|=f,x.set(e,t);var O=l(S(e),S(t),a,r,k,x);return x.delete(e),O;case w:if(C)return C.call(e)==C.call(t)}return!1}var r=n(12),o=n(80),i=n(28),l=n(79),s=n(182),u=n(183),c=1,f=2,p="[object Boolean]",d="[object Date]",m="[object Error]",h="[object Map]",g="[object Number]",b="[object RegExp]",v="[object Set]",y="[object String]",w="[object Symbol]",_="[object ArrayBuffer]",E="[object DataView]",k=r?r.prototype:void 0,C=k?k.valueOf:void 0;e.exports=a},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,a){n[++t]=[a,e]}),n}e.exports=n},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=n},function(e,t,n){function a(e,t,n,a,i,s){var u=n&o,c=r(e),f=c.length;if(f!=r(t).length&&!u)return!1;for(var p=f;p--;){var d=c[p];if(!(u?d in t:l.call(t,d)))return!1}var m=s.get(e);if(m&&s.get(t))return m==t;var h=!0;s.set(e,t),s.set(t,e);for(var g=u;++p<f;){d=c[p];var b=e[d],v=t[d];if(a)var y=u?a(v,b,d,t,e,s):a(b,v,d,e,t,s);if(!(void 0===y?b===v||i(b,v,n,a,s):y)){h=!1;break}g||(g="constructor"==d)}if(h&&!g){var w=e.constructor,_=t.constructor;w!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(h=!1)}return s.delete(e),s.delete(t),h}var r=n(81),o=1,i=Object.prototype,l=i.hasOwnProperty;e.exports=a},function(e,t){function n(e,t){for(var n=-1,a=null==e?0:e.length,r=0,o=[];++n<a;){var i=e[n];t(i,n,e)&&(o[r++]=i)}return o}e.exports=n},function(e,t,n){function a(e){return o(e)&&r(e)==i}var r=n(10),o=n(7),i="[object Arguments]";e.exports=a},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){function a(e){return i(e)&&o(e.length)&&!!l[r(e)]}var r=n(10),o=n(52),i=n(7),l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l["[object Arguments]"]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l["[object Function]"]=l["[object Map]"]=l["[object Number]"]=l["[object Object]"]=l["[object RegExp]"]=l["[object Set]"]=l["[object String]"]=l["[object WeakMap]"]=!1,e.exports=a},function(e,t,n){function a(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))l.call(e,n)&&"constructor"!=n&&t.push(n);return t}var r=n(34),o=n(190),i=Object.prototype,l=i.hasOwnProperty;e.exports=a},function(e,t,n){var a=n(87),r=a(Object.keys,Object);e.exports=r},function(e,t,n){var a=n(9),r=n(4),o=a(r,"DataView");e.exports=o},function(e,t,n){var a=n(9),r=n(4),o=a(r,"Promise");e.exports=o},function(e,t,n){var a=n(9),r=n(4),o=a(r,"Set");e.exports=o},function(e,t,n){var a=n(9),r=n(4),o=a(r,"WeakMap");e.exports=o},function(e,t,n){function a(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}var r=n(88),o=n(19);e.exports=a},function(e,t,n){function a(e,t){return l(e)&&s(t)?u(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,f|p)}}var r=n(78),o=n(90),i=n(200),l=n(53),s=n(88),u=n(89),c=n(14),f=1,p=2;e.exports=a},function(e,t,n){var a=n(198),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=a(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,function(e,n,a,r){t.push(a?r.replace(o,"$1"):n||e)}),t});e.exports=i},function(e,t,n){function a(e){var t=r(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}var r=n(199),o=500;e.exports=a},function(e,t,n){function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var a=arguments,r=t?t.apply(this,a):a[0],o=n.cache;if(o.has(r))return o.get(r);var i=e.apply(this,a);return n.cache=o.set(r,i)||o,i};return n.cache=new(a.Cache||r),n}var r=n(46),o="Expected a function";a.Cache=r,e.exports=a},function(e,t,n){function a(e,t){return null!=e&&o(e,t,r)}var r=n(201),o=n(202);e.exports=a},function(e,t){function n(e,t){return null!=e&&t in Object(e)}e.exports=n},function(e,t,n){function a(e,t,n){t=r(t,e);for(var a=-1,c=t.length,f=!1;++a<c;){var p=u(t[a]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++a!=c?f:!!(c=null==e?0:e.length)&&s(c)&&l(p,c)&&(i(e)||o(e))}var r=n(13),o=n(49),i=n(6),l=n(31),s=n(52),u=n(14);e.exports=a},function(e,t,n){function a(e){return i(e)?r(l(e)):o(e)}var r=n(93),o=n(204),i=n(53),l=n(14);e.exports=a},function(e,t,n){function a(e){return function(t){return r(t,e)}}var r=n(37);e.exports=a},function(e,t,n){function a(e,t,n){for(var a=-1,l=t.length,s={};++a<l;){var u=t[a],c=r(e,u);n(c,u)&&o(s,i(u,e),c)}return s}var r=n(37),o=n(206),i=n(13);e.exports=a},function(e,t,n){function a(e,t,n,a){if(!l(e))return e;t=o(t,e);for(var u=-1,c=t.length,f=c-1,p=e;null!=p&&++u<c;){var d=s(t[u]),m=n;if(u!=f){var h=p[d];m=a?a(h,d,p):void 0,void 0===m&&(m=l(h)?h:i(t[u+1])?[]:{})}r(p,d,m),p=p[d]}return e}var r=n(40),o=n(13),i=n(31),l=n(5),s=n(14);e.exports=a},function(e,t,n){function a(e){if(!r(e))return i(e);var t=o(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}var r=n(5),o=n(34),i=n(208),l=Object.prototype,s=l.hasOwnProperty;e.exports=a},function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=n(0),l=n.n(i),s=n(56),u=n(57),c=n(58),f=n(59),p=n(61),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),m=(wp.htmlEntities.decodeEntities,function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,a=e.latestPosts,r=e.block_id,o=(t.displayPostImage,t.columns),i=t.tcolumns,d=t.mcolumns,m=t.imgPosition,h=t.postsToShow,g=(t.rowGap,t.columnGap,t.bgColor,t.contentPadding,t.equalHeight),b=g?"uagb-post__equal-height":"",v=a.length>h?a.slice(0,h):a;return wp.element.createElement("div",{className:l()(n,"uagb-post-grid","uagb-post__image-position-"+m),id:"uagb-post__grid-"+r},wp.element.createElement("div",{className:l()("is-grid","uagb-post__columns-"+o,"uagb-post__columns-tablet-"+i,"uagb-post__columns-mobile-"+d,"uagb-post__items",""+b)},v.map(function(e,n){return wp.element.createElement("article",{key:n},wp.element.createElement("div",{className:"uagb-post__inner-wrap"},wp.element.createElement(s.a,{post:e,attributes:t}),wp.element.createElement("div",{className:"uagb-post__text"},wp.element.createElement(u.a,{post:e,attributes:t}),wp.element.createElement(c.a,{post:e,attributes:t}),wp.element.createElement(f.a,{post:e,attributes:t}),wp.element.createElement(p.a,{post:e,attributes:t}))))})))}}]),t}(React.Component));t.a=m},function(e,t,n){function a(e,t){var n=d,a=m;if(l(t)){var g="separator"in t?t.separator:g;n="length"in t?f(t.length):n,a="omission"in t?r(t.omission):a}e=p(e);var b=e.length;if(i(e)){var v=c(e);b=v.length}if(n>=b)return e;var y=n-u(a);if(y<1)return a;var w=v?o(v,0,y).join(""):e.slice(0,y);if(void 0===g)return w+a;if(v&&(y+=w.length-y),s(g)){if(e.slice(y).search(g)){var _,E=w;for(g.global||(g=RegExp(g.source,p(h.exec(g))+"g")),g.lastIndex=0;_=g.exec(E);)var k=_.index;w=w.slice(0,void 0===k?y:k)}}else if(e.indexOf(r(g),y)!=y){var C=w.lastIndexOf(g);C>-1&&(w=w.slice(0,C))}return w+a}var r=n(92),o=n(211),i=n(60),l=n(5),s=n(212),u=n(214),c=n(217),f=n(99),p=n(91),d=30,m="...",h=/\w*$/;e.exports=a},function(e,t,n){function a(e,t,n){var a=e.length;return n=void 0===n?a:n,!t&&n>=a?e:r(e,t,n)}var r=n(98);e.exports=a},function(e,t,n){var a=n(213),r=n(32),o=n(33),i=o&&o.isRegExp,l=i?r(i):a;e.exports=l},function(e,t,n){function a(e){return o(e)&&r(e)==i}var r=n(10),o=n(7),i="[object RegExp]";e.exports=a},function(e,t,n){function a(e){return o(e)?i(e):r(e)}var r=n(215),o=n(60),i=n(216);e.exports=a},function(e,t,n){var a=n(93),r=a("length");e.exports=r},function(e,t){function n(e){for(var t=f.lastIndex=0;f.test(e);)++t;return t}var a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",s="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",o,i].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*",u="[\\ufe0e\\ufe0f]?"+l+s,c="(?:"+["[^\\ud800-\\udfff]"+a+"?",a,o,i,"[\\ud800-\\udfff]"].join("|")+")",f=RegExp(r+"(?="+r+")|"+c+u,"g");e.exports=n},function(e,t,n){function a(e){return o(e)?i(e):r(e)}var r=n(218),o=n(60),i=n(219);e.exports=a},function(e,t){function n(e){return e.split("")}e.exports=n},function(e,t){function n(e){return e.match(f)||[]}var a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",s="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",o,i].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*",u="[\\ufe0e\\ufe0f]?"+l+s,c="(?:"+["[^\\ud800-\\udfff]"+a+"?",a,o,i,"[\\ud800-\\udfff]"].join("|")+")",f=RegExp(r+"(?="+r+")|"+c+u,"g");e.exports=n},function(e,t,n){function a(e){if(!e)return 0===e?e:0;if((e=r(e))===o||e===-o){return(e<0?-1:1)*i}return e===e?e:0}var r=n(100),o=1/0,i=1.7976931348623157e308;e.exports=a},function(e,t,n){"use strict";var a=n(222),r=n(3),o=n(63),i=(n.n(o),n(64)),l=(n.n(i),wp.i18n.__);(0,wp.blocks.registerBlockType)("uagb/post-masonry",{title:uagb_blocks_info.blocks["uagb/post-masonry"].title,description:uagb_blocks_info.blocks["uagb/post-masonry"].description,icon:r.a.post_masonry,category:uagb_blocks_info.category,keywords:[l("post"),l("masonry"),l("uagb")],edit:a.a,save:function(){return null}})},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=n(24),l=n.n(i),s=n(25),u=n.n(s),c=n(223),f=n(62),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),m=wp.element,h=m.Component,g=m.Fragment,b=wp.i18n.__,v=wp.components,y=v.PanelBody,w=v.Placeholder,_=v.QueryControls,E=v.RangeControl,k=v.SelectControl,C=v.Spinner,x=v.ToggleControl,S=v.TabPanel,T=v.TextControl,P=wp.editor,O=P.InspectorControls,N=P.BlockAlignmentToolbar,R=P.BlockControls,I=P.ColorPalette,j=wp.data.withSelect,A=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),d(t,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId});var e=document.createElement("style");e.setAttribute("id","uagb-post-masonry-style-"+this.props.clientId),document.head.appendChild(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.categoriesList,a=e.setAttributes,r=e.latestPosts,o=t.displayPostDate,i=t.displayPostComment,l=t.displayPostExcerpt,s=t.displayPostAuthor,u=t.displayPostImage,d=t.imgSize,m=t.imgPosition,h=t.displayPostLink,v=t.newTab,P=t.ctaText,j=t.borderWidth,A=t.borderStyle,M=t.borderColor,z=t.borderHColor,D=t.borderRadius,L=t.btnVPadding,B=t.btnHPadding,F=t.align,U=t.columns,W=t.tcolumns,H=t.mcolumns,V=t.order,q=t.orderBy,G=t.categories,$=t.postsToShow,Y=t.rowGap,K=t.columnGap,Q=t.bgColor,X=t.contentPadding,J=t.contentPaddingMobile,Z=t.titleColor,ee=t.titleTag,te=t.titleFontSize,ne=t.metaFontSize,ae=t.excerptFontSize,re=t.ctaFontSize,oe=t.metaColor,ie=t.excerptColor,le=t.ctaColor,se=t.ctaBgColor,ue=t.ctaHColor,ce=t.ctaBgHColor,fe=t.titleBottomSpace,pe=t.metaBottomSpace,de=t.excerptBottomSpace,me=t.excerptLength,he=t.overlayOpacity,ge=t.bgOverlayColor,be=wp.element.createElement(g,null,wp.element.createElement("p",{className:"uagb-setting-label"},b("Hover Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ue}}))),wp.element.createElement(I,{value:ue,onChange:function(e){return a({ctaHColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},b("Background Hover Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ce}}))),wp.element.createElement(I,{value:ce,onChange:function(e){return a({ctaBgHColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},b("Border Hover Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:z}}))),wp.element.createElement(I,{value:z,onChange:function(e){return a({borderHColor:e})},allowReset:!0})),ve=wp.element.createElement(g,null,wp.element.createElement("p",{className:"uagb-setting-label"},b("Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:le}}))),wp.element.createElement(I,{value:le,onChange:function(e){return a({ctaColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},b("Background Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:se}}))),wp.element.createElement(I,{value:se,onChange:function(e){return a({ctaBgColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},b("Border Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:M}}))),wp.element.createElement(I,{value:M,onChange:function(e){return a({borderColor:e})},allowReset:!0})),ye=wp.element.createElement(O,null,wp.element.createElement(y,{title:b("General")},wp.element.createElement(_,p({order:V,orderBy:q},{numberOfItems:$,categoriesList:n,selectedCategoryId:G,onOrderChange:function(e){return a({order:e})},onOrderByChange:function(e){return a({orderBy:e})},onCategoryChange:function(e){return a({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return a({postsToShow:e})}})),wp.element.createElement(E,{label:b("Columns"),value:U,onChange:function(e){return a({columns:e})},min:1,max:_e?Math.min(4,r.length):4}),wp.element.createElement(E,{label:b("Columns (Tablet)"),value:W,onChange:function(e){return a({tcolumns:e})},min:1,max:_e?Math.min(4,r.length):4}),wp.element.createElement(E,{label:b("Columns (Mobile)"),value:H,onChange:function(e){return a({mcolumns:e})},min:1,max:_e?Math.min(4,r.length):4})),wp.element.createElement(y,{title:b("Image"),initialOpen:!1},wp.element.createElement(x,{label:b("Show Featured Image"),checked:u,onChange:function(e){return a({displayPostImage:!u})}}),1==u&&wp.element.createElement(k,{label:b("Image Sizes"),value:d,onChange:function(e){return a({imgSize:e})},options:[{value:"thumbnail",label:b("Thumbnail")},{value:"medium",label:b("Medium")},{value:"medium_large",label:b("Medium Large")},{value:"large",label:b("Large")}]}),1==u&&wp.element.createElement(k,{label:b("Image Position"),value:m,onChange:function(e){return a({imgPosition:e})},options:[{value:"top",label:b("Top")},{value:"background",label:b("Background")}]}),1==u&&"background"==m&&wp.element.createElement(g,null,wp.element.createElement("p",{className:"uagb-setting-label"},b("Background Overlay Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ge}}))),wp.element.createElement(I,{value:ge,onChange:function(e){return a({bgOverlayColor:e})},allowReset:!0}),wp.element.createElement(E,{label:b("Overlay Opacity"),value:he,onChange:function(e){return a({overlayOpacity:e})},min:0,max:100,allowReset:!0}))),wp.element.createElement(y,{title:b("Content"),initialOpen:!1},wp.element.createElement(x,{label:b("Show Author"),checked:s,onChange:function(e){return a({displayPostAuthor:!s})}}),wp.element.createElement(x,{label:b("Show Date"),checked:o,onChange:function(e){return a({displayPostDate:!o})}}),wp.element.createElement(x,{label:b("Show Comment"),checked:i,onChange:function(e){return a({displayPostComment:!i})}}),wp.element.createElement(x,{label:b("Show Excerpt"),checked:l,onChange:function(e){return a({displayPostExcerpt:!l})}}),l&&wp.element.createElement(E,{label:b("Excerpt Length"),value:me,onChange:function(e){return a({excerptLength:e})},min:1,max:50,allowReset:!0})),wp.element.createElement(y,{title:b("Read More Link"),initialOpen:!1},wp.element.createElement(x,{label:b("Show Read More Link"),checked:h,onChange:function(e){return a({displayPostLink:!h})}}),wp.element.createElement(x,{label:b("Open links in New Tab"),checked:v,onChange:function(e){return a({newTab:!v})}}),h&&wp.element.createElement(g,null,wp.element.createElement(T,{label:b("Text"),value:P,onChange:function(e){return a({ctaText:e})}}),wp.element.createElement(E,{label:b("Button Text Font Size"),value:re,onChange:function(e){return a({ctaFontSize:e})},min:1,max:50,beforeIcon:"editor-textcolor",allowReset:!0}),wp.element.createElement(k,{label:b("Border Style"),value:A,onChange:function(e){return a({borderStyle:e})},options:[{value:"none",label:b("None")},{value:"solid",label:b("Solid")},{value:"dashed",label:b("Dashed")},{value:"dotted",label:b("Dotted")},{value:"double",label:b("Double")}]}),wp.element.createElement(E,{label:b("Button Border"),value:j,onChange:function(e){return a({borderWidth:e})},min:0,max:10,allowReset:!0}),wp.element.createElement(E,{label:b("Button Border Radius"),value:D,onChange:function(e){return a({borderRadius:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Button Vertical Padding"),value:L,onChange:function(e){return a({btnVPadding:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Button Horizontal Padding"),value:B,onChange:function(e){return a({btnHPadding:e})},min:0,max:50,allowReset:!0}),wp.element.createElement("p",{className:"uagb-inspect-tab-title"},wp.element.createElement("strong",null,b("Colors"))),wp.element.createElement(S,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:b("Normal"),className:"uagb-normal-tab"},{name:"hover",title:b("Hover"),className:"uagb-hover-tab"}]},function(e){var t=void 0;return t="hover"===e.name?be:ve,wp.element.createElement("div",null,t)}))),wp.element.createElement(y,{title:b("Typography"),initialOpen:!1},wp.element.createElement(k,{label:b("Title Tag"),value:ee,onChange:function(e){return a({titleTag:e})},options:[{value:"h1",label:b("H1")},{value:"h2",label:b("H2")},{value:"h3",label:b("H3")},{value:"h4",label:b("H4")},{value:"h5",label:b("H5")},{value:"h6",label:b("H6")}]}),wp.element.createElement(E,{label:b("Title Font Size"),value:te,onChange:function(e){return a({titleFontSize:e})},min:1,max:50,beforeIcon:"editor-textcolor",allowReset:!0}),(s||o||i)&&wp.element.createElement(E,{label:b("Meta Font Size"),value:ne,onChange:function(e){return a({metaFontSize:e})},min:1,max:50,beforeIcon:"editor-textcolor",allowReset:!0}),l&&wp.element.createElement(E,{label:b("Excerpt Font Size"),value:ae,onChange:function(e){return a({excerptFontSize:e})},min:1,max:50,beforeIcon:"editor-textcolor",allowReset:!0})),wp.element.createElement(y,{title:b("Colors"),initialOpen:!1},"top"==m&&wp.element.createElement(g,null,wp.element.createElement("p",{className:"uagb-setting-label"},b("Blog Background Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:Q}}))),wp.element.createElement(I,{value:Q,onChange:function(e){return a({bgColor:e})},allowReset:!0})),wp.element.createElement(g,null,wp.element.createElement("p",{className:"uagb-setting-label"},b("Title Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:Z}}))),wp.element.createElement(I,{value:Z,onChange:function(e){return a({titleColor:e})},allowReset:!0})),wp.element.createElement(g,null,wp.element.createElement("p",{className:"uagb-setting-label"},b("Meta Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:oe}}))),wp.element.createElement(I,{value:oe,onChange:function(e){return a({metaColor:e})}})),1==l&&wp.element.createElement(g,null,wp.element.createElement("p",{className:"uagb-setting-label"},b("Excerpt Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ie}}))),wp.element.createElement(I,{value:ie,onChange:function(e){return a({excerptColor:e})},allowReset:!0}))),wp.element.createElement(y,{title:b("Spacing"),initialOpen:!1},wp.element.createElement(E,{label:b("Row Gap"),value:Y,onChange:function(e){return a({rowGap:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Column Gap"),value:K,onChange:function(e){return a({columnGap:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Content Padding"),value:X,onChange:function(e){return a({contentPadding:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Content Padding (Mobile)"),value:J,onChange:function(e){return a({contentPaddingMobile:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Title Bottom Spacing"),value:fe,onChange:function(e){return a({titleBottomSpace:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Meta Bottom Spacing"),value:pe,onChange:function(e){return a({metaBottomSpace:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(E,{label:b("Excerpt Bottom Spacing"),value:de,onChange:function(e){return a({excerptBottomSpace:e})},min:0,max:50,allowReset:!0}))),we=document.getElementById("uagb-post-masonry-style-"+this.props.clientId);null!=we&&"undefined"!=typeof we&&(we.innerHTML=Object(f.a)(this.props,"uagb-post__masonry"));var _e=Array.isArray(r)&&r.length;return _e?wp.element.createElement(g,null,ye,wp.element.createElement(R,null,wp.element.createElement(N,{value:F,onChange:function(e){a({align:e})},controls:["left","center","right"]})),wp.element.createElement(c.a,{attributes:t,className:this.props.className,latestPosts:r,blogID:this.props.clientId})):wp.element.createElement(g,null,ye,wp.element.createElement(w,{icon:"admin-post",label:uagb_blocks_info.blocks["uagb/post-masonry"].title},Array.isArray(r)?b("No posts found."):wp.element.createElement(C,null)))}}]),t}(h);t.a=j(function(e,t){var n=t.attributes,a=n.categories,r=n.postsToShow,o=n.order,i=n.orderBy,s=e("core"),c=s.getEntityRecords,f=u()({categories:a,order:o,orderby:i,per_page:r},function(e){return!l()(e)}),p={per_page:100};return{latestPosts:c("postType","post",f),categoriesList:c("taxonomy","category",p)}})(A)},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=n(0),l=n.n(i),s=n(224),u=n.n(s),c=n(56),f=n(57),p=n(58),d=n(59),m=n(61),h=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),g=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),h(t,[{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.className,a=e.latestPosts,r=e.blogID,o=(t.displayPostImage,t.columns),i=t.tcolumns,s=t.mcolumns,h=t.imgPosition,g=t.postsToShow,b=(t.rowGap,t.columnGap,t.bgColor,t.contentPadding,a.length>g?a.slice(0,g):a);return wp.element.createElement("div",{className:l()(n,"uagb-post-grid","uagb-post__arrow-outside","uagb-post__image-position-"+h),"data-blog-id":r,id:"uagb-post__masonry-"+r},wp.element.createElement(u.a,{className:l()("is-masonry","uagb-post__columns-"+o,"uagb-post__columns-tablet-"+i,"uagb-post__columns-mobile-"+s,"uagb-post__items")},b.map(function(e,n){return wp.element.createElement("article",{key:n},wp.element.createElement("div",{className:"uagb-post__inner-wrap"},wp.element.createElement(c.a,{post:e,attributes:t}),wp.element.createElement("div",{className:"uagb-post__text"},wp.element.createElement(f.a,{post:e,attributes:t}),wp.element.createElement(p.a,{post:e,attributes:t}),wp.element.createElement(d.a,{post:e,attributes:t}),wp.element.createElement(m.a,{post:e,attributes:t}))))})))}}]),t}(React.Component);t.a=g},function(e,t,n){var a="undefined"!==typeof window,r=a?window.Masonry||n(225):null,o=a?n(230):null,i=n(231),l=n(239),s=n(250),u=n(252),c=n(11),f=n(1),p=n(286),d={enableResizableChildren:c.bool,disableImagesLoaded:c.bool,onImagesLoaded:c.func,updateOnEachImageLoad:c.bool,options:c.object,imagesLoadedOptions:c.object,elementType:c.string,onLayoutComplete:c.func,onRemoveComplete:c.func},m=p({masonry:!1,erd:void 0,latestKnownDomChildren:[],displayName:"MasonryComponent",imagesLoadedCancelRef:void 0,propTypes:d,getDefaultProps:function(){return{enableResizableChildren:!1,disableImagesLoaded:!1,updateOnEachImageLoad:!1,options:{},imagesLoadedOptions:{},className:"",elementType:"div",onLayoutComplete:function(){},onRemoveComplete:function(){}}},initializeMasonry:function(e){this.masonry&&!e||(this.masonry=new r(this.masonryContainer,this.props.options),this.props.onLayoutComplete&&this.masonry.on("layoutComplete",this.props.onLayoutComplete),this.props.onRemoveComplete&&this.masonry.on("removeComplete",this.props.onRemoveComplete),this.latestKnownDomChildren=this.getCurrentDomChildren())},getCurrentDomChildren:function(){var e=this.masonryContainer,t=this.props.options.itemSelector?e.querySelectorAll(this.props.options.itemSelector):e.children;return Array.prototype.slice.call(t)},diffDomChildren:function(){var e=!1,t=this.latestKnownDomChildren.filter(function(e){return!!e.parentNode});t.length!==this.latestKnownDomChildren.length&&(e=!0);var n=this.getCurrentDomChildren(),a=t.filter(function(e){return!~n.indexOf(e)}),r=n.filter(function(e){return!~t.indexOf(e)}),o=0,i=r.filter(function(e){var t=o===n.indexOf(e);return t&&o++,t}),l=r.filter(function(e){return-1===i.indexOf(e)}),s=[];return 0===a.length&&(s=t.filter(function(e,t){return t!==n.indexOf(e)})),this.latestKnownDomChildren=n,{old:t,new:n,removed:a,appended:l,prepended:i,moved:s,forceItemReload:e}},performLayout:function(){var e=this.diffDomChildren(),t=e.forceItemReload||e.moved.length>0;e.removed.length>0&&(this.props.enableResizableChildren&&e.removed.forEach(this.erd.removeAllListeners,this.erd),this.masonry.remove(e.removed),t=!0),e.appended.length>0&&(this.masonry.appended(e.appended),0===e.prepended.length&&(t=!0),this.props.enableResizableChildren&&e.appended.forEach(this.listenToElementResize,this)),e.prepended.length>0&&(this.masonry.prepended(e.prepended),this.props.enableResizableChildren&&e.prepended.forEach(this.listenToElementResize,this)),t&&this.masonry.reloadItems(),this.masonry.layout()},derefImagesLoaded:function(){this.imagesLoadedCancelRef(),this.imagesLoadedCancelRef=void 0},imagesLoaded:function(){if(!this.props.disableImagesLoaded){this.imagesLoadedCancelRef&&this.derefImagesLoaded();var e=this.props.updateOnEachImageLoad?"progress":"always",t=s(function(e){this.props.onImagesLoaded&&this.props.onImagesLoaded(e),this.masonry.layout()}.bind(this),100),n=o(this.masonryContainer,this.props.imagesLoadedOptions).on(e,t);this.imagesLoadedCancelRef=function(){n.off(e,t),t.cancel()}}},initializeResizableChildren:function(){this.props.enableResizableChildren&&(this.erd=l({strategy:"scroll"}),this.latestKnownDomChildren.forEach(this.listenToElementResize,this))},listenToElementResize:function(e){this.erd.listenTo(e,function(){this.masonry.layout()}.bind(this))},destroyErd:function(){this.erd&&this.latestKnownDomChildren.forEach(this.erd.uninstall,this.erd)},componentDidMount:function(){this.initializeMasonry(),this.initializeResizableChildren(),this.imagesLoaded()},componentDidUpdate:function(){this.performLayout(),this.imagesLoaded()},componentWillUnmount:function(){this.destroyErd(),this.props.onLayoutComplete&&this.masonry.off("layoutComplete",this.props.onLayoutComplete),this.props.onRemoveComplete&&this.masonry.off("removeComplete",this.props.onRemoveComplete),this.imagesLoadedCancelRef&&this.derefImagesLoaded(),this.masonry.destroy()},setRef:function(e){this.masonryContainer=e},render:function(){var e=u(this.props,Object.keys(d));return f.createElement(this.props.elementType,i({},e,{ref:this.setRef}),this.props.children)}});e.exports=m,e.exports.default=m},function(e,t,n){var a,r,o;!function(i,l){r=[n(226),n(66)],a=l,void 0!==(o="function"===typeof a?a.apply(t,r):a)&&(e.exports=o)}(window,function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var a=n.prototype;return a._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},a.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var a=this.columnWidth+=this.gutter,r=this.containerWidth+this.gutter,o=r/a,i=a-r%a,l=i&&i<1?"round":"floor";o=Math[l](o),this.cols=Math.max(o,1)},a.getContainerWidth=function(){var e=this._getOption("fitWidth"),n=e?this.element.parentNode:this.element,a=t(n);this.containerWidth=a&&a.innerWidth},a._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=t&&t<1?"round":"ceil",a=Math[n](e.size.outerWidth/this.columnWidth);a=Math.min(a,this.cols);for(var r=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",o=this[r](a,e),i={x:this.columnWidth*o.col,y:o.y},l=o.y+e.size.outerHeight,s=a+o.col,u=o.col;u<s;u++)this.colYs[u]=l;return i},a._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},a._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,a=0;a<n;a++)t[a]=this._getColGroupY(a,e);return t},a._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},a._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var a=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=a?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},a._manageStamp=function(e){var n=t(e),a=this._getElementOffset(e),r=this._getOption("originLeft"),o=r?a.left:a.right,i=o+n.outerWidth,l=Math.floor(o/this.columnWidth);l=Math.max(0,l);var s=Math.floor(i/this.columnWidth);s-=i%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var u=this._getOption("originTop"),c=(u?a.top:a.bottom)+n.outerHeight,f=l;f<=s;f++)this.colYs[f]=Math.max(c,this.colYs[f])},a._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},a._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},a.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})},function(e,t,n){var a,r;!function(o,i){"use strict";a=[n(65),n(66),n(227),n(229)],void 0!==(r=function(e,t,n,a){return i(o,e,t,n,a)}.apply(t,a))&&(e.exports=r)}(window,function(e,t,n,a,r){"use strict";function o(e,t){var n=a.getQueryElement(e);if(!n)return void(s&&s.error("Bad element for "+this.constructor.namespace+": "+(n||e)));this.element=n,u&&(this.$element=u(this.element)),this.options=a.extend({},this.constructor.defaults),this.option(t);var r=++f;this.element.outlayerGUID=r,p[r]=this,this._create(),this._getOption("initLayout")&&this.layout()}function i(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}function l(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),n=t&&t[1],a=t&&t[2];return n.length?(n=parseFloat(n))*(m[a]||1):0}var s=e.console,u=e.jQuery,c=function(){},f=0,p={};o.namespace="outlayer",o.Item=r,o.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=o.prototype;a.extend(d,t.prototype),d.option=function(e){a.extend(this.options,e)},d._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},o.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),a.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,a=[],r=0;r<t.length;r++){var o=t[r],i=new n(o,this);a.push(i)}return a},d._filterFindItemElements=function(e){return a.filterFindElements(e,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(e){return e.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=n(this.element)},d._getMeasurement=function(e,t){var a,r=this.options[e];r?("string"==typeof r?a=this.element.querySelector(r):r instanceof HTMLElement&&(a=r),this[e]=a?n(a)[t]:r):this[e]=0},d.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},d._getItemsForLayout=function(e){return e.filter(function(e){return!e.isIgnored})},d._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var n=[];e.forEach(function(e){var a=this._getItemLayoutPosition(e);a.item=e,a.isInstant=t||e.isLayoutInstant,n.push(a)},this),this._processLayoutQueue(n)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(e){this.updateStagger(),e.forEach(function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)},this)},d.updateStagger=function(){var e=this.options.stagger;return null===e||void 0===e?void(this.stagger=0):(this.stagger=l(e),this.stagger)},d._positionItem=function(e,t,n,a,r){a?e.goTo(t,n):(e.stagger(r*this.stagger),e.moveTo(t,n))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},d._getContainerSize=c,d._setContainerMeasure=function(e,t){if(void 0!==e){var n=this.size;n.isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},d._emitCompleteOnItems=function(e,t){function n(){r.dispatchEvent(e+"Complete",null,[t])}function a(){++i==o&&n()}var r=this,o=t.length;if(!t||!o)return void n();var i=0;t.forEach(function(t){t.once(e,a)})},d.dispatchEvent=function(e,t,n){var a=t?[t].concat(n):n;if(this.emitEvent(e,a),u)if(this.$element=this.$element||u(this.element),t){var r=u.Event(t);r.type=e,this.$element.trigger(r,n)}else this.$element.trigger(e,n)},d.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},d.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},d.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},d.unstamp=function(e){(e=this._find(e))&&e.forEach(function(e){a.removeFrom(this.stamps,e),this.unignore(e)},this)},d._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=a.makeArray(e)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},d._manageStamp=c,d._getElementOffset=function(e){var t=e.getBoundingClientRect(),a=this._boundingRect,r=n(e);return{left:t.left-a.left-r.marginLeft,top:t.top-a.top-r.marginTop,right:a.right-t.right-r.marginRight,bottom:a.bottom-t.bottom-r.marginBottom}},d.handleEvent=a.handleEvent,d.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},a.debounceMethod(o,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var e=n(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},d.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(e){var t=this._itemize(e);if(t.length){var n=this.items.slice(0);this.items=t.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(n)}},d.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach(function(e,n){e.stagger(n*t),e.reveal()})}},d.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach(function(e,n){e.stagger(n*t),e.hide()})}},d.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},d.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},d.getItem=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.element==e)return n}},d.getItems=function(e){e=a.makeArray(e);var t=[];return e.forEach(function(e){var n=this.getItem(e);n&&t.push(n)},this),t},d.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(e){e.remove(),a.removeFrom(this.items,e)},this)},d.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach(function(e){e.destroy()}),this.unbindResize();var t=this.element.outlayerGUID;delete p[t],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},o.data=function(e){e=a.getQueryElement(e);var t=e&&e.outlayerGUID;return t&&p[t]},o.create=function(e,t){var n=i(o);return n.defaults=a.extend({},o.defaults),a.extend(n.defaults,t),n.compatOptions=a.extend({},o.compatOptions),n.namespace=e,n.data=o.data,n.Item=i(r),a.htmlInit(n,e),u&&u.bridget&&u.bridget(e,n),n};var m={ms:1,s:1e3};return o.Item=r,o})},function(e,t,n){var a,r;!function(o,i){a=[n(228)],void 0!==(r=function(e){return i(o,e)}.apply(t,a))&&(e.exports=r)}(window,function(e,t){"use strict";var n={};n.extend=function(e,t){for(var n in t)e[n]=t[n];return e},n.modulo=function(e,t){return(e%t+t)%t};var a=Array.prototype.slice;n.makeArray=function(e){return Array.isArray(e)?e:null===e||void 0===e?[]:"object"==typeof e&&"number"==typeof e.length?a.call(e):[e]},n.removeFrom=function(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)},n.getParent=function(e,n){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,n))return e},n.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},n.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.filterFindElements=function(e,a){e=n.makeArray(e);var r=[];return e.forEach(function(e){if(e instanceof HTMLElement){if(!a)return void r.push(e);t(e,a)&&r.push(e);for(var n=e.querySelectorAll(a),o=0;o<n.length;o++)r.push(n[o])}}),r},n.debounceMethod=function(e,t,n){n=n||100;var a=e.prototype[t],r=t+"Timeout";e.prototype[t]=function(){var e=this[r];clearTimeout(e);var t=arguments,o=this;this[r]=setTimeout(function(){a.apply(o,t),delete o[r]},n)}},n.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},n.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,n){return t+"-"+n}).toLowerCase()};var r=e.console;return n.htmlInit=function(t,a){n.docReady(function(){var o=n.toDashed(a),i="data-"+o,l=document.querySelectorAll("["+i+"]"),s=document.querySelectorAll(".js-"+o),u=n.makeArray(l).concat(n.makeArray(s)),c=i+"-options",f=e.jQuery;u.forEach(function(e){var n,o=e.getAttribute(i)||e.getAttribute(c);try{n=o&&JSON.parse(o)}catch(t){return void(r&&r.error("Error parsing "+i+" on "+e.className+": "+t))}var l=new t(e,n);f&&f.data(e,a,l)})})},n})},function(e,t,n){var a,r;!function(o,i){"use strict";a=i,void 0!==(r="function"===typeof a?a.call(t,n,t,e):a)&&(e.exports=r)}(window,function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var a=t[n],r=a+"MatchesSelector";if(e[r])return r}}();return function(t,n){return t[e](n)}})},function(e,t,n){var a,r,o;!function(i,l){r=[n(65),n(66)],a=l,void 0!==(o="function"===typeof a?a.apply(t,r):a)&&(e.exports=o)}(window,function(e,t){"use strict";function n(e){for(var t in e)return!1;return null,!0}function a(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var r=document.documentElement.style,o="string"==typeof r.transition?"transition":"WebkitTransition",i="string"==typeof r.transform?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],s={transform:i,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property",transitionDelay:o+"Delay"},u=a.prototype=Object.create(e.prototype);u.constructor=a,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},u.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},u.getSize=function(){this.size=t(this.element)},u.css=function(e){var t=this.element.style;for(var n in e){t[s[n]||n]=e[n]}},u.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),a=e[t?"left":"right"],r=e[n?"top":"bottom"],o=parseFloat(a),i=parseFloat(r),l=this.layout.size;-1!=a.indexOf("%")&&(o=o/100*l.width),-1!=r.indexOf("%")&&(i=i/100*l.height),o=isNaN(o)?0:o,i=isNaN(i)?0:i,o-=t?l.paddingLeft:l.paddingRight,i-=n?l.paddingTop:l.paddingBottom,this.position.x=o,this.position.y=i},u.layoutPosition=function(){var e=this.layout.size,t={},n=this.layout._getOption("originLeft"),a=this.layout._getOption("originTop"),r=n?"paddingLeft":"paddingRight",o=n?"left":"right",i=n?"right":"left",l=this.position.x+e[r];t[o]=this.getXValue(l),t[i]="";var s=a?"paddingTop":"paddingBottom",u=a?"top":"bottom",c=a?"bottom":"top",f=this.position.y+e[s];t[u]=this.getYValue(f),t[c]="",this.css(t),this.emitEvent("layout",[this])},u.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},u.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},u._transitionTo=function(e,t){this.getPosition();var n=this.position.x,a=this.position.y,r=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),r&&!this.isTransitioning)return void this.layoutPosition();var o=e-n,i=t-a,l={};l.transform=this.getTranslate(o,i),this.transition({to:l,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},u.getTranslate=function(e,t){var n=this.layout._getOption("originLeft"),a=this.layout._getOption("originTop");return e=n?e:-e,t=a?t:-t,"translate3d("+e+"px, "+t+"px, 0)"},u.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},u._nonTransition=function(e){this.css(e.to),e.isCleaning&&this._removeStyles(e.to);for(var t in e.onTransitionEnd)e.onTransitionEnd[t].call(this)},u.transition=function(e){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(e);var t=this._transn;for(var n in e.onTransitionEnd)t.onEnd[n]=e.onTransitionEnd[n];for(n in e.to)t.ingProperties[n]=!0,e.isCleaning&&(t.clean[n]=!0);if(e.from){this.css(e.from);this.element.offsetHeight;null}this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0};var c="opacity,"+function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}(i);u.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:c,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(l,this,!1)}},u.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},u.onotransitionend=function(e){this.ontransitionend(e)};var f={"-webkit-transform":"transform"};u.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,a=f[e.propertyName]||e.propertyName;if(delete t.ingProperties[a],n(t.ingProperties)&&this.disableTransition(),a in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[a]),a in t.onEnd){t.onEnd[a].call(this),delete t.onEnd[a]}this.emitEvent("transitionEnd",[this])}},u.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},u._removeStyles=function(e){var t={};for(var n in e)t[n]="";this.css(t)};var p={transitionProperty:"",transitionDuration:"",transitionDelay:""};return u.removeTransitionStyles=function(){this.css(p)},u.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){if(!o||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();this.once("transitionEnd",function(){this.removeElem()}),this.hide()},u.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var n in t)return n},u.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a})},function(e,t,n){var a,r;!function(o,i){"use strict";a=[n(65)],void 0!==(r=function(e){return i(o,e)}.apply(t,a))&&(e.exports=r)}("undefined"!==typeof window?window:this,function(e,t){"use strict";function n(e,t){for(var n in t)e[n]=t[n];return e}function a(e){return Array.isArray(e)?e:"object"==typeof e&&"number"==typeof e.length?u.call(e):[e]}function r(e,t,o){if(!(this instanceof r))return new r(e,t,o);var i=e;if("string"==typeof e&&(i=document.querySelectorAll(e)),!i)return void s.error("Bad element for imagesLoaded "+(i||e));this.elements=a(i),this.options=n({},this.options),"function"==typeof t?o=t:n(this.options,t),o&&this.on("always",o),this.getImages(),l&&(this.jqDeferred=new l.Deferred),setTimeout(this.check.bind(this))}function o(e){this.img=e}function i(e,t){this.url=e,this.element=t,this.img=new Image}var l=e.jQuery,s=e.console,u=Array.prototype.slice;r.prototype=Object.create(t.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&c[t]){for(var n=e.querySelectorAll("img"),a=0;a<n.length;a++){var r=n[a];this.addImage(r)}if("string"==typeof this.options.background){var o=e.querySelectorAll(this.options.background);for(a=0;a<o.length;a++){var i=o[a];this.addElementBackgroundImages(i)}}}};var c={1:!0,9:!0,11:!0};return r.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,a=n.exec(t.backgroundImage);null!==a;){var r=a&&a[2];r&&this.addBackground(r,e),a=n.exec(t.backgroundImage)}},r.prototype.addImage=function(e){var t=new o(e);this.images.push(t)},r.prototype.addBackground=function(e,t){var n=new i(e,t);this.images.push(n)},r.prototype.check=function(){function e(e,n,a){setTimeout(function(){t.progress(e,n,a)})}var t=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();this.images.forEach(function(t){t.once("progress",e),t.check()})},r.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&s&&s.log("progress: "+n,e,t)},r.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},o.prototype=Object.create(t.prototype),o.prototype.check=function(){if(this.getIsImageComplete())return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src},o.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},o.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},o.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},o.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},i.prototype=Object.create(o.prototype),i.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},i.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},i.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},r.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&(l=t,l.fn.imagesLoaded=function(e,t){return new r(this,e,t).jqDeferred.promise(l(this))})},r.makeJQueryPlugin(),r})},function(e,t,n){var a=n(40),r=n(15),o=n(232),i=n(35),l=n(34),s=n(19),u=Object.prototype,c=u.hasOwnProperty,f=o(function(e,t){if(l(t)||i(t))return void r(t,s(t),e);for(var n in t)c.call(t,n)&&a(e,n,t[n])});e.exports=f},function(e,t,n){function a(e){return r(function(t,n){var a=-1,r=n.length,i=r>1?n[r-1]:void 0,l=r>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(r--,i):void 0,l&&o(n[0],n[1],l)&&(i=r<3?void 0:i,r=1),t=Object(t);++a<r;){var s=n[a];s&&e(t,s,a,i)}return t})}var r=n(233),o=n(238);e.exports=a},function(e,t,n){function a(e,t){return i(o(e,t,r),e+"")}var r=n(39),o=n(101),i=n(102);e.exports=a},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t,n){var a=n(236),r=n(95),o=n(39),i=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:a(t),writable:!0})}:o;e.exports=i},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t){function n(e){var t=0,n=0;return function(){var i=o(),l=r-(i-n);if(n=i,l>0){if(++t>=a)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var a=800,r=16,o=Date.now;e.exports=n},function(e,t,n){function a(e,t,n){if(!l(n))return!1;var a=typeof t;return!!("number"==a?o(n)&&i(t,n.length):"string"==a&&t in n)&&r(n[t],e)}var r=n(28),o=n(35),i=n(31),l=n(5);e.exports=a},function(e,t,n){"use strict";function a(e){return Array.isArray(e)||void 0!==e.length}function r(e){if(Array.isArray(e))return e;var t=[];return l(e,function(e){t.push(e)}),t}function o(e){return e&&1===e.nodeType}function i(e,t,n){var a=e[t];return void 0!==a&&null!==a||void 0===n?a:n}var l=n(103).forEach,s=n(240),u=n(241),c=n(242),f=n(243),p=n(244),d=n(104),m=n(245),h=n(247),g=n(248),b=n(249);e.exports=function(e){function t(e,t,n){function s(e){var t=x.get(e);l(t,function(t){t(e)})}function u(e,t,n){x.add(t,n),e&&n(t)}if(n||(n=t,t=e,e={}),!t)throw new Error("At least one element required.");if(!n)throw new Error("Listener required.");if(o(t))t=[t];else{if(!a(t))return _.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=r(t)}var c=0,f=i(e,"callOnAdd",k.callOnAdd),p=i(e,"onReady",function(){}),d=i(e,"debug",k.debug);l(t,function(e){h.getState(e)||(h.initState(e),v.set(e));var a=v.get(e);if(d&&_.log("Attaching listener to element",a,e),!S.isDetectable(e))return d&&_.log(a,"Not detectable."),S.isBusy(e)?(d&&_.log(a,"System busy making it detectable"),u(f,e,n),O[a]=O[a]||[],void O[a].push(function(){++c===t.length&&p()})):(d&&_.log(a,"Making detectable..."),S.markBusy(e,!0),C.makeDetectable({debug:d},e,function(e){if(d&&_.log(a,"onElementDetectable"),h.getState(e)){S.markAsDetectable(e),S.markBusy(e,!1),C.addListener(e,s),u(f,e,n);var r=h.getState(e);if(r&&r.startSize){var o=e.offsetWidth,i=e.offsetHeight;r.startSize.width===o&&r.startSize.height===i||s(e)}O[a]&&l(O[a],function(e){e()})}else d&&_.log(a,"Element uninstalled before being detectable.");delete O[a],++c===t.length&&p()}));d&&_.log(a,"Already detecable, adding listener."),u(f,e,n),c++}),c===t.length&&p()}function n(e){if(!e)return _.error("At least one element is required.");if(o(e))e=[e];else{if(!a(e))return _.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=r(e)}l(e,function(e){x.removeAllListeners(e),C.uninstall(e),h.cleanState(e)})}e=e||{};var v;if(e.idHandler)v={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var y=c(),w=f({idGenerator:y,stateHandler:h});v=w}var _=e.reporter;if(!_){_=p(!1===_)}var E=i(e,"batchProcessor",m({reporter:_})),k={};k.callOnAdd=!!i(e,"callOnAdd",!0),k.debug=!!i(e,"debug",!1);var C,x=u(v),S=s({stateHandler:h}),T=i(e,"strategy","object"),P={reporter:_,batchProcessor:E,stateHandler:h,idHandler:v};if("scroll"===T&&(d.isLegacyOpera()?(_.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),T="object"):d.isIE(9)&&(_.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),T="object")),"scroll"===T)C=b(P);else{if("object"!==T)throw new Error("Invalid strategy name: "+T);C=g(P)}var O={};return{listenTo:t,removeListener:x.removeListener,removeAllListeners:x.removeAllListeners,uninstall:n}}},function(e,t,n){"use strict";e.exports=function(e){function t(e){var t=o(e);return t&&!!t.isDetectable}function n(e){o(e).isDetectable=!0}function a(e){return!!o(e).busy}function r(e,t){o(e).busy=!!t}var o=e.stateHandler.getState;return{isDetectable:t,markAsDetectable:n,isBusy:a,markBusy:r}}},function(e,t,n){"use strict";e.exports=function(e){function t(t){var n=e.get(t);return void 0===n?[]:o[n]||[]}function n(t,n){var a=e.get(t);o[a]||(o[a]=[]),o[a].push(n)}function a(e,n){for(var a=t(e),r=0,o=a.length;r<o;++r)if(a[r]===n){a.splice(r,1);break}}function r(e){var n=t(e);n&&(n.length=0)}var o={};return{get:t,add:n,removeListener:a,removeAllListeners:r}}},function(e,t,n){"use strict";e.exports=function(){function e(){return t++}var t=1;return{generate:e}}},function(e,t,n){"use strict";e.exports=function(e){function t(e){var t=r(e);return t&&void 0!==t.id?t.id:null}function n(e){var t=r(e);if(!t)throw new Error("setId required the element to have a resize detection state.");var n=a.generate();return t.id=n,n}var a=e.idGenerator,r=e.stateHandler.getState;return{get:t,set:n}}},function(e,t,n){"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var a=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};a(n,"log"),a(n,"warn"),a(n,"error")}return n}},function(e,t,n){"use strict";function a(){function e(e,t){t||(t=e,e=0),e>o?o=e:e<i&&(i=e),a[e]||(a[e]=[]),a[e].push(t),r++}function t(){for(var e=i;e<=o;e++)for(var t=a[e],n=0;n<t.length;n++){var r=t[n];r()}}function n(){return r}var a={},r=0,o=0,i=0;return{add:e,process:t,size:n}}var r=n(246);e.exports=function(e){function t(e,t){!m&&f&&c&&0===d.size()&&i(),d.add(e,t)}function n(){for(m=!0;d.size();){var e=d;d=a(),e.process()}m=!1}function o(e){m||(void 0===e&&(e=c),p&&(l(p),p=null),e?i():n())}function i(){p=s(n)}function l(e){return clearTimeout(e)}function s(e){return function(e){return setTimeout(e,0)}(e)}e=e||{};var u=e.reporter,c=r.getOption(e,"async",!0),f=r.getOption(e,"auto",!0);f&&!c&&(u&&u.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),c=!0);var p,d=a(),m=!1;return{add:t,force:o}}},function(e,t,n){"use strict";function a(e,t,n){var a=e[t];return void 0!==a&&null!==a||void 0===n?a:n}(e.exports={}).getOption=a},function(e,t,n){"use strict";function a(e){return e[i]={},r(e)}function r(e){return e[i]}function o(e){delete e[i]}var i="_erd";e.exports={initState:a,getState:r,cleanState:o}},function(e,t,n){"use strict";var a=n(104);e.exports=function(e){function t(e,t){function n(){t(e)}if(!r(e))throw new Error("Element is not detectable by this strategy.");if(a.isIE(8))s(e).object={proxy:n},e.attachEvent("onresize",n);else{r(e).contentDocument.defaultView.addEventListener("resize",n)}}function n(e,t,n){n||(n=t,t=e,e=null),e=e||{};e.debug;a.isIE(8)?n(t):function(e,t){function n(){function n(){if("static"===u.position){e.style.position="relative";var t=function(e,t,n,a){var r=n[a];"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(e.warn("An element that is positioned static has style."+a+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+a+" will be set to 0. Element: ",t),t.style[a]=0)};t(i,e,u,"top"),t(i,e,u,"right"),t(i,e,u,"bottom"),t(i,e,u,"left")}}function l(){function a(e,t){if(!e.contentDocument)return void setTimeout(function(){a(e,t)},100);t(e.contentDocument)}o||n(),a(this,function(n){t(e)})}""!==u.position&&(n(u),o=!0);var c=document.createElement("object");c.style.cssText=r,c.tabIndex=-1,c.type="text/html",c.onload=l,a.isIE()||(c.data="about:blank"),e.appendChild(c),s(e).object=c,a.isIE()&&(c.data="about:blank")}var r="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",o=!1,u=window.getComputedStyle(e),c=e.offsetWidth,f=e.offsetHeight;s(e).startSize={width:c,height:f},l?l.add(n):n()}(t,n)}function r(e){return s(e).object}function o(e){a.isIE(8)?e.detachEvent("onresize",s(e).object.proxy):e.removeChild(r(e)),delete s(e).object}e=e||{};var i=e.reporter,l=e.batchProcessor,s=e.stateHandler.getState;if(!i)throw new Error("Missing required dependency: reporter.");return{makeDetectable:n,addListener:t,uninstall:o}}},function(e,t,n){"use strict";var a=n(103).forEach;e.exports=function(e){function t(e){e.className+=" "+h+"_animation_active"}function n(e,t,n){if(e.addEventListener)e.addEventListener(t,n);else{if(!e.attachEvent)return c.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+t,n)}}function r(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n);else{if(!e.detachEvent)return c.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+t,n)}}function o(e){return p(e).container.childNodes[0].childNodes[0].childNodes[0]}function i(e){return p(e).container.childNodes[0].childNodes[0].childNodes[1]}function l(e,t){if(!p(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");p(e).listeners.push(t)}function s(e,r,l){function s(){if(e.debug){var t=Array.prototype.slice.call(arguments);if(t.unshift(d.get(r),"Scroll: "),c.log.apply)c.log.apply(null,t);else for(var n=0;n<t.length;n++)c.log(t[n])}}function u(e){var t=p(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function g(){var e=window.getComputedStyle(r),t={};return t.position=e.position,t.width=r.offsetWidth,t.height=r.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function b(){var e=g();p(r).startSize={width:e.width,height:e.height},s("Element start size",p(r).startSize)}function v(){p(r).listeners=[]}function y(){if(s("storeStyle invoked."),!p(r))return void s("Aborting because element has been uninstalled");var e=g();p(r).style=e}function w(e,t,n){p(e).lastWidth=t,p(e).lastHeight=n}function _(e){return o(e).childNodes[0]}function E(){return 2*m.width+1}function k(){return 2*m.height+1}function C(e){return e+10+E()}function x(e){return e+10+k()}function S(e){return 2*e+E()}function T(e){return 2*e+k()}function P(e,t,n){var a=o(e),r=i(e),l=C(t),s=x(n),u=S(t),c=T(n);a.scrollLeft=l,a.scrollTop=s,r.scrollLeft=u,r.scrollTop=c}function O(){var e=p(r).container;if(!e){e=document.createElement("div"),e.className=h,e.style.cssText="visibility: hidden; display: inline; width: 0px; height: 0px; z-index: -1; overflow: hidden; margin: 0; padding: 0;",p(r).container=e,t(e),r.appendChild(e);var a=function(){p(r).onRendered&&p(r).onRendered()};n(e,"animationstart",a),p(r).onAnimationStart=a}return e}function N(){function e(){p(r).onExpand&&p(r).onExpand()}function t(){p(r).onShrink&&p(r).onShrink()}if(s("Injecting elements"),!p(r))return void s("Aborting because element has been uninstalled");!function(){var e=p(r).style;if("static"===e.position){r.style.position="relative";var t=function(e,t,n,a){var r=n[a];"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(e.warn("An element that is positioned static has style."+a+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+a+" will be set to 0. Element: ",t),t.style[a]=0)};t(c,r,e,"top"),t(c,r,e,"right"),t(c,r,e,"bottom"),t(c,r,e,"left")}}();var a=p(r).container;a||(a=O());var o=m.width,i=m.height,l="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; "+function(e,t,n,a){return e=e?e+"px":"0",t=t?t+"px":"0",n=n?n+"px":"0",a=a?a+"px":"0","left: "+e+"; top: "+t+"; right: "+a+"; bottom: "+n+";"}(-(1+o),-(1+i),-i,-o),u=document.createElement("div"),f=document.createElement("div"),d=document.createElement("div"),g=document.createElement("div"),b=document.createElement("div"),v=document.createElement("div");u.dir="ltr",u.style.cssText="position: absolute; flex: none; overflow: hidden; z-index: -1; visibility: hidden; width: 100%; height: 100%; left: 0px; top: 0px;",u.className=h,f.className=h,f.style.cssText=l,d.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",g.style.cssText="position: absolute; left: 0; top: 0;",b.style.cssText="position: absolute; flex: none; overflow: scroll; z-index: -1; visibility: hidden; width: 100%; height: 100%;",v.style.cssText="position: absolute; width: 200%; height: 200%;",d.appendChild(g),b.appendChild(v),f.appendChild(d),f.appendChild(b),u.appendChild(f),a.appendChild(u),n(d,"scroll",e),n(b,"scroll",t),p(r).onExpandScroll=e,p(r).onShrinkScroll=t}function R(){function t(e,t,n){var a=_(e),r=C(t),o=x(n);a.style.width=r+"px",a.style.height=o+"px"}function n(n){var a=r.offsetWidth,o=r.offsetHeight;s("Storing current size",a,o),w(r,a,o),f.add(0,function(){if(!p(r))return void s("Aborting because element has been uninstalled");if(!l())return void s("Aborting because element container has not been initialized");if(e.debug){var n=r.offsetWidth,i=r.offsetHeight;n===a&&i===o||c.warn(d.get(r),"Scroll: Size changed before updating detector elements.")}t(r,a,o)}),f.add(1,function(){return p(r)?l()?void P(r,a,o):void s("Aborting because element container has not been initialized"):void s("Aborting because element has been uninstalled")}),n&&f.add(2,function(){return p(r)?l()?void n():void s("Aborting because element container has not been initialized"):void s("Aborting because element has been uninstalled")})}function l(){return!!p(r).container}function m(){s("notifyListenersIfNeeded invoked");var e=p(r);return function(){return void 0===p(r).lastNotifiedWidth}()&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?s("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?s("Not notifying: Size already notified"):(s("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void a(p(r).listeners,function(e){e(r)}))}function h(){if(s("startanimation triggered."),u(r))return void s("Ignoring since element is still unrendered...");s("Element rendered.");var e=o(r),t=i(r);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(s("Scrollbars out of sync. Updating detector elements..."),n(m))}function g(){if(s("Scroll detected."),u(r))return void s("Scroll event fired while unrendered. Ignoring...");var e=r.offsetWidth,t=r.offsetHeight;e!==p(r).lastWidth||t!==p(r).lastHeight?(s("Element size changed."),n(m)):s("Element size has not changed ("+e+"x"+t+").")}if(s("registerListenersAndPositionElements invoked."),!p(r))return void s("Aborting because element has been uninstalled");p(r).onRendered=h,p(r).onExpand=g,p(r).onShrink=g;var b=p(r).style;t(r,b.width,b.height)}function I(){if(s("finalizeDomMutation invoked."),!p(r))return void s("Aborting because element has been uninstalled");var e=p(r).style;w(r,e.width,e.height),P(r,e.width,e.height)}function j(){l(r)}function A(){s("Installing..."),v(),b(),f.add(0,y),f.add(1,N),f.add(2,R),f.add(3,I),f.add(4,j)}l||(l=r,r=e,e=null),e=e||{},s("Making detectable..."),!function(e){return!function(e){return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)}(e)||null===window.getComputedStyle(e)}(r)?A():(s("Element is detached"),O(),s("Waiting until element is attached..."),p(r).onRendered=function(){s("Element is now attached"),A()})}function u(e){var t=p(e);t&&(t.onExpandScroll&&r(o(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&r(i(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&r(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))}e=e||{};var c=e.reporter,f=e.batchProcessor,p=e.stateHandler.getState,d=(e.stateHandler.hasState,e.idHandler);if(!f)throw new Error("Missing required dependency: batchProcessor");if(!c)throw new Error("Missing required dependency: reporter.");var m=function(){var e=document.createElement("div");e.style.cssText="position: absolute; width: 1000px; height: 1000px; visibility: hidden; margin: 0; padding: 0;";var t=document.createElement("div");t.style.cssText="position: absolute; width: 500px; height: 500px; overflow: scroll; visibility: none; top: -1500px; left: -1500px; visibility: hidden; margin: 0; padding: 0;",t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,a=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:a}}(),h="erd_scroll_detection_container";return function(e,t){if(!document.getElementById(e)){var n=t+"_animation",a=t+"_animation_active",r="/* Created by the element-resize-detector library. */\n";r+="."+t+" > div::-webkit-scrollbar { display: none; }\n\n",r+="."+a+" { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+n+"; animation-name: "+n+"; }\n",r+="@-webkit-keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",r+="@keyframes "+n+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",function(t,n){n=n||function(e){document.head.appendChild(e)};var a=document.createElement("style");a.innerHTML=t,a.id=e,n(a)}(r)}}("erd_scroll_detection_scrollbar_style",h),{makeDetectable:s,addListener:l,uninstall:u}}},function(e,t,n){function a(e,t,n){function a(t){var n=v,a=y;return v=y=void 0,C=t,_=e.apply(a,n)}function c(e){return C=e,E=setTimeout(d,t),x?a(e):_}function f(e){var n=e-k,a=e-C,r=t-n;return S?u(r,w-a):r}function p(e){var n=e-k,a=e-C;return void 0===k||n>=t||n<0||S&&a>=w}function d(){var e=o();if(p(e))return m(e);E=setTimeout(d,f(e))}function m(e){return E=void 0,T&&v?a(e):(v=y=void 0,_)}function h(){void 0!==E&&clearTimeout(E),C=0,v=k=y=E=void 0}function g(){return void 0===E?_:m(o())}function b(){var e=o(),n=p(e);if(v=arguments,y=this,k=e,n){if(void 0===E)return c(k);if(S)return E=setTimeout(d,t),a(k)}return void 0===E&&(E=setTimeout(d,t)),_}var v,y,w,_,E,k,C=0,x=!1,S=!1,T=!0;if("function"!=typeof e)throw new TypeError(l);return t=i(t)||0,r(n)&&(x=!!n.leading,S="maxWait"in n,w=S?s(i(n.maxWait)||0,t):w,T="trailing"in n?!!n.trailing:T),b.cancel=h,b.flush=g,b}var r=n(5),o=n(251),i=n(100),l="Expected a function",s=Math.max,u=Math.min;e.exports=a},function(e,t,n){var a=n(4),r=function(){return a.Date.now()};e.exports=r},function(e,t,n){var a=n(42),r=n(253),o=n(273),i=n(13),l=n(15),s=n(276),u=n(278),c=n(54),f=u(function(e,t){var n={};if(null==e)return n;var u=!1;t=a(t,function(t){return t=i(t,e),u||(u=t.length>1),t}),l(e,c(e),n),u&&(n=r(n,7,s));for(var f=t.length;f--;)o(n,t[f]);return n});e.exports=f},function(e,t,n){function a(e,t,n,j,A,M){var z,D=t&x,L=t&S,B=t&T;if(n&&(z=A?n(e,j,A,M):n(e)),void 0!==z)return z;if(!E(e))return e;var F=y(e);if(F){if(z=g(e),!D)return c(e,z)}else{var U=h(e),W=U==O||U==N;if(w(e))return u(e,D);if(U==R||U==P||W&&!A){if(z=L||W?{}:v(e),!D)return L?p(e,s(z,e)):f(e,l(z,e))}else{if(!I[U])return A?e:{};z=b(e,U,D)}}M||(M=new r);var H=M.get(e);if(H)return H;if(M.set(e,z),k(e))return e.forEach(function(r){z.add(a(r,t,n,r,e,M))}),z;if(_(e))return e.forEach(function(r,o){z.set(o,a(r,t,n,o,e,M))}),z;var V=B?L?m:d:L?keysIn:C,q=F?void 0:V(e);return o(q||e,function(r,o){q&&(o=r,r=e[o]),i(z,o,a(r,t,n,o,e,M))}),z}var r=n(43),o=n(254),i=n(40),l=n(255),s=n(256),u=n(257),c=n(258),f=n(259),p=n(260),d=n(81),m=n(54),h=n(36),g=n(261),b=n(262),v=n(267),y=n(6),w=n(50),_=n(269),E=n(5),k=n(271),C=n(19),x=1,S=2,T=4,P="[object Arguments]",O="[object Function]",N="[object GeneratorFunction]",R="[object Object]",I={};I[P]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[R]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[O]=I["[object WeakMap]"]=!1,e.exports=a},function(e,t){function n(e,t){for(var n=-1,a=null==e?0:e.length;++n<a&&!1!==t(e[n],n,e););return e}e.exports=n},function(e,t,n){function a(e,t){return e&&r(t,o(t),e)}var r=n(15),o=n(19);e.exports=a},function(e,t,n){function a(e,t){return e&&r(t,o(t),e)}var r=n(15),o=n(97);e.exports=a},function(e,t,n){(function(e){function a(e,t){if(t)return e.slice();var n=e.length,a=u?u(n):new e.constructor(n);return e.copy(a),a}var r=n(4),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=i&&i.exports===o,s=l?r.Buffer:void 0,u=s?s.allocUnsafe:void 0;e.exports=a}).call(t,n(51)(e))},function(e,t){function n(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}e.exports=n},function(e,t,n){function a(e,t){return r(e,o(e),t)}var r=n(15),o=n(48);e.exports=a},function(e,t,n){function a(e,t){return r(e,o(e),t)}var r=n(15),o=n(96);e.exports=a},function(e,t){function n(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&r.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var a=Object.prototype,r=a.hasOwnProperty;e.exports=n},function(e,t,n){function a(e,t,n){var a=e.constructor;switch(t){case b:return r(e);case u:case c:return new a(+e);case v:return o(e,n);case y:case w:case _:case E:case k:case C:case x:case S:case T:return s(e,n);case f:return new a;case p:case h:return new a(e);case d:return i(e);case m:return new a;case g:return l(e)}}var r=n(67),o=n(263),i=n(264),l=n(265),s=n(266),u="[object Boolean]",c="[object Date]",f="[object Map]",p="[object Number]",d="[object RegExp]",m="[object Set]",h="[object String]",g="[object Symbol]",b="[object ArrayBuffer]",v="[object DataView]",y="[object Float32Array]",w="[object Float64Array]",_="[object Int8Array]",E="[object Int16Array]",k="[object Int32Array]",C="[object Uint8Array]",x="[object Uint8ClampedArray]",S="[object Uint16Array]",T="[object Uint32Array]";e.exports=a},function(e,t,n){function a(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var r=n(67);e.exports=a},function(e,t){function n(e){var t=new e.constructor(e.source,a.exec(e));return t.lastIndex=e.lastIndex,t}var a=/\w*$/;e.exports=n},function(e,t,n){function a(e){return i?Object(i.call(e)):{}}var r=n(12),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=a},function(e,t,n){function a(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var r=n(67);e.exports=a},function(e,t,n){function a(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}var r=n(268),o=n(55),i=n(34);e.exports=a},function(e,t,n){var a=n(5),r=Object.create,o=function(){function e(){}return function(t){if(!a(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var a=n(270),r=n(32),o=n(33),i=o&&o.isMap,l=i?r(i):a;e.exports=l},function(e,t,n){function a(e){return o(e)&&r(e)==i}var r=n(36),o=n(7),i="[object Map]";e.exports=a},function(e,t,n){var a=n(272),r=n(32),o=n(33),i=o&&o.isSet,l=i?r(i):a;e.exports=l},function(e,t,n){function a(e){return o(e)&&r(e)==i}var r=n(36),o=n(7),i="[object Set]";e.exports=a},function(e,t,n){function a(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[l(o(t))]}var r=n(13),o=n(274),i=n(275),l=n(14);e.exports=a},function(e,t){function n(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}e.exports=n},function(e,t,n){function a(e,t){return t.length<2?e:r(e,o(t,0,-1))}var r=n(37),o=n(98);e.exports=a},function(e,t,n){function a(e){return r(e)?void 0:e}var r=n(277);e.exports=a},function(e,t,n){function a(e){if(!i(e)||r(e)!=l)return!1;var t=o(e);if(null===t)return!0;var n=f.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==p}var r=n(10),o=n(55),i=n(7),l="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,f=u.hasOwnProperty,p=c.call(Object);e.exports=a},function(e,t,n){function a(e){return i(o(e,void 0,r),e+"")}var r=n(279),o=n(101),i=n(102);e.exports=a},function(e,t,n){function a(e){return(null==e?0:e.length)?r(e,1):[]}var r=n(280);e.exports=a},function(e,t,n){function a(e,t,n,i,l){var s=-1,u=e.length;for(n||(n=o),l||(l=[]);++s<u;){var c=e[s];t>0&&n(c)?t>1?a(c,t-1,n,i,l):r(l,c):i||(l[l.length]=c)}return l}var r=n(47),o=n(281);e.exports=a},function(e,t,n){function a(e){return i(e)||o(e)||!!(l&&e&&e[l])}var r=n(12),o=n(49),i=n(6),l=r?r.isConcatSpreadable:void 0;e.exports=a},function(e,t,n){"use strict";(function(t){function a(){return null}var r=n(16),o=n(68),i=n(69),l=function(){};"production"!==t.env.NODE_ENV&&(l=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),e.exports=function(e,n){function s(e){var t=e&&(S&&e[S]||e[T]);if("function"===typeof t)return t}function u(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function c(e){this.message=e,this.stack=""}function f(e){function a(a,s,u,f,p,d,m){if(f=f||P,d=d||u,m!==o){if(n){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var g=f+":"+u;!r[g]&&i<3&&(l("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+f+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),r[g]=!0,i++)}}return null==s[u]?a?new c(null===s[u]?"The "+p+" `"+d+"` is marked as required in `"+f+"`, but its value is `null`.":"The "+p+" `"+d+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(s,u,f,p,d)}if("production"!==t.env.NODE_ENV)var r={},i=0;var s=a.bind(null,!1);return s.isRequired=a.bind(null,!0),s}function p(e){function t(t,n,a,r,o,i){var l=t[n];if(E(l)!==e)return new c("Invalid "+r+" `"+o+"` of type `"+k(l)+"` supplied to `"+a+"`, expected `"+e+"`.");return null}return f(t)}function d(e){function t(t,n,a,r,i){if("function"!==typeof e)return new c("Property `"+i+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=t[n];if(!Array.isArray(l)){return new c("Invalid "+r+" `"+i+"` of type `"+E(l)+"` supplied to `"+a+"`, expected an array.")}for(var s=0;s<l.length;s++){var u=e(l,s,a,r,i+"["+s+"]",o);if(u instanceof Error)return u}return null}return f(t)}function m(e){function t(t,n,a,r,o){if(!(t[n]instanceof e)){var i=e.name||P;return new c("Invalid "+r+" `"+o+"` of type `"+x(t[n])+"` supplied to `"+a+"`, expected instance of `"+i+"`.")}return null}return f(t)}function h(e){function n(t,n,a,r,o){for(var i=t[n],l=0;l<e.length;l++)if(u(i,e[l]))return null;return new c("Invalid "+r+" `"+o+"` of value `"+i+"` supplied to `"+a+"`, expected one of "+JSON.stringify(e)+".")}return Array.isArray(e)?f(n):("production"!==t.env.NODE_ENV&&l("Invalid argument supplied to oneOf, expected an instance of array."),a)}function g(e){function t(t,n,a,r,i){if("function"!==typeof e)return new c("Property `"+i+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=t[n],s=E(l);if("object"!==s)return new c("Invalid "+r+" `"+i+"` of type `"+s+"` supplied to `"+a+"`, expected an object.");for(var u in l)if(l.hasOwnProperty(u)){var f=e(l,u,a,r,i+"."+u,o);if(f instanceof Error)return f}return null}return f(t)}function b(e){function n(t,n,a,r,i){for(var l=0;l<e.length;l++){if(null==(0,e[l])(t,n,a,r,i,o))return null}return new c("Invalid "+r+" `"+i+"` supplied to `"+a+"`.")}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&l("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var r=0;r<e.length;r++){var i=e[r];if("function"!==typeof i)return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+C(i)+" at index "+r+"."),a}return f(n)}function v(e){function t(t,n,a,r,i){var l=t[n],s=E(l);if("object"!==s)return new c("Invalid "+r+" `"+i+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");for(var u in e){var f=e[u];if(f){var p=f(l,u,a,r,i+"."+u,o);if(p)return p}}return null}return f(t)}function y(e){function t(t,n,a,i,l){var s=t[n],u=E(s);if("object"!==u)return new c("Invalid "+i+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var f=r({},t[n],e);for(var p in f){var d=e[p];if(!d)return new c("Invalid "+i+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=d(s,p,a,i,l+"."+p,o);if(m)return m}return null}return f(t)}function w(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(w);if(null===t||e(t))return!0;var n=s(t);if(!n)return!1;var a,r=n.call(t);if(n!==t.entries){for(;!(a=r.next()).done;)if(!w(a.value))return!1}else for(;!(a=r.next()).done;){var o=a.value;if(o&&!w(o[1]))return!1}return!0;default:return!1}}function _(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol)}function E(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":_(t,e)?"symbol":t}function k(e){if("undefined"===typeof e||null===e)return""+e;var t=E(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function C(e){var t=k(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function x(e){return e.constructor&&e.constructor.name?e.constructor.name:P}var S="function"===typeof Symbol&&Symbol.iterator,T="@@iterator",P="<<anonymous>>",O={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:function(){return f(a)}(),arrayOf:d,element:function(){function t(t,n,a,r,o){var i=t[n];if(!e(i)){return new c("Invalid "+r+" `"+o+"` of type `"+E(i)+"` supplied to `"+a+"`, expected a single ReactElement.")}return null}return f(t)}(),instanceOf:m,node:function(){function e(e,t,n,a,r){return w(e[t])?null:new c("Invalid "+a+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")}return f(e)}(),objectOf:g,oneOf:h,oneOfType:b,shape:v,exact:y};return c.prototype=Error.prototype,O.checkPropTypes=i,O.PropTypes=O,O}}).call(t,n(2))},function(e,t,n){"use strict";function a(){}var r=n(68);e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=a,n.PropTypes=n,n}},function(e,t,n){"use strict";function a(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=0;a<t;a++)n+="&args[]="+encodeURIComponent(arguments[a+1]);v(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function r(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||I}function o(){}function i(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||I}function l(e,t,n){var a=void 0,r={},o=null,i=null;if(null!=t)for(a in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(o=""+t.key),t)M.call(t,a)&&!z.hasOwnProperty(a)&&(r[a]=t[a]);var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===r[a]&&(r[a]=l[a]);return{$$typeof:E,type:e,key:o,ref:i,props:r,_owner:A.current}}function s(e){return"object"===typeof e&&null!==e&&e.$$typeof===E}function u(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function c(e,t,n,a){if(L.length){var r=L.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=a,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:a,count:0}}function f(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>L.length&&L.push(e)}function p(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case E:case k:i=!0}}if(i)return n(r,e,""===t?"."+d(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){o=e[l];var s=t+d(o,l);i+=p(o,s,n,r)}else if(null===e||"undefined"===typeof e?s=null:(s=R&&e[R]||e["@@iterator"],s="function"===typeof s?s:null),"function"===typeof s)for(e=s.call(e),l=0;!(o=e.next()).done;)o=o.value,s=t+d(o,l++),i+=p(o,s,n,r);else"object"===o&&(n=""+e,a("31","[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return i}function d(e,t){return"object"===typeof e&&null!==e&&null!=e.key?u(e.key):t.toString(36)}function m(e,t){e.func.call(e.context,t,e.count++)}function h(e,t,n){var a=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?g(e,a,n,w.thatReturnsArgument):null!=e&&(s(e)&&(t=r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(D,"$&/")+"/")+n,e={$$typeof:E,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),a.push(e))}function g(e,t,n,a,r){var o="";null!=n&&(o=(""+n).replace(D,"$&/")+"/"),t=c(t,o,a,r),null==e||p(e,"",h,t),f(t)}var b=n(16),v=n(20),y=n(21),w=n(22),_="function"===typeof Symbol&&Symbol.for,E=_?Symbol.for("react.element"):60103,k=_?Symbol.for("react.portal"):60106,C=_?Symbol.for("react.fragment"):60107,x=_?Symbol.for("react.strict_mode"):60108,S=_?Symbol.for("react.profiler"):60114,T=_?Symbol.for("react.provider"):60109,P=_?Symbol.for("react.context"):60110,O=_?Symbol.for("react.async_mode"):60111,N=_?Symbol.for("react.forward_ref"):60112;_&&Symbol.for("react.timeout");var R="function"===typeof Symbol&&Symbol.iterator,I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!==typeof e&&"function"!==typeof e&&null!=e&&a("85"),this.updater.enqueueSetState(this,e,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=r.prototype;var j=i.prototype=new o;j.constructor=i,b(j,r.prototype),j.isPureReactComponent=!0;var A={current:null},M=Object.prototype.hasOwnProperty,z={key:!0,ref:!0,__self:!0,__source:!0},D=/\/+/g,L=[],B={Children:{map:function(e,t,n){if(null==e)return e;var a=[];return g(e,a,null,t,n),a},forEach:function(e,t,n){if(null==e)return e;t=c(null,null,t,n),null==e||p(e,"",m,t),f(t)},count:function(e){return null==e?0:p(e,"",w.thatReturnsNull,null)},toArray:function(e){var t=[];return g(e,t,null,w.thatReturnsArgument),t},only:function(e){return s(e)||a("143"),e}},createRef:function(){return{current:null}},Component:r,PureComponent:i,createContext:function(e,t){return void 0===t&&(t=null),e={$$typeof:P,_calculateChangedBits:t,_defaultValue:e,_currentValue:e,_currentValue2:e,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null},e.Provider={$$typeof:T,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:N,render:e}},Fragment:C,StrictMode:x,unstable_AsyncMode:O,unstable_Profiler:S,createElement:l,cloneElement:function(e,t,n){(null===e||void 0===e)&&a("267",e);var r=void 0,o=b({},e.props),i=e.key,l=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,s=A.current),void 0!==t.key&&(i=""+t.key);var u=void 0;e.type&&e.type.defaultProps&&(u=e.type.defaultProps);for(r in t)M.call(t,r)&&!z.hasOwnProperty(r)&&(o[r]=void 0===t[r]&&void 0!==u?u[r]:t[r])}if(1===(r=arguments.length-2))o.children=n;else if(1<r){u=Array(r);for(var c=0;c<r;c++)u[c]=arguments[c+2];o.children=u}return{$$typeof:E,type:e.type,key:i,ref:l,props:o,_owner:s}},createFactory:function(e){var t=l.bind(null,e);return t.type=e,t},isValidElement:s,version:"16.4.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:A,assign:b}},F={default:B},U=F&&B||F;e.exports=U.default?U.default:U},function(e,t,n){"use strict";(function(t){"production"!==t.env.NODE_ENV&&function(){function t(e){if(null===e||"undefined"===typeof e)return null;var t=se&&e[se]||e[ue];return"function"===typeof t?t:null}function a(e,t){var n=e.constructor,a=n&&(n.displayName||n.name)||"ReactClass",r=a+"."+t;de[r]||(Y(!1,"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,a),de[r]=!0)}function r(e,t,n){this.props=e,this.context=t,this.refs=$,this.updater=n||me}function o(){}function i(e,t,n){this.props=e,this.context=t,this.refs=$,this.updater=n||me}function l(){var e={current:null};return Object.seal(e),e}function s(e){if(ye.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function u(e){if(ye.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function c(e,t){var n=function(){_e||(_e=!0,Y(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function f(e,t){var n=function(){Ee||(Ee=!0,Y(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}function p(e,t,n){var a=void 0,r={},o=null,i=null,l=null,p=null;if(null!=t){s(t)&&(i=t.ref),u(t)&&(o=""+t.key),l=void 0===t.__self?null:t.__self,p=void 0===t.__source?null:t.__source;for(a in t)ye.call(t,a)&&!we.hasOwnProperty(a)&&(r[a]=t[a])}var d=arguments.length-2;if(1===d)r.children=n;else if(d>1){for(var m=Array(d),h=0;h<d;h++)m[h]=arguments[h+2];Object.freeze&&Object.freeze(m),r.children=m}if(e&&e.defaultProps){var g=e.defaultProps;for(a in g)void 0===r[a]&&(r[a]=g[a])}if((o||i)&&("undefined"===typeof r.$$typeof||r.$$typeof!==J)){var b="function"===typeof e?e.displayName||e.name||"Unknown":e;o&&c(r,b),i&&f(r,b)}return ke(e,o,i,l,p,ve.current,r)}function d(e,t){return ke(e.type,t,e.ref,e._self,e._source,e._owner,e.props)}function m(e,t,n){(null===e||void 0===e)&&G(!1,"React.cloneElement(...): The argument must be a React element, but you passed %s.",e);var a=void 0,r=q({},e.props),o=e.key,i=e.ref,l=e._self,c=e._source,f=e._owner;if(null!=t){s(t)&&(i=t.ref,f=ve.current),u(t)&&(o=""+t.key);var p=void 0;e.type&&e.type.defaultProps&&(p=e.type.defaultProps);for(a in t)ye.call(t,a)&&!we.hasOwnProperty(a)&&(void 0===t[a]&&void 0!==p?r[a]=p[a]:r[a]=t[a])}var d=arguments.length-2;if(1===d)r.children=n;else if(d>1){for(var m=Array(d),h=0;h<d;h++)m[h]=arguments[h+2];r.children=m}return ke(e.type,o,i,l,c,f,r)}function h(e){return"object"===typeof e&&null!==e&&e.$$typeof===J}function g(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function b(e){return(""+e).replace(Pe,"$&/")}function v(e,t,n,a){if(Ne.length){var r=Ne.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=a,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:a,count:0}}function y(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Ne.length<Oe&&Ne.push(e)}function w(e,n,a,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case J:case Z:i=!0}}if(i)return a(r,e,""===n?xe+E(e,0):n),1;var l=void 0,s=void 0,u=0,c=""===n?xe:n+Se;if(Array.isArray(e))for(var f=0;f<e.length;f++)l=e[f],s=c+E(l,f),u+=w(l,s,a,r);else{var p=t(e);if("function"===typeof p){p===e.entries&&(Te||Y(!1,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s",Ce.getStackAddendum()),Te=!0);for(var d=p.call(e),m=void 0,h=0;!(m=d.next()).done;)l=m.value,s=c+E(l,h++),u+=w(l,s,a,r)}else if("object"===o){var g="";g=" If you meant to render a collection of children, use an array instead."+Ce.getStackAddendum();var b=""+e;G(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===b?"object with keys {"+Object.keys(e).join(", ")+"}":b,g)}}return u}function _(e,t,n){return null==e?0:w(e,"",t,n)}function E(e,t){return"object"===typeof e&&null!==e&&null!=e.key?g(e.key):t.toString(36)}function k(e,t,n){var a=e.func,r=e.context;a.call(r,t,e.count++)}function C(e,t,n){if(null==e)return e;var a=v(null,null,t,n);_(e,k,a),y(a)}function x(e,t,n){var a=e.result,r=e.keyPrefix,o=e.func,i=e.context,l=o.call(i,t,e.count++);Array.isArray(l)?S(l,a,n,K.thatReturnsArgument):null!=l&&(h(l)&&(l=d(l,r+(!l.key||t&&t.key===l.key?"":b(l.key)+"/")+n)),a.push(l))}function S(e,t,n,a,r){var o="";null!=n&&(o=b(n)+"/");var i=v(t,o,a,r);_(e,x,i),y(i)}function T(e,t,n){if(null==e)return e;var a=[];return S(e,a,null,t,n),a}function P(e){return _(e,K.thatReturnsNull,null)}function O(e){var t=[];return S(e,t,null,K.thatReturnsArgument),t}function N(e){return h(e)||G(!1,"React.Children.only expected to receive a single React element child."),e}function R(e,t){void 0===t?t=null:null!==t&&"function"!==typeof t&&Y(!1,"createContext: Expected the optional second argument to be a function. Instead received: %s",t);var n={$$typeof:re,_calculateChangedBits:t,_defaultValue:e,_currentValue:e,_currentValue2:e,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null};return n.Provider={$$typeof:ae,_context:n},n.Consumer=n,n._currentRenderer=null,n._currentRenderer2=null,n}function I(e){return"function"!==typeof e&&Y(!1,"forwardRef requires a render function but was given %s.",null===e?"null":typeof e),null!=e&&(null!=e.defaultProps||null!=e.propTypes)&&Y(!1,"forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:ie,render:e}}function j(e){return"string"===typeof e||"function"===typeof e||e===ee||e===oe||e===ne||e===te||e===le||"object"===typeof e&&null!==e&&(e.$$typeof===ae||e.$$typeof===re||e.$$typeof===ie)}function A(e){var t=e.type;if("function"===typeof t)return t.displayName||t.name;if("string"===typeof t)return t;switch(t){case oe:return"AsyncMode";case re:return"Context.Consumer";case ee:return"ReactFragment";case Z:return"ReactPortal";case ne:return"Profiler("+e.pendingProps.id+")";case ae:return"Context.Provider";case te:return"StrictMode";case le:return"Timeout"}if("object"===typeof t&&null!==t)switch(t.$$typeof){case ie:var n=t.render.displayName||t.render.name||"";return""!==n?"ForwardRef("+n+")":"ForwardRef"}return null}function M(){if(ve.current){var e=A(ve.current);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}function z(e){if(null!==e&&void 0!==e&&void 0!==e.__source){var t=e.__source;return"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+"."}return""}function D(e){var t=M();if(!t){var n="string"===typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}function L(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=D(t);if(!ze[n]){ze[n]=!0;var a="";e&&e._owner&&e._owner!==ve.current&&(a=" It was passed a child from "+A(e._owner)+"."),Ie=e,Y(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',n,a,Me()),Ie=null}}}function B(e,n){if("object"===typeof e)if(Array.isArray(e))for(var a=0;a<e.length;a++){var r=e[a];h(r)&&L(r,n)}else if(h(e))e._store&&(e._store.validated=!0);else if(e){var o=t(e);if("function"===typeof o&&o!==e.entries)for(var i=o.call(e),l=void 0;!(l=i.next()).done;)h(l.value)&&L(l.value,n)}}function F(e){var t=e.type,n=void 0,a=void 0;if("function"===typeof t)n=t.displayName||t.name,a=t.propTypes;else{if("object"!==typeof t||null===t||t.$$typeof!==ie)return;var r=t.render.displayName||t.render.name||"";n=""!==r?"ForwardRef("+r+")":"ForwardRef",a=t.propTypes}a?(Ie=e,Q(a,e.props,"prop",n,Me),Ie=null):void 0===t.PropTypes||je||(je=!0,Y(!1,"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"===typeof t.getDefaultProps&&(t.getDefaultProps.isReactClassApproved||Y(!1,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."))}function U(e){Ie=e;for(var t=Object.keys(e.props),n=0;n<t.length;n++){var a=t[n];if("children"!==a&&"key"!==a){Y(!1,"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s",a,Me());break}}null!==e.ref&&Y(!1,"Invalid attribute `ref` supplied to `React.Fragment`.%s",Me()),Ie=null}function W(e,t,n){var a=j(e);if(!a){var r="";(void 0===e||"object"===typeof e&&null!==e&&0===Object.keys(e).length)&&(r+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var o=z(t);r+=o||M(),r+=Me()||"";var i=void 0;i=null===e?"null":Array.isArray(e)?"array":typeof e,Y(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",i,r)}var l=p.apply(this,arguments);if(null==l)return l;if(a)for(var s=2;s<arguments.length;s++)B(arguments[s],e);return e===ee?U(l):F(l),l}function H(e){var t=W.bind(null,e);return t.type=e,Object.defineProperty(t,"type",{enumerable:!1,get:function(){return pe(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}function V(e,t,n){for(var a=m.apply(this,arguments),r=2;r<arguments.length;r++)B(arguments[r],a.type);return F(a),a}var q=n(16),G=n(20),$=n(21),Y=n(70),K=n(22),Q=n(69),X="function"===typeof Symbol&&Symbol.for,J=X?Symbol.for("react.element"):60103,Z=X?Symbol.for("react.portal"):60106,ee=X?Symbol.for("react.fragment"):60107,te=X?Symbol.for("react.strict_mode"):60108,ne=X?Symbol.for("react.profiler"):60114,ae=X?Symbol.for("react.provider"):60109,re=X?Symbol.for("react.context"):60110,oe=X?Symbol.for("react.async_mode"):60111,ie=X?Symbol.for("react.forward_ref"):60112,le=X?Symbol.for("react.timeout"):60113,se="function"===typeof Symbol&&Symbol.iterator,ue="@@iterator",ce=function(){},fe=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var r=0,o="Warning: "+e.replace(/%s/g,function(){return n[r++]});"undefined"!==typeof console&&console.warn(o);try{throw new Error(o)}catch(e){}};ce=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,a=Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];fe.apply(void 0,[t].concat(a))}};var pe=ce,de={},me={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){a(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){a(e,"replaceState")},enqueueSetState:function(e,t,n,r){a(e,"setState")}};r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!==typeof e&&"function"!==typeof e&&null!=e&&G(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,e,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var he={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(var ge in he)he.hasOwnProperty(ge)&&function(e,t){Object.defineProperty(r.prototype,e,{get:function(){pe(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(ge,he[ge]);o.prototype=r.prototype;var be=i.prototype=new o;be.constructor=i,q(be,r.prototype),be.isPureReactComponent=!0;var ve={current:null},ye=Object.prototype.hasOwnProperty,we={key:!0,ref:!0,__self:!0,__source:!0},_e=void 0,Ee=void 0,ke=function(e,t,n,a,r,o,i){var l={$$typeof:J,type:e,key:t,ref:n,props:i,_owner:o};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l},Ce={};Ce.getCurrentStack=null,Ce.getStackAddendum=function(){var e=Ce.getCurrentStack;return e?e():null};var xe=".",Se=":",Te=!1,Pe=/\/+/g,Oe=10,Ne=[],Re=function(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")},Ie=void 0,je=void 0,Ae=function(){},Me=function(){};Ie=null,je=!1,Ae=function(e){if(null==e)return"#empty";if("string"===typeof e||"number"===typeof e)return"#text";if("string"===typeof e.type)return e.type;var t=e.type;if(t===ee)return"React.Fragment";if("object"===typeof t&&null!==t&&t.$$typeof===ie){var n=t.render.displayName||t.render.name||"";return""!==n?"ForwardRef("+n+")":"ForwardRef"}return t.displayName||t.name||"Unknown"},Me=function(){var e="";if(Ie){var t=Ae(Ie),n=Ie._owner;e+=Re(t,Ie._source,n&&A(n))}return e+=Ce.getStackAddendum()||""};var ze={},De={Children:{map:T,forEach:C,count:P,toArray:O,only:N},createRef:l,Component:r,PureComponent:i,createContext:R,forwardRef:I,Fragment:ee,StrictMode:te,unstable_AsyncMode:oe,unstable_Profiler:ne,createElement:W,cloneElement:V,createFactory:H,isValidElement:h,version:"16.4.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:ve,assign:q}};q(De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,{ReactDebugCurrentFrame:Ce,ReactComponentTreeHook:{}});var Le=Object.freeze({default:De}),Be=Le&&De||Le,Fe=Be.default?Be.default:Be;e.exports=Fe}()}).call(t,n(2))},function(e,t,n){"use strict";var a=n(1),r=n(287);if("undefined"===typeof a)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new a.Component).updater;e.exports=r(a.Component,a.isValidElement,o)},function(e,t,n){"use strict";(function(t){function a(e){return e}function r(e,n,r){function f(e,n,a){for(var r in n)n.hasOwnProperty(r)&&"production"!==t.env.NODE_ENV&&s("function"===typeof n[r],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactClass",u[a],r)}function p(e,t){var n=E.hasOwnProperty(t)?E[t]:null;T.hasOwnProperty(t)&&l("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&l("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function d(e,a){if(a){l("function"!==typeof a,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),l(!n(a),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,o=r.__reactAutoBindPairs;a.hasOwnProperty(c)&&C.mixins(e,a.mixins);for(var i in a)if(a.hasOwnProperty(i)&&i!==c){var u=a[i],f=r.hasOwnProperty(i);if(p(f,i),C.hasOwnProperty(i))C[i](e,u);else{var d=E.hasOwnProperty(i),m="function"===typeof u,h=m&&!d&&!f&&!1!==a.autobind;if(h)o.push(i,u),r[i]=u;else if(f){var v=E[i];l(d&&("DEFINE_MANY_MERGED"===v||"DEFINE_MANY"===v),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",v,i),"DEFINE_MANY_MERGED"===v?r[i]=g(r[i],u):"DEFINE_MANY"===v&&(r[i]=b(r[i],u))}else r[i]=u,"production"!==t.env.NODE_ENV&&"function"===typeof u&&a.displayName&&(r[i].displayName=a.displayName+"_"+i)}}}else if("production"!==t.env.NODE_ENV){var y=typeof a,w="object"===y&&null!==a;"production"!==t.env.NODE_ENV&&s(w,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",e.displayName||"ReactClass",null===a?null:y)}}function m(e,t){if(t)for(var n in t){var a=t[n];if(t.hasOwnProperty(n)){var r=n in C;l(!r,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var o=n in e;if(o){var i=k.hasOwnProperty(n)?k[n]:null;return l("DEFINE_MANY_MERGED"===i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=g(e[n],a))}e[n]=a}}}function h(e,t){l(e&&t&&"object"===typeof e&&"object"===typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(l(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function g(e,t){return function(){var n=e.apply(this,arguments),a=t.apply(this,arguments);if(null==n)return a;if(null==a)return n;var r={};return h(r,n),h(r,a),r}}function b(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,n){var a=n.bind(e);if("production"!==t.env.NODE_ENV){a.__reactBoundContext=e,a.__reactBoundMethod=n,a.__reactBoundArguments=null;var r=e.constructor.displayName,o=a.bind;a.bind=function(i){for(var l=arguments.length,u=Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];if(i!==e&&null!==i)"production"!==t.env.NODE_ENV&&s(!1,"bind(): React component methods may only be bound to the component instance. See %s",r);else if(!u.length)return"production"!==t.env.NODE_ENV&&s(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",r),a;var f=o.apply(a,arguments);return f.__reactBoundContext=e,f.__reactBoundMethod=n,f.__reactBoundArguments=u,f}}return a}function y(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var a=t[n],r=t[n+1];e[a]=v(e,r)}}function w(e){var n=a(function(e,a,o){"production"!==t.env.NODE_ENV&&s(this instanceof n,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"),this.__reactAutoBindPairs.length&&y(this),this.props=e,this.context=a,this.refs=i,this.updater=o||r,this.state=null;var u=this.getInitialState?this.getInitialState():null;"production"!==t.env.NODE_ENV&&void 0===u&&this.getInitialState._isMockFunction&&(u=null),l("object"===typeof u&&!Array.isArray(u),"%s.getInitialState(): must return an object or null",n.displayName||"ReactCompositeComponent"),this.state=u});n.prototype=new P,n.prototype.constructor=n,n.prototype.__reactAutoBindPairs=[],_.forEach(d.bind(null,n)),d(n,x),d(n,e),d(n,S),n.getDefaultProps&&(n.defaultProps=n.getDefaultProps()),"production"!==t.env.NODE_ENV&&(n.getDefaultProps&&(n.getDefaultProps.isReactClassApproved={}),n.prototype.getInitialState&&(n.prototype.getInitialState.isReactClassApproved={})),l(n.prototype.render,"createClass(...): Class specification must implement a `render` method."),"production"!==t.env.NODE_ENV&&(s(!n.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",e.displayName||"A component"),s(!n.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",e.displayName||"A component"),s(!n.prototype.UNSAFE_componentWillRecieveProps,"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",e.displayName||"A component"));for(var o in E)n.prototype[o]||(n.prototype[o]=null);return n}var _=[],E={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},k={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},C={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)d(e,t[n])},childContextTypes:function(e,n){"production"!==t.env.NODE_ENV&&f(e,n,"childContext"),e.childContextTypes=o({},e.childContextTypes,n)},contextTypes:function(e,n){"production"!==t.env.NODE_ENV&&f(e,n,"context"),e.contextTypes=o({},e.contextTypes,n)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=g(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,n){"production"!==t.env.NODE_ENV&&f(e,n,"prop"),e.propTypes=o({},e.propTypes,n)},statics:function(e,t){m(e,t)},autobind:function(){}},x={componentDidMount:function(){this.__isMounted=!0}},S={componentWillUnmount:function(){this.__isMounted=!1}},T={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return"production"!==t.env.NODE_ENV&&(s(this.__didWarnIsMounted,"%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.",this.constructor&&this.constructor.displayName||this.name||"Component"),this.__didWarnIsMounted=!0),!!this.__isMounted}},P=function(){};return o(P.prototype,e.prototype,T),w}var o=n(16),i=n(21),l=n(20);if("production"!==t.env.NODE_ENV)var s=n(70);var u,c="mixins";u="production"!==t.env.NODE_ENV?{prop:"prop",context:"context",childContext:"child context"}:{},e.exports=r}).call(t,n(2))},function(e,t,n){"use strict";var a=n(289),r=n(3),o=n(63),i=(n.n(o),n(64)),l=(n.n(i),wp.i18n.__);(0,wp.blocks.registerBlockType)("uagb/post-carousel",{title:uagb_blocks_info.blocks["uagb/post-carousel"].title,description:uagb_blocks_info.blocks["uagb/post-carousel"].description,icon:r.a.post_carousel,category:uagb_blocks_info.category,keywords:[l("post"),l("carousel"),l("uagb")],edit:a.a,save:function(){return null}})},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=n(90),l=(n.n(i),n(24)),s=n.n(l),u=n(25),c=n.n(u),f=n(290),p=n(62),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),h=wp.element,g=h.Component,b=h.Fragment,v=wp.i18n.__,y=(wp.htmlEntities.decodeEntities,wp.components),w=y.PanelBody,_=y.Placeholder,E=y.QueryControls,k=y.RangeControl,C=y.SelectControl,x=y.Spinner,S=y.ToggleControl,T=(y.Toolbar,y.TabPanel),P=y.TextControl,O=wp.editor,N=O.InspectorControls,R=O.BlockAlignmentToolbar,I=O.BlockControls,j=O.ColorPalette,A=(O.RichText,wp.data.withSelect),M=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),m(t,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId});var e=document.createElement("style");e.setAttribute("id","uagb-post-carousel-style-"+this.props.clientId),document.head.appendChild(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.categoriesList,a=e.setAttributes,r=e.latestPosts,o=(t.block_id,t.displayPostDate),i=t.displayPostComment,l=t.displayPostExcerpt,s=t.displayPostAuthor,u=t.displayPostImage,c=t.imgSize,m=t.imgPosition,h=t.displayPostLink,g=t.newTab,y=t.ctaText,O=t.borderWidth,A=t.borderStyle,M=t.borderColor,z=t.borderHColor,D=t.borderRadius,L=t.btnVPadding,B=t.btnHPadding,F=t.align,U=(t.postLayout,t.columns),W=t.tcolumns,H=t.mcolumns,V=t.order,q=t.orderBy,G=t.categories,$=t.postsToShow,Y=t.rowGap,K=t.columnGap,Q=t.bgColor,X=t.contentPadding,J=t.contentPaddingMobile,Z=t.titleColor,ee=t.titleTag,te=t.titleFontSize,ne=t.metaFontSize,ae=t.excerptFontSize,re=t.ctaFontSize,oe=t.metaColor,ie=t.excerptColor,le=t.ctaColor,se=t.ctaBgColor,ue=t.ctaHColor,ce=t.ctaBgHColor,fe=t.arrowColor,pe=t.titleBottomSpace,de=t.metaBottomSpace,me=t.excerptBottomSpace,he=t.autoplay,ge=t.autoplaySpeed,be=t.pauseOnHover,ve=t.infiniteLoop,ye=t.transitionSpeed,we=t.arrowDots,_e=t.arrowSize,Ee=t.arrowBorderSize,ke=t.arrowBorderRadius,Ce=t.excerptLength,xe=t.overlayOpacity,Se=t.bgOverlayColor,Te=wp.element.createElement(b,null,wp.element.createElement("p",{className:"uagb-setting-label"},v("Hover Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ue}}))),wp.element.createElement(j,{value:ue,onChange:function(e){return a({ctaHColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},v("Background Hover Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ce}}))),wp.element.createElement(j,{value:ce,onChange:function(e){return a({ctaBgHColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},v("Border Hover Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:z}}))),wp.element.createElement(j,{value:z,onChange:function(e){return a({borderHColor:e})},allowReset:!0})),Pe=wp.element.createElement(b,null,wp.element.createElement("p",{className:"uagb-setting-label"},v("Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:le}}))),wp.element.createElement(j,{value:le,onChange:function(e){return a({ctaColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},v("Background Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:se}}))),wp.element.createElement(j,{value:se,onChange:function(e){return a({ctaBgColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},v("Border Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:M}}))),wp.element.createElement(j,{value:M,onChange:function(e){return a({borderColor:e})},allowReset:!0})),Oe=wp.element.createElement(N,null,wp.element.createElement(w,{title:v("General")},wp.element.createElement(E,d({order:V,orderBy:q},{numberOfItems:$,categoriesList:n,selectedCategoryId:G,onOrderChange:function(e){return a({order:e})},onOrderByChange:function(e){return a({orderBy:e})},onCategoryChange:function(e){return a({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){return a({postsToShow:e})}})),wp.element.createElement(k,{label:v("Columns"),value:U,onChange:function(e){return a({columns:e})},min:1,max:Ie?Math.min(4,r.length):4}),wp.element.createElement(k,{label:v("Columns (Tablet)"),value:W,onChange:function(e){return a({tcolumns:e})},min:1,max:Ie?Math.min(4,r.length):4}),wp.element.createElement(k,{label:v("Columns (Mobile)"),value:H,onChange:function(e){return a({mcolumns:e})},min:1,max:Ie?Math.min(4,r.length):4})),wp.element.createElement(w,{title:v("Carousel"),initialOpen:!1},wp.element.createElement(S,{label:v("Pause On Hover"),checked:be,onChange:function(e){return a({pauseOnHover:!be})}}),wp.element.createElement(S,{label:v("Autoplay"),checked:he,onChange:function(e){return a({autoplay:!he})}}),1==he&&wp.element.createElement(k,{label:v("Autoplay Speed (ms)"),value:ge,onChange:function(e){return a({autoplaySpeed:e})},min:100,max:1e4}),wp.element.createElement(S,{label:v("Infinite Loop"),checked:ve,onChange:function(e){return a({infiniteLoop:!ve})}}),wp.element.createElement(k,{label:v("Transition Speed (ms)"),value:ye,onChange:function(e){return a({transitionSpeed:e})},min:100,max:5e3}),wp.element.createElement(C,{label:v("Show Arrows & Dots"),value:we,onChange:function(e){return a({arrowDots:e})},options:[{value:"arrows",label:v("Only Arrows")},{value:"dots",label:v("Only Dots")},{value:"arrows_dots",label:v("Both Arrows & Dots")}]}),"dots"!=we&&wp.element.createElement(b,null,wp.element.createElement(k,{label:v("Arrow Size"),value:_e,onChange:function(e){return a({arrowSize:e})},min:0,max:50}),wp.element.createElement(k,{label:v("Arrow Border Size"),value:Ee,onChange:function(e){return a({arrowBorderSize:e})},min:0,max:50}),wp.element.createElement(k,{label:v("Arrow Border Radius"),value:ke,onChange:function(e){return a({arrowBorderRadius:e})},min:0,max:50}))),wp.element.createElement(w,{title:v("Image"),initialOpen:!1},wp.element.createElement(S,{label:v("Show Featured Image"),checked:u,onChange:function(e){return a({displayPostImage:!u})}}),1==u&&wp.element.createElement(C,{label:v("Image Sizes"),value:c,onChange:function(e){return a({imgSize:e})},options:[{value:"thumbnail",label:v("Thumbnail")},{value:"medium",label:v("Medium")},{value:"medium_large",label:v("Medium Large")},{value:"large",label:v("Large")}]}),1==u&&wp.element.createElement(C,{label:v("Image Position"),value:m,onChange:function(e){return a({imgPosition:e})},options:[{value:"top",label:v("Top")},{value:"background",label:v("Background")}]}),1==u&&"background"==m&&wp.element.createElement(b,null,wp.element.createElement("p",{className:"uagb-setting-label"},v("Background Overlay Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:Se}}))),wp.element.createElement(j,{value:Se,onChange:function(e){return a({bgOverlayColor:e})},allowReset:!0}),wp.element.createElement(k,{label:v("Overlay Opacity"),value:xe,onChange:function(e){return a({overlayOpacity:e})},min:0,max:100,allowReset:!0}))),wp.element.createElement(w,{title:v("Content"),initialOpen:!1},wp.element.createElement(S,{label:v("Show Author"),checked:s,onChange:function(e){return a({displayPostAuthor:!s})}}),wp.element.createElement(S,{label:v("Show Date"),checked:o,onChange:function(e){return a({displayPostDate:!o})}}),wp.element.createElement(S,{label:v("Show Comment"),checked:i,onChange:function(e){return a({displayPostComment:!i})}}),wp.element.createElement(S,{label:v("Show Excerpt"),checked:l,onChange:function(e){return a({displayPostExcerpt:!l})}}),l&&wp.element.createElement(k,{label:v("Excerpt Length"),value:Ce,onChange:function(e){return a({excerptLength:e})},min:1,max:50,allowReset:!0})),wp.element.createElement(w,{title:v("Read More Link"),initialOpen:!1},wp.element.createElement(S,{label:v("Show Read More Link"),checked:h,onChange:function(e){return a({displayPostLink:!h})}}),wp.element.createElement(S,{label:v("Open links in New Tab"),checked:g,onChange:function(e){return a({newTab:!g})}}),h&&wp.element.createElement(b,null,wp.element.createElement(P,{label:v("Text"),value:y,onChange:function(e){return a({ctaText:e})}}),wp.element.createElement(k,{label:v("Button Text Font Size"),value:re,onChange:function(e){return a({ctaFontSize:e})},min:1,max:50,beforeIcon:"editor-textcolor",allowReset:!0}),wp.element.createElement(C,{label:v("Border Style"),value:A,onChange:function(e){return a({borderStyle:e})},options:[{value:"none",label:v("None")},{value:"solid",label:v("Solid")},{value:"dashed",label:v("Dashed")},{value:"dotted",label:v("Dotted")},{value:"double",label:v("Double")}]}),wp.element.createElement(k,{label:v("Button Border"),value:O,onChange:function(e){return a({borderWidth:e})},min:0,max:10,allowReset:!0}),wp.element.createElement(k,{label:v("Button Border Radius"),value:D,onChange:function(e){return a({borderRadius:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(k,{label:v("Button Vertical Padding"),value:L,onChange:function(e){return a({btnVPadding:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(k,{label:v("Button Horizontal Padding"),value:B,onChange:function(e){return a({btnHPadding:e})},min:0,max:50,allowReset:!0}),wp.element.createElement("p",{className:"uagb-inspect-tab-title"},wp.element.createElement("strong",null,v("Colors"))),wp.element.createElement(T,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:v("Normal"),className:"uagb-normal-tab"},{name:"hover",title:v("Hover"),className:"uagb-hover-tab"}]},function(e){var t=void 0;return t="hover"===e.name?Te:Pe,wp.element.createElement("div",null,t)}))),wp.element.createElement(w,{title:v("Typography"),initialOpen:!1},wp.element.createElement(C,{label:v("Title Tag"),value:ee,onChange:function(e){return a({titleTag:e})},options:[{value:"h1",label:v("H1")},{value:"h2",label:v("H2")},{value:"h3",label:v("H3")},{value:"h4",label:v("H4")},{value:"h5",label:v("H5")},{value:"h6",label:v("H6")}]}),wp.element.createElement(k,{label:v("Title Font Size"),value:te,onChange:function(e){return a({titleFontSize:e})},min:1,max:50,beforeIcon:"editor-textcolor",allowReset:!0}),(s||o||i)&&wp.element.createElement(k,{label:v("Meta Font Size"),value:ne,onChange:function(e){return a({metaFontSize:e})},min:1,max:50,beforeIcon:"editor-textcolor",allowReset:!0}),l&&wp.element.createElement(k,{label:v("Excerpt Font Size"),value:ae,onChange:function(e){return a({excerptFontSize:e})},min:1,max:50,beforeIcon:"editor-textcolor",allowReset:!0})),wp.element.createElement(w,{title:v("Colors"),initialOpen:!1},"top"==m&&wp.element.createElement(b,null,wp.element.createElement("p",{className:"uagb-setting-label"},v("Blog Background Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:Q}}))),wp.element.createElement(j,{value:Q,onChange:function(e){return a({bgColor:e})},allowReset:!0})),wp.element.createElement(b,null,wp.element.createElement("p",{className:"uagb-setting-label"},v("Title Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:Z}}))),wp.element.createElement(j,{value:Z,onChange:function(e){return a({titleColor:e})},allowReset:!0})),wp.element.createElement(b,null,wp.element.createElement("p",{className:"uagb-setting-label"},v("Meta Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:oe}}))),wp.element.createElement(j,{value:oe,onChange:function(e){return a({metaColor:e})}})),1==l&&wp.element.createElement(b,null,wp.element.createElement("p",{className:"uagb-setting-label"},v("Excerpt Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ie}}))),wp.element.createElement(j,{value:ie,onChange:function(e){return a({excerptColor:e})},allowReset:!0})),wp.element.createElement("p",{className:"uagb-setting-label"},v("Arrows & Dots Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:fe}}))),wp.element.createElement(j,{value:fe,onChange:function(e){return a({arrowColor:e})},allowReset:!0})),wp.element.createElement(w,{title:v("Spacing"),initialOpen:!1},wp.element.createElement(k,{label:v("Row Gap"),value:Y,onChange:function(e){return a({rowGap:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(k,{label:v("Gap Between Posts & Dots"),value:K,onChange:function(e){return a({columnGap:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(k,{label:v("Content Padding"),value:X,onChange:function(e){return a({contentPadding:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(k,{label:v("Content Padding (Mobile)"),value:J,onChange:function(e){return a({contentPaddingMobile:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(k,{label:v("Title Bottom Spacing"),value:pe,onChange:function(e){return a({titleBottomSpace:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(k,{label:v("Meta Bottom Spacing"),value:de,onChange:function(e){return a({metaBottomSpace:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(k,{label:v("Excerpt Bottom Spacing"),value:me,onChange:function(e){return a({excerptBottomSpace:e})},min:0,max:50,allowReset:!0}))),Ne=document.getElementById("uagb-post-carousel-style-"+this.props.clientId),Re="";null!=Ne&&"undefined"!=typeof Ne&&(Re=Object(p.a)(this.props,"uagb-post__carousel"),Re+="#uagb-post__carousel-"+this.props.clientId+".uagb-post-grid ul.slick-dots li.slick-active button:before, #uagb-post__carousel-"+this.props.clientId+".uagb-slick-carousel ul.slick-dots li button:before { color: "+fe+"; }",Ne.innerHTML=Re);var Ie=Array.isArray(r)&&r.length;return Ie?wp.element.createElement(b,null,Oe,wp.element.createElement(I,null,wp.element.createElement(R,{value:F,onChange:function(e){a({align:e})},controls:["left","center","right"]})),wp.element.createElement(f.a,{attributes:t,className:this.props.className,latestPosts:r,block_id:this.props.clientId})):wp.element.createElement(b,null,Oe,wp.element.createElement(_,{icon:"admin-post",label:uagb_blocks_info.blocks["uagb/post-carousel"].title},Array.isArray(r)?v("No posts found."):wp.element.createElement(x,null)))}}]),t}(g);t.a=A(function(e,t){var n=t.attributes,a=n.categories,r=n.postsToShow,o=n.order,i=n.orderBy,l=e("core"),u=l.getEntityRecords,f=c()({categories:a,order:o,orderby:i,per_page:r},function(e){return!s()(e)}),p={per_page:100};return{latestPosts:u("postType","post",f),categoriesList:u("taxonomy","category",p)}})(M)},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=n(0),l=n.n(i),s=n(105),u=n.n(s),c=n(56),f=n(57),p=n(58),d=n(59),m=n(61),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},g=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),b=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),g(t,[{key:"render",value:function(){function e(e){return wp.element.createElement("button",{type:"button","data-role":"none",className:"slick-next slick-arrow","aria-label":"Next",tabIndex:"0",role:"button",style:{borderColor:T,borderRadius:S,borderWidth:x}},wp.element.createElement("span",{className:"fas fa-angle-right",style:{fontSize:e.arrowSize,width:e.arrowSize,height:e.arrowSize,color:T}}))}function t(e){return wp.element.createElement("button",{type:"button","data-role":"none",className:"slick-prev slick-arrow","aria-label":"Previous",tabIndex:"0",role:"button",style:{borderColor:T,borderRadius:S,borderWidth:x}},wp.element.createElement("span",{className:"fas fa-angle-left",style:{fontSize:e.arrowSize,width:e.arrowSize,height:e.arrowSize,color:T}}))}var n=this.props,a=n.attributes,r=n.className,o=n.latestPosts,i=n.block_id,s=(a.displayPostImage,a.columns),g=a.tcolumns,b=a.mcolumns,v=a.imgPosition,y=a.postsToShow,w=(a.rowGap,a.columnGap,a.bgColor,a.contentPadding,a.autoplay),_=a.pauseOnHover,E=a.transitionSpeed,k=a.infiniteLoop,C=a.arrowSize,x=a.arrowBorderSize,S=a.arrowBorderRadius,T=a.arrowColor,P=a.arrowDots,O=o.length>y?o.slice(0,y):o,N="dots"==P||"arrows_dots"==P,R="arrows"==P||"arrows_dots"==P,I={slidesToShow:s,slidesToScroll:1,autoplaySpeed:2e3,autoplay:w,infinite:k,pauseOnHover:_,speed:E,arrows:R,dots:N,rtl:!1,nextArrow:wp.element.createElement(e,{arrowSize:C}),prevArrow:wp.element.createElement(t,{arrowSize:C}),responsive:[{breakpoint:1024,settings:{slidesToShow:g,slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:b,slidesToScroll:1}}]},j=O.map(function(e,t){return wp.element.createElement("article",{key:t},wp.element.createElement("div",{className:"uagb-post__inner-wrap"},wp.element.createElement(c.a,{post:e,attributes:a}),wp.element.createElement("div",{className:"uagb-post__text"},wp.element.createElement(f.a,{post:e,attributes:a}),wp.element.createElement(p.a,{post:e,attributes:a}),wp.element.createElement(d.a,{post:e,attributes:a}),wp.element.createElement(m.a,{post:e,attributes:a}))))});if(s>=O.length)return wp.element.createElement("div",{className:l()(r,"uagb-post-grid","uagb-post__arrow-outside","uagb-post__image-position-"+v),"data-blog-id":i,id:"uagb-post__carousel-"+i},wp.element.createElement("div",{className:l()("is-carousel","uagb-post__columns-"+s,"uagb-post__columns-tablet-"+g,"uagb-post__columns-mobile-"+b,"uagb-post__items")},j));return"dots"==P&&{padding:0},wp.element.createElement("div",{className:l()(r,"uagb-post-grid","uagb-post__arrow-outside","uagb-slick-carousel","uagb-post__image-position-"+v),"data-blog-id":i,id:"uagb-post__carousel-"+i,style:"dots"==P?{padding:0}:{}},wp.element.createElement(u.a,h({className:l()("is-carousel","uagb-post__columns-"+s,"uagb-post__items")},I),j))}}]),t}(React.Component);t.a=b},function(e,t,n){"use strict";(function(e){function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s=n(1),u=a(s),c=n(292),f=n(307),p=a(f),d=n(309),m=a(d),h=n(41),g=(0,h.canUseDOM)()&&n(310),b=function(t){function n(e){r(this,n);var a=o(this,t.call(this,e));return a.innerSliderRefHandler=function(e){return a.innerSlider=e},a.slickPrev=function(){return a.innerSlider.slickPrev()},a.slickNext=function(){return a.innerSlider.slickNext()},a.slickGoTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a.innerSlider.slickGoTo(e,t)},a.slickPause=function(){return a.innerSlider.pause("paused")},a.slickPlay=function(){return a.innerSlider.autoPlay("play")},a.state={breakpoint:null},a._responsiveMediaHandlers=[],a}return i(n,t),n.prototype.media=function(e,t){g.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})},n.prototype.componentWillMount=function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(n,a){var r=void 0;r=0===a?(0,p.default)({minWidth:0,maxWidth:n}):(0,p.default)({minWidth:t[a-1]+1,maxWidth:n}),(0,h.canUseDOM)()&&e.media(r,function(){e.setState({breakpoint:n})})});var n=(0,p.default)({minWidth:t.slice(-1)[0]});(0,h.canUseDOM)()&&this.media(n,function(){e.setState({breakpoint:null})})}},n.prototype.componentWillUnmount=function(){this._responsiveMediaHandlers.forEach(function(e){g.unregister(e.query,e.handler)})},n.prototype.render=function(){var t,n,a=this;this.state.breakpoint?(n=this.props.responsive.filter(function(e){return e.breakpoint===a.state.breakpoint}),t="unslick"===n[0].settings?"unslick":l({},m.default,this.props,n[0].settings)):t=l({},m.default,this.props),t.centerMode&&(t.slidesToScroll>1&&"production"!==e.env.NODE_ENV&&console.warn("slidesToScroll should be equal to 1 in centerMode, you are using "+t.slidesToScroll),t.slidesToScroll=1),t.fade&&(t.slidesToShow>1&&"production"!==e.env.NODE_ENV&&console.warn("slidesToShow should be equal to 1 when fade is true, you're using "+t.slidesToShow),t.slidesToScroll>1&&"production"!==e.env.NODE_ENV&&console.warn("slidesToScroll should be equal to 1 when fade is true, you're using "+t.slidesToScroll),t.slidesToShow=1,t.slidesToScroll=1);var r=u.default.Children.toArray(this.props.children);r=r.filter(function(e){return"string"===typeof e?!!e.trim():!!e}),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);for(var o=[],i=null,s=0;s<r.length;s+=t.rows*t.slidesPerRow){for(var f=[],p=s;p<s+t.rows*t.slidesPerRow;p+=t.slidesPerRow){for(var d=[],h=p;h<p+t.slidesPerRow&&(t.variableWidth&&r[h].props.style&&(i=r[h].props.style.width),!(h>=r.length));h+=1)d.push(u.default.cloneElement(r[h],{key:100*s+10*p+h,tabIndex:-1,style:{width:100/t.slidesPerRow+"%",display:"inline-block"}}));f.push(u.default.createElement("div",{key:10*s+p},d))}t.variableWidth?o.push(u.default.createElement("div",{key:s,style:{width:i}},f)):o.push(u.default.createElement("div",{key:s},f))}if("unslick"===t){var g="regular slider "+(this.props.className||"");return u.default.createElement("div",{className:g},o)}return o.length<=t.slidesToShow&&(t.unslick=!0),u.default.createElement(c.InnerSlider,l({ref:this.innerSliderRefHandler},t),o)},n}(u.default.Component);t.default=b}).call(t,n(2))},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var a in e)t.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=e[a]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}t.__esModule=!0,t.InnerSlider=void 0;var s="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},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c=n(1),f=a(c),p=n(23),d=a(p),m=n(301),h=a(m),g=n(302),b=a(g),v=n(0),y=a(v),w=n(41),_=n(303),E=n(304),k=n(305),C=n(306),x=a(C);t.InnerSlider=function(e){function t(n){o(this,t);var a=i(this,e.call(this,n));return a.listRefHandler=function(e){return a.list=e},a.trackRefHandler=function(e){return a.track=e},a.adaptHeight=function(){if(a.props.adaptiveHeight&&a.list){var e=a.list.querySelector('[data-index="'+a.state.currentSlide+'"]');a.list.style.height=(0,w.getHeight)(e)+"px"}},a.componentWillMount=function(){if(a.ssrInit(),a.props.onInit&&a.props.onInit(),a.props.lazyLoad){var e=(0,w.getOnDemandLazySlides)(u({},a.props,a.state));e.length>0&&(a.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),a.props.onLazyLoad&&a.props.onLazyLoad(e))}},a.componentDidMount=function(){var e=u({listRef:a.list,trackRef:a.track},a.props);a.updateState(e,!0,function(){a.adaptHeight(),a.props.autoplay&&a.autoPlay("update")}),"progressive"===a.props.lazyLoad&&(a.lazyLoadTimer=setInterval(a.progressiveLazyLoad,1e3)),a.ro=new x.default(function(){a.state.animating?(a.onWindowResized(!1),a.callbackTimers.push(setTimeout(function(){return a.onWindowResized()},a.props.speed))):a.onWindowResized()}),a.ro.observe(a.list),Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=a.props.pauseOnFocus?a.onSlideFocus:null,e.onblur=a.props.pauseOnFocus?a.onSlideBlur:null}),window&&(window.addEventListener?window.addEventListener("resize",a.onWindowResized):window.attachEvent("onresize",a.onWindowResized))},a.componentWillUnmount=function(){a.animationEndCallback&&clearTimeout(a.animationEndCallback),a.lazyLoadTimer&&clearInterval(a.lazyLoadTimer),a.callbackTimers.length&&(a.callbackTimers.forEach(function(e){return clearTimeout(e)}),a.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",a.onWindowResized):window.detachEvent("onresize",a.onWindowResized),a.autoplayTimer&&clearInterval(a.autoplayTimer)},a.componentWillReceiveProps=function(e){for(var t=u({listRef:a.list,trackRef:a.track},e,a.state),n=!1,r=Object.keys(a.props),o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){var l;if(o){if(i>=r.length)break;l=r[i++]}else{if(i=r.next(),i.done)break;l=i.value}var c=l;if(!e.hasOwnProperty(c)){n=!0;break}if("object"!==s(e[c])&&"function"!==typeof e[c]&&e[c]!==a.props[c]){n=!0;break}}a.updateState(t,n,function(){a.state.currentSlide>=f.default.Children.count(e.children)&&a.changeSlide({message:"index",index:f.default.Children.count(e.children)-e.slidesToShow,currentSlide:a.state.currentSlide}),e.autoplay?a.autoPlay("update"):a.pause("paused")})},a.componentDidUpdate=function(){if(a.checkImagesLoad(),a.props.onReInit&&a.props.onReInit(),a.props.lazyLoad){var e=(0,w.getOnDemandLazySlides)(u({},a.props,a.state));e.length>0&&(a.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),a.props.onLazyLoad&&a.props.onLazyLoad(e))}a.adaptHeight()},a.onWindowResized=function(e){a.debouncedResize&&a.debouncedResize.cancel(),a.debouncedResize=(0,b.default)(function(){return a.resizeWindow(e)},50),a.debouncedResize()},a.resizeWindow=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(d.default.findDOMNode(a.track)){var t=u({listRef:a.list,trackRef:a.track},a.props,a.state);a.updateState(t,e,function(){a.props.autoplay?a.autoPlay("update"):a.pause("paused")}),a.setState({animating:!1}),clearTimeout(a.animationEndCallback),delete a.animationEndCallback}},a.updateState=function(e,t,n){var r=(0,w.initializedState)(e);e=u({},e,r,{slideIndex:r.currentSlide});var o=(0,w.getTrackLeft)(e);e=u({},e,{left:o});var i=(0,w.getTrackCSS)(e);(t||f.default.Children.count(a.props.children)!==f.default.Children.count(e.children))&&(r.trackStyle=i),a.setState(r,n)},a.ssrInit=function(){if(a.props.variableWidth){var e=0,t=0,n=[],r=(0,w.getPreClones)(u({},a.props,a.state,{slideCount:a.props.children.length})),o=(0,w.getPostClones)(u({},a.props,a.state,{slideCount:a.props.children.length}));a.props.children.forEach(function(t){n.push(t.props.style.width),e+=t.props.style.width});for(var i=0;i<r;i++)t+=n[n.length-1-i],e+=n[n.length-1-i];for(var l=0;l<o;l++)e+=n[l];for(var s=0;s<a.state.currentSlide;s++)t+=n[s];var c={width:e+"px",left:-t+"px"};if(a.props.centerMode){var p=n[a.state.currentSlide]+"px";c.left="calc("+c.left+" + (100% - "+p+") / 2 ) "}return void a.setState({trackStyle:c})}var d=f.default.Children.count(a.props.children),m=u({},a.props,a.state,{slideCount:d}),h=(0,w.getPreClones)(m)+(0,w.getPostClones)(m)+d,g=100/a.props.slidesToShow*h,b=100/h,v=-b*((0,w.getPreClones)(m)+a.state.currentSlide)*g/100;a.props.centerMode&&(v+=(100-b*g/100)/2);var y={width:g+"%",left:v+"%"};a.setState({slideWidth:b+"%",trackStyle:y})},a.checkImagesLoad=function(){var e=document.querySelectorAll(".slick-slide img"),t=e.length,n=0;Array.prototype.forEach.call(e,function(e){var r=function(){return++n&&n>=t&&a.onWindowResized()};if(e.onclick){var o=e.onclick;e.onclick=function(){o(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(a.props.lazyLoad?e.onload=function(){a.adaptHeight(),a.callbackTimers.push(setTimeout(a.onWindowResized,a.props.speed))}:(e.onload=r,e.onerror=function(){r(),a.props.onLazyLoadError&&a.props.onLazyLoadError()}))})},a.progressiveLazyLoad=function(){for(var e=[],t=u({},a.props,a.state),n=a.state.currentSlide;n<a.state.slideCount+(0,w.getPostClones)(t);n++)if(a.state.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(var r=a.state.currentSlide-1;r>=-(0,w.getPreClones)(t);r--)if(a.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(a.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),a.props.onLazyLoad&&a.props.onLazyLoad(e)):a.lazyLoadTimer&&(clearInterval(a.lazyLoadTimer),delete a.lazyLoadTimer)},a.slideHandler=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=a.props,o=n.asNavFor,i=n.currentSlide,l=n.beforeChange,s=n.onLazyLoad,c=n.speed,f=n.afterChange,p=(0,w.slideHandler)(u({index:e},a.props,a.state,{trackRef:a.track,useCSS:a.props.useCSS&&!t})),d=p.state,m=p.nextState;if(d){l&&l(i,d.currentSlide);var h=d.lazyLoadedList.filter(function(e){return a.state.lazyLoadedList.indexOf(e)<0});s&&h.length>0&&s(h),a.setState(d,function(){o&&o.innerSlider.state.currentSlide!==i&&o.innerSlider.slideHandler(e),m&&(a.animationEndCallback=setTimeout(function(){var e=m.animating,t=r(m,["animating"]);a.setState(t,function(){a.callbackTimers.push(setTimeout(function(){return a.setState({animating:e})},10)),f&&f(d.currentSlide),delete a.animationEndCallback})},c))})}},a.changeSlide=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=u({},a.props,a.state),r=(0,w.changeSlide)(n,e);(0===r||r)&&(!0===t?a.slideHandler(r,t):a.slideHandler(r))},a.clickHandler=function(e){!1===a.clickable&&(e.stopPropagation(),e.preventDefault()),a.clickable=!0},a.keyHandler=function(e){var t=(0,w.keyHandler)(e,a.props.accessibility,a.props.rtl);""!==t&&a.changeSlide({message:t})},a.selectHandler=function(e){a.changeSlide(e)},a.disableBodyScroll=function(){var e=function(e){e=e||window.event,e.preventDefault&&e.preventDefault(),e.returnValue=!1};window.ontouchmove=e},a.enableBodyScroll=function(){window.ontouchmove=null},a.swipeStart=function(e){a.props.verticalSwiping&&a.disableBodyScroll();var t=(0,w.swipeStart)(e,a.props.swipe,a.props.draggable);""!==t&&a.setState(t)},a.swipeMove=function(e){var t=(0,w.swipeMove)(e,u({},a.props,a.state,{trackRef:a.track,listRef:a.list,slideIndex:a.state.currentSlide}));t&&(t.swiping&&(a.clickable=!1),a.setState(t))},a.swipeEnd=function(e){var t=(0,w.swipeEnd)(e,u({},a.props,a.state,{trackRef:a.track,listRef:a.list,slideIndex:a.state.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,a.setState(t),void 0!==n&&(a.slideHandler(n),a.props.verticalSwiping&&a.enableBodyScroll())}},a.slickPrev=function(){a.callbackTimers.push(setTimeout(function(){return a.changeSlide({message:"previous"})},0))},a.slickNext=function(){a.callbackTimers.push(setTimeout(function(){return a.changeSlide({message:"next"})},0))},a.slickGoTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";a.callbackTimers.push(setTimeout(function(){return a.changeSlide({message:"index",index:e,currentSlide:a.state.currentSlide},t)},0))},a.play=function(){var e;if(a.props.rtl)e=a.state.currentSlide-a.props.slidesToScroll;else{if(!(0,w.canGoNext)(u({},a.props,a.state)))return!1;e=a.state.currentSlide+a.props.slidesToScroll}a.slideHandler(e)},a.autoPlay=function(e){a.autoplayTimer&&clearInterval(a.autoplayTimer);var t=a.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;a.autoplayTimer=setInterval(a.play,a.props.autoplaySpeed+50),a.setState({autoplaying:"playing"})},a.pause=function(e){a.autoplayTimer&&(clearInterval(a.autoplayTimer),a.autoplayTimer=null);var t=a.state.autoplaying;"paused"===e?a.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||a.setState({autoplaying:"focused"}):"playing"===t&&a.setState({autoplaying:"hovered"})},a.onDotsOver=function(){return a.props.autoplay&&a.pause("hovered")},a.onDotsLeave=function(){return a.props.autoplay&&"hovered"===a.state.autoplaying&&a.autoPlay("leave")},a.onTrackOver=function(){return a.props.autoplay&&a.pause("hovered")},a.onTrackLeave=function(){return a.props.autoplay&&"hovered"===a.state.autoplaying&&a.autoPlay("leave")},a.onSlideFocus=function(){return a.props.autoplay&&a.pause("focused")},a.onSlideBlur=function(){return a.props.autoplay&&"focused"===a.state.autoplaying&&a.autoPlay("blur")},a.render=function(){var e=(0,y.default)("slick-slider",a.props.className,{"slick-vertical":a.props.vertical,"slick-initialized":!0}),t=u({},a.props,a.state),n=(0,w.extractObject)(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding"]),r=a.props.pauseOnHover;n=u({},n,{onMouseEnter:r?a.onTrackOver:null,onMouseLeave:r?a.onTrackLeave:null,onMouseOver:r?a.onTrackOver:null,focusOnSelect:a.props.focusOnSelect?a.selectHandler:null});var o;if(!0===a.props.dots&&a.state.slideCount>=a.props.slidesToShow){var i=(0,w.extractObject)(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),l=a.props.pauseOnDotsHover;i=u({},i,{clickHandler:a.changeSlide,onMouseEnter:l?a.onDotsLeave:null,onMouseOver:l?a.onDotsOver:null,onMouseLeave:l?a.onDotsLeave:null}),o=f.default.createElement(E.Dots,i)}var s,c,p=(0,w.extractObject)(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=a.changeSlide,a.props.arrows&&(s=f.default.createElement(k.PrevArrow,p),c=f.default.createElement(k.NextArrow,p));var d=null;a.props.vertical&&(d={height:a.state.listHeight});var m=null;!1===a.props.vertical?!0===a.props.centerMode&&(m={padding:"0px "+a.props.centerPadding}):!0===a.props.centerMode&&(m={padding:a.props.centerPadding+" 0px"});var h=u({},d,m),g=a.props.touchMove,b={className:"slick-list",style:h,onClick:a.clickHandler,onMouseDown:g?a.swipeStart:null,onMouseMove:a.state.dragging&&g?a.swipeMove:null,onMouseUp:g?a.swipeEnd:null,onMouseLeave:a.state.dragging&&g?a.swipeEnd:null,onTouchStart:g?a.swipeStart:null,onTouchMove:a.state.dragging&&g?a.swipeMove:null,onTouchEnd:g?a.swipeEnd:null,onTouchCancel:a.state.dragging&&g?a.swipeEnd:null,onKeyDown:a.props.accessibility?a.keyHandler:null},v={className:e,dir:"ltr"};return a.props.unslick&&(b={className:"slick-list"},v={className:e}),f.default.createElement("div",v,a.props.unslick?"":s,f.default.createElement("div",u({ref:a.listRefHandler},b),f.default.createElement(_.Track,u({ref:a.trackRefHandler},n),a.props.children)),a.props.unslick?"":c,a.props.unslick?"":o)},a.list=null,a.track=null,a.state=u({},h.default,{currentSlide:a.props.initialSlide,slideCount:f.default.Children.count(a.props.children)}),a.callbackTimers=[],a.clickable=!0,a.debouncedResize=null,a}return l(t,e),t}(f.default.Component)},function(e,t,n){"use strict";function a(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,a=0;a<t;a++)n+="&args[]="+encodeURIComponent(arguments[a+1]);Aa(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function r(e,t,n,a,r,o,i,l,s){this._hasCaughtError=!1,this._caughtError=null;var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this._caughtError=e,this._hasCaughtError=!0}}function o(){if(Ha._hasRethrowError){var e=Ha._rethrowError;throw Ha._rethrowError=null,Ha._hasRethrowError=!1,e}}function i(){if(Va)for(var e in qa){var t=qa[e],n=Va.indexOf(e);if(-1<n||a("96",e),!Ga[n]){t.extractEvents||a("97",e),Ga[n]=t,n=t.eventTypes;for(var r in n){var o=void 0,i=n[r],s=t,u=r;$a.hasOwnProperty(u)&&a("99",u),$a[u]=i;var c=i.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&l(c[o],s,u);o=!0}else i.registrationName?(l(i.registrationName,s,u),o=!0):o=!1;o||a("98",r,e)}}}}function l(e,t,n){Ya[e]&&a("100",e),Ya[e]=t,Ka[e]=t.eventTypes[n].dependencies}function s(e){Va&&a("101"),Va=Array.prototype.slice.call(e),i()}function u(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];qa.hasOwnProperty(t)&&qa[t]===r||(qa[t]&&a("102",t),qa[t]=r,n=!0)}n&&i()}function c(e,t,n,a){t=e.type||"unknown-event",e.currentTarget=Za(a),Ha.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function f(e,t){return null==t&&a("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function p(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function d(e,t){if(e){var n=e._dispatchListeners,a=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r<n.length&&!e.isPropagationStopped();r++)c(e,t,n[r],a[r]);else n&&c(e,t,n,a);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function m(e){return d(e,!0)}function h(e){return d(e,!1)}function g(e,t){var n=e.stateNode;if(!n)return null;var r=Xa(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(e=e.type,r=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!==typeof n&&a("231",t,typeof n),n)}function b(e,t){null!==e&&(er=f(er,e)),e=er,er=null,e&&(t?p(e,m):p(e,h),er&&a("95"),Ha.rethrowCaughtError())}function v(e,t,n,a){for(var r=null,o=0;o<Ga.length;o++){var i=Ga[o];i&&(i=i.extractEvents(e,t,n,a))&&(r=f(r,i))}b(r,!1)}function y(e){if(e[rr])return e[rr];for(;!e[rr];){if(!e.parentNode)return null;e=e.parentNode}return e=e[rr],5===e.tag||6===e.tag?e:null}function w(e){if(5===e.tag||6===e.tag)return e.stateNode;a("33")}function _(e){return e[or]||null}function E(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function k(e,t,n){for(var a=[];e;)a.push(e),e=E(e);for(e=a.length;0<e--;)t(a[e],"captured",n);for(e=0;e<a.length;e++)t(a[e],"bubbled",n)}function C(e,t,n){(t=g(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=f(n._dispatchListeners,t),n._dispatchInstances=f(n._dispatchInstances,e))}function x(e){e&&e.dispatchConfig.phasedRegistrationNames&&k(e._targetInst,C,e)}function S(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;t=t?E(t):null,k(t,C,e)}}function T(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=g(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=f(n._dispatchListeners,t),n._dispatchInstances=f(n._dispatchInstances,e))}function P(e){e&&e.dispatchConfig.registrationName&&T(e._targetInst,null,e)}function O(e){p(e,x)}function N(e,t,n,a){if(n&&a)e:{for(var r=n,o=a,i=0,l=r;l;l=E(l))i++;l=0;for(var s=o;s;s=E(s))l++;for(;0<i-l;)r=E(r),i--;for(;0<l-i;)o=E(o),l--;for(;i--;){if(r===o||r===o.alternate)break e;r=E(r),o=E(o)}r=null}else r=null;for(o=r,r=[];n&&n!==o&&(null===(i=n.alternate)||i!==o);)r.push(n),n=E(n);for(n=[];a&&a!==o&&(null===(i=a.alternate)||i!==o);)n.push(a),a=E(a);for(a=0;a<r.length;a++)T(r[a],"bubbled",e);for(e=n.length;0<e--;)T(n[e],"captured",t)}function R(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function I(e){if(ur[e])return ur[e];if(!sr[e])return e;var t,n=sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in cr)return ur[e]=n[t];return e}function j(){return!gr&&za.canUseDOM&&(gr="textContent"in document.documentElement?"textContent":"innerText"),gr}function A(){if(br._fallbackText)return br._fallbackText;var e,t,n=br._startText,a=n.length,r=M(),o=r.length;for(e=0;e<a&&n[e]===r[e];e++);var i=a-e;for(t=1;t<=i&&n[a-t]===r[o-t];t++);return br._fallbackText=r.slice(e,1<t?1-t:void 0),br._fallbackText}function M(){return"value"in br._root?br._root.value:br._root[j()]}function z(e,t,n,a){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface;for(var r in e)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=a:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?La.thatReturnsTrue:La.thatReturnsFalse,this.isPropagationStopped=La.thatReturnsFalse,this}function D(e,t,n,a){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,a),r}return new this(e,t,n,a)}function L(e){e instanceof this||a("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function B(e){e.eventPool=[],e.getPooled=D,e.release=L}function F(e,t){switch(e){case"keyup":return-1!==Er.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function U(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}function W(e,t){switch(e){case"compositionend":return U(t);case"keypress":return 32!==t.which?null:(Or=!0,Tr);case"textInput":return e=t.data,e===Tr&&Or?null:e;default:return null}}function H(e,t){if(Nr)return"compositionend"===e||!kr&&F(e,t)?(e=A(),br._root=null,br._startText=null,br._fallbackText=null,Nr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sr?null:t.data;default:return null}}function V(e){if(e=Ja(e)){Ir&&"function"===typeof Ir.restoreControlledState||a("194");var t=Xa(e.stateNode);Ir.restoreControlledState(e.stateNode,e.type,t)}}function q(e){Ar?Mr?Mr.push(e):Mr=[e]:Ar=e}function G(){return null!==Ar||null!==Mr}function $(){if(Ar){var e=Ar,t=Mr;if(Mr=Ar=null,V(e),t)for(e=0;e<t.length;e++)V(t[e])}}function Y(e,t){return e(t)}function K(e,t,n){return e(t,n)}function Q(){}function X(e,t){if(Dr)return e(t);Dr=!0;try{return Y(e,t)}finally{Dr=!1,G()&&(Q(),$())}}function J(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Lr[e.type]:"textarea"===t}function Z(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ee(e,t){return!(!za.canUseDOM||t&&!("addEventListener"in document))&&(e="on"+e,t=e in document,t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t="function"===typeof t[e]),t)}function te(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ne(e){var t=te(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){a=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(e){a=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ae(e){e._valueTracker||(e._valueTracker=ne(e))}function re(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=te(e)?e.checked?"true":"false":e.value),(e=a)!==n&&(t.setValue(e),!0)}function oe(e){return null===e||"undefined"===typeof e?null:(e=Xr&&e[Xr]||e["@@iterator"],"function"===typeof e?e:null)}function ie(e){var t=e.type;if("function"===typeof t)return t.displayName||t.name;if("string"===typeof t)return t;switch(t){case Yr:return"AsyncMode";case $r:return"Context.Consumer";case Hr:return"ReactFragment";case Wr:return"ReactPortal";case qr:return"Profiler("+e.pendingProps.id+")";case Gr:return"Context.Provider";case Vr:return"StrictMode";case Qr:return"Timeout"}if("object"===typeof t&&null!==t)switch(t.$$typeof){case Kr:return e=t.render.displayName||t.render.name||"",""!==e?"ForwardRef("+e+")":"ForwardRef"}return null}function le(e){var t="";do{e:switch(e.tag){case 0:case 1:case 2:case 5:var n=e._debugOwner,a=e._debugSource,r=ie(e),o=null;n&&(o=ie(n)),n=a,r="\n in "+(r||"Unknown")+(n?" (at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+")":o?" (created by "+o+")":"");break e;default:r=""}t+=r,e=e.return}while(e);return t}function se(e){return!!Zr.call(to,e)||!Zr.call(eo,e)&&(Jr.test(e)?to[e]=!0:(eo[e]=!0,!1))}function ue(e,t,n,a){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!a&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}function ce(e,t,n,a){if(null===t||"undefined"===typeof t||ue(e,t,n,a))return!0;if(a)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function fe(e,t,n,a,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t}function pe(e){return e[1].toUpperCase()}function de(e,t,n,a){var r=no.hasOwnProperty(t)?no[t]:null;(null!==r?0===r.type:!a&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(ce(t,n,r,a)&&(n=null),a||null===r?se(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,a=r.attributeNamespace,null===n?e.removeAttribute(t):(r=r.type,n=3===r||4===r&&!0===n?"":""+n,a?e.setAttributeNS(a,t,n):e.setAttribute(t,n))))}function me(e,t){var n=t.checked;return Da({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function he(e,t){var n=null==t.defaultValue?"":t.defaultValue,a=null!=t.checked?t.checked:t.defaultChecked;n=we(null!=t.value?t.value:n),e._wrapperState={initialChecked:a,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ge(e,t){null!=(t=t.checked)&&de(e,"checked",t,!1)}function be(e,t){ge(e,t);var n=we(t.value);null!=n&&("number"===t.type?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n)),t.hasOwnProperty("value")?ye(e,t.type,n):t.hasOwnProperty("defaultValue")&&ye(e,t.type,we(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ve(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){t=""+e._wrapperState.initialValue;var a=e.value;n||t===a||(e.value=t),e.defaultValue=t}n=e.name,""!==n&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==n&&(e.name=n)}function ye(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function we(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function _e(e,t,n){return e=z.getPooled(ro.change,e,t,n),e.type="change",q(n),O(e),e}function Ee(e){b(e,!1)}function ke(e){if(re(w(e)))return e}function Ce(e,t){if("change"===e)return t}function xe(){oo&&(oo.detachEvent("onpropertychange",Se),io=oo=null)}function Se(e){"value"===e.propertyName&&ke(io)&&(e=_e(io,e,Z(e)),X(Ee,e))}function Te(e,t,n){"focus"===e?(xe(),oo=t,io=n,oo.attachEvent("onpropertychange",Se)):"blur"===e&&xe()}function Pe(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return ke(io)}function Oe(e,t){if("click"===e)return ke(t)}function Ne(e,t){if("input"===e||"change"===e)return ke(t)}function Re(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=co[e])&&!!t[e]}function Ie(){return Re}function je(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!==(2&t.effectTag))return 1;for(;t.return;)if(t=t.return,0!==(2&t.effectTag))return 1}return 3===t.tag?2:3}function Ae(e){2!==je(e)&&a("188")}function Me(e){var t=e.alternate;if(!t)return t=je(e),3===t&&a("188"),1===t?null:e;for(var n=e,r=t;;){var o=n.return,i=o?o.alternate:null;if(!o||!i)break;if(o.child===i.child){for(var l=o.child;l;){if(l===n)return Ae(o),e;if(l===r)return Ae(o),t;l=l.sibling}a("188")}if(n.return!==r.return)n=o,r=i;else{l=!1;for(var s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}l||a("189")}}n.alternate!==r&&a("190")}return 3!==n.tag&&a("188"),n.stateNode.current===n?e:t}function ze(e){if(!(e=Me(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function De(e){if(!(e=Me(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child&&4!==t.tag)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Le(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Be(e,t){var n=e[0];e=e[1];var a="on"+(e[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:a,captured:a+"Capture"},dependencies:[n],isInteractive:t},To[e]=t,Po[n]=t}function Fe(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(t),t=y(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],v(e.topLevelType,t,e.nativeEvent,Z(e.nativeEvent))}function Ue(e){Io=!!e}function We(e,t){if(!t)return null;var n=(No(e)?Ve:qe).bind(null,e);t.addEventListener(e,n,!1)}function He(e,t){if(!t)return null;var n=(No(e)?Ve:qe).bind(null,e);t.addEventListener(e,n,!0)}function Ve(e,t){K(qe,e,t)}function qe(e,t){if(Io){var n=Z(t);if(n=y(n),null===n||"number"!==typeof n.tag||2===je(n)||(n=null),Ro.length){var a=Ro.pop();a.topLevelType=e,a.nativeEvent=t,a.targetInst=n,e=a}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{X(Fe,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Ro.length&&Ro.push(e)}}}function Ge(e){return Object.prototype.hasOwnProperty.call(e,zo)||(e[zo]=Mo++,Ao[e[zo]]={}),Ao[e[zo]]}function $e(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ye(e,t){var n=$e(e);e=0;for(var a;n;){if(3===n.nodeType){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$e(n)}}function Ke(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Qe(e,t){if(Wo||null==Bo||Bo!==Ba())return null;var n=Bo;return"selectionStart"in n&&Ke(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,Uo&&Fa(Uo,n)?null:(Uo=n,e=z.getPooled(Lo.select,Fo,e,t),e.type="select",e.target=Bo,O(e),e)}function Xe(e){var t="";return Ma.Children.forEach(e,function(e){null==e||"string"!==typeof e&&"number"!==typeof e||(t+=e)}),t}function Je(e,t){return e=Da({children:void 0},t),(t=Xe(t.children))&&(e.children=t),e}function Ze(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+n,t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(a&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function et(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}}function tt(e,t){return null!=t.dangerouslySetInnerHTML&&a("91"),Da({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function nt(e,t){var n=t.value;null==n&&(n=t.defaultValue,t=t.children,null!=t&&(null!=n&&a("92"),Array.isArray(t)&&(1>=t.length||a("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function at(e,t){var n=t.value;null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function rt(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function ot(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function it(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ot(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function lt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function st(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var a=0===n.indexOf("--"),r=n,o=t[n];r=null==o||"boolean"===typeof o||""===o?"":a||"number"!==typeof o||0===o||hi.hasOwnProperty(r)&&hi[r]?(""+o).trim():o+"px","float"===n&&(n="cssFloat"),a?e.setProperty(n,r):e[n]=r}}function ut(e,t,n){t&&(bi[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&a("137",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&a("60"),"object"===typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||a("61")),null!=t.style&&"object"!==typeof t.style&&a("62",n()))}function ct(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ft(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=Ge(e);t=Ka[t];for(var a=0;a<t.length;a++){var r=t[a];if(!n.hasOwnProperty(r)||!n[r]){switch(r){case"scroll":He("scroll",e);break;case"focus":case"blur":He("focus",e),He("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":ee(r,!0)&&He(r,e);break;case"invalid":case"submit":case"reset":break;default:-1===hr.indexOf(r)&&We(r,e)}n[r]=!0}}}function pt(e,t,n,a){return n=9===n.nodeType?n:n.ownerDocument,a===pi.html&&(a=ot(e)),a===pi.html?"script"===e?(e=n.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):e="string"===typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(a,e),e}function dt(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function mt(e,t,n,a){var r=ct(t,n);switch(t){case"iframe":case"object":We("load",e);var o=n;break;case"video":case"audio":for(o=0;o<hr.length;o++)We(hr[o],e);o=n;break;case"source":We("error",e),o=n;break;case"img":case"image":case"link":We("error",e),We("load",e),o=n;break;case"form":We("reset",e),We("submit",e),o=n;break;case"details":We("toggle",e),o=n;break;case"input":he(e,n),o=me(e,n),We("invalid",e),ft(a,"onChange");break;case"option":o=Je(e,n);break;case"select":et(e,n),o=Da({},n,{value:void 0}),We("invalid",e),ft(a,"onChange");break;case"textarea":nt(e,n),o=tt(e,n),We("invalid",e),ft(a,"onChange");break;default:o=n}ut(t,o,vi);var i,l=o;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?st(e,s,vi):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&mi(e,s):"children"===i?"string"===typeof s?("textarea"!==t||""!==s)&<(e,s):"number"===typeof s&<(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(Ya.hasOwnProperty(i)?null!=s&&ft(a,i):null!=s&&de(e,i,s,r))}switch(t){case"input":ae(e),ve(e,n,!1);break;case"textarea":ae(e),rt(e,n);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,t=n.value,null!=t?Ze(e,!!n.multiple,t,!1):null!=n.defaultValue&&Ze(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=La)}}function ht(e,t,n,a,r){var o=null;switch(t){case"input":n=me(e,n),a=me(e,a),o=[];break;case"option":n=Je(e,n),a=Je(e,a),o=[];break;case"select":n=Da({},n,{value:void 0}),a=Da({},a,{value:void 0}),o=[];break;case"textarea":n=tt(e,n),a=tt(e,a),o=[];break;default:"function"!==typeof n.onClick&&"function"===typeof a.onClick&&(e.onclick=La)}ut(t,a,vi),t=e=void 0;var i=null;for(e in n)if(!a.hasOwnProperty(e)&&n.hasOwnProperty(e)&&null!=n[e])if("style"===e){var l=n[e];for(t in l)l.hasOwnProperty(t)&&(i||(i={}),i[t]="")}else"dangerouslySetInnerHTML"!==e&&"children"!==e&&"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&"autoFocus"!==e&&(Ya.hasOwnProperty(e)?o||(o=[]):(o=o||[]).push(e,null));for(e in a){var s=a[e];if(l=null!=n?n[e]:void 0,a.hasOwnProperty(e)&&s!==l&&(null!=s||null!=l))if("style"===e)if(l){for(t in l)!l.hasOwnProperty(t)||s&&s.hasOwnProperty(t)||(i||(i={}),i[t]="");for(t in s)s.hasOwnProperty(t)&&l[t]!==s[t]&&(i||(i={}),i[t]=s[t])}else i||(o||(o=[]),o.push(e,i)),i=s;else"dangerouslySetInnerHTML"===e?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(o=o||[]).push(e,""+s)):"children"===e?l===s||"string"!==typeof s&&"number"!==typeof s||(o=o||[]).push(e,""+s):"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&(Ya.hasOwnProperty(e)?(null!=s&&ft(r,e),o||l===s||(o=[])):(o=o||[]).push(e,s))}return i&&(o=o||[]).push("style",i),o}function gt(e,t,n,a,r){"input"===n&&"radio"===r.type&&null!=r.name&&ge(e,r),ct(n,a),a=ct(n,r);for(var o=0;o<t.length;o+=2){var i=t[o],l=t[o+1];"style"===i?st(e,l,vi):"dangerouslySetInnerHTML"===i?mi(e,l):"children"===i?lt(e,l):de(e,i,l,a)}switch(n){case"input":be(e,r);break;case"textarea":at(e,r);break;case"select":e._wrapperState.initialValue=void 0,t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!r.multiple,n=r.value,null!=n?Ze(e,!!r.multiple,n,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ze(e,!!r.multiple,r.defaultValue,!0):Ze(e,!!r.multiple,r.multiple?[]:"",!1))}}function bt(e,t,n,a,r){switch(t){case"iframe":case"object":We("load",e);break;case"video":case"audio":for(a=0;a<hr.length;a++)We(hr[a],e);break;case"source":We("error",e);break;case"img":case"image":case"link":We("error",e),We("load",e);break;case"form":We("reset",e),We("submit",e);break;case"details":We("toggle",e);break;case"input":he(e,n),We("invalid",e),ft(r,"onChange");break;case"select":et(e,n),We("invalid",e),ft(r,"onChange");break;case"textarea":nt(e,n),We("invalid",e),ft(r,"onChange")}ut(t,n,vi),a=null;for(var o in n)if(n.hasOwnProperty(o)){var i=n[o];"children"===o?"string"===typeof i?e.textContent!==i&&(a=["children",i]):"number"===typeof i&&e.textContent!==""+i&&(a=["children",""+i]):Ya.hasOwnProperty(o)&&null!=i&&ft(r,o)}switch(t){case"input":ae(e),ve(e,n,!0);break;case"textarea":ae(e),rt(e,n);break;case"select":case"option":break;default:"function"===typeof n.onClick&&(e.onclick=La)}return a}function vt(e,t){return e.nodeValue!==t}function yt(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function wt(e,t){return"textarea"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"===typeof t.dangerouslySetInnerHTML.__html}function _t(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function Et(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function kt(e){return{current:e}}function Ct(e){0>Si||(e.current=xi[Si],xi[Si]=null,Si--)}function xt(e,t){Si++,xi[Si]=e.current,e.current=t}function St(e){return Pt(e)?Oi:Ti.current}function Tt(e,t){var n=e.type.contextTypes;if(!n)return Wa;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=t[r];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pt(e){return 2===e.tag&&null!=e.type.childContextTypes}function Ot(e){Pt(e)&&(Ct(Pi,e),Ct(Ti,e))}function Nt(e){Ct(Pi,e),Ct(Ti,e)}function Rt(e,t,n){Ti.current!==Wa&&a("168"),xt(Ti,t,e),xt(Pi,n,e)}function It(e,t){var n=e.stateNode,r=e.type.childContextTypes;if("function"!==typeof n.getChildContext)return t;n=n.getChildContext();for(var o in n)o in r||a("108",ie(e)||"Unknown",o);return Da({},t,n)}function jt(e){if(!Pt(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Wa,Oi=Ti.current,xt(Ti,t,e),xt(Pi,Pi.current,e),!0}function At(e,t){var n=e.stateNode;if(n||a("169"),t){var r=It(e,Oi);n.__reactInternalMemoizedMergedChildContext=r,Ct(Pi,e),Ct(Ti,e),xt(Ti,r,e)}else Ct(Pi,e);xt(Pi,t,e)}function Mt(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function zt(e,t,n){var a=e.alternate;return null===a?(a=new Mt(e.tag,t,e.key,e.mode),a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.effectTag=0,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null),a.expirationTime=n,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a}function Dt(e,t,n){var r=e.type,o=e.key;if(e=e.props,"function"===typeof r)var i=r.prototype&&r.prototype.isReactComponent?2:0;else if("string"===typeof r)i=5;else switch(r){case Hr:return Lt(e.children,t,n,o);case Yr:i=11,t|=3;break;case Vr:i=11,t|=2;break;case qr:return r=new Mt(15,e,o,4|t),r.type=qr,r.expirationTime=n,r;case Qr:i=16,t|=2;break;default:e:{switch("object"===typeof r&&null!==r?r.$$typeof:null){case Gr:i=13;break e;case $r:i=12;break e;case Kr:i=14;break e;default:a("130",null==r?r:typeof r,"")}i=void 0}}return t=new Mt(i,e,o,t),t.type=r,t.expirationTime=n,t}function Lt(e,t,n,a){return e=new Mt(10,e,a,t),e.expirationTime=n,e}function Bt(e,t,n){return e=new Mt(6,e,null,t),e.expirationTime=n,e}function Ft(e,t,n){return t=new Mt(4,null!==e.children?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ut(e,t,n){return t=new Mt(3,null,null,t?3:0),e={current:t,containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:n,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null},t.stateNode=e}function Wt(e){return function(t){try{return e(t)}catch(e){}}}function Ht(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ni=Wt(function(e){return t.onCommitFiberRoot(n,e)}),Ri=Wt(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function Vt(e){"function"===typeof Ni&&Ni(e)}function qt(e){"function"===typeof Ri&&Ri(e)}function Gt(e){return{expirationTime:0,baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function $t(e){return{expirationTime:e.expirationTime,baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Yt(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Kt(e,t,n){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t),(0===e.expirationTime||e.expirationTime>n)&&(e.expirationTime=n)}function Qt(e,t,n){var a=e.alternate;if(null===a){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=Gt(e.memoizedState))}else r=e.updateQueue,o=a.updateQueue,null===r?null===o?(r=e.updateQueue=Gt(e.memoizedState),o=a.updateQueue=Gt(a.memoizedState)):r=e.updateQueue=$t(o):null===o&&(o=a.updateQueue=$t(r));null===o||r===o?Kt(r,t,n):null===r.lastUpdate||null===o.lastUpdate?(Kt(r,t,n),Kt(o,t,n)):(Kt(r,t,n),o.lastUpdate=t)}function Xt(e,t,n){var a=e.updateQueue;a=null===a?e.updateQueue=Gt(e.memoizedState):Jt(e,a),null===a.lastCapturedUpdate?a.firstCapturedUpdate=a.lastCapturedUpdate=t:(a.lastCapturedUpdate.next=t,a.lastCapturedUpdate=t),(0===a.expirationTime||a.expirationTime>n)&&(a.expirationTime=n)}function Jt(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=$t(t)),t}function Zt(e,t,n,a,r,o){switch(n.tag){case 1:return e=n.payload,"function"===typeof e?e.call(o,a,r):e;case 3:e.effectTag=-1025&e.effectTag|64;case 0:if(e=n.payload,null===(r="function"===typeof e?e.call(o,a,r):e)||void 0===r)break;return Da({},a,r);case 2:Ii=!0}return a}function en(e,t,n,a,r){if(Ii=!1,!(0===t.expirationTime||t.expirationTime>r)){t=Jt(e,t);for(var o=t.baseState,i=null,l=0,s=t.firstUpdate,u=o;null!==s;){var c=s.expirationTime;c>r?(null===i&&(i=s,o=u),(0===l||l>c)&&(l=c)):(u=Zt(e,t,s,u,n,a),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))),s=s.next}for(c=null,s=t.firstCapturedUpdate;null!==s;){var f=s.expirationTime;f>r?(null===c&&(c=s,null===i&&(o=u)),(0===l||l>f)&&(l=f)):(u=Zt(e,t,s,u,n,a),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))),s=s.next}null===i&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===i&&null===c&&(o=u),t.baseState=o,t.firstUpdate=i,t.firstCapturedUpdate=c,t.expirationTime=l,e.memoizedState=u}}function tn(e,t){"function"!==typeof e&&a("191",e),e.call(t)}function nn(e,t,n){for(null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),e=t.firstEffect,t.firstEffect=t.lastEffect=null;null!==e;){var a=e.callback;null!==a&&(e.callback=null,tn(a,n)),e=e.nextEffect}for(e=t.firstCapturedEffect,t.firstCapturedEffect=t.lastCapturedEffect=null;null!==e;)t=e.callback,null!==t&&(e.callback=null,tn(t,n)),e=e.nextEffect}function an(e,t){return{value:e,source:t,stack:le(t)}}function rn(e){var t=e.type._context;xt(Mi,t._changedBits,e),xt(Ai,t._currentValue,e),xt(ji,e,e),t._currentValue=e.pendingProps.value,t._changedBits=e.stateNode}function on(e){var t=Mi.current,n=Ai.current;Ct(ji,e),Ct(Ai,e),Ct(Mi,e),e=e.type._context,e._currentValue=n,e._changedBits=t}function ln(e){return e===zi&&a("174"),e}function sn(e,t){xt(Bi,t,e),xt(Li,e,e),xt(Di,zi,e);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:it(null,"");break;default:n=8===n?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=it(t,n)}Ct(Di,e),xt(Di,t,e)}function un(e){Ct(Di,e),Ct(Li,e),Ct(Bi,e)}function cn(e){Li.current===e&&(Ct(Di,e),Ct(Li,e))}function fn(e,t,n){var a=e.memoizedState;t=t(n,a),a=null===t||void 0===t?a:Da({},a,t),e.memoizedState=a,null!==(e=e.updateQueue)&&0===e.expirationTime&&(e.baseState=a)}function pn(e,t,n,a,r,o){var i=e.stateNode;return e=e.type,"function"===typeof i.shouldComponentUpdate?i.shouldComponentUpdate(n,r,o):!e.prototype||!e.prototype.isPureReactComponent||(!Fa(t,n)||!Fa(a,r))}function dn(e,t,n,a){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,a),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Fi.enqueueReplaceState(t,t.state,null)}function mn(e,t){var n=e.type,a=e.stateNode,r=e.pendingProps,o=St(e);a.props=r,a.state=e.memoizedState,a.refs=Wa,a.context=Tt(e,o),o=e.updateQueue,null!==o&&(en(e,o,r,a,t),a.state=e.memoizedState),o=e.type.getDerivedStateFromProps,"function"===typeof o&&(fn(e,o,r),a.state=e.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(n=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),n!==a.state&&Fi.enqueueReplaceState(a,a.state,null),null!==(o=e.updateQueue)&&(en(e,o,r,a,t),a.state=e.memoizedState)),"function"===typeof a.componentDidMount&&(e.effectTag|=4)}function hn(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(2!==n.tag&&a("110"),r=n.stateNode),r||a("147",e);var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs===Wa?r.refs={}:r.refs;null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}"string"!==typeof e&&a("148"),n._owner||a("254",e)}return e}function gn(e,t){"textarea"!==e.type&&a("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function bn(e){function t(t,n){if(e){var a=t.lastEffect;null!==a?(a.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,a){if(!e)return null;for(;null!==a;)t(n,a),a=a.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t,n){return e=zt(e,t,n),e.index=0,e.sibling=null,e}function i(t,n,a){return t.index=a,e?null!==(a=t.alternate)?(a=a.index,a<n?(t.effectTag=2,n):a):(t.effectTag=2,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,a){return null===t||6!==t.tag?(t=Bt(n,e.mode,a),t.return=e,t):(t=o(t,n,a),t.return=e,t)}function u(e,t,n,a){return null!==t&&t.type===n.type?(a=o(t,n.props,a),a.ref=hn(e,t,n),a.return=e,a):(a=Dt(n,e.mode,a),a.ref=hn(e,t,n),a.return=e,a)}function c(e,t,n,a){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ft(n,e.mode,a),t.return=e,t):(t=o(t,n.children||[],a),t.return=e,t)}function f(e,t,n,a,r){return null===t||10!==t.tag?(t=Lt(n,e.mode,a,r),t.return=e,t):(t=o(t,n,a),t.return=e,t)}function p(e,t,n){if("string"===typeof t||"number"===typeof t)return t=Bt(""+t,e.mode,n),t.return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case Ur:return n=Dt(t,e.mode,n),n.ref=hn(e,null,t),n.return=e,n;case Wr:return t=Ft(t,e.mode,n),t.return=e,t}if(Ui(t)||oe(t))return t=Lt(t,e.mode,n,null),t.return=e,t;gn(e,t)}return null}function d(e,t,n,a){var r=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==r?null:s(e,t,""+n,a);if("object"===typeof n&&null!==n){switch(n.$$typeof){case Ur:return n.key===r?n.type===Hr?f(e,t,n.props.children,a,r):u(e,t,n,a):null;case Wr:return n.key===r?c(e,t,n,a):null}if(Ui(n)||oe(n))return null!==r?null:f(e,t,n,a,null);gn(e,n)}return null}function m(e,t,n,a,r){if("string"===typeof a||"number"===typeof a)return e=e.get(n)||null,s(t,e,""+a,r);if("object"===typeof a&&null!==a){switch(a.$$typeof){case Ur:return e=e.get(null===a.key?n:a.key)||null,a.type===Hr?f(t,e,a.props.children,r,a.key):u(t,e,a,r);case Wr:return e=e.get(null===a.key?n:a.key)||null,c(t,e,a,r)}if(Ui(a)||oe(a))return e=e.get(n)||null,f(t,e,a,r,null);gn(t,a)}return null}function h(a,o,l,s){for(var u=null,c=null,f=o,h=o=0,g=null;null!==f&&h<l.length;h++){f.index>h?(g=f,f=null):g=f.sibling;var b=d(a,f,l[h],s);if(null===b){null===f&&(f=g);break}e&&f&&null===b.alternate&&t(a,f),o=i(b,o,h),null===c?u=b:c.sibling=b,c=b,f=g}if(h===l.length)return n(a,f),u;if(null===f){for(;h<l.length;h++)(f=p(a,l[h],s))&&(o=i(f,o,h),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(a,f);h<l.length;h++)(g=m(f,a,h,l[h],s))&&(e&&null!==g.alternate&&f.delete(null===g.key?h:g.key),o=i(g,o,h),null===c?u=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return t(a,e)}),u}function g(o,l,s,u){var c=oe(s);"function"!==typeof c&&a("150"),null==(s=c.call(s))&&a("151");for(var f=c=null,h=l,g=l=0,b=null,v=s.next();null!==h&&!v.done;g++,v=s.next()){h.index>g?(b=h,h=null):b=h.sibling;var y=d(o,h,v.value,u);if(null===y){h||(h=b);break}e&&h&&null===y.alternate&&t(o,h),l=i(y,l,g),null===f?c=y:f.sibling=y,f=y,h=b}if(v.done)return n(o,h),c;if(null===h){for(;!v.done;g++,v=s.next())null!==(v=p(o,v.value,u))&&(l=i(v,l,g),null===f?c=v:f.sibling=v,f=v);return c}for(h=r(o,h);!v.done;g++,v=s.next())null!==(v=m(h,o,g,v.value,u))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),l=i(v,l,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return t(o,e)}),c}return function(e,r,i,s){var u="object"===typeof i&&null!==i&&i.type===Hr&&null===i.key;u&&(i=i.props.children);var c="object"===typeof i&&null!==i;if(c)switch(i.$$typeof){case Ur:e:{for(c=i.key,u=r;null!==u;){if(u.key===c){if(10===u.tag?i.type===Hr:u.type===i.type){n(e,u.sibling),r=o(u,i.type===Hr?i.props.children:i.props,s),r.ref=hn(e,u,i),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===Hr?(r=Lt(i.props.children,e.mode,s,i.key),r.return=e,e=r):(s=Dt(i,e.mode,s),s.ref=hn(e,r,i),s.return=e,e=s)}return l(e);case Wr:e:{for(u=i.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=o(r,i.children||[],s),r.return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}r=Ft(i,e.mode,s),r.return=e,e=r}return l(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),r=o(r,i,s),r.return=e,e=r):(n(e,r),r=Bt(i,e.mode,s),r.return=e,e=r),l(e);if(Ui(i))return h(e,r,i,s);if(oe(i))return g(e,r,i,s);if(c&&gn(e,i),"undefined"===typeof i&&!u)switch(e.tag){case 2:case 1:s=e.type,a("152",s.displayName||s.name||"Component")}return n(e,r)}}function vn(e,t){var n=new Mt(5,null,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function yn(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function wn(e){if(Gi){var t=qi;if(t){var n=t;if(!yn(e,t)){if(!(t=_t(n))||!yn(e,t))return e.effectTag|=2,Gi=!1,void(Vi=e);vn(Vi,n)}Vi=e,qi=Et(t)}else e.effectTag|=2,Gi=!1,Vi=e}}function _n(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;Vi=e}function En(e){if(e!==Vi)return!1;if(!Gi)return _n(e),Gi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!wt(t,e.memoizedProps))for(t=qi;t;)vn(e,t),t=_t(t);return _n(e),qi=Vi?_t(e.stateNode):null,!0}function kn(){qi=Vi=null,Gi=!1}function Cn(e,t,n){xn(e,t,n,t.expirationTime)}function xn(e,t,n,a){t.child=null===e?Hi(t,null,n,a):Wi(t,e.child,n,a)}function Sn(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Tn(e,t,n,a,r){Sn(e,t);var o=0!==(64&t.effectTag);if(!n&&!o)return a&&At(t,!1),Rn(e,t);n=t.stateNode,Br.current=t;var i=o?null:n.render();return t.effectTag|=1,o&&(xn(e,t,null,r),t.child=null),xn(e,t,i,r),t.memoizedState=n.state,t.memoizedProps=n.props,a&&At(t,!0),t.child}function Pn(e){var t=e.stateNode;t.pendingContext?Rt(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Rt(e,t.context,!1),sn(e,t.containerInfo)}function On(e,t,n,a){var r=e.child;for(null!==r&&(r.return=e);null!==r;){switch(r.tag){case 12:var o=0|r.stateNode;if(r.type===t&&0!==(o&n)){for(o=r;null!==o;){var i=o.alternate;if(0===o.expirationTime||o.expirationTime>a)o.expirationTime=a,null!==i&&(0===i.expirationTime||i.expirationTime>a)&&(i.expirationTime=a);else{if(null===i||!(0===i.expirationTime||i.expirationTime>a))break;i.expirationTime=a}o=o.return}o=null}else o=r.child;break;case 13:o=r.type===e.type?null:r.child;break;default:o=r.child}if(null!==o)o.return=r;else for(o=r;null!==o;){if(o===e){o=null;break}if(null!==(r=o.sibling)){r.return=o.return,o=r;break}o=o.return}r=o}}function Nn(e,t,n){var a=t.type._context,r=t.pendingProps,o=t.memoizedProps,i=!0;if(Pi.current)i=!1;else if(o===r)return t.stateNode=0,rn(t),Rn(e,t);var l=r.value;if(t.memoizedProps=r,null===o)l=1073741823;else if(o.value===r.value){if(o.children===r.children&&i)return t.stateNode=0,rn(t),Rn(e,t);l=0}else{var s=o.value;if(s===l&&(0!==s||1/s===1/l)||s!==s&&l!==l){if(o.children===r.children&&i)return t.stateNode=0,rn(t),Rn(e,t);l=0}else if(l="function"===typeof a._calculateChangedBits?a._calculateChangedBits(s,l):1073741823,0===(l|=0)){if(o.children===r.children&&i)return t.stateNode=0,rn(t),Rn(e,t)}else On(t,a,l,n)}return t.stateNode=l,rn(t),Cn(e,t,r.children),t.child}function Rn(e,t){if(null!==e&&t.child!==e.child&&a("153"),null!==t.child){e=t.child;var n=zt(e,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=zt(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function In(e,t,n){if(0===t.expirationTime||t.expirationTime>n){switch(t.tag){case 3:Pn(t);break;case 2:jt(t);break;case 4:sn(t,t.stateNode.containerInfo);break;case 13:rn(t)}return null}switch(t.tag){case 0:null!==e&&a("155");var r=t.type,o=t.pendingProps,i=St(t);return i=Tt(t,i),r=r(o,i),t.effectTag|=1,"object"===typeof r&&null!==r&&"function"===typeof r.render&&void 0===r.$$typeof?(i=t.type,t.tag=2,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,i=i.getDerivedStateFromProps,"function"===typeof i&&fn(t,i,o),o=jt(t),r.updater=Fi,t.stateNode=r,r._reactInternalFiber=t,mn(t,n),e=Tn(e,t,!0,o,n)):(t.tag=1,Cn(e,t,r),t.memoizedProps=o,e=t.child),e;case 1:return o=t.type,n=t.pendingProps,Pi.current||t.memoizedProps!==n?(r=St(t),r=Tt(t,r),o=o(n,r),t.effectTag|=1,Cn(e,t,o),t.memoizedProps=n,e=t.child):e=Rn(e,t),e;case 2:if(o=jt(t),null===e)if(null===t.stateNode){var l=t.pendingProps,s=t.type;r=St(t);var u=2===t.tag&&null!=t.type.contextTypes;i=u?Tt(t,r):Wa,l=new s(l,i),t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,l.updater=Fi,t.stateNode=l,l._reactInternalFiber=t,u&&(u=t.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=r,u.__reactInternalMemoizedMaskedChildContext=i),mn(t,n),r=!0}else{s=t.type,r=t.stateNode,u=t.memoizedProps,i=t.pendingProps,r.props=u;var c=r.context;l=St(t),l=Tt(t,l);var f=s.getDerivedStateFromProps;(s="function"===typeof f||"function"===typeof r.getSnapshotBeforeUpdate)||"function"!==typeof r.UNSAFE_componentWillReceiveProps&&"function"!==typeof r.componentWillReceiveProps||(u!==i||c!==l)&&dn(t,r,i,l),Ii=!1;var p=t.memoizedState;c=r.state=p;var d=t.updateQueue;null!==d&&(en(t,d,i,r,n),c=t.memoizedState),u!==i||p!==c||Pi.current||Ii?("function"===typeof f&&(fn(t,f,i),c=t.memoizedState),(u=Ii||pn(t,u,i,p,c,l))?(s||"function"!==typeof r.UNSAFE_componentWillMount&&"function"!==typeof r.componentWillMount||("function"===typeof r.componentWillMount&&r.componentWillMount(),"function"===typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"===typeof r.componentDidMount&&(t.effectTag|=4)):("function"===typeof r.componentDidMount&&(t.effectTag|=4),t.memoizedProps=i,t.memoizedState=c),r.props=i,r.state=c,r.context=l,r=u):("function"===typeof r.componentDidMount&&(t.effectTag|=4),r=!1)}else s=t.type,r=t.stateNode,i=t.memoizedProps,u=t.pendingProps,r.props=i,c=r.context,l=St(t),l=Tt(t,l),f=s.getDerivedStateFromProps,(s="function"===typeof f||"function"===typeof r.getSnapshotBeforeUpdate)||"function"!==typeof r.UNSAFE_componentWillReceiveProps&&"function"!==typeof r.componentWillReceiveProps||(i!==u||c!==l)&&dn(t,r,u,l),Ii=!1,c=t.memoizedState,p=r.state=c,d=t.updateQueue,null!==d&&(en(t,d,u,r,n),p=t.memoizedState),i!==u||c!==p||Pi.current||Ii?("function"===typeof f&&(fn(t,f,u),p=t.memoizedState),(f=Ii||pn(t,i,u,c,p,l))?(s||"function"!==typeof r.UNSAFE_componentWillUpdate&&"function"!==typeof r.componentWillUpdate||("function"===typeof r.componentWillUpdate&&r.componentWillUpdate(u,p,l),"function"===typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(u,p,l)),"function"===typeof r.componentDidUpdate&&(t.effectTag|=4),"function"===typeof r.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof r.componentDidUpdate||i===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!==typeof r.getSnapshotBeforeUpdate||i===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=u,t.memoizedState=p),r.props=u,r.state=p,r.context=l,r=f):("function"!==typeof r.componentDidUpdate||i===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!==typeof r.getSnapshotBeforeUpdate||i===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return Tn(e,t,r,o,n);case 3:return Pn(t),o=t.updateQueue,null!==o?(r=t.memoizedState,r=null!==r?r.element:null,en(t,o,t.pendingProps,null,n),(o=t.memoizedState.element)===r?(kn(),e=Rn(e,t)):(r=t.stateNode,(r=(null===e||null===e.child)&&r.hydrate)&&(qi=Et(t.stateNode.containerInfo),Vi=t,r=Gi=!0),r?(t.effectTag|=2,t.child=Hi(t,null,o,n)):(kn(),Cn(e,t,o)),e=t.child)):(kn(),e=Rn(e,t)),e;case 5:return ln(Bi.current),o=ln(Di.current),r=it(o,t.type),o!==r&&(xt(Li,t,t),xt(Di,r,t)),null===e&&wn(t),o=t.type,u=t.memoizedProps,r=t.pendingProps,i=null!==e?e.memoizedProps:null,Pi.current||u!==r||((u=1&t.mode&&!!r.hidden)&&(t.expirationTime=1073741823),u&&1073741823===n)?(u=r.children,wt(o,r)?u=null:i&&wt(o,i)&&(t.effectTag|=16),Sn(e,t),1073741823!==n&&1&t.mode&&r.hidden?(t.expirationTime=1073741823,t.memoizedProps=r,e=null):(Cn(e,t,u),t.memoizedProps=r,e=t.child)):e=Rn(e,t),e;case 6:return null===e&&wn(t),t.memoizedProps=t.pendingProps,null;case 16:return null;case 4:return sn(t,t.stateNode.containerInfo),o=t.pendingProps,Pi.current||t.memoizedProps!==o?(null===e?t.child=Wi(t,null,o,n):Cn(e,t,o),t.memoizedProps=o,e=t.child):e=Rn(e,t),e;case 14:return o=t.type.render,n=t.pendingProps,r=t.ref,Pi.current||t.memoizedProps!==n||r!==(null!==e?e.ref:null)?(o=o(n,r),Cn(e,t,o),t.memoizedProps=n,e=t.child):e=Rn(e,t),e;case 10:return n=t.pendingProps,Pi.current||t.memoizedProps!==n?(Cn(e,t,n),t.memoizedProps=n,e=t.child):e=Rn(e,t),e;case 11:return n=t.pendingProps.children,Pi.current||null!==n&&t.memoizedProps!==n?(Cn(e,t,n),t.memoizedProps=n,e=t.child):e=Rn(e,t),e;case 15:return n=t.pendingProps,t.memoizedProps===n?e=Rn(e,t):(Cn(e,t,n.children),t.memoizedProps=n,e=t.child),e;case 13:return Nn(e,t,n);case 12:e:if(r=t.type,i=t.pendingProps,u=t.memoizedProps,o=r._currentValue,l=r._changedBits,Pi.current||0!==l||u!==i){if(t.memoizedProps=i,s=i.unstable_observedBits,void 0!==s&&null!==s||(s=1073741823),t.stateNode=s,0!==(l&s))On(t,r,l,n);else if(u===i){e=Rn(e,t);break e}n=i.children,n=n(o),t.effectTag|=1,Cn(e,t,n),e=t.child}else e=Rn(e,t);return e;default:a("156")}}function jn(e){e.effectTag|=4}function An(e,t){var n=t.pendingProps;switch(t.tag){case 1:return null;case 2:return Ot(t),null;case 3:un(t),Nt(t);var r=t.stateNode;return r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(En(t),t.effectTag&=-3),$i(t),null;case 5:cn(t),r=ln(Bi.current);var o=t.type;if(null!==e&&null!=t.stateNode){var i=e.memoizedProps,l=t.stateNode,s=ln(Di.current);l=ht(l,o,i,n,r),Yi(e,t,l,o,i,n,r,s),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!n)return null===t.stateNode&&a("166"),null;if(e=ln(Di.current),En(t))n=t.stateNode,o=t.type,i=t.memoizedProps,n[rr]=t,n[or]=i,r=bt(n,o,i,e,r),t.updateQueue=r,null!==r&&jn(t);else{e=pt(o,n,r,e),e[rr]=t,e[or]=n;e:for(i=t.child;null!==i;){if(5===i.tag||6===i.tag)e.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}mt(e,o,n,r),yt(o,n)&&jn(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ki(e,t,e.memoizedProps,n);else{if("string"!==typeof n)return null===t.stateNode&&a("166"),null;r=ln(Bi.current),ln(Di.current),En(t)?(r=t.stateNode,n=t.memoizedProps,r[rr]=t,vt(r,n)&&jn(t)):(r=dt(n,r),r[rr]=t,t.stateNode=r)}return null;case 14:case 16:case 10:case 11:case 15:return null;case 4:return un(t),$i(t),null;case 13:return on(t),null;case 12:return null;case 0:a("167");default:a("156")}}function Mn(e,t){var n=t.source;null===t.stack&&null!==n&&le(n),null!==n&&ie(n),t=t.value,null!==e&&2===e.tag&&ie(e);try{t&&t.suppressReactErrorLogging||console.error(t)}catch(e){e&&e.suppressReactErrorLogging||console.error(e)}}function zn(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(t){Qn(e,t)}else t.current=null}function Dn(e){switch("function"===typeof qt&&qt(e),e.tag){case 2:zn(e);var t=e.stateNode;if("function"===typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Qn(e,t)}break;case 5:zn(e);break;case 4:Fn(e)}}function Ln(e){return 5===e.tag||3===e.tag||4===e.tag}function Bn(e){e:{for(var t=e.return;null!==t;){if(Ln(t)){var n=t;break e}t=t.return}a("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:a("161")}16&n.effectTag&&(lt(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Ln(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(5===o.tag||6===o.tag)if(n)if(r){var i=t,l=o.stateNode,s=n;8===i.nodeType?i.parentNode.insertBefore(l,s):i.insertBefore(l,s)}else t.insertBefore(o.stateNode,n);else r?(i=t,l=o.stateNode,8===i.nodeType?i.parentNode.insertBefore(l,i):i.appendChild(l)):t.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function Fn(e){for(var t=e,n=!1,r=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&a("160"),n.tag){case 5:r=n.stateNode,o=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var i=t,l=i;;)if(Dn(l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===i)break;for(;null===l.sibling;){if(null===l.return||l.return===i)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(i=r,l=t.stateNode,8===i.nodeType?i.parentNode.removeChild(l):i.removeChild(l)):r.removeChild(t.stateNode)}else if(4===t.tag?r=t.stateNode.containerInfo:Dn(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Un(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var o=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&(n[or]=r,gt(n,i,o,e,r))}break;case 6:null===t.stateNode&&a("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 15:case 16:break;default:a("163")}}function Wn(e,t,n){n=Yt(n),n.tag=3,n.payload={element:null};var a=t.value;return n.callback=function(){ma(a),Mn(e,t)},n}function Hn(e,t,n){n=Yt(n),n.tag=3;var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){null===cl?cl=new Set([this]):cl.add(this);var n=t.value,a=t.stack;Mn(e,t),this.componentDidCatch(n,{componentStack:null!==a?a:""})}),n}function Vn(e,t,n,a,r,o){n.effectTag|=512,n.firstEffect=n.lastEffect=null,a=an(a,n),e=t;do{switch(e.tag){case 3:return e.effectTag|=1024,a=Wn(e,a,o),void Xt(e,a,o);case 2:if(t=a,n=e.stateNode,0===(64&e.effectTag)&&null!==n&&"function"===typeof n.componentDidCatch&&(null===cl||!cl.has(n)))return e.effectTag|=1024,a=Hn(e,t,o),void Xt(e,a,o)}e=e.return}while(null!==e)}function qn(e){switch(e.tag){case 2:Ot(e);var t=e.effectTag;return 1024&t?(e.effectTag=-1025&t|64,e):null;case 3:return un(e),Nt(e),t=e.effectTag,1024&t?(e.effectTag=-1025&t|64,e):null;case 5:return cn(e),null;case 16:return t=e.effectTag,1024&t?(e.effectTag=-1025&t|64,e):null;case 4:return un(e),null;case 13:return on(e),null;default:return null}}function Gn(){if(null!==nl)for(var e=nl.return;null!==e;){var t=e;switch(t.tag){case 2:Ot(t);break;case 3:un(t),Nt(t);break;case 5:cn(t);break;case 4:un(t);break;case 13:on(t)}e=e.return}al=null,rl=0,ol=-1,il=!1,nl=null,ul=!1}function $n(e){for(;;){var t=e.alternate,n=e.return,a=e.sibling;if(0===(512&e.effectTag)){t=An(t,e,rl);var r=e;if(1073741823===rl||1073741823!==r.expirationTime){var o=0;switch(r.tag){case 3:case 2:var i=r.updateQueue;null!==i&&(o=i.expirationTime)}for(i=r.child;null!==i;)0!==i.expirationTime&&(0===o||o>i.expirationTime)&&(o=i.expirationTime),i=i.sibling;r.expirationTime=o}if(null!==t)return t;if(null!==n&&0===(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==a)return a;if(null===n){ul=!0;break}e=n}else{if(null!==(e=qn(e,il,rl)))return e.effectTag&=511,e;if(null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512),null!==a)return a;if(null===n)break;e=n}}return null}function Yn(e){var t=In(e.alternate,e,rl);return null===t&&(t=$n(e)),Br.current=null,t}function Kn(e,t,n){tl&&a("243"),tl=!0,t===rl&&e===al&&null!==nl||(Gn(),al=e,rl=t,ol=-1,nl=zt(al.current,null,rl),e.pendingCommitExpirationTime=0);var r=!1;for(il=!n||rl<=Xi;;){try{if(n)for(;null!==nl&&!da();)nl=Yn(nl);else for(;null!==nl;)nl=Yn(nl)}catch(t){if(null===nl)r=!0,ma(t);else{null===nl&&a("271"),n=nl;var o=n.return;if(null===o){r=!0,ma(t);break}Vn(e,o,n,t,il,rl,Ji),nl=$n(n)}}break}if(tl=!1,r)return null;if(null===nl){if(ul)return e.pendingCommitExpirationTime=t,e.current.alternate;il&&a("262"),0<=ol&&setTimeout(function(){var t=e.current.expirationTime;0!==t&&(0===e.remainingExpirationTime||e.remainingExpirationTime<t)&&ra(e,t)},ol),ha(e.current.expirationTime)}return null}function Qn(e,t){var n;e:{for(tl&&!sl&&a("263"),n=e.return;null!==n;){switch(n.tag){case 2:var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromCatch||"function"===typeof r.componentDidCatch&&(null===cl||!cl.has(r))){e=an(t,e),e=Hn(n,e,1),Qt(n,e,1),Zn(n,1),n=void 0;break e}break;case 3:e=an(t,e),e=Wn(n,e,1),Qt(n,e,1),Zn(n,1),n=void 0;break e}n=n.return}3===e.tag&&(n=an(t,e),n=Wn(e,n,1),Qt(e,n,1),Zn(e,1)),n=void 0}return n}function Xn(){var e=2+25*(1+((ea()-2+500)/25|0));return e<=Zi&&(e=Zi+1),Zi=e}function Jn(e,t){return e=0!==el?el:tl?sl?1:rl:1&t.mode?xl?2+10*(1+((e-2+15)/10|0)):2+25*(1+((e-2+500)/25|0)):1,xl&&(0===vl||e>vl)&&(vl=e),e}function Zn(e,t){for(;null!==e;){if((0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!tl&&0!==rl&&t<rl&&Gn();var r=n.current.expirationTime;tl&&!sl&&al===n||ra(n,r),Pl>Tl&&a("185")}e=e.return}}function ea(){return Ji=Ei()-Qi,Xi=2+(Ji/10|0)}function ta(e){var t=el;el=2+25*(1+((ea()-2+500)/25|0));try{return e()}finally{el=t}}function na(e,t,n,a,r){var o=el;el=1;try{return e(t,n,a,r)}finally{el=o}}function aa(e){if(0!==dl){if(e>dl)return;null!==ml&&Ci(ml)}var t=Ei()-Qi;dl=e,ml=ki(ia,{timeout:10*(e-2)-t})}function ra(e,t){if(null===e.nextScheduledRoot)e.remainingExpirationTime=t,null===pl?(fl=pl=e,e.nextScheduledRoot=e):(pl=pl.nextScheduledRoot=e,pl.nextScheduledRoot=fl);else{var n=e.remainingExpirationTime;(0===n||t<n)&&(e.remainingExpirationTime=t)}hl||(kl?Cl&&(gl=e,bl=1,fa(e,1,!1)):1===t?la():aa(t))}function oa(){var e=0,t=null;if(null!==pl)for(var n=pl,r=fl;null!==r;){var o=r.remainingExpirationTime;if(0===o){if((null===n||null===pl)&&a("244"),r===r.nextScheduledRoot){fl=pl=r.nextScheduledRoot=null;break}if(r===fl)fl=o=r.nextScheduledRoot,pl.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===pl){pl=n,pl.nextScheduledRoot=fl,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===e||o<e)&&(e=o,t=r),r===pl)break;n=r,r=r.nextScheduledRoot}}n=gl,null!==n&&n===t&&1===e?Pl++:Pl=0,gl=t,bl=e}function ia(e){sa(0,!0,e)}function la(){sa(1,!1,null)}function sa(e,t,n){if(El=n,oa(),t)for(;null!==gl&&0!==bl&&(0===e||e>=bl)&&(!yl||ea()>=bl);)ea(),fa(gl,bl,!yl),oa();else for(;null!==gl&&0!==bl&&(0===e||e>=bl);)fa(gl,bl,!1),oa();null!==El&&(dl=0,ml=null),0!==bl&&aa(bl),El=null,yl=!1,ca()}function ua(e,t){hl&&a("253"),gl=e,bl=t,fa(e,t,!1),la(),ca()}function ca(){if(Pl=0,null!==Sl){var e=Sl;Sl=null;for(var t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){wl||(wl=!0,_l=e)}}}if(wl)throw e=_l,_l=null,wl=!1,e}function fa(e,t,n){hl&&a("245"),hl=!0,n?(n=e.finishedWork,null!==n?pa(e,n,t):null!==(n=Kn(e,t,!0))&&(da()?e.finishedWork=n:pa(e,n,t))):(n=e.finishedWork,null!==n?pa(e,n,t):null!==(n=Kn(e,t,!1))&&pa(e,n,t)),hl=!1}function pa(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime<=n&&(null===Sl?Sl=[r]:Sl.push(r),r._defer))return e.finishedWork=t,void(e.remainingExpirationTime=0);if(e.finishedWork=null,sl=tl=!0,n=t.stateNode,n.current===t&&a("177"),r=n.pendingCommitExpirationTime,0===r&&a("261"),n.pendingCommitExpirationTime=0,ea(),Br.current=null,1<t.effectTag)if(null!==t.lastEffect){t.lastEffect.nextEffect=t;var o=t.firstEffect}else o=t;else o=t.firstEffect;wi=Io;var i=Ba();if(Ke(i)){if("selectionStart"in i)var l={start:i.selectionStart,end:i.selectionEnd};else e:{var s=window.getSelection&&window.getSelection();if(s&&0!==s.rangeCount){l=s.anchorNode;var u=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{l.nodeType,c.nodeType}catch(e){l=null;break e}var f=0,p=-1,d=-1,m=0,h=0,g=i,b=null;t:for(;;){for(var v;g!==l||0!==u&&3!==g.nodeType||(p=f+u),g!==c||0!==s&&3!==g.nodeType||(d=f+s),3===g.nodeType&&(f+=g.nodeValue.length),null!==(v=g.firstChild);)b=g,g=v;for(;;){if(g===i)break t;if(b===l&&++m===u&&(p=f),b===c&&++h===s&&(d=f),null!==(v=g.nextSibling))break;g=b,b=g.parentNode}g=v}l=-1===p||-1===d?null:{start:p,end:d}}else l=null}l=l||{start:0,end:0}}else l=null;for(_i={focusedElem:i,selectionRange:l},Ue(!1),ll=o;null!==ll;){i=!1,l=void 0;try{for(;null!==ll;){if(256&ll.effectTag){var y=ll.alternate;switch(u=ll,u.tag){case 2:if(256&u.effectTag&&null!==y){var w=y.memoizedProps,_=y.memoizedState,E=u.stateNode;E.props=u.memoizedProps,E.state=u.memoizedState;var k=E.getSnapshotBeforeUpdate(w,_);E.__reactInternalSnapshotBeforeUpdate=k}break;case 3:case 5:case 6:case 4:break;default:a("163")}}ll=ll.nextEffect}}catch(e){i=!0,l=e}i&&(null===ll&&a("178"),Qn(ll,l),null!==ll&&(ll=ll.nextEffect))}for(ll=o;null!==ll;){y=!1,w=void 0;try{for(;null!==ll;){var C=ll.effectTag;if(16&C&<(ll.stateNode,""),128&C){var x=ll.alternate;if(null!==x){var S=x.ref;null!==S&&("function"===typeof S?S(null):S.current=null)}}switch(14&C){case 2:Bn(ll),ll.effectTag&=-3;break;case 6:Bn(ll),ll.effectTag&=-3,Un(ll.alternate,ll);break;case 4:Un(ll.alternate,ll);break;case 8:_=ll,Fn(_),_.return=null,_.child=null,_.alternate&&(_.alternate.child=null,_.alternate.return=null)}ll=ll.nextEffect}}catch(e){y=!0,w=e}y&&(null===ll&&a("178"),Qn(ll,w),null!==ll&&(ll=ll.nextEffect))}if(S=_i,x=Ba(),C=S.focusedElem,y=S.selectionRange,x!==C&&Ua(document.documentElement,C)){null!==y&&Ke(C)&&(x=y.start,S=y.end,void 0===S&&(S=x),"selectionStart"in C?(C.selectionStart=x,C.selectionEnd=Math.min(S,C.value.length)):window.getSelection&&(x=window.getSelection(),w=C[j()].length,S=Math.min(y.start,w),y=void 0===y.end?S:Math.min(y.end,w),!x.extend&&S>y&&(w=y,y=S,S=w),w=Ye(C,S),_=Ye(C,y),w&&_&&(1!==x.rangeCount||x.anchorNode!==w.node||x.anchorOffset!==w.offset||x.focusNode!==_.node||x.focusOffset!==_.offset)&&(E=document.createRange(),E.setStart(w.node,w.offset),x.removeAllRanges(),S>y?(x.addRange(E),x.extend(_.node,_.offset)):(E.setEnd(_.node,_.offset),x.addRange(E))))),x=[];for(S=C;S=S.parentNode;)1===S.nodeType&&x.push({element:S,left:S.scrollLeft,top:S.scrollTop});for("function"===typeof C.focus&&C.focus(),C=0;C<x.length;C++)S=x[C],S.element.scrollLeft=S.left,S.element.scrollTop=S.top}for(_i=null,Ue(wi),wi=null,n.current=t,ll=o;null!==ll;){o=!1,C=void 0;try{for(x=r;null!==ll;){var T=ll.effectTag;if(36&T){var P=ll.alternate;switch(S=ll,y=x,S.tag){case 2:var O=S.stateNode;if(4&S.effectTag)if(null===P)O.props=S.memoizedProps,O.state=S.memoizedState,O.componentDidMount();else{var N=P.memoizedProps,R=P.memoizedState;O.props=S.memoizedProps,O.state=S.memoizedState,O.componentDidUpdate(N,R,O.__reactInternalSnapshotBeforeUpdate)}var I=S.updateQueue;null!==I&&(O.props=S.memoizedProps,O.state=S.memoizedState,nn(S,I,O,y));break;case 3:var A=S.updateQueue;if(null!==A){if(w=null,null!==S.child)switch(S.child.tag){case 5:w=S.child.stateNode;break;case 2:w=S.child.stateNode}nn(S,A,w,y)}break;case 5:var M=S.stateNode;null===P&&4&S.effectTag&&yt(S.type,S.memoizedProps)&&M.focus();break;case 6:case 4:case 15:case 16:break;default:a("163")}}if(128&T){S=void 0;var z=ll.ref;if(null!==z){var D=ll.stateNode;switch(ll.tag){case 5:S=D;break;default:S=D}"function"===typeof z?z(S):z.current=S}}var L=ll.nextEffect;ll.nextEffect=null,ll=L}}catch(e){o=!0,C=e}o&&(null===ll&&a("178"),Qn(ll,C),null!==ll&&(ll=ll.nextEffect))}tl=sl=!1,"function"===typeof Vt&&Vt(t.stateNode),t=n.current.expirationTime,0===t&&(cl=null),e.remainingExpirationTime=t}function da(){return!(null===El||El.timeRemaining()>Ol)&&(yl=!0)}function ma(e){null===gl&&a("246"),gl.remainingExpirationTime=0,wl||(wl=!0,_l=e)}function ha(e){null===gl&&a("246"),gl.remainingExpirationTime=e}function ga(e,t){var n=kl;kl=!0;try{return e(t)}finally{(kl=n)||hl||la()}}function ba(e,t){if(kl&&!Cl){Cl=!0;try{return e(t)}finally{Cl=!1}}return e(t)}function va(e,t){hl&&a("187");var n=kl;kl=!0;try{return na(e,t)}finally{kl=n,la()}}function ya(e,t,n){if(xl)return e(t,n);kl||hl||0===vl||(sa(vl,!1,null),vl=0);var a=xl,r=kl;kl=xl=!0;try{return e(t,n)}finally{xl=a,(kl=r)||hl||la()}}function wa(e){var t=kl;kl=!0;try{na(e)}finally{(kl=t)||hl||sa(1,!1,null)}}function _a(e,t,n,r,o){var i=t.current;if(n){n=n._reactInternalFiber;var l;e:{for(2===je(n)&&2===n.tag||a("170"),l=n;3!==l.tag;){if(Pt(l)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}(l=l.return)||a("171")}l=l.stateNode.context}n=Pt(n)?It(n,l):l}else n=Wa;return null===t.context?t.context=n:t.pendingContext=n,t=o,o=Yt(r),o.payload={element:e},t=void 0===t?null:t,null!==t&&(o.callback=t),Qt(i,o,r),Zn(i,r),r}function Ea(e){var t=e._reactInternalFiber;return void 0===t&&("function"===typeof e.render?a("188"):a("268",Object.keys(e))),e=ze(t),null===e?null:e.stateNode}function ka(e,t,n,a){var r=t.current;return r=Jn(ea(),r),_a(e,t,n,r,a)}function Ca(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function xa(e){var t=e.findFiberByHostInstance;return Ht(Da({},e,{findHostInstanceByFiber:function(e){return e=ze(e),null===e?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}function Sa(e,t,n){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Wr,key:null==a?null:""+a,children:e,containerInfo:t,implementation:n}}function Ta(e){this._expirationTime=Xn(),this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Pa(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Oa(e,t,n){this._internalRoot=Ut(e,t,n)}function Na(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ra(e,t){if(t||(t=e?9===e.nodeType?e.documentElement:e.firstChild:null,t=!(!t||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Oa(e,!1,t)}function Ia(e,t,n,r,o){Na(n)||a("200");var i=n._reactRootContainer;if(i){if("function"===typeof o){var l=o;o=function(){var e=Ca(i._internalRoot);l.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)}else{if(i=n._reactRootContainer=Ra(n,r),"function"===typeof o){var s=o;o=function(){var e=Ca(i._internalRoot);s.call(e)}}ba(function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)})}return Ca(i._internalRoot)}function ja(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Na(t)||a("200"),Sa(e,t,null,n)}var Aa=n(20),Ma=n(1),za=n(106),Da=n(16),La=n(22),Ba=n(107),Fa=n(108),Ua=n(109),Wa=n(21);Ma||a("227");var Ha={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(e,t,n,a,o,i,l,s,u){r.apply(Ha,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,a,r,o,i,l,s){if(Ha.invokeGuardedCallback.apply(this,arguments),Ha.hasCaughtError()){var u=Ha.clearCaughtError();Ha._hasRethrowError||(Ha._hasRethrowError=!0,Ha._rethrowError=u)}},rethrowCaughtError:function(){return o.apply(Ha,arguments)},hasCaughtError:function(){return Ha._hasCaughtError},clearCaughtError:function(){if(Ha._hasCaughtError){var e=Ha._caughtError;return Ha._caughtError=null,Ha._hasCaughtError=!1,e}a("198")}},Va=null,qa={},Ga=[],$a={},Ya={},Ka={},Qa={plugins:Ga,eventNameDispatchConfigs:$a,registrationNameModules:Ya,registrationNameDependencies:Ka,possibleRegistrationNames:null,injectEventPluginOrder:s,injectEventPluginsByName:u},Xa=null,Ja=null,Za=null,er=null,tr={injectEventPluginOrder:s,injectEventPluginsByName:u},nr={injection:tr,getListener:g,runEventsInBatch:b,runExtractedEventsInBatch:v},ar=Math.random().toString(36).slice(2),rr="__reactInternalInstance$"+ar,or="__reactEventHandlers$"+ar,ir={precacheFiberNode:function(e,t){t[rr]=e},getClosestInstanceFromNode:y,getInstanceFromNode:function(e){return e=e[rr],!e||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:w,getFiberCurrentPropsFromNode:_,updateFiberProps:function(e,t){e[or]=t}},lr={accumulateTwoPhaseDispatches:O,accumulateTwoPhaseDispatchesSkipTarget:function(e){p(e,S)},accumulateEnterLeaveDispatches:N,accumulateDirectDispatches:function(e){p(e,P)}},sr={animationend:R("Animation","AnimationEnd"),animationiteration:R("Animation","AnimationIteration"),animationstart:R("Animation","AnimationStart"),transitionend:R("Transition","TransitionEnd")},ur={},cr={};za.canUseDOM&&(cr=document.createElement("div").style,"AnimationEvent"in window||(delete sr.animationend.animation,delete sr.animationiteration.animation,delete sr.animationstart.animation),"TransitionEvent"in window||delete sr.transitionend.transition);var fr=I("animationend"),pr=I("animationiteration"),dr=I("animationstart"),mr=I("transitionend"),hr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gr=null,br={_root:null,_startText:null,_fallbackText:null},vr="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),yr={type:null,target:null,currentTarget:La.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};Da(z.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=La.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=La.thatReturnsTrue)},persist:function(){this.isPersistent=La.thatReturnsTrue},isPersistent:La.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<vr.length;t++)this[vr[t]]=null}}),z.Interface=yr,z.extend=function(e){function t(){}function n(){return a.apply(this,arguments)}var a=this;t.prototype=a.prototype;var r=new t;return Da(r,n.prototype),n.prototype=r,n.prototype.constructor=n,n.Interface=Da({},a.Interface,e),n.extend=a.extend,B(n),n},B(z);var wr=z.extend({data:null}),_r=z.extend({data:null}),Er=[9,13,27,32],kr=za.canUseDOM&&"CompositionEvent"in window,Cr=null;za.canUseDOM&&"documentMode"in document&&(Cr=document.documentMode);var xr=za.canUseDOM&&"TextEvent"in window&&!Cr,Sr=za.canUseDOM&&(!kr||Cr&&8<Cr&&11>=Cr),Tr=String.fromCharCode(32),Pr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Or=!1,Nr=!1,Rr={eventTypes:Pr,extractEvents:function(e,t,n,a){var r=void 0,o=void 0;if(kr)e:{switch(e){case"compositionstart":r=Pr.compositionStart;break e;case"compositionend":r=Pr.compositionEnd;break e;case"compositionupdate":r=Pr.compositionUpdate;break e}r=void 0}else Nr?F(e,n)&&(r=Pr.compositionEnd):"keydown"===e&&229===n.keyCode&&(r=Pr.compositionStart);return r?(Sr&&(Nr||r!==Pr.compositionStart?r===Pr.compositionEnd&&Nr&&(o=A()):(br._root=a,br._startText=M(),Nr=!0)),r=wr.getPooled(r,t,n,a),o?r.data=o:null!==(o=U(n))&&(r.data=o),O(r),o=r):o=null,(e=xr?W(e,n):H(e,n))?(t=_r.getPooled(Pr.beforeInput,t,n,a),t.data=e,O(t)):t=null,null===o?t:null===t?o:[o,t]}},Ir=null,jr={injectFiberControlledHostComponent:function(e){Ir=e}},Ar=null,Mr=null,zr={injection:jr,enqueueStateRestore:q,needsStateRestore:G,restoreStateIfNeeded:$},Dr=!1,Lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Br=Ma.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Fr="function"===typeof Symbol&&Symbol.for,Ur=Fr?Symbol.for("react.element"):60103,Wr=Fr?Symbol.for("react.portal"):60106,Hr=Fr?Symbol.for("react.fragment"):60107,Vr=Fr?Symbol.for("react.strict_mode"):60108,qr=Fr?Symbol.for("react.profiler"):60114,Gr=Fr?Symbol.for("react.provider"):60109,$r=Fr?Symbol.for("react.context"):60110,Yr=Fr?Symbol.for("react.async_mode"):60111,Kr=Fr?Symbol.for("react.forward_ref"):60112,Qr=Fr?Symbol.for("react.timeout"):60113,Xr="function"===typeof Symbol&&Symbol.iterator,Jr=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Zr=Object.prototype.hasOwnProperty,eo={},to={},no={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){no[e]=new fe(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];no[t]=new fe(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){no[e]=new fe(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","preserveAlpha"].forEach(function(e){no[e]=new fe(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){no[e]=new fe(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){no[e]=new fe(e,3,!0,e.toLowerCase(),null)}),["capture","download"].forEach(function(e){no[e]=new fe(e,4,!1,e.toLowerCase(),null)}),["cols","rows","size","span"].forEach(function(e){no[e]=new fe(e,6,!1,e.toLowerCase(),null)}),["rowSpan","start"].forEach(function(e){no[e]=new fe(e,5,!1,e.toLowerCase(),null)});var ao=/[\-:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ao,pe);no[t]=new fe(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ao,pe);no[t]=new fe(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ao,pe);no[t]=new fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),no.tabIndex=new fe("tabIndex",1,!1,"tabindex",null);var ro={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},oo=null,io=null,lo=!1;za.canUseDOM&&(lo=ee("input")&&(!document.documentMode||9<document.documentMode));var so={eventTypes:ro,_isInputEventSupported:lo,extractEvents:function(e,t,n,a){var r=t?w(t):window,o=void 0,i=void 0,l=r.nodeName&&r.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===r.type?o=Ce:J(r)?lo?o=Ne:(o=Pe,i=Te):(l=r.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(o=Oe),o&&(o=o(e,t)))return _e(o,n,a);i&&i(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&ye(r,"number",r.value)}},uo=z.extend({view:null,detail:null}),co={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},fo=uo.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ie,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}}),po=fo.extend({pointerId:null,width:null,height:null,pressure:null,tiltX:null,tiltY:null,pointerType:null,isPrimary:null}),mo={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},ho={eventTypes:mo,extractEvents:function(e,t,n,a){var r="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(r&&(n.relatedTarget||n.fromElement)||!o&&!r)return null;if(r=a.window===a?a:(r=a.ownerDocument)?r.defaultView||r.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?y(t):null):o=null,o===t)return null;var i=void 0,l=void 0,s=void 0,u=void 0;return"mouseout"===e||"mouseover"===e?(i=fo,l=mo.mouseLeave,s=mo.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(i=po,l=mo.pointerLeave,s=mo.pointerEnter,u="pointer"),e=null==o?r:w(o),r=null==t?r:w(t),l=i.getPooled(l,o,n,a),l.type=u+"leave",l.target=e,l.relatedTarget=r,n=i.getPooled(s,t,n,a),n.type=u+"enter",n.target=r,n.relatedTarget=e,N(l,n,o,t),[l,n]}},go=z.extend({animationName:null,elapsedTime:null,pseudoElement:null}),bo=z.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vo=uo.extend({relatedTarget:null}),yo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wo={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_o=uo.extend({key:function(e){if(e.key){var t=yo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=Le(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?wo[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ie,charCode:function(e){return"keypress"===e.type?Le(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Le(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Eo=fo.extend({dataTransfer:null}),ko=uo.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ie}),Co=z.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),xo=fo.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),So=[["abort","abort"],[fr,"animationEnd"],[pr,"animationIteration"],[dr,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[mr,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],To={},Po={};[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){Be(e,!0)}),So.forEach(function(e){Be(e,!1)});var Oo={eventTypes:To,isInteractiveTopLevelEventType:function(e){return void 0!==(e=Po[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,a){var r=Po[e];if(!r)return null;switch(e){case"keypress":if(0===Le(n))return null;case"keydown":case"keyup":e=_o;break;case"blur":case"focus":e=vo;break;case"click":if(2===n.button)return null;case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=fo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=Eo;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ko;break;case fr:case pr:case dr:e=go;break;case mr:e=Co;break;case"scroll":e=uo;break;case"wheel":e=xo;break;case"copy":case"cut":case"paste":e=bo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=po;break;default:e=z}return t=e.getPooled(r,t,n,a),O(t),t}},No=Oo.isInteractiveTopLevelEventType,Ro=[],Io=!0,jo={get _enabled(){return Io},setEnabled:Ue,isEnabled:function(){return Io},trapBubbledEvent:We,trapCapturedEvent:He,dispatchEvent:qe},Ao={},Mo=0,zo="_reactListenersID"+(""+Math.random()).slice(2),Do=za.canUseDOM&&"documentMode"in document&&11>=document.documentMode,Lo={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Bo=null,Fo=null,Uo=null,Wo=!1,Ho={eventTypes:Lo,extractEvents:function(e,t,n,a){var r,o=a.window===a?a.document:9===a.nodeType?a:a.ownerDocument;if(!(r=!o)){e:{o=Ge(o),r=Ka.onSelect;for(var i=0;i<r.length;i++){var l=r[i];if(!o.hasOwnProperty(l)||!o[l]){o=!1;break e}}o=!0}r=!o}if(r)return null;switch(o=t?w(t):window,e){case"focus":(J(o)||"true"===o.contentEditable)&&(Bo=o,Fo=t,Uo=null);break;case"blur":Uo=Fo=Bo=null;break;case"mousedown":Wo=!0;break;case"contextmenu":case"mouseup":return Wo=!1,Qe(n,a);case"selectionchange":if(Do)break;case"keydown":case"keyup":return Qe(n,a)}return null}};tr.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Xa=ir.getFiberCurrentPropsFromNode,Ja=ir.getInstanceFromNode,Za=ir.getNodeFromInstance,tr.injectEventPluginsByName({SimpleEventPlugin:Oo,EnterLeaveEventPlugin:ho,ChangeEventPlugin:so,SelectEventPlugin:Ho,BeforeInputEventPlugin:Rr});var Vo="function"===typeof requestAnimationFrame?requestAnimationFrame:void 0,qo=Date,Go=setTimeout,$o=clearTimeout,Yo=void 0;if("object"===typeof performance&&"function"===typeof performance.now){var Ko=performance;Yo=function(){return Ko.now()}}else Yo=function(){return qo.now()};var Qo=void 0,Xo=void 0;if(za.canUseDOM){var Jo="function"===typeof Vo?Vo:function(){a("276")},Zo=null,ei=null,ti=-1,ni=!1,ai=!1,ri=0,oi=33,ii=33,li={didTimeout:!1,timeRemaining:function(){var e=ri-Yo();return 0<e?e:0}},si=function(e,t){var n=e.scheduledCallback,a=!1;try{n(t),a=!0}finally{Xo(e),a||(ni=!0,window.postMessage(ui,"*"))}},ui="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===ui&&(ni=!1,null!==Zo)){if(null!==Zo){var t=Yo();if(!(-1===ti||ti>t)){e=-1;for(var n=[],a=Zo;null!==a;){var r=a.timeoutTime;-1!==r&&r<=t?n.push(a):-1!==r&&(-1===e||r<e)&&(e=r),a=a.next}if(0<n.length)for(li.didTimeout=!0,t=0,a=n.length;t<a;t++)si(n[t],li);ti=e}}for(e=Yo();0<ri-e&&null!==Zo;)e=Zo,li.didTimeout=!1,si(e,li),e=Yo();null===Zo||ai||(ai=!0,Jo(ci))}},!1);var ci=function(e){ai=!1;var t=e-ri+ii;t<ii&&oi<ii?(8>t&&(t=8),ii=t<oi?oi:t):oi=t,ri=e+ii,ni||(ni=!0,window.postMessage(ui,"*"))};Qo=function(e,t){var n=-1;return null!=t&&"number"===typeof t.timeout&&(n=Yo()+t.timeout),(-1===ti||-1!==n&&n<ti)&&(ti=n),e={scheduledCallback:e,timeoutTime:n,prev:null,next:null},null===Zo?Zo=e:null!==(t=e.prev=ei)&&(t.next=e),ei=e,ai||(ai=!0,Jo(ci)),e},Xo=function(e){if(null!==e.prev||Zo===e){var t=e.next,n=e.prev;e.next=null,e.prev=null,null!==t?null!==n?(n.next=t,t.prev=n):(t.prev=null,Zo=t):null!==n?(n.next=null,ei=n):ei=Zo=null}}}else{var fi=new Map;Qo=function(e){var t={scheduledCallback:e,timeoutTime:0,next:null,prev:null},n=Go(function(){e({timeRemaining:function(){return 1/0},didTimeout:!1})});return fi.set(e,n),t},Xo=function(e){var t=fi.get(e.scheduledCallback);fi.delete(e),$o(t)}}var pi={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},di=void 0,mi=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==pi.svg||"innerHTML"in e)e.innerHTML=t;else{for(di=di||document.createElement("div"),di.innerHTML="<svg>"+t+"</svg>",t=di.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),hi={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},gi=["Webkit","ms","Moz","O"];Object.keys(hi).forEach(function(e){gi.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hi[t]=hi[e]})});var bi=Da({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),vi=La.thatReturns(""),yi={createElement:pt,createTextNode:dt,setInitialProperties:mt,diffProperties:ht,updateProperties:gt,diffHydratedProperties:bt,diffHydratedText:vt,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(be(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=_(r);o||a("90"),re(r),be(r,o)}}}break;case"textarea":at(e,n);break;case"select":null!=(t=n.value)&&Ze(e,!!n.multiple,t,!1)}}},wi=null,_i=null,Ei=Yo,ki=Qo,Ci=Xo;new Set;var xi=[],Si=-1,Ti=kt(Wa),Pi=kt(!1),Oi=Wa,Ni=null,Ri=null,Ii=!1,ji=kt(null),Ai=kt(null),Mi=kt(0),zi={},Di=kt(zi),Li=kt(zi),Bi=kt(zi),Fi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===je(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var a=ea();a=Jn(a,e);var r=Yt(a);r.payload=t,void 0!==n&&null!==n&&(r.callback=n),Qt(e,r,a),Zn(e,a)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var a=ea();a=Jn(a,e);var r=Yt(a);r.tag=1,r.payload=t,void 0!==n&&null!==n&&(r.callback=n),Qt(e,r,a),Zn(e,a)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ea();n=Jn(n,e);var a=Yt(n);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),Qt(e,a,n),Zn(e,n)}},Ui=Array.isArray,Wi=bn(!0),Hi=bn(!1),Vi=null,qi=null,Gi=!1,$i=void 0,Yi=void 0,Ki=void 0;$i=function(){},Yi=function(e,t,n){(t.updateQueue=n)&&jn(t)},Ki=function(e,t,n,a){n!==a&&jn(t)};var Qi=Ei(),Xi=2,Ji=Qi,Zi=0,el=0,tl=!1,nl=null,al=null,rl=0,ol=-1,il=!1,ll=null,sl=!1,ul=!1,cl=null,fl=null,pl=null,dl=0,ml=void 0,hl=!1,gl=null,bl=0,vl=0,yl=!1,wl=!1,_l=null,El=null,kl=!1,Cl=!1,xl=!1,Sl=null,Tl=1e3,Pl=0,Ol=1,Nl={updateContainerAtExpirationTime:_a,createContainer:function(e,t,n){return Ut(e,t,n)},updateContainer:ka,flushRoot:ua,requestWork:ra,computeUniqueAsyncExpiration:Xn,batchedUpdates:ga,unbatchedUpdates:ba,deferredUpdates:ta,syncUpdates:na,interactiveUpdates:ya,flushInteractiveUpdates:function(){hl||0===vl||(sa(vl,!1,null),vl=0)},flushControlled:wa,flushSync:va,getPublicRootInstance:Ca,findHostInstance:Ea,findHostInstanceWithNoPortals:function(e){return e=De(e),null===e?null:e.stateNode},injectIntoDevTools:xa};jr.injectFiberControlledHostComponent(yi),Ta.prototype.render=function(e){this._defer||a("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new Pa;return _a(e,t,null,n,r._onCommit),r},Ta.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Ta.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||a("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,o=t;o!==this;)r=o,o=o._next;null===r&&a("251"),r._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,ua(e,n),t=this._next,this._next=null,t=e.firstBatch=t,null!==t&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Ta.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Pa.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Pa.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!==typeof n&&a("191",n),n()}}},Oa.prototype.render=function(e,t){var n=this._internalRoot,a=new Pa;return t=void 0===t?null:t,null!==t&&a.then(t),ka(e,n,null,a._onCommit),a},Oa.prototype.unmount=function(e){var t=this._internalRoot,n=new Pa;return e=void 0===e?null:e,null!==e&&n.then(e),ka(null,t,null,n._onCommit),n},Oa.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var a=this._internalRoot,r=new Pa;return n=void 0===n?null:n,null!==n&&r.then(n),ka(t,a,e,r._onCommit),r},Oa.prototype.createBatch=function(){var e=new Ta(this),t=e._expirationTime,n=this._internalRoot,a=n.firstBatch;if(null===a)n.firstBatch=e,e._next=null;else{for(n=null;null!==a&&a._expirationTime<=t;)n=a,a=a._next;e._next=a,null!==n&&(n._next=e)}return e},Y=Nl.batchedUpdates,K=Nl.interactiveUpdates,Q=Nl.flushInteractiveUpdates;var Rl={createPortal:ja,findDOMNode:function(e){return null==e?null:1===e.nodeType?e:Ea(e)},hydrate:function(e,t,n){return Ia(null,e,t,!0,n)},render:function(e,t,n){return Ia(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&a("38"),Ia(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Na(e)||a("40"),!!e._reactRootContainer&&(ba(function(){Ia(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return ja.apply(void 0,arguments)},unstable_batchedUpdates:ga,unstable_deferredUpdates:ta,unstable_interactiveUpdates:ya,flushSync:va,unstable_flushControlled:wa,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:nr,EventPluginRegistry:Qa,EventPropagators:lr,ReactControlledComponent:zr,ReactDOMComponentTree:ir,ReactDOMEventListener:jo},unstable_createRoot:function(e,t){return new Oa(e,!0,null!=t&&!0===t.hydrate)}};xa({findFiberByHostInstance:y,bundleType:0,version:"16.4.2",rendererPackageName:"react-dom"});var Il={default:Rl},jl=Il&&Rl||Il;e.exports=jl.default?jl.default:jl},function(e,t,n){"use strict";function a(e){return r(e)&&3==e.nodeType}var r=n(295);e.exports=a},function(e,t,n){"use strict";function a(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"===typeof n.Node?e instanceof n.Node:"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName))}e.exports=a},function(e,t,n){"use strict";(function(t){"production"!==t.env.NODE_ENV&&function(){function t(){if(Ms)for(var e in zs){var t=zs[e],n=Ms.indexOf(e);if(n>-1||bs(!1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",e),!Ds[n]){t.extractEvents||bs(!1,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",e),Ds[n]=t;var r=t.eventTypes;for(var o in r)a(r[o],t,o)||bs(!1,"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",o,e)}}}function a(e,t,n){Ls.hasOwnProperty(n)&&bs(!1,"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",n),Ls[n]=e;var a=e.phasedRegistrationNames;if(a){for(var o in a)if(a.hasOwnProperty(o)){var i=a[o];r(i,t,n)}return!0}return!!e.registrationName&&(r(e.registrationName,t,n),!0)}function r(e,t,n){Bs[e]&&bs(!1,"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.",e),Bs[e]=t,Fs[e]=t.eventTypes[n].dependencies;var a=e.toLowerCase();Us[a]=e,"onDoubleClick"===e&&(Us.ondblclick=e)}function o(e){Ms&&bs(!1,"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."),Ms=Array.prototype.slice.call(e),t()}function i(e){var n=!1;for(var a in e)if(e.hasOwnProperty(a)){var r=e[a];zs.hasOwnProperty(a)&&zs[a]===r||(zs[a]&&bs(!1,"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",a),zs[a]=r,n=!0)}n&&t()}function l(e,t,n,a){var r=e.type||"unknown-event";e.currentTarget=qs(a),js.invokeGuardedCallbackAndCatchFirstError(r,n,void 0,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,a=e._dispatchInstances;if($s(e),Array.isArray(n))for(var r=0;r<n.length&&!e.isPropagationStopped();r++)l(e,t,n[r],a[r]);else n&&l(e,t,n,a);e._dispatchListeners=null,e._dispatchInstances=null}function u(e,t){return null==t&&bs(!1,"accumulateInto(...): Accumulated items must not be null or undefined."),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function c(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function f(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function p(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!f(t));default:return!1}}function d(e,t){var n=void 0,a=e.stateNode;if(!a)return null;var r=Hs(a);return r?(n=r[t],p(t,e.type,r)?null:(n&&"function"!==typeof n&&bs(!1,"Expected `%s` listener to be a function, instead got a value of `%s` type.",t,typeof n),n)):null}function m(e,t,n,a){for(var r=null,o=0;o<Ds.length;o++){var i=Ds[o];if(i){var l=i.extractEvents(e,t,n,a);l&&(r=u(r,l))}}return r}function h(e,t){null!==e&&(Ys=u(Ys,e));var n=Ys;Ys=null,n&&(t?c(n,Qs):c(n,Xs),Ys&&bs(!1,"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."),js.rethrowCaughtError())}function g(e,t,n,a){h(m(e,t,n,a),!1)}function b(e,t){t[hu]=e}function v(e){if(e[hu])return e[hu];for(;!e[hu];){if(!e.parentNode)return null;e=e.parentNode}var t=e[hu];return t.tag===ou||t.tag===iu?t:null}function y(e){var t=e[hu];return t&&(t.tag===ou||t.tag===iu)?t:null}function w(e){if(e.tag===ou||e.tag===iu)return e.stateNode;bs(!1,"getNodeFromInstance: Invalid argument.")}function _(e){return e[gu]||null}function E(e,t){e[gu]=t}function k(e){do{e=e.return}while(e&&e.tag!==ou);return e||null}function C(e,t){for(var n=0,a=e;a;a=k(a))n++;for(var r=0,o=t;o;o=k(o))r++;for(;n-r>0;)e=k(e),n--;for(;r-n>0;)t=k(t),r--;for(var i=n;i--;){if(e===t||e===t.alternate)return e;e=k(e),t=k(t)}return null}function x(e){return k(e)}function S(e,t,n){for(var a=[];e;)a.push(e),e=k(e);var r=void 0;for(r=a.length;r-- >0;)t(a[r],"captured",n);for(r=0;r<a.length;r++)t(a[r],"bubbled",n)}function T(e,t,n,a,r){for(var o=e&&t?C(e,t):null,i=[];;){if(!e)break;if(e===o)break;var l=e.alternate;if(null!==l&&l===o)break;i.push(e),e=k(e)}for(var s=[];;){if(!t)break;if(t===o)break;var u=t.alternate;if(null!==u&&u===o)break;s.push(t),t=k(t)}for(var c=0;c<i.length;c++)n(i[c],"bubbled",a);for(var f=s.length;f-- >0;)n(s[f],"captured",r)}function P(e,t,n){return d(e,t.dispatchConfig.phasedRegistrationNames[n])}function O(e,t,n){e||ys(!1,"Dispatching inst must not be null");var a=P(e,n,t);a&&(n._dispatchListeners=u(n._dispatchListeners,a),n._dispatchInstances=u(n._dispatchInstances,e))}function N(e){e&&e.dispatchConfig.phasedRegistrationNames&&S(e._targetInst,O,e)}function R(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;S(t?x(t):null,O,e)}}function I(e,t,n){if(e&&n&&n.dispatchConfig.registrationName){var a=n.dispatchConfig.registrationName,r=d(e,a);r&&(n._dispatchListeners=u(n._dispatchListeners,r),n._dispatchInstances=u(n._dispatchInstances,e))}}function j(e){e&&e.dispatchConfig.registrationName&&I(e._targetInst,null,e)}function A(e){c(e,N)}function M(e){c(e,R)}function z(e,t,n,a){T(n,a,I,e,t)}function D(e){c(e,j)}function L(e){return e}function B(e){return e}function F(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function U(e){if(wu[e])return wu[e];if(!yu[e])return e;var t=yu[e];for(var n in t)if(t.hasOwnProperty(n)&&n in _u)return wu[e]=t[n];return e}function W(e){return B(e)}function H(){return!Yc&&ws.canUseDOM&&(Yc="textContent"in document.documentElement?"textContent":"innerText"),Yc}function V(e){return Kc._root=e,Kc._startText=$(),!0}function q(){Kc._root=null,Kc._startText=null,Kc._fallbackText=null}function G(){if(Kc._fallbackText)return Kc._fallbackText;var e=void 0,t=Kc._startText,n=t.length,a=void 0,r=$(),o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var i=n-e;for(a=1;a<=i&&t[n-a]===r[o-a];a++);var l=a>1?1-a:void 0;return Kc._fallbackText=r.slice(e,l),Kc._fallbackText}function $(){return"value"in Kc._root?Kc._root.value:Kc._root[H()]}function Y(e,t,n,a){delete this.nativeEvent,delete this.preventDefault,delete this.stopPropagation,this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var r=this.constructor.Interface;for(var o in r)if(r.hasOwnProperty(o)){delete this[o];var i=r[o];i?this[o]=i(n):"target"===o?this.target=a:this[o]=n[o]}var l=null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue;return this.isDefaultPrevented=l?Es.thatReturnsTrue:Es.thatReturnsFalse,this.isPropagationStopped=Es.thatReturnsFalse,this}function K(e,t){function n(e){return r(o?"setting the method":"setting the property","This is effectively a no-op"),e}function a(){return r(o?"accessing the method":"accessing the property",o?"This is a no-op function":"This is set to null"),t}function r(t,n){ys(!1,"This synthetic event is reused for performance reasons. If you're seeing this, you're %s `%s` on a released/nullified synthetic event. %s. If you must keep the original synthetic event around, use event.persist(). See https://fb.me/react-event-pooling for more information.",t,e,n)}var o="function"===typeof t;return{configurable:!0,set:n,get:a}}function Q(e,t,n,a){var r=this;if(r.eventPool.length){var o=r.eventPool.pop();return r.call(o,e,t,n,a),o}return new r(e,t,n,a)}function X(e){var t=this;e instanceof t||bs(!1,"Trying to release an event instance into a pool of a different type."),e.destructor(),t.eventPool.length<Xc&&t.eventPool.push(e)}function J(e){e.eventPool=[],e.getPooled=Q,e.release=X}function Z(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function ee(e){switch(e){case Au:return pf.compositionStart;case ju:return pf.compositionEnd;case Mu:return pf.compositionUpdate}}function te(e,t){return e===ac&&t.keyCode===rf}function ne(e,t){switch(e){case oc:return-1!==af.indexOf(t.keyCode);case ac:return t.keyCode!==rf;case rc:case fc:case Su:return!0;default:return!1}}function ae(e){var t=e.detail;return"object"===typeof t&&"data"in t?t.data:null}function re(e,t,n,a){var r=void 0,o=void 0;if(of?r=ee(e):mf?ne(e,n)&&(r=pf.compositionEnd):te(e,n)&&(r=pf.compositionStart),!r)return null;uf&&(mf||r!==pf.compositionStart?r===pf.compositionEnd&&mf&&(o=G()):mf=V(a));var i=tf.getPooled(r,t,n,a);if(o)i.data=o;else{var l=ae(n);null!==l&&(i.data=l)}return A(i),i}function oe(e,t){switch(e){case ju:return ae(t);case rc:return t.which!==cf?null:(df=!0,ff);case zc:var n=t.data;return n===ff&&df?null:n;default:return null}}function ie(e,t){if(mf){if(e===ju||!of&&ne(e,t)){var n=G();return q(),mf=!1,n}return null}switch(e){case gc:return null;case rc:if(!Z(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case ju:return uf?null:t.data;default:return null}}function le(e,t,n,a){var r=void 0;if(!(r=sf?oe(e,n):ie(e,n)))return null;var o=nf.getPooled(pf.beforeInput,t,n,a);return o.data=r,A(o),o}function se(e){var t=Vs(e);if(t){gf&&"function"===typeof gf.restoreControlledState||bs(!1,"Fiber needs to be injected to handle a fiber target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var n=Hs(t.stateNode);gf.restoreControlledState(t.stateNode,t.type,n)}}function ue(e){vf?yf?yf.push(e):yf=[e]:vf=e}function ce(){return null!==vf||null!==yf}function fe(){if(vf){var e=vf,t=yf;if(vf=null,yf=null,se(e),t)for(var n=0;n<t.length;n++)se(t[n])}}function pe(e,t){if(xf)return e(t);xf=!0;try{return Ef(e,t)}finally{xf=!1;ce()&&(Cf(),fe())}}function de(e,t,n){return kf(e,t,n)}function me(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Tf[e.type]:"textarea"===t}function he(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Of?t.parentNode:t}function ge(e,t){if(!ws.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var r=document.createElement("div");r.setAttribute(n,"return;"),a="function"===typeof r[n]}return a}function be(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function ve(e){return e._valueTracker}function ye(e){e._valueTracker=null}function we(e){var t="";return e?t=be(e)?e.checked?"true":"false":e.value:t}function _e(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var r=n.get,o=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){a=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});return{getValue:function(){return a},setValue:function(e){a=""+e},stopTracking:function(){ye(e),delete e[t]}}}}function Ee(e){ve(e)||(e._valueTracker=_e(e))}function ke(e){if(!e)return!1;var t=ve(e);if(!t)return!0;var n=t.getValue(),a=we(e);return a!==n&&(t.setValue(a),!0)}function Ce(e){if(null===e||"undefined"===typeof e)return null;var t=Yf&&e[Yf]||e[Kf];return"function"===typeof t?t:null}function xe(e){var t=e.type;if("function"===typeof t)return t.displayName||t.name;if("string"===typeof t)return t;switch(t){case qf:return"AsyncMode";case Vf:return"Context.Consumer";case Ff:return"ReactFragment";case Bf:return"ReactPortal";case Wf:return"Profiler("+e.pendingProps.id+")";case Hf:return"Context.Provider";case Uf:return"StrictMode";case $f:return"Timeout"}if("object"===typeof t&&null!==t)switch(t.$$typeof){case Gf:var n=t.render.displayName||t.render.name||"";return""!==n?"ForwardRef("+n+")":"ForwardRef"}return null}function Se(e){switch(e.tag){case eu:case tu:case nu:case ou:var t=e._debugOwner,n=e._debugSource,a=xe(e),r=null;return t&&(r=xe(t)),zf(a,n,r);default:return""}}function Te(e){var t="",n=e;do{t+=Se(n),n=n.return}while(n);return t}function Pe(){var e=Qf.current;if(null===e)return null;var t=e._debugOwner;return null!==t&&"undefined"!==typeof t?xe(t):null}function Oe(){var e=Qf.current;return null===e?null:Te(e)}function Ne(){Mf.getCurrentStack=null,Qf.current=null,Qf.phase=null}function Re(e){Mf.getCurrentStack=Oe,Qf.current=e,Qf.phase=null}function Ie(e){Qf.phase=e}function je(e){return!!lp.call(up,e)||!lp.call(sp,e)&&(ip.test(e)?(up[e]=!0,!0):(sp[e]=!0,ys(!1,"Invalid attribute name: `%s`",e),!1))}function Ae(e,t,n){return null!==t?t.type===Xf:!n&&(e.length>2&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1]))}function Me(e,t,n,a){if(null!==n&&n.type===Xf)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(a)return!1;if(null!==n)return!n.acceptsBooleans;var r=e.toLowerCase().slice(0,5);return"data-"!==r&&"aria-"!==r;default:return!1}}function ze(e,t,n,a){if(null===t||"undefined"===typeof t)return!0;if(Me(e,t,n,a))return!0;if(a)return!1;if(null!==n)switch(n.type){case Zf:return!t;case ep:return!1===t;case tp:return isNaN(t);case np:return isNaN(t)||t<1}return!1}function De(e){return cp.hasOwnProperty(e)?cp[e]:null}function Le(e,t,n,a,r){this.acceptsBooleans=t===Jf||t===Zf||t===ep,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t}function Be(e,t,n,a){if(a.mustUseProperty){return e[a.propertyName]}var r=a.attributeName,o=null;if(a.type===ep){if(e.hasAttribute(r)){var i=e.getAttribute(r);return""===i||(ze(t,n,a,!1)?i:i===""+n?n:i)}}else if(e.hasAttribute(r)){if(ze(t,n,a,!1))return e.getAttribute(r);if(a.type===Zf)return n;o=e.getAttribute(r)}return ze(t,n,a,!1)?null===o?n:o:o===""+n?n:o}function Fe(e,t,n){if(je(t)){if(!e.hasAttribute(t))return void 0===n?void 0:null;var a=e.getAttribute(t);return a===""+n?n:a}}function Ue(e,t,n,a){var r=De(t);if(!Ae(t,r,a))if(ze(t,n,r,a)&&(n=null),a||null===r){if(je(t)){var o=t;null===n?e.removeAttribute(o):e.setAttribute(o,""+n)}}else{var i=r.mustUseProperty;if(i){var l=r.propertyName;if(null===n){var s=r.type;e[l]=s!==Zf&&""}else e[l]=n}else{var u=r.attributeName,c=r.attributeNamespace;if(null===n)e.removeAttribute(u);else{var f=r.type,p=void 0;p=f===Zf||f===ep&&!0===n?"":""+n,c?e.setAttributeNS(c,u,p):e.setAttribute(u,p)}}}}function We(e){return"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}function He(e,t){var n=e,a=t.checked;return _s({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=a?a:n._wrapperState.initialChecked})}function Ve(e,t){dp.checkPropTypes("input",t,bp),void 0===t.checked||void 0===t.defaultChecked||yp||(ys(!1,"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled-components",gp()||"A component",t.type),yp=!0),void 0===t.value||void 0===t.defaultValue||vp||(ys(!1,"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled-components",gp()||"A component",t.type),vp=!0);var n=e,a=null==t.defaultValue?"":t.defaultValue;n._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:Xe(null!=t.value?t.value:a),controlled:We(t)}}function qe(e,t){var n=e,a=t.checked;null!=a&&Ue(n,"checked",a,!1)}function Ge(e,t){var n=e,a=We(t);n._wrapperState.controlled||!a||_p||(ys(!1,"A component is changing an uncontrolled input of type %s to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components%s",t.type,bp()),_p=!0),!n._wrapperState.controlled||a||wp||(ys(!1,"A component is changing a controlled input of type %s to be uncontrolled. Input elements should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components%s",t.type,bp()),wp=!0),qe(e,t);var r=Xe(t.value);null!=r&&("number"===t.type?(0===r&&""===n.value||n.value!=r)&&(n.value=""+r):n.value!==""+r&&(n.value=""+r)),t.hasOwnProperty("value")?Qe(n,t.type,r):t.hasOwnProperty("defaultValue")&&Qe(n,t.type,Xe(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(n.defaultChecked=!!t.defaultChecked)}function $e(e,t,n){var a=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=""+a._wrapperState.initialValue,o=a.value;n||r!==o&&(a.value=r),a.defaultValue=r}var i=a.name;""!==i&&(a.name=""),a.defaultChecked=!a.defaultChecked,a.defaultChecked=!a.defaultChecked,""!==i&&(a.name=i)}function Ye(e,t){var n=e;Ge(n,t),Ke(n,t)}function Ke(e,t){var n=t.name;if("radio"===t.type&&null!=n){for(var a=e;a.parentNode;)a=a.parentNode;for(var r=a.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),o=0;o<r.length;o++){var i=r[o];if(i!==e&&i.form===e.form){var l=_(i);l||bs(!1,"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."),ke(i),Ge(i,l)}}}}function Qe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Xe(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Je(e,t,n){var a=ef.getPooled(Ep.change,e,t,n);return a.type="change",ue(n),A(a),a}function Ze(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function et(e){pe(tt,Je(Cp,e,he(e)))}function tt(e){h(e,!1)}function nt(e){if(ke(w(e)))return e}function at(e,t){if(e===Nu)return t}function rt(e,t){kp=e,Cp=t,kp.attachEvent("onpropertychange",it)}function ot(){kp&&(kp.detachEvent("onpropertychange",it),kp=null,Cp=null)}function it(e){"value"===e.propertyName&&nt(Cp)&&et(e)}function lt(e,t,n){e===Zu?(ot(),rt(t,n)):e===Su&&ot()}function st(e,t){if(e===Ic||e===oc||e===ac)return nt(Cp)}function ut(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function ct(e,t){if(e===Ru)return nt(t)}function ft(e,t){if(e===tc||e===Nu)return nt(t)}function pt(e){var t=e._wrapperState;t&&t.controlled&&"number"===e.type&&Qe(e,"number",e.value)}function dt(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var a=Op[e];return!!a&&!!n[a]}function mt(e){return dt}function ht(e){return e._reactInternalFiber}function gt(e){return void 0!==e._reactInternalFiber}function bt(e,t){e._reactInternalFiber=t}function vt(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if((t.effectTag&zp)!==Ap)return Yp;for(;t.return;)if(t=t.return,(t.effectTag&zp)!==Ap)return Yp}return t.tag===au?Kp:Qp}function yt(e){return vt(e)===Kp}function wt(e){var t=Af.current;if(null!==t&&t.tag===nu){var n=t,a=n.stateNode;a._warnedAboutRefsInRender||ys(!1,"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",xe(n)||"A component"),a._warnedAboutRefsInRender=!0}var r=ht(e);return!!r&&vt(r)===Kp}function _t(e){vt(e)!==Kp&&bs(!1,"Unable to find node on an unmounted component.")}function Et(e){var t=e.alternate;if(!t){var n=vt(e);return n===Qp&&bs(!1,"Unable to find node on an unmounted component."),n===Yp?null:e}for(var a=e,r=t;;){var o=a.return,i=o?o.alternate:null;if(!o||!i)break;if(o.child===i.child){for(var l=o.child;l;){if(l===a)return _t(o),e;if(l===r)return _t(o),t;l=l.sibling}bs(!1,"Unable to find node on an unmounted component.")}if(a.return!==r.return)a=o,r=i;else{for(var s=!1,u=o.child;u;){if(u===a){s=!0,a=o,r=i;break}if(u===r){s=!0,r=o,a=i;break}u=u.sibling}if(!s){for(u=i.child;u;){if(u===a){s=!0,a=i,r=o;break}if(u===r){s=!0,r=i,a=o;break}u=u.sibling}s||bs(!1,"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}a.alternate!==r&&bs(!1,"Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}return a.tag!==au&&bs(!1,"Unable to find node on an unmounted component."),a.stateNode.current===a?e:t}function kt(e){var t=Et(e);if(!t)return null;for(var n=t;;){if(n.tag===ou||n.tag===iu)return n;if(n.child)n.child.return=n,n=n.child;else{if(n===t)return null;for(;!n.sibling;){if(!n.return||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}}return null}function Ct(e){var t=Et(e);if(!t)return null;for(var n=t;;){if(n.tag===ou||n.tag===iu)return n;if(n.child&&n.tag!==ru)n.child.return=n,n=n.child;else{if(n===t)return null;for(;!n.sibling;){if(!n.return||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}}return null}function xt(e,t,n){e.addEventListener(t,n,!1)}function St(e,t,n){e.addEventListener(t,n,!0)}function Tt(e){var t=void 0,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,10===t&&(t=13),t>=32||13===t?t:0}function Pt(e){if(e.key){var t=ed[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=Tt(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?td[e.keyCode]||"Unidentified":""}function Ot(e,t){var n=e[0],a=e[1],r=a[0].toUpperCase()+a.slice(1),o="on"+r,i={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[n],isInteractive:t};ud[a]=i,cd[n]=i}function Nt(e){for(;e.return;)e=e.return;return e.tag!==au?null:e.stateNode.containerInfo}function Rt(e,t,n){if(hd.length){var a=hd.pop();return a.topLevelType=e,a.nativeEvent=t,a.targetInst=n,a}return{topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]}}function It(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,hd.length<md&&hd.push(e)}function jt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var a=Nt(n);if(!a)break;e.ancestors.push(n),n=v(a)}while(n);for(var r=0;r<e.ancestors.length;r++)t=e.ancestors[r],g(e.topLevelType,t,e.nativeEvent,he(e.nativeEvent))}function At(e){gd=!!e}function Mt(){return gd}function zt(e,t){if(!t)return null;var n=dd(e)?Lt:Bt;xt(t,W(e),n.bind(null,e))}function Dt(e,t){if(!t)return null;var n=dd(e)?Lt:Bt;St(t,W(e),n.bind(null,e))}function Lt(e,t){de(Bt,e,t)}function Bt(e,t){if(gd){var n=he(t),a=v(n);null===a||"number"!==typeof a.tag||yt(a)||(a=null);var r=Rt(e,t,a);try{pe(jt,r)}finally{It(r)}}}function Ft(e){return Object.prototype.hasOwnProperty.call(e,wd)||(e[wd]=yd++,vd[e[wd]]={}),vd[e[wd]]}function Ut(e,t){for(var n=Ft(t),a=Fs[e],r=0;r<a.length;r++){var o=a[r];if(!n.hasOwnProperty(o)||!n[o]){switch(o){case Oc:Dt(Oc,t);break;case Zu:case Su:Dt(Zu,t),Dt(Su,t),n[Su]=!0,n[Zu]=!0;break;case Ou:case Iu:ge(W(o),!0)&&Dt(o,t);break;case nc:case Ac:case Pc:break;default:-1!==$c.indexOf(o)||zt(o,t)}n[o]=!0}}}function Wt(e,t){for(var n=Ft(t),a=Fs[e],r=0;r<a.length;r++){var o=a[r];if(!n.hasOwnProperty(o)||!n[o])return!1}return!0}function Ht(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vt(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function qt(e,t){for(var n=Ht(e),a=0,r=0;n;){if(n.nodeType===Of){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=Ht(Vt(n))}}function Gt(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,a=t.anchorOffset,r=t.focusNode,o=t.focusOffset;try{n.nodeType,r.nodeType}catch(e){return null}return $t(e,n,a,r,o)}function $t(e,t,n,a,r){var o=0,i=-1,l=-1,s=0,u=0,c=e,f=null;e:for(;;){for(var p=null;;){if(c!==t||0!==n&&c.nodeType!==Of||(i=o+n),c!==a||0!==r&&c.nodeType!==Of||(l=o+r),c.nodeType===Of&&(o+=c.nodeValue.length),null===(p=c.firstChild))break;f=c,c=p}for(;;){if(c===e)break e;if(f===t&&++s===n&&(i=o),f===a&&++u===r&&(l=o),null!==(p=c.nextSibling))break;c=f,f=c.parentNode}c=p}return-1===i||-1===l?null:{start:i,end:l}}function Yt(e,t){if(window.getSelection){var n=window.getSelection(),a=e[H()].length,r=Math.min(t.start,a),o=void 0===t.end?r:Math.min(t.end,a);if(!n.extend&&r>o){var i=o;o=r,r=i}var l=qt(e,r),s=qt(e,o);if(l&&s){if(1===n.rangeCount&&n.anchorNode===l.node&&n.anchorOffset===l.offset&&n.focusNode===s.node&&n.focusOffset===s.offset)return;var u=document.createRange();u.setStart(l.node,l.offset),n.removeAllRanges(),r>o?(n.addRange(u),n.extend(s.node,s.offset)):(u.setEnd(s.node,s.offset),n.addRange(u))}}}function Kt(e){return Ss(document.documentElement,e)}function Qt(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Xt(){var e=Cs();return{focusedElem:e,selectionRange:Qt(e)?Zt(e):null}}function Jt(e){var t=Cs(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&Kt(n)){null!==a&&Qt(n)&&en(n,a);for(var r=[],o=n;o=o.parentNode;)o.nodeType===Pf&&r.push({element:o,left:o.scrollLeft,top:o.scrollTop});"function"===typeof n.focus&&n.focus();for(var i=0;i<r.length;i++){var l=r[i];l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}}function Zt(e){return("selectionStart"in e?{start:e.selectionStart,end:e.selectionEnd}:Gt(e))||{start:0,end:0}}function en(e,t){var n=t.start,a=t.end;void 0===a&&(a=n),"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(a,e.value.length)):Yt(e,t)}function tn(e){if("selectionStart"in e&&Qt(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}}function nn(e,t){if(Sd||null==kd||kd!==Cs())return null;var n=tn(kd);if(!xd||!xs(xd,n)){xd=n;var a=ef.getPooled(Ed.select,Cd,e,t);return a.type="select",a.target=kd,A(a),a}return null}function an(e){var t="";return vs.Children.forEach(e,function(e){null!=e&&("string"!==typeof e&&"number"!==typeof e||(t+=e))}),t}function rn(e,t){null==t.selected||Zd||(ys(!1,"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Zd=!0)}function on(e,t){null!=t.value&&e.setAttribute("value",t.value)}function ln(e,t){var n=_s({children:void 0},t),a=an(t.children);return a&&(n.children=a),n}function sn(){var e=em();return e?"\n\nCheck the render method of `"+e+"`.":""}function un(e){dp.checkPropTypes("select",e,tm);for(var t=0;t<am.length;t++){var n=am[t];if(null!=e[n]){var a=Array.isArray(e[n]);e.multiple&&!a?ys(!1,"The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,sn()):!e.multiple&&a&&ys(!1,"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,sn())}}}function cn(e,t,n,a){var r=e.options;if(t){for(var o=n,i={},l=0;l<o.length;l++)i["$"+o[l]]=!0;for(var s=0;s<r.length;s++){var u=i.hasOwnProperty("$"+r[s].value);r[s].selected!==u&&(r[s].selected=u),u&&a&&(r[s].defaultSelected=!0)}}else{for(var c=""+n,f=null,p=0;p<r.length;p++){if(r[p].value===c)return r[p].selected=!0,void(a&&(r[p].defaultSelected=!0));null!==f||r[p].disabled||(f=r[p])}null!==f&&(f.selected=!0)}}function fn(e,t){return _s({},t,{value:void 0})}function pn(e,t){var n=e;un(t);var a=t.value;n._wrapperState={initialValue:null!=a?a:t.defaultValue,wasMultiple:!!t.multiple},void 0===t.value||void 0===t.defaultValue||nm||(ys(!1,"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://fb.me/react-controlled-components"),nm=!0)}function dn(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;null!=a?cn(n,!!t.multiple,a,!1):null!=t.defaultValue&&cn(n,!!t.multiple,t.defaultValue,!0)}function mn(e,t){var n=e;n._wrapperState.initialValue=void 0;var a=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var r=t.value;null!=r?cn(n,!!t.multiple,r,!1):a!==!!t.multiple&&(null!=t.defaultValue?cn(n,!!t.multiple,t.defaultValue,!0):cn(n,!!t.multiple,t.multiple?[]:"",!1))}function hn(e,t){var n=e,a=t.value;null!=a&&cn(n,!!t.multiple,a,!1)}function gn(e,t){var n=e;return null!=t.dangerouslySetInnerHTML&&bs(!1,"`dangerouslySetInnerHTML` does not make sense on <textarea>."),_s({},t,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function bn(e,t){var n=e;dp.checkPropTypes("textarea",t,rm),void 0===t.value||void 0===t.defaultValue||om||(ys(!1,"Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://fb.me/react-controlled-components"),om=!0);var a=t.value;if(null==a){var r=t.defaultValue,o=t.children;null!=o&&(ys(!1,"Use the `defaultValue` or `value` props instead of setting children on <textarea>."),null!=r&&bs(!1,"If you supply `defaultValue` on a <textarea>, do not pass children."),Array.isArray(o)&&(o.length<=1||bs(!1,"<textarea> can only have at most one child."),o=o[0]),r=""+o),null==r&&(r=""),a=r}n._wrapperState={initialValue:""+a}}function vn(e,t){var n=e,a=t.value;if(null!=a){var r=""+a;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)}function yn(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&(n.value=a)}function wn(e,t){vn(e,t)}function _n(e){switch(e){case"svg":return sm;case"math":return lm;default:return im}}function En(e,t){return null==e||e===im?_n(t):e===sm&&"foreignObject"===t?im:e}function kn(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}function Cn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||dm.hasOwnProperty(e)&&dm[e]?(""+t).trim():t+"px"}function xn(e){var t="",n="";for(var a in e)if(e.hasOwnProperty(a)){var r=e[a];if(null!=r){var o=0===a.indexOf("--");t+=n+Ps(a)+":",t+=Cn(a,r,o),n=";"}}return t||null}function Sn(e,t,n){var a=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=0===r.indexOf("--");o||Tm(r,t[r],n);var i=Cn(r,t[r],o);"float"===r&&(r="cssFloat"),o?a.setProperty(r,i):a[r]=i}}function Tn(e,t,n){t&&(Om[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&bs(!1,"%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&bs(!1,"Can only set one of `children` or `props.dangerouslySetInnerHTML`."),"object"===typeof t.dangerouslySetInnerHTML&&Nm in t.dangerouslySetInnerHTML||bs(!1,"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.")),!t.suppressContentEditableWarning&&t.contentEditable&&null!=t.children&&ys(!1,"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.%s",n()),null!=t.style&&"object"!==typeof t.style&&bs(!1,"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.%s",n()))}function Pn(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function On(){var e=Mf.getStackAddendum();return null!=e?e:""}function Nn(e,t){if(zm.call(jm,t)&&jm[t])return!0;if(Mm.test(t)){var n="aria-"+t.slice(4).toLowerCase(),a=Im.hasOwnProperty(n)?n:null;if(null==a)return ys(!1,"Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.%s",t,On()),jm[t]=!0,!0;if(t!==a)return ys(!1,"Invalid ARIA attribute `%s`. Did you mean `%s`?%s",t,a,On()),jm[t]=!0,!0}if(Am.test(t)){var r=t.toLowerCase(),o=Im.hasOwnProperty(r)?r:null;if(null==o)return jm[t]=!0,!1;if(t!==o)return ys(!1,"Unknown ARIA attribute `%s`. Did you mean `%s`?%s",t,o,On()),jm[t]=!0,!0}return!0}function Rn(e,t){var n=[];for(var a in t){Nn(e,a)||n.push(a)}var r=n.map(function(e){return"`"+e+"`"}).join(", ");1===n.length?ys(!1,"Invalid aria prop %s on <%s> tag. For details, see https://fb.me/invalid-aria-prop%s",r,e,On()):n.length>1&&ys(!1,"Invalid aria props %s on <%s> tag. For details, see https://fb.me/invalid-aria-prop%s",r,e,On())}function In(e,t){Pn(e,t)||Rn(e,t)}function jn(){var e=Mf.getStackAddendum();return null!=e?e:""}function An(e,t){"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||Dm||(Dm=!0,"select"===e&&t.multiple?ys(!1,"`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.%s",e,jn()):ys(!1,"`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.%s",e,jn()))}function Mn(){var e=Mf.getStackAddendum();return null!=e?e:""}function zn(e,t,n){Pn(e,t)||qm(e,t,n)}function Dn(e,t){Ut(t,e.nodeType===Rf||e.nodeType===If?e:e.ownerDocument)}function Ln(e){return e.nodeType===Rf?e:e.ownerDocument}function Bn(e){e.onclick=Es}function Fn(e,t,n,a,r){for(var o in a)if(a.hasOwnProperty(o)){var i=a[o];if(o===th)i&&Object.freeze(i),Sn(t,i,rh);else if(o===Qm){var l=i?i[nh]:void 0;null!=l&&fm(t,l)}else if(o===eh)if("string"===typeof i){var s="textarea"!==e||""!==i;s&&pm(t,i)}else"number"===typeof i&&pm(t,""+i);else o===Xm||o===Jm||o===Zm||(Bs.hasOwnProperty(o)?null!=i&&("function"!==typeof i&&fh(o,i),Dn(n,o)):null!=i&&Ue(t,o,i,r))}}function Un(e,t,n,a){for(var r=0;r<t.length;r+=2){var o=t[r],i=t[r+1];o===th?Sn(e,i,rh):o===Qm?fm(e,i):o===eh?pm(e,i):Ue(e,o,i,a)}}function Wn(e,t,n,a){var r=void 0,o=Ln(n),i=void 0,l=a;if(l===ah&&(l=_n(e)),l===ah)if((r=Pn(e,t))||e===e.toLowerCase()||ys(!1,"<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),"script"===e){var s=o.createElement("div");s.innerHTML="<script><\/script>";var u=s.firstChild;i=s.removeChild(u)}else i="string"===typeof t.is?o.createElement(e,{is:t.is}):o.createElement(e);else i=o.createElementNS(l,e);return l===ah&&(r||"[object HTMLUnknownElement]"!==Object.prototype.toString.call(i)||Object.prototype.hasOwnProperty.call(oh,e)||(oh[e]=!0,ys(!1,"The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e))),i}function Hn(e,t){return Ln(t).createTextNode(e)}function Vn(e,t,n,a){var r=Pn(t,n);lh(t,n),r&&!Km&&e.shadyRoot&&(ys(!1,"%s is using shady DOM. Using shady DOM with React can cause things to break subtly.",Gm()||"A component"),Km=!0);var o=void 0;switch(t){case"iframe":case"object":zt(ic,e),o=n;break;case"video":case"audio":for(var i=0;i<$c.length;i++)zt($c[i],e);o=n;break;case"source":zt(Ju,e),o=n;break;case"img":case"image":case"link":zt(Ju,e),zt(ic,e),o=n;break;case"form":zt(Pc,e),zt(Ac,e),o=n;break;case"details":zt(Lc,e),o=n;break;case"input":Ve(e,n),o=He(e,n),zt(nc,e),Dn(a,"onChange");break;case"option":rn(e,n),o=ln(e,n);break;case"select":pn(e,n),o=fn(e,n),zt(nc,e),Dn(a,"onChange");break;case"textarea":bn(e,n),o=gn(e,n),zt(nc,e),Dn(a,"onChange");break;default:o=n}switch(Tn(t,o,rh),Fn(t,e,a,o,r),t){case"input":Ee(e),$e(e,n,!1);break;case"textarea":Ee(e),yn(e,n);break;case"option":on(e,n);break;case"select":dn(e,n);break;default:"function"===typeof o.onClick&&Bn(e)}}function qn(e,t,n,a,r){lh(t,a);var o=null,i=void 0,l=void 0;switch(t){case"input":i=He(e,n),l=He(e,a),o=[];break;case"option":i=ln(e,n),l=ln(e,a),o=[];break;case"select":i=fn(e,n),l=fn(e,a),o=[];break;case"textarea":i=gn(e,n),l=gn(e,a),o=[];break;default:i=n,l=a,"function"!==typeof i.onClick&&"function"===typeof l.onClick&&Bn(e)}Tn(t,l,rh);var s=void 0,u=void 0,c=null;for(s in i)if(!l.hasOwnProperty(s)&&i.hasOwnProperty(s)&&null!=i[s])if(s===th){var f=i[s];for(u in f)f.hasOwnProperty(u)&&(c||(c={}),c[u]="")}else s===Qm||s===eh||s===Xm||s===Jm||s===Zm||(Bs.hasOwnProperty(s)?o||(o=[]):(o=o||[]).push(s,null));for(s in l){var p=l[s],d=null!=i?i[s]:void 0;if(l.hasOwnProperty(s)&&p!==d&&(null!=p||null!=d))if(s===th)if(p&&Object.freeze(p),d){for(u in d)!d.hasOwnProperty(u)||p&&p.hasOwnProperty(u)||(c||(c={}),c[u]="");for(u in p)p.hasOwnProperty(u)&&d[u]!==p[u]&&(c||(c={}),c[u]=p[u])}else c||(o||(o=[]),o.push(s,c)),c=p;else if(s===Qm){var m=p?p[nh]:void 0,h=d?d[nh]:void 0;null!=m&&h!==m&&(o=o||[]).push(s,""+m)}else s===eh?d===p||"string"!==typeof p&&"number"!==typeof p||(o=o||[]).push(s,""+p):s===Xm||s===Jm||(Bs.hasOwnProperty(s)?(null!=p&&("function"!==typeof p&&fh(s,p),Dn(r,s)),o||d===p||(o=[])):(o=o||[]).push(s,p))}return c&&(o=o||[]).push(th,c),o}function Gn(e,t,n,a,r){switch("input"===n&&"radio"===r.type&&null!=r.name&&qe(e,r),Un(e,t,Pn(n,a),Pn(n,r)),n){case"input":Ge(e,r);break;case"textarea":vn(e,r);break;case"select":mn(e,r)}}function $n(e){var t=e.toLowerCase();return Rm.hasOwnProperty(t)?Rm[t]||null:null}function Yn(e,t,n,a,r){var o=void 0,i=void 0;switch(ih=!0===n[Jm],o=Pn(t,n),lh(t,n),o&&!Km&&e.shadyRoot&&(ys(!1,"%s is using shady DOM. Using shady DOM with React can cause things to break subtly.",Gm()||"A component"),Km=!0),t){case"iframe":case"object":zt(ic,e);break;case"video":case"audio":for(var l=0;l<$c.length;l++)zt($c[l],e);break;case"source":zt(Ju,e);break;case"img":case"image":case"link":zt(Ju,e),zt(ic,e);break;case"form":zt(Pc,e),zt(Ac,e);break;case"details":zt(Lc,e);break;case"input":Ve(e,n),zt(nc,e),Dn(r,"onChange");break;case"option":rn(e,n);break;case"select":pn(e,n),zt(nc,e),Dn(r,"onChange");break;case"textarea":bn(e,n),zt(nc,e),Dn(r,"onChange")}Tn(t,n,rh),i=new Set;for(var s=e.attributes,u=0;u<s.length;u++){switch(s[u].name.toLowerCase()){case"data-reactroot":case"value":case"checked":case"selected":break;default:i.add(s[u].name)}}var c=null;for(var f in n)if(n.hasOwnProperty(f)){var p=n[f];if(f===eh)"string"===typeof p?e.textContent!==p&&(ih||sh(e.textContent,p),c=[eh,p]):"number"===typeof p&&e.textContent!==""+p&&(ih||sh(e.textContent,p),c=[eh,""+p]);else if(Bs.hasOwnProperty(f))null!=p&&("function"!==typeof p&&fh(f,p),Dn(r,f));else if("boolean"===typeof o){var d=void 0,m=De(f);if(ih);else if(f===Xm||f===Jm||"value"===f||"checked"===f||"selected"===f);else if(f===Qm){var h=p?p[nh]||"":"",g=e.innerHTML,b=dh(e,h);b!==g&&uh(f,g,b)}else if(f===th){i.delete(f);var v=xn(p);d=e.getAttribute("style"),v!==d&&uh(f,d,v)}else if(o)i.delete(f.toLowerCase()),d=Fe(e,f,p),p!==d&&uh(f,d,p);else if(!Ae(f,m,o)&&!ze(f,p,m,o)){var y=!1;if(null!==m)i.delete(m.attributeName),d=Be(e,f,p,m);else{var w=a;if(w===ah&&(w=_n(t)),w===ah)i.delete(f.toLowerCase());else{var _=$n(f);null!==_&&_!==f&&(y=!0,i.delete(_)),i.delete(f)}d=Fe(e,f,p)}p===d||y||uh(f,d,p)}}}switch(i.size>0&&!ih&&ch(i),t){case"input":Ee(e),$e(e,n,!0);break;case"textarea":Ee(e),yn(e,n);break;case"select":case"option":break;default:"function"===typeof n.onClick&&Bn(e)}return c}function Kn(e,t){return e.nodeValue!==t}function Qn(e,t){sh(e.nodeValue,t)}function Xn(e,t){Ym||(Ym=!0,ys(!1,"Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase()))}function Jn(e,t){Ym||(Ym=!0,ys(!1,'Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase()))}function Zn(e,t,n){Ym||(Ym=!0,ys(!1,"Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase()))}function ea(e,t){""!==t&&(Ym||(Ym=!0,ys(!1,'Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())))}function ta(e,t,n){switch(t){case"input":return void Ye(e,n);case"textarea":return void wn(e,n);case"select":return void hn(e,n)}}function na(){bs(!1,"The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.")}function aa(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function ra(e){var t=void 0,n=void 0,a=e.nodeType;switch(a){case Rf:case If:t=a===Rf?"#document":"#fragment";var r=e.documentElement;n=r?r.namespaceURI:En(null,"");break;default:var o=a===Nf?e.parentNode:e,i=o.namespaceURI||null;t=o.tagName,n=En(i,t)}var l=t.toLowerCase();return{namespace:n,ancestorInfo:$h(null,l,null)}}function oa(e,t,n){var a=e;return{namespace:En(a.namespace,t),ancestorInfo:$h(a.ancestorInfo,t,null)}}function ia(e){return e}function la(e){Xh=Mt(),Jh=Xt(),At(!1)}function sa(e){Jt(Jh),Jh=null,At(Xh),Xh=null}function ua(e,t,n,a,r){var o=void 0,i=a;if(Ph(e,null,i.ancestorInfo),"string"===typeof t.children||"number"===typeof t.children){var l=""+t.children,s=$h(i.ancestorInfo,e,null);Ph(null,l,s)}o=i.namespace;var u=Mh(e,t,n,o);return Yh(r,u),Kh(u,t),u}function ca(e,t){e.appendChild(t)}function fa(e,t,n,a,r){return Dh(e,t,n,a),aa(t,n)}function pa(e,t,n,a,r,o){var i=o;if(typeof a.children!==typeof n.children&&("string"===typeof a.children||"number"===typeof a.children)){var l=""+a.children,s=$h(i.ancestorInfo,t,null);Ph(null,l,s)}return Lh(e,t,n,a,r)}function da(e,t){return"textarea"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"===typeof t.dangerouslySetInnerHTML.__html}function ma(e,t){return!!t.hidden}function ha(e,t,n,a){Ph(null,e,n.ancestorInfo);var r=zh(e,t);return Yh(a,r),r}function ga(e,t,n,a){aa(t,n)&&e.focus()}function ba(e,t,n,a,r,o){Kh(e,r),Bh(e,t,n,a,r)}function va(e){pm(e,"")}function ya(e,t,n){e.nodeValue=n}function wa(e,t){e.appendChild(t)}function _a(e,t){e.nodeType===Nf?e.parentNode.insertBefore(t,e):e.appendChild(t)}function Ea(e,t,n){e.insertBefore(t,n)}function ka(e,t,n){e.nodeType===Nf?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function Ca(e,t){e.removeChild(t)}function xa(e,t){e.nodeType===Nf?e.parentNode.removeChild(t):e.removeChild(t)}function Sa(e,t,n){return e.nodeType!==Pf||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Ta(e,t){return""===t||e.nodeType!==Of?null:e}function Pa(e){for(var t=e.nextSibling;t&&t.nodeType!==Pf&&t.nodeType!==Of;)t=t.nextSibling;return t}function Oa(e){for(var t=e.firstChild;t&&t.nodeType!==Pf&&t.nodeType!==Of;)t=t.nextSibling;return t}function Na(e,t,n,a,r,o){Yh(o,e),Kh(e,n);var i=void 0;return i=r.namespace,Fh(e,t,n,i,a)}function Ra(e,t,n){return Yh(n,e),Uh(e,t)}function Ia(e,t,n){Wh(t,n)}function ja(e,t,n,a,r){!0!==t[Qh]&&Wh(a,r)}function Aa(e,t){1===t.nodeType?Hh(e,t):Vh(e,t)}function Ma(e,t,n,a){!0!==t[Qh]&&(1===a.nodeType?Hh(n,a):Vh(n,a))}function za(e,t,n){qh(e,t,n)}function Da(e,t){Gh(e,t)}function La(e,t,n,a,r){!0!==t[Qh]&&qh(n,a,r)}function Ba(e,t,n,a){!0!==t[Qh]&&Gh(n,a)}function Fa(){og&&Eg++}function Ua(){og&&(vg&&(yg=!0),null!==gg&&"componentWillMount"!==gg&&"componentWillReceiveProps"!==gg&&(wg=!0))}function Wa(){og&&mg&&!kg&&(kg=!0,Tg("(Waiting for async callback...)"))}function Ha(e,t){if(og&&mg){kg=!1;Og("(Waiting for async callback... will force flush in "+t+" ms)","(Waiting for async callback...)",e?"React was blocked by main thread":null)}}function Va(e){if(og){if(!mg||Mg(e))return;if(hg=e,!Ig(e,null))return;e._debugIsCurrentlyTiming=!0}}function qa(e){if(og){if(!mg||Mg(e))return;e._debugIsCurrentlyTiming=!1,jg(e,null)}}function Ga(e){if(og){if(!mg||Mg(e))return;if(hg=e.return,!e._debugIsCurrentlyTiming)return;e._debugIsCurrentlyTiming=!1,Ag(e,null,null)}}function $a(e){if(og){if(!mg||Mg(e))return;if(hg=e.return,!e._debugIsCurrentlyTiming)return;e._debugIsCurrentlyTiming=!1;Ag(e,null,"An error was thrown inside this error boundary")}}function Ya(e,t){if(og){if(!mg)return;if(zg(),!Ig(e,t))return;bg=e,gg=t}}function Ka(){if(og){if(!mg)return;if(null!==gg&&null!==bg){Ag(bg,gg,wg?"Scheduled a cascading update":null)}gg=null,bg=null}}function Qa(e){if(og){if(hg=e,!mg)return;_g=0,Tg("(React Tree Reconciliation)"),Bg()}}function Xa(e,t){if(og){if(!mg)return;var n=null;if(null!==e)if(e.tag===au)n="A top-level update interrupted the previous render";else{var a=xe(e)||"Unknown";n="An update to "+a+" interrupted the previous render"}else _g>1&&(n="There were cascading updates");_g=0;var r=t?"(React Tree Reconciliation: Completed Root)":"(React Tree Reconciliation: Yielded)";Dg(),Og(r,"(React Tree Reconciliation)",n)}}function Ja(){if(og){if(!mg)return;vg=!0,yg=!1,Cg.clear(),Tg("(Committing Changes)")}}function Za(){if(og){if(!mg)return;var e=null;yg?e="Lifecycle hook scheduled a cascading update":_g>0&&(e="Caused by a cascading update in earlier commit"),yg=!1,_g++,vg=!1,Cg.clear(),Og("(Committing Changes)","(Committing Changes)",e)}}function er(){if(og){if(!mg)return;Eg=0,Tg("(Committing Snapshot Effects)")}}function tr(){if(og){if(!mg)return;var e=Eg;Eg=0,Og("(Committing Snapshot Effects: "+e+" Total)","(Committing Snapshot Effects)",null)}}function nr(){if(og){if(!mg)return;Eg=0,Tg("(Committing Host Effects)")}}function ar(){if(og){if(!mg)return;var e=Eg;Eg=0,Og("(Committing Host Effects: "+e+" Total)","(Committing Host Effects)",null)}}function rr(){if(og){if(!mg)return;Eg=0,Tg("(Calling Lifecycle Methods)")}}function or(){if(og){if(!mg)return;var e=Eg;Eg=0,Og("(Calling Lifecycle Methods: "+e+" Total)","(Calling Lifecycle Methods)",null)}}function ir(e){return{current:e}}function lr(e,t){if(Wg<0)return void ys(!1,"Unexpected pop.");t!==Ug[Wg]&&ys(!1,"Unexpected Fiber popped."),e.current=Fg[Wg],Fg[Wg]=null,Ug[Wg]=null,Wg--}function sr(e,t,n){Wg++,Fg[Wg]=e.current,Ug[Wg]=n,e.current=t}function ur(){-1!==Wg&&ys(!1,"Expected an empty stack. Something was not reset properly.")}function cr(){Wg=-1,Fg.length=0,Ug.length=0}function fr(e){return gr(e)?Gg:Vg.current}function pr(e,t,n){var a=e.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=t,a.__reactInternalMemoizedMaskedChildContext=n}function dr(e,t){var n=e.type,a=n.contextTypes;if(!a)return Ts;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={};for(var i in a)o[i]=t[i];var l=xe(e)||"Unknown";return ks(a,o,"context",l,Qf.getCurrentFiberStackAddendum),r&&pr(e,t,o),o}function mr(){return qg.current}function hr(e){return e.tag===nu&&null!=e.type.contextTypes}function gr(e){return e.tag===nu&&null!=e.type.childContextTypes}function br(e){gr(e)&&(lr(qg,e),lr(Vg,e))}function vr(e){lr(qg,e),lr(Vg,e)}function yr(e,t,n){Vg.current!==Ts&&bs(!1,"Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue."),sr(Vg,t,e),sr(qg,n,e)}function wr(e,t){var n=e.stateNode,a=e.type.childContextTypes;if("function"!==typeof n.getChildContext){var r=xe(e)||"Unknown";return Hg[r]||(Hg[r]=!0,ys(!1,"%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",r,r)),t}var o=void 0;Qf.setCurrentPhase("getChildContext"),Ya(e,"getChildContext"),o=n.getChildContext(),Ka(),Qf.setCurrentPhase(null);for(var i in o)i in a||bs(!1,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',xe(e)||"Unknown",i);var l=xe(e)||"Unknown";return ks(a,o,"child context",l,Qf.getCurrentFiberStackAddendum),_s({},t,o)}function _r(e){if(!gr(e))return!1;var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||Ts;return Gg=Vg.current,sr(Vg,n,e),sr(qg,qg.current,e),!0}function Er(e,t){var n=e.stateNode;if(n||bs(!1,"Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue."),t){var a=wr(e,Gg);n.__reactInternalMemoizedMergedChildContext=a,lr(qg,e),lr(Vg,e),sr(Vg,a,e),sr(qg,t,e)}else lr(qg,e),sr(qg,t,e)}function kr(e){yt(e)&&e.tag===nu||bs(!1,"Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");for(var t=e;t.tag!==au;){if(gr(t))return t.stateNode.__reactInternalMemoizedMergedChildContext;var n=t.return;n||bs(!1,"Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue."),t=n}return t.stateNode.context}function Cr(e){return(e/Xg|0)+Jg}function xr(e){return(e-Jg)*Xg}function Sr(e,t){return(1+(e/t|0))*t}function Tr(e,t,n){return Jg+Sr(e-Jg+t/Xg,n/Xg)}function Pr(e,t,n,a){this.tag=e,this.key=n,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.mode=a,this.effectTag=Ap,this.nextEffect=null,this.firstEffect=null,this.lastEffect=null,this.expirationTime=Yg,this.alternate=null,dg&&(this.actualDuration=0,this.actualStartTime=0,this.selfBaseTime=0,this.treeBaseTime=0),this._debugID=lb++,this._debugSource=null,this._debugOwner=null,this._debugIsCurrentlyTiming=!1,ab||"function"!==typeof Object.preventExtensions||Object.preventExtensions(this)}function Or(e){return!(!e.prototype||!e.prototype.isReactComponent)}function Nr(e,t,n){var a=e.alternate;return null===a?(a=sb(e.tag,t,e.key,e.mode),a.type=e.type,a.stateNode=e.stateNode,a._debugID=e._debugID,a._debugSource=e._debugSource,a._debugOwner=e._debugOwner,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.effectTag=Ap,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,dg&&(a.actualDuration=0,a.actualStartTime=0)),a.expirationTime=n,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,dg&&(a.selfBaseTime=e.selfBaseTime,a.treeBaseTime=e.treeBaseTime),a}function Rr(e){return sb(au,null,null,e?eb|tb:Zg)}function Ir(e,t,n){var a=null;a=e._owner;var r=void 0,o=e.type,i=e.key,l=e.props,s=void 0;if("function"===typeof o)s=Or(o)?nu:eu;else if("string"===typeof o)s=ou;else switch(o){case Ff:return Ar(l.children,t,n,i);case qf:s=su,t|=eb|tb;break;case Uf:s=su,t|=tb;break;case Wf:return Mr(l,t,n,i);case $f:s=du,t|=tb;break;default:s=jr(o,a)}return r=sb(s,l,i,t),r.type=o,r.expirationTime=n,r._debugSource=e._source,r._debugOwner=e._owner,r}function jr(e,t){switch("object"===typeof e&&null!==e?e.$$typeof:null){case Hf:return cu;case Vf:return uu;case Gf:return fu;default:var n="";(void 0===e||"object"===typeof e&&null!==e&&0===Object.keys(e).length)&&(n+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var a=t?xe(t):null;a&&(n+="\n\nCheck the render method of `"+a+"`."),bs(!1,"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==e?e:typeof e,n)}}function Ar(e,t,n,a){var r=sb(lu,e,a,t);return r.expirationTime=n,r}function Mr(e,t,n,a){"string"===typeof e.id&&"function"===typeof e.onRender||bs(!1,'Profiler must specify an "id" string and "onRender" function as props');var r=sb(pu,e,a,t|nb);return r.type=Wf,r.expirationTime=n,r}function zr(e,t,n){var a=sb(iu,e,null,t);return a.expirationTime=n,a}function Dr(){var e=sb(ou,null,null,Zg);return e.type="DELETED",e}function Lr(e,t,n){var a=null!==e.children?e.children:[],r=sb(ru,a,e.key,t);return r.expirationTime=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function Br(e,t){return null===e&&(e=sb(eu,null,null,Zg)),e.tag=t.tag,e.key=t.key,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.mode=t.mode,e.effectTag=t.effectTag,e.nextEffect=t.nextEffect,e.firstEffect=t.firstEffect,e.lastEffect=t.lastEffect,e.expirationTime=t.expirationTime,e.alternate=t.alternate,dg&&(e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseTime=t.selfBaseTime,e.treeBaseTime=t.treeBaseTime),e._debugID=t._debugID,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugIsCurrentlyTiming=t._debugIsCurrentlyTiming,e}function Fr(e,t,n){var a=Rr(t),r={current:a,containerInfo:e,pendingChildren:null,earliestPendingTime:Yg,latestPendingTime:Yg,earliestSuspendedTime:Yg,latestSuspendedTime:Yg,latestPingedTime:Yg,pendingCommitExpirationTime:Yg,finishedWork:null,context:null,pendingContext:null,hydrate:n,remainingExpirationTime:Yg,firstBatch:null,nextScheduledRoot:null};return a.stateNode=r,r}function Ur(e){return function(t){try{return e(t)}catch(e){fb||(fb=!0,ys(!1,"React DevTools encountered an error: %s",e))}}}function Wr(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return ys(!1,"The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://fb.me/react-devtools"),!0;try{var n=t.inject(e);ub=Ur(function(e){return t.onCommitFiberRoot(n,e)}),cb=Ur(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){ys(!1,"React DevTools encountered an error: %s.",e)}return!0}function Hr(e){"function"===typeof ub&&ub(e)}function Vr(e){"function"===typeof cb&&cb(e)}function qr(e,t){if(lg){var n=e.earliestPendingTime;if(n===Yg)e.earliestPendingTime=e.latestPendingTime=t;else if(n>t)e.earliestPendingTime=t;else{var a=e.latestPendingTime;a<t&&(e.latestPendingTime=t)}}}function Gr(e,t,n){if(lg){if(n===Yg)return e.earliestPendingTime=Yg,e.latestPendingTime=Yg,e.earliestSuspendedTime=Yg,e.latestSuspendedTime=Yg,void(e.latestPingedTime=Yg);var a=e.latestPendingTime;if(a!==Yg)if(a<n)e.earliestPendingTime=e.latestPendingTime=Yg;else{var r=e.earliestPendingTime;r<n&&(e.earliestPendingTime=e.latestPendingTime)}var o=e.earliestSuspendedTime;if(o===Yg)return void qr(e,n);if(n>e.latestSuspendedTime)return e.earliestSuspendedTime=Yg,e.latestSuspendedTime=Yg,e.latestPingedTime=Yg,void qr(e,n);if(n<o)return void qr(e,n)}}function $r(e,t){if(lg){var n=e.earliestPendingTime,a=e.latestPendingTime;n===t?e.earliestPendingTime=a===t?e.latestPendingTime=Yg:a:a===t&&(e.latestPendingTime=n);var r=e.latestSuspendedTime;r===t&&(e.latestPingedTime=Yg);var o=e.earliestSuspendedTime;o===Yg?e.earliestSuspendedTime=e.latestSuspendedTime=t:o>t?e.earliestSuspendedTime=t:r<t&&(e.latestSuspendedTime=t)}}function Yr(e,t){if(lg){var n=e.latestSuspendedTime;if(n!==Yg&&n<=t){var a=e.latestPingedTime;(a===Yg||a<t)&&(e.latestPingedTime=t)}}}function Kr(e){if(lg){var t=e.earliestSuspendedTime,n=e.earliestPendingTime;return t===Yg?n:n!==Yg?n:e.latestPingedTime}return e.current.expirationTime}function Qr(e){return{expirationTime:Yg,baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Xr(e){return{expirationTime:e.expirationTime,baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Jr(e){return{expirationTime:e,tag:Ob,payload:null,callback:null,next:null,nextEffect:null}}function Zr(e,t,n){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t),(e.expirationTime===Yg||e.expirationTime>n)&&(e.expirationTime=n)}function eo(e,t,n){var a=e.alternate,r=void 0,o=void 0;null===a?(r=e.updateQueue,o=null,null===r&&(r=e.updateQueue=Qr(e.memoizedState))):(r=e.updateQueue,o=a.updateQueue,null===r?null===o?(r=e.updateQueue=Qr(e.memoizedState),o=a.updateQueue=Qr(a.memoizedState)):r=e.updateQueue=Xr(o):null===o&&(o=a.updateQueue=Xr(r))),null===o||r===o?Zr(r,t,n):null===r.lastUpdate||null===o.lastUpdate?(Zr(r,t,n),Zr(o,t,n)):(Zr(r,t,n),o.lastUpdate=t),e.tag!==nu||Mb!==r&&(null===o||Mb!==o)||Ab||(ys(!1,"An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),Ab=!0)}function to(e,t,n){var a=e.updateQueue;a=null===a?e.updateQueue=Qr(e.memoizedState):no(e,a),null===a.lastCapturedUpdate?a.firstCapturedUpdate=a.lastCapturedUpdate=t:(a.lastCapturedUpdate.next=t,a.lastCapturedUpdate=t),(a.expirationTime===Yg||a.expirationTime>n)&&(a.expirationTime=n)}function no(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Xr(t)),t}function ao(e,t,n,a,r,o){switch(n.tag){case Nb:var i=n.payload;return"function"===typeof i?((sg||ug&&e.mode&tb)&&i.call(o,a,r),i.call(o,a,r)):i;case Ib:e.effectTag=e.effectTag&~$p|Wp;case Ob:var l=n.payload,s=void 0;return"function"===typeof l?((sg||ug&&e.mode&tb)&&l.call(o,a,r),s=l.call(o,a,r)):s=l,null===s||void 0===s?a:_s({},a,s);case Rb:return jb=!0,a}return a}function ro(e,t,n,a,r){if(jb=!1,!(t.expirationTime===Yg||t.expirationTime>r)){t=no(e,t),Mb=t;for(var o=t.baseState,i=null,l=Yg,s=t.firstUpdate,u=o;null!==s;){var c=s.expirationTime;if(c>r)null===i&&(i=s,o=u),(l===Yg||l>c)&&(l=c);else{u=ao(e,t,s,u,n,a);null!==s.callback&&(e.effectTag|=Up,s.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))}s=s.next}var f=null;for(s=t.firstCapturedUpdate;null!==s;){var p=s.expirationTime;if(p>r)null===f&&(f=s,null===i&&(o=u)),(l===Yg||l>p)&&(l=p);else{u=ao(e,t,s,u,n,a);null!==s.callback&&(e.effectTag|=Up,s.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))}s=s.next}null===i&&(t.lastUpdate=null),null===f?t.lastCapturedUpdate=null:e.effectTag|=Up,null===i&&null===f&&(o=u),t.baseState=o,t.firstUpdate=i,t.firstCapturedUpdate=f,t.expirationTime=l,e.memoizedState=u,Mb=null}}function oo(e,t){"function"!==typeof e&&bs(!1,"Invalid argument passed as callback. Expected a function. Instead received: %s",e),e.call(t)}function io(){jb=!1}function lo(){return jb}function so(e,t,n,a){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null);var r=t.firstEffect;for(t.firstEffect=t.lastEffect=null;null!==r;){var o=r.callback;null!==o&&(r.callback=null,oo(o,n)),r=r.nextEffect}for(r=t.firstCapturedEffect,t.firstCapturedEffect=t.lastCapturedEffect=null;null!==r;){var i=r.callback;null!==i&&(r.callback=null,oo(i,n)),r=r.nextEffect}}function uo(e,t){return{value:e,source:t,stack:Te(t)}}function co(e){var t=e.type._context;eg?(sr(Bb,t._changedBits,e),sr(Lb,t._currentValue,e),sr(Db,e,e),t._currentValue=e.pendingProps.value,t._changedBits=e.stateNode,void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==Fb&&ys(!1,"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Fb):(sr(Bb,t._changedBits2,e),sr(Lb,t._currentValue2,e),sr(Db,e,e),t._currentValue2=e.pendingProps.value,t._changedBits2=e.stateNode,void 0!==t._currentRenderer2&&null!==t._currentRenderer2&&t._currentRenderer2!==Fb&&ys(!1,"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer2=Fb)}function fo(e){var t=Bb.current,n=Lb.current;lr(Db,e),lr(Lb,e),lr(Bb,e);var a=e.type._context;eg?(a._currentValue=n,a._changedBits=t):(a._currentValue2=n,a._changedBits2=t)}function po(e){return eg?e._currentValue:e._currentValue2}function mo(e){return eg?e._changedBits:e._changedBits2}function ho(e){return e===Ub&&bs(!1,"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function go(){return ho(Vb.current)}function bo(e,t){sr(Vb,t,e),sr(Hb,e,e),sr(Wb,Ub,e);var n=ra(t);lr(Wb,e),sr(Wb,n,e)}function vo(e){lr(Wb,e),lr(Hb,e),lr(Vb,e)}function yo(){return ho(Wb.current)}function wo(e){var t=ho(Vb.current),n=ho(Wb.current),a=oa(n,e.type,t);n!==a&&(sr(Hb,e,e),sr(Wb,a,e))}function _o(e){Hb.current===e&&(lr(Wb,e),lr(Hb,e))}function Eo(){return qb}function ko(){dg&&(qb=Zh())}function Co(){dg&&0!==Gb.length&&ys(!1,"Expected an empty stack. Something was not reset properly.")}function xo(e){dg&&(Gb.push(e),e.actualDuration=Zh()-e.actualDuration-Yb,e.actualStartTime=Zh())}function So(){dg&&0===$b&&($b=Zh())}function To(e){dg&&(e!==Gb.pop()&&ys(!1,"Unexpected Fiber (%s) popped.",xe(e)),e.actualDuration=Zh()-Yb-e.actualDuration)}function Po(){dg&&(Yb=0)}function Oo(){dg&&$b>0&&(Yb+=Zh()-$b,$b=0)}function No(e){dg&&-1!==Kb&&(e.selfBaseTime=Zh()-Kb)}function Ro(){dg&&(-1!==Kb&&ys(!1,"Cannot start base timer that is already running. This error is likely caused by a bug in React. Please file an issue."),Kb=Zh())}function Io(){dg&&(Kb=-1)}function jo(e,t,n){var a=e.memoizedState;(sg||ug&&e.mode&tb)&&t(n,a);var r=t(n,a);av(e,r);var o=null===r||void 0===r?a:_s({},a,r);e.memoizedState=o;var i=e.updateQueue;null!==i&&i.expirationTime===Yg&&(i.baseState=o)}function Ao(e,t,n,a,r,o){var i=e.stateNode,l=e.type;if("function"===typeof i.shouldComponentUpdate){Ya(e,"shouldComponentUpdate");var s=i.shouldComponentUpdate(n,r,o);return Ka(),void 0===s&&ys(!1,"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",xe(e)||"Component"),s}return!l.prototype||!l.prototype.isPureReactComponent||(!xs(t,n)||!xs(a,r))}function Mo(e){var t=e.stateNode,n=e.type,a=xe(e)||"Component";t.render||(n.prototype&&"function"===typeof n.prototype.render?ys(!1,"%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",a):ys(!1,"%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",a)),!t.getInitialState||t.getInitialState.isReactClassApproved||t.state||ys(!1,"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",a),!t.getDefaultProps||t.getDefaultProps.isReactClassApproved||ys(!1,"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",a),!t.propTypes||ys(!1,"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",a),!t.contextTypes||ys(!1,"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",a),"function"!==typeof t.componentShouldUpdate||ys(!1,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",a),n.prototype&&n.prototype.isPureReactComponent&&"undefined"!==typeof t.shouldComponentUpdate&&ys(!1,"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",xe(e)||"A pure component"),"function"!==typeof t.componentDidUnmount||ys(!1,"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",a),"function"!==typeof t.componentDidReceiveProps||ys(!1,"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",a),"function"!==typeof t.componentWillRecieveProps||ys(!1,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",a),"function"!==typeof t.UNSAFE_componentWillRecieveProps||ys(!1,"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",a);var r=t.props!==e.pendingProps;void 0!==t.props&&r&&ys(!1,"%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",a,a),!t.defaultProps||ys(!1,"Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",a,a),"function"!==typeof t.getSnapshotBeforeUpdate||"function"===typeof t.componentDidUpdate||ev.has(n)||(ev.add(n),ys(!1,"%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",xe(e))),"function"!==typeof t.getDerivedStateFromProps||ys(!1,"%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",a),"function"!==typeof t.getDerivedStateFromCatch||ys(!1,"%s: getDerivedStateFromCatch() is defined as an instance method and will be ignored. Instead, declare it as a static method.",a),"function"!==typeof n.getSnapshotBeforeUpdate||ys(!1,"%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",a);var o=t.state;o&&("object"!==typeof o||Xb(o))&&ys(!1,"%s.state: must be set to an object or null",a),"function"===typeof t.getChildContext&&"object"!==typeof n.childContextTypes&&ys(!1,"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",a)}function zo(e,t){t.updater=iv,e.stateNode=t,bt(t,e),t._reactInternalInstance=Qb}function Do(e,t,n){var a=e.type,r=fr(e),o=hr(e),i=o?dr(e,r):Ts;(sg||ug&&e.mode&tb)&&new a(t,i);var l=new a(t,i),s=e.memoizedState=null!==l.state&&void 0!==l.state?l.state:null;if(zo(e,l),"function"===typeof a.getDerivedStateFromProps&&null===s){var u=xe(e)||"Component";Zb.has(u)||(Zb.add(u),ys(!1,"%s: Did not properly initialize state during construction. Expected state to be an object, but it was %s.",u,null===l.state?"null":"undefined"))}if("function"===typeof a.getDerivedStateFromProps||"function"===typeof l.getSnapshotBeforeUpdate){var c=null,f=null,p=null;if("function"===typeof l.componentWillMount&&!0!==l.componentWillMount.__suppressDeprecationWarning?c="componentWillMount":"function"===typeof l.UNSAFE_componentWillMount&&(c="UNSAFE_componentWillMount"),"function"===typeof l.componentWillReceiveProps&&!0!==l.componentWillReceiveProps.__suppressDeprecationWarning?f="componentWillReceiveProps":"function"===typeof l.UNSAFE_componentWillReceiveProps&&(f="UNSAFE_componentWillReceiveProps"),"function"===typeof l.componentWillUpdate&&!0!==l.componentWillUpdate.__suppressDeprecationWarning?p="componentWillUpdate":"function"===typeof l.UNSAFE_componentWillUpdate&&(p="UNSAFE_componentWillUpdate"),null!==c||null!==f||null!==p){var d=xe(e)||"Component",m="function"===typeof a.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";tv.has(d)||(tv.add(d),ys(!1,"Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks",d,m,null!==c?"\n "+c:"",null!==f?"\n "+f:"",null!==p?"\n "+p:""))}}return o&&pr(e,r,i),l}function Lo(e,t){Ya(e,"componentWillMount");var n=t.state;"function"===typeof t.componentWillMount&&t.componentWillMount(),"function"===typeof t.UNSAFE_componentWillMount&&t.UNSAFE_componentWillMount(),Ka(),n!==t.state&&(ys(!1,"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",xe(e)||"Component"),iv.enqueueReplaceState(t,t.state,null))}function Bo(e,t,n,a){var r=t.state;if(Ya(e,"componentWillReceiveProps"),"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,a),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,a),Ka(),t.state!==r){var o=xe(e)||"Component";Jb.has(o)||(Jb.add(o),ys(!1,"%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",o)),iv.enqueueReplaceState(t,t.state,null)}}function Fo(e,t){var n=e.type;Mo(e);var a=e.stateNode,r=e.pendingProps,o=fr(e);a.props=r,a.state=e.memoizedState,a.refs=Ts,a.context=dr(e,o),e.mode&tb&&(hb.recordUnsafeLifecycleWarnings(e,a),hb.recordLegacyContextWarning(e,a)),fg&&hb.recordDeprecationWarnings(e,a);var i=e.updateQueue;null!==i&&(ro(e,i,r,a,t),a.state=e.memoizedState);var l=e.type.getDerivedStateFromProps;"function"===typeof l&&(jo(e,l,r),a.state=e.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(Lo(e,a),null!==(i=e.updateQueue)&&(ro(e,i,r,a,t),a.state=e.memoizedState)),"function"===typeof a.componentDidMount&&(e.effectTag|=Dp)}function Uo(e,t){var n=e.type,a=e.stateNode,r=e.memoizedProps,o=e.pendingProps;a.props=r;var i=a.context,l=fr(e),s=dr(e,l),u=n.getDerivedStateFromProps,c="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;c||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||r===o&&i===s||Bo(e,a,o,s),io();var f=e.memoizedState,p=a.state=f,d=e.updateQueue;if(null!==d&&(ro(e,d,o,a,t),p=e.memoizedState),r===o&&f===p&&!mr()&&!lo())return"function"===typeof a.componentDidMount&&(e.effectTag|=Dp),!1;"function"===typeof u&&(jo(e,u,o),p=e.memoizedState);var m=lo()||Ao(e,r,o,f,p,s);return m?(c||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(Ya(e,"componentWillMount"),"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),Ka()),"function"===typeof a.componentDidMount&&(e.effectTag|=Dp)):("function"===typeof a.componentDidMount&&(e.effectTag|=Dp),e.memoizedProps=o,e.memoizedState=p),a.props=o,a.state=p,a.context=s,m}function Wo(e,t,n){var a=t.type,r=t.stateNode,o=t.memoizedProps,i=t.pendingProps;r.props=o;var l=r.context,s=fr(t),u=dr(t,s),c=a.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof r.getSnapshotBeforeUpdate;f||"function"!==typeof r.UNSAFE_componentWillReceiveProps&&"function"!==typeof r.componentWillReceiveProps||o===i&&l===u||Bo(t,r,i,u),io();var p=t.memoizedState,d=r.state=p,m=t.updateQueue;if(null!==m&&(ro(t,m,i,r,n),d=t.memoizedState),o===i&&p===d&&!mr()&&!lo())return"function"===typeof r.componentDidUpdate&&(o===e.memoizedProps&&p===e.memoizedState||(t.effectTag|=Dp)),"function"===typeof r.getSnapshotBeforeUpdate&&(o===e.memoizedProps&&p===e.memoizedState||(t.effectTag|=Vp)),!1;"function"===typeof c&&(jo(t,c,i),d=t.memoizedState);var h=lo()||Ao(t,o,i,p,d,u);return h?(f||"function"!==typeof r.UNSAFE_componentWillUpdate&&"function"!==typeof r.componentWillUpdate||(Ya(t,"componentWillUpdate"),"function"===typeof r.componentWillUpdate&&r.componentWillUpdate(i,d,u),"function"===typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(i,d,u),Ka()),"function"===typeof r.componentDidUpdate&&(t.effectTag|=Dp),"function"===typeof r.getSnapshotBeforeUpdate&&(t.effectTag|=Vp)):("function"===typeof r.componentDidUpdate&&(o===e.memoizedProps&&p===e.memoizedState||(t.effectTag|=Dp)),"function"===typeof r.getSnapshotBeforeUpdate&&(o===e.memoizedProps&&p===e.memoizedState||(t.effectTag|=Vp)),t.memoizedProps=i,t.memoizedState=d),r.props=i,r.state=d,r.context=u,h}function Ho(e,t,n){var a=n.ref;if(null!==a&&"function"!==typeof a&&"object"!==typeof a){if(e.mode&tb){var r=xe(e)||"Component";uv[r]||(ys(!1,'A string ref, "%s",\xa0has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using createRef() instead.\n%s\n\nLearn more about using refs safely here:\nhttps://fb.me/react-strict-mode-string-ref',a,Te(e)),uv[r]=!0)}if(n._owner){var o=n._owner,i=void 0;if(o){var l=o;l.tag!==nu&&bs(!1,"Stateless function components cannot have refs."),i=l.stateNode}i||bs(!1,"Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.",a);var s=""+a;if(null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===s)return t.ref;var u=function(e){var t=i.refs===Ts?i.refs={}:i.refs;null===e?delete t[s]:t[s]=e};return u._stringRef=s,u}"string"!==typeof a&&bs(!1,"Expected ref to be a function or a string."),n._owner||bs(!1,"Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a functional component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information.",a)}return a}function Vo(e,t){if("textarea"!==e.type){var n="";n=" If you meant to render a collection of children, use an array instead."+(lv()||""),bs(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,n)}}function qo(){var e="Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it."+(lv()||"");fv[e]||(fv[e]=!0,ys(!1,"Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.%s",lv()||""))}function Go(e){function t(t,n){if(e){var a=t.lastEffect;null!==a?(a.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=Bp}}function n(n,a){if(!e)return null;for(var r=a;null!==r;)t(n,r),r=r.sibling;return null}function a(e,t){for(var n=new Map,a=t;null!==a;)null!==a.key?n.set(a.key,a):n.set(a.index,a),a=a.sibling;return n}function r(e,t,n){var a=Nr(e,t,n);return a.index=0,a.sibling=null,a}function o(t,n,a){if(t.index=a,!e)return n;var r=t.alternate;if(null!==r){var o=r.index;return o<n?(t.effectTag=zp,n):o}return t.effectTag=zp,n}function i(t){return e&&null===t.alternate&&(t.effectTag=zp),t}function l(e,t,n,a){if(null===t||t.tag!==iu){var o=zr(n,e.mode,a);return o.return=e,o}var i=r(t,n,a);return i.return=e,i}function s(e,t,n,a){if(null!==t&&t.type===n.type){var o=r(t,n.props,a);return o.ref=Ho(e,t,n),o.return=e,o._debugSource=n._source,o._debugOwner=n._owner,o}var i=Ir(n,e.mode,a);return i.ref=Ho(e,t,n),i.return=e,i}function u(e,t,n,a){if(null===t||t.tag!==ru||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation){var o=Lr(n,e.mode,a);return o.return=e,o}var i=r(t,n.children||[],a);return i.return=e,i}function c(e,t,n,a,o){if(null===t||t.tag!==lu){var i=Ar(n,e.mode,a,o);return i.return=e,i}var l=r(t,n,a);return l.return=e,l}function f(e,t,n){if("string"===typeof t||"number"===typeof t){var a=zr(""+t,e.mode,n);return a.return=e,a}if("object"===typeof t&&null!==t){switch(t.$$typeof){case Lf:var r=Ir(t,e.mode,n);return r.ref=Ho(e,null,t),r.return=e,r;case Bf:var o=Lr(t,e.mode,n);return o.return=e,o}if(dv(t)||Ce(t)){var i=Ar(t,e.mode,n,null);return i.return=e,i}Vo(e,t)}return"function"===typeof t&&qo(),null}function p(e,t,n,a){var r=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==r?null:l(e,t,""+n,a);if("object"===typeof n&&null!==n){switch(n.$$typeof){case Lf:return n.key===r?n.type===Ff?c(e,t,n.props.children,a,r):s(e,t,n,a):null;case Bf:return n.key===r?u(e,t,n,a):null}if(dv(n)||Ce(n))return null!==r?null:c(e,t,n,a,null);Vo(e,n)}return"function"===typeof n&&qo(),null}function d(e,t,n,a,r){if("string"===typeof a||"number"===typeof a){return l(t,e.get(n)||null,""+a,r)}if("object"===typeof a&&null!==a){switch(a.$$typeof){case Lf:var o=e.get(null===a.key?n:a.key)||null;return a.type===Ff?c(t,o,a.props.children,r,a.key):s(t,o,a,r);case Bf:return u(t,e.get(null===a.key?n:a.key)||null,a,r)}if(dv(a)||Ce(a)){return c(t,e.get(n)||null,a,r,null)}Vo(t,a)}return"function"===typeof a&&qo(),null}function m(e,t){if("object"!==typeof e||null===e)return t;switch(e.$$typeof){case Lf:case Bf:pv(e);var n=e.key;if("string"!==typeof n)break;if(null===t){t=new Set,t.add(n);break}if(!t.has(n)){t.add(n);break}ys(!1,"Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.%s",n,lv())}return t}function h(r,i,l,s){for(var u=null,c=0;c<l.length;c++){u=m(l[c],u)}for(var h=null,g=null,b=i,v=0,y=0,w=null;null!==b&&y<l.length;y++){b.index>y?(w=b,b=null):w=b.sibling;var _=p(r,b,l[y],s);if(null===_){null===b&&(b=w);break}e&&b&&null===_.alternate&&t(r,b),v=o(_,v,y),null===g?h=_:g.sibling=_,g=_,b=w}if(y===l.length)return n(r,b),h;if(null===b){for(;y<l.length;y++){var E=f(r,l[y],s);E&&(v=o(E,v,y),null===g?h=E:g.sibling=E,g=E)}return h}for(var k=a(r,b);y<l.length;y++){var C=d(k,r,y,l[y],s);C&&(e&&null!==C.alternate&&k.delete(null===C.key?y:C.key),v=o(C,v,y),null===g?h=C:g.sibling=C,g=C)}return e&&k.forEach(function(e){return t(r,e)}),h}function g(r,i,l,s){var u=Ce(l);"function"!==typeof u&&bs(!1,"An object is not an iterable. This error is likely caused by a bug in React. Please file an issue."),l.entries===u&&(sv||ys(!1,"Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s",lv()),sv=!0);var c=u.call(l);if(c)for(var h=null,g=c.next();!g.done;g=c.next()){var b=g.value;h=m(b,h)}var v=u.call(l);null==v&&bs(!1,"An iterable object provided no iterator.");for(var y=null,w=null,_=i,E=0,k=0,C=null,x=v.next();null!==_&&!x.done;k++,x=v.next()){_.index>k?(C=_,_=null):C=_.sibling;var S=p(r,_,x.value,s);if(null===S){_||(_=C);break}e&&_&&null===S.alternate&&t(r,_),E=o(S,E,k),null===w?y=S:w.sibling=S,w=S,_=C}if(x.done)return n(r,_),y;if(null===_){for(;!x.done;k++,x=v.next()){var T=f(r,x.value,s);null!==T&&(E=o(T,E,k),null===w?y=T:w.sibling=T,w=T)}return y}for(var P=a(r,_);!x.done;k++,x=v.next()){var O=d(P,r,k,x.value,s);null!==O&&(e&&null!==O.alternate&&P.delete(null===O.key?k:O.key),E=o(O,E,k),null===w?y=O:w.sibling=O,w=O)}return e&&P.forEach(function(e){return t(r,e)}),y}function b(e,t,a,o){if(null!==t&&t.tag===iu){n(e,t.sibling);var i=r(t,a,o);return i.return=e,i}n(e,t);var l=zr(a,e.mode,o);return l.return=e,l}function v(e,a,o,i){for(var l=o.key,s=a;null!==s;){if(s.key===l){if(s.tag===lu?o.type===Ff:s.type===o.type){n(e,s.sibling);var u=r(s,o.type===Ff?o.props.children:o.props,i);return u.ref=Ho(e,s,o),u.return=e,u._debugSource=o._source,u._debugOwner=o._owner,u}n(e,s);break}t(e,s),s=s.sibling}if(o.type===Ff){var c=Ar(o.props.children,e.mode,i,o.key);return c.return=e,c}var f=Ir(o,e.mode,i);return f.ref=Ho(e,a,o),f.return=e,f}function y(e,a,o,i){for(var l=o.key,s=a;null!==s;){if(s.key===l){if(s.tag===ru&&s.stateNode.containerInfo===o.containerInfo&&s.stateNode.implementation===o.implementation){n(e,s.sibling);var u=r(s,o.children||[],i);return u.return=e,u}n(e,s);break}t(e,s),s=s.sibling}var c=Lr(o,e.mode,i);return c.return=e,c}function w(e,t,a,r){var o="object"===typeof a&&null!==a&&a.type===Ff&&null===a.key;o&&(a=a.props.children);var l="object"===typeof a&&null!==a;if(l)switch(a.$$typeof){case Lf:return i(v(e,t,a,r));case Bf:return i(y(e,t,a,r))}if("string"===typeof a||"number"===typeof a)return i(b(e,t,""+a,r));if(dv(a))return h(e,t,a,r);if(Ce(a))return g(e,t,a,r);if(l&&Vo(e,a),"function"===typeof a&&qo(),"undefined"===typeof a&&!o)switch(e.tag){case nu:if(e.stateNode.render._isMockFunction)break;case tu:var s=e.type;bs(!1,"%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.",s.displayName||s.name||"Component")}return n(e,t)}return w}function $o(e,t){if(null!==e&&t.child!==e.child&&bs(!1,"Resuming work not yet implemented."),null!==t.child){var n=t.child,a=Nr(n,n.pendingProps,n.expirationTime);for(t.child=a,a.return=t;null!==n.sibling;)n=n.sibling,a=a.sibling=Nr(n,n.pendingProps,n.expirationTime),a.return=t;a.sibling=null}}function Yo(e){if(!rg)return!1;var t=e.stateNode.containerInfo;return bv=Oa(t),gv=e,vv=!0,!0}function Ko(e,t){switch(e.tag){case au:Aa(e.stateNode.containerInfo,t);break;case ou:Ma(e.type,e.memoizedProps,e.stateNode,t)}var n=Dr();n.stateNode=t,n.return=e,n.effectTag=Bp,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Qo(e,t){switch(t.effectTag|=zp,e.tag){case au:var n=e.stateNode.containerInfo;switch(t.tag){case ou:za(n,t.type,t.pendingProps);break;case iu:Da(n,t.pendingProps)}break;case ou:var a=e.type,r=e.memoizedProps,o=e.stateNode;switch(t.tag){case ou:La(a,r,o,t.type,t.pendingProps);break;case iu:Ba(a,r,o,t.pendingProps)}break;default:return}}function Xo(e,t){switch(e.tag){case ou:var n=e.type,a=e.pendingProps,r=Sa(t,n,a);return null!==r&&(e.stateNode=r,!0);case iu:var o=e.pendingProps,i=Ta(t,o);return null!==i&&(e.stateNode=i,!0);default:return!1}}function Jo(e){if(vv){var t=bv;if(!t)return Qo(gv,e),vv=!1,void(gv=e);var n=t;if(!Xo(e,t)){if(!(t=Pa(n))||!Xo(e,t))return Qo(gv,e),vv=!1,void(gv=e);Ko(gv,n)}gv=e,bv=Oa(t)}}function Zo(e,t,n){rg||bs(!1,"Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var a=e.stateNode,r=Na(a,e.type,e.memoizedProps,t,n,e);return e.updateQueue=r,null!==r}function ei(e){rg||bs(!1,"Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var t=e.stateNode,n=e.memoizedProps,a=Ra(t,n,e);if(a){var r=gv;if(null!==r)switch(r.tag){case au:Ia(r.stateNode.containerInfo,t,n);break;case ou:ja(r.type,r.memoizedProps,r.stateNode,t,n)}}return a}function ti(e){for(var t=e.return;null!==t&&t.tag!==ou&&t.tag!==au;)t=t.return;gv=t}function ni(e){if(!rg)return!1;if(e!==gv)return!1;if(!vv)return ti(e),vv=!0,!1;var t=e.type;if(e.tag!==ou||"head"!==t&&"body"!==t&&!da(t,e.memoizedProps))for(var n=bv;n;)Ko(e,n),n=Pa(n);return ti(e),bv=gv?Pa(e.stateNode):null,!0}function ai(){rg&&(gv=null,bv=null,vv=!1)}function ri(e,t,n){oi(e,t,n,t.expirationTime)}function oi(e,t,n,a){t.child=null===e?hv(t,null,n,a):mv(t,e.child,n,a)}function ii(e,t){var n=t.type.render,a=t.pendingProps,r=t.ref;if(mr());else if(t.memoizedProps===a){var o=null!==e?e.ref:null;if(r===o)return Ci(e,t)}var i=void 0;return Af.current=t,Qf.setCurrentPhase("render"),i=n(a,r),Qf.setCurrentPhase(null),ri(e,t,i),Si(t,a),t.child}function li(e,t){var n=t.pendingProps;if(mr());else if(t.memoizedProps===n)return Ci(e,t);return ri(e,t,n),Si(t,n),t.child}function si(e,t){var n=t.pendingProps.children;if(mr());else if(null===n||t.memoizedProps===n)return Ci(e,t);return ri(e,t,n),Si(t,n),t.child}function ui(e,t){var n=t.pendingProps;return dg&&(t.effectTag|=Dp),t.memoizedProps===n?Ci(e,t):(ri(e,t,n.children),Si(t,n),t.child)}function ci(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=Hp)}function fi(e,t){var n=t.type,a=t.pendingProps;if(mr());else if(t.memoizedProps===a)return Ci(e,t);var r=fr(t),o=dr(t,r),i=void 0;return Af.current=t,Qf.setCurrentPhase("render"),i=n(a,o),Qf.setCurrentPhase(null),t.effectTag|=Mp,ri(e,t,i),Si(t,a),t.child}function pi(e,t,n){var a=_r(t),r=void 0;return null===e?null===t.stateNode?(Do(t,t.pendingProps,n),Fo(t,n),r=!0):r=Uo(t,n):r=Wo(e,t,n),di(e,t,r,a,n)}function di(e,t,n,a,r){ci(e,t);var o=(t.effectTag&Wp)!==Ap;if(!n&&!o)return a&&Er(t,!1),Ci(e,t);var i=t.type,l=t.stateNode;Af.current=t;var s=void 0;return!o||ig&&"function"===typeof i.getDerivedStateFromCatch?(Qf.setCurrentPhase("render"),s=l.render(),(sg||ug&&t.mode&tb)&&l.render(),Qf.setCurrentPhase(null)):(s=null,dg&&Io()),t.effectTag|=Mp,o&&(oi(e,t,null,r),t.child=null),oi(e,t,s,r),Ti(t,l.state),Si(t,l.props),a&&Er(t,!0),t.child}function mi(e){var t=e.stateNode;t.pendingContext?yr(e,t.pendingContext,t.pendingContext!==t.context):t.context&&yr(e,t.context,!1),bo(e,t.containerInfo)}function hi(e,t,n){mi(t);var a=t.updateQueue;if(null!==a){var r=t.pendingProps,o=t.memoizedState,i=null!==o?o.element:null;ro(t,a,r,null,n);var l=t.memoizedState,s=l.element;if(s===i)return ai(),Ci(e,t);var u=t.stateNode;return(null===e||null===e.child)&&u.hydrate&&Yo(t)?(t.effectTag|=zp,t.child=hv(t,null,s,n)):(ai(),ri(e,t,s)),t.child}return ai(),Ci(e,t)}function gi(e,t,n){wo(t),null===e&&Jo(t);var a=t.type,r=t.memoizedProps,o=t.pendingProps,i=null!==e?e.memoizedProps:null;if(mr());else if(r===o){var l=t.mode&eb&&ma(a,o);if(l&&(t.expirationTime=Qg),!l||n!==Qg)return Ci(e,t)}var s=o.children;return da(a,o)?s=null:i&&da(a,i)&&(t.effectTag|=Fp),ci(e,t),n!==Qg&&t.mode&eb&&ma(a,o)?(t.expirationTime=Qg,t.memoizedProps=o,null):(ri(e,t,s),Si(t,o),t.child)}function bi(e,t){return null===e&&Jo(t),Si(t,t.pendingProps),null}function vi(e,t,n){null!==e&&bs(!1,"An indeterminate component should never have mounted. This error is likely caused by a bug in React. Please file an issue.");var a=t.type,r=t.pendingProps,o=fr(t),i=dr(t,o),l=void 0;if(a.prototype&&"function"===typeof a.prototype.render){var s=xe(t)||"Unknown";wv[s]||(ys(!1,"The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",s,s),wv[s]=!0)}if(t.mode&tb&&hb.recordLegacyContextWarning(t,null),Af.current=t,l=a(r,i),t.effectTag|=Mp,"object"===typeof l&&null!==l&&"function"===typeof l.render&&void 0===l.$$typeof){var u=t.type;t.tag=nu,t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null;var c=u.getDerivedStateFromProps;"function"===typeof c&&jo(t,c,r);var f=_r(t);return zo(t,l),Fo(t,n),di(e,t,!0,f,n)}t.tag=tu;var p=t.type;if(p&&p.childContextTypes&&ys(!1,"%s(...): childContextTypes cannot be defined on a functional component.",p.displayName||p.name||"Component"),null!==t.ref){var d="",m=Qf.getCurrentFiberOwnerName();m&&(d+="\n\nCheck the render method of `"+m+"`.");var h=m||t._debugID||"",g=t._debugSource;g&&(h=g.fileName+":"+g.lineNumber),Ev[h]||(Ev[h]=!0,ys(!1,"Stateless function components cannot be given refs. Attempts to access this ref will fail.%s%s",d,Qf.getCurrentFiberStackAddendum()))}if("function"===typeof a.getDerivedStateFromProps){var b=xe(t)||"Unknown";_v[b]||(ys(!1,"%s: Stateless functional components do not support getDerivedStateFromProps.",b),_v[b]=!0)}return ri(e,t,l),Si(t,r),t.child}function yi(e,t,n){if(lg){var a=t.pendingProps,r=t.memoizedProps,o=t.memoizedState,i=(t.effectTag&Wp)===Ap,l=!i;if(mr());else if(a===r&&l===o)return Ci(e,t);var s=a.children,u=s(l);return t.memoizedProps=a,t.memoizedState=l,ri(e,t,u),t.child}return null}function wi(e,t,n){bo(t,t.stateNode.containerInfo);var a=t.pendingProps;if(mr());else if(t.memoizedProps===a)return Ci(e,t);return null===e?(t.child=mv(t,null,a,n),Si(t,a)):(ri(e,t,a),Si(t,a)),t.child}function _i(e,t,n,a){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var o=void 0;switch(r.tag){case uu:var i=0|r.stateNode;if(r.type===t&&0!==(i&n)){for(var l=r;null!==l;){var s=l.alternate;if(l.expirationTime===Yg||l.expirationTime>a)l.expirationTime=a,null!==s&&(s.expirationTime===Yg||s.expirationTime>a)&&(s.expirationTime=a);else{if(null===s||!(s.expirationTime===Yg||s.expirationTime>a))break;s.expirationTime=a}l=l.return}o=null}else o=r.child;break;case cu:o=r.type===e.type?null:r.child;break;default:o=r.child}if(null!==o)o.return=r;else for(o=r;null!==o;){if(o===e){o=null;break}var u=o.sibling;if(null!==u){u.return=o.return,o=u;break}o=o.return}r=o}}function Ei(e,t,n){var a=t.type,r=a._context,o=t.pendingProps,i=t.memoizedProps,l=!0;if(mr())l=!1;else if(i===o)return t.stateNode=0,co(t),Ci(e,t);var s=o.value;t.memoizedProps=o;var u=t.type.propTypes;u&&ks(u,o,"prop","Context.Provider",yv);var c=void 0;if(null===i)c=$g;else if(i.value===o.value){if(i.children===o.children&&l)return t.stateNode=0,co(t),Ci(e,t);c=0}else{var f=i.value;if(f===s&&(0!==f||1/f===1/s)||f!==f&&s!==s){if(i.children===o.children&&l)return t.stateNode=0,co(t),Ci(e,t);c=0}else if(c="function"===typeof r._calculateChangedBits?r._calculateChangedBits(f,s):$g,(c&$g)!==c&&ys(!1,"calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s",c),0===(c|=0)){if(i.children===o.children&&l)return t.stateNode=0,co(t),Ci(e,t)}else _i(t,r,c,n)}return t.stateNode=c,co(t),ri(e,t,o.children),t.child}function ki(e,t,n){var a=t.type,r=t.pendingProps,o=t.memoizedProps,i=po(a),l=mo(a);if(mr());else if(0===l&&o===r)return Ci(e,t);t.memoizedProps=r;var s=r.unstable_observedBits;if(void 0!==s&&null!==s||(s=$g),t.stateNode=s,0!==(l&s))_i(t,a,l,n);else if(o===r)return Ci(e,t);var u=r.children;"function"!==typeof u&&ys(!1,"A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var c=void 0;return Af.current=t,Qf.setCurrentPhase("render"),c=u(i),Qf.setCurrentPhase(null),t.effectTag|=Mp,ri(e,t,c),t.child}function Ci(e,t){return qa(t),dg&&Io(),$o(e,t),t.child}function xi(e,t){switch(qa(t),dg&&Io(),t.tag){case au:mi(t);break;case nu:_r(t);break;case ru:bo(t,t.stateNode.containerInfo);break;case cu:co(t)}return null}function Si(e,t){e.memoizedProps=t}function Ti(e,t){e.memoizedState=t}function Pi(e,t,n){if(dg&&t.mode&nb&&xo(t),t.expirationTime===Yg||t.expirationTime>n)return xi(e,t);switch(t.tag){case eu:return vi(e,t,n);case tu:return fi(e,t);case nu:return pi(e,t,n);case au:return hi(e,t,n);case ou:return gi(e,t,n);case iu:return bi(e,t);case du:return yi(e,t,n);case ru:return wi(e,t,n);case fu:return ii(e,t);case lu:return li(e,t);case su:return si(e,t);case pu:return ui(e,t);case cu:return Ei(e,t,n);case uu:return ki(e,t,n);default:bs(!1,"Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.")}}function Oi(e){e.effectTag|=Dp}function Ni(e){e.effectTag|=Hp}function Ri(e,t){for(var n=t.child;null!==n;){if(n.tag===ou||n.tag===iu)ca(e,n.stateNode);else if(n.tag===ru);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)return;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Ii(e,t,n){var a=t.pendingProps;switch(dg&&t.mode&nb&&To(t),t.tag){case tu:return null;case nu:return br(t),null;case au:vo(t),vr(t);var r=t.stateNode;return r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ni(t),t.effectTag&=~zp),kv(t),null;case ou:_o(t);var o=go(),i=t.type;if(null!==e&&null!=t.stateNode){var l=e.memoizedProps,s=t.stateNode,u=yo(),c=pa(s,i,l,a,o,u);Cv(e,t,c,i,l,a,o,u),e.ref!==t.ref&&Ni(t)}else{if(!a)return null===t.stateNode&&bs(!1,"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."),null;var f=yo();if(ni(t))Zo(t,o,f)&&Oi(t);else{var p=ua(i,a,o,f,t);Ri(p,t),fa(p,i,a,o,f)&&Oi(t),t.stateNode=p}null!==t.ref&&Ni(t)}return null;case iu:var d=a;if(e&&null!=t.stateNode){var m=e.memoizedProps;xv(e,t,m,d)}else{if("string"!==typeof d)return null===t.stateNode&&bs(!1,"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue."),null;var h=go(),g=yo();ni(t)?ei(t)&&Oi(t):t.stateNode=ha(d,h,g,t)}return null;case fu:case du:case lu:case su:case pu:return null;case ru:return vo(t),kv(t),null;case cu:return fo(t),null;case uu:return null;case eu:bs(!1,"An indeterminate component should have become determinate before completing. This error is likely caused by a bug in React. Please file an issue.");default:bs(!1,"Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.")}}function ji(e){return!0}function Ai(e){if(!1!==ji(e)){var t=e.error;if(!t||!t.suppressReactErrorLogging){var n=e.componentName,a=e.componentStack,r=e.errorBoundaryName,o=e.errorBoundaryFound,i=e.willRetry,l=n?"The above error occurred in the <"+n+"> component:":"The above error occurred in one of your React components:",s=void 0;s=o&&r?i?"React will try to recreate this component tree from scratch using the error boundary you provided, "+r+".":"This error was initially handled by the error boundary "+r+".\nRecreating the tree from scratch failed so React will unmount the tree.":"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://fb.me/react-error-boundaries to learn more about error boundaries.";var u=""+l+a+"\n\n"+s;console.error(u)}}}function Mi(e,t){var n=t.source,a=t.stack;null===a&&null!==n&&(a=Te(n));var r={componentName:null!==n?xe(n):null,componentStack:null!==a?a:"",error:t.value,errorBoundary:null,errorBoundaryName:null,errorBoundaryFound:!1,willRetry:!1};null!==e&&e.tag===nu&&(r.errorBoundary=e.stateNode,r.errorBoundaryName=xe(e),r.errorBoundaryFound=!0,r.willRetry=!0);try{Ai(r)}catch(e){var o=e&&e.suppressReactErrorLogging;o||console.error(e)}}function zi(e,t){if(Tv(null,Rv,null,e,t),Pv()){wl(e,Ov())}}function Di(e){var t=e.ref;if(null!==t)if("function"===typeof t){if(Tv(null,t,null,null),Pv()){var n=Ov();wl(e,n)}}else t.current=null}function Li(e,t){switch(t.tag){case nu:if(t.effectTag&Vp&&null!==e){var n=e.memoizedProps,a=e.memoizedState;Ya(t,"getSnapshotBeforeUpdate");var r=t.stateNode;r.props=t.memoizedProps,r.state=t.memoizedState;var o=r.getSnapshotBeforeUpdate(n,a),i=Nv;void 0!==o||i.has(t.type)||(i.add(t.type),ys(!1,"%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",xe(t))),r.__reactInternalSnapshotBeforeUpdate=o,Ka()}return;case au:case ou:case iu:case ru:return;default:bs(!1,"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}function Bi(e,t,n,a,r){switch(n.tag){case nu:var o=n.stateNode;if(n.effectTag&Dp)if(null===t)Ya(n,"componentDidMount"),o.props=n.memoizedProps,o.state=n.memoizedState,o.componentDidMount(),Ka();else{var i=t.memoizedProps,l=t.memoizedState;Ya(n,"componentDidUpdate"),o.props=n.memoizedProps,o.state=n.memoizedState,o.componentDidUpdate(i,l,o.__reactInternalSnapshotBeforeUpdate),Ka()}var s=n.updateQueue;return void(null!==s&&(o.props=n.memoizedProps,o.state=n.memoizedState,so(n,s,o,r)));case au:var u=n.updateQueue;if(null!==u){var c=null;if(null!==n.child)switch(n.child.tag){case ou:c=ia(n.child.stateNode);break;case nu:c=n.child.stateNode}so(n,u,c,r)}return;case ou:var f=n.stateNode;if(null===t&&n.effectTag&Dp){ga(f,n.type,n.memoizedProps,n)}return;case iu:case ru:case pu:case du:return;default:bs(!1,"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}function Fi(e){var t=e.ref;if(null!==t){var n=e.stateNode,a=void 0;switch(e.tag){case ou:a=ia(n);break;default:a=n}"function"===typeof t?t(a):(t.hasOwnProperty("current")||ys(!1,"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().%s",xe(e),Te(e)),t.current=a)}}function Ui(e){var t=e.ref;null!==t&&("function"===typeof t?t(null):t.current=null)}function Wi(e){switch("function"===typeof Vr&&Vr(e),e.tag){case nu:Di(e);var t=e.stateNode;return void("function"===typeof t.componentWillUnmount&&zi(e,t));case ou:return void Di(e);case ru:return void(ag?Xi(e):Oh&&qi(e))}}function Hi(e){for(var t=e;;)if(Wi(t),null===t.child||ag&&t.tag===ru){if(t===e)return;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}else t.child.return=t,t=t.child}function Vi(e){e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)}function qi(e){if(Oh){var t=e.stateNode,n=t.containerInfo,a=Rh(n);Ah(n,a)}}function Gi(e){if(Oh)switch(e.tag){case nu:case ou:case iu:return;case au:case ru:var t=e.stateNode,n=t.containerInfo,a=t.pendingChildren;return void Ah(n,a);default:bs(!1,"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}function $i(e){for(var t=e.return;null!==t;){if(Yi(t))return t;t=t.return}bs(!1,"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function Yi(e){return e.tag===ou||e.tag===au||e.tag===ru}function Ki(e){var t=e;e:for(;;){for(;null===t.sibling;){if(null===t.return||Yi(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==ou&&t.tag!==iu;){if(t.effectTag&zp)continue e;if(null===t.child||t.tag===ru)continue e;t.child.return=t,t=t.child}if(!(t.effectTag&zp))return t.stateNode}}function Qi(e){if(ag){var t=$i(e),n=void 0,a=void 0;switch(t.tag){case ou:n=t.stateNode,a=!1;break;case au:case ru:n=t.stateNode.containerInfo,a=!0;break;default:bs(!1,"Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}t.effectTag&Fp&&(va(n),t.effectTag&=~Fp);for(var r=Ki(e),o=e;;){if(o.tag===ou||o.tag===iu)r?a?ka(n,o.stateNode,r):Ea(n,o.stateNode,r):a?_a(n,o.stateNode):wa(n,o.stateNode);else if(o.tag===ru);else if(null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)return;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}}function Xi(e){for(var t=e,n=!1,a=void 0,r=void 0;;){if(!n){var o=t.return;e:for(;;){switch(null===o&&bs(!1,"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue."),o.tag){case ou:a=o.stateNode,r=!1;break e;case au:case ru:a=o.stateNode.containerInfo,r=!0;break e}o=o.return}n=!0}if(t.tag===ou||t.tag===iu)Hi(t),r?xa(a,t.stateNode):Ca(a,t.stateNode);else if(t.tag===ru){if(a=t.stateNode.containerInfo,null!==t.child){t.child.return=t,t=t.child;continue}}else if(Wi(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)return;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,t.tag===ru&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Ji(e){ag?Xi(e):Hi(e),Vi(e)}function Zi(e,t){if(!ag)return void Gi(t);switch(t.tag){case nu:return;case ou:var n=t.stateNode;if(null!=n){var a=t.memoizedProps,r=null!==e?e.memoizedProps:a,o=t.type,i=t.updateQueue;t.updateQueue=null,null!==i&&ba(n,i,o,r,a,t)}return;case iu:null===t.stateNode&&bs(!1,"This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var l=t.stateNode,s=t.memoizedProps;return void ya(l,null!==e?e.memoizedProps:s,s);case au:return;case pu:if(dg){(0,t.memoizedProps.onRender)(t.memoizedProps.id,null===e?"mount":"update",t.actualDuration,t.treeBaseTime,t.actualStartTime,Eo())}return;case du:return;default:bs(!1,"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}function el(e){ag&&va(e.stateNode)}function tl(e,t,n){var a=Jr(n);a.tag=Ib,a.payload={element:null};var r=t.value;return a.callback=function(){Vl(r),Mi(e,t)},a}function nl(e,t,n){var a=Jr(n);a.tag=Ib;var r=e.type.getDerivedStateFromCatch;if(ig&&"function"===typeof r){var o=t.value;a.payload=function(){return r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(a.callback=function(){ig&&"function"===r||pl(this);var n=t.value,a=t.stack;Mi(e,t),this.componentDidCatch(n,{componentStack:null!==a?a:""})}),a}function al(e){var t=Pl(),n=Cl(t,e);eo(e,Jr(n),n),Tl(e,n)}function rl(e,t,n,a,r,o,i){if(n.effectTag|=Gp,n.firstEffect=n.lastEffect=null,lg&&null!==a&&"object"===typeof a&&"function"===typeof a.then){var l=a,s=xr(o),u=s-5e3,c=i-u;c<0&&(c=0);var f=s-i,p=t,d=-1;e:do{if(p.tag===du){var m=p.alternate;if(null!==m&&!0===m.memoizedState){d=0;break e}var h=p.pendingProps.ms;if("number"===typeof h){if(h<=0){d=0;break e}(-1===d||h<d)&&(d=h)}else-1===d&&(d=f)}p=p.return}while(null!==p);var g=d-c;if(o===Qg||g>0){xl(e,l,g,o);var b=function(){Sl(e,o)};return void l.then(b,b)}p=t;do{switch(p.tag){case au:var v=o===Kg?"A synchronous update was suspended, but no fallback UI was provided.":"An update was suspended for longer than the timeout, but no fallback UI was provided.";a=new Error(v);break;case du:if((p.effectTag&Wp)===Ap){p.effectTag|=$p;var y=al.bind(null,p);return void l.then(y,y)}}p=p.return}while(null!==p)}a=uo(a,n);var w=t;do{switch(w.tag){case au:var _=a;w.effectTag|=$p;return void to(w,tl(w,_,o),o);case nu:var E=a,k=w.type,C=w.stateNode;if((w.effectTag&Wp)===Ap&&("function"===typeof k.getDerivedStateFromCatch&&ig||null!==C&&"function"===typeof C.componentDidCatch&&!fl(C))){w.effectTag|=$p;return void to(w,nl(w,E,o),o)}}w=w.return}while(null!==w)}function ol(e,t,n){switch(dg&&e.mode&nb&&To(e),e.tag){case nu:br(e);var a=e.effectTag;return a&$p?(e.effectTag=a&~$p|Wp,e):null;case au:vo(e),vr(e);var r=e.effectTag;return r&$p?(e.effectTag=r&~$p|Wp,e):null;case ou:return _o(e),null;case du:var o=e.effectTag;return o&$p?(e.effectTag=o&~$p|Wp,e):null;case ru:return vo(e),null;case cu:return fo(e),null;default:return null}}function il(e){switch(dg&&e.mode&nb&&(Oo(),To(e)),e.tag){case nu:br(e);break;case au:vo(e),vr(e);break;case ou:_o(e);break;case ru:vo(e);break;case cu:fo(e)}}function ll(){if(null!==Gv)for(var e=Gv.return;null!==e;)il(e),e=e.return;hb.discardPendingWarnings(),ur(),$v=null,Yv=Yg,Kv=-1,Qv=!1,Gv=null,Zv=!1}function sl(){for(;null!==Xv;){Qf.setCurrentFiber(Xv),Fa();var e=Xv.effectTag;if(e&Fp&&el(Xv),e&Hp){var t=Xv.alternate;null!==t&&Ui(t)}switch(e&(zp|Dp|Bp)){case zp:Qi(Xv),Xv.effectTag&=~zp;break;case Lp:Qi(Xv),Xv.effectTag&=~zp;Zi(Xv.alternate,Xv);break;case Dp:Zi(Xv.alternate,Xv);break;case Bp:Ji(Xv)}Xv=Xv.nextEffect}Qf.resetCurrentFiber()}function ul(){for(;null!==Xv;){if(Xv.effectTag&Vp){Fa();Li(Xv.alternate,Xv)}Xv=Xv.nextEffect}}function cl(e,t,n){for(hb.flushPendingUnsafeLifecycleWarnings(),fg&&hb.flushPendingDeprecationWarnings(),pg&&hb.flushLegacyContextWarning();null!==Xv;){var a=Xv.effectTag;if(a&(Dp|Up)){Fa();Bi(e,Xv.alternate,Xv,t,n)}a&Hp&&(Fa(),Fi(Xv));var r=Xv.nextEffect;Xv.nextEffect=null,Xv=r}}function fl(e){return null!==ey&&ey.has(e)}function pl(e){null===ey?ey=new Set([e]):ey.add(e)}function dl(e){qv=!0,Jv=!0,Ja();var t=e.stateNode;t.current===e&&bs(!1,"Cannot commit the same tree as before. This is probably a bug related to the return field. This error is likely caused by a bug in React. Please file an issue.");var n=t.pendingCommitExpirationTime;n===Yg&&bs(!1,"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."),t.pendingCommitExpirationTime=Yg;var a=Pl();Af.current=null;var r=void 0;for(e.effectTag>Mp?null!==e.lastEffect?(e.lastEffect.nextEffect=e,r=e.firstEffect):r=e:r=e.firstEffect,la(t.containerInfo),Xv=r,er();null!==Xv;){var o=!1,i=void 0;Iv(null,ul,null),jv()&&(o=!0,i=Av()),o&&(null===Xv&&bs(!1,"Should have next effect. This error is likely caused by a bug in React. Please file an issue."),wl(Xv,i),null!==Xv&&(Xv=Xv.nextEffect))}for(tr(),dg&&ko(),Xv=r,nr();null!==Xv;){var l=!1,s=void 0;Iv(null,sl,null),jv()&&(l=!0,s=Av()),l&&(null===Xv&&bs(!1,"Should have next effect. This error is likely caused by a bug in React. Please file an issue."),wl(Xv,s),null!==Xv&&(Xv=Xv.nextEffect))}for(ar(),sa(t.containerInfo),t.current=e,Xv=r,rr();null!==Xv;){var u=!1,c=void 0;Iv(null,cl,null,t,a,n),jv()&&(u=!0,c=Av()),u&&(null===Xv&&bs(!1,"Should have next effect. This error is likely caused by a bug in React. Please file an issue."),wl(Xv,c),null!==Xv&&(Xv=Xv.nextEffect))}dg&&(Co(),Po()),Jv=!1,qv=!1,or(),Za(),"function"===typeof Hr&&Hr(e.stateNode),Pb.debugTool&&Pb.debugTool.onCommitWork(e),Gr(t,a,t.current.expirationTime);var f=Kr(t);return f===Yg&&(ey=null),f}function ml(e,t){if(t===Qg||e.expirationTime!==Qg){var n=Yg;switch(e.tag){case au:case nu:var a=e.updateQueue;null!==a&&(n=a.expirationTime)}if(dg&&e.mode&nb){for(var r=e.selfBaseTime,o=e.child;null!==o;)r+=o.treeBaseTime,o.expirationTime!==Yg&&(n===Yg||n>o.expirationTime)&&(n=o.expirationTime),o=o.sibling;e.treeBaseTime=r}else for(var i=e.child;null!==i;)i.expirationTime!==Yg&&(n===Yg||n>i.expirationTime)&&(n=i.expirationTime),i=i.sibling;e.expirationTime=n}}function hl(e){for(;;){var t=e.alternate;Qf.setCurrentFiber(e);var n=e.return,a=e.sibling;if((e.effectTag&Gp)===Ap){var r=Ii(t,e,Yv);if(Ga(e),ml(e,Yv),Qf.resetCurrentFiber(),null!==r)return Ga(e),Pb.debugTool&&Pb.debugTool.onCompleteWork(e),r;if(null!==n&&(n.effectTag&Gp)===Ap){null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect);e.effectTag>Mp&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)}if(Pb.debugTool&&Pb.debugTool.onCompleteWork(e),null!==a)return a;if(null!==n){e=n;continue}return Zv=!0,null}var o=ol(e,Qv,Yv);if(e.effectTag&Wp?$a(e):Ga(e),Qf.resetCurrentFiber(),null!==o)return Ga(e),Pb.debugTool&&Pb.debugTool.onCompleteWork(e),o.effectTag&=qp,o;if(null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=Gp),Pb.debugTool&&Pb.debugTool.onCompleteWork(e),null!==a)return a;if(null===n)return null;e=n}return null}function gl(e){var t=e.alternate;Va(e),Qf.setCurrentFiber(e),cg&&(ny=Br(ny,e));var n=void 0;return dg?(e.mode&nb&&Ro(),n=Pi(t,e,Yv),e.mode&nb&&(No(e),Io())):n=Pi(t,e,Yv),Qf.resetCurrentFiber(),ry&&iy(),Pb.debugTool&&Pb.debugTool.onBeginWork(e),null===n&&(n=hl(e)),Af.current=null,n}function bl(e){if(e){for(;null!==Gv&&!Hl();)Gv=gl(Gv);dg&&So()}else for(;null!==Gv;)Gv=gl(Gv)}function vl(e,t,n){qv&&bs(!1,"renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue."),qv=!0,t===Yv&&e===$v&&null!==Gv||(ll(),$v=e,Yv=t,Kv=-1,Gv=Nr($v.current,null,Yv),e.pendingCommitExpirationTime=Yg);var a=!1;for(Qv=!n||Yv<=Uv,Qa(Gv);;){try{bl(n)}catch(t){if(dg&&Io(),null===Gv)a=!0,Vl(t);else{zb();var r=Gv;cg&&ay(r,t,n),null===Gv&&bs(!1,"Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help us find it.");var o=Gv,i=o.return;if(null===i){a=!0,Vl(t);break}rl(e,i,o,t,Qv,Yv,Wv),Gv=hl(o)}}break}var l=!1;if(qv=!1,a)return Xa(ty,l),ty=null,cr(),null;if(null===Gv){if(Zv){l=!0,Xa(ty,l),ty=null,e.pendingCommitExpirationTime=t;return e.current.alternate}Xa(ty,l),ty=null,Qv&&bs(!1,"Expired work should have completed. This error is likely caused by a bug in React. Please file an issue."),$r(e,t),Kv>=0&&setTimeout(function(){Sl(e,t)},Kv);return ql(Kr(e)),null}return Xa(ty,l),ty=null,null}function yl(e,t,n){qv&&!Jv&&bs(!1,"dispatch: Cannot dispatch during the render phase.");for(var a=e.return;null!==a;){switch(a.tag){case nu:var r=a.type,o=a.stateNode;if("function"===typeof r.getDerivedStateFromCatch||"function"===typeof o.componentDidCatch&&!fl(o)){return eo(a,nl(a,uo(t,e),n),n),void Tl(a,n)}break;case au:return eo(a,tl(a,uo(t,e),n),n),void Tl(a,n)}a=a.return}if(e.tag===au){var i=e;eo(i,tl(i,uo(t,i),n),n),Tl(i,n)}}function wl(e,t){return yl(e,t,Kg)}function _l(e){return Tr(e,5e3,250)}function El(e){var t=void 0;t=500;return Tr(e,t,100)}function kl(){var e=Pl(),t=_l(e);return t<=Hv&&(t=Hv+1),Hv=t}function Cl(e,t){var n=void 0;return n=Vv!==Yg?Vv:qv?Jv?Kg:Yv:t.mode&eb?_y?El(e):_l(e):Kg,_y&&(my===Yg||n>my)&&(my=n),n}function xl(e,t,n,a){n>=0&&Kv<n&&(Kv=n)}function Sl(e,t){Yr(e,t);var n=Kr(e);n!==Yg&&Il(e,n)}function Tl(e,t){if(Ua(),e.tag===nu){var n=e.stateNode;Lv(n)}for(var a=e;null!==a;){if((a.expirationTime===Yg||a.expirationTime>t)&&(a.expirationTime=t),null!==a.alternate&&(a.alternate.expirationTime===Yg||a.alternate.expirationTime>t)&&(a.alternate.expirationTime=t),null===a.return){if(a.tag!==au)return void(e.tag===nu&&Dv(e));var r=a.stateNode;!qv&&Yv!==Yg&&t<Yv&&(ty=e,ll()),qr(r,t);var o=Kr(r);qv&&!Jv&&$v===r||jl(r,o),Cy>ky&&bs(!1,"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.")}a=a.return}}function Pl(){return Wv=Zh()-Fv,Uv=Cr(Wv)}function Ol(e){var t=Vv,n=Pl();Vv=_l(n);try{return e()}finally{Vv=t}}function Nl(e,t,n,a,r){var o=Vv;Vv=Kg;try{return e(t,n,a,r)}finally{Vv=o}}function Rl(e){if(uy!==Yg){if(e>uy)return;null!==cy&&ng(cy)}else Wa();var t=Zh()-Fv,n=xr(e),a=n-t;uy=e,cy=tg(zl,{timeout:a})}function Il(e,t){(e.remainingExpirationTime===Yg||e.remainingExpirationTime<t)&&jl(e,t)}function jl(e,t){if(Al(e,t),!fy)return yy?void(wy&&(py=e,dy=Kg,Ul(e,Kg,!1))):void(t===Kg?Dl():Rl(t))}function Al(e,t){if(null===e.nextScheduledRoot)e.remainingExpirationTime=t,null===sy?(ly=sy=e,e.nextScheduledRoot=e):(sy.nextScheduledRoot=e,sy=e,sy.nextScheduledRoot=ly);else{var n=e.remainingExpirationTime;(n===Yg||t<n)&&(e.remainingExpirationTime=t)}}function Ml(){var e=Yg,t=null;if(null!==sy)for(var n=sy,a=ly;null!==a;){var r=a.remainingExpirationTime;if(r===Yg){if((null===n||null===sy)&&bs(!1,"Should have a previous and last root. This error is likely caused by a bug in React. Please file an issue."),a===a.nextScheduledRoot){a.nextScheduledRoot=null,ly=sy=null;break}if(a===ly){var o=a.nextScheduledRoot;ly=o,sy.nextScheduledRoot=o,a.nextScheduledRoot=null}else{if(a===sy){sy=n,sy.nextScheduledRoot=ly,a.nextScheduledRoot=null;break}n.nextScheduledRoot=a.nextScheduledRoot,a.nextScheduledRoot=null}a=n.nextScheduledRoot}else{if((e===Yg||r<e)&&(e=r,t=a),a===sy)break;n=a,a=a.nextScheduledRoot}}var i=py;null!==i&&i===t&&e===Kg?Cy++:Cy=0,py=t,dy=e}function zl(e){Ll(Yg,!0,e)}function Dl(){Ll(Kg,!1,null)}function Ll(e,t,n){if(vy=n,Ml(),dg&&Oo(),og&&null!==vy){Ha(dy<Pl(),xr(dy))}if(t)for(;null!==py&&dy!==Yg&&(e===Yg||e>=dy)&&(!hy||Pl()>=dy);)Pl(),Ul(py,dy,!hy),Ml();else for(;null!==py&&dy!==Yg&&(e===Yg||e>=dy);)Ul(py,dy,!1),Ml();null!==vy&&(uy=Yg,cy=null),dy!==Yg&&Rl(dy),vy=null,hy=!1,Fl()}function Bl(e,t){fy&&bs(!1,"work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method."),py=e,dy=t,Ul(e,t,!1),Dl(),Fl()}function Fl(){if(Cy=0,null!==Ey){var e=Ey;Ey=null;for(var t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(a){gy||(gy=!0,by=a)}}}if(gy){var a=by;throw by=null,gy=!1,a}}function Ul(e,t,n){if(fy&&bs(!1,"performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue."),fy=!0,n){var a=e.finishedWork;null!==a?Wl(e,a,t):null!==(a=vl(e,t,!0))&&(Hl()?(e.finishedWork=a,dg&&So()):Wl(e,a,t))}else{var r=e.finishedWork;null!==r?Wl(e,r,t):null!==(r=vl(e,t,!1))&&Wl(e,r,t)}fy=!1}function Wl(e,t,n){var a=e.firstBatch;if(null!==a&&a._expirationTime<=n&&(null===Ey?Ey=[a]:Ey.push(a),a._defer))return e.finishedWork=t,void(e.remainingExpirationTime=Yg);e.finishedWork=null,e.remainingExpirationTime=dl(t)}function Hl(){return null!==vy&&(!(vy.timeRemaining()>xy)&&(hy=!0,!0))}function Vl(e){null===py&&bs(!1,"Should be working on a root. This error is likely caused by a bug in React. Please file an issue."),py.remainingExpirationTime=Yg,gy||(gy=!0,by=e)}function ql(e){null===py&&bs(!1,"Should be working on a root. This error is likely caused by a bug in React. Please file an issue."),py.remainingExpirationTime=e}function Gl(e,t){var n=yy;yy=!0;try{return e(t)}finally{yy=n,yy||fy||Dl()}}function $l(e,t){if(yy&&!wy){wy=!0;try{return e(t)}finally{wy=!1}}return e(t)}function Yl(e,t){fy&&bs(!1,"flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.");var n=yy;yy=!0;try{return Nl(e,t)}finally{yy=n,Dl()}}function Kl(e,t,n){if(_y)return e(t,n);yy||fy||my===Yg||(Ll(my,!1,null),my=Yg);var a=_y,r=yy;_y=!0,yy=!0;try{return e(t,n)}finally{_y=a,yy=r,yy||fy||Dl()}}function Ql(){fy||my===Yg||(Ll(my,!1,null),my=Yg)}function Xl(e){var t=yy;yy=!0;try{Nl(e)}finally{yy=t,yy||fy||Ll(Kg,!1,null)}}function Jl(e){if(!e)return Ts;var t=ht(e),n=kr(t);return gr(t)?wr(t,n):n}function Zl(e,t,n,a){"render"!==Qf.phase||null===Qf.current||Sy||(Sy=!0,ys(!1,"Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.\n\nCheck the render method of %s.",xe(Qf.current)||"Unknown"));var r=Jr(n);return r.payload={element:t},a=void 0===a?null:a,null!==a&&("function"!==typeof a&&ys(!1,"render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),r.callback=a),eo(e,r,n),Tl(e,n),n}function es(e,t,n,a,r){var o=t.current;Pb.debugTool&&(null===o.alternate?Pb.debugTool.onMountContainer(t):null===e?Pb.debugTool.onUnmountContainer(t):Pb.debugTool.onUpdateContainer(t));var i=Jl(n);return null===t.context?t.context=i:t.pendingContext=i,Zl(o,e,a,r)}function ts(e){var t=ht(e);void 0===t&&("function"===typeof e.render?bs(!1,"Unable to find node on an unmounted component."):bs(!1,"Argument appears to not be a ReactComponent. Keys: %s",Object.keys(e)));var n=kt(t);return null===n?null:n.stateNode}function ns(e,t,n){return Fr(e,t,n)}function as(e,t,n,a){var r=t.current;return es(e,t,n,Cl(Pl(),r),a)}function rs(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case ou:return ia(t.child.stateNode);default:return t.child.stateNode}}function os(e){var t=Ct(e);return null===t?null:t.stateNode}function is(e){var t=e.findFiberByHostInstance;return Wr(_s({},e,{findHostInstanceByFiber:function(e){var t=kt(e);return null===t?null:t.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}function ls(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Bf,key:null==a?null:""+a,children:e,containerInfo:t,implementation:n}}function ss(e){var t=kl();this._expirationTime=t,this._root=e,this._next=null,this._callbacks=null,this._didComplete=!1,this._hasChildren=!1,this._children=null,this._defer=!0}function us(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function cs(e,t,n){var a=ns(e,t,n);this._internalRoot=a}function fs(e){return!(!e||e.nodeType!==Pf&&e.nodeType!==Rf&&e.nodeType!==If&&(e.nodeType!==Nf||" react-mount-point-unstable "!==e.nodeValue))}function ps(e){return e?e.nodeType===Rf?e.documentElement:e.firstChild:null}function ds(e){var t=ps(e);return!(!t||t.nodeType!==Pf||!t.hasAttribute(op))}function ms(e,t){var n=t||ds(e);if(!n)for(var a=!1,r=void 0;r=e.lastChild;)!a&&r.nodeType===Pf&&r.hasAttribute(op)&&(a=!0,ys(!1,"render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.")),e.removeChild(r);!n||t||Ry||(Ry=!0,mb(!1,"render(): Calling ReactDOM.render() to hydrate server-rendered markup will stop working in React v17. Replace the ReactDOM.render() call with ReactDOM.hydrate() if you want React to attach to the server HTML."));return new cs(e,!1,n)}function hs(e,t,n,a,r){fs(n)||bs(!1,"Target container is not a DOM element."),Py(n);var o=n._reactRootContainer;if(o){if("function"===typeof r){var i=r;r=function(){var e=rs(o._internalRoot);i.call(e)}}null!=e?o.legacy_renderSubtreeIntoContainer(e,t,r):o.render(t,r)}else{if(o=n._reactRootContainer=ms(n,a),"function"===typeof r){var l=r;r=function(){var e=rs(o._internalRoot);l.call(e)}}$l(function(){null!=e?o.legacy_renderSubtreeIntoContainer(e,t,r):o.render(t,r)})}return rs(o._internalRoot)}function gs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return fs(t)||bs(!1,"Target container is not a DOM element."),ls(e,t,null,n)}var bs=n(20),vs=n(1),ys=n(70),ws=n(106),_s=n(16),Es=n(22),ks=n(69),Cs=n(107),xs=n(108),Ss=n(109),Ts=n(21),Ps=n(297),Os=n(299);vs||bs(!1,"ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.");var Ns=function(e,t,n,a,r,o,i,l,s){this._hasCaughtError=!1,this._caughtError=null;var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this._caughtError=e,this._hasCaughtError=!0}};if("undefined"!==typeof window&&"function"===typeof window.dispatchEvent&&"undefined"!==typeof document&&"function"===typeof document.createEvent){var Rs=document.createElement("react");Ns=function(e,t,n,a,r,o,i,l,s){function u(){Rs.removeEventListener(b,u,!1),t.apply(n,d),p=!1}function c(e){m=e.error,h=!0,null===m&&0===e.colno&&0===e.lineno&&(g=!0)}"undefined"===typeof document&&bs(!1,"The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var f=document.createEvent("Event"),p=!0,d=Array.prototype.slice.call(arguments,3),m=void 0,h=!1,g=!1,b="react-"+(e||"invokeguardedcallback");window.addEventListener("error",c),Rs.addEventListener(b,u,!1),f.initEvent(b,!1,!1),Rs.dispatchEvent(f),p?(h?g&&(m=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://fb.me/react-crossorigin-error for more information.")):m=new Error("An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the \"Pause on exceptions\" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue."),this._hasCaughtError=!0,this._caughtError=m):(this._hasCaughtError=!1,this._caughtError=null),window.removeEventListener("error",c)}}var Is=Ns,js={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(e,t,n,a,r,o,i,l,s){Is.apply(js,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,a,r,o,i,l,s){if(js.invokeGuardedCallback.apply(this,arguments),js.hasCaughtError()){var u=js.clearCaughtError();js._hasRethrowError||(js._hasRethrowError=!0,js._rethrowError=u)}},rethrowCaughtError:function(){return As.apply(js,arguments)},hasCaughtError:function(){return js._hasCaughtError},clearCaughtError:function(){if(js._hasCaughtError){var e=js._caughtError;return js._caughtError=null,js._hasCaughtError=!1,e}bs(!1,"clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}},As=function(){if(js._hasRethrowError){var e=js._rethrowError;throw js._rethrowError=null,js._hasRethrowError=!1,e}},Ms=null,zs={},Ds=[],Ls={},Bs={},Fs={},Us={},Ws=Object.freeze({plugins:Ds,eventNameDispatchConfigs:Ls,registrationNameModules:Bs,registrationNameDependencies:Fs,possibleRegistrationNames:Us,injectEventPluginOrder:o,injectEventPluginsByName:i}),Hs=null,Vs=null,qs=null,Gs={injectComponentTree:function(e){Hs=e.getFiberCurrentPropsFromNode,Vs=e.getInstanceFromNode,(qs=e.getNodeFromInstance)&&Vs||ys(!1,"EventPluginUtils.injection.injectComponentTree(...): Injected module is missing getNodeFromInstance or getInstanceFromNode.")}},$s=void 0;$s=function(e){var t=e._dispatchListeners,n=e._dispatchInstances,a=Array.isArray(t),r=a?t.length:t?1:0,o=Array.isArray(n),i=o?n.length:n?1:0;(o!==a||i!==r)&&ys(!1,"EventPluginUtils: Invalid `event`.")};var Ys=null,Ks=function(e,t){e&&(s(e,t),e.isPersistent()||e.constructor.release(e))},Qs=function(e){return Ks(e,!0)},Xs=function(e){return Ks(e,!1)},Js={injectEventPluginOrder:o,injectEventPluginsByName:i},Zs=Object.freeze({injection:Js,getListener:d,runEventsInBatch:h,runExtractedEventsInBatch:g}),eu=0,tu=1,nu=2,au=3,ru=4,ou=5,iu=6,lu=10,su=11,uu=12,cu=13,fu=14,pu=15,du=16,mu=Math.random().toString(36).slice(2),hu="__reactInternalInstance$"+mu,gu="__reactEventHandlers$"+mu,bu=Object.freeze({precacheFiberNode:b,getClosestInstanceFromNode:v,getInstanceFromNode:y,getNodeFromInstance:w,getFiberCurrentPropsFromNode:_,updateFiberProps:E}),vu=Object.freeze({accumulateTwoPhaseDispatches:A,accumulateTwoPhaseDispatchesSkipTarget:M,accumulateEnterLeaveDispatches:z,accumulateDirectDispatches:D}),yu={animationend:F("Animation","AnimationEnd"),animationiteration:F("Animation","AnimationIteration"),animationstart:F("Animation","AnimationStart"),transitionend:F("Transition","TransitionEnd")},wu={},_u={};ws.canUseDOM&&(_u=document.createElement("div").style,"AnimationEvent"in window||(delete yu.animationend.animation,delete yu.animationiteration.animation,delete yu.animationstart.animation),"TransitionEvent"in window||delete yu.transitionend.transition);var Eu=L("abort"),ku=L(U("animationend")),Cu=L(U("animationiteration")),xu=L(U("animationstart")),Su=L("blur"),Tu=L("canplay"),Pu=L("canplaythrough"),Ou=L("cancel"),Nu=L("change"),Ru=L("click"),Iu=L("close"),ju=L("compositionend"),Au=L("compositionstart"),Mu=L("compositionupdate"),zu=L("contextmenu"),Du=L("copy"),Lu=L("cut"),Bu=L("dblclick"),Fu=L("drag"),Uu=L("dragend"),Wu=L("dragenter"),Hu=L("dragexit"),Vu=L("dragleave"),qu=L("dragover"),Gu=L("dragstart"),$u=L("drop"),Yu=L("durationchange"),Ku=L("emptied"),Qu=L("encrypted"),Xu=L("ended"),Ju=L("error"),Zu=L("focus"),ec=L("gotpointercapture"),tc=L("input"),nc=L("invalid"),ac=L("keydown"),rc=L("keypress"),oc=L("keyup"),ic=L("load"),lc=L("loadstart"),sc=L("loadeddata"),uc=L("loadedmetadata"),cc=L("lostpointercapture"),fc=L("mousedown"),pc=L("mousemove"),dc=L("mouseout"),mc=L("mouseover"),hc=L("mouseup"),gc=L("paste"),bc=L("pause"),vc=L("play"),yc=L("playing"),wc=L("pointercancel"),_c=L("pointerdown"),Ec=L("pointermove"),kc=L("pointerout"),Cc=L("pointerover"),xc=L("pointerup"),Sc=L("progress"),Tc=L("ratechange"),Pc=L("reset"),Oc=L("scroll"),Nc=L("seeked"),Rc=L("seeking"),Ic=L("selectionchange"),jc=L("stalled"),Ac=L("submit"),Mc=L("suspend"),zc=L("textInput"),Dc=L("timeupdate"),Lc=L("toggle"),Bc=L("touchcancel"),Fc=L("touchend"),Uc=L("touchmove"),Wc=L("touchstart"),Hc=L(U("transitionend")),Vc=L("volumechange"),qc=L("waiting"),Gc=L("wheel"),$c=[Eu,Tu,Pu,Yu,Ku,Qu,Xu,Ju,sc,uc,lc,bc,vc,yc,Sc,Tc,Nc,Rc,jc,Mc,Dc,Vc,qc],Yc=null,Kc={_root:null,_startText:null,_fallbackText:null},Qc=!1,Xc=10,Jc=["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"],Zc={type:null,target:null,currentTarget:Es.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};_s(Y.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Es.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Es.thatReturnsTrue)},persist:function(){this.isPersistent=Es.thatReturnsTrue},isPersistent:Es.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)Object.defineProperty(this,t,K(t,e[t]));for(var n=0;n<Jc.length;n++)this[Jc[n]]=null;Object.defineProperty(this,"nativeEvent",K("nativeEvent",null)),Object.defineProperty(this,"preventDefault",K("preventDefault",Es)),Object.defineProperty(this,"stopPropagation",K("stopPropagation",Es))}}),Y.Interface=Zc,Y.extend=function(e){function t(){return n.apply(this,arguments)}var n=this,a=function(){};a.prototype=n.prototype;var r=new a;return _s(r,t.prototype),t.prototype=r,t.prototype.constructor=t,t.Interface=_s({},n.Interface,e),t.extend=n.extend,J(t),t},"function"===typeof Proxy&&!Object.isSealed(new Proxy({},{}))&&(Y=new Proxy(Y,{construct:function(e,t){return this.apply(e,Object.create(e.prototype),t)},apply:function(e,t,n){return new Proxy(e.apply(t,n),{set:function(e,t,n){return"isPersistent"===t||e.constructor.Interface.hasOwnProperty(t)||-1!==Jc.indexOf(t)||(Qc||e.isPersistent()||ys(!1,"This synthetic event is reused for performance reasons. If you're seeing this, you're adding a new property in the synthetic event object. The property is never released. See https://fb.me/react-event-pooling for more information."),Qc=!0),e[t]=n,!0}})}})),J(Y);var ef=Y,tf=ef.extend({data:null}),nf=ef.extend({data:null}),af=[9,13,27,32],rf=229,of=ws.canUseDOM&&"CompositionEvent"in window,lf=null;ws.canUseDOM&&"documentMode"in document&&(lf=document.documentMode);var sf=ws.canUseDOM&&"TextEvent"in window&&!lf,uf=ws.canUseDOM&&(!of||lf&&lf>8&&lf<=11),cf=32,ff=String.fromCharCode(cf),pf={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:[ju,rc,zc,gc]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:[Su,ju,ac,rc,oc,fc]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:[Su,Au,ac,rc,oc,fc]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:[Su,Mu,ac,rc,oc,fc]}},df=!1,mf=!1,hf={eventTypes:pf,extractEvents:function(e,t,n,a){var r=re(e,t,n,a),o=le(e,t,n,a);return null===r?o:null===o?r:[r,o]}},gf=null,bf={injectFiberControlledHostComponent:function(e){gf=e}},vf=null,yf=null,wf=bf,_f=Object.freeze({injection:wf,enqueueStateRestore:ue,needsStateRestore:ce,restoreStateIfNeeded:fe}),Ef=function(e,t){return e(t)},kf=function(e,t,n){return e(t,n)},Cf=function(){},xf=!1,Sf={injectRenderer:function(e){Ef=e.batchedUpdates,kf=e.interactiveUpdates,Cf=e.flushInteractiveUpdates}},Tf={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Pf=1,Of=3,Nf=8,Rf=9,If=11,jf=vs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Af=jf.ReactCurrentOwner,Mf=jf.ReactDebugCurrentFrame,zf=function(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")},Df="function"===typeof Symbol&&Symbol.for,Lf=Df?Symbol.for("react.element"):60103,Bf=Df?Symbol.for("react.portal"):60106,Ff=Df?Symbol.for("react.fragment"):60107,Uf=Df?Symbol.for("react.strict_mode"):60108,Wf=Df?Symbol.for("react.profiler"):60114,Hf=Df?Symbol.for("react.provider"):60109,Vf=Df?Symbol.for("react.context"):60110,qf=Df?Symbol.for("react.async_mode"):60111,Gf=Df?Symbol.for("react.forward_ref"):60112,$f=Df?Symbol.for("react.timeout"):60113,Yf="function"===typeof Symbol&&Symbol.iterator,Kf="@@iterator",Qf={current:null,phase:null,resetCurrentFiber:Ne,setCurrentFiber:Re,setCurrentPhase:Ie,getCurrentFiberOwnerName:Pe,getCurrentFiberStackAddendum:Oe},Xf=0,Jf=2,Zf=3,ep=4,tp=5,np=6,ap=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",rp=ap+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",op="data-reactroot",ip=new RegExp("^["+ap+"]["+rp+"]*$"),lp=Object.prototype.hasOwnProperty,sp={},up={},cp={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(function(e){cp[e]=new Le(e,Xf,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],n=e[1];cp[t]=new Le(t,1,!1,n,null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){cp[e]=new Le(e,Jf,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","preserveAlpha"].forEach(function(e){cp[e]=new Le(e,Jf,!1,e,null)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){cp[e]=new Le(e,Zf,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){cp[e]=new Le(e,Zf,!0,e.toLowerCase(),null)}),["capture","download"].forEach(function(e){cp[e]=new Le(e,ep,!1,e.toLowerCase(),null)}),["cols","rows","size","span"].forEach(function(e){cp[e]=new Le(e,np,!1,e.toLowerCase(),null)}),["rowSpan","start"].forEach(function(e){cp[e]=new Le(e,tp,!1,e.toLowerCase(),null)});var fp=/[\-\:]([a-z])/g,pp=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(fp,pp);cp[t]=new Le(t,1,!1,e,null)}),["xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(fp,pp);cp[t]=new Le(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fp,pp);cp[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),cp.tabIndex=new Le("tabIndex",1,!1,"tabindex",null);var dp={checkPropTypes:null},mp={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},hp={value:function(e,t,n){return!e[t]||mp[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}};dp.checkPropTypes=function(e,t,n){ks(hp,t,"prop",e,n)};var gp=Qf.getCurrentFiberOwnerName,bp=Qf.getCurrentFiberStackAddendum,vp=!1,yp=!1,wp=!1,_p=!1,Ep={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:[Su,Nu,Ru,Zu,tc,ac,oc,Ic]}},kp=null,Cp=null,xp=!1;ws.canUseDOM&&(xp=ge("input")&&(!document.documentMode||document.documentMode>9));var Sp={eventTypes:Ep,_isInputEventSupported:xp,extractEvents:function(e,t,n,a){var r=t?w(t):window,o=void 0,i=void 0;if(Ze(r)?o=at:me(r)?xp?o=ft:(o=st,i=lt):ut(r)&&(o=ct),o){var l=o(e,t);if(l){return Je(l,n,a)}}i&&i(e,r,t),e===Su&&pt(r)}},Tp=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"],Pp=ef.extend({view:null,detail:null}),Op={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Np=Pp.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:mt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}}),Rp=Np.extend({pointerId:null,width:null,height:null,pressure:null,tiltX:null,tiltY:null,pointerType:null,isPrimary:null}),Ip={mouseEnter:{registrationName:"onMouseEnter",dependencies:[dc,mc]},mouseLeave:{registrationName:"onMouseLeave",dependencies:[dc,mc]},pointerEnter:{registrationName:"onPointerEnter",dependencies:[kc,Cc]},pointerLeave:{registrationName:"onPointerLeave",dependencies:[kc,Cc]}},jp={eventTypes:Ip,extractEvents:function(e,t,n,a){var r=e===mc||e===Cc,o=e===dc||e===kc;if(r&&(n.relatedTarget||n.fromElement))return null;if(!o&&!r)return null;var i=void 0;if(a.window===a)i=a;else{var l=a.ownerDocument;i=l?l.defaultView||l.parentWindow:window}var s=void 0,u=void 0;if(o){s=t;var c=n.relatedTarget||n.toElement;u=c?v(c):null}else s=null,u=t;if(s===u)return null;var f=void 0,p=void 0,d=void 0,m=void 0;e===dc||e===mc?(f=Np,p=Ip.mouseLeave,d=Ip.mouseEnter,m="mouse"):e!==kc&&e!==Cc||(f=Rp,p=Ip.pointerLeave,d=Ip.pointerEnter,m="pointer");var h=null==s?i:w(s),g=null==u?i:w(u),b=f.getPooled(p,s,n,a);b.type=m+"leave",b.target=h,b.relatedTarget=g;var y=f.getPooled(d,u,n,a);return y.type=m+"enter",y.target=g,y.relatedTarget=h,z(b,y,s,u),[b,y]}},Ap=0,Mp=1,zp=2,Dp=4,Lp=6,Bp=8,Fp=16,Up=32,Wp=64,Hp=128,Vp=256,qp=511,Gp=512,$p=1024,Yp=1,Kp=2,Qp=3,Xp=ef.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jp=ef.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zp=Pp.extend({relatedTarget:null}),ed={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},td={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},nd=Pp.extend({key:Pt,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:mt,charCode:function(e){return"keypress"===e.type?Tt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Tt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ad=Np.extend({dataTransfer:null}),rd=Pp.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:mt}),od=ef.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),id=Np.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ld=[[Su,"blur"],[Ou,"cancel"],[Ru,"click"],[Iu,"close"],[zu,"contextMenu"],[Du,"copy"],[Lu,"cut"],[Bu,"doubleClick"],[Uu,"dragEnd"],[Gu,"dragStart"],[$u,"drop"],[Zu,"focus"],[tc,"input"],[nc,"invalid"],[ac,"keyDown"],[rc,"keyPress"],[oc,"keyUp"],[fc,"mouseDown"],[hc,"mouseUp"],[gc,"paste"],[bc,"pause"],[vc,"play"],[wc,"pointerCancel"],[_c,"pointerDown"],[xc,"pointerUp"],[Tc,"rateChange"],[Pc,"reset"],[Nc,"seeked"],[Ac,"submit"],[Bc,"touchCancel"],[Fc,"touchEnd"],[Wc,"touchStart"],[Vc,"volumeChange"]],sd=[[Eu,"abort"],[ku,"animationEnd"],[Cu,"animationIteration"],[xu,"animationStart"],[Tu,"canPlay"],[Pu,"canPlayThrough"],[Fu,"drag"],[Wu,"dragEnter"],[Hu,"dragExit"],[Vu,"dragLeave"],[qu,"dragOver"],[Yu,"durationChange"],[Ku,"emptied"],[Qu,"encrypted"],[Xu,"ended"],[Ju,"error"],[ec,"gotPointerCapture"],[ic,"load"],[sc,"loadedData"],[uc,"loadedMetadata"],[lc,"loadStart"],[cc,"lostPointerCapture"],[pc,"mouseMove"],[dc,"mouseOut"],[mc,"mouseOver"],[yc,"playing"],[Ec,"pointerMove"],[kc,"pointerOut"],[Cc,"pointerOver"],[Sc,"progress"],[Oc,"scroll"],[Rc,"seeking"],[jc,"stalled"],[Mc,"suspend"],[Dc,"timeUpdate"],[Lc,"toggle"],[Uc,"touchMove"],[Hc,"transitionEnd"],[qc,"waiting"],[Gc,"wheel"]],ud={},cd={};ld.forEach(function(e){Ot(e,!0)}),sd.forEach(function(e){Ot(e,!1)});var fd=[Eu,Ou,Tu,Pu,Iu,Yu,Ku,Qu,Xu,Ju,tc,nc,ic,sc,uc,lc,bc,vc,yc,Sc,Tc,Pc,Nc,Rc,jc,Ac,Mc,Dc,Lc,Vc,qc],pd={eventTypes:ud,isInteractiveTopLevelEventType:function(e){var t=cd[e];return void 0!==t&&!0===t.isInteractive},extractEvents:function(e,t,n,a){var r=cd[e];if(!r)return null;var o=void 0;switch(e){case rc:if(0===Tt(n))return null;case ac:case oc:o=nd;break;case Su:case Zu:o=Zp;break;case Ru:if(2===n.button)return null;case Bu:case fc:case pc:case hc:case dc:case mc:case zu:o=Np;break;case Fu:case Uu:case Wu:case Hu:case Vu:case qu:case Gu:case $u:o=ad;break;case Bc:case Fc:case Uc:case Wc:o=rd;break;case ku:case Cu:case xu:o=Xp;break;case Hc:o=od;break;case Oc:o=Pp;break;case Gc:o=id;break;case Du:case Lu:case gc:o=Jp;break;case ec:case cc:case wc:case _c:case Ec:case kc:case Cc:case xc:o=Rp;break;default:-1===fd.indexOf(e)&&ys(!1,"SimpleEventPlugin: Unhandled event type, `%s`. This warning is likely caused by a bug in React. Please file an issue.",e),o=ef}var i=o.getPooled(r,t,n,a);return A(i),i}},dd=pd.isInteractiveTopLevelEventType,md=10,hd=[],gd=!0,bd=Object.freeze({get _enabled(){return gd},setEnabled:At,isEnabled:Mt,trapBubbledEvent:zt,trapCapturedEvent:Dt,dispatchEvent:Bt}),vd={},yd=0,wd="_reactListenersID"+(""+Math.random()).slice(2),_d=ws.canUseDOM&&"documentMode"in document&&document.documentMode<=11,Ed={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:[Su,zu,Zu,ac,oc,fc,hc,Ic]}},kd=null,Cd=null,xd=null,Sd=!1,Td={eventTypes:Ed,extractEvents:function(e,t,n,a){var r=a.window===a?a.document:a.nodeType===Rf?a:a.ownerDocument;if(!r||!Wt("onSelect",r))return null;var o=t?w(t):window;switch(e){case Zu:(me(o)||"true"===o.contentEditable)&&(kd=o,Cd=t,xd=null);break;case Su:kd=null,Cd=null,xd=null;break;case fc:Sd=!0;break;case zu:case hc:return Sd=!1,nn(n,a);case Ic:if(_d)break;case ac:case oc:return nn(n,a)}return null}};Js.injectEventPluginOrder(Tp),Gs.injectComponentTree(bu),Js.injectEventPluginsByName({SimpleEventPlugin:pd,EnterLeaveEventPlugin:jp,ChangeEventPlugin:Sp,SelectEventPlugin:Td,BeforeInputEventPlugin:hf});var Pd="function"===typeof requestAnimationFrame?requestAnimationFrame:void 0,Od=Date,Nd=setTimeout,Rd=clearTimeout,Id="object"===typeof performance&&"function"===typeof performance.now,jd=void 0;if(Id){var Ad=performance;jd=function(){return Ad.now()}}else jd=function(){return Od.now()};var Md=void 0,zd=void 0;if(ws.canUseDOM){"function"!==typeof Pd&&ys(!1,"React depends on requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills");var Dd="function"===typeof Pd?Pd:function(e){bs(!1,"React depends on requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")},Ld=null,Bd=null,Fd=-1,Ud=!1,Wd=!1,Hd=0,Vd=33,qd=33,Gd={didTimeout:!1,timeRemaining:function(){var e=Hd-jd();return e>0?e:0}},$d=function(e,t){var n=e.scheduledCallback,a=!1;try{n(t),a=!0}finally{zd(e),a||(Ud=!0,window.postMessage(Kd,"*"))}},Yd=function(){if(null!==Ld){var e=jd();if(!(-1===Fd||Fd>e)){for(var t=-1,n=[],a=Ld;null!==a;){var r=a.timeoutTime;-1!==r&&r<=e?n.push(a):-1!==r&&(-1===t||r<t)&&(t=r),a=a.next}if(n.length>0){Gd.didTimeout=!0;for(var o=0,i=n.length;o<i;o++)$d(n[o],Gd)}Fd=t}}},Kd="__reactIdleCallback$"+Math.random().toString(36).slice(2),Qd=function(e){if(e.source===window&&e.data===Kd&&(Ud=!1,null!==Ld)){Yd();for(var t=jd();Hd-t>0&&null!==Ld;){var n=Ld;Gd.didTimeout=!1,$d(n,Gd),t=jd()}null!==Ld&&(Wd||(Wd=!0,Dd(Xd)))}};window.addEventListener("message",Qd,!1);var Xd=function(e){Wd=!1;var t=e-Hd+qd;t<qd&&Vd<qd?(t<8&&(t=8),qd=t<Vd?Vd:t):Vd=t,Hd=e+qd,Ud||(Ud=!0,window.postMessage(Kd,"*"))};Md=function(e,t){var n=-1;null!=t&&"number"===typeof t.timeout&&(n=jd()+t.timeout),(-1===Fd||-1!==n&&n<Fd)&&(Fd=n);var a={scheduledCallback:e,timeoutTime:n,prev:null,next:null};if(null===Ld)Ld=a,Bd=a;else{a.prev=Bd;var r=Bd;null!==r&&(r.next=a),Bd=a}return Wd||(Wd=!0,Dd(Xd)),a},zd=function(e){if(null!==e.prev||Ld===e){var t=e.next,n=e.prev;return e.next=null,e.prev=null,null!==t?null!==n?(n.next=t,void(t.prev=n)):(t.prev=null,void(Ld=t)):null!==n?(n.next=null,void(Bd=n)):(Ld=null,void(Bd=null))}}}else{var Jd=new Map;Md=function(e,t){var n={scheduledCallback:e,timeoutTime:0,next:null,prev:null},a=Nd(function(){e({timeRemaining:function(){return 1/0},didTimeout:!1})});return Jd.set(e,a),n},zd=function(e){var t=e.scheduledCallback,n=Jd.get(t);Jd.delete(e),Rd(n)}}var Zd=!1,em=Qf.getCurrentFiberOwnerName,tm=Qf.getCurrentFiberStackAddendum,nm=void 0;nm=!1;var am=["value","defaultValue"],rm=Qf.getCurrentFiberStackAddendum,om=!1,im="http://www.w3.org/1999/xhtml",lm="http://www.w3.org/1998/Math/MathML",sm="http://www.w3.org/2000/svg",um={html:im,mathml:lm,svg:sm},cm=void 0,fm=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e}(function(e,t){if(e.namespaceURI!==um.svg||"innerHTML"in e)e.innerHTML=t;else{cm=cm||document.createElement("div"),cm.innerHTML="<svg>"+t+"</svg>";for(var n=cm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}}),pm=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Of)return void(n.nodeValue=t)}e.textContent=t},dm={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mm=["Webkit","ms","Moz","O"];Object.keys(dm).forEach(function(e){mm.forEach(function(t){dm[kn(t,e)]=dm[e]})});var hm=Es,gm=/^(?:webkit|moz|o)[A-Z]/,bm=/;\s*$/,vm={},ym={},wm=!1,_m=!1,Em=function(e,t){vm.hasOwnProperty(e)&&vm[e]||(vm[e]=!0,ys(!1,"Unsupported style property %s. Did you mean %s?%s",e,Os(e),t()))},km=function(e,t){vm.hasOwnProperty(e)&&vm[e]||(vm[e]=!0,ys(!1,"Unsupported vendor-prefixed style property %s. Did you mean %s?%s",e,e.charAt(0).toUpperCase()+e.slice(1),t()))},Cm=function(e,t,n){ym.hasOwnProperty(t)&&ym[t]||(ym[t]=!0,ys(!1,'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.%s',e,t.replace(bm,""),n()))},xm=function(e,t,n){wm||(wm=!0,ys(!1,"`NaN` is an invalid value for the `%s` css style property.%s",e,n()))},Sm=function(e,t,n){_m||(_m=!0,ys(!1,"`Infinity` is an invalid value for the `%s` css style property.%s",e,n()))};hm=function(e,t,n){e.indexOf("-")>-1?Em(e,n):gm.test(e)?km(e,n):bm.test(t)&&Cm(e,t,n),"number"===typeof t&&(isNaN(t)?xm(e,0,n):isFinite(t)||Sm(e,0,n))};var Tm=hm,Pm={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Om=_s({menuitem:!0},Pm),Nm="__html",Rm={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"encType",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Im={"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},jm={},Am=new RegExp("^(aria)-["+rp+"]*$"),Mm=new RegExp("^(aria)[A-Z]["+rp+"]*$"),zm=Object.prototype.hasOwnProperty,Dm=!1,Lm=function(){},Bm={},Fm=Object.prototype.hasOwnProperty,Um=/^on./,Wm=/^on[^A-Z]/,Hm=new RegExp("^(aria)-["+rp+"]*$"),Vm=new RegExp("^(aria)[A-Z]["+rp+"]*$");Lm=function(e,t,n,a){if(Fm.call(Bm,t)&&Bm[t])return!0;var r=t.toLowerCase();if("onfocusin"===r||"onfocusout"===r)return ys(!1,"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Bm[t]=!0,!0;if(a){if(Bs.hasOwnProperty(t))return!0;var o=Us.hasOwnProperty(r)?Us[r]:null;if(null!=o)return ys(!1,"Invalid event handler property `%s`. Did you mean `%s`?%s",t,o,Mn()),Bm[t]=!0,!0;if(Um.test(t))return ys(!1,"Unknown event handler property `%s`. It will be ignored.%s",t,Mn()),Bm[t]=!0,!0}else if(Um.test(t))return Wm.test(t)&&ys(!1,"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.%s",t,Mn()),Bm[t]=!0,!0;if(Hm.test(t)||Vm.test(t))return!0;if("innerhtml"===r)return ys(!1,"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Bm[t]=!0,!0;if("aria"===r)return ys(!1,"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Bm[t]=!0,!0;if("is"===r&&null!==n&&void 0!==n&&"string"!==typeof n)return ys(!1,"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.%s",typeof n,Mn()),Bm[t]=!0,!0;if("number"===typeof n&&isNaN(n))return ys(!1,"Received NaN for the `%s` attribute. If this is expected, cast the value to a string.%s",t,Mn()),Bm[t]=!0,!0;var i=De(t),l=null!==i&&i.type===Xf;if(Rm.hasOwnProperty(r)){var s=Rm[r];if(s!==t)return ys(!1,"Invalid DOM property `%s`. Did you mean `%s`?%s",t,s,Mn()),Bm[t]=!0,!0}else if(!l&&t!==r)return ys(!1,"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.%s",t,r,Mn()),Bm[t]=!0,!0;return"boolean"===typeof n&&Me(t,n,i,!1)?(n?ys(!1,'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.%s',n,t,t,n,t,Mn()):ys(!1,'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.%s',n,t,t,n,t,t,t,Mn()),Bm[t]=!0,!0):!!l||(!Me(t,n,i,!1)||(Bm[t]=!0,!1))};var qm=function(e,t,n){var a=[];for(var r in t){Lm(e,r,t[r],n)||a.push(r)}var o=a.map(function(e){return"`"+e+"`"}).join(", ");1===a.length?ys(!1,"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://fb.me/react-attribute-behavior%s",o,e,Mn()):a.length>1&&ys(!1,"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://fb.me/react-attribute-behavior%s",o,e,Mn())},Gm=Qf.getCurrentFiberOwnerName,$m=Qf.getCurrentFiberStackAddendum,Ym=!1,Km=!1,Qm="dangerouslySetInnerHTML",Xm="suppressContentEditableWarning",Jm="suppressHydrationWarning",Zm="autoFocus",eh="children",th="style",nh="__html",ah=um.html,rh=Es.thatReturns(""),oh=void 0,ih=void 0,lh=void 0,sh=void 0,uh=void 0,ch=void 0,fh=void 0,ph=void 0,dh=void 0;rh=$m,oh={time:!0,dialog:!0},lh=function(e,t){In(e,t),An(e,t),zn(e,t,!0)};var mh=/\r\n?/g,hh=/\u0000|\uFFFD/g;ph=function(e){return("string"===typeof e?e:""+e).replace(mh,"\n").replace(hh,"")},sh=function(e,t){if(!Ym){var n=ph(t),a=ph(e);a!==n&&(Ym=!0,ys(!1,'Text content did not match. Server: "%s" Client: "%s"',a,n))}},uh=function(e,t,n){if(!Ym){var a=ph(n),r=ph(t);r!==a&&(Ym=!0,ys(!1,"Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},ch=function(e){if(!Ym){Ym=!0;var t=[];e.forEach(function(e){t.push(e)}),ys(!1,"Extra attributes from the server: %s",t)}},fh=function(e,t){!1===t?ys(!1,"Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.%s",e,e,e,$m()):ys(!1,"Expected `%s` listener to be a function, instead got a value of `%s` type.%s",e,typeof t,$m())},dh=function(e,t){var n=e.namespaceURI===ah?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var gh=Object.freeze({createElement:Wn,createTextNode:Hn,setInitialProperties:Vn,diffProperties:qn,updateProperties:Gn,diffHydratedProperties:Yn,diffHydratedText:Kn,warnForUnmatchedText:Qn,warnForDeletedHydratableElement:Xn,warnForDeletedHydratableText:Jn,warnForInsertedHydratedElement:Zn,warnForInsertedHydratedText:ea,restoreControlledState:ta}),bh=Qf.getCurrentFiberStackAddendum,vh=Es,yh=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],wh=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],_h=wh.concat(["button"]),Eh=["dd","dt","li","option","optgroup","p","rp","rt"],kh={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null},Ch=function(e,t,n){var a=_s({},e||kh),r={tag:t,instance:n};return-1!==wh.indexOf(t)&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),-1!==_h.indexOf(t)&&(a.pTagInButtonScope=null),-1!==yh.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=r,"form"===t&&(a.formTag=r),"a"===t&&(a.aTagInScope=r),"button"===t&&(a.buttonTagInScope=r),"nobr"===t&&(a.nobrTagInScope=r),"p"===t&&(a.pTagInButtonScope=r),"li"===t&&(a.listItemTagAutoclosing=r),"dd"!==t&&"dt"!==t||(a.dlItemTagAutoclosing=r),a},xh=function(e,t){switch(t){case"select":return"option"===e||"optgroup"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":return"head"===e||"body"===e;case"#document":return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===Eh.indexOf(t);case"body":case"caption":case"col":case"colgroup":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t}return!0},Sh=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},Th={};vh=function(e,t,n){n=n||kh;var a=n.current,r=a&&a.tag;null!=t&&(null!=e&&ys(!1,"validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var o=xh(e,r)?null:a,i=o?null:Sh(e,n),l=o||i;if(l){var s=l.tag,u=bh(),c=!!o+"|"+e+"|"+s+"|"+u;if(!Th[c]){Th[c]=!0;var f=e,p="";if("#text"===e?/\S/.test(t)?f="Text nodes":(f="Whitespace text nodes",p=" Make sure you don't have any extra whitespace between tags on each line of your source code."):f="<"+e+">",o){var d="";"table"===s&&"tr"===e&&(d+=" Add a <tbody> to your code to match the DOM tree generated by the browser."),ys(!1,"validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s",f,s,p,d,u)}else ys(!1,"validateDOMNesting(...): %s cannot appear as a descendant of <%s>.%s",f,s,u)}}},vh.updatedAncestorInfo=Ch;var Ph=vh,Oh=!1,Nh=na,Rh=na,Ih=na,jh=na,Ah=na,Mh=Wn,zh=Hn,Dh=Vn,Lh=qn,Bh=Gn,Fh=Yn,Uh=Kn,Wh=Qn,Hh=Xn,Vh=Jn,qh=Zn,Gh=ea,$h=Ph.updatedAncestorInfo,Yh=b,Kh=E,Qh=void 0;Qh="suppressHydrationWarning";var Xh=null,Jh=null,Zh=jd,eg=!0,tg=Md,ng=zd,ag=!0,rg=!0,og=!0,ig=!1,lg=!1,sg=!1,ug=!0,cg=!0,fg=!1,pg=!1,dg=!0,mg="undefined"!==typeof performance&&"function"===typeof performance.mark&&"function"===typeof performance.clearMarks&&"function"===typeof performance.measure&&"function"===typeof performance.clearMeasures,hg=null,gg=null,bg=null,vg=!1,yg=!1,wg=!1,_g=0,Eg=0,kg=!1,Cg=new Set,xg=function(e){return"\u269b "+e},Sg=function(e,t){return(t?"\u26d4 ":"\u269b ")+e+(t?" Warning: "+t:"")},Tg=function(e){performance.mark(xg(e))},Pg=function(e){performance.clearMarks(xg(e))},Og=function(e,t,n){var a=xg(t),r=Sg(e,n);try{performance.measure(r,a)}catch(e){}performance.clearMarks(a),performance.clearMeasures(r)},Ng=function(e,t){return e+" (#"+t+")"},Rg=function(e,t,n){return null===n?e+" ["+(t?"update":"mount")+"]":e+"."+n},Ig=function(e,t){var n=xe(e)||"Unknown",a=e._debugID,r=null!==e.alternate,o=Rg(n,r,t);if(vg&&Cg.has(o))return!1;Cg.add(o);var i=Ng(o,a);return Tg(i),!0},jg=function(e,t){var n=xe(e)||"Unknown",a=e._debugID,r=null!==e.alternate,o=Rg(n,r,t),i=Ng(o,a);Pg(i)},Ag=function(e,t,n){var a=xe(e)||"Unknown",r=e._debugID,o=null!==e.alternate,i=Rg(a,o,t),l=Ng(i,r);Og(i,l,n)},Mg=function(e){switch(e.tag){case au:case ou:case iu:case ru:case lu:case cu:case uu:case su:return!0;default:return!1}},zg=function(){null!==gg&&null!==bg&&jg(bg,gg),bg=null,gg=null,wg=!1},Dg=function(){for(var e=hg;e;)e._debugIsCurrentlyTiming&&Ag(e,null,null),e=e.return},Lg=function(e){null!==e.return&&Lg(e.return),e._debugIsCurrentlyTiming&&Ig(e,null)},Bg=function(){null!==hg&&Lg(hg)},Fg=[],Ug=void 0;Ug=[];var Wg=-1,Hg=void 0;Hg={};var Vg=ir(Ts),qg=ir(!1),Gg=Ts,$g=1073741823,Yg=0,Kg=1,Qg=$g,Xg=10,Jg=2,Zg=0,eb=1,tb=2,nb=4,ab=void 0;ab=!1;try{var rb=Object.preventExtensions({}),ob=new Map([[rb,null]]),ib=new Set([rb]);ob.set(0,0),ib.add(0)}catch(e){ab=!0}var lb=void 0;lb=1;var sb=function(e,t,n,a){return new Pr(e,t,n,a)},ub=null,cb=null,fb=!1,pb=function(){},db=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var r=0,o="Warning: "+e.replace(/%s/g,function(){return n[r++]});"undefined"!==typeof console&&console.warn(o);try{throw new Error(o)}catch(e){}};pb=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,a=Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];db.apply(void 0,[t].concat(a))}};var mb=pb,hb={discardPendingWarnings:function(){},flushPendingDeprecationWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordDeprecationWarnings:function(e,t){},recordUnsafeLifecycleWarnings:function(e,t){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){}},gb={UNSAFE_componentWillMount:"componentDidMount",UNSAFE_componentWillReceiveProps:"static getDerivedStateFromProps",UNSAFE_componentWillUpdate:"componentDidUpdate"},bb=[],vb=[],yb=[],wb=new Map,_b=new Map,Eb=new Set,kb=new Set,Cb=new Set,xb=function(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(", ")};hb.discardPendingWarnings=function(){bb=[],vb=[],yb=[],wb=new Map,_b=new Map},hb.flushPendingUnsafeLifecycleWarnings=function(){wb.forEach(function(e,t){var n=[];if(Object.keys(e).forEach(function(t){var a=e[t];if(a.length>0){var r=new Set;a.forEach(function(e){r.add(xe(e)||"Component"),kb.add(e.type)});var o=t.replace("UNSAFE_",""),i=gb[t],l=xb(r);n.push(o+": Please update the following components to use "+i+" instead: "+l)}}),n.length>0){var a=Te(t);ys(!1,"Unsafe lifecycle methods were found within a strict-mode tree:%s\n\n%s\n\nLearn more about this warning here:\nhttps://fb.me/react-strict-mode-warnings",a,n.join("\n\n"))}}),wb=new Map};var Sb=function(e){for(var t=null,n=e;null!==n;)n.mode&tb&&(t=n),n=n.return;return t};hb.flushPendingDeprecationWarnings=function(){if(bb.length>0){var e=new Set;bb.forEach(function(t){e.add(xe(t)||"Component"),Eb.add(t.type)});var t=xb(e);mb(!1,"componentWillMount is deprecated and will be removed in the next major version. Use componentDidMount instead. As a temporary workaround, you can rename to UNSAFE_componentWillMount.\n\nPlease update the following components: %s\n\nLearn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks",t),bb=[]}if(vb.length>0){var n=new Set;vb.forEach(function(e){n.add(xe(e)||"Component"),Eb.add(e.type)});var a=xb(n);mb(!1,"componentWillReceiveProps is deprecated and will be removed in the next major version. Use static getDerivedStateFromProps instead.\n\nPlease update the following components: %s\n\nLearn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks",a),vb=[]}if(yb.length>0){var r=new Set;yb.forEach(function(e){r.add(xe(e)||"Component"),Eb.add(e.type)});var o=xb(r);mb(!1,"componentWillUpdate is deprecated and will be removed in the next major version. Use componentDidUpdate instead. As a temporary workaround, you can rename to UNSAFE_componentWillUpdate.\n\nPlease update the following components: %s\n\nLearn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks",o),yb=[]}},hb.recordDeprecationWarnings=function(e,t){Eb.has(e.type)||("function"===typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&bb.push(e),"function"===typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&vb.push(e),"function"===typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&yb.push(e))},hb.recordUnsafeLifecycleWarnings=function(e,t){var n=Sb(e);if(null===n)return void ys(!1,"Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");if(!kb.has(e.type)){var a=void 0;wb.has(n)?a=wb.get(n):(a={UNSAFE_componentWillMount:[],UNSAFE_componentWillReceiveProps:[],UNSAFE_componentWillUpdate:[]},wb.set(n,a));var r=[];("function"===typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning||"function"===typeof t.UNSAFE_componentWillMount)&&r.push("UNSAFE_componentWillMount"),("function"===typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning||"function"===typeof t.UNSAFE_componentWillReceiveProps)&&r.push("UNSAFE_componentWillReceiveProps"),("function"===typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning||"function"===typeof t.UNSAFE_componentWillUpdate)&&r.push("UNSAFE_componentWillUpdate"),r.length>0&&r.forEach(function(t){a[t].push(e)})}},hb.recordLegacyContextWarning=function(e,t){var n=Sb(e);if(null===n)return void ys(!1,"Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");if(!Cb.has(e.type)){var a=_b.get(n);(null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"===typeof t.getChildContext)&&(void 0===a&&(a=[],_b.set(n,a)),a.push(e))}},hb.flushLegacyContextWarning=function(){_b.forEach(function(e,t){var n=new Set;e.forEach(function(e){n.add(xe(e)||"Component"),Cb.add(e.type)});var a=xb(n),r=Te(t);ys(!1,"Legacy context API has been detected within a strict-mode tree: %s\n\nPlease update the following components: %s\n\nLearn more about this warning here:\nhttps://fb.me/react-strict-mode-warnings",r,a)})};var Tb={debugTool:null},Pb=Tb,Ob=0,Nb=1,Rb=2,Ib=3,jb=!1,Ab=void 0,Mb=void 0,zb=void 0;Ab=!1,Mb=null,zb=function(){Mb=null};var Db=ir(null),Lb=ir(null),Bb=ir(0),Fb=void 0;Fb={};var Ub={},Wb=ir(Ub),Hb=ir(Ub),Vb=ir(Ub),qb=0,Gb=void 0;Gb=[];var $b=0,Yb=0,Kb=-1,Qb={},Xb=Array.isArray,Jb=void 0,Zb=void 0,ev=void 0,tv=void 0,nv=void 0,av=void 0,rv=void 0;Jb=new Set,Zb=new Set,ev=new Set,tv=new Set,nv=new Set;var ov=new Set;rv=function(e,t){if(null!==e&&"function"!==typeof e){var n=t+"_"+e;ov.has(n)||(ov.add(n),ys(!1,"%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},av=function(e,t){if(void 0===t){var n=xe(e)||"Component";nv.has(n)||(nv.add(n),ys(!1,"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(Qb,"_processChildContext",{enumerable:!1,value:function(){bs(!1,"_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Qb);var iv={isMounted:wt,enqueueSetState:function(e,t,n){var a=ht(e),r=Pl(),o=Cl(r,a),i=Jr(o);i.payload=t,void 0!==n&&null!==n&&(rv(n,"setState"),i.callback=n),eo(a,i,o),Tl(a,o)},enqueueReplaceState:function(e,t,n){var a=ht(e),r=Pl(),o=Cl(r,a),i=Jr(o);i.tag=Nb,i.payload=t,void 0!==n&&null!==n&&(rv(n,"replaceState"),i.callback=n),eo(a,i,o),Tl(a,o)},enqueueForceUpdate:function(e,t){var n=ht(e),a=Pl(),r=Cl(a,n),o=Jr(r);o.tag=Rb,void 0!==t&&null!==t&&(rv(t,"forceUpdate"),o.callback=t),eo(n,o,r),Tl(n,r)}},lv=Qf.getCurrentFiberStackAddendum,sv=void 0,uv=void 0,cv=void 0,fv=void 0,pv=function(e){};sv=!1,uv={},cv={},fv={},pv=function(e){if(null!==e&&"object"===typeof e&&e._store&&!e._store.validated&&null==e.key){"object"!==typeof e._store&&bs(!1,"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."),e._store.validated=!0;var t='Each child in an array or iterator should have a unique "key" prop. See https://fb.me/react-warning-keys for more information.'+(lv()||"");cv[t]||(cv[t]=!0,ys(!1,'Each child in an array or iterator should have a unique "key" prop. See https://fb.me/react-warning-keys for more information.%s',lv()))}};var dv=Array.isArray,mv=Go(!0),hv=Go(!1),gv=null,bv=null,vv=!1,yv=Qf.getCurrentFiberStackAddendum,wv=void 0,_v=void 0,Ev=void 0;wv={},_v={},Ev={};var kv=void 0,Cv=void 0,xv=void 0;if(ag)kv=function(e){},Cv=function(e,t,n,a,r,o,i,l){t.updateQueue=n,n&&Oi(t)},xv=function(e,t,n,a){n!==a&&Oi(t)};else if(Oh){var Sv=function(e,t){for(var n=t.child;null!==n;){if(n.tag===ou||n.tag===iu)Ih(e,n.stateNode);else if(n.tag===ru);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)return;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};kv=function(e){var t=e.stateNode;if(null===e.firstEffect);else{var n=t.containerInfo,a=Rh(n);Sv(a,e),t.pendingChildren=a,Oi(e),jh(n,a)}},Cv=function(e,t,n,a,r,o,i,l){var s=null===t.firstEffect,u=e.stateNode;if(s&&null===n)t.stateNode=u;else{var c=t.stateNode,f=Nh(u,n,a,r,o,t,s,c);fa(f,a,o,i,l)&&Oi(t),t.stateNode=f,s?Oi(t):Ri(f,t)}},xv=function(e,t,n,a){if(n!==a){var r=go(),o=yo();t.stateNode=ha(a,r,o,t),Oi(t)}}}else kv=function(e){},Cv=function(e,t,n,a,r,o,i,l){},xv=function(e,t,n,a){};var Tv=js.invokeGuardedCallback,Pv=js.hasCaughtError,Ov=js.clearCaughtError,Nv=null;Nv=new Set;var Rv=function(e,t){Ya(e,"componentWillUnmount"),t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount(),Ka()},Iv=js.invokeGuardedCallback,jv=js.hasCaughtError,Av=js.clearCaughtError,Mv=void 0,zv=void 0,Dv=void 0,Lv=void 0;Mv=!1,zv=!1;var Bv={};Dv=function(e){var t=xe(e)||"ReactClass";Bv[t]||(ys(!1,"Can't call setState (or forceUpdate) on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.%s",Te(e)),Bv[t]=!0)},Lv=function(e){switch(Qf.phase){case"getChildContext":if(zv)return;ys(!1,"setState(...): Cannot call setState() inside getChildContext()"),zv=!0;break;case"render":if(Mv)return;ys(!1,"Cannot update during an existing state transition (such as within `render` or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to `componentWillMount`."),Mv=!0}};var Fv=Zh(),Uv=Cr(0),Wv=Fv,Hv=0,Vv=Yg,qv=!1,Gv=null,$v=null,Yv=Yg,Kv=-1,Qv=!1,Xv=null,Jv=!1,Zv=!1,ey=null,ty=null,ny=void 0,ay=void 0,ry=void 0,oy=void 0,iy=void 0;cg&&(ny=null,ry=!1,oy=null,ay=function(e,t,n){if(null===t||"object"!==typeof t||"function"!==typeof t.then){if(null===ny)return void ys(!1,"Could not replay rendering after an error. This is likely a bug in React. Please file an issue.");switch(Br(e,ny),e.tag){case au:vo(e),vr(e);break;case ou:_o(e);break;case nu:br(e);break;case ru:vo(e);break;case cu:fo(e)}ry=!0,oy=t,Iv(null,bl,null,n),ry=!1,oy=null,jv()?(Av(),dg&&(e.mode&nb&&To(e),Io())):Gv=e}},iy=function(){throw oy});var ly=null,sy=null,uy=Yg,cy=void 0,fy=!1,py=null,dy=Yg,my=Yg,hy=!1,gy=!1,by=null,vy=null,yy=!1,wy=!1,_y=!1,Ey=null,ky=1e3,Cy=0,xy=1,Sy=void 0;Sy=!1;var Ty=Object.freeze({updateContainerAtExpirationTime:es,createContainer:ns,updateContainer:as,flushRoot:Bl,requestWork:jl,computeUniqueAsyncExpiration:kl,batchedUpdates:Gl,unbatchedUpdates:$l,deferredUpdates:Ol,syncUpdates:Nl,interactiveUpdates:Kl,flushInteractiveUpdates:Ql,flushControlled:Xl,flushSync:Yl,getPublicRootInstance:rs,findHostInstance:ts,findHostInstanceWithNoPortals:os,injectIntoDevTools:is}),Py=void 0,Oy=void 0,Ny=!1;"function"===typeof Map&&null!=Map.prototype&&"function"===typeof Map.prototype.forEach&&"function"===typeof Set&&null!=Set.prototype&&"function"===typeof Set.prototype.clear&&"function"===typeof Set.prototype.forEach||ys(!1,"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),Py=function(e){if(e._reactRootContainer&&e.nodeType!==Nf){var t=os(e._reactRootContainer._internalRoot.current);t&&t.parentNode!==e&&ys(!1,"render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,a=ps(e);!(!a||!y(a))&&!n&&ys(!1,"render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===Pf&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&ys(!1,"render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")},Oy=function(e,t){null!==e&&"function"!==typeof e&&ys(!1,"%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)},wf.injectFiberControlledHostComponent(gh),ss.prototype.render=function(e){this._defer||bs(!1,"batch.render: Cannot render a batch that already committed."),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,a=new us;return es(e,t,null,n,a._onCommit),a},ss.prototype.then=function(e){if(this._didComplete)return void e();var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)},ss.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||bs(!1,"batch.commit: Cannot commit a batch multiple times."),!this._hasChildren)return this._next=null,void(this._defer=!1);var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var a=null,r=t;r!==this;)a=r,r=r._next;null===a&&bs(!1,"batch.commit: Cannot commit a batch multiple times."),a._next=r._next,this._next=t,t=e.firstBatch=this}this._defer=!1,Bl(e,n);var o=this._next;this._next=null,null!==(t=e.firstBatch=o)&&t._hasChildren&&t.render(t._children)},ss.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];n()}}},us.prototype.then=function(e){if(this._didCommit)return void e();var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)},us.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!==typeof n&&bs(!1,"Invalid argument passed as callback. Expected a function. Instead received: %s",n),n()}}},cs.prototype.render=function(e,t){var n=this._internalRoot,a=new us;return t=void 0===t?null:t,Oy(t,"render"),null!==t&&a.then(t),as(e,n,null,a._onCommit),a},cs.prototype.unmount=function(e){var t=this._internalRoot,n=new us;return e=void 0===e?null:e,Oy(e,"render"),null!==e&&n.then(e),as(null,t,null,n._onCommit),n},cs.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var a=this._internalRoot,r=new us;return n=void 0===n?null:n,Oy(n,"render"),null!==n&&r.then(n),as(t,a,e,r._onCommit),r},cs.prototype.createBatch=function(){var e=new ss(this),t=e._expirationTime,n=this._internalRoot,a=n.firstBatch;if(null===a)n.firstBatch=e,e._next=null;else{for(var r=null,o=a;null!==o&&o._expirationTime<=t;)r=o,o=o._next;e._next=o,null!==r&&(r._next=e)}return e},Sf.injectRenderer(Ty);var Ry=!1,Iy={createPortal:gs,findDOMNode:function(e){var t=Af.current;if(null!==t&&null!==t.stateNode){t.stateNode._warnedAboutRefsInRender||ys(!1,"%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",xe(t)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}return null==e?null:e.nodeType===Pf?e:ts(e)},hydrate:function(e,t,n){return hs(null,e,t,!0,n)},render:function(e,t,n){return hs(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,a){return null!=e&>(e)||bs(!1,"parentComponent must be a valid React Component"),hs(e,t,n,!1,a)},unmountComponentAtNode:function(e){if(fs(e)||bs(!1,"unmountComponentAtNode(...): Target container is not a DOM element."),e._reactRootContainer){var t=ps(e);return t&&!y(t)&&ys(!1,"unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."),$l(function(){hs(null,null,e,!1,function(){e._reactRootContainer=null})}),!0}var n=ps(e),a=!(!n||!y(n)),r=1===e.nodeType&&fs(e.parentNode)&&!!e.parentNode._reactRootContainer;return a&&ys(!1,"unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",r?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."),!1},unstable_createPortal:function(){return Ny||(Ny=!0,mb(!1,'The ReactDOM.unstable_createPortal() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactDOM.createPortal() instead. It has the exact same API, but without the "unstable_" prefix.')),gs.apply(void 0,arguments)},unstable_batchedUpdates:Gl,unstable_deferredUpdates:Ol,unstable_interactiveUpdates:Kl,flushSync:Yl,unstable_flushControlled:Xl,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:Zs,EventPluginRegistry:Ws,EventPropagators:vu,ReactControlledComponent:_f,ReactDOMComponentTree:bu,ReactDOMEventListener:bd}};if(Iy.unstable_createRoot=function(e,t){return new cs(e,!0,null!=t&&!0===t.hydrate)},!is({findFiberByHostInstance:v,bundleType:1,version:"16.4.2",rendererPackageName:"react-dom"})&&ws.canUseDOM&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)){var jy=window.location.protocol;/^(https?|file):$/.test(jy)&&console.info("%cDownload the React DevTools for a better development experience: https://fb.me/react-devtools"+("file:"===jy?"\nYou might need to use a local HTTP server (instead of file://): https://fb.me/react-devtools-faq":""),"font-weight:bold")}var Ay=Object.freeze({default:Iy}),My=Ay&&Iy||Ay,zy=My.default?My.default:My;e.exports=zy}()}).call(t,n(2))},function(e,t,n){"use strict";function a(e){return r(e).replace(o,"-ms-")}var r=n(298),o=/^ms-/;e.exports=a},function(e,t,n){"use strict";function a(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=a},function(e,t,n){"use strict";function a(e){return r(e.replace(o,"ms-"))}var r=n(300),o=/^-ms-/;e.exports=a},function(e,t,n){"use strict";function a(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=a},function(e,t,n){"use strict";t.__esModule=!0;var a={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0};t.default=a},function(e,t,n){(function(t){function n(e,t,n){function r(t){var n=h,a=g;return h=g=void 0,C=t,v=e.apply(a,n)}function o(e){return C=e,y=setTimeout(c,t),x?r(e):v}function s(e){var n=e-k,a=e-C,r=t-n;return S?_(r,b-a):r}function u(e){var n=e-k,a=e-C;return void 0===k||n>=t||n<0||S&&a>=b}function c(){var e=E();if(u(e))return f(e);y=setTimeout(c,s(e))}function f(e){return y=void 0,T&&h?r(e):(h=g=void 0,v)}function p(){void 0!==y&&clearTimeout(y),C=0,h=k=g=y=void 0}function d(){return void 0===y?v:f(E())}function m(){var e=E(),n=u(e);if(h=arguments,g=this,k=e,n){if(void 0===y)return o(k);if(S)return y=setTimeout(c,t),r(k)}return void 0===y&&(y=setTimeout(c,t)),v}var h,g,b,v,y,k,C=0,x=!1,S=!1,T=!0;if("function"!=typeof e)throw new TypeError(l);return t=i(t)||0,a(n)&&(x=!!n.leading,S="maxWait"in n,b=S?w(i(n.maxWait)||0,t):b,T="trailing"in n?!!n.trailing:T),m.cancel=p,m.flush=d,m}function a(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function o(e){return"symbol"==typeof e||r(e)&&y.call(e)==u}function i(e){if("number"==typeof e)return e;if(o(e))return s;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(c,"");var n=p.test(e);return n||d.test(e)?m(e.slice(2),n?2:8):f.test(e)?s:+e}var l="Expected a function",s=NaN,u="[object Symbol]",c=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,d=/^0o[0-7]+$/i,m=parseInt,h="object"==typeof t&&t&&t.Object===Object&&t,g="object"==typeof self&&self&&self.Object===Object&&self,b=h||g||Function("return this")(),v=Object.prototype,y=v.toString,w=Math.max,_=Math.min,E=function(){return b.Date.now()};e.exports=n}).call(t,n(45))},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}t.__esModule=!0,t.Track=void 0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s=n(1),u=a(s),c=n(0),f=a(c),p=n(41),d=function(e){var t,n,a,r,o;return o=e.rtl?e.slideCount-1-e.index:e.index,a=o<0||o>=e.slideCount,e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount===0,o>e.currentSlide-r-1&&o<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":a,"slick-current":o===e.currentSlide}},m=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase,t.WebkitTransition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase),t},h=function(e,t){return e.key||t},g=function(e){var t,n=[],a=[],r=[],o=u.default.Children.count(e.children),i=(0,p.lazyStartIndex)(e),s=(0,p.lazyEndIndex)(e);return u.default.Children.forEach(e.children,function(c,g){var b=void 0,v={message:"children",index:g,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};b=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(g)>=0?c:u.default.createElement("div",null);var y=m(l({},e,{index:g})),w=b.props.className||"",_=d(l({},e,{index:g}));if(n.push(u.default.cloneElement(b,{key:"original"+h(b,g),"data-index":g,className:(0,f.default)(_,w),tabIndex:"-1","aria-hidden":!_["slick-active"],style:l({outline:"none"},b.props.style||{},y),onClick:function(t){b.props&&b.props.onClick&&b.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(v)}})),e.infinite&&!1===e.fade){var E=o-g;E<=(0,p.getPreClones)(e)&&o!==e.slidesToShow&&(t=-E,t>=i&&(b=c),_=d(l({},e,{index:t})),a.push(u.default.cloneElement(b,{key:"precloned"+h(b,t),"data-index":t,tabIndex:"-1",className:(0,f.default)(_,w),"aria-hidden":!_["slick-active"],style:l({},b.props.style||{},y),onClick:function(t){b.props&&b.props.onClick&&b.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(v)}}))),o!==e.slidesToShow&&(t=o+g,t<s&&(b=c),_=d(l({},e,{index:t})),r.push(u.default.cloneElement(b,{key:"postcloned"+h(b,t),"data-index":t,tabIndex:"-1",className:(0,f.default)(_,w),"aria-hidden":!_["slick-active"],style:l({},b.props.style||{},y),onClick:function(t){b.props&&b.props.onClick&&b.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(v)}})))}}),e.rtl?a.concat(n,r).reverse():a.concat(n,r)};t.Track=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=g(this.props),t=this.props,n=t.onMouseEnter,a=t.onMouseOver,r=t.onMouseLeave,o={onMouseEnter:n,onMouseOver:a,onMouseLeave:r};return u.default.createElement("div",l({className:"slick-track",style:this.props.trackStyle},o),e)},t}(u.default.PureComponent)},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}t.__esModule=!0,t.Dots=void 0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s=n(1),u=a(s),c=n(0),f=a(c),p=function(e){return e.infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1};t.Dots=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.clickHandler=function(e,t){t.preventDefault(),this.props.clickHandler(e)},t.prototype.render=function(){var e=this,t=p({slideCount:this.props.slideCount,slidesToScroll:this.props.slidesToScroll,slidesToShow:this.props.slidesToShow,infinite:this.props.infinite}),n=this.props,a=n.onMouseEnter,r=n.onMouseOver,o=n.onMouseLeave,i={onMouseEnter:a,onMouseOver:r,onMouseLeave:o},s=Array.apply(null,Array(t+1).join("0").split("")).map(function(t,n){var a=n*e.props.slidesToScroll,r=n*e.props.slidesToScroll+(e.props.slidesToScroll-1),o=(0,f.default)({"slick-active":e.props.currentSlide>=a&&e.props.currentSlide<=r}),i={message:"dots",index:n,slidesToScroll:e.props.slidesToScroll,currentSlide:e.props.currentSlide},l=e.clickHandler.bind(e,i);return u.default.createElement("li",{key:n,className:o},u.default.cloneElement(e.props.customPaging(n),{onClick:l}))});return u.default.cloneElement(this.props.appendDots(s),l({className:this.props.dotsClass},i))},t}(u.default.PureComponent)},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}t.__esModule=!0,t.NextArrow=t.PrevArrow=void 0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s=n(1),u=a(s),c=n(0),f=a(c),p=n(41);t.PrevArrow=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.clickHandler=function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)},t.prototype.render=function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,f.default)(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?u.default.cloneElement(this.props.prevArrow,l({},n,a)):u.default.createElement("button",l({key:"0",type:"button"},n)," ","Previous")},t}(u.default.PureComponent),t.NextArrow=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.clickHandler=function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)},t.prototype.render=function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,p.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,f.default)(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?u.default.cloneElement(this.props.nextArrow,l({},n,a)):u.default.createElement("button",l({key:"1",type:"button"},n)," ","Next")},t}(u.default.PureComponent)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function n(e){return parseFloat(e)||0}function a(e){for(var t=[],a=arguments.length-1;a-- >0;)t[a]=arguments[a+1];return t.reduce(function(t,a){return t+n(e["border-"+a+"-width"])},0)}function r(e){for(var t=["top","right","bottom","left"],a={},r=0,o=t;r<o.length;r+=1){var i=o[r],l=e["padding-"+i];a[i]=n(l)}return a}function o(e){var t=e.getBBox();return c(0,0,t.width,t.height)}function i(e){var t=e.clientWidth,o=e.clientHeight;if(!t&&!o)return E;var i=_(e).getComputedStyle(e),s=r(i),u=s.left+s.right,f=s.top+s.bottom,p=n(i.width),d=n(i.height);if("border-box"===i.boxSizing&&(Math.round(p+u)!==t&&(p-=a(i,"left","right")+u),Math.round(d+f)!==o&&(d-=a(i,"top","bottom")+f)),!l(e)){var m=Math.round(p+u)-t,h=Math.round(d+f)-o;1!==Math.abs(m)&&(p-=m),1!==Math.abs(h)&&(d-=h)}return c(s.left,s.top,p,d)}function l(e){return e===_(e).document.documentElement}function s(e){return p?k(e)?o(e):i(e):E}function u(e){var t=e.x,n=e.y,a=e.width,r=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,i=Object.create(o.prototype);return w(i,{x:t,y:n,width:a,height:r,top:n,right:t+a,bottom:r+n,left:t}),i}function c(e,t,n,a){return{x:e,y:t,width:n,height:a}}var f=function(){function e(e,t){var n=-1;return e.some(function(e,a){return e[0]===t&&(n=a,!0)}),n}return"undefined"!==typeof Map?Map:function(){function t(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},t.prototype.get=function(t){var n=e(this.__entries__,t),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(t,n){var a=e(this.__entries__,t);~a?this.__entries__[a][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,a=e(n,t);~a&&n.splice(a,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){var n=this;void 0===t&&(t=null);for(var a=0,r=n.__entries__;a<r.length;a+=1){var o=r[a];e.call(t,o[1],o[0])}},Object.defineProperties(t.prototype,n),t}()}(),p="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,d=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),m=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(d):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),h=2,g=function(e,t){function n(){o&&(o=!1,e()),i&&r()}function a(){m(n)}function r(){var e=Date.now();if(o){if(e-l<h)return;i=!0}else o=!0,i=!1,setTimeout(a,t);l=e}var o=!1,i=!1,l=0;return r},b=["top","right","bottom","left","width","height","size","weight"],v="undefined"!==typeof MutationObserver,y=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=g(this.refresh.bind(this),20)};y.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},y.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},y.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},y.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},y.prototype.connect_=function(){p&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),v?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},y.prototype.disconnect_=function(){p&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},y.prototype.onTransitionEnd_=function(e){var t=e.propertyName;void 0===t&&(t=""),b.some(function(e){return!!~t.indexOf(e)})&&this.refresh()},y.getInstance=function(){return this.instance_||(this.instance_=new y),this.instance_},y.instance_=null;var w=function(e,t){for(var n=0,a=Object.keys(t);n<a.length;n+=1){var r=a[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},_=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||d},E=c(0,0,0,0),k=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof _(e).SVGGraphicsElement}:function(e){return e instanceof _(e).SVGElement&&"function"===typeof e.getBBox}}(),C=function(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=c(0,0,0,0),this.target=e};C.prototype.isActive=function(){var e=s(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},C.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e};var x=function(e,t){var n=u(t);w(this,{target:e,contentRect:n})},S=function(e,t,n){if(this.activeObservations_=[],this.observations_=new f,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n};S.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof _(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new C(e)),this.controller_.addObserver(this),this.controller_.refresh())}},S.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof _(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},S.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},S.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},S.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new x(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},S.prototype.clearActive=function(){this.activeObservations_.splice(0)},S.prototype.hasActive=function(){return this.activeObservations_.length>0};var T="undefined"!==typeof WeakMap?new WeakMap:new f,P=function(e){if(!(this instanceof P))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=y.getInstance(),n=new S(e,t,this);T.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){P.prototype[e]=function(){return(t=T.get(this))[e].apply(t,arguments);var t}});var O=function(){return"undefined"!==typeof d.ResizeObserver?d.ResizeObserver:P}();t.default=O}.call(t,n(45))},function(e,t,n){var a=n(308),r=function(e){return/[height|width]$/.test(e)},o=function(e){var t="",n=Object.keys(e);return n.forEach(function(o,i){var l=e[o];o=a(o),r(o)&&"number"===typeof l&&(l+="px"),t+=!0===l?o:!1===l?"not "+o:"("+o+": "+l+")",i<n.length-1&&(t+=" and ")}),t},i=function(e){var t="";return"string"===typeof e?e:e instanceof Array?(e.forEach(function(n,a){t+=o(n),a<e.length-1&&(t+=", ")}),t):o(e)};e.exports=i},function(e,t){var n=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()};e.exports=n},function(e,t,n){"use strict";t.__esModule=!0;var a=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(a),o={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return r.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return r.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0};t.default=o},function(e,t,n){var a=n(311);e.exports=new a},function(e,t,n){function a(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}var r=n(312),o=n(110),i=o.each,l=o.isFunction,s=o.isArray;a.prototype={constructor:a,register:function(e,t,n){var a=this.queries,o=n&&this.browserIsIncapable;return a[e]||(a[e]=new r(e,o)),l(t)&&(t={match:t}),s(t)||(t=[t]),i(t,function(t){l(t)&&(t={match:t}),a[e].addHandler(t)}),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=a},function(e,t,n){function a(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}var r=n(313),o=n(110).each;a.prototype={constuctor:a,addHandler:function(e){var t=new r(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;o(t,function(n,a){if(n.equals(e))return n.destroy(),!t.splice(a,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){o(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";o(this.handlers,function(t){t[e]()})}},e.exports=a},function(e,t){function n(e){this.options=e,!e.deferSetup&&this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(3),i=n(315),l=(n.n(i),n(316)),s=(n.n(l),n(317)),u=n(318),c=(n(111),wp.i18n.__),f=wp.blocks.registerBlockType,p=wp.editor.InnerBlocks;f("uagb/section",{title:uagb_blocks_info.blocks["uagb/section"].title,description:uagb_blocks_info.blocks["uagb/section"].description,icon:o.a.section,category:uagb_blocks_info.category,keywords:[c("section"),c("uagb")],attributes:s.a,edit:u.a,getEditWrapperProps:function(e){var t=e.align,n=e.contentWidth;if(("left"===t||"right"===t||"wide"===t||"full"===t)&&"full_width"==n)return{"data-align":t}},save:function(e){var t=(e.attributes,e.className),n=e.attributes,a=n.block_id,o=n.tag,i=n.backgroundType,l=n.backgroundVideo,s=n.contentWidth,u=n.align,c="";"full_width"==s&&("wide"!=u&&"full"!=u||(c="align"+u));var f=""+o;return wp.element.createElement(f,{className:r()(t,"uagb-section__wrap","uagb-section__background-"+i,c),id:"uagb-section-"+a},wp.element.createElement("div",{className:"uagb-section__overlay"}),"video"==i&&wp.element.createElement("div",{className:"uagb-section__video-wrap"},l&&wp.element.createElement("video",{src:l.url,autoPlay:!0,loop:!0,muted:!0})),wp.element.createElement("div",{className:"uagb-section__inner-wrap"},wp.element.createElement(p.Content,null)))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a={align:{type:"string",default:"center"},block_id:{type:"string"},topPadding:{type:"number",default:20},bottomPadding:{type:"number",default:20},leftPadding:{type:"number",default:20},rightPadding:{type:"number",default:20},topMargin:{type:"number",default:0},bottomMargin:{type:"number",default:0},leftMargin:{type:"number",default:0},rightMargin:{type:"number",default:0},contentWidth:{type:"string",default:"boxed"},width:{type:"number",default:900},innerWidth:{type:"number",default:1140},themeWidth:{type:"boolean",default:!1},tag:{type:"string",default:"section"},backgroundType:{type:"string"},backgroundImage:{type:"object"},backgroundPosition:{type:"string",default:"center-center"},backgroundSize:{type:"string",default:"cover"},backgroundRepeat:{type:"string",default:"no-repeat"},backgroundAttachment:{type:"string",default:"scroll"},backgroundVideo:{type:"object"},backgroundColor:{type:"string"},gradientColor1:{type:"string"},gradientColor2:{type:"string"},gradientType:{type:"string",default:"linear"},gradientLocation1:{type:"number",default:0},gradientLocation2:{type:"number",default:100},gradientAngle:{type:"number",default:0},backgroundOpacity:{type:"number",default:0},backgroundVideoOpacity:{type:"number",default:50},backgroundVideoColor:{type:"string"},backgroundImageColor:{type:"string"},borderStyle:{type:"string",default:"none"},borderWidth:{type:"number",default:1},borderRadius:{type:"number"},borderColor:{type:"string"}};t.a=a},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=n(0),l=n.n(i),s=n(319),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),c=wp.i18n.__,f=wp.element,p=f.Component,d=f.Fragment,m=wp.editor,h=(m.AlignmentToolbar,m.BlockControls),g=m.BlockAlignmentToolbar,b=m.ColorPalette,v=m.InspectorControls,y=m.InnerBlocks,w=m.MediaUpload,_=m.PanelColorSettings,E=wp.components,k=E.PanelBody,C=E.SelectControl,x=E.RangeControl,S=E.Button,T=(E.Dashicon,E.BaseControl),P=E.withNotices,O=E.ToggleControl,N=function(e){function t(){a(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onRemoveVideo=e.onRemoveVideo.bind(e),e.onRemoveImage=e.onRemoveImage.bind(e),e.onSelectImage=e.onSelectImage.bind(e),e.onSelectVideo=e.onSelectVideo.bind(e),e}return o(t,e),u(t,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId});var e=document.createElement("style");e.setAttribute("id","uagb-style-"+this.props.clientId),document.head.appendChild(e)}},{key:"onRemoveImage",value:function(){this.props.attributes.backgroundImage;(0,this.props.setAttributes)({backgroundImage:null})}},{key:"onSelectImage",value:function(e){var t=(this.props.attributes.backgroundImage,this.props.setAttributes);if(!e||!e.url)return void t({backgroundImage:null});e.type&&"image"==e.type&&t({backgroundImage:e})}},{key:"onRemoveVideo",value:function(){this.props.attributes.backgroundVideo;(0,this.props.setAttributes)({backgroundVideo:null})}},{key:"onSelectVideo",value:function(e){var t=(this.props.attributes.backgroundVideo,this.props.setAttributes);if(!e||!e.url)return void t({backgroundVideo:null});e.type&&"video"==e.type&&t({backgroundVideo:e})}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.setAttributes,a=e.isSelected,r=t.align,o=t.className,i=(t.padding,t.contentWidth),u=t.width,f=t.innerWidth,p=t.tag,m=t.themeWidth,E=t.leftPadding,P=t.rightPadding,N=t.topPadding,R=t.bottomPadding,I=t.leftMargin,j=t.rightMargin,A=t.topMargin,M=t.bottomMargin,z=t.backgroundType,D=t.backgroundImage,L=t.backgroundVideo,B=t.backgroundColor,F=t.backgroundPosition,U=t.backgroundAttachment,W=t.backgroundRepeat,H=t.backgroundSize,V=t.gradientColor1,q=t.gradientColor2,G=t.gradientLocation1,$=t.gradientLocation2,Y=t.gradientType,K=t.gradientAngle,Q=t.backgroundOpacity,X=t.backgroundVideoColor,J=t.backgroundVideoOpacity,Z=t.backgroundImageColor,ee=t.borderStyle,te=t.borderWidth,ne=t.borderRadius,ae=t.borderColor,re=""+p,oe=document.getElementById("uagb-style-"+this.props.clientId);null!=oe&&"undefined"!=typeof oe&&(oe.innerHTML=Object(s.a)(this.props));var ie=a?"active":"not-active",le=["left","center","right"],se="";return"full_width"==i&&(le=["wide","full"],"wide"!=r&&"full"!=r||(se="align"+r)),wp.element.createElement(d,null,wp.element.createElement(h,null,wp.element.createElement(g,{value:r,onChange:function(e){n({align:e})},controls:le})),wp.element.createElement(v,null,wp.element.createElement(k,{title:c("Layout")},wp.element.createElement(C,{label:c("Content Width"),value:i,onChange:function(e){return n({contentWidth:e})},options:[{value:"boxed",label:c("Boxed")},{value:"full_width",label:c("Full Width")}]}),"boxed"==i&&wp.element.createElement(x,{label:c("Width"),value:u,min:0,max:2e3,onChange:function(e){return n({width:e})}}),"boxed"!=i&&wp.element.createElement(O,{label:c("Inherit Inner Width from Theme"),checked:m,onChange:function(e){return n({themeWidth:!m})}}),"boxed"!=i&&!m&&wp.element.createElement(x,{label:c("Inner Width"),value:f,min:0,max:2e3,onChange:function(e){return n({innerWidth:e})}}),wp.element.createElement(C,{label:c("HTML Tag"),value:p,onChange:function(e){return n({tag:e})},options:[{value:"div",label:c("div")},{value:"header",label:c("header")},{value:"footer",label:c("footer")},{value:"main",label:c("main")},{value:"article",label:c("article")},{value:"section",label:c("section")},{value:"aside",label:c("aside")},{value:"nav",label:c("nav")}]})),wp.element.createElement(k,{title:c("Spacing"),initialOpen:!1},wp.element.createElement(x,{label:c("Left Padding"),value:E,onChange:function(e){return n({leftPadding:e})},min:0,max:200,allowReset:!0}),wp.element.createElement(x,{label:c("Right Padding"),value:P,onChange:function(e){return n({rightPadding:e})},min:0,max:200,allowReset:!0}),wp.element.createElement(x,{label:c("Top Padding"),value:N,onChange:function(e){return n({topPadding:e})},min:0,max:200,allowReset:!0}),wp.element.createElement(x,{label:c("Bottom Padding"),value:R,onChange:function(e){return n({bottomPadding:e})},min:0,max:200,allowReset:!0}),wp.element.createElement(x,{label:c("Left Margin"),value:I,onChange:function(e){return n({leftMargin:e})},min:0,max:200,allowReset:!0}),wp.element.createElement(x,{label:c("Right Margin"),value:j,onChange:function(e){return n({rightMargin:e})},min:0,max:200,allowReset:!0}),wp.element.createElement(x,{label:c("Top Margin"),value:A,onChange:function(e){return n({topMargin:e})},min:0,max:200,allowReset:!0}),wp.element.createElement(x,{label:c("Bottom Margin"),value:M,onChange:function(e){return n({bottomMargin:e})},min:0,max:200,allowReset:!0})),wp.element.createElement(k,{title:c("Background"),initialOpen:!1},wp.element.createElement(C,{label:c("Background Type"),value:z,onChange:function(e){return n({backgroundType:e})},options:[{value:"none",label:c("None")},{value:"color",label:c("Color")},{value:"gradient",label:c("Gradient")},{value:"image",label:c("Image")},{value:"video",label:c("Video")}]}),"color"==z&&wp.element.createElement(d,null,wp.element.createElement("p",{className:"uagb-setting-label"},c("Background Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:B}}))),wp.element.createElement(b,{value:B,onChange:function(e){return n({backgroundColor:e})},allowReset:!0})),"image"==z&&wp.element.createElement(d,null,wp.element.createElement(T,{className:"editor-bg-image-control",label:c("Background Image")},wp.element.createElement(w,{title:c("Select Background Image"),onSelect:this.onSelectImage,allowedTypes:["image"],value:D,render:function(e){var t=e.open;return wp.element.createElement(S,{isDefault:!0,onClick:t},c(D?"Replace image":"Select Background Image"))}}),D&&wp.element.createElement(S,{className:"uagb-rm-btn",onClick:this.onRemoveImage,isLink:!0,isDestructive:!0},c("Remove Image"))),D&&wp.element.createElement(d,null,wp.element.createElement(C,{label:c("Image Position"),value:F,onChange:function(e){return n({backgroundPosition:e})},options:[{value:"top-left",label:c("Top Left")},{value:"top-center",label:c("Top Center")},{value:"top-right",label:c("Top Right")},{value:"center-left",label:c("Center Left")},{value:"center-center",label:c("Center Center")},{value:"center-right",label:c("Center Right")},{value:"bottom-left",label:c("Bottom Left")},{value:"bottom-center",label:c("Bottom Center")},{value:"bottom-right",label:c("Bottom Right")}]}),wp.element.createElement(C,{label:c("Attachment"),value:U,onChange:function(e){return n({backgroundAttachment:e})},options:[{value:"fixed",label:c("Fixed")},{value:"scroll",label:c("Scroll")}]}),wp.element.createElement(C,{label:c("Repeat"),value:W,onChange:function(e){return n({backgroundRepeat:e})},options:[{value:"no-repeat",label:c("No Repeat")},{value:"repeat",label:c("Repeat")},{value:"repeat-x",label:c("Repeat-x")},{value:"repeat-y",label:c("Repeat-y")}]}),wp.element.createElement(C,{label:c("Size"),value:H,onChange:function(e){return n({backgroundSize:e})},options:[{value:"auto",label:c("Auto")},{value:"cover",label:c("Cover")},{value:"contain",label:c("Contain")}]}),wp.element.createElement(d,null,wp.element.createElement("p",{className:"uagb-setting-label"},c("Image Overlay Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:Z}}))),wp.element.createElement(b,{value:Z,onChange:function(e){return n({backgroundImageColor:e})},allowReset:!0})))),"gradient"==z&&wp.element.createElement(d,null,wp.element.createElement(_,{title:c("Color Settings"),colorSettings:[{value:V,onChange:function(e){return n({gradientColor1:e})},label:c("Color 1")},{value:q,onChange:function(e){return n({gradientColor2:e})},label:c("Color 2")}]}),wp.element.createElement(C,{label:c("Type"),value:Y,onChange:function(e){return n({gradientType:e})},options:[{value:"linear",label:c("Linear")},{value:"radial",label:c("Radial")}]}),wp.element.createElement(x,{label:c("Location 1"),value:G,onChange:function(e){return n({gradientLocation1:e})},min:0,max:100,allowReset:!0}),wp.element.createElement(x,{label:c("Location 2"),value:$,onChange:function(e){return n({gradientLocation2:e})},min:0,max:100,allowReset:!0}),wp.element.createElement(x,{label:c("Angle"),value:K,onChange:function(e){return n({gradientAngle:e})},min:0,max:360,allowReset:!0})),"video"==z&&wp.element.createElement(T,{className:"editor-bg-video-control",label:c("Background Video")},wp.element.createElement(w,{title:c("Select Background Video"),onSelect:this.onSelectVideo,allowedTypes:["video"],value:L,render:function(e){var t=e.open;return wp.element.createElement(S,{isDefault:!0,onClick:t},c(L?"Replace Video":"Select Background Video"))}}),L&&wp.element.createElement(S,{onClick:this.onRemoveVideo,isLink:!0,isDestructive:!0},c("Remove Video"))),("color"==z||"image"==z&&D||"gradient"==z)&&wp.element.createElement(x,{label:c("Opacity"),value:Q,onChange:function(e){return n({backgroundOpacity:e})},min:0,max:100,allowReset:!0,initialPosition:0}),"video"==z&&L&&wp.element.createElement(d,null,wp.element.createElement("p",{className:"uagb-setting-label"},c("Video Overlay Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:X}}))),wp.element.createElement(b,{value:X,onChange:function(e){return n({backgroundVideoColor:e})},allowReset:!0})),"video"==z&&L&&wp.element.createElement(x,{label:c("Opacity"),value:J,onChange:function(e){return n({backgroundVideoOpacity:e})},min:0,max:100,allowReset:!0,initialPosition:50})),wp.element.createElement(k,{title:c("Border"),initialOpen:!1},wp.element.createElement(C,{label:c("Border Style"),value:ee,onChange:function(e){return n({borderStyle:e})},options:[{value:"none",label:c("None")},{value:"solid",label:c("Solid")},{value:"dotted",label:c("Dotted")},{value:"dashed",label:c("Dashed")},{value:"double",label:c("Double")},{value:"groove",label:c("Groove")},{value:"inset",label:c("Inset")},{value:"outset",label:c("Outset")},{value:"ridge",label:c("Ridge")}]}),"none"!=ee&&wp.element.createElement(x,{label:c("Border Width"),value:te,onChange:function(e){return n({borderWidth:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(x,{label:c("Border Radius"),value:ne,onChange:function(e){return n({borderRadius:e})},min:0,max:1e3,allowReset:!0}),"none"!=ee&&wp.element.createElement(d,null,wp.element.createElement("p",{className:"uagb-setting-label"},c("Border Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ae}}))),wp.element.createElement(b,{value:ae,onChange:function(e){return n({borderColor:e})},allowReset:!0})))),wp.element.createElement(re,{className:l()(o,"uagb-section__wrap","uagb-section__background-"+z,"uagb-section__edit-"+ie,se),id:"uagb-section-"+this.props.clientId},wp.element.createElement("div",{className:"uagb-section__overlay"}),"video"==z&&wp.element.createElement("div",{className:"uagb-section__video-wrap"},L&&wp.element.createElement("video",{src:L.url,autoPlay:!0,loop:!0,muted:!0})),wp.element.createElement("div",{className:"uagb-section__inner-wrap"},wp.element.createElement(y,{templateLock:!1}))))}}]),t}(p);t.a=P(N)},function(e,t,n){"use strict";function a(e){var t=e.attributes,n=t.backgroundType,a=t.backgroundVideoColor,o=t.backgroundImageColor,i=t.backgroundOpacity,l=t.backgroundVideoOpacity,s=(t.backgroundVideo,t.className,t.innerWidth),u=t.contentWidth,c=t.borderRadius,f="100%";"undefined"!=typeof u&&"boxed"!=u&&"undefined"!=typeof s&&(f=s+"px");var p={".uagb-section__wrap":Object(r.a)(e)," .uagb-section__video-wrap":{opacity:"undefined"!=typeof l?(100-l)/100:.5}," .uagb-section__inner-wrap":{"max-width":f}};p[" > .uagb-section__overlay"]="video"==n?{opacity:1,"background-color":a}:"image"==n?{opacity:"undefined"!=typeof i?i/100:0,"background-color":o}:{opacity:"undefined"!=typeof i?i/100:0},p[" > .uagb-section__overlay"]["border-radius"]=c+"px";var d="";for(var m in p){d+="#uagb-section-"+e.clientId,d+=m+" { ";var h=p[m],g="";for(var b in h)g+=b+": "+h[b]+";";d+=g+" } "}return d}var r=n(111);t.a=a},function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(8),i=n.n(o),l=n(3),s=n(322),u=(n.n(s),n(323)),c=(n.n(u),n(324)),f=n(325),p=wp.i18n.__,d=wp.blocks.registerBlockType,m=wp.editor.RichText;d("uagb/buttons",{title:uagb_blocks_info.blocks["uagb/buttons"].title,description:uagb_blocks_info.blocks["uagb/buttons"].description,icon:l.a.buttons,category:uagb_blocks_info.category,keywords:[p("buttons"),p("multi buttons"),p("uagb")],attributes:c.a,edit:f.a,save:function(e){var t=(e.attributes,e.className),n=e.attributes,a=n.block_id,o=(n.align,n.items,n.buttons),l=n.btn_count,s=function(e){if("undefined"!=typeof o[e])return wp.element.createElement("div",{className:r()("uagb-buttons-repeater-"+e,"uagb-button__wrapper"),key:e},wp.element.createElement(m.Content,{placeholder:p("Click Here"),value:o[e].label,tagName:"a",className:"uagb-button__link",href:o[e].link,rel:"noopener noreferrer",target:o[e].target}))};return wp.element.createElement("div",{className:r()(t,"uagb-buttons__outer-wrap"),id:"uagb-buttons-"+a},wp.element.createElement("div",{className:"uagb-buttons__wrap"},i()(l,function(e){return s(e)})))}})},function(e,t,n){function a(e){return"function"==typeof e?e:r}var r=n(39);e.exports=a},function(e,t){},function(e,t){},function(e,t,n){"use strict";for(var a=[],r=1;r<=2;r++){var o="Click Here #"+r;a.push({label:o,link:"#",target:"_self",size:"",vPadding:10,hPadding:14,borderWidth:1,borderRadius:2,borderStyle:"solid",borderColor:"#333",borderHColor:"#333",color:"#333",background:"",hColor:"#333",hBackground:""})}var i={block_id:{type:"string"},align:{type:"string",default:"center"},btn_count:{type:"number",default:2},buttons:{type:"array",default:a},gap:{type:"number",default:10},stack:{type:"string",default:"none"}};t.a=i},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var l=n(0),s=n.n(l),u=n(8),c=n.n(u),f=n(326),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),m=wp.i18n.__,h=wp.element,g=h.Component,b=h.Fragment,v=wp.editor,y=(v.AlignmentToolbar,v.BlockControls),w=v.BlockAlignmentToolbar,_=v.InspectorControls,E=v.RichText,k=v.PanelColorSettings,C=v.URLInput,x=wp.components,S=x.PanelBody,T=x.SelectControl,P=x.RangeControl,O=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.state={isHovered:"false",isFocused:"false"},e}return i(t,e),d(t,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId});var e=document.createElement("style");e.setAttribute("id","uagb-style-buttons-"+this.props.clientId),document.head.appendChild(e)}},{key:"componentDidUpdate",value:function(e){!this.props.isSelected&&e.isSelected&&this.state.isFocused&&this.setState({isFocused:"false"})}},{key:"saveButton",value:function(e,t){var n=this.props,a=n.attributes;(0,n.setAttributes)({buttons:a.buttons.map(function(n,a){return t===a&&(n=p({},n,e)),n})})}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.isSelected,i=n.align,l=n.className,u=n.btn_count,p=n.buttons,d=n.gap,h=n.stack,g=function(t){return wp.element.createElement(S,{key:t,title:m("Button")+" "+(t+1)+" "+m("Settings"),initialOpen:!1},wp.element.createElement("p",{className:"components-base-control__label"},m("Link")),wp.element.createElement(C,{value:p[t].link,onChange:function(n){e.saveButton({link:n},t)}}),wp.element.createElement(T,{label:m("Link Target"),value:p[t].target,options:[{value:"_self",label:m("Same Window")},{value:"_blank",label:m("New Window")}],onChange:function(n){e.saveButton({target:n},t)}}),wp.element.createElement(P,{beforeIcon:"editor-textcolor",afterIcon:"editor-textcolor",label:m("Button Text Size"),value:p[t].size,onChange:function(n){e.saveButton({size:n},t)},min:10,max:100,initialPosition:16}),wp.element.createElement(P,{label:m("Top and Bottom Padding"),value:p[t].vPadding,onChange:function(n){e.saveButton({vPadding:n},t)},min:0,max:100}),wp.element.createElement(P,{label:m("Left and Right Padding"),value:p[t].hPadding,onChange:function(n){e.saveButton({hPadding:n},t)},min:0,max:100}),wp.element.createElement(P,{label:m("Border Thickness"),value:p[t].borderWidth,onChange:function(n){e.saveButton({borderWidth:n},t)},min:0,max:20}),wp.element.createElement(T,{label:m("Border Style"),value:p[t].borderStyle,options:[{value:"solid",label:m("Solid")},{value:"dotted",label:m("Dotted")},{value:"dashed",label:m("Dashed")},{value:"double",label:m("Double")}],onChange:function(n){e.saveButton({borderStyle:n},t)}}),wp.element.createElement(P,{label:m("Border Radius"),value:p[t].borderRadius,onChange:function(n){e.saveButton({borderRadius:n},t)},min:0,max:50}),wp.element.createElement(k,{title:m("Color Settings"),colorSettings:[{value:p[t].color,onChange:function(n){return e.saveButton({color:n},t)},label:m("Color")},{value:p[t].background,onChange:function(n){return e.saveButton({background:n},t)},label:m("Background Color")},{value:p[t].borderColor,onChange:function(n){return e.saveButton({borderColor:n},t)},label:m("Border Color")},{value:p[t].hColor,onChange:function(n){return e.saveButton({hColor:n},t)},label:m("Hover Color")},{value:p[t].hBackground,onChange:function(n){return e.saveButton({hBackground:n},t)},label:m("Background Hover Color")},{value:p[t].borderHColor,onChange:function(n){return e.saveButton({borderHColor:n},t)},label:m("Border Hover Color")}]}))},v=document.getElementById("uagb-style-buttons-"+this.props.clientId);return null!=v&&"undefined"!=typeof v&&(v.innerHTML=Object(f.a)(this.props)),wp.element.createElement(b,null,wp.element.createElement(y,null,wp.element.createElement(w,{value:i,onChange:function(e){r({align:e})},controls:["left","center","right","full"]})),wp.element.createElement(_,null,wp.element.createElement(S,{title:m("Button Count"),initialOpen:!0},wp.element.createElement(P,{label:m("Number of Buttons"),value:u,onChange:function(e){var t=[].concat(a(p));if(t.length<e){var n=Math.abs(e-t.length);c()(n,function(e){t.push({label:"Click Here #"+(t.length+1),link:t[0].link,target:t[0].target,size:t[0].size,vPadding:t[0].vPadding,hPadding:t[0].hPadding,borderRadius:t[0].borderRadius,borderWidth:t[0].borderWidth,borderColor:t[0].borderColor,borderHColor:t[0].borderHColor,borderStyle:t[0].borderStyle,color:t[0].color,background:t[0].background,hColor:t[0].hColor,hBackground:t[0].hBackground})}),r({buttons:t})}r({btn_count:e})},min:1,max:5})),c()(u,function(e){return g(e)}),wp.element.createElement(S,{title:m("Spacing"),initialOpen:!1},wp.element.createElement(P,{label:m("Gap between Buttons"),value:d,onChange:function(e){return r({gap:e})},min:0,max:50}),wp.element.createElement(T,{label:m("Stack on"),value:h,options:[{value:"none",label:m("None")},{value:"desktop",label:m("Desktop")},{value:"tablet",label:m("Tablet")},{value:"mobile",label:m("Mobile")}],onChange:function(e){return r({stack:e})}}),wp.element.createElement("p",{className:"uagb-note"},m("Note: Choose on what breakpoint the buttons will stack.")))),wp.element.createElement("div",{className:s()(l,"uagb-buttons__outer-wrap"),id:"uagb-buttons-"+this.props.clientId},wp.element.createElement("div",{className:"uagb-buttons__wrap"},p.map(function(t,n){if(!(u<=n))return wp.element.createElement("div",{className:s()("uagb-buttons-repeater-"+n,"uagb-button__wrapper",o&&!1!==e.state.isFocused&&n===e.state.isFocused?"uagb-button__active":""),key:n},wp.element.createElement(E,{placeholder:m("Add text\u2026"),value:t.label,tagName:"div",onChange:function(t){e.saveButton({label:t},n)},formattingControls:["bold","italic","strikethrough"],className:"uagb-button__link",rel:"noopener noreferrer",keepPlaceholderOnFocus:!0}))}))))}}]),t}(g);t.a=O},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){var t=e.attributes,n=t.align,r=(t.className,t.btn_count),o=t.buttons,i=t.gap,l=t.stack,s={},u={},c={};o.map(function(e,t){r<=t||(s[" .uagb-buttons-repeater-"+t]={"font-size":e.size+"px","border-width":e.borderWidth+"px","border-style":e.borderStyle,"border-color":e.borderColor,"border-radius":e.borderRadius+"px",background:e.background},s[" .uagb-buttons-repeater-"+t+":hover"]={background:e.hBackground,"border-width":e.borderWidth+"px","border-style":e.borderStyle,"border-color":e.borderHColor},s[" .uagb-buttons-repeater-"+t+" a.uagb-button__link"]={padding:e.vPadding+"px "+e.hPadding+"px",color:e.color},s[" .uagb-buttons-repeater-"+t+":hover a.uagb-button__link"]={color:e.hColor},s[" .uagb-buttons-repeater-"+t+" .uagb-button__link"]={padding:e.vPadding+"px "+e.hPadding+"px",color:e.color},s[" .uagb-buttons-repeater-"+t+":hover .uagb-button__link"]={color:e.hColor})}),s[" .uagb-button__wrapper"]={"margin-left":i/2+"px","margin-right":i/2+"px"},s[" .uagb-button__wrapper:first-child"]={"margin-left":0},s[" .uagb-button__wrapper:last-child"]={"margin-right":0};var f="left"==n?"flex-start":"right"==n?"flex-end":"center";s[" .uagb-buttons__wrap"]=a({"justify-content":f,"-webkit-box-pack":f,"-ms-flex-pack":f},"justify-content",f),"desktop"==l?(s[" .uagb-button__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":i+"px"},s[" .uagb-buttons__wrap"]={"flex-direction":"column"},s[" .uagb-button__wrapper:last-child"]={"margin-bottom":0}):"tablet"==l?(u[" .uagb-button__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":i+"px"},u[" .uagb-buttons__wrap"]={"flex-direction":"column"},u[" .uagb-button__wrapper:last-child"]={"margin-bottom":0}):"mobile"==l&&(c[" .uagb-button__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":i+"px"},c[" .uagb-buttons__wrap"]={"flex-direction":"column"},c[" .uagb-button__wrapper:last-child"]={"margin-bottom":0});var p="",d="#uagb-buttons-"+e.clientId;for(var m in s){p+=d,p+=m+" { ";var h=s[m],g="";for(var b in h)g+=b+": "+h[b]+";";p+=g+" } "}p+="@media only screen and (max-width: 976px) {";for(var m in u){p+=d,p+=m+" { ";var h=u[m],g="";for(var b in h)g+=b+": "+h[b]+";";p+=g+" } "}p+=" }",p+="@media only screen and (max-width: 767px) {";for(var m in c){p+=d,p+=m+" { ";var h=c[m],g="";for(var b in h)g+=b+": "+h[b]+";";p+=g+" } "}return p+=" }"}t.a=r},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var r=n(0),o=n.n(r),i=n(3),l=n(112),s=n(113),u=n(114),c=n(115),f=n(116),p=n(117),d=n(118),m=n(119),h=n(120),g=n(328),b=n(336),v=n(337),y=(n.n(v),n(338)),w=(n.n(y),wp.i18n.__),_=wp.blocks.registerBlockType,E=(wp.editor.RichText,wp.element.Fragment);_("uagb/info-box",{title:uagb_blocks_info.blocks["uagb/info-box"].title,description:uagb_blocks_info.blocks["uagb/info-box"].description,icon:i.a.info_box,keywords:[w("info-box"),w("uagb")],category:uagb_blocks_info.category,attributes:b.a,edit:g.a,save:function(e){var t=e.attributes,n=t.iconimgPosition,r=t.block_id,i=t.source_type,g=t.seperatorStyle,b=(t.backgroundType,t.ctaType),v=t.ctaLink,y=t.ctaTarget,w=t.className,_=t.prefixTitle,k=t.infoBoxTitle,C=t.headingDesc,x=t.showPrefix,S=t.showTitle,T=t.showDesc,P=t.icon,O="uagb-infobox-"+r,N="undefined"!=typeof w?w:"";N=N+" "+O;var R=(Object(m.a)(e),"");R="icon"===i&&""!==P?wp.element.createElement(c.a,{attributes:e.attributes}):wp.element.createElement(h.a,{attributes:e.attributes});var I=wp.element.createElement(E,null,"none"!==g&&wp.element.createElement(p.a,{attributes:e.attributes}),wp.element.createElement("div",{className:"uagb-ifb-text-wrap"},T&&""!==C&&wp.element.createElement(u.a,{attributes:e.attributes,setAttributes:"not_set"}),"none"!==b&&wp.element.createElement(d.a,{attributes:e.attributes}))),j=wp.element.createElement(E,null,wp.element.createElement("div",{className:"uagb-ifb-title-wrap"},x&&""!==_&&wp.element.createElement(l.a,{attributes:e.attributes,setAttributes:"not_set"}),S&&""!==k&&wp.element.createElement(s.a,{attributes:e.attributes,setAttributes:"not_set"}))),A=wp.element.createElement(E,null,wp.element.createElement("div",{className:o.a.apply(void 0,["uagb-infobox__content-wrap"].concat(a(Object(f.a)(e.attributes))))},wp.element.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==n&&R,wp.element.createElement("div",{className:"uagb-ifb-content"},"above-title"==n&&R,("above-title"==n||"below-title"==n)&&j,"below-title"==n&&R,("above-title"==n||"below-title"==n)&&I,"left-title"===n&&wp.element.createElement(E,null,wp.element.createElement("div",{className:"uagb-ifb-left-title-image"},R,j),I),"right-title"===n&&wp.element.createElement(E,null,wp.element.createElement("div",{className:"uagb-ifb-right-title-image"},j,R),I),("left"==n||"right"==n)&&wp.element.createElement(E,null,j,I)),"right"==n&&R))),M="";return y&&(M="_blank"),wp.element.createElement(E,null,wp.element.createElement("div",{className:o()(w,"uagb-infobox__outer-wrap"),id:O},"all"==b&&wp.element.createElement(E,null,wp.element.createElement("a",{href:v,className:"uagb-infobox-link-wrap",target:M,rel:"noopener noreferrer"}," ",A)),"all"!==b&&A))},deprecated:[{attributes:b.a,save:function(e){var t=e.attributes,n=t.iconimgPosition,r=t.block_id,i=t.source_type,g=t.seperatorStyle,b=(t.backgroundType,t.ctaType),v=t.ctaLink,y=t.ctaTarget,w=t.className,_="uagb-infobox-"+r,k="undefined"!=typeof w?w:"";k=k+" "+_;var C=(Object(m.a)(e),"");C="icon"===i?wp.element.createElement(c.a,{attributes:e.attributes}):wp.element.createElement(h.a,{attributes:e.attributes});var x=wp.element.createElement(E,null,"none"!==g&&wp.element.createElement(p.a,{attributes:e.attributes}),wp.element.createElement("div",{className:"uagb-ifb-text-wrap"},wp.element.createElement(u.a,{attributes:e.attributes,setAttributes:"not_set"}),wp.element.createElement(d.a,{attributes:e.attributes}))),S=wp.element.createElement(E,null,wp.element.createElement("div",{className:"uagb-ifb-title-wrap"},wp.element.createElement(l.a,{attributes:e.attributes,setAttributes:"not_set"}),wp.element.createElement(s.a,{attributes:e.attributes,setAttributes:"not_set"}))),T=wp.element.createElement(E,null,wp.element.createElement("div",{className:o.a.apply(void 0,["uagb-infobox__content-wrap"].concat(a(Object(f.a)(e.attributes))))},wp.element.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==n&&C,wp.element.createElement("div",{className:"uagb-ifb-content"},"above-title"==n&&C,("above-title"==n||"below-title"==n)&&S,"below-title"==n&&C,("above-title"==n||"below-title"==n)&&x,"left-title"===n&&wp.element.createElement(E,null,wp.element.createElement("div",{className:"uagb-ifb-left-title-image"},C,S),x),"right-title"===n&&wp.element.createElement(E,null,wp.element.createElement("div",{className:"uagb-ifb-right-title-image"},S,C),x),("left"==n||"right"==n)&&wp.element.createElement(E,null,S,x)),"right"==n&&C))),P="";return y&&(P="_blank"),wp.element.createElement(E,null,wp.element.createElement("div",{className:o()(w,"uagb-infobox__outer-wrap"),id:_},"all"==b&&wp.element.createElement(E,null,wp.element.createElement("a",{href:v,className:"uagb-infobox-link-wrap",target:P,rel:"noopener noreferrer"}," ",T)),"all"!==b&&T))}}]})},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var l=n(0),s=n.n(l),u=n(17),c=n(18),f=n.n(c),p=n(112),d=n(113),m=n(114),h=n(115),g=n(116),b=n(117),v=n(118),y=n(119),w=n(120),_=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),E=wp.i18n.__,k=wp.editor,C=k.AlignmentToolbar,x=k.BlockControls,S=k.ColorPalette,T=k.InspectorControls,P=(k.RichText,k.PanelColorSettings),O=k.MediaUpload,N=wp.components,R=N.PanelBody,I=N.SelectControl,j=N.RangeControl,A=N.TabPanel,M=N.ToggleControl,z=N.TextControl,D=N.BaseControl,L=N.Button,B=(N.withNotices,wp.compose.compose,wp.data.withSelect,wp.viewport.withViewportMatch,wp.element),F=B.Component,U=B.Fragment,W=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.getIfbIcon=e.getIfbIcon.bind(e),e.toggleTarget=e.toggleTarget.bind(e),e.toggleResponsive=e.toggleResponsive.bind(e),e.onSelectImage=e.onSelectImage.bind(e),e.onRemoveImage=e.onRemoveImage.bind(e),e.getCtaicon=e.getCtaicon.bind(e),e}return i(t,e),_(t,[{key:"getIfbIcon",value:function(e){this.props.setAttributes({icon:e})}},{key:"getCtaicon",value:function(e){this.props.setAttributes({ctaIcon:e})}},{key:"onSelectImage",value:function(e){var t=(this.props.attributes.iconImage,this.props.setAttributes);return e&&e.url&&e.type&&"image"===e.type?void t({iconImage:e}):void t({iconImage:null})}},{key:"onRemoveImage",value:function(){this.props.attributes.iconImage;(0,this.props.setAttributes)({iconImage:null})}},{key:"toggleTarget",value:function(){var e=this.props.attributes.ctaTarget;(0,this.props.setAttributes)({ctaTarget:!e})}},{key:"toggleResponsive",value:function(){var e=this.props.attributes.responsiveDesign;(0,this.props.setAttributes)({responsiveDesign:!e})}},{key:"render",value:function(){var e=this.props,t=(e.isSelected,e.className),n=e.setAttributes,r=e.attributes,o=(e.mergeBlocks,e.insertBlocksAfter,e.onReplace,r.prefixTitle,r.infoBoxTitle,r.headingDesc,r.headingAlign),i=r.headingColor,l=r.subHeadingColor,c=r.prefixColor,_=(r.prefixTag,r.prefixFontSize),k=r.headingTag,N=r.headFontSize,B=r.subHeadFontSize,F=(r.separatorWidth,r.separatorHeight,r.seperatorSpace),W=r.headSpace,H=(r.separatorSpace,r.subHeadSpace),V=r.icon,q=r.iconColor,G=r.iconSize,$=r.iconimgPosition,Y=(r.block_id,r.iconHover),K=r.iconimgBorderRadius,Q=r.source_type,X=r.sourceAlign,J=r.seperatorStyle,Z=r.seperatorWidth,ee=r.seperatorColor,te=r.seperatorThickness,ne=r.ctaType,ae=r.ctaText,re=r.ctaLink,oe=r.ctaTarget,ie=r.ctaIcon,le=r.ctaIconPosition,se=r.ctaIconSpace,ue=r.ctaLinkColor,ce=r.ctaFontSize,fe=r.ctaBtnLinkColor,pe=r.ctaLinkHoverColor,de=r.ctaBgHoverColor,me=r.ctaBgColor,he=r.ctaBtnVertPadding,ge=r.ctaBtnHrPadding,be=r.ctaBorderStyle,ve=r.ctaBorderColor,ye=r.ctaBorderhoverColor,we=r.ctaBorderWidth,_e=r.ctaBorderRadius,Ee=r.prefixSpace,ke=r.iconLeftMargin,Ce=r.iconRightMargin,xe=r.iconTopMargin,Se=r.iconBottomMargin,Te=r.iconImage,Pe=r.imageSize,Oe=r.imageWidth,Ne=r.stack,Re=r.showPrefix,Ie=r.showTitle,je=r.showDesc,Ae=document.getElementById("uagb-info-box-style-"+this.props.clientId);null!=Ae&&"undefined"!=typeof Ae&&(Ae.innerHTML=Object(y.a)(this.props));var Me={icons:u.a,renderUsing:"class",theme:"default",value:V,onChange:this.getIfbIcon,isMulti:!1},ze={icons:u.a,renderUsing:"class",theme:"default",value:ie,onChange:this.getCtaicon,isMulti:!1},De="uagb-infobox-"+this.props.clientId,Le=wp.element.createElement(U,null,wp.element.createElement(f.a,Me),wp.element.createElement(j,{label:E("Icon Size"),value:G,onChange:function(e){return n({iconSize:e})},min:10,max:300,beforeIcon:"",allowReset:!0}),wp.element.createElement(P,{title:E("Color Settings"),initialOpen:!0,colorSettings:[{value:q,onChange:function(e){return n({iconColor:e})},label:E("Icon Color")},{value:Y,onChange:function(e){return n({iconHover:e})},label:E("Icon Hover Color")}]})),Be=wp.element.createElement(U,null,wp.element.createElement(R,{title:E("Seperator"),initialOpen:!1},wp.element.createElement(I,{label:E("Style"),value:J,onChange:function(e){return n({seperatorStyle:e})},options:[{value:"none",label:E("None")},{value:"solid",label:E("Solid")},{value:"double",label:E("Double")},{value:"dashed",label:E("Dashed")},{value:"dotted",label:E("Dotted")}]}),"none"!==J&&wp.element.createElement(U,null,wp.element.createElement(U,null,wp.element.createElement("p",{className:"uagb-setting-label"},E("Seperator Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ee}}))),wp.element.createElement(S,{value:ee,onChange:function(e){return n({seperatorColor:e})},allowReset:!0})),wp.element.createElement(j,{label:E("Thickness"),value:te,onChange:function(e){return n({seperatorThickness:e})},min:0,max:10,beforeIcon:"",allowReset:!0}),wp.element.createElement(j,{label:E("Width"),value:Z,onChange:function(e){return n({seperatorWidth:e})},min:0,max:100,beforeIcon:"",allowReset:!0})))),Fe=wp.element.createElement(U,null,wp.element.createElement(R,{title:E("Call To Action"),initialOpen:!1},wp.element.createElement(I,{label:E("Type"),value:ne,onChange:function(e){return n({ctaType:e})},options:[{value:"none",label:E("None")},{value:"text",label:E("Text")},{value:"button",label:E("Button")},{value:"all",label:E("Complete Box")}]}),("text"===ne||"button"===ne)&&wp.element.createElement(z,{label:E("Text"),value:ae,onChange:function(e){return n({ctaText:e})}}),"none"!==ne&&wp.element.createElement(U,null,wp.element.createElement(z,{label:E("Link"),value:re,onChange:function(e){return n({ctaLink:e})}}),wp.element.createElement(M,{label:E("Open in new Window"),checked:oe,onChange:this.toggleTarget})),"all"!==ne&&"none"!==ne&&wp.element.createElement(U,null,wp.element.createElement(f.a,ze),wp.element.createElement(I,{label:E("Icon Position"),value:le,onChange:function(e){return n({ctaIconPosition:e})},options:[{value:"before",label:E("Before Text")},{value:"after",label:E("After Text")}]}),wp.element.createElement(j,{label:E("Icon Spacing"),value:se,onChange:function(e){return n({ctaIconSpace:e})},min:0,max:50,beforeIcon:"",allowReset:!0})),"button"==ne&&wp.element.createElement(U,null,wp.element.createElement(j,{label:E("Vertical Padding"),value:he,onChange:function(e){return n({ctaBtnVertPadding:e})},min:0,max:50,beforeIcon:"",allowReset:!0}),wp.element.createElement(j,{label:E("HorizontalPadding"),value:ge,onChange:function(e){return n({ctaBtnHrPadding:e})},min:0,max:50,beforeIcon:"",allowReset:!0}),wp.element.createElement(I,{label:E("Border Style"),value:be,onChange:function(e){return n({ctaBorderStyle:e})},options:[{value:"none",label:E("None")},{value:"solid",label:E("Solid")},{value:"double",label:E("Double")},{value:"dashed",label:E("Dashed")},{value:"dotted",label:E("Dotted")}]}),"none"!==be&&wp.element.createElement(U,null,wp.element.createElement(j,{label:E("Border Width"),value:we,onChange:function(e){return n({ctaBorderWidth:e})},min:0,max:10,beforeIcon:"",allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},E("Border Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ve}}))),wp.element.createElement(S,{value:ve,onChange:function(e){return n({ctaBorderColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},E("Border Hover Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ye}}))),wp.element.createElement(S,{value:ye,onChange:function(e){return n({ctaBorderhoverColor:e})},allowReset:!0})),wp.element.createElement(j,{label:E("Rounded Corner"),value:_e,onChange:function(e){return n({ctaBorderRadius:e})},min:0,max:100,beforeIcon:"",allowReset:!0})))),Ue=wp.element.createElement(U,null,wp.element.createElement(P,{title:E("CTA Color Settings"),initialOpen:!0,colorSettings:[{value:fe,onChange:function(e){return n({ctaBtnLinkColor:e})},label:E("Color")},{value:me,onChange:function(e){return n({ctaBgColor:e})},label:E("Background Color")}]})),We=wp.element.createElement(U,null,wp.element.createElement(P,{title:E("CTA Hover Color Settings"),initialOpen:!0,colorSettings:[{value:pe,onChange:function(e){return n({ctaLinkHoverColor:e})},label:E("Hover Color")},{value:de,onChange:function(e){return n({ctaBgHoverColor:e})},label:E("Background Hover Color")}]})),He=wp.element.createElement(U,null,wp.element.createElement(R,{title:E("Typography"),initialOpen:!1},wp.element.createElement(M,{label:E("Enable Prefix"),checked:Re,onChange:function(e){return n({showPrefix:!Re})}}),Re&&wp.element.createElement(j,{label:E("Prefix Font Size"),value:_,onChange:function(e){return n({prefixFontSize:e})},min:10,max:200,initialPosition:16,beforeIcon:"editor-textcolor",allowReset:!0}),wp.element.createElement(M,{label:E("Enable Heading"),checked:Ie,onChange:function(e){return n({showTitle:!Ie})}}),Ie&&wp.element.createElement(U,null,wp.element.createElement(I,{label:E("Title Tag"),value:k,onChange:function(e){return n({headingTag:e})},options:[{value:"h1",label:E("H1")},{value:"h2",label:E("H2")},{value:"h3",label:E("H3")},{value:"h4",label:E("H4")},{value:"h5",label:E("H5")},{value:"h6",label:E("H6")}]}),wp.element.createElement(j,{label:E("Heading Font Size"),value:N,onChange:function(e){return n({headFontSize:e})},min:10,max:200,initialPosition:30,beforeIcon:"editor-textcolor",allowReset:!0})),wp.element.createElement(M,{label:E("Enable Description"),checked:je,onChange:function(e){return n({showDesc:!je})}}),je&&wp.element.createElement(j,{label:E("Description Font Size"),value:B,onChange:function(e){return n({subHeadFontSize:e})},min:10,max:200,initialPosition:16,beforeIcon:"editor-textcolor",allowReset:!0}),("text"===ne||"button"===ne)&&wp.element.createElement(j,{label:E("CTA Font Size"),value:ce,onChange:function(e){return n({ctaFontSize:e})},min:0,max:50,initialPosition:16,beforeIcon:"editor-textcolor",allowReset:!0})),wp.element.createElement(R,{title:E("Color Settings"),initialOpen:!0},Re&&wp.element.createElement(U,null,wp.element.createElement("p",{className:"uagb-setting-label"},E("Prefix Title Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:c}}))),wp.element.createElement(S,{value:c,onChange:function(e){return n({prefixColor:e})},allowReset:!0})),Ie&&wp.element.createElement(U,null,wp.element.createElement("p",{className:"uagb-setting-label"},E("Headingading Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:i}}))),wp.element.createElement(S,{value:i,onChange:function(e){return n({headingColor:e})},allowReset:!0})," "),je&&wp.element.createElement(U,null,wp.element.createElement("p",{className:"uagb-setting-label"},E("Description Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:l}}))),wp.element.createElement(S,{value:l,onChange:function(e){return n({subHeadingColor:e})},allowReset:!0})," "),"text"===ne&&wp.element.createElement(U,null,wp.element.createElement("p",{className:"uagb-setting-label"},E("CTA Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ue}}))),wp.element.createElement(S,{value:ue,onChange:function(e){return n({ctaLinkColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},E("CTA Hover Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:pe}}))),wp.element.createElement(S,{value:pe,onChange:function(e){return n({ctaLinkHoverColor:e})},allowReset:!0})),"button"===ne&&wp.element.createElement(A,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:E("Normal"),className:"uagb-normal-tab"},{name:"hover",title:E("Hover"),className:"uagb-focus-tab"}]},function(e){var t=void 0;return t="normal"===e.name?Ue:We,wp.element.createElement("div",null,t)}))),Ve=wp.element.createElement(U,null,wp.element.createElement(R,{title:E("Spacing"),initialOpen:!1},Re&&wp.element.createElement(j,{label:E("Prefix Bottom Margin"),value:Ee,onChange:function(e){return n({prefixSpace:e})},min:0,max:50,beforeIcon:"",allowReset:!0}),Ie&&wp.element.createElement(j,{label:E("Heading Bottom Margin"),value:W,onChange:function(e){return n({headSpace:e})},min:0,max:50,beforeIcon:"",allowReset:!0}),wp.element.createElement(j,{label:E("Seperator Bottom Margin"),value:F,onChange:function(e){return n({seperatorSpace:e})},min:0,max:50,beforeIcon:"",allowReset:!0}),je&&wp.element.createElement(j,{label:E("Description Bottom Margin"),value:H,onChange:function(e){return n({subHeadSpace:e})},min:0,max:50,beforeIcon:"",allowReset:!0}),wp.element.createElement(R,{title:E("Image/Icon Margins"),initialOpen:!0},wp.element.createElement(j,{label:E("Left Margin"),value:ke,onChange:function(e){return n({iconLeftMargin:e})},min:0,max:50,beforeIcon:"",allowReset:!0}),wp.element.createElement(j,{label:E("Right Margin"),value:Ce,onChange:function(e){return n({iconRightMargin:e})},min:0,max:50,beforeIcon:"",allowReset:!0}),wp.element.createElement(j,{label:E("Top Margin"),value:xe,onChange:function(e){return n({iconTopMargin:e})},min:0,max:50,beforeIcon:"",allowReset:!0}),wp.element.createElement(j,{label:E("Bottom Margin"),value:Se,onChange:function(e){return n({iconBottomMargin:e})},min:0,max:50,beforeIcon:"",allowReset:!0})))),qe=[{value:"thumbnail",label:E("Thumbnail")},{value:"medium",label:E("Medium")},{value:"full",label:E("Large")}],Ge="Select Image";Te&&(Ge=null==Te.url||""==Te.url?"Select Image":"Replace Image");var $e=wp.element.createElement(U,null,wp.element.createElement(D,{className:"editor-bg-image-control",label:E("Image")},wp.element.createElement(O,{title:E("Select Image"),onSelect:this.onSelectImage,allowedTypes:["image"],value:Te,render:function(e){var t=e.open;return wp.element.createElement(L,{isDefault:!0,onClick:t},Ge)}}),Te&&"null"!==Te.url&&""!==Te.url&&wp.element.createElement(L,{className:"uagb-rm-btn",onClick:this.onRemoveImage,isLink:!0,isDestructive:!0},E("Remove Image"))),Te&&"null"!==Te.url&&""!==Te.url&&wp.element.createElement(U,null,wp.element.createElement(I,{label:E("Image Size"),options:qe,value:Pe,onChange:function(e){return n({imageSize:e})}}),wp.element.createElement(j,{label:E("Width"),value:Oe,onChange:function(e){return n({imageWidth:e})},min:0,max:500,beforeIcon:"",allowReset:!0}),wp.element.createElement(j,{label:E("Rounded Corners"),value:K,onChange:function(e){return n({iconimgBorderRadius:e})},min:0,max:500,beforeIcon:"",allowReset:!0}))),Ye=wp.element.createElement(U,null,wp.element.createElement(T,null,wp.element.createElement(R,{title:E("Image/Icon")},wp.element.createElement(I,{label:E("Select Position"),value:$,onChange:function(e){return n({iconimgPosition:e})},options:[{value:"above-title",label:E("Above Heading")},{value:"below-title",label:E("Below Heading")},{value:"left-title",label:E("Left of Heading")},{value:"right-title",label:E("Right of Heading")},{value:"left",label:E("Left of Text and Heading")},{value:"right",label:E("Right of Text and Heading")}]}),("left"==$||"right"==$)&&wp.element.createElement(I,{label:E("Stack on"),value:Ne,options:[{value:"none",label:E("None")},{value:"tablet",label:E("Tablet")},{value:"mobile",label:E("Mobile")}],help:E("Note: Choose on what breakpoint the Info Box will stack."),onChange:function(e){return n({stack:e})}}),wp.element.createElement(I,{label:E("Select Source"),value:Q,onChange:function(e){return n({source_type:e})},options:[{value:"icon",label:E("Icon")},{value:"image",label:E("Image")}]}),$&&"above-title"!==$&&"below-title"!==$&&wp.element.createElement(I,{label:E("Vertical ALignment"),value:X,onChange:function(e){return n({sourceAlign:e})},options:[{value:"top",label:E("Top")},{value:"middle",label:E("Middle")}]}),Q&&"icon"==Q&&Le,Q&&"image"==Q&&$e),He,Be,Fe,Ve)),Ke="";Ke="icon"===Q&&""!==V?wp.element.createElement(h.a,{attributes:r}):wp.element.createElement(w.a,{attributes:r});var Qe=wp.element.createElement(U,null,"none"!==J&&wp.element.createElement(b.a,{attributes:r}),wp.element.createElement("div",{className:"uagb-ifb-text-wrap"},je&&wp.element.createElement(m.a,{attributes:r,setAttributes:n,props:this.props}),wp.element.createElement(v.a,{attributes:r}))),Xe=wp.element.createElement(U,null,wp.element.createElement("div",{className:"uagb-ifb-title-wrap"},Re&&wp.element.createElement(p.a,{attributes:r,setAttributes:n,props:this.props}),Ie&&wp.element.createElement(d.a,{attributes:r,setAttributes:n,props:this.props}))),Je=wp.element.createElement(U,null,wp.element.createElement("div",{className:s.a.apply(void 0,["uagb-infobox__content-wrap"].concat(a(Object(g.a)(r))))},wp.element.createElement("div",{className:"uagb-ifb-left-right-wrap"},"left"==$&&Ke,wp.element.createElement("div",{className:"uagb-ifb-content"},"above-title"==$&&Ke,("above-title"==$||"below-title"==$)&&Xe,"below-title"==$&&Ke,("above-title"==$||"below-title"==$)&&Qe,"left-title"===$&&wp.element.createElement(U,null,wp.element.createElement("div",{className:"uagb-ifb-left-title-image"},Ke,Xe),Qe),"right-title"===$&&wp.element.createElement(U,null,wp.element.createElement("div",{className:"uagb-ifb-right-title-image"},Xe,Ke),Qe),("left"==$||"right"==$)&&wp.element.createElement(U,null,Xe,Qe)),"right"==$&&Ke)));return wp.element.createElement(U,null,("above-title"==$||"below-title"==$)&&wp.element.createElement(x,{key:"controls"},wp.element.createElement(C,{value:o,onChange:function(e){return n({headingAlign:e})}})),Ye,wp.element.createElement("div",{className:s()(t,"uagb-infobox__outer-wrap"),id:De},"all"==ne&&wp.element.createElement(U,null,wp.element.createElement("a",{href:re,className:"uagb-infobox-link-wrap",rel:"noopener noreferrer"}," ",Je)),"all"!==ne&&Je))}},{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId});var e=document.createElement("style");e.setAttribute("id","uagb-info-box-style-"+this.props.clientId),document.head.appendChild(e)}}]),t}(F);t.a=W},function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var r=a(n(330)),o=a(n(334)),i=a(n(124)),l=a(n(121));e.exports={Transition:l.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},function(e,t,n){"use strict";(function(a){function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},i.apply(this,arguments)}t.__esModule=!0,t.default=void 0;var l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};a.get||a.set?Object.defineProperty(t,n,a):t[n]=e[n]}return t.default=e,t}(n(11)),s=r(n(331)),u=r(n(333)),c=r(n(1)),f=r(n(121)),p=n(123),d=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,s.default)(e,t)})},m=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,u.default)(e,t)})},h="production"!==a.env.NODE_ENV?i({},f.default.propTypes,{classNames:p.classNamesShape,onEnter:l.func,onEntering:l.func,onEntered:l.func,onExit:l.func,onExiting:l.func,onExited:l.func}):{},g=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return t=e.call.apply(e,[this].concat(a))||this,t.onEnter=function(e,n){var a=t.getClassNames(n?"appear":"enter"),r=a.className;t.removeClasses(e,"exit"),d(e,r),t.props.onEnter&&t.props.onEnter(e)},t.onEntering=function(e,n){var a=t.getClassNames(n?"appear":"enter"),r=a.activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e)},t.onEntered=function(e,n){var a=t.getClassNames("enter"),r=a.doneClassName;t.removeClasses(e,n?"appear":"enter"),d(e,r),t.props.onEntered&&t.props.onEntered(e)},t.onExit=function(e){var n=t.getClassNames("exit"),a=n.className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),d(e,a),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit"),a=n.activeClassName;t.reflowAndAddClass(e,a),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit"),a=n.doneClassName;t.removeClasses(e,"exit"),d(e,a),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,a="string"!==typeof n?n[e]:n+"-"+e;return{className:a,activeClassName:"string"!==typeof n?n[e+"Active"]:a+"-active",doneClassName:"string"!==typeof n?n[e+"Done"]:a+"-done"}},t}o(t,e);var n=t.prototype;return n.removeClasses=function(e,t){var n=this.getClassNames(t),a=n.className,r=n.activeClassName,o=n.doneClassName;a&&m(e,a),r&&m(e,r),o&&m(e,o)},n.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,d(e,t))},n.render=function(){var e=i({},this.props);return delete e.classNames,c.default.createElement(f.default,i({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(c.default.Component);g.propTypes="production"!==a.env.NODE_ENV?h:{};var b=g;t.default=b,e.exports=t.default}).call(t,n(2))},function(e,t,n){"use strict";function a(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"===typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n(332),o=function(e){return e&&e.__esModule?e:{default:e}}(r);e.exports=t.default},function(e,t,n){"use strict";function a(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,e.exports=t.default},function(e,t,n){"use strict";function a(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"===typeof e.className?e.className=a(e.className,t):e.setAttribute("class",a(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";(function(a){function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}t.__esModule=!0,t.default=void 0;var l=r(n(11)),s=r(n(1)),u=n(23),c=r(n(124)),f="production"!==a.env.NODE_ENV?{in:l.default.bool.isRequired,children:function(e,t){return 2!==s.default.Children.count(e[t])?new Error('"'+t+'" must be exactly two transition components.'):null}}:{},p=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return t=e.call.apply(e,[this].concat(a))||this,t.handleEnter=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return t.handleLifecycle("onExited",1,n)},t}i(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var a,r=this.props.children,o=s.default.Children.toArray(r)[t];o.props[e]&&(a=o.props)[e].apply(a,n),this.props[e]&&this.props[e]((0,u.findDOMNode)(this))},n.render=function(){var e=this.props,t=e.children,n=e.in,a=o(e,["children","in"]),r=s.default.Children.toArray(t),i=r[0],l=r[1];return delete a.onEnter,delete a.onEntering,delete a.onEntered,delete a.onExit,delete a.onExiting,delete a.onExited,s.default.createElement(c.default,a,n?s.default.cloneElement(i,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):s.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(s.default.Component);p.propTypes="production"!==a.env.NODE_ENV?f:{};var d=p;t.default=d,e.exports=t.default}).call(t,n(2))},function(e,t,n){"use strict";function a(e,t){var n=function(e){return t&&(0,s.isValidElement)(e)?t(e):e},a=Object.create(null);return e&&s.Children.map(e,function(e){return e}).forEach(function(e){a[e.key]=n(e)}),a}function r(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var a=Object.create(null),r=[];for(var o in e)o in t?r.length&&(a[o]=r,r=[]):r.push(o);var i,l={};for(var s in t){if(a[s])for(i=0;i<a[s].length;i++){var u=a[s][i];l[a[s][i]]=n(u)}l[s]=n(s)}for(i=0;i<r.length;i++)l[r[i]]=n(r[i]);return l}function o(e,t,n){return null!=n[t]?n[t]:e.props[t]}function i(e,t){return a(e.children,function(n){return(0,s.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:o(n,"appear",e),enter:o(n,"enter",e),exit:o(n,"exit",e)})})}function l(e,t,n){var i=a(e.children),l=r(t,i);return Object.keys(l).forEach(function(a){var r=l[a];if((0,s.isValidElement)(r)){var u=a in t,c=a in i,f=t[a],p=(0,s.isValidElement)(f)&&!f.props.in;!c||u&&!p?c||!u||p?c&&u&&(0,s.isValidElement)(f)&&(l[a]=(0,s.cloneElement)(r,{onExited:n.bind(null,r),in:f.props.in,exit:o(r,"exit",e),enter:o(r,"enter",e)})):l[a]=(0,s.cloneElement)(r,{in:!1}):l[a]=(0,s.cloneElement)(r,{onExited:n.bind(null,r),in:!0,exit:o(r,"exit",e),enter:o(r,"enter",e)})}}),l}t.__esModule=!0,t.getChildMapping=a,t.mergeChildMappings=r,t.getInitialChildMapping=i,t.getNextChildMapping=l;var s=n(1)},function(e,t,n){"use strict";var a={prefixTitle:{source:"html",selector:"span.uagb-ifb-title-prefix",default:"Prefix"},infoBoxTitle:{source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"Info Box"},headingDesc:{source:"html",selector:"p",default:"Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."},headingAlign:{type:"string",default:"center"},headingColor:{type:"string"},subHeadingColor:{type:"string"},prefixColor:{type:"string"},icon:{type:"string",default:"fa fa-star"},iconimgPosition:{type:"string",default:"above-title"},iconSize:{type:"number",default:40},iconHover:{type:"string",default:""},iconBgHover:{type:"string",default:""},iconColor:{type:"string",default:"#333"},prefixTag:{type:"string",default:"h3"},prefixFontSize:{type:"number"},headingTag:{type:"string",default:"h3"},separatorHeight:{type:"number"},separatorWidth:{type:"number"},headFontSize:{type:"number"},subHeadFontSize:{type:"number"},headSpace:{type:"number",default:10},subHeadSpace:{type:"number",default:10},seperatorSpace:{type:"number",default:10},iconimgBorderRadius:{type:"number",default:0},source_type:{type:"string",default:"icon"},block_id:{type:"string",default:"not_set"},sourceAlign:{type:"string",default:"top"},ctaTarget:{type:"boolean",default:!1},ctaIcon:{type:"string",default:""},ctaIconPosition:{type:"string",default:"after"},ctaIconSpace:{type:"number",default:5},seperatorStyle:{type:"string",default:"solid"},seperatorColor:{type:"string",default:"#333"},seperatorWidth:{type:"number",default:30},seperatorThickness:{type:"number",default:2},ctaType:{type:"string",default:"none"},ctaText:{type:"string",default:"Read More"},ctaLink:{type:"string",default:"#"},ctaLinkColor:{type:"string",default:"#333"},ctaFontSize:{type:"number"},ctaBtnLinkColor:{type:"string",default:"#333"},ctaLinkHoverColor:{type:"string",default:""},ctaBgColor:{type:"string",default:"transparent"},ctaBgHoverColor:{type:"string",default:"transparent"},ctaBorderColor:{type:"string",default:"#333"},ctaBorderhoverColor:{type:"string",default:""},ctaBorderStyle:{type:"string",default:"solid"},ctaBtnVertPadding:{type:"number",default:10},ctaBtnHrPadding:{type:"number",default:14},ctaBorderWidth:{type:"number",default:1},ctaBorderRadius:{type:"number",default:0},prefixSpace:{type:"number",default:5},iconLeftMargin:{type:"number",default:10},iconRightMargin:{type:"number",default:10},iconTopMargin:{type:"number",default:5},iconBottomMargin:{type:"number",default:5},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail"},imageWidth:{type:"number",default:120},stack:{type:"string",default:"tablet"},showPrefix:{type:"boolean",default:!0},showTitle:{type:"boolean",default:!0},showDesc:{type:"boolean",default:!0}};t.a=a},function(e,t){},function(e,t){},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var r=n(0),o=n.n(r),i=n(3),l=n(125),s=n(126),u=n(127),c=n(128),f=n(129),p=n(340),d=n(342),m=n(343),h=(n.n(m),n(344)),g=(n.n(h),wp.i18n.__),b=wp.blocks.registerBlockType,v=(wp.editor.RichText,wp.element.Fragment);b("uagb/testimonial",{title:uagb_blocks_info.blocks["uagb/testimonial"].title,description:uagb_blocks_info.blocks["uagb/testimonial"].description,icon:i.a.testimonial,keywords:[g("testimonial"),g("uagb")],category:uagb_blocks_info.category,attributes:d.a,edit:p.a,save:function(e){var t=e.attributes,n=t.block_id,r=t.className,i=t.columns,p=t.autoplaySpeed,d=t.autoplay,m=t.infiniteLoop,h=t.pauseOnHover,g=t.transitionSpeed,b=t.tcolumns,y=t.arrowSize,w=t.mcolumns,_=t.test_block,E=t.imagePosition,k=t.arrowColor,C="uagb-testimonial-"+n,x=[];return x.push({block_id:n,columns:i,autoplaySpeed:p,autoplay:d,infiniteLoop:m,pauseOnHover:h,transitionSpeed:g,tcolumns:b,arrowSize:y,mcolumns:w,arrowColor:k}),wp.element.createElement(v,null,wp.element.createElement("div",{className:o()(r,"uagb-testomonial__outer-wrap uagb-slick-carousel uagb-tm__arrow-outside"),id:C,"data-slider":JSON.stringify(x)},wp.element.createElement("div",{className:o()("is-carousel","uagb-tm__columns-"+i,"uagb-tm__items")},_.map(function(t,n){return wp.element.createElement("div",{className:o.a.apply(void 0,["uagb-testimonial__wrap"].concat(a(Object(c.a)(e.attributes)))),key:"wrap-"+n},wp.element.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+n},wp.element.createElement("div",{className:"uagb-tm__overlay"}),("top"==E||"left"==E)&&wp.element.createElement(f.a,{attributes:e.attributes,index_value:n}),wp.element.createElement("div",{className:"uagb-tm__text-wrap"},wp.element.createElement(v,null,wp.element.createElement("div",{className:"uagb-testinomial-text-wrap",key:"text-wrap-"+n},wp.element.createElement(u.a,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:n}))),wp.element.createElement("div",{className:"uagb-tm__meta"},wp.element.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"==E&&wp.element.createElement(f.a,{attributes:e.attributes,index_value:n}),wp.element.createElement(v,null,wp.element.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+n},wp.element.createElement(l.a,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:n}),wp.element.createElement(s.a,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:n})))))),"right"==E&&wp.element.createElement(f.a,{attributes:e.attributes,index_value:n})))}))))}})},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var l=n(0),s=n.n(l),u=n(125),c=n(126),f=n(127),p=n(128),d=n(341),m=n(129),h=n(8),g=n.n(h),b=n(105),v=n.n(b),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},w=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),_=wp.i18n.__,E=wp.editor,k=E.AlignmentToolbar,C=E.BlockControls,x=E.ColorPalette,S=E.InspectorControls,T=(E.RichText,E.PanelColorSettings),P=E.MediaUpload,O=wp.components,N=O.PanelBody,R=O.SelectControl,I=O.RangeControl,j=O.ToggleControl,A=O.BaseControl,M=O.Button,z=wp.element,D=z.Component,L=z.Fragment,B=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onSelectTestImage=e.onSelectTestImage.bind(e),e.onRemoveTestImage=e.onRemoveTestImage.bind(e),e.getImageName=e.getImageName.bind(e),e.togglePauseOnHover=e.togglePauseOnHover.bind(e),e.toggleInfiniteLoop=e.toggleInfiniteLoop.bind(e),e.toggleAutoplay=e.toggleAutoplay.bind(e),e.onRemoveImage=e.onRemoveImage.bind(e),e.onSelectImage=e.onSelectImage.bind(e),e}return i(t,e),w(t,[{key:"onSelectTestImage",value:function(e,t){var n=this.props.attributes.test_block,a=this.props.setAttributes,r=null;r=e&&e.url?e:null,e.type&&"image"===e.type||(r=null),a({test_block:n.map(function(e,n){return t===n&&(e.image=r),e})})}},{key:"onRemoveTestImage",value:function(e){var t=this.props.attributes.test_block;(0,this.props.setAttributes)({test_block:t.map(function(t,n){return e===n&&(t.image=null),t})})}},{key:"getImageName",value:function(e){var t=(this.props.attributes.test_block,"Select Image");return e&&(t=null==e.url||""==e.url?"Select Image":"Replace Image"),t}},{key:"togglePauseOnHover",value:function(){var e=this.props.attributes.pauseOnHover;(0,this.props.setAttributes)({pauseOnHover:!e})}},{key:"toggleInfiniteLoop",value:function(){var e=this.props.attributes.infiniteLoop;(0,this.props.setAttributes)({infiniteLoop:!e})}},{key:"toggleAutoplay",value:function(){var e=this.props.attributes.autoplay;(0,this.props.setAttributes)({autoplay:!e})}},{key:"onRemoveImage",value:function(){this.props.attributes.backgroundImage;(0,this.props.setAttributes)({backgroundImage:null})}},{key:"onSelectImage",value:function(e){var t=(this.props.attributes.backgroundImage,this.props.setAttributes);return e&&e.url&&e.type&&"image"===e.type?void t({backgroundImage:e}):void t({backgroundImage:null})}},{key:"render",value:function(){function e(e){return wp.element.createElement("button",{type:"button","data-role":"none",className:"slick-next slick-arrow","aria-label":"Next",tabIndex:"0",role:"button",style:{borderColor:se,borderRadius:oe,borderWidth:re}},wp.element.createElement("span",{className:"fas fa-angle-right",style:{fontSize:e.arrowSize,color:se,height:e.arrowSize,width:e.arrowSize}}))}function t(e){return wp.element.createElement("button",{type:"button","data-role":"none",className:"slick-prev slick-arrow","aria-label":"Previous",tabIndex:"0",role:"button",style:{borderColor:se,borderRadius:oe,borderWidth:re}},wp.element.createElement("span",{className:"fas fa-angle-left",style:{fontSize:e.arrowSize,color:se,height:e.arrowSize,width:e.arrowSize}}))}var n=this,r=this.props,o=(r.isSelected,r.className),i=r.setAttributes,l=r.attributes,h=(r.mergeBlocks,r.insertBlocksAfter,r.onReplace,l.test_item_count),b=l.test_block,w=l.headingAlign,E=l.companyColor,O=l.descColor,z=l.authorColor,D=(l.prefixTag,l.nameFontSize),B=l.companyFontSize,F=l.descFontSize,U=(l.separatorWidth,l.separatorSpace,l.descSpace),W=l.iconimgStyle,H=l.imagePosition,V=l.imageAlignment,q=(l.block_id,l.source_type,l.nameSpace),G=l.imgHrPadding,$=l.imgVrPadding,Y=(l.iconImage,l.imageSize),K=l.imageWidth,Q=l.columns,X=l.tcolumns,J=l.mcolumns,Z=l.pauseOnHover,ee=l.infiniteLoop,te=l.transitionSpeed,ne=l.arrowDots,ae=l.arrowSize,re=l.arrowBorderSize,oe=l.arrowBorderRadius,ie=l.autoplay,le=l.autoplaySpeed,se=l.arrowColor,ue=l.rowGap,ce=l.columnGap,fe=l.contentPadding,pe=l.backgroundType,de=l.backgroundColor,me=l.backgroundImage,he=l.backgroundPosition,ge=l.backgroundSize,be=l.backgroundRepeat,ve=l.backgroundImageColor,ye=l.backgroundOpacity,we=l.borderStyle,_e=l.borderWidth,Ee=l.borderRadius,ke=l.borderColor,Ce=l.stack,xe=document.getElementById("uagb-testinomial-style-"+this.props.clientId);null!=xe&&"undefined"!=typeof xe&&(xe.innerHTML=Object(d.a)(this.props));var Se="uagb-testimonial-"+this.props.clientId,Te=wp.element.createElement(L,null,wp.element.createElement(N,{title:_("Typography"),initialOpen:!1},wp.element.createElement(I,{label:_("Testimonial Font Size"),value:F,onChange:function(e){return i({descFontSize:e})},min:10,max:100,initialPosition:16,beforeIcon:"editor-textcolor",allowReset:!0}),wp.element.createElement(I,{label:_("Name Font Size"),value:D,onChange:function(e){return i({nameFontSize:e})},min:10,max:100,initialPosition:30,beforeIcon:"editor-textcolor",allowReset:!0}),wp.element.createElement(I,{label:_("Company Font Size"),value:B,onChange:function(e){return i({companyFontSize:e})},min:10,max:100,initialPosition:16,beforeIcon:"editor-textcolor",allowReset:!0})),wp.element.createElement(T,{title:_("Color Settings"),initialOpen:!1,colorSettings:[{value:O,onChange:function(e){return i({descColor:e})},label:_("Testimonial Color")},{value:z,onChange:function(e){return i({authorColor:e})},label:_("Name Color")},{value:E,onChange:function(e){return i({companyColor:e})},label:_("Company Color")},{value:se,onChange:function(e){return i({arrowColor:e})},label:_("Arrow & Dots Color")}]})),Pe=wp.element.createElement(L,null,wp.element.createElement(N,{title:_("Spacing"),initialOpen:!1},wp.element.createElement(I,{label:_("Row Gap"),value:ue,onChange:function(e){return i({rowGap:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(I,{label:_("Column Gap"),value:ce,onChange:function(e){return i({columnGap:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(I,{label:_("Content Padding"),value:fe,onChange:function(e){return i({contentPadding:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(I,{label:_("Testimonial Bottom Margin"),value:U,onChange:function(e){return i({descSpace:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(I,{label:_("Name Bottom Margin"),value:q,onChange:function(e){return i({nameSpace:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(I,{label:_("Image Horizontal Padding"),value:G,onChange:function(e){return i({imgHrPadding:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(I,{label:_("Image Vertical Padding"),value:$,onChange:function(e){return i({imgVrPadding:e})},min:0,max:50,allowReset:!0}))),Oe=wp.element.createElement(L,null,wp.element.createElement(N,{title:_("Background"),initialOpen:!1},wp.element.createElement(R,{label:_("Background Type"),value:pe,onChange:function(e){return i({backgroundType:e})},options:[{value:"none",label:_("None")},{value:"color",label:_("Color")},{value:"image",label:_("Image")}]}),"color"==pe&&wp.element.createElement(L,null,wp.element.createElement("p",{className:"uagb-setting-label"},_("Background Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:de}}))),wp.element.createElement(x,{value:de,onChange:function(e){return i({backgroundColor:e})},allowReset:!0})),"image"==pe&&wp.element.createElement(L,null,wp.element.createElement(A,{className:"editor-bg-image-control",label:_("Background Image")},wp.element.createElement(P,{title:_("Select Background Image"),onSelect:this.onSelectImage,allowedTypes:["image"],value:me,render:function(e){var t=e.open;return wp.element.createElement(M,{isDefault:!0,onClick:t},_(me?"Replace image":"Select Background Image"))}}),me&&wp.element.createElement(M,{className:"uagb-rm-btn",onClick:this.onRemoveImage,isLink:!0,isDestructive:!0},_("Remove Image"))),me&&wp.element.createElement(L,null,wp.element.createElement(R,{label:_("Image Position"),value:he,onChange:function(e){return i({backgroundPosition:e})},options:[{value:"top-left",label:_("Top Left")},{value:"top-center",label:_("Top Center")},{value:"top-right",label:_("Top Right")},{value:"center-left",label:_("Center Left")},{value:"center-center",label:_("Center Center")},{value:"center-right",label:_("Center Right")},{value:"bottom-left",label:_("Bottom Left")},{value:"bottom-center",label:_("Bottom Center")},{value:"bottom-right",label:_("Bottom Right")}]}),wp.element.createElement(R,{label:_("Repeat"),value:be,onChange:function(e){return i({backgroundRepeat:e})},options:[{value:"no-repeat",label:_("No Repeat")},{value:"repeat",label:_("Repeat")},{value:"repeat-x",label:_("Repeat-x")},{value:"repeat-y",label:_("Repeat-y")}]}),wp.element.createElement(R,{label:_("Size"),value:ge,onChange:function(e){return i({backgroundSize:e})},options:[{value:"auto",label:_("Auto")},{value:"cover",label:_("Cover")},{value:"contain",label:_("Contain")}]}),wp.element.createElement(L,null,wp.element.createElement("p",{className:"uagb-setting-label"},_("Image Overlay Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ve}}))),wp.element.createElement(x,{value:ve,onChange:function(e){return i({backgroundImageColor:e})},allowReset:!0})))),"image"==pe&&me&&wp.element.createElement(I,{label:_("Opacity"),value:ye,onChange:function(e){return i({backgroundOpacity:e})},min:0,max:100,allowReset:!0,initialPosition:0})),wp.element.createElement(N,{title:_("Border"),initialOpen:!1},wp.element.createElement(R,{label:_("Border Style"),value:we,onChange:function(e){return i({borderStyle:e})},options:[{value:"none",label:_("None")},{value:"solid",label:_("Solid")},{value:"dotted",label:_("Dotted")},{value:"dashed",label:_("Dashed")},{value:"double",label:_("Double")},{value:"groove",label:_("Groove")},{value:"inset",label:_("Inset")},{value:"outset",label:_("Outset")},{value:"ridge",label:_("Ridge")}]}),"none"!=we&&wp.element.createElement(L,null,wp.element.createElement(I,{label:_("Border Width"),value:_e,onChange:function(e){return i({borderWidth:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(I,{label:_("Border Radius"),value:Ee,onChange:function(e){return i({borderRadius:e})},min:0,max:1e3,allowReset:!0}),wp.element.createElement(L,null,wp.element.createElement("p",{className:"uagb-setting-label"},_("Border Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ke}}))),wp.element.createElement(x,{value:ke,onChange:function(e){return i({borderColor:e})},allowReset:!0}))))),Ne=[{value:"thumbnail",label:_("Thumbnail")},{value:"medium",label:_("Medium")},{value:"full",label:_("Large")}],Re="dots"==ne||"arrows_dots"==ne,Ie="arrows"==ne||"arrows_dots"==ne,je={slidesToShow:Q,slidesToScroll:1,autoplaySpeed:le,autoplay:ie,infinite:ee,pauseOnHover:Z,speed:te,arrows:Ie,dots:Re,rtl:!1,draggable:!1,nextArrow:wp.element.createElement(e,{arrowSize:ae}),prevArrow:wp.element.createElement(t,{arrowSize:ae}),responsive:[{breakpoint:1024,settings:{slidesToShow:X,slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:J,slidesToScroll:1}}]},Ae=function(e){var t=null;return b[e]&&"undefined"!==typeof b[e]&&(t=b[e].image),wp.element.createElement(N,{key:e,title:_("Image")+" "+(e+1)+" "+_("Settings"),initialOpen:!0},wp.element.createElement(A,{className:"editor-bg-image-control",label:_("")},wp.element.createElement(P,{title:_("Select Image"+(e+1)),onSelect:function(t){n.onSelectTestImage(t,e)},allowedTypes:["image"],value:t,render:function(t){var a=t.open;return wp.element.createElement(M,{isDefault:!0,onClick:a},n.getImageName(b[e].image))}}),t&&null!==b[e].image.url&&""!==b[e].image.url&&wp.element.createElement(M,{className:"uagb-rm-btn",key:e,onClick:function(t){n.onRemoveTestImage(e)},isLink:!0,isDestructive:!0},_("Remove Image"))))},Me=wp.element.createElement(L,null,wp.element.createElement(N,{title:_("Carousel"),initialOpen:!1},wp.element.createElement(j,{label:_("Pause On Hover"),checked:Z,onChange:this.togglePauseOnHover}),wp.element.createElement(j,{label:_("Autoplay"),checked:ie,onChange:this.toggleAutoplay}),1==ie&&wp.element.createElement(I,{label:_("Autoplay Speed (ms)"),value:le,onChange:function(e){return i({autoplaySpeed:e})},min:100,max:1e4}),wp.element.createElement(j,{label:_("Infinite Loop"),checked:ee,onChange:this.toggleInfiniteLoop}),wp.element.createElement(I,{label:_("Transition Speed (ms)"),value:te,onChange:function(e){return i({transitionSpeed:e})},min:100,max:5e3}),wp.element.createElement(R,{label:_("Show Arrows & Dots"),value:ne,onChange:function(e){return i({arrowDots:e})},options:[{value:"arrows",label:_("Only Arrows")},{value:"dots",label:_("Only Dots")},{value:"arrows_dots",label:_("Both Arrows & Dots")}]}),"dots"!=ne&&wp.element.createElement(L,null,wp.element.createElement(I,{label:_("Arrow Size"),value:ae,onChange:function(e){return i({arrowSize:e})},min:0,max:50}),wp.element.createElement(I,{label:_("Arrow Border Size"),value:re,onChange:function(e){return i({arrowBorderSize:e})},min:0,max:50}),wp.element.createElement(I,{label:_("Arrow Border Radius"),value:oe,onChange:function(e){return i({arrowBorderRadius:e})},min:0,max:50})))),ze=0;b.map(function(e,t){var n=b[t];if(n&&"undefined"!==typeof n){var a=n.image;"undefined"!==typeof a&&null!==a&&""!==a&&ze++}});var De=wp.element.createElement(L,null,wp.element.createElement(S,null,wp.element.createElement(N,{title:_("General"),initialOpen:!0},wp.element.createElement(I,{label:_("Number of Testimonials"),value:h,onChange:function(e){var t=[].concat(a(b));if(t.length<e){var n=Math.abs(e-t.length);g()(n,function(e){t.push({description:"I have been working with these guys since years now! With lots of hard work and timely communication they made sure they delivered the best to me. Highly recommended!",name:"John Doe",company:"Company"+(t.length+1),image:""})}),i({test_block:t})}else{for(var r=Math.abs(e-t.length),o=t,l=0;l<r;l++)o.pop();i({test_block:o})}i({test_item_count:e})},min:0,max:10,allowReset:!0}),wp.element.createElement(I,{label:_("Columns"),value:Q,onChange:function(e){return i({columns:e})},min:1,max:h}),wp.element.createElement(I,{label:_("Columns (Tablet)"),value:X,onChange:function(e){return i({tcolumns:e})},min:1,max:h}),wp.element.createElement(I,{label:_("Columns (Mobile)"),value:J,onChange:function(e){return i({mcolumns:e})},min:1,max:h})),Me,wp.element.createElement(N,{title:_("Image"),initialOpen:!1},g()(h,function(e){return Ae(e)}),ze>0&&wp.element.createElement(L,null,wp.element.createElement(R,{label:_("Image Position"),value:H,onChange:function(e){return i({imagePosition:e})},options:[{value:"top",label:_("Top")},{value:"bottom",label:_("Bottom")},{value:"left",label:_("Left")},{value:"right",label:_("Right")}]}),("left"==H||"right"==H)&&wp.element.createElement(L,null,wp.element.createElement(R,{label:_("Vertical ALignment"),value:V,onChange:function(e){return i({imageAlignment:e})},options:[{value:"top",label:_("Top")},{value:"middle",label:_("Middle")}]}),wp.element.createElement(R,{label:_("Stack on"),value:Ce,options:[{value:"none",label:_("None")},{value:"tablet",label:_("Tablet")},{value:"mobile",label:_("Mobile")}],help:_("Note: Choose on what breakpoint the Info Box will stack."),onChange:function(e){return i({stack:e})}})),wp.element.createElement(R,{label:_("Image Style"),value:W,onChange:function(e){return i({iconimgStyle:e})},options:[{value:"normal",label:_("Normal")},{value:"circle",label:_("Circle")},{value:"square",label:_("Square")}]}),wp.element.createElement(R,{label:_("Image Size"),options:Ne,value:Y,onChange:function(e){return i({imageSize:e})}}),wp.element.createElement(I,{label:_("Width"),value:K,onChange:function(e){return i({imageWidth:e})},min:0,max:500,allowReset:!0}))),Te,Pe,Oe));return wp.element.createElement(L,null,wp.element.createElement(C,{key:"controls"},wp.element.createElement(k,{value:w,onChange:function(e){return i({headingAlign:e})}})),De,wp.element.createElement("div",{className:s()(o,"uagb-testomonial__outer-wrap uagb-slick-carousel uagb-tm__arrow-outside"),id:Se},wp.element.createElement(v.a,y({className:s()("is-carousel","uagb-tm__columns-"+Q,"uagb-tm__items")},je),b.map(function(e,t){return wp.element.createElement("div",{className:s.a.apply(void 0,["uagb-testimonial__wrap"].concat(a(Object(p.a)(l)))),key:"wrap-"+t},wp.element.createElement("div",{className:"uagb-tm__content",key:"tm_content-"+t},wp.element.createElement("div",{className:"uagb-tm__overlay"}),("top"==H||"left"==H)&&wp.element.createElement(m.a,{attributes:l,index_value:t}),wp.element.createElement("div",{className:"uagb-tm__text-wrap"},wp.element.createElement(L,null,wp.element.createElement("div",{className:"uagb-testinomial-text-wrap",key:"text-wrap-"+t},wp.element.createElement(f.a,{attributes:l,setAttributes:i,props:n.props,index_value:t}))),wp.element.createElement("div",{className:"uagb-tm__meta"},wp.element.createElement("div",{className:"uagb-tm__meta-inner"},"bottom"==H&&wp.element.createElement(m.a,{attributes:l,index_value:t}),wp.element.createElement(L,null,wp.element.createElement("div",{className:"uagb-testimonial-details",key:"tm_wraps-"+t},wp.element.createElement(u.a,{attributes:l,setAttributes:i,props:n.props,index_value:t}),wp.element.createElement(c.a,{attributes:l,setAttributes:i,props:n.props,index_value:t})))))),"right"==H&&wp.element.createElement(m.a,{attributes:l,index_value:t})))}))))}},{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId});var e=document.createElement("style");e.setAttribute("id","uagb-testinomial-style-"+this.props.clientId),document.head.appendChild(e)}}]),t}(D);t.a=B},function(e,t,n){"use strict";function a(e){var t=e.attributes,n=t.headingAlign,a=t.companyColor,r=t.descColor,o=t.authorColor,i=t.nameFontSize,l=t.companyFontSize,s=t.descFontSize,u=t.descSpace,c=t.block_id,f=t.nameSpace,p=t.imgVrPadding,d=t.imgHrPadding,m=t.imageWidth,h=t.rowGap,g=t.columnGap,b=t.contentPadding,v=t.backgroundColor,y=t.backgroundImage,w=t.backgroundPosition,_=t.backgroundSize,E=t.backgroundRepeat,k=t.backgroundImageColor,C=t.backgroundOpacity,x=t.borderStyle,S=t.borderWidth,T=t.borderRadius,P=t.borderColor,O=t.arrowColor,N=t.test_item_count,R=t.columns,I=t.arrowDots;if(e.clientId)var j="uagb-testimonial-"+e.clientId;else var j="uagb-testimonial-"+c;var A="center";"left"==n?A="flex-start":"right"==n&&(A="flex-end");var M={};M[".uagb-testimonial__wrap"]={"padding-left":g/2+"px","padding-right":g/2+"px","margin-bottom":h+"px"},M[".uagb-testimonial__wrap .uagb-tm__image-content"]={"padding-left":d+"px","padding-right":d+"px","padding-top":p+"px","padding-bottom":p+"px"},M[".uagb-tm__image-position-top .uagb-tm__image-content"]={"justify-content":A},M[".uagb-tm__image img"]={width:m+"px","max-width":m+"px"},M[".uagb-tm__content"]={"text-align":n,padding:b+"px"},M[".uagb-tm__author-name"]={"font-size":i+"px",color:o,"margin-bottom":f+"px"},M[".uagb-tm__company"]={"font-size":l+"px",color:a},M[".uagb-tm__desc"]={"font-size":s+"px",color:r,"margin-bottom":u+"px"},M[".uagb-testimonial__wrap.uagb-tm__bg-type-color .uagb-tm__content"]={"background-color":v};var z=w.replace("-"," ");M[".uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__content"]={"background-image":y?"url("+y.url+")":null,"background-position":z,"background-repeat":E,"background-size":_},M[".uagb-testimonial__wrap.uagb-tm__bg-type-image .uagb-tm__overlay"]={"background-color":k,opacity:"undefined"!=typeof C?(100-C)/100:.5},"none"!=x&&(M[".uagb-testimonial__wrap .uagb-tm__content"]={"border-color":P,"border-style":x,"border-width":S+"px","border-radius":T+"px"}),M["ul.slick-dots li button:before"]={color:O},M["ul.slick-dots li.slick-active button:before"]={color:O},1!==N&&N!==R&&"dots"!==I||(M[".uagb-slick-carousel.uagb-tm__arrow-outside"]={padding:0});var D="";for(var L in M){D+=".uagb-slick-carousel.uagb-tm__arrow-outside"===L?"#wpwrap #"+j+L+" { ":"#wpwrap #"+j+" "+L+" { ";var B=M[L],F="";for(var U in B)F+=U+": "+B[U]+";";D+=F+" } "}return D}t.a=a},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}for(var r,o=[],i=1;i<=3;i++){var l="Company"+i;o.push({description:"I have been working with these guys since years now! With lots of hard work and timely communication they made sure they delivered the best to me. Highly recommended!",name:"John Doe ",company:l,image:""})}var s=(r={test_item_count:{type:"number",default:3},test_block:{type:"array",default:o},headingAlign:{type:"string",default:"center"},descColor:{type:"string",default:"#333"},companyColor:{type:"string",default:"#888888"},authorColor:{type:"string",default:"#333"},iconimgStyle:{type:"string",default:"circle"},imagePosition:{type:"string",default:"bottom"},imageAlignment:{type:"string",default:"top"},authorFontSize:{type:"number"},nameFontSize:{type:"number"},companyFontSize:{type:"number",default:15},descFontSize:{type:"number"},nameSpace:{type:"number",default:5},descSpace:{type:"number",default:15},block_id:{type:"string",default:"not_set"},authorSpace:{type:"number",default:5},imgVrPadding:{type:"number",default:10},imgHrPadding:{type:"number",default:10},imgTopPadding:{type:"number",default:10},imgBottomPadding:{type:"number",default:10},iconImage:{type:"object",default:{url:"",alt:"InfoBox placeholder img"}},imageSize:{type:"string",default:"thumbnail"},imageWidth:{type:"number",default:60},columns:{type:"number",default:1},tcolumns:{type:"number",default:1},mcolumns:{type:"number",default:1},pauseOnHover:{type:"boolean",default:!0},infiniteLoop:{type:"boolean",default:!0},transitionSpeed:{type:"number",default:500},autoplay:{type:"boolean",default:!0},autoplaySpeed:{type:"number",default:2e3},arrowDots:{type:"string",default:"arrows_dots"},arrowSize:{type:"number",default:20},arrowBorderSize:{type:"number",default:1},arrowBorderRadius:{type:"number",default:0},arrowColor:{type:"string",default:"#aaaaaa"},rowGap:{type:"number",default:10},columnGap:{type:"number",default:10},contentPadding:{type:"number",default:5},backgroundType:{type:"string"},backgroundImage:{type:"object"},backgroundPosition:{type:"string",default:"center-center"},backgroundSize:{type:"string",default:"cover"},backgroundRepeat:{type:"string",default:"no-repeat"},backgroundColor:{type:"string"},backgroundImageColor:{type:"string"},borderStyle:{type:"string",default:"none"},borderWidth:{type:"number",default:"1"},borderRadius:{type:"number"},borderColor:{type:"string"},backgroundOpacity:{type:"number",default:50}},a(r,"arrowColor",{type:"string",default:"#333"}),a(r,"stack",{type:"string",default:"tablet"}),r);t.a=s},function(e,t){},function(e,t){},function(e,t,n){"use strict";function a(e,t,n){var a=n?"_blank":"_self";return wp.element.createElement("li",{className:"uagb-team__social-icon"},wp.element.createElement("a",{href:t,target:a,title:"",rel:"noopener noreferrer"},wp.element.createElement("span",{className:e})))}var r=n(0),o=n.n(r),i=n(3),l=n(346),s=n(348),u=n(349),c=(n.n(u),n(350)),f=(n.n(c),wp.i18n.__),p=wp.blocks.registerBlockType,d=wp.editor.RichText;wp.element.Fragment;p("uagb/team",{title:uagb_blocks_info.blocks["uagb/team"].title,description:uagb_blocks_info.blocks["uagb/team"].description,icon:i.a.team,keywords:[f("team"),f("members"),f("uagb")],category:uagb_blocks_info.category,attributes:s.a,edit:l.a,save:function(e){var t=e.attributes,n=t.block_id,r=t.align,i=t.tag,l=t.title,s=t.prefix,u=t.description_text,c=t.image,f=t.imgSize,p=t.imgStyle,m=t.imgPosition,h=t.twitterIcon,g=t.fbIcon,b=t.linkedinIcon,v=t.pinIcon,y=t.twitterLink,w=t.fbLink,_=t.linkedinLink,E=t.pinLink,k=t.socialTarget,C=t.socialEnable,x=t.stack,S="",T="";c&&(S=c.sizes,T=c.sizes&&S[f]?S[f].url:c.url);var P="";return""!=T&&(P=wp.element.createElement("div",{className:o()("uagb-team__image-wrap","uagb-team__image-crop-"+p)},wp.element.createElement("img",{className:"",src:T,alt:c.alt?c.alt:""}))),wp.element.createElement("div",{className:o()(e.className,"uagb-team","uagb-team__outer-wrap","uagb-team__image-position-"+m,"uagb-team__align-"+r,"uagb-team__stack-"+x),id:"uagb-team-"+n},wp.element.createElement("div",{className:"uagb-team__wrap"},"left"==m&&P,wp.element.createElement("div",{className:"uagb-team__content"},"above"==m&&P,wp.element.createElement("div",{className:"uagb-team__title-wrap"},wp.element.createElement(d.Content,{tagName:i,value:l,className:"uagb-team__title"}),wp.element.createElement(d.Content,{tagName:"span",value:s,className:"uagb-team__prefix"})),wp.element.createElement("div",{className:"uagb-team__desc-wrap"},wp.element.createElement(d.Content,{tagName:"p",value:u,className:"uagb-team__desc"})),C&&wp.element.createElement("div",{className:"uagb-team__social-icon-wrap"},wp.element.createElement("ul",{className:"uagb-team__social-list"},""!=h&&a(h,y,k),""!=g&&a(g,w,k),""!=b&&a(b,_,k),""!=v&&a(v,E,k)))),"right"==m&&P))}})},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var l=n(0),s=n.n(l),u=n(17),c=n(18),f=n.n(c),p=n(347),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),m=wp.i18n.__,h=wp.editor,g=h.AlignmentToolbar,b=h.BlockControls,v=h.InspectorControls,y=h.RichText,w=h.PanelColorSettings,_=h.MediaUpload,E=wp.components,k=E.PanelBody,C=E.SelectControl,x=E.RangeControl,S=E.Button,T=E.TextControl,P=E.BaseControl,O=E.ToggleControl,N=wp.element,R=N.Component,I=N.Fragment,j=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),d(t,[{key:"social_html",value:function(e,t,n){var a=n?"_blank":"_self";return wp.element.createElement("li",{className:"uagb-team__social-icon"},wp.element.createElement("a",{href:t,target:a,title:"",rel:"noopener noreferrer"},wp.element.createElement("span",{className:e})))}},{key:"render",value:function(){var e,t,n=this.props,r=(n.isSelected,n.className),o=n.setAttributes,i=n.attributes,l=n.mergeBlocks,c=n.insertBlocksAfter,d=n.onReplace,h=(i.block_id,i.align),E=i.tag,N=i.title,R=i.prefix,j=i.description_text,A=i.titleColor,M=i.prefixColor,z=i.descColor,D=i.titleFontSize,L=i.prefixFontSize,B=i.descFontSize,F=i.socialFontSize,U=i.image,W=i.imgStyle,H=i.imgAlign,V=i.imgSize,q=i.imgWidth,G=i.imgPosition,$=i.titleSpace,Y=i.descSpace,K=i.prefixSpace,Q=i.imgLeftMargin,X=i.imgRightMargin,J=i.imgTopMargin,Z=i.imgBottomMargin,ee=i.twitterIcon,te=i.fbIcon,ne=i.linkedinIcon,ae=i.pinIcon,re=i.twitterLink,oe=i.fbLink,ie=i.linkedinLink,le=i.pinLink,se=i.socialColor,ue=i.socialHoverColor,ce=i.socialSpace,fe=i.socialTarget,pe=i.socialEnable,de=i.stack,me=document.getElementById("uagb-team-style-"+this.props.clientId);null!=me&&"undefined"!=typeof me&&(me.innerHTML=Object(p.a)(this.props));var he=function(e){if(!e||!e.url)return void o({image:null});e.type&&"image"==e.type&&o({image:e})},ge=function(e){o({image:null})},be="",ve="";U&&(be=U.sizes,ve=U.sizes&&be[V]?be[V].url:U.url);var ye="";""!=ve&&(ye=wp.element.createElement("div",{className:s()("uagb-team__image-wrap","uagb-team__image-crop-"+W)},wp.element.createElement("img",{className:"",src:ve,alt:U.alt?U.alt:""})));var we=wp.element.createElement("div",{className:"uagb-team__desc-wrap"},wp.element.createElement(y,(e={tagName:"p",value:j,placeholder:m("Write a Description"),className:"uagb-team__desc",onChange:function(e){return o({description_text:e})},onMerge:l},a(e,"placeholder",m("Write a Description")),a(e,"unstableOnSplit",c?function(e,t){for(var n=arguments.length,a=Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];o({content:e}),c([].concat(a,[createBlock("core/paragraph",{content:t})]))}:void 0),a(e,"onRemove",function(){return d([])}),e))),_e=wp.element.createElement("div",{className:"uagb-team__social-icon-wrap"},wp.element.createElement("ul",{className:"uagb-team__social-list"},""!=ee&&this.social_html(ee,re,fe),""!=te&&this.social_html(te,oe,fe),""!=ne&&this.social_html(ne,ie,fe),""!=ae&&this.social_html(ae,le,fe))),Ee=wp.element.createElement("div",{className:"uagb-team__title-wrap"},wp.element.createElement(y,{tagName:E,value:N,className:"uagb-team__title",onChange:function(e){return o({title:e})},multiline:!1,placeholder:m("Write a Title"),onMerge:l,unstableOnSplit:c?function(e,t){for(var n=arguments.length,a=Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];o({content:e}),c([].concat(a,[createBlock("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return d([])}}),wp.element.createElement(y,(t={tagName:"div",value:R,placeholder:m("Enter Prefix"),className:"uagb-team__prefix",onChange:function(e){return o({prefix:e})},onMerge:l},a(t,"placeholder",m("Write a Designation")),a(t,"unstableOnSplit",c?function(e,t){for(var n=arguments.length,a=Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];o({content:e}),c([].concat(a,[createBlock("core/paragraph",{content:t})]))}:void 0),a(t,"onRemove",function(){return d([])}),t)));return wp.element.createElement(I,null,"above"==G&&wp.element.createElement(b,{key:"controls"},wp.element.createElement(g,{value:h,onChange:function(e){return o({align:e})}})),wp.element.createElement(v,null,wp.element.createElement(k,{title:m("Image")},wp.element.createElement(P,{className:"editor-bg-image-control",label:m("Team Member Image")},wp.element.createElement(_,{title:m("Select Image"),onSelect:he,allowedTypes:["image"],value:U,render:function(e){var t=e.open;return wp.element.createElement(S,{isDefault:!0,onClick:t},m(U?"Replace image":"Select Image"))}}),U&&wp.element.createElement(S,{className:"uagb-rm-btn",onClick:ge,isLink:!0,isDestructive:!0},m("Remove Image"))),U&&wp.element.createElement(C,{label:m("Position"),value:G,onChange:function(e){return o({imgPosition:e})},options:[{value:"above",label:m("Above")},{value:"left",label:m("Left")},{value:"right",label:m("Right")}]}),"above"!=G&&U&&wp.element.createElement(C,{label:m("Stack on"),value:de,options:[{value:"none",label:m("None")},{value:"tablet",label:m("Tablet")},{value:"mobile",label:m("Mobile")}],help:m("Note: Choose on what breakpoint the Team will stack."),onChange:function(e){return o({stack:e})}}),U&&wp.element.createElement(C,{label:m("Image Style"),value:W,onChange:function(e){return o({imgStyle:e})},options:[{value:"normal",label:m("Normal")},{value:"circle",label:m("Circle")},{value:"square",label:m("Square")}]}),G&&"above"!==G&&U&&wp.element.createElement(C,{label:m("Vertical Alignment"),value:H,onChange:function(e){return o({imgAlign:e})},options:[{value:"top",label:m("Top")},{value:"middle",label:m("Middle")}]}),U&&wp.element.createElement(I,null,wp.element.createElement(C,{label:m("Size"),options:[{value:"thumbnail",label:m("Thumbnail")},{value:"medium",label:m("Medium")},{value:"full",label:m("Large")}],value:V,onChange:function(e){return o({imgSize:e})}}),wp.element.createElement(x,{label:m("Width"),value:q,onChange:function(e){return o({imgWidth:e})},min:0,max:500,allowReset:!0}))),wp.element.createElement(k,{title:m("Social Links"),initialOpen:!1},wp.element.createElement(O,{label:m("Enable Social Links"),checked:pe,onChange:function(e){return o({socialEnable:!pe})}}),pe&&wp.element.createElement(I,null,wp.element.createElement(O,{label:m("Open Links in New Window"),checked:fe,onChange:function(e){return o({socialTarget:!fe})}}),wp.element.createElement(k,{title:m("Twitter"),initialOpen:!1},wp.element.createElement("p",{className:"components-base-control__label"},m("Icon")),wp.element.createElement(f.a,{icons:u.a,renderUsing:"class",theme:"default",value:ee,onChange:function(e){return o({twitterIcon:e})},isMulti:!1}),wp.element.createElement("p",{className:"components-base-control__label"},m("URL")),wp.element.createElement(T,{value:re,onChange:function(e){return o({twitterLink:e})},placeholder:m("Enter Twitter URL")})),wp.element.createElement(k,{title:m("FaceBook"),initialOpen:!1},wp.element.createElement("p",{className:"components-base-control__label"},m("Icon")),wp.element.createElement(f.a,{icons:u.a,renderUsing:"class",theme:"default",value:te,onChange:function(e){return o({fbIcon:e})},isMulti:!1}),wp.element.createElement("p",{className:"components-base-control__label"},m("URL")),wp.element.createElement(T,{value:oe,onChange:function(e){return o({fbLink:e})},placeholder:m("Enter FaceBook URL")})),wp.element.createElement(k,{title:m("LinkedIn"),initialOpen:!1},wp.element.createElement("p",{className:"components-base-control__label"},m("Icon")),wp.element.createElement(f.a,{icons:u.a,renderUsing:"class",theme:"default",value:ne,onChange:function(e){return o({linkedinIcon:e})},isMulti:!1}),wp.element.createElement("p",{className:"components-base-control__label"},m("URL")),wp.element.createElement(T,{value:ie,onChange:function(e){return o({linkedinLink:e})},placeholder:m("Enter LinkedIn URL")})),wp.element.createElement(k,{title:m("Pinterest"),initialOpen:!1},wp.element.createElement("p",{className:"components-base-control__label"},m("Icon")),wp.element.createElement(f.a,{icons:u.a,renderUsing:"class",theme:"default",value:ae,onChange:function(e){return o({pinIcon:e})},isMulti:!1}),wp.element.createElement("p",{className:"components-base-control__label"},m("URL")),wp.element.createElement(T,{value:le,onChange:function(e){return o({pinLink:e})},placeholder:m("Enter Pinterest URL")})))),wp.element.createElement(k,{title:m("Typography"),initialOpen:!1},wp.element.createElement(C,{label:m("Title Tag"),value:E,onChange:function(e){return o({tag:e})},options:[{value:"h1",label:m("H1")},{value:"h2",label:m("H2")},{value:"h3",label:m("H3")},{value:"h4",label:m("H4")},{value:"h5",label:m("H5")},{value:"h6",label:m("H6")}]}),wp.element.createElement(x,{label:m("Title Font Size"),value:D,onChange:function(e){return o({titleFontSize:e})},min:1,max:100,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:30}),wp.element.createElement(x,{label:m("Designation Font Size"),value:L,onChange:function(e){return o({prefixFontSize:e})},min:1,max:100,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:16}),wp.element.createElement(x,{label:m("Description Font Size"),value:B,onChange:function(e){return o({descFontSize:e})},min:1,max:100,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:16}),wp.element.createElement(x,{label:m("Social Icon Font Size"),value:F,onChange:function(e){return o({socialFontSize:e})},min:1,max:100,beforeIcon:"editor-textcolor",allowReset:!0})),wp.element.createElement(w,{title:m("Color Settings"),initialOpen:!1,colorSettings:[{value:A,onChange:function(e){return o({titleColor:e})},label:m("Title Color")},{value:M,onChange:function(e){return o({prefixColor:e})},label:m("Designation")},{value:z,onChange:function(e){return o({descColor:e})},label:m("Description")},{value:se,onChange:function(e){return o({socialColor:e})},label:m("Social Icon")},{value:ue,onChange:function(e){return o({socialHoverColor:e})},label:m("Social Icon Hover")}]}),wp.element.createElement(k,{title:m("Spacing"),initialOpen:!1},wp.element.createElement(x,{label:m("Title Bottom Spacing"),value:$,onChange:function(e){return o({titleSpace:e})},min:0,max:50,allowReset:!0,initialPosition:0}),wp.element.createElement(x,{label:m("Designation Bottom Spacing"),value:K,onChange:function(e){return o({prefixSpace:e})},min:0,max:50,allowReset:!0,initialPosition:0}),wp.element.createElement(x,{label:m("Description Bottom Spacing"),value:Y,onChange:function(e){return o({descSpace:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(x,{label:m("Inter Social Icon Spacing"),value:ce,onChange:function(e){return o({socialSpace:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(k,{title:m("Image Margins"),initialOpen:!0},"above"!=G&&wp.element.createElement(x,{label:m("Left Margin"),value:Q,onChange:function(e){return o({imgLeftMargin:e})},min:0,max:50,beforeIcon:"editor-textcolor",allowReset:!0}),"above"!=G&&wp.element.createElement(x,{label:m("Right Margin"),value:X,onChange:function(e){return o({imgRightMargin:e})},min:0,max:50,beforeIcon:"editor-textcolor",allowReset:!0}),wp.element.createElement(x,{label:m("Top Margin"),value:J,onChange:function(e){return o({imgTopMargin:e})},min:0,max:50,beforeIcon:"editor-textcolor",allowReset:!0}),wp.element.createElement(x,{label:m("Bottom Margin"),value:Z,onChange:function(e){return o({imgBottomMargin:e})},min:0,max:50,beforeIcon:"editor-textcolor",allowReset:!0})))),wp.element.createElement("div",{className:s()(r,"uagb-team","uagb-team__outer-wrap","uagb-team__image-position-"+G,"uagb-team__align-"+h,"uagb-team__stack-"+de),id:"uagb-team-"+this.props.clientId},wp.element.createElement("div",{className:"uagb-team__wrap"},"left"==G&&ye,wp.element.createElement("div",{className:"uagb-team__content"},"above"==G&&ye,Ee,we,pe&&_e),"right"==G&&ye)))}},{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId});var e=document.createElement("style");e.setAttribute("id","uagb-team-style-"+this.props.clientId),document.head.appendChild(e)}}]),t}(R);t.a=j},function(e,t,n){"use strict";function a(e){var t=e.attributes,n=t.tag,a=t.align,r=t.titleColor,o=t.prefixColor,i=t.descColor,l=t.titleFontSize,s=t.prefixFontSize,u=t.descFontSize,c=(t.imgStyle,t.imgAlign),f=(t.imgSize,t.imgWidth),p=t.imgPosition,d=t.titleSpace,m=t.descSpace,h=t.prefixSpace,g=t.imgLeftMargin,b=t.imgRightMargin,v=t.imgTopMargin,y=t.imgBottomMargin,w=t.socialColor,_=t.socialHoverColor,E=t.socialSpace,k=t.socialFontSize,C={" .editor-rich-text p.uagb-team__desc.editor-rich-text__tinymce":{"font-size":u+"px",color:i,"margin-bottom":m+"px"}," .uagb-team__prefix":{"font-size":s+"px",color:o}," .uagb-team__desc-wrap":{"margin-top":h+"px"}," .uagb-team__social-icon a":{color:w+" !important","font-size":k+"px !important",width:k+"px !important",height:k+"px !important"}," .uagb-team__social-icon:hover a":{color:_+" !important"},".uagb-team__image-position-left .uagb-team__social-icon":{"margin-right":E+"px !important","margin-left":"0"},".uagb-team__image-position-right .uagb-team__social-icon":{"margin-left":E+"px !important","margin-right":"0"},".uagb-team__image-position-above.uagb-team__align-center .uagb-team__social-icon":{"margin-right":E/2+"px !important","margin-left":E/2+"px !important"},".uagb-team__image-position-above.uagb-team__align-left .uagb-team__social-icon":{"margin-right":E+"px !important","margin-left":"0"},".uagb-team__image-position-above.uagb-team__align-right .uagb-team__social-icon":{"margin-left":E+"px !important","margin-right":"0"}," .uagb-team__image-wrap":{"margin-top":v+"px","margin-bottom":y+"px","margin-left":g+"px","margin-right":b+"px",width:f+"px"}};"above"==p&&("center"==a?(C[" .uagb-team__image-wrap"]["margin-left"]="auto",C[" .uagb-team__image-wrap"]["margin-right"]="auto"):"left"==a?C[" .uagb-team__image-wrap"]["margin-right"]="auto":"right"==a&&(C[" .uagb-team__image-wrap"]["margin-left"]="auto")),"above"!=p&&"middle"==c&&(C[" .uagb-team__image-wrap"]["align-self"]="center"),C[" .editor-rich-text "+n+".uagb-team__title"]={"font-size":l+"px",color:r,"margin-bottom":d+"px"};var x="";for(var S in C){x+="#uagb-team-"+e.clientId,x+=S+" { ";var T=C[S],P="";for(var O in T)P+=O+": "+T[O]+";";x+=P+" } "}return x}t.a=a},function(e,t,n){"use strict";var a={block_id:{type:"string"},align:{type:"string",default:"center"},tag:{type:"string",default:"h3"},title:{selector:"h1,h2,h3,h4,h5,h6",default:"John Doe"},prefix:{selector:"div.uagb-team__prefix",default:"Designation"},description_text:{selector:"p",default:"Click here to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo."},titleColor:{type:"string"},prefixColor:{type:"string",default:"#888888"},descColor:{type:"string"},socialColor:{type:"string",default:"#333"},socialHoverColor:{type:"string"},titleFontSize:{type:"number"},prefixFontSize:{type:"number",default:15},descFontSize:{type:"number"},socialFontSize:{type:"number",default:20},image:{type:"object"},imgStyle:{type:"string",default:"normal"},imgPosition:{type:"string",default:"above"},imgAlign:{type:"string",default:"top"},imgSize:{type:"string",default:"thumbnail"},imgWidth:{type:"number",default:120},titleSpace:{type:"number"},prefixSpace:{type:"number"},descSpace:{type:"number",default:10},imgLeftMargin:{type:"number",default:20},imgRightMargin:{type:"number",default:20},imgTopMargin:{type:"number",default:15},imgBottomMargin:{type:"number",default:15},socialEnable:{type:"boolean",default:!0},socialSpace:{type:"number",default:20},socialTarget:{type:"boolean",default:!1},twitterIcon:{type:"string",default:"fab fa-twitter"},fbIcon:{type:"string",default:"fab fa-facebook"},linkedinIcon:{type:"string",default:"fab fa-linkedin"},pinIcon:{type:"string",default:"fab fa-pinterest"},twitterLink:{type:"string",default:"#"},fbLink:{type:"string",default:"#"},linkedinLink:{type:"string",default:"#"},pinLink:{type:"string",default:"#"},stack:{type:"string",default:"tablet"}};t.a=a},function(e,t){},function(e,t){},function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(3),i=n(352),l=(n.n(i),n(353)),s=(n.n(l),n(354)),u=n(355),c=n(130),f=wp.i18n.__;(0,wp.blocks.registerBlockType)("uagb/social-share",{title:uagb_blocks_info.blocks["uagb/social-share"].title,description:uagb_blocks_info.blocks["uagb/social-share"].description,icon:o.a.social_share,category:uagb_blocks_info.category,keywords:[f("social share"),f("icon"),f("uagb")],attributes:s.a,edit:u.a,save:function(e){var t=(e.attributes,e.className),n=e.attributes,a=n.block_id,o=(n.align,n.items,n.socials),i=n.social_count,l=n.social_layout,s=n.current_url;return wp.element.createElement("div",{className:r()(t,"uagb-social-share__outer-wrap","uagb-social-share__layout-"+l),id:"uagb-social-share-"+a},wp.element.createElement("div",{className:"uagb-social-share__wrap"},o.map(function(e,t){if(!(i<=t)){var n="";null!=s&&(n=c.a[e.type]+encodeURI(s));var a="";return"icon"==e.image_icon?e.icon&&(a=wp.element.createElement("span",{className:r()(e.icon,"uagb-ss__source-icon")})):e.image&&(a=wp.element.createElement("img",{className:"uagb-ss__source-image",src:e.image.url})),wp.element.createElement("div",{className:r()("uagb-ss-repeater-"+t,"uagb-ss__wrapper"),key:t},wp.element.createElement("a",{className:"uagb-ss__link",href:n,rel:"noopener noreferrer"},wp.element.createElement("span",{className:"uagb-ss__source-wrap"},a)))}})))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";for(var a=[],r=1;r<=1;r++)a.push({type:"facebook",image_icon:"icon",icon:"fab fa-facebook",image:"",icon_color:"#3a3a3a",icon_hover_color:"",icon_bg_color:"",icon_bg_hover_color:""});var o={block_id:{type:"string"},current_url:{type:"string"},align:{type:"string",default:"center"},social_count:{type:"number",default:1},socials:{type:"array",default:a},gap:{type:"number",default:10},size:{type:"number",default:40},bgSize:{type:"number",default:0},borderRadius:{type:"number",default:0},social_layout:{type:"string",default:"horizontal"},stack:{type:"string",default:"none"}};t.a=o},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var l=n(0),s=n.n(l),u=n(8),c=n.n(u),f=n(17),p=n(18),d=n.n(p),m=n(356),h=n(130),g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},b=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),v=wp.i18n.__,y=wp.element,w=y.Component,_=y.Fragment,E=wp.editor,k=E.BlockControls,C=E.BlockAlignmentToolbar,x=E.InspectorControls,S=E.PanelColorSettings,T=E.MediaUpload,P=wp.components,O=P.PanelBody,N=P.SelectControl,R=P.RangeControl,I=P.Button,j=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),b(t,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId}),this.props.setAttributes({current_url:wp.data.select("core/editor").getPermalink()});var e=document.createElement("style");e.setAttribute("id","uagb-style-social-share-"+this.props.clientId),document.head.appendChild(e)}},{key:"saveSocials",value:function(e,t){var n=this.props,a=n.attributes;(0,n.setAttributes)({socials:a.socials.map(function(n,a){return t===a&&(n=g({},n,e)),n})})}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=(t.isSelected,n.align),i=n.className,l=n.social_count,u=n.socials,p=n.gap,g=n.stack,b=n.current_url,y=n.social_layout,w=n.size,E=n.borderRadius,P=n.bgSize,j=function(t){return wp.element.createElement(O,{key:t,title:v("Social Share")+" "+(t+1)+" "+v("Settings"),initialOpen:!1},wp.element.createElement(N,{label:v("Type"),value:u[t].type,options:[{value:"facebook",label:v("Facebook")},{value:"twitter",label:v("Twitter")},{value:"google",label:v("Google Plus")},{value:"pinterest",label:v("Pinterest")},{value:"linkedin",label:v("LinkedIn")},{value:"digg",label:v("Digg")},{value:"blogger",label:v("Blogger")},{value:"reddit",label:v("Reddit")},{value:"stumbleupon",label:v("StumbleUpon")},{value:"tumblr",label:v("Tumblr")},{value:"myspace",label:v("Myspace")},{value:"email",label:v("Email")}],onChange:function(n){e.saveSocials({type:n},t)}}),wp.element.createElement(N,{label:v("Image / Icon"),value:u[t].image_icon,options:[{value:"icon",label:v("Icon")},{value:"image",label:v("Image")}],onChange:function(n){e.saveSocials({image_icon:n},t)}}),"icon"==u[t].image_icon&&wp.element.createElement(_,null,wp.element.createElement("p",{className:"components-base-control__label"},v("Icon")),wp.element.createElement(d.a,{icons:f.a,renderUsing:"class",theme:"default",value:u[t].icon,onChange:function(n){e.saveSocials({icon:n},t)},isMulti:!1})),"image"==u[t].image_icon&&wp.element.createElement(_,null,wp.element.createElement(T,{title:v("Select Image"),onSelect:function(n){e.saveSocials({image:n},t)},allowedTypes:["image"],value:u[t].image,render:function(e){var n=e.open;return wp.element.createElement(I,{isDefault:!0,onClick:n},v(u[t].image?"Replace image":"Select Image"))}}),u[t].image&&wp.element.createElement(I,{className:"uagb-rm-btn",onClick:function(n){e.saveSocials({image:null},t)},isLink:!0,isDestructive:!0},v("Remove Image")),wp.element.createElement(S,{title:v("Color Settings"),colorSettings:[{value:u[t].icon_bg_color,onChange:function(n){return e.saveSocials({icon_bg_color:n},t)},label:v("Background Color")},{value:u[t].icon_bg_hover_color,onChange:function(n){return e.saveSocials({icon_bg_hover_color:n},t)},label:v("Background Hover Color")}]})),"icon"==u[t].image_icon&&wp.element.createElement(S,{title:v("Color Settings"),colorSettings:[{value:u[t].icon_color,onChange:function(n){return e.saveSocials({icon_color:n},t)},label:v("Color")},{value:u[t].icon_bg_color,onChange:function(n){return e.saveSocials({icon_bg_color:n},t)},label:v("Background Color")},{value:u[t].icon_hover_color,onChange:function(n){return e.saveSocials({icon_hover_color:n},t)},label:v("Hover Color")},{value:u[t].icon_bg_hover_color,onChange:function(n){return e.saveSocials({icon_bg_hover_color:n},t)},label:v("Background Hover Color")}]}))},A=document.getElementById("uagb-style-social-share-"+this.props.clientId);return null!=A&&"undefined"!=typeof A&&(A.innerHTML=Object(m.a)(this.props)),wp.element.createElement(_,null,wp.element.createElement(k,null,wp.element.createElement(C,{value:o,onChange:function(e){r({align:e})},controls:["left","center","right","full"]})),wp.element.createElement(x,null,wp.element.createElement(O,{title:v("Social Icon Count"),initialOpen:!0},wp.element.createElement(R,{label:v("Number of Social Icons"),value:l,onChange:function(e){var t=[].concat(a(u));if(t.length<e){var n=Math.abs(e-t.length);c()(n,function(e){t.push({type:t[0].type,image_icon:t[0].image_icon,icon:t[0].icon,image:t[0].image,icon_color:t[0].icon_color,icon_hover_color:t[0].icon_hover_color,icon_bg_color:t[0].icon_bg_color,icon_bg_hover_color:t[0].icon_bg_hover_color})}),r({socials:t})}r({social_count:e})},min:1,max:12})),c()(l,function(e){return j(e)}),wp.element.createElement(O,{title:v("General"),initialOpen:!1},wp.element.createElement(N,{label:v("Layout"),value:y,options:[{value:"horizontal",label:v("Horizontal")},{value:"vertical",label:v("Vertical")}],onChange:function(e){return r({social_layout:e})}}),"horizontal"==y&&wp.element.createElement(_,null,wp.element.createElement(N,{label:v("Stack on"),value:g,options:[{value:"none",label:v("None")},{value:"desktop",label:v("Desktop")},{value:"tablet",label:v("Tablet")},{value:"mobile",label:v("Mobile")}],onChange:function(e){return r({stack:e})}}),wp.element.createElement("p",{className:"uagb-note"},v("Note: Choose on what breakpoint the Icons will stack."))),wp.element.createElement(R,{label:v("Size"),value:w,onChange:function(e){return r({size:e})},min:0,max:500,initialPosition:40}),wp.element.createElement(R,{label:v("Background Size"),value:P,onChange:function(e){return r({bgSize:e})},min:0,max:500}),wp.element.createElement("p",{className:"uagb-note"},v("Note: Background Size option is useful when one adds background color to the icons.")),wp.element.createElement(R,{label:v("Circular Size"),value:E,onChange:function(e){return r({borderRadius:e})},min:0,max:500}),wp.element.createElement("p",{className:"uagb-note"},v("Note: Circular Size option is useful when one adds background color to the icons.")),wp.element.createElement(R,{label:v("Gap between Icon / Image"),value:p,onChange:function(e){return r({gap:e})},min:0,max:100}))),wp.element.createElement("div",{className:s()(i,"uagb-social-share__outer-wrap","uagb-social-share__layout-"+y),id:"uagb-social-share-"+this.props.clientId},wp.element.createElement("div",{className:"uagb-social-share__wrap"},u.map(function(e,t){if(!(l<=t)){null!=b&&h.a[e.type]+encodeURI(b);var n="";return"icon"==e.image_icon?e.icon&&(n=wp.element.createElement("span",{className:s()(e.icon,"uagb-ss__source-icon")})):e.image&&(n=wp.element.createElement("img",{className:"uagb-ss__source-image",src:e.image.url})),wp.element.createElement("div",{className:s()("uagb-ss-repeater-"+t,"uagb-ss__wrapper"),key:t},wp.element.createElement("a",{className:"uagb-ss__link",href:"javascript:void(0)",rel:"noopener noreferrer"},wp.element.createElement("span",{className:"uagb-ss__source-wrap"},n)))}}))))}}]),t}(w);t.a=j},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){var t,n=e.attributes,r=n.align,o=(n.className,n.social_count),i=n.socials,l=n.gap,s=n.social_layout,u=n.size,c=n.borderRadius,f=n.bgSize,p=n.stack,d={},m={},h={};i.map(function(e,t){o<=t||(d[" .uagb-ss-repeater-"+t+" a.uagb-ss__link"]={color:e.icon_color,padding:f+"px"},d[" .uagb-ss-repeater-"+t+":hover a.uagb-ss__link"]={color:e.icon_hover_color},d[" .uagb-ss-repeater-"+t]={background:e.icon_bg_color},d[" .uagb-ss-repeater-"+t+":hover"]={background:e.icon_bg_hover_color})}),d[".uagb-social-share__layout-vertical .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":l+"px"},d[".uagb-social-share__layout-vertical .uagb-social-share__wrap"]={"flex-direction":"column"},d[".uagb-social-share__layout-vertical .uagb-ss__wrapper:last-child"]={"margin-bottom":0},d[".uagb-social-share__layout-horizontal .uagb-ss__wrapper"]={"margin-left":l/2+"px","margin-right":l/2+"px"},d[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:first-child"]={"margin-left":0},d[".uagb-social-share__layout-horizontal .uagb-ss__wrapper:last-child"]={"margin-right":0},d[" .uagb-ss__wrapper"]={"border-radius":c+"px"},d[" .uagb-ss__source-image"]={width:u+"px"},d[" .uagb-ss__source-wrap"]={width:u+"px",height:u+"px","line-height":u+"px"},d[" .uagb-ss__source-icon"]={width:u+"px",height:u+"px","font-size":u+"px","line-height":u+"px"};var g="left"==r?"flex-start":"right"==r?"flex-end":"center";d[" .uagb-social-share__wrap"]=(t={"justify-content":g,"-webkit-box-pack":g,"-ms-flex-pack":g},a(t,"justify-content",g),a(t,"-webkit-box-align",g),a(t,"-ms-flex-align",g),a(t,"align-items",g),t),"horizontal"==s&&("desktop"==p?(d[" .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":l+"px"},d[" .uagb-social-share__wrap"]={"flex-direction":"column"},d[" .uagb-ss__wrapper:last-child"]={"margin-bottom":0}):"tablet"==p?(m[" .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":l+"px"},m[" .uagb-social-share__wrap"]={"flex-direction":"column"},m[" .uagb-ss__wrapper:last-child"]={"margin-bottom":0}):"mobile"==p&&(h[" .uagb-ss__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":l+"px"},h[" .uagb-social-share__wrap"]={"flex-direction":"column"},h[" .uagb-ss__wrapper:last-child"]={"margin-bottom":0}));var b="",v="#uagb-social-share-"+e.clientId;for(var y in d){b+=v,b+=y+" { ";var w=d[y],_="";for(var E in w)_+=E+": "+w[E]+";";b+=_+" } "}b+="@media only screen and (max-width: 976px) {";for(var y in m){b+=v,b+=y+" { ";var w=m[y],_="";for(var E in w)_+=E+": "+w[E]+";";b+=_+" } "}b+=" }",b+="@media only screen and (max-width: 767px) {";for(var y in h){b+=v,b+=y+" { ";var w=h[y],_="";for(var E in w)_+=E+": "+w[E]+";";b+=_+" } "}return b+=" }"}t.a=r},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=n(0),l=n.n(i),s=n(3),u=n(358),c=(n.n(u),function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}()),f=wp.i18n.__,p=wp.blocks.registerBlockType,d=wp.editor.InspectorControls,m=wp.components,h=m.PanelBody,g=m.RangeControl,b=m.TextControl,v=wp.element,y=v.Component,w=v.Fragment,_="AIzaSyAsd_d46higiozY-zNqtr7zdA81Soswje4",E=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),c(t,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.setAttributes,a=e.attributes,r=(a.block_id,a.height),o=a.zoom,i=a.address,s=encodeURI(i),u="https://www.google.com/maps/embed/v1/place?key="+_+"&q="+s+"&zoom="+o;return wp.element.createElement(w,null,wp.element.createElement(d,null,wp.element.createElement(h,{title:f("General")},wp.element.createElement("p",{className:"uagb-google-map-notice"},f("This block uses UAGB's API key to display the map. You don't need to create your own API key or worry about renewing it.")),wp.element.createElement("p",{className:"components-base-control__label"},f("Address")),wp.element.createElement(b,{value:i,onChange:function(e){return n({address:e})},placeholder:f("Type the address")}),wp.element.createElement(g,{label:f("Zoom"),value:o,onChange:function(e){return n({zoom:e})},min:1,max:22,beforeIcon:"editor-textcolor",allowReset:!0}),wp.element.createElement(g,{label:f("Height"),value:r,onChange:function(e){return n({height:e})},min:0,max:1e3,allowReset:!0}))),wp.element.createElement("div",{className:l()(t,"uagb-google-map__wrap"),id:"uagb-google-map-"+this.props.clientId},wp.element.createElement("iframe",{className:"uagb-google-map__iframe",src:u,style:{height:r}})))}}]),t}(y);p("uagb/google-map",{title:uagb_blocks_info.blocks["uagb/google-map"].title,description:uagb_blocks_info.blocks["uagb/google-map"].description,icon:s.a.google_map,keywords:[f("google map"),f("uagb")],category:uagb_blocks_info.category,attributes:{block_id:{type:"string"},address:{type:"string",default:"Brainstorm Force"},height:{type:"number",default:300},zoom:{type:"number",default:12}},edit:E,save:function(e){var t=e.attributes,n=t.block_id,a=t.height,r=t.zoom,o=t.address,i=encodeURI(o),s="https://www.google.com/maps/embed/v1/place?key="+_+"&q="+i+"&zoom="+r;return wp.element.createElement("div",{className:l()(e.className,"uagb-google-map__wrap"),id:"uagb-google-map-"+n},wp.element.createElement("iframe",{className:"uagb-google-map__iframe",src:s,style:{height:a}}))}})},function(e,t){},function(e,t,n){"use strict";var a=n(0),r=n.n(a),o=n(3),i=n(360),l=(n.n(i),n(361)),s=(n.n(l),n(362)),u=n(363),c=wp.i18n.__,f=wp.blocks.registerBlockType,p=wp.editor.RichText;f("uagb/icon-list",{title:uagb_blocks_info.blocks["uagb/icon-list"].title,description:uagb_blocks_info.blocks["uagb/icon-list"].description,icon:o.a.icon_list,category:uagb_blocks_info.category,keywords:[c("icon list"),c("image list"),c("uagb")],attributes:s.a,edit:u.a,save:function(e){var t=(e.attributes,e.className),n=e.attributes,a=n.block_id,o=n.icons,i=n.icon_count,l=n.icon_layout,s=n.hideLabel,u=s?"uagb-icon-list__no-label":"";return wp.element.createElement("div",{className:r()(t,"uagb-icon-list__outer-wrap","uagb-icon-list__layout-"+l,u),id:"uagb-icon-list-"+a},wp.element.createElement("div",{className:"uagb-icon-list__wrap"},o.map(function(e,t){if(!(i<=t)){var n="";"icon"==e.image_icon?e.icon&&(n=wp.element.createElement("span",{className:r()(e.icon,"uagb-icon-list__source-icon")})):e.image&&(n=wp.element.createElement("img",{className:"uagb-icon-list__source-image",src:e.image.url}));var a=e.target?"_blank":"_self";return wp.element.createElement("a",{className:r()("uagb-icon-list-repeater-"+t,"uagb-icon-list__wrapper"),key:t,target:a,rel:"noopener noreferrer",href:e.link},wp.element.createElement("div",{className:"uagb-icon-list__content-wrap"},wp.element.createElement("span",{className:"uagb-icon-list__source-wrap"},n),!s&&""!=o[t].label&&wp.element.createElement("div",{className:"uagb-icon-list__label-wrap"},wp.element.createElement(p.Content,{tagName:"span",value:o[t].label,className:"uagb-icon-list__label"}))))}})))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";for(var a=[],r=1;r<=1;r++)a.push({label:"Label #"+r,image_icon:"icon",icon:"fab fa-facebook",image:"",icon_color:"#3a3a3a",label_color:"",icon_hover_color:"",label_hover_color:"",icon_bg_color:"",icon_bg_hover_color:"",link:"#",target:!1});var o={block_id:{type:"string"},align:{type:"string",default:"left"},icon_count:{type:"number",default:1},icons:{type:"array",default:a},gap:{type:"number",default:10},inner_gap:{type:"number",default:15},size:{type:"number",default:40},bgSize:{type:"number",default:0},borderRadius:{type:"number",default:0},hideLabel:{type:"boolean",default:!1},fontSize:{type:"number"},icon_layout:{type:"string",default:"vertical"},stack:{type:"string",default:"none"}};t.a=o},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var s=n(0),u=n.n(s),c=n(8),f=n.n(c),p=n(17),d=n(18),m=n.n(d),h=n(364),g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},b=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),v=wp.i18n.__,y=wp.element,w=y.Component,_=y.Fragment,E=wp.editor,k=E.BlockControls,C=E.BlockAlignmentToolbar,x=E.InspectorControls,S=E.PanelColorSettings,T=E.MediaUpload,P=E.RichText,O=wp.components,N=O.PanelBody,R=O.SelectControl,I=O.RangeControl,j=O.Button,A=O.TextControl,M=O.ToggleControl,z=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),b(t,[{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId});var e=document.createElement("style");e.setAttribute("id","uagb-style-icon-list-"+this.props.clientId),document.head.appendChild(e)}},{key:"saveIcons",value:function(e,t){var n=this.props,a=n.attributes;(0,n.setAttributes)({icons:a.icons.map(function(n,a){return t===a&&(n=g({},n,e)),n})})}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,o=t.setAttributes,i=(t.isSelected,n.align),l=n.className,s=n.icon_count,c=n.icons,d=n.gap,g=n.inner_gap,b=n.stack,y=n.icon_layout,w=n.size,E=n.hideLabel,O=n.fontSize,z=n.borderRadius,D=n.bgSize,L=function(t){var n="";return n="image"==c[t].image_icon?[{value:c[t].label_color,onChange:function(n){return e.saveIcons({label_color:n},t)},label:v("Text Color")},{value:c[t].icon_bg_color,onChange:function(n){return e.saveIcons({icon_bg_color:n},t)},label:v("Image Background Color")},{value:c[t].label_hover_color,onChange:function(n){return e.saveIcons({label_hover_color:n},t)},label:v("Text Hover Color")},{value:c[t].icon_bg_hover_color,onChange:function(n){return e.saveIcons({icon_bg_hover_color:n},t)},label:v("Image Background Hover Color")}]:[{value:c[t].icon_color,onChange:function(n){return e.saveIcons({icon_color:n},t)},label:v("Icon Color")},{value:c[t].icon_bg_color,onChange:function(n){return e.saveIcons({icon_bg_color:n},t)},label:v("Background Color")},{value:c[t].label_color,onChange:function(n){return e.saveIcons({label_color:n},t)},label:v("Text Color")},{value:c[t].icon_hover_color,onChange:function(n){return e.saveIcons({icon_hover_color:n},t)},label:v("Icon Hover Color")},{value:c[t].icon_bg_hover_color,onChange:function(n){return e.saveIcons({icon_bg_hover_color:n},t)},label:v("Background Hover Color")},{value:c[t].label_hover_color,onChange:function(n){return e.saveIcons({label_hover_color:n},t)},label:v("Text Hover Color")}],wp.element.createElement(N,{key:t,title:v("Icon")+" "+(t+1)+" "+v("Settings"),initialOpen:!1},wp.element.createElement(R,{label:v("Image / Icon"),value:c[t].image_icon,options:[{value:"icon",label:v("Icon")},{value:"image",label:v("Image")}],onChange:function(n){e.saveIcons({image_icon:n},t)}}),"icon"==c[t].image_icon&&wp.element.createElement(_,null,wp.element.createElement("p",{className:"components-base-control__label"},v("Icon")),wp.element.createElement(m.a,{icons:p.a,renderUsing:"class",theme:"default",value:c[t].icon,onChange:function(n){e.saveIcons({icon:n},t)},isMulti:!1})),"image"==c[t].image_icon&&wp.element.createElement(_,null,wp.element.createElement(T,{title:v("Select Image"),onSelect:function(n){e.saveIcons({image:n},t)},allowedTypes:["image"],value:c[t].image,render:function(e){var n=e.open;return wp.element.createElement(j,{isDefault:!0,onClick:n},v(c[t].image?"Replace image":"Select Image"))}}),c[t].image&&wp.element.createElement(j,{className:"uagb-rm-btn",onClick:function(n){e.saveIcons({image:null},t)},isLink:!0,isDestructive:!0},v("Remove Image"))),wp.element.createElement("p",{className:"components-base-control__label"},v("URL")),wp.element.createElement(A,{value:c[t].link,onChange:function(n){e.saveIcons({link:n},t)},placeholder:v("Enter URL")}),wp.element.createElement(M,{label:v("Open in New Tab"),checked:c[t].target,onChange:function(n){e.saveIcons({target:n},t)}}),wp.element.createElement(S,{title:v("Color Settings"),colorSettings:n}))},B=document.getElementById("uagb-style-icon-list-"+this.props.clientId);null!=B&&"undefined"!=typeof B&&(B.innerHTML=Object(h.a)(this.props));var F=E?"uagb-icon-list__no-label":"";return wp.element.createElement(_,null,wp.element.createElement(k,null,wp.element.createElement(C,{value:i,onChange:function(e){o({align:e})},controls:["left","center","right","full"]})),wp.element.createElement(x,null,wp.element.createElement(N,{title:v("Icon Count"),initialOpen:!0},wp.element.createElement(I,{label:v("Number of Icons"),value:s,onChange:function(e){var t=[].concat(r(c));if(t.length<e){var n=Math.abs(e-t.length);f()(n,function(e){t.push({label:"Label #"+(t.length+1),image_icon:t[0].image_icon,icon:t[0].icon,image:t[0].image,icon_color:t[0].icon_color,icon_hover_color:t[0].icon_hover_color,icon_bg_color:t[0].icon_bg_color,icon_bg_hover_color:t[0].icon_bg_hover_color,link:t[0].link,target:t[0].target})}),o({icons:t})}o({icon_count:e})},min:1,max:12})),f()(s,function(e){return L(e)}),wp.element.createElement(N,{title:v("General"),initialOpen:!1},wp.element.createElement(R,{label:v("Layout"),value:y,options:[{value:"horizontal",label:v("Horizontal")},{value:"vertical",label:v("Vertical")}],onChange:function(e){return o({icon_layout:e})}}),"horizontal"==y&&wp.element.createElement(_,null,wp.element.createElement(R,{label:v("Stack on"),value:b,options:[{value:"none",label:v("None")},{value:"tablet",label:v("Tablet")},{value:"mobile",label:v("Mobile")}],onChange:function(e){return o({stack:e})}}),wp.element.createElement("p",{className:"uagb-note"},v("Note: Choose on what breakpoint the Icons will stack."))),wp.element.createElement(M,{label:v("Hide Labels"),checked:E,onChange:function(e){return o({hideLabel:!E})}}),wp.element.createElement(I,{label:v("Size"),value:w,onChange:function(e){return o({size:e})},min:0,max:500,initialPosition:40}),wp.element.createElement(I,{label:v("Lable Font Size"),value:O,onChange:function(e){return o({fontSize:e})},min:1,max:100,beforeIcon:"editor-textcolor",allowReset:!0,initialPosition:15}),wp.element.createElement(I,{label:v("Background Size"),value:D,onChange:function(e){return o({bgSize:e})},min:0,max:500}),wp.element.createElement("p",{className:"uagb-note"},v("Note: Background Size option is useful when one adds background color to the icons.")),wp.element.createElement(I,{label:v("Circular Size"),value:z,onChange:function(e){return o({borderRadius:e})},min:0,max:500}),wp.element.createElement("p",{className:"uagb-note"},v("Note: Circular Size option is useful when one adds background color to the icons.")),wp.element.createElement(I,{label:v("Gap between Items"),value:d,onChange:function(e){return o({gap:e})},min:0,max:100}),!E&&wp.element.createElement(I,{label:v("Gap between Icon and Label"),value:g,onChange:function(e){return o({inner_gap:e})},min:0,max:100}))),wp.element.createElement("div",{className:u()(l,"uagb-icon-list__outer-wrap","uagb-icon-list__layout-"+y,F),id:"uagb-icon-list-"+this.props.clientId},wp.element.createElement("div",{className:"uagb-icon-list__wrap"},c.map(function(t,n){var r;if(!(s<=n)){var o="";"icon"==t.image_icon?t.icon&&(o=wp.element.createElement("span",{className:u()(t.icon,"uagb-icon-list__source-icon")})):t.image&&(o=wp.element.createElement("img",{className:"uagb-icon-list__source-image",src:t.image.url}));var i=t.target?"_blank":"_self";return wp.element.createElement("a",{className:u()("uagb-icon-list-repeater-"+n,"uagb-icon-list__wrapper"),key:n,href:"javascript:void(0)",target:i,rel:"noopener noreferrer"},wp.element.createElement("div",{className:"uagb-icon-list__content-wrap"},wp.element.createElement("span",{className:"uagb-icon-list__source-wrap"},o),!E&&wp.element.createElement("div",{className:"uagb-icon-list__label-wrap"},wp.element.createElement(P,(r={tagName:"div",placeholder:v("Label Name"),value:c[n].label,className:"uagb-icon-list__label",onChange:function(t){e.saveIcons({label:t},n)}},a(r,"placeholder",v("Description")),a(r,"multiline",!1),r)))))}}))))}}]),t}(w);t.a=z},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){var t,n=e.attributes,r=n.align,o=n.icon_count,i=n.icons,l=n.gap,s=n.inner_gap,u=n.icon_layout,c=n.size,f=n.fontSize,p=n.stack,d=n.bgSize,m=n.borderRadius,h={},g={},b={};i.map(function(e,t){o<=t||(h[" .uagb-icon-list-repeater-"+t+" .uagb-icon-list__source-icon"]={color:e.icon_color},h[" .uagb-icon-list-repeater-"+t+":hover .uagb-icon-list__source-icon"]={color:e.icon_hover_color},h[" .uagb-icon-list-repeater-"+t+" .uagb-icon-list__label"]={color:e.label_color,"font-size":f+"px"},h[" .uagb-icon-list-repeater-"+t+":hover .uagb-icon-list__label"]={color:e.label_hover_color},h[" .uagb-icon-list-repeater-"+t+" .uagb-icon-list__source-wrap"]={background:e.icon_bg_color},h[" .uagb-icon-list-repeater-"+t+":hover .uagb-icon-list__source-wrap"]={background:e.icon_bg_hover_color})}),"right"==r?(h[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"]={"margin-left":s+"px"},h[" .uagb-icon-list__content-wrap"]={"flex-direction":"row-reverse"}):h[":not(.uagb-icon-list__no-label) .uagb-icon-list__source-wrap"]={"margin-right":s+"px"},h[" .uagb-icon-list__source-wrap"]={padding:d+"px","border-radius":m+"px"},h[".uagb-icon-list__layout-vertical a.uagb-icon-list__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":l+"px"},h[".uagb-icon-list__layout-vertical .uagb-icon-list__wrap"]={"flex-direction":"column"},h[".uagb-icon-list__layout-vertical a.uagb-icon-list__wrapper:last-child"]={"margin-bottom":0},h[".uagb-icon-list__layout-horizontal a.uagb-icon-list__wrapper"]={"margin-left":l/2+"px","margin-right":l/2+"px"},h[".uagb-icon-list__layout-horizontal a.uagb-icon-list__wrapper:first-child"]={"margin-left":0},h[".uagb-icon-list__layout-horizontal a.uagb-icon-list__wrapper:last-child"]={"margin-right":0},h[" .uagb-icon-list__source-image"]={width:c+"px"},h[" .uagb-icon-list__source-icon"]={width:c+"px",height:c+"px","font-size":c+"px"},h[" .uagb-icon-list__source-icon:before"]={width:c+"px",height:c+"px","font-size":c+"px"},h[" .uagb-icon-list__label-wrap"]={"text-align":r};var v="left"==r?"flex-start":"right"==r?"flex-end":"center";h[" .uagb-icon-list__wrap"]=(t={"justify-content":v,"-webkit-box-pack":v,"-ms-flex-pack":v},a(t,"justify-content",v),a(t,"-webkit-box-align",v),a(t,"-ms-flex-align",v),a(t,"align-items",v),t),"horizontal"==u&&("tablet"==p?(g[" .uagb-icon-list__wrap a.uagb-icon-list__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":l+"px"},g[" .uagb-icon-list__wrap"]={"flex-direction":"column"},g[" .uagb-icon-list__wrap a.uagb-icon-list__wrapper:last-child"]={"margin-bottom":0}):"mobile"==p&&(b[" .uagb-icon-list__wrap a.uagb-icon-list__wrapper"]={"margin-left":0,"margin-right":0,"margin-bottom":l+"px"},b[" .uagb-icon-list__wrap"]={"flex-direction":"column"},b[" .uagb-icon-list__wrap a.uagb-icon-list__wrapper:last-child"]={"margin-bottom":0}));var y="",w="#uagb-icon-list-"+e.clientId;for(var _ in h){y+=w,y+=_+" { ";var E=h[_],k="";for(var C in E)k+=C+": "+E[C]+";";y+=k+" } "}y+="@media only screen and (max-width: 976px) {";for(var _ in g){y+=w,y+=_+" { ";var E=g[_],k="";for(var C in E)k+=C+": "+E[C]+";";y+=k+" } "}y+=" }",y+="@media only screen and (max-width: 767px) {";for(var _ in b){y+=w,y+=_+" { ";var E=b[_],k="";for(var C in E)k+=C+": "+E[C]+";";y+=k+" } "}return y+=" }"}t.a=r},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var r=n(0),o=n.n(r),i=n(3),l=n(131),s=n(132),u=n(133),c=n(134),f=n(135),p=n(366),d=n(368),m=n(369),h=(n.n(m),n(370)),g=(n.n(h),wp.i18n.__),b=wp.blocks.registerBlockType,v=(wp.editor.RichText,wp.element.Fragment);b("uagb/restaurant-menu",{title:uagb_blocks_info.blocks["uagb/restaurant-menu"].title,description:uagb_blocks_info.blocks["uagb/restaurant-menu"].description,icon:i.a.restaurant_menu,keywords:[g("restaurant"),g("menu"),g("uagb")],category:uagb_blocks_info.category,attributes:d.a,edit:p.a,save:function(e){var t=e.attributes,n=t.block_id,r=t.className,i=t.rest_menu_item_arr,p=t.imagePosition,d="uagb-rm-"+n;return wp.element.createElement(v,null,wp.element.createElement("div",{className:o()(r,"uagb-rest_menu__outer-wrap"),id:d},i.map(function(t,n){return wp.element.createElement("div",{className:o.a.apply(void 0,["uagb-rest_menu__wrap"].concat(a(Object(c.a)(e.attributes)))),key:"wrap-"+n},wp.element.createElement("div",{className:"uagb-rm__content",key:"tm_content-"+n},("top"==p||"left"==p)&&wp.element.createElement(f.a,{attributes:e.attributes,index_value:n}),wp.element.createElement("div",{className:"uagb-rm__text-wrap"},wp.element.createElement(v,null,wp.element.createElement("div",{className:"uagb-rm-details",key:"tm_wraps-"+n},wp.element.createElement("div",{className:"uagb-rm__title-wrap",key:"rm_title__wraps-"+n},wp.element.createElement(l.a,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:n}),wp.element.createElement("div",{className:"uagb-rest-menu-text-wrap",key:"text-wrap-"+n},wp.element.createElement(u.a,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:n}))),wp.element.createElement("div",{className:"uagb-rm__price-wrap",key:"rm_price__wraps-"+n},wp.element.createElement(s.a,{attributes:e.attributes,setAttributes:"not_set",props:e,index_value:n}))))),"right"==p&&wp.element.createElement(f.a,{attributes:e.attributes,index_value:n})),wp.element.createElement("div",{className:"uagb-rm__separator-parent"},wp.element.createElement("div",{className:"uagb-rm__separator"})))})))}})},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var l=n(0),s=n.n(l),u=n(131),c=n(132),f=n(133),p=n(134),d=n(367),m=n(135),h=n(8),g=n.n(h),b=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),v=wp.i18n.__,y=wp.editor,w=y.AlignmentToolbar,_=y.BlockControls,E=y.ColorPalette,k=y.InspectorControls,C=y.PanelColorSettings,x=y.MediaUpload,S=wp.components,T=S.PanelBody,P=S.SelectControl,O=S.RangeControl,N=S.BaseControl,R=S.Button,I=wp.element,j=I.Component,A=I.Fragment,M=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onSelectRestImage=e.onSelectRestImage.bind(e),e.onRemoveRestImage=e.onRemoveRestImage.bind(e),e.getImageName=e.getImageName.bind(e),e.onRemoveImage=e.onRemoveImage.bind(e),e.onSelectImage=e.onSelectImage.bind(e),e}return i(t,e),b(t,[{key:"onSelectRestImage",value:function(e,t){var n=this.props.attributes.rest_menu_item_arr,a=this.props.setAttributes,r=null;r=e&&e.url?e:null,e.type&&"image"===e.type||(r=null),a({rest_menu_item_arr:n.map(function(e,n){return t===n&&(e.image=r),e})})}},{key:"onRemoveRestImage",value:function(e){var t=this.props.attributes.rest_menu_item_arr;(0,this.props.setAttributes)({rest_menu_item_arr:t.map(function(t,n){return e===n&&(t.image=null),t})})}},{key:"getImageName",value:function(e){var t=(this.props.attributes.rest_menu_item_arr,"Select Image");return e&&(t=null==e.url||""==e.url?"Select Image":"Replace Image"),t}},{key:"onRemoveImage",value:function(){this.props.attributes.backgroundImage;(0,this.props.setAttributes)({backgroundImage:null})}},{key:"onSelectImage",value:function(e){var t=(this.props.attributes.backgroundImage,this.props.setAttributes);return e&&e.url&&e.type&&"image"===e.type?void t({backgroundImage:e}):void t({backgroundImage:null})}},{key:"render",value:function(){var e=this,t=this.props,n=(t.isSelected,t.className),r=t.setAttributes,o=t.attributes,i=(t.mergeBlocks,t.insertBlocksAfter,t.onReplace,o.menu_item_count),l=o.rest_menu_item_arr,h=o.headingAlign,b=o.priceColor,y=o.descColor,S=o.titleColor,I=(o.prefixTag,o.headingTag),j=o.titleFontSize,M=o.priceFontSize,z=o.descFontSize,D=(o.separatorWidth,o.separatorSpace,o.descSpace,o.imagePosition),L=o.imageAlignment,B=(o.block_id,o.source_type,o.titleSpace),F=o.imgHrPadding,U=o.imgVrPadding,W=o.imageSize,H=o.imageWidth,V=o.columns,q=o.tcolumns,G=o.mcolumns,$=o.rowGap,Y=o.columnGap,K=o.contentHrPadding,Q=o.contentVrPadding,X=o.seperatorStyle,J=o.seperatorWidth,Z=o.seperatorThickness,ee=o.seperatorColor,te=o.stack,ne=document.getElementById("uagb-restaurant-menu-style-"+this.props.clientId);null!=ne&&"undefined"!=typeof ne&&(ne.innerHTML=Object(d.a)(this.props));var ae="uagb-rm-"+this.props.clientId,re=wp.element.createElement(A,null,wp.element.createElement(T,{title:v("Typography"),initialOpen:!1},wp.element.createElement(P,{label:v("Title Tag"),value:I,onChange:function(e){return r({headingTag:e})},options:[{value:"h1",label:v("H1")},{value:"h2",label:v("H2")},{value:"h3",label:v("H3")},{value:"h4",label:v("H4")},{value:"h5",label:v("H5")},{value:"h6",label:v("H6")}]}),wp.element.createElement(O,{label:v("Title Font Size"),value:j,onChange:function(e){return r({titleFontSize:e})},min:10,max:100,initialPosition:30,beforeIcon:"editor-textcolor",allowReset:!0}),wp.element.createElement(O,{label:v("Content Font Size"),value:z,onChange:function(e){return r({descFontSize:e})},min:10,max:100,initialPosition:16,beforeIcon:"editor-textcolor",allowReset:!0}),wp.element.createElement(O,{label:v("Price Font Size"),value:M,onChange:function(e){return r({priceFontSize:e})},min:10,max:100,initialPosition:16,beforeIcon:"editor-textcolor",llowReset:!0})),wp.element.createElement(C,{title:v("Color Settings"),initialOpen:!1,colorSettings:[{value:S,onChange:function(e){return r({titleColor:e})},label:v("Title Color")},{value:y,onChange:function(e){return r({descColor:e})},label:v("Content Color")},{value:b,onChange:function(e){return r({priceColor:e})},label:v("Price Color")}]})),oe=wp.element.createElement(A,null,wp.element.createElement(T,{title:v("Seperator"),initialOpen:!1},wp.element.createElement(P,{label:v("Seperator Style"),value:X,onChange:function(e){return r({seperatorStyle:e})},options:[{value:"none",label:v("None")},{value:"solid",label:v("Solid")},{value:"dotted",label:v("Dotted")},{value:"dashed",label:v("Dashed")},{value:"double",label:v("Double")},{value:"groove",label:v("Groove")},{value:"inset",label:v("Inset")},{value:"outset",label:v("Outset")},{value:"ridge",label:v("Ridge")}]}),"none"!=X&&wp.element.createElement(A,null,wp.element.createElement(O,{label:v("Seperator Width"),value:J,onChange:function(e){return r({seperatorWidth:e})},min:0,max:100,allowReset:!0}),wp.element.createElement(O,{label:v("Seperator Thickness"),value:Z,onChange:function(e){return r({seperatorThickness:e})},min:0,max:20,allowReset:!0}),wp.element.createElement(A,null,wp.element.createElement("p",{className:"uagb-setting-label"},v("Seperator Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ee}}))),wp.element.createElement(E,{value:ee,onChange:function(e){return r({seperatorColor:e})},allowReset:!0}))))),ie=[{value:"thumbnail",label:v("Thumbnail")},{value:"medium",label:v("Medium")},{value:"full",label:v("Large")}],le=function(t){var n=null;return l[t]&&"undefined"!==typeof l[t]&&(n=l[t].image),wp.element.createElement(T,{key:t,title:v("Image")+" "+(t+1)+" "+v("Settings"),initialOpen:!0},wp.element.createElement(N,{className:"editor-bg-image-control",label:v("")},wp.element.createElement(x,{title:v("Select Image"+(t+1)),onSelect:function(n){e.onSelectRestImage(n,t)},allowedTypes:["image"],value:n,render:function(n){var a=n.open;return wp.element.createElement(R,{isDefault:!0,onClick:a},e.getImageName(l[t].image))}}),n&&null!==l[t].image.url&&""!==l[t].image.url&&wp.element.createElement(R,{className:"uagb-rm-btn",key:t,onClick:function(n){e.onRemoveRestImage(t)},isLink:!0,isDestructive:!0},v("Remove Image"))))},se=0;l.map(function(e,t){var n=l[t];if(n&&"undefined"!==typeof n){var a=n.image;"undefined"!==typeof a&&null!==a&&""!==a&&se++}});var ue=wp.element.createElement(A,null,wp.element.createElement(T,{title:v("Spacing"),initialOpen:!1},wp.element.createElement(O,{label:v("Row Gap"),value:$,onChange:function(e){return r({rowGap:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(O,{label:v("Column Gap"),value:Y,onChange:function(e){return r({columnGap:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(O,{label:v("Item Horizontal Padding"),value:K,onChange:function(e){return r({contentHrPadding:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(O,{label:v("Item Vertical Padding"),value:Q,onChange:function(e){return r({contentVrPadding:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(O,{label:v("Title Bottom Margin"),value:B,onChange:function(e){return r({titleSpace:e})},min:0,max:50,allowReset:!0}),se>0&&wp.element.createElement(A,null,wp.element.createElement(O,{label:v("Image Horizontal Padding"),value:F,onChange:function(e){return r({imgHrPadding:e})},min:0,max:50,allowReset:!0}),wp.element.createElement(O,{label:v("Image Vertical Padding"),value:U,onChange:function(e){return r({imgVrPadding:e})},min:0,max:50,allowReset:!0})))),ce=wp.element.createElement(A,null,wp.element.createElement(k,null,wp.element.createElement(T,{title:v("General"),initialOpen:!0},wp.element.createElement(O,{label:v("Number of Menu Items"),value:i,onChange:function(e){var t=[].concat(a(l));if(t.length<e){var n=Math.abs(e-t.length);g()(n,function(e){t.push({description:v("Lorem ipsum dolor sit amet, consectetur adipiscing elit."),title:v(" Menu Item"+(t.length+1)),price:v("$19"),image:""})}),r({rest_menu_item_arr:t})}else{for(var o=Math.abs(e-t.length),i=t,s=0;s<o;s++)i.pop();r({rest_menu_item_arr:i})}r({menu_item_count:e})},min:0,max:10,allowReset:!0}),wp.element.createElement(O,{label:v("Columns"),value:V,onChange:function(e){return r({columns:e})},min:1,max:Math.min(3,i)}),wp.element.createElement(O,{label:v("Columns (Tablet)"),value:q,onChange:function(e){return r({tcolumns:e})},min:1,max:Math.min(3,i)}),wp.element.createElement(O,{label:v("Columns (Mobile)"),value:G,onChange:function(e){return r({mcolumns:e})},min:1,max:Math.min(3,i)})),wp.element.createElement(T,{title:v("Image"),initialOpen:!1},g()(i,function(e){return le(e)}),se>0&&wp.element.createElement(A,null,wp.element.createElement(P,{label:v("Image Position"),value:D,onChange:function(e){return r({imagePosition:e})},options:[{value:"top",label:v("Top")},{value:"left",label:v("Left")},{value:"right",label:v("Right")}]}),("left"==D||"right"==D)&&wp.element.createElement(A,null,wp.element.createElement(P,{label:v("Vertical Alignment"),value:L,onChange:function(e){return r({imageAlignment:e})},options:[{value:"top",label:v("Top")},{value:"middle",label:v("Middle")}]}),wp.element.createElement(P,{label:v("Stack on"),value:te,options:[{value:"none",label:v("None")},{value:"tablet",label:v("Tablet")},{value:"mobile",label:v("Mobile")}],help:v("Note: Choose on what breakpoint the Images will stack."),onChange:function(e){return r({stack:e})}})),wp.element.createElement(P,{label:v("Image Size"),options:ie,value:W,onChange:function(e){return r({imageSize:e})}}),wp.element.createElement(O,{label:v("Width"),value:H,onChange:function(e){return r({imageWidth:e})},min:0,max:500,allowReset:!0}))),oe,re,ue));return wp.element.createElement(A,null,(0==se||se>0&&"top"==D)&&wp.element.createElement(_,{key:"controls"},wp.element.createElement(w,{value:h,onChange:function(e){return r({headingAlign:e})}})),ce,wp.element.createElement("div",{className:s()(n,"uagb-rest_menu__outer-wrap"),id:ae},l.map(function(t,n){return wp.element.createElement("div",{className:s.a.apply(void 0,["uagb-rest_menu__wrap"].concat(a(Object(p.a)(o)))),key:"wrap-"+n},wp.element.createElement("div",{className:"uagb-rm__content",key:"tm_content-"+n},("top"==D||"left"==D)&&wp.element.createElement(m.a,{attributes:o,index_value:n}),wp.element.createElement("div",{className:"uagb-rm__text-wrap"},wp.element.createElement(A,null,wp.element.createElement("div",{className:"uagb-rm-details",key:"tm_wraps-"+n},wp.element.createElement("div",{className:"uagb-rm__title-wrap",key:"rm_title__wraps-"+n},wp.element.createElement(u.a,{attributes:o,setAttributes:r,props:e.props,index_value:n}),wp.element.createElement("div",{className:"uagb-rest-menu-text-wrap",key:"text-wrap-"+n},wp.element.createElement(f.a,{attributes:o,setAttributes:r,props:e.props,index_value:n}))),wp.element.createElement("div",{className:"uagb-rm__price-wrap",key:"rm_price__wraps-"+n},wp.element.createElement(c.a,{attributes:o,setAttributes:r,props:e.props,index_value:n}))))),"right"==D&&wp.element.createElement(m.a,{attributes:o,index_value:n})),wp.element.createElement("div",{className:"uagb-rm__separator-parent"},wp.element.createElement("div",{className:"uagb-rm__separator"})))})))}},{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId});var e=document.createElement("style");e.setAttribute("id","uagb-restaurant-menu-style-"+this.props.clientId),document.head.appendChild(e)}}]),t}(j);t.a=M},function(e,t,n){"use strict";function a(e){var t=e.attributes,n=t.headingAlign,a=t.priceColor,r=t.descColor,o=t.titleColor,i=t.titleFontSize,l=t.priceFontSize,s=t.descFontSize,u=t.descSpace,c=t.block_id,f=t.titleSpace,p=t.imgVrPadding,d=t.imgHrPadding,m=t.imageWidth,h=t.rowGap,g=t.columnGap,b=t.columns,v=(t.tcolumns,t.mcolumns,t.contentVrPadding),y=t.contentHrPadding,w=t.seperatorStyle,_=t.seperatorWidth,E=t.seperatorThickness,k=t.seperatorColor;if(e.clientId)var C="uagb-rm-"+e.clientId;else var C="uagb-rm-"+c;var x={};x[".uagb-rest_menu__wrap"]={"padding-left":g/2+"px","padding-right":g/2+"px","margin-bottom":h+"px"},x[".uagb-rest_menu__wrap .uagb-rm__image-content"]={"padding-left":d+"px","padding-right":d+"px","padding-top":p+"px","padding-bottom":p+"px"},x[".uagb-rm__image img"]={width:m+"px","max-width":m+"px"};var S=n;"left"===S?S="flex-start":"right"===S&&(S="flex-end"),x[".uagb-rm__separator-parent"]={"justify-content":S},x[".uagb-rm__content"]={"text-align":n,"padding-left":y+"px","padding-right":y+"px","padding-top":v+"px","padding-bottom":v+"px"},x[".uagb-rm__title"]={"font-size":i+"px",color:o,"margin-bottom":f+"px"},x[".uagb-rm__price"]={"font-size":l+"px",color:a},x[".uagb-rm__desc"]={"font-size":s+"px",color:r,"margin-bottom":u+"px"},"none"!=w&&(x[".uagb-rest_menu__wrap .uagb-rm__separator"]={"border-top-color":k,"border-top-style":w,"border-top-width":E+"px",width:_+"%"}),x[".uagb-rest_menu__wrap.uagb-rm__desk-column-"+b+":nth-child("+b+"n+1)"]={"margin-left":"0%",clear:"left"};var T="";for(var P in x){T+="#wpwrap #"+C+" "+P+" { ";var O=x[P],N="";for(var R in O)N+=R+": "+O[R]+";";T+=N+" } "}return T}t.a=a},function(e,t,n){"use strict";for(var a=wp.i18n.__,r=[],o=1;o<=4;o++){var i=a("Lorem ipsum dolor sit amet, consectetur adipiscing elit."),l=a("Menu Item "+o),s=a("$9");r.push({description:i,title:l,price:s,image:""})}var u={menu_item_count:{type:"number",default:4},rest_menu_item_arr:{type:"array",default:r},headingAlign:{type:"string",default:"left"},descColor:{type:"string",default:"#333"},priceColor:{type:"string",default:"#888888"},titleColor:{type:"string",default:"#333"},imagePosition:{type:"string",default:"top"},imageAlignment:{type:"string",default:"top"},headingTag:{type:"string",default:"h4"},titleFontSize:{type:"number"},priceFontSize:{type:"number"},descFontSize:{type:"number"},priceSpace:{type:"number",default:5},descSpace:{type:"number",default:15},titleSpace:{type:"number",default:10},block_id:{type:"string",default:"not_set"},imgVrPadding:{type:"number",default:0},imgHrPadding:{type:"number",default:0},imgTopPadding:{type:"number",default:0},imgBottomPadding:{type:"number",default:0},imageSize:{type:"string",default:"medium"},imageWidth:{type:"number",default:""},columns:{type:"number",default:2},tcolumns:{type:"number",default:2},mcolumns:{type:"number",default:1},rowGap:{type:"number",default:10},columnGap:{type:"number",default:10},contentVrPadding:{type:"number",default:5},contentHrPadding:{type:"number",default:5},seperatorStyle:{type:"string",default:"dashed"},seperatorWidth:{type:"number",default:"100"},seperatorThickness:{type:"number",default:"1"},seperatorColor:{type:"string",default:"#b2b4b5"},stack:{type:"string",default:"tablet"}};t.a=u},function(e,t){},function(e,t){},function(e,t,n){"use strict";n(372),n(375)},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var r=n(0),o=n.n(r),i=n(8),l=(n.n(i),n(3)),s=n(136),u=(n.n(s),n(373)),c=n(374),f=n(71),p=n(72),d=n(73),m=n(74),h=wp.date,g=h.dateI18n,b=h.__experimentalGetSettings,v=wp.i18n.__,y=wp.blocks.registerBlockType,w=wp.editor.RichText;y("uagb/content-timeline",{title:uagb_blocks_info.blocks["uagb/content-timeline"].title,description:uagb_blocks_info.blocks["uagb/content-timeline"].description,icon:l.a.content_timeline,category:uagb_blocks_info.category,keywords:[v("Content Timeline"),v("Timeline"),v("uagb")],attributes:u.a,edit:c.a,save:function(e){var t=e.attributes,n=t.block_id,r=t.headingTag,i=t.timelinAlignment,l=t.displayPostDate,s=t.icon,u=t.tm_content,c=t.t_date,h=(t.stack,t.className),v="uagb-ctm-"+n,y=(Object(f.a)(e),Array.isArray(u)&&u.length,b().formats.date),_=Object(d.a)(e.attributes,0),E=Object(m.a)(e.attributes,0),k=([].concat(a(u)),!1);return wp.element.createElement("div",{className:o()(h,"uagb-timeline__outer-wrap"),id:v},wp.element.createElement("div",{className:o.a.apply(void 0,["uagb-timeline__content-wrap"].concat(a(Object(p.a)(e.attributes))))},wp.element.createElement("div",{className:"uagb-timeline-wrapper"},wp.element.createElement("div",{className:"uagb-timeline__main"},wp.element.createElement("div",{className:"uagb-timeline__days"},u.map(function(t,n){"center"==i&&(k=!0,_=Object(d.a)(e.attributes,n),E=Object(m.a)(e.attributes,n));var u="uagb-timeline__icon-new out-view-uagb-timeline__icon "+s,f=g(y,c[n].title);return"Invalid date"===f&&(f=c[n].title),wp.element.createElement("article",{className:"uagb-timeline__field uagb-timeline__field-wrap",key:n},wp.element.createElement("div",{className:o.a.apply(void 0,a(_))},wp.element.createElement("div",{className:"uagb-timeline__marker out-view-uagb-timeline__icon"},wp.element.createElement("span",{className:u})),wp.element.createElement("div",{className:o.a.apply(void 0,a(E))},wp.element.createElement("div",{className:"uagb-events-new"},wp.element.createElement("div",{className:"uagb-timeline__events-inner-new"},wp.element.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__date-inner"},l&&c[n].title&&wp.element.createElement("div",{className:"uagb-timeline__inner-date-new"},f)),wp.element.createElement("div",{className:"uagb-timeline-content"},wp.element.createElement("div",{className:"uagb-timeline__heading-text"},wp.element.createElement(w.Content,{tagName:r,value:t.time_heading,className:"uagb-timeline__heading"})),wp.element.createElement(w.Content,{tagName:"p",value:t.time_desc,className:"uagb-timeline-desc-content"}),wp.element.createElement("div",{className:"uagb-timeline__arrow"}))))),k&&wp.element.createElement("div",{className:"uagb-timeline__date-new"},l&&c[n].title&&wp.element.createElement("div",{className:"uagb-timeline__date-new"},f))))})),wp.element.createElement("div",{className:"uagb-timeline__line"},wp.element.createElement("div",{className:"uagb-timeline__line__inner"}))))))},deprecated:[{attributes:u.a,save:function(e){var t=e.attributes,n=t.block_id,r=t.headingTag,i=t.timelinAlignment,l=t.displayPostDate,s=t.icon,u=t.tm_content,c=t.t_date,h=(t.stack,t.className),v="uagb-ctm-"+n,y=(Object(f.a)(e),Array.isArray(u)&&u.length,b().formats.date),_=Object(d.a)(e.attributes,0),E=Object(m.a)(e.attributes,0),k=([].concat(a(u)),!1);return wp.element.createElement("div",{className:o()(h,"uagb-timeline__outer-wrap"),id:v},wp.element.createElement("div",{className:o.a.apply(void 0,["uagb-timeline__content-wrap"].concat(a(Object(p.a)(e.attributes))))},wp.element.createElement("div",{className:"uagb-timeline-wrapper"},wp.element.createElement("div",{className:"uagb-timeline__main"},wp.element.createElement("div",{className:"uagb-timeline__days"},u.map(function(t,n){"center"==i&&(k=!0,_=Object(d.a)(e.attributes,n),E=Object(m.a)(e.attributes,n));var u="uagb-timeline__icon-new out-view-uagb-timeline__icon "+s;return wp.element.createElement("article",{className:"uagb-timeline__field uagb-timeline__animate-border",key:n},wp.element.createElement("div",{className:o.a.apply(void 0,a(_))},wp.element.createElement("div",{className:"uagb-timeline__marker out-view-uagb-timeline__icon"},wp.element.createElement("span",{className:u})),wp.element.createElement("div",{className:o.a.apply(void 0,a(E))},wp.element.createElement("div",{className:"uagb-events-new"},wp.element.createElement("div",{className:"uagb-timeline__events-inner-new"},wp.element.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__date-inner"},l&&c[n].title&&wp.element.createElement("div",{className:"uagb-timeline__inner-date-new"},g(y,c[n].title))),wp.element.createElement("div",{className:"uagb-timeline-content"},wp.element.createElement("div",{className:"uagb-timeline__heading-text"},wp.element.createElement(w.Content,{tagName:r,value:t.time_heading,className:"uagb-timeline__heading"})),wp.element.createElement(w.Content,{tagName:"p",value:t.time_desc,className:"uagb-timeline-desc-content"}),wp.element.createElement("div",{className:"uagb-timeline__arrow"}))))),k&&wp.element.createElement("div",{className:"uagb-timeline__date-new"},l&&c[n].title&&wp.element.createElement("div",{className:"uagb-timeline__date-new"},g(y,c[n].title)))))})),wp.element.createElement("div",{className:"uagb-timeline__line"},wp.element.createElement("div",{className:"uagb-timeline__line__inner"}))))))}}]})},function(e,t,n){"use strict";for(var a=[],r=[],o=1;o<=5;o++){var i="Timeline Heading "+o,l={time_heading:i,time_desc:"This is Timeline description, you can change me anytime click here "};a.push(l);var s=o-1,u=new Date,c=u.getDate(),f=u.getMonth()+1,p=u.getFullYear()-s;c<10&&(c="0"+c),f<10&&(f="0"+f),u=f+"/"+c+"/"+p;var l={title:u};r.push(l)}var d={tm_content:{type:"array",default:a},headingTitle:{type:"string"},headingDesc:{type:"string"},align:{type:"string",default:"center"},headingColor:{type:"string"},subHeadingColor:{type:"string"},separatorBg:{type:"string",default:"#eee"},backgroundColor:{type:"string",default:"#eee"},separatorColor:{type:"string",default:"#eee"},separatorFillColor:{type:"string",default:"#61ce70"},separatorBorder:{type:"string",default:"#eee"},borderFocus:{type:"string",default:"#5cb85c"},headingTag:{type:"string",default:"h4"},horizontalSpace:{type:"number",default:10},verticalSpace:{type:"number",default:15},headFontSize:{type:"number"},timelinAlignment:{type:"string",default:"center"},arrowlinAlignment:{type:"string",default:"center"},subHeadFontSize:{type:"number"},headSpace:{type:"number",default:5},separatorwidth:{type:"number",default:3},borderwidth:{type:"number",default:0},iconColor:{type:"string",default:"#333"},iconFocus:{type:"string",default:"#fff"},iconBgFocus:{type:"string",default:"#61ce70"},authorFontsize:{type:"number",default:12},dateColor:{type:"string",default:"#333"},dateFontsize:{type:"number",default:12},connectorBgsize:{type:"number",default:35},subHeadSpace:{type:"number",default:5},dateBottomspace:{type:"number",default:5},block_id:{type:"string",default:"0"},timelineItem:{type:"number",default:5},tm_client_id:{type:"string",default:"not_set"},borderRadius:{type:"number",default:2},bgPadding:{type:"number",default:20},iconSize:{type:"number",default:12},icon:{type:"string",default:"fab fa fa-calendar-alt"},t_date:{type:"array",default:r},displayPostDate:{type:"boolean",default:!0},stack:{type:"string",default:"tablet"}};t.a=d},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var l=n(0),s=n.n(l),u=n(8),c=n.n(u),f=n(17),p=n(18),d=n.n(p),m=n(71),h=n(72),g=n(73),b=n(74),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},y=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),w=wp.date,_=w.dateI18n,E=w.__experimentalGetSettings,k=wp.element,C=k.Component,x=k.Fragment,S=wp.i18n.__,T=(wp.htmlEntities.decodeEntities,wp.blocks),P=(T.registerBlockType,T.createBlock),O=wp.editor,N=O.BlockControls,R=O.ColorPalette,I=O.InspectorControls,j=O.RichText,A=O.BlockAlignmentToolbar,M=O.PanelColorSettings,z=wp.components,D=z.PanelBody,L=z.SelectControl,B=z.Placeholder,F=z.RangeControl,U=z.Spinner,W=z.TextControl,H=z.ToggleControl,V=(z.Toolbar,z.TabPanel),q=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.splitBlock=e.splitBlock.bind(e),e.getTimelinecontent=e.getTimelinecontent.bind(e),e.getDatecontent=e.getDatecontent.bind(e),e.getTimelineicon=e.getTimelineicon.bind(e),e.savedateArray=e.savedateArray.bind(e),e.toggleDisplayPostDate=e.toggleDisplayPostDate.bind(e),e}return i(t,e),y(t,[{key:"splitBlock",value:function(e,t){for(var n=this.props,a=n.attributes,r=n.insertBlocksAfter,o=n.setAttributes,i=n.onReplace,l=arguments.length,s=Array(l>2?l-2:0),u=2;u<l;u++)s[u-2]=arguments[u];t&&s.push(P("core/paragraph",{content:t})),s.length&&r&&r(s);var c=a.content;e?c!==e&&o({content:e}):i([])}},{key:"toggleDisplayPostDate",value:function(){var e=this.props.attributes.displayPostDate;(0,this.props.setAttributes)({displayPostDate:!e})}},{key:"getTimelineicon",value:function(e){this.props.setAttributes({icon:e})}},{key:"getTimelinecontent",value:function(e){var t=this.props.attributes,n=t.tm_content,r=(t.timelineItem,this.props.setAttributes),o=e,i=[].concat(a(n)),l=i.length;if(o<l){for(var s=l-o,u=i,c=0;c<s;c++)u.pop();r({tm_content:u})}if(o>l){for(var s=o-l,c=0;c<s;c++){var f=l+c,p="My Heading "+o;i[f]={time_heading:p,time_desc:"I am timeline card content. You can change me anytime. Click here to edit this text."}}r({tm_content:i})}return this.props.attributes.tm_content}},{key:"getDatecontent",value:function(e){var t=this.props.attributes,n=(t.timelineItem,t.t_date),r=this.props.setAttributes,o=e,i=[].concat(a(n)),l=i.length;if(o<l){for(var s=l-o,u=i,c=0;c<s;c++)u.pop();r({t_date:u})}if(o>l){var s=o-l,f=new Date,p=f.getDate(),d=f.getMonth()+1;p<10&&(p="0"+p),d<10&&(d="0"+d);for(var c=0;c<s;c++){var m=l+c;f=d+"/"+p+"/"+(f.getFullYear()-m),i[m]={title:f}}r({t_date:i})}return this.props.attributes.t_date}},{key:"savedateArray",value:function(e,t){var n=this.props,a=n.attributes;(0,n.setAttributes)({t_date:a.t_date.map(function(n,a){return t===a&&(n=v({},n,e)),n})})}},{key:"render",value:function(){var e=this,t=this.props,n=(t.isSelected,t.className),r=t.setAttributes,o=(t.insertBlocksAfter,t.mergeBlocks,t.onReplace,t.attributes),i=(o.tm_content,o.headingTitle,o.headingDesc,o.headingAlign,o.separatorHeight,o.headSpace),l=(o.separatorSpace,o.headingColor),u=o.subHeadingColor,p=o.backgroundColor,m=o.separatorColor,g=o.separatorFillColor,b=o.separatorBg,v=o.separatorBorder,y=o.borderFocus,w=o.headingTag,_=o.headFontSize,E=o.timelineItem,k=o.timelinAlignment,C=o.arrowlinAlignment,T=o.subHeadFontSize,P=o.verticalSpace,O=o.horizontalSpace,j=o.separatorwidth,z=o.borderwidth,B=o.connectorBgsize,U=o.dateBottomspace,q=o.align,G=o.icon,$=o.iconColor,Y=o.dateColor,K=o.dateFontsize,Q=(o.authorFontsize,o.iconSize),X=o.borderRadius,J=o.bgPadding,Z=(o.block_id,o.iconFocus),ee=o.iconBgFocus,te=o.t_date,ne=o.displayPostDate,ae=o.stack,re={icons:f.a,renderUsing:"class",theme:"default",value:G,onChange:this.getTimelineicon,isMulti:!1},oe=wp.element.createElement(x,null,wp.element.createElement(M,{title:S("Color Settings"),initialOpen:!0,colorSettings:[{value:m,onChange:function(e){return r({separatorColor:e})},label:S("Line Color")},{value:$,onChange:function(e){return r({iconColor:e})},label:S("Icon Color")},{value:b,onChange:function(e){return r({separatorBg:e})},label:S("Background Color")},{value:v,onChange:function(e){return r({separatorBorder:e})},label:S("Border Color")}]})),ie=wp.element.createElement(x,null,wp.element.createElement(M,{title:S("Color Settings"),initialOpen:!0,colorSettings:[{value:g,onChange:function(e){return r({separatorFillColor:e})},label:S("Line Color")},{value:Z,onChange:function(e){return r({iconFocus:e})},label:S("Icon Color")},{value:ee,onChange:function(e){return r({iconBgFocus:e})},label:S("Background Color")},{value:y,onChange:function(e){return r({borderFocus:e})},label:S("Border Color")}]})),le=wp.element.createElement(x,null,wp.element.createElement(D,{title:S("Connector Color Settings"),initialOpen:!0},wp.element.createElement(V,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:S("Normal"),className:"uagb-normal-tab"},{name:"focus",title:S("Focus"),className:"uagb-focus-tab"}]},function(e){var t=void 0;return t="focus"===e.name?ie:oe,wp.element.createElement("div",null,t)}))),se=function(t){return wp.element.createElement(x,{key:t},wp.element.createElement(W,{label:S("Date")+" "+(t+1)+" "+S("Settings"),value:te[t].title,onChange:function(n){e.savedateArray({title:n},t)}}))},ue=wp.element.createElement(x,null,wp.element.createElement(D,{title:S("Date Settings"),initialOpen:!1},wp.element.createElement(H,{label:S("Display Post Date"),checked:ne,onChange:this.toggleDisplayPostDate}),ne&&c()(E,function(e){return se(e)}),ne&&"center"!==k&&wp.element.createElement(F,{label:S("Date Bottom Spacing"),value:U,onChange:function(e){return r({dateBottomspace:e})},min:0,max:50,allowReset:!0}),ne&&wp.element.createElement(x,null,wp.element.createElement(x,null,wp.element.createElement("p",{className:"uagb-setting-label"},S("Date Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:Y}}))),wp.element.createElement(R,{value:Y,onChange:function(e){return r({dateColor:e})},allowReset:!0})),wp.element.createElement(F,{label:S("Date Font Size"),value:K,onChange:function(e){return r({dateFontsize:e})},min:1,max:50,initialPosition:16,beforeIcon:"editor-textcolor",allowReset:!0})))),ce=wp.element.createElement(I,null,wp.element.createElement(D,{title:S("General"),initialOpen:!1},wp.element.createElement(F,{label:S("Number of Items"),value:E,onChange:function(t){r({timelineItem:t}),e.getTimelinecontent(t),e.getDatecontent(t)},min:1,max:20,allowReset:!0})),ue,wp.element.createElement(D,{title:S("Layout"),initialOpen:!1},wp.element.createElement(L,{label:S("Orientation"),value:k,onChange:function(e){return r({timelinAlignment:e})},options:[{value:"left",label:S("Left")},{value:"right",label:S("Right")},{value:"center",label:S("Center")}]}),wp.element.createElement(L,{label:S("Arrow Alignment"),value:C,onChange:function(e){return r({arrowlinAlignment:e})},options:[{value:"top",label:S("Top")},{value:"bottom",label:S("Bottom")},{value:"center",label:S("Center")}]}),wp.element.createElement(L,{label:S("Stack on"),value:ae,options:[{value:"none",label:S("None")},{value:"tablet",label:S("Tablet")},{value:"mobile",label:S("Mobile")}],help:S("Note: Choose on what breakpoint the Content Timeline will stack."),onChange:function(e){return r({stack:e})}})),wp.element.createElement(D,{title:S("Spacing"),initialOpen:!1},wp.element.createElement(F,{label:S("Horizontal Space"),value:O,onChange:function(e){return r({horizontalSpace:e})},min:1,max:50,allowReset:!0}),wp.element.createElement(F,{label:S("Vertical Space"),value:P,onChange:function(e){return r({verticalSpace:e})},min:1,max:100,allowReset:!0}),wp.element.createElement(F,{label:S("Heading Bottom Spacing"),value:i,onChange:function(e){return r({headSpace:e})},min:0,max:50,allowReset:!0})),wp.element.createElement(D,{title:S("Timeline Item"),initialOpen:!1},wp.element.createElement(L,{label:S("Heading Tag"),value:w,onChange:function(e){return r({headingTag:e})},options:[{value:"h1",label:S("H1")},{value:"h2",label:S("H2")},{value:"h3",label:S("H3")},{value:"h4",label:S("H4")},{value:"h5",label:S("H5")},{value:"h6",label:S("H6")}]}),wp.element.createElement(F,{label:S("Rounded Corners"),value:X,onChange:function(e){return r({borderRadius:e})},min:0,initialPosition:10,max:50,allowReset:!0}),wp.element.createElement(F,{label:S("Padding"),value:J,onChange:function(e){return r({bgPadding:e})},min:1,initialPosition:10,max:50,allowReset:!0}),wp.element.createElement(F,{label:S("Heading Font Size"),value:_,onChange:function(e){return r({headFontSize:e})},min:10,max:50,initialPosition:30,beforeIcon:"editor-textcolor",allowReset:!0}),wp.element.createElement(F,{label:S("Content Font Size"),value:T,onChange:function(e){return r({subHeadFontSize:e})},min:10,max:50,initialPosition:16,beforeIcon:"editor-textcolor",allowReset:!0})),wp.element.createElement(D,{title:S("Connector"),initialOpen:!1},wp.element.createElement(d.a,re),wp.element.createElement(F,{label:S("Icon Size"),value:Q,onChange:function(e){return r({iconSize:e})},min:0,max:30,allowReset:!0}),wp.element.createElement(F,{label:S("Icon Background Size"),value:B,onChange:function(e){return r({connectorBgsize:e})},min:25,max:90,allowReset:!0}),wp.element.createElement(F,{label:S("Border Width"),value:z,onChange:function(e){return r({borderwidth:e})},min:1,max:10,allowReset:!0}),wp.element.createElement(F,{label:S("Connector Width"),value:j,onChange:function(e){return r({separatorwidth:e})},min:1,max:10,allowReset:!0}),le),wp.element.createElement(M,{title:S("Color Settings"),initialOpen:!1,colorSettings:[{value:l,onChange:function(e){return r({headingColor:e})},label:S("Heading Color")},{value:u,onChange:function(e){return r({subHeadingColor:e})},label:S("Content Color")},{value:p,onChange:function(e){return r({backgroundColor:e})},label:S("Background Color")}]})),fe="uagb-ctm-"+this.props.clientId;return wp.element.createElement(x,null,ce,wp.element.createElement(N,null,wp.element.createElement(A,{value:q,onChange:function(e){r({align:e})},controls:["center","left","right"]})),wp.element.createElement("div",{className:s()(n,"uagb-timeline__outer-wrap"),id:fe},wp.element.createElement("div",{className:s.a.apply(void 0,["uagb-timeline__content-wrap"].concat(a(Object(h.a)(this.props.attributes))))},wp.element.createElement("div",{className:"uagb-timeline-wrapper"},wp.element.createElement("div",{className:"uagb-timeline__main"},this.get_content(),wp.element.createElement("div",{className:"uagb-timeline__line"},wp.element.createElement("div",{className:"uagb-timeline__line__inner"})))))))}},{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId});var e=this.props.clientId;window.addEventListener("load",this.timelineContent_back(e)),window.addEventListener("resize",this.timelineContent_back(e));var t=this;$(".edit-post-layout__content").scroll(function(n){t.timelineContent_back(e)});var n=document.createElement("style");n.setAttribute("id","uagb-content-timeline-style-"+this.props.clientId),document.head.appendChild(n)}},{key:"componentDidUpdate",value:function(){var e=this.props.clientId;window.addEventListener("load",this.timelineContent_back(e)),window.addEventListener("resize",this.timelineContent_back(e));var t=this;$(".edit-post-layout__content").scroll(function(n){t.timelineContent_back(e)})}},{key:"get_content",value:function(){var e=this,t=this.props,n=t.attributes,r=t.setAttributes,o=t.mergeBlocks,i=t.insertBlocksAfter,l=t.onReplace,s=E().formats.date,u=n.headingTag,c=n.timelinAlignment,f=n.displayPostDate,p=n.icon,d=n.tm_content,h=n.t_date,v=document.getElementById("uagb-content-timeline-style-"+this.props.clientId);null!=v&&"undefined"!=typeof v&&(v.innerHTML=Object(m.a)(this.props));var y=Array.isArray(d)&&d.length;Array.isArray(h)&&h.length;if(y){var w=Object(g.a)(this.props.attributes,0),k=Object(b.a)(this.props.attributes,0),C=[].concat(a(d)),T=!1;return wp.element.createElement("div",{className:"uagb-timeline__days"},d.map(function(t,n){"center"==c&&(T=!0,w=Object(g.a)(e.props.attributes,n),k=Object(b.a)(e.props.attributes,n));var a=(e.props.attributes.headingTag,"uagb-timeline__icon-new uagb-timeline__out-view-icon "+p),d=_(s,h[n].title);return"Invalid date"===d&&(d=h[n].title),wp.element.createElement("article",{className:"uagb-timeline__field uagb-timeline__field-wrap",key:n},wp.element.createElement("div",{className:w},wp.element.createElement("div",{className:"uagb-timeline__marker uagb-timeline__out-view-icon"},wp.element.createElement("span",{className:a})),wp.element.createElement("div",{className:k},wp.element.createElement("div",{className:"uagb-timeline__events-new"},wp.element.createElement("div",{className:"uagb-timeline__events-inner-new"},wp.element.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__date-inner"},f&&h[n].title&&wp.element.createElement("div",{className:"uagb-timeline__inner-date-new"},d)),wp.element.createElement("div",{className:"uagb-content"},wp.element.createElement("div",{className:"uagb-timeline__heading-text"},wp.element.createElement(j,{tagName:u,value:t.time_heading,placeholder:S("Write a Heading"),className:"uagb-timeline__heading",onChange:function(e){var t={time_heading:e,time_desc:C[n].time_desc};C[n]=t,r({tm_content:C})},onMerge:o,unstableOnSplit:i?function(e,t){for(var n=arguments.length,a=Array(n>2?n-2:0),o=2;o<n;o++)a[o-2]=arguments[o];r({content:e}),i([].concat(a,[P("core/paragraph",{content:t})]))}:void 0,onRemove:function(){return l([])}})),wp.element.createElement(j,{tagName:"p",value:t.time_desc,placeholder:S("Write a Description"),className:"uagb-timeline-desc-content",onChange:function(e){var t={time_heading:C[n].time_heading,time_desc:e};C[n]=t,r({tm_content:C})},onMerge:o,unstableOnSplit:e.splitBlock,onRemove:function(){return l([])}}),wp.element.createElement("div",{className:"uagb-timeline__arrow"}))))),T&&wp.element.createElement("div",{className:"uagb-timeline__date-new"},f&&h[n].title&&wp.element.createElement("div",{className:"uagb-timeline__date-new"},d))))}))}return wp.element.createElement(x,null,wp.element.createElement(B,{icon:"admin-post",label:S("UAGB Content Timeline")},Array.isArray(d)?S("No content found."):wp.element.createElement(U,null)))}},{key:"timelineContent_back",value:function(e){var t=$(".uagb-timeline").parents("#block-"+e),n=t.find(".uagb-timeline"),a=t.find(".uagb-timeline__line__inner"),r=t.find(".uagb-timeline__line"),o=t.find(".uagb-timeline__marker");if(o.length>0){var i=t.find(".uagb-timeline__field:last-child"),l=o.first().position(),s=o.last().position();r.css("top",l.top);var u,c,f=i.height(),p=i.offset().top-n.offset().top,d=$(document);if(n.hasClass("uagb-timeline__arrow-center"))r.css("bottom",s.top),c=p-l.top,u=c+s.top;else if(n.hasClass("uagb-timeline__arrow-top")){var m=f-s.top;r.css("bottom",m),u=p}else if(n.hasClass("uagb-timeline__arrow-bottom")){var h=f-s.top;r.css("bottom",h),c=p-l.top,u=c+s.top}var g=0,b=u+20,v=document.documentElement.clientHeight,y=v/2,w=n.offset().top,_=w+l.top,E=_-d.scrollTop();E=E<0?Math.abs(E):-Math.abs(E),w<y?y+Math.abs(E)<b?a.height(y+E):E+y>=b&&a.height(b):E+y<b?0>E?(a.height(y-Math.abs(E)),++g):a.height(y+E):E+y>=b&&a.height(b);for(var k,C,w,x,S,T=t.find(".uagb-timeline__marker"),P=t.find(".uagb-timeline__field-wrap"),O=0;O<T.length;O++)k=$(T[O]).offset().top,C=$(P[O]).offset().top,w=t.offset().top,t.offset().top,x=k-d.scrollTop(),S=C-d.scrollTop(),S<y?(P[O].classList.remove("out-view"),P[O].classList.add("in-view")):(P[O].classList.add("out-view"),P[O].classList.remove("in-view")),x<y?(T[O].classList.remove("uagb-timeline__out-view-icon"),T[O].classList.add("uagb-timeline__in-view-icon")):(T[O].classList.add("uagb-timeline__out-view-icon"),T[O].classList.remove("uagb-timeline__in-view-icon"))}}}]),t}(C);t.a=q},function(e,t,n){"use strict";var a=n(3),r=n(136),o=(n.n(r),n(376)),i=(n.n(o),n(377)),l=wp.i18n.__,s=wp.blocks.registerBlockType;s("uagb/post-timeline",{title:uagb_blocks_info.blocks["uagb/post-timeline"].title,description:uagb_blocks_info.blocks["uagb/post-timeline"].description,icon:a.a.post_timeline,category:uagb_blocks_info.category,keywords:[l("post"),l("timeline"),l("uagb")],getEditWrapperProps:function(e){e.align},edit:i.a,save:function(){return null}})},function(e,t){},function(e,t,n){"use strict";function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var l=n(24),s=n.n(l),u=n(25),c=n.n(u),f=n(0),p=n.n(f),d=n(17),m=n(18),h=n.n(m),g=n(71),b=n(72),v=n(73),y=n(74),w=n(378),_=n(379),E=n(380),k=n(381),C=n(382),x=n(383),S=n(384),T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},P=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),O=wp.element,N=O.Component,R=O.Fragment,I=wp.i18n.__,j=(wp.htmlEntities.decodeEntities,wp.data.withSelect),A=wp.components,M=A.PanelBody,z=A.Placeholder,D=A.QueryControls,L=A.RangeControl,B=A.SelectControl,F=A.Spinner,U=A.ToggleControl,W=A.TabPanel,H=A.TextControl,V=wp.editor,q=V.InspectorControls,G=V.ColorPalette,Y=V.BlockAlignmentToolbar,K=V.BlockControls,Q=V.PanelColorSettings,X=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.getTimelineicon=e.getTimelineicon.bind(e),e}return i(t,e),P(t,[{key:"getTimelineicon",value:function(e){this.props.setAttributes({icon:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,r=t.categoriesList,o=t.setAttributes,i=(t.latestPosts,t.focus,n.className),l=n.headingColor,s=n.subHeadingColor,u=n.backgroundColor,c=n.separatorColor,f=n.separatorFillColor,m=n.separatorBg,g=n.separatorBorder,v=n.borderFocus,y=n.headingTag,w=n.headFontSize,_=(n.timelineItem,n.postNumber,n.timelinAlignment),E=n.arrowlinAlignment,k=n.subHeadFontSize,C=n.verticalSpace,x=n.horizontalSpace,S=n.headSpace,P=n.separatorwidth,O=n.borderwidth,N=n.connectorBgsize,j=n.authorSpace,A=n.contentSpace,z=n.authorColor,F=n.dateBottomspace,V=n.displayPostDate,$=n.displayPostExcerpt,X=n.displayPostAuthor,J=n.displayPostImage,Z=n.displayPostLink,ee=n.align,te=(n.postLayout,n.order),ne=n.orderBy,ae=n.categories,re=n.postsToShow,oe=(n.width,n.imageSize),ie=n.readMoreText,le=n.ctaBackground,se=n.icon,ue=n.iconColor,ce=n.dateColor,fe=n.ctaColor,pe=n.dateFontsize,de=n.authorFontSize,me=n.ctaFontSize,he=n.iconSize,ge=n.exerptLength,be=n.borderRadius,ve=n.bgPadding,ye=n.contentPadding,we=(n.block_id,n.iconFocus),_e=n.iconBgFocus,Ee=n.stack,ke=n.linkTarget,Ce=[{value:"thumbnail",label:I("Thumbnail")},{value:"medium",label:I("Medium")},{value:"medium_large",label:I("Medium Large")},{value:"large",label:I("Large")}],xe={icons:d.a,renderUsing:"class",theme:"default",value:se,onChange:this.getTimelineicon,isMulti:!1},Se=wp.element.createElement(R,null,wp.element.createElement(Q,{title:I("Color Settings"),initialOpen:!0,colorSettings:[{value:c,onChange:function(e){return o({separatorColor:e})},label:I("Line Color")},{value:ue,onChange:function(e){return o({iconColor:e})},label:I("Icon Color")},{value:m,onChange:function(e){return o({separatorBg:e})},label:I("Background Color")},{value:g,onChange:function(e){return o({separatorBorder:e})},label:I("Border Color")}]})),Te=wp.element.createElement(R,null,wp.element.createElement(Q,{title:I("Color Settings"),initialOpen:!0,colorSettings:[{value:f,onChange:function(e){return o({separatorFillColor:e})},label:I("Line Color")},{value:we,onChange:function(e){return o({iconFocus:e})},label:I("Icon Color")},{value:_e,onChange:function(e){return o({iconBgFocus:e})},label:I("Background Color")},{value:v,onChange:function(e){return o({borderFocus:e})},label:I("Border Color")}]})),Pe=wp.element.createElement(R,null,wp.element.createElement(M,{title:I("Connector Color Settings"),initialOpen:!0},wp.element.createElement(W,{className:"uagb-inspect-tabs uagb-inspect-tabs-col-2",activeClass:"active-tab",tabs:[{name:"normal",title:I("Normal"),className:"uagb-normal-tab"},{name:"focus",title:I("Focus"),className:"uagb-focus-tab"}]},function(e){var t=void 0;return t="focus"===e.name?Te:Se,wp.element.createElement("div",null,t)}))),Oe=wp.element.createElement(R,null,wp.element.createElement(Q,{title:I("Color Settings"),initialOpen:!1,colorSettings:[{value:u,onChange:function(e){return o({backgroundColor:e})},label:I("Background Color")}]},V&&wp.element.createElement(R,null,wp.element.createElement("p",{className:"uagb-setting-label"},I("Date Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:ce}}))),wp.element.createElement(G,{value:ce,onChange:function(e){return o({dateColor:e})},allowReset:!0})),wp.element.createElement(R,null,wp.element.createElement("p",{className:"uagb-setting-label"},I("Heading Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:l}}))),wp.element.createElement(G,{value:l,onChange:function(e){return o({headingColor:e})},allowReset:!0})),X&&wp.element.createElement(R,null,wp.element.createElement("p",{className:"uagb-setting-label"},I("Author Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:z}}))),wp.element.createElement(G,{value:z,onChange:function(e){return o({authorColor:e})},allowReset:!0})),$&&wp.element.createElement(R,null,wp.element.createElement("p",{className:"uagb-setting-label"},I("Content Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:s}}))),wp.element.createElement(G,{value:s,onChange:function(e){return o({subHeadingColor:e})},allowReset:!0})),Z&&wp.element.createElement(R,null,wp.element.createElement("p",{className:"uagb-setting-label"},I("CTA Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:fe}}))),wp.element.createElement(G,{value:fe,onChange:function(e){return o({ctaColor:e})},allowReset:!0}),wp.element.createElement("p",{className:"uagb-setting-label"},I("CTA Background Color"),wp.element.createElement("span",{className:"components-base-control__label"},wp.element.createElement("span",{className:"component-color-indicator",style:{backgroundColor:le}}))),wp.element.createElement(G,{value:le,onChange:function(e){return o({ctaBackground:e})},allowReset:!0})))),Ne=wp.element.createElement(q,null,wp.element.createElement(M,{title:I("Query"),initialOpen:!0},wp.element.createElement(D,T({numberOfItems:re},{order:te,orderBy:ne},{categoriesList:r,selectedCategoryId:ae,onOrderChange:function(e){o({order:e})},onOrderByChange:function(e){o({orderBy:e})},onCategoryChange:function(e){o({categories:""!==e?e:void 0})},onNumberOfItemsChange:function(e){o({postsToShow:e})}}))),wp.element.createElement(M,{title:I("Layout"),initialOpen:!1},wp.element.createElement(B,{label:I("Orientation"),value:_,onChange:function(e){return o({timelinAlignment:e})},options:[{value:"left",label:I("Left")},{value:"right",label:I("Right")},{value:"center",label:I("Center")}]}),wp.element.createElement(B,{label:I("Arrow Alignment"),value:E,onChange:function(e){return o({arrowlinAlignment:e})},options:[{value:"top",label:I("Top")},{value:"bottom",label:I("Bottom")},{value:"center",label:I("Center")}]}),wp.element.createElement(B,{label:I("Stack on"),value:Ee,options:[{value:"none",label:I("None")},{value:"tablet",label:I("Tablet")},{value:"mobile",label:I("Mobile")}],help:I("Note: Choose on what breakpoint the Post Timeline will stack."),onChange:function(e){return o({stack:e})}})),wp.element.createElement(M,{title:I("Image"),initialOpen:!1},wp.element.createElement(U,{label:I("Display Featured Image"),checked:J,onChange:function(e){return o({displayPostImage:!J})}}),J&&wp.element.createElement(B,{label:I("Featured Image Style"),options:Ce,value:oe,onChange:function(t){return e.props.setAttributes({imageSize:t})}})),wp.element.createElement(M,{title:I("Content"),initialOpen:!1},wp.element.createElement(U,{label:I("Display Post Author"),checked:X,onChange:function(e){return o({displayPostAuthor:!X})}}),wp.element.createElement(U,{label:I("Display Post Date"),checked:V,onChange:function(e){return o({displayPostDate:!V})}}),wp.element.createElement(U,{label:I("Display Post Excerpt"),checked:$,onChange:function(e){return o({displayPostExcerpt:!$})}}),$&&wp.element.createElement(L,{label:I("Excerpt Length"),value:ge,onChange:function(e){return o({exerptLength:e})},min:1,max:50,allowReset:!0}),wp.element.createElement(U,{label:I("Display Continue Reading Link"),checked:Z,onChange:function(e){return o({displayPostLink:!Z})}}),Z&&wp.element.createElement(R,null,wp.element.createElement(H,{label:I("CTA Text"),value:ie,onChange:function(e){return o({readMoreText:e})}})),wp.element.createElement(U,{label:I("Open links in New Tab"),checked:ke,onChange:function(e){return o({linkTarget:!ke})}})),wp.element.createElement(M,{title:I("Timeline Item"),initialOpen:!1},wp.element.createElement(B,{label:I("Heading Tag"),value:y,onChange:function(e){return o({headingTag:e})},options:[{value:"h1",label:I("H1")},{value:"h2",label:I("H2")},{value:"h3",label:I("H3")},{value:"h4",label:I("H4")},{value:"h5",label:I("H5")},{value:"h6",label:I("H6")}]}),wp.element.createElement(L,{label:I("Heading Font Size"),value:w,onChange:function(e){return o({headFontSize:e})},min:10,max:50,initialPosition:30,beforeIcon:"editor-textcolor",allowReset:!0}),wp.element.createElement(L,{label:I("Content Font Size"),value:k,onChange:function(e){return o({subHeadFontSize:e})},min:10,max:50,initialPosition:16,beforeIcon:"editor-textcolor",allowReset:!0}),V&&wp.element.createElement(L,{label:I("Date Font Size"),value:pe,onChange:function(e){return o({dateFontsize:e})},min:1,max:50,initialPosition:16,beforeIcon:"editor-textcolor",allowReset:!0}),X&&wp.element.createElement(L,{label:I("Author Font Size"),value:de,onChange:function(e){return o({authorFontSize:e})},min:10,max:50,initialPosition:30,beforeIcon:"editor-textcolor",allowReset:!0}),Z&&wp.element.createElement(L,{label:I("CTA Font Size"),value:me,onChange:function(e){return o({ctaFontSize:e})},min:10,max:50,initialPosition:30,beforeIcon:"editor-textcolor",allowReset:!0}),wp.element.createElement(L,{label:I("Rounded Corners"),value:be,onChange:function(e){return o({borderRadius:e})},min:0,initialPosition:10,max:50,allowReset:!0})),wp.element.createElement(M,{title:I("Connector"),initialOpen:!1},wp.element.createElement(h.a,xe),wp.element.createElement(L,{label:I("Icon Size"),value:he,onChange:function(e){return o({iconSize:e})},min:0,max:30,allowReset:!0}),wp.element.createElement(L,{label:I("Icon Background Size"),value:N,onChange:function(e){return o({connectorBgsize:e})},min:25,max:90,allowReset:!0}),wp.element.createElement(L,{label:I("Border Width"),value:O,onChange:function(e){return o({borderwidth:e})},min:1,max:10,allowReset:!0}),wp.element.createElement(L,{label:I("Connector Width"),value:P,onChange:function(e){return o({separatorwidth:e})},min:1,max:10,allowReset:!0}),Pe),Oe,wp.element.createElement(M,{title:I("Spacing"),initialOpen:!1},wp.element.createElement(L,{label:I("Block Padding"),value:ve,onChange:function(e){return o({bgPadding:e})},min:0,initialPosition:10,max:50,allowReset:!0}),wp.element.createElement(L,{label:I("Content Padding"),value:ye,onChange:function(e){return o({contentPadding:e})},min:0,initialPosition:10,max:50,allowReset:!0}),wp.element.createElement(L,{label:I("Horizontal Space"),value:x,onChange:function(e){return o({horizontalSpace:e})},min:0,max:50,initialPosition:10,allowReset:!0}),wp.element.createElement(L,{label:I("Vertical Space"),value:C,onChange:function(e){return o({verticalSpace:e})},min:0,max:100,initialPosition:10,allowReset:!0}),wp.element.createElement(L,{label:I("Heading Bottom Spacing"),value:S,onChange:function(e){return o({headSpace:e})},min:0,max:50,initialPosition:10,allowReset:!0}),X&&wp.element.createElement(L,{label:I("Author Bottom Spacing"),value:j,onChange:function(e){return o({authorSpace:e})},min:0,max:50,initialPosition:10,allowReset:!0}),$&&Z&&wp.element.createElement(L,{label:I("Content Bottom Spacing"),value:A,onChange:function(e){return o({contentSpace:e})},min:0,max:50,initialPosition:10,allowReset:!0}),V&&"center"!==_&&wp.element.createElement(L,{label:I("Date Bottom Spacing"),value:F,onChange:function(e){return o({dateBottomspace:e})},min:0,max:50,initialPosition:10,allowReset:!0}))),Re="uagb-ctm-"+this.props.clientId,Ie="";return Z&&(Ie="uagb_timeline__cta-enable"),wp.element.createElement(R,null,Ne,wp.element.createElement(K,null,wp.element.createElement(Y,{value:ee,onChange:function(e){o({align:e})},controls:["center","left","right"]})),wp.element.createElement("div",{className:p()(i,"uagb-timeline__outer-wrap"),id:Re},wp.element.createElement("div",{className:p.a.apply(void 0,["uagb-timeline__content-wrap",Ie].concat(a(Object(b.a)(this.props.attributes))))},wp.element.createElement("div",{className:"uagb-timeline-wrapper"},wp.element.createElement("div",{className:"uagb-timeline__main"},this.get_content(),wp.element.createElement("div",{className:"uagb-timeline__line"},wp.element.createElement("div",{className:"uagb-timeline__line__inner"})))))))}},{key:"componentDidMount",value:function(){this.props.setAttributes({block_id:this.props.clientId});var e=this.props.clientId;window.addEventListener("load",this.timelineContent_back(e)),window.addEventListener("resize",this.timelineContent_back(e));var t=this;$(".edit-post-layout__content").scroll(function(n){t.timelineContent_back(e)});var n=document.createElement("style");n.setAttribute("id","uagb-timeline-style-"+this.props.clientId),document.head.appendChild(n)}},{key:"componentDidUpdate",value:function(){var e=this.props.clientId;window.addEventListener("load",this.timelineContent_back(e)),window.addEventListener("resize",this.timelineContent_back(e));var t=this;$(".edit-post-layout__content").scroll(function(n){t.timelineContent_back(e)})}},{key:"timelineContent_back",value:function(e){var t=$(".uagb-timeline").parents("#block-"+e),n=t.find(".uagb-timeline"),a=t.find(".uagb-timeline__line__inner"),r=t.find(".uagb-timeline__line"),o=t.find(".uagb-timeline__marker");if(o.length>0){var i=t.find(".uagb-timeline__field:last-child"),l=o.first().position(),s=o.last().position();r.css("top",l.top);var u,c,f=i.height(),p=i.offset().top-n.offset().top,d=$(document);if(n.hasClass("uagb-timeline__arrow-center"))r.css("bottom",s.top),c=p-l.top,u=c+s.top;else if(n.hasClass("uagb-timeline__arrow-top")){var m=f-s.top;r.css("bottom",m),u=p}else if(n.hasClass("uagb-timeline__arrow-bottom")){var h=f-s.top;r.css("bottom",h),c=p-l.top,u=c+s.top}var g=0,b=u+20,v=document.documentElement.clientHeight,y=v/2,w=n.offset().top,_=w+l.top,E=_-d.scrollTop();E=E<0?Math.abs(E):-Math.abs(E),w<y?y+Math.abs(E)<b?a.height(y+E):E+y>=b&&a.height(b):E+y<b?0>E?(a.height(y-Math.abs(E)),++g):a.height(y+E):E+y>=b&&a.height(b);for(var k,C,w,x,S,T=t.find(".uagb-timeline__marker"),P=t.find(".uagb-timeline__field-wrap"),O=0;O<T.length;O++)k=$(T[O]).offset().top,C=$(P[O]).offset().top,w=t.offset().top,t.offset().top,x=k-d.scrollTop(),S=C-d.scrollTop(),S<y?(P[O].classList.remove("out-view"),P[O].classList.add("in-view")):(P[O].classList.add("out-view"),P[O].classList.remove("in-view")),x<y?(T[O].classList.remove("uagb-timeline__out-view-icon"),T[O].classList.add("uagb-timeline__in-view-icon")):(T[O].classList.add("uagb-timeline__out-view-icon"),T[O].classList.remove("uagb-timeline__in-view-icon"))}}},{key:"get_content",value:function(){var e=this,t=this.props,n=t.attributes,r=(t.setAttributes,t.latestPosts),o=(t.mergeBlocks,t.insertBlocksAfter,t.onReplace,n.timelinAlignment),i=(n.arrowlinAlignment,n.displayPostDate,n.postsToShow),l=n.contentPadding,s=(n.align,document.getElementById("uagb-timeline-style-"+this.props.clientId));if(null!=s&&"undefined"!=typeof s&&(s.innerHTML=Object(g.a)(this.props)),Array.isArray(r)&&r.length){var u=r.length>i?r.slice(0,i):r,c=Object(v.a)(this.props.attributes,0),f=Object(y.a)(this.props.attributes,0),p=([].concat(a(r)),!1);return wp.element.createElement("div",{className:"uagb-timeline__days"},u.map(function(t,a){return"center"==o&&(p=!0,c=Object(v.a)(e.props.attributes,a),f=Object(y.a)(e.props.attributes,a)),wp.element.createElement("article",{className:"uagb-timeline__field uagb-timeline__field-wrap",key:a},wp.element.createElement("div",{className:c},wp.element.createElement(S.a,{attributes:n}),wp.element.createElement("div",{className:f},wp.element.createElement("div",{className:"uagb-timeline__events-new"},wp.element.createElement("div",{className:"uagb-timeline__events-inner-new"},wp.element.createElement("div",{className:"uagb-timeline__date-hide uagb-timeline__date-inner"},wp.element.createElement(x.a,{post:t,attributes:n,dateClass:"uagb-timeline__inner-date-new"})),wp.element.createElement(_.a,{post:t,attributes:n}),wp.element.createElement("div",{className:"uagb-content",style:{padding:l+"px"}},wp.element.createElement(w.a,{post:t,attributes:n}),wp.element.createElement(C.a,{post:t,attributes:n}),wp.element.createElement(E.a,{post:t,attributes:n}),wp.element.createElement(k.a,{post:t,attributes:n}),wp.element.createElement("div",{className:"uagb-timeline__arrow"}))))),p&&wp.element.createElement("div",{className:"uagb-timeline__date-new"},wp.element.createElement(x.a,{post:t,attributes:n,dateClass:"uagb-timeline__date-new"}))))}))}return wp.element.createElement(R,null,wp.element.createElement(z,{icon:"admin-post",label:I("UAGB timeline")},Array.isArray(r)?I("No posts found."):wp.element.createElement(F,null)))}}]),t}(N);t.a=j(function(e,t){var n=t.attributes,a=n.postsToShow,r=n.order,o=n.orderBy,i=n.categories,l=e("core"),u=l.getEntityRecords,f=c()({categories:i,order:r,orderby:o,per_page:a,ignore_sticky_posts:1},function(e){return!s()(e)}),p={per_page:100};return{latestPosts:u("postType","post",f),categoriesList:u("taxonomy","category",p)}})(X)},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=wp.htmlEntities.decodeEntities,s=wp.i18n.__,u=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props.attributes.headingTag,t=this.props,n=t.post,a=t.attributes,r="_self";return a.linkTarget&&(r="_blank"),wp.element.createElement("div",{className:"uagb-timeline__heading-text"},wp.element.createElement(e,{className:"uagb-timeline__heading"},wp.element.createElement("a",{href:n.link,target:r,rel:"noopener noreferrer"},l(n.title.rendered.trim())||s("(Untitled)"))))}}]),t}(React.Component);t.a=u},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=wp.htmlEntities.decodeEntities,s=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.post,n=e.attributes;if(n.displayPostImage&&void 0!==t.featured_image_src&&n.imageSize&&t.featured_image_src[n.imageSize]){var a=t.featured_image_src[n.imageSize],r="_self";return n.linkTarget&&(r="_blank"),wp.element.createElement("div",{className:"uagb-timeline__image"},wp.element.createElement("a",{href:t.link,target:r,rel:"noopener noreferrer",style:{textAlign:n.align}},wp.element.createElement("img",{src:a[0],alt:l(t.title.rendered.trim())||__("(Untitled)")})))}return null}}]),t}(React.Component);t.a=s},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.post,n=e.attributes;if(n.displayPostExcerpt&&void 0!==t.excerpt){if(n.displayPostExcerpt&&t.excerpt)var a=t.excerpt.split(/\s+/).slice(0,n.exerptLength).join(" ");var r="";return n.displayPostLink&&(r=n.contentSpace+"px"),wp.element.createElement("div",{className:"uagb-timeline-desc-content",dangerouslySetInnerHTML:{__html:a},style:{marginBottom:r}})}return null}}]),t}(React.Component);t.a=l},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.post,n=e.attributes,a="_self";return n.linkTarget&&(a="_blank"),n.displayPostLink?wp.element.createElement("div",{className:"uagb-timeline__link_parent",style:{textAlign:n.align}},wp.element.createElement("a",{className:"uagb-timeline__link",href:t.link,target:a,rel:"noopener noreferrer",style:{color:n.ctaColor,fontSize:n.ctaFontSize+"px",background:n.ctaBackground}},n.readMoreText)):null}}]),t}(React.Component);t.a=l},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=wp.element.Fragment,s=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.post,n=e.attributes,a="_self";return n.linkTarget&&(a="_blank"),wp.element.createElement(l,null,n.displayPostAuthor&&void 0!==t.author_info&&wp.element.createElement("div",{className:"uagb-timeline__author",style:{textAlign:n.align,marginBottom:n.authorSpace+"px"}},wp.element.createElement("span",{className:"dashicons-admin-users dashicons",style:{color:n.authorColor,fontSize:n.authorFontSize+"px"}}),wp.element.createElement("a",{className:"uagb-timeline__author-link",target:a,href:t.author_info.author_link,rel:"noopener noreferrer",style:{color:n.authorColor,fontSize:n.authorFontSize+"px"}},t.author_info.display_name)))}}]),t}(React.Component);t.a=s},function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),l=wp.date,s=l.dateI18n,u=l.format,c=l.__experimentalGetSettings,f=wp.element.Fragment,p=function(e){function t(){return a(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:functi
|
|