Version Description
- Tweak: Added Website Static Pages (Homepage, Frontpage, Blog Page, or 404 page) option in Display Conditions.
- Tweak: Improve compatibility between WPML and Blog widget.
- Fixed: Play icon not showing in Video Box widget if Load Font Awesome 4 Elementor option is disabled.
- Fixed: Images not properly showing in Media Grid widget when Load More button option enabled and First Category Filter option disabled.
- Fixed: Custom link attributes not working in Media Grid widget.
Download this release
Release Info
Developer | leap13 |
Plugin | Premium Addons for Elementor |
Version | 4.9.22 |
Comparing to | |
See all releases |
Code changes from version 4.9.21 to 4.9.22
- admin/includes/elements.php +0 -12
- assets/frontend/css/premium-addons-rtl.css +456 -456
- assets/frontend/css/premium-addons.css +392 -392
- assets/frontend/css/premium-img-gallery-rtl.css +456 -456
- assets/frontend/css/premium-img-gallery.css +392 -392
- assets/frontend/js/lottie.js +3 -3
- assets/frontend/js/premium-addons.js +2710 -2706
- assets/frontend/js/premium-dis-conditions.js +17 -17
- assets/frontend/js/premium-img-gallery.js +393 -389
- assets/frontend/js/premium-woo-products.js +646 -646
- assets/frontend/min-js/lottie.min.js +1 -1
- assets/frontend/min-js/premium-addons.min.js +1 -1
admin/includes/elements.php
CHANGED
@@ -57,12 +57,6 @@ $elements = array(
|
|
57 |
Â
'demo' => Helper_Functions::get_campaign_link( 'https://premiumaddons.com/persons-widget-for-elementor-page-builder/', 'settings-page', 'wp-dash', 'dashboard' ),
|
58 |
Â
'doc' => Helper_Functions::get_campaign_link( 'https://premiumaddons.com/docs/persons-widget-tutorial/', 'settings-page', 'wp-dash', 'dashboard' ),
|
59 |
Â
),
|
60 |
-
// array(
|
61 |
-
// 'key' => 'premium-svg-drawer',
|
62 |
-
// 'name' => 'premium-svg-drawer',
|
63 |
-
// 'title' => __( 'SVG Drawer', 'premium-addons-for-elementor' ),
|
64 |
-
// 'is_pro' => true,
|
65 |
-
// ),
|
66 |
Â
array(
|
67 |
Â
'key' => 'premium-tabs',
|
68 |
Â
'name' => 'premium-addon-tabs',
|
@@ -950,12 +944,6 @@ $elements = array(
|
|
950 |
Â
'doc' => Helper_Functions::get_campaign_link( 'https://premiumaddons.com/docs/bullet-list-widget-tutorial/', 'settings-page', 'wp-dash', 'dashboard' ),
|
951 |
Â
'tutorial' => 'https://www.youtube.com/watch?v=MPeXJiZ14sI',
|
952 |
Â
),
|
953 |
-
// array(
|
954 |
-
// 'key' => 'premium-svg-drawer',
|
955 |
-
// 'name' => 'premium-svg-drawer',
|
956 |
-
// 'title' => __( 'SVG Drawer', 'premium-addons-for-elementor' ),
|
957 |
-
// 'is_pro' => true,
|
958 |
-
// ),
|
959 |
Â
),
|
960 |
Â
),
|
961 |
Â
'cat-8' => array(
|
57 |
Â
'demo' => Helper_Functions::get_campaign_link( 'https://premiumaddons.com/persons-widget-for-elementor-page-builder/', 'settings-page', 'wp-dash', 'dashboard' ),
|
58 |
Â
'doc' => Helper_Functions::get_campaign_link( 'https://premiumaddons.com/docs/persons-widget-tutorial/', 'settings-page', 'wp-dash', 'dashboard' ),
|
59 |
Â
),
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
60 |
Â
array(
|
61 |
Â
'key' => 'premium-tabs',
|
62 |
Â
'name' => 'premium-addon-tabs',
|
944 |
Â
'doc' => Helper_Functions::get_campaign_link( 'https://premiumaddons.com/docs/bullet-list-widget-tutorial/', 'settings-page', 'wp-dash', 'dashboard' ),
|
945 |
Â
'tutorial' => 'https://www.youtube.com/watch?v=MPeXJiZ14sI',
|
946 |
Â
),
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
947 |
Â
),
|
948 |
Â
),
|
949 |
Â
'cat-8' => array(
|
assets/frontend/css/premium-addons-rtl.css
CHANGED
@@ -4879,462 +4879,462 @@ a.premium-image-separator-link:active {
|
|
4879 |
Â
-webkit-transition: all 0.3s ease-in-out;
|
4880 |
Â
transition: all 0.3s ease-in-out;
|
4881 |
Â
}
|
4882 |
-
/******** Premium Media Grid ********/
|
4883 |
-
/************************************/
|
4884 |
-
.premium-img-gallery-filter,
|
4885 |
-
.premium-blog-filter {
|
4886 |
-
display: -webkit-box;
|
4887 |
-
display: -webkit-flex;
|
4888 |
-
display: -ms-flexbox;
|
4889 |
-
-js-display: flex;
|
4890 |
-
display: -moz-box;
|
4891 |
-
display: flex;
|
4892 |
-
-webkit-box-align: center;
|
4893 |
-
-webkit-align-items: center;
|
4894 |
-
-moz-box-align: center;
|
4895 |
-
-ms-flex-align: center;
|
4896 |
-
align-items: center;
|
4897 |
-
-webkit-box-pack: center;
|
4898 |
-
-webkit-justify-content: center;
|
4899 |
-
-moz-box-pack: center;
|
4900 |
-
-ms-flex-pack: center;
|
4901 |
-
justify-content: center;
|
4902 |
-
}
|
4903 |
-
|
4904 |
-
.premium-img-gallery {
|
4905 |
-
clear: both;
|
4906 |
-
overflow: hidden;
|
4907 |
-
}
|
4908 |
-
|
4909 |
-
.premium-gallery-container .premium-gallery-item {
|
4910 |
-
padding: 10px;
|
4911 |
-
float: right;
|
4912 |
-
/* Google Chrome isotope issue */
|
4913 |
-
}
|
4914 |
-
|
4915 |
-
.premium-gallery-container .grid-sizer {
|
4916 |
-
width: 33.33%;
|
4917 |
-
}
|
4918 |
-
|
4919 |
-
.premium-img-gallery-filter .premium-gallery-cats-container li a.category,
|
4920 |
-
.premium-blog-filter .premium-blog-filters-container li a.category {
|
4921 |
-
outline: none;
|
4922 |
-
text-decoration: none;
|
4923 |
-
-webkit-border-radius: 75px;
|
4924 |
-
border-radius: 75px;
|
4925 |
-
margin: 15px 5px 20px;
|
4926 |
-
padding: 7px 20px;
|
4927 |
-
-webkit-transition: all 0.3s ease-in-out;
|
4928 |
-
transition: all 0.3s ease-in-out;
|
4929 |
-
}
|
4930 |
-
|
4931 |
-
/* .premium-img-gallery-filter .premium-gallery-cats-container li a.category span {
|
4932 |
-
-webkit-transition: all 0.3s ease-in-out;
|
4933 |
-
transition: all 0.3s ease-in-out;
|
4934 |
-
} */
|
4935 |
-
|
4936 |
-
.pa-gallery-img {
|
4937 |
-
position: relative;
|
4938 |
-
}
|
4939 |
-
|
4940 |
-
.pa-gallery-img .pa-gallery-whole-link {
|
4941 |
-
position: absolute;
|
4942 |
-
top: 0;
|
4943 |
-
right: 0;
|
4944 |
-
width: 100%;
|
4945 |
-
height: 100%;
|
4946 |
-
z-index: 2;
|
4947 |
-
}
|
4948 |
-
|
4949 |
-
.pa-gallery-img .pa-gallery-whole-link span {
|
4950 |
-
display: none;
|
4951 |
-
}
|
4952 |
-
|
4953 |
-
.pa-gallery-img.style2 .pa-gallery-whole-link,
|
4954 |
-
.pa-gallery-img.style3 .pa-gallery-whole-link {
|
4955 |
-
z-index: 99;
|
4956 |
-
}
|
4957 |
-
|
4958 |
-
.pa-gallery-img-container {
|
4959 |
-
overflow: hidden;
|
4960 |
-
-webkit-backface-visibility: hidden;
|
4961 |
-
-moz-backface-visibility: hidden;
|
4962 |
-
-webkit-transform: translate3d(0, 0, 0);
|
4963 |
-
transform: translate3d(0, 0, 0);
|
4964 |
-
}
|
4965 |
-
|
4966 |
-
.pa-gallery-img-container img {
|
4967 |
-
display: block;
|
4968 |
-
width: 100%;
|
4969 |
-
-webkit-transition: all 0.3s ease-in-out;
|
4970 |
-
transition: all 0.3s ease-in-out;
|
4971 |
-
}
|
4972 |
-
|
4973 |
-
.premium-img-gallery.gray img {
|
4974 |
-
-webkit-filter: grayscale(100%);
|
4975 |
-
filter: grayscale(100%);
|
4976 |
-
}
|
4977 |
-
|
4978 |
-
.premium-img-gallery.zoomout img,
|
4979 |
-
.premium-img-gallery.scale img {
|
4980 |
-
-webkit-transform: scale(1.2);
|
4981 |
-
-ms-transform: scale(1.2);
|
4982 |
-
transform: scale(1.2);
|
4983 |
-
}
|
4984 |
-
|
4985 |
-
.premium-img-gallery.sepia img {
|
4986 |
-
-webkit-filter: sepia(30%);
|
4987 |
-
filter: sepia(30%);
|
4988 |
-
}
|
4989 |
-
|
4990 |
-
.premium-img-gallery.bright img {
|
4991 |
-
-webkit-filter: brightness(1);
|
4992 |
-
filter: brightness(1);
|
4993 |
-
}
|
4994 |
-
|
4995 |
-
.premium-img-gallery.trans img {
|
4996 |
-
-webkit-transform: translateX(15px) scale(1.1);
|
4997 |
-
-ms-transform: translateX(15px) scale(1.1);
|
4998 |
-
transform: translateX(15px) scale(1.1);
|
4999 |
-
}
|
5000 |
-
|
5001 |
-
.pa-gallery-img .pa-gallery-magnific-image,
|
5002 |
-
.pa-gallery-img .pa-gallery-img-link {
|
5003 |
-
outline: none;
|
5004 |
-
}
|
5005 |
-
|
5006 |
-
.pa-gallery-img .pa-gallery-magnific-image i,
|
5007 |
-
.pa-gallery-img .pa-gallery-magnific-image svg,
|
5008 |
-
.pa-gallery-img .pa-gallery-img-link i,
|
5009 |
-
.pa-gallery-img .pa-gallery-img-link svg {
|
5010 |
-
-webkit-transition: all 0.3s ease-in-out;
|
5011 |
-
transition: all 0.3s ease-in-out;
|
5012 |
-
}
|
5013 |
-
|
5014 |
-
.pa-gallery-img .pa-gallery-magnific-image span,
|
5015 |
-
.pa-gallery-img .pa-gallery-img-link span {
|
5016 |
-
line-height: 1;
|
5017 |
-
display: inline-block;
|
5018 |
-
opacity: 0;
|
5019 |
-
margin: 0 5px;
|
5020 |
-
padding: 15px;
|
5021 |
-
-webkit-border-radius: 50%;
|
5022 |
-
border-radius: 50%;
|
5023 |
-
}
|
5024 |
-
|
5025 |
-
.pa-gallery-img.style2 .pa-gallery-magnific-image span,
|
5026 |
-
.pa-gallery-img.style2 .pa-gallery-img-link span {
|
5027 |
-
margin: 0 5px 20px;
|
5028 |
-
}
|
5029 |
-
|
5030 |
-
.pa-gallery-img:hover .pa-gallery-magnific-image span {
|
5031 |
-
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
|
5032 |
-
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
|
5033 |
-
}
|
5034 |
-
|
5035 |
-
.pa-gallery-img:hover .pa-gallery-img-link span {
|
5036 |
-
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
|
5037 |
-
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
|
5038 |
-
}
|
5039 |
-
|
5040 |
-
.pa-gallery-img:hover .pa-gallery-magnific-image span,
|
5041 |
-
.pa-gallery-img:hover .pa-gallery-img-link span,
|
5042 |
-
.premium-gallery-icon-show a.pa-gallery-video-icon span {
|
5043 |
-
opacity: 1;
|
5044 |
-
}
|
5045 |
-
|
5046 |
-
.premium-img-gallery-filter ul.premium-gallery-cats-container,
|
5047 |
-
.premium-blog-filter ul.premium-blog-filters-container {
|
5048 |
-
text-align: center;
|
5049 |
-
margin: 0;
|
5050 |
-
padding: 0;
|
5051 |
-
}
|
5052 |
-
|
5053 |
-
.premium-img-gallery-filter .premium-gallery-cats-container li,
|
5054 |
-
.premium-blog-filter .premium-blog-filters-container li {
|
5055 |
-
list-style: none;
|
5056 |
-
display: -webkit-inline-box;
|
5057 |
-
display: -webkit-inline-flex;
|
5058 |
-
display: -ms-inline-flexbox;
|
5059 |
-
-js-display: inline-flex;
|
5060 |
-
display: -moz-inline-box;
|
5061 |
-
display: inline-flex;
|
5062 |
-
}
|
5063 |
-
|
5064 |
-
.premium-img-gallery.zoomin .pa-gallery-img:hover img {
|
5065 |
-
-webkit-transform: scale(1.1);
|
5066 |
-
-ms-transform: scale(1.1);
|
5067 |
-
transform: scale(1.1);
|
5068 |
-
}
|
5069 |
-
|
5070 |
-
.premium-img-gallery.zoomout .pa-gallery-img:hover img {
|
5071 |
-
-webkit-transform: scale(1);
|
5072 |
-
-ms-transform: scale(1);
|
5073 |
-
transform: scale(1);
|
5074 |
-
}
|
5075 |
-
|
5076 |
-
.premium-img-gallery.scale .pa-gallery-img:hover img {
|
5077 |
-
-webkit-transform: scale(1.3) rotate(-5deg);
|
5078 |
-
-ms-transform: scale(1.3) rotate(-5deg);
|
5079 |
-
transform: scale(1.3) rotate(-5deg);
|
5080 |
-
}
|
5081 |
-
|
5082 |
-
.premium-img-gallery.gray .pa-gallery-img:hover img {
|
5083 |
-
-webkit-filter: grayscale(0%);
|
5084 |
-
filter: grayscale(0%);
|
5085 |
-
}
|
5086 |
-
|
5087 |
-
.premium-img-gallery.blur .pa-gallery-img:hover img {
|
5088 |
-
-webkit-filter: blur(3px);
|
5089 |
-
filter: blur(3px);
|
5090 |
-
}
|
5091 |
-
|
5092 |
-
.premium-img-gallery.sepia .pa-gallery-img:hover img {
|
5093 |
-
-webkit-filter: sepia(0%);
|
5094 |
-
filter: sepia(0%);
|
5095 |
-
}
|
5096 |
-
|
5097 |
-
.premium-img-gallery.trans .pa-gallery-img:hover img {
|
5098 |
-
-webkit-transform: translateX(0px) scale(1.1);
|
5099 |
-
-ms-transform: translateX(0px) scale(1.1);
|
5100 |
-
transform: translateX(0px) scale(1.1);
|
5101 |
-
}
|
5102 |
-
|
5103 |
-
.premium-img-gallery.bright .pa-gallery-img:hover img {
|
5104 |
-
-webkit-filter: brightness(1.2);
|
5105 |
-
filter: brightness(1.2);
|
5106 |
-
}
|
5107 |
-
|
5108 |
-
.pa-gallery-img .premium-gallery-caption {
|
5109 |
-
padding: 10px;
|
5110 |
-
}
|
5111 |
-
|
5112 |
-
.pa-gallery-img .premium-gallery-caption .premium-gallery-img-name {
|
5113 |
-
margin-bottom: 0;
|
5114 |
-
}
|
5115 |
-
|
5116 |
-
.pa-gallery-img.style1 {
|
5117 |
-
overflow: hidden;
|
5118 |
-
}
|
5119 |
-
|
5120 |
-
.pa-gallery-img:not(.style2) .pa-gallery-icons-wrapper {
|
5121 |
-
position: absolute;
|
5122 |
-
top: 0;
|
5123 |
-
right: 0;
|
5124 |
-
width: 100%;
|
5125 |
-
height: 100%;
|
5126 |
-
-webkit-transition: all 0.3s ease-in-out;
|
5127 |
-
transition: all 0.3s ease-in-out;
|
5128 |
-
}
|
5129 |
-
|
5130 |
-
.pa-gallery-img:not(.style2) .pa-gallery-icons-inner-container {
|
5131 |
-
position: absolute;
|
5132 |
-
top: 33.33%;
|
5133 |
-
width: 100%;
|
5134 |
-
text-align: center;
|
5135 |
-
-webkit-transform: translateY(-50%);
|
5136 |
-
-ms-transform: translateY(-50%);
|
5137 |
-
transform: translateY(-50%);
|
5138 |
-
z-index: 3;
|
5139 |
-
}
|
5140 |
-
|
5141 |
-
.pa-gallery-img.style1 .premium-gallery-caption {
|
5142 |
-
position: absolute;
|
5143 |
-
top: auto;
|
5144 |
-
left: 0;
|
5145 |
-
right: 0;
|
5146 |
-
width: 100%;
|
5147 |
-
-webkit-transition: all 500ms ease 0s;
|
5148 |
-
transition: all 500ms ease 0s;
|
5149 |
-
-webkit-transform: translate3d(0, 100%, 0);
|
5150 |
-
-ms-transform: translate3d(0, 100%, 0);
|
5151 |
-
transform: translate3d(0, 100%, 0);
|
5152 |
-
}
|
5153 |
-
|
5154 |
-
.pa-gallery-img.default .premium-gallery-caption {
|
5155 |
-
position: absolute;
|
5156 |
-
top: auto;
|
5157 |
-
left: 0;
|
5158 |
-
right: 0;
|
5159 |
-
width: 100%;
|
5160 |
-
bottom: 0;
|
5161 |
-
}
|
5162 |
-
|
5163 |
-
.pa-gallery-img.style1:hover .premium-gallery-caption {
|
5164 |
-
-webkit-transform: translate3d(0, 0, 0);
|
5165 |
-
-ms-transform: translate3d(0, 0, 0);
|
5166 |
-
transform: translate3d(0, 0, 0);
|
5167 |
-
bottom: -1px !important;
|
5168 |
-
}
|
5169 |
-
|
5170 |
-
.pa-gallery-img.style2 .pa-gallery-icons-caption-container {
|
5171 |
-
position: absolute;
|
5172 |
-
top: 0;
|
5173 |
-
right: 0;
|
5174 |
-
width: 100%;
|
5175 |
-
height: 100%;
|
5176 |
-
opacity: 0;
|
5177 |
-
-webkit-backface-visibility: hidden;
|
5178 |
-
backface-visibility: hidden;
|
5179 |
-
-webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
|
5180 |
-
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
|
5181 |
-
transition: opacity 0.3s, -webkit-transform 0.3s;
|
5182 |
-
transition: transform 0.3s, opacity 0.3s;
|
5183 |
-
transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s;
|
5184 |
-
z-index: 1;
|
5185 |
-
background-color: rgba(108, 191, 226, 0.68);
|
5186 |
-
display: -webkit-box;
|
5187 |
-
display: -webkit-flex;
|
5188 |
-
display: -ms-flexbox;
|
5189 |
-
-js-display: flex;
|
5190 |
-
display: -moz-box;
|
5191 |
-
display: flex;
|
5192 |
-
text-align: center;
|
5193 |
-
-webkit-box-align: center;
|
5194 |
-
-webkit-align-items: center;
|
5195 |
-
-moz-box-align: center;
|
5196 |
-
-ms-flex-align: center;
|
5197 |
-
align-items: center;
|
5198 |
-
}
|
5199 |
-
|
5200 |
-
.pa-gallery-img.style2 .pa-gallery-icons-caption-cell {
|
5201 |
-
width: 100%;
|
5202 |
-
}
|
5203 |
-
|
5204 |
-
.pa-gallery-img.style2:hover .pa-gallery-icons-caption-container {
|
5205 |
-
opacity: 1;
|
5206 |
-
-webkit-transform: translate(-15px, 15px);
|
5207 |
-
-ms-transform: translate(-15px, 15px);
|
5208 |
-
transform: translate(-15px, 15px);
|
5209 |
-
}
|
5210 |
-
|
5211 |
-
.premium-clearfix {
|
5212 |
-
clear: both;
|
5213 |
-
}
|
5214 |
-
|
5215 |
-
.premium-gallery-container .pa-gallery-item {
|
5216 |
-
padding: 10px;
|
5217 |
-
}
|
5218 |
-
|
5219 |
-
/**
|
5220 |
-
* Metro Layout
|
5221 |
-
*/
|
5222 |
-
.premium-img-gallery-metro .premium-gallery-item {
|
5223 |
-
overflow: hidden;
|
5224 |
-
}
|
5225 |
-
|
5226 |
-
.premium-img-gallery-metro .pa-gallery-img {
|
5227 |
-
height: 100%;
|
5228 |
-
}
|
5229 |
-
|
5230 |
-
.premium-img-gallery-metro .pa-gallery-img-container {
|
5231 |
-
height: 100%;
|
5232 |
-
}
|
5233 |
-
|
5234 |
-
.premium-img-gallery-metro .pa-gallery-img-container img {
|
5235 |
-
min-height: 100%;
|
5236 |
-
width: 100%;
|
5237 |
-
-o-object-fit: fill;
|
5238 |
-
object-fit: fill;
|
5239 |
-
}
|
5240 |
-
|
5241 |
-
.premium-img-gallery .premium-gallery-item-hidden {
|
5242 |
-
visibility: hidden;
|
5243 |
-
width: 0 !important;
|
5244 |
-
height: 0 !important;
|
5245 |
-
margin: 0 !important;
|
5246 |
-
padding: 0 !important;
|
5247 |
-
}
|
5248 |
-
|
5249 |
-
.premium-gallery-load-more .premium-gallery-load-more-btn {
|
5250 |
-
-webkit-box-shadow: none;
|
5251 |
-
box-shadow: none;
|
5252 |
-
text-shadow: none;
|
5253 |
-
border: none;
|
5254 |
-
outline: none;
|
5255 |
-
-webkit-box-align: center;
|
5256 |
-
-ms-flex-align: center;
|
5257 |
-
-webkit-align-items: center;
|
5258 |
-
-moz-box-align: center;
|
5259 |
-
align-items: center;
|
5260 |
-
vertical-align: bottom;
|
5261 |
-
cursor: pointer;
|
5262 |
-
line-height: 1;
|
5263 |
-
font-style: normal;
|
5264 |
-
font-weight: normal;
|
5265 |
-
background-image: none;
|
5266 |
-
color: #fff;
|
5267 |
-
-webkit-transition: all 0.3s ease-in-out;
|
5268 |
-
transition: all 0.3s ease-in-out;
|
5269 |
-
}
|
5270 |
-
|
5271 |
-
.premium-gallery-load-more-btn {
|
5272 |
-
display: -webkit-inline-box;
|
5273 |
-
display: -webkit-inline-flex;
|
5274 |
-
display: -ms-inline-flexbox;
|
5275 |
-
-js-display: inline-flex;
|
5276 |
-
display: -moz-inline-box;
|
5277 |
-
display: inline-flex;
|
5278 |
-
-webkit-box-align: center;
|
5279 |
-
-webkit-align-items: center;
|
5280 |
-
-moz-box-align: center;
|
5281 |
-
-ms-flex-align: center;
|
5282 |
-
align-items: center;
|
5283 |
-
}
|
5284 |
-
|
5285 |
-
.premium-gallery-load-more-btn div {
|
5286 |
-
margin-right: 3px;
|
5287 |
-
}
|
5288 |
-
|
5289 |
-
.premium-gallery-load-more-btn .premium-loader {
|
5290 |
-
display: inline-block;
|
5291 |
-
width: 20px;
|
5292 |
-
height: 20px;
|
5293 |
-
}
|
5294 |
-
|
5295 |
-
/** * Video */
|
5296 |
-
.pa-gallery-img .pa-gallery-lightbox-wrap {
|
5297 |
-
display: inline-block;
|
5298 |
-
}
|
5299 |
-
|
5300 |
-
.premium-img-gallery-no-lightbox .premium-gallery-video-item .pa-gallery-img,
|
5301 |
-
.pa-gallery-img .pa-gallery-video-icon {
|
5302 |
-
cursor: pointer;
|
5303 |
-
}
|
5304 |
-
|
5305 |
-
.pa-gallery-img-container iframe,
|
5306 |
-
.pa-gallery-img-container video {
|
5307 |
-
position: absolute;
|
5308 |
-
visibility: hidden;
|
5309 |
-
top: 0;
|
5310 |
-
right: 0;
|
5311 |
-
max-width: 100%;
|
5312 |
-
width: 100%;
|
5313 |
-
height: 100%;
|
5314 |
-
margin: 0;
|
5315 |
-
line-height: 1;
|
5316 |
-
border: none;
|
5317 |
-
}
|
5318 |
-
|
5319 |
-
.pa-gallery-img-container video {
|
5320 |
-
-o-object-fit: contain;
|
5321 |
-
object-fit: contain;
|
5322 |
-
}
|
5323 |
-
|
5324 |
-
.pa-gallery-icons-inner-container svg,
|
5325 |
-
.pa-gallery-icons-caption-cell svg {
|
5326 |
-
width: 14px;
|
5327 |
-
height: 14px;
|
5328 |
-
}
|
5329 |
-
|
5330 |
-
.premium-gallery-gradient-layer {
|
5331 |
-
position: absolute;
|
5332 |
-
bottom: 40px;
|
5333 |
-
width: 100%;
|
5334 |
-
height: 20px;
|
5335 |
-
background: -webkit-gradient(linear, left bottom, left top, from(#17181f), to(rgba(255, 255, 255, 0)));
|
5336 |
-
background: -webkit-linear-gradient(bottom, #17181f 0%, rgba(255, 255, 255, 0) 100%);
|
5337 |
-
background: linear-gradient(to top, #17181f 0%, rgba(255, 255, 255, 0) 100%);
|
5338 |
Â
}
|
5339 |
Â
/********* Premium Lottie Animations **********/
|
5340 |
Â
/**********************************************/
|
4879 |
Â
-webkit-transition: all 0.3s ease-in-out;
|
4880 |
Â
transition: all 0.3s ease-in-out;
|
4881 |
Â
}
|
4882 |
+
/******** Premium Media Grid ********/
|
4883 |
+
/************************************/
|
4884 |
+
.premium-img-gallery-filter,
|
4885 |
+
.premium-blog-filter {
|
4886 |
+
display: -webkit-box;
|
4887 |
+
display: -webkit-flex;
|
4888 |
+
display: -ms-flexbox;
|
4889 |
+
-js-display: flex;
|
4890 |
+
display: -moz-box;
|
4891 |
+
display: flex;
|
4892 |
+
-webkit-box-align: center;
|
4893 |
+
-webkit-align-items: center;
|
4894 |
+
-moz-box-align: center;
|
4895 |
+
-ms-flex-align: center;
|
4896 |
+
align-items: center;
|
4897 |
+
-webkit-box-pack: center;
|
4898 |
+
-webkit-justify-content: center;
|
4899 |
+
-moz-box-pack: center;
|
4900 |
+
-ms-flex-pack: center;
|
4901 |
+
justify-content: center;
|
4902 |
+
}
|
4903 |
+
|
4904 |
+
.premium-img-gallery {
|
4905 |
+
clear: both;
|
4906 |
+
overflow: hidden;
|
4907 |
+
}
|
4908 |
+
|
4909 |
+
.premium-gallery-container .premium-gallery-item {
|
4910 |
+
padding: 10px;
|
4911 |
+
float: right;
|
4912 |
+
/* Google Chrome isotope issue */
|
4913 |
+
}
|
4914 |
+
|
4915 |
+
.premium-gallery-container .grid-sizer {
|
4916 |
+
width: 33.33%;
|
4917 |
+
}
|
4918 |
+
|
4919 |
+
.premium-img-gallery-filter .premium-gallery-cats-container li a.category,
|
4920 |
+
.premium-blog-filter .premium-blog-filters-container li a.category {
|
4921 |
+
outline: none;
|
4922 |
+
text-decoration: none;
|
4923 |
+
-webkit-border-radius: 75px;
|
4924 |
+
border-radius: 75px;
|
4925 |
+
margin: 15px 5px 20px;
|
4926 |
+
padding: 7px 20px;
|
4927 |
+
-webkit-transition: all 0.3s ease-in-out;
|
4928 |
+
transition: all 0.3s ease-in-out;
|
4929 |
+
}
|
4930 |
+
|
4931 |
+
/* .premium-img-gallery-filter .premium-gallery-cats-container li a.category span {
|
4932 |
+
-webkit-transition: all 0.3s ease-in-out;
|
4933 |
+
transition: all 0.3s ease-in-out;
|
4934 |
+
} */
|
4935 |
+
|
4936 |
+
.pa-gallery-img {
|
4937 |
+
position: relative;
|
4938 |
+
}
|
4939 |
+
|
4940 |
+
.pa-gallery-img .pa-gallery-whole-link {
|
4941 |
+
position: absolute;
|
4942 |
+
top: 0;
|
4943 |
+
right: 0;
|
4944 |
+
width: 100%;
|
4945 |
+
height: 100%;
|
4946 |
+
z-index: 2;
|
4947 |
+
}
|
4948 |
+
|
4949 |
+
.pa-gallery-img .pa-gallery-whole-link span {
|
4950 |
+
display: none;
|
4951 |
+
}
|
4952 |
+
|
4953 |
+
.pa-gallery-img.style2 .pa-gallery-whole-link,
|
4954 |
+
.pa-gallery-img.style3 .pa-gallery-whole-link {
|
4955 |
+
z-index: 99;
|
4956 |
+
}
|
4957 |
+
|
4958 |
+
.pa-gallery-img-container {
|
4959 |
+
overflow: hidden;
|
4960 |
+
-webkit-backface-visibility: hidden;
|
4961 |
+
-moz-backface-visibility: hidden;
|
4962 |
+
-webkit-transform: translate3d(0, 0, 0);
|
4963 |
+
transform: translate3d(0, 0, 0);
|
4964 |
+
}
|
4965 |
+
|
4966 |
+
.pa-gallery-img-container img {
|
4967 |
+
display: block;
|
4968 |
+
width: 100%;
|
4969 |
+
-webkit-transition: all 0.3s ease-in-out;
|
4970 |
+
transition: all 0.3s ease-in-out;
|
4971 |
+
}
|
4972 |
+
|
4973 |
+
.premium-img-gallery.gray img {
|
4974 |
+
-webkit-filter: grayscale(100%);
|
4975 |
+
filter: grayscale(100%);
|
4976 |
+
}
|
4977 |
+
|
4978 |
+
.premium-img-gallery.zoomout img,
|
4979 |
+
.premium-img-gallery.scale img {
|
4980 |
+
-webkit-transform: scale(1.2);
|
4981 |
+
-ms-transform: scale(1.2);
|
4982 |
+
transform: scale(1.2);
|
4983 |
+
}
|
4984 |
+
|
4985 |
+
.premium-img-gallery.sepia img {
|
4986 |
+
-webkit-filter: sepia(30%);
|
4987 |
+
filter: sepia(30%);
|
4988 |
+
}
|
4989 |
+
|
4990 |
+
.premium-img-gallery.bright img {
|
4991 |
+
-webkit-filter: brightness(1);
|
4992 |
+
filter: brightness(1);
|
4993 |
+
}
|
4994 |
+
|
4995 |
+
.premium-img-gallery.trans img {
|
4996 |
+
-webkit-transform: translateX(15px) scale(1.1);
|
4997 |
+
-ms-transform: translateX(15px) scale(1.1);
|
4998 |
+
transform: translateX(15px) scale(1.1);
|
4999 |
+
}
|
5000 |
+
|
5001 |
+
.pa-gallery-img .pa-gallery-magnific-image,
|
5002 |
+
.pa-gallery-img .pa-gallery-img-link {
|
5003 |
+
outline: none;
|
5004 |
+
}
|
5005 |
+
|
5006 |
+
.pa-gallery-img .pa-gallery-magnific-image i,
|
5007 |
+
.pa-gallery-img .pa-gallery-magnific-image svg,
|
5008 |
+
.pa-gallery-img .pa-gallery-img-link i,
|
5009 |
+
.pa-gallery-img .pa-gallery-img-link svg {
|
5010 |
+
-webkit-transition: all 0.3s ease-in-out;
|
5011 |
+
transition: all 0.3s ease-in-out;
|
5012 |
+
}
|
5013 |
+
|
5014 |
+
.pa-gallery-img .pa-gallery-magnific-image span,
|
5015 |
+
.pa-gallery-img .pa-gallery-img-link span {
|
5016 |
+
line-height: 1;
|
5017 |
+
display: inline-block;
|
5018 |
+
opacity: 0;
|
5019 |
+
margin: 0 5px;
|
5020 |
+
padding: 15px;
|
5021 |
+
-webkit-border-radius: 50%;
|
5022 |
+
border-radius: 50%;
|
5023 |
+
}
|
5024 |
+
|
5025 |
+
.pa-gallery-img.style2 .pa-gallery-magnific-image span,
|
5026 |
+
.pa-gallery-img.style2 .pa-gallery-img-link span {
|
5027 |
+
margin: 0 5px 20px;
|
5028 |
+
}
|
5029 |
+
|
5030 |
+
.pa-gallery-img:hover .pa-gallery-magnific-image span {
|
5031 |
+
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
|
5032 |
+
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
|
5033 |
+
}
|
5034 |
+
|
5035 |
+
.pa-gallery-img:hover .pa-gallery-img-link span {
|
5036 |
+
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
|
5037 |
+
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
|
5038 |
+
}
|
5039 |
+
|
5040 |
+
.pa-gallery-img:hover .pa-gallery-magnific-image span,
|
5041 |
+
.pa-gallery-img:hover .pa-gallery-img-link span,
|
5042 |
+
.premium-gallery-icon-show a.pa-gallery-video-icon span {
|
5043 |
+
opacity: 1;
|
5044 |
+
}
|
5045 |
+
|
5046 |
+
.premium-img-gallery-filter ul.premium-gallery-cats-container,
|
5047 |
+
.premium-blog-filter ul.premium-blog-filters-container {
|
5048 |
+
text-align: center;
|
5049 |
+
margin: 0;
|
5050 |
+
padding: 0;
|
5051 |
+
}
|
5052 |
+
|
5053 |
+
.premium-img-gallery-filter .premium-gallery-cats-container li,
|
5054 |
+
.premium-blog-filter .premium-blog-filters-container li {
|
5055 |
+
list-style: none;
|
5056 |
+
display: -webkit-inline-box;
|
5057 |
+
display: -webkit-inline-flex;
|
5058 |
+
display: -ms-inline-flexbox;
|
5059 |
+
-js-display: inline-flex;
|
5060 |
+
display: -moz-inline-box;
|
5061 |
+
display: inline-flex;
|
5062 |
+
}
|
5063 |
+
|
5064 |
+
.premium-img-gallery.zoomin .pa-gallery-img:hover img {
|
5065 |
+
-webkit-transform: scale(1.1);
|
5066 |
+
-ms-transform: scale(1.1);
|
5067 |
+
transform: scale(1.1);
|
5068 |
+
}
|
5069 |
+
|
5070 |
+
.premium-img-gallery.zoomout .pa-gallery-img:hover img {
|
5071 |
+
-webkit-transform: scale(1);
|
5072 |
+
-ms-transform: scale(1);
|
5073 |
+
transform: scale(1);
|
5074 |
+
}
|
5075 |
+
|
5076 |
+
.premium-img-gallery.scale .pa-gallery-img:hover img {
|
5077 |
+
-webkit-transform: scale(1.3) rotate(-5deg);
|
5078 |
+
-ms-transform: scale(1.3) rotate(-5deg);
|
5079 |
+
transform: scale(1.3) rotate(-5deg);
|
5080 |
+
}
|
5081 |
+
|
5082 |
+
.premium-img-gallery.gray .pa-gallery-img:hover img {
|
5083 |
+
-webkit-filter: grayscale(0%);
|
5084 |
+
filter: grayscale(0%);
|
5085 |
+
}
|
5086 |
+
|
5087 |
+
.premium-img-gallery.blur .pa-gallery-img:hover img {
|
5088 |
+
-webkit-filter: blur(3px);
|
5089 |
+
filter: blur(3px);
|
5090 |
+
}
|
5091 |
+
|
5092 |
+
.premium-img-gallery.sepia .pa-gallery-img:hover img {
|
5093 |
+
-webkit-filter: sepia(0%);
|
5094 |
+
filter: sepia(0%);
|
5095 |
+
}
|
5096 |
+
|
5097 |
+
.premium-img-gallery.trans .pa-gallery-img:hover img {
|
5098 |
+
-webkit-transform: translateX(0px) scale(1.1);
|
5099 |
+
-ms-transform: translateX(0px) scale(1.1);
|
5100 |
+
transform: translateX(0px) scale(1.1);
|
5101 |
+
}
|
5102 |
+
|
5103 |
+
.premium-img-gallery.bright .pa-gallery-img:hover img {
|
5104 |
+
-webkit-filter: brightness(1.2);
|
5105 |
+
filter: brightness(1.2);
|
5106 |
+
}
|
5107 |
+
|
5108 |
+
.pa-gallery-img .premium-gallery-caption {
|
5109 |
+
padding: 10px;
|
5110 |
+
}
|
5111 |
+
|
5112 |
+
.pa-gallery-img .premium-gallery-caption .premium-gallery-img-name {
|
5113 |
+
margin-bottom: 0;
|
5114 |
+
}
|
5115 |
+
|
5116 |
+
.pa-gallery-img.style1 {
|
5117 |
+
overflow: hidden;
|
5118 |
+
}
|
5119 |
+
|
5120 |
+
.pa-gallery-img:not(.style2) .pa-gallery-icons-wrapper {
|
5121 |
+
position: absolute;
|
5122 |
+
top: 0;
|
5123 |
+
right: 0;
|
5124 |
+
width: 100%;
|
5125 |
+
height: 100%;
|
5126 |
+
-webkit-transition: all 0.3s ease-in-out;
|
5127 |
+
transition: all 0.3s ease-in-out;
|
5128 |
+
}
|
5129 |
+
|
5130 |
+
.pa-gallery-img:not(.style2) .pa-gallery-icons-inner-container {
|
5131 |
+
position: absolute;
|
5132 |
+
top: 33.33%;
|
5133 |
+
width: 100%;
|
5134 |
+
text-align: center;
|
5135 |
+
-webkit-transform: translateY(-50%);
|
5136 |
+
-ms-transform: translateY(-50%);
|
5137 |
+
transform: translateY(-50%);
|
5138 |
+
z-index: 3;
|
5139 |
+
}
|
5140 |
+
|
5141 |
+
.pa-gallery-img.style1 .premium-gallery-caption {
|
5142 |
+
position: absolute;
|
5143 |
+
top: auto;
|
5144 |
+
left: 0;
|
5145 |
+
right: 0;
|
5146 |
+
width: 100%;
|
5147 |
+
-webkit-transition: all 500ms ease 0s;
|
5148 |
+
transition: all 500ms ease 0s;
|
5149 |
+
-webkit-transform: translate3d(0, 100%, 0);
|
5150 |
+
-ms-transform: translate3d(0, 100%, 0);
|
5151 |
+
transform: translate3d(0, 100%, 0);
|
5152 |
+
}
|
5153 |
+
|
5154 |
+
.pa-gallery-img.default .premium-gallery-caption {
|
5155 |
+
position: absolute;
|
5156 |
+
top: auto;
|
5157 |
+
left: 0;
|
5158 |
+
right: 0;
|
5159 |
+
width: 100%;
|
5160 |
+
bottom: 0;
|
5161 |
+
}
|
5162 |
+
|
5163 |
+
.pa-gallery-img.style1:hover .premium-gallery-caption {
|
5164 |
+
-webkit-transform: translate3d(0, 0, 0);
|
5165 |
+
-ms-transform: translate3d(0, 0, 0);
|
5166 |
+
transform: translate3d(0, 0, 0);
|
5167 |
+
bottom: -1px !important;
|
5168 |
+
}
|
5169 |
+
|
5170 |
+
.pa-gallery-img.style2 .pa-gallery-icons-caption-container {
|
5171 |
+
position: absolute;
|
5172 |
+
top: 0;
|
5173 |
+
right: 0;
|
5174 |
+
width: 100%;
|
5175 |
+
height: 100%;
|
5176 |
+
opacity: 0;
|
5177 |
+
-webkit-backface-visibility: hidden;
|
5178 |
+
backface-visibility: hidden;
|
5179 |
+
-webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
|
5180 |
+
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
|
5181 |
+
transition: opacity 0.3s, -webkit-transform 0.3s;
|
5182 |
+
transition: transform 0.3s, opacity 0.3s;
|
5183 |
+
transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s;
|
5184 |
+
z-index: 1;
|
5185 |
+
background-color: rgba(108, 191, 226, 0.68);
|
5186 |
+
display: -webkit-box;
|
5187 |
+
display: -webkit-flex;
|
5188 |
+
display: -ms-flexbox;
|
5189 |
+
-js-display: flex;
|
5190 |
+
display: -moz-box;
|
5191 |
+
display: flex;
|
5192 |
+
text-align: center;
|
5193 |
+
-webkit-box-align: center;
|
5194 |
+
-webkit-align-items: center;
|
5195 |
+
-moz-box-align: center;
|
5196 |
+
-ms-flex-align: center;
|
5197 |
+
align-items: center;
|
5198 |
+
}
|
5199 |
+
|
5200 |
+
.pa-gallery-img.style2 .pa-gallery-icons-caption-cell {
|
5201 |
+
width: 100%;
|
5202 |
+
}
|
5203 |
+
|
5204 |
+
.pa-gallery-img.style2:hover .pa-gallery-icons-caption-container {
|
5205 |
+
opacity: 1;
|
5206 |
+
-webkit-transform: translate(-15px, 15px);
|
5207 |
+
-ms-transform: translate(-15px, 15px);
|
5208 |
+
transform: translate(-15px, 15px);
|
5209 |
+
}
|
5210 |
+
|
5211 |
+
.premium-clearfix {
|
5212 |
+
clear: both;
|
5213 |
+
}
|
5214 |
+
|
5215 |
+
.premium-gallery-container .pa-gallery-item {
|
5216 |
+
padding: 10px;
|
5217 |
+
}
|
5218 |
+
|
5219 |
+
/**
|
5220 |
+
* Metro Layout
|
5221 |
+
*/
|
5222 |
+
.premium-img-gallery-metro .premium-gallery-item {
|
5223 |
+
overflow: hidden;
|
5224 |
+
}
|
5225 |
+
|
5226 |
+
.premium-img-gallery-metro .pa-gallery-img {
|
5227 |
+
height: 100%;
|
5228 |
+
}
|
5229 |
+
|
5230 |
+
.premium-img-gallery-metro .pa-gallery-img-container {
|
5231 |
+
height: 100%;
|
5232 |
+
}
|
5233 |
+
|
5234 |
+
.premium-img-gallery-metro .pa-gallery-img-container img {
|
5235 |
+
min-height: 100%;
|
5236 |
+
width: 100%;
|
5237 |
+
-o-object-fit: fill;
|
5238 |
+
object-fit: fill;
|
5239 |
+
}
|
5240 |
+
|
5241 |
+
.premium-img-gallery .premium-gallery-item-hidden {
|
5242 |
+
visibility: hidden;
|
5243 |
+
width: 0 !important;
|
5244 |
+
height: 0 !important;
|
5245 |
+
margin: 0 !important;
|
5246 |
+
padding: 0 !important;
|
5247 |
+
}
|
5248 |
+
|
5249 |
+
.premium-gallery-load-more .premium-gallery-load-more-btn {
|
5250 |
+
-webkit-box-shadow: none;
|
5251 |
+
box-shadow: none;
|
5252 |
+
text-shadow: none;
|
5253 |
+
border: none;
|
5254 |
+
outline: none;
|
5255 |
+
-webkit-box-align: center;
|
5256 |
+
-ms-flex-align: center;
|
5257 |
+
-webkit-align-items: center;
|
5258 |
+
-moz-box-align: center;
|
5259 |
+
align-items: center;
|
5260 |
+
vertical-align: bottom;
|
5261 |
+
cursor: pointer;
|
5262 |
+
line-height: 1;
|
5263 |
+
font-style: normal;
|
5264 |
+
font-weight: normal;
|
5265 |
+
background-image: none;
|
5266 |
+
color: #fff;
|
5267 |
+
-webkit-transition: all 0.3s ease-in-out;
|
5268 |
+
transition: all 0.3s ease-in-out;
|
5269 |
+
}
|
5270 |
+
|
5271 |
+
.premium-gallery-load-more-btn {
|
5272 |
+
display: -webkit-inline-box;
|
5273 |
+
display: -webkit-inline-flex;
|
5274 |
+
display: -ms-inline-flexbox;
|
5275 |
+
-js-display: inline-flex;
|
5276 |
+
display: -moz-inline-box;
|
5277 |
+
display: inline-flex;
|
5278 |
+
-webkit-box-align: center;
|
5279 |
+
-webkit-align-items: center;
|
5280 |
+
-moz-box-align: center;
|
5281 |
+
-ms-flex-align: center;
|
5282 |
+
align-items: center;
|
5283 |
+
}
|
5284 |
+
|
5285 |
+
.premium-gallery-load-more-btn div {
|
5286 |
+
margin-right: 3px;
|
5287 |
+
}
|
5288 |
+
|
5289 |
+
.premium-gallery-load-more-btn .premium-loader {
|
5290 |
+
display: inline-block;
|
5291 |
+
width: 20px;
|
5292 |
+
height: 20px;
|
5293 |
+
}
|
5294 |
+
|
5295 |
+
/** * Video */
|
5296 |
+
.pa-gallery-img .pa-gallery-lightbox-wrap {
|
5297 |
+
display: inline-block;
|
5298 |
+
}
|
5299 |
+
|
5300 |
+
.premium-img-gallery-no-lightbox .premium-gallery-video-item .pa-gallery-img,
|
5301 |
+
.pa-gallery-img .pa-gallery-video-icon {
|
5302 |
+
cursor: pointer;
|
5303 |
+
}
|
5304 |
+
|
5305 |
+
.pa-gallery-img-container iframe,
|
5306 |
+
.pa-gallery-img-container video {
|
5307 |
+
position: absolute;
|
5308 |
+
visibility: hidden;
|
5309 |
+
top: 0;
|
5310 |
+
right: 0;
|
5311 |
+
max-width: 100%;
|
5312 |
+
width: 100%;
|
5313 |
+
height: 100%;
|
5314 |
+
margin: 0;
|
5315 |
+
line-height: 1;
|
5316 |
+
border: none;
|
5317 |
+
}
|
5318 |
+
|
5319 |
+
.pa-gallery-img-container video {
|
5320 |
+
-o-object-fit: contain;
|
5321 |
+
object-fit: contain;
|
5322 |
+
}
|
5323 |
+
|
5324 |
+
.pa-gallery-icons-inner-container svg,
|
5325 |
+
.pa-gallery-icons-caption-cell svg {
|
5326 |
+
width: 14px;
|
5327 |
+
height: 14px;
|
5328 |
+
}
|
5329 |
+
|
5330 |
+
.premium-gallery-gradient-layer {
|
5331 |
+
position: absolute;
|
5332 |
+
bottom: 40px;
|
5333 |
+
width: 100%;
|
5334 |
+
height: 20px;
|
5335 |
+
background: -webkit-gradient(linear, left bottom, left top, from(#17181f), to(rgba(255, 255, 255, 0)));
|
5336 |
+
background: -webkit-linear-gradient(bottom, #17181f 0%, rgba(255, 255, 255, 0) 100%);
|
5337 |
+
background: linear-gradient(to top, #17181f 0%, rgba(255, 255, 255, 0) 100%);
|
5338 |
Â
}
|
5339 |
Â
/********* Premium Lottie Animations **********/
|
5340 |
Â
/**********************************************/
|
assets/frontend/css/premium-addons.css
CHANGED
@@ -4034,398 +4034,398 @@ ul[data-list-animation*="animated-"] .premium-bullet-list-divider-inline {
|
|
4034 |
Â
-webkit-transition: all 0.3s ease-in-out;
|
4035 |
Â
transition: all 0.3s ease-in-out; }
|
4036 |
Â
|
4037 |
-
/******** Premium Media Grid ********/
|
4038 |
-
/************************************/
|
4039 |
-
.premium-img-gallery-filter,
|
4040 |
-
.premium-blog-filter {
|
4041 |
-
-js-display: flex;
|
4042 |
-
display: -webkit-box;
|
4043 |
-
display: -webkit-flex;
|
4044 |
-
display: -moz-box;
|
4045 |
-
display: -ms-flexbox;
|
4046 |
-
display: flex;
|
4047 |
-
-webkit-box-align: center;
|
4048 |
-
-webkit-align-items: center;
|
4049 |
-
-moz-box-align: center;
|
4050 |
-
-ms-flex-align: center;
|
4051 |
-
align-items: center;
|
4052 |
-
-webkit-box-pack: center;
|
4053 |
-
-webkit-justify-content: center;
|
4054 |
-
-moz-box-pack: center;
|
4055 |
-
-ms-flex-pack: center;
|
4056 |
-
justify-content: center; }
|
4057 |
-
|
4058 |
-
.premium-img-gallery {
|
4059 |
-
clear: both;
|
4060 |
-
overflow: hidden; }
|
4061 |
-
|
4062 |
-
.premium-gallery-container .premium-gallery-item {
|
4063 |
-
padding: 10px;
|
4064 |
-
float: left; }
|
4065 |
-
|
4066 |
-
.premium-gallery-container .grid-sizer {
|
4067 |
-
width: 33.33%; }
|
4068 |
-
|
4069 |
-
.premium-gallery-container .pa-gallery-item {
|
4070 |
-
padding: 10px; }
|
4071 |
-
|
4072 |
-
.premium-img-gallery-filter .premium-gallery-cats-container li a.category,
|
4073 |
-
.premium-blog-filter .premium-blog-filters-container li a.category {
|
4074 |
-
outline: none;
|
4075 |
-
text-decoration: none;
|
4076 |
-
-webkit-border-radius: 75px;
|
4077 |
-
border-radius: 75px;
|
4078 |
-
margin: 15px 5px 20px;
|
4079 |
-
padding: 7px 20px;
|
4080 |
-
-webkit-transition: all 0.3s ease-in-out;
|
4081 |
-
transition: all 0.3s ease-in-out; }
|
4082 |
-
|
4083 |
-
.pa-gallery-img {
|
4084 |
-
position: relative; }
|
4085 |
-
.pa-gallery-img .pa-gallery-whole-link {
|
4086 |
-
position: absolute;
|
4087 |
-
top: 0;
|
4088 |
-
left: 0;
|
4089 |
-
width: 100%;
|
4090 |
-
height: 100%;
|
4091 |
-
z-index: 2; }
|
4092 |
-
.pa-gallery-img .pa-gallery-whole-link span {
|
4093 |
-
display: none; }
|
4094 |
-
.pa-gallery-img.style2 .pa-gallery-whole-link, .pa-gallery-img.style3 .pa-gallery-whole-link {
|
4095 |
-
z-index: 99; }
|
4096 |
-
|
4097 |
-
.pa-gallery-img-container {
|
4098 |
-
overflow: hidden;
|
4099 |
-
-webkit-backface-visibility: hidden;
|
4100 |
-
backface-visibility: hidden;
|
4101 |
-
-webkit-transform: translate3d(0, 0, 0);
|
4102 |
-
transform: translate3d(0, 0, 0); }
|
4103 |
-
.pa-gallery-img-container img {
|
4104 |
-
display: block;
|
4105 |
-
width: 100%;
|
4106 |
-
-webkit-transition: all 0.3s ease-in-out;
|
4107 |
-
transition: all 0.3s ease-in-out; }
|
4108 |
-
|
4109 |
-
.premium-img-gallery.gray img {
|
4110 |
-
-webkit-filter: grayscale(100%);
|
4111 |
-
filter: grayscale(100%); }
|
4112 |
-
|
4113 |
-
.premium-img-gallery.zoomout img,
|
4114 |
-
.premium-img-gallery.scale img {
|
4115 |
-
-webkit-transform: scale(1.2);
|
4116 |
-
-ms-transform: scale(1.2);
|
4117 |
-
transform: scale(1.2); }
|
4118 |
-
|
4119 |
-
.premium-img-gallery.sepia img {
|
4120 |
-
-webkit-filter: sepia(30%);
|
4121 |
-
filter: sepia(30%); }
|
4122 |
-
|
4123 |
-
.premium-img-gallery.bright img {
|
4124 |
-
-webkit-filter: brightness(1);
|
4125 |
-
filter: brightness(1); }
|
4126 |
-
|
4127 |
-
.premium-img-gallery.trans img {
|
4128 |
-
-webkit-transform: translateX(-15px) scale(1.1);
|
4129 |
-
-ms-transform: translateX(-15px) scale(1.1);
|
4130 |
-
transform: translateX(-15px) scale(1.1); }
|
4131 |
-
|
4132 |
-
.pa-gallery-img .pa-gallery-magnific-image,
|
4133 |
-
.pa-gallery-img .pa-gallery-img-link {
|
4134 |
-
outline: none; }
|
4135 |
-
.pa-gallery-img .pa-gallery-magnific-image i,
|
4136 |
-
.pa-gallery-img .pa-gallery-magnific-image svg,
|
4137 |
-
.pa-gallery-img .pa-gallery-img-link i,
|
4138 |
-
.pa-gallery-img .pa-gallery-img-link svg {
|
4139 |
-
-webkit-transition: all 0.3s ease-in-out;
|
4140 |
-
transition: all 0.3s ease-in-out; }
|
4141 |
-
|
4142 |
-
.pa-gallery-img .pa-gallery-magnific-image span,
|
4143 |
-
.pa-gallery-img .pa-gallery-img-link span {
|
4144 |
-
line-height: 1;
|
4145 |
-
display: inline-block;
|
4146 |
-
opacity: 0;
|
4147 |
-
margin: 0 5px;
|
4148 |
-
padding: 15px;
|
4149 |
-
-webkit-border-radius: 50%;
|
4150 |
-
border-radius: 50%; }
|
4151 |
-
|
4152 |
-
.pa-gallery-img.style2 .pa-gallery-magnific-image span,
|
4153 |
-
.pa-gallery-img.style2 .pa-gallery-img-link span {
|
4154 |
-
margin: 0 5px 20px; }
|
4155 |
-
|
4156 |
-
.pa-gallery-img:hover .pa-gallery-magnific-image span {
|
4157 |
-
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
|
4158 |
-
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s; }
|
4159 |
-
|
4160 |
-
.pa-gallery-img:hover .pa-gallery-img-link span {
|
4161 |
-
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
|
4162 |
-
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s; }
|
4163 |
-
|
4164 |
-
.pa-gallery-img:hover .pa-gallery-magnific-image span,
|
4165 |
-
.pa-gallery-img:hover .pa-gallery-img-link span {
|
4166 |
-
opacity: 1; }
|
4167 |
-
|
4168 |
-
.premium-gallery-icon-show a.pa-gallery-video-icon span {
|
4169 |
-
opacity: 1; }
|
4170 |
-
|
4171 |
-
.premium-img-gallery-filter ul.premium-gallery-cats-container,
|
4172 |
-
.premium-blog-filter ul.premium-blog-filters-container {
|
4173 |
-
text-align: center;
|
4174 |
-
margin: 0;
|
4175 |
-
padding: 0; }
|
4176 |
-
|
4177 |
-
.premium-img-gallery-filter .premium-gallery-cats-container li,
|
4178 |
-
.premium-blog-filter .premium-blog-filters-container li {
|
4179 |
-
list-style: none;
|
4180 |
-
-js-display: inline-flex;
|
4181 |
-
display: -webkit-inline-box;
|
4182 |
-
display: -webkit-inline-flex;
|
4183 |
-
display: -moz-inline-box;
|
4184 |
-
display: -ms-inline-flexbox;
|
4185 |
-
display: inline-flex; }
|
4186 |
-
|
4187 |
-
.premium-img-gallery.zoomin .pa-gallery-img:hover img {
|
4188 |
-
-webkit-transform: scale(1.1);
|
4189 |
-
-ms-transform: scale(1.1);
|
4190 |
-
transform: scale(1.1); }
|
4191 |
-
|
4192 |
-
.premium-img-gallery.zoomout .pa-gallery-img:hover img {
|
4193 |
-
-webkit-transform: scale(1);
|
4194 |
-
-ms-transform: scale(1);
|
4195 |
-
transform: scale(1); }
|
4196 |
-
|
4197 |
-
.premium-img-gallery.scale .pa-gallery-img:hover img {
|
4198 |
-
-webkit-transform: scale(1.3) rotate(5deg);
|
4199 |
-
-ms-transform: scale(1.3) rotate(5deg);
|
4200 |
-
transform: scale(1.3) rotate(5deg); }
|
4201 |
-
|
4202 |
-
.premium-img-gallery.gray .pa-gallery-img:hover img {
|
4203 |
-
-webkit-filter: grayscale(0%);
|
4204 |
-
filter: grayscale(0%); }
|
4205 |
-
|
4206 |
-
.premium-img-gallery.blur .pa-gallery-img:hover img {
|
4207 |
-
-webkit-filter: blur(3px);
|
4208 |
-
filter: blur(3px); }
|
4209 |
-
|
4210 |
-
.premium-img-gallery.sepia .pa-gallery-img:hover img {
|
4211 |
-
-webkit-filter: sepia(0%);
|
4212 |
-
filter: sepia(0%); }
|
4213 |
-
|
4214 |
-
.premium-img-gallery.trans .pa-gallery-img:hover img {
|
4215 |
-
-webkit-transform: translateX(0px) scale(1.1);
|
4216 |
-
-ms-transform: translateX(0px) scale(1.1);
|
4217 |
-
transform: translateX(0px) scale(1.1); }
|
4218 |
-
|
4219 |
-
.premium-img-gallery.bright .pa-gallery-img:hover img {
|
4220 |
-
-webkit-filter: brightness(1.2);
|
4221 |
-
filter: brightness(1.2); }
|
4222 |
-
|
4223 |
-
.pa-gallery-img .premium-gallery-caption {
|
4224 |
-
padding: 10px; }
|
4225 |
-
.pa-gallery-img .premium-gallery-caption .premium-gallery-img-name {
|
4226 |
-
margin-bottom: 0; }
|
4227 |
-
|
4228 |
-
.pa-gallery-img.style1 {
|
4229 |
-
overflow: hidden; }
|
4230 |
-
|
4231 |
-
.pa-gallery-img:not(.style2) .pa-gallery-icons-wrapper {
|
4232 |
-
position: absolute;
|
4233 |
-
top: 0;
|
4234 |
-
left: 0;
|
4235 |
-
width: 100%;
|
4236 |
-
height: 100%;
|
4237 |
-
-webkit-transition: all 0.3s ease-in-out;
|
4238 |
-
transition: all 0.3s ease-in-out; }
|
4239 |
-
|
4240 |
-
.pa-gallery-img:not(.style2) .pa-gallery-icons-inner-container {
|
4241 |
-
position: absolute;
|
4242 |
-
top: 33.33%;
|
4243 |
-
width: 100%;
|
4244 |
-
text-align: center;
|
4245 |
-
-webkit-transform: translateY(-50%);
|
4246 |
-
-ms-transform: translateY(-50%);
|
4247 |
-
transform: translateY(-50%);
|
4248 |
-
z-index: 3; }
|
4249 |
-
|
4250 |
-
.pa-gallery-img.style1 .premium-gallery-caption {
|
4251 |
-
position: absolute;
|
4252 |
-
top: auto;
|
4253 |
-
right: 0;
|
4254 |
-
bottom: -1px;
|
4255 |
-
left: 0;
|
4256 |
-
width: 100%;
|
4257 |
-
-webkit-transition: all 500ms ease 0s;
|
4258 |
-
transition: all 500ms ease 0s;
|
4259 |
-
-webkit-transform: translate3d(0, 100%, 0);
|
4260 |
-
transform: translate3d(0, 100%, 0); }
|
4261 |
-
|
4262 |
-
.pa-gallery-img.style1:hover .premium-gallery-caption {
|
4263 |
-
-webkit-transform: translate3d(0, 0, 0);
|
4264 |
-
transform: translate3d(0, 0, 0);
|
4265 |
-
bottom: -1px !important; }
|
4266 |
-
|
4267 |
-
.pa-gallery-img.default .premium-gallery-caption {
|
4268 |
-
position: absolute;
|
4269 |
-
top: auto;
|
4270 |
-
right: 0;
|
4271 |
-
left: 0;
|
4272 |
-
width: 100%;
|
4273 |
-
bottom: 0; }
|
4274 |
-
|
4275 |
-
.pa-gallery-img.style2 .pa-gallery-icons-caption-container {
|
4276 |
-
position: absolute;
|
4277 |
-
top: 0;
|
4278 |
-
left: 0;
|
4279 |
-
width: 100%;
|
4280 |
-
height: 100%;
|
4281 |
-
opacity: 0;
|
4282 |
-
-webkit-backface-visibility: hidden;
|
4283 |
-
backface-visibility: hidden;
|
4284 |
-
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
|
4285 |
-
transition: opacity 0.3s, -webkit-transform 0.3s;
|
4286 |
-
transition: transform 0.3s, opacity 0.3s;
|
4287 |
-
transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s;
|
4288 |
-
z-index: 1;
|
4289 |
-
background-color: rgba(108, 191, 226, 0.68);
|
4290 |
-
-js-display: flex;
|
4291 |
-
display: -webkit-box;
|
4292 |
-
display: -webkit-flex;
|
4293 |
-
display: -moz-box;
|
4294 |
-
display: -ms-flexbox;
|
4295 |
-
display: flex;
|
4296 |
-
text-align: center;
|
4297 |
-
-webkit-box-align: center;
|
4298 |
-
-webkit-align-items: center;
|
4299 |
-
-moz-box-align: center;
|
4300 |
-
-ms-flex-align: center;
|
4301 |
-
align-items: center; }
|
4302 |
-
|
4303 |
-
.pa-gallery-img.style2 .pa-gallery-icons-caption-cell {
|
4304 |
-
width: 100%; }
|
4305 |
-
|
4306 |
-
.pa-gallery-img.style2:hover .pa-gallery-icons-caption-container {
|
4307 |
-
opacity: 1;
|
4308 |
-
-webkit-transform: translate(15px, 15px);
|
4309 |
-
-ms-transform: translate(15px, 15px);
|
4310 |
-
transform: translate(15px, 15px); }
|
4311 |
-
|
4312 |
-
.premium-clearfix {
|
4313 |
-
clear: both; }
|
4314 |
-
|
4315 |
-
/**
|
4316 |
-
* Metro Layout
|
4317 |
-
*/
|
4318 |
-
.premium-img-gallery-metro .premium-gallery-item {
|
4319 |
-
overflow: hidden; }
|
4320 |
-
|
4321 |
-
.premium-img-gallery-metro .pa-gallery-img {
|
4322 |
-
height: 100%; }
|
4323 |
-
|
4324 |
-
.premium-img-gallery-metro .pa-gallery-img-container {
|
4325 |
-
height: 100%; }
|
4326 |
-
.premium-img-gallery-metro .pa-gallery-img-container img {
|
4327 |
-
min-height: 100%;
|
4328 |
-
width: 100%;
|
4329 |
-
-o-object-fit: fill;
|
4330 |
-
object-fit: fill; }
|
4331 |
-
|
4332 |
-
.premium-img-gallery .premium-gallery-item-hidden {
|
4333 |
-
visibility: hidden;
|
4334 |
-
width: 0 !important;
|
4335 |
-
height: 0 !important;
|
4336 |
-
margin: 0 !important;
|
4337 |
-
padding: 0 !important; }
|
4338 |
-
|
4339 |
-
.premium-gallery-load-more {
|
4340 |
-
position: relative; }
|
4341 |
-
.premium-gallery-load-more .premium-gallery-load-more-btn {
|
4342 |
-
-webkit-box-shadow: none;
|
4343 |
-
box-shadow: none;
|
4344 |
-
text-shadow: none;
|
4345 |
-
border: none;
|
4346 |
-
outline: none;
|
4347 |
-
-webkit-box-align: center;
|
4348 |
-
-webkit-align-items: center;
|
4349 |
-
-moz-box-align: center;
|
4350 |
-
-ms-flex-align: center;
|
4351 |
-
align-items: center;
|
4352 |
-
vertical-align: bottom;
|
4353 |
-
cursor: pointer;
|
4354 |
-
line-height: 1;
|
4355 |
-
font-style: normal;
|
4356 |
-
font-weight: normal;
|
4357 |
-
background-image: none;
|
4358 |
-
color: #fff;
|
4359 |
-
-webkit-transition: all 0.3s ease-in-out;
|
4360 |
-
transition: all 0.3s ease-in-out; }
|
4361 |
-
|
4362 |
-
.premium-gallery-load-more-btn {
|
4363 |
-
-js-display: inline-flex;
|
4364 |
-
display: -webkit-inline-box;
|
4365 |
-
display: -webkit-inline-flex;
|
4366 |
-
display: -moz-inline-box;
|
4367 |
-
display: -ms-inline-flexbox;
|
4368 |
-
display: inline-flex;
|
4369 |
-
-webkit-box-align: center;
|
4370 |
-
-webkit-align-items: center;
|
4371 |
-
-moz-box-align: center;
|
4372 |
-
-ms-flex-align: center;
|
4373 |
-
align-items: center; }
|
4374 |
-
|
4375 |
-
.premium-gallery-load-more-btn div {
|
4376 |
-
margin-left: 3px; }
|
4377 |
-
|
4378 |
-
.premium-gallery-load-more-btn .premium-loader {
|
4379 |
-
display: inline-block;
|
4380 |
-
width: 20px;
|
4381 |
-
height: 20px; }
|
4382 |
-
|
4383 |
-
.pa-gallery-img .pa-gallery-lightbox-wrap {
|
4384 |
-
display: inline-block; }
|
4385 |
-
|
4386 |
-
.premium-img-gallery-no-lightbox .premium-gallery-video-item .pa-gallery-img,
|
4387 |
-
.pa-gallery-img .pa-gallery-video-icon {
|
4388 |
-
cursor: pointer; }
|
4389 |
-
|
4390 |
-
.pa-gallery-img-container iframe {
|
4391 |
-
position: absolute;
|
4392 |
-
visibility: hidden;
|
4393 |
-
top: 0;
|
4394 |
-
left: 0;
|
4395 |
-
max-width: 100%;
|
4396 |
-
width: 100%;
|
4397 |
-
height: 100%;
|
4398 |
-
margin: 0;
|
4399 |
-
line-height: 1;
|
4400 |
-
border: none; }
|
4401 |
-
|
4402 |
-
.pa-gallery-img-container video {
|
4403 |
-
position: absolute;
|
4404 |
-
visibility: hidden;
|
4405 |
-
top: 0;
|
4406 |
-
left: 0;
|
4407 |
-
max-width: 100%;
|
4408 |
-
width: 100%;
|
4409 |
-
height: 100%;
|
4410 |
-
margin: 0;
|
4411 |
-
line-height: 1;
|
4412 |
-
border: none;
|
4413 |
-
-o-object-fit: contain;
|
4414 |
-
object-fit: contain; }
|
4415 |
-
|
4416 |
-
.pa-gallery-icons-inner-container svg,
|
4417 |
-
.pa-gallery-icons-caption-cell svg {
|
4418 |
-
width: 14px;
|
4419 |
-
height: 14px; }
|
4420 |
-
|
4421 |
-
.premium-gallery-gradient-layer {
|
4422 |
-
position: absolute;
|
4423 |
-
bottom: 40px;
|
4424 |
-
width: 100%;
|
4425 |
-
height: 20px;
|
4426 |
-
background: -webkit-gradient(linear, left bottom, left top, from(#17181f), to(rgba(255, 255, 255, 0)));
|
4427 |
-
background: -webkit-linear-gradient(bottom, #17181f 0%, rgba(255, 255, 255, 0) 100%);
|
4428 |
-
background: linear-gradient(to top, #17181f 0%, rgba(255, 255, 255, 0) 100%); }
|
4429 |
Â
|
4430 |
Â
/********* Premium Lottie Animations *********/
|
4431 |
Â
/*********************************************/
|
4034 |
Â
-webkit-transition: all 0.3s ease-in-out;
|
4035 |
Â
transition: all 0.3s ease-in-out; }
|
4036 |
Â
|
4037 |
+
/******** Premium Media Grid ********/
|
4038 |
+
/************************************/
|
4039 |
+
.premium-img-gallery-filter,
|
4040 |
+
.premium-blog-filter {
|
4041 |
+
-js-display: flex;
|
4042 |
+
display: -webkit-box;
|
4043 |
+
display: -webkit-flex;
|
4044 |
+
display: -moz-box;
|
4045 |
+
display: -ms-flexbox;
|
4046 |
+
display: flex;
|
4047 |
+
-webkit-box-align: center;
|
4048 |
+
-webkit-align-items: center;
|
4049 |
+
-moz-box-align: center;
|
4050 |
+
-ms-flex-align: center;
|
4051 |
+
align-items: center;
|
4052 |
+
-webkit-box-pack: center;
|
4053 |
+
-webkit-justify-content: center;
|
4054 |
+
-moz-box-pack: center;
|
4055 |
+
-ms-flex-pack: center;
|
4056 |
+
justify-content: center; }
|
4057 |
+
|
4058 |
+
.premium-img-gallery {
|
4059 |
+
clear: both;
|
4060 |
+
overflow: hidden; }
|
4061 |
+
|
4062 |
+
.premium-gallery-container .premium-gallery-item {
|
4063 |
+
padding: 10px;
|
4064 |
+
float: left; }
|
4065 |
+
|
4066 |
+
.premium-gallery-container .grid-sizer {
|
4067 |
+
width: 33.33%; }
|
4068 |
+
|
4069 |
+
.premium-gallery-container .pa-gallery-item {
|
4070 |
+
padding: 10px; }
|
4071 |
+
|
4072 |
+
.premium-img-gallery-filter .premium-gallery-cats-container li a.category,
|
4073 |
+
.premium-blog-filter .premium-blog-filters-container li a.category {
|
4074 |
+
outline: none;
|
4075 |
+
text-decoration: none;
|
4076 |
+
-webkit-border-radius: 75px;
|
4077 |
+
border-radius: 75px;
|
4078 |
+
margin: 15px 5px 20px;
|
4079 |
+
padding: 7px 20px;
|
4080 |
+
-webkit-transition: all 0.3s ease-in-out;
|
4081 |
+
transition: all 0.3s ease-in-out; }
|
4082 |
+
|
4083 |
+
.pa-gallery-img {
|
4084 |
+
position: relative; }
|
4085 |
+
.pa-gallery-img .pa-gallery-whole-link {
|
4086 |
+
position: absolute;
|
4087 |
+
top: 0;
|
4088 |
+
left: 0;
|
4089 |
+
width: 100%;
|
4090 |
+
height: 100%;
|
4091 |
+
z-index: 2; }
|
4092 |
+
.pa-gallery-img .pa-gallery-whole-link span {
|
4093 |
+
display: none; }
|
4094 |
+
.pa-gallery-img.style2 .pa-gallery-whole-link, .pa-gallery-img.style3 .pa-gallery-whole-link {
|
4095 |
+
z-index: 99; }
|
4096 |
+
|
4097 |
+
.pa-gallery-img-container {
|
4098 |
+
overflow: hidden;
|
4099 |
+
-webkit-backface-visibility: hidden;
|
4100 |
+
backface-visibility: hidden;
|
4101 |
+
-webkit-transform: translate3d(0, 0, 0);
|
4102 |
+
transform: translate3d(0, 0, 0); }
|
4103 |
+
.pa-gallery-img-container img {
|
4104 |
+
display: block;
|
4105 |
+
width: 100%;
|
4106 |
+
-webkit-transition: all 0.3s ease-in-out;
|
4107 |
+
transition: all 0.3s ease-in-out; }
|
4108 |
+
|
4109 |
+
.premium-img-gallery.gray img {
|
4110 |
+
-webkit-filter: grayscale(100%);
|
4111 |
+
filter: grayscale(100%); }
|
4112 |
+
|
4113 |
+
.premium-img-gallery.zoomout img,
|
4114 |
+
.premium-img-gallery.scale img {
|
4115 |
+
-webkit-transform: scale(1.2);
|
4116 |
+
-ms-transform: scale(1.2);
|
4117 |
+
transform: scale(1.2); }
|
4118 |
+
|
4119 |
+
.premium-img-gallery.sepia img {
|
4120 |
+
-webkit-filter: sepia(30%);
|
4121 |
+
filter: sepia(30%); }
|
4122 |
+
|
4123 |
+
.premium-img-gallery.bright img {
|
4124 |
+
-webkit-filter: brightness(1);
|
4125 |
+
filter: brightness(1); }
|
4126 |
+
|
4127 |
+
.premium-img-gallery.trans img {
|
4128 |
+
-webkit-transform: translateX(-15px) scale(1.1);
|
4129 |
+
-ms-transform: translateX(-15px) scale(1.1);
|
4130 |
+
transform: translateX(-15px) scale(1.1); }
|
4131 |
+
|
4132 |
+
.pa-gallery-img .pa-gallery-magnific-image,
|
4133 |
+
.pa-gallery-img .pa-gallery-img-link {
|
4134 |
+
outline: none; }
|
4135 |
+
.pa-gallery-img .pa-gallery-magnific-image i,
|
4136 |
+
.pa-gallery-img .pa-gallery-magnific-image svg,
|
4137 |
+
.pa-gallery-img .pa-gallery-img-link i,
|
4138 |
+
.pa-gallery-img .pa-gallery-img-link svg {
|
4139 |
+
-webkit-transition: all 0.3s ease-in-out;
|
4140 |
+
transition: all 0.3s ease-in-out; }
|
4141 |
+
|
4142 |
+
.pa-gallery-img .pa-gallery-magnific-image span,
|
4143 |
+
.pa-gallery-img .pa-gallery-img-link span {
|
4144 |
+
line-height: 1;
|
4145 |
+
display: inline-block;
|
4146 |
+
opacity: 0;
|
4147 |
+
margin: 0 5px;
|
4148 |
+
padding: 15px;
|
4149 |
+
-webkit-border-radius: 50%;
|
4150 |
+
border-radius: 50%; }
|
4151 |
+
|
4152 |
+
.pa-gallery-img.style2 .pa-gallery-magnific-image span,
|
4153 |
+
.pa-gallery-img.style2 .pa-gallery-img-link span {
|
4154 |
+
margin: 0 5px 20px; }
|
4155 |
+
|
4156 |
+
.pa-gallery-img:hover .pa-gallery-magnific-image span {
|
4157 |
+
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
|
4158 |
+
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s; }
|
4159 |
+
|
4160 |
+
.pa-gallery-img:hover .pa-gallery-img-link span {
|
4161 |
+
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
|
4162 |
+
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s; }
|
4163 |
+
|
4164 |
+
.pa-gallery-img:hover .pa-gallery-magnific-image span,
|
4165 |
+
.pa-gallery-img:hover .pa-gallery-img-link span {
|
4166 |
+
opacity: 1; }
|
4167 |
+
|
4168 |
+
.premium-gallery-icon-show a.pa-gallery-video-icon span {
|
4169 |
+
opacity: 1; }
|
4170 |
+
|
4171 |
+
.premium-img-gallery-filter ul.premium-gallery-cats-container,
|
4172 |
+
.premium-blog-filter ul.premium-blog-filters-container {
|
4173 |
+
text-align: center;
|
4174 |
+
margin: 0;
|
4175 |
+
padding: 0; }
|
4176 |
+
|
4177 |
+
.premium-img-gallery-filter .premium-gallery-cats-container li,
|
4178 |
+
.premium-blog-filter .premium-blog-filters-container li {
|
4179 |
+
list-style: none;
|
4180 |
+
-js-display: inline-flex;
|
4181 |
+
display: -webkit-inline-box;
|
4182 |
+
display: -webkit-inline-flex;
|
4183 |
+
display: -moz-inline-box;
|
4184 |
+
display: -ms-inline-flexbox;
|
4185 |
+
display: inline-flex; }
|
4186 |
+
|
4187 |
+
.premium-img-gallery.zoomin .pa-gallery-img:hover img {
|
4188 |
+
-webkit-transform: scale(1.1);
|
4189 |
+
-ms-transform: scale(1.1);
|
4190 |
+
transform: scale(1.1); }
|
4191 |
+
|
4192 |
+
.premium-img-gallery.zoomout .pa-gallery-img:hover img {
|
4193 |
+
-webkit-transform: scale(1);
|
4194 |
+
-ms-transform: scale(1);
|
4195 |
+
transform: scale(1); }
|
4196 |
+
|
4197 |
+
.premium-img-gallery.scale .pa-gallery-img:hover img {
|
4198 |
+
-webkit-transform: scale(1.3) rotate(5deg);
|
4199 |
+
-ms-transform: scale(1.3) rotate(5deg);
|
4200 |
+
transform: scale(1.3) rotate(5deg); }
|
4201 |
+
|
4202 |
+
.premium-img-gallery.gray .pa-gallery-img:hover img {
|
4203 |
+
-webkit-filter: grayscale(0%);
|
4204 |
+
filter: grayscale(0%); }
|
4205 |
+
|
4206 |
+
.premium-img-gallery.blur .pa-gallery-img:hover img {
|
4207 |
+
-webkit-filter: blur(3px);
|
4208 |
+
filter: blur(3px); }
|
4209 |
+
|
4210 |
+
.premium-img-gallery.sepia .pa-gallery-img:hover img {
|
4211 |
+
-webkit-filter: sepia(0%);
|
4212 |
+
filter: sepia(0%); }
|
4213 |
+
|
4214 |
+
.premium-img-gallery.trans .pa-gallery-img:hover img {
|
4215 |
+
-webkit-transform: translateX(0px) scale(1.1);
|
4216 |
+
-ms-transform: translateX(0px) scale(1.1);
|
4217 |
+
transform: translateX(0px) scale(1.1); }
|
4218 |
+
|
4219 |
+
.premium-img-gallery.bright .pa-gallery-img:hover img {
|
4220 |
+
-webkit-filter: brightness(1.2);
|
4221 |
+
filter: brightness(1.2); }
|
4222 |
+
|
4223 |
+
.pa-gallery-img .premium-gallery-caption {
|
4224 |
+
padding: 10px; }
|
4225 |
+
.pa-gallery-img .premium-gallery-caption .premium-gallery-img-name {
|
4226 |
+
margin-bottom: 0; }
|
4227 |
+
|
4228 |
+
.pa-gallery-img.style1 {
|
4229 |
+
overflow: hidden; }
|
4230 |
+
|
4231 |
+
.pa-gallery-img:not(.style2) .pa-gallery-icons-wrapper {
|
4232 |
+
position: absolute;
|
4233 |
+
top: 0;
|
4234 |
+
left: 0;
|
4235 |
+
width: 100%;
|
4236 |
+
height: 100%;
|
4237 |
+
-webkit-transition: all 0.3s ease-in-out;
|
4238 |
+
transition: all 0.3s ease-in-out; }
|
4239 |
+
|
4240 |
+
.pa-gallery-img:not(.style2) .pa-gallery-icons-inner-container {
|
4241 |
+
position: absolute;
|
4242 |
+
top: 33.33%;
|
4243 |
+
width: 100%;
|
4244 |
+
text-align: center;
|
4245 |
+
-webkit-transform: translateY(-50%);
|
4246 |
+
-ms-transform: translateY(-50%);
|
4247 |
+
transform: translateY(-50%);
|
4248 |
+
z-index: 3; }
|
4249 |
+
|
4250 |
+
.pa-gallery-img.style1 .premium-gallery-caption {
|
4251 |
+
position: absolute;
|
4252 |
+
top: auto;
|
4253 |
+
right: 0;
|
4254 |
+
bottom: -1px;
|
4255 |
+
left: 0;
|
4256 |
+
width: 100%;
|
4257 |
+
-webkit-transition: all 500ms ease 0s;
|
4258 |
+
transition: all 500ms ease 0s;
|
4259 |
+
-webkit-transform: translate3d(0, 100%, 0);
|
4260 |
+
transform: translate3d(0, 100%, 0); }
|
4261 |
+
|
4262 |
+
.pa-gallery-img.style1:hover .premium-gallery-caption {
|
4263 |
+
-webkit-transform: translate3d(0, 0, 0);
|
4264 |
+
transform: translate3d(0, 0, 0);
|
4265 |
+
bottom: -1px !important; }
|
4266 |
+
|
4267 |
+
.pa-gallery-img.default .premium-gallery-caption {
|
4268 |
+
position: absolute;
|
4269 |
+
top: auto;
|
4270 |
+
right: 0;
|
4271 |
+
left: 0;
|
4272 |
+
width: 100%;
|
4273 |
+
bottom: 0; }
|
4274 |
+
|
4275 |
+
.pa-gallery-img.style2 .pa-gallery-icons-caption-container {
|
4276 |
+
position: absolute;
|
4277 |
+
top: 0;
|
4278 |
+
left: 0;
|
4279 |
+
width: 100%;
|
4280 |
+
height: 100%;
|
4281 |
+
opacity: 0;
|
4282 |
+
-webkit-backface-visibility: hidden;
|
4283 |
+
backface-visibility: hidden;
|
4284 |
+
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
|
4285 |
+
transition: opacity 0.3s, -webkit-transform 0.3s;
|
4286 |
+
transition: transform 0.3s, opacity 0.3s;
|
4287 |
+
transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s;
|
4288 |
+
z-index: 1;
|
4289 |
+
background-color: rgba(108, 191, 226, 0.68);
|
4290 |
+
-js-display: flex;
|
4291 |
+
display: -webkit-box;
|
4292 |
+
display: -webkit-flex;
|
4293 |
+
display: -moz-box;
|
4294 |
+
display: -ms-flexbox;
|
4295 |
+
display: flex;
|
4296 |
+
text-align: center;
|
4297 |
+
-webkit-box-align: center;
|
4298 |
+
-webkit-align-items: center;
|
4299 |
+
-moz-box-align: center;
|
4300 |
+
-ms-flex-align: center;
|
4301 |
+
align-items: center; }
|
4302 |
+
|
4303 |
+
.pa-gallery-img.style2 .pa-gallery-icons-caption-cell {
|
4304 |
+
width: 100%; }
|
4305 |
+
|
4306 |
+
.pa-gallery-img.style2:hover .pa-gallery-icons-caption-container {
|
4307 |
+
opacity: 1;
|
4308 |
+
-webkit-transform: translate(15px, 15px);
|
4309 |
+
-ms-transform: translate(15px, 15px);
|
4310 |
+
transform: translate(15px, 15px); }
|
4311 |
+
|
4312 |
+
.premium-clearfix {
|
4313 |
+
clear: both; }
|
4314 |
+
|
4315 |
+
/**
|
4316 |
+
* Metro Layout
|
4317 |
+
*/
|
4318 |
+
.premium-img-gallery-metro .premium-gallery-item {
|
4319 |
+
overflow: hidden; }
|
4320 |
+
|
4321 |
+
.premium-img-gallery-metro .pa-gallery-img {
|
4322 |
+
height: 100%; }
|
4323 |
+
|
4324 |
+
.premium-img-gallery-metro .pa-gallery-img-container {
|
4325 |
+
height: 100%; }
|
4326 |
+
.premium-img-gallery-metro .pa-gallery-img-container img {
|
4327 |
+
min-height: 100%;
|
4328 |
+
width: 100%;
|
4329 |
+
-o-object-fit: fill;
|
4330 |
+
object-fit: fill; }
|
4331 |
+
|
4332 |
+
.premium-img-gallery .premium-gallery-item-hidden {
|
4333 |
+
visibility: hidden;
|
4334 |
+
width: 0 !important;
|
4335 |
+
height: 0 !important;
|
4336 |
+
margin: 0 !important;
|
4337 |
+
padding: 0 !important; }
|
4338 |
+
|
4339 |
+
.premium-gallery-load-more {
|
4340 |
+
position: relative; }
|
4341 |
+
.premium-gallery-load-more .premium-gallery-load-more-btn {
|
4342 |
+
-webkit-box-shadow: none;
|
4343 |
+
box-shadow: none;
|
4344 |
+
text-shadow: none;
|
4345 |
+
border: none;
|
4346 |
+
outline: none;
|
4347 |
+
-webkit-box-align: center;
|
4348 |
+
-webkit-align-items: center;
|
4349 |
+
-moz-box-align: center;
|
4350 |
+
-ms-flex-align: center;
|
4351 |
+
align-items: center;
|
4352 |
+
vertical-align: bottom;
|
4353 |
+
cursor: pointer;
|
4354 |
+
line-height: 1;
|
4355 |
+
font-style: normal;
|
4356 |
+
font-weight: normal;
|
4357 |
+
background-image: none;
|
4358 |
+
color: #fff;
|
4359 |
+
-webkit-transition: all 0.3s ease-in-out;
|
4360 |
+
transition: all 0.3s ease-in-out; }
|
4361 |
+
|
4362 |
+
.premium-gallery-load-more-btn {
|
4363 |
+
-js-display: inline-flex;
|
4364 |
+
display: -webkit-inline-box;
|
4365 |
+
display: -webkit-inline-flex;
|
4366 |
+
display: -moz-inline-box;
|
4367 |
+
display: -ms-inline-flexbox;
|
4368 |
+
display: inline-flex;
|
4369 |
+
-webkit-box-align: center;
|
4370 |
+
-webkit-align-items: center;
|
4371 |
+
-moz-box-align: center;
|
4372 |
+
-ms-flex-align: center;
|
4373 |
+
align-items: center; }
|
4374 |
+
|
4375 |
+
.premium-gallery-load-more-btn div {
|
4376 |
+
margin-left: 3px; }
|
4377 |
+
|
4378 |
+
.premium-gallery-load-more-btn .premium-loader {
|
4379 |
+
display: inline-block;
|
4380 |
+
width: 20px;
|
4381 |
+
height: 20px; }
|
4382 |
+
|
4383 |
+
.pa-gallery-img .pa-gallery-lightbox-wrap {
|
4384 |
+
display: inline-block; }
|
4385 |
+
|
4386 |
+
.premium-img-gallery-no-lightbox .premium-gallery-video-item .pa-gallery-img,
|
4387 |
+
.pa-gallery-img .pa-gallery-video-icon {
|
4388 |
+
cursor: pointer; }
|
4389 |
+
|
4390 |
+
.pa-gallery-img-container iframe {
|
4391 |
+
position: absolute;
|
4392 |
+
visibility: hidden;
|
4393 |
+
top: 0;
|
4394 |
+
left: 0;
|
4395 |
+
max-width: 100%;
|
4396 |
+
width: 100%;
|
4397 |
+
height: 100%;
|
4398 |
+
margin: 0;
|
4399 |
+
line-height: 1;
|
4400 |
+
border: none; }
|
4401 |
+
|
4402 |
+
.pa-gallery-img-container video {
|
4403 |
+
position: absolute;
|
4404 |
+
visibility: hidden;
|
4405 |
+
top: 0;
|
4406 |
+
left: 0;
|
4407 |
+
max-width: 100%;
|
4408 |
+
width: 100%;
|
4409 |
+
height: 100%;
|
4410 |
+
margin: 0;
|
4411 |
+
line-height: 1;
|
4412 |
+
border: none;
|
4413 |
+
-o-object-fit: contain;
|
4414 |
+
object-fit: contain; }
|
4415 |
+
|
4416 |
+
.pa-gallery-icons-inner-container svg,
|
4417 |
+
.pa-gallery-icons-caption-cell svg {
|
4418 |
+
width: 14px;
|
4419 |
+
height: 14px; }
|
4420 |
+
|
4421 |
+
.premium-gallery-gradient-layer {
|
4422 |
+
position: absolute;
|
4423 |
+
bottom: 40px;
|
4424 |
+
width: 100%;
|
4425 |
+
height: 20px;
|
4426 |
+
background: -webkit-gradient(linear, left bottom, left top, from(#17181f), to(rgba(255, 255, 255, 0)));
|
4427 |
+
background: -webkit-linear-gradient(bottom, #17181f 0%, rgba(255, 255, 255, 0) 100%);
|
4428 |
+
background: linear-gradient(to top, #17181f 0%, rgba(255, 255, 255, 0) 100%); }
|
4429 |
Â
|
4430 |
Â
/********* Premium Lottie Animations *********/
|
4431 |
Â
/*********************************************/
|
assets/frontend/css/premium-img-gallery-rtl.css
CHANGED
@@ -1,457 +1,457 @@
|
|
1 |
-
/******** Premium Media Grid ********/
|
2 |
-
/************************************/
|
3 |
-
.premium-img-gallery-filter,
|
4 |
-
.premium-blog-filter {
|
5 |
-
display: -webkit-box;
|
6 |
-
display: -webkit-flex;
|
7 |
-
display: -ms-flexbox;
|
8 |
-
-js-display: flex;
|
9 |
-
display: -moz-box;
|
10 |
-
display: flex;
|
11 |
-
-webkit-box-align: center;
|
12 |
-
-webkit-align-items: center;
|
13 |
-
-moz-box-align: center;
|
14 |
-
-ms-flex-align: center;
|
15 |
-
align-items: center;
|
16 |
-
-webkit-box-pack: center;
|
17 |
-
-webkit-justify-content: center;
|
18 |
-
-moz-box-pack: center;
|
19 |
-
-ms-flex-pack: center;
|
20 |
-
justify-content: center;
|
21 |
-
}
|
22 |
-
|
23 |
-
.premium-img-gallery {
|
24 |
-
clear: both;
|
25 |
-
overflow: hidden;
|
26 |
-
}
|
27 |
-
|
28 |
-
.premium-gallery-container .premium-gallery-item {
|
29 |
-
padding: 10px;
|
30 |
-
float: right;
|
31 |
-
/* Google Chrome isotope issue */
|
32 |
-
}
|
33 |
-
|
34 |
-
.premium-gallery-container .grid-sizer {
|
35 |
-
width: 33.33%;
|
36 |
-
}
|
37 |
-
|
38 |
-
.premium-img-gallery-filter .premium-gallery-cats-container li a.category,
|
39 |
-
.premium-blog-filter .premium-blog-filters-container li a.category {
|
40 |
-
outline: none;
|
41 |
-
text-decoration: none;
|
42 |
-
-webkit-border-radius: 75px;
|
43 |
-
border-radius: 75px;
|
44 |
-
margin: 15px 5px 20px;
|
45 |
-
padding: 7px 20px;
|
46 |
-
-webkit-transition: all 0.3s ease-in-out;
|
47 |
-
transition: all 0.3s ease-in-out;
|
48 |
-
}
|
49 |
-
|
50 |
-
/* .premium-img-gallery-filter .premium-gallery-cats-container li a.category span {
|
51 |
-
-webkit-transition: all 0.3s ease-in-out;
|
52 |
-
transition: all 0.3s ease-in-out;
|
53 |
-
} */
|
54 |
-
|
55 |
-
.pa-gallery-img {
|
56 |
-
position: relative;
|
57 |
-
}
|
58 |
-
|
59 |
-
.pa-gallery-img .pa-gallery-whole-link {
|
60 |
-
position: absolute;
|
61 |
-
top: 0;
|
62 |
-
right: 0;
|
63 |
-
width: 100%;
|
64 |
-
height: 100%;
|
65 |
-
z-index: 2;
|
66 |
-
}
|
67 |
-
|
68 |
-
.pa-gallery-img .pa-gallery-whole-link span {
|
69 |
-
display: none;
|
70 |
-
}
|
71 |
-
|
72 |
-
.pa-gallery-img.style2 .pa-gallery-whole-link,
|
73 |
-
.pa-gallery-img.style3 .pa-gallery-whole-link {
|
74 |
-
z-index: 99;
|
75 |
-
}
|
76 |
-
|
77 |
-
.pa-gallery-img-container {
|
78 |
-
overflow: hidden;
|
79 |
-
-webkit-backface-visibility: hidden;
|
80 |
-
-moz-backface-visibility: hidden;
|
81 |
-
-webkit-transform: translate3d(0, 0, 0);
|
82 |
-
transform: translate3d(0, 0, 0);
|
83 |
-
}
|
84 |
-
|
85 |
-
.pa-gallery-img-container img {
|
86 |
-
display: block;
|
87 |
-
width: 100%;
|
88 |
-
-webkit-transition: all 0.3s ease-in-out;
|
89 |
-
transition: all 0.3s ease-in-out;
|
90 |
-
}
|
91 |
-
|
92 |
-
.premium-img-gallery.gray img {
|
93 |
-
-webkit-filter: grayscale(100%);
|
94 |
-
filter: grayscale(100%);
|
95 |
-
}
|
96 |
-
|
97 |
-
.premium-img-gallery.zoomout img,
|
98 |
-
.premium-img-gallery.scale img {
|
99 |
-
-webkit-transform: scale(1.2);
|
100 |
-
-ms-transform: scale(1.2);
|
101 |
-
transform: scale(1.2);
|
102 |
-
}
|
103 |
-
|
104 |
-
.premium-img-gallery.sepia img {
|
105 |
-
-webkit-filter: sepia(30%);
|
106 |
-
filter: sepia(30%);
|
107 |
-
}
|
108 |
-
|
109 |
-
.premium-img-gallery.bright img {
|
110 |
-
-webkit-filter: brightness(1);
|
111 |
-
filter: brightness(1);
|
112 |
-
}
|
113 |
-
|
114 |
-
.premium-img-gallery.trans img {
|
115 |
-
-webkit-transform: translateX(15px) scale(1.1);
|
116 |
-
-ms-transform: translateX(15px) scale(1.1);
|
117 |
-
transform: translateX(15px) scale(1.1);
|
118 |
-
}
|
119 |
-
|
120 |
-
.pa-gallery-img .pa-gallery-magnific-image,
|
121 |
-
.pa-gallery-img .pa-gallery-img-link {
|
122 |
-
outline: none;
|
123 |
-
}
|
124 |
-
|
125 |
-
.pa-gallery-img .pa-gallery-magnific-image i,
|
126 |
-
.pa-gallery-img .pa-gallery-magnific-image svg,
|
127 |
-
.pa-gallery-img .pa-gallery-img-link i,
|
128 |
-
.pa-gallery-img .pa-gallery-img-link svg {
|
129 |
-
-webkit-transition: all 0.3s ease-in-out;
|
130 |
-
transition: all 0.3s ease-in-out;
|
131 |
-
}
|
132 |
-
|
133 |
-
.pa-gallery-img .pa-gallery-magnific-image span,
|
134 |
-
.pa-gallery-img .pa-gallery-img-link span {
|
135 |
-
line-height: 1;
|
136 |
-
display: inline-block;
|
137 |
-
opacity: 0;
|
138 |
-
margin: 0 5px;
|
139 |
-
padding: 15px;
|
140 |
-
-webkit-border-radius: 50%;
|
141 |
-
border-radius: 50%;
|
142 |
-
}
|
143 |
-
|
144 |
-
.pa-gallery-img.style2 .pa-gallery-magnific-image span,
|
145 |
-
.pa-gallery-img.style2 .pa-gallery-img-link span {
|
146 |
-
margin: 0 5px 20px;
|
147 |
-
}
|
148 |
-
|
149 |
-
.pa-gallery-img:hover .pa-gallery-magnific-image span {
|
150 |
-
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
|
151 |
-
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
|
152 |
-
}
|
153 |
-
|
154 |
-
.pa-gallery-img:hover .pa-gallery-img-link span {
|
155 |
-
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
|
156 |
-
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
|
157 |
-
}
|
158 |
-
|
159 |
-
.pa-gallery-img:hover .pa-gallery-magnific-image span,
|
160 |
-
.pa-gallery-img:hover .pa-gallery-img-link span,
|
161 |
-
.premium-gallery-icon-show a.pa-gallery-video-icon span {
|
162 |
-
opacity: 1;
|
163 |
-
}
|
164 |
-
|
165 |
-
.premium-img-gallery-filter ul.premium-gallery-cats-container,
|
166 |
-
.premium-blog-filter ul.premium-blog-filters-container {
|
167 |
-
text-align: center;
|
168 |
-
margin: 0;
|
169 |
-
padding: 0;
|
170 |
-
}
|
171 |
-
|
172 |
-
.premium-img-gallery-filter .premium-gallery-cats-container li,
|
173 |
-
.premium-blog-filter .premium-blog-filters-container li {
|
174 |
-
list-style: none;
|
175 |
-
display: -webkit-inline-box;
|
176 |
-
display: -webkit-inline-flex;
|
177 |
-
display: -ms-inline-flexbox;
|
178 |
-
-js-display: inline-flex;
|
179 |
-
display: -moz-inline-box;
|
180 |
-
display: inline-flex;
|
181 |
-
}
|
182 |
-
|
183 |
-
.premium-img-gallery.zoomin .pa-gallery-img:hover img {
|
184 |
-
-webkit-transform: scale(1.1);
|
185 |
-
-ms-transform: scale(1.1);
|
186 |
-
transform: scale(1.1);
|
187 |
-
}
|
188 |
-
|
189 |
-
.premium-img-gallery.zoomout .pa-gallery-img:hover img {
|
190 |
-
-webkit-transform: scale(1);
|
191 |
-
-ms-transform: scale(1);
|
192 |
-
transform: scale(1);
|
193 |
-
}
|
194 |
-
|
195 |
-
.premium-img-gallery.scale .pa-gallery-img:hover img {
|
196 |
-
-webkit-transform: scale(1.3) rotate(-5deg);
|
197 |
-
-ms-transform: scale(1.3) rotate(-5deg);
|
198 |
-
transform: scale(1.3) rotate(-5deg);
|
199 |
-
}
|
200 |
-
|
201 |
-
.premium-img-gallery.gray .pa-gallery-img:hover img {
|
202 |
-
-webkit-filter: grayscale(0%);
|
203 |
-
filter: grayscale(0%);
|
204 |
-
}
|
205 |
-
|
206 |
-
.premium-img-gallery.blur .pa-gallery-img:hover img {
|
207 |
-
-webkit-filter: blur(3px);
|
208 |
-
filter: blur(3px);
|
209 |
-
}
|
210 |
-
|
211 |
-
.premium-img-gallery.sepia .pa-gallery-img:hover img {
|
212 |
-
-webkit-filter: sepia(0%);
|
213 |
-
filter: sepia(0%);
|
214 |
-
}
|
215 |
-
|
216 |
-
.premium-img-gallery.trans .pa-gallery-img:hover img {
|
217 |
-
-webkit-transform: translateX(0px) scale(1.1);
|
218 |
-
-ms-transform: translateX(0px) scale(1.1);
|
219 |
-
transform: translateX(0px) scale(1.1);
|
220 |
-
}
|
221 |
-
|
222 |
-
.premium-img-gallery.bright .pa-gallery-img:hover img {
|
223 |
-
-webkit-filter: brightness(1.2);
|
224 |
-
filter: brightness(1.2);
|
225 |
-
}
|
226 |
-
|
227 |
-
.pa-gallery-img .premium-gallery-caption {
|
228 |
-
padding: 10px;
|
229 |
-
}
|
230 |
-
|
231 |
-
.pa-gallery-img .premium-gallery-caption .premium-gallery-img-name {
|
232 |
-
margin-bottom: 0;
|
233 |
-
}
|
234 |
-
|
235 |
-
.pa-gallery-img.style1 {
|
236 |
-
overflow: hidden;
|
237 |
-
}
|
238 |
-
|
239 |
-
.pa-gallery-img:not(.style2) .pa-gallery-icons-wrapper {
|
240 |
-
position: absolute;
|
241 |
-
top: 0;
|
242 |
-
right: 0;
|
243 |
-
width: 100%;
|
244 |
-
height: 100%;
|
245 |
-
-webkit-transition: all 0.3s ease-in-out;
|
246 |
-
transition: all 0.3s ease-in-out;
|
247 |
-
}
|
248 |
-
|
249 |
-
.pa-gallery-img:not(.style2) .pa-gallery-icons-inner-container {
|
250 |
-
position: absolute;
|
251 |
-
top: 33.33%;
|
252 |
-
width: 100%;
|
253 |
-
text-align: center;
|
254 |
-
-webkit-transform: translateY(-50%);
|
255 |
-
-ms-transform: translateY(-50%);
|
256 |
-
transform: translateY(-50%);
|
257 |
-
z-index: 3;
|
258 |
-
}
|
259 |
-
|
260 |
-
.pa-gallery-img.style1 .premium-gallery-caption {
|
261 |
-
position: absolute;
|
262 |
-
top: auto;
|
263 |
-
left: 0;
|
264 |
-
right: 0;
|
265 |
-
width: 100%;
|
266 |
-
-webkit-transition: all 500ms ease 0s;
|
267 |
-
transition: all 500ms ease 0s;
|
268 |
-
-webkit-transform: translate3d(0, 100%, 0);
|
269 |
-
-ms-transform: translate3d(0, 100%, 0);
|
270 |
-
transform: translate3d(0, 100%, 0);
|
271 |
-
}
|
272 |
-
|
273 |
-
.pa-gallery-img.default .premium-gallery-caption {
|
274 |
-
position: absolute;
|
275 |
-
top: auto;
|
276 |
-
left: 0;
|
277 |
-
right: 0;
|
278 |
-
width: 100%;
|
279 |
-
bottom: 0;
|
280 |
-
}
|
281 |
-
|
282 |
-
.pa-gallery-img.style1:hover .premium-gallery-caption {
|
283 |
-
-webkit-transform: translate3d(0, 0, 0);
|
284 |
-
-ms-transform: translate3d(0, 0, 0);
|
285 |
-
transform: translate3d(0, 0, 0);
|
286 |
-
bottom: -1px !important;
|
287 |
-
}
|
288 |
-
|
289 |
-
.pa-gallery-img.style2 .pa-gallery-icons-caption-container {
|
290 |
-
position: absolute;
|
291 |
-
top: 0;
|
292 |
-
right: 0;
|
293 |
-
width: 100%;
|
294 |
-
height: 100%;
|
295 |
-
opacity: 0;
|
296 |
-
-webkit-backface-visibility: hidden;
|
297 |
-
backface-visibility: hidden;
|
298 |
-
-webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
|
299 |
-
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
|
300 |
-
transition: opacity 0.3s, -webkit-transform 0.3s;
|
301 |
-
transition: transform 0.3s, opacity 0.3s;
|
302 |
-
transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s;
|
303 |
-
z-index: 1;
|
304 |
-
background-color: rgba(108, 191, 226, 0.68);
|
305 |
-
display: -webkit-box;
|
306 |
-
display: -webkit-flex;
|
307 |
-
display: -ms-flexbox;
|
308 |
-
-js-display: flex;
|
309 |
-
display: -moz-box;
|
310 |
-
display: flex;
|
311 |
-
text-align: center;
|
312 |
-
-webkit-box-align: center;
|
313 |
-
-webkit-align-items: center;
|
314 |
-
-moz-box-align: center;
|
315 |
-
-ms-flex-align: center;
|
316 |
-
align-items: center;
|
317 |
-
}
|
318 |
-
|
319 |
-
.pa-gallery-img.style2 .pa-gallery-icons-caption-cell {
|
320 |
-
width: 100%;
|
321 |
-
}
|
322 |
-
|
323 |
-
.pa-gallery-img.style2:hover .pa-gallery-icons-caption-container {
|
324 |
-
opacity: 1;
|
325 |
-
-webkit-transform: translate(-15px, 15px);
|
326 |
-
-ms-transform: translate(-15px, 15px);
|
327 |
-
transform: translate(-15px, 15px);
|
328 |
-
}
|
329 |
-
|
330 |
-
.premium-clearfix {
|
331 |
-
clear: both;
|
332 |
-
}
|
333 |
-
|
334 |
-
.premium-gallery-container .pa-gallery-item {
|
335 |
-
padding: 10px;
|
336 |
-
}
|
337 |
-
|
338 |
-
/**
|
339 |
-
* Metro Layout
|
340 |
-
*/
|
341 |
-
.premium-img-gallery-metro .premium-gallery-item {
|
342 |
-
overflow: hidden;
|
343 |
-
}
|
344 |
-
|
345 |
-
.premium-img-gallery-metro .pa-gallery-img {
|
346 |
-
height: 100%;
|
347 |
-
}
|
348 |
-
|
349 |
-
.premium-img-gallery-metro .pa-gallery-img-container {
|
350 |
-
height: 100%;
|
351 |
-
}
|
352 |
-
|
353 |
-
.premium-img-gallery-metro .pa-gallery-img-container img {
|
354 |
-
min-height: 100%;
|
355 |
-
width: 100%;
|
356 |
-
-o-object-fit: fill;
|
357 |
-
object-fit: fill;
|
358 |
-
}
|
359 |
-
|
360 |
-
.premium-img-gallery .premium-gallery-item-hidden {
|
361 |
-
visibility: hidden;
|
362 |
-
width: 0 !important;
|
363 |
-
height: 0 !important;
|
364 |
-
margin: 0 !important;
|
365 |
-
padding: 0 !important;
|
366 |
-
}
|
367 |
-
|
368 |
-
.premium-gallery-load-more .premium-gallery-load-more-btn {
|
369 |
-
-webkit-box-shadow: none;
|
370 |
-
box-shadow: none;
|
371 |
-
text-shadow: none;
|
372 |
-
border: none;
|
373 |
-
outline: none;
|
374 |
-
-webkit-box-align: center;
|
375 |
-
-ms-flex-align: center;
|
376 |
-
-webkit-align-items: center;
|
377 |
-
-moz-box-align: center;
|
378 |
-
align-items: center;
|
379 |
-
vertical-align: bottom;
|
380 |
-
cursor: pointer;
|
381 |
-
line-height: 1;
|
382 |
-
font-style: normal;
|
383 |
-
font-weight: normal;
|
384 |
-
background-image: none;
|
385 |
-
color: #fff;
|
386 |
-
-webkit-transition: all 0.3s ease-in-out;
|
387 |
-
transition: all 0.3s ease-in-out;
|
388 |
-
}
|
389 |
-
|
390 |
-
.premium-gallery-load-more-btn {
|
391 |
-
display: -webkit-inline-box;
|
392 |
-
display: -webkit-inline-flex;
|
393 |
-
display: -ms-inline-flexbox;
|
394 |
-
-js-display: inline-flex;
|
395 |
-
display: -moz-inline-box;
|
396 |
-
display: inline-flex;
|
397 |
-
-webkit-box-align: center;
|
398 |
-
-webkit-align-items: center;
|
399 |
-
-moz-box-align: center;
|
400 |
-
-ms-flex-align: center;
|
401 |
-
align-items: center;
|
402 |
-
}
|
403 |
-
|
404 |
-
.premium-gallery-load-more-btn div {
|
405 |
-
margin-right: 3px;
|
406 |
-
}
|
407 |
-
|
408 |
-
.premium-gallery-load-more-btn .premium-loader {
|
409 |
-
display: inline-block;
|
410 |
-
width: 20px;
|
411 |
-
height: 20px;
|
412 |
-
}
|
413 |
-
|
414 |
-
/** * Video */
|
415 |
-
.pa-gallery-img .pa-gallery-lightbox-wrap {
|
416 |
-
display: inline-block;
|
417 |
-
}
|
418 |
-
|
419 |
-
.premium-img-gallery-no-lightbox .premium-gallery-video-item .pa-gallery-img,
|
420 |
-
.pa-gallery-img .pa-gallery-video-icon {
|
421 |
-
cursor: pointer;
|
422 |
-
}
|
423 |
-
|
424 |
-
.pa-gallery-img-container iframe,
|
425 |
-
.pa-gallery-img-container video {
|
426 |
-
position: absolute;
|
427 |
-
visibility: hidden;
|
428 |
-
top: 0;
|
429 |
-
right: 0;
|
430 |
-
max-width: 100%;
|
431 |
-
width: 100%;
|
432 |
-
height: 100%;
|
433 |
-
margin: 0;
|
434 |
-
line-height: 1;
|
435 |
-
border: none;
|
436 |
-
}
|
437 |
-
|
438 |
-
.pa-gallery-img-container video {
|
439 |
-
-o-object-fit: contain;
|
440 |
-
object-fit: contain;
|
441 |
-
}
|
442 |
-
|
443 |
-
.pa-gallery-icons-inner-container svg,
|
444 |
-
.pa-gallery-icons-caption-cell svg {
|
445 |
-
width: 14px;
|
446 |
-
height: 14px;
|
447 |
-
}
|
448 |
-
|
449 |
-
.premium-gallery-gradient-layer {
|
450 |
-
position: absolute;
|
451 |
-
bottom: 40px;
|
452 |
-
width: 100%;
|
453 |
-
height: 20px;
|
454 |
-
background: -webkit-gradient(linear, left bottom, left top, from(#17181f), to(rgba(255, 255, 255, 0)));
|
455 |
-
background: -webkit-linear-gradient(bottom, #17181f 0%, rgba(255, 255, 255, 0) 100%);
|
456 |
-
background: linear-gradient(to top, #17181f 0%, rgba(255, 255, 255, 0) 100%);
|
457 |
Â
}
|
1 |
+
/******** Premium Media Grid ********/
|
2 |
+
/************************************/
|
3 |
+
.premium-img-gallery-filter,
|
4 |
+
.premium-blog-filter {
|
5 |
+
display: -webkit-box;
|
6 |
+
display: -webkit-flex;
|
7 |
+
display: -ms-flexbox;
|
8 |
+
-js-display: flex;
|
9 |
+
display: -moz-box;
|
10 |
+
display: flex;
|
11 |
+
-webkit-box-align: center;
|
12 |
+
-webkit-align-items: center;
|
13 |
+
-moz-box-align: center;
|
14 |
+
-ms-flex-align: center;
|
15 |
+
align-items: center;
|
16 |
+
-webkit-box-pack: center;
|
17 |
+
-webkit-justify-content: center;
|
18 |
+
-moz-box-pack: center;
|
19 |
+
-ms-flex-pack: center;
|
20 |
+
justify-content: center;
|
21 |
+
}
|
22 |
+
|
23 |
+
.premium-img-gallery {
|
24 |
+
clear: both;
|
25 |
+
overflow: hidden;
|
26 |
+
}
|
27 |
+
|
28 |
+
.premium-gallery-container .premium-gallery-item {
|
29 |
+
padding: 10px;
|
30 |
+
float: right;
|
31 |
+
/* Google Chrome isotope issue */
|
32 |
+
}
|
33 |
+
|
34 |
+
.premium-gallery-container .grid-sizer {
|
35 |
+
width: 33.33%;
|
36 |
+
}
|
37 |
+
|
38 |
+
.premium-img-gallery-filter .premium-gallery-cats-container li a.category,
|
39 |
+
.premium-blog-filter .premium-blog-filters-container li a.category {
|
40 |
+
outline: none;
|
41 |
+
text-decoration: none;
|
42 |
+
-webkit-border-radius: 75px;
|
43 |
+
border-radius: 75px;
|
44 |
+
margin: 15px 5px 20px;
|
45 |
+
padding: 7px 20px;
|
46 |
+
-webkit-transition: all 0.3s ease-in-out;
|
47 |
+
transition: all 0.3s ease-in-out;
|
48 |
+
}
|
49 |
+
|
50 |
+
/* .premium-img-gallery-filter .premium-gallery-cats-container li a.category span {
|
51 |
+
-webkit-transition: all 0.3s ease-in-out;
|
52 |
+
transition: all 0.3s ease-in-out;
|
53 |
+
} */
|
54 |
+
|
55 |
+
.pa-gallery-img {
|
56 |
+
position: relative;
|
57 |
+
}
|
58 |
+
|
59 |
+
.pa-gallery-img .pa-gallery-whole-link {
|
60 |
+
position: absolute;
|
61 |
+
top: 0;
|
62 |
+
right: 0;
|
63 |
+
width: 100%;
|
64 |
+
height: 100%;
|
65 |
+
z-index: 2;
|
66 |
+
}
|
67 |
+
|
68 |
+
.pa-gallery-img .pa-gallery-whole-link span {
|
69 |
+
display: none;
|
70 |
+
}
|
71 |
+
|
72 |
+
.pa-gallery-img.style2 .pa-gallery-whole-link,
|
73 |
+
.pa-gallery-img.style3 .pa-gallery-whole-link {
|
74 |
+
z-index: 99;
|
75 |
+
}
|
76 |
+
|
77 |
+
.pa-gallery-img-container {
|
78 |
+
overflow: hidden;
|
79 |
+
-webkit-backface-visibility: hidden;
|
80 |
+
-moz-backface-visibility: hidden;
|
81 |
+
-webkit-transform: translate3d(0, 0, 0);
|
82 |
+
transform: translate3d(0, 0, 0);
|
83 |
+
}
|
84 |
+
|
85 |
+
.pa-gallery-img-container img {
|
86 |
+
display: block;
|
87 |
+
width: 100%;
|
88 |
+
-webkit-transition: all 0.3s ease-in-out;
|
89 |
+
transition: all 0.3s ease-in-out;
|
90 |
+
}
|
91 |
+
|
92 |
+
.premium-img-gallery.gray img {
|
93 |
+
-webkit-filter: grayscale(100%);
|
94 |
+
filter: grayscale(100%);
|
95 |
+
}
|
96 |
+
|
97 |
+
.premium-img-gallery.zoomout img,
|
98 |
+
.premium-img-gallery.scale img {
|
99 |
+
-webkit-transform: scale(1.2);
|
100 |
+
-ms-transform: scale(1.2);
|
101 |
+
transform: scale(1.2);
|
102 |
+
}
|
103 |
+
|
104 |
+
.premium-img-gallery.sepia img {
|
105 |
+
-webkit-filter: sepia(30%);
|
106 |
+
filter: sepia(30%);
|
107 |
+
}
|
108 |
+
|
109 |
+
.premium-img-gallery.bright img {
|
110 |
+
-webkit-filter: brightness(1);
|
111 |
+
filter: brightness(1);
|
112 |
+
}
|
113 |
+
|
114 |
+
.premium-img-gallery.trans img {
|
115 |
+
-webkit-transform: translateX(15px) scale(1.1);
|
116 |
+
-ms-transform: translateX(15px) scale(1.1);
|
117 |
+
transform: translateX(15px) scale(1.1);
|
118 |
+
}
|
119 |
+
|
120 |
+
.pa-gallery-img .pa-gallery-magnific-image,
|
121 |
+
.pa-gallery-img .pa-gallery-img-link {
|
122 |
+
outline: none;
|
123 |
+
}
|
124 |
+
|
125 |
+
.pa-gallery-img .pa-gallery-magnific-image i,
|
126 |
+
.pa-gallery-img .pa-gallery-magnific-image svg,
|
127 |
+
.pa-gallery-img .pa-gallery-img-link i,
|
128 |
+
.pa-gallery-img .pa-gallery-img-link svg {
|
129 |
+
-webkit-transition: all 0.3s ease-in-out;
|
130 |
+
transition: all 0.3s ease-in-out;
|
131 |
+
}
|
132 |
+
|
133 |
+
.pa-gallery-img .pa-gallery-magnific-image span,
|
134 |
+
.pa-gallery-img .pa-gallery-img-link span {
|
135 |
+
line-height: 1;
|
136 |
+
display: inline-block;
|
137 |
+
opacity: 0;
|
138 |
+
margin: 0 5px;
|
139 |
+
padding: 15px;
|
140 |
+
-webkit-border-radius: 50%;
|
141 |
+
border-radius: 50%;
|
142 |
+
}
|
143 |
+
|
144 |
+
.pa-gallery-img.style2 .pa-gallery-magnific-image span,
|
145 |
+
.pa-gallery-img.style2 .pa-gallery-img-link span {
|
146 |
+
margin: 0 5px 20px;
|
147 |
+
}
|
148 |
+
|
149 |
+
.pa-gallery-img:hover .pa-gallery-magnific-image span {
|
150 |
+
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
|
151 |
+
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
|
152 |
+
}
|
153 |
+
|
154 |
+
.pa-gallery-img:hover .pa-gallery-img-link span {
|
155 |
+
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
|
156 |
+
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
|
157 |
+
}
|
158 |
+
|
159 |
+
.pa-gallery-img:hover .pa-gallery-magnific-image span,
|
160 |
+
.pa-gallery-img:hover .pa-gallery-img-link span,
|
161 |
+
.premium-gallery-icon-show a.pa-gallery-video-icon span {
|
162 |
+
opacity: 1;
|
163 |
+
}
|
164 |
+
|
165 |
+
.premium-img-gallery-filter ul.premium-gallery-cats-container,
|
166 |
+
.premium-blog-filter ul.premium-blog-filters-container {
|
167 |
+
text-align: center;
|
168 |
+
margin: 0;
|
169 |
+
padding: 0;
|
170 |
+
}
|
171 |
+
|
172 |
+
.premium-img-gallery-filter .premium-gallery-cats-container li,
|
173 |
+
.premium-blog-filter .premium-blog-filters-container li {
|
174 |
+
list-style: none;
|
175 |
+
display: -webkit-inline-box;
|
176 |
+
display: -webkit-inline-flex;
|
177 |
+
display: -ms-inline-flexbox;
|
178 |
+
-js-display: inline-flex;
|
179 |
+
display: -moz-inline-box;
|
180 |
+
display: inline-flex;
|
181 |
+
}
|
182 |
+
|
183 |
+
.premium-img-gallery.zoomin .pa-gallery-img:hover img {
|
184 |
+
-webkit-transform: scale(1.1);
|
185 |
+
-ms-transform: scale(1.1);
|
186 |
+
transform: scale(1.1);
|
187 |
+
}
|
188 |
+
|
189 |
+
.premium-img-gallery.zoomout .pa-gallery-img:hover img {
|
190 |
+
-webkit-transform: scale(1);
|
191 |
+
-ms-transform: scale(1);
|
192 |
+
transform: scale(1);
|
193 |
+
}
|
194 |
+
|
195 |
+
.premium-img-gallery.scale .pa-gallery-img:hover img {
|
196 |
+
-webkit-transform: scale(1.3) rotate(-5deg);
|
197 |
+
-ms-transform: scale(1.3) rotate(-5deg);
|
198 |
+
transform: scale(1.3) rotate(-5deg);
|
199 |
+
}
|
200 |
+
|
201 |
+
.premium-img-gallery.gray .pa-gallery-img:hover img {
|
202 |
+
-webkit-filter: grayscale(0%);
|
203 |
+
filter: grayscale(0%);
|
204 |
+
}
|
205 |
+
|
206 |
+
.premium-img-gallery.blur .pa-gallery-img:hover img {
|
207 |
+
-webkit-filter: blur(3px);
|
208 |
+
filter: blur(3px);
|
209 |
+
}
|
210 |
+
|
211 |
+
.premium-img-gallery.sepia .pa-gallery-img:hover img {
|
212 |
+
-webkit-filter: sepia(0%);
|
213 |
+
filter: sepia(0%);
|
214 |
+
}
|
215 |
+
|
216 |
+
.premium-img-gallery.trans .pa-gallery-img:hover img {
|
217 |
+
-webkit-transform: translateX(0px) scale(1.1);
|
218 |
+
-ms-transform: translateX(0px) scale(1.1);
|
219 |
+
transform: translateX(0px) scale(1.1);
|
220 |
+
}
|
221 |
+
|
222 |
+
.premium-img-gallery.bright .pa-gallery-img:hover img {
|
223 |
+
-webkit-filter: brightness(1.2);
|
224 |
+
filter: brightness(1.2);
|
225 |
+
}
|
226 |
+
|
227 |
+
.pa-gallery-img .premium-gallery-caption {
|
228 |
+
padding: 10px;
|
229 |
+
}
|
230 |
+
|
231 |
+
.pa-gallery-img .premium-gallery-caption .premium-gallery-img-name {
|
232 |
+
margin-bottom: 0;
|
233 |
+
}
|
234 |
+
|
235 |
+
.pa-gallery-img.style1 {
|
236 |
+
overflow: hidden;
|
237 |
+
}
|
238 |
+
|
239 |
+
.pa-gallery-img:not(.style2) .pa-gallery-icons-wrapper {
|
240 |
+
position: absolute;
|
241 |
+
top: 0;
|
242 |
+
right: 0;
|
243 |
+
width: 100%;
|
244 |
+
height: 100%;
|
245 |
+
-webkit-transition: all 0.3s ease-in-out;
|
246 |
+
transition: all 0.3s ease-in-out;
|
247 |
+
}
|
248 |
+
|
249 |
+
.pa-gallery-img:not(.style2) .pa-gallery-icons-inner-container {
|
250 |
+
position: absolute;
|
251 |
+
top: 33.33%;
|
252 |
+
width: 100%;
|
253 |
+
text-align: center;
|
254 |
+
-webkit-transform: translateY(-50%);
|
255 |
+
-ms-transform: translateY(-50%);
|
256 |
+
transform: translateY(-50%);
|
257 |
+
z-index: 3;
|
258 |
+
}
|
259 |
+
|
260 |
+
.pa-gallery-img.style1 .premium-gallery-caption {
|
261 |
+
position: absolute;
|
262 |
+
top: auto;
|
263 |
+
left: 0;
|
264 |
+
right: 0;
|
265 |
+
width: 100%;
|
266 |
+
-webkit-transition: all 500ms ease 0s;
|
267 |
+
transition: all 500ms ease 0s;
|
268 |
+
-webkit-transform: translate3d(0, 100%, 0);
|
269 |
+
-ms-transform: translate3d(0, 100%, 0);
|
270 |
+
transform: translate3d(0, 100%, 0);
|
271 |
+
}
|
272 |
+
|
273 |
+
.pa-gallery-img.default .premium-gallery-caption {
|
274 |
+
position: absolute;
|
275 |
+
top: auto;
|
276 |
+
left: 0;
|
277 |
+
right: 0;
|
278 |
+
width: 100%;
|
279 |
+
bottom: 0;
|
280 |
+
}
|
281 |
+
|
282 |
+
.pa-gallery-img.style1:hover .premium-gallery-caption {
|
283 |
+
-webkit-transform: translate3d(0, 0, 0);
|
284 |
+
-ms-transform: translate3d(0, 0, 0);
|
285 |
+
transform: translate3d(0, 0, 0);
|
286 |
+
bottom: -1px !important;
|
287 |
+
}
|
288 |
+
|
289 |
+
.pa-gallery-img.style2 .pa-gallery-icons-caption-container {
|
290 |
+
position: absolute;
|
291 |
+
top: 0;
|
292 |
+
right: 0;
|
293 |
+
width: 100%;
|
294 |
+
height: 100%;
|
295 |
+
opacity: 0;
|
296 |
+
-webkit-backface-visibility: hidden;
|
297 |
+
backface-visibility: hidden;
|
298 |
+
-webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
|
299 |
+
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
|
300 |
+
transition: opacity 0.3s, -webkit-transform 0.3s;
|
301 |
+
transition: transform 0.3s, opacity 0.3s;
|
302 |
+
transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s;
|
303 |
+
z-index: 1;
|
304 |
+
background-color: rgba(108, 191, 226, 0.68);
|
305 |
+
display: -webkit-box;
|
306 |
+
display: -webkit-flex;
|
307 |
+
display: -ms-flexbox;
|
308 |
+
-js-display: flex;
|
309 |
+
display: -moz-box;
|
310 |
+
display: flex;
|
311 |
+
text-align: center;
|
312 |
+
-webkit-box-align: center;
|
313 |
+
-webkit-align-items: center;
|
314 |
+
-moz-box-align: center;
|
315 |
+
-ms-flex-align: center;
|
316 |
+
align-items: center;
|
317 |
+
}
|
318 |
+
|
319 |
+
.pa-gallery-img.style2 .pa-gallery-icons-caption-cell {
|
320 |
+
width: 100%;
|
321 |
+
}
|
322 |
+
|
323 |
+
.pa-gallery-img.style2:hover .pa-gallery-icons-caption-container {
|
324 |
+
opacity: 1;
|
325 |
+
-webkit-transform: translate(-15px, 15px);
|
326 |
+
-ms-transform: translate(-15px, 15px);
|
327 |
+
transform: translate(-15px, 15px);
|
328 |
+
}
|
329 |
+
|
330 |
+
.premium-clearfix {
|
331 |
+
clear: both;
|
332 |
+
}
|
333 |
+
|
334 |
+
.premium-gallery-container .pa-gallery-item {
|
335 |
+
padding: 10px;
|
336 |
+
}
|
337 |
+
|
338 |
+
/**
|
339 |
+
* Metro Layout
|
340 |
+
*/
|
341 |
+
.premium-img-gallery-metro .premium-gallery-item {
|
342 |
+
overflow: hidden;
|
343 |
+
}
|
344 |
+
|
345 |
+
.premium-img-gallery-metro .pa-gallery-img {
|
346 |
+
height: 100%;
|
347 |
+
}
|
348 |
+
|
349 |
+
.premium-img-gallery-metro .pa-gallery-img-container {
|
350 |
+
height: 100%;
|
351 |
+
}
|
352 |
+
|
353 |
+
.premium-img-gallery-metro .pa-gallery-img-container img {
|
354 |
+
min-height: 100%;
|
355 |
+
width: 100%;
|
356 |
+
-o-object-fit: fill;
|
357 |
+
object-fit: fill;
|
358 |
+
}
|
359 |
+
|
360 |
+
.premium-img-gallery .premium-gallery-item-hidden {
|
361 |
+
visibility: hidden;
|
362 |
+
width: 0 !important;
|
363 |
+
height: 0 !important;
|
364 |
+
margin: 0 !important;
|
365 |
+
padding: 0 !important;
|
366 |
+
}
|
367 |
+
|
368 |
+
.premium-gallery-load-more .premium-gallery-load-more-btn {
|
369 |
+
-webkit-box-shadow: none;
|
370 |
+
box-shadow: none;
|
371 |
+
text-shadow: none;
|
372 |
+
border: none;
|
373 |
+
outline: none;
|
374 |
+
-webkit-box-align: center;
|
375 |
+
-ms-flex-align: center;
|
376 |
+
-webkit-align-items: center;
|
377 |
+
-moz-box-align: center;
|
378 |
+
align-items: center;
|
379 |
+
vertical-align: bottom;
|
380 |
+
cursor: pointer;
|
381 |
+
line-height: 1;
|
382 |
+
font-style: normal;
|
383 |
+
font-weight: normal;
|
384 |
+
background-image: none;
|
385 |
+
color: #fff;
|
386 |
+
-webkit-transition: all 0.3s ease-in-out;
|
387 |
+
transition: all 0.3s ease-in-out;
|
388 |
+
}
|
389 |
+
|
390 |
+
.premium-gallery-load-more-btn {
|
391 |
+
display: -webkit-inline-box;
|
392 |
+
display: -webkit-inline-flex;
|
393 |
+
display: -ms-inline-flexbox;
|
394 |
+
-js-display: inline-flex;
|
395 |
+
display: -moz-inline-box;
|
396 |
+
display: inline-flex;
|
397 |
+
-webkit-box-align: center;
|
398 |
+
-webkit-align-items: center;
|
399 |
+
-moz-box-align: center;
|
400 |
+
-ms-flex-align: center;
|
401 |
+
align-items: center;
|
402 |
+
}
|
403 |
+
|
404 |
+
.premium-gallery-load-more-btn div {
|
405 |
+
margin-right: 3px;
|
406 |
+
}
|
407 |
+
|
408 |
+
.premium-gallery-load-more-btn .premium-loader {
|
409 |
+
display: inline-block;
|
410 |
+
width: 20px;
|
411 |
+
height: 20px;
|
412 |
+
}
|
413 |
+
|
414 |
+
/** * Video */
|
415 |
+
.pa-gallery-img .pa-gallery-lightbox-wrap {
|
416 |
+
display: inline-block;
|
417 |
+
}
|
418 |
+
|
419 |
+
.premium-img-gallery-no-lightbox .premium-gallery-video-item .pa-gallery-img,
|
420 |
+
.pa-gallery-img .pa-gallery-video-icon {
|
421 |
+
cursor: pointer;
|
422 |
+
}
|
423 |
+
|
424 |
+
.pa-gallery-img-container iframe,
|
425 |
+
.pa-gallery-img-container video {
|
426 |
+
position: absolute;
|
427 |
+
visibility: hidden;
|
428 |
+
top: 0;
|
429 |
+
right: 0;
|
430 |
+
max-width: 100%;
|
431 |
+
width: 100%;
|
432 |
+
height: 100%;
|
433 |
+
margin: 0;
|
434 |
+
line-height: 1;
|
435 |
+
border: none;
|
436 |
+
}
|
437 |
+
|
438 |
+
.pa-gallery-img-container video {
|
439 |
+
-o-object-fit: contain;
|
440 |
+
object-fit: contain;
|
441 |
+
}
|
442 |
+
|
443 |
+
.pa-gallery-icons-inner-container svg,
|
444 |
+
.pa-gallery-icons-caption-cell svg {
|
445 |
+
width: 14px;
|
446 |
+
height: 14px;
|
447 |
+
}
|
448 |
+
|
449 |
+
.premium-gallery-gradient-layer {
|
450 |
+
position: absolute;
|
451 |
+
bottom: 40px;
|
452 |
+
width: 100%;
|
453 |
+
height: 20px;
|
454 |
+
background: -webkit-gradient(linear, left bottom, left top, from(#17181f), to(rgba(255, 255, 255, 0)));
|
455 |
+
background: -webkit-linear-gradient(bottom, #17181f 0%, rgba(255, 255, 255, 0) 100%);
|
456 |
+
background: linear-gradient(to top, #17181f 0%, rgba(255, 255, 255, 0) 100%);
|
457 |
Â
}
|
assets/frontend/css/premium-img-gallery.css
CHANGED
@@ -1,392 +1,392 @@
|
|
1 |
-
/******** Premium Media Grid ********/
|
2 |
-
/************************************/
|
3 |
-
.premium-img-gallery-filter,
|
4 |
-
.premium-blog-filter {
|
5 |
-
-js-display: flex;
|
6 |
-
display: -webkit-box;
|
7 |
-
display: -webkit-flex;
|
8 |
-
display: -moz-box;
|
9 |
-
display: -ms-flexbox;
|
10 |
-
display: flex;
|
11 |
-
-webkit-box-align: center;
|
12 |
-
-webkit-align-items: center;
|
13 |
-
-moz-box-align: center;
|
14 |
-
-ms-flex-align: center;
|
15 |
-
align-items: center;
|
16 |
-
-webkit-box-pack: center;
|
17 |
-
-webkit-justify-content: center;
|
18 |
-
-moz-box-pack: center;
|
19 |
-
-ms-flex-pack: center;
|
20 |
-
justify-content: center; }
|
21 |
-
|
22 |
-
.premium-img-gallery {
|
23 |
-
clear: both;
|
24 |
-
overflow: hidden; }
|
25 |
-
|
26 |
-
.premium-gallery-container .premium-gallery-item {
|
27 |
-
padding: 10px;
|
28 |
-
float: left; }
|
29 |
-
|
30 |
-
.premium-gallery-container .grid-sizer {
|
31 |
-
width: 33.33%; }
|
32 |
-
|
33 |
-
.premium-gallery-container .pa-gallery-item {
|
34 |
-
padding: 10px; }
|
35 |
-
|
36 |
-
.premium-img-gallery-filter .premium-gallery-cats-container li a.category,
|
37 |
-
.premium-blog-filter .premium-blog-filters-container li a.category {
|
38 |
-
outline: none;
|
39 |
-
text-decoration: none;
|
40 |
-
-webkit-border-radius: 75px;
|
41 |
-
border-radius: 75px;
|
42 |
-
margin: 15px 5px 20px;
|
43 |
-
padding: 7px 20px;
|
44 |
-
-webkit-transition: all 0.3s ease-in-out;
|
45 |
-
transition: all 0.3s ease-in-out; }
|
46 |
-
|
47 |
-
.pa-gallery-img {
|
48 |
-
position: relative; }
|
49 |
-
.pa-gallery-img .pa-gallery-whole-link {
|
50 |
-
position: absolute;
|
51 |
-
top: 0;
|
52 |
-
left: 0;
|
53 |
-
width: 100%;
|
54 |
-
height: 100%;
|
55 |
-
z-index: 2; }
|
56 |
-
.pa-gallery-img .pa-gallery-whole-link span {
|
57 |
-
display: none; }
|
58 |
-
.pa-gallery-img.style2 .pa-gallery-whole-link, .pa-gallery-img.style3 .pa-gallery-whole-link {
|
59 |
-
z-index: 99; }
|
60 |
-
|
61 |
-
.pa-gallery-img-container {
|
62 |
-
overflow: hidden;
|
63 |
-
-webkit-backface-visibility: hidden;
|
64 |
-
backface-visibility: hidden;
|
65 |
-
-webkit-transform: translate3d(0, 0, 0);
|
66 |
-
transform: translate3d(0, 0, 0); }
|
67 |
-
.pa-gallery-img-container img {
|
68 |
-
display: block;
|
69 |
-
width: 100%;
|
70 |
-
-webkit-transition: all 0.3s ease-in-out;
|
71 |
-
transition: all 0.3s ease-in-out; }
|
72 |
-
|
73 |
-
.premium-img-gallery.gray img {
|
74 |
-
-webkit-filter: grayscale(100%);
|
75 |
-
filter: grayscale(100%); }
|
76 |
-
|
77 |
-
.premium-img-gallery.zoomout img,
|
78 |
-
.premium-img-gallery.scale img {
|
79 |
-
-webkit-transform: scale(1.2);
|
80 |
-
-ms-transform: scale(1.2);
|
81 |
-
transform: scale(1.2); }
|
82 |
-
|
83 |
-
.premium-img-gallery.sepia img {
|
84 |
-
-webkit-filter: sepia(30%);
|
85 |
-
filter: sepia(30%); }
|
86 |
-
|
87 |
-
.premium-img-gallery.bright img {
|
88 |
-
-webkit-filter: brightness(1);
|
89 |
-
filter: brightness(1); }
|
90 |
-
|
91 |
-
.premium-img-gallery.trans img {
|
92 |
-
-webkit-transform: translateX(-15px) scale(1.1);
|
93 |
-
-ms-transform: translateX(-15px) scale(1.1);
|
94 |
-
transform: translateX(-15px) scale(1.1); }
|
95 |
-
|
96 |
-
.pa-gallery-img .pa-gallery-magnific-image,
|
97 |
-
.pa-gallery-img .pa-gallery-img-link {
|
98 |
-
outline: none; }
|
99 |
-
.pa-gallery-img .pa-gallery-magnific-image i,
|
100 |
-
.pa-gallery-img .pa-gallery-magnific-image svg,
|
101 |
-
.pa-gallery-img .pa-gallery-img-link i,
|
102 |
-
.pa-gallery-img .pa-gallery-img-link svg {
|
103 |
-
-webkit-transition: all 0.3s ease-in-out;
|
104 |
-
transition: all 0.3s ease-in-out; }
|
105 |
-
|
106 |
-
.pa-gallery-img .pa-gallery-magnific-image span,
|
107 |
-
.pa-gallery-img .pa-gallery-img-link span {
|
108 |
-
line-height: 1;
|
109 |
-
display: inline-block;
|
110 |
-
opacity: 0;
|
111 |
-
margin: 0 5px;
|
112 |
-
padding: 15px;
|
113 |
-
-webkit-border-radius: 50%;
|
114 |
-
border-radius: 50%; }
|
115 |
-
|
116 |
-
.pa-gallery-img.style2 .pa-gallery-magnific-image span,
|
117 |
-
.pa-gallery-img.style2 .pa-gallery-img-link span {
|
118 |
-
margin: 0 5px 20px; }
|
119 |
-
|
120 |
-
.pa-gallery-img:hover .pa-gallery-magnific-image span {
|
121 |
-
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
|
122 |
-
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s; }
|
123 |
-
|
124 |
-
.pa-gallery-img:hover .pa-gallery-img-link span {
|
125 |
-
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
|
126 |
-
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s; }
|
127 |
-
|
128 |
-
.pa-gallery-img:hover .pa-gallery-magnific-image span,
|
129 |
-
.pa-gallery-img:hover .pa-gallery-img-link span {
|
130 |
-
opacity: 1; }
|
131 |
-
|
132 |
-
.premium-gallery-icon-show a.pa-gallery-video-icon span {
|
133 |
-
opacity: 1; }
|
134 |
-
|
135 |
-
.premium-img-gallery-filter ul.premium-gallery-cats-container,
|
136 |
-
.premium-blog-filter ul.premium-blog-filters-container {
|
137 |
-
text-align: center;
|
138 |
-
margin: 0;
|
139 |
-
padding: 0; }
|
140 |
-
|
141 |
-
.premium-img-gallery-filter .premium-gallery-cats-container li,
|
142 |
-
.premium-blog-filter .premium-blog-filters-container li {
|
143 |
-
list-style: none;
|
144 |
-
-js-display: inline-flex;
|
145 |
-
display: -webkit-inline-box;
|
146 |
-
display: -webkit-inline-flex;
|
147 |
-
display: -moz-inline-box;
|
148 |
-
display: -ms-inline-flexbox;
|
149 |
-
display: inline-flex; }
|
150 |
-
|
151 |
-
.premium-img-gallery.zoomin .pa-gallery-img:hover img {
|
152 |
-
-webkit-transform: scale(1.1);
|
153 |
-
-ms-transform: scale(1.1);
|
154 |
-
transform: scale(1.1); }
|
155 |
-
|
156 |
-
.premium-img-gallery.zoomout .pa-gallery-img:hover img {
|
157 |
-
-webkit-transform: scale(1);
|
158 |
-
-ms-transform: scale(1);
|
159 |
-
transform: scale(1); }
|
160 |
-
|
161 |
-
.premium-img-gallery.scale .pa-gallery-img:hover img {
|
162 |
-
-webkit-transform: scale(1.3) rotate(5deg);
|
163 |
-
-ms-transform: scale(1.3) rotate(5deg);
|
164 |
-
transform: scale(1.3) rotate(5deg); }
|
165 |
-
|
166 |
-
.premium-img-gallery.gray .pa-gallery-img:hover img {
|
167 |
-
-webkit-filter: grayscale(0%);
|
168 |
-
filter: grayscale(0%); }
|
169 |
-
|
170 |
-
.premium-img-gallery.blur .pa-gallery-img:hover img {
|
171 |
-
-webkit-filter: blur(3px);
|
172 |
-
filter: blur(3px); }
|
173 |
-
|
174 |
-
.premium-img-gallery.sepia .pa-gallery-img:hover img {
|
175 |
-
-webkit-filter: sepia(0%);
|
176 |
-
filter: sepia(0%); }
|
177 |
-
|
178 |
-
.premium-img-gallery.trans .pa-gallery-img:hover img {
|
179 |
-
-webkit-transform: translateX(0px) scale(1.1);
|
180 |
-
-ms-transform: translateX(0px) scale(1.1);
|
181 |
-
transform: translateX(0px) scale(1.1); }
|
182 |
-
|
183 |
-
.premium-img-gallery.bright .pa-gallery-img:hover img {
|
184 |
-
-webkit-filter: brightness(1.2);
|
185 |
-
filter: brightness(1.2); }
|
186 |
-
|
187 |
-
.pa-gallery-img .premium-gallery-caption {
|
188 |
-
padding: 10px; }
|
189 |
-
.pa-gallery-img .premium-gallery-caption .premium-gallery-img-name {
|
190 |
-
margin-bottom: 0; }
|
191 |
-
|
192 |
-
.pa-gallery-img.style1 {
|
193 |
-
overflow: hidden; }
|
194 |
-
|
195 |
-
.pa-gallery-img:not(.style2) .pa-gallery-icons-wrapper {
|
196 |
-
position: absolute;
|
197 |
-
top: 0;
|
198 |
-
left: 0;
|
199 |
-
width: 100%;
|
200 |
-
height: 100%;
|
201 |
-
-webkit-transition: all 0.3s ease-in-out;
|
202 |
-
transition: all 0.3s ease-in-out; }
|
203 |
-
|
204 |
-
.pa-gallery-img:not(.style2) .pa-gallery-icons-inner-container {
|
205 |
-
position: absolute;
|
206 |
-
top: 33.33%;
|
207 |
-
width: 100%;
|
208 |
-
text-align: center;
|
209 |
-
-webkit-transform: translateY(-50%);
|
210 |
-
-ms-transform: translateY(-50%);
|
211 |
-
transform: translateY(-50%);
|
212 |
-
z-index: 3; }
|
213 |
-
|
214 |
-
.pa-gallery-img.style1 .premium-gallery-caption {
|
215 |
-
position: absolute;
|
216 |
-
top: auto;
|
217 |
-
right: 0;
|
218 |
-
bottom: -1px;
|
219 |
-
left: 0;
|
220 |
-
width: 100%;
|
221 |
-
-webkit-transition: all 500ms ease 0s;
|
222 |
-
transition: all 500ms ease 0s;
|
223 |
-
-webkit-transform: translate3d(0, 100%, 0);
|
224 |
-
transform: translate3d(0, 100%, 0); }
|
225 |
-
|
226 |
-
.pa-gallery-img.style1:hover .premium-gallery-caption {
|
227 |
-
-webkit-transform: translate3d(0, 0, 0);
|
228 |
-
transform: translate3d(0, 0, 0);
|
229 |
-
bottom: -1px !important; }
|
230 |
-
|
231 |
-
.pa-gallery-img.default .premium-gallery-caption {
|
232 |
-
position: absolute;
|
233 |
-
top: auto;
|
234 |
-
right: 0;
|
235 |
-
left: 0;
|
236 |
-
width: 100%;
|
237 |
-
bottom: 0; }
|
238 |
-
|
239 |
-
.pa-gallery-img.style2 .pa-gallery-icons-caption-container {
|
240 |
-
position: absolute;
|
241 |
-
top: 0;
|
242 |
-
left: 0;
|
243 |
-
width: 100%;
|
244 |
-
height: 100%;
|
245 |
-
opacity: 0;
|
246 |
-
-webkit-backface-visibility: hidden;
|
247 |
-
backface-visibility: hidden;
|
248 |
-
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
|
249 |
-
transition: opacity 0.3s, -webkit-transform 0.3s;
|
250 |
-
transition: transform 0.3s, opacity 0.3s;
|
251 |
-
transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s;
|
252 |
-
z-index: 1;
|
253 |
-
background-color: rgba(108, 191, 226, 0.68);
|
254 |
-
-js-display: flex;
|
255 |
-
display: -webkit-box;
|
256 |
-
display: -webkit-flex;
|
257 |
-
display: -moz-box;
|
258 |
-
display: -ms-flexbox;
|
259 |
-
display: flex;
|
260 |
-
text-align: center;
|
261 |
-
-webkit-box-align: center;
|
262 |
-
-webkit-align-items: center;
|
263 |
-
-moz-box-align: center;
|
264 |
-
-ms-flex-align: center;
|
265 |
-
align-items: center; }
|
266 |
-
|
267 |
-
.pa-gallery-img.style2 .pa-gallery-icons-caption-cell {
|
268 |
-
width: 100%; }
|
269 |
-
|
270 |
-
.pa-gallery-img.style2:hover .pa-gallery-icons-caption-container {
|
271 |
-
opacity: 1;
|
272 |
-
-webkit-transform: translate(15px, 15px);
|
273 |
-
-ms-transform: translate(15px, 15px);
|
274 |
-
transform: translate(15px, 15px); }
|
275 |
-
|
276 |
-
.premium-clearfix {
|
277 |
-
clear: both; }
|
278 |
-
|
279 |
-
/**
|
280 |
-
* Metro Layout
|
281 |
-
*/
|
282 |
-
.premium-img-gallery-metro .premium-gallery-item {
|
283 |
-
overflow: hidden; }
|
284 |
-
|
285 |
-
.premium-img-gallery-metro .pa-gallery-img {
|
286 |
-
height: 100%; }
|
287 |
-
|
288 |
-
.premium-img-gallery-metro .pa-gallery-img-container {
|
289 |
-
height: 100%; }
|
290 |
-
.premium-img-gallery-metro .pa-gallery-img-container img {
|
291 |
-
min-height: 100%;
|
292 |
-
width: 100%;
|
293 |
-
-o-object-fit: fill;
|
294 |
-
object-fit: fill; }
|
295 |
-
|
296 |
-
.premium-img-gallery .premium-gallery-item-hidden {
|
297 |
-
visibility: hidden;
|
298 |
-
width: 0 !important;
|
299 |
-
height: 0 !important;
|
300 |
-
margin: 0 !important;
|
301 |
-
padding: 0 !important; }
|
302 |
-
|
303 |
-
.premium-gallery-load-more {
|
304 |
-
position: relative; }
|
305 |
-
.premium-gallery-load-more .premium-gallery-load-more-btn {
|
306 |
-
-webkit-box-shadow: none;
|
307 |
-
box-shadow: none;
|
308 |
-
text-shadow: none;
|
309 |
-
border: none;
|
310 |
-
outline: none;
|
311 |
-
-webkit-box-align: center;
|
312 |
-
-webkit-align-items: center;
|
313 |
-
-moz-box-align: center;
|
314 |
-
-ms-flex-align: center;
|
315 |
-
align-items: center;
|
316 |
-
vertical-align: bottom;
|
317 |
-
cursor: pointer;
|
318 |
-
line-height: 1;
|
319 |
-
font-style: normal;
|
320 |
-
font-weight: normal;
|
321 |
-
background-image: none;
|
322 |
-
color: #fff;
|
323 |
-
-webkit-transition: all 0.3s ease-in-out;
|
324 |
-
transition: all 0.3s ease-in-out; }
|
325 |
-
|
326 |
-
.premium-gallery-load-more-btn {
|
327 |
-
-js-display: inline-flex;
|
328 |
-
display: -webkit-inline-box;
|
329 |
-
display: -webkit-inline-flex;
|
330 |
-
display: -moz-inline-box;
|
331 |
-
display: -ms-inline-flexbox;
|
332 |
-
display: inline-flex;
|
333 |
-
-webkit-box-align: center;
|
334 |
-
-webkit-align-items: center;
|
335 |
-
-moz-box-align: center;
|
336 |
-
-ms-flex-align: center;
|
337 |
-
align-items: center; }
|
338 |
-
|
339 |
-
.premium-gallery-load-more-btn div {
|
340 |
-
margin-left: 3px; }
|
341 |
-
|
342 |
-
.premium-gallery-load-more-btn .premium-loader {
|
343 |
-
display: inline-block;
|
344 |
-
width: 20px;
|
345 |
-
height: 20px; }
|
346 |
-
|
347 |
-
.pa-gallery-img .pa-gallery-lightbox-wrap {
|
348 |
-
display: inline-block; }
|
349 |
-
|
350 |
-
.premium-img-gallery-no-lightbox .premium-gallery-video-item .pa-gallery-img,
|
351 |
-
.pa-gallery-img .pa-gallery-video-icon {
|
352 |
-
cursor: pointer; }
|
353 |
-
|
354 |
-
.pa-gallery-img-container iframe {
|
355 |
-
position: absolute;
|
356 |
-
visibility: hidden;
|
357 |
-
top: 0;
|
358 |
-
left: 0;
|
359 |
-
max-width: 100%;
|
360 |
-
width: 100%;
|
361 |
-
height: 100%;
|
362 |
-
margin: 0;
|
363 |
-
line-height: 1;
|
364 |
-
border: none; }
|
365 |
-
|
366 |
-
.pa-gallery-img-container video {
|
367 |
-
position: absolute;
|
368 |
-
visibility: hidden;
|
369 |
-
top: 0;
|
370 |
-
left: 0;
|
371 |
-
max-width: 100%;
|
372 |
-
width: 100%;
|
373 |
-
height: 100%;
|
374 |
-
margin: 0;
|
375 |
-
line-height: 1;
|
376 |
-
border: none;
|
377 |
-
-o-object-fit: contain;
|
378 |
-
object-fit: contain; }
|
379 |
-
|
380 |
-
.pa-gallery-icons-inner-container svg,
|
381 |
-
.pa-gallery-icons-caption-cell svg {
|
382 |
-
width: 14px;
|
383 |
-
height: 14px; }
|
384 |
-
|
385 |
-
.premium-gallery-gradient-layer {
|
386 |
-
position: absolute;
|
387 |
-
bottom: 40px;
|
388 |
-
width: 100%;
|
389 |
-
height: 20px;
|
390 |
-
background: -webkit-gradient(linear, left bottom, left top, from(#17181f), to(rgba(255, 255, 255, 0)));
|
391 |
-
background: -webkit-linear-gradient(bottom, #17181f 0%, rgba(255, 255, 255, 0) 100%);
|
392 |
-
background: linear-gradient(to top, #17181f 0%, rgba(255, 255, 255, 0) 100%); }
|
1 |
+
/******** Premium Media Grid ********/
|
2 |
+
/************************************/
|
3 |
+
.premium-img-gallery-filter,
|
4 |
+
.premium-blog-filter {
|
5 |
+
-js-display: flex;
|
6 |
+
display: -webkit-box;
|
7 |
+
display: -webkit-flex;
|
8 |
+
display: -moz-box;
|
9 |
+
display: -ms-flexbox;
|
10 |
+
display: flex;
|
11 |
+
-webkit-box-align: center;
|
12 |
+
-webkit-align-items: center;
|
13 |
+
-moz-box-align: center;
|
14 |
+
-ms-flex-align: center;
|
15 |
+
align-items: center;
|
16 |
+
-webkit-box-pack: center;
|
17 |
+
-webkit-justify-content: center;
|
18 |
+
-moz-box-pack: center;
|
19 |
+
-ms-flex-pack: center;
|
20 |
+
justify-content: center; }
|
21 |
+
|
22 |
+
.premium-img-gallery {
|
23 |
+
clear: both;
|
24 |
+
overflow: hidden; }
|
25 |
+
|
26 |
+
.premium-gallery-container .premium-gallery-item {
|
27 |
+
padding: 10px;
|
28 |
+
float: left; }
|
29 |
+
|
30 |
+
.premium-gallery-container .grid-sizer {
|
31 |
+
width: 33.33%; }
|
32 |
+
|
33 |
+
.premium-gallery-container .pa-gallery-item {
|
34 |
+
padding: 10px; }
|
35 |
+
|
36 |
+
.premium-img-gallery-filter .premium-gallery-cats-container li a.category,
|
37 |
+
.premium-blog-filter .premium-blog-filters-container li a.category {
|
38 |
+
outline: none;
|
39 |
+
text-decoration: none;
|
40 |
+
-webkit-border-radius: 75px;
|
41 |
+
border-radius: 75px;
|
42 |
+
margin: 15px 5px 20px;
|
43 |
+
padding: 7px 20px;
|
44 |
+
-webkit-transition: all 0.3s ease-in-out;
|
45 |
+
transition: all 0.3s ease-in-out; }
|
46 |
+
|
47 |
+
.pa-gallery-img {
|
48 |
+
position: relative; }
|
49 |
+
.pa-gallery-img .pa-gallery-whole-link {
|
50 |
+
position: absolute;
|
51 |
+
top: 0;
|
52 |
+
left: 0;
|
53 |
+
width: 100%;
|
54 |
+
height: 100%;
|
55 |
+
z-index: 2; }
|
56 |
+
.pa-gallery-img .pa-gallery-whole-link span {
|
57 |
+
display: none; }
|
58 |
+
.pa-gallery-img.style2 .pa-gallery-whole-link, .pa-gallery-img.style3 .pa-gallery-whole-link {
|
59 |
+
z-index: 99; }
|
60 |
+
|
61 |
+
.pa-gallery-img-container {
|
62 |
+
overflow: hidden;
|
63 |
+
-webkit-backface-visibility: hidden;
|
64 |
+
backface-visibility: hidden;
|
65 |
+
-webkit-transform: translate3d(0, 0, 0);
|
66 |
+
transform: translate3d(0, 0, 0); }
|
67 |
+
.pa-gallery-img-container img {
|
68 |
+
display: block;
|
69 |
+
width: 100%;
|
70 |
+
-webkit-transition: all 0.3s ease-in-out;
|
71 |
+
transition: all 0.3s ease-in-out; }
|
72 |
+
|
73 |
+
.premium-img-gallery.gray img {
|
74 |
+
-webkit-filter: grayscale(100%);
|
75 |
+
filter: grayscale(100%); }
|
76 |
+
|
77 |
+
.premium-img-gallery.zoomout img,
|
78 |
+
.premium-img-gallery.scale img {
|
79 |
+
-webkit-transform: scale(1.2);
|
80 |
+
-ms-transform: scale(1.2);
|
81 |
+
transform: scale(1.2); }
|
82 |
+
|
83 |
+
.premium-img-gallery.sepia img {
|
84 |
+
-webkit-filter: sepia(30%);
|
85 |
+
filter: sepia(30%); }
|
86 |
+
|
87 |
+
.premium-img-gallery.bright img {
|
88 |
+
-webkit-filter: brightness(1);
|
89 |
+
filter: brightness(1); }
|
90 |
+
|
91 |
+
.premium-img-gallery.trans img {
|
92 |
+
-webkit-transform: translateX(-15px) scale(1.1);
|
93 |
+
-ms-transform: translateX(-15px) scale(1.1);
|
94 |
+
transform: translateX(-15px) scale(1.1); }
|
95 |
+
|
96 |
+
.pa-gallery-img .pa-gallery-magnific-image,
|
97 |
+
.pa-gallery-img .pa-gallery-img-link {
|
98 |
+
outline: none; }
|
99 |
+
.pa-gallery-img .pa-gallery-magnific-image i,
|
100 |
+
.pa-gallery-img .pa-gallery-magnific-image svg,
|
101 |
+
.pa-gallery-img .pa-gallery-img-link i,
|
102 |
+
.pa-gallery-img .pa-gallery-img-link svg {
|
103 |
+
-webkit-transition: all 0.3s ease-in-out;
|
104 |
+
transition: all 0.3s ease-in-out; }
|
105 |
+
|
106 |
+
.pa-gallery-img .pa-gallery-magnific-image span,
|
107 |
+
.pa-gallery-img .pa-gallery-img-link span {
|
108 |
+
line-height: 1;
|
109 |
+
display: inline-block;
|
110 |
+
opacity: 0;
|
111 |
+
margin: 0 5px;
|
112 |
+
padding: 15px;
|
113 |
+
-webkit-border-radius: 50%;
|
114 |
+
border-radius: 50%; }
|
115 |
+
|
116 |
+
.pa-gallery-img.style2 .pa-gallery-magnific-image span,
|
117 |
+
.pa-gallery-img.style2 .pa-gallery-img-link span {
|
118 |
+
margin: 0 5px 20px; }
|
119 |
+
|
120 |
+
.pa-gallery-img:hover .pa-gallery-magnific-image span {
|
121 |
+
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s;
|
122 |
+
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.3s; }
|
123 |
+
|
124 |
+
.pa-gallery-img:hover .pa-gallery-img-link span {
|
125 |
+
-webkit-transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s;
|
126 |
+
transition: all 0.3s ease-in-out, opacity 0.5s ease-in-out 0.6s; }
|
127 |
+
|
128 |
+
.pa-gallery-img:hover .pa-gallery-magnific-image span,
|
129 |
+
.pa-gallery-img:hover .pa-gallery-img-link span {
|
130 |
+
opacity: 1; }
|
131 |
+
|
132 |
+
.premium-gallery-icon-show a.pa-gallery-video-icon span {
|
133 |
+
opacity: 1; }
|
134 |
+
|
135 |
+
.premium-img-gallery-filter ul.premium-gallery-cats-container,
|
136 |
+
.premium-blog-filter ul.premium-blog-filters-container {
|
137 |
+
text-align: center;
|
138 |
+
margin: 0;
|
139 |
+
padding: 0; }
|
140 |
+
|
141 |
+
.premium-img-gallery-filter .premium-gallery-cats-container li,
|
142 |
+
.premium-blog-filter .premium-blog-filters-container li {
|
143 |
+
list-style: none;
|
144 |
+
-js-display: inline-flex;
|
145 |
+
display: -webkit-inline-box;
|
146 |
+
display: -webkit-inline-flex;
|
147 |
+
display: -moz-inline-box;
|
148 |
+
display: -ms-inline-flexbox;
|
149 |
+
display: inline-flex; }
|
150 |
+
|
151 |
+
.premium-img-gallery.zoomin .pa-gallery-img:hover img {
|
152 |
+
-webkit-transform: scale(1.1);
|
153 |
+
-ms-transform: scale(1.1);
|
154 |
+
transform: scale(1.1); }
|
155 |
+
|
156 |
+
.premium-img-gallery.zoomout .pa-gallery-img:hover img {
|
157 |
+
-webkit-transform: scale(1);
|
158 |
+
-ms-transform: scale(1);
|
159 |
+
transform: scale(1); }
|
160 |
+
|
161 |
+
.premium-img-gallery.scale .pa-gallery-img:hover img {
|
162 |
+
-webkit-transform: scale(1.3) rotate(5deg);
|
163 |
+
-ms-transform: scale(1.3) rotate(5deg);
|
164 |
+
transform: scale(1.3) rotate(5deg); }
|
165 |
+
|
166 |
+
.premium-img-gallery.gray .pa-gallery-img:hover img {
|
167 |
+
-webkit-filter: grayscale(0%);
|
168 |
+
filter: grayscale(0%); }
|
169 |
+
|
170 |
+
.premium-img-gallery.blur .pa-gallery-img:hover img {
|
171 |
+
-webkit-filter: blur(3px);
|
172 |
+
filter: blur(3px); }
|
173 |
+
|
174 |
+
.premium-img-gallery.sepia .pa-gallery-img:hover img {
|
175 |
+
-webkit-filter: sepia(0%);
|
176 |
+
filter: sepia(0%); }
|
177 |
+
|
178 |
+
.premium-img-gallery.trans .pa-gallery-img:hover img {
|
179 |
+
-webkit-transform: translateX(0px) scale(1.1);
|
180 |
+
-ms-transform: translateX(0px) scale(1.1);
|
181 |
+
transform: translateX(0px) scale(1.1); }
|
182 |
+
|
183 |
+
.premium-img-gallery.bright .pa-gallery-img:hover img {
|
184 |
+
-webkit-filter: brightness(1.2);
|
185 |
+
filter: brightness(1.2); }
|
186 |
+
|
187 |
+
.pa-gallery-img .premium-gallery-caption {
|
188 |
+
padding: 10px; }
|
189 |
+
.pa-gallery-img .premium-gallery-caption .premium-gallery-img-name {
|
190 |
+
margin-bottom: 0; }
|
191 |
+
|
192 |
+
.pa-gallery-img.style1 {
|
193 |
+
overflow: hidden; }
|
194 |
+
|
195 |
+
.pa-gallery-img:not(.style2) .pa-gallery-icons-wrapper {
|
196 |
+
position: absolute;
|
197 |
+
top: 0;
|
198 |
+
left: 0;
|
199 |
+
width: 100%;
|
200 |
+
height: 100%;
|
201 |
+
-webkit-transition: all 0.3s ease-in-out;
|
202 |
+
transition: all 0.3s ease-in-out; }
|
203 |
+
|
204 |
+
.pa-gallery-img:not(.style2) .pa-gallery-icons-inner-container {
|
205 |
+
position: absolute;
|
206 |
+
top: 33.33%;
|
207 |
+
width: 100%;
|
208 |
+
text-align: center;
|
209 |
+
-webkit-transform: translateY(-50%);
|
210 |
+
-ms-transform: translateY(-50%);
|
211 |
+
transform: translateY(-50%);
|
212 |
+
z-index: 3; }
|
213 |
+
|
214 |
+
.pa-gallery-img.style1 .premium-gallery-caption {
|
215 |
+
position: absolute;
|
216 |
+
top: auto;
|
217 |
+
right: 0;
|
218 |
+
bottom: -1px;
|
219 |
+
left: 0;
|
220 |
+
width: 100%;
|
221 |
+
-webkit-transition: all 500ms ease 0s;
|
222 |
+
transition: all 500ms ease 0s;
|
223 |
+
-webkit-transform: translate3d(0, 100%, 0);
|
224 |
+
transform: translate3d(0, 100%, 0); }
|
225 |
+
|
226 |
+
.pa-gallery-img.style1:hover .premium-gallery-caption {
|
227 |
+
-webkit-transform: translate3d(0, 0, 0);
|
228 |
+
transform: translate3d(0, 0, 0);
|
229 |
+
bottom: -1px !important; }
|
230 |
+
|
231 |
+
.pa-gallery-img.default .premium-gallery-caption {
|
232 |
+
position: absolute;
|
233 |
+
top: auto;
|
234 |
+
right: 0;
|
235 |
+
left: 0;
|
236 |
+
width: 100%;
|
237 |
+
bottom: 0; }
|
238 |
+
|
239 |
+
.pa-gallery-img.style2 .pa-gallery-icons-caption-container {
|
240 |
+
position: absolute;
|
241 |
+
top: 0;
|
242 |
+
left: 0;
|
243 |
+
width: 100%;
|
244 |
+
height: 100%;
|
245 |
+
opacity: 0;
|
246 |
+
-webkit-backface-visibility: hidden;
|
247 |
+
backface-visibility: hidden;
|
248 |
+
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
|
249 |
+
transition: opacity 0.3s, -webkit-transform 0.3s;
|
250 |
+
transition: transform 0.3s, opacity 0.3s;
|
251 |
+
transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s;
|
252 |
+
z-index: 1;
|
253 |
+
background-color: rgba(108, 191, 226, 0.68);
|
254 |
+
-js-display: flex;
|
255 |
+
display: -webkit-box;
|
256 |
+
display: -webkit-flex;
|
257 |
+
display: -moz-box;
|
258 |
+
display: -ms-flexbox;
|
259 |
+
display: flex;
|
260 |
+
text-align: center;
|
261 |
+
-webkit-box-align: center;
|
262 |
+
-webkit-align-items: center;
|
263 |
+
-moz-box-align: center;
|
264 |
+
-ms-flex-align: center;
|
265 |
+
align-items: center; }
|
266 |
+
|
267 |
+
.pa-gallery-img.style2 .pa-gallery-icons-caption-cell {
|
268 |
+
width: 100%; }
|
269 |
+
|
270 |
+
.pa-gallery-img.style2:hover .pa-gallery-icons-caption-container {
|
271 |
+
opacity: 1;
|
272 |
+
-webkit-transform: translate(15px, 15px);
|
273 |
+
-ms-transform: translate(15px, 15px);
|
274 |
+
transform: translate(15px, 15px); }
|
275 |
+
|
276 |
+
.premium-clearfix {
|
277 |
+
clear: both; }
|
278 |
+
|
279 |
+
/**
|
280 |
+
* Metro Layout
|
281 |
+
*/
|
282 |
+
.premium-img-gallery-metro .premium-gallery-item {
|
283 |
+
overflow: hidden; }
|
284 |
+
|
285 |
+
.premium-img-gallery-metro .pa-gallery-img {
|
286 |
+
height: 100%; }
|
287 |
+
|
288 |
+
.premium-img-gallery-metro .pa-gallery-img-container {
|
289 |
+
height: 100%; }
|
290 |
+
.premium-img-gallery-metro .pa-gallery-img-container img {
|
291 |
+
min-height: 100%;
|
292 |
+
width: 100%;
|
293 |
+
-o-object-fit: fill;
|
294 |
+
object-fit: fill; }
|
295 |
+
|
296 |
+
.premium-img-gallery .premium-gallery-item-hidden {
|
297 |
+
visibility: hidden;
|
298 |
+
width: 0 !important;
|
299 |
+
height: 0 !important;
|
300 |
+
margin: 0 !important;
|
301 |
+
padding: 0 !important; }
|
302 |
+
|
303 |
+
.premium-gallery-load-more {
|
304 |
+
position: relative; }
|
305 |
+
.premium-gallery-load-more .premium-gallery-load-more-btn {
|
306 |
+
-webkit-box-shadow: none;
|
307 |
+
box-shadow: none;
|
308 |
+
text-shadow: none;
|
309 |
+
border: none;
|
310 |
+
outline: none;
|
311 |
+
-webkit-box-align: center;
|
312 |
+
-webkit-align-items: center;
|
313 |
+
-moz-box-align: center;
|
314 |
+
-ms-flex-align: center;
|
315 |
+
align-items: center;
|
316 |
+
vertical-align: bottom;
|
317 |
+
cursor: pointer;
|
318 |
+
line-height: 1;
|
319 |
+
font-style: normal;
|
320 |
+
font-weight: normal;
|
321 |
+
background-image: none;
|
322 |
+
color: #fff;
|
323 |
+
-webkit-transition: all 0.3s ease-in-out;
|
324 |
+
transition: all 0.3s ease-in-out; }
|
325 |
+
|
326 |
+
.premium-gallery-load-more-btn {
|
327 |
+
-js-display: inline-flex;
|
328 |
+
display: -webkit-inline-box;
|
329 |
+
display: -webkit-inline-flex;
|
330 |
+
display: -moz-inline-box;
|
331 |
+
display: -ms-inline-flexbox;
|
332 |
+
display: inline-flex;
|
333 |
+
-webkit-box-align: center;
|
334 |
+
-webkit-align-items: center;
|
335 |
+
-moz-box-align: center;
|
336 |
+
-ms-flex-align: center;
|
337 |
+
align-items: center; }
|
338 |
+
|
339 |
+
.premium-gallery-load-more-btn div {
|
340 |
+
margin-left: 3px; }
|
341 |
+
|
342 |
+
.premium-gallery-load-more-btn .premium-loader {
|
343 |
+
display: inline-block;
|
344 |
+
width: 20px;
|
345 |
+
height: 20px; }
|
346 |
+
|
347 |
+
.pa-gallery-img .pa-gallery-lightbox-wrap {
|
348 |
+
display: inline-block; }
|
349 |
+
|
350 |
+
.premium-img-gallery-no-lightbox .premium-gallery-video-item .pa-gallery-img,
|
351 |
+
.pa-gallery-img .pa-gallery-video-icon {
|
352 |
+
cursor: pointer; }
|
353 |
+
|
354 |
+
.pa-gallery-img-container iframe {
|
355 |
+
position: absolute;
|
356 |
+
visibility: hidden;
|
357 |
+
top: 0;
|
358 |
+
left: 0;
|
359 |
+
max-width: 100%;
|
360 |
+
width: 100%;
|
361 |
+
height: 100%;
|
362 |
+
margin: 0;
|
363 |
+
line-height: 1;
|
364 |
+
border: none; }
|
365 |
+
|
366 |
+
.pa-gallery-img-container video {
|
367 |
+
position: absolute;
|
368 |
+
visibility: hidden;
|
369 |
+
top: 0;
|
370 |
+
left: 0;
|
371 |
+
max-width: 100%;
|
372 |
+
width: 100%;
|
373 |
+
height: 100%;
|
374 |
+
margin: 0;
|
375 |
+
line-height: 1;
|
376 |
+
border: none;
|
377 |
+
-o-object-fit: contain;
|
378 |
+
object-fit: contain; }
|
379 |
+
|
380 |
+
.pa-gallery-icons-inner-container svg,
|
381 |
+
.pa-gallery-icons-caption-cell svg {
|
382 |
+
width: 14px;
|
383 |
+
height: 14px; }
|
384 |
+
|
385 |
+
.premium-gallery-gradient-layer {
|
386 |
+
position: absolute;
|
387 |
+
bottom: 40px;
|
388 |
+
width: 100%;
|
389 |
+
height: 20px;
|
390 |
+
background: -webkit-gradient(linear, left bottom, left top, from(#17181f), to(rgba(255, 255, 255, 0)));
|
391 |
+
background: -webkit-linear-gradient(bottom, #17181f 0%, rgba(255, 255, 255, 0) 100%);
|
392 |
+
background: linear-gradient(to top, #17181f 0%, rgba(255, 255, 255, 0) 100%); }
|
assets/frontend/js/lottie.js
CHANGED
@@ -12961,9 +12961,9 @@
|
|
12961 |
Â
if (!this.renderConfig.viewBoxOnly) {
|
12962 |
Â
this.svgElement.setAttribute('width', animData.w);
|
12963 |
Â
this.svgElement.setAttribute('height', animData.h);
|
12964 |
-
this.svgElement.style.width = '100%';
|
12965 |
-
this.svgElement.style.height = '100%';
|
12966 |
-
this.svgElement.style.transform = 'translate3d(0,0,0)';
|
12967 |
Â
this.svgElement.style.contentVisibility = this.renderConfig.contentVisibility;
|
12968 |
Â
}
|
12969 |
Â
|
12961 |
Â
if (!this.renderConfig.viewBoxOnly) {
|
12962 |
Â
this.svgElement.setAttribute('width', animData.w);
|
12963 |
Â
this.svgElement.setAttribute('height', animData.h);
|
12964 |
+
// this.svgElement.style.width = '100%';
|
12965 |
+
// this.svgElement.style.height = '100%';
|
12966 |
+
// this.svgElement.style.transform = 'translate3d(0,0,0)';
|
12967 |
Â
this.svgElement.style.contentVisibility = this.renderConfig.contentVisibility;
|
12968 |
Â
}
|
12969 |
Â
|
assets/frontend/js/premium-addons.js
CHANGED
@@ -1,2707 +1,2711 @@
|
|
1 |
-
(function ($) {
|
2 |
-
|
3 |
-
$(window).on('elementor/frontend/init', function () {
|
4 |
-
|
5 |
-
var ModuleHandler = elementorModules.frontend.handlers.Base;
|
6 |
-
|
7 |
-
/****** Premium Progress Bar Handler ******/
|
8 |
-
var PremiumProgressBarWidgetHandler = function ($scope, trigger) {
|
9 |
-
|
10 |
-
var $progressbarElem = $scope.find(".premium-progressbar-container"),
|
11 |
-
settings = $progressbarElem.data("settings"),
|
12 |
-
length = settings.progress_length,
|
13 |
-
speed = settings.speed,
|
14 |
-
type = settings.type;
|
15 |
-
|
16 |
-
|
17 |
-
if ("line" === type) {
|
18 |
-
|
19 |
-
var $progressbar = $progressbarElem.find(".premium-progressbar-bar");
|
20 |
-
|
21 |
-
if (settings.gradient)
|
22 |
-
$progressbar.css("background", "linear-gradient(-45deg, " + settings.gradient + ")");
|
23 |
-
|
24 |
-
$progressbar.animate({
|
25 |
-
width: length + "%"
|
26 |
-
}, speed);
|
27 |
-
|
28 |
-
} else if ("circle" === type || "half-circle" === type) {
|
29 |
-
if (length > 100)
|
30 |
-
length = 100;
|
31 |
-
|
32 |
-
var degreesFactor = 1.8 * (elementorFrontend.config.is_rtl ? -1 : 1);
|
33 |
-
|
34 |
-
$progressbarElem.find(".premium-progressbar-hf-circle-progress").css({
|
35 |
-
transform: "rotate(" + length * degreesFactor + "deg)",
|
36 |
-
});
|
37 |
-
|
38 |
-
$progressbarElem.prop({
|
39 |
-
'counter': 0
|
40 |
-
}).animate({
|
41 |
-
counter: length
|
42 |
-
}, {
|
43 |
-
duration: speed,
|
44 |
-
easing: 'linear',
|
45 |
-
step: function (counter) {
|
46 |
-
var rotate = (counter * 3.6);
|
47 |
-
|
48 |
-
$progressbarElem.find(".premium-progressbar-right-label").text(Math.ceil(counter) + "%");
|
49 |
-
|
50 |
-
$progressbarElem.find(".premium-progressbar-circle-left").css('transform', "rotate(" + rotate + "deg)");
|
51 |
-
|
52 |
-
|
53 |
-
if ('circle' === type && rotate > 180) {
|
54 |
-
|
55 |
-
$progressbarElem.find(".premium-progressbar-circle").css({
|
56 |
-
'-webkit-clip-path': 'inset(0)',
|
57 |
-
'clip-path': 'inset(0)',
|
58 |
-
});
|
59 |
-
|
60 |
-
$progressbarElem.find(".premium-progressbar-circle-right").css('visibility', 'visible');
|
61 |
-
}
|
62 |
-
}
|
63 |
-
});
|
64 |
-
|
65 |
-
} else {
|
66 |
-
|
67 |
-
var $progressbar = $progressbarElem.find(".premium-progressbar-bar-wrap"),
|
68 |
-
width = $progressbarElem.outerWidth(),
|
69 |
-
dotSize = settings.dot || 25,
|
70 |
-
dotSpacing = settings.spacing || 10,
|
71 |
-
numberOfCircles = Math.ceil(width / (dotSize + dotSpacing)),
|
72 |
-
circlesToFill = numberOfCircles * (length / 100),
|
73 |
-
numberOfTotalFill = Math.floor(circlesToFill),
|
74 |
-
fillPercent = 100 * (circlesToFill - numberOfTotalFill);
|
75 |
-
|
76 |
-
$progressbar.attr('data-circles', numberOfCircles);
|
77 |
-
$progressbar.attr('data-total-fill', numberOfTotalFill);
|
78 |
-
$progressbar.attr('data-partial-fill', fillPercent);
|
79 |
-
|
80 |
-
var className = "progress-segment";
|
81 |
-
for (var i = 0; i < numberOfCircles; i++) {
|
82 |
-
className = "progress-segment";
|
83 |
-
var innerHTML = '';
|
84 |
-
|
85 |
-
if (i < numberOfTotalFill) {
|
86 |
-
innerHTML = "<div class='segment-inner'></div>";
|
87 |
-
} else if (i === numberOfTotalFill) {
|
88 |
-
|
89 |
-
innerHTML = "<div class='segment-inner'></div>";
|
90 |
-
}
|
91 |
-
|
92 |
-
$progressbar.append("<div class='" + className + "'>" + innerHTML + "</div>");
|
93 |
-
|
94 |
-
}
|
95 |
-
|
96 |
-
if ("frontend" !== trigger) {
|
97 |
-
PremiumProgressDotsHandler($scope);
|
98 |
-
}
|
99 |
-
|
100 |
-
}
|
101 |
-
|
102 |
-
};
|
103 |
-
|
104 |
-
var PremiumProgressDotsHandler = function ($scope) {
|
105 |
-
|
106 |
-
var $progressbarElem = $scope.find(".premium-progressbar-container"),
|
107 |
-
settings = $progressbarElem.data("settings"),
|
108 |
-
$progressbar = $scope.find(".premium-progressbar-bar-wrap"),
|
109 |
-
data = $progressbar.data(),
|
110 |
-
speed = settings.speed,
|
111 |
-
increment = 0;
|
112 |
-
|
113 |
-
var numberOfTotalFill = data.totalFill,
|
114 |
-
numberOfCircles = data.circles,
|
115 |
-
fillPercent = data.partialFill;
|
116 |
-
|
117 |
-
dotIncrement(increment);
|
118 |
-
|
119 |
-
function dotIncrement(inc) {
|
120 |
-
|
121 |
-
var $dot = $progressbar.find(".progress-segment").eq(inc),
|
122 |
-
dotWidth = 100;
|
123 |
-
|
124 |
-
if (inc === numberOfTotalFill)
|
125 |
-
dotWidth = fillPercent
|
126 |
-
|
127 |
-
$dot.find(".segment-inner").animate({
|
128 |
-
width: dotWidth + '%'
|
129 |
-
}, speed / numberOfCircles, function () {
|
130 |
-
increment++;
|
131 |
-
if (increment <= numberOfTotalFill) {
|
132 |
-
dotIncrement(increment);
|
133 |
-
}
|
134 |
-
|
135 |
-
});
|
136 |
-
}
|
137 |
-
};
|
138 |
-
|
139 |
-
/****** Premium Progress Bar Scroll Handler *****/
|
140 |
-
var PremiumProgressBarScrollWidgetHandler = function ($scope, $) {
|
141 |
-
|
142 |
-
var $progressbarElem = $scope.find(".premium-progressbar-container"),
|
143 |
-
settings = $progressbarElem.data("settings"),
|
144 |
-
type = settings.type;
|
145 |
-
|
146 |
-
if ("dots" === type) {
|
147 |
-
PremiumProgressBarWidgetHandler($scope, "frontend");
|
148 |
-
}
|
149 |
-
|
150 |
-
elementorFrontend.waypoint($scope, function () {
|
151 |
-
if ("dots" !== type) {
|
152 |
-
PremiumProgressBarWidgetHandler($(this));
|
153 |
-
} else {
|
154 |
-
PremiumProgressDotsHandler($(this));
|
155 |
-
}
|
156 |
-
|
157 |
-
});
|
158 |
-
};
|
159 |
-
|
160 |
-
/****** Premium Video Box Handler ******/
|
161 |
-
var PremiumVideoBoxWidgetHandler = function ($scope, $) {
|
162 |
-
|
163 |
-
var $videoBoxElement = $scope.find(".premium-video-box-container"),
|
164 |
-
$videoListElement = $scope.find(".premium-video-box-playlist-container"),
|
165 |
-
$videoContainer = $videoBoxElement.find(".premium-video-box-video-container"), //should be clicked
|
166 |
-
$videoInnerContainer = $videoBoxElement.find('.premium-video-box-inner-wrap'),
|
167 |
-
$videoImageContainer = $videoInnerContainer.find('.premium-video-box-image-container'),
|
168 |
-
type = $videoBoxElement.data("type"),
|
169 |
-
thumbnail = $videoBoxElement.data("thumbnail"),
|
170 |
-
sticky = $videoBoxElement.data('sticky'),
|
171 |
-
stickyOnPlay = $videoBoxElement.data('sticky-play'),
|
172 |
-
hoverEffect = $videoBoxElement.data('hover'),
|
173 |
-
$lighboxContainer = $videoListElement.length ? $videoListElement : $videoBoxElement,
|
174 |
-
lightBox = $lighboxContainer.data('lightbox') ? $lighboxContainer.data('lightbox') : false,
|
175 |
-
video, vidSrc;
|
176 |
-
|
177 |
-
if (lightBox) {
|
178 |
-
|
179 |
-
if ('prettyphoto' === lightBox.type) {
|
180 |
-
$lighboxContainer.find(".premium-vid-lightbox-container[data-rel^='prettyPhoto']").prettyPhoto(getPrettyPhotoSettings(lightBox.theme));
|
181 |
-
}
|
182 |
-
|
183 |
-
$lighboxContainer.find('.premium-video-box-image-container, .premium-video-box-play-icon-container').on('click', function (e) {
|
184 |
-
triggerLightbox($lighboxContainer, lightBox.type);
|
185 |
-
});
|
186 |
-
|
187 |
-
} else {
|
188 |
-
// Youtube playlist option.
|
189 |
-
if ($videoListElement.length) {
|
190 |
-
|
191 |
-
//Make sure that video were pulled from the API.
|
192 |
-
if (!$videoContainer.length)
|
193 |
-
return;
|
194 |
-
|
195 |
-
$videoContainer.each(function (index, item) {
|
196 |
-
|
197 |
-
var vidSrc,
|
198 |
-
$videoContainer = $(item),
|
199 |
-
$videoBoxElement = $videoContainer.closest(".premium-video-box-container"),
|
200 |
-
$trigger = $videoContainer.closest(".premium-video-box-trigger");
|
201 |
-
|
202 |
-
vidSrc = $videoContainer.data("src");
|
203 |
-
vidSrc = vidSrc + "&autoplay=1";
|
204 |
-
|
205 |
-
$trigger.on("click", function () {
|
206 |
-
|
207 |
-
var $iframe = $("<iframe/>");
|
208 |
-
|
209 |
-
$iframe.attr({
|
210 |
-
"src": vidSrc,
|
211 |
-
"frameborder": "0",
|
212 |
-
"allowfullscreen": "1",
|
213 |
-
"allow": "autoplay;encrypted-media;"
|
214 |
-
});
|
215 |
-
$videoContainer.css("background", "#000");
|
216 |
-
$videoContainer.html($iframe);
|
217 |
-
|
218 |
-
$videoBoxElement.find(
|
219 |
-
".premium-video-box-image-container, .premium-video-box-play-icon-container"
|
220 |
-
).remove();
|
221 |
-
|
222 |
-
});
|
223 |
-
|
224 |
-
});
|
225 |
-
|
226 |
-
return;
|
227 |
-
}
|
228 |
-
|
229 |
-
if ("self" === type) {
|
230 |
-
|
231 |
-
video = $videoContainer.find("video");
|
232 |
-
vidSrc = video.attr("src");
|
233 |
-
|
234 |
-
if ($videoBoxElement.data("play-viewport")) {
|
235 |
-
elementorFrontend.waypoint($videoBoxElement, function () {
|
236 |
-
playVideo();
|
237 |
-
}, {
|
238 |
-
offset: 0,
|
239 |
-
triggerOnce: false
|
240 |
-
});
|
241 |
-
|
242 |
-
if ($videoBoxElement.data("play-reset")) {
|
243 |
-
elementorFrontend.waypoint($videoBoxElement, function (direction) {
|
244 |
-
|
245 |
-
if ('up' === direction)
|
246 |
-
restartVideo();
|
247 |
-
}, {
|
248 |
-
offset: "100%",
|
249 |
-
triggerOnce: false
|
250 |
-
});
|
251 |
-
}
|
252 |
-
}
|
253 |
-
|
254 |
-
} else {
|
255 |
-
|
256 |
-
vidSrc = $videoContainer.data("src");
|
257 |
-
|
258 |
-
if (!thumbnail || -1 !== vidSrc.indexOf("autoplay=1")) {
|
259 |
-
|
260 |
-
//Check if Autoplay on viewport option is enabled
|
261 |
-
if ($videoBoxElement.data("play-viewport")) {
|
262 |
-
elementorFrontend.waypoint($videoBoxElement, function () {
|
263 |
-
playVideo();
|
264 |
-
}, {
|
265 |
-
offset: 0
|
266 |
-
});
|
267 |
-
} else {
|
268 |
-
playVideo();
|
269 |
-
}
|
270 |
-
|
271 |
-
} else {
|
272 |
-
vidSrc = vidSrc + "&autoplay=1";
|
273 |
-
}
|
274 |
-
|
275 |
-
}
|
276 |
-
|
277 |
-
$videoBoxElement.on("click", function () {
|
278 |
-
playVideo();
|
279 |
-
});
|
280 |
-
|
281 |
-
if ("yes" !== sticky || "yes" === stickyOnPlay)
|
282 |
-
return;
|
283 |
-
|
284 |
-
stickyOption();
|
285 |
-
}
|
286 |
-
|
287 |
-
function playVideo() {
|
288 |
-
|
289 |
-
if ($videoBoxElement.hasClass("playing")) return;
|
290 |
-
|
291 |
-
$videoBoxElement.addClass("playing");
|
292 |
-
|
293 |
-
if (stickyOnPlay === 'yes')
|
294 |
-
stickyOption();
|
295 |
-
|
296 |
-
if ("self" === type) {
|
297 |
-
|
298 |
-
$(video).get(0).play();
|
299 |
-
|
300 |
-
$videoContainer.css({
|
301 |
-
opacity: "1",
|
302 |
-
visibility: "visible"
|
303 |
-
});
|
304 |
-
|
305 |
-
} else {
|
306 |
-
|
307 |
-
var $iframe = $("<iframe/>");
|
308 |
-
|
309 |
-
$iframe.attr({
|
310 |
-
"src": vidSrc,
|
311 |
-
"frameborder": "0",
|
312 |
-
"allowfullscreen": "1",
|
313 |
-
"allow": "autoplay;encrypted-media;"
|
314 |
-
});
|
315 |
-
$videoContainer.css("background", "#000");
|
316 |
-
$videoContainer.html($iframe);
|
317 |
-
}
|
318 |
-
|
319 |
-
$videoBoxElement.find(
|
320 |
-
".premium-video-box-image-container, .premium-video-box-play-icon-container, .premium-video-box-description-container"
|
321 |
-
).remove();
|
322 |
-
|
323 |
-
if ("vimeo" === type)
|
324 |
-
$videoBoxElement.find(".premium-video-box-vimeo-wrap").remove();
|
325 |
-
}
|
326 |
-
|
327 |
-
function restartVideo() {
|
328 |
-
|
329 |
-
$videoBoxElement.removeClass("playing");
|
330 |
-
|
331 |
-
$(video).get(0).pause();
|
332 |
-
$(video).get(0).currentTime = 0;
|
333 |
-
|
334 |
-
}
|
335 |
-
|
336 |
-
function triggerLightbox($container, type) {
|
337 |
-
if ('elementor' === type) {
|
338 |
-
$container.find('.premium-video-box-video-container').click();
|
339 |
-
} else {
|
340 |
-
$container.find(".premium-vid-lightbox-container[data-rel^='prettyPhoto']").click();
|
341 |
-
}
|
342 |
-
}
|
343 |
-
|
344 |
-
function stickyOption() {
|
345 |
-
|
346 |
-
var stickyDesktop = $videoBoxElement.data('hide-desktop'),
|
347 |
-
stickyTablet = $videoBoxElement.data('hide-tablet'),
|
348 |
-
stickyMobile = $videoBoxElement.data('hide-mobile'),
|
349 |
-
stickyMargin = $videoBoxElement.data('sticky-margin');
|
350 |
-
|
351 |
-
$videoBoxElement.off('click').on('click', function (e) {
|
352 |
-
// if ('yes' === sticky) {
|
353 |
-
var stickyTarget = e.target.className;
|
354 |
-
if ((stickyTarget.toString().indexOf('premium-video-box-sticky-close') >= 0) || (stickyTarget.toString().indexOf('premium-video-box-sticky-close') >= 0)) {
|
355 |
-
return false;
|
356 |
-
}
|
357 |
-
// }
|
358 |
-
playVideo();
|
359 |
-
|
360 |
-
});
|
361 |
-
|
362 |
-
//Make sure Elementor Waypoint is defined
|
363 |
-
if (typeof elementorFrontend.waypoint !== 'undefined') {
|
364 |
-
|
365 |
-
var stickyWaypoint = elementorFrontend.waypoint(
|
366 |
-
$videoBoxElement,
|
367 |
-
function (direction) {
|
368 |
-
if ('down' === direction) {
|
369 |
-
|
370 |
-
$videoBoxElement.removeClass('premium-video-box-sticky-hide').addClass('premium-video-box-sticky-apply premium-video-box-filter-sticky');
|
371 |
-
|
372 |
-
//Fix conflict with Elementor motion effects
|
373 |
-
if ($scope.hasClass("elementor-motion-effects-parent")) {
|
374 |
-
$scope.removeClass("elementor-motion-effects-perspective").find(".elementor-widget-container").addClass("premium-video-box-transform");
|
375 |
-
}
|
376 |
-
|
377 |
-
if ($videoBoxElement.data("mask")) {
|
378 |
-
//Fix Sticky position issue when drop-shadow is applied
|
379 |
-
$scope.find(".premium-video-box-mask-filter").removeClass("premium-video-box-mask-filter");
|
380 |
-
|
381 |
-
$videoBoxElement.find(':first-child').removeClass('premium-video-box-mask-media');
|
382 |
-
|
383 |
-
$videoImageContainer.removeClass(hoverEffect).removeClass('premium-video-box-mask-media').css({
|
384 |
-
'transition': 'width 0.2s, height 0.2s',
|
385 |
-
'-webkit-transition': 'width 0.2s, height 0.2s'
|
386 |
-
});
|
387 |
-
}
|
388 |
-
|
389 |
-
$(document).trigger('premium_after_sticky_applied', [$scope]);
|
390 |
-
|
391 |
-
// Entrance Animation Option
|
392 |
-
if ($videoInnerContainer.data("video-animation") && " " != $videoInnerContainer.data("video-animation")) {
|
393 |
-
$videoInnerContainer.css("opacity", "0");
|
394 |
-
var animationDelay = $videoInnerContainer.data('delay-animation');
|
395 |
-
setTimeout(function () {
|
396 |
-
|
397 |
-
$videoInnerContainer.css("opacity", "1").addClass("animated " + $videoInnerContainer.data("video-animation"));
|
398 |
-
|
399 |
-
}, animationDelay * 1000);
|
400 |
-
}
|
401 |
-
|
402 |
-
} else {
|
403 |
-
|
404 |
-
$videoBoxElement.removeClass('premium-video-box-sticky-apply premium-video-box-filter-sticky').addClass('premium-video-box-sticky-hide');
|
405 |
-
|
406 |
-
//Fix conflict with Elementor motion effects
|
407 |
-
if ($scope.hasClass("elementor-motion-effects-parent")) {
|
408 |
-
$scope.addClass("elementor-motion-effects-perspective").find(".elementor-widget-container").removeClass("premium-video-box-transform");
|
409 |
-
}
|
410 |
-
|
411 |
-
if ($videoBoxElement.data("mask")) {
|
412 |
-
//Fix Sticky position issue when drop-shadow is applied
|
413 |
-
$videoBoxElement.parent().addClass("premium-video-box-mask-filter");
|
414 |
-
|
415 |
-
$videoBoxElement.find(':first-child').eq(0).addClass('premium-video-box-mask-media');
|
416 |
-
$videoImageContainer.addClass('premium-video-box-mask-media');
|
417 |
-
}
|
418 |
-
|
419 |
-
$videoImageContainer.addClass(hoverEffect).css({
|
420 |
-
'transition': 'all 0.2s',
|
421 |
-
'-webkit-transition': 'all 0.2s'
|
422 |
-
});
|
423 |
-
|
424 |
-
$videoInnerContainer.removeClass("animated " + $videoInnerContainer.data("video-animation"));
|
425 |
-
}
|
426 |
-
}, {
|
427 |
-
offset: 0 + '%',
|
428 |
-
triggerOnce: false
|
429 |
-
}
|
430 |
-
);
|
431 |
-
}
|
432 |
-
|
433 |
-
var closeBtn = $scope.find('.premium-video-box-sticky-close');
|
434 |
-
|
435 |
-
closeBtn.off('click.closetrigger').on('click.closetrigger', function (e) {
|
436 |
-
e.stopPropagation();
|
437 |
-
stickyWaypoint[0].disable();
|
438 |
-
|
439 |
-
$videoBoxElement.removeClass('premium-video-box-sticky-apply premium-video-box-sticky-hide');
|
440 |
-
|
441 |
-
//Fix conflict with Elementor motion effects
|
442 |
-
if ($scope.hasClass("elementor-motion-effects-parent")) {
|
443 |
-
$scope.addClass("elementor-motion-effects-perspective").find(".elementor-widget-container").removeClass("premium-video-box-transform");
|
444 |
-
}
|
445 |
-
|
446 |
-
if ($videoBoxElement.data("mask")) {
|
447 |
-
//Fix Sticky position issue when drop-shadow is applied
|
448 |
-
$videoBoxElement.parent().addClass("premium-video-box-mask-filter");
|
449 |
-
|
450 |
-
//Necessary classes for mask shape option
|
451 |
-
$videoBoxElement.find(':first-child').eq(0).addClass('premium-video-box-mask-media');
|
452 |
-
$videoImageContainer.addClass('premium-video-box-mask-media');
|
453 |
-
}
|
454 |
-
|
455 |
-
|
456 |
-
});
|
457 |
-
|
458 |
-
checkResize(stickyWaypoint);
|
459 |
-
|
460 |
-
checkScroll();
|
461 |
-
|
462 |
-
window.addEventListener("scroll", checkScroll);
|
463 |
-
|
464 |
-
$(window).resize(function (e) {
|
465 |
-
checkResize(stickyWaypoint);
|
466 |
-
});
|
467 |
-
|
468 |
-
function checkResize(stickyWaypoint) {
|
469 |
-
var currentDeviceMode = elementorFrontend.getCurrentDeviceMode();
|
470 |
-
|
471 |
-
if ('' !== stickyDesktop && currentDeviceMode == stickyDesktop) {
|
472 |
-
disableSticky(stickyWaypoint);
|
473 |
-
} else if ('' !== stickyTablet && currentDeviceMode == stickyTablet) {
|
474 |
-
disableSticky(stickyWaypoint);
|
475 |
-
} else if ('' !== stickyMobile && currentDeviceMode == stickyMobile) {
|
476 |
-
disableSticky(stickyWaypoint);
|
477 |
-
} else {
|
478 |
-
stickyWaypoint[0].enable();
|
479 |
-
}
|
480 |
-
}
|
481 |
-
|
482 |
-
function disableSticky(stickyWaypoint) {
|
483 |
-
stickyWaypoint[0].disable();
|
484 |
-
$videoBoxElement.removeClass('premium-video-box-sticky-apply premium-video-box-sticky-hide');
|
485 |
-
}
|
486 |
-
|
487 |
-
function checkScroll() {
|
488 |
-
if ($videoBoxElement.hasClass('premium-video-box-sticky-apply')) {
|
489 |
-
$videoInnerContainer.draggable({
|
490 |
-
start: function () {
|
491 |
-
$(this).css({
|
492 |
-
transform: "none",
|
493 |
-
top: $(this).offset().top + "px",
|
494 |
-
left: $(this).offset().left + "px"
|
495 |
-
});
|
496 |
-
},
|
497 |
-
containment: 'window'
|
498 |
-
});
|
499 |
-
}
|
500 |
-
}
|
501 |
-
|
502 |
-
$(document).on('premium_after_sticky_applied', function (e, $scope) {
|
503 |
-
var infobar = $scope.find('.premium-video-box-sticky-infobar');
|
504 |
-
|
505 |
-
if (0 !== infobar.length) {
|
506 |
-
var infobarHeight = infobar.outerHeight();
|
507 |
-
|
508 |
-
if ($scope.hasClass('premium-video-sticky-center-left') || $scope.hasClass('premium-video-sticky-center-right')) {
|
509 |
-
infobarHeight = Math.ceil(infobarHeight / 2);
|
510 |
-
$videoInnerContainer.css('top', 'calc( 50% - ' + infobarHeight + 'px )');
|
511 |
-
}
|
512 |
-
|
513 |
-
if ($scope.hasClass('premium-video-sticky-bottom-left') || $scope.hasClass('premium-video-sticky-bottom-right')) {
|
514 |
-
if ('' !== stickyMargin) {
|
515 |
-
infobarHeight = Math.ceil(infobarHeight);
|
516 |
-
var stickBottom = infobarHeight + stickyMargin;
|
517 |
-
$videoInnerContainer.css('bottom', stickBottom);
|
518 |
-
}
|
519 |
-
}
|
520 |
-
}
|
521 |
-
});
|
522 |
-
|
523 |
-
}
|
524 |
-
|
525 |
-
function getPrettyPhotoSettings(theme) {
|
526 |
-
return {
|
527 |
-
theme: theme,
|
528 |
-
hook: "data-rel",
|
529 |
-
opacity: 0.7,
|
530 |
-
show_title: false,
|
531 |
-
deeplinking: false,
|
532 |
-
overlay_gallery: true,
|
533 |
-
custom_markup: "",
|
534 |
-
default_width: 900,
|
535 |
-
default_height: 506,
|
536 |
-
social_tools: ""
|
537 |
-
};
|
538 |
-
}
|
539 |
-
};
|
540 |
-
|
541 |
-
/****** Premium Media Grid Handler ******/
|
542 |
-
var PremiumGridWidgetHandler = ModuleHandler.extend({
|
543 |
-
|
544 |
-
settings: {},
|
545 |
-
|
546 |
-
getDefaultSettings: function () {
|
547 |
-
return {
|
548 |
-
selectors: {
|
549 |
-
galleryElement: '.premium-gallery-container',
|
550 |
-
filters: '.premium-gallery-cats-container li',
|
551 |
-
gradientLayer: '.premium-gallery-gradient-layer',
|
552 |
-
loadMore: '.premium-gallery-load-more',
|
553 |
-
loadMoreDiv: '.premium-gallery-load-more div',
|
554 |
-
vidWrap: '.premium-gallery-video-wrap',
|
555 |
-
}
|
556 |
-
}
|
557 |
-
},
|
558 |
-
|
559 |
-
getDefaultElements: function () {
|
560 |
-
|
561 |
-
var selectors = this.getSettings('selectors'),
|
562 |
-
elements = {
|
563 |
-
$galleryElement: this.$element.find(selectors.galleryElement),
|
564 |
-
$filters: this.$element.find(selectors.filters),
|
565 |
-
$gradientLayer: this.$element.find(selectors.gradientLayer),
|
566 |
-
$vidWrap: this.$element.find(selectors.vidWrap)
|
567 |
-
};
|
568 |
-
|
569 |
-
elements.$loadMore = elements.$galleryElement.parent().find(selectors.loadMore)
|
570 |
-
elements.$loadMoreDiv = elements.$galleryElement.parent().find(selectors.loadMoreDiv)
|
571 |
-
|
572 |
-
return elements;
|
573 |
-
},
|
574 |
-
|
575 |
-
bindEvents: function () {
|
576 |
-
this.getGlobalSettings();
|
577 |
-
this.run();
|
578 |
-
},
|
579 |
-
|
580 |
-
getGlobalSettings: function () {
|
581 |
-
var $galleryElement = this.elements.$galleryElement,
|
582 |
-
settings = $galleryElement.data('settings');
|
583 |
-
|
584 |
-
this.settings = {
|
585 |
-
layout: settings.img_size,
|
586 |
-
loadMore: settings.load_more,
|
587 |
-
columnWidth: null,
|
588 |
-
filter: null,
|
589 |
-
isFilterClicked: false,
|
590 |
-
minimum: settings.minimum,
|
591 |
-
imageToShow: settings.click_images,
|
592 |
-
counter: settings.minimum,
|
593 |
-
ltrMode: settings.ltr_mode,
|
594 |
-
shuffle: settings.shuffle,
|
595 |
-
active_cat: settings.active_cat,
|
596 |
-
theme: settings.theme,
|
597 |
-
overlay: settings.overlay,
|
598 |
-
sort_by: settings.sort_by,
|
599 |
-
light_box: settings.light_box,
|
600 |
-
flag: settings.flag,
|
601 |
-
lightbox_type: settings.lightbox_type
|
602 |
-
}
|
603 |
-
},
|
604 |
-
|
605 |
-
updateCounter: function () {
|
606 |
-
|
607 |
-
if (this.settings.isFilterClicked) {
|
608 |
-
|
609 |
-
this.settings.counter = this.settings.minimum;
|
610 |
-
|
611 |
-
this.settings.isFilterClicked = false;
|
612 |
-
|
613 |
-
} else {
|
614 |
-
this.settings.counter = this.settings.counter;
|
615 |
-
}
|
616 |
-
|
617 |
-
this.settings.counter = this.settings.counter + this.settings.imageToShow;
|
618 |
-
},
|
619 |
-
|
620 |
-
updateGrid: function (gradHeight, $isotopeGallery, $loadMoreDiv) {
|
621 |
-
$.ajax({
|
622 |
-
url: this.appendItems(this.settings.counter, gradHeight, $isotopeGallery),
|
623 |
-
beforeSend: function () {
|
624 |
-
$loadMoreDiv.removeClass("premium-gallery-item-hidden");
|
625 |
-
},
|
626 |
-
success: function () {
|
627 |
-
$loadMoreDiv.addClass("premium-gallery-item-hidden");
|
628 |
-
}
|
629 |
-
});
|
630 |
-
},
|
631 |
-
|
632 |
-
loadMore: function (gradHeight, $isotopeGallery) {
|
633 |
-
|
634 |
-
var $galleryElement = this.elements.$galleryElement,
|
635 |
-
$loadMoreDiv = this.elements.$loadMoreDiv,
|
636 |
-
$loadMore = this.elements.$loadMore,
|
637 |
-
_this = this;
|
638 |
-
|
639 |
-
$loadMoreDiv.addClass("premium-gallery-item-hidden");
|
640 |
-
|
641 |
-
if ($galleryElement.find(".premium-gallery-item").length > this.settings.minimum) {
|
642 |
-
|
643 |
-
$loadMore.removeClass("premium-gallery-item-hidden");
|
644 |
-
|
645 |
-
$galleryElement.parent().on("click", ".premium-gallery-load-less", function () {
|
646 |
-
_this.settings.counter = _this.settings.counter - _this.settings.imageToShow;
|
647 |
-
});
|
648 |
-
|
649 |
-
$galleryElement.parent().on("click", ".premium-gallery-load-more-btn:not(.premium-gallery-load-less)", function () {
|
650 |
-
_this.updateCounter();
|
651 |
-
_this.updateGrid(gradHeight, $isotopeGallery, $loadMoreDiv);
|
652 |
-
});
|
653 |
-
|
654 |
-
}
|
655 |
-
|
656 |
-
},
|
657 |
-
|
658 |
-
getItemsToHide: function (instance, imagesToShow) {
|
659 |
-
var items = instance.filteredItems.slice(imagesToShow, instance
|
660 |
-
.filteredItems.length).map(function (item) {
|
661 |
-
return item.element;
|
662 |
-
});
|
663 |
-
|
664 |
-
return items;
|
665 |
-
},
|
666 |
-
|
667 |
-
appendItems: function (imagesToShow, gradHeight, $isotopeGallery) {
|
668 |
-
|
669 |
-
var $galleryElement = this.elements.$galleryElement,
|
670 |
-
$gradientLayer = this.elements.$gradientLayer,
|
671 |
-
instance = $galleryElement.data("isotope"),
|
672 |
-
itemsToHide = this.getItemsToHide(instance, imagesToShow);
|
673 |
-
|
674 |
-
$gradientLayer.outerHeight(gradHeight);
|
675 |
-
|
676 |
-
$galleryElement.find(".premium-gallery-item-hidden").removeClass("premium-gallery-item-hidden");
|
677 |
-
|
678 |
-
$galleryElement.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden");
|
679 |
-
|
680 |
-
$(itemsToHide).addClass("premium-gallery-item-hidden");
|
681 |
-
|
682 |
-
$isotopeGallery.isotope("layout");
|
683 |
-
|
684 |
-
if (0 == itemsToHide) {
|
685 |
-
|
686 |
-
$gradientLayer.addClass("premium-gallery-item-hidden");
|
687 |
-
|
688 |
-
$galleryElement.parent().find(".premium-gallery-load-more").addClass("premium-gallery-item-hidden");
|
689 |
-
}
|
690 |
-
},
|
691 |
-
|
692 |
-
triggerFilerTabs: function (url) {
|
693 |
-
var filterIndex = url.searchParams.get(this.settings.flag),
|
694 |
-
$filters = this.elements.$filters;
|
695 |
-
|
696 |
-
if (filterIndex) {
|
697 |
-
|
698 |
-
var $targetFilter = $filters.eq(filterIndex).find("a");
|
699 |
-
|
700 |
-
$targetFilter.trigger('click');
|
701 |
-
|
702 |
-
}
|
703 |
-
},
|
704 |
-
|
705 |
-
onReady: function ($isotopeGallery) {
|
706 |
-
var _this = this;
|
707 |
-
|
708 |
-
$isotopeGallery.isotope("layout");
|
709 |
-
|
710 |
-
$isotopeGallery.isotope({
|
711 |
-
|
712 |
-
});
|
713 |
-
|
714 |
-
var url = new URL(window.location.href);
|
715 |
-
|
716 |
-
if (url)
|
717 |
-
_this.triggerFilerTabs(url);
|
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 |
-
$this
|
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 |
-
this
|
799 |
-
|
800 |
-
|
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 |
-
this.
|
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 |
-
if ("" ===
|
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 |
-
|
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 |
-
var
|
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 |
-
if (
|
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 |
-
if (
|
1157 |
-
$countDownElement.find('
|
1158 |
-
}
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
map[lowercased].oldVal
|
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 |
-
if (settings
|
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 |
-
|
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 |
-
layoutSettings.
|
1688 |
-
layoutSettings.
|
1689 |
-
layoutSettings.
|
1690 |
-
layoutSettings.
|
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 |
-
if (
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
-
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
$blogElement.
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
}
|
1764 |
-
|
1765 |
-
if (
|
1766 |
-
this.
|
1767 |
-
}
|
1768 |
-
|
1769 |
-
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
1774 |
-
|
1775 |
-
|
1776 |
-
|
1777 |
-
|
1778 |
-
|
1779 |
-
|
1780 |
-
|
1781 |
-
|
1782 |
-
|
1783 |
-
|
1784 |
-
if ($(this).hasClass(
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
_this.settings.pageNumber =
|
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 |
-
_this.
|
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 |
-
|
1938 |
-
|
1939 |
-
|
1940 |
-
|
1941 |
-
|
1942 |
-
|
1943 |
-
|
1944 |
-
|
1945 |
-
|
1946 |
-
|
1947 |
-
|
1948 |
-
|
1949 |
-
|
1950 |
-
|
1951 |
-
|
1952 |
-
|
1953 |
-
|
1954 |
-
|
1955 |
-
|
1956 |
-
|
1957 |
-
|
1958 |
-
|
1959 |
-
|
1960 |
-
|
1961 |
-
|
1962 |
-
|
1963 |
-
|
1964 |
-
|
1965 |
-
|
1966 |
-
|
1967 |
-
|
1968 |
-
|
1969 |
-
|
1970 |
-
|
1971 |
-
|
1972 |
-
|
1973 |
-
|
1974 |
-
|
1975 |
-
|
1976 |
-
|
1977 |
-
|
1978 |
-
|
1979 |
-
|
1980 |
-
|
1981 |
-
|
1982 |
-
|
1983 |
-
|
1984 |
-
|
1985 |
-
|
1986 |
-
|
1987 |
-
|
1988 |
-
|
1989 |
-
|
1990 |
-
|
1991 |
-
|
1992 |
-
|
1993 |
-
|
1994 |
-
|
1995 |
-
|
1996 |
-
|
1997 |
-
|
1998 |
-
|
1999 |
-
|
2000 |
-
|
2001 |
-
|
2002 |
-
|
2003 |
-
|
2004 |
-
|
2005 |
-
|
2006 |
-
|
2007 |
-
|
2008 |
-
|
2009 |
-
|
2010 |
-
|
2011 |
-
|
2012 |
-
|
2013 |
-
|
2014 |
-
|
2015 |
-
|
2016 |
-
|
2017 |
-
|
2018 |
-
|
2019 |
-
|
2020 |
-
|
2021 |
-
|
2022 |
-
|
2023 |
-
|
2024 |
-
|
2025 |
-
|
2026 |
-
|
2027 |
-
|
2028 |
-
|
2029 |
-
|
2030 |
-
|
2031 |
-
|
2032 |
-
|
2033 |
-
|
2034 |
-
|
2035 |
-
|
2036 |
-
|
2037 |
-
|
2038 |
-
|
2039 |
-
|
2040 |
-
|
2041 |
-
|
2042 |
-
|
2043 |
-
|
2044 |
-
|
2045 |
-
|
2046 |
-
|
2047 |
-
|
2048 |
-
|
2049 |
-
}
|
2050 |
-
|
2051 |
-
function
|
2052 |
-
|
2053 |
-
|
2054 |
-
|
2055 |
-
|
2056 |
-
|
2057 |
-
|
2058 |
-
|
2059 |
-
|
2060 |
-
|
2061 |
-
|
2062 |
-
|
2063 |
-
|
2064 |
-
|
2065 |
-
|
2066 |
-
|
2067 |
-
|
2068 |
-
|
2069 |
-
|
2070 |
-
|
2071 |
-
|
2072 |
-
|
2073 |
-
|
2074 |
-
|
2075 |
-
|
2076 |
-
|
2077 |
-
|
2078 |
-
|
2079 |
-
|
2080 |
-
|
2081 |
-
|
2082 |
-
|
2083 |
-
|
2084 |
-
|
2085 |
-
|
2086 |
-
|
2087 |
-
|
2088 |
-
|
2089 |
-
|
2090 |
-
|
2091 |
-
|
2092 |
-
|
2093 |
-
|
2094 |
-
|
2095 |
-
|
2096 |
-
|
2097 |
-
|
2098 |
-
|
2099 |
-
|
2100 |
-
|
2101 |
-
$input.
|
2102 |
-
|
2103 |
-
|
2104 |
-
|
2105 |
-
|
2106 |
-
|
2107 |
-
|
2108 |
-
|
2109 |
-
|
2110 |
-
|
2111 |
-
|
2112 |
-
|
2113 |
-
|
2114 |
-
|
2115 |
-
|
2116 |
-
|
2117 |
-
|
2118 |
-
|
2119 |
-
|
2120 |
-
|
2121 |
-
|
2122 |
-
|
2123 |
-
|
2124 |
-
|
2125 |
-
|
2126 |
-
|
2127 |
-
|
2128 |
-
|
2129 |
-
|
2130 |
-
|
2131 |
-
|
2132 |
-
|
2133 |
-
|
2134 |
-
|
2135 |
-
|
2136 |
-
|
2137 |
-
|
2138 |
-
|
2139 |
-
|
2140 |
-
|
2141 |
-
|
2142 |
-
|
2143 |
-
|
2144 |
-
|
2145 |
-
|
2146 |
-
|
2147 |
-
|
2148 |
-
|
2149 |
-
|
2150 |
-
|
2151 |
-
|
2152 |
-
|
2153 |
-
|
2154 |
-
|
2155 |
-
|
2156 |
-
|
2157 |
-
|
2158 |
-
|
2159 |
-
|
2160 |
-
|
2161 |
-
|
2162 |
-
|
2163 |
-
|
2164 |
-
|
2165 |
-
|
2166 |
-
|
2167 |
-
|
2168 |
-
|
2169 |
-
|
2170 |
-
|
2171 |
-
|
2172 |
-
|
2173 |
-
|
2174 |
-
|
2175 |
-
|
2176 |
-
|
2177 |
-
|
2178 |
-
|
2179 |
-
|
2180 |
-
|
2181 |
-
|
2182 |
-
|
2183 |
-
|
2184 |
-
|
2185 |
-
|
2186 |
-
|
2187 |
-
|
2188 |
-
|
2189 |
-
|
2190 |
-
|
2191 |
-
|
2192 |
-
|
2193 |
-
|
2194 |
-
|
2195 |
-
|
2196 |
-
$
|
2197 |
-
|
2198 |
-
|
2199 |
-
|
2200 |
-
|
2201 |
-
|
2202 |
-
|
2203 |
-
|
2204 |
-
|
2205 |
-
|
2206 |
-
|
2207 |
-
|
2208 |
-
|
2209 |
-
|
2210 |
-
|
2211 |
-
|
2212 |
-
|
2213 |
-
|
2214 |
-
|
2215 |
-
|
2216 |
-
|
2217 |
-
|
2218 |
-
|
2219 |
-
|
2220 |
-
|
2221 |
-
|
2222 |
-
|
2223 |
-
|
2224 |
-
|
2225 |
-
|
2226 |
-
|
2227 |
-
|
2228 |
-
|
2229 |
-
|
2230 |
-
|
2231 |
-
|
2232 |
-
|
2233 |
-
|
2234 |
-
|
2235 |
-
|
2236 |
-
|
2237 |
-
|
2238 |
-
|
2239 |
-
|
2240 |
-
|
2241 |
-
|
2242 |
-
|
2243 |
-
|
2244 |
-
|
2245 |
-
|
2246 |
-
|
2247 |
-
|
2248 |
-
|
2249 |
-
|
2250 |
-
|
2251 |
-
|
2252 |
-
|
2253 |
-
|
2254 |
-
'
|
2255 |
-
}
|
2256 |
-
|
2257 |
-
|
2258 |
-
|
2259 |
-
|
2260 |
-
|
2261 |
-
|
2262 |
-
|
2263 |
-
|
2264 |
-
|
2265 |
-
|
2266 |
-
|
2267 |
-
|
2268 |
-
|
2269 |
-
|
2270 |
-
|
2271 |
-
|
2272 |
-
|
2273 |
-
|
2274 |
-
|
2275 |
-
|
2276 |
-
|
2277 |
-
|
2278 |
-
|
2279 |
-
|
2280 |
-
|
2281 |
-
|
2282 |
-
|
2283 |
-
|
2284 |
-
|
2285 |
-
|
2286 |
-
|
2287 |
-
|
2288 |
-
|
2289 |
-
|
2290 |
-
|
2291 |
-
|
2292 |
-
|
2293 |
-
|
2294 |
-
|
2295 |
-
|
2296 |
-
|
2297 |
-
|
2298 |
-
|
2299 |
-
|
2300 |
-
|
2301 |
-
|
2302 |
-
|
2303 |
-
element.
|
2304 |
-
|
2305 |
-
|
2306 |
-
|
2307 |
-
|
2308 |
-
|
2309 |
-
|
2310 |
-
|
2311 |
-
|
2312 |
-
|
2313 |
-
|
2314 |
-
|
2315 |
-
|
2316 |
-
|
2317 |
-
|
2318 |
-
|
2319 |
-
|
2320 |
-
|
2321 |
-
|
2322 |
-
|
2323 |
-
|
2324 |
-
|
2325 |
-
|
2326 |
-
$
|
2327 |
-
|
2328 |
-
|
2329 |
-
|
2330 |
-
|
2331 |
-
|
2332 |
-
|
2333 |
-
|
2334 |
-
|
2335 |
-
|
2336 |
-
|
2337 |
-
|
2338 |
-
|
2339 |
-
|
2340 |
-
|
2341 |
-
|
2342 |
-
|
2343 |
-
|
2344 |
-
|
2345 |
-
|
2346 |
-
|
2347 |
-
|
2348 |
-
|
2349 |
-
var
|
2350 |
-
|
2351 |
-
|
2352 |
-
|
2353 |
-
|
2354 |
-
|
2355 |
-
|
2356 |
-
|
2357 |
-
|
2358 |
-
|
2359 |
-
|
2360 |
-
|
2361 |
-
$(
|
2362 |
-
});
|
2363 |
-
|
2364 |
-
|
2365 |
-
|
2366 |
-
|
2367 |
-
|
2368 |
-
|
2369 |
-
|
2370 |
-
|
2371 |
-
|
2372 |
-
|
2373 |
-
|
2374 |
-
|
2375 |
-
|
2376 |
-
|
2377 |
-
|
2378 |
-
|
2379 |
-
|
2380 |
-
|
2381 |
-
|
2382 |
-
|
2383 |
-
|
2384 |
-
|
2385 |
-
|
2386 |
-
|
2387 |
-
|
2388 |
-
|
2389 |
-
|
2390 |
-
|
2391 |
-
|
2392 |
-
|
2393 |
-
|
2394 |
-
|
2395 |
-
|
2396 |
-
$
|
2397 |
-
}
|
2398 |
-
|
2399 |
-
|
2400 |
-
|
2401 |
-
|
2402 |
-
|
2403 |
-
|
2404 |
-
|
2405 |
-
|
2406 |
-
|
2407 |
-
|
2408 |
-
|
2409 |
-
$
|
2410 |
-
|
2411 |
-
|
2412 |
-
|
2413 |
-
|
2414 |
-
|
2415 |
-
|
2416 |
-
|
2417 |
-
|
2418 |
-
|
2419 |
-
|
2420 |
-
|
2421 |
-
|
2422 |
-
|
2423 |
-
|
2424 |
-
|
2425 |
-
|
2426 |
-
|
2427 |
-
|
2428 |
-
|
2429 |
-
|
2430 |
-
|
2431 |
-
|
2432 |
-
|
2433 |
-
|
2434 |
-
|
2435 |
-
|
2436 |
-
|
2437 |
-
|
2438 |
-
|
2439 |
-
|
2440 |
-
|
2441 |
-
|
2442 |
-
|
2443 |
-
|
2444 |
-
$
|
2445 |
-
|
2446 |
-
|
2447 |
-
//
|
2448 |
-
$
|
2449 |
-
|
2450 |
-
|
2451 |
-
|
2452 |
-
|
2453 |
-
|
2454 |
-
});
|
2455 |
-
|
2456 |
-
$(document).on('click.
|
2457 |
-
|
2458 |
-
|
2459 |
-
|
2460 |
-
|
2461 |
-
|
2462 |
-
|
2463 |
-
|
2464 |
-
|
2465 |
-
|
2466 |
-
|
2467 |
-
|
2468 |
-
|
2469 |
-
|
2470 |
-
|
2471 |
-
|
2472 |
-
|
2473 |
-
|
2474 |
-
|
2475 |
-
|
2476 |
-
|
2477 |
-
|
2478 |
-
|
2479 |
-
|
2480 |
-
|
2481 |
-
|
2482 |
-
|
2483 |
-
|
2484 |
-
|
2485 |
-
|
2486 |
-
|
2487 |
-
|
2488 |
-
|
2489 |
-
|
2490 |
-
|
2491 |
-
|
2492 |
-
|
2493 |
-
|
2494 |
-
|
2495 |
-
|
2496 |
-
|
2497 |
-
|
2498 |
-
|
2499 |
-
|
2500 |
-
|
2501 |
-
|
2502 |
-
|
2503 |
-
|
2504 |
-
|
2505 |
-
|
2506 |
-
$
|
2507 |
-
|
2508 |
-
|
2509 |
-
|
2510 |
-
$
|
2511 |
-
|
2512 |
-
|
2513 |
-
|
2514 |
-
|
2515 |
-
|
2516 |
-
|
2517 |
-
|
2518 |
-
|
2519 |
-
|
2520 |
-
|
2521 |
-
|
2522 |
-
|
2523 |
-
|
2524 |
-
|
2525 |
-
|
2526 |
-
|
2527 |
-
|
2528 |
-
|
2529 |
-
|
2530 |
-
|
2531 |
-
|
2532 |
-
|
2533 |
-
left
|
2534 |
-
|
2535 |
-
|
2536 |
-
|
2537 |
-
|
2538 |
-
|
2539 |
-
|
2540 |
-
|
2541 |
-
|
2542 |
-
|
2543 |
-
|
2544 |
-
|
2545 |
-
|
2546 |
-
|
2547 |
-
|
2548 |
-
|
2549 |
-
|
2550 |
-
|
2551 |
-
|
2552 |
-
|
2553 |
-
|
2554 |
-
|
2555 |
-
|
2556 |
-
|
2557 |
-
|
2558 |
-
|
2559 |
-
|
2560 |
-
|
2561 |
-
|
2562 |
-
|
2563 |
-
$(
|
2564 |
-
|
2565 |
-
|
2566 |
-
|
2567 |
-
$(window).
|
2568 |
-
|
2569 |
-
|
2570 |
-
|
2571 |
-
|
2572 |
-
|
2573 |
-
|
2574 |
-
|
2575 |
-
|
2576 |
-
|
2577 |
-
|
2578 |
-
|
2579 |
-
|
2580 |
-
|
2581 |
-
|
2582 |
-
|
2583 |
-
|
2584 |
-
|
2585 |
-
|
2586 |
-
|
2587 |
-
if
|
2588 |
-
|
2589 |
-
|
2590 |
-
|
2591 |
-
|
2592 |
-
|
2593 |
-
|
2594 |
-
|
2595 |
-
|
2596 |
-
|
2597 |
-
|
2598 |
-
|
2599 |
-
|
2600 |
-
|
2601 |
-
|
2602 |
-
|
2603 |
-
|
2604 |
-
|
2605 |
-
|
2606 |
-
|
2607 |
-
|
2608 |
-
|
2609 |
-
|
2610 |
-
|
2611 |
-
|
2612 |
-
|
2613 |
-
|
2614 |
-
|
2615 |
-
|
2616 |
-
|
2617 |
-
|
2618 |
-
|
2619 |
-
|
2620 |
-
|
2621 |
-
|
2622 |
-
|
2623 |
-
|
2624 |
-
|
2625 |
-
|
2626 |
-
|
2627 |
-
|
2628 |
-
|
2629 |
-
|
2630 |
-
|
2631 |
-
|
2632 |
-
|
2633 |
-
|
2634 |
-
|
2635 |
-
|
2636 |
-
|
2637 |
-
|
2638 |
-
|
2639 |
-
|
2640 |
-
|
2641 |
-
|
2642 |
-
|
2643 |
-
|
2644 |
-
|
2645 |
-
|
2646 |
-
|
2647 |
-
|
2648 |
-
|
2649 |
-
|
2650 |
-
|
2651 |
-
|
2652 |
-
|
2653 |
-
|
2654 |
-
|
2655 |
-
|
2656 |
-
|
2657 |
-
|
2658 |
-
|
2659 |
-
|
2660 |
-
|
2661 |
-
|
2662 |
-
|
2663 |
-
|
2664 |
-
|
2665 |
-
|
2666 |
-
'premium-addon-
|
2667 |
-
'premium-
|
2668 |
-
'premium-
|
2669 |
-
'premium-
|
2670 |
-
'premium-
|
2671 |
-
'premium-
|
2672 |
-
'premium-
|
2673 |
-
'premium-addon-
|
2674 |
-
'premium-
|
2675 |
-
'premium-
|
2676 |
-
|
2677 |
-
|
2678 |
-
|
2679 |
-
'premium-
|
2680 |
-
|
2681 |
-
|
2682 |
-
|
2683 |
-
|
2684 |
-
|
2685 |
-
|
2686 |
-
|
2687 |
-
|
2688 |
-
|
2689 |
-
|
2690 |
-
|
2691 |
-
|
2692 |
-
|
2693 |
-
|
2694 |
-
|
2695 |
-
|
2696 |
-
|
2697 |
-
|
2698 |
-
});
|
2699 |
-
|
2700 |
-
|
2701 |
-
|
2702 |
-
|
2703 |
-
|
2704 |
-
|
2705 |
-
|
2706 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
2707 |
Â
})(jQuery);
|
1 |
+
(function ($) {
|
2 |
+
|
3 |
+
$(window).on('elementor/frontend/init', function () {
|
4 |
+
|
5 |
+
var ModuleHandler = elementorModules.frontend.handlers.Base;
|
6 |
+
|
7 |
+
/****** Premium Progress Bar Handler ******/
|
8 |
+
var PremiumProgressBarWidgetHandler = function ($scope, trigger) {
|
9 |
+
|
10 |
+
var $progressbarElem = $scope.find(".premium-progressbar-container"),
|
11 |
+
settings = $progressbarElem.data("settings"),
|
12 |
+
length = settings.progress_length,
|
13 |
+
speed = settings.speed,
|
14 |
+
type = settings.type;
|
15 |
+
|
16 |
+
|
17 |
+
if ("line" === type) {
|
18 |
+
|
19 |
+
var $progressbar = $progressbarElem.find(".premium-progressbar-bar");
|
20 |
+
|
21 |
+
if (settings.gradient)
|
22 |
+
$progressbar.css("background", "linear-gradient(-45deg, " + settings.gradient + ")");
|
23 |
+
|
24 |
+
$progressbar.animate({
|
25 |
+
width: length + "%"
|
26 |
+
}, speed);
|
27 |
+
|
28 |
+
} else if ("circle" === type || "half-circle" === type) {
|
29 |
+
if (length > 100)
|
30 |
+
length = 100;
|
31 |
+
|
32 |
+
var degreesFactor = 1.8 * (elementorFrontend.config.is_rtl ? -1 : 1);
|
33 |
+
|
34 |
+
$progressbarElem.find(".premium-progressbar-hf-circle-progress").css({
|
35 |
+
transform: "rotate(" + length * degreesFactor + "deg)",
|
36 |
+
});
|
37 |
+
|
38 |
+
$progressbarElem.prop({
|
39 |
+
'counter': 0
|
40 |
+
}).animate({
|
41 |
+
counter: length
|
42 |
+
}, {
|
43 |
+
duration: speed,
|
44 |
+
easing: 'linear',
|
45 |
+
step: function (counter) {
|
46 |
+
var rotate = (counter * 3.6);
|
47 |
+
|
48 |
+
$progressbarElem.find(".premium-progressbar-right-label").text(Math.ceil(counter) + "%");
|
49 |
+
|
50 |
+
$progressbarElem.find(".premium-progressbar-circle-left").css('transform', "rotate(" + rotate + "deg)");
|
51 |
+
|
52 |
+
|
53 |
+
if ('circle' === type && rotate > 180) {
|
54 |
+
|
55 |
+
$progressbarElem.find(".premium-progressbar-circle").css({
|
56 |
+
'-webkit-clip-path': 'inset(0)',
|
57 |
+
'clip-path': 'inset(0)',
|
58 |
+
});
|
59 |
+
|
60 |
+
$progressbarElem.find(".premium-progressbar-circle-right").css('visibility', 'visible');
|
61 |
+
}
|
62 |
+
}
|
63 |
+
});
|
64 |
+
|
65 |
+
} else {
|
66 |
+
|
67 |
+
var $progressbar = $progressbarElem.find(".premium-progressbar-bar-wrap"),
|
68 |
+
width = $progressbarElem.outerWidth(),
|
69 |
+
dotSize = settings.dot || 25,
|
70 |
+
dotSpacing = settings.spacing || 10,
|
71 |
+
numberOfCircles = Math.ceil(width / (dotSize + dotSpacing)),
|
72 |
+
circlesToFill = numberOfCircles * (length / 100),
|
73 |
+
numberOfTotalFill = Math.floor(circlesToFill),
|
74 |
+
fillPercent = 100 * (circlesToFill - numberOfTotalFill);
|
75 |
+
|
76 |
+
$progressbar.attr('data-circles', numberOfCircles);
|
77 |
+
$progressbar.attr('data-total-fill', numberOfTotalFill);
|
78 |
+
$progressbar.attr('data-partial-fill', fillPercent);
|
79 |
+
|
80 |
+
var className = "progress-segment";
|
81 |
+
for (var i = 0; i < numberOfCircles; i++) {
|
82 |
+
className = "progress-segment";
|
83 |
+
var innerHTML = '';
|
84 |
+
|
85 |
+
if (i < numberOfTotalFill) {
|
86 |
+
innerHTML = "<div class='segment-inner'></div>";
|
87 |
+
} else if (i === numberOfTotalFill) {
|
88 |
+
|
89 |
+
innerHTML = "<div class='segment-inner'></div>";
|
90 |
+
}
|
91 |
+
|
92 |
+
$progressbar.append("<div class='" + className + "'>" + innerHTML + "</div>");
|
93 |
+
|
94 |
+
}
|
95 |
+
|
96 |
+
if ("frontend" !== trigger) {
|
97 |
+
PremiumProgressDotsHandler($scope);
|
98 |
+
}
|
99 |
+
|
100 |
+
}
|
101 |
+
|
102 |
+
};
|
103 |
+
|
104 |
+
var PremiumProgressDotsHandler = function ($scope) {
|
105 |
+
|
106 |
+
var $progressbarElem = $scope.find(".premium-progressbar-container"),
|
107 |
+
settings = $progressbarElem.data("settings"),
|
108 |
+
$progressbar = $scope.find(".premium-progressbar-bar-wrap"),
|
109 |
+
data = $progressbar.data(),
|
110 |
+
speed = settings.speed,
|
111 |
+
increment = 0;
|
112 |
+
|
113 |
+
var numberOfTotalFill = data.totalFill,
|
114 |
+
numberOfCircles = data.circles,
|
115 |
+
fillPercent = data.partialFill;
|
116 |
+
|
117 |
+
dotIncrement(increment);
|
118 |
+
|
119 |
+
function dotIncrement(inc) {
|
120 |
+
|
121 |
+
var $dot = $progressbar.find(".progress-segment").eq(inc),
|
122 |
+
dotWidth = 100;
|
123 |
+
|
124 |
+
if (inc === numberOfTotalFill)
|
125 |
+
dotWidth = fillPercent
|
126 |
+
|
127 |
+
$dot.find(".segment-inner").animate({
|
128 |
+
width: dotWidth + '%'
|
129 |
+
}, speed / numberOfCircles, function () {
|
130 |
+
increment++;
|
131 |
+
if (increment <= numberOfTotalFill) {
|
132 |
+
dotIncrement(increment);
|
133 |
+
}
|
134 |
+
|
135 |
+
});
|
136 |
+
}
|
137 |
+
};
|
138 |
+
|
139 |
+
/****** Premium Progress Bar Scroll Handler *****/
|
140 |
+
var PremiumProgressBarScrollWidgetHandler = function ($scope, $) {
|
141 |
+
|
142 |
+
var $progressbarElem = $scope.find(".premium-progressbar-container"),
|
143 |
+
settings = $progressbarElem.data("settings"),
|
144 |
+
type = settings.type;
|
145 |
+
|
146 |
+
if ("dots" === type) {
|
147 |
+
PremiumProgressBarWidgetHandler($scope, "frontend");
|
148 |
+
}
|
149 |
+
|
150 |
+
elementorFrontend.waypoint($scope, function () {
|
151 |
+
if ("dots" !== type) {
|
152 |
+
PremiumProgressBarWidgetHandler($(this));
|
153 |
+
} else {
|
154 |
+
PremiumProgressDotsHandler($(this));
|
155 |
+
}
|
156 |
+
|
157 |
+
});
|
158 |
+
};
|
159 |
+
|
160 |
+
/****** Premium Video Box Handler ******/
|
161 |
+
var PremiumVideoBoxWidgetHandler = function ($scope, $) {
|
162 |
+
|
163 |
+
var $videoBoxElement = $scope.find(".premium-video-box-container"),
|
164 |
+
$videoListElement = $scope.find(".premium-video-box-playlist-container"),
|
165 |
+
$videoContainer = $videoBoxElement.find(".premium-video-box-video-container"), //should be clicked
|
166 |
+
$videoInnerContainer = $videoBoxElement.find('.premium-video-box-inner-wrap'),
|
167 |
+
$videoImageContainer = $videoInnerContainer.find('.premium-video-box-image-container'),
|
168 |
+
type = $videoBoxElement.data("type"),
|
169 |
+
thumbnail = $videoBoxElement.data("thumbnail"),
|
170 |
+
sticky = $videoBoxElement.data('sticky'),
|
171 |
+
stickyOnPlay = $videoBoxElement.data('sticky-play'),
|
172 |
+
hoverEffect = $videoBoxElement.data('hover'),
|
173 |
+
$lighboxContainer = $videoListElement.length ? $videoListElement : $videoBoxElement,
|
174 |
+
lightBox = $lighboxContainer.data('lightbox') ? $lighboxContainer.data('lightbox') : false,
|
175 |
+
video, vidSrc;
|
176 |
+
|
177 |
+
if (lightBox) {
|
178 |
+
|
179 |
+
if ('prettyphoto' === lightBox.type) {
|
180 |
+
$lighboxContainer.find(".premium-vid-lightbox-container[data-rel^='prettyPhoto']").prettyPhoto(getPrettyPhotoSettings(lightBox.theme));
|
181 |
+
}
|
182 |
+
|
183 |
+
$lighboxContainer.find('.premium-video-box-image-container, .premium-video-box-play-icon-container').on('click', function (e) {
|
184 |
+
triggerLightbox($lighboxContainer, lightBox.type);
|
185 |
+
});
|
186 |
+
|
187 |
+
} else {
|
188 |
+
// Youtube playlist option.
|
189 |
+
if ($videoListElement.length) {
|
190 |
+
|
191 |
+
//Make sure that video were pulled from the API.
|
192 |
+
if (!$videoContainer.length)
|
193 |
+
return;
|
194 |
+
|
195 |
+
$videoContainer.each(function (index, item) {
|
196 |
+
|
197 |
+
var vidSrc,
|
198 |
+
$videoContainer = $(item),
|
199 |
+
$videoBoxElement = $videoContainer.closest(".premium-video-box-container"),
|
200 |
+
$trigger = $videoContainer.closest(".premium-video-box-trigger");
|
201 |
+
|
202 |
+
vidSrc = $videoContainer.data("src");
|
203 |
+
vidSrc = vidSrc + "&autoplay=1";
|
204 |
+
|
205 |
+
$trigger.on("click", function () {
|
206 |
+
|
207 |
+
var $iframe = $("<iframe/>");
|
208 |
+
|
209 |
+
$iframe.attr({
|
210 |
+
"src": vidSrc,
|
211 |
+
"frameborder": "0",
|
212 |
+
"allowfullscreen": "1",
|
213 |
+
"allow": "autoplay;encrypted-media;"
|
214 |
+
});
|
215 |
+
$videoContainer.css("background", "#000");
|
216 |
+
$videoContainer.html($iframe);
|
217 |
+
|
218 |
+
$videoBoxElement.find(
|
219 |
+
".premium-video-box-image-container, .premium-video-box-play-icon-container"
|
220 |
+
).remove();
|
221 |
+
|
222 |
+
});
|
223 |
+
|
224 |
+
});
|
225 |
+
|
226 |
+
return;
|
227 |
+
}
|
228 |
+
|
229 |
+
if ("self" === type) {
|
230 |
+
|
231 |
+
video = $videoContainer.find("video");
|
232 |
+
vidSrc = video.attr("src");
|
233 |
+
|
234 |
+
if ($videoBoxElement.data("play-viewport")) {
|
235 |
+
elementorFrontend.waypoint($videoBoxElement, function () {
|
236 |
+
playVideo();
|
237 |
+
}, {
|
238 |
+
offset: 0,
|
239 |
+
triggerOnce: false
|
240 |
+
});
|
241 |
+
|
242 |
+
if ($videoBoxElement.data("play-reset")) {
|
243 |
+
elementorFrontend.waypoint($videoBoxElement, function (direction) {
|
244 |
+
|
245 |
+
if ('up' === direction)
|
246 |
+
restartVideo();
|
247 |
+
}, {
|
248 |
+
offset: "100%",
|
249 |
+
triggerOnce: false
|
250 |
+
});
|
251 |
+
}
|
252 |
+
}
|
253 |
+
|
254 |
+
} else {
|
255 |
+
|
256 |
+
vidSrc = $videoContainer.data("src");
|
257 |
+
|
258 |
+
if (!thumbnail || -1 !== vidSrc.indexOf("autoplay=1")) {
|
259 |
+
|
260 |
+
//Check if Autoplay on viewport option is enabled
|
261 |
+
if ($videoBoxElement.data("play-viewport")) {
|
262 |
+
elementorFrontend.waypoint($videoBoxElement, function () {
|
263 |
+
playVideo();
|
264 |
+
}, {
|
265 |
+
offset: 0
|
266 |
+
});
|
267 |
+
} else {
|
268 |
+
playVideo();
|
269 |
+
}
|
270 |
+
|
271 |
+
} else {
|
272 |
+
vidSrc = vidSrc + "&autoplay=1";
|
273 |
+
}
|
274 |
+
|
275 |
+
}
|
276 |
+
|
277 |
+
$videoBoxElement.on("click", function () {
|
278 |
+
playVideo();
|
279 |
+
});
|
280 |
+
|
281 |
+
if ("yes" !== sticky || "yes" === stickyOnPlay)
|
282 |
+
return;
|
283 |
+
|
284 |
+
stickyOption();
|
285 |
+
}
|
286 |
+
|
287 |
+
function playVideo() {
|
288 |
+
|
289 |
+
if ($videoBoxElement.hasClass("playing")) return;
|
290 |
+
|
291 |
+
$videoBoxElement.addClass("playing");
|
292 |
+
|
293 |
+
if (stickyOnPlay === 'yes')
|
294 |
+
stickyOption();
|
295 |
+
|
296 |
+
if ("self" === type) {
|
297 |
+
|
298 |
+
$(video).get(0).play();
|
299 |
+
|
300 |
+
$videoContainer.css({
|
301 |
+
opacity: "1",
|
302 |
+
visibility: "visible"
|
303 |
+
});
|
304 |
+
|
305 |
+
} else {
|
306 |
+
|
307 |
+
var $iframe = $("<iframe/>");
|
308 |
+
|
309 |
+
$iframe.attr({
|
310 |
+
"src": vidSrc,
|
311 |
+
"frameborder": "0",
|
312 |
+
"allowfullscreen": "1",
|
313 |
+
"allow": "autoplay;encrypted-media;"
|
314 |
+
});
|
315 |
+
$videoContainer.css("background", "#000");
|
316 |
+
$videoContainer.html($iframe);
|
317 |
+
}
|
318 |
+
|
319 |
+
$videoBoxElement.find(
|
320 |
+
".premium-video-box-image-container, .premium-video-box-play-icon-container, .premium-video-box-description-container"
|
321 |
+
).remove();
|
322 |
+
|
323 |
+
if ("vimeo" === type)
|
324 |
+
$videoBoxElement.find(".premium-video-box-vimeo-wrap").remove();
|
325 |
+
}
|
326 |
+
|
327 |
+
function restartVideo() {
|
328 |
+
|
329 |
+
$videoBoxElement.removeClass("playing");
|
330 |
+
|
331 |
+
$(video).get(0).pause();
|
332 |
+
$(video).get(0).currentTime = 0;
|
333 |
+
|
334 |
+
}
|
335 |
+
|
336 |
+
function triggerLightbox($container, type) {
|
337 |
+
if ('elementor' === type) {
|
338 |
+
$container.find('.premium-video-box-video-container').click();
|
339 |
+
} else {
|
340 |
+
$container.find(".premium-vid-lightbox-container[data-rel^='prettyPhoto']").click();
|
341 |
+
}
|
342 |
+
}
|
343 |
+
|
344 |
+
function stickyOption() {
|
345 |
+
|
346 |
+
var stickyDesktop = $videoBoxElement.data('hide-desktop'),
|
347 |
+
stickyTablet = $videoBoxElement.data('hide-tablet'),
|
348 |
+
stickyMobile = $videoBoxElement.data('hide-mobile'),
|
349 |
+
stickyMargin = $videoBoxElement.data('sticky-margin');
|
350 |
+
|
351 |
+
$videoBoxElement.off('click').on('click', function (e) {
|
352 |
+
// if ('yes' === sticky) {
|
353 |
+
var stickyTarget = e.target.className;
|
354 |
+
if ((stickyTarget.toString().indexOf('premium-video-box-sticky-close') >= 0) || (stickyTarget.toString().indexOf('premium-video-box-sticky-close') >= 0)) {
|
355 |
+
return false;
|
356 |
+
}
|
357 |
+
// }
|
358 |
+
playVideo();
|
359 |
+
|
360 |
+
});
|
361 |
+
|
362 |
+
//Make sure Elementor Waypoint is defined
|
363 |
+
if (typeof elementorFrontend.waypoint !== 'undefined') {
|
364 |
+
|
365 |
+
var stickyWaypoint = elementorFrontend.waypoint(
|
366 |
+
$videoBoxElement,
|
367 |
+
function (direction) {
|
368 |
+
if ('down' === direction) {
|
369 |
+
|
370 |
+
$videoBoxElement.removeClass('premium-video-box-sticky-hide').addClass('premium-video-box-sticky-apply premium-video-box-filter-sticky');
|
371 |
+
|
372 |
+
//Fix conflict with Elementor motion effects
|
373 |
+
if ($scope.hasClass("elementor-motion-effects-parent")) {
|
374 |
+
$scope.removeClass("elementor-motion-effects-perspective").find(".elementor-widget-container").addClass("premium-video-box-transform");
|
375 |
+
}
|
376 |
+
|
377 |
+
if ($videoBoxElement.data("mask")) {
|
378 |
+
//Fix Sticky position issue when drop-shadow is applied
|
379 |
+
$scope.find(".premium-video-box-mask-filter").removeClass("premium-video-box-mask-filter");
|
380 |
+
|
381 |
+
$videoBoxElement.find(':first-child').removeClass('premium-video-box-mask-media');
|
382 |
+
|
383 |
+
$videoImageContainer.removeClass(hoverEffect).removeClass('premium-video-box-mask-media').css({
|
384 |
+
'transition': 'width 0.2s, height 0.2s',
|
385 |
+
'-webkit-transition': 'width 0.2s, height 0.2s'
|
386 |
+
});
|
387 |
+
}
|
388 |
+
|
389 |
+
$(document).trigger('premium_after_sticky_applied', [$scope]);
|
390 |
+
|
391 |
+
// Entrance Animation Option
|
392 |
+
if ($videoInnerContainer.data("video-animation") && " " != $videoInnerContainer.data("video-animation")) {
|
393 |
+
$videoInnerContainer.css("opacity", "0");
|
394 |
+
var animationDelay = $videoInnerContainer.data('delay-animation');
|
395 |
+
setTimeout(function () {
|
396 |
+
|
397 |
+
$videoInnerContainer.css("opacity", "1").addClass("animated " + $videoInnerContainer.data("video-animation"));
|
398 |
+
|
399 |
+
}, animationDelay * 1000);
|
400 |
+
}
|
401 |
+
|
402 |
+
} else {
|
403 |
+
|
404 |
+
$videoBoxElement.removeClass('premium-video-box-sticky-apply premium-video-box-filter-sticky').addClass('premium-video-box-sticky-hide');
|
405 |
+
|
406 |
+
//Fix conflict with Elementor motion effects
|
407 |
+
if ($scope.hasClass("elementor-motion-effects-parent")) {
|
408 |
+
$scope.addClass("elementor-motion-effects-perspective").find(".elementor-widget-container").removeClass("premium-video-box-transform");
|
409 |
+
}
|
410 |
+
|
411 |
+
if ($videoBoxElement.data("mask")) {
|
412 |
+
//Fix Sticky position issue when drop-shadow is applied
|
413 |
+
$videoBoxElement.parent().addClass("premium-video-box-mask-filter");
|
414 |
+
|
415 |
+
$videoBoxElement.find(':first-child').eq(0).addClass('premium-video-box-mask-media');
|
416 |
+
$videoImageContainer.addClass('premium-video-box-mask-media');
|
417 |
+
}
|
418 |
+
|
419 |
+
$videoImageContainer.addClass(hoverEffect).css({
|
420 |
+
'transition': 'all 0.2s',
|
421 |
+
'-webkit-transition': 'all 0.2s'
|
422 |
+
});
|
423 |
+
|
424 |
+
$videoInnerContainer.removeClass("animated " + $videoInnerContainer.data("video-animation"));
|
425 |
+
}
|
426 |
+
}, {
|
427 |
+
offset: 0 + '%',
|
428 |
+
triggerOnce: false
|
429 |
+
}
|
430 |
+
);
|
431 |
+
}
|
432 |
+
|
433 |
+
var closeBtn = $scope.find('.premium-video-box-sticky-close');
|
434 |
+
|
435 |
+
closeBtn.off('click.closetrigger').on('click.closetrigger', function (e) {
|
436 |
+
e.stopPropagation();
|
437 |
+
stickyWaypoint[0].disable();
|
438 |
+
|
439 |
+
$videoBoxElement.removeClass('premium-video-box-sticky-apply premium-video-box-sticky-hide');
|
440 |
+
|
441 |
+
//Fix conflict with Elementor motion effects
|
442 |
+
if ($scope.hasClass("elementor-motion-effects-parent")) {
|
443 |
+
$scope.addClass("elementor-motion-effects-perspective").find(".elementor-widget-container").removeClass("premium-video-box-transform");
|
444 |
+
}
|
445 |
+
|
446 |
+
if ($videoBoxElement.data("mask")) {
|
447 |
+
//Fix Sticky position issue when drop-shadow is applied
|
448 |
+
$videoBoxElement.parent().addClass("premium-video-box-mask-filter");
|
449 |
+
|
450 |
+
//Necessary classes for mask shape option
|
451 |
+
$videoBoxElement.find(':first-child').eq(0).addClass('premium-video-box-mask-media');
|
452 |
+
$videoImageContainer.addClass('premium-video-box-mask-media');
|
453 |
+
}
|
454 |
+
|
455 |
+
|
456 |
+
});
|
457 |
+
|
458 |
+
checkResize(stickyWaypoint);
|
459 |
+
|
460 |
+
checkScroll();
|
461 |
+
|
462 |
+
window.addEventListener("scroll", checkScroll);
|
463 |
+
|
464 |
+
$(window).resize(function (e) {
|
465 |
+
checkResize(stickyWaypoint);
|
466 |
+
});
|
467 |
+
|
468 |
+
function checkResize(stickyWaypoint) {
|
469 |
+
var currentDeviceMode = elementorFrontend.getCurrentDeviceMode();
|
470 |
+
|
471 |
+
if ('' !== stickyDesktop && currentDeviceMode == stickyDesktop) {
|
472 |
+
disableSticky(stickyWaypoint);
|
473 |
+
} else if ('' !== stickyTablet && currentDeviceMode == stickyTablet) {
|
474 |
+
disableSticky(stickyWaypoint);
|
475 |
+
} else if ('' !== stickyMobile && currentDeviceMode == stickyMobile) {
|
476 |
+
disableSticky(stickyWaypoint);
|
477 |
+
} else {
|
478 |
+
stickyWaypoint[0].enable();
|
479 |
+
}
|
480 |
+
}
|
481 |
+
|
482 |
+
function disableSticky(stickyWaypoint) {
|
483 |
+
stickyWaypoint[0].disable();
|
484 |
+
$videoBoxElement.removeClass('premium-video-box-sticky-apply premium-video-box-sticky-hide');
|
485 |
+
}
|
486 |
+
|
487 |
+
function checkScroll() {
|
488 |
+
if ($videoBoxElement.hasClass('premium-video-box-sticky-apply')) {
|
489 |
+
$videoInnerContainer.draggable({
|
490 |
+
start: function () {
|
491 |
+
$(this).css({
|
492 |
+
transform: "none",
|
493 |
+
top: $(this).offset().top + "px",
|
494 |
+
left: $(this).offset().left + "px"
|
495 |
+
});
|
496 |
+
},
|
497 |
+
containment: 'window'
|
498 |
+
});
|
499 |
+
}
|
500 |
+
}
|
501 |
+
|
502 |
+
$(document).on('premium_after_sticky_applied', function (e, $scope) {
|
503 |
+
var infobar = $scope.find('.premium-video-box-sticky-infobar');
|
504 |
+
|
505 |
+
if (0 !== infobar.length) {
|
506 |
+
var infobarHeight = infobar.outerHeight();
|
507 |
+
|
508 |
+
if ($scope.hasClass('premium-video-sticky-center-left') || $scope.hasClass('premium-video-sticky-center-right')) {
|
509 |
+
infobarHeight = Math.ceil(infobarHeight / 2);
|
510 |
+
$videoInnerContainer.css('top', 'calc( 50% - ' + infobarHeight + 'px )');
|
511 |
+
}
|
512 |
+
|
513 |
+
if ($scope.hasClass('premium-video-sticky-bottom-left') || $scope.hasClass('premium-video-sticky-bottom-right')) {
|
514 |
+
if ('' !== stickyMargin) {
|
515 |
+
infobarHeight = Math.ceil(infobarHeight);
|
516 |
+
var stickBottom = infobarHeight + stickyMargin;
|
517 |
+
$videoInnerContainer.css('bottom', stickBottom);
|
518 |
+
}
|
519 |
+
}
|
520 |
+
}
|
521 |
+
});
|
522 |
+
|
523 |
+
}
|
524 |
+
|
525 |
+
function getPrettyPhotoSettings(theme) {
|
526 |
+
return {
|
527 |
+
theme: theme,
|
528 |
+
hook: "data-rel",
|
529 |
+
opacity: 0.7,
|
530 |
+
show_title: false,
|
531 |
+
deeplinking: false,
|
532 |
+
overlay_gallery: true,
|
533 |
+
custom_markup: "",
|
534 |
+
default_width: 900,
|
535 |
+
default_height: 506,
|
536 |
+
social_tools: ""
|
537 |
+
};
|
538 |
+
}
|
539 |
+
};
|
540 |
+
|
541 |
+
/****** Premium Media Grid Handler ******/
|
542 |
+
var PremiumGridWidgetHandler = ModuleHandler.extend({
|
543 |
+
|
544 |
+
settings: {},
|
545 |
+
|
546 |
+
getDefaultSettings: function () {
|
547 |
+
return {
|
548 |
+
selectors: {
|
549 |
+
galleryElement: '.premium-gallery-container',
|
550 |
+
filters: '.premium-gallery-cats-container li',
|
551 |
+
gradientLayer: '.premium-gallery-gradient-layer',
|
552 |
+
loadMore: '.premium-gallery-load-more',
|
553 |
+
loadMoreDiv: '.premium-gallery-load-more div',
|
554 |
+
vidWrap: '.premium-gallery-video-wrap',
|
555 |
+
}
|
556 |
+
}
|
557 |
+
},
|
558 |
+
|
559 |
+
getDefaultElements: function () {
|
560 |
+
|
561 |
+
var selectors = this.getSettings('selectors'),
|
562 |
+
elements = {
|
563 |
+
$galleryElement: this.$element.find(selectors.galleryElement),
|
564 |
+
$filters: this.$element.find(selectors.filters),
|
565 |
+
$gradientLayer: this.$element.find(selectors.gradientLayer),
|
566 |
+
$vidWrap: this.$element.find(selectors.vidWrap)
|
567 |
+
};
|
568 |
+
|
569 |
+
elements.$loadMore = elements.$galleryElement.parent().find(selectors.loadMore)
|
570 |
+
elements.$loadMoreDiv = elements.$galleryElement.parent().find(selectors.loadMoreDiv)
|
571 |
+
|
572 |
+
return elements;
|
573 |
+
},
|
574 |
+
|
575 |
+
bindEvents: function () {
|
576 |
+
this.getGlobalSettings();
|
577 |
+
this.run();
|
578 |
+
},
|
579 |
+
|
580 |
+
getGlobalSettings: function () {
|
581 |
+
var $galleryElement = this.elements.$galleryElement,
|
582 |
+
settings = $galleryElement.data('settings');
|
583 |
+
|
584 |
+
this.settings = {
|
585 |
+
layout: settings.img_size,
|
586 |
+
loadMore: settings.load_more,
|
587 |
+
columnWidth: null,
|
588 |
+
filter: null,
|
589 |
+
isFilterClicked: false,
|
590 |
+
minimum: settings.minimum,
|
591 |
+
imageToShow: settings.click_images,
|
592 |
+
counter: settings.minimum,
|
593 |
+
ltrMode: settings.ltr_mode,
|
594 |
+
shuffle: settings.shuffle,
|
595 |
+
active_cat: settings.active_cat,
|
596 |
+
theme: settings.theme,
|
597 |
+
overlay: settings.overlay,
|
598 |
+
sort_by: settings.sort_by,
|
599 |
+
light_box: settings.light_box,
|
600 |
+
flag: settings.flag,
|
601 |
+
lightbox_type: settings.lightbox_type
|
602 |
+
}
|
603 |
+
},
|
604 |
+
|
605 |
+
updateCounter: function () {
|
606 |
+
|
607 |
+
if (this.settings.isFilterClicked) {
|
608 |
+
|
609 |
+
this.settings.counter = this.settings.minimum;
|
610 |
+
|
611 |
+
this.settings.isFilterClicked = false;
|
612 |
+
|
613 |
+
} else {
|
614 |
+
this.settings.counter = this.settings.counter;
|
615 |
+
}
|
616 |
+
|
617 |
+
this.settings.counter = this.settings.counter + this.settings.imageToShow;
|
618 |
+
},
|
619 |
+
|
620 |
+
updateGrid: function (gradHeight, $isotopeGallery, $loadMoreDiv) {
|
621 |
+
$.ajax({
|
622 |
+
url: this.appendItems(this.settings.counter, gradHeight, $isotopeGallery),
|
623 |
+
beforeSend: function () {
|
624 |
+
$loadMoreDiv.removeClass("premium-gallery-item-hidden");
|
625 |
+
},
|
626 |
+
success: function () {
|
627 |
+
$loadMoreDiv.addClass("premium-gallery-item-hidden");
|
628 |
+
}
|
629 |
+
});
|
630 |
+
},
|
631 |
+
|
632 |
+
loadMore: function (gradHeight, $isotopeGallery) {
|
633 |
+
|
634 |
+
var $galleryElement = this.elements.$galleryElement,
|
635 |
+
$loadMoreDiv = this.elements.$loadMoreDiv,
|
636 |
+
$loadMore = this.elements.$loadMore,
|
637 |
+
_this = this;
|
638 |
+
|
639 |
+
$loadMoreDiv.addClass("premium-gallery-item-hidden");
|
640 |
+
|
641 |
+
if ($galleryElement.find(".premium-gallery-item").length > this.settings.minimum) {
|
642 |
+
|
643 |
+
$loadMore.removeClass("premium-gallery-item-hidden");
|
644 |
+
|
645 |
+
$galleryElement.parent().on("click", ".premium-gallery-load-less", function () {
|
646 |
+
_this.settings.counter = _this.settings.counter - _this.settings.imageToShow;
|
647 |
+
});
|
648 |
+
|
649 |
+
$galleryElement.parent().on("click", ".premium-gallery-load-more-btn:not(.premium-gallery-load-less)", function () {
|
650 |
+
_this.updateCounter();
|
651 |
+
_this.updateGrid(gradHeight, $isotopeGallery, $loadMoreDiv);
|
652 |
+
});
|
653 |
+
|
654 |
+
}
|
655 |
+
|
656 |
+
},
|
657 |
+
|
658 |
+
getItemsToHide: function (instance, imagesToShow) {
|
659 |
+
var items = instance.filteredItems.slice(imagesToShow, instance
|
660 |
+
.filteredItems.length).map(function (item) {
|
661 |
+
return item.element;
|
662 |
+
});
|
663 |
+
|
664 |
+
return items;
|
665 |
+
},
|
666 |
+
|
667 |
+
appendItems: function (imagesToShow, gradHeight, $isotopeGallery) {
|
668 |
+
|
669 |
+
var $galleryElement = this.elements.$galleryElement,
|
670 |
+
$gradientLayer = this.elements.$gradientLayer,
|
671 |
+
instance = $galleryElement.data("isotope"),
|
672 |
+
itemsToHide = this.getItemsToHide(instance, imagesToShow);
|
673 |
+
|
674 |
+
$gradientLayer.outerHeight(gradHeight);
|
675 |
+
|
676 |
+
$galleryElement.find(".premium-gallery-item-hidden").removeClass("premium-gallery-item-hidden");
|
677 |
+
|
678 |
+
$galleryElement.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden");
|
679 |
+
|
680 |
+
$(itemsToHide).addClass("premium-gallery-item-hidden");
|
681 |
+
|
682 |
+
$isotopeGallery.isotope("layout");
|
683 |
+
|
684 |
+
if (0 == itemsToHide) {
|
685 |
+
|
686 |
+
$gradientLayer.addClass("premium-gallery-item-hidden");
|
687 |
+
|
688 |
+
$galleryElement.parent().find(".premium-gallery-load-more").addClass("premium-gallery-item-hidden");
|
689 |
+
}
|
690 |
+
},
|
691 |
+
|
692 |
+
triggerFilerTabs: function (url) {
|
693 |
+
var filterIndex = url.searchParams.get(this.settings.flag),
|
694 |
+
$filters = this.elements.$filters;
|
695 |
+
|
696 |
+
if (filterIndex) {
|
697 |
+
|
698 |
+
var $targetFilter = $filters.eq(filterIndex).find("a");
|
699 |
+
|
700 |
+
$targetFilter.trigger('click');
|
701 |
+
|
702 |
+
}
|
703 |
+
},
|
704 |
+
|
705 |
+
onReady: function ($isotopeGallery) {
|
706 |
+
var _this = this;
|
707 |
+
|
708 |
+
$isotopeGallery.isotope("layout");
|
709 |
+
|
710 |
+
// $isotopeGallery.isotope({
|
711 |
+
// filter: _this.settings.active_cat
|
712 |
+
// });
|
713 |
+
|
714 |
+
var url = new URL(window.location.href);
|
715 |
+
|
716 |
+
if (url)
|
717 |
+
_this.triggerFilerTabs(url);
|
718 |
+
|
719 |
+
//Show the widget after making sure everything is ready.
|
720 |
+
_this.$element.find(".category.active").trigger('click');
|
721 |
+
_this.$element.find(".elementor-invisible").removeClass("elementor-invisible");
|
722 |
+
|
723 |
+
},
|
724 |
+
|
725 |
+
onResize: function ($isotopeGallery) {
|
726 |
+
var _this = this;
|
727 |
+
|
728 |
+
_this.setMetroLayout();
|
729 |
+
|
730 |
+
$isotopeGallery.isotope({
|
731 |
+
itemSelector: ".premium-gallery-item",
|
732 |
+
masonry: {
|
733 |
+
columnWidth: _this.settings.columnWidth
|
734 |
+
},
|
735 |
+
});
|
736 |
+
|
737 |
+
},
|
738 |
+
|
739 |
+
lightBoxDisabled: function () {
|
740 |
+
var _this = this,
|
741 |
+
$vidWrap = this.elements.$vidWrap;
|
742 |
+
|
743 |
+
$vidWrap.each(function (index, item) {
|
744 |
+
var type = $(item).data("type");
|
745 |
+
|
746 |
+
$(item).closest(".premium-gallery-item").on("click", function () {
|
747 |
+
var $this = $(this);
|
748 |
+
|
749 |
+
$this.find(".pa-gallery-img-container").css("background", "#000");
|
750 |
+
|
751 |
+
$this.find("img, .pa-gallery-icons-caption-container, .pa-gallery-icons-wrapper").css("visibility", "hidden");
|
752 |
+
|
753 |
+
if ("style3" !== _this.settings.skin)
|
754 |
+
$this.find(".premium-gallery-caption").css("visibility", "hidden");
|
755 |
+
|
756 |
+
if ("hosted" !== type) {
|
757 |
+
_this.playVid($this);
|
758 |
+
} else {
|
759 |
+
_this.playHostedVid(item);
|
760 |
+
}
|
761 |
+
});
|
762 |
+
});
|
763 |
+
|
764 |
+
},
|
765 |
+
|
766 |
+
playVid: function ($this) {
|
767 |
+
var $iframeWrap = $this.find(".premium-gallery-iframe-wrap"),
|
768 |
+
src = $iframeWrap.data("src");
|
769 |
+
|
770 |
+
src = src.replace("&mute", "&autoplay=1&mute");
|
771 |
+
|
772 |
+
var $iframe = $("<iframe/>");
|
773 |
+
|
774 |
+
$iframe.attr({
|
775 |
+
"src": src,
|
776 |
+
"frameborder": "0",
|
777 |
+
"allowfullscreen": "1",
|
778 |
+
"allow": "autoplay;encrypted-media;"
|
779 |
+
});
|
780 |
+
|
781 |
+
$iframeWrap.html($iframe);
|
782 |
+
|
783 |
+
$iframe.css("visibility", "visible");
|
784 |
+
},
|
785 |
+
|
786 |
+
playHostedVid: function (item) {
|
787 |
+
var $video = $(item).find("video");
|
788 |
+
|
789 |
+
$video.get(0).play();
|
790 |
+
$video.css("visibility", "visible");
|
791 |
+
},
|
792 |
+
|
793 |
+
run: function () {
|
794 |
+
|
795 |
+
var $galleryElement = this.elements.$galleryElement,
|
796 |
+
$vidWrap = this.elements.$vidWrap,
|
797 |
+
$filters = this.elements.$filters,
|
798 |
+
_this = this;
|
799 |
+
|
800 |
+
if ('metro' === this.settings.layout) {
|
801 |
+
|
802 |
+
this.setMetroLayout();
|
803 |
+
|
804 |
+
this.settings.layout = "masonry";
|
805 |
+
|
806 |
+
$(window).resize(function () { _this.onResize($isotopeGallery); });
|
807 |
+
}
|
808 |
+
|
809 |
+
var $isotopeGallery = $galleryElement.isotope(this.getIsoTopeSettings());
|
810 |
+
|
811 |
+
$isotopeGallery.imagesLoaded().progress(function () {
|
812 |
+
$isotopeGallery.isotope("layout");
|
813 |
+
});
|
814 |
+
|
815 |
+
$(document).ready(function () { _this.onReady($isotopeGallery); });
|
816 |
+
|
817 |
+
if (this.settings.loadMore) {
|
818 |
+
|
819 |
+
var $gradientLayer = this.elements.$gradientLayer,
|
820 |
+
gradHeight = null;
|
821 |
+
|
822 |
+
setTimeout(function () {
|
823 |
+
gradHeight = $gradientLayer.outerHeight();
|
824 |
+
}, 200);
|
825 |
+
|
826 |
+
this.loadMore(gradHeight, $isotopeGallery);
|
827 |
+
}
|
828 |
+
|
829 |
+
if ("yes" !== this.settings.light_box)
|
830 |
+
this.lightBoxDisabled();
|
831 |
+
|
832 |
+
$filters.find("a").click(function (e) {
|
833 |
+
e.preventDefault();
|
834 |
+
|
835 |
+
_this.isFilterClicked = true;
|
836 |
+
|
837 |
+
$filters.find(".active").removeClass("active");
|
838 |
+
|
839 |
+
$(this).addClass("active");
|
840 |
+
|
841 |
+
_this.settings.filter = $(this).attr("data-filter");
|
842 |
+
|
843 |
+
$isotopeGallery.isotope({
|
844 |
+
filter: _this.settings.filter
|
845 |
+
});
|
846 |
+
|
847 |
+
if (_this.settings.shuffle) $isotopeGallery.isotope("shuffle");
|
848 |
+
|
849 |
+
if (_this.settings.loadMore) _this.appendItems(_this.settings.minimum, gradHeight, $isotopeGallery);
|
850 |
+
|
851 |
+
return false;
|
852 |
+
});
|
853 |
+
|
854 |
+
if ("default" === this.settings.lightbox_type)
|
855 |
+
this.$element.find(".premium-img-gallery a[data-rel^='prettyPhoto']").prettyPhoto(this.getPrettyPhotoSettings());
|
856 |
+
},
|
857 |
+
|
858 |
+
getPrettyPhotoSettings: function () {
|
859 |
+
return {
|
860 |
+
theme: this.settings.theme,
|
861 |
+
hook: "data-rel",
|
862 |
+
opacity: 0.7,
|
863 |
+
show_title: false,
|
864 |
+
deeplinking: false,
|
865 |
+
overlay_gallery: this.settings.overlay,
|
866 |
+
custom_markup: "",
|
867 |
+
default_width: 900,
|
868 |
+
default_height: 506,
|
869 |
+
social_tools: ""
|
870 |
+
}
|
871 |
+
},
|
872 |
+
|
873 |
+
getIsoTopeSettings: function () {
|
874 |
+
return {
|
875 |
+
itemSelector: '.premium-gallery-item',
|
876 |
+
percentPosition: true,
|
877 |
+
animationOptions: {
|
878 |
+
duration: 750,
|
879 |
+
easing: 'linear'
|
880 |
+
},
|
881 |
+
filter: this.settings.active_cat,
|
882 |
+
layoutMode: this.settings.layout,
|
883 |
+
originLeft: this.settings.ltrMode,
|
884 |
+
masonry: {
|
885 |
+
columnWidth: this.settings.columnWidth
|
886 |
+
},
|
887 |
+
sortBy: this.settings.sort_by
|
888 |
+
}
|
889 |
+
},
|
890 |
+
|
891 |
+
getRepeaterSettings: function () {
|
892 |
+
return this.getElementSettings('premium_gallery_img_content');
|
893 |
+
},
|
894 |
+
|
895 |
+
setMetroLayout: function () {
|
896 |
+
|
897 |
+
var $galleryElement = this.elements.$galleryElement,
|
898 |
+
gridWidth = $galleryElement.width(),
|
899 |
+
cellSize = Math.floor(gridWidth / 12),
|
900 |
+
deviceType = elementorFrontend.getCurrentDeviceMode(),
|
901 |
+
suffix = 'desktop' === deviceType ? '' : '_' + deviceType,
|
902 |
+
repeater = this.getRepeaterSettings();
|
903 |
+
|
904 |
+
$galleryElement.find(".premium-gallery-item").each(function (index, item) { //should be added to selectors and elements
|
905 |
+
|
906 |
+
var cells = repeater[index]['premium_gallery_image_cell' + suffix].size,
|
907 |
+
vCells = repeater[index]['premium_gallery_image_vcell' + suffix].size;
|
908 |
+
|
909 |
+
if ("" === cells || undefined == cells) {
|
910 |
+
cells = repeater[index].premium_gallery_image_cell;
|
911 |
+
}
|
912 |
+
|
913 |
+
if ("" === vCells || undefined == vCells) {
|
914 |
+
vCells = repeater[index].premium_gallery_image_vcell;
|
915 |
+
}
|
916 |
+
|
917 |
+
$(item).css({
|
918 |
+
width: Math.ceil(cells * cellSize),
|
919 |
+
height: Math.ceil(vCells * cellSize)
|
920 |
+
});
|
921 |
+
});
|
922 |
+
|
923 |
+
this.settings.columnWidth = cellSize;
|
924 |
+
}
|
925 |
+
|
926 |
+
});
|
927 |
+
|
928 |
+
/****** Premium Counter Handler ******/
|
929 |
+
var PremiumCounterHandler = function ($scope, $) {
|
930 |
+
|
931 |
+
var $counterElement = $scope.find(".premium-counter"),
|
932 |
+
isHScrollWidget = $counterElement.closest(".premium-hscroll-temp"),
|
933 |
+
counterSettings = $counterElement.data(),
|
934 |
+
incrementElement = $counterElement.find(".premium-counter-init"),
|
935 |
+
iconElement = $counterElement.find(".icon");
|
936 |
+
|
937 |
+
if (!isHScrollWidget.length) {
|
938 |
+
elementorFrontend.waypoint($counterElement, function () {
|
939 |
+
|
940 |
+
$(incrementElement).numerator(counterSettings);
|
941 |
+
|
942 |
+
$(iconElement).addClass("animated " + iconElement.data("animation"));
|
943 |
+
|
944 |
+
});
|
945 |
+
} else {
|
946 |
+
|
947 |
+
$(window).on("scroll", function () {
|
948 |
+
|
949 |
+
if ($(window).scrollTop() >= isHScrollWidget.data("scroll-offset")) {
|
950 |
+
$(incrementElement).numerator(counterSettings);
|
951 |
+
|
952 |
+
$(iconElement).addClass("animated " + iconElement.data("animation"));
|
953 |
+
}
|
954 |
+
|
955 |
+
});
|
956 |
+
|
957 |
+
}
|
958 |
+
|
959 |
+
};
|
960 |
+
|
961 |
+
/****** Premium Fancy Text Handler ******/
|
962 |
+
var PremiumFancyTextHandler = function ($scope, $) {
|
963 |
+
|
964 |
+
var $elem = $scope.find(".premium-fancy-text-wrapper"),
|
965 |
+
settings = $elem.data("settings"),
|
966 |
+
loadingSpeed = settings.delay || 2500,
|
967 |
+
itemCount = $elem.find('.premium-fancy-list-items').length,
|
968 |
+
loopCount = ('' === settings.count && !['typing', 'slide', 'autofade'].includes(settings.effect)) ? 'infinite' : (settings.count * itemCount);
|
969 |
+
|
970 |
+
function escapeHtml(unsafe) {
|
971 |
+
return unsafe.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(
|
972 |
+
/"/g, """);
|
973 |
+
}
|
974 |
+
|
975 |
+
if ("typing" === settings.effect) {
|
976 |
+
|
977 |
+
var fancyStrings = [];
|
978 |
+
|
979 |
+
settings.strings.forEach(function (item) {
|
980 |
+
fancyStrings.push(escapeHtml(item));
|
981 |
+
});
|
982 |
+
|
983 |
+
var fancyTextID = '#' + $elem.find('.premium-fancy-text').attr('id');
|
984 |
+
new Typed(fancyTextID, {
|
985 |
+
strings: fancyStrings,
|
986 |
+
typeSpeed: settings.typeSpeed,
|
987 |
+
backSpeed: settings.backSpeed,
|
988 |
+
startDelay: settings.startDelay,
|
989 |
+
backDelay: settings.backDelay,
|
990 |
+
showCursor: settings.showCursor,
|
991 |
+
cursorChar: settings.cursorChar,
|
992 |
+
loop: settings.loop
|
993 |
+
});
|
994 |
+
|
995 |
+
} else if ("slide" === settings.effect) {
|
996 |
+
loadingSpeed = settings.pause;
|
997 |
+
|
998 |
+
$elem.find(".premium-fancy-text").vTicker({
|
999 |
+
speed: settings.speed,
|
1000 |
+
showItems: settings.showItems,
|
1001 |
+
pause: settings.pause,
|
1002 |
+
mousePause: settings.mousePause,
|
1003 |
+
direction: "up"
|
1004 |
+
});
|
1005 |
+
|
1006 |
+
} else if ('auto-fade' === settings.effect) {
|
1007 |
+
var $items = $elem.find(".premium-fancy-list-items"),
|
1008 |
+
len = $items.length;
|
1009 |
+
|
1010 |
+
if (0 === len) {
|
1011 |
+
return;
|
1012 |
+
}
|
1013 |
+
|
1014 |
+
var delay = settings.duration / len,
|
1015 |
+
itemDelay = 0;
|
1016 |
+
|
1017 |
+
loadingSpeed = delay;
|
1018 |
+
|
1019 |
+
$items.each(function ($index, $item) {
|
1020 |
+
$item.style.animationDelay = itemDelay + 'ms';
|
1021 |
+
itemDelay += delay;
|
1022 |
+
});
|
1023 |
+
|
1024 |
+
} else {
|
1025 |
+
|
1026 |
+
setFancyAnimation();
|
1027 |
+
|
1028 |
+
function setFancyAnimation() {
|
1029 |
+
|
1030 |
+
var $item = $elem.find(".premium-fancy-list-items"),
|
1031 |
+
current = 1;
|
1032 |
+
|
1033 |
+
//Get effect settings
|
1034 |
+
var delay = settings.delay || 2500,
|
1035 |
+
loopCount = settings.count;
|
1036 |
+
|
1037 |
+
//If Loop Count option is set
|
1038 |
+
if (loopCount) {
|
1039 |
+
var currentLoop = 1,
|
1040 |
+
fancyStringsCount = $elem.find(".premium-fancy-list-items").length;
|
1041 |
+
}
|
1042 |
+
|
1043 |
+
var loopInterval = setInterval(function () {
|
1044 |
+
|
1045 |
+
var animationClass = "";
|
1046 |
+
|
1047 |
+
//Add animation class
|
1048 |
+
if (settings.effect === "custom")
|
1049 |
+
animationClass = "animated " + settings.animation;
|
1050 |
+
|
1051 |
+
//Show current active item
|
1052 |
+
$item.eq(current).addClass("premium-fancy-item-visible " + animationClass).removeClass("premium-fancy-item-hidden");
|
1053 |
+
|
1054 |
+
var $inactiveItems = $item.filter(function (index) {
|
1055 |
+
return index !== current;
|
1056 |
+
});
|
1057 |
+
|
1058 |
+
//Hide inactive items
|
1059 |
+
$inactiveItems.addClass("premium-fancy-item-hidden").removeClass("premium-fancy-item-visible " + animationClass);
|
1060 |
+
|
1061 |
+
current++;
|
1062 |
+
|
1063 |
+
//Restart loop
|
1064 |
+
if ($item.length === current)
|
1065 |
+
current = 0;
|
1066 |
+
|
1067 |
+
//Increment interval and check if loop count is reached
|
1068 |
+
if (loopCount) {
|
1069 |
+
currentLoop++;
|
1070 |
+
|
1071 |
+
if ((fancyStringsCount * loopCount) === currentLoop)
|
1072 |
+
clearInterval(loopInterval);
|
1073 |
+
}
|
1074 |
+
|
1075 |
+
|
1076 |
+
}, delay);
|
1077 |
+
|
1078 |
+
}
|
1079 |
+
}
|
1080 |
+
|
1081 |
+
//Show the strings after the layout is set.
|
1082 |
+
if ("typing" !== settings.effect) {
|
1083 |
+
setTimeout(function () {
|
1084 |
+
$elem.find(".premium-fancy-text").css('opacity', '1');
|
1085 |
+
}, 500);
|
1086 |
+
|
1087 |
+
}
|
1088 |
+
|
1089 |
+
if ('loading' === settings.loading && 'typing' !== settings.effect) {
|
1090 |
+
$scope.find('.premium-fancy-text').append('<span class="premium-loading-bar"></span>');
|
1091 |
+
$scope.find('.premium-loading-bar').css({
|
1092 |
+
'animation-iteration-count': loopCount,
|
1093 |
+
'animation-duration': loadingSpeed + 'ms'
|
1094 |
+
});
|
1095 |
+
}
|
1096 |
+
|
1097 |
+
};
|
1098 |
+
|
1099 |
+
/****** Premium Countdown Handler ******/
|
1100 |
+
var PremiumCountDownHandler = function ($scope, $) {
|
1101 |
+
|
1102 |
+
var $countDownElement = $scope.find(".premium-countdown"),
|
1103 |
+
settings = $countDownElement.data("settings"),
|
1104 |
+
id = $scope.data('id'),
|
1105 |
+
label1 = settings.label1,
|
1106 |
+
label2 = settings.label2,
|
1107 |
+
newLabe1 = label1.split(","),
|
1108 |
+
newLabel2 = label2.split(","),
|
1109 |
+
timerType = settings.timerType,
|
1110 |
+
until = 'evergreen' === timerType ? settings.until.date.replace(/ /g, "T") : settings.until,
|
1111 |
+
layout = '',
|
1112 |
+
map = {
|
1113 |
+
y: { index: 0, oldVal: '' },
|
1114 |
+
o: { index: 1, oldVal: '' },
|
1115 |
+
w: { index: 2, oldVal: '' },
|
1116 |
+
d: { index: 3, oldVal: '' },
|
1117 |
+
h: { index: 4, oldVal: '' },
|
1118 |
+
m: { index: 5, oldVal: '' },
|
1119 |
+
s: { index: 6, oldVal: '' }
|
1120 |
+
};
|
1121 |
+
|
1122 |
+
if ($countDownElement.find('#countdown-' + id).hasClass('premium-countdown-flip')) {
|
1123 |
+
settings.format.split('').forEach(function (unit) {
|
1124 |
+
var lowercased = unit.toLowerCase();
|
1125 |
+
|
1126 |
+
layout += '<div class="premium-countdown-block premium-countdown-' + lowercased + '"><div class="pre_time-mid"> <div class="premium-countdown-figure"><span class="top">{' + lowercased + 'nn}</span><span class="top-back"><span>{' + lowercased + 'nn}</span></span><span class="bottom">{' + lowercased + 'nn}</span><span class="bottom-back"><span>{' + lowercased + 'nn}</span></span></div><span class="premium-countdown-label">{' + lowercased + 'l}</span></div><span class="countdown_separator">{sep}</span></div>';
|
1127 |
+
});
|
1128 |
+
}
|
1129 |
+
|
1130 |
+
$countDownElement.find('#countdown-' + id).countdown({
|
1131 |
+
layout: layout,
|
1132 |
+
labels: newLabel2,
|
1133 |
+
labels1: newLabe1,
|
1134 |
+
until: new Date(until),
|
1135 |
+
format: settings.format,
|
1136 |
+
padZeroes: true,
|
1137 |
+
timeSeparator: settings.separator,
|
1138 |
+
onTick: function (periods) {
|
1139 |
+
|
1140 |
+
equalWidth();
|
1141 |
+
|
1142 |
+
if ($countDownElement.find('#countdown-' + id).hasClass('premium-countdown-flip')) {
|
1143 |
+
animateFigure(periods, map);
|
1144 |
+
}
|
1145 |
+
},
|
1146 |
+
onExpiry: function () {
|
1147 |
+
if ('onExpiry' === settings.event) {
|
1148 |
+
$countDownElement.find('#countdown-' + id).html(settings.text);
|
1149 |
+
}
|
1150 |
+
},
|
1151 |
+
serverSync: function () {
|
1152 |
+
return new Date(settings.serverSync);
|
1153 |
+
}
|
1154 |
+
});
|
1155 |
+
|
1156 |
+
if (settings.reset) {
|
1157 |
+
$countDownElement.find('.premium-countdown-init').countdown('option', 'until', new Date(until));
|
1158 |
+
}
|
1159 |
+
|
1160 |
+
if ('expiryUrl' === settings.event) {
|
1161 |
+
$countDownElement.find('#countdown-' + id).countdown('option', 'expiryUrl', (elementorFrontend.isEditMode()) ? '' : settings.text);
|
1162 |
+
}
|
1163 |
+
|
1164 |
+
function equalWidth() {
|
1165 |
+
var width = 0;
|
1166 |
+
$countDownElement.find('#countdown-' + id + ' .countdown-amount').each(function (index, slot) {
|
1167 |
+
if (width < $(slot).outerWidth()) {
|
1168 |
+
width = $(slot).outerWidth();
|
1169 |
+
}
|
1170 |
+
});
|
1171 |
+
|
1172 |
+
$countDownElement.find('#countdown-' + id + ' .countdown-amount').css('width', width);
|
1173 |
+
}
|
1174 |
+
|
1175 |
+
function animateFigure(periods, map) {
|
1176 |
+
settings.format.split('').forEach(function (unit) {
|
1177 |
+
|
1178 |
+
var lowercased = unit.toLowerCase(),
|
1179 |
+
index = map[lowercased].index,
|
1180 |
+
oldVal = map[lowercased].oldVal;
|
1181 |
+
|
1182 |
+
if (periods[index] !== oldVal) {
|
1183 |
+
|
1184 |
+
map[lowercased].oldVal = periods[index];
|
1185 |
+
|
1186 |
+
var $top = $('#countdown-' + id).find('.premium-countdown-' + lowercased + ' .top'),
|
1187 |
+
$back_top = $('#countdown-' + id).find('.premium-countdown-' + lowercased + ' .top-back');
|
1188 |
+
|
1189 |
+
TweenMax.to($top, 0.8, {
|
1190 |
+
rotationX: '-180deg',
|
1191 |
+
transformPerspective: 300,
|
1192 |
+
ease: Quart.easeOut,
|
1193 |
+
onComplete: function () {
|
1194 |
+
TweenMax.set($top, { rotationX: 0 });
|
1195 |
+
}
|
1196 |
+
});
|
1197 |
+
|
1198 |
+
TweenMax.to($back_top, 0.8, {
|
1199 |
+
rotationX: 0,
|
1200 |
+
transformPerspective: 300,
|
1201 |
+
ease: Quart.easeOut,
|
1202 |
+
clearProps: 'all'
|
1203 |
+
});
|
1204 |
+
}
|
1205 |
+
});
|
1206 |
+
}
|
1207 |
+
|
1208 |
+
times = $countDownElement.find('#countdown-' + id).countdown("getTimes");
|
1209 |
+
|
1210 |
+
function runTimer(el) {
|
1211 |
+
return el == 0;
|
1212 |
+
}
|
1213 |
+
|
1214 |
+
if (times.every(runTimer)) {
|
1215 |
+
|
1216 |
+
if ('onExpiry' === settings.event) {
|
1217 |
+
$countDownElement.find('#countdown-' + id).html(settings.text);
|
1218 |
+
} else if ('expiryUrl' === settings.event && !elementorFrontend.isEditMode()) {
|
1219 |
+
var editMode = $('body').find('#elementor').length;
|
1220 |
+
if (0 < editMode) {
|
1221 |
+
$countDownElement.find('#countdown-' + id).html(
|
1222 |
+
"<h1>You can not redirect url from elementor Editor!!</h1>");
|
1223 |
+
} else {
|
1224 |
+
if (!elementorFrontend.isEditMode()) {
|
1225 |
+
window.location.href = settings.text;
|
1226 |
+
}
|
1227 |
+
}
|
1228 |
+
|
1229 |
+
}
|
1230 |
+
}
|
1231 |
+
|
1232 |
+
};
|
1233 |
+
|
1234 |
+
/****** Premium Carousel Handler ******/
|
1235 |
+
var PremiumCarouselHandler = function ($scope, $) {
|
1236 |
+
|
1237 |
+
var $carouselElem = $scope.find(".premium-carousel-wrapper"),
|
1238 |
+
settings = $($carouselElem).data("settings"),
|
1239 |
+
isEdit = elementorFrontend.isEditMode();
|
1240 |
+
|
1241 |
+
if ($carouselElem.find(".item-wrapper").length < 1)
|
1242 |
+
return;
|
1243 |
+
|
1244 |
+
function slideToShow(slick) {
|
1245 |
+
|
1246 |
+
var slidesToShow = slick.options.slidesToShow,
|
1247 |
+
windowWidth = $(window).width();
|
1248 |
+
if (windowWidth > settings.tabletBreak) {
|
1249 |
+
slidesToShow = settings.slidesDesk;
|
1250 |
+
}
|
1251 |
+
if (windowWidth <= settings.tabletBreak) {
|
1252 |
+
slidesToShow = settings.slidesTab;
|
1253 |
+
}
|
1254 |
+
if (windowWidth <= settings.mobileBreak) {
|
1255 |
+
slidesToShow = settings.slidesMob;
|
1256 |
+
}
|
1257 |
+
return slidesToShow;
|
1258 |
+
|
1259 |
+
}
|
1260 |
+
|
1261 |
+
//Get templates content on the editor page
|
1262 |
+
if (isEdit) {
|
1263 |
+
|
1264 |
+
$carouselElem.find(".item-wrapper").each(function (index, slide) {
|
1265 |
+
|
1266 |
+
var templateID = $(slide).data("template");
|
1267 |
+
|
1268 |
+
if (undefined !== templateID && '' !== templateID) {
|
1269 |
+
$.ajax({
|
1270 |
+
type: "GET",
|
1271 |
+
url: PremiumSettings.ajaxurl,
|
1272 |
+
dataType: "html",
|
1273 |
+
data: {
|
1274 |
+
action: "get_elementor_template_content",
|
1275 |
+
templateID: templateID
|
1276 |
+
}
|
1277 |
+
}).success(function (response) {
|
1278 |
+
|
1279 |
+
var data = JSON.parse(response).data;
|
1280 |
+
|
1281 |
+
if (undefined !== data.template_content) {
|
1282 |
+
|
1283 |
+
$(slide).html(data.template_content);
|
1284 |
+
$carouselElem.find(".premium-carousel-inner").slick("refresh");
|
1285 |
+
|
1286 |
+
}
|
1287 |
+
});
|
1288 |
+
}
|
1289 |
+
});
|
1290 |
+
|
1291 |
+
}
|
1292 |
+
|
1293 |
+
$carouselElem.on("init", function (event) {
|
1294 |
+
|
1295 |
+
event.preventDefault();
|
1296 |
+
|
1297 |
+
setTimeout(function () {
|
1298 |
+
resetAnimations("init");
|
1299 |
+
}, 500);
|
1300 |
+
|
1301 |
+
$(this).find("item-wrapper.slick-active").each(function () {
|
1302 |
+
var $this = $(this);
|
1303 |
+
$this.addClass($this.data("animation"));
|
1304 |
+
});
|
1305 |
+
|
1306 |
+
$(".slick-track").addClass("translate");
|
1307 |
+
|
1308 |
+
});
|
1309 |
+
|
1310 |
+
$carouselElem.find(".premium-carousel-inner").slick({
|
1311 |
+
vertical: settings.vertical,
|
1312 |
+
slidesToScroll: settings.slidesToScroll,
|
1313 |
+
slidesToShow: settings.slidesToShow,
|
1314 |
+
responsive: [{
|
1315 |
+
breakpoint: settings.tabletBreak,
|
1316 |
+
settings: {
|
1317 |
+
slidesToShow: settings.slidesTab,
|
1318 |
+
slidesToScroll: settings.slidesTab,
|
1319 |
+
swipe: settings.touchMove,
|
1320 |
+
}
|
1321 |
+
},
|
1322 |
+
{
|
1323 |
+
breakpoint: settings.mobileBreak,
|
1324 |
+
settings: {
|
1325 |
+
slidesToShow: settings.slidesMob,
|
1326 |
+
slidesToScroll: settings.slidesMob,
|
1327 |
+
swipe: settings.touchMove,
|
1328 |
+
}
|
1329 |
+
}
|
1330 |
+
],
|
1331 |
+
useTransform: true,
|
1332 |
+
fade: settings.fade,
|
1333 |
+
infinite: settings.infinite,
|
1334 |
+
speed: settings.speed,
|
1335 |
+
autoplay: settings.autoplay,
|
1336 |
+
autoplaySpeed: settings.autoplaySpeed,
|
1337 |
+
rows: 0,
|
1338 |
+
draggable: settings.draggable,
|
1339 |
+
rtl: settings.rtl,
|
1340 |
+
adaptiveHeight: settings.adaptiveHeight,
|
1341 |
+
pauseOnHover: settings.pauseOnHover,
|
1342 |
+
centerMode: settings.centerMode,
|
1343 |
+
centerPadding: settings.centerPadding,
|
1344 |
+
arrows: settings.arrows,
|
1345 |
+
prevArrow: $carouselElem.find(".premium-carousel-nav-arrow-prev").html(),
|
1346 |
+
nextArrow: $carouselElem.find(".premium-carousel-nav-arrow-next").html(),
|
1347 |
+
dots: settings.dots,
|
1348 |
+
variableWidth: settings.variableWidth,
|
1349 |
+
cssEase: settings.cssEase,
|
1350 |
+
customPaging: function () {
|
1351 |
+
var customDot = $carouselElem.find(".premium-carousel-nav-dot").html();
|
1352 |
+
return customDot;
|
1353 |
+
}
|
1354 |
+
});
|
1355 |
+
|
1356 |
+
$scope.find(".premium-carousel-hidden").removeClass("premium-carousel-hidden");
|
1357 |
+
$carouselElem.find(".premium-carousel-nav-arrow-prev").remove();
|
1358 |
+
$carouselElem.find(".premium-carousel-nav-arrow-next").remove();
|
1359 |
+
// $carouselElem.find(".premium-carousel-nav-dot").remove();
|
1360 |
+
|
1361 |
+
if (settings.variableWidth) {
|
1362 |
+
$carouselElem.find(".elementor-container").css("flex-wrap", "nowrap");
|
1363 |
+
}
|
1364 |
+
|
1365 |
+
function resetAnimations(event) {
|
1366 |
+
|
1367 |
+
var $slides = $carouselElem.find(".slick-slide");
|
1368 |
+
|
1369 |
+
if ("init" === event)
|
1370 |
+
$slides = $slides.not(".slick-current");
|
1371 |
+
|
1372 |
+
$slides.find(".animated").each(function (index, elem) {
|
1373 |
+
|
1374 |
+
var settings = $(elem).data("settings");
|
1375 |
+
|
1376 |
+
if (!settings)
|
1377 |
+
return;
|
1378 |
+
|
1379 |
+
if (!settings._animation && !settings.animation)
|
1380 |
+
return;
|
1381 |
+
|
1382 |
+
var animation = settings._animation || settings.animation;
|
1383 |
+
|
1384 |
+
$(elem).removeClass("animated " + animation).addClass("elementor-invisible");
|
1385 |
+
});
|
1386 |
+
};
|
1387 |
+
|
1388 |
+
function triggerAnimation() {
|
1389 |
+
|
1390 |
+
$carouselElem.find(".slick-active .elementor-invisible").each(function (index, elem) {
|
1391 |
+
|
1392 |
+
var settings = $(elem).data("settings");
|
1393 |
+
|
1394 |
+
if (!settings)
|
1395 |
+
return;
|
1396 |
+
|
1397 |
+
if (!settings._animation && !settings.animation)
|
1398 |
+
return;
|
1399 |
+
|
1400 |
+
var delay = settings._animation_delay ? settings._animation_delay : 0,
|
1401 |
+
animation = settings._animation || settings.animation;
|
1402 |
+
|
1403 |
+
setTimeout(function () {
|
1404 |
+
$(elem).removeClass("elementor-invisible").addClass(animation +
|
1405 |
+
' animated');
|
1406 |
+
}, delay);
|
1407 |
+
});
|
1408 |
+
}
|
1409 |
+
|
1410 |
+
$carouselElem.on("afterChange", function (event, slick, currentSlide) {
|
1411 |
+
|
1412 |
+
var slidesScrolled = slick.options.slidesToScroll,
|
1413 |
+
slidesToShow = slideToShow(slick),
|
1414 |
+
centerMode = slick.options.centerMode,
|
1415 |
+
slideToAnimate = currentSlide + slidesToShow - 1;
|
1416 |
+
|
1417 |
+
//Trigger Aniamtions for the current slide
|
1418 |
+
triggerAnimation();
|
1419 |
+
|
1420 |
+
if (slidesScrolled === 1) {
|
1421 |
+
if (!centerMode === true) {
|
1422 |
+
var $inViewPort = $(this).find("[data-slick-index='" + slideToAnimate +
|
1423 |
+
"']");
|
1424 |
+
if ("null" != settings.animation) {
|
1425 |
+
$inViewPort.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button")
|
1426 |
+
.addClass(settings.animation).removeClass(
|
1427 |
+
"premium-carousel-content-hidden");
|
1428 |
+
}
|
1429 |
+
}
|
1430 |
+
} else {
|
1431 |
+
for (var i = slidesScrolled + currentSlide; i >= 0; i--) {
|
1432 |
+
$inViewPort = $(this).find("[data-slick-index='" + i + "']");
|
1433 |
+
if ("null" != settings.animation) {
|
1434 |
+
$inViewPort.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button")
|
1435 |
+
.addClass(settings.animation).removeClass(
|
1436 |
+
"premium-carousel-content-hidden");
|
1437 |
+
}
|
1438 |
+
}
|
1439 |
+
}
|
1440 |
+
|
1441 |
+
//Fix carousel continues to work after last slide if autoplay is true and infinite is false.
|
1442 |
+
if (slick.$slides.length - 1 == currentSlide && !settings.infinite) {
|
1443 |
+
$carouselElem.find(".premium-carousel-inner").slick('slickSetOption', 'autoplay', false, true);
|
1444 |
+
}
|
1445 |
+
|
1446 |
+
});
|
1447 |
+
|
1448 |
+
$carouselElem.on("beforeChange", function (event, slick, currentSlide) {
|
1449 |
+
|
1450 |
+
//Reset Aniamtions for the other slides
|
1451 |
+
resetAnimations();
|
1452 |
+
|
1453 |
+
var $inViewPort = $(this).find("[data-slick-index='" + currentSlide + "']");
|
1454 |
+
|
1455 |
+
if ("null" != settings.animation) {
|
1456 |
+
$inViewPort.siblings().find(
|
1457 |
+
"p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").removeClass(
|
1458 |
+
settings.animation).addClass(
|
1459 |
+
"premium-carousel-content-hidden");
|
1460 |
+
}
|
1461 |
+
});
|
1462 |
+
|
1463 |
+
if (settings.vertical) {
|
1464 |
+
|
1465 |
+
var maxHeight = -1;
|
1466 |
+
|
1467 |
+
elementorFrontend.elements.$window.on('load', function () {
|
1468 |
+
$carouselElem.find(".slick-slide").each(function () {
|
1469 |
+
if ($(this).height() > maxHeight) {
|
1470 |
+
maxHeight = $(this).height();
|
1471 |
+
}
|
1472 |
+
});
|
1473 |
+
$carouselElem.find(".slick-slide").each(function () {
|
1474 |
+
if ($(this).height() < maxHeight) {
|
1475 |
+
$(this).css("margin", Math.ceil(
|
1476 |
+
(maxHeight - $(this).height()) / 2) + "px 0");
|
1477 |
+
}
|
1478 |
+
});
|
1479 |
+
});
|
1480 |
+
}
|
1481 |
+
var marginFix = {
|
1482 |
+
element: $("a.ver-carousel-arrow"),
|
1483 |
+
getWidth: function () {
|
1484 |
+
var width = this.element.outerWidth();
|
1485 |
+
return width / 2;
|
1486 |
+
},
|
1487 |
+
setWidth: function (type) {
|
1488 |
+
type = type || "vertical";
|
1489 |
+
if (type == "vertical") {
|
1490 |
+
this.element.css("margin-left", "-" + this.getWidth() + "px");
|
1491 |
+
} else {
|
1492 |
+
this.element.css("margin-top", "-" + this.getWidth() + "px");
|
1493 |
+
}
|
1494 |
+
}
|
1495 |
+
};
|
1496 |
+
marginFix.setWidth();
|
1497 |
+
marginFix.element = $("a.carousel-arrow");
|
1498 |
+
marginFix.setWidth("horizontal");
|
1499 |
+
|
1500 |
+
$(document).ready(function () {
|
1501 |
+
|
1502 |
+
settings.navigation.map(function (item, index) {
|
1503 |
+
|
1504 |
+
if (item) {
|
1505 |
+
|
1506 |
+
$(item).on("click", function () {
|
1507 |
+
|
1508 |
+
var currentActive = $carouselElem.find(".premium-carousel-inner").slick("slickCurrentSlide");
|
1509 |
+
|
1510 |
+
if (index !== currentActive) {
|
1511 |
+
$carouselElem.find(".premium-carousel-inner").slick("slickGoTo", index)
|
1512 |
+
}
|
1513 |
+
|
1514 |
+
})
|
1515 |
+
}
|
1516 |
+
|
1517 |
+
})
|
1518 |
+
})
|
1519 |
+
|
1520 |
+
};
|
1521 |
+
|
1522 |
+
var PremiumBannerHandler = ModuleHandler.extend({
|
1523 |
+
|
1524 |
+
getDefaultSettings: function () {
|
1525 |
+
|
1526 |
+
return {
|
1527 |
+
selectors: {
|
1528 |
+
bannerImgWrap: '.premium-banner-ib',
|
1529 |
+
bannerImg: 'img',
|
1530 |
+
}
|
1531 |
+
}
|
1532 |
+
|
1533 |
+
},
|
1534 |
+
|
1535 |
+
getDefaultElements: function () {
|
1536 |
+
|
1537 |
+
var selectors = this.getSettings('selectors');
|
1538 |
+
|
1539 |
+
return {
|
1540 |
+
$bannerImgWrap: this.$element.find(selectors.bannerImgWrap),
|
1541 |
+
$bannerImg: this.$element.find(selectors.bannerImg)
|
1542 |
+
}
|
1543 |
+
|
1544 |
+
},
|
1545 |
+
|
1546 |
+
bindEvents: function () {
|
1547 |
+
|
1548 |
+
var _this = this;
|
1549 |
+
|
1550 |
+
_this.elements.$bannerImgWrap.hover(function () {
|
1551 |
+
_this.elements.$bannerImg.addClass("active");
|
1552 |
+
}, function () {
|
1553 |
+
_this.elements.$bannerImg.removeClass("active");
|
1554 |
+
});
|
1555 |
+
|
1556 |
+
this.run();
|
1557 |
+
},
|
1558 |
+
|
1559 |
+
run: function () {
|
1560 |
+
|
1561 |
+
var $bannerElement = this.$element;
|
1562 |
+
|
1563 |
+
if ($bannerElement.hasClass("premium-banner-tilt-yes")) {
|
1564 |
+
|
1565 |
+
var reverse = $bannerElement.hasClass("premium-banner-tilt-rev-yes");
|
1566 |
+
|
1567 |
+
UniversalTilt.init({
|
1568 |
+
elements: $bannerElement.closest(".elementor-widget"),
|
1569 |
+
settings: {
|
1570 |
+
reverse: reverse
|
1571 |
+
},
|
1572 |
+
callbacks: {
|
1573 |
+
onMouseLeave: function (el) {
|
1574 |
+
el.style.boxShadow = "0 45px 100px rgba(255, 255, 255, 0)";
|
1575 |
+
},
|
1576 |
+
onDeviceMove: function (el) {
|
1577 |
+
el.style.boxShadow = "0 45px 100px rgba(255, 255, 255, 0.3)";
|
1578 |
+
}
|
1579 |
+
}
|
1580 |
+
});
|
1581 |
+
|
1582 |
+
}
|
1583 |
+
}
|
1584 |
+
|
1585 |
+
});
|
1586 |
+
|
1587 |
+
/****** Premium Modal Box Handler ******/
|
1588 |
+
var PremiumModalBoxHandler = function ($scope, $) {
|
1589 |
+
|
1590 |
+
var $modalElem = $scope.find(".premium-modal-box-container"),
|
1591 |
+
settings = $modalElem.data("settings"),
|
1592 |
+
$modal = $modalElem.find(".premium-modal-box-modal-dialog");
|
1593 |
+
|
1594 |
+
if (!settings) {
|
1595 |
+
return;
|
1596 |
+
}
|
1597 |
+
|
1598 |
+
if (settings.trigger === "pageload") {
|
1599 |
+
$(document).ready(function ($) {
|
1600 |
+
setTimeout(function () {
|
1601 |
+
$modalElem.find(".premium-modal-box-modal").modal();
|
1602 |
+
}, settings.delay * 1000);
|
1603 |
+
});
|
1604 |
+
}
|
1605 |
+
|
1606 |
+
if ($modal.data("modal-animation") && " " != $modal.data("modal-animation")) {
|
1607 |
+
|
1608 |
+
var animationDelay = $modal.data('delay-animation');
|
1609 |
+
|
1610 |
+
new Waypoint({
|
1611 |
+
element: $modal,
|
1612 |
+
handler: function () {
|
1613 |
+
setTimeout(function () {
|
1614 |
+
$modal.css("opacity", "1").addClass("animated " + $modal.data("modal-animation"));
|
1615 |
+
}, animationDelay * 1000);
|
1616 |
+
this.destroy();
|
1617 |
+
},
|
1618 |
+
offset: Waypoint.viewportHeight() - 150,
|
1619 |
+
});
|
1620 |
+
}
|
1621 |
+
};
|
1622 |
+
|
1623 |
+
/****** Premium Blog Handler ******/
|
1624 |
+
var PremiumBlogHandler = ModuleHandler.extend({
|
1625 |
+
|
1626 |
+
settings: {},
|
1627 |
+
|
1628 |
+
getDefaultSettings: function () {
|
1629 |
+
return {
|
1630 |
+
selectors: {
|
1631 |
+
user: '.fa-user',
|
1632 |
+
activeCat: '.category.active',
|
1633 |
+
loading: '.premium-loading-feed',
|
1634 |
+
blogElement: '.premium-blog-wrap',
|
1635 |
+
blogFilterTabs: '.premium-blog-filter',
|
1636 |
+
contentWrapper: '.premium-blog-content-wrapper',
|
1637 |
+
blogPost: '.premium-blog-post-outer-container',
|
1638 |
+
metaSeparators: '.premium-blog-meta-separator',
|
1639 |
+
filterLinks: '.premium-blog-filters-container li a',
|
1640 |
+
currentPage: '.premium-blog-pagination-container .page-numbers.current',
|
1641 |
+
activeElememnt: '.premium-blog-filters-container li .active',
|
1642 |
+
}
|
1643 |
+
}
|
1644 |
+
},
|
1645 |
+
|
1646 |
+
getDefaultElements: function () {
|
1647 |
+
var selectors = this.getSettings('selectors'),
|
1648 |
+
elements = {
|
1649 |
+
$blogElement: this.$element.find(selectors.blogElement),
|
1650 |
+
$blogFilterTabs: this.$element.find(selectors.blogFilterTabs),
|
1651 |
+
$activeCat: this.$element.find(selectors.activeCat),
|
1652 |
+
$filterLinks: this.$element.find(selectors.filterLinks),
|
1653 |
+
$blogPost: this.$element.find(selectors.blogPost),
|
1654 |
+
$contentWrapper: this.$element.find(selectors.contentWrapper)
|
1655 |
+
};
|
1656 |
+
|
1657 |
+
return elements;
|
1658 |
+
},
|
1659 |
+
|
1660 |
+
bindEvents: function () {
|
1661 |
+
this.setLayoutSettings();
|
1662 |
+
this.removeMetaSeparators();
|
1663 |
+
this.run();
|
1664 |
+
},
|
1665 |
+
|
1666 |
+
setLayoutSettings: function () {
|
1667 |
+
|
1668 |
+
var settings = this.getElementSettings(),
|
1669 |
+
$blogPost = this.elements.$blogPost;
|
1670 |
+
|
1671 |
+
var layoutSettings = {
|
1672 |
+
pageNumber: 1,
|
1673 |
+
isLoaded: true,
|
1674 |
+
count: 2,
|
1675 |
+
equalHeight: settings.force_height,
|
1676 |
+
layout: settings.premium_blog_layout,
|
1677 |
+
carousel: 'yes' === settings.premium_blog_carousel ? true : false,
|
1678 |
+
infinite: 'yes' === settings.premium_blog_infinite_scroll ? true : false,
|
1679 |
+
scrollAfter: 'yes' === settings.scroll_to_offset ? true : false,
|
1680 |
+
grid: 'yes' === settings.premium_blog_grid ? true : false,
|
1681 |
+
total: $blogPost.data('total'),
|
1682 |
+
};
|
1683 |
+
|
1684 |
+
|
1685 |
+
if (layoutSettings.carousel) {
|
1686 |
+
|
1687 |
+
layoutSettings.slidesToScroll = settings.slides_to_scroll;
|
1688 |
+
layoutSettings.spacing = parseInt(settings.premium_blog_carousel_spacing);
|
1689 |
+
layoutSettings.autoPlay = 'yes' === settings.premium_blog_carousel_play ? true : false;
|
1690 |
+
layoutSettings.arrows = 'yes' === settings.premium_blog_carousel_arrows ? true : false;
|
1691 |
+
layoutSettings.fade = 'yes' === settings.premium_blog_carousel_fade ? true : false;
|
1692 |
+
layoutSettings.center = 'yes' === settings.premium_blog_carousel_center ? true : false;
|
1693 |
+
layoutSettings.dots = 'yes' === settings.premium_blog_carousel_dots ? true : false;
|
1694 |
+
layoutSettings.speed = '' !== settings.premium_blog_carousel_autoplay_speed ? parseInt(settings.premium_blog_carousel_autoplay_speed) : 5000;
|
1695 |
+
|
1696 |
+
}
|
1697 |
+
|
1698 |
+
this.settings = layoutSettings;
|
1699 |
+
|
1700 |
+
},
|
1701 |
+
|
1702 |
+
removeMetaSeparators: function () {
|
1703 |
+
|
1704 |
+
var selectors = this.getSettings('selectors'),
|
1705 |
+
$blogPost = this.$element.find(selectors.blogPost);
|
1706 |
+
|
1707 |
+
var $metaSeparators = $blogPost.first().find(selectors.metaSeparators),
|
1708 |
+
$user = $blogPost.find(selectors.user);
|
1709 |
+
|
1710 |
+
if (1 === $metaSeparators.length) {
|
1711 |
+
//If two meta only are enabled. One of them is author meta.
|
1712 |
+
if (!$user.length) {
|
1713 |
+
$blogPost.find(selectors.metaSeparators).remove();
|
1714 |
+
}
|
1715 |
+
|
1716 |
+
} else {
|
1717 |
+
if (!$user.length) {
|
1718 |
+
$blogPost.each(function (index, post) {
|
1719 |
+
$(post).find(selectors.metaSeparators).first().remove();
|
1720 |
+
});
|
1721 |
+
}
|
1722 |
+
}
|
1723 |
+
|
1724 |
+
},
|
1725 |
+
run: function () {
|
1726 |
+
|
1727 |
+
var _this = this,
|
1728 |
+
$blogElement = this.elements.$blogElement,
|
1729 |
+
$activeCategory = this.elements.$activeCat.data('filter'),
|
1730 |
+
$filterTabs = this.elements.$blogFilterTabs.length,
|
1731 |
+
pagination = $blogElement.data("pagination");
|
1732 |
+
|
1733 |
+
this.settings.activeCategory = $activeCategory;
|
1734 |
+
this.settings.filterTabs = $filterTabs;
|
1735 |
+
|
1736 |
+
|
1737 |
+
|
1738 |
+
if (this.settings.filterTabs) {
|
1739 |
+
this.filterTabs();
|
1740 |
+
}
|
1741 |
+
|
1742 |
+
if (!this.settings.filterTabs || "*" === this.settings.activeCategory) {
|
1743 |
+
if ("masonry" === this.settings.layout && !this.settings.carousel) {
|
1744 |
+
$blogElement.imagesLoaded(function () {
|
1745 |
+
$blogElement.isotope(_this.getIsoTopeSettings());
|
1746 |
+
});
|
1747 |
+
}
|
1748 |
+
} else {
|
1749 |
+
//If `All` categories not exist, then we need to get posts through AJAX.
|
1750 |
+
this.getPostsByAjax(false);
|
1751 |
+
}
|
1752 |
+
|
1753 |
+
if (this.settings.carousel) {
|
1754 |
+
$blogElement.slick(this.getSlickSettings());
|
1755 |
+
|
1756 |
+
$blogElement.removeClass("premium-carousel-hidden");
|
1757 |
+
}
|
1758 |
+
|
1759 |
+
if ("even" === this.settings.layout && this.settings.equalHeight) {
|
1760 |
+
$blogElement.imagesLoaded(function () {
|
1761 |
+
_this.forceEqualHeight();
|
1762 |
+
});
|
1763 |
+
}
|
1764 |
+
|
1765 |
+
if (pagination) {
|
1766 |
+
this.paginate();
|
1767 |
+
}
|
1768 |
+
|
1769 |
+
if (this.settings.infinite && $blogElement.is(":visible")) {
|
1770 |
+
this.getInfiniteScrollPosts();
|
1771 |
+
}
|
1772 |
+
|
1773 |
+
},
|
1774 |
+
|
1775 |
+
paginate: function () {
|
1776 |
+
var _this = this,
|
1777 |
+
$scope = this.$element,
|
1778 |
+
selectors = this.getSettings('selectors');
|
1779 |
+
|
1780 |
+
$scope.on('click', '.premium-blog-pagination-container .page-numbers', function (e) {
|
1781 |
+
|
1782 |
+
e.preventDefault();
|
1783 |
+
|
1784 |
+
if ($(this).hasClass("current")) return;
|
1785 |
+
|
1786 |
+
var currentPage = parseInt($scope.find(selectors.currentPage).html());
|
1787 |
+
|
1788 |
+
if ($(this).hasClass('next')) {
|
1789 |
+
_this.settings.pageNumber = currentPage + 1;
|
1790 |
+
} else if ($(this).hasClass('prev')) {
|
1791 |
+
_this.settings.pageNumber = currentPage - 1;
|
1792 |
+
} else {
|
1793 |
+
_this.settings.pageNumber = $(this).html();
|
1794 |
+
}
|
1795 |
+
|
1796 |
+
_this.getPostsByAjax(_this.settings.scrollAfter);
|
1797 |
+
|
1798 |
+
})
|
1799 |
+
},
|
1800 |
+
|
1801 |
+
forceEqualHeight: function () {
|
1802 |
+
var heights = new Array(),
|
1803 |
+
contentWrapper = this.getSettings('selectors').contentWrapper,
|
1804 |
+
$blogWrapper = this.$element.find(contentWrapper);
|
1805 |
+
|
1806 |
+
$blogWrapper.each(function (index, post) {
|
1807 |
+
|
1808 |
+
var height = $(post).outerHeight();
|
1809 |
+
|
1810 |
+
heights.push(height);
|
1811 |
+
});
|
1812 |
+
|
1813 |
+
var maxHeight = Math.max.apply(null, heights);
|
1814 |
+
|
1815 |
+
$blogWrapper.css("height", maxHeight + "px");
|
1816 |
+
},
|
1817 |
+
|
1818 |
+
getSlickSettings: function () {
|
1819 |
+
|
1820 |
+
var settings = this.settings,
|
1821 |
+
slickCols = settings.grid ? this.getSlickCols() : null,
|
1822 |
+
cols = settings.grid ? slickCols.cols : 1,
|
1823 |
+
colsTablet = settings.grid ? slickCols.colsTablet : 1,
|
1824 |
+
colsMobile = settings.grid ? slickCols.colsMobile : 1,
|
1825 |
+
prevArrow = settings.arrows ? '<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Previous" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>' : '',
|
1826 |
+
nextArrow = settings.arrows ? '<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>' : '';
|
1827 |
+
|
1828 |
+
return {
|
1829 |
+
infinite: true,
|
1830 |
+
slidesToShow: cols,
|
1831 |
+
slidesToScroll: settings.slidesToScroll || cols,
|
1832 |
+
responsive: [{
|
1833 |
+
breakpoint: 1025,
|
1834 |
+
settings: {
|
1835 |
+
slidesToShow: colsTablet,
|
1836 |
+
slidesToScroll: 1
|
1837 |
+
}
|
1838 |
+
},
|
1839 |
+
{
|
1840 |
+
breakpoint: 768,
|
1841 |
+
settings: {
|
1842 |
+
slidesToShow: colsMobile,
|
1843 |
+
slidesToScroll: 1
|
1844 |
+
}
|
1845 |
+
}
|
1846 |
+
],
|
1847 |
+
autoplay: settings.autoPlay,
|
1848 |
+
rows: 0,
|
1849 |
+
autoplaySpeed: settings.speed,
|
1850 |
+
nextArrow: nextArrow,
|
1851 |
+
prevArrow: prevArrow,
|
1852 |
+
fade: settings.fade,
|
1853 |
+
centerMode: settings.center,
|
1854 |
+
centerPadding: settings.spacing + "px",
|
1855 |
+
draggable: true,
|
1856 |
+
dots: settings.dots,
|
1857 |
+
customPaging: function () {
|
1858 |
+
return '<i class="fas fa-circle"></i>';
|
1859 |
+
}
|
1860 |
+
}
|
1861 |
+
|
1862 |
+
},
|
1863 |
+
|
1864 |
+
getSlickCols: function () {
|
1865 |
+
var slickCols = this.getElementSettings(),
|
1866 |
+
cols = slickCols.premium_blog_columns_number,
|
1867 |
+
colsTablet = slickCols.premium_blog_columns_number_tablet,
|
1868 |
+
colsMobile = slickCols.premium_blog_columns_number_mobile;
|
1869 |
+
|
1870 |
+
return {
|
1871 |
+
cols: parseInt(100 / cols.substr(0, cols.indexOf('%'))),
|
1872 |
+
colsTablet: parseInt(100 / colsTablet.substr(0, colsTablet.indexOf('%'))),
|
1873 |
+
colsMobile: parseInt(100 / colsMobile.substr(0, colsMobile.indexOf('%'))),
|
1874 |
+
}
|
1875 |
+
|
1876 |
+
},
|
1877 |
+
|
1878 |
+
getIsoTopeSettings: function () {
|
1879 |
+
return {
|
1880 |
+
itemSelector: ".premium-blog-post-outer-container",
|
1881 |
+
percentPosition: true,
|
1882 |
+
filter: this.settings.activeCategory,
|
1883 |
+
animationOptions: {
|
1884 |
+
duration: 750,
|
1885 |
+
easing: "linear",
|
1886 |
+
queue: false
|
1887 |
+
}
|
1888 |
+
}
|
1889 |
+
},
|
1890 |
+
|
1891 |
+
filterTabs: function () {
|
1892 |
+
|
1893 |
+
var _this = this,
|
1894 |
+
selectors = this.getSettings('selectors'),
|
1895 |
+
$filterLinks = this.elements.$filterLinks;
|
1896 |
+
|
1897 |
+
$filterLinks.click(function (e) {
|
1898 |
+
|
1899 |
+
e.preventDefault();
|
1900 |
+
|
1901 |
+
_this.$element.find(selectors.activeElememnt).removeClass("active");
|
1902 |
+
|
1903 |
+
$(this).addClass("active");
|
1904 |
+
|
1905 |
+
//Get clicked tab slug
|
1906 |
+
_this.settings.activeCategory = $(this).attr("data-filter");
|
1907 |
+
|
1908 |
+
_this.settings.pageNumber = 1;
|
1909 |
+
|
1910 |
+
if (_this.settings.infinite) {
|
1911 |
+
_this.getPostsByAjax(false);
|
1912 |
+
_this.settings.count = 2;
|
1913 |
+
_this.getInfiniteScrollPosts();
|
1914 |
+
} else {
|
1915 |
+
//Make sure to reset pagination before sending our AJAX request
|
1916 |
+
_this.getPostsByAjax(_this.settings.scrollAfter);
|
1917 |
+
}
|
1918 |
+
|
1919 |
+
});
|
1920 |
+
},
|
1921 |
+
|
1922 |
+
getPostsByAjax: function (shouldScroll) {
|
1923 |
+
|
1924 |
+
//If filter tabs is not enabled, then always set category to all.
|
1925 |
+
if ('undefined' === typeof this.settings.activeCategory) {
|
1926 |
+
this.settings.activeCategory = '*';
|
1927 |
+
}
|
1928 |
+
|
1929 |
+
var _this = this,
|
1930 |
+
$blogElement = this.elements.$blogElement,
|
1931 |
+
selectors = this.getSettings('selectors');
|
1932 |
+
|
1933 |
+
$.ajax({
|
1934 |
+
url: PremiumSettings.ajaxurl,
|
1935 |
+
dataType: 'json',
|
1936 |
+
type: 'POST',
|
1937 |
+
data: {
|
1938 |
+
action: 'pa_get_posts',
|
1939 |
+
page_id: $blogElement.data('page'),
|
1940 |
+
widget_id: _this.$element.data('id'),
|
1941 |
+
page_number: _this.settings.pageNumber,
|
1942 |
+
category: _this.settings.activeCategory,
|
1943 |
+
nonce: PremiumSettings.nonce,
|
1944 |
+
},
|
1945 |
+
beforeSend: function () {
|
1946 |
+
|
1947 |
+
$blogElement.append('<div class="premium-loading-feed"><div class="premium-loader"></div></div>');
|
1948 |
+
|
1949 |
+
if (shouldScroll) {
|
1950 |
+
$('html, body').animate({
|
1951 |
+
scrollTop: (($blogElement.offset().top) - 50)
|
1952 |
+
}, 'slow');
|
1953 |
+
}
|
1954 |
+
|
1955 |
+
},
|
1956 |
+
success: function (res) {
|
1957 |
+
if (!res.data)
|
1958 |
+
return;
|
1959 |
+
|
1960 |
+
$blogElement.find(selectors.loading).remove();
|
1961 |
+
|
1962 |
+
var posts = res.data.posts,
|
1963 |
+
paging = res.data.paging;
|
1964 |
+
|
1965 |
+
if (_this.settings.infinite) {
|
1966 |
+
_this.settings.isLoaded = true;
|
1967 |
+
if (_this.settings.filterTabs && _this.settings.pageNumber === 1) {
|
1968 |
+
$blogElement.html(posts);
|
1969 |
+
} else {
|
1970 |
+
$blogElement.append(posts);
|
1971 |
+
}
|
1972 |
+
} else {
|
1973 |
+
//Render the new markup into the widget
|
1974 |
+
$blogElement.html(posts);
|
1975 |
+
|
1976 |
+
_this.$element.find(".premium-blog-footer").html(paging);
|
1977 |
+
}
|
1978 |
+
|
1979 |
+
_this.removeMetaSeparators();
|
1980 |
+
|
1981 |
+
//Make sure grid option is enabled.
|
1982 |
+
if (_this.settings.layout) {
|
1983 |
+
if ("even" === _this.settings.layout) {
|
1984 |
+
if (_this.settings.equalHeight)
|
1985 |
+
_this.forceEqualHeight();
|
1986 |
+
|
1987 |
+
} else {
|
1988 |
+
|
1989 |
+
$blogElement.imagesLoaded(function () {
|
1990 |
+
|
1991 |
+
$blogElement.isotope('reloadItems');
|
1992 |
+
$blogElement.isotope({
|
1993 |
+
itemSelector: ".premium-blog-post-outer-container",
|
1994 |
+
animate: false
|
1995 |
+
});
|
1996 |
+
});
|
1997 |
+
}
|
1998 |
+
}
|
1999 |
+
|
2000 |
+
},
|
2001 |
+
error: function (err) {
|
2002 |
+
console.log(err);
|
2003 |
+
}
|
2004 |
+
|
2005 |
+
});
|
2006 |
+
},
|
2007 |
+
|
2008 |
+
getInfiniteScrollPosts: function () {
|
2009 |
+
var windowHeight = jQuery(window).outerHeight() / 1.25,
|
2010 |
+
_this = this;
|
2011 |
+
|
2012 |
+
$(window).scroll(function () {
|
2013 |
+
|
2014 |
+
if (_this.settings.filterTabs) {
|
2015 |
+
$blogPost = _this.elements.$blogElement.find(".premium-blog-post-outer-container");
|
2016 |
+
_this.settings.total = $blogPost.data('total');
|
2017 |
+
}
|
2018 |
+
|
2019 |
+
if (_this.settings.count <= _this.settings.total) {
|
2020 |
+
if (($(window).scrollTop() + windowHeight) >= (_this.$element.find('.premium-blog-post-outer-container:last').offset().top)) {
|
2021 |
+
if (true == _this.settings.isLoaded) {
|
2022 |
+
_this.settings.pageNumber = _this.settings.count;
|
2023 |
+
_this.getPostsByAjax(false);
|
2024 |
+
_this.settings.count++;
|
2025 |
+
_this.settings.isLoaded = false;
|
2026 |
+
}
|
2027 |
+
|
2028 |
+
}
|
2029 |
+
}
|
2030 |
+
});
|
2031 |
+
},
|
2032 |
+
|
2033 |
+
});
|
2034 |
+
|
2035 |
+
/****** Premium Image Scroll Handler ******/
|
2036 |
+
var PremiumImageScrollHandler = function ($scope, $) {
|
2037 |
+
var scrollElement = $scope.find(".premium-image-scroll-container"),
|
2038 |
+
scrollOverlay = scrollElement.find(".premium-image-scroll-overlay"),
|
2039 |
+
scrollVertical = scrollElement.find(".premium-image-scroll-vertical"),
|
2040 |
+
dataElement = scrollElement.data("settings"),
|
2041 |
+
imageScroll = scrollElement.find("img"),
|
2042 |
+
direction = dataElement["direction"],
|
2043 |
+
reverse = dataElement["reverse"],
|
2044 |
+
transformOffset = null;
|
2045 |
+
|
2046 |
+
function startTransform() {
|
2047 |
+
imageScroll.css("transform", (direction === "vertical" ? "translateY" : "translateX") + "( -" +
|
2048 |
+
transformOffset + "px)");
|
2049 |
+
}
|
2050 |
+
|
2051 |
+
function endTransform() {
|
2052 |
+
imageScroll.css("transform", (direction === "vertical" ? "translateY" : "translateX") + "(0px)");
|
2053 |
+
}
|
2054 |
+
|
2055 |
+
function setTransform() {
|
2056 |
+
if (direction === "vertical") {
|
2057 |
+
transformOffset = imageScroll.height() - scrollElement.height();
|
2058 |
+
} else {
|
2059 |
+
transformOffset = imageScroll.width() - scrollElement.width();
|
2060 |
+
}
|
2061 |
+
}
|
2062 |
+
if (dataElement["trigger"] === "scroll") {
|
2063 |
+
scrollElement.addClass("premium-container-scroll");
|
2064 |
+
if (direction === "vertical") {
|
2065 |
+
scrollVertical.addClass("premium-image-scroll-ver");
|
2066 |
+
} else {
|
2067 |
+
scrollElement.imagesLoaded(function () {
|
2068 |
+
scrollOverlay.css({
|
2069 |
+
width: imageScroll.width(),
|
2070 |
+
height: imageScroll.height()
|
2071 |
+
});
|
2072 |
+
});
|
2073 |
+
}
|
2074 |
+
} else {
|
2075 |
+
if (reverse === "yes") {
|
2076 |
+
scrollElement.imagesLoaded(function () {
|
2077 |
+
scrollElement.addClass("premium-container-scroll-instant");
|
2078 |
+
setTransform();
|
2079 |
+
startTransform();
|
2080 |
+
});
|
2081 |
+
}
|
2082 |
+
if (direction === "vertical") {
|
2083 |
+
scrollVertical.removeClass("premium-image-scroll-ver");
|
2084 |
+
}
|
2085 |
+
scrollElement.mouseenter(function () {
|
2086 |
+
scrollElement.removeClass("premium-container-scroll-instant");
|
2087 |
+
setTransform();
|
2088 |
+
reverse === "yes" ? endTransform() : startTransform();
|
2089 |
+
});
|
2090 |
+
scrollElement.mouseleave(function () {
|
2091 |
+
reverse === "yes" ? startTransform() : endTransform();
|
2092 |
+
});
|
2093 |
+
}
|
2094 |
+
};
|
2095 |
+
|
2096 |
+
|
2097 |
+
/****** Premium Contact Form 7 Handler ******/
|
2098 |
+
var PremiumContactFormHandler = function ($scope, $) {
|
2099 |
+
|
2100 |
+
var $contactForm = $scope.find(".premium-cf7-container");
|
2101 |
+
var $input = $contactForm.find(
|
2102 |
+
'input[type="text"], input[type="email"], textarea, input[type="password"], input[type="date"], input[type="number"], input[type="tel"], input[type="file"], input[type="url"]'
|
2103 |
+
);
|
2104 |
+
|
2105 |
+
$input.wrap("<span class='wpcf7-span'>");
|
2106 |
+
|
2107 |
+
$input.on("focus blur", function () {
|
2108 |
+
$(this).closest(".wpcf7-span").toggleClass("is-focused");
|
2109 |
+
});
|
2110 |
+
};
|
2111 |
+
|
2112 |
+
/****** Premium Team Members Handler ******/
|
2113 |
+
var PremiumTeamMembersHandler = ModuleHandler.extend({
|
2114 |
+
|
2115 |
+
getDefaultSettings: function () {
|
2116 |
+
|
2117 |
+
return {
|
2118 |
+
slick: {
|
2119 |
+
infinite: true,
|
2120 |
+
rows: 0,
|
2121 |
+
prevArrow: '<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Next" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>',
|
2122 |
+
nextArrow: '<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>',
|
2123 |
+
draggable: true,
|
2124 |
+
pauseOnHover: true,
|
2125 |
+
},
|
2126 |
+
selectors: {
|
2127 |
+
multiplePersons: '.multiple-persons',
|
2128 |
+
person: '.premium-person-container',
|
2129 |
+
personCarousel: '.premium-person-container.slick-active',
|
2130 |
+
personImg: '.premium-person-image-container img',
|
2131 |
+
|
2132 |
+
}
|
2133 |
+
}
|
2134 |
+
},
|
2135 |
+
|
2136 |
+
getDefaultElements: function () {
|
2137 |
+
|
2138 |
+
var selectors = this.getSettings('selectors');
|
2139 |
+
|
2140 |
+
return {
|
2141 |
+
$multiplePersons: this.$element.find(selectors.multiplePersons),
|
2142 |
+
$persons: this.$element.find(selectors.person),
|
2143 |
+
$personImg: this.$element.find(selectors.personImg),
|
2144 |
+
}
|
2145 |
+
|
2146 |
+
},
|
2147 |
+
bindEvents: function () {
|
2148 |
+
this.run();
|
2149 |
+
},
|
2150 |
+
getSlickSettings: function () {
|
2151 |
+
|
2152 |
+
var settings = this.getElementSettings(),
|
2153 |
+
rtl = this.elements.$multiplePersons.data("rtl"),
|
2154 |
+
colsNumber = settings.persons_per_row,
|
2155 |
+
colsTablet = settings.persons_per_row_tablet,
|
2156 |
+
colsMobile = settings.persons_per_row_mobile;
|
2157 |
+
|
2158 |
+
return Object.assign(this.getSettings('slick'), {
|
2159 |
+
|
2160 |
+
slidesToShow: parseInt(100 / colsNumber.substr(0, colsNumber.indexOf('%'))),
|
2161 |
+
slidesToScroll: parseInt(100 / colsNumber.substr(0, colsNumber.indexOf('%'))),
|
2162 |
+
responsive: [{
|
2163 |
+
breakpoint: 1025,
|
2164 |
+
settings: {
|
2165 |
+
slidesToShow: parseInt(100 / colsTablet.substr(0, colsTablet.indexOf('%'))),
|
2166 |
+
slidesToScroll: 1
|
2167 |
+
}
|
2168 |
+
},
|
2169 |
+
{
|
2170 |
+
breakpoint: 768,
|
2171 |
+
settings: {
|
2172 |
+
slidesToShow: parseInt(100 / colsMobile.substr(0, colsMobile.indexOf('%'))),
|
2173 |
+
slidesToScroll: 1
|
2174 |
+
}
|
2175 |
+
}
|
2176 |
+
],
|
2177 |
+
autoplay: settings.carousel_play,
|
2178 |
+
rtl: rtl ? true : false,
|
2179 |
+
autoplaySpeed: settings.speed || 5000,
|
2180 |
+
|
2181 |
+
});
|
2182 |
+
|
2183 |
+
|
2184 |
+
},
|
2185 |
+
|
2186 |
+
runEqualHeight: function () {
|
2187 |
+
|
2188 |
+
var $persons = this.elements.$persons,
|
2189 |
+
$personImg = this.elements.$personImg;
|
2190 |
+
|
2191 |
+
var selectors = this.getSettings('selectors'),
|
2192 |
+
carousel = this.getElementSettings('carousel'),
|
2193 |
+
heights = new Array();
|
2194 |
+
|
2195 |
+
if (carousel) {
|
2196 |
+
$persons = this.$element.find(selectors.personCarousel);
|
2197 |
+
}
|
2198 |
+
|
2199 |
+
$persons.each(function (index, person) {
|
2200 |
+
$(person).imagesLoaded(function () { }).done(function () {
|
2201 |
+
|
2202 |
+
var imageHeight = $(person).find(selectors.personImg).outerHeight();
|
2203 |
+
|
2204 |
+
heights.push(imageHeight);
|
2205 |
+
});
|
2206 |
+
});
|
2207 |
+
|
2208 |
+
$persons.imagesLoaded(function () { }).done(function () {
|
2209 |
+
var maxHeight = Math.max.apply(null, heights);
|
2210 |
+
$personImg.css("height", maxHeight + "px");
|
2211 |
+
});
|
2212 |
+
|
2213 |
+
},
|
2214 |
+
|
2215 |
+
run: function () {
|
2216 |
+
|
2217 |
+
var $multiplePersons = this.elements.$multiplePersons,
|
2218 |
+
_this = this;
|
2219 |
+
|
2220 |
+
if (!$multiplePersons.length) return;
|
2221 |
+
|
2222 |
+
if ("yes" === $multiplePersons.data("persons-equal")) {
|
2223 |
+
this.runEqualHeight();
|
2224 |
+
}
|
2225 |
+
|
2226 |
+
var carousel = this.getElementSettings('carousel');
|
2227 |
+
|
2228 |
+
if (carousel)
|
2229 |
+
$multiplePersons.slick(this.getSlickSettings());
|
2230 |
+
|
2231 |
+
}
|
2232 |
+
|
2233 |
+
});
|
2234 |
+
|
2235 |
+
/****** Premium Title Handler ******/
|
2236 |
+
var PremiumTitleHandler = function ($scope, $) {
|
2237 |
+
|
2238 |
+
var $titleContainer = $scope.find(".premium-title-container"),
|
2239 |
+
$titleElement = $titleContainer.find('.premium-title-text');
|
2240 |
+
|
2241 |
+
if ($titleContainer.hasClass('style9')) {
|
2242 |
+
var $style9 = $scope.find(".premium-title-style9");
|
2243 |
+
|
2244 |
+
$style9.each(function () {
|
2245 |
+
var elm = $(this);
|
2246 |
+
var holdTime = elm.attr('data-blur-delay') * 1000;
|
2247 |
+
elm.attr('data-animation-blur', 'process')
|
2248 |
+
elm.find('.premium-title-style9-letter').each(function (index, letter) {
|
2249 |
+
index += 1;
|
2250 |
+
var animateDelay;
|
2251 |
+
if ($('body').hasClass('rtl')) {
|
2252 |
+
animateDelay = 0.2 / index + 's';
|
2253 |
+
} else {
|
2254 |
+
animateDelay = index / 20 + 's';
|
2255 |
+
}
|
2256 |
+
$(letter).css({
|
2257 |
+
'-webkit-animation-delay': animateDelay,
|
2258 |
+
'animation-delay': animateDelay
|
2259 |
+
});
|
2260 |
+
})
|
2261 |
+
setInterval(function () {
|
2262 |
+
elm.attr('data-animation-blur', 'done')
|
2263 |
+
setTimeout(function () {
|
2264 |
+
elm.attr('data-animation-blur', 'process')
|
2265 |
+
}, 150);
|
2266 |
+
}, holdTime);
|
2267 |
+
});
|
2268 |
+
}
|
2269 |
+
|
2270 |
+
|
2271 |
+
if ($titleContainer.hasClass('style8')) {
|
2272 |
+
|
2273 |
+
var holdTime = $titleElement.attr('data-shiny-delay') * 1000,
|
2274 |
+
duration = $titleElement.attr('data-shiny-dur') * 1000;
|
2275 |
+
|
2276 |
+
function shinyEffect() {
|
2277 |
+
$titleElement.get(0).setAttribute('data-animation', 'shiny');
|
2278 |
+
setTimeout(function () {
|
2279 |
+
$titleElement.removeAttr('data-animation')
|
2280 |
+
}, duration);
|
2281 |
+
}
|
2282 |
+
|
2283 |
+
(function repeat() {
|
2284 |
+
shinyEffect();
|
2285 |
+
setTimeout(repeat, holdTime);
|
2286 |
+
})();
|
2287 |
+
}
|
2288 |
+
|
2289 |
+
};
|
2290 |
+
|
2291 |
+
/****** Premium Bullet List Handler ******/
|
2292 |
+
var PremiumBulletListHandler = function ($scope, $) {
|
2293 |
+
|
2294 |
+
var $listItems = $scope.find(".premium-bullet-list-box"),
|
2295 |
+
items = $listItems.find(".premium-bullet-list-content");
|
2296 |
+
|
2297 |
+
items.each(function (index, item) {
|
2298 |
+
|
2299 |
+
if ($listItems.data("list-animation") && " " != $listItems.data("list-animation")) {
|
2300 |
+
elementorFrontend.waypoint($(item), function () {
|
2301 |
+
|
2302 |
+
var element = $(item),
|
2303 |
+
delay = element.data('delay');
|
2304 |
+
|
2305 |
+
setTimeout(function () {
|
2306 |
+
element.next('.premium-bullet-list-divider , .premium-bullet-list-divider-inline').css("opacity", "1");
|
2307 |
+
element.next('.premium-bullet-list-divider-inline , .premium-bullet-list-divider').addClass("animated " + $listItems.data("list-animation"));
|
2308 |
+
|
2309 |
+
element.css("opacity", "1").addClass("animated " + $listItems.data("list-animation"));
|
2310 |
+
}, delay);
|
2311 |
+
|
2312 |
+
});
|
2313 |
+
}
|
2314 |
+
|
2315 |
+
});
|
2316 |
+
};
|
2317 |
+
|
2318 |
+
/****** Premium Grow Effect Handler ******/
|
2319 |
+
var PremiumButtonHandler = function ($scope, $) {
|
2320 |
+
|
2321 |
+
var $btnGrow = $scope.find('.premium-button-style6-bg');
|
2322 |
+
|
2323 |
+
if ($btnGrow.length !== 0 && $scope.hasClass('premium-mouse-detect-yes')) {
|
2324 |
+
$scope.on('mouseenter mouseleave', '.premium-button-style6', function (e) {
|
2325 |
+
|
2326 |
+
var parentOffset = $(this).offset(),
|
2327 |
+
left = e.pageX - parentOffset.left,
|
2328 |
+
top = e.pageY - parentOffset.top;
|
2329 |
+
|
2330 |
+
$btnGrow.css({
|
2331 |
+
top: top,
|
2332 |
+
left: left,
|
2333 |
+
});
|
2334 |
+
|
2335 |
+
});
|
2336 |
+
}
|
2337 |
+
|
2338 |
+
};
|
2339 |
+
|
2340 |
+
var PremiumMaskHandler = function ($scope, $) {
|
2341 |
+
var mask = $scope.hasClass('premium-mask-yes');
|
2342 |
+
|
2343 |
+
if (!mask) return;
|
2344 |
+
|
2345 |
+
if ('premium-addon-title.default' === $scope.data('widget_type')) {
|
2346 |
+
var target = '.premium-title-header';
|
2347 |
+
$scope.find(target).find('.premium-title-icon, .premium-title-img').addClass('premium-mask-span');
|
2348 |
+
} else {
|
2349 |
+
var target = '.premium-dual-header-first-header';
|
2350 |
+
}
|
2351 |
+
|
2352 |
+
$scope.find(target).find('span:not(.premium-title-style7-stripe-wrap):not(.premium-title-img)').each(function (index, span) {
|
2353 |
+
var html = '';
|
2354 |
+
|
2355 |
+
$(this).text().split(' ').forEach(function (item) {
|
2356 |
+
if ('' !== item) {
|
2357 |
+
html += ' <span class="premium-mask-span">' + item + '</span>';
|
2358 |
+
}
|
2359 |
+
});
|
2360 |
+
|
2361 |
+
$(this).text('').append(html);
|
2362 |
+
});
|
2363 |
+
|
2364 |
+
elementorFrontend.waypoint($scope, function () {
|
2365 |
+
$($scope).addClass('premium-mask-active');
|
2366 |
+
});
|
2367 |
+
};
|
2368 |
+
|
2369 |
+
/**Premium Nav Menu */
|
2370 |
+
var PremiumNavMenuHandler = function ($scope, $) {
|
2371 |
+
|
2372 |
+
// we don't need to wait for content dom load since the script is loaded in the footer.
|
2373 |
+
$scope.find('.premium-nav-widget-container').removeClass('elementor-invisible');
|
2374 |
+
|
2375 |
+
var settings = $scope.find('.premium-nav-widget-container').data('settings');
|
2376 |
+
|
2377 |
+
if (!settings) {
|
2378 |
+
return;
|
2379 |
+
}
|
2380 |
+
|
2381 |
+
var $menuContainer = $scope.find('.premium-mobile-menu'),
|
2382 |
+
$menuToggler = $scope.find('.premium-hamburger-toggle'),
|
2383 |
+
$hamMenuCloser = $scope.find('.premium-mobile-menu-close'),
|
2384 |
+
$centeredItems = $scope.find('.premium-mega-content-centered'),
|
2385 |
+
stickyProps = {},
|
2386 |
+
refreshPos = false,
|
2387 |
+
stickyIndex = 'stickyPos' + $scope.data('id'),
|
2388 |
+
stickyWidthIndex = 'stickyWidth' + $scope.data('id');
|
2389 |
+
|
2390 |
+
/**
|
2391 |
+
* Save current device to use it later to determine if the device changed on resize.
|
2392 |
+
*/
|
2393 |
+
window.PaCurrStickyDevice = elementorFrontend.getCurrentDeviceMode();
|
2394 |
+
|
2395 |
+
$centeredItems.each(function (index, item) {
|
2396 |
+
$(item).closest(".premium-nav-menu-item").addClass("premium-mega-item-static");
|
2397 |
+
});
|
2398 |
+
|
2399 |
+
if ('slide' === settings.mobileLayout || 'slide' === settings.mainLayout) {
|
2400 |
+
$scope.addClass('premium-ver-hamburger-menu');
|
2401 |
+
}
|
2402 |
+
|
2403 |
+
var isMobileMenu = isDesktopMenu = null;
|
2404 |
+
checkBreakPoint(settings);
|
2405 |
+
checkStickyEffect();
|
2406 |
+
|
2407 |
+
// init widget events.
|
2408 |
+
|
2409 |
+
$hamMenuCloser.on('click', function () {
|
2410 |
+
$scope.find('.premium-mobile-menu-outer-container, .premium-nav-slide-overlay').removeClass('premium-vertical-toggle-open');
|
2411 |
+
});
|
2412 |
+
|
2413 |
+
$menuToggler.on('click', function () {
|
2414 |
+
if ('slide' === settings.mobileLayout || 'slide' === settings.mainLayout) {
|
2415 |
+
$scope.find('.premium-mobile-menu-outer-container, .premium-nav-slide-overlay').addClass('premium-vertical-toggle-open');
|
2416 |
+
} else {
|
2417 |
+
// $menuContainer.toggleClass('premium-active-menu');
|
2418 |
+
if ($($menuContainer).hasClass('premium-active-menu')) {
|
2419 |
+
$scope.find('.premium-mobile-menu-container').slideUp('slow', function () {
|
2420 |
+
$menuContainer.removeClass('premium-active-menu');
|
2421 |
+
$scope.find('.premium-mobile-menu-container').show();
|
2422 |
+
});
|
2423 |
+
} else {
|
2424 |
+
|
2425 |
+
$menuContainer.addClass('premium-active-menu');
|
2426 |
+
}
|
2427 |
+
}
|
2428 |
+
|
2429 |
+
$menuToggler.toggleClass('premium-toggle-opened'); // show/hide close icon/text.
|
2430 |
+
});
|
2431 |
+
|
2432 |
+
$menuContainer.find('.premium-nav-menu-item.menu-item-has-children a, .premium-mega-nav-item a').on('click', function (e) {
|
2433 |
+
|
2434 |
+
if ($(this).find(".premium-dropdown-icon").length < 1)
|
2435 |
+
return;
|
2436 |
+
|
2437 |
+
var $parent = $(this).parent(".premium-nav-menu-item");
|
2438 |
+
|
2439 |
+
e.stopPropagation();
|
2440 |
+
e.preventDefault();
|
2441 |
+
|
2442 |
+
//If it was opened, then close it.
|
2443 |
+
if ($parent.hasClass('premium-active-menu')) {
|
2444 |
+
$parent.toggleClass('premium-active-menu');
|
2445 |
+
|
2446 |
+
} else {
|
2447 |
+
//Close any other opened items.
|
2448 |
+
$menuContainer.find('.premium-active-menu').toggleClass('premium-active-menu');
|
2449 |
+
//Then, open this item.
|
2450 |
+
$parent.toggleClass('premium-active-menu');
|
2451 |
+
// make sure the parent node is always open whenever the child node is opened.
|
2452 |
+
$($parent).parents('.premium-nav-menu-item.menu-item-has-children').toggleClass('premium-active-menu');
|
2453 |
+
}
|
2454 |
+
});
|
2455 |
+
|
2456 |
+
$(document).on('click', '.premium-nav-slide-overlay', function () {
|
2457 |
+
$scope.find('.premium-mobile-menu-outer-container, .premium-nav-slide-overlay').removeClass('premium-vertical-toggle-open');
|
2458 |
+
});
|
2459 |
+
|
2460 |
+
$(document).on('click.PaCloseMegaMenu', function (event) {
|
2461 |
+
var isTabsItem = $(event.target).closest('.premium-tabs-nav-list-item').length,
|
2462 |
+
isWidgetContainer = $(event.target).closest('.premium-nav-widget-container').length;
|
2463 |
+
|
2464 |
+
if (!isWidgetContainer && !isTabsItem) {
|
2465 |
+
if ($($menuContainer).hasClass('premium-active-menu')) {
|
2466 |
+
$menuToggler.click();
|
2467 |
+
}
|
2468 |
+
}
|
2469 |
+
});
|
2470 |
+
|
2471 |
+
$(window).on('resize', function () {
|
2472 |
+
|
2473 |
+
if (window.PaCurrStickyDevice !== elementorFrontend.getCurrentDeviceMode()) {
|
2474 |
+
refreshPos = true;
|
2475 |
+
window.PaCurrStickyDevice = elementorFrontend.getCurrentDeviceMode();
|
2476 |
+
}
|
2477 |
+
|
2478 |
+
checkBreakPoint(settings);
|
2479 |
+
checkStickyEffect();
|
2480 |
+
});
|
2481 |
+
|
2482 |
+
// vertical toggler.
|
2483 |
+
if ($scope.hasClass('premium-ver-toggle-yes') && $scope.hasClass('premium-ver-click')) {
|
2484 |
+
$scope.find('.premium-ver-toggler').on('click', function () {
|
2485 |
+
$scope.find('.premium-nav-widget-container').toggleClass('premium-ver-collapsed', 500);
|
2486 |
+
});
|
2487 |
+
}
|
2488 |
+
|
2489 |
+
function checkBreakPoint(settings) {
|
2490 |
+
|
2491 |
+
//Trigger small screen menu.
|
2492 |
+
if (settings.breakpoint >= $(window).width() && !isMobileMenu) {
|
2493 |
+
// remove the vertical toggler.
|
2494 |
+
$scope.find('.premium-ver-toggler').css('display', 'none');
|
2495 |
+
$scope.addClass('premium-hamburger-menu');
|
2496 |
+
$scope.find('.premium-active-menu').removeClass('premium-active-menu');
|
2497 |
+
stretchDropdown($scope.find('.premium-stretch-dropdown .premium-mobile-menu-container'));
|
2498 |
+
|
2499 |
+
isMobileMenu = true;
|
2500 |
+
isDesktopMenu = false;
|
2501 |
+
|
2502 |
+
//Trigger large screen menu.
|
2503 |
+
} else if (settings.breakpoint < $(window).width() && !isDesktopMenu) {
|
2504 |
+
|
2505 |
+
// show the vertical toggler if enabled.
|
2506 |
+
if ($scope.hasClass('premium-ver-toggle-yes')) {
|
2507 |
+
$scope.find('.premium-ver-toggler').css('display', 'flex');
|
2508 |
+
}
|
2509 |
+
|
2510 |
+
$menuToggler.removeClass('premium-toggle-opened');
|
2511 |
+
$scope.find(".premium-mobile-menu-container .premium-active-menu").removeClass("premium-active-menu");
|
2512 |
+
$scope.removeClass('premium-hamburger-menu premium-ham-dropdown');
|
2513 |
+
$scope.find('.premium-vertical-toggle-open').removeClass('premium-vertical-toggle-open');
|
2514 |
+
$scope.find('.premium-nav-default').removeClass('premium-nav-default');
|
2515 |
+
|
2516 |
+
isDesktopMenu = true;
|
2517 |
+
isMobileMenu = false;
|
2518 |
+
}
|
2519 |
+
|
2520 |
+
}
|
2521 |
+
|
2522 |
+
/**
|
2523 |
+
* Full Width Option.
|
2524 |
+
* Shows the mobile menu beneath the widget's parent(section).
|
2525 |
+
*/
|
2526 |
+
function stretchDropdown($menu) {
|
2527 |
+
|
2528 |
+
var $parentSec = $($scope).closest('.elementor-top-section'),
|
2529 |
+
width = $($parentSec).outerWidth(),
|
2530 |
+
widgetTop = $scope.offset().top,
|
2531 |
+
parentBottom = $($parentSec).offset().top + $($parentSec).outerHeight(),
|
2532 |
+
stretchTop = parentBottom - widgetTop,
|
2533 |
+
stretchLeft = $scope.offset().left - $($parentSec).offset().left;
|
2534 |
+
|
2535 |
+
$($menu).css({
|
2536 |
+
width: width + 'px',
|
2537 |
+
left: '-' + stretchLeft + 'px',
|
2538 |
+
top: stretchTop + 'px',
|
2539 |
+
});
|
2540 |
+
}
|
2541 |
+
|
2542 |
+
/**
|
2543 |
+
* Sticky Effect.
|
2544 |
+
*/
|
2545 |
+
|
2546 |
+
function checkStickyEffect() {
|
2547 |
+
|
2548 |
+
var isSticky = $scope.hasClass('premium-nav-sticky-yes') &&
|
2549 |
+
// settings.stickyOptions &&
|
2550 |
+
$('#' + settings.stickyOptions.targetId).length &&
|
2551 |
+
!settings.stickyOptions.disableOn.includes(elementorFrontend.getCurrentDeviceMode());
|
2552 |
+
|
2553 |
+
if (isSticky) {
|
2554 |
+
stickyProps = settings.stickyOptions;
|
2555 |
+
|
2556 |
+
stickyProps.spacerClass = 'premium-sticky-spacer-' + $('#' + stickyProps.targetId).data('id');
|
2557 |
+
|
2558 |
+
$('#' + stickyProps.targetId).addClass('premium-sticky-active');
|
2559 |
+
|
2560 |
+
setStickyWidth(stickyProps);
|
2561 |
+
|
2562 |
+
// Add spacer to save the sticky target space in the dom.
|
2563 |
+
if (0 === $('.' + stickyProps.spacerClass).length) {
|
2564 |
+
$('<div class="' + stickyProps.spacerClass + '"></div>').insertBefore('#' + stickyProps.targetId);
|
2565 |
+
}
|
2566 |
+
|
2567 |
+
$(window).on('load', applyStickyEffect);
|
2568 |
+
$(window).on('scroll.PaStickyNav', applyStickyEffect);
|
2569 |
+
|
2570 |
+
} else {
|
2571 |
+
$(window).off('scroll.PaStickyNav');
|
2572 |
+
|
2573 |
+
$('<div class="' + stickyProps.spacerClass + '"></div>').remove(); // remove spacer
|
2574 |
+
$('#' + stickyProps.targetId).removeClass('premium-sticky-parent premium-sticky-active premium-sticky-parent-' + $scope.data('id')).css({ // unset style
|
2575 |
+
top: 'unset',
|
2576 |
+
width: 'inherit',
|
2577 |
+
position: 'relative'
|
2578 |
+
});
|
2579 |
+
}
|
2580 |
+
}
|
2581 |
+
|
2582 |
+
/**
|
2583 |
+
* we need to get the original width before setting
|
2584 |
+
* the position to fixed.
|
2585 |
+
*/
|
2586 |
+
function setStickyWidth(stickyProps) {
|
2587 |
+
// TODO: check if we can use the spacer's width directly instead.
|
2588 |
+
var currStickyWidth = stickyWidthIndex + elementorFrontend.getCurrentDeviceMode(),
|
2589 |
+
isSticky = $('#' + stickyProps.targetId).hasClass('premium-sticky-parent'); // ==> fixed position
|
2590 |
+
|
2591 |
+
if (isSticky) {
|
2592 |
+
$('#' + stickyProps.targetId).css({
|
2593 |
+
position: 'relative',
|
2594 |
+
width: 'inherit'
|
2595 |
+
});
|
2596 |
+
}
|
2597 |
+
|
2598 |
+
window[currStickyWidth] = $('#' + stickyProps.targetId).outerWidth() + 'px';
|
2599 |
+
|
2600 |
+
if (isSticky) {
|
2601 |
+
|
2602 |
+
$('#' + stickyProps.targetId).css({
|
2603 |
+
position: 'fixed',
|
2604 |
+
width: window[currStickyWidth]
|
2605 |
+
});
|
2606 |
+
}
|
2607 |
+
}
|
2608 |
+
|
2609 |
+
function applyStickyEffect() {
|
2610 |
+
|
2611 |
+
var $adminBarHeight = elementorFrontend.elements.$wpAdminBar.height() ? elementorFrontend.elements.$wpAdminBar.height() : 0,
|
2612 |
+
scrollTop = $(window).scrollTop() + $adminBarHeight,
|
2613 |
+
currStickyWidth = stickyWidthIndex + elementorFrontend.getCurrentDeviceMode();
|
2614 |
+
|
2615 |
+
if (!window[stickyIndex] || refreshPos) { // save the offset
|
2616 |
+
window[stickyIndex] = $('.' + stickyProps.spacerClass).offset().top;
|
2617 |
+
refreshPos = false;
|
2618 |
+
}
|
2619 |
+
|
2620 |
+
if (scrollTop >= window[stickyIndex]) {
|
2621 |
+
|
2622 |
+
$('.' + stickyProps.spacerClass).css('height', $('#' + stickyProps.targetId).outerHeight() + 'px');
|
2623 |
+
$('#' + stickyProps.targetId).addClass('premium-sticky-parent premium-sticky-parent-' + $scope.data('id')).css({
|
2624 |
+
width: window[currStickyWidth],
|
2625 |
+
top: $adminBarHeight,
|
2626 |
+
position: 'fixed'
|
2627 |
+
});
|
2628 |
+
|
2629 |
+
} else {
|
2630 |
+
$('.' + stickyProps.spacerClass).css('height', '0px');
|
2631 |
+
$('#' + stickyProps.targetId).removeClass('premium-sticky-parent premium-sticky-parent-' + $scope.data('id')).css({
|
2632 |
+
top: 'unset',
|
2633 |
+
width: 'inherit',
|
2634 |
+
position: 'relative'
|
2635 |
+
});
|
2636 |
+
}
|
2637 |
+
|
2638 |
+
// sticky on scroll option.
|
2639 |
+
if (stickyProps.onScroll) {
|
2640 |
+
var $element = document.querySelector('#' + stickyProps.targetId + '.premium-sticky-parent');
|
2641 |
+
|
2642 |
+
if ($element) {
|
2643 |
+
$('#' + stickyProps.targetId + '.premium-sticky-parent').addClass('premium-sticky-scroll-yes');
|
2644 |
+
var headroom = new Headroom($element,
|
2645 |
+
{
|
2646 |
+
tolerance: 5,
|
2647 |
+
classes: {
|
2648 |
+
initial: "animated",
|
2649 |
+
pinned: "slideDown",
|
2650 |
+
unpinned: "slideUp",
|
2651 |
+
offset: {
|
2652 |
+
up: $('#' + stickyProps.targetId).outerHeight() + 150, // first time only.
|
2653 |
+
},
|
2654 |
+
}
|
2655 |
+
});
|
2656 |
+
|
2657 |
+
headroom.init();
|
2658 |
+
}
|
2659 |
+
} else {
|
2660 |
+
$('#' + stickyProps.targetId + '.premium-sticky-parent').removeClass('premium-sticky-scroll-yes');
|
2661 |
+
}
|
2662 |
+
}
|
2663 |
+
};
|
2664 |
+
|
2665 |
+
var functionalHandlers = {
|
2666 |
+
'premium-addon-dual-header.default': PremiumMaskHandler,
|
2667 |
+
'premium-addon-video-box.default': PremiumVideoBoxWidgetHandler,
|
2668 |
+
'premium-addon-fancy-text.default': PremiumFancyTextHandler,
|
2669 |
+
'premium-counter.default': PremiumCounterHandler,
|
2670 |
+
'premium-addon-title.default': [PremiumTitleHandler, PremiumMaskHandler],
|
2671 |
+
'premium-countdown-timer.default': PremiumCountDownHandler,
|
2672 |
+
'premium-carousel-widget.default': PremiumCarouselHandler,
|
2673 |
+
'premium-addon-modal-box.default': PremiumModalBoxHandler,
|
2674 |
+
'premium-image-scroll.default': PremiumImageScrollHandler,
|
2675 |
+
'premium-contact-form.default': PremiumContactFormHandler,
|
2676 |
+
'premium-icon-list.default': PremiumBulletListHandler,
|
2677 |
+
'premium-addon-button.default': PremiumButtonHandler,
|
2678 |
+
'premium-addon-image-button.default': PremiumButtonHandler,
|
2679 |
+
'premium-nav-menu.default': PremiumNavMenuHandler
|
2680 |
+
};
|
2681 |
+
|
2682 |
+
var classHandlers = {
|
2683 |
+
'premium-addon-person': PremiumTeamMembersHandler,
|
2684 |
+
'premium-addon-blog': PremiumBlogHandler,
|
2685 |
+
'premium-img-gallery': PremiumGridWidgetHandler,
|
2686 |
+
'premium-addon-banner': PremiumBannerHandler,
|
2687 |
+
};
|
2688 |
+
|
2689 |
+
$.each(functionalHandlers, function (elemName, func) {
|
2690 |
+
if ('object' === typeof func) {
|
2691 |
+
$.each(func, function (index, handler) {
|
2692 |
+
elementorFrontend.hooks.addAction('frontend/element_ready/' + elemName, handler);
|
2693 |
+
})
|
2694 |
+
} else {
|
2695 |
+
elementorFrontend.hooks.addAction('frontend/element_ready/' + elemName, func);
|
2696 |
+
}
|
2697 |
+
|
2698 |
+
});
|
2699 |
+
|
2700 |
+
$.each(classHandlers, function (elemName, clas) {
|
2701 |
+
elementorFrontend.elementsHandler.attachHandler(elemName, clas);
|
2702 |
+
});
|
2703 |
+
|
2704 |
+
|
2705 |
+
if (elementorFrontend.isEditMode()) {
|
2706 |
+
elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-progressbar.default", PremiumProgressBarWidgetHandler);
|
2707 |
+
} else {
|
2708 |
+
elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-progressbar.default", PremiumProgressBarScrollWidgetHandler);
|
2709 |
+
}
|
2710 |
+
});
|
2711 |
Â
})(jQuery);
|
assets/frontend/js/premium-dis-conditions.js
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
-
(function ($) {
|
2 |
-
|
3 |
-
$(window).on('elementor/frontend/init', function () {
|
4 |
-
|
5 |
-
//Time range condition cookie.
|
6 |
-
var localTimeZone = new Date().toString().match(/([A-Z]+[\+-][0-9]+.*)/)[1],
|
7 |
-
isSecured = (document.location.protocol === 'https:') ? 'secure' : '';
|
8 |
-
|
9 |
-
document.cookie = "localTimeZone=" + localTimeZone + ";SameSite=Strict;" + isSecured;
|
10 |
-
|
11 |
-
//Returning User condition cookie.
|
12 |
-
if (PremiumSettings)
|
13 |
-
document.cookie = "isReturningVisitor" + PremiumSettings.pageID + "=true;SameSite=Strict;" + isSecured;
|
14 |
-
|
15 |
-
});
|
16 |
-
|
17 |
-
})(jQuery);
|
1 |
+
(function ($) {
|
2 |
+
|
3 |
+
$(window).on('elementor/frontend/init', function () {
|
4 |
+
|
5 |
+
//Time range condition cookie.
|
6 |
+
var localTimeZone = new Date().toString().match(/([A-Z]+[\+-][0-9]+.*)/)[1],
|
7 |
+
isSecured = (document.location.protocol === 'https:') ? 'secure' : '';
|
8 |
+
|
9 |
+
document.cookie = "localTimeZone=" + localTimeZone + ";SameSite=Strict;" + isSecured;
|
10 |
+
|
11 |
+
//Returning User condition cookie.
|
12 |
+
if (PremiumSettings)
|
13 |
+
document.cookie = "isReturningVisitor" + PremiumSettings.pageID + "=true;SameSite=Strict;" + isSecured;
|
14 |
+
|
15 |
+
});
|
16 |
+
|
17 |
+
})(jQuery);
|
assets/frontend/js/premium-img-gallery.js
CHANGED
@@ -1,390 +1,394 @@
|
|
1 |
-
/****** Premium Media Grid Handler ******/
|
2 |
-
(function ($) {
|
3 |
-
$(window).on('elementor/frontend/init', function () {
|
4 |
-
|
5 |
-
var PremiumGridWidgetHandler = elementorModules.frontend.handlers.Base.extend({
|
6 |
-
|
7 |
-
settings: {},
|
8 |
-
|
9 |
-
getDefaultSettings: function () {
|
10 |
-
return {
|
11 |
-
selectors: {
|
12 |
-
galleryElement: '.premium-gallery-container',
|
13 |
-
filters: '.premium-gallery-cats-container li',
|
14 |
-
gradientLayer: '.premium-gallery-gradient-layer',
|
15 |
-
loadMore: '.premium-gallery-load-more',
|
16 |
-
loadMoreDiv: '.premium-gallery-load-more div',
|
17 |
-
vidWrap: '.premium-gallery-video-wrap',
|
18 |
-
}
|
19 |
-
}
|
20 |
-
},
|
21 |
-
|
22 |
-
getDefaultElements: function () {
|
23 |
-
|
24 |
-
var selectors = this.getSettings('selectors'),
|
25 |
-
elements = {
|
26 |
-
$galleryElement: this.$element.find(selectors.galleryElement),
|
27 |
-
$filters: this.$element.find(selectors.filters),
|
28 |
-
$gradientLayer: this.$element.find(selectors.gradientLayer),
|
29 |
-
$vidWrap: this.$element.find(selectors.vidWrap)
|
30 |
-
};
|
31 |
-
|
32 |
-
elements.$loadMore = elements.$galleryElement.parent().find(selectors.loadMore)
|
33 |
-
elements.$loadMoreDiv = elements.$galleryElement.parent().find(selectors.loadMoreDiv)
|
34 |
-
|
35 |
-
return elements;
|
36 |
-
},
|
37 |
-
|
38 |
-
bindEvents: function () {
|
39 |
-
this.getGlobalSettings();
|
40 |
-
this.run();
|
41 |
-
},
|
42 |
-
|
43 |
-
getGlobalSettings: function () {
|
44 |
-
var $galleryElement = this.elements.$galleryElement,
|
45 |
-
settings = $galleryElement.data('settings');
|
46 |
-
|
47 |
-
this.settings = {
|
48 |
-
layout: settings.img_size,
|
49 |
-
loadMore: settings.load_more,
|
50 |
-
columnWidth: null,
|
51 |
-
filter: null,
|
52 |
-
isFilterClicked: false,
|
53 |
-
minimum: settings.minimum,
|
54 |
-
imageToShow: settings.click_images,
|
55 |
-
counter: settings.minimum,
|
56 |
-
ltrMode: settings.ltr_mode,
|
57 |
-
shuffle: settings.shuffle,
|
58 |
-
active_cat: settings.active_cat,
|
59 |
-
theme: settings.theme,
|
60 |
-
overlay: settings.overlay,
|
61 |
-
sort_by: settings.sort_by,
|
62 |
-
light_box: settings.light_box,
|
63 |
-
flag: settings.flag,
|
64 |
-
lightbox_type: settings.lightbox_type
|
65 |
-
}
|
66 |
-
},
|
67 |
-
|
68 |
-
updateCounter: function () {
|
69 |
-
|
70 |
-
if (this.settings.isFilterClicked) {
|
71 |
-
|
72 |
-
this.settings.counter = this.settings.minimum;
|
73 |
-
|
74 |
-
this.settings.isFilterClicked = false;
|
75 |
-
|
76 |
-
} else {
|
77 |
-
this.settings.counter = this.settings.counter;
|
78 |
-
}
|
79 |
-
|
80 |
-
this.settings.counter = this.settings.counter + this.settings.imageToShow;
|
81 |
-
},
|
82 |
-
|
83 |
-
updateGrid: function (gradHeight, $isotopeGallery, $loadMoreDiv) {
|
84 |
-
$.ajax({
|
85 |
-
url: this.appendItems(this.settings.counter, gradHeight, $isotopeGallery),
|
86 |
-
beforeSend: function () {
|
87 |
-
$loadMoreDiv.removeClass("premium-gallery-item-hidden");
|
88 |
-
},
|
89 |
-
success: function () {
|
90 |
-
$loadMoreDiv.addClass("premium-gallery-item-hidden");
|
91 |
-
}
|
92 |
-
});
|
93 |
-
},
|
94 |
-
|
95 |
-
loadMore: function (gradHeight, $isotopeGallery) {
|
96 |
-
|
97 |
-
var $galleryElement = this.elements.$galleryElement,
|
98 |
-
$loadMoreDiv = this.elements.$loadMoreDiv,
|
99 |
-
$loadMore = this.elements.$loadMore,
|
100 |
-
_this = this;
|
101 |
-
|
102 |
-
$loadMoreDiv.addClass("premium-gallery-item-hidden");
|
103 |
-
|
104 |
-
if ($galleryElement.find(".premium-gallery-item").length > this.settings.minimum) {
|
105 |
-
|
106 |
-
$loadMore.removeClass("premium-gallery-item-hidden");
|
107 |
-
|
108 |
-
$galleryElement.parent().on("click", ".premium-gallery-load-less", function () {
|
109 |
-
_this.settings.counter = _this.settings.counter - _this.settings.imageToShow;
|
110 |
-
});
|
111 |
-
|
112 |
-
$galleryElement.parent().on("click", ".premium-gallery-load-more-btn:not(.premium-gallery-load-less)", function () {
|
113 |
-
_this.updateCounter();
|
114 |
-
_this.updateGrid(gradHeight, $isotopeGallery, $loadMoreDiv);
|
115 |
-
});
|
116 |
-
|
117 |
-
}
|
118 |
-
|
119 |
-
},
|
120 |
-
|
121 |
-
getItemsToHide: function (instance, imagesToShow) {
|
122 |
-
var items = instance.filteredItems.slice(imagesToShow, instance
|
123 |
-
.filteredItems.length).map(function (item) {
|
124 |
-
return item.element;
|
125 |
-
});
|
126 |
-
|
127 |
-
return items;
|
128 |
-
},
|
129 |
-
|
130 |
-
appendItems: function (imagesToShow, gradHeight, $isotopeGallery) {
|
131 |
-
|
132 |
-
var $galleryElement = this.elements.$galleryElement,
|
133 |
-
$gradientLayer = this.elements.$gradientLayer,
|
134 |
-
instance = $galleryElement.data("isotope"),
|
135 |
-
itemsToHide = this.getItemsToHide(instance, imagesToShow);
|
136 |
-
|
137 |
-
$gradientLayer.outerHeight(gradHeight);
|
138 |
-
|
139 |
-
$galleryElement.find(".premium-gallery-item-hidden").removeClass("premium-gallery-item-hidden");
|
140 |
-
|
141 |
-
$galleryElement.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden");
|
142 |
-
|
143 |
-
$(itemsToHide).addClass("premium-gallery-item-hidden");
|
144 |
-
|
145 |
-
$isotopeGallery.isotope("layout");
|
146 |
-
|
147 |
-
if (0 == itemsToHide) {
|
148 |
-
|
149 |
-
$gradientLayer.addClass("premium-gallery-item-hidden");
|
150 |
-
|
151 |
-
$galleryElement.parent().find(".premium-gallery-load-more").addClass("premium-gallery-item-hidden");
|
152 |
-
}
|
153 |
-
},
|
154 |
-
|
155 |
-
triggerFilerTabs: function (url) {
|
156 |
-
var filterIndex = url.searchParams.get(this.settings.flag),
|
157 |
-
$filters = this.elements.$filters;
|
158 |
-
|
159 |
-
if (filterIndex) {
|
160 |
-
|
161 |
-
var $targetFilter = $filters.eq(filterIndex).find("a");
|
162 |
-
|
163 |
-
$targetFilter.trigger('click');
|
164 |
-
|
165 |
-
}
|
166 |
-
},
|
167 |
-
|
168 |
-
onReady: function ($isotopeGallery) {
|
169 |
-
var _this = this;
|
170 |
-
|
171 |
-
$isotopeGallery.isotope("layout");
|
172 |
-
|
173 |
-
$isotopeGallery.isotope({
|
174 |
-
|
175 |
-
});
|
176 |
-
|
177 |
-
var url = new URL(window.location.href);
|
178 |
-
|
179 |
-
if (url)
|
180 |
-
_this.triggerFilerTabs(url);
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
$this
|
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 |
-
this
|
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 |
-
this.
|
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 |
-
if ("" ===
|
373 |
-
|
374 |
-
}
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
390 |
Â
})(jQuery);
|
1 |
+
/****** Premium Media Grid Handler ******/
|
2 |
+
(function ($) {
|
3 |
+
$(window).on('elementor/frontend/init', function () {
|
4 |
+
|
5 |
+
var PremiumGridWidgetHandler = elementorModules.frontend.handlers.Base.extend({
|
6 |
+
|
7 |
+
settings: {},
|
8 |
+
|
9 |
+
getDefaultSettings: function () {
|
10 |
+
return {
|
11 |
+
selectors: {
|
12 |
+
galleryElement: '.premium-gallery-container',
|
13 |
+
filters: '.premium-gallery-cats-container li',
|
14 |
+
gradientLayer: '.premium-gallery-gradient-layer',
|
15 |
+
loadMore: '.premium-gallery-load-more',
|
16 |
+
loadMoreDiv: '.premium-gallery-load-more div',
|
17 |
+
vidWrap: '.premium-gallery-video-wrap',
|
18 |
+
}
|
19 |
+
}
|
20 |
+
},
|
21 |
+
|
22 |
+
getDefaultElements: function () {
|
23 |
+
|
24 |
+
var selectors = this.getSettings('selectors'),
|
25 |
+
elements = {
|
26 |
+
$galleryElement: this.$element.find(selectors.galleryElement),
|
27 |
+
$filters: this.$element.find(selectors.filters),
|
28 |
+
$gradientLayer: this.$element.find(selectors.gradientLayer),
|
29 |
+
$vidWrap: this.$element.find(selectors.vidWrap)
|
30 |
+
};
|
31 |
+
|
32 |
+
elements.$loadMore = elements.$galleryElement.parent().find(selectors.loadMore)
|
33 |
+
elements.$loadMoreDiv = elements.$galleryElement.parent().find(selectors.loadMoreDiv)
|
34 |
+
|
35 |
+
return elements;
|
36 |
+
},
|
37 |
+
|
38 |
+
bindEvents: function () {
|
39 |
+
this.getGlobalSettings();
|
40 |
+
this.run();
|
41 |
+
},
|
42 |
+
|
43 |
+
getGlobalSettings: function () {
|
44 |
+
var $galleryElement = this.elements.$galleryElement,
|
45 |
+
settings = $galleryElement.data('settings');
|
46 |
+
|
47 |
+
this.settings = {
|
48 |
+
layout: settings.img_size,
|
49 |
+
loadMore: settings.load_more,
|
50 |
+
columnWidth: null,
|
51 |
+
filter: null,
|
52 |
+
isFilterClicked: false,
|
53 |
+
minimum: settings.minimum,
|
54 |
+
imageToShow: settings.click_images,
|
55 |
+
counter: settings.minimum,
|
56 |
+
ltrMode: settings.ltr_mode,
|
57 |
+
shuffle: settings.shuffle,
|
58 |
+
active_cat: settings.active_cat,
|
59 |
+
theme: settings.theme,
|
60 |
+
overlay: settings.overlay,
|
61 |
+
sort_by: settings.sort_by,
|
62 |
+
light_box: settings.light_box,
|
63 |
+
flag: settings.flag,
|
64 |
+
lightbox_type: settings.lightbox_type
|
65 |
+
}
|
66 |
+
},
|
67 |
+
|
68 |
+
updateCounter: function () {
|
69 |
+
|
70 |
+
if (this.settings.isFilterClicked) {
|
71 |
+
|
72 |
+
this.settings.counter = this.settings.minimum;
|
73 |
+
|
74 |
+
this.settings.isFilterClicked = false;
|
75 |
+
|
76 |
+
} else {
|
77 |
+
this.settings.counter = this.settings.counter;
|
78 |
+
}
|
79 |
+
|
80 |
+
this.settings.counter = this.settings.counter + this.settings.imageToShow;
|
81 |
+
},
|
82 |
+
|
83 |
+
updateGrid: function (gradHeight, $isotopeGallery, $loadMoreDiv) {
|
84 |
+
$.ajax({
|
85 |
+
url: this.appendItems(this.settings.counter, gradHeight, $isotopeGallery),
|
86 |
+
beforeSend: function () {
|
87 |
+
$loadMoreDiv.removeClass("premium-gallery-item-hidden");
|
88 |
+
},
|
89 |
+
success: function () {
|
90 |
+
$loadMoreDiv.addClass("premium-gallery-item-hidden");
|
91 |
+
}
|
92 |
+
});
|
93 |
+
},
|
94 |
+
|
95 |
+
loadMore: function (gradHeight, $isotopeGallery) {
|
96 |
+
|
97 |
+
var $galleryElement = this.elements.$galleryElement,
|
98 |
+
$loadMoreDiv = this.elements.$loadMoreDiv,
|
99 |
+
$loadMore = this.elements.$loadMore,
|
100 |
+
_this = this;
|
101 |
+
|
102 |
+
$loadMoreDiv.addClass("premium-gallery-item-hidden");
|
103 |
+
|
104 |
+
if ($galleryElement.find(".premium-gallery-item").length > this.settings.minimum) {
|
105 |
+
|
106 |
+
$loadMore.removeClass("premium-gallery-item-hidden");
|
107 |
+
|
108 |
+
$galleryElement.parent().on("click", ".premium-gallery-load-less", function () {
|
109 |
+
_this.settings.counter = _this.settings.counter - _this.settings.imageToShow;
|
110 |
+
});
|
111 |
+
|
112 |
+
$galleryElement.parent().on("click", ".premium-gallery-load-more-btn:not(.premium-gallery-load-less)", function () {
|
113 |
+
_this.updateCounter();
|
114 |
+
_this.updateGrid(gradHeight, $isotopeGallery, $loadMoreDiv);
|
115 |
+
});
|
116 |
+
|
117 |
+
}
|
118 |
+
|
119 |
+
},
|
120 |
+
|
121 |
+
getItemsToHide: function (instance, imagesToShow) {
|
122 |
+
var items = instance.filteredItems.slice(imagesToShow, instance
|
123 |
+
.filteredItems.length).map(function (item) {
|
124 |
+
return item.element;
|
125 |
+
});
|
126 |
+
|
127 |
+
return items;
|
128 |
+
},
|
129 |
+
|
130 |
+
appendItems: function (imagesToShow, gradHeight, $isotopeGallery) {
|
131 |
+
|
132 |
+
var $galleryElement = this.elements.$galleryElement,
|
133 |
+
$gradientLayer = this.elements.$gradientLayer,
|
134 |
+
instance = $galleryElement.data("isotope"),
|
135 |
+
itemsToHide = this.getItemsToHide(instance, imagesToShow);
|
136 |
+
|
137 |
+
$gradientLayer.outerHeight(gradHeight);
|
138 |
+
|
139 |
+
$galleryElement.find(".premium-gallery-item-hidden").removeClass("premium-gallery-item-hidden");
|
140 |
+
|
141 |
+
$galleryElement.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden");
|
142 |
+
|
143 |
+
$(itemsToHide).addClass("premium-gallery-item-hidden");
|
144 |
+
|
145 |
+
$isotopeGallery.isotope("layout");
|
146 |
+
|
147 |
+
if (0 == itemsToHide) {
|
148 |
+
|
149 |
+
$gradientLayer.addClass("premium-gallery-item-hidden");
|
150 |
+
|
151 |
+
$galleryElement.parent().find(".premium-gallery-load-more").addClass("premium-gallery-item-hidden");
|
152 |
+
}
|
153 |
+
},
|
154 |
+
|
155 |
+
triggerFilerTabs: function (url) {
|
156 |
+
var filterIndex = url.searchParams.get(this.settings.flag),
|
157 |
+
$filters = this.elements.$filters;
|
158 |
+
|
159 |
+
if (filterIndex) {
|
160 |
+
|
161 |
+
var $targetFilter = $filters.eq(filterIndex).find("a");
|
162 |
+
|
163 |
+
$targetFilter.trigger('click');
|
164 |
+
|
165 |
+
}
|
166 |
+
},
|
167 |
+
|
168 |
+
onReady: function ($isotopeGallery) {
|
169 |
+
var _this = this;
|
170 |
+
|
171 |
+
$isotopeGallery.isotope("layout");
|
172 |
+
|
173 |
+
// $isotopeGallery.isotope({
|
174 |
+
// filter: _this.settings.active_cat
|
175 |
+
// });
|
176 |
+
|
177 |
+
var url = new URL(window.location.href);
|
178 |
+
|
179 |
+
if (url)
|
180 |
+
_this.triggerFilerTabs(url);
|
181 |
+
|
182 |
+
//Show the widget after making sure everything is ready.
|
183 |
+
_this.$element.find(".category.active").trigger('click');
|
184 |
+
_this.$element.find(".elementor-invisible").removeClass("elementor-invisible");
|
185 |
+
|
186 |
+
},
|
187 |
+
|
188 |
+
onResize: function ($isotopeGallery) {
|
189 |
+
var _this = this;
|
190 |
+
|
191 |
+
_this.setMetroLayout();
|
192 |
+
|
193 |
+
$isotopeGallery.isotope({
|
194 |
+
itemSelector: ".premium-gallery-item",
|
195 |
+
masonry: {
|
196 |
+
columnWidth: _this.settings.columnWidth
|
197 |
+
},
|
198 |
+
});
|
199 |
+
|
200 |
+
},
|
201 |
+
|
202 |
+
lightBoxDisabled: function () {
|
203 |
+
var _this = this,
|
204 |
+
$vidWrap = this.elements.$vidWrap;
|
205 |
+
|
206 |
+
$vidWrap.each(function (index, item) {
|
207 |
+
var type = $(item).data("type");
|
208 |
+
|
209 |
+
$(item).closest(".premium-gallery-item").on("click", function () {
|
210 |
+
var $this = $(this);
|
211 |
+
|
212 |
+
$this.find(".pa-gallery-img-container").css("background", "#000");
|
213 |
+
|
214 |
+
$this.find("img, .pa-gallery-icons-caption-container, .pa-gallery-icons-wrapper").css("visibility", "hidden");
|
215 |
+
|
216 |
+
if ("style3" !== _this.settings.skin)
|
217 |
+
$this.find(".premium-gallery-caption").css("visibility", "hidden");
|
218 |
+
|
219 |
+
if ("hosted" !== type) {
|
220 |
+
_this.playVid($this);
|
221 |
+
} else {
|
222 |
+
_this.playHostedVid(item);
|
223 |
+
}
|
224 |
+
});
|
225 |
+
});
|
226 |
+
|
227 |
+
},
|
228 |
+
|
229 |
+
playVid: function ($this) {
|
230 |
+
var $iframeWrap = $this.find(".premium-gallery-iframe-wrap"),
|
231 |
+
src = $iframeWrap.data("src");
|
232 |
+
|
233 |
+
src = src.replace("&mute", "&autoplay=1&mute");
|
234 |
+
|
235 |
+
var $iframe = $("<iframe/>");
|
236 |
+
|
237 |
+
$iframe.attr({
|
238 |
+
"src": src,
|
239 |
+
"frameborder": "0",
|
240 |
+
"allowfullscreen": "1",
|
241 |
+
"allow": "autoplay;encrypted-media;"
|
242 |
+
});
|
243 |
+
|
244 |
+
$iframeWrap.html($iframe);
|
245 |
+
|
246 |
+
$iframe.css("visibility", "visible");
|
247 |
+
},
|
248 |
+
|
249 |
+
playHostedVid: function (item) {
|
250 |
+
var $video = $(item).find("video");
|
251 |
+
|
252 |
+
$video.get(0).play();
|
253 |
+
$video.css("visibility", "visible");
|
254 |
+
},
|
255 |
+
|
256 |
+
run: function () {
|
257 |
+
|
258 |
+
var $galleryElement = this.elements.$galleryElement,
|
259 |
+
$vidWrap = this.elements.$vidWrap,
|
260 |
+
$filters = this.elements.$filters,
|
261 |
+
_this = this;
|
262 |
+
|
263 |
+
if ('metro' === this.settings.layout) {
|
264 |
+
|
265 |
+
this.setMetroLayout();
|
266 |
+
|
267 |
+
this.settings.layout = "masonry";
|
268 |
+
|
269 |
+
$(window).resize(function () { _this.onResize($isotopeGallery); });
|
270 |
+
}
|
271 |
+
|
272 |
+
var $isotopeGallery = $galleryElement.isotope(this.getIsoTopeSettings());
|
273 |
+
|
274 |
+
$isotopeGallery.imagesLoaded().progress(function () {
|
275 |
+
$isotopeGallery.isotope("layout");
|
276 |
+
});
|
277 |
+
|
278 |
+
$(document).ready(function () { _this.onReady($isotopeGallery); });
|
279 |
+
|
280 |
+
if (this.settings.loadMore) {
|
281 |
+
|
282 |
+
var $gradientLayer = this.elements.$gradientLayer,
|
283 |
+
gradHeight = null;
|
284 |
+
|
285 |
+
setTimeout(function () {
|
286 |
+
gradHeight = $gradientLayer.outerHeight();
|
287 |
+
}, 200);
|
288 |
+
|
289 |
+
this.loadMore(gradHeight, $isotopeGallery);
|
290 |
+
}
|
291 |
+
|
292 |
+
if ("yes" !== this.settings.light_box)
|
293 |
+
this.lightBoxDisabled();
|
294 |
+
|
295 |
+
$filters.find("a").click(function (e) {
|
296 |
+
e.preventDefault();
|
297 |
+
|
298 |
+
_this.isFilterClicked = true;
|
299 |
+
|
300 |
+
$filters.find(".active").removeClass("active");
|
301 |
+
|
302 |
+
$(this).addClass("active");
|
303 |
+
|
304 |
+
_this.settings.filter = $(this).attr("data-filter");
|
305 |
+
|
306 |
+
$isotopeGallery.isotope({
|
307 |
+
filter: _this.settings.filter
|
308 |
+
});
|
309 |
+
|
310 |
+
if (_this.settings.shuffle) $isotopeGallery.isotope("shuffle");
|
311 |
+
|
312 |
+
if (_this.settings.loadMore) _this.appendItems(_this.settings.minimum, gradHeight, $isotopeGallery);
|
313 |
+
|
314 |
+
return false;
|
315 |
+
});
|
316 |
+
|
317 |
+
if ("default" === this.settings.lightbox_type)
|
318 |
+
this.$element.find(".premium-img-gallery a[data-rel^='prettyPhoto']").prettyPhoto(this.getPrettyPhotoSettings());
|
319 |
+
},
|
320 |
+
|
321 |
+
getPrettyPhotoSettings: function () {
|
322 |
+
return {
|
323 |
+
theme: this.settings.theme,
|
324 |
+
hook: "data-rel",
|
325 |
+
opacity: 0.7,
|
326 |
+
show_title: false,
|
327 |
+
deeplinking: false,
|
328 |
+
overlay_gallery: this.settings.overlay,
|
329 |
+
custom_markup: "",
|
330 |
+
default_width: 900,
|
331 |
+
default_height: 506,
|
332 |
+
social_tools: ""
|
333 |
+
}
|
334 |
+
},
|
335 |
+
|
336 |
+
getIsoTopeSettings: function () {
|
337 |
+
return {
|
338 |
+
itemSelector: '.premium-gallery-item',
|
339 |
+
percentPosition: true,
|
340 |
+
animationOptions: {
|
341 |
+
duration: 750,
|
342 |
+
easing: 'linear'
|
343 |
+
},
|
344 |
+
filter: this.settings.active_cat,
|
345 |
+
layoutMode: this.settings.layout,
|
346 |
+
originLeft: this.settings.ltrMode,
|
347 |
+
masonry: {
|
348 |
+
columnWidth: this.settings.columnWidth
|
349 |
+
},
|
350 |
+
sortBy: this.settings.sort_by
|
351 |
+
}
|
352 |
+
},
|
353 |
+
|
354 |
+
getRepeaterSettings: function () {
|
355 |
+
return this.getElementSettings('premium_gallery_img_content');
|
356 |
+
},
|
357 |
+
|
358 |
+
setMetroLayout: function () {
|
359 |
+
|
360 |
+
var $galleryElement = this.elements.$galleryElement,
|
361 |
+
gridWidth = $galleryElement.width(),
|
362 |
+
cellSize = Math.floor(gridWidth / 12),
|
363 |
+
deviceType = elementorFrontend.getCurrentDeviceMode(),
|
364 |
+
suffix = 'desktop' === deviceType ? '' : '_' + deviceType,
|
365 |
+
repeater = this.getRepeaterSettings();
|
366 |
+
|
367 |
+
$galleryElement.find(".premium-gallery-item").each(function (index, item) { //should be added to selectors and elements
|
368 |
+
|
369 |
+
var cells = repeater[index]['premium_gallery_image_cell' + suffix].size,
|
370 |
+
vCells = repeater[index]['premium_gallery_image_vcell' + suffix].size;
|
371 |
+
|
372 |
+
if ("" === cells || undefined == cells) {
|
373 |
+
cells = repeater[index].premium_gallery_image_cell;
|
374 |
+
}
|
375 |
+
|
376 |
+
if ("" === vCells || undefined == vCells) {
|
377 |
+
vCells = repeater[index].premium_gallery_image_vcell;
|
378 |
+
}
|
379 |
+
|
380 |
+
$(item).css({
|
381 |
+
width: Math.ceil(cells * cellSize),
|
382 |
+
height: Math.ceil(vCells * cellSize)
|
383 |
+
});
|
384 |
+
});
|
385 |
+
|
386 |
+
this.settings.columnWidth = cellSize;
|
387 |
+
}
|
388 |
+
|
389 |
+
});
|
390 |
+
|
391 |
+
elementorFrontend.elementsHandler.attachHandler('premium-img-gallery', PremiumGridWidgetHandler);
|
392 |
+
|
393 |
+
});
|
394 |
Â
})(jQuery);
|
assets/frontend/js/premium-woo-products.js
CHANGED
@@ -1,647 +1,647 @@
|
|
1 |
-
(function ($) {
|
2 |
-
|
3 |
-
var PremiumWooProductsHandler = function ($scope, $) {
|
4 |
-
var instance = null;
|
5 |
-
|
6 |
-
instance = new premiumWooProducts($scope);
|
7 |
-
instance.init();
|
8 |
-
};
|
9 |
-
|
10 |
-
window.premiumWooProducts = function ($scope) {
|
11 |
-
|
12 |
-
var self = this,
|
13 |
-
$elem = $scope.find(".premium-woocommerce"),
|
14 |
-
skin = $scope.find('.premium-woocommerce').data('skin'),
|
15 |
-
html = null,
|
16 |
-
canLoadMore = true;
|
17 |
-
|
18 |
-
//Check Quick View
|
19 |
-
var isQuickView = $elem.data("quick-view");
|
20 |
-
|
21 |
-
if ("yes" === isQuickView) {
|
22 |
-
|
23 |
-
var widgetID = $scope.data("id"),
|
24 |
-
$modal = $elem.siblings(".premium-woo-quick-view-" + widgetID),
|
25 |
-
$qvModal = $modal.find('#premium-woo-quick-view-modal'),
|
26 |
-
$contentWrap = $qvModal.find('#premium-woo-quick-view-content'),
|
27 |
-
$wrapper = $qvModal.find('.premium-woo-content-main-wrapper'),
|
28 |
-
$backWrap = $modal.find('.premium-woo-quick-view-back'),
|
29 |
-
$qvLoader = $modal.find('.premium-woo-quick-view-loader');
|
30 |
-
|
31 |
-
}
|
32 |
-
|
33 |
-
self.init = function () {
|
34 |
-
|
35 |
-
self.handleProductsCarousel();
|
36 |
-
|
37 |
-
if ("yes" === isQuickView) {
|
38 |
-
self.handleProductQuickView();
|
39 |
-
}
|
40 |
-
|
41 |
-
self.handleProductPagination();
|
42 |
-
|
43 |
-
self.handleLoadMore();
|
44 |
-
|
45 |
-
self.handleAddToCart();
|
46 |
-
|
47 |
-
if ("grid_6" === skin) {
|
48 |
-
self.handleGalleryImages();
|
49 |
-
}
|
50 |
-
|
51 |
-
if (["grid_7", "grid_11"].includes(skin)) {
|
52 |
-
|
53 |
-
self.handleGalleryCarousel(skin);
|
54 |
-
|
55 |
-
if ("grid_11" === skin) {
|
56 |
-
self.handleGalleryNav();
|
57 |
-
}
|
58 |
-
}
|
59 |
-
|
60 |
-
if ($elem.hasClass("premium-woo-products-metro")) {
|
61 |
-
|
62 |
-
self.handleGridMetro();
|
63 |
-
|
64 |
-
$(window).on("resize", self.handleGridMetro);
|
65 |
-
|
66 |
-
}
|
67 |
-
|
68 |
-
};
|
69 |
-
|
70 |
-
self.handleProductsCarousel = function () {
|
71 |
-
|
72 |
-
var carousel = $elem.data("woo_carousel");
|
73 |
-
|
74 |
-
if (!carousel)
|
75 |
-
return;
|
76 |
-
|
77 |
-
var $products = $elem.find('ul.products');
|
78 |
-
|
79 |
-
carousel['customPaging'] = function () {
|
80 |
-
return '<i class="fas fa-circle"></i>';
|
81 |
-
};
|
82 |
-
|
83 |
-
$products.on("init", function (event) {
|
84 |
-
setTimeout(function () {
|
85 |
-
$elem.removeClass("premium-carousel-hidden");
|
86 |
-
}, 100);
|
87 |
-
|
88 |
-
});
|
89 |
-
|
90 |
-
$products.slick(carousel);
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
};
|
95 |
-
|
96 |
-
self.handleGridMetro = function () {
|
97 |
-
|
98 |
-
var $products = $elem.find("ul.products"),
|
99 |
-
currentDevice = elementorFrontend.getCurrentDeviceMode(),
|
100 |
-
suffix = "";
|
101 |
-
|
102 |
-
//Grid Parameters
|
103 |
-
var gridWidth = $products.width(),
|
104 |
-
cellSize = Math.floor(gridWidth / 12);
|
105 |
-
|
106 |
-
|
107 |
-
var metroStyle = $elem.data("metro-style");
|
108 |
-
|
109 |
-
if ("tablet" === currentDevice) {
|
110 |
-
suffix = "_tablet";
|
111 |
-
} else if ("mobile" === currentDevice) {
|
112 |
-
suffix = "_mobile";
|
113 |
-
}
|
114 |
-
|
115 |
-
if ('custom' === metroStyle) {
|
116 |
-
|
117 |
-
var wPatternLength = 0,
|
118 |
-
hPatternLength = 0;
|
119 |
-
|
120 |
-
var settings = $elem.data("metro");
|
121 |
-
|
122 |
-
//Get Products Width/Height Pattern
|
123 |
-
var wPattern = settings['wPattern' + suffix],
|
124 |
-
hPattern = settings['hPattern' + suffix];
|
125 |
-
|
126 |
-
if ("" === wPattern)
|
127 |
-
wPattern = "12";
|
128 |
-
|
129 |
-
if ("" === hPattern)
|
130 |
-
hPattern = "12";
|
131 |
-
|
132 |
-
wPattern = wPattern.split(',');
|
133 |
-
hPattern = hPattern.split(',');
|
134 |
-
|
135 |
-
wPatternLength = wPatternLength + wPattern.length;
|
136 |
-
hPatternLength = hPatternLength + hPattern.length;
|
137 |
-
|
138 |
-
$products.find("li.product").each(function (index, product) {
|
139 |
-
|
140 |
-
var wIndex = index % wPatternLength,
|
141 |
-
hIndex = index % hPatternLength;
|
142 |
-
|
143 |
-
var wCell = (parseInt(wPattern[wIndex])),
|
144 |
-
hCell = (parseInt(hPattern[hIndex]));
|
145 |
-
|
146 |
-
$(product).css({
|
147 |
-
width: Math.floor(wCell) * cellSize,
|
148 |
-
height: Math.floor(hCell) * cellSize
|
149 |
-
});
|
150 |
-
});
|
151 |
-
|
152 |
-
}
|
153 |
-
|
154 |
-
$products
|
155 |
-
.imagesLoaded(function () { })
|
156 |
-
.done(
|
157 |
-
function () {
|
158 |
-
$products.isotope({
|
159 |
-
itemSelector: "li.product",
|
160 |
-
percentPosition: true,
|
161 |
-
animationOptions: {
|
162 |
-
duration: 750,
|
163 |
-
easing: "linear"
|
164 |
-
},
|
165 |
-
layoutMode: "masonry",
|
166 |
-
masonry: {
|
167 |
-
columnWidth: cellSize
|
168 |
-
}
|
169 |
-
});
|
170 |
-
});
|
171 |
-
};
|
172 |
-
|
173 |
-
self.handleProductQuickView = function () {
|
174 |
-
$modal.appendTo(document.body);
|
175 |
-
|
176 |
-
$elem.on('click', '.premium-woo-qv-btn, .premium-woo-qv-data', self.triggerQuickViewModal);
|
177 |
-
|
178 |
-
window.addEventListener("resize", function () {
|
179 |
-
self.updateQuickViewHeight();
|
180 |
-
});
|
181 |
-
|
182 |
-
};
|
183 |
-
|
184 |
-
self.triggerQuickViewModal = function (event) {
|
185 |
-
event.preventDefault();
|
186 |
-
|
187 |
-
var $this = $(this),
|
188 |
-
productID = $this.data('product-id');
|
189 |
-
|
190 |
-
if (!$qvModal.hasClass('loading'))
|
191 |
-
$qvModal.addClass('loading');
|
192 |
-
|
193 |
-
if (!$backWrap.hasClass('premium-woo-quick-view-active'))
|
194 |
-
$backWrap.addClass('premium-woo-quick-view-active');
|
195 |
-
|
196 |
-
self.getProductByAjax(productID);
|
197 |
-
|
198 |
-
self.addCloseEvents();
|
199 |
-
};
|
200 |
-
|
201 |
-
self.getProductByAjax = function (itemID) {
|
202 |
-
|
203 |
-
$.ajax({
|
204 |
-
url: PremiumWooSettings.ajaxurl,
|
205 |
-
data: {
|
206 |
-
action: 'get_woo_product_qv',
|
207 |
-
product_id: itemID,
|
208 |
-
security: PremiumWooSettings.qv_nonce
|
209 |
-
},
|
210 |
-
dataType: 'html',
|
211 |
-
type: 'GET',
|
212 |
-
beforeSend: function () {
|
213 |
-
|
214 |
-
$qvLoader.append('<div class="premium-loading-feed"><div class="premium-loader"></div></div>');
|
215 |
-
|
216 |
-
},
|
217 |
-
success: function (data) {
|
218 |
-
|
219 |
-
$qvLoader.find('.premium-loading-feed').remove();
|
220 |
-
|
221 |
-
//Insert the product content in the quick view modal.
|
222 |
-
$contentWrap.html(data);
|
223 |
-
self.handleQuickViewModal();
|
224 |
-
},
|
225 |
-
error: function (err) {
|
226 |
-
console.log(err);
|
227 |
-
}
|
228 |
-
});
|
229 |
-
|
230 |
-
};
|
231 |
-
|
232 |
-
self.addCloseEvents = function () {
|
233 |
-
|
234 |
-
var $closeBtn = $qvModal.find('#premium-woo-quick-view-close');
|
235 |
-
|
236 |
-
$(document).keyup(function (e) {
|
237 |
-
if (e.keyCode === 27)
|
238 |
-
self.closeModal();
|
239 |
-
});
|
240 |
-
|
241 |
-
$closeBtn.on('click', function (e) {
|
242 |
-
e.preventDefault();
|
243 |
-
self.closeModal();
|
244 |
-
});
|
245 |
-
|
246 |
-
$wrapper.on('click', function (e) {
|
247 |
-
|
248 |
-
if (this === e.target)
|
249 |
-
self.closeModal();
|
250 |
-
|
251 |
-
});
|
252 |
-
};
|
253 |
-
|
254 |
-
self.handleQuickViewModal = function () {
|
255 |
-
|
256 |
-
$contentWrap.imagesLoaded(function () {
|
257 |
-
self.handleQuickViewSlider();
|
258 |
-
});
|
259 |
-
|
260 |
-
};
|
261 |
-
|
262 |
-
self.getBarWidth = function () {
|
263 |
-
|
264 |
-
var div = $('<div style="width:50px;height:50px;overflow:hidden;position:absolute;top:-200px;left:-200px;"><div style="height:100px;"></div>');
|
265 |
-
// Append our div, do our calculation and then remove it
|
266 |
-
$('body').append(div);
|
267 |
-
var w1 = $('div', div).innerWidth();
|
268 |
-
div.css('overflow-y', 'scroll');
|
269 |
-
var w2 = $('div', div).innerWidth();
|
270 |
-
$(div).remove();
|
271 |
-
|
272 |
-
return (w1 - w2);
|
273 |
-
};
|
274 |
-
|
275 |
-
self.handleQuickViewSlider = function () {
|
276 |
-
|
277 |
-
var $productSlider = $qvModal.find('.premium-woo-qv-image-slider');
|
278 |
-
|
279 |
-
if ($productSlider.find('li').length > 1) {
|
280 |
-
|
281 |
-
$productSlider.flexslider({
|
282 |
-
animation: "slide",
|
283 |
-
start: function (slider) {
|
284 |
-
setTimeout(function () {
|
285 |
-
self.updateQuickViewHeight(true, true);
|
286 |
-
}, 300);
|
287 |
-
},
|
288 |
-
});
|
289 |
-
|
290 |
-
} else {
|
291 |
-
setTimeout(function () {
|
292 |
-
self.updateQuickViewHeight(true);
|
293 |
-
}, 300);
|
294 |
-
}
|
295 |
-
|
296 |
-
if (!$qvModal.hasClass('active')) {
|
297 |
-
|
298 |
-
setTimeout(function () {
|
299 |
-
$qvModal.removeClass('loading').addClass('active');
|
300 |
-
|
301 |
-
var barWidth = self.getBarWidth();
|
302 |
-
|
303 |
-
$("html").css('margin-right', barWidth);
|
304 |
-
$("html").addClass('premium-woo-qv-opened');
|
305 |
-
}, 350);
|
306 |
-
|
307 |
-
}
|
308 |
-
|
309 |
-
};
|
310 |
-
|
311 |
-
self.updateQuickViewHeight = function (update_css, isCarousel) {
|
312 |
-
var $quickView = $contentWrap,
|
313 |
-
imgHeight = $quickView.find('.product .premium-woo-qv-image-slider').first().height(),
|
314 |
-
summary = $quickView.find('.product .summary.entry-summary'),
|
315 |
-
content = summary.css('content');
|
316 |
-
|
317 |
-
if ('undefined' != typeof content && 544 == content.replace(/[^0-9]/g, '') && 0 != imgHeight && null !== imgHeight) {
|
318 |
-
summary.css('height', imgHeight);
|
319 |
-
} else {
|
320 |
-
summary.css('height', '');
|
321 |
-
}
|
322 |
-
|
323 |
-
if (true === update_css)
|
324 |
-
$qvModal.css('opacity', 1);
|
325 |
-
|
326 |
-
//Make sure slider images have same height as summary.
|
327 |
-
if (isCarousel)
|
328 |
-
$quickView.find('.product .premium-woo-qv-image-slider img').height(summary.outerHeight());
|
329 |
-
|
330 |
-
};
|
331 |
-
|
332 |
-
self.closeModal = function () {
|
333 |
-
|
334 |
-
$backWrap.removeClass('premium-woo-quick-view-active');
|
335 |
-
|
336 |
-
$qvModal.removeClass('active').removeClass('loading');
|
337 |
-
|
338 |
-
$('html').removeClass('premium-woo-qv-opened');
|
339 |
-
|
340 |
-
$('html').css('margin-right', '');
|
341 |
-
|
342 |
-
setTimeout(function () {
|
343 |
-
$contentWrap.html('');
|
344 |
-
}, 600);
|
345 |
-
|
346 |
-
};
|
347 |
-
|
348 |
-
self.handleAddToCart = function () {
|
349 |
-
|
350 |
-
$elem
|
351 |
-
.on('click', '.instock .premium-woo-cart-btn.product_type_simple', self.onAddCartBtnClick).on('premium_product_add_to_cart', self.handleAddCartBtnClick)
|
352 |
-
.on('click', '.instock .premium-woo-atc-button .button.product_type_simple', self.onAddCartBtnClick).on('premium_product_add_to_cart', self.handleAddCartBtnClick);
|
353 |
-
|
354 |
-
};
|
355 |
-
|
356 |
-
self.onAddCartBtnClick = function (event) {
|
357 |
-
|
358 |
-
var $this = $(this);
|
359 |
-
|
360 |
-
var productID = $this.data('product_id'),
|
361 |
-
quantity = 1;
|
362 |
-
|
363 |
-
|
364 |
-
//If current product has no defined ID.
|
365 |
-
if (!productID)
|
366 |
-
return;
|
367 |
-
|
368 |
-
if (!$this.data("added-to-cart")) {
|
369 |
-
event.preventDefault();
|
370 |
-
} else {
|
371 |
-
return;
|
372 |
-
}
|
373 |
-
|
374 |
-
$this.removeClass('added').addClass('adding');
|
375 |
-
|
376 |
-
if (!$this.hasClass('premium-woo-cart-btn')) {
|
377 |
-
$this.append('<span class="premium-woo-cart-loader fas fa-cog"></span>')
|
378 |
-
}
|
379 |
-
|
380 |
-
$.ajax({
|
381 |
-
url: PremiumWooSettings.ajaxurl,
|
382 |
-
type: 'POST',
|
383 |
-
data: {
|
384 |
-
action: 'premium_woo_add_cart_product',
|
385 |
-
nonce: PremiumWooSettings.cta_nonce,
|
386 |
-
product_id: productID,
|
387 |
-
quantity: quantity,
|
388 |
-
},
|
389 |
-
success: function () {
|
390 |
-
$(document.body).trigger('wc_fragment_refresh');
|
391 |
-
$elem.trigger('premium_product_add_to_cart', [$this]);
|
392 |
-
|
393 |
-
if ('grid_10' === skin || !$this.hasClass('premium-woo-cart-btn')) {
|
394 |
-
setTimeout(function () {
|
395 |
-
|
396 |
-
var viewCartTxt = $this.siblings('.added_to_cart').text();
|
397 |
-
|
398 |
-
if ('' == viewCartTxt)
|
399 |
-
viewCartTxt = 'View Cart';
|
400 |
-
|
401 |
-
$this.removeClass('add_to_cart_button').attr('href', PremiumWooSettings.woo_cart_url).text(viewCartTxt);
|
402 |
-
|
403 |
-
$this.attr('data-added-to-cart', true);
|
404 |
-
}, 200);
|
405 |
-
|
406 |
-
}
|
407 |
-
|
408 |
-
}
|
409 |
-
});
|
410 |
-
|
411 |
-
};
|
412 |
-
|
413 |
-
self.handleAddCartBtnClick = function (event, $btn) {
|
414 |
-
|
415 |
-
if (!$btn)
|
416 |
-
return;
|
417 |
-
|
418 |
-
$btn.removeClass('adding').addClass('added');
|
419 |
-
|
420 |
-
};
|
421 |
-
|
422 |
-
self.handleGalleryImages = function () {
|
423 |
-
|
424 |
-
$elem.on('click', '.premium-woo-product__gallery_image', function () {
|
425 |
-
var $thisImg = $(this),
|
426 |
-
$closestThumb = $thisImg.closest(".premium-woo-product-thumbnail"),
|
427 |
-
imgSrc = $thisImg.attr('src');
|
428 |
-
|
429 |
-
if ($closestThumb.find(".premium-woo-product__on_hover").length < 1) {
|
430 |
-
$closestThumb.find(".woocommerce-loop-product__link img").replaceWith($thisImg.clone(true));
|
431 |
-
} else {
|
432 |
-
$closestThumb.find(".premium-woo-product__on_hover").attr('src', imgSrc);
|
433 |
-
}
|
434 |
-
|
435 |
-
});
|
436 |
-
|
437 |
-
};
|
438 |
-
|
439 |
-
self.handleGalleryNav = function () {
|
440 |
-
|
441 |
-
$elem.on('click', '.premium-woo-product-gallery-images .premium-woo-product__gallery_image', function () {
|
442 |
-
var imgParent = $(this).parentsUntil(".premium-woo-product-wrapper")[2],
|
443 |
-
slickContainer = $(imgParent).siblings('.premium-woo-product-thumbnail'),
|
444 |
-
imgIndex = $(this).index() + 1;
|
445 |
-
|
446 |
-
slickContainer.slick('slickGoTo', imgIndex);
|
447 |
-
});
|
448 |
-
};
|
449 |
-
|
450 |
-
self.handleGalleryCarousel = function (skin) {
|
451 |
-
|
452 |
-
var products = $elem.find('.premium-woo-product-thumbnail'),
|
453 |
-
prevArrow = '<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Previous" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>',
|
454 |
-
nextArrow = '<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>',
|
455 |
-
infinite = 'grid_11' === skin ? false : true,
|
456 |
-
slickSettings = {
|
457 |
-
infinite: infinite,
|
458 |
-
slidesToShow: 1,
|
459 |
-
slidesToScroll: 1,
|
460 |
-
draggable: true,
|
461 |
-
autoplay: false,
|
462 |
-
rtl: elementorFrontend.config.is_rtl,
|
463 |
-
};
|
464 |
-
|
465 |
-
if ('grid_11' !== skin) {
|
466 |
-
slickSettings.nextArrow = nextArrow;
|
467 |
-
slickSettings.prevArrow = prevArrow;
|
468 |
-
} else {
|
469 |
-
slickSettings.arrows = false;
|
470 |
-
}
|
471 |
-
|
472 |
-
products.each(function (index, product) {
|
473 |
-
$imgs = $(product).find('a').length;
|
474 |
-
|
475 |
-
if ($imgs > 1) {
|
476 |
-
$(product).not('.slick-initialized').slick(slickSettings);
|
477 |
-
}
|
478 |
-
});
|
479 |
-
}
|
480 |
-
|
481 |
-
self.handleLoadMore = function () {
|
482 |
-
|
483 |
-
var $loadMoreBtn = $elem.find(".premium-woo-load-more-btn"),
|
484 |
-
page_number = 2,
|
485 |
-
pageID = $elem.data('page-id');
|
486 |
-
|
487 |
-
if ($loadMoreBtn.length < 1)
|
488 |
-
return;
|
489 |
-
|
490 |
-
$loadMoreBtn.on('click', function (e) {
|
491 |
-
|
492 |
-
if (!canLoadMore)
|
493 |
-
return;
|
494 |
-
|
495 |
-
canLoadMore = false;
|
496 |
-
|
497 |
-
$elem.find('ul.products').after('<div class="premium-loading-feed"><div class="premium-loader"></div></div>');
|
498 |
-
|
499 |
-
$loadMoreBtn.css("opacity", 0.3);
|
500 |
-
|
501 |
-
$.ajax({
|
502 |
-
url: PremiumWooSettings.ajaxurl,
|
503 |
-
data: {
|
504 |
-
action: 'get_woo_products',
|
505 |
-
pageID: pageID,
|
506 |
-
elemID: $scope.data('id'),
|
507 |
-
category: '',
|
508 |
-
skin: skin,
|
509 |
-
page_number: page_number,
|
510 |
-
nonce: PremiumWooSettings.products_nonce,
|
511 |
-
},
|
512 |
-
dataType: 'json',
|
513 |
-
type: 'POST',
|
514 |
-
success: function (data) {
|
515 |
-
|
516 |
-
html = data.data.html;
|
517 |
-
|
518 |
-
//If the number of coming products is 0, then remove the button.
|
519 |
-
var newProductsLength = $loadMoreBtn.data("products") - html.match(/<li/g).length;
|
520 |
-
if (newProductsLength < 1)
|
521 |
-
$loadMoreBtn.remove();
|
522 |
-
|
523 |
-
canLoadMore = true;
|
524 |
-
|
525 |
-
$elem.find('.premium-loading-feed').remove();
|
526 |
-
$loadMoreBtn.css("opacity", 1);
|
527 |
-
|
528 |
-
var $currentProducts = $elem.find('ul.products');
|
529 |
-
|
530 |
-
//Remove the wrapper <ul>
|
531 |
-
html = html.replace(html.substring(0, html.indexOf('>') + 1), '');
|
532 |
-
html = html.replace("</ul>", "");
|
533 |
-
|
534 |
-
|
535 |
-
$loadMoreBtn.find(".premium-woo-products-num").text("(" + newProductsLength + ")");
|
536 |
-
|
537 |
-
$loadMoreBtn.data("products", newProductsLength);
|
538 |
-
|
539 |
-
$currentProducts.append(html);
|
540 |
-
|
541 |
-
// //Trigger carousel for products in the next pages.
|
542 |
-
if ("grid_7" === skin || "grid_11" === skin) {
|
543 |
-
self.handleGalleryCarousel(skin);
|
544 |
-
}
|
545 |
-
|
546 |
-
page_number++;
|
547 |
-
|
548 |
-
|
549 |
-
},
|
550 |
-
error: function (err) {
|
551 |
-
console.log(err);
|
552 |
-
}
|
553 |
-
});
|
554 |
-
|
555 |
-
|
556 |
-
});
|
557 |
-
}
|
558 |
-
|
559 |
-
self.handleProductPagination = function () {
|
560 |
-
|
561 |
-
$elem.on('click', '.premium-woo-products-pagination a.page-numbers', function (e) {
|
562 |
-
|
563 |
-
var $targetPage = $(this);
|
564 |
-
|
565 |
-
if ($elem.hasClass('premium-woo-query-main'))
|
566 |
-
return;
|
567 |
-
|
568 |
-
e.preventDefault();
|
569 |
-
|
570 |
-
$elem.find('ul.products').after('<div class="premium-loading-feed"><div class="premium-loader"></div></div>');
|
571 |
-
|
572 |
-
var pageID = $elem.data('page-id'),
|
573 |
-
currentPage = parseInt($elem.find('.page-numbers.current').html()),
|
574 |
-
page_number = 1;
|
575 |
-
|
576 |
-
if ($targetPage.hasClass('next')) {
|
577 |
-
page_number = currentPage + 1;
|
578 |
-
} else if ($targetPage.hasClass('prev')) {
|
579 |
-
page_number = currentPage - 1;
|
580 |
-
} else {
|
581 |
-
page_number = $targetPage.html();
|
582 |
-
}
|
583 |
-
|
584 |
-
$.ajax({
|
585 |
-
url: PremiumWooSettings.ajaxurl,
|
586 |
-
data: {
|
587 |
-
action: 'get_woo_products',
|
588 |
-
pageID: pageID,
|
589 |
-
elemID: $scope.data('id'),
|
590 |
-
category: '',
|
591 |
-
skin: skin,
|
592 |
-
page_number: page_number,
|
593 |
-
nonce: PremiumWooSettings.products_nonce,
|
594 |
-
},
|
595 |
-
dataType: 'json',
|
596 |
-
type: 'POST',
|
597 |
-
success: function (data) {
|
598 |
-
|
599 |
-
$elem.find('.premium-loading-feed').remove();
|
600 |
-
|
601 |
-
$('html, body').animate({
|
602 |
-
scrollTop: (($scope.find('.premium-woocommerce').offset().top) - 100)
|
603 |
-
}, 'slow');
|
604 |
-
|
605 |
-
var $currentProducts = $elem.find('ul.products');
|
606 |
-
|
607 |
-
$currentProducts.replaceWith(data.data.html);
|
608 |
-
|
609 |
-
$elem.find('.premium-woo-products-pagination').replaceWith(data.data.pagination);
|
610 |
-
|
611 |
-
//Trigger carousel for products in the next pages.
|
612 |
-
if ("grid_7" === skin || "grid_11" === skin) {
|
613 |
-
self.handleGalleryCarousel(skin);
|
614 |
-
}
|
615 |
-
|
616 |
-
if ($elem.hasClass("premium-woo-products-metro"))
|
617 |
-
self.handleGridMetro();
|
618 |
-
|
619 |
-
},
|
620 |
-
error: function (err) {
|
621 |
-
console.log(err);
|
622 |
-
}
|
623 |
-
});
|
624 |
-
|
625 |
-
});
|
626 |
-
|
627 |
-
};
|
628 |
-
|
629 |
-
|
630 |
-
};
|
631 |
-
|
632 |
-
|
633 |
-
//Elementor JS Hooks.
|
634 |
-
$(window).on("elementor/frontend/init", function () {
|
635 |
-
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-1", PremiumWooProductsHandler);
|
636 |
-
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-2", PremiumWooProductsHandler);
|
637 |
-
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-3", PremiumWooProductsHandler);
|
638 |
-
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-4", PremiumWooProductsHandler);
|
639 |
-
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-5", PremiumWooProductsHandler);
|
640 |
-
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-6", PremiumWooProductsHandler);
|
641 |
-
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-7", PremiumWooProductsHandler);
|
642 |
-
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-8", PremiumWooProductsHandler);
|
643 |
-
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-9", PremiumWooProductsHandler);
|
644 |
-
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-10", PremiumWooProductsHandler);
|
645 |
-
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-11", PremiumWooProductsHandler);
|
646 |
-
});
|
647 |
Â
})(jQuery);
|
1 |
+
(function ($) {
|
2 |
+
|
3 |
+
var PremiumWooProductsHandler = function ($scope, $) {
|
4 |
+
var instance = null;
|
5 |
+
|
6 |
+
instance = new premiumWooProducts($scope);
|
7 |
+
instance.init();
|
8 |
+
};
|
9 |
+
|
10 |
+
window.premiumWooProducts = function ($scope) {
|
11 |
+
|
12 |
+
var self = this,
|
13 |
+
$elem = $scope.find(".premium-woocommerce"),
|
14 |
+
skin = $scope.find('.premium-woocommerce').data('skin'),
|
15 |
+
html = null,
|
16 |
+
canLoadMore = true;
|
17 |
+
|
18 |
+
//Check Quick View
|
19 |
+
var isQuickView = $elem.data("quick-view");
|
20 |
+
|
21 |
+
if ("yes" === isQuickView) {
|
22 |
+
|
23 |
+
var widgetID = $scope.data("id"),
|
24 |
+
$modal = $elem.siblings(".premium-woo-quick-view-" + widgetID),
|
25 |
+
$qvModal = $modal.find('#premium-woo-quick-view-modal'),
|
26 |
+
$contentWrap = $qvModal.find('#premium-woo-quick-view-content'),
|
27 |
+
$wrapper = $qvModal.find('.premium-woo-content-main-wrapper'),
|
28 |
+
$backWrap = $modal.find('.premium-woo-quick-view-back'),
|
29 |
+
$qvLoader = $modal.find('.premium-woo-quick-view-loader');
|
30 |
+
|
31 |
+
}
|
32 |
+
|
33 |
+
self.init = function () {
|
34 |
+
|
35 |
+
self.handleProductsCarousel();
|
36 |
+
|
37 |
+
if ("yes" === isQuickView) {
|
38 |
+
self.handleProductQuickView();
|
39 |
+
}
|
40 |
+
|
41 |
+
self.handleProductPagination();
|
42 |
+
|
43 |
+
self.handleLoadMore();
|
44 |
+
|
45 |
+
self.handleAddToCart();
|
46 |
+
|
47 |
+
if ("grid_6" === skin) {
|
48 |
+
self.handleGalleryImages();
|
49 |
+
}
|
50 |
+
|
51 |
+
if (["grid_7", "grid_11"].includes(skin)) {
|
52 |
+
|
53 |
+
self.handleGalleryCarousel(skin);
|
54 |
+
|
55 |
+
if ("grid_11" === skin) {
|
56 |
+
self.handleGalleryNav();
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
if ($elem.hasClass("premium-woo-products-metro")) {
|
61 |
+
|
62 |
+
self.handleGridMetro();
|
63 |
+
|
64 |
+
$(window).on("resize", self.handleGridMetro);
|
65 |
+
|
66 |
+
}
|
67 |
+
|
68 |
+
};
|
69 |
+
|
70 |
+
self.handleProductsCarousel = function () {
|
71 |
+
|
72 |
+
var carousel = $elem.data("woo_carousel");
|
73 |
+
|
74 |
+
if (!carousel)
|
75 |
+
return;
|
76 |
+
|
77 |
+
var $products = $elem.find('ul.products');
|
78 |
+
|
79 |
+
carousel['customPaging'] = function () {
|
80 |
+
return '<i class="fas fa-circle"></i>';
|
81 |
+
};
|
82 |
+
|
83 |
+
$products.on("init", function (event) {
|
84 |
+
setTimeout(function () {
|
85 |
+
$elem.removeClass("premium-carousel-hidden");
|
86 |
+
}, 100);
|
87 |
+
|
88 |
+
});
|
89 |
+
|
90 |
+
$products.slick(carousel);
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
};
|
95 |
+
|
96 |
+
self.handleGridMetro = function () {
|
97 |
+
|
98 |
+
var $products = $elem.find("ul.products"),
|
99 |
+
currentDevice = elementorFrontend.getCurrentDeviceMode(),
|
100 |
+
suffix = "";
|
101 |
+
|
102 |
+
//Grid Parameters
|
103 |
+
var gridWidth = $products.width(),
|
104 |
+
cellSize = Math.floor(gridWidth / 12);
|
105 |
+
|
106 |
+
|
107 |
+
var metroStyle = $elem.data("metro-style");
|
108 |
+
|
109 |
+
if ("tablet" === currentDevice) {
|
110 |
+
suffix = "_tablet";
|
111 |
+
} else if ("mobile" === currentDevice) {
|
112 |
+
suffix = "_mobile";
|
113 |
+
}
|
114 |
+
|
115 |
+
if ('custom' === metroStyle) {
|
116 |
+
|
117 |
+
var wPatternLength = 0,
|
118 |
+
hPatternLength = 0;
|
119 |
+
|
120 |
+
var settings = $elem.data("metro");
|
121 |
+
|
122 |
+
//Get Products Width/Height Pattern
|
123 |
+
var wPattern = settings['wPattern' + suffix],
|
124 |
+
hPattern = settings['hPattern' + suffix];
|
125 |
+
|
126 |
+
if ("" === wPattern)
|
127 |
+
wPattern = "12";
|
128 |
+
|
129 |
+
if ("" === hPattern)
|
130 |
+
hPattern = "12";
|
131 |
+
|
132 |
+
wPattern = wPattern.split(',');
|
133 |
+
hPattern = hPattern.split(',');
|
134 |
+
|
135 |
+
wPatternLength = wPatternLength + wPattern.length;
|
136 |
+
hPatternLength = hPatternLength + hPattern.length;
|
137 |
+
|
138 |
+
$products.find("li.product").each(function (index, product) {
|
139 |
+
|
140 |
+
var wIndex = index % wPatternLength,
|
141 |
+
hIndex = index % hPatternLength;
|
142 |
+
|
143 |
+
var wCell = (parseInt(wPattern[wIndex])),
|
144 |
+
hCell = (parseInt(hPattern[hIndex]));
|
145 |
+
|
146 |
+
$(product).css({
|
147 |
+
width: Math.floor(wCell) * cellSize,
|
148 |
+
height: Math.floor(hCell) * cellSize
|
149 |
+
});
|
150 |
+
});
|
151 |
+
|
152 |
+
}
|
153 |
+
|
154 |
+
$products
|
155 |
+
.imagesLoaded(function () { })
|
156 |
+
.done(
|
157 |
+
function () {
|
158 |
+
$products.isotope({
|
159 |
+
itemSelector: "li.product",
|
160 |
+
percentPosition: true,
|
161 |
+
animationOptions: {
|
162 |
+
duration: 750,
|
163 |
+
easing: "linear"
|
164 |
+
},
|
165 |
+
layoutMode: "masonry",
|
166 |
+
masonry: {
|
167 |
+
columnWidth: cellSize
|
168 |
+
}
|
169 |
+
});
|
170 |
+
});
|
171 |
+
};
|
172 |
+
|
173 |
+
self.handleProductQuickView = function () {
|
174 |
+
$modal.appendTo(document.body);
|
175 |
+
|
176 |
+
$elem.on('click', '.premium-woo-qv-btn, .premium-woo-qv-data', self.triggerQuickViewModal);
|
177 |
+
|
178 |
+
window.addEventListener("resize", function () {
|
179 |
+
self.updateQuickViewHeight();
|
180 |
+
});
|
181 |
+
|
182 |
+
};
|
183 |
+
|
184 |
+
self.triggerQuickViewModal = function (event) {
|
185 |
+
event.preventDefault();
|
186 |
+
|
187 |
+
var $this = $(this),
|
188 |
+
productID = $this.data('product-id');
|
189 |
+
|
190 |
+
if (!$qvModal.hasClass('loading'))
|
191 |
+
$qvModal.addClass('loading');
|
192 |
+
|
193 |
+
if (!$backWrap.hasClass('premium-woo-quick-view-active'))
|
194 |
+
$backWrap.addClass('premium-woo-quick-view-active');
|
195 |
+
|
196 |
+
self.getProductByAjax(productID);
|
197 |
+
|
198 |
+
self.addCloseEvents();
|
199 |
+
};
|
200 |
+
|
201 |
+
self.getProductByAjax = function (itemID) {
|
202 |
+
|
203 |
+
$.ajax({
|
204 |
+
url: PremiumWooSettings.ajaxurl,
|
205 |
+
data: {
|
206 |
+
action: 'get_woo_product_qv',
|
207 |
+
product_id: itemID,
|
208 |
+
security: PremiumWooSettings.qv_nonce
|
209 |
+
},
|
210 |
+
dataType: 'html',
|
211 |
+
type: 'GET',
|
212 |
+
beforeSend: function () {
|
213 |
+
|
214 |
+
$qvLoader.append('<div class="premium-loading-feed"><div class="premium-loader"></div></div>');
|
215 |
+
|
216 |
+
},
|
217 |
+
success: function (data) {
|
218 |
+
|
219 |
+
$qvLoader.find('.premium-loading-feed').remove();
|
220 |
+
|
221 |
+
//Insert the product content in the quick view modal.
|
222 |
+
$contentWrap.html(data);
|
223 |
+
self.handleQuickViewModal();
|
224 |
+
},
|
225 |
+
error: function (err) {
|
226 |
+
console.log(err);
|
227 |
+
}
|
228 |
+
});
|
229 |
+
|
230 |
+
};
|
231 |
+
|
232 |
+
self.addCloseEvents = function () {
|
233 |
+
|
234 |
+
var $closeBtn = $qvModal.find('#premium-woo-quick-view-close');
|
235 |
+
|
236 |
+
$(document).keyup(function (e) {
|
237 |
+
if (e.keyCode === 27)
|
238 |
+
self.closeModal();
|
239 |
+
});
|
240 |
+
|
241 |
+
$closeBtn.on('click', function (e) {
|
242 |
+
e.preventDefault();
|
243 |
+
self.closeModal();
|
244 |
+
});
|
245 |
+
|
246 |
+
$wrapper.on('click', function (e) {
|
247 |
+
|
248 |
+
if (this === e.target)
|
249 |
+
self.closeModal();
|
250 |
+
|
251 |
+
});
|
252 |
+
};
|
253 |
+
|
254 |
+
self.handleQuickViewModal = function () {
|
255 |
+
|
256 |
+
$contentWrap.imagesLoaded(function () {
|
257 |
+
self.handleQuickViewSlider();
|
258 |
+
});
|
259 |
+
|
260 |
+
};
|
261 |
+
|
262 |
+
self.getBarWidth = function () {
|
263 |
+
|
264 |
+
var div = $('<div style="width:50px;height:50px;overflow:hidden;position:absolute;top:-200px;left:-200px;"><div style="height:100px;"></div>');
|
265 |
+
// Append our div, do our calculation and then remove it
|
266 |
+
$('body').append(div);
|
267 |
+
var w1 = $('div', div).innerWidth();
|
268 |
+
div.css('overflow-y', 'scroll');
|
269 |
+
var w2 = $('div', div).innerWidth();
|
270 |
+
$(div).remove();
|
271 |
+
|
272 |
+
return (w1 - w2);
|
273 |
+
};
|
274 |
+
|
275 |
+
self.handleQuickViewSlider = function () {
|
276 |
+
|
277 |
+
var $productSlider = $qvModal.find('.premium-woo-qv-image-slider');
|
278 |
+
|
279 |
+
if ($productSlider.find('li').length > 1) {
|
280 |
+
|
281 |
+
$productSlider.flexslider({
|
282 |
+
animation: "slide",
|
283 |
+
start: function (slider) {
|
284 |
+
setTimeout(function () {
|
285 |
+
self.updateQuickViewHeight(true, true);
|
286 |
+
}, 300);
|
287 |
+
},
|
288 |
+
});
|
289 |
+
|
290 |
+
} else {
|
291 |
+
setTimeout(function () {
|
292 |
+
self.updateQuickViewHeight(true);
|
293 |
+
}, 300);
|
294 |
+
}
|
295 |
+
|
296 |
+
if (!$qvModal.hasClass('active')) {
|
297 |
+
|
298 |
+
setTimeout(function () {
|
299 |
+
$qvModal.removeClass('loading').addClass('active');
|
300 |
+
|
301 |
+
var barWidth = self.getBarWidth();
|
302 |
+
|
303 |
+
$("html").css('margin-right', barWidth);
|
304 |
+
$("html").addClass('premium-woo-qv-opened');
|
305 |
+
}, 350);
|
306 |
+
|
307 |
+
}
|
308 |
+
|
309 |
+
};
|
310 |
+
|
311 |
+
self.updateQuickViewHeight = function (update_css, isCarousel) {
|
312 |
+
var $quickView = $contentWrap,
|
313 |
+
imgHeight = $quickView.find('.product .premium-woo-qv-image-slider').first().height(),
|
314 |
+
summary = $quickView.find('.product .summary.entry-summary'),
|
315 |
+
content = summary.css('content');
|
316 |
+
|
317 |
+
if ('undefined' != typeof content && 544 == content.replace(/[^0-9]/g, '') && 0 != imgHeight && null !== imgHeight) {
|
318 |
+
summary.css('height', imgHeight);
|
319 |
+
} else {
|
320 |
+
summary.css('height', '');
|
321 |
+
}
|
322 |
+
|
323 |
+
if (true === update_css)
|
324 |
+
$qvModal.css('opacity', 1);
|
325 |
+
|
326 |
+
//Make sure slider images have same height as summary.
|
327 |
+
if (isCarousel)
|
328 |
+
$quickView.find('.product .premium-woo-qv-image-slider img').height(summary.outerHeight());
|
329 |
+
|
330 |
+
};
|
331 |
+
|
332 |
+
self.closeModal = function () {
|
333 |
+
|
334 |
+
$backWrap.removeClass('premium-woo-quick-view-active');
|
335 |
+
|
336 |
+
$qvModal.removeClass('active').removeClass('loading');
|
337 |
+
|
338 |
+
$('html').removeClass('premium-woo-qv-opened');
|
339 |
+
|
340 |
+
$('html').css('margin-right', '');
|
341 |
+
|
342 |
+
setTimeout(function () {
|
343 |
+
$contentWrap.html('');
|
344 |
+
}, 600);
|
345 |
+
|
346 |
+
};
|
347 |
+
|
348 |
+
self.handleAddToCart = function () {
|
349 |
+
|
350 |
+
$elem
|
351 |
+
.on('click', '.instock .premium-woo-cart-btn.product_type_simple', self.onAddCartBtnClick).on('premium_product_add_to_cart', self.handleAddCartBtnClick)
|
352 |
+
.on('click', '.instock .premium-woo-atc-button .button.product_type_simple', self.onAddCartBtnClick).on('premium_product_add_to_cart', self.handleAddCartBtnClick);
|
353 |
+
|
354 |
+
};
|
355 |
+
|
356 |
+
self.onAddCartBtnClick = function (event) {
|
357 |
+
|
358 |
+
var $this = $(this);
|
359 |
+
|
360 |
+
var productID = $this.data('product_id'),
|
361 |
+
quantity = 1;
|
362 |
+
|
363 |
+
|
364 |
+
//If current product has no defined ID.
|
365 |
+
if (!productID)
|
366 |
+
return;
|
367 |
+
|
368 |
+
if (!$this.data("added-to-cart")) {
|
369 |
+
event.preventDefault();
|
370 |
+
} else {
|
371 |
+
return;
|
372 |
+
}
|
373 |
+
|
374 |
+
$this.removeClass('added').addClass('adding');
|
375 |
+
|
376 |
+
if (!$this.hasClass('premium-woo-cart-btn')) {
|
377 |
+
$this.append('<span class="premium-woo-cart-loader fas fa-cog"></span>')
|
378 |
+
}
|
379 |
+
|
380 |
+
$.ajax({
|
381 |
+
url: PremiumWooSettings.ajaxurl,
|
382 |
+
type: 'POST',
|
383 |
+
data: {
|
384 |
+
action: 'premium_woo_add_cart_product',
|
385 |
+
nonce: PremiumWooSettings.cta_nonce,
|
386 |
+
product_id: productID,
|
387 |
+
quantity: quantity,
|
388 |
+
},
|
389 |
+
success: function () {
|
390 |
+
$(document.body).trigger('wc_fragment_refresh');
|
391 |
+
$elem.trigger('premium_product_add_to_cart', [$this]);
|
392 |
+
|
393 |
+
if ('grid_10' === skin || !$this.hasClass('premium-woo-cart-btn')) {
|
394 |
+
setTimeout(function () {
|
395 |
+
|
396 |
+
var viewCartTxt = $this.siblings('.added_to_cart').text();
|
397 |
+
|
398 |
+
if ('' == viewCartTxt)
|
399 |
+
viewCartTxt = 'View Cart';
|
400 |
+
|
401 |
+
$this.removeClass('add_to_cart_button').attr('href', PremiumWooSettings.woo_cart_url).text(viewCartTxt);
|
402 |
+
|
403 |
+
$this.attr('data-added-to-cart', true);
|
404 |
+
}, 200);
|
405 |
+
|
406 |
+
}
|
407 |
+
|
408 |
+
}
|
409 |
+
});
|
410 |
+
|
411 |
+
};
|
412 |
+
|
413 |
+
self.handleAddCartBtnClick = function (event, $btn) {
|
414 |
+
|
415 |
+
if (!$btn)
|
416 |
+
return;
|
417 |
+
|
418 |
+
$btn.removeClass('adding').addClass('added');
|
419 |
+
|
420 |
+
};
|
421 |
+
|
422 |
+
self.handleGalleryImages = function () {
|
423 |
+
|
424 |
+
$elem.on('click', '.premium-woo-product__gallery_image', function () {
|
425 |
+
var $thisImg = $(this),
|
426 |
+
$closestThumb = $thisImg.closest(".premium-woo-product-thumbnail"),
|
427 |
+
imgSrc = $thisImg.attr('src');
|
428 |
+
|
429 |
+
if ($closestThumb.find(".premium-woo-product__on_hover").length < 1) {
|
430 |
+
$closestThumb.find(".woocommerce-loop-product__link img").replaceWith($thisImg.clone(true));
|
431 |
+
} else {
|
432 |
+
$closestThumb.find(".premium-woo-product__on_hover").attr('src', imgSrc);
|
433 |
+
}
|
434 |
+
|
435 |
+
});
|
436 |
+
|
437 |
+
};
|
438 |
+
|
439 |
+
self.handleGalleryNav = function () {
|
440 |
+
|
441 |
+
$elem.on('click', '.premium-woo-product-gallery-images .premium-woo-product__gallery_image', function () {
|
442 |
+
var imgParent = $(this).parentsUntil(".premium-woo-product-wrapper")[2],
|
443 |
+
slickContainer = $(imgParent).siblings('.premium-woo-product-thumbnail'),
|
444 |
+
imgIndex = $(this).index() + 1;
|
445 |
+
|
446 |
+
slickContainer.slick('slickGoTo', imgIndex);
|
447 |
+
});
|
448 |
+
};
|
449 |
+
|
450 |
+
self.handleGalleryCarousel = function (skin) {
|
451 |
+
|
452 |
+
var products = $elem.find('.premium-woo-product-thumbnail'),
|
453 |
+
prevArrow = '<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Previous" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>',
|
454 |
+
nextArrow = '<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>',
|
455 |
+
infinite = 'grid_11' === skin ? false : true,
|
456 |
+
slickSettings = {
|
457 |
+
infinite: infinite,
|
458 |
+
slidesToShow: 1,
|
459 |
+
slidesToScroll: 1,
|
460 |
+
draggable: true,
|
461 |
+
autoplay: false,
|
462 |
+
rtl: elementorFrontend.config.is_rtl,
|
463 |
+
};
|
464 |
+
|
465 |
+
if ('grid_11' !== skin) {
|
466 |
+
slickSettings.nextArrow = nextArrow;
|
467 |
+
slickSettings.prevArrow = prevArrow;
|
468 |
+
} else {
|
469 |
+
slickSettings.arrows = false;
|
470 |
+
}
|
471 |
+
|
472 |
+
products.each(function (index, product) {
|
473 |
+
$imgs = $(product).find('a').length;
|
474 |
+
|
475 |
+
if ($imgs > 1) {
|
476 |
+
$(product).not('.slick-initialized').slick(slickSettings);
|
477 |
+
}
|
478 |
+
});
|
479 |
+
}
|
480 |
+
|
481 |
+
self.handleLoadMore = function () {
|
482 |
+
|
483 |
+
var $loadMoreBtn = $elem.find(".premium-woo-load-more-btn"),
|
484 |
+
page_number = 2,
|
485 |
+
pageID = $elem.data('page-id');
|
486 |
+
|
487 |
+
if ($loadMoreBtn.length < 1)
|
488 |
+
return;
|
489 |
+
|
490 |
+
$loadMoreBtn.on('click', function (e) {
|
491 |
+
|
492 |
+
if (!canLoadMore)
|
493 |
+
return;
|
494 |
+
|
495 |
+
canLoadMore = false;
|
496 |
+
|
497 |
+
$elem.find('ul.products').after('<div class="premium-loading-feed"><div class="premium-loader"></div></div>');
|
498 |
+
|
499 |
+
$loadMoreBtn.css("opacity", 0.3);
|
500 |
+
|
501 |
+
$.ajax({
|
502 |
+
url: PremiumWooSettings.ajaxurl,
|
503 |
+
data: {
|
504 |
+
action: 'get_woo_products',
|
505 |
+
pageID: pageID,
|
506 |
+
elemID: $scope.data('id'),
|
507 |
+
category: '',
|
508 |
+
skin: skin,
|
509 |
+
page_number: page_number,
|
510 |
+
nonce: PremiumWooSettings.products_nonce,
|
511 |
+
},
|
512 |
+
dataType: 'json',
|
513 |
+
type: 'POST',
|
514 |
+
success: function (data) {
|
515 |
+
|
516 |
+
html = data.data.html;
|
517 |
+
|
518 |
+
//If the number of coming products is 0, then remove the button.
|
519 |
+
var newProductsLength = $loadMoreBtn.data("products") - html.match(/<li/g).length;
|
520 |
+
if (newProductsLength < 1)
|
521 |
+
$loadMoreBtn.remove();
|
522 |
+
|
523 |
+
canLoadMore = true;
|
524 |
+
|
525 |
+
$elem.find('.premium-loading-feed').remove();
|
526 |
+
$loadMoreBtn.css("opacity", 1);
|
527 |
+
|
528 |
+
var $currentProducts = $elem.find('ul.products');
|
529 |
+
|
530 |
+
//Remove the wrapper <ul>
|
531 |
+
html = html.replace(html.substring(0, html.indexOf('>') + 1), '');
|
532 |
+
html = html.replace("</ul>", "");
|
533 |
+
|
534 |
+
|
535 |
+
$loadMoreBtn.find(".premium-woo-products-num").text("(" + newProductsLength + ")");
|
536 |
+
|
537 |
+
$loadMoreBtn.data("products", newProductsLength);
|
538 |
+
|
539 |
+
$currentProducts.append(html);
|
540 |
+
|
541 |
+
// //Trigger carousel for products in the next pages.
|
542 |
+
if ("grid_7" === skin || "grid_11" === skin) {
|
543 |
+
self.handleGalleryCarousel(skin);
|
544 |
+
}
|
545 |
+
|
546 |
+
page_number++;
|
547 |
+
|
548 |
+
|
549 |
+
},
|
550 |
+
error: function (err) {
|
551 |
+
console.log(err);
|
552 |
+
}
|
553 |
+
});
|
554 |
+
|
555 |
+
|
556 |
+
});
|
557 |
+
}
|
558 |
+
|
559 |
+
self.handleProductPagination = function () {
|
560 |
+
|
561 |
+
$elem.on('click', '.premium-woo-products-pagination a.page-numbers', function (e) {
|
562 |
+
|
563 |
+
var $targetPage = $(this);
|
564 |
+
|
565 |
+
if ($elem.hasClass('premium-woo-query-main'))
|
566 |
+
return;
|
567 |
+
|
568 |
+
e.preventDefault();
|
569 |
+
|
570 |
+
$elem.find('ul.products').after('<div class="premium-loading-feed"><div class="premium-loader"></div></div>');
|
571 |
+
|
572 |
+
var pageID = $elem.data('page-id'),
|
573 |
+
currentPage = parseInt($elem.find('.page-numbers.current').html()),
|
574 |
+
page_number = 1;
|
575 |
+
|
576 |
+
if ($targetPage.hasClass('next')) {
|
577 |
+
page_number = currentPage + 1;
|
578 |
+
} else if ($targetPage.hasClass('prev')) {
|
579 |
+
page_number = currentPage - 1;
|
580 |
+
} else {
|
581 |
+
page_number = $targetPage.html();
|
582 |
+
}
|
583 |
+
|
584 |
+
$.ajax({
|
585 |
+
url: PremiumWooSettings.ajaxurl,
|
586 |
+
data: {
|
587 |
+
action: 'get_woo_products',
|
588 |
+
pageID: pageID,
|
589 |
+
elemID: $scope.data('id'),
|
590 |
+
category: '',
|
591 |
+
skin: skin,
|
592 |
+
page_number: page_number,
|
593 |
+
nonce: PremiumWooSettings.products_nonce,
|
594 |
+
},
|
595 |
+
dataType: 'json',
|
596 |
+
type: 'POST',
|
597 |
+
success: function (data) {
|
598 |
+
|
599 |
+
$elem.find('.premium-loading-feed').remove();
|
600 |
+
|
601 |
+
$('html, body').animate({
|
602 |
+
scrollTop: (($scope.find('.premium-woocommerce').offset().top) - 100)
|
603 |
+
}, 'slow');
|
604 |
+
|
605 |
+
var $currentProducts = $elem.find('ul.products');
|
606 |
+
|
607 |
+
$currentProducts.replaceWith(data.data.html);
|
608 |
+
|
609 |
+
$elem.find('.premium-woo-products-pagination').replaceWith(data.data.pagination);
|
610 |
+
|
611 |
+
//Trigger carousel for products in the next pages.
|
612 |
+
if ("grid_7" === skin || "grid_11" === skin) {
|
613 |
+
self.handleGalleryCarousel(skin);
|
614 |
+
}
|
615 |
+
|
616 |
+
if ($elem.hasClass("premium-woo-products-metro"))
|
617 |
+
self.handleGridMetro();
|
618 |
+
|
619 |
+
},
|
620 |
+
error: function (err) {
|
621 |
+
console.log(err);
|
622 |
+
}
|
623 |
+
});
|
624 |
+
|
625 |
+
});
|
626 |
+
|
627 |
+
};
|
628 |
+
|
629 |
+
|
630 |
+
};
|
631 |
+
|
632 |
+
|
633 |
+
//Elementor JS Hooks.
|
634 |
+
$(window).on("elementor/frontend/init", function () {
|
635 |
+
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-1", PremiumWooProductsHandler);
|
636 |
+
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-2", PremiumWooProductsHandler);
|
637 |
+
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-3", PremiumWooProductsHandler);
|
638 |
+
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-4", PremiumWooProductsHandler);
|
639 |
+
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-5", PremiumWooProductsHandler);
|
640 |
+
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-6", PremiumWooProductsHandler);
|
641 |
+
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-7", PremiumWooProductsHandler);
|
642 |
+
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-8", PremiumWooProductsHandler);
|
643 |
+
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-9", PremiumWooProductsHandler);
|
644 |
+
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-10", PremiumWooProductsHandler);
|
645 |
+
elementorFrontend.hooks.addAction("frontend/element_ready/premium-woo-products.grid-11", PremiumWooProductsHandler);
|
646 |
+
});
|
647 |
Â
})(jQuery);
|
assets/frontend/min-js/lottie.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function($){"undefined"!=typeof navigator&&function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).lottie=e()}(this,function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){for(var i,r=t.length,s=0;s<r;s+=1)for(var a in i=t[s].prototype)Object.prototype.hasOwnProperty.call(i,a)&&(e.prototype[a]=i[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(t){for(var e=this.audios.length,i=0;i<e;i+=1)this.audios[i].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function i(t,e){var i,r=0,s=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(r=0;r<e;r+=1)s.push(i);return s}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):i(t,e)}:i}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var subframeEnabled=!0,expressionsPlugin=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){}!function(){for(var t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],e=t.length,i=0;i<e;i+=1)BMMath[t[i]]=Math[t[i]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){for(var e=createSizedArray(t.length),i=t.length,r=0;r<i;r+=1)e[r]=Math.abs(t[r]);return e}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){if(_shouldRoundValues)return Math.round(t)}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,i,r){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=r<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,r){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=r<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=function(){var t=0;return function(){return idPrefix$1+"__lottie_element_"+(t+=1)}}();function HSVtoRGB(t,e,i){var r,s,a,n=Math.floor(6*t),t=6*t-n,o=i*(1-e),h=i*(1-t*e),l=i*(1-(1-t)*e);switch(n%6){case 0:r=i,s=l,a=o;break;case 1:r=h,s=i,a=o;break;case 2:r=o,s=i,a=l;break;case 3:r=o,s=h,a=i;break;case 4:r=l,s=o,a=i;break;case 5:r=i,s=o,a=h}return[r,s,a]}function RGBtoHSV(t,e,i){var r,s=Math.max(t,e,i),a=Math.min(t,e,i),n=s-a,o=0===s?0:n/s,h=s/255;switch(s){case a:r=0;break;case t:r=e-i+n*(e<i?6:0),r/=6*n;break;case e:r=i-t+2*n,r/=6*n;break;case i:r=t-e+4*n,r/=6*n}return[r,o,h]}function addSaturationToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[1]+=e,1<t[1]?t[1]=1:t[1]<=0&&(t[1]=0),HSVtoRGB(t[0],t[1],t[2])}function addBrightnessToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[2]+=e,1<t[2]?t[2]=1:t[2]<0&&(t[2]=0),HSVtoRGB(t[0],t[1],t[2])}function addHueToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[0]+=e/360,1<t[0]?--t[0]:t[0]<0&&(t[0]+=1),HSVtoRGB(t[0],t[1],t[2])}var rgbToHex=function(){for(var t,r=[],e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(t,e,i){return"#"+r[t=t<0?0:t]+r[e=e<0?0:e]+r[i=i<0?0:i]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var dataManager=function(){var i,r,s=1,a=[],n={onmessage:function(){},postMessage:function(t){i({data:t})}},o={postMessage:function(t){n.onmessage({data:t})}};function h(){var t,e;r||(t=function(e){function t(){function p(t,e){for(var i,r,s,a=t.length,n=0;n<a;n+=1)if("ks"in(s=t[n])&&!s.completed){if(s.completed=!0,s.tt&&(t[n-1].td=s.tt),s.hasMask)for(var o=s.masksProperties,h=o.length,l=0;l<h;l+=1)if(o[l].pt.k.i)c(o[l].pt.k);else for(r=o[l].pt.k.length,i=0;i<r;i+=1)o[l].pt.k[i].s&&c(o[l].pt.k[i].s[0]),o[l].pt.k[i].e&&c(o[l].pt.k[i].e[0]);0===s.ty?(s.layers=m(s.refId,e),p(s.layers,e)):4===s.ty?f(s.shapes):5===s.ty&&0===(s=s).t.a.length&&0 in s.t.p}}function m(t,e){t=function(t,e){for(var i=0,r=e.length;i<r;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return t?t.layers.__used?JSON.parse(JSON.stringify(t.layers)):(t.layers.__used=!0,t.layers):null}function f(t){for(var e,i,r=t.length-1;0<=r;--r)if("sh"===t[r].ty)if(t[r].ks.k.i)c(t[r].ks.k);else for(i=t[r].ks.k.length,e=0;e<i;e+=1)t[r].ks.k[e].s&&c(t[r].ks.k[e].s[0]),t[r].ks.k[e].e&&c(t[r].ks.k[e].e[0]);else"gr"===t[r].ty&&f(t[r].it)}function c(t){for(var e=t.i.length,i=0;i<e;i+=1)t.i[i][0]+=t.v[i][0],t.i[i][1]+=t.v[i][1],t.o[i][0]+=t.v[i][0],t.o[i][1]+=t.v[i][1]}function s(t,e){e=e?e.split("."):[100,100,100];return t[0]>e[0]||!(e[0]>t[0])&&(t[1]>e[1]||!(e[1]>t[1])&&(t[2]>e[2]||(e[2],void t[2])))}r=[4,4,14];var r,a=function(t){if(s(r,t.v)&&(n(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&n(t.assets[i].layers)};function n(t){for(var e,i,r=t.length,s=0;s<r;s+=1)5===t[s].ty&&(e=t[s],i=void 0,i=e.t.d,e.t.d={k:[{s:i,t:0}]})}o=[4,7,99];var o,h,l=function(t){if(t.chars&&!s(o,t.v))for(var e=t.chars.length,i=0;i<e;i+=1){var r=t.chars[i];r.data&&r.data.shapes&&(f(r.data.shapes),r.data.ip=0,r.data.op=99999,r.data.st=0,r.data.sr=1,r.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[i].t||(r.data.shapes.push({ty:"no"}),r.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}},d=(h=[5,7,15],function(t){if(s(h,t.v)&&(u(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&u(t.assets[i].layers)});function u(t){for(var e,i=t.length,r=0;r<i;r+=1)5===t[r].ty&&("number"==typeof(e=(e=t[r]).t.p).a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r}))}y=[4,1,9];var y,g=function(t){if(s(y,t.v)&&(v(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&v(t.assets[i].layers)};function v(t){for(var e=t.length,i=0;i<e;i+=1)4===t[i].ty&&!function t(e){for(var i,r,s=e.length,a=0;a<s;a+=1)if("gr"===e[a].ty)t(e[a].it);else if("fl"===e[a].ty||"st"===e[a].ty)if(e[a].c.k&&e[a].c.k[0].i)for(r=e[a].c.k.length,i=0;i<r;i+=1)e[a].c.k[i].s&&(e[a].c.k[i].s[0]/=255,e[a].c.k[i].s[1]/=255,e[a].c.k[i].s[2]/=255,e[a].c.k[i].s[3]/=255),e[a].c.k[i].e&&(e[a].c.k[i].e[0]/=255,e[a].c.k[i].e[1]/=255,e[a].c.k[i].e[2]/=255,e[a].c.k[i].e[3]/=255);else e[a].c.k[0]/=255,e[a].c.k[1]/=255,e[a].c.k[2]/=255,e[a].c.k[3]/=255}(t[i].shapes)}b=[4,4,18];var b,P=function(t){if(s(b,t.v)&&(E(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&E(t.assets[i].layers)};function E(t){for(var e,i,r,s=t.length,a=0;a<s;a+=1){if((e=t[a]).hasMask)for(var n=e.masksProperties,o=n.length,h=0;h<o;h+=1)if(n[h].pt.k.i)n[h].pt.k.c=n[h].cl;else for(r=n[h].pt.k.length,i=0;i<r;i+=1)n[h].pt.k[i].s&&(n[h].pt.k[i].s[0].c=n[h].cl),n[h].pt.k[i].e&&(n[h].pt.k[i].e[0].c=n[h].cl);4===e.ty&&!function t(e){for(var i,r,s=e.length-1;0<=s;--s)if("sh"===e[s].ty)if(e[s].ks.k.i)e[s].ks.k.c=e[s].closed;else for(r=e[s].ks.k.length,i=0;i<r;i+=1)e[s].ks.k[i].s&&(e[s].ks.k[i].s[0].c=e[s].closed),e[s].ks.k[i].e&&(e[s].ks.k[i].e[0].c=e[s].closed);else"gr"===e[s].ty&&t(e[s].it)}(e.shapes)}}var t={};return t.completeData=function(t){if(!t.__complete){g(t),a(t),l(t),d(t),P(t),p(t.layers,t.assets);var e=t.chars,i=t.assets;if(e)for(var r=0,s=e.length,r=0;r<s;r+=1)1===e[r].t&&(e[r].data.layers=m(e[r].data.refId,i),p(e[r].data.layers,i));t.__complete=!0}},t.checkColors=g,t.checkChars=l,t.checkPathProperties=d,t.checkShapes=P,t.completeLayers=p,t}function n(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}var i;o.dataManager||(o.dataManager=t()),o.assetLoader||(o.assetLoader={load:function(e,i,t,r){var s,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)s=n(a),t(s);else try{s=n(a),t(s)}catch(t){r&&r(t)}};try{a.open("GET",e,!0)}catch(t){a.open("GET",i+"/"+e,!0)}a.send()}}),"loadAnimation"===e.data.type?o.assetLoader.load(e.data.path,e.data.fullPath,function(t){o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})},function(){o.postMessage({id:e.data.id,status:"error"})}):"complete"===e.data.type?(i=e.data.animation,o.dataManager.completeData(i),o.postMessage({id:e.data.id,payload:i,status:"success"})):"loadData"===e.data.type&&o.assetLoader.load(e.data.path,e.data.fullPath,function(t){o.postMessage({id:e.data.id,payload:t,status:"success"})},function(){o.postMessage({id:e.data.id,status:"error"})})},(r=window.Worker&&window.Blob&&getWebWorker()?(e=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),e=URL.createObjectURL(e),new Worker(e)):(i=t,n)).onmessage=function(t){var t=t.data,e=t.id,i=a[e];a[e]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function l(t,e){var i="processId_"+(s+=1);return a[i]={onComplete:t,onError:e},i}return{loadAnimation:function(t,e,i){h(),e=l(e,i),r.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:e})},loadData:function(t,e,i){h(),e=l(e,i),r.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:e})},completeAnimation:function(t,e,i){h(),e=l(e,i),r.postMessage({type:"complete",animation:t,id:e})}}}(),ImagePreloader=function(){(t=createTag("canvas")).width=1,t.height=1,(e=t.getContext("2d")).fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1);var t,e,s=t;function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(t,e,i){var r="";return r=t.e?t.p:e?e+(e=-1!==(e=t.p).indexOf("images/")?e.split("/")[1]:e):(r=i,(r+=t.u||"")+t.p)}function n(){this._imageLoaded=i.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=function(t){var e=0,i=setInterval(function(){(t.getBBox().width||500<e)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}.bind(this),this.createFootageData=function(t){var e={assetData:t},t=a(t,this.assetsPath,this.path);return dataManager.loadData(t,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return n.prototype={loadAssets:function(t,e){this.imagesLoadedCb=e;for(var i=t.length,r=0;r<i;r+=1)t[r].layers||(t[r].t&&"seq"!==t[r].t?3===t[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[r]))):(this.totalImages+=1,this.images.push(this._createImageData(t[r]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(t){var e=a(t,this.assetsPath,this.path),i=createTag("img"),r=(i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){r.img=s,this._imageLoaded()}.bind(this),!1),i.src=e,{img:i,assetData:t});return r},createImageData:function(t){var e=a(t,this.assetsPath,this.path),i=createNS("image"),r=(isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){r.img=s,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i),{img:i,assetData:t});return r},imageLoaded:i,footageLoaded:r,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},n}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],r=0;r<i.length;r+=1)i[r](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,r=this._cbs[t].length;i<r;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),--i,--r),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(e){for(var t=[],i=0;i<e.length;i+=1){var r=e[i],r={time:r.tm,duration:r.dr};try{r.payload=JSON.parse(e[i].cm)}catch(t){try{r.payload=function(t){for(var e,i=t.split("\r\n"),r={},s=0,a=0;a<i.length;a+=1)2===(e=i[a].split(":")).length&&(r[e[0]]=e[1].trim(),s+=1);if(0===s)throw new Error;return r}(e[i].cm)}catch(t){r.payload={name:e[i].cm}}}t.push(r)}return t},ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function _typeof$4(t){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)},animationManager=(extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg",i=(t.animType?e=t.animType:t.renderer&&(e=t.renderer),getRenderer(e));this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name||"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){var e={wrapper:t,animationData:e=e&&"object"!==_typeof$4(e)?JSON.parse(e):e},t=t.attributes,i=(e.path=t.getNamedItem("data-animation-path")?t.getNamedItem("data-animation-path").value:t.getNamedItem("data-bm-path")?t.getNamedItem("data-bm-path").value:t.getNamedItem("bm-path")?t.getNamedItem("bm-path").value:"",e.animType=t.getNamedItem("data-anim-type")?t.getNamedItem("data-anim-type").value:t.getNamedItem("data-bm-type")?t.getNamedItem("data-bm-type").value:t.getNamedItem("bm-type")?t.getNamedItem("bm-type").value:t.getNamedItem("data-bm-renderer")?t.getNamedItem("data-bm-renderer").value:t.getNamedItem("bm-renderer")?t.getNamedItem("bm-renderer").value:"canvas",t.getNamedItem("data-anim-loop")?t.getNamedItem("data-anim-loop").value:t.getNamedItem("data-bm-loop")?t.getNamedItem("data-bm-loop").value:t.getNamedItem("bm-loop")?t.getNamedItem("bm-loop").value:""),i=("false"===i?e.loop=!1:"true"===i?e.loop=!0:""!==i&&(e.loop=parseInt(i,10)),t.getNamedItem("data-anim-autoplay")?t.getNamedItem("data-anim-autoplay").value:t.getNamedItem("data-bm-autoplay")?t.getNamedItem("data-bm-autoplay").value:!t.getNamedItem("bm-autoplay")||t.getNamedItem("bm-autoplay").value);e.autoplay="false"!==i,e.name=t.getNamedItem("data-name")?t.getNamedItem("data-name").value:t.getNamedItem("data-bm-name")?t.getNamedItem("data-bm-name").value:t.getNamedItem("bm-name")?t.getNamedItem("bm-name").value:"","false"===(t.getNamedItem("data-anim-prerender")?t.getNamedItem("data-anim-prerender").value:t.getNamedItem("data-bm-prerender")?t.getNamedItem("data-bm-prerender").value:t.getNamedItem("bm-prerender")?t.getNamedItem("bm-prerender").value:"")&&(e.prerender=!1),this.setParams(e)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));for(var e,i=this.animationData.layers,r=i.length,s=t.layers,a=s.length,n=0;n<a;n+=1)for(e=0;e<r;){if(i[e].id===s[n].id){i[e]=s[n];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,e=0;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);t=t.shift(),this.timeCompleted=t.time*this.frameRate,t=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(t,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){var t;!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()&&(this.isLoaded=!0,(t=getExpressionsPlugin())&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){i&&this.name!==i||(i=Number(t),isNaN(i)?(i=this.getMarkerData(t))&&this.goToAndStop(i.time,!0):e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,i){var r;i&&this.name!==i||(r=Number(t),isNaN(r)?(t=this.getMarkerData(t))&&(t.duration?this.playSegments([t.time,t.time+t.duration],!0):this.goToAndStop(t.time,!0)):this.goToAndStop(r,e,i),this.play())},AnimationItem.prototype.advanceTime=function(t){var e;!0!==this.isPaused&&!1!==this.isLoaded&&(e=!1,(t=this.currentRawFrame+t*this.frameModifier)>=this.totalFrames-1&&0<this.frameModifier?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(e=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(e=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),e&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete")))},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(0<this.frameModifier&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0]))for(var i=t.length,r=0;r<i;r+=1)this.segments.push(t[r]);else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e,i="";return i=t.e?t.p:this.assetsPath?(-1!==(e=t.p).indexOf("images/")&&(e=e.split("/")[1]),this.assetsPath+e):(i=this.path,(i+=t.u||"")+t.p)},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){t=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(t){t=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},function(){var t={},s=[],r=0,a=0,n=0,o=!0,h=!1;function i(t){for(var e=0,i=t.target;e<a;)s[e].animation===i&&(s.splice(e,1),--e,--a,i.isPaused||m()),e+=1}function l(t,e){if(!t)return null;for(var i=0;i<a;){if(s[i].elem===t&&null!==s[i].elem)return s[i].animation;i+=1}var r=new AnimationItem;return f(r,t),r.setData(t,e),r}function p(){n+=1,d()}function m(){--n}function f(t,e){t.addEventListener("destroy",i),t.addEventListener("_active",p),t.addEventListener("_idle",m),s.push({elem:e,animation:t}),a+=1}function c(t){for(var e=t-r,i=0;i<a;i+=1)s[i].animation.advanceTime(e);r=t,n&&!h?window.requestAnimationFrame(c):o=!0}function e(t){r=t,window.requestAnimationFrame(c)}function d(){!h&&n&&o&&(window.requestAnimationFrame(e),o=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return f(e,null),e.setParams(t),e},t.setSpeed=function(t,e){for(var i=0;i<a;i+=1)s[i].animation.setSpeed(t,e)},t.setDirection=function(t,e){for(var i=0;i<a;i+=1)s[i].animation.setDirection(t,e)},t.play=function(t){for(var e=0;e<a;e+=1)s[e].animation.play(t)},t.pause=function(t){for(var e=0;e<a;e+=1)s[e].animation.pause(t)},t.stop=function(t){for(var e=0;e<a;e+=1)s[e].animation.stop(t)},t.togglePause=function(t){for(var e=0;e<a;e+=1)s[e].animation.togglePause(t)},t.searchAnimations=function(t,e,i){for(var r,s=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=s.length,n=0;n<a;n+=1)i&&s[n].setAttribute("data-bm-type",i),l(s[n],t);e&&0===a&&(i=i||"svg",(e=document.getElementsByTagName("body")[0]).innerText="",(r=createTag("div")).style.width="100%",r.style.height="100%",r.setAttribute("data-bm-type",i),e.appendChild(r),l(r,t))},t.resize=function(){for(var t=0;t<a;t+=1)s[t].animation.resize()},t.goToAndStop=function(t,e,i){for(var r=0;r<a;r+=1)s[r].animation.goToAndStop(t,e,i)},t.destroy=function(t){for(var e=a-1;0<=e;--e)s[e].animation.destroy(t)},t.freeze=function(){h=!0},t.unfreeze=function(){h=!1,d()},t.setVolume=function(t,e){for(var i=0;i<a;i+=1)s[i].animation.setVolume(t,e)},t.mute=function(t){for(var e=0;e<a;e+=1)s[e].animation.mute(t)},t.unmute=function(t){for(var e=0;e<a;e+=1)s[e].animation.unmute(t)},t.getRegisteredAnimations=function(){for(var t=s.length,e=[],i=0;i<t;i+=1)e.push(s[i].animation);return e},t}()),BezierFactory=function(){var t={getBezierEasing:function(t,e,i,r,s){s=s||("bez_"+t+"_"+e+"_"+i+"_"+r).replace(/\./g,"p");if(a[s])return a[s];t=new n([t,e,i,r]);return a[s]=t}},a={};var S=11,_=1/(S-1),e="function"==typeof Float32Array;function r(t,e){return 1-3*e+3*t}function C(t,e,i){return((r(e,i)*t+(3*i-6*e))*t+3*e)*t}function A(t,e,i){return 3*r(e,i)*t*t+2*(3*i-6*e)*t+3*e}function n(t){this._p=t,this._mSampleValues=new(e?Float32Array:Array)(S),this._precomputed=!1,this.get=this.get.bind(this)}return n.prototype={get:function(t){var e=this._p[0],i=this._p[1],r=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),e===i&&r===s?t:0===t?0:1===t?1:C(this._getTForX(t),i,s)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],r=this._p[3];this._precomputed=!0,t===e&&i===r||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<S;++i)this._mSampleValues[i]=C(i*_,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],r=this._mSampleValues,s=0,a=1,n=S-1;a!==n&&r[a]<=t;++a)s+=_;var o=s+(t-r[--a])/(r[a+1]-r[a])*_,h=A(o,e,i);if(.001<=h){for(var l=t,p=o,m=e,f=i,c=0;c<4;++c){var d=A(p,m,f);if(0===d)return p;p-=(C(p,m,f)-l)/d}return p}if(0===h)return o;for(var u,y,g=t,v=s,b=s+_,P=e,E=i,x=0;0<(u=C(y=v+(b-v)/2,P,E)-g)?b=y:v=y,1e-7<Math.abs(u)&&++x<10;);return y}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,i){var r=0,s=t,a=createSizedArray(s);return{newElement:function(){var t;t=r?a[--r]:e();return t},release:function(t){r===s&&(a=pooling.double(a),s*=2);i&&i(t);a[r]=t,r+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){for(var e=t.lengths.length,i=0;i<e;i+=1)bezierLengthPool.release(t.lengths[i]);t.lengths.length=0});function bezFunction(){var A=Math;function y(t,e,i,r,s,a){s=t*r+e*s+i*a-s*r-a*t-i*e;return-.001<s&&s<.001}var p=function(t,e,i,r){for(var s,a,n,o,h=getDefaultCurveSegments(),l=0,p=[],m=[],f=bezierLengthPool.newElement(),c=i.length,d=0;d<h;d+=1){for(n=d/(h-1),s=o=0;s<c;s+=1)a=bmPow(1-n,3)*t[s]+3*bmPow(1-n,2)*n*i[s]+3*(1-n)*bmPow(n,2)*r[s]+bmPow(n,3)*e[s],p[s]=a,null!==m[s]&&(o+=bmPow(p[s]-m[s],2)),m[s]=p[s];o&&(l+=o=bmSqrt(o)),f.percents[d]=n,f.lengths[d]=l}return f.addedLength=l,f};function g(t){this.segmentLength=0,this.points=new Array(t)}function v(t,e){this.partialLength=t,this.point=e}function t(t,e,i,r){var s=(t[0]+"_"+t[1]+"_"+e[0]+"_"+e[1]+"_"+i[0]+"_"+i[1]+"_"+r[0]+"_"+r[1]).replace(/\./g,"p");if(!b[s]){for(var a,n,o,h,l,p=getDefaultCurveSegments(),m=0,f=null,c=new g(p=2===t.length&&(t[0]!==e[0]||t[1]!==e[1])&&y(t[0],t[1],e[0],e[1],t[0]+i[0],t[1]+i[1])&&y(t[0],t[1],e[0],e[1],e[0]+r[0],e[1]+r[1])?2:p),d=i.length,u=0;u<p;u+=1){for(l=createSizedArray(d),o=u/(p-1),a=h=0;a<d;a+=1)n=bmPow(1-o,3)*t[a]+3*bmPow(1-o,2)*o*(t[a]+i[a])+3*(1-o)*bmPow(o,2)*(e[a]+r[a])+bmPow(o,3)*e[a],l[a]=n,null!==f&&(h+=bmPow(l[a]-f[a],2));m+=h=bmSqrt(h),c.points[u]=new v(h,l),f=l}c.segmentLength=m,b[s]=c}return b[s]}var b;b={};function T(t,e){var i=e.percents,r=e.lengths,s=i.length,a=bmFloor((s-1)*t),n=t*e.addedLength,o=0;if(a===s-1||0===a||n===r[a])return i[a];for(var h=r[a]>n?-1:1,l=!0;l;)if(r[a]<=n&&r[a+1]>n?(o=(n-r[a])/(r[a+1]-r[a]),l=!1):a+=h,a<0||s-1<=a){if(a===s-1)return i[a];l=!1}return i[a]+(i[a+1]-i[a])*o}var D=createTypedArray("float32",8);return{getSegmentsLength:function(t){for(var e=segmentsLengthPool.newElement(),i=t.c,r=t.v,s=t.o,a=t.i,n=t._length,o=e.lengths,h=0,l=0;l<n-1;l+=1)o[l]=p(r[l],r[l+1],s[l],a[l+1]),h+=o[l].addedLength;return i&&n&&(o[l]=p(r[l],r[0],s[l],a[0]),h+=o[l].addedLength),e.totalLength=h,e},getNewSegment:function(t,e,i,r,s,a,n){s<0?s=0:1<s&&(s=1);for(var s=T(s,n),a=T(a=1<a?1:a,n),o=t.length,h=1-a,l=(n=1-s)*n*n,p=s*n*n*3,m=s*s*n*3,f=s*s*s,c=n*n*h,d=s*n*h+n*s*h+n*n*a,u=s*s*h+n*s*a+s*n*a,y=s*s*a,g=n*h*h,v=s*h*h+n*a*h+n*h*a,b=s*a*h+n*a*a+s*h*a,P=s*a*a,E=h*h*h,x=a*h*h+h*a*h+h*h*a,S=a*a*h+h*a*a+a*h*a,_=a*a*a,C=0;C<o;C+=1)D[4*C]=A.round(1e3*(l*t[C]+p*i[C]+m*r[C]+f*e[C]))/1e3,D[4*C+1]=A.round(1e3*(c*t[C]+d*i[C]+u*r[C]+y*e[C]))/1e3,D[4*C+2]=A.round(1e3*(g*t[C]+v*i[C]+b*r[C]+P*e[C]))/1e3,D[4*C+3]=A.round(1e3*(E*t[C]+x*i[C]+S*r[C]+_*e[C]))/1e3;return D},getPointInSegment:function(t,e,i,r,s,a){return s=T(s,a),a=1-s,[A.round(1e3*(a*a*a*t[0]+(s*a*a+a*s*a+a*a*s)*i[0]+(s*s*a+a*s*s+s*a*s)*r[0]+s*s*s*e[0]))/1e3,A.round(1e3*(a*a*a*t[1]+(s*a*a+a*s*a+a*a*s)*i[1]+(s*s*a+a*s*s+s*a*s)*r[1]+s*s*s*e[1]))/1e3]},buildBezierData:t,pointOnLine2D:y,pointOnLine3D:function(t,e,i,r,s,a,n,o,h){if(0===i&&0===a&&0===h)return y(t,e,r,s,n,o);var l=A.sqrt(A.pow(r-t,2)+A.pow(s-e,2)+A.pow(a-i,2)),t=A.sqrt(A.pow(n-t,2)+A.pow(o-e,2)+A.pow(h-i,2)),e=A.sqrt(A.pow(n-r,2)+A.pow(o-s,2)+A.pow(h-a,2));return-1e-4<(i=t<l?e<l?l-t-e:e-t-l:t<e?e-t-l:t-l-e)&&i<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var m=initialDefaultFrame,s=Math.abs;function f(t,e){for(var i,r,s,a,n=this.offsetTime,o=("multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length)),e.lastIndex),h=o,l=this.keyframes.length-1,p=!0;p;){if(r=this.keyframes[h],s=this.keyframes[h+1],h===l-1&&t>=s.t-n){r.h&&(r=s),o=0;break}if(s.t-n>t){o=h;break}h<l-1?h+=1:(o=0,p=!1)}var m,f,c,d,u,y=this.keyframesMetadata[h]||{},g=s.t-n,v=r.t-n;if(r.to){y.bezierData||(y.bezierData=bez.buildBezierData(r.s,s.s||r.e,r.to,r.ti));var b=y.bezierData;if(g<=t||t<v)for(var P=g<=t?b.points.length-1:0,E=b.points[P].point.length,x=0;x<E;x+=1)i[x]=b.points[P].point[x];else{y.__fnct?a=y.__fnct:(a=BezierFactory.getBezierEasing(r.o.x,r.o.y,r.i.x,r.i.y,r.n).get,y.__fnct=a);for(var S,_=a((t-v)/(g-v)),C=b.segmentLength*_,A=e.lastFrame<t&&e._lastKeyframeIndex===h?e._lastAddedLength:0,T=e.lastFrame<t&&e._lastKeyframeIndex===h?e._lastPoint:0,p=!0,R=b.points.length;p;){if(A+=b.points[T].partialLength,0==C||0===_||T===b.points.length-1){for(E=b.points[T].point.length,x=0;x<E;x+=1)i[x]=b.points[T].point[x];break}if(A<=C&&C<A+b.points[T+1].partialLength){for(S=(C-A)/b.points[T+1].partialLength,E=b.points[T].point.length,x=0;x<E;x+=1)i[x]=b.points[T].point[x]+(b.points[T+1].point[x]-b.points[T].point[x])*S;break}T<R-1?T+=1:p=!1}e._lastPoint=T,e._lastAddedLength=A-b.points[T].partialLength,e._lastKeyframeIndex=h}}else{var D,k,M,F,w,I,V,l=r.s.length,B=s.s||r.e;if(this.sh&&1!==r.h)g<=t?(i[0]=B[0],i[1]=B[1],i[2]=B[2]):t<=v?(i[0]=r.s[0],i[1]=r.s[1],i[2]=r.s[2]):(I=L(r.s),V=L(B),m=i,I=function(t,e,i){var r,s,a,n=[],o=t[0],h=t[1],l=t[2],t=t[3],p=e[0],m=e[1],f=e[2],e=e[3];(a=o*p+h*m+l*f+t*e)<0&&(a=-a,p=-p,m=-m,f=-f,e=-e);a=1e-6<1-a?(a=Math.acos(a),r=Math.sin(a),s=Math.sin((1-i)*a)/r,Math.sin(i*a)/r):(s=1-i,i);return n[0]=s*o+a*p,n[1]=s*h+a*m,n[2]=s*l+a*f,n[3]=s*t+a*e,n}(I,V,(t-v)/(g-v)),V=I[0],f=I[1],c=I[2],I=I[3],d=Math.atan2(2*f*I-2*V*c,1-2*f*f-2*c*c),u=Math.asin(2*V*f+2*c*I),I=Math.atan2(2*V*I-2*f*c,1-2*V*V-2*c*c),m[0]=d/degToRads,m[1]=u/degToRads,m[2]=I/degToRads);else for(h=0;h<l;h+=1)1!==r.h&&(_=g<=t?1:t<v?0:(r.o.x.constructor===Array?(y.__fnct||(y.__fnct=[]),y.__fnct[h]?a=y.__fnct[h]:(D=void 0===r.o.x[h]?r.o.x[0]:r.o.x[h],k=void 0===r.o.y[h]?r.o.y[0]:r.o.y[h],M=void 0===r.i.x[h]?r.i.x[0]:r.i.x[h],F=void 0===r.i.y[h]?r.i.y[0]:r.i.y[h],a=BezierFactory.getBezierEasing(D,k,M,F).get,y.__fnct[h]=a)):y.__fnct?a=y.__fnct:(D=r.o.x,k=r.o.y,M=r.i.x,F=r.i.y,a=BezierFactory.getBezierEasing(D,k,M,F).get,r.keyframeMetadata=a),a((t-v)/(g-v)))),B=s.s||r.e,w=1===r.h?r.s[h]:r.s[h]+(B[h]-r.s[h])*_,"multidimensional"===this.propType?i[h]=w:i=w}return e.lastIndex=o,i}function L(t){var e=t[0]*degToRads,i=t[1]*degToRads,t=t[2]*degToRads,r=Math.cos(e/2),s=Math.cos(i/2),a=Math.cos(t/2),e=Math.sin(e/2),i=Math.sin(i/2),t=Math.sin(t/2);return[e*i*a+r*s*t,e*s*a+r*i*t,r*i*a-e*s*t,r*s*a-e*i*t]}function c(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;return t===this._caching.lastFrame||this._caching.lastFrame!==m&&(this._caching.lastFrame>=i&&i<=t||this._caching.lastFrame<e&&t<e)||(this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0),i=this.interpolateValue(t,this._caching),this.pv=i),this._caching.lastFrame=t,this.pv}function d(t){var e;if("unidimensional"===this.propType)e=t*this.mult,1e-5<s(this.v-e)&&(this.v=e,this._mdf=!0);else for(var i=0,r=this.v.length;i<r;)e=t[i]*this.mult,1e-5<s(this.v[i]-e)&&(this.v[i]=e,this._mdf=!0),i+=1}function u(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;for(var t=this.effectsSequence.length,e=this.kf?this.pv:this.data.k,i=0;i<t;i+=1)e=this.effectsSequence[i](e);this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function y(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function n(t,e,i,r){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=u,this.setVValue=d,this.addEffect=y}function o(t,e,i,r){this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,a=e.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),s=0;s<a;s+=1)this.v[s]=e.k[s]*this.mult,this.pv[s]=e.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=u,this.setVValue=d,this.addEffect=y}function h(t,e,i,r){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:m,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=r,this.comp=t.comp,this.v=m,this.pv=m,this._isFirstFrame=!0,this.getValue=u,this.setVValue=d,this.interpolateValue=f,this.effectsSequence=[c.bind(this)],this.addEffect=y}function l(t,e,i,r){this.propType="multidimensional";for(var s,a,n,o,h=e.k.length,l=0;l<h-1;l+=1)e.k[l].to&&e.k[l].s&&e.k[l+1]&&e.k[l+1].s&&(s=e.k[l].s,a=e.k[l+1].s,n=e.k[l].to,o=e.k[l].ti,(2===s.length&&(s[0]!==a[0]||s[1]!==a[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],s[0]+n[0],s[1]+n[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],a[0]+o[0],a[1]+o[1])||3===s.length&&(s[0]!==a[0]||s[1]!==a[1]||s[2]!==a[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],s[0]+n[0],s[1]+n[1],s[2]+n[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],a[0]+o[0],a[1]+o[1],a[2]+o[2]))&&(e.k[l].to=null,e.k[l].ti=null),s[0]===a[0]&&s[1]===a[1]&&0===n[0]&&0===n[1]&&0===o[0]&&0===o[1]&&(2===s.length||s[2]===a[2]&&0===n[2]&&0===o[2])&&(e.k[l].to=null,e.k[l].ti=null));this.effectsSequence=[c.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=r,this.comp=t.comp,this.getValue=u,this.setVValue=d,this.interpolateValue=f,this.frameId=-1;var p=e.k[0].s.length;for(this.v=createTypedArray("float32",p),this.pv=createTypedArray("float32",p),l=0;l<p;l+=1)this.v[l]=m,this.pv[l]=m;this._caching={lastFrame:m,lastIndex:0,value:createTypedArray("float32",p)},this.addEffect=y}return{getProp:function(t,e,i,r,s){var a;if(e.k.length)if("number"==typeof e.k[0])a=new o(t,e,r,s);else switch(i){case 0:a=new h(t,e,r,s);break;case 1:a=new l(t,e,r,s)}else a=new n(t,e,r,s);return a.effectsSequence.length&&s.addDynamicProperty(a),a}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;for(var t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,r,s){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}a[r]&&(!a[r]||s)||(a[r]=pointPool.newElement()),a[r][0]=t,a[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,r,s,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(i,r,"o",n,o),this.setXYAt(s,a,"i",n,o)},ShapePath.prototype.reverse=function(){for(var t=new ShapePath,e=(t.setPathData(this.c,this._length),this.v),i=this.o,r=this.i,s=0,a=(this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),s=1),this._length-1),n=this._length,o=s;o<n;o+=1)t.setTripleAt(e[a][0],e[a][1],r[a][0],r[a][1],i[a][0],i[a][1],o,!1),--a;return t};var shapePool=function(){var s=poolFactory(4,function(){return new ShapePath},function(t){for(var e=t._length,i=0;i<e;i+=1)pointPool.release(t.v[i]),pointPool.release(t.i[i]),pointPool.release(t.o[i]),t.v[i]=null,t.i[i]=null,t.o[i]=null;t._length=0,t.c=!1});return s.clone=function(t){var e,i=s.newElement(),r=void 0===t._length?t.v.length:t._length;for(i.setLength(r),i.c=t.c,e=0;e<r;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},s}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){for(var t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=function(){var t={newShapeCollection:function(){var t;t=r?a[--r]:new ShapeCollection;return t},release:function(t){var e,i=t._length;for(e=0;e<i;e+=1)shapePool.release(t.shapes[e]);t._length=0,r===s&&(a=pooling.double(a),s*=2);a[r]=t,r+=1}},r=0,s=4,a=createSizedArray(s);return t}(),ShapePropertyFactory=function(){var s=-999999;function t(t,e,i){var r,s,a,n,o,h,l,p=i.lastIndex,m=this.keyframes;if(t<m[0].t-this.offsetTime)r=m[0].s[0],s=!0,p=0;else if(t>=m[m.length-1].t-this.offsetTime)r=(m[m.length-1].s?m[m.length-1].s:m[m.length-2].e)[0],s=!0;else{for(var f,c,d,u,y,g,v=p,b=m.length-1,P=!0;P&&(f=m[v],!((c=m[v+1]).t-this.offsetTime>t));)v<b-1?v+=1:P=!1;d=this.keyframesMetadata[v]||{},p=v,(s=1===f.h)||(y=t>=c.t-this.offsetTime?1:t<f.t-this.offsetTime?0:(d.__fnct?u=d.__fnct:(u=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,d.__fnct=u),u((t-(f.t-this.offsetTime))/(c.t-this.offsetTime-(f.t-this.offsetTime)))),g=(c.s||f.e)[0]),r=f.s[0]}for(o=e._length,h=r.i[0].length,i.lastIndex=p,a=0;a<o;a+=1)for(n=0;n<h;n+=1)l=s?r.i[a][n]:r.i[a][n]+(g.i[a][n]-r.i[a][n])*y,e.i[a][n]=l,l=s?r.o[a][n]:r.o[a][n]+(g.o[a][n]-r.o[a][n])*y,e.o[a][n]=l,l=s?r.v[a][n]:r.v[a][n]+(g.v[a][n]-r.v[a][n])*y,e.v[a][n]=l}function r(){this.paths=this.localShapeCollection}function e(t){!function(t,e){if(t._length===e._length&&t.c===e.c){for(var i=t._length,r=0;r<i;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return;return 1}}(this.v,t)&&(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=!1,t=this.kf?this.pv:(this.data.ks||this.data.pt).k;for(var t,e=this.effectsSequence.length,i=0;i<e;i+=1)t=this.effectsSequence[i](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;t=(3===i?e.pt:e.ks).k;this.v=shapePool.clone(t),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function n(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function o(t,e,i){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=(3===i?e.pt:e.ks).k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;t=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,t),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=s,this.reset=r,this._caching={lastFrame:s,lastIndex:0},this.effectsSequence=[function(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==s&&(r<e&&t<e||i<r&&i<t)||(this._caching.lastIndex=r<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=i,a.prototype.setVValue=e,a.prototype.addEffect=n,o.prototype.getValue=i,o.prototype.interpolateShape=t,o.prototype.setVValue=e,o.prototype.addEffect=n;h=roundCorner,p.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,s=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=e-r,a.v[1][0]=s?t+i:t-i,a.v[1][1]=e,a.v[2][0]=t,a.v[2][1]=e+r,a.v[3][0]=s?t-i:t+i,a.v[3][1]=e,a.i[0][0]=s?t-i*h:t+i*h,a.i[0][1]=e-r,a.i[1][0]=s?t+i:t-i,a.i[1][1]=e-r*h,a.i[2][0]=s?t+i*h:t-i*h,a.i[2][1]=e+r,a.i[3][0]=s?t-i:t+i,a.i[3][1]=e+r*h,a.o[0][0]=s?t+i*h:t-i*h,a.o[0][1]=e-r,a.o[1][0]=s?t+i:t-i,a.o[1][1]=e+r*h,a.o[2][0]=s?t-i*h:t+i*h,a.o[2][1]=e+r,a.o[3][0]=s?t-i:t+i,a.o[3][1]=e-r*h}},extendPrototype([DynamicPropertyContainer],p);var h,l=p;function p(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}f.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){for(var t=2*Math.floor(this.pt.v),e=2*Math.PI/t,i=!0,r=this.or.v,s=this.ir.v,a=this.os.v,n=this.is.v,o=2*Math.PI*r/(2*t),h=2*Math.PI*s/(2*t),l=-Math.PI/2,p=(l+=this.r.v,3===this.data.d?-1:1),m=this.v._length=0;m<t;m+=1){var f=i?a:n,c=i?o:h,d=(u=i?r:s)*Math.cos(l),u=u*Math.sin(l),y=0===d&&0===u?0:u/Math.sqrt(d*d+u*u),g=0===d&&0===u?0:-d/Math.sqrt(d*d+u*u);d+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(d,u,d-y*c*f*p,u-g*c*f*p,d+y*c*f*p,u+g*c*f*p,m,!0),i=!i,l+=e*p}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,r=this.or.v,s=this.os.v,a=2*Math.PI*r/(4*e),n=.5*-Math.PI,o=3===this.data.d?-1:1;for(n+=this.r.v,t=this.v._length=0;t<e;t+=1){var h=r*Math.cos(n),l=r*Math.sin(n),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),m=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*a*s*o,l-m*a*s*o,h+p*a*s*o,l+m*a*s*o,t,!0),n+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],f);var m=f;function f(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}d.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,s=bmMin(i,r,this.r.v),a=s*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-r+s,t+i,e-r+s,t+i,e-r+a,0,!0),this.v.setTripleAt(t+i,e+r-s,t+i,e+r-a,t+i,e+r-s,1,!0),0!==s?(this.v.setTripleAt(t+i-s,e+r,t+i-s,e+r,t+i-a,e+r,2,!0),this.v.setTripleAt(t-i+s,e+r,t-i+a,e+r,t-i+s,e+r,3,!0),this.v.setTripleAt(t-i,e+r-s,t-i,e+r-s,t-i,e+r-a,4,!0),this.v.setTripleAt(t-i,e-r+s,t-i,e-r+a,t-i,e-r+s,5,!0),this.v.setTripleAt(t-i+s,e-r,t-i+s,e-r,t-i+a,e-r,6,!0),this.v.setTripleAt(t+i-s,e-r,t+i-a,e-r,t+i-s,e-r,7,!0)):(this.v.setTripleAt(t-i,e+r,t-i+a,e+r,t-i,e+r,2),this.v.setTripleAt(t-i,e-r,t-i,e-r+a,t-i,e-r,3))):(this.v.setTripleAt(t+i,e-r+s,t+i,e-r+a,t+i,e-r+s,0,!0),0!==s?(this.v.setTripleAt(t+i-s,e-r,t+i-s,e-r,t+i-a,e-r,1,!0),this.v.setTripleAt(t-i+s,e-r,t-i+a,e-r,t-i+s,e-r,2,!0),this.v.setTripleAt(t-i,e-r+s,t-i,e-r+s,t-i,e-r+a,3,!0),this.v.setTripleAt(t-i,e+r-s,t-i,e+r-a,t-i,e+r-s,4,!0),this.v.setTripleAt(t-i+s,e+r,t-i+s,e+r,t-i+a,e+r,5,!0),this.v.setTripleAt(t+i-s,e+r,t+i-a,e+r,t+i-s,e+r,6,!0),this.v.setTripleAt(t+i,e+r-s,t+i,e+r-s,t+i,e+r-a,7,!0)):(this.v.setTripleAt(t-i,e-r,t-i+a,e-r,t-i,e-r,1,!0),this.v.setTripleAt(t-i,e+r,t-i,e+r-a,t-i,e+r,2,!0),this.v.setTripleAt(t+i,e+r,t+i-a,e+r,t+i,e+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],d);var c=d;function d(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}var u={getShapeProp:function(t,e,i){var r;return 3===i||4===i?r=new((3===i?e.pt:e.ks).k.length?o:a)(t,e,i):5===i?r=new c(t,e):6===i?r=new l(t,e):7===i&&(r=new m(t,e)),r.k&&t.addDynamicProperty(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return o}};return u}(),Matrix=function(){var r=Math.cos,s=Math.sin,a=Math.tan,n=Math.round;function t(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function e(t){if(0===t)return this;var e=r(t),t=s(t);return this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1)}function i(t){if(0===t)return this;var e=r(t),t=s(t);return this._t(1,0,0,0,0,e,-t,0,0,t,e,0,0,0,0,1)}function o(t){if(0===t)return this;var e=r(t),t=s(t);return this._t(e,0,t,0,0,1,0,0,-t,0,e,0,0,0,0,1)}function h(t){if(0===t)return this;var e=r(t),t=s(t);return this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(a(t),a(e))}function m(t,e){var i=r(e),e=s(e);return this._t(i,e,0,0,-e,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(t),1,0,0,0,0,1,0,0,0,0,1)._t(i,-e,0,0,e,i,0,0,0,0,1,0,0,0,0,1)}function f(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function c(t,e,i,r,s,a,n,o,h,l,p,m,f,c,d,u){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=r,this.props[4]=s,this.props[5]=a,this.props[6]=n,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=m,this.props[12]=f,this.props[13]=c,this.props[14]=d,this.props[15]=u,this}function d(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function u(t,e,i,r,s,a,n,o,h,l,p,m,f,c,d,u){var y=this.props;if(1===t&&0===e&&0===i&&0===r&&0===s&&1===a&&0===n&&0===o&&0===h&&0===l&&1===p&&0===m)return y[12]=y[12]*t+y[15]*f,y[13]=y[13]*a+y[15]*c,y[14]=y[14]*p+y[15]*d,y[15]*=u,this._identityCalculated=!1,this;var g=y[0],v=y[1],b=y[2],P=y[3],E=y[4],x=y[5],S=y[6],_=y[7],C=y[8],A=y[9],T=y[10],D=y[11],k=y[12],M=y[13],F=y[14],w=y[15];return y[0]=g*t+v*s+b*h+P*f,y[1]=g*e+v*a+b*l+P*c,y[2]=g*i+v*n+b*p+P*d,y[3]=g*r+v*o+b*m+P*u,y[4]=E*t+x*s+S*h+_*f,y[5]=E*e+x*a+S*l+_*c,y[6]=E*i+x*n+S*p+_*d,y[7]=E*r+x*o+S*m+_*u,y[8]=C*t+A*s+T*h+D*f,y[9]=C*e+A*a+T*l+D*c,y[10]=C*i+A*n+T*p+D*d,y[11]=C*r+A*o+T*m+D*u,y[12]=k*t+M*s+F*h+w*f,y[13]=k*e+M*a+F*l+w*c,y[14]=k*i+M*n+F*p+w*d,y[15]=k*r+M*o+F*m+w*u,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function g(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function v(t){for(var e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function b(t){for(var e=0;e<16;e+=1)this.props[e]=t[e]}function P(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function E(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function x(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function S(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function _(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,r=-this.props[4]/t,s=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,t=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,n=new Matrix;return n.props[0]=e,n.props[1]=i,n.props[4]=r,n.props[5]=s,n.props[12]=a,n.props[13]=t,n}function C(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function A(t){for(var e=t.length,i=[],r=0;r<e;r+=1)i[r]=C(t[r]);return i}function T(t,e,i){var r,s,a,n,o,h,l=createTypedArray("float32",6);return this.isIdentity()?(l[0]=t[0],l[1]=t[1],l[2]=e[0],l[3]=e[1],l[4]=i[0],l[5]=i[1]):(r=this.props[0],s=this.props[1],a=this.props[4],n=this.props[5],o=this.props[12],h=this.props[13],l[0]=t[0]*r+t[1]*a+o,l[1]=t[0]*s+t[1]*n+h,l[2]=e[0]*r+e[1]*a+o,l[3]=e[0]*s+e[1]*n+h,l[4]=i[0]*r+i[1]*a+o,l[5]=i[0]*s+i[1]*n+h),l}function D(t,e,i){t=this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]];return t}function k(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function M(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i=i+n(1e4*e[t])/1e4+(15===t?")":","),t+=1;return i}function F(t){return t<1e-6&&0<t||-1e-6<t&&t<0?n(1e4*t)/1e4:t}function w(){var t=this.props;return"matrix("+F(t[0])+","+F(t[1])+","+F(t[4])+","+F(t[5])+","+F(t[12])+","+F(t[13])+")"}return function(){this.reset=t,this.rotate=e,this.rotateX=i,this.rotateY=o,this.rotateZ=h,this.skew=p,this.skewFromAxis=m,this.shear=l,this.scale=f,this.setTransform=c,this.translate=d,this.transform=u,this.applyToPoint=P,this.applyToX=E,this.applyToY=x,this.applyToZ=S,this.applyToPointArray=D,this.applyToTriplePoints=T,this.applyToPointStringified=k,this.toCSS=M,this.to2dCSS=w,this.clone=v,this.cloneFromProps=b,this.equals=g,this.inversePoints=A,this.inversePoint=C,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&1<t&&setDefaultCurveSegments(t);50<=getDefaultCurveSegments()?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var r=e[i].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.9.6";var queryString="",scripts,index,myScript,queryString,renderer,readyStateCheckInterval=(standalone&&(scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""},queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")),setInterval(checkReady,100));try{"object"===("undefined"==typeof exports?"undefined":_typeof$3(exports))&&"undefined"!=typeof module||"function"==typeof define&&define.amd||(window.bodymovin=lottie)}catch(err){}var ShapeModifiers=function(){var t={},r={};return t.registerModifier=function(t,e){r[t]||(r[t]=e)},t.getModifier=function(t,e,i){return new r[t](e,i)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){var e;this.closed||(t.sh.container.addDynamicProperty(t.sh),e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()},this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated())},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,r,s){for(var a,n,o=[],h=(e<=1?o.push({s:t,e:e}):1<=t?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1})),[]),l=o.length,p=0;p<l;p+=1)(n=o[p]).e*s<r||n.s*s>r+i||(a=n.s*s<=r?0:(n.s*s-r)/i,n=n.e*s>=r+i?1:(n.e*s-r)/i,h.push([a,n]));return h.length||h.push([0,0]),h},TrimModifier.prototype.releasePathsData=function(t){for(var e=t.length,i=0;i<e;i+=1)segmentsLengthPool.release(t[i]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){this._mdf||t?((e=this.o.v%360/360)<0&&(e+=1),i=1<this.s.v?1+e:this.s.v<0?0+e:this.s.v+e,(r=1<this.e.v?1+e:this.e.v<0?0+e:this.e.v+e)<i&&(e=i,i=r,r=e),i=1e-4*Math.round(1e4*i),r=1e-4*Math.round(1e4*r),this.sValue=i,this.eValue=r):(i=this.sValue,r=this.eValue);var e,i,r,s,a,n,o,h,l,p=this.shapes.length,m=0;if(r===i)for(u=0;u<p;u+=1)this.shapes[u].localShapeCollection.releaseShapes(),this.shapes[u].shape._mdf=!0,this.shapes[u].shape.paths=this.shapes[u].localShapeCollection,this._mdf&&(this.shapes[u].pathsData.length=0);else if(1===r&&0===i||0===r&&1===i){if(this._mdf)for(u=0;u<p;u+=1)this.shapes[u].pathsData.length=0,this.shapes[u].shape._mdf=!0}else{for(var f,c,d=[],u=0;u<p;u+=1)if((f=this.shapes[u]).shape._mdf||this._mdf||t||2===this.m){if(n=(s=f.shape.paths)._length,l=0,!f.shape._mdf&&f.pathsData.length)l=f.totalShapeLength;else{for(o=this.releasePathsData(f.pathsData),a=0;a<n;a+=1)h=bez.getSegmentsLength(s.shapes[a]),o.push(h),l+=h.totalLength;f.totalShapeLength=l,f.pathsData=o}m+=l,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,g=i,v=r,b=0;for(u=p-1;0<=u;--u)if((f=this.shapes[u]).shape._mdf){for((c=f.localShapeCollection).releaseShapes(),2===this.m&&1<p?(y=this.calculateShapeEdges(i,r,f.totalShapeLength,b,m),b+=f.totalShapeLength):y=[[g,v]],n=y.length,a=0;a<n;a+=1){g=y[a][0],v=y[a][1],d.length=0,v<=1?d.push({s:f.totalShapeLength*g,e:f.totalShapeLength*v}):1<=g?d.push({s:f.totalShapeLength*(g-1),e:f.totalShapeLength*(v-1)}):(d.push({s:f.totalShapeLength*g,e:f.totalShapeLength}),d.push({s:0,e:f.totalShapeLength*(v-1)}));var P,E=this.addShapes(f,d[0]);d[0].s!==d[0].e&&(1<d.length&&(E=f.shape.paths.shapes[f.shape.paths._length-1].c?(P=E.pop(),this.addPaths(E,c),this.addShapes(f,d[1],P)):(this.addPaths(E,c),this.addShapes(f,d[1]))),this.addPaths(E,c))}f.shape.paths=c}}},TrimModifier.prototype.addPaths=function(t,e){for(var i=t.length,r=0;r<i;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,i,r,s,a,n){s.setXYAt(e[0],e[1],"o",a),s.setXYAt(i[0],i[1],"i",a+1),n&&s.setXYAt(t[0],t[1],"v",a),s.setXYAt(r[0],r[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,r){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),r&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var r,s,a,n,o,h,l,p,m=t.pathsData,f=t.shape.paths.shapes,c=t.shape.paths._length,d=0,u=[],y=!0,g=i?(n=i._length,i._length):(i=shapePool.newElement(),n=0);for(u.push(i),r=0;r<c;r+=1){for(o=m[r].lengths,i.c=f[r].c,a=f[r].c?o.length:o.length+1,s=1;s<a;s+=1)if(d+(p=o[s-1]).addedLength<e.s)d+=p.addedLength,i.c=!1;else{if(d>e.e){i.c=!1;break}e.s<=d&&e.e>=d+p.addedLength?(this.addSegment(f[r].v[s-1],f[r].o[s-1],f[r].i[s],f[r].v[s],i,n,y),y=!1):(h=bez.getNewSegment(f[r].v[s-1],f[r].v[s],f[r].o[s-1],f[r].i[s],(e.s-d)/p.addedLength,(e.e-d)/p.addedLength,o[s-1]),this.addSegmentFromArray(h,i,n,y),i.c=y=!1),d+=p.addedLength,n+=1}if(f[r].c&&o.length&&(p=o[s-1],d<=e.e?(l=o[s-1].addedLength,e.s<=d&&e.e>=d+l?(this.addSegment(f[r].v[s-1],f[r].o[s-1],f[r].i[0],f[r].v[0],i,n,y),y=!1):(h=bez.getNewSegment(f[r].v[s-1],f[r].v[0],f[r].o[s-1],f[r].i[0],(e.s-d)/l,(e.e-d)/l,o[s-1]),this.addSegmentFromArray(h,i,n,y),i.c=y=!1)):i.c=!1,d+=p.addedLength,n+=1),i._length&&(i.setXYAt(i.v[g][0],i.v[g][1],"i",g),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;r<c-1&&(i=shapePool.newElement(),y=!0,u.push(i),n=0)}return u},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){for(var i=e/100,r=[0,0],s=t._length,a=0,a=0;a<s;a+=1)r[0]+=t.v[a][0],r[1]+=t.v[a][1];r[0]/=s,r[1]/=s;var n,o,h,l,p,m,f=shapePool.newElement();for(f.c=t.c,a=0;a<s;a+=1)n=t.v[a][0]+(r[0]-t.v[a][0])*i,o=t.v[a][1]+(r[1]-t.v[a][1])*i,h=t.o[a][0]+(r[0]-t.o[a][0])*-i,l=t.o[a][1]+(r[1]-t.o[a][1])*-i,p=t.i[a][0]+(r[0]-t.i[a][0])*-i,m=t.i[a][1]+(r[1]-t.i[a][1])*-i,f.setTripleAt(n,o,h,l,p,m,a);return f},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,r,s=this.shapes.length,a=this.amount.v;if(0!==a)for(var n,o,h=0;h<s;h+=1){if(o=(n=this.shapes[h]).localShapeCollection,n.shape._mdf||this._mdf||t)for(o.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],a));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var a=[0,0];function r(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti)for(var r=e.or.k.length,s=0;s<r;s+=1)e.or.k[s].to=null,e.or.k[s].ti=null;this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return r.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){var e,i,r,s;this.elem.globalData.frameId!==this.frameId&&(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),(this._mdf||t)&&(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented&&(t=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime?i=this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(e=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/t,0),this.p.getValueAtTime(this.p.keyframes[0].t/t,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(e=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/t,0),this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/t,0)):(e=this.p.pv,this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/t,this.p.offsetTime)):this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime?(e=[],i=[],r=this.px,s=this.py,r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(e[0]=r.getValueAtTime((r.keyframes[0].t+.01)/t,0),e[1]=s.getValueAtTime((s.keyframes[0].t+.01)/t,0),i[0]=r.getValueAtTime(r.keyframes[0].t/t,0),i[1]=s.getValueAtTime(s.keyframes[0].t/t,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(e[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/t,0),e[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/t,0),i[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/t,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/t,0)):(e=[r.pv,s.pv],i[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/t,r.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/t,s.offsetTime))):e=i=a,this.v.rotate(-Math.atan2(e[1]-i[1],e[0]-i[0]))),this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])),this.frameId=this.elem.globalData.frameId)},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],r),r.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},r.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,i){return new r(t,e,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",r="normal",s=e.length,a=0;a<s;a+=1)switch(e[a].toLowerCase()){case"italic":r="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:r,weight:t.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,r,s,a){var n=a?-1:1,o=r.s.v[0]+(1-r.s.v[0])*(1-s),h=r.s.v[1]+(1-r.s.v[1])*(1-s);t.translate(r.p.v[0]*n*s,r.p.v[1]*n*s,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*n*s),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),i.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),i.scale(a?1/o:o,a?1/h:h),i.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,r){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);0<i;)this._elements.unshift(e[--i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i]._processed=!1,"gr"===t[i].ty&&this.resetElements(t[i].it)},RepeaterModifier.prototype.cloneElements=function(t){t=JSON.parse(JSON.stringify(t));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(t,e){for(var i=t.length,r=0;r<i;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,r,s,a,n=!1;if(this._mdf||t){var o,h=Math.ceil(this.c.v);if(this._groups.length<h){for(;this._groups.length<h;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),n=!0}for(r=a=0;r<=this._groups.length-1;r+=1)this._groups[r]._render=o=a<h,this.changeGroupRender(this._groups[r].it,o),o||(0!==(o=(o=this.elemsData[r].it)[o.length-1]).transform.op.v?(o.transform.op._mdf=!0,o.transform.op.v=0):o.transform.op._mdf=!1),a+=1;this._currentCopies=h;var p,m,t=this.o.v,f=t%1,c=0<t?Math.floor(t):Math.ceil(t),d=this.pMatrix.props,u=this.rMatrix.props,y=this.sMatrix.props,g=(this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset(),0);if(0<t){for(;g<c;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),g+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),g+=f)}else if(t<0){for(;c<g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),--g;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),g-=f)}for(r=1===this.data.m?0:this._currentCopies-1,s=1===this.data.m?1:-1,a=this._currentCopies;a;){if(m=(i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==g){for((0!==r&&1===s||r!==this._currentCopies-1&&-1===s)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),p=0;p<m;p+=1)i[p]=this.matrix.props[p];this.matrix.reset()}else for(this.matrix.reset(),p=0;p<m;p+=1)i[p]=this.matrix.props[p];g+=1,--a,r+=s}}else for(a=this._currentCopies,r=0,s=1;a;)i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,--a,r+=s;return n},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){for(var i,r,s,a,n,o,h,l,p,m,f=shapePool.newElement(),c=(f.c=t.c,t._length),d=0,u=0;u<c;u+=1)i=t.v[u],s=t.o[u],r=t.i[u],i[0]===s[0]&&i[1]===s[1]&&i[0]===r[0]&&i[1]===r[1]?0!==u&&u!==c-1||t.c?(a=0===u?t.v[c-1]:t.v[u-1],o=(n=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(n/2,e)/n:0,p=i[0]+(a[0]-i[0])*o,m=i[1]-(i[1]-a[1])*o,h=p-(p-i[0])*roundCorner,l=m-(m-i[1])*roundCorner,f.setTripleAt(p,m,h,l,p,m,d),d+=1,a=u===c-1?t.v[0]:t.v[u+1],o=(n=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(n/2,e)/n:0,h=i[0]+(a[0]-i[0])*o,l=i[1]+(a[1]-i[1])*o,p=h-(h-i[0])*roundCorner,m=l-(l-i[1])*roundCorner,f.setTripleAt(h,l,h,l,p,m,d)):f.setTripleAt(i[0],i[1],s[0],s[1],r[0],r[1],d):f.setTripleAt(t.v[u][0],t.v[u][1],t.o[u][0],t.o[u][1],t.i[u][0],t.i[u][1],d),d+=1;return f},RoundCornersModifier.prototype.processShapes=function(t){var e,i,r,s=this.shapes.length,a=this.rd.v;if(0!==a)for(var n,o,h=0;h<s;h+=1){if(o=(n=this.shapes[h]).localShapeCollection,n.shape._mdf||this._mdf||t)for(o.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],a));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var a={w:0,size:0,shapes:[],data:{shapes:[]}},e=(e=[]).concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]),i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],r=[65039,8205];function m(t,e){var i=createTag("span"),r=(i.setAttribute("aria-hidden",!0),i.style.fontFamily=e,createTag("span")),s=(r.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(r),document.body.appendChild(i),r.offsetWidth);return r.style.fontFamily=function(t){for(var e=t.split(","),i=e.length,r=[],s=0;s<i;s+=1)"sans-serif"!==e[s]&&"monospace"!==e[s]&&r.push(e[s]);return r.join(",")}(t)+", "+e,{node:r,w:s,parent:i}}function f(t,e){var i,r,s=document.body&&e?"svg":"canvas",a=getFontProperties(t);return i="svg"==s?((r=createNS("text")).style.fontSize="100px",r.setAttribute("font-family",t.fFamily),r.setAttribute("font-style",a.style),r.setAttribute("font-weight",a.weight),r.textContent="1",t.fClass?(r.style.fontFamily="inherit",r.setAttribute("class",t.fClass)):r.style.fontFamily=t.fFamily,e.appendChild(r),r):((e=new OffscreenCanvas(500,500).getContext("2d")).font=a.style+" "+a.weight+" 100px "+t.fFamily,e),{measureText:function(t){return"svg"==s?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function t(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)}t.isModifier=function(t,e){return t=t.toString(16)+e.toString(16),-1!==i.indexOf(t)},t.isZeroWidthJoiner=function(t,e){return e?t===r[0]&&e===r[1]:t===r[1]},t.isCombinedCharacter=function(t){return-1!==e.indexOf(t)};var s={addChars:function(t){if(t){this.chars||(this.chars=[]);for(var e,i,r=t.length,s=this.chars.length,a=0;a<r;a+=1){for(e=0,i=!1;e<s;)this.chars[e].style===t[a].style&&this.chars[e].fFamily===t[a].fFamily&&this.chars[e].ch===t[a].ch&&(i=!0),e+=1;i||(this.chars.push(t[a]),s+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach(function(t){t.helper=f(t),t.cache={}}),void(this.fonts=t.list);for(var i=t.list,r=i.length,s=r,a=0;a<r;a+=1){var n,o,h,l,p=!0;if(i[a].loaded=!1,i[a].monoCase=m(i[a].fFamily,"monospace"),i[a].sansCase=m(i[a].fFamily,"sans-serif"),i[a].fPath){if("p"===i[a].fOrigin||3===i[a].origin)(p=0<(o=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[a].fFamily+'"], style[f-origin="3"][f-family="'+i[a].fFamily+'"]')).length?!1:p)&&((h=createTag("style")).setAttribute("f-forigin",i[a].fOrigin),h.setAttribute("f-origin",i[a].origin),h.setAttribute("f-family",i[a].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+i[a].fFamily+"; font-style: normal; src: url('"+i[a].fPath+"');}",e.appendChild(h));else if("g"===i[a].fOrigin||1===i[a].origin){for(o=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),n=0;n<o.length;n+=1)-1!==o[n].href.indexOf(i[a].fPath)&&(p=!1);p&&((h=createTag("link")).setAttribute("f-forigin",i[a].fOrigin),h.setAttribute("f-origin",i[a].origin),h.type="text/css",h.rel="stylesheet",h.href=i[a].fPath,document.body.appendChild(h))}else if("t"===i[a].fOrigin||2===i[a].origin){for(o=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),n=0;n<o.length;n+=1)i[a].fPath===o[n].src&&(p=!1);p&&((l=createTag("link")).setAttribute("f-forigin",i[a].fOrigin),l.setAttribute("f-origin",i[a].origin),l.setAttribute("rel","stylesheet"),l.setAttribute("href",i[a].fPath),e.appendChild(l))}}else i[a].loaded=!0,--s;i[a].helper=f(i[a],e),i[a].cache={},this.fonts.push(i[a])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,e,i){for(var r=0,s=this.chars.length;r<s;){if(this.chars[r].ch===t&&this.chars[r].style===e&&this.chars[r].fFamily===i)return this.chars[r];r+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0),a},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var r,s,a,e=this.getFontByName(e),n=t.charCodeAt(0);return e.cache[n+1]||(r=e.helper," "===t?(s=r.measureText("|"+t+"|"),a=r.measureText("||"),e.cache[n+1]=(s-a)/100):e.cache[n+1]=r.measureText(t)/100),e.cache[n+1]*i},checkLoadedFonts:function(){for(var t,e,i=this.fonts.length,r=i,s=0;s<i;s+=1)this.fonts[s].loaded?--r:"n"===this.fonts[s].fOrigin||0===this.fonts[s].origin?this.fonts[s].loaded=!0:(t=this.fonts[s].monoCase.node,e=this.fonts[s].monoCase.w,t.offsetWidth!==e?(--r,this.fonts[s].loaded=!0):(t=this.fonts[s].sansCase.node,e=this.fonts[s].sansCase.w,t.offsetWidth!==e&&(--r,this.fonts[s].loaded=!0)),this.fonts[s].loaded&&(this.fonts[s].sansCase.parent.parentNode.removeChild(this.fonts[s].sansCase.parent),this.fonts[s].monoCase.parent.parentNode.removeChild(this.fonts[s].monoCase.parent)));0!==r&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return t.prototype=s,t}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){for(var t=this.renderableComponents.length,e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}});return function(e){for(var i=createSizedArray(e.viewData.length),r=e.viewData.length,s=0;s<r;s+=1)i[s]=new t(e.viewData[s],e.masksProperties[s]);return function(t){for(s=0;s<r;){if(e.masksProperties[s].nm===t)return i[s];s+=1}return null}}}(),ExpressionPropertyInterface=function(){var p={pv:0,v:0,mult:1},m={pv:[0,0,0],v:[0,0,0],mult:1};function f(r,s,a){Object.defineProperty(r,"velocity",{get:function(){return s.getVelocityAtTime(s.comp.currentFrame)}}),r.numKeys=s.keyframes?s.keyframes.length:0,r.key=function(t){if(!r.numKeys)return 0;var e="",e="s"in s.keyframes[t-1]?s.keyframes[t-1].s:"e"in s.keyframes[t-2]?s.keyframes[t-2].e:s.keyframes[t-2].s,i="unidimensional"===a?new Number(e):Object.assign({},e);return i.time=s.keyframes[t-1].t/s.elem.comp.globalData.frameRate,i.value="unidimensional"===a?e[0]:e,i},r.valueAtTime=s.getValueAtTime,r.speedAtTime=s.getSpeedAtTime,r.velocityAtTime=s.getVelocityAtTime,r.propertyGroup=s.propertyGroup}function c(){return p}return function(t){return t?"unidimensional"===t.propType?(i=1/(e=(e=t)&&"pv"in e?e:p).mult,r=e.pv*i,(s=new Number(r)).value=r,f(s,e,"unidimensional"),function(){return e.k&&e.getValue(),r=e.v*i,s.value!==r&&((s=new Number(r)).value=r,f(s,e,"unidimensional")),s}):(n=1/(a=(a=t)&&"pv"in a?a:m).mult,o=a.data&&a.data.l||a.pv.length,h=createTypedArray("float32",o),l=createTypedArray("float32",o),h.value=l,f(h,a,"multidimensional"),function(){a.k&&a.getValue();for(var t=0;t<o;t+=1)l[t]=a.v[t]*n,h[t]=l[t];return h}):c;var e,i,r,s,a,n,o,h,l}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var i,r,s,a;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?a=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),r=ExpressionPropertyInterface(t.py),t.pz&&(s=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?a():[i(),r(),s?s():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function s(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function a(t,e){e=this.getMatrix(e);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.applyPoint(e,t)}function n(t,e){e=this.getMatrix(e);return this.applyPoint(e,t)}function o(t,e){e=this.getMatrix(e);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.invertPoint(e,t)}function h(t,e){e=this.getMatrix(e);return this.invertPoint(e,t)}function l(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length)for(var i=this._elem.hierarchy.length,r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.applyToPointArray(e[0],e[1],e[2]||0)}function p(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length)for(var i=this._elem.hierarchy.length,r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}function m(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){for(var i=this._elem.hierarchy.length,r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function f(){return[1,1,1,1]}return function(e){function i(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return i.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return r;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return i.effect;case"ADBE Text Properties":return i.textInterface;default:return null}}i.getMatrix=s,i.invertPoint=p,i.applyPoint=l,i.toWorld=n,i.toWorldVec=a,i.fromWorld=h,i.fromWorldVec=o,i.toComp=n,i.fromComp=m,i.sampleImage=f,i.sourceRectAtTime=e.sourceRectAtTime.bind(e);var r,t=getDescriptor(r=TransformExpressionInterface((i._elem=e).finalTransform.mProp),"anchorPoint");return Object.defineProperties(i,{hasParent:{get:function(){return e.hierarchy.length}},parent:{get:function(){return e.hierarchy[0].layerInterface}},rotation:getDescriptor(r,"rotation"),scale:getDescriptor(r,"scale"),position:getDescriptor(r,"position"),opacity:getDescriptor(r,"opacity"),anchorPoint:t,anchor_point:t,transform:{get:function(){return r}},active:{get:function(){return e.isInRange}}}),i.startTime=e.data.st,i.index=e.data.ind,i.source=e.data.refId,i.height=0===e.data.ty?e.data.h:100,i.width=0===e.data.ty?e.data.w:100,i.inPoint=e.data.ip/e.comp.globalData.frameRate,i.outPoint=e.data.op/e.comp.globalData.frameRate,i._name=e.data.nm,i.registerMaskInterface=function(t){i.mask=new MaskManagerInterface(t,e)},i.registerEffectsInterface=function(t){i.effect=t},i}}(),propertyGroupFactory=function(e,i){return function(t){return(t=void 0===t?1:t)<=0?e:i(t-1)}},PropertyInterface=function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}},EffectsExpressionInterface=function(){function p(t,e,i,r){var s=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===e?i.comp.compInterface(t.p.v):s()}}return{createEffectsInterface:function(t,e){if(t.effectsManager){var i,r=[],s=t.data.ef,a=t.effectsManager.effectElements.length;for(i=0;i<a;i+=1)r.push(function t(s,e,i,r){function a(t){for(var e=s.ef,i=0,r=e.length;i<r;){if(t===e[i].nm||t===e[i].mn||t===e[i].ix)return 5===e[i].ty?o[i]:o[i]();i+=1}throw new Error}var n=propertyGroupFactory(a,i);var o=[];var h;var l=s.ef.length;for(h=0;h<l;h+=1)5===s.ef[h].ty?o.push(t(s.ef[h],e.effectElements[h],e.effectElements[h].propertyGroup,r)):o.push(p(e.effectElements[h],s.ef[h].ty,r,n));"ADBE Color Control"===s.mn&&Object.defineProperty(a,"color",{get:function(){return o[0]()}});Object.defineProperties(a,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:n}});a.enabled=0!==s.en;a.active=a.enabled;return a}(s[i],t.effectsManager.effectElements[i],e,t));var n=t.data.ef||[],o=function(t){for(i=0,a=n.length;i<a;){if(t===n[i].nm||t===n[i].mn||t===n[i].ix)return r[i];i+=1}return null};return Object.defineProperty(o,"numProperties",{get:function(){return n.length}}),o}return null}}}(),CompExpressionInterface=function(r){function t(t){for(var e=0,i=r.layers.length;e<i;){if(r.layers[e].nm===t||r.layers[e].ind===t)return r.elements[e].layerInterface;e+=1}return null}return Object.defineProperty(t,"_name",{value:r.data.nm}),(t.layer=t).pixelAspect=1,t.height=r.data.h||r.globalData.compSize.h,t.width=r.data.w||r.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/r.globalData.frameRate,t.displayStartTime=0,t.numLayers=r.layers.length,t},ShapePathInterface=function(t,e,i){var r=e.sh;function s(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?s.path:null}e=propertyGroupFactory(s,i);return r.setGroupProperty(PropertyInterface("Path",e)),Object.defineProperties(s,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),s},ShapeExpressionInterface=function(){function n(t,e,i){for(var r=[],s=t?t.length:0,a=0;a<s;a+=1)"gr"===t[a].ty?r.push(function(t,e,i){function r(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}}r.propertyGroup=propertyGroupFactory(r,i);i=function(t,e,i){function r(t){for(var e=0,i=s.length;e<i;){if(s[e]._name===t||s[e].mn===t||s[e].propertyIndex===t||s[e].ix===t||s[e].ind===t)return s[e];e+=1}return"number"==typeof t?s[t-1]:null}r.propertyGroup=propertyGroupFactory(r,i),s=n(t.it,e.it,r.propertyGroup),r.numProperties=s.length;var s,i=o(t.it[t.it.length-1],e.it[e.it.length-1],r.propertyGroup);return r.transform=i,r.propertyIndex=t.cix,r._name=t.nm,r}(t,e,r.propertyGroup),e=o(t.it[t.it.length-1],e.it[e.it.length-1],r.propertyGroup);return r.content=i,r.transform=e,Object.defineProperty(r,"_name",{get:function(){return t.nm}}),r.numProperties=t.np,r.propertyIndex=t.ix,r.nm=t.nm,r.mn=t.mn,r}(t[a],e[a],i)):"fl"===t[a].ty?r.push(function(t,e,i){function r(t){return"Color"===t||"color"===t?r.color:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}(t[a],e[a],i)):"st"===t[a].ty?r.push(function(e,i,t){var r,t=propertyGroupFactory(o,t),s=propertyGroupFactory(void 0,t);var a=e.d?e.d.length:0,n={};for(r=0;r<a;r+=1)!function(t){Object.defineProperty(n,e.d[t].nm,{get:ExpressionPropertyInterface(i.d.dataProps[t].p)})}(r),i.d.dataProps[r].p.setGroupProperty(s);function o(t){return"Color"===t||"color"===t?o.color:"Opacity"===t||"opacity"===t?o.opacity:"Stroke Width"===t||"stroke width"===t?o.strokeWidth:null}return Object.defineProperties(o,{color:{get:ExpressionPropertyInterface(i.c)},opacity:{get:ExpressionPropertyInterface(i.o)},strokeWidth:{get:ExpressionPropertyInterface(i.w)},dash:{get:function(){return n}},_name:{value:e.nm},mn:{value:e.mn}}),i.c.setGroupProperty(PropertyInterface("Color",t)),i.o.setGroupProperty(PropertyInterface("Opacity",t)),i.w.setGroupProperty(PropertyInterface("Stroke Width",t)),o}(t[a],e[a],i)):"tm"===t[a].ty?r.push(function(e,t,i){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var s=propertyGroupFactory(r,i);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",s)),t.e.setGroupProperty(PropertyInterface("End",s)),t.o.setGroupProperty(PropertyInterface("Offset",s)),r.propertyIndex=e.ix,r.propertyGroup=i,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"tr"!==t[a].ty&&("el"===t[a].ty?r.push(function(e,t,i){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}i=propertyGroupFactory(r,i),r.propertyIndex=e.ix,t="tm"===t.sh.ty?t.sh.prop:t.sh;return t.s.setGroupProperty(PropertyInterface("Size",i)),t.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(t.s)},position:{get:ExpressionPropertyInterface(t.p)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"sr"===t[a].ty?r.push(function(e,t,i){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:null:r.innerRadius}i=propertyGroupFactory(r,i),t="tm"===t.sh.ty?t.sh.prop:t.sh;r.propertyIndex=e.ix,t.or.setGroupProperty(PropertyInterface("Outer Radius",i)),t.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),t.pt.setGroupProperty(PropertyInterface("Points",i)),t.p.setGroupProperty(PropertyInterface("Position",i)),t.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(t.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),t.is.setGroupProperty(PropertyInterface("Inner Roundness",i)));return Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(t.p)},rotation:{get:ExpressionPropertyInterface(t.r)},points:{get:ExpressionPropertyInterface(t.pt)},outerRadius:{get:ExpressionPropertyInterface(t.or)},outerRoundness:{get:ExpressionPropertyInterface(t.os)},innerRadius:{get:ExpressionPropertyInterface(t.ir)},innerRoundness:{get:ExpressionPropertyInterface(t.is)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"sh"===t[a].ty?r.push(ShapePathInterface(t[a],e[a],i)):"rc"===t[a].ty?r.push(function(e,t,i){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}i=propertyGroupFactory(r,i),t="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,t.p.setGroupProperty(PropertyInterface("Position",i)),t.s.setGroupProperty(PropertyInterface("Size",i)),t.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(t.p)},roundness:{get:ExpressionPropertyInterface(t.r)},size:{get:ExpressionPropertyInterface(t.s)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"rd"===t[a].ty?r.push(function(e,t,i){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}i=propertyGroupFactory(r,i);return r.propertyIndex=e.ix,t.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(t.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"rp"===t[a].ty?r.push(function(e,t,i){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}i=propertyGroupFactory(r,i);return r.propertyIndex=e.ix,t.c.setGroupProperty(PropertyInterface("Copies",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(t.c)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"gf"===t[a].ty?r.push(function(t,e,i){function r(t){return"Start Point"===t||"start point"===t?r.startPoint:"End Point"===t||"end point"===t?r.endPoint:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",i)),e.e.setGroupProperty(PropertyInterface("End Point",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}(t[a],e[a],i)):r.push((t[a],e[a],function(){return null})));return r}function o(e,t,i){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var s=propertyGroupFactory(r,i);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",s)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",s)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",s)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",s)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",s)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",s)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",s))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",s)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=i,r}return function(t,e,r){var s;function i(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?r:s[t-1];for(var e=0,i=s.length;e<i;){if(s[e]._name===t)return s[e];e+=1}return null}return i.propertyGroup=propertyGroupFactory(i,function(){return r}),s=n(t,e,i.propertyGroup),i.numProperties=s.length,i._name="Contents",i}}(),TextExpressionInterface=function(e){var i;function r(t){return"ADBE Text Document"!==t?null:r.sourceText}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var t=e.textProperty.currentData.t;return void 0!==t&&(e.textProperty.currentData.t=void 0,(i=new String(t)).value=t||new String(t)),i}}),r},getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){for(var i,r=t.ef||[],s=(this.effectElements=[],r.length),a=0;a<s;a+=1)i=new GroupEffect(r[a],e),this.effectElements.push(i)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function _typeof$2(t){return(_typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);for(var i,r=this.data.ef.length,s=this.data.ef,a=0;a<r;a+=1){switch(i=null,s[a].ty){case 0:i=new SliderEffect(s[a],e,this);break;case 1:i=new AngleEffect(s[a],e,this);break;case 2:i=new ColorEffect(s[a],e,this);break;case 3:i=new PointEffect(s[a],e,this);break;case 4:case 7:i=new CheckboxEffect(s[a],e,this);break;case 10:i=new LayerIndexEffect(s[a],e,this);break;case 11:i=new MaskIndexEffect(s[a],e,this);break;case 5:i=new EffectsManager(s[a],e,this);break;default:i=new NoValueEffect(s[a],e,this)}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){for(var i=this.dynamicProperties.length,r=0;r<i;r+=1)(e||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}};var FootageInterface=function(){function i(t){function e(t){return"Outline"===t?e.outlineInterface():null}function i(t){if(a[t])return"object"===_typeof$2(a=a[s=t])?i:a;var e=t.indexOf(s);return-1!==e?(t=parseInt(t.substr(e+s.length),10),"object"===_typeof$2(a=a[t])?i:a):""}var r,s,a;return e._name="Outline",e.outlineInterface=(s="",a=(r=t).getFootageData(),function(){return s="",a=r.getFootageData(),i}),e}return function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=i(t),e}}();function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;for(var r,s,a,n,o,h=this.globalData.defs,l=this.masksProperties?this.masksProperties.length:0,p=(this.viewData=createSizedArray(l),this.solidPath="",this.masksProperties),m=0,f=[],c=createElementID(),d="clipPath",u="clip-path",y=0;y<l;y+=1)if(("a"!==p[y].mode&&"n"!==p[y].mode||p[y].inv||100!==p[y].o.k||p[y].o.x)&&(u=d="mask"),"s"!==p[y].mode&&"i"!==p[y].mode||0!==m?s=null:((s=createNS("rect")).setAttribute("fill","#ffffff"),s.setAttribute("width",this.element.comp.data.w||0),s.setAttribute("height",this.element.comp.data.h||0),f.push(s)),r=createNS("path"),"n"===p[y].mode)this.viewData[y]={op:PropertyFactory.getProp(this.element,p[y].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[y],3),elem:r,lastPath:""},h.appendChild(r);else{if(m+=1,r.setAttribute("fill","s"===p[y].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==p[y].x.k?(u=d="mask",n=PropertyFactory.getProp(this.element,p[y].x,0,null,this.element),o=createElementID(),(P=createNS("filter")).setAttribute("id",o),(a=createNS("feMorphology")).setAttribute("operator","erode"),a.setAttribute("in","SourceGraphic"),a.setAttribute("radius","0"),P.appendChild(a),h.appendChild(P),r.setAttribute("stroke","s"===p[y].mode?"#000000":"#ffffff")):n=a=null,this.storedData[y]={elem:r,x:n,expan:a,lastPath:"",lastOperator:"",filterId:o,lastRadius:0},"i"===p[y].mode){for(var g=f.length,v=createNS("g"),b=0;b<g;b+=1)v.appendChild(f[b]);var P=createNS("mask");P.setAttribute("mask-type","alpha"),P.setAttribute("id",c+"_"+m),P.appendChild(r),h.appendChild(P),v.setAttribute("mask","url("+getLocationHref()+"#"+c+"_"+m+")"),f.length=0,f.push(v)}else f.push(r);p[y].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[y]={elem:r,lastPath:"",op:PropertyFactory.getProp(this.element,p[y].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[y],3),invRect:s},this.viewData[y].prop.k||this.drawPath(p[y],this.viewData[y].prop.v,this.viewData[y])}for(this.maskElement=createNS(d),l=f.length,y=0;y<l;y+=1)this.maskElement.appendChild(f[y]);0<m&&(this.maskElement.setAttribute("id",c),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+c+")"),h.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder?this._currentTime=t/this.data.sr:(t=this.tm.v,this._currentTime=t),this._volume=this.lv.v[0];t=this._volume*this._volumeMultiplier;this._previousVolume!==t&&(this._previousVolume=t,this.audio.volume(t))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||.1<Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek()))&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,i,r=this.layers.length;for(this.completeLayers=!0,e=r-1;0<=e;--e)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){for(var t=this.layers.length,e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;for(var e,i=t.length,r=this.layers.length,s=0;s<i;s+=1)for(e=0;e<r;){if(this.layers[e].id===t[s].id){this.layers[e]=t[s];break}e+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var r=this.elements,s=this.layers,a=0,n=s.length;a<n;)s[a].ind==e&&(r[a]&&!0!==r[a]?(i.push(r[a]),r[a].setAsParent(),void 0!==s[a].parent?this.buildElementParenting(t,s[a].parent,i):t.setHierarchy(i)):(this.buildItem(a),this.addPendingElement(t))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){for(var e,i=t.length,r=0;r<i;r+=1)t[r].xt&&((e=this.createComp(t[r])).initExpressions(),this.globalData.projectInterface.registerComposition(e))},BaseRenderer.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else for(var r=this.elements.length,s=0;s<r;s+=1)if(this.elements[s].data.nm===i){e=this.elements[s];break}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<r;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<r;i+=1)t=this.hierarchy[i].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){for(var e=[],i=(e.push(this.finalTransform),!0),r=this.comp;i;)r.finalTransform?(r.data.hasMask&&e.splice(0,0,r.finalTransform),r=r.comp):i=!1;for(var s,a=e.length,n=0;n<a;n+=1)s=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){for(var e,i=this.element.finalTransform.mat,r=this.masksProperties.length,s=0;s<r;s+=1)(this.viewData[s].prop._mdf||t)&&this.drawPath(this.masksProperties[s],this.viewData[s].prop.v,this.viewData[s]),(this.viewData[s].op._mdf||t)&&this.viewData[s].elem.setAttribute("fill-opacity",this.viewData[s].op.v),"n"!==this.masksProperties[s].mode&&(this.viewData[s].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[s].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[s].x&&(this.storedData[s].x._mdf||t)&&(e=this.storedData[s].expan,this.storedData[s].x.v<0?("erode"!==this.storedData[s].lastOperator&&(this.storedData[s].lastOperator="erode",this.storedData[s].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[s].filterId+")")),e.setAttribute("radius",-this.storedData[s].x.v)):("dilate"!==this.storedData[s].lastOperator&&(this.storedData[s].lastOperator="dilate",this.storedData[s].elem.setAttribute("filter",null)),this.storedData[s].elem.setAttribute("stroke-width",2*this.storedData[s].x.v))))},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return(t+=" h"+this.globalData.compSize.w)+(" v"+this.globalData.compSize.h)+(" h-"+this.globalData.compSize.w)+(" v-"+this.globalData.compSize.h+" ")},MaskElement.prototype.drawPath=function(t,e,i){for(var r,s=" M"+e.v[0][0]+","+e.v[0][1],a=e._length,n=1;n<a;n+=1)s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1];e.c&&1<a&&(s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==s&&(r="",i.elem&&(e.c&&(r=t.inv?this.solidPath+s:s),i.elem.setAttribute("d",r)),i.lastPath=s)},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};return t.createFilter=function(t,e){var i=createNS("filter");i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%"));return i},t.createAlphaToLuminanceFilter=function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},t}(),featureSupport=function(){var t={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,i="SourceGraphic",r=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),n=0;for(this.filters=[],e=0;e<r;e+=1){o=null;var o,h=t.data.ef[e].ty;registeredEffects[h]&&(o=new registeredEffects[h].effect(a,t.effectsManager.effectElements[e],t,idPrefix+n,i),i=idPrefix+n,registeredEffects[h].countsAsEffect&&(n+=1)),o&&this.filters.push(o)}n&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,i){registeredEffects[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){for(var e=this.filters.length,i=0;i<e;i+=1)this.filters[i].renderFrame(t)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,i,r,s,a,n,o=null;this.data.td?3==this.data.td||1==this.data.td?((e=createNS("mask")).setAttribute("id",this.layerId),e.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),e.appendChild(this.layerElement),this.globalData.defs.appendChild(o=e),featureSupport.maskType||1!=this.data.td||(e.setAttribute("mask-type","luminance"),s=createElementID(),a=filtersFactory.createFilter(s),this.globalData.defs.appendChild(a),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(t=createNS("g")).appendChild(this.layerElement),o=t,e.appendChild(t),t.setAttribute("filter","url("+getLocationHref()+"#"+s+")"))):2==this.data.td&&((e=createNS("mask")).setAttribute("id",this.layerId),e.setAttribute("mask-type","alpha"),i=createNS("g"),e.appendChild(i),s=createElementID(),a=filtersFactory.createFilter(s),(n=createNS("feComponentTransfer")).setAttribute("in","SourceGraphic"),a.appendChild(n),(r=createNS("feFuncA")).setAttribute("type","table"),r.setAttribute("tableValues","1.0 0.0"),n.appendChild(r),this.globalData.defs.appendChild(a),(n=createNS("rect")).setAttribute("width",this.comp.data.w),n.setAttribute("height",this.comp.data.h),n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("fill","#ffffff"),n.setAttribute("opacity","0"),i.setAttribute("filter","url("+getLocationHref()+"#"+s+")"),i.appendChild(n),i.appendChild(this.layerElement),o=i,featureSupport.maskType||(e.setAttribute("mask-type","luminance"),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),t=createNS("g"),i.appendChild(n),t.appendChild(this.layerElement),o=t,i.appendChild(t)),this.globalData.defs.appendChild(e)):this.data.tt?(this.matteElement.appendChild(this.layerElement),o=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.ty||this.data.hd||(r=createNS("clipPath"),(s=createNS("path")).setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z"),a=createElementID(),r.setAttribute("id",a),r.appendChild(s),this.globalData.defs.appendChild(r),this.checkMasks()?((n=createNS("g")).setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),n.appendChild(this.layerElement),this.transformedElement=n,o?o.appendChild(this.transformedElement):this.baseElement=this.transformedElement):this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")")),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){for(var e=this.shapeModifiers.length,i=0;i<e;i+=1)this.shapeModifiers[i].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){for(var t=this.shapes.length,e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;0<=e&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);--e);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i<r;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,r=i.length;r;)if(i[--r].elem===t)return void(i[r].pos=e);i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var r=0,s=t.length;r<s;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,i,r){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);for(var s,a=e.length||0,n=0;n<a;n+=1)s=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=s.k||this.k,this.dataProps[n]={n:e[n].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var r=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,r=this.o.length/2;i<r;){if(.01<Math.abs(t[4*i]-t[4*e+2*i]))return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){for(var e,i,r=4*this.data.p,s=0;s<r;s+=1)e=s%4==0?100:255,i=Math.round(this.prop.v[s]*e),this.c[s]!==i&&(this.c[s]=i,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,s=4*this.data.p;s<r;s+=1)e=s%2==0?100:1,i=s%2==0?Math.round(100*this.prop.v[s]):this.prop.v[s],this.o[s-4*this.data.p]!==i&&(this.o[s-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){for(var i,r=createElementID(),s=createNS(1===e.t?"linearGradient":"radialGradient"),a=(s.setAttribute("id",r),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse"),[]),n=4*e.g.p,o=0;o<n;o+=4)i=createNS("stop"),s.appendChild(i),a.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=s,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){for(var i,r,s=createNS("mask"),a=createNS("path"),n=(s.appendChild(a),createElementID()),o=createElementID(),h=(s.setAttribute("id",o),createNS(1===t.t?"linearGradient":"radialGradient")),l=(h.setAttribute("id",n),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),r=(t.g.k.k[0].s||t.g.k.k).length,this.stops),p=4*t.g.p;p<r;p+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(i),l.push(i);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),"gs"===t.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&a.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=s,this.ost=l,this.maskId=o,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,r){if(0===e)return"";for(var s=t.o,a=t.i,n=t.v,o=" M"+r.applyToPointStringified(n[0][0],n[0][1]),h=1;h<e;h+=1)o+=" C"+r.applyToPointStringified(s[h-1][0],s[h-1][1])+" "+r.applyToPointStringified(a[h][0],a[h][1])+" "+r.applyToPointStringified(n[h][0],n[h][1]);return o=i&&e?o+(" C"+r.applyToPointStringified(s[h-1][0],s[h-1][1])+" "+r.applyToPointStringified(a[0][0],a[0][1])+" "+r.applyToPointStringified(n[0][0],n[0][1]))+"z":o},SVGElementsRenderer=function(){var y=new Matrix,g=new Matrix;function e(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function i(){}function r(t,e,i){for(var r,s,a,n,o,h,l,p,m,f,c=e.styles.length,d=e.lvl,u=0;u<c;u+=1){if(n=e.sh._mdf||i,e.styles[u].lvl<d){for(l=g.reset(),m=d-e.styles[u].lvl,f=e.transformers.length-1;!n&&0<m;)n=e.transformers[f].mProps._mdf||n,--m,--f;if(n)for(m=d-e.styles[u].lvl,f=e.transformers.length-1;0<m;)p=e.transformers[f].mProps.v.props,l.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),--m,--f}else l=y;if(s=(h=e.sh.paths)._length,n){for(a="",r=0;r<s;r+=1)(o=h.shapes[r])&&o._length&&(a+=buildShapeString(o,o._length,o.c,l));e.caches[u]=a}else a=e.caches[u];e.styles[u].d+=!0===t.hd?"":a,e.styles[u]._mdf=n||e.styles[u]._mdf}}function s(t,e,i){var r=e.style;(e.c._mdf||i)&&r.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,i){n(t,e,i),o(0,e,i)}function n(t,e,i){var r,s,a,n,o=e.gf,h=e.g._hasOpacity,l=e.s.v,p=e.e.v;if((e.o._mdf||i)&&(a="gf"===t.ty?"fill-opacity":"stroke-opacity",e.style.pElem.setAttribute(a,e.o.v)),(e.s._mdf||i)&&(n="x1"==(a=1===t.t?"x1":"cx")?"y1":"cy",o.setAttribute(a,l[0]),o.setAttribute(n,l[1]),h&&!e.g._collapsable&&(e.of.setAttribute(a,l[0]),e.of.setAttribute(n,l[1]))),e.g._cmdf||i)for(var m=e.cst,f=e.g.c,c=m.length,d=0;d<c;d+=1)(r=m[d]).setAttribute("offset",f[4*d]+"%"),r.setAttribute("stop-color","rgb("+f[4*d+1]+","+f[4*d+2]+","+f[4*d+3]+")");if(h&&(e.g._omdf||i)){var u=e.g.o;for(c=(m=e.g._collapsable?e.cst:e.ost).length,d=0;d<c;d+=1)r=m[d],e.g._collapsable||r.setAttribute("offset",u[2*d]+"%"),r.setAttribute("stop-opacity",u[2*d+1])}1===t.t?(e.e._mdf||i)&&(o.setAttribute("x2",p[0]),o.setAttribute("y2",p[1]),h&&!e.g._collapsable&&(e.of.setAttribute("x2",p[0]),e.of.setAttribute("y2",p[1]))):((e.s._mdf||e.e._mdf||i)&&(s=Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)),o.setAttribute("r",s),h&&!e.g._collapsable&&e.of.setAttribute("r",s)),(e.e._mdf||e.h._mdf||e.a._mdf||i)&&(s=s||Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)),a=Math.atan2(p[1]-l[1],p[0]-l[0]),1<=(n=e.h.v)?n=.99:n<=-1&&(n=-.99),t=s*n,i=Math.cos(a+e.a.v)*t+l[0],p=Math.sin(a+e.a.v)*t+l[1],o.setAttribute("fx",i),o.setAttribute("fy",p),h&&!e.g._collapsable&&(e.of.setAttribute("fx",i),e.of.setAttribute("fy",p))))}function o(t,e,i){var r=e.style,s=e.d;s&&(s._mdf||i)&&s.dashStr&&(r.pElem.setAttribute("stroke-dasharray",s.dashStr),r.pElem.setAttribute("stroke-dashoffset",s.dashoffset[0])),e.c&&(e.c._mdf||i)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return s;case"gf":return n;case"gs":return a;case"st":return o;case"sh":case"el":case"rc":case"sr":return r;case"tr":return e;case"no":return i;default:return null}}}}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,r,s,a){this.o=t,this.sw=e,this.sc=i,this.fc=r,this.m=s,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!r,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){for(var t,e,i,r=this.shapes.length,s=this.stylesList.length,a=[],n=!1,o=0;o<s;o+=1){for(i=this.stylesList[o],n=!1,t=a.length=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(i)&&(a.push(e),n=e._isAnimated||n);1<a.length&&n&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,e=new SVGStyleData(t,e),r=e.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,e):"fl"===t.ty?i=new SVGFillStyleData(this,t,e):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,e),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new SVGNoStyleData(this,t,e)),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(e),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var r=4;"rc"===t.ty?r=5:"el"===t.ty?r=6:"sr"===t.ty&&(r=7);e=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,r,this));return this.shapes.push(e),this.addShapeToModifiers(e),this.addToAnimatedContents(t,e),e},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,r=this.animatedContents.length;i<r;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){for(var e=t.styles,i=this.stylesList.length,r=0;r<i;r+=1)this.stylesList[r].closed||e.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;for(var t=this.itemsData.length,e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,r,s,a,n){for(var o,h,l,p,m,f=[].concat(a),c=t.length-1,d=[],u=[],y=c;0<=y;--y){if((m=this.searchProcessedElement(t[y]))?e[y]=i[m-1]:t[y]._render=n,"fl"===t[y].ty||"st"===t[y].ty||"gf"===t[y].ty||"gs"===t[y].ty||"no"===t[y].ty)m?e[y].style.closed=!1:e[y]=this.createStyleElement(t[y],s),t[y]._render&&e[y].style.pElem.parentNode!==r&&r.appendChild(e[y].style.pElem),d.push(e[y].style);else if("gr"===t[y].ty){if(m)for(h=e[y].it.length,o=0;o<h;o+=1)e[y].prevViewData[o]=e[y].it[o];else e[y]=this.createGroupElement(t[y]);this.searchShapes(t[y].it,e[y].it,e[y].prevViewData,e[y].gr,s+1,f,n),t[y]._render&&e[y].gr.parentNode!==r&&r.appendChild(e[y].gr)}else"tr"===t[y].ty?(m||(e[y]=this.createTransformElement(t[y],r)),l=e[y].transform,f.push(l)):"sh"===t[y].ty||"rc"===t[y].ty||"el"===t[y].ty||"sr"===t[y].ty?(m||(e[y]=this.createShapeElement(t[y],f,s)),this.setElementStyles(e[y])):"tm"===t[y].ty||"rd"===t[y].ty||"ms"===t[y].ty||"pb"===t[y].ty?(m?(p=e[y]).closed=!1:((p=ShapeModifiers.getModifier(t[y].ty)).init(this,t[y]),e[y]=p,this.shapeModifiers.push(p)),u.push(p)):"rp"===t[y].ty&&(m?(p=e[y]).closed=!0:(p=ShapeModifiers.getModifier(t[y].ty),(e[y]=p).init(this,t,y,e),this.shapeModifiers.push(p),n=!1),u.push(p));this.addProcessedElement(t[y],y+1)}for(c=d.length,y=0;y<c;y+=1)d[y].closed=!0;for(c=u.length,y=0;y<c;y+=1)u[y].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){for(var t,e=this.animatedContents.length,i=0;i<e;i+=1)t=this.animatedContents[i],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,i,r,s,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1;var n=this._mdf.p=!1;return this.o!==t&&(this.o=t,n=this._mdf.o=!0),this.sw!==e&&(this.sw=e,n=this._mdf.sw=!0),this.sc!==i&&(this.sc=i,n=this._mdf.sc=!0),this.fc!==r&&(this.fc=r,n=this._mdf.fc=!0),this.m!==s&&(this.m=s,n=this._mdf.m=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,n=this._mdf.p=!0),n},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=1<this.data.d.k.length,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0,this._mdf=!1;for(var r=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s,a=0;a<r;a+=1)s=i!==this.keysIndex?this.effectsSequence[a](s,s.t):this.effectsSequence[a](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,r=t.length;i<=r-1&&!(i===r-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,r=[],s=0,a=t.length,n=!1;s<a;)e=t.charCodeAt(s),FontManager.isCombinedCharacter(e)?r[r.length-1]+=t.charAt(s):55296<=e&&e<=56319?56320<=(i=t.charCodeAt(s+1))&&i<=57343?(n||FontManager.isModifier(e,i)?(r[r.length-1]+=t.substr(s,2),n=!1):r.push(t.substr(s,2)),s+=1):r.push(t.charAt(s)):56319<e?(i=t.charCodeAt(s+1),FontManager.isZeroWidthJoiner(e,i)?(n=!0,r[r.length-1]+=t.substr(s,2),s+=1):r.push(t.charAt(s))):FontManager.isZeroWidthJoiner(e)?(r[r.length-1]+=t.charAt(s),n=!0):r.push(t.charAt(s)),s+=1;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,r,s,a=this.elem.globalData.fontManager,n=this.data,o=[],h=0,l=n.m.g,p=0,m=0,f=0,c=[],d=0,u=0,y=a.getFontByName(t.f),g=0,v=getFontProperties(y),b=(t.fWeight=v.weight,t.fStyle=v.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),S=t.finalText.length,t.finalLineHeight=t.lh,t.tr/1e3*t.finalSize);if(t.sz)for(var P=!0,R=t.sz[0],L=t.sz[1];P;){for(var E,x=0,d=0,S=(E=this.buildFinalText(t.t)).length,b=t.tr/1e3*t.finalSize,_=-1,C=0;C<S;C+=1)s=E[C].charCodeAt(0),e=!1," "===E[C]?_=C:13!==s&&3!==s||(e=!(d=0),x+=t.finalLineHeight||1.2*t.finalSize),d=R<d+(g=a.chars?(r=a.getCharData(E[C],y.fStyle,y.fFamily),e?0:r.w*t.finalSize/100):a.measureText(E[C],t.f,t.finalSize))&&" "!==E[C]?(-1===_?S+=1:C=_,x+=t.finalLineHeight||1.2*t.finalSize,E.splice(C,_===C?1:0,"\r"),_=-1,0):d+g+b;x+=y.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&L<x?(--t.finalSize,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=E,S=t.finalText.length,P=!1)}d=-b;var A,g=0,T=0;for(C=0;C<S;C+=1)if(e=!1,13===(s=(A=t.finalText[C]).charCodeAt(0))||3===s?(T=0,c.push(d),u=u<d?d:u,d=-2*b,e=!(i=""),f+=1):i=A,g=a.chars?(r=a.getCharData(A,y.fStyle,a.getFontByName(t.f).fFamily),e?0:r.w*t.finalSize/100):a.measureText(i,t.f,t.finalSize)," "===A?T+=g+b:(d+=g+b+T,T=0),o.push({l:g,an:g,add:p,n:e,anIndexes:[],val:i,line:f,animatorJustifyOffset:0}),2==l){if(p+=g,""===i||" "===i||C===S-1){for(""!==i&&" "!==i||(p-=g);m<=C;)o[m].an=p,o[m].ind=h,o[m].extra=g,m+=1;h+=1,p=0}}else if(3==l){if(p+=g,""===i||C===S-1){for(""===i&&(p-=g);m<=C;)o[m].an=p,o[m].ind=h,o[m].extra=g,m+=1;p=0,h+=1}}else o[h].ind=h,o[h].extra=0,h+=1;if(t.l=o,u=u<d?d:u,c.push(d),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=u,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=c;for(var D,k,M,F,w=n.a,G=w.length,I=[],V=0;V<G;V+=1){for((D=w[V]).a.sc&&(t.strokeColorAnim=!0),D.a.sw&&(t.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(t.fillColorAnim=!0),M=D.s.b,C=F=0;C<S;C+=1)(k=o[C]).anIndexes[V]=F,(1==M&&""!==k.val||2==M&&""!==k.val&&" "!==k.val||3==M&&(k.n||" "==k.val||C==S-1)||4==M&&(k.n||C==S-1))&&(1===D.s.rn&&I.push(F),F+=1);n.a[V].s.totalChars=F;var B,z=-1;if(1===D.s.rn)for(C=0;C<S;C+=1)z!=(k=o[C]).anIndexes[V]&&(z=k.anIndexes[V],B=I.splice(Math.floor(Math.random()*I.length),1)[0]),k.anIndexes[V]=B}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=y.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s),i=this.copyData(i,t);this.data.d.k[e].s=i,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){t=this.data.d.k[t].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var o=Math.max,h=Math.min,l=Math.floor;function r(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),"e"in e?this.e=PropertyFactory.getProp(t,e.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(t){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var e,i=0,r=0,s=1,a=1,i=(0<this.ne.v?i=this.ne.v/100:r=-this.ne.v/100,0<this.xe.v?s=1-this.xe.v/100:a=1+this.xe.v/100,BezierFactory.getBezierEasing(i,r,s,a).get),r=0,s=this.finalS,a=this.finalE,n=this.data.sh;return r=2===n?i(r=a===s?a<=t?1:0:o(0,h(.5/(a-s)+(t-s)/(a-s),1))):3===n?i(r=a===s?a<=t?0:1:1-o(0,h(.5/(a-s)+(t-s)/(a-s),1))):4===n?(a===s?r=0:(r=o(0,h(.5/(a-s)+(t-s)/(a-s),1)))<.5?r*=2:r=1-2*(r-.5),i(r)):i(r=5===n?a===s?0:(e=-(i=a-s)/2+(t=h(o(0,t+.5-s),a-s)),i=i/2,Math.sqrt(1-e*e/(i*i))):6===n?a===s?0:(t=h(o(0,t+.5-s),a-s),(1+Math.cos(Math.PI+2*Math.PI*t/(a-s)))/2):t>=l(s)?o(0,h(t-s<0?h(a,1)-(s-t):a-t,1)):r),100!==this.sm.v&&(r<(i=.5-.5*(e=0===(e=.01*this.sm.v)?1e-8:e))?r=0:1<(r=(r-i)/e)&&(r=1)),r*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,e=this.o.v/t,i=this.s.v/t+e,t=this.e.v/t+e;t<i&&(e=i,i=t,t=e),this.finalS=i,this.finalE=t}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(t,e,i){return new r(t,e)}}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,i):r,rx:a.rx?s(t,a.rx,0,degToRads,i):r,ry:a.ry?s(t,a.ry,0,degToRads,i):r,sk:a.sk?s(t,a.sk,0,degToRads,i):r,sa:a.sa?s(t,a.sa,0,degToRads,i):r,s:a.s?s(t,a.s,1,.01,i):r,a:a.a?s(t,a.a,1,0,i):r,o:a.o?s(t,a.o,0,.01,i):r,p:a.p?s(t,a.p,1,0,i):r,sw:a.sw?s(t,a.sw,0,0,i):r,sc:a.sc?s(t,a.sc,1,0,i):r,fc:a.fc?s(t,a.fc,1,0,i):r,fh:a.fh?s(t,a.fh,0,0,i):r,fs:a.fs?s(t,a.fs,0,.01,i):r,fb:a.fb?s(t,a.fb,0,.01,i):r,t:a.t?s(t,a.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){for(var t,e=this._textData.a.length,i=PropertyFactory.getProp,r=0;r<e;r+=1)t=this._textData.a[r],this._animatorsData[r]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,R){if(this.lettersChangedFlag=R,this._mdf||this._isFirstFrame||R||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var e,i,r,L,s,a,n,o,h,G,l,z,p,m=this._moreOptions.alignment.v,f=this._animatorsData,c=this._textData,d=this.mHelper,N=this._renderType,O=this.renderedLetters.length,u=t.l;if(this._hasMaskedPath){if(p=this._pathData.m,!this._pathData.n||this._pathData._mdf){for(var y,g=p.v,v={tLength:0,segments:[]},b=(g=this._pathData.r.v?g.reverse():g)._length-1,P=l=0;P<b;P+=1)y=bez.buildBezierData(g.v[P],g.v[P+1],[g.o[P][0]-g.v[P][0],g.o[P][1]-g.v[P][1]],[g.i[P+1][0]-g.v[P+1][0],g.i[P+1][1]-g.v[P+1][1]]),v.tLength+=y.segmentLength,v.segments.push(y),l+=y.segmentLength;P=b,p.v.c&&(y=bez.buildBezierData(g.v[P],g.v[0],[g.o[P][0]-g.v[P][0],g.o[P][1]-g.v[P][1]],[g.i[0][0]-g.v[0][0],g.i[0][1]-g.v[0][1]]),v.tLength+=y.segmentLength,v.segments.push(y),l+=y.segmentLength),this._pathData.pi=v}if(v=this._pathData.pi,e=this._pathData.f.v,s=1,L=!(r=a=0),h=v.segments,e<0&&p.v.c)for(v.tLength<Math.abs(e)&&(e=-Math.abs(e)%v.tLength),s=(o=h[a=h.length-1].points).length-1;e<0;)e+=o[s].partialLength,--s<0&&(s=(o=h[--a].points).length-1);n=(o=h[a].points)[s-1],G=(i=o[s]).partialLength}b=u.length;var E,H,x,S,j,q,_,C,A,T,D,W,$,Y,X,K,k=0,J=0,Z=1.2*t.finalSize*.714,U=!0,M=f.length,F=-1,Q=e,tt=a,et=s,it=-1,rt="",st=this.defaultPropsArray;if(2===t.j||1===t.j){var w=0,at=0,nt=2===t.j?-.5:-1,I=0,ot=!0;for(P=0;P<b;P+=1)if(u[P].n){for(w&&(w+=at);I<P;)u[I].animatorJustifyOffset=w,I+=1;ot=!(w=0)}else{for(B=0;B<M;B+=1)(E=f[B].a).t.propType&&(ot&&2===t.j&&(at+=E.t.v*nt),(x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars)).length?w+=E.t.v*x[0]*nt:w+=E.t.v*x*nt);ot=!1}for(w&&(w+=at);I<P;)u[I].animatorJustifyOffset=w,I+=1}for(P=0;P<b;P+=1){if(d.reset(),_=1,u[P].n)k=0,J=J+t.yOffset+(U?1:0),e=Q,U=!1,this._hasMaskedPath&&(n=(o=h[a=tt].points)[(s=et)-1],G=(i=o[s]).partialLength,r=0),X=W=Y=rt="",st=this.defaultPropsArray;else{if(this._hasMaskedPath){if(it!==u[P].line){switch(t.j){case 1:e+=l-t.lineWidths[u[P].line];break;case 2:e+=(l-t.lineWidths[u[P].line])/2}it=u[P].line}F!==u[P].ind&&(u[F]&&(e+=u[F].extra),e+=u[P].an/2,F=u[P].ind),e+=m[0]*u[P].an*.005;for(var V=0,B=0;B<M;B+=1)(E=f[B].a).p.propType&&((x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars)).length?V+=E.p.v[0]*x[0]:V+=E.p.v[0]*x),E.a.propType&&((x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars)).length?V+=E.a.v[0]*x[0]:V+=E.a.v[0]*x);for(L=!0,this._pathData.a.v&&(e=.5*u[0].an+(l-this._pathData.f.v-.5*u[0].an-.5*u[u.length-1].an)*F/(b-1),e+=this._pathData.f.v);L;)e+V<=r+G||!o?(z=(e+V-r)/i.partialLength,j=n.point[0]+(i.point[0]-n.point[0])*z,q=n.point[1]+(i.point[1]-n.point[1])*z,d.translate(-m[0]*u[P].an*.005,-m[1]*Z*.01),L=!1):o&&(r+=i.partialLength,(s+=1)>=o.length&&(s=0,o=h[a+=1]?h[a].points:p.v.c?h[a=s=0].points:(r-=i.partialLength,null)),o&&(n=i,G=(i=o[s]).partialLength));S=u[P].an/2-u[P].add,d.translate(-S,0,0)}else S=u[P].an/2-u[P].add,d.translate(-S,0,0),d.translate(-m[0]*u[P].an*.005,-m[1]*Z*.01,0);for(B=0;B<M;B+=1)(E=f[B].a).t.propType&&(x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars),0===k&&0===t.j||(this._hasMaskedPath?x.length?e+=E.t.v*x[0]:e+=E.t.v*x:x.length?k+=E.t.v*x[0]:k+=E.t.v*x));for(t.strokeWidthAnim&&(A=t.sw||0),t.strokeColorAnim&&(C=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(T=[t.fc[0],t.fc[1],t.fc[2]]),B=0;B<M;B+=1)(E=f[B].a).a.propType&&((x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars)).length?d.translate(-E.a.v[0]*x[0],-E.a.v[1]*x[1],E.a.v[2]*x[2]):d.translate(-E.a.v[0]*x,-E.a.v[1]*x,E.a.v[2]*x));for(B=0;B<M;B+=1)(E=f[B].a).s.propType&&((x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars)).length?d.scale(1+(E.s.v[0]-1)*x[0],1+(E.s.v[1]-1)*x[1],1):d.scale(1+(E.s.v[0]-1)*x,1+(E.s.v[1]-1)*x,1));for(B=0;B<M;B+=1){if(E=f[B].a,x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars),E.sk.propType&&(x.length?d.skewFromAxis(-E.sk.v*x[0],E.sa.v*x[1]):d.skewFromAxis(-E.sk.v*x,E.sa.v*x)),E.r.propType&&(x.length?d.rotateZ(-E.r.v*x[2]):d.rotateZ(-E.r.v*x)),E.ry.propType&&(x.length?d.rotateY(E.ry.v*x[1]):d.rotateY(E.ry.v*x)),E.rx.propType&&(x.length?d.rotateX(E.rx.v*x[0]):d.rotateX(E.rx.v*x)),E.o.propType&&(x.length?_+=(E.o.v*x[0]-_)*x[0]:_+=(E.o.v*x-_)*x),t.strokeWidthAnim&&E.sw.propType&&(x.length?A+=E.sw.v*x[0]:A+=E.sw.v*x),t.strokeColorAnim&&E.sc.propType)for(D=0;D<3;D+=1)x.length?C[D]+=(E.sc.v[D]-C[D])*x[0]:C[D]+=(E.sc.v[D]-C[D])*x;if(t.fillColorAnim&&t.fc){if(E.fc.propType)for(D=0;D<3;D+=1)x.length?T[D]+=(E.fc.v[D]-T[D])*x[0]:T[D]+=(E.fc.v[D]-T[D])*x;E.fh.propType&&(T=x.length?addHueToRGB(T,E.fh.v*x[0]):addHueToRGB(T,E.fh.v*x)),E.fs.propType&&(T=x.length?addSaturationToRGB(T,E.fs.v*x[0]):addSaturationToRGB(T,E.fs.v*x)),E.fb.propType&&(T=x.length?addBrightnessToRGB(T,E.fb.v*x[0]):addBrightnessToRGB(T,E.fb.v*x))}}for(B=0;B<M;B+=1)(E=f[B].a).p.propType&&(x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars),this._hasMaskedPath?x.length?d.translate(0,E.p.v[1]*x[0],-E.p.v[2]*x[1]):d.translate(0,E.p.v[1]*x,-E.p.v[2]*x):x.length?d.translate(E.p.v[0]*x[0],E.p.v[1]*x[1],-E.p.v[2]*x[2]):d.translate(E.p.v[0]*x,E.p.v[1]*x,-E.p.v[2]*x));if(t.strokeWidthAnim&&(W=A<0?0:A),t.strokeColorAnim&&($="rgb("+Math.round(255*C[0])+","+Math.round(255*C[1])+","+Math.round(255*C[2])+")"),t.fillColorAnim&&t.fc&&(Y="rgb("+Math.round(255*T[0])+","+Math.round(255*T[1])+","+Math.round(255*T[2])+")"),this._hasMaskedPath)d.translate(0,-t.ls),d.translate(0,m[1]*Z*.01+J,0),this._pathData.p.v&&(K=(i.point[1]-n.point[1])/(i.point[0]-n.point[0]),K=180*Math.atan(K)/Math.PI,i.point[0]<n.point[0]&&(K+=180),d.rotate(-K*Math.PI/180)),d.translate(j,q,0),e-=m[0]*u[P].an*.005,u[P+1]&&F!==u[P+1].ind&&(e=(e+=u[P].an/2)+.001*t.tr*t.finalSize);else{switch(d.translate(k,J,0),t.ps&&d.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:d.translate(u[P].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[u[P].line]),0,0);break;case 2:d.translate(u[P].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[u[P].line])/2,0,0)}d.translate(0,-t.ls),d.translate(S,0,0),d.translate(m[0]*u[P].an*.005,m[1]*Z*.01,0),k+=u[P].l+.001*t.tr*t.finalSize}"html"===N?rt=d.toCSS():"svg"===N?rt=d.to2dCSS():st=[d.props[0],d.props[1],d.props[2],d.props[3],d.props[4],d.props[5],d.props[6],d.props[7],d.props[8],d.props[9],d.props[10],d.props[11],d.props[12],d.props[13],d.props[14],d.props[15]],X=_}O<=P?(H=new LetterProps(X,W,$,Y,rt,st),this.renderedLetters.push(H),O+=1,this.lettersChangedFlag=!0):(H=this.renderedLetters[P],this.lettersChangedFlag=H.update(X,W,$,Y,rt,st)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){for(var i,r=e.length,s="",a=0;a<r;a+=1)"sh"===e[a].ty&&(i=e[a].ks.k,s+=buildShapeString(i,i.i.length,!0,t));return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,r,s){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(r,s,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var t="",i=(e&&e.title&&(i=createNS("title"),r=createElementID(),i.setAttribute("id",r),i.textContent=e.title,this.svgElement.appendChild(i),t+=r),e&&e.description&&(i=createNS("desc"),r=createElementID(),i.setAttribute("id",r),i.textContent=e.description,this.svgElement.appendChild(i),t+=" "+r),t&&this.svgElement.setAttribute("aria-labelledby",t),createNS("defs")),r=(this.svgElement.appendChild(i),createNS("g"));this.svgElement.appendChild(r),this.layerElement=r,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height},this.globalData={_mdf:!1,frameNum:-1,defs:i,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var t;this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1;for(this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);for(var i=this.masksProperties.length,r=!1,s=0;s<i;s+=1)"n"!==this.masksProperties[s].mode&&(r=!0),this.viewData[s]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[s],3);(this.hasMasks=r)&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(t,e,i,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];for(var s,a=4,n=("rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,a,t),i.length),o=0;o<n;o+=1)i[o].closed||(s={transforms:r.addTransformSequence(i[o].transforms),trNodes:[]},this.styledShapes.push(s),i[o].elements.push(s))}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,i)}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initHierarchy();e=PropertyFactory.getProp;if(this.pe=e(this,t.pe,0,0,this),t.ks.p.s?(this.px=e(this,t.ks.p.x,1,0,this),this.py=e(this,t.ks.p.y,1,0,this),this.pz=e(this,t.ks.p.z,1,0,this)):this.p=e(this,t.ks.p,1,0,this),t.ks.a&&(this.a=e(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to)for(var r=t.ks.or.k.length,s=0;s<r;s+=1)t.ks.or.k[s].to=null,t.ks.or.k[s].ti=null;this.or=e(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=e(this,t.ks.rx,0,degToRads,this),this.ry=e(this,t.ks.ry,0,degToRads,this),this.rz=e(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,r=[],s="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(r.push(s),s=""):s+=t[e],e+=1;return r.push(s),r},SVGTextLottieElement.prototype.buildShapeData=function(t,e){var i;return t.shapes&&t.shapes.length&&(i=t.shapes[0]).it&&(i=i.it[i.it.length-1]).s&&(i.s.k[0]=e,i.s.k[1]=e),t},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,e,i=this.textProperty.currentData,r=(this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize),this.globalData.fontManager.getFontByName(i.f)),s=(r.fClass?this.layerElement.setAttribute("class",r.fClass):(this.layerElement.setAttribute("font-family",r.fFamily),t=i.fWeight,e=i.fStyle,this.layerElement.setAttribute("font-style",e),this.layerElement.setAttribute("font-weight",t)),this.layerElement.setAttribute("aria-label",i.t),i.l||[]),a=!!this.globalData.fontManager.chars,n=(P=s.length,this.mHelper),o=this.data.singleShape,h=0,l=0,p=!0,m=.001*i.tr*i.finalSize;if(!o||a||i.sz){var f,c,d,u,y=this.textSpans.length;for(E=0;E<P;E+=1)this.textSpans[E]||(this.textSpans[E]={span:null,childSpan:null,glyph:null}),a&&o&&0!==E||(f=E<y?this.textSpans[E].span:createNS(a?"g":"text"),y<=E&&(f.setAttribute("stroke-linecap","butt"),f.setAttribute("stroke-linejoin","round"),f.setAttribute("stroke-miterlimit","4"),this.textSpans[E].span=f,a&&(u=createNS("g"),f.appendChild(u),this.textSpans[E].childSpan=u),this.textSpans[E].span=f,this.layerElement.appendChild(f)),f.style.display="inherit"),n.reset(),o&&(s[E].n&&(h=-m,l=l+i.yOffset+(p?1:0),p=!1),this.applyTextPropertiesToMatrix(i,n,s[E].line,h,l),h=h+(s[E].l||0)+m),a?(c=1===(u=this.globalData.fontManager.getCharData(i.finalText[E],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t?new SVGCompElement(u.data,this.globalData,this):(c=emptyShapeData,new SVGShapeElement(c=u.data&&u.data.shapes?this.buildShapeData(u.data,i.finalSize):c,this.globalData,this)),this.textSpans[E].glyph&&(d=this.textSpans[E].glyph,this.textSpans[E].childSpan.removeChild(d.layerElement),d.destroy()),(this.textSpans[E].glyph=c)._debug=!0,c.prepareFrame(0),c.renderFrame(),this.textSpans[E].childSpan.appendChild(c.layerElement),1===u.t&&this.textSpans[E].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")):(o&&f.setAttribute("transform","translate("+n.props[12]+","+n.props[13]+")"),f.textContent=s[E].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));o&&f&&f.setAttribute("d","")}else{var g=this.textContainer,v="start";switch(i.j){case 1:v="end";break;case 2:v="middle";break;default:v="start"}g.setAttribute("text-anchor",v),g.setAttribute("letter-spacing",m);for(var b=this.buildTextContents(i.finalText),P=b.length,l=i.ps?i.ps[1]+i.ascent:0,E=0;E<P;E+=1)(f=this.textSpans[E].span||createNS("tspan")).textContent=b[E],f.setAttribute("x",0),f.setAttribute("y",l),f.style.display="inherit",g.appendChild(f),this.textSpans[E]||(this.textSpans[E]={span:null,glyph:null}),this.textSpans[E].span=f,l+=i.finalLineHeight;this.layerElement.appendChild(g)}for(;E<this.textSpans.length;)this.textSpans[E].span.style.display="none",E+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){var t;return this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged&&(this._sizeChanged=!1,t=this.layerElement.getBBox(),this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}),this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;for(var t,e,i,r=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l,a=s.length,n=0;n<a;n+=1)s[n].n||(t=r[n],e=this.textSpans[n].span,(i=this.textSpans[n].glyph)&&i.renderFrame(),t._mdf.m&&e.setAttribute("transform",t.m),t._mdf.o&&e.setAttribute("opacity",t.o),t._mdf.sw&&e.setAttribute("stroke-width",t.sw),t._mdf.sc&&e.setAttribute("stroke",t.sc),t._mdf.fc&&e.setAttribute("fill",t.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs,i=(this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t,createNS("clipPath")),r=createNS("rect"),s=(r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0),createElementID());i.setAttribute("id",s),i.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;for(var t=this.layers?this.layers.length:0,e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.buildItem=function(t){var e,i=this.elements;i[t]||99===this.layers[t].ty||(i[t]=!0,e=this.createItem(this.layers[t]),i[t]=e,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(e),e.initExpressions()),this.appendElementInPos(e,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?e.setMatte(i[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(e))))},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;0<=e;--e)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){t=t.getBaseElement();if(t){for(var i,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){this.tm._placeholder?this.renderedFrame=t/this.data.sr:((t=this.tm.v)===this.data.op&&(t=this.data.op-1),this.renderedFrame=t);var e,t=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),e=t-1;0<=e;--e)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){for(var t=this.layers.length,e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){for(var t=this.layers.length,e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},CVContextData.prototype.duplicate=function(){for(var t=2*this._length,e=this.savedOp,i=(this.savedOp=createTypedArray("float32",t),this.savedOp.set(e),0),i=this._length;i<t;i+=1)this.saved[i]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(t){for(var e=t.length,i="_",r=0;r<e;r+=1)i+=t[r].transform.key+"_";var s=this.sequences[i];return s||(s={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=s,this.sequenceList.push(s)),s},processSequence:function(t,e){for(var i,r=0,s=t.transforms.length,a=e;r<s&&!e;){if(t.transforms[r].transform.mProps._mdf){a=!0;break}r+=1}if(a)for(t.finalTransform.reset(),r=s-1;0<=r;--r)i=t.transforms[r].transform.mProps.v.props,t.finalTransform.transform(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15]);t._mdf=a},processSequences:function(t){for(var e=this.sequenceList.length,i=0;i<e;i+=1)this.processSequence(this.sequenceList[i],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,r,s=this.element.finalTransform.mat,a=this.element.canvasContext,n=this.masksProperties.length;for(a.beginPath(),t=0;t<n;t+=1)if("n"!==this.masksProperties[t].mode){this.masksProperties[t].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),r=this.viewData[t].v,e=s.applyToPointArray(r.v[0][0],r.v[0][1],0),a.moveTo(e[0],e[1]);for(var o=r._length,h=1;h<o;h+=1)i=s.applyToTriplePoints(r.o[h-1],r.i[h],r.v[h]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=s.applyToTriplePoints(r.o[h-1],r.i[0],r.v[0]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t,e=this.globalData;e.blendMode!==this.data.bm&&(e.blendMode=this.data.bm,t=getBlendMode(this.data.bm),e.canvasContext.globalCompositeOperation=t)},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){var t;this.hidden||this.data.hd||(this.renderTransform(),this.renderRenderable(),this.setBlendMode(),t=0===this.data.ty,this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i,e={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},r={};return"fl"===t.ty||"st"===t.ty?(r.c=PropertyFactory.getProp(this,t.c,1,255,this),r.c.k||(e.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(r.s=PropertyFactory.getProp(this,t.s,1,null,this),r.e=PropertyFactory.getProp(this,t.e,1,null,this),r.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,t.g,this)),r.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty?(e.lc=lineCapEnum[t.lc||2],e.lj=lineJoinEnum[t.lj||2],1==t.lj&&(e.ml=t.ml),r.w=PropertyFactory.getProp(this,t.w,0,null,this),r.w.k||(e.wi=r.w.v),t.d&&(i=new DashProperty(this,t.d,"canvas",this),r.d=i,r.d.k||(e.da=r.d.dashArray,e.do=r.d.dashoffset[0]))):e.r=2===t.r?"evenodd":"nonzero",this.stylesList.push(e),r.style=e,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){t=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;for(var t=this.itemsData.length,e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){for(var e=this.stylesList.length,i=0;i<e;i+=1)this.stylesList[i].closed||this.stylesList[i].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,r,s){for(var a,n,o,h,l,p=t.length-1,m=[],f=[],c=[].concat(s),d=p;0<=d;--d){if((o=this.searchProcessedElement(t[d]))?e[d]=i[o-1]:t[d]._shouldRender=r,"fl"===t[d].ty||"st"===t[d].ty||"gf"===t[d].ty||"gs"===t[d].ty)o?e[d].style.closed=!1:e[d]=this.createStyleElement(t[d],c),m.push(e[d].style);else if("gr"===t[d].ty){if(o)for(n=e[d].it.length,a=0;a<n;a+=1)e[d].prevViewData[a]=e[d].it[a];else e[d]=this.createGroupElement(t[d]);this.searchShapes(t[d].it,e[d].it,e[d].prevViewData,r,c)}else"tr"===t[d].ty?(o||(l=this.createTransformElement(t[d]),e[d]=l),c.push(e[d]),this.addTransformToStyleList(e[d])):"sh"===t[d].ty||"rc"===t[d].ty||"el"===t[d].ty||"sr"===t[d].ty?o||(e[d]=this.createShapeElement(t[d])):"tm"===t[d].ty||"rd"===t[d].ty||"pb"===t[d].ty?(o?(h=e[d]).closed=!1:((h=ShapeModifiers.getModifier(t[d].ty)).init(this,t[d]),e[d]=h,this.shapeModifiers.push(h)),f.push(h)):"rp"===t[d].ty&&(o?(h=e[d]).closed=!0:(h=ShapeModifiers.getModifier(t[d].ty),(e[d]=h).init(this,t,d,e),this.shapeModifiers.push(h),r=!1),f.push(h));this.addProcessedElement(t[d],d+1)}for(this.removeTransformFromStyleList(),this.closeStyles(m),p=f.length,d=0;d<p;d+=1)f[d].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){for(var t,e,i,r,s,a,n,o,h=this.stylesList.length,l=this.globalData.renderer,p=this.globalData.canvasContext,m=0;m<h;m+=1)if(("st"!==(n=(o=this.stylesList[m]).type)&&"gs"!==n||0!==o.wi)&&o.data._shouldRender&&0!==o.coOp&&0!==this.globalData.currentGlobalAlpha){for(l.save(),s=o.elements,"st"===n||"gs"===n?(p.strokeStyle="st"===n?o.co:o.grd,p.lineWidth=o.wi,p.lineCap=o.lc,p.lineJoin=o.lj,p.miterLimit=o.ml||0):p.fillStyle="fl"===n?o.co:o.grd,l.ctxOpacity(o.coOp),"st"!==n&&"gs"!==n&&p.beginPath(),l.ctxTransform(o.preTransforms.finalTransform.props),e=s.length,t=0;t<e;t+=1){for("st"!==n&&"gs"!==n||(p.beginPath(),o.da&&(p.setLineDash(o.da),p.lineDashOffset=o.do)),r=(a=s[t].trNodes).length,i=0;i<r;i+=1)"m"===a[i].t?p.moveTo(a[i].p[0],a[i].p[1]):"c"===a[i].t?p.bezierCurveTo(a[i].pts[0],a[i].pts[1],a[i].pts[2],a[i].pts[3],a[i].pts[4],a[i].pts[5]):p.closePath();"st"!==n&&"gs"!==n||(p.stroke(),o.da&&p.setLineDash(this.dashResetter))}"st"!==n&&"gs"!==n&&p.fill(o.r),l.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,r){for(var s=t,a=e.length-1;0<=a;--a)"tr"===e[a].ty?(s=i[a].transform,this.renderShapeTransform(t,s)):"sh"===e[a].ty||"el"===e[a].ty||"rc"===e[a].ty||"sr"===e[a].ty?this.renderPath(e[a],i[a]):"fl"===e[a].ty?this.renderFill(e[a],i[a],s):"st"===e[a].ty?this.renderStroke(e[a],i[a],s):"gf"===e[a].ty||"gs"===e[a].ty?this.renderGradientFill(e[a],i[a],s):"gr"===e[a].ty?this.renderShape(s,e[a].it,i[a].it):e[a].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){for(var i,r,s=t.trNodes,a=e.paths,n=a._length,o=(s.length=0,t.transforms.finalTransform),h=0;h<n;h+=1){var l=a.shapes[h];if(l&&l.v){for(r=l._length,i=1;i<r;i+=1)1===i&&s.push({t:"m",p:o.applyToPointArray(l.v[0][0],l.v[0][1],0)}),s.push({t:"c",pts:o.applyToTriplePoints(l.o[i-1],l.i[i],l.v[i])});1===r&&s.push({t:"m",p:o.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&r&&(s.push({t:"c",pts:o.applyToTriplePoints(l.o[i-1],l.i[0],l.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender)for(var i=e.styledShapes.length,r=0;r<i;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)},CVShapeElement.prototype.renderFill=function(t,e,i){var r=e.style;(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var r=e.style;if(!r.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){for(var s,a,n,o,h=this.globalData.canvasContext,l=e.s.v,p=e.e.v,m=(o=1===t.t?h.createLinearGradient(l[0],l[1],p[0],p[1]):(s=Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)),p=Math.atan2(p[1]-l[1],p[0]-l[0]),1<=(a=e.h.v)?a=.99:a<=-1&&(a=-.99),a=s*a,n=Math.cos(p+e.a.v)*a+l[0],p=Math.sin(p+e.a.v)*a+l[1],h.createRadialGradient(n,p,0,l[0],l[1],s)),t.g.p),f=e.g.c,c=1,d=0;d<m;d+=1)e.g._hasOpacity&&e.g._collapsable&&(c=e.g.o[2*d+1]),o.addColorStop(f[4*d]/100,"rgba("+f[4*d+1]+","+f[4*d+2]+","+f[4*d+3]+","+c+")");r.grd=o}r.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var r=e.style,s=e.d;s&&(s._mdf||this._isFirstFrame)&&(r.da=s.dashArray,r.do=s.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(r.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){for(var t,e,i,r,s,a,n,o,h=this.textProperty.currentData,l=(this.renderedLetters=createSizedArray(h.l?h.l.length:0),!1),l=(h.fc?(l=!0,this.values.fill=this.buildColor(h.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=l,!1),p=(h.sc&&(l=!0,this.values.stroke=this.buildColor(h.sc),this.values.sWidth=h.sw),this.globalData.fontManager.getFontByName(h.f)),m=h.l,f=this.mHelper,c=(this.stroke=l,this.values.fValue=h.finalSize+"px "+this.globalData.fontManager.getFontByName(h.f).fFamily,t=h.finalText.length,this.data.singleShape),d=.001*h.tr*h.finalSize,u=0,y=0,g=!0,v=0,b=0;b<t;b+=1){e=(e=this.globalData.fontManager.getCharData(h.finalText[b],p.fStyle,this.globalData.fontManager.getFontByName(h.f).fFamily))&&e.data||{},f.reset(),c&&m[b].n&&(u=-d,y=y+h.yOffset+(g?1:0),g=!1),a=(s=e.shapes?e.shapes[0].it:[]).length,f.scale(h.finalSize/100,h.finalSize/100),c&&this.applyTextPropertiesToMatrix(h,f,m[b].line,u,y);for(var P=createSizedArray(a-1),E=0,x=0;x<a;x+=1)if("sh"===s[x].ty){for(r=s[x].ks.k.i.length,n=s[x].ks.k,o=[],i=1;i<r;i+=1)1===i&&o.push(f.applyToX(n.v[0][0],n.v[0][1],0),f.applyToY(n.v[0][0],n.v[0][1],0)),o.push(f.applyToX(n.o[i-1][0],n.o[i-1][1],0),f.applyToY(n.o[i-1][0],n.o[i-1][1],0),f.applyToX(n.i[i][0],n.i[i][1],0),f.applyToY(n.i[i][0],n.i[i][1],0),f.applyToX(n.v[i][0],n.v[i][1],0),f.applyToY(n.v[i][0],n.v[i][1],0));o.push(f.applyToX(n.o[i-1][0],n.o[i-1][1],0),f.applyToY(n.o[i-1][0],n.o[i-1][1],0),f.applyToX(n.i[0][0],n.i[0][1],0),f.applyToY(n.i[0][0],n.i[0][1],0),f.applyToX(n.v[0][0],n.v[0][1],0),f.applyToY(n.v[0][0],n.v[0][1],0)),P[E]=o,E+=1}c&&(u=u+m[b].l+d),this.textSpans[v]?this.textSpans[v].elem=P:this.textSpans[v]={elem:P},v+=1}},CVTextElement.prototype.renderInnerContent=function(){for(var t,e,i,r,s,a,n,o=this.canvasContext,h=(o.font=this.values.fValue,o.lineCap="butt",o.lineJoin="miter",o.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.textAnimator.renderedLetters),l=this.textProperty.currentData.l,p=l.length,m=null,f=null,c=null,d=0;d<p;d+=1)if(!l[d].n){if((s=h[d])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(s.p),this.globalData.renderer.ctxOpacity(s.o)),this.fill){for(s&&s.fc?m!==s.fc&&(m=s.fc,o.fillStyle=s.fc):m!==this.values.fill&&(m=this.values.fill,o.fillStyle=this.values.fill),e=(a=this.textSpans[d].elem).length,this.globalData.canvasContext.beginPath(),t=0;t<e;t+=1)for(r=(n=a[t]).length,this.globalData.canvasContext.moveTo(n[0],n[1]),i=2;i<r;i+=6)this.globalData.canvasContext.bezierCurveTo(n[i],n[i+1],n[i+2],n[i+3],n[i+4],n[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(s&&s.sw?c!==s.sw&&(c=s.sw,o.lineWidth=s.sw):c!==this.values.sWidth&&(c=this.values.sWidth,o.lineWidth=this.values.sWidth),s&&s.sc?f!==s.sc&&(f=s.sc,o.strokeStyle=s.sc):f!==this.values.stroke&&(f=this.values.stroke,o.strokeStyle=this.values.stroke),e=(a=this.textSpans[d].elem).length,this.globalData.canvasContext.beginPath(),t=0;t<e;t+=1)for(r=(n=a[t]).length,this.globalData.canvasContext.moveTo(n[0],n[1]),i=2;i<r;i+=6)this.globalData.canvasContext.bezierCurveTo(n[i],n[i+1],n[i+2],n[i+3],n[i+4],n[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}s&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){var t,e,i,r,s,a,n,o,h;!this.img.width||this.assetData.w===this.img.width&&this.assetData.h===this.img.height||((t=createTag("canvas")).width=this.assetData.w,t.height=this.assetData.h,e=t.getContext("2d"),i=this.img.width,r=this.img.height,a=this.assetData.w/this.assetData.h,h=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio,a<(s=i/r)&&"xMidYMid slice"===h||s<a&&"xMidYMid slice"!==h?n=(o=r)*a:o=(n=i)/a,e.drawImage(this.img,(i-n)/2,(r-o)/2,n,o,0,0,this.assetData.w,this.assetData.h),this.img=t)},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){var e;1===t[0]&&0===t[1]&&0===t[4]&&1===t[5]&&0===t[12]&&0===t[13]||(this.renderConfig.clearCanvas?(this.transformMat.cloneFromProps(t),e=this.contextData.cTr.props,this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props),e=this.contextData.cTr.props,this.canvasContext.setTransform(e[0],e[1],e[4],e[5],e[12],e[13])):this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13]))},CanvasRendererBase.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();for(var e=this.contextData.cTr.props,i=(this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate(),this.contextData.saved[this.contextData.cArrPos]),r=0;r<16;r+=1)i[r]=e[r];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),--this.contextData.cArrPos;for(var e=this.contextData.saved[this.contextData.cArrPos],i=this.contextData.cTr.props,r=0;r<16;r+=1)i[r]=e[r];this.canvasContext.setTransform(e[0],e[1],e[4],e[5],e[12],e[13]),e=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=e,this.globalData.currentGlobalAlpha!==e&&(this.canvasContext.globalAlpha=e,this.globalData.currentGlobalAlpha=e)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){var e,i;this.animationItem.wrapper?(this.animationItem.container=createTag("canvas"),(e=this.animationItem.container.style).width="100%",e.height="100%",e.transformOrigin=i="0px 0px 0px",e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e["-webkit-transform"]=i,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)):this.canvasContext=this.renderConfig.context,this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,(this.globalData.renderer=this).globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(){var t,e,i,r,s,a,n;this.reset(),this.animationItem.wrapper&&this.animationItem.container?(t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",t*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",e*this.renderConfig.dpr)):(t=this.canvasContext.canvas.width*this.renderConfig.dpr,e=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")?(i=(s=this.renderConfig.preserveAspectRatio.split(" "))[1]||"meet",r=(s=s[0]||"xMidYMid").substr(0,4),s=s.substr(4),(a=t/e)<(n=this.transformCanvas.w/this.transformCanvas.h)&&"meet"===i||n<a&&"slice"===i?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===r&&(n<a&&"meet"===i||a<n&&"slice"===i)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===r&&(n<a&&"meet"===i||a<n&&"slice"===i)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===s&&(a<n&&"meet"===i||n<a&&"slice"===i)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===s&&(a<n&&"meet"===i||n<a&&"slice"===i)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))*this.renderConfig.dpr:0):("none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0),this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");for(var t=(this.layers?this.layers.length:0)-1;0<=t;--t)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=0;i<r;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;0<=i;--i)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e,i=this.elements;i[t]||99===this.layers[t].ty||(e=this.createItem(this.layers[t],this,this.globalData),(i[t]=e).initExpressions())},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip();for(var e=this.layers.length-1;0<=e;--e)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){for(var t=this.layers.length-1;0<=t;--t)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t,e=this.transformedElement?this.transformedElement.style:{};this.finalTransform._matMdf&&(t=this.finalTransform.mat.toCSS(),e.transform=t,e.webkitTransform=t),this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t,e;this.baseElement.style.fontSize=0,this.data.hasMask?(this.layerElement.appendChild(this.shapesContainer),t=this.svgElement):(t=createNS("svg"),e=this.comp.data||this.globalData.compSize,t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)),this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){for(var i=t.length,r=0;r<i;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,r,s,a,n,o=t.sh.v,h=t.transformers,l=o._length;if(!(l<=1)){for(i=0;i<l-1;i+=1)r=this.getTransformedPoint(h,o.v[i]),s=this.getTransformedPoint(h,o.o[i]),a=this.getTransformedPoint(h,o.i[i+1]),n=this.getTransformedPoint(h,o.v[i+1]),this.checkBounds(r,s,a,n,e);o.c&&(r=this.getTransformedPoint(h,o.v[i]),s=this.getTransformedPoint(h,o.o[i]),a=this.getTransformedPoint(h,o.i[0]),n=this.getTransformedPoint(h,o.v[0]),this.checkBounds(r,s,a,n,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,r,s){this.getBoundsOfCurve(t,e,i,r);t=this.shapeBoundingBox;s.x=bmMin(t.left,s.x),s.xMax=bmMax(t.right,s.xMax),s.y=bmMin(t.top,s.y),s.yMax=bmMax(t.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,i,r){for(var s,a,n,o,h=[[t[0],r[0]],[t[1],r[1]]],l=0;l<2;++l)a=6*t[l]-12*e[l]+6*i[l],s=-3*t[l]+9*e[l]-9*i[l]+3*r[l],o=3*e[l]-3*t[l],a|=0,o|=0,0==(s|=0)&&0==a||(0==s?0<(n=-o/a)&&n<1&&h[l].push(this.calculateF(n,t,e,i,r,l)):0<=(n=a*a-4*o*s)&&(0<(o=(-a+bmSqrt(n))/(2*s))&&o<1&&h[l].push(this.calculateF(o,t,e,i,r,l)),0<(o=(-a-bmSqrt(n))/(2*s))&&o<1&&h[l].push(this.calculateF(o,t,e,i,r,l))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(t,e,i,r,s,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*i[a]+3*(1-t)*bmPow(t,2)*r[a]+bmPow(t,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){for(var i=t.length,r=0;r<i;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var i=0;if(t.keyframes){for(var r=0;r<t.keyframes.length;r+=1){var s=t.keyframes[r].s;i<s&&(i=s)}i*=t.mult}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){var t,e;this._renderShapeFrame(),this.hidden||!this._isFirstFrame&&!this._mdf||((e=this.tempBoundingBox).x=t=999999,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e)||(t=!1,this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),t=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),t=!0),!t&&this.currentBBox.x===e.x&&this.currentBBox.y===e.y||(this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.shapeCont.style,e="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)",t.transform=e,t.webkitTransform=e)))},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){var t;this.isMasked=this.checkMasks(),this.isMasked?(this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH),t=createNS("g"),this.maskedElement.appendChild(t),this.innerElem=t):(this.renderType="html",this.innerElem=this.layerElement),this.checkParenting()},HTextElement.prototype.buildNewText=function(){for(var t,e,i,r,s,a,n,o=this.textProperty.currentData,h=(this.renderedLetters=createSizedArray(o.l?o.l.length:0),this.innerElem.style),l=o.fc?this.buildColor(o.fc):"rgba(0,0,0,0)",p=(h.fill=l,h.color=l,o.sc&&(h.stroke=this.buildColor(o.sc),h.strokeWidth=o.sw+"px"),this.globalData.fontManager.getFontByName(o.f)),m=(this.globalData.fontManager.chars||(h.fontSize=o.finalSize+"px",h.lineHeight=o.finalSize+"px",p.fClass?this.innerElem.className=p.fClass:(h.fontFamily=p.fFamily,l=o.fWeight,t=o.fStyle,h.fontStyle=t,h.fontWeight=l)),o.l),f=m.length,c=this.mHelper,d=0,u=0;u<f;u+=1)this.globalData.fontManager.chars?(this.textPaths[d]?e=this.textPaths[d]:((e=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),e.setAttribute("stroke-linejoin",lineJoinEnum[2]),e.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[d]?r=(i=this.textSpans[d]).children[0]:((i=createTag("div")).style.lineHeight=0,(r=createNS("svg")).appendChild(e),styleDiv(i)))):this.isMasked?e=this.textPaths[d]||createNS("text"):this.textSpans[d]?(i=this.textSpans[d],e=this.textPaths[d]):(styleDiv(i=createTag("span")),styleDiv(e=createTag("span")),i.appendChild(e)),this.globalData.fontManager.chars?(a=(a=this.globalData.fontManager.getCharData(o.finalText[u],p.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily))?a.data:null,c.reset(),a&&a.shapes&&a.shapes.length&&(s=a.shapes[0].it,c.scale(o.finalSize/100,o.finalSize/100),s=this.createPathShape(c,s),e.setAttribute("d",s)),this.isMasked?this.innerElem.appendChild(e):(this.innerElem.appendChild(i),a&&a.shapes?(document.body.appendChild(r),s=r.getBBox(),r.setAttribute("width",s.width+2),r.setAttribute("height",s.height+2),r.setAttribute("viewBox",s.x-1+" "+(s.y-1)+" "+(s.width+2)+" "+(s.height+2)),a=r.style,n="translate("+(s.x-1)+"px,"+(s.y-1)+"px)",a.transform=n,a.webkitTransform=n,m[u].yOffset=s.y-1):(r.setAttribute("width",1),r.setAttribute("height",1)),i.appendChild(r))):(e.textContent=m[u].val,e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked?this.innerElem.appendChild(e):(this.innerElem.appendChild(i),a=e.style,n="translate3d(0,"+-o.finalSize/1.2+"px,0)",a.transform=n,a.webkitTransform=n)),this.isMasked?this.textSpans[d]=e:this.textSpans[d]=i,this.textSpans[d].style.display="block",this.textPaths[d]=e,d+=1;for(;d<this.textSpans.length;)this.textSpans[d].style.display="none",d+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;this.isMasked&&this.finalTransform._matMdf&&(this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style,s="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)",t.transform=s,t.webkitTransform=s)}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){for(var e,i,r,s,a=0,n=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l,h=o.length,l=0;l<h;l+=1)o[l].n?a+=1:(i=this.textSpans[l],r=this.textPaths[l],e=n[a],a+=1,e._mdf.m&&(this.isMasked?i.setAttribute("transform",e.m):(i.style.webkitTransform=e.m,i.style.transform=e.m)),i.style.opacity=e.o,e.sw&&e._mdf.sw&&r.setAttribute("stroke-width",e.sw),e.sc&&e._mdf.sc&&r.setAttribute("stroke",e.sc),e.fc&&e._mdf.fc&&(r.setAttribute("fill",e.fc),r.style.color=e.fc));this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)&&(s=this.innerElem.getBBox(),this.currentBBox.w!==s.width&&(this.currentBBox.w=s.width,this.svgElement.setAttribute("width",s.width)),this.currentBBox.h!==s.height&&(this.currentBBox.h=s.height,this.svgElement.setAttribute("height",s.height)),this.currentBBox.w===s.width+2&&this.currentBBox.h===s.height+2&&this.currentBBox.x===s.x-1&&this.currentBBox.y===s.y-1||(this.currentBBox.w=s.width+2,this.currentBBox.h=s.height+2,this.currentBBox.x=s.x-1,this.currentBBox.y=s.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)",t.transform=s,t.webkitTransform=s))}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){for(var t,e,i,r,s,a=this.comp.threeDElements.length,n=0;n<a;n+=1)"3d"===(s=this.comp.threeDElements[n]).type&&(t=s.perspectiveElem.style,s=s.container.style,e=this.pe.v+"px",i="0px 0px 0px",r="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)",t.perspective=e,t.webkitPerspective=e,s.transformOrigin=i,s.mozTransformOrigin=i,s.webkitTransformOrigin=i,t.transform=r,t.webkitTransform=r)},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame;if(this.hierarchy)for(h=this.hierarchy.length,l=0;l<h;l+=1)t=this.hierarchy[l].finalTransform.mProp._mdf||t;if(t||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(l=h=this.hierarchy.length-1;0<=l;--l){var e=this.hierarchy[l].finalTransform.mProp;this.mat.translate(-e.p.v[0],-e.p.v[1],e.p.v[2]),this.mat.rotateX(-e.or.v[0]).rotateY(-e.or.v[1]).rotateZ(e.or.v[2]),this.mat.rotateX(-e.rx.v).rotateY(-e.ry.v).rotateZ(e.rz.v),this.mat.scale(1/e.s.v[0],1/e.s.v[1],1/e.s.v[2]),this.mat.translate(e.a.v[0],e.a.v[1],e.a.v[2])}this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a&&(r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]],i=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),r=[r[0]/i,r[1]/i,r[2]/i],i=Math.sqrt(r[2]*r[2]+r[0]*r[0]),i=Math.atan2(r[1],i),r=Math.atan2(r[0],-r[2]),this.mat.rotateY(r).rotateX(-i)),this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var i,r,s=!this._prevMat.equals(this.mat);if((s||this.pe._mdf)&&this.comp.threeDElements){for(var a,n,o,h=this.comp.threeDElements.length,l=0;l<h;l+=1)"3d"===(o=this.comp.threeDElements[l]).type&&(s&&(a=this.mat.toCSS(),(n=o.container.style).transform=a,n.webkitTransform=a),this.pe._mdf&&((n=o.perspectiveElem.style).perspective=this.pe.v+"px",n.webkitPerspective=this.pe.v+"px"));this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){t=t.getBaseElement();if(t){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(t,e);else if(this.threeDElements)this.addTo3dContainer(t,e);else{for(var r,s,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a],r=(this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement())||r),a+=1;r?i.ddd&&this.supports3d||this.layerElement.insertBefore(t,r):i.ddd&&this.supports3d||this.layerElement.appendChild(t)}}},HybridRendererBase.prototype.createShape=function(t){return new(this.supports3d?HShapeElement:SVGShapeElement)(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return new(this.supports3d?HTextElement:SVGTextLottieElement)(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return new(this.supports3d?HImageElement:IImageElement)(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return new(this.supports3d?HSolidElement:ISolidElement)(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i,r=createTag("div"),s=(styleDiv(r),createTag("div")),a=(styleDiv(s),"3d"===e&&((a=r.style).width=this.globalData.compSize.w+"px",a.height=this.globalData.compSize.h+"px",a.webkitTransformOrigin=i="50% 50%",a.mozTransformOrigin=i,a.transformOrigin=i,(a=s.style).transform=i="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)",a.webkitTransform=i),r.appendChild(s),{container:s,perspectiveElem:r,startPos:t,endPos:t,type:e});return this.threeDElements.push(a),a},HybridRendererBase.prototype.build3dContainers=function(){for(var t,e=this.layers.length,i="",r=0;r<e;r+=1)this.layers[r].ddd&&3!==this.layers[r].ty?(t="3d"!==i?this.createThreeDContainer(r,i="3d"):t).endPos=Math.max(t.endPos,r):(t="2d"!==i?this.createThreeDContainer(r,i="2d"):t).endPos=Math.max(t.endPos,r);for(r=(e=this.threeDElements.length)-1;0<=r;--r)this.resizerElem.appendChild(this.threeDElements[r].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,r=this.threeDElements.length;i<r;){if(e<=this.threeDElements[i].endPos){for(var s,a=this.threeDElements[i].startPos;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a].getBaseElement()),a+=1;s?this.threeDElements[i].container.insertBefore(t,s):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,r=e.style,i=(r.width=t.w+"px",r.height=t.h+"px",styleDiv(this.resizerElem=e),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),r.overflow="hidden",createNS("svg")),e=(i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i),createNS("defs"));i.appendChild(e),this.data=t,this.setupGlobalData(t,i),this.globalData.defs=e,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;for(var t=this.layers?this.layers.length:0,e=0;e<t;e+=1)this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,i,r=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,r=r/s<this.globalData.compSize.w/this.globalData.compSize.h?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,(s-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,0),s=this.resizerElem.style;s.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+r+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else for(var t=this.globalData.compSize.w,e=this.globalData.compSize.h,i=this.threeDElements.length,r=0;r<i;r+=1){var s=this.threeDElements[r].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(e,2))+"px",s.perspective=s.webkitPerspective}},HybridRendererBase.prototype.searchExtraCompositions=function(t){for(var e,i=t.length,r=createTag("div"),s=0;s<i;s+=1)t[s].xt&&((e=this.createComp(t[s],r,this.globalData.comp,null)).initExpressions(),this.globalData.projectInterface.registerComposition(e))},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var i,r=0;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return new(this.supports3d?HCompElement:SVGCompElement)(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return new(this.supports3d?HCompElement:SVGCompElement)(t,this.globalData,this)};var Expressions=function(){var t={};return t.initExpressions=function(t){var i=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){i+=1},t.renderer.globalData.popExpression=function(){if(0===--i){var t,e=r.length;for(t=0;t<e;t+=1)r[t].release();r.length=0}},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}},t}();function _typeof$1(t){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function seedRandom(n,o){var h,l=this,p=256,m=6,f="random",c=o.pow(p,m),d=o.pow(2,52),u=2*d,y=p-1;function g(t){var e,i=t.length,n=this,r=0,s=n.i=n.j=0,a=n.S=[];for(i||(t=[i++]);r<p;)a[r]=r++;for(r=0;r<p;r++)a[r]=a[s=y&s+t[r%i]+(e=a[r])],a[s]=e;n.g=function(t){for(var e,i=0,r=n.i,s=n.j,a=n.S;t--;)e=a[r=y&r+1],i=i*p+a[y&(a[r]=a[s=y&s+e])+(a[s]=e)];return n.i=r,n.j=s,i}}function v(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function b(t,e){for(var i,r=t+"",s=0;s<r.length;)e[y&s]=y&(i^=19*e[y&s])+r.charCodeAt(s++);return P(e)}function P(t){return String.fromCharCode.apply(0,t)}o["seed"+f]=function(t,e,i){function r(){for(var t=a.g(m),e=c,i=0;t<d;)t=(t+i)*p,e*=p,i=a.g(1);for(;u<=t;)t/=2,e/=2,i>>>=1;return(t+i)/e}var s=[],t=b(function t(e,i){var r,s=[],a=_typeof$1(e);if(i&&"object"==a)for(r in e)try{s.push(t(e[r],i-1))}catch(t){}return s.length?s:"string"==a?e:e+"\0"}((e=!0===e?{entropy:!0}:e||{}).entropy?[t,P(n)]:null===t?function(){try{if(h)return P(h.randomBytes(p));var e=new Uint8Array(p);return(l.crypto||l.msCrypto).getRandomValues(e),P(e)}catch(t){e=l.navigator,e=e&&e.plugins;return[+new Date,l,e,l.screen,P(n)]}}():t,3),s),a=new g(s);return r.int32=function(){return 0|a.g(4)},r.quick=function(){return a.g(4)/4294967296},r.double=r,b(P(a.S),n),(e.pass||i||function(t,e,i,r){return r&&(r.S&&v(r,a),t.state=function(){return v(a,{})}),i?(o[f]=t,e):t})(r,t,"global"in e?e.global:this==o,e.state)},b(o.random(),n)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){for(var i=t.length,r=[],s=0;s<i;s+=1)r[s]=-t[s];return r}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var i=_typeof(t),r=_typeof(e);if("string"===i||"string"===r)return t+e;if(isNumerable(i,t)&&isNumerable(r,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,n=e.length,o=[];s<a||s<n;)("number"==typeof t[s]||t[s]instanceof Number)&&("number"==typeof e[s]||e[s]instanceof Number)?o[s]=t[s]+e[s]:o[s]=void 0===e[s]?t[s]:t[s]||e[s],s+=1;return o}return 0}var add=sum;function sub(t,e){var i=_typeof(t),r=_typeof(e);if(isNumerable(i,t)&&isNumerable(r,e))return(t="string"===i?parseInt(t,10):t)-(e="string"===r?parseInt(e,10):e);if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,n=e.length,o=[];s<a||s<n;)("number"==typeof t[s]||t[s]instanceof Number)&&("number"==typeof e[s]||e[s]instanceof Number)?o[s]=t[s]-e[s]:o[s]=void 0===e[s]?t[s]:t[s]||e[s],s+=1;return o}return 0}function mul(t,e){var i,r,s,a=_typeof(t),n=_typeof(e);if(isNumerable(a,t)&&isNumerable(n,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=t.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t[r]*e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t*e[r];return i}return 0}function div(t,e){var i,r,s,a=_typeof(t),n=_typeof(e);if(isNumerable(a,t)&&isNumerable(n,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=t.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t[r]/e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t/e[r];return i}return 0}function mod(t,e){return(t="string"==typeof t?parseInt(t,10):t)%(e="string"==typeof e?parseInt(e,10):e)}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){var r;return i<e&&(r=i,i=e,e=r),Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return Math.abs(t-(e=e||0));for(var i=Math.min(t.length,(e=e||helperLengthArray).length),r=0,s=0;s<i;s+=1)r+=Math.pow(e[s]-t[s],2);return Math.sqrt(r)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i=t[0],r=t[1],s=t[2],a=Math.max(i,r,s),n=Math.min(i,r,s),o=(a+n)/2;if(a===n)l=e=0;else{var h=a-n,l=.5<o?h/(2-a-n):h/(a+n);switch(a){case i:e=(r-s)/h+(r<s?6:0);break;case r:e=(s-i)/h+2;break;case s:e=(i-r)/h+4}e/=6}return[e,l,o,t[3]]}function hue2rgb(t,e,i){return i<0&&(i+=1),1<i&&--i,i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,r,s=t[0],a=t[1],n=t[2];return 0===a?i=r=e=n:(e=hue2rgb(a=2*n-(n=n<.5?n*(1+a):n+a-n*a),n,s+1/3),i=hue2rgb(a,n,s),r=hue2rgb(a,n,s-1/3)),[e,i,r,t[3]]}function linear(t,e,i,r,s){var a;if(void 0!==r&&void 0!==s||(r=e,s=i,e=0,i=1),i<e&&(a=i,i=e,e=a),t<=e)return r;if(i<=t)return s;var n=i===e?0:(t-e)/(i-e);if(!r.length)return r+(s-r)*n;for(var o=r.length,h=createTypedArray("float32",o),l=0;l<o;l+=1)h[l]=r[l]+(s[l]-r[l])*n;return h}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){for(var i=e.length,r=(t=t||createTypedArray("float32",i),createTypedArray("float32",i)),s=BMMath.random(),a=0;a<i;a+=1)r[a]=t[a]+s*(e[a]-t[a]);return r}return(t=void 0===t?0:t)+BMMath.random()*(e-t)}function createPath(t,e,i,r){for(var s,a,n=t.length,o=shapePool.newElement(),h=(o.setPathData(!!r,n),[0,0]),l=0;l<n;l+=1)s=e&&e[l]?e[l]:h,a=i&&i[l]?i[l]:h,o.setTripleAt(t[l][0],t[l][1],a[0]+t[l][0],a[1]+t[l][1],s[0]+t[l][0],s[1]+t[l][1],l,!0);return o}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property,inPoint=(thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0,elem.data.ip/elem.comp.globalData.frameRate),outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw||0,height=elem.data.sh||0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){for(var i=this.pv.length||1,r=createTypedArray("float32",i),s=Math.floor(5*time),a=0,n=0;a<s;){for(n=0;n<i;n+=1)r[n]+=-e+2*e*BMMath.random();a+=1}var o=5*time,h=o-Math.floor(o),l=createTypedArray("float32",i);if(1<i){for(n=0;n<i;n+=1)l[n]=this.pv[n]+r[n]+(-e+2*e*BMMath.random())*h;return l}return this.pv+r[0]+(-e+2*e*BMMath.random())*h}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){e=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],t=Math.atan2(e[0],Math.sqrt(e[1]*e[1]+e[2]*e[2]))/degToRads;return[-Math.atan2(e[1],e[2])/degToRads,t,0]}function easeOut(t,e,i,r,s){return applyEase(easeOutBez,t,e,i,r,s)}function easeIn(t,e,i,r,s){return applyEase(easeInBez,t,e,i,r,s)}function ease(t,e,i,r,s){return applyEase(easeInOutBez,t,e,i,r,s)}function applyEase(t,e,i,r,s,a){void 0===s?(s=i,a=r):e=(e-i)/(r-i),1<e?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){for(var o=s.length,h=createTypedArray("float32",o),l=0;l<o;l+=1)h[l]=(a[l]-s[l])*n+s[l];return h}return(a-s)*n+s}function nearestKey(t){var e,i,r,s=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,r=data.k[0].t;else{for(e=0;e<s-1;e+=1){if(t===data.k[e].t){i=e+1,r=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){r=t-data.k[e].t>data.k[e+1].t-t?(i=e+2,data.k[e+1].t):(i=e+1,data.k[e].t);break}}-1===i&&(i=e+1,r=data.k[e].t)}else r=i=0;var a={};return a.index=i,a.time=r/elem.comp.globalData.frameRate,a}function key(t){if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);for(var e={time:data.k[--t].t/elem.comp.globalData.frameRate,value:[]},i=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e,r=i.length,s=0;s<r;s+=1)e[s]=i[s],e.value[s]=i[s];return e}function framesToTime(t,e){return t/(e=e||elem.comp.globalData.frameRate)}function timeToFrames(t,e){return(t=t||0===t?t:time)*(e=e||elem.comp.globalData.frameRate)}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),($bm_transform=transform)&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect=effect||thisLayer(4),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.01),r=0;if(e.length){for(var s=0;s<e.length;s+=1)r+=Math.pow(i[s]-e[s],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.001);if(e.length)for(var r=createTypedArray("float32",e.length),s=0;s<e.length;s+=1)r[s]=(i[s]-e[s])/-.001;else r=(i-e)/-.001;return r},getValueAtTime:function(t){return(t=(t*=this.elem.globalData.frameRate)-this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function n(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var r,s,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[l.length-1].t;if(h<=p)return this.pv;if(i?s=p-(r=e?Math.abs(p-this.elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip)):((!e||e>l.length-1)&&(e=l.length-1),r=p-(s=l[l.length-1-e].t)),"pingpong"===t){if(Math.floor((h-s)/r)%2!=0)return this.getValueAtTime((r-(h-s)%r+s)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var m=this.getValueAtTime(s/this.comp.globalData.frameRate,0),f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),c=this.getValueAtTime(((h-s)%r+s)/this.comp.globalData.frameRate,0),d=Math.floor((h-s)/r);if(this.pv.length){for(n=(o=new Array(m.length)).length,a=0;a<n;a+=1)o[a]=(f[a]-m[a])*d+c[a];return o}return(f-m)*d+c}if("continue"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(u.length)).length,a=0;a<n;a+=1)o[a]=u[a]+(u[a]-y[a])*((h-p)/this.comp.globalData.frameRate)/5e-4;return o}return u+(h-p)/.001*(u-y)}}return this.getValueAtTime(((h-s)%r+s)/this.comp.globalData.frameRate,0)}function o(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var r,s,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[0].t;if(p<=h)return this.pv;if(i?s=p+(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p)):r=(s=l[e=!e||e>l.length-1?l.length-1:e].t)-p,"pingpong"===t){if(Math.floor((p-h)/r)%2==0)return this.getValueAtTime(((p-h)%r+p)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),f=this.getValueAtTime(s/this.comp.globalData.frameRate,0),c=this.getValueAtTime((r-(p-h)%r+p)/this.comp.globalData.frameRate,0),d=Math.floor((p-h)/r)+1;if(this.pv.length){for(n=(o=new Array(m.length)).length,a=0;a<n;a+=1)o[a]=c[a]-(f[a]-m[a])*d;return o}return c-(f-m)*d}if("continue"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(u.length)).length,a=0;a<n;a+=1)o[a]=u[a]+(u[a]-y[a])*(p-h)/.001;return o}return u+(u-y)*(p-h)/.001}}return this.getValueAtTime((r-((p-h)%r+p))/this.comp.globalData.frameRate,0)}function h(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;for(var i,r=this.comp.renderedFrame/this.comp.globalData.frameRate,s=r-t,a=1<e?(r+t-s)/(e-1):1,n=0,o=0,h=this.pv.length?createTypedArray("float32",this.pv.length):0;n<e;){if(i=this.getValueAtTime(s+n*a),this.pv.length)for(o=0;o<this.pv.length;o+=1)h[o]+=i[o];else h+=i;n+=1}if(this.pv.length)for(o=0;o<this.pv.length;o+=1)h[o]/=e;else h/=e;return h}var r=TransformPropertyFactory.getTransformProperty,l=(TransformPropertyFactory.getTransformProperty=function(t,e,i){t=r(t,e,i);return t.dynamicProperties.length?t.getValueAtTime=function(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e,i,r,s,a=this._transformCachingAtTime.v;return a.cloneFromProps(this.pre.props),this.appliedTransformations<1&&(i=this.a.getValueAtTime(t),a.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)),this.appliedTransformations<2&&(i=this.s.getValueAtTime(t),a.scale(i[0]*this.s.mult,i[1]*this.s.mult,i[2]*this.s.mult)),this.sk&&this.appliedTransformations<3&&(i=this.sk.getValueAtTime(t),e=this.sa.getValueAtTime(t),a.skewFromAxis(-i*this.sk.mult,e*this.sa.mult)),this.r&&this.appliedTransformations<4?(i=this.r.getValueAtTime(t),a.rotate(-i*this.r.mult)):!this.r&&this.appliedTransformations<4&&(e=this.rz.getValueAtTime(t),i=this.ry.getValueAtTime(t),r=this.rx.getValueAtTime(t),s=this.or.getValueAtTime(t),a.rotateZ(-e*this.rz.mult).rotateY(i*this.ry.mult).rotateX(r*this.rx.mult).rotateZ(-s[2]*this.or.mult).rotateY(s[1]*this.or.mult).rotateX(s[0]*this.or.mult)),this.data.p&&this.data.p.s?(e=this.px.getValueAtTime(t),i=this.py.getValueAtTime(t),this.data.p.z?(r=this.pz.getValueAtTime(t),a.translate(e*this.px.mult,i*this.py.mult,-r*this.pz.mult)):a.translate(e*this.px.mult,i*this.py.mult,0)):(s=this.p.getValueAtTime(t),a.translate(s[0]*this.p.mult,s[1]*this.p.mult,-s[2]*this.p.mult)),a}.bind(t):t.getValueAtTime=function(){return this.v.clone(new Matrix)}.bind(t),t.setGroupProperty=expressionHelpers.setGroupProperty,t},PropertyFactory.getProp);PropertyFactory.getProp=function(t,e,i,r,s){var r=l(t,e,i,r,s),a=(r.kf?r.getValueAtTime=expressionHelpers.getValueAtTime.bind(r):r.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(r),r.setGroupProperty=expressionHelpers.setGroupProperty,r.loopOut=n,r.loopIn=o,r.smooth=h,r.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(r),r.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(r),r.numKeys=1===e.a?e.k.length:0,r.propertyIndex=e.ix,0);return 0!==i&&(a=createTypedArray("float32",(1===e.a?e.k[0].s:e.k).length)),r._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:a},expressionHelpers.searchExpressions(t,e,r),r.k&&s.addDynamicProperty(r),r};var t=ShapePropertyFactory.getConstructorFunction(),e=ShapePropertyFactory.getKeyframedConstructorFunction();function i(){}i.prototype={vertices:function(t,e){this.k&&this.getValue();for(var i=this.v,r=(i=void 0!==e?this.getValueAtTime(e,0):i)._length,s=i[t],a=i.v,n=createSizedArray(r),o=0;o<r;o+=1)n[o]="i"===t||"o"===t?[s[o][0]-a[o][0],s[o][1]-a[o][1]]:[s[o][0],s[o][1]];return n},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){for(var i=this.v,e=(void 0!==e&&(i=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i)),this._segmentsLength),r=e.lengths,s=e.totalLength*t,a=0,n=r.length,o=0;a<n;){if(o+r[a].addedLength>s){var h=a,l=i.c&&a===n-1?0:a+1,p=(s-o)/r[a].addedLength,m=bez.getPointInSegment(i.v[h],i.v[l],i.o[h],i.i[l],p,r[a]);break}o+=r[a].addedLength,a+=1}return m=m||(i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]])},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var r=this.pointOnPath(t,e),t=this.pointOnPath(t+.001,e),e=t[0]-r[0],t=t[1]-r[1],r=Math.sqrt(Math.pow(e,2)+Math.pow(t,2));return 0===r?[0,0]:"tangent"===i?[e/r,t/r]:[-t/r,e/r]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([i],t),extendPrototype([i],e),e.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),(t=(t*=this.elem.globalData.frameRate)-this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},e.prototype.initiateExpression=ExpressionManager.initiateExpression;var a=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,r,s){r=a(t,e,i,r,s);return r.propertyIndex=e.ix,r.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,r):4===i&&expressionHelpers.searchExpressions(t,e.ks,r),r.k&&t.addDynamicProperty(r),r}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var i,e=this.calculateExpression(e);return t.t!==e?(this.copyData(i={},t),i.t=e.toString(),i.__complete=!1,i):t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}function SVGTintFilter(t,e,i,r,s){this.filterManager=e;e=createNS("feColorMatrix"),e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.setAttribute("result",r+"_tint_1"),t.appendChild(e),(e=createNS("feColorMatrix")).setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result",r+"_tint_2"),t.appendChild(e),this.matrixFilter=e,e=this.createMergeNode(r,[s,r+"_tint_1",r+"_tint_2"]);t.appendChild(e)}function SVGFillFilter(t,e,i,r){this.filterManager=e;e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result",r),t.appendChild(e),this.matrixFilter=e}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,r){this.filterManager=e;e=createNS("feColorMatrix"),e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(e),e=createNS("feComponentTransfer"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("result",r),this.matrixFilter=e,r=createNS("feFuncR"),r.setAttribute("type","table"),e.appendChild(r),this.feFuncR=r,r=createNS("feFuncG"),r.setAttribute("type","table"),e.appendChild(r),this.feFuncG=r,r=createNS("feFuncB");r.setAttribute("type","table"),e.appendChild(r),this.feFuncB=r,t.appendChild(e)}function SVGProLevelsFilter(t,e,i,r){this.filterManager=e;var e=this.filterManager.effectElements,s=createNS("feComponentTransfer");(e[10].p.k||0!==e[10].p.v||e[11].p.k||1!==e[11].p.v||e[12].p.k||1!==e[12].p.v||e[13].p.k||0!==e[13].p.v||e[14].p.k||1!==e[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(e[17].p.k||0!==e[17].p.v||e[18].p.k||1!==e[18].p.v||e[19].p.k||1!==e[19].p.v||e[20].p.k||0!==e[20].p.v||e[21].p.k||1!==e[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(e[24].p.k||0!==e[24].p.v||e[25].p.k||1!==e[25].p.v||e[26].p.k||1!==e[26].p.v||e[27].p.k||0!==e[27].p.v||e[28].p.k||1!==e[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(e[31].p.k||0!==e[31].p.v||e[32].p.k||1!==e[32].p.v||e[33].p.k||1!==e[33].p.v||e[34].p.k||0!==e[34].p.v||e[35].p.k||1!==e[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s)),(e[3].p.k||0!==e[3].p.v||e[4].p.k||1!==e[4].p.v||e[5].p.k||1!==e[5].p.v||e[6].p.k||0!==e[6].p.v||e[7].p.k||1!==e[7].p.v)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",r),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(t,e,i,r,s){var a=e.container.globalData.renderConfig.filterSize,n=e.data.fs||a,n=(t.setAttribute("x",n.x||a.x),t.setAttribute("y",n.y||a.y),t.setAttribute("width",n.width||a.width),t.setAttribute("height",n.height||a.height),this.filterManager=e,createNS("feGaussianBlur")),a=(n.setAttribute("in","SourceAlpha"),n.setAttribute("result",r+"_drop_shadow_1"),n.setAttribute("stdDeviation","0"),this.feGaussianBlur=n,t.appendChild(n),createNS("feOffset")),e=(a.setAttribute("dx","25"),a.setAttribute("dy","0"),a.setAttribute("in",r+"_drop_shadow_1"),a.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=a,t.appendChild(a),createNS("feFlood")),n=(e.setAttribute("flood-color","#00ff00"),e.setAttribute("flood-opacity","1"),e.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=e,t.appendChild(e),createNS("feComposite")),a=(n.setAttribute("in",r+"_drop_shadow_3"),n.setAttribute("in2",r+"_drop_shadow_2"),n.setAttribute("operator","in"),n.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(n),this.createMergeNode(r,[r+"_drop_shadow_4",s]));t.appendChild(a)}SVGComposableEffect.prototype={createMergeNode:function(t,e){var i,r,s=createNS("feMerge");for(s.setAttribute("result",t),r=0;r<e.length;r+=1)(i=createNS("feMergeNode")).setAttribute("in",e[r]),s.appendChild(i),s.appendChild(i);return s}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100,this.matrixFilter.setAttribute("values",e[0]-t[0]+" 0 0 0 "+t[0]+" "+(e[1]-t[1])+" 0 0 0 "+t[1]+" "+(e[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 "+i+" 0"))},SVGFillFilter.prototype.renderFrame=function(t){var e;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[2].p.v,e=this.filterManager.effectElements[6].p.v,this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+e+" 0"))},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,r,s=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,i=0):r=(i=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<r;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),n=createElementID(),o=(a.setAttribute("id",n),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem.globalData.defs.appendChild(a),createNS("g"));for(o.setAttribute("mask","url("+getLocationHref()+"#"+n+")");s[0];)o.appendChild(s[0]);this.elem.layerElement.appendChild(o),this.masker=a,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(s=this.elem.layerElement.children||this.elem.layerElement.childNodes;s.length;)this.elem.layerElement.removeChild(s[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();for(var e,i,r=this.paths.length,s=0;s<r;s+=1)if(-1!==this.paths[s].m&&(a=this.elem.maskManager.viewData[this.paths[s].m],e=this.paths[s].p,(t||this.filterManager._mdf||a.prop._mdf)&&e.setAttribute("d",a.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||a.prop._mdf)){if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){for(var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),n=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=e.getTotalLength(),h="0 0 0 "+o*a+" ",l=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(o*(n-a)/l),m=0;m<p;m+=1)h+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";h+="0 "+10*o+" 0 0"}else h="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;e.setAttribute("stroke-dasharray",h)}(t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),1!==this.filterManager.effectElements[10].p.v&&2!==this.filterManager.effectElements[10].p.v||(t||this.filterManager.effectElements[3].p._mdf)&&(i=this.filterManager.effectElements[3].p.v,this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*i[0])+","+bmFloor(255*i[1])+","+bmFloor(255*i[2])+")"))},SVGTritoneFilter.prototype.renderFrame=function(t){var e,i,r,s;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,i=(s=this.filterManager.effectElements[2].p.v)[0]+" "+e[0]+" "+t[0],r=s[1]+" "+e[1]+" "+t[1],s=s[2]+" "+e[2]+" "+t[2],this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",r),this.feFuncB.setAttribute("tableValues",s))},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){t=createNS(t);return t.setAttribute("type","table"),e.appendChild(t),t},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,r,s){for(var a,n=0,o=Math.min(t,e),h=Math.max(t,e),l=Array.call(null,{length:256}),p=0,m=s-r,f=e-t;n<=256;)a=(a=n/256)<=o?f<0?s:r:h<=a?f<0?r:s:r+m*Math.pow((a-t)/f,1/i),l[p]=a,p+=1,n+=256/255;return l.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&(i=this.filterManager.effectElements,this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e)))},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),(t||this.filterManager.effectElements[0].p._mdf)&&(i=this.filterManager.effectElements[0].p.v,this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*i[0]),Math.round(255*i[1]),Math.round(255*i[2])))),(t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),(t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf)&&(i=this.filterManager.effectElements[3].p.v,t=(this.filterManager.effectElements[2].p.v-90)*degToRads,e=i*Math.cos(t),i=i*Math.sin(t),this.feOffset.setAttribute("dx",e),this.feOffset.setAttribute("dy",i)))};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,(this.elem=i).matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(t,e,i,r){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;e=createNS("feGaussianBlur");e.setAttribute("result",r),t.appendChild(e),this.feGaussianBlur=e}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var r,s=i.children,a=0,n=s.length;a<n&&s[a]!==t.layerElement;)a+=1;a<=n-2&&(r=s[a+1]);var o=createNS("use");o.setAttribute("href","#"+e),r?i.insertBefore(o,r):i.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){var i,r,s,a;this.findSymbol(e)||(i=createElementID(),(r=createNS("mask")).setAttribute("id",e.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e),(a=t.globalData.defs).appendChild(r),(s=createNS("symbol")).setAttribute("id",i),this.replaceInParent(e,i),s.appendChild(e.layerElement),a.appendChild(s),(a=createNS("use")).setAttribute("href","#"+i),r.appendChild(a),e.data.hd=!1,e.show()),t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,r=e.length;i<r;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){var e;(t||this.filterManager._mdf)&&(t=.3*this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,this.feGaussianBlur.setAttribute("stdDeviation",(3==e?0:t)+" "+(2==e?0:t)),e=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate",this.feGaussianBlur.setAttribute("edgeMode",e))},registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),setExpressionsPlugin(Expressions),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie});var PremiumLottieHandler=function(t,r){t=t.find(".premium-lottie-animation");t.length&&t.each(function(t,e){var i=r(e);i.data("box-tilt")&&(e=i.data("box-tilt-reverse"),UniversalTilt.init({elements:i.parent(),settings:{reverse:e},callbacks:{onMouseLeave:function(t){t.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0)"},onDeviceMove:function(t){t.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0.3)"}}})),elementorFrontend.waypoint(i,function(){(instance=new premiumLottieAnimations(i)).init()})})},PremiumLottieAddonHandler=function(t){if(t.hasClass("premium-lottie-yes")){var f=t,e=f.data("id"),i={},r=f.find("#premium-lottie-"+e),c=elementorFrontend.isEditMode()&&0<r.length,r=c?f.find("#premium-lottie-"+e):f;if(!(i=function(t){t=t.data("pa-lottie");if(!t)return!1;if(i.lottieLayers=[],$.each(t,function(t,e){i.lottieLayers.push(e)}),0!==Object.keys(i).length)return i}(r)))return!1;elementorFrontend.waypoint(t,function(){var p,m;p=elementorFrontend.getCurrentDeviceMode(),c&&f.find(".premium-lottie-layer svg, .premium-lottie-layer canvas").remove(),m="",$.each(i.lottieLayers,function(t,i){var e,a,r,s,n,o,h;function l(t){var e,i,r,s=$(window).outerHeight();"function"==typeof a[0].getBoundingClientRect&&(r=0<=(e=a[0].getBoundingClientRect()).top&&e.top<s,i=0<e.bottom&&e.bottom<=s,r=r&&i,(r=e.top<0&&e.bottom>s||r)?h.play():h.pause())}i.lottie_url="url"===i.source?i.lottie_url:i.lottie_file.url,""!==i.lottie_url&&i.show_layer_on.includes(p)&&(e=i.lottie_renderer,c||(m+='<div class="premium-lottie-layer premium-lottie-animation premium-lottie-'+e+" elementor-repeater-item-"+i._id+'"></div>',f.prepend(m),m=""),a=jQuery(".elementor-repeater-item-"+i._id),r=i.lottie_loop,s=i.lottie_reverse,"play"!==(n=i.hover_action)&&(o=i.start_on_visible),h=lottie.loadAnimation({wrapper:a[0],renderer:e||"svg",loop:!!r,path:i.lottie_url,autoplay:!0}),i.lottie_speed&&1!==i.lottie_speed&&h.setSpeed(i.lottie_speed),s&&h.setDirection(-1),h.addEventListener("DOMLoaded",function(){var t,e;("play"===n||"play"!==n&&o)&&(h.pause(),"play"!==n&&(l(),$(window).on("scroll",l))),"none"!==n&&a.hover(function(){"play"===n?h.play():"pause"===n&&h.pause()},function(){"play"===n?h.pause():"pause"===n&&h.play()}),"yes"!==i.premium_lottie_parallax&&!i.animate_on_scroll||(t=[],"yes"===i.premium_lottie_parallax&&t.push("translateY"),i.animate_on_scroll&&(h.pause(),t.push("animate")),e={elType:"SECTION",effects:t},t.includes("animate")&&(e.animate={speed:i.premium_lottie_animate_speed.size,range:{start:i.premium_lottie_animate_view.sizes.start,end:i.premium_lottie_animate_view.sizes.end}}),t.includes("translateY")&&(e.vscroll={speed:i.premium_lottie_parallax_speed.size||4,direction:i.premium_lottie_parallax_direction,range:{start:i.premium_lottie_parallax_view.sizes.start,end:i.premium_lottie_parallax_view.sizes.end}}),new premiumEffects(a[0],e,h).init())}))})}),c&&new premiumEditorBehavior(f,{repeater:"premium_lottie_repeater",item:".premium-lottie-layer",hor:"premium_lottie_hor",ver:"premium_lottie_ver",width:"premium_lottie_size",tab:"section_premium_lottie",offset:0,widgets:["drag"]}).init()}};window.premiumLottieAnimations=function(h){var l=null,l=h.hasClass("premium-lottie-animation")?h:h.find(".premium-lottie-animation");this.init=function(){var t,e,r,i,s,a,n,o;l.data("initialized")||(l.data("initialized",!0),t=l.data("lottie-loop"),e=l.data("lottie-reverse"),r=l.data("lottie-hover"),i=l.data("lottie-speed"),s=l.data("lottie-scroll"),a=l.data("lottie-viewport"),n=l.data("lottie-render"),o=lottie.loadAnimation({container:l[0],renderer:n||"svg",loop:!!t,path:l.data("lottie-url"),autoplay:!0}),e&&o.setDirection(-1),i&&1!==i&&o.setSpeed(i),o.addEventListener("DOMLoaded",function(){var t,e,i;(s||a)&&(t=l.data("scroll-speed"),e=l.data("scroll-start"),i=l.data("scroll-end"),o.pause(),new premiumEffects(l[0],{elType:"SECTION",animate:{speed:a?"viewport":t,range:{start:e,end:i}},effects:["animate"]},o).init()),r&&(o.pause(),h.hover(function(){o.play()},function(){o.pause()}))}))}},$(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/widget",PremiumLottieHandler),elementorFrontend.hooks.addAction("frontend/element_ready/section",PremiumLottieAddonHandler),elementorFrontend.hooks.addAction("frontend/element_ready/container",PremiumLottieAddonHandler)}),window.premiumEffects=function(r,t,s){var a=this,i=$(r),e=i.data("scrolls"),n=t,o=n.elType;a.elementRules={},a.init=function(){e||"SECTION"===o?n.effects.length&&(a.setDefaults(),elementorFrontend.elements.$window.on("scroll load",a.initScroll)):elementorFrontend.elements.$window.off("scroll load",a.initScroll)},a.setDefaults=function(){n.defaults={},n.defaults.axis="y"},a.getPercents=function(){var t=a.getDimensions();return elementTopWindowPoint=t.elementTop-pageYOffset,elementEntrancePoint=elementTopWindowPoint-innerHeight,passedRangePercents=100/t.range*(-1*elementEntrancePoint)},a.initScroll=function(){a.initScrollEffects()},a.initScrollEffects=function(){var t=a.getPercents(),e=i.closest(".elementor-element").data("settings");e&&"fixed"===e._position&&(t=a.getLottieViewportHeightPercentage()),n.effects.includes("animate")&&a.animate(t,n.animate),n.effects.includes("translateY")&&a.transform("translateY",t,n.vscroll)},a.getLottieViewportHeightPercentage=function(){var t=n.animate.range,e=window.innerHeight,i=t.start||0,t=t.end||0,e=e||document.documentElement.scrollHeight-document.documentElement.clientHeight,i=e*i/100;return(document.documentElement.scrollTop+document.body.scrollTop+i)/(e+i+e*t/100)*100},a.getDimensions=function(){var t=i.offset(),t={elementHeight:i.outerHeight(),elementWidth:i.outerWidth(),elementTop:t.top,elementLeft:t.left};return t.range=t.elementHeight+innerHeight,t},a.getStep=function(t,e){return-(t-50)*e.speed},a.animate=function(t,e){var i=s.totalFrames,i=(e.range&&(e.range.start>t&&(t=e.range.start),e.range.end<t&&(t=e.range.end)),t/100*i);"viewport"===e.speed?e.range.start!==t&&e.range.end!==t?s.play():s.pause():s.goToAndStop(i,!0)},a.transform=function(t,e,i){"down"===i.direction&&(e=100-e),i.range&&(i.range.start>e&&(e=i.range.start),i.range.end<e&&(e=i.range.end)),n.defaults.unit="px",a.updateElement("transform",t,a.getStep(e,i)+n.defaults.unit)},a.updateElement=function(t,e,i){a.elementRules[t]||(a.elementRules[t]={}),a.elementRules[t][e]||(a.elementRules[t][e]=!0,a.updateElementRule(t)),r.style.setProperty("--"+e,i)},a.updateElementRule=function(t){var e="";$.each(a.elementRules[t],function(t){e+=t+"(var(--"+t+"))"}),i.css(t,e)}}}(jQuery);
|
1 |
+
!function($){"undefined"!=typeof navigator&&function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).lottie=e()}(this,function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){for(var i,r=t.length,s=0;s<r;s+=1)for(var a in i=t[s].prototype)Object.prototype.hasOwnProperty.call(i,a)&&(e.prototype[a]=i[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(t){for(var e=this.audios.length,i=0;i<e;i+=1)this.audios[i].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function i(t,e){var i,r=0,s=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(r=0;r<e;r+=1)s.push(i);return s}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):i(t,e)}:i}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var subframeEnabled=!0,expressionsPlugin=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){}!function(){for(var t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],e=t.length,i=0;i<e;i+=1)BMMath[t[i]]=Math[t[i]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){for(var e=createSizedArray(t.length),i=t.length,r=0;r<i;r+=1)e[r]=Math.abs(t[r]);return e}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){if(_shouldRoundValues)return Math.round(t)}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,i,r){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=r<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,r){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=r<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=function(){var t=0;return function(){return idPrefix$1+"__lottie_element_"+(t+=1)}}();function HSVtoRGB(t,e,i){var r,s,a,n=Math.floor(6*t),t=6*t-n,o=i*(1-e),h=i*(1-t*e),l=i*(1-(1-t)*e);switch(n%6){case 0:r=i,s=l,a=o;break;case 1:r=h,s=i,a=o;break;case 2:r=o,s=i,a=l;break;case 3:r=o,s=h,a=i;break;case 4:r=l,s=o,a=i;break;case 5:r=i,s=o,a=h}return[r,s,a]}function RGBtoHSV(t,e,i){var r,s=Math.max(t,e,i),a=Math.min(t,e,i),n=s-a,o=0===s?0:n/s,h=s/255;switch(s){case a:r=0;break;case t:r=e-i+n*(e<i?6:0),r/=6*n;break;case e:r=i-t+2*n,r/=6*n;break;case i:r=t-e+4*n,r/=6*n}return[r,o,h]}function addSaturationToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[1]+=e,1<t[1]?t[1]=1:t[1]<=0&&(t[1]=0),HSVtoRGB(t[0],t[1],t[2])}function addBrightnessToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[2]+=e,1<t[2]?t[2]=1:t[2]<0&&(t[2]=0),HSVtoRGB(t[0],t[1],t[2])}function addHueToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[0]+=e/360,1<t[0]?--t[0]:t[0]<0&&(t[0]+=1),HSVtoRGB(t[0],t[1],t[2])}var rgbToHex=function(){for(var t,r=[],e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(t,e,i){return"#"+r[t=t<0?0:t]+r[e=e<0?0:e]+r[i=i<0?0:i]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var dataManager=function(){var i,r,s=1,a=[],n={onmessage:function(){},postMessage:function(t){i({data:t})}},o={postMessage:function(t){n.onmessage({data:t})}};function h(){var t,e;r||(t=function(e){function t(){function p(t,e){for(var i,r,s,a=t.length,n=0;n<a;n+=1)if("ks"in(s=t[n])&&!s.completed){if(s.completed=!0,s.tt&&(t[n-1].td=s.tt),s.hasMask)for(var o=s.masksProperties,h=o.length,l=0;l<h;l+=1)if(o[l].pt.k.i)c(o[l].pt.k);else for(r=o[l].pt.k.length,i=0;i<r;i+=1)o[l].pt.k[i].s&&c(o[l].pt.k[i].s[0]),o[l].pt.k[i].e&&c(o[l].pt.k[i].e[0]);0===s.ty?(s.layers=m(s.refId,e),p(s.layers,e)):4===s.ty?f(s.shapes):5===s.ty&&0===(s=s).t.a.length&&0 in s.t.p}}function m(t,e){t=function(t,e){for(var i=0,r=e.length;i<r;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return t?t.layers.__used?JSON.parse(JSON.stringify(t.layers)):(t.layers.__used=!0,t.layers):null}function f(t){for(var e,i,r=t.length-1;0<=r;--r)if("sh"===t[r].ty)if(t[r].ks.k.i)c(t[r].ks.k);else for(i=t[r].ks.k.length,e=0;e<i;e+=1)t[r].ks.k[e].s&&c(t[r].ks.k[e].s[0]),t[r].ks.k[e].e&&c(t[r].ks.k[e].e[0]);else"gr"===t[r].ty&&f(t[r].it)}function c(t){for(var e=t.i.length,i=0;i<e;i+=1)t.i[i][0]+=t.v[i][0],t.i[i][1]+=t.v[i][1],t.o[i][0]+=t.v[i][0],t.o[i][1]+=t.v[i][1]}function s(t,e){e=e?e.split("."):[100,100,100];return t[0]>e[0]||!(e[0]>t[0])&&(t[1]>e[1]||!(e[1]>t[1])&&(t[2]>e[2]||(e[2],void t[2])))}r=[4,4,14];var r,a=function(t){if(s(r,t.v)&&(n(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&n(t.assets[i].layers)};function n(t){for(var e,i,r=t.length,s=0;s<r;s+=1)5===t[s].ty&&(e=t[s],i=void 0,i=e.t.d,e.t.d={k:[{s:i,t:0}]})}o=[4,7,99];var o,h,l=function(t){if(t.chars&&!s(o,t.v))for(var e=t.chars.length,i=0;i<e;i+=1){var r=t.chars[i];r.data&&r.data.shapes&&(f(r.data.shapes),r.data.ip=0,r.data.op=99999,r.data.st=0,r.data.sr=1,r.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[i].t||(r.data.shapes.push({ty:"no"}),r.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}},d=(h=[5,7,15],function(t){if(s(h,t.v)&&(u(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&u(t.assets[i].layers)});function u(t){for(var e,i=t.length,r=0;r<i;r+=1)5===t[r].ty&&("number"==typeof(e=(e=t[r]).t.p).a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r}))}y=[4,1,9];var y,g=function(t){if(s(y,t.v)&&(v(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&v(t.assets[i].layers)};function v(t){for(var e=t.length,i=0;i<e;i+=1)4===t[i].ty&&!function t(e){for(var i,r,s=e.length,a=0;a<s;a+=1)if("gr"===e[a].ty)t(e[a].it);else if("fl"===e[a].ty||"st"===e[a].ty)if(e[a].c.k&&e[a].c.k[0].i)for(r=e[a].c.k.length,i=0;i<r;i+=1)e[a].c.k[i].s&&(e[a].c.k[i].s[0]/=255,e[a].c.k[i].s[1]/=255,e[a].c.k[i].s[2]/=255,e[a].c.k[i].s[3]/=255),e[a].c.k[i].e&&(e[a].c.k[i].e[0]/=255,e[a].c.k[i].e[1]/=255,e[a].c.k[i].e[2]/=255,e[a].c.k[i].e[3]/=255);else e[a].c.k[0]/=255,e[a].c.k[1]/=255,e[a].c.k[2]/=255,e[a].c.k[3]/=255}(t[i].shapes)}b=[4,4,18];var b,P=function(t){if(s(b,t.v)&&(E(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&E(t.assets[i].layers)};function E(t){for(var e,i,r,s=t.length,a=0;a<s;a+=1){if((e=t[a]).hasMask)for(var n=e.masksProperties,o=n.length,h=0;h<o;h+=1)if(n[h].pt.k.i)n[h].pt.k.c=n[h].cl;else for(r=n[h].pt.k.length,i=0;i<r;i+=1)n[h].pt.k[i].s&&(n[h].pt.k[i].s[0].c=n[h].cl),n[h].pt.k[i].e&&(n[h].pt.k[i].e[0].c=n[h].cl);4===e.ty&&!function t(e){for(var i,r,s=e.length-1;0<=s;--s)if("sh"===e[s].ty)if(e[s].ks.k.i)e[s].ks.k.c=e[s].closed;else for(r=e[s].ks.k.length,i=0;i<r;i+=1)e[s].ks.k[i].s&&(e[s].ks.k[i].s[0].c=e[s].closed),e[s].ks.k[i].e&&(e[s].ks.k[i].e[0].c=e[s].closed);else"gr"===e[s].ty&&t(e[s].it)}(e.shapes)}}var t={};return t.completeData=function(t){if(!t.__complete){g(t),a(t),l(t),d(t),P(t),p(t.layers,t.assets);var e=t.chars,i=t.assets;if(e)for(var r=0,s=e.length,r=0;r<s;r+=1)1===e[r].t&&(e[r].data.layers=m(e[r].data.refId,i),p(e[r].data.layers,i));t.__complete=!0}},t.checkColors=g,t.checkChars=l,t.checkPathProperties=d,t.checkShapes=P,t.completeLayers=p,t}function n(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}var i;o.dataManager||(o.dataManager=t()),o.assetLoader||(o.assetLoader={load:function(e,i,t,r){var s,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)s=n(a),t(s);else try{s=n(a),t(s)}catch(t){r&&r(t)}};try{a.open("GET",e,!0)}catch(t){a.open("GET",i+"/"+e,!0)}a.send()}}),"loadAnimation"===e.data.type?o.assetLoader.load(e.data.path,e.data.fullPath,function(t){o.dataManager.completeData(t),o.postMessage({id:e.data.id,payload:t,status:"success"})},function(){o.postMessage({id:e.data.id,status:"error"})}):"complete"===e.data.type?(i=e.data.animation,o.dataManager.completeData(i),o.postMessage({id:e.data.id,payload:i,status:"success"})):"loadData"===e.data.type&&o.assetLoader.load(e.data.path,e.data.fullPath,function(t){o.postMessage({id:e.data.id,payload:t,status:"success"})},function(){o.postMessage({id:e.data.id,status:"error"})})},(r=window.Worker&&window.Blob&&getWebWorker()?(e=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),e=URL.createObjectURL(e),new Worker(e)):(i=t,n)).onmessage=function(t){var t=t.data,e=t.id,i=a[e];a[e]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function l(t,e){var i="processId_"+(s+=1);return a[i]={onComplete:t,onError:e},i}return{loadAnimation:function(t,e,i){h(),e=l(e,i),r.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:e})},loadData:function(t,e,i){h(),e=l(e,i),r.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:e})},completeAnimation:function(t,e,i){h(),e=l(e,i),r.postMessage({type:"complete",animation:t,id:e})}}}(),ImagePreloader=function(){(t=createTag("canvas")).width=1,t.height=1,(e=t.getContext("2d")).fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1);var t,e,s=t;function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(t,e,i){var r="";return r=t.e?t.p:e?e+(e=-1!==(e=t.p).indexOf("images/")?e.split("/")[1]:e):(r=i,(r+=t.u||"")+t.p)}function n(){this._imageLoaded=i.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=function(t){var e=0,i=setInterval(function(){(t.getBBox().width||500<e)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}.bind(this),this.createFootageData=function(t){var e={assetData:t},t=a(t,this.assetsPath,this.path);return dataManager.loadData(t,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return n.prototype={loadAssets:function(t,e){this.imagesLoadedCb=e;for(var i=t.length,r=0;r<i;r+=1)t[r].layers||(t[r].t&&"seq"!==t[r].t?3===t[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[r]))):(this.totalImages+=1,this.images.push(this._createImageData(t[r]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(t){var e=a(t,this.assetsPath,this.path),i=createTag("img"),r=(i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){r.img=s,this._imageLoaded()}.bind(this),!1),i.src=e,{img:i,assetData:t});return r},createImageData:function(t){var e=a(t,this.assetsPath,this.path),i=createNS("image"),r=(isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){r.img=s,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i),{img:i,assetData:t});return r},imageLoaded:i,footageLoaded:r,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},n}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],r=0;r<i.length;r+=1)i[r](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,r=this._cbs[t].length;i<r;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),--i,--r),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(e){for(var t=[],i=0;i<e.length;i+=1){var r=e[i],r={time:r.tm,duration:r.dr};try{r.payload=JSON.parse(e[i].cm)}catch(t){try{r.payload=function(t){for(var e,i=t.split("\r\n"),r={},s=0,a=0;a<i.length;a+=1)2===(e=i[a].split(":")).length&&(r[e[0]]=e[1].trim(),s+=1);if(0===s)throw new Error;return r}(e[i].cm)}catch(t){r.payload={name:e[i].cm}}}t.push(r)}return t},ProjectInterface=function(){function e(t){this.compositions.push(t)}return function(){function t(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function _typeof$4(t){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0)},animationManager=(extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg",i=(t.animType?e=t.animType:t.renderer&&(e=t.renderer),getRenderer(e));this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name||"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){var e={wrapper:t,animationData:e=e&&"object"!==_typeof$4(e)?JSON.parse(e):e},t=t.attributes,i=(e.path=t.getNamedItem("data-animation-path")?t.getNamedItem("data-animation-path").value:t.getNamedItem("data-bm-path")?t.getNamedItem("data-bm-path").value:t.getNamedItem("bm-path")?t.getNamedItem("bm-path").value:"",e.animType=t.getNamedItem("data-anim-type")?t.getNamedItem("data-anim-type").value:t.getNamedItem("data-bm-type")?t.getNamedItem("data-bm-type").value:t.getNamedItem("bm-type")?t.getNamedItem("bm-type").value:t.getNamedItem("data-bm-renderer")?t.getNamedItem("data-bm-renderer").value:t.getNamedItem("bm-renderer")?t.getNamedItem("bm-renderer").value:"canvas",t.getNamedItem("data-anim-loop")?t.getNamedItem("data-anim-loop").value:t.getNamedItem("data-bm-loop")?t.getNamedItem("data-bm-loop").value:t.getNamedItem("bm-loop")?t.getNamedItem("bm-loop").value:""),i=("false"===i?e.loop=!1:"true"===i?e.loop=!0:""!==i&&(e.loop=parseInt(i,10)),t.getNamedItem("data-anim-autoplay")?t.getNamedItem("data-anim-autoplay").value:t.getNamedItem("data-bm-autoplay")?t.getNamedItem("data-bm-autoplay").value:!t.getNamedItem("bm-autoplay")||t.getNamedItem("bm-autoplay").value);e.autoplay="false"!==i,e.name=t.getNamedItem("data-name")?t.getNamedItem("data-name").value:t.getNamedItem("data-bm-name")?t.getNamedItem("data-bm-name").value:t.getNamedItem("bm-name")?t.getNamedItem("bm-name").value:"","false"===(t.getNamedItem("data-anim-prerender")?t.getNamedItem("data-anim-prerender").value:t.getNamedItem("data-bm-prerender")?t.getNamedItem("data-bm-prerender").value:t.getNamedItem("bm-prerender")?t.getNamedItem("bm-prerender").value:"")&&(e.prerender=!1),this.setParams(e)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));for(var e,i=this.animationData.layers,r=i.length,s=t.layers,a=s.length,n=0;n<a;n+=1)for(e=0;e<r;){if(i[e].id===s[n].id){i[e]=s[n];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,e=0;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);t=t.shift(),this.timeCompleted=t.time*this.frameRate,t=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(t,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){var t;!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()&&(this.isLoaded=!0,(t=getExpressionsPlugin())&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){i&&this.name!==i||(i=Number(t),isNaN(i)?(i=this.getMarkerData(t))&&this.goToAndStop(i.time,!0):e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,i){var r;i&&this.name!==i||(r=Number(t),isNaN(r)?(t=this.getMarkerData(t))&&(t.duration?this.playSegments([t.time,t.time+t.duration],!0):this.goToAndStop(t.time,!0)):this.goToAndStop(r,e,i),this.play())},AnimationItem.prototype.advanceTime=function(t){var e;!0!==this.isPaused&&!1!==this.isLoaded&&(e=!1,(t=this.currentRawFrame+t*this.frameModifier)>=this.totalFrames-1&&0<this.frameModifier?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(e=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(e=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),e&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete")))},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(0<this.frameModifier&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0]))for(var i=t.length,r=0;r<i;r+=1)this.segments.push(t[r]);else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e,i="";return i=t.e?t.p:this.assetsPath?(-1!==(e=t.p).indexOf("images/")&&(e=e.split("/")[1]),this.assetsPath+e):(i=this.path,(i+=t.u||"")+t.p)},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){t=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(t){t=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},function(){var t={},s=[],r=0,a=0,n=0,o=!0,h=!1;function i(t){for(var e=0,i=t.target;e<a;)s[e].animation===i&&(s.splice(e,1),--e,--a,i.isPaused||m()),e+=1}function l(t,e){if(!t)return null;for(var i=0;i<a;){if(s[i].elem===t&&null!==s[i].elem)return s[i].animation;i+=1}var r=new AnimationItem;return f(r,t),r.setData(t,e),r}function p(){n+=1,d()}function m(){--n}function f(t,e){t.addEventListener("destroy",i),t.addEventListener("_active",p),t.addEventListener("_idle",m),s.push({elem:e,animation:t}),a+=1}function c(t){for(var e=t-r,i=0;i<a;i+=1)s[i].animation.advanceTime(e);r=t,n&&!h?window.requestAnimationFrame(c):o=!0}function e(t){r=t,window.requestAnimationFrame(c)}function d(){!h&&n&&o&&(window.requestAnimationFrame(e),o=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return f(e,null),e.setParams(t),e},t.setSpeed=function(t,e){for(var i=0;i<a;i+=1)s[i].animation.setSpeed(t,e)},t.setDirection=function(t,e){for(var i=0;i<a;i+=1)s[i].animation.setDirection(t,e)},t.play=function(t){for(var e=0;e<a;e+=1)s[e].animation.play(t)},t.pause=function(t){for(var e=0;e<a;e+=1)s[e].animation.pause(t)},t.stop=function(t){for(var e=0;e<a;e+=1)s[e].animation.stop(t)},t.togglePause=function(t){for(var e=0;e<a;e+=1)s[e].animation.togglePause(t)},t.searchAnimations=function(t,e,i){for(var r,s=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=s.length,n=0;n<a;n+=1)i&&s[n].setAttribute("data-bm-type",i),l(s[n],t);e&&0===a&&(i=i||"svg",(e=document.getElementsByTagName("body")[0]).innerText="",(r=createTag("div")).style.width="100%",r.style.height="100%",r.setAttribute("data-bm-type",i),e.appendChild(r),l(r,t))},t.resize=function(){for(var t=0;t<a;t+=1)s[t].animation.resize()},t.goToAndStop=function(t,e,i){for(var r=0;r<a;r+=1)s[r].animation.goToAndStop(t,e,i)},t.destroy=function(t){for(var e=a-1;0<=e;--e)s[e].animation.destroy(t)},t.freeze=function(){h=!0},t.unfreeze=function(){h=!1,d()},t.setVolume=function(t,e){for(var i=0;i<a;i+=1)s[i].animation.setVolume(t,e)},t.mute=function(t){for(var e=0;e<a;e+=1)s[e].animation.mute(t)},t.unmute=function(t){for(var e=0;e<a;e+=1)s[e].animation.unmute(t)},t.getRegisteredAnimations=function(){for(var t=s.length,e=[],i=0;i<t;i+=1)e.push(s[i].animation);return e},t}()),BezierFactory=function(){var t={getBezierEasing:function(t,e,i,r,s){s=s||("bez_"+t+"_"+e+"_"+i+"_"+r).replace(/\./g,"p");if(a[s])return a[s];t=new n([t,e,i,r]);return a[s]=t}},a={};var S=11,_=1/(S-1),e="function"==typeof Float32Array;function r(t,e){return 1-3*e+3*t}function C(t,e,i){return((r(e,i)*t+(3*i-6*e))*t+3*e)*t}function A(t,e,i){return 3*r(e,i)*t*t+2*(3*i-6*e)*t+3*e}function n(t){this._p=t,this._mSampleValues=new(e?Float32Array:Array)(S),this._precomputed=!1,this.get=this.get.bind(this)}return n.prototype={get:function(t){var e=this._p[0],i=this._p[1],r=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),e===i&&r===s?t:0===t?0:1===t?1:C(this._getTForX(t),i,s)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],r=this._p[3];this._precomputed=!0,t===e&&i===r||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<S;++i)this._mSampleValues[i]=C(i*_,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],r=this._mSampleValues,s=0,a=1,n=S-1;a!==n&&r[a]<=t;++a)s+=_;var o=s+(t-r[--a])/(r[a+1]-r[a])*_,h=A(o,e,i);if(.001<=h){for(var l=t,p=o,m=e,f=i,c=0;c<4;++c){var d=A(p,m,f);if(0===d)return p;p-=(C(p,m,f)-l)/d}return p}if(0===h)return o;for(var u,y,g=t,v=s,b=s+_,P=e,E=i,x=0;0<(u=C(y=v+(b-v)/2,P,E)-g)?b=y:v=y,1e-7<Math.abs(u)&&++x<10;);return y}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,i){var r=0,s=t,a=createSizedArray(s);return{newElement:function(){var t;t=r?a[--r]:e();return t},release:function(t){r===s&&(a=pooling.double(a),s*=2);i&&i(t);a[r]=t,r+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){for(var e=t.lengths.length,i=0;i<e;i+=1)bezierLengthPool.release(t.lengths[i]);t.lengths.length=0});function bezFunction(){var A=Math;function y(t,e,i,r,s,a){s=t*r+e*s+i*a-s*r-a*t-i*e;return-.001<s&&s<.001}var p=function(t,e,i,r){for(var s,a,n,o,h=getDefaultCurveSegments(),l=0,p=[],m=[],f=bezierLengthPool.newElement(),c=i.length,d=0;d<h;d+=1){for(n=d/(h-1),s=o=0;s<c;s+=1)a=bmPow(1-n,3)*t[s]+3*bmPow(1-n,2)*n*i[s]+3*(1-n)*bmPow(n,2)*r[s]+bmPow(n,3)*e[s],p[s]=a,null!==m[s]&&(o+=bmPow(p[s]-m[s],2)),m[s]=p[s];o&&(l+=o=bmSqrt(o)),f.percents[d]=n,f.lengths[d]=l}return f.addedLength=l,f};function g(t){this.segmentLength=0,this.points=new Array(t)}function v(t,e){this.partialLength=t,this.point=e}function t(t,e,i,r){var s=(t[0]+"_"+t[1]+"_"+e[0]+"_"+e[1]+"_"+i[0]+"_"+i[1]+"_"+r[0]+"_"+r[1]).replace(/\./g,"p");if(!b[s]){for(var a,n,o,h,l,p=getDefaultCurveSegments(),m=0,f=null,c=new g(p=2===t.length&&(t[0]!==e[0]||t[1]!==e[1])&&y(t[0],t[1],e[0],e[1],t[0]+i[0],t[1]+i[1])&&y(t[0],t[1],e[0],e[1],e[0]+r[0],e[1]+r[1])?2:p),d=i.length,u=0;u<p;u+=1){for(l=createSizedArray(d),o=u/(p-1),a=h=0;a<d;a+=1)n=bmPow(1-o,3)*t[a]+3*bmPow(1-o,2)*o*(t[a]+i[a])+3*(1-o)*bmPow(o,2)*(e[a]+r[a])+bmPow(o,3)*e[a],l[a]=n,null!==f&&(h+=bmPow(l[a]-f[a],2));m+=h=bmSqrt(h),c.points[u]=new v(h,l),f=l}c.segmentLength=m,b[s]=c}return b[s]}var b;b={};function T(t,e){var i=e.percents,r=e.lengths,s=i.length,a=bmFloor((s-1)*t),n=t*e.addedLength,o=0;if(a===s-1||0===a||n===r[a])return i[a];for(var h=r[a]>n?-1:1,l=!0;l;)if(r[a]<=n&&r[a+1]>n?(o=(n-r[a])/(r[a+1]-r[a]),l=!1):a+=h,a<0||s-1<=a){if(a===s-1)return i[a];l=!1}return i[a]+(i[a+1]-i[a])*o}var D=createTypedArray("float32",8);return{getSegmentsLength:function(t){for(var e=segmentsLengthPool.newElement(),i=t.c,r=t.v,s=t.o,a=t.i,n=t._length,o=e.lengths,h=0,l=0;l<n-1;l+=1)o[l]=p(r[l],r[l+1],s[l],a[l+1]),h+=o[l].addedLength;return i&&n&&(o[l]=p(r[l],r[0],s[l],a[0]),h+=o[l].addedLength),e.totalLength=h,e},getNewSegment:function(t,e,i,r,s,a,n){s<0?s=0:1<s&&(s=1);for(var s=T(s,n),a=T(a=1<a?1:a,n),o=t.length,h=1-a,l=(n=1-s)*n*n,p=s*n*n*3,m=s*s*n*3,f=s*s*s,c=n*n*h,d=s*n*h+n*s*h+n*n*a,u=s*s*h+n*s*a+s*n*a,y=s*s*a,g=n*h*h,v=s*h*h+n*a*h+n*h*a,b=s*a*h+n*a*a+s*h*a,P=s*a*a,E=h*h*h,x=a*h*h+h*a*h+h*h*a,S=a*a*h+h*a*a+a*h*a,_=a*a*a,C=0;C<o;C+=1)D[4*C]=A.round(1e3*(l*t[C]+p*i[C]+m*r[C]+f*e[C]))/1e3,D[4*C+1]=A.round(1e3*(c*t[C]+d*i[C]+u*r[C]+y*e[C]))/1e3,D[4*C+2]=A.round(1e3*(g*t[C]+v*i[C]+b*r[C]+P*e[C]))/1e3,D[4*C+3]=A.round(1e3*(E*t[C]+x*i[C]+S*r[C]+_*e[C]))/1e3;return D},getPointInSegment:function(t,e,i,r,s,a){return s=T(s,a),a=1-s,[A.round(1e3*(a*a*a*t[0]+(s*a*a+a*s*a+a*a*s)*i[0]+(s*s*a+a*s*s+s*a*s)*r[0]+s*s*s*e[0]))/1e3,A.round(1e3*(a*a*a*t[1]+(s*a*a+a*s*a+a*a*s)*i[1]+(s*s*a+a*s*s+s*a*s)*r[1]+s*s*s*e[1]))/1e3]},buildBezierData:t,pointOnLine2D:y,pointOnLine3D:function(t,e,i,r,s,a,n,o,h){if(0===i&&0===a&&0===h)return y(t,e,r,s,n,o);var l=A.sqrt(A.pow(r-t,2)+A.pow(s-e,2)+A.pow(a-i,2)),t=A.sqrt(A.pow(n-t,2)+A.pow(o-e,2)+A.pow(h-i,2)),e=A.sqrt(A.pow(n-r,2)+A.pow(o-s,2)+A.pow(h-a,2));return-1e-4<(i=t<l?e<l?l-t-e:e-t-l:t<e?e-t-l:t-l-e)&&i<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var m=initialDefaultFrame,s=Math.abs;function f(t,e){for(var i,r,s,a,n=this.offsetTime,o=("multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length)),e.lastIndex),h=o,l=this.keyframes.length-1,p=!0;p;){if(r=this.keyframes[h],s=this.keyframes[h+1],h===l-1&&t>=s.t-n){r.h&&(r=s),o=0;break}if(s.t-n>t){o=h;break}h<l-1?h+=1:(o=0,p=!1)}var m,f,c,d,u,y=this.keyframesMetadata[h]||{},g=s.t-n,v=r.t-n;if(r.to){y.bezierData||(y.bezierData=bez.buildBezierData(r.s,s.s||r.e,r.to,r.ti));var b=y.bezierData;if(g<=t||t<v)for(var P=g<=t?b.points.length-1:0,E=b.points[P].point.length,x=0;x<E;x+=1)i[x]=b.points[P].point[x];else{y.__fnct?a=y.__fnct:(a=BezierFactory.getBezierEasing(r.o.x,r.o.y,r.i.x,r.i.y,r.n).get,y.__fnct=a);for(var S,_=a((t-v)/(g-v)),C=b.segmentLength*_,A=e.lastFrame<t&&e._lastKeyframeIndex===h?e._lastAddedLength:0,T=e.lastFrame<t&&e._lastKeyframeIndex===h?e._lastPoint:0,p=!0,R=b.points.length;p;){if(A+=b.points[T].partialLength,0==C||0===_||T===b.points.length-1){for(E=b.points[T].point.length,x=0;x<E;x+=1)i[x]=b.points[T].point[x];break}if(A<=C&&C<A+b.points[T+1].partialLength){for(S=(C-A)/b.points[T+1].partialLength,E=b.points[T].point.length,x=0;x<E;x+=1)i[x]=b.points[T].point[x]+(b.points[T+1].point[x]-b.points[T].point[x])*S;break}T<R-1?T+=1:p=!1}e._lastPoint=T,e._lastAddedLength=A-b.points[T].partialLength,e._lastKeyframeIndex=h}}else{var D,k,M,F,w,I,V,l=r.s.length,B=s.s||r.e;if(this.sh&&1!==r.h)g<=t?(i[0]=B[0],i[1]=B[1],i[2]=B[2]):t<=v?(i[0]=r.s[0],i[1]=r.s[1],i[2]=r.s[2]):(I=L(r.s),V=L(B),m=i,I=function(t,e,i){var r,s,a,n=[],o=t[0],h=t[1],l=t[2],t=t[3],p=e[0],m=e[1],f=e[2],e=e[3];(a=o*p+h*m+l*f+t*e)<0&&(a=-a,p=-p,m=-m,f=-f,e=-e);a=1e-6<1-a?(a=Math.acos(a),r=Math.sin(a),s=Math.sin((1-i)*a)/r,Math.sin(i*a)/r):(s=1-i,i);return n[0]=s*o+a*p,n[1]=s*h+a*m,n[2]=s*l+a*f,n[3]=s*t+a*e,n}(I,V,(t-v)/(g-v)),V=I[0],f=I[1],c=I[2],I=I[3],d=Math.atan2(2*f*I-2*V*c,1-2*f*f-2*c*c),u=Math.asin(2*V*f+2*c*I),I=Math.atan2(2*V*I-2*f*c,1-2*V*V-2*c*c),m[0]=d/degToRads,m[1]=u/degToRads,m[2]=I/degToRads);else for(h=0;h<l;h+=1)1!==r.h&&(_=g<=t?1:t<v?0:(r.o.x.constructor===Array?(y.__fnct||(y.__fnct=[]),y.__fnct[h]?a=y.__fnct[h]:(D=void 0===r.o.x[h]?r.o.x[0]:r.o.x[h],k=void 0===r.o.y[h]?r.o.y[0]:r.o.y[h],M=void 0===r.i.x[h]?r.i.x[0]:r.i.x[h],F=void 0===r.i.y[h]?r.i.y[0]:r.i.y[h],a=BezierFactory.getBezierEasing(D,k,M,F).get,y.__fnct[h]=a)):y.__fnct?a=y.__fnct:(D=r.o.x,k=r.o.y,M=r.i.x,F=r.i.y,a=BezierFactory.getBezierEasing(D,k,M,F).get,r.keyframeMetadata=a),a((t-v)/(g-v)))),B=s.s||r.e,w=1===r.h?r.s[h]:r.s[h]+(B[h]-r.s[h])*_,"multidimensional"===this.propType?i[h]=w:i=w}return e.lastIndex=o,i}function L(t){var e=t[0]*degToRads,i=t[1]*degToRads,t=t[2]*degToRads,r=Math.cos(e/2),s=Math.cos(i/2),a=Math.cos(t/2),e=Math.sin(e/2),i=Math.sin(i/2),t=Math.sin(t/2);return[e*i*a+r*s*t,e*s*a+r*i*t,r*i*a-e*s*t,r*s*a-e*i*t]}function c(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;return t===this._caching.lastFrame||this._caching.lastFrame!==m&&(this._caching.lastFrame>=i&&i<=t||this._caching.lastFrame<e&&t<e)||(this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0),i=this.interpolateValue(t,this._caching),this.pv=i),this._caching.lastFrame=t,this.pv}function d(t){var e;if("unidimensional"===this.propType)e=t*this.mult,1e-5<s(this.v-e)&&(this.v=e,this._mdf=!0);else for(var i=0,r=this.v.length;i<r;)e=t[i]*this.mult,1e-5<s(this.v[i]-e)&&(this.v[i]=e,this._mdf=!0),i+=1}function u(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;for(var t=this.effectsSequence.length,e=this.kf?this.pv:this.data.k,i=0;i<t;i+=1)e=this.effectsSequence[i](e);this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function y(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function n(t,e,i,r){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=u,this.setVValue=d,this.addEffect=y}function o(t,e,i,r){this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,a=e.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),s=0;s<a;s+=1)this.v[s]=e.k[s]*this.mult,this.pv[s]=e.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=u,this.setVValue=d,this.addEffect=y}function h(t,e,i,r){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:m,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=r,this.comp=t.comp,this.v=m,this.pv=m,this._isFirstFrame=!0,this.getValue=u,this.setVValue=d,this.interpolateValue=f,this.effectsSequence=[c.bind(this)],this.addEffect=y}function l(t,e,i,r){this.propType="multidimensional";for(var s,a,n,o,h=e.k.length,l=0;l<h-1;l+=1)e.k[l].to&&e.k[l].s&&e.k[l+1]&&e.k[l+1].s&&(s=e.k[l].s,a=e.k[l+1].s,n=e.k[l].to,o=e.k[l].ti,(2===s.length&&(s[0]!==a[0]||s[1]!==a[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],s[0]+n[0],s[1]+n[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],a[0]+o[0],a[1]+o[1])||3===s.length&&(s[0]!==a[0]||s[1]!==a[1]||s[2]!==a[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],s[0]+n[0],s[1]+n[1],s[2]+n[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],a[0]+o[0],a[1]+o[1],a[2]+o[2]))&&(e.k[l].to=null,e.k[l].ti=null),s[0]===a[0]&&s[1]===a[1]&&0===n[0]&&0===n[1]&&0===o[0]&&0===o[1]&&(2===s.length||s[2]===a[2]&&0===n[2]&&0===o[2])&&(e.k[l].to=null,e.k[l].ti=null));this.effectsSequence=[c.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=r,this.comp=t.comp,this.getValue=u,this.setVValue=d,this.interpolateValue=f,this.frameId=-1;var p=e.k[0].s.length;for(this.v=createTypedArray("float32",p),this.pv=createTypedArray("float32",p),l=0;l<p;l+=1)this.v[l]=m,this.pv[l]=m;this._caching={lastFrame:m,lastIndex:0,value:createTypedArray("float32",p)},this.addEffect=y}return{getProp:function(t,e,i,r,s){var a;if(e.k.length)if("number"==typeof e.k[0])a=new o(t,e,r,s);else switch(i){case 0:a=new h(t,e,r,s);break;case 1:a=new l(t,e,r,s)}else a=new n(t,e,r,s);return a.effectsSequence.length&&s.addDynamicProperty(a),a}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;for(var t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,r,s){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}a[r]&&(!a[r]||s)||(a[r]=pointPool.newElement()),a[r][0]=t,a[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,r,s,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(i,r,"o",n,o),this.setXYAt(s,a,"i",n,o)},ShapePath.prototype.reverse=function(){for(var t=new ShapePath,e=(t.setPathData(this.c,this._length),this.v),i=this.o,r=this.i,s=0,a=(this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),s=1),this._length-1),n=this._length,o=s;o<n;o+=1)t.setTripleAt(e[a][0],e[a][1],r[a][0],r[a][1],i[a][0],i[a][1],o,!1),--a;return t};var shapePool=function(){var s=poolFactory(4,function(){return new ShapePath},function(t){for(var e=t._length,i=0;i<e;i+=1)pointPool.release(t.v[i]),pointPool.release(t.i[i]),pointPool.release(t.o[i]),t.v[i]=null,t.i[i]=null,t.o[i]=null;t._length=0,t.c=!1});return s.clone=function(t){var e,i=s.newElement(),r=void 0===t._length?t.v.length:t._length;for(i.setLength(r),i.c=t.c,e=0;e<r;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},s}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){for(var t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=function(){var t={newShapeCollection:function(){var t;t=r?a[--r]:new ShapeCollection;return t},release:function(t){var e,i=t._length;for(e=0;e<i;e+=1)shapePool.release(t.shapes[e]);t._length=0,r===s&&(a=pooling.double(a),s*=2);a[r]=t,r+=1}},r=0,s=4,a=createSizedArray(s);return t}(),ShapePropertyFactory=function(){var s=-999999;function t(t,e,i){var r,s,a,n,o,h,l,p=i.lastIndex,m=this.keyframes;if(t<m[0].t-this.offsetTime)r=m[0].s[0],s=!0,p=0;else if(t>=m[m.length-1].t-this.offsetTime)r=(m[m.length-1].s?m[m.length-1].s:m[m.length-2].e)[0],s=!0;else{for(var f,c,d,u,y,g,v=p,b=m.length-1,P=!0;P&&(f=m[v],!((c=m[v+1]).t-this.offsetTime>t));)v<b-1?v+=1:P=!1;d=this.keyframesMetadata[v]||{},p=v,(s=1===f.h)||(y=t>=c.t-this.offsetTime?1:t<f.t-this.offsetTime?0:(d.__fnct?u=d.__fnct:(u=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,d.__fnct=u),u((t-(f.t-this.offsetTime))/(c.t-this.offsetTime-(f.t-this.offsetTime)))),g=(c.s||f.e)[0]),r=f.s[0]}for(o=e._length,h=r.i[0].length,i.lastIndex=p,a=0;a<o;a+=1)for(n=0;n<h;n+=1)l=s?r.i[a][n]:r.i[a][n]+(g.i[a][n]-r.i[a][n])*y,e.i[a][n]=l,l=s?r.o[a][n]:r.o[a][n]+(g.o[a][n]-r.o[a][n])*y,e.o[a][n]=l,l=s?r.v[a][n]:r.v[a][n]+(g.v[a][n]-r.v[a][n])*y,e.v[a][n]=l}function r(){this.paths=this.localShapeCollection}function e(t){!function(t,e){if(t._length===e._length&&t.c===e.c){for(var i=t._length,r=0;r<i;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return;return 1}}(this.v,t)&&(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=!1,t=this.kf?this.pv:(this.data.ks||this.data.pt).k;for(var t,e=this.effectsSequence.length,i=0;i<e;i+=1)t=this.effectsSequence[i](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;t=(3===i?e.pt:e.ks).k;this.v=shapePool.clone(t),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function n(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function o(t,e,i){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=(3===i?e.pt:e.ks).k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;t=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,t),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=s,this.reset=r,this._caching={lastFrame:s,lastIndex:0},this.effectsSequence=[function(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==s&&(r<e&&t<e||i<r&&i<t)||(this._caching.lastIndex=r<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=i,a.prototype.setVValue=e,a.prototype.addEffect=n,o.prototype.getValue=i,o.prototype.interpolateShape=t,o.prototype.setVValue=e,o.prototype.addEffect=n;h=roundCorner,p.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,s=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=e-r,a.v[1][0]=s?t+i:t-i,a.v[1][1]=e,a.v[2][0]=t,a.v[2][1]=e+r,a.v[3][0]=s?t-i:t+i,a.v[3][1]=e,a.i[0][0]=s?t-i*h:t+i*h,a.i[0][1]=e-r,a.i[1][0]=s?t+i:t-i,a.i[1][1]=e-r*h,a.i[2][0]=s?t+i*h:t-i*h,a.i[2][1]=e+r,a.i[3][0]=s?t-i:t+i,a.i[3][1]=e+r*h,a.o[0][0]=s?t+i*h:t-i*h,a.o[0][1]=e-r,a.o[1][0]=s?t+i:t-i,a.o[1][1]=e+r*h,a.o[2][0]=s?t-i*h:t+i*h,a.o[2][1]=e+r,a.o[3][0]=s?t-i:t+i,a.o[3][1]=e-r*h}},extendPrototype([DynamicPropertyContainer],p);var h,l=p;function p(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}f.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){for(var t=2*Math.floor(this.pt.v),e=2*Math.PI/t,i=!0,r=this.or.v,s=this.ir.v,a=this.os.v,n=this.is.v,o=2*Math.PI*r/(2*t),h=2*Math.PI*s/(2*t),l=-Math.PI/2,p=(l+=this.r.v,3===this.data.d?-1:1),m=this.v._length=0;m<t;m+=1){var f=i?a:n,c=i?o:h,d=(u=i?r:s)*Math.cos(l),u=u*Math.sin(l),y=0===d&&0===u?0:u/Math.sqrt(d*d+u*u),g=0===d&&0===u?0:-d/Math.sqrt(d*d+u*u);d+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(d,u,d-y*c*f*p,u-g*c*f*p,d+y*c*f*p,u+g*c*f*p,m,!0),i=!i,l+=e*p}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,r=this.or.v,s=this.os.v,a=2*Math.PI*r/(4*e),n=.5*-Math.PI,o=3===this.data.d?-1:1;for(n+=this.r.v,t=this.v._length=0;t<e;t+=1){var h=r*Math.cos(n),l=r*Math.sin(n),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),m=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*a*s*o,l-m*a*s*o,h+p*a*s*o,l+m*a*s*o,t,!0),n+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],f);var m=f;function f(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}d.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,s=bmMin(i,r,this.r.v),a=s*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-r+s,t+i,e-r+s,t+i,e-r+a,0,!0),this.v.setTripleAt(t+i,e+r-s,t+i,e+r-a,t+i,e+r-s,1,!0),0!==s?(this.v.setTripleAt(t+i-s,e+r,t+i-s,e+r,t+i-a,e+r,2,!0),this.v.setTripleAt(t-i+s,e+r,t-i+a,e+r,t-i+s,e+r,3,!0),this.v.setTripleAt(t-i,e+r-s,t-i,e+r-s,t-i,e+r-a,4,!0),this.v.setTripleAt(t-i,e-r+s,t-i,e-r+a,t-i,e-r+s,5,!0),this.v.setTripleAt(t-i+s,e-r,t-i+s,e-r,t-i+a,e-r,6,!0),this.v.setTripleAt(t+i-s,e-r,t+i-a,e-r,t+i-s,e-r,7,!0)):(this.v.setTripleAt(t-i,e+r,t-i+a,e+r,t-i,e+r,2),this.v.setTripleAt(t-i,e-r,t-i,e-r+a,t-i,e-r,3))):(this.v.setTripleAt(t+i,e-r+s,t+i,e-r+a,t+i,e-r+s,0,!0),0!==s?(this.v.setTripleAt(t+i-s,e-r,t+i-s,e-r,t+i-a,e-r,1,!0),this.v.setTripleAt(t-i+s,e-r,t-i+a,e-r,t-i+s,e-r,2,!0),this.v.setTripleAt(t-i,e-r+s,t-i,e-r+s,t-i,e-r+a,3,!0),this.v.setTripleAt(t-i,e+r-s,t-i,e+r-a,t-i,e+r-s,4,!0),this.v.setTripleAt(t-i+s,e+r,t-i+s,e+r,t-i+a,e+r,5,!0),this.v.setTripleAt(t+i-s,e+r,t+i-a,e+r,t+i-s,e+r,6,!0),this.v.setTripleAt(t+i,e+r-s,t+i,e+r-s,t+i,e+r-a,7,!0)):(this.v.setTripleAt(t-i,e-r,t-i+a,e-r,t-i,e-r,1,!0),this.v.setTripleAt(t-i,e+r,t-i,e+r-a,t-i,e+r,2,!0),this.v.setTripleAt(t+i,e+r,t+i-a,e+r,t+i,e+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],d);var c=d;function d(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}var u={getShapeProp:function(t,e,i){var r;return 3===i||4===i?r=new((3===i?e.pt:e.ks).k.length?o:a)(t,e,i):5===i?r=new c(t,e):6===i?r=new l(t,e):7===i&&(r=new m(t,e)),r.k&&t.addDynamicProperty(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return o}};return u}(),Matrix=function(){var r=Math.cos,s=Math.sin,a=Math.tan,n=Math.round;function t(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function e(t){if(0===t)return this;var e=r(t),t=s(t);return this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1)}function i(t){if(0===t)return this;var e=r(t),t=s(t);return this._t(1,0,0,0,0,e,-t,0,0,t,e,0,0,0,0,1)}function o(t){if(0===t)return this;var e=r(t),t=s(t);return this._t(e,0,t,0,0,1,0,0,-t,0,e,0,0,0,0,1)}function h(t){if(0===t)return this;var e=r(t),t=s(t);return this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(a(t),a(e))}function m(t,e){var i=r(e),e=s(e);return this._t(i,e,0,0,-e,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(t),1,0,0,0,0,1,0,0,0,0,1)._t(i,-e,0,0,e,i,0,0,0,0,1,0,0,0,0,1)}function f(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function c(t,e,i,r,s,a,n,o,h,l,p,m,f,c,d,u){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=r,this.props[4]=s,this.props[5]=a,this.props[6]=n,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=m,this.props[12]=f,this.props[13]=c,this.props[14]=d,this.props[15]=u,this}function d(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function u(t,e,i,r,s,a,n,o,h,l,p,m,f,c,d,u){var y=this.props;if(1===t&&0===e&&0===i&&0===r&&0===s&&1===a&&0===n&&0===o&&0===h&&0===l&&1===p&&0===m)return y[12]=y[12]*t+y[15]*f,y[13]=y[13]*a+y[15]*c,y[14]=y[14]*p+y[15]*d,y[15]*=u,this._identityCalculated=!1,this;var g=y[0],v=y[1],b=y[2],P=y[3],E=y[4],x=y[5],S=y[6],_=y[7],C=y[8],A=y[9],T=y[10],D=y[11],k=y[12],M=y[13],F=y[14],w=y[15];return y[0]=g*t+v*s+b*h+P*f,y[1]=g*e+v*a+b*l+P*c,y[2]=g*i+v*n+b*p+P*d,y[3]=g*r+v*o+b*m+P*u,y[4]=E*t+x*s+S*h+_*f,y[5]=E*e+x*a+S*l+_*c,y[6]=E*i+x*n+S*p+_*d,y[7]=E*r+x*o+S*m+_*u,y[8]=C*t+A*s+T*h+D*f,y[9]=C*e+A*a+T*l+D*c,y[10]=C*i+A*n+T*p+D*d,y[11]=C*r+A*o+T*m+D*u,y[12]=k*t+M*s+F*h+w*f,y[13]=k*e+M*a+F*l+w*c,y[14]=k*i+M*n+F*p+w*d,y[15]=k*r+M*o+F*m+w*u,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function g(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function v(t){for(var e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function b(t){for(var e=0;e<16;e+=1)this.props[e]=t[e]}function P(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function E(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function x(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function S(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function _(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,r=-this.props[4]/t,s=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,t=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,n=new Matrix;return n.props[0]=e,n.props[1]=i,n.props[4]=r,n.props[5]=s,n.props[12]=a,n.props[13]=t,n}function C(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function A(t){for(var e=t.length,i=[],r=0;r<e;r+=1)i[r]=C(t[r]);return i}function T(t,e,i){var r,s,a,n,o,h,l=createTypedArray("float32",6);return this.isIdentity()?(l[0]=t[0],l[1]=t[1],l[2]=e[0],l[3]=e[1],l[4]=i[0],l[5]=i[1]):(r=this.props[0],s=this.props[1],a=this.props[4],n=this.props[5],o=this.props[12],h=this.props[13],l[0]=t[0]*r+t[1]*a+o,l[1]=t[0]*s+t[1]*n+h,l[2]=e[0]*r+e[1]*a+o,l[3]=e[0]*s+e[1]*n+h,l[4]=i[0]*r+i[1]*a+o,l[5]=i[0]*s+i[1]*n+h),l}function D(t,e,i){t=this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]];return t}function k(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function M(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i=i+n(1e4*e[t])/1e4+(15===t?")":","),t+=1;return i}function F(t){return t<1e-6&&0<t||-1e-6<t&&t<0?n(1e4*t)/1e4:t}function w(){var t=this.props;return"matrix("+F(t[0])+","+F(t[1])+","+F(t[4])+","+F(t[5])+","+F(t[12])+","+F(t[13])+")"}return function(){this.reset=t,this.rotate=e,this.rotateX=i,this.rotateY=o,this.rotateZ=h,this.skew=p,this.skewFromAxis=m,this.shear=l,this.scale=f,this.setTransform=c,this.translate=d,this.transform=u,this.applyToPoint=P,this.applyToX=E,this.applyToY=x,this.applyToZ=S,this.applyToPointArray=D,this.applyToTriplePoints=T,this.applyToPointStringified=k,this.toCSS=M,this.to2dCSS=w,this.clone=v,this.cloneFromProps=b,this.equals=g,this.inversePoints=A,this.inversePoint=C,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&1<t&&setDefaultCurveSegments(t);50<=getDefaultCurveSegments()?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var r=e[i].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.9.6";var queryString="",scripts,index,myScript,queryString,renderer,readyStateCheckInterval=(standalone&&(scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""},queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")),setInterval(checkReady,100));try{"object"===("undefined"==typeof exports?"undefined":_typeof$3(exports))&&"undefined"!=typeof module||"function"==typeof define&&define.amd||(window.bodymovin=lottie)}catch(err){}var ShapeModifiers=function(){var t={},r={};return t.registerModifier=function(t,e){r[t]||(r[t]=e)},t.getModifier=function(t,e,i){return new r[t](e,i)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){var e;this.closed||(t.sh.container.addDynamicProperty(t.sh),e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()},this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated())},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,r,s){for(var a,n,o=[],h=(e<=1?o.push({s:t,e:e}):1<=t?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1})),[]),l=o.length,p=0;p<l;p+=1)(n=o[p]).e*s<r||n.s*s>r+i||(a=n.s*s<=r?0:(n.s*s-r)/i,n=n.e*s>=r+i?1:(n.e*s-r)/i,h.push([a,n]));return h.length||h.push([0,0]),h},TrimModifier.prototype.releasePathsData=function(t){for(var e=t.length,i=0;i<e;i+=1)segmentsLengthPool.release(t[i]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){this._mdf||t?((e=this.o.v%360/360)<0&&(e+=1),i=1<this.s.v?1+e:this.s.v<0?0+e:this.s.v+e,(r=1<this.e.v?1+e:this.e.v<0?0+e:this.e.v+e)<i&&(e=i,i=r,r=e),i=1e-4*Math.round(1e4*i),r=1e-4*Math.round(1e4*r),this.sValue=i,this.eValue=r):(i=this.sValue,r=this.eValue);var e,i,r,s,a,n,o,h,l,p=this.shapes.length,m=0;if(r===i)for(u=0;u<p;u+=1)this.shapes[u].localShapeCollection.releaseShapes(),this.shapes[u].shape._mdf=!0,this.shapes[u].shape.paths=this.shapes[u].localShapeCollection,this._mdf&&(this.shapes[u].pathsData.length=0);else if(1===r&&0===i||0===r&&1===i){if(this._mdf)for(u=0;u<p;u+=1)this.shapes[u].pathsData.length=0,this.shapes[u].shape._mdf=!0}else{for(var f,c,d=[],u=0;u<p;u+=1)if((f=this.shapes[u]).shape._mdf||this._mdf||t||2===this.m){if(n=(s=f.shape.paths)._length,l=0,!f.shape._mdf&&f.pathsData.length)l=f.totalShapeLength;else{for(o=this.releasePathsData(f.pathsData),a=0;a<n;a+=1)h=bez.getSegmentsLength(s.shapes[a]),o.push(h),l+=h.totalLength;f.totalShapeLength=l,f.pathsData=o}m+=l,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,g=i,v=r,b=0;for(u=p-1;0<=u;--u)if((f=this.shapes[u]).shape._mdf){for((c=f.localShapeCollection).releaseShapes(),2===this.m&&1<p?(y=this.calculateShapeEdges(i,r,f.totalShapeLength,b,m),b+=f.totalShapeLength):y=[[g,v]],n=y.length,a=0;a<n;a+=1){g=y[a][0],v=y[a][1],d.length=0,v<=1?d.push({s:f.totalShapeLength*g,e:f.totalShapeLength*v}):1<=g?d.push({s:f.totalShapeLength*(g-1),e:f.totalShapeLength*(v-1)}):(d.push({s:f.totalShapeLength*g,e:f.totalShapeLength}),d.push({s:0,e:f.totalShapeLength*(v-1)}));var P,E=this.addShapes(f,d[0]);d[0].s!==d[0].e&&(1<d.length&&(E=f.shape.paths.shapes[f.shape.paths._length-1].c?(P=E.pop(),this.addPaths(E,c),this.addShapes(f,d[1],P)):(this.addPaths(E,c),this.addShapes(f,d[1]))),this.addPaths(E,c))}f.shape.paths=c}}},TrimModifier.prototype.addPaths=function(t,e){for(var i=t.length,r=0;r<i;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,i,r,s,a,n){s.setXYAt(e[0],e[1],"o",a),s.setXYAt(i[0],i[1],"i",a+1),n&&s.setXYAt(t[0],t[1],"v",a),s.setXYAt(r[0],r[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,r){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),r&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var r,s,a,n,o,h,l,p,m=t.pathsData,f=t.shape.paths.shapes,c=t.shape.paths._length,d=0,u=[],y=!0,g=i?(n=i._length,i._length):(i=shapePool.newElement(),n=0);for(u.push(i),r=0;r<c;r+=1){for(o=m[r].lengths,i.c=f[r].c,a=f[r].c?o.length:o.length+1,s=1;s<a;s+=1)if(d+(p=o[s-1]).addedLength<e.s)d+=p.addedLength,i.c=!1;else{if(d>e.e){i.c=!1;break}e.s<=d&&e.e>=d+p.addedLength?(this.addSegment(f[r].v[s-1],f[r].o[s-1],f[r].i[s],f[r].v[s],i,n,y),y=!1):(h=bez.getNewSegment(f[r].v[s-1],f[r].v[s],f[r].o[s-1],f[r].i[s],(e.s-d)/p.addedLength,(e.e-d)/p.addedLength,o[s-1]),this.addSegmentFromArray(h,i,n,y),i.c=y=!1),d+=p.addedLength,n+=1}if(f[r].c&&o.length&&(p=o[s-1],d<=e.e?(l=o[s-1].addedLength,e.s<=d&&e.e>=d+l?(this.addSegment(f[r].v[s-1],f[r].o[s-1],f[r].i[0],f[r].v[0],i,n,y),y=!1):(h=bez.getNewSegment(f[r].v[s-1],f[r].v[0],f[r].o[s-1],f[r].i[0],(e.s-d)/l,(e.e-d)/l,o[s-1]),this.addSegmentFromArray(h,i,n,y),i.c=y=!1)):i.c=!1,d+=p.addedLength,n+=1),i._length&&(i.setXYAt(i.v[g][0],i.v[g][1],"i",g),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;r<c-1&&(i=shapePool.newElement(),y=!0,u.push(i),n=0)}return u},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){for(var i=e/100,r=[0,0],s=t._length,a=0,a=0;a<s;a+=1)r[0]+=t.v[a][0],r[1]+=t.v[a][1];r[0]/=s,r[1]/=s;var n,o,h,l,p,m,f=shapePool.newElement();for(f.c=t.c,a=0;a<s;a+=1)n=t.v[a][0]+(r[0]-t.v[a][0])*i,o=t.v[a][1]+(r[1]-t.v[a][1])*i,h=t.o[a][0]+(r[0]-t.o[a][0])*-i,l=t.o[a][1]+(r[1]-t.o[a][1])*-i,p=t.i[a][0]+(r[0]-t.i[a][0])*-i,m=t.i[a][1]+(r[1]-t.i[a][1])*-i,f.setTripleAt(n,o,h,l,p,m,a);return f},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,r,s=this.shapes.length,a=this.amount.v;if(0!==a)for(var n,o,h=0;h<s;h+=1){if(o=(n=this.shapes[h]).localShapeCollection,n.shape._mdf||this._mdf||t)for(o.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],a));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var a=[0,0];function r(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti)for(var r=e.or.k.length,s=0;s<r;s+=1)e.or.k[s].to=null,e.or.k[s].ti=null;this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return r.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){var e,i,r,s;this.elem.globalData.frameId!==this.frameId&&(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),(this._mdf||t)&&(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented&&(t=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime?i=this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(e=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/t,0),this.p.getValueAtTime(this.p.keyframes[0].t/t,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(e=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/t,0),this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/t,0)):(e=this.p.pv,this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/t,this.p.offsetTime)):this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime?(e=[],i=[],r=this.px,s=this.py,r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(e[0]=r.getValueAtTime((r.keyframes[0].t+.01)/t,0),e[1]=s.getValueAtTime((s.keyframes[0].t+.01)/t,0),i[0]=r.getValueAtTime(r.keyframes[0].t/t,0),i[1]=s.getValueAtTime(s.keyframes[0].t/t,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(e[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/t,0),e[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/t,0),i[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/t,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/t,0)):(e=[r.pv,s.pv],i[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/t,r.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/t,s.offsetTime))):e=i=a,this.v.rotate(-Math.atan2(e[1]-i[1],e[0]-i[0]))),this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])),this.frameId=this.elem.globalData.frameId)},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],r),r.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},r.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,i){return new r(t,e,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",r="normal",s=e.length,a=0;a<s;a+=1)switch(e[a].toLowerCase()){case"italic":r="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:r,weight:t.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,r,s,a){var n=a?-1:1,o=r.s.v[0]+(1-r.s.v[0])*(1-s),h=r.s.v[1]+(1-r.s.v[1])*(1-s);t.translate(r.p.v[0]*n*s,r.p.v[1]*n*s,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*n*s),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),i.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),i.scale(a?1/o:o,a?1/h:h),i.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,r){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);0<i;)this._elements.unshift(e[--i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i]._processed=!1,"gr"===t[i].ty&&this.resetElements(t[i].it)},RepeaterModifier.prototype.cloneElements=function(t){t=JSON.parse(JSON.stringify(t));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(t,e){for(var i=t.length,r=0;r<i;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,r,s,a,n=!1;if(this._mdf||t){var o,h=Math.ceil(this.c.v);if(this._groups.length<h){for(;this._groups.length<h;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),n=!0}for(r=a=0;r<=this._groups.length-1;r+=1)this._groups[r]._render=o=a<h,this.changeGroupRender(this._groups[r].it,o),o||(0!==(o=(o=this.elemsData[r].it)[o.length-1]).transform.op.v?(o.transform.op._mdf=!0,o.transform.op.v=0):o.transform.op._mdf=!1),a+=1;this._currentCopies=h;var p,m,t=this.o.v,f=t%1,c=0<t?Math.floor(t):Math.ceil(t),d=this.pMatrix.props,u=this.rMatrix.props,y=this.sMatrix.props,g=(this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset(),0);if(0<t){for(;g<c;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),g+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),g+=f)}else if(t<0){for(;c<g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),--g;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),g-=f)}for(r=1===this.data.m?0:this._currentCopies-1,s=1===this.data.m?1:-1,a=this._currentCopies;a;){if(m=(i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==g){for((0!==r&&1===s||r!==this._currentCopies-1&&-1===s)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),p=0;p<m;p+=1)i[p]=this.matrix.props[p];this.matrix.reset()}else for(this.matrix.reset(),p=0;p<m;p+=1)i[p]=this.matrix.props[p];g+=1,--a,r+=s}}else for(a=this._currentCopies,r=0,s=1;a;)i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,--a,r+=s;return n},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){for(var i,r,s,a,n,o,h,l,p,m,f=shapePool.newElement(),c=(f.c=t.c,t._length),d=0,u=0;u<c;u+=1)i=t.v[u],s=t.o[u],r=t.i[u],i[0]===s[0]&&i[1]===s[1]&&i[0]===r[0]&&i[1]===r[1]?0!==u&&u!==c-1||t.c?(a=0===u?t.v[c-1]:t.v[u-1],o=(n=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(n/2,e)/n:0,p=i[0]+(a[0]-i[0])*o,m=i[1]-(i[1]-a[1])*o,h=p-(p-i[0])*roundCorner,l=m-(m-i[1])*roundCorner,f.setTripleAt(p,m,h,l,p,m,d),d+=1,a=u===c-1?t.v[0]:t.v[u+1],o=(n=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(n/2,e)/n:0,h=i[0]+(a[0]-i[0])*o,l=i[1]+(a[1]-i[1])*o,p=h-(h-i[0])*roundCorner,m=l-(l-i[1])*roundCorner,f.setTripleAt(h,l,h,l,p,m,d)):f.setTripleAt(i[0],i[1],s[0],s[1],r[0],r[1],d):f.setTripleAt(t.v[u][0],t.v[u][1],t.o[u][0],t.o[u][1],t.i[u][0],t.i[u][1],d),d+=1;return f},RoundCornersModifier.prototype.processShapes=function(t){var e,i,r,s=this.shapes.length,a=this.rd.v;if(0!==a)for(var n,o,h=0;h<s;h+=1){if(o=(n=this.shapes[h]).localShapeCollection,n.shape._mdf||this._mdf||t)for(o.releaseShapes(),n.shape._mdf=!0,e=n.shape.paths.shapes,r=n.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],a));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var a={w:0,size:0,shapes:[],data:{shapes:[]}},e=(e=[]).concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]),i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],r=[65039,8205];function m(t,e){var i=createTag("span"),r=(i.setAttribute("aria-hidden",!0),i.style.fontFamily=e,createTag("span")),s=(r.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(r),document.body.appendChild(i),r.offsetWidth);return r.style.fontFamily=function(t){for(var e=t.split(","),i=e.length,r=[],s=0;s<i;s+=1)"sans-serif"!==e[s]&&"monospace"!==e[s]&&r.push(e[s]);return r.join(",")}(t)+", "+e,{node:r,w:s,parent:i}}function f(t,e){var i,r,s=document.body&&e?"svg":"canvas",a=getFontProperties(t);return i="svg"==s?((r=createNS("text")).style.fontSize="100px",r.setAttribute("font-family",t.fFamily),r.setAttribute("font-style",a.style),r.setAttribute("font-weight",a.weight),r.textContent="1",t.fClass?(r.style.fontFamily="inherit",r.setAttribute("class",t.fClass)):r.style.fontFamily=t.fFamily,e.appendChild(r),r):((e=new OffscreenCanvas(500,500).getContext("2d")).font=a.style+" "+a.weight+" 100px "+t.fFamily,e),{measureText:function(t){return"svg"==s?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function t(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)}t.isModifier=function(t,e){return t=t.toString(16)+e.toString(16),-1!==i.indexOf(t)},t.isZeroWidthJoiner=function(t,e){return e?t===r[0]&&e===r[1]:t===r[1]},t.isCombinedCharacter=function(t){return-1!==e.indexOf(t)};var s={addChars:function(t){if(t){this.chars||(this.chars=[]);for(var e,i,r=t.length,s=this.chars.length,a=0;a<r;a+=1){for(e=0,i=!1;e<s;)this.chars[e].style===t[a].style&&this.chars[e].fFamily===t[a].fFamily&&this.chars[e].ch===t[a].ch&&(i=!0),e+=1;i||(this.chars.push(t[a]),s+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach(function(t){t.helper=f(t),t.cache={}}),void(this.fonts=t.list);for(var i=t.list,r=i.length,s=r,a=0;a<r;a+=1){var n,o,h,l,p=!0;if(i[a].loaded=!1,i[a].monoCase=m(i[a].fFamily,"monospace"),i[a].sansCase=m(i[a].fFamily,"sans-serif"),i[a].fPath){if("p"===i[a].fOrigin||3===i[a].origin)(p=0<(o=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[a].fFamily+'"], style[f-origin="3"][f-family="'+i[a].fFamily+'"]')).length?!1:p)&&((h=createTag("style")).setAttribute("f-forigin",i[a].fOrigin),h.setAttribute("f-origin",i[a].origin),h.setAttribute("f-family",i[a].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+i[a].fFamily+"; font-style: normal; src: url('"+i[a].fPath+"');}",e.appendChild(h));else if("g"===i[a].fOrigin||1===i[a].origin){for(o=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),n=0;n<o.length;n+=1)-1!==o[n].href.indexOf(i[a].fPath)&&(p=!1);p&&((h=createTag("link")).setAttribute("f-forigin",i[a].fOrigin),h.setAttribute("f-origin",i[a].origin),h.type="text/css",h.rel="stylesheet",h.href=i[a].fPath,document.body.appendChild(h))}else if("t"===i[a].fOrigin||2===i[a].origin){for(o=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),n=0;n<o.length;n+=1)i[a].fPath===o[n].src&&(p=!1);p&&((l=createTag("link")).setAttribute("f-forigin",i[a].fOrigin),l.setAttribute("f-origin",i[a].origin),l.setAttribute("rel","stylesheet"),l.setAttribute("href",i[a].fPath),e.appendChild(l))}}else i[a].loaded=!0,--s;i[a].helper=f(i[a],e),i[a].cache={},this.fonts.push(i[a])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,e,i){for(var r=0,s=this.chars.length;r<s;){if(this.chars[r].ch===t&&this.chars[r].style===e&&this.chars[r].fFamily===i)return this.chars[r];r+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0),a},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var r,s,a,e=this.getFontByName(e),n=t.charCodeAt(0);return e.cache[n+1]||(r=e.helper," "===t?(s=r.measureText("|"+t+"|"),a=r.measureText("||"),e.cache[n+1]=(s-a)/100):e.cache[n+1]=r.measureText(t)/100),e.cache[n+1]*i},checkLoadedFonts:function(){for(var t,e,i=this.fonts.length,r=i,s=0;s<i;s+=1)this.fonts[s].loaded?--r:"n"===this.fonts[s].fOrigin||0===this.fonts[s].origin?this.fonts[s].loaded=!0:(t=this.fonts[s].monoCase.node,e=this.fonts[s].monoCase.w,t.offsetWidth!==e?(--r,this.fonts[s].loaded=!0):(t=this.fonts[s].sansCase.node,e=this.fonts[s].sansCase.w,t.offsetWidth!==e&&(--r,this.fonts[s].loaded=!0)),this.fonts[s].loaded&&(this.fonts[s].sansCase.parent.parentNode.removeChild(this.fonts[s].sansCase.parent),this.fonts[s].monoCase.parent.parentNode.removeChild(this.fonts[s].monoCase.parent)));0!==r&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return t.prototype=s,t}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){for(var t=this.renderableComponents.length,e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}});return function(e){for(var i=createSizedArray(e.viewData.length),r=e.viewData.length,s=0;s<r;s+=1)i[s]=new t(e.viewData[s],e.masksProperties[s]);return function(t){for(s=0;s<r;){if(e.masksProperties[s].nm===t)return i[s];s+=1}return null}}}(),ExpressionPropertyInterface=function(){var p={pv:0,v:0,mult:1},m={pv:[0,0,0],v:[0,0,0],mult:1};function f(r,s,a){Object.defineProperty(r,"velocity",{get:function(){return s.getVelocityAtTime(s.comp.currentFrame)}}),r.numKeys=s.keyframes?s.keyframes.length:0,r.key=function(t){if(!r.numKeys)return 0;var e="",e="s"in s.keyframes[t-1]?s.keyframes[t-1].s:"e"in s.keyframes[t-2]?s.keyframes[t-2].e:s.keyframes[t-2].s,i="unidimensional"===a?new Number(e):Object.assign({},e);return i.time=s.keyframes[t-1].t/s.elem.comp.globalData.frameRate,i.value="unidimensional"===a?e[0]:e,i},r.valueAtTime=s.getValueAtTime,r.speedAtTime=s.getSpeedAtTime,r.velocityAtTime=s.getVelocityAtTime,r.propertyGroup=s.propertyGroup}function c(){return p}return function(t){return t?"unidimensional"===t.propType?(i=1/(e=(e=t)&&"pv"in e?e:p).mult,r=e.pv*i,(s=new Number(r)).value=r,f(s,e,"unidimensional"),function(){return e.k&&e.getValue(),r=e.v*i,s.value!==r&&((s=new Number(r)).value=r,f(s,e,"unidimensional")),s}):(n=1/(a=(a=t)&&"pv"in a?a:m).mult,o=a.data&&a.data.l||a.pv.length,h=createTypedArray("float32",o),l=createTypedArray("float32",o),h.value=l,f(h,a,"multidimensional"),function(){a.k&&a.getValue();for(var t=0;t<o;t+=1)l[t]=a.v[t]*n,h[t]=l[t];return h}):c;var e,i,r,s,a,n,o,h,l}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var i,r,s,a;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?a=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),r=ExpressionPropertyInterface(t.py),t.pz&&(s=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?a():[i(),r(),s?s():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function s(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function a(t,e){e=this.getMatrix(e);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.applyPoint(e,t)}function n(t,e){e=this.getMatrix(e);return this.applyPoint(e,t)}function o(t,e){e=this.getMatrix(e);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.invertPoint(e,t)}function h(t,e){e=this.getMatrix(e);return this.invertPoint(e,t)}function l(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length)for(var i=this._elem.hierarchy.length,r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.applyToPointArray(e[0],e[1],e[2]||0)}function p(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length)for(var i=this._elem.hierarchy.length,r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}function m(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){for(var i=this._elem.hierarchy.length,r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function f(){return[1,1,1,1]}return function(e){function i(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return i.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return r;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return i.effect;case"ADBE Text Properties":return i.textInterface;default:return null}}i.getMatrix=s,i.invertPoint=p,i.applyPoint=l,i.toWorld=n,i.toWorldVec=a,i.fromWorld=h,i.fromWorldVec=o,i.toComp=n,i.fromComp=m,i.sampleImage=f,i.sourceRectAtTime=e.sourceRectAtTime.bind(e);var r,t=getDescriptor(r=TransformExpressionInterface((i._elem=e).finalTransform.mProp),"anchorPoint");return Object.defineProperties(i,{hasParent:{get:function(){return e.hierarchy.length}},parent:{get:function(){return e.hierarchy[0].layerInterface}},rotation:getDescriptor(r,"rotation"),scale:getDescriptor(r,"scale"),position:getDescriptor(r,"position"),opacity:getDescriptor(r,"opacity"),anchorPoint:t,anchor_point:t,transform:{get:function(){return r}},active:{get:function(){return e.isInRange}}}),i.startTime=e.data.st,i.index=e.data.ind,i.source=e.data.refId,i.height=0===e.data.ty?e.data.h:100,i.width=0===e.data.ty?e.data.w:100,i.inPoint=e.data.ip/e.comp.globalData.frameRate,i.outPoint=e.data.op/e.comp.globalData.frameRate,i._name=e.data.nm,i.registerMaskInterface=function(t){i.mask=new MaskManagerInterface(t,e)},i.registerEffectsInterface=function(t){i.effect=t},i}}(),propertyGroupFactory=function(e,i){return function(t){return(t=void 0===t?1:t)<=0?e:i(t-1)}},PropertyInterface=function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}},EffectsExpressionInterface=function(){function p(t,e,i,r){var s=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===e?i.comp.compInterface(t.p.v):s()}}return{createEffectsInterface:function(t,e){if(t.effectsManager){var i,r=[],s=t.data.ef,a=t.effectsManager.effectElements.length;for(i=0;i<a;i+=1)r.push(function t(s,e,i,r){function a(t){for(var e=s.ef,i=0,r=e.length;i<r;){if(t===e[i].nm||t===e[i].mn||t===e[i].ix)return 5===e[i].ty?o[i]:o[i]();i+=1}throw new Error}var n=propertyGroupFactory(a,i);var o=[];var h;var l=s.ef.length;for(h=0;h<l;h+=1)5===s.ef[h].ty?o.push(t(s.ef[h],e.effectElements[h],e.effectElements[h].propertyGroup,r)):o.push(p(e.effectElements[h],s.ef[h].ty,r,n));"ADBE Color Control"===s.mn&&Object.defineProperty(a,"color",{get:function(){return o[0]()}});Object.defineProperties(a,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:n}});a.enabled=0!==s.en;a.active=a.enabled;return a}(s[i],t.effectsManager.effectElements[i],e,t));var n=t.data.ef||[],o=function(t){for(i=0,a=n.length;i<a;){if(t===n[i].nm||t===n[i].mn||t===n[i].ix)return r[i];i+=1}return null};return Object.defineProperty(o,"numProperties",{get:function(){return n.length}}),o}return null}}}(),CompExpressionInterface=function(r){function t(t){for(var e=0,i=r.layers.length;e<i;){if(r.layers[e].nm===t||r.layers[e].ind===t)return r.elements[e].layerInterface;e+=1}return null}return Object.defineProperty(t,"_name",{value:r.data.nm}),(t.layer=t).pixelAspect=1,t.height=r.data.h||r.globalData.compSize.h,t.width=r.data.w||r.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/r.globalData.frameRate,t.displayStartTime=0,t.numLayers=r.layers.length,t},ShapePathInterface=function(t,e,i){var r=e.sh;function s(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?s.path:null}e=propertyGroupFactory(s,i);return r.setGroupProperty(PropertyInterface("Path",e)),Object.defineProperties(s,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),s},ShapeExpressionInterface=function(){function n(t,e,i){for(var r=[],s=t?t.length:0,a=0;a<s;a+=1)"gr"===t[a].ty?r.push(function(t,e,i){function r(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}}r.propertyGroup=propertyGroupFactory(r,i);i=function(t,e,i){function r(t){for(var e=0,i=s.length;e<i;){if(s[e]._name===t||s[e].mn===t||s[e].propertyIndex===t||s[e].ix===t||s[e].ind===t)return s[e];e+=1}return"number"==typeof t?s[t-1]:null}r.propertyGroup=propertyGroupFactory(r,i),s=n(t.it,e.it,r.propertyGroup),r.numProperties=s.length;var s,i=o(t.it[t.it.length-1],e.it[e.it.length-1],r.propertyGroup);return r.transform=i,r.propertyIndex=t.cix,r._name=t.nm,r}(t,e,r.propertyGroup),e=o(t.it[t.it.length-1],e.it[e.it.length-1],r.propertyGroup);return r.content=i,r.transform=e,Object.defineProperty(r,"_name",{get:function(){return t.nm}}),r.numProperties=t.np,r.propertyIndex=t.ix,r.nm=t.nm,r.mn=t.mn,r}(t[a],e[a],i)):"fl"===t[a].ty?r.push(function(t,e,i){function r(t){return"Color"===t||"color"===t?r.color:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}(t[a],e[a],i)):"st"===t[a].ty?r.push(function(e,i,t){var r,t=propertyGroupFactory(o,t),s=propertyGroupFactory(void 0,t);var a=e.d?e.d.length:0,n={};for(r=0;r<a;r+=1)!function(t){Object.defineProperty(n,e.d[t].nm,{get:ExpressionPropertyInterface(i.d.dataProps[t].p)})}(r),i.d.dataProps[r].p.setGroupProperty(s);function o(t){return"Color"===t||"color"===t?o.color:"Opacity"===t||"opacity"===t?o.opacity:"Stroke Width"===t||"stroke width"===t?o.strokeWidth:null}return Object.defineProperties(o,{color:{get:ExpressionPropertyInterface(i.c)},opacity:{get:ExpressionPropertyInterface(i.o)},strokeWidth:{get:ExpressionPropertyInterface(i.w)},dash:{get:function(){return n}},_name:{value:e.nm},mn:{value:e.mn}}),i.c.setGroupProperty(PropertyInterface("Color",t)),i.o.setGroupProperty(PropertyInterface("Opacity",t)),i.w.setGroupProperty(PropertyInterface("Stroke Width",t)),o}(t[a],e[a],i)):"tm"===t[a].ty?r.push(function(e,t,i){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var s=propertyGroupFactory(r,i);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",s)),t.e.setGroupProperty(PropertyInterface("End",s)),t.o.setGroupProperty(PropertyInterface("Offset",s)),r.propertyIndex=e.ix,r.propertyGroup=i,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"tr"!==t[a].ty&&("el"===t[a].ty?r.push(function(e,t,i){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}i=propertyGroupFactory(r,i),r.propertyIndex=e.ix,t="tm"===t.sh.ty?t.sh.prop:t.sh;return t.s.setGroupProperty(PropertyInterface("Size",i)),t.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(t.s)},position:{get:ExpressionPropertyInterface(t.p)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"sr"===t[a].ty?r.push(function(e,t,i){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:null:r.innerRadius}i=propertyGroupFactory(r,i),t="tm"===t.sh.ty?t.sh.prop:t.sh;r.propertyIndex=e.ix,t.or.setGroupProperty(PropertyInterface("Outer Radius",i)),t.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),t.pt.setGroupProperty(PropertyInterface("Points",i)),t.p.setGroupProperty(PropertyInterface("Position",i)),t.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(t.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),t.is.setGroupProperty(PropertyInterface("Inner Roundness",i)));return Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(t.p)},rotation:{get:ExpressionPropertyInterface(t.r)},points:{get:ExpressionPropertyInterface(t.pt)},outerRadius:{get:ExpressionPropertyInterface(t.or)},outerRoundness:{get:ExpressionPropertyInterface(t.os)},innerRadius:{get:ExpressionPropertyInterface(t.ir)},innerRoundness:{get:ExpressionPropertyInterface(t.is)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"sh"===t[a].ty?r.push(ShapePathInterface(t[a],e[a],i)):"rc"===t[a].ty?r.push(function(e,t,i){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}i=propertyGroupFactory(r,i),t="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,t.p.setGroupProperty(PropertyInterface("Position",i)),t.s.setGroupProperty(PropertyInterface("Size",i)),t.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(t.p)},roundness:{get:ExpressionPropertyInterface(t.r)},size:{get:ExpressionPropertyInterface(t.s)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"rd"===t[a].ty?r.push(function(e,t,i){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}i=propertyGroupFactory(r,i);return r.propertyIndex=e.ix,t.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(t.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"rp"===t[a].ty?r.push(function(e,t,i){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}i=propertyGroupFactory(r,i);return r.propertyIndex=e.ix,t.c.setGroupProperty(PropertyInterface("Copies",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(t.c)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}(t[a],e[a],i)):"gf"===t[a].ty?r.push(function(t,e,i){function r(t){return"Start Point"===t||"start point"===t?r.startPoint:"End Point"===t||"end point"===t?r.endPoint:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",i)),e.e.setGroupProperty(PropertyInterface("End Point",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}(t[a],e[a],i)):r.push((t[a],e[a],function(){return null})));return r}function o(e,t,i){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var s=propertyGroupFactory(r,i);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",s)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",s)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",s)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",s)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",s)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",s)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",s))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",s)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=i,r}return function(t,e,r){var s;function i(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?r:s[t-1];for(var e=0,i=s.length;e<i;){if(s[e]._name===t)return s[e];e+=1}return null}return i.propertyGroup=propertyGroupFactory(i,function(){return r}),s=n(t,e,i.propertyGroup),i.numProperties=s.length,i._name="Contents",i}}(),TextExpressionInterface=function(e){var i;function r(t){return"ADBE Text Document"!==t?null:r.sourceText}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var t=e.textProperty.currentData.t;return void 0!==t&&(e.textProperty.currentData.t=void 0,(i=new String(t)).value=t||new String(t)),i}}),r},getBlendMode=function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}}();function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){for(var i,r=t.ef||[],s=(this.effectElements=[],r.length),a=0;a<s;a+=1)i=new GroupEffect(r[a],e),this.effectElements.push(i)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function _typeof$2(t){return(_typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);for(var i,r=this.data.ef.length,s=this.data.ef,a=0;a<r;a+=1){switch(i=null,s[a].ty){case 0:i=new SliderEffect(s[a],e,this);break;case 1:i=new AngleEffect(s[a],e,this);break;case 2:i=new ColorEffect(s[a],e,this);break;case 3:i=new PointEffect(s[a],e,this);break;case 4:case 7:i=new CheckboxEffect(s[a],e,this);break;case 10:i=new LayerIndexEffect(s[a],e,this);break;case 11:i=new MaskIndexEffect(s[a],e,this);break;case 5:i=new EffectsManager(s[a],e,this);break;default:i=new NoValueEffect(s[a],e,this)}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){for(var i=this.dynamicProperties.length,r=0;r<i;r+=1)(e||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}};var FootageInterface=function(){function i(t){function e(t){return"Outline"===t?e.outlineInterface():null}function i(t){if(a[t])return"object"===_typeof$2(a=a[s=t])?i:a;var e=t.indexOf(s);return-1!==e?(t=parseInt(t.substr(e+s.length),10),"object"===_typeof$2(a=a[t])?i:a):""}var r,s,a;return e._name="Outline",e.outlineInterface=(s="",a=(r=t).getFootageData(),function(){return s="",a=r.getFootageData(),i}),e}return function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=i(t),e}}();function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;for(var r,s,a,n,o,h=this.globalData.defs,l=this.masksProperties?this.masksProperties.length:0,p=(this.viewData=createSizedArray(l),this.solidPath="",this.masksProperties),m=0,f=[],c=createElementID(),d="clipPath",u="clip-path",y=0;y<l;y+=1)if(("a"!==p[y].mode&&"n"!==p[y].mode||p[y].inv||100!==p[y].o.k||p[y].o.x)&&(u=d="mask"),"s"!==p[y].mode&&"i"!==p[y].mode||0!==m?s=null:((s=createNS("rect")).setAttribute("fill","#ffffff"),s.setAttribute("width",this.element.comp.data.w||0),s.setAttribute("height",this.element.comp.data.h||0),f.push(s)),r=createNS("path"),"n"===p[y].mode)this.viewData[y]={op:PropertyFactory.getProp(this.element,p[y].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[y],3),elem:r,lastPath:""},h.appendChild(r);else{if(m+=1,r.setAttribute("fill","s"===p[y].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==p[y].x.k?(u=d="mask",n=PropertyFactory.getProp(this.element,p[y].x,0,null,this.element),o=createElementID(),(P=createNS("filter")).setAttribute("id",o),(a=createNS("feMorphology")).setAttribute("operator","erode"),a.setAttribute("in","SourceGraphic"),a.setAttribute("radius","0"),P.appendChild(a),h.appendChild(P),r.setAttribute("stroke","s"===p[y].mode?"#000000":"#ffffff")):n=a=null,this.storedData[y]={elem:r,x:n,expan:a,lastPath:"",lastOperator:"",filterId:o,lastRadius:0},"i"===p[y].mode){for(var g=f.length,v=createNS("g"),b=0;b<g;b+=1)v.appendChild(f[b]);var P=createNS("mask");P.setAttribute("mask-type","alpha"),P.setAttribute("id",c+"_"+m),P.appendChild(r),h.appendChild(P),v.setAttribute("mask","url("+getLocationHref()+"#"+c+"_"+m+")"),f.length=0,f.push(v)}else f.push(r);p[y].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[y]={elem:r,lastPath:"",op:PropertyFactory.getProp(this.element,p[y].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[y],3),invRect:s},this.viewData[y].prop.k||this.drawPath(p[y],this.viewData[y].prop.v,this.viewData[y])}for(this.maskElement=createNS(d),l=f.length,y=0;y<l;y+=1)this.maskElement.appendChild(f[y]);0<m&&(this.maskElement.setAttribute("id",c),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+c+")"),h.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder?this._currentTime=t/this.data.sr:(t=this.tm.v,this._currentTime=t),this._volume=this.lv.v[0];t=this._volume*this._volumeMultiplier;this._previousVolume!==t&&(this._previousVolume=t,this.audio.volume(t))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||.1<Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek()))&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,i,r=this.layers.length;for(this.completeLayers=!0,e=r-1;0<=e;--e)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){for(var t=this.layers.length,e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;for(var e,i=t.length,r=this.layers.length,s=0;s<i;s+=1)for(e=0;e<r;){if(this.layers[e].id===t[s].id){this.layers[e]=t[s];break}e+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var r=this.elements,s=this.layers,a=0,n=s.length;a<n;)s[a].ind==e&&(r[a]&&!0!==r[a]?(i.push(r[a]),r[a].setAsParent(),void 0!==s[a].parent?this.buildElementParenting(t,s[a].parent,i):t.setHierarchy(i)):(this.buildItem(a),this.addPendingElement(t))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){for(var e,i=t.length,r=0;r<i;r+=1)t[r].xt&&((e=this.createComp(t[r])).initExpressions(),this.globalData.projectInterface.registerComposition(e))},BaseRenderer.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else for(var r=this.elements.length,s=0;s<r;s+=1)if(this.elements[s].data.nm===i){e=this.elements[s];break}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<r;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<r;i+=1)t=this.hierarchy[i].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){for(var e=[],i=(e.push(this.finalTransform),!0),r=this.comp;i;)r.finalTransform?(r.data.hasMask&&e.splice(0,0,r.finalTransform),r=r.comp):i=!1;for(var s,a=e.length,n=0;n<a;n+=1)s=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){for(var e,i=this.element.finalTransform.mat,r=this.masksProperties.length,s=0;s<r;s+=1)(this.viewData[s].prop._mdf||t)&&this.drawPath(this.masksProperties[s],this.viewData[s].prop.v,this.viewData[s]),(this.viewData[s].op._mdf||t)&&this.viewData[s].elem.setAttribute("fill-opacity",this.viewData[s].op.v),"n"!==this.masksProperties[s].mode&&(this.viewData[s].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[s].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[s].x&&(this.storedData[s].x._mdf||t)&&(e=this.storedData[s].expan,this.storedData[s].x.v<0?("erode"!==this.storedData[s].lastOperator&&(this.storedData[s].lastOperator="erode",this.storedData[s].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[s].filterId+")")),e.setAttribute("radius",-this.storedData[s].x.v)):("dilate"!==this.storedData[s].lastOperator&&(this.storedData[s].lastOperator="dilate",this.storedData[s].elem.setAttribute("filter",null)),this.storedData[s].elem.setAttribute("stroke-width",2*this.storedData[s].x.v))))},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return(t+=" h"+this.globalData.compSize.w)+(" v"+this.globalData.compSize.h)+(" h-"+this.globalData.compSize.w)+(" v-"+this.globalData.compSize.h+" ")},MaskElement.prototype.drawPath=function(t,e,i){for(var r,s=" M"+e.v[0][0]+","+e.v[0][1],a=e._length,n=1;n<a;n+=1)s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1];e.c&&1<a&&(s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==s&&(r="",i.elem&&(e.c&&(r=t.inv?this.solidPath+s:s),i.elem.setAttribute("d",r)),i.lastPath=s)},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};return t.createFilter=function(t,e){var i=createNS("filter");i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%"));return i},t.createAlphaToLuminanceFilter=function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t},t}(),featureSupport=function(){var t={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,i="SourceGraphic",r=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),n=0;for(this.filters=[],e=0;e<r;e+=1){o=null;var o,h=t.data.ef[e].ty;registeredEffects[h]&&(o=new registeredEffects[h].effect(a,t.effectsManager.effectElements[e],t,idPrefix+n,i),i=idPrefix+n,registeredEffects[h].countsAsEffect&&(n+=1)),o&&this.filters.push(o)}n&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,i){registeredEffects[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){for(var e=this.filters.length,i=0;i<e;i+=1)this.filters[i].renderFrame(t)},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,i,r,s,a,n,o=null;this.data.td?3==this.data.td||1==this.data.td?((e=createNS("mask")).setAttribute("id",this.layerId),e.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),e.appendChild(this.layerElement),this.globalData.defs.appendChild(o=e),featureSupport.maskType||1!=this.data.td||(e.setAttribute("mask-type","luminance"),s=createElementID(),a=filtersFactory.createFilter(s),this.globalData.defs.appendChild(a),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(t=createNS("g")).appendChild(this.layerElement),o=t,e.appendChild(t),t.setAttribute("filter","url("+getLocationHref()+"#"+s+")"))):2==this.data.td&&((e=createNS("mask")).setAttribute("id",this.layerId),e.setAttribute("mask-type","alpha"),i=createNS("g"),e.appendChild(i),s=createElementID(),a=filtersFactory.createFilter(s),(n=createNS("feComponentTransfer")).setAttribute("in","SourceGraphic"),a.appendChild(n),(r=createNS("feFuncA")).setAttribute("type","table"),r.setAttribute("tableValues","1.0 0.0"),n.appendChild(r),this.globalData.defs.appendChild(a),(n=createNS("rect")).setAttribute("width",this.comp.data.w),n.setAttribute("height",this.comp.data.h),n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("fill","#ffffff"),n.setAttribute("opacity","0"),i.setAttribute("filter","url("+getLocationHref()+"#"+s+")"),i.appendChild(n),i.appendChild(this.layerElement),o=i,featureSupport.maskType||(e.setAttribute("mask-type","luminance"),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),t=createNS("g"),i.appendChild(n),t.appendChild(this.layerElement),o=t,i.appendChild(t)),this.globalData.defs.appendChild(e)):this.data.tt?(this.matteElement.appendChild(this.layerElement),o=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.ty||this.data.hd||(r=createNS("clipPath"),(s=createNS("path")).setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z"),a=createElementID(),r.setAttribute("id",a),r.appendChild(s),this.globalData.defs.appendChild(r),this.checkMasks()?((n=createNS("g")).setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),n.appendChild(this.layerElement),this.transformedElement=n,o?o.appendChild(this.transformedElement):this.baseElement=this.transformedElement):this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")")),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){for(var e=this.shapeModifiers.length,i=0;i<e;i+=1)this.shapeModifiers[i].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){for(var t=this.shapes.length,e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;0<=e&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);--e);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i<r;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,r=i.length;r;)if(i[--r].elem===t)return void(i[r].pos=e);i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var r=0,s=t.length;r<s;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,i,r){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);for(var s,a=e.length||0,n=0;n<a;n+=1)s=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=s.k||this.k,this.dataProps[n]={n:e[n].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var r=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,r=this.o.length/2;i<r;){if(.01<Math.abs(t[4*i]-t[4*e+2*i]))return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){for(var e,i,r=4*this.data.p,s=0;s<r;s+=1)e=s%4==0?100:255,i=Math.round(this.prop.v[s]*e),this.c[s]!==i&&(this.c[s]=i,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,s=4*this.data.p;s<r;s+=1)e=s%2==0?100:1,i=s%2==0?Math.round(100*this.prop.v[s]):this.prop.v[s],this.o[s-4*this.data.p]!==i&&(this.o[s-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){for(var i,r=createElementID(),s=createNS(1===e.t?"linearGradient":"radialGradient"),a=(s.setAttribute("id",r),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse"),[]),n=4*e.g.p,o=0;o<n;o+=4)i=createNS("stop"),s.appendChild(i),a.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=s,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){for(var i,r,s=createNS("mask"),a=createNS("path"),n=(s.appendChild(a),createElementID()),o=createElementID(),h=(s.setAttribute("id",o),createNS(1===t.t?"linearGradient":"radialGradient")),l=(h.setAttribute("id",n),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),r=(t.g.k.k[0].s||t.g.k.k).length,this.stops),p=4*t.g.p;p<r;p+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(i),l.push(i);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),"gs"===t.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&a.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=s,this.ost=l,this.maskId=o,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,r){if(0===e)return"";for(var s=t.o,a=t.i,n=t.v,o=" M"+r.applyToPointStringified(n[0][0],n[0][1]),h=1;h<e;h+=1)o+=" C"+r.applyToPointStringified(s[h-1][0],s[h-1][1])+" "+r.applyToPointStringified(a[h][0],a[h][1])+" "+r.applyToPointStringified(n[h][0],n[h][1]);return o=i&&e?o+(" C"+r.applyToPointStringified(s[h-1][0],s[h-1][1])+" "+r.applyToPointStringified(a[0][0],a[0][1])+" "+r.applyToPointStringified(n[0][0],n[0][1]))+"z":o},SVGElementsRenderer=function(){var y=new Matrix,g=new Matrix;function e(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function i(){}function r(t,e,i){for(var r,s,a,n,o,h,l,p,m,f,c=e.styles.length,d=e.lvl,u=0;u<c;u+=1){if(n=e.sh._mdf||i,e.styles[u].lvl<d){for(l=g.reset(),m=d-e.styles[u].lvl,f=e.transformers.length-1;!n&&0<m;)n=e.transformers[f].mProps._mdf||n,--m,--f;if(n)for(m=d-e.styles[u].lvl,f=e.transformers.length-1;0<m;)p=e.transformers[f].mProps.v.props,l.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),--m,--f}else l=y;if(s=(h=e.sh.paths)._length,n){for(a="",r=0;r<s;r+=1)(o=h.shapes[r])&&o._length&&(a+=buildShapeString(o,o._length,o.c,l));e.caches[u]=a}else a=e.caches[u];e.styles[u].d+=!0===t.hd?"":a,e.styles[u]._mdf=n||e.styles[u]._mdf}}function s(t,e,i){var r=e.style;(e.c._mdf||i)&&r.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,i){n(t,e,i),o(0,e,i)}function n(t,e,i){var r,s,a,n,o=e.gf,h=e.g._hasOpacity,l=e.s.v,p=e.e.v;if((e.o._mdf||i)&&(a="gf"===t.ty?"fill-opacity":"stroke-opacity",e.style.pElem.setAttribute(a,e.o.v)),(e.s._mdf||i)&&(n="x1"==(a=1===t.t?"x1":"cx")?"y1":"cy",o.setAttribute(a,l[0]),o.setAttribute(n,l[1]),h&&!e.g._collapsable&&(e.of.setAttribute(a,l[0]),e.of.setAttribute(n,l[1]))),e.g._cmdf||i)for(var m=e.cst,f=e.g.c,c=m.length,d=0;d<c;d+=1)(r=m[d]).setAttribute("offset",f[4*d]+"%"),r.setAttribute("stop-color","rgb("+f[4*d+1]+","+f[4*d+2]+","+f[4*d+3]+")");if(h&&(e.g._omdf||i)){var u=e.g.o;for(c=(m=e.g._collapsable?e.cst:e.ost).length,d=0;d<c;d+=1)r=m[d],e.g._collapsable||r.setAttribute("offset",u[2*d]+"%"),r.setAttribute("stop-opacity",u[2*d+1])}1===t.t?(e.e._mdf||i)&&(o.setAttribute("x2",p[0]),o.setAttribute("y2",p[1]),h&&!e.g._collapsable&&(e.of.setAttribute("x2",p[0]),e.of.setAttribute("y2",p[1]))):((e.s._mdf||e.e._mdf||i)&&(s=Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)),o.setAttribute("r",s),h&&!e.g._collapsable&&e.of.setAttribute("r",s)),(e.e._mdf||e.h._mdf||e.a._mdf||i)&&(s=s||Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)),a=Math.atan2(p[1]-l[1],p[0]-l[0]),1<=(n=e.h.v)?n=.99:n<=-1&&(n=-.99),t=s*n,i=Math.cos(a+e.a.v)*t+l[0],p=Math.sin(a+e.a.v)*t+l[1],o.setAttribute("fx",i),o.setAttribute("fy",p),h&&!e.g._collapsable&&(e.of.setAttribute("fx",i),e.of.setAttribute("fy",p))))}function o(t,e,i){var r=e.style,s=e.d;s&&(s._mdf||i)&&s.dashStr&&(r.pElem.setAttribute("stroke-dasharray",s.dashStr),r.pElem.setAttribute("stroke-dashoffset",s.dashoffset[0])),e.c&&(e.c._mdf||i)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return s;case"gf":return n;case"gs":return a;case"st":return o;case"sh":case"el":case"rc":case"sr":return r;case"tr":return e;case"no":return i;default:return null}}}}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,r,s,a){this.o=t,this.sw=e,this.sc=i,this.fc=r,this.m=s,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!r,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){for(var t,e,i,r=this.shapes.length,s=this.stylesList.length,a=[],n=!1,o=0;o<s;o+=1){for(i=this.stylesList[o],n=!1,t=a.length=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(i)&&(a.push(e),n=e._isAnimated||n);1<a.length&&n&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,e=new SVGStyleData(t,e),r=e.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,e):"fl"===t.ty?i=new SVGFillStyleData(this,t,e):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,e),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new SVGNoStyleData(this,t,e)),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(e),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var r=4;"rc"===t.ty?r=5:"el"===t.ty?r=6:"sr"===t.ty&&(r=7);e=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,r,this));return this.shapes.push(e),this.addShapeToModifiers(e),this.addToAnimatedContents(t,e),e},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,r=this.animatedContents.length;i<r;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){for(var e=t.styles,i=this.stylesList.length,r=0;r<i;r+=1)this.stylesList[r].closed||e.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;for(var t=this.itemsData.length,e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,r,s,a,n){for(var o,h,l,p,m,f=[].concat(a),c=t.length-1,d=[],u=[],y=c;0<=y;--y){if((m=this.searchProcessedElement(t[y]))?e[y]=i[m-1]:t[y]._render=n,"fl"===t[y].ty||"st"===t[y].ty||"gf"===t[y].ty||"gs"===t[y].ty||"no"===t[y].ty)m?e[y].style.closed=!1:e[y]=this.createStyleElement(t[y],s),t[y]._render&&e[y].style.pElem.parentNode!==r&&r.appendChild(e[y].style.pElem),d.push(e[y].style);else if("gr"===t[y].ty){if(m)for(h=e[y].it.length,o=0;o<h;o+=1)e[y].prevViewData[o]=e[y].it[o];else e[y]=this.createGroupElement(t[y]);this.searchShapes(t[y].it,e[y].it,e[y].prevViewData,e[y].gr,s+1,f,n),t[y]._render&&e[y].gr.parentNode!==r&&r.appendChild(e[y].gr)}else"tr"===t[y].ty?(m||(e[y]=this.createTransformElement(t[y],r)),l=e[y].transform,f.push(l)):"sh"===t[y].ty||"rc"===t[y].ty||"el"===t[y].ty||"sr"===t[y].ty?(m||(e[y]=this.createShapeElement(t[y],f,s)),this.setElementStyles(e[y])):"tm"===t[y].ty||"rd"===t[y].ty||"ms"===t[y].ty||"pb"===t[y].ty?(m?(p=e[y]).closed=!1:((p=ShapeModifiers.getModifier(t[y].ty)).init(this,t[y]),e[y]=p,this.shapeModifiers.push(p)),u.push(p)):"rp"===t[y].ty&&(m?(p=e[y]).closed=!0:(p=ShapeModifiers.getModifier(t[y].ty),(e[y]=p).init(this,t,y,e),this.shapeModifiers.push(p),n=!1),u.push(p));this.addProcessedElement(t[y],y+1)}for(c=d.length,y=0;y<c;y+=1)d[y].closed=!0;for(c=u.length,y=0;y<c;y+=1)u[y].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){for(var t,e=this.animatedContents.length,i=0;i<e;i+=1)t=this.animatedContents[i],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,i,r,s,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1;var n=this._mdf.p=!1;return this.o!==t&&(this.o=t,n=this._mdf.o=!0),this.sw!==e&&(this.sw=e,n=this._mdf.sw=!0),this.sc!==i&&(this.sc=i,n=this._mdf.sc=!0),this.fc!==r&&(this.fc=r,n=this._mdf.fc=!0),this.m!==s&&(this.m=s,n=this._mdf.m=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,n=this._mdf.p=!0),n},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=1<this.data.d.k.length,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0,this._mdf=!1;for(var r=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s,a=0;a<r;a+=1)s=i!==this.keysIndex?this.effectsSequence[a](s,s.t):this.effectsSequence[a](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,r=t.length;i<=r-1&&!(i===r-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,r=[],s=0,a=t.length,n=!1;s<a;)e=t.charCodeAt(s),FontManager.isCombinedCharacter(e)?r[r.length-1]+=t.charAt(s):55296<=e&&e<=56319?56320<=(i=t.charCodeAt(s+1))&&i<=57343?(n||FontManager.isModifier(e,i)?(r[r.length-1]+=t.substr(s,2),n=!1):r.push(t.substr(s,2)),s+=1):r.push(t.charAt(s)):56319<e?(i=t.charCodeAt(s+1),FontManager.isZeroWidthJoiner(e,i)?(n=!0,r[r.length-1]+=t.substr(s,2),s+=1):r.push(t.charAt(s))):FontManager.isZeroWidthJoiner(e)?(r[r.length-1]+=t.charAt(s),n=!0):r.push(t.charAt(s)),s+=1;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,r,s,a=this.elem.globalData.fontManager,n=this.data,o=[],h=0,l=n.m.g,p=0,m=0,f=0,c=[],d=0,u=0,y=a.getFontByName(t.f),g=0,v=getFontProperties(y),b=(t.fWeight=v.weight,t.fStyle=v.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),S=t.finalText.length,t.finalLineHeight=t.lh,t.tr/1e3*t.finalSize);if(t.sz)for(var P=!0,R=t.sz[0],L=t.sz[1];P;){for(var E,x=0,d=0,S=(E=this.buildFinalText(t.t)).length,b=t.tr/1e3*t.finalSize,_=-1,C=0;C<S;C+=1)s=E[C].charCodeAt(0),e=!1," "===E[C]?_=C:13!==s&&3!==s||(e=!(d=0),x+=t.finalLineHeight||1.2*t.finalSize),d=R<d+(g=a.chars?(r=a.getCharData(E[C],y.fStyle,y.fFamily),e?0:r.w*t.finalSize/100):a.measureText(E[C],t.f,t.finalSize))&&" "!==E[C]?(-1===_?S+=1:C=_,x+=t.finalLineHeight||1.2*t.finalSize,E.splice(C,_===C?1:0,"\r"),_=-1,0):d+g+b;x+=y.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&L<x?(--t.finalSize,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=E,S=t.finalText.length,P=!1)}d=-b;var A,g=0,T=0;for(C=0;C<S;C+=1)if(e=!1,13===(s=(A=t.finalText[C]).charCodeAt(0))||3===s?(T=0,c.push(d),u=u<d?d:u,d=-2*b,e=!(i=""),f+=1):i=A,g=a.chars?(r=a.getCharData(A,y.fStyle,a.getFontByName(t.f).fFamily),e?0:r.w*t.finalSize/100):a.measureText(i,t.f,t.finalSize)," "===A?T+=g+b:(d+=g+b+T,T=0),o.push({l:g,an:g,add:p,n:e,anIndexes:[],val:i,line:f,animatorJustifyOffset:0}),2==l){if(p+=g,""===i||" "===i||C===S-1){for(""!==i&&" "!==i||(p-=g);m<=C;)o[m].an=p,o[m].ind=h,o[m].extra=g,m+=1;h+=1,p=0}}else if(3==l){if(p+=g,""===i||C===S-1){for(""===i&&(p-=g);m<=C;)o[m].an=p,o[m].ind=h,o[m].extra=g,m+=1;p=0,h+=1}}else o[h].ind=h,o[h].extra=0,h+=1;if(t.l=o,u=u<d?d:u,c.push(d),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=u,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=c;for(var D,k,M,F,w=n.a,G=w.length,I=[],V=0;V<G;V+=1){for((D=w[V]).a.sc&&(t.strokeColorAnim=!0),D.a.sw&&(t.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(t.fillColorAnim=!0),M=D.s.b,C=F=0;C<S;C+=1)(k=o[C]).anIndexes[V]=F,(1==M&&""!==k.val||2==M&&""!==k.val&&" "!==k.val||3==M&&(k.n||" "==k.val||C==S-1)||4==M&&(k.n||C==S-1))&&(1===D.s.rn&&I.push(F),F+=1);n.a[V].s.totalChars=F;var B,z=-1;if(1===D.s.rn)for(C=0;C<S;C+=1)z!=(k=o[C]).anIndexes[V]&&(z=k.anIndexes[V],B=I.splice(Math.floor(Math.random()*I.length),1)[0]),k.anIndexes[V]=B}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=y.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s),i=this.copyData(i,t);this.data.d.k[e].s=i,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){t=this.data.d.k[t].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var o=Math.max,h=Math.min,l=Math.floor;function r(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),"e"in e?this.e=PropertyFactory.getProp(t,e.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(t){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var e,i=0,r=0,s=1,a=1,i=(0<this.ne.v?i=this.ne.v/100:r=-this.ne.v/100,0<this.xe.v?s=1-this.xe.v/100:a=1+this.xe.v/100,BezierFactory.getBezierEasing(i,r,s,a).get),r=0,s=this.finalS,a=this.finalE,n=this.data.sh;return r=2===n?i(r=a===s?a<=t?1:0:o(0,h(.5/(a-s)+(t-s)/(a-s),1))):3===n?i(r=a===s?a<=t?0:1:1-o(0,h(.5/(a-s)+(t-s)/(a-s),1))):4===n?(a===s?r=0:(r=o(0,h(.5/(a-s)+(t-s)/(a-s),1)))<.5?r*=2:r=1-2*(r-.5),i(r)):i(r=5===n?a===s?0:(e=-(i=a-s)/2+(t=h(o(0,t+.5-s),a-s)),i=i/2,Math.sqrt(1-e*e/(i*i))):6===n?a===s?0:(t=h(o(0,t+.5-s),a-s),(1+Math.cos(Math.PI+2*Math.PI*t/(a-s)))/2):t>=l(s)?o(0,h(t-s<0?h(a,1)-(s-t):a-t,1)):r),100!==this.sm.v&&(r<(i=.5-.5*(e=0===(e=.01*this.sm.v)?1e-8:e))?r=0:1<(r=(r-i)/e)&&(r=1)),r*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,e=this.o.v/t,i=this.s.v/t+e,t=this.e.v/t+e;t<i&&(e=i,i=t,t=e),this.finalS=i,this.finalE=t}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(t,e,i){return new r(t,e)}}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,i):r,rx:a.rx?s(t,a.rx,0,degToRads,i):r,ry:a.ry?s(t,a.ry,0,degToRads,i):r,sk:a.sk?s(t,a.sk,0,degToRads,i):r,sa:a.sa?s(t,a.sa,0,degToRads,i):r,s:a.s?s(t,a.s,1,.01,i):r,a:a.a?s(t,a.a,1,0,i):r,o:a.o?s(t,a.o,0,.01,i):r,p:a.p?s(t,a.p,1,0,i):r,sw:a.sw?s(t,a.sw,0,0,i):r,sc:a.sc?s(t,a.sc,1,0,i):r,fc:a.fc?s(t,a.fc,1,0,i):r,fh:a.fh?s(t,a.fh,0,0,i):r,fs:a.fs?s(t,a.fs,0,.01,i):r,fb:a.fb?s(t,a.fb,0,.01,i):r,t:a.t?s(t,a.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){for(var t,e=this._textData.a.length,i=PropertyFactory.getProp,r=0;r<e;r+=1)t=this._textData.a[r],this._animatorsData[r]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,R){if(this.lettersChangedFlag=R,this._mdf||this._isFirstFrame||R||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var e,i,r,L,s,a,n,o,h,G,l,z,p,m=this._moreOptions.alignment.v,f=this._animatorsData,c=this._textData,d=this.mHelper,N=this._renderType,O=this.renderedLetters.length,u=t.l;if(this._hasMaskedPath){if(p=this._pathData.m,!this._pathData.n||this._pathData._mdf){for(var y,g=p.v,v={tLength:0,segments:[]},b=(g=this._pathData.r.v?g.reverse():g)._length-1,P=l=0;P<b;P+=1)y=bez.buildBezierData(g.v[P],g.v[P+1],[g.o[P][0]-g.v[P][0],g.o[P][1]-g.v[P][1]],[g.i[P+1][0]-g.v[P+1][0],g.i[P+1][1]-g.v[P+1][1]]),v.tLength+=y.segmentLength,v.segments.push(y),l+=y.segmentLength;P=b,p.v.c&&(y=bez.buildBezierData(g.v[P],g.v[0],[g.o[P][0]-g.v[P][0],g.o[P][1]-g.v[P][1]],[g.i[0][0]-g.v[0][0],g.i[0][1]-g.v[0][1]]),v.tLength+=y.segmentLength,v.segments.push(y),l+=y.segmentLength),this._pathData.pi=v}if(v=this._pathData.pi,e=this._pathData.f.v,s=1,L=!(r=a=0),h=v.segments,e<0&&p.v.c)for(v.tLength<Math.abs(e)&&(e=-Math.abs(e)%v.tLength),s=(o=h[a=h.length-1].points).length-1;e<0;)e+=o[s].partialLength,--s<0&&(s=(o=h[--a].points).length-1);n=(o=h[a].points)[s-1],G=(i=o[s]).partialLength}b=u.length;var E,H,x,S,j,q,_,C,A,T,D,W,$,Y,X,K,k=0,J=0,Z=1.2*t.finalSize*.714,U=!0,M=f.length,F=-1,Q=e,tt=a,et=s,it=-1,rt="",st=this.defaultPropsArray;if(2===t.j||1===t.j){var w=0,at=0,nt=2===t.j?-.5:-1,I=0,ot=!0;for(P=0;P<b;P+=1)if(u[P].n){for(w&&(w+=at);I<P;)u[I].animatorJustifyOffset=w,I+=1;ot=!(w=0)}else{for(B=0;B<M;B+=1)(E=f[B].a).t.propType&&(ot&&2===t.j&&(at+=E.t.v*nt),(x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars)).length?w+=E.t.v*x[0]*nt:w+=E.t.v*x*nt);ot=!1}for(w&&(w+=at);I<P;)u[I].animatorJustifyOffset=w,I+=1}for(P=0;P<b;P+=1){if(d.reset(),_=1,u[P].n)k=0,J=J+t.yOffset+(U?1:0),e=Q,U=!1,this._hasMaskedPath&&(n=(o=h[a=tt].points)[(s=et)-1],G=(i=o[s]).partialLength,r=0),X=W=Y=rt="",st=this.defaultPropsArray;else{if(this._hasMaskedPath){if(it!==u[P].line){switch(t.j){case 1:e+=l-t.lineWidths[u[P].line];break;case 2:e+=(l-t.lineWidths[u[P].line])/2}it=u[P].line}F!==u[P].ind&&(u[F]&&(e+=u[F].extra),e+=u[P].an/2,F=u[P].ind),e+=m[0]*u[P].an*.005;for(var V=0,B=0;B<M;B+=1)(E=f[B].a).p.propType&&((x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars)).length?V+=E.p.v[0]*x[0]:V+=E.p.v[0]*x),E.a.propType&&((x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars)).length?V+=E.a.v[0]*x[0]:V+=E.a.v[0]*x);for(L=!0,this._pathData.a.v&&(e=.5*u[0].an+(l-this._pathData.f.v-.5*u[0].an-.5*u[u.length-1].an)*F/(b-1),e+=this._pathData.f.v);L;)e+V<=r+G||!o?(z=(e+V-r)/i.partialLength,j=n.point[0]+(i.point[0]-n.point[0])*z,q=n.point[1]+(i.point[1]-n.point[1])*z,d.translate(-m[0]*u[P].an*.005,-m[1]*Z*.01),L=!1):o&&(r+=i.partialLength,(s+=1)>=o.length&&(s=0,o=h[a+=1]?h[a].points:p.v.c?h[a=s=0].points:(r-=i.partialLength,null)),o&&(n=i,G=(i=o[s]).partialLength));S=u[P].an/2-u[P].add,d.translate(-S,0,0)}else S=u[P].an/2-u[P].add,d.translate(-S,0,0),d.translate(-m[0]*u[P].an*.005,-m[1]*Z*.01,0);for(B=0;B<M;B+=1)(E=f[B].a).t.propType&&(x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars),0===k&&0===t.j||(this._hasMaskedPath?x.length?e+=E.t.v*x[0]:e+=E.t.v*x:x.length?k+=E.t.v*x[0]:k+=E.t.v*x));for(t.strokeWidthAnim&&(A=t.sw||0),t.strokeColorAnim&&(C=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(T=[t.fc[0],t.fc[1],t.fc[2]]),B=0;B<M;B+=1)(E=f[B].a).a.propType&&((x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars)).length?d.translate(-E.a.v[0]*x[0],-E.a.v[1]*x[1],E.a.v[2]*x[2]):d.translate(-E.a.v[0]*x,-E.a.v[1]*x,E.a.v[2]*x));for(B=0;B<M;B+=1)(E=f[B].a).s.propType&&((x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars)).length?d.scale(1+(E.s.v[0]-1)*x[0],1+(E.s.v[1]-1)*x[1],1):d.scale(1+(E.s.v[0]-1)*x,1+(E.s.v[1]-1)*x,1));for(B=0;B<M;B+=1){if(E=f[B].a,x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars),E.sk.propType&&(x.length?d.skewFromAxis(-E.sk.v*x[0],E.sa.v*x[1]):d.skewFromAxis(-E.sk.v*x,E.sa.v*x)),E.r.propType&&(x.length?d.rotateZ(-E.r.v*x[2]):d.rotateZ(-E.r.v*x)),E.ry.propType&&(x.length?d.rotateY(E.ry.v*x[1]):d.rotateY(E.ry.v*x)),E.rx.propType&&(x.length?d.rotateX(E.rx.v*x[0]):d.rotateX(E.rx.v*x)),E.o.propType&&(x.length?_+=(E.o.v*x[0]-_)*x[0]:_+=(E.o.v*x-_)*x),t.strokeWidthAnim&&E.sw.propType&&(x.length?A+=E.sw.v*x[0]:A+=E.sw.v*x),t.strokeColorAnim&&E.sc.propType)for(D=0;D<3;D+=1)x.length?C[D]+=(E.sc.v[D]-C[D])*x[0]:C[D]+=(E.sc.v[D]-C[D])*x;if(t.fillColorAnim&&t.fc){if(E.fc.propType)for(D=0;D<3;D+=1)x.length?T[D]+=(E.fc.v[D]-T[D])*x[0]:T[D]+=(E.fc.v[D]-T[D])*x;E.fh.propType&&(T=x.length?addHueToRGB(T,E.fh.v*x[0]):addHueToRGB(T,E.fh.v*x)),E.fs.propType&&(T=x.length?addSaturationToRGB(T,E.fs.v*x[0]):addSaturationToRGB(T,E.fs.v*x)),E.fb.propType&&(T=x.length?addBrightnessToRGB(T,E.fb.v*x[0]):addBrightnessToRGB(T,E.fb.v*x))}}for(B=0;B<M;B+=1)(E=f[B].a).p.propType&&(x=f[B].s.getMult(u[P].anIndexes[B],c.a[B].s.totalChars),this._hasMaskedPath?x.length?d.translate(0,E.p.v[1]*x[0],-E.p.v[2]*x[1]):d.translate(0,E.p.v[1]*x,-E.p.v[2]*x):x.length?d.translate(E.p.v[0]*x[0],E.p.v[1]*x[1],-E.p.v[2]*x[2]):d.translate(E.p.v[0]*x,E.p.v[1]*x,-E.p.v[2]*x));if(t.strokeWidthAnim&&(W=A<0?0:A),t.strokeColorAnim&&($="rgb("+Math.round(255*C[0])+","+Math.round(255*C[1])+","+Math.round(255*C[2])+")"),t.fillColorAnim&&t.fc&&(Y="rgb("+Math.round(255*T[0])+","+Math.round(255*T[1])+","+Math.round(255*T[2])+")"),this._hasMaskedPath)d.translate(0,-t.ls),d.translate(0,m[1]*Z*.01+J,0),this._pathData.p.v&&(K=(i.point[1]-n.point[1])/(i.point[0]-n.point[0]),K=180*Math.atan(K)/Math.PI,i.point[0]<n.point[0]&&(K+=180),d.rotate(-K*Math.PI/180)),d.translate(j,q,0),e-=m[0]*u[P].an*.005,u[P+1]&&F!==u[P+1].ind&&(e=(e+=u[P].an/2)+.001*t.tr*t.finalSize);else{switch(d.translate(k,J,0),t.ps&&d.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:d.translate(u[P].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[u[P].line]),0,0);break;case 2:d.translate(u[P].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[u[P].line])/2,0,0)}d.translate(0,-t.ls),d.translate(S,0,0),d.translate(m[0]*u[P].an*.005,m[1]*Z*.01,0),k+=u[P].l+.001*t.tr*t.finalSize}"html"===N?rt=d.toCSS():"svg"===N?rt=d.to2dCSS():st=[d.props[0],d.props[1],d.props[2],d.props[3],d.props[4],d.props[5],d.props[6],d.props[7],d.props[8],d.props[9],d.props[10],d.props[11],d.props[12],d.props[13],d.props[14],d.props[15]],X=_}O<=P?(H=new LetterProps(X,W,$,Y,rt,st),this.renderedLetters.push(H),O+=1,this.lettersChangedFlag=!0):(H=this.renderedLetters[P],this.lettersChangedFlag=H.update(X,W,$,Y,rt,st)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){for(var i,r=e.length,s="",a=0;a<r;a+=1)"sh"===e[a].ty&&(i=e[a].ks.k,s+=buildShapeString(i,i.i.length,!0,t));return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,r,s){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(r,s,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var t="",i=(e&&e.title&&(i=createNS("title"),r=createElementID(),i.setAttribute("id",r),i.textContent=e.title,this.svgElement.appendChild(i),t+=r),e&&e.description&&(i=createNS("desc"),r=createElementID(),i.setAttribute("id",r),i.textContent=e.description,this.svgElement.appendChild(i),t+=" "+r),t&&this.svgElement.setAttribute("aria-labelledby",t),createNS("defs")),r=(this.svgElement.appendChild(i),createNS("g"));this.svgElement.appendChild(r),this.layerElement=r,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:!0,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height},this.globalData={_mdf:!1,frameNum:-1,defs:i,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var t;this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1;for(this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);for(var i=this.masksProperties.length,r=!1,s=0;s<i;s+=1)"n"!==this.masksProperties[s].mode&&(r=!0),this.viewData[s]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[s],3);(this.hasMasks=r)&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(t,e,i,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];for(var s,a=4,n=("rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,a,t),i.length),o=0;o<n;o+=1)i[o].closed||(s={transforms:r.addTransformSequence(i[o].transforms),trNodes:[]},this.styledShapes.push(s),i[o].elements.push(s))}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,i)}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HBaseElement(){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initHierarchy();e=PropertyFactory.getProp;if(this.pe=e(this,t.pe,0,0,this),t.ks.p.s?(this.px=e(this,t.ks.p.x,1,0,this),this.py=e(this,t.ks.p.y,1,0,this),this.pz=e(this,t.ks.p.z,1,0,this)):this.p=e(this,t.ks.p,1,0,this),t.ks.a&&(this.a=e(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to)for(var r=t.ks.or.k.length,s=0;s<r;s+=1)t.ks.or.k[s].to=null,t.ks.or.k[s].ti=null;this.or=e(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=e(this,t.ks.rx,0,degToRads,this),this.ry=e(this,t.ks.ry,0,degToRads,this),this.rz=e(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,r=[],s="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(r.push(s),s=""):s+=t[e],e+=1;return r.push(s),r},SVGTextLottieElement.prototype.buildShapeData=function(t,e){var i;return t.shapes&&t.shapes.length&&(i=t.shapes[0]).it&&(i=i.it[i.it.length-1]).s&&(i.s.k[0]=e,i.s.k[1]=e),t},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,e,i=this.textProperty.currentData,r=(this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize),this.globalData.fontManager.getFontByName(i.f)),s=(r.fClass?this.layerElement.setAttribute("class",r.fClass):(this.layerElement.setAttribute("font-family",r.fFamily),t=i.fWeight,e=i.fStyle,this.layerElement.setAttribute("font-style",e),this.layerElement.setAttribute("font-weight",t)),this.layerElement.setAttribute("aria-label",i.t),i.l||[]),a=!!this.globalData.fontManager.chars,n=(P=s.length,this.mHelper),o=this.data.singleShape,h=0,l=0,p=!0,m=.001*i.tr*i.finalSize;if(!o||a||i.sz){var f,c,d,u,y=this.textSpans.length;for(E=0;E<P;E+=1)this.textSpans[E]||(this.textSpans[E]={span:null,childSpan:null,glyph:null}),a&&o&&0!==E||(f=E<y?this.textSpans[E].span:createNS(a?"g":"text"),y<=E&&(f.setAttribute("stroke-linecap","butt"),f.setAttribute("stroke-linejoin","round"),f.setAttribute("stroke-miterlimit","4"),this.textSpans[E].span=f,a&&(u=createNS("g"),f.appendChild(u),this.textSpans[E].childSpan=u),this.textSpans[E].span=f,this.layerElement.appendChild(f)),f.style.display="inherit"),n.reset(),o&&(s[E].n&&(h=-m,l=l+i.yOffset+(p?1:0),p=!1),this.applyTextPropertiesToMatrix(i,n,s[E].line,h,l),h=h+(s[E].l||0)+m),a?(c=1===(u=this.globalData.fontManager.getCharData(i.finalText[E],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t?new SVGCompElement(u.data,this.globalData,this):(c=emptyShapeData,new SVGShapeElement(c=u.data&&u.data.shapes?this.buildShapeData(u.data,i.finalSize):c,this.globalData,this)),this.textSpans[E].glyph&&(d=this.textSpans[E].glyph,this.textSpans[E].childSpan.removeChild(d.layerElement),d.destroy()),(this.textSpans[E].glyph=c)._debug=!0,c.prepareFrame(0),c.renderFrame(),this.textSpans[E].childSpan.appendChild(c.layerElement),1===u.t&&this.textSpans[E].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")):(o&&f.setAttribute("transform","translate("+n.props[12]+","+n.props[13]+")"),f.textContent=s[E].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));o&&f&&f.setAttribute("d","")}else{var g=this.textContainer,v="start";switch(i.j){case 1:v="end";break;case 2:v="middle";break;default:v="start"}g.setAttribute("text-anchor",v),g.setAttribute("letter-spacing",m);for(var b=this.buildTextContents(i.finalText),P=b.length,l=i.ps?i.ps[1]+i.ascent:0,E=0;E<P;E+=1)(f=this.textSpans[E].span||createNS("tspan")).textContent=b[E],f.setAttribute("x",0),f.setAttribute("y",l),f.style.display="inherit",g.appendChild(f),this.textSpans[E]||(this.textSpans[E]={span:null,glyph:null}),this.textSpans[E].span=f,l+=i.finalLineHeight;this.layerElement.appendChild(g)}for(;E<this.textSpans.length;)this.textSpans[E].span.style.display="none",E+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){var t;return this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged&&(this._sizeChanged=!1,t=this.layerElement.getBBox(),this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}),this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;for(var t,e,i,r=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l,a=s.length,n=0;n<a;n+=1)s[n].n||(t=r[n],e=this.textSpans[n].span,(i=this.textSpans[n].glyph)&&i.renderFrame(),t._mdf.m&&e.setAttribute("transform",t.m),t._mdf.o&&e.setAttribute("opacity",t.o),t._mdf.sw&&e.setAttribute("stroke-width",t.sw),t._mdf.sc&&e.setAttribute("stroke",t.sc),t._mdf.fc&&e.setAttribute("fill",t.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs,i=(this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t,createNS("clipPath")),r=createNS("rect"),s=(r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0),createElementID());i.setAttribute("id",s),i.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;for(var t=this.layers?this.layers.length:0,e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.buildItem=function(t){var e,i=this.elements;i[t]||99===this.layers[t].ty||(i[t]=!0,e=this.createItem(this.layers[t]),i[t]=e,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(e),e.initExpressions()),this.appendElementInPos(e,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?e.setMatte(i[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(e))))},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;0<=e;--e)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){t=t.getBaseElement();if(t){for(var i,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){this.tm._placeholder?this.renderedFrame=t/this.data.sr:((t=this.tm.v)===this.data.op&&(t=this.data.op-1),this.renderedFrame=t);var e,t=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),e=t-1;0<=e;--e)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){for(var t=this.layers.length,e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){for(var t=this.layers.length,e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},CVContextData.prototype.duplicate=function(){for(var t=2*this._length,e=this.savedOp,i=(this.savedOp=createTypedArray("float32",t),this.savedOp.set(e),0),i=this._length;i<t;i+=1)this.saved[i]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(t){for(var e=t.length,i="_",r=0;r<e;r+=1)i+=t[r].transform.key+"_";var s=this.sequences[i];return s||(s={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=s,this.sequenceList.push(s)),s},processSequence:function(t,e){for(var i,r=0,s=t.transforms.length,a=e;r<s&&!e;){if(t.transforms[r].transform.mProps._mdf){a=!0;break}r+=1}if(a)for(t.finalTransform.reset(),r=s-1;0<=r;--r)i=t.transforms[r].transform.mProps.v.props,t.finalTransform.transform(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],i[9],i[10],i[11],i[12],i[13],i[14],i[15]);t._mdf=a},processSequences:function(t){for(var e=this.sequenceList.length,i=0;i<e;i+=1)this.processSequence(this.sequenceList[i],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,r,s=this.element.finalTransform.mat,a=this.element.canvasContext,n=this.masksProperties.length;for(a.beginPath(),t=0;t<n;t+=1)if("n"!==this.masksProperties[t].mode){this.masksProperties[t].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),r=this.viewData[t].v,e=s.applyToPointArray(r.v[0][0],r.v[0][1],0),a.moveTo(e[0],e[1]);for(var o=r._length,h=1;h<o;h+=1)i=s.applyToTriplePoints(r.o[h-1],r.i[h],r.v[h]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=s.applyToTriplePoints(r.o[h-1],r.i[0],r.v[0]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t,e=this.globalData;e.blendMode!==this.data.bm&&(e.blendMode=this.data.bm,t=getBlendMode(this.data.bm),e.canvasContext.globalCompositeOperation=t)},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){var t;this.hidden||this.data.hd||(this.renderTransform(),this.renderRenderable(),this.setBlendMode(),t=0===this.data.ty,this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i,e={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},r={};return"fl"===t.ty||"st"===t.ty?(r.c=PropertyFactory.getProp(this,t.c,1,255,this),r.c.k||(e.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(r.s=PropertyFactory.getProp(this,t.s,1,null,this),r.e=PropertyFactory.getProp(this,t.e,1,null,this),r.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,t.g,this)),r.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty?(e.lc=lineCapEnum[t.lc||2],e.lj=lineJoinEnum[t.lj||2],1==t.lj&&(e.ml=t.ml),r.w=PropertyFactory.getProp(this,t.w,0,null,this),r.w.k||(e.wi=r.w.v),t.d&&(i=new DashProperty(this,t.d,"canvas",this),r.d=i,r.d.k||(e.da=r.d.dashArray,e.do=r.d.dashoffset[0]))):e.r=2===t.r?"evenodd":"nonzero",this.stylesList.push(e),r.style=e,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){t=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;for(var t=this.itemsData.length,e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){for(var e=this.stylesList.length,i=0;i<e;i+=1)this.stylesList[i].closed||this.stylesList[i].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,r,s){for(var a,n,o,h,l,p=t.length-1,m=[],f=[],c=[].concat(s),d=p;0<=d;--d){if((o=this.searchProcessedElement(t[d]))?e[d]=i[o-1]:t[d]._shouldRender=r,"fl"===t[d].ty||"st"===t[d].ty||"gf"===t[d].ty||"gs"===t[d].ty)o?e[d].style.closed=!1:e[d]=this.createStyleElement(t[d],c),m.push(e[d].style);else if("gr"===t[d].ty){if(o)for(n=e[d].it.length,a=0;a<n;a+=1)e[d].prevViewData[a]=e[d].it[a];else e[d]=this.createGroupElement(t[d]);this.searchShapes(t[d].it,e[d].it,e[d].prevViewData,r,c)}else"tr"===t[d].ty?(o||(l=this.createTransformElement(t[d]),e[d]=l),c.push(e[d]),this.addTransformToStyleList(e[d])):"sh"===t[d].ty||"rc"===t[d].ty||"el"===t[d].ty||"sr"===t[d].ty?o||(e[d]=this.createShapeElement(t[d])):"tm"===t[d].ty||"rd"===t[d].ty||"pb"===t[d].ty?(o?(h=e[d]).closed=!1:((h=ShapeModifiers.getModifier(t[d].ty)).init(this,t[d]),e[d]=h,this.shapeModifiers.push(h)),f.push(h)):"rp"===t[d].ty&&(o?(h=e[d]).closed=!0:(h=ShapeModifiers.getModifier(t[d].ty),(e[d]=h).init(this,t,d,e),this.shapeModifiers.push(h),r=!1),f.push(h));this.addProcessedElement(t[d],d+1)}for(this.removeTransformFromStyleList(),this.closeStyles(m),p=f.length,d=0;d<p;d+=1)f[d].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){for(var t,e,i,r,s,a,n,o,h=this.stylesList.length,l=this.globalData.renderer,p=this.globalData.canvasContext,m=0;m<h;m+=1)if(("st"!==(n=(o=this.stylesList[m]).type)&&"gs"!==n||0!==o.wi)&&o.data._shouldRender&&0!==o.coOp&&0!==this.globalData.currentGlobalAlpha){for(l.save(),s=o.elements,"st"===n||"gs"===n?(p.strokeStyle="st"===n?o.co:o.grd,p.lineWidth=o.wi,p.lineCap=o.lc,p.lineJoin=o.lj,p.miterLimit=o.ml||0):p.fillStyle="fl"===n?o.co:o.grd,l.ctxOpacity(o.coOp),"st"!==n&&"gs"!==n&&p.beginPath(),l.ctxTransform(o.preTransforms.finalTransform.props),e=s.length,t=0;t<e;t+=1){for("st"!==n&&"gs"!==n||(p.beginPath(),o.da&&(p.setLineDash(o.da),p.lineDashOffset=o.do)),r=(a=s[t].trNodes).length,i=0;i<r;i+=1)"m"===a[i].t?p.moveTo(a[i].p[0],a[i].p[1]):"c"===a[i].t?p.bezierCurveTo(a[i].pts[0],a[i].pts[1],a[i].pts[2],a[i].pts[3],a[i].pts[4],a[i].pts[5]):p.closePath();"st"!==n&&"gs"!==n||(p.stroke(),o.da&&p.setLineDash(this.dashResetter))}"st"!==n&&"gs"!==n&&p.fill(o.r),l.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,r){for(var s=t,a=e.length-1;0<=a;--a)"tr"===e[a].ty?(s=i[a].transform,this.renderShapeTransform(t,s)):"sh"===e[a].ty||"el"===e[a].ty||"rc"===e[a].ty||"sr"===e[a].ty?this.renderPath(e[a],i[a]):"fl"===e[a].ty?this.renderFill(e[a],i[a],s):"st"===e[a].ty?this.renderStroke(e[a],i[a],s):"gf"===e[a].ty||"gs"===e[a].ty?this.renderGradientFill(e[a],i[a],s):"gr"===e[a].ty?this.renderShape(s,e[a].it,i[a].it):e[a].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){for(var i,r,s=t.trNodes,a=e.paths,n=a._length,o=(s.length=0,t.transforms.finalTransform),h=0;h<n;h+=1){var l=a.shapes[h];if(l&&l.v){for(r=l._length,i=1;i<r;i+=1)1===i&&s.push({t:"m",p:o.applyToPointArray(l.v[0][0],l.v[0][1],0)}),s.push({t:"c",pts:o.applyToTriplePoints(l.o[i-1],l.i[i],l.v[i])});1===r&&s.push({t:"m",p:o.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&r&&(s.push({t:"c",pts:o.applyToTriplePoints(l.o[i-1],l.i[0],l.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender)for(var i=e.styledShapes.length,r=0;r<i;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)},CVShapeElement.prototype.renderFill=function(t,e,i){var r=e.style;(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var r=e.style;if(!r.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){for(var s,a,n,o,h=this.globalData.canvasContext,l=e.s.v,p=e.e.v,m=(o=1===t.t?h.createLinearGradient(l[0],l[1],p[0],p[1]):(s=Math.sqrt(Math.pow(l[0]-p[0],2)+Math.pow(l[1]-p[1],2)),p=Math.atan2(p[1]-l[1],p[0]-l[0]),1<=(a=e.h.v)?a=.99:a<=-1&&(a=-.99),a=s*a,n=Math.cos(p+e.a.v)*a+l[0],p=Math.sin(p+e.a.v)*a+l[1],h.createRadialGradient(n,p,0,l[0],l[1],s)),t.g.p),f=e.g.c,c=1,d=0;d<m;d+=1)e.g._hasOpacity&&e.g._collapsable&&(c=e.g.o[2*d+1]),o.addColorStop(f[4*d]/100,"rgba("+f[4*d+1]+","+f[4*d+2]+","+f[4*d+3]+","+c+")");r.grd=o}r.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var r=e.style,s=e.d;s&&(s._mdf||this._isFirstFrame)&&(r.da=s.dashArray,r.do=s.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(r.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){for(var t,e,i,r,s,a,n,o,h=this.textProperty.currentData,l=(this.renderedLetters=createSizedArray(h.l?h.l.length:0),!1),l=(h.fc?(l=!0,this.values.fill=this.buildColor(h.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=l,!1),p=(h.sc&&(l=!0,this.values.stroke=this.buildColor(h.sc),this.values.sWidth=h.sw),this.globalData.fontManager.getFontByName(h.f)),m=h.l,f=this.mHelper,c=(this.stroke=l,this.values.fValue=h.finalSize+"px "+this.globalData.fontManager.getFontByName(h.f).fFamily,t=h.finalText.length,this.data.singleShape),d=.001*h.tr*h.finalSize,u=0,y=0,g=!0,v=0,b=0;b<t;b+=1){e=(e=this.globalData.fontManager.getCharData(h.finalText[b],p.fStyle,this.globalData.fontManager.getFontByName(h.f).fFamily))&&e.data||{},f.reset(),c&&m[b].n&&(u=-d,y=y+h.yOffset+(g?1:0),g=!1),a=(s=e.shapes?e.shapes[0].it:[]).length,f.scale(h.finalSize/100,h.finalSize/100),c&&this.applyTextPropertiesToMatrix(h,f,m[b].line,u,y);for(var P=createSizedArray(a-1),E=0,x=0;x<a;x+=1)if("sh"===s[x].ty){for(r=s[x].ks.k.i.length,n=s[x].ks.k,o=[],i=1;i<r;i+=1)1===i&&o.push(f.applyToX(n.v[0][0],n.v[0][1],0),f.applyToY(n.v[0][0],n.v[0][1],0)),o.push(f.applyToX(n.o[i-1][0],n.o[i-1][1],0),f.applyToY(n.o[i-1][0],n.o[i-1][1],0),f.applyToX(n.i[i][0],n.i[i][1],0),f.applyToY(n.i[i][0],n.i[i][1],0),f.applyToX(n.v[i][0],n.v[i][1],0),f.applyToY(n.v[i][0],n.v[i][1],0));o.push(f.applyToX(n.o[i-1][0],n.o[i-1][1],0),f.applyToY(n.o[i-1][0],n.o[i-1][1],0),f.applyToX(n.i[0][0],n.i[0][1],0),f.applyToY(n.i[0][0],n.i[0][1],0),f.applyToX(n.v[0][0],n.v[0][1],0),f.applyToY(n.v[0][0],n.v[0][1],0)),P[E]=o,E+=1}c&&(u=u+m[b].l+d),this.textSpans[v]?this.textSpans[v].elem=P:this.textSpans[v]={elem:P},v+=1}},CVTextElement.prototype.renderInnerContent=function(){for(var t,e,i,r,s,a,n,o=this.canvasContext,h=(o.font=this.values.fValue,o.lineCap="butt",o.lineJoin="miter",o.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.textAnimator.renderedLetters),l=this.textProperty.currentData.l,p=l.length,m=null,f=null,c=null,d=0;d<p;d+=1)if(!l[d].n){if((s=h[d])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(s.p),this.globalData.renderer.ctxOpacity(s.o)),this.fill){for(s&&s.fc?m!==s.fc&&(m=s.fc,o.fillStyle=s.fc):m!==this.values.fill&&(m=this.values.fill,o.fillStyle=this.values.fill),e=(a=this.textSpans[d].elem).length,this.globalData.canvasContext.beginPath(),t=0;t<e;t+=1)for(r=(n=a[t]).length,this.globalData.canvasContext.moveTo(n[0],n[1]),i=2;i<r;i+=6)this.globalData.canvasContext.bezierCurveTo(n[i],n[i+1],n[i+2],n[i+3],n[i+4],n[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(s&&s.sw?c!==s.sw&&(c=s.sw,o.lineWidth=s.sw):c!==this.values.sWidth&&(c=this.values.sWidth,o.lineWidth=this.values.sWidth),s&&s.sc?f!==s.sc&&(f=s.sc,o.strokeStyle=s.sc):f!==this.values.stroke&&(f=this.values.stroke,o.strokeStyle=this.values.stroke),e=(a=this.textSpans[d].elem).length,this.globalData.canvasContext.beginPath(),t=0;t<e;t+=1)for(r=(n=a[t]).length,this.globalData.canvasContext.moveTo(n[0],n[1]),i=2;i<r;i+=6)this.globalData.canvasContext.bezierCurveTo(n[i],n[i+1],n[i+2],n[i+3],n[i+4],n[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}s&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){var t,e,i,r,s,a,n,o,h;!this.img.width||this.assetData.w===this.img.width&&this.assetData.h===this.img.height||((t=createTag("canvas")).width=this.assetData.w,t.height=this.assetData.h,e=t.getContext("2d"),i=this.img.width,r=this.img.height,a=this.assetData.w/this.assetData.h,h=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio,a<(s=i/r)&&"xMidYMid slice"===h||s<a&&"xMidYMid slice"!==h?n=(o=r)*a:o=(n=i)/a,e.drawImage(this.img,(i-n)/2,(r-o)/2,n,o,0,0,this.assetData.w,this.assetData.h),this.img=t)},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){var e;1===t[0]&&0===t[1]&&0===t[4]&&1===t[5]&&0===t[12]&&0===t[13]||(this.renderConfig.clearCanvas?(this.transformMat.cloneFromProps(t),e=this.contextData.cTr.props,this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props),e=this.contextData.cTr.props,this.canvasContext.setTransform(e[0],e[1],e[4],e[5],e[12],e[13])):this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13]))},CanvasRendererBase.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();for(var e=this.contextData.cTr.props,i=(this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate(),this.contextData.saved[this.contextData.cArrPos]),r=0;r<16;r+=1)i[r]=e[r];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),--this.contextData.cArrPos;for(var e=this.contextData.saved[this.contextData.cArrPos],i=this.contextData.cTr.props,r=0;r<16;r+=1)i[r]=e[r];this.canvasContext.setTransform(e[0],e[1],e[4],e[5],e[12],e[13]),e=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=e,this.globalData.currentGlobalAlpha!==e&&(this.canvasContext.globalAlpha=e,this.globalData.currentGlobalAlpha=e)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){var e,i;this.animationItem.wrapper?(this.animationItem.container=createTag("canvas"),(e=this.animationItem.container.style).width="100%",e.height="100%",e.transformOrigin=i="0px 0px 0px",e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e["-webkit-transform"]=i,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)):this.canvasContext=this.renderConfig.context,this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,(this.globalData.renderer=this).globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(){var t,e,i,r,s,a,n;this.reset(),this.animationItem.wrapper&&this.animationItem.container?(t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",t*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",e*this.renderConfig.dpr)):(t=this.canvasContext.canvas.width*this.renderConfig.dpr,e=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")?(i=(s=this.renderConfig.preserveAspectRatio.split(" "))[1]||"meet",r=(s=s[0]||"xMidYMid").substr(0,4),s=s.substr(4),(a=t/e)<(n=this.transformCanvas.w/this.transformCanvas.h)&&"meet"===i||n<a&&"slice"===i?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===r&&(n<a&&"meet"===i||a<n&&"slice"===i)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===r&&(n<a&&"meet"===i||a<n&&"slice"===i)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===s&&(a<n&&"meet"===i||n<a&&"slice"===i)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===s&&(a<n&&"meet"===i||n<a&&"slice"===i)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))*this.renderConfig.dpr:0):("none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0),this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");for(var t=(this.layers?this.layers.length:0)-1;0<=t;--t)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=0;i<r;i+=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;0<=i;--i)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e,i=this.elements;i[t]||99===this.layers[t].ty||(e=this.createItem(this.layers[t],this,this.globalData),(i[t]=e).initExpressions())},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip();for(var e=this.layers.length-1;0<=e;--e)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){for(var t=this.layers.length-1;0<=t;--t)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t,e=this.transformedElement?this.transformedElement.style:{};this.finalTransform._matMdf&&(t=this.finalTransform.mat.toCSS(),e.transform=t,e.webkitTransform=t),this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t,e;this.baseElement.style.fontSize=0,this.data.hasMask?(this.layerElement.appendChild(this.shapesContainer),t=this.svgElement):(t=createNS("svg"),e=this.comp.data||this.globalData.compSize,t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)),this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){for(var i=t.length,r=0;r<i;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,r,s,a,n,o=t.sh.v,h=t.transformers,l=o._length;if(!(l<=1)){for(i=0;i<l-1;i+=1)r=this.getTransformedPoint(h,o.v[i]),s=this.getTransformedPoint(h,o.o[i]),a=this.getTransformedPoint(h,o.i[i+1]),n=this.getTransformedPoint(h,o.v[i+1]),this.checkBounds(r,s,a,n,e);o.c&&(r=this.getTransformedPoint(h,o.v[i]),s=this.getTransformedPoint(h,o.o[i]),a=this.getTransformedPoint(h,o.i[0]),n=this.getTransformedPoint(h,o.v[0]),this.checkBounds(r,s,a,n,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,r,s){this.getBoundsOfCurve(t,e,i,r);t=this.shapeBoundingBox;s.x=bmMin(t.left,s.x),s.xMax=bmMax(t.right,s.xMax),s.y=bmMin(t.top,s.y),s.yMax=bmMax(t.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,i,r){for(var s,a,n,o,h=[[t[0],r[0]],[t[1],r[1]]],l=0;l<2;++l)a=6*t[l]-12*e[l]+6*i[l],s=-3*t[l]+9*e[l]-9*i[l]+3*r[l],o=3*e[l]-3*t[l],a|=0,o|=0,0==(s|=0)&&0==a||(0==s?0<(n=-o/a)&&n<1&&h[l].push(this.calculateF(n,t,e,i,r,l)):0<=(n=a*a-4*o*s)&&(0<(o=(-a+bmSqrt(n))/(2*s))&&o<1&&h[l].push(this.calculateF(o,t,e,i,r,l)),0<(o=(-a-bmSqrt(n))/(2*s))&&o<1&&h[l].push(this.calculateF(o,t,e,i,r,l))));this.shapeBoundingBox.left=bmMin.apply(null,h[0]),this.shapeBoundingBox.top=bmMin.apply(null,h[1]),this.shapeBoundingBox.right=bmMax.apply(null,h[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,h[1])},HShapeElement.prototype.calculateF=function(t,e,i,r,s,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*i[a]+3*(1-t)*bmPow(t,2)*r[a]+bmPow(t,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){for(var i=t.length,r=0;r<i;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var i=0;if(t.keyframes){for(var r=0;r<t.keyframes.length;r+=1){var s=t.keyframes[r].s;i<s&&(i=s)}i*=t.mult}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){var t,e;this._renderShapeFrame(),this.hidden||!this._isFirstFrame&&!this._mdf||((e=this.tempBoundingBox).x=t=999999,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e)||(t=!1,this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),t=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),t=!0),!t&&this.currentBBox.x===e.x&&this.currentBBox.y===e.y||(this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.shapeCont.style,e="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)",t.transform=e,t.webkitTransform=e)))},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){var t;this.isMasked=this.checkMasks(),this.isMasked?(this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH),t=createNS("g"),this.maskedElement.appendChild(t),this.innerElem=t):(this.renderType="html",this.innerElem=this.layerElement),this.checkParenting()},HTextElement.prototype.buildNewText=function(){for(var t,e,i,r,s,a,n,o=this.textProperty.currentData,h=(this.renderedLetters=createSizedArray(o.l?o.l.length:0),this.innerElem.style),l=o.fc?this.buildColor(o.fc):"rgba(0,0,0,0)",p=(h.fill=l,h.color=l,o.sc&&(h.stroke=this.buildColor(o.sc),h.strokeWidth=o.sw+"px"),this.globalData.fontManager.getFontByName(o.f)),m=(this.globalData.fontManager.chars||(h.fontSize=o.finalSize+"px",h.lineHeight=o.finalSize+"px",p.fClass?this.innerElem.className=p.fClass:(h.fontFamily=p.fFamily,l=o.fWeight,t=o.fStyle,h.fontStyle=t,h.fontWeight=l)),o.l),f=m.length,c=this.mHelper,d=0,u=0;u<f;u+=1)this.globalData.fontManager.chars?(this.textPaths[d]?e=this.textPaths[d]:((e=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),e.setAttribute("stroke-linejoin",lineJoinEnum[2]),e.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[d]?r=(i=this.textSpans[d]).children[0]:((i=createTag("div")).style.lineHeight=0,(r=createNS("svg")).appendChild(e),styleDiv(i)))):this.isMasked?e=this.textPaths[d]||createNS("text"):this.textSpans[d]?(i=this.textSpans[d],e=this.textPaths[d]):(styleDiv(i=createTag("span")),styleDiv(e=createTag("span")),i.appendChild(e)),this.globalData.fontManager.chars?(a=(a=this.globalData.fontManager.getCharData(o.finalText[u],p.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily))?a.data:null,c.reset(),a&&a.shapes&&a.shapes.length&&(s=a.shapes[0].it,c.scale(o.finalSize/100,o.finalSize/100),s=this.createPathShape(c,s),e.setAttribute("d",s)),this.isMasked?this.innerElem.appendChild(e):(this.innerElem.appendChild(i),a&&a.shapes?(document.body.appendChild(r),s=r.getBBox(),r.setAttribute("width",s.width+2),r.setAttribute("height",s.height+2),r.setAttribute("viewBox",s.x-1+" "+(s.y-1)+" "+(s.width+2)+" "+(s.height+2)),a=r.style,n="translate("+(s.x-1)+"px,"+(s.y-1)+"px)",a.transform=n,a.webkitTransform=n,m[u].yOffset=s.y-1):(r.setAttribute("width",1),r.setAttribute("height",1)),i.appendChild(r))):(e.textContent=m[u].val,e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked?this.innerElem.appendChild(e):(this.innerElem.appendChild(i),a=e.style,n="translate3d(0,"+-o.finalSize/1.2+"px,0)",a.transform=n,a.webkitTransform=n)),this.isMasked?this.textSpans[d]=e:this.textSpans[d]=i,this.textSpans[d].style.display="block",this.textPaths[d]=e,d+=1;for(;d<this.textSpans.length;)this.textSpans[d].style.display="none",d+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;this.isMasked&&this.finalTransform._matMdf&&(this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style,s="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)",t.transform=s,t.webkitTransform=s)}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){for(var e,i,r,s,a=0,n=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l,h=o.length,l=0;l<h;l+=1)o[l].n?a+=1:(i=this.textSpans[l],r=this.textPaths[l],e=n[a],a+=1,e._mdf.m&&(this.isMasked?i.setAttribute("transform",e.m):(i.style.webkitTransform=e.m,i.style.transform=e.m)),i.style.opacity=e.o,e.sw&&e._mdf.sw&&r.setAttribute("stroke-width",e.sw),e.sc&&e._mdf.sc&&r.setAttribute("stroke",e.sc),e.fc&&e._mdf.fc&&(r.setAttribute("fill",e.fc),r.style.color=e.fc));this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)&&(s=this.innerElem.getBBox(),this.currentBBox.w!==s.width&&(this.currentBBox.w=s.width,this.svgElement.setAttribute("width",s.width)),this.currentBBox.h!==s.height&&(this.currentBBox.h=s.height,this.svgElement.setAttribute("height",s.height)),this.currentBBox.w===s.width+2&&this.currentBBox.h===s.height+2&&this.currentBBox.x===s.x-1&&this.currentBBox.y===s.y-1||(this.currentBBox.w=s.width+2,this.currentBBox.h=s.height+2,this.currentBBox.x=s.x-1,this.currentBBox.y=s.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)",t.transform=s,t.webkitTransform=s))}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){for(var t,e,i,r,s,a=this.comp.threeDElements.length,n=0;n<a;n+=1)"3d"===(s=this.comp.threeDElements[n]).type&&(t=s.perspectiveElem.style,s=s.container.style,e=this.pe.v+"px",i="0px 0px 0px",r="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)",t.perspective=e,t.webkitPerspective=e,s.transformOrigin=i,s.mozTransformOrigin=i,s.webkitTransformOrigin=i,t.transform=r,t.webkitTransform=r)},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame;if(this.hierarchy)for(h=this.hierarchy.length,l=0;l<h;l+=1)t=this.hierarchy[l].finalTransform.mProp._mdf||t;if(t||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(l=h=this.hierarchy.length-1;0<=l;--l){var e=this.hierarchy[l].finalTransform.mProp;this.mat.translate(-e.p.v[0],-e.p.v[1],e.p.v[2]),this.mat.rotateX(-e.or.v[0]).rotateY(-e.or.v[1]).rotateZ(e.or.v[2]),this.mat.rotateX(-e.rx.v).rotateY(-e.ry.v).rotateZ(e.rz.v),this.mat.scale(1/e.s.v[0],1/e.s.v[1],1/e.s.v[2]),this.mat.translate(e.a.v[0],e.a.v[1],e.a.v[2])}this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a&&(r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]],i=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),r=[r[0]/i,r[1]/i,r[2]/i],i=Math.sqrt(r[2]*r[2]+r[0]*r[0]),i=Math.atan2(r[1],i),r=Math.atan2(r[0],-r[2]),this.mat.rotateY(r).rotateX(-i)),this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var i,r,s=!this._prevMat.equals(this.mat);if((s||this.pe._mdf)&&this.comp.threeDElements){for(var a,n,o,h=this.comp.threeDElements.length,l=0;l<h;l+=1)"3d"===(o=this.comp.threeDElements[l]).type&&(s&&(a=this.mat.toCSS(),(n=o.container.style).transform=a,n.webkitTransform=a),this.pe._mdf&&((n=o.perspectiveElem.style).perspective=this.pe.v+"px",n.webkitPerspective=this.pe.v+"px"));this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){t=t.getBaseElement();if(t){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(t,e);else if(this.threeDElements)this.addTo3dContainer(t,e);else{for(var r,s,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a],r=(this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement())||r),a+=1;r?i.ddd&&this.supports3d||this.layerElement.insertBefore(t,r):i.ddd&&this.supports3d||this.layerElement.appendChild(t)}}},HybridRendererBase.prototype.createShape=function(t){return new(this.supports3d?HShapeElement:SVGShapeElement)(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return new(this.supports3d?HTextElement:SVGTextLottieElement)(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return new(this.supports3d?HImageElement:IImageElement)(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return new(this.supports3d?HSolidElement:ISolidElement)(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i,r=createTag("div"),s=(styleDiv(r),createTag("div")),a=(styleDiv(s),"3d"===e&&((a=r.style).width=this.globalData.compSize.w+"px",a.height=this.globalData.compSize.h+"px",a.webkitTransformOrigin=i="50% 50%",a.mozTransformOrigin=i,a.transformOrigin=i,(a=s.style).transform=i="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)",a.webkitTransform=i),r.appendChild(s),{container:s,perspectiveElem:r,startPos:t,endPos:t,type:e});return this.threeDElements.push(a),a},HybridRendererBase.prototype.build3dContainers=function(){for(var t,e=this.layers.length,i="",r=0;r<e;r+=1)this.layers[r].ddd&&3!==this.layers[r].ty?(t="3d"!==i?this.createThreeDContainer(r,i="3d"):t).endPos=Math.max(t.endPos,r):(t="2d"!==i?this.createThreeDContainer(r,i="2d"):t).endPos=Math.max(t.endPos,r);for(r=(e=this.threeDElements.length)-1;0<=r;--r)this.resizerElem.appendChild(this.threeDElements[r].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,r=this.threeDElements.length;i<r;){if(e<=this.threeDElements[i].endPos){for(var s,a=this.threeDElements[i].startPos;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a].getBaseElement()),a+=1;s?this.threeDElements[i].container.insertBefore(t,s):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,r=e.style,i=(r.width=t.w+"px",r.height=t.h+"px",styleDiv(this.resizerElem=e),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),r.overflow="hidden",createNS("svg")),e=(i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i),createNS("defs"));i.appendChild(e),this.data=t,this.setupGlobalData(t,i),this.globalData.defs=e,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;for(var t=this.layers?this.layers.length:0,e=0;e<t;e+=1)this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,i,r=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,r=r/s<this.globalData.compSize.w/this.globalData.compSize.h?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,i=0,(s-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,i=(r-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,0),s=this.resizerElem.style;s.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+r+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else for(var t=this.globalData.compSize.w,e=this.globalData.compSize.h,i=this.threeDElements.length,r=0;r<i;r+=1){var s=this.threeDElements[r].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(e,2))+"px",s.perspective=s.webkitPerspective}},HybridRendererBase.prototype.searchExtraCompositions=function(t){for(var e,i=t.length,r=createTag("div"),s=0;s<i;s+=1)t[s].xt&&((e=this.createComp(t[s],r,this.globalData.comp,null)).initExpressions(),this.globalData.projectInterface.registerComposition(e))},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var i,r=0;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return new(this.supports3d?HCompElement:SVGCompElement)(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return new(this.supports3d?HCompElement:SVGCompElement)(t,this.globalData,this)};var Expressions=function(){var t={};return t.initExpressions=function(t){var i=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){i+=1},t.renderer.globalData.popExpression=function(){if(0===--i){var t,e=r.length;for(t=0;t<e;t+=1)r[t].release();r.length=0}},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}},t}();function _typeof$1(t){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function seedRandom(n,o){var h,l=this,p=256,m=6,f="random",c=o.pow(p,m),d=o.pow(2,52),u=2*d,y=p-1;function g(t){var e,i=t.length,n=this,r=0,s=n.i=n.j=0,a=n.S=[];for(i||(t=[i++]);r<p;)a[r]=r++;for(r=0;r<p;r++)a[r]=a[s=y&s+t[r%i]+(e=a[r])],a[s]=e;n.g=function(t){for(var e,i=0,r=n.i,s=n.j,a=n.S;t--;)e=a[r=y&r+1],i=i*p+a[y&(a[r]=a[s=y&s+e])+(a[s]=e)];return n.i=r,n.j=s,i}}function v(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function b(t,e){for(var i,r=t+"",s=0;s<r.length;)e[y&s]=y&(i^=19*e[y&s])+r.charCodeAt(s++);return P(e)}function P(t){return String.fromCharCode.apply(0,t)}o["seed"+f]=function(t,e,i){function r(){for(var t=a.g(m),e=c,i=0;t<d;)t=(t+i)*p,e*=p,i=a.g(1);for(;u<=t;)t/=2,e/=2,i>>>=1;return(t+i)/e}var s=[],t=b(function t(e,i){var r,s=[],a=_typeof$1(e);if(i&&"object"==a)for(r in e)try{s.push(t(e[r],i-1))}catch(t){}return s.length?s:"string"==a?e:e+"\0"}((e=!0===e?{entropy:!0}:e||{}).entropy?[t,P(n)]:null===t?function(){try{if(h)return P(h.randomBytes(p));var e=new Uint8Array(p);return(l.crypto||l.msCrypto).getRandomValues(e),P(e)}catch(t){e=l.navigator,e=e&&e.plugins;return[+new Date,l,e,l.screen,P(n)]}}():t,3),s),a=new g(s);return r.int32=function(){return 0|a.g(4)},r.quick=function(){return a.g(4)/4294967296},r.double=r,b(P(a.S),n),(e.pass||i||function(t,e,i,r){return r&&(r.S&&v(r,a),t.state=function(){return v(a,{})}),i?(o[f]=t,e):t})(r,t,"global"in e?e.global:this==o,e.state)},b(o.random(),n)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){for(var i=t.length,r=[],s=0;s<i;s+=1)r[s]=-t[s];return r}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var i=_typeof(t),r=_typeof(e);if("string"===i||"string"===r)return t+e;if(isNumerable(i,t)&&isNumerable(r,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,n=e.length,o=[];s<a||s<n;)("number"==typeof t[s]||t[s]instanceof Number)&&("number"==typeof e[s]||e[s]instanceof Number)?o[s]=t[s]+e[s]:o[s]=void 0===e[s]?t[s]:t[s]||e[s],s+=1;return o}return 0}var add=sum;function sub(t,e){var i=_typeof(t),r=_typeof(e);if(isNumerable(i,t)&&isNumerable(r,e))return(t="string"===i?parseInt(t,10):t)-(e="string"===r?parseInt(e,10):e);if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,n=e.length,o=[];s<a||s<n;)("number"==typeof t[s]||t[s]instanceof Number)&&("number"==typeof e[s]||e[s]instanceof Number)?o[s]=t[s]-e[s]:o[s]=void 0===e[s]?t[s]:t[s]||e[s],s+=1;return o}return 0}function mul(t,e){var i,r,s,a=_typeof(t),n=_typeof(e);if(isNumerable(a,t)&&isNumerable(n,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=t.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t[r]*e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t*e[r];return i}return 0}function div(t,e){var i,r,s,a=_typeof(t),n=_typeof(e);if(isNumerable(a,t)&&isNumerable(n,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=t.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t[r]/e;return i}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,i=createTypedArray("float32",s),r=0;r<s;r+=1)i[r]=t/e[r];return i}return 0}function mod(t,e){return(t="string"==typeof t?parseInt(t,10):t)%(e="string"==typeof e?parseInt(e,10):e)}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){var r;return i<e&&(r=i,i=e,e=r),Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return Math.abs(t-(e=e||0));for(var i=Math.min(t.length,(e=e||helperLengthArray).length),r=0,s=0;s<i;s+=1)r+=Math.pow(e[s]-t[s],2);return Math.sqrt(r)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i=t[0],r=t[1],s=t[2],a=Math.max(i,r,s),n=Math.min(i,r,s),o=(a+n)/2;if(a===n)l=e=0;else{var h=a-n,l=.5<o?h/(2-a-n):h/(a+n);switch(a){case i:e=(r-s)/h+(r<s?6:0);break;case r:e=(s-i)/h+2;break;case s:e=(i-r)/h+4}e/=6}return[e,l,o,t[3]]}function hue2rgb(t,e,i){return i<0&&(i+=1),1<i&&--i,i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,r,s=t[0],a=t[1],n=t[2];return 0===a?i=r=e=n:(e=hue2rgb(a=2*n-(n=n<.5?n*(1+a):n+a-n*a),n,s+1/3),i=hue2rgb(a,n,s),r=hue2rgb(a,n,s-1/3)),[e,i,r,t[3]]}function linear(t,e,i,r,s){var a;if(void 0!==r&&void 0!==s||(r=e,s=i,e=0,i=1),i<e&&(a=i,i=e,e=a),t<=e)return r;if(i<=t)return s;var n=i===e?0:(t-e)/(i-e);if(!r.length)return r+(s-r)*n;for(var o=r.length,h=createTypedArray("float32",o),l=0;l<o;l+=1)h[l]=r[l]+(s[l]-r[l])*n;return h}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){for(var i=e.length,r=(t=t||createTypedArray("float32",i),createTypedArray("float32",i)),s=BMMath.random(),a=0;a<i;a+=1)r[a]=t[a]+s*(e[a]-t[a]);return r}return(t=void 0===t?0:t)+BMMath.random()*(e-t)}function createPath(t,e,i,r){for(var s,a,n=t.length,o=shapePool.newElement(),h=(o.setPathData(!!r,n),[0,0]),l=0;l<n;l+=1)s=e&&e[l]?e[l]:h,a=i&&i[l]?i[l]:h,o.setTripleAt(t[l][0],t[l][1],a[0]+t[l][0],a[1]+t[l][1],s[0]+t[l][0],s[1]+t[l][1],l,!0);return o}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property,inPoint=(thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0,elem.data.ip/elem.comp.globalData.frameRate),outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw||0,height=elem.data.sh||0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){for(var i=this.pv.length||1,r=createTypedArray("float32",i),s=Math.floor(5*time),a=0,n=0;a<s;){for(n=0;n<i;n+=1)r[n]+=-e+2*e*BMMath.random();a+=1}var o=5*time,h=o-Math.floor(o),l=createTypedArray("float32",i);if(1<i){for(n=0;n<i;n+=1)l[n]=this.pv[n]+r[n]+(-e+2*e*BMMath.random())*h;return l}return this.pv+r[0]+(-e+2*e*BMMath.random())*h}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){e=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],t=Math.atan2(e[0],Math.sqrt(e[1]*e[1]+e[2]*e[2]))/degToRads;return[-Math.atan2(e[1],e[2])/degToRads,t,0]}function easeOut(t,e,i,r,s){return applyEase(easeOutBez,t,e,i,r,s)}function easeIn(t,e,i,r,s){return applyEase(easeInBez,t,e,i,r,s)}function ease(t,e,i,r,s){return applyEase(easeInOutBez,t,e,i,r,s)}function applyEase(t,e,i,r,s,a){void 0===s?(s=i,a=r):e=(e-i)/(r-i),1<e?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){for(var o=s.length,h=createTypedArray("float32",o),l=0;l<o;l+=1)h[l]=(a[l]-s[l])*n+s[l];return h}return(a-s)*n+s}function nearestKey(t){var e,i,r,s=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,r=data.k[0].t;else{for(e=0;e<s-1;e+=1){if(t===data.k[e].t){i=e+1,r=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){r=t-data.k[e].t>data.k[e+1].t-t?(i=e+2,data.k[e+1].t):(i=e+1,data.k[e].t);break}}-1===i&&(i=e+1,r=data.k[e].t)}else r=i=0;var a={};return a.index=i,a.time=r/elem.comp.globalData.frameRate,a}function key(t){if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);for(var e={time:data.k[--t].t/elem.comp.globalData.frameRate,value:[]},i=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e,r=i.length,s=0;s<r;s+=1)e[s]=i[s],e.value[s]=i[s];return e}function framesToTime(t,e){return t/(e=e||elem.comp.globalData.frameRate)}function timeToFrames(t,e){return(t=t||0===t?t:time)*(e=e||elem.comp.globalData.frameRate)}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),($bm_transform=transform)&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect=effect||thisLayer(4),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.01),r=0;if(e.length){for(var s=0;s<e.length;s+=1)r+=Math.pow(i[s]-e[s],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.001);if(e.length)for(var r=createTypedArray("float32",e.length),s=0;s<e.length;s+=1)r[s]=(i[s]-e[s])/-.001;else r=(i-e)/-.001;return r},getValueAtTime:function(t){return(t=(t*=this.elem.globalData.frameRate)-this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function n(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var r,s,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[l.length-1].t;if(h<=p)return this.pv;if(i?s=p-(r=e?Math.abs(p-this.elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip)):((!e||e>l.length-1)&&(e=l.length-1),r=p-(s=l[l.length-1-e].t)),"pingpong"===t){if(Math.floor((h-s)/r)%2!=0)return this.getValueAtTime((r-(h-s)%r+s)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var m=this.getValueAtTime(s/this.comp.globalData.frameRate,0),f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),c=this.getValueAtTime(((h-s)%r+s)/this.comp.globalData.frameRate,0),d=Math.floor((h-s)/r);if(this.pv.length){for(n=(o=new Array(m.length)).length,a=0;a<n;a+=1)o[a]=(f[a]-m[a])*d+c[a];return o}return(f-m)*d+c}if("continue"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(u.length)).length,a=0;a<n;a+=1)o[a]=u[a]+(u[a]-y[a])*((h-p)/this.comp.globalData.frameRate)/5e-4;return o}return u+(h-p)/.001*(u-y)}}return this.getValueAtTime(((h-s)%r+s)/this.comp.globalData.frameRate,0)}function o(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var r,s,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[0].t;if(p<=h)return this.pv;if(i?s=p+(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p)):r=(s=l[e=!e||e>l.length-1?l.length-1:e].t)-p,"pingpong"===t){if(Math.floor((p-h)/r)%2==0)return this.getValueAtTime(((p-h)%r+p)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),f=this.getValueAtTime(s/this.comp.globalData.frameRate,0),c=this.getValueAtTime((r-(p-h)%r+p)/this.comp.globalData.frameRate,0),d=Math.floor((p-h)/r)+1;if(this.pv.length){for(n=(o=new Array(m.length)).length,a=0;a<n;a+=1)o[a]=c[a]-(f[a]-m[a])*d;return o}return c-(f-m)*d}if("continue"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(u.length)).length,a=0;a<n;a+=1)o[a]=u[a]+(u[a]-y[a])*(p-h)/.001;return o}return u+(u-y)*(p-h)/.001}}return this.getValueAtTime((r-((p-h)%r+p))/this.comp.globalData.frameRate,0)}function h(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;for(var i,r=this.comp.renderedFrame/this.comp.globalData.frameRate,s=r-t,a=1<e?(r+t-s)/(e-1):1,n=0,o=0,h=this.pv.length?createTypedArray("float32",this.pv.length):0;n<e;){if(i=this.getValueAtTime(s+n*a),this.pv.length)for(o=0;o<this.pv.length;o+=1)h[o]+=i[o];else h+=i;n+=1}if(this.pv.length)for(o=0;o<this.pv.length;o+=1)h[o]/=e;else h/=e;return h}var r=TransformPropertyFactory.getTransformProperty,l=(TransformPropertyFactory.getTransformProperty=function(t,e,i){t=r(t,e,i);return t.dynamicProperties.length?t.getValueAtTime=function(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e,i,r,s,a=this._transformCachingAtTime.v;return a.cloneFromProps(this.pre.props),this.appliedTransformations<1&&(i=this.a.getValueAtTime(t),a.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)),this.appliedTransformations<2&&(i=this.s.getValueAtTime(t),a.scale(i[0]*this.s.mult,i[1]*this.s.mult,i[2]*this.s.mult)),this.sk&&this.appliedTransformations<3&&(i=this.sk.getValueAtTime(t),e=this.sa.getValueAtTime(t),a.skewFromAxis(-i*this.sk.mult,e*this.sa.mult)),this.r&&this.appliedTransformations<4?(i=this.r.getValueAtTime(t),a.rotate(-i*this.r.mult)):!this.r&&this.appliedTransformations<4&&(e=this.rz.getValueAtTime(t),i=this.ry.getValueAtTime(t),r=this.rx.getValueAtTime(t),s=this.or.getValueAtTime(t),a.rotateZ(-e*this.rz.mult).rotateY(i*this.ry.mult).rotateX(r*this.rx.mult).rotateZ(-s[2]*this.or.mult).rotateY(s[1]*this.or.mult).rotateX(s[0]*this.or.mult)),this.data.p&&this.data.p.s?(e=this.px.getValueAtTime(t),i=this.py.getValueAtTime(t),this.data.p.z?(r=this.pz.getValueAtTime(t),a.translate(e*this.px.mult,i*this.py.mult,-r*this.pz.mult)):a.translate(e*this.px.mult,i*this.py.mult,0)):(s=this.p.getValueAtTime(t),a.translate(s[0]*this.p.mult,s[1]*this.p.mult,-s[2]*this.p.mult)),a}.bind(t):t.getValueAtTime=function(){return this.v.clone(new Matrix)}.bind(t),t.setGroupProperty=expressionHelpers.setGroupProperty,t},PropertyFactory.getProp);PropertyFactory.getProp=function(t,e,i,r,s){var r=l(t,e,i,r,s),a=(r.kf?r.getValueAtTime=expressionHelpers.getValueAtTime.bind(r):r.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(r),r.setGroupProperty=expressionHelpers.setGroupProperty,r.loopOut=n,r.loopIn=o,r.smooth=h,r.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(r),r.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(r),r.numKeys=1===e.a?e.k.length:0,r.propertyIndex=e.ix,0);return 0!==i&&(a=createTypedArray("float32",(1===e.a?e.k[0].s:e.k).length)),r._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:a},expressionHelpers.searchExpressions(t,e,r),r.k&&s.addDynamicProperty(r),r};var t=ShapePropertyFactory.getConstructorFunction(),e=ShapePropertyFactory.getKeyframedConstructorFunction();function i(){}i.prototype={vertices:function(t,e){this.k&&this.getValue();for(var i=this.v,r=(i=void 0!==e?this.getValueAtTime(e,0):i)._length,s=i[t],a=i.v,n=createSizedArray(r),o=0;o<r;o+=1)n[o]="i"===t||"o"===t?[s[o][0]-a[o][0],s[o][1]-a[o][1]]:[s[o][0],s[o][1]];return n},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){for(var i=this.v,e=(void 0!==e&&(i=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i)),this._segmentsLength),r=e.lengths,s=e.totalLength*t,a=0,n=r.length,o=0;a<n;){if(o+r[a].addedLength>s){var h=a,l=i.c&&a===n-1?0:a+1,p=(s-o)/r[a].addedLength,m=bez.getPointInSegment(i.v[h],i.v[l],i.o[h],i.i[l],p,r[a]);break}o+=r[a].addedLength,a+=1}return m=m||(i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]])},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var r=this.pointOnPath(t,e),t=this.pointOnPath(t+.001,e),e=t[0]-r[0],t=t[1]-r[1],r=Math.sqrt(Math.pow(e,2)+Math.pow(t,2));return 0===r?[0,0]:"tangent"===i?[e/r,t/r]:[-t/r,e/r]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([i],t),extendPrototype([i],e),e.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),(t=(t*=this.elem.globalData.frameRate)-this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},e.prototype.initiateExpression=ExpressionManager.initiateExpression;var a=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,r,s){r=a(t,e,i,r,s);return r.propertyIndex=e.ix,r.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,r):4===i&&expressionHelpers.searchExpressions(t,e.ks,r),r.k&&t.addDynamicProperty(r),r}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var i,e=this.calculateExpression(e);return t.t!==e?(this.copyData(i={},t),i.t=e.toString(),i.__complete=!1,i):t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}function SVGTintFilter(t,e,i,r,s){this.filterManager=e;e=createNS("feColorMatrix"),e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.setAttribute("result",r+"_tint_1"),t.appendChild(e),(e=createNS("feColorMatrix")).setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result",r+"_tint_2"),t.appendChild(e),this.matrixFilter=e,e=this.createMergeNode(r,[s,r+"_tint_1",r+"_tint_2"]);t.appendChild(e)}function SVGFillFilter(t,e,i,r){this.filterManager=e;e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result",r),t.appendChild(e),this.matrixFilter=e}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,r){this.filterManager=e;e=createNS("feColorMatrix"),e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(e),e=createNS("feComponentTransfer"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("result",r),this.matrixFilter=e,r=createNS("feFuncR"),r.setAttribute("type","table"),e.appendChild(r),this.feFuncR=r,r=createNS("feFuncG"),r.setAttribute("type","table"),e.appendChild(r),this.feFuncG=r,r=createNS("feFuncB");r.setAttribute("type","table"),e.appendChild(r),this.feFuncB=r,t.appendChild(e)}function SVGProLevelsFilter(t,e,i,r){this.filterManager=e;var e=this.filterManager.effectElements,s=createNS("feComponentTransfer");(e[10].p.k||0!==e[10].p.v||e[11].p.k||1!==e[11].p.v||e[12].p.k||1!==e[12].p.v||e[13].p.k||0!==e[13].p.v||e[14].p.k||1!==e[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(e[17].p.k||0!==e[17].p.v||e[18].p.k||1!==e[18].p.v||e[19].p.k||1!==e[19].p.v||e[20].p.k||0!==e[20].p.v||e[21].p.k||1!==e[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(e[24].p.k||0!==e[24].p.v||e[25].p.k||1!==e[25].p.v||e[26].p.k||1!==e[26].p.v||e[27].p.k||0!==e[27].p.v||e[28].p.k||1!==e[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(e[31].p.k||0!==e[31].p.v||e[32].p.k||1!==e[32].p.v||e[33].p.k||1!==e[33].p.v||e[34].p.k||0!==e[34].p.v||e[35].p.k||1!==e[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s)),(e[3].p.k||0!==e[3].p.v||e[4].p.k||1!==e[4].p.v||e[5].p.k||1!==e[5].p.v||e[6].p.k||0!==e[6].p.v||e[7].p.k||1!==e[7].p.v)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",r),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(t,e,i,r,s){var a=e.container.globalData.renderConfig.filterSize,n=e.data.fs||a,n=(t.setAttribute("x",n.x||a.x),t.setAttribute("y",n.y||a.y),t.setAttribute("width",n.width||a.width),t.setAttribute("height",n.height||a.height),this.filterManager=e,createNS("feGaussianBlur")),a=(n.setAttribute("in","SourceAlpha"),n.setAttribute("result",r+"_drop_shadow_1"),n.setAttribute("stdDeviation","0"),this.feGaussianBlur=n,t.appendChild(n),createNS("feOffset")),e=(a.setAttribute("dx","25"),a.setAttribute("dy","0"),a.setAttribute("in",r+"_drop_shadow_1"),a.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=a,t.appendChild(a),createNS("feFlood")),n=(e.setAttribute("flood-color","#00ff00"),e.setAttribute("flood-opacity","1"),e.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=e,t.appendChild(e),createNS("feComposite")),a=(n.setAttribute("in",r+"_drop_shadow_3"),n.setAttribute("in2",r+"_drop_shadow_2"),n.setAttribute("operator","in"),n.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(n),this.createMergeNode(r,[r+"_drop_shadow_4",s]));t.appendChild(a)}SVGComposableEffect.prototype={createMergeNode:function(t,e){var i,r,s=createNS("feMerge");for(s.setAttribute("result",t),r=0;r<e.length;r+=1)(i=createNS("feMergeNode")).setAttribute("in",e[r]),s.appendChild(i),s.appendChild(i);return s}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100,this.matrixFilter.setAttribute("values",e[0]-t[0]+" 0 0 0 "+t[0]+" "+(e[1]-t[1])+" 0 0 0 "+t[1]+" "+(e[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 "+i+" 0"))},SVGFillFilter.prototype.renderFrame=function(t){var e;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[2].p.v,e=this.filterManager.effectElements[6].p.v,this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+e+" 0"))},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,r,s=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,i=0):r=(i=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<r;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),n=createElementID(),o=(a.setAttribute("id",n),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem.globalData.defs.appendChild(a),createNS("g"));for(o.setAttribute("mask","url("+getLocationHref()+"#"+n+")");s[0];)o.appendChild(s[0]);this.elem.layerElement.appendChild(o),this.masker=a,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(s=this.elem.layerElement.children||this.elem.layerElement.childNodes;s.length;)this.elem.layerElement.removeChild(s[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();for(var e,i,r=this.paths.length,s=0;s<r;s+=1)if(-1!==this.paths[s].m&&(a=this.elem.maskManager.viewData[this.paths[s].m],e=this.paths[s].p,(t||this.filterManager._mdf||a.prop._mdf)&&e.setAttribute("d",a.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||a.prop._mdf)){if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){for(var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),n=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=e.getTotalLength(),h="0 0 0 "+o*a+" ",l=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(o*(n-a)/l),m=0;m<p;m+=1)h+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";h+="0 "+10*o+" 0 0"}else h="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;e.setAttribute("stroke-dasharray",h)}(t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),1!==this.filterManager.effectElements[10].p.v&&2!==this.filterManager.effectElements[10].p.v||(t||this.filterManager.effectElements[3].p._mdf)&&(i=this.filterManager.effectElements[3].p.v,this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*i[0])+","+bmFloor(255*i[1])+","+bmFloor(255*i[2])+")"))},SVGTritoneFilter.prototype.renderFrame=function(t){var e,i,r,s;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,i=(s=this.filterManager.effectElements[2].p.v)[0]+" "+e[0]+" "+t[0],r=s[1]+" "+e[1]+" "+t[1],s=s[2]+" "+e[2]+" "+t[2],this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",r),this.feFuncB.setAttribute("tableValues",s))},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){t=createNS(t);return t.setAttribute("type","table"),e.appendChild(t),t},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,r,s){for(var a,n=0,o=Math.min(t,e),h=Math.max(t,e),l=Array.call(null,{length:256}),p=0,m=s-r,f=e-t;n<=256;)a=(a=n/256)<=o?f<0?s:r:h<=a?f<0?r:s:r+m*Math.pow((a-t)/f,1/i),l[p]=a,p+=1,n+=256/255;return l.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&(i=this.filterManager.effectElements,this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e)))},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),(t||this.filterManager.effectElements[0].p._mdf)&&(i=this.filterManager.effectElements[0].p.v,this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*i[0]),Math.round(255*i[1]),Math.round(255*i[2])))),(t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),(t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf)&&(i=this.filterManager.effectElements[3].p.v,t=(this.filterManager.effectElements[2].p.v-90)*degToRads,e=i*Math.cos(t),i=i*Math.sin(t),this.feOffset.setAttribute("dx",e),this.feOffset.setAttribute("dy",i)))};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,(this.elem=i).matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(t,e,i,r){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;e=createNS("feGaussianBlur");e.setAttribute("result",r),t.appendChild(e),this.feGaussianBlur=e}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var r,s=i.children,a=0,n=s.length;a<n&&s[a]!==t.layerElement;)a+=1;a<=n-2&&(r=s[a+1]);var o=createNS("use");o.setAttribute("href","#"+e),r?i.insertBefore(o,r):i.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){var i,r,s,a;this.findSymbol(e)||(i=createElementID(),(r=createNS("mask")).setAttribute("id",e.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e),(a=t.globalData.defs).appendChild(r),(s=createNS("symbol")).setAttribute("id",i),this.replaceInParent(e,i),s.appendChild(e.layerElement),a.appendChild(s),(a=createNS("use")).setAttribute("href","#"+i),r.appendChild(a),e.data.hd=!1,e.show()),t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,r=e.length;i<r;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){var e;(t||this.filterManager._mdf)&&(t=.3*this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,this.feGaussianBlur.setAttribute("stdDeviation",(3==e?0:t)+" "+(2==e?0:t)),e=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate",this.feGaussianBlur.setAttribute("edgeMode",e))},registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),setExpressionsPlugin(Expressions),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie});var PremiumLottieHandler=function(t,r){t=t.find(".premium-lottie-animation");t.length&&t.each(function(t,e){var i=r(e);i.data("box-tilt")&&(e=i.data("box-tilt-reverse"),UniversalTilt.init({elements:i.parent(),settings:{reverse:e},callbacks:{onMouseLeave:function(t){t.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0)"},onDeviceMove:function(t){t.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0.3)"}}})),elementorFrontend.waypoint(i,function(){(instance=new premiumLottieAnimations(i)).init()})})},PremiumLottieAddonHandler=function(t){if(t.hasClass("premium-lottie-yes")){var f=t,e=f.data("id"),i={},r=f.find("#premium-lottie-"+e),c=elementorFrontend.isEditMode()&&0<r.length,r=c?f.find("#premium-lottie-"+e):f;if(!(i=function(t){t=t.data("pa-lottie");if(!t)return!1;if(i.lottieLayers=[],$.each(t,function(t,e){i.lottieLayers.push(e)}),0!==Object.keys(i).length)return i}(r)))return!1;elementorFrontend.waypoint(t,function(){var p,m;p=elementorFrontend.getCurrentDeviceMode(),c&&f.find(".premium-lottie-layer svg, .premium-lottie-layer canvas").remove(),m="",$.each(i.lottieLayers,function(t,i){var e,a,r,s,n,o,h;function l(t){var e,i,r,s=$(window).outerHeight();"function"==typeof a[0].getBoundingClientRect&&(r=0<=(e=a[0].getBoundingClientRect()).top&&e.top<s,i=0<e.bottom&&e.bottom<=s,r=r&&i,(r=e.top<0&&e.bottom>s||r)?h.play():h.pause())}i.lottie_url="url"===i.source?i.lottie_url:i.lottie_file.url,""!==i.lottie_url&&i.show_layer_on.includes(p)&&(e=i.lottie_renderer,c||(m+='<div class="premium-lottie-layer premium-lottie-animation premium-lottie-'+e+" elementor-repeater-item-"+i._id+'"></div>',f.prepend(m),m=""),a=jQuery(".elementor-repeater-item-"+i._id),r=i.lottie_loop,s=i.lottie_reverse,"play"!==(n=i.hover_action)&&(o=i.start_on_visible),h=lottie.loadAnimation({wrapper:a[0],renderer:e||"svg",loop:!!r,path:i.lottie_url,autoplay:!0}),i.lottie_speed&&1!==i.lottie_speed&&h.setSpeed(i.lottie_speed),s&&h.setDirection(-1),h.addEventListener("DOMLoaded",function(){var t,e;("play"===n||"play"!==n&&o)&&(h.pause(),"play"!==n&&(l(),$(window).on("scroll",l))),"none"!==n&&a.hover(function(){"play"===n?h.play():"pause"===n&&h.pause()},function(){"play"===n?h.pause():"pause"===n&&h.play()}),"yes"!==i.premium_lottie_parallax&&!i.animate_on_scroll||(t=[],"yes"===i.premium_lottie_parallax&&t.push("translateY"),i.animate_on_scroll&&(h.pause(),t.push("animate")),e={elType:"SECTION",effects:t},t.includes("animate")&&(e.animate={speed:i.premium_lottie_animate_speed.size,range:{start:i.premium_lottie_animate_view.sizes.start,end:i.premium_lottie_animate_view.sizes.end}}),t.includes("translateY")&&(e.vscroll={speed:i.premium_lottie_parallax_speed.size||4,direction:i.premium_lottie_parallax_direction,range:{start:i.premium_lottie_parallax_view.sizes.start,end:i.premium_lottie_parallax_view.sizes.end}}),new premiumEffects(a[0],e,h).init())}))})}),c&&new premiumEditorBehavior(f,{repeater:"premium_lottie_repeater",item:".premium-lottie-layer",hor:"premium_lottie_hor",ver:"premium_lottie_ver",width:"premium_lottie_size",tab:"section_premium_lottie",offset:0,widgets:["drag"]}).init()}};window.premiumLottieAnimations=function(h){var l=null,l=h.hasClass("premium-lottie-animation")?h:h.find(".premium-lottie-animation");this.init=function(){var t,e,r,i,s,a,n,o;l.data("initialized")||(l.data("initialized",!0),t=l.data("lottie-loop"),e=l.data("lottie-reverse"),r=l.data("lottie-hover"),i=l.data("lottie-speed"),s=l.data("lottie-scroll"),a=l.data("lottie-viewport"),n=l.data("lottie-render"),o=lottie.loadAnimation({container:l[0],renderer:n||"svg",loop:!!t,path:l.data("lottie-url"),autoplay:!0}),e&&o.setDirection(-1),i&&1!==i&&o.setSpeed(i),o.addEventListener("DOMLoaded",function(){var t,e,i;(s||a)&&(t=l.data("scroll-speed"),e=l.data("scroll-start"),i=l.data("scroll-end"),o.pause(),new premiumEffects(l[0],{elType:"SECTION",animate:{speed:a?"viewport":t,range:{start:e,end:i}},effects:["animate"]},o).init()),r&&(o.pause(),h.hover(function(){o.play()},function(){o.pause()}))}))}},$(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/widget",PremiumLottieHandler),elementorFrontend.hooks.addAction("frontend/element_ready/section",PremiumLottieAddonHandler),elementorFrontend.hooks.addAction("frontend/element_ready/container",PremiumLottieAddonHandler)}),window.premiumEffects=function(r,t,s){var a=this,i=$(r),e=i.data("scrolls"),n=t,o=n.elType;a.elementRules={},a.init=function(){e||"SECTION"===o?n.effects.length&&(a.setDefaults(),elementorFrontend.elements.$window.on("scroll load",a.initScroll)):elementorFrontend.elements.$window.off("scroll load",a.initScroll)},a.setDefaults=function(){n.defaults={},n.defaults.axis="y"},a.getPercents=function(){var t=a.getDimensions();return elementTopWindowPoint=t.elementTop-pageYOffset,elementEntrancePoint=elementTopWindowPoint-innerHeight,passedRangePercents=100/t.range*(-1*elementEntrancePoint)},a.initScroll=function(){a.initScrollEffects()},a.initScrollEffects=function(){var t=a.getPercents(),e=i.closest(".elementor-element").data("settings");e&&"fixed"===e._position&&(t=a.getLottieViewportHeightPercentage()),n.effects.includes("animate")&&a.animate(t,n.animate),n.effects.includes("translateY")&&a.transform("translateY",t,n.vscroll)},a.getLottieViewportHeightPercentage=function(){var t=n.animate.range,e=window.innerHeight,i=t.start||0,t=t.end||0,e=e||document.documentElement.scrollHeight-document.documentElement.clientHeight,i=e*i/100;return(document.documentElement.scrollTop+document.body.scrollTop+i)/(e+i+e*t/100)*100},a.getDimensions=function(){var t=i.offset(),t={elementHeight:i.outerHeight(),elementWidth:i.outerWidth(),elementTop:t.top,elementLeft:t.left};return t.range=t.elementHeight+innerHeight,t},a.getStep=function(t,e){return-(t-50)*e.speed},a.animate=function(t,e){var i=s.totalFrames,i=(e.range&&(e.range.start>t&&(t=e.range.start),e.range.end<t&&(t=e.range.end)),t/100*i);"viewport"===e.speed?e.range.start!==t&&e.range.end!==t?s.play():s.pause():s.goToAndStop(i,!0)},a.transform=function(t,e,i){"down"===i.direction&&(e=100-e),i.range&&(i.range.start>e&&(e=i.range.start),i.range.end<e&&(e=i.range.end)),n.defaults.unit="px",a.updateElement("transform",t,a.getStep(e,i)+n.defaults.unit)},a.updateElement=function(t,e,i){a.elementRules[t]||(a.elementRules[t]={}),a.elementRules[t][e]||(a.elementRules[t][e]=!0,a.updateElementRule(t)),r.style.setProperty("--"+e,i)},a.updateElementRule=function(t){var e="";$.each(a.elementRules[t],function(t){e+=t+"(var(--"+t+"))"}),i.css(t,e)}}}(jQuery);
|
assets/frontend/min-js/premium-addons.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(r){r(window).on("elementor/frontend/init",function(){function n(e,t){var i=e.find(".premium-progressbar-container"),n=(l=i.data("settings")).progress_length,a=l.speed,s=l.type;if("line"===s){var o=i.find(".premium-progressbar-bar");l.gradient&&o.css("background","linear-gradient(-45deg, "+l.gradient+")"),o.animate({width:n+"%"},a)}else if("circle"===s||"half-circle"===s){100<n&&(n=100);var r=1.8*(elementorFrontend.config.is_rtl?-1:1);i.find(".premium-progressbar-hf-circle-progress").css({transform:"rotate("+n*r+"deg)"}),i.prop({counter:0}).animate({counter:n},{duration:a,easing:"linear",step:function(e){var t=3.6*e;i.find(".premium-progressbar-right-label").text(Math.ceil(e)+"%"),i.find(".premium-progressbar-circle-left").css("transform","rotate("+t+"deg)"),"circle"===s&&180<t&&(i.find(".premium-progressbar-circle").css({"-webkit-clip-path":"inset(0)","clip-path":"inset(0)"}),i.find(".premium-progressbar-circle-right").css("visibility","visible"))}})}else{for(var o=i.find(".premium-progressbar-bar-wrap"),r=i.outerWidth(),a=l.dot||25,l=l.spacing||10,m=Math.ceil(r/(a+l)),r=m*(n/100),d=Math.floor(r),a=100*(r-d),u=(o.attr("data-circles",m),o.attr("data-total-fill",d),o.attr("data-partial-fill",a),0);u<m;u++){var c=u<d||u===d?"<div class='segment-inner'></div>":"";o.append("<div class='progress-segment'>"+c+"</div>")}"frontend"!==t&&p(e)}}function p(e){var t=e.find(".premium-progressbar-container").data("settings"),a=e.find(".premium-progressbar-bar-wrap"),e=a.data(),s=t.speed,o=0,r=e.totalFill,l=e.circles,m=e.partialFill;!function e(t){var i=a.find(".progress-segment").eq(t),n=100;t===r&&(n=m);i.find(".segment-inner").animate({width:n+"%"},s/l,function(){++o<=r&&e(o)})}(o)}function e(e,n){var a=e.find(".premium-button-style6-bg");0!==a.length&&e.hasClass("premium-mouse-detect-yes")&&e.on("mouseenter mouseleave",".premium-button-style6",function(e){var t=n(this).offset(),i=e.pageX-t.left,e=e.pageY-t.top;a.css({top:e,left:i})})}function t(e,n){var t;e.hasClass("premium-mask-yes")&&("premium-addon-title.default"===e.data("widget_type")?e.find(t=".premium-title-header").find(".premium-title-icon, .premium-title-img").addClass("premium-mask-span"):t=".premium-dual-header-first-header",e.find(t).find("span:not(.premium-title-style7-stripe-wrap):not(.premium-title-img)").each(function(e,t){var i="";n(this).text().split(" ").forEach(function(e){""!==e&&(i+=' <span class="premium-mask-span">'+e+"</span>")}),n(this).text("").append(i)}),elementorFrontend.waypoint(e,function(){n(e).addClass("premium-mask-active")}))}var i=elementorModules.frontend.handlers.Base,a=i.extend({settings:{},getDefaultSettings:function(){return{selectors:{galleryElement:".premium-gallery-container",filters:".premium-gallery-cats-container li",gradientLayer:".premium-gallery-gradient-layer",loadMore:".premium-gallery-load-more",loadMoreDiv:".premium-gallery-load-more div",vidWrap:".premium-gallery-video-wrap"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={$galleryElement:this.$element.find(e.galleryElement),$filters:this.$element.find(e.filters),$gradientLayer:this.$element.find(e.gradientLayer),$vidWrap:this.$element.find(e.vidWrap)};return t.$loadMore=t.$galleryElement.parent().find(e.loadMore),t.$loadMoreDiv=t.$galleryElement.parent().find(e.loadMoreDiv),t},bindEvents:function(){this.getGlobalSettings(),this.run()},getGlobalSettings:function(){var e=this.elements.$galleryElement.data("settings");this.settings={layout:e.img_size,loadMore:e.load_more,columnWidth:null,filter:null,isFilterClicked:!1,minimum:e.minimum,imageToShow:e.click_images,counter:e.minimum,ltrMode:e.ltr_mode,shuffle:e.shuffle,active_cat:e.active_cat,theme:e.theme,overlay:e.overlay,sort_by:e.sort_by,light_box:e.light_box,flag:e.flag,lightbox_type:e.lightbox_type}},updateCounter:function(){this.settings.isFilterClicked?(this.settings.counter=this.settings.minimum,this.settings.isFilterClicked=!1):this.settings.counter=this.settings.counter,this.settings.counter=this.settings.counter+this.settings.imageToShow},updateGrid:function(e,t,i){r.ajax({url:this.appendItems(this.settings.counter,e,t),beforeSend:function(){i.removeClass("premium-gallery-item-hidden")},success:function(){i.addClass("premium-gallery-item-hidden")}})},loadMore:function(e,t){var i=this.elements.$galleryElement,n=this.elements.$loadMoreDiv,a=this.elements.$loadMore,s=this;n.addClass("premium-gallery-item-hidden"),i.find(".premium-gallery-item").length>this.settings.minimum&&(a.removeClass("premium-gallery-item-hidden"),i.parent().on("click",".premium-gallery-load-less",function(){s.settings.counter=s.settings.counter-s.settings.imageToShow}),i.parent().on("click",".premium-gallery-load-more-btn:not(.premium-gallery-load-less)",function(){s.updateCounter(),s.updateGrid(e,t,n)}))},getItemsToHide:function(e,t){return e.filteredItems.slice(t,e.filteredItems.length).map(function(e){return e.element})},appendItems:function(e,t,i){var n=this.elements.$galleryElement,a=this.elements.$gradientLayer,s=n.data("isotope"),s=this.getItemsToHide(s,e);a.outerHeight(t),n.find(".premium-gallery-item-hidden").removeClass("premium-gallery-item-hidden"),n.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden"),r(s).addClass("premium-gallery-item-hidden"),i.isotope("layout"),0==s&&(a.addClass("premium-gallery-item-hidden"),n.parent().find(".premium-gallery-load-more").addClass("premium-gallery-item-hidden"))},triggerFilerTabs:function(e){var e=e.searchParams.get(this.settings.flag),t=this.elements.$filters;e&&t.eq(e).find("a").trigger("click")},onReady:function(e){e.isotope("layout"),e.isotope({filter:this.settings.active_cat});e=new URL(window.location.href);e&&this.triggerFilerTabs(e)},onResize:function(e){this.setMetroLayout(),e.isotope({itemSelector:".premium-gallery-item",masonry:{columnWidth:this.settings.columnWidth}})},lightBoxDisabled:function(){var n=this;this.elements.$vidWrap.each(function(e,t){var i=r(t).data("type");r(t).closest(".premium-gallery-item").on("click",function(){var e=r(this);e.find(".pa-gallery-img-container").css("background","#000"),e.find("img, .pa-gallery-icons-caption-container, .pa-gallery-icons-wrapper").css("visibility","hidden"),"style3"!==n.settings.skin&&e.find(".premium-gallery-caption").css("visibility","hidden"),"hosted"!==i?n.playVid(e):n.playHostedVid(t)})})},playVid:function(e){var e=e.find(".premium-gallery-iframe-wrap"),t=(t=e.data("src")).replace("&mute","&autoplay=1&mute"),i=r("<iframe/>");i.attr({src:t,frameborder:"0",allowfullscreen:"1",allow:"autoplay;encrypted-media;"}),e.html(i),i.css("visibility","visible")},playHostedVid:function(e){e=r(e).find("video");e.get(0).play(),e.css("visibility","visible")},run:function(){var e,t,i=this.elements.$galleryElement,n=(this.elements.$vidWrap,this.elements.$filters),a=this,s=("metro"===this.settings.layout&&(this.setMetroLayout(),this.settings.layout="masonry",r(window).resize(function(){a.onResize(s)})),i.isotope(this.getIsoTopeSettings()));s.imagesLoaded().progress(function(){s.isotope("layout")}),r(document).ready(function(){a.onReady(s)}),this.settings.loadMore&&(e=this.elements.$gradientLayer,t=null,setTimeout(function(){t=e.outerHeight()},200),this.loadMore(t,s)),"yes"!==this.settings.light_box&&this.lightBoxDisabled(),n.find("a").click(function(e){return e.preventDefault(),a.isFilterClicked=!0,n.find(".active").removeClass("active"),r(this).addClass("active"),a.settings.filter=r(this).attr("data-filter"),s.isotope({filter:a.settings.filter}),a.settings.shuffle&&s.isotope("shuffle"),a.settings.loadMore&&a.appendItems(a.settings.minimum,t,s),!1}),"default"===this.settings.lightbox_type&&this.$element.find(".premium-img-gallery a[data-rel^='prettyPhoto']").prettyPhoto(this.getPrettyPhotoSettings())},getPrettyPhotoSettings:function(){return{theme:this.settings.theme,hook:"data-rel",opacity:.7,show_title:!1,deeplinking:!1,overlay_gallery:this.settings.overlay,custom_markup:"",default_width:900,default_height:506,social_tools:""}},getIsoTopeSettings:function(){return{itemSelector:".premium-gallery-item",percentPosition:!0,animationOptions:{duration:750,easing:"linear"},filter:this.settings.active_cat,layoutMode:this.settings.layout,originLeft:this.settings.ltrMode,masonry:{columnWidth:this.settings.columnWidth},sortBy:this.settings.sort_by}},getRepeaterSettings:function(){return this.getElementSettings("premium_gallery_img_content")},setMetroLayout:function(){var e=this.elements.$galleryElement,t=e.width(),a=Math.floor(t/12),t=elementorFrontend.getCurrentDeviceMode(),s="desktop"===t?"":"_"+t,o=this.getRepeaterSettings();e.find(".premium-gallery-item").each(function(e,t){var i=o[e]["premium_gallery_image_cell"+s].size,n=o[e]["premium_gallery_image_vcell"+s].size;""!==i&&null!=i||(i=o[e].premium_gallery_image_cell.size),""!==n&&null!=n||(n=o[e].premium_gallery_image_vcell.size),r(t).css({width:Math.ceil(i*a),height:Math.ceil(n*a)})}),this.settings.columnWidth=a}}),s=i.extend({getDefaultSettings:function(){return{selectors:{bannerImgWrap:".premium-banner-ib",bannerImg:"img"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$bannerImgWrap:this.$element.find(e.bannerImgWrap),$bannerImg:this.$element.find(e.bannerImg)}},bindEvents:function(){var e=this;e.elements.$bannerImgWrap.hover(function(){e.elements.$bannerImg.addClass("active")},function(){e.elements.$bannerImg.removeClass("active")}),this.run()},run:function(){var e,t=this.$element;t.hasClass("premium-banner-tilt-yes")&&(e=t.hasClass("premium-banner-tilt-rev-yes"),UniversalTilt.init({elements:t.closest(".elementor-widget"),settings:{reverse:e},callbacks:{onMouseLeave:function(e){e.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0)"},onDeviceMove:function(e){e.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0.3)"}}}))}}),o=i.extend({settings:{},getDefaultSettings:function(){return{selectors:{user:".fa-user",activeCat:".category.active",loading:".premium-loading-feed",blogElement:".premium-blog-wrap",blogFilterTabs:".premium-blog-filter",contentWrapper:".premium-blog-content-wrapper",blogPost:".premium-blog-post-outer-container",metaSeparators:".premium-blog-meta-separator",filterLinks:".premium-blog-filters-container li a",currentPage:".premium-blog-pagination-container .page-numbers.current",activeElememnt:".premium-blog-filters-container li .active"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$blogElement:this.$element.find(e.blogElement),$blogFilterTabs:this.$element.find(e.blogFilterTabs),$activeCat:this.$element.find(e.activeCat),$filterLinks:this.$element.find(e.filterLinks),$blogPost:this.$element.find(e.blogPost),$contentWrapper:this.$element.find(e.contentWrapper)}},bindEvents:function(){this.setLayoutSettings(),this.removeMetaSeparators(),this.run()},setLayoutSettings:function(){var e=this.getElementSettings(),t=this.elements.$blogPost,t={pageNumber:1,isLoaded:!0,count:2,equalHeight:e.force_height,layout:e.premium_blog_layout,carousel:"yes"===e.premium_blog_carousel,infinite:"yes"===e.premium_blog_infinite_scroll,scrollAfter:"yes"===e.scroll_to_offset,grid:"yes"===e.premium_blog_grid,total:t.data("total")};t.carousel&&(t.slidesToScroll=e.slides_to_scroll,t.spacing=parseInt(e.premium_blog_carousel_spacing),t.autoPlay="yes"===e.premium_blog_carousel_play,t.arrows="yes"===e.premium_blog_carousel_arrows,t.fade="yes"===e.premium_blog_carousel_fade,t.center="yes"===e.premium_blog_carousel_center,t.dots="yes"===e.premium_blog_carousel_dots,t.speed=""!==e.premium_blog_carousel_autoplay_speed?parseInt(e.premium_blog_carousel_autoplay_speed):5e3),this.settings=t},removeMetaSeparators:function(){var i=this.getSettings("selectors"),e=this.$element.find(i.blogPost),t=e.first().find(i.metaSeparators),n=e.find(i.user);1===t.length?n.length||e.find(i.metaSeparators).remove():n.length||e.each(function(e,t){r(t).find(i.metaSeparators).first().remove()})},run:function(){var e=this,t=this.elements.$blogElement,i=this.elements.$activeCat.data("filter"),n=this.elements.$blogFilterTabs.length,a=t.data("pagination");this.settings.activeCategory=i,this.settings.filterTabs=n,this.settings.filterTabs&&this.filterTabs(),this.settings.filterTabs&&"*"!==this.settings.activeCategory?this.getPostsByAjax(!1):"masonry"!==this.settings.layout||this.settings.carousel||t.imagesLoaded(function(){t.isotope(e.getIsoTopeSettings())}),this.settings.carousel&&(t.slick(this.getSlickSettings()),t.removeClass("premium-carousel-hidden")),"even"===this.settings.layout&&this.settings.equalHeight&&t.imagesLoaded(function(){e.forceEqualHeight()}),a&&this.paginate(),this.settings.infinite&&t.is(":visible")&&this.getInfiniteScrollPosts()},paginate:function(){var t=this,i=this.$element,n=this.getSettings("selectors");i.on("click",".premium-blog-pagination-container .page-numbers",function(e){e.preventDefault(),r(this).hasClass("current")||(e=parseInt(i.find(n.currentPage).html()),r(this).hasClass("next")?t.settings.pageNumber=e+1:r(this).hasClass("prev")?t.settings.pageNumber=e-1:t.settings.pageNumber=r(this).html(),t.getPostsByAjax(t.settings.scrollAfter))})},forceEqualHeight:function(){var i=new Array,e=this.getSettings("selectors").contentWrapper,e=this.$element.find(e),t=(e.each(function(e,t){t=r(t).outerHeight();i.push(t)}),Math.max.apply(null,i));e.css("height",t+"px")},getSlickSettings:function(){var e=this.settings,t=e.grid?this.getSlickCols():null,i=e.grid?t.cols:1,n=e.grid?t.colsTablet:1,t=e.grid?t.colsMobile:1,a=e.arrows?'<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Previous" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>':"",s=e.arrows?'<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>':"";return{infinite:!0,slidesToShow:i,slidesToScroll:e.slidesToScroll||i,responsive:[{breakpoint:1025,settings:{slidesToShow:n,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:t,slidesToScroll:1}}],autoplay:e.autoPlay,rows:0,autoplaySpeed:e.speed,nextArrow:s,prevArrow:a,fade:e.fade,centerMode:e.center,centerPadding:e.spacing+"px",draggable:!0,dots:e.dots,customPaging:function(){return'<i class="fas fa-circle"></i>'}}},getSlickCols:function(){var e=this.getElementSettings(),t=e.premium_blog_columns_number,i=e.premium_blog_columns_number_tablet,e=e.premium_blog_columns_number_mobile;return{cols:parseInt(100/t.substr(0,t.indexOf("%"))),colsTablet:parseInt(100/i.substr(0,i.indexOf("%"))),colsMobile:parseInt(100/e.substr(0,e.indexOf("%")))}},getIsoTopeSettings:function(){return{itemSelector:".premium-blog-post-outer-container",percentPosition:!0,filter:this.settings.activeCategory,animationOptions:{duration:750,easing:"linear",queue:!1}}},filterTabs:function(){var t=this,i=this.getSettings("selectors");this.elements.$filterLinks.click(function(e){e.preventDefault(),t.$element.find(i.activeElememnt).removeClass("active"),r(this).addClass("active"),t.settings.activeCategory=r(this).attr("data-filter"),t.settings.pageNumber=1,t.settings.infinite?(t.getPostsByAjax(!1),t.settings.count=2,t.getInfiniteScrollPosts()):t.getPostsByAjax(t.settings.scrollAfter)})},getPostsByAjax:function(e){void 0===this.settings.activeCategory&&(this.settings.activeCategory="*");var i=this,n=this.elements.$blogElement,a=this.getSettings("selectors");r.ajax({url:PremiumSettings.ajaxurl,dataType:"json",type:"POST",data:{action:"pa_get_posts",page_id:n.data("page"),widget_id:i.$element.data("id"),page_number:i.settings.pageNumber,category:i.settings.activeCategory,nonce:PremiumSettings.nonce},beforeSend:function(){n.append('<div class="premium-loading-feed"><div class="premium-loader"></div></div>'),e&&r("html, body").animate({scrollTop:n.offset().top-50},"slow")},success:function(e){var t;e.data&&(n.find(a.loading).remove(),t=e.data.posts,e=e.data.paging,i.settings.infinite?(i.settings.isLoaded=!0,i.settings.filterTabs&&1===i.settings.pageNumber?n.html(t):n.append(t)):(n.html(t),i.$element.find(".premium-blog-footer").html(e)),i.removeMetaSeparators(),i.settings.layout&&("even"===i.settings.layout?i.settings.equalHeight&&i.forceEqualHeight():n.imagesLoaded(function(){n.isotope("reloadItems"),n.isotope({itemSelector:".premium-blog-post-outer-container",animate:!1})})))},error:function(e){console.log(e)}})},getInfiniteScrollPosts:function(){var e=jQuery(window).outerHeight()/1.25,t=this;r(window).scroll(function(){t.settings.filterTabs&&($blogPost=t.elements.$blogElement.find(".premium-blog-post-outer-container"),t.settings.total=$blogPost.data("total")),t.settings.count<=t.settings.total&&r(window).scrollTop()+e>=t.$element.find(".premium-blog-post-outer-container:last").offset().top&&1==t.settings.isLoaded&&(t.settings.pageNumber=t.settings.count,t.getPostsByAjax(!1),t.settings.count++,t.settings.isLoaded=!1)})}}),i={"premium-addon-person":i.extend({getDefaultSettings:function(){return{slick:{infinite:!0,rows:0,prevArrow:'<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Next" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>',nextArrow:'<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>',draggable:!0,pauseOnHover:!0},selectors:{multiplePersons:".multiple-persons",person:".premium-person-container",personCarousel:".premium-person-container.slick-active",personImg:".premium-person-image-container img"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$multiplePersons:this.$element.find(e.multiplePersons),$persons:this.$element.find(e.person),$personImg:this.$element.find(e.personImg)}},bindEvents:function(){this.run()},getSlickSettings:function(){var e=this.getElementSettings(),t=this.elements.$multiplePersons.data("rtl"),i=e.persons_per_row,n=e.persons_per_row_tablet,a=e.persons_per_row_mobile;return Object.assign(this.getSettings("slick"),{slidesToShow:parseInt(100/i.substr(0,i.indexOf("%"))),slidesToScroll:parseInt(100/i.substr(0,i.indexOf("%"))),responsive:[{breakpoint:1025,settings:{slidesToShow:parseInt(100/n.substr(0,n.indexOf("%"))),slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:parseInt(100/a.substr(0,a.indexOf("%"))),slidesToScroll:1}}],autoplay:e.carousel_play,rtl:!!t,autoplaySpeed:e.speed||5e3})},runEqualHeight:function(){var e=this.elements.$persons,t=this.elements.$personImg,i=this.getSettings("selectors"),n=this.getElementSettings("carousel"),a=new Array;(e=n?this.$element.find(i.personCarousel):e).each(function(e,t){r(t).imagesLoaded(function(){}).done(function(){var e=r(t).find(i.personImg).outerHeight();a.push(e)})}),e.imagesLoaded(function(){}).done(function(){var e=Math.max.apply(null,a);t.css("height",e+"px")})},run:function(){var e=this.elements.$multiplePersons;e.length&&("yes"===e.data("persons-equal")&&this.runEqualHeight(),this.getElementSettings("carousel")&&e.slick(this.getSlickSettings()))}}),"premium-addon-blog":o,"premium-img-gallery":a,"premium-addon-banner":s};r.each({"premium-addon-dual-header.default":t,"premium-addon-video-box.default":function(l,m){var t,i,d=l.find(".premium-video-box-container"),e=l.find(".premium-video-box-playlist-container"),n=d.find(".premium-video-box-video-container"),u=d.find(".premium-video-box-inner-wrap"),c=u.find(".premium-video-box-image-container"),a=d.data("type"),s=d.data("thumbnail"),o=d.data("sticky"),r=d.data("sticky-play"),p=d.data("hover"),g=e.length?e:d,f=!!g.data("lightbox")&&g.data("lightbox");if(f)"prettyphoto"===f.type&&g.find(".premium-vid-lightbox-container[data-rel^='prettyPhoto']").prettyPhoto({theme:f.theme,hook:"data-rel",opacity:.7,show_title:!1,deeplinking:!1,overlay_gallery:!0,custom_markup:"",default_width:900,default_height:506,social_tools:""}),g.find(".premium-video-box-image-container, .premium-video-box-play-icon-container").on("click",function(e){var t;t=g,("elementor"===f.type?t.find(".premium-video-box-video-container"):t.find(".premium-vid-lightbox-container[data-rel^='prettyPhoto']")).click()});else{if(e.length)return n.length?void n.each(function(e,t){var i=m(t),n=i.closest(".premium-video-box-container"),t=i.closest(".premium-video-box-trigger"),a=i.data("src");a+="&autoplay=1",t.on("click",function(){var e=m("<iframe/>");e.attr({src:a,frameborder:"0",allowfullscreen:"1",allow:"autoplay;encrypted-media;"}),i.css("background","#000"),i.html(e),n.find(".premium-video-box-image-container, .premium-video-box-play-icon-container").remove()})}):void 0;"self"===a?(t=n.find("video"),i=t.attr("src"),d.data("play-viewport")&&(elementorFrontend.waypoint(d,function(){h()},{offset:0,triggerOnce:!1}),d.data("play-reset")&&elementorFrontend.waypoint(d,function(e){"up"===e&&(d.removeClass("playing"),m(t).get(0).pause(),m(t).get(0).currentTime=0)},{offset:"100%",triggerOnce:!1}))):(i=n.data("src"),s&&-1===i.indexOf("autoplay=1")?i+="&autoplay=1":d.data("play-viewport")?elementorFrontend.waypoint(d,function(){h()},{offset:0}):h()),d.on("click",function(){h()}),"yes"===o&&"yes"!==r&&v()}function h(){var e;d.hasClass("playing")||(d.addClass("playing"),"yes"===r&&v(),"self"===a?(m(t).get(0).play(),n.css({opacity:"1",visibility:"visible"})):((e=m("<iframe/>")).attr({src:i,frameborder:"0",allowfullscreen:"1",allow:"autoplay;encrypted-media;"}),n.css("background","#000"),n.html(e)),d.find(".premium-video-box-image-container, .premium-video-box-play-icon-container, .premium-video-box-description-container").remove(),"vimeo"===a&&d.find(".premium-video-box-vimeo-wrap").remove())}function v(){var t,i=d.data("hide-desktop"),n=d.data("hide-tablet"),a=d.data("hide-mobile"),s=d.data("sticky-margin");function o(e){var t=elementorFrontend.getCurrentDeviceMode();""!==i&&t==i||""!==n&&t==n||""!==a&&t==a?r(e):e[0].enable()}function r(e){e[0].disable(),d.removeClass("premium-video-box-sticky-apply premium-video-box-sticky-hide")}function e(){d.hasClass("premium-video-box-sticky-apply")&&u.draggable({start:function(){m(this).css({transform:"none",top:m(this).offset().top+"px",left:m(this).offset().left+"px"})},containment:"window"})}d.off("click").on("click",function(e){e=e.target.className;if(0<=e.toString().indexOf("premium-video-box-sticky-close")||0<=e.toString().indexOf("premium-video-box-sticky-close"))return!1;h()}),void 0!==elementorFrontend.waypoint&&(t=elementorFrontend.waypoint(d,function(e){"down"===e?(d.removeClass("premium-video-box-sticky-hide").addClass("premium-video-box-sticky-apply premium-video-box-filter-sticky"),l.hasClass("elementor-motion-effects-parent")&&l.removeClass("elementor-motion-effects-perspective").find(".elementor-widget-container").addClass("premium-video-box-transform"),d.data("mask")&&(l.find(".premium-video-box-mask-filter").removeClass("premium-video-box-mask-filter"),d.find(":first-child").removeClass("premium-video-box-mask-media"),c.removeClass(p).removeClass("premium-video-box-mask-media").css({transition:"width 0.2s, height 0.2s","-webkit-transition":"width 0.2s, height 0.2s"})),m(document).trigger("premium_after_sticky_applied",[l]),u.data("video-animation")&&" "!=u.data("video-animation")&&(u.css("opacity","0"),e=u.data("delay-animation"),setTimeout(function(){u.css("opacity","1").addClass("animated "+u.data("video-animation"))},1e3*e))):(d.removeClass("premium-video-box-sticky-apply premium-video-box-filter-sticky").addClass("premium-video-box-sticky-hide"),l.hasClass("elementor-motion-effects-parent")&&l.addClass("elementor-motion-effects-perspective").find(".elementor-widget-container").removeClass("premium-video-box-transform"),d.data("mask")&&(d.parent().addClass("premium-video-box-mask-filter"),d.find(":first-child").eq(0).addClass("premium-video-box-mask-media"),c.addClass("premium-video-box-mask-media")),c.addClass(p).css({transition:"all 0.2s","-webkit-transition":"all 0.2s"}),u.removeClass("animated "+u.data("video-animation")))},{offset:"0%",triggerOnce:!1})),l.find(".premium-video-box-sticky-close").off("click.closetrigger").on("click.closetrigger",function(e){e.stopPropagation(),t[0].disable(),d.removeClass("premium-video-box-sticky-apply premium-video-box-sticky-hide"),l.hasClass("elementor-motion-effects-parent")&&l.addClass("elementor-motion-effects-perspective").find(".elementor-widget-container").removeClass("premium-video-box-transform"),d.data("mask")&&(d.parent().addClass("premium-video-box-mask-filter"),d.find(":first-child").eq(0).addClass("premium-video-box-mask-media"),c.addClass("premium-video-box-mask-media"))}),o(t),e(),window.addEventListener("scroll",e),m(window).resize(function(e){o(t)}),m(document).on("premium_after_sticky_applied",function(e,t){var i=t.find(".premium-video-box-sticky-infobar");0!==i.length&&(i=i.outerHeight(),(t.hasClass("premium-video-sticky-center-left")||t.hasClass("premium-video-sticky-center-right"))&&(i=Math.ceil(i/2),u.css("top","calc( 50% - "+i+"px )")),(t.hasClass("premium-video-sticky-bottom-left")||t.hasClass("premium-video-sticky-bottom-right"))&&""!==s&&(i=Math.ceil(i),u.css("bottom",i+s)))})}},"premium-addon-fancy-text.default":function(e,t){var i=e.find(".premium-fancy-text-wrapper"),n=i.data("settings"),a=n.delay||2500,s=i.find(".premium-fancy-list-items").length,s=""!==n.count||["typing","slide","autofade"].includes(n.effect)?n.count*s:"infinite";if("typing"===n.effect){var o=[],r=(n.strings.forEach(function(e){o.push(e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),"#"+i.find(".premium-fancy-text").attr("id"));new Typed(r,{strings:o,typeSpeed:n.typeSpeed,backSpeed:n.backSpeed,startDelay:n.startDelay,backDelay:n.backDelay,showCursor:n.showCursor,cursorChar:n.cursorChar,loop:n.loop})}else if("slide"===n.effect)a=n.pause,i.find(".premium-fancy-text").vTicker({speed:n.speed,showItems:n.showItems,pause:n.pause,mousePause:n.mousePause,direction:"up"});else if("auto-fade"===n.effect){var r=i.find(".premium-fancy-list-items"),l=r.length;if(0===l)return;var m=n.duration/l,d=0,a=m;r.each(function(e,t){t.style.animationDelay=d+"ms",d+=m})}else var u,c,p=i.find(".premium-fancy-list-items"),g=1,l=n.delay||2500,f=n.count,h=(f&&(u=1,c=i.find(".premium-fancy-list-items").length),setInterval(function(){var e="";"custom"===n.effect&&(e="animated "+n.animation),p.eq(g).addClass("premium-fancy-item-visible "+e).removeClass("premium-fancy-item-hidden"),p.filter(function(e){return e!==g}).addClass("premium-fancy-item-hidden").removeClass("premium-fancy-item-visible "+e),g++,p.length===g&&(g=0),f&&c*f===++u&&clearInterval(h)},l));"typing"!==n.effect&&setTimeout(function(){i.find(".premium-fancy-text").css("opacity","1")},500),"loading"===n.loading&&"typing"!==n.effect&&(e.find(".premium-fancy-text").append('<span class="premium-loading-bar"></span>'),e.find(".premium-loading-bar").css({"animation-iteration-count":s,"animation-duration":a+"ms"}))},"premium-counter.default":function(e,t){var e=e.find(".premium-counter"),i=e.closest(".premium-hscroll-temp"),n=e.data(),a=e.find(".premium-counter-init"),s=e.find(".icon");i.length?t(window).on("scroll",function(){t(window).scrollTop()>=i.data("scroll-offset")&&(t(a).numerator(n),t(s).addClass("animated "+s.data("animation")))}):elementorFrontend.waypoint(e,function(){t(a).numerator(n),t(s).addClass("animated "+s.data("animation"))})},"premium-addon-title.default":[function(e,i){var t,n,a=e.find(".premium-title-container"),s=a.find(".premium-title-text");a.hasClass("style9")&&e.find(".premium-title-style9").each(function(){var e=i(this),t=1e3*e.attr("data-blur-delay");e.attr("data-animation-blur","process"),e.find(".premium-title-style9-letter").each(function(e,t){e+=1,e=i("body").hasClass("rtl")?.2/e+"s":e/20+"s",i(t).css({"-webkit-animation-delay":e,"animation-delay":e})}),setInterval(function(){e.attr("data-animation-blur","done"),setTimeout(function(){e.attr("data-animation-blur","process")},150)},t)}),a.hasClass("style8")&&(t=1e3*s.attr("data-shiny-delay"),n=1e3*s.attr("data-shiny-dur"),function e(){s.get(0).setAttribute("data-animation","shiny"),setTimeout(function(){s.removeAttr("data-animation")},n),setTimeout(e,t)}())},t],"premium-countdown-timer.default":function(e,o){var t=e.find(".premium-countdown"),n=t.data("settings"),r=e.data("id"),e=n.label1,i=n.label2,e=e.split(","),i=i.split(","),a="evergreen"===n.timerType?n.until.date.replace(/ /g,"T"):n.until,s="",l={y:{index:0,oldVal:""},o:{index:1,oldVal:""},w:{index:2,oldVal:""},d:{index:3,oldVal:""},h:{index:4,oldVal:""},m:{index:5,oldVal:""},s:{index:6,oldVal:""}};t.find("#countdown-"+r).hasClass("premium-countdown-flip")&&n.format.split("").forEach(function(e){e=e.toLowerCase();s+='<div class="premium-countdown-block premium-countdown-'+e+'"><div class="pre_time-mid"> <div class="premium-countdown-figure"><span class="top">{'+e+'nn}</span><span class="top-back"><span>{'+e+'nn}</span></span><span class="bottom">{'+e+'nn}</span><span class="bottom-back"><span>{'+e+'nn}</span></span></div><span class="premium-countdown-label">{'+e+'l}</span></div><span class="countdown_separator">{sep}</span></div>'}),t.find("#countdown-"+r).countdown({layout:s,labels:i,labels1:e,until:new Date(a),format:n.format,padZeroes:!0,timeSeparator:n.separator,onTick:function(e){var i,a,s;i=0,t.find("#countdown-"+r+" .countdown-amount").each(function(e,t){i<o(t).outerWidth()&&(i=o(t).outerWidth())}),t.find("#countdown-"+r+" .countdown-amount").css("width",i),t.find("#countdown-"+r).hasClass("premium-countdown-flip")&&(a=e,s=l,n.format.split("").forEach(function(e){var t,e=e.toLowerCase(),i=s[e].index,n=s[e].oldVal;a[i]!==n&&(s[e].oldVal=a[i],t=o("#countdown-"+r).find(".premium-countdown-"+e+" .top"),n=o("#countdown-"+r).find(".premium-countdown-"+e+" .top-back"),TweenMax.to(t,.8,{rotationX:"-180deg",transformPerspective:300,ease:Quart.easeOut,onComplete:function(){TweenMax.set(t,{rotationX:0})}}),TweenMax.to(n,.8,{rotationX:0,transformPerspective:300,ease:Quart.easeOut,clearProps:"all"}))}))},onExpiry:function(){"onExpiry"===n.event&&t.find("#countdown-"+r).html(n.text)},serverSync:function(){return new Date(n.serverSync)}}),n.reset&&t.find(".premium-countdown-init").countdown("option","until",new Date(a)),"expiryUrl"===n.event&&t.find("#countdown-"+r).countdown("option","expiryUrl",elementorFrontend.isEditMode()?"":n.text),(times=t.find("#countdown-"+r).countdown("getTimes")).every(function(e){return 0==e})&&("onExpiry"===n.event?t.find("#countdown-"+r).html(n.text):"expiryUrl"!==n.event||elementorFrontend.isEditMode()||(0<o("body").find("#elementor").length?t.find("#countdown-"+r).html("<h1>You can not redirect url from elementor Editor!!</h1>"):elementorFrontend.isEditMode()||(window.location.href=n.text)))},"premium-carousel-widget.default":function(e,l){var t,m=e.find(".premium-carousel-wrapper"),d=l(m).data("settings"),i=elementorFrontend.isEditMode();function n(e){var t=m.find(".slick-slide");(t="init"===e?t.not(".slick-current"):t).find(".animated").each(function(e,t){var i=l(t).data("settings");i&&(i._animation||i.animation)&&(i=i._animation||i.animation,l(t).removeClass("animated "+i).addClass("elementor-invisible"))})}m.find(".item-wrapper").length<1||(i&&m.find(".item-wrapper").each(function(e,t){var i=l(t).data("template");void 0!==i&&""!==i&&l.ajax({type:"GET",url:PremiumSettings.ajaxurl,dataType:"html",data:{action:"get_elementor_template_content",templateID:i}}).success(function(e){e=JSON.parse(e).data;void 0!==e.template_content&&(l(t).html(e.template_content),m.find(".premium-carousel-inner").slick("refresh"))})}),m.on("init",function(e){e.preventDefault(),setTimeout(function(){n("init")},500),l(this).find("item-wrapper.slick-active").each(function(){var e=l(this);e.addClass(e.data("animation"))}),l(".slick-track").addClass("translate")}),m.find(".premium-carousel-inner").slick({vertical:d.vertical,slidesToScroll:d.slidesToScroll,slidesToShow:d.slidesToShow,responsive:[{breakpoint:d.tabletBreak,settings:{slidesToShow:d.slidesTab,slidesToScroll:d.slidesTab,swipe:d.touchMove}},{breakpoint:d.mobileBreak,settings:{slidesToShow:d.slidesMob,slidesToScroll:d.slidesMob,swipe:d.touchMove}}],useTransform:!0,fade:d.fade,infinite:d.infinite,speed:d.speed,autoplay:d.autoplay,autoplaySpeed:d.autoplaySpeed,rows:0,draggable:d.draggable,rtl:d.rtl,adaptiveHeight:d.adaptiveHeight,pauseOnHover:d.pauseOnHover,centerMode:d.centerMode,centerPadding:d.centerPadding,arrows:d.arrows,prevArrow:m.find(".premium-carousel-nav-arrow-prev").html(),nextArrow:m.find(".premium-carousel-nav-arrow-next").html(),dots:d.dots,variableWidth:d.variableWidth,cssEase:d.cssEase,customPaging:function(){return m.find(".premium-carousel-nav-dot").html()}}),e.find(".premium-carousel-hidden").removeClass("premium-carousel-hidden"),m.find(".premium-carousel-nav-arrow-prev").remove(),m.find(".premium-carousel-nav-arrow-next").remove(),d.variableWidth&&m.find(".elementor-container").css("flex-wrap","nowrap"),m.on("afterChange",function(e,t,i){var n,a=t.options.slidesToScroll,s=(o=(o=t).options.slidesToShow,(s=l(window).width())>d.tabletBreak&&(o=d.slidesDesk),s<=d.tabletBreak&&(o=d.slidesTab),o=s<=d.mobileBreak?d.slidesMob:o),o=t.options.centerMode,s=i+s-1;if(m.find(".slick-active .elementor-invisible").each(function(e,t){var i,n,a=l(t).data("settings");a&&(a._animation||a.animation)&&(i=a._animation_delay||0,n=a._animation||a.animation,setTimeout(function(){l(t).removeClass("elementor-invisible").addClass(n+" animated")},i))}),1===a)!0==!o&&(n=l(this).find("[data-slick-index='"+s+"']"),"null"!=d.animation&&n.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(d.animation).removeClass("premium-carousel-content-hidden"));else for(var r=a+i;0<=r;r--)n=l(this).find("[data-slick-index='"+r+"']"),"null"!=d.animation&&n.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(d.animation).removeClass("premium-carousel-content-hidden");t.$slides.length-1!=i||d.infinite||m.find(".premium-carousel-inner").slick("slickSetOption","autoplay",!1,!0)}),m.on("beforeChange",function(e,t,i){n();i=l(this).find("[data-slick-index='"+i+"']");"null"!=d.animation&&i.siblings().find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").removeClass(d.animation).addClass("premium-carousel-content-hidden")}),d.vertical&&(t=-1,elementorFrontend.elements.$window.on("load",function(){m.find(".slick-slide").each(function(){l(this).height()>t&&(t=l(this).height())}),m.find(".slick-slide").each(function(){l(this).height()<t&&l(this).css("margin",Math.ceil((t-l(this).height())/2)+"px 0")})})),(i={element:l("a.ver-carousel-arrow"),getWidth:function(){return this.element.outerWidth()/2},setWidth:function(e){"vertical"==(e=e||"vertical")?this.element.css("margin-left","-"+this.getWidth()+"px"):this.element.css("margin-top","-"+this.getWidth()+"px")}}).setWidth(),i.element=l("a.carousel-arrow"),i.setWidth("horizontal"),l(document).ready(function(){d.navigation.map(function(e,t){e&&l(e).on("click",function(){var e=m.find(".premium-carousel-inner").slick("slickCurrentSlide");t!==e&&m.find(".premium-carousel-inner").slick("slickGoTo",t)})})}))},"premium-addon-modal-box.default":function(e,t){var i,n=e.find(".premium-modal-box-container"),a=n.data("settings"),s=n.find(".premium-modal-box-modal-dialog");a&&("pageload"===a.trigger&&t(document).ready(function(e){setTimeout(function(){n.find(".premium-modal-box-modal").modal()},1e3*a.delay)}),s.data("modal-animation")&&" "!=s.data("modal-animation")&&(i=s.data("delay-animation"),new Waypoint({element:s,handler:function(){setTimeout(function(){s.css("opacity","1").addClass("animated "+s.data("modal-animation"))},1e3*i),this.destroy()},offset:Waypoint.viewportHeight()-150})))},"premium-image-scroll.default":function(e,t){var i=e.find(".premium-image-scroll-container"),n=i.find(".premium-image-scroll-overlay"),e=i.find(".premium-image-scroll-vertical"),a=i.data("settings"),s=i.find("img"),o=a.direction,r=a.reverse,l=null;function m(){s.css("transform",("vertical"===o?"translateY":"translateX")+"( -"+l+"px)")}function d(){s.css("transform",("vertical"===o?"translateY":"translateX")+"(0px)")}function u(){l="vertical"===o?s.height()-i.height():s.width()-i.width()}"scroll"===a.trigger?(i.addClass("premium-container-scroll"),"vertical"===o?e.addClass("premium-image-scroll-ver"):i.imagesLoaded(function(){n.css({width:s.width(),height:s.height()})})):("yes"===r&&i.imagesLoaded(function(){i.addClass("premium-container-scroll-instant"),u(),m()}),"vertical"===o&&e.removeClass("premium-image-scroll-ver"),i.mouseenter(function(){i.removeClass("premium-container-scroll-instant"),u(),("yes"===r?d:m)()}),i.mouseleave(function(){("yes"===r?m:d)()}))},"premium-contact-form.default":function(e,t){e=e.find(".premium-cf7-container").find('input[type="text"], input[type="email"], textarea, input[type="password"], input[type="date"], input[type="number"], input[type="tel"], input[type="file"], input[type="url"]');e.wrap("<span class='wpcf7-span'>"),e.on("focus blur",function(){t(this).closest(".wpcf7-span").toggleClass("is-focused")})},"premium-icon-list.default":function(e,n){var a=e.find(".premium-bullet-list-box");a.find(".premium-bullet-list-content").each(function(e,i){a.data("list-animation")&&" "!=a.data("list-animation")&&elementorFrontend.waypoint(n(i),function(){var e=n(i),t=e.data("delay");setTimeout(function(){e.next(".premium-bullet-list-divider , .premium-bullet-list-divider-inline").css("opacity","1"),e.next(".premium-bullet-list-divider-inline , .premium-bullet-list-divider").addClass("animated "+a.data("list-animation")),e.css("opacity","1").addClass("animated "+a.data("list-animation"))},t)})})},"premium-addon-button.default":e,"premium-addon-image-button.default":e,"premium-nav-menu.default":function(s,o){s.find(".premium-nav-widget-container").removeClass("elementor-invisible");var i,r,e,t,n,a,l,m,d,u=s.find(".premium-nav-widget-container").data("settings");function c(e){var t,i,n,a;e.breakpoint>=o(window).width()&&!d?(s.find(".premium-ver-toggler").css("display","none"),s.addClass("premium-hamburger-menu"),s.find(".premium-active-menu").removeClass("premium-active-menu"),t=s.find(".premium-stretch-dropdown .premium-mobile-menu-container"),i=o(s).closest(".elementor-top-section"),n=o(i).outerWidth(),a=s.offset().top,a=o(i).offset().top+o(i).outerHeight()-a,i=s.offset().left-o(i).offset().left,o(t).css({width:n+"px",left:"-"+i+"px",top:a+"px"}),isDesktopMenu=!(d=!0)):e.breakpoint<o(window).width()&&!isDesktopMenu&&(s.hasClass("premium-ver-toggle-yes")&&s.find(".premium-ver-toggler").css("display","flex"),r.removeClass("premium-toggle-opened"),s.find(".premium-mobile-menu-container .premium-active-menu").removeClass("premium-active-menu"),s.removeClass("premium-hamburger-menu premium-ham-dropdown"),s.find(".premium-vertical-toggle-open").removeClass("premium-vertical-toggle-open"),s.find(".premium-nav-default").removeClass("premium-nav-default"),isDesktopMenu=!0,d=!1)}function p(){var e,t,i;s.hasClass("premium-nav-sticky-yes")&&o("#"+u.stickyOptions.targetId).length&&!u.stickyOptions.disableOn.includes(elementorFrontend.getCurrentDeviceMode())?((n=u.stickyOptions).spacerClass="premium-sticky-spacer-"+o("#"+n.targetId).data("id"),o("#"+n.targetId).addClass("premium-sticky-active"),e=n,t=m+elementorFrontend.getCurrentDeviceMode(),(i=o("#"+e.targetId).hasClass("premium-sticky-parent"))&&o("#"+e.targetId).css({position:"relative",width:"inherit"}),window[t]=o("#"+e.targetId).outerWidth()+"px",i&&o("#"+e.targetId).css({position:"fixed",width:window[t]}),0===o("."+n.spacerClass).length&&o('<div class="'+n.spacerClass+'"></div>').insertBefore("#"+n.targetId),o(window).on("load",g),o(window).on("scroll.PaStickyNav",g)):(o(window).off("scroll.PaStickyNav"),o('<div class="'+n.spacerClass+'"></div>').remove(),o("#"+n.targetId).removeClass("premium-sticky-parent premium-sticky-active premium-sticky-parent-"+s.data("id")).css({top:"unset",width:"inherit",position:"relative"}))}function g(){var e=elementorFrontend.elements.$wpAdminBar.height()?elementorFrontend.elements.$wpAdminBar.height():0,t=o(window).scrollTop()+e,i=m+elementorFrontend.getCurrentDeviceMode();window[l]&&!a||(window[l]=o("."+n.spacerClass).offset().top,a=!1),t>=window[l]?(o("."+n.spacerClass).css("height",o("#"+n.targetId).outerHeight()+"px"),o("#"+n.targetId).addClass("premium-sticky-parent premium-sticky-parent-"+s.data("id")).css({width:window[i],top:e,position:"fixed"})):(o("."+n.spacerClass).css("height","0px"),o("#"+n.targetId).removeClass("premium-sticky-parent premium-sticky-parent-"+s.data("id")).css({top:"unset",width:"inherit",position:"relative"})),n.onScroll?(t=document.querySelector("#"+n.targetId+".premium-sticky-parent"))&&(o("#"+n.targetId+".premium-sticky-parent").addClass("premium-sticky-scroll-yes"),new Headroom(t,{tolerance:5,classes:{initial:"animated",pinned:"slideDown",unpinned:"slideUp",offset:{up:o("#"+n.targetId).outerHeight()+150}}}).init()):o("#"+n.targetId+".premium-sticky-parent").removeClass("premium-sticky-scroll-yes")}u&&(i=s.find(".premium-mobile-menu"),r=s.find(".premium-hamburger-toggle"),e=s.find(".premium-mobile-menu-close"),t=s.find(".premium-mega-content-centered"),a=!(n={}),l="stickyPos"+s.data("id"),m="stickyWidth"+s.data("id"),window.PaCurrStickyDevice=elementorFrontend.getCurrentDeviceMode(),t.each(function(e,t){o(t).closest(".premium-nav-menu-item").addClass("premium-mega-item-static")}),"slide"!==u.mobileLayout&&"slide"!==u.mainLayout||s.addClass("premium-ver-hamburger-menu"),d=isDesktopMenu=null,c(u),p(),e.on("click",function(){s.find(".premium-mobile-menu-outer-container, .premium-nav-slide-overlay").removeClass("premium-vertical-toggle-open")}),r.on("click",function(){"slide"===u.mobileLayout||"slide"===u.mainLayout?s.find(".premium-mobile-menu-outer-container, .premium-nav-slide-overlay").addClass("premium-vertical-toggle-open"):o(i).hasClass("premium-active-menu")?s.find(".premium-mobile-menu-container").slideUp("slow",function(){i.removeClass("premium-active-menu"),s.find(".premium-mobile-menu-container").show()}):i.addClass("premium-active-menu"),r.toggleClass("premium-toggle-opened")}),i.find(".premium-nav-menu-item.menu-item-has-children a, .premium-mega-nav-item a").on("click",function(e){var t;o(this).find(".premium-dropdown-icon").length<1||(t=o(this).parent(".premium-nav-menu-item"),e.stopPropagation(),e.preventDefault(),t.hasClass("premium-active-menu")?t.toggleClass("premium-active-menu"):(i.find(".premium-active-menu").toggleClass("premium-active-menu"),t.toggleClass("premium-active-menu"),o(t).parents(".premium-nav-menu-item.menu-item-has-children").toggleClass("premium-active-menu")))}),o(document).on("click",".premium-nav-slide-overlay",function(){s.find(".premium-mobile-menu-outer-container, .premium-nav-slide-overlay").removeClass("premium-vertical-toggle-open")}),o(document).on("click.PaCloseMegaMenu",function(e){var t=o(e.target).closest(".premium-tabs-nav-list-item").length;o(e.target).closest(".premium-nav-widget-container").length||t||o(i).hasClass("premium-active-menu")&&r.click()}),o(window).on("resize",function(){window.PaCurrStickyDevice!==elementorFrontend.getCurrentDeviceMode()&&(a=!0,window.PaCurrStickyDevice=elementorFrontend.getCurrentDeviceMode()),c(u),p()}),s.hasClass("premium-ver-toggle-yes")&&s.hasClass("premium-ver-click")&&s.find(".premium-ver-toggler").on("click",function(){s.find(".premium-nav-widget-container").toggleClass("premium-ver-collapsed",500)}))}},function(i,e){"object"==typeof e?r.each(e,function(e,t){elementorFrontend.hooks.addAction("frontend/element_ready/"+i,t)}):elementorFrontend.hooks.addAction("frontend/element_ready/"+i,e)}),r.each(i,function(e,t){elementorFrontend.elementsHandler.attachHandler(e,t)}),elementorFrontend.isEditMode()?elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-progressbar.default",n):elementorFrontend.hooks.addAction("frontend/element_ready/premium-addon-progressbar.default",function(e,t){var i=e.find(".premium-progressbar-container").data("settings").type;"dots"===i&&n(e,"frontend"),elementorFrontend.waypoint(e,function(){("dots"!==i?n:p)(t(this))})})})}(jQuery);
|
1 |
+
!function(r){r(window).on("elementor/frontend/init",function(){function n(e,t){var i=e.find(".premium-progressbar-container"),n=(l=i.data("settings")).progress_length,a=l.speed,s=l.type;if("line"===s){var o=i.find(".premium-progressbar-bar");l.gradient&&o.css("background","linear-gradient(-45deg, "+l.gradient+")"),o.animate({width:n+"%"},a)}else if("circle"===s||"half-circle"===s){100<n&&(n=100);var r=1.8*(elementorFrontend.config.is_rtl?-1:1);i.find(".premium-progressbar-hf-circle-progress").css({transform:"rotate("+n*r+"deg)"}),i.prop({counter:0}).animate({counter:n},{duration:a,easing:"linear",step:function(e){var t=3.6*e;i.find(".premium-progressbar-right-label").text(Math.ceil(e)+"%"),i.find(".premium-progressbar-circle-left").css("transform","rotate("+t+"deg)"),"circle"===s&&180<t&&(i.find(".premium-progressbar-circle").css({"-webkit-clip-path":"inset(0)","clip-path":"inset(0)"}),i.find(".premium-progressbar-circle-right").css("visibility","visible"))}})}else{for(var o=i.find(".premium-progressbar-bar-wrap"),r=i.outerWidth(),a=l.dot||25,l=l.spacing||10,m=Math.ceil(r/(a+l)),r=m*(n/100),d=Math.floor(r),a=100*(r-d),u=(o.attr("data-circles",m),o.attr("data-total-fill",d),o.attr("data-partial-fill",a),0);u<m;u++){var c=u<d||u===d?"<div class='segment-inner'></div>":"";o.append("<div class='progress-segment'>"+c+"</div>")}"frontend"!==t&&p(e)}}function p(e){var t=e.find(".premium-progressbar-container").data("settings"),a=e.find(".premium-progressbar-bar-wrap"),e=a.data(),s=t.speed,o=0,r=e.totalFill,l=e.circles,m=e.partialFill;!function e(t){var i=a.find(".progress-segment").eq(t),n=100;t===r&&(n=m);i.find(".segment-inner").animate({width:n+"%"},s/l,function(){++o<=r&&e(o)})}(o)}function e(e,n){var a=e.find(".premium-button-style6-bg");0!==a.length&&e.hasClass("premium-mouse-detect-yes")&&e.on("mouseenter mouseleave",".premium-button-style6",function(e){var t=n(this).offset(),i=e.pageX-t.left,e=e.pageY-t.top;a.css({top:e,left:i})})}function t(e,n){var t;e.hasClass("premium-mask-yes")&&("premium-addon-title.default"===e.data("widget_type")?e.find(t=".premium-title-header").find(".premium-title-icon, .premium-title-img").addClass("premium-mask-span"):t=".premium-dual-header-first-header",e.find(t).find("span:not(.premium-title-style7-stripe-wrap):not(.premium-title-img)").each(function(e,t){var i="";n(this).text().split(" ").forEach(function(e){""!==e&&(i+=' <span class="premium-mask-span">'+e+"</span>")}),n(this).text("").append(i)}),elementorFrontend.waypoint(e,function(){n(e).addClass("premium-mask-active")}))}var i=elementorModules.frontend.handlers.Base,a=i.extend({settings:{},getDefaultSettings:function(){return{selectors:{galleryElement:".premium-gallery-container",filters:".premium-gallery-cats-container li",gradientLayer:".premium-gallery-gradient-layer",loadMore:".premium-gallery-load-more",loadMoreDiv:".premium-gallery-load-more div",vidWrap:".premium-gallery-video-wrap"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={$galleryElement:this.$element.find(e.galleryElement),$filters:this.$element.find(e.filters),$gradientLayer:this.$element.find(e.gradientLayer),$vidWrap:this.$element.find(e.vidWrap)};return t.$loadMore=t.$galleryElement.parent().find(e.loadMore),t.$loadMoreDiv=t.$galleryElement.parent().find(e.loadMoreDiv),t},bindEvents:function(){this.getGlobalSettings(),this.run()},getGlobalSettings:function(){var e=this.elements.$galleryElement.data("settings");this.settings={layout:e.img_size,loadMore:e.load_more,columnWidth:null,filter:null,isFilterClicked:!1,minimum:e.minimum,imageToShow:e.click_images,counter:e.minimum,ltrMode:e.ltr_mode,shuffle:e.shuffle,active_cat:e.active_cat,theme:e.theme,overlay:e.overlay,sort_by:e.sort_by,light_box:e.light_box,flag:e.flag,lightbox_type:e.lightbox_type}},updateCounter:function(){this.settings.isFilterClicked?(this.settings.counter=this.settings.minimum,this.settings.isFilterClicked=!1):this.settings.counter=this.settings.counter,this.settings.counter=this.settings.counter+this.settings.imageToShow},updateGrid:function(e,t,i){r.ajax({url:this.appendItems(this.settings.counter,e,t),beforeSend:function(){i.removeClass("premium-gallery-item-hidden")},success:function(){i.addClass("premium-gallery-item-hidden")}})},loadMore:function(e,t){var i=this.elements.$galleryElement,n=this.elements.$loadMoreDiv,a=this.elements.$loadMore,s=this;n.addClass("premium-gallery-item-hidden"),i.find(".premium-gallery-item").length>this.settings.minimum&&(a.removeClass("premium-gallery-item-hidden"),i.parent().on("click",".premium-gallery-load-less",function(){s.settings.counter=s.settings.counter-s.settings.imageToShow}),i.parent().on("click",".premium-gallery-load-more-btn:not(.premium-gallery-load-less)",function(){s.updateCounter(),s.updateGrid(e,t,n)}))},getItemsToHide:function(e,t){return e.filteredItems.slice(t,e.filteredItems.length).map(function(e){return e.element})},appendItems:function(e,t,i){var n=this.elements.$galleryElement,a=this.elements.$gradientLayer,s=n.data("isotope"),s=this.getItemsToHide(s,e);a.outerHeight(t),n.find(".premium-gallery-item-hidden").removeClass("premium-gallery-item-hidden"),n.parent().find(".premium-gallery-load-more").removeClass("premium-gallery-item-hidden"),r(s).addClass("premium-gallery-item-hidden"),i.isotope("layout"),0==s&&(a.addClass("premium-gallery-item-hidden"),n.parent().find(".premium-gallery-load-more").addClass("premium-gallery-item-hidden"))},triggerFilerTabs:function(e){var e=e.searchParams.get(this.settings.flag),t=this.elements.$filters;e&&t.eq(e).find("a").trigger("click")},onReady:function(e){e.isotope("layout");e=new URL(window.location.href);e&&this.triggerFilerTabs(e),this.$element.find(".category.active").trigger("click"),this.$element.find(".elementor-invisible").removeClass("elementor-invisible")},onResize:function(e){this.setMetroLayout(),e.isotope({itemSelector:".premium-gallery-item",masonry:{columnWidth:this.settings.columnWidth}})},lightBoxDisabled:function(){var n=this;this.elements.$vidWrap.each(function(e,t){var i=r(t).data("type");r(t).closest(".premium-gallery-item").on("click",function(){var e=r(this);e.find(".pa-gallery-img-container").css("background","#000"),e.find("img, .pa-gallery-icons-caption-container, .pa-gallery-icons-wrapper").css("visibility","hidden"),"style3"!==n.settings.skin&&e.find(".premium-gallery-caption").css("visibility","hidden"),"hosted"!==i?n.playVid(e):n.playHostedVid(t)})})},playVid:function(e){var e=e.find(".premium-gallery-iframe-wrap"),t=(t=e.data("src")).replace("&mute","&autoplay=1&mute"),i=r("<iframe/>");i.attr({src:t,frameborder:"0",allowfullscreen:"1",allow:"autoplay;encrypted-media;"}),e.html(i),i.css("visibility","visible")},playHostedVid:function(e){e=r(e).find("video");e.get(0).play(),e.css("visibility","visible")},run:function(){var e,t,i=this.elements.$galleryElement,n=(this.elements.$vidWrap,this.elements.$filters),a=this,s=("metro"===this.settings.layout&&(this.setMetroLayout(),this.settings.layout="masonry",r(window).resize(function(){a.onResize(s)})),i.isotope(this.getIsoTopeSettings()));s.imagesLoaded().progress(function(){s.isotope("layout")}),r(document).ready(function(){a.onReady(s)}),this.settings.loadMore&&(e=this.elements.$gradientLayer,t=null,setTimeout(function(){t=e.outerHeight()},200),this.loadMore(t,s)),"yes"!==this.settings.light_box&&this.lightBoxDisabled(),n.find("a").click(function(e){return e.preventDefault(),a.isFilterClicked=!0,n.find(".active").removeClass("active"),r(this).addClass("active"),a.settings.filter=r(this).attr("data-filter"),s.isotope({filter:a.settings.filter}),a.settings.shuffle&&s.isotope("shuffle"),a.settings.loadMore&&a.appendItems(a.settings.minimum,t,s),!1}),"default"===this.settings.lightbox_type&&this.$element.find(".premium-img-gallery a[data-rel^='prettyPhoto']").prettyPhoto(this.getPrettyPhotoSettings())},getPrettyPhotoSettings:function(){return{theme:this.settings.theme,hook:"data-rel",opacity:.7,show_title:!1,deeplinking:!1,overlay_gallery:this.settings.overlay,custom_markup:"",default_width:900,default_height:506,social_tools:""}},getIsoTopeSettings:function(){return{itemSelector:".premium-gallery-item",percentPosition:!0,animationOptions:{duration:750,easing:"linear"},filter:this.settings.active_cat,layoutMode:this.settings.layout,originLeft:this.settings.ltrMode,masonry:{columnWidth:this.settings.columnWidth},sortBy:this.settings.sort_by}},getRepeaterSettings:function(){return this.getElementSettings("premium_gallery_img_content")},setMetroLayout:function(){var e=this.elements.$galleryElement,t=e.width(),a=Math.floor(t/12),t=elementorFrontend.getCurrentDeviceMode(),s="desktop"===t?"":"_"+t,o=this.getRepeaterSettings();e.find(".premium-gallery-item").each(function(e,t){var i=o[e]["premium_gallery_image_cell"+s].size,n=o[e]["premium_gallery_image_vcell"+s].size;""!==i&&null!=i||(i=o[e].premium_gallery_image_cell),""!==n&&null!=n||(n=o[e].premium_gallery_image_vcell),r(t).css({width:Math.ceil(i*a),height:Math.ceil(n*a)})}),this.settings.columnWidth=a}}),s=i.extend({getDefaultSettings:function(){return{selectors:{bannerImgWrap:".premium-banner-ib",bannerImg:"img"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$bannerImgWrap:this.$element.find(e.bannerImgWrap),$bannerImg:this.$element.find(e.bannerImg)}},bindEvents:function(){var e=this;e.elements.$bannerImgWrap.hover(function(){e.elements.$bannerImg.addClass("active")},function(){e.elements.$bannerImg.removeClass("active")}),this.run()},run:function(){var e,t=this.$element;t.hasClass("premium-banner-tilt-yes")&&(e=t.hasClass("premium-banner-tilt-rev-yes"),UniversalTilt.init({elements:t.closest(".elementor-widget"),settings:{reverse:e},callbacks:{onMouseLeave:function(e){e.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0)"},onDeviceMove:function(e){e.style.boxShadow="0 45px 100px rgba(255, 255, 255, 0.3)"}}}))}}),o=i.extend({settings:{},getDefaultSettings:function(){return{selectors:{user:".fa-user",activeCat:".category.active",loading:".premium-loading-feed",blogElement:".premium-blog-wrap",blogFilterTabs:".premium-blog-filter",contentWrapper:".premium-blog-content-wrapper",blogPost:".premium-blog-post-outer-container",metaSeparators:".premium-blog-meta-separator",filterLinks:".premium-blog-filters-container li a",currentPage:".premium-blog-pagination-container .page-numbers.current",activeElememnt:".premium-blog-filters-container li .active"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$blogElement:this.$element.find(e.blogElement),$blogFilterTabs:this.$element.find(e.blogFilterTabs),$activeCat:this.$element.find(e.activeCat),$filterLinks:this.$element.find(e.filterLinks),$blogPost:this.$element.find(e.blogPost),$contentWrapper:this.$element.find(e.contentWrapper)}},bindEvents:function(){this.setLayoutSettings(),this.removeMetaSeparators(),this.run()},setLayoutSettings:function(){var e=this.getElementSettings(),t=this.elements.$blogPost,t={pageNumber:1,isLoaded:!0,count:2,equalHeight:e.force_height,layout:e.premium_blog_layout,carousel:"yes"===e.premium_blog_carousel,infinite:"yes"===e.premium_blog_infinite_scroll,scrollAfter:"yes"===e.scroll_to_offset,grid:"yes"===e.premium_blog_grid,total:t.data("total")};t.carousel&&(t.slidesToScroll=e.slides_to_scroll,t.spacing=parseInt(e.premium_blog_carousel_spacing),t.autoPlay="yes"===e.premium_blog_carousel_play,t.arrows="yes"===e.premium_blog_carousel_arrows,t.fade="yes"===e.premium_blog_carousel_fade,t.center="yes"===e.premium_blog_carousel_center,t.dots="yes"===e.premium_blog_carousel_dots,t.speed=""!==e.premium_blog_carousel_autoplay_speed?parseInt(e.premium_blog_carousel_autoplay_speed):5e3),this.settings=t},removeMetaSeparators:function(){var i=this.getSettings("selectors"),e=this.$element.find(i.blogPost),t=e.first().find(i.metaSeparators),n=e.find(i.user);1===t.length?n.length||e.find(i.metaSeparators).remove():n.length||e.each(function(e,t){r(t).find(i.metaSeparators).first().remove()})},run:function(){var e=this,t=this.elements.$blogElement,i=this.elements.$activeCat.data("filter"),n=this.elements.$blogFilterTabs.length,a=t.data("pagination");this.settings.activeCategory=i,this.settings.filterTabs=n,this.settings.filterTabs&&this.filterTabs(),this.settings.filterTabs&&"*"!==this.settings.activeCategory?this.getPostsByAjax(!1):"masonry"!==this.settings.layout||this.settings.carousel||t.imagesLoaded(function(){t.isotope(e.getIsoTopeSettings())}),this.settings.carousel&&(t.slick(this.getSlickSettings()),t.removeClass("premium-carousel-hidden")),"even"===this.settings.layout&&this.settings.equalHeight&&t.imagesLoaded(function(){e.forceEqualHeight()}),a&&this.paginate(),this.settings.infinite&&t.is(":visible")&&this.getInfiniteScrollPosts()},paginate:function(){var t=this,i=this.$element,n=this.getSettings("selectors");i.on("click",".premium-blog-pagination-container .page-numbers",function(e){e.preventDefault(),r(this).hasClass("current")||(e=parseInt(i.find(n.currentPage).html()),r(this).hasClass("next")?t.settings.pageNumber=e+1:r(this).hasClass("prev")?t.settings.pageNumber=e-1:t.settings.pageNumber=r(this).html(),t.getPostsByAjax(t.settings.scrollAfter))})},forceEqualHeight:function(){var i=new Array,e=this.getSettings("selectors").contentWrapper,e=this.$element.find(e),t=(e.each(function(e,t){t=r(t).outerHeight();i.push(t)}),Math.max.apply(null,i));e.css("height",t+"px")},getSlickSettings:function(){var e=this.settings,t=e.grid?this.getSlickCols():null,i=e.grid?t.cols:1,n=e.grid?t.colsTablet:1,t=e.grid?t.colsMobile:1,a=e.arrows?'<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Previous" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>':"",s=e.arrows?'<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>':"";return{infinite:!0,slidesToShow:i,slidesToScroll:e.slidesToScroll||i,responsive:[{breakpoint:1025,settings:{slidesToShow:n,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:t,slidesToScroll:1}}],autoplay:e.autoPlay,rows:0,autoplaySpeed:e.speed,nextArrow:s,prevArrow:a,fade:e.fade,centerMode:e.center,centerPadding:e.spacing+"px",draggable:!0,dots:e.dots,customPaging:function(){return'<i class="fas fa-circle"></i>'}}},getSlickCols:function(){var e=this.getElementSettings(),t=e.premium_blog_columns_number,i=e.premium_blog_columns_number_tablet,e=e.premium_blog_columns_number_mobile;return{cols:parseInt(100/t.substr(0,t.indexOf("%"))),colsTablet:parseInt(100/i.substr(0,i.indexOf("%"))),colsMobile:parseInt(100/e.substr(0,e.indexOf("%")))}},getIsoTopeSettings:function(){return{itemSelector:".premium-blog-post-outer-container",percentPosition:!0,filter:this.settings.activeCategory,animationOptions:{duration:750,easing:"linear",queue:!1}}},filterTabs:function(){var t=this,i=this.getSettings("selectors");this.elements.$filterLinks.click(function(e){e.preventDefault(),t.$element.find(i.activeElememnt).removeClass("active"),r(this).addClass("active"),t.settings.activeCategory=r(this).attr("data-filter"),t.settings.pageNumber=1,t.settings.infinite?(t.getPostsByAjax(!1),t.settings.count=2,t.getInfiniteScrollPosts()):t.getPostsByAjax(t.settings.scrollAfter)})},getPostsByAjax:function(e){void 0===this.settings.activeCategory&&(this.settings.activeCategory="*");var i=this,n=this.elements.$blogElement,a=this.getSettings("selectors");r.ajax({url:PremiumSettings.ajaxurl,dataType:"json",type:"POST",data:{action:"pa_get_posts",page_id:n.data("page"),widget_id:i.$element.data("id"),page_number:i.settings.pageNumber,category:i.settings.activeCategory,nonce:PremiumSettings.nonce},beforeSend:function(){n.append('<div class="premium-loading-feed"><div class="premium-loader"></div></div>'),e&&r("html, body").animate({scrollTop:n.offset().top-50},"slow")},success:function(e){var t;e.data&&(n.find(a.loading).remove(),t=e.data.posts,e=e.data.paging,i.settings.infinite?(i.settings.isLoaded=!0,i.settings.filterTabs&&1===i.settings.pageNumber?n.html(t):n.append(t)):(n.html(t),i.$element.find(".premium-blog-footer").html(e)),i.removeMetaSeparators(),i.settings.layout&&("even"===i.settings.layout?i.settings.equalHeight&&i.forceEqualHeight():n.imagesLoaded(function(){n.isotope("reloadItems"),n.isotope({itemSelector:".premium-blog-post-outer-container",animate:!1})})))},error:function(e){console.log(e)}})},getInfiniteScrollPosts:function(){var e=jQuery(window).outerHeight()/1.25,t=this;r(window).scroll(function(){t.settings.filterTabs&&($blogPost=t.elements.$blogElement.find(".premium-blog-post-outer-container"),t.settings.total=$blogPost.data("total")),t.settings.count<=t.settings.total&&r(window).scrollTop()+e>=t.$element.find(".premium-blog-post-outer-container:last").offset().top&&1==t.settings.isLoaded&&(t.settings.pageNumber=t.settings.count,t.getPostsByAjax(!1),t.settings.count++,t.settings.isLoaded=!1)})}}),i={"premium-addon-person":i.extend({getDefaultSettings:function(){return{slick:{infinite:!0,rows:0,prevArrow:'<a type="button" data-role="none" class="carousel-arrow carousel-prev" aria-label="Next" role="button" style=""><i class="fas fa-angle-left" aria-hidden="true"></i></a>',nextArrow:'<a type="button" data-role="none" class="carousel-arrow carousel-next" aria-label="Next" role="button" style=""><i class="fas fa-angle-right" aria-hidden="true"></i></a>',draggable:!0,pauseOnHover:!0},selectors:{multiplePersons:".multiple-persons",person:".premium-person-container",personCarousel:".premium-person-container.slick-active",personImg:".premium-person-image-container img"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$multiplePersons:this.$element.find(e.multiplePersons),$persons:this.$element.find(e.person),$personImg:this.$element.find(e.personImg)}},bindEvents:function(){this.run()},getSlickSettings:function(){var e=this.getElementSettings(),t=this.elements.$multiplePersons.data("rtl"),i=e.persons_per_row,n=e.persons_per_row_tablet,a=e.persons_per_row_mobile;return Object.assign(this.getSettings("slick"),{slidesToShow:parseInt(100/i.substr(0,i.indexOf("%"))),slidesToScroll:parseInt(100/i.substr(0,i.indexOf("%"))),responsive:[{breakpoint:1025,settings:{slidesToShow:parseInt(100/n.substr(0,n.indexOf("%"))),slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:parseInt(100/a.substr(0,a.indexOf("%"))),slidesToScroll:1}}],autoplay:e.carousel_play,rtl:!!t,autoplaySpeed:e.speed||5e3})},runEqualHeight:function(){var e=this.elements.$persons,t=this.elements.$personImg,i=this.getSettings("selectors"),n=this.getElementSettings("carousel"),a=new Array;(e=n?this.$element.find(i.personCarousel):e).each(function(e,t){r(t).imagesLoaded(function(){}).done(function(){var e=r(t).find(i.personImg).outerHeight();a.push(e)})}),e.imagesLoaded(function(){}).done(function(){var e=Math.max.apply(null,a);t.css("height",e+"px")})},run:function(){var e=this.elements.$multiplePersons;e.length&&("yes"===e.data("persons-equal")&&this.runEqualHeight(),this.getElementSettings("carousel")&&e.slick(this.getSlickSettings()))}}),"premium-addon-blog":o,"premium-img-gallery":a,"premium-addon-banner":s};r.each({"premium-addon-dual-header.default":t,"premium-addon-video-box.default":function(l,m){var t,i,d=l.find(".premium-video-box-container"),e=l.find(".premium-video-box-playlist-container"),n=d.find(".premium-video-box-video-container"),u=d.find(".premium-video-box-inner-wrap"),c=u.find(".premium-video-box-image-container"),a=d.data("type"),s=d.data("thumbnail"),o=d.data("sticky"),r=d.data("sticky-play"),p=d.data("hover"),g=e.length?e:d,f=!!g.data("lightbox")&&g.data("lightbox");if(f)"prettyphoto"===f.type&&g.find(".premium-vid-lightbox-container[data-rel^='prettyPhoto']").prettyPhoto({theme:f.theme,hook:"data-rel",opacity:.7,show_title:!1,deeplinking:!1,overlay_gallery:!0,custom_markup:"",default_width:900,default_height:506,social_tools:""}),g.find(".premium-video-box-image-container, .premium-video-box-play-icon-container").on("click",function(e){var t;t=g,("elementor"===f.type?t.find(".premium-video-box-video-container"):t.find(".premium-vid-lightbox-container[data-rel^='prettyPhoto']")).click()});else{if(e.length)return n.length?void n.each(function(e,t){var i=m(t),n=i.closest(".premium-video-box-container"),t=i.closest(".premium-video-box-trigger"),a=i.data("src");a+="&autoplay=1",t.on("click",function(){var e=m("<iframe/>");e.attr({src:a,frameborder:"0",allowfullscreen:"1",allow:"autoplay;encrypted-media;"}),i.css("background","#000"),i.html(e),n.find(".premium-video-box-image-container, .premium-video-box-play-icon-container").remove()})}):void 0;"self"===a?(t=n.find("video"),i=t.attr("src"),d.data("play-viewport")&&(elementorFrontend.waypoint(d,function(){h()},{offset:0,triggerOnce:!1}),d.data("play-reset")&&elementorFrontend.waypoint(d,function(e){"up"===e&&(d.removeClass("playing"),m(t).get(0).pause(),m(t).get(0).currentTime=0)},{offset:"100%",triggerOnce:!1}))):(i=n.data("src"),s&&-1===i.indexOf("autoplay=1")?i+="&autoplay=1":d.data("play-viewport")?elementorFrontend.waypoint(d,function(){h()},{offset:0}):h()),d.on("click",function(){h()}),"yes"===o&&"yes"!==r&&v()}function h(){var e;d.hasClass("playing")||(d.addClass("playing"),"yes"===r&&v(),"self"===a?(m(t).get(0).play(),n.css({opacity:"1",visibility:"visible"})):((e=m("<iframe/>")).attr({src:i,frameborder:"0",allowfullscreen:"1",allow:"autoplay;encrypted-media;"}),n.css("background","#000"),n.html(e)),d.find(".premium-video-box-image-container, .premium-video-box-play-icon-container, .premium-video-box-description-container").remove(),"vimeo"===a&&d.find(".premium-video-box-vimeo-wrap").remove())}function v(){var t,i=d.data("hide-desktop"),n=d.data("hide-tablet"),a=d.data("hide-mobile"),s=d.data("sticky-margin");function o(e){var t=elementorFrontend.getCurrentDeviceMode();""!==i&&t==i||""!==n&&t==n||""!==a&&t==a?r(e):e[0].enable()}function r(e){e[0].disable(),d.removeClass("premium-video-box-sticky-apply premium-video-box-sticky-hide")}function e(){d.hasClass("premium-video-box-sticky-apply")&&u.draggable({start:function(){m(this).css({transform:"none",top:m(this).offset().top+"px",left:m(this).offset().left+"px"})},containment:"window"})}d.off("click").on("click",function(e){e=e.target.className;if(0<=e.toString().indexOf("premium-video-box-sticky-close")||0<=e.toString().indexOf("premium-video-box-sticky-close"))return!1;h()}),void 0!==elementorFrontend.waypoint&&(t=elementorFrontend.waypoint(d,function(e){"down"===e?(d.removeClass("premium-video-box-sticky-hide").addClass("premium-video-box-sticky-apply premium-video-box-filter-sticky"),l.hasClass("elementor-motion-effects-parent")&&l.removeClass("elementor-motion-effects-perspective").find(".elementor-widget-container").addClass("premium-video-box-transform"),d.data("mask")&&(l.find(".premium-video-box-mask-filter").removeClass("premium-video-box-mask-filter"),d.find(":first-child").removeClass("premium-video-box-mask-media"),c.removeClass(p).removeClass("premium-video-box-mask-media").css({transition:"width 0.2s, height 0.2s","-webkit-transition":"width 0.2s, height 0.2s"})),m(document).trigger("premium_after_sticky_applied",[l]),u.data("video-animation")&&" "!=u.data("video-animation")&&(u.css("opacity","0"),e=u.data("delay-animation"),setTimeout(function(){u.css("opacity","1").addClass("animated "+u.data("video-animation"))},1e3*e))):(d.removeClass("premium-video-box-sticky-apply premium-video-box-filter-sticky").addClass("premium-video-box-sticky-hide"),l.hasClass("elementor-motion-effects-parent")&&l.addClass("elementor-motion-effects-perspective").find(".elementor-widget-container").removeClass("premium-video-box-transform"),d.data("mask")&&(d.parent().addClass("premium-video-box-mask-filter"),d.find(":first-child").eq(0).addClass("premium-video-box-mask-media"),c.addClass("premium-video-box-mask-media")),c.addClass(p).css({transition:"all 0.2s","-webkit-transition":"all 0.2s"}),u.removeClass("animated "+u.data("video-animation")))},{offset:"0%",triggerOnce:!1})),l.find(".premium-video-box-sticky-close").off("click.closetrigger").on("click.closetrigger",function(e){e.stopPropagation(),t[0].disable(),d.removeClass("premium-video-box-sticky-apply premium-video-box-sticky-hide"),l.hasClass("elementor-motion-effects-parent")&&l.addClass("elementor-motion-effects-perspective").find(".elementor-widget-container").removeClass("premium-video-box-transform"),d.data("mask")&&(d.parent().addClass("premium-video-box-mask-filter"),d.find(":first-child").eq(0).addClass("premium-video-box-mask-media"),c.addClass("premium-video-box-mask-media"))}),o(t),e(),window.addEventListener("scroll",e),m(window).resize(function(e){o(t)}),m(document).on("premium_after_sticky_applied",function(e,t){var i=t.find(".premium-video-box-sticky-infobar");0!==i.length&&(i=i.outerHeight(),(t.hasClass("premium-video-sticky-center-left")||t.hasClass("premium-video-sticky-center-right"))&&(i=Math.ceil(i/2),u.css("top","calc( 50% - "+i+"px )")),(t.hasClass("premium-video-sticky-bottom-left")||t.hasClass("premium-video-sticky-bottom-right"))&&""!==s&&(i=Math.ceil(i),u.css("bottom",i+s)))})}},"premium-addon-fancy-text.default":function(e,t){var i=e.find(".premium-fancy-text-wrapper"),n=i.data("settings"),a=n.delay||2500,s=i.find(".premium-fancy-list-items").length,s=""!==n.count||["typing","slide","autofade"].includes(n.effect)?n.count*s:"infinite";if("typing"===n.effect){var o=[],r=(n.strings.forEach(function(e){o.push(e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""))}),"#"+i.find(".premium-fancy-text").attr("id"));new Typed(r,{strings:o,typeSpeed:n.typeSpeed,backSpeed:n.backSpeed,startDelay:n.startDelay,backDelay:n.backDelay,showCursor:n.showCursor,cursorChar:n.cursorChar,loop:n.loop})}else if("slide"===n.effect)a=n.pause,i.find(".premium-fancy-text").vTicker({speed:n.speed,showItems:n.showItems,pause:n.pause,mousePause:n.mousePause,direction:"up"});else if("auto-fade"===n.effect){var r=i.find(".premium-fancy-list-items"),l=r.length;if(0===l)return;var m=n.duration/l,d=0,a=m;r.each(function(e,t){t.style.animationDelay=d+"ms",d+=m})}else var u,c,p=i.find(".premium-fancy-list-items"),g=1,l=n.delay||2500,f=n.count,h=(f&&(u=1,c=i.find(".premium-fancy-list-items").length),setInterval(function(){var e="";"custom"===n.effect&&(e="animated "+n.animation),p.eq(g).addClass("premium-fancy-item-visible "+e).removeClass("premium-fancy-item-hidden"),p.filter(function(e){return e!==g}).addClass("premium-fancy-item-hidden").removeClass("premium-fancy-item-visible "+e),g++,p.length===g&&(g=0),f&&c*f===++u&&clearInterval(h)},l));"typing"!==n.effect&&setTimeout(function(){i.find(".premium-fancy-text").css("opacity","1")},500),"loading"===n.loading&&"typing"!==n.effect&&(e.find(".premium-fancy-text").append('<span class="premium-loading-bar"></span>'),e.find(".premium-loading-bar").css({"animation-iteration-count":s,"animation-duration":a+"ms"}))},"premium-counter.default":function(e,t){var e=e.find(".premium-counter"),i=e.closest(".premium-hscroll-temp"),n=e.data(),a=e.find(".premium-counter-init"),s=e.find(".icon");i.length?t(window).on("scroll",function(){t(window).scrollTop()>=i.data("scroll-offset")&&(t(a).numerator(n),t(s).addClass("animated "+s.data("animation")))}):elementorFrontend.waypoint(e,function(){t(a).numerator(n),t(s).addClass("animated "+s.data("animation"))})},"premium-addon-title.default":[function(e,i){var t,n,a=e.find(".premium-title-container"),s=a.find(".premium-title-text");a.hasClass("style9")&&e.find(".premium-title-style9").each(function(){var e=i(this),t=1e3*e.attr("data-blur-delay");e.attr("data-animation-blur","process"),e.find(".premium-title-style9-letter").each(function(e,t){e+=1,e=i("body").hasClass("rtl")?.2/e+"s":e/20+"s",i(t).css({"-webkit-animation-delay":e,"animation-delay":e})}),setInterval(function(){e.attr("data-animation-blur","done"),setTimeout(function(){e.attr("data-animation-blur","process")},150)},t)}),a.hasClass("style8")&&(t=1e3*s.attr("data-shiny-delay"),n=1e3*s.attr("data-shiny-dur"),function e(){s.get(0).setAttribute("data-animation","shiny"),setTimeout(function(){s.removeAttr("data-animation")},n),setTimeout(e,t)}())},t],"premium-countdown-timer.default":function(e,o){var t=e.find(".premium-countdown"),n=t.data("settings"),r=e.data("id"),e=n.label1,i=n.label2,e=e.split(","),i=i.split(","),a="evergreen"===n.timerType?n.until.date.replace(/ /g,"T"):n.until,s="",l={y:{index:0,oldVal:""},o:{index:1,oldVal:""},w:{index:2,oldVal:""},d:{index:3,oldVal:""},h:{index:4,oldVal:""},m:{index:5,oldVal:""},s:{index:6,oldVal:""}};t.find("#countdown-"+r).hasClass("premium-countdown-flip")&&n.format.split("").forEach(function(e){e=e.toLowerCase();s+='<div class="premium-countdown-block premium-countdown-'+e+'"><div class="pre_time-mid"> <div class="premium-countdown-figure"><span class="top">{'+e+'nn}</span><span class="top-back"><span>{'+e+'nn}</span></span><span class="bottom">{'+e+'nn}</span><span class="bottom-back"><span>{'+e+'nn}</span></span></div><span class="premium-countdown-label">{'+e+'l}</span></div><span class="countdown_separator">{sep}</span></div>'}),t.find("#countdown-"+r).countdown({layout:s,labels:i,labels1:e,until:new Date(a),format:n.format,padZeroes:!0,timeSeparator:n.separator,onTick:function(e){var i,a,s;i=0,t.find("#countdown-"+r+" .countdown-amount").each(function(e,t){i<o(t).outerWidth()&&(i=o(t).outerWidth())}),t.find("#countdown-"+r+" .countdown-amount").css("width",i),t.find("#countdown-"+r).hasClass("premium-countdown-flip")&&(a=e,s=l,n.format.split("").forEach(function(e){var t,e=e.toLowerCase(),i=s[e].index,n=s[e].oldVal;a[i]!==n&&(s[e].oldVal=a[i],t=o("#countdown-"+r).find(".premium-countdown-"+e+" .top"),n=o("#countdown-"+r).find(".premium-countdown-"+e+" .top-back"),TweenMax.to(t,.8,{rotationX:"-180deg",transformPerspective:300,ease:Quart.easeOut,onComplete:function(){TweenMax.set(t,{rotationX:0})}}),TweenMax.to(n,.8,{rotationX:0,transformPerspective:300,ease:Quart.easeOut,clearProps:"all"}))}))},onExpiry:function(){"onExpiry"===n.event&&t.find("#countdown-"+r).html(n.text)},serverSync:function(){return new Date(n.serverSync)}}),n.reset&&t.find(".premium-countdown-init").countdown("option","until",new Date(a)),"expiryUrl"===n.event&&t.find("#countdown-"+r).countdown("option","expiryUrl",elementorFrontend.isEditMode()?"":n.text),(times=t.find("#countdown-"+r).countdown("getTimes")).every(function(e){return 0==e})&&("onExpiry"===n.event?t.find("#countdown-"+r).html(n.text):"expiryUrl"!==n.event||elementorFrontend.isEditMode()||(0<o("body").find("#elementor").length?t.find("#countdown-"+r).html("<h1>You can not redirect url from elementor Editor!!</h1>"):elementorFrontend.isEditMode()||(window.location.href=n.text)))},"premium-carousel-widget.default":function(e,l){var t,m=e.find(".premium-carousel-wrapper"),d=l(m).data("settings"),i=elementorFrontend.isEditMode();function n(e){var t=m.find(".slick-slide");(t="init"===e?t.not(".slick-current"):t).find(".animated").each(function(e,t){var i=l(t).data("settings");i&&(i._animation||i.animation)&&(i=i._animation||i.animation,l(t).removeClass("animated "+i).addClass("elementor-invisible"))})}m.find(".item-wrapper").length<1||(i&&m.find(".item-wrapper").each(function(e,t){var i=l(t).data("template");void 0!==i&&""!==i&&l.ajax({type:"GET",url:PremiumSettings.ajaxurl,dataType:"html",data:{action:"get_elementor_template_content",templateID:i}}).success(function(e){e=JSON.parse(e).data;void 0!==e.template_content&&(l(t).html(e.template_content),m.find(".premium-carousel-inner").slick("refresh"))})}),m.on("init",function(e){e.preventDefault(),setTimeout(function(){n("init")},500),l(this).find("item-wrapper.slick-active").each(function(){var e=l(this);e.addClass(e.data("animation"))}),l(".slick-track").addClass("translate")}),m.find(".premium-carousel-inner").slick({vertical:d.vertical,slidesToScroll:d.slidesToScroll,slidesToShow:d.slidesToShow,responsive:[{breakpoint:d.tabletBreak,settings:{slidesToShow:d.slidesTab,slidesToScroll:d.slidesTab,swipe:d.touchMove}},{breakpoint:d.mobileBreak,settings:{slidesToShow:d.slidesMob,slidesToScroll:d.slidesMob,swipe:d.touchMove}}],useTransform:!0,fade:d.fade,infinite:d.infinite,speed:d.speed,autoplay:d.autoplay,autoplaySpeed:d.autoplaySpeed,rows:0,draggable:d.draggable,rtl:d.rtl,adaptiveHeight:d.adaptiveHeight,pauseOnHover:d.pauseOnHover,centerMode:d.centerMode,centerPadding:d.centerPadding,arrows:d.arrows,prevArrow:m.find(".premium-carousel-nav-arrow-prev").html(),nextArrow:m.find(".premium-carousel-nav-arrow-next").html(),dots:d.dots,variableWidth:d.variableWidth,cssEase:d.cssEase,customPaging:function(){return m.find(".premium-carousel-nav-dot").html()}}),e.find(".premium-carousel-hidden").removeClass("premium-carousel-hidden"),m.find(".premium-carousel-nav-arrow-prev").remove(),m.find(".premium-carousel-nav-arrow-next").remove(),d.variableWidth&&m.find(".elementor-container").css("flex-wrap","nowrap"),m.on("afterChange",function(e,t,i){var n,a=t.options.slidesToScroll,s=(o=(o=t).options.slidesToShow,(s=l(window).width())>d.tabletBreak&&(o=d.slidesDesk),s<=d.tabletBreak&&(o=d.slidesTab),o=s<=d.mobileBreak?d.slidesMob:o),o=t.options.centerMode,s=i+s-1;if(m.find(".slick-active .elementor-invisible").each(function(e,t){var i,n,a=l(t).data("settings");a&&(a._animation||a.animation)&&(i=a._animation_delay||0,n=a._animation||a.animation,setTimeout(function(){l(t).removeClass("elementor-invisible").addClass(n+" animated")},i))}),1===a)!0==!o&&(n=l(this).find("[data-slick-index='"+s+"']"),"null"!=d.animation&&n.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(d.animation).removeClass("premium-carousel-content-hidden"));else for(var r=a+i;0<=r;r--)n=l(this).find("[data-slick-index='"+r+"']"),"null"!=d.animation&&n.find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").addClass(d.animation).removeClass("premium-carousel-content-hidden");t.$slides.length-1!=i||d.infinite||m.find(".premium-carousel-inner").slick("slickSetOption","autoplay",!1,!0)}),m.on("beforeChange",function(e,t,i){n();i=l(this).find("[data-slick-index='"+i+"']");"null"!=d.animation&&i.siblings().find("p, h1, h2, h3, h4, h5, h6, span, a, img, i, button").removeClass(d.animation).addClass("premium-carousel-content-hidden")}),d.vertical&&(t=-1,elementorFrontend.elements.$window.on("load",function(){m.find(".slick-slide").each(function(){l(this).height()>t&&(t=l(this).height())}),m.find(".slick-slide").each(function(){l(this).height()<t&&l(this).css("margin",Math.ceil((t-l(this).height())/2)+"px 0")})})),(i={element:l("a.ver-carousel-arrow"),getWidth:function(){return this.element.outerWidth()/2},setWidth:function(e){"vertical"==(e=e||"vertical")?this.element.css("margin-left","-"+this.getWidth()+"px"):this.element.css("margin-top","-"+this.getWidth()+"px")}}).setWidth(),i.element=l("a.carousel-arrow"),i.setWidth("horizontal"),l(document).ready(function(){d.navigation.map(function(e,t){e&&l(e).on("click",function(){var e=m.find(".premium-carousel-inner").slick("slickCurrentSlide");t!==e&&m.find(".premium-carousel-inner").slick("slickGoTo",t)})})}))},"premium-addon-modal-box.default":function(e,t){var i,n=e.find(".premium-modal-box-container"),a=n.data("settings"),s=n.find(".premium-modal-box-modal-dialog");a&&("pageload"===a.trigger&&t(document).ready(function(e){setTimeout(function(){n.find(".premium-modal-box-modal").modal()},1e3*a.delay)}),s.data("modal-animation")&&" "!=s.data("modal-animation")&&(i=s.data("delay-animation"),new Waypoint({element:s,handler:function(){setTimeout(function(){s.css("opacity","1").addClass("animated "+s.data("modal-animation"))},1e3*i),this.destroy()},offset:Waypoint.viewportHeight()-150})))},"premium-image-scroll.default":function(e,t){var i=e.find(".premium-image-scroll-container"),n=i.find(".premium-image-scroll-overlay"),e=i.find(".premium-image-scroll-vertical"),a=i.data("settings"),s=i.find("img"),o=a.direction,r=a.reverse,l=null;function m(){s.css("transform",("vertical"===o?"translateY":"translateX")+"( -"+l+"px)")}function d(){s.css("transform",("vertical"===o?"translateY":"translateX")+"(0px)")}function u(){l="vertical"===o?s.height()-i.height():s.width()-i.width()}"scroll"===a.trigger?(i.addClass("premium-container-scroll"),"vertical"===o?e.addClass("premium-image-scroll-ver"):i.imagesLoaded(function(){n.css({width:s.width(),height:s.height()})})):("yes"===r&&i.imagesLoaded(function(){i.addClass("premium-container-scroll-instant"),u(),m()}),"vertical"===o&&e.removeClass("premium-image-scroll-ver"),i.mouseenter(function(){i.removeClass("premium-container-scroll-instant"),u(),("yes"===r?d:m)()}),i.mouseleave(function(){("yes"===r?m:d)()}))},"premium-contact-form.default":function(e,t){e=e.find(".premium-cf7-container").find('input[type="text"], input[type="email"], textarea, input[type="password"], input[type="date"], input[type="number"], input[type="tel"], input[type="file"], input[type="url"]');e.wrap("<span class='wpcf7-span'>"),e.on("focus blur",function(){t(this).closest(".wpcf7-span").toggleClass("is-focused")})},"premium-icon-list.default":function(e,n){var a=e.find(".premium-bullet-list-box");a.find(".premium-bullet-list-content").each(function(e,i){a.data("list-animation")&&" "!=a.data("list-animation")&&elementorFrontend.waypoint(n(i),function(){var e=n(i),t=e.data("delay");setTimeout(function(){e.next(".premium-bullet-list-divider , .premium-bullet-list-divider-inline").css("opacity","1"),e.next(".premium-bullet-list-divider-inline , .premium-bullet-list-divider").addClass("animated "+a.data("list-animation")),e.css("opacity","1").addClass("animated "+a.data("list-animation"))},t)})})},"premium-addon-button.default":e,"premium-addon-image-button.default":e,"premium-nav-menu.default":function(s,o){s.find(".premium-nav-widget-container").removeClass("elementor-invisible");var i,r,e,t,n,a,l,m,d,u=s.find(".premium-nav-widget-container").data("settings");function c(e){var t,i,n,a;e.breakpoint>=o(window).width()&&!d?(s.find(".premium-ver-toggler").css("display","none"),s.addClass("premium-hamburger-menu"),s.find(".premium-active-menu").removeClass("premium-active-menu"),t=s.find(".premium-stretch-dropdown .premium-mobile-menu-container"),i=o(s).closest(".elementor-top-section"),n=o(i).outerWidth(),a=s.offset().top,a=o(i).offset().top+o(i).outerHeight()-a,i=s.offset().left-o(i).offset().left,o(t).css({width:n+"px",left:"-"+i+"px",top:a+"px"}),isDesktopMenu=!(d=!0)):e.breakpoint<o(window).width()&&!isDesktopMenu&&(s.hasClass("premium-ver-toggle-yes")&&s.find(".premium-ver-toggler").css("display","flex"),r.removeClass("premium-toggle-opened"),s.find(".premium-mobile-menu-container .premium-active-menu").removeClass("premium-active-menu"),s.removeClass("premium-hamburger-menu premium-ham-dropdown"),s.find(".premium-vertical-toggle-open").removeClass("premium-vertical-toggle-open"),s.find(".premium-nav-default").removeClass("premium-nav-default"),isDesktopMenu=!0,d=!1)}function p(){var e,t,i;s.hasClass("premium-nav-sticky-yes")&&o("#"+u.stickyOptions.targetId).length&&!u.stickyOptions.disableOn.includes(elementorFrontend.getCurrentDeviceMode())?((n=u.stickyOptions).spacerClass="premium-sticky-spacer-"+o("#"+n.targetId).data("id"),o("#"+n.targetId).addClass("premium-sticky-active"),e=n,t=m+elementorFrontend.getCurrentDeviceMode(),(i=o("#"+e.targetId).hasClass("premium-sticky-parent"))&&o("#"+e.targetId).css({position:"relative",width:"inherit"}),window[t]=o("#"+e.targetId).outerWidth()+"px",i&&o("#"+e.targetId).css({position:"fixed",width:window[t]}),0===o("."+n.spacerClass).length&&o('<div class="'+n.spacerClass+'"></div>').insertBefore("#"+n.targetId),o(window).on("load",g),o(window).on("scroll.PaStickyNav",g)):(o(window).off("scroll.PaStickyNav"),o('<div class="'+n.spacerClass+'"></div>').remove(),o("#"+n.targetId).removeClass("premium-sticky-parent premium-sticky-active premium-sticky-parent-"+s.data("id")).css({top:"unset",width:"inherit",position:"relative"}))}function g(){var e=elementorFrontend.elements.$wpAdminBar.height()?elementorFrontend.elements.$wpAdminBar.height():0,t=o(window).scrollTop()+e,i=m+elementorFrontend.getCurrentDeviceMode();window[l]&&!a||(window[l]=o("."+n.spacerClass).offset().top,a=!1),t>=window[l]?(o("."+n.spacerClass).css("height",o("#"+n.targetId).outerHeight()+"px"),o("#"+n.targetId).addClass("premium-sticky-parent premium-sticky-parent-"+s.data("id")).css({width:window[i],top:e,position:"fixed"})):(o("."+n.spacerClass).css("height","0px"),o("#"+n.targetId).removeClass("premium-sticky-parent premium-sticky-parent-"+s.data("id")).css({top:"unset",width:"inherit",position:"relative"})),n.onScroll?(t=document.querySelector("#"+n.targetId+".premium-sticky-parent"))&&(o("#"+n.targetId+".premium-sticky-parent").addClass("premium-sticky-scroll-yes"),new Headroom(t,{tolerance:5,classes:{initial:"animated",pinned:"slideDown",unpinned:"slideUp",offset:{up:o("#"+n.targetId).outerHeight()+150}}}).init()):o("#"+n.targetId+".premium-sticky-parent").removeClass("premium-sticky-scroll-yes")}u&&(i=s.find(".premium-mobile-menu"),r=s.find(".premium-hamburger-toggle"),e=s.find(".premium-mobile-menu-close"),t=s.find(".
|