Version Description
- 10 Oct 2022 =
- Update dashboard
- Minor bug fixes
Download this release
Release Info
Developer | wpconcern |
Plugin | Coming Soon, Under Construction & Maintenance Page |
Version | 3.0.2 |
Comparing to | |
See all releases |
Code changes from version 3.0.1 to 3.0.2
- assets/css/admin-page.css +16 -144
- assets/css/admin-page.min.css +1 -1
- assets/js/admin-page.js +0 -77
- assets/js/admin-page.min.js +0 -1
- assets/js/frontend.min.js +1 -1
- inc/admin-page/admin-page.php +182 -155
- inc/helpers/options.php +35 -0
- languages/nifty-coming-soon-and-under-construction-page.pot +7 -19
- nifty-coming-soon.php +10 -4
- readme.txt +6 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_classmap.php +1 -0
- vendor/composer/autoload_psr4.php +1 -0
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +13 -4
- vendor/composer/installed.json +101 -7
- vendor/composer/installed.php +23 -5
- vendor/composer/platform_check.php +2 -2
- vendor/ernilambar/ns-customizer-utilities/assets/controls.css +1 -1
- vendor/ernilambar/ns-customizer-utilities/assets/controls.js +2 -2
- vendor/ernilambar/ns-customizer-utilities/composer.json +2 -1
- vendor/ernilambar/ns-customizer-utilities/composer.lock +47 -2
- vendor/ernilambar/ns-customizer-utilities/init.php +29 -21
- vendor/ernilambar/ns-customizer-utilities/src/Control/Radio.php +2 -1
- vendor/ernilambar/ns-customizer-utilities/src/Control/Select.php +1 -1
- vendor/ernilambar/wp-welcome/Loader.php +136 -0
- vendor/ernilambar/wp-welcome/README.md +3 -0
- vendor/ernilambar/wp-welcome/assets/wp-welcome.css +1 -0
- vendor/ernilambar/wp-welcome/assets/wp-welcome.js +1 -0
- vendor/ernilambar/wp-welcome/bootstrap.php +7 -0
- vendor/ernilambar/wp-welcome/composer.json +21 -0
- vendor/ernilambar/wp-welcome/init.php +94 -0
- vendor/ernilambar/wp-welcome/src/Ajax.php +182 -0
- vendor/ernilambar/wp-welcome/src/Helper.php +177 -0
- vendor/ernilambar/wp-welcome/src/Utils.php +59 -0
- vendor/ernilambar/wp-welcome/src/View.php +443 -0
- vendor/ernilambar/wp-welcome/src/Welcome.php +571 -0
- vendor/kirki-framework/url-getter/src/URL.php +203 -0
assets/css/admin-page.css
CHANGED
@@ -1,175 +1,47 @@
|
|
1 |
-
.
|
2 |
-
display: none;
|
3 |
-
}
|
4 |
-
|
5 |
-
.ncs-wrap p {
|
6 |
-
font-size: 15px;
|
7 |
-
}
|
8 |
-
.ncs-wrap .ncs-header {
|
9 |
-
padding-bottom: 2px;
|
10 |
-
}
|
11 |
-
.ncs-wrap .ncs-main-content {
|
12 |
-
display: flex;
|
13 |
-
gap: 20px;
|
14 |
-
flex-direction: column;
|
15 |
-
margin-top: 25px;
|
16 |
-
}
|
17 |
-
@media (min-width: 64em) {
|
18 |
-
.ncs-wrap .ncs-main-content {
|
19 |
-
flex-direction: row;
|
20 |
-
}
|
21 |
-
}
|
22 |
-
.ncs-wrap .ncs-tab-contents {
|
23 |
margin-top: 20px;
|
24 |
}
|
25 |
-
|
26 |
-
|
27 |
-
}
|
28 |
-
.ncs-wrap .ncs-content-right {
|
29 |
-
flex: 0 0 250px;
|
30 |
-
}
|
31 |
-
.ncs-wrap .ncs-tab-content {
|
32 |
-
display: none;
|
33 |
-
}
|
34 |
-
.ncs-wrap .import-input-wrap .button {
|
35 |
-
margin-top: 10px;
|
36 |
-
}
|
37 |
-
.ncs-wrap .ncs-grid {
|
38 |
-
display: grid;
|
39 |
-
gap: 20px;
|
40 |
-
grid-template-columns: 1fr;
|
41 |
-
}
|
42 |
-
@media (min-width: 48em) {
|
43 |
-
.ncs-wrap .ncs-grid {
|
44 |
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
45 |
-
}
|
46 |
-
}
|
47 |
-
@media (min-width: 80em) {
|
48 |
-
.ncs-wrap .ncs-grid {
|
49 |
-
grid-template-columns: repeat(3, minmax(0, 1fr));
|
50 |
-
}
|
51 |
-
}
|
52 |
-
.ncs-wrap .ncs-grid h2,
|
53 |
-
.ncs-wrap .ncs-grid h3 {
|
54 |
-
color: #333;
|
55 |
-
}
|
56 |
-
.ncs-wrap .ncs-grid p {
|
57 |
-
color: #555;
|
58 |
-
}
|
59 |
-
.ncs-wrap .ncs-grid h3 span {
|
60 |
-
margin-right: 5px;
|
61 |
-
color: #2271b1;
|
62 |
-
}
|
63 |
-
.ncs-wrap .ncs-card {
|
64 |
-
border: 1px #ddd solid;
|
65 |
-
border-radius: 5px;
|
66 |
-
background-color: #fff;
|
67 |
-
color: #333;
|
68 |
-
padding: 10px 20px;
|
69 |
-
}
|
70 |
-
.ncs-wrap .ncs-themes-grid {
|
71 |
-
margin-top: 15px;
|
72 |
-
}
|
73 |
-
.ncs-wrap .ncs-themes-grid img {
|
74 |
-
width: 100%;
|
75 |
-
}
|
76 |
-
.ncs-wrap .ncs-theme {
|
77 |
background-color: #fff;
|
78 |
box-shadow: -1px 1px 8px 1px rgba(128, 128, 128, 0.46);
|
79 |
}
|
80 |
-
.ncs-
|
81 |
padding: 0 10px;
|
82 |
display: flex;
|
83 |
justify-content: space-between;
|
84 |
align-items: center;
|
85 |
}
|
86 |
-
.ncs-
|
|
|
|
|
|
|
87 |
text-decoration: none;
|
88 |
color: #333;
|
89 |
}
|
90 |
-
.ncs-
|
|
|
|
|
|
|
91 |
display: flex;
|
92 |
margin-bottom: 5px;
|
93 |
}
|
94 |
-
.ncs-
|
95 |
text-decoration: none;
|
96 |
display: flex;
|
97 |
gap: 5px;
|
98 |
}
|
99 |
-
.ncs-
|
100 |
text-decoration: underline;
|
101 |
}
|
102 |
-
.ncs-
|
103 |
position: relative;
|
104 |
}
|
105 |
-
.ncs-
|
106 |
background-color: #e23b3b;
|
107 |
color: #fff;
|
108 |
position: absolute;
|
109 |
top: 0;
|
110 |
right: 0;
|
111 |
padding: 3px 5px;
|
112 |
-
}
|
113 |
-
.ncs-wrap .ncs-box {
|
114 |
-
margin-bottom: 40px;
|
115 |
-
}
|
116 |
-
.ncs-wrap .ncs-box ul,
|
117 |
-
.ncs-wrap .ncs-box ol {
|
118 |
-
margin-left: 1.3em;
|
119 |
-
}
|
120 |
-
.ncs-wrap .wpc-comparison > * {
|
121 |
-
display: flex;
|
122 |
-
align-items: self-start;
|
123 |
-
padding-top: 10px;
|
124 |
-
padding-bottom: 10px;
|
125 |
-
border-left: 1px solid #e3e3e3;
|
126 |
-
border-right: 1px solid #e3e3e3;
|
127 |
-
background-color: #fff;
|
128 |
-
}
|
129 |
-
.ncs-wrap .wpc-comparison > * span {
|
130 |
-
width: 120px;
|
131 |
-
padding: 2px 10px;
|
132 |
-
}
|
133 |
-
.ncs-wrap .wpc-comparison > * span:first-child {
|
134 |
-
width: calc(100% - 240px);
|
135 |
-
font-size: 15px;
|
136 |
-
color: #555;
|
137 |
-
}
|
138 |
-
.ncs-wrap .wpc-comparison > *:nth-child(odd) {
|
139 |
-
background-color: #f7f7f7;
|
140 |
-
border-top: 1px solid #e3e3e3;
|
141 |
-
border-bottom: 1px solid #e3e3e3;
|
142 |
-
}
|
143 |
-
.ncs-wrap .wpc-comparison > *:first-child {
|
144 |
-
border-radius: 5px 5px 0 0;
|
145 |
-
font-size: 18px;
|
146 |
-
font-weight: 500;
|
147 |
-
background-color: #a4a4a4;
|
148 |
-
color: #555;
|
149 |
-
}
|
150 |
-
.ncs-wrap .wpc-comparison > *:first-child span:first-child {
|
151 |
-
font-size: 18px;
|
152 |
-
}
|
153 |
-
.ncs-wrap .wpc-comparison > *:last-child {
|
154 |
-
border-radius: 0 0 5px 5px;
|
155 |
-
border-bottom: 1px solid #e3e3e3;
|
156 |
-
}
|
157 |
-
.ncs-wrap .wpc-comparison header {
|
158 |
-
background-color: #c3c3c3 !important;
|
159 |
-
}
|
160 |
-
.ncs-wrap .wpc-comparison .check:after {
|
161 |
-
content: "\f147";
|
162 |
-
font-family: dashicons;
|
163 |
-
width: 20px;
|
164 |
-
height: 20px;
|
165 |
-
font-size: 20px;
|
166 |
-
color: #6daf2a;
|
167 |
-
}
|
168 |
-
.ncs-wrap .wpc-comparison .uncheck:after {
|
169 |
-
content: "\f335";
|
170 |
-
font-family: dashicons;
|
171 |
-
width: 20px;
|
172 |
-
height: 20px;
|
173 |
-
font-size: 20px;
|
174 |
-
color: #e82c2c;
|
175 |
}
|
1 |
+
.ncs-themes-grid {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
margin-top: 20px;
|
3 |
}
|
4 |
+
|
5 |
+
.ncs-theme {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
background-color: #fff;
|
7 |
box-shadow: -1px 1px 8px 1px rgba(128, 128, 128, 0.46);
|
8 |
}
|
9 |
+
.ncs-theme .ncs-theme-content {
|
10 |
padding: 0 10px;
|
11 |
display: flex;
|
12 |
justify-content: space-between;
|
13 |
align-items: center;
|
14 |
}
|
15 |
+
.ncs-theme h4 {
|
16 |
+
margin-top: 10px !important;
|
17 |
+
}
|
18 |
+
.ncs-theme h4 a {
|
19 |
text-decoration: none;
|
20 |
color: #333;
|
21 |
}
|
22 |
+
.ncs-theme img {
|
23 |
+
width: 100%;
|
24 |
+
}
|
25 |
+
.ncs-theme .buttons {
|
26 |
display: flex;
|
27 |
margin-bottom: 5px;
|
28 |
}
|
29 |
+
.ncs-theme .preview {
|
30 |
text-decoration: none;
|
31 |
display: flex;
|
32 |
gap: 5px;
|
33 |
}
|
34 |
+
.ncs-theme .preview:hover .preview-text {
|
35 |
text-decoration: underline;
|
36 |
}
|
37 |
+
.ncs-theme.ncs-theme-featured {
|
38 |
position: relative;
|
39 |
}
|
40 |
+
.ncs-theme.ncs-theme-featured .featured {
|
41 |
background-color: #e23b3b;
|
42 |
color: #fff;
|
43 |
position: absolute;
|
44 |
top: 0;
|
45 |
right: 0;
|
46 |
padding: 3px 5px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
assets/css/admin-page.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.
|
1 |
+
.ncs-themes-grid{margin-top:20px}.ncs-theme{background-color:#fff;box-shadow:-1px 1px 8px 1px rgba(128,128,128,.46)}.ncs-theme .ncs-theme-content{padding:0 10px;display:flex;justify-content:space-between;align-items:center}.ncs-theme h4{margin-top:10px!important}.ncs-theme h4 a{text-decoration:none;color:#333}.ncs-theme img{width:100%}.ncs-theme .buttons{display:flex;margin-bottom:5px}.ncs-theme .preview{text-decoration:none;display:flex;gap:5px}.ncs-theme .preview:hover .preview-text{text-decoration:underline}.ncs-theme.ncs-theme-featured{position:relative}.ncs-theme.ncs-theme-featured .featured{background-color:#e23b3b;color:#fff;position:absolute;top:0;right:0;padding:3px 5px}
|
assets/js/admin-page.js
DELETED
@@ -1,77 +0,0 @@
|
|
1 |
-
"use strict";
|
2 |
-
|
3 |
-
class App {
|
4 |
-
constructor() {
|
5 |
-
this.initTab();
|
6 |
-
}
|
7 |
-
|
8 |
-
initTab() {
|
9 |
-
const mainWrapper = document.getElementById('ncs-wrapper');
|
10 |
-
const tabContents = document.getElementsByClassName('ncs-tab-content');
|
11 |
-
const tabLinks = document.querySelectorAll('.nav-tab-wrapper a');
|
12 |
-
const tabContentsArray = [...tabContents];
|
13 |
-
const tabLinksArray = [...tabLinks]; // Initially hide tab content.
|
14 |
-
|
15 |
-
tabContentsArray.forEach(elem => {
|
16 |
-
elem.style.display = 'none';
|
17 |
-
});
|
18 |
-
tabLinks.forEach(elem => {
|
19 |
-
elem.classList.remove('nav-tab-active');
|
20 |
-
});
|
21 |
-
let activeTab = '';
|
22 |
-
|
23 |
-
if ('undefined' !== typeof localStorage) {
|
24 |
-
activeTab = localStorage.getItem(niftyCsAdmin.storage_key);
|
25 |
-
} // Initial status for tab content.
|
26 |
-
|
27 |
-
|
28 |
-
if (null !== activeTab && document.getElementById(activeTab)) {
|
29 |
-
const targetTab = document.getElementById(activeTab);
|
30 |
-
|
31 |
-
if (targetTab) {
|
32 |
-
targetTab.style.display = 'block';
|
33 |
-
}
|
34 |
-
} else {
|
35 |
-
tabContents[0].style.display = 'block';
|
36 |
-
} // Initial status for tab nav.
|
37 |
-
|
38 |
-
|
39 |
-
if (null !== activeTab && document.getElementById(activeTab)) {
|
40 |
-
const targetNav = mainWrapper.querySelector(`.nav-tab-wrapper a[href="#${activeTab}"]`);
|
41 |
-
|
42 |
-
if (targetNav) {
|
43 |
-
targetNav.classList.add('nav-tab-active');
|
44 |
-
}
|
45 |
-
} else {
|
46 |
-
tabLinks[0].classList.add('nav-tab-active');
|
47 |
-
}
|
48 |
-
|
49 |
-
tabLinksArray.forEach(elem => {
|
50 |
-
elem.addEventListener('click', e => {
|
51 |
-
e.preventDefault(); // Remove tab active class from all.
|
52 |
-
|
53 |
-
tabLinksArray.forEach(element => {
|
54 |
-
element.classList.remove('nav-tab-active');
|
55 |
-
}); // Add active class to current tab.
|
56 |
-
|
57 |
-
elem.classList.add('nav-tab-active'); // Get target.
|
58 |
-
|
59 |
-
const targetGroup = elem.getAttribute('href'); // Save active tab in local storage.
|
60 |
-
|
61 |
-
if ('undefined' !== typeof localStorage) {
|
62 |
-
localStorage.setItem(niftyCsAdmin.storage_key, targetGroup.replace('#', ''));
|
63 |
-
}
|
64 |
-
|
65 |
-
tabContentsArray.forEach(element => {
|
66 |
-
element.style.display = 'none';
|
67 |
-
});
|
68 |
-
document.getElementById(targetGroup.replace('#', '')).style.display = 'block';
|
69 |
-
});
|
70 |
-
});
|
71 |
-
}
|
72 |
-
|
73 |
-
}
|
74 |
-
|
75 |
-
document.addEventListener('DOMContentLoaded', function () {
|
76 |
-
new App();
|
77 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/js/admin-page.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
"use strict";class App{constructor(){this.initTab()}initTab(){const e=document.getElementById("ncs-wrapper"),t=document.getElementsByClassName("ncs-tab-content"),a=document.querySelectorAll(".nav-tab-wrapper a"),n=[...t],l=[...a];n.forEach(e=>{e.style.display="none"}),a.forEach(e=>{e.classList.remove("nav-tab-active")});let s="";if(null!==(s="undefined"!=typeof localStorage?localStorage.getItem(niftyCsAdmin.storage_key):s)&&document.getElementById(s)){const c=document.getElementById(s);c&&(c.style.display="block")}else t[0].style.display="block";if(null!==s&&document.getElementById(s)){const o=e.querySelector(`.nav-tab-wrapper a[href="#${s}"]`);o&&o.classList.add("nav-tab-active")}else a[0].classList.add("nav-tab-active");l.forEach(a=>{a.addEventListener("click",e=>{e.preventDefault(),l.forEach(e=>{e.classList.remove("nav-tab-active")}),a.classList.add("nav-tab-active");const t=a.getAttribute("href");"undefined"!=typeof localStorage&&localStorage.setItem(niftyCsAdmin.storage_key,t.replace("#","")),n.forEach(e=>{e.style.display="none"}),document.getElementById(t.replace("#","")).style.display="block"})})}}document.addEventListener("DOMContentLoaded",function(){new App});
|
|
assets/js/frontend.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
"use strict";function isValidEmail(e){
|
1 |
+
"use strict";function isValidEmail(e){return new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(e)}document.querySelector("#preloader")&&window.addEventListener("load",function(){jQuery(document).ready(function(e){e("#preloader").fadeOut("slow",function(){e(this).remove()})})}),function(i){jQuery(document).ready(function(){const u=[];var t=niftyCsObject.slider_blocks;for(let e=0;e<t.length;e++)u.push(niftyCsObject.blocks[t[e]].icon);new Swiper(".nifty-legacy-slider",{loop:!1,pagination:{el:".swiper-pagination",clickable:!0,renderBullet(e,t){return'<span class="'+t+'"><span aria-hidden="true" class="'+u[e]+'"></span></span>'}}});const n=(e,t,u)=>{const n=u.find(".nifty-subscribe-message");n.hide(),n.html(`<div class="nifty-message nifty-message-${t}"><p>${e}</p></div>`).fadeIn("slow",function(){setTimeout(function(){n.fadeOut("slow",function(){n.html("")})},3e3)})};if(i(".nifty-subscription .nifty-subscribe").on("submit","form",function(e){e.preventDefault();const t=i(this),u=t.find("input[type=text]");e=u.val();return isValidEmail(e)?i.post(niftyCsObject.ajax_url,{action:"nifty_cs_subscribe",email:e},function(e){!0===e.success&&(n(niftyCsObject.subscription_success_message,"success",t.parent()),u.val(""))}).fail(function(){n(niftyCsObject.subscription_error_message,"error",t.parent())}):n(niftyCsObject.subscription_error_message,"error",t.parent()),!1}),i("body").hasClass("background-slider-enabled")){var e={animation:"random",cover:!0,animationDuration:niftyCsObject.background_slider_animation_time,timer:!1,transition:niftyCsObject.background_slider_animation,delay:niftyCsObject.background_slider_time,opacity:niftyCsObject.background_slider_pattern_opacity,overlay:niftyCsObject.pattern_folder_url+niftyCsObject.background_slider_pattern},s=[];for(let e=0;e<niftyCsObject.background_slides.length;e++)s.push({src:niftyCsObject.background_slides[e]});e.slides=s,i("#nifty, body").vegas(e)}i("body").hasClass("countdown-timer-enabled")&&i("div#clock").countdown(niftyCsObject.countdown_time_formatted,function(e){var t=i(this);switch(e.type){case"seconds":case"minutes":case"hours":case"days":case"weeks":case"daysLeft":t.find("span#"+e.type).html(e.value);break;case"finished":t.hide()}}),i("body").hasClass("intro-animation-enabled")&&i(".tlt").textillate({selector:".texts",loop:!0,minDisplayTime:2500,autoStart:!0,outEffects:["bounceOut"],in:{effect:"fadeIn",delayScale:1.5,delay:50,sync:!1,shuffle:!0},out:{effect:"bounceOut",delayScale:1.5,delay:150,sync:!1,shuffle:!0}})})}(jQuery);
|
inc/admin-page/admin-page.php
CHANGED
@@ -5,165 +5,199 @@
|
|
5 |
* @package NCSUCP
|
6 |
*/
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
/**
|
9 |
-
*
|
10 |
*
|
11 |
-
* @since
|
|
|
|
|
12 |
*/
|
13 |
-
function
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
|
19 |
/**
|
20 |
-
* Render
|
21 |
*
|
22 |
-
* @since
|
23 |
*/
|
24 |
-
function
|
25 |
-
if ( ! current_user_can( 'manage_options' ) ) {
|
26 |
-
return;
|
27 |
-
}
|
28 |
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
-
<div class="wrap ncs-wrap" id="ncs-wrapper">
|
31 |
-
<div class="ncs-header">
|
32 |
-
<h1><?php echo esc_html( get_admin_page_title() ); ?></h1>
|
33 |
-
|
34 |
-
<?php /* translators: %s: version. */ ?>
|
35 |
-
<p class="about-text"><?php echo sprintf( esc_html__( 'Version: %s', 'nifty-coming-soon-and-under-construction-page' ), NCSUCP_VERSION ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
|
36 |
-
</div>
|
37 |
-
|
38 |
-
<p>
|
39 |
-
<a href="https://wpconcern.com/plugins/nifty-coming-soon-and-under-construction-page/" class="button button-primary" target="_blank"><?php echo esc_html__( 'View Details', 'nifty-coming-soon-and-under-construction-page' ); ?></a>
|
40 |
-
<a href="https://ncsucp.wpconcern.net/free/" class="button button-secondary" target="_blank"><?php echo esc_html__( 'View Demo', 'nifty-coming-soon-and-under-construction-page' ); ?></a>
|
41 |
-
<a href="https://wordpress.org/support/plugin/nifty-coming-soon-and-under-construction-page/reviews/#new-post" class="button" target="_blank"><?php echo esc_html__( 'Leave a Review', 'nifty-coming-soon-and-under-construction-page' ); ?></a>
|
42 |
-
</p>
|
43 |
-
|
44 |
-
<div class="ncs-main-content">
|
45 |
-
<div class="ncs-content-left">
|
46 |
-
|
47 |
-
<nav class="nav-tab-wrapper">
|
48 |
-
<a href="#tab-welcome" class="nav-tab nav-tab-active">Welcome</a>
|
49 |
-
<a href="#tab-themes" class="nav-tab">Themes</a>
|
50 |
-
<a href="#tab-free-vs-pro" class="nav-tab">Free vs Pro</a>
|
51 |
-
</nav>
|
52 |
-
|
53 |
-
<div class="ncs-tab-contents">
|
54 |
-
<div class="ncs-tab-content" id="tab-welcome">
|
55 |
-
<div class="ncs-grid">
|
56 |
-
<div class="ncs-card">
|
57 |
-
<h3><span class="dashicons dashicons-admin-customizer"></span>Customize Coming Soon</h3>
|
58 |
-
<p>You can customize plugin options using Customizer.</p>
|
59 |
-
<p><a href="<?php echo nifty_cs_get_customizer_url(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>" class="button button-primary">Customize</a></p>
|
60 |
-
</div><!-- .ncs-card -->
|
61 |
-
|
62 |
-
<div class="ncs-card">
|
63 |
-
|
64 |
-
<h3><span class="dashicons dashicons-editor-help"></span>Get Support</h3>
|
65 |
-
<p>Please visit the support forum if you have any queries or support request.</p>
|
66 |
-
<p><a href="https://wordpress.org/support/plugin/nifty-coming-soon-and-under-construction-page/#new-post" class="button button-secondary" target="_blank">Visit Support</a></p>
|
67 |
-
|
68 |
-
</div><!-- .ncs-card -->
|
69 |
-
|
70 |
-
<div class="ncs-card">
|
71 |
-
|
72 |
-
<h3><span class="dashicons dashicons-admin-page"></span>Plugin Documentation</h3>
|
73 |
-
<p>Please check the plugin documentation for detailed information on how to setup and customize it.</p>
|
74 |
-
<p><a href="https://wpconcern.com/documentation/nifty-coming-soon-and-under-construction-page/" class="button button-secondary" target="_blank">Documentation</a></p>
|
75 |
-
|
76 |
-
</div><!-- .ncs-card -->
|
77 |
-
|
78 |
-
</div><!-- .ncs-grid -->
|
79 |
-
</div><!-- .ncs-tab-content -->
|
80 |
-
|
81 |
-
<div class="ncs-tab-content" id="tab-themes">
|
82 |
-
|
83 |
-
<p>Buy pro plugin to unlock beautiful premade themes.</p>
|
84 |
|
85 |
-
<a href="<?php echo esc_url( NCSUCP_UPGRADE_URL ); ?>" id="purchase" class="button button-primary" target="_blank">Buy Pro Plugin</a>
|
86 |
-
|
87 |
-
<?php $all_themes = nifty_cs_get_themes(); ?>
|
88 |
-
|
89 |
-
<div class="ncs-themes-grid ncs-grid">
|
90 |
-
<?php foreach ( $all_themes as $theme_key => $theme ) : ?>
|
91 |
-
<?php
|
92 |
-
$is_featured = ( isset( $theme['new'] ) && true === $theme['new'] ) ? true : false;
|
93 |
-
$featured_class = $is_featured ? 'ncs-theme-featured' : '';
|
94 |
-
?>
|
95 |
-
|
96 |
-
<div class="ncs-theme <?php echo esc_attr( $featured_class ); ?>" data-tags='<?php echo ( isset( $theme['tags'] ) ) ? wp_json_encode( $theme['tags'] ) : ''; ?>'>
|
97 |
-
<?php if ( $is_featured ) : ?>
|
98 |
-
<span class="featured">NEW</span>
|
99 |
-
<?php endif; ?>
|
100 |
-
<a href="<?php echo esc_url( $theme['preview_url'] ); ?>" target="_blank">
|
101 |
-
<img src="<?php echo esc_url( NCSUCP_URL . "/themes/{$theme_key}/preview.jpg" ); ?>" alt="<?php echo esc_attr( $theme['label'] ); ?>" />
|
102 |
-
</a>
|
103 |
-
<div class="ncs-theme-content">
|
104 |
-
<h4><a href="<?php echo esc_url( $theme['preview_url'] ); ?>" target="_blank"><?php echo esc_html( $theme['label'] ); ?></a></h4>
|
105 |
-
<div class="buttons">
|
106 |
-
<a href="<?php echo esc_url( $theme['preview_url'] ); ?>" class="preview" target="_blank"><span class="preview-text">Preview</span><span class="preview-icon dashicons dashicons-external"></span></a>
|
107 |
-
</div><!-- .buttons -->
|
108 |
-
</div><!-- .ncs-theme-content -->
|
109 |
-
</div>
|
110 |
-
|
111 |
-
<?php endforeach; ?>
|
112 |
-
</div><!-- .ncs-themes-grid -->
|
113 |
-
</div><!-- .ncs-tab-content -->
|
114 |
-
|
115 |
-
<div class="ncs-tab-content" id="tab-free-vs-pro">
|
116 |
-
|
117 |
-
<div class="wpc-comparison">
|
118 |
-
<header> <span>Features</span> <span>Free</span> <span>Pro</span></header>
|
119 |
-
|
120 |
-
<?php $features = nifty_cs_get_plugin_features(); ?>
|
121 |
-
|
122 |
-
<?php if ( ! empty( $features ) ) : ?>
|
123 |
-
|
124 |
-
<?php foreach ( $features as $feature ) : ?>
|
125 |
-
|
126 |
-
<div class="wpc-feature">
|
127 |
-
<span><?php echo esc_html( $feature['label'] ); ?></span>
|
128 |
-
<span class="<?php echo esc_attr( ( isset( $feature['free'] ) && $feature['free'] ) ? 'check' : 'uncheck' ); ?>"></span>
|
129 |
-
<span class="<?php echo esc_attr( ( isset( $feature['pro'] ) && $feature['pro'] ) ? 'check' : 'uncheck' ); ?>"></span>
|
130 |
-
</div>
|
131 |
-
|
132 |
-
<?php endforeach; ?>
|
133 |
-
|
134 |
-
<?php endif; ?>
|
135 |
-
|
136 |
-
</div>
|
137 |
-
|
138 |
-
</div><!-- .ncs-tab-content -->
|
139 |
-
|
140 |
-
</div><!-- .ncs-tab-contents -->
|
141 |
-
|
142 |
-
</div><!-- .ncs-content-left -->
|
143 |
-
|
144 |
-
<div class="ncs-content-right">
|
145 |
-
|
146 |
-
<div class="ncs-box">
|
147 |
-
<h3><span>Upgrade to Premium</span></h3>
|
148 |
-
<div class="ncs-box-content">
|
149 |
-
<p>Buy pro plugin for additional blocks and beautiful premade themes.</p>
|
150 |
-
<a href="<?php echo esc_url( NCSUCP_UPGRADE_URL ); ?>" id="purchase" class="button button-primary" target="_blank">Buy Pro Plugin</a>
|
151 |
-
</div> <!-- .ncs-box-content -->
|
152 |
-
</div><!-- .ncs-box -->
|
153 |
-
|
154 |
-
<div class="ncs-box">
|
155 |
-
<h3><span>Our Plugins</span></h3>
|
156 |
-
|
157 |
-
<div class="ncs-box-content">
|
158 |
-
<div class="wpc-plugins-list"></div>
|
159 |
-
</div> <!-- .ncs-box-content -->
|
160 |
-
</div><!-- .ncs-box -->
|
161 |
-
|
162 |
-
</div><!-- .ncs-content-right -->
|
163 |
-
|
164 |
-
</div><!-- .ncs-main-content -->
|
165 |
-
|
166 |
-
</div>
|
167 |
<?php
|
168 |
}
|
169 |
|
@@ -182,14 +216,7 @@ function nifty_cs_load_admin_page_assets( $hook ) {
|
|
182 |
$min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
183 |
|
184 |
wp_enqueue_style( 'nifty-cs-admin-page', NCSUCP_URL . '/assets/css/admin-page' . $min . '.css', array(), NCSUCP_VERSION );
|
185 |
-
wp_enqueue_script( 'nifty-cs-admin-page', NCSUCP_URL . '/assets/js/admin-page' . $min . '.js', array( 'jquery' ), NCSUCP_VERSION, true );
|
186 |
wp_enqueue_script( 'nifty-cs-plugins-list', NCSUCP_URL . '/assets/js/plugins-list' . $min . '.js', array( 'jquery' ), NCSUCP_VERSION, true );
|
187 |
-
|
188 |
-
$localized_array = array(
|
189 |
-
'storage_key' => 'nifty-cs-activetab',
|
190 |
-
);
|
191 |
-
|
192 |
-
wp_localize_script( 'nifty-cs-admin-page', 'niftyCsAdmin', $localized_array );
|
193 |
}
|
194 |
|
195 |
add_action( 'admin_enqueue_scripts', 'nifty_cs_load_admin_page_assets' );
|
5 |
* @package NCSUCP
|
6 |
*/
|
7 |
|
8 |
+
use Nilambar\Welcome\Welcome;
|
9 |
+
|
10 |
+
add_action(
|
11 |
+
'wp_welcome_init',
|
12 |
+
function() {
|
13 |
+
$obj = new Welcome( 'plugin', 'nifty-coming-soon-and-under-construction-page' );
|
14 |
+
|
15 |
+
$obj->set_page(
|
16 |
+
array(
|
17 |
+
'top_level_menu' => true,
|
18 |
+
'menu_title' => esc_html__( 'Nifty Options', 'nifty-coming-soon-and-under-construction-page' ),
|
19 |
+
'menu_slug' => 'nifty-coming-soon',
|
20 |
+
'page_title' => esc_html__( 'Nifty Coming Soon', 'nifty-coming-soon-and-under-construction-page' ),
|
21 |
+
/* translators: %s: version. */
|
22 |
+
'page_subtitle' => sprintf( esc_html__( 'Version: %s', 'nifty-coming-soon-and-under-construction-page' ), NCSUCP_VERSION ),
|
23 |
+
'menu_icon' => NCSUCP_URL . '/assets/images/menu.png',
|
24 |
+
)
|
25 |
+
);
|
26 |
+
|
27 |
+
$obj->set_quick_links(
|
28 |
+
array(
|
29 |
+
array(
|
30 |
+
'text' => 'View Details',
|
31 |
+
'url' => 'https://wpconcern.com/plugins/nifty-coming-soon-and-under-construction-page/',
|
32 |
+
'type' => 'primary',
|
33 |
+
),
|
34 |
+
array(
|
35 |
+
'text' => 'View Demo',
|
36 |
+
'url' => 'https://ncsucp.wpconcern.net/free/',
|
37 |
+
'type' => 'secondary',
|
38 |
+
),
|
39 |
+
array(
|
40 |
+
'text' => 'Leave a Review',
|
41 |
+
'url' => 'https://wordpress.org/support/plugin/nifty-coming-soon-and-under-construction-page/reviews/#new-post',
|
42 |
+
'type' => 'secondary',
|
43 |
+
),
|
44 |
+
)
|
45 |
+
);
|
46 |
+
|
47 |
+
$obj->add_tab(
|
48 |
+
array(
|
49 |
+
'id' => 'welcome',
|
50 |
+
'title' => 'Welcome',
|
51 |
+
'type' => 'grid',
|
52 |
+
'items' => array(
|
53 |
+
array(
|
54 |
+
'title' => 'Customize Coming Soon',
|
55 |
+
'icon' => 'dashicons dashicons-admin-customizer',
|
56 |
+
'description' => 'You can customize plugin options using Customizer.',
|
57 |
+
'button_text' => 'Customize',
|
58 |
+
'button_url' => nifty_cs_get_customizer_url(),
|
59 |
+
'button_type' => 'primary',
|
60 |
+
),
|
61 |
+
array(
|
62 |
+
'title' => 'Get Support',
|
63 |
+
'icon' => 'dashicons dashicons-editor-help',
|
64 |
+
'description' => 'Please visit the support forum if you have any queries or support request.',
|
65 |
+
'button_text' => 'Visit Support',
|
66 |
+
'button_url' => 'https://wordpress.org/support/plugin/nifty-coming-soon-and-under-construction-page/#new-post',
|
67 |
+
'button_type' => 'secondary',
|
68 |
+
'is_new_tab' => true,
|
69 |
+
),
|
70 |
+
array(
|
71 |
+
'title' => 'Plugin Documentation',
|
72 |
+
'icon' => 'dashicons dashicons-admin-page',
|
73 |
+
'description' => 'Please check the plugin documentation for detailed information on how to setup and customize it.',
|
74 |
+
'button_text' => 'Documentation',
|
75 |
+
'button_url' => 'https://wpconcern.com/documentation/nifty-coming-soon-and-under-construction-page/',
|
76 |
+
'button_type' => 'secondary',
|
77 |
+
'is_new_tab' => true,
|
78 |
+
),
|
79 |
+
array(
|
80 |
+
'title' => 'View Premium Demos',
|
81 |
+
'icon' => 'dashicons dashicons-desktop',
|
82 |
+
'description' => 'Several premade themes are available in the premium version. You can check those out using following link.',
|
83 |
+
'button_text' => 'View Demos',
|
84 |
+
'button_url' => 'https://ncsucp.wpconcern.net/',
|
85 |
+
'button_type' => 'secondary',
|
86 |
+
'is_new_tab' => true,
|
87 |
+
),
|
88 |
+
),
|
89 |
+
)
|
90 |
+
);
|
91 |
+
|
92 |
+
$obj->add_tab(
|
93 |
+
array(
|
94 |
+
'id' => 'themes',
|
95 |
+
'title' => 'Themes',
|
96 |
+
'type' => 'custom',
|
97 |
+
'render_callback' => 'nifty_cs_render_themes_tab_content',
|
98 |
+
)
|
99 |
+
);
|
100 |
+
|
101 |
+
$obj->add_tab(
|
102 |
+
array(
|
103 |
+
'id' => 'free-vs-pro',
|
104 |
+
'title' => 'Free vs Pro',
|
105 |
+
'type' => 'comparison',
|
106 |
+
'upgrade_button' => array(
|
107 |
+
'url' => NCSUCP_UPGRADE_URL,
|
108 |
+
),
|
109 |
+
'items' => nifty_cs_get_comparison_items(),
|
110 |
+
)
|
111 |
+
);
|
112 |
+
|
113 |
+
$obj->set_sidebar(
|
114 |
+
array(
|
115 |
+
'render_callback' => 'nifty_cs_render_welcome_sidebar',
|
116 |
+
)
|
117 |
+
);
|
118 |
+
|
119 |
+
$obj->run();
|
120 |
+
}
|
121 |
+
);
|
122 |
+
|
123 |
/**
|
124 |
+
* Render welcome page sidebar content.
|
125 |
*
|
126 |
+
* @since 3.0.2
|
127 |
+
*
|
128 |
+
* @param Welcome $object Instance of Welcome class.
|
129 |
*/
|
130 |
+
function nifty_cs_render_welcome_sidebar( $object ) {
|
131 |
+
$object->render_sidebar_box(
|
132 |
+
array(
|
133 |
+
'title' => 'Upgrade to Premium',
|
134 |
+
'content' => 'Buy pro plugin for additional blocks and beautiful premade themes.',
|
135 |
+
'class' => 'gray',
|
136 |
+
'button_text' => 'Buy Pro Plugin',
|
137 |
+
'button_url' => NCSUCP_UPGRADE_URL,
|
138 |
+
'button_class' => 'button button-primary button-upgrade',
|
139 |
+
),
|
140 |
+
$object
|
141 |
+
);
|
142 |
+
|
143 |
+
$object->render_sidebar_box(
|
144 |
+
array(
|
145 |
+
'title' => 'Leave a Review',
|
146 |
+
'content' => $object->get_stars() . sprintf( 'Are you are enjoying %1$s? We would appreciate a review.', $object->get_name() ),
|
147 |
+
'button_text' => 'Submit Review',
|
148 |
+
'button_url' => 'https://wordpress.org/support/plugin/nifty-coming-soon-and-under-construction-page/reviews/#new-post',
|
149 |
+
'button_class' => 'button',
|
150 |
+
),
|
151 |
+
$object
|
152 |
+
);
|
153 |
|
154 |
+
$object->render_sidebar_box(
|
155 |
+
array(
|
156 |
+
'title' => 'Our Plugins',
|
157 |
+
'content' => '<div class="wpc-plugins-list"></div>',
|
158 |
+
),
|
159 |
+
$object
|
160 |
+
);
|
161 |
+
}
|
162 |
|
163 |
/**
|
164 |
+
* Render themes tab content.
|
165 |
*
|
166 |
+
* @since 3.0.2
|
167 |
*/
|
168 |
+
function nifty_cs_render_themes_tab_content() {
|
|
|
|
|
|
|
169 |
?>
|
170 |
+
<p>Buy pro plugin to unlock beautiful premade themes.</p>
|
171 |
+
|
172 |
+
<a href="<?php echo esc_url( NCSUCP_UPGRADE_URL ); ?>" class="button button-primary" target="_blank">Buy Pro Plugin</a>
|
173 |
+
|
174 |
+
<?php $all_themes = nifty_cs_get_themes(); ?>
|
175 |
+
<div class="ncs-themes-grid wpw-grid wpw-col-3">
|
176 |
+
<?php foreach ( $all_themes as $theme_key => $theme ) : ?>
|
177 |
+
<?php
|
178 |
+
$is_featured = ( isset( $theme['new'] ) && true === $theme['new'] ) ? true : false;
|
179 |
+
$featured_class = $is_featured ? 'ncs-theme-featured' : '';
|
180 |
+
?>
|
181 |
+
|
182 |
+
<div class="ncs-theme <?php echo esc_attr( $featured_class ); ?>" data-tags='<?php echo ( isset( $theme['tags'] ) ) ? wp_json_encode( $theme['tags'] ) : ''; ?>'>
|
183 |
+
<?php if ( $is_featured ) : ?>
|
184 |
+
<span class="featured">NEW</span>
|
185 |
+
<?php endif; ?>
|
186 |
+
<a href="<?php echo esc_url( $theme['preview_url'] ); ?>" target="_blank">
|
187 |
+
<img src="<?php echo esc_url( NCSUCP_URL . "/themes/{$theme_key}/preview.jpg" ); ?>" alt="<?php echo esc_attr( $theme['label'] ); ?>" />
|
188 |
+
</a>
|
189 |
+
<div class="ncs-theme-content">
|
190 |
+
<h4><a href="<?php echo esc_url( $theme['preview_url'] ); ?>" target="_blank"><?php echo esc_html( $theme['label'] ); ?></a></h4>
|
191 |
+
<div class="buttons">
|
192 |
+
<a href="<?php echo esc_url( $theme['preview_url'] ); ?>" class="preview" target="_blank"><span class="preview-text">Preview</span><span class="preview-icon dashicons dashicons-external"></span></a>
|
193 |
+
</div><!-- .buttons -->
|
194 |
+
</div><!-- .ncs-theme-content -->
|
195 |
+
</div>
|
196 |
+
|
197 |
+
<?php endforeach; ?>
|
198 |
+
</div><!-- .ncs-themes-grid -->
|
199 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
<?php
|
202 |
}
|
203 |
|
216 |
$min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
217 |
|
218 |
wp_enqueue_style( 'nifty-cs-admin-page', NCSUCP_URL . '/assets/css/admin-page' . $min . '.css', array(), NCSUCP_VERSION );
|
|
|
219 |
wp_enqueue_script( 'nifty-cs-plugins-list', NCSUCP_URL . '/assets/js/plugins-list' . $min . '.js', array( 'jquery' ), NCSUCP_VERSION, true );
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
}
|
221 |
|
222 |
add_action( 'admin_enqueue_scripts', 'nifty_cs_load_admin_page_assets' );
|
inc/helpers/options.php
CHANGED
@@ -263,3 +263,38 @@ function nifty_cs_get_plugin_features() {
|
|
263 |
|
264 |
return $output;
|
265 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
263 |
|
264 |
return $output;
|
265 |
}
|
266 |
+
|
267 |
+
/**
|
268 |
+
* Return comparison items for welcome page.
|
269 |
+
*
|
270 |
+
* @since 1.0.0
|
271 |
+
*
|
272 |
+
* @return array Comparison items.
|
273 |
+
*/
|
274 |
+
function nifty_cs_get_comparison_items() {
|
275 |
+
$output = array();
|
276 |
+
|
277 |
+
$features = nifty_cs_get_plugin_features();
|
278 |
+
|
279 |
+
if ( empty( $features ) ) {
|
280 |
+
return $output;
|
281 |
+
}
|
282 |
+
|
283 |
+
foreach ( $features as $feature ) {
|
284 |
+
$item = array();
|
285 |
+
|
286 |
+
if ( ! empty( $feature['label'] ) ) {
|
287 |
+
$item['title'] = $feature['label'];
|
288 |
+
|
289 |
+
$free_status = ( isset( $feature['free'] ) ) ? (bool) $feature['free'] : false;
|
290 |
+
$item['free'] = ( $free_status ) ? 'yes' : 'no';
|
291 |
+
|
292 |
+
$pro_status = ( isset( $feature['pro'] ) ) ? (bool) $feature['pro'] : false;
|
293 |
+
$item['pro'] = ( $pro_status ) ? 'yes' : 'no';
|
294 |
+
}
|
295 |
+
|
296 |
+
$output[] = $item;
|
297 |
+
}
|
298 |
+
|
299 |
+
return $output;
|
300 |
+
}
|
languages/nifty-coming-soon-and-under-construction-page.pot
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
# This file is distributed under the GPLv3.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Nifty Coming Soon & Maintenance Page 3.0.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/nifty-coming-soon-and-under-"
|
8 |
"construction-page\n"
|
9 |
-
"POT-Creation-Date: 2022-
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=utf-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -15,31 +15,19 @@ msgstr ""
|
|
15 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
16 |
"X-Generator: node-wp-i18n 1.2.6\n"
|
17 |
|
18 |
-
#: inc/admin-page/admin-page.php:
|
19 |
-
msgid "Nifty
|
20 |
msgstr ""
|
21 |
|
22 |
-
#: inc/admin-page/admin-page.php:14
|
23 |
-
msgid "Nifty
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: inc/admin-page/admin-page.php:
|
27 |
#. translators: %s: version.
|
28 |
msgid "Version: %s"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: inc/admin-page/admin-page.php:39
|
32 |
-
msgid "View Details"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: inc/admin-page/admin-page.php:40
|
36 |
-
msgid "View Demo"
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: inc/admin-page/admin-page.php:41
|
40 |
-
msgid "Leave a Review"
|
41 |
-
msgstr ""
|
42 |
-
|
43 |
#: inc/customizer/options.php:33 inc/customizer/sections/layout.php:39
|
44 |
msgid "Blocks"
|
45 |
msgstr ""
|
2 |
# This file is distributed under the GPLv3.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Nifty Coming Soon & Maintenance Page 3.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/nifty-coming-soon-and-under-"
|
8 |
"construction-page\n"
|
9 |
+
"POT-Creation-Date: 2022-10-10 05:15:00+00:00\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=utf-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
16 |
"X-Generator: node-wp-i18n 1.2.6\n"
|
17 |
|
18 |
+
#: inc/admin-page/admin-page.php:12 inc/customizer/options.php:16
|
19 |
+
msgid "Nifty Options"
|
20 |
msgstr ""
|
21 |
|
22 |
+
#: inc/admin-page/admin-page.php:14
|
23 |
+
msgid "Nifty Coming Soon"
|
24 |
msgstr ""
|
25 |
|
26 |
+
#: inc/admin-page/admin-page.php:16
|
27 |
#. translators: %s: version.
|
28 |
msgid "Version: %s"
|
29 |
msgstr ""
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
#: inc/customizer/options.php:33 inc/customizer/sections/layout.php:39
|
32 |
msgid "Blocks"
|
33 |
msgstr ""
|
nifty-coming-soon.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Nifty Coming Soon & Maintenance Page
|
4 |
* Plugin URI: https://wpconcern.com/plugins/nifty-coming-soon-and-under-construction-page/
|
5 |
* Description: Easy to set up Coming Soon, Maintenance and Under Construction page. It features Responsive design, Countdown timer, Animations, Live Preview, Background Slider, Subscription form and more.
|
6 |
-
* Version: 3.0.
|
7 |
* Author: WP Concern
|
8 |
* Author URI: https://wpconcern.com/
|
9 |
* Text Domain: nifty-coming-soon-and-under-construction-page
|
@@ -15,7 +15,7 @@
|
|
15 |
|
16 |
defined( 'ABSPATH' ) || exit;
|
17 |
|
18 |
-
define( 'NCSUCP_VERSION', '3.0.
|
19 |
define( 'NCSUCP_SLUG', 'nifty-coming-soon-and-under-construction-page' );
|
20 |
define( 'NCSUCP_BASE_NAME', basename( dirname( __FILE__ ) ) );
|
21 |
define( 'NCSUCP_BASE_FILEPATH', __FILE__ );
|
@@ -24,14 +24,20 @@ define( 'NCSUCP_DIR', rtrim( plugin_dir_path( __FILE__ ), '/' ) );
|
|
24 |
define( 'NCSUCP_URL', rtrim( plugin_dir_url( __FILE__ ), '/' ) );
|
25 |
define( 'NCSUCP_UPGRADE_URL', 'https://checkout.freemius.com/mode/dialog/plugin/10939/plan/18571/' );
|
26 |
|
27 |
-
|
28 |
-
define( '
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
// Init autoload.
|
31 |
if ( file_exists( NCSUCP_DIR . '/vendor/autoload.php' ) ) {
|
32 |
require_once NCSUCP_DIR . '/vendor/autoload.php';
|
33 |
require_once NCSUCP_DIR . '/vendor/wptt/webfont-loader/wptt-webfont-loader.php';
|
34 |
require_once NCSUCP_DIR . '/vendor/ernilambar/ns-customizer-utilities/init.php';
|
|
|
35 |
}
|
36 |
|
37 |
// Init plugin.
|
3 |
* Plugin Name: Nifty Coming Soon & Maintenance Page
|
4 |
* Plugin URI: https://wpconcern.com/plugins/nifty-coming-soon-and-under-construction-page/
|
5 |
* Description: Easy to set up Coming Soon, Maintenance and Under Construction page. It features Responsive design, Countdown timer, Animations, Live Preview, Background Slider, Subscription form and more.
|
6 |
+
* Version: 3.0.2
|
7 |
* Author: WP Concern
|
8 |
* Author URI: https://wpconcern.com/
|
9 |
* Text Domain: nifty-coming-soon-and-under-construction-page
|
15 |
|
16 |
defined( 'ABSPATH' ) || exit;
|
17 |
|
18 |
+
define( 'NCSUCP_VERSION', '3.0.2' );
|
19 |
define( 'NCSUCP_SLUG', 'nifty-coming-soon-and-under-construction-page' );
|
20 |
define( 'NCSUCP_BASE_NAME', basename( dirname( __FILE__ ) ) );
|
21 |
define( 'NCSUCP_BASE_FILEPATH', __FILE__ );
|
24 |
define( 'NCSUCP_URL', rtrim( plugin_dir_url( __FILE__ ), '/' ) );
|
25 |
define( 'NCSUCP_UPGRADE_URL', 'https://checkout.freemius.com/mode/dialog/plugin/10939/plan/18571/' );
|
26 |
|
27 |
+
if ( ! defined( 'WP_WELCOME_DIR' ) ) {
|
28 |
+
define( 'WP_WELCOME_DIR', NCSUCP_DIR . '/vendor/ernilambar/wp-welcome' );
|
29 |
+
}
|
30 |
+
|
31 |
+
if ( ! defined( 'WP_WELCOME_URL' ) ) {
|
32 |
+
define( 'WP_WELCOME_URL', NCSUCP_URL . '/vendor/ernilambar/wp-welcome' );
|
33 |
+
}
|
34 |
|
35 |
// Init autoload.
|
36 |
if ( file_exists( NCSUCP_DIR . '/vendor/autoload.php' ) ) {
|
37 |
require_once NCSUCP_DIR . '/vendor/autoload.php';
|
38 |
require_once NCSUCP_DIR . '/vendor/wptt/webfont-loader/wptt-webfont-loader.php';
|
39 |
require_once NCSUCP_DIR . '/vendor/ernilambar/ns-customizer-utilities/init.php';
|
40 |
+
require_once NCSUCP_DIR . '/vendor/ernilambar/wp-welcome/init.php';
|
41 |
}
|
42 |
|
43 |
// Init plugin.
|
readme.txt
CHANGED
@@ -3,10 +3,10 @@
|
|
3 |
Contributors: wpconcern, maneshtimilsina, rabmalin
|
4 |
Donate link: https://wpconcern.com/plugins/nifty-coming-soon-and-under-construction-page/
|
5 |
Tags: coming soon, coming soon page, launch page, maintenance mode, maintenance page, coming soon mode, under construction, maintenance mode page, landing page, offline page, subscribe form, maintenance, maintenance mode with countdown timer, maintenance mode with timer, coming soon plugin, wp coming soon, wordpress under construction, under construction page, wp maintenance, wordpress coming soon page, simple maintenance mode, custom coming soon, custom maintenance mode
|
6 |
-
Tested up to: 6.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
-
Stable tag: 3.0.
|
10 |
Requires PHP: 5.6
|
11 |
Requires at least: 4.9
|
12 |
|
@@ -97,6 +97,10 @@ Logged in users will NOT see the Coming Soon page. To see and customize the sett
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
100 |
= 3.0.1 - 9 Sep 2022 =
|
101 |
* Minor bug fixes
|
102 |
|
3 |
Contributors: wpconcern, maneshtimilsina, rabmalin
|
4 |
Donate link: https://wpconcern.com/plugins/nifty-coming-soon-and-under-construction-page/
|
5 |
Tags: coming soon, coming soon page, launch page, maintenance mode, maintenance page, coming soon mode, under construction, maintenance mode page, landing page, offline page, subscribe form, maintenance, maintenance mode with countdown timer, maintenance mode with timer, coming soon plugin, wp coming soon, wordpress under construction, under construction page, wp maintenance, wordpress coming soon page, simple maintenance mode, custom coming soon, custom maintenance mode
|
6 |
+
Tested up to: 6.1
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
+
Stable tag: 3.0.2
|
10 |
Requires PHP: 5.6
|
11 |
Requires at least: 4.9
|
12 |
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 3.0.2 - 10 Oct 2022 =
|
101 |
+
* Update dashboard
|
102 |
+
* Minor bug fixes
|
103 |
+
|
104 |
= 3.0.1 - 9 Sep 2022 =
|
105 |
* Minor bug fixes
|
106 |
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitc82ed144ceefda8d92777fc6a0a42f93::getLoader();
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -7,6 +7,7 @@ $baseDir = dirname($vendorDir);
|
|
7 |
|
8 |
return array(
|
9 |
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
|
|
10 |
'Nilambar\\AdminNotice\\Notice' => $vendorDir . '/ernilambar/wp-admin-notice/src/Notice.php',
|
11 |
'Nilambar\\CustomizerUtils\\Control\\Accordion' => $vendorDir . '/ernilambar/ns-customizer-utilities/src/Control/Accordion.php',
|
12 |
'Nilambar\\CustomizerUtils\\Control\\Base' => $vendorDir . '/ernilambar/ns-customizer-utilities/src/Control/Base.php',
|
7 |
|
8 |
return array(
|
9 |
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
10 |
+
'Kirki\\URL' => $vendorDir . '/kirki-framework/url-getter/src/URL.php',
|
11 |
'Nilambar\\AdminNotice\\Notice' => $vendorDir . '/ernilambar/wp-admin-notice/src/Notice.php',
|
12 |
'Nilambar\\CustomizerUtils\\Control\\Accordion' => $vendorDir . '/ernilambar/ns-customizer-utilities/src/Control/Accordion.php',
|
13 |
'Nilambar\\CustomizerUtils\\Control\\Base' => $vendorDir . '/ernilambar/ns-customizer-utilities/src/Control/Base.php',
|
vendor/composer/autoload_psr4.php
CHANGED
@@ -8,4 +8,5 @@ $baseDir = dirname($vendorDir);
|
|
8 |
return array(
|
9 |
'Nilambar\\CustomizerUtils\\' => array($vendorDir . '/ernilambar/ns-customizer-utilities/src'),
|
10 |
'Nilambar\\AdminNotice\\' => array($vendorDir . '/ernilambar/wp-admin-notice/src'),
|
|
|
11 |
);
|
8 |
return array(
|
9 |
'Nilambar\\CustomizerUtils\\' => array($vendorDir . '/ernilambar/ns-customizer-utilities/src'),
|
10 |
'Nilambar\\AdminNotice\\' => array($vendorDir . '/ernilambar/wp-admin-notice/src'),
|
11 |
+
'Kirki\\' => array($vendorDir . '/kirki-framework/url-getter/src'),
|
12 |
);
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit986239c6e30399138bc5197358a73a63
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
-
call_user_func(\Composer\Autoload\
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitc82ed144ceefda8d92777fc6a0a42f93
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInitc82ed144ceefda8d92777fc6a0a42f93', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitc82ed144ceefda8d92777fc6a0a42f93', 'loadClassLoader'));
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitc82ed144ceefda8d92777fc6a0a42f93::getInitializer($loader));
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'N' =>
|
@@ -12,6 +12,10 @@ class ComposerStaticInit986239c6e30399138bc5197358a73a63
|
|
12 |
'Nilambar\\CustomizerUtils\\' => 25,
|
13 |
'Nilambar\\AdminNotice\\' => 21,
|
14 |
),
|
|
|
|
|
|
|
|
|
15 |
);
|
16 |
|
17 |
public static $prefixDirsPsr4 = array (
|
@@ -23,10 +27,15 @@ class ComposerStaticInit986239c6e30399138bc5197358a73a63
|
|
23 |
array (
|
24 |
0 => __DIR__ . '/..' . '/ernilambar/wp-admin-notice/src',
|
25 |
),
|
|
|
|
|
|
|
|
|
26 |
);
|
27 |
|
28 |
public static $classMap = array (
|
29 |
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
|
|
30 |
'Nilambar\\AdminNotice\\Notice' => __DIR__ . '/..' . '/ernilambar/wp-admin-notice/src/Notice.php',
|
31 |
'Nilambar\\CustomizerUtils\\Control\\Accordion' => __DIR__ . '/..' . '/ernilambar/ns-customizer-utilities/src/Control/Accordion.php',
|
32 |
'Nilambar\\CustomizerUtils\\Control\\Base' => __DIR__ . '/..' . '/ernilambar/ns-customizer-utilities/src/Control/Base.php',
|
@@ -70,9 +79,9 @@ class ComposerStaticInit986239c6e30399138bc5197358a73a63
|
|
70 |
public static function getInitializer(ClassLoader $loader)
|
71 |
{
|
72 |
return \Closure::bind(function () use ($loader) {
|
73 |
-
$loader->prefixLengthsPsr4 =
|
74 |
-
$loader->prefixDirsPsr4 =
|
75 |
-
$loader->classMap =
|
76 |
|
77 |
}, null, ClassLoader::class);
|
78 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitc82ed144ceefda8d92777fc6a0a42f93
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'N' =>
|
12 |
'Nilambar\\CustomizerUtils\\' => 25,
|
13 |
'Nilambar\\AdminNotice\\' => 21,
|
14 |
),
|
15 |
+
'K' =>
|
16 |
+
array (
|
17 |
+
'Kirki\\' => 6,
|
18 |
+
),
|
19 |
);
|
20 |
|
21 |
public static $prefixDirsPsr4 = array (
|
27 |
array (
|
28 |
0 => __DIR__ . '/..' . '/ernilambar/wp-admin-notice/src',
|
29 |
),
|
30 |
+
'Kirki\\' =>
|
31 |
+
array (
|
32 |
+
0 => __DIR__ . '/..' . '/kirki-framework/url-getter/src',
|
33 |
+
),
|
34 |
);
|
35 |
|
36 |
public static $classMap = array (
|
37 |
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
38 |
+
'Kirki\\URL' => __DIR__ . '/..' . '/kirki-framework/url-getter/src/URL.php',
|
39 |
'Nilambar\\AdminNotice\\Notice' => __DIR__ . '/..' . '/ernilambar/wp-admin-notice/src/Notice.php',
|
40 |
'Nilambar\\CustomizerUtils\\Control\\Accordion' => __DIR__ . '/..' . '/ernilambar/ns-customizer-utilities/src/Control/Accordion.php',
|
41 |
'Nilambar\\CustomizerUtils\\Control\\Base' => __DIR__ . '/..' . '/ernilambar/ns-customizer-utilities/src/Control/Base.php',
|
79 |
public static function getInitializer(ClassLoader $loader)
|
80 |
{
|
81 |
return \Closure::bind(function () use ($loader) {
|
82 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitc82ed144ceefda8d92777fc6a0a42f93::$prefixLengthsPsr4;
|
83 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitc82ed144ceefda8d92777fc6a0a42f93::$prefixDirsPsr4;
|
84 |
+
$loader->classMap = ComposerStaticInitc82ed144ceefda8d92777fc6a0a42f93::$classMap;
|
85 |
|
86 |
}, null, ClassLoader::class);
|
87 |
}
|
vendor/composer/installed.json
CHANGED
@@ -2,23 +2,24 @@
|
|
2 |
"packages": [
|
3 |
{
|
4 |
"name": "ernilambar/ns-customizer-utilities",
|
5 |
-
"version": "1.0.
|
6 |
-
"version_normalized": "1.0.
|
7 |
"source": {
|
8 |
"type": "git",
|
9 |
"url": "https://github.com/ernilambar/ns-customizer-utilities.git",
|
10 |
-
"reference": "
|
11 |
},
|
12 |
"dist": {
|
13 |
"type": "zip",
|
14 |
-
"url": "https://api.github.com/repos/ernilambar/ns-customizer-utilities/zipball/
|
15 |
-
"reference": "
|
16 |
"shasum": ""
|
17 |
},
|
18 |
"require": {
|
|
|
19 |
"php": ">=5.6"
|
20 |
},
|
21 |
-
"time": "2022-
|
22 |
"type": "library",
|
23 |
"installation-source": "dist",
|
24 |
"autoload": {
|
@@ -46,7 +47,7 @@
|
|
46 |
],
|
47 |
"support": {
|
48 |
"issues": "https://github.com/ernilambar/ns-customizer-utilities/issues",
|
49 |
-
"source": "https://github.com/ernilambar/ns-customizer-utilities/tree/1.0.
|
50 |
},
|
51 |
"install-path": "../ernilambar/ns-customizer-utilities"
|
52 |
},
|
@@ -100,6 +101,99 @@
|
|
100 |
},
|
101 |
"install-path": "../ernilambar/wp-admin-notice"
|
102 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
{
|
104 |
"name": "wptt/webfont-loader",
|
105 |
"version": "v1.1.2",
|
2 |
"packages": [
|
3 |
{
|
4 |
"name": "ernilambar/ns-customizer-utilities",
|
5 |
+
"version": "1.0.11",
|
6 |
+
"version_normalized": "1.0.11.0",
|
7 |
"source": {
|
8 |
"type": "git",
|
9 |
"url": "https://github.com/ernilambar/ns-customizer-utilities.git",
|
10 |
+
"reference": "eb561f0b759e84b7f19752f828eaff0f6961c21f"
|
11 |
},
|
12 |
"dist": {
|
13 |
"type": "zip",
|
14 |
+
"url": "https://api.github.com/repos/ernilambar/ns-customizer-utilities/zipball/eb561f0b759e84b7f19752f828eaff0f6961c21f",
|
15 |
+
"reference": "eb561f0b759e84b7f19752f828eaff0f6961c21f",
|
16 |
"shasum": ""
|
17 |
},
|
18 |
"require": {
|
19 |
+
"kirki-framework/url-getter": "^1.0",
|
20 |
"php": ">=5.6"
|
21 |
},
|
22 |
+
"time": "2022-09-23T07:16:05+00:00",
|
23 |
"type": "library",
|
24 |
"installation-source": "dist",
|
25 |
"autoload": {
|
47 |
],
|
48 |
"support": {
|
49 |
"issues": "https://github.com/ernilambar/ns-customizer-utilities/issues",
|
50 |
+
"source": "https://github.com/ernilambar/ns-customizer-utilities/tree/1.0.11"
|
51 |
},
|
52 |
"install-path": "../ernilambar/ns-customizer-utilities"
|
53 |
},
|
101 |
},
|
102 |
"install-path": "../ernilambar/wp-admin-notice"
|
103 |
},
|
104 |
+
{
|
105 |
+
"name": "ernilambar/wp-welcome",
|
106 |
+
"version": "1.0.1",
|
107 |
+
"version_normalized": "1.0.1.0",
|
108 |
+
"source": {
|
109 |
+
"type": "git",
|
110 |
+
"url": "https://github.com/ernilambar/wp-welcome.git",
|
111 |
+
"reference": "1f80ec69bfe76622e172798281bb06a76fcb2c0c"
|
112 |
+
},
|
113 |
+
"dist": {
|
114 |
+
"type": "zip",
|
115 |
+
"url": "https://api.github.com/repos/ernilambar/wp-welcome/zipball/1f80ec69bfe76622e172798281bb06a76fcb2c0c",
|
116 |
+
"reference": "1f80ec69bfe76622e172798281bb06a76fcb2c0c",
|
117 |
+
"shasum": ""
|
118 |
+
},
|
119 |
+
"require": {
|
120 |
+
"php": ">=5.6"
|
121 |
+
},
|
122 |
+
"time": "2022-09-30T10:16:27+00:00",
|
123 |
+
"type": "library",
|
124 |
+
"installation-source": "dist",
|
125 |
+
"notification-url": "https://packagist.org/downloads/",
|
126 |
+
"license": [
|
127 |
+
"MIT"
|
128 |
+
],
|
129 |
+
"authors": [
|
130 |
+
{
|
131 |
+
"name": "Nilambar Sharma",
|
132 |
+
"email": "nilambar@outlook.com",
|
133 |
+
"homepage": "https://www.nilambar.net",
|
134 |
+
"role": "Developer"
|
135 |
+
}
|
136 |
+
],
|
137 |
+
"description": "Create welcome page in WordPress. Useful for themes to showcase related information.",
|
138 |
+
"homepage": "https://github.com/ernilambar/wp-welcome",
|
139 |
+
"keywords": [
|
140 |
+
"plugin",
|
141 |
+
"theme",
|
142 |
+
"wordpress"
|
143 |
+
],
|
144 |
+
"support": {
|
145 |
+
"issues": "https://github.com/ernilambar/wp-welcome/issues",
|
146 |
+
"source": "https://github.com/ernilambar/wp-welcome/tree/1.0.1"
|
147 |
+
},
|
148 |
+
"install-path": "../ernilambar/wp-welcome"
|
149 |
+
},
|
150 |
+
{
|
151 |
+
"name": "kirki-framework/url-getter",
|
152 |
+
"version": "v1.0.5",
|
153 |
+
"version_normalized": "1.0.5.0",
|
154 |
+
"source": {
|
155 |
+
"type": "git",
|
156 |
+
"url": "https://github.com/kirki-framework/url-getter.git",
|
157 |
+
"reference": "cfe7ea5b51c5e9b5e7d706ed56694f54a972fae2"
|
158 |
+
},
|
159 |
+
"dist": {
|
160 |
+
"type": "zip",
|
161 |
+
"url": "https://api.github.com/repos/kirki-framework/url-getter/zipball/cfe7ea5b51c5e9b5e7d706ed56694f54a972fae2",
|
162 |
+
"reference": "cfe7ea5b51c5e9b5e7d706ed56694f54a972fae2",
|
163 |
+
"shasum": ""
|
164 |
+
},
|
165 |
+
"require": {
|
166 |
+
"php": ">=7.0"
|
167 |
+
},
|
168 |
+
"time": "2021-12-29T16:27:31+00:00",
|
169 |
+
"type": "library",
|
170 |
+
"installation-source": "dist",
|
171 |
+
"autoload": {
|
172 |
+
"psr-4": {
|
173 |
+
"Kirki\\": "src"
|
174 |
+
}
|
175 |
+
},
|
176 |
+
"notification-url": "https://packagist.org/downloads/",
|
177 |
+
"license": [
|
178 |
+
"MIT"
|
179 |
+
],
|
180 |
+
"authors": [
|
181 |
+
{
|
182 |
+
"name": "Kirki Framework",
|
183 |
+
"email": "connect@mapsteps.com"
|
184 |
+
}
|
185 |
+
],
|
186 |
+
"description": "Helper component to get the URL of a file in WordPress.",
|
187 |
+
"homepage": "https://kirki.org/",
|
188 |
+
"keywords": [
|
189 |
+
"wordpress"
|
190 |
+
],
|
191 |
+
"support": {
|
192 |
+
"issues": "https://github.com/kirki-framework/url-getter/issues",
|
193 |
+
"source": "https://github.com/kirki-framework/url-getter/tree/v1.0.5"
|
194 |
+
},
|
195 |
+
"install-path": "../kirki-framework/url-getter"
|
196 |
+
},
|
197 |
{
|
198 |
"name": "wptt/webfont-loader",
|
199 |
"version": "v1.1.2",
|
vendor/composer/installed.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
'type' => 'library',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
-
'reference' => '
|
9 |
'name' => '__root__',
|
10 |
'dev' => false,
|
11 |
),
|
@@ -16,16 +16,16 @@
|
|
16 |
'type' => 'library',
|
17 |
'install_path' => __DIR__ . '/../../',
|
18 |
'aliases' => array(),
|
19 |
-
'reference' => '
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'ernilambar/ns-customizer-utilities' => array(
|
23 |
-
'pretty_version' => '1.0.
|
24 |
-
'version' => '1.0.
|
25 |
'type' => 'library',
|
26 |
'install_path' => __DIR__ . '/../ernilambar/ns-customizer-utilities',
|
27 |
'aliases' => array(),
|
28 |
-
'reference' => '
|
29 |
'dev_requirement' => false,
|
30 |
),
|
31 |
'ernilambar/wp-admin-notice' => array(
|
@@ -37,6 +37,24 @@
|
|
37 |
'reference' => '1fd14ff6d79994750d25b4f529284a6942e117eb',
|
38 |
'dev_requirement' => false,
|
39 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
'wptt/webfont-loader' => array(
|
41 |
'pretty_version' => 'v1.1.2',
|
42 |
'version' => '1.1.2.0',
|
5 |
'type' => 'library',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
+
'reference' => 'd8af6c9fd3ae5ef3981ad6b4ec7d0c93b2d64499',
|
9 |
'name' => '__root__',
|
10 |
'dev' => false,
|
11 |
),
|
16 |
'type' => 'library',
|
17 |
'install_path' => __DIR__ . '/../../',
|
18 |
'aliases' => array(),
|
19 |
+
'reference' => 'd8af6c9fd3ae5ef3981ad6b4ec7d0c93b2d64499',
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'ernilambar/ns-customizer-utilities' => array(
|
23 |
+
'pretty_version' => '1.0.11',
|
24 |
+
'version' => '1.0.11.0',
|
25 |
'type' => 'library',
|
26 |
'install_path' => __DIR__ . '/../ernilambar/ns-customizer-utilities',
|
27 |
'aliases' => array(),
|
28 |
+
'reference' => 'eb561f0b759e84b7f19752f828eaff0f6961c21f',
|
29 |
'dev_requirement' => false,
|
30 |
),
|
31 |
'ernilambar/wp-admin-notice' => array(
|
37 |
'reference' => '1fd14ff6d79994750d25b4f529284a6942e117eb',
|
38 |
'dev_requirement' => false,
|
39 |
),
|
40 |
+
'ernilambar/wp-welcome' => array(
|
41 |
+
'pretty_version' => '1.0.1',
|
42 |
+
'version' => '1.0.1.0',
|
43 |
+
'type' => 'library',
|
44 |
+
'install_path' => __DIR__ . '/../ernilambar/wp-welcome',
|
45 |
+
'aliases' => array(),
|
46 |
+
'reference' => '1f80ec69bfe76622e172798281bb06a76fcb2c0c',
|
47 |
+
'dev_requirement' => false,
|
48 |
+
),
|
49 |
+
'kirki-framework/url-getter' => array(
|
50 |
+
'pretty_version' => 'v1.0.5',
|
51 |
+
'version' => '1.0.5.0',
|
52 |
+
'type' => 'library',
|
53 |
+
'install_path' => __DIR__ . '/../kirki-framework/url-getter',
|
54 |
+
'aliases' => array(),
|
55 |
+
'reference' => 'cfe7ea5b51c5e9b5e7d706ed56694f54a972fae2',
|
56 |
+
'dev_requirement' => false,
|
57 |
+
),
|
58 |
'wptt/webfont-loader' => array(
|
59 |
'pretty_version' => 'v1.1.2',
|
60 |
'version' => '1.1.2.0',
|
vendor/composer/platform_check.php
CHANGED
@@ -4,8 +4,8 @@
|
|
4 |
|
5 |
$issues = array();
|
6 |
|
7 |
-
if (!(PHP_VERSION_ID >=
|
8 |
-
$issues[] = 'Your Composer dependencies require a PHP version ">=
|
9 |
}
|
10 |
|
11 |
if ($issues) {
|
4 |
|
5 |
$issues = array();
|
6 |
|
7 |
+
if (!(PHP_VERSION_ID >= 70000)) {
|
8 |
+
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.0.0". You are running ' . PHP_VERSION . '.';
|
9 |
}
|
10 |
|
11 |
if ($issues) {
|
vendor/ernilambar/ns-customizer-utilities/assets/controls.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;overflow:hidden;padding-left:8px;padding-right:20px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{background-color:transparent;border:none;font-size:1em}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-left:20px;padding-right:8px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline;list-style:none;padding:0}.select2-container .select2-selection--multiple .select2-selection__clear{background-color:transparent;border:none;font-size:1em}.select2-container .select2-search--inline .select2-search__field{border:none;box-sizing:border-box;font-family:sans-serif;font-size:100%;height:18px;margin-left:5px;margin-top:5px;max-width:100%;overflow:hidden;padding:0;resize:none;vertical-align:bottom;word-break:keep-all}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;left:-100000px;position:absolute;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option--selectable{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{box-sizing:border-box;padding:4px;width:100%}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{background-color:#fff;border:0;display:block;filter:alpha(opacity=0);height:auto;left:0;margin:0;min-height:100%;min-width:100%;opacity:0;padding:0;position:fixed;top:0;width:auto;z-index:99}.select2-hidden-accessible{clip:rect(0 0 0 0)!important;border:0!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;height:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;height:26px;margin-right:20px;padding-right:0}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;right:1px;top:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;padding-bottom:5px;padding-right:5px;position:relative}.select2-container--default .select2-selection--multiple.select2-selection--clearable{padding-right:25px}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;font-weight:700;height:20px;margin-right:10px;margin-top:5px;padding:1px;position:absolute;right:0}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:inline-block;margin-left:5px;margin-top:5px;max-width:100%;overflow:hidden;padding:0 0 0 20px;position:relative;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}.select2-container--default .select2-selection--multiple .select2-selection__choice__display{cursor:default;padding-left:2px;padding-right:5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{background-color:transparent;border:none;border-bottom-left-radius:4px;border-right:1px solid #aaa;border-top-left-radius:4px;color:#999;cursor:pointer;font-size:1em;font-weight:700;left:0;padding:0 4px;position:absolute;top:0}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus,.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{background-color:#f1f1f1;color:#333;outline:none}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__display{padding-left:5px;padding-right:2px}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{border-bottom-left-radius:0;border-bottom-right-radius:4px;border-left:1px solid #aaa;border-right:none;border-top-left-radius:0;border-top-right-radius:4px}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__clear{float:left;margin-left:10px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:1px solid #000;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{-webkit-appearance:textfield;background:transparent;border:none;box-shadow:none;outline:0}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--group{padding:0}.select2-container--default .select2-results__option--disabled{color:#999}.select2-container--default .select2-results__option--selected{background-color:#ddd}.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{background-color:#5897fb;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;background-image:linear-gradient(180deg,#fff 50%,#eee);background-repeat:repeat-x;border:1px solid #aaa;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFFFF",endColorstr="#FFEEEEEE",GradientType=0);outline:0}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;height:26px;margin-right:20px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;background-image:linear-gradient(180deg,#eee 50%,#ccc);background-repeat:repeat-x;border:none;border-bottom-right-radius:4px;border-left:1px solid #aaa;border-top-right-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFEEEEEE",endColorstr="#FFCCCCCC",GradientType=0);height:26px;position:absolute;right:1px;top:1px;width:20px}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-radius:0;border-bottom-left-radius:4px;border-right:1px solid #aaa;border-top-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{background-image:linear-gradient(180deg,#fff 0,#eee 50%);background-repeat:repeat-x;border-top:none;border-top-left-radius:0;border-top-right-radius:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFFFF",endColorstr="#FFEEEEEE",GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{background-image:linear-gradient(180deg,#eee 50%,#fff);background-repeat:repeat-x;border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFEEEEEE",endColorstr="#FFFFFFFF",GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0;padding-bottom:5px;padding-right:5px}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;display:inline-block;margin-left:5px;margin-top:5px;padding:0}.select2-container--classic .select2-selection--multiple .select2-selection__choice__display{cursor:default;padding-left:2px;padding-right:5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{background-color:transparent;border:none;border-bottom-left-radius:4px;border-top-left-radius:4px;color:#888;cursor:pointer;font-size:1em;font-weight:700;padding:0 4px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555;outline:none}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__display{padding-left:5px;padding-right:2px}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{border-bottom-left-radius:0;border-bottom-right-radius:4px;border-top-left-radius:0;border-top-right-radius:4px}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{box-shadow:none;outline:0}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option--group{padding:0}.select2-container--classic .select2-results__option--disabled{color:grey}.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}.flatpickr-calendar{-webkit-animation:none;animation:none;background:transparent;background:#fff;border:0;border-radius:5px;box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-sizing:border-box;direction:ltr;display:none;font-size:14px;line-height:24px;opacity:0;padding:0;position:absolute;text-align:center;touch-action:manipulation;visibility:hidden;width:307.875px}.flatpickr-calendar.inline,.flatpickr-calendar.open{max-height:640px;opacity:1;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{display:block;z-index:999}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasTime .dayContainer,.flatpickr-calendar .hasWeeks .dayContainer{border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{border-top:1px solid #e6e6e6;height:40px}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:after,.flatpickr-calendar:before{border:solid transparent;content:"";display:block;height:0;left:22px;pointer-events:none;position:absolute;width:0}.flatpickr-calendar.arrowRight:after,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.rightMost:before{left:auto;right:22px}.flatpickr-calendar.arrowCenter:after,.flatpickr-calendar.arrowCenter:before{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:after,.flatpickr-calendar.arrowTop:before{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:after,.flatpickr-calendar.arrowBottom:before{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{display:inline-block;position:relative}.flatpickr-months{display:flex}.flatpickr-months .flatpickr-month{fill:rgba(0,0,0,.9);background:transparent;color:rgba(0,0,0,.9);flex:1;height:34px;line-height:1;overflow:hidden;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{fill:rgba(0,0,0,.9);color:rgba(0,0,0,.9);cursor:pointer;height:34px;padding:10px;position:absolute;text-decoration:none;top:0;-webkit-user-select:none;user-select:none;z-index:3}.flatpickr-months .flatpickr-next-month.flatpickr-disabled,.flatpickr-months .flatpickr-prev-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-next-month i,.flatpickr-months .flatpickr-prev-month i{position:relative}.flatpickr-months .flatpickr-next-month.flatpickr-prev-month,.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-next-month.flatpickr-next-month,.flatpickr-months .flatpickr-prev-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-next-month:hover,.flatpickr-months .flatpickr-prev-month:hover{color:#959ea9}.flatpickr-months .flatpickr-next-month:hover svg,.flatpickr-months .flatpickr-prev-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-next-month svg,.flatpickr-months .flatpickr-prev-month svg{height:14px;width:14px}.flatpickr-months .flatpickr-next-month svg path,.flatpickr-months .flatpickr-prev-month svg path{fill:inherit;transition:fill .1s}.numInputWrapper{height:auto;position:relative}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-inner-spin-button,.numInputWrapper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.numInputWrapper span{border:1px solid rgba(57,57,57,.15);box-sizing:border-box;cursor:pointer;height:50%;line-height:50%;opacity:0;padding:0 4px 0 2px;position:absolute;right:0;width:14px}.numInputWrapper span:hover{background:rgba(0,0,0,.1)}.numInputWrapper span:active{background:rgba(0,0,0,.2)}.numInputWrapper span:after{content:"";display:block;position:absolute}.numInputWrapper span.arrowUp{border-bottom:0;top:0}.numInputWrapper span.arrowUp:after{border-bottom:4px solid rgba(57,57,57,.6);border-left:4px solid transparent;border-right:4px solid transparent;top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{height:auto;width:inherit}.numInputWrapper span svg path{fill:rgba(0,0,0,.5)}.numInputWrapper:hover{background:rgba(0,0,0,.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{color:inherit;display:inline-block;font-size:135%;font-weight:300;height:34px;left:12.5%;line-height:inherit;line-height:1;padding:7.48px 0 0;position:absolute;text-align:center;-webkit-transform:translateZ(0);transform:translateZ(0);width:75%}.flatpickr-current-month span.cur-month{color:inherit;display:inline-block;font-family:inherit;font-weight:700;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .numInputWrapper{display:inline-block;width:6ch;width:7ch\0}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,.9)}.flatpickr-current-month input.cur-year{-webkit-appearance:textfield;appearance:textfield;background:transparent;border:0;border-radius:0;box-sizing:border-box;color:inherit;cursor:text;display:inline-block;font-family:inherit;font-size:inherit;font-weight:300;height:auto;line-height:inherit;margin:0;padding:0 0 0 .5ch;vertical-align:baseline;vertical-align:initial}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{background:transparent;color:rgba(0,0,0,.5);font-size:100%;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;-webkit-appearance:menulist;-moz-appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;-webkit-box-sizing:border-box;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:baseline;vertical-align:initial;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:active,.flatpickr-current-month .flatpickr-monthDropdown-months:focus{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{align-items:center;background:transparent;display:flex;height:28px;overflow:hidden;text-align:center;width:100%}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:flex;flex:1}span.flatpickr-weekday{background:transparent;color:rgba(0,0,0,.54);cursor:default;display:block;flex:1;font-size:90%;font-weight:bolder;line-height:1;margin:0;text-align:center}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{align-items:flex-start;display:flex;overflow:hidden;position:relative;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{box-sizing:border-box;display:inline-block;display:flex;flex-wrap:wrap;-ms-flex-wrap:wrap;justify-content:space-around;max-width:307.875px;min-width:307.875px;opacity:1;outline:0;padding:0;text-align:left;-webkit-transform:translateZ(0);transform:translateZ(0);width:307.875px}.dayContainer+.dayContainer{box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;box-sizing:border-box;color:#393939;cursor:pointer;display:inline-block;flex-basis:14.2857143%;font-weight:400;height:39px;justify-content:center;line-height:39px;margin:0;max-width:39px;position:relative;text-align:center;width:14.2857143%}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day.nextMonthDay:focus,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.today.inRange,.flatpickr-day:focus,.flatpickr-day:hover{background:#e6e6e6;border-color:#e6e6e6;cursor:pointer;outline:0}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:focus,.flatpickr-day.today:hover{background:#959ea9;border-color:#959ea9;color:#fff}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.selected,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.startRange:focus,.flatpickr-day.startRange:hover{background:#569ff7;border-color:#569ff7;box-shadow:none;color:#fff}.flatpickr-day.endRange.startRange,.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.endRange.endRange,.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)){box-shadow:-10px 0 0 #569ff7}.flatpickr-day.endRange.startRange.endRange,.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.nextMonthDay,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.prevMonthDay{background:transparent;border-color:transparent;color:rgba(57,57,57,.3);cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{color:rgba(57,57,57,.1);cursor:not-allowed}.flatpickr-day.week.selected{border-radius:0;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{box-shadow:1px 0 0 #e6e6e6;padding:0 12px}.flatpickr-weekwrapper .flatpickr-weekday{float:none;line-height:28px;width:100%}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{background:transparent;border:none;color:rgba(57,57,57,.3);cursor:default;display:block;max-width:none;width:100%}.flatpickr-innerContainer{box-sizing:border-box;display:block;display:flex;overflow:hidden}.flatpickr-rContainer{box-sizing:border-box;display:inline-block;padding:0}.flatpickr-time{box-sizing:border-box;display:block;display:flex;height:0;line-height:40px;max-height:40px;outline:0;overflow:hidden;text-align:center}.flatpickr-time:after{clear:both;content:"";display:table}.flatpickr-time .numInputWrapper{flex:1;float:left;height:40px;width:40%}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{-webkit-appearance:textfield;appearance:textfield;background:transparent;border:0;border-radius:0;box-shadow:none;box-sizing:border-box;color:#393939;font-size:14px;height:inherit;line-height:inherit;margin:0;padding:0;position:relative;text-align:center}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{border:0;outline:0}.flatpickr-time .flatpickr-am-pm,.flatpickr-time .flatpickr-time-separator{align-self:center;color:#393939;float:left;font-weight:700;height:inherit;line-height:inherit;-webkit-user-select:none;user-select:none;width:2%}.flatpickr-time .flatpickr-am-pm{cursor:pointer;font-weight:400;outline:0;text-align:center;width:18%}.flatpickr-time .flatpickr-am-pm:focus,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time input:hover{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.customize-control-nscu-color .wp-picker-container .iris-picker{border-bottom:none}.customize-control-nscu-color .wp-picker-container{max-width:257px}.customize-control-nscu-color .wp-picker-open+.wp-picker-input-wrap{width:100%}.customize-control-nscu-color .wp-picker-input-wrap input[type=text].wp-color-picker.color-picker-input{float:left;width:153px}.customize-control-nscu-color .wp-picker-input-wrap .button{float:right;margin-left:0}.wp-picker-container .wp-picker-open~.wp-picker-holder .alpha-color-picker-container{display:block}.alpha-color-picker-container{background:#fff;border:1px solid #dfdfdf;border-top:none;display:none;padding:0 11px 10px;position:relative}.alpha-color-picker-container .ui-widget-content,.alpha-color-picker-container .ui-widget-header,.alpha-color-picker-wrap .ui-state-focus{background:transparent;border:none}.alpha-color-picker-wrap a.iris-square-value:focus{box-shadow:none}.alpha-color-picker-container .ui-slider{height:24px;margin:0 auto;position:relative;text-align:center;width:88%;width:calc(100% - 28px);z-index:1}.alpha-color-picker-container .ui-slider-handle,.alpha-color-picker-container .ui-widget-content .ui-state-default{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.2);color:#777;cursor:ew-resize;font-size:0;height:26px;line-height:27px;margin-left:-14px;margin-top:-2px;padding:0;position:absolute;text-decoration:none;text-shadow:0 1px 0 #fff;top:0;width:26px;z-index:2}.alpha-color-picker-container .ui-slider-handle.show-opacity{font-size:12px}.alpha-color-picker-container .click-zone{display:block;height:24px;left:10px;position:absolute;width:14px}.alpha-color-picker-container .max-click-zone{left:auto;right:10px}.alpha-color-picker-container .transparency{background-color:#fff;background-image:url(static/transparency-grid.png);border-radius:3px;box-shadow:inset 0 0 5px rgba(0,0,0,.4);height:24px;margin-top:-24px;padding:0;width:100%}@media only screen and (max-width:782px){.customize-control-nscu-color .wp-picker-input-wrap input[type=text].wp-color-picker.color-picker-input{width:153px}}@media only screen and (max-width:640px){.customize-control-nscu-color .wp-picker-input-wrap input[type=text].wp-color-picker.color-picker-input{height:33px;width:153px}}.customize-control-nscu-color .wp-picker-container.wp-picker-active .wp-color-result-text{display:none}.customize-control-nscu-color .wp-picker-container.wp-picker-active .button.wp-color-result{float:left;height:auto;width:34px}.customize-control-nscu-color .wp-picker-container.wp-picker-active .wp-picker-input-wrap{display:flex;float:right;height:auto;width:84%!important}.customize-control-nscu-color .wp-picker-container.wp-picker-active .wp-picker-holder{clear:both;width:100%}@media only screen and (max-width:782px){.customize-control-nscu-color .wp-picker-container.wp-picker-active .wp-picker-input-wrap{width:81%!important}}.select2-search--dropdown .select2-search__field{padding:0 4px}.select2-container{z-index:50000000!important}.customize-control-nscu-accordion .customize-control-title{align-items:center;cursor:pointer;display:flex;gap:5px}.customize-control-nscu-accordion .accordion-icon-toggle{padding-top:5px;transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out,-webkit-transform .3s ease-in-out}.customize-control-nscu-accordion .acc-active .accordion-icon-toggle{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.customize-control-nscu-accordion .customize-control-description{display:none;font-style:normal}.customize-control-nscu-buttonset input[type=radio]{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px}.customize-control-nscu-buttonset .buttonset{display:inline-flex;flex-direction:row;flex-wrap:nowrap}.customize-control-nscu-buttonset .buttonset .switch-label{background-color:#fff;border:1px solid #7e8993;display:inline-block;margin:0 0 0 -1px;padding:5px 10px;z-index:1}.customize-control-nscu-buttonset .buttonset .switch-label:first-of-type{border-radius:3px 0 0 3px}.customize-control-nscu-buttonset .buttonset .switch-label:last-child{border-radius:0 3px 3px 0}.customize-control-nscu-buttonset .buttonset .switch-input:checked+.switch-label{background:#008dd4;border-color:#7e8993;color:#fff;z-index:2}.customize-control-nscu-checkbox .field-wrapper{align-items:flex-start;display:flex;gap:8px}.customize-control-nscu-checkbox input[type=checkbox]{margin:0}.flatpickr-calendar.open{z-index:50000000!important}.customize-control-nscu-dimension .dimension-wrapper{position:relative}.customize-control-nscu-dimension .dimension-field{display:flex;gap:5px;justify-content:center}.customize-control-nscu-dimension .dimension-number{width:55px!important}.customize-control-nscu-dimension .dimension-unit{width:60px}.customize-control-nscu-dimension .dimension-reset{display:none}.customize-control-nscu-dimension .dimension-container:hover .dimension-reset{align-items:center;background-color:transparent;border-radius:50%;border-width:0;bottom:28px;color:#50575e;cursor:pointer;display:flex;height:16px;justify-content:center;opacity:1;padding:0;position:absolute;right:0;transition:all .3s;width:16px;z-index:3}.customize-control-nscu-dimension .dimension-container:hover .dimension-reset:hover i{color:#008dd4}.customize-control-nscu-dimension .dimension-container:hover .dimension-reset i{font-size:12px}.customize-control-nscu-divider hr{border:0;border-bottom:1px solid #f8f8f8;border-top:1px solid #ccc}.customize-control-nscu-editor textarea{height:120px;width:100%}.customize-control-nscu-heading{background-color:#fff;left:-24px;margin-top:12px;padding:10px 24px;position:relative;width:calc(100% + 48px)}.customize-control-nscu-heading:first-of-type{margin-top:0}.customize-control-nscu-heading .customize-control-title{font-size:15px}.control-section .customize-control-nscu-heading:nth-child(2){margin-top:0}.customize-control-nscu-media .field-input-wrap{align-items:center;display:flex;gap:5px}.customize-control-nscu-media .media-button{background-color:#008dd4;border:1px solid #008dd4;border-radius:4px;color:#fff;opacity:.9;padding:4px;text-decoration:none;transition:.2s}.customize-control-nscu-media .media-button:active,.customize-control-nscu-media .media-button:focus,.customize-control-nscu-media .media-button:hover{opacity:1}.customize-control-nscu-media .media-button-danger{background-color:#b73b27;border-color:#b73b27}.customize-control-nscu-media .preview-wrap{display:none}.customize-control-nscu-media .preview-wrap.preview-on{display:block;margin-top:10px}.customize-control-nscu-media .hide{display:none}.customize-control-nscu-message .customize-control-description{border:0;border-left:5px;border-color:#ccc;border-style:solid;color:#666;font-style:normal;padding:6px 6px 6px 12px;width:90%}.customize-control-nscu-radio ul{display:flex;flex-direction:column;flex-wrap:wrap;gap:10px}.customize-control-nscu-radio ul.layout-horizontal{flex-direction:row;gap:12px}.customize-control-nscu-radio ul li{margin-bottom:0}.customize-control-nscu-radio-image input[type=radio]{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px}.customize-control-nscu-radio-image .radio-images{grid-gap:5px;display:grid;gap:5px}.customize-control-nscu-radio-image .radio-images.columns-2{grid-template-columns:repeat(2,1fr)}.customize-control-nscu-radio-image .radio-images.columns-3{grid-template-columns:repeat(3,1fr)}.customize-control-nscu-radio-image .radio-images.columns-4{grid-template-columns:repeat(4,1fr)}.customize-control-nscu-radio-image .radio-images.columns-5{grid-template-columns:repeat(5,1fr)}.customize-control-nscu-radio-image .radio-images.columns-6{grid-template-columns:repeat(6,1fr)}.customize-control-nscu-radio-image img{border:3px solid transparent;box-sizing:border-box;height:auto;max-width:100%;padding:1px}.customize-control-nscu-radio-image img:focus,.customize-control-nscu-radio-image img:hover{border-color:#ccc}.customize-control-nscu-radio-image input:checked+img{border-color:#008dd4}.customize-control-nscu-range .range-wrapper{position:relative}.customize-control-nscu-range .range-field{display:flex;gap:5px;justify-content:center}.customize-control-nscu-range .range-value-holder{align-items:center;display:flex;gap:5px;justify-content:center}.customize-control-nscu-range .range-value-holder .range-number{width:45px}.customize-control-nscu-range .range-reset{display:none}.customize-control-nscu-range .range-container:hover .range-reset{align-items:center;background-color:transparent;border-radius:50%;border-width:0;bottom:28px;color:#50575e;cursor:pointer;display:flex;height:16px;justify-content:center;opacity:1;padding:0;position:absolute;right:0;transition:all .3s;width:16px;z-index:3}.customize-control-nscu-range .range-container:hover .range-reset:hover i{color:#008dd4}.customize-control-nscu-range .range-container:hover .range-reset i{font-size:12px}.customize-control-nscu-sortable ul.ui-sortable{cursor:default}.customize-control-nscu-sortable ul.ui-sortable .dashicons-visibility{cursor:pointer}.customize-control-nscu-sortable ul.ui-sortable li{background:#fff;border:1px solid #333;cursor:move;padding:5px 10px}.customize-control-nscu-sortable ul.ui-sortable li .dashicons.dashicons-menu{float:right}.customize-control-nscu-sortable ul.ui-sortable li .dashicons.visibility{margin-right:10px}.customize-control-nscu-sortable ul.ui-sortable li.invisible{border:1px dashed #aaa;color:#aaa}.customize-control-nscu-sortable ul.ui-sortable li.invisible .dashicons.visibility{color:#aaa}.customize-control-nscu-switcher .field-wrapper{display:flex;gap:15px;justify-content:space-between}.customize-control-nscu-switcher .field-holder{display:inline-block;height:24px;margin-top:5px;min-width:50px;position:relative}.customize-control-nscu-switcher .field-holder input{display:none}.customize-control-nscu-switcher .field-holder .field-slider{background-color:#ccc;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.4s}.customize-control-nscu-switcher .field-holder .field-slider:before{background-color:#fff;bottom:4px;content:"";height:16px;left:4px;position:absolute;transition:.4s;width:16px}.customize-control-nscu-switcher .field-holder input:checked+.field-slider{background-color:#008dd4}.customize-control-nscu-switcher .field-holder input:focus+.field-slider{box-shadow:0 0 1px #2271b1}.customize-control-nscu-switcher .field-holder input:checked+.field-slider:before{-webkit-transform:translateX(26px);transform:translateX(26px)}.customize-control-nscu-switcher .field-holder .field-slider.round{border-radius:34px}.customize-control-nscu-switcher .field-holder .field-slider.round:before{border-radius:50%}.customize-control-nscu-toggle .field-wrapper{display:flex;gap:15px;justify-content:space-between}.customize-control-nscu-toggle .field-holder{display:inline-block;height:24px;margin-top:5px;min-width:50px;position:relative}.customize-control-nscu-toggle .field-holder input{display:none}.customize-control-nscu-toggle .field-holder .field-slider{background-color:#ccc;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.4s}.customize-control-nscu-toggle .field-holder .field-slider:before{background-color:#fff;bottom:4px;content:"";height:16px;left:4px;position:absolute;transition:.4s;width:16px}.customize-control-nscu-toggle .field-holder input:checked+.field-slider{background-color:#008dd4}.customize-control-nscu-toggle .field-holder input:focus+.field-slider{box-shadow:0 0 1px #2271b1}.customize-control-nscu-toggle .field-holder input:checked+.field-slider:before{-webkit-transform:translateX(26px);transform:translateX(26px)}.customize-control-nscu-toggle .field-holder .field-slider.round{border-radius:34px}.customize-control-nscu-toggle .field-holder .field-slider.round:before{border-radius:50%}.customize-control-nscu-textarea textarea{height:120px;width:100%}.control-section-nscu-button .accordion-section-title{align-items:center;display:flex;gap:5px;justify-content:space-between;padding-right:14px!important;padding:7px 0 7px 14px}.control-section-nscu-button .accordion-section-title.no-button{padding-right:30px!important;padding:10px 10px 11px 14px}#customize-controls .control-section-nscu-header{background-color:#eee;text-align:center}#customize-controls .control-section-nscu-header .accordion-section-title{background-color:#eee;font-size:15px}#customize-controls .control-section-nscu-header .accordion-section-title:focus,#customize-controls .control-section-nscu-header .accordion-section-title:hover{background-color:#eee}#customize-controls .control-section-nscu-upsell{background-color:#344860}#customize-controls .control-section-nscu-upsell .accordion-section-title{background-color:#344860;border-color:#344860;-webkit-user-select:none;user-select:none}#customize-controls .control-section-nscu-upsell .accordion-section-title:focus,#customize-controls .control-section-nscu-upsell .accordion-section-title:hover{background-color:#344860;border-color:#344860}#customize-controls .control-section-nscu-upsell .accordion-section-title a{color:#fff;display:block;text-decoration:none;width:100%}
|
1 |
+
.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;overflow:hidden;padding-left:8px;padding-right:20px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{background-color:transparent;border:none;font-size:1em}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-left:20px;padding-right:8px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline;list-style:none;padding:0}.select2-container .select2-selection--multiple .select2-selection__clear{background-color:transparent;border:none;font-size:1em}.select2-container .select2-search--inline .select2-search__field{border:none;box-sizing:border-box;font-family:sans-serif;font-size:100%;height:18px;margin-left:5px;margin-top:5px;max-width:100%;overflow:hidden;padding:0;resize:none;vertical-align:bottom;word-break:keep-all}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;left:-100000px;position:absolute;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option--selectable{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{box-sizing:border-box;padding:4px;width:100%}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{background-color:#fff;border:0;display:block;filter:alpha(opacity=0);height:auto;left:0;margin:0;min-height:100%;min-width:100%;opacity:0;padding:0;position:fixed;top:0;width:auto;z-index:99}.select2-hidden-accessible{clip:rect(0 0 0 0)!important;border:0!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;height:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;height:26px;margin-right:20px;padding-right:0}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;right:1px;top:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;padding-bottom:5px;padding-right:5px;position:relative}.select2-container--default .select2-selection--multiple.select2-selection--clearable{padding-right:25px}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;font-weight:700;height:20px;margin-right:10px;margin-top:5px;padding:1px;position:absolute;right:0}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:inline-block;margin-left:5px;margin-top:5px;max-width:100%;overflow:hidden;padding:0 0 0 20px;position:relative;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}.select2-container--default .select2-selection--multiple .select2-selection__choice__display{cursor:default;padding-left:2px;padding-right:5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{background-color:transparent;border:none;border-bottom-left-radius:4px;border-right:1px solid #aaa;border-top-left-radius:4px;color:#999;cursor:pointer;font-size:1em;font-weight:700;left:0;padding:0 4px;position:absolute;top:0}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus,.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{background-color:#f1f1f1;color:#333;outline:none}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__display{padding-left:5px;padding-right:2px}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{border-bottom-left-radius:0;border-bottom-right-radius:4px;border-left:1px solid #aaa;border-right:none;border-top-left-radius:0;border-top-right-radius:4px}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__clear{float:left;margin-left:10px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:1px solid #000;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{-webkit-appearance:textfield;background:transparent;border:none;box-shadow:none;outline:0}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--group{padding:0}.select2-container--default .select2-results__option--disabled{color:#999}.select2-container--default .select2-results__option--selected{background-color:#ddd}.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{background-color:#5897fb;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;background-image:linear-gradient(180deg,#fff 50%,#eee);background-repeat:repeat-x;border:1px solid #aaa;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFFFF",endColorstr="#FFEEEEEE",GradientType=0);outline:0}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;height:26px;margin-right:20px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;background-image:linear-gradient(180deg,#eee 50%,#ccc);background-repeat:repeat-x;border:none;border-bottom-right-radius:4px;border-left:1px solid #aaa;border-top-right-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFEEEEEE",endColorstr="#FFCCCCCC",GradientType=0);height:26px;position:absolute;right:1px;top:1px;width:20px}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-radius:0;border-bottom-left-radius:4px;border-right:1px solid #aaa;border-top-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{background-image:linear-gradient(180deg,#fff 0,#eee 50%);background-repeat:repeat-x;border-top:none;border-top-left-radius:0;border-top-right-radius:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFFFFFFF",endColorstr="#FFEEEEEE",GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{background-image:linear-gradient(180deg,#eee 50%,#fff);background-repeat:repeat-x;border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#FFEEEEEE",endColorstr="#FFFFFFFF",GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0;padding-bottom:5px;padding-right:5px}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;display:inline-block;margin-left:5px;margin-top:5px;padding:0}.select2-container--classic .select2-selection--multiple .select2-selection__choice__display{cursor:default;padding-left:2px;padding-right:5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{background-color:transparent;border:none;border-bottom-left-radius:4px;border-top-left-radius:4px;color:#888;cursor:pointer;font-size:1em;font-weight:700;padding:0 4px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555;outline:none}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__display{padding-left:5px;padding-right:2px}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{border-bottom-left-radius:0;border-bottom-right-radius:4px;border-top-left-radius:0;border-top-right-radius:4px}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{box-shadow:none;outline:0}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option--group{padding:0}.select2-container--classic .select2-results__option--disabled{color:grey}.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}.flatpickr-calendar{animation:none;background:transparent;background:#fff;border:0;border-radius:5px;box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-sizing:border-box;direction:ltr;display:none;font-size:14px;line-height:24px;opacity:0;padding:0;position:absolute;text-align:center;touch-action:manipulation;visibility:hidden;width:307.875px}.flatpickr-calendar.inline,.flatpickr-calendar.open{max-height:640px;opacity:1;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{display:block;z-index:999}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasTime .dayContainer,.flatpickr-calendar .hasWeeks .dayContainer{border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.hasTime .flatpickr-time{border-top:1px solid #e6e6e6;height:40px}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:after,.flatpickr-calendar:before{border:solid transparent;content:"";display:block;height:0;left:22px;pointer-events:none;position:absolute;width:0}.flatpickr-calendar.arrowRight:after,.flatpickr-calendar.arrowRight:before,.flatpickr-calendar.rightMost:after,.flatpickr-calendar.rightMost:before{left:auto;right:22px}.flatpickr-calendar.arrowCenter:after,.flatpickr-calendar.arrowCenter:before{left:50%;right:50%}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:after,.flatpickr-calendar.arrowTop:before{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:after,.flatpickr-calendar.arrowBottom:before{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{display:inline-block;position:relative}.flatpickr-months{display:flex}.flatpickr-months .flatpickr-month{fill:rgba(0,0,0,.9);background:transparent;color:rgba(0,0,0,.9);flex:1;height:34px;line-height:1;overflow:hidden;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{fill:rgba(0,0,0,.9);color:rgba(0,0,0,.9);cursor:pointer;height:34px;padding:10px;position:absolute;text-decoration:none;top:0;-webkit-user-select:none;user-select:none;z-index:3}.flatpickr-months .flatpickr-next-month.flatpickr-disabled,.flatpickr-months .flatpickr-prev-month.flatpickr-disabled{display:none}.flatpickr-months .flatpickr-next-month i,.flatpickr-months .flatpickr-prev-month i{position:relative}.flatpickr-months .flatpickr-next-month.flatpickr-prev-month,.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-next-month.flatpickr-next-month,.flatpickr-months .flatpickr-prev-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-next-month:hover,.flatpickr-months .flatpickr-prev-month:hover{color:#959ea9}.flatpickr-months .flatpickr-next-month:hover svg,.flatpickr-months .flatpickr-prev-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-next-month svg,.flatpickr-months .flatpickr-prev-month svg{height:14px;width:14px}.flatpickr-months .flatpickr-next-month svg path,.flatpickr-months .flatpickr-prev-month svg path{fill:inherit;transition:fill .1s}.numInputWrapper{height:auto;position:relative}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper input::-webkit-inner-spin-button,.numInputWrapper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.numInputWrapper span{border:1px solid rgba(57,57,57,.15);box-sizing:border-box;cursor:pointer;height:50%;line-height:50%;opacity:0;padding:0 4px 0 2px;position:absolute;right:0;width:14px}.numInputWrapper span:hover{background:rgba(0,0,0,.1)}.numInputWrapper span:active{background:rgba(0,0,0,.2)}.numInputWrapper span:after{content:"";display:block;position:absolute}.numInputWrapper span.arrowUp{border-bottom:0;top:0}.numInputWrapper span.arrowUp:after{border-bottom:4px solid rgba(57,57,57,.6);border-left:4px solid transparent;border-right:4px solid transparent;top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{height:auto;width:inherit}.numInputWrapper span svg path{fill:rgba(0,0,0,.5)}.numInputWrapper:hover{background:rgba(0,0,0,.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{color:inherit;display:inline-block;font-size:135%;font-weight:300;height:34px;left:12.5%;line-height:inherit;line-height:1;padding:7.48px 0 0;position:absolute;text-align:center;transform:translateZ(0);width:75%}.flatpickr-current-month span.cur-month{color:inherit;display:inline-block;font-family:inherit;font-weight:700;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .numInputWrapper{display:inline-block;width:6ch;width:7ch\0}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,.9)}.flatpickr-current-month input.cur-year{-webkit-appearance:textfield;appearance:textfield;background:transparent;border:0;border-radius:0;box-sizing:border-box;color:inherit;cursor:text;display:inline-block;font-family:inherit;font-size:inherit;font-weight:300;height:auto;line-height:inherit;margin:0;padding:0 0 0 .5ch;vertical-align:baseline;vertical-align:initial}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{background:transparent;color:rgba(0,0,0,.5);font-size:100%;pointer-events:none}.flatpickr-current-month .flatpickr-monthDropdown-months{appearance:menulist;-webkit-appearance:menulist;-moz-appearance:menulist;background:transparent;border:none;border-radius:0;box-sizing:border-box;-webkit-box-sizing:border-box;color:inherit;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:300;height:auto;line-height:inherit;margin:-1px 0 0;outline:none;padding:0 0 0 .5ch;position:relative;vertical-align:baseline;vertical-align:initial;width:auto}.flatpickr-current-month .flatpickr-monthDropdown-months:active,.flatpickr-current-month .flatpickr-monthDropdown-months:focus{outline:none}.flatpickr-current-month .flatpickr-monthDropdown-months:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{background-color:transparent;outline:none;padding:0}.flatpickr-weekdays{align-items:center;background:transparent;display:flex;height:28px;overflow:hidden;text-align:center;width:100%}.flatpickr-weekdays .flatpickr-weekdaycontainer{display:flex;flex:1}span.flatpickr-weekday{background:transparent;color:rgba(0,0,0,.54);cursor:default;display:block;flex:1;font-size:90%;font-weight:bolder;line-height:1;margin:0;text-align:center}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{align-items:flex-start;display:flex;overflow:hidden;position:relative;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{box-sizing:border-box;display:inline-block;display:flex;flex-wrap:wrap;-ms-flex-wrap:wrap;justify-content:space-around;max-width:307.875px;min-width:307.875px;opacity:1;outline:0;padding:0;text-align:left;transform:translateZ(0);width:307.875px}.dayContainer+.dayContainer{box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;box-sizing:border-box;color:#393939;cursor:pointer;display:inline-block;flex-basis:14.2857143%;font-weight:400;height:39px;justify-content:center;line-height:39px;margin:0;max-width:39px;position:relative;text-align:center;width:14.2857143%}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day.nextMonthDay:focus,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.today.inRange,.flatpickr-day:focus,.flatpickr-day:hover{background:#e6e6e6;border-color:#e6e6e6;cursor:pointer;outline:0}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:focus,.flatpickr-day.today:hover{background:#959ea9;border-color:#959ea9;color:#fff}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.selected,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.startRange:focus,.flatpickr-day.startRange:hover{background:#569ff7;border-color:#569ff7;box-shadow:none;color:#fff}.flatpickr-day.endRange.startRange,.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.endRange.endRange,.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)){box-shadow:-10px 0 0 #569ff7}.flatpickr-day.endRange.startRange.endRange,.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.nextMonthDay,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.prevMonthDay{background:transparent;border-color:transparent;color:rgba(57,57,57,.3);cursor:default}.flatpickr-day.flatpickr-disabled,.flatpickr-day.flatpickr-disabled:hover{color:rgba(57,57,57,.1);cursor:not-allowed}.flatpickr-day.week.selected{border-radius:0;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{float:left}.flatpickr-weekwrapper .flatpickr-weeks{box-shadow:1px 0 0 #e6e6e6;padding:0 12px}.flatpickr-weekwrapper .flatpickr-weekday{float:none;line-height:28px;width:100%}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{background:transparent;border:none;color:rgba(57,57,57,.3);cursor:default;display:block;max-width:none;width:100%}.flatpickr-innerContainer{box-sizing:border-box;display:block;display:flex;overflow:hidden}.flatpickr-rContainer{box-sizing:border-box;display:inline-block;padding:0}.flatpickr-time{box-sizing:border-box;display:block;display:flex;height:0;line-height:40px;max-height:40px;outline:0;overflow:hidden;text-align:center}.flatpickr-time:after{clear:both;content:"";display:table}.flatpickr-time .numInputWrapper{flex:1;float:left;height:40px;width:40%}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{-webkit-appearance:textfield;appearance:textfield;background:transparent;border:0;border-radius:0;box-shadow:none;box-sizing:border-box;color:#393939;font-size:14px;height:inherit;line-height:inherit;margin:0;padding:0;position:relative;text-align:center}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{border:0;outline:0}.flatpickr-time .flatpickr-am-pm,.flatpickr-time .flatpickr-time-separator{align-self:center;color:#393939;float:left;font-weight:700;height:inherit;line-height:inherit;-webkit-user-select:none;user-select:none;width:2%}.flatpickr-time .flatpickr-am-pm{cursor:pointer;font-weight:400;outline:0;text-align:center;width:18%}.flatpickr-time .flatpickr-am-pm:focus,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time input:hover{background:#eee}.flatpickr-input[readonly]{cursor:pointer}@keyframes fpFadeInDown{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}.customize-control-nscu-color .wp-picker-container .iris-picker{border-bottom:none}.customize-control-nscu-color .wp-picker-container{max-width:257px}.customize-control-nscu-color .wp-picker-open+.wp-picker-input-wrap{width:100%}.customize-control-nscu-color .wp-picker-input-wrap input[type=text].wp-color-picker.color-picker-input{float:left;width:153px}.customize-control-nscu-color .wp-picker-input-wrap .button{float:right;margin-left:0}.wp-picker-container .wp-picker-open~.wp-picker-holder .alpha-color-picker-container{display:block}.alpha-color-picker-container{background:#fff;border:1px solid #dfdfdf;border-top:none;display:none;padding:0 11px 10px;position:relative}.alpha-color-picker-container .ui-widget-content,.alpha-color-picker-container .ui-widget-header,.alpha-color-picker-wrap .ui-state-focus{background:transparent;border:none}.alpha-color-picker-wrap a.iris-square-value:focus{box-shadow:none}.alpha-color-picker-container .ui-slider{height:24px;margin:0 auto;position:relative;text-align:center;width:88%;width:calc(100% - 28px);z-index:1}.alpha-color-picker-container .ui-slider-handle,.alpha-color-picker-container .ui-widget-content .ui-state-default{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.2);color:#777;cursor:ew-resize;font-size:0;height:26px;line-height:27px;margin-left:-14px;margin-top:-2px;padding:0;position:absolute;text-decoration:none;text-shadow:0 1px 0 #fff;top:0;width:26px;z-index:2}.alpha-color-picker-container .ui-slider-handle.show-opacity{font-size:12px}.alpha-color-picker-container .click-zone{display:block;height:24px;left:10px;position:absolute;width:14px}.alpha-color-picker-container .max-click-zone{left:auto;right:10px}.alpha-color-picker-container .transparency{background-color:#fff;background-image:url(static/transparency-grid.png);border-radius:3px;box-shadow:inset 0 0 5px rgba(0,0,0,.4);height:24px;margin-top:-24px;padding:0;width:100%}@media only screen and (max-width:782px){.customize-control-nscu-color .wp-picker-input-wrap input[type=text].wp-color-picker.color-picker-input{width:153px}}@media only screen and (max-width:640px){.customize-control-nscu-color .wp-picker-input-wrap input[type=text].wp-color-picker.color-picker-input{height:33px;width:153px}}.customize-control-nscu-color .wp-picker-container.wp-picker-active .wp-color-result-text{display:none}.customize-control-nscu-color .wp-picker-container.wp-picker-active .button.wp-color-result{float:left;height:auto;width:34px}.customize-control-nscu-color .wp-picker-container.wp-picker-active .wp-picker-input-wrap{display:flex;float:right;height:auto;width:84%!important}.customize-control-nscu-color .wp-picker-container.wp-picker-active .wp-picker-holder{clear:both;width:100%}@media only screen and (max-width:782px){.customize-control-nscu-color .wp-picker-container.wp-picker-active .wp-picker-input-wrap{width:81%!important}}.select2-search--dropdown .select2-search__field{padding:0 4px}.select2-container{z-index:50000000!important}.customize-control-nscu-accordion .customize-control-title{align-items:center;cursor:pointer;display:flex;gap:5px}.customize-control-nscu-accordion .accordion-icon-toggle{padding-top:5px;transition:transform .3s ease-in-out}.customize-control-nscu-accordion .acc-active .accordion-icon-toggle{transform:rotate(-45deg)}.customize-control-nscu-accordion .customize-control-description{display:none;font-style:normal}.customize-control-nscu-buttonset input[type=radio]{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px}.customize-control-nscu-buttonset .buttonset{display:inline-flex;flex-direction:row;flex-wrap:nowrap}.customize-control-nscu-buttonset .buttonset .switch-label{background-color:#fff;border:1px solid #7e8993;display:inline-block;margin:0 0 0 -1px;padding:5px 10px;z-index:1}.customize-control-nscu-buttonset .buttonset .switch-label:first-of-type{border-radius:3px 0 0 3px}.customize-control-nscu-buttonset .buttonset .switch-label:last-child{border-radius:0 3px 3px 0}.customize-control-nscu-buttonset .buttonset .switch-input:checked+.switch-label{background:#008dd4;border-color:#7e8993;color:#fff;z-index:2}.customize-control-nscu-checkbox .field-wrapper{align-items:flex-start;display:flex;gap:8px}.customize-control-nscu-checkbox input[type=checkbox]{margin:0}.flatpickr-calendar.open{z-index:50000000!important}.customize-control-nscu-dimension .dimension-wrapper{position:relative}.customize-control-nscu-dimension .dimension-field{display:flex;gap:5px;justify-content:center}.customize-control-nscu-dimension .dimension-number{width:55px!important}.customize-control-nscu-dimension .dimension-unit{width:60px}.customize-control-nscu-dimension .dimension-reset{display:none}.customize-control-nscu-dimension .dimension-container:hover .dimension-reset{align-items:center;background-color:transparent;border-radius:50%;border-width:0;bottom:28px;color:#50575e;cursor:pointer;display:flex;height:16px;justify-content:center;opacity:1;padding:0;position:absolute;right:0;transition:all .3s;width:16px;z-index:3}.customize-control-nscu-dimension .dimension-container:hover .dimension-reset:hover i{color:#008dd4}.customize-control-nscu-dimension .dimension-container:hover .dimension-reset i{font-size:12px}.customize-control-nscu-divider hr{border:0;border-bottom:1px solid #f8f8f8;border-top:1px solid #ccc}.customize-control-nscu-editor textarea{height:120px;width:100%}.customize-control-nscu-heading{background-color:#fff;left:-24px;margin-top:12px;padding:10px 24px;position:relative;width:calc(100% + 48px)}.customize-control-nscu-heading:first-of-type{margin-top:0}.customize-control-nscu-heading .customize-control-title{font-size:15px}.control-section .customize-control-nscu-heading:nth-child(2){margin-top:0}.customize-control-nscu-media .field-input-wrap{align-items:center;display:flex;gap:5px}.customize-control-nscu-media .media-button{background-color:#008dd4;border:1px solid #008dd4;border-radius:4px;color:#fff;opacity:.9;padding:4px;text-decoration:none;transition:.2s}.customize-control-nscu-media .media-button:active,.customize-control-nscu-media .media-button:focus,.customize-control-nscu-media .media-button:hover{opacity:1}.customize-control-nscu-media .media-button-danger{background-color:#b73b27;border-color:#b73b27}.customize-control-nscu-media .preview-wrap{display:none}.customize-control-nscu-media .preview-wrap.preview-on{display:block;margin-top:10px}.customize-control-nscu-media .hide{display:none}.customize-control-nscu-message .customize-control-description{border:0;border-left:5px;border-color:#ccc;border-style:solid;color:#666;font-style:normal;padding:6px 6px 6px 12px;width:90%}.customize-control-nscu-radio ul{display:flex;flex-direction:column;flex-wrap:wrap;gap:10px}.customize-control-nscu-radio ul.layout-horizontal{flex-direction:row;gap:12px}.customize-control-nscu-radio ul li{margin-bottom:0}.customize-control-nscu-radio-image input[type=radio]{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px}.customize-control-nscu-radio-image .radio-images{grid-gap:5px;display:grid;gap:5px}.customize-control-nscu-radio-image .radio-images.columns-2{grid-template-columns:repeat(2,1fr)}.customize-control-nscu-radio-image .radio-images.columns-3{grid-template-columns:repeat(3,1fr)}.customize-control-nscu-radio-image .radio-images.columns-4{grid-template-columns:repeat(4,1fr)}.customize-control-nscu-radio-image .radio-images.columns-5{grid-template-columns:repeat(5,1fr)}.customize-control-nscu-radio-image .radio-images.columns-6{grid-template-columns:repeat(6,1fr)}.customize-control-nscu-radio-image img{border:3px solid transparent;box-sizing:border-box;height:auto;max-width:100%;padding:1px}.customize-control-nscu-radio-image img:focus,.customize-control-nscu-radio-image img:hover{border-color:#ccc}.customize-control-nscu-radio-image input:checked+img{border-color:#008dd4}.customize-control-nscu-range .range-wrapper{position:relative}.customize-control-nscu-range .range-field{display:flex;gap:5px;justify-content:center}.customize-control-nscu-range .range-value-holder{align-items:center;display:flex;gap:5px;justify-content:center}.customize-control-nscu-range .range-value-holder .range-number{width:45px}.customize-control-nscu-range .range-reset{display:none}.customize-control-nscu-range .range-container:hover .range-reset{align-items:center;background-color:transparent;border-radius:50%;border-width:0;bottom:28px;color:#50575e;cursor:pointer;display:flex;height:16px;justify-content:center;opacity:1;padding:0;position:absolute;right:0;transition:all .3s;width:16px;z-index:3}.customize-control-nscu-range .range-container:hover .range-reset:hover i{color:#008dd4}.customize-control-nscu-range .range-container:hover .range-reset i{font-size:12px}.customize-control-nscu-sortable ul.ui-sortable{cursor:default}.customize-control-nscu-sortable ul.ui-sortable .dashicons-visibility{cursor:pointer}.customize-control-nscu-sortable ul.ui-sortable li{background:#fff;border:1px solid #333;cursor:move;padding:5px 10px}.customize-control-nscu-sortable ul.ui-sortable li .dashicons.dashicons-menu{float:right}.customize-control-nscu-sortable ul.ui-sortable li .dashicons.visibility{margin-right:10px}.customize-control-nscu-sortable ul.ui-sortable li.invisible{border:1px dashed #aaa;color:#aaa}.customize-control-nscu-sortable ul.ui-sortable li.invisible .dashicons.visibility{color:#aaa}.customize-control-nscu-switcher .field-wrapper{display:flex;gap:15px;justify-content:space-between}.customize-control-nscu-switcher .field-holder{display:inline-block;height:24px;margin-top:5px;min-width:50px;position:relative}.customize-control-nscu-switcher .field-holder input{display:none}.customize-control-nscu-switcher .field-holder .field-slider{background-color:#ccc;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.4s}.customize-control-nscu-switcher .field-holder .field-slider:before{background-color:#fff;bottom:4px;content:"";height:16px;left:4px;position:absolute;transition:.4s;width:16px}.customize-control-nscu-switcher .field-holder input:checked+.field-slider{background-color:#008dd4}.customize-control-nscu-switcher .field-holder input:focus+.field-slider{box-shadow:0 0 1px #2271b1}.customize-control-nscu-switcher .field-holder input:checked+.field-slider:before{transform:translateX(26px)}.customize-control-nscu-switcher .field-holder .field-slider.round{border-radius:34px}.customize-control-nscu-switcher .field-holder .field-slider.round:before{border-radius:50%}.customize-control-nscu-toggle .field-wrapper{display:flex;gap:15px;justify-content:space-between}.customize-control-nscu-toggle .field-holder{display:inline-block;height:24px;margin-top:5px;min-width:50px;position:relative}.customize-control-nscu-toggle .field-holder input{display:none}.customize-control-nscu-toggle .field-holder .field-slider{background-color:#ccc;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.4s}.customize-control-nscu-toggle .field-holder .field-slider:before{background-color:#fff;bottom:4px;content:"";height:16px;left:4px;position:absolute;transition:.4s;width:16px}.customize-control-nscu-toggle .field-holder input:checked+.field-slider{background-color:#008dd4}.customize-control-nscu-toggle .field-holder input:focus+.field-slider{box-shadow:0 0 1px #2271b1}.customize-control-nscu-toggle .field-holder input:checked+.field-slider:before{transform:translateX(26px)}.customize-control-nscu-toggle .field-holder .field-slider.round{border-radius:34px}.customize-control-nscu-toggle .field-holder .field-slider.round:before{border-radius:50%}.customize-control-nscu-textarea textarea{height:120px;width:100%}.control-section-nscu-button .accordion-section-title{align-items:center;display:flex;gap:5px;justify-content:space-between;padding-right:14px!important;padding:7px 0 7px 14px}.control-section-nscu-button .accordion-section-title.no-button{padding-right:30px!important;padding:10px 10px 11px 14px}#customize-controls .control-section-nscu-header{background-color:#eee;text-align:center}#customize-controls .control-section-nscu-header .accordion-section-title{background-color:#eee;font-size:15px}#customize-controls .control-section-nscu-header .accordion-section-title:focus,#customize-controls .control-section-nscu-header .accordion-section-title:hover{background-color:#eee}#customize-controls .control-section-nscu-upsell{background-color:#344860}#customize-controls .control-section-nscu-upsell .accordion-section-title{background-color:#344860;border-color:#344860;-webkit-user-select:none;user-select:none}#customize-controls .control-section-nscu-upsell .accordion-section-title:focus,#customize-controls .control-section-nscu-upsell .accordion-section-title:hover{background-color:#344860;border-color:#344860}#customize-controls .control-section-nscu-upsell .accordion-section-title a{color:#fff;display:block;text-decoration:none;width:100%}
|
vendor/ernilambar/ns-customizer-utilities/assets/controls.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
!function(){var e={
|
2 |
/*!
|
3 |
* Select2 4.1.0-rc.0
|
4 |
* https://select2.github.io
|
5 |
*
|
6 |
* Released under the MIT license
|
7 |
* https://github.com/select2/select2/blob/master/LICENSE.md
|
8 |
-
*/o=[n(311)],i=function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var n,i,o;return t&&t.requirejs||(t?i=t:t={},function(e){var t,r,a,s,l={},c={},u={},d={},p=Object.prototype.hasOwnProperty,h=[].slice,f=/\.js$/;function g(e,t){return p.call(e,t)}function m(e,t){var n,i,o,r,a,s,l,c,d,p,h,g=t&&t.split("/"),m=u.map,v=m&&m["*"]||{};if(e){for(a=(e=e.split("/")).length-1,u.nodeIdCompat&&f.test(e[a])&&(e[a]=e[a].replace(f,"")),"."===e[0].charAt(0)&&g&&(e=g.slice(0,g.length-1).concat(e)),d=0;d<e.length;d++)if("."===(h=e[d]))e.splice(d,1),d-=1;else if(".."===h){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((g||v)&&m){for(d=(n=e.split("/")).length;d>0;d-=1){if(i=n.slice(0,d).join("/"),g)for(p=g.length;p>0;p-=1)if((o=m[g.slice(0,p).join("/")])&&(o=o[i])){r=o,s=d;break}if(r)break;!l&&v&&v[i]&&(l=v[i],c=d)}!r&&l&&(r=l,s=c),r&&(n.splice(0,s,r),e=n.join("/"))}return e}function v(t,n){return function(){var i=h.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),r.apply(e,i.concat([t,n]))}}function y(e){return function(t){return m(t,e)}}function b(e){return function(t){l[e]=t}}function w(n){if(g(c,n)){var i=c[n];delete c[n],d[n]=!0,t.apply(e,i)}if(!g(l,n)&&!g(d,n))throw new Error("No "+n);return l[n]}function _(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function D(e){return e?_(e):[]}function C(e){return function(){return u&&u.config&&u.config[e]||{}}}a=function(e,t){var n,i=_(e),o=i[0],r=t[1];return e=i[1],o&&(n=w(o=m(o,r))),o?e=n&&n.normalize?n.normalize(e,y(r)):m(e,r):(o=(i=_(e=m(e,r)))[0],e=i[1],o&&(n=w(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},s={require:function(e){return v(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:C(e)}}},t=function(t,n,i,o){var r,u,p,h,f,m,y,_=[],C=typeof i;if(m=D(o=o||t),"undefined"===C||"function"===C){for(n=!n.length&&i.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if("require"===(u=(h=a(n[f],m)).f))_[f]=s.require(t);else if("exports"===u)_[f]=s.exports(t),y=!0;else if("module"===u)r=_[f]=s.module(t);else if(g(l,u)||g(c,u)||g(d,u))_[f]=w(u);else{if(!h.p)throw new Error(t+" missing "+u);h.p.load(h.n,v(o,!0),b(u),{}),_[f]=l[u]}p=i?i.apply(l[t],_):void 0,t&&(r&&r.exports!==e&&r.exports!==l[t]?l[t]=r.exports:p===e&&y||(l[t]=p))}else t&&(l[t]=i)},n=i=r=function(n,i,o,l,c){if("string"==typeof n)return s[n]?s[n](i):w(a(n,D(i)).f);if(!n.splice){if((u=n).deps&&r(u.deps,u.callback),!i)return;i.splice?(n=i,i=o,o=null):n=e}return i=i||function(){},"function"==typeof o&&(o=l,l=c),l?t(e,n,i,o):setTimeout((function(){t(e,n,i,o)}),4),r},r.config=function(e){return r(e)},n._defined=l,(o=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),g(l,e)||g(c,e)||(c[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=n,t.require=i,t.define=o),t.define("almond",(function(){})),t.define("jquery",[],(function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t})),t.define("select2/utils",["jquery"],(function(e){var t={};function n(e){var t=e.prototype,n=[];for(var i in t)"function"==typeof t[i]&&"constructor"!==i&&n.push(i);return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},t.Decorate=function(e,t){var i=n(t),o=n(e);function r(){var n=Array.prototype.unshift,i=t.prototype.constructor.length,o=e.prototype.constructor;i>0&&(n.call(arguments,e.prototype.constructor),o=t.prototype.constructor),o.apply(this,arguments)}function a(){this.constructor=r}t.displayName=e.displayName,r.prototype=new a;for(var s=0;s<o.length;s++){var l=o[s];r.prototype[l]=e.prototype[l]}for(var c=function(e){var n=function(){};e in r.prototype&&(n=r.prototype[e]);var i=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,n),i.apply(this,arguments)}},u=0;u<i.length;u++){var d=i[u];r.prototype[d]=c(d)}return r};var i=function(){this.listeners={}};i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},t.Observable=i,t.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var r=n[o];(r=r.substring(0,1).toLowerCase()+r.substring(1))in i||(i[r]={}),o==n.length-1&&(i[r]=e[t]),i=i[r]}delete e[t]}}return e},t.hasScroll=function(t,n){var i=e(n),o=n.style.overflowX,r=n.style.overflowY;return(o!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===o||"scroll"===r||i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth)},t.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.__cache={};var o=0;return t.GetUniqueElementId=function(e){var n=e.getAttribute("data-select2-id");return null!=n||(n=e.id?"select2-data-"+e.id:"select2-data-"+(++o).toString()+"-"+t.generateChars(4),e.setAttribute("data-select2-id",n)),n},t.StoreData=function(e,n,i){var o=t.GetUniqueElementId(e);t.__cache[o]||(t.__cache[o]={}),t.__cache[o][n]=i},t.GetData=function(n,i){var o=t.GetUniqueElementId(n);return i?t.__cache[o]&&null!=t.__cache[o][i]?t.__cache[o][i]:e(n).data(i):t.__cache[o]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t.copyNonInternalCssClasses=function(e,t){var n=e.getAttribute("class").trim().split(/\s+/);n=n.filter((function(e){return 0===e.indexOf("select2-")}));var i=t.getAttribute("class").trim().split(/\s+/);i=i.filter((function(e){return 0!==e.indexOf("select2-")}));var o=n.concat(i);e.setAttribute("class",o.join(" "))},t})),t.define("select2/results",["jquery","./utils"],(function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),o=this.options.get("translations").get(t.message);i.append(n(o(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],o=this.option(i);t.push(o)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current((function(i){var o=i.map((function(e){return e.id.toString()}));n.$results.find(".select2-results__option--selectable").each((function(){var n=e(this),i=t.GetData(this,"data"),r=""+i.id;null!=i.element&&i.element.selected||null==i.element&&o.indexOf(r)>-1?(this.classList.add("select2-results__option--selected"),n.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),n.attr("aria-selected","false"))}))}))},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.classList.add("select2-results__option"),i.classList.add("select2-results__option--selectable");var o={role:"option"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var a in(null!=n.element&&r.call(n.element,":disabled")||null==n.element&&n.disabled)&&(o["aria-disabled"]="true",i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--disabled")),null==n.id&&i.classList.remove("select2-results__option--selectable"),null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(o.role="group",o["aria-label"]=n.text,i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--group")),o){var s=o[a];i.setAttribute(a,s)}if(n.children){var l=e(i),c=document.createElement("strong");c.className="select2-results__group",this.template(n,c);for(var u=[],d=0;d<n.children.length;d++){var p=n.children[d],h=this.option(p);u.push(h)}var f=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});f.append(u),l.append(c),l.append(f)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var o=this,r=n.id+"-results";this.$results.attr("id",r),n.on("results:all",(function(e){o.clear(),o.append(e.data),n.isOpen()&&(o.setClasses(),o.highlightFirstItem())})),n.on("results:append",(function(e){o.append(e.data),n.isOpen()&&o.setClasses()})),n.on("query",(function(e){o.hideMessages(),o.showLoading(e)})),n.on("select",(function(){n.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())})),n.on("open",(function(){o.$results.attr("aria-expanded","true"),o.$results.attr("aria-hidden","false"),o.setClasses(),o.ensureHighlightVisible()})),n.on("close",(function(){o.$results.attr("aria-expanded","false"),o.$results.attr("aria-hidden","true"),o.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var e=o.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),n.on("results:select",(function(){var e=o.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");e.hasClass("select2-results__option--selected")?o.trigger("close",{}):o.trigger("select",{data:n})}})),n.on("results:previous",(function(){var e=o.getHighlightedResults(),t=o.$results.find(".select2-results__option--selectable"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var a=o.$results.offset().top,s=r.offset().top,l=o.$results.scrollTop()+(s-a);0===i?o.$results.scrollTop(0):s-a<0&&o.$results.scrollTop(l)}})),n.on("results:next",(function(){var e=o.getHighlightedResults(),t=o.$results.find(".select2-results__option--selectable"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=o.$results.offset().top+o.$results.outerHeight(!1),a=i.offset().top+i.outerHeight(!1),s=o.$results.scrollTop()+a-r;0===n?o.$results.scrollTop(0):a>r&&o.$results.scrollTop(s)}})),n.on("results:focus",(function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")})),n.on("results:message",(function(e){o.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=o.$results.scrollTop(),n=o.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&n<=o.$results.height();i?(o.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(o.$results.scrollTop(o.$results.get(0).scrollHeight-o.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option--selectable",(function(n){var i=e(this),r=t.GetData(this,"data");i.hasClass("select2-results__option--selected")?o.options.get("multiple")?o.trigger("unselect",{originalEvent:n,data:r}):o.trigger("close",{}):o.trigger("select",{originalEvent:n,data:r})})),this.$results.on("mouseenter",".select2-results__option--selectable",(function(n){var i=t.GetData(this,"data");o.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),o.trigger("results:focus",{data:i,element:e(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(".select2-results__option--selectable").index(e),n=this.$results.offset().top,i=e.offset().top,o=this.$results.scrollTop()+(i-n),r=i-n;o-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),r=i(t,n);null==r?n.style.display="none":"string"==typeof r?n.innerHTML=o(r):e(n).append(r)},n})),t.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),t.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},i.prototype.bind=function(e,t){var i=this,o=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){i.trigger("focus",e)})),this.$selection.on("blur",(function(e){i._handleBlur(e)})),this.$selection.on("keydown",(function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){i.update(e.data)})),e.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",o),i._attachCloseHandler(e)})),e.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(e)})),e.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")}))},i.prototype._handleBlur=function(t){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)}),1)},i.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,(function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=i[0]&&t.GetData(this,"element").select2("close")}))}))},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i})),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.attr("aria-controls",i),this.$selection.on("mousedown",(function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||n.$selection.trigger("focus")}))},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var o=t.title||t.text;o?n.attr("title",o):n.removeAttr("title")}else this.clear()},o})),t.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,o){var r=this;i.__super__.bind.apply(this,arguments);var a=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",a),this.$selection.on("click",(function(e){r.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){if(!r.isDisabled()){var i=e(this).parent(),o=n.GetData(i[0],"data");r.trigger("unselect",{originalEvent:t,data:o})}})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(e){r.isDisabled()||e.stopPropagation()}))},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">×</span></button><span class="select2-selection__choice__display"></span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",o=0;o<e.length;o++){var r=e[o],a=this.selectionContainer(),s=this.display(r,a),l=i+n.generateChars(4)+"-";r.id?l+=r.id:l+=n.generateChars(4),a.find(".select2-selection__choice__display").append(s).attr("id",l);var c=r.title||r.text;c&&a.attr("title",c);var u=this.options.get("translations").get("removeItem"),d=a.find(".select2-selection__choice__remove");d.attr("title",u()),d.attr("aria-label",u()),d.attr("aria-describedby",l),n.StoreData(a[0],"data",r),t.push(a)}this.$selection.find(".select2-selection__rendered").append(t)}},i})),t.define("select2/selection/placeholder",[],(function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice");var i=t.title||t.text||n.text();return this.$selection.find(".select2-selection__rendered").attr("title",i),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e})),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(e,t,n){function i(){}return i.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(e){i._handleClear(e)})),t.on("keypress",(function(e){i._handleKeyboardClear(e,t)}))},i.prototype._handleClear=function(e,t){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var o=n.GetData(i[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var a={data:o};if(this.trigger("clear",a),a.prevented)this.$element.val(r);else{for(var s=0;s<o.length;s++)if(a={data:o[s]},this.trigger("unselect",a),a.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},i.prototype.update=function(t,i){if(t.call(this,i),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var o=this.$selection.find(".select2-selection__rendered").attr("id"),r=this.options.get("translations").get("removeAllItems"),a=e('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">×</span></button>');a.attr("title",r()),a.attr("aria-label",r()),a.attr("aria-describedby",o),n.StoreData(a[0],"data",i),this.$selection.prepend(a),this.$selection[0].classList.add("select2-selection--clearable")}},i})),t.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=this.options.get("translations").get("search"),i=e('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=i,this.$search=i.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n());var o=t.call(this);return this._transferTabIndex(),o.append(this.$searchContainer),o},i.prototype.bind=function(e,i,o){var r=this,a=i.id+"-results",s=i.id+"-container";e.call(this,i,o),r.$search.attr("aria-describedby",s),i.on("open",(function(){r.$search.attr("aria-controls",a),r.$search.trigger("focus")})),i.on("close",(function(){r.$search.val(""),r.resizeSearch(),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")})),i.on("enable",(function(){r.$search.prop("disabled",!1),r._transferTabIndex()})),i.on("disable",(function(){r.$search.prop("disabled",!0)})),i.on("focus",(function(e){r.$search.trigger("focus")})),i.on("results:focus",(function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){r.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){r._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===r.$search.val()){var i=r.$selection.find(".select2-selection__choice").last();if(i.length>0){var o=t.GetData(i[0],"data");r.searchRemoveChoice(o),e.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(e){r.$search.val()&&e.stopPropagation()}));var l=document.documentMode,c=l&&l<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){c?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(c&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&r.handleSearch(e)}}))},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},i})),t.define("select2/selection/selectionCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("selectionCssClass")||"";return-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(i),n},t})),t.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,n,i){var o=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",(function(t,n){if(-1!==r.indexOf(t)){n=n||{};var i=e.Event("select2:"+t,{params:n});o.$element.trigger(i),-1!==a.indexOf(t)&&(n.prevented=i.isDefaultPrevented())}}))},t})),t.define("select2/translation",["jquery","require"],(function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n})),t.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),t.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t})),t.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(e){return t.item(n(e))})))},i.prototype.select=function(e){var t=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(n){var i=[];(e=[e]).push.apply(e,n);for(var o=0;o<e.length;o++){var r=e[o].id;-1===i.indexOf(r)&&i.push(r)}t.$element.val(i),t.$element.trigger("input").trigger("change")}));else{var n=e.id;this.$element.val(n),this.$element.trigger("input").trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(n){for(var i=[],o=0;o<n.length;o++){var r=n[o].id;r!==e.id&&-1===i.indexOf(r)&&i.push(r)}t.$element.val(i),t.$element.trigger("input").trigger("change")}))}},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",(function(e){n.select(e.data)})),e.on("unselect",(function(e){n.unselect(e.data)}))},i.prototype.destroy=function(){this.$element.find("*").each((function(){t.RemoveData(this)}))},i.prototype.query=function(e,t){var i=[],o=this;this.$element.children().each((function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var t=n(this),r=o.item(t),a=o.matches(e,r);null!==a&&i.push(a)}})),t({results:i})},i.prototype.addOptions=function(e){this.$element.append(e)},i.prototype.option=function(e){var i;e.children?(i=document.createElement("optgroup")).label=e.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=e.text:i.innerText=e.text,void 0!==e.id&&(i.value=e.id),e.disabled&&(i.disabled=!0),e.selected&&(i.selected=!0),e.title&&(i.title=e.title);var o=this._normalizeItem(e);return o.element=i,t.StoreData(i,"data",o),n(i)},i.prototype.item=function(e){var i={};if(null!=(i=t.GetData(e[0],"data")))return i;var o=e[0];if("option"===o.tagName.toLowerCase())i={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===o.tagName.toLowerCase()){i={text:e.prop("label"),children:[],title:e.prop("title")};for(var r=e.children("option"),a=[],s=0;s<r.length;s++){var l=n(r[s]),c=this.item(l);a.push(c)}i.children=a}return(i=this._normalizeItem(i)).element=e[0],t.StoreData(e[0],"data",i),i},i.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});var t={selected:!1,disabled:!1};return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},t,e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i})),t.define("select2/data/array",["./select","../utils","jquery"],(function(e,t,n){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,n){return n.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){var t=this,i=this.$element.find("option"),o=i.map((function(){return t.item(n(this)).id})).get(),r=[];function a(e){return function(){return n(this).val()==e.id}}for(var s=0;s<e.length;s++){var l=this._normalizeItem(e[s]);if(o.indexOf(l.id)>=0){var c=i.filter(a(l)),u=this.item(c),d=n.extend(!0,{},l,u),p=this.option(d);c.replaceWith(p)}else{var h=this.option(l);if(l.children){var f=this.convertToOptions(l.children);h.append(f)}r.push(h)}}return r},i})),t.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var o=n.ajax(e);return o.then(t),o.fail(i),o}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){var i=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var o=n.extend({type:"GET"},this.ajaxOptions);function r(){var n=o.transport(o,(function(n){var o=i.processResults(n,e);i.options.get("debug")&&window.console&&console.error&&(o&&o.results&&Array.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(o)}),(function(){(!("status"in n)||0!==n.status&&"0"!==n.status)&&i.trigger("results:message",{message:"errorLoading"})}));i._request=n}"function"==typeof o.url&&(o.url=o.url.call(this.$element,e)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},i})),t.define("select2/data/tags",["jquery"],(function(e){function t(e,t,n){var i=n.get("tags"),o=n.get("createTag");void 0!==o&&(this.createTag=o);var r=n.get("insertTag");if(void 0!==r&&(this.insertTag=r),e.call(this,t,n),Array.isArray(i))for(var a=0;a<i.length;a++){var s=i[a],l=this._normalizeItem(s),c=this.option(l);this.$element.append(c)}}return t.prototype.query=function(e,t,n){var i=this;function o(e,r){for(var a=e.results,s=0;s<a.length;s++){var l=a[s],c=null!=l.children&&!o({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!r&&(e.data=a,void n(e))}if(r)return!0;var u=i.createTag(t);if(null!=u){var d=i.option(u);d.attr("data-select2-tag","true"),i.addOptions([d]),i.insertTag(a,u)}e.results=a,n(e)}this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,o):e.call(this,t,n)},t.prototype.createTag=function(e,t){if(null==t.term)return null;var n=t.term.trim();return""===n?null:{id:n,text:n}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each((function(){this.selected||e(this).remove()}))},t})),t.define("select2/data/tokenizer",["jquery"],(function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){var o=this;function r(t){var n=o._normalizeItem(t);if(!o.$element.find("option").filter((function(){return e(this).val()===n.id})).length){var i=o.option(n);i.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([i])}a(n)}function a(e){o.trigger("select",{data:e})}n.term=n.term||"";var s=this.tokenizer(n,this.options,r);s.term!==n.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.trigger("focus")),n.term=s.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,o){for(var r=i.get("tokenSeparators")||[],a=n.term,s=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};s<a.length;){var c=a[s];if(-1!==r.indexOf(c)){var u=a.substr(0,s),d=l(e.extend({},n,{term:u}));null!=d?(o(d),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},t})),t.define("select2/data/minimumInputLength",[],(function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumInputLength",[],(function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(){i._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected((function(){e.call(i,t,n)}))},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current((function(e){var i=null!=e?e.length:0;n.maximumSelectionLength>0&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()}))},e})),t.define("select2/dropdown",["jquery","./utils"],(function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),t.define("select2/dropdown/search",["jquery"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("translations").get("search"),o=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=o,this.$search=o.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i()),n.prepend(o),n},t.prototype.bind=function(t,n,i){var o=this,r=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",(function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){o.handleSearch(e)})),n.on("open",(function(){o.$search.attr("tabindex",0),o.$search.attr("aria-controls",r),o.$search.trigger("focus"),window.setTimeout((function(){o.$search.trigger("focus")}),0)})),n.on("close",(function(){o.$search.attr("tabindex",-1),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.val(""),o.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||o.$search.trigger("focus")})),n.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(o.showSearch(e)?o.$searchContainer[0].classList.remove("select2-search--hide"):o.$searchContainer[0].classList.add("select2-search--hide"))})),n.on("results:focus",(function(e){e.data._resultId?o.$search.attr("aria-activedescendant",e.data._resultId):o.$search.removeAttr("aria-activedescendant")}))},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t})),t.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e})),t.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",(function(e){i.lastParams=e,i.loading=!0})),t.on("query:append",(function(e){i.lastParams=e,i.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore()},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t})),t.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function n(t,n,i){this.$dropdownParent=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)})),t.on("close",(function(){i._hideDropdown(),i._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var o=this,r="scroll.select2."+i.id,a="resize.select2."+i.id,s="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),l.on(r,(function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)})),e(window).on(r+" "+a+" "+s,(function(e){o._positionDropdown(),o._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,i){var o="scroll.select2."+i.id,r="resize.select2."+i.id,a="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(o),e(window).off(o+" "+r+" "+a)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown[0].classList.contains("select2-dropdown--above"),i=this.$dropdown[0].classList.contains("select2-dropdown--below"),o=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=r.top,a.bottom=r.top+a.height;var s={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},c=l.top<r.top-s.height,u=l.bottom>r.bottom+s.height,d={left:r.left,top:a.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(e.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,n||i||(o="below"),u||!c||n?!c&&u&&n&&(o="below"):o="above",("above"==o||n&&"below"!==o)&&(d.top=a.top-h.top-s.height),null!=o&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+o),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+o)),this.$dropdownContainer.css(d)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),t.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(t){for(var n=0,i=0;i<t.length;i++){var o=t[i];o.children?n+=e(o.children):n++}return n}function t(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t})),t.define("select2/dropdown/selectOnClose",["../utils"],(function(e){function t(){}return t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",(function(e){i._handleSelectOnClose(e)}))},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var o=this.getHighlightedResults();if(!(o.length<1)){var r=e.GetData(o[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},t})),t.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(e){i._selectTriggered(e)})),t.on("unselect",(function(e){i._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e})),t.define("select2/dropdown/dropdownCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("dropdownCssClass")||"";return-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(i),n},t})),t.define("select2/dropdown/tagsSearchHighlight",["../utils"],(function(e){function t(){}return t.prototype.highlightFirstItem=function(t){var n=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(n.length>0){var i=n.first(),o=e.GetData(i[0],"data").element;if(o&&o.getAttribute&&"true"===o.getAttribute("data-select2-tag"))return void i.trigger("mouseenter")}t.call(this)},t})),t.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}})),t.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],(function(e,t,n,i,o,r,a,s,l,c,u,d,p,h,f,g,m,v,y,b,w,_,D,C,x,M,E,$,k,A,S){function T(){this.reset()}return T.prototype.apply=function(u){if(null==(u=e.extend(!0,{},this.defaults,u)).dataAdapter&&(null!=u.ajax?u.dataAdapter=f:null!=u.data?u.dataAdapter=h:u.dataAdapter=p,u.minimumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),u.maximumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),u.maximumSelectionLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,b)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,g)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,m))),null==u.resultsAdapter&&(u.resultsAdapter=t,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,C)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,D)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,E)),u.tags&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,A))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=w;else{var d=c.Decorate(w,_);u.dropdownAdapter=d}0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,M)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,$)),null!=u.dropdownCssClass&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,k)),u.dropdownAdapter=c.Decorate(u.dropdownAdapter,x)}null==u.selectionAdapter&&(u.multiple?u.selectionAdapter=i:u.selectionAdapter=n,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,o)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,r)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),null!=u.selectionCssClass&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),u.selectionAdapter=c.Decorate(u.selectionAdapter,l)),u.language=this._resolveLanguage(u.language),u.language.push("en");for(var S=[],T=0;T<u.language.length;T++){var O=u.language[T];-1===S.indexOf(O)&&S.push(O)}return u.language=S,u.translations=this._processTranslations(u.language,u.debug),u},T.prototype.reset=function(){function t(e){function t(e){return d[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function n(i,o){if(null==i.term||""===i.term.trim())return o;if(o.children&&o.children.length>0){for(var r=e.extend(!0,{},o),a=o.children.length-1;a>=0;a--)null==n(i,o.children[a])&&r.children.splice(a,1);return r.children.length>0?r:n(i,r)}var s=t(o.text).toUpperCase(),l=t(i.term).toUpperCase();return s.indexOf(l)>-1?o:null}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},T.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,o=t.prop("lang"),r=t.closest("[lang]").prop("lang"),a=Array.prototype.concat.call(this._resolveLanguage(o),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(r));return e.language=a,e},T.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=Array.isArray(t)?t:[t];for(var i=[],o=0;o<n.length;o++)if(i.push(n[o]),"string"==typeof n[o]&&n[o].indexOf("-")>0){var r=n[o].split("-")[0];i.push(r)}return i},T.prototype._processTranslations=function(t,n){for(var i=new u,o=0;o<t.length;o++){var r=new u,a=t[o];if("string"==typeof a)try{r=u.loadPath(a)}catch(e){try{a=this.defaults.amdLanguageBase+a,r=u.loadPath(a)}catch(e){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+a+'" could not be automatically loaded. A fallback will be used instead.')}}else r=e.isPlainObject(a)?new u(a):a;i.extend(r)}return i},T.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var o=c._convertData(i);e.extend(!0,this.defaults,o)},new T})),t.define("select2/options",["jquery","./defaults","./utils"],(function(e,t,n){function i(e,n){this.options=e,null!=n&&this.fromElement(n),null!=n&&(this.options=t.applyFromElement(this.options,n)),this.options=t.apply(this.options)}return i.prototype.fromElement=function(t){var i=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.autocomplete&&t.prop("autocomplete")&&(this.options.autocomplete=t.prop("autocomplete")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),n.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.StoreData(t[0],"data",n.GetData(t[0],"select2Tags")),n.StoreData(t[0],"tags",!0)),n.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",n.GetData(t[0],"ajaxUrl")),n.StoreData(t[0],"ajax-Url",n.GetData(t[0],"ajaxUrl")));var o={};function r(e,t){return t.toUpperCase()}for(var a=0;a<t[0].attributes.length;a++){var s=t[0].attributes[a].name,l="data-";if(s.substr(0,l.length)==l){var c=s.substring(l.length),u=n.GetData(t[0],c);o[c.replace(/-([a-z])/g,r)]=u}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(o=e.extend(!0,{},t[0].dataset,o));var d=e.extend(!0,{},n.GetData(t[0]),o);for(var p in d=n._convertData(d))i.indexOf(p)>-1||(e.isPlainObject(this.options[p])?e.extend(this.options[p],d[p]):this.options[p]=d[p]);return this},i.prototype.get=function(e){return this.options[e]},i.prototype.set=function(e,t){this.options[e]=t},i})),t.define("select2/core",["jquery","./options","./utils","./keys"],(function(e,t,n,i){var o=function(e,i){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),o.__super__.constructor.call(this);var r=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",r),e.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(e,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){d.trigger("selection:update",{data:e})})),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var o=e.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var a=r.split(";"),s=0,l=a.length;s<l;s+=1){var c=a[s].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},o.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this._observer=new window.MutationObserver((function(t){e._syncA(),e._syncS(t)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,n){e.trigger(t,n)}))},o.prototype._registerSelectionEvents=function(){var e=this,t=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(n,i){-1===t.indexOf(n)&&e.trigger(n,i)}))},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,n){e.trigger(t,n)}))},o.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,n){e.trigger(t,n)}))},o.prototype._registerEvents=function(){var e=this;this.on("open",(function(){e.$container[0].classList.add("select2-container--open")})),this.on("close",(function(){e.$container[0].classList.remove("select2-container--open")})),this.on("enable",(function(){e.$container[0].classList.remove("select2-container--disabled")})),this.on("disable",(function(){e.$container[0].classList.add("select2-container--disabled")})),this.on("blur",(function(){e.$container[0].classList.remove("select2-container--focus")})),this.on("query",(function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,(function(n){e.trigger("results:all",{data:n,query:t})}))})),this.on("query:append",(function(t){this.dataAdapter.query(t,(function(n){e.trigger("results:append",{data:n,query:t})}))})),this.on("keypress",(function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.UP&&t.altKey?(e.close(t),t.preventDefault()):n===i.ENTER||n===i.TAB?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())}))},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},o.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&e.addedNodes.length>0){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&e.removedNodes.length>0)return!0;if(Array.isArray(e))return e.some((function(e){return t._isChangeMutation(e)}))}return!1},o.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),n=this;t&&this.dataAdapter.current((function(e){n.trigger("selection:update",{data:e})}))},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var r=i[e],a={prevented:!1,name:e,args:t};if(n.call(this,r,a),a.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},o.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},o.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},o.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},o.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current((function(t){e=t})),e},o.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];Array.isArray(t)&&(t=t.map((function(e){return e.toString()}))),this.$element.val(t).trigger("input").trigger("change")},o.prototype.destroy=function(){n.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},o})),t.define("jquery-mousewheel",["jquery"],(function(e){return e})),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,n,i,o){if(null==e.fn.select2){var r=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var i=e.extend(!0,{},t);new n(e(this),i)})),this;if("string"==typeof t){var i,a=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=o.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,a)})),r.indexOf(t)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n})),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n},void 0===(r="function"==typeof i?i.apply(t,o):i)||(e.exports=r)},311:function(e){"use strict";e.exports=jQuery}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}!function(){"use strict";n(736);var e=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],t={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},i={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},o=i,r=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},a=function(e){return!0===e?1:0};function s(e,t){var n;return function(){var i=this,o=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(i,o)}),t)}}var l=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function u(e,t,n){var i=window.document.createElement(e);return t=t||"",n=n||"",i.className=t,void 0!==n&&(i.textContent=n),i}function d(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function p(e,t){return t(e)?e:e.parentNode?p(e.parentNode,t):void 0}function h(e,t){var n=u("div","numInputWrapper"),i=u("input","numInput "+e),o=u("span","arrowUp"),r=u("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==t)for(var a in t)i.setAttribute(a,t[a]);return n.appendChild(i),n.appendChild(o),n.appendChild(r),n}function f(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var g=function(){},m=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},v={D:g,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*a(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var i=parseInt(t),o=new Date(e.getFullYear(),0,2+7*(i-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+n.firstDayOfWeek),o},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:g,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:g,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},y={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},b={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[b.w(e,t,n)]},F:function(e,t,n){return m(b.n(e,t,n)-1,!1,t)},G:function(e,t,n){return r(b.h(e,t,n))},H:function(e){return r(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[a(e.getHours()>11)]},M:function(e,t){return m(e.getMonth(),!0,t)},S:function(e){return r(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return r(e.getFullYear(),4)},d:function(e){return r(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return r(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return r(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},w=function(e){var n=e.config,o=void 0===n?t:n,r=e.l10n,a=void 0===r?i:r,s=e.isMobile,l=void 0!==s&&s;return function(e,t,n){var i=n||a;return void 0===o.formatDate||l?t.split("").map((function(t,n,r){return b[t]&&"\\"!==r[n-1]?b[t](e,i,o):"\\"!==t?t:""})).join(""):o.formatDate(e,t,i)}},D=function(e){var n=e.config,o=void 0===n?t:n,r=e.l10n,a=void 0===r?i:r;return function(e,n,i,r){if(0===e||e){var s,l=r||a,c=e;if(e instanceof Date)s=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e);else if("string"==typeof e){var u=n||(o||t).dateFormat,d=String(e).trim();if("today"===d)s=new Date,i=!0;else if(o&&o.parseDate)s=o.parseDate(e,u);else if(/Z$/.test(d)||/GMT$/.test(d))s=new Date(e);else{for(var p=void 0,h=[],f=0,g=0,m="";f<u.length;f++){var b=u[f],w="\\"===b,_="\\"===u[f-1]||w;if(y[b]&&!_){m+=y[b];var D=new RegExp(m).exec(e);D&&(p=!0)&&h["Y"!==b?"push":"unshift"]({fn:v[b],val:D[++g]})}else w||(m+=".")}s=o&&o.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),h.forEach((function(e){var t=e.fn,n=e.val;return s=t(s,n,l)||s})),s=p?s:void 0}}if(s instanceof Date&&!isNaN(s.getTime()))return!0===i&&s.setHours(0,0,0,0),s;o.errorHandler(new Error("Invalid date provided: "+c))}}};function C(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var x=function(e,t,n){return 3600*e+60*t+n},M=864e5;function E(e){var t=e.defaultHour,n=e.defaultMinute,i=e.defaultSeconds;if(void 0!==e.minDate){var o=e.minDate.getHours(),r=e.minDate.getMinutes(),a=e.minDate.getSeconds();t<o&&(t=o),t===o&&n<r&&(n=r),t===o&&n===r&&i<a&&(i=e.minDate.getSeconds())}if(void 0!==e.maxDate){var s=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,s))===s&&(n=Math.min(l,n)),t===s&&n===l&&(i=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:i}}n(911);var $=function(){return $=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$.apply(this,arguments)},k=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};function A(n,i){var g={config:$($({},t),T.defaultConfig),l10n:o};function v(){var e;return(null===(e=g.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function b(e){return e.bind(g)}function _(){var e=g.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==g.calendarContainer&&(g.calendarContainer.style.visibility="hidden",g.calendarContainer.style.display="block"),void 0!==g.daysContainer){var t=(g.days.offsetWidth+1)*e.showMonths;g.daysContainer.style.width=t+"px",g.calendarContainer.style.width=t+(void 0!==g.weekWrapper?g.weekWrapper.offsetWidth:0)+"px",g.calendarContainer.style.removeProperty("visibility"),g.calendarContainer.style.removeProperty("display")}}))}function A(e){if(0===g.selectedDates.length){var t=void 0===g.config.minDate||C(new Date,g.config.minDate)>=0?new Date:new Date(g.config.minDate.getTime()),n=E(g.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),g.selectedDates=[t],g.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=f(e),i=n;void 0!==g.amPM&&n===g.amPM&&(g.amPM.textContent=g.l10n.amPM[a(g.amPM.textContent===g.l10n.amPM[0])]);var o=parseFloat(i.getAttribute("min")),s=parseFloat(i.getAttribute("max")),l=parseFloat(i.getAttribute("step")),c=parseInt(i.value,10),u=e.delta||(t?38===e.which?1:-1:0),d=c+l*u;if(void 0!==i.value&&2===i.value.length){var p=i===g.hourElement,h=i===g.minuteElement;d<o?(d=s+d+a(!p)+(a(p)&&a(!g.amPM)),h&&H(void 0,-1,g.hourElement)):d>s&&(d=i===g.hourElement?d-s-a(!g.amPM):o,h&&H(void 0,1,g.hourElement)),g.amPM&&p&&(1===l?d+c===23:Math.abs(d-c)>l)&&(g.amPM.textContent=g.l10n.amPM[a(g.amPM.textContent===g.l10n.amPM[0])]),i.value=r(d)}}(e);var i=g._input.value;S(),Ce(),g._input.value!==i&&g._debouncedChange()}function S(){if(void 0!==g.hourElement&&void 0!==g.minuteElement){var e,t,n=(parseInt(g.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(g.minuteElement.value,10)||0)%60,o=void 0!==g.secondElement?(parseInt(g.secondElement.value,10)||0)%60:0;void 0!==g.amPM&&(e=n,t=g.amPM.textContent,n=e%12+12*a(t===g.l10n.amPM[1]));var r=void 0!==g.config.minTime||g.config.minDate&&g.minDateHasTime&&g.latestSelectedDateObj&&0===C(g.latestSelectedDateObj,g.config.minDate,!0),s=void 0!==g.config.maxTime||g.config.maxDate&&g.maxDateHasTime&&g.latestSelectedDateObj&&0===C(g.latestSelectedDateObj,g.config.maxDate,!0);if(void 0!==g.config.maxTime&&void 0!==g.config.minTime&&g.config.minTime>g.config.maxTime){var l=x(g.config.minTime.getHours(),g.config.minTime.getMinutes(),g.config.minTime.getSeconds()),c=x(g.config.maxTime.getHours(),g.config.maxTime.getMinutes(),g.config.maxTime.getSeconds()),u=x(n,i,o);if(u>c&&u<l){var d=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]}(l);n=d[0],i=d[1],o=d[2]}}else{if(s){var p=void 0!==g.config.maxTime?g.config.maxTime:g.config.maxDate;(n=Math.min(n,p.getHours()))===p.getHours()&&(i=Math.min(i,p.getMinutes())),i===p.getMinutes()&&(o=Math.min(o,p.getSeconds()))}if(r){var h=void 0!==g.config.minTime?g.config.minTime:g.config.minDate;(n=Math.max(n,h.getHours()))===h.getHours()&&i<h.getMinutes()&&(i=h.getMinutes()),i===h.getMinutes()&&(o=Math.max(o,h.getSeconds()))}}I(n,i,o)}}function O(e){var t=e||g.latestSelectedDateObj;t&&t instanceof Date&&I(t.getHours(),t.getMinutes(),t.getSeconds())}function I(e,t,n){void 0!==g.latestSelectedDateObj&&g.latestSelectedDateObj.setHours(e%24,t,n||0,0),g.hourElement&&g.minuteElement&&!g.isMobile&&(g.hourElement.value=r(g.config.time_24hr?e:(12+e)%12+12*a(e%12==0)),g.minuteElement.value=r(t),void 0!==g.amPM&&(g.amPM.textContent=g.l10n.amPM[a(e>=12)]),void 0!==g.secondElement&&(g.secondElement.value=r(n)))}function L(e){var t=f(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&ee(n)}function P(e,t,n,i){return t instanceof Array?t.forEach((function(t){return P(e,t,n,i)})):e instanceof Array?e.forEach((function(e){return P(e,t,n,i)})):(e.addEventListener(t,n,i),void g._handlers.push({remove:function(){return e.removeEventListener(t,n,i)}}))}function j(){ye("onChange")}function N(e,t){var n=void 0!==e?g.parseDate(e):g.latestSelectedDateObj||(g.config.minDate&&g.config.minDate>g.now?g.config.minDate:g.config.maxDate&&g.config.maxDate<g.now?g.config.maxDate:g.now),i=g.currentYear,o=g.currentMonth;try{void 0!==n&&(g.currentYear=n.getFullYear(),g.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,g.config.errorHandler(e)}t&&g.currentYear!==i&&(ye("onYearChange"),G()),!t||g.currentYear===i&&g.currentMonth===o||ye("onMonthChange"),g.redraw()}function F(e){var t=f(e);~t.className.indexOf("arrow")&&H(e,t.classList.contains("arrowUp")?1:-1)}function H(e,t,n){var i=e&&f(e),o=n||i&&i.parentNode&&i.parentNode.firstChild,r=be("increment");r.delta=t,o&&o.dispatchEvent(r)}function Y(e,t,n,i){var o=te(t,!0),r=u("span",e,t.getDate().toString());return r.dateObj=t,r.$i=i,r.setAttribute("aria-label",g.formatDate(t,g.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===C(t,g.now)&&(g.todayDateElem=r,r.classList.add("today"),r.setAttribute("aria-current","date")),o?(r.tabIndex=-1,we(t)&&(r.classList.add("selected"),g.selectedDateElem=r,"range"===g.config.mode&&(c(r,"startRange",g.selectedDates[0]&&0===C(t,g.selectedDates[0],!0)),c(r,"endRange",g.selectedDates[1]&&0===C(t,g.selectedDates[1],!0)),"nextMonthDay"===e&&r.classList.add("inRange")))):r.classList.add("flatpickr-disabled"),"range"===g.config.mode&&function(e){return!("range"!==g.config.mode||g.selectedDates.length<2)&&(C(e,g.selectedDates[0])>=0&&C(e,g.selectedDates[1])<=0)}(t)&&!we(t)&&r.classList.add("inRange"),g.weekNumbers&&1===g.config.showMonths&&"prevMonthDay"!==e&&i%7==6&&g.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+g.config.getWeek(t)+"</span>"),ye("onDayCreate",r),r}function q(e){e.focus(),"range"===g.config.mode&&re(e)}function R(e){for(var t=e>0?0:g.config.showMonths-1,n=e>0?g.config.showMonths:-1,i=t;i!=n;i+=e)for(var o=g.daysContainer.children[i],r=e>0?0:o.children.length-1,a=e>0?o.children.length:-1,s=r;s!=a;s+=e){var l=o.children[s];if(-1===l.className.indexOf("hidden")&&te(l.dateObj))return l}}function z(e,t){var n=v(),i=ne(n||document.body),o=void 0!==e?e:i?n:void 0!==g.selectedDateElem&&ne(g.selectedDateElem)?g.selectedDateElem:void 0!==g.todayDateElem&&ne(g.todayDateElem)?g.todayDateElem:R(t>0?1:-1);void 0===o?g._input.focus():i?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():g.currentMonth,i=t>0?g.config.showMonths:-1,o=t>0?1:-1,r=n-g.currentMonth;r!=i;r+=o)for(var a=g.daysContainer.children[r],s=n-g.currentMonth===r?e.$i+t:t<0?a.children.length-1:0,l=a.children.length,c=s;c>=0&&c<l&&c!=(t>0?l:-1);c+=o){var u=a.children[c];if(-1===u.className.indexOf("hidden")&&te(u.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return q(u)}g.changeMonth(o),z(R(o),0)}(o,t):q(o)}function U(e,t){for(var n=(new Date(e,t,1).getDay()-g.l10n.firstDayOfWeek+7)%7,i=g.utils.getDaysInMonth((t-1+12)%12,e),o=g.utils.getDaysInMonth(t,e),r=window.document.createDocumentFragment(),a=g.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay",c=i+1-n,d=0;c<=i;c++,d++)r.appendChild(Y("flatpickr-day "+s,new Date(e,t-1,c),0,d));for(c=1;c<=o;c++,d++)r.appendChild(Y("flatpickr-day",new Date(e,t,c),0,d));for(var p=o+1;p<=42-n&&(1===g.config.showMonths||d%7!=0);p++,d++)r.appendChild(Y("flatpickr-day "+l,new Date(e,t+1,p%o),0,d));var h=u("div","dayContainer");return h.appendChild(r),h}function W(){if(void 0!==g.daysContainer){d(g.daysContainer),g.weekNumbers&&d(g.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<g.config.showMonths;t++){var n=new Date(g.currentYear,g.currentMonth,1);n.setMonth(g.currentMonth+t),e.appendChild(U(n.getFullYear(),n.getMonth()))}g.daysContainer.appendChild(e),g.days=g.daysContainer.firstChild,"range"===g.config.mode&&1===g.selectedDates.length&&re()}}function G(){if(!(g.config.showMonths>1||"dropdown"!==g.config.monthSelectorType)){var e=function(e){return!(void 0!==g.config.minDate&&g.currentYear===g.config.minDate.getFullYear()&&e<g.config.minDate.getMonth())&&!(void 0!==g.config.maxDate&&g.currentYear===g.config.maxDate.getFullYear()&&e>g.config.maxDate.getMonth())};g.monthsDropdownContainer.tabIndex=-1,g.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=u("option","flatpickr-monthDropdown-month");n.value=new Date(g.currentYear,t).getMonth().toString(),n.textContent=m(t,g.config.shorthandCurrentMonth,g.l10n),n.tabIndex=-1,g.currentMonth===t&&(n.selected=!0),g.monthsDropdownContainer.appendChild(n)}}}function B(){var e,t=u("div","flatpickr-month"),n=window.document.createDocumentFragment();g.config.showMonths>1||"static"===g.config.monthSelectorType?e=u("span","cur-month"):(g.monthsDropdownContainer=u("select","flatpickr-monthDropdown-months"),g.monthsDropdownContainer.setAttribute("aria-label",g.l10n.monthAriaLabel),P(g.monthsDropdownContainer,"change",(function(e){var t=f(e),n=parseInt(t.value,10);g.changeMonth(n-g.currentMonth),ye("onMonthChange")})),G(),e=g.monthsDropdownContainer);var i=h("cur-year",{tabindex:"-1"}),o=i.getElementsByTagName("input")[0];o.setAttribute("aria-label",g.l10n.yearAriaLabel),g.config.minDate&&o.setAttribute("min",g.config.minDate.getFullYear().toString()),g.config.maxDate&&(o.setAttribute("max",g.config.maxDate.getFullYear().toString()),o.disabled=!!g.config.minDate&&g.config.minDate.getFullYear()===g.config.maxDate.getFullYear());var r=u("div","flatpickr-current-month");return r.appendChild(e),r.appendChild(i),n.appendChild(r),t.appendChild(n),{container:t,yearElement:o,monthElement:e}}function K(){d(g.monthNav),g.monthNav.appendChild(g.prevMonthNav),g.config.showMonths&&(g.yearElements=[],g.monthElements=[]);for(var e=g.config.showMonths;e--;){var t=B();g.yearElements.push(t.yearElement),g.monthElements.push(t.monthElement),g.monthNav.appendChild(t.container)}g.monthNav.appendChild(g.nextMonthNav)}function J(){g.weekdayContainer?d(g.weekdayContainer):g.weekdayContainer=u("div","flatpickr-weekdays");for(var e=g.config.showMonths;e--;){var t=u("div","flatpickr-weekdaycontainer");g.weekdayContainer.appendChild(t)}return Q(),g.weekdayContainer}function Q(){if(g.weekdayContainer){var e=g.l10n.firstDayOfWeek,t=k(g.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=k(t.splice(e,t.length),t.splice(0,e)));for(var n=g.config.showMonths;n--;)g.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function V(e,t){void 0===t&&(t=!0);var n=t?e:e-g.currentMonth;n<0&&!0===g._hidePrevMonthArrow||n>0&&!0===g._hideNextMonthArrow||(g.currentMonth+=n,(g.currentMonth<0||g.currentMonth>11)&&(g.currentYear+=g.currentMonth>11?1:-1,g.currentMonth=(g.currentMonth+12)%12,ye("onYearChange"),G()),W(),ye("onMonthChange"),_e())}function Z(e){return g.calendarContainer.contains(e)}function X(e){if(g.isOpen&&!g.config.inline){var t=f(e),n=Z(t),i=!(t===g.input||t===g.altInput||g.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(g.input)||~e.path.indexOf(g.altInput)))&&!n&&!Z(e.relatedTarget),o=!g.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&o&&(g.config.allowInput&&g.setDate(g._input.value,!1,g.config.altInput?g.config.altFormat:g.config.dateFormat),void 0!==g.timeContainer&&void 0!==g.minuteElement&&void 0!==g.hourElement&&""!==g.input.value&&void 0!==g.input.value&&A(),g.close(),g.config&&"range"===g.config.mode&&1===g.selectedDates.length&&g.clear(!1))}}function ee(e){if(!(!e||g.config.minDate&&e<g.config.minDate.getFullYear()||g.config.maxDate&&e>g.config.maxDate.getFullYear())){var t=e,n=g.currentYear!==t;g.currentYear=t||g.currentYear,g.config.maxDate&&g.currentYear===g.config.maxDate.getFullYear()?g.currentMonth=Math.min(g.config.maxDate.getMonth(),g.currentMonth):g.config.minDate&&g.currentYear===g.config.minDate.getFullYear()&&(g.currentMonth=Math.max(g.config.minDate.getMonth(),g.currentMonth)),n&&(g.redraw(),ye("onYearChange"),G())}}function te(e,t){var n;void 0===t&&(t=!0);var i=g.parseDate(e,void 0,t);if(g.config.minDate&&i&&C(i,g.config.minDate,void 0!==t?t:!g.minDateHasTime)<0||g.config.maxDate&&i&&C(i,g.config.maxDate,void 0!==t?t:!g.maxDateHasTime)>0)return!1;if(!g.config.enable&&0===g.config.disable.length)return!0;if(void 0===i)return!1;for(var o=!!g.config.enable,r=null!==(n=g.config.enable)&&void 0!==n?n:g.config.disable,a=0,s=void 0;a<r.length;a++){if("function"==typeof(s=r[a])&&s(i))return o;if(s instanceof Date&&void 0!==i&&s.getTime()===i.getTime())return o;if("string"==typeof s){var l=g.parseDate(s,void 0,!0);return l&&l.getTime()===i.getTime()?o:!o}if("object"==typeof s&&void 0!==i&&s.from&&s.to&&i.getTime()>=s.from.getTime()&&i.getTime()<=s.to.getTime())return o}return!o}function ne(e){return void 0!==g.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&g.daysContainer.contains(e))}function ie(e){var t=e.target===g._input,n=g._input.value.trimEnd()!==De();!t||!n||e.relatedTarget&&Z(e.relatedTarget)||g.setDate(g._input.value,!0,e.target===g.altInput?g.config.altFormat:g.config.dateFormat)}function oe(e){var t=f(e),i=g.config.wrap?n.contains(t):t===g._input,o=g.config.allowInput,r=g.isOpen&&(!o||!i),a=g.config.inline&&i&&!o;if(13===e.keyCode&&i){if(o)return g.setDate(g._input.value,!0,t===g.altInput?g.config.altFormat:g.config.dateFormat),g.close(),t.blur();g.open()}else if(Z(t)||r||a){var s=!!g.timeContainer&&g.timeContainer.contains(t);switch(e.keyCode){case 13:s?(e.preventDefault(),A(),pe()):he(e);break;case 27:e.preventDefault(),pe();break;case 8:case 46:i&&!g.config.allowInput&&(e.preventDefault(),g.clear());break;case 37:case 39:if(s||i)g.hourElement&&g.hourElement.focus();else{e.preventDefault();var l=v();if(void 0!==g.daysContainer&&(!1===o||l&&ne(l))){var c=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),V(c),z(R(1),0)):z(void 0,c)}}break;case 38:case 40:e.preventDefault();var u=40===e.keyCode?1:-1;g.daysContainer&&void 0!==t.$i||t===g.input||t===g.altInput?e.ctrlKey?(e.stopPropagation(),ee(g.currentYear-u),z(R(1),0)):s||z(void 0,7*u):t===g.currentYearElement?ee(g.currentYear-u):g.config.enableTime&&(!s&&g.hourElement&&g.hourElement.focus(),A(e),g._debouncedChange());break;case 9:if(s){var d=[g.hourElement,g.minuteElement,g.secondElement,g.amPM].concat(g.pluginElements).filter((function(e){return e})),p=d.indexOf(t);if(-1!==p){var h=d[p+(e.shiftKey?-1:1)];e.preventDefault(),(h||g._input).focus()}}else!g.config.noCalendar&&g.daysContainer&&g.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),g._input.focus())}}if(void 0!==g.amPM&&t===g.amPM)switch(e.key){case g.l10n.amPM[0].charAt(0):case g.l10n.amPM[0].charAt(0).toLowerCase():g.amPM.textContent=g.l10n.amPM[0],S(),Ce();break;case g.l10n.amPM[1].charAt(0):case g.l10n.amPM[1].charAt(0).toLowerCase():g.amPM.textContent=g.l10n.amPM[1],S(),Ce()}(i||Z(t))&&ye("onKeyDown",e)}function re(e,t){if(void 0===t&&(t="flatpickr-day"),1===g.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():g.days.firstElementChild.dateObj.getTime(),i=g.parseDate(g.selectedDates[0],void 0,!0).getTime(),o=Math.min(n,g.selectedDates[0].getTime()),r=Math.max(n,g.selectedDates[0].getTime()),a=!1,s=0,l=0,c=o;c<r;c+=M)te(new Date(c),!0)||(a=a||c>o&&c<r,c<i&&(!s||c>s)?s=c:c>i&&(!l||c<l)&&(l=c));Array.from(g.rContainer.querySelectorAll("*:nth-child(-n+"+g.config.showMonths+") > ."+t)).forEach((function(t){var o,r,c,u=t.dateObj.getTime(),d=s>0&&u<s||l>0&&u>l;if(d)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));a&&!d||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=g.selectedDates[0].getTime()?"startRange":"endRange"),i<n&&u===i?t.classList.add("startRange"):i>n&&u===i&&t.classList.add("endRange"),u>=s&&(0===l||u<=l)&&(r=i,c=n,(o=u)>Math.min(r,c)&&o<Math.max(r,c))&&t.classList.add("inRange")))}))}}function ae(){!g.isOpen||g.config.static||g.config.inline||ue()}function se(e){return function(t){var n=g.config["_"+e+"Date"]=g.parseDate(t,g.config.dateFormat),i=g.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(g["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),g.selectedDates&&(g.selectedDates=g.selectedDates.filter((function(e){return te(e)})),g.selectedDates.length||"min"!==e||O(n),Ce()),g.daysContainer&&(de(),void 0!==n?g.currentYearElement[e]=n.getFullYear().toString():g.currentYearElement.removeAttribute(e),g.currentYearElement.disabled=!!i&&void 0!==n&&i.getFullYear()===n.getFullYear())}}function le(){return g.config.wrap?n.querySelector("[data-input]"):n}function ce(){"object"!=typeof g.config.locale&&void 0===T.l10ns[g.config.locale]&&g.config.errorHandler(new Error("flatpickr: invalid locale "+g.config.locale)),g.l10n=$($({},T.l10ns.default),"object"==typeof g.config.locale?g.config.locale:"default"!==g.config.locale?T.l10ns[g.config.locale]:void 0),y.D="("+g.l10n.weekdays.shorthand.join("|")+")",y.l="("+g.l10n.weekdays.longhand.join("|")+")",y.M="("+g.l10n.months.shorthand.join("|")+")",y.F="("+g.l10n.months.longhand.join("|")+")",y.K="("+g.l10n.amPM[0]+"|"+g.l10n.amPM[1]+"|"+g.l10n.amPM[0].toLowerCase()+"|"+g.l10n.amPM[1].toLowerCase()+")",void 0===$($({},i),JSON.parse(JSON.stringify(n.dataset||{}))).time_24hr&&void 0===T.defaultConfig.time_24hr&&(g.config.time_24hr=g.l10n.time_24hr),g.formatDate=w(g),g.parseDate=D({config:g.config,l10n:g.l10n})}function ue(e){if("function"!=typeof g.config.position){if(void 0!==g.calendarContainer){ye("onPreCalendarPosition");var t=e||g._positionElement,n=Array.prototype.reduce.call(g.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),i=g.calendarContainer.offsetWidth,o=g.config.position.split(" "),r=o[0],a=o.length>1?o[1]:null,s=t.getBoundingClientRect(),l=window.innerHeight-s.bottom,u="above"===r||"below"!==r&&l<n&&s.top>n,d=window.pageYOffset+s.top+(u?-n-2:t.offsetHeight+2);if(c(g.calendarContainer,"arrowTop",!u),c(g.calendarContainer,"arrowBottom",u),!g.config.inline){var p=window.pageXOffset+s.left,h=!1,f=!1;"center"===a?(p-=(i-s.width)/2,h=!0):"right"===a&&(p-=i-s.width,f=!0),c(g.calendarContainer,"arrowLeft",!h&&!f),c(g.calendarContainer,"arrowCenter",h),c(g.calendarContainer,"arrowRight",f);var m=window.document.body.offsetWidth-(window.pageXOffset+s.right),v=p+i>window.document.body.offsetWidth,y=m+i>window.document.body.offsetWidth;if(c(g.calendarContainer,"rightMost",v),!g.config.static)if(g.calendarContainer.style.top=d+"px",v)if(y){var b=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(i=document.createElement("style"),document.head.appendChild(i),i.sheet);var i}();if(void 0===b)return;var w=window.document.body.offsetWidth,_=Math.max(0,w/2-i/2),D=b.cssRules.length,C="{left:"+s.left+"px;right:auto;}";c(g.calendarContainer,"rightMost",!1),c(g.calendarContainer,"centerMost",!0),b.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,D),g.calendarContainer.style.left=_+"px",g.calendarContainer.style.right="auto"}else g.calendarContainer.style.left="auto",g.calendarContainer.style.right=m+"px";else g.calendarContainer.style.left=p+"px",g.calendarContainer.style.right="auto"}}}else g.config.position(g,e)}function de(){g.config.noCalendar||g.isMobile||(G(),_e(),W())}function pe(){g._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(g.close,0):g.close()}function he(e){e.preventDefault(),e.stopPropagation();var t=p(f(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var n=t,i=g.latestSelectedDateObj=new Date(n.dateObj.getTime()),o=(i.getMonth()<g.currentMonth||i.getMonth()>g.currentMonth+g.config.showMonths-1)&&"range"!==g.config.mode;if(g.selectedDateElem=n,"single"===g.config.mode)g.selectedDates=[i];else if("multiple"===g.config.mode){var r=we(i);r?g.selectedDates.splice(parseInt(r),1):g.selectedDates.push(i)}else"range"===g.config.mode&&(2===g.selectedDates.length&&g.clear(!1,!1),g.latestSelectedDateObj=i,g.selectedDates.push(i),0!==C(i,g.selectedDates[0],!0)&&g.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(S(),o){var a=g.currentYear!==i.getFullYear();g.currentYear=i.getFullYear(),g.currentMonth=i.getMonth(),a&&(ye("onYearChange"),G()),ye("onMonthChange")}if(_e(),W(),Ce(),o||"range"===g.config.mode||1!==g.config.showMonths?void 0!==g.selectedDateElem&&void 0===g.hourElement&&g.selectedDateElem&&g.selectedDateElem.focus():q(n),void 0!==g.hourElement&&void 0!==g.hourElement&&g.hourElement.focus(),g.config.closeOnSelect){var s="single"===g.config.mode&&!g.config.enableTime,l="range"===g.config.mode&&2===g.selectedDates.length&&!g.config.enableTime;(s||l)&&pe()}j()}}g.parseDate=D({config:g.config,l10n:g.l10n}),g._handlers=[],g.pluginElements=[],g.loadedPlugins=[],g._bind=P,g._setHoursFromDate=O,g._positionCalendar=ue,g.changeMonth=V,g.changeYear=ee,g.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);g.input.value="",void 0!==g.altInput&&(g.altInput.value="");void 0!==g.mobileInput&&(g.mobileInput.value="");g.selectedDates=[],g.latestSelectedDateObj=void 0,!0===t&&(g.currentYear=g._initialDate.getFullYear(),g.currentMonth=g._initialDate.getMonth());if(!0===g.config.enableTime){var n=E(g.config),i=n.hours,o=n.minutes,r=n.seconds;I(i,o,r)}g.redraw(),e&&ye("onChange")},g.close=function(){g.isOpen=!1,g.isMobile||(void 0!==g.calendarContainer&&g.calendarContainer.classList.remove("open"),void 0!==g._input&&g._input.classList.remove("active"));ye("onClose")},g.onMouseOver=re,g._createElement=u,g.createDay=Y,g.destroy=function(){void 0!==g.config&&ye("onDestroy");for(var e=g._handlers.length;e--;)g._handlers[e].remove();if(g._handlers=[],g.mobileInput)g.mobileInput.parentNode&&g.mobileInput.parentNode.removeChild(g.mobileInput),g.mobileInput=void 0;else if(g.calendarContainer&&g.calendarContainer.parentNode)if(g.config.static&&g.calendarContainer.parentNode){var t=g.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else g.calendarContainer.parentNode.removeChild(g.calendarContainer);g.altInput&&(g.input.type="text",g.altInput.parentNode&&g.altInput.parentNode.removeChild(g.altInput),delete g.altInput);g.input&&(g.input.type=g.input._type,g.input.classList.remove("flatpickr-input"),g.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete g[e]}catch(e){}}))},g.isEnabled=te,g.jumpToDate=N,g.updateValue=Ce,g.open=function(e,t){void 0===t&&(t=g._positionElement);if(!0===g.isMobile){if(e){e.preventDefault();var n=f(e);n&&n.blur()}return void 0!==g.mobileInput&&(g.mobileInput.focus(),g.mobileInput.click()),void ye("onOpen")}if(g._input.disabled||g.config.inline)return;var i=g.isOpen;g.isOpen=!0,i||(g.calendarContainer.classList.add("open"),g._input.classList.add("active"),ye("onOpen"),ue(t));!0===g.config.enableTime&&!0===g.config.noCalendar&&(!1!==g.config.allowInput||void 0!==e&&g.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return g.hourElement.select()}),50))},g.redraw=de,g.set=function(t,n){if(null!==t&&"object"==typeof t)for(var i in Object.assign(g.config,t),t)void 0!==fe[i]&&fe[i].forEach((function(e){return e()}));else g.config[t]=n,void 0!==fe[t]?fe[t].forEach((function(e){return e()})):e.indexOf(t)>-1&&(g.config[t]=l(n));g.redraw(),Ce(!0)},g.setDate=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=g.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return g.clear(t);ge(e,n),g.latestSelectedDateObj=g.selectedDates[g.selectedDates.length-1],g.redraw(),N(void 0,t),O(),0===g.selectedDates.length&&g.clear(!1);Ce(t),t&&ye("onChange")},g.toggle=function(e){if(!0===g.isOpen)return g.close();g.open(e)};var fe={locale:[ce,Q],showMonths:[K,_,J],minDate:[N],maxDate:[N],positionElement:[ve],clickOpens:[function(){!0===g.config.clickOpens?(P(g._input,"focus",g.open),P(g._input,"click",g.open)):(g._input.removeEventListener("focus",g.open),g._input.removeEventListener("click",g.open))}]};function ge(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return g.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[g.parseDate(e,t)];else if("string"==typeof e)switch(g.config.mode){case"single":case"time":n=[g.parseDate(e,t)];break;case"multiple":n=e.split(g.config.conjunction).map((function(e){return g.parseDate(e,t)}));break;case"range":n=e.split(g.l10n.rangeSeparator).map((function(e){return g.parseDate(e,t)}))}else g.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));g.selectedDates=g.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&te(e,!1)})),"range"===g.config.mode&&g.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function me(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?g.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:g.parseDate(e.from,void 0),to:g.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ve(){g._positionElement=g.config.positionElement||g._input}function ye(e,t){if(void 0!==g.config){var n=g.config[e];if(void 0!==n&&n.length>0)for(var i=0;n[i]&&i<n.length;i++)n[i](g.selectedDates,g.input.value,g,t);"onChange"===e&&(g.input.dispatchEvent(be("change")),g.input.dispatchEvent(be("input")))}}function be(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function we(e){for(var t=0;t<g.selectedDates.length;t++){var n=g.selectedDates[t];if(n instanceof Date&&0===C(n,e))return""+t}return!1}function _e(){g.config.noCalendar||g.isMobile||!g.monthNav||(g.yearElements.forEach((function(e,t){var n=new Date(g.currentYear,g.currentMonth,1);n.setMonth(g.currentMonth+t),g.config.showMonths>1||"static"===g.config.monthSelectorType?g.monthElements[t].textContent=m(n.getMonth(),g.config.shorthandCurrentMonth,g.l10n)+" ":g.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),g._hidePrevMonthArrow=void 0!==g.config.minDate&&(g.currentYear===g.config.minDate.getFullYear()?g.currentMonth<=g.config.minDate.getMonth():g.currentYear<g.config.minDate.getFullYear()),g._hideNextMonthArrow=void 0!==g.config.maxDate&&(g.currentYear===g.config.maxDate.getFullYear()?g.currentMonth+1>g.config.maxDate.getMonth():g.currentYear>g.config.maxDate.getFullYear()))}function De(e){var t=e||(g.config.altInput?g.config.altFormat:g.config.dateFormat);return g.selectedDates.map((function(e){return g.formatDate(e,t)})).filter((function(e,t,n){return"range"!==g.config.mode||g.config.enableTime||n.indexOf(e)===t})).join("range"!==g.config.mode?g.config.conjunction:g.l10n.rangeSeparator)}function Ce(e){void 0===e&&(e=!0),void 0!==g.mobileInput&&g.mobileFormatStr&&(g.mobileInput.value=void 0!==g.latestSelectedDateObj?g.formatDate(g.latestSelectedDateObj,g.mobileFormatStr):""),g.input.value=De(g.config.dateFormat),void 0!==g.altInput&&(g.altInput.value=De(g.config.altFormat)),!1!==e&&ye("onValueUpdate")}function xe(e){var t=f(e),n=g.prevMonthNav.contains(t),i=g.nextMonthNav.contains(t);n||i?V(n?-1:1):g.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?g.changeYear(g.currentYear+1):t.classList.contains("arrowDown")&&g.changeYear(g.currentYear-1)}return function(){g.element=g.input=n,g.isOpen=!1,function(){var o=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=$($({},JSON.parse(JSON.stringify(n.dataset||{}))),i),a={};g.config.parseDate=r.parseDate,g.config.formatDate=r.formatDate,Object.defineProperty(g.config,"enable",{get:function(){return g.config._enable},set:function(e){g.config._enable=me(e)}}),Object.defineProperty(g.config,"disable",{get:function(){return g.config._disable},set:function(e){g.config._disable=me(e)}});var s="time"===r.mode;if(!r.dateFormat&&(r.enableTime||s)){var c=T.defaultConfig.dateFormat||t.dateFormat;a.dateFormat=r.noCalendar||s?"H:i"+(r.enableSeconds?":S":""):c+" H:i"+(r.enableSeconds?":S":"")}if(r.altInput&&(r.enableTime||s)&&!r.altFormat){var u=T.defaultConfig.altFormat||t.altFormat;a.altFormat=r.noCalendar||s?"h:i"+(r.enableSeconds?":S K":" K"):u+" h:i"+(r.enableSeconds?":S":"")+" K"}Object.defineProperty(g.config,"minDate",{get:function(){return g.config._minDate},set:se("min")}),Object.defineProperty(g.config,"maxDate",{get:function(){return g.config._maxDate},set:se("max")});var d=function(e){return function(t){g.config["min"===e?"_minTime":"_maxTime"]=g.parseDate(t,"H:i:S")}};Object.defineProperty(g.config,"minTime",{get:function(){return g.config._minTime},set:d("min")}),Object.defineProperty(g.config,"maxTime",{get:function(){return g.config._maxTime},set:d("max")}),"time"===r.mode&&(g.config.noCalendar=!0,g.config.enableTime=!0);Object.assign(g.config,a,r);for(var p=0;p<o.length;p++)g.config[o[p]]=!0===g.config[o[p]]||"true"===g.config[o[p]];e.filter((function(e){return void 0!==g.config[e]})).forEach((function(e){g.config[e]=l(g.config[e]||[]).map(b)})),g.isMobile=!g.config.disableMobile&&!g.config.inline&&"single"===g.config.mode&&!g.config.disable.length&&!g.config.enable&&!g.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(p=0;p<g.config.plugins.length;p++){var h=g.config.plugins[p](g)||{};for(var f in h)e.indexOf(f)>-1?g.config[f]=l(h[f]).map(b).concat(g.config[f]):void 0===r[f]&&(g.config[f]=h[f])}r.altInputClass||(g.config.altInputClass=le().className+" "+g.config.altInputClass);ye("onParseConfig")}(),ce(),function(){if(g.input=le(),!g.input)return void g.config.errorHandler(new Error("Invalid input element specified"));g.input._type=g.input.type,g.input.type="text",g.input.classList.add("flatpickr-input"),g._input=g.input,g.config.altInput&&(g.altInput=u(g.input.nodeName,g.config.altInputClass),g._input=g.altInput,g.altInput.placeholder=g.input.placeholder,g.altInput.disabled=g.input.disabled,g.altInput.required=g.input.required,g.altInput.tabIndex=g.input.tabIndex,g.altInput.type="text",g.input.setAttribute("type","hidden"),!g.config.static&&g.input.parentNode&&g.input.parentNode.insertBefore(g.altInput,g.input.nextSibling));g.config.allowInput||g._input.setAttribute("readonly","readonly");ve()}(),function(){g.selectedDates=[],g.now=g.parseDate(g.config.now)||new Date;var e=g.config.defaultDate||("INPUT"!==g.input.nodeName&&"TEXTAREA"!==g.input.nodeName||!g.input.placeholder||g.input.value!==g.input.placeholder?g.input.value:null);e&&ge(e,g.config.dateFormat);g._initialDate=g.selectedDates.length>0?g.selectedDates[0]:g.config.minDate&&g.config.minDate.getTime()>g.now.getTime()?g.config.minDate:g.config.maxDate&&g.config.maxDate.getTime()<g.now.getTime()?g.config.maxDate:g.now,g.currentYear=g._initialDate.getFullYear(),g.currentMonth=g._initialDate.getMonth(),g.selectedDates.length>0&&(g.latestSelectedDateObj=g.selectedDates[0]);void 0!==g.config.minTime&&(g.config.minTime=g.parseDate(g.config.minTime,"H:i"));void 0!==g.config.maxTime&&(g.config.maxTime=g.parseDate(g.config.maxTime,"H:i"));g.minDateHasTime=!!g.config.minDate&&(g.config.minDate.getHours()>0||g.config.minDate.getMinutes()>0||g.config.minDate.getSeconds()>0),g.maxDateHasTime=!!g.config.maxDate&&(g.config.maxDate.getHours()>0||g.config.maxDate.getMinutes()>0||g.config.maxDate.getSeconds()>0)}(),g.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=g.currentMonth),void 0===t&&(t=g.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:g.l10n.daysInMonth[e]}},g.isMobile||function(){var e=window.document.createDocumentFragment();if(g.calendarContainer=u("div","flatpickr-calendar"),g.calendarContainer.tabIndex=-1,!g.config.noCalendar){if(e.appendChild((g.monthNav=u("div","flatpickr-months"),g.yearElements=[],g.monthElements=[],g.prevMonthNav=u("span","flatpickr-prev-month"),g.prevMonthNav.innerHTML=g.config.prevArrow,g.nextMonthNav=u("span","flatpickr-next-month"),g.nextMonthNav.innerHTML=g.config.nextArrow,K(),Object.defineProperty(g,"_hidePrevMonthArrow",{get:function(){return g.__hidePrevMonthArrow},set:function(e){g.__hidePrevMonthArrow!==e&&(c(g.prevMonthNav,"flatpickr-disabled",e),g.__hidePrevMonthArrow=e)}}),Object.defineProperty(g,"_hideNextMonthArrow",{get:function(){return g.__hideNextMonthArrow},set:function(e){g.__hideNextMonthArrow!==e&&(c(g.nextMonthNav,"flatpickr-disabled",e),g.__hideNextMonthArrow=e)}}),g.currentYearElement=g.yearElements[0],_e(),g.monthNav)),g.innerContainer=u("div","flatpickr-innerContainer"),g.config.weekNumbers){var t=function(){g.calendarContainer.classList.add("hasWeeks");var e=u("div","flatpickr-weekwrapper");e.appendChild(u("span","flatpickr-weekday",g.l10n.weekAbbreviation));var t=u("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,i=t.weekNumbers;g.innerContainer.appendChild(n),g.weekNumbers=i,g.weekWrapper=n}g.rContainer=u("div","flatpickr-rContainer"),g.rContainer.appendChild(J()),g.daysContainer||(g.daysContainer=u("div","flatpickr-days"),g.daysContainer.tabIndex=-1),W(),g.rContainer.appendChild(g.daysContainer),g.innerContainer.appendChild(g.rContainer),e.appendChild(g.innerContainer)}g.config.enableTime&&e.appendChild(function(){g.calendarContainer.classList.add("hasTime"),g.config.noCalendar&&g.calendarContainer.classList.add("noCalendar");var e=E(g.config);g.timeContainer=u("div","flatpickr-time"),g.timeContainer.tabIndex=-1;var t=u("span","flatpickr-time-separator",":"),n=h("flatpickr-hour",{"aria-label":g.l10n.hourAriaLabel});g.hourElement=n.getElementsByTagName("input")[0];var i=h("flatpickr-minute",{"aria-label":g.l10n.minuteAriaLabel});g.minuteElement=i.getElementsByTagName("input")[0],g.hourElement.tabIndex=g.minuteElement.tabIndex=-1,g.hourElement.value=r(g.latestSelectedDateObj?g.latestSelectedDateObj.getHours():g.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),g.minuteElement.value=r(g.latestSelectedDateObj?g.latestSelectedDateObj.getMinutes():e.minutes),g.hourElement.setAttribute("step",g.config.hourIncrement.toString()),g.minuteElement.setAttribute("step",g.config.minuteIncrement.toString()),g.hourElement.setAttribute("min",g.config.time_24hr?"0":"1"),g.hourElement.setAttribute("max",g.config.time_24hr?"23":"12"),g.hourElement.setAttribute("maxlength","2"),g.minuteElement.setAttribute("min","0"),g.minuteElement.setAttribute("max","59"),g.minuteElement.setAttribute("maxlength","2"),g.timeContainer.appendChild(n),g.timeContainer.appendChild(t),g.timeContainer.appendChild(i),g.config.time_24hr&&g.timeContainer.classList.add("time24hr");if(g.config.enableSeconds){g.timeContainer.classList.add("hasSeconds");var o=h("flatpickr-second");g.secondElement=o.getElementsByTagName("input")[0],g.secondElement.value=r(g.latestSelectedDateObj?g.latestSelectedDateObj.getSeconds():e.seconds),g.secondElement.setAttribute("step",g.minuteElement.getAttribute("step")),g.secondElement.setAttribute("min","0"),g.secondElement.setAttribute("max","59"),g.secondElement.setAttribute("maxlength","2"),g.timeContainer.appendChild(u("span","flatpickr-time-separator",":")),g.timeContainer.appendChild(o)}g.config.time_24hr||(g.amPM=u("span","flatpickr-am-pm",g.l10n.amPM[a((g.latestSelectedDateObj?g.hourElement.value:g.config.defaultHour)>11)]),g.amPM.title=g.l10n.toggleTitle,g.amPM.tabIndex=-1,g.timeContainer.appendChild(g.amPM));return g.timeContainer}());c(g.calendarContainer,"rangeMode","range"===g.config.mode),c(g.calendarContainer,"animate",!0===g.config.animate),c(g.calendarContainer,"multiMonth",g.config.showMonths>1),g.calendarContainer.appendChild(e);var o=void 0!==g.config.appendTo&&void 0!==g.config.appendTo.nodeType;if((g.config.inline||g.config.static)&&(g.calendarContainer.classList.add(g.config.inline?"inline":"static"),g.config.inline&&(!o&&g.element.parentNode?g.element.parentNode.insertBefore(g.calendarContainer,g._input.nextSibling):void 0!==g.config.appendTo&&g.config.appendTo.appendChild(g.calendarContainer)),g.config.static)){var s=u("div","flatpickr-wrapper");g.element.parentNode&&g.element.parentNode.insertBefore(s,g.element),s.appendChild(g.element),g.altInput&&s.appendChild(g.altInput),s.appendChild(g.calendarContainer)}g.config.static||g.config.inline||(void 0!==g.config.appendTo?g.config.appendTo:window.document.body).appendChild(g.calendarContainer)}(),function(){g.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(g.element.querySelectorAll("[data-"+e+"]"),(function(t){return P(t,"click",g[e])}))}));if(g.isMobile)return void function(){var e=g.config.enableTime?g.config.noCalendar?"time":"datetime-local":"date";g.mobileInput=u("input",g.input.className+" flatpickr-mobile"),g.mobileInput.tabIndex=1,g.mobileInput.type=e,g.mobileInput.disabled=g.input.disabled,g.mobileInput.required=g.input.required,g.mobileInput.placeholder=g.input.placeholder,g.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",g.selectedDates.length>0&&(g.mobileInput.defaultValue=g.mobileInput.value=g.formatDate(g.selectedDates[0],g.mobileFormatStr));g.config.minDate&&(g.mobileInput.min=g.formatDate(g.config.minDate,"Y-m-d"));g.config.maxDate&&(g.mobileInput.max=g.formatDate(g.config.maxDate,"Y-m-d"));g.input.getAttribute("step")&&(g.mobileInput.step=String(g.input.getAttribute("step")));g.input.type="hidden",void 0!==g.altInput&&(g.altInput.type="hidden");try{g.input.parentNode&&g.input.parentNode.insertBefore(g.mobileInput,g.input.nextSibling)}catch(e){}P(g.mobileInput,"change",(function(e){g.setDate(f(e).value,!1,g.mobileFormatStr),ye("onChange"),ye("onClose")}))}();var e=s(ae,50);g._debouncedChange=s(j,300),g.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&P(g.daysContainer,"mouseover",(function(e){"range"===g.config.mode&&re(f(e))}));P(g._input,"keydown",oe),void 0!==g.calendarContainer&&P(g.calendarContainer,"keydown",oe);g.config.inline||g.config.static||P(window,"resize",e);void 0!==window.ontouchstart?P(window.document,"touchstart",X):P(window.document,"mousedown",X);P(window.document,"focus",X,{capture:!0}),!0===g.config.clickOpens&&(P(g._input,"focus",g.open),P(g._input,"click",g.open));void 0!==g.daysContainer&&(P(g.monthNav,"click",xe),P(g.monthNav,["keyup","increment"],L),P(g.daysContainer,"click",he));if(void 0!==g.timeContainer&&void 0!==g.minuteElement&&void 0!==g.hourElement){var t=function(e){return f(e).select()};P(g.timeContainer,["increment"],A),P(g.timeContainer,"blur",A,{capture:!0}),P(g.timeContainer,"click",F),P([g.hourElement,g.minuteElement],["focus","click"],t),void 0!==g.secondElement&&P(g.secondElement,"focus",(function(){return g.secondElement&&g.secondElement.select()})),void 0!==g.amPM&&P(g.amPM,"click",(function(e){A(e)}))}g.config.allowInput&&P(g._input,"blur",ie)}(),(g.selectedDates.length||g.config.noCalendar)&&(g.config.enableTime&&O(g.config.noCalendar?g.latestSelectedDateObj:void 0),Ce(!1)),_();var o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!g.isMobile&&o&&ue(),ye("onReady")}(),g}function S(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),i=[],o=0;o<n.length;o++){var r=n[o];try{if(null!==r.getAttribute("data-fp-omit"))continue;void 0!==r._flatpickr&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=A(r,t||{}),i.push(r._flatpickr)}catch(e){console.error(e)}}return 1===i.length?i[0]:i}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return S(this,e)},HTMLElement.prototype.flatpickr=function(e){return S([this],e)});var T=function(e,t){return"string"==typeof e?S(window.document.querySelectorAll(e),t):e instanceof Node?S([e],t):S(e,t)};T.defaultConfig={},T.l10ns={en:$({},o),default:$({},o)},T.localize=function(e){T.l10ns.default=$($({},T.l10ns.default),e)},T.setDefaults=function(e){T.defaultConfig=$($({},T.defaultConfig),e)},T.parseDate=D({}),T.formatDate=w({}),T.compareDates=C,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return S(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=T);n(164);!function(e,t){t.nscuBasicControl=t.Control.extend({ready:function(){t.Control.prototype.ready.call(this),this.initBaseControl()},initBaseControl:function(e){(e=e||this).container.on("change keyup paste click","input",(function(){e.setting.set(jQuery(this).val())}))}}),t.nscuSelectControl=t.Control.extend({ready:function(){t.Control.prototype.ready.call(this),this.initSelectControl()},initSelectControl:function(t){e("select",(t=t||this).container).select2({width:260,minimumResultsForSearch:10}).change((function(){t.setting.set(e(this).val())}))}}),t.nscuCheckboxControl=t.Control.extend({ready:function(){t.Control.prototype.ready.call(this),this.initCheckboxControl()},initCheckboxControl:function(e){(e=e||this).container.on("change","input:checkbox",(function(){var t=!!this.checked;e.setting.set(t)}))}}),t.controlConstructor["nscu-accordion"]=t.Control.extend({ready:function(){var t=this;t.container.on("click",".customize-control-title",(function(){e(this).toggleClass("acc-active"),t.container.find(".customize-control-description").fadeToggle()}))}}),t.controlConstructor["nscu-buttonset"]=t.nscuBasicControl.extend({}),t.controlConstructor["nscu-checkbox"]=t.nscuCheckboxControl.extend({}),t.controlConstructor["nscu-checkbox-multiple"]=t.Control.extend({ready:function(){var e=this;e.container.on("change","input",(function(){var t=[],n=0;jQuery.each(e.params.choices,(function(i){e.container.find('input[value="'+i+'"]').is(":checked")?(e.container.find('input[value="'+i+'"]').parent().addClass("checked"),t[n]=i,n++):e.container.find('input[value="'+i+'"]').parent().removeClass("checked")})),e.setting.set(t)}))}}),t.controlConstructor["nscu-date-time"]=t.Control.extend({ready:function(){var e=this.container.find(".date-time-input"),t="Y-m-d H:i",n=!0,i=!1;!0===e.data("disable-date")&&(t="H:i",i=!0),!0===e.data("disable-time")&&(t="Y-m-d",n=!1);var o={dateFormat:t,enableTime:n,noCalendar:i,time_24hr:!0};this.container.find(".date-time-input").flatpickr(o)}}),t.controlConstructor["nscu-dimension"]=t.Control.extend({ready:function(){var t=this;t.container.on("input change","input.dimension-slider",(function(){var e=t.container.find(".dimension-slider").val()+t.container.find(".dimension-unit option").filter(":selected").val();t.container.find(".dimension-number").val(t.container.find(".dimension-slider").val()),t.setting.set(e)})),t.container.on("input change","input.dimension-number",(function(){var n=e(this).val()+t.container.find(".dimension-unit option").filter(":selected").val();t.container.find(".dimension-slider").val(e(this).val()),t.setting.set(n)})),t.container.on("change","select.dimension-unit",(function(){var e=t.container.find(".dimension-slider").val()+t.container.find(".dimension-unit option").filter(":selected").val();t.setting.set(e)})),t.container.on("click",".dimension-reset",(function(n){n.preventDefault();var i=e(this).data("default-dimension-number"),o=e(this).data("default-dimension-unit");t.container.find(".dimension-slider").val(i),t.container.find(".dimension-number").val(i),t.container.find(".dimension-unit").val(o),t.setting.set(i+o)}))}}),t.controlConstructor["nscu-dropdown-taxonomies"]=t.nscuSelectControl.extend({}),t.controlConstructor["nscu-dropdown-posts"]=t.nscuSelectControl.extend({}),t.controlConstructor["nscu-dropdown-google-fonts"]=t.nscuSelectControl.extend({}),t.controlConstructor["nscu-editor"]=t.Control.extend({ready:function(){var e=this,n=e.container.find("textarea"),i="nscu-editor-"+e.id.replace("[","").replace("]",""),o=e.params.choices,r={quicktags:"both"===o.tabs||"text"===o.tabs,mediaButtons:o.media_buttons};if("both"===o.tabs||"visual"===o.tabs){var a="";"default"===o.toolbar?a="bold italic bullist numlist link":"minimal"===o.toolbar?a="bold italic link":"advance"===o.toolbar&&(a="formatselect bold italic | bullist numlist | alignleft aligncenter alignright | link"),"custom"===o.toolbar&&(a=""!==o.toolbar_buttons?o.toolbar_buttons:"bold italic bullist numlist link"),r.tinymce={wpautop:!0,toolbar1:a}}else r.tinymce=!1;wp.editor&&wp.editor.initialize&&wp.editor.initialize(i,r);var s=tinyMCE.get(i);s&&s.onChange.add((function(i){i.save();var o=s.getContent();n.val(o).trigger("change"),t.instance(e.id).set(o)}))}}),t.controlConstructor["nscu-media"]=t.Control.extend({ready:function(){var e=this,t="",n=_.uniqueId("nscu-state-"),i=e.container.find(".field-upload"),o=e.container.find(".field-remove"),r=e.container.find(".field-input"),a=e.container.find(".field-preview"),s=e.container.find(".preview-wrap"),l=i.data("mime_type"),c=i.data("uploader_title"),u=i.data("uploader_button_text"),d=wp.media.controller.Library.extend({defaults:_.defaults({id:n,title:c,allowLocalEdits:!1,displaySettings:!1,displayUserSettings:!1,multiple:!1,library:wp.media.query({type:l})},wp.media.controller.Library.prototype.defaults)});(t=wp.media.frames.nscuFileFrame=wp.media({button:{text:u},state:n,states:[new d],multiple:!1})).on("select",(function(){var e=t.state(n).get("selection").first().toJSON().url;r.val(e).trigger("change"),"image"===l&&(a.attr("src",e),s.addClass("preview-on")),""!==e&&o.removeClass("hide")})),i.on("click",(function(e){e.preventDefault(),t.open()})),o.on("click",(function(e){e.preventDefault(),s.removeClass("preview-on"),r.val("").trigger("change"),o.addClass("hide")})),r.on("change keyup paste click",(function(){var t=jQuery(this).val();e.setting.set(t),""!==t?(a.attr("src",t),s.addClass("preview-on")):s.removeClass("preview-on")}))}}),t.controlConstructor["nscu-radio"]=t.nscuBasicControl.extend({}),t.controlConstructor["nscu-radio-image"]=t.nscuBasicControl.extend({}),t.controlConstructor["nscu-range"]=t.Control.extend({ready:function(){var t=this;t.container.on("input change","input.range-input",(function(){t.container.find(".range-number").val(e(this).val())})),t.container.on("input change","input.range-number",(function(){t.setting.set(e(this).val())})),t.container.on("click",".range-reset",(function(n){n.preventDefault();var i=e(this).data("default");t.container.find(".range-number").val(i),t.setting.set(i)}))}}),t.controlConstructor["nscu-select"]=t.nscuSelectControl.extend({}),t.controlConstructor["nscu-sortable"]=t.Control.extend({ready:function(){var e=this;e.sortableContainer=e.container.find("ul.sortable").first(),e.sortableContainer.sortable({stop:function(){e.updateValue()}}).disableSelection().find("li").each((function(){jQuery(this).find("i.visibility").click((function(){jQuery(this).toggleClass("dashicons-visibility-faint").parents("li:eq(0)").toggleClass("invisible")}))})).click((function(){e.updateValue()}))},updateValue:function(){var e=[];this.sortableContainer.find("li").each((function(){jQuery(this).is(".invisible")||e.push(jQuery(this).data("value"))})),this.setting.set(e)}}),t.controlConstructor["nscu-switcher"]=t.nscuCheckboxControl.extend({}),t.controlConstructor["nscu-textarea"]=t.nscuBasicControl.extend({}),t.controlConstructor["nscu-toggle"]=t.Control.extend({ready:function(){var e=this;"off"===e.params.value&&this.container.find("input:checkbox").prop("checked",!1),this.container.on("change","input:checkbox",(function(){var t=this.checked?"on":"";e.setting.set(t)}))}}),t.nscuDummySection=t.Section.extend({attachEvents:function(){},isContextuallyActive:function(){return!0}}),t.sectionConstructor["nscu-button"]=t.nscuDummySection.extend({}),t.sectionConstructor["nscu-header"]=t.nscuDummySection.extend({}),t.sectionConstructor["nscu-upsell"]=t.nscuDummySection.extend({})}(jQuery,wp.customize)}()}();
|
1 |
+
!function(){var e={846:function(){function e(e){var t;return(e=e.replace(/ /g,"")).match(/rgba\(\d+\,\d+\,\d+\,([^\)]+)\)/)?(t=100*parseFloat(e.match(/rgba\(\d+\,\d+\,\d+\,([^\)]+)\)/)[1]).toFixed(2),t=parseInt(t)):t=100,t}function t(e,t,i,o){var r,a,s;r=t.data("a8cIris"),a=t.data("wpWpColorPicker"),r._color._alpha=e,s=r._color.toString(),t.val(s),a.toggler.css({"background-color":s}),o&&n(e,i),t.wpColorPicker("color",s)}function n(e,t){t.slider("value",e),t.find(".ui-slider-handle").text(e.toString())}Color.prototype.toString=function(e){if("no-alpha"==e)return this.toCSS("rgba","1").replace(/\s+/g,"");if(1>this._alpha)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var t=parseInt(this._color,10).toString(16);if(this.error)return"";if(t.length<6)for(var n=6-t.length-1;n>=0;n--)t="0"+t;return"#"+t},jQuery(document).ready((function(i){i(".color-picker-input").each((function(){var o,r,a,s,l,c,u,d,p;o=i(this),r=o.val().replace(/\s+/g,""),a=o.attr("data-palette"),s=o.attr("data-show-opacity"),l=o.attr("data-default-color"),alphaMode=o.attr("data-alpha-mode"),c={change:function(t,n){var i,r,a;i=o.attr("data-customize-setting-link"),r=o.wpColorPicker("color"),l==r&&(a=e(r),d.find(".ui-slider-handle").text(a)),wp.customize(i,(function(e){e.set(r)})),u.find(".transparency").css("background-color",n.color.toString("no-alpha"))},palettes:-1!==a.indexOf("|")?a.split("|"):"false"!=a},o.wpColorPicker(c),u=o.parents(".wp-picker-container:first"),"true"===alphaMode&&i('<div class="alpha-color-picker-container"><div class="min-click-zone click-zone"></div><div class="max-click-zone click-zone"></div><div class="alpha-slider"></div><div class="transparency"></div></div>').appendTo(u.find(".wp-picker-holder")),d=u.find(".alpha-slider"),p={create:function(e,t){var n=i(this).slider("value");i(this).find(".ui-slider-handle").text(n),i(this).siblings(".transparency ").css("background-color",r)},value:e(r),range:"max",step:1,min:0,max:100,animate:300},d.slider(p),"true"==s&&d.find(".ui-slider-handle").addClass("show-opacity"),u.find(".min-click-zone").on("click",(function(){t(0,o,d,!0)})),u.find(".max-click-zone").on("click",(function(){t(100,o,d,!0)})),u.find(".iris-palette").on("click",(function(){var t,r;n(r=e(t=i(this).css("background-color")),d),100!=r&&(t=t.replace(/[^,]+(?=\))/,(r/100).toFixed(2))),o.wpColorPicker("color",t)})),u.find(".button.wp-picker-clear").on("click",(function(){var e=o.attr("data-customize-setting-link");o.wpColorPicker("color","#ffffff"),wp.customize(e,(function(e){e.set("")})),n(100,d)})),u.find(".button.wp-picker-default").on("click",(function(){n(e(l),d)})),o.on("input",(function(){n(e(i(this).val()),d)})),d.slider().on("slide",(function(e,n){t(parseFloat(n.value)/100,o,d,!1),i(this).find(".ui-slider-handle").text(n.value)}))}))}))},911:function(){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var i=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},o=0,r=t;o<r.length;o++){var a=r[o];i(a)}return e})},736:function(e,t,n){var i,o,r;
|
2 |
/*!
|
3 |
* Select2 4.1.0-rc.0
|
4 |
* https://select2.github.io
|
5 |
*
|
6 |
* Released under the MIT license
|
7 |
* https://github.com/select2/select2/blob/master/LICENSE.md
|
8 |
+
*/o=[n(311)],i=function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var n,i,o;return t&&t.requirejs||(t?i=t:t={},function(e){var t,r,a,s,l={},c={},u={},d={},p=Object.prototype.hasOwnProperty,h=[].slice,f=/\.js$/;function g(e,t){return p.call(e,t)}function m(e,t){var n,i,o,r,a,s,l,c,d,p,h,g=t&&t.split("/"),m=u.map,v=m&&m["*"]||{};if(e){for(a=(e=e.split("/")).length-1,u.nodeIdCompat&&f.test(e[a])&&(e[a]=e[a].replace(f,"")),"."===e[0].charAt(0)&&g&&(e=g.slice(0,g.length-1).concat(e)),d=0;d<e.length;d++)if("."===(h=e[d]))e.splice(d,1),d-=1;else if(".."===h){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((g||v)&&m){for(d=(n=e.split("/")).length;d>0;d-=1){if(i=n.slice(0,d).join("/"),g)for(p=g.length;p>0;p-=1)if((o=m[g.slice(0,p).join("/")])&&(o=o[i])){r=o,s=d;break}if(r)break;!l&&v&&v[i]&&(l=v[i],c=d)}!r&&l&&(r=l,s=c),r&&(n.splice(0,s,r),e=n.join("/"))}return e}function v(t,n){return function(){var i=h.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),r.apply(e,i.concat([t,n]))}}function y(e){return function(t){return m(t,e)}}function b(e){return function(t){l[e]=t}}function w(n){if(g(c,n)){var i=c[n];delete c[n],d[n]=!0,t.apply(e,i)}if(!g(l,n)&&!g(d,n))throw new Error("No "+n);return l[n]}function _(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function D(e){return e?_(e):[]}function C(e){return function(){return u&&u.config&&u.config[e]||{}}}a=function(e,t){var n,i=_(e),o=i[0],r=t[1];return e=i[1],o&&(n=w(o=m(o,r))),o?e=n&&n.normalize?n.normalize(e,y(r)):m(e,r):(o=(i=_(e=m(e,r)))[0],e=i[1],o&&(n=w(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},s={require:function(e){return v(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:C(e)}}},t=function(t,n,i,o){var r,u,p,h,f,m,y,_=[],C=typeof i;if(m=D(o=o||t),"undefined"===C||"function"===C){for(n=!n.length&&i.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if("require"===(u=(h=a(n[f],m)).f))_[f]=s.require(t);else if("exports"===u)_[f]=s.exports(t),y=!0;else if("module"===u)r=_[f]=s.module(t);else if(g(l,u)||g(c,u)||g(d,u))_[f]=w(u);else{if(!h.p)throw new Error(t+" missing "+u);h.p.load(h.n,v(o,!0),b(u),{}),_[f]=l[u]}p=i?i.apply(l[t],_):void 0,t&&(r&&r.exports!==e&&r.exports!==l[t]?l[t]=r.exports:p===e&&y||(l[t]=p))}else t&&(l[t]=i)},n=i=r=function(n,i,o,l,c){if("string"==typeof n)return s[n]?s[n](i):w(a(n,D(i)).f);if(!n.splice){if((u=n).deps&&r(u.deps,u.callback),!i)return;i.splice?(n=i,i=o,o=null):n=e}return i=i||function(){},"function"==typeof o&&(o=l,l=c),l?t(e,n,i,o):setTimeout((function(){t(e,n,i,o)}),4),r},r.config=function(e){return r(e)},n._defined=l,(o=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),g(l,e)||g(c,e)||(c[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=n,t.require=i,t.define=o),t.define("almond",(function(){})),t.define("jquery",[],(function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t})),t.define("select2/utils",["jquery"],(function(e){var t={};function n(e){var t=e.prototype,n=[];for(var i in t)"function"==typeof t[i]&&"constructor"!==i&&n.push(i);return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var o in t)n.call(t,o)&&(e[o]=t[o]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},t.Decorate=function(e,t){var i=n(t),o=n(e);function r(){var n=Array.prototype.unshift,i=t.prototype.constructor.length,o=e.prototype.constructor;i>0&&(n.call(arguments,e.prototype.constructor),o=t.prototype.constructor),o.apply(this,arguments)}function a(){this.constructor=r}t.displayName=e.displayName,r.prototype=new a;for(var s=0;s<o.length;s++){var l=o[s];r.prototype[l]=e.prototype[l]}for(var c=function(e){var n=function(){};e in r.prototype&&(n=r.prototype[e]);var i=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,n),i.apply(this,arguments)}},u=0;u<i.length;u++){var d=i[u];r.prototype[d]=c(d)}return r};var i=function(){this.listeners={}};i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},t.Observable=i,t.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var r=n[o];(r=r.substring(0,1).toLowerCase()+r.substring(1))in i||(i[r]={}),o==n.length-1&&(i[r]=e[t]),i=i[r]}delete e[t]}}return e},t.hasScroll=function(t,n){var i=e(n),o=n.style.overflowX,r=n.style.overflowY;return(o!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===o||"scroll"===r||i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth)},t.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.__cache={};var o=0;return t.GetUniqueElementId=function(e){var n=e.getAttribute("data-select2-id");return null!=n||(n=e.id?"select2-data-"+e.id:"select2-data-"+(++o).toString()+"-"+t.generateChars(4),e.setAttribute("data-select2-id",n)),n},t.StoreData=function(e,n,i){var o=t.GetUniqueElementId(e);t.__cache[o]||(t.__cache[o]={}),t.__cache[o][n]=i},t.GetData=function(n,i){var o=t.GetUniqueElementId(n);return i?t.__cache[o]&&null!=t.__cache[o][i]?t.__cache[o][i]:e(n).data(i):t.__cache[o]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t.copyNonInternalCssClasses=function(e,t){var n=e.getAttribute("class").trim().split(/\s+/);n=n.filter((function(e){return 0===e.indexOf("select2-")}));var i=t.getAttribute("class").trim().split(/\s+/);i=i.filter((function(e){return 0!==e.indexOf("select2-")}));var o=n.concat(i);e.setAttribute("class",o.join(" "))},t})),t.define("select2/results",["jquery","./utils"],(function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),o=this.options.get("translations").get(t.message);i.append(n(o(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],o=this.option(i);t.push(o)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current((function(i){var o=i.map((function(e){return e.id.toString()}));n.$results.find(".select2-results__option--selectable").each((function(){var n=e(this),i=t.GetData(this,"data"),r=""+i.id;null!=i.element&&i.element.selected||null==i.element&&o.indexOf(r)>-1?(this.classList.add("select2-results__option--selected"),n.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),n.attr("aria-selected","false"))}))}))},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.classList.add("select2-results__option"),i.classList.add("select2-results__option--selectable");var o={role:"option"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var a in(null!=n.element&&r.call(n.element,":disabled")||null==n.element&&n.disabled)&&(o["aria-disabled"]="true",i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--disabled")),null==n.id&&i.classList.remove("select2-results__option--selectable"),null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(o.role="group",o["aria-label"]=n.text,i.classList.remove("select2-results__option--selectable"),i.classList.add("select2-results__option--group")),o){var s=o[a];i.setAttribute(a,s)}if(n.children){var l=e(i),c=document.createElement("strong");c.className="select2-results__group",this.template(n,c);for(var u=[],d=0;d<n.children.length;d++){var p=n.children[d],h=this.option(p);u.push(h)}var f=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});f.append(u),l.append(c),l.append(f)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var o=this,r=n.id+"-results";this.$results.attr("id",r),n.on("results:all",(function(e){o.clear(),o.append(e.data),n.isOpen()&&(o.setClasses(),o.highlightFirstItem())})),n.on("results:append",(function(e){o.append(e.data),n.isOpen()&&o.setClasses()})),n.on("query",(function(e){o.hideMessages(),o.showLoading(e)})),n.on("select",(function(){n.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(o.setClasses(),o.options.get("scrollAfterSelect")&&o.highlightFirstItem())})),n.on("open",(function(){o.$results.attr("aria-expanded","true"),o.$results.attr("aria-hidden","false"),o.setClasses(),o.ensureHighlightVisible()})),n.on("close",(function(){o.$results.attr("aria-expanded","false"),o.$results.attr("aria-hidden","true"),o.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var e=o.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),n.on("results:select",(function(){var e=o.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");e.hasClass("select2-results__option--selected")?o.trigger("close",{}):o.trigger("select",{data:n})}})),n.on("results:previous",(function(){var e=o.getHighlightedResults(),t=o.$results.find(".select2-results__option--selectable"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var a=o.$results.offset().top,s=r.offset().top,l=o.$results.scrollTop()+(s-a);0===i?o.$results.scrollTop(0):s-a<0&&o.$results.scrollTop(l)}})),n.on("results:next",(function(){var e=o.getHighlightedResults(),t=o.$results.find(".select2-results__option--selectable"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=o.$results.offset().top+o.$results.outerHeight(!1),a=i.offset().top+i.outerHeight(!1),s=o.$results.scrollTop()+a-r;0===n?o.$results.scrollTop(0):a>r&&o.$results.scrollTop(s)}})),n.on("results:focus",(function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")})),n.on("results:message",(function(e){o.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=o.$results.scrollTop(),n=o.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&n<=o.$results.height();i?(o.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(o.$results.scrollTop(o.$results.get(0).scrollHeight-o.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option--selectable",(function(n){var i=e(this),r=t.GetData(this,"data");i.hasClass("select2-results__option--selected")?o.options.get("multiple")?o.trigger("unselect",{originalEvent:n,data:r}):o.trigger("close",{}):o.trigger("select",{originalEvent:n,data:r})})),this.$results.on("mouseenter",".select2-results__option--selectable",(function(n){var i=t.GetData(this,"data");o.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),o.trigger("results:focus",{data:i,element:e(this)})}))},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(".select2-results__option--selectable").index(e),n=this.$results.offset().top,i=e.offset().top,o=this.$results.scrollTop()+(i-n),r=i-n;o-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(r>this.$results.outerHeight()||r<0)&&this.$results.scrollTop(o)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),r=i(t,n);null==r?n.style.display="none":"string"==typeof r?n.innerHTML=o(r):e(n).append(r)},n})),t.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),t.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},i.prototype.bind=function(e,t){var i=this,o=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){i.trigger("focus",e)})),this.$selection.on("blur",(function(e){i._handleBlur(e)})),this.$selection.on("keydown",(function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){i.update(e.data)})),e.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",o),i._attachCloseHandler(e)})),e.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(e)})),e.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")}))},i.prototype._handleBlur=function(t){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)}),1)},i.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,(function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=i[0]&&t.GetData(this,"element").select2("close")}))}))},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i})),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.attr("aria-controls",i),this.$selection.on("mousedown",(function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||n.$selection.trigger("focus")}))},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var o=t.title||t.text;o?n.attr("title",o):n.removeAttr("title")}else this.clear()},o})),t.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,o){var r=this;i.__super__.bind.apply(this,arguments);var a=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",a),this.$selection.on("click",(function(e){r.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){if(!r.isDisabled()){var i=e(this).parent(),o=n.GetData(i[0],"data");r.trigger("unselect",{originalEvent:t,data:o})}})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(e){r.isDisabled()||e.stopPropagation()}))},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">×</span></button><span class="select2-selection__choice__display"></span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",o=0;o<e.length;o++){var r=e[o],a=this.selectionContainer(),s=this.display(r,a),l=i+n.generateChars(4)+"-";r.id?l+=r.id:l+=n.generateChars(4),a.find(".select2-selection__choice__display").append(s).attr("id",l);var c=r.title||r.text;c&&a.attr("title",c);var u=this.options.get("translations").get("removeItem"),d=a.find(".select2-selection__choice__remove");d.attr("title",u()),d.attr("aria-label",u()),d.attr("aria-describedby",l),n.StoreData(a[0],"data",r),t.push(a)}this.$selection.find(".select2-selection__rendered").append(t)}},i})),t.define("select2/selection/placeholder",[],(function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice");var i=t.title||t.text||n.text();return this.$selection.find(".select2-selection__rendered").attr("title",i),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e})),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(e,t,n){function i(){}return i.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(e){i._handleClear(e)})),t.on("keypress",(function(e){i._handleKeyboardClear(e,t)}))},i.prototype._handleClear=function(e,t){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var o=n.GetData(i[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var a={data:o};if(this.trigger("clear",a),a.prevented)this.$element.val(r);else{for(var s=0;s<o.length;s++)if(a={data:o[s]},this.trigger("unselect",a),a.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},i.prototype.update=function(t,i){if(t.call(this,i),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var o=this.$selection.find(".select2-selection__rendered").attr("id"),r=this.options.get("translations").get("removeAllItems"),a=e('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">×</span></button>');a.attr("title",r()),a.attr("aria-label",r()),a.attr("aria-describedby",o),n.StoreData(a[0],"data",i),this.$selection.prepend(a),this.$selection[0].classList.add("select2-selection--clearable")}},i})),t.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=this.options.get("translations").get("search"),i=e('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=i,this.$search=i.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n());var o=t.call(this);return this._transferTabIndex(),o.append(this.$searchContainer),o},i.prototype.bind=function(e,i,o){var r=this,a=i.id+"-results",s=i.id+"-container";e.call(this,i,o),r.$search.attr("aria-describedby",s),i.on("open",(function(){r.$search.attr("aria-controls",a),r.$search.trigger("focus")})),i.on("close",(function(){r.$search.val(""),r.resizeSearch(),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")})),i.on("enable",(function(){r.$search.prop("disabled",!1),r._transferTabIndex()})),i.on("disable",(function(){r.$search.prop("disabled",!0)})),i.on("focus",(function(e){r.$search.trigger("focus")})),i.on("results:focus",(function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){r.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){r._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===r.$search.val()){var i=r.$selection.find(".select2-selection__choice").last();if(i.length>0){var o=t.GetData(i[0],"data");r.searchRemoveChoice(o),e.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(e){r.$search.val()&&e.stopPropagation()}));var l=document.documentMode,c=l&&l<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){c?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(c&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&r.handleSearch(e)}}))},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},i})),t.define("select2/selection/selectionCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("selectionCssClass")||"";return-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(i),n},t})),t.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,n,i){var o=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",(function(t,n){if(-1!==r.indexOf(t)){n=n||{};var i=e.Event("select2:"+t,{params:n});o.$element.trigger(i),-1!==a.indexOf(t)&&(n.prevented=i.isDefaultPrevented())}}))},t})),t.define("select2/translation",["jquery","require"],(function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n})),t.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),t.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t})),t.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(e){return t.item(n(e))})))},i.prototype.select=function(e){var t=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(n){var i=[];(e=[e]).push.apply(e,n);for(var o=0;o<e.length;o++){var r=e[o].id;-1===i.indexOf(r)&&i.push(r)}t.$element.val(i),t.$element.trigger("input").trigger("change")}));else{var n=e.id;this.$element.val(n),this.$element.trigger("input").trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(n){for(var i=[],o=0;o<n.length;o++){var r=n[o].id;r!==e.id&&-1===i.indexOf(r)&&i.push(r)}t.$element.val(i),t.$element.trigger("input").trigger("change")}))}},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",(function(e){n.select(e.data)})),e.on("unselect",(function(e){n.unselect(e.data)}))},i.prototype.destroy=function(){this.$element.find("*").each((function(){t.RemoveData(this)}))},i.prototype.query=function(e,t){var i=[],o=this;this.$element.children().each((function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var t=n(this),r=o.item(t),a=o.matches(e,r);null!==a&&i.push(a)}})),t({results:i})},i.prototype.addOptions=function(e){this.$element.append(e)},i.prototype.option=function(e){var i;e.children?(i=document.createElement("optgroup")).label=e.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=e.text:i.innerText=e.text,void 0!==e.id&&(i.value=e.id),e.disabled&&(i.disabled=!0),e.selected&&(i.selected=!0),e.title&&(i.title=e.title);var o=this._normalizeItem(e);return o.element=i,t.StoreData(i,"data",o),n(i)},i.prototype.item=function(e){var i={};if(null!=(i=t.GetData(e[0],"data")))return i;var o=e[0];if("option"===o.tagName.toLowerCase())i={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===o.tagName.toLowerCase()){i={text:e.prop("label"),children:[],title:e.prop("title")};for(var r=e.children("option"),a=[],s=0;s<r.length;s++){var l=n(r[s]),c=this.item(l);a.push(c)}i.children=a}return(i=this._normalizeItem(i)).element=e[0],t.StoreData(e[0],"data",i),i},i.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});var t={selected:!1,disabled:!1};return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},t,e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i})),t.define("select2/data/array",["./select","../utils","jquery"],(function(e,t,n){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,n){return n.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){var t=this,i=this.$element.find("option"),o=i.map((function(){return t.item(n(this)).id})).get(),r=[];function a(e){return function(){return n(this).val()==e.id}}for(var s=0;s<e.length;s++){var l=this._normalizeItem(e[s]);if(o.indexOf(l.id)>=0){var c=i.filter(a(l)),u=this.item(c),d=n.extend(!0,{},l,u),p=this.option(d);c.replaceWith(p)}else{var h=this.option(l);if(l.children){var f=this.convertToOptions(l.children);h.append(f)}r.push(h)}}return r},i})),t.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var o=n.ajax(e);return o.then(t),o.fail(i),o}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){var i=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var o=n.extend({type:"GET"},this.ajaxOptions);function r(){var n=o.transport(o,(function(n){var o=i.processResults(n,e);i.options.get("debug")&&window.console&&console.error&&(o&&o.results&&Array.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(o)}),(function(){(!("status"in n)||0!==n.status&&"0"!==n.status)&&i.trigger("results:message",{message:"errorLoading"})}));i._request=n}"function"==typeof o.url&&(o.url=o.url.call(this.$element,e)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},i})),t.define("select2/data/tags",["jquery"],(function(e){function t(e,t,n){var i=n.get("tags"),o=n.get("createTag");void 0!==o&&(this.createTag=o);var r=n.get("insertTag");if(void 0!==r&&(this.insertTag=r),e.call(this,t,n),Array.isArray(i))for(var a=0;a<i.length;a++){var s=i[a],l=this._normalizeItem(s),c=this.option(l);this.$element.append(c)}}return t.prototype.query=function(e,t,n){var i=this;function o(e,r){for(var a=e.results,s=0;s<a.length;s++){var l=a[s],c=null!=l.children&&!o({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!r&&(e.data=a,void n(e))}if(r)return!0;var u=i.createTag(t);if(null!=u){var d=i.option(u);d.attr("data-select2-tag","true"),i.addOptions([d]),i.insertTag(a,u)}e.results=a,n(e)}this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,o):e.call(this,t,n)},t.prototype.createTag=function(e,t){if(null==t.term)return null;var n=t.term.trim();return""===n?null:{id:n,text:n}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each((function(){this.selected||e(this).remove()}))},t})),t.define("select2/data/tokenizer",["jquery"],(function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){var o=this;function r(t){var n=o._normalizeItem(t);if(!o.$element.find("option").filter((function(){return e(this).val()===n.id})).length){var i=o.option(n);i.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([i])}a(n)}function a(e){o.trigger("select",{data:e})}n.term=n.term||"";var s=this.tokenizer(n,this.options,r);s.term!==n.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.trigger("focus")),n.term=s.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,o){for(var r=i.get("tokenSeparators")||[],a=n.term,s=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};s<a.length;){var c=a[s];if(-1!==r.indexOf(c)){var u=a.substr(0,s),d=l(e.extend({},n,{term:u}));null!=d?(o(d),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},t})),t.define("select2/data/minimumInputLength",[],(function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumInputLength",[],(function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),t.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(){i._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected((function(){e.call(i,t,n)}))},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current((function(e){var i=null!=e?e.length:0;n.maximumSelectionLength>0&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()}))},e})),t.define("select2/dropdown",["jquery","./utils"],(function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),t.define("select2/dropdown/search",["jquery"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("translations").get("search"),o=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=o,this.$search=o.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i()),n.prepend(o),n},t.prototype.bind=function(t,n,i){var o=this,r=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",(function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){o.handleSearch(e)})),n.on("open",(function(){o.$search.attr("tabindex",0),o.$search.attr("aria-controls",r),o.$search.trigger("focus"),window.setTimeout((function(){o.$search.trigger("focus")}),0)})),n.on("close",(function(){o.$search.attr("tabindex",-1),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.val(""),o.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||o.$search.trigger("focus")})),n.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(o.showSearch(e)?o.$searchContainer[0].classList.remove("select2-search--hide"):o.$searchContainer[0].classList.add("select2-search--hide"))})),n.on("results:focus",(function(e){e.data._resultId?o.$search.attr("aria-activedescendant",e.data._resultId):o.$search.removeAttr("aria-activedescendant")}))},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t})),t.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e})),t.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",(function(e){i.lastParams=e,i.loading=!0})),t.on("query:append",(function(e){i.lastParams=e,i.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore()},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t})),t.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function n(t,n,i){this.$dropdownParent=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)})),t.on("close",(function(){i._hideDropdown(),i._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var o=this,r="scroll.select2."+i.id,a="resize.select2."+i.id,s="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),l.on(r,(function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)})),e(window).on(r+" "+a+" "+s,(function(e){o._positionDropdown(),o._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,i){var o="scroll.select2."+i.id,r="resize.select2."+i.id,a="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(o),e(window).off(o+" "+r+" "+a)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown[0].classList.contains("select2-dropdown--above"),i=this.$dropdown[0].classList.contains("select2-dropdown--below"),o=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=r.top,a.bottom=r.top+a.height;var s={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},c=l.top<r.top-s.height,u=l.bottom>r.bottom+s.height,d={left:r.left,top:a.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(e.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,n||i||(o="below"),u||!c||n?!c&&u&&n&&(o="below"):o="above",("above"==o||n&&"below"!==o)&&(d.top=a.top-h.top-s.height),null!=o&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+o),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+o)),this.$dropdownContainer.css(d)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),t.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(t){for(var n=0,i=0;i<t.length;i++){var o=t[i];o.children?n+=e(o.children):n++}return n}function t(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t})),t.define("select2/dropdown/selectOnClose",["../utils"],(function(e){function t(){}return t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",(function(e){i._handleSelectOnClose(e)}))},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var o=this.getHighlightedResults();if(!(o.length<1)){var r=e.GetData(o[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},t})),t.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(e){i._selectTriggered(e)})),t.on("unselect",(function(e){i._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e})),t.define("select2/dropdown/dropdownCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("dropdownCssClass")||"";return-1!==i.indexOf(":all:")&&(i=i.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(i),n},t})),t.define("select2/dropdown/tagsSearchHighlight",["../utils"],(function(e){function t(){}return t.prototype.highlightFirstItem=function(t){var n=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(n.length>0){var i=n.first(),o=e.GetData(i[0],"data").element;if(o&&o.getAttribute&&"true"===o.getAttribute("data-select2-tag"))return void i.trigger("mouseenter")}t.call(this)},t})),t.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}})),t.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],(function(e,t,n,i,o,r,a,s,l,c,u,d,p,h,f,g,m,v,y,b,w,_,D,C,x,M,E,$,k,A,S){function T(){this.reset()}return T.prototype.apply=function(u){if(null==(u=e.extend(!0,{},this.defaults,u)).dataAdapter&&(null!=u.ajax?u.dataAdapter=f:null!=u.data?u.dataAdapter=h:u.dataAdapter=p,u.minimumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),u.maximumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),u.maximumSelectionLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,b)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,g)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,m))),null==u.resultsAdapter&&(u.resultsAdapter=t,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,C)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,D)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,E)),u.tags&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,A))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=w;else{var d=c.Decorate(w,_);u.dropdownAdapter=d}0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,M)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,$)),null!=u.dropdownCssClass&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,k)),u.dropdownAdapter=c.Decorate(u.dropdownAdapter,x)}null==u.selectionAdapter&&(u.multiple?u.selectionAdapter=i:u.selectionAdapter=n,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,o)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,r)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),null!=u.selectionCssClass&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),u.selectionAdapter=c.Decorate(u.selectionAdapter,l)),u.language=this._resolveLanguage(u.language),u.language.push("en");for(var S=[],T=0;T<u.language.length;T++){var O=u.language[T];-1===S.indexOf(O)&&S.push(O)}return u.language=S,u.translations=this._processTranslations(u.language,u.debug),u},T.prototype.reset=function(){function t(e){function t(e){return d[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function n(i,o){if(null==i.term||""===i.term.trim())return o;if(o.children&&o.children.length>0){for(var r=e.extend(!0,{},o),a=o.children.length-1;a>=0;a--)null==n(i,o.children[a])&&r.children.splice(a,1);return r.children.length>0?r:n(i,r)}var s=t(o.text).toUpperCase(),l=t(i.term).toUpperCase();return s.indexOf(l)>-1?o:null}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},T.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,o=t.prop("lang"),r=t.closest("[lang]").prop("lang"),a=Array.prototype.concat.call(this._resolveLanguage(o),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(r));return e.language=a,e},T.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=Array.isArray(t)?t:[t];for(var i=[],o=0;o<n.length;o++)if(i.push(n[o]),"string"==typeof n[o]&&n[o].indexOf("-")>0){var r=n[o].split("-")[0];i.push(r)}return i},T.prototype._processTranslations=function(t,n){for(var i=new u,o=0;o<t.length;o++){var r=new u,a=t[o];if("string"==typeof a)try{r=u.loadPath(a)}catch(e){try{a=this.defaults.amdLanguageBase+a,r=u.loadPath(a)}catch(e){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+a+'" could not be automatically loaded. A fallback will be used instead.')}}else r=e.isPlainObject(a)?new u(a):a;i.extend(r)}return i},T.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var o=c._convertData(i);e.extend(!0,this.defaults,o)},new T})),t.define("select2/options",["jquery","./defaults","./utils"],(function(e,t,n){function i(e,n){this.options=e,null!=n&&this.fromElement(n),null!=n&&(this.options=t.applyFromElement(this.options,n)),this.options=t.apply(this.options)}return i.prototype.fromElement=function(t){var i=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.autocomplete&&t.prop("autocomplete")&&(this.options.autocomplete=t.prop("autocomplete")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),n.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.StoreData(t[0],"data",n.GetData(t[0],"select2Tags")),n.StoreData(t[0],"tags",!0)),n.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",n.GetData(t[0],"ajaxUrl")),n.StoreData(t[0],"ajax-Url",n.GetData(t[0],"ajaxUrl")));var o={};function r(e,t){return t.toUpperCase()}for(var a=0;a<t[0].attributes.length;a++){var s=t[0].attributes[a].name,l="data-";if(s.substr(0,l.length)==l){var c=s.substring(l.length),u=n.GetData(t[0],c);o[c.replace(/-([a-z])/g,r)]=u}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(o=e.extend(!0,{},t[0].dataset,o));var d=e.extend(!0,{},n.GetData(t[0]),o);for(var p in d=n._convertData(d))i.indexOf(p)>-1||(e.isPlainObject(this.options[p])?e.extend(this.options[p],d[p]):this.options[p]=d[p]);return this},i.prototype.get=function(e){return this.options[e]},i.prototype.set=function(e,t){this.options[e]=t},i})),t.define("select2/core",["jquery","./options","./utils","./keys"],(function(e,t,n,i){var o=function(e,i){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),o.__super__.constructor.call(this);var r=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",r),e.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(e,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){d.trigger("selection:update",{data:e})})),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var o=e.outerWidth(!1);return o<=0?"auto":o+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var a=r.split(";"),s=0,l=a.length;s<l;s+=1){var c=a[s].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},o.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this._observer=new window.MutationObserver((function(t){e._syncA(),e._syncS(t)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",(function(t,n){e.trigger(t,n)}))},o.prototype._registerSelectionEvents=function(){var e=this,t=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(n,i){-1===t.indexOf(n)&&e.trigger(n,i)}))},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,n){e.trigger(t,n)}))},o.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,n){e.trigger(t,n)}))},o.prototype._registerEvents=function(){var e=this;this.on("open",(function(){e.$container[0].classList.add("select2-container--open")})),this.on("close",(function(){e.$container[0].classList.remove("select2-container--open")})),this.on("enable",(function(){e.$container[0].classList.remove("select2-container--disabled")})),this.on("disable",(function(){e.$container[0].classList.add("select2-container--disabled")})),this.on("blur",(function(){e.$container[0].classList.remove("select2-container--focus")})),this.on("query",(function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,(function(n){e.trigger("results:all",{data:n,query:t})}))})),this.on("query:append",(function(t){this.dataAdapter.query(t,(function(n){e.trigger("results:append",{data:n,query:t})}))})),this.on("keypress",(function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.UP&&t.altKey?(e.close(t),t.preventDefault()):n===i.ENTER||n===i.TAB?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())}))},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},o.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&e.addedNodes.length>0){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&e.removedNodes.length>0)return!0;if(Array.isArray(e))return e.some((function(e){return t._isChangeMutation(e)}))}return!1},o.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),n=this;t&&this.dataAdapter.current((function(e){n.trigger("selection:update",{data:e})}))},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var r=i[e],a={prevented:!1,name:e,args:t};if(n.call(this,r,a),a.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},o.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},o.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},o.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},o.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current((function(t){e=t})),e},o.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];Array.isArray(t)&&(t=t.map((function(e){return e.toString()}))),this.$element.val(t).trigger("input").trigger("change")},o.prototype.destroy=function(){n.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},o})),t.define("jquery-mousewheel",["jquery"],(function(e){return e})),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,n,i,o){if(null==e.fn.select2){var r=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var i=e.extend(!0,{},t);new n(e(this),i)})),this;if("string"==typeof t){var i,a=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=o.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,a)})),r.indexOf(t)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n})),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n},void 0===(r="function"==typeof i?i.apply(t,o):i)||(e.exports=r)},311:function(e){"use strict";e.exports=jQuery}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}!function(){"use strict";n(736);var e=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],t={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},i={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},o=i,r=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},a=function(e){return!0===e?1:0};function s(e,t){var n;return function(){var i=this,o=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(i,o)}),t)}}var l=function(e){return e instanceof Array?e:[e]};function c(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function u(e,t,n){var i=window.document.createElement(e);return t=t||"",n=n||"",i.className=t,void 0!==n&&(i.textContent=n),i}function d(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function p(e,t){return t(e)?e:e.parentNode?p(e.parentNode,t):void 0}function h(e,t){var n=u("div","numInputWrapper"),i=u("input","numInput "+e),o=u("span","arrowUp"),r=u("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==t)for(var a in t)i.setAttribute(a,t[a]);return n.appendChild(i),n.appendChild(o),n.appendChild(r),n}function f(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var g=function(){},m=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},v={D:g,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*a(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t,n){var i=parseInt(t),o=new Date(e.getFullYear(),0,2+7*(i-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+n.firstDayOfWeek),o},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:g,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},u:function(e,t){return new Date(parseFloat(t))},w:g,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},y={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},b={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[b.w(e,t,n)]},F:function(e,t,n){return m(b.n(e,t,n)-1,!1,t)},G:function(e,t,n){return r(b.h(e,t,n))},H:function(e){return r(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[a(e.getHours()>11)]},M:function(e,t){return m(e.getMonth(),!0,t)},S:function(e){return r(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return r(e.getFullYear(),4)},d:function(e){return r(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return r(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return r(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},w=function(e){var n=e.config,o=void 0===n?t:n,r=e.l10n,a=void 0===r?i:r,s=e.isMobile,l=void 0!==s&&s;return function(e,t,n){var i=n||a;return void 0===o.formatDate||l?t.split("").map((function(t,n,r){return b[t]&&"\\"!==r[n-1]?b[t](e,i,o):"\\"!==t?t:""})).join(""):o.formatDate(e,t,i)}},D=function(e){var n=e.config,o=void 0===n?t:n,r=e.l10n,a=void 0===r?i:r;return function(e,n,i,r){if(0===e||e){var s,l=r||a,c=e;if(e instanceof Date)s=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e);else if("string"==typeof e){var u=n||(o||t).dateFormat,d=String(e).trim();if("today"===d)s=new Date,i=!0;else if(o&&o.parseDate)s=o.parseDate(e,u);else if(/Z$/.test(d)||/GMT$/.test(d))s=new Date(e);else{for(var p=void 0,h=[],f=0,g=0,m="";f<u.length;f++){var b=u[f],w="\\"===b,_="\\"===u[f-1]||w;if(y[b]&&!_){m+=y[b];var D=new RegExp(m).exec(e);D&&(p=!0)&&h["Y"!==b?"push":"unshift"]({fn:v[b],val:D[++g]})}else w||(m+=".")}s=o&&o.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),h.forEach((function(e){var t=e.fn,n=e.val;return s=t(s,n,l)||s})),s=p?s:void 0}}if(s instanceof Date&&!isNaN(s.getTime()))return!0===i&&s.setHours(0,0,0,0),s;o.errorHandler(new Error("Invalid date provided: "+c))}}};function C(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var x=function(e,t,n){return 3600*e+60*t+n},M=864e5;function E(e){var t=e.defaultHour,n=e.defaultMinute,i=e.defaultSeconds;if(void 0!==e.minDate){var o=e.minDate.getHours(),r=e.minDate.getMinutes(),a=e.minDate.getSeconds();t<o&&(t=o),t===o&&n<r&&(n=r),t===o&&n===r&&i<a&&(i=e.minDate.getSeconds())}if(void 0!==e.maxDate){var s=e.maxDate.getHours(),l=e.maxDate.getMinutes();(t=Math.min(t,s))===s&&(n=Math.min(l,n)),t===s&&n===l&&(i=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:i}}n(911);var $=function(){return $=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$.apply(this,arguments)},k=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),o=0;for(t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i};function A(n,i){var g={config:$($({},t),T.defaultConfig),l10n:o};function v(){var e;return(null===(e=g.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function b(e){return e.bind(g)}function _(){var e=g.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==g.calendarContainer&&(g.calendarContainer.style.visibility="hidden",g.calendarContainer.style.display="block"),void 0!==g.daysContainer){var t=(g.days.offsetWidth+1)*e.showMonths;g.daysContainer.style.width=t+"px",g.calendarContainer.style.width=t+(void 0!==g.weekWrapper?g.weekWrapper.offsetWidth:0)+"px",g.calendarContainer.style.removeProperty("visibility"),g.calendarContainer.style.removeProperty("display")}}))}function A(e){if(0===g.selectedDates.length){var t=void 0===g.config.minDate||C(new Date,g.config.minDate)>=0?new Date:new Date(g.config.minDate.getTime()),n=E(g.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),g.selectedDates=[t],g.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=f(e),i=n;void 0!==g.amPM&&n===g.amPM&&(g.amPM.textContent=g.l10n.amPM[a(g.amPM.textContent===g.l10n.amPM[0])]);var o=parseFloat(i.getAttribute("min")),s=parseFloat(i.getAttribute("max")),l=parseFloat(i.getAttribute("step")),c=parseInt(i.value,10),u=e.delta||(t?38===e.which?1:-1:0),d=c+l*u;if(void 0!==i.value&&2===i.value.length){var p=i===g.hourElement,h=i===g.minuteElement;d<o?(d=s+d+a(!p)+(a(p)&&a(!g.amPM)),h&&H(void 0,-1,g.hourElement)):d>s&&(d=i===g.hourElement?d-s-a(!g.amPM):o,h&&H(void 0,1,g.hourElement)),g.amPM&&p&&(1===l?d+c===23:Math.abs(d-c)>l)&&(g.amPM.textContent=g.l10n.amPM[a(g.amPM.textContent===g.l10n.amPM[0])]),i.value=r(d)}}(e);var i=g._input.value;S(),Ce(),g._input.value!==i&&g._debouncedChange()}function S(){if(void 0!==g.hourElement&&void 0!==g.minuteElement){var e,t,n=(parseInt(g.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(g.minuteElement.value,10)||0)%60,o=void 0!==g.secondElement?(parseInt(g.secondElement.value,10)||0)%60:0;void 0!==g.amPM&&(e=n,t=g.amPM.textContent,n=e%12+12*a(t===g.l10n.amPM[1]));var r=void 0!==g.config.minTime||g.config.minDate&&g.minDateHasTime&&g.latestSelectedDateObj&&0===C(g.latestSelectedDateObj,g.config.minDate,!0),s=void 0!==g.config.maxTime||g.config.maxDate&&g.maxDateHasTime&&g.latestSelectedDateObj&&0===C(g.latestSelectedDateObj,g.config.maxDate,!0);if(void 0!==g.config.maxTime&&void 0!==g.config.minTime&&g.config.minTime>g.config.maxTime){var l=x(g.config.minTime.getHours(),g.config.minTime.getMinutes(),g.config.minTime.getSeconds()),c=x(g.config.maxTime.getHours(),g.config.maxTime.getMinutes(),g.config.maxTime.getSeconds()),u=x(n,i,o);if(u>c&&u<l){var d=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]}(l);n=d[0],i=d[1],o=d[2]}}else{if(s){var p=void 0!==g.config.maxTime?g.config.maxTime:g.config.maxDate;(n=Math.min(n,p.getHours()))===p.getHours()&&(i=Math.min(i,p.getMinutes())),i===p.getMinutes()&&(o=Math.min(o,p.getSeconds()))}if(r){var h=void 0!==g.config.minTime?g.config.minTime:g.config.minDate;(n=Math.max(n,h.getHours()))===h.getHours()&&i<h.getMinutes()&&(i=h.getMinutes()),i===h.getMinutes()&&(o=Math.max(o,h.getSeconds()))}}I(n,i,o)}}function O(e){var t=e||g.latestSelectedDateObj;t&&t instanceof Date&&I(t.getHours(),t.getMinutes(),t.getSeconds())}function I(e,t,n){void 0!==g.latestSelectedDateObj&&g.latestSelectedDateObj.setHours(e%24,t,n||0,0),g.hourElement&&g.minuteElement&&!g.isMobile&&(g.hourElement.value=r(g.config.time_24hr?e:(12+e)%12+12*a(e%12==0)),g.minuteElement.value=r(t),void 0!==g.amPM&&(g.amPM.textContent=g.l10n.amPM[a(e>=12)]),void 0!==g.secondElement&&(g.secondElement.value=r(n)))}function L(e){var t=f(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&ee(n)}function P(e,t,n,i){return t instanceof Array?t.forEach((function(t){return P(e,t,n,i)})):e instanceof Array?e.forEach((function(e){return P(e,t,n,i)})):(e.addEventListener(t,n,i),void g._handlers.push({remove:function(){return e.removeEventListener(t,n,i)}}))}function j(){ye("onChange")}function N(e,t){var n=void 0!==e?g.parseDate(e):g.latestSelectedDateObj||(g.config.minDate&&g.config.minDate>g.now?g.config.minDate:g.config.maxDate&&g.config.maxDate<g.now?g.config.maxDate:g.now),i=g.currentYear,o=g.currentMonth;try{void 0!==n&&(g.currentYear=n.getFullYear(),g.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,g.config.errorHandler(e)}t&&g.currentYear!==i&&(ye("onYearChange"),G()),!t||g.currentYear===i&&g.currentMonth===o||ye("onMonthChange"),g.redraw()}function F(e){var t=f(e);~t.className.indexOf("arrow")&&H(e,t.classList.contains("arrowUp")?1:-1)}function H(e,t,n){var i=e&&f(e),o=n||i&&i.parentNode&&i.parentNode.firstChild,r=be("increment");r.delta=t,o&&o.dispatchEvent(r)}function Y(e,t,n,i){var o=te(t,!0),r=u("span",e,t.getDate().toString());return r.dateObj=t,r.$i=i,r.setAttribute("aria-label",g.formatDate(t,g.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===C(t,g.now)&&(g.todayDateElem=r,r.classList.add("today"),r.setAttribute("aria-current","date")),o?(r.tabIndex=-1,we(t)&&(r.classList.add("selected"),g.selectedDateElem=r,"range"===g.config.mode&&(c(r,"startRange",g.selectedDates[0]&&0===C(t,g.selectedDates[0],!0)),c(r,"endRange",g.selectedDates[1]&&0===C(t,g.selectedDates[1],!0)),"nextMonthDay"===e&&r.classList.add("inRange")))):r.classList.add("flatpickr-disabled"),"range"===g.config.mode&&function(e){return!("range"!==g.config.mode||g.selectedDates.length<2)&&(C(e,g.selectedDates[0])>=0&&C(e,g.selectedDates[1])<=0)}(t)&&!we(t)&&r.classList.add("inRange"),g.weekNumbers&&1===g.config.showMonths&&"prevMonthDay"!==e&&i%7==6&&g.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+g.config.getWeek(t)+"</span>"),ye("onDayCreate",r),r}function q(e){e.focus(),"range"===g.config.mode&&re(e)}function R(e){for(var t=e>0?0:g.config.showMonths-1,n=e>0?g.config.showMonths:-1,i=t;i!=n;i+=e)for(var o=g.daysContainer.children[i],r=e>0?0:o.children.length-1,a=e>0?o.children.length:-1,s=r;s!=a;s+=e){var l=o.children[s];if(-1===l.className.indexOf("hidden")&&te(l.dateObj))return l}}function z(e,t){var n=v(),i=ne(n||document.body),o=void 0!==e?e:i?n:void 0!==g.selectedDateElem&&ne(g.selectedDateElem)?g.selectedDateElem:void 0!==g.todayDateElem&&ne(g.todayDateElem)?g.todayDateElem:R(t>0?1:-1);void 0===o?g._input.focus():i?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():g.currentMonth,i=t>0?g.config.showMonths:-1,o=t>0?1:-1,r=n-g.currentMonth;r!=i;r+=o)for(var a=g.daysContainer.children[r],s=n-g.currentMonth===r?e.$i+t:t<0?a.children.length-1:0,l=a.children.length,c=s;c>=0&&c<l&&c!=(t>0?l:-1);c+=o){var u=a.children[c];if(-1===u.className.indexOf("hidden")&&te(u.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return q(u)}g.changeMonth(o),z(R(o),0)}(o,t):q(o)}function U(e,t){for(var n=(new Date(e,t,1).getDay()-g.l10n.firstDayOfWeek+7)%7,i=g.utils.getDaysInMonth((t-1+12)%12,e),o=g.utils.getDaysInMonth(t,e),r=window.document.createDocumentFragment(),a=g.config.showMonths>1,s=a?"prevMonthDay hidden":"prevMonthDay",l=a?"nextMonthDay hidden":"nextMonthDay",c=i+1-n,d=0;c<=i;c++,d++)r.appendChild(Y("flatpickr-day "+s,new Date(e,t-1,c),0,d));for(c=1;c<=o;c++,d++)r.appendChild(Y("flatpickr-day",new Date(e,t,c),0,d));for(var p=o+1;p<=42-n&&(1===g.config.showMonths||d%7!=0);p++,d++)r.appendChild(Y("flatpickr-day "+l,new Date(e,t+1,p%o),0,d));var h=u("div","dayContainer");return h.appendChild(r),h}function W(){if(void 0!==g.daysContainer){d(g.daysContainer),g.weekNumbers&&d(g.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<g.config.showMonths;t++){var n=new Date(g.currentYear,g.currentMonth,1);n.setMonth(g.currentMonth+t),e.appendChild(U(n.getFullYear(),n.getMonth()))}g.daysContainer.appendChild(e),g.days=g.daysContainer.firstChild,"range"===g.config.mode&&1===g.selectedDates.length&&re()}}function G(){if(!(g.config.showMonths>1||"dropdown"!==g.config.monthSelectorType)){var e=function(e){return!(void 0!==g.config.minDate&&g.currentYear===g.config.minDate.getFullYear()&&e<g.config.minDate.getMonth())&&!(void 0!==g.config.maxDate&&g.currentYear===g.config.maxDate.getFullYear()&&e>g.config.maxDate.getMonth())};g.monthsDropdownContainer.tabIndex=-1,g.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=u("option","flatpickr-monthDropdown-month");n.value=new Date(g.currentYear,t).getMonth().toString(),n.textContent=m(t,g.config.shorthandCurrentMonth,g.l10n),n.tabIndex=-1,g.currentMonth===t&&(n.selected=!0),g.monthsDropdownContainer.appendChild(n)}}}function B(){var e,t=u("div","flatpickr-month"),n=window.document.createDocumentFragment();g.config.showMonths>1||"static"===g.config.monthSelectorType?e=u("span","cur-month"):(g.monthsDropdownContainer=u("select","flatpickr-monthDropdown-months"),g.monthsDropdownContainer.setAttribute("aria-label",g.l10n.monthAriaLabel),P(g.monthsDropdownContainer,"change",(function(e){var t=f(e),n=parseInt(t.value,10);g.changeMonth(n-g.currentMonth),ye("onMonthChange")})),G(),e=g.monthsDropdownContainer);var i=h("cur-year",{tabindex:"-1"}),o=i.getElementsByTagName("input")[0];o.setAttribute("aria-label",g.l10n.yearAriaLabel),g.config.minDate&&o.setAttribute("min",g.config.minDate.getFullYear().toString()),g.config.maxDate&&(o.setAttribute("max",g.config.maxDate.getFullYear().toString()),o.disabled=!!g.config.minDate&&g.config.minDate.getFullYear()===g.config.maxDate.getFullYear());var r=u("div","flatpickr-current-month");return r.appendChild(e),r.appendChild(i),n.appendChild(r),t.appendChild(n),{container:t,yearElement:o,monthElement:e}}function K(){d(g.monthNav),g.monthNav.appendChild(g.prevMonthNav),g.config.showMonths&&(g.yearElements=[],g.monthElements=[]);for(var e=g.config.showMonths;e--;){var t=B();g.yearElements.push(t.yearElement),g.monthElements.push(t.monthElement),g.monthNav.appendChild(t.container)}g.monthNav.appendChild(g.nextMonthNav)}function Q(){g.weekdayContainer?d(g.weekdayContainer):g.weekdayContainer=u("div","flatpickr-weekdays");for(var e=g.config.showMonths;e--;){var t=u("div","flatpickr-weekdaycontainer");g.weekdayContainer.appendChild(t)}return J(),g.weekdayContainer}function J(){if(g.weekdayContainer){var e=g.l10n.firstDayOfWeek,t=k(g.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=k(t.splice(e,t.length),t.splice(0,e)));for(var n=g.config.showMonths;n--;)g.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+t.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function V(e,t){void 0===t&&(t=!0);var n=t?e:e-g.currentMonth;n<0&&!0===g._hidePrevMonthArrow||n>0&&!0===g._hideNextMonthArrow||(g.currentMonth+=n,(g.currentMonth<0||g.currentMonth>11)&&(g.currentYear+=g.currentMonth>11?1:-1,g.currentMonth=(g.currentMonth+12)%12,ye("onYearChange"),G()),W(),ye("onMonthChange"),_e())}function Z(e){return g.calendarContainer.contains(e)}function X(e){if(g.isOpen&&!g.config.inline){var t=f(e),n=Z(t),i=!(t===g.input||t===g.altInput||g.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(g.input)||~e.path.indexOf(g.altInput)))&&!n&&!Z(e.relatedTarget),o=!g.config.ignoredFocusElements.some((function(e){return e.contains(t)}));i&&o&&(g.config.allowInput&&g.setDate(g._input.value,!1,g.config.altInput?g.config.altFormat:g.config.dateFormat),void 0!==g.timeContainer&&void 0!==g.minuteElement&&void 0!==g.hourElement&&""!==g.input.value&&void 0!==g.input.value&&A(),g.close(),g.config&&"range"===g.config.mode&&1===g.selectedDates.length&&g.clear(!1))}}function ee(e){if(!(!e||g.config.minDate&&e<g.config.minDate.getFullYear()||g.config.maxDate&&e>g.config.maxDate.getFullYear())){var t=e,n=g.currentYear!==t;g.currentYear=t||g.currentYear,g.config.maxDate&&g.currentYear===g.config.maxDate.getFullYear()?g.currentMonth=Math.min(g.config.maxDate.getMonth(),g.currentMonth):g.config.minDate&&g.currentYear===g.config.minDate.getFullYear()&&(g.currentMonth=Math.max(g.config.minDate.getMonth(),g.currentMonth)),n&&(g.redraw(),ye("onYearChange"),G())}}function te(e,t){var n;void 0===t&&(t=!0);var i=g.parseDate(e,void 0,t);if(g.config.minDate&&i&&C(i,g.config.minDate,void 0!==t?t:!g.minDateHasTime)<0||g.config.maxDate&&i&&C(i,g.config.maxDate,void 0!==t?t:!g.maxDateHasTime)>0)return!1;if(!g.config.enable&&0===g.config.disable.length)return!0;if(void 0===i)return!1;for(var o=!!g.config.enable,r=null!==(n=g.config.enable)&&void 0!==n?n:g.config.disable,a=0,s=void 0;a<r.length;a++){if("function"==typeof(s=r[a])&&s(i))return o;if(s instanceof Date&&void 0!==i&&s.getTime()===i.getTime())return o;if("string"==typeof s){var l=g.parseDate(s,void 0,!0);return l&&l.getTime()===i.getTime()?o:!o}if("object"==typeof s&&void 0!==i&&s.from&&s.to&&i.getTime()>=s.from.getTime()&&i.getTime()<=s.to.getTime())return o}return!o}function ne(e){return void 0!==g.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&g.daysContainer.contains(e))}function ie(e){var t=e.target===g._input,n=g._input.value.trimEnd()!==De();!t||!n||e.relatedTarget&&Z(e.relatedTarget)||g.setDate(g._input.value,!0,e.target===g.altInput?g.config.altFormat:g.config.dateFormat)}function oe(e){var t=f(e),i=g.config.wrap?n.contains(t):t===g._input,o=g.config.allowInput,r=g.isOpen&&(!o||!i),a=g.config.inline&&i&&!o;if(13===e.keyCode&&i){if(o)return g.setDate(g._input.value,!0,t===g.altInput?g.config.altFormat:g.config.dateFormat),g.close(),t.blur();g.open()}else if(Z(t)||r||a){var s=!!g.timeContainer&&g.timeContainer.contains(t);switch(e.keyCode){case 13:s?(e.preventDefault(),A(),pe()):he(e);break;case 27:e.preventDefault(),pe();break;case 8:case 46:i&&!g.config.allowInput&&(e.preventDefault(),g.clear());break;case 37:case 39:if(s||i)g.hourElement&&g.hourElement.focus();else{e.preventDefault();var l=v();if(void 0!==g.daysContainer&&(!1===o||l&&ne(l))){var c=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),V(c),z(R(1),0)):z(void 0,c)}}break;case 38:case 40:e.preventDefault();var u=40===e.keyCode?1:-1;g.daysContainer&&void 0!==t.$i||t===g.input||t===g.altInput?e.ctrlKey?(e.stopPropagation(),ee(g.currentYear-u),z(R(1),0)):s||z(void 0,7*u):t===g.currentYearElement?ee(g.currentYear-u):g.config.enableTime&&(!s&&g.hourElement&&g.hourElement.focus(),A(e),g._debouncedChange());break;case 9:if(s){var d=[g.hourElement,g.minuteElement,g.secondElement,g.amPM].concat(g.pluginElements).filter((function(e){return e})),p=d.indexOf(t);if(-1!==p){var h=d[p+(e.shiftKey?-1:1)];e.preventDefault(),(h||g._input).focus()}}else!g.config.noCalendar&&g.daysContainer&&g.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),g._input.focus())}}if(void 0!==g.amPM&&t===g.amPM)switch(e.key){case g.l10n.amPM[0].charAt(0):case g.l10n.amPM[0].charAt(0).toLowerCase():g.amPM.textContent=g.l10n.amPM[0],S(),Ce();break;case g.l10n.amPM[1].charAt(0):case g.l10n.amPM[1].charAt(0).toLowerCase():g.amPM.textContent=g.l10n.amPM[1],S(),Ce()}(i||Z(t))&&ye("onKeyDown",e)}function re(e,t){if(void 0===t&&(t="flatpickr-day"),1===g.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():g.days.firstElementChild.dateObj.getTime(),i=g.parseDate(g.selectedDates[0],void 0,!0).getTime(),o=Math.min(n,g.selectedDates[0].getTime()),r=Math.max(n,g.selectedDates[0].getTime()),a=!1,s=0,l=0,c=o;c<r;c+=M)te(new Date(c),!0)||(a=a||c>o&&c<r,c<i&&(!s||c>s)?s=c:c>i&&(!l||c<l)&&(l=c));Array.from(g.rContainer.querySelectorAll("*:nth-child(-n+"+g.config.showMonths+") > ."+t)).forEach((function(t){var o,r,c,u=t.dateObj.getTime(),d=s>0&&u<s||l>0&&u>l;if(d)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));a&&!d||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=g.selectedDates[0].getTime()?"startRange":"endRange"),i<n&&u===i?t.classList.add("startRange"):i>n&&u===i&&t.classList.add("endRange"),u>=s&&(0===l||u<=l)&&(r=i,c=n,(o=u)>Math.min(r,c)&&o<Math.max(r,c))&&t.classList.add("inRange")))}))}}function ae(){!g.isOpen||g.config.static||g.config.inline||ue()}function se(e){return function(t){var n=g.config["_"+e+"Date"]=g.parseDate(t,g.config.dateFormat),i=g.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(g["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),g.selectedDates&&(g.selectedDates=g.selectedDates.filter((function(e){return te(e)})),g.selectedDates.length||"min"!==e||O(n),Ce()),g.daysContainer&&(de(),void 0!==n?g.currentYearElement[e]=n.getFullYear().toString():g.currentYearElement.removeAttribute(e),g.currentYearElement.disabled=!!i&&void 0!==n&&i.getFullYear()===n.getFullYear())}}function le(){return g.config.wrap?n.querySelector("[data-input]"):n}function ce(){"object"!=typeof g.config.locale&&void 0===T.l10ns[g.config.locale]&&g.config.errorHandler(new Error("flatpickr: invalid locale "+g.config.locale)),g.l10n=$($({},T.l10ns.default),"object"==typeof g.config.locale?g.config.locale:"default"!==g.config.locale?T.l10ns[g.config.locale]:void 0),y.D="("+g.l10n.weekdays.shorthand.join("|")+")",y.l="("+g.l10n.weekdays.longhand.join("|")+")",y.M="("+g.l10n.months.shorthand.join("|")+")",y.F="("+g.l10n.months.longhand.join("|")+")",y.K="("+g.l10n.amPM[0]+"|"+g.l10n.amPM[1]+"|"+g.l10n.amPM[0].toLowerCase()+"|"+g.l10n.amPM[1].toLowerCase()+")",void 0===$($({},i),JSON.parse(JSON.stringify(n.dataset||{}))).time_24hr&&void 0===T.defaultConfig.time_24hr&&(g.config.time_24hr=g.l10n.time_24hr),g.formatDate=w(g),g.parseDate=D({config:g.config,l10n:g.l10n})}function ue(e){if("function"!=typeof g.config.position){if(void 0!==g.calendarContainer){ye("onPreCalendarPosition");var t=e||g._positionElement,n=Array.prototype.reduce.call(g.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),i=g.calendarContainer.offsetWidth,o=g.config.position.split(" "),r=o[0],a=o.length>1?o[1]:null,s=t.getBoundingClientRect(),l=window.innerHeight-s.bottom,u="above"===r||"below"!==r&&l<n&&s.top>n,d=window.pageYOffset+s.top+(u?-n-2:t.offsetHeight+2);if(c(g.calendarContainer,"arrowTop",!u),c(g.calendarContainer,"arrowBottom",u),!g.config.inline){var p=window.pageXOffset+s.left,h=!1,f=!1;"center"===a?(p-=(i-s.width)/2,h=!0):"right"===a&&(p-=i-s.width,f=!0),c(g.calendarContainer,"arrowLeft",!h&&!f),c(g.calendarContainer,"arrowCenter",h),c(g.calendarContainer,"arrowRight",f);var m=window.document.body.offsetWidth-(window.pageXOffset+s.right),v=p+i>window.document.body.offsetWidth,y=m+i>window.document.body.offsetWidth;if(c(g.calendarContainer,"rightMost",v),!g.config.static)if(g.calendarContainer.style.top=d+"px",v)if(y){var b=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(i=document.createElement("style"),document.head.appendChild(i),i.sheet);var i}();if(void 0===b)return;var w=window.document.body.offsetWidth,_=Math.max(0,w/2-i/2),D=b.cssRules.length,C="{left:"+s.left+"px;right:auto;}";c(g.calendarContainer,"rightMost",!1),c(g.calendarContainer,"centerMost",!0),b.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,D),g.calendarContainer.style.left=_+"px",g.calendarContainer.style.right="auto"}else g.calendarContainer.style.left="auto",g.calendarContainer.style.right=m+"px";else g.calendarContainer.style.left=p+"px",g.calendarContainer.style.right="auto"}}}else g.config.position(g,e)}function de(){g.config.noCalendar||g.isMobile||(G(),_e(),W())}function pe(){g._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(g.close,0):g.close()}function he(e){e.preventDefault(),e.stopPropagation();var t=p(f(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==t){var n=t,i=g.latestSelectedDateObj=new Date(n.dateObj.getTime()),o=(i.getMonth()<g.currentMonth||i.getMonth()>g.currentMonth+g.config.showMonths-1)&&"range"!==g.config.mode;if(g.selectedDateElem=n,"single"===g.config.mode)g.selectedDates=[i];else if("multiple"===g.config.mode){var r=we(i);r?g.selectedDates.splice(parseInt(r),1):g.selectedDates.push(i)}else"range"===g.config.mode&&(2===g.selectedDates.length&&g.clear(!1,!1),g.latestSelectedDateObj=i,g.selectedDates.push(i),0!==C(i,g.selectedDates[0],!0)&&g.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(S(),o){var a=g.currentYear!==i.getFullYear();g.currentYear=i.getFullYear(),g.currentMonth=i.getMonth(),a&&(ye("onYearChange"),G()),ye("onMonthChange")}if(_e(),W(),Ce(),o||"range"===g.config.mode||1!==g.config.showMonths?void 0!==g.selectedDateElem&&void 0===g.hourElement&&g.selectedDateElem&&g.selectedDateElem.focus():q(n),void 0!==g.hourElement&&void 0!==g.hourElement&&g.hourElement.focus(),g.config.closeOnSelect){var s="single"===g.config.mode&&!g.config.enableTime,l="range"===g.config.mode&&2===g.selectedDates.length&&!g.config.enableTime;(s||l)&&pe()}j()}}g.parseDate=D({config:g.config,l10n:g.l10n}),g._handlers=[],g.pluginElements=[],g.loadedPlugins=[],g._bind=P,g._setHoursFromDate=O,g._positionCalendar=ue,g.changeMonth=V,g.changeYear=ee,g.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);g.input.value="",void 0!==g.altInput&&(g.altInput.value="");void 0!==g.mobileInput&&(g.mobileInput.value="");g.selectedDates=[],g.latestSelectedDateObj=void 0,!0===t&&(g.currentYear=g._initialDate.getFullYear(),g.currentMonth=g._initialDate.getMonth());if(!0===g.config.enableTime){var n=E(g.config),i=n.hours,o=n.minutes,r=n.seconds;I(i,o,r)}g.redraw(),e&&ye("onChange")},g.close=function(){g.isOpen=!1,g.isMobile||(void 0!==g.calendarContainer&&g.calendarContainer.classList.remove("open"),void 0!==g._input&&g._input.classList.remove("active"));ye("onClose")},g.onMouseOver=re,g._createElement=u,g.createDay=Y,g.destroy=function(){void 0!==g.config&&ye("onDestroy");for(var e=g._handlers.length;e--;)g._handlers[e].remove();if(g._handlers=[],g.mobileInput)g.mobileInput.parentNode&&g.mobileInput.parentNode.removeChild(g.mobileInput),g.mobileInput=void 0;else if(g.calendarContainer&&g.calendarContainer.parentNode)if(g.config.static&&g.calendarContainer.parentNode){var t=g.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else g.calendarContainer.parentNode.removeChild(g.calendarContainer);g.altInput&&(g.input.type="text",g.altInput.parentNode&&g.altInput.parentNode.removeChild(g.altInput),delete g.altInput);g.input&&(g.input.type=g.input._type,g.input.classList.remove("flatpickr-input"),g.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete g[e]}catch(e){}}))},g.isEnabled=te,g.jumpToDate=N,g.updateValue=Ce,g.open=function(e,t){void 0===t&&(t=g._positionElement);if(!0===g.isMobile){if(e){e.preventDefault();var n=f(e);n&&n.blur()}return void 0!==g.mobileInput&&(g.mobileInput.focus(),g.mobileInput.click()),void ye("onOpen")}if(g._input.disabled||g.config.inline)return;var i=g.isOpen;g.isOpen=!0,i||(g.calendarContainer.classList.add("open"),g._input.classList.add("active"),ye("onOpen"),ue(t));!0===g.config.enableTime&&!0===g.config.noCalendar&&(!1!==g.config.allowInput||void 0!==e&&g.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return g.hourElement.select()}),50))},g.redraw=de,g.set=function(t,n){if(null!==t&&"object"==typeof t)for(var i in Object.assign(g.config,t),t)void 0!==fe[i]&&fe[i].forEach((function(e){return e()}));else g.config[t]=n,void 0!==fe[t]?fe[t].forEach((function(e){return e()})):e.indexOf(t)>-1&&(g.config[t]=l(n));g.redraw(),Ce(!0)},g.setDate=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=g.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return g.clear(t);ge(e,n),g.latestSelectedDateObj=g.selectedDates[g.selectedDates.length-1],g.redraw(),N(void 0,t),O(),0===g.selectedDates.length&&g.clear(!1);Ce(t),t&&ye("onChange")},g.toggle=function(e){if(!0===g.isOpen)return g.close();g.open(e)};var fe={locale:[ce,J],showMonths:[K,_,Q],minDate:[N],maxDate:[N],positionElement:[ve],clickOpens:[function(){!0===g.config.clickOpens?(P(g._input,"focus",g.open),P(g._input,"click",g.open)):(g._input.removeEventListener("focus",g.open),g._input.removeEventListener("click",g.open))}]};function ge(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return g.parseDate(e,t)}));else if(e instanceof Date||"number"==typeof e)n=[g.parseDate(e,t)];else if("string"==typeof e)switch(g.config.mode){case"single":case"time":n=[g.parseDate(e,t)];break;case"multiple":n=e.split(g.config.conjunction).map((function(e){return g.parseDate(e,t)}));break;case"range":n=e.split(g.l10n.rangeSeparator).map((function(e){return g.parseDate(e,t)}))}else g.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));g.selectedDates=g.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&te(e,!1)})),"range"===g.config.mode&&g.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function me(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?g.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:g.parseDate(e.from,void 0),to:g.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ve(){g._positionElement=g.config.positionElement||g._input}function ye(e,t){if(void 0!==g.config){var n=g.config[e];if(void 0!==n&&n.length>0)for(var i=0;n[i]&&i<n.length;i++)n[i](g.selectedDates,g.input.value,g,t);"onChange"===e&&(g.input.dispatchEvent(be("change")),g.input.dispatchEvent(be("input")))}}function be(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function we(e){for(var t=0;t<g.selectedDates.length;t++){var n=g.selectedDates[t];if(n instanceof Date&&0===C(n,e))return""+t}return!1}function _e(){g.config.noCalendar||g.isMobile||!g.monthNav||(g.yearElements.forEach((function(e,t){var n=new Date(g.currentYear,g.currentMonth,1);n.setMonth(g.currentMonth+t),g.config.showMonths>1||"static"===g.config.monthSelectorType?g.monthElements[t].textContent=m(n.getMonth(),g.config.shorthandCurrentMonth,g.l10n)+" ":g.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),g._hidePrevMonthArrow=void 0!==g.config.minDate&&(g.currentYear===g.config.minDate.getFullYear()?g.currentMonth<=g.config.minDate.getMonth():g.currentYear<g.config.minDate.getFullYear()),g._hideNextMonthArrow=void 0!==g.config.maxDate&&(g.currentYear===g.config.maxDate.getFullYear()?g.currentMonth+1>g.config.maxDate.getMonth():g.currentYear>g.config.maxDate.getFullYear()))}function De(e){var t=e||(g.config.altInput?g.config.altFormat:g.config.dateFormat);return g.selectedDates.map((function(e){return g.formatDate(e,t)})).filter((function(e,t,n){return"range"!==g.config.mode||g.config.enableTime||n.indexOf(e)===t})).join("range"!==g.config.mode?g.config.conjunction:g.l10n.rangeSeparator)}function Ce(e){void 0===e&&(e=!0),void 0!==g.mobileInput&&g.mobileFormatStr&&(g.mobileInput.value=void 0!==g.latestSelectedDateObj?g.formatDate(g.latestSelectedDateObj,g.mobileFormatStr):""),g.input.value=De(g.config.dateFormat),void 0!==g.altInput&&(g.altInput.value=De(g.config.altFormat)),!1!==e&&ye("onValueUpdate")}function xe(e){var t=f(e),n=g.prevMonthNav.contains(t),i=g.nextMonthNav.contains(t);n||i?V(n?-1:1):g.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?g.changeYear(g.currentYear+1):t.classList.contains("arrowDown")&&g.changeYear(g.currentYear-1)}return function(){g.element=g.input=n,g.isOpen=!1,function(){var o=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=$($({},JSON.parse(JSON.stringify(n.dataset||{}))),i),a={};g.config.parseDate=r.parseDate,g.config.formatDate=r.formatDate,Object.defineProperty(g.config,"enable",{get:function(){return g.config._enable},set:function(e){g.config._enable=me(e)}}),Object.defineProperty(g.config,"disable",{get:function(){return g.config._disable},set:function(e){g.config._disable=me(e)}});var s="time"===r.mode;if(!r.dateFormat&&(r.enableTime||s)){var c=T.defaultConfig.dateFormat||t.dateFormat;a.dateFormat=r.noCalendar||s?"H:i"+(r.enableSeconds?":S":""):c+" H:i"+(r.enableSeconds?":S":"")}if(r.altInput&&(r.enableTime||s)&&!r.altFormat){var u=T.defaultConfig.altFormat||t.altFormat;a.altFormat=r.noCalendar||s?"h:i"+(r.enableSeconds?":S K":" K"):u+" h:i"+(r.enableSeconds?":S":"")+" K"}Object.defineProperty(g.config,"minDate",{get:function(){return g.config._minDate},set:se("min")}),Object.defineProperty(g.config,"maxDate",{get:function(){return g.config._maxDate},set:se("max")});var d=function(e){return function(t){g.config["min"===e?"_minTime":"_maxTime"]=g.parseDate(t,"H:i:S")}};Object.defineProperty(g.config,"minTime",{get:function(){return g.config._minTime},set:d("min")}),Object.defineProperty(g.config,"maxTime",{get:function(){return g.config._maxTime},set:d("max")}),"time"===r.mode&&(g.config.noCalendar=!0,g.config.enableTime=!0);Object.assign(g.config,a,r);for(var p=0;p<o.length;p++)g.config[o[p]]=!0===g.config[o[p]]||"true"===g.config[o[p]];e.filter((function(e){return void 0!==g.config[e]})).forEach((function(e){g.config[e]=l(g.config[e]||[]).map(b)})),g.isMobile=!g.config.disableMobile&&!g.config.inline&&"single"===g.config.mode&&!g.config.disable.length&&!g.config.enable&&!g.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(p=0;p<g.config.plugins.length;p++){var h=g.config.plugins[p](g)||{};for(var f in h)e.indexOf(f)>-1?g.config[f]=l(h[f]).map(b).concat(g.config[f]):void 0===r[f]&&(g.config[f]=h[f])}r.altInputClass||(g.config.altInputClass=le().className+" "+g.config.altInputClass);ye("onParseConfig")}(),ce(),function(){if(g.input=le(),!g.input)return void g.config.errorHandler(new Error("Invalid input element specified"));g.input._type=g.input.type,g.input.type="text",g.input.classList.add("flatpickr-input"),g._input=g.input,g.config.altInput&&(g.altInput=u(g.input.nodeName,g.config.altInputClass),g._input=g.altInput,g.altInput.placeholder=g.input.placeholder,g.altInput.disabled=g.input.disabled,g.altInput.required=g.input.required,g.altInput.tabIndex=g.input.tabIndex,g.altInput.type="text",g.input.setAttribute("type","hidden"),!g.config.static&&g.input.parentNode&&g.input.parentNode.insertBefore(g.altInput,g.input.nextSibling));g.config.allowInput||g._input.setAttribute("readonly","readonly");ve()}(),function(){g.selectedDates=[],g.now=g.parseDate(g.config.now)||new Date;var e=g.config.defaultDate||("INPUT"!==g.input.nodeName&&"TEXTAREA"!==g.input.nodeName||!g.input.placeholder||g.input.value!==g.input.placeholder?g.input.value:null);e&&ge(e,g.config.dateFormat);g._initialDate=g.selectedDates.length>0?g.selectedDates[0]:g.config.minDate&&g.config.minDate.getTime()>g.now.getTime()?g.config.minDate:g.config.maxDate&&g.config.maxDate.getTime()<g.now.getTime()?g.config.maxDate:g.now,g.currentYear=g._initialDate.getFullYear(),g.currentMonth=g._initialDate.getMonth(),g.selectedDates.length>0&&(g.latestSelectedDateObj=g.selectedDates[0]);void 0!==g.config.minTime&&(g.config.minTime=g.parseDate(g.config.minTime,"H:i"));void 0!==g.config.maxTime&&(g.config.maxTime=g.parseDate(g.config.maxTime,"H:i"));g.minDateHasTime=!!g.config.minDate&&(g.config.minDate.getHours()>0||g.config.minDate.getMinutes()>0||g.config.minDate.getSeconds()>0),g.maxDateHasTime=!!g.config.maxDate&&(g.config.maxDate.getHours()>0||g.config.maxDate.getMinutes()>0||g.config.maxDate.getSeconds()>0)}(),g.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=g.currentMonth),void 0===t&&(t=g.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:g.l10n.daysInMonth[e]}},g.isMobile||function(){var e=window.document.createDocumentFragment();if(g.calendarContainer=u("div","flatpickr-calendar"),g.calendarContainer.tabIndex=-1,!g.config.noCalendar){if(e.appendChild((g.monthNav=u("div","flatpickr-months"),g.yearElements=[],g.monthElements=[],g.prevMonthNav=u("span","flatpickr-prev-month"),g.prevMonthNav.innerHTML=g.config.prevArrow,g.nextMonthNav=u("span","flatpickr-next-month"),g.nextMonthNav.innerHTML=g.config.nextArrow,K(),Object.defineProperty(g,"_hidePrevMonthArrow",{get:function(){return g.__hidePrevMonthArrow},set:function(e){g.__hidePrevMonthArrow!==e&&(c(g.prevMonthNav,"flatpickr-disabled",e),g.__hidePrevMonthArrow=e)}}),Object.defineProperty(g,"_hideNextMonthArrow",{get:function(){return g.__hideNextMonthArrow},set:function(e){g.__hideNextMonthArrow!==e&&(c(g.nextMonthNav,"flatpickr-disabled",e),g.__hideNextMonthArrow=e)}}),g.currentYearElement=g.yearElements[0],_e(),g.monthNav)),g.innerContainer=u("div","flatpickr-innerContainer"),g.config.weekNumbers){var t=function(){g.calendarContainer.classList.add("hasWeeks");var e=u("div","flatpickr-weekwrapper");e.appendChild(u("span","flatpickr-weekday",g.l10n.weekAbbreviation));var t=u("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,i=t.weekNumbers;g.innerContainer.appendChild(n),g.weekNumbers=i,g.weekWrapper=n}g.rContainer=u("div","flatpickr-rContainer"),g.rContainer.appendChild(Q()),g.daysContainer||(g.daysContainer=u("div","flatpickr-days"),g.daysContainer.tabIndex=-1),W(),g.rContainer.appendChild(g.daysContainer),g.innerContainer.appendChild(g.rContainer),e.appendChild(g.innerContainer)}g.config.enableTime&&e.appendChild(function(){g.calendarContainer.classList.add("hasTime"),g.config.noCalendar&&g.calendarContainer.classList.add("noCalendar");var e=E(g.config);g.timeContainer=u("div","flatpickr-time"),g.timeContainer.tabIndex=-1;var t=u("span","flatpickr-time-separator",":"),n=h("flatpickr-hour",{"aria-label":g.l10n.hourAriaLabel});g.hourElement=n.getElementsByTagName("input")[0];var i=h("flatpickr-minute",{"aria-label":g.l10n.minuteAriaLabel});g.minuteElement=i.getElementsByTagName("input")[0],g.hourElement.tabIndex=g.minuteElement.tabIndex=-1,g.hourElement.value=r(g.latestSelectedDateObj?g.latestSelectedDateObj.getHours():g.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),g.minuteElement.value=r(g.latestSelectedDateObj?g.latestSelectedDateObj.getMinutes():e.minutes),g.hourElement.setAttribute("step",g.config.hourIncrement.toString()),g.minuteElement.setAttribute("step",g.config.minuteIncrement.toString()),g.hourElement.setAttribute("min",g.config.time_24hr?"0":"1"),g.hourElement.setAttribute("max",g.config.time_24hr?"23":"12"),g.hourElement.setAttribute("maxlength","2"),g.minuteElement.setAttribute("min","0"),g.minuteElement.setAttribute("max","59"),g.minuteElement.setAttribute("maxlength","2"),g.timeContainer.appendChild(n),g.timeContainer.appendChild(t),g.timeContainer.appendChild(i),g.config.time_24hr&&g.timeContainer.classList.add("time24hr");if(g.config.enableSeconds){g.timeContainer.classList.add("hasSeconds");var o=h("flatpickr-second");g.secondElement=o.getElementsByTagName("input")[0],g.secondElement.value=r(g.latestSelectedDateObj?g.latestSelectedDateObj.getSeconds():e.seconds),g.secondElement.setAttribute("step",g.minuteElement.getAttribute("step")),g.secondElement.setAttribute("min","0"),g.secondElement.setAttribute("max","59"),g.secondElement.setAttribute("maxlength","2"),g.timeContainer.appendChild(u("span","flatpickr-time-separator",":")),g.timeContainer.appendChild(o)}g.config.time_24hr||(g.amPM=u("span","flatpickr-am-pm",g.l10n.amPM[a((g.latestSelectedDateObj?g.hourElement.value:g.config.defaultHour)>11)]),g.amPM.title=g.l10n.toggleTitle,g.amPM.tabIndex=-1,g.timeContainer.appendChild(g.amPM));return g.timeContainer}());c(g.calendarContainer,"rangeMode","range"===g.config.mode),c(g.calendarContainer,"animate",!0===g.config.animate),c(g.calendarContainer,"multiMonth",g.config.showMonths>1),g.calendarContainer.appendChild(e);var o=void 0!==g.config.appendTo&&void 0!==g.config.appendTo.nodeType;if((g.config.inline||g.config.static)&&(g.calendarContainer.classList.add(g.config.inline?"inline":"static"),g.config.inline&&(!o&&g.element.parentNode?g.element.parentNode.insertBefore(g.calendarContainer,g._input.nextSibling):void 0!==g.config.appendTo&&g.config.appendTo.appendChild(g.calendarContainer)),g.config.static)){var s=u("div","flatpickr-wrapper");g.element.parentNode&&g.element.parentNode.insertBefore(s,g.element),s.appendChild(g.element),g.altInput&&s.appendChild(g.altInput),s.appendChild(g.calendarContainer)}g.config.static||g.config.inline||(void 0!==g.config.appendTo?g.config.appendTo:window.document.body).appendChild(g.calendarContainer)}(),function(){g.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(g.element.querySelectorAll("[data-"+e+"]"),(function(t){return P(t,"click",g[e])}))}));if(g.isMobile)return void function(){var e=g.config.enableTime?g.config.noCalendar?"time":"datetime-local":"date";g.mobileInput=u("input",g.input.className+" flatpickr-mobile"),g.mobileInput.tabIndex=1,g.mobileInput.type=e,g.mobileInput.disabled=g.input.disabled,g.mobileInput.required=g.input.required,g.mobileInput.placeholder=g.input.placeholder,g.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",g.selectedDates.length>0&&(g.mobileInput.defaultValue=g.mobileInput.value=g.formatDate(g.selectedDates[0],g.mobileFormatStr));g.config.minDate&&(g.mobileInput.min=g.formatDate(g.config.minDate,"Y-m-d"));g.config.maxDate&&(g.mobileInput.max=g.formatDate(g.config.maxDate,"Y-m-d"));g.input.getAttribute("step")&&(g.mobileInput.step=String(g.input.getAttribute("step")));g.input.type="hidden",void 0!==g.altInput&&(g.altInput.type="hidden");try{g.input.parentNode&&g.input.parentNode.insertBefore(g.mobileInput,g.input.nextSibling)}catch(e){}P(g.mobileInput,"change",(function(e){g.setDate(f(e).value,!1,g.mobileFormatStr),ye("onChange"),ye("onClose")}))}();var e=s(ae,50);g._debouncedChange=s(j,300),g.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&P(g.daysContainer,"mouseover",(function(e){"range"===g.config.mode&&re(f(e))}));P(g._input,"keydown",oe),void 0!==g.calendarContainer&&P(g.calendarContainer,"keydown",oe);g.config.inline||g.config.static||P(window,"resize",e);void 0!==window.ontouchstart?P(window.document,"touchstart",X):P(window.document,"mousedown",X);P(window.document,"focus",X,{capture:!0}),!0===g.config.clickOpens&&(P(g._input,"focus",g.open),P(g._input,"click",g.open));void 0!==g.daysContainer&&(P(g.monthNav,"click",xe),P(g.monthNav,["keyup","increment"],L),P(g.daysContainer,"click",he));if(void 0!==g.timeContainer&&void 0!==g.minuteElement&&void 0!==g.hourElement){var t=function(e){return f(e).select()};P(g.timeContainer,["increment"],A),P(g.timeContainer,"blur",A,{capture:!0}),P(g.timeContainer,"click",F),P([g.hourElement,g.minuteElement],["focus","click"],t),void 0!==g.secondElement&&P(g.secondElement,"focus",(function(){return g.secondElement&&g.secondElement.select()})),void 0!==g.amPM&&P(g.amPM,"click",(function(e){A(e)}))}g.config.allowInput&&P(g._input,"blur",ie)}(),(g.selectedDates.length||g.config.noCalendar)&&(g.config.enableTime&&O(g.config.noCalendar?g.latestSelectedDateObj:void 0),Ce(!1)),_();var o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!g.isMobile&&o&&ue(),ye("onReady")}(),g}function S(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),i=[],o=0;o<n.length;o++){var r=n[o];try{if(null!==r.getAttribute("data-fp-omit"))continue;void 0!==r._flatpickr&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=A(r,t||{}),i.push(r._flatpickr)}catch(e){console.error(e)}}return 1===i.length?i[0]:i}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return S(this,e)},HTMLElement.prototype.flatpickr=function(e){return S([this],e)});var T=function(e,t){return"string"==typeof e?S(window.document.querySelectorAll(e),t):e instanceof Node?S([e],t):S(e,t)};T.defaultConfig={},T.l10ns={en:$({},o),default:$({},o)},T.localize=function(e){T.l10ns.default=$($({},T.l10ns.default),e)},T.setDefaults=function(e){T.defaultConfig=$($({},T.defaultConfig),e)},T.parseDate=D({}),T.formatDate=w({}),T.compareDates=C,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return S(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=T);n(846);!function(e,t){t.nscuBasicControl=t.Control.extend({ready(){t.Control.prototype.ready.call(this),this.initBaseControl()},initBaseControl(e){(e=e||this).container.on("change keyup paste click","input",(function(){e.setting.set(jQuery(this).val())}))}}),t.nscuSelectControl=t.Control.extend({ready(){t.Control.prototype.ready.call(this),this.initSelectControl()},initSelectControl(t){e("select",(t=t||this).container).select2({width:260,minimumResultsForSearch:10}).change((function(){t.setting.set(e(this).val())}))}}),t.nscuCheckboxControl=t.Control.extend({ready(){t.Control.prototype.ready.call(this),this.initCheckboxControl()},initCheckboxControl(e){(e=e||this).container.on("change","input:checkbox",(function(){const t=!!this.checked;e.setting.set(t)}))}}),t.controlConstructor["nscu-accordion"]=t.Control.extend({ready(){const t=this;t.container.on("click",".customize-control-title",(function(){e(this).toggleClass("acc-active"),t.container.find(".customize-control-description").fadeToggle()}))}}),t.controlConstructor["nscu-buttonset"]=t.nscuBasicControl.extend({}),t.controlConstructor["nscu-checkbox"]=t.nscuCheckboxControl.extend({}),t.controlConstructor["nscu-checkbox-multiple"]=t.Control.extend({ready(){const e=this;e.container.on("change","input",(function(){const t=[];let n=0;jQuery.each(e.params.choices,(function(i){e.container.find('input[value="'+i+'"]').is(":checked")?(e.container.find('input[value="'+i+'"]').parent().addClass("checked"),t[n]=i,n++):e.container.find('input[value="'+i+'"]').parent().removeClass("checked")})),e.setting.set(t)}))}}),t.controlConstructor["nscu-date-time"]=t.Control.extend({ready(){const e=this.container.find(".date-time-input");let t="Y-m-d H:i",n=!0;let i=!1;!0===e.data("disable-date")&&(t="H:i",i=!0),!0===e.data("disable-time")&&(t="Y-m-d",n=!1);const o={dateFormat:t,enableTime:n,noCalendar:i,time_24hr:!0};this.container.find(".date-time-input").flatpickr(o)}}),t.controlConstructor["nscu-dimension"]=t.Control.extend({ready(){const t=this;t.container.on("input change","input.dimension-slider",(function(){const e=t.container.find(".dimension-slider").val()+t.container.find(".dimension-unit option").filter(":selected").val();t.container.find(".dimension-number").val(t.container.find(".dimension-slider").val()),t.setting.set(e)})),t.container.on("input change","input.dimension-number",(function(){const n=e(this).val()+t.container.find(".dimension-unit option").filter(":selected").val();t.container.find(".dimension-slider").val(e(this).val()),t.setting.set(n)})),t.container.on("change","select.dimension-unit",(function(){const e=t.container.find(".dimension-slider").val()+t.container.find(".dimension-unit option").filter(":selected").val();t.setting.set(e)})),t.container.on("click",".dimension-reset",(function(n){n.preventDefault();const i=e(this).data("default-dimension-number"),o=e(this).data("default-dimension-unit");t.container.find(".dimension-slider").val(i),t.container.find(".dimension-number").val(i),t.container.find(".dimension-unit").val(o),t.setting.set(i+o)}))}}),t.controlConstructor["nscu-dropdown-taxonomies"]=t.nscuSelectControl.extend({}),t.controlConstructor["nscu-dropdown-posts"]=t.nscuSelectControl.extend({}),t.controlConstructor["nscu-dropdown-google-fonts"]=t.nscuSelectControl.extend({}),t.controlConstructor["nscu-editor"]=t.Control.extend({ready(){const e="nscu-editor-"+this.id.replace("[","").replace("]",""),t=this.params.choices;let n="";"both"!==t.tabs&&"visual"!==t.tabs||("default"===t.toolbar?n="bold italic bullist numlist link":"minimal"===t.toolbar?n="bold italic link":"advance"===t.toolbar&&(n="formatselect bold italic | bullist numlist | alignleft aligncenter alignright | link"),"custom"===t.toolbar&&(n=""!==t.toolbar_buttons?t.toolbar_buttons:"bold italic bullist numlist link"));let i={wpautop:!0,browser_spellcheck:!0,wp_autoresize_on:!0,toolbar1:n,setup(t){t.on("change",(function(){t.save(),jQuery(`#${e}`).trigger("change")}))}};"both"!==t.tabs&&"visual"!==t.tabs&&(i=!1),wp.editor.initialize(e,{tinymce:i,mediaButtons:t.media_buttons,quicktags:"both"===t.tabs||"text"===t.tabs})}}),t.controlConstructor["nscu-media"]=t.Control.extend({ready(){const e=this;let t="";const n=_.uniqueId("nscu-state-"),i=e.container.find(".field-upload"),o=e.container.find(".field-remove"),r=e.container.find(".field-input"),a=e.container.find(".field-preview"),s=e.container.find(".preview-wrap"),l=i.data("mime_type"),c=i.data("uploader_title"),u=i.data("uploader_button_text"),d=wp.media.controller.Library.extend({defaults:_.defaults({id:n,title:c,allowLocalEdits:!1,displaySettings:!1,displayUserSettings:!1,multiple:!1,library:wp.media.query({type:l})},wp.media.controller.Library.prototype.defaults)});t=wp.media.frames.nscuFileFrame=wp.media({button:{text:u},state:n,states:[new d],multiple:!1}),t.on("select",(()=>{const e=t.state(n).get("selection").first().toJSON().url;r.val(e).trigger("change"),"image"===l&&(a.attr("src",e),s.addClass("preview-on")),""!==e&&o.removeClass("hide")})),i.on("click",(function(e){e.preventDefault(),t.open()})),o.on("click",(function(e){e.preventDefault(),s.removeClass("preview-on"),r.val("").trigger("change"),o.addClass("hide")})),r.on("change keyup paste click",(function(){const t=jQuery(this).val();e.setting.set(t),""!==t?(a.attr("src",t),s.addClass("preview-on")):s.removeClass("preview-on")}))}}),t.controlConstructor["nscu-radio"]=t.nscuBasicControl.extend({}),t.controlConstructor["nscu-radio-image"]=t.nscuBasicControl.extend({}),t.controlConstructor["nscu-range"]=t.Control.extend({ready(){const t=this;t.container.on("input change","input.range-input",(function(){t.container.find(".range-number").val(e(this).val())})),t.container.on("input change","input.range-number",(function(){t.setting.set(e(this).val())})),t.container.on("click",".range-reset",(function(n){n.preventDefault();const i=e(this).data("default");t.container.find(".range-number").val(i),t.setting.set(i)}))}}),t.controlConstructor["nscu-select"]=t.nscuSelectControl.extend({}),t.controlConstructor["nscu-sortable"]=t.Control.extend({ready(){const e=this;e.sortableContainer=e.container.find("ul.sortable").first(),e.sortableContainer.sortable({stop(){e.updateValue()}}).disableSelection().find("li").each((function(){jQuery(this).find("i.visibility").click((function(){jQuery(this).toggleClass("dashicons-visibility-faint").parents("li:eq(0)").toggleClass("invisible")}))})).click((function(){e.updateValue()}))},updateValue(){const e=[];this.sortableContainer.find("li").each((function(){jQuery(this).is(".invisible")||e.push(jQuery(this).data("value"))})),this.setting.set(e)}}),t.controlConstructor["nscu-switcher"]=t.nscuCheckboxControl.extend({}),t.controlConstructor["nscu-textarea"]=t.nscuBasicControl.extend({}),t.controlConstructor["nscu-toggle"]=t.Control.extend({ready(){const e=this;"off"===e.params.value&&this.container.find("input:checkbox").prop("checked",!1),this.container.on("change","input:checkbox",(function(){const t=this.checked?"on":"";e.setting.set(t)}))}}),t.nscuDummySection=t.Section.extend({attachEvents(){},isContextuallyActive(){return!0}}),t.sectionConstructor["nscu-button"]=t.nscuDummySection.extend({}),t.sectionConstructor["nscu-header"]=t.nscuDummySection.extend({}),t.sectionConstructor["nscu-upsell"]=t.nscuDummySection.extend({})}(jQuery,wp.customize)}()}();
|
vendor/ernilambar/ns-customizer-utilities/composer.json
CHANGED
@@ -21,6 +21,7 @@
|
|
21 |
}
|
22 |
},
|
23 |
"require" : {
|
24 |
-
"php" : ">=5.6"
|
|
|
25 |
}
|
26 |
}
|
21 |
}
|
22 |
},
|
23 |
"require" : {
|
24 |
+
"php" : ">=5.6",
|
25 |
+
"kirki-framework/url-getter": "^1.0"
|
26 |
}
|
27 |
}
|
vendor/ernilambar/ns-customizer-utilities/composer.lock
CHANGED
@@ -4,8 +4,53 @@
|
|
4 |
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
-
"content-hash": "
|
8 |
-
"packages": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
"packages-dev": [],
|
10 |
"aliases": [],
|
11 |
"minimum-stability": "stable",
|
4 |
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
+
"content-hash": "daacde87e08f09d0028d88f676743e39",
|
8 |
+
"packages": [
|
9 |
+
{
|
10 |
+
"name": "kirki-framework/url-getter",
|
11 |
+
"version": "v1.0.5",
|
12 |
+
"source": {
|
13 |
+
"type": "git",
|
14 |
+
"url": "https://github.com/kirki-framework/url-getter.git",
|
15 |
+
"reference": "cfe7ea5b51c5e9b5e7d706ed56694f54a972fae2"
|
16 |
+
},
|
17 |
+
"dist": {
|
18 |
+
"type": "zip",
|
19 |
+
"url": "https://api.github.com/repos/kirki-framework/url-getter/zipball/cfe7ea5b51c5e9b5e7d706ed56694f54a972fae2",
|
20 |
+
"reference": "cfe7ea5b51c5e9b5e7d706ed56694f54a972fae2",
|
21 |
+
"shasum": ""
|
22 |
+
},
|
23 |
+
"require": {
|
24 |
+
"php": ">=7.0"
|
25 |
+
},
|
26 |
+
"type": "library",
|
27 |
+
"autoload": {
|
28 |
+
"psr-4": {
|
29 |
+
"Kirki\\": "src"
|
30 |
+
}
|
31 |
+
},
|
32 |
+
"notification-url": "https://packagist.org/downloads/",
|
33 |
+
"license": [
|
34 |
+
"MIT"
|
35 |
+
],
|
36 |
+
"authors": [
|
37 |
+
{
|
38 |
+
"name": "Kirki Framework",
|
39 |
+
"email": "connect@mapsteps.com"
|
40 |
+
}
|
41 |
+
],
|
42 |
+
"description": "Helper component to get the URL of a file in WordPress.",
|
43 |
+
"homepage": "https://kirki.org/",
|
44 |
+
"keywords": [
|
45 |
+
"wordpress"
|
46 |
+
],
|
47 |
+
"support": {
|
48 |
+
"issues": "https://github.com/kirki-framework/url-getter/issues",
|
49 |
+
"source": "https://github.com/kirki-framework/url-getter/tree/v1.0.5"
|
50 |
+
},
|
51 |
+
"time": "2021-12-29T16:27:31+00:00"
|
52 |
+
}
|
53 |
+
],
|
54 |
"packages-dev": [],
|
55 |
"aliases": [],
|
56 |
"minimum-stability": "stable",
|
vendor/ernilambar/ns-customizer-utilities/init.php
CHANGED
@@ -7,36 +7,44 @@
|
|
7 |
|
8 |
namespace Nilambar\CustomizerUtils;
|
9 |
|
10 |
-
|
|
|
|
|
11 |
|
12 |
-
if ( ! defined( '
|
13 |
-
define( '
|
14 |
}
|
15 |
|
16 |
-
if (
|
17 |
-
|
18 |
}
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
* @since 1.0.0
|
24 |
-
*/
|
25 |
-
class Init {
|
26 |
|
|
|
27 |
/**
|
28 |
-
*
|
29 |
*
|
30 |
* @since 1.0.0
|
31 |
*/
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
wp_register_script( 'nscu-controls', NSCU_URL . '/assets/controls.js', array( 'jquery', 'customize-controls', 'wp-color-picker' ), NSCU_VERSION, true );
|
39 |
-
}
|
40 |
-
}
|
41 |
-
|
42 |
-
new Init();
|
7 |
|
8 |
namespace Nilambar\CustomizerUtils;
|
9 |
|
10 |
+
if ( defined( 'NSCU_VERSION' ) ) {
|
11 |
+
return;
|
12 |
+
}
|
13 |
|
14 |
+
if ( ! defined( 'NSCU_VERSION' ) ) {
|
15 |
+
define( 'NSCU_VERSION' , '1.0.11' );
|
16 |
}
|
17 |
|
18 |
+
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
|
19 |
+
require_once __DIR__ . '/vendor/autoload.php';
|
20 |
}
|
21 |
|
22 |
+
if ( ! defined( 'NSCU_URL' ) ) {
|
23 |
+
define( 'NSCU_URL' , rtrim( \Kirki\URL::get_from_path( __DIR__ ), '/' ) );
|
24 |
+
}
|
|
|
|
|
|
|
25 |
|
26 |
+
if ( ! class_exists( Init::class, false ) ) :
|
27 |
/**
|
28 |
+
* Init class.
|
29 |
*
|
30 |
* @since 1.0.0
|
31 |
*/
|
32 |
+
class Init {
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Constructor.
|
36 |
+
*
|
37 |
+
* @since 1.0.0
|
38 |
+
*/
|
39 |
+
public function __construct() {
|
40 |
+
add_action( 'customize_controls_enqueue_scripts', array( $this, 'load_assets' ), 0 );
|
41 |
+
}
|
42 |
+
|
43 |
+
public function load_assets() {
|
44 |
+
wp_register_style( 'nscu-controls', NSCU_URL . '/assets/controls.css', array( 'wp-color-picker' ), NSCU_VERSION );
|
45 |
+
wp_register_script( 'nscu-controls', NSCU_URL . '/assets/controls.js', array( 'jquery', 'customize-controls', 'wp-color-picker' ), NSCU_VERSION, true );
|
46 |
+
}
|
47 |
}
|
48 |
|
49 |
+
new Init();
|
50 |
+
endif;
|
|
|
|
|
|
|
|
|
|
vendor/ernilambar/ns-customizer-utilities/src/Control/Radio.php
CHANGED
@@ -95,6 +95,7 @@ class Radio extends Base {
|
|
95 |
<# optionArr = option.split('|||') #>
|
96 |
<# optionKey = optionArr[0] #>
|
97 |
<# optionVal = optionArr[1] #>
|
|
|
98 |
<li>
|
99 |
<label>
|
100 |
<input
|
@@ -104,7 +105,7 @@ class Radio extends Base {
|
|
104 |
value="{{ optionKey }}"
|
105 |
{{ data.link }}
|
106 |
name="_customize-radio-{{ data.id }}"
|
107 |
-
<# if ( data.value === optionKey ) { #> checked<# } #>
|
108 |
/>
|
109 |
{{ optionVal }}
|
110 |
</label>
|
95 |
<# optionArr = option.split('|||') #>
|
96 |
<# optionKey = optionArr[0] #>
|
97 |
<# optionVal = optionArr[1] #>
|
98 |
+
|
99 |
<li>
|
100 |
<label>
|
101 |
<input
|
105 |
value="{{ optionKey }}"
|
106 |
{{ data.link }}
|
107 |
name="_customize-radio-{{ data.id }}"
|
108 |
+
<# if ( data.value.toString() === optionKey ) { #> checked<# } #>
|
109 |
/>
|
110 |
{{ optionVal }}
|
111 |
</label>
|
vendor/ernilambar/ns-customizer-utilities/src/Control/Select.php
CHANGED
@@ -95,7 +95,7 @@ class Select extends Base {
|
|
95 |
<# optionKey = optionArr[0] #>
|
96 |
<# optionVal = optionArr[1] #>
|
97 |
|
98 |
-
<option value="{{ optionKey }}" <# if ( optionKey === data.value ) { #> selected="selected" <# } #>>{{{ optionVal }}}</option>
|
99 |
|
100 |
<# } ) #>
|
101 |
</select>
|
95 |
<# optionKey = optionArr[0] #>
|
96 |
<# optionVal = optionArr[1] #>
|
97 |
|
98 |
+
<option value="{{ optionKey }}" <# if ( optionKey === data.value.toString() ) { #> selected="selected" <# } #>>{{{ optionVal }}}</option>
|
99 |
|
100 |
<# } ) #>
|
101 |
</select>
|
vendor/ernilambar/wp-welcome/Loader.php
ADDED
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Autoloader Class.
|
4 |
+
*
|
5 |
+
* A basic PSR-4 autoloader for theme developers.
|
6 |
+
*
|
7 |
+
* @author WPTRT <themes@wordpress.org>
|
8 |
+
* @copyright 2019 WPTRT
|
9 |
+
* @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0-or-later
|
10 |
+
* @link https://github.com/WPTRT/autoload
|
11 |
+
*/
|
12 |
+
|
13 |
+
namespace WPTRT\Autoload;
|
14 |
+
|
15 |
+
class Loader {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Array of loaders.
|
19 |
+
*
|
20 |
+
* @since 1.0.0
|
21 |
+
* @access protected
|
22 |
+
* @var array
|
23 |
+
*/
|
24 |
+
protected $loaders = [];
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Adds a new prefix and path to load.
|
28 |
+
*
|
29 |
+
* @since 1.0.0
|
30 |
+
* @access public
|
31 |
+
* @param string $prefix Namespace prefix.
|
32 |
+
* @param array|string $paths Absolute path(s) where to look for classes.
|
33 |
+
* @return void
|
34 |
+
*/
|
35 |
+
public function add( $prefix, $paths ) {
|
36 |
+
|
37 |
+
foreach ( (array) $paths as $path ) {
|
38 |
+
$this->loaders[ $prefix ][] = $path;
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Removes a loader by prefix or prefix + path.
|
44 |
+
*
|
45 |
+
* @since 1.0.0
|
46 |
+
* @access public
|
47 |
+
* @param string $prefix Namespace prefix.
|
48 |
+
* @param string $path Absolute path.
|
49 |
+
* @return void
|
50 |
+
*/
|
51 |
+
public function remove( $prefix, $path = '' ) {
|
52 |
+
|
53 |
+
// Remove specific loader if both the prefix and path are provided.
|
54 |
+
if ( $path ) {
|
55 |
+
if ( $this->has( $prefix, $path ) ) {
|
56 |
+
$key = array_search( $path, $this->loaders[ $prefix ], true );
|
57 |
+
unset( $this->loaders[ $prefix ][ $key ] );
|
58 |
+
}
|
59 |
+
|
60 |
+
return;
|
61 |
+
}
|
62 |
+
|
63 |
+
// Remove all loaders for a prefix if no path is provided.
|
64 |
+
if ( $this->has( $prefix ) ) {
|
65 |
+
unset( $this->loaders[ $prefix ] );
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Checks if a loader is already added.
|
71 |
+
*
|
72 |
+
* @since 1.0.0
|
73 |
+
* @access public
|
74 |
+
* @param string $prefix Namespace prefix.
|
75 |
+
* @param string $path Absolute path.
|
76 |
+
* @return bool
|
77 |
+
*/
|
78 |
+
public function has( $prefix, $path = '' ) {
|
79 |
+
|
80 |
+
if ( $path ) {
|
81 |
+
return isset( $this->loaders[ $prefix ] ) && in_array( $path, $this->loaders[ $prefix ], true );
|
82 |
+
}
|
83 |
+
|
84 |
+
return isset( $this->loaders[ $prefix ] );
|
85 |
+
}
|
86 |
+
|
87 |
+
/**
|
88 |
+
* Registers all loaders.
|
89 |
+
*
|
90 |
+
* @since 1.0.0
|
91 |
+
* @access public
|
92 |
+
* @return void
|
93 |
+
*/
|
94 |
+
public function register() {
|
95 |
+
|
96 |
+
if ( $this->loaders ) {
|
97 |
+
spl_autoload_register( function( $class ) {
|
98 |
+
$this->load( $class );
|
99 |
+
}, true, true );
|
100 |
+
}
|
101 |
+
}
|
102 |
+
|
103 |
+
/**
|
104 |
+
* Loads a class if it's within the given namespace.
|
105 |
+
*
|
106 |
+
* @since 1.0.0
|
107 |
+
* @access protected
|
108 |
+
* @param string $class Fully-qualified class name.
|
109 |
+
* @return void
|
110 |
+
*/
|
111 |
+
protected function load( $class ) {
|
112 |
+
|
113 |
+
foreach ( $this->loaders as $prefix => $paths ) {
|
114 |
+
|
115 |
+
// Continue if the class is not in our namespace.
|
116 |
+
if ( 0 !== strpos( $class, $prefix ) ) {
|
117 |
+
continue;
|
118 |
+
}
|
119 |
+
|
120 |
+
// Build a class filename to append to the path.
|
121 |
+
$suffix = ltrim( str_replace( $prefix, '', $class ), '\\' );
|
122 |
+
$suffix = DIRECTORY_SEPARATOR . str_replace( '\\', DIRECTORY_SEPARATOR, $suffix ) . '.php';
|
123 |
+
|
124 |
+
// Loop through the paths to see if we can find the file
|
125 |
+
// for the class.
|
126 |
+
foreach ( $paths as $path ) {
|
127 |
+
|
128 |
+
// Load the class file if it exists and return.
|
129 |
+
if ( file_exists( $file = realpath( $path ) . $suffix ) ) {
|
130 |
+
include $file;
|
131 |
+
return;
|
132 |
+
}
|
133 |
+
}
|
134 |
+
}
|
135 |
+
}
|
136 |
+
}
|
vendor/ernilambar/wp-welcome/README.md
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
# WP Welcome
|
2 |
+
|
3 |
+
> Create welcome page in WordPress. Useful for themes to showcase related information.
|
vendor/ernilambar/wp-welcome/assets/wp-welcome.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.wpw-grid{grid-gap:20px;display:grid;gap:20px}.wpw-grid img{max-width:100%}.wpw-grid.wpw-col-2{grid-template-columns:repeat(2,minmax(0,1fr))}@media only screen and (max-width:980px){.wpw-grid.wpw-col-2{grid-template-columns:repeat(1,1fr)}}.wpw-grid.wpw-col-3{grid-template-columns:repeat(3,minmax(0,1fr))}@media only screen and (max-width:980px){.wpw-grid.wpw-col-3{grid-template-columns:repeat(2,minmax(0,1fr))}}@media only screen and (max-width:720px){.wpw-grid.wpw-col-3{grid-template-columns:repeat(1,1fr)}}.wpw-wrap .button-upgrade{background:#36a583;border-color:#36a583;padding:3px 21px}.wpw-wrap .wpw-buttons{align-items:center;display:flex;flex-wrap:wrap;justify-content:space-between}.wpw-box{background:#fff;border:1px solid #dfdfdf;box-shadow:0 1px 1px rgba(0,0,0,.04);padding:20px;position:relative}.wpw-box h3{border-bottom:1px solid #dfdfdf;font-size:1.2em;margin-top:0;padding-bottom:10px}.wpw-box h3 span{color:#007cba;margin-right:5px}.wpw-box p{margin:0 0 1.3em}.wpw-box p:last-child{margin-bottom:0}.wpw-box ul{list-style-type:disc}.wpw-box ol,.wpw-box ul{margin-left:15px}.wpw-box.gray,.wpw-box.plain{background:#f8f9fd}.wpw-box.plain{border:1px solid #dfdfdf;border-radius:5px;padding:20px;position:relative}.wpw-box.plain h3{border-bottom:none;font-size:1.2em;padding-bottom:0}.wpw-box .wpw-stars{margin-bottom:10px}.wpw-box .wpw-stars .dashicons-star-filled:before{color:#ffb900;margin-right:3px}.wpw-box.wpw-box-plugin .wpw-buttons{border-top:1px solid #dfdfdf;padding-top:15px}.comparison-table{border-spacing:0;width:100%}.comparison-table th{font-size:1.1em;padding-bottom:20px}.comparison-table td{border-top:1px solid #ccc;padding:20px 0}.comparison-table td p{margin:0}.comparison-table h3{margin:0 0 8px}.comparison-table .col-free,.comparison-table .col-pro{text-align:center;width:25%}.comparison-table .dashicons-before:before{font-size:25px;height:25px;width:25px}.comparison-table .yes.dashicons-before:before{color:#36a583}.comparison-table .no.dashicons-before:before{color:#d54e21}.comparison-table .wpw-comparison-row-upgrade td{padding-bottom:10px;text-align:right}.comparison-table .wpw-comparison-row-upgrade td a{margin-top:10px}.wpw-tabs-nav{border-bottom:1px solid #dfdfdf;display:flex;flex-direction:row;flex-wrap:wrap;gap:25px;padding:15px 20px}.wpw-tabs-nav h3{margin:0}.wpw-tabs-nav a{border-bottom:3px solid transparent;box-shadow:none;color:inherit;outline:none;padding:13px 0;text-decoration:none}.wpw-tabs-nav a.active{border-color:#007cba}.wpw-tabs-content-wrap{padding:20px}.wpw-tabs-content-wrap .wpw-tab-content{display:none}.wpw-tabs-content-wrap .wpw-tab-content.active{display:block}.wpw-tabs-content-wrap .wpw-tab-content ol,.wpw-tabs-content-wrap .wpw-tab-content p,.wpw-tabs-content-wrap .wpw-tab-content ul{margin:0 0 1.3em}.wpw-tabs-content-wrap .wpw-tab-content ol:last-child,.wpw-tabs-content-wrap .wpw-tab-content p:last-child,.wpw-tabs-content-wrap .wpw-tab-content ul:last-child{margin-bottom:0}.wpw-tabs-content-wrap .wpw-tab-content h2,.wpw-tabs-content-wrap .wpw-tab-content h3,.wpw-tabs-content-wrap .wpw-tab-content h4{margin-top:0}.wpw-tabs-content-wrap .wpw-tab-content h3{font-size:1.2em}.wpw-tabs-content-wrap .wpw-tab-content ul{list-style-type:disc}.wpw-tabs-content-wrap .wpw-tab-content ol,.wpw-tabs-content-wrap .wpw-tab-content ul{list-style-position:outside;margin-left:15px}.wpw-wrap .wpw-main-inner{column-gap:30px;display:flex;flex-wrap:wrap}@media only screen and (max-width:720px){.wpw-wrap .wpw-main-inner{flex-direction:column}}.wpw-wrap .wpw-main-content{background:#fff;border:1px solid #dfdfdf;box-shadow:0 1px 1px rgba(0,0,0,.04);height:100%;margin-top:20px;max-width:calc(100% - 332px);width:100%}@media only screen and (max-width:720px){.wpw-wrap .wpw-main-content{max-width:100%}}.wpw-wrap .wpw-main.no-sidebar .wpw-main-content{max-width:100%}.wpw-wrap .wpw-main-sidebar{margin-top:20px;max-width:300px;width:100%}@media only screen and (max-width:720px){.wpw-wrap .wpw-main-sidebar{max-width:100%}}.wpw-wrap .wpw-main-sidebar .wpw-box{margin-bottom:20px}.wpw-wrap .wpw-header{background:#fff;border-bottom:1px solid #dfdfdf;box-shadow:0 1px 1px rgba(0,0,0,.04);margin:-10px -20px 10px;padding:20px}@media only screen and (max-width:720px){.wpw-wrap .wpw-header{margin:0}}.wpw-wrap .wpw-header h1{margin-top:0;padding-top:0}.wpw-wrap .wpw-quick-links{display:flex;flex-wrap:wrap;gap:10px;padding-top:10px}@media only screen and (max-width:480px){.wpw-wrap .wpw-quick-links a{min-width:48%;text-align:center}}.wpw-wrap img{height:auto;max-width:100%}
|
vendor/ernilambar/wp-welcome/assets/wp-welcome.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(){"use strict";!function(a){const t=a("#wp-welcome-wrap");a(".wpw-box-plugin a.button").on("click",(function(t){t.preventDefault();const e=a(this),n=e.data("slug");n&&(e.hasClass("disabled")||(e.hasClass("install")&&((t,e)=>{a.ajax({url:WPW_OBJECT.ajax_url,type:"POST",dataType:"json",data:{action:"wpw_plugin_installer",plugin:t,nonce:WPW_OBJECT.admin_nonce},beforeSend(){e.addClass("installing")},complete(a){!0===JSON.parse(a.responseText).success&&(e.html(WPW_OBJECT.i18n.activate),e.attr("class","button activate")),e.removeClass("installing")}})})(n,e),e.hasClass("activate")&&((t,e)=>{a.ajax({url:WPW_OBJECT.ajax_url,type:"POST",dataType:"json",data:{action:"wpw_plugin_activation",plugin:t,nonce:WPW_OBJECT.admin_nonce},beforeSend(){e.addClass("installing")},complete(a){!0===JSON.parse(a.responseText).success&&(e.html(WPW_OBJECT.i18n.activated),e.attr("class","button disabled")),e.removeClass("installing")}})})(n,e)))})),t.find(".wpw-tab-content").hide();let e="";"undefined"!=typeof localStorage&&(e=localStorage.getItem(WPW_OBJECT.storage_key)),null!==e&&a(`#${e}`).length?(a(`#${e}`).hide().fadeIn("fast"),a(`.wpw-tabs-nav a[href="#${e}"]`).addClass("active")):(t.find(".wpw-tab-content").first().hide().fadeIn("fast"),t.find(".wpw-tabs-nav a").first().addClass("active")),t.find(".wpw-tabs-nav a").on("click",(function(e){if(e.preventDefault(),a(this).hasClass("active"))return;t.find(".wpw-tabs-nav a").removeClass("active"),a(e.target).addClass("active");const n=a(e.target).attr("href");"undefined"!=typeof localStorage&&localStorage.setItem(WPW_OBJECT.storage_key,n.replace("#","")),t.find(".wpw-tab-content").hide(),a(n).fadeIn("fast")}))}(jQuery)}();
|
vendor/ernilambar/wp-welcome/bootstrap.php
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function wp_welcome_bootstrap() {
|
4 |
+
if ( is_admin() ) {
|
5 |
+
do_action( 'wp_welcome_init' );
|
6 |
+
}
|
7 |
+
}
|
vendor/ernilambar/wp-welcome/composer.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name" : "ernilambar/wp-welcome",
|
3 |
+
"description" : "Create welcome page in WordPress. Useful for themes to showcase related information.",
|
4 |
+
"keywords" : [ "wordpress", "theme", "plugin" ],
|
5 |
+
"homepage" : "https://github.com/ernilambar/wp-welcome",
|
6 |
+
"license" : "MIT",
|
7 |
+
"authors" : [
|
8 |
+
{
|
9 |
+
"name" : "Nilambar Sharma",
|
10 |
+
"email" : "nilambar@outlook.com",
|
11 |
+
"homepage" : "https://www.nilambar.net",
|
12 |
+
"role" : "Developer"
|
13 |
+
}
|
14 |
+
],
|
15 |
+
"support" : {
|
16 |
+
"issues" : "https://github.com/ernilambar/wp-welcome/issues"
|
17 |
+
},
|
18 |
+
"require" : {
|
19 |
+
"php" : ">=5.6"
|
20 |
+
}
|
21 |
+
}
|
vendor/ernilambar/wp-welcome/init.php
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Initialize
|
4 |
+
*
|
5 |
+
* @package WPWelcome
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace Nilambar\Welcome;
|
9 |
+
|
10 |
+
if ( ! class_exists( Init_1_0_1::class, false ) ) {
|
11 |
+
|
12 |
+
class Init_1_0_1 {
|
13 |
+
|
14 |
+
const VERSION = '1.0.1';
|
15 |
+
|
16 |
+
const PRIORITY = 9998;
|
17 |
+
|
18 |
+
public static $single_instance = null;
|
19 |
+
|
20 |
+
public static function initiate() {
|
21 |
+
if ( null === self::$single_instance ) {
|
22 |
+
self::$single_instance = new self();
|
23 |
+
}
|
24 |
+
return self::$single_instance;
|
25 |
+
}
|
26 |
+
|
27 |
+
private function __construct() {
|
28 |
+
if ( ! defined( 'WP_WELCOME_LOADED' ) ) {
|
29 |
+
define( 'WP_WELCOME_LOADED', self::PRIORITY );
|
30 |
+
}
|
31 |
+
|
32 |
+
add_action( 'init', array( $this, 'include_lib' ), self::PRIORITY );
|
33 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'load_assets' ) );
|
34 |
+
}
|
35 |
+
|
36 |
+
public function include_lib() {
|
37 |
+
if ( class_exists( Welcome::class, false ) ) {
|
38 |
+
return;
|
39 |
+
}
|
40 |
+
|
41 |
+
if ( ! defined( 'WP_WELCOME_VERSION' ) ) {
|
42 |
+
define( 'WP_WELCOME_VERSION', self::VERSION );
|
43 |
+
}
|
44 |
+
|
45 |
+
if ( ! defined( 'WP_WELCOME_DIR' ) ) {
|
46 |
+
define( 'WP_WELCOME_DIR', rtrim( get_template_directory(), '/' ) . '/vendor/ernilambar/wp-welcome' );
|
47 |
+
}
|
48 |
+
|
49 |
+
if ( ! defined( 'WP_WELCOME_URL' ) ) {
|
50 |
+
define( 'WP_WELCOME_URL', rtrim( get_template_directory_uri(), '/' ) . '/vendor/ernilambar/wp-welcome' );
|
51 |
+
}
|
52 |
+
|
53 |
+
if ( ! class_exists( \WPTRT\Autoload\Loader::class, false ) ) {
|
54 |
+
require_once __DIR__ . '/Loader.php';
|
55 |
+
}
|
56 |
+
|
57 |
+
$loader = new \WPTRT\Autoload\Loader();
|
58 |
+
$loader->add( 'Nilambar\\Welcome\\', __DIR__ . '/src' );
|
59 |
+
$loader->register();
|
60 |
+
|
61 |
+
require_once __DIR__ . '/bootstrap.php';
|
62 |
+
wp_welcome_bootstrap();
|
63 |
+
}
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Load assets.
|
67 |
+
*
|
68 |
+
* @since 1.0.0
|
69 |
+
*/
|
70 |
+
public function load_assets() {
|
71 |
+
wp_enqueue_style( 'wp-welcome-style', WP_WELCOME_URL . '/assets/wp-welcome.css', array(), WP_WELCOME_VERSION );
|
72 |
+
|
73 |
+
wp_enqueue_script( 'wp-welcome-scripts', WP_WELCOME_URL . '/assets/wp-welcome.js', array( 'jquery' ), WP_WELCOME_VERSION, true );
|
74 |
+
|
75 |
+
wp_localize_script(
|
76 |
+
'wp-welcome-scripts',
|
77 |
+
'WPW_OBJECT',
|
78 |
+
array(
|
79 |
+
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
80 |
+
'storage_key' => wp_unique_id( 'wpw-' ) . '-activetab',
|
81 |
+
'admin_nonce' => wp_create_nonce( 'wpw_installer_nonce' ),
|
82 |
+
'i18n' => array(
|
83 |
+
'activate' => esc_html__( 'Activate', 'wp-welcome' ),
|
84 |
+
'activated' => esc_html__( 'Activated', 'wp-welcome' ),
|
85 |
+
'install_now' => esc_html__( 'Install Now', 'wp-welcome' ),
|
86 |
+
'install_confirm' => esc_html__( 'Are you sure you want to install this plugin?', 'wp-welcome' ),
|
87 |
+
),
|
88 |
+
)
|
89 |
+
);
|
90 |
+
}
|
91 |
+
}
|
92 |
+
|
93 |
+
Init_1_0_1::initiate();
|
94 |
+
}
|
vendor/ernilambar/wp-welcome/src/Ajax.php
ADDED
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Ajax class
|
4 |
+
*
|
5 |
+
* @package WPWelcome
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace Nilambar\Welcome;
|
9 |
+
|
10 |
+
use Nilambar\Welcome\Helper;
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Ajax class.
|
14 |
+
*
|
15 |
+
* @since 1.0.0
|
16 |
+
*/
|
17 |
+
class Ajax {
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Callback for plugin installation.
|
21 |
+
*
|
22 |
+
* @since 1.0.0
|
23 |
+
*/
|
24 |
+
public static function install_plugin() {
|
25 |
+
$output = array();
|
26 |
+
$error = true;
|
27 |
+
|
28 |
+
// Bail if no access.
|
29 |
+
if ( ! current_user_can( 'install_plugins' ) ) {
|
30 |
+
$output['message'] = esc_html__( 'Sorry, you are not allowed to install plugins for this site.', 'wp-welcome' );
|
31 |
+
wp_send_json_error( $output );
|
32 |
+
}
|
33 |
+
|
34 |
+
$nonce = isset( $_POST['nonce'] ) ? sanitize_text_field( wp_unslash( $_POST['nonce'] ) ) : '';
|
35 |
+
$plugin = isset( $_POST['plugin'] ) ? sanitize_text_field( wp_unslash( $_POST['plugin'] ) ) : '';
|
36 |
+
|
37 |
+
// Bail if no plugin slug.
|
38 |
+
if ( empty( $plugin ) ) {
|
39 |
+
$output['message'] = esc_html__( 'Invalid plugin slug.', 'wp-welcome' );
|
40 |
+
wp_send_json_error( $output );
|
41 |
+
}
|
42 |
+
|
43 |
+
// Bail if nonce is not valid.
|
44 |
+
if ( ! wp_verify_nonce( $nonce, 'wpw_installer_nonce' ) ) {
|
45 |
+
$output['message'] = esc_html__( 'Nonce verification failed.', 'wp-welcome' );
|
46 |
+
wp_send_json_error( $output );
|
47 |
+
}
|
48 |
+
|
49 |
+
// Include required files for plugin installation.
|
50 |
+
require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
|
51 |
+
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
52 |
+
require_once ABSPATH . 'wp-admin/includes/class-wp-ajax-upgrader-skin.php';
|
53 |
+
require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader.php';
|
54 |
+
|
55 |
+
// Get plugin info.
|
56 |
+
$api = plugins_api(
|
57 |
+
'plugin_information',
|
58 |
+
array(
|
59 |
+
'slug' => $plugin,
|
60 |
+
'fields' => array(
|
61 |
+
'short_description' => false,
|
62 |
+
'sections' => false,
|
63 |
+
'requires' => false,
|
64 |
+
'rating' => false,
|
65 |
+
'ratings' => false,
|
66 |
+
'downloaded' => false,
|
67 |
+
'last_updated' => false,
|
68 |
+
'added' => false,
|
69 |
+
'tags' => false,
|
70 |
+
'compatibility' => false,
|
71 |
+
'homepage' => false,
|
72 |
+
'donate_link' => false,
|
73 |
+
),
|
74 |
+
)
|
75 |
+
);
|
76 |
+
|
77 |
+
$skin = new \WP_Ajax_Upgrader_Skin();
|
78 |
+
$upgrader = new \Plugin_Upgrader( $skin );
|
79 |
+
$upgrader->install( $api->download_link );
|
80 |
+
|
81 |
+
if ( $api->name ) {
|
82 |
+
$error = false;
|
83 |
+
|
84 |
+
$output['message'] = $api->name . ' successfully installed.';
|
85 |
+
} else {
|
86 |
+
$error = true;
|
87 |
+
|
88 |
+
$output['message'] = 'There was an error installing ' . $api->name . '.';
|
89 |
+
}
|
90 |
+
|
91 |
+
// Add plugin slug in the response.
|
92 |
+
$output['plugin'] = $plugin;
|
93 |
+
|
94 |
+
if ( ! $error ) {
|
95 |
+
wp_send_json_success( $output );
|
96 |
+
} else {
|
97 |
+
wp_send_json_error( $output );
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
/**
|
102 |
+
* Callback for plugin activation.
|
103 |
+
*
|
104 |
+
* @since 1.0.0
|
105 |
+
*/
|
106 |
+
public static function activate_plugin() {
|
107 |
+
$output = array();
|
108 |
+
$error = true;
|
109 |
+
|
110 |
+
// Bail if no access.
|
111 |
+
if ( ! current_user_can( 'activate_plugins' ) ) {
|
112 |
+
$output['message'] = esc_html__( 'Sorry, you are not allowed to activate plugins for this site.', 'wp-welcome' );
|
113 |
+
wp_send_json_error( $output );
|
114 |
+
}
|
115 |
+
|
116 |
+
$nonce = isset( $_POST['nonce'] ) ? sanitize_text_field( wp_unslash( $_POST['nonce'] ) ) : '';
|
117 |
+
$plugin = isset( $_POST['plugin'] ) ? sanitize_text_field( wp_unslash( $_POST['plugin'] ) ) : '';
|
118 |
+
|
119 |
+
// Bail if no plugin slug.
|
120 |
+
if ( empty( $plugin ) ) {
|
121 |
+
$output['message'] = esc_html__( 'Invalid plugin slug.', 'wp-welcome' );
|
122 |
+
wp_send_json_error( $output );
|
123 |
+
}
|
124 |
+
|
125 |
+
// Bail if nonce is not valid.
|
126 |
+
if ( ! wp_verify_nonce( $nonce, 'wpw_installer_nonce' ) ) {
|
127 |
+
$output['message'] = esc_html__( 'Nonce verification failed.', 'wp-welcome' );
|
128 |
+
wp_send_json_error( $output );
|
129 |
+
}
|
130 |
+
|
131 |
+
// Include required files for plugin activation.
|
132 |
+
require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
|
133 |
+
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
134 |
+
require_once ABSPATH . 'wp-admin/includes/class-plugin-upgrader.php';
|
135 |
+
|
136 |
+
// Get plugin info.
|
137 |
+
$api = plugins_api(
|
138 |
+
'plugin_information',
|
139 |
+
array(
|
140 |
+
'slug' => $plugin,
|
141 |
+
'fields' => array(
|
142 |
+
'short_description' => false,
|
143 |
+
'sections' => false,
|
144 |
+
'requires' => false,
|
145 |
+
'rating' => false,
|
146 |
+
'ratings' => false,
|
147 |
+
'downloaded' => false,
|
148 |
+
'last_updated' => false,
|
149 |
+
'added' => false,
|
150 |
+
'tags' => false,
|
151 |
+
'compatibility' => false,
|
152 |
+
'homepage' => false,
|
153 |
+
'donate_link' => false,
|
154 |
+
),
|
155 |
+
)
|
156 |
+
);
|
157 |
+
|
158 |
+
if ( $api->name ) {
|
159 |
+
$main_plugin_file = Helper::get_plugin_file( $plugin );
|
160 |
+
|
161 |
+
$error = false;
|
162 |
+
|
163 |
+
if ( $main_plugin_file ) {
|
164 |
+
activate_plugin( $main_plugin_file, '', false, true );
|
165 |
+
$output['message'] = $api->name . ' successfully activated.';
|
166 |
+
}
|
167 |
+
} else {
|
168 |
+
$error = true;
|
169 |
+
|
170 |
+
$output['message'] = 'There was an error activating ' . $api->name . '.';
|
171 |
+
}
|
172 |
+
|
173 |
+
// Add plugin slug in the response.
|
174 |
+
$output['plugin'] = $plugin;
|
175 |
+
|
176 |
+
if ( ! $error ) {
|
177 |
+
wp_send_json_success( $output );
|
178 |
+
} else {
|
179 |
+
wp_send_json_error( $output );
|
180 |
+
}
|
181 |
+
}
|
182 |
+
}
|
vendor/ernilambar/wp-welcome/src/Helper.php
ADDED
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Helper class
|
4 |
+
*
|
5 |
+
* @package WPWelcome
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace Nilambar\Welcome;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Helper class.
|
12 |
+
*
|
13 |
+
* @since 1.0.0
|
14 |
+
*/
|
15 |
+
class Helper {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Check if plugin is activated.
|
19 |
+
*
|
20 |
+
* @since 1.0.0
|
21 |
+
*
|
22 |
+
* @param string $plugin_slug Plugin slug.
|
23 |
+
* @return bool True if plugin is activated.
|
24 |
+
*/
|
25 |
+
public static function is_plugin_active( $plugin_slug ) {
|
26 |
+
$status = false;
|
27 |
+
|
28 |
+
$file = self::get_plugin_file( $plugin_slug );
|
29 |
+
|
30 |
+
if ( ! function_exists( 'is_plugin_active' ) ) {
|
31 |
+
require_once ABSPATH . '/wp-admin/includes/plugin.php';
|
32 |
+
}
|
33 |
+
|
34 |
+
$status = is_plugin_active( $file );
|
35 |
+
|
36 |
+
return $status;
|
37 |
+
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Check if plugin is installed.
|
41 |
+
*
|
42 |
+
* @since 1.0.0
|
43 |
+
*
|
44 |
+
* @param string $plugin_slug Plugin slug.
|
45 |
+
* @return bool True if plugin is installed.
|
46 |
+
*/
|
47 |
+
public static function is_plugin_installed( $plugin_slug ) {
|
48 |
+
$status = false;
|
49 |
+
|
50 |
+
$plugins = self::get_all_plugins();
|
51 |
+
|
52 |
+
if ( empty( $plugins ) ) {
|
53 |
+
return $status;
|
54 |
+
}
|
55 |
+
|
56 |
+
$filenames = array_keys( $plugins );
|
57 |
+
|
58 |
+
$filenames = array_map(
|
59 |
+
function( $f ) {
|
60 |
+
return dirname( plugin_basename( $f ) );
|
61 |
+
},
|
62 |
+
$filenames
|
63 |
+
);
|
64 |
+
|
65 |
+
$status = in_array( $plugin_slug, $filenames, true ) ? true : false;
|
66 |
+
|
67 |
+
return $status;
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Return all plugins in the site.
|
72 |
+
*
|
73 |
+
* @since 1.0.0
|
74 |
+
*
|
75 |
+
* @return array Plugins list.
|
76 |
+
*/
|
77 |
+
public static function get_all_plugins() {
|
78 |
+
if ( ! function_exists( 'get_plugins' ) ) {
|
79 |
+
require_once ABSPATH . '/wp-admin/includes/plugin.php';
|
80 |
+
}
|
81 |
+
|
82 |
+
return get_plugins();
|
83 |
+
}
|
84 |
+
|
85 |
+
/**
|
86 |
+
* Return plugin main file name.
|
87 |
+
*
|
88 |
+
* @since 1.0.0
|
89 |
+
*
|
90 |
+
* @param string $plugin_slug Plugin slug.
|
91 |
+
* @return string Plugin main file name.
|
92 |
+
*/
|
93 |
+
public static function get_plugin_file( $plugin_slug ) {
|
94 |
+
$plugins = self::get_all_plugins();
|
95 |
+
|
96 |
+
foreach ( $plugins as $plugin_file => $plugin_info ) {
|
97 |
+
$slug = dirname( plugin_basename( $plugin_file ) );
|
98 |
+
|
99 |
+
if ( $slug ) {
|
100 |
+
if ( $slug === $plugin_slug ) {
|
101 |
+
return $plugin_file;
|
102 |
+
}
|
103 |
+
}
|
104 |
+
}
|
105 |
+
|
106 |
+
return null;
|
107 |
+
}
|
108 |
+
|
109 |
+
/**
|
110 |
+
* Return plugin details.
|
111 |
+
*
|
112 |
+
* @since 1.0.0
|
113 |
+
*
|
114 |
+
* @param string $slug Plugin slug.
|
115 |
+
* @return array Plugin details.
|
116 |
+
*/
|
117 |
+
public static function get_plugin_info( $slug ) {
|
118 |
+
$output = array();
|
119 |
+
|
120 |
+
if ( ! function_exists( 'plugins_api' ) ) {
|
121 |
+
require_once ABSPATH . 'wp-admin/includes/plugin-install.php';
|
122 |
+
}
|
123 |
+
|
124 |
+
$api = plugins_api(
|
125 |
+
'plugin_information',
|
126 |
+
array(
|
127 |
+
'slug' => sanitize_file_name( $slug ),
|
128 |
+
'fields' => array(
|
129 |
+
'short_description' => true,
|
130 |
+
'sections' => false,
|
131 |
+
'contributors' => false,
|
132 |
+
'banners' => false,
|
133 |
+
'versions' => false,
|
134 |
+
'requires' => false,
|
135 |
+
'downloaded' => true,
|
136 |
+
'last_updated' => false,
|
137 |
+
'added' => false,
|
138 |
+
'tags' => false,
|
139 |
+
'compatibility' => false,
|
140 |
+
'homepage' => false,
|
141 |
+
'donate_link' => false,
|
142 |
+
'ratings' => false,
|
143 |
+
'icons' => true,
|
144 |
+
),
|
145 |
+
)
|
146 |
+
);
|
147 |
+
|
148 |
+
if ( ! is_wp_error( $api ) ) {
|
149 |
+
$output = $api;
|
150 |
+
|
151 |
+
}
|
152 |
+
|
153 |
+
return $output;
|
154 |
+
}
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Return plugin local data.
|
158 |
+
*
|
159 |
+
* @since 1.0.0
|
160 |
+
*
|
161 |
+
* @param string $slug Plugin slug.
|
162 |
+
* @return array Plugin details.
|
163 |
+
*/
|
164 |
+
public static function get_plugin_information( $slug ) {
|
165 |
+
$output = array();
|
166 |
+
|
167 |
+
$plugins = self::get_all_plugins();
|
168 |
+
|
169 |
+
$plugin_file = self::get_plugin_file( $slug );
|
170 |
+
|
171 |
+
if ( isset( $plugins[ $plugin_file ] ) ) {
|
172 |
+
$output = $plugins[ $plugin_file ];
|
173 |
+
}
|
174 |
+
|
175 |
+
return $output;
|
176 |
+
}
|
177 |
+
}
|
vendor/ernilambar/wp-welcome/src/Utils.php
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Utils class
|
4 |
+
*
|
5 |
+
* @package WPWelcome
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace Nilambar\Welcome;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Utils class.
|
12 |
+
*
|
13 |
+
* @since 1.0.0
|
14 |
+
*/
|
15 |
+
class Utils {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Render attributes.
|
19 |
+
*
|
20 |
+
* @since 1.0.0
|
21 |
+
*
|
22 |
+
* @param array $attributes Attributes.
|
23 |
+
* @param bool $echo Whether to echo or not.
|
24 |
+
*/
|
25 |
+
public static function render_attr( $attributes, $echo = true ) {
|
26 |
+
if ( empty( $attributes ) ) {
|
27 |
+
return;
|
28 |
+
}
|
29 |
+
|
30 |
+
$html = '';
|
31 |
+
|
32 |
+
foreach ( $attributes as $name => $value ) {
|
33 |
+
$esc_value = '';
|
34 |
+
|
35 |
+
if ( 'class' === $name && is_array( $value ) ) {
|
36 |
+
$value = join( ' ', array_unique( $value ) );
|
37 |
+
}
|
38 |
+
|
39 |
+
if ( false !== $value && 'href' === $name ) {
|
40 |
+
$esc_value = esc_url( $value );
|
41 |
+
|
42 |
+
} elseif ( false !== $value ) {
|
43 |
+
$esc_value = esc_attr( $value );
|
44 |
+
}
|
45 |
+
|
46 |
+
if ( ! in_array( $name, array( 'class', 'id', 'title', 'style', 'name' ), true ) ) {
|
47 |
+
$html .= false !== $value ? sprintf( ' %s="%s"', esc_html( $name ), $esc_value ) : esc_html( " {$name}" );
|
48 |
+
} else {
|
49 |
+
$html .= $value ? sprintf( ' %s="%s"', esc_html( $name ), $esc_value ) : '';
|
50 |
+
}
|
51 |
+
}
|
52 |
+
|
53 |
+
if ( ! empty( $html ) && true === $echo ) {
|
54 |
+
echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
55 |
+
} else {
|
56 |
+
return $html;
|
57 |
+
}
|
58 |
+
}
|
59 |
+
}
|
vendor/ernilambar/wp-welcome/src/View.php
ADDED
@@ -0,0 +1,443 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* View class
|
4 |
+
*
|
5 |
+
* @package WPWelcome
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace Nilambar\Welcome;
|
9 |
+
|
10 |
+
use Nilambar\Welcome\Utils;
|
11 |
+
|
12 |
+
/**
|
13 |
+
* View class.
|
14 |
+
*
|
15 |
+
* @since 1.0.0
|
16 |
+
*/
|
17 |
+
class View {
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Render page header.
|
21 |
+
*
|
22 |
+
* @since 1.0.0
|
23 |
+
*
|
24 |
+
* @param Welcome $obj Instance of Welcome.
|
25 |
+
*/
|
26 |
+
public static function render_header( $obj ) {
|
27 |
+
echo '<div class="wpw-header">';
|
28 |
+
|
29 |
+
$page_title = $obj->get_page_title();
|
30 |
+
|
31 |
+
if ( $page_title ) {
|
32 |
+
echo '<h1>' . wp_kses_post( $page_title ) . '</h1>';
|
33 |
+
}
|
34 |
+
|
35 |
+
$page_subtitle = $obj->get_page_subtitle();
|
36 |
+
|
37 |
+
if ( $page_subtitle ) {
|
38 |
+
echo '<p>' . wp_kses_post( $page_subtitle ) . '</p>';
|
39 |
+
}
|
40 |
+
|
41 |
+
$quick_links = $obj->get_quick_links();
|
42 |
+
|
43 |
+
if ( ! empty( $quick_links ) ) {
|
44 |
+
self::render_quick_links( $quick_links );
|
45 |
+
}
|
46 |
+
|
47 |
+
echo '</div><!-- .wpw-header -->';
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Render quick links.
|
52 |
+
*
|
53 |
+
* @since 1.0.0
|
54 |
+
*
|
55 |
+
* @param array $links Links list.
|
56 |
+
*/
|
57 |
+
public static function render_quick_links( $links ) {
|
58 |
+
if ( ! empty( $links ) ) {
|
59 |
+
echo '<div class="wpw-quick-links">';
|
60 |
+
|
61 |
+
foreach ( $links as $link ) {
|
62 |
+
$button_classes = '';
|
63 |
+
|
64 |
+
if ( isset( $link['type'] ) ) {
|
65 |
+
if ( 'primary' === $link['type'] ) {
|
66 |
+
$button_classes = 'button button-primary';
|
67 |
+
} elseif ( 'secondary' === $link['type'] ) {
|
68 |
+
$button_classes = 'button button-secondary';
|
69 |
+
}
|
70 |
+
}
|
71 |
+
|
72 |
+
echo '<a href="' . esc_url( $link['url'] ) . '" class="' . esc_attr( $button_classes ) . '" target="_blank">' . esc_html( $link['text'] ) . '</a>';
|
73 |
+
}
|
74 |
+
|
75 |
+
echo '</div><!-- .wpw-quick-links -->';
|
76 |
+
}
|
77 |
+
}
|
78 |
+
|
79 |
+
/**
|
80 |
+
* Render tab navigation.
|
81 |
+
*
|
82 |
+
* @since 1.0.0
|
83 |
+
*
|
84 |
+
* @param array $tabs Tabs list.
|
85 |
+
* @param Welcome $obj Instance of Welcome.
|
86 |
+
*/
|
87 |
+
public static function render_tab_navigation( $tabs, $obj ) {
|
88 |
+
echo '<div class="wpw-tabs-nav">';
|
89 |
+
|
90 |
+
$slug = $obj->get_slug();
|
91 |
+
|
92 |
+
foreach ( $tabs as $tab ) {
|
93 |
+
$attrs = array(
|
94 |
+
'href' => '#' . $slug . '-' . $tab['id'],
|
95 |
+
'class' => array( 'tab-nav', 'tab-' . $tab['id'] ),
|
96 |
+
);
|
97 |
+
|
98 |
+
echo '<h3><a ' . Utils::render_attr( $attrs, false ) . '>' . esc_html( $tab['title'] ) . '</a></h3>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
99 |
+
}
|
100 |
+
|
101 |
+
echo '</div><!-- .wpw-tabs-nav -->';
|
102 |
+
|
103 |
+
}
|
104 |
+
|
105 |
+
/**
|
106 |
+
* Render tabs content.
|
107 |
+
*
|
108 |
+
* @since 1.0.0
|
109 |
+
*
|
110 |
+
* @param array $tabs Tabs list.
|
111 |
+
* @param Welcome $obj Instance of Welcome.
|
112 |
+
*/
|
113 |
+
public static function render_tabs_content( $tabs, $obj ) {
|
114 |
+
$slug = $obj->get_slug();
|
115 |
+
|
116 |
+
foreach ( $tabs as $tab ) {
|
117 |
+
echo '<div id="' . esc_attr( $slug . '-' . $tab['id'] ) . '" class="wpw-tab-content">';
|
118 |
+
|
119 |
+
self::render_tab( $tab );
|
120 |
+
|
121 |
+
echo '</div><!-- .wpw-tab-content -->';
|
122 |
+
}
|
123 |
+
}
|
124 |
+
|
125 |
+
/**
|
126 |
+
* Render tab content.
|
127 |
+
*
|
128 |
+
* @since 1.0.0
|
129 |
+
*
|
130 |
+
* @param array $tab Tab detail.
|
131 |
+
*/
|
132 |
+
public static function render_tab( $tab ) {
|
133 |
+
do_action( 'wp_welcome_before_tab_content', $tab );
|
134 |
+
|
135 |
+
switch ( $tab['type'] ) {
|
136 |
+
case 'content':
|
137 |
+
if ( isset( $tab['content'] ) ) {
|
138 |
+
echo wp_kses_post( wpautop( $tab['content'] ) );
|
139 |
+
}
|
140 |
+
break;
|
141 |
+
|
142 |
+
case 'custom':
|
143 |
+
if ( isset( $tab['render_callback'] ) && is_callable( $tab['render_callback'] ) ) {
|
144 |
+
$tab['render_callback']();
|
145 |
+
}
|
146 |
+
break;
|
147 |
+
|
148 |
+
case 'grid':
|
149 |
+
if ( isset( $tab['items'] ) && ! empty( $tab['items'] ) ) {
|
150 |
+
self::render_grid_items( $tab['items'], array( 'grid_columns' => $tab['grid_columns'] ) );
|
151 |
+
}
|
152 |
+
break;
|
153 |
+
|
154 |
+
case 'plugin':
|
155 |
+
if ( isset( $tab['items'] ) && ! empty( $tab['items'] ) ) {
|
156 |
+
self::render_plugin_items( $tab['items'] );
|
157 |
+
}
|
158 |
+
break;
|
159 |
+
|
160 |
+
case 'comparison':
|
161 |
+
if ( isset( $tab['items'] ) && ! empty( $tab['items'] ) ) {
|
162 |
+
$headings = ( isset( $tab['headings'] ) && ! empty( $tab['headings'] ) ) ? $tab['headings'] : array();
|
163 |
+
$upgrade = ( isset( $tab['upgrade_button'] ) && ! empty( $tab['upgrade_button'] ) ) ? $tab['upgrade_button'] : array();
|
164 |
+
self::render_comparison_table( $tab['items'], $headings, $upgrade );
|
165 |
+
}
|
166 |
+
break;
|
167 |
+
|
168 |
+
default:
|
169 |
+
break;
|
170 |
+
}
|
171 |
+
|
172 |
+
do_action( 'wp_welcome_after_tab_content', $tab );
|
173 |
+
}
|
174 |
+
|
175 |
+
/**
|
176 |
+
* Render grid items.
|
177 |
+
*
|
178 |
+
* @since 1.0.0
|
179 |
+
*
|
180 |
+
* @param array $items Grid items list.
|
181 |
+
* @param array $args Grid extra arguments.
|
182 |
+
*/
|
183 |
+
public static function render_grid_items( $items, $args = array() ) {
|
184 |
+
$cols = ( isset( $args['grid_columns'] ) && absint( $args['grid_columns'] ) > 0 ) ? absint( $args['grid_columns'] ) : 2;
|
185 |
+
|
186 |
+
echo '<div class="wpw-grid wpw-col-' . esc_attr( $cols ) . '">';
|
187 |
+
|
188 |
+
foreach ( $items as $key => $item ) {
|
189 |
+
self::render_grid_item( $item );
|
190 |
+
}
|
191 |
+
|
192 |
+
echo '</div>';
|
193 |
+
}
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Render grid item.
|
197 |
+
*
|
198 |
+
* @since 1.0.0
|
199 |
+
*
|
200 |
+
* @param array $item Grid item detail.
|
201 |
+
*/
|
202 |
+
private static function render_grid_item( $item ) {
|
203 |
+
echo '<div class="wpw-box plain">';
|
204 |
+
|
205 |
+
if ( isset( $item['title'] ) && ! empty( $item['title'] ) ) {
|
206 |
+
echo '<h3>';
|
207 |
+
|
208 |
+
if ( isset( $item['icon'] ) && ! empty( $item['icon'] ) ) {
|
209 |
+
echo '<span class="' . esc_attr( $item['icon'] ) . '"></span>';
|
210 |
+
}
|
211 |
+
|
212 |
+
echo esc_html( $item['title'] );
|
213 |
+
|
214 |
+
echo '</h3>';
|
215 |
+
}
|
216 |
+
|
217 |
+
if ( isset( $item['render_callback'] ) && is_callable( $item['render_callback'] ) ) {
|
218 |
+
call_user_func( $item['render_callback'] );
|
219 |
+
} else {
|
220 |
+
if ( isset( $item['description'] ) && ! empty( $item['description'] ) ) {
|
221 |
+
echo '<p>' . wp_kses_post( $item['description'] ) . '</p>';
|
222 |
+
}
|
223 |
+
}
|
224 |
+
|
225 |
+
if ( isset( $item['button_text'] ) && ! empty( $item['button_text'] ) && isset( $item['button_url'] ) && ! empty( $item['button_url'] ) ) {
|
226 |
+
$button_target = ( isset( $item['is_new_tab'] ) && ( true === wp_validate_boolean( $item['is_new_tab'] ) ) ) ? '_blank' : '_self';
|
227 |
+
$button_class = '';
|
228 |
+
if ( isset( $item['button_type'] ) && ! empty( $item['button_type'] ) ) {
|
229 |
+
if ( 'primary' === $item['button_type'] ) {
|
230 |
+
$button_class = 'button button-primary';
|
231 |
+
} elseif ( 'secondary' === $item['button_type'] ) {
|
232 |
+
$button_class = 'button button-secondary';
|
233 |
+
}
|
234 |
+
}
|
235 |
+
|
236 |
+
echo '<p><a href="' . esc_url( $item['button_url'] ) . '" class="' . esc_attr( $button_class ) . '" target="' . esc_attr( $button_target ) . '">' . esc_html( $item['button_text'] ) . '</a></p>';
|
237 |
+
}
|
238 |
+
|
239 |
+
echo '</div><!-- .item -->';
|
240 |
+
}
|
241 |
+
|
242 |
+
/**
|
243 |
+
* Render plugin items.
|
244 |
+
*
|
245 |
+
* @since 1.0.0
|
246 |
+
*
|
247 |
+
* @param array $items Plugin items list.
|
248 |
+
*/
|
249 |
+
public static function render_plugin_items( $items ) {
|
250 |
+
echo '<div class="wpw-col-2">';
|
251 |
+
|
252 |
+
foreach ( $items as $key => $item ) {
|
253 |
+
self::render_plugin_item( $item );
|
254 |
+
}
|
255 |
+
|
256 |
+
echo '</div>';
|
257 |
+
}
|
258 |
+
|
259 |
+
/**
|
260 |
+
* Render plugin item.
|
261 |
+
*
|
262 |
+
* @since 1.0.0
|
263 |
+
*
|
264 |
+
* @param array $item Plugin item detail.
|
265 |
+
*/
|
266 |
+
public static function render_plugin_item( $item ) {
|
267 |
+
echo '<div class="wpw-box wpw-box-plugin">';
|
268 |
+
|
269 |
+
if ( isset( $item['name'] ) && ! empty( $item['name'] ) ) {
|
270 |
+
echo '<h3>' . esc_html( $item['name'] ) . '</h3>';
|
271 |
+
}
|
272 |
+
|
273 |
+
if ( isset( $item['description'] ) && ! empty( $item['description'] ) ) {
|
274 |
+
echo '<p>' . wp_kses_post( $item['description'] ) . '</p>';
|
275 |
+
}
|
276 |
+
|
277 |
+
$button_text = esc_html__( 'Install Now', 'wp-welcome' );
|
278 |
+
$button_classes = 'button button-primary install';
|
279 |
+
|
280 |
+
if ( Helper::is_plugin_installed( $item['slug'] ) && ! Helper::is_plugin_active( $item['slug'] ) ) {
|
281 |
+
$button_text = esc_html__( 'Activate', 'wp-welcome' );
|
282 |
+
$button_classes = 'button activate';
|
283 |
+
} elseif ( Helper::is_plugin_active( $item['slug'] ) ) {
|
284 |
+
$button_text = esc_html__( 'Activated', 'wp-welcome' );
|
285 |
+
$button_classes = 'button disabled';
|
286 |
+
}
|
287 |
+
|
288 |
+
echo '<div class="wpw-buttons">';
|
289 |
+
|
290 |
+
echo '<a class="' . esc_attr( $button_classes ) . '" data-slug="' . esc_attr( $item['slug'] ) . '" href="#">' . esc_html( $button_text ) . '</a>';
|
291 |
+
|
292 |
+
echo '<a href="' . esc_url( 'https://wordpress.org/plugins/' . $item['slug'] . '/' ) . '" target="_blank">' . esc_html__( 'View Details', 'wp-welcome' ) . '</a>';
|
293 |
+
|
294 |
+
echo '</div><!-- .wpw-buttons -->';
|
295 |
+
|
296 |
+
echo '</div><!-- .item -->';
|
297 |
+
}
|
298 |
+
|
299 |
+
/**
|
300 |
+
* Render comparison table.
|
301 |
+
*
|
302 |
+
* @since 1.0.0
|
303 |
+
*
|
304 |
+
* @param array $items Table items.
|
305 |
+
* @param array $headings Headings detail.
|
306 |
+
* @param array $upgrade Upgrade button detail.
|
307 |
+
*/
|
308 |
+
public static function render_comparison_table( $items, $headings, $upgrade ) {
|
309 |
+
$headings = wp_parse_args(
|
310 |
+
$headings,
|
311 |
+
array(
|
312 |
+
'free' => esc_html__( 'Free', 'wp-welcome' ),
|
313 |
+
'pro' => esc_html__( 'Pro', 'wp-welcome' ),
|
314 |
+
)
|
315 |
+
);
|
316 |
+
|
317 |
+
$upgrade = wp_parse_args(
|
318 |
+
$upgrade,
|
319 |
+
array(
|
320 |
+
'text' => esc_html__( 'Upgrade to Pro', 'wp-welcome' ),
|
321 |
+
'url' => '',
|
322 |
+
)
|
323 |
+
);
|
324 |
+
?>
|
325 |
+
<table class="comparison-table">
|
326 |
+
<thead>
|
327 |
+
<tr>
|
328 |
+
<th></th>
|
329 |
+
<th><?php echo esc_html( $headings['free'] ); ?></th>
|
330 |
+
<th><?php echo esc_html( $headings['pro'] ); ?></th>
|
331 |
+
</tr>
|
332 |
+
</thead>
|
333 |
+
|
334 |
+
<tbody>
|
335 |
+
<?php foreach ( $items as $item ) : ?>
|
336 |
+
|
337 |
+
<tr>
|
338 |
+
<td>
|
339 |
+
<?php if ( isset( $item['title'] ) ) : ?>
|
340 |
+
<h3><?php echo esc_html( $item['title'] ); ?></h3>
|
341 |
+
<?php endif; ?>
|
342 |
+
<?php if ( isset( $item['description'] ) ) : ?>
|
343 |
+
<p><?php echo esc_html( $item['description'] ); ?></p>
|
344 |
+
<?php endif; ?>
|
345 |
+
</td>
|
346 |
+
<td class="col-free">
|
347 |
+
<?php
|
348 |
+
if ( 'yes' === $item['free'] ) {
|
349 |
+
echo '<span class="dashicons-before dashicons-yes yes"></span>';
|
350 |
+
} elseif ( 'no' === $item['free'] ) {
|
351 |
+
echo '<span class="dashicons-before dashicons-no-alt no"></span>';
|
352 |
+
} else {
|
353 |
+
echo esc_html( $item['free'] );
|
354 |
+
}
|
355 |
+
?>
|
356 |
+
</td>
|
357 |
+
<td class="col-pro">
|
358 |
+
<?php
|
359 |
+
if ( 'yes' === $item['pro'] ) {
|
360 |
+
echo '<span class="dashicons-before dashicons-yes yes"></span>';
|
361 |
+
} elseif ( 'no' === $item['pro'] ) {
|
362 |
+
echo '<span class="dashicons-before dashicons-no-alt no"></span>';
|
363 |
+
} else {
|
364 |
+
echo esc_html( $item['pro'] );
|
365 |
+
}
|
366 |
+
?>
|
367 |
+
</td>
|
368 |
+
</tr>
|
369 |
+
|
370 |
+
<?php endforeach; ?>
|
371 |
+
|
372 |
+
<?php if ( ! empty( $upgrade['url'] ) ) : ?>
|
373 |
+
<tr class="wpw-comparison-row-upgrade">
|
374 |
+
<td></td>
|
375 |
+
<td colspan="2">
|
376 |
+
<a href="<?php echo esc_url( $upgrade['url'] ); ?>" target="_blank" class="button button-primary button-hero"><?php echo esc_html( $upgrade['text'] ); ?></a>
|
377 |
+
</td>
|
378 |
+
</tr>
|
379 |
+
<?php endif; ?>
|
380 |
+
</tbody>
|
381 |
+
</table><!-- .comparison-table -->
|
382 |
+
<?php
|
383 |
+
}
|
384 |
+
|
385 |
+
/**
|
386 |
+
* Render sidebar box.
|
387 |
+
*
|
388 |
+
* @since 1.0.0
|
389 |
+
*
|
390 |
+
* @param array $args Sidebar box arguments.
|
391 |
+
* @param Welcome $obj Instance of Welcome.
|
392 |
+
*/
|
393 |
+
public static function render_sidebar_box( $args, $obj ) {
|
394 |
+
$box_attrs = array(
|
395 |
+
'class' => array( 'wpw-box' ),
|
396 |
+
);
|
397 |
+
|
398 |
+
if ( ! empty( $args['class'] ) ) {
|
399 |
+
$box_attrs['class'][] = $args['class'];
|
400 |
+
}
|
401 |
+
|
402 |
+
echo '<div ' . Utils::render_attr( $box_attrs, false ) . '>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
403 |
+
|
404 |
+
if ( $args['title'] ) {
|
405 |
+
echo '<h3>';
|
406 |
+
|
407 |
+
if ( ! empty( $args['icon'] ) ) {
|
408 |
+
echo '<span class="dashicons ' . esc_attr( $args['icon'] ) . '"></span>';
|
409 |
+
}
|
410 |
+
|
411 |
+
echo esc_html( $args['title'] );
|
412 |
+
echo '</h3>';
|
413 |
+
}
|
414 |
+
|
415 |
+
if ( 'content' === $args['type'] ) {
|
416 |
+
echo wp_kses_post( wpautop( $args['content'] ) );
|
417 |
+
}
|
418 |
+
|
419 |
+
if ( 'custom' === $args['type'] ) {
|
420 |
+
if ( is_callable( $args['render_callback'] ) ) {
|
421 |
+
call_user_func( $args['render_callback'], $obj );
|
422 |
+
}
|
423 |
+
}
|
424 |
+
|
425 |
+
if ( ! empty( $args['button_text'] ) && ! empty( $args['button_url'] ) ) {
|
426 |
+
$button_attrs = array(
|
427 |
+
'href' => $args['button_url'],
|
428 |
+
);
|
429 |
+
|
430 |
+
if ( ! empty( $args['button_class'] ) ) {
|
431 |
+
$button_attrs['class'] = $args['button_class'];
|
432 |
+
}
|
433 |
+
|
434 |
+
if ( true === $args['button_new_tab'] ) {
|
435 |
+
$button_attrs['target'] = '_blank';
|
436 |
+
}
|
437 |
+
|
438 |
+
echo '<a ' . Utils::render_attr( $button_attrs, false ) . '">' . esc_html( $args['button_text'] ) . '</a>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
439 |
+
}
|
440 |
+
|
441 |
+
echo '</div><!-- .wpw-box -->';
|
442 |
+
}
|
443 |
+
}
|
vendor/ernilambar/wp-welcome/src/Welcome.php
ADDED
@@ -0,0 +1,571 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Main class
|
4 |
+
*
|
5 |
+
* @package WPWelcome
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace Nilambar\Welcome;
|
9 |
+
|
10 |
+
use Nilambar\Welcome\Ajax;
|
11 |
+
use Nilambar\Welcome\Helper;
|
12 |
+
use Nilambar\Welcome\View;
|
13 |
+
use Nilambar\Welcome\Utils;
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Welcome class.
|
17 |
+
*
|
18 |
+
* @since 1.0.0
|
19 |
+
*/
|
20 |
+
class Welcome {
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Page settings.
|
24 |
+
*
|
25 |
+
* @since 1.0.0
|
26 |
+
*
|
27 |
+
* @var array
|
28 |
+
*/
|
29 |
+
protected $page = array();
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Admin notice settings.
|
33 |
+
*
|
34 |
+
* @since 1.0.0
|
35 |
+
*
|
36 |
+
* @var array
|
37 |
+
*/
|
38 |
+
protected $admin_notice = array();
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Quick links.
|
42 |
+
*
|
43 |
+
* @since 1.0.0
|
44 |
+
*
|
45 |
+
* @var array
|
46 |
+
*/
|
47 |
+
protected $quick_links = array();
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Tabs.
|
51 |
+
*
|
52 |
+
* @since 1.0.0
|
53 |
+
*
|
54 |
+
* @var array
|
55 |
+
*/
|
56 |
+
protected $tabs = array();
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Tab status.
|
60 |
+
*
|
61 |
+
* @since 1.0.0
|
62 |
+
*
|
63 |
+
* @var bool
|
64 |
+
*/
|
65 |
+
protected $tab_status = false;
|
66 |
+
|
67 |
+
/**
|
68 |
+
* Whether page is in top level menu.
|
69 |
+
*
|
70 |
+
* @since 1.0.0
|
71 |
+
*
|
72 |
+
* @var bool
|
73 |
+
*/
|
74 |
+
protected $top_level_menu;
|
75 |
+
|
76 |
+
/**
|
77 |
+
* Parent page.
|
78 |
+
*
|
79 |
+
* @since 1.0.0
|
80 |
+
*
|
81 |
+
* @var string
|
82 |
+
*/
|
83 |
+
protected $parent_page;
|
84 |
+
|
85 |
+
/**
|
86 |
+
* Sidebar status.
|
87 |
+
*
|
88 |
+
* @since 1.0.0
|
89 |
+
*
|
90 |
+
* @var bool
|
91 |
+
*/
|
92 |
+
protected $is_sidebar = false;
|
93 |
+
|
94 |
+
/**
|
95 |
+
* Sidebar callback.
|
96 |
+
*
|
97 |
+
* @since 1.0.0
|
98 |
+
*
|
99 |
+
* @var string
|
100 |
+
*/
|
101 |
+
protected $sidebar_callback = null;
|
102 |
+
|
103 |
+
/**
|
104 |
+
* Constructor.
|
105 |
+
*
|
106 |
+
* @since 1.0.0
|
107 |
+
*
|
108 |
+
* @param string $mode Mode; theme or plugin.
|
109 |
+
* @param string $slug Plugin or theme slug.
|
110 |
+
*/
|
111 |
+
public function __construct( $mode, $slug ) {
|
112 |
+
if ( ! in_array( $mode, array( 'plugin', 'theme' ), true ) ) {
|
113 |
+
return;
|
114 |
+
}
|
115 |
+
|
116 |
+
if ( empty( $slug ) ) {
|
117 |
+
return;
|
118 |
+
}
|
119 |
+
|
120 |
+
if ( 'theme' === $mode ) {
|
121 |
+
$theme_object = wp_get_theme( $slug );
|
122 |
+
|
123 |
+
if ( $theme_object->exists() ) {
|
124 |
+
$this->product_name = $theme_object->get( 'Name' );
|
125 |
+
$this->product_version = $theme_object->get( 'Version' );
|
126 |
+
$this->product_slug = $theme_object->get_template();
|
127 |
+
}
|
128 |
+
} elseif ( 'plugin' === $mode ) {
|
129 |
+
$plugin_details = Helper::get_plugin_information( $slug );
|
130 |
+
|
131 |
+
if ( ! empty( $plugin_details ) ) {
|
132 |
+
$this->product_name = $plugin_details['Name'];
|
133 |
+
$this->product_version = $plugin_details['Version'];
|
134 |
+
$this->product_slug = $slug;
|
135 |
+
}
|
136 |
+
}
|
137 |
+
}
|
138 |
+
|
139 |
+
/**
|
140 |
+
* Run now.
|
141 |
+
*
|
142 |
+
* @since 1.0.0
|
143 |
+
*/
|
144 |
+
public function run() {
|
145 |
+
if ( empty( $this->page ) ) {
|
146 |
+
return;
|
147 |
+
}
|
148 |
+
|
149 |
+
if ( empty( $this->product_slug ) ) {
|
150 |
+
return;
|
151 |
+
}
|
152 |
+
|
153 |
+
if ( count( $this->tabs ) > 1 ) {
|
154 |
+
$this->tab_status = true;
|
155 |
+
}
|
156 |
+
|
157 |
+
// Create admin page.
|
158 |
+
add_action( 'admin_menu', array( $this, 'create_menu_page' ) );
|
159 |
+
|
160 |
+
if ( ! empty( $this->admin_notice ) ) {
|
161 |
+
// Update notice dismiss status.
|
162 |
+
add_action( 'admin_head', array( $this, 'update_notice_status' ) );
|
163 |
+
|
164 |
+
// Admin notice.
|
165 |
+
add_action( 'admin_notices', array( $this, 'add_admin_notice' ) );
|
166 |
+
}
|
167 |
+
|
168 |
+
// AJAX callbacks.
|
169 |
+
add_action( 'wp_ajax_nopriv_wpw_plugin_installer', array( Ajax::class, 'install_plugin' ) );
|
170 |
+
add_action( 'wp_ajax_wpw_plugin_installer', array( Ajax::class, 'install_plugin' ) );
|
171 |
+
add_action( 'wp_ajax_nopriv_wpw_plugin_activation', array( Ajax::class, 'activate_plugin' ) );
|
172 |
+
add_action( 'wp_ajax_wpw_plugin_activation', array( Ajax::class, 'activate_plugin' ) );
|
173 |
+
}
|
174 |
+
|
175 |
+
/**
|
176 |
+
* Add admin notice.
|
177 |
+
*
|
178 |
+
* @since 1.0.0
|
179 |
+
*/
|
180 |
+
public function add_admin_notice() {
|
181 |
+
add_action( 'admin_notices', array( $this, 'display_admin_notice' ), 99 );
|
182 |
+
}
|
183 |
+
|
184 |
+
/**
|
185 |
+
* Update user notice dismiss status.
|
186 |
+
*
|
187 |
+
* @since 1.0.0
|
188 |
+
*/
|
189 |
+
public function update_notice_status() {
|
190 |
+
if ( isset( $_GET[ 'wpw-dismiss-' . $this->product_slug ] ) && check_admin_referer( 'wpw-dismiss-' . get_current_user_id() ) ) {
|
191 |
+
update_user_meta( get_current_user_id(), "wpw_dismissed_{$this->product_slug}", 1 );
|
192 |
+
}
|
193 |
+
}
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Display admin notice.
|
197 |
+
*
|
198 |
+
* @since 1.0.0
|
199 |
+
*/
|
200 |
+
public function display_admin_notice() {
|
201 |
+
$screen_id = null;
|
202 |
+
|
203 |
+
$current_screen = get_current_screen();
|
204 |
+
|
205 |
+
if ( $current_screen ) {
|
206 |
+
$screen_id = $current_screen->id;
|
207 |
+
}
|
208 |
+
|
209 |
+
$dismiss_status = get_user_meta( get_current_user_id(), "wpw_dismissed_{$this->product_slug}", true );
|
210 |
+
|
211 |
+
if ( current_user_can( $this->page['capability'] ) && in_array( $screen_id, $this->admin_notice['screens'], true ) && 1 !== absint( $dismiss_status ) ) {
|
212 |
+
echo '<div class="notice notice-' . esc_attr( $this->admin_notice['type'] ) . '">';
|
213 |
+
$this->render_notice();
|
214 |
+
echo '</div><!-- .notice -->';
|
215 |
+
};
|
216 |
+
}
|
217 |
+
|
218 |
+
/**
|
219 |
+
* Render notice.
|
220 |
+
*
|
221 |
+
* @since 1.0.0
|
222 |
+
*/
|
223 |
+
public function render_notice() {
|
224 |
+
echo '<p>' . wp_kses_post( $this->admin_notice['message'] ) . '</p>';
|
225 |
+
echo '<p><a href="' . esc_url( $this->get_page_url() ) . '" class="button button-primary">' . esc_html( $this->admin_notice['button_text'] ) . '</a> <a href="' . esc_url( $this->get_dismiss_url() ) . '">' . esc_html__( 'Dismiss this notice', 'wp-welcome' ) . '</a></p>';
|
226 |
+
}
|
227 |
+
|
228 |
+
/**
|
229 |
+
* Set page settings.
|
230 |
+
*
|
231 |
+
* @since 1.0.0
|
232 |
+
*
|
233 |
+
* @param array $args Page arguments.
|
234 |
+
*/
|
235 |
+
public function set_page( $args = array() ) {
|
236 |
+
$defaults = array(
|
237 |
+
/* translators: 1: Name 2: Version */
|
238 |
+
'page_title' => sprintf( esc_html__( 'Welcome to %1$s - %2$s', 'wp-welcome' ), esc_html( $this->product_name ), esc_html( $this->product_version ) ),
|
239 |
+
/* translators: 1: Name */
|
240 |
+
'page_subtitle' => sprintf( esc_html__( '%1$s is now installed and ready to use. Thank you for choosing %1$s, cheers!', 'wp-welcome' ), esc_html( $this->product_name ) ),
|
241 |
+
'menu_title' => esc_html__( 'Admin Dashboard', 'wp-welcome' ),
|
242 |
+
'capability' => 'edit_theme_options',
|
243 |
+
'menu_slug' => 'wp-welcome',
|
244 |
+
'menu_icon' => '',
|
245 |
+
'top_level_menu' => false,
|
246 |
+
'parent_page' => 'options-general.php',
|
247 |
+
);
|
248 |
+
|
249 |
+
$this->page = wp_parse_args( $args, $defaults );
|
250 |
+
|
251 |
+
$this->top_level_menu = $this->page['top_level_menu'];
|
252 |
+
$this->parent_page = $this->page['parent_page'];
|
253 |
+
}
|
254 |
+
|
255 |
+
/**
|
256 |
+
* Set admin notice.
|
257 |
+
*
|
258 |
+
* @since 1.0.0
|
259 |
+
*
|
260 |
+
* @param array $args Notice arguments.
|
261 |
+
*/
|
262 |
+
public function set_admin_notice( $args = array() ) {
|
263 |
+
$defaults = array(
|
264 |
+
'type' => 'success',
|
265 |
+
/* translators: 1: Name */
|
266 |
+
'message' => sprintf( esc_html__( 'Welcome! %1$s is now installed and ready to use. Thank you for choosing %1$s.', 'wp-welcome' ), esc_html( $this->product_name ) ),
|
267 |
+
/* translators: 1: Name */
|
268 |
+
'button_text' => sprintf( esc_html__( 'Get started with %1$s', 'wp-welcome' ), $this->product_name ),
|
269 |
+
'screens' => array( 'dashboard' ),
|
270 |
+
);
|
271 |
+
|
272 |
+
$this->admin_notice = wp_parse_args( $args, $defaults );
|
273 |
+
}
|
274 |
+
|
275 |
+
/**
|
276 |
+
* Set quick links.
|
277 |
+
*
|
278 |
+
* @since 1.0.0
|
279 |
+
*
|
280 |
+
* @param array $links Quick links array.
|
281 |
+
*/
|
282 |
+
public function set_quick_links( $links ) {
|
283 |
+
$output = array();
|
284 |
+
|
285 |
+
if ( empty( $links ) ) {
|
286 |
+
return $output;
|
287 |
+
}
|
288 |
+
|
289 |
+
foreach ( $links as $link ) {
|
290 |
+
$defaults = array(
|
291 |
+
'text' => esc_html__( 'Link', 'wp-welcome' ),
|
292 |
+
'url' => '#',
|
293 |
+
'type' => 'primary',
|
294 |
+
);
|
295 |
+
|
296 |
+
$output[] = wp_parse_args( $link, $defaults );
|
297 |
+
}
|
298 |
+
|
299 |
+
$this->quick_links = $output;
|
300 |
+
}
|
301 |
+
|
302 |
+
/**
|
303 |
+
* Create menu page.
|
304 |
+
*
|
305 |
+
* @since 1.0.0
|
306 |
+
*/
|
307 |
+
public function create_menu_page() {
|
308 |
+
if ( true === $this->top_level_menu ) {
|
309 |
+
add_menu_page(
|
310 |
+
$this->page['page_title'],
|
311 |
+
$this->page['menu_title'],
|
312 |
+
$this->page['capability'],
|
313 |
+
$this->page['menu_slug'],
|
314 |
+
array( $this, 'render_page' ),
|
315 |
+
$this->page['menu_icon']
|
316 |
+
);
|
317 |
+
} else {
|
318 |
+
add_submenu_page(
|
319 |
+
$this->parent_page,
|
320 |
+
$this->page['page_title'],
|
321 |
+
$this->page['menu_title'],
|
322 |
+
$this->page['capability'],
|
323 |
+
$this->page['menu_slug'],
|
324 |
+
array( $this, 'render_page' )
|
325 |
+
);
|
326 |
+
}
|
327 |
+
}
|
328 |
+
|
329 |
+
/**
|
330 |
+
* Render page.
|
331 |
+
*
|
332 |
+
* @since 1.0.0
|
333 |
+
*/
|
334 |
+
public function render_page() {
|
335 |
+
if ( ! current_user_can( $this->page['capability'] ) ) {
|
336 |
+
return;
|
337 |
+
}
|
338 |
+
|
339 |
+
echo '<div class="wrap wpw-wrap" id="wp-welcome-wrap">';
|
340 |
+
|
341 |
+
View::render_header( $this );
|
342 |
+
|
343 |
+
$main_attrs = array(
|
344 |
+
'class' => array(
|
345 |
+
'wpw-main',
|
346 |
+
),
|
347 |
+
);
|
348 |
+
|
349 |
+
if ( true !== $this->is_sidebar ) {
|
350 |
+
$main_attrs['class'][] = 'no-sidebar';
|
351 |
+
}
|
352 |
+
?>
|
353 |
+
|
354 |
+
<div <?php Utils::render_attr( $main_attrs ); ?>>
|
355 |
+
<div class="wpw-main-inner">
|
356 |
+
<div class="wpw-main-content">
|
357 |
+
|
358 |
+
<?php View::render_tab_navigation( $this->tabs, $this ); ?>
|
359 |
+
|
360 |
+
<div class="wpw-tabs-content-wrap">
|
361 |
+
|
362 |
+
<?php View::render_tabs_content( $this->tabs, $this ); ?>
|
363 |
+
|
364 |
+
</div><!-- .wpw-tabs-content-wrap -->
|
365 |
+
</div><!-- .wpw-main-content -->
|
366 |
+
<?php
|
367 |
+
if ( true === $this->is_sidebar ) {
|
368 |
+
echo '<div class="wpw-main-sidebar">';
|
369 |
+
|
370 |
+
if ( is_callable( $this->sidebar_callback ) ) {
|
371 |
+
call_user_func( $this->sidebar_callback, $this );
|
372 |
+
}
|
373 |
+
|
374 |
+
echo '</div><!-- .wpw-main-sidebar -->';
|
375 |
+
}
|
376 |
+
?>
|
377 |
+
</div><!-- .wpw-main-inner -->
|
378 |
+
</div><!-- .wpw-main -->
|
379 |
+
|
380 |
+
<?php
|
381 |
+
echo '</div><!-- .wrap -->';
|
382 |
+
}
|
383 |
+
|
384 |
+
/**
|
385 |
+
* Set sidebar.
|
386 |
+
*
|
387 |
+
* @since 1.0.0
|
388 |
+
*
|
389 |
+
* @param array $args Sidebar arguments.
|
390 |
+
*/
|
391 |
+
public function set_sidebar( $args ) {
|
392 |
+
$defaults = array(
|
393 |
+
'render_callback' => '',
|
394 |
+
);
|
395 |
+
|
396 |
+
$args = wp_parse_args( $args, $defaults );
|
397 |
+
|
398 |
+
if ( is_callable( $args['render_callback'] ) ) {
|
399 |
+
$this->is_sidebar = true;
|
400 |
+
$this->sidebar_callback = $args['render_callback'];
|
401 |
+
}
|
402 |
+
}
|
403 |
+
|
404 |
+
/**
|
405 |
+
* Add tab.
|
406 |
+
*
|
407 |
+
* @since 1.0.0
|
408 |
+
*
|
409 |
+
* @param array $args Tab arguments.
|
410 |
+
*/
|
411 |
+
public function add_tab( $args ) {
|
412 |
+
$defaults = array(
|
413 |
+
'id' => '',
|
414 |
+
'title' => esc_html__( 'Tab Title', 'wp-welcome' ),
|
415 |
+
'type' => 'content',
|
416 |
+
'content' => '',
|
417 |
+
'grid_columns' => 2,
|
418 |
+
);
|
419 |
+
|
420 |
+
$this->tabs[] = wp_parse_args( $args, $defaults );
|
421 |
+
}
|
422 |
+
|
423 |
+
/**
|
424 |
+
* Return page URL.
|
425 |
+
*
|
426 |
+
* @since 1.0.0
|
427 |
+
*
|
428 |
+
* @return string Page URL.
|
429 |
+
*/
|
430 |
+
public function get_page_url() {
|
431 |
+
$parent = $this->parent_page;
|
432 |
+
|
433 |
+
if ( true === $this->top_level_menu || ( false === strpos( $parent, '.php' ) ) ) {
|
434 |
+
$parent = 'admin.php';
|
435 |
+
}
|
436 |
+
|
437 |
+
$base_url = admin_url( $parent );
|
438 |
+
|
439 |
+
$output = add_query_arg(
|
440 |
+
array(
|
441 |
+
'page' => $this->page['menu_slug'],
|
442 |
+
),
|
443 |
+
$base_url
|
444 |
+
);
|
445 |
+
|
446 |
+
return $output;
|
447 |
+
}
|
448 |
+
|
449 |
+
/**
|
450 |
+
* Return dismiss URL.
|
451 |
+
*
|
452 |
+
* @since 1.0.0
|
453 |
+
*
|
454 |
+
* @return string Dismiss URL.
|
455 |
+
*/
|
456 |
+
protected function get_dismiss_url() {
|
457 |
+
return wp_nonce_url( add_query_arg( 'wpw-dismiss-' . $this->product_slug, 'dismiss-notice' ), 'wpw-dismiss-' . get_current_user_id() );
|
458 |
+
}
|
459 |
+
|
460 |
+
/**
|
461 |
+
* Render sidebar box.
|
462 |
+
*
|
463 |
+
* @since 1.0.0
|
464 |
+
*
|
465 |
+
* @param array $args Sidebar box arguments.
|
466 |
+
* @param Welcome $object Instance of Welcome.
|
467 |
+
*/
|
468 |
+
public function render_sidebar_box( $args = array(), $object ) {
|
469 |
+
$defaults = array(
|
470 |
+
'class' => '',
|
471 |
+
'title' => esc_html__( 'Box Title', 'wp-welcome' ),
|
472 |
+
'icon' => '',
|
473 |
+
'type' => 'content',
|
474 |
+
'content' => esc_html__( 'Box Content', 'wp-welcome' ),
|
475 |
+
'render_callback' => null,
|
476 |
+
'button_text' => '',
|
477 |
+
'button_url' => '#',
|
478 |
+
'button_class' => '',
|
479 |
+
'button_new_tab' => true,
|
480 |
+
);
|
481 |
+
|
482 |
+
$args = wp_parse_args( $args, $defaults );
|
483 |
+
|
484 |
+
View::render_sidebar_box( $args, $object );
|
485 |
+
}
|
486 |
+
|
487 |
+
/**
|
488 |
+
* Return quick links.
|
489 |
+
*
|
490 |
+
* @since 1.0.0
|
491 |
+
*
|
492 |
+
* @return array Quick links list.
|
493 |
+
*/
|
494 |
+
public function get_quick_links() {
|
495 |
+
return $this->quick_links;
|
496 |
+
}
|
497 |
+
|
498 |
+
/**
|
499 |
+
* Return page title.
|
500 |
+
*
|
501 |
+
* @since 1.0.0
|
502 |
+
*
|
503 |
+
* @return string Page title.
|
504 |
+
*/
|
505 |
+
public function get_page_title() {
|
506 |
+
return $this->page['page_title'];
|
507 |
+
}
|
508 |
+
|
509 |
+
/**
|
510 |
+
* Return page subtitle.
|
511 |
+
*
|
512 |
+
* @since 1.0.0
|
513 |
+
*
|
514 |
+
* @return string Page subtitle.
|
515 |
+
*/
|
516 |
+
public function get_page_subtitle() {
|
517 |
+
return $this->page['page_subtitle'];
|
518 |
+
}
|
519 |
+
|
520 |
+
/**
|
521 |
+
* Return product name.
|
522 |
+
*
|
523 |
+
* @since 1.0.0
|
524 |
+
*
|
525 |
+
* @return string Product name.
|
526 |
+
*/
|
527 |
+
public function get_name() {
|
528 |
+
return $this->product_name;
|
529 |
+
}
|
530 |
+
|
531 |
+
/**
|
532 |
+
* Return product version.
|
533 |
+
*
|
534 |
+
* @since 1.0.0
|
535 |
+
*
|
536 |
+
* @return string Product version.
|
537 |
+
*/
|
538 |
+
public function get_version() {
|
539 |
+
return $this->product_version;
|
540 |
+
}
|
541 |
+
|
542 |
+
/**
|
543 |
+
* Return product slug.
|
544 |
+
*
|
545 |
+
* @since 1.0.0
|
546 |
+
*
|
547 |
+
* @return string Product slug.
|
548 |
+
*/
|
549 |
+
public function get_slug() {
|
550 |
+
return $this->product_slug;
|
551 |
+
}
|
552 |
+
|
553 |
+
/**
|
554 |
+
* Return stars markup.
|
555 |
+
*
|
556 |
+
* @since 1.0.0
|
557 |
+
*
|
558 |
+
* @return string Stars markup.
|
559 |
+
*/
|
560 |
+
public function get_stars() {
|
561 |
+
$output = '<div class="wpw-stars">';
|
562 |
+
|
563 |
+
for ( $i = 0; $i < 5; $i++ ) {
|
564 |
+
$output .= '<span class="dashicons-before dashicons-star-filled"></span>';
|
565 |
+
}
|
566 |
+
|
567 |
+
$output .= '</div><!-- .wpw-stars -->';
|
568 |
+
|
569 |
+
return $output;
|
570 |
+
}
|
571 |
+
}
|
vendor/kirki-framework/url-getter/src/URL.php
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Get the URL of any file in WordPress.
|
4 |
+
*
|
5 |
+
* @package kirki-framework/url-getter
|
6 |
+
* @author Ari Stathopoulos (@aristath)
|
7 |
+
* @copyright Copyright (c) 2019, Ari Stathopoulos (@aristath)
|
8 |
+
* @license https://opensource.org/licenses/MIT
|
9 |
+
* @since 1.0
|
10 |
+
*/
|
11 |
+
|
12 |
+
namespace Kirki;
|
13 |
+
|
14 |
+
/**
|
15 |
+
* A collection of methods to get the URL of files.
|
16 |
+
*
|
17 |
+
* @since 1.0
|
18 |
+
*/
|
19 |
+
class URL {
|
20 |
+
|
21 |
+
/**
|
22 |
+
* An array of instances.
|
23 |
+
*
|
24 |
+
* Used for performance reasons in case we need
|
25 |
+
* the same url over and over again.
|
26 |
+
*
|
27 |
+
* @static
|
28 |
+
* @access private
|
29 |
+
* @since 1.0.2
|
30 |
+
* @var array
|
31 |
+
*/
|
32 |
+
private static $instances = [];
|
33 |
+
|
34 |
+
/**
|
35 |
+
* The file path.
|
36 |
+
*
|
37 |
+
* @access private
|
38 |
+
* @since 1.0
|
39 |
+
* @var string
|
40 |
+
*/
|
41 |
+
private $path;
|
42 |
+
|
43 |
+
/**
|
44 |
+
* The content path.
|
45 |
+
*
|
46 |
+
* @static
|
47 |
+
* @access private
|
48 |
+
* @since 1.0
|
49 |
+
* @var string
|
50 |
+
*/
|
51 |
+
private static $content_path;
|
52 |
+
|
53 |
+
/**
|
54 |
+
* The content RL.
|
55 |
+
*
|
56 |
+
* @static
|
57 |
+
* @access private
|
58 |
+
* @since 1.0
|
59 |
+
* @var string
|
60 |
+
*/
|
61 |
+
private static $content_url;
|
62 |
+
|
63 |
+
/**
|
64 |
+
* The file URL.
|
65 |
+
*
|
66 |
+
* @access private
|
67 |
+
* @since 1.0
|
68 |
+
* @var string
|
69 |
+
*/
|
70 |
+
private $url;
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Gets an instance based on the path.
|
74 |
+
*
|
75 |
+
* @static
|
76 |
+
* @access public
|
77 |
+
* @since 1.0.2
|
78 |
+
* @param string $path Absolute path to a file.
|
79 |
+
* @return URL An instance of this object.
|
80 |
+
*/
|
81 |
+
public static function get_instance( $path ) {
|
82 |
+
$path = \wp_normalize_path( $path );
|
83 |
+
if ( ! isset( self::$instances[ $path ] ) ) {
|
84 |
+
self::$instances[ $path ] = new self( $path );
|
85 |
+
}
|
86 |
+
return self::$instances[ $path ];
|
87 |
+
}
|
88 |
+
|
89 |
+
/**
|
90 |
+
* Constructor.
|
91 |
+
*
|
92 |
+
* @access private
|
93 |
+
* @since 1.0
|
94 |
+
* @param string $path Absolute path to a file.
|
95 |
+
*/
|
96 |
+
private function __construct( $path ) {
|
97 |
+
$this->path = ( $path );
|
98 |
+
$this->set_content_url();
|
99 |
+
$this->set_content_path();
|
100 |
+
}
|
101 |
+
|
102 |
+
/**
|
103 |
+
* Get a URL from a path.
|
104 |
+
*
|
105 |
+
* @static
|
106 |
+
* @access public
|
107 |
+
* @since 1.0.2
|
108 |
+
* @param string $path The file path.
|
109 |
+
* @return string
|
110 |
+
*/
|
111 |
+
public static function get_from_path( $path ) {
|
112 |
+
return self::get_instance( $path )->get_url();
|
113 |
+
}
|
114 |
+
|
115 |
+
/**
|
116 |
+
* Get the file URL.
|
117 |
+
*
|
118 |
+
* @access public
|
119 |
+
* @since 1.0
|
120 |
+
* @return string
|
121 |
+
*/
|
122 |
+
public function get_url() {
|
123 |
+
|
124 |
+
/**
|
125 |
+
* Start by replacing ABSPATH with site_url.
|
126 |
+
* This is not accurate at all and only serves as a fallback in case everything else fails.
|
127 |
+
*/
|
128 |
+
$this->url = \str_replace( ABSPATH, \trailingslashit( \site_url() ), $this->path );
|
129 |
+
|
130 |
+
/**
|
131 |
+
* If the file-path is inside wp-content replace the content-path with the content-url.
|
132 |
+
* This serves as a fallback in case the other tests below fail.
|
133 |
+
*/
|
134 |
+
if ( false !== \strpos( $this->path, self::$content_path ) ) {
|
135 |
+
$this->url = \str_replace( self::$content_path, self::$content_url, $this->path );
|
136 |
+
}
|
137 |
+
|
138 |
+
/**
|
139 |
+
* If the file is in a parent theme use the template directory.
|
140 |
+
*/
|
141 |
+
if ( $this->in_parent_theme() ) {
|
142 |
+
$this->url = \get_template_directory_uri() . \str_replace( \get_template_directory(), '', $this->path );
|
143 |
+
}
|
144 |
+
|
145 |
+
/**
|
146 |
+
* If the file is in a child-theme use the stylesheet directory.
|
147 |
+
*/
|
148 |
+
if ( ! $this->in_parent_theme() && $this->in_child_theme() ) {
|
149 |
+
$this->url = \get_stylesheet_directory_uri() . \str_replace( \get_stylesheet_directory(), '', $this->path );
|
150 |
+
}
|
151 |
+
|
152 |
+
$this->url = \set_url_scheme( $this->url );
|
153 |
+
return \apply_filters( 'kirki_path_url', $this->url, $this->path );
|
154 |
+
}
|
155 |
+
|
156 |
+
/**
|
157 |
+
* Check if the path is inside a parent theme.
|
158 |
+
*
|
159 |
+
* @access public
|
160 |
+
* @since 1.0
|
161 |
+
* @return bool
|
162 |
+
*/
|
163 |
+
public function in_parent_theme() {
|
164 |
+
return ( 0 === \strpos( $this->path, \get_template_directory() ) );
|
165 |
+
}
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Check if the path is inside a child theme.
|
169 |
+
*
|
170 |
+
* @access public
|
171 |
+
* @since 1.0
|
172 |
+
* @return bool
|
173 |
+
*/
|
174 |
+
public function in_child_theme() {
|
175 |
+
return ( 0 === \strpos( $this->path, \get_stylesheet_directory() ) );
|
176 |
+
}
|
177 |
+
|
178 |
+
/**
|
179 |
+
* Set the $content_url.
|
180 |
+
*
|
181 |
+
* @access private
|
182 |
+
* @since 1.0
|
183 |
+
* @return void
|
184 |
+
*/
|
185 |
+
private function set_content_url() {
|
186 |
+
if ( ! self::$content_url ) {
|
187 |
+
self::$content_url = \untrailingslashit( \content_url() );
|
188 |
+
}
|
189 |
+
}
|
190 |
+
|
191 |
+
/**
|
192 |
+
* Set the $content_path.
|
193 |
+
*
|
194 |
+
* @access private
|
195 |
+
* @since 1.0
|
196 |
+
* @return void
|
197 |
+
*/
|
198 |
+
private function set_content_path() {
|
199 |
+
if ( ! self::$content_path ) {
|
200 |
+
self::$content_path = \wp_normalize_path( \untrailingslashit( WP_CONTENT_DIR ) );
|
201 |
+
}
|
202 |
+
}
|
203 |
+
}
|