Version Description
- Feature: Full video metadata when using Youtube
- Feature: Use WordPress embed shortcode when using a URL for the video
- Feature: Import from Purr Recipe plugin
- Feature: Video metadata for WP YouTube Lyte plugin
- Improvement: Cache video metadata for 7 days
- Improvement: Cache recipe rating to improve performance
- Improvement: Cache comment ratings in meta to reduce database queries
- Fix: Only show recipe snippets in main query
- Fix: Prevent theme compatibility issue with first letter in paragraph
Download this release
Release Info
Developer | BrechtVds |
Plugin | WP Recipe Maker |
Version | 3.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.5.0 to 3.1.0
- assets/css/admin/addons.scss +0 -17
- assets/css/admin/faq.scss +4 -0
- assets/css/admin/settings.scss +2 -41
- assets/css/admin/settings/layout.scss +328 -0
- assets/css/admin/settings/setting.scss +35 -0
- assets/css/public/template_reset.scss +9 -0
- assets/icons/settings/adjustable-servings.svg +1 -0
- assets/icons/settings/custom-style.svg +1 -0
- assets/icons/settings/import.svg +1 -0
- assets/icons/settings/ingredient-links.svg +1 -0
- assets/icons/settings/labels.svg +1 -0
- assets/icons/settings/license-key.svg +1 -0
- assets/icons/settings/metadata.svg +1 -0
- assets/icons/settings/nutrition-label.svg +1 -0
- assets/icons/settings/permissions.svg +1 -0
- assets/icons/settings/recipe-defaults.svg +1 -0
- assets/icons/settings/recipe-print.svg +1 -0
- assets/icons/settings/recipe-ratings.svg +1 -0
- assets/icons/settings/recipe-snippets.svg +1 -0
- assets/icons/settings/recipe-submission.svg +1 -0
- assets/icons/settings/recipe-template.svg +1 -0
- assets/icons/settings/scroll-to-top.svg +1 -0
- assets/icons/settings/settings-tools.svg +1 -0
- assets/icons/settings/unit-conversion.svg +1 -0
- assets/js/admin-settings.js +8 -0
- assets/js/admin-settings/App.js +125 -0
- assets/js/admin-settings/general/Api.js +24 -0
- assets/js/admin-settings/general/ErrorBoundary.js +32 -0
- assets/js/admin-settings/general/Helpers.js +67 -0
- assets/js/admin-settings/general/Icon.js +59 -0
- assets/js/admin-settings/menu/MenuContainer.js +71 -0
- assets/js/admin-settings/settings/RequiredLabel.js +32 -0
- assets/js/admin-settings/settings/Setting.js +113 -0
- assets/js/admin-settings/settings/Settings.js +42 -0
- assets/js/admin-settings/settings/SettingsContainer.js +58 -0
- assets/js/admin-settings/settings/SettingsGroup.js +70 -0
- assets/js/admin-settings/settings/SettingsSubGroup.js +48 -0
- assets/js/admin-settings/settings/SettingsTools.js +34 -0
- assets/js/admin-settings/settings/information/Button.js +25 -0
- assets/js/admin-settings/settings/setting/Code.js +27 -0
- assets/js/admin-settings/settings/setting/Color.js +98 -0
- assets/js/admin-settings/settings/setting/Dropdown.js +33 -0
- assets/js/admin-settings/settings/setting/DropdownMultiselect.js +33 -0
- assets/js/admin-settings/settings/setting/DropdownTemplate.js +34 -0
- assets/js/admin-settings/settings/setting/Email.js +21 -0
- assets/js/admin-settings/settings/setting/Number.js +30 -0
- assets/js/admin-settings/settings/setting/RichTextarea.js +36 -0
- assets/js/admin-settings/settings/setting/Text.js +21 -0
- assets/js/admin-settings/settings/setting/Textarea.js +23 -0
- assets/js/admin-settings/settings/setting/Toggle.js +23 -0
- assets/js/admin-settings/settings/special/UnitConversionUnits.js +73 -0
- assets/js/admin/manage/datatable.js +2 -3
- assets/js/admin/modal/Recipe.js +5 -1
- assets/js/admin/modal/RecipeInit.js +3 -0
- assets/js/admin/modal/tabs/recipe.js +37 -22
- assets/js/admin/modal/utils.js +21 -0
- assets/js/admin/settings.js +35 -12
- assets/js/blocks.js +1 -1
- assets/js/blocks/recipe.js +28 -1
- dist/admin-settings.css +6 -0
- dist/admin-settings.js +43 -0
assets/css/admin/addons.scss
CHANGED
@@ -18,23 +18,6 @@
|
|
18 |
font-size: 1.1em;
|
19 |
}
|
20 |
}
|
21 |
-
|
22 |
-
.wprm-drip-form {
|
23 |
-
margin: 20px 0;
|
24 |
-
input {
|
25 |
-
width: 100%;
|
26 |
-
max-width: 400px;
|
27 |
-
margin: 10px 0;
|
28 |
-
|
29 |
-
&[type=submit] {
|
30 |
-
max-width: 250px;
|
31 |
-
margin-bottom: 0;
|
32 |
-
}
|
33 |
-
}
|
34 |
-
.wprm-disclaimer {
|
35 |
-
font-size: 0.8em;
|
36 |
-
}
|
37 |
-
}
|
38 |
}
|
39 |
|
40 |
@media only screen and (max-width: 640px) {
|
18 |
font-size: 1.1em;
|
19 |
}
|
20 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
}
|
22 |
|
23 |
@media only screen and (max-width: 640px) {
|
assets/css/admin/faq.scss
CHANGED
@@ -14,6 +14,10 @@
|
|
14 |
max-width: 400px;
|
15 |
margin: 10px 0;
|
16 |
|
|
|
|
|
|
|
|
|
17 |
&[type=submit] {
|
18 |
max-width: 350px;
|
19 |
margin-bottom: 0;
|
14 |
max-width: 400px;
|
15 |
margin: 10px 0;
|
16 |
|
17 |
+
&[type=checkbox] {
|
18 |
+
width: 16px;
|
19 |
+
}
|
20 |
+
|
21 |
&[type=submit] {
|
22 |
max-width: 350px;
|
23 |
margin-bottom: 0;
|
assets/css/admin/settings.scss
CHANGED
@@ -1,41 +1,2 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
min-width: 200px;
|
4 |
-
}
|
5 |
-
|
6 |
-
.select2_wprm-container {
|
7 |
-
z-index: 99000;
|
8 |
-
}
|
9 |
-
|
10 |
-
#template_font_size {
|
11 |
-
width: 60px;
|
12 |
-
}
|
13 |
-
|
14 |
-
.template-preview-container {
|
15 |
-
.template-preview {
|
16 |
-
float: left;
|
17 |
-
text-align: center;
|
18 |
-
width: 250px;
|
19 |
-
height: 230px;
|
20 |
-
overflow: hidden;
|
21 |
-
margin: 5px;
|
22 |
-
}
|
23 |
-
|
24 |
-
.template-name {
|
25 |
-
font-weight: bold;
|
26 |
-
line-height: 30px;
|
27 |
-
}
|
28 |
-
|
29 |
-
.template-screenshot {
|
30 |
-
width: 250px;
|
31 |
-
}
|
32 |
-
|
33 |
-
.template-no-screenshot {
|
34 |
-
width: 250px;
|
35 |
-
height: 200px;
|
36 |
-
line-height: 200px;
|
37 |
-
border: 1px dashed #999;
|
38 |
-
box-sizing: border-box;
|
39 |
-
}
|
40 |
-
}
|
41 |
-
}
|
1 |
+
@import "settings/layout";
|
2 |
+
@import "settings/setting";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/css/admin/settings/layout.scss
ADDED
@@ -0,0 +1,328 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.rtl {
|
2 |
+
#wprm-settings-menu {
|
3 |
+
.wprm-settings-menu-group {
|
4 |
+
.wprm-settings-icon {
|
5 |
+
margin-right: 0;
|
6 |
+
margin-left: 2px;
|
7 |
+
}
|
8 |
+
}
|
9 |
+
}
|
10 |
+
|
11 |
+
#wprm-settings-container {
|
12 |
+
.wprm-setting-required {
|
13 |
+
border-radius: 3px;
|
14 |
+
margin-left: 0;
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
.wprm-settings-scroll-to-top {
|
19 |
+
left: 20px;
|
20 |
+
right: initial;
|
21 |
+
}
|
22 |
+
}
|
23 |
+
|
24 |
+
#wprm-settings-buttons,
|
25 |
+
#wprm-settings-sidebar {
|
26 |
+
margin-bottom: 20px;
|
27 |
+
}
|
28 |
+
|
29 |
+
.update-nag,
|
30 |
+
.updated,
|
31 |
+
.error,
|
32 |
+
.is-dismissible {
|
33 |
+
display: none;
|
34 |
+
}
|
35 |
+
|
36 |
+
#wprm-settings-menu,
|
37 |
+
.wprm-settings-group {
|
38 |
+
background-color: white;
|
39 |
+
border-radius: 5px;
|
40 |
+
|
41 |
+
.wprm-settings-menu-group,
|
42 |
+
.wprm-settings-subgroup, {
|
43 |
+
padding: 6px;
|
44 |
+
border-bottom: 1px solid #ddd;
|
45 |
+
|
46 |
+
&:last-child {
|
47 |
+
border-bottom: none;
|
48 |
+
}
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
+
#wprm-settings-menu {
|
53 |
+
.wprm-settings-menu-header {
|
54 |
+
padding: 10px;
|
55 |
+
padding-bottom: 5px;
|
56 |
+
text-align: center;
|
57 |
+
font-weight: 300;
|
58 |
+
font-size: 1.2em;
|
59 |
+
}
|
60 |
+
|
61 |
+
.wprm-settings-menu-group {
|
62 |
+
display: block;
|
63 |
+
text-decoration: none;
|
64 |
+
color: #444;
|
65 |
+
cursor: pointer;
|
66 |
+
|
67 |
+
&:first-child {
|
68 |
+
border-top-left-radius: 5px;
|
69 |
+
border-top-right-radius: 5px;
|
70 |
+
}
|
71 |
+
&:last-child {
|
72 |
+
border-bottom-left-radius: 5px;
|
73 |
+
border-bottom-right-radius: 5px;
|
74 |
+
}
|
75 |
+
&.active {
|
76 |
+
background-color: #ddd;
|
77 |
+
font-weight: bold;
|
78 |
+
}
|
79 |
+
|
80 |
+
.wprm-settings-noicon {
|
81 |
+
display: inline-block;
|
82 |
+
width: 18px;
|
83 |
+
}
|
84 |
+
.wprm-settings-icon {
|
85 |
+
vertical-align: middle;
|
86 |
+
margin-right: 2px;
|
87 |
+
position: relative;
|
88 |
+
top: 1px;
|
89 |
+
|
90 |
+
svg {
|
91 |
+
fill: #ddd;
|
92 |
+
}
|
93 |
+
}
|
94 |
+
}
|
95 |
+
}
|
96 |
+
|
97 |
+
#wprm-settings-buttons {
|
98 |
+
text-align: center;
|
99 |
+
padding-top: 10px;
|
100 |
+
|
101 |
+
background-color: white;
|
102 |
+
border-radius: 5px;
|
103 |
+
|
104 |
+
button {
|
105 |
+
display: inline-block;
|
106 |
+
margin: 0 3px;
|
107 |
+
margin-bottom: 10px;
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
#wprm-settings-container {
|
112 |
+
.wprm-settings-group {
|
113 |
+
padding-bottom: 25px;
|
114 |
+
margin-bottom: 25px;
|
115 |
+
|
116 |
+
& > .wprm-setting-documentation,
|
117 |
+
& > .wprm-settings-group-container {
|
118 |
+
padding: 25px;
|
119 |
+
padding-bottom: 0;
|
120 |
+
}
|
121 |
+
}
|
122 |
+
|
123 |
+
.wprm-setting-required {
|
124 |
+
background-color: darkred;
|
125 |
+
color: white;
|
126 |
+
|
127 |
+
padding: 3px 5px;
|
128 |
+
margin-left: -10px;
|
129 |
+
margin-right: 5px;
|
130 |
+
|
131 |
+
border-radius: 3px;
|
132 |
+
border-top-left-radius: 0;
|
133 |
+
border-bottom-left-radius: 0;
|
134 |
+
|
135 |
+
text-decoration: none;
|
136 |
+
font-weight: normal;
|
137 |
+
font-size: 0.8em;
|
138 |
+
}
|
139 |
+
|
140 |
+
.wprm-settings-group > .wprm-setting-required {
|
141 |
+
display: block;
|
142 |
+
font-size: 1.2em;
|
143 |
+
border-radius: 3px;
|
144 |
+
border-bottom-left-radius: 0;
|
145 |
+
border-bottom-right-radius: 0;
|
146 |
+
padding: 6px 10px;
|
147 |
+
margin: 0;
|
148 |
+
}
|
149 |
+
|
150 |
+
.wprm-settings-group-name,
|
151 |
+
.wprm-settings-subgroup-name {
|
152 |
+
text-align: center;
|
153 |
+
}
|
154 |
+
.wprm-settings-group-name {
|
155 |
+
padding: 20px 10px 0 10px;
|
156 |
+
padding-bottom: 0;
|
157 |
+
margin: 5px 0;
|
158 |
+
font-size: 1.8em;
|
159 |
+
font-weight: 400;
|
160 |
+
}
|
161 |
+
.wprm-settings-subgroup-name {
|
162 |
+
margin: 5px 0 15px 0;
|
163 |
+
font-size: 1.6em;
|
164 |
+
font-weight: 300;
|
165 |
+
}
|
166 |
+
|
167 |
+
.wprm-settings-group-description {
|
168 |
+
padding: 10px 25px 0 25px;
|
169 |
+
}
|
170 |
+
|
171 |
+
.wprm-settings-group-description,
|
172 |
+
.wprm-settings-subgroup-description {
|
173 |
+
font-style: italic;
|
174 |
+
}
|
175 |
+
|
176 |
+
.wprm-settings-subgroup-description + .wprm-settings-group-container {
|
177 |
+
margin-top: 20px;
|
178 |
+
}
|
179 |
+
|
180 |
+
.wprm-setting-container {
|
181 |
+
margin-bottom: 25px;
|
182 |
+
|
183 |
+
&:last-child {
|
184 |
+
margin-bottom: 0;
|
185 |
+
}
|
186 |
+
|
187 |
+
.wprm-setting-label {
|
188 |
+
display: block;
|
189 |
+
font-weight: bold;
|
190 |
+
}
|
191 |
+
.wprm-setting-description {
|
192 |
+
display: block;
|
193 |
+
font-style: italic;
|
194 |
+
margin-top: 2px;
|
195 |
+
}
|
196 |
+
.wprm-setting-input-container {
|
197 |
+
margin-top: 5px;
|
198 |
+
|
199 |
+
input {
|
200 |
+
&[type=text],
|
201 |
+
&[type=email],
|
202 |
+
&[type=number] {
|
203 |
+
width: 100%;
|
204 |
+
}
|
205 |
+
}
|
206 |
+
}
|
207 |
+
}
|
208 |
+
}
|
209 |
+
|
210 |
+
.wprm-settings-scroll-to-top {
|
211 |
+
background-color: #444;
|
212 |
+
border-radius: 100%;
|
213 |
+
|
214 |
+
position: fixed;
|
215 |
+
bottom: 20px;
|
216 |
+
right: 20px;
|
217 |
+
|
218 |
+
width: 30px;
|
219 |
+
height: 30px;
|
220 |
+
text-align: center;
|
221 |
+
|
222 |
+
.wprm-settings-icon {
|
223 |
+
position: relative;
|
224 |
+
top: 7px;
|
225 |
+
|
226 |
+
path {
|
227 |
+
fill: white;
|
228 |
+
stroke: white;
|
229 |
+
}
|
230 |
+
}
|
231 |
+
}
|
232 |
+
|
233 |
+
.wprm-settings-error {
|
234 |
+
color: darkred;
|
235 |
+
font-weight: bold;
|
236 |
+
}
|
237 |
+
|
238 |
+
@media screen and (min-width: 783px) {
|
239 |
+
.rtl {
|
240 |
+
#wprm-settings-container {
|
241 |
+
margin-right: 225px;
|
242 |
+
margin-left: 0;
|
243 |
+
|
244 |
+
.wprm-settings-subgroup-name {
|
245 |
+
text-align: right;
|
246 |
+
}
|
247 |
+
|
248 |
+
.wprm-setting-required {
|
249 |
+
margin-right: 5px;
|
250 |
+
margin-left: 0;
|
251 |
+
}
|
252 |
+
|
253 |
+
.wprm-setting-label-container {
|
254 |
+
margin-left: 5%;
|
255 |
+
margin-right: 0;
|
256 |
+
}
|
257 |
+
}
|
258 |
+
}
|
259 |
+
|
260 |
+
#wprm-settings-sidebar {
|
261 |
+
position: fixed;
|
262 |
+
width: 200px;
|
263 |
+
max-height: calc(100% - 70px);
|
264 |
+
overflow-y: scroll;
|
265 |
+
}
|
266 |
+
|
267 |
+
#wprm-settings-menu {
|
268 |
+
height: 100%;
|
269 |
+
overflow-y: scroll;
|
270 |
+
}
|
271 |
+
|
272 |
+
#wprm-settings-container {
|
273 |
+
margin-left: 225px;
|
274 |
+
padding-bottom: 70%;
|
275 |
+
|
276 |
+
.wprm-settings-subgroup-name {
|
277 |
+
text-align: left;
|
278 |
+
}
|
279 |
+
|
280 |
+
.wprm-settings-subgroup {
|
281 |
+
padding: 25px;
|
282 |
+
padding-top: 10px;
|
283 |
+
|
284 |
+
&:last-child {
|
285 |
+
padding-bottom: 0;
|
286 |
+
}
|
287 |
+
}
|
288 |
+
|
289 |
+
.wprm-setting-required {
|
290 |
+
margin-left: -25px;
|
291 |
+
}
|
292 |
+
|
293 |
+
.wprm-setting-label-container,
|
294 |
+
.wprm-setting-input-container {
|
295 |
+
vertical-align: top;
|
296 |
+
}
|
297 |
+
|
298 |
+
.wprm-setting-label-container {
|
299 |
+
display: inline-block;
|
300 |
+
width: 45%;
|
301 |
+
margin-right: 5%;
|
302 |
+
}
|
303 |
+
.wprm-setting-input-container {
|
304 |
+
display: inline-block;
|
305 |
+
width: 50%;
|
306 |
+
}
|
307 |
+
}
|
308 |
+
|
309 |
+
.wprm-settings-scroll-to-top {
|
310 |
+
display: none;
|
311 |
+
}
|
312 |
+
}
|
313 |
+
|
314 |
+
@media screen and (min-width: 1024px) {
|
315 |
+
.rtl {
|
316 |
+
#wprm-settings-container {
|
317 |
+
margin-right: 275px;
|
318 |
+
margin-left: 0;
|
319 |
+
}
|
320 |
+
}
|
321 |
+
#wprm-settings-sidebar {
|
322 |
+
width: 250px;
|
323 |
+
}
|
324 |
+
|
325 |
+
#wprm-settings-container {
|
326 |
+
margin-left: 275px;
|
327 |
+
}
|
328 |
+
}
|
assets/css/admin/settings/setting.scss
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.wprm-setting-input {
|
2 |
+
.ql-editor p {
|
3 |
+
margin-bottom: 10px;
|
4 |
+
}
|
5 |
+
|
6 |
+
.CodeMirror {
|
7 |
+
height: 200px;
|
8 |
+
border: 1px solid #ddd;
|
9 |
+
}
|
10 |
+
|
11 |
+
&[type="number"] {
|
12 |
+
max-width: 100px;
|
13 |
+
}
|
14 |
+
}
|
15 |
+
|
16 |
+
textarea.wprm-setting-input {
|
17 |
+
width: 100%;
|
18 |
+
}
|
19 |
+
|
20 |
+
.wprm-setting-unit-conversion-units {
|
21 |
+
width: 100%;
|
22 |
+
|
23 |
+
th {
|
24 |
+
text-align: left;
|
25 |
+
}
|
26 |
+
|
27 |
+
input {
|
28 |
+
width: 95%;
|
29 |
+
|
30 |
+
&.wprm-setting-unit-conversion-units-singular,
|
31 |
+
&.wprm-setting-unit-conversion-units-plural {
|
32 |
+
max-width: 100px;
|
33 |
+
}
|
34 |
+
}
|
35 |
+
}
|
assets/css/public/template_reset.scss
CHANGED
@@ -7,6 +7,15 @@
|
|
7 |
p, li {
|
8 |
font-size: 1em;
|
9 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
li,
|
12 |
li.wprm-recipe-instruction {
|
7 |
p, li {
|
8 |
font-size: 1em;
|
9 |
}
|
10 |
+
|
11 |
+
p:first-letter {
|
12 |
+
font-size: inherit;
|
13 |
+
line-height: inherit;
|
14 |
+
color: inherit;
|
15 |
+
margin: inherit;
|
16 |
+
padding: inherit;
|
17 |
+
font-family: inherit;
|
18 |
+
}
|
19 |
|
20 |
li,
|
21 |
li.wprm-recipe-instruction {
|
assets/icons/settings/adjustable-servings.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><line fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="12.5" y1="12.5" x2="15.5" y2="12.5"></line> <line fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="0.5" y1="3.5" x2="3.5" y2="3.5"></line> <line fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="9.5" y1="3.5" x2="15.5" y2="3.5"></line> <rect data-color="color-2" x="3.5" y="0.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="3" height="6"></rect> <rect data-color="color-2" x="9.5" y="9.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="3" height="6"></rect> <line fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="0.5" y1="12.5" x2="6.5" y2="12.5"></line> </g></svg>
|
assets/icons/settings/custom-style.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><path d="M7.5.5,2.086,5.914a2,2,0,0,0,0,2.828l1.586,1.586L.914,13.086a1.414,1.414,0,0,0,0,2h0a1.414,1.414,0,0,0,2,0l2.757-2.757,1.586,1.586a2,2,0,0,0,2.828,0L15.5,8.5Z" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" data-cap="butt"></path> <line x1="4.5" y1="6.5" x2="9.5" y2="11.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" data-cap="butt" data-color="color-2"></line></g></svg>
|
assets/icons/settings/import.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><polygon fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="3.5,6.5 8,11.5 12.5,6.5 9.5,6.5 9.5,0.5 6.5,0.5 6.5,6.5 " data-color="color-2"></polygon> <path fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" d="M15.5,10.5v4c0,0.552-0.448,1-1,1h-13 c-0.552,0-1-0.448-1-1v-4"></path></g></svg>
|
assets/icons/settings/ingredient-links.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><path fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M8.995,7.005 L8.995,7.005c1.374,1.374,1.374,3.601,0,4.975l-1.99,1.99c-1.374,1.374-3.601,1.374-4.975,0l0,0c-1.374-1.374-1.374-3.601,0-4.975 l1.748-1.698" data-cap="butt" data-color="color-2"></path> <path fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M7.005,8.995 L7.005,8.995c-1.374-1.374-1.374-3.601,0-4.975l1.99-1.99c1.374-1.374,3.601-1.374,4.975,0l0,0c1.374,1.374,1.374,3.601,0,4.975 l-1.748,1.698" data-cap="butt"></path> </g></svg>
|
assets/icons/settings/labels.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><rect x="0.5" y="0.5" width="15" height="15" rx="1" ry="1" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round"></rect> <polyline points="11.5 12.5 8.5 3.5 7.5 3.5 4.5 12.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" data-color="color-2"></polyline> <line x1="3.5" y1="12.5" x2="6.5" y2="12.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" data-color="color-2"></line> <line x1="9.5" y1="12.5" x2="12.5" y2="12.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" data-color="color-2"></line> <line x1="5.833" y1="8.5" x2="10.167" y2="8.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" data-color="color-2"></line></g></svg>
|
assets/icons/settings/license-key.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><circle fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="5" cy="11" r="1.5" data-color="color-2"></circle> <path fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M15.5,0.5h-3 L6.29,6.71C5.879,6.587,5.451,6.5,5,6.5c-2.485,0-4.5,2.015-4.5,4.5s2.015,4.5,4.5,4.5s4.5-2.015,4.5-4.5 c0-0.451-0.087-0.879-0.21-1.29L11.5,7.5l0-3h3l1-1V0.5z"></path></g></svg>
|
assets/icons/settings/metadata.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><line x1="10.5" y1="1.5" x2="5.5" y2="14.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" data-cap="butt" data-color="color-2"></line> <polyline points="3.5 4.5 0.5 7.5 3.5 10.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" data-cap="butt"></polyline> <polyline points="12.5 4.5 15.5 7.5 12.5 10.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" data-cap="butt"></polyline></g></svg>
|
assets/icons/settings/nutrition-label.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><path d="M11.5,15.163l.867.263a1.612,1.612,0,0,0,1.989-.9l1-2.724c.7-1.909-1.239-3.751-3.367-3.2l-.487.126L11.013,8.6c-2.128-.553-4.067,1.289-3.367,3.2l1,2.724a1.612,1.612,0,0,0,1.989.9Z" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" data-color="color-2"></path> <path d="M15,4h0a3,3,0,0,1-3,3h0A3,3,0,0,1,15,4Z" fill="#111111" data-cap="butt" data-color="color-2" data-stroke="none"></path> <polyline points="6.5 15.5 0.5 15.5 0.5 0.5 13.5 0.5 13.5 2.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round"></polyline> <line x1="3.5" y1="4.5" x2="7.5" y2="4.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round"></line> <line x1="3.5" y1="10.5" x2="4.5" y2="10.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round"></line> <line x1="9.5" y1="4.5" x2="10.5" y2="4.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round"></line> <line x1="3.5" y1="7.5" x2="6.5" y2="7.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round"></line></g></svg>
|
assets/icons/settings/permissions.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><path fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M13.5,15.5h-11 c-0.552,0-1-0.448-1-1v-7c0-0.552,0.448-1,1-1h11c0.552,0,1,0.448,1,1v7C14.5,15.052,14.052,15.5,13.5,15.5z"></path> <path fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M4.5,6.5V4 c0-1.933,1.567-3.5,3.5-3.5h0c1.933,0,3.5,1.567,3.5,3.5v2.5"></path> <circle data-color="color-2" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="8" cy="11" r="1.5"></circle> </g></svg>
|
assets/icons/settings/recipe-defaults.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><polygon data-color="color-2" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points=" 13,0.5 15.5,3 7.5,11 4,12 5,8.5 "></polygon> <line data-color="color-2" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="11" y1="2.5" x2="13.5" y2="5"></line> <path fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M13.5,9.5v5 c0,0.552-0.448,1-1,1h-11c-0.552,0-1-0.448-1-1v-11c0-0.552,0.448-1,1-1h5"></path> </g></svg>
|
assets/icons/settings/recipe-print.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><polyline points="3.5 3.5 3.5 0.5 12.5 0.5 12.5 3.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" data-color="color-2"></polyline> <path d="M3.5,12.5H.5v-4a3,3,0,0,1,3-3h9a3,3,0,0,1,3,3v4h-3" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round"></path> <rect x="3.5" y="9.5" width="9" height="6" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round"></rect></g></svg>
|
assets/icons/settings/recipe-ratings.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><polygon points="8 0.867 10.318 5.563 15.5 6.316 11.75 9.971 12.635 15.133 8 12.696 3.365 15.133 4.25 9.971 0.5 6.316 5.682 5.563 8 0.867" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" data-cap="butt"></polygon></g></svg>
|
assets/icons/settings/recipe-snippets.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><polygon points="5.5 6.5 13.5 8.5 10.5 9.5 14.5 13.5 12.5 15.5 8.5 11.5 7.5 14.5 5.5 6.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" data-cap="butt" data-color="color-2"></polygon> <path d="M3.5,9.5h-2a1,1,0,0,1-1-1v-7a1,1,0,0,1,1-1h13a1,1,0,0,1,1,1v5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" data-cap="butt"></path></g></svg>
|
assets/icons/settings/recipe-submission.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><path fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M15.5,6.5l-7.5,4 l-7.5-4v8c0,0.552,0.448,1,1,1h13c0.552,0,1-0.448,1-1V6.5z" data-cap="butt"></path> <polyline fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="2.5,5 2.5,0.5 13.5,0.5 13.5,5 " data-cap="butt" data-color="color-2"></polyline> <line fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="5.5" y1="3.5" x2="10.5" y2="3.5" data-cap="butt" data-color="color-2"></line> <line fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="5.5" y1="6.5" x2="10.5" y2="6.5" data-cap="butt" data-color="color-2"></line></g></svg>
|
assets/icons/settings/recipe-template.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><rect x="1.5" y="0.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="13" height="15"></rect> <line fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="9.5" y1="3.5" x2="11.5" y2="3.5" data-color="color-2"></line> <line fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="9.5" y1="6.5" x2="11.5" y2="6.5" data-color="color-2"></line> <line fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="4.5" y1="9.5" x2="11.5" y2="9.5" data-color="color-2"></line> <line fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="4.5" y1="12.5" x2="11.5" y2="12.5" data-color="color-2"></line> <rect x="4.5" y="3.5" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" width="3" height="3" data-color="color-2"></rect></g></svg>
|
assets/icons/settings/scroll-to-top.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><path fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M14.5,8.5L8,0.5 l-6.5,8h4V13c0,1.381,1.119,2.5,2.5,2.5h0c1.381,0,2.5-1.119,2.5-2.5V8.5H14.5z"></path></g></svg>
|
assets/icons/settings/settings-tools.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><circle data-color="color-2" fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" cx="8" cy="8" r="2.5"></circle> <path fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" d="M15.5,9V7 l-2.177-0.363c-0.131-0.512-0.332-0.994-0.595-1.437l1.283-1.796L12.596,1.99L10.8,3.272c-0.443-0.263-0.925-0.464-1.437-0.595 L9,0.5H7L6.637,2.677C6.125,2.808,5.643,3.009,5.2,3.272L3.404,1.99L1.99,3.404L3.272,5.2C3.009,5.643,2.808,6.125,2.677,6.637 L0.5,7v2l2.177,0.363c0.131,0.512,0.332,0.994,0.595,1.437L1.99,12.596l1.414,1.414L5.2,12.728c0.443,0.263,0.925,0.464,1.437,0.595 L7,15.5h2l0.363-2.177c0.512-0.131,0.994-0.332,1.437-0.595l1.796,1.283l1.414-1.414L12.728,10.8 c0.263-0.443,0.464-0.925,0.595-1.437L15.5,9z"></path> </g></svg>
|
assets/icons/settings/unit-conversion.svg
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g class="nc-icon-wrapper" fill="#111111"><polygon fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="10.5,0.5 15.5,4.5 10.5,8.5 "></polygon> <line fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="0.5" y1="4.5" x2="10.5" y2="4.5"></line> <polygon fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" points="5.5,7.5 0.5,11.5 5.5,15.5 " data-color="color-2"></polygon> <line fill="none" stroke="#111111" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" x1="15.5" y1="11.5" x2="5.5" y2="11.5" data-color="color-2"></line></g></svg>
|
assets/js/admin-settings.js
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import ReactDOM from 'react-dom';
|
2 |
+
import React from 'react';
|
3 |
+
import App from './admin-settings/App';
|
4 |
+
|
5 |
+
ReactDOM.render(
|
6 |
+
<App/>,
|
7 |
+
document.getElementById( 'wprm-settings' )
|
8 |
+
);
|
assets/js/admin-settings/App.js
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React, { Component } from 'react';
|
2 |
+
import '../../css/admin/settings.scss';
|
3 |
+
|
4 |
+
import Api from './general/Api';
|
5 |
+
import MenuContainer from './menu/MenuContainer';
|
6 |
+
import SettingsContainer from './settings/SettingsContainer';
|
7 |
+
import { animateScroll as scroll, scroller } from 'react-scroll';
|
8 |
+
import Icon from './general/Icon';
|
9 |
+
|
10 |
+
export default class App extends Component {
|
11 |
+
|
12 |
+
constructor(props) {
|
13 |
+
super(props);
|
14 |
+
|
15 |
+
this.state = {
|
16 |
+
savedSettings: { ...wprm_settings.settings },
|
17 |
+
currentSettings: { ...wprm_settings.settings },
|
18 |
+
savingChanges: false,
|
19 |
+
}
|
20 |
+
}
|
21 |
+
|
22 |
+
onSettingChange(setting, value) {
|
23 |
+
let newSettings = this.state.currentSettings;
|
24 |
+
newSettings[setting] = value;
|
25 |
+
|
26 |
+
this.setState({
|
27 |
+
currentSettings: newSettings
|
28 |
+
}, () => {
|
29 |
+
// Setting specific actions.
|
30 |
+
if ( 'features_custom_style' === setting ) {
|
31 |
+
scroller.scrollTo(setting, {
|
32 |
+
smooth: true,
|
33 |
+
duration: 400,
|
34 |
+
offset: -110,
|
35 |
+
});
|
36 |
+
}
|
37 |
+
});
|
38 |
+
}
|
39 |
+
|
40 |
+
onSaveChanges() {
|
41 |
+
this.setState({
|
42 |
+
savingChanges: true,
|
43 |
+
});
|
44 |
+
|
45 |
+
Api.saveSettings(this.state.currentSettings)
|
46 |
+
.then(settings => {
|
47 |
+
this.setState({
|
48 |
+
savingChanges: false,
|
49 |
+
savedSettings: { ...settings },
|
50 |
+
currentSettings: { ...settings },
|
51 |
+
});
|
52 |
+
}).catch(err => {
|
53 |
+
alert('The settings could not be saved. Try again later or contact support@bootstrapped.ventures');
|
54 |
+
|
55 |
+
this.setState({
|
56 |
+
savingChanges: false,
|
57 |
+
});
|
58 |
+
});
|
59 |
+
}
|
60 |
+
|
61 |
+
onCancelChanges() {
|
62 |
+
if(confirm('Are you sure you want to cancel the changes you made?')) {
|
63 |
+
this.setState({
|
64 |
+
currentSettings: { ...this.state.savedSettings },
|
65 |
+
});
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
69 |
+
onResetDefaults() {
|
70 |
+
if(confirm('Are you sure you want to reset the settings to their default values? This will not save them yet.')) {
|
71 |
+
this.setState({
|
72 |
+
currentSettings: {
|
73 |
+
...this.state.savedSettings,
|
74 |
+
...wprm_settings.defaults
|
75 |
+
},
|
76 |
+
});
|
77 |
+
}
|
78 |
+
}
|
79 |
+
|
80 |
+
scrollToTop() {
|
81 |
+
scroll.scrollToTop();
|
82 |
+
}
|
83 |
+
|
84 |
+
componentDidMount() {
|
85 |
+
window.addEventListener( 'beforeunload', this.beforeWindowClose.bind(this) );
|
86 |
+
}
|
87 |
+
|
88 |
+
componentWillUnmount() {
|
89 |
+
window.removeEventListener( 'beforeunload', this.beforeWindowClose.bind(this) );
|
90 |
+
}
|
91 |
+
|
92 |
+
beforeWindowClose(event) {
|
93 |
+
if ( this.settingsChanged() ) {
|
94 |
+
return false;
|
95 |
+
}
|
96 |
+
}
|
97 |
+
|
98 |
+
settingsChanged() {
|
99 |
+
return JSON.stringify(this.state.savedSettings) !== JSON.stringify(this.state.currentSettings);
|
100 |
+
}
|
101 |
+
|
102 |
+
render() {
|
103 |
+
return (
|
104 |
+
<div>
|
105 |
+
<MenuContainer
|
106 |
+
structure={wprm_settings.structure}
|
107 |
+
settingsChanged={this.settingsChanged()}
|
108 |
+
savingChanges={this.state.savingChanges}
|
109 |
+
onSaveChanges={this.onSaveChanges.bind(this)}
|
110 |
+
onCancelChanges={this.onCancelChanges.bind(this)}
|
111 |
+
/>
|
112 |
+
<SettingsContainer
|
113 |
+
structure={wprm_settings.structure}
|
114 |
+
settings={this.state.currentSettings}
|
115 |
+
settingsChanged={this.settingsChanged()}
|
116 |
+
onSettingChange={this.onSettingChange.bind(this)}
|
117 |
+
onResetDefaults={this.onResetDefaults.bind(this)}
|
118 |
+
/>
|
119 |
+
<a href="#" className="wprm-settings-scroll-to-top" onClick={this.scrollToTop}>
|
120 |
+
<Icon type="scrollToTop" />
|
121 |
+
</a>
|
122 |
+
</div>
|
123 |
+
);
|
124 |
+
}
|
125 |
+
}
|
assets/js/admin-settings/general/Api.js
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const settingEndPoint = wprm_temp_admin.endpoints.setting;
|
2 |
+
|
3 |
+
export default {
|
4 |
+
saveSettings(settings) {
|
5 |
+
let data = {
|
6 |
+
settings
|
7 |
+
};
|
8 |
+
|
9 |
+
return fetch(settingEndPoint, {
|
10 |
+
method: 'POST',
|
11 |
+
headers: {
|
12 |
+
'X-WP-Nonce': wprm_temp_admin.api_nonce,
|
13 |
+
'Accept': 'application/json',
|
14 |
+
'Content-Type': 'application/json',
|
15 |
+
},
|
16 |
+
credentials: 'same-origin',
|
17 |
+
body: JSON.stringify(data),
|
18 |
+
}).then(response => {
|
19 |
+
return response.json().then(json => {
|
20 |
+
return response.ok ? json : Promise.reject(json);
|
21 |
+
});
|
22 |
+
});
|
23 |
+
},
|
24 |
+
};
|
assets/js/admin-settings/general/ErrorBoundary.js
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React, { Component, Fragment } from 'react';
|
2 |
+
|
3 |
+
export default class ErrorBoundary extends Component {
|
4 |
+
|
5 |
+
constructor(props) {
|
6 |
+
super(props);
|
7 |
+
|
8 |
+
this.state = {
|
9 |
+
hasError: false,
|
10 |
+
}
|
11 |
+
}
|
12 |
+
|
13 |
+
componentDidCatch(error, info) {
|
14 |
+
this.setState({
|
15 |
+
hasError: true,
|
16 |
+
});
|
17 |
+
}
|
18 |
+
|
19 |
+
render() {
|
20 |
+
return (
|
21 |
+
<Fragment>
|
22 |
+
{
|
23 |
+
this.state.hasError
|
24 |
+
?
|
25 |
+
<div className="wprm-settings-error">Something went wrong with this setting. Please contact support.</div>
|
26 |
+
:
|
27 |
+
this.props.children
|
28 |
+
}
|
29 |
+
</Fragment>
|
30 |
+
);
|
31 |
+
}
|
32 |
+
}
|
assets/js/admin-settings/general/Helpers.js
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
export default {
|
2 |
+
dependencyMet(object, settings) {
|
3 |
+
if (object.hasOwnProperty('dependency')) {
|
4 |
+
let dependencies = object.dependency;
|
5 |
+
|
6 |
+
// Make sure dependencies is an array.
|
7 |
+
if ( ! Array.isArray( dependencies ) ) {
|
8 |
+
dependencies = [dependencies];
|
9 |
+
}
|
10 |
+
|
11 |
+
// Check all dependencies.
|
12 |
+
for ( let dependency of dependencies ) {
|
13 |
+
let dependency_value = settings[dependency.id];
|
14 |
+
|
15 |
+
if ( dependency.hasOwnProperty('type') && 'inverse' == dependency.type ) {
|
16 |
+
if (dependency_value == dependency.value) {
|
17 |
+
return false;
|
18 |
+
}
|
19 |
+
} else {
|
20 |
+
if (dependency_value != dependency.value) {
|
21 |
+
return false;
|
22 |
+
}
|
23 |
+
}
|
24 |
+
}
|
25 |
+
}
|
26 |
+
|
27 |
+
return true;
|
28 |
+
},
|
29 |
+
beforeSettingDisplay(id, settings) {
|
30 |
+
let value = settings[id];
|
31 |
+
|
32 |
+
if ( 'import_units' === id ) {
|
33 |
+
value = value.join(wprm_temp_admin.eol);
|
34 |
+
} else if ( 'unit_conversion_units' === id ) {
|
35 |
+
let newValue = {};
|
36 |
+
|
37 |
+
for (let unit in value) {
|
38 |
+
newValue[unit] = {
|
39 |
+
...value[unit],
|
40 |
+
aliases: value[unit].aliases.join(';')
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
value = newValue;
|
45 |
+
}
|
46 |
+
|
47 |
+
return value;
|
48 |
+
},
|
49 |
+
beforeSettingSave(value, id, settings) {
|
50 |
+
if ( 'import_units' === id ) {
|
51 |
+
value = value.split(wprm_temp_admin.eol);
|
52 |
+
} else if ( 'unit_conversion_units' === id ) {
|
53 |
+
let newValue = {};
|
54 |
+
|
55 |
+
for (let unit in value) {
|
56 |
+
newValue[unit] = {
|
57 |
+
...value[unit],
|
58 |
+
aliases: value[unit].aliases.split(';')
|
59 |
+
}
|
60 |
+
}
|
61 |
+
|
62 |
+
value = newValue;
|
63 |
+
}
|
64 |
+
|
65 |
+
return value;
|
66 |
+
}
|
67 |
+
};
|
assets/js/admin-settings/general/Icon.js
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React, { Component } from 'react';
|
2 |
+
import SVG from 'react-inlinesvg';
|
3 |
+
|
4 |
+
import IconLicense from '../../../icons/settings/license-key.svg';
|
5 |
+
import IconRecipeTemplate from '../../../icons/settings/recipe-template.svg';
|
6 |
+
import IconLabels from '../../../icons/settings/labels.svg';
|
7 |
+
import IconRecipePrint from '../../../icons/settings/recipe-print.svg';
|
8 |
+
import IconNutritionLabel from '../../../icons/settings/nutrition-label.svg';
|
9 |
+
import IconCustomStyle from '../../../icons/settings/custom-style.svg';
|
10 |
+
import IconRecipeSnippets from '../../../icons/settings/recipe-snippets.svg';
|
11 |
+
import IconRecipeRatings from '../../../icons/settings/recipe-ratings.svg';
|
12 |
+
import IconAdjustableServings from '../../../icons/settings/adjustable-servings.svg';
|
13 |
+
import IconIngredientLinks from '../../../icons/settings/ingredient-links.svg';
|
14 |
+
import IconUnitConversion from '../../../icons/settings/unit-conversion.svg';
|
15 |
+
import IconRecipeSubmission from '../../../icons/settings/recipe-submission.svg';
|
16 |
+
import IconRecipeDefaults from '../../../icons/settings/recipe-defaults.svg';
|
17 |
+
import IconImport from '../../../icons/settings/import.svg';
|
18 |
+
import IconMetadata from '../../../icons/settings/metadata.svg';
|
19 |
+
import IconPermissions from '../../../icons/settings/permissions.svg';
|
20 |
+
import IconSettingsTools from '../../../icons/settings/settings-tools.svg';
|
21 |
+
|
22 |
+
import IconScrollToTop from '../../../icons/settings/scroll-to-top.svg';
|
23 |
+
|
24 |
+
const icons = {
|
25 |
+
licenseKey: IconLicense,
|
26 |
+
recipeTemplate: IconRecipeTemplate,
|
27 |
+
labels: IconLabels,
|
28 |
+
recipePrint: IconRecipePrint,
|
29 |
+
nutritionLabel: IconNutritionLabel,
|
30 |
+
customStyle: IconCustomStyle,
|
31 |
+
recipeSnippets: IconRecipeSnippets,
|
32 |
+
recipeRatings: IconRecipeRatings,
|
33 |
+
adjustableServings: IconAdjustableServings,
|
34 |
+
ingredientLinks: IconIngredientLinks,
|
35 |
+
unitConversion: IconUnitConversion,
|
36 |
+
recipeSubmission: IconRecipeSubmission,
|
37 |
+
recipeDefaults: IconRecipeDefaults,
|
38 |
+
import: IconImport,
|
39 |
+
metadata: IconMetadata,
|
40 |
+
permissions: IconPermissions,
|
41 |
+
scrollToTop: IconScrollToTop,
|
42 |
+
settingsTools: IconSettingsTools,
|
43 |
+
};
|
44 |
+
|
45 |
+
const Icon = (props) => {
|
46 |
+
let icon = icons.hasOwnProperty(props.type) ? icons[props.type] : false;
|
47 |
+
|
48 |
+
if ( !icon ) {
|
49 |
+
return <span className="wprm-settings-noicon"> </span>;
|
50 |
+
}
|
51 |
+
|
52 |
+
return (
|
53 |
+
<SVG
|
54 |
+
src={icon}
|
55 |
+
className='wprm-settings-icon'
|
56 |
+
/>
|
57 |
+
);
|
58 |
+
}
|
59 |
+
export default Icon;
|
assets/js/admin-settings/menu/MenuContainer.js
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types'
|
3 |
+
import { Link } from 'react-scroll'
|
4 |
+
|
5 |
+
import Icon from '../general/Icon';
|
6 |
+
|
7 |
+
const MenuContainer = (props) => {
|
8 |
+
let menuStructure = [];
|
9 |
+
|
10 |
+
for ( let group of props.structure ) {
|
11 |
+
if (group.hasOwnProperty('header')) {
|
12 |
+
menuStructure.push({
|
13 |
+
header: group.header,
|
14 |
+
});
|
15 |
+
} else {
|
16 |
+
menuStructure.push({
|
17 |
+
id: group.id,
|
18 |
+
name: group.name,
|
19 |
+
});
|
20 |
+
}
|
21 |
+
}
|
22 |
+
|
23 |
+
return (
|
24 |
+
<div id="wprm-settings-sidebar">
|
25 |
+
<div id="wprm-settings-buttons">
|
26 |
+
<button
|
27 |
+
className="button button-primary"
|
28 |
+
disabled={props.savingChanges || !props.settingsChanged}
|
29 |
+
onClick={props.onSaveChanges}
|
30 |
+
>{ props.savingChanges ? '...' : 'Save Changes' }</button>
|
31 |
+
<button
|
32 |
+
className="button"
|
33 |
+
disabled={props.savingChanges || !props.settingsChanged}
|
34 |
+
onClick={props.onCancelChanges}
|
35 |
+
>Cancel Changes</button>
|
36 |
+
</div>
|
37 |
+
<div id="wprm-settings-menu">
|
38 |
+
{
|
39 |
+
menuStructure.map((group, i) => {
|
40 |
+
if (group.hasOwnProperty('header')) {
|
41 |
+
return <div className="wprm-settings-menu-header" key={i}>{group.header}</div>
|
42 |
+
} else {
|
43 |
+
return <Link
|
44 |
+
to={`wprm-settings-group-${group.id}`}
|
45 |
+
className="wprm-settings-menu-group"
|
46 |
+
activeClass="active"
|
47 |
+
spy={true}
|
48 |
+
offset={-42}
|
49 |
+
smooth={true}
|
50 |
+
duration={400}
|
51 |
+
key={i}
|
52 |
+
>
|
53 |
+
<Icon type={group.id} /> {group.name}
|
54 |
+
</Link>
|
55 |
+
}
|
56 |
+
})
|
57 |
+
}
|
58 |
+
</div>
|
59 |
+
</div>
|
60 |
+
);
|
61 |
+
}
|
62 |
+
|
63 |
+
MenuContainer.propTypes = {
|
64 |
+
structure: PropTypes.array.isRequired,
|
65 |
+
settingsChanged: PropTypes.bool.isRequired,
|
66 |
+
savingChanges: PropTypes.bool.isRequired,
|
67 |
+
onSaveChanges: PropTypes.func.isRequired,
|
68 |
+
onCancelChanges: PropTypes.func.isRequired,
|
69 |
+
}
|
70 |
+
|
71 |
+
export default MenuContainer;
|
assets/js/admin-settings/settings/RequiredLabel.js
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
|
4 |
+
const pluginUrl = "https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/";
|
5 |
+
|
6 |
+
const RequiredLabel = (props) => {
|
7 |
+
|
8 |
+
if (!props.object.hasOwnProperty('required')) {
|
9 |
+
return null;
|
10 |
+
}
|
11 |
+
|
12 |
+
// Don't show if addon is active.
|
13 |
+
if ( wprm_temp_admin.addons.hasOwnProperty( props.object.required ) && wprm_temp_admin.addons[ props.object.required ] ) {
|
14 |
+
return null;
|
15 |
+
}
|
16 |
+
|
17 |
+
let requiredLabelName = 'Premium Only';
|
18 |
+
if ( 'premium' !== props.object.required ) {
|
19 |
+
const capitalized = props.object.required[0].toUpperCase() + props.object.required.substring(1);
|
20 |
+
requiredLabelName = `${capitalized} Bundle Only`;
|
21 |
+
}
|
22 |
+
|
23 |
+
return (
|
24 |
+
<a href={pluginUrl} target="_blank" className="wprm-setting-required">{requiredLabelName}</a>
|
25 |
+
);
|
26 |
+
}
|
27 |
+
|
28 |
+
RequiredLabel.propTypes = {
|
29 |
+
object: PropTypes.object.isRequired,
|
30 |
+
}
|
31 |
+
|
32 |
+
export default RequiredLabel;
|
assets/js/admin-settings/settings/Setting.js
ADDED
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
import { Element } from 'react-scroll';
|
4 |
+
|
5 |
+
import Helpers from '../general/Helpers';
|
6 |
+
import RequiredLabel from './RequiredLabel';
|
7 |
+
|
8 |
+
import SettingCode from './setting/Code';
|
9 |
+
import SettingColor from './setting/Color';
|
10 |
+
import SettingDropdown from './setting/Dropdown';
|
11 |
+
import SettingDropdownMultiselect from './setting/DropdownMultiselect';
|
12 |
+
import SettingDropdownTemplate from './setting/DropdownTemplate';
|
13 |
+
import SettingEmail from './setting/Email';
|
14 |
+
import SettingNumber from './setting/Number';
|
15 |
+
import SettingRichTextarea from './setting/RichTextarea';
|
16 |
+
import SettingText from './setting/Text';
|
17 |
+
import SettingTextarea from './setting/Textarea';
|
18 |
+
import SettingToggle from './setting/Toggle';
|
19 |
+
import SettingUnitConversionUnits from './special/UnitConversionUnits';
|
20 |
+
|
21 |
+
import InformationButton from './information/Button';
|
22 |
+
|
23 |
+
const settingTypes = {
|
24 |
+
code: SettingCode,
|
25 |
+
color: SettingColor,
|
26 |
+
dropdown: SettingDropdown,
|
27 |
+
dropdownMultiselect: SettingDropdownMultiselect,
|
28 |
+
dropdownTemplate: SettingDropdownTemplate,
|
29 |
+
email: SettingEmail,
|
30 |
+
number: SettingNumber,
|
31 |
+
richTextarea: SettingRichTextarea,
|
32 |
+
text: SettingText,
|
33 |
+
textarea: SettingTextarea,
|
34 |
+
toggle: SettingToggle,
|
35 |
+
unitConversionUnits: SettingUnitConversionUnits,
|
36 |
+
}
|
37 |
+
const informationTypes = {
|
38 |
+
button: InformationButton,
|
39 |
+
}
|
40 |
+
|
41 |
+
const Setting = (props) => {
|
42 |
+
const SettingComponent = settingTypes.hasOwnProperty(props.setting.type) ? settingTypes[props.setting.type] : false;
|
43 |
+
const InformationComponent = informationTypes.hasOwnProperty(props.setting.type) ? informationTypes[props.setting.type] : false;
|
44 |
+
|
45 |
+
const displayValue = SettingComponent ? Helpers.beforeSettingDisplay(props.setting.id, props.settings) : false;
|
46 |
+
|
47 |
+
// Special Settings.
|
48 |
+
if ( 'unitConversionUnits' === props.setting.type ) {
|
49 |
+
return (
|
50 |
+
<SettingComponent
|
51 |
+
setting={props.setting}
|
52 |
+
settingsChanged={props.settingsChanged}
|
53 |
+
onValueChange={(value) => {
|
54 |
+
const saveValue = Helpers.beforeSettingSave(value, props.setting.id, props.settings);
|
55 |
+
return props.onSettingChange(props.setting.id, saveValue)
|
56 |
+
}}
|
57 |
+
value={displayValue}
|
58 |
+
/>
|
59 |
+
)
|
60 |
+
}
|
61 |
+
|
62 |
+
return (
|
63 |
+
<Element className="wprm-setting-container" name={props.setting.id} >
|
64 |
+
<div className="wprm-setting-label-container">
|
65 |
+
<span className="wprm-setting-label">
|
66 |
+
<RequiredLabel object={props.setting} />{props.setting.name}
|
67 |
+
</span>
|
68 |
+
<span className="wprm-setting-description">{props.setting.description}</span>
|
69 |
+
{
|
70 |
+
props.setting.hasOwnProperty('documentation')
|
71 |
+
?
|
72 |
+
<a href={props.setting.documentation} target="_blank" className="wprm-setting-documentation">Learn More</a>
|
73 |
+
:
|
74 |
+
null
|
75 |
+
}
|
76 |
+
</div>
|
77 |
+
<div className="wprm-setting-input-container">
|
78 |
+
{
|
79 |
+
SettingComponent ?
|
80 |
+
<SettingComponent
|
81 |
+
setting={props.setting}
|
82 |
+
settingsChanged={props.settingsChanged}
|
83 |
+
onValueChange={(value) => {
|
84 |
+
const saveValue = Helpers.beforeSettingSave(value, props.setting.id, props.settings);
|
85 |
+
return props.onSettingChange(props.setting.id, saveValue)
|
86 |
+
}}
|
87 |
+
value={displayValue}
|
88 |
+
/>
|
89 |
+
:
|
90 |
+
null
|
91 |
+
}
|
92 |
+
{
|
93 |
+
InformationComponent ?
|
94 |
+
<InformationComponent
|
95 |
+
setting={props.setting}
|
96 |
+
settingsChanged={props.settingsChanged}
|
97 |
+
/>
|
98 |
+
:
|
99 |
+
null
|
100 |
+
}
|
101 |
+
</div>
|
102 |
+
</Element>
|
103 |
+
);
|
104 |
+
}
|
105 |
+
|
106 |
+
Setting.propTypes = {
|
107 |
+
settings: PropTypes.object.isRequired,
|
108 |
+
setting: PropTypes.object.isRequired,
|
109 |
+
onSettingChange: PropTypes.func.isRequired,
|
110 |
+
settingsChanged: PropTypes.bool.isRequired,
|
111 |
+
}
|
112 |
+
|
113 |
+
export default Setting;
|
assets/js/admin-settings/settings/Settings.js
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
|
4 |
+
import Helpers from '../general/Helpers';
|
5 |
+
import Setting from './Setting';
|
6 |
+
import ErrorBoundary from '../general/ErrorBoundary';
|
7 |
+
|
8 |
+
const Settings = (props) => {
|
9 |
+
return (
|
10 |
+
<div className="wprm-settings-group-container">
|
11 |
+
{
|
12 |
+
props.outputSettings.map((setting, i) => {
|
13 |
+
if ( ! Helpers.dependencyMet(setting, props.settings ) ) {
|
14 |
+
return null;
|
15 |
+
}
|
16 |
+
|
17 |
+
return (
|
18 |
+
<ErrorBoundary key={i}>
|
19 |
+
<Setting
|
20 |
+
settings={props.settings}
|
21 |
+
setting={setting}
|
22 |
+
settingsChanged={props.settingsChanged}
|
23 |
+
onSettingChange={props.onSettingChange}
|
24 |
+
value={props.settings[setting.id]}
|
25 |
+
key={i}
|
26 |
+
/>
|
27 |
+
</ErrorBoundary>
|
28 |
+
)
|
29 |
+
})
|
30 |
+
}
|
31 |
+
</div>
|
32 |
+
);
|
33 |
+
}
|
34 |
+
|
35 |
+
Settings.propTypes = {
|
36 |
+
settings: PropTypes.object.isRequired,
|
37 |
+
outputSettings: PropTypes.array.isRequired,
|
38 |
+
onSettingChange: PropTypes.func.isRequired,
|
39 |
+
settingsChanged: PropTypes.bool.isRequired,
|
40 |
+
}
|
41 |
+
|
42 |
+
export default Settings;
|
assets/js/admin-settings/settings/SettingsContainer.js
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
|
4 |
+
import SettingsGroup from './SettingsGroup';
|
5 |
+
import SettingsTools from './SettingsTools';
|
6 |
+
|
7 |
+
const SettingsContainer = (props) => {
|
8 |
+
|
9 |
+
let offsetNeeded = 0;
|
10 |
+
|
11 |
+
if ( props.structure.length > 0 ) {
|
12 |
+
const lastGroup = props.structure[props.structure.length -1];
|
13 |
+
const lastSection = document.getElementById(`wprm-settings-group-${lastGroup.id}`);
|
14 |
+
if (lastSection) {
|
15 |
+
const topOfLastSection = lastSection.getBoundingClientRect().top + window.scrollY;
|
16 |
+
const pageScrollNeeded = document.body.scrollHeight - topOfLastSection;
|
17 |
+
offsetNeeded = (window.innerHeight + 42) - pageScrollNeeded;
|
18 |
+
}
|
19 |
+
}
|
20 |
+
|
21 |
+
return (
|
22 |
+
<div id="wprm-settings-container">
|
23 |
+
{
|
24 |
+
props.structure.map((group, i) => {
|
25 |
+
if (group.hasOwnProperty('description') || group.hasOwnProperty('subGroups') || group.hasOwnProperty('settings')) {
|
26 |
+
return <SettingsGroup
|
27 |
+
settings={props.settings}
|
28 |
+
onSettingChange={props.onSettingChange}
|
29 |
+
settingsChanged={props.settingsChanged}
|
30 |
+
group={group}
|
31 |
+
key={i}
|
32 |
+
/>
|
33 |
+
}
|
34 |
+
|
35 |
+
if('settingsTools' === group.id) {
|
36 |
+
return <SettingsTools
|
37 |
+
settings={props.settings}
|
38 |
+
onResetDefaults={props.onResetDefaults}
|
39 |
+
group={group}
|
40 |
+
key={i}
|
41 |
+
/>
|
42 |
+
}
|
43 |
+
})
|
44 |
+
}
|
45 |
+
<div className='wprm-settings-spacer' style={{height: offsetNeeded}}></div>
|
46 |
+
</div>
|
47 |
+
);
|
48 |
+
}
|
49 |
+
|
50 |
+
SettingsContainer.propTypes = {
|
51 |
+
structure: PropTypes.array.isRequired,
|
52 |
+
settings: PropTypes.object.isRequired,
|
53 |
+
settingsChanged: PropTypes.bool.isRequired,
|
54 |
+
onSettingChange: PropTypes.func.isRequired,
|
55 |
+
onResetDefaults: PropTypes.func.isRequired,
|
56 |
+
}
|
57 |
+
|
58 |
+
export default SettingsContainer;
|
assets/js/admin-settings/settings/SettingsGroup.js
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
|
4 |
+
import Helpers from '../general/Helpers';
|
5 |
+
import Settings from './Settings';
|
6 |
+
import SettingsSubGroup from './SettingsSubGroup';
|
7 |
+
import RequiredLabel from './RequiredLabel';
|
8 |
+
|
9 |
+
const SettingsGroup = (props) => {
|
10 |
+
return (
|
11 |
+
<div id={`wprm-settings-group-${props.group.id}`} className="wprm-settings-group">
|
12 |
+
<RequiredLabel object={props.group}/>
|
13 |
+
<h2 className="wprm-settings-group-name">{props.group.name}</h2>
|
14 |
+
{
|
15 |
+
props.group.hasOwnProperty('description')
|
16 |
+
?
|
17 |
+
<div className="wprm-settings-group-description">{props.group.description}</div>
|
18 |
+
:
|
19 |
+
null
|
20 |
+
}
|
21 |
+
{
|
22 |
+
props.group.hasOwnProperty('documentation')
|
23 |
+
?
|
24 |
+
<a href={props.group.documentation} target="_blank" className="wprm-setting-documentation">Learn More</a>
|
25 |
+
:
|
26 |
+
null
|
27 |
+
}
|
28 |
+
{
|
29 |
+
props.group.hasOwnProperty('settings')
|
30 |
+
?
|
31 |
+
<Settings
|
32 |
+
outputSettings={props.group.settings}
|
33 |
+
settings={props.settings}
|
34 |
+
onSettingChange={props.onSettingChange}
|
35 |
+
settingsChanged={props.settingsChanged}
|
36 |
+
/>
|
37 |
+
:
|
38 |
+
null
|
39 |
+
}
|
40 |
+
{
|
41 |
+
props.group.hasOwnProperty('subGroups')
|
42 |
+
?
|
43 |
+
props.group.subGroups.map((subgroup, i) => {
|
44 |
+
if ( ! Helpers.dependencyMet(subgroup, props.settings ) ) {
|
45 |
+
return null;
|
46 |
+
}
|
47 |
+
|
48 |
+
return <SettingsSubGroup
|
49 |
+
settings={props.settings}
|
50 |
+
onSettingChange={props.onSettingChange}
|
51 |
+
settingsChanged={props.settingsChanged}
|
52 |
+
subgroup={subgroup}
|
53 |
+
key={i}
|
54 |
+
/>
|
55 |
+
})
|
56 |
+
:
|
57 |
+
null
|
58 |
+
}
|
59 |
+
</div>
|
60 |
+
);
|
61 |
+
}
|
62 |
+
|
63 |
+
SettingsGroup.propTypes = {
|
64 |
+
group: PropTypes.object.isRequired,
|
65 |
+
settings: PropTypes.object.isRequired,
|
66 |
+
settingsChanged: PropTypes.bool.isRequired,
|
67 |
+
onSettingChange: PropTypes.func.isRequired,
|
68 |
+
}
|
69 |
+
|
70 |
+
export default SettingsGroup;
|
assets/js/admin-settings/settings/SettingsSubGroup.js
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
|
4 |
+
import RequiredLabel from './RequiredLabel';
|
5 |
+
import Settings from './Settings';
|
6 |
+
|
7 |
+
const SettingsSubGroup = (props) => {
|
8 |
+
return (
|
9 |
+
<div className="wprm-settings-subgroup">
|
10 |
+
<h3 className="wprm-settings-subgroup-name"><RequiredLabel object={props.subgroup}/>{props.subgroup.name}</h3>
|
11 |
+
{
|
12 |
+
props.subgroup.hasOwnProperty('description')
|
13 |
+
?
|
14 |
+
<div className="wprm-settings-subgroup-description">{props.subgroup.description}</div>
|
15 |
+
:
|
16 |
+
null
|
17 |
+
}
|
18 |
+
{
|
19 |
+
props.subgroup.hasOwnProperty('documentation')
|
20 |
+
?
|
21 |
+
<a href={props.subgroup.documentation} target="_blank" className="wprm-setting-documentation">Learn More</a>
|
22 |
+
:
|
23 |
+
null
|
24 |
+
}
|
25 |
+
{
|
26 |
+
props.subgroup.hasOwnProperty('settings')
|
27 |
+
?
|
28 |
+
<Settings
|
29 |
+
outputSettings={props.subgroup.settings}
|
30 |
+
settings={props.settings}
|
31 |
+
onSettingChange={props.onSettingChange}
|
32 |
+
settingsChanged={props.settingsChanged}
|
33 |
+
/>
|
34 |
+
:
|
35 |
+
null
|
36 |
+
}
|
37 |
+
</div>
|
38 |
+
);
|
39 |
+
}
|
40 |
+
|
41 |
+
SettingsSubGroup.propTypes = {
|
42 |
+
subgroup: PropTypes.object.isRequired,
|
43 |
+
settings: PropTypes.object.isRequired,
|
44 |
+
onSettingChange: PropTypes.func.isRequired,
|
45 |
+
settingsChanged: PropTypes.bool.isRequired,
|
46 |
+
}
|
47 |
+
|
48 |
+
export default SettingsSubGroup;
|
assets/js/admin-settings/settings/SettingsTools.js
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
|
4 |
+
const SettingsTools = (props) => {
|
5 |
+
return (
|
6 |
+
<div id={`wprm-settings-group-${props.group.id}`} className="wprm-settings-group">
|
7 |
+
<h2 className="wprm-settings-group-name">{props.group.name}</h2>
|
8 |
+
<div className="wprm-settings-group-container">
|
9 |
+
<div className="wprm-setting-container">
|
10 |
+
<div className="wprm-setting-label-container">
|
11 |
+
<span className="wprm-setting-label">
|
12 |
+
Reset to defaults
|
13 |
+
</span>
|
14 |
+
<span className="wprm-setting-description">Reset all settings to their default values.</span>
|
15 |
+
</div>
|
16 |
+
<div className="wprm-setting-input-container">
|
17 |
+
<button
|
18 |
+
className="button"
|
19 |
+
onClick={props.onResetDefaults}
|
20 |
+
>Reset to Defaults</button>
|
21 |
+
</div>
|
22 |
+
</div>
|
23 |
+
</div>
|
24 |
+
</div>
|
25 |
+
);
|
26 |
+
}
|
27 |
+
|
28 |
+
SettingsTools.propTypes = {
|
29 |
+
group: PropTypes.object.isRequired,
|
30 |
+
settings: PropTypes.object.isRequired,
|
31 |
+
onResetDefaults: PropTypes.func.isRequired,
|
32 |
+
}
|
33 |
+
|
34 |
+
export default SettingsTools;
|
assets/js/admin-settings/settings/information/Button.js
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
|
4 |
+
const InformationButton = (props) => {
|
5 |
+
return (
|
6 |
+
<button
|
7 |
+
className="button"
|
8 |
+
onClick={(e) => {
|
9 |
+
e.preventDefault();
|
10 |
+
if ( props.settingsChanged ) {
|
11 |
+
alert( 'You will be leaving the settings page. Please save or cancel your changes first.' );
|
12 |
+
} else {
|
13 |
+
window.location = props.setting.link;
|
14 |
+
}
|
15 |
+
} }
|
16 |
+
>{props.setting.button}</button>
|
17 |
+
);
|
18 |
+
}
|
19 |
+
|
20 |
+
InformationButton.propTypes = {
|
21 |
+
setting: PropTypes.object.isRequired,
|
22 |
+
settingsChanged: PropTypes.bool.isRequired,
|
23 |
+
}
|
24 |
+
|
25 |
+
export default InformationButton;
|
assets/js/admin-settings/settings/setting/Code.js
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
import CodeMirror from 'react-codemirror';
|
4 |
+
require('codemirror/lib/codemirror.css');
|
5 |
+
require('codemirror/mode/css/css');
|
6 |
+
|
7 |
+
const SettingCode = (props) => {
|
8 |
+
return (
|
9 |
+
<CodeMirror
|
10 |
+
className="wprm-setting-input"
|
11 |
+
value={props.value}
|
12 |
+
onChange={(value) => props.onValueChange(value)}
|
13 |
+
options={{
|
14 |
+
lineNumbers: true,
|
15 |
+
mode: props.setting.code,
|
16 |
+
}}
|
17 |
+
/>
|
18 |
+
);
|
19 |
+
}
|
20 |
+
|
21 |
+
SettingCode.propTypes = {
|
22 |
+
setting: PropTypes.object.isRequired,
|
23 |
+
value: PropTypes.any.isRequired,
|
24 |
+
onValueChange: PropTypes.func.isRequired,
|
25 |
+
}
|
26 |
+
|
27 |
+
export default SettingCode;
|
assets/js/admin-settings/settings/setting/Color.js
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React, { Component } from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
|
4 |
+
import reactCSS from 'reactcss';
|
5 |
+
import { SketchPicker } from 'react-color';
|
6 |
+
|
7 |
+
// const SettingColor = (props) => {
|
8 |
+
// return (
|
9 |
+
// <input
|
10 |
+
// className="wprm-setting-input"
|
11 |
+
// type="text"
|
12 |
+
// value={props.value}
|
13 |
+
// onChange={(e) => props.onValueChange(e.target.value)}
|
14 |
+
// />
|
15 |
+
// );
|
16 |
+
// }
|
17 |
+
|
18 |
+
export default class SettingColor extends Component {
|
19 |
+
constructor(props) {
|
20 |
+
super(props);
|
21 |
+
|
22 |
+
this.state = {
|
23 |
+
displayColorPicker: false,
|
24 |
+
}
|
25 |
+
}
|
26 |
+
|
27 |
+
handleClick() {
|
28 |
+
this.setState({ displayColorPicker: !this.state.displayColorPicker })
|
29 |
+
};
|
30 |
+
|
31 |
+
handleClose() {
|
32 |
+
this.setState({ displayColorPicker: false })
|
33 |
+
};
|
34 |
+
|
35 |
+
handleChange(color) {
|
36 |
+
this.props.onValueChange(color.hex);
|
37 |
+
};
|
38 |
+
|
39 |
+
render() {
|
40 |
+
const styles = reactCSS({
|
41 |
+
'default': {
|
42 |
+
color: {
|
43 |
+
width: '36px',
|
44 |
+
height: '14px',
|
45 |
+
borderRadius: '2px',
|
46 |
+
background: `${ this.props.value }`,
|
47 |
+
},
|
48 |
+
swatch: {
|
49 |
+
padding: '5px',
|
50 |
+
background: '#fff',
|
51 |
+
borderRadius: '1px',
|
52 |
+
boxShadow: '0 0 0 1px rgba(0,0,0,.1)',
|
53 |
+
display: 'inline-block',
|
54 |
+
cursor: 'pointer',
|
55 |
+
},
|
56 |
+
popover: {
|
57 |
+
position: 'absolute',
|
58 |
+
zIndex: '2',
|
59 |
+
},
|
60 |
+
cover: {
|
61 |
+
position: 'fixed',
|
62 |
+
top: '0px',
|
63 |
+
right: '0px',
|
64 |
+
bottom: '0px',
|
65 |
+
left: '0px',
|
66 |
+
},
|
67 |
+
},
|
68 |
+
});
|
69 |
+
|
70 |
+
return (
|
71 |
+
<div className="wprm-setting-input">
|
72 |
+
<div style={ styles.swatch } onClick={ this.handleClick.bind(this) }>
|
73 |
+
<div style={ styles.color } />
|
74 |
+
</div>
|
75 |
+
{
|
76 |
+
this.state.displayColorPicker
|
77 |
+
?
|
78 |
+
<div style={ styles.popover }>
|
79 |
+
<div style={ styles.cover } onClick={ this.handleClose.bind(this) }/>
|
80 |
+
<SketchPicker
|
81 |
+
color={ this.props.value }
|
82 |
+
onChange={ this.handleChange.bind(this) }
|
83 |
+
disableAlpha={ true }
|
84 |
+
/>
|
85 |
+
</div>
|
86 |
+
:
|
87 |
+
null
|
88 |
+
}
|
89 |
+
</div>
|
90 |
+
);
|
91 |
+
}
|
92 |
+
}
|
93 |
+
|
94 |
+
SettingColor.propTypes = {
|
95 |
+
setting: PropTypes.object.isRequired,
|
96 |
+
value: PropTypes.any.isRequired,
|
97 |
+
onValueChange: PropTypes.func.isRequired,
|
98 |
+
}
|
assets/js/admin-settings/settings/setting/Dropdown.js
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
import Select from 'react-select';
|
4 |
+
import 'react-select/dist/react-select.css';
|
5 |
+
|
6 |
+
const SettingDropdown = (props) => {
|
7 |
+
let selectOptions = [];
|
8 |
+
|
9 |
+
for (let option in props.setting.options) {
|
10 |
+
selectOptions.push({
|
11 |
+
value: option,
|
12 |
+
label: props.setting.options[option],
|
13 |
+
});
|
14 |
+
}
|
15 |
+
|
16 |
+
return (
|
17 |
+
<Select
|
18 |
+
className="wprm-setting-input"
|
19 |
+
value={props.value}
|
20 |
+
onChange={(option) => props.onValueChange(option.value)}
|
21 |
+
options={selectOptions}
|
22 |
+
clearable={false}
|
23 |
+
/>
|
24 |
+
);
|
25 |
+
}
|
26 |
+
|
27 |
+
SettingDropdown.propTypes = {
|
28 |
+
setting: PropTypes.object.isRequired,
|
29 |
+
value: PropTypes.any.isRequired,
|
30 |
+
onValueChange: PropTypes.func.isRequired,
|
31 |
+
}
|
32 |
+
|
33 |
+
export default SettingDropdown;
|
assets/js/admin-settings/settings/setting/DropdownMultiselect.js
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
import Select from 'react-select';
|
4 |
+
import 'react-select/dist/react-select.css';
|
5 |
+
|
6 |
+
const SettingDropdownMultiselect = (props) => {
|
7 |
+
let selectOptions = [];
|
8 |
+
|
9 |
+
for (let option in props.setting.options) {
|
10 |
+
selectOptions.push({
|
11 |
+
value: option,
|
12 |
+
label: props.setting.options[option],
|
13 |
+
});
|
14 |
+
}
|
15 |
+
|
16 |
+
return (
|
17 |
+
<Select
|
18 |
+
className="wprm-setting-input"
|
19 |
+
value={props.value}
|
20 |
+
multi
|
21 |
+
onChange={(options) => props.onValueChange(options.map(option => option.value))}
|
22 |
+
options={selectOptions}
|
23 |
+
/>
|
24 |
+
);
|
25 |
+
}
|
26 |
+
|
27 |
+
SettingDropdownMultiselect.propTypes = {
|
28 |
+
setting: PropTypes.object.isRequired,
|
29 |
+
value: PropTypes.any.isRequired,
|
30 |
+
onValueChange: PropTypes.func.isRequired,
|
31 |
+
}
|
32 |
+
|
33 |
+
export default SettingDropdownMultiselect;
|
assets/js/admin-settings/settings/setting/DropdownTemplate.js
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
import Select from 'react-select';
|
4 |
+
import 'react-select/dist/react-select.css';
|
5 |
+
|
6 |
+
const SettingDropdownTemplate = (props) => {
|
7 |
+
let selectOptions = [];
|
8 |
+
const templates = wprm_temp_admin.recipe_templates;
|
9 |
+
|
10 |
+
for (let template in templates) {
|
11 |
+
selectOptions.push({
|
12 |
+
value: template,
|
13 |
+
label: templates[template].name,
|
14 |
+
});
|
15 |
+
}
|
16 |
+
|
17 |
+
return (
|
18 |
+
<Select
|
19 |
+
className="wprm-setting-input"
|
20 |
+
value={props.value}
|
21 |
+
onChange={(option) => props.onValueChange(option.value)}
|
22 |
+
options={selectOptions}
|
23 |
+
clearable={false}
|
24 |
+
/>
|
25 |
+
);
|
26 |
+
}
|
27 |
+
|
28 |
+
SettingDropdownTemplate.propTypes = {
|
29 |
+
setting: PropTypes.object.isRequired,
|
30 |
+
value: PropTypes.any.isRequired,
|
31 |
+
onValueChange: PropTypes.func.isRequired,
|
32 |
+
}
|
33 |
+
|
34 |
+
export default SettingDropdownTemplate;
|
assets/js/admin-settings/settings/setting/Email.js
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
|
4 |
+
const SettingEmail = (props) => {
|
5 |
+
return (
|
6 |
+
<input
|
7 |
+
className="wprm-setting-input"
|
8 |
+
type="email"
|
9 |
+
value={props.value}
|
10 |
+
onChange={(e) => props.onValueChange(e.target.value)}
|
11 |
+
/>
|
12 |
+
);
|
13 |
+
}
|
14 |
+
|
15 |
+
SettingEmail.propTypes = {
|
16 |
+
setting: PropTypes.object.isRequired,
|
17 |
+
value: PropTypes.any.isRequired,
|
18 |
+
onValueChange: PropTypes.func.isRequired,
|
19 |
+
}
|
20 |
+
|
21 |
+
export default SettingEmail;
|
assets/js/admin-settings/settings/setting/Number.js
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React, { Fragment } from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
|
4 |
+
const SettingNumber = (props) => {
|
5 |
+
return (
|
6 |
+
<Fragment>
|
7 |
+
<input
|
8 |
+
className="wprm-setting-input"
|
9 |
+
type="number"
|
10 |
+
value={props.value}
|
11 |
+
onChange={(e) => props.onValueChange(e.target.value)}
|
12 |
+
/>
|
13 |
+
{
|
14 |
+
props.setting.hasOwnProperty('suffix')
|
15 |
+
?
|
16 |
+
<span className="wprm-setting-number-suffix"> { props.setting.suffix }</span>
|
17 |
+
:
|
18 |
+
null
|
19 |
+
}
|
20 |
+
</Fragment>
|
21 |
+
);
|
22 |
+
}
|
23 |
+
|
24 |
+
SettingNumber.propTypes = {
|
25 |
+
setting: PropTypes.object.isRequired,
|
26 |
+
value: PropTypes.any.isRequired,
|
27 |
+
onValueChange: PropTypes.func.isRequired,
|
28 |
+
}
|
29 |
+
|
30 |
+
export default SettingNumber;
|
assets/js/admin-settings/settings/setting/RichTextarea.js
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
|
4 |
+
import ReactQuill from 'react-quill';
|
5 |
+
import 'react-quill/dist/quill.snow.css';
|
6 |
+
|
7 |
+
const SettingRichTextarea = (props) => {
|
8 |
+
return (
|
9 |
+
<ReactQuill
|
10 |
+
className="wprm-setting-input"
|
11 |
+
value={props.value}
|
12 |
+
onChange={(content, delta, source) => {
|
13 |
+
if('<p></p>' === content || '<p><br></p>' === content || '<p><br/></p>' === content) {
|
14 |
+
content = '';
|
15 |
+
}
|
16 |
+
props.onValueChange(content);
|
17 |
+
}}
|
18 |
+
modules={{
|
19 |
+
toolbar: [
|
20 |
+
[{ 'header': [1, 2, false] }],
|
21 |
+
['bold', 'italic', 'underline'],
|
22 |
+
[{'list': 'ordered'}, {'list': 'bullet'}],
|
23 |
+
['link']
|
24 |
+
]
|
25 |
+
}}
|
26 |
+
/>
|
27 |
+
);
|
28 |
+
}
|
29 |
+
|
30 |
+
SettingRichTextarea.propTypes = {
|
31 |
+
setting: PropTypes.object.isRequired,
|
32 |
+
value: PropTypes.any.isRequired,
|
33 |
+
onValueChange: PropTypes.func.isRequired,
|
34 |
+
}
|
35 |
+
|
36 |
+
export default SettingRichTextarea;
|
assets/js/admin-settings/settings/setting/Text.js
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
|
4 |
+
const SettingText = (props) => {
|
5 |
+
return (
|
6 |
+
<input
|
7 |
+
className="wprm-setting-input"
|
8 |
+
type="text"
|
9 |
+
value={props.value}
|
10 |
+
onChange={(e) => props.onValueChange(e.target.value)}
|
11 |
+
/>
|
12 |
+
);
|
13 |
+
}
|
14 |
+
|
15 |
+
SettingText.propTypes = {
|
16 |
+
setting: PropTypes.object.isRequired,
|
17 |
+
value: PropTypes.any.isRequired,
|
18 |
+
onValueChange: PropTypes.func.isRequired,
|
19 |
+
}
|
20 |
+
|
21 |
+
export default SettingText;
|
assets/js/admin-settings/settings/setting/Textarea.js
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
|
4 |
+
const SettingTextarea = (props) => {
|
5 |
+
const rows = props.setting.hasOwnProperty('rows') ? props.setting.rows : 5;
|
6 |
+
|
7 |
+
return (
|
8 |
+
<textarea
|
9 |
+
className="wprm-setting-input"
|
10 |
+
value={props.value}
|
11 |
+
rows={rows}
|
12 |
+
onChange={(e) => props.onValueChange(e.target.value)}
|
13 |
+
/>
|
14 |
+
);
|
15 |
+
}
|
16 |
+
|
17 |
+
SettingTextarea.propTypes = {
|
18 |
+
setting: PropTypes.object.isRequired,
|
19 |
+
value: PropTypes.any.isRequired,
|
20 |
+
onValueChange: PropTypes.func.isRequired,
|
21 |
+
}
|
22 |
+
|
23 |
+
export default SettingTextarea;
|
assets/js/admin-settings/settings/setting/Toggle.js
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
import Toggle from 'react-toggle';
|
4 |
+
import 'react-toggle/style.css'
|
5 |
+
|
6 |
+
const SettingToggle = (props) => {
|
7 |
+
return (
|
8 |
+
<Toggle
|
9 |
+
className="wprm-setting-input"
|
10 |
+
checked={props.value}
|
11 |
+
aria-label={props.setting.name}
|
12 |
+
onChange={(e) => props.onValueChange(e.target.checked)}
|
13 |
+
/>
|
14 |
+
);
|
15 |
+
}
|
16 |
+
|
17 |
+
SettingToggle.propTypes = {
|
18 |
+
setting: PropTypes.object.isRequired,
|
19 |
+
value: PropTypes.any.isRequired,
|
20 |
+
onValueChange: PropTypes.func.isRequired,
|
21 |
+
}
|
22 |
+
|
23 |
+
export default SettingToggle;
|
assets/js/admin-settings/settings/special/UnitConversionUnits.js
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from 'react';
|
2 |
+
import PropTypes from 'prop-types';
|
3 |
+
import { Element } from 'react-scroll';
|
4 |
+
|
5 |
+
const SettingUnitConversionUnits = (props) => {
|
6 |
+
const units = props.value;
|
7 |
+
|
8 |
+
const onChange = (unit, field, value) => {
|
9 |
+
let newUnit = props.value[unit];
|
10 |
+
newUnit[field] = value;
|
11 |
+
|
12 |
+
let newUnits = props.value;
|
13 |
+
newUnits[unit] = newUnit;
|
14 |
+
|
15 |
+
props.onValueChange(newUnits);
|
16 |
+
};
|
17 |
+
|
18 |
+
return (
|
19 |
+
<Element className="wprm-setting-container" name={props.setting.id} >
|
20 |
+
<table className="wprm-setting-unit-conversion-units">
|
21 |
+
<thead>
|
22 |
+
<tr>
|
23 |
+
<th> </th>
|
24 |
+
<th>Aliases</th>
|
25 |
+
<th>Singular</th>
|
26 |
+
<th>Plural</th>
|
27 |
+
</tr>
|
28 |
+
</thead>
|
29 |
+
<tbody>
|
30 |
+
{
|
31 |
+
Object.keys(units).map((unit, index) =>
|
32 |
+
<tr key={index}>
|
33 |
+
<th scope="row">{ units[unit].label }</th>
|
34 |
+
<td>
|
35 |
+
<input
|
36 |
+
className="wprm-setting-unit-conversion-units-aliases"
|
37 |
+
type="text"
|
38 |
+
value={ units[unit].aliases }
|
39 |
+
onChange={(e) => onChange(unit, 'aliases', e.target.value)}
|
40 |
+
/>
|
41 |
+
</td>
|
42 |
+
<td>
|
43 |
+
<input
|
44 |
+
className="wprm-setting-unit-conversion-units-singular"
|
45 |
+
type="text"
|
46 |
+
value={ units[unit].singular }
|
47 |
+
onChange={(e) => onChange(unit, 'singular', e.target.value)}
|
48 |
+
/>
|
49 |
+
</td>
|
50 |
+
<td>
|
51 |
+
<input
|
52 |
+
className="wprm-setting-unit-conversion-units-plural"
|
53 |
+
type="text"
|
54 |
+
value={ units[unit].plural }
|
55 |
+
onChange={(e) => onChange(unit, 'plural', e.target.value)}
|
56 |
+
/>
|
57 |
+
</td>
|
58 |
+
</tr>
|
59 |
+
)
|
60 |
+
}
|
61 |
+
</tbody>
|
62 |
+
</table>
|
63 |
+
</Element>
|
64 |
+
);
|
65 |
+
}
|
66 |
+
|
67 |
+
SettingUnitConversionUnits.propTypes = {
|
68 |
+
setting: PropTypes.object.isRequired,
|
69 |
+
value: PropTypes.any.isRequired,
|
70 |
+
onValueChange: PropTypes.func.isRequired,
|
71 |
+
}
|
72 |
+
|
73 |
+
export default SettingUnitConversionUnits;
|
assets/js/admin/manage/datatable.js
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
import '../../../../vendor/select2/js/select2.min.js';
|
2 |
import '../../../../vendor/select2/css/select2.min.css';
|
3 |
-
import 'datatables.net';
|
4 |
-
import 'datatables.net';
|
5 |
-
import 'datatables.net-dt/css/jquery.dataTables.css';
|
6 |
import 'tooltipster';
|
7 |
import 'tooltipster/dist/css/tooltipster.bundle.css';
|
8 |
|
1 |
import '../../../../vendor/select2/js/select2.min.js';
|
2 |
import '../../../../vendor/select2/css/select2.min.css';
|
3 |
+
// import 'datatables.net';
|
4 |
+
// import 'datatables.net-dt/css/jquery.dataTables.css';
|
|
|
5 |
import 'tooltipster';
|
6 |
import 'tooltipster/dist/css/tooltipster.bundle.css';
|
7 |
|
assets/js/admin/modal/Recipe.js
CHANGED
@@ -48,7 +48,8 @@ let Recipe = {
|
|
48 |
jQuery('.wprm-recipe-ingredients-add').click();
|
49 |
jQuery('.wprm-recipe-instructions-add').click();
|
50 |
|
51 |
-
|
|
|
52 |
if (typeof tinyMCE !== 'undefined' && tinyMCE.get('wprm_recipe_notes') && !tinyMCE.get('wprm_recipe_notes').isHidden()) {
|
53 |
tinyMCE.get('wprm_recipe_notes').focus(true);
|
54 |
|
@@ -110,6 +111,8 @@ let Recipe = {
|
|
110 |
// Recipe Notes
|
111 |
if (parseInt(recipe.video_id) > 0) {
|
112 |
utils.set_media('video',jQuery('.wprm-recipe-notes-form .wprm-recipe-video-container'), recipe.video_id, recipe.video_thumb_url);
|
|
|
|
|
113 |
}
|
114 |
|
115 |
if (typeof tinyMCE !== 'undefined' && tinyMCE.get('wprm_recipe_notes') && !tinyMCE.get('wprm_recipe_notes').isHidden()) {
|
@@ -189,6 +192,7 @@ let Recipe = {
|
|
189 |
type: jQuery('#wprm-recipe-type').val(),
|
190 |
image_id: jQuery('#wprm-recipe-image-id').val(),
|
191 |
video_id: jQuery('#wprm-recipe-video-id').val(),
|
|
|
192 |
name: jQuery('#wprm-recipe-name').val(),
|
193 |
summary: jQuery('#wprm-recipe-summary').val(),
|
194 |
author_display: author_display,
|
48 |
jQuery('.wprm-recipe-ingredients-add').click();
|
49 |
jQuery('.wprm-recipe-instructions-add').click();
|
50 |
|
51 |
+
// Recipe Notes
|
52 |
+
utils.remove_media('video', jQuery('.wprm-recipe-video-container'));
|
53 |
if (typeof tinyMCE !== 'undefined' && tinyMCE.get('wprm_recipe_notes') && !tinyMCE.get('wprm_recipe_notes').isHidden()) {
|
54 |
tinyMCE.get('wprm_recipe_notes').focus(true);
|
55 |
|
111 |
// Recipe Notes
|
112 |
if (parseInt(recipe.video_id) > 0) {
|
113 |
utils.set_media('video',jQuery('.wprm-recipe-notes-form .wprm-recipe-video-container'), recipe.video_id, recipe.video_thumb_url);
|
114 |
+
} else if (recipe.video_embed) {
|
115 |
+
utils.set_media_embed('video',jQuery('.wprm-recipe-notes-form .wprm-recipe-video-container'), recipe.video_embed);
|
116 |
}
|
117 |
|
118 |
if (typeof tinyMCE !== 'undefined' && tinyMCE.get('wprm_recipe_notes') && !tinyMCE.get('wprm_recipe_notes').isHidden()) {
|
192 |
type: jQuery('#wprm-recipe-type').val(),
|
193 |
image_id: jQuery('#wprm-recipe-image-id').val(),
|
194 |
video_id: jQuery('#wprm-recipe-video-id').val(),
|
195 |
+
video_embed: jQuery('#wprm-recipe-video-embed').val(),
|
196 |
name: jQuery('#wprm-recipe-name').val(),
|
197 |
summary: jQuery('#wprm-recipe-summary').val(),
|
198 |
author_display: author_display,
|
assets/js/admin/modal/RecipeInit.js
CHANGED
@@ -27,6 +27,9 @@ export default function recipeInit(recipe) {
|
|
27 |
jQuery('.wprm-recipe-notes-form').on('click', '.wprm-recipe-video-remove', function(e) {
|
28 |
utils.remove_media('video', jQuery(this).parents('.wprm-recipe-video-container'));
|
29 |
});
|
|
|
|
|
|
|
30 |
|
31 |
// Initialize rich editor
|
32 |
RichEditor.init();
|
27 |
jQuery('.wprm-recipe-notes-form').on('click', '.wprm-recipe-video-remove', function(e) {
|
28 |
utils.remove_media('video', jQuery(this).parents('.wprm-recipe-video-container'));
|
29 |
});
|
30 |
+
jQuery('.wprm-recipe-notes-form').on('click', '.wprm-recipe-video-embed', function(e) {
|
31 |
+
utils.set_media_embed('video', jQuery(this).parents('.wprm-recipe-video-container'), '');
|
32 |
+
});
|
33 |
|
34 |
// Initialize rich editor
|
35 |
RichEditor.init();
|
assets/js/admin/modal/tabs/recipe.js
CHANGED
@@ -94,34 +94,49 @@ Modal.actions.insert_update_recipe = function(button) {
|
|
94 |
jQuery('.wprm-button-action-save').prop('disabled', true);
|
95 |
utils.start_loader(button);
|
96 |
|
97 |
-
jQuery.
|
98 |
-
|
99 |
-
|
|
|
|
|
|
|
|
|
100 |
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
|
|
114 |
}
|
115 |
-
}
|
116 |
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
|
121 |
-
|
|
|
122 |
}
|
123 |
-
}
|
124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
};
|
126 |
|
127 |
Modal.actions.edit_recipe = function(button) {
|
94 |
jQuery('.wprm-button-action-save').prop('disabled', true);
|
95 |
utils.start_loader(button);
|
96 |
|
97 |
+
jQuery.ajax({
|
98 |
+
type: 'POST',
|
99 |
+
url: wprm_temp_admin.ajax_url,
|
100 |
+
data: data,
|
101 |
+
success: function(out) {
|
102 |
+
utils.stop_loader(button);
|
103 |
+
jQuery('.wprm-button-action-save').prop('disabled', false);
|
104 |
|
105 |
+
if (out.success) {
|
106 |
+
if (Recipe.id === 0) {
|
107 |
+
Recipe.id = out.data.id;
|
108 |
+
}
|
109 |
|
110 |
+
if(!button.hasClass('wprm-button-action-save')) {
|
111 |
+
if ('insert' === Recipe.type) {
|
112 |
+
utils.add_text_to_editor('[wprm-recipe id="' + out.data.id + '"]');
|
113 |
+
} else if(Modal.active_editor_id) {
|
114 |
+
// Refresh content in editor to reload recipe preview
|
115 |
+
if (typeof tinyMCE !== 'undefined' && tinyMCE.get(Modal.active_editor_id) && !tinyMCE.get(Modal.active_editor_id).isHidden()) {
|
116 |
+
tinyMCE.get(Modal.active_editor_id).focus(true);
|
117 |
+
tinyMCE.activeEditor.setContent(tinyMCE.activeEditor.getContent());
|
118 |
+
}
|
119 |
}
|
|
|
120 |
|
121 |
+
if(jQuery('.wprm-manage-datatable').length > 0) {
|
122 |
+
jQuery('.wprm-manage-datatable').DataTable().ajax.reload(null, false);
|
123 |
+
}
|
124 |
|
125 |
+
Modal.close();
|
126 |
+
}
|
127 |
}
|
128 |
+
},
|
129 |
+
error: function(out) {
|
130 |
+
console.log(out);
|
131 |
+
alert( 'An error occured during saving. This could have happened because you got logged out of WordPress. If so, a login form should show up now.' );
|
132 |
+
if (wp.heartbeat) {
|
133 |
+
wp.heartbeat.connectNow();
|
134 |
+
}
|
135 |
+
utils.stop_loader(button);
|
136 |
+
jQuery('.wprm-button-action-save').prop('disabled', false);
|
137 |
+
},
|
138 |
+
dataType: 'json',
|
139 |
+
});
|
140 |
};
|
141 |
|
142 |
Modal.actions.edit_recipe = function(button) {
|
assets/js/admin/modal/utils.js
CHANGED
@@ -82,6 +82,11 @@ export function set_media(type, container, media_id, media_url) {
|
|
82 |
|
83 |
container.find('.wprm-recipe-' + type + '-add').addClass('hidden');
|
84 |
container.find('.wprm-recipe-' + type + '-remove').removeClass('hidden');
|
|
|
|
|
|
|
|
|
|
|
85 |
Modal.changes_made = true;
|
86 |
};
|
87 |
|
@@ -91,6 +96,22 @@ export function remove_media(type, container) {
|
|
91 |
|
92 |
container.find('.wprm-recipe-' + type + '-add').removeClass('hidden');
|
93 |
container.find('.wprm-recipe-' + type + '-remove').addClass('hidden');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
Modal.changes_made = true;
|
95 |
};
|
96 |
|
82 |
|
83 |
container.find('.wprm-recipe-' + type + '-add').addClass('hidden');
|
84 |
container.find('.wprm-recipe-' + type + '-remove').removeClass('hidden');
|
85 |
+
|
86 |
+
if ( 'video' === type ) {
|
87 |
+
container.find('.wprm-recipe-' + type + '-embed').addClass('hidden');
|
88 |
+
}
|
89 |
+
|
90 |
Modal.changes_made = true;
|
91 |
};
|
92 |
|
96 |
|
97 |
container.find('.wprm-recipe-' + type + '-add').removeClass('hidden');
|
98 |
container.find('.wprm-recipe-' + type + '-remove').addClass('hidden');
|
99 |
+
|
100 |
+
if ( 'video' === type ) {
|
101 |
+
container.find('.wprm-recipe-' + type + '-embed').removeClass('hidden');
|
102 |
+
container.find('#wprm-recipe-' + type + '-embed').val('').addClass('hidden');
|
103 |
+
}
|
104 |
+
|
105 |
+
Modal.changes_made = true;
|
106 |
+
};
|
107 |
+
|
108 |
+
export function set_media_embed(type, container, code) {
|
109 |
+
container.find('.wprm-recipe-' + type + '-add').addClass('hidden');
|
110 |
+
container.find('.wprm-recipe-' + type + '-embed').addClass('hidden');
|
111 |
+
|
112 |
+
container.find('#wprm-recipe-' + type + '-embed').val(code).removeClass('hidden');
|
113 |
+
container.find('.wprm-recipe-' + type + '-remove').removeClass('hidden');
|
114 |
+
|
115 |
Modal.changes_made = true;
|
116 |
};
|
117 |
|
assets/js/admin/settings.js
CHANGED
@@ -1,15 +1,38 @@
|
|
1 |
-
import '../../../vendor/select2/js/select2.min.js';
|
2 |
-
import '../../../vendor/select2/css/select2.min.css';
|
3 |
-
import '../../css/admin/settings.scss';
|
4 |
-
|
5 |
jQuery(document).ready(function($) {
|
6 |
-
jQuery('
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
});
|
15 |
});
|
|
|
|
|
|
|
|
|
1 |
jQuery(document).ready(function($) {
|
2 |
+
jQuery('#wprm-activate-license').on('click', function(e) {
|
3 |
+
e.preventDefault();
|
4 |
+
|
5 |
+
let button = jQuery(this);
|
6 |
+
button.prop('disabled', true);
|
7 |
+
|
8 |
+
let container = button.parents('#wprm-activate-license-container');
|
9 |
+
let input = container.find('input.wprm-license');
|
10 |
+
|
11 |
+
let setting = input.attr('id');
|
12 |
+
let license = input.val();
|
13 |
+
|
14 |
+
let settings_to_update = {};
|
15 |
+
settings_to_update[setting] = license;
|
16 |
+
|
17 |
+
let data = {
|
18 |
+
settings: settings_to_update,
|
19 |
+
};
|
20 |
+
|
21 |
+
return fetch(wprm_temp_admin.endpoints.setting, {
|
22 |
+
method: 'POST',
|
23 |
+
headers: {
|
24 |
+
'X-WP-Nonce': wprm_temp_admin.api_nonce,
|
25 |
+
'Accept': 'application/json',
|
26 |
+
'Content-Type': 'application/json',
|
27 |
+
},
|
28 |
+
credentials: 'same-origin',
|
29 |
+
body: JSON.stringify(data),
|
30 |
+
}).then(response => {
|
31 |
+
if ( response.ok ) {
|
32 |
+
container.html('<p>Thank you for saving your license. We will check the validity on page refresh.</p>');
|
33 |
+
} else {
|
34 |
+
container.html('<p>Something went wrong. Please try again later.</p>');
|
35 |
+
}
|
36 |
+
});
|
37 |
});
|
38 |
});
|
assets/js/blocks.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
//import './blocks/recipe';
|
1 |
+
// import './blocks/recipe';
|
assets/js/blocks/recipe.js
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
const { __ } = wp.i18n;
|
2 |
const { registerBlockType } = wp.blocks;
|
|
|
|
|
3 |
|
4 |
registerBlockType( 'wp-recipe-maker/recipe', {
|
5 |
title: __( 'Recipe' ),
|
@@ -30,7 +32,32 @@ registerBlockType( 'wp-recipe-maker/recipe', {
|
|
30 |
edit: (props) => {
|
31 |
const { attributes, className } = props;
|
32 |
|
33 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
},
|
35 |
save: (props) => {
|
36 |
return null;
|
1 |
const { __ } = wp.i18n;
|
2 |
const { registerBlockType } = wp.blocks;
|
3 |
+
const { Button, Modal } = wp.components;
|
4 |
+
const { Fragment } = wp.element;
|
5 |
|
6 |
registerBlockType( 'wp-recipe-maker/recipe', {
|
7 |
title: __( 'Recipe' ),
|
32 |
edit: (props) => {
|
33 |
const { attributes, className } = props;
|
34 |
|
35 |
+
return (
|
36 |
+
<div className={ className }>{
|
37 |
+
attributes.id
|
38 |
+
?
|
39 |
+
<div>Recipe { attributes.id }</div>
|
40 |
+
:
|
41 |
+
<Fragment>
|
42 |
+
<h2>WPRM { __( 'Recipe', 'wp-recipe-maker' ) }</h2>
|
43 |
+
<Button
|
44 |
+
isPrimary
|
45 |
+
isLarge
|
46 |
+
onClick={ () => {
|
47 |
+
WPRecipeMaker.admin.Modal.open(false, {
|
48 |
+
recipe_id: 0
|
49 |
+
});
|
50 |
+
WPRecipeMaker.admin.Modal.disable_menu();
|
51 |
+
}}>
|
52 |
+
{ __( 'Create new Recipe', 'wp-recipe-maker' ) }
|
53 |
+
</Button> <Button
|
54 |
+
isLarge
|
55 |
+
type="button">
|
56 |
+
{ __( 'Insert existing Recipe', 'wp-recipe-maker' ) }
|
57 |
+
</Button>
|
58 |
+
</Fragment>
|
59 |
+
}</div>
|
60 |
+
)
|
61 |
},
|
62 |
save: (props) => {
|
63 |
return null;
|
dist/admin-settings.css
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.rtl #wprm-settings-menu .wprm-settings-menu-group .wprm-settings-icon{margin-right:0;margin-left:2px}.rtl #wprm-settings-container .wprm-setting-required{border-radius:3px;margin-left:0}.rtl .wprm-settings-scroll-to-top{left:20px;right:auto}#wprm-settings-buttons,#wprm-settings-sidebar{margin-bottom:20px}.error,.is-dismissible,.update-nag,.updated{display:none}#wprm-settings-menu,.wprm-settings-group{background-color:#fff;border-radius:5px}#wprm-settings-menu .wprm-settings-menu-group,#wprm-settings-menu .wprm-settings-subgroup,.wprm-settings-group .wprm-settings-menu-group,.wprm-settings-group .wprm-settings-subgroup{padding:6px;border-bottom:1px solid #ddd}#wprm-settings-menu .wprm-settings-menu-group:last-child,#wprm-settings-menu .wprm-settings-subgroup:last-child,.wprm-settings-group .wprm-settings-menu-group:last-child,.wprm-settings-group .wprm-settings-subgroup:last-child{border-bottom:none}#wprm-settings-menu .wprm-settings-menu-header{padding:10px;padding-bottom:5px;text-align:center;font-weight:300;font-size:1.2em}#wprm-settings-menu .wprm-settings-menu-group{display:block;text-decoration:none;color:#444;cursor:pointer}#wprm-settings-menu .wprm-settings-menu-group:first-child{border-top-left-radius:5px;border-top-right-radius:5px}#wprm-settings-menu .wprm-settings-menu-group:last-child{border-bottom-left-radius:5px;border-bottom-right-radius:5px}#wprm-settings-menu .wprm-settings-menu-group.active{background-color:#ddd;font-weight:700}#wprm-settings-menu .wprm-settings-menu-group .wprm-settings-noicon{display:inline-block;width:18px}#wprm-settings-menu .wprm-settings-menu-group .wprm-settings-icon{vertical-align:middle;margin-right:2px;position:relative;top:1px}#wprm-settings-menu .wprm-settings-menu-group .wprm-settings-icon svg{fill:#ddd}#wprm-settings-buttons{text-align:center;padding-top:10px;background-color:#fff;border-radius:5px}#wprm-settings-buttons button{display:inline-block;margin:0 3px;margin-bottom:10px}#wprm-settings-container .wprm-settings-group{padding-bottom:25px;margin-bottom:25px}#wprm-settings-container .wprm-settings-group>.wprm-setting-documentation,#wprm-settings-container .wprm-settings-group>.wprm-settings-group-container{padding:25px;padding-bottom:0}#wprm-settings-container .wprm-setting-required{background-color:darkred;color:#fff;padding:3px 5px;margin-left:-10px;margin-right:5px;border-radius:3px;border-top-left-radius:0;border-bottom-left-radius:0;text-decoration:none;font-weight:400;font-size:.8em}#wprm-settings-container .wprm-settings-group>.wprm-setting-required{display:block;font-size:1.2em;border-radius:3px;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:6px 10px;margin:0}#wprm-settings-container .wprm-settings-group-name,#wprm-settings-container .wprm-settings-subgroup-name{text-align:center}#wprm-settings-container .wprm-settings-group-name{padding:20px 10px 0;padding-bottom:0;margin:5px 0;font-size:1.8em;font-weight:400}#wprm-settings-container .wprm-settings-subgroup-name{margin:5px 0 15px;font-size:1.6em;font-weight:300}#wprm-settings-container .wprm-settings-group-description{padding:10px 25px 0}#wprm-settings-container .wprm-settings-group-description,#wprm-settings-container .wprm-settings-subgroup-description{font-style:italic}#wprm-settings-container .wprm-settings-subgroup-description+.wprm-settings-group-container{margin-top:20px}#wprm-settings-container .wprm-setting-container{margin-bottom:25px}#wprm-settings-container .wprm-setting-container:last-child{margin-bottom:0}#wprm-settings-container .wprm-setting-container .wprm-setting-label{display:block;font-weight:700}#wprm-settings-container .wprm-setting-container .wprm-setting-description{display:block;font-style:italic;margin-top:2px}#wprm-settings-container .wprm-setting-container .wprm-setting-input-container{margin-top:5px}#wprm-settings-container .wprm-setting-container .wprm-setting-input-container input[type=email],#wprm-settings-container .wprm-setting-container .wprm-setting-input-container input[type=number],#wprm-settings-container .wprm-setting-container .wprm-setting-input-container input[type=text]{width:100%}.wprm-settings-scroll-to-top{background-color:#444;border-radius:100%;position:fixed;bottom:20px;right:20px;width:30px;height:30px;text-align:center}.wprm-settings-scroll-to-top .wprm-settings-icon{position:relative;top:7px}.wprm-settings-scroll-to-top .wprm-settings-icon path{fill:#fff;stroke:#fff}.wprm-settings-error{color:darkred;font-weight:700}@media screen and (min-width:783px){.rtl #wprm-settings-container{margin-right:225px;margin-left:0}.rtl #wprm-settings-container .wprm-settings-subgroup-name{text-align:right}.rtl #wprm-settings-container .wprm-setting-required{margin-right:5px;margin-left:0}.rtl #wprm-settings-container .wprm-setting-label-container{margin-left:5%;margin-right:0}#wprm-settings-sidebar{position:fixed;width:200px;max-height:calc(100% - 70px);overflow-y:scroll}#wprm-settings-menu{height:100%;overflow-y:scroll}#wprm-settings-container{margin-left:225px;padding-bottom:70%}#wprm-settings-container .wprm-settings-subgroup-name{text-align:left}#wprm-settings-container .wprm-settings-subgroup{padding:25px;padding-top:10px}#wprm-settings-container .wprm-settings-subgroup:last-child{padding-bottom:0}#wprm-settings-container .wprm-setting-required{margin-left:-25px}#wprm-settings-container .wprm-setting-input-container,#wprm-settings-container .wprm-setting-label-container{vertical-align:top}#wprm-settings-container .wprm-setting-label-container{display:inline-block;width:45%;margin-right:5%}#wprm-settings-container .wprm-setting-input-container{display:inline-block;width:50%}.wprm-settings-scroll-to-top{display:none}}@media screen and (min-width:1024px){.rtl #wprm-settings-container{margin-right:275px;margin-left:0}#wprm-settings-sidebar{width:250px}#wprm-settings-container{margin-left:275px}}.wprm-setting-input .ql-editor p{margin-bottom:10px}.wprm-setting-input .CodeMirror{height:200px;border:1px solid #ddd}.wprm-setting-input[type=number]{max-width:100px}.wprm-setting-unit-conversion-units,textarea.wprm-setting-input{width:100%}.wprm-setting-unit-conversion-units th{text-align:left}.wprm-setting-unit-conversion-units input{width:95%}.wprm-setting-unit-conversion-units input.wprm-setting-unit-conversion-units-plural,.wprm-setting-unit-conversion-units input.wprm-setting-unit-conversion-units-singular{max-width:100px}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.Select{position:relative}.Select input::-webkit-contacts-auto-fill-button,.Select input::-webkit-credentials-auto-fill-button{display:none!important}.Select input::-ms-clear,.Select input::-ms-reveal{display:none!important}.Select,.Select div,.Select input,.Select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.Select.is-disabled .Select-arrow-zone{cursor:default;pointer-events:none;opacity:.35}.Select.is-disabled>.Select-control{background-color:#f9f9f9}.Select.is-disabled>.Select-control:hover{box-shadow:none}.Select.is-open>.Select-control{border-bottom-right-radius:0;border-bottom-left-radius:0;background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.Select.is-open>.Select-control .Select-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.Select.is-searchable.is-focused:not(.is-open)>.Select-control,.Select.is-searchable.is-open>.Select-control{cursor:text}.Select.is-focused>.Select-control{background:#fff}.Select.is-focused:not(.is-open)>.Select-control{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 0 3px rgba(0,126,255,.1);background:#fff}.Select.has-value.is-clearable.Select--single>.Select-control .Select-value{padding-right:42px}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value .Select-value-label,.Select.has-value.Select--single>.Select-control .Select-value .Select-value-label{color:#333}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label{cursor:pointer;text-decoration:none}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:hover,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:hover{color:#007eff;outline:none;text-decoration:underline}.Select.has-value.is-pseudo-focused.Select--single>.Select-control .Select-value a.Select-value-label:focus,.Select.has-value.Select--single>.Select-control .Select-value a.Select-value-label:focus{background:#fff}.Select.has-value.is-pseudo-focused .Select-input{opacity:0}.Select.is-open .Select-arrow,.Select .Select-arrow-zone:hover>.Select-arrow{border-top-color:#666}.Select.Select--rtl{direction:rtl;text-align:right}.Select-control{background-color:#fff;border-color:#d9d9d9 #ccc #b3b3b3;border-radius:4px;border:1px solid #ccc;color:#333;cursor:default;display:table;border-spacing:0;border-collapse:separate;height:36px;outline:none;overflow:hidden;position:relative;width:100%}.Select-control:hover{box-shadow:0 1px 0 rgba(0,0,0,.06)}.Select-control .Select-input:focus{outline:none;background:#fff}.Select--single>.Select-control .Select-value,.Select-placeholder{bottom:0;color:#aaa;left:0;line-height:34px;padding-left:10px;padding-right:10px;position:absolute;right:0;top:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Select-input{height:34px;padding-left:10px;padding-right:10px;vertical-align:middle}.Select-input>input{width:100%;background:none transparent;border:0 none;box-shadow:none;cursor:default;display:inline-block;font-family:inherit;font-size:inherit;margin:0;outline:none;line-height:17px;padding:8px 0 12px;-webkit-appearance:none}.is-focused .Select-input>input{cursor:text}.has-value.is-pseudo-focused .Select-input{opacity:0}.Select-control:not(.is-searchable)>.Select-input{outline:none}.Select-loading-zone{cursor:pointer;display:table-cell;text-align:center}.Select-loading,.Select-loading-zone{position:relative;vertical-align:middle;width:16px}.Select-loading{-webkit-animation:Select-animation-spin .4s infinite linear;-o-animation:Select-animation-spin .4s infinite linear;animation:Select-animation-spin .4s infinite linear;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid #ccc;border-right-color:#333;display:inline-block}.Select-clear-zone{-webkit-animation:Select-animation-fadeIn .2s;-o-animation:Select-animation-fadeIn .2s;animation:Select-animation-fadeIn .2s;color:#999;cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:17px}.Select-clear-zone:hover{color:#d0021b}.Select-clear{display:inline-block;font-size:18px;line-height:1}.Select--multi .Select-clear-zone{width:17px}.Select-arrow-zone{cursor:pointer;display:table-cell;position:relative;text-align:center;vertical-align:middle;width:25px;padding-right:5px}.Select--rtl .Select-arrow-zone{padding-right:0;padding-left:5px}.Select-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px;display:inline-block;height:0;width:0;position:relative}.Select-control>:last-child{padding-right:5px}.Select--multi .Select-multi-value-wrapper{display:inline-block}.Select .Select-aria-only{position:absolute;display:inline-block;height:1px;width:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;float:left}@-webkit-keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes Select-animation-fadeIn{0%{opacity:0}to{opacity:1}}.Select-menu-outer{border-bottom-right-radius:4px;border-bottom-left-radius:4px;background-color:#fff;border:1px solid #ccc;border-top-color:#e6e6e6;box-shadow:0 1px 0 rgba(0,0,0,.06);box-sizing:border-box;margin-top:-1px;max-height:200px;position:absolute;left:0;top:100%;width:100%;z-index:1;-webkit-overflow-scrolling:touch}.Select-menu{max-height:198px;overflow-y:auto}.Select-option{box-sizing:border-box;background-color:#fff;color:#666;cursor:pointer;display:block;padding:8px 10px}.Select-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.Select-option.is-selected{background-color:#f5faff;background-color:rgba(0,126,255,.04);color:#333}.Select-option.is-focused{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);color:#333}.Select-option.is-disabled{color:#ccc;cursor:default}.Select-noresults{box-sizing:border-box;color:#999;cursor:default;display:block;padding:8px 10px}.Select--multi .Select-input{vertical-align:middle;margin-left:10px;padding:0}.Select--multi.Select--rtl .Select-input{margin-left:0;margin-right:10px}.Select--multi.has-value .Select-input{margin-left:5px}.Select--multi .Select-value{background-color:#ebf5ff;background-color:rgba(0,126,255,.08);border-radius:2px;border:1px solid #c2e0ff;border:1px solid rgba(0,126,255,.24);color:#007eff;display:inline-block;font-size:.9em;line-height:1.4;margin-left:5px;margin-top:5px;vertical-align:top}.Select--multi .Select-value-icon,.Select--multi .Select-value-label{display:inline-block;vertical-align:middle}.Select--multi .Select-value-label{border-bottom-right-radius:2px;border-top-right-radius:2px;cursor:default;padding:2px 5px}.Select--multi a.Select-value-label{color:#007eff;cursor:pointer;text-decoration:none}.Select--multi a.Select-value-label:hover{text-decoration:underline}.Select--multi .Select-value-icon{cursor:pointer;border-bottom-left-radius:2px;border-top-left-radius:2px;border-right:1px solid #c2e0ff;border-right:1px solid rgba(0,126,255,.24);padding:1px 5px 3px}.Select--multi .Select-value-icon:focus,.Select--multi .Select-value-icon:hover{background-color:#d8eafd;background-color:rgba(0,113,230,.08);color:#0071e6}.Select--multi .Select-value-icon:active{background-color:#c2e0ff;background-color:rgba(0,126,255,.24)}.Select--multi.Select--rtl .Select-value{margin-left:0;margin-right:5px}.Select--multi.Select--rtl .Select-value-icon{border-right:none;border-left:1px solid #c2e0ff;border-left:1px solid rgba(0,126,255,.24)}.Select--multi.is-disabled .Select-value{background-color:#fcfcfc;border:1px solid #e3e3e3;color:#333}.Select--multi.is-disabled .Select-value-icon{cursor:not-allowed;border-right:1px solid #e3e3e3}.Select--multi.is-disabled .Select-value-icon:active,.Select--multi.is-disabled .Select-value-icon:focus,.Select--multi.is-disabled .Select-value-icon:hover{background-color:#fcfcfc}@keyframes Select-animation-spin{to{transform:rotate(1turn)}}@-webkit-keyframes Select-animation-spin{to{-webkit-transform:rotate(1turn)}}/*!
|
2 |
+
* Quill Editor v1.3.0
|
3 |
+
* https://quilljs.com/
|
4 |
+
* Copyright (c) 2014, Jason Chen
|
5 |
+
* Copyright (c) 2013, salesforce.com
|
6 |
+
*/.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-embed-selected{border:1px solid #777;user-select:none}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;pointer-events:none;position:absolute}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover{color:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding-bottom:2px;padding-top:2px}.ql-snow .ql-editor code:after,.ql-snow .ql-editor code:before{content:"\A0";letter-spacing:-2px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item:before,.ql-snow .ql-picker.ql-header .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item:before,.ql-snow .ql-picker.ql-font .ql-picker-label:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item:before,.ql-snow .ql-picker.ql-size .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:0 2px 8px rgba(0,0,0,.2)}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}.react-toggle{touch-action:pan-x;display:inline-block;position:relative;cursor:pointer;background-color:transparent;border:0;padding:0;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}.react-toggle-screenreader-only{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.react-toggle--disabled{cursor:not-allowed;opacity:.5;-webkit-transition:opacity .25s;transition:opacity .25s}.react-toggle-track{width:50px;height:24px;padding:0;border-radius:30px;background-color:#4d4d4d;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;transition:all .2s ease}.react-toggle:hover:not(.react-toggle--disabled) .react-toggle-track{background-color:#000}.react-toggle--checked .react-toggle-track{background-color:#19ab27}.react-toggle--checked:hover:not(.react-toggle--disabled) .react-toggle-track{background-color:#128d15}.react-toggle-track-check{position:absolute;width:14px;height:10px;top:0;bottom:0;margin-top:auto;margin-bottom:auto;line-height:0;left:8px;opacity:0;-webkit-transition:opacity .25s ease;-moz-transition:opacity .25s ease;transition:opacity .25s ease}.react-toggle--checked .react-toggle-track-check,.react-toggle-track-x{opacity:1;-webkit-transition:opacity .25s ease;-moz-transition:opacity .25s ease;transition:opacity .25s ease}.react-toggle-track-x{position:absolute;width:10px;height:10px;top:0;bottom:0;margin-top:auto;margin-bottom:auto;line-height:0;right:10px}.react-toggle--checked .react-toggle-track-x{opacity:0}.react-toggle-thumb{transition:all .5s cubic-bezier(.23,1,.32,1) 0ms;position:absolute;top:1px;left:1px;width:22px;height:22px;border:1px solid #4d4d4d;border-radius:50%;background-color:#fafafa;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:all .25s ease;-moz-transition:all .25s ease;transition:all .25s ease}.react-toggle--checked .react-toggle-thumb{left:27px;border-color:#19ab27}.react-toggle--focus .react-toggle-thumb{-webkit-box-shadow:0 0 3px 2px #0099e0;-moz-box-shadow:0 0 3px 2px #0099e0;box-shadow:0 0 2px 3px #0099e0}.react-toggle:active:not(.react-toggle--disabled) .react-toggle-thumb{-webkit-box-shadow:0 0 5px 5px #0099e0;-moz-box-shadow:0 0 5px 5px #0099e0;box-shadow:0 0 5px 5px #0099e0}
|
dist/admin-settings.js
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var WPRecipeMaker=WPRecipeMaker||{};WPRecipeMaker["admin-settings"]=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=225)}([function(e,t,n){"use strict";e.exports=n(227)},function(e,t,n){e.exports=n(238)()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var i=r(n(291)),o=r(n(367)),a=r(n(393)),l=r(n(394)),s=r(n(395)),u=r(n(396));t.hover=l.default,t.handleHover=l.default,t.handleActive=s.default,t.loop=u.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var l=(0,i.default)(n),s=(0,o.default)(e,l);return(0,a.default)(s)};t.default=c},,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(399);Object.defineProperty(t,"Alpha",{enumerable:!0,get:function(){return r(i).default}});var o=n(146);Object.defineProperty(t,"Checkboard",{enumerable:!0,get:function(){return r(o).default}});var a=n(402);Object.defineProperty(t,"EditableInput",{enumerable:!0,get:function(){return r(a).default}});var l=n(403);Object.defineProperty(t,"Hue",{enumerable:!0,get:function(){return r(l).default}});var s=n(405);Object.defineProperty(t,"Raised",{enumerable:!0,get:function(){return r(s).default}});var u=n(406);Object.defineProperty(t,"Saturation",{enumerable:!0,get:function(){return r(u).default}});var c=n(149);Object.defineProperty(t,"ColorWrap",{enumerable:!0,get:function(){return r(c).default}});var f=n(433);Object.defineProperty(t,"Swatch",{enumerable:!0,get:function(){return r(f).default}})},,function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.red=void 0;var i=r(n(413)),o=r(n(432));t.default={simpleCheckForValidColor:function(e){var t=0,n=0;return(0,i.default)(["r","g","b","a","h","s","l","v"],function(r){e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"!==r&&"l"!==r||/^\d+%$/.test(e[r])&&(n+=1))}),t===n&&e},toState:function(e,t){var n=e.hex?(0,o.default)(e.hex):(0,o.default)(e),r=n.toHsl(),i=n.toHsv(),a=n.toRgb(),l=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===l&&0===a.a?"transparent":"#"+l,rgb:a,hsv:i,oldHue:e.h||t||r.h,source:e.source}},isValidHex:function(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&(0,o.default)(e).isValid()},getContrastingColor:function(e){if(!e)return"#fff";var t=this.toState(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"}},t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}}},function(e,t,n){var r=n(120),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){var r=n(148),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(173),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(226)},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(27),i=n(293),o=n(294),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(319),i=n(322);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(157),i=n(438),o=n(503),a=n(10);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(451),i=n(454);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(561),i=n(566);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={pushHash:function(e){if(e=e?0===e.indexOf("#")?e:"#"+e:"",history.pushState){var t=window.location;history.pushState(null,null,e||t.pathname+t.search)}else location.hash=e},getHash:function(){return window.location.hash.replace(/^#/,"")},filterElementInContainer:function(e){return function(t){return e.contains?e!=t&&e.contains(t):!!(16&e.compareDocumentPosition(t))}},scrollOffset:function(e,t){return e===document?t.getBoundingClientRect().top+(window.scrollY||window.pageYOffset):"relative"===getComputedStyle(e).position?t.offsetTop:t.getBoundingClientRect().top+e.scrollTop}}},function(e,t,n){var r=n(8).Symbol;e.exports=r},function(e,t,n){var r=n(122),i=n(301),o=n(39);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(48),i=n(410),o=n(411),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(56),i=n(562),o=n(563),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,o,a,l,s){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,a,l,s],f=0;(u=new Error(t.replace(/%s/g,function(){return c[f++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";/*
|
2 |
+
object-assign
|
3 |
+
(c) Sindre Sorhus
|
4 |
+
@license MIT
|
5 |
+
*/
|
6 |
+
var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in n=Object(arguments[s]))i.call(n,u)&&(l[u]=n[u]);if(r){a=r(n);for(var c=0;c<a.length;c++)o.call(n,a[c])&&(l[a[c]]=n[a[c]])}}return l}},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Helpers=t.ScrollElement=t.ScrollLink=t.animateScroll=t.scrollSpy=t.Events=t.scroller=t.Element=t.Button=t.Link=void 0;var i=r(n(240)),o=r(n(244)),a=r(n(245)),l=r(n(38)),s=r(n(71)),u=r(n(69)),c=r(n(111)),f=r(n(68)),p=r(n(113)),d=r(n(246));t.Link=i.default,t.Button=o.default,t.Element=a.default,t.scroller=l.default,t.Events=s.default,t.scrollSpy=u.default,t.animateScroll=c.default,t.ScrollLink=f.default,t.ScrollElement=p.default,t.Helpers=d.default,t.default={Link:i.default,Button:o.default,Element:a.default,scroller:l.default,Events:s.default,scrollSpy:u.default,animateScroll:c.default,ScrollLink:f.default,ScrollElement:p.default,Helpers:d.default}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=r(n(26)),a=r(n(111)),l=r(n(71)),s={},u=void 0;t.default={unmount:function(){s={}},register:function(e,t){s[e]=t},unregister:function(e){delete s[e]},get:function(e){return s[e]||document.getElementById(e)||document.getElementsByName(e)[0]||document.getElementsByClassName(e)[0]},setActiveLink:function(e){return u=e},getActiveLink:function(){return u},scrollTo:function(e,t){var n=this.get(e);if(n){var r=(t=i({},t,{absolute:!1})).containerId,s=t.container,u=void 0;u=r?document.getElementById(r):s&&s.nodeType?s:document,l.default.registered.begin&&l.default.registered.begin(e,n),t.absolute=!0;var c=o.default.scrollOffset(u,n)+(t.offset||0);t.smooth?a.default.animateTopScroll(c,t,e,n):(u===document?window.scrollTo(0,c):u.scrollTop=c,l.default.registered.end&&l.default.registered.end(e,n))}else console.warn("target Element not found")}}},function(e,t,n){var r=n(127),i=n(79);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(309),o=n(310),a=n(311),l=n(312),s=n(313);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=l,r.prototype.set=s,e.exports=r},function(e,t,n){var r=n(85);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(18)(Object,"create");e.exports=r},function(e,t,n){var r=n(331);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(346),i=n(86),o=n(347),a=n(348),l=n(349),s=n(17),u=n(130),c=u(r),f=u(i),p=u(o),d=u(a),h=u(l),g=s;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=g(new i)||o&&"[object Promise]"!=g(o.resolve())||a&&"[object Set]"!=g(new a)||l&&"[object WeakMap]"!=g(new l))&&(g=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=g},function(e,t,n){var r=n(90);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(142),i=n(143);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var l=-1,s=t.length;++l<s;){var u=t[l],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?i(n,u,c):r(n,u,c)}return n}},function(e,t,n){var r=n(29),i=n(30);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(9).Symbol;e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(441),o=n(442),a=n(443),l=n(444),s=n(445);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=l,r.prototype.set=s,e.exports=r},function(e,t,n){var r=n(159);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(22)(Object,"create");e.exports=r},function(e,t,n){var r=n(463);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(47);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(551),o=n(552),a=n(553),l=n(554),s=n(555);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=l,r.prototype.set=s,e.exports=r},function(e,t,n){var r=n(101);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(12).Symbol;e.exports=r},function(e,t,n){var r=n(23)(Object,"create");e.exports=r},function(e,t,n){var r=n(575);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(595),i=n(602),o=n(60);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(172),i=n(106);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(31),i=n(33);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(61);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},,,,,function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=r(n(0)),l=(r(n(15)),r(n(26)),r(n(69))),s=r(n(38)),u=r(n(1)),c=r(n(112)),f={to:u.default.string.isRequired,containerId:u.default.string,container:u.default.object,activeClass:u.default.string,spy:u.default.bool,smooth:u.default.oneOfType([u.default.bool,u.default.string]),offset:u.default.number,delay:u.default.number,isDynamic:u.default.bool,onClick:u.default.func,duration:u.default.oneOfType([u.default.number,u.default.func]),absolute:u.default.bool,onSetActive:u.default.func,onSetInactive:u.default.func,ignoreCancelEvents:u.default.bool,hashSpy:u.default.bool};t.default=function(e,t){var n=t||s.default,r=function(t){function r(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return u.call(t),t.state={active:!1},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,a.default.PureComponent),o(r,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e&&!t?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();l.default.isMounted(e)||l.default.mount(e),this.props.hashSpy&&(c.default.isMounted()||c.default.mount(n),c.default.mapContainer(this.props.to,e)),l.default.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){l.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=i({},this.props);for(var r in f)n.hasOwnProperty(r)&&delete n[r];return n.className=t,n.onClick=this.handleClick,a.default.createElement(e,n)}}]),r}(),u=function(){var e=this;this.scrollTo=function(t,r){n.scrollTo(t,i({},e.state,r))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.spyHandler=function(t){var r=e.getScrollSpyContainer();if(!c.default.isMounted()||c.default.isInitialized()){var i=e.props.to,o=null,a=0,l=0,s=0;if(r.getBoundingClientRect&&(s=r.getBoundingClientRect().top),!o||e.props.isDynamic){if(!(o=n.get(i)))return;var u=o.getBoundingClientRect();l=(a=u.top-s+t)+u.height}var f=t-e.props.offset,p=f>=Math.floor(a)&&f<Math.floor(l),d=f<Math.floor(a)||f>=Math.floor(l),h=n.getActiveLink();d&&(i===h&&n.setActiveLink(void 0),e.props.hashSpy&&c.default.getHash()===i&&c.default.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive(i,o))),!p||h===i&&!1!==e.state.active||(n.setActiveLink(i),e.props.hashSpy&&c.default.changeHash(i),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(i,o)))}}};return r.propTypes=f,r.defaultProps={offset:0},r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(241),o=(r=i)&&r.__esModule?r:{default:r},a=n(70),l={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(e){if(e){var t=function(e){return(0,o.default)(e,66)}(function(t){l.scrollHandler(e)});l.scrollSpyContainers.push(e),(0,a.addPassiveEventListener)(e,"scroll",t)}},isMounted:function(e){return-1!==l.scrollSpyContainers.indexOf(e)},currentPositionY:function(e){if(e===document){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return t?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop}return e.scrollTop},scrollHandler:function(e){(l.scrollSpyContainers[l.scrollSpyContainers.indexOf(e)].spyCallbacks||[]).forEach(function(t){return t(l.currentPositionY(e))})},addStateHandler:function(e){l.spySetState.push(e)},addSpyHandler:function(e,t){var n=l.scrollSpyContainers[l.scrollSpyContainers.indexOf(t)];n.spyCallbacks||(n.spyCallbacks=[]),n.spyCallbacks.push(e),e(l.currentPositionY(t))},updateStates:function(){l.spySetState.forEach(function(e){return e()})},unmount:function(e,t){l.scrollSpyContainers.forEach(function(e){return e.spyCallbacks&&e.spyCallbacks.length&&e.spyCallbacks.splice(e.spyCallbacks.indexOf(t),1)}),l.spySetState&&l.spySetState.length&&l.spySetState.splice(l.spySetState.indexOf(e),1),document.removeEventListener("scroll",l.scrollHandler)},update:function(){return l.scrollSpyContainers.forEach(function(e){return l.scrollHandler(e)})}};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPassiveEventListener=function(e,t,n){var r=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}();e.addEventListener(t,n,!!r&&{passive:!0})},t.removePassiveEventListener=function(e,t,n){e.removeEventListener(t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={registered:{},scrollEvent:{register:function(e,t){r.registered[e]=t},remove:function(e){r.registered[e]=null}}};t.default=r},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.a={dependencyMet:function(e,t){if(e.hasOwnProperty("dependency")){var n=e.dependency;Array.isArray(n)||(n=[n]);var r=!0,i=!1,o=void 0;try{for(var a,l=n[Symbol.iterator]();!(r=(a=l.next()).done);r=!0){var s=a.value,u=t[s.id];if(s.hasOwnProperty("type")&&"inverse"==s.type){if(u==s.value)return!1}else if(u!=s.value)return!1}}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}}return!0},beforeSettingDisplay:function(e,t){var n=t[e];if("import_units"===e)n=n.join(wprm_temp_admin.eol);else if("unit_conversion_units"===e){var i={};for(var o in n)i[o]=r({},n[o],{aliases:n[o].aliases.join(";")});n=i}return n},beforeSettingSave:function(e,t,n){if("import_units"===t)e=e.split(wprm_temp_admin.eol);else if("unit_conversion_units"===t){var i={};for(var o in e)i[o]=r({},e[o],{aliases:e[o].aliases.split(";")});e=i}return e}}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(1),a=n.n(o),l=function(e){if(!e.object.hasOwnProperty("required"))return null;if(wprm_temp_admin.addons.hasOwnProperty(e.object.required)&&wprm_temp_admin.addons[e.object.required])return null;var t="Premium Only";return"premium"!==e.object.required&&(t=e.object.required[0].toUpperCase()+e.object.required.substring(1)+" Bundle Only"),i.a.createElement("a",{href:"https://bootstrapped.ventures/wp-recipe-maker/get-the-plugin/",target:"_blank",className:"wprm-setting-required"},t)};l.propTypes={object:a.a.object.isRequired},t.a=l},function(e,t,n){var r;/*!
|
7 |
+
Copyright (c) 2017 Jed Watson.
|
8 |
+
Licensed under the MIT License (MIT), see
|
9 |
+
http://jedwatson.github.io/classnames
|
10 |
+
*/
|
11 |
+
/*!
|
12 |
+
Copyright (c) 2017 Jed Watson.
|
13 |
+
Licensed under the MIT License (MIT), see
|
14 |
+
http://jedwatson.github.io/classnames
|
15 |
+
*/
|
16 |
+
!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=n.apply(null,r);a&&e.push(a)}else if("object"===o)for(var l in r)i.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}var i={}.hasOwnProperty;void 0!==e&&e.exports?(n.default=n,e.exports=n):void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";var r=n(0),i=n(283);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,o)},function(e,t,n){var r=n(121),i=n(303);e.exports=function(e,t){return e&&r(e,i(t))}},function(e,t,n){(function(e){var r=n(8),i=n(299),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=a&&a.exports===o?r.Buffer:void 0,s=(l?l.isBuffer:void 0)||i;e.exports=s}).call(t,n(14)(e))},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(120),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l}).call(t,n(14)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(126)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){function r(e){var t=this.__data__=new i(e);this.size=t.size}var i=n(40),o=n(314),a=n(315),l=n(316),s=n(317),u=n(318);r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=l,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(18)(n(8),"Map");e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(323),o=n(330),a=n(332),l=n(333),s=n(334);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=l,r.prototype.set=s,e.exports=r},function(e,t,n){var r=n(345),i=n(137),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;e.exports=l},function(e,t,n){var r=n(6),i=n(90),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(17),i=n(11);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(133);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(419),i=n(426),o=n(94);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(155),i=n(93);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(22)(n(9),"Map");e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(455),o=n(462),a=n(464),l=n(465),s=n(466);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=l,r.prototype.set=s,e.exports=r},function(e,t,n){var r=n(10),i=n(47),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){"use strict";var r=n(536),i=n.n(r),o=n(75),a=n.n(o),l=n(1),s=n.n(l),u=n(0),c=n.n(u),f=n(15),p=(n.n(f),function(e){var t=e.onMouseDown;return c.a.createElement("span",{className:"Select-arrow",onMouseDown:t})});p.propTypes={onMouseDown:s.a.func};var d=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],h=function(e){for(var t=0;t<d.length;t++)e=e.replace(d[t].letters,d[t].base);return e},g=function(e){return void 0!==e&&null!==e&&""!==e},v=function(e,t,n,r){return r.ignoreAccents&&(t=h(t)),r.ignoreCase&&(t=t.toLowerCase()),r.trimFilter&&(t=t.replace(/^\s+|\s+$/g,"")),n&&(n=n.map(function(e){return e[r.valueKey]})),e.filter(function(e){if(n&&n.indexOf(e[r.valueKey])>-1)return!1;if(r.filterOption)return r.filterOption.call(void 0,e,t);if(!t)return!0;var i=e[r.valueKey],o=e[r.labelKey],a=g(i),l=g(o);if(!a&&!l)return!1;var s=a?String(i):null,u=l?String(o):null;return r.ignoreAccents&&(s&&"label"!==r.matchProp&&(s=h(s)),u&&"value"!==r.matchProp&&(u=h(u))),r.ignoreCase&&(s&&"label"!==r.matchProp&&(s=s.toLowerCase()),u&&"value"!==r.matchProp&&(u=u.toLowerCase())),"start"===r.matchPos?s&&"label"!==r.matchProp&&s.substr(0,t.length)===t||u&&"value"!==r.matchProp&&u.substr(0,t.length)===t:s&&"label"!==r.matchProp&&s.indexOf(t)>=0||u&&"value"!==r.matchProp&&u.indexOf(t)>=0})},m=function(e){var t=e.focusedOption,n=e.focusOption,r=e.inputValue,i=e.instancePrefix,o=e.onFocus,l=e.onOptionRef,s=e.onSelect,u=e.optionClassName,f=e.optionComponent,p=e.optionRenderer,d=e.options,h=e.removeValue,g=e.selectValue,v=e.valueArray,m=e.valueKey,y=f;return d.map(function(e,f){var d=v&&v.some(function(t){return t[m]===e[m]}),b=e===t,x=a()(u,{"Select-option":!0,"is-selected":d,"is-focused":b,"is-disabled":e.disabled});return c.a.createElement(y,{className:x,focusOption:n,inputValue:r,instancePrefix:i,isDisabled:e.disabled,isFocused:b,isSelected:d,key:"option-"+f+"-"+e[m],onFocus:o,onSelect:s,option:e,optionIndex:f,ref:function(e){l(e,b)},removeValue:h,selectValue:g},p(e,f,r))})};m.propTypes={focusOption:s.a.func,focusedOption:s.a.object,inputValue:s.a.string,instancePrefix:s.a.string,onFocus:s.a.func,onOptionRef:s.a.func,onSelect:s.a.func,optionClassName:s.a.string,optionComponent:s.a.func,optionRenderer:s.a.func,options:s.a.array,removeValue:s.a.func,selectValue:s.a.func,valueArray:s.a.array,valueKey:s.a.string};var y=function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x=(function(){function e(e){this.value=e}function t(t){function n(i,o){try{var a=t[i](o),l=a.value;l instanceof e?Promise.resolve(l.value).then(function(e){n("next",e)},function(e){n("throw",e)}):r(a.done?"return":"normal",a.value)}catch(e){r("throw",e)}}function r(e,t){switch(e){case"return":i.resolve({value:t,done:!0});break;case"throw":i.reject(t);break;default:i.resolve({value:t,done:!1})}(i=i.next)?n(i.key,i.arg):o=null}var i,o;this._invoke=function(e,t){return new Promise(function(r,a){var l={key:e,arg:t,resolve:r,reject:a,next:null};o?o=o.next=l:(i=o=l,n(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),C=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},S=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},_=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},O=function(e){function t(e){x(this,t);var n=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return E(t,e),w(t,[{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,r=e.optionIndex,i=a()(this.props.className,t.className);return t.disabled?c.a.createElement("div",{className:i,onMouseDown:y,onClick:y},this.props.children):c.a.createElement("div",{className:i,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+r,title:t.title},this.props.children)}}]),t}(c.a.Component);O.propTypes={children:s.a.node,className:s.a.string,instancePrefix:s.a.string.isRequired,isDisabled:s.a.bool,isFocused:s.a.bool,isSelected:s.a.bool,onFocus:s.a.func,onSelect:s.a.func,onUnfocus:s.a.func,option:s.a.object.isRequired,optionIndex:s.a.number};var T=function(e){function t(e){x(this,t);var n=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return E(t,e),w(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button){if(this.props.onClick)return e.stopPropagation(),void this.props.onClick(this.props.value,e);this.props.value.href&&e.stopPropagation()}}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return c.a.createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){return this.props.onClick||this.props.value.href?c.a.createElement("a",{className:"Select-value-label",href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):c.a.createElement("span",{className:"Select-value-label",role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return c.a.createElement("div",{className:a()("Select-value",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(c.a.Component);T.propTypes={children:s.a.node,disabled:s.a.bool,id:s.a.string,onClick:s.a.func,onRemove:s.a.func,value:s.a.object.isRequired};/*!
|
17 |
+
Copyright (c) 2018 Jed Watson.
|
18 |
+
Licensed under the MIT License (MIT), see
|
19 |
+
http://jedwatson.github.io/react-select
|
20 |
+
*/
|
21 |
+
var M=function(e){return"string"==typeof e?e:null!==e&&JSON.stringify(e)||""},N=s.a.oneOfType([s.a.string,s.a.node]),j=s.a.oneOfType([s.a.string,s.a.number]),I=1,P=function(e,t){var n=void 0===e?"undefined":b(e);if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var r=t.options,i=t.valueKey;if(r)for(var o=0;o<r.length;o++)if(String(r[o][i])===String(e))return r[o]},A=function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},L=function(e){function t(e){x(this,t);var n=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return["clearValue","focusOption","getOptionLabel","handleInputBlur","handleInputChange","handleInputFocus","handleInputValueChange","handleKeyDown","handleMenuScroll","handleMouseDown","handleMouseDownOnArrow","handleMouseDownOnMenu","handleTouchEnd","handleTouchEndClearValue","handleTouchMove","handleTouchOutside","handleTouchStart","handleValueClick","onOptionRef","removeValue","selectValue"].forEach(function(e){return n[e]=n[e].bind(n)}),n.state={inputValue:"",isFocused:!1,isOpen:!1,isPseudoFocused:!1,required:!1},n}return E(t,e),w(t,[{key:"componentWillMount",value:function(){this._instancePrefix="react-select-"+(this.props.instanceId||++I)+"-";var e=this.getValueArray(this.props.value);this.props.required&&this.setState({required:A(e[0],this.props.multi)})}},{key:"componentDidMount",value:function(){void 0!==this.props.autofocus&&"undefined"!=typeof console&&console.warn("Warning: The autofocus prop has changed to autoFocus, support will be removed after react-select@1.0"),(this.props.autoFocus||this.props.autofocus)&&this.focus()}},{key:"componentWillReceiveProps",value:function(e){var t=this.getValueArray(e.value,e);e.required?this.setState({required:A(t[0],e.multi)}):this.props.required&&this.setState({required:!1}),this.state.inputValue&&this.props.value!==e.value&&e.onSelectResetsInput&&this.setState({inputValue:this.handleInputValueChange("")})}},{key:"componentDidUpdate",value:function(e,t){if(this.menu&&this.focused&&this.state.isOpen&&!this.hasScrolledToOption){var n=Object(f.findDOMNode)(this.focused),r=Object(f.findDOMNode)(this.menu),i=r.scrollTop,o=i+r.offsetHeight,a=n.offsetTop,l=a+n.offsetHeight;(i>a||o<l)&&(r.scrollTop=n.offsetTop),this.hasScrolledToOption=!0}else this.state.isOpen||(this.hasScrolledToOption=!1);if(this._scrollToFocusedOptionOnUpdate&&this.focused&&this.menu){this._scrollToFocusedOptionOnUpdate=!1;var s=Object(f.findDOMNode)(this.focused),u=Object(f.findDOMNode)(this.menu),c=s.getBoundingClientRect(),p=u.getBoundingClientRect();c.bottom>p.bottom?u.scrollTop=s.offsetTop+s.clientHeight-u.offsetHeight:c.top<p.top&&(u.scrollTop=s.offsetTop)}if(this.props.scrollMenuIntoView&&this.menuContainer){var d=this.menuContainer.getBoundingClientRect();window.innerHeight<d.bottom+this.props.menuBuffer&&window.scrollBy(0,d.bottom+this.props.menuBuffer-window.innerHeight)}if(e.disabled!==this.props.disabled&&(this.setState({isFocused:!1}),this.closeMenu()),t.isOpen!==this.state.isOpen){this.toggleTouchOutsideEvent(this.state.isOpen);var h=this.state.isOpen?this.props.onOpen:this.props.onClose;h&&h()}}},{key:"componentWillUnmount",value:function(){this.toggleTouchOutsideEvent(!1)}},{key:"toggleTouchOutsideEvent",value:function(e){e?!document.addEventListener&&document.attachEvent?document.attachEvent("ontouchstart",this.handleTouchOutside):document.addEventListener("touchstart",this.handleTouchOutside):!document.removeEventListener&&document.detachEvent?document.detachEvent("ontouchstart",this.handleTouchOutside):document.removeEventListener("touchstart",this.handleTouchOutside)}},{key:"handleTouchOutside",value:function(e){this.wrapper&&!this.wrapper.contains(e.target)&&this.closeMenu()}},{key:"focus",value:function(){this.input&&this.input.focus()}},{key:"blurInput",value:function(){this.input&&this.input.blur()}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchEndClearValue",value:function(e){this.dragging||this.clearValue(e)}},{key:"handleMouseDown",value:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button))if("INPUT"!==e.target.tagName){if(e.preventDefault(),!this.props.searchable)return this.focus(),this.setState({isOpen:!this.state.isOpen});if(this.state.isFocused){this.focus();var t=this.input,n=!0;"function"==typeof t.getInput&&(t=t.getInput()),t.value="",this._focusAfterClear&&(n=!1,this._focusAfterClear=!1),this.setState({isOpen:n,isPseudoFocused:!1,focusedOption:null})}else this._openAfterFocus=this.props.openOnClick,this.focus(),this.setState({focusedOption:null})}else this.state.isFocused?this.state.isOpen||this.setState({isOpen:!0,isPseudoFocused:!1}):(this._openAfterFocus=this.props.openOnClick,this.focus())}},{key:"handleMouseDownOnArrow",value:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(this.state.isOpen?(e.stopPropagation(),e.preventDefault(),this.closeMenu()):this.setState({isOpen:!0}))}},{key:"handleMouseDownOnMenu",value:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this._openAfterFocus=!0,this.focus())}},{key:"closeMenu",value:function(){this.props.onCloseResetsInput?this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}):this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}),this.hasScrolledToOption=!1}},{key:"handleInputFocus",value:function(e){if(!this.props.disabled){var t=this.state.isOpen||this._openAfterFocus||this.props.openOnFocus;t=!this._focusAfterClear&&t,this.props.onFocus&&this.props.onFocus(e),this.setState({isFocused:!0,isOpen:!!t}),this._focusAfterClear=!1,this._openAfterFocus=!1}}},{key:"handleInputBlur",value:function(e){if(!this.menu||this.menu!==document.activeElement&&!this.menu.contains(document.activeElement)){this.props.onBlur&&this.props.onBlur(e);var t={isFocused:!1,isOpen:!1,isPseudoFocused:!1};this.props.onBlurResetsInput&&(t.inputValue=this.handleInputValueChange("")),this.setState(t)}else this.focus()}},{key:"handleInputChange",value:function(e){var t=e.target.value;this.state.inputValue!==e.target.value&&(t=this.handleInputValueChange(t)),this.setState({inputValue:t,isOpen:!0,isPseudoFocused:!1})}},{key:"setInputValue",value:function(e){if(this.props.onInputChange){var t=this.props.onInputChange(e);null!=t&&"object"!==(void 0===t?"undefined":b(t))&&(e=""+t)}this.setState({inputValue:e})}},{key:"handleInputValueChange",value:function(e){if(this.props.onInputChange){var t=this.props.onInputChange(e);null!=t&&"object"!==(void 0===t?"undefined":b(t))&&(e=""+t)}return e}},{key:"handleKeyDown",value:function(e){if(!this.props.disabled){if("function"==typeof this.props.onInputKeyDown&&(this.props.onInputKeyDown(e),e.defaultPrevented))return;switch(e.keyCode){case 8:!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue());break;case 9:if(e.shiftKey||!this.state.isOpen||!this.props.tabSelectsValue)break;e.preventDefault(),this.selectFocusedOption();break;case 13:e.preventDefault(),e.stopPropagation(),this.state.isOpen?this.selectFocusedOption():this.focusNextOption();break;case 27:e.preventDefault(),this.state.isOpen?(this.closeMenu(),e.stopPropagation()):this.props.clearable&&this.props.escapeClearsValue&&(this.clearValue(e),e.stopPropagation());break;case 32:if(this.props.searchable)break;if(e.preventDefault(),!this.state.isOpen){this.focusNextOption();break}e.stopPropagation(),this.selectFocusedOption();break;case 38:e.preventDefault(),this.focusPreviousOption();break;case 40:e.preventDefault(),this.focusNextOption();break;case 33:e.preventDefault(),this.focusPageUpOption();break;case 34:e.preventDefault(),this.focusPageDownOption();break;case 35:if(e.shiftKey)break;e.preventDefault(),this.focusEndOption();break;case 36:if(e.shiftKey)break;e.preventDefault(),this.focusStartOption();break;case 46:!this.state.inputValue&&this.props.deleteRemoves&&(e.preventDefault(),this.popValue())}}}},{key:"handleValueClick",value:function(e,t){this.props.onValueClick&&this.props.onValueClick(e,t)}},{key:"handleMenuScroll",value:function(e){if(this.props.onMenuScrollToBottom){var t=e.target;t.scrollHeight>t.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n="object"===(void 0===t?"undefined":b(t))?t:this.props;if(n.multi){if("string"==typeof e&&(e=e.split(n.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map(function(e){return P(e,n)}).filter(function(e){return e})}var r=P(e,n);return r?[r]:[]}},{key:"setValue",value:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.required){var n=A(e,this.props.multi);this.setState({required:n})}this.props.simpleValue&&e&&(e=this.props.multi?e.map(function(e){return e[t.props.valueKey]}).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange&&this.props.onChange(e)}},{key:"selectValue",value:function(e){var t=this;this.props.closeOnSelect&&(this.hasScrolledToOption=!1);var n=this.props.onSelectResetsInput?"":this.state.inputValue;this.props.multi?this.setState({focusedIndex:null,inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect},function(){t.getValueArray(t.props.value).some(function(n){return n[t.props.valueKey]===e[t.props.valueKey]})?t.removeValue(e):t.addValue(e)}):this.setState({inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect,isPseudoFocused:this.state.isFocused},function(){t.setValue(e)})}},{key:"addValue",value:function(e){var t=this.getValueArray(this.props.value),n=this._visibleOptions.filter(function(e){return!e.disabled}),r=n.indexOf(e);this.setValue(t.concat(e)),n.length-1===r?this.focusOption(n[r-1]):n.length>r&&this.focusOption(n[r+1])}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter(function(n){return n[t.props.valueKey]!==e[t.props.valueKey]})),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1},this.focus),this._focusAfterClear=!0)}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map(function(e,t){return{option:e,index:t}}).filter(function(e){return!e.option.disabled});if(this._scrollToFocusedOptionOnUpdate=!0,this.state.isOpen){if(t.length){for(var n=-1,r=0;r<t.length;r++)if(this._focusedOption===t[r].option){n=r;break}if("next"===e&&-1!==n)n=(n+1)%t.length;else if("previous"===e)n>0?n-=1:n=t.length-1;else if("start"===e)n=0;else if("end"===e)n=t.length-1;else if("page_up"===e){var i=n-this.props.pageSize;n=i<0?0:i}else if("page_down"===e){var o=n+this.props.pageSize;n=o>t.length-1?t.length-1:o}-1===n&&(n=0),this.setState({focusedIndex:t[n].index,focusedOption:t[n].option})}}else{var a={focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null),isOpen:!0};this.props.onSelectResetsInput&&(a.inputValue=""),this.setState(a)}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return c.a.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},c.a.createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,i=this.props.valueComponent;if(!e.length)return function(e,t,n){var r=e.inputValue,i=e.isPseudoFocused,o=e.isFocused,a=t.onSelectResetsInput;return!r||!a&&!n&&!i&&!o}(this.state,this.props,t)?c.a.createElement("div",{className:"Select-placeholder"},this.props.placeholder):null;var o=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map(function(e,t){return c.a.createElement(i,{disabled:n.props.disabled||!1===e.clearableValue,id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,key:"value-"+t+"-"+e[n.props.valueKey],onClick:o,onRemove:n.removeValue,placeholder:n.props.placeholder,value:e},r(e,t),c.a.createElement("span",{className:"Select-aria-only"}," "))}):function(e,t){var n=e.inputValue,r=e.isPseudoFocused,i=e.isFocused,o=t.onSelectResetsInput;return!n||!o&&!(!i&&r||i&&!r)}(this.state,this.props)?(t&&(o=null),c.a.createElement(i,{disabled:this.props.disabled,id:this._instancePrefix+"-value-item",instancePrefix:this._instancePrefix,onClick:o,placeholder:this.props.placeholder,value:e[0]},r(e[0]))):void 0}},{key:"renderInput",value:function(e,t){var n,r=this,o=a()("Select-input",this.props.inputProps.className),l=this.state.isOpen,s=a()((C(n={},this._instancePrefix+"-list",l),C(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),u=this.state.inputValue;!u||this.props.onSelectResetsInput||this.state.isFocused||(u="");var f=k({},this.props.inputProps,{"aria-activedescendant":l?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-expanded":""+l,"aria-haspopup":""+l,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-owns":s,className:o,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",required:this.state.required,tabIndex:this.props.tabIndex,value:u});if(this.props.inputRenderer)return this.props.inputRenderer(f);if(this.props.disabled||!this.props.searchable){var p=S(this.props.inputProps,[]),d=a()(C({},this._instancePrefix+"-list",l));return c.a.createElement("div",k({},p,{"aria-expanded":l,"aria-owns":d,"aria-activedescendant":l?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-disabled":""+this.props.disabled,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],className:o,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",style:{border:0,width:1,display:"inline-block"},tabIndex:this.props.tabIndex||0}))}return this.props.autosize?c.a.createElement(i.a,k({id:this.props.id},f,{minWidth:"5"})):c.a.createElement("div",{className:o,key:"input-wrap",style:{display:"inline-block"}},c.a.createElement("input",k({id:this.props.id},f)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.multi?this.props.clearAllText:this.props.clearValueText,n=this.props.clearRenderer();return c.a.createElement("span",{"aria-label":t,className:"Select-clear-zone",onMouseDown:this.clearValue,onTouchEnd:this.handleTouchEndClearValue,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,title:t},n)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?c.a.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterOptions",value:function(e){var t=this.state.inputValue,n=this.props.options||[];if(this.props.filterOptions){return("function"==typeof this.props.filterOptions?this.props.filterOptions:v)(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,trimFilter:this.props.trimFilter,valueKey:this.props.valueKey})}return n}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onOptionRef:this.onOptionRef,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,removeValue:this.removeValue,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey}):this.props.noResultsText?c.a.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map(function(e){return M(e[t.props.valueKey])}).join(this.props.delimiter);return c.a.createElement("input",{disabled:this.props.disabled,name:this.props.name,ref:function(e){return t.value=e},type:"hidden",value:n})}return e.map(function(e,n){return c.a.createElement("input",{disabled:t.props.disabled,key:"hidden."+n,name:t.props.name,ref:"value"+n,type:"hidden",value:M(e[t.props.valueKey])})})}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,r=this.state.focusedOption||e;if(r&&!r.disabled){var i=-1;if(t.some(function(e,t){var o=e[n]===r[n];return o&&(i=t),o}),-1!==i)return i}for(var o=0;o<t.length;o++)if(!t[o].disabled)return o;return null}},{key:"renderOuter",value:function(e,t,n){var r=this,i=this.renderMenu(e,t,n);return i?c.a.createElement("div",{ref:function(e){return r.menuContainer=e},className:"Select-menu-outer",style:this.props.menuContainerStyle},c.a.createElement("div",{className:"Select-menu",id:this._instancePrefix+"-list",onMouseDown:this.handleMouseDownOnMenu,onScroll:this.handleMenuScroll,ref:function(e){return r.menu=e},role:"listbox",style:this.props.menuStyle,tabIndex:-1},i)):null}},{key:"render",value:function(){var e=this,t=this.getValueArray(this.props.value),n=this._visibleOptions=this.filterOptions(this.props.multi&&this.props.removeSelected?t:null),r=this.state.isOpen;this.props.multi&&!n.length&&t.length&&!this.state.inputValue&&(r=!1);var i=this.getFocusableOptionIndex(t[0]),o=null;o=this._focusedOption=null!==i?n[i]:null;var l=a()("Select",this.props.className,{"has-value":t.length,"is-clearable":this.props.clearable,"is-disabled":this.props.disabled,"is-focused":this.state.isFocused,"is-loading":this.props.isLoading,"is-open":r,"is-pseudo-focused":this.state.isPseudoFocused,"is-searchable":this.props.searchable,"Select--multi":this.props.multi,"Select--rtl":this.props.rtl,"Select--single":!this.props.multi}),s=null;return this.props.multi&&!this.props.disabled&&t.length&&!this.state.inputValue&&this.state.isFocused&&this.props.backspaceRemoves&&(s=c.a.createElement("span",{id:this._instancePrefix+"-backspace-remove-message",className:"Select-aria-only","aria-live":"assertive"},this.props.backspaceToRemoveMessage.replace("{label}",t[t.length-1][this.props.labelKey]))),c.a.createElement("div",{ref:function(t){return e.wrapper=t},className:l,style:this.props.wrapperStyle},this.renderHiddenField(t),c.a.createElement("div",{ref:function(t){return e.control=t},className:"Select-control",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleTouchEnd,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,style:this.props.style},c.a.createElement("span",{className:"Select-multi-value-wrapper",id:this._instancePrefix+"-value"},this.renderValue(t,r),this.renderInput(t,i)),s,this.renderLoading(),this.renderClear(),this.renderArrow()),r?this.renderOuter(n,t,o):null)}}]),t}(c.a.Component);L.propTypes={"aria-describedby":s.a.string,"aria-label":s.a.string,"aria-labelledby":s.a.string,arrowRenderer:s.a.func,autoBlur:s.a.bool,autoFocus:s.a.bool,autofocus:s.a.bool,autosize:s.a.bool,backspaceRemoves:s.a.bool,backspaceToRemoveMessage:s.a.string,className:s.a.string,clearAllText:N,clearRenderer:s.a.func,clearValueText:N,clearable:s.a.bool,closeOnSelect:s.a.bool,deleteRemoves:s.a.bool,delimiter:s.a.string,disabled:s.a.bool,escapeClearsValue:s.a.bool,filterOption:s.a.func,filterOptions:s.a.any,id:s.a.string,ignoreAccents:s.a.bool,ignoreCase:s.a.bool,inputProps:s.a.object,inputRenderer:s.a.func,instanceId:s.a.string,isLoading:s.a.bool,joinValues:s.a.bool,labelKey:s.a.string,matchPos:s.a.string,matchProp:s.a.string,menuBuffer:s.a.number,menuContainerStyle:s.a.object,menuRenderer:s.a.func,menuStyle:s.a.object,multi:s.a.bool,name:s.a.string,noResultsText:N,onBlur:s.a.func,onBlurResetsInput:s.a.bool,onChange:s.a.func,onClose:s.a.func,onCloseResetsInput:s.a.bool,onFocus:s.a.func,onInputChange:s.a.func,onInputKeyDown:s.a.func,onMenuScrollToBottom:s.a.func,onOpen:s.a.func,onSelectResetsInput:s.a.bool,onValueClick:s.a.func,openOnClick:s.a.bool,openOnFocus:s.a.bool,optionClassName:s.a.string,optionComponent:s.a.func,optionRenderer:s.a.func,options:s.a.array,pageSize:s.a.number,placeholder:N,removeSelected:s.a.bool,required:s.a.bool,resetValue:s.a.any,rtl:s.a.bool,scrollMenuIntoView:s.a.bool,searchable:s.a.bool,simpleValue:s.a.bool,style:s.a.object,tabIndex:j,tabSelectsValue:s.a.bool,trimFilter:s.a.bool,value:s.a.any,valueComponent:s.a.func,valueKey:s.a.string,valueRenderer:s.a.func,wrapperStyle:s.a.object},L.defaultProps={arrowRenderer:p,autosize:!0,backspaceRemoves:!0,backspaceToRemoveMessage:"Press backspace to remove {label}",clearable:!0,clearAllText:"Clear all",clearRenderer:function(){return c.a.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}})},clearValueText:"Clear value",closeOnSelect:!0,deleteRemoves:!0,delimiter:",",disabled:!1,escapeClearsValue:!0,filterOptions:v,ignoreAccents:!0,ignoreCase:!0,inputProps:{},isLoading:!1,joinValues:!1,labelKey:"label",matchPos:"any",matchProp:"any",menuBuffer:0,menuRenderer:m,multi:!1,noResultsText:"No results found",onBlurResetsInput:!0,onCloseResetsInput:!0,onSelectResetsInput:!0,openOnClick:!0,optionComponent:O,pageSize:5,placeholder:"Select...",removeSelected:!0,required:!1,rtl:!1,scrollMenuIntoView:!0,searchable:!0,simpleValue:!1,tabSelectsValue:!0,trimFilter:!0,valueComponent:T,valueKey:"value"};var D={autoload:s.a.bool.isRequired,cache:s.a.any,children:s.a.func.isRequired,ignoreAccents:s.a.bool,ignoreCase:s.a.bool,loadOptions:s.a.func.isRequired,loadingPlaceholder:s.a.oneOfType([s.a.string,s.a.node]),multi:s.a.bool,noResultsText:s.a.oneOfType([s.a.string,s.a.node]),onChange:s.a.func,onInputChange:s.a.func,options:s.a.array.isRequired,placeholder:s.a.oneOfType([s.a.string,s.a.node]),searchPromptText:s.a.oneOfType([s.a.string,s.a.node]),value:s.a.any},R={},F={autoload:!0,cache:R,children:function(e){return c.a.createElement(L,e)},ignoreAccents:!0,ignoreCase:!0,loadingPlaceholder:"Loading...",options:[],searchPromptText:"Type to search"},B=function(e){function t(e,n){x(this,t);var r=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r._cache=e.cache===R?{}:e.cache,r.state={inputValue:"",isLoading:!1,options:e.options},r.onInputChange=r.onInputChange.bind(r),r}return E(t,e),w(t,[{key:"componentDidMount",value:function(){this.props.autoload&&this.loadOptions("")}},{key:"componentWillReceiveProps",value:function(e){e.options!==this.props.options&&this.setState({options:e.options})}},{key:"componentWillUnmount",value:function(){this._callback=null}},{key:"loadOptions",value:function(e){var t=this,n=this.props.loadOptions,r=this._cache;if(r&&Object.prototype.hasOwnProperty.call(r,e))return this._callback=null,void this.setState({isLoading:!1,options:r[e]});var i=function n(i,o){var a=o&&o.options||[];r&&(r[e]=a),n===t._callback&&(t._callback=null,t.setState({isLoading:!1,options:a}))};this._callback=i;var o=n(e,i);o&&o.then(function(e){return i(0,e)},function(e){return i()}),this._callback&&!this.state.isLoading&&this.setState({isLoading:!0})}},{key:"onInputChange",value:function(e){var t=this.props,n=t.ignoreAccents,r=t.ignoreCase,i=t.onInputChange,o=e;if(i){var a=i(o);null!=a&&"object"!==(void 0===a?"undefined":b(a))&&(o=""+a)}var l=o;return n&&(l=h(l)),r&&(l=l.toLowerCase()),this.setState({inputValue:o}),this.loadOptions(l),o}},{key:"noResultsText",value:function(){var e=this.props,t=e.loadingPlaceholder,n=e.noResultsText,r=e.searchPromptText,i=this.state,o=i.inputValue;return i.isLoading?t:o&&n?n:r}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.loadingPlaceholder,i=t.placeholder,o=this.state,a=o.isLoading,l=o.options,s={noResultsText:this.noResultsText(),placeholder:a?r:i,options:a&&r?[]:l,ref:function(t){return e.select=t}};return n(k({},this.props,s,{isLoading:a,onInputChange:this.onInputChange}))}}]),t}(u.Component);B.propTypes=D,B.defaultProps=F;var W=function(e){function t(e,n){x(this,t);var r=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.filterOptions=r.filterOptions.bind(r),r.menuRenderer=r.menuRenderer.bind(r),r.onInputKeyDown=r.onInputKeyDown.bind(r),r.onInputChange=r.onInputChange.bind(r),r.onOptionSelect=r.onOptionSelect.bind(r),r}return E(t,e),w(t,[{key:"createNewOption",value:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,r=e.onNewOptionClick,i=e.options,o=void 0===i?[]:i;if(t({label:this.inputValue})){var a=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey});this.isOptionUnique({option:a,options:o})&&(r?r(a):(o.unshift(a),this.select.selectValue(a)))}}},{key:"filterOptions",value:function(){var e=this.props,t=e.filterOptions,n=e.isValidNewOption,r=e.promptTextCreator,i=(arguments.length<=2?void 0:arguments[2])||[],o=t.apply(void 0,arguments)||[];if(n({label:this.inputValue})){var a=this.props.newOptionCreator,l=a({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey});if(this.isOptionUnique({option:l,options:i.concat(o)})){var s=r(this.inputValue);this._createPlaceholderOption=a({label:s,labelKey:this.labelKey,valueKey:this.valueKey}),o.unshift(this._createPlaceholderOption)}}return o}},{key:"isOptionUnique",value:function(e){var t=e.option,n=e.options,r=this.props.isOptionUnique;return n=n||this.props.options,r({labelKey:this.labelKey,option:t,options:n,valueKey:this.valueKey})}},{key:"menuRenderer",value:function(e){return(0,this.props.menuRenderer)(k({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))}},{key:"onInputChange",value:function(e){var t=this.props.onInputChange;return this.inputValue=e,t&&(this.inputValue=t(e)),this.inputValue}},{key:"onInputKeyDown",value:function(e){var t=this.props,n=t.shouldKeyDownEventCreateNewOption,r=t.onInputKeyDown,i=this.select.getFocusedOption();i&&i===this._createPlaceholderOption&&n({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):r&&r(e)}},{key:"onOptionSelect",value:function(e){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.ref,r=S(t,["ref"]),i=this.props.children;return i||(i=z),i(k({},r,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey),n&&n(t)}}))}}]),t}(c.a.Component),z=function(e){return c.a.createElement(L,e)},H=function(e){var t=e.option,n=e.options,r=e.labelKey,i=e.valueKey;return!n||!n.length||0===n.filter(function(e){return e[r]===t[r]||e[i]===t[i]}).length},U=function(e){return!!e.label},q=function(e){var t=e.label,n=e.labelKey,r={};return r[e.valueKey]=t,r[n]=t,r.className="Select-create-option-placeholder",r},V=function(e){return'Create option "'+e+'"'},G=function(e){switch(e.keyCode){case 9:case 13:case 188:return!0;default:return!1}};W.isOptionUnique=H,W.isValidNewOption=U,W.newOptionCreator=q,W.promptTextCreator=V,W.shouldKeyDownEventCreateNewOption=G,W.defaultProps={filterOptions:v,isOptionUnique:H,isValidNewOption:U,menuRenderer:m,newOptionCreator:q,promptTextCreator:V,shouldKeyDownEventCreateNewOption:G},W.propTypes={children:s.a.func,filterOptions:s.a.any,isOptionUnique:s.a.func,isValidNewOption:s.a.func,menuRenderer:s.a.any,newOptionCreator:s.a.func,onInputChange:s.a.func,onInputKeyDown:s.a.func,onNewOptionClick:s.a.func,options:s.a.array,promptTextCreator:s.a.func,ref:s.a.func,shouldKeyDownEventCreateNewOption:s.a.func};var Z=function(e){function t(){return x(this,t),_(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return E(t,e),w(t,[{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this;return c.a.createElement(B,this.props,function(t){var n=t.ref,r=S(t,["ref"]),i=n;return c.a.createElement(W,r,function(t){var n=t.ref,r=S(t,["ref"]),o=n;return e.props.children(k({},r,{ref:function(t){o(t),i(t),e.select=t}}))})})}}]),t}(c.a.Component);Z.propTypes={children:s.a.func.isRequired},Z.defaultProps={children:function(e){return c.a.createElement(L,e)}},L.Async=B,L.AsyncCreatable=Z,L.Creatable=W,L.Value=T,L.Option=O,t.a=L},function(e,t){},function(e,t,n){var r=n(549),i=n(612),o=n(623),a=n(13),l=n(624);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):l(e)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(23)(n(12),"Map");e.exports=r},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(567),o=n(574),a=n(576),l=n(577),s=n(578);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=l,r.prototype.set=s,e.exports=r},function(e,t,n){var r=n(579),i=n(33);e.exports=function e(t,n,o,a,l){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,l))}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){var r=n(13),i=n(61),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},,,,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=(r(n(26)),r(n(242))),a=r(n(243)),l=r(n(71)),s=function(e){return o.default[e.smooth]||o.default.defaultEasing},u=function(){if("undefined"!=typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(e,t,n){window.setTimeout(e,n||1e3/60,(new Date).getTime())},c=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollTop;var n=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return n?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop},f=function(e){e.data.containerElement=e?e.containerId?document.getElementById(e.containerId):e.container&&e.container.nodeType?e.container:document:null},p=function(e,t,n,r){if(t.data=t.data||{currentPositionY:0,startPositionY:0,targetPositionY:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,deltaTop:null,percent:null,delayTimeout:null},window.clearTimeout(t.data.delayTimeout),a.default.subscribe(function(){t.data.cancel=!0}),f(t),t.data.start=null,t.data.cancel=!1,t.data.startPositionY=c(t),t.data.targetPositionY=t.absolute?e:e+t.data.startPositionY,t.data.startPositionY!==t.data.targetPositionY){var i;t.data.deltaTop=Math.round(t.data.targetPositionY-t.data.startPositionY),t.data.duration=("function"==typeof(i=t.duration)?i:function(){return i})(t.data.deltaTop),t.data.duration=isNaN(parseFloat(t.data.duration))?1e3:parseFloat(t.data.duration),t.data.to=n,t.data.target=r;var o=s(t),p=function e(t,n,r){var i=n.data;if(n.ignoreCancelEvents||!i.cancel)if(i.deltaTop=Math.round(i.targetPositionY-i.startPositionY),null===i.start&&(i.start=r),i.progress=r-i.start,i.percent=i.progress>=i.duration?1:t(i.progress/i.duration),i.currentPositionY=i.startPositionY+Math.ceil(i.deltaTop*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?i.containerElement.scrollTop=i.currentPositionY:window.scrollTo(0,i.currentPositionY),i.percent<1){var o=e.bind(null,t,n);u.call(window,o)}else l.default.registered.end&&l.default.registered.end(i.to,i.target,i.currentPositionY);else l.default.registered.end&&l.default.registered.end(i.to,i.target,i.currentPositionY)}.bind(null,o,t);t&&t.delay>0?t.data.delayTimeout=window.setTimeout(function(){u.call(window,p)},t.delay):u.call(window,p)}else l.default.registered.end&&l.default.registered.end(t.data.to,t.data.target,t.data.currentPositionY)},d=function(e){return(e=i({},e)).data=e.data||{currentPositionY:0,startPositionY:0,targetPositionY:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,deltaTop:null,percent:null,delayTimeout:null},e.absolute=!0,e};t.default={animateTopScroll:p,getAnimationType:s,scrollToTop:function(e){p(0,d(e))},scrollToBottom:function(e){e=d(e),f(e),p(function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight);var n=document.body,r=document.documentElement;return Math.max(n.scrollHeight,n.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}(e),e)},scrollTo:function(e,t){p(e,d(t))},scrollMore:function(e,t){t=d(t),f(t),p(c(t)+e,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(70);var r,i=n(26),o=(r=i)&&r.__esModule?r:{default:r},a={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(e){this.scroller=e,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(e,t){this.containers[e]=t},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var e=this,t=this.getHash();t?window.setTimeout(function(){e.scrollTo(t,!0),e.initialized=!0},10):this.initialized=!0},scrollTo:function(e,t){var n=this.scroller;if(n.get(e)&&(t||e!==n.getActiveLink())){var r=this.containers[e]||document;n.scrollTo(e,{container:r})}},getHash:function(){return o.default.getHash()},changeHash:function(e){this.isInitialized()&&o.default.pushHash(e)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=r(n(0)),l=(r(n(15)),r(n(38))),s=r(n(1));t.default=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,a.default.Component),o(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentWillReceiveProps",value:function(e){this.props.name!==e.name&&this.registerElems(e.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;l.default.unregister(this.props.name)}},{key:"registerElems",value:function(e){l.default.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return a.default.createElement(e,i({},this.props,{parentBindings:this.childBindings}))}}]),n}();return t.propTypes={name:s.default.string,id:s.default.string},t}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(247),a=n(258),l=n.n(a),s=n(259),u=n.n(s),c=n(260),f=n.n(c),p=n(261),d=n.n(p),h=n(262),g=n.n(h),v=n(263),m=n.n(v),y=n(264),b=n.n(y),x=n(265),w=n.n(x),C=n(266),k=n.n(C),E=n(267),S=n.n(E),_=n(268),O=n.n(_),T=n(269),M=n.n(T),N=n(270),j=n.n(N),I=n(271),P=n.n(I),A=n(272),L=n.n(A),D=n(273),R=n.n(D),F=n(274),B=n.n(F),W=n(275),z=n.n(W),H={licenseKey:l.a,recipeTemplate:u.a,labels:f.a,recipePrint:d.a,nutritionLabel:g.a,customStyle:m.a,recipeSnippets:b.a,recipeRatings:w.a,adjustableServings:k.a,ingredientLinks:S.a,unitConversion:O.a,recipeSubmission:M.a,recipeDefaults:j.a,import:P.a,metadata:L.a,permissions:R.a,scrollToTop:z.a,settingsTools:B.a};t.a=function(e){var t=!!H.hasOwnProperty(e.type)&&H[e.type];return t?i.a.createElement(o.a,{src:t,className:"wprm-settings-icon"}):i.a.createElement("span",{className:"wprm-settings-noicon"}," ")}},function(e,t,n){"use strict";function r(e){this.request=e.request,this.xhr=e.xhr,this.headers=e.headers||{},this.status=e.status||0,this.text=e.text,this.body=e.body,this.contentType=e.contentType,this.isHttpError=e.status>=400}var i=n(116),o=n(117);r.prototype.header=i.prototype.header,r.fromRequest=function(e){return new r(o(e))},e.exports=r},function(e,t,n){"use strict";function r(e){var t="string"==typeof e?{url:e}:e||{};this.method=t.method?t.method.toUpperCase():"GET",this.url=t.url,this.headers=t.headers||{},this.body=t.body,this.timeout=t.timeout||0,this.errorOn404=null==t.errorOn404||t.errorOn404,this.onload=t.onload,this.onerror=t.onerror}r.prototype.abort=function(){if(!this.aborted)return this.aborted=!0,this.xhr.abort(),this},r.prototype.header=function(e,t){var n;for(n in this.headers)if(this.headers.hasOwnProperty(n)&&e.toLowerCase()===n.toLowerCase()){if(1===arguments.length)return this.headers[n];delete this.headers[n];break}if(null!=t)return this.headers[e]=t,t},e.exports=r},function(e,t,n){"use strict";var r=n(72);e.exports=function(e){var t=e.xhr,n={request:e,xhr:t};try{var i,o,a,l={};if(t.getAllResponseHeaders)for(i=t.getAllResponseHeaders().split("\n"),o=0;o<i.length;o++)(a=i[o].match(/\s*([^\s]+):\s+([^\s]+)/))&&(l[a[1]]=a[2]);n=r(n,{status:t.status,contentType:t.contentType||t.getResponseHeader&&t.getResponseHeader("Content-Type"),headers:l,text:t.responseText,body:t.response||t.responseText})}catch(e){}return n}},function(e,t,n){"use strict";e.exports=function(e){var t,n=!1;return function(){return n||(n=!0,t=e.apply(this,arguments)),t}}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(1),a=n.n(o),l=n(73),s=n(278),u=n(657),c=function(e){return i.a.createElement("div",{className:"wprm-settings-group-container"},e.outputSettings.map(function(t,n){return l.a.dependencyMet(t,e.settings)?i.a.createElement(u.a,{key:n},i.a.createElement(s.a,{settings:e.settings,setting:t,settingsChanged:e.settingsChanged,onSettingChange:e.onSettingChange,value:e.settings[t.id],key:n})):null}))};c.propTypes={settings:a.a.object.isRequired,outputSettings:a.a.array.isRequired,onSettingChange:a.a.func.isRequired,settingsChanged:a.a.bool.isRequired},t.a=c},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(16))},function(e,t,n){var r=n(295),i=n(28);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(297),i=n(123),o=n(6),a=n(78),l=n(124),s=n(125),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),f=!n&&!c&&a(e),p=!n&&!c&&!f&&s(e),d=n||c||f||p,h=d?r(e.length,String):[],g=h.length;for(var v in e)!t&&!u.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,g))||h.push(v);return h}},function(e,t,n){var r=n(298),i=n(11),o=Object.prototype,a=o.hasOwnProperty,l=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(300),i=n(80),o=n(81),a=o&&o.isTypedArray,l=a?i(a):r;e.exports=l},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(17),i=n(20);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(335),i=n(11);e.exports=function e(t,n,o,a,l){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,l))}},function(e,t,n){var r=n(336),i=n(339),o=n(340);e.exports=function(e,t,n,a,l,s){var u=1&n,c=e.length,f=t.length;if(c!=f&&!(u&&f>c))return!1;var p=s.get(e);if(p&&s.get(t))return p==t;var d=-1,h=!0,g=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++d<c;){var v=e[d],m=t[d];if(a)var y=u?a(m,v,d,t,e,s):a(v,m,d,e,t,s);if(void 0!==y){if(y)continue;h=!1;break}if(g){if(!i(t,function(e,t){if(!o(g,t)&&(v===e||l(v,e,n,a,s)))return g.push(t)})){h=!1;break}}else if(v!==m&&!l(v,m,n,a,s)){h=!1;break}}return s.delete(e),s.delete(t),h}},function(e,t,n){var r=n(8).Uint8Array;e.exports=r},function(e,t,n){var r=n(135),i=n(88),o=n(28);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(136),i=n(6);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(20);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(141),i=n(45);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(6),i=n(89),o=n(353),a=n(356);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(143),i=n(85),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(371);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(122),i=n(374),o=n(39);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t,n){var r=n(136),i=n(83),o=n(88),a=n(137),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboard=void 0;var i=r(n(0)),o=r(n(2)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(401)),l=t.Checkboard=function(e){var t=e.white,n=e.grey,r=e.size,l=e.renderers,s=e.borderRadius,u=e.boxShadow,c=(0,o.default)({default:{grid:{borderRadius:s,boxShadow:u,absolute:"0px 0px 0px 0px",background:"url("+a.get(t,n,r,l.canvas)+") center left"}}});return i.default.createElement("div",{style:c.grid})};l.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},t.default=l},function(e,t,n){var r=n(21),i=n(408),o=n(409),a=Math.max,l=Math.min;e.exports=function(e,t,n){function s(t){var n=d,r=h;return d=h=void 0,b=t,v=e.apply(r,n)}function u(e){var n=e-y;return void 0===y||n>=t||n<0||w&&e-b>=g}function c(){var e=i();if(u(e))return f(e);m=setTimeout(c,function(e){var n=t-(e-y);return w?l(n,g-(e-b)):n}(e))}function f(e){return m=void 0,C&&d?s(e):(d=h=void 0,v)}function p(){var e=i(),n=u(e);if(d=arguments,h=this,y=e,n){if(void 0===m)return function(e){return b=e,m=setTimeout(c,t),x?s(e):v}(y);if(w)return m=setTimeout(c,t),s(y)}return void 0===m&&(m=setTimeout(c,t)),v}var d,h,g,v,m,y,b=0,x=!1,w=!1,C=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return t=o(t)||0,r(n)&&(x=!!n.leading,g=(w="maxWait"in n)?a(o(n.maxWait)||0,t):g,C="trailing"in n?!!n.trailing:C),p.cancel=function(){void 0!==m&&clearTimeout(m),b=0,d=y=h=m=void 0},p.flush=function(){return void 0===m?v:f(i())},p}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(16))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),l=r(a),s=r(n(147)),u=r(n(7)),c=t.ColorWrap=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(u.default.simpleCheckForValidColor(e)){var r=u.default.toState(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(u.default.simpleCheckForValidColor(e)){var r=u.default.toState(e,e.h||t.state.oldHue);t.setState(r),t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=i({},u.default.toState(e.color,0)),t.debounce=(0,s.default)(function(e,t,n){e(t,n)},100),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,a.PureComponent||a.Component),o(n,[{key:"componentWillReceiveProps",value:function(e){this.setState(i({},u.default.toState(e.color,this.state.oldHue)))}},{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),l.default.createElement(e,i({},this.props,this.state,{onChange:this.handleChange},t))}}]),n}();return t.propTypes=i({},e.propTypes),t.defaultProps=i({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};t.default=c},function(e,t,n){var r=n(416),i=n(430)(r);e.exports=i},function(e,t,n){var r=n(421),i=n(30),o=Object.prototype,a=o.hasOwnProperty,l=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},function(e,t,n){(function(e){var r=n(9),i=n(422),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=a&&a.exports===o?r.Buffer:void 0,s=(l?l.isBuffer:void 0)||i;e.exports=s}).call(t,n(14)(e))},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(423),i=n(424),o=n(425),a=o&&o.isTypedArray,l=a?i(a):r;e.exports=l},function(e,t,n){var r=n(29),i=n(21);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){function r(e){var t=this.__data__=new i(e);this.size=t.size}var i=n(49),o=n(446),a=n(447),l=n(448),s=n(449),u=n(450);r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=l,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(467),i=n(30);e.exports=function e(t,n,o,a,l){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,l))}},function(e,t,n){var r=n(468),i=n(471),o=n(472);e.exports=function(e,t,n,a,l,s){var u=1&n,c=e.length,f=t.length;if(c!=f&&!(u&&f>c))return!1;var p=s.get(e);if(p&&s.get(t))return p==t;var d=-1,h=!0,g=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++d<c;){var v=e[d],m=t[d];if(a)var y=u?a(m,v,d,t,e,s):a(v,m,d,e,t,s);if(void 0!==y){if(y)continue;h=!1;break}if(g){if(!i(t,function(e,t){if(!o(g,t)&&(v===e||l(v,e,n,a,s)))return g.push(t)})){h=!1;break}}else if(v!==m&&!l(v,m,n,a,s)){h=!1;break}}return s.delete(e),s.delete(t),h}},function(e,t,n){var r=n(21);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(166),i=n(53);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(10),i=n(97),o=n(492),a=n(495);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"red",function(){return r}),n.d(t,"pink",function(){return i}),n.d(t,"purple",function(){return o}),n.d(t,"deepPurple",function(){return a}),n.d(t,"indigo",function(){return l}),n.d(t,"blue",function(){return s}),n.d(t,"lightBlue",function(){return u}),n.d(t,"cyan",function(){return c}),n.d(t,"teal",function(){return f}),n.d(t,"green",function(){return p}),n.d(t,"lightGreen",function(){return d}),n.d(t,"lime",function(){return h}),n.d(t,"yellow",function(){return g}),n.d(t,"amber",function(){return v}),n.d(t,"orange",function(){return m}),n.d(t,"deepOrange",function(){return y}),n.d(t,"brown",function(){return b}),n.d(t,"grey",function(){return x}),n.d(t,"blueGrey",function(){return w}),n.d(t,"darkText",function(){return C}),n.d(t,"lightText",function(){return k}),n.d(t,"darkIcons",function(){return E}),n.d(t,"lightIcons",function(){return S}),n.d(t,"white",function(){return _}),n.d(t,"black",function(){return O});var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},i={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},o={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},a={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},l={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},s={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},u={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},c={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},f={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},p={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},d={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},h={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},g={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},v={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},y={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},b={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},x={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},w={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},C={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},k={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},E={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},S={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},_="#ffffff",O="#000000";t.default={red:r,pink:i,purple:o,deepPurple:a,indigo:l,blue:s,lightBlue:u,cyan:c,teal:f,green:p,lightGreen:d,lime:h,yellow:g,amber:v,orange:m,deepOrange:y,brown:b,grey:x,blueGrey:w,darkText:C,lightText:k,darkIcons:E,lightIcons:S,white:_,black:O}},function(e,t,n){(function(t){/*!
|
22 |
+
* Quill Editor v1.3.6
|
23 |
+
* https://quilljs.com/
|
24 |
+
* Copyright (c) 2014, Jason Chen
|
25 |
+
* Copyright (c) 2013, salesforce.com
|
26 |
+
*/
|
27 |
+
!function(t,n){e.exports=n()}("undefined"!=typeof self&&self,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),l=n(46),s=n(47),u=n(48),c=n(49),f=n(12),p=n(32),d=n(33),h=n(31),g=n(1),v={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:u.default,Scroll:a.default,Block:s.default,Inline:l.default,Text:c.default,Attributor:{Attribute:f.default,Class:p.default,Style:d.default,Store:h.default}};t.default=v},function(e,t,n){"use strict";function r(e,t){void 0===t&&(t=l.ANY);var n;if("string"==typeof e)n=f[e]||s[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=f.text;else if("number"==typeof e)e&l.LEVEL&l.BLOCK?n=f.block:e&l.LEVEL&l.INLINE&&(n=f.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=u[r[i]])break;n=n||c[e.tagName]}return null==n?null:t&l.LEVEL&n.scope&&t&l.TYPE&n.scope?n:null}var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return o(t,e),t}(Error);t.ParchmentError=a;var l,s={},u={},c={},f={};t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(l=t.Scope||(t.Scope={})),t.create=function(e,t){var n=r(e);if(null==n)throw new a("Unable to create "+e+" blot");var i=n;return new i(e instanceof Node||e.nodeType===Node.TEXT_NODE?e:i.create(t),t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=r,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map(function(t){return e(t)});var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new a("Invalid definition");if("abstract"===r.blotName)throw new a("Cannot register abstract class");return f[r.blotName||r.attrName]=r,"string"==typeof r.keyName?s[r.keyName]=r:(null!=r.className&&(u[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map(function(e){return e.toUpperCase()}):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach(function(e){null!=c[e]&&null!=r.className||(c[e]=r)}))),r}},function(e,t,n){var r=n(51),i=n(11),o=n(3),a=n(20),l=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach(function(r){(e(r)?t:n).push(r)}),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce(function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e},0)},s.prototype.length=function(){return this.reduce(function(e,t){return e+a.length(t)},0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),i=0;i<t&&r.hasNext();){var o;i<e?o=r.next(e-i):(o=r.next(t-i),n.push(o)),i+=a.length(o)}return new s(n)},s.prototype.compose=function(e){for(var t=a.iterator(this.ops),n=a.iterator(e.ops),r=new s;t.hasNext()||n.hasNext();)if("insert"===n.peekType())r.push(n.next());else if("delete"===t.peekType())r.push(t.next());else{var i=Math.min(t.peekLength(),n.peekLength()),o=t.next(i),l=n.next(i);if("number"==typeof l.retain){var u={};"number"==typeof o.retain?u.retain=i:u.insert=o.insert;var c=a.attributes.compose(o.attributes,l.attributes,"number"==typeof o.retain);c&&(u.attributes=c),r.push(u)}else"number"==typeof l.delete&&"number"==typeof o.retain&&r.push(l)}return r.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map(function(t){return t.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")}),o=new s,u=r(n[0],n[1],t),c=a.iterator(this.ops),f=a.iterator(e.ops);return u.forEach(function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),o.push(f.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var l=c.next(n),s=f.next(n);i(l.insert,s.insert)?o.retain(n,a.attributes.diff(l.attributes,s.attributes)):o.push(s).delete(n)}t-=n}}),o.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new s,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),l=a.length(o)-n.peekLength(),u="string"==typeof o.insert?o.insert.indexOf(t,l)-l:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new s}}r.length()>0&&e(r,{},i)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),i=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),l=n.next(o),u=r.next(o);if(l.delete)continue;u.delete?i.push(u):i.retain(o,a.attributes.transform(l.attributes,u.attributes,t))}else i.retain(a.length(n.next()));return i.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<e||!t)&&(e+=i),r+=i):e-=Math.min(i,e-r)}return e},e.exports=s},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},o=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,i=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(t in e);return void 0===t||n.call(e,t)};e.exports=function e(){var t,n,r,a,l,s,u=arguments[0],c=1,f=arguments.length,p=!1;for("boolean"==typeof u&&(p=u,u=arguments[1]||{},c=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});c<f;++c)if(null!=(t=arguments[c]))for(n in t)r=u[n],u!==(a=t[n])&&(p&&a&&(o(a)||(l=i(a)))?(l?(l=!1,s=r&&i(r)?r:[]):s=r&&o(r)?r:{},u[n]=e(p,s,a)):void 0!==a&&(u[n]=a));return u}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,c.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:l(e.parent,t))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},c=r(n(3)),f=r(n(2)),p=r(n(0)),d=r(n(16)),h=r(n(6)),g=r(n(7)),v=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,p.default.Embed),s(t,[{key:"attach",value:function(){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new p.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new f.default).insert(this.value(),(0,c.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=p.default.query(e,p.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=p.default.create(m.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}();v.scope=p.default.Scope.BLOCK_BLOT;var m=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return a(t,p.default.Block),s(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(p.default.Leaf).reduce(function(e,t){return 0===t.length()?e:e.insert(t.value(),l(t))},new f.default).insert("\n",l(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,i){n<=0||(p.default.query(r,p.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,i):u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,i),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var i=n.split("\n"),o=i.shift();o.length>0&&(e<this.length()-1||null==this.children.tail?u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});var a=this;i.reduce(function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length},e+o.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof d.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}();m.blotName="block",m.tagName="P",m.defaultChild="break",m.allowedChildren=[h.default,p.default.Embed,g.default],t.bubbleFormats=l,t.BlockEmbed=v,t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if((t=(0,b.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==k.DEFAULTS.theme){if(t.theme=k.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=w.default;var n=(0,b.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach(function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach(function(t){!0===e.modules[t]&&(e.modules[t]={})})});var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce(function(e,t){var n=k.import("modules/"+t);return null==n?C.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e},{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,b.default)(!0,{},k.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach(function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))}),t.modules=Object.keys(t.modules).reduce(function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e},{}),t}function a(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===h.default.sources.USER)return new p.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=s(i,a,t):0!==r&&(i=s(i,n,r,t)),this.setSelection(i,h.default.sources.SILENT)),a.length()>0){var l,u=[h.default.events.TEXT_CHANGE,a,o,t];if((l=this.emitter).emit.apply(l,[h.default.events.EDITOR_CHANGE].concat(u)),t!==h.default.sources.SILENT){var c;(c=this.emitter).emit.apply(c,u)}}return a}function l(e,t,n,r,i){var o={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=r,r=n,n=t,t=0),"object"===(void 0===n?"undefined":u(n))?(o=n,i=r):"string"==typeof n&&(null!=r?o[n]=r:i=n),[e,t,o,i=i||h.default.sources.API]}function s(e,t,n,r){if(null==e)return null;var i=void 0,o=void 0;if(t instanceof p.default){var a=[e.index,e.index+e.length].map(function(e){return t.transformPosition(e,r!==h.default.sources.USER)}),l=c(a,2);i=l[0],o=l[1]}else{var s=[e.index,e.index+e.length].map(function(e){return e<t||e===t&&r===h.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)}),u=c(s,2);i=u[0],o=u[1]}return new m.Range(i,o-i)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var p=r(n(2)),d=r(n(14)),h=r(n(8)),g=r(n(9)),v=r(n(0)),m=n(15),y=r(m),b=r(n(3)),x=r(n(10)),w=r(n(34)),C=(0,x.default)("quill"),k=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=o(t,r),this.container=this.options.container,null==this.container)return C.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=v.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new d.default(this.scroll),this.selection=new y.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(e){e===h.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;a.call(n,function(){return n.editor.update(null,t,i)},e)});var l=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(l),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return f(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),x.default.level(e)}},{key:"find",value:function(e){return e.__quill||v.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&C.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var i=e.attrName||e.blotName;"string"==typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach(function(r){n.register(r,e[r],t)})}else null==this.imports[e]||r||C.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?v.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),f(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=l(e,t,n),o=c(i,4);return e=o[0],t=o[1],n=o[3],a.call(this,function(){return r.editor.deleteText(e,t)},n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;return a.call(this,function(){var r=n.getSelection(!0),o=new p.default;if(null==r)return o;if(v.default.query(e,v.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,i({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,i({},e,t))}return n.setSelection(r,h.default.sources.SILENT),o},r)}},{key:"formatLine",value:function(e,t,n,r,i){var o,s=this,u=l(e,t,n,r,i),f=c(u,4);return e=f[0],t=f[1],o=f[2],i=f[3],a.call(this,function(){return s.editor.formatLine(e,t,o)},i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var o,s=this,u=l(e,t,n,r,i),f=c(u,4);return e=f[0],t=f[1],o=f[2],i=f[3],a.call(this,function(){return s.editor.formatText(e,t,o)},i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=l(e,t),r=c(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=l(e,t),r=c(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return a.call(this,function(){return i.editor.insertEmbed(t,n,r)},o,t)}},{key:"insertText",value:function(e,t,n,r,i){var o,s=this,u=l(e,0,n,r,i),f=c(u,4);return e=f[0],o=f[2],i=f[3],a.call(this,function(){return s.editor.insertText(e,t,o)},i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=l(e,t,n),o=c(i,4);return e=o[0],t=o[1],n=o[3],a.call(this,function(){return r.editor.removeFormat(e,t)},n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return a.call(this,function(){e=new p.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),o=i.ops[i.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1)),r.compose(i)},n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=l(t,n,r),o=c(i,4);t=o[0],n=o[1],r=o[3],this.selection.setRange(new m.Range(t,n),r),r!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API,n=(new p.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return a.call(this,function(){return e=new p.default(e),t.editor.applyDelta(e,n)},n,!0)}}]),e}();k.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},k.events=h.default.events,k.sources=h.default.sources,k.version="1.3.6",k.imports={delta:p.default,parchment:v.default,"core/module":g.default,"core/theme":w.default},t.expandConfig=o,t.overload=l,t.default=k},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},a=r(n(7)),l=r(n(0)),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default.Inline),i(t,[{key:"formatAt",value:function(e,n,r,i){if(t.compare(this.statics.blotName,r)<0&&l.default.query(r,l.default.Scope.BLOT)){var a=this.isolate(e,n);i&&a.wrap(r,i)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e<n?-1:1}}]),t}();s.allowedChildren=[s,l.default.Embed,a.default],s.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Text),t}();t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=r(n(54)),a=(0,r(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(e){document.addEventListener(e,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(e){if(e.__quill&&e.__quill.emitter){var n;(n=e.__quill.emitter).handleDOM.apply(n,t)}})})});var l=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",a.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),i(t,[{key:"emit",value:function(){a.log.apply(a,arguments),function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach(function(t){var r=t.node,i=t.handler;(e.target===r||r.contains(e.target))&&i.apply(void 0,[e].concat(n))})}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}();l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){"use strict";function r(e){if(o.indexOf(e)<=o.indexOf(a)){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=console)[e].apply(t,r)}}function i(e){return o.reduce(function(t,n){return t[n]=r.bind(console,n,e),t},{})}Object.defineProperty(t,"__esModule",{value:!0});var o=["error","warn","log","info"],a="warn";r.level=i.level=function(e){a=e},t.default=i},function(e,t,n){function r(e){return null===e||void 0===e}function i(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}var o=Array.prototype.slice,a=n(52),l=n(53),s=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var u,c;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(l(e))return!!l(t)&&(e=o.call(e),t=o.call(t),s(e,t,n));if(i(e)){if(!i(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var f=a(e),p=a(t)}catch(e){return!1}if(f.length!=p.length)return!1;for(f.sort(),p.sort(),u=f.length-1;u>=0;u--)if(f[u]!=p[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!s(e[c],t[c],n))return!1;return typeof e==typeof t}(e,t,n))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,function(e){return e.name})},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var l=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},c=r(n(2)),f=r(n(0)),p=r(n(4)),d=r(n(6)),h=r(n(7)),g=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,d.default),t}();g.blotName="code",g.tagName="CODE";var v=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,p.default),s(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce(function(t,n){return t.insert(n).insert("\n",e.formats())},new c.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(h.default,this.length()-1),i=l(r,1)[0];null!=i&&i.deleteAt(i.length()-1,1),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,i){if(0!==n&&null!=f.default.query(r,f.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||o>=e+n)){var a=this.newlineIndex(e,!0)+1,l=o-a+1,s=this.isolate(a,l),u=s.next;s.format(r,i),u instanceof t&&u.formatAt(0,e-a+n-l,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(h.default,e),i=l(r,2),o=i[0],a=i[1];o.insertAt(a,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(f.default.create("text","\n")),u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(e){var t=f.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof f.default.Embed?t.remove():t.unwrap()})}}],[{key:"create",value:function(e){var n=u(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}();v.blotName="code-block",v.tagName="PRE",v.TAB=" ",t.Code=g,t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return Object.keys(t).reduce(function(n,r){return null==e[r]?n:(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]],n)},{})}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=r(n(2)),u=r(n(20)),c=r(n(0)),f=r(n(13)),p=r(n(24)),d=n(4),h=r(d),g=r(n(16)),v=r(n(21)),m=r(n(11)),y=r(n(3)),b=/^[ -~]*$/,x=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return l(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce(function(e,t){if(1===t.insert){var n=(0,v.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,v.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)},new s.default)}(e)).reduce(function(e,i){var l=i.retain||i.delete||i.insert.length||1,s=i.attributes||{};if(null!=i.insert){if("string"==typeof i.insert){var f=i.insert;f.endsWith("\n")&&n&&(n=!1,f=f.slice(0,-1)),e>=r&&!f.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,f);var p=t.scroll.line(e),g=a(p,2),v=g[0],m=g[1],b=(0,y.default)({},(0,d.bubbleFormats)(v));if(v instanceof h.default){var x=v.descendant(c.default.Leaf,m),w=a(x,1)[0];b=(0,y.default)(b,(0,d.bubbleFormats)(w))}s=u.default.attributes.diff(b,s)||{}}else if("object"===o(i.insert)){var C=Object.keys(i.insert)[0];if(null==C)return e;t.scroll.insertAt(e,C,i.insert[C])}r+=l}return Object.keys(s).forEach(function(n){t.scroll.formatAt(e,l,n,s[n])}),e+l},0),e.reduce(function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach(function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(e,Math.max(t,1)),a=t;o.forEach(function(t){var o=t.length();if(t instanceof f.default){var l=e-t.offset(n.scroll),s=t.newlineIndex(l+a)-l+1;t.formatAt(l,s,i,r[i])}else t.format(i,r[i]);a-=o})}}),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,v.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(i){n.scroll.formatAt(e,t,i,r[i])}),this.update((new s.default).retain(e).retain(t,(0,v.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(e,t){return e.concat(t.delta())},new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach(function(e){var t=a(e,1)[0];t instanceof h.default?n.push(t):t instanceof c.default.Leaf&&r.push(t)}):(n=this.scroll.lines(e,t),r=this.scroll.descendants(c.default.Leaf,e,t));var o=[n,r].map(function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=i((0,d.bubbleFormats)(n),t)}return t});return y.default.apply(y.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter(function(e){return"string"==typeof e.insert}).map(function(e){return e.insert}).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach(function(i){n.scroll.formatAt(e,t.length,i,r[i])}),this.update((new s.default).retain(e).insert(t,(0,v.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===h.default.blotName&&(!(e.children.length>1)&&e.children.head instanceof g.default)}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=a(r,2),o=i[0],l=i[1],u=0,c=new s.default;null!=o&&(u=o instanceof f.default?o.newlineIndex(l)-l+1:o.length()-l,c=o.delta().slice(l,l+u-1).insert("\n"));var p=this.getContents(e,t+u).diff((new s.default).insert(n).concat(c)),d=(new s.default).retain(e).concat(p);return this.applyDelta(d)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(b)&&c.default.find(t[0].target)){var i=c.default.find(t[0].target),o=(0,d.bubbleFormats)(i),a=i.offset(this.scroll),l=t[0].oldValue.replace(p.default.CONTENTS,""),u=(new s.default).insert(l),f=(new s.default).insert(i.value());e=(new s.default).retain(a).concat(u.diff(f,n)).reduce(function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)},new s.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();t.default=x},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var l=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=r(n(0)),c=r(n(21)),f=r(n(11)),p=r(n(8)),d=(0,r(n(10)).default)("quill:selection"),h=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o(this,e),this.index=t,this.length=n},g=function(){function e(t,n){var r=this;o(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=u.default.create("cursor",this),this.lastRange=this.savedRange=new h(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,p.default.sources.USER),1)}),this.emitter.on(p.default.events.EDITOR_CHANGE,function(e,t){e===p.default.events.TEXT_CHANGE&&t.length()>0&&r.update(p.default.sources.SILENT)}),this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(p.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}})}}),this.emitter.on(p.default.events.SCROLL_OPTIMIZE,function(e,t){if(t.range){var n=t.range,i=n.startNode,o=n.startOffset,a=n.endNode,l=n.endOffset;r.setNativeRange(i,o,a,l)}}),this.update(p.default.sources.SILENT)}return s(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",function(){e.composing=!0}),this.root.addEventListener("compositionend",function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout(function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,function(){e.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){e.mouseDown=!1,e.update(p.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!u.default.query(e,u.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=u.default.find(n.start.node,!1);if(null==r)return;if(r instanceof u.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,i=this.scroll.leaf(e),o=l(i,2),a=o[0],s=o[1];if(null==a)return null;var u=a.position(s,!0),c=l(u,2);r=c[0],s=c[1];var f=document.createRange();if(t>0){f.setStart(r,s);var p=this.scroll.leaf(e+t),d=l(p,2);if(a=d[0],s=d[1],null==a)return null;var h=a.position(s,!0),g=l(h,2);return r=g[0],s=g[1],f.setEnd(r,s),f.getBoundingClientRect()}var v="left",m=void 0;return r instanceof Text?(s<r.data.length?(f.setStart(r,s),f.setEnd(r,s+1)):(f.setStart(r,s-1),f.setEnd(r,s),v="right"),m=f.getBoundingClientRect()):(m=a.domNode.getBoundingClientRect(),s>0&&(v="right")),{bottom:m.top+m.height,height:m.height,left:m[v],right:m[v],top:m.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map(function(e){var n=l(e,2),r=n[0],i=n[1],o=u.default.find(r,!0),a=o.offset(t.scroll);return 0===i?a:o instanceof u.default.Container?a+o.length():a+o.index(r,i)}),o=Math.min(Math.max.apply(Math,i(r)),this.scroll.length()-1),a=Math.min.apply(Math,[o].concat(i(r)));return new h(a,o-a)}},{key:"normalizeNative",value:function(e){if(!a(this.root,e.startContainer)||!e.collapsed&&!a(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n}),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],i=this.scroll.length();return n.forEach(function(e,n){e=Math.min(i-1,e);var o,a=t.scroll.leaf(e),s=l(a,2),u=s[0],c=s[1],f=u.position(c,0!==n),p=l(f,2);o=p[0],c=p[1],r.push(o,c)}),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,r)),o=l(i,1)[0],a=o;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,r));a=l(s,1)[0]}if(null!=o&&null!=a){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,r),o.removeAllRanges(),o.addRange(l)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.default.sources.API;if("string"==typeof t&&(n=t,t=!1),d.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,i(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.default.sources.USER,t=this.lastRange,n=this.getRange(),r=l(n,2),i=r[0],o=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,f.default)(t,this.lastRange)){var a;!this.composing&&null!=o&&o.native.collapsed&&o.start.node!==this.cursor.textNode&&this.cursor.restore();var s=[p.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(t),e];if((a=this.emitter).emit.apply(a,[p.default.events.EDITOR_CHANGE].concat(s)),e!==p.default.sources.SILENT){var u;(u=this.emitter).emit.apply(u,s)}}}}]),e}();t.Range=h,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r},l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Embed),i(t,[{key:"insertInto",value:function(e,n){0===e.children.length?function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}();l.blotName="break",l.tagName="BR",t.default=l},function(e,t,n){"use strict";function r(e){var t=s.find(e);if(null==t)try{t=s.create(e)}catch(n){t=s.create(s.Scope.INLINE),[].slice.call(e.childNodes).forEach(function(e){t.domNode.appendChild(e)}),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(44),l=n(30),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(t){try{var n=r(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof s.ParchmentError)return;throw e}})},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,function(e,t,n){e.deleteAt(t,n)})},t.prototype.descendant=function(e,n){var r=this.children.find(n),i=r[0],o=r[1];return null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e?[i,o]:i instanceof t?i.descendant(e,o):[null,-1]},t.prototype.descendants=function(e,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,function(n,r,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&i.push(n),n instanceof t&&(i=i.concat(n.descendants(e,r,o))),o-=a}),i},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,function(e,t,i){e.formatAt(t,i,n,r)})},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),i=r[0],o=r[1];if(i)i.insertAt(o,t,n);else{var a=null==n?s.create("text",t):s.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(t){return e instanceof t}))throw new s.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce(function(e,t){return e+t.length()},0)},t.prototype.moveChildren=function(e,t){this.children.forEach(function(n){e.insertBefore(n,t)})},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=s.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),i=r[0],o=r[1],a=[[this,e]];return i instanceof t?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),function(e,r,i){e=e.split(r,t),n.appendChild(e)}),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,i=[],o=[];e.forEach(function(e){e.target===n.domNode&&"childList"===e.type&&(i.push.apply(i,e.addedNodes),o.push.apply(o,e.removedNodes))}),o.forEach(function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=s.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}}),i.filter(function(e){return e.parentNode==n.domNode}).sort(function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(e){var t=null;null!=e.nextSibling&&(t=s.find(e.nextSibling));var i=r(e);i.next==t&&null!=i.next||(null!=i.parent&&i.parent.removeChild(n),n.insertBefore(i,t||void 0))})},t}(l.default);t.default=u},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),a=n(31),l=n(17),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a.default(n.domNode),n}return i(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof o.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some(function(e){return e.target===r.domNode&&"attributes"===e.type})&&this.attributes.build()},t.prototype.wrap=function(n,r){var i=e.prototype.wrap.call(this,n,r);return i instanceof t&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},t}(l.default);t.default=u},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(30),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e;var e},t.scope=a.Scope.INLINE_BLOT,t}(o.default);t.default=l},function(e,t,n){function r(e){this.ops=e,this.index=0,this.offset=0}var i=n(11),o=n(3),a={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=o(!0,{},t);n||(r=Object.keys(r).reduce(function(e,t){return null!=r[t]&&(e[t]=r[t]),e},{}));for(var i in e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce(function(n,r){return i(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce(function(n,r){return void 0===e[r]&&(n[r]=t[r]),n},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new r(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=a.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"==typeof t.retain?i.retain=e:"string"==typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},e.exports=a},function(e,n){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}function n(r,s,u,c,f){"object"==typeof s&&(u=s.depth,c=s.prototype,f=s.includeNonEnumerable,s=s.circular);var p=[],d=[],h=void 0!==t;return void 0===s&&(s=!0),void 0===u&&(u=1/0),function r(u,g){if(null===u)return null;if(0===g)return u;var v,m;if("object"!=typeof u)return u;if(e(u,o))v=new o;else if(e(u,a))v=new a;else if(e(u,l))v=new l(function(e,t){u.then(function(t){e(r(t,g-1))},function(e){t(r(e,g-1))})});else if(n.__isArray(u))v=[];else if(n.__isRegExp(u))v=new RegExp(u.source,i(u)),u.lastIndex&&(v.lastIndex=u.lastIndex);else if(n.__isDate(u))v=new Date(u.getTime());else{if(h&&t.isBuffer(u))return v=new t(u.length),u.copy(v),v;e(u,Error)?v=Object.create(u):void 0===c?(m=Object.getPrototypeOf(u),v=Object.create(m)):(v=Object.create(c),m=c)}if(s){var y=p.indexOf(u);if(-1!=y)return d[y];p.push(u),d.push(v)}e(u,o)&&u.forEach(function(e,t){var n=r(t,g-1),i=r(e,g-1);v.set(n,i)}),e(u,a)&&u.forEach(function(e){var t=r(e,g-1);v.add(t)});for(var b in u){var x;m&&(x=Object.getOwnPropertyDescriptor(m,b)),x&&null==x.set||(v[b]=r(u[b],g-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(u);for(b=0;b<w.length;b++){var C=w[b];(!(E=Object.getOwnPropertyDescriptor(u,C))||E.enumerable||f)&&(v[C]=r(u[C],g-1),E.enumerable||Object.defineProperty(v,C,{enumerable:!1}))}}if(f){var k=Object.getOwnPropertyNames(u);for(b=0;b<k.length;b++){var E,S=k[b];(E=Object.getOwnPropertyDescriptor(u,S))&&E.enumerable||(v[S]=r(u[S],g-1),Object.defineProperty(v,S,{enumerable:!1}))}}return v}(r,u)}function r(e){return Object.prototype.toString.call(e)}function i(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}var o,a,l;try{o=Map}catch(e){o=function(){}}try{a=Set}catch(e){a=function(){}}try{l=Promise}catch(e){l=function(){}}return n.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},n.__objToStr=r,n.__isDate=function(e){return"object"==typeof e&&"[object Date]"===r(e)},n.__isArray=function(e){return"object"==typeof e&&"[object Array]"===r(e)},n.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===r(e)},n.__getRegExpFlags=i,n}();"object"==typeof e&&e.exports&&(e.exports=r)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return e instanceof f.default||e instanceof c.BlockEmbed}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},s=r(n(0)),u=r(n(8)),c=n(4),f=r(c),p=r(n(16)),d=r(n(13)),h=r(n(25)),g=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce(function(e,t){return e[t]=!0,e},{})),r.domNode.addEventListener("DOMNodeInserted",function(){}),r.optimize(),r.enable(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default.Scroll),a(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),i=o(r,2),a=i[0],s=i[1],u=this.line(e+n),f=o(u,1)[0];if(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=f&&a!==f&&s>0){if(a instanceof c.BlockEmbed||f instanceof c.BlockEmbed)return void this.optimize();if(a instanceof d.default){var h=a.newlineIndex(a.length(),!0);if(h>-1&&(a=a.split(h+1))===f)return void this.optimize()}else if(f instanceof d.default){var g=f.newlineIndex(0);g>-1&&f.split(g+1)}var v=f.children.head instanceof p.default?null:f.children.head;a.moveChildren(f,v),a.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var i=s.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var o=s.default.create(n,r);this.appendChild(o)}else l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(e),e=r}l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(i,e)}},{key:"lines",value:function(){return function e(t,n,r){var o=[],a=r;return t.children.forEachAt(n,r,function(t,n,r){i(t)?o.push(t):t instanceof s.default.Container&&(o=o.concat(e(t,n,a))),a-=r}),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=u.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,n,e),l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,n,e)}}}]),t}();g.blotName="scroll",g.className="ql-editor",g.tagName="DIV",g.defaultChild="block",g.allowedChildren=[f.default,c.BlockEmbed,h.default],t.default=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n,r=e===O.keys.LEFT?"prefix":"suffix";return i(n={key:e,shiftKey:t,altKey:null},r,/^$/),i(n,"handler",function(n){var r=n.index;e===O.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(h(i,1)[0]instanceof w.default.Embed)||(e===O.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,C.default.sources.USER):this.quill.setSelection(n.index-1,C.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,C.default.sources.USER):this.quill.setSelection(n.index+n.length+1,C.default.sources.USER),!1)}),n}function a(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=h(n,1)[0],i={};if(0===t.offset){var o=this.quill.getLine(e.index-1),a=h(o,1)[0];if(null!=a&&a.length()>1){var l=r.formats(),s=this.quill.getFormat(e.index-1,1);i=x.default.attributes.diff(l,s)||{}}}var u=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-u,u,C.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-u,u,i,C.default.sources.USER),this.quill.focus()}}function l(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,o=this.quill.getLine(e.index),a=h(o,1)[0];if(t.offset>=a.length()-1){var l=this.quill.getLine(e.index+1),s=h(l,1)[0];if(s){var u=a.formats(),c=this.quill.getFormat(e.index,1);r=x.default.attributes.diff(u,c)||{},i=s.length()}}this.quill.deleteText(e.index,n,C.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,C.default.sources.USER)}}function s(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=x.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,C.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,C.default.sources.USER),this.quill.setSelection(e.index,C.default.sources.SILENT),this.quill.focus()}function u(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce(function(e,n){return w.default.query(n,w.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e},{});this.quill.insertText(e.index,"\n",r,C.default.sources.USER),this.quill.setSelection(e.index+1,C.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach(function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],C.default.sources.USER))})}function c(e){return{key:O.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=w.default.query("code-block"),r=t.index,i=t.length,o=this.quill.scroll.descendant(n,r),a=h(o,2),l=a[0],s=a[1];if(null!=l){var u=this.quill.getIndex(l),c=l.newlineIndex(s,!0)+1,f=l.newlineIndex(u+s+i),p=l.domNode.textContent.slice(c,f).split("\n");s=0,p.forEach(function(t,o){e?(l.insertAt(c+s,n.TAB),s+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(c+s,n.TAB.length),s-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),s+=t.length+1}),this.quill.update(C.default.sources.USER),this.quill.setSelection(r,i,C.default.sources.SILENT)}}}}function f(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],C.default.sources.USER)}}}function p(e){if("string"==typeof e||"number"==typeof e)return p({key:e});if("object"===(void 0===e?"undefined":d(e))&&(e=(0,v.default)(e,!1)),"string"==typeof e.key)if(null!=O.keys[e.key.toUpperCase()])e.key=O.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[_]=e.shortKey,delete e.shortKey),e}Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=r(n(21)),m=r(n(11)),y=r(n(3)),b=r(n(2)),x=r(n(20)),w=r(n(0)),C=r(n(5)),k=r(n(10)),E=r(n(9)),S=(0,k.default)("quill:keyboard"),_=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",O=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach(function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])}),r.addBinding({key:t.keys.ENTER,shiftKey:null},u),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},a),r.addBinding({key:t.keys.DELETE},{collapsed:!0},l)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},a),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},l)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},s),r.addBinding({key:t.keys.DELETE},{collapsed:!1},s),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},a),r.listen(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,E.default),g(t,null,[{key:"match",value:function(e,t){return t=p(t),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(n){return!!t[n]!==e[n]&&null!==t[n]})&&t.key===(e.which||e.keyCode)}}]),g(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=p(e);if(null==r||null==r.key)return S.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,y.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var r=n.which||n.keyCode,i=(e.bindings[r]||[]).filter(function(e){return t.match(n,e)});if(0!==i.length){var o=e.quill.getSelection();if(null!=o&&e.quill.hasFocus()){var a=e.quill.getLine(o.index),l=h(a,2),s=l[0],u=l[1],c=e.quill.getLeaf(o.index),f=h(c,2),p=f[0],g=f[1],v=0===o.length?[p,g]:e.quill.getLeaf(o.index+o.length),y=h(v,2),b=y[0],x=y[1],C=p instanceof w.default.Text?p.value().slice(0,g):"",k=b instanceof w.default.Text?b.value().slice(x):"",E={collapsed:0===o.length,empty:0===o.length&&s.length()<=1,format:e.quill.getFormat(o),offset:u,prefix:C,suffix:k};i.some(function(t){if(null!=t.collapsed&&t.collapsed!==E.collapsed)return!1;if(null!=t.empty&&t.empty!==E.empty)return!1;if(null!=t.offset&&t.offset!==E.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(function(e){return null==E.format[e]}))return!1}else if("object"===d(t.format)&&!Object.keys(t.format).every(function(e){return!0===t.format[e]?null!=E.format[e]:!1===t.format[e]?null==E.format[e]:(0,m.default)(t.format[e],E.format[e])}))return!1;return!(null!=t.prefix&&!t.prefix.test(E.prefix))&&(!(null!=t.suffix&&!t.suffix.test(E.suffix))&&!0!==t.handler.call(e,o,E))})&&n.preventDefault()}}}})}}]),t}();O.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},O.DEFAULTS={bindings:{bold:f("bold"),italic:f("italic"),underline:f("underline"),indent:{key:O.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",C.default.sources.USER)}},outdent:{key:O.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",C.default.sources.USER)}},"outdent backspace":{key:O.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",C.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,C.default.sources.USER)}},"indent code-block":c(!0),"outdent code-block":c(!1),"remove tab":{key:O.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,C.default.sources.USER)}},tab:{key:O.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new b.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,C.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,C.default.sources.SILENT)}},"list empty enter":{key:O.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,C.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,C.default.sources.USER)}},"checklist enter":{key:O.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=h(t,2),r=n[0],i=n[1],o=(0,y.default)({},r.formats(),{list:"checked"}),a=(new b.default).retain(e.index).insert("\n",o).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,C.default.sources.USER),this.quill.setSelection(e.index+1,C.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:O.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=h(n,2),i=r[0],o=r[1],a=(new b.default).retain(e.index).insert("\n",t.format).retain(i.length()-o-1).retain(1,{header:null});this.quill.updateContents(a,C.default.sources.USER),this.quill.setSelection(e.index+1,C.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=h(r,2),o=i[0],a=i[1];if(a>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",C.default.sources.USER),this.quill.history.cutoff();var s=(new b.default).retain(e.index-a).delete(n+1).retain(o.length()-2-a).retain(1,{list:l});this.quill.updateContents(s,C.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,C.default.sources.SILENT)}},"code exit":{key:O.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=h(t,2),r=n[0],i=n[1],o=(new b.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(o,C.default.sources.USER)}},"embed left":o(O.keys.LEFT,!1),"embed left shift":o(O.keys.LEFT,!0),"embed right":o(O.keys.RIGHT,!1),"embed right shift":o(O.keys.RIGHT,!0)}},t.default=O,t.SHORTKEY=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=r(n(0)),s=r(n(7)),u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default.Embed),a(t,null,[{key:"value",value:function(){}}]),a(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var r=this,i=0;null!=r&&r.statics.scope!==l.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,o=void 0,a=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var u=[e,n.start.offset,n.end.offset];r=u[0],o=u[1],a=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof s.default?(r=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(l.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var f=[o,a].map(function(e){return Math.max(0,Math.min(r.data.length,e-1))}),p=i(f,2);return o=p[0],a=p[1],{startNode:r,startOffset:o,endNode:r,endOffset:a}}}}},{key:"update",value:function(e,t){var n=this;if(e.some(function(e){return"characterData"===e.type&&e.target===n.textNode})){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}();u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\ufeff",t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(0)),o=n(4),a=r(o),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Container),t}();l.allowedChildren=[a.default,o.BlockEmbed,l],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r},l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Attributor.Style),i(t,[{key:"value",value:function(e){var n=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(e){return("00"+parseInt(e).toString(16)).slice(-2)}).join("")):n}}]),t}(),s=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),u=new l("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=l,t.ColorClass=s,t.ColorStyle=u},function(e,t,n){"use strict";function r(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},l=n(6),s=(i=l)&&i.__esModule?i:{default:i},u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),o(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return r(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}();u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=u,t.sanitize=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=r(n(23)),s=r(n(107)),u=0,c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){n.togglePicker()}),this.label.addEventListener("keydown",function(e){switch(e.keyCode){case l.default.keys.ENTER:n.togglePicker();break;case l.default.keys.ESCAPE:n.escape(),e.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return a(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),i(this.label,"aria-expanded"),i(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",function(){t.selectItem(n,!0)}),n.addEventListener("keydown",function(e){switch(e.keyCode){case l.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case l.default.keys.ESCAPE:t.escape(),e.preventDefault()}}),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=s.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach(function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)}),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach(function(t){e.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout(function(){return e.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":o(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(0)),o=r(n(5)),a=n(4),l=r(a),s=r(n(16)),u=r(n(25)),c=r(n(24)),f=r(n(35)),p=r(n(6)),d=r(n(22)),h=r(n(7)),g=r(n(55)),v=r(n(42)),m=r(n(23));o.default.register({"blots/block":l.default,"blots/block/embed":a.BlockEmbed,"blots/break":s.default,"blots/container":u.default,"blots/cursor":c.default,"blots/embed":f.default,"blots/inline":p.default,"blots/scroll":d.default,"blots/text":h.default,"modules/clipboard":g.default,"modules/history":v.default,"modules/keyboard":m.default}),i.default.register(l.default,s.default,c.default,p.default,d.default,h.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,i){var o=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),o=this.split(e);this.parent.insertBefore(i,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),l=o.default.keys(this.domNode);t.concat(n).concat(l).forEach(function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)})},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach(function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)})},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce(function(t,n){return t[n]=e.attributes[n].value(e.domNode),t},{})},e}();t.default=l},function(e,t,n){"use strict";function r(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return 0===e.indexOf(t+"-")})}var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){r(e,this.keyName).forEach(function(t){e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(r(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";function r(e){var t=e.split("-"),n=t.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return t[0]+n}var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[r(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[r(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[r(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach(function(t){null==e.modules[t]&&e.addModule(t)})}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();i.DEFAULTS={modules:{}},i.themes={default:i},t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=r(n(0)),a=r(n(7)),l="\ufeff",s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(e){n.contentNode.appendChild(e)}),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Embed),i(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(l).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var i=this.prev.length();this.prev.insertAt(i,r),t={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=l,t}},{key:"update",value:function(e,t){var n=this;e.forEach(function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}})}}]),t}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},l=new o.default.Attributor.Attribute("align","align",a),s=new o.default.Attributor.Class("align","ql-align",a),u=new o.default.Attributor.Style("align","text-align",a);t.AlignAttribute=l,t.AlignClass=s,t.AlignStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=n(26),l=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),s=new a.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=l,t.BackgroundStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},l=new o.default.Attributor.Attribute("direction","dir",a),s=new o.default.Attributor.Class("direction","ql-direction",a),u=new o.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=l,t.DirectionClass=s,t.DirectionStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r},l={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},s=new a.default.Attributor.Class("font","ql-font",l),u=new(function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Attributor.Style),i(t,[{key:"value",value:function(e){return function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}())("font","font-family",l);t.FontStyle=u,t.FontClass=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),l=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=l},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.reduce(function(e,t){return e+=t.delete||0},0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some(function(e){return null!=a.default.query(e,a.default.Scope.BLOCK)}))}(e)&&(n-=1),n}Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=r(n(0)),l=r(n(5)),s=r(n(9)),u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(l.default.events.EDITOR_CHANGE,function(e,t,n,i){e!==l.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==l.default.sources.USER?r.transform(t):r.record(t,n))}),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),o(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],l.default.sources.USER),this.ignoreChange=!1;var r=i(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}),this.stack.redo.forEach(function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}();u.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=u,t.getLastChangeIndex=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach(function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=r(n(3)),c=r(n(2)),f=r(n(8)),p=r(n(23)),d=r(n(34)),h=r(n(59)),g=r(n(60)),v=r(n(28)),m=r(n(61)),y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],x=[!1,"serif","monospace"],w=["1","2","3",!1],C=["small",!1,"large","huge"],k=function(e){function t(e,n){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach(function(e){e.container.contains(n.target)||e.close()})}),r}return a(t,d.default),s(t,[{key:"addModule",value:function(e){var n=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach(function(e){(e.getAttribute("class")||"").split(/\s+/).forEach(function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}})})}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map(function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&l(e,y),new g.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&l(e,b,"background"===n?"#ffffff":"#000000"),new h.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?l(e,x):e.classList.contains("ql-header")?l(e,w):e.classList.contains("ql-size")&&l(e,C)),new v.default(e)}),this.quill.on(f.default.events.EDITOR_CHANGE,function(){n.pickers.forEach(function(e){e.update()})})}}]),t}();k.DEFAULTS=(0,u.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new c.default).retain(r.index).delete(r.length).insert({image:n.target.result}),f.default.sources.USER),e.quill.setSelection(r.index+1,f.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}}),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(e){function t(e,n){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return a(t,m.default),s(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",function(t){p.default.match(t,"enter")?(e.save(),t.preventDefault()):p.default.match(t,"escape")&&(e.cancel(),t.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,f.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,f.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,f.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",f.default.sources.USER),this.quill.setSelection(r+2,f.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}();t.BaseTooltip=E,t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(e<i||t&&e===i&&(null==n.next||0!==n.next.length()))return[n,e];e-=i}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,i=this.find(e),o=i[0],a=e-i[1],l=this.iterator(o);(r=l())&&a<e+t;){var s=r.length();e>a?n(r,e-a,Math.min(t,a+s-e)):n(r,0,Math.min(s,e+t-a)),a+=s}},e.prototype.map=function(e){return this.reduce(function(t,n){return t.push(e(n)),t},[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver(function(e){n.update(e)}),n.observer.observe(n.domNode,l),n.attach(),n}return i(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach(function(e){e.remove()}):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)t.push(i.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},s=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof o.default&&e.children.forEach(s),e.optimize(n))},u=t,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach(function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,function(e){var t=a.find(e,!1);l(t,!1),t instanceof o.default&&t.children.forEach(function(e){l(e,!1)})})):"attributes"===e.type&&l(t.prev)),l(t))}),this.children.forEach(s),i=(u=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)t.push(i.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map(function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)}).forEach(function(e){null!=e&&e!==r&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)}),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(o.default);t.default=s},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach(function(e){e instanceof o.default||(e=e.wrap(t.blotName,!0)),i.attributes.copy(e)}),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(o.default);t.default=l},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){var r=a.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=a.query(r,a.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),o=a.create(n,r);i.parent.insertBefore(o,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(o.default);t.default=l},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=o},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(19),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return i(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some(function(e){return"characterData"===e.type&&e.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(o.default);t.default=l},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(t=n[o],e.call(i,t,o,n))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(e,t){function n(e,t,c){if(e==t)return e?[[u,e]]:[];(c<0||e.length<c)&&(c=null);var f=i(e,t),p=e.substring(0,f);f=o(e=e.substring(f),t=t.substring(f));var d=e.substring(e.length-f),h=function(e,t){var a;if(!e)return[[s,t]];if(!t)return[[l,e]];var c=e.length>t.length?e:t,f=e.length>t.length?t:e,p=c.indexOf(f);if(-1!=p)return a=[[s,c.substring(0,p)],[u,f],[s,c.substring(p+f.length)]],e.length>t.length&&(a[0][0]=a[2][0]=l),a;if(1==f.length)return[[l,e],[s,t]];var d=function(e,t){function n(e,t,n){for(var r,a,l,s,u=e.substring(n,n+Math.floor(e.length/4)),c=-1,f="";-1!=(c=t.indexOf(u,c+1));){var p=i(e.substring(n),t.substring(c)),d=o(e.substring(0,n),t.substring(0,c));f.length<d+p&&(f=t.substring(c-d,c)+t.substring(c,c+p),r=e.substring(0,n-d),a=e.substring(n+p),l=t.substring(0,c-d),s=t.substring(c+p))}return 2*f.length>=e.length?[r,a,l,s,f]:null}var r=e.length>t.length?e:t,a=e.length>t.length?t:e;if(r.length<4||2*a.length<r.length)return null;var l,s,u,c,f,p=n(r,a,Math.ceil(r.length/4)),d=n(r,a,Math.ceil(r.length/2));return p||d?(l=d?p&&p[4].length>d[4].length?p:d:p,e.length>t.length?(s=l[0],u=l[1],c=l[2],f=l[3]):(c=l[0],f=l[1],s=l[2],u=l[3]),[s,u,c,f,l[4]]):null}(e,t);if(d){var h=d[0],g=d[1],v=d[2],m=d[3],y=d[4],b=n(h,v),x=n(g,m);return b.concat([[u,y]],x)}return function(e,t){for(var n=e.length,i=t.length,o=Math.ceil((n+i)/2),a=o,u=2*o,c=new Array(u),f=new Array(u),p=0;p<u;p++)c[p]=-1,f[p]=-1;c[a+1]=0,f[a+1]=0;for(var d=n-i,h=d%2!=0,g=0,v=0,m=0,y=0,b=0;b<o;b++){for(var x=-b+g;x<=b-v;x+=2){var w=a+x;O=x==-b||x!=b&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1;for(var C=O-x;O<n&&C<i&&e.charAt(O)==t.charAt(C);)O++,C++;if(c[w]=O,O>n)v+=2;else if(C>i)g+=2;else if(h){var k=a+d-x;if(k>=0&&k<u&&-1!=f[k]){var E=n-f[k];if(O>=E)return r(e,t,O,C)}}}for(var S=-b+m;S<=b-y;S+=2){var k=a+S;E=S==-b||S!=b&&f[k-1]<f[k+1]?f[k+1]:f[k-1]+1;for(var _=E-S;E<n&&_<i&&e.charAt(n-E-1)==t.charAt(i-_-1);)E++,_++;if(f[k]=E,E>n)y+=2;else if(_>i)m+=2;else if(!h){var w=a+d-S;if(w>=0&&w<u&&-1!=c[w]){var O=c[w],C=a+O-w;if(O>=(E=n-E))return r(e,t,O,C)}}}}return[[l,e],[s,t]]}(e,t)}(e=e.substring(0,e.length-f),t=t.substring(0,t.length-f));return p&&h.unshift([u,p]),d&&h.push([u,d]),function e(t){t.push([u,""]);for(var n,r=0,a=0,c=0,f="",p="";r<t.length;)switch(t[r][0]){case s:c++,p+=t[r][1],r++;break;case l:a++,f+=t[r][1],r++;break;case u:a+c>1?(0!==a&&0!==c&&(0!==(n=i(p,f))&&(r-a-c>0&&t[r-a-c-1][0]==u?t[r-a-c-1][1]+=p.substring(0,n):(t.splice(0,0,[u,p.substring(0,n)]),r++),p=p.substring(n),f=f.substring(n)),0!==(n=o(p,f))&&(t[r][1]=p.substring(p.length-n)+t[r][1],p=p.substring(0,p.length-n),f=f.substring(0,f.length-n))),0===a?t.splice(r-c,a+c,[s,p]):0===c?t.splice(r-a,a+c,[l,f]):t.splice(r-a-c,a+c,[l,f],[s,p]),r=r-a-c+(a?1:0)+(c?1:0)+1):0!==r&&t[r-1][0]==u?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,c=0,a=0,f="",p=""}""===t[t.length-1][1]&&t.pop();var d=!1;for(r=1;r<t.length-1;)t[r-1][0]==u&&t[r+1][0]==u&&(t[r][1].substring(t[r][1].length-t[r-1][1].length)==t[r-1][1]?(t[r][1]=t[r-1][1]+t[r][1].substring(0,t[r][1].length-t[r-1][1].length),t[r+1][1]=t[r-1][1]+t[r+1][1],t.splice(r-1,1),d=!0):t[r][1].substring(0,t[r+1][1].length)==t[r+1][1]&&(t[r-1][1]+=t[r+1][1],t[r][1]=t[r][1].substring(t[r+1][1].length)+t[r+1][1],t.splice(r+1,1),d=!0)),r++;d&&e(t)}(h),null!=c&&(h=function(e,t){var n=function(e,t){if(0===t)return[u,e];for(var n=0,r=0;r<e.length;r++){var i=e[r];if(i[0]===l||i[0]===u){var o=n+i[1].length;if(t===o)return[r+1,e];if(t<o){e=e.slice();var a=t-n,s=[i[0],i[1].slice(0,a)],c=[i[0],i[1].slice(a)];return e.splice(r,1,s,c),[r+1,e]}n=o}}throw new Error("cursor_pos is out of bounds!")}(e,t),r=n[1],i=n[0],o=r[i],s=r[i+1];if(null==o)return e;if(o[0]!==u)return e;if(null!=s&&o[1]+s[1]===s[1]+o[1])return r.splice(i,2,s,o),a(r,i,2);if(null!=s&&0===s[1].indexOf(o[1])){r.splice(i,2,[s[0],o[1]],[0,o[1]]);var c=s[1].slice(o[1].length);return c.length>0&&r.splice(i+2,0,[s[0],c]),a(r,i,3)}return e}(h,c)),h=function(e){for(var t=!1,n=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},r=2;r<e.length;r+=1)e[r-2][0]===u&&(i=e[r-2][1]).charCodeAt(i.length-1)>=55296&&i.charCodeAt(i.length-1)<=56319&&e[r-1][0]===l&&n(e[r-1][1])&&e[r][0]===s&&n(e[r][1])&&(t=!0,e[r-1][1]=e[r-2][1].slice(-1)+e[r-1][1],e[r][1]=e[r-2][1].slice(-1)+e[r][1],e[r-2][1]=e[r-2][1].slice(0,-1));var i;if(!t)return e;for(var o=[],r=0;r<e.length;r+=1)e[r][1].length>0&&o.push(e[r]);return o}(h)}function r(e,t,r,i){var o=e.substring(0,r),a=t.substring(0,i),l=e.substring(r),s=t.substring(i),u=n(o,a),c=n(l,s);return u.concat(c)}function i(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function o(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function a(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var i=e[r],o=e[r+1];i[0]===o[1]&&e.splice(r,2,[i[0],i[1]+o[1]])}return e}var l=-1,s=1,u=0,c=n;c.INSERT=s,c.DELETE=l,c.EQUAL=u,e.exports=c},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();(t=e.exports=i?n:r).supported=n,t.unsupported=r},function(e,t){"use strict";function n(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(){this._events=new n,this._eventsCount=0}var o=Object.prototype.hasOwnProperty,a="~";Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(a=!1)),i.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)o.call(e,t)&&n.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},i.prototype.listeners=function(e,t){var n=a?a+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,l=new Array(o);i<o;i++)l[i]=r[i].fn;return l},i.prototype.emit=function(e,t,n,r,i,o){var l=a?a+e:e;if(!this._events[l])return!1;var s,u,c=this._events[l],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,o),!0}for(u=1,s=new Array(f-1);u<f;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var p,d=c.length;for(u=0;u<d;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!s)for(p=1,s=new Array(f-1);p<f;p++)s[p-1]=arguments[p];c[u].fn.apply(c[u].context,s)}}return!0},i.prototype.on=function(e,t,n){var i=new r(t,n||this),o=a?a+e:e;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},i.prototype.once=function(e,t,n){var i=new r(t,n||this,!0),o=a?a+e:e;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},i.prototype.removeListener=function(e,t,r,i){var o=a?a+e:e;if(!this._events[o])return this;if(!t)return 0==--this._eventsCount?this._events=new n:delete this._events[o],this;var l=this._events[o];if(l.fn)l.fn!==t||i&&!l.once||r&&l.context!==r||(0==--this._eventsCount?this._events=new n:delete this._events[o]);else{for(var s=0,u=[],c=l.length;s<c;s++)(l[s].fn!==t||i&&!l[s].once||r&&l[s].context!==r)&&u.push(l[s]);u.length?this._events[o]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new n:delete this._events[o]}return this},i.prototype.removeAllListeners=function(e){var t;return e?(t=a?a+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new n:delete this._events[t])):(this._events=new n,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prototype.setMaxListeners=function(){return this},i.prefixed=a,i.EventEmitter=i,void 0!==e&&(e.exports=i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t,n){return"object"===(void 0===t?"undefined":g(t))?Object.keys(t).reduce(function(e,n){return o(e,n,t[n])},e):e.reduce(function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,y.default)({},i({},t,n),r.attributes))},new b.default)}function a(e){return e.nodeType!==Node.ELEMENT_NODE?{}:e["__ql-computed-style"]||(e["__ql-computed-style"]=window.getComputedStyle(e))}function l(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var i=e.ops[r];if("string"!=typeof i.insert)break;n=i.insert+n}return n.slice(-1*t.length)===t}function s(e){return 0!==e.childNodes.length&&["block","list-item"].indexOf(a(e).display)>-1}function u(e,t,n){return o(n,e,!0)}function c(e,t){var n=x.default.Attributor.Attribute.keys(e),r=x.default.Attributor.Class.keys(e),i=x.default.Attributor.Style.keys(e),a={};return n.concat(r).concat(i).forEach(function(t){var n=x.default.query(t,x.default.Scope.ATTRIBUTE);null!=n&&(a[n.attrName]=n.value(e),a[n.attrName])||(null==(n=A[t])||n.attrName!==t&&n.keyName!==t||(a[n.attrName]=n.value(e)||void 0),null==(n=L[t])||n.attrName!==t&&n.keyName!==t||(n=L[t],a[n.attrName]=n.value(e)||void 0))}),Object.keys(a).length>0&&(t=o(t,a)),t}function f(e,t){var n=x.default.query(e);if(null==n)return t;if(n.prototype instanceof x.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new b.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=o(t,n.blotName,n.formats(e)));return t}function p(e,t){return l(t,"\n")||(s(e)||t.length()>0&&e.nextSibling&&s(e.nextSibling))&&t.insert("\n"),t}function d(e,t){if(s(e)&&null!=e.nextElementSibling&&!l(t,"\n\n")){var n=e.offsetHeight+parseFloat(a(e).marginTop)+parseFloat(a(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function h(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!a(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&s(e.parentNode)||null!=e.previousSibling&&s(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&s(e.parentNode)||null!=e.nextSibling&&s(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=r(n(3)),b=r(n(2)),x=r(n(0)),w=r(n(5)),C=r(n(10)),k=r(n(9)),E=n(36),S=n(37),_=r(n(13)),O=n(26),T=n(38),M=n(39),N=n(40),j=(0,C.default)("quill:clipboard"),I="__ql-matcher",P=[[Node.TEXT_NODE,h],[Node.TEXT_NODE,p],["br",function(e,t){return l(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,p],[Node.ELEMENT_NODE,f],[Node.ELEMENT_NODE,d],[Node.ELEMENT_NODE,c],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===a(e).fontStyle&&(n.italic=!0),r.fontWeight&&(a(e).fontWeight.startsWith("bold")||parseInt(a(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=o(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new b.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=x.default.query(e);if(null==n||"list-item"!==n.blotName||!l(t,"\n"))return t;for(var r=-1,i=e.parentNode;!i.classList.contains("ql-clipboard");)"list"===(x.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?t:t.compose((new b.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",u.bind(u,"bold")],["i",u.bind(u,"italic")],["style",function(){return new b.default}]],A=[E.AlignAttribute,T.DirectionAttribute].reduce(function(e,t){return e[t.keyName]=t,e},{}),L=[E.AlignStyle,S.BackgroundStyle,O.ColorStyle,T.DirectionStyle,M.FontStyle,N.SizeStyle].reduce(function(e,t){return e[t.keyName]=t,e},{}),D=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],P.concat(r.options.matchers).forEach(function(e){var t=v(e,2),i=t[0],o=t[1];(n.matchVisual||o!==d)&&r.addMatcher(i,o)}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,k.default),m(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[_.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new b.default).insert(n,i({},_.default.blotName,t[_.default.blotName]))}var r=this.prepareMatching(),o=v(r,2),a=o[0],s=o[1],u=function e(t,n,r){return t.nodeType===t.TEXT_NODE?r.reduce(function(e,n){return n(t,e)},new b.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(i,o){var a=e(o,n,r);return o.nodeType===t.ELEMENT_NODE&&(a=n.reduce(function(e,t){return t(o,e)},a),a=(o[I]||[]).reduce(function(e,t){return t(o,e)},a)),i.concat(a)},new b.default):new b.default}(this.container,a,s);return l(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new b.default).retain(u.length()-1).delete(1))),j.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,w.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new b.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),w.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new b.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(w.default.sources.SILENT),setTimeout(function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,w.default.sources.USER),t.quill.setSelection(r.length()-n.length,w.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach(function(r){var i=v(r,2),o=i[0],a=i[1];switch(o){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(o),function(e){e[I]=e[I]||[],e[I].push(a)})}}),[t,n]}}]),t}();D.DEFAULTS={matchers:[],matchVisual:!0},t.default=D,t.matchAttributor=c,t.matchBlot=f,t.matchNewline=p,t.matchSpacing=d,t.matchText=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},a=n(6),l=(r=a)&&r.__esModule?r:{default:r},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default),i(t,[{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}();s.blotName="bold",s.tagName=["STRONG","B"],t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function a(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(function(e){if("string"==typeof e)o(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?function(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach(function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)}),e.appendChild(r)}(n,t,r):o(n,t,r)}}),e.appendChild(n)})}Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var l=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=r(n(2)),c=r(n(0)),f=r(n(5)),p=r(n(10)),d=r(n(9)),h=(0,p.default)("quill:toolbar"),g=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(r.options.container)){var o=document.createElement("div");a(o,r.options.container),e.container.parentNode.insertBefore(o,e.container),r.container=o}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;if(!(r.container instanceof HTMLElement)){var s;return s=h.error("Container required for toolbar",r.options),i(r,s)}return r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach(function(e){r.addHandler(e,r.options.handlers[e])}),[].forEach.call(r.container.querySelectorAll("button, select"),function(e){r.attach(e)}),r.quill.on(f.default.events.EDITOR_CHANGE,function(e,t){e===f.default.events.SELECTION_CHANGE&&r.update(t)}),r.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){var e=r.quill.selection.getRange(),t=l(e,1)[0];r.update(t)}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,d.default),s(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,function(e){return 0===e.indexOf("ql-")});if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void h.warn("ignoring attaching to disabled format",n,e);if(null==c.default.query(n))return void h.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,function(r){var i=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var o=e.options[e.selectedIndex];i=!o.hasAttribute("selected")&&(o.value||!1)}else i=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var a=t.quill.selection.getRange(),s=l(a,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,i);else if(c.default.query(n).prototype instanceof c.default.Embed){if(!(i=prompt("Enter "+n)))return;t.quill.updateContents((new u.default).retain(s.index).delete(s.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,i)),f.default.sources.USER)}else t.quill.format(n,i,f.default.sources.USER);t.update(s)}),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach(function(n){var r=l(n,2),i=r[0],o=r[1];if("SELECT"===o.tagName){var a=void 0;if(null==e)a=null;else if(null==t[i])a=o.querySelector("option[selected]");else if(!Array.isArray(t[i])){var s=t[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),a=o.querySelector('option[value="'+s+'"]')}null==a?(o.value="",o.selectedIndex=-1):a.selected=!0}else if(null==e)o.classList.remove("ql-active");else if(o.hasAttribute("value")){var u=t[i]===o.getAttribute("value")||null!=t[i]&&t[i].toString()===o.getAttribute("value")||null==t[i]&&!o.getAttribute("value");o.classList.toggle("ql-active",u)}else o.classList.toggle("ql-active",null!=t[i])})}}]),t}();g.DEFAULTS={},g.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach(function(t){null!=c.default.query(t,c.default.Scope.INLINE)&&e.quill.format(t,!1)})}else this.quill.removeFormat(t,f.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",f.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,f.default.sources.USER),this.quill.format("direction",e,f.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var i="+1"===e?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,f.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,f.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,f.default.sources.USER):this.quill.format("list","unchecked",f.default.sources.USER):this.quill.format("list",e,f.default.sources.USER)}}},t.default=g,t.addControls=a},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},a=n(28),l=(r=a)&&r.__esModule?r:{default:r},s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(e){e.classList.add("ql-primary")}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default),i(t,[{key:"buildItem",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),i=e?e.getAttribute("data-value")||"":"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),t}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(28),a=(r=o)&&r.__esModule?r:{default:r},l=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),function(e){e.innerHTML=n[e.getAttribute("data-value")||""]}),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),i(t,[{key:"selectItem",value:function(e,n){(function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n){var r=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"}),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=t+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=t+o+"px"),i.bottom>r.bottom){var a=i.bottom-i.top,l=e.bottom-e.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=r(n(3)),f=r(n(8)),p=n(43),d=r(p),h=r(n(27)),g=n(15),v=r(n(41)),m=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(e){function t(e,n){i(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return a(t,d.default),u(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),v.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(t,n){e.handlers.link.call(e,!n.format.link)})}}]),t}();y.DEFAULTS=(0,c.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return a(t,p.BaseTooltip),u(t,[{key:"listen",value:function(){var e=this;s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,f.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()}),this.quill.on(f.default.events.SELECTION_CHANGE,function(t,n,r){if(null!=t){if(0===t.length&&r===f.default.sources.USER){var i=e.quill.scroll.descendant(h.default,t.index),o=l(i,2),a=o[0],s=o[1];if(null!=a){e.linkRange=new g.Range(t.index-s,a.length());var u=h.default.formats(a.domNode);return e.preview.textContent=u,e.preview.setAttribute("href",u),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}})}},{key:"show",value:function(){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}();b.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=n(36),a=n(38),l=n(64),s=r(n(65)),u=r(n(66)),c=n(67),f=r(c),p=n(37),d=n(26),h=n(39),g=n(40),v=r(n(56)),m=r(n(68)),y=r(n(27)),b=r(n(69)),x=r(n(70)),w=r(n(71)),C=r(n(72)),k=r(n(73)),E=n(13),S=r(E),_=r(n(74)),O=r(n(75)),T=r(n(57)),M=r(n(41)),N=r(n(28)),j=r(n(59)),I=r(n(60)),P=r(n(61)),A=r(n(108)),L=r(n(62));i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":h.FontClass,"attributors/class/size":g.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":h.FontStyle,"attributors/style/size":g.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":l.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":h.FontClass,"formats/size":g.SizeClass,"formats/blockquote":s.default,"formats/code-block":S.default,"formats/header":u.default,"formats/list":f.default,"formats/bold":v.default,"formats/code":E.Code,"formats/italic":m.default,"formats/link":y.default,"formats/script":b.default,"formats/strike":x.default,"formats/underline":w.default,"formats/image":C.default,"formats/video":k.default,"formats/list/item":c.ListItem,"modules/formula":_.default,"modules/syntax":O.default,"modules/toolbar":T.default,"themes/bubble":A.default,"themes/snow":L.default,"ui/icons":M.default,"ui/picker":N.default,"ui/icon-picker":I.default,"ui/color-picker":j.default,"ui/tooltip":P.default},!0),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},s=new(function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default.Attributor.Class),i(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}())("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(4),o=(r=i)&&r.__esModule?r:{default:r},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),t}();a.blotName="blockquote",a.tagName="blockquote",t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(4),a=(r=o)&&r.__esModule?r:{default:r},l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),i(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}();l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},u=r(n(0)),c=r(n(4)),f=r(n(25)),p=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,c.default),l(t,[{key:"format",value:function(e,n){e!==d.blotName||n?s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(u.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:s(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}();p.blotName="list-item",p.tagName="LI";var d=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),i=u.default.find(t.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return a(t,f.default),l(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=s(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),l(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof p)s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=u.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}();d.blotName="list",d.scope=u.default.Scope.BLOCK_BLOT,d.tagName=["OL","UL"],d.defaultChild="list-item",d.allowedChildren=[p],t.ListItem=p,t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(56),o=(r=i)&&r.__esModule?r:{default:r},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),t}();a.blotName="italic",a.tagName=["EM","I"],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(6),a=(r=o)&&r.__esModule?r:{default:r},l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default),i(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)}(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}();l.blotName="script",l.tagName=["SUB","SUP"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(6),o=(r=i)&&r.__esModule?r:{default:r},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),t}();a.blotName="strike",a.tagName="S",t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(6),o=(r=i)&&r.__esModule?r:{default:r},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),t}();a.blotName="underline",a.tagName="U",t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},a=n(0),l=(r=a)&&r.__esModule?r:{default:r},s=n(27),u=["alt","height","width"],c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default.Embed),i(t,[{key:"format",value:function(e,n){u.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return u.reduce(function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t},{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}();c.blotName="image",c.tagName="IMG",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},a=n(4),l=n(27),s=(r=l)&&r.__esModule?r:{default:r},u=["height","width"],c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.BlockEmbed),i(t,[{key:"format",value:function(e,n){u.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return u.reduce(function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t},{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}();c.blotName="video",c.className="ql-video",c.tagName="IFRAME",t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=r(n(35)),u=r(n(5)),c=r(n(9)),f=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,s.default),l(t,null,[{key:"create",value:function(e){var n=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)}(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}();f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var p=function(e){function t(){i(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return a(t,c.default),l(t,null,[{key:"register",value:function(){u.default.register(f,!0)}}]),t}();t.FormulaBlot=f,t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=r(n(0)),u=r(n(5)),c=r(n(9)),f=r(n(13)),p=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,f.default),l(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}();p.className="ql-syntax";var d=new s.default.Attributor.Class("token","hljs",{scope:s.default.Scope.INLINE}),h=function(e){function t(e,n){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var a=null;return r.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(a),a=setTimeout(function(){r.highlight(),a=null},r.options.interval)}),r.highlight(),r}return a(t,c.default),l(t,null,[{key:"register",value:function(){u.default.register(d,!0),u.default.register(p,!0)}}]),l(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(p).forEach(function(t){t.highlight(e.options.highlight)}),this.quill.update(u.default.sources.SILENT),null!=t&&this.quill.setSelection(t,u.default.sources.SILENT)}}}]),t}();h.DEFAULTS={highlight:function(){return null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value}}(),interval:1e3},t.CodeBlock=p,t.CodeToken=d,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var l=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=r(n(3)),c=r(n(8)),f=n(43),p=r(f),d=n(15),h=r(n(41)),g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=function(e){function t(e,n){i(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return a(t,p.default),s(t,[{key:"extendToolbar",value:function(e){this.tooltip=new m(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),h.default)}}]),t}();v.DEFAULTS=(0,u.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var m=function(e){function t(e,n){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(c.default.events.EDITOR_CHANGE,function(e,t,n,i){if(e===c.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&i===c.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(t.index,t.length);if(1===o.length)r.position(r.quill.getBounds(t));else{var a=o[o.length-1],l=r.quill.getIndex(a),s=Math.min(a.length()-1,t.index+t.length-l),u=r.quill.getBounds(new d.Range(l,s));r.position(u)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return a(t,f.BaseTooltip),s(t,[{key:"listen",value:function(){var e=this;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){e.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}();m.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=m,t.default=v},function(e,t,n){e.exports=n(63)}]).default})}).call(t,n(543).Buffer)},function(e,t,n){"use strict";var r=n(168),i=n.n(r),o={createEditor:function(e,t){var n=new i.a(e,t);return void 0!==t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},hookEditor:function(e){var t=this.makeUnprivilegedEditor(e);this.handleTextChange=function(n,r,i){this.onEditorChangeText&&(this.onEditorChangeText(e.root.innerHTML,n,i,t),this.onEditorChangeSelection(e.getSelection(),i,t))}.bind(this),this.handleSelectionChange=function(e,n,r){this.onEditorChangeSelection&&this.onEditorChangeSelection(e,r,t)}.bind(this),e.on("text-change",this.handleTextChange),e.on("selection-change",this.handleSelectionChange)},unhookEditor:function(e){e.off("selection-change"),e.off("text-change")},setEditorReadOnly:function(e,t){t?e.disable():e.enable()},setEditorContents:function(e,t){var n=e.getSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),n&&e.hasFocus()&&this.setEditorSelection(e,n)},setEditorSelection:function(e,t){if(t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index))}e.setSelection(t)},setEditorTabIndex:function(e,t){e.editor&&e.editor.scroll&&e.editor.scroll.domNode&&(e.editor.scroll.domNode.tabIndex=t)},makeUnprivilegedEditor:function(e){var t=e;return{getLength:function(){return t.getLength.apply(t,arguments)},getText:function(){return t.getText.apply(t,arguments)},getHTML:function(){return t.root.innerHTML},getContents:function(){return t.getContents.apply(t,arguments)},getSelection:function(){return t.getSelection.apply(t,arguments)},getBounds:function(){return t.getBounds.apply(t,arguments)}}}};t.a=o},function(e,t,n){var r=n(548)(n(627));e.exports=r},function(e,t,n){function r(e){var t=this.__data__=new i(e);this.size=t.size}var i=n(54),o=n(556),a=n(557),l=n(558),s=n(559),u=n(560);r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=l,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t,n){var r=n(31),i=n(32);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(16))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(580),i=n(176),o=n(583);e.exports=function(e,t,n,a,l,s){var u=1&n,c=e.length,f=t.length;if(c!=f&&!(u&&f>c))return!1;var p=s.get(e);if(p&&s.get(t))return p==t;var d=-1,h=!0,g=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++d<c;){var v=e[d],m=t[d];if(a)var y=u?a(m,v,d,t,e,s):a(v,m,d,e,t,s);if(void 0!==y){if(y)continue;h=!1;break}if(g){if(!i(t,function(e,t){if(!o(g,t)&&(v===e||l(v,e,n,a,s)))return g.push(t)})){h=!1;break}}else if(v!==m&&!l(v,m,n,a,s)){h=!1;break}}return s.delete(e),s.delete(t),h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(597),i=n(33),o=Object.prototype,a=o.hasOwnProperty,l=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},function(e,t,n){(function(e){var r=n(12),i=n(598),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=a&&a.exports===o?r.Buffer:void 0,s=(l?l.isBuffer:void 0)||i;e.exports=s}).call(t,n(14)(e))},function(e,t,n){var r=n(599),i=n(600),o=n(601),a=o&&o.isTypedArray,l=a?i(a):r;e.exports=l},function(e,t,n){var r=n(32);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(183),i=n(62);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(13),i=n(107),o=n(614),a=n(617);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(104);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";!function(t){e.exports=t(n(0))}(function(e){function t(t){var n=e.createElement.bind(null,t);return n.type=t,n}return{a:t("a"),abbr:t("abbr"),address:t("address"),area:t("area"),article:t("article"),aside:t("aside"),audio:t("audio"),b:t("b"),base:t("base"),bdi:t("bdi"),bdo:t("bdo"),big:t("big"),blockquote:t("blockquote"),body:t("body"),br:t("br"),button:t("button"),canvas:t("canvas"),caption:t("caption"),cite:t("cite"),code:t("code"),col:t("col"),colgroup:t("colgroup"),data:t("data"),datalist:t("datalist"),dd:t("dd"),del:t("del"),details:t("details"),dfn:t("dfn"),dialog:t("dialog"),div:t("div"),dl:t("dl"),dt:t("dt"),em:t("em"),embed:t("embed"),fieldset:t("fieldset"),figcaption:t("figcaption"),figure:t("figure"),footer:t("footer"),form:t("form"),h1:t("h1"),h2:t("h2"),h3:t("h3"),h4:t("h4"),h5:t("h5"),h6:t("h6"),head:t("head"),header:t("header"),hgroup:t("hgroup"),hr:t("hr"),html:t("html"),i:t("i"),iframe:t("iframe"),img:t("img"),input:t("input"),ins:t("ins"),kbd:t("kbd"),keygen:t("keygen"),label:t("label"),legend:t("legend"),li:t("li"),link:t("link"),main:t("main"),map:t("map"),mark:t("mark"),menu:t("menu"),menuitem:t("menuitem"),meta:t("meta"),meter:t("meter"),nav:t("nav"),noscript:t("noscript"),object:t("object"),ol:t("ol"),optgroup:t("optgroup"),option:t("option"),output:t("output"),p:t("p"),param:t("param"),picture:t("picture"),pre:t("pre"),progress:t("progress"),q:t("q"),rp:t("rp"),rt:t("rt"),ruby:t("ruby"),s:t("s"),samp:t("samp"),script:t("script"),section:t("section"),select:t("select"),small:t("small"),source:t("source"),span:t("span"),strong:t("strong"),style:t("style"),sub:t("sub"),summary:t("summary"),sup:t("sup"),table:t("table"),tbody:t("tbody"),td:t("td"),textarea:t("textarea"),tfoot:t("tfoot"),th:t("th"),thead:t("thead"),time:t("time"),title:t("title"),tr:t("tr"),track:t("track"),u:t("u"),ul:t("ul"),var:t("var"),video:t("video"),wbr:t("wbr"),circle:t("circle"),clipPath:t("clipPath"),defs:t("defs"),ellipse:t("ellipse"),g:t("g"),image:t("image"),line:t("line"),linearGradient:t("linearGradient"),mask:t("mask"),path:t("path"),pattern:t("pattern"),polygon:t("polygon"),polyline:t("polyline"),radialGradient:t("radialGradient"),rect:t("rect"),stop:t("stop"),svg:t("svg"),text:t("text"),tspan:t("tspan")}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(15),i=n.n(r),o=n(0),a=n.n(o),l=n(234);i.a.render(a.a.createElement(l.a,null),document.getElementById("wprm-settings"))},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);yr(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function i(){if(Tr)for(var e in Mr){var t=Mr[e],n=Tr.indexOf(e);if(-1<n||r("96",e),!Nr[n])for(var i in t.extractEvents||r("97",e),Nr[n]=t,n=t.eventTypes){var a=void 0,l=n[i],s=t,u=i;jr.hasOwnProperty(u)&&r("99",u),jr[u]=l;var c=l.phasedRegistrationNames;if(c){for(a in c)c.hasOwnProperty(a)&&o(c[a],s,u);a=!0}else l.registrationName?(o(l.registrationName,s,u),a=!0):a=!1;a||r("98",i,e)}}}function o(e,t,n){Ir[e]&&r("100",e),Ir[e]=t,Pr[e]=t.eventTypes[n].dependencies}function a(e){Tr&&r("101"),Tr=Array.prototype.slice.call(e),i()}function l(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];Mr.hasOwnProperty(t)&&Mr[t]===o||(Mr[t]&&r("102",t),Mr[t]=o,n=!0)}n&&i()}function s(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=Rr(r),Or.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function u(e,t){return null==t&&r("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function c(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function f(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var i=0;i<n.length&&!e.isPropagationStopped();i++)s(e,t,n[i],r[i]);else n&&s(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function p(e){return f(e,!0)}function d(e){return f(e,!1)}function h(e,t){var n=e.stateNode;if(!n)return null;var i=Lr(n);if(!i)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&r("231",t,typeof n),n)}function g(e,t){null!==e&&(Fr=u(Fr,e)),e=Fr,Fr=null,e&&(t?c(e,p):c(e,d),Fr&&r("95"),Or.rethrowCaughtError())}function v(e,t,n,r){for(var i=null,o=0;o<Nr.length;o++){var a=Nr[o];a&&(a=a.extractEvents(e,t,n,r))&&(i=u(i,a))}g(i,!1)}function m(e){if(e[Hr])return e[Hr];for(;!e[Hr];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[Hr]).tag||6===e.tag?e:null}function y(e){if(5===e.tag||6===e.tag)return e.stateNode;r("33")}function b(e){return e[Ur]||null}function x(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function w(e,t,n){for(var r=[];e;)r.push(e),e=x(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)}function C(e,t,n){(t=h(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=u(n._dispatchListeners,t),n._dispatchInstances=u(n._dispatchInstances,e))}function k(e){e&&e.dispatchConfig.phasedRegistrationNames&&w(e._targetInst,C,e)}function E(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;w(t=t?x(t):null,C,e)}}function S(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=h(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=u(n._dispatchListeners,t),n._dispatchInstances=u(n._dispatchInstances,e))}function _(e){e&&e.dispatchConfig.registrationName&&S(e._targetInst,null,e)}function O(e){c(e,k)}function T(e,t,n,r){if(n&&r)e:{for(var i=n,o=r,a=0,l=i;l;l=x(l))a++;l=0;for(var s=o;s;s=x(s))l++;for(;0<a-l;)i=x(i),a--;for(;0<l-a;)o=x(o),l--;for(;a--;){if(i===o||i===o.alternate)break e;i=x(i),o=x(o)}i=null}else i=null;for(o=i,i=[];n&&n!==o&&(null===(a=n.alternate)||a!==o);)i.push(n),n=x(n);for(n=[];r&&r!==o&&(null===(a=r.alternate)||a!==o);)n.push(r),r=x(r);for(r=0;r<i.length;r++)S(i[r],"bubbled",e);for(e=n.length;0<e--;)S(n[e],"captured",t)}function M(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function N(e){if(Zr[e])return Zr[e];if(!Gr[e])return e;var t,n=Gr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Yr)return Zr[e]=n[t];return e}function j(){return!ei&&xr.canUseDOM&&(ei="textContent"in document.documentElement?"textContent":"innerText"),ei}function I(){if(ti._fallbackText)return ti._fallbackText;var e,t,n=ti._startText,r=n.length,i=P(),o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return ti._fallbackText=i.slice(e,1<t?1-t:void 0),ti._fallbackText}function P(){return"value"in ti._root?ti._root.value:ti._root[j()]}function A(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Cr.thatReturnsTrue:Cr.thatReturnsFalse,this.isPropagationStopped=Cr.thatReturnsFalse,this}function L(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function D(e){e instanceof this||r("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function R(e){e.eventPool=[],e.getPooled=L,e.release=D}function F(e,t){switch(e){case"keyup":return-1!==ai.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function B(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}function W(e){if(e=Dr(e)){vi&&"function"==typeof vi.restoreControlledState||r("194");var t=Lr(e.stateNode);vi.restoreControlledState(e.stateNode,e.type,t)}}function z(e){yi?bi?bi.push(e):bi=[e]:yi=e}function H(){return null!==yi||null!==bi}function U(){if(yi){var e=yi,t=bi;if(bi=yi=null,W(e),t)for(e=0;e<t.length;e++)W(t[e])}}function q(e,t){return e(t)}function V(e,t,n){return e(t,n)}function G(){}function Z(e,t){if(wi)return e(t);wi=!0;try{return q(e,t)}finally{wi=!1,H()&&(G(),U())}}function Y(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ci[e.type]:"textarea"===t}function K(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function J(e,t){return!(!xr.canUseDOM||t&&!("addEventListener"in document))&&((t=(e="on"+e)in document)||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t)}function X(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=X(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=X(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ee(e){return null===e||void 0===e?null:"function"==typeof(e=Li&&e[Li]||e["@@iterator"])?e:null}function te(e){var t=e.type;if("function"==typeof t)return t.displayName||t.name;if("string"==typeof t)return t;switch(t){case Ii:return"AsyncMode";case ji:return"Context.Consumer";case Oi:return"ReactFragment";case _i:return"ReactPortal";case Mi:return"Profiler("+e.pendingProps.id+")";case Ni:return"Context.Provider";case Ti:return"StrictMode";case Ai:return"Timeout"}if("object"==typeof t&&null!==t)switch(t.$$typeof){case Pi:return""!==(e=t.render.displayName||t.render.name||"")?"ForwardRef("+e+")":"ForwardRef"}return null}function ne(e){var t="";do{e:switch(e.tag){case 0:case 1:case 2:case 5:var n=e._debugOwner,r=e._debugSource,i=te(e),o=null;n&&(o=te(n)),n=r,i="\n in "+(i||"Unknown")+(n?" (at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+")":o?" (created by "+o+")":"");break e;default:i=""}t+=i,e=e.return}while(e);return t}function re(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}function ie(e){return e[1].toUpperCase()}function oe(e,t,n,r){var i=Bi.hasOwnProperty(t)?Bi[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||void 0===t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!Fi.hasOwnProperty(e)||!Ri.hasOwnProperty(e)&&(Di.test(e)?Fi[e]=!0:(Ri[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function ae(e,t){var n=t.checked;return wr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function le(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=pe(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function se(e,t){null!=(t=t.checked)&&oe(e,"checked",t,!1)}function ue(e,t){se(e,t);var n=pe(t.value);null!=n&&("number"===t.type?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n)),t.hasOwnProperty("value")?fe(e,t.type,n):t.hasOwnProperty("defaultValue")&&fe(e,t.type,pe(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ce(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){t=""+e._wrapperState.initialValue;var r=e.value;n||t===r||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==n&&(e.name=n)}function fe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function pe(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function de(e,t,n){return(e=A.getPooled(zi.change,e,t,n)).type="change",z(n),O(e),e}function he(e){g(e,!1)}function ge(e){if(Q(y(e)))return e}function ve(e,t){if("change"===e)return t}function me(){Hi&&(Hi.detachEvent("onpropertychange",ye),Ui=Hi=null)}function ye(e){"value"===e.propertyName&&ge(Ui)&&Z(he,e=de(Ui,e,K(e)))}function be(e,t,n){"focus"===e?(me(),Ui=n,(Hi=t).attachEvent("onpropertychange",ye)):"blur"===e&&me()}function xe(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return ge(Ui)}function we(e,t){if("click"===e)return ge(t)}function Ce(e,t){if("input"===e||"change"===e)return ge(t)}function ke(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Zi[e])&&!!t[e]}function Ee(){return ke}function Se(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function _e(e){2!==Se(e)&&r("188")}function Oe(e){var t=e.alternate;if(!t)return 3===(t=Se(e))&&r("188"),1===t?null:e;for(var n=e,i=t;;){var o=n.return,a=o?o.alternate:null;if(!o||!a)break;if(o.child===a.child){for(var l=o.child;l;){if(l===n)return _e(o),e;if(l===i)return _e(o),t;l=l.sibling}r("188")}if(n.return!==i.return)n=o,i=a;else{l=!1;for(var s=o.child;s;){if(s===n){l=!0,n=o,i=a;break}if(s===i){l=!0,i=o,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,i=o;break}if(s===i){l=!0,i=a,n=o;break}s=s.sibling}l||r("189")}}n.alternate!==i&&r("190")}return 3!==n.tag&&r("188"),n.stateNode.current===n?e:t}function Te(e){if(!(e=Oe(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Me(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Ne(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},uo[e]=t,co[n]=t}function je(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(t),t=m(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],v(e.topLevelType,t,e.nativeEvent,K(e.nativeEvent))}function Ie(e){go=!!e}function Pe(e,t){if(!t)return null;var n=(po(e)?Le:De).bind(null,e);t.addEventListener(e,n,!1)}function Ae(e,t){if(!t)return null;var n=(po(e)?Le:De).bind(null,e);t.addEventListener(e,n,!0)}function Le(e,t){V(De,e,t)}function De(e,t){if(go){var n=K(t);if(null===(n=m(n))||"number"!=typeof n.tag||2===Se(n)||(n=null),ho.length){var r=ho.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Z(je,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ho.length&&ho.push(e)}}}function Re(e){return Object.prototype.hasOwnProperty.call(e,bo)||(e[bo]=yo++,mo[e[bo]]={}),mo[e[bo]]}function Fe(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Be(e,t){var n,r=Fe(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Fe(r)}}function We(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ze(e,t){if(So||null==Co||Co!==kr())return null;var n=Co;return n="selectionStart"in n&&We(n)?{start:n.selectionStart,end:n.selectionEnd}:window.getSelection?{anchorNode:(n=window.getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}:void 0,Eo&&Er(Eo,n)?null:(Eo=n,(e=A.getPooled(wo.select,ko,e,t)).type="select",e.target=Co,O(e),e)}function He(e,t){return e=wr({children:void 0},t),(t=function(e){var t="";return br.Children.forEach(e,function(e){null==e||"string"!=typeof e&&"number"!=typeof e||(t+=e)}),t}(t.children))&&(e.children=t),e}function Ue(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+n,t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function qe(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}}function Ve(e,t){return null!=t.dangerouslySetInnerHTML&&r("91"),wr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ge(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&r("92"),Array.isArray(t)&&(1>=t.length||r("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function Ze(e,t){var n=t.value;null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function Ye(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}function Ke(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Je(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ke(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function Xe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function $e(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=n,o=t[n];i=null==o||"boolean"==typeof o||""===o?"":r||"number"!=typeof o||0===o||Qo.hasOwnProperty(i)&&Qo[i]?(""+o).trim():o+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}function Qe(e,t,n){t&&(ta[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&r("137",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&r("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||r("61")),null!=t.style&&"object"!=typeof t.style&&r("62",n()))}function et(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function tt(e,t){var n=Re(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=Pr[t];for(var r=0;r<t.length;r++){var i=t[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":Ae("scroll",e);break;case"focus":case"blur":Ae("focus",e),Ae("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":J(i,!0)&&Ae(i,e);break;case"invalid":case"submit":case"reset":break;default:-1===Qr.indexOf(i)&&Pe(i,e)}n[i]=!0}}}function nt(e,t,n,r){return n=9===n.nodeType?n:n.ownerDocument,r===Jo.html&&(r=Ke(e)),r===Jo.html?"script"===e?((e=n.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):e="string"==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e}function rt(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function it(e,t,n,r){var i=et(t,n);switch(t){case"iframe":case"object":Pe("load",e);var o=n;break;case"video":case"audio":for(o=0;o<Qr.length;o++)Pe(Qr[o],e);o=n;break;case"source":Pe("error",e),o=n;break;case"img":case"image":case"link":Pe("error",e),Pe("load",e),o=n;break;case"form":Pe("reset",e),Pe("submit",e),o=n;break;case"details":Pe("toggle",e),o=n;break;case"input":le(e,n),o=ae(e,n),Pe("invalid",e),tt(r,"onChange");break;case"option":o=He(e,n);break;case"select":qe(e,n),o=wr({},n,{value:void 0}),Pe("invalid",e),tt(r,"onChange");break;case"textarea":Ge(e,n),o=Ve(e,n),Pe("invalid",e),tt(r,"onChange");break;default:o=n}Qe(t,o,na);var a,l=o;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];"style"===a?$e(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&$o(e,s):"children"===a?"string"==typeof s?("textarea"!==t||""!==s)&&Xe(e,s):"number"==typeof s&&Xe(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Ir.hasOwnProperty(a)?null!=s&&tt(r,a):null!=s&&oe(e,a,s,i))}switch(t){case"input":$(e),ce(e,n,!1);break;case"textarea":$(e),Ye(e);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,null!=(t=n.value)?Ue(e,!!n.multiple,t,!1):null!=n.defaultValue&&Ue(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Cr)}}function ot(e,t,n,r,i){var o=null;switch(t){case"input":n=ae(e,n),r=ae(e,r),o=[];break;case"option":n=He(e,n),r=He(e,r),o=[];break;case"select":n=wr({},n,{value:void 0}),r=wr({},r,{value:void 0}),o=[];break;case"textarea":n=Ve(e,n),r=Ve(e,r),o=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(e.onclick=Cr)}Qe(t,r,na),t=e=void 0;var a=null;for(e in n)if(!r.hasOwnProperty(e)&&n.hasOwnProperty(e)&&null!=n[e])if("style"===e){var l=n[e];for(t in l)l.hasOwnProperty(t)&&(a||(a={}),a[t]="")}else"dangerouslySetInnerHTML"!==e&&"children"!==e&&"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&"autoFocus"!==e&&(Ir.hasOwnProperty(e)?o||(o=[]):(o=o||[]).push(e,null));for(e in r){var s=r[e];if(l=null!=n?n[e]:void 0,r.hasOwnProperty(e)&&s!==l&&(null!=s||null!=l))if("style"===e)if(l){for(t in l)!l.hasOwnProperty(t)||s&&s.hasOwnProperty(t)||(a||(a={}),a[t]="");for(t in s)s.hasOwnProperty(t)&&l[t]!==s[t]&&(a||(a={}),a[t]=s[t])}else a||(o||(o=[]),o.push(e,a)),a=s;else"dangerouslySetInnerHTML"===e?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(o=o||[]).push(e,""+s)):"children"===e?l===s||"string"!=typeof s&&"number"!=typeof s||(o=o||[]).push(e,""+s):"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&(Ir.hasOwnProperty(e)?(null!=s&&tt(i,e),o||l===s||(o=[])):(o=o||[]).push(e,s))}return a&&(o=o||[]).push("style",a),o}function at(e,t,n,r,i){"input"===n&&"radio"===i.type&&null!=i.name&&se(e,i),et(n,r),r=et(n,i);for(var o=0;o<t.length;o+=2){var a=t[o],l=t[o+1];"style"===a?$e(e,l):"dangerouslySetInnerHTML"===a?$o(e,l):"children"===a?Xe(e,l):oe(e,a,l,r)}switch(n){case"input":ue(e,i);break;case"textarea":Ze(e,i);break;case"select":e._wrapperState.initialValue=void 0,t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!i.multiple,null!=(n=i.value)?Ue(e,!!i.multiple,n,!1):t!==!!i.multiple&&(null!=i.defaultValue?Ue(e,!!i.multiple,i.defaultValue,!0):Ue(e,!!i.multiple,i.multiple?[]:"",!1))}}function lt(e,t,n,r,i){switch(t){case"iframe":case"object":Pe("load",e);break;case"video":case"audio":for(r=0;r<Qr.length;r++)Pe(Qr[r],e);break;case"source":Pe("error",e);break;case"img":case"image":case"link":Pe("error",e),Pe("load",e);break;case"form":Pe("reset",e),Pe("submit",e);break;case"details":Pe("toggle",e);break;case"input":le(e,n),Pe("invalid",e),tt(i,"onChange");break;case"select":qe(e,n),Pe("invalid",e),tt(i,"onChange");break;case"textarea":Ge(e,n),Pe("invalid",e),tt(i,"onChange")}for(var o in Qe(t,n,na),r=null,n)if(n.hasOwnProperty(o)){var a=n[o];"children"===o?"string"==typeof a?e.textContent!==a&&(r=["children",a]):"number"==typeof a&&e.textContent!==""+a&&(r=["children",""+a]):Ir.hasOwnProperty(o)&&null!=a&&tt(i,o)}switch(t){case"input":$(e),ce(e,n,!0);break;case"textarea":$(e),Ye(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&(e.onclick=Cr)}return r}function st(e,t){return e.nodeValue!==t}function ut(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function ct(e,t){return"textarea"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html}function ft(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function pt(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function dt(e){return{current:e}}function ht(e){0>ca||(e.current=ua[ca],ua[ca]=null,ca--)}function gt(e,t){ua[++ca]=e.current,e.current=t}function vt(e){return yt(e)?da:fa.current}function mt(e,t){var n=e.type.contextTypes;if(!n)return _r;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function yt(e){return 2===e.tag&&null!=e.type.childContextTypes}function bt(e){yt(e)&&(ht(pa),ht(fa))}function xt(e){ht(pa),ht(fa)}function wt(e,t,n){fa.current!==_r&&r("168"),gt(fa,t),gt(pa,n)}function Ct(e,t){var n=e.stateNode,i=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;for(var o in n=n.getChildContext())o in i||r("108",te(e)||"Unknown",o);return wr({},t,n)}function kt(e){if(!yt(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||_r,da=fa.current,gt(fa,t),gt(pa,pa.current),!0}function Et(e,t){var n=e.stateNode;if(n||r("169"),t){var i=Ct(e,da);n.__reactInternalMemoizedMergedChildContext=i,ht(pa),ht(fa),gt(fa,i)}else ht(pa);gt(pa,t)}function St(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function _t(e,t,n){var r=e.alternate;return null===r?((r=new St(e.tag,t,e.key,e.mode)).type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ot(e,t,n){var i=e.type,o=e.key;if(e=e.props,"function"==typeof i)var a=i.prototype&&i.prototype.isReactComponent?2:0;else if("string"==typeof i)a=5;else switch(i){case Oi:return Tt(e.children,t,n,o);case Ii:a=11,t|=3;break;case Ti:a=11,t|=2;break;case Mi:return(i=new St(15,e,o,4|t)).type=Mi,i.expirationTime=n,i;case Ai:a=16,t|=2;break;default:e:{switch("object"==typeof i&&null!==i?i.$$typeof:null){case Ni:a=13;break e;case ji:a=12;break e;case Pi:a=14;break e;default:r("130",null==i?i:typeof i,"")}a=void 0}}return(t=new St(a,e,o,t)).type=i,t.expirationTime=n,t}function Tt(e,t,n,r){return(e=new St(10,e,r,t)).expirationTime=n,e}function Mt(e,t,n){return(e=new St(6,e,null,t)).expirationTime=n,e}function Nt(e,t,n){return(t=new St(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jt(e,t,n){return e={current:t=new St(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:n,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null},t.stateNode=e}function It(e){return function(t){try{return e(t)}catch(e){}}}function Pt(e){"function"==typeof ha&&ha(e)}function At(e){"function"==typeof ga&&ga(e)}function Lt(e){return{expirationTime:0,baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Dt(e){return{expirationTime:e.expirationTime,baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Rt(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Ft(e,t,n){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t),(0===e.expirationTime||e.expirationTime>n)&&(e.expirationTime=n)}function Bt(e,t,n){var r=e.alternate;if(null===r){var i=e.updateQueue,o=null;null===i&&(i=e.updateQueue=Lt(e.memoizedState))}else i=e.updateQueue,o=r.updateQueue,null===i?null===o?(i=e.updateQueue=Lt(e.memoizedState),o=r.updateQueue=Lt(r.memoizedState)):i=e.updateQueue=Dt(o):null===o&&(o=r.updateQueue=Dt(i));null===o||i===o?Ft(i,t,n):null===i.lastUpdate||null===o.lastUpdate?(Ft(i,t,n),Ft(o,t,n)):(Ft(i,t,n),o.lastUpdate=t)}function Wt(e,t,n){var r=e.updateQueue;null===(r=null===r?e.updateQueue=Lt(e.memoizedState):zt(e,r)).lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=t:(r.lastCapturedUpdate.next=t,r.lastCapturedUpdate=t),(0===r.expirationTime||r.expirationTime>n)&&(r.expirationTime=n)}function zt(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Dt(t)),t}function Ht(e,t,n,r,i,o){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(o,r,i):e;case 3:e.effectTag=-1025&e.effectTag|64;case 0:if(null===(i="function"==typeof(e=n.payload)?e.call(o,r,i):e)||void 0===i)break;return wr({},r,i);case 2:va=!0}return r}function Ut(e,t,n,r,i){if(va=!1,!(0===t.expirationTime||t.expirationTime>i)){for(var o=(t=zt(e,t)).baseState,a=null,l=0,s=t.firstUpdate,u=o;null!==s;){var c=s.expirationTime;c>i?(null===a&&(a=s,o=u),(0===l||l>c)&&(l=c)):(u=Ht(e,0,s,u,n,r),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))),s=s.next}for(c=null,s=t.firstCapturedUpdate;null!==s;){var f=s.expirationTime;f>i?(null===c&&(c=s,null===a&&(o=u)),(0===l||l>f)&&(l=f)):(u=Ht(e,0,s,u,n,r),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))),s=s.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(o=u),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=c,t.expirationTime=l,e.memoizedState=u}}function qt(e,t){"function"!=typeof e&&r("191",e),e.call(t)}function Vt(e,t,n){for(null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),e=t.firstEffect,t.firstEffect=t.lastEffect=null;null!==e;){var r=e.callback;null!==r&&(e.callback=null,qt(r,n)),e=e.nextEffect}for(e=t.firstCapturedEffect,t.firstCapturedEffect=t.lastCapturedEffect=null;null!==e;)null!==(t=e.callback)&&(e.callback=null,qt(t,n)),e=e.nextEffect}function Gt(e,t){return{value:e,source:t,stack:ne(t)}}function Zt(e){var t=e.type._context;gt(ba,t._changedBits),gt(ya,t._currentValue),gt(ma,e),t._currentValue=e.pendingProps.value,t._changedBits=e.stateNode}function Yt(e){var t=ba.current,n=ya.current;ht(ma),ht(ya),ht(ba),(e=e.type._context)._currentValue=n,e._changedBits=t}function Kt(e){return e===xa&&r("174"),e}function Jt(e,t){gt(ka,t),gt(Ca,e),gt(wa,xa);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Je(null,"");break;default:t=Je(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}ht(wa),gt(wa,t)}function Xt(e){ht(wa),ht(Ca),ht(ka)}function $t(e){Ca.current===e&&(ht(wa),ht(Ca))}function Qt(e,t,n){var r=e.memoizedState;r=null===(t=t(n,r))||void 0===t?r:wr({},r,t),e.memoizedState=r,null!==(e=e.updateQueue)&&0===e.expirationTime&&(e.baseState=r)}function en(e,t,n,r,i,o){var a=e.stateNode;return e=e.type,"function"==typeof a.shouldComponentUpdate?a.shouldComponentUpdate(n,i,o):!e.prototype||!e.prototype.isPureReactComponent||(!Er(t,n)||!Er(r,i))}function tn(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ea.enqueueReplaceState(t,t.state,null)}function nn(e,t){var n=e.type,r=e.stateNode,i=e.pendingProps,o=vt(e);r.props=i,r.state=e.memoizedState,r.refs=_r,r.context=mt(e,o),null!==(o=e.updateQueue)&&(Ut(e,o,i,r,t),r.state=e.memoizedState),"function"==typeof(o=e.type.getDerivedStateFromProps)&&(Qt(e,o,i),r.state=e.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(n=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),n!==r.state&&Ea.enqueueReplaceState(r,r.state,null),null!==(o=e.updateQueue)&&(Ut(e,o,i,r,t),r.state=e.memoizedState)),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}function rn(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){var i=void 0;(n=n._owner)&&(2!==n.tag&&r("110"),i=n.stateNode),i||r("147",e);var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=i.refs===_r?i.refs={}:i.refs;null===e?delete t[o]:t[o]=e})._stringRef=o,t)}"string"!=typeof e&&r("148"),n._owner||r("254",e)}return e}function on(e,t){"textarea"!==e.type&&r("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function an(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t,n){return(e=_t(e,t,n)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Mt(n,e.mode,r)).return=e,t):((t=o(t,n,r)).return=e,t)}function u(e,t,n,r){return null!==t&&t.type===n.type?((r=o(t,n.props,r)).ref=rn(e,t,n),r.return=e,r):((r=Ot(n,e.mode,r)).ref=rn(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Nt(n,e.mode,r)).return=e,t):((t=o(t,n.children||[],r)).return=e,t)}function f(e,t,n,r,i){return null===t||10!==t.tag?((t=Tt(n,e.mode,r,i)).return=e,t):((t=o(t,n,r)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Mt(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Si:return(n=Ot(t,e.mode,n)).ref=rn(e,null,t),n.return=e,n;case _i:return(t=Nt(t,e.mode,n)).return=e,t}if(Sa(t)||ee(t))return(t=Tt(t,e.mode,n,null)).return=e,t;on(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Si:return n.key===i?n.type===Oi?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case _i:return n.key===i?c(e,t,n,r):null}if(Sa(n)||ee(n))return null!==i?null:f(e,t,n,r,null);on(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Si:return e=e.get(null===r.key?n:r.key)||null,r.type===Oi?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case _i:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(Sa(r)||ee(r))return f(t,e=e.get(n)||null,r,i,null);on(t,r)}return null}function g(r,o,l,s){for(var u=null,c=null,f=o,g=o=0,v=null;null!==f&&g<l.length;g++){f.index>g?(v=f,f=null):v=f.sibling;var m=d(r,f,l[g],s);if(null===m){null===f&&(f=v);break}e&&f&&null===m.alternate&&t(r,f),o=a(m,o,g),null===c?u=m:c.sibling=m,c=m,f=v}if(g===l.length)return n(r,f),u;if(null===f){for(;g<l.length;g++)(f=p(r,l[g],s))&&(o=a(f,o,g),null===c?u=f:c.sibling=f,c=f);return u}for(f=i(r,f);g<l.length;g++)(v=h(f,r,g,l[g],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),o=a(v,o,g),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach(function(e){return t(r,e)}),u}function v(o,l,s,u){var c=ee(s);"function"!=typeof c&&r("150"),null==(s=c.call(s))&&r("151");for(var f=c=null,g=l,v=l=0,m=null,y=s.next();null!==g&&!y.done;v++,y=s.next()){g.index>v?(m=g,g=null):m=g.sibling;var b=d(o,g,y.value,u);if(null===b){g||(g=m);break}e&&g&&null===b.alternate&&t(o,g),l=a(b,l,v),null===f?c=b:f.sibling=b,f=b,g=m}if(y.done)return n(o,g),c;if(null===g){for(;!y.done;v++,y=s.next())null!==(y=p(o,y.value,u))&&(l=a(y,l,v),null===f?c=y:f.sibling=y,f=y);return c}for(g=i(o,g);!y.done;v++,y=s.next())null!==(y=h(g,o,v,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),l=a(y,l,v),null===f?c=y:f.sibling=y,f=y);return e&&g.forEach(function(e){return t(o,e)}),c}return function(e,i,a,s){var u="object"==typeof a&&null!==a&&a.type===Oi&&null===a.key;u&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case Si:e:{for(c=a.key,u=i;null!==u;){if(u.key===c){if(10===u.tag?a.type===Oi:u.type===a.type){n(e,u.sibling),(i=o(u,a.type===Oi?a.props.children:a.props,s)).ref=rn(e,u,a),i.return=e,e=i;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===Oi?((i=Tt(a.props.children,e.mode,s,a.key)).return=e,e=i):((s=Ot(a,e.mode,s)).ref=rn(e,i,a),s.return=e,e=s)}return l(e);case _i:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(e,i.sibling),(i=o(i,a.children||[],s)).return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}(i=Nt(a,e.mode,s)).return=e,e=i}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==i&&6===i.tag?(n(e,i.sibling),(i=o(i,a,s)).return=e,e=i):(n(e,i),(i=Mt(a,e.mode,s)).return=e,e=i),l(e);if(Sa(a))return g(e,i,a,s);if(ee(a))return v(e,i,a,s);if(c&&on(e,a),void 0===a&&!u)switch(e.tag){case 2:case 1:r("152",(s=e.type).displayName||s.name||"Component")}return n(e,i)}}function ln(e,t){var n=new St(5,null,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function sn(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function un(e){if(Na){var t=Ma;if(t){var n=t;if(!sn(e,t)){if(!(t=ft(n))||!sn(e,t))return e.effectTag|=2,Na=!1,void(Ta=e);ln(Ta,n)}Ta=e,Ma=pt(t)}else e.effectTag|=2,Na=!1,Ta=e}}function cn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;Ta=e}function fn(e){if(e!==Ta)return!1;if(!Na)return cn(e),Na=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!ct(t,e.memoizedProps))for(t=Ma;t;)ln(e,t),t=ft(t);return cn(e),Ma=Ta?ft(e.stateNode):null,!0}function pn(){Ma=Ta=null,Na=!1}function dn(e,t,n){hn(e,t,n,t.expirationTime)}function hn(e,t,n,r){t.child=null===e?Oa(t,null,n,r):_a(t,e.child,n,r)}function gn(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function vn(e,t,n,r,i){gn(e,t);var o=0!=(64&t.effectTag);if(!n&&!o)return r&&Et(t,!1),bn(e,t);n=t.stateNode,ki.current=t;var a=o?null:n.render();return t.effectTag|=1,o&&(hn(e,t,null,i),t.child=null),hn(e,t,a,i),t.memoizedState=n.state,t.memoizedProps=n.props,r&&Et(t,!0),t.child}function mn(e){var t=e.stateNode;t.pendingContext?wt(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wt(0,t.context,!1),Jt(e,t.containerInfo)}function yn(e,t,n,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){switch(i.tag){case 12:var o=0|i.stateNode;if(i.type===t&&0!=(o&n)){for(o=i;null!==o;){var a=o.alternate;if(0===o.expirationTime||o.expirationTime>r)o.expirationTime=r,null!==a&&(0===a.expirationTime||a.expirationTime>r)&&(a.expirationTime=r);else{if(null===a||!(0===a.expirationTime||a.expirationTime>r))break;a.expirationTime=r}o=o.return}o=null}else o=i.child;break;case 13:o=i.type===e.type?null:i.child;break;default:o=i.child}if(null!==o)o.return=i;else for(o=i;null!==o;){if(o===e){o=null;break}if(null!==(i=o.sibling)){i.return=o.return,o=i;break}o=o.return}i=o}}function bn(e,t){if(null!==e&&t.child!==e.child&&r("153"),null!==t.child){var n=_t(e=t.child,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=_t(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function xn(e,t,n){if(0===t.expirationTime||t.expirationTime>n){switch(t.tag){case 3:mn(t);break;case 2:kt(t);break;case 4:Jt(t,t.stateNode.containerInfo);break;case 13:Zt(t)}return null}switch(t.tag){case 0:null!==e&&r("155");var i=t.type,o=t.pendingProps,a=vt(t);return i=i(o,a=mt(t,a)),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(a=t.type,t.tag=2,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,"function"==typeof(a=a.getDerivedStateFromProps)&&Qt(t,a,o),o=kt(t),i.updater=Ea,t.stateNode=i,i._reactInternalFiber=t,nn(t,n),e=vn(e,t,!0,o,n)):(t.tag=1,dn(e,t,i),t.memoizedProps=o,e=t.child),e;case 1:return o=t.type,n=t.pendingProps,pa.current||t.memoizedProps!==n?(o=o(n,i=mt(t,i=vt(t))),t.effectTag|=1,dn(e,t,o),t.memoizedProps=n,e=t.child):e=bn(e,t),e;case 2:if(o=kt(t),null===e)if(null===t.stateNode){var l=t.pendingProps,s=t.type;i=vt(t);var u=2===t.tag&&null!=t.type.contextTypes;l=new s(l,a=u?mt(t,i):_r),t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,l.updater=Ea,t.stateNode=l,l._reactInternalFiber=t,u&&((u=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,u.__reactInternalMemoizedMaskedChildContext=a),nn(t,n),i=!0}else{s=t.type,i=t.stateNode,u=t.memoizedProps,a=t.pendingProps,i.props=u;var c=i.context;l=mt(t,l=vt(t));var f=s.getDerivedStateFromProps;(s="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==a||c!==l)&&tn(t,i,a,l),va=!1;var p=t.memoizedState;c=i.state=p;var d=t.updateQueue;null!==d&&(Ut(t,d,a,i,n),c=t.memoizedState),u!==a||p!==c||pa.current||va?("function"==typeof f&&(Qt(t,f,a),c=t.memoizedState),(u=va||en(t,u,a,p,c,l))?(s||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.effectTag|=4)):("function"==typeof i.componentDidMount&&(t.effectTag|=4),t.memoizedProps=a,t.memoizedState=c),i.props=a,i.state=c,i.context=l,i=u):("function"==typeof i.componentDidMount&&(t.effectTag|=4),i=!1)}else s=t.type,i=t.stateNode,a=t.memoizedProps,u=t.pendingProps,i.props=a,c=i.context,l=mt(t,l=vt(t)),(s="function"==typeof(f=s.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(a!==u||c!==l)&&tn(t,i,u,l),va=!1,c=t.memoizedState,p=i.state=c,null!==(d=t.updateQueue)&&(Ut(t,d,u,i,n),p=t.memoizedState),a!==u||c!==p||pa.current||va?("function"==typeof f&&(Qt(t,f,u),p=t.memoizedState),(f=va||en(t,a,u,c,p,l))?(s||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(u,p,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(u,p,l)),"function"==typeof i.componentDidUpdate&&(t.effectTag|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=u,t.memoizedState=p),i.props=u,i.state=p,i.context=l,i=f):("function"!=typeof i.componentDidUpdate||a===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),i=!1);return vn(e,t,i,o,n);case 3:return mn(t),null!==(o=t.updateQueue)?(i=null!==(i=t.memoizedState)?i.element:null,Ut(t,o,t.pendingProps,null,n),(o=t.memoizedState.element)===i?(pn(),e=bn(e,t)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(Ma=pt(t.stateNode.containerInfo),Ta=t,i=Na=!0),i?(t.effectTag|=2,t.child=Oa(t,null,o,n)):(pn(),dn(e,t,o)),e=t.child)):(pn(),e=bn(e,t)),e;case 5:return Kt(ka.current),(o=Kt(wa.current))!==(i=Je(o,t.type))&&(gt(Ca,t),gt(wa,i)),null===e&&un(t),o=t.type,u=t.memoizedProps,i=t.pendingProps,a=null!==e?e.memoizedProps:null,pa.current||u!==i||((u=1&t.mode&&!!i.hidden)&&(t.expirationTime=1073741823),u&&1073741823===n)?(u=i.children,ct(o,i)?u=null:a&&ct(o,a)&&(t.effectTag|=16),gn(e,t),1073741823!==n&&1&t.mode&&i.hidden?(t.expirationTime=1073741823,t.memoizedProps=i,e=null):(dn(e,t,u),t.memoizedProps=i,e=t.child)):e=bn(e,t),e;case 6:return null===e&&un(t),t.memoizedProps=t.pendingProps,null;case 16:return null;case 4:return Jt(t,t.stateNode.containerInfo),o=t.pendingProps,pa.current||t.memoizedProps!==o?(null===e?t.child=_a(t,null,o,n):dn(e,t,o),t.memoizedProps=o,e=t.child):e=bn(e,t),e;case 14:return o=t.type.render,n=t.pendingProps,i=t.ref,pa.current||t.memoizedProps!==n||i!==(null!==e?e.ref:null)?(dn(e,t,o=o(n,i)),t.memoizedProps=n,e=t.child):e=bn(e,t),e;case 10:return n=t.pendingProps,pa.current||t.memoizedProps!==n?(dn(e,t,n),t.memoizedProps=n,e=t.child):e=bn(e,t),e;case 11:return n=t.pendingProps.children,pa.current||null!==n&&t.memoizedProps!==n?(dn(e,t,n),t.memoizedProps=n,e=t.child):e=bn(e,t),e;case 15:return n=t.pendingProps,t.memoizedProps===n?e=bn(e,t):(dn(e,t,n.children),t.memoizedProps=n,e=t.child),e;case 13:return function(e,t,n){var r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=!0;if(pa.current)a=!1;else if(o===i)return t.stateNode=0,Zt(t),bn(e,t);var l=i.value;if(t.memoizedProps=i,null===o)l=1073741823;else if(o.value===i.value){if(o.children===i.children&&a)return t.stateNode=0,Zt(t),bn(e,t);l=0}else{var s=o.value;if(s===l&&(0!==s||1/s==1/l)||s!=s&&l!=l){if(o.children===i.children&&a)return t.stateNode=0,Zt(t),bn(e,t);l=0}else if(l="function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,l):1073741823,0==(l|=0)){if(o.children===i.children&&a)return t.stateNode=0,Zt(t),bn(e,t)}else yn(t,r,l,n)}return t.stateNode=l,Zt(t),dn(e,t,i.children),t.child}(e,t,n);case 12:e:if(i=t.type,a=t.pendingProps,u=t.memoizedProps,o=i._currentValue,l=i._changedBits,pa.current||0!==l||u!==a){if(t.memoizedProps=a,(void 0===(s=a.unstable_observedBits)||null===s)&&(s=1073741823),t.stateNode=s,0!=(l&s))yn(t,i,l,n);else if(u===a){e=bn(e,t);break e}n=(n=a.children)(o),t.effectTag|=1,dn(e,t,n),e=t.child}else e=bn(e,t);return e;default:r("156")}}function wn(e){e.effectTag|=4}function Cn(e,t){var n=t.pendingProps;switch(t.tag){case 1:return null;case 2:return bt(t),null;case 3:Xt(),xt();var i=t.stateNode;return i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===e||null===e.child)&&(fn(t),t.effectTag&=-3),ja(t),null;case 5:$t(t),i=Kt(ka.current);var o=t.type;if(null!==e&&null!=t.stateNode){var a=e.memoizedProps,l=t.stateNode,s=Kt(wa.current);l=ot(l,o,a,n,i),Ia(e,t,l,o,a,n,i,s),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!n)return null===t.stateNode&&r("166"),null;if(e=Kt(wa.current),fn(t))n=t.stateNode,o=t.type,a=t.memoizedProps,n[Hr]=t,n[Ur]=a,i=lt(n,o,a,e,i),t.updateQueue=i,null!==i&&wn(t);else{(e=nt(o,n,i,e))[Hr]=t,e[Ur]=n;e:for(a=t.child;null!==a;){if(5===a.tag||6===a.tag)e.appendChild(a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}it(e,o,n,i),ut(o,n)&&wn(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Pa(e,t,e.memoizedProps,n);else{if("string"!=typeof n)return null===t.stateNode&&r("166"),null;i=Kt(ka.current),Kt(wa.current),fn(t)?(i=t.stateNode,n=t.memoizedProps,i[Hr]=t,st(i,n)&&wn(t)):((i=rt(n,i))[Hr]=t,t.stateNode=i)}return null;case 14:case 16:case 10:case 11:case 15:return null;case 4:return Xt(),ja(t),null;case 13:return Yt(t),null;case 12:return null;case 0:r("167");default:r("156")}}function kn(e,t){var n=t.source;null===t.stack&&null!==n&&ne(n),null!==n&&te(n),t=t.value,null!==e&&2===e.tag&&te(e);try{t&&t.suppressReactErrorLogging||console.error(t)}catch(e){e&&e.suppressReactErrorLogging||console.error(e)}}function En(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Fn(e,t)}else t.current=null}function Sn(e){switch(At(e),e.tag){case 2:En(e);var t=e.stateNode;if("function"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Fn(e,t)}break;case 5:En(e);break;case 4:Tn(e)}}function _n(e){return 5===e.tag||3===e.tag||4===e.tag}function On(e){e:{for(var t=e.return;null!==t;){if(_n(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var i=t=void 0;switch(n.tag){case 5:t=n.stateNode,i=!1;break;case 3:case 4:t=n.stateNode.containerInfo,i=!0;break;default:r("161")}16&n.effectTag&&(Xe(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||_n(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(5===o.tag||6===o.tag)if(n)if(i){var a=t,l=o.stateNode,s=n;8===a.nodeType?a.parentNode.insertBefore(l,s):a.insertBefore(l,s)}else t.insertBefore(o.stateNode,n);else i?(a=t,l=o.stateNode,8===a.nodeType?a.parentNode.insertBefore(l,a):a.appendChild(l)):t.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function Tn(e){for(var t=e,n=!1,i=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&r("160"),n.tag){case 5:i=n.stateNode,o=!1;break e;case 3:case 4:i=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var a=t,l=a;;)if(Sn(l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===a)break;for(;null===l.sibling;){if(null===l.return||l.return===a)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(a=i,l=t.stateNode,8===a.nodeType?a.parentNode.removeChild(l):a.removeChild(l)):i.removeChild(t.stateNode)}else if(4===t.tag?i=t.stateNode.containerInfo:Sn(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Mn(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var i=t.memoizedProps;e=null!==e?e.memoizedProps:i;var o=t.type,a=t.updateQueue;t.updateQueue=null,null!==a&&(n[Ur]=i,at(n,a,o,e,i))}break;case 6:null===t.stateNode&&r("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 15:case 16:break;default:r("163")}}function Nn(e,t,n){(n=Rt(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){nr(r),kn(e,t)},n}function jn(e,t,n){(n=Rt(n)).tag=3;var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){null===Ya?Ya=new Set([this]):Ya.add(this);var n=t.value,r=t.stack;kn(e,t),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function In(e,t,n,r,i,o){n.effectTag|=512,n.firstEffect=n.lastEffect=null,r=Gt(r,n),e=t;do{switch(e.tag){case 3:return e.effectTag|=1024,void Wt(e,r=Nn(e,r,o),o);case 2:if(t=r,n=e.stateNode,0==(64&e.effectTag)&&null!==n&&"function"==typeof n.componentDidCatch&&(null===Ya||!Ya.has(n)))return e.effectTag|=1024,void Wt(e,r=jn(e,t,o),o)}e=e.return}while(null!==e)}function Pn(e){switch(e.tag){case 2:bt(e);var t=e.effectTag;return 1024&t?(e.effectTag=-1025&t|64,e):null;case 3:return Xt(),xt(),1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 5:return $t(e),null;case 16:return 1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 4:return Xt(),null;case 13:return Yt(e),null;default:return null}}function An(){if(null!==Wa)for(var e=Wa.return;null!==e;){var t=e;switch(t.tag){case 2:bt(t);break;case 3:Xt(),xt();break;case 5:$t(t);break;case 4:Xt();break;case 13:Yt(t)}e=e.return}za=null,Ha=0,Ua=-1,qa=!1,Wa=null,Za=!1}function Ln(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(512&e.effectTag)){t=Cn(t,e);var i=e;if(1073741823===Ha||1073741823!==i.expirationTime){var o=0;switch(i.tag){case 3:case 2:var a=i.updateQueue;null!==a&&(o=a.expirationTime)}for(a=i.child;null!==a;)0!==a.expirationTime&&(0===o||o>a.expirationTime)&&(o=a.expirationTime),a=a.sibling;i.expirationTime=o}if(null!==t)return t;if(null!==n&&0==(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){Za=!0;break}e=n}else{if(null!==(e=Pn(e)))return e.effectTag&=511,e;if(null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512),null!==r)return r;if(null===n)break;e=n}}return null}function Dn(e){var t=xn(e.alternate,e,Ha);return null===t&&(t=Ln(e)),ki.current=null,t}function Rn(e,t,n){Ba&&r("243"),Ba=!0,(t!==Ha||e!==za||null===Wa)&&(An(),Ha=t,Ua=-1,Wa=_t((za=e).current,null,Ha),e.pendingCommitExpirationTime=0);var i=!1;for(qa=!n||Ha<=La;;){try{if(n)for(;null!==Wa&&!tr();)Wa=Dn(Wa);else for(;null!==Wa;)Wa=Dn(Wa)}catch(t){if(null===Wa)i=!0,nr(t);else{null===Wa&&r("271");var o=(n=Wa).return;if(null===o){i=!0,nr(t);break}In(e,o,n,t,0,Ha),Wa=Ln(n)}}break}if(Ba=!1,i)return null;if(null===Wa){if(Za)return e.pendingCommitExpirationTime=t,e.current.alternate;qa&&r("262"),0<=Ua&&setTimeout(function(){var t=e.current.expirationTime;0!==t&&(0===e.remainingExpirationTime||e.remainingExpirationTime<t)&&Gn(e,t)},Ua),function(e){null===el&&r("246"),el.remainingExpirationTime=e}(e.current.expirationTime)}return null}function Fn(e,t){var n;e:{for(Ba&&!Ga&&r("263"),n=e.return;null!==n;){switch(n.tag){case 2:var i=n.stateNode;if("function"==typeof n.type.getDerivedStateFromCatch||"function"==typeof i.componentDidCatch&&(null===Ya||!Ya.has(i))){Bt(n,e=jn(n,e=Gt(t,e),1),1),zn(n,1),n=void 0;break e}break;case 3:Bt(n,e=Nn(n,e=Gt(t,e),1),1),zn(n,1),n=void 0;break e}n=n.return}3===e.tag&&(Bt(e,n=Nn(e,n=Gt(t,e),1),1),zn(e,1)),n=void 0}return n}function Bn(){var e=2+25*(1+((Hn()-2+500)/25|0));return e<=Ra&&(e=Ra+1),Ra=e}function Wn(e,t){return e=0!==Fa?Fa:Ba?Ga?1:Ha:1&t.mode?ul?2+10*(1+((e-2+15)/10|0)):2+25*(1+((e-2+500)/25|0)):1,ul&&(0===nl||e>nl)&&(nl=e),e}function zn(e,t){for(;null!==e;){if((0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!Ba&&0!==Ha&&t<Ha&&An();var i=n.current.expirationTime;Ba&&!Ga&&za===n||Gn(n,i),pl>fl&&r("185")}e=e.return}}function Hn(){return Da=aa()-Aa,La=2+(Da/10|0)}function Un(e){var t=Fa;Fa=2+25*(1+((Hn()-2+500)/25|0));try{return e()}finally{Fa=t}}function qn(e,t,n,r,i){var o=Fa;Fa=1;try{return e(t,n,r,i)}finally{Fa=o}}function Vn(e){if(0!==Xa){if(e>Xa)return;null!==$a&&sa($a)}var t=aa()-Aa;Xa=e,$a=la(Yn,{timeout:10*(e-2)-t})}function Gn(e,t){if(null===e.nextScheduledRoot)e.remainingExpirationTime=t,null===Ja?(Ka=Ja=e,e.nextScheduledRoot=e):(Ja=Ja.nextScheduledRoot=e).nextScheduledRoot=Ka;else{var n=e.remainingExpirationTime;(0===n||t<n)&&(e.remainingExpirationTime=t)}Qa||(ll?sl&&(el=e,tl=1,Qn(e,1,!1)):1===t?Kn():Vn(t))}function Zn(){var e=0,t=null;if(null!==Ja)for(var n=Ja,i=Ka;null!==i;){var o=i.remainingExpirationTime;if(0===o){if((null===n||null===Ja)&&r("244"),i===i.nextScheduledRoot){Ka=Ja=i.nextScheduledRoot=null;break}if(i===Ka)Ka=o=i.nextScheduledRoot,Ja.nextScheduledRoot=o,i.nextScheduledRoot=null;else{if(i===Ja){(Ja=n).nextScheduledRoot=Ka,i.nextScheduledRoot=null;break}n.nextScheduledRoot=i.nextScheduledRoot,i.nextScheduledRoot=null}i=n.nextScheduledRoot}else{if((0===e||o<e)&&(e=o,t=i),i===Ja)break;n=i,i=i.nextScheduledRoot}}null!==(n=el)&&n===t&&1===e?pl++:pl=0,el=t,tl=e}function Yn(e){Jn(0,!0,e)}function Kn(){Jn(1,!1,null)}function Jn(e,t,n){if(al=n,Zn(),t)for(;null!==el&&0!==tl&&(0===e||e>=tl)&&(!rl||Hn()>=tl);)Hn(),Qn(el,tl,!rl),Zn();else for(;null!==el&&0!==tl&&(0===e||e>=tl);)Qn(el,tl,!1),Zn();null!==al&&(Xa=0,$a=null),0!==tl&&Vn(tl),al=null,rl=!1,$n()}function Xn(e,t){Qa&&r("253"),el=e,tl=t,Qn(e,t,!1),Kn(),$n()}function $n(){if(pl=0,null!==cl){var e=cl;cl=null;for(var t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){il||(il=!0,ol=e)}}}if(il)throw e=ol,ol=null,il=!1,e}function Qn(e,t,n){Qa&&r("245"),Qa=!0,n?null!==(n=e.finishedWork)?er(e,n,t):null!==(n=Rn(e,t,!0))&&(tr()?e.finishedWork=n:er(e,n,t)):null!==(n=e.finishedWork)?er(e,n,t):null!==(n=Rn(e,t,!1))&&er(e,n,t),Qa=!1}function er(e,t,n){var i=e.firstBatch;if(null!==i&&i._expirationTime<=n&&(null===cl?cl=[i]:cl.push(i),i._defer))return e.finishedWork=t,void(e.remainingExpirationTime=0);if(e.finishedWork=null,Ga=Ba=!0,(n=t.stateNode).current===t&&r("177"),0===(i=n.pendingCommitExpirationTime)&&r("261"),n.pendingCommitExpirationTime=0,Hn(),ki.current=null,1<t.effectTag)if(null!==t.lastEffect){t.lastEffect.nextEffect=t;var o=t.firstEffect}else o=t;else o=t.firstEffect;ia=go;var a=kr();if(We(a)){if("selectionStart"in a)var l={start:a.selectionStart,end:a.selectionEnd};else e:{var s=window.getSelection&&window.getSelection();if(s&&0!==s.rangeCount){l=s.anchorNode;var u=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{l.nodeType,c.nodeType}catch(e){l=null;break e}var f=0,p=-1,d=-1,h=0,g=0,v=a,m=null;t:for(;;){for(var y;v!==l||0!==u&&3!==v.nodeType||(p=f+u),v!==c||0!==s&&3!==v.nodeType||(d=f+s),3===v.nodeType&&(f+=v.nodeValue.length),null!==(y=v.firstChild);)m=v,v=y;for(;;){if(v===a)break t;if(m===l&&++h===u&&(p=f),m===c&&++g===s&&(d=f),null!==(y=v.nextSibling))break;m=(v=m).parentNode}v=y}l=-1===p||-1===d?null:{start:p,end:d}}else l=null}l=l||{start:0,end:0}}else l=null;for(oa={focusedElem:a,selectionRange:l},Ie(!1),Va=o;null!==Va;){a=!1,l=void 0;try{for(;null!==Va;){if(256&Va.effectTag){var b=Va.alternate;switch((u=Va).tag){case 2:if(256&u.effectTag&&null!==b){var x=b.memoizedProps,w=b.memoizedState,C=u.stateNode;C.props=u.memoizedProps,C.state=u.memoizedState;var k=C.getSnapshotBeforeUpdate(x,w);C.__reactInternalSnapshotBeforeUpdate=k}break;case 3:case 5:case 6:case 4:break;default:r("163")}}Va=Va.nextEffect}}catch(e){a=!0,l=e}a&&(null===Va&&r("178"),Fn(Va,l),null!==Va&&(Va=Va.nextEffect))}for(Va=o;null!==Va;){b=!1,x=void 0;try{for(;null!==Va;){var E=Va.effectTag;if(16&E&&Xe(Va.stateNode,""),128&E){var S=Va.alternate;if(null!==S){var _=S.ref;null!==_&&("function"==typeof _?_(null):_.current=null)}}switch(14&E){case 2:On(Va),Va.effectTag&=-3;break;case 6:On(Va),Va.effectTag&=-3,Mn(Va.alternate,Va);break;case 4:Mn(Va.alternate,Va);break;case 8:Tn(w=Va),w.return=null,w.child=null,w.alternate&&(w.alternate.child=null,w.alternate.return=null)}Va=Va.nextEffect}}catch(e){b=!0,x=e}b&&(null===Va&&r("178"),Fn(Va,x),null!==Va&&(Va=Va.nextEffect))}if(_=oa,S=kr(),E=_.focusedElem,b=_.selectionRange,S!==E&&Sr(document.documentElement,E)){null!==b&&We(E)&&(S=b.start,void 0===(_=b.end)&&(_=S),"selectionStart"in E?(E.selectionStart=S,E.selectionEnd=Math.min(_,E.value.length)):window.getSelection&&(S=window.getSelection(),x=E[j()].length,_=Math.min(b.start,x),b=void 0===b.end?_:Math.min(b.end,x),!S.extend&&_>b&&(x=b,b=_,_=x),x=Be(E,_),w=Be(E,b),x&&w&&(1!==S.rangeCount||S.anchorNode!==x.node||S.anchorOffset!==x.offset||S.focusNode!==w.node||S.focusOffset!==w.offset)&&((C=document.createRange()).setStart(x.node,x.offset),S.removeAllRanges(),_>b?(S.addRange(C),S.extend(w.node,w.offset)):(C.setEnd(w.node,w.offset),S.addRange(C))))),S=[];for(_=E;_=_.parentNode;)1===_.nodeType&&S.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"==typeof E.focus&&E.focus(),E=0;E<S.length;E++)(_=S[E]).element.scrollLeft=_.left,_.element.scrollTop=_.top}for(oa=null,Ie(ia),ia=null,n.current=t,Va=o;null!==Va;){o=!1,E=void 0;try{for(S=i;null!==Va;){var O=Va.effectTag;if(36&O){var T=Va.alternate;switch(b=S,(_=Va).tag){case 2:var M=_.stateNode;if(4&_.effectTag)if(null===T)M.props=_.memoizedProps,M.state=_.memoizedState,M.componentDidMount();else{var N=T.memoizedProps,I=T.memoizedState;M.props=_.memoizedProps,M.state=_.memoizedState,M.componentDidUpdate(N,I,M.__reactInternalSnapshotBeforeUpdate)}var P=_.updateQueue;null!==P&&(M.props=_.memoizedProps,M.state=_.memoizedState,Vt(_,P,M));break;case 3:var A=_.updateQueue;if(null!==A){if(x=null,null!==_.child)switch(_.child.tag){case 5:x=_.child.stateNode;break;case 2:x=_.child.stateNode}Vt(_,A,x)}break;case 5:var L=_.stateNode;null===T&&4&_.effectTag&&ut(_.type,_.memoizedProps)&&L.focus();break;case 6:case 4:case 15:case 16:break;default:r("163")}}if(128&O){_=void 0;var D=Va.ref;if(null!==D){var R=Va.stateNode;switch(Va.tag){case 5:_=R;break;default:_=R}"function"==typeof D?D(_):D.current=_}}var F=Va.nextEffect;Va.nextEffect=null,Va=F}}catch(e){o=!0,E=e}o&&(null===Va&&r("178"),Fn(Va,E),null!==Va&&(Va=Va.nextEffect))}Ba=Ga=!1,Pt(t.stateNode),0===(t=n.current.expirationTime)&&(Ya=null),e.remainingExpirationTime=t}function tr(){return!(null===al||al.timeRemaining()>dl)&&(rl=!0)}function nr(e){null===el&&r("246"),el.remainingExpirationTime=0,il||(il=!0,ol=e)}function rr(e,t){var n=ll;ll=!0;try{return e(t)}finally{(ll=n)||Qa||Kn()}}function ir(e,t){if(ll&&!sl){sl=!0;try{return e(t)}finally{sl=!1}}return e(t)}function or(e,t){Qa&&r("187");var n=ll;ll=!0;try{return qn(e,t)}finally{ll=n,Kn()}}function ar(e,t,n){if(ul)return e(t,n);ll||Qa||0===nl||(Jn(nl,!1,null),nl=0);var r=ul,i=ll;ll=ul=!0;try{return e(t,n)}finally{ul=r,(ll=i)||Qa||Kn()}}function lr(e){var t=ll;ll=!0;try{qn(e)}finally{(ll=t)||Qa||Jn(1,!1,null)}}function sr(e,t,n,i,o){var a=t.current;if(n){var l;n=n._reactInternalFiber;e:{for(2===Se(n)&&2===n.tag||r("170"),l=n;3!==l.tag;){if(yt(l)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}(l=l.return)||r("171")}l=l.stateNode.context}n=yt(n)?Ct(n,l):l}else n=_r;return null===t.context?t.context=n:t.pendingContext=n,t=o,(o=Rt(i)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),Bt(a,o,i),zn(a,i),i}function ur(e){var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?r("188"):r("268",Object.keys(e))),null===(e=Te(t))?null:e.stateNode}function cr(e,t,n,r){var i=t.current;return sr(e,t,n,i=Wn(Hn(),i),r)}function fr(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function pr(e){this._expirationTime=Bn(),this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function dr(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function hr(e,t,n){this._internalRoot=jt(e,t,n)}function gr(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function vr(e,t,n,i,o){gr(n)||r("200");var a=n._reactRootContainer;if(a){if("function"==typeof o){var l=o;o=function(){var e=fr(a._internalRoot);l.call(e)}}null!=e?a.legacy_renderSubtreeIntoContainer(e,t,o):a.render(t,o)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new hr(e,!1,t)}(n,i),"function"==typeof o){var s=o;o=function(){var e=fr(a._internalRoot);s.call(e)}}ir(function(){null!=e?a.legacy_renderSubtreeIntoContainer(e,t,o):a.render(t,o)})}return fr(a._internalRoot)}function mr(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return gr(t)||r("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_i,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}/** @license React v16.4.1
|
28 |
+
* react-dom.production.min.js
|
29 |
+
*
|
30 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
31 |
+
*
|
32 |
+
* This source code is licensed under the MIT license found in the
|
33 |
+
* LICENSE file in the root directory of this source tree.
|
34 |
+
*/
|
35 |
+
var yr=n(34),br=n(0),xr=n(228),wr=n(35),Cr=n(36),kr=n(229),Er=n(230),Sr=n(231),_r=n(67);br||r("227");var Or={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(e,t,n,r,i,o,a,l,s){(function(e,t,n,r,i,o,a,l,s){this._hasCaughtError=!1,this._caughtError=null;var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this._caughtError=e,this._hasCaughtError=!0}}).apply(Or,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,i,o,a,l,s){if(Or.invokeGuardedCallback.apply(this,arguments),Or.hasCaughtError()){var u=Or.clearCaughtError();Or._hasRethrowError||(Or._hasRethrowError=!0,Or._rethrowError=u)}},rethrowCaughtError:function(){return function(){if(Or._hasRethrowError){var e=Or._rethrowError;throw Or._rethrowError=null,Or._hasRethrowError=!1,e}}.apply(Or,arguments)},hasCaughtError:function(){return Or._hasCaughtError},clearCaughtError:function(){if(Or._hasCaughtError){var e=Or._caughtError;return Or._caughtError=null,Or._hasCaughtError=!1,e}r("198")}},Tr=null,Mr={},Nr=[],jr={},Ir={},Pr={},Ar={plugins:Nr,eventNameDispatchConfigs:jr,registrationNameModules:Ir,registrationNameDependencies:Pr,possibleRegistrationNames:null,injectEventPluginOrder:a,injectEventPluginsByName:l},Lr=null,Dr=null,Rr=null,Fr=null,Br={injectEventPluginOrder:a,injectEventPluginsByName:l},Wr={injection:Br,getListener:h,runEventsInBatch:g,runExtractedEventsInBatch:v},zr=Math.random().toString(36).slice(2),Hr="__reactInternalInstance$"+zr,Ur="__reactEventHandlers$"+zr,qr={precacheFiberNode:function(e,t){t[Hr]=e},getClosestInstanceFromNode:m,getInstanceFromNode:function(e){return!(e=e[Hr])||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:y,getFiberCurrentPropsFromNode:b,updateFiberProps:function(e,t){e[Ur]=t}},Vr={accumulateTwoPhaseDispatches:O,accumulateTwoPhaseDispatchesSkipTarget:function(e){c(e,E)},accumulateEnterLeaveDispatches:T,accumulateDirectDispatches:function(e){c(e,_)}},Gr={animationend:M("Animation","AnimationEnd"),animationiteration:M("Animation","AnimationIteration"),animationstart:M("Animation","AnimationStart"),transitionend:M("Transition","TransitionEnd")},Zr={},Yr={};xr.canUseDOM&&(Yr=document.createElement("div").style,"AnimationEvent"in window||(delete Gr.animationend.animation,delete Gr.animationiteration.animation,delete Gr.animationstart.animation),"TransitionEvent"in window||delete Gr.transitionend.transition);var Kr=N("animationend"),Jr=N("animationiteration"),Xr=N("animationstart"),$r=N("transitionend"),Qr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ei=null,ti={_root:null,_startText:null,_fallbackText:null},ni="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),ri={type:null,target:null,currentTarget:Cr.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};wr(A.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Cr.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Cr.thatReturnsTrue)},persist:function(){this.isPersistent=Cr.thatReturnsTrue},isPersistent:Cr.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<ni.length;t++)this[ni[t]]=null}}),A.Interface=ri,A.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return wr(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=wr({},r.Interface,e),n.extend=r.extend,R(n),n},R(A);var ii=A.extend({data:null}),oi=A.extend({data:null}),ai=[9,13,27,32],li=xr.canUseDOM&&"CompositionEvent"in window,si=null;xr.canUseDOM&&"documentMode"in document&&(si=document.documentMode);var ui=xr.canUseDOM&&"TextEvent"in window&&!si,ci=xr.canUseDOM&&(!li||si&&8<si&&11>=si),fi=String.fromCharCode(32),pi={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},di=!1,hi=!1,gi={eventTypes:pi,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(li)e:{switch(e){case"compositionstart":i=pi.compositionStart;break e;case"compositionend":i=pi.compositionEnd;break e;case"compositionupdate":i=pi.compositionUpdate;break e}i=void 0}else hi?F(e,n)&&(i=pi.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=pi.compositionStart);return i?(ci&&(hi||i!==pi.compositionStart?i===pi.compositionEnd&&hi&&(o=I()):(ti._root=r,ti._startText=P(),hi=!0)),i=ii.getPooled(i,t,n,r),o?i.data=o:null!==(o=B(n))&&(i.data=o),O(i),o=i):o=null,(e=ui?function(e,t){switch(e){case"compositionend":return B(t);case"keypress":return 32!==t.which?null:(di=!0,fi);case"textInput":return(e=t.data)===fi&&di?null:e;default:return null}}(e,n):function(e,t){if(hi)return"compositionend"===e||!li&&F(e,t)?(e=I(),ti._root=null,ti._startText=null,ti._fallbackText=null,hi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ci?null:t.data;default:return null}}(e,n))?((t=oi.getPooled(pi.beforeInput,t,n,r)).data=e,O(t)):t=null,null===o?t:null===t?o:[o,t]}},vi=null,mi={injectFiberControlledHostComponent:function(e){vi=e}},yi=null,bi=null,xi={injection:mi,enqueueStateRestore:z,needsStateRestore:H,restoreStateIfNeeded:U},wi=!1,Ci={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},ki=br.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ei="function"==typeof Symbol&&Symbol.for,Si=Ei?Symbol.for("react.element"):60103,_i=Ei?Symbol.for("react.portal"):60106,Oi=Ei?Symbol.for("react.fragment"):60107,Ti=Ei?Symbol.for("react.strict_mode"):60108,Mi=Ei?Symbol.for("react.profiler"):60114,Ni=Ei?Symbol.for("react.provider"):60109,ji=Ei?Symbol.for("react.context"):60110,Ii=Ei?Symbol.for("react.async_mode"):60111,Pi=Ei?Symbol.for("react.forward_ref"):60112,Ai=Ei?Symbol.for("react.timeout"):60113,Li="function"==typeof Symbol&&Symbol.iterator,Di=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ri={},Fi={},Bi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Bi[e]=new re(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Bi[t]=new re(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Bi[e]=new re(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","preserveAlpha"].forEach(function(e){Bi[e]=new re(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Bi[e]=new re(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){Bi[e]=new re(e,3,!0,e.toLowerCase(),null)}),["capture","download"].forEach(function(e){Bi[e]=new re(e,4,!1,e.toLowerCase(),null)}),["cols","rows","size","span"].forEach(function(e){Bi[e]=new re(e,6,!1,e.toLowerCase(),null)}),["rowSpan","start"].forEach(function(e){Bi[e]=new re(e,5,!1,e.toLowerCase(),null)});var Wi=/[\-:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Wi,ie);Bi[t]=new re(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Wi,ie);Bi[t]=new re(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wi,ie);Bi[t]=new re(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),Bi.tabIndex=new re("tabIndex",1,!1,"tabindex",null);var zi={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},Hi=null,Ui=null,qi=!1;xr.canUseDOM&&(qi=J("input")&&(!document.documentMode||9<document.documentMode));var Vi={eventTypes:zi,_isInputEventSupported:qi,extractEvents:function(e,t,n,r){var i=t?y(t):window,o=void 0,a=void 0,l=i.nodeName&&i.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===i.type?o=ve:Y(i)?qi?o=Ce:(o=xe,a=be):(l=i.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=we),o&&(o=o(e,t)))return de(o,n,r);a&&a(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&fe(i,"number",i.value)}},Gi=A.extend({view:null,detail:null}),Zi={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Yi=Gi.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ee,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}}),Ki=Yi.extend({pointerId:null,width:null,height:null,pressure:null,tiltX:null,tiltY:null,pointerType:null,isPrimary:null}),Ji={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Xi={eventTypes:Ji,extractEvents:function(e,t,n,r){var i="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?m(t):null):o=null,o===t)return null;var a=void 0,l=void 0,s=void 0,u=void 0;return"mouseout"===e||"mouseover"===e?(a=Yi,l=Ji.mouseLeave,s=Ji.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Ki,l=Ji.pointerLeave,s=Ji.pointerEnter,u="pointer"),e=null==o?i:y(o),i=null==t?i:y(t),(l=a.getPooled(l,o,n,r)).type=u+"leave",l.target=e,l.relatedTarget=i,(n=a.getPooled(s,t,n,r)).type=u+"enter",n.target=i,n.relatedTarget=e,T(l,n,o,t),[l,n]}},$i=A.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qi=A.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),eo=Gi.extend({relatedTarget:null}),to={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},no={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ro=Gi.extend({key:function(e){if(e.key){var t=to[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Me(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?no[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ee,charCode:function(e){return"keypress"===e.type?Me(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Me(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),io=Yi.extend({dataTransfer:null}),oo=Gi.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ee}),ao=A.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),lo=Yi.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),so=[["abort","abort"],[Kr,"animationEnd"],[Jr,"animationIteration"],[Xr,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[$r,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],uo={},co={};[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){Ne(e,!0)}),so.forEach(function(e){Ne(e,!1)});var fo={eventTypes:uo,isInteractiveTopLevelEventType:function(e){return void 0!==(e=co[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var i=co[e];if(!i)return null;switch(e){case"keypress":if(0===Me(n))return null;case"keydown":case"keyup":e=ro;break;case"blur":case"focus":e=eo;break;case"click":if(2===n.button)return null;case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Yi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=io;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=oo;break;case Kr:case Jr:case Xr:e=$i;break;case $r:e=ao;break;case"scroll":e=Gi;break;case"wheel":e=lo;break;case"copy":case"cut":case"paste":e=Qi;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Ki;break;default:e=A}return O(t=e.getPooled(i,t,n,r)),t}},po=fo.isInteractiveTopLevelEventType,ho=[],go=!0,vo={get _enabled(){return go},setEnabled:Ie,isEnabled:function(){return go},trapBubbledEvent:Pe,trapCapturedEvent:Ae,dispatchEvent:De},mo={},yo=0,bo="_reactListenersID"+(""+Math.random()).slice(2),xo=xr.canUseDOM&&"documentMode"in document&&11>=document.documentMode,wo={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Co=null,ko=null,Eo=null,So=!1,_o={eventTypes:wo,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=Re(o),i=Pr.onSelect;for(var a=0;a<i.length;a++){var l=i[a];if(!o.hasOwnProperty(l)||!o[l]){o=!1;break e}}o=!0}i=!o}if(i)return null;switch(o=t?y(t):window,e){case"focus":(Y(o)||"true"===o.contentEditable)&&(Co=o,ko=t,Eo=null);break;case"blur":Eo=ko=Co=null;break;case"mousedown":So=!0;break;case"contextmenu":case"mouseup":return So=!1,ze(n,r);case"selectionchange":if(xo)break;case"keydown":case"keyup":return ze(n,r)}return null}};Br.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),Lr=qr.getFiberCurrentPropsFromNode,Dr=qr.getInstanceFromNode,Rr=qr.getNodeFromInstance,Br.injectEventPluginsByName({SimpleEventPlugin:fo,EnterLeaveEventPlugin:Xi,ChangeEventPlugin:Vi,SelectEventPlugin:_o,BeforeInputEventPlugin:gi});var Oo="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,To=Date,Mo=setTimeout,No=clearTimeout,jo=void 0;if("object"==typeof performance&&"function"==typeof performance.now){var Io=performance;jo=function(){return Io.now()}}else jo=function(){return To.now()};var Po=void 0,Ao=void 0;if(xr.canUseDOM){var Lo="function"==typeof Oo?Oo:function(){r("276")},Do=null,Ro=null,Fo=-1,Bo=!1,Wo=!1,zo=0,Ho=33,Uo=33,qo={didTimeout:!1,timeRemaining:function(){var e=zo-jo();return 0<e?e:0}},Vo=function(e,t){var n=e.scheduledCallback,r=!1;try{n(t),r=!0}finally{Ao(e),r||(Bo=!0,window.postMessage(Go,"*"))}},Go="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===Go&&(Bo=!1,null!==Do)){if(null!==Do){var t=jo();if(!(-1===Fo||Fo>t)){e=-1;for(var n=[],r=Do;null!==r;){var i=r.timeoutTime;-1!==i&&i<=t?n.push(r):-1!==i&&(-1===e||i<e)&&(e=i),r=r.next}if(0<n.length)for(qo.didTimeout=!0,t=0,r=n.length;t<r;t++)Vo(n[t],qo);Fo=e}}for(e=jo();0<zo-e&&null!==Do;)e=Do,qo.didTimeout=!1,Vo(e,qo),e=jo();null===Do||Wo||(Wo=!0,Lo(Zo))}},!1);var Zo=function(e){Wo=!1;var t=e-zo+Uo;t<Uo&&Ho<Uo?(8>t&&(t=8),Uo=t<Ho?Ho:t):Ho=t,zo=e+Uo,Bo||(Bo=!0,window.postMessage(Go,"*"))};Po=function(e,t){var n=-1;return null!=t&&"number"==typeof t.timeout&&(n=jo()+t.timeout),(-1===Fo||-1!==n&&n<Fo)&&(Fo=n),e={scheduledCallback:e,timeoutTime:n,prev:null,next:null},null===Do?Do=e:null!==(t=e.prev=Ro)&&(t.next=e),Ro=e,Wo||(Wo=!0,Lo(Zo)),e},Ao=function(e){if(null!==e.prev||Do===e){var t=e.next,n=e.prev;e.next=null,e.prev=null,null!==t?null!==n?(n.next=t,t.prev=n):(t.prev=null,Do=t):null!==n?(n.next=null,Ro=n):Ro=Do=null}}}else{var Yo=new Map;Po=function(e){var t={scheduledCallback:e,timeoutTime:0,next:null,prev:null},n=Mo(function(){e({timeRemaining:function(){return 1/0},didTimeout:!1})});return Yo.set(e,n),t},Ao=function(e){var t=Yo.get(e.scheduledCallback);Yo.delete(e),No(t)}}var Ko,Jo={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},Xo=void 0,$o=(Ko=function(e,t){if(e.namespaceURI!==Jo.svg||"innerHTML"in e)e.innerHTML=t;else{for((Xo=Xo||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=Xo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return Ko(e,t)})}:Ko),Qo={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ea=["Webkit","ms","Moz","O"];Object.keys(Qo).forEach(function(e){ea.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qo[t]=Qo[e]})});var ta=wr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),na=Cr.thatReturns(""),ra={createElement:nt,createTextNode:rt,setInitialProperties:it,diffProperties:ot,updateProperties:at,diffHydratedProperties:lt,diffHydratedText:st,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(ue(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var o=b(i);o||r("90"),Q(i),ue(i,o)}}}break;case"textarea":Ze(e,n);break;case"select":null!=(t=n.value)&&Ue(e,!!n.multiple,t,!1)}}},ia=null,oa=null,aa=jo,la=Po,sa=Ao;new Set;var ua=[],ca=-1,fa=dt(_r),pa=dt(!1),da=_r,ha=null,ga=null,va=!1,ma=dt(null),ya=dt(null),ba=dt(0),xa={},wa=dt(xa),Ca=dt(xa),ka=dt(xa),Ea={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===Se(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Hn(),i=Rt(r=Wn(r,e));i.payload=t,void 0!==n&&null!==n&&(i.callback=n),Bt(e,i,r),zn(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Hn(),i=Rt(r=Wn(r,e));i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),Bt(e,i,r),zn(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Hn(),r=Rt(n=Wn(n,e));r.tag=2,void 0!==t&&null!==t&&(r.callback=t),Bt(e,r,n),zn(e,n)}},Sa=Array.isArray,_a=an(!0),Oa=an(!1),Ta=null,Ma=null,Na=!1,ja=void 0,Ia=void 0,Pa=void 0;ja=function(){},Ia=function(e,t,n){(t.updateQueue=n)&&wn(t)},Pa=function(e,t,n,r){n!==r&&wn(t)};var Aa=aa(),La=2,Da=Aa,Ra=0,Fa=0,Ba=!1,Wa=null,za=null,Ha=0,Ua=-1,qa=!1,Va=null,Ga=!1,Za=!1,Ya=null,Ka=null,Ja=null,Xa=0,$a=void 0,Qa=!1,el=null,tl=0,nl=0,rl=!1,il=!1,ol=null,al=null,ll=!1,sl=!1,ul=!1,cl=null,fl=1e3,pl=0,dl=1,hl=rr,gl=ar,vl=function(){Qa||0===nl||(Jn(nl,!1,null),nl=0)};mi.injectFiberControlledHostComponent(ra),pr.prototype.render=function(e){this._defer||r("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,i=new dr;return sr(e,t,null,n,i._onCommit),i},pr.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},pr.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||r("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var i=null,o=t;o!==this;)i=o,o=o._next;null===i&&r("251"),i._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,Xn(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},pr.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},dr.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},dr.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&r("191",n),n()}}},hr.prototype.render=function(e,t){var n=this._internalRoot,r=new dr;return null!==(t=void 0===t?null:t)&&r.then(t),cr(e,n,null,r._onCommit),r},hr.prototype.unmount=function(e){var t=this._internalRoot,n=new dr;return null!==(e=void 0===e?null:e)&&n.then(e),cr(null,t,null,n._onCommit),n},hr.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,i=new dr;return null!==(n=void 0===n?null:n)&&i.then(n),cr(t,r,e,i._onCommit),i},hr.prototype.createBatch=function(){var e=new pr(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime<=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},q=hl,V=gl,G=vl;var ml={createPortal:mr,findDOMNode:function(e){return null==e?null:1===e.nodeType?e:ur(e)},hydrate:function(e,t,n){return vr(null,e,t,!0,n)},render:function(e,t,n){return vr(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,i){return(null==e||void 0===e._reactInternalFiber)&&r("38"),vr(e,t,n,!1,i)},unmountComponentAtNode:function(e){return gr(e)||r("40"),!!e._reactRootContainer&&(ir(function(){vr(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return mr.apply(void 0,arguments)},unstable_batchedUpdates:rr,unstable_deferredUpdates:Un,unstable_interactiveUpdates:ar,flushSync:or,unstable_flushControlled:lr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:Wr,EventPluginRegistry:Ar,EventPropagators:Vr,ReactControlledComponent:xi,ReactDOMComponentTree:qr,ReactDOMEventListener:vo},unstable_createRoot:function(e,t){return new hr(e,!0,null!=t&&!0===t.hydrate)}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);ha=It(function(e){return t.onCommitFiberRoot(n,e)}),ga=It(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}})(wr({},e,{findHostInstanceByFiber:function(e){return null===(e=Te(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:m,bundleType:0,version:"16.4.1",rendererPackageName:"react-dom"});var yl={default:ml},bl=yl&&ml||yl;e.exports=bl.default?bl.default:bl},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);m(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function i(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||j}function o(){}function a(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||j}function l(e,t,n){var r=void 0,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)A.call(t,r)&&!L.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:w,type:e,key:o,ref:a,props:i,_owner:P.current}}function s(e){return"object"==typeof e&&null!==e&&e.$$typeof===w}function u(e,t,n,r){if(R.length){var i=R.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function c(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>R.length&&R.push(e)}function f(e,t,n,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case w:case C:a=!0}}if(a)return n(i,e,""===t?"."+p(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var s=t+p(o=e[l],l);a+=f(o,s,n,i)}else if("function"==typeof(s=null===e||void 0===e?null:"function"==typeof(s=N&&e[N]||e["@@iterator"])?s:null))for(e=s.call(e),l=0;!(o=e.next()).done;)a+=f(o=o.value,s=t+p(o,l++),n,i);else"object"===o&&r("31","[object Object]"==(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return a}function p(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function d(e,t){e.func.call(e.context,t,e.count++)}function h(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?g(e,r,n,b.thatReturnsArgument):null!=e&&(s(e)&&(t=i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(D,"$&/")+"/")+n,e={$$typeof:w,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function g(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(D,"$&/")+"/"),t=u(t,o,r,i),null==e||f(e,"",h,t),c(t)}/** @license React v16.4.1
|
36 |
+
* react.production.min.js
|
37 |
+
*
|
38 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
39 |
+
*
|
40 |
+
* This source code is licensed under the MIT license found in the
|
41 |
+
* LICENSE file in the root directory of this source tree.
|
42 |
+
*/
|
43 |
+
var v=n(35),m=n(34),y=n(67),b=n(36),x="function"==typeof Symbol&&Symbol.for,w=x?Symbol.for("react.element"):60103,C=x?Symbol.for("react.portal"):60106,k=x?Symbol.for("react.fragment"):60107,E=x?Symbol.for("react.strict_mode"):60108,S=x?Symbol.for("react.profiler"):60114,_=x?Symbol.for("react.provider"):60109,O=x?Symbol.for("react.context"):60110,T=x?Symbol.for("react.async_mode"):60111,M=x?Symbol.for("react.forward_ref"):60112;x&&Symbol.for("react.timeout");var N="function"==typeof Symbol&&Symbol.iterator,j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};i.prototype.isReactComponent={},i.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&r("85"),this.updater.enqueueSetState(this,e,t,"setState")},i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=i.prototype;var I=a.prototype=new o;I.constructor=a,v(I,i.prototype),I.isPureReactComponent=!0;var P={current:null},A=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0},D=/\/+/g,R=[],F={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return g(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=u(null,null,t,n),null==e||f(e,"",d,t),c(t)},count:function(e){return null==e?0:f(e,"",b.thatReturnsNull,null)},toArray:function(e){var t=[];return g(e,t,null,b.thatReturnsArgument),t},only:function(e){return s(e)||r("143"),e}},createRef:function(){return{current:null}},Component:i,PureComponent:a,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:O,_calculateChangedBits:t,_defaultValue:e,_currentValue:e,_currentValue2:e,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null}).Provider={$$typeof:_,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:M,render:e}},Fragment:k,StrictMode:E,unstable_AsyncMode:T,unstable_Profiler:S,createElement:l,cloneElement:function(e,t,n){(null===e||void 0===e)&&r("267",e);var i=void 0,o=v({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,s=P.current),void 0!==t.key&&(a=""+t.key);var u=void 0;for(i in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)A.call(t,i)&&!L.hasOwnProperty(i)&&(o[i]=void 0===t[i]&&void 0!==u?u[i]:t[i])}if(1==(i=arguments.length-2))o.children=n;else if(1<i){u=Array(i);for(var c=0;c<i;c++)u[c]=arguments[c+2];o.children=u}return{$$typeof:w,type:e.type,key:a,ref:l,props:o,_owner:s}},createFactory:function(e){var t=l.bind(null,e);return t.type=e,t},isValidElement:s,version:"16.4.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:P,assign:v}},B={default:F},W=B&&F||B;e.exports=W.default?W.default:W},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},function(e,t,n){"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}var i=Object.prototype.hasOwnProperty;e.exports=function(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!i.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}},function(e,t,n){"use strict";var r=n(232);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";var r=n(233);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(235),a=(n.n(o),n(236)),l=n(237),s=n(276),u=n(37),c=(n.n(u),n(114)),f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={savedSettings:f({},wprm_settings.settings),currentSettings:f({},wprm_settings.settings),savingChanges:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.Component),p(t,[{key:"onSettingChange",value:function(e,t){var n=this.state.currentSettings;n[e]=t,this.setState({currentSettings:n},function(){"features_custom_style"===e&&u.scroller.scrollTo(e,{smooth:!0,duration:400,offset:-110})})}},{key:"onSaveChanges",value:function(){var e=this;this.setState({savingChanges:!0}),a.a.saveSettings(this.state.currentSettings).then(function(t){e.setState({savingChanges:!1,savedSettings:f({},t),currentSettings:f({},t)})}).catch(function(t){alert("The settings could not be saved. Try again later or contact support@bootstrapped.ventures"),e.setState({savingChanges:!1})})}},{key:"onCancelChanges",value:function(){confirm("Are you sure you want to cancel the changes you made?")&&this.setState({currentSettings:f({},this.state.savedSettings)})}},{key:"onResetDefaults",value:function(){confirm("Are you sure you want to reset the settings to their default values? This will not save them yet.")&&this.setState({currentSettings:f({},this.state.savedSettings,wprm_settings.defaults)})}},{key:"scrollToTop",value:function(){u.animateScroll.scrollToTop()}},{key:"componentDidMount",value:function(){window.addEventListener("beforeunload",this.beforeWindowClose.bind(this))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("beforeunload",this.beforeWindowClose.bind(this))}},{key:"beforeWindowClose",value:function(e){if(this.settingsChanged())return!1}},{key:"settingsChanged",value:function(){return JSON.stringify(this.state.savedSettings)!==JSON.stringify(this.state.currentSettings)}},{key:"render",value:function(){return i.a.createElement("div",null,i.a.createElement(l.a,{structure:wprm_settings.structure,settingsChanged:this.settingsChanged(),savingChanges:this.state.savingChanges,onSaveChanges:this.onSaveChanges.bind(this),onCancelChanges:this.onCancelChanges.bind(this)}),i.a.createElement(s.a,{structure:wprm_settings.structure,settings:this.state.currentSettings,settingsChanged:this.settingsChanged(),onSettingChange:this.onSettingChange.bind(this),onResetDefaults:this.onResetDefaults.bind(this)}),i.a.createElement("a",{href:"#",className:"wprm-settings-scroll-to-top",onClick:this.scrollToTop},i.a.createElement(c.a,{type:"scrollToTop"})))}}]),t}();t.a=d},function(e,t){},function(e,t,n){"use strict";var r=wprm_temp_admin.endpoints.setting;t.a={saveSettings:function(e){var t={settings:e};return fetch(r,{method:"POST",headers:{"X-WP-Nonce":wprm_temp_admin.api_nonce,Accept:"application/json","Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(t)}).then(function(e){return e.json().then(function(t){return e.ok?t:Promise.reject(t)})})}}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(1),a=n.n(o),l=n(37),s=(n.n(l),n(114)),u=function(e){var t=[],n=!0,r=!1,o=void 0;try{for(var a,u=e.structure[Symbol.iterator]();!(n=(a=u.next()).done);n=!0){var c=a.value;c.hasOwnProperty("header")?t.push({header:c.header}):t.push({id:c.id,name:c.name})}}catch(e){r=!0,o=e}finally{try{!n&&u.return&&u.return()}finally{if(r)throw o}}return i.a.createElement("div",{id:"wprm-settings-sidebar"},i.a.createElement("div",{id:"wprm-settings-buttons"},i.a.createElement("button",{className:"button button-primary",disabled:e.savingChanges||!e.settingsChanged,onClick:e.onSaveChanges},e.savingChanges?"...":"Save Changes"),i.a.createElement("button",{className:"button",disabled:e.savingChanges||!e.settingsChanged,onClick:e.onCancelChanges},"Cancel Changes")),i.a.createElement("div",{id:"wprm-settings-menu"},t.map(function(e,t){return e.hasOwnProperty("header")?i.a.createElement("div",{className:"wprm-settings-menu-header",key:t},e.header):i.a.createElement(l.Link,{to:"wprm-settings-group-"+e.id,className:"wprm-settings-menu-group",activeClass:"active",spy:!0,offset:-42,smooth:!0,duration:400,key:t},i.a.createElement(s.a,{type:e.id})," ",e.name)})))};u.propTypes={structure:a.a.array.isRequired,settingsChanged:a.a.bool.isRequired,savingChanges:a.a.bool.isRequired,onSaveChanges:a.a.func.isRequired,onCancelChanges:a.a.func.isRequired},t.a=u},function(e,t,n){"use strict";var r=n(36),i=n(34),o=n(239);e.exports=function(){function e(e,t,n,r,a,l){l!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(0)),a=r(n(68)),l=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,l=Array(a),s=0;s<a;s++)l[s]=arguments[s];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.render=function(){return o.default.createElement("a",r.props,r.props.children)},i(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),t}();t.default=(0,a.default)(l)},function(e,t,n){(function(t){function n(e,t,n){function a(t){var n=f,r=p;return f=p=void 0,x=t,h=e.apply(r,n)}function l(e){var n=e-v;return void 0===v||n>=t||n<0||C&&e-x>=d}function s(){var e=b();if(l(e))return u(e);g=setTimeout(s,function(e){var n=t-(e-v);return C?y(n,d-(e-x)):n}(e))}function u(e){return g=void 0,k&&f?a(e):(f=p=void 0,h)}function c(){var e=b(),n=l(e);if(f=arguments,p=this,v=e,n){if(void 0===g)return function(e){return x=e,g=setTimeout(s,t),w?a(e):h}(v);if(C)return g=setTimeout(s,t),a(v)}return void 0===g&&(g=setTimeout(s,t)),h}var f,p,d,h,g,v,x=0,w=!1,C=!1,k=!0;if("function"!=typeof e)throw new TypeError(o);return t=i(t)||0,r(n)&&(w=!!n.leading,d=(C="maxWait"in n)?m(i(n.maxWait)||0,t):d,k="trailing"in n?!!n.trailing:k),c.cancel=function(){void 0!==g&&clearTimeout(g),x=0,f=v=p=g=void 0},c.flush=function(){return void 0===g?h:u(b())},c}function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function i(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&v.call(e)==l}(e))return a;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=c.test(e);return n||f.test(e)?p(e.slice(2),n?2:8):u.test(e)?a:+e}var o="Expected a function",a=NaN,l="[object Symbol]",s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt,d="object"==typeof t&&t&&t.Object===Object&&t,h="object"==typeof self&&self&&self.Object===Object&&self,g=d||h||Function("return this")(),v=Object.prototype.toString,m=Math.max,y=Math.min,b=function(){return g.Date.now()};e.exports=function(e,t,i){var a=!0,l=!0;if("function"!=typeof e)throw new TypeError(o);return r(i)&&(a="leading"in i?!!i.leading:a,l="trailing"in i?!!i.trailing:l),n(e,t,{leading:a,maxWait:t,trailing:l})}}).call(t,n(16))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={defaultEasing:function(e){return e<.5?Math.pow(2*e,2)/2:1-Math.pow(2*(1-e),2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70),i=["mousedown","mousewheel","touchmove","keydown"];t.default={subscribe:function(e){return"undefined"!=typeof document&&i.forEach(function(t){return(0,r.addPassiveEventListener)(document,t,e)})}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=r(n(0)),a=r(n(68)),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"render",value:function(){return o.default.createElement("input",this.props,this.props.children)}}]),t}();t.default=(0,a.default)(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=r(n(0)),l=r(n(113)),s=r(n(1)),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),o(t,[{key:"render",value:function(){var e=this,t=i({},this.props);return t.parentBindings&&delete t.parentBindings,a.default.createElement("div",i({},t,{ref:function(t){e.props.parentBindings.domNode=t}}),this.props.children)}}]),t}();u.propTypes={name:s.default.string,id:s.default.string},t.default=(0,l.default)(u)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(0),u=(n(15),n(26),n(69)),c=n(38),f=n(1),p=n(112),d={to:f.string.isRequired,containerId:f.string,container:f.object,activeClass:f.string,spy:f.bool,smooth:f.oneOfType([f.bool,f.string]),offset:f.number,delay:f.number,isDynamic:f.bool,onClick:f.func,duration:f.oneOfType([f.number,f.func]),absolute:f.bool,onSetActive:f.func,onSetInactive:f.func,ignoreCancelEvents:f.bool,hashSpy:f.bool},h={Scroll:function(e,t){console.warn("Helpers.Scroll is deprecated since v1.7.0");var n=t||c,f=function(t){function c(e){r(this,c);var t=i(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e));return h.call(t),t.state={active:!1},t}return o(c,s.Component),l(c,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();u.isMounted(e)||u.mount(e),this.props.hashSpy&&(p.isMounted()||p.mount(n),p.mapContainer(this.props.to,e)),this.props.spy&&u.addStateHandler(this.stateHandler),u.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){u.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=a({},this.props);for(var r in d)n.hasOwnProperty(r)&&delete n[r];return n.className=t,n.onClick=this.handleClick,s.createElement(e,n)}}]),c}(),h=function(){var e=this;this.scrollTo=function(t,r){n.scrollTo(t,a({},e.state,r))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.stateHandler=function(){n.getActiveLink()!==e.props.to&&(null!==e.state&&e.state.active&&e.props.onSetInactive&&e.props.onSetInactive(),e.setState({active:!1}))},this.spyHandler=function(t){var r=e.getScrollSpyContainer();if(!p.isMounted()||p.isInitialized()){var i=e.props.to,o=null,a=0,l=0,s=0;if(r.getBoundingClientRect&&(s=r.getBoundingClientRect().top),!o||e.props.isDynamic){if(!(o=n.get(i)))return;var c=o.getBoundingClientRect();l=(a=c.top-s+t)+c.height}var f=t-e.props.offset,d=f>=Math.floor(a)&&f<Math.floor(l),h=f<Math.floor(a)||f>=Math.floor(l),g=n.getActiveLink();if(h)return i===g&&n.setActiveLink(void 0),e.props.hashSpy&&p.getHash()===i&&p.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive()),u.updateStates();if(d&&g!==i)return n.setActiveLink(i),e.props.hashSpy&&p.changeHash(i),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(i)),u.updateStates()}}};return f.propTypes=d,f.defaultProps={offset:0},f},Element:function(e){console.warn("Helpers.Element is deprecated since v1.7.0");var t=function(t){function n(e){r(this,n);var t=i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return o(n,s.Component),l(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentWillReceiveProps",value:function(e){this.props.name!==e.name&&this.registerElems(e.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;c.unregister(this.props.name)}},{key:"registerElems",value:function(e){c.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return s.createElement(e,a({},this.props,{parentBindings:this.childBindings}))}}]),n}();return t.propTypes={name:f.string,id:f.string},t}};e.exports=h},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(1),a=n.n(o),l=n(248),s=n.n(l),u=n(253),c=n.n(u),f=n(255),p=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=s.a.use(c.a),g={PENDING:"pending",LOADING:"loading",LOADED:"loaded",FAILED:"failed",UNSUPPORTED:"unsupported"},v={},m={},y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleLoad=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e?n.fail(e):n.isActive&&n.setState({loadedText:t.text,status:g.LOADED},function(){n.props.onLoad(n.props.src,r)})},n.state={status:g.PENDING},n.isActive=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.a.PureComponent),d(t,[{key:"componentWillMount",value:function(){this.isActive=!0}},{key:"componentDidMount",value:function(){this.state.status===g.PENDING&&(this.props.supportTest()?this.props.src?this.startLoad():this.fail(Object(f.a)("Missing source")):this.fail(Object(f.e)()))}},{key:"componentDidUpdate",value:function(e){e.src!==this.props.src&&(this.props.src?this.startLoad():this.fail(Object(f.a)("Missing source")))}},{key:"componentWillUnmount",value:function(){this.isActive=!1}},{key:"getFile",value:function(e){var t=this,n=this.props,r=n.cacheGetRequests,i=n.src;if(r){if(m[i]){var o=p(m[i],2),a=o[0],l=o[1];e(a,l,!0)}v[i]||(v[i]=[],h.get(i,function(e,n){v[i].forEach(function(r){m[i]=[e,n],i===t.props.src&&r(e,n)})})),v[i].push(e)}else h.get(i,function(n,r){i===t.props.src&&e(n,r)})}},{key:"fail",value:function(e){var t=this,n=e.isUnsupportedBrowserError?g.UNSUPPORTED:g.FAILED;this.isActive&&this.setState({status:n},function(){"function"==typeof t.props.onError&&t.props.onError(e)})}},{key:"startLoad",value:function(){this.isActive&&this.setState({status:g.LOADING},this.load)}},{key:"load",value:function(){var e=this.props.src.match(/data:image\/svg[^,]*?(;base64)?,(.*)/);return e?this.handleLoad(null,{text:e[1]?atob(e[2]):decodeURIComponent(e[2])}):this.getFile(this.handleLoad)}},{key:"getClassName",value:function(){var e="isvg "+this.state.status;return this.props.className&&(e+=" "+this.props.className),e}},{key:"processSVG",value:function(e){var t=this.props,n=t.uniquifyIDs,r=t.uniqueHash,i=t.baseURL;return n?Object(f.d)(e,r||Object(f.c)(),i):e}},{key:"renderContents",value:function(){switch(this.state.status){case g.UNSUPPORTED:case g.FAILED:return this.props.children;default:return this.props.preloader}}},{key:"render",value:function(){var e=void 0,t=void 0;return this.state.loadedText?t={__html:this.processSVG(this.state.loadedText)}:e=this.renderContents(),this.props.wrapper({style:this.props.style,className:this.getClassName(),dangerouslySetInnerHTML:t},e)}}]),t}();y.propTypes={baseURL:a.a.string,cacheGetRequests:a.a.bool,children:a.a.node,className:a.a.string,onError:a.a.func,onLoad:a.a.func,preloader:a.a.node,src:a.a.string.isRequired,style:a.a.object,supportTest:a.a.func,uniqueHash:a.a.string,uniquifyIDs:a.a.bool,wrapper:a.a.func},y.defaultProps={baseURL:"",cacheGetRequests:!1,onLoad:function(){},supportTest:f.b,uniquifyIDs:!0,wrapper:i.a.createFactory("span")},t.a=y},function(e,t,n){"use strict";var r,i=n(249),o=n(250),a=n(251),l=n(252),s=n(115),u=n(116),c=n(72),f=n(118),p=l.create;e.exports=function e(t,n){function i(e,i){var l,d,h,g,v,m;for(e=new u(c(t,e)),r=0;r<n.length;r++)(d=n[r]).processRequest&&d.processRequest(e);for(r=0;r<n.length;r++)if((d=n[r]).createXHR){l=d.createXHR(e);break}l=l||new o,e.xhr=l,h=f(a(function(t){clearTimeout(v),l.onload=l.onerror=l.onabort=l.onreadystatechange=l.ontimeout=l.onprogress=null;var o=function(e,t){if(e.aborted)return p("Request aborted",e,{name:"Abort"});if(e.timedOut)return p("Request timeout",e,{name:"Timeout"});var n,r=e.xhr;switch(Math.floor(r.status/100)){case 0:case 2:if(!t)return;return p(t.message,e);case 4:if(404===r.status&&!e.errorOn404)return;n="Client";break;case 5:n="Server";break;default:n="HTTP"}var i=n+" Error: The server returned a status of "+r.status+' for the request "'+e.method.toUpperCase()+" "+e.url+'"';return p(i,e)}(e,t),a=o||s.fromRequest(e);for(r=0;r<n.length;r++)(d=n[r]).processResponse&&d.processResponse(a);o&&e.onerror&&e.onerror(o),!o&&e.onload&&e.onload(a),i&&i(o,o?void 0:a)})),m="onload"in l&&"onerror"in l,l.onload=function(){h()},l.onerror=h,l.onabort=function(){h()},l.onreadystatechange=function(){if(4===l.readyState){if(e.aborted)return h();if(!m){var t;try{t=l.status}catch(n){}var n=0===t?new Error("Internal XHR Error"):null;return h(n)}}},l.ontimeout=function(){},l.onprogress=function(){},l.open(e.method,e.url),e.timeout&&(v=setTimeout(function(){e.timedOut=!0,h();try{l.abort()}catch(e){}},e.timeout));for(g in e.headers)e.headers.hasOwnProperty(g)&&l.setRequestHeader(g,e.headers[g]);return l.send(e.body),e}t=t||{},n=n||[];var d,h=["get","post","put","head","patch","delete"];for(r=0;r<h.length;r++)i[d=h[r]]=function(e){return function(t,n){return(t=new u(t)).method=e,i(t,n)}}(d);return i.plugins=function(){return n},i.defaults=function(r){return r?e(c(t,r),n):t},i.use=function(){var r=Array.prototype.slice.call(arguments,0);return e(t,n.concat(r))},i.bare=function(){return e()},i.Request=u,i.Response=s,i.RequestError=l,i}({},[i])},function(e,t,n){"use strict";e.exports={processRequest:function(e){e.url=e.url.replace(/[^%]+/g,function(e){return encodeURI(e)})}}},function(e,t){e.exports=window.XMLHttpRequest},function(e,t,n){"use strict";e.exports=function(e){return function(){var t=Array.prototype.slice.call(arguments,0);setTimeout(function(){return e.apply(null,t)},0)}}},function(e,t,n){"use strict";function r(e,t){var n=new Error(e);n.name="RequestError",this.name=n.name,this.message=n.message,n.stack&&(this.stack=n.stack);for(var r in this.toString=function(){return this.message},t)t.hasOwnProperty(r)&&(this[r]=t[r])}var i=n(115),o=n(117),a=n(72);r.prototype=a(Error.prototype),r.prototype.constructor=r,r.create=function(e,t,n){var a=new r(e,n);return i.call(a,o(t)),a},e.exports=r},function(e,t,n){"use strict";var r=n(254),i=!1,o=n(118)(function(){return"undefined"!=typeof window&&null!==window&&window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest});e.exports={createXHR:function(e){var t,n,a;if("undefined"!=typeof window&&null!==window&&(t=r(e.url),n=r(window.location.href),t.host&&(t.protocol!==n.protocol||t.host!==n.host||t.port!==n.port))){if(!i&&e.headers)for(a in e.headers)if(e.headers.hasOwnProperty(a)){i=!0,window&&window.console&&window.console.warn&&window.console.warn("Request headers are ignored in old IE when using the oldiexdomain plugin.");break}if(window.XDomainRequest&&!o()){var l=new window.XDomainRequest;return l.setRequestHeader=function(){},l}}}}},function(e,t){(function(){var t,n,r,i={}.hasOwnProperty;t=/^(?:(?:([^:\/?\#]+:)\/+|(\/\/))(?:([a-z0-9-\._~%]+)(?::([a-z0-9-\._~%]+))?@)?(([a-z0-9-\._~%!$&'()*+,;=]+)(?::([0-9]+))?)?)?([^?\#]*?)(\?[^\#]*)?(\#.*)?$/,(r=function(e,t){return r.URL.parse(e,t)}).URL=function(){function e(e){var t,r,o;for(t in n)i.call(n,t)&&(r=n[t],this[t]=null!=(o=e[t])?o:r);this.host||(this.host=this.hostname&&this.port?this.hostname+":"+this.port:this.hostname?this.hostname:""),this.origin||(this.origin=this.protocol?this.protocol+"//"+this.host:""),this.isAbsolutePathRelative=!this.host&&"/"===this.pathname.charAt(0),this.isPathRelative=!this.host&&"/"!==this.pathname.charAt(0),this.isRelative=this.isSchemeRelative||this.isAbsolutePathRelative||this.isPathRelative,this.isAbsolute=!this.isRelative}return e.parse=function(e){var n,i,o;return i=(n=e.toString().match(t))[8]||"",o=n[1],new r.URL({protocol:o,username:n[3],password:n[4],hostname:n[6],port:n[7],pathname:o&&"/"!==i.charAt(0)?"/"+i:i,search:n[9],hash:n[10],isSchemeRelative:null!=n[2]})},e}(),n={protocol:"",username:"",password:"",host:"",hostname:"",port:"",pathname:"",search:"",hash:"",origin:"",isSchemeRelative:!1},e.exports=r}).call(this)},function(e,t,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}n.d(t,"b",function(){return c}),n.d(t,"c",function(){return f}),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return g}),n.d(t,"a",function(){return v});var i,o,a=n(256),l=n.n(a),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=l()(function(){if(!document)return!1;var e=document.createElement("div");return e.innerHTML="<svg />",e.firstChild&&"http://www.w3.org/2000/svg"===e.firstChild.namespaceURI}),c=l()(function(){return!(!u()||"undefined"==typeof window||null===window)&&(window.XMLHttpRequest||window.XDomainRequest)}),f=function(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,n="abcdefghijklmnopqrstuvwxyz",r=n+n.toUpperCase()+"1234567890",i="",o=0;o<t;o++)i+=(e=r)[Math.floor(Math.random()*e.length)];return i},p=(i=function(e){return"(?:(?:\\s|\\:)"+e+")"},o=new RegExp("(?:("+i("id")+')="([^"]+)")|(?:('+i("href")+"|"+i("role")+"|"+i("arcrole")+')="\\#([^"]+)")|(?:="url\\(\\#([^\\)]+)\\)")|(?:url\\(\\#([^\\)]+)\\))',"g"),function(e,t,n){var r=function(e){return e+"___"+t};return e.replace(o,function(e,t,i,o,a,l,s){return i?t+'="'+r(i)+'"':a?o+'="'+n+"#"+r(a)+'"':l?'="url('+n+"#"+r(l)+')"':s?"url("+n+"#"+r(s)+")":void 0})}),d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.name="InlineSVGError",n.isSupportedBrowser=!0,n.isConfigurationError=!1,n.isUnsupportedBrowserError=!1,n.message=e,r(n,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Error),t}(),h=function(e,t){var n=new d(e);return s({},n,t)},g=function(e){var t=e;return t||(t="Unsupported Browser"),h(t,{isSupportedBrowser:!1,isUnsupportedBrowserError:!0})},v=function(e){return h(e,{isConfigurationError:!0})}},function(e,t,n){function r(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}var o=n(257);e.exports=o(r),e.exports.strict=o(i),r.proto=r(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})})},function(e,t){e.exports=function e(t,n){function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach(function(e){r[e]=i[e]}),r}if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){r[e]=t[e]}),r}},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48Y2lyY2xlIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGN4PSI1IiBjeT0iMTEiIHI9IjEuNSIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9jaXJjbGU+IDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGQ9Ik0xNS41LDAuNWgtMyBMNi4yOSw2LjcxQzUuODc5LDYuNTg3LDUuNDUxLDYuNSw1LDYuNWMtMi40ODUsMC00LjUsMi4wMTUtNC41LDQuNXMyLjAxNSw0LjUsNC41LDQuNXM0LjUtMi4wMTUsNC41LTQuNSBjMC0wLjQ1MS0wLjA4Ny0wLjg3OS0wLjIxLTEuMjlMMTEuNSw3LjVsMC0zaDNsMS0xVjAuNXoiPjwvcGF0aD48L2c+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cmVjdCB4PSIxLjUiIHk9IjAuNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgd2lkdGg9IjEzIiBoZWlnaHQ9IjE1Ij48L3JlY3Q+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSI5LjUiIHkxPSIzLjUiIHgyPSIxMS41IiB5Mj0iMy41IiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L2xpbmU+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSI5LjUiIHkxPSI2LjUiIHgyPSIxMS41IiB5Mj0iNi41IiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L2xpbmU+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSI0LjUiIHkxPSI5LjUiIHgyPSIxMS41IiB5Mj0iOS41IiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L2xpbmU+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSI0LjUiIHkxPSIxMi41IiB4Mj0iMTEuNSIgeTI9IjEyLjUiIGRhdGEtY29sb3I9ImNvbG9yLTIiPjwvbGluZT4gPHJlY3QgeD0iNC41IiB5PSIzLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHdpZHRoPSIzIiBoZWlnaHQ9IjMiIGRhdGEtY29sb3I9ImNvbG9yLTIiPjwvcmVjdD48L2c+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cmVjdCB4PSIwLjUiIHk9IjAuNSIgd2lkdGg9IjE1IiBoZWlnaHQ9IjE1IiByeD0iMSIgcnk9IjEiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L3JlY3Q+IDxwb2x5bGluZSBwb2ludHM9IjExLjUgMTIuNSA4LjUgMy41IDcuNSAzLjUgNC41IDEyLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L3BvbHlsaW5lPiA8bGluZSB4MT0iMy41IiB5MT0iMTIuNSIgeDI9IjYuNSIgeTI9IjEyLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L2xpbmU+IDxsaW5lIHgxPSI5LjUiIHkxPSIxMi41IiB4Mj0iMTIuNSIgeTI9IjEyLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L2xpbmU+IDxsaW5lIHgxPSI1LjgzMyIgeTE9IjguNSIgeDI9IjEwLjE2NyIgeTI9IjguNSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGRhdGEtY29sb3I9ImNvbG9yLTIiPjwvbGluZT48L2c+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cG9seWxpbmUgcG9pbnRzPSIzLjUgMy41IDMuNSAwLjUgMTIuNSAwLjUgMTIuNSAzLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L3BvbHlsaW5lPiA8cGF0aCBkPSJNMy41LDEyLjVILjV2LTRhMywzLDAsMCwxLDMtM2g5YTMsMywwLDAsMSwzLDN2NGgtMyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjwvcGF0aD4gPHJlY3QgeD0iMy41IiB5PSI5LjUiIHdpZHRoPSI5IiBoZWlnaHQ9IjYiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L3JlY3Q+PC9nPjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cGF0aCBkPSJNMTEuNSwxNS4xNjNsLjg2Ny4yNjNhMS42MTIsMS42MTIsMCwwLDAsMS45ODktLjlsMS0yLjcyNGMuNy0xLjkwOS0xLjIzOS0zLjc1MS0zLjM2Ny0zLjJsLS40ODcuMTI2TDExLjAxMyw4LjZjLTIuMTI4LS41NTMtNC4wNjcsMS4yODktMy4zNjcsMy4ybDEsMi43MjRhMS42MTIsMS42MTIsMCwwLDAsMS45ODkuOVoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L3BhdGg+IDxwYXRoIGQ9Ik0xNSw0aDBhMywzLDAsMCwxLTMsM2gwQTMsMywwLDAsMSwxNSw0WiIgZmlsbD0iIzExMTExMSIgZGF0YS1jYXA9ImJ1dHQiIGRhdGEtY29sb3I9ImNvbG9yLTIiIGRhdGEtc3Ryb2tlPSJub25lIj48L3BhdGg+IDxwb2x5bGluZSBwb2ludHM9IjYuNSAxNS41IDAuNSAxNS41IDAuNSAwLjUgMTMuNSAwLjUgMTMuNSAyLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L3BvbHlsaW5lPiA8bGluZSB4MT0iMy41IiB5MT0iNC41IiB4Mj0iNy41IiB5Mj0iNC41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9saW5lPiA8bGluZSB4MT0iMy41IiB5MT0iMTAuNSIgeDI9IjQuNSIgeTI9IjEwLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L2xpbmU+IDxsaW5lIHgxPSI5LjUiIHkxPSI0LjUiIHgyPSIxMC41IiB5Mj0iNC41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9saW5lPiA8bGluZSB4MT0iMy41IiB5MT0iNy41IiB4Mj0iNi41IiB5Mj0iNy41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PC9saW5lPjwvZz48L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cGF0aCBkPSJNNy41LjUsMi4wODYsNS45MTRhMiwyLDAsMCwwLDAsMi44MjhsMS41ODYsMS41ODZMLjkxNCwxMy4wODZhMS40MTQsMS40MTQsMCwwLDAsMCwyaDBhMS40MTQsMS40MTQsMCwwLDAsMiwwbDIuNzU3LTIuNzU3LDEuNTg2LDEuNTg2YTIsMiwwLDAsMCwyLjgyOCwwTDE1LjUsOC41WiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDxsaW5lIHgxPSI0LjUiIHkxPSI2LjUiIHgyPSI5LjUiIHkyPSIxMS41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZGF0YS1jYXA9ImJ1dHQiIGRhdGEtY29sb3I9ImNvbG9yLTIiPjwvbGluZT48L2c+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cG9seWdvbiBwb2ludHM9IjUuNSA2LjUgMTMuNSA4LjUgMTAuNSA5LjUgMTQuNSAxMy41IDEyLjUgMTUuNSA4LjUgMTEuNSA3LjUgMTQuNSA1LjUgNi41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZGF0YS1jYXA9ImJ1dHQiIGRhdGEtY29sb3I9ImNvbG9yLTIiPjwvcG9seWdvbj4gPHBhdGggZD0iTTMuNSw5LjVoLTJhMSwxLDAsMCwxLTEtMXYtN2ExLDEsMCwwLDEsMS0xaDEzYTEsMSwwLDAsMSwxLDF2NSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+PC9nPjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cG9seWdvbiBwb2ludHM9IjggMC44NjcgMTAuMzE4IDUuNTYzIDE1LjUgNi4zMTYgMTEuNzUgOS45NzEgMTIuNjM1IDE1LjEzMyA4IDEyLjY5NiAzLjM2NSAxNS4xMzMgNC4yNSA5Ljk3MSAwLjUgNi4zMTYgNS42ODIgNS41NjMgOCAwLjg2NyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGRhdGEtY2FwPSJidXR0Ij48L3BvbHlnb24+PC9nPjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iMTIuNSIgeTE9IjEyLjUiIHgyPSIxNS41IiB5Mj0iMTIuNSI+PC9saW5lPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iMC41IiB5MT0iMy41IiB4Mj0iMy41IiB5Mj0iMy41Ij48L2xpbmU+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSI5LjUiIHkxPSIzLjUiIHgyPSIxNS41IiB5Mj0iMy41Ij48L2xpbmU+IDxyZWN0IGRhdGEtY29sb3I9ImNvbG9yLTIiIHg9IjMuNSIgeT0iMC41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB3aWR0aD0iMyIgaGVpZ2h0PSI2Ij48L3JlY3Q+IDxyZWN0IGRhdGEtY29sb3I9ImNvbG9yLTIiIHg9IjkuNSIgeT0iOS41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB3aWR0aD0iMyIgaGVpZ2h0PSI2Ij48L3JlY3Q+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIwLjUiIHkxPSIxMi41IiB4Mj0iNi41IiB5Mj0iMTIuNSI+PC9saW5lPiA8L2c+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNOC45OTUsNy4wMDUgTDguOTk1LDcuMDA1YzEuMzc0LDEuMzc0LDEuMzc0LDMuNjAxLDAsNC45NzVsLTEuOTksMS45OWMtMS4zNzQsMS4zNzQtMy42MDEsMS4zNzQtNC45NzUsMGwwLDBjLTEuMzc0LTEuMzc0LTEuMzc0LTMuNjAxLDAtNC45NzUgbDEuNzQ4LTEuNjk4IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9wYXRoPiA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNNy4wMDUsOC45OTUgTDcuMDA1LDguOTk1Yy0xLjM3NC0xLjM3NC0xLjM3NC0zLjYwMSwwLTQuOTc1bDEuOTktMS45OWMxLjM3NC0xLjM3NCwzLjYwMS0xLjM3NCw0Ljk3NSwwbDAsMGMxLjM3NCwxLjM3NCwxLjM3NCwzLjYwMSwwLDQuOTc1IGwtMS43NDgsMS42OTgiIGRhdGEtY2FwPSJidXR0Ij48L3BhdGg+IDwvZz48L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cG9seWdvbiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IjEwLjUsMC41IDE1LjUsNC41IDEwLjUsOC41ICI+PC9wb2x5Z29uPiA8bGluZSBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iMC41IiB5MT0iNC41IiB4Mj0iMTAuNSIgeTI9IjQuNSI+PC9saW5lPiA8cG9seWdvbiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IjUuNSw3LjUgMC41LDExLjUgNS41LDE1LjUgIiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L3BvbHlnb24+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSIxNS41IiB5MT0iMTEuNSIgeDI9IjUuNSIgeTI9IjExLjUiIGRhdGEtY29sb3I9ImNvbG9yLTIiPjwvbGluZT48L2c+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTUuNSw2LjVsLTcuNSw0IGwtNy41LTR2OGMwLDAuNTUyLDAuNDQ4LDEsMSwxaDEzYzAuNTUyLDAsMS0wLjQ0OCwxLTFWNi41eiIgZGF0YS1jYXA9ImJ1dHQiPjwvcGF0aD4gPHBvbHlsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHBvaW50cz0iMi41LDUgMi41LDAuNSAxMy41LDAuNSAxMy41LDUgIiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9wb2x5bGluZT4gPGxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgeDE9IjUuNSIgeTE9IjMuNSIgeDI9IjEwLjUiIHkyPSIzLjUiIGRhdGEtY2FwPSJidXR0IiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L2xpbmU+IDxsaW5lIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHgxPSI1LjUiIHkxPSI2LjUiIHgyPSIxMC41IiB5Mj0iNi41IiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPjwvZz48L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cG9seWdvbiBkYXRhLWNvbG9yPSJjb2xvci0yIiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IiAxMywwLjUgMTUuNSwzIDcuNSwxMSA0LDEyIDUsOC41ICI+PC9wb2x5Z29uPiA8bGluZSBkYXRhLWNvbG9yPSJjb2xvci0yIiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiB4MT0iMTEiIHkxPSIyLjUiIHgyPSIxMy41IiB5Mj0iNSI+PC9saW5lPiA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTMuNSw5LjV2NSBjMCwwLjU1Mi0wLjQ0OCwxLTEsMWgtMTFjLTAuNTUyLDAtMS0wLjQ0OC0xLTF2LTExYzAtMC41NTIsMC40NDgtMSwxLTFoNSI+PC9wYXRoPiA8L2c+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cG9seWdvbiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBwb2ludHM9IjMuNSw2LjUgOCwxMS41IDEyLjUsNi41IDkuNSw2LjUgOS41LDAuNSA2LjUsMC41IDYuNSw2LjUgIiBkYXRhLWNvbG9yPSJjb2xvci0yIj48L3BvbHlnb24+IDxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkPSJNMTUuNSwxMC41djRjMCwwLjU1Mi0wLjQ0OCwxLTEsMWgtMTMgYy0wLjU1MiwwLTEtMC40NDgtMS0xdi00Ij48L3BhdGg+PC9nPjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48bGluZSB4MT0iMTAuNSIgeTE9IjEuNSIgeDI9IjUuNSIgeTI9IjE0LjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNhcD0iYnV0dCIgZGF0YS1jb2xvcj0iY29sb3ItMiI+PC9saW5lPiA8cG9seWxpbmUgcG9pbnRzPSIzLjUgNC41IDAuNSA3LjUgMy41IDEwLjUiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBkYXRhLWNhcD0iYnV0dCI+PC9wb2x5bGluZT4gPHBvbHlsaW5lIHBvaW50cz0iMTIuNSA0LjUgMTUuNSA3LjUgMTIuNSAxMC41IiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZGF0YS1jYXA9ImJ1dHQiPjwvcG9seWxpbmU+PC9nPjwvc3ZnPg=="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTMuNSwxNS41aC0xMSBjLTAuNTUyLDAtMS0wLjQ0OC0xLTF2LTdjMC0wLjU1MiwwLjQ0OC0xLDEtMWgxMWMwLjU1MiwwLDEsMC40NDgsMSwxdjdDMTQuNSwxNS4wNTIsMTQuMDUyLDE1LjUsMTMuNSwxNS41eiI+PC9wYXRoPiA8cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNNC41LDYuNVY0IGMwLTEuOTMzLDEuNTY3LTMuNSwzLjUtMy41aDBjMS45MzMsMCwzLjUsMS41NjcsMy41LDMuNXYyLjUiPjwvcGF0aD4gPGNpcmNsZSBkYXRhLWNvbG9yPSJjb2xvci0yIiBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBjeD0iOCIgY3k9IjExIiByPSIxLjUiPjwvY2lyY2xlPiA8L2c+PC9zdmc+"},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48Y2lyY2xlIGRhdGEtY29sb3I9ImNvbG9yLTIiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzExMTExMSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGN4PSI4IiBjeT0iOCIgcj0iMi41Ij48L2NpcmNsZT4gPHBhdGggZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMTExMTExIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgZD0iTTE1LjUsOVY3IGwtMi4xNzctMC4zNjNjLTAuMTMxLTAuNTEyLTAuMzMyLTAuOTk0LTAuNTk1LTEuNDM3bDEuMjgzLTEuNzk2TDEyLjU5NiwxLjk5TDEwLjgsMy4yNzJjLTAuNDQzLTAuMjYzLTAuOTI1LTAuNDY0LTEuNDM3LTAuNTk1IEw5LDAuNUg3TDYuNjM3LDIuNjc3QzYuMTI1LDIuODA4LDUuNjQzLDMuMDA5LDUuMiwzLjI3MkwzLjQwNCwxLjk5TDEuOTksMy40MDRMMy4yNzIsNS4yQzMuMDA5LDUuNjQzLDIuODA4LDYuMTI1LDIuNjc3LDYuNjM3IEwwLjUsN3YybDIuMTc3LDAuMzYzYzAuMTMxLDAuNTEyLDAuMzMyLDAuOTk0LDAuNTk1LDEuNDM3TDEuOTksMTIuNTk2bDEuNDE0LDEuNDE0TDUuMiwxMi43MjhjMC40NDMsMC4yNjMsMC45MjUsMC40NjQsMS40MzcsMC41OTUgTDcsMTUuNWgybDAuMzYzLTIuMTc3YzAuNTEyLTAuMTMxLDAuOTk0LTAuMzMyLDEuNDM3LTAuNTk1bDEuNzk2LDEuMjgzbDEuNDE0LTEuNDE0TDEyLjcyOCwxMC44IGMwLjI2My0wLjQ0MywwLjQ2NC0wLjkyNSwwLjU5NS0xLjQzN0wxNS41LDl6Ij48L3BhdGg+IDwvZz48L3N2Zz4="},function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZyBjbGFzcz0ibmMtaWNvbi13cmFwcGVyIiBmaWxsPSIjMTExMTExIj48cGF0aCBmaWxsPSJub25lIiBzdHJva2U9IiMxMTExMTEiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLW1pdGVybGltaXQ9IjEwIiBkPSJNMTQuNSw4LjVMOCwwLjUgbC02LjUsOGg0VjEzYzAsMS4zODEsMS4xMTksMi41LDIuNSwyLjVoMGMxLjM4MSwwLDIuNS0xLjExOSwyLjUtMi41VjguNUgxNC41eiI+PC9wYXRoPjwvZz48L3N2Zz4="},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(1),a=n.n(o),l=n(277),s=n(659),u=function(e){var t=0;if(e.structure.length>0){var n=e.structure[e.structure.length-1],r=document.getElementById("wprm-settings-group-"+n.id);if(r){var o=r.getBoundingClientRect().top+window.scrollY,a=document.body.scrollHeight-o;t=window.innerHeight+42-a}}return i.a.createElement("div",{id:"wprm-settings-container"},e.structure.map(function(t,n){return t.hasOwnProperty("description")||t.hasOwnProperty("subGroups")||t.hasOwnProperty("settings")?i.a.createElement(l.a,{settings:e.settings,onSettingChange:e.onSettingChange,settingsChanged:e.settingsChanged,group:t,key:n}):"settingsTools"===t.id?i.a.createElement(s.a,{settings:e.settings,onResetDefaults:e.onResetDefaults,group:t,key:n}):void 0}),i.a.createElement("div",{className:"wprm-settings-spacer",style:{height:t}}))};u.propTypes={structure:a.a.array.isRequired,settings:a.a.object.isRequired,settingsChanged:a.a.bool.isRequired,onSettingChange:a.a.func.isRequired,onResetDefaults:a.a.func.isRequired},t.a=u},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(1),a=n.n(o),l=n(73),s=n(119),u=n(658),c=n(74),f=function(e){return i.a.createElement("div",{id:"wprm-settings-group-"+e.group.id,className:"wprm-settings-group"},i.a.createElement(c.a,{object:e.group}),i.a.createElement("h2",{className:"wprm-settings-group-name"},e.group.name),e.group.hasOwnProperty("description")?i.a.createElement("div",{className:"wprm-settings-group-description"},e.group.description):null,e.group.hasOwnProperty("documentation")?i.a.createElement("a",{href:e.group.documentation,target:"_blank",className:"wprm-setting-documentation"},"Learn More"):null,e.group.hasOwnProperty("settings")?i.a.createElement(s.a,{outputSettings:e.group.settings,settings:e.settings,onSettingChange:e.onSettingChange,settingsChanged:e.settingsChanged}):null,e.group.hasOwnProperty("subGroups")?e.group.subGroups.map(function(t,n){return l.a.dependencyMet(t,e.settings)?i.a.createElement(u.a,{settings:e.settings,onSettingChange:e.onSettingChange,settingsChanged:e.settingsChanged,subgroup:t,key:n}):null}):null)};f.propTypes={group:a.a.object.isRequired,settings:a.a.object.isRequired,settingsChanged:a.a.bool.isRequired,onSettingChange:a.a.func.isRequired},t.a=f},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(1),a=n.n(o),l=n(37),s=(n.n(l),n(73)),u=n(74),c=n(279),f=n(290),p=n(535),d=n(537),h=n(538),g=n(539),v=n(540),m=n(541),y=n(647),b=n(648),x=n(649),w=n(655),C=n(656),k={code:c.a,color:f.a,dropdown:p.a,dropdownMultiselect:d.a,dropdownTemplate:h.a,email:g.a,number:v.a,richTextarea:m.a,text:y.a,textarea:b.a,toggle:x.a,unitConversionUnits:w.a},E={button:C.a},S=function(e){var t=!!k.hasOwnProperty(e.setting.type)&&k[e.setting.type],n=!!E.hasOwnProperty(e.setting.type)&&E[e.setting.type],r=!!t&&s.a.beforeSettingDisplay(e.setting.id,e.settings);return"unitConversionUnits"===e.setting.type?i.a.createElement(t,{setting:e.setting,settingsChanged:e.settingsChanged,onValueChange:function(t){var n=s.a.beforeSettingSave(t,e.setting.id,e.settings);return e.onSettingChange(e.setting.id,n)},value:r}):i.a.createElement(l.Element,{className:"wprm-setting-container",name:e.setting.id},i.a.createElement("div",{className:"wprm-setting-label-container"},i.a.createElement("span",{className:"wprm-setting-label"},i.a.createElement(u.a,{object:e.setting}),e.setting.name),i.a.createElement("span",{className:"wprm-setting-description"},e.setting.description),e.setting.hasOwnProperty("documentation")?i.a.createElement("a",{href:e.setting.documentation,target:"_blank",className:"wprm-setting-documentation"},"Learn More"):null),i.a.createElement("div",{className:"wprm-setting-input-container"},t?i.a.createElement(t,{setting:e.setting,settingsChanged:e.settingsChanged,onValueChange:function(t){var n=s.a.beforeSettingSave(t,e.setting.id,e.settings);return e.onSettingChange(e.setting.id,n)},value:r}):null,n?i.a.createElement(n,{setting:e.setting,settingsChanged:e.settingsChanged}):null))};S.propTypes={settings:a.a.object.isRequired,setting:a.a.object.isRequired,onSettingChange:a.a.func.isRequired,settingsChanged:a.a.bool.isRequired},t.a=S},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(1),a=n.n(o),l=n(280),s=n.n(l);n(287),n(288);var u=function(e){return i.a.createElement(s.a,{className:"wprm-setting-input",value:e.value,onChange:function(t){return e.onValueChange(t)},options:{lineNumbers:!0,mode:e.setting.code}})};u.propTypes={setting:a.a.object.isRequired,value:a.a.any.isRequired,onValueChange:a.a.func.isRequired},t.a=u},function(e,t,n){"use strict";function r(e){return e?e.replace(/\r\n|\r/g,"\n"):e}var i=n(0),o=(n(15),n(1)),a=n(75),l=n(281),s=n(282),u=n(76)({propTypes:{autoFocus:o.bool,className:o.any,codeMirrorInstance:o.func,defaultValue:o.string,name:o.string,onChange:o.func,onCursorActivity:o.func,onFocusChange:o.func,onScroll:o.func,options:o.object,path:o.string,value:o.string,preserveScrollPosition:o.bool},getDefaultProps:function(){return{preserveScrollPosition:!1}},getCodeMirrorInstance:function(){return this.props.codeMirrorInstance||n(286)},getInitialState:function(){return{isFocused:!1}},componentWillMount:function(){this.componentWillReceiveProps=l(this.componentWillReceiveProps,0),this.props.path&&console.error("Warning: react-codemirror: the `path` prop has been changed to `name`")},componentDidMount:function(){var e=this.getCodeMirrorInstance();this.codeMirror=e.fromTextArea(this.textareaNode,this.props.options),this.codeMirror.on("change",this.codemirrorValueChanged),this.codeMirror.on("cursorActivity",this.cursorActivity),this.codeMirror.on("focus",this.focusChanged.bind(this,!0)),this.codeMirror.on("blur",this.focusChanged.bind(this,!1)),this.codeMirror.on("scroll",this.scrollChanged),this.codeMirror.setValue(this.props.defaultValue||this.props.value||"")},componentWillUnmount:function(){this.codeMirror&&this.codeMirror.toTextArea()},componentWillReceiveProps:function(e){if(this.codeMirror&&void 0!==e.value&&e.value!==this.props.value&&r(this.codeMirror.getValue())!==r(e.value))if(this.props.preserveScrollPosition){var t=this.codeMirror.getScrollInfo();this.codeMirror.setValue(e.value),this.codeMirror.scrollTo(t.left,t.top)}else this.codeMirror.setValue(e.value);if("object"==typeof e.options)for(var n in e.options)e.options.hasOwnProperty(n)&&this.setOptionIfChanged(n,e.options[n])},setOptionIfChanged:function(e,t){var n=this.codeMirror.getOption(e);s(n,t)||this.codeMirror.setOption(e,t)},getCodeMirror:function(){return this.codeMirror},focus:function(){this.codeMirror&&this.codeMirror.focus()},focusChanged:function(e){this.setState({isFocused:e}),this.props.onFocusChange&&this.props.onFocusChange(e)},cursorActivity:function(e){this.props.onCursorActivity&&this.props.onCursorActivity(e)},scrollChanged:function(e){this.props.onScroll&&this.props.onScroll(e.getScrollInfo())},codemirrorValueChanged:function(e,t){this.props.onChange&&"setValue"!==t.origin&&this.props.onChange(e.getValue(),t)},render:function(){var e=this,t=a("ReactCodeMirror",this.state.isFocused?"ReactCodeMirror--focused":null,this.props.className);return i.createElement("div",{className:t},i.createElement("textarea",{ref:function(t){return e.textareaNode=t},name:this.props.name||this.props.path,defaultValue:this.props.value,autoComplete:"off",autoFocus:this.props.autoFocus}))}});e.exports=u},function(e,t,n){(function(t){function n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==o}(e))return i;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var r=s.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):l.test(e)?i:+e}var i=NaN,o="[object Symbol]",a=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,f="object"==typeof t&&t&&t.Object===Object&&t,p="object"==typeof self&&self&&self.Object===Object&&self,d=f||p||Function("return this")(),h=Object.prototype.toString,g=Math.max,v=Math.min,m=function(){return d.Date.now()};e.exports=function(e,t,i){function o(t){var n=c,r=f;return c=f=void 0,b=t,d=e.apply(r,n)}function a(e){var n=e-y;return void 0===y||n>=t||n<0||w&&e-b>=p}function l(){var e=m();if(a(e))return s(e);h=setTimeout(l,function(e){var n=t-(e-y);return w?v(n,p-(e-b)):n}(e))}function s(e){return h=void 0,C&&c?o(e):(c=f=void 0,d)}function u(){var e=m(),n=a(e);if(c=arguments,f=this,y=e,n){if(void 0===h)return function(e){return b=e,h=setTimeout(l,t),x?o(e):d}(y);if(w)return h=setTimeout(l,t),o(y)}return void 0===h&&(h=setTimeout(l,t)),d}var c,f,p,d,h,y,b=0,x=!1,w=!1,C=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return t=r(t)||0,n(i)&&(x=!!i.leading,p=(w="maxWait"in i)?g(r(i.maxWait)||0,t):p,C="trailing"in i?!!i.trailing:C),u.cancel=function(){void 0!==h&&clearTimeout(h),b=0,c=y=f=h=void 0},u.flush=function(){return void 0===h?d:s(m())},u}}).call(t,n(16))},function(e,t,n){(function(e,n){function r(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function i(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function o(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function u(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new s;++t<n;)this.add(e[t])}function c(e){var t=this.__data__=new l(e);this.size=t.size}function f(e,t){var n=Ke(e),r=!n&&Ye(e),i=!n&&!r&&Je(e),o=!n&&!r&&!i&&Xe(e),a=n||r||i||o,l=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=l.length;for(var u in e)!t&&!xe.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||C(u,s))||l.push(u);return l}function p(e,t){for(var n=e.length;n--;)if(E(e[n][0],t))return n;return-1}function d(e){return null==e?void 0===e?X:q:Me&&Me in Object(e)?function(e){var t=xe.call(e,Me),n=e[Me];try{e[Me]=void 0;var r=!0}catch(e){}var i=Ce.call(e);return r&&(t?e[Me]=n:delete e[Me]),i}(e):function(e){return Ce.call(e)}(e)}function h(e){return T(e)&&d(e)==A}function g(e,t,n,r,a){return e===t||(null==e||null==t||!T(e)&&!T(t)?e!=e&&t!=t:function(e,t,n,r,a,l){var s=Ke(e),u=Ke(t),f=s?L:Ze(e),p=u?L:Ze(t),d=(f=f==A?V:f)==V,h=(p=p==A?V:p)==V,g=f==p;if(g&&Je(e)){if(!Je(t))return!1;s=!0,d=!1}if(g&&!d)return l||(l=new c),s||Xe(e)?y(e,t,n,r,a,l):function(e,t,n,r,a,l,s){switch(n){case Q:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $:return!(e.byteLength!=t.byteLength||!l(new _e(e),new _e(t)));case R:case F:case U:return E(+e,+t);case B:return e.name==t.name&&e.message==t.message;case Z:case K:return e==t+"";case H:var u=i;case Y:var c=r&j;if(u||(u=o),e.size!=t.size&&!c)return!1;var f=s.get(e);if(f)return f==t;r|=I,s.set(e,t);var p=y(u(e),u(t),r,a,l,s);return s.delete(e),p;case J:if(Ve)return Ve.call(e)==Ve.call(t)}return!1}(e,t,f,n,r,a,l);if(!(n&j)){var v=d&&xe.call(e,"__wrapped__"),m=h&&xe.call(t,"__wrapped__");if(v||m){var x=v?e.value():e,w=m?t.value():t;return l||(l=new c),a(x,w,n,r,l)}}return!!g&&(l||(l=new c),function(e,t,n,r,i,o){var a=n&j,l=b(e),s=l.length;if(s!=b(t).length&&!a)return!1;for(var u=s;u--;){var c=l[u];if(!(a?c in t:xe.call(t,c)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var p=!0;o.set(e,t),o.set(t,e);for(var d=a;++u<s;){c=l[u];var h=e[c],g=t[c];if(r)var v=a?r(g,h,c,t,e,o):r(h,g,c,e,t,o);if(!(void 0===v?h===g||i(h,g,n,r,o):v)){p=!1;break}d||(d="constructor"==c)}if(p&&!d){var m=e.constructor,y=t.constructor;m!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof y&&y instanceof y)&&(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,a,l))}(e,t,n,r,g,a))}function v(e){return!(!O(e)||we&&we in e)&&(S(e)?ke:ee).test(k(e))}function m(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||me,t!==r)return Ie(e);var t,n,r,i=[];for(var o in Object(e))xe.call(e,o)&&"constructor"!=o&&i.push(o);return i}function y(e,t,n,i,o,a){var l=n&j,s=e.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var f=a.get(e);if(f&&a.get(t))return f==t;var p=-1,d=!0,h=n&I?new u:void 0;for(a.set(e,t),a.set(t,e);++p<s;){var g=e[p],v=t[p];if(i)var m=l?i(v,g,p,t,e,a):i(g,v,p,e,t,a);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!r(t,function(e,t){if(r=t,!h.has(r)&&(g===e||o(g,e,n,i,a)))return h.push(t);var r})){d=!1;break}}else if(g!==v&&!o(g,v,n,i,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function b(e){return function(e,t,n){var r=t(e);return Ke(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,M,Ge)}function x(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function w(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return v(n)?n:void 0}function C(e,t){return!!(t=null==t?P:t)&&("number"==typeof e||te.test(e))&&e>-1&&e%1==0&&e<t}function k(e){if(null!=e){try{return be.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function E(e,t){return e===t||e!=e&&t!=t}function S(e){if(!O(e))return!1;var t=d(e);return t==W||t==z||t==D||t==G}function _(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=P}function O(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function T(e){return null!=e&&"object"==typeof e}function M(e){return null!=(t=e)&&_(t.length)&&!S(t)?f(e):m(e);var t}var N="__lodash_hash_undefined__",j=1,I=2,P=9007199254740991,A="[object Arguments]",L="[object Array]",D="[object AsyncFunction]",R="[object Boolean]",F="[object Date]",B="[object Error]",W="[object Function]",z="[object GeneratorFunction]",H="[object Map]",U="[object Number]",q="[object Null]",V="[object Object]",G="[object Proxy]",Z="[object RegExp]",Y="[object Set]",K="[object String]",J="[object Symbol]",X="[object Undefined]",$="[object ArrayBuffer]",Q="[object DataView]",ee=/^\[object .+?Constructor\]$/,te=/^(?:0|[1-9]\d*)$/,ne={};ne["[object Float32Array]"]=ne["[object Float64Array]"]=ne["[object Int8Array]"]=ne["[object Int16Array]"]=ne["[object Int32Array]"]=ne["[object Uint8Array]"]=ne["[object Uint8ClampedArray]"]=ne["[object Uint16Array]"]=ne["[object Uint32Array]"]=!0,ne[A]=ne[L]=ne[$]=ne[R]=ne[Q]=ne[F]=ne[B]=ne[W]=ne[H]=ne[U]=ne[V]=ne[Z]=ne[Y]=ne[K]=ne["[object WeakMap]"]=!1;var re,ie,oe,ae="object"==typeof e&&e&&e.Object===Object&&e,le="object"==typeof self&&self&&self.Object===Object&&self,se=ae||le||Function("return this")(),ue="object"==typeof t&&t&&!t.nodeType&&t,ce=ue&&"object"==typeof n&&n&&!n.nodeType&&n,fe=ce&&ce.exports===ue,pe=fe&&ae.process,de=function(){try{return pe&&pe.binding&&pe.binding("util")}catch(e){}}(),he=de&&de.isTypedArray,ge=Array.prototype,ve=Function.prototype,me=Object.prototype,ye=se["__core-js_shared__"],be=ve.toString,xe=me.hasOwnProperty,we=(re=/[^.]+$/.exec(ye&&ye.keys&&ye.keys.IE_PROTO||""))?"Symbol(src)_1."+re:"",Ce=me.toString,ke=RegExp("^"+be.call(xe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ee=fe?se.Buffer:void 0,Se=se.Symbol,_e=se.Uint8Array,Oe=me.propertyIsEnumerable,Te=ge.splice,Me=Se?Se.toStringTag:void 0,Ne=Object.getOwnPropertySymbols,je=Ee?Ee.isBuffer:void 0,Ie=(ie=Object.keys,oe=Object,function(e){return ie(oe(e))}),Pe=w(se,"DataView"),Ae=w(se,"Map"),Le=w(se,"Promise"),De=w(se,"Set"),Re=w(se,"WeakMap"),Fe=w(Object,"create"),Be=k(Pe),We=k(Ae),ze=k(Le),He=k(De),Ue=k(Re),qe=Se?Se.prototype:void 0,Ve=qe?qe.valueOf:void 0;a.prototype.clear=function(){this.__data__=Fe?Fe(null):{},this.size=0},a.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},a.prototype.get=function(e){var t=this.__data__;if(Fe){var n=t[e];return n===N?void 0:n}return xe.call(t,e)?t[e]:void 0},a.prototype.has=function(e){var t=this.__data__;return Fe?void 0!==t[e]:xe.call(t,e)},a.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Fe&&void 0===t?N:t,this},l.prototype.clear=function(){this.__data__=[],this.size=0},l.prototype.delete=function(e){var t=this.__data__,n=p(t,e);return!(n<0)&&(n==t.length-1?t.pop():Te.call(t,n,1),--this.size,!0)},l.prototype.get=function(e){var t=this.__data__,n=p(t,e);return n<0?void 0:t[n][1]},l.prototype.has=function(e){return p(this.__data__,e)>-1},l.prototype.set=function(e,t){var n=this.__data__,r=p(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},s.prototype.clear=function(){this.size=0,this.__data__={hash:new a,map:new(Ae||l),string:new a}},s.prototype.delete=function(e){var t=x(this,e).delete(e);return this.size-=t?1:0,t},s.prototype.get=function(e){return x(this,e).get(e)},s.prototype.has=function(e){return x(this,e).has(e)},s.prototype.set=function(e,t){var n=x(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},u.prototype.add=u.prototype.push=function(e){return this.__data__.set(e,N),this},u.prototype.has=function(e){return this.__data__.has(e)},c.prototype.clear=function(){this.__data__=new l,this.size=0},c.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},c.prototype.get=function(e){return this.__data__.get(e)},c.prototype.has=function(e){return this.__data__.has(e)},c.prototype.set=function(e,t){var n=this.__data__;if(n instanceof l){var r=n.__data__;if(!Ae||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new s(r)}return n.set(e,t),this.size=n.size,this};var Ge=Ne?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];(function(t){return Oe.call(e,t)})(a)&&(o[i++]=a)}return o}(Ne(e)))}:function(){return[]},Ze=d;(Pe&&Ze(new Pe(new ArrayBuffer(1)))!=Q||Ae&&Ze(new Ae)!=H||Le&&"[object Promise]"!=Ze(Le.resolve())||De&&Ze(new De)!=Y||Re&&"[object WeakMap]"!=Ze(new Re))&&(Ze=function(e){var t=d(e),n=t==V?e.constructor:void 0,r=n?k(n):"";if(r)switch(r){case Be:return Q;case We:return H;case ze:return"[object Promise]";case He:return Y;case Ue:return"[object WeakMap]"}return t});var Ye=h(function(){return arguments}())?h:function(e){return T(e)&&xe.call(e,"callee")&&!Oe.call(e,"callee")},Ke=Array.isArray,Je=je||function(){return!1},Xe=he?function(e){return function(t){return e(t)}}(he):function(e){return T(e)&&_(e.length)&&!!ne[d(e)]};n.exports=function(e,t){return g(e,t)}}).call(t,n(16),n(14)(e))},function(e,t,n){"use strict";var r=n(35),i=n(284),o=n(285),a="mixins";e.exports=function(e,t,n){function l(e,t){var n=h.hasOwnProperty(t)?h[t]:null;b.hasOwnProperty(t)&&o("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&o("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function s(e,n){if(n){o("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),o(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,i=r.__reactAutoBindPairs;n.hasOwnProperty(a)&&v.mixins(e,n.mixins);for(var s in n)if(n.hasOwnProperty(s)&&s!==a){var u=n[s],p=r.hasOwnProperty(s);if(l(p,s),v.hasOwnProperty(s))v[s](e,u);else{var d=h.hasOwnProperty(s);if("function"!=typeof u||d||p||!1===n.autobind)if(p){var g=h[s];o(d&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,s),"DEFINE_MANY_MERGED"===g?r[s]=c(r[s],u):"DEFINE_MANY"===g&&(r[s]=f(r[s],u))}else r[s]=u,0;else i.push(s,u),r[s]=u}}}else;}function u(e,t){for(var n in o(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(o(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function c(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return u(i,n),u(i,r),i}}function f(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function p(e,t){var n=t.bind(e);return n}var d=[],h={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},g={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},v={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)s(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=c(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var i=n in v;o(!i,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var a=n in e;if(a){var l=g.hasOwnProperty(n)?g[n]:null;return o("DEFINE_MANY_MERGED"===l,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=c(e[n],r))}e[n]=r}}}(e,t)},autobind:function(){}},m={componentDidMount:function(){this.__isMounted=!0}},y={componentWillUnmount:function(){this.__isMounted=!1}},b={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},x=function(){};return r(x.prototype,e.prototype,b),function(e){var t=function(e,r,a){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=p(e,i)}}(this),this.props=e,this.context=r,this.refs=i,this.updater=a||n,this.state=null;var l=this.getInitialState?this.getInitialState():null;o("object"==typeof l&&!Array.isArray(l),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=l};t.prototype=new x,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],d.forEach(s.bind(null,t)),s(t,m),s(t,e),s(t,y),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),o(t.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var r in h)t.prototype[r]||(t.prototype[r]=null);return t}}},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,o,a,l,s){if(r(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,a,l,s],f=0;(u=new Error(t.replace(/%s/g,function(){return c[f++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){var r;r=function(){"use strict";function e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function t(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function r(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function i(e,t,n,i){var o=r(e,t,n,i);return o.setAttribute("role","presentation"),o}function o(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function a(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function l(t,n){var r=t.className;e(n).test(r)||(t.className+=(r?" ":"")+n)}function s(t,n){for(var r=t.split(" "),i=0;i<r.length;i++)r[i]&&!e(r[i]).test(n)&&(n+=" "+r[i]);return n}function u(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function c(e,t,n){t||(t={});for(var r in e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function f(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var l=e.indexOf("\t",o);if(l<0||l>=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}function p(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}function d(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}function h(e){for(;Io.length<=e;)Io.push(g(Io)+" ");return Io[e]}function g(e){return e[e.length-1]}function v(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function m(){}function y(e,t){var n;return Object.create?n=Object.create(e):(m.prototype=e,n=new m),t&&c(t,n),n}function b(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Po.test(e))}function x(e,t){return t?!!(t.source.indexOf("\\w")>-1&&b(e))||t.test(e):b(e)}function w(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function C(e){return e.charCodeAt(0)>=768&&Ao.test(e)}function k(e,t,n){for(;(n<0?t>0:t<e.length)&&C(e.charAt(t));)t+=n;return t}function E(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function S(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function _(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function O(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function T(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function M(e){if(null==e.parent)return null;for(var t=e.parent,n=p(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function N(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var l=e.lines[a].height;if(t<l)break;t-=l}return n+a}function j(e,t){return t>=e.first&&t<e.first+e.size}function I(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function P(e,t,n){if(void 0===n&&(n=null),!(this instanceof P))return new P(e,t,n);this.line=e,this.ch=t,this.sticky=n}function A(e,t){return e.line-t.line||e.ch-t.ch}function L(e,t){return e.sticky==t.sticky&&0==A(e,t)}function D(e){return P(e.line,e.ch)}function R(e,t){return A(e,t)<0?t:e}function F(e,t){return A(e,t)<0?e:t}function B(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function W(e,t){if(t.line<e.first)return P(e.first,0);var n=e.first+e.size-1;return t.line>n?P(n,S(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?P(e.line,t):n<0?P(e.line,0):e}(t,S(e,t.line).text.length)}function z(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=W(e,t[r]);return n}function H(e,t,n){this.marker=e,this.from=t,this.to=n}function U(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function q(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function V(e,t){if(t.full)return null;var n=j(e,t.from.line)&&S(e,t.from.line).markedSpans,r=j(e,t.to.line)&&S(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==A(t.from,t.to),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new H(a,o.from,l?null:o.to))}}return r}(n,i,a),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new H(a,l?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),u=1==t.text.length,c=g(t.text).length+(u?i:0);if(l)for(var f=0;f<l.length;++f){var p=l[f];if(null==p.to){var d=U(s,p.marker);d?u&&(p.to=null==d.to?null:d.to+c):p.to=i}}if(s)for(var h=0;h<s.length;++h){var v=s[h];null!=v.to&&(v.to+=c),null==v.from?U(l,v.marker)||(v.from=c,u&&(l||(l=[])).push(v)):(v.from+=c,u&&(l||(l=[])).push(v))}l&&(l=G(l)),s&&s!=l&&(s=G(s));var m=[l];if(!u){var y,b=t.text.length-2;if(b>0&&l)for(var x=0;x<l.length;++x)null==l[x].to&&(y||(y=[])).push(new H(l[x].marker,null,null));for(var w=0;w<b;++w)m.push(y);m.push(s)}return m}function G(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Z(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Y(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function K(e){return e.inclusiveLeft?-1:0}function J(e){return e.inclusiveRight?1:0}function X(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=A(r.from,i.from)||K(e)-K(t);if(o)return-o;var a=A(r.to,i.to)||J(e)-J(t);return a||t.id-e.id}function $(e,t){var n,r=Do&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||X(n,i.marker)<0)&&(n=i.marker);return n}function Q(e){return $(e,!0)}function ee(e){return $(e,!1)}function te(e,t){var n,r=Do&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||X(n,o.marker)<0)&&(n=o.marker)}return n}function ne(e,t,n,r,i){var o=S(e,t),a=Do&&o.markedSpans;if(a)for(var l=0;l<a.length;++l){var s=a[l];if(s.marker.collapsed){var u=s.marker.find(0),c=A(u.from,n)||K(s.marker)-K(i),f=A(u.to,r)||J(s.marker)-J(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?A(u.to,n)>=0:A(u.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?A(u.from,r)<=0:A(u.from,r)<0)))return!0}}}function re(e){for(var t;t=Q(e);)e=t.find(-1,!0).line;return e}function ie(e,t){var n=S(e,t),r=re(n);return n==r?t:M(r)}function oe(e,t){if(t>e.lastLine())return t;var n,r=S(e,t);if(!ae(e,r))return t;for(;n=ee(r);)r=n.find(1,!0).line;return M(r)+1}function ae(e,t){var n=Do&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&le(e,t,r))return!0}}function le(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return le(e,r.line,U(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&le(e,t,i))return!0}function se(e){for(var t=0,n=(e=re(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var l=o.children[a];if(l==n)break;t+=l.height}return t}function ue(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Q(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=ee(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function ce(e){var t=e.display,n=e.doc;t.maxLine=S(n,n.first),t.maxLineLength=ue(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=ue(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function fe(e,t,n){var r;Ro=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:Ro=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:Ro=i)}return null!=r?r:Ro}function pe(e,t){var n=e.order;return null==n&&(n=e.order=Fo(e.text,t)),n}function de(e,t){return e._handlers&&e._handlers[t]||Bo}function he(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=p(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ge(e,t){var n=de(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function ve(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ge(e,n||t.type,e,t),Ce(t)||t.codemirrorIgnore}function me(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==p(n,t[r])&&n.push(t[r])}function ye(e,t){return de(e,t).length>0}function be(e){e.prototype.on=function(e,t){Wo(this,e,t)},e.prototype.off=function(e,t){he(this,e,t)}}function xe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function we(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ke(e){xe(e),we(e)}function Ee(e){return e.target||e.srcElement}function Se(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),go&&e.ctrlKey&&1==t&&(t=3),t}function _e(e){if(null==So){var t=r("span","");n(e,r("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(So=t.offsetWidth<=1&&t.offsetHeight>2&&!(no&&ro<8))}var i=So?r("span",""):r("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function Oe(e){if(null!=_o)return _o;var r=n(e,document.createTextNode("AخA")),i=bo(r,0,1).getBoundingClientRect(),o=bo(r,1,2).getBoundingClientRect();return t(e),!(!i||i.left==i.right)&&(_o=o.right-i.right<3)}function Te(e){if("string"==typeof e&&Zo.hasOwnProperty(e))e=Zo[e];else if(e&&"string"==typeof e.name&&Zo.hasOwnProperty(e.name)){var t=Zo[e.name];"string"==typeof t&&(t={name:t}),(e=y(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Te("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Te("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Me(e,t){t=Te(t);var n=Go[t.name];if(!n)return Me(e,"text/plain");var r=n(e,t);if(Yo.hasOwnProperty(t.name)){var i=Yo[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}function Ne(e,t){c(t,Yo.hasOwnProperty(e)?Yo[e]:Yo[e]={})}function je(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ie(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Pe(e,t,n){return!e.startState||e.startState(t,n)}function Ae(e,t,n,r){var i=[e.state.modeGen],o={};He(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,l=0;l<e.state.overlays.length;++l)!function(r){n.baseTokens=i;var l=e.state.overlays[r],s=1,u=0;n.state=!0,He(e,t.text,l.mode,n,function(e,t){for(var n=s;u<e;){var r=i[s];r>e&&i.splice(s,1,e,i[s+1],r),s+=2,u=Math.min(e,r)}if(t)if(l.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;n<s;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1}(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Le(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=De(e,M(t)),i=t.text.length>e.options.maxHighlightLength&&je(e.doc.mode,r.state),o=Ae(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function De(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Xo(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=o.first)return o.first;var s=S(o,l-1),u=s.stateAfter;if(u&&(!n||l+(u instanceof Jo?u.lookAhead:0)<=o.modeFrontier))return l;var c=f(s.text,null,e.options.tabSize);(null==i||r>c)&&(i=l-1,r=c)}return i}(e,t,n),a=o>r.first&&S(r,o-1).stateAfter,l=a?Xo.fromSaved(r,a,o):new Xo(r,Pe(r.mode),o);return r.iter(o,t,function(n){Re(e,n.text,l);var r=l.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?l.save():null,l.nextLine()}),n&&(r.modeFrontier=l.line),l}function Re(e,t,n,r){var i=e.doc.mode,o=new Ko(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Fe(i,n.state);!o.eol();)Be(i,o,n.state),o.start=o.pos}function Fe(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ie(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Be(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ie(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function We(e,t,n,r){var i,o,a=e.doc,l=a.mode,s=S(a,(t=W(a,t)).line),u=De(e,t.line,n),c=new Ko(s.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=Be(l,c,u.state),r&&o.push(new $o(c,i,je(a.mode,u.state)));return r?o:new $o(c,i,u.state)}function ze(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function He(e,t,n,r,i,o,a){var l=n.flattenSpans;null==l&&(l=e.options.flattenSpans);var s,u=0,c=null,f=new Ko(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&ze(Fe(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(l=!1,a&&Re(e,t,r,f.pos),f.pos=t.length,s=null):s=ze(Be(n,f,r.state,p),o),p){var d=p[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!l||c!=s){for(;u<f.start;)i(u=Math.min(f.start,u+5e3),c);c=s}f.start=f.pos}for(;u<f.pos;){var h=Math.min(f.pos,u+5e3);i(h,c),u=h}}function Ue(e){e.parent=null,Z(e)}function qe(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?na:ta;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Ve(e,t){var n=i("span",null,null,io?"padding-right: .1px":null),r={pre:i("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(no||io)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var a=o?t.rest[o-1]:t.line,l=void 0;r.pos=0,r.addToken=Ze,Oe(e.display.measure)&&(l=pe(a,e.doc.direction))&&(r.addToken=Ye(r.addToken,l)),r.map=[],Je(a,r,Le(e,a,t!=e.display.externalMeasured&&M(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=s(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=s(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(_e(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(io){var u=r.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ge(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=s(r.pre.className,r.textClass||"")),r}function Ge(e){var t=r("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ze(e,t,n,i,o,a,l){if(t){var s,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,c=e.cm.state.specialChars,f=!1;if(c.test(t)){s=document.createDocumentFragment();for(var p=0;;){c.lastIndex=p;var d=c.exec(t),g=d?d.index-p:t.length-p;if(g){var v=document.createTextNode(u.slice(p,p+g));no&&ro<9?s.appendChild(r("span",[v])):s.appendChild(v),e.map.push(e.pos,e.pos+g,v),e.col+=g,e.pos+=g}if(!d)break;p+=g+1;var m=void 0;if("\t"==d[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(m=s.appendChild(r("span",h(b),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=b}else"\r"==d[0]||"\n"==d[0]?((m=s.appendChild(r("span","\r"==d[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",d[0]),e.col+=1):((m=e.cm.options.specialCharPlaceholder(d[0])).setAttribute("cm-text",d[0]),no&&ro<9?s.appendChild(r("span",[m])):s.appendChild(m),e.col+=1);e.map.push(e.pos,e.pos+1,m),e.pos++}}else e.col+=t.length,s=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,s),no&&ro<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||i||o||f||l){var x=n||"";i&&(x+=i),o&&(x+=o);var w=r("span",[s],x,l);return a&&(w.title=a),e.content.appendChild(w)}e.content.appendChild(s)}}function Ye(e,t){return function(n,r,i,o,a,l,s){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var f=void 0,p=0;p<t.length&&!((f=t[p]).to>u&&f.from<=u);p++);if(f.to>=c)return e(n,r,i,o,a,l,s);e(n,r.slice(0,f.to-u),i,o,null,l,s),o=null,r=r.slice(f.to-u),u=f.to}}}function Ke(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Je(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,l,s,u,c,f,p,d=i.length,h=0,g=1,v="",m=0;;){if(m==h){s=u=c=f=l="",p=null,m=1/0;for(var y=[],b=void 0,x=0;x<r.length;++x){var w=r[x],C=w.marker;"bookmark"==C.type&&w.from==h&&C.widgetNode?y.push(C):w.from<=h&&(null==w.to||w.to>h||C.collapsed&&w.to==h&&w.from==h)?(null!=w.to&&w.to!=h&&m>w.to&&(m=w.to,u=""),C.className&&(s+=" "+C.className),C.css&&(l=(l?l+";":"")+C.css),C.startStyle&&w.from==h&&(c+=" "+C.startStyle),C.endStyle&&w.to==m&&(b||(b=[])).push(C.endStyle,w.to),C.title&&!f&&(f=C.title),C.collapsed&&(!p||X(p.marker,C)<0)&&(p=w)):w.from>h&&m>w.from&&(m=w.from)}if(b)for(var k=0;k<b.length;k+=2)b[k+1]==m&&(u+=" "+b[k]);if(!p||p.from==h)for(var E=0;E<y.length;++E)Ke(t,0,y[E]);if(p&&(p.from||0)==h){if(Ke(t,(null==p.to?d+1:p.to)-h,p.marker,null==p.from),null==p.to)return;p.to==h&&(p=!1)}}if(h>=d)break;for(var S=Math.min(d,m);;){if(v){var _=h+v.length;if(!p){var O=_>S?v.slice(0,S-h):v;t.addToken(t,O,a?a+s:s,c,h+O.length==m?u:"",f,l)}if(_>=S){v=v.slice(S-h),h=S;break}h=_,c=""}v=i.slice(o,o=n[g++]),a=qe(n[g++],t.cm.options)}}else for(var T=1;T<n.length;T+=2)t.addToken(t,i.slice(o,o=n[T]),qe(n[T+1],t.cm.options))}function Xe(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=ee(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?M(g(this.rest))-n+1:1,this.node=this.text=null,this.hidden=ae(e,t)}function $e(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new Xe(e.doc,S(e.doc,o),o);r=o+a.size,i.push(a)}return i}function Qe(e,t){var n=de(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);ra?r=ra.delayedCallbacks:ia?r=ia:(r=ia=[],setTimeout(et,0));for(var o=0;o<n.length;++o)!function(e){r.push(function(){return n[e].apply(null,i)})}(o)}}function et(){var e=ia;ia=null;for(var t=0;t<e.length;++t)e[t]()}function tt(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?it(e,t):"gutter"==o?at(e,t,n,r):"class"==o?ot(e,t):"widget"==o&<(e,t,r)}t.changes=null}function nt(e){return e.node==e.text&&(e.node=r("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),no&&ro<8&&(e.node.style.zIndex=2)),e.node}function rt(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Ve(e,t)}function it(e,t){var n=t.text.className,r=rt(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,ot(e,t)):n&&(t.text.className=n)}function ot(e,t){(function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var i=nt(t);t.background=i.insertBefore(r("div",null,n),i.firstChild),e.display.input.setUneditable(t.background)}})(e,t),t.line.wrapClass?nt(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function at(e,t,n,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=nt(t);t.gutterBackground=r("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var l=nt(t),s=t.gutter=r("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),l.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(r("div",I(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),a)for(var u=0;u<e.options.gutters.length;++u){var c=e.options.gutters[u],f=a.hasOwnProperty(c)&&a[c];f&&s.appendChild(r("div",[f],"CodeMirror-gutter-elt","left: "+i.gutterLeft[c]+"px; width: "+i.gutterWidth[c]+"px"))}}}function lt(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);ut(e,t,n)}function st(e,t,n,r){var i=rt(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),ot(e,t),at(e,t,n,r),ut(e,t,r),t.node}function ut(e,t,n){if(ct(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)ct(e,t.rest[r],t,n,!1)}function ct(e,t,n,i,o){if(t.widgets)for(var a=nt(n),l=0,s=t.widgets;l<s.length;++l){var u=s[l],c=r("div",[u.node],"CodeMirror-linewidget");u.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),ft(u,c,n,i),e.display.input.setUneditable(c),o&&u.above?a.insertBefore(c,n.gutter||n.text):a.appendChild(c),Qe(u,"redraw")}}function ft(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function pt(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!o(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),n(t.display.measure,r("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function dt(e,t){for(var n=Ee(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function ht(e){return e.lineSpace.offsetTop}function gt(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function vt(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=n(e.measure,r("pre","x")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,o={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return isNaN(o.left)||isNaN(o.right)||(e.cachedPaddingH=o),o}function mt(e){return Oo-e.display.nativeBarWidth}function yt(e){return e.display.scroller.clientWidth-mt(e)-e.display.barWidth}function bt(e){return e.display.scroller.clientHeight-mt(e)-e.display.barHeight}function xt(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(M(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function wt(e,t,n,r){return Et(e,kt(e,t),n,r)}function Ct(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Xt(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function kt(e,t){var r=M(t),i=Ct(e,r);i&&!i.text?i=null:i&&i.changes&&(tt(e,i,r,Gt(e)),e.curOp.forceUpdate=!0),i||(i=function(e,t){var r=M(t=re(t)),i=e.display.externalMeasured=new Xe(e.doc,t,r);i.lineN=r;var o=i.built=Ve(e,i);return i.text=o.pre,n(e.display.lineMeasure,o.pre),i}(e,t));var o=xt(i,t,r);return{line:t,view:i,rect:null,map:o.map,cache:o.cache,before:o.before,hasHeights:!1}}function Et(e,t,i,o,a){t.before&&(i=-1);var l,s=i+(o||"");return t.cache.hasOwnProperty(s)?l=t.cache[s]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(!function(e,t,n){var r=e.options.lineWrapping,i=r&&yt(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),l=0;l<a.length-1;l++){var s=a[l],u=a[l+1];Math.abs(s.bottom-u.bottom)>2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(l=function(e,t,i,o){var a,l=St(t.map,i,o),s=l.node,u=l.start,c=l.end,f=l.collapse;if(3==s.nodeType){for(var p=0;p<4;p++){for(;u&&C(t.line.text.charAt(l.coverStart+u));)--u;for(;l.coverStart+c<l.coverEnd&&C(t.line.text.charAt(l.coverStart+c));)++c;if(a=no&&ro<9&&0==u&&c==l.coverEnd-l.coverStart?s.parentNode.getBoundingClientRect():_t(bo(s,u,c).getClientRects(),o),a.left||a.right||0==u)break;c=u,u-=1,f="right"}no&&ro<11&&(a=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Vo)return Vo;var t=n(e,r("span","x")),i=t.getBoundingClientRect(),o=bo(t,0,1).getBoundingClientRect();return Vo=Math.abs(i.left-o.left)>1}(e))return t;var i=screen.logicalXDPI/screen.deviceXDPI,o=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*o,bottom:t.bottom*o}}(e.display.measure,a))}else{u>0&&(f=o="right");var d;a=e.options.lineWrapping&&(d=s.getClientRects()).length>1?d["right"==o?d.length-1:0]:s.getBoundingClientRect()}if(no&&ro<9&&!u&&(!a||!a.left&&!a.right)){var h=s.parentNode.getClientRects()[0];a=h?{left:h.left,right:h.left+Vt(e.display),top:h.top,bottom:h.bottom}:oa}for(var g=a.top-t.rect.top,v=a.bottom-t.rect.top,m=(g+v)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(m<y[b]);b++);var x=b?y[b-1]:0,w=y[b],k={left:("right"==f?a.right:a.left)-t.rect.left,right:("left"==f?a.left:a.right)-t.rect.left,top:x,bottom:w};return a.left||a.right||(k.bogus=!0),e.options.singleCursorHeightPerLine||(k.rtop=g,k.rbottom=v),k}(e,t,i,o)).bogus||(t.cache[s]=l)),{left:l.left,right:l.right,top:a?l.rtop:l.top,bottom:a?l.rbottom:l.bottom}}function St(e,t,n){for(var r,i,o,a,l,s,u=0;u<e.length;u+=3)if(l=e[u],s=e[u+1],t<l?(i=0,o=1,a="left"):t<s?o=1+(i=t-l):(u==e.length-3||t==s&&e[u+3]>t)&&(i=(o=s-l)-1,t>=s&&(a="right")),null!=i){if(r=e[u+2],l==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==s-l)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:l,coverEnd:s}}function _t(e,t){var n=oa;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Ot(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Tt(e){e.display.externalMeasure=null,t(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)Ot(e.display.view[n])}function Mt(e){Tt(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Nt(){return ao&&po?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function jt(){return ao&&po?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function It(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=pt(e.widgets[n]));return t}function Pt(e,t,n,r,i){if(!i){var o=It(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=se(t);if("local"==r?a+=ht(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var l=e.display.lineSpace.getBoundingClientRect();a+=l.top+("window"==r?0:jt());var s=l.left+("window"==r?0:Nt());n.left+=s,n.right+=s}return n.top+=a,n.bottom+=a,n}function At(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Nt(),i-=jt();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Lt(e,t,n,r,i){return r||(r=S(e.doc,t.line)),Pt(e,r,wt(e,r,t.ch,i),n)}function Dt(e,t,n,r,i,o){function a(t,a){var l=Et(e,i,t,a?"right":"left",o);return a?l.left=l.right:l.right=l.left,Pt(e,r,l,n)}function l(e,t,n){var r=1==s[t].level;return a(n?e-1:e,r!=n)}r=r||S(e.doc,t.line),i||(i=kt(e,r));var s=pe(r,e.doc.direction),u=t.ch,c=t.sticky;if(u>=r.text.length?(u=r.text.length,c="before"):u<=0&&(u=0,c="after"),!s)return a("before"==c?u-1:u,"before"==c);var f=fe(s,u,c),p=Ro,d=l(u,f,"before"==c);return null!=p&&(d.other=l(u,p,"before"!=c)),d}function Rt(e,t){var n=0;t=W(e.doc,t),e.options.lineWrapping||(n=Vt(e.display)*t.ch);var r=S(e.doc,t.line),i=se(r)+ht(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Ft(e,t,n,r,i){var o=P(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function Bt(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Ft(r.first,0,null,!0,-1);var i=N(r,n),o=r.first+r.size-1;if(i>o)return Ft(r.first+r.size-1,S(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=S(r,i);;){var l=Ut(e,a,i,t,n),s=te(a,l.ch+(l.xRel>0?1:0));if(!s)return l;var u=s.find(1);if(u.line==i)return u;a=S(r,i=u.line)}}function Wt(e,t,n,r){r-=It(t);var i=t.text.length,o=E(function(t){return Et(e,n,t-1).bottom<=r},i,0);return{begin:o,end:i=E(function(t){return Et(e,n,t).top>r},o,i)}}function zt(e,t,n,r){return n||(n=kt(e,t)),Wt(e,t,n,Pt(e,t,Et(e,n,r),"line").top)}function Ht(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Ut(e,t,n,r,i){i-=se(t);var o=kt(e,t),a=It(t),l=0,s=t.text.length,u=!0,c=pe(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?function(e,t,n,r,i,o,a){var l=Wt(e,t,r,a),s=l.begin,u=l.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,p=0;p<i.length;p++){var d=i[p];if(!(d.from>=u||d.to<=s)){var h=1!=d.level,g=Et(e,r,h?Math.min(u,d.to)-1:Math.max(s,d.from)).right,v=g<o?o-g+1e9:g-o;(!c||f>v)&&(c=d,f=v)}}return c||(c=i[i.length-1]),c.from<s&&(c={from:s,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}:function(e,t,n,r,i,o,a){var l=E(function(l){var s=i[l],u=1!=s.level;return Ht(Dt(e,P(n,u?s.to:s.from,u?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),s=i[l];if(l>0){var u=1!=s.level,c=Dt(e,P(n,u?s.from:s.to,u?"after":"before"),"line",t,r);Ht(c,o,a,!0)&&c.top>a&&(s=i[l-1])}return s})(e,t,n,o,c,r,i);l=(u=1!=f.level)?f.from:f.to-1,s=u?f.to:f.from-1}var p,d,h=null,g=null,v=E(function(t){var n=Et(e,o,t);return n.top+=a,n.bottom+=a,!!Ht(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,g=n),!0)},l,s),m=!1;if(g){var y=r-g.left<g.right-r,b=y==u;v=h+(b?0:1),d=b?"after":"before",p=y?g.left:g.right}else{u||v!=s&&v!=l||v++,d=0==v?"after":v==t.text.length?"before":Et(e,o,v-(u?1:0)).bottom+a<=i==u?"after":"before";var x=Dt(e,P(n,v,d),"line",t,o);p=x.left,m=i<x.top||i>=x.bottom}return Ft(n,v=k(t.text,v,1),d,m,r-p)}function qt(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ea){ea=r("pre");for(var i=0;i<49;++i)ea.appendChild(document.createTextNode("x")),ea.appendChild(r("br"));ea.appendChild(document.createTextNode("x"))}n(e.measure,ea);var o=ea.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function Vt(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=r("span","xxxxxxxxxx"),i=r("pre",[t]);n(e.measure,i);var o=t.getBoundingClientRect(),a=(o.right-o.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function Gt(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:Zt(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Zt(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Yt(e){var t=qt(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Vt(e.display)-3);return function(i){if(ae(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Kt(e){var t=e.doc,n=Yt(e);t.iter(function(e){var t=n(e);t!=e.height&&T(e,t)})}function Jt(e,t,n,r){var i=e.display;if(!n&&"true"==Ee(t).getAttribute("cm-not-content"))return null;var o,a,l=i.lineSpace.getBoundingClientRect();try{o=t.clientX-l.left,a=t.clientY-l.top}catch(t){return null}var s,u=Bt(e,o,a);if(r&&1==u.xRel&&(s=S(e.doc,u.line).text).length==u.ch){var c=f(s,s.length,e.options.tabSize)-s.length;u=P(u.line,Math.max(0,Math.round((o-vt(e.display).left)/Vt(e.display))-c))}return u}function Xt(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function $t(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Qt(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var l=n.sel.ranges[a];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var s=l.empty();(s||e.options.showCursorWhenSelecting)&&en(e,l.head,i),s||nn(e,l,o)}}return r}function en(e,t,n){var i=Dt(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=n.appendChild(r("div"," ","CodeMirror-cursor"));if(o.style.left=i.left+"px",o.style.top=i.top+"px",o.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",i.other){var a=n.appendChild(r("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=i.other.left+"px",a.style.top=i.other.top+"px",a.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function tn(e,t){return e.top-t.top||e.left-t.left}function nn(e,t,n){function i(e,t,n,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),s.appendChild(r("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?f-e:n)+"px;\n height: "+(i-t)+"px"))}function o(t,n,r){function o(n,r){return Lt(e,P(t,n),"div",d,r)}function a(t,n,r){var i=zt(e,d,null,t),a="ltr"==n==("after"==r)?"left":"right";return o("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),a)[a]}var s,u,d=S(l,t),h=d.text.length,g=pe(d,l.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(g,n||0,null==r?h:r,function(e,t,l,d){var v="ltr"==l,m=o(e,v?"left":"right"),y=o(t-1,v?"right":"left"),b=null==n&&0==e,x=null==r&&t==h,w=0==d,C=!g||d==g.length-1;if(y.top-m.top<=3){var k=(p?x:b)&&C,E=(p?b:x)&&w?c:(v?m:y).left,S=k?f:(v?y:m).right;i(E,m.top,S-E,m.bottom)}else{var _,O,T,M;v?(_=p&&b&&w?c:m.left,O=p?f:a(e,l,"before"),T=p?c:a(t,l,"after"),M=p&&x&&C?f:y.right):(_=p?a(e,l,"before"):c,O=!p&&b&&w?f:m.right,T=!p&&x&&C?c:y.left,M=p?a(t,l,"after"):f),i(_,m.top,O-_,m.bottom),m.bottom<y.top&&i(c,m.bottom,null,y.top),i(T,y.top,M-T,y.bottom)}(!s||tn(m,s)<0)&&(s=m),tn(y,s)<0&&(s=y),(!u||tn(m,u)<0)&&(u=m),tn(y,u)<0&&(u=y)}),{start:s,end:u}}var a=e.display,l=e.doc,s=document.createDocumentFragment(),u=vt(e.display),c=u.left,f=Math.max(a.sizerWidth,yt(e)-a.sizer.offsetLeft)-u.right,p="ltr"==l.direction,d=t.from(),h=t.to();if(d.line==h.line)o(d.line,d.ch,h.ch);else{var g=S(l,d.line),v=S(l,h.line),m=re(g)==re(v),y=o(d.line,d.ch,m?g.text.length+1:null).end,b=o(h.line,m?0:null,h.ch).start;m&&(y.top<b.top-2?(i(y.right,y.top,null,y.bottom),i(c,b.top,b.left,b.bottom)):i(y.right,y.top,b.left-y.right,y.bottom)),y.bottom<b.top&&i(c,y.bottom,null,b.top)}n.appendChild(s)}function rn(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function on(e){e.state.focused||(e.display.input.focus(),ln(e))}function an(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,sn(e))},100)}function ln(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ge(e,"focus",e,t),e.state.focused=!0,l(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),io&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),rn(e))}function sn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ge(e,"blur",e,t),e.state.focused=!1,Co(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function un(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=void 0;if(!i.hidden){if(no&&ro<8){var a=i.node.offsetTop+i.node.offsetHeight;o=a-n,n=a}else{var l=i.node.getBoundingClientRect();o=l.bottom-l.top}var s=i.line.height-o;if(o<2&&(o=qt(t)),(s>.005||s<-.005)&&(T(i.line,o),cn(i.line),i.rest))for(var u=0;u<i.rest.length;u++)cn(i.rest[u])}}}function cn(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function fn(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-ht(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=N(t,r),a=N(t,i);if(n&&n.ensure){var l=n.ensure.from.line,s=n.ensure.to.line;l<o?(o=l,a=N(t,se(S(t,l))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=a&&(o=N(t,se(S(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function pn(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Zt(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var l=n[a].alignable;if(l)for(var s=0;s<l.length;s++)l[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function dn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=I(e.options,t.first+t.size-1),i=e.display;if(n.length!=i.lineNumChars){var o=i.measure.appendChild(r("div",[r("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=o.firstChild.offsetWidth,l=o.offsetWidth-a;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(a,i.lineGutter.offsetWidth-l)+1,i.lineNumWidth=i.lineNumInnerWidth+l,i.lineNumChars=i.lineNumInnerWidth?n.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",Zn(e),!0}return!1}function hn(e,t){var n=e.display,r=qt(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=bt(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+gt(n),s=t.top<r,u=t.bottom>l-r;if(t.top<i)a.scrollTop=s?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?l:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=yt(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>p;return d&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(d?0:10)-p),a}function gn(e,t){null!=t&&(yn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function vn(e){yn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function mn(e,t,n){null==t&&null==n||yn(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function yn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,bn(e,Rt(e,t.from),Rt(e,t.to),t.margin))}function bn(e,t,n,r){var i=hn(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});mn(e,i.scrollLeft,i.scrollTop)}function xn(e,t){Math.abs(e.doc.scrollTop-t)<2||($i||Gn(e,{top:t}),wn(e,t,!0),$i&&Gn(e),Hn(e,100))}function wn(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Cn(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(!(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)||r)&&(e.doc.scrollLeft=t,pn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function kn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+gt(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+mt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function En(e,t){t||(t=kn(e));var n=e.display.barWidth,r=e.display.barHeight;Sn(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&un(e),Sn(e,kn(e)),n=e.display.barWidth,r=e.display.barHeight}function Sn(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function _n(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Co(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new sa[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Wo(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Cn(e,t):xn(e,t)},e),e.display.scrollbars.addClass&&l(e.display.wrapper,e.display.scrollbars.addClass)}function On(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ua},function(e){ra?ra.ops.push(e):e.ownsGroup=ra={ops:[e],delayedCallbacks:[]}}(e.curOp)}function Tn(e){!function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{ra=null,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Mn(t[n]);for(var r=0;r<t.length;r++)(i=t[r]).updatedDisplay=i.mustUpdate&&qn(i.cm,i.update);for(var i,o=0;o<t.length;o++)Nn(t[o]);for(var a=0;a<t.length;a++)jn(t[a]);for(var l=0;l<t.length;l++)In(t[l])}(e)}(n)}}(e.curOp)}function Mn(e){var t=e.cm,n=t.display;(function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=mt(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=mt(e)+"px",t.scrollbarsClipped=!0)})(t),e.updateMaxLine&&ce(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ca(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Nn(e){var t=e.cm,n=t.display;e.updatedDisplay&&un(t),e.barMeasure=kn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=wt(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+mt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-yt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function jn(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Cn(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==a();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&En(t,e.barMeasure),e.updatedDisplay&&Yn(t,e.barMeasure),e.selectionChanged&&rn(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&on(e.cm)}function In(e){var t=e.cm,n=t.display,i=t.doc;e.updatedDisplay&&Vn(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&wn(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Cn(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!ve(e,"scrollCursorIntoView")){var n=e.display,i=n.sizer.getBoundingClientRect(),o=null;if(t.top+i.top<0?o=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!co){var a=r("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-ht(e.display))+"px;\n height: "+(t.bottom-t.top+mt(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){null==r&&(r=0);var i;e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?P(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?P(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,l=Dt(e,t),s=n&&n!=t?Dt(e,n):l,u=hn(e,i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(xn(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(Cn(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(t,W(i,e.scrollToPos.from),W(i,e.scrollToPos.to),e.scrollToPos.margin));var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var l=0;l<o.length;++l)o[l].lines.length||ge(o[l],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&ge(a[s],"unhide");n.wrapper.offsetHeight&&(i.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ge(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Pn(e,t){if(e.curOp)return t();On(e);try{return t()}finally{Tn(e)}}function An(e,t){return function(){if(e.curOp)return t.apply(e,arguments);On(e);try{return t.apply(e,arguments)}finally{Tn(e)}}}function Ln(e){return function(){if(this.curOp)return e.apply(this,arguments);On(this);try{return e.apply(this,arguments)}finally{Tn(this)}}}function Dn(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);On(t);try{return e.apply(this,arguments)}finally{Tn(t)}}}function Rn(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Do&&ie(e.doc,t)<i.viewTo&&Bn(e);else if(n<=i.viewFrom)Do&&oe(e.doc,n+r)>i.viewFrom?Bn(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Bn(e);else if(t<=i.viewFrom){var o=Wn(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Bn(e)}else if(n>=i.viewTo){var a=Wn(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Bn(e)}else{var l=Wn(e,t,t,-1),s=Wn(e,n,n+r,1);l&&s?(i.view=i.view.slice(0,l.index).concat($e(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):Bn(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function Fn(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Xt(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==p(a,n)&&a.push(n)}}}function Bn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Wn(e,t,n,r){var i,o=Xt(e,t),a=e.display.view;if(!Do||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var l=e.display.viewFrom,s=0;s<o;s++)l+=a[s].size;if(l!=t){if(r>0){if(o==a.length-1)return null;i=l+a[o].size-t,o++}else i=l-t;t+=i,n+=i}for(;ie(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function zn(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Hn(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,u(Un,e))}function Un(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=De(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?je(t.mode,r.state):null,s=Ae(e,o,r,!0);l&&(r.state=l),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),p=0;!f&&p<a.length;++p)f=a[p]!=o.styles[p];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Re(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Hn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Pn(e,function(){for(var t=0;t<i.length;t++)Fn(e,i[t],"text")})}}function qn(e,n){var r=e.display,i=e.doc;if(n.editorIsHidden)return Bn(e),!1;if(!n.force&&n.visible.from>=r.viewFrom&&n.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==zn(e))return!1;dn(e)&&(Bn(e),n.dims=Gt(e));var l=i.first+i.size,s=Math.max(n.visible.from-e.options.viewportMargin,i.first),u=Math.min(l,n.visible.to+e.options.viewportMargin);r.viewFrom<s&&s-r.viewFrom<20&&(s=Math.max(i.first,r.viewFrom)),r.viewTo>u&&r.viewTo-u<20&&(u=Math.min(l,r.viewTo)),Do&&(s=ie(e.doc,s),u=oe(e.doc,u));var c=s!=r.viewFrom||u!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=$e(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=$e(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Xt(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat($e(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Xt(e,n)))),r.viewTo=n}(e,s,u),r.viewOffset=se(S(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var f=zn(e);if(!c&&0==f&&!n.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var d=function(e){if(e.hasFocus())return null;var t=a();if(!t||!o(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&o(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return f>4&&(r.lineDiv.style.display="none"),function(e,n,r){function i(t){var n=t.nextSibling;return io&&go&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var o=e.display,a=e.options.lineNumbers,l=o.lineDiv,s=l.firstChild,u=o.view,c=o.viewFrom,f=0;f<u.length;f++){var d=u[f];if(d.hidden);else if(d.node&&d.node.parentNode==l){for(;s!=d.node;)s=i(s);var h=a&&null!=n&&n<=c&&d.lineNumber;d.changes&&(p(d.changes,"gutter")>-1&&(h=!1),tt(e,d,c,r)),h&&(t(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(I(e.options,c)))),s=d.node.nextSibling}else{var g=st(e,d,c,r);l.insertBefore(g,s)}c+=d.size}for(;s;)s=i(s)}(e,r.updateLineNumbers,n.dims),f>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,function(e){if(e&&e.activeElt&&e.activeElt!=a()&&(e.activeElt.focus(),e.anchorNode&&o(document.body,e.anchorNode)&&o(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(d),t(r.cursorDiv),t(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,c&&(r.lastWrapHeight=n.wrapperHeight,r.lastWrapWidth=n.wrapperWidth,Hn(e,400)),r.updateLineNumbers=null,!0}function Vn(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=yt(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+gt(e.display)-bt(e),n.top)}),t.visible=fn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&qn(e,t);r=!1){un(e);var i=kn(e);$t(e),En(e,i),Yn(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Gn(e,t){var n=new ca(e,t);if(qn(e,n)){un(e),Vn(e,n);var r=kn(e);$t(e),En(e,r),Yn(e,r),n.finish()}}function Zn(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Yn(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+mt(e)+"px"}function Kn(e){var n=e.display.gutters,i=e.options.gutters;t(n);for(var o=0;o<i.length;++o){var a=i[o],l=n.appendChild(r("div",null,"CodeMirror-gutter "+a));"CodeMirror-linenumbers"==a&&(e.display.lineGutter=l,l.style.width=(e.display.lineNumWidth||1)+"px")}n.style.display=o?"":"none",Zn(e)}function Jn(e){var t=p(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Xn(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function $n(e){var t=Xn(e);return t.x*=pa,t.y*=pa,t}function Qn(e,t){var n=Xn(t),r=n.x,i=n.y,o=e.display,a=o.scroller,l=a.scrollWidth>a.clientWidth,s=a.scrollHeight>a.clientHeight;if(r&&l||i&&s){if(i&&go&&io)e:for(var u=t.target,c=o.view;u!=a;u=u.parentNode)for(var f=0;f<c.length;f++)if(c[f].node==u){e.display.currentWheelTarget=u;break e}if(!r||$i||lo||null==pa){if(i&&null!=pa){var p=i*pa,d=e.doc.scrollTop,h=d+o.wrapper.clientHeight;p<0?d=Math.max(0,d+p-50):h=Math.min(e.doc.height,h+p+50),Gn(e,{top:d,bottom:h})}fa<20&&(null==o.wheelStartX?(o.wheelStartX=a.scrollLeft,o.wheelStartY=a.scrollTop,o.wheelDX=r,o.wheelDY=i,setTimeout(function(){if(null!=o.wheelStartX){var e=a.scrollLeft-o.wheelStartX,t=a.scrollTop-o.wheelStartY,n=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(pa=(pa*fa+n)/(fa+1),++fa)}},200)):(o.wheelDX+=r,o.wheelDY+=i))}else i&&s&&xn(e,Math.max(0,a.scrollTop+i*pa)),Cn(e,Math.max(0,a.scrollLeft+r*pa)),(!i||i&&s)&&xe(t),o.wheelStartX=null}}function er(e,t){var n=e[t];e.sort(function(e,t){return A(e.from(),t.from())}),t=p(e,n);for(var r=1;r<e.length;r++){var i=e[r],o=e[r-1];if(A(o.to(),i.from())>=0){var a=F(o.from(),i.from()),l=R(o.to(),i.to()),s=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new ha(s?l:a,s?a:l))}}return new da(e,t)}function tr(e,t){return new da([new ha(e,t||e)],0)}function nr(e){return e.text?P(e.from.line+e.text.length-1,g(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function rr(e,t){if(A(e,t.from)<0)return e;if(A(e,t.to)<=0)return nr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=nr(t).ch-t.to.ch),P(n,r)}function ir(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new ha(rr(i.anchor,t),rr(i.head,t)))}return er(n,e.sel.primIndex)}function or(e,t,n){return e.line==t.line?P(n.line,e.ch-t.ch+n.ch):P(n.line+(e.line-t.line),e.ch)}function ar(e){e.doc.mode=Me(e.options,e.doc.modeOption),lr(e)}function lr(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Hn(e,100),e.state.modeGen++,e.curOp&&Rn(e)}function sr(e,t){return 0==t.from.ch&&0==t.to.ch&&""==g(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ur(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Z(e),Y(e,n);var i=r?r(e):1;i!=e.height&&T(e,i)}(e,n,i,r),Qe(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Qo(u[o],i(o),r));return n}var l=t.from,s=t.to,u=t.text,c=S(e,l.line),f=S(e,s.line),p=g(u),d=i(u.length-1),h=s.line-l.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(sr(e,t)){var v=a(0,u.length-1);o(f,f.text,d),h&&e.remove(l.line,h),v.length&&e.insert(l.line,v)}else if(c==f)if(1==u.length)o(c,c.text.slice(0,l.ch)+p+c.text.slice(s.ch),d);else{var m=a(1,u.length-1);m.push(new Qo(p+c.text.slice(s.ch),d,r)),o(c,c.text.slice(0,l.ch)+u[0],i(0)),e.insert(l.line+1,m)}else if(1==u.length)o(c,c.text.slice(0,l.ch)+u[0]+f.text.slice(s.ch),i(0)),e.remove(l.line+1,h);else{o(c,c.text.slice(0,l.ch)+u[0],i(0)),o(f,p+f.text.slice(s.ch),d);var y=a(1,u.length-1);h>1&&e.remove(l.line+1,h-1),e.insert(l.line+1,y)}Qe(e,"change",e,t)}function cr(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var l=r.linked[a];if(l.doc!=i){var s=o&&l.sharedHist;n&&!s||(t(l.doc,s),e(l.doc,r,s))}}}(e,null,!0)}function fr(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Kt(e),ar(e),pr(e),e.options.lineWrapping||ce(e),e.options.mode=t.modeOption,Rn(e)}function pr(e){("rtl"==e.doc.direction?l:Co)(e.display.lineDiv,"CodeMirror-rtl")}function dr(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function hr(e,t){var n={from:D(t.from),to:nr(t),text:_(e,t.from,t.to)};return br(e,n,t.from.line,t.to.line+1),cr(e,function(e){return br(e,n,t.from.line,t.to.line+1)},!0),n}function gr(e){for(;e.length&&g(e).ranges;)e.pop()}function vr(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,l=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(gr(e.done),g(e.done)):e.done.length&&!g(e.done).ranges?g(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),g(e.done)):void 0}(i,i.lastOp==r)))a=g(o.changes),0==A(t.from,t.to)&&0==A(t.from,a.to)?a.to=nr(t):o.changes.push(hr(e,t));else{var s=g(i.done);for(s&&s.ranges||yr(e.sel,i.done),o={changes:[hr(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ge(e,"historyAdded")}function mr(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,g(i.done),t))?i.done[i.done.length-1]=t:yr(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&gr(i.undone)}function yr(e,t){var n=g(t);n&&n.ranges&&n.equals(e)||t.push(e)}function br(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function xr(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function wr(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(xr(n[i]));return r}(e,t),r=V(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var l=0;l<a.length;++l){for(var s=a[l],u=0;u<o.length;++u)if(o[u].marker==s.marker)continue e;o.push(s)}else a&&(n[i]=a)}return n}function Cr(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?da.prototype.deepCopy.call(o):o);else{var a=o.changes,l=[];r.push({changes:l});for(var s=0;s<a.length;++s){var u=a[s],c=void 0;if(l.push({from:u.from,to:u.to,text:u.text}),t)for(var f in u)(c=f.match(/^spans_(\d+)$/))&&p(t,Number(c[1]))>-1&&(g(l)[f]=u[f],delete u[f])}}}return r}function kr(e,t,n,r){if(r){var i=e.anchor;if(n){var o=A(t,i)<0;o!=A(n,i)<0?(i=t,t=n):o!=A(t,n)<0&&(t=n)}return new ha(i,t)}return new ha(n||t,t)}function Er(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Mr(e,new da([kr(e.sel.primary(),t,n,i)],0),r)}function Sr(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=kr(e.sel.ranges[o],t[o],null,i);Mr(e,er(r,e.sel.primIndex),n)}function _r(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Mr(e,er(i,e.sel.primIndex),r)}function Or(e,t,n,r){Mr(e,tr(t,n),r)}function Tr(e,t,n){var r=e.history.done,i=g(r);i&&i.ranges?(r[r.length-1]=t,Nr(e,t,n)):Mr(e,t,n)}function Mr(e,t,n){Nr(e,t,n),mr(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Nr(e,t,n){(ye(e,"beforeSelectionChange")||e.cm&&ye(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new ha(W(e,t[n].anchor),W(e,t[n].head))},origin:n&&n.origin};return ge(e,"beforeSelectionChange",e,r),e.cm&&ge(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?er(r.ranges,r.ranges.length-1):t}(e,t,n)),jr(e,Pr(e,t,n&&n.bias||(A(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),n&&!1===n.scroll||!e.cm||vn(e.cm)}function jr(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,me(e.cm)),Qe(e,"cursorActivity",e))}function Ir(e){jr(e,Pr(e,e.sel,null,!1))}function Pr(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=Lr(e,a.anchor,l&&l.anchor,n,r),u=Lr(e,a.head,l&&l.head,n,r);(i||s!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new ha(s,u))}return i?er(i,t.primIndex):t}function Ar(e,t,n,r,i){var o=S(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var l=o.markedSpans[a],s=l.marker;if((null==l.from||(s.inclusiveLeft?l.from<=t.ch:l.from<t.ch))&&(null==l.to||(s.inclusiveRight?l.to>=t.ch:l.to>t.ch))){if(i&&(ge(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var u=s.find(r<0?1:-1),c=void 0;if((r<0?s.inclusiveRight:s.inclusiveLeft)&&(u=Dr(e,u,-r,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(c=A(u,n))&&(r<0?c<0:c>0))return Ar(e,u,t,r,i)}var f=s.find(r<0?-1:1);return(r<0?s.inclusiveLeft:s.inclusiveRight)&&(f=Dr(e,f,r,f.line==t.line?o:null)),f?Ar(e,f,t,r,i):null}}return t}function Lr(e,t,n,r,i){var o=r||1,a=Ar(e,t,n,o,i)||!i&&Ar(e,t,n,o,!0)||Ar(e,t,n,-o,i)||!i&&Ar(e,t,n,-o,!0);return a||(e.cantEdit=!0,P(e.first,0))}function Dr(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?W(e,P(t.line-1)):null:n>0&&t.ch==(r||S(e,t.line)).text.length?t.line<e.first+e.size-1?P(t.line+1,0):null:new P(t.line,t.ch+n)}function Rr(e){e.setSelection(P(e.firstLine(),0),P(e.lastLine()),Mo)}function Fr(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=W(e,t)),n&&(r.to=W(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ge(e,"beforeChange",e,r),e.cm&&ge(e.cm,"beforeChange",e.cm,r),r.canceled?null:{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Br(e,t,n){if(e.cm){if(!e.cm.curOp)return An(e.cm,Br)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ye(e,"beforeChange")||e.cm&&ye(e.cm,"beforeChange"))||(t=Fr(e,t,!0))){var r=Lo&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=p(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],l=a.find(0),s=0;s<i.length;++s){var u=i[s];if(!(A(u.to,l.from)<0||A(u.from,l.to)>0)){var c=[s,1],f=A(u.from,l.from),d=A(u.to,l.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:l.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:l.to,to:u.to}),i.splice.apply(i,c),s+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Wr(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Wr(e,t)}}function Wr(e,t){if(1!=t.text.length||""!=t.text[0]||0!=A(t.from,t.to)){var n=ir(e,t);vr(e,t,n,e.cm?e.cm.curOp.id:NaN),Ur(e,t,n,V(e,t));var r=[];cr(e,function(e,n){n||-1!=p(r,e.history)||(Zr(e.history,t),r.push(e.history)),Ur(e,t,null,V(e,t))})}}function zr(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,l="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,u=0;u<l.length&&(i=l[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=l.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=l.pop()).ranges){if(r)return void l.push(i);break}if(yr(i,s),n&&!i.equals(e.sel))return void Mr(e,i,{clearRedo:!1});a=i}var c=[];yr(a,s),s.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=ye(e,"beforeChange")||e.cm&&ye(e.cm,"beforeChange"),d=i.changes.length-1;d>=0;--d){var h=function(n){var r=i.changes[n];if(r.origin=t,f&&!Fr(e,r,!1))return l.length=0,{};c.push(hr(e,r));var o=n?ir(e,r):g(l);Ur(e,r,o,wr(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:nr(r)});var a=[];cr(e,function(e,t){t||-1!=p(a,e.history)||(Zr(e.history,r),a.push(e.history)),Ur(e,r,null,wr(e,r))})}(d);if(h)return h.v}}}}function Hr(e,t){if(0!=t&&(e.first+=t,e.sel=new da(v(e.sel.ranges,function(e){return new ha(P(e.anchor.line+t,e.anchor.ch),P(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Rn(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Fn(e.cm,r,"gutter")}}function Ur(e,t,n,r){if(e.cm&&!e.cm.curOp)return An(e.cm,Ur)(e,t,n,r);if(t.to.line<e.first)Hr(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);Hr(e,i),t={from:P(e.first,0),to:P(t.to.line+i,t.to.ch),text:[g(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:P(o,S(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=_(e,t.from,t.to),n||(n=ir(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=M(re(S(r,o.line))),r.iter(s,a.line+1,function(e){if(e==i.maxLine)return l=!0,!0})),r.sel.contains(t.from,t.to)>-1&&me(e),ur(r,t,n,Yt(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(e){var t=ue(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=S(e,r).stateAfter;if(i&&(!(i instanceof Jo)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),Hn(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Rn(e):o.line!=a.line||1!=t.text.length||sr(e.doc,t)?Rn(e,o.line,a.line+1,u):Fn(e,o.line,"text");var c=ye(e,"changes"),f=ye(e,"change");if(f||c){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&Qe(e,"change",e,p),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}(e.cm,t,r):ur(e,t,r),Nr(e,n,Mo)}}function qr(e,t,n,r,i){if(r||(r=n),A(r,n)<0){var o;n=(o=[r,n])[0],r=o[1]}"string"==typeof t&&(t=e.splitLines(t)),Br(e,{from:n,to:r,text:t,origin:i})}function Vr(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function Gr(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var l=0;l<o.ranges.length;l++)Vr(o.ranges[l].anchor,t,n,r),Vr(o.ranges[l].head,t,n,r)}else{for(var s=0;s<o.changes.length;++s){var u=o.changes[s];if(n<u.from.line)u.from=P(u.from.line+r,u.from.ch),u.to=P(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function Zr(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;Gr(e.done,n,r,i),Gr(e.undone,n,r,i)}function Yr(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=S(e,B(e,t)):i=M(t),null==i?null:(r(o,i)&&e.cm&&Fn(e.cm,i,n),o)}function Kr(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function Jr(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}function Xr(e,t,n){se(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&gn(e,n)}function $r(e,t,n,r,o){if(r&&r.shared)return function(e,t,n,r,i){(r=c(r)).shared=!1;var o=[$r(e,t,n,r,i)],a=o[0],l=r.widgetNode;return cr(e,function(e){l&&(r.widgetNode=l.cloneNode(!0)),o.push($r(e,W(e,t),W(e,n),r,i));for(var s=0;s<e.linked.length;++s)if(e.linked[s].isParent)return;a=g(o)}),new ya(o,a)}(e,t,n,r,o);if(e.cm&&!e.cm.curOp)return An(e.cm,$r)(e,t,n,r,o);var a=new ma(e,o),l=A(t,n);if(r&&c(r,a,!1),l>0||0==l&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=i("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(ne(e,t.line,t,n,a)||t.line!=n.line&&ne(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Do=!0}a.addToHistory&&vr(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,u=t.line,f=e.cm;if(e.iter(u,n.line+1,function(e){f&&a.collapsed&&!f.options.lineWrapping&&re(e)==f.display.maxLine&&(s=!0),a.collapsed&&u!=t.line&&T(e,0),!function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new H(a,u==t.line?t.ch:null,u==n.line?n.ch:null)),++u}),a.collapsed&&e.iter(t.line,n.line+1,function(t){ae(e,t)&&T(t,0)}),a.clearOnEnter&&Wo(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(Lo=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++va,a.atomic=!0),f){if(s&&(f.curOp.updateMaxLine=!0),a.collapsed)Rn(f,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var p=t.line;p<=n.line;p++)Fn(f,p,"text");a.atomic&&Ir(f.doc),Qe(f,"markerAdded",f,a)}return a}function Qr(e){return e.findMarks(P(e.first,0),e.clipPos(P(e.lastLine())),function(e){return e.parent})}function ei(e){for(var t=0;t<e.length;t++)!function(t){var n=e[t],r=[n.primary.doc];cr(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==p(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}}(t)}function ti(e){var t=this;if(ni(t),!ve(t,e)&&!dt(t.display,e)){xe(e),no&&(wa=+new Date);var n=Jt(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,l=0;l<i;++l)!function(e,r){if(!t.options.allowDropFileTypes||-1!=p(t.options.allowDropFileTypes,e.type)){var l=new FileReader;l.onload=An(t,function(){var e=l.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++a==i){var s={from:n=W(t.doc,n),to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};Br(t.doc,s),Tr(t.doc,tr(n,nr(s)))}}),l.readAsText(e)}}(r[l],l);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var s=e.dataTransfer.getData("Text");if(s){var u;if(t.state.draggingText&&!t.state.draggingText.copy&&(u=t.listSelections()),Nr(t.doc,tr(n,n)),u)for(var c=0;c<u.length;++c)qr(t.doc,"",u[c].anchor,u[c].head,"drag");t.replaceSelection(s,"around","paste"),t.display.input.focus()}}catch(e){}}}}function ni(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function ri(e){if(document.getElementsByClassName)for(var t=document.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&e(r)}}function ii(){if(!Ca){var e;Wo(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,ri(oi)},100))}),Wo(window,"blur",function(){return ri(sn)}),Ca=!0}}function oi(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}function ai(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var l=o[a];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else{if(!/^s(hift)?$/i.test(l))throw new Error("Unrecognized modifier name: "+l);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function li(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=v(n.split(" "),ai),o=0;o<i.length;o++){var a=void 0,l=void 0;o==i.length-1?(l=i.join(" "),a=r):(l=i.slice(0,o+1).join(" "),a="...");var s=t[l];if(s){if(s!=a)throw new Error("Inconsistent bindings for "+l)}else t[l]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function si(e,t,n,r){var i=(t=pi(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return si(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=si(e,t.fallthrough[o],n,r);if(a)return a}}}function ui(e){var t="string"==typeof e?e:ka[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function ci(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(xo?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(xo?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function fi(e,t){if(lo&&34==e.keyCode&&e.char)return!1;var n=ka[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),ci(n,e,t))}function pi(e){return"string"==typeof e?Oa[e]:e}function di(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&A(o.from,g(r).to)<=0;){var a=r.pop();if(A(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Pn(e,function(){for(var t=r.length-1;t>=0;t--)qr(e.doc,"",r[t].from,r[t].to,"+delete");vn(e)})}function hi(e,t,n){var r=k(e.text,t+n,n);return r<0||r>e.text.length?null:r}function gi(e,t,n){var r=hi(e,t.ch,n);return null==r?null:new P(t.line,r,n<0?"after":"before")}function vi(e,t,n,r,i){if(e){var o=pe(n,t.doc.direction);if(o){var a,l=i<0?g(o):o[0],s=i<0==(1==l.level)?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var u=kt(t,n);a=i<0?n.text.length-1:0;var c=Et(t,u,a).top;a=E(function(e){return Et(t,u,e).top==c},i<0==(1==l.level)?l.from:l.to-1,a),"before"==s&&(a=hi(n,a,1))}else a=i<0?l.to:l.from;return new P(r,a,s)}}return new P(r,i<0?n.text.length:0,i<0?"before":"after")}function mi(e,t){var n=S(e.doc,t),r=re(n);return r!=n&&(t=M(r)),vi(!0,e,r,t,1)}function yi(e,t){var n=mi(e,t.line),r=S(e.doc,n.line),i=pe(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return P(n.line,a?0:o,n.sticky)}return n}function bi(e,t,n){if("string"==typeof t&&!(t=Na[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=To}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function xi(e,t,n,r){var i=e.state.keySeq;if(i){if(ui(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ja.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),wi(e,i+" "+t,n,r))return!0}return wi(e,t,n,r)}function wi(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=si(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&si(t,e.options.extraKeys,n,e)||si(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&Qe(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(xe(n),rn(e)),!!i}function Ci(e,t){var n=fi(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?xi(e,"Shift-"+n,t,function(t){return bi(e,t,!0)})||xi(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return bi(e,t)}):xi(e,n,t,function(t){return bi(e,t)}))}function ki(e){var t=this;if(t.curOp.focus=a(),!ve(t,e)){no&&ro<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=Ci(t,e);lo&&(Ia=r?n:null,!r&&88==n&&!qo&&(go?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){function t(e){18!=e.keyCode&&e.altKey||(Co(n,"CodeMirror-crosshair"),he(document,"keyup",t),he(document,"mouseover",t))}var n=e.display.lineDiv;l(n,"CodeMirror-crosshair"),Wo(document,"keyup",t),Wo(document,"mouseover",t)}(t)}}function Ei(e){16==e.keyCode&&(this.doc.sel.shift=!1),ve(this,e)}function Si(e){var t=this;if(!(dt(t.display,e)||ve(t,e)||e.ctrlKey&&!e.altKey||go&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(lo&&n==Ia)return Ia=null,void xe(e);if(!lo||e.which&&!(e.which<10)||!Ci(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return xi(e,"'"+n+"'",t,function(t){return bi(e,t,!0)})}(t,e,i)||t.display.input.onKeyPress(e))}}}function _i(e){var t=this,n=t.display;if(!(ve(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,dt(n,e))io||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!Mi(t,e)){var r=Jt(t,e),i=Se(e),o=r?function(e,t){var n=+new Date;return Ma&&Ma.compare(n,e,t)?(Ta=Ma=null,"triple"):Ta&&Ta.compare(n,e,t)?(Ma=new Pa(n,e,t),Ta=null,"double"):(Ta=new Pa(n,e,t),Ma=null,"single")}(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),xi(e,ci(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,function(t){if("string"==typeof t&&(t=Na[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=To}finally{e.state.suppressEdits=!1}return r})}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){no?setTimeout(u(on,e),0):e.curOp.focus=a();var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=vo?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=go?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(go?n.altKey:n.ctrlKey)),i}(e,n,r),l=e.doc.sel;e.options.dragDrop&&zo&&!e.isReadOnly()&&"single"==n&&(i=l.contains(t))>-1&&(A((i=l.ranges[i]).from(),t)<0||t.xRel>0)&&(A(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,a=An(e,function(t){io&&(i.scroller.draggable=!1),e.state.draggingText=!1,he(i.wrapper.ownerDocument,"mouseup",a),he(i.wrapper.ownerDocument,"mousemove",l),he(i.scroller,"dragstart",s),he(i.scroller,"drop",a),o||(xe(t),r.addNew||Er(e.doc,n,null,null,r.extend),io||no&&9==ro?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),l=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},s=function(){return o=!0};io&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),Wo(i.wrapper.ownerDocument,"mouseup",a),Wo(i.wrapper.ownerDocument,"mousemove",l),Wo(i.scroller,"dragstart",s),Wo(i.scroller,"drop",a),an(e),setTimeout(function(){return i.input.focus()},20)}(e,r,t,o):function(e,t,n,r){function i(t){if(0!=A(v,t))if(v=t,"rectangle"==r.unit){for(var i=[],o=e.options.tabSize,a=f(S(s,n.line).text,n.ch,o),l=f(S(s,t.line).text,t.ch,o),h=Math.min(a,l),g=Math.max(a,l),m=Math.min(n.line,t.line),y=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=y;m++){var b=S(s,m).text,x=d(b,h,o);h==g?i.push(new ha(P(m,x),P(m,x))):b.length>x&&i.push(new ha(P(m,x),P(m,d(b,g,o))))}i.length||i.push(new ha(n,n)),Mr(s,er(p.ranges.slice(0,c).concat(i),c),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var w,C=u,k=Oi(e,t,r.unit),E=C.anchor;A(k.anchor,E)>0?(w=k.head,E=F(C.from(),k.anchor)):(w=k.anchor,E=R(C.to(),k.head));var _=p.ranges.slice(0);_[c]=function(e,t){var n=t.anchor,r=t.head,i=S(e.doc,n.line);if(0==A(n,r)&&n.sticky==r.sticky)return t;var o=pe(i);if(!o)return t;var a=fe(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var s,u=a+(l.from==n.ch==(1!=l.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=fe(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==l.level?-1:1);s=c==u-1||c==u?f<0:f>0}var p=o[u+(s?-1:0)],d=s==(1==p.level),h=d?p.from:p.to,g=d?"after":"before";return n.ch==h&&n.sticky==g?t:new ha(new P(n.line,h,g),r)}(e,new ha(W(s,E),w)),Mr(s,er(_,c),No)}}function o(t){e.state.selectingText=!1,y=1/0,xe(t),l.input.focus(),he(l.wrapper.ownerDocument,"mousemove",b),he(l.wrapper.ownerDocument,"mouseup",x),s.history.lastSelOrigin=null}var l=e.display,s=e.doc;xe(t);var u,c,p=s.sel,h=p.ranges;if(r.addNew&&!r.extend?u=(c=s.sel.contains(n))>-1?h[c]:new ha(n,n):(u=s.sel.primary(),c=s.sel.primIndex),"rectangle"==r.unit)r.addNew||(u=new ha(n,n)),n=Jt(e,t,!0,!0),c=-1;else{var g=Oi(e,n,r.unit);u=r.extend?kr(u,g.anchor,g.head,r.extend):g}r.addNew?-1==c?(c=h.length,Mr(s,er(h.concat([u]),c),{scroll:!1,origin:"*mouse"})):h.length>1&&h[c].empty()&&"char"==r.unit&&!r.extend?(Mr(s,er(h.slice(0,c).concat(h.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),p=s.sel):_r(s,c,u,No):(c=0,Mr(s,new da([u],0),No),p=s.sel);var v=n,m=l.wrapper.getBoundingClientRect(),y=0,b=An(e,function(t){0!==t.buttons&&Se(t)?function t(n){var o=++y,u=Jt(e,n,!0,"rectangle"==r.unit);if(u)if(0!=A(u,v)){e.curOp.focus=a(),i(u);var c=fn(l,s);(u.line>=c.to||u.line<c.from)&&setTimeout(An(e,function(){y==o&&t(n)}),150)}else{var f=n.clientY<m.top?-20:n.clientY>m.bottom?20:0;f&&setTimeout(An(e,function(){y==o&&(l.scroller.scrollTop+=f,t(n))}),50)}}(t):o(t)}),x=An(e,o);e.state.selectingText=x,Wo(l.wrapper.ownerDocument,"mousemove",b),Wo(l.wrapper.ownerDocument,"mouseup",x)}(e,r,t,o)}(t,r,o,e):Ee(e)==n.scroller&&xe(e):2==i?(r&&Er(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(wo?Ni(t,e):an(t)))}}function Oi(e,t,n){if("char"==n)return new ha(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ha(P(t.line,0),W(e.doc,P(t.line+1,0)));var r=n(e,t);return new ha(r.from,r.to)}function Ti(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&xe(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!ye(e,n))return Ce(t);o-=l.top-a.viewOffset;for(var s=0;s<e.options.gutters.length;++s){var u=a.gutters.childNodes[s];if(u&&u.getBoundingClientRect().right>=i)return ge(e,n,e,N(e.doc,o),e.options.gutters[s],t),Ce(t)}}function Mi(e,t){return Ti(e,t,"gutterClick",!0)}function Ni(e,t){dt(e.display,t)||function(e,t){return!!ye(e,"gutterContextMenu")&&Ti(e,t,"gutterContextMenu",!1)}(e,t)||ve(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function ji(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Mt(e)}function Ii(e){Kn(e),Rn(e),pn(e)}function Pi(e,t,n){if(!t!=!(n&&n!=Aa)){var r=e.display.dragFunctions,i=t?Wo:he;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ai(e){e.options.lineWrapping?(l(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Co(e.display.wrapper,"CodeMirror-wrap"),ce(e)),Kt(e),Rn(e),Mt(e),setTimeout(function(){return En(e)},100)}function Li(e,t){var o=this;if(!(this instanceof Li))return new Li(e,t);this.options=t=t?c(t):{},c(La,t,!1),Jn(t);var a=t.value;"string"==typeof a&&(a=new xa(a,t.mode,null,t.lineSeparator,t.direction)),this.doc=a;var l=new Li.inputStyles[t.inputStyle](this),s=this.display=new function(e,t,n){var o=this;this.input=n,o.scrollbarFiller=r("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=r("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=i("div",null,"CodeMirror-code"),o.selectionDiv=r("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=r("div",null,"CodeMirror-cursors"),o.measure=r("div",null,"CodeMirror-measure"),o.lineMeasure=r("div",null,"CodeMirror-measure"),o.lineSpace=i("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var a=i("div",[o.lineSpace],"CodeMirror-lines");o.mover=r("div",[a],null,"position: relative"),o.sizer=r("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=r("div",null,null,"position: absolute; height: "+Oo+"px; width: 1px;"),o.gutters=r("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=r("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=r("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),no&&ro<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),io||$i&&ho||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,n.init(o)}(e,a,l);s.wrapper.CodeMirror=this,Kn(this),ji(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_n(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Eo,keySeq:null,specialChars:null},t.autofocus&&!ho&&s.input.focus(),no&&ro<11&&setTimeout(function(){return o.display.input.reset(!0)},20),function(e){function t(){o.activeTouch&&(a=setTimeout(function(){return o.activeTouch=null},1e3),(l=o.activeTouch).end=+new Date)}function i(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}var o=e.display;Wo(o.scroller,"mousedown",An(e,_i)),no&&ro<11?Wo(o.scroller,"dblclick",An(e,function(t){if(!ve(e,t)){var n=Jt(e,t);if(n&&!Mi(e,t)&&!dt(e.display,t)){xe(t);var r=e.findWordAt(n);Er(e.doc,r.anchor,r.head)}}})):Wo(o.scroller,"dblclick",function(t){return ve(e,t)||xe(t)}),wo||Wo(o.scroller,"contextmenu",function(t){return Ni(e,t)});var a,l={end:0};Wo(o.scroller,"touchstart",function(t){if(!ve(e,t)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(t)&&!Mi(e,t)){o.input.ensurePolled(),clearTimeout(a);var n=+new Date;o.activeTouch={start:n,moved:!1,prev:n-l.end<=300?l:null},1==t.touches.length&&(o.activeTouch.left=t.touches[0].pageX,o.activeTouch.top=t.touches[0].pageY)}}),Wo(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),Wo(o.scroller,"touchend",function(n){var r=o.activeTouch;if(r&&!dt(o,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,l=e.coordsChar(o.activeTouch,"page");a=!r.prev||i(r,r.prev)?new ha(l,l):!r.prev.prev||i(r,r.prev.prev)?e.findWordAt(l):new ha(P(l.line,0),W(e.doc,P(l.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),xe(n)}t()}),Wo(o.scroller,"touchcancel",t),Wo(o.scroller,"scroll",function(){o.scroller.clientHeight&&(xn(e,o.scroller.scrollTop),Cn(e,o.scroller.scrollLeft,!0),ge(e,"scroll",e))}),Wo(o.scroller,"mousewheel",function(t){return Qn(e,t)}),Wo(o.scroller,"DOMMouseScroll",function(t){return Qn(e,t)}),Wo(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(t){ve(e,t)||ke(t)},over:function(t){ve(e,t)||(!function(e,t){var i=Jt(e,t);if(i){var o=document.createDocumentFragment();en(e,i,o),e.display.dragCursor||(e.display.dragCursor=r("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),n(e.display.dragCursor,o)}}(e,t),ke(t))},start:function(t){return function(e,t){if(no&&(!e.state.draggingText||+new Date-wa<100))ke(t);else if(!ve(e,t)&&!dt(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!so)){var n=r("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",lo&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),lo&&n.parentNode.removeChild(n)}}(e,t)},drop:An(e,ti),leave:function(t){ve(e,t)||ni(e)}};var s=o.input.getField();Wo(s,"keyup",function(t){return Ei.call(e,t)}),Wo(s,"keydown",An(e,ki)),Wo(s,"keypress",An(e,Si)),Wo(s,"focus",function(t){return ln(e,t)}),Wo(s,"blur",function(t){return sn(e,t)})}(this),ii(),On(this),this.curOp.forceUpdate=!0,fr(this,a),t.autofocus&&!ho||this.hasFocus()?setTimeout(u(ln,this),20):sn(this);for(var f in Da)Da.hasOwnProperty(f)&&Da[f](o,t[f],Aa);dn(this),t.finishInit&&t.finishInit(this);for(var p=0;p<Ra.length;++p)Ra[p](o);Tn(this),io&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(s.lineDiv).textRendering&&(s.lineDiv.style.textRendering="auto")}function Di(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=De(e,t).state:n="prev");var a=e.options.tabSize,l=S(o,t),s=f(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var u,c=l.text.match(/^\s*/)[0];if(r||/\S/.test(l.text)){if("smart"==n&&((u=o.mode.indent(i,l.text.slice(c.length),l.text))==To||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?f(S(o,t-1).text,null,a):0:"add"==n?u=s+e.options.indentUnit:"subtract"==n?u=s-e.options.indentUnit:"number"==typeof n&&(u=s+n),u=Math.max(0,u);var p="",d=0;if(e.options.indentWithTabs)for(var g=Math.floor(u/a);g;--g)d+=a,p+="\t";if(d<u&&(p+=h(u-d)),p!=c)return qr(o,p,P(t,0),P(t,c.length),"+input"),l.stateAfter=null,!0;for(var v=0;v<o.sel.ranges.length;v++){var m=o.sel.ranges[v];if(m.head.line==t&&m.head.ch<c.length){var y=P(t,c.length);_r(o,v,new ha(y,y));break}}}function Ri(e){Fa=e}function Fi(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a,l=e.state.pasteIncoming||"paste"==i,s=Ho(t),u=null;if(l&&r.ranges.length>1)if(Fa&&Fa.text.join("\n")==t){if(r.ranges.length%Fa.text.length==0){u=[];for(var c=0;c<Fa.text.length;c++)u.push(o.splitLines(Fa.text[c]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=v(s,function(e){return[e]}));for(var f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],d=p.from(),h=p.to();p.empty()&&(n&&n>0?d=P(d.line,d.ch-n):e.state.overwrite&&!l?h=P(h.line,Math.min(S(o,h.line).text.length,h.ch+g(s).length)):Fa&&Fa.lineWise&&Fa.text.join("\n")==t&&(d=h=P(d.line,0))),a=e.curOp.updateInput;var m={from:d,to:h,text:u?u[f%u.length]:s,origin:i||(l?"paste":e.state.cutIncoming?"cut":"+input")};Br(e.doc,m),Qe(e,"inputRead",e,m)}t&&!l&&Wi(e,t),vn(e),e.curOp.updateInput=a,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Bi(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Pn(t,function(){return Fi(t,n,0,null,"paste")}),!0}function Wi(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l<o.electricChars.length;l++)if(t.indexOf(o.electricChars.charAt(l))>-1){a=Di(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(S(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Di(e,i.head.line,"smart"));a&&Qe(e,"electricInput",e,i.head.line)}}}function zi(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:P(i,0),head:P(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Hi(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function Ui(){var e=r("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=r("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return io?e.style.width="1000px":e.setAttribute("wrap","off"),fo&&(e.style.border="1px solid black"),Hi(e),t}function qi(e,t,n,r,i){function o(r){var o;if(null==(o=i?function(e,t,n,r){var i=pe(t,e.doc.direction);if(!i)return gi(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=fe(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return gi(t,n,r);var l,s=function(e,n){return hi(t,e instanceof P?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(l=l||kt(e,t),zt(e,t,l,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?s(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,p=s(n,f?1:-1);if(null!=p&&(f?p<=a.to&&p<=c.end:p>=a.from&&p>=c.begin)){var d=f?"before":"after";return new P(n.line,p,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new P(n.line,s(e,1),"before"):new P(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],l=t>0==(1!=a.level),u=l?r.begin:s(r.end,-1);if(a.from<=u&&u<a.to)return o(u,l);if(u=l?a.from:s(a.to,-1),r.begin<=u&&u<r.end)return o(u,l)}},g=h(o+r,r,c);if(g)return g;var v=r>0?c.end:s(c.begin,-1);return null==v||r>0&&v==t.text.length||!(g=h(r>0?0:i.length-1,r,u(v)))?null:g}(e.cm,s,t,n):gi(s,t,n))){if(r||!function(){var r=t.line+n;return!(r<e.first||r>=e.first+e.size)&&(t=new P(r,t.ch,t.sticky),s=S(e,r))}())return!1;t=vi(i,e.cm,s,t.line,n)}else t=o;return!0}var a=t,l=n,s=S(e,t.line);if("char"==r)o();else if("column"==r)o(!0);else if("word"==r||"group"==r)for(var u=null,c="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||o(!p);p=!1){var d=s.text.charAt(t.ch)||"\n",h=x(d,f)?"w":c&&"\n"==d?"n":!c||/\s/.test(d)?null:"p";if(!c||p||h||(h="s"),u&&u!=h){n<0&&(n=1,o(),t.sticky="after");break}if(h&&(u=h),n>0&&!o(!p))break}var g=Lr(e,t,a,l,!0);return L(a,g)&&(g.hitSide=!0),g}function Vi(e,t,n,r){var i,o,a=e.doc,l=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*qt(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Bt(e,l,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}function Gi(e,t){var n=Ct(e,t.line);if(!n||n.hidden)return null;var r=S(e.doc,t.line),i=xt(n,r,t.line),o=pe(r,e.doc.direction),a="left";o&&(a=fe(o,t.ch)%2?"right":"left");var l=St(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function Zi(e,t){return t&&(e.bad=!0),e}function Yi(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Zi(e.clipPos(P(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Ki(o,t,n)}}function Ki(e,t,n){function r(t,n,r){for(var i=-1;i<(f?f.length:0);i++)for(var o=i<0?c.map:f[i],a=0;a<o.length;a+=3){var l=o[a+2];if(l==t||l==n){var s=M(i<0?e.line:e.rest[i]),u=o[a]+r;return(r<0||l!=t)&&(u=o[a+(r?1:0)]),P(s,u)}}}var i=e.text.firstChild,a=!1;if(!t||!o(i,t))return Zi(P(M(e.line),0),!0);if(t==i&&(a=!0,t=i.childNodes[n],n=0,!t)){var l=e.rest?g(e.rest):e.line;return Zi(P(M(l),l.text.length),a)}var s=3==t.nodeType?t:null,u=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,n&&(n=s.nodeValue.length));u.parentNode!=i;)u=u.parentNode;var c=e.measure,f=c.maps,p=r(s,u,n);if(p)return Zi(p,a);for(var d=u.nextSibling,h=s?s.nodeValue.length-n:0;d;d=d.nextSibling){if(p=r(d,d.firstChild,0))return Zi(P(p.line,p.ch-h),a);h+=d.textContent.length}for(var v=u.previousSibling,m=n;v;v=v.previousSibling){if(p=r(v,v.firstChild,-1))return Zi(P(p.line,p.ch+m),a);m+=v.textContent.length}}var Ji=navigator.userAgent,Xi=navigator.platform,$i=/gecko\/\d/i.test(Ji),Qi=/MSIE \d/.test(Ji),eo=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ji),to=/Edge\/(\d+)/.exec(Ji),no=Qi||eo||to,ro=no&&(Qi?document.documentMode||6:+(to||eo)[1]),io=!to&&/WebKit\//.test(Ji),oo=io&&/Qt\/\d+\.\d+/.test(Ji),ao=!to&&/Chrome\//.test(Ji),lo=/Opera\//.test(Ji),so=/Apple Computer/.test(navigator.vendor),uo=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ji),co=/PhantomJS/.test(Ji),fo=!to&&/AppleWebKit/.test(Ji)&&/Mobile\/\w+/.test(Ji),po=/Android/.test(Ji),ho=fo||po||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ji),go=fo||/Mac/.test(Xi),vo=/\bCrOS\b/.test(Ji),mo=/win/i.test(Xi),yo=lo&&Ji.match(/Version\/(\d*\.\d*)/);yo&&(yo=Number(yo[1])),yo&&yo>=15&&(lo=!1,io=!0);var bo,xo=go&&(oo||lo&&(null==yo||yo<12.11)),wo=$i||no&&ro>=9,Co=function(t,n){var r=t.className,i=e(n).exec(r);if(i){var o=r.slice(i.index+i[0].length);t.className=r.slice(0,i.index)+(o?i[1]+o:"")}};bo=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var ko=function(e){e.select()};fo?ko=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:no&&(ko=function(e){try{e.select()}catch(e){}});var Eo=function(){this.id=null};Eo.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var So,_o,Oo=30,To={toString:function(){return"CodeMirror.Pass"}},Mo={scroll:!1},No={origin:"*mouse"},jo={origin:"+move"},Io=[""],Po=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ao=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Lo=!1,Do=!1,Ro=null,Fo=function(){function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?r.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,a=/[LRr]/,l=/[Lb1n]/,s=/[1n]/;return function(n,r){var u="ltr"==r?"L":"R";if(0==n.length||"ltr"==r&&!i.test(n))return!1;for(var c=n.length,f=[],p=0;p<c;++p)f.push(e(n.charCodeAt(p)));for(var d=0,h=u;d<c;++d){var v=f[d];"m"==v?f[d]=h:h=v}for(var m=0,y=u;m<c;++m){var b=f[m];"1"==b&&"r"==y?f[m]="n":a.test(b)&&(y=b,"r"==b&&(f[m]="R"))}for(var x=1,w=f[0];x<c-1;++x){var C=f[x];"+"==C&&"1"==w&&"1"==f[x+1]?f[x]="1":","!=C||w!=f[x+1]||"1"!=w&&"n"!=w||(f[x]=w),w=C}for(var k=0;k<c;++k){var E=f[k];if(","==E)f[k]="N";else if("%"==E){var S=void 0;for(S=k+1;S<c&&"%"==f[S];++S);for(var _=k&&"!"==f[k-1]||S<c&&"1"==f[S]?"1":"N",O=k;O<S;++O)f[O]=_;k=S-1}}for(var T=0,M=u;T<c;++T){var N=f[T];"L"==M&&"1"==N?f[T]="L":a.test(N)&&(M=N)}for(var j=0;j<c;++j)if(o.test(f[j])){var I=void 0;for(I=j+1;I<c&&o.test(f[I]);++I);for(var P="L"==(j?f[j-1]:u),A=P==("L"==(I<c?f[I]:u))?P?"L":"R":u,L=j;L<I;++L)f[L]=A;j=I-1}for(var D,R=[],F=0;F<c;)if(l.test(f[F])){var B=F;for(++F;F<c&&l.test(f[F]);++F);R.push(new t(0,B,F))}else{var W=F,z=R.length;for(++F;F<c&&"L"!=f[F];++F);for(var H=W;H<F;)if(s.test(f[H])){W<H&&R.splice(z,0,new t(1,W,H));var U=H;for(++H;H<F&&s.test(f[H]);++H);R.splice(z,0,new t(2,U,H)),W=H}else++H;W<F&&R.splice(z,0,new t(1,W,F))}return"ltr"==r&&(1==R[0].level&&(D=n.match(/^\s+/))&&(R[0].from=D[0].length,R.unshift(new t(0,0,D[0].length))),1==g(R).level&&(D=n.match(/\s+$/))&&(g(R).to-=D[0].length,R.push(new t(0,c-D[0].length,c)))),"rtl"==r?R.reverse():R}}(),Bo=[],Wo=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Bo).concat(n)}},zo=function(){if(no&&ro<9)return!1;var e=r("div");return"draggable"in e||"dragDrop"in e}(),Ho=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Uo=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},qo=function(){var e=r("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Vo=null,Go={},Zo={},Yo={},Ko=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Ko.prototype.eol=function(){return this.pos>=this.string.length},Ko.prototype.sol=function(){return this.pos==this.lineStart},Ko.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ko.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ko.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ko.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ko.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ko.prototype.skipToEnd=function(){this.pos=this.string.length},Ko.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ko.prototype.backUp=function(e){this.pos-=e},Ko.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=f(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},Ko.prototype.indentation=function(){return f(this.string,null,this.tabSize)-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},Ko.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ko.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ko.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ko.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ko.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Jo=function(e,t){this.state=e,this.lookAhead=t},Xo=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};Xo.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Xo.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Xo.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Xo.fromSaved=function(e,t,n){return t instanceof Jo?new Xo(e,je(e.mode,t.state),n,t.lookAhead):new Xo(e,je(e.mode,t),n)},Xo.prototype.save=function(e){var t=!1!==e?je(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Jo(t,this.maxLookAhead):t};var $o=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n},Qo=function(e,t,n){this.text=e,Y(this,t),this.height=n?n(this):1};Qo.prototype.lineNo=function(){return M(this)},be(Qo);var ea,ta={},na={},ra=null,ia=null,oa={left:0,right:0,top:0,bottom:0},aa=function(e,t,n){this.cm=n;var i=this.vert=r("div",[r("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=r("div",[r("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=o.tabIndex=-1,e(i),e(o),Wo(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),Wo(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,no&&ro<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};aa.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},aa.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},aa.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},aa.prototype.zeroWidthHack=function(){var e=go&&!uo?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Eo,this.disableVert=new Eo},aa.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)})},aa.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var la=function(){};la.prototype.update=function(){return{bottom:0,right:0}},la.prototype.setScrollLeft=function(){},la.prototype.setScrollTop=function(){},la.prototype.clear=function(){};var sa={native:aa,null:la},ua=0,ca=function(e,t,n){var r=e.display;this.viewport=t,this.visible=fn(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=yt(e),this.force=n,this.dims=Gt(e),this.events=[]};ca.prototype.signal=function(e,t){ye(e,t)&&this.events.push(arguments)},ca.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ge.apply(null,this.events[e])};var fa=0,pa=null;no?pa=-.53:$i?pa=15:ao?pa=-.7:so&&(pa=-1/3);var da=function(e,t){this.ranges=e,this.primIndex=t};da.prototype.primary=function(){return this.ranges[this.primIndex]},da.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!L(n.anchor,r.anchor)||!L(n.head,r.head))return!1}return!0},da.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ha(D(this.ranges[t].anchor),D(this.ranges[t].head));return new da(e,this.primIndex)},da.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},da.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(A(t,r.from())>=0&&A(e,r.to())<=0)return n}return-1};var ha=function(e,t){this.anchor=e,this.head=t};ha.prototype.from=function(){return F(this.anchor,this.head)},ha.prototype.to=function(){return R(this.anchor,this.head)},ha.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Kr.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Ue(i),Qe(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},Jr.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Kr))){var l=[];this.collapse(l),this.children=[new Kr(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,l=a;l<i.lines.length;){var s=new Kr(i.lines.slice(l,l+=25));i.height-=s.height,this.children.splice(++r,0,s),s.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new Jr(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=p(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new Jr(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var ga=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};ga.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=M(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=pt(this);T(n,Math.max(0,n.height-o)),e&&(Pn(e,function(){Xr(e,n,-o),Fn(e,r,"widget")}),Qe(e,"lineWidgetCleared",e,this,r))}},ga.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=pt(this)-t;i&&(T(r,r.height+i),n&&Pn(n,function(){n.curOp.forceUpdate=!0,Xr(n,r,i),Qe(n,"lineWidgetChanged",n,e,M(r))}))},be(ga);var va=0,ma=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++va};ma.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&On(e),ye(this,"clear")){var n=this.find();n&&Qe(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],l=U(a.markedSpans,this);e&&!this.collapsed?Fn(e,M(a),"text"):e&&(null!=l.to&&(i=M(a)),null!=l.from&&(r=M(a))),a.markedSpans=q(a.markedSpans,l),null==l.from&&this.collapsed&&!ae(this.doc,a)&&e&&T(a,qt(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var u=re(this.lines[s]),c=ue(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Rn(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ir(e.doc)),e&&Qe(e,"markerCleared",e,this,r,i),t&&Tn(e),this.parent&&this.parent.clear()}},ma.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=U(o.markedSpans,this);if(null!=a.from&&(n=P(t?o:M(o),a.from),-1==e))return n;if(null!=a.to&&(r=P(t?o:M(o),a.to),1==e))return r}return n&&{from:n,to:r}},ma.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Pn(r,function(){var i=t.line,o=M(t.line),a=Ct(r,o);if(a&&(Ot(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!ae(n.doc,i)&&null!=n.height){var l=n.height;n.height=null;var s=pt(n)-l;s&&T(i,i.height+s)}Qe(r,"markerChanged",r,e)})},ma.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=p(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ma.prototype.detachLine=function(e){if(this.lines.splice(p(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},be(ma);var ya=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};ya.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Qe(this,"clear")}},ya.prototype.find=function(e,t){return this.primary.find(e,t)},be(ya);var ba=0,xa=function(e,t,n,r,i){if(!(this instanceof xa))return new xa(e,t,n,r,i);null==n&&(n=0),Jr.call(this,[new Kr([new Qo("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=P(n,0);this.sel=tr(o),this.history=new dr(null),this.id=++ba,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),ur(this,{from:o,to:o,text:e}),Mr(this,tr(o),Mo)};xa.prototype=y(Jr.prototype,{constructor:xa,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=O(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Dn(function(e){var t=P(this.first,0),n=this.first+this.size-1;Br(this,{from:t,to:P(n,S(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&mn(this.cm,0,0),Mr(this,tr(t),Mo)}),replaceRange:function(e,t,n,r){qr(this,e,t=W(this,t),n=n?W(this,n):t,r)},getRange:function(e,t,n){var r=_(this,W(this,e),W(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(j(this,e))return S(this,e)},getLineNumber:function(e){return M(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=S(this,e)),re(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return W(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Dn(function(e,t,n){Or(this,W(this,"number"==typeof e?P(e,t||0):e),null,n)}),setSelection:Dn(function(e,t,n){Or(this,W(this,e),W(this,t||e),n)}),extendSelection:Dn(function(e,t,n){Er(this,W(this,e),t&&W(this,t),n)}),extendSelections:Dn(function(e,t){Sr(this,z(this,e),t)}),extendSelectionsBy:Dn(function(e,t){Sr(this,z(this,v(this.sel.ranges,e)),t)}),setSelections:Dn(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new ha(W(this,e[i].anchor),W(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Mr(this,er(r,t),n)}}),addSelection:Dn(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new ha(W(this,e),W(this,t||e))),Mr(this,er(r,r.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=_(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=_(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Dn(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var l=t&&"end"!=t&&function(e,t,n){for(var r=[],i=P(e.first,0),o=i,a=0;a<t.length;a++){var l=t[a],s=or(l.from,i,o),u=or(nr(l),i,o);if(i=l.to,o=u,"around"==n){var c=e.sel.ranges[a],f=A(c.head,c.anchor)<0;r[a]=new ha(f?u:s,f?s:u)}else r[a]=new ha(s,s)}return new da(r,e.sel.primIndex)}(this,r,t),s=r.length-1;s>=0;s--)Br(this,r[s]);l?Tr(this,l):this.cm&&vn(this.cm)}),undo:Dn(function(){zr(this,"undo")}),redo:Dn(function(){zr(this,"redo")}),undoSelection:Dn(function(){zr(this,"undo",!0)}),redoSelection:Dn(function(){zr(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new dr(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Cr(this.history.done),undone:Cr(this.history.undone)}},setHistory:function(e){var t=this.history=new dr(this.history.maxGeneration);t.done=Cr(e.done.slice(0),null,!0),t.undone=Cr(e.undone.slice(0),null,!0)},setGutterMarker:Dn(function(e,t,n){return Yr(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&w(r)&&(e.gutterMarkers=null),!0})}),clearGutter:Dn(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&Yr(t,n,"gutter",function(){return n.gutterMarkers[e]=null,w(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!j(this,e))return null;if(t=e,!(e=S(this,e)))return null}else if(null==(t=M(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Dn(function(t,n,r){return Yr(this,t,"gutter"==n?"gutter":"class",function(t){var i="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass";if(t[i]){if(e(r).test(t[i]))return!1;t[i]+=" "+r}else t[i]=r;return!0})}),removeLineClass:Dn(function(t,n,r){return Yr(this,t,"gutter"==n?"gutter":"class",function(t){var i="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass",o=t[i];if(!o)return!1;if(null==r)t[i]=null;else{var a=o.match(e(r));if(!a)return!1;var l=a.index+a[0].length;t[i]=o.slice(0,a.index)+(a.index&&l!=o.length?" ":"")+o.slice(l)||null}return!0})}),addLineWidget:Dn(function(e,t,n){return function(e,t,n,r){var i=new ga(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),Yr(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!ae(e,t)){var r=se(t)<e.scrollTop;T(t,t.height+pt(i)),r&&gn(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&Qe(o,"lineWidgetAdded",o,i,"number"==typeof t?t:M(t)),i}(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return $r(this,W(this,e),W(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return $r(this,e=W(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=S(this,(e=W(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=W(this,e),t=W(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l<a.length;l++){var s=a[l];null!=s.to&&i==e.line&&e.ch>=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),W(this,P(n,t))},indexFromPos:function(e){var t=(e=W(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new xa(O(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new xa(O(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(A(o,a)){var l=$r(e,o,a,r.primary,r.primary.type);r.markers.push(l),l.parent=r}}}(r,Qr(this)),r},unlinkDoc:function(e){if(e instanceof Li&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),ei(Qr(this));break}if(e.history==this.history){var n=[e.id];cr(e,function(e){return n.push(e.id)},!0),e.history=new dr(null),e.history.done=Cr(this.history.done,n),e.history.undone=Cr(this.history.undone,n)}},iterLinkedDocs:function(e){cr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ho(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Dn(function(e){if("rtl"!=e&&(e="ltr"),e!=this.direction){this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&Pn(t=this.cm,function(){pr(t),Rn(t)});var t}})}),xa.prototype.eachLine=xa.prototype.iter;for(var wa=0,Ca=!1,ka={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ea=0;Ea<10;Ea++)ka[Ea+48]=ka[Ea+96]=String(Ea);for(var Sa=65;Sa<=90;Sa++)ka[Sa]=String.fromCharCode(Sa);for(var _a=1;_a<=12;_a++)ka[_a+111]=ka[_a+63235]="F"+_a;var Oa={};Oa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Oa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Oa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Oa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Oa.default=go?Oa.macDefault:Oa.pcDefault;var Ta,Ma,Na={selectAll:Rr,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Mo)},killLine:function(e){return di(e,function(t){if(t.empty()){var n=S(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:P(t.head.line+1,0)}:{from:t.head,to:P(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return di(e,function(t){return{from:P(t.from().line,0),to:W(e.doc,P(t.to().line+1,0))}})},delLineLeft:function(e){return di(e,function(e){return{from:P(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return di(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return di(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(P(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(P(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return mi(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return yi(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(e,t){var n=S(e.doc,t),r=function(e){for(var t;t=ee(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=M(r)),vi(!0,e,n,t,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},jo)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},jo)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?yi(e,t.head):r},jo)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=f(e.getLine(o.line),o.ch,r);t.push(h(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Pn(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=S(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new P(i.line,i.ch-1)),i.ch>0)i=new P(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),P(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=S(e.doc,i.line-1).text;a&&(i=new P(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),P(i.line-1,a.length-1),i,"+transpose"))}n.push(new ha(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Pn(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);vn(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}},ja=new Eo,Ia=null,Pa=function(e,t,n){this.time=e,this.pos=t,this.button=n};Pa.prototype.compare=function(e,t,n){return this.time+400>e&&0==A(t,this.pos)&&n==this.button};var Aa={toString:function(){return"CodeMirror.Init"}},La={},Da={};Li.defaults=La,Li.optionHandlers=Da;var Ra=[];Li.defineInitHook=function(e){return Ra.push(e)};var Fa=null,Ba=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Eo,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ba.prototype.init=function(e){function t(e){if(!ve(i,e)){if(i.somethingSelected())Ri({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=zi(i);Ri({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,Mo),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=Fa.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var a=Ui(),l=a.firstChild;i.display.lineSpace.insertBefore(a,i.display.lineSpace.firstChild),l.value=Fa.text.join("\n");var s=document.activeElement;ko(l),setTimeout(function(){i.display.lineSpace.removeChild(a),s.focus(),s==o&&r.showPrimarySelection()},50)}}var n=this,r=this,i=r.cm,o=r.div=e.lineDiv;Hi(o,i.options.spellcheck),Wo(o,"paste",function(e){ve(i,e)||Bi(e,i)||ro<=11&&setTimeout(An(i,function(){return n.updateFromDOM()}),20)}),Wo(o,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),Wo(o,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),Wo(o,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),Wo(o,"touchstart",function(){return r.forceCompositionEnd()}),Wo(o,"input",function(){n.composing||n.readFromDOMSoon()}),Wo(o,"copy",t),Wo(o,"cut",t)},Ba.prototype.prepareSelection=function(){var e=Qt(this.cm,!1);return e.focus=this.cm.state.focused,e},Ba.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ba.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ba.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line<t.display.viewFrom)e.removeAllRanges();else{var o=Yi(t,e.anchorNode,e.anchorOffset),a=Yi(t,e.focusNode,e.focusOffset);if(!o||o.bad||!a||a.bad||0!=A(F(o,a),r)||0!=A(R(o,a),i)){var l=t.display.view,s=r.line>=t.display.viewFrom&&Gi(t,r)||{node:l[0].measure.map[2],offset:0},u=i.line<t.display.viewTo&&Gi(t,i);if(!u){var c=l[l.length-1].measure,f=c.maps?c.maps[c.maps.length-1]:c.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(s&&u){var p,d=e.rangeCount&&e.getRangeAt(0);try{p=bo(s.node,s.offset,u.offset,u.node)}catch(e){}p&&(!$i&&t.state.focused?(e.collapse(s.node,s.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),d&&null==e.anchorNode?e.addRange(d):$i&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ba.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ba.prototype.showMultipleSelections=function(e){n(this.cm.display.cursorDiv,e.cursors),n(this.cm.display.selectionDiv,e.selection)},Ba.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ba.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return o(this.div,t)},Ba.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ba.prototype.blur=function(){this.div.blur()},Ba.prototype.getField=function(){return this.div},Ba.prototype.supportsTouch=function(){return!0},Ba.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Pn(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))})},Ba.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ba.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(po&&ao&&this.cm.options.gutters.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Yi(t,e.anchorNode,e.anchorOffset),r=Yi(t,e.focusNode,e.focusOffset);n&&r&&Pn(t,function(){Mr(t.doc,tr(n,r),Mo),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Ba.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),l=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=P(a.line-1,S(r.doc,a.line-1).length)),l.ch==S(r.doc,l.line).text.length&&l.line<r.lastLine()&&(l=P(l.line+1,0)),a.line<i.viewFrom||l.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Xt(r,a.line))?(t=M(i.view[0].line),n=i.view[0].node):(t=M(i.view[e].line),n=i.view[e-1].node.nextSibling);var s,u,c=Xt(r,l.line);if(c==i.view.length-1?(s=i.viewTo-1,u=i.lineDiv.lastChild):(s=M(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,i){function o(){u&&(s+=c,f&&(s+=c),u=f=!1)}function a(e){e&&(o(),s+=e)}function l(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void a(n);var s,p=t.getAttribute("cm-marker");if(p){var d=e.findMarks(P(r,0),P(i+1,0),(v=+p,function(e){return e.id==v}));return void(d.length&&(s=d[0].find(0))&&a(_(e.doc,s.from,s.to).join(c)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&o();for(var g=0;g<t.childNodes.length;g++)l(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(f=!0),h&&(u=!0)}else 3==t.nodeType&&a(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var v}for(var s="",u=!1,c=e.doc.lineSeparator(),f=!1;l(t),t!=n;)t=t.nextSibling,f=!1;return s}(r,n,u,t,s)),p=_(r.doc,P(t,0),P(s,S(r.doc,s).text.length));f.length>1&&p.length>1;)if(g(f)==g(p))f.pop(),p.pop(),s--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),t++}for(var d=0,h=0,v=f[0],m=p[0],y=Math.min(v.length,m.length);d<y&&v.charCodeAt(d)==m.charCodeAt(d);)++d;for(var b=g(f),x=g(p),w=Math.min(b.length-(1==f.length?d:0),x.length-(1==p.length?d:0));h<w&&b.charCodeAt(b.length-h-1)==x.charCodeAt(x.length-h-1);)++h;if(1==f.length&&1==p.length&&t==a.line)for(;d&&d>a.ch&&b.charCodeAt(b.length-h-1)==x.charCodeAt(x.length-h-1);)d--,h++;f[f.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var C=P(t,d),k=P(s,p.length?g(p).length-h:0);return f.length>1||f[0]||A(C,k)?(qr(r.doc,f,C,k,"+input"),!0):void 0},Ba.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ba.prototype.reset=function(){this.forceCompositionEnd()},Ba.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ba.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ba.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Pn(this.cm,function(){return Rn(e.cm)})},Ba.prototype.setUneditable=function(e){e.contentEditable="false"},Ba.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||An(this.cm,Fi)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ba.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ba.prototype.onContextMenu=function(){},Ba.prototype.resetPosition=function(){},Ba.prototype.needsContentAttribute=!0;var Wa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Eo,this.hasSelection=!1,this.composing=null};Wa.prototype.init=function(e){function t(e){if(!ve(i,e)){if(i.somethingSelected())Ri({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=zi(i);Ri({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,Mo):(r.prevInput="",o.value=t.text.join("\n"),ko(o))}"cut"==e.type&&(i.state.cutIncoming=!0)}}var n=this,r=this,i=this.cm;this.createField(e);var o=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),fo&&(o.style.width="0px"),Wo(o,"input",function(){no&&ro>=9&&n.hasSelection&&(n.hasSelection=null),r.poll()}),Wo(o,"paste",function(e){ve(i,e)||Bi(e,i)||(i.state.pasteIncoming=!0,r.fastPoll())}),Wo(o,"cut",t),Wo(o,"copy",t),Wo(e.scroller,"paste",function(t){dt(e,t)||ve(i,t)||(i.state.pasteIncoming=!0,r.focus())}),Wo(e.lineSpace,"selectstart",function(t){dt(e,t)||xe(t)}),Wo(o,"compositionstart",function(){var e=i.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),Wo(o,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},Wa.prototype.createField=function(e){this.wrapper=Ui(),this.textarea=this.wrapper.firstChild},Wa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Qt(e);if(e.options.moveInputWithCursor){var i=Dt(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Wa.prototype.showSelection=function(e){var t=this.cm.display;n(t.cursorDiv,e.cursors),n(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wa.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&ko(this.textarea),no&&ro>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",no&&ro>=9&&(this.hasSelection=null))}},Wa.prototype.getField=function(){return this.textarea},Wa.prototype.supportsTouch=function(){return!1},Wa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!ho||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},Wa.prototype.blur=function(){this.textarea.blur()},Wa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wa.prototype.receivedFocus=function(){this.slowPoll()},Wa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Wa.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Wa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Uo(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(no&&ro>=9&&this.hasSelection===i||go&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(r.length,i.length);a<l&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return Pn(t,function(){Fi(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wa.prototype.onKeyPress=function(){no&&ro>=9&&(this.hasSelection=null),this.fastPoll()},Wa.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=i.somethingSelected(),t=""+(e?a.value:"");a.value="⇚",a.value=t,r.prevInput=e?"":"",a.selectionStart=1,a.selectionEnd=t.length,o.selForContextMenu=i.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=c,a.style.cssText=u,no&&ro<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=s),null!=a.selectionStart){(!no||no&&ro<9)&&t();var e=0,n=function(){o.selForContextMenu==i.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&""==r.prevInput?An(i,Rr)(i):e++<10?o.detectingSelectAll=setTimeout(n,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(n,200)}}var r=this,i=r.cm,o=i.display,a=r.textarea,l=Jt(i,e),s=o.scroller.scrollTop;if(l&&!lo){i.options.resetSelectionOnContextMenu&&-1==i.doc.sel.contains(l)&&An(i,Mr)(i.doc,tr(l),Mo);var u=a.style.cssText,c=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var f,p=r.wrapper.getBoundingClientRect();if(a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(no?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",io&&(f=window.scrollY),o.input.focus(),io&&window.scrollTo(null,f),o.input.reset(),i.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=!0,o.selForContextMenu=i.doc.sel,clearTimeout(o.detectingSelectAll),no&&ro>=9&&t(),wo){ke(e);var d=function(){he(window,"mouseup",d),setTimeout(n,20)};Wo(window,"mouseup",d)}else setTimeout(n,50)}},Wa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Wa.prototype.setUneditable=function(){},Wa.prototype.needsContentAttribute=!1,function(e){function t(t,r,i,o){e.defaults[t]=r,i&&(n[t]=o?function(e,t,n){n!=Aa&&i(e,t,n)}:i)}var n=e.optionHandlers;e.defineOption=t,e.Init=Aa,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,ar(e)},!0),t("indentUnit",2,ar,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){lr(e),Mt(e),Rn(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(P(r,o))}r++});for(var i=n.length-1;i>=0;i--)qr(e.doc,t,n[i],P(n[i].line,n[i].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Aa&&e.refresh()}),t("specialCharPlaceholder",Ge,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",ho?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!mo),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){ji(e),Ii(e)},!0),t("keyMap","default",function(e,t,n){var r=pi(t),i=n!=Aa&&pi(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),t("extraKeys",null),t("configureMouse",null),t("lineWrapping",!1,Ai,!0),t("gutters",[],function(e){Jn(e.options),Ii(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?Zt(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return En(e)},!0),t("scrollbarStyle","native",function(e){_n(e),En(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Jn(e.options),Ii(e)},!0),t("firstLineNumber",1,Ii,!0),t("lineNumberFormatter",function(e){return e},Ii,!0),t("showCursorWhenSelecting",!1,$t,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("pasteLinesPerSelection",!0),t("readOnly",!1,function(e,t){"nocursor"==t&&(sn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Pi),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,$t,!0),t("singleCursorHeightPerLine",!0,$t,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,lr,!0),t("addModeClass",!1,lr,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,lr,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(Li),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&An(this,t[e])(this,n,i),ge(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](pi(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Ln(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,Rn(this)}),removeOverlay:Ln(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Rn(this)}}),indentLine:Ln(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),j(this.doc,e)&&Di(this,e,t,n)}),indentSelection:Ln(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Di(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&vn(this));else{var o=i.from(),a=i.to(),l=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=l;s<n;++s)Di(this,s,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&_r(this.doc,r,new ha(o,u[r].to()),Mo)}}}),getTokenAt:function(e,t){return We(this,e,t)},getLineTokens:function(e,t){return We(this,P(e),t,!0)},getTokenTypeAt:function(e){e=W(this.doc,e);var t,n=Le(this,S(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var l=t?t.indexOf("overlay "):-1;return l<0?t:0==l?null:t.slice(0,l-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var l=i[o[t][a]];l&&r.push(l)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var s=0;s<i._global.length;s++){var u=i._global[s];u.pred(o,this)&&-1==p(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return De(this,(e=B(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=null==e?r.head:"object"==typeof e?W(this.doc,e):e?r.from():r.to(),Dt(this,n,t||"page")},charCoords:function(e,t){return Lt(this,W(this.doc,e),t||"page")},coordsChar:function(e,t){return Bt(this,(e=At(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=At(this,{top:e,left:0},t||"page").top,N(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=S(this.doc,e)}else r=e;return Pt(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-se(r):0)},defaultTextHeight:function(){return qt(this.display)},defaultCharWidth:function(){return Vt(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=Dt(this,W(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var s=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(a=e.bottom),l+t.offsetWidth>u&&(l=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(l=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?l=0:"middle"==i&&(l=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&function(e,t){var n=hn(e,t);null!=n.scrollTop&&xn(e,n.scrollTop),null!=n.scrollLeft&&Cn(e,n.scrollLeft)}(this,{left:l,top:a,right:l+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Ln(ki),triggerOnKeyPress:Ln(Si),triggerOnKeyUp:Ei,triggerOnMouseDown:Ln(_i),execCommand:function(e){if(Na.hasOwnProperty(e))return Na[e].call(null,this)},triggerElectric:Ln(function(e){Wi(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=W(this.doc,e),a=0;a<t&&!(o=qi(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:Ln(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?qi(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},jo)}),deleteH:Ln(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):di(this,function(n){var i=qi(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=W(this.doc,e),l=0;l<t;++l){var s=Dt(this,a,"div");if(null==o?o=s.left:s.left=o,(a=Vi(this,s,i,n)).hitSide)break}return a},moveV:Ln(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var l=Dt(n,a.head,"div");null!=a.goalColumn&&(l.left=a.goalColumn),i.push(l.left);var s=Vi(n,l,e,t);return"page"==t&&a==r.sel.primary()&&gn(n,Lt(n,s,"div").top-l.top),s},jo),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=S(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=x(o,i)?function(e){return x(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!x(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new ha(P(e.line,n),P(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?l(this.display.cursorDiv,"CodeMirror-overwrite"):Co(this.display.cursorDiv,"CodeMirror-overwrite"),ge(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==a()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Ln(function(e,t){mn(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-mt(this)-this.display.barHeight,width:e.scrollWidth-mt(this)-this.display.barWidth,clientHeight:bt(this),clientWidth:yt(this)}},scrollIntoView:Ln(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:P(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){yn(e),e.curOp.scrollToPos=t}(this,e):bn(this,e.from,e.to,e.margin)}),setSize:Ln(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Tt(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Fn(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,ge(this,"refresh",this)}),operation:function(e){return Pn(this,e)},startOperation:function(){return On(this)},endOperation:function(){return Tn(this)},refresh:Ln(function(){var e=this.display.cachedTextHeight;Rn(this),this.curOp.forceUpdate=!0,Mt(this),mn(this,this.doc.scrollLeft,this.doc.scrollTop),Zn(this),(null==e||Math.abs(e-qt(this.display))>.5)&&Kt(this),ge(this,"refresh",this)}),swapDoc:Ln(function(e){var t=this.doc;return t.cm=null,fr(this,e),Mt(this),this.display.input.reset(),mn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Qe(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},be(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Li);var za,Ha="iter insert remove copy getEditor constructor".split(" ");for(var Ua in xa.prototype)xa.prototype.hasOwnProperty(Ua)&&p(Ha,Ua)<0&&(Li.prototype[Ua]=function(e){return function(){return e.apply(this.doc,arguments)}}(xa.prototype[Ua]));return be(xa),Li.inputStyles={textarea:Wa,contenteditable:Ba},Li.defineMode=function(e){Li.defaults.mode||"null"==e||(Li.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Go[e]=t}.apply(this,arguments)},Li.defineMIME=function(e,t){Zo[e]=t},Li.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Li.defineMIME("text/plain","null"),Li.defineExtension=function(e,t){Li.prototype[e]=t},Li.defineDocExtension=function(e,t){xa.prototype[e]=t},Li.fromTextArea=function(e,t){function n(){e.value=s.getValue()}if((t=t?c(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=a();t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}var i;if(e.form&&(Wo(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=l}}catch(e){}}t.finishInit=function(t){t.save=n,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,n(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(he(e.form,"submit",n),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var s=Li(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},(za=Li).off=he,za.on=Wo,za.wheelEventPixels=$n,za.Doc=xa,za.splitLines=Ho,za.countColumn=f,za.findColumn=d,za.isWordChar=b,za.Pass=To,za.signal=ge,za.Line=Qo,za.changeEnd=nr,za.scrollbarModel=sa,za.Pos=P,za.cmpPos=A,za.modes=Go,za.mimeModes=Zo,za.resolveMode=Te,za.getMode=Me,za.modeExtensions=Yo,za.extendMode=Ne,za.copyState=je,za.startState=Pe,za.innerMode=Ie,za.commands=Na,za.keyMap=Oa,za.keyName=fi,za.isModifierKey=ui,za.lookupKey=si,za.normalizeKeyMap=li,za.StringStream=Ko,za.SharedTextMarker=ya,za.TextMarker=ma,za.LineWidget=ga,za.e_preventDefault=xe,za.e_stopPropagation=we,za.e_stop=ke,za.addClass=l,za.contains=o,za.rmClass=Co,za.keyNames=ka,Li.version="5.38.0",Li},e.exports=r()},function(e,t){},function(e,t,n){!function(e){e(n(289))}(function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}function n(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}e.defineMode("css",function(t,n){function r(e,t){return d=t,e}function i(e){return function(t,n){for(var i,o=!1;null!=(i=t.next());){if(i==e&&!o){")"==e&&t.backUp(1);break}o=!o&&"\\"==i}return(i==e||!o&&")"!=e)&&(n.tokenize=null),r("string","string")}}function o(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=i(")"),r(null,"(")}function a(e,t,n){this.type=e,this.indent=t,this.prev=n}function l(e,t,n,r){return e.context=new a(n,t.indentation()+(!1===r?0:g),e.context),n}function s(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function u(e,t,n){return N[n.context.type](e,t,n)}function c(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return u(e,t,n)}function f(e){var t=e.current().toLowerCase();h=_.hasOwnProperty(t)?"atom":S.hasOwnProperty(t)?"keyword":"variable"}var p=n.inline;n.propertyKeywords||(n=e.resolveMode("text/css"));var d,h,g=t.indentUnit,v=n.tokenHooks,m=n.documentTypes||{},y=n.mediaTypes||{},b=n.mediaFeatures||{},x=n.mediaValueKeywords||{},w=n.propertyKeywords||{},C=n.nonStandardPropertyKeywords||{},k=n.fontProperties||{},E=n.counterDescriptors||{},S=n.colorKeywords||{},_=n.valueKeywords||{},O=n.allowNested,T=n.lineComment,M=!0===n.supportsAtComponent,N={top:function(e,t,n){if("{"==e)return l(n,t,"block");if("}"==e&&n.context.prev)return s(n);if(M&&/@component/i.test(e))return l(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return l(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return l(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return l(n,t,"at");if("hash"==e)h="builtin";else if("word"==e)h="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return l(n,t,"interpolation");if(":"==e)return"pseudo";if(O&&"("==e)return l(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return w.hasOwnProperty(r)?(h="property","maybeprop"):C.hasOwnProperty(r)?(h="string-2","maybeprop"):O?(h=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(h+=" error","maybeprop")}return"meta"==e?"block":O||"hash"!=e&&"qualifier"!=e?N.top(e,t,n):(h="error","block")},maybeprop:function(e,t,n){return":"==e?l(n,t,"prop"):u(e,t,n)},prop:function(e,t,n){if(";"==e)return s(n);if("{"==e&&O)return l(n,t,"propBlock");if("}"==e||"{"==e)return c(e,t,n);if("("==e)return l(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)f(t);else if("interpolation"==e)return l(n,t,"interpolation")}else h+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?s(n):"word"==e?(h="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?c(e,t,n):")"==e?s(n):"("==e?l(n,t,"parens"):"interpolation"==e?l(n,t,"interpolation"):("word"==e&&f(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(h="variable-3",n.context.type):u(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&m.hasOwnProperty(t.current())?(h="tag",n.context.type):N.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return l(n,t,"atBlock_parens");if("}"==e||";"==e)return c(e,t,n);if("{"==e)return s(n)&&l(n,t,O?"block":"top");if("interpolation"==e)return l(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();h="only"==r||"not"==r||"and"==r||"or"==r?"keyword":y.hasOwnProperty(r)?"attribute":b.hasOwnProperty(r)?"property":x.hasOwnProperty(r)?"keyword":w.hasOwnProperty(r)?"property":C.hasOwnProperty(r)?"string-2":_.hasOwnProperty(r)?"atom":S.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?c(e,t,n):"{"==e?s(n)&&l(n,t,O?"block":"top",!1):("word"==e&&(h="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?s(n):"{"==e||"}"==e?c(e,t,n,2):N.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?l(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(h="variable","restricted_atBlock_before"):u(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,s(n)):"word"==e?(h="@font-face"==n.stateArg&&!k.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!E.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(h="variable","keyframes"):"{"==e?l(n,t,"top"):u(e,t,n)},at:function(e,t,n){return";"==e?s(n):"{"==e||"}"==e?c(e,t,n):("word"==e?h="tag":"hash"==e&&(h="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?s(n):"{"==e||";"==e?c(e,t,n):("word"==e?h="variable":"variable"!=e&&"("!=e&&")"!=e&&(h="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:p?"block":"top",stateArg:null,context:new a(p?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||function(e,t){var n=e.next();if(v[n]){var a=v[n](e,t);if(!1!==a)return a}return"@"==n?(e.eatWhile(/[\w\\\-]/),r("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?r(null,"compare"):'"'==n||"'"==n?(t.tokenize=i(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),r("atom","hash")):"!"==n?(e.match(/^\s*\w*/),r("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),r("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?r(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?r("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?r(null,n):("u"==n||"U"==n)&&e.match(/rl(-prefix)?\(/i)||("d"==n||"D"==n)&&e.match("omain(",!0,!0)||("r"==n||"R"==n)&&e.match("egexp(",!0,!0)?(e.backUp(1),t.tokenize=o,r("property","word")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),r("property","word")):r(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),r("number","unit")):e.match(/^-[\w\\\-]+/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?r("variable-2","variable-definition"):r("variable-2","variable")):e.match(/^\w+-/)?r("meta","meta"):void 0})(e,t);return n&&"object"==typeof n&&(d=n[1],n=n[0]),h=n,"comment"!=d&&(t.state=N[t.state](d,e,t)),h},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-g)):i=(n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:T,fold:"brace"}});var r=["domain","regexp","url","url-prefix"],i=t(r),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],a=t(o),l=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(l),u=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],c=t(u),f=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=t(f),d=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],h=t(d),g=t(["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),v=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),m=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],y=t(m),b=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],x=t(b),w=r.concat(o).concat(l).concat(u).concat(f).concat(d).concat(m).concat(b);e.registerHelper("hintWords","css",w),e.defineMIME("text/css",{documentTypes:i,mediaTypes:a,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:h,fontProperties:g,counterDescriptors:v,colorKeywords:y,valueKeywords:x,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=n,n(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:h,colorKeywords:y,valueKeywords:x,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=n,n(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:a,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:h,colorKeywords:y,valueKeywords:x,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=n,n(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:i,mediaTypes:a,mediaFeatures:s,propertyKeywords:p,nonStandardPropertyKeywords:h,fontProperties:g,counterDescriptors:v,colorKeywords:y,valueKeywords:x,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=n,n(e,t))}},name:"css",helperType:"gss"})})},function(e,t,n){var r;r=function(){"use strict";function e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function t(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function r(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function i(e,t,n,i){var o=r(e,t,n,i);return o.setAttribute("role","presentation"),o}function o(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function a(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function l(t,n){var r=t.className;e(n).test(r)||(t.className+=(r?" ":"")+n)}function s(t,n){for(var r=t.split(" "),i=0;i<r.length;i++)r[i]&&!e(r[i]).test(n)&&(n+=" "+r[i]);return n}function u(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function c(e,t,n){t||(t={});for(var r in e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function f(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var l=e.indexOf("\t",o);if(l<0||l>=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}function p(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}function d(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}function h(e){for(;Io.length<=e;)Io.push(g(Io)+" ");return Io[e]}function g(e){return e[e.length-1]}function v(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function m(){}function y(e,t){var n;return Object.create?n=Object.create(e):(m.prototype=e,n=new m),t&&c(t,n),n}function b(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Po.test(e))}function x(e,t){return t?!!(t.source.indexOf("\\w")>-1&&b(e))||t.test(e):b(e)}function w(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function C(e){return e.charCodeAt(0)>=768&&Ao.test(e)}function k(e,t,n){for(;(n<0?t>0:t<e.length)&&C(e.charAt(t));)t+=n;return t}function E(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function S(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function _(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function O(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function T(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function M(e){if(null==e.parent)return null;for(var t=e.parent,n=p(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function N(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var l=e.lines[a].height;if(t<l)break;t-=l}return n+a}function j(e,t){return t>=e.first&&t<e.first+e.size}function I(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function P(e,t,n){if(void 0===n&&(n=null),!(this instanceof P))return new P(e,t,n);this.line=e,this.ch=t,this.sticky=n}function A(e,t){return e.line-t.line||e.ch-t.ch}function L(e,t){return e.sticky==t.sticky&&0==A(e,t)}function D(e){return P(e.line,e.ch)}function R(e,t){return A(e,t)<0?t:e}function F(e,t){return A(e,t)<0?e:t}function B(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function W(e,t){if(t.line<e.first)return P(e.first,0);var n=e.first+e.size-1;return t.line>n?P(n,S(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?P(e.line,t):n<0?P(e.line,0):e}(t,S(e,t.line).text.length)}function z(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=W(e,t[r]);return n}function H(e,t,n){this.marker=e,this.from=t,this.to=n}function U(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function q(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function V(e,t){if(t.full)return null;var n=j(e,t.from.line)&&S(e,t.from.line).markedSpans,r=j(e,t.to.line)&&S(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==A(t.from,t.to),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new H(a,o.from,l?null:o.to))}}return r}(n,i,a),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new H(a,l?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),u=1==t.text.length,c=g(t.text).length+(u?i:0);if(l)for(var f=0;f<l.length;++f){var p=l[f];if(null==p.to){var d=U(s,p.marker);d?u&&(p.to=null==d.to?null:d.to+c):p.to=i}}if(s)for(var h=0;h<s.length;++h){var v=s[h];null!=v.to&&(v.to+=c),null==v.from?U(l,v.marker)||(v.from=c,u&&(l||(l=[])).push(v)):(v.from+=c,u&&(l||(l=[])).push(v))}l&&(l=G(l)),s&&s!=l&&(s=G(s));var m=[l];if(!u){var y,b=t.text.length-2;if(b>0&&l)for(var x=0;x<l.length;++x)null==l[x].to&&(y||(y=[])).push(new H(l[x].marker,null,null));for(var w=0;w<b;++w)m.push(y);m.push(s)}return m}function G(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Z(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Y(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function K(e){return e.inclusiveLeft?-1:0}function J(e){return e.inclusiveRight?1:0}function X(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=A(r.from,i.from)||K(e)-K(t);if(o)return-o;var a=A(r.to,i.to)||J(e)-J(t);return a||t.id-e.id}function $(e,t){var n,r=Do&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||X(n,i.marker)<0)&&(n=i.marker);return n}function Q(e){return $(e,!0)}function ee(e){return $(e,!1)}function te(e,t){var n,r=Do&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||X(n,o.marker)<0)&&(n=o.marker)}return n}function ne(e,t,n,r,i){var o=S(e,t),a=Do&&o.markedSpans;if(a)for(var l=0;l<a.length;++l){var s=a[l];if(s.marker.collapsed){var u=s.marker.find(0),c=A(u.from,n)||K(s.marker)-K(i),f=A(u.to,r)||J(s.marker)-J(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?A(u.to,n)>=0:A(u.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?A(u.from,r)<=0:A(u.from,r)<0)))return!0}}}function re(e){for(var t;t=Q(e);)e=t.find(-1,!0).line;return e}function ie(e,t){var n=S(e,t),r=re(n);return n==r?t:M(r)}function oe(e,t){if(t>e.lastLine())return t;var n,r=S(e,t);if(!ae(e,r))return t;for(;n=ee(r);)r=n.find(1,!0).line;return M(r)+1}function ae(e,t){var n=Do&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&le(e,t,r))return!0}}function le(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return le(e,r.line,U(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&le(e,t,i))return!0}function se(e){for(var t=0,n=(e=re(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var l=o.children[a];if(l==n)break;t+=l.height}return t}function ue(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Q(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=ee(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function ce(e){var t=e.display,n=e.doc;t.maxLine=S(n,n.first),t.maxLineLength=ue(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=ue(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function fe(e,t,n){var r;Ro=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:Ro=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:Ro=i)}return null!=r?r:Ro}function pe(e,t){var n=e.order;return null==n&&(n=e.order=Fo(e.text,t)),n}function de(e,t){return e._handlers&&e._handlers[t]||Bo}function he(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=p(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ge(e,t){var n=de(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function ve(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ge(e,n||t.type,e,t),Ce(t)||t.codemirrorIgnore}function me(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==p(n,t[r])&&n.push(t[r])}function ye(e,t){return de(e,t).length>0}function be(e){e.prototype.on=function(e,t){Wo(this,e,t)},e.prototype.off=function(e,t){he(this,e,t)}}function xe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function we(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ce(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ke(e){xe(e),we(e)}function Ee(e){return e.target||e.srcElement}function Se(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),go&&e.ctrlKey&&1==t&&(t=3),t}function _e(e){if(null==So){var t=r("span","");n(e,r("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(So=t.offsetWidth<=1&&t.offsetHeight>2&&!(no&&ro<8))}var i=So?r("span",""):r("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function Oe(e){if(null!=_o)return _o;var r=n(e,document.createTextNode("AخA")),i=bo(r,0,1).getBoundingClientRect(),o=bo(r,1,2).getBoundingClientRect();return t(e),!(!i||i.left==i.right)&&(_o=o.right-i.right<3)}function Te(e){if("string"==typeof e&&Zo.hasOwnProperty(e))e=Zo[e];else if(e&&"string"==typeof e.name&&Zo.hasOwnProperty(e.name)){var t=Zo[e.name];"string"==typeof t&&(t={name:t}),(e=y(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Te("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Te("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Me(e,t){t=Te(t);var n=Go[t.name];if(!n)return Me(e,"text/plain");var r=n(e,t);if(Yo.hasOwnProperty(t.name)){var i=Yo[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}function Ne(e,t){c(t,Yo.hasOwnProperty(e)?Yo[e]:Yo[e]={})}function je(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ie(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Pe(e,t,n){return!e.startState||e.startState(t,n)}function Ae(e,t,n,r){var i=[e.state.modeGen],o={};He(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,l=0;l<e.state.overlays.length;++l)!function(r){n.baseTokens=i;var l=e.state.overlays[r],s=1,u=0;n.state=!0,He(e,t.text,l.mode,n,function(e,t){for(var n=s;u<e;){var r=i[s];r>e&&i.splice(s,1,e,i[s+1],r),s+=2,u=Math.min(e,r)}if(t)if(l.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;n<s;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1}(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Le(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=De(e,M(t)),i=t.text.length>e.options.maxHighlightLength&&je(e.doc.mode,r.state),o=Ae(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function De(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Xo(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=o.first)return o.first;var s=S(o,l-1),u=s.stateAfter;if(u&&(!n||l+(u instanceof Jo?u.lookAhead:0)<=o.modeFrontier))return l;var c=f(s.text,null,e.options.tabSize);(null==i||r>c)&&(i=l-1,r=c)}return i}(e,t,n),a=o>r.first&&S(r,o-1).stateAfter,l=a?Xo.fromSaved(r,a,o):new Xo(r,Pe(r.mode),o);return r.iter(o,t,function(n){Re(e,n.text,l);var r=l.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?l.save():null,l.nextLine()}),n&&(r.modeFrontier=l.line),l}function Re(e,t,n,r){var i=e.doc.mode,o=new Ko(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Fe(i,n.state);!o.eol();)Be(i,o,n.state),o.start=o.pos}function Fe(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ie(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Be(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ie(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function We(e,t,n,r){var i,o,a=e.doc,l=a.mode,s=S(a,(t=W(a,t)).line),u=De(e,t.line,n),c=new Ko(s.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=Be(l,c,u.state),r&&o.push(new $o(c,i,je(a.mode,u.state)));return r?o:new $o(c,i,u.state)}function ze(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function He(e,t,n,r,i,o,a){var l=n.flattenSpans;null==l&&(l=e.options.flattenSpans);var s,u=0,c=null,f=new Ko(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];for(""==t&&ze(Fe(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(l=!1,a&&Re(e,t,r,f.pos),f.pos=t.length,s=null):s=ze(Be(n,f,r.state,p),o),p){var d=p[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!l||c!=s){for(;u<f.start;)i(u=Math.min(f.start,u+5e3),c);c=s}f.start=f.pos}for(;u<f.pos;){var h=Math.min(f.pos,u+5e3);i(h,c),u=h}}function Ue(e){e.parent=null,Z(e)}function qe(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?na:ta;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Ve(e,t){var n=i("span",null,null,io?"padding-right: .1px":null),r={pre:i("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(no||io)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var a=o?t.rest[o-1]:t.line,l=void 0;r.pos=0,r.addToken=Ze,Oe(e.display.measure)&&(l=pe(a,e.doc.direction))&&(r.addToken=Ye(r.addToken,l)),r.map=[],Je(a,r,Le(e,a,t!=e.display.externalMeasured&&M(a))),a.styleClasses&&(a.styleClasses.bgClass&&(r.bgClass=s(a.styleClasses.bgClass,r.bgClass||"")),a.styleClasses.textClass&&(r.textClass=s(a.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(_e(e.display.measure))),0==o?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(io){var u=r.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ge(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=s(r.pre.className,r.textClass||"")),r}function Ge(e){var t=r("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ze(e,t,n,i,o,a,l){if(t){var s,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,c=e.cm.state.specialChars,f=!1;if(c.test(t)){s=document.createDocumentFragment();for(var p=0;;){c.lastIndex=p;var d=c.exec(t),g=d?d.index-p:t.length-p;if(g){var v=document.createTextNode(u.slice(p,p+g));no&&ro<9?s.appendChild(r("span",[v])):s.appendChild(v),e.map.push(e.pos,e.pos+g,v),e.col+=g,e.pos+=g}if(!d)break;p+=g+1;var m=void 0;if("\t"==d[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(m=s.appendChild(r("span",h(b),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=b}else"\r"==d[0]||"\n"==d[0]?((m=s.appendChild(r("span","\r"==d[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",d[0]),e.col+=1):((m=e.cm.options.specialCharPlaceholder(d[0])).setAttribute("cm-text",d[0]),no&&ro<9?s.appendChild(r("span",[m])):s.appendChild(m),e.col+=1);e.map.push(e.pos,e.pos+1,m),e.pos++}}else e.col+=t.length,s=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,s),no&&ro<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||i||o||f||l){var x=n||"";i&&(x+=i),o&&(x+=o);var w=r("span",[s],x,l);return a&&(w.title=a),e.content.appendChild(w)}e.content.appendChild(s)}}function Ye(e,t){return function(n,r,i,o,a,l,s){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var f=void 0,p=0;p<t.length&&!((f=t[p]).to>u&&f.from<=u);p++);if(f.to>=c)return e(n,r,i,o,a,l,s);e(n,r.slice(0,f.to-u),i,o,null,l,s),o=null,r=r.slice(f.to-u),u=f.to}}}function Ke(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Je(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,l,s,u,c,f,p,d=i.length,h=0,g=1,v="",m=0;;){if(m==h){s=u=c=f=l="",p=null,m=1/0;for(var y=[],b=void 0,x=0;x<r.length;++x){var w=r[x],C=w.marker;"bookmark"==C.type&&w.from==h&&C.widgetNode?y.push(C):w.from<=h&&(null==w.to||w.to>h||C.collapsed&&w.to==h&&w.from==h)?(null!=w.to&&w.to!=h&&m>w.to&&(m=w.to,u=""),C.className&&(s+=" "+C.className),C.css&&(l=(l?l+";":"")+C.css),C.startStyle&&w.from==h&&(c+=" "+C.startStyle),C.endStyle&&w.to==m&&(b||(b=[])).push(C.endStyle,w.to),C.title&&!f&&(f=C.title),C.collapsed&&(!p||X(p.marker,C)<0)&&(p=w)):w.from>h&&m>w.from&&(m=w.from)}if(b)for(var k=0;k<b.length;k+=2)b[k+1]==m&&(u+=" "+b[k]);if(!p||p.from==h)for(var E=0;E<y.length;++E)Ke(t,0,y[E]);if(p&&(p.from||0)==h){if(Ke(t,(null==p.to?d+1:p.to)-h,p.marker,null==p.from),null==p.to)return;p.to==h&&(p=!1)}}if(h>=d)break;for(var S=Math.min(d,m);;){if(v){var _=h+v.length;if(!p){var O=_>S?v.slice(0,S-h):v;t.addToken(t,O,a?a+s:s,c,h+O.length==m?u:"",f,l)}if(_>=S){v=v.slice(S-h),h=S;break}h=_,c=""}v=i.slice(o,o=n[g++]),a=qe(n[g++],t.cm.options)}}else for(var T=1;T<n.length;T+=2)t.addToken(t,i.slice(o,o=n[T]),qe(n[T+1],t.cm.options))}function Xe(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=ee(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?M(g(this.rest))-n+1:1,this.node=this.text=null,this.hidden=ae(e,t)}function $e(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new Xe(e.doc,S(e.doc,o),o);r=o+a.size,i.push(a)}return i}function Qe(e,t){var n=de(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);ra?r=ra.delayedCallbacks:ia?r=ia:(r=ia=[],setTimeout(et,0));for(var o=0;o<n.length;++o)!function(e){r.push(function(){return n[e].apply(null,i)})}(o)}}function et(){var e=ia;ia=null;for(var t=0;t<e.length;++t)e[t]()}function tt(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?it(e,t):"gutter"==o?at(e,t,n,r):"class"==o?ot(e,t):"widget"==o&<(e,t,r)}t.changes=null}function nt(e){return e.node==e.text&&(e.node=r("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),no&&ro<8&&(e.node.style.zIndex=2)),e.node}function rt(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Ve(e,t)}function it(e,t){var n=t.text.className,r=rt(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,ot(e,t)):n&&(t.text.className=n)}function ot(e,t){(function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var i=nt(t);t.background=i.insertBefore(r("div",null,n),i.firstChild),e.display.input.setUneditable(t.background)}})(e,t),t.line.wrapClass?nt(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function at(e,t,n,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=nt(t);t.gutterBackground=r("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var l=nt(t),s=t.gutter=r("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),l.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(r("div",I(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),a)for(var u=0;u<e.options.gutters.length;++u){var c=e.options.gutters[u],f=a.hasOwnProperty(c)&&a[c];f&&s.appendChild(r("div",[f],"CodeMirror-gutter-elt","left: "+i.gutterLeft[c]+"px; width: "+i.gutterWidth[c]+"px"))}}}function lt(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);ut(e,t,n)}function st(e,t,n,r){var i=rt(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),ot(e,t),at(e,t,n,r),ut(e,t,r),t.node}function ut(e,t,n){if(ct(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)ct(e,t.rest[r],t,n,!1)}function ct(e,t,n,i,o){if(t.widgets)for(var a=nt(n),l=0,s=t.widgets;l<s.length;++l){var u=s[l],c=r("div",[u.node],"CodeMirror-linewidget");u.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),ft(u,c,n,i),e.display.input.setUneditable(c),o&&u.above?a.insertBefore(c,n.gutter||n.text):a.appendChild(c),Qe(u,"redraw")}}function ft(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function pt(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!o(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),n(t.display.measure,r("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function dt(e,t){for(var n=Ee(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function ht(e){return e.lineSpace.offsetTop}function gt(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function vt(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=n(e.measure,r("pre","x")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,o={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return isNaN(o.left)||isNaN(o.right)||(e.cachedPaddingH=o),o}function mt(e){return Oo-e.display.nativeBarWidth}function yt(e){return e.display.scroller.clientWidth-mt(e)-e.display.barWidth}function bt(e){return e.display.scroller.clientHeight-mt(e)-e.display.barHeight}function xt(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(M(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function wt(e,t,n,r){return Et(e,kt(e,t),n,r)}function Ct(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Xt(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function kt(e,t){var r=M(t),i=Ct(e,r);i&&!i.text?i=null:i&&i.changes&&(tt(e,i,r,Gt(e)),e.curOp.forceUpdate=!0),i||(i=function(e,t){var r=M(t=re(t)),i=e.display.externalMeasured=new Xe(e.doc,t,r);i.lineN=r;var o=i.built=Ve(e,i);return i.text=o.pre,n(e.display.lineMeasure,o.pre),i}(e,t));var o=xt(i,t,r);return{line:t,view:i,rect:null,map:o.map,cache:o.cache,before:o.before,hasHeights:!1}}function Et(e,t,i,o,a){t.before&&(i=-1);var l,s=i+(o||"");return t.cache.hasOwnProperty(s)?l=t.cache[s]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(!function(e,t,n){var r=e.options.lineWrapping,i=r&&yt(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),l=0;l<a.length-1;l++){var s=a[l],u=a[l+1];Math.abs(s.bottom-u.bottom)>2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(l=function(e,t,i,o){var a,l=St(t.map,i,o),s=l.node,u=l.start,c=l.end,f=l.collapse;if(3==s.nodeType){for(var p=0;p<4;p++){for(;u&&C(t.line.text.charAt(l.coverStart+u));)--u;for(;l.coverStart+c<l.coverEnd&&C(t.line.text.charAt(l.coverStart+c));)++c;if(a=no&&ro<9&&0==u&&c==l.coverEnd-l.coverStart?s.parentNode.getBoundingClientRect():_t(bo(s,u,c).getClientRects(),o),a.left||a.right||0==u)break;c=u,u-=1,f="right"}no&&ro<11&&(a=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Vo)return Vo;var t=n(e,r("span","x")),i=t.getBoundingClientRect(),o=bo(t,0,1).getBoundingClientRect();return Vo=Math.abs(i.left-o.left)>1}(e))return t;var i=screen.logicalXDPI/screen.deviceXDPI,o=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*o,bottom:t.bottom*o}}(e.display.measure,a))}else{u>0&&(f=o="right");var d;a=e.options.lineWrapping&&(d=s.getClientRects()).length>1?d["right"==o?d.length-1:0]:s.getBoundingClientRect()}if(no&&ro<9&&!u&&(!a||!a.left&&!a.right)){var h=s.parentNode.getClientRects()[0];a=h?{left:h.left,right:h.left+Vt(e.display),top:h.top,bottom:h.bottom}:oa}for(var g=a.top-t.rect.top,v=a.bottom-t.rect.top,m=(g+v)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(m<y[b]);b++);var x=b?y[b-1]:0,w=y[b],k={left:("right"==f?a.right:a.left)-t.rect.left,right:("left"==f?a.left:a.right)-t.rect.left,top:x,bottom:w};return a.left||a.right||(k.bogus=!0),e.options.singleCursorHeightPerLine||(k.rtop=g,k.rbottom=v),k}(e,t,i,o)).bogus||(t.cache[s]=l)),{left:l.left,right:l.right,top:a?l.rtop:l.top,bottom:a?l.rbottom:l.bottom}}function St(e,t,n){for(var r,i,o,a,l,s,u=0;u<e.length;u+=3)if(l=e[u],s=e[u+1],t<l?(i=0,o=1,a="left"):t<s?o=1+(i=t-l):(u==e.length-3||t==s&&e[u+3]>t)&&(i=(o=s-l)-1,t>=s&&(a="right")),null!=i){if(r=e[u+2],l==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==s-l)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:l,coverEnd:s}}function _t(e,t){var n=oa;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Ot(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Tt(e){e.display.externalMeasure=null,t(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)Ot(e.display.view[n])}function Mt(e){Tt(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Nt(){return ao&&po?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function jt(){return ao&&po?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function It(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=pt(e.widgets[n]));return t}function Pt(e,t,n,r,i){if(!i){var o=It(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=se(t);if("local"==r?a+=ht(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var l=e.display.lineSpace.getBoundingClientRect();a+=l.top+("window"==r?0:jt());var s=l.left+("window"==r?0:Nt());n.left+=s,n.right+=s}return n.top+=a,n.bottom+=a,n}function At(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Nt(),i-=jt();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Lt(e,t,n,r,i){return r||(r=S(e.doc,t.line)),Pt(e,r,wt(e,r,t.ch,i),n)}function Dt(e,t,n,r,i,o){function a(t,a){var l=Et(e,i,t,a?"right":"left",o);return a?l.left=l.right:l.right=l.left,Pt(e,r,l,n)}function l(e,t,n){var r=1==s[t].level;return a(n?e-1:e,r!=n)}r=r||S(e.doc,t.line),i||(i=kt(e,r));var s=pe(r,e.doc.direction),u=t.ch,c=t.sticky;if(u>=r.text.length?(u=r.text.length,c="before"):u<=0&&(u=0,c="after"),!s)return a("before"==c?u-1:u,"before"==c);var f=fe(s,u,c),p=Ro,d=l(u,f,"before"==c);return null!=p&&(d.other=l(u,p,"before"!=c)),d}function Rt(e,t){var n=0;t=W(e.doc,t),e.options.lineWrapping||(n=Vt(e.display)*t.ch);var r=S(e.doc,t.line),i=se(r)+ht(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Ft(e,t,n,r,i){var o=P(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function Bt(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Ft(r.first,0,null,!0,-1);var i=N(r,n),o=r.first+r.size-1;if(i>o)return Ft(r.first+r.size-1,S(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=S(r,i);;){var l=Ut(e,a,i,t,n),s=te(a,l.ch+(l.xRel>0?1:0));if(!s)return l;var u=s.find(1);if(u.line==i)return u;a=S(r,i=u.line)}}function Wt(e,t,n,r){r-=It(t);var i=t.text.length,o=E(function(t){return Et(e,n,t-1).bottom<=r},i,0);return{begin:o,end:i=E(function(t){return Et(e,n,t).top>r},o,i)}}function zt(e,t,n,r){return n||(n=kt(e,t)),Wt(e,t,n,Pt(e,t,Et(e,n,r),"line").top)}function Ht(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Ut(e,t,n,r,i){i-=se(t);var o=kt(e,t),a=It(t),l=0,s=t.text.length,u=!0,c=pe(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?function(e,t,n,r,i,o,a){var l=Wt(e,t,r,a),s=l.begin,u=l.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,p=0;p<i.length;p++){var d=i[p];if(!(d.from>=u||d.to<=s)){var h=1!=d.level,g=Et(e,r,h?Math.min(u,d.to)-1:Math.max(s,d.from)).right,v=g<o?o-g+1e9:g-o;(!c||f>v)&&(c=d,f=v)}}return c||(c=i[i.length-1]),c.from<s&&(c={from:s,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}:function(e,t,n,r,i,o,a){var l=E(function(l){var s=i[l],u=1!=s.level;return Ht(Dt(e,P(n,u?s.to:s.from,u?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),s=i[l];if(l>0){var u=1!=s.level,c=Dt(e,P(n,u?s.from:s.to,u?"after":"before"),"line",t,r);Ht(c,o,a,!0)&&c.top>a&&(s=i[l-1])}return s})(e,t,n,o,c,r,i);l=(u=1!=f.level)?f.from:f.to-1,s=u?f.to:f.from-1}var p,d,h=null,g=null,v=E(function(t){var n=Et(e,o,t);return n.top+=a,n.bottom+=a,!!Ht(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,g=n),!0)},l,s),m=!1;if(g){var y=r-g.left<g.right-r,b=y==u;v=h+(b?0:1),d=b?"after":"before",p=y?g.left:g.right}else{u||v!=s&&v!=l||v++,d=0==v?"after":v==t.text.length?"before":Et(e,o,v-(u?1:0)).bottom+a<=i==u?"after":"before";var x=Dt(e,P(n,v,d),"line",t,o);p=x.left,m=i<x.top||i>=x.bottom}return Ft(n,v=k(t.text,v,1),d,m,r-p)}function qt(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ea){ea=r("pre");for(var i=0;i<49;++i)ea.appendChild(document.createTextNode("x")),ea.appendChild(r("br"));ea.appendChild(document.createTextNode("x"))}n(e.measure,ea);var o=ea.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function Vt(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=r("span","xxxxxxxxxx"),i=r("pre",[t]);n(e.measure,i);var o=t.getBoundingClientRect(),a=(o.right-o.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function Gt(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:Zt(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Zt(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Yt(e){var t=qt(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Vt(e.display)-3);return function(i){if(ae(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Kt(e){var t=e.doc,n=Yt(e);t.iter(function(e){var t=n(e);t!=e.height&&T(e,t)})}function Jt(e,t,n,r){var i=e.display;if(!n&&"true"==Ee(t).getAttribute("cm-not-content"))return null;var o,a,l=i.lineSpace.getBoundingClientRect();try{o=t.clientX-l.left,a=t.clientY-l.top}catch(t){return null}var s,u=Bt(e,o,a);if(r&&1==u.xRel&&(s=S(e.doc,u.line).text).length==u.ch){var c=f(s,s.length,e.options.tabSize)-s.length;u=P(u.line,Math.max(0,Math.round((o-vt(e.display).left)/Vt(e.display))-c))}return u}function Xt(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function $t(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Qt(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var l=n.sel.ranges[a];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var s=l.empty();(s||e.options.showCursorWhenSelecting)&&en(e,l.head,i),s||nn(e,l,o)}}return r}function en(e,t,n){var i=Dt(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=n.appendChild(r("div"," ","CodeMirror-cursor"));if(o.style.left=i.left+"px",o.style.top=i.top+"px",o.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",i.other){var a=n.appendChild(r("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=i.other.left+"px",a.style.top=i.other.top+"px",a.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function tn(e,t){return e.top-t.top||e.left-t.left}function nn(e,t,n){function i(e,t,n,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),s.appendChild(r("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?f-e:n)+"px;\n height: "+(i-t)+"px"))}function o(t,n,r){function o(n,r){return Lt(e,P(t,n),"div",d,r)}function a(t,n,r){var i=zt(e,d,null,t),a="ltr"==n==("after"==r)?"left":"right";return o("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),a)[a]}var s,u,d=S(l,t),h=d.text.length,g=pe(d,l.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(g,n||0,null==r?h:r,function(e,t,l,d){var v="ltr"==l,m=o(e,v?"left":"right"),y=o(t-1,v?"right":"left"),b=null==n&&0==e,x=null==r&&t==h,w=0==d,C=!g||d==g.length-1;if(y.top-m.top<=3){var k=(p?x:b)&&C,E=(p?b:x)&&w?c:(v?m:y).left,S=k?f:(v?y:m).right;i(E,m.top,S-E,m.bottom)}else{var _,O,T,M;v?(_=p&&b&&w?c:m.left,O=p?f:a(e,l,"before"),T=p?c:a(t,l,"after"),M=p&&x&&C?f:y.right):(_=p?a(e,l,"before"):c,O=!p&&b&&w?f:m.right,T=!p&&x&&C?c:y.left,M=p?a(t,l,"after"):f),i(_,m.top,O-_,m.bottom),m.bottom<y.top&&i(c,m.bottom,null,y.top),i(T,y.top,M-T,y.bottom)}(!s||tn(m,s)<0)&&(s=m),tn(y,s)<0&&(s=y),(!u||tn(m,u)<0)&&(u=m),tn(y,u)<0&&(u=y)}),{start:s,end:u}}var a=e.display,l=e.doc,s=document.createDocumentFragment(),u=vt(e.display),c=u.left,f=Math.max(a.sizerWidth,yt(e)-a.sizer.offsetLeft)-u.right,p="ltr"==l.direction,d=t.from(),h=t.to();if(d.line==h.line)o(d.line,d.ch,h.ch);else{var g=S(l,d.line),v=S(l,h.line),m=re(g)==re(v),y=o(d.line,d.ch,m?g.text.length+1:null).end,b=o(h.line,m?0:null,h.ch).start;m&&(y.top<b.top-2?(i(y.right,y.top,null,y.bottom),i(c,b.top,b.left,b.bottom)):i(y.right,y.top,b.left-y.right,y.bottom)),y.bottom<b.top&&i(c,y.bottom,null,b.top)}n.appendChild(s)}function rn(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function on(e){e.state.focused||(e.display.input.focus(),ln(e))}function an(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,sn(e))},100)}function ln(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ge(e,"focus",e,t),e.state.focused=!0,l(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),io&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),rn(e))}function sn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ge(e,"blur",e,t),e.state.focused=!1,Co(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function un(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=void 0;if(!i.hidden){if(no&&ro<8){var a=i.node.offsetTop+i.node.offsetHeight;o=a-n,n=a}else{var l=i.node.getBoundingClientRect();o=l.bottom-l.top}var s=i.line.height-o;if(o<2&&(o=qt(t)),(s>.005||s<-.005)&&(T(i.line,o),cn(i.line),i.rest))for(var u=0;u<i.rest.length;u++)cn(i.rest[u])}}}function cn(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function fn(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-ht(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=N(t,r),a=N(t,i);if(n&&n.ensure){var l=n.ensure.from.line,s=n.ensure.to.line;l<o?(o=l,a=N(t,se(S(t,l))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=a&&(o=N(t,se(S(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function pn(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Zt(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var l=n[a].alignable;if(l)for(var s=0;s<l.length;s++)l[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function dn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=I(e.options,t.first+t.size-1),i=e.display;if(n.length!=i.lineNumChars){var o=i.measure.appendChild(r("div",[r("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=o.firstChild.offsetWidth,l=o.offsetWidth-a;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(a,i.lineGutter.offsetWidth-l)+1,i.lineNumWidth=i.lineNumInnerWidth+l,i.lineNumChars=i.lineNumInnerWidth?n.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",Zn(e),!0}return!1}function hn(e,t){var n=e.display,r=qt(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=bt(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+gt(n),s=t.top<r,u=t.bottom>l-r;if(t.top<i)a.scrollTop=s?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?l:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=yt(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>p;return d&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(d?0:10)-p),a}function gn(e,t){null!=t&&(yn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function vn(e){yn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function mn(e,t,n){null==t&&null==n||yn(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function yn(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,bn(e,Rt(e,t.from),Rt(e,t.to),t.margin))}function bn(e,t,n,r){var i=hn(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});mn(e,i.scrollLeft,i.scrollTop)}function xn(e,t){Math.abs(e.doc.scrollTop-t)<2||($i||Gn(e,{top:t}),wn(e,t,!0),$i&&Gn(e),Hn(e,100))}function wn(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Cn(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(!(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)||r)&&(e.doc.scrollLeft=t,pn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function kn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+gt(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+mt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function En(e,t){t||(t=kn(e));var n=e.display.barWidth,r=e.display.barHeight;Sn(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&un(e),Sn(e,kn(e)),n=e.display.barWidth,r=e.display.barHeight}function Sn(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function _n(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Co(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new sa[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Wo(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Cn(e,t):xn(e,t)},e),e.display.scrollbars.addClass&&l(e.display.wrapper,e.display.scrollbars.addClass)}function On(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ua},function(e){ra?ra.ops.push(e):e.ownsGroup=ra={ops:[e],delayedCallbacks:[]}}(e.curOp)}function Tn(e){!function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{ra=null,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Mn(t[n]);for(var r=0;r<t.length;r++)(i=t[r]).updatedDisplay=i.mustUpdate&&qn(i.cm,i.update);for(var i,o=0;o<t.length;o++)Nn(t[o]);for(var a=0;a<t.length;a++)jn(t[a]);for(var l=0;l<t.length;l++)In(t[l])}(e)}(n)}}(e.curOp)}function Mn(e){var t=e.cm,n=t.display;(function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=mt(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=mt(e)+"px",t.scrollbarsClipped=!0)})(t),e.updateMaxLine&&ce(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ca(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Nn(e){var t=e.cm,n=t.display;e.updatedDisplay&&un(t),e.barMeasure=kn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=wt(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+mt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-yt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function jn(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Cn(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==a();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&En(t,e.barMeasure),e.updatedDisplay&&Yn(t,e.barMeasure),e.selectionChanged&&rn(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&on(e.cm)}function In(e){var t=e.cm,n=t.display,i=t.doc;e.updatedDisplay&&Vn(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&wn(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Cn(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!ve(e,"scrollCursorIntoView")){var n=e.display,i=n.sizer.getBoundingClientRect(),o=null;if(t.top+i.top<0?o=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!co){var a=r("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-ht(e.display))+"px;\n height: "+(t.bottom-t.top+mt(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){null==r&&(r=0);var i;e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?P(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?P(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,l=Dt(e,t),s=n&&n!=t?Dt(e,n):l,u=hn(e,i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(xn(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(Cn(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(t,W(i,e.scrollToPos.from),W(i,e.scrollToPos.to),e.scrollToPos.margin));var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var l=0;l<o.length;++l)o[l].lines.length||ge(o[l],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&ge(a[s],"unhide");n.wrapper.offsetHeight&&(i.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ge(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Pn(e,t){if(e.curOp)return t();On(e);try{return t()}finally{Tn(e)}}function An(e,t){return function(){if(e.curOp)return t.apply(e,arguments);On(e);try{return t.apply(e,arguments)}finally{Tn(e)}}}function Ln(e){return function(){if(this.curOp)return e.apply(this,arguments);On(this);try{return e.apply(this,arguments)}finally{Tn(this)}}}function Dn(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);On(t);try{return e.apply(this,arguments)}finally{Tn(t)}}}function Rn(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Do&&ie(e.doc,t)<i.viewTo&&Bn(e);else if(n<=i.viewFrom)Do&&oe(e.doc,n+r)>i.viewFrom?Bn(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Bn(e);else if(t<=i.viewFrom){var o=Wn(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Bn(e)}else if(n>=i.viewTo){var a=Wn(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Bn(e)}else{var l=Wn(e,t,t,-1),s=Wn(e,n,n+r,1);l&&s?(i.view=i.view.slice(0,l.index).concat($e(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):Bn(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function Fn(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Xt(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==p(a,n)&&a.push(n)}}}function Bn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Wn(e,t,n,r){var i,o=Xt(e,t),a=e.display.view;if(!Do||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var l=e.display.viewFrom,s=0;s<o;s++)l+=a[s].size;if(l!=t){if(r>0){if(o==a.length-1)return null;i=l+a[o].size-t,o++}else i=l-t;t+=i,n+=i}for(;ie(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function zn(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Hn(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,u(Un,e))}function Un(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=De(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?je(t.mode,r.state):null,s=Ae(e,o,r,!0);l&&(r.state=l),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),p=0;!f&&p<a.length;++p)f=a[p]!=o.styles[p];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Re(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Hn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Pn(e,function(){for(var t=0;t<i.length;t++)Fn(e,i[t],"text")})}}function qn(e,n){var r=e.display,i=e.doc;if(n.editorIsHidden)return Bn(e),!1;if(!n.force&&n.visible.from>=r.viewFrom&&n.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==zn(e))return!1;dn(e)&&(Bn(e),n.dims=Gt(e));var l=i.first+i.size,s=Math.max(n.visible.from-e.options.viewportMargin,i.first),u=Math.min(l,n.visible.to+e.options.viewportMargin);r.viewFrom<s&&s-r.viewFrom<20&&(s=Math.max(i.first,r.viewFrom)),r.viewTo>u&&r.viewTo-u<20&&(u=Math.min(l,r.viewTo)),Do&&(s=ie(e.doc,s),u=oe(e.doc,u));var c=s!=r.viewFrom||u!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=$e(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=$e(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Xt(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat($e(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Xt(e,n)))),r.viewTo=n}(e,s,u),r.viewOffset=se(S(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var f=zn(e);if(!c&&0==f&&!n.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var d=function(e){if(e.hasFocus())return null;var t=a();if(!t||!o(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&o(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return f>4&&(r.lineDiv.style.display="none"),function(e,n,r){function i(t){var n=t.nextSibling;return io&&go&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var o=e.display,a=e.options.lineNumbers,l=o.lineDiv,s=l.firstChild,u=o.view,c=o.viewFrom,f=0;f<u.length;f++){var d=u[f];if(d.hidden);else if(d.node&&d.node.parentNode==l){for(;s!=d.node;)s=i(s);var h=a&&null!=n&&n<=c&&d.lineNumber;d.changes&&(p(d.changes,"gutter")>-1&&(h=!1),tt(e,d,c,r)),h&&(t(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(I(e.options,c)))),s=d.node.nextSibling}else{var g=st(e,d,c,r);l.insertBefore(g,s)}c+=d.size}for(;s;)s=i(s)}(e,r.updateLineNumbers,n.dims),f>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,function(e){if(e&&e.activeElt&&e.activeElt!=a()&&(e.activeElt.focus(),e.anchorNode&&o(document.body,e.anchorNode)&&o(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(d),t(r.cursorDiv),t(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,c&&(r.lastWrapHeight=n.wrapperHeight,r.lastWrapWidth=n.wrapperWidth,Hn(e,400)),r.updateLineNumbers=null,!0}function Vn(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=yt(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+gt(e.display)-bt(e),n.top)}),t.visible=fn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&qn(e,t);r=!1){un(e);var i=kn(e);$t(e),En(e,i),Yn(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Gn(e,t){var n=new ca(e,t);if(qn(e,n)){un(e),Vn(e,n);var r=kn(e);$t(e),En(e,r),Yn(e,r),n.finish()}}function Zn(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Yn(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+mt(e)+"px"}function Kn(e){var n=e.display.gutters,i=e.options.gutters;t(n);for(var o=0;o<i.length;++o){var a=i[o],l=n.appendChild(r("div",null,"CodeMirror-gutter "+a));"CodeMirror-linenumbers"==a&&(e.display.lineGutter=l,l.style.width=(e.display.lineNumWidth||1)+"px")}n.style.display=o?"":"none",Zn(e)}function Jn(e){var t=p(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Xn(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function $n(e){var t=Xn(e);return t.x*=pa,t.y*=pa,t}function Qn(e,t){var n=Xn(t),r=n.x,i=n.y,o=e.display,a=o.scroller,l=a.scrollWidth>a.clientWidth,s=a.scrollHeight>a.clientHeight;if(r&&l||i&&s){if(i&&go&&io)e:for(var u=t.target,c=o.view;u!=a;u=u.parentNode)for(var f=0;f<c.length;f++)if(c[f].node==u){e.display.currentWheelTarget=u;break e}if(!r||$i||lo||null==pa){if(i&&null!=pa){var p=i*pa,d=e.doc.scrollTop,h=d+o.wrapper.clientHeight;p<0?d=Math.max(0,d+p-50):h=Math.min(e.doc.height,h+p+50),Gn(e,{top:d,bottom:h})}fa<20&&(null==o.wheelStartX?(o.wheelStartX=a.scrollLeft,o.wheelStartY=a.scrollTop,o.wheelDX=r,o.wheelDY=i,setTimeout(function(){if(null!=o.wheelStartX){var e=a.scrollLeft-o.wheelStartX,t=a.scrollTop-o.wheelStartY,n=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(pa=(pa*fa+n)/(fa+1),++fa)}},200)):(o.wheelDX+=r,o.wheelDY+=i))}else i&&s&&xn(e,Math.max(0,a.scrollTop+i*pa)),Cn(e,Math.max(0,a.scrollLeft+r*pa)),(!i||i&&s)&&xe(t),o.wheelStartX=null}}function er(e,t){var n=e[t];e.sort(function(e,t){return A(e.from(),t.from())}),t=p(e,n);for(var r=1;r<e.length;r++){var i=e[r],o=e[r-1];if(A(o.to(),i.from())>=0){var a=F(o.from(),i.from()),l=R(o.to(),i.to()),s=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new ha(s?l:a,s?a:l))}}return new da(e,t)}function tr(e,t){return new da([new ha(e,t||e)],0)}function nr(e){return e.text?P(e.from.line+e.text.length-1,g(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function rr(e,t){if(A(e,t.from)<0)return e;if(A(e,t.to)<=0)return nr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=nr(t).ch-t.to.ch),P(n,r)}function ir(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new ha(rr(i.anchor,t),rr(i.head,t)))}return er(n,e.sel.primIndex)}function or(e,t,n){return e.line==t.line?P(n.line,e.ch-t.ch+n.ch):P(n.line+(e.line-t.line),e.ch)}function ar(e){e.doc.mode=Me(e.options,e.doc.modeOption),lr(e)}function lr(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Hn(e,100),e.state.modeGen++,e.curOp&&Rn(e)}function sr(e,t){return 0==t.from.ch&&0==t.to.ch&&""==g(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ur(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Z(e),Y(e,n);var i=r?r(e):1;i!=e.height&&T(e,i)}(e,n,i,r),Qe(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Qo(u[o],i(o),r));return n}var l=t.from,s=t.to,u=t.text,c=S(e,l.line),f=S(e,s.line),p=g(u),d=i(u.length-1),h=s.line-l.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(sr(e,t)){var v=a(0,u.length-1);o(f,f.text,d),h&&e.remove(l.line,h),v.length&&e.insert(l.line,v)}else if(c==f)if(1==u.length)o(c,c.text.slice(0,l.ch)+p+c.text.slice(s.ch),d);else{var m=a(1,u.length-1);m.push(new Qo(p+c.text.slice(s.ch),d,r)),o(c,c.text.slice(0,l.ch)+u[0],i(0)),e.insert(l.line+1,m)}else if(1==u.length)o(c,c.text.slice(0,l.ch)+u[0]+f.text.slice(s.ch),i(0)),e.remove(l.line+1,h);else{o(c,c.text.slice(0,l.ch)+u[0],i(0)),o(f,p+f.text.slice(s.ch),d);var y=a(1,u.length-1);h>1&&e.remove(l.line+1,h-1),e.insert(l.line+1,y)}Qe(e,"change",e,t)}function cr(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var l=r.linked[a];if(l.doc!=i){var s=o&&l.sharedHist;n&&!s||(t(l.doc,s),e(l.doc,r,s))}}}(e,null,!0)}function fr(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Kt(e),ar(e),pr(e),e.options.lineWrapping||ce(e),e.options.mode=t.modeOption,Rn(e)}function pr(e){("rtl"==e.doc.direction?l:Co)(e.display.lineDiv,"CodeMirror-rtl")}function dr(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function hr(e,t){var n={from:D(t.from),to:nr(t),text:_(e,t.from,t.to)};return br(e,n,t.from.line,t.to.line+1),cr(e,function(e){return br(e,n,t.from.line,t.to.line+1)},!0),n}function gr(e){for(;e.length&&g(e).ranges;)e.pop()}function vr(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,l=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(gr(e.done),g(e.done)):e.done.length&&!g(e.done).ranges?g(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),g(e.done)):void 0}(i,i.lastOp==r)))a=g(o.changes),0==A(t.from,t.to)&&0==A(t.from,a.to)?a.to=nr(t):o.changes.push(hr(e,t));else{var s=g(i.done);for(s&&s.ranges||yr(e.sel,i.done),o={changes:[hr(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ge(e,"historyAdded")}function mr(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,g(i.done),t))?i.done[i.done.length-1]=t:yr(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&gr(i.undone)}function yr(e,t){var n=g(t);n&&n.ranges&&n.equals(e)||t.push(e)}function br(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function xr(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function wr(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(xr(n[i]));return r}(e,t),r=V(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var l=0;l<a.length;++l){for(var s=a[l],u=0;u<o.length;++u)if(o[u].marker==s.marker)continue e;o.push(s)}else a&&(n[i]=a)}return n}function Cr(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?da.prototype.deepCopy.call(o):o);else{var a=o.changes,l=[];r.push({changes:l});for(var s=0;s<a.length;++s){var u=a[s],c=void 0;if(l.push({from:u.from,to:u.to,text:u.text}),t)for(var f in u)(c=f.match(/^spans_(\d+)$/))&&p(t,Number(c[1]))>-1&&(g(l)[f]=u[f],delete u[f])}}}return r}function kr(e,t,n,r){if(r){var i=e.anchor;if(n){var o=A(t,i)<0;o!=A(n,i)<0?(i=t,t=n):o!=A(t,n)<0&&(t=n)}return new ha(i,t)}return new ha(n||t,t)}function Er(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Mr(e,new da([kr(e.sel.primary(),t,n,i)],0),r)}function Sr(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=kr(e.sel.ranges[o],t[o],null,i);Mr(e,er(r,e.sel.primIndex),n)}function _r(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Mr(e,er(i,e.sel.primIndex),r)}function Or(e,t,n,r){Mr(e,tr(t,n),r)}function Tr(e,t,n){var r=e.history.done,i=g(r);i&&i.ranges?(r[r.length-1]=t,Nr(e,t,n)):Mr(e,t,n)}function Mr(e,t,n){Nr(e,t,n),mr(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Nr(e,t,n){(ye(e,"beforeSelectionChange")||e.cm&&ye(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new ha(W(e,t[n].anchor),W(e,t[n].head))},origin:n&&n.origin};return ge(e,"beforeSelectionChange",e,r),e.cm&&ge(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?er(r.ranges,r.ranges.length-1):t}(e,t,n)),jr(e,Pr(e,t,n&&n.bias||(A(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),n&&!1===n.scroll||!e.cm||vn(e.cm)}function jr(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,me(e.cm)),Qe(e,"cursorActivity",e))}function Ir(e){jr(e,Pr(e,e.sel,null,!1))}function Pr(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=Lr(e,a.anchor,l&&l.anchor,n,r),u=Lr(e,a.head,l&&l.head,n,r);(i||s!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new ha(s,u))}return i?er(i,t.primIndex):t}function Ar(e,t,n,r,i){var o=S(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var l=o.markedSpans[a],s=l.marker;if((null==l.from||(s.inclusiveLeft?l.from<=t.ch:l.from<t.ch))&&(null==l.to||(s.inclusiveRight?l.to>=t.ch:l.to>t.ch))){if(i&&(ge(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var u=s.find(r<0?1:-1),c=void 0;if((r<0?s.inclusiveRight:s.inclusiveLeft)&&(u=Dr(e,u,-r,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(c=A(u,n))&&(r<0?c<0:c>0))return Ar(e,u,t,r,i)}var f=s.find(r<0?-1:1);return(r<0?s.inclusiveLeft:s.inclusiveRight)&&(f=Dr(e,f,r,f.line==t.line?o:null)),f?Ar(e,f,t,r,i):null}}return t}function Lr(e,t,n,r,i){var o=r||1,a=Ar(e,t,n,o,i)||!i&&Ar(e,t,n,o,!0)||Ar(e,t,n,-o,i)||!i&&Ar(e,t,n,-o,!0);return a||(e.cantEdit=!0,P(e.first,0))}function Dr(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?W(e,P(t.line-1)):null:n>0&&t.ch==(r||S(e,t.line)).text.length?t.line<e.first+e.size-1?P(t.line+1,0):null:new P(t.line,t.ch+n)}function Rr(e){e.setSelection(P(e.firstLine(),0),P(e.lastLine()),Mo)}function Fr(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=W(e,t)),n&&(r.to=W(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ge(e,"beforeChange",e,r),e.cm&&ge(e.cm,"beforeChange",e.cm,r),r.canceled?null:{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Br(e,t,n){if(e.cm){if(!e.cm.curOp)return An(e.cm,Br)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ye(e,"beforeChange")||e.cm&&ye(e.cm,"beforeChange"))||(t=Fr(e,t,!0))){var r=Lo&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=p(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],l=a.find(0),s=0;s<i.length;++s){var u=i[s];if(!(A(u.to,l.from)<0||A(u.from,l.to)>0)){var c=[s,1],f=A(u.from,l.from),d=A(u.to,l.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:l.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:l.to,to:u.to}),i.splice.apply(i,c),s+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Wr(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Wr(e,t)}}function Wr(e,t){if(1!=t.text.length||""!=t.text[0]||0!=A(t.from,t.to)){var n=ir(e,t);vr(e,t,n,e.cm?e.cm.curOp.id:NaN),Ur(e,t,n,V(e,t));var r=[];cr(e,function(e,n){n||-1!=p(r,e.history)||(Zr(e.history,t),r.push(e.history)),Ur(e,t,null,V(e,t))})}}function zr(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,l="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,u=0;u<l.length&&(i=l[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=l.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=l.pop()).ranges){if(r)return void l.push(i);break}if(yr(i,s),n&&!i.equals(e.sel))return void Mr(e,i,{clearRedo:!1});a=i}var c=[];yr(a,s),s.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=ye(e,"beforeChange")||e.cm&&ye(e.cm,"beforeChange"),d=i.changes.length-1;d>=0;--d){var h=function(n){var r=i.changes[n];if(r.origin=t,f&&!Fr(e,r,!1))return l.length=0,{};c.push(hr(e,r));var o=n?ir(e,r):g(l);Ur(e,r,o,wr(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:nr(r)});var a=[];cr(e,function(e,t){t||-1!=p(a,e.history)||(Zr(e.history,r),a.push(e.history)),Ur(e,r,null,wr(e,r))})}(d);if(h)return h.v}}}}function Hr(e,t){if(0!=t&&(e.first+=t,e.sel=new da(v(e.sel.ranges,function(e){return new ha(P(e.anchor.line+t,e.anchor.ch),P(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Rn(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Fn(e.cm,r,"gutter")}}function Ur(e,t,n,r){if(e.cm&&!e.cm.curOp)return An(e.cm,Ur)(e,t,n,r);if(t.to.line<e.first)Hr(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);Hr(e,i),t={from:P(e.first,0),to:P(t.to.line+i,t.to.ch),text:[g(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:P(o,S(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=_(e,t.from,t.to),n||(n=ir(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=M(re(S(r,o.line))),r.iter(s,a.line+1,function(e){if(e==i.maxLine)return l=!0,!0})),r.sel.contains(t.from,t.to)>-1&&me(e),ur(r,t,n,Yt(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(e){var t=ue(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=S(e,r).stateAfter;if(i&&(!(i instanceof Jo)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),Hn(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Rn(e):o.line!=a.line||1!=t.text.length||sr(e.doc,t)?Rn(e,o.line,a.line+1,u):Fn(e,o.line,"text");var c=ye(e,"changes"),f=ye(e,"change");if(f||c){var p={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&Qe(e,"change",e,p),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}(e.cm,t,r):ur(e,t,r),Nr(e,n,Mo)}}function qr(e,t,n,r,i){if(r||(r=n),A(r,n)<0){var o;n=(o=[r,n])[0],r=o[1]}"string"==typeof t&&(t=e.splitLines(t)),Br(e,{from:n,to:r,text:t,origin:i})}function Vr(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function Gr(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var l=0;l<o.ranges.length;l++)Vr(o.ranges[l].anchor,t,n,r),Vr(o.ranges[l].head,t,n,r)}else{for(var s=0;s<o.changes.length;++s){var u=o.changes[s];if(n<u.from.line)u.from=P(u.from.line+r,u.from.ch),u.to=P(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function Zr(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;Gr(e.done,n,r,i),Gr(e.undone,n,r,i)}function Yr(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=S(e,B(e,t)):i=M(t),null==i?null:(r(o,i)&&e.cm&&Fn(e.cm,i,n),o)}function Kr(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function Jr(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}function Xr(e,t,n){se(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&gn(e,n)}function $r(e,t,n,r,o){if(r&&r.shared)return function(e,t,n,r,i){(r=c(r)).shared=!1;var o=[$r(e,t,n,r,i)],a=o[0],l=r.widgetNode;return cr(e,function(e){l&&(r.widgetNode=l.cloneNode(!0)),o.push($r(e,W(e,t),W(e,n),r,i));for(var s=0;s<e.linked.length;++s)if(e.linked[s].isParent)return;a=g(o)}),new ya(o,a)}(e,t,n,r,o);if(e.cm&&!e.cm.curOp)return An(e.cm,$r)(e,t,n,r,o);var a=new ma(e,o),l=A(t,n);if(r&&c(r,a,!1),l>0||0==l&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=i("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(ne(e,t.line,t,n,a)||t.line!=n.line&&ne(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Do=!0}a.addToHistory&&vr(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,u=t.line,f=e.cm;if(e.iter(u,n.line+1,function(e){f&&a.collapsed&&!f.options.lineWrapping&&re(e)==f.display.maxLine&&(s=!0),a.collapsed&&u!=t.line&&T(e,0),!function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new H(a,u==t.line?t.ch:null,u==n.line?n.ch:null)),++u}),a.collapsed&&e.iter(t.line,n.line+1,function(t){ae(e,t)&&T(t,0)}),a.clearOnEnter&&Wo(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(Lo=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++va,a.atomic=!0),f){if(s&&(f.curOp.updateMaxLine=!0),a.collapsed)Rn(f,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var p=t.line;p<=n.line;p++)Fn(f,p,"text");a.atomic&&Ir(f.doc),Qe(f,"markerAdded",f,a)}return a}function Qr(e){return e.findMarks(P(e.first,0),e.clipPos(P(e.lastLine())),function(e){return e.parent})}function ei(e){for(var t=0;t<e.length;t++)!function(t){var n=e[t],r=[n.primary.doc];cr(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==p(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}}(t)}function ti(e){var t=this;if(ni(t),!ve(t,e)&&!dt(t.display,e)){xe(e),no&&(wa=+new Date);var n=Jt(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,l=0;l<i;++l)!function(e,r){if(!t.options.allowDropFileTypes||-1!=p(t.options.allowDropFileTypes,e.type)){var l=new FileReader;l.onload=An(t,function(){var e=l.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++a==i){var s={from:n=W(t.doc,n),to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};Br(t.doc,s),Tr(t.doc,tr(n,nr(s)))}}),l.readAsText(e)}}(r[l],l);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var s=e.dataTransfer.getData("Text");if(s){var u;if(t.state.draggingText&&!t.state.draggingText.copy&&(u=t.listSelections()),Nr(t.doc,tr(n,n)),u)for(var c=0;c<u.length;++c)qr(t.doc,"",u[c].anchor,u[c].head,"drag");t.replaceSelection(s,"around","paste"),t.display.input.focus()}}catch(e){}}}}function ni(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function ri(e){if(document.getElementsByClassName)for(var t=document.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&e(r)}}function ii(){if(!Ca){var e;Wo(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,ri(oi)},100))}),Wo(window,"blur",function(){return ri(sn)}),Ca=!0}}function oi(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}function ai(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var l=o[a];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else{if(!/^s(hift)?$/i.test(l))throw new Error("Unrecognized modifier name: "+l);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function li(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=v(n.split(" "),ai),o=0;o<i.length;o++){var a=void 0,l=void 0;o==i.length-1?(l=i.join(" "),a=r):(l=i.slice(0,o+1).join(" "),a="...");var s=t[l];if(s){if(s!=a)throw new Error("Inconsistent bindings for "+l)}else t[l]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function si(e,t,n,r){var i=(t=pi(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return si(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=si(e,t.fallthrough[o],n,r);if(a)return a}}}function ui(e){var t="string"==typeof e?e:ka[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function ci(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(xo?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(xo?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function fi(e,t){if(lo&&34==e.keyCode&&e.char)return!1;var n=ka[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),ci(n,e,t))}function pi(e){return"string"==typeof e?Oa[e]:e}function di(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&A(o.from,g(r).to)<=0;){var a=r.pop();if(A(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Pn(e,function(){for(var t=r.length-1;t>=0;t--)qr(e.doc,"",r[t].from,r[t].to,"+delete");vn(e)})}function hi(e,t,n){var r=k(e.text,t+n,n);return r<0||r>e.text.length?null:r}function gi(e,t,n){var r=hi(e,t.ch,n);return null==r?null:new P(t.line,r,n<0?"after":"before")}function vi(e,t,n,r,i){if(e){var o=pe(n,t.doc.direction);if(o){var a,l=i<0?g(o):o[0],s=i<0==(1==l.level)?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var u=kt(t,n);a=i<0?n.text.length-1:0;var c=Et(t,u,a).top;a=E(function(e){return Et(t,u,e).top==c},i<0==(1==l.level)?l.from:l.to-1,a),"before"==s&&(a=hi(n,a,1))}else a=i<0?l.to:l.from;return new P(r,a,s)}}return new P(r,i<0?n.text.length:0,i<0?"before":"after")}function mi(e,t){var n=S(e.doc,t),r=re(n);return r!=n&&(t=M(r)),vi(!0,e,r,t,1)}function yi(e,t){var n=mi(e,t.line),r=S(e.doc,n.line),i=pe(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return P(n.line,a?0:o,n.sticky)}return n}function bi(e,t,n){if("string"==typeof t&&!(t=Na[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=To}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function xi(e,t,n,r){var i=e.state.keySeq;if(i){if(ui(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ja.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),wi(e,i+" "+t,n,r))return!0}return wi(e,t,n,r)}function wi(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=si(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&si(t,e.options.extraKeys,n,e)||si(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&Qe(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(xe(n),rn(e)),!!i}function Ci(e,t){var n=fi(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?xi(e,"Shift-"+n,t,function(t){return bi(e,t,!0)})||xi(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return bi(e,t)}):xi(e,n,t,function(t){return bi(e,t)}))}function ki(e){var t=this;if(t.curOp.focus=a(),!ve(t,e)){no&&ro<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=Ci(t,e);lo&&(Ia=r?n:null,!r&&88==n&&!qo&&(go?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){function t(e){18!=e.keyCode&&e.altKey||(Co(n,"CodeMirror-crosshair"),he(document,"keyup",t),he(document,"mouseover",t))}var n=e.display.lineDiv;l(n,"CodeMirror-crosshair"),Wo(document,"keyup",t),Wo(document,"mouseover",t)}(t)}}function Ei(e){16==e.keyCode&&(this.doc.sel.shift=!1),ve(this,e)}function Si(e){var t=this;if(!(dt(t.display,e)||ve(t,e)||e.ctrlKey&&!e.altKey||go&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(lo&&n==Ia)return Ia=null,void xe(e);if(!lo||e.which&&!(e.which<10)||!Ci(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return xi(e,"'"+n+"'",t,function(t){return bi(e,t,!0)})}(t,e,i)||t.display.input.onKeyPress(e))}}}function _i(e){var t=this,n=t.display;if(!(ve(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,dt(n,e))io||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!Mi(t,e)){var r=Jt(t,e),i=Se(e),o=r?function(e,t){var n=+new Date;return Ma&&Ma.compare(n,e,t)?(Ta=Ma=null,"triple"):Ta&&Ta.compare(n,e,t)?(Ma=new Pa(n,e,t),Ta=null,"double"):(Ta=new Pa(n,e,t),Ma=null,"single")}(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),xi(e,ci(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,function(t){if("string"==typeof t&&(t=Na[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=To}finally{e.state.suppressEdits=!1}return r})}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){no?setTimeout(u(on,e),0):e.curOp.focus=a();var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=vo?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=go?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(go?n.altKey:n.ctrlKey)),i}(e,n,r),l=e.doc.sel;e.options.dragDrop&&zo&&!e.isReadOnly()&&"single"==n&&(i=l.contains(t))>-1&&(A((i=l.ranges[i]).from(),t)<0||t.xRel>0)&&(A(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,a=An(e,function(t){io&&(i.scroller.draggable=!1),e.state.draggingText=!1,he(i.wrapper.ownerDocument,"mouseup",a),he(i.wrapper.ownerDocument,"mousemove",l),he(i.scroller,"dragstart",s),he(i.scroller,"drop",a),o||(xe(t),r.addNew||Er(e.doc,n,null,null,r.extend),io||no&&9==ro?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),l=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},s=function(){return o=!0};io&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),Wo(i.wrapper.ownerDocument,"mouseup",a),Wo(i.wrapper.ownerDocument,"mousemove",l),Wo(i.scroller,"dragstart",s),Wo(i.scroller,"drop",a),an(e),setTimeout(function(){return i.input.focus()},20)}(e,r,t,o):function(e,t,n,r){function i(t){if(0!=A(v,t))if(v=t,"rectangle"==r.unit){for(var i=[],o=e.options.tabSize,a=f(S(s,n.line).text,n.ch,o),l=f(S(s,t.line).text,t.ch,o),h=Math.min(a,l),g=Math.max(a,l),m=Math.min(n.line,t.line),y=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=y;m++){var b=S(s,m).text,x=d(b,h,o);h==g?i.push(new ha(P(m,x),P(m,x))):b.length>x&&i.push(new ha(P(m,x),P(m,d(b,g,o))))}i.length||i.push(new ha(n,n)),Mr(s,er(p.ranges.slice(0,c).concat(i),c),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var w,C=u,k=Oi(e,t,r.unit),E=C.anchor;A(k.anchor,E)>0?(w=k.head,E=F(C.from(),k.anchor)):(w=k.anchor,E=R(C.to(),k.head));var _=p.ranges.slice(0);_[c]=function(e,t){var n=t.anchor,r=t.head,i=S(e.doc,n.line);if(0==A(n,r)&&n.sticky==r.sticky)return t;var o=pe(i);if(!o)return t;var a=fe(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var s,u=a+(l.from==n.ch==(1!=l.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=fe(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==l.level?-1:1);s=c==u-1||c==u?f<0:f>0}var p=o[u+(s?-1:0)],d=s==(1==p.level),h=d?p.from:p.to,g=d?"after":"before";return n.ch==h&&n.sticky==g?t:new ha(new P(n.line,h,g),r)}(e,new ha(W(s,E),w)),Mr(s,er(_,c),No)}}function o(t){e.state.selectingText=!1,y=1/0,xe(t),l.input.focus(),he(l.wrapper.ownerDocument,"mousemove",b),he(l.wrapper.ownerDocument,"mouseup",x),s.history.lastSelOrigin=null}var l=e.display,s=e.doc;xe(t);var u,c,p=s.sel,h=p.ranges;if(r.addNew&&!r.extend?u=(c=s.sel.contains(n))>-1?h[c]:new ha(n,n):(u=s.sel.primary(),c=s.sel.primIndex),"rectangle"==r.unit)r.addNew||(u=new ha(n,n)),n=Jt(e,t,!0,!0),c=-1;else{var g=Oi(e,n,r.unit);u=r.extend?kr(u,g.anchor,g.head,r.extend):g}r.addNew?-1==c?(c=h.length,Mr(s,er(h.concat([u]),c),{scroll:!1,origin:"*mouse"})):h.length>1&&h[c].empty()&&"char"==r.unit&&!r.extend?(Mr(s,er(h.slice(0,c).concat(h.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),p=s.sel):_r(s,c,u,No):(c=0,Mr(s,new da([u],0),No),p=s.sel);var v=n,m=l.wrapper.getBoundingClientRect(),y=0,b=An(e,function(t){0!==t.buttons&&Se(t)?function t(n){var o=++y,u=Jt(e,n,!0,"rectangle"==r.unit);if(u)if(0!=A(u,v)){e.curOp.focus=a(),i(u);var c=fn(l,s);(u.line>=c.to||u.line<c.from)&&setTimeout(An(e,function(){y==o&&t(n)}),150)}else{var f=n.clientY<m.top?-20:n.clientY>m.bottom?20:0;f&&setTimeout(An(e,function(){y==o&&(l.scroller.scrollTop+=f,t(n))}),50)}}(t):o(t)}),x=An(e,o);e.state.selectingText=x,Wo(l.wrapper.ownerDocument,"mousemove",b),Wo(l.wrapper.ownerDocument,"mouseup",x)}(e,r,t,o)}(t,r,o,e):Ee(e)==n.scroller&&xe(e):2==i?(r&&Er(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(wo?Ni(t,e):an(t)))}}function Oi(e,t,n){if("char"==n)return new ha(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ha(P(t.line,0),W(e.doc,P(t.line+1,0)));var r=n(e,t);return new ha(r.from,r.to)}function Ti(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&xe(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!ye(e,n))return Ce(t);o-=l.top-a.viewOffset;for(var s=0;s<e.options.gutters.length;++s){var u=a.gutters.childNodes[s];if(u&&u.getBoundingClientRect().right>=i)return ge(e,n,e,N(e.doc,o),e.options.gutters[s],t),Ce(t)}}function Mi(e,t){return Ti(e,t,"gutterClick",!0)}function Ni(e,t){dt(e.display,t)||function(e,t){return!!ye(e,"gutterContextMenu")&&Ti(e,t,"gutterContextMenu",!1)}(e,t)||ve(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function ji(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Mt(e)}function Ii(e){Kn(e),Rn(e),pn(e)}function Pi(e,t,n){if(!t!=!(n&&n!=Aa)){var r=e.display.dragFunctions,i=t?Wo:he;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ai(e){e.options.lineWrapping?(l(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Co(e.display.wrapper,"CodeMirror-wrap"),ce(e)),Kt(e),Rn(e),Mt(e),setTimeout(function(){return En(e)},100)}function Li(e,t){var o=this;if(!(this instanceof Li))return new Li(e,t);this.options=t=t?c(t):{},c(La,t,!1),Jn(t);var a=t.value;"string"==typeof a&&(a=new xa(a,t.mode,null,t.lineSeparator,t.direction)),this.doc=a;var l=new Li.inputStyles[t.inputStyle](this),s=this.display=new function(e,t,n){var o=this;this.input=n,o.scrollbarFiller=r("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=r("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=i("div",null,"CodeMirror-code"),o.selectionDiv=r("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=r("div",null,"CodeMirror-cursors"),o.measure=r("div",null,"CodeMirror-measure"),o.lineMeasure=r("div",null,"CodeMirror-measure"),o.lineSpace=i("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var a=i("div",[o.lineSpace],"CodeMirror-lines");o.mover=r("div",[a],null,"position: relative"),o.sizer=r("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=r("div",null,null,"position: absolute; height: "+Oo+"px; width: 1px;"),o.gutters=r("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=r("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=r("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),no&&ro<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),io||$i&&ho||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,n.init(o)}(e,a,l);s.wrapper.CodeMirror=this,Kn(this),ji(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_n(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Eo,keySeq:null,specialChars:null},t.autofocus&&!ho&&s.input.focus(),no&&ro<11&&setTimeout(function(){return o.display.input.reset(!0)},20),function(e){function t(){o.activeTouch&&(a=setTimeout(function(){return o.activeTouch=null},1e3),(l=o.activeTouch).end=+new Date)}function i(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}var o=e.display;Wo(o.scroller,"mousedown",An(e,_i)),no&&ro<11?Wo(o.scroller,"dblclick",An(e,function(t){if(!ve(e,t)){var n=Jt(e,t);if(n&&!Mi(e,t)&&!dt(e.display,t)){xe(t);var r=e.findWordAt(n);Er(e.doc,r.anchor,r.head)}}})):Wo(o.scroller,"dblclick",function(t){return ve(e,t)||xe(t)}),wo||Wo(o.scroller,"contextmenu",function(t){return Ni(e,t)});var a,l={end:0};Wo(o.scroller,"touchstart",function(t){if(!ve(e,t)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(t)&&!Mi(e,t)){o.input.ensurePolled(),clearTimeout(a);var n=+new Date;o.activeTouch={start:n,moved:!1,prev:n-l.end<=300?l:null},1==t.touches.length&&(o.activeTouch.left=t.touches[0].pageX,o.activeTouch.top=t.touches[0].pageY)}}),Wo(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),Wo(o.scroller,"touchend",function(n){var r=o.activeTouch;if(r&&!dt(o,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,l=e.coordsChar(o.activeTouch,"page");a=!r.prev||i(r,r.prev)?new ha(l,l):!r.prev.prev||i(r,r.prev.prev)?e.findWordAt(l):new ha(P(l.line,0),W(e.doc,P(l.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),xe(n)}t()}),Wo(o.scroller,"touchcancel",t),Wo(o.scroller,"scroll",function(){o.scroller.clientHeight&&(xn(e,o.scroller.scrollTop),Cn(e,o.scroller.scrollLeft,!0),ge(e,"scroll",e))}),Wo(o.scroller,"mousewheel",function(t){return Qn(e,t)}),Wo(o.scroller,"DOMMouseScroll",function(t){return Qn(e,t)}),Wo(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(t){ve(e,t)||ke(t)},over:function(t){ve(e,t)||(!function(e,t){var i=Jt(e,t);if(i){var o=document.createDocumentFragment();en(e,i,o),e.display.dragCursor||(e.display.dragCursor=r("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),n(e.display.dragCursor,o)}}(e,t),ke(t))},start:function(t){return function(e,t){if(no&&(!e.state.draggingText||+new Date-wa<100))ke(t);else if(!ve(e,t)&&!dt(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!so)){var n=r("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",lo&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),lo&&n.parentNode.removeChild(n)}}(e,t)},drop:An(e,ti),leave:function(t){ve(e,t)||ni(e)}};var s=o.input.getField();Wo(s,"keyup",function(t){return Ei.call(e,t)}),Wo(s,"keydown",An(e,ki)),Wo(s,"keypress",An(e,Si)),Wo(s,"focus",function(t){return ln(e,t)}),Wo(s,"blur",function(t){return sn(e,t)})}(this),ii(),On(this),this.curOp.forceUpdate=!0,fr(this,a),t.autofocus&&!ho||this.hasFocus()?setTimeout(u(ln,this),20):sn(this);for(var f in Da)Da.hasOwnProperty(f)&&Da[f](o,t[f],Aa);dn(this),t.finishInit&&t.finishInit(this);for(var p=0;p<Ra.length;++p)Ra[p](o);Tn(this),io&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(s.lineDiv).textRendering&&(s.lineDiv.style.textRendering="auto")}function Di(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=De(e,t).state:n="prev");var a=e.options.tabSize,l=S(o,t),s=f(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var u,c=l.text.match(/^\s*/)[0];if(r||/\S/.test(l.text)){if("smart"==n&&((u=o.mode.indent(i,l.text.slice(c.length),l.text))==To||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?f(S(o,t-1).text,null,a):0:"add"==n?u=s+e.options.indentUnit:"subtract"==n?u=s-e.options.indentUnit:"number"==typeof n&&(u=s+n),u=Math.max(0,u);var p="",d=0;if(e.options.indentWithTabs)for(var g=Math.floor(u/a);g;--g)d+=a,p+="\t";if(d<u&&(p+=h(u-d)),p!=c)return qr(o,p,P(t,0),P(t,c.length),"+input"),l.stateAfter=null,!0;for(var v=0;v<o.sel.ranges.length;v++){var m=o.sel.ranges[v];if(m.head.line==t&&m.head.ch<c.length){var y=P(t,c.length);_r(o,v,new ha(y,y));break}}}function Ri(e){Fa=e}function Fi(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a,l=e.state.pasteIncoming||"paste"==i,s=Ho(t),u=null;if(l&&r.ranges.length>1)if(Fa&&Fa.text.join("\n")==t){if(r.ranges.length%Fa.text.length==0){u=[];for(var c=0;c<Fa.text.length;c++)u.push(o.splitLines(Fa.text[c]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=v(s,function(e){return[e]}));for(var f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],d=p.from(),h=p.to();p.empty()&&(n&&n>0?d=P(d.line,d.ch-n):e.state.overwrite&&!l?h=P(h.line,Math.min(S(o,h.line).text.length,h.ch+g(s).length)):Fa&&Fa.lineWise&&Fa.text.join("\n")==t&&(d=h=P(d.line,0))),a=e.curOp.updateInput;var m={from:d,to:h,text:u?u[f%u.length]:s,origin:i||(l?"paste":e.state.cutIncoming?"cut":"+input")};Br(e.doc,m),Qe(e,"inputRead",e,m)}t&&!l&&Wi(e,t),vn(e),e.curOp.updateInput=a,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Bi(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Pn(t,function(){return Fi(t,n,0,null,"paste")}),!0}function Wi(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l<o.electricChars.length;l++)if(t.indexOf(o.electricChars.charAt(l))>-1){a=Di(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(S(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Di(e,i.head.line,"smart"));a&&Qe(e,"electricInput",e,i.head.line)}}}function zi(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:P(i,0),head:P(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Hi(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function Ui(){var e=r("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=r("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return io?e.style.width="1000px":e.setAttribute("wrap","off"),fo&&(e.style.border="1px solid black"),Hi(e),t}function qi(e,t,n,r,i){function o(r){var o;if(null==(o=i?function(e,t,n,r){var i=pe(t,e.doc.direction);if(!i)return gi(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=fe(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return gi(t,n,r);var l,s=function(e,n){return hi(t,e instanceof P?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(l=l||kt(e,t),zt(e,t,l,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?s(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,p=s(n,f?1:-1);if(null!=p&&(f?p<=a.to&&p<=c.end:p>=a.from&&p>=c.begin)){var d=f?"before":"after";return new P(n.line,p,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new P(n.line,s(e,1),"before"):new P(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],l=t>0==(1!=a.level),u=l?r.begin:s(r.end,-1);if(a.from<=u&&u<a.to)return o(u,l);if(u=l?a.from:s(a.to,-1),r.begin<=u&&u<r.end)return o(u,l)}},g=h(o+r,r,c);if(g)return g;var v=r>0?c.end:s(c.begin,-1);return null==v||r>0&&v==t.text.length||!(g=h(r>0?0:i.length-1,r,u(v)))?null:g}(e.cm,s,t,n):gi(s,t,n))){if(r||!function(){var r=t.line+n;return!(r<e.first||r>=e.first+e.size)&&(t=new P(r,t.ch,t.sticky),s=S(e,r))}())return!1;t=vi(i,e.cm,s,t.line,n)}else t=o;return!0}var a=t,l=n,s=S(e,t.line);if("char"==r)o();else if("column"==r)o(!0);else if("word"==r||"group"==r)for(var u=null,c="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||o(!p);p=!1){var d=s.text.charAt(t.ch)||"\n",h=x(d,f)?"w":c&&"\n"==d?"n":!c||/\s/.test(d)?null:"p";if(!c||p||h||(h="s"),u&&u!=h){n<0&&(n=1,o(),t.sticky="after");break}if(h&&(u=h),n>0&&!o(!p))break}var g=Lr(e,t,a,l,!0);return L(a,g)&&(g.hitSide=!0),g}function Vi(e,t,n,r){var i,o,a=e.doc,l=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*qt(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Bt(e,l,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}function Gi(e,t){var n=Ct(e,t.line);if(!n||n.hidden)return null;var r=S(e.doc,t.line),i=xt(n,r,t.line),o=pe(r,e.doc.direction),a="left";o&&(a=fe(o,t.ch)%2?"right":"left");var l=St(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function Zi(e,t){return t&&(e.bad=!0),e}function Yi(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Zi(e.clipPos(P(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Ki(o,t,n)}}function Ki(e,t,n){function r(t,n,r){for(var i=-1;i<(f?f.length:0);i++)for(var o=i<0?c.map:f[i],a=0;a<o.length;a+=3){var l=o[a+2];if(l==t||l==n){var s=M(i<0?e.line:e.rest[i]),u=o[a]+r;return(r<0||l!=t)&&(u=o[a+(r?1:0)]),P(s,u)}}}var i=e.text.firstChild,a=!1;if(!t||!o(i,t))return Zi(P(M(e.line),0),!0);if(t==i&&(a=!0,t=i.childNodes[n],n=0,!t)){var l=e.rest?g(e.rest):e.line;return Zi(P(M(l),l.text.length),a)}var s=3==t.nodeType?t:null,u=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,n&&(n=s.nodeValue.length));u.parentNode!=i;)u=u.parentNode;var c=e.measure,f=c.maps,p=r(s,u,n);if(p)return Zi(p,a);for(var d=u.nextSibling,h=s?s.nodeValue.length-n:0;d;d=d.nextSibling){if(p=r(d,d.firstChild,0))return Zi(P(p.line,p.ch-h),a);h+=d.textContent.length}for(var v=u.previousSibling,m=n;v;v=v.previousSibling){if(p=r(v,v.firstChild,-1))return Zi(P(p.line,p.ch+m),a);m+=v.textContent.length}}var Ji=navigator.userAgent,Xi=navigator.platform,$i=/gecko\/\d/i.test(Ji),Qi=/MSIE \d/.test(Ji),eo=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ji),to=/Edge\/(\d+)/.exec(Ji),no=Qi||eo||to,ro=no&&(Qi?document.documentMode||6:+(to||eo)[1]),io=!to&&/WebKit\//.test(Ji),oo=io&&/Qt\/\d+\.\d+/.test(Ji),ao=!to&&/Chrome\//.test(Ji),lo=/Opera\//.test(Ji),so=/Apple Computer/.test(navigator.vendor),uo=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ji),co=/PhantomJS/.test(Ji),fo=!to&&/AppleWebKit/.test(Ji)&&/Mobile\/\w+/.test(Ji),po=/Android/.test(Ji),ho=fo||po||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ji),go=fo||/Mac/.test(Xi),vo=/\bCrOS\b/.test(Ji),mo=/win/i.test(Xi),yo=lo&&Ji.match(/Version\/(\d*\.\d*)/);yo&&(yo=Number(yo[1])),yo&&yo>=15&&(lo=!1,io=!0);var bo,xo=go&&(oo||lo&&(null==yo||yo<12.11)),wo=$i||no&&ro>=9,Co=function(t,n){var r=t.className,i=e(n).exec(r);if(i){var o=r.slice(i.index+i[0].length);t.className=r.slice(0,i.index)+(o?i[1]+o:"")}};bo=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var ko=function(e){e.select()};fo?ko=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:no&&(ko=function(e){try{e.select()}catch(e){}});var Eo=function(){this.id=null};Eo.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var So,_o,Oo=30,To={toString:function(){return"CodeMirror.Pass"}},Mo={scroll:!1},No={origin:"*mouse"},jo={origin:"+move"},Io=[""],Po=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ao=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Lo=!1,Do=!1,Ro=null,Fo=function(){function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?r.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,a=/[LRr]/,l=/[Lb1n]/,s=/[1n]/;return function(n,r){var u="ltr"==r?"L":"R";if(0==n.length||"ltr"==r&&!i.test(n))return!1;for(var c=n.length,f=[],p=0;p<c;++p)f.push(e(n.charCodeAt(p)));for(var d=0,h=u;d<c;++d){var v=f[d];"m"==v?f[d]=h:h=v}for(var m=0,y=u;m<c;++m){var b=f[m];"1"==b&&"r"==y?f[m]="n":a.test(b)&&(y=b,"r"==b&&(f[m]="R"))}for(var x=1,w=f[0];x<c-1;++x){var C=f[x];"+"==C&&"1"==w&&"1"==f[x+1]?f[x]="1":","!=C||w!=f[x+1]||"1"!=w&&"n"!=w||(f[x]=w),w=C}for(var k=0;k<c;++k){var E=f[k];if(","==E)f[k]="N";else if("%"==E){var S=void 0;for(S=k+1;S<c&&"%"==f[S];++S);for(var _=k&&"!"==f[k-1]||S<c&&"1"==f[S]?"1":"N",O=k;O<S;++O)f[O]=_;k=S-1}}for(var T=0,M=u;T<c;++T){var N=f[T];"L"==M&&"1"==N?f[T]="L":a.test(N)&&(M=N)}for(var j=0;j<c;++j)if(o.test(f[j])){var I=void 0;for(I=j+1;I<c&&o.test(f[I]);++I);for(var P="L"==(j?f[j-1]:u),A=P==("L"==(I<c?f[I]:u))?P?"L":"R":u,L=j;L<I;++L)f[L]=A;j=I-1}for(var D,R=[],F=0;F<c;)if(l.test(f[F])){var B=F;for(++F;F<c&&l.test(f[F]);++F);R.push(new t(0,B,F))}else{var W=F,z=R.length;for(++F;F<c&&"L"!=f[F];++F);for(var H=W;H<F;)if(s.test(f[H])){W<H&&R.splice(z,0,new t(1,W,H));var U=H;for(++H;H<F&&s.test(f[H]);++H);R.splice(z,0,new t(2,U,H)),W=H}else++H;W<F&&R.splice(z,0,new t(1,W,F))}return"ltr"==r&&(1==R[0].level&&(D=n.match(/^\s+/))&&(R[0].from=D[0].length,R.unshift(new t(0,0,D[0].length))),1==g(R).level&&(D=n.match(/\s+$/))&&(g(R).to-=D[0].length,R.push(new t(0,c-D[0].length,c)))),"rtl"==r?R.reverse():R}}(),Bo=[],Wo=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Bo).concat(n)}},zo=function(){if(no&&ro<9)return!1;var e=r("div");return"draggable"in e||"dragDrop"in e}(),Ho=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Uo=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},qo=function(){var e=r("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Vo=null,Go={},Zo={},Yo={},Ko=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Ko.prototype.eol=function(){return this.pos>=this.string.length},Ko.prototype.sol=function(){return this.pos==this.lineStart},Ko.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ko.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ko.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ko.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ko.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ko.prototype.skipToEnd=function(){this.pos=this.string.length},Ko.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ko.prototype.backUp=function(e){this.pos-=e},Ko.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=f(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},Ko.prototype.indentation=function(){return f(this.string,null,this.tabSize)-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},Ko.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ko.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ko.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ko.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ko.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Jo=function(e,t){this.state=e,this.lookAhead=t},Xo=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};Xo.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Xo.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Xo.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Xo.fromSaved=function(e,t,n){return t instanceof Jo?new Xo(e,je(e.mode,t.state),n,t.lookAhead):new Xo(e,je(e.mode,t),n)},Xo.prototype.save=function(e){var t=!1!==e?je(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Jo(t,this.maxLookAhead):t};var $o=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n},Qo=function(e,t,n){this.text=e,Y(this,t),this.height=n?n(this):1};Qo.prototype.lineNo=function(){return M(this)},be(Qo);var ea,ta={},na={},ra=null,ia=null,oa={left:0,right:0,top:0,bottom:0},aa=function(e,t,n){this.cm=n;var i=this.vert=r("div",[r("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=r("div",[r("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=o.tabIndex=-1,e(i),e(o),Wo(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),Wo(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,no&&ro<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};aa.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},aa.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},aa.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},aa.prototype.zeroWidthHack=function(){var e=go&&!uo?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Eo,this.disableVert=new Eo},aa.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)})},aa.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var la=function(){};la.prototype.update=function(){return{bottom:0,right:0}},la.prototype.setScrollLeft=function(){},la.prototype.setScrollTop=function(){},la.prototype.clear=function(){};var sa={native:aa,null:la},ua=0,ca=function(e,t,n){var r=e.display;this.viewport=t,this.visible=fn(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=yt(e),this.force=n,this.dims=Gt(e),this.events=[]};ca.prototype.signal=function(e,t){ye(e,t)&&this.events.push(arguments)},ca.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ge.apply(null,this.events[e])};var fa=0,pa=null;no?pa=-.53:$i?pa=15:ao?pa=-.7:so&&(pa=-1/3);var da=function(e,t){this.ranges=e,this.primIndex=t};da.prototype.primary=function(){return this.ranges[this.primIndex]},da.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!L(n.anchor,r.anchor)||!L(n.head,r.head))return!1}return!0},da.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ha(D(this.ranges[t].anchor),D(this.ranges[t].head));return new da(e,this.primIndex)},da.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},da.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(A(t,r.from())>=0&&A(e,r.to())<=0)return n}return-1};var ha=function(e,t){this.anchor=e,this.head=t};ha.prototype.from=function(){return F(this.anchor,this.head)},ha.prototype.to=function(){return R(this.anchor,this.head)},ha.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Kr.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Ue(i),Qe(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},Jr.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Kr))){var l=[];this.collapse(l),this.children=[new Kr(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,l=a;l<i.lines.length;){var s=new Kr(i.lines.slice(l,l+=25));i.height-=s.height,this.children.splice(++r,0,s),s.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new Jr(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=p(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new Jr(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var ga=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};ga.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=M(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=pt(this);T(n,Math.max(0,n.height-o)),e&&(Pn(e,function(){Xr(e,n,-o),Fn(e,r,"widget")}),Qe(e,"lineWidgetCleared",e,this,r))}},ga.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=pt(this)-t;i&&(T(r,r.height+i),n&&Pn(n,function(){n.curOp.forceUpdate=!0,Xr(n,r,i),Qe(n,"lineWidgetChanged",n,e,M(r))}))},be(ga);var va=0,ma=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++va};ma.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&On(e),ye(this,"clear")){var n=this.find();n&&Qe(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],l=U(a.markedSpans,this);e&&!this.collapsed?Fn(e,M(a),"text"):e&&(null!=l.to&&(i=M(a)),null!=l.from&&(r=M(a))),a.markedSpans=q(a.markedSpans,l),null==l.from&&this.collapsed&&!ae(this.doc,a)&&e&&T(a,qt(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var u=re(this.lines[s]),c=ue(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Rn(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ir(e.doc)),e&&Qe(e,"markerCleared",e,this,r,i),t&&Tn(e),this.parent&&this.parent.clear()}},ma.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=U(o.markedSpans,this);if(null!=a.from&&(n=P(t?o:M(o),a.from),-1==e))return n;if(null!=a.to&&(r=P(t?o:M(o),a.to),1==e))return r}return n&&{from:n,to:r}},ma.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Pn(r,function(){var i=t.line,o=M(t.line),a=Ct(r,o);if(a&&(Ot(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!ae(n.doc,i)&&null!=n.height){var l=n.height;n.height=null;var s=pt(n)-l;s&&T(i,i.height+s)}Qe(r,"markerChanged",r,e)})},ma.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=p(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ma.prototype.detachLine=function(e){if(this.lines.splice(p(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},be(ma);var ya=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};ya.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Qe(this,"clear")}},ya.prototype.find=function(e,t){return this.primary.find(e,t)},be(ya);var ba=0,xa=function(e,t,n,r,i){if(!(this instanceof xa))return new xa(e,t,n,r,i);null==n&&(n=0),Jr.call(this,[new Kr([new Qo("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=P(n,0);this.sel=tr(o),this.history=new dr(null),this.id=++ba,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),ur(this,{from:o,to:o,text:e}),Mr(this,tr(o),Mo)};xa.prototype=y(Jr.prototype,{constructor:xa,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=O(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Dn(function(e){var t=P(this.first,0),n=this.first+this.size-1;Br(this,{from:t,to:P(n,S(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&mn(this.cm,0,0),Mr(this,tr(t),Mo)}),replaceRange:function(e,t,n,r){qr(this,e,t=W(this,t),n=n?W(this,n):t,r)},getRange:function(e,t,n){var r=_(this,W(this,e),W(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(j(this,e))return S(this,e)},getLineNumber:function(e){return M(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=S(this,e)),re(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return W(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Dn(function(e,t,n){Or(this,W(this,"number"==typeof e?P(e,t||0):e),null,n)}),setSelection:Dn(function(e,t,n){Or(this,W(this,e),W(this,t||e),n)}),extendSelection:Dn(function(e,t,n){Er(this,W(this,e),t&&W(this,t),n)}),extendSelections:Dn(function(e,t){Sr(this,z(this,e),t)}),extendSelectionsBy:Dn(function(e,t){Sr(this,z(this,v(this.sel.ranges,e)),t)}),setSelections:Dn(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new ha(W(this,e[i].anchor),W(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Mr(this,er(r,t),n)}}),addSelection:Dn(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new ha(W(this,e),W(this,t||e))),Mr(this,er(r,r.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=_(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=_(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Dn(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var l=t&&"end"!=t&&function(e,t,n){for(var r=[],i=P(e.first,0),o=i,a=0;a<t.length;a++){var l=t[a],s=or(l.from,i,o),u=or(nr(l),i,o);if(i=l.to,o=u,"around"==n){var c=e.sel.ranges[a],f=A(c.head,c.anchor)<0;r[a]=new ha(f?u:s,f?s:u)}else r[a]=new ha(s,s)}return new da(r,e.sel.primIndex)}(this,r,t),s=r.length-1;s>=0;s--)Br(this,r[s]);l?Tr(this,l):this.cm&&vn(this.cm)}),undo:Dn(function(){zr(this,"undo")}),redo:Dn(function(){zr(this,"redo")}),undoSelection:Dn(function(){zr(this,"undo",!0)}),redoSelection:Dn(function(){zr(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new dr(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Cr(this.history.done),undone:Cr(this.history.undone)}},setHistory:function(e){var t=this.history=new dr(this.history.maxGeneration);t.done=Cr(e.done.slice(0),null,!0),t.undone=Cr(e.undone.slice(0),null,!0)},setGutterMarker:Dn(function(e,t,n){return Yr(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&w(r)&&(e.gutterMarkers=null),!0})}),clearGutter:Dn(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&Yr(t,n,"gutter",function(){return n.gutterMarkers[e]=null,w(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!j(this,e))return null;if(t=e,!(e=S(this,e)))return null}else if(null==(t=M(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Dn(function(t,n,r){return Yr(this,t,"gutter"==n?"gutter":"class",function(t){var i="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass";if(t[i]){if(e(r).test(t[i]))return!1;t[i]+=" "+r}else t[i]=r;return!0})}),removeLineClass:Dn(function(t,n,r){return Yr(this,t,"gutter"==n?"gutter":"class",function(t){var i="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass",o=t[i];if(!o)return!1;if(null==r)t[i]=null;else{var a=o.match(e(r));if(!a)return!1;var l=a.index+a[0].length;t[i]=o.slice(0,a.index)+(a.index&&l!=o.length?" ":"")+o.slice(l)||null}return!0})}),addLineWidget:Dn(function(e,t,n){return function(e,t,n,r){var i=new ga(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),Yr(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!ae(e,t)){var r=se(t)<e.scrollTop;T(t,t.height+pt(i)),r&&gn(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&Qe(o,"lineWidgetAdded",o,i,"number"==typeof t?t:M(t)),i}(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return $r(this,W(this,e),W(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return $r(this,e=W(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=S(this,(e=W(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=W(this,e),t=W(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l<a.length;l++){var s=a[l];null!=s.to&&i==e.line&&e.ch>=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),W(this,P(n,t))},indexFromPos:function(e){var t=(e=W(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new xa(O(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new xa(O(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(A(o,a)){var l=$r(e,o,a,r.primary,r.primary.type);r.markers.push(l),l.parent=r}}}(r,Qr(this)),r},unlinkDoc:function(e){if(e instanceof Li&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),ei(Qr(this));break}if(e.history==this.history){var n=[e.id];cr(e,function(e){return n.push(e.id)},!0),e.history=new dr(null),e.history.done=Cr(this.history.done,n),e.history.undone=Cr(this.history.undone,n)}},iterLinkedDocs:function(e){cr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ho(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Dn(function(e){if("rtl"!=e&&(e="ltr"),e!=this.direction){this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&Pn(t=this.cm,function(){pr(t),Rn(t)});var t}})}),xa.prototype.eachLine=xa.prototype.iter;for(var wa=0,Ca=!1,ka={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ea=0;Ea<10;Ea++)ka[Ea+48]=ka[Ea+96]=String(Ea);for(var Sa=65;Sa<=90;Sa++)ka[Sa]=String.fromCharCode(Sa);for(var _a=1;_a<=12;_a++)ka[_a+111]=ka[_a+63235]="F"+_a;var Oa={};Oa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Oa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Oa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Oa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Oa.default=go?Oa.macDefault:Oa.pcDefault;var Ta,Ma,Na={selectAll:Rr,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Mo)},killLine:function(e){return di(e,function(t){if(t.empty()){var n=S(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:P(t.head.line+1,0)}:{from:t.head,to:P(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return di(e,function(t){return{from:P(t.from().line,0),to:W(e.doc,P(t.to().line+1,0))}})},delLineLeft:function(e){return di(e,function(e){return{from:P(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return di(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return di(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(P(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(P(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return mi(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return yi(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(e,t){var n=S(e.doc,t),r=function(e){for(var t;t=ee(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=M(r)),vi(!0,e,n,t,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},jo)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},jo)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?yi(e,t.head):r},jo)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=f(e.getLine(o.line),o.ch,r);t.push(h(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Pn(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=S(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new P(i.line,i.ch-1)),i.ch>0)i=new P(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),P(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=S(e.doc,i.line-1).text;a&&(i=new P(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),P(i.line-1,a.length-1),i,"+transpose"))}n.push(new ha(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Pn(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);vn(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}},ja=new Eo,Ia=null,Pa=function(e,t,n){this.time=e,this.pos=t,this.button=n};Pa.prototype.compare=function(e,t,n){return this.time+400>e&&0==A(t,this.pos)&&n==this.button};var Aa={toString:function(){return"CodeMirror.Init"}},La={},Da={};Li.defaults=La,Li.optionHandlers=Da;var Ra=[];Li.defineInitHook=function(e){return Ra.push(e)};var Fa=null,Ba=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Eo,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ba.prototype.init=function(e){function t(e){if(!ve(i,e)){if(i.somethingSelected())Ri({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=zi(i);Ri({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,Mo),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=Fa.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var a=Ui(),l=a.firstChild;i.display.lineSpace.insertBefore(a,i.display.lineSpace.firstChild),l.value=Fa.text.join("\n");var s=document.activeElement;ko(l),setTimeout(function(){i.display.lineSpace.removeChild(a),s.focus(),s==o&&r.showPrimarySelection()},50)}}var n=this,r=this,i=r.cm,o=r.div=e.lineDiv;Hi(o,i.options.spellcheck),Wo(o,"paste",function(e){ve(i,e)||Bi(e,i)||ro<=11&&setTimeout(An(i,function(){return n.updateFromDOM()}),20)}),Wo(o,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),Wo(o,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),Wo(o,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),Wo(o,"touchstart",function(){return r.forceCompositionEnd()}),Wo(o,"input",function(){n.composing||n.readFromDOMSoon()}),Wo(o,"copy",t),Wo(o,"cut",t)},Ba.prototype.prepareSelection=function(){var e=Qt(this.cm,!1);return e.focus=this.cm.state.focused,e},Ba.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ba.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ba.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line<t.display.viewFrom)e.removeAllRanges();else{var o=Yi(t,e.anchorNode,e.anchorOffset),a=Yi(t,e.focusNode,e.focusOffset);if(!o||o.bad||!a||a.bad||0!=A(F(o,a),r)||0!=A(R(o,a),i)){var l=t.display.view,s=r.line>=t.display.viewFrom&&Gi(t,r)||{node:l[0].measure.map[2],offset:0},u=i.line<t.display.viewTo&&Gi(t,i);if(!u){var c=l[l.length-1].measure,f=c.maps?c.maps[c.maps.length-1]:c.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(s&&u){var p,d=e.rangeCount&&e.getRangeAt(0);try{p=bo(s.node,s.offset,u.offset,u.node)}catch(e){}p&&(!$i&&t.state.focused?(e.collapse(s.node,s.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),d&&null==e.anchorNode?e.addRange(d):$i&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ba.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ba.prototype.showMultipleSelections=function(e){n(this.cm.display.cursorDiv,e.cursors),n(this.cm.display.selectionDiv,e.selection)},Ba.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ba.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return o(this.div,t)},Ba.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ba.prototype.blur=function(){this.div.blur()},Ba.prototype.getField=function(){return this.div},Ba.prototype.supportsTouch=function(){return!0},Ba.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Pn(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))})},Ba.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ba.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(po&&ao&&this.cm.options.gutters.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Yi(t,e.anchorNode,e.anchorOffset),r=Yi(t,e.focusNode,e.focusOffset);n&&r&&Pn(t,function(){Mr(t.doc,tr(n,r),Mo),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Ba.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),l=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=P(a.line-1,S(r.doc,a.line-1).length)),l.ch==S(r.doc,l.line).text.length&&l.line<r.lastLine()&&(l=P(l.line+1,0)),a.line<i.viewFrom||l.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Xt(r,a.line))?(t=M(i.view[0].line),n=i.view[0].node):(t=M(i.view[e].line),n=i.view[e-1].node.nextSibling);var s,u,c=Xt(r,l.line);if(c==i.view.length-1?(s=i.viewTo-1,u=i.lineDiv.lastChild):(s=M(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,i){function o(){u&&(s+=c,f&&(s+=c),u=f=!1)}function a(e){e&&(o(),s+=e)}function l(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void a(n);var s,p=t.getAttribute("cm-marker");if(p){var d=e.findMarks(P(r,0),P(i+1,0),(v=+p,function(e){return e.id==v}));return void(d.length&&(s=d[0].find(0))&&a(_(e.doc,s.from,s.to).join(c)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&o();for(var g=0;g<t.childNodes.length;g++)l(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(f=!0),h&&(u=!0)}else 3==t.nodeType&&a(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var v}for(var s="",u=!1,c=e.doc.lineSeparator(),f=!1;l(t),t!=n;)t=t.nextSibling,f=!1;return s}(r,n,u,t,s)),p=_(r.doc,P(t,0),P(s,S(r.doc,s).text.length));f.length>1&&p.length>1;)if(g(f)==g(p))f.pop(),p.pop(),s--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),t++}for(var d=0,h=0,v=f[0],m=p[0],y=Math.min(v.length,m.length);d<y&&v.charCodeAt(d)==m.charCodeAt(d);)++d;for(var b=g(f),x=g(p),w=Math.min(b.length-(1==f.length?d:0),x.length-(1==p.length?d:0));h<w&&b.charCodeAt(b.length-h-1)==x.charCodeAt(x.length-h-1);)++h;if(1==f.length&&1==p.length&&t==a.line)for(;d&&d>a.ch&&b.charCodeAt(b.length-h-1)==x.charCodeAt(x.length-h-1);)d--,h++;f[f.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var C=P(t,d),k=P(s,p.length?g(p).length-h:0);return f.length>1||f[0]||A(C,k)?(qr(r.doc,f,C,k,"+input"),!0):void 0},Ba.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ba.prototype.reset=function(){this.forceCompositionEnd()},Ba.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ba.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ba.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Pn(this.cm,function(){return Rn(e.cm)})},Ba.prototype.setUneditable=function(e){e.contentEditable="false"},Ba.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||An(this.cm,Fi)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ba.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ba.prototype.onContextMenu=function(){},Ba.prototype.resetPosition=function(){},Ba.prototype.needsContentAttribute=!0;var Wa=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Eo,this.hasSelection=!1,this.composing=null};Wa.prototype.init=function(e){function t(e){if(!ve(i,e)){if(i.somethingSelected())Ri({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=zi(i);Ri({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,Mo):(r.prevInput="",o.value=t.text.join("\n"),ko(o))}"cut"==e.type&&(i.state.cutIncoming=!0)}}var n=this,r=this,i=this.cm;this.createField(e);var o=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),fo&&(o.style.width="0px"),Wo(o,"input",function(){no&&ro>=9&&n.hasSelection&&(n.hasSelection=null),r.poll()}),Wo(o,"paste",function(e){ve(i,e)||Bi(e,i)||(i.state.pasteIncoming=!0,r.fastPoll())}),Wo(o,"cut",t),Wo(o,"copy",t),Wo(e.scroller,"paste",function(t){dt(e,t)||ve(i,t)||(i.state.pasteIncoming=!0,r.focus())}),Wo(e.lineSpace,"selectstart",function(t){dt(e,t)||xe(t)}),Wo(o,"compositionstart",function(){var e=i.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),Wo(o,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},Wa.prototype.createField=function(e){this.wrapper=Ui(),this.textarea=this.wrapper.firstChild},Wa.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Qt(e);if(e.options.moveInputWithCursor){var i=Dt(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Wa.prototype.showSelection=function(e){var t=this.cm.display;n(t.cursorDiv,e.cursors),n(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wa.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&ko(this.textarea),no&&ro>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",no&&ro>=9&&(this.hasSelection=null))}},Wa.prototype.getField=function(){return this.textarea},Wa.prototype.supportsTouch=function(){return!1},Wa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!ho||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},Wa.prototype.blur=function(){this.textarea.blur()},Wa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wa.prototype.receivedFocus=function(){this.slowPoll()},Wa.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Wa.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Wa.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Uo(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(no&&ro>=9&&this.hasSelection===i||go&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(r.length,i.length);a<l&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return Pn(t,function(){Fi(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wa.prototype.onKeyPress=function(){no&&ro>=9&&(this.hasSelection=null),this.fastPoll()},Wa.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=i.somethingSelected(),t=""+(e?a.value:"");a.value="⇚",a.value=t,r.prevInput=e?"":"",a.selectionStart=1,a.selectionEnd=t.length,o.selForContextMenu=i.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=c,a.style.cssText=u,no&&ro<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=s),null!=a.selectionStart){(!no||no&&ro<9)&&t();var e=0,n=function(){o.selForContextMenu==i.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&""==r.prevInput?An(i,Rr)(i):e++<10?o.detectingSelectAll=setTimeout(n,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(n,200)}}var r=this,i=r.cm,o=i.display,a=r.textarea,l=Jt(i,e),s=o.scroller.scrollTop;if(l&&!lo){i.options.resetSelectionOnContextMenu&&-1==i.doc.sel.contains(l)&&An(i,Mr)(i.doc,tr(l),Mo);var u=a.style.cssText,c=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var f,p=r.wrapper.getBoundingClientRect();if(a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(no?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",io&&(f=window.scrollY),o.input.focus(),io&&window.scrollTo(null,f),o.input.reset(),i.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=!0,o.selForContextMenu=i.doc.sel,clearTimeout(o.detectingSelectAll),no&&ro>=9&&t(),wo){ke(e);var d=function(){he(window,"mouseup",d),setTimeout(n,20)};Wo(window,"mouseup",d)}else setTimeout(n,50)}},Wa.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Wa.prototype.setUneditable=function(){},Wa.prototype.needsContentAttribute=!1,function(e){function t(t,r,i,o){e.defaults[t]=r,i&&(n[t]=o?function(e,t,n){n!=Aa&&i(e,t,n)}:i)}var n=e.optionHandlers;e.defineOption=t,e.Init=Aa,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,ar(e)},!0),t("indentUnit",2,ar,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){lr(e),Mt(e),Rn(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(P(r,o))}r++});for(var i=n.length-1;i>=0;i--)qr(e.doc,t,n[i],P(n[i].line,n[i].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Aa&&e.refresh()}),t("specialCharPlaceholder",Ge,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",ho?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!mo),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){ji(e),Ii(e)},!0),t("keyMap","default",function(e,t,n){var r=pi(t),i=n!=Aa&&pi(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),t("extraKeys",null),t("configureMouse",null),t("lineWrapping",!1,Ai,!0),t("gutters",[],function(e){Jn(e.options),Ii(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?Zt(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return En(e)},!0),t("scrollbarStyle","native",function(e){_n(e),En(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Jn(e.options),Ii(e)},!0),t("firstLineNumber",1,Ii,!0),t("lineNumberFormatter",function(e){return e},Ii,!0),t("showCursorWhenSelecting",!1,$t,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("pasteLinesPerSelection",!0),t("readOnly",!1,function(e,t){"nocursor"==t&&(sn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Pi),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,$t,!0),t("singleCursorHeightPerLine",!0,$t,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,lr,!0),t("addModeClass",!1,lr,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,lr,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(Li),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&An(this,t[e])(this,n,i),ge(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](pi(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Ln(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,Rn(this)}),removeOverlay:Ln(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Rn(this)}}),indentLine:Ln(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),j(this.doc,e)&&Di(this,e,t,n)}),indentSelection:Ln(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Di(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&vn(this));else{var o=i.from(),a=i.to(),l=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=l;s<n;++s)Di(this,s,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&_r(this.doc,r,new ha(o,u[r].to()),Mo)}}}),getTokenAt:function(e,t){return We(this,e,t)},getLineTokens:function(e,t){return We(this,P(e),t,!0)},getTokenTypeAt:function(e){e=W(this.doc,e);var t,n=Le(this,S(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var l=t?t.indexOf("overlay "):-1;return l<0?t:0==l?null:t.slice(0,l-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var l=i[o[t][a]];l&&r.push(l)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var s=0;s<i._global.length;s++){var u=i._global[s];u.pred(o,this)&&-1==p(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return De(this,(e=B(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=null==e?r.head:"object"==typeof e?W(this.doc,e):e?r.from():r.to(),Dt(this,n,t||"page")},charCoords:function(e,t){return Lt(this,W(this.doc,e),t||"page")},coordsChar:function(e,t){return Bt(this,(e=At(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=At(this,{top:e,left:0},t||"page").top,N(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=S(this.doc,e)}else r=e;return Pt(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-se(r):0)},defaultTextHeight:function(){return qt(this.display)},defaultCharWidth:function(){return Vt(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=Dt(this,W(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var s=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(a=e.bottom),l+t.offsetWidth>u&&(l=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(l=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?l=0:"middle"==i&&(l=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&function(e,t){var n=hn(e,t);null!=n.scrollTop&&xn(e,n.scrollTop),null!=n.scrollLeft&&Cn(e,n.scrollLeft)}(this,{left:l,top:a,right:l+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Ln(ki),triggerOnKeyPress:Ln(Si),triggerOnKeyUp:Ei,triggerOnMouseDown:Ln(_i),execCommand:function(e){if(Na.hasOwnProperty(e))return Na[e].call(null,this)},triggerElectric:Ln(function(e){Wi(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=W(this.doc,e),a=0;a<t&&!(o=qi(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:Ln(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?qi(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},jo)}),deleteH:Ln(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):di(this,function(n){var i=qi(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=W(this.doc,e),l=0;l<t;++l){var s=Dt(this,a,"div");if(null==o?o=s.left:s.left=o,(a=Vi(this,s,i,n)).hitSide)break}return a},moveV:Ln(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var l=Dt(n,a.head,"div");null!=a.goalColumn&&(l.left=a.goalColumn),i.push(l.left);var s=Vi(n,l,e,t);return"page"==t&&a==r.sel.primary()&&gn(n,Lt(n,s,"div").top-l.top),s},jo),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=S(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=x(o,i)?function(e){return x(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!x(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new ha(P(e.line,n),P(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?l(this.display.cursorDiv,"CodeMirror-overwrite"):Co(this.display.cursorDiv,"CodeMirror-overwrite"),ge(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==a()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Ln(function(e,t){mn(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-mt(this)-this.display.barHeight,width:e.scrollWidth-mt(this)-this.display.barWidth,clientHeight:bt(this),clientWidth:yt(this)}},scrollIntoView:Ln(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:P(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){yn(e),e.curOp.scrollToPos=t}(this,e):bn(this,e.from,e.to,e.margin)}),setSize:Ln(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Tt(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Fn(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,ge(this,"refresh",this)}),operation:function(e){return Pn(this,e)},startOperation:function(){return On(this)},endOperation:function(){return Tn(this)},refresh:Ln(function(){var e=this.display.cachedTextHeight;Rn(this),this.curOp.forceUpdate=!0,Mt(this),mn(this,this.doc.scrollLeft,this.doc.scrollTop),Zn(this),(null==e||Math.abs(e-qt(this.display))>.5)&&Kt(this),ge(this,"refresh",this)}),swapDoc:Ln(function(e){var t=this.doc;return t.cm=null,fr(this,e),Mt(this),this.display.input.reset(),mn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Qe(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},be(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Li);var za,Ha="iter insert remove copy getEditor constructor".split(" ");for(var Ua in xa.prototype)xa.prototype.hasOwnProperty(Ua)&&p(Ha,Ua)<0&&(Li.prototype[Ua]=function(e){return function(){return e.apply(this.doc,arguments)}}(xa.prototype[Ua]));return be(xa),Li.inputStyles={textarea:Wa,contenteditable:Ba},Li.defineMode=function(e){Li.defaults.mode||"null"==e||(Li.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Go[e]=t}.apply(this,arguments)},Li.defineMIME=function(e,t){Zo[e]=t},Li.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Li.defineMIME("text/plain","null"),Li.defineExtension=function(e,t){Li.prototype[e]=t},Li.defineDocExtension=function(e,t){xa.prototype[e]=t},Li.fromTextArea=function(e,t){function n(){e.value=s.getValue()}if((t=t?c(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var r=a();t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}var i;if(e.form&&(Wo(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=l}}catch(e){}}t.finishInit=function(t){t.save=n,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,n(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(he(e.form,"submit",n),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var s=Li(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},(za=Li).off=he,za.on=Wo,za.wheelEventPixels=$n,za.Doc=xa,za.splitLines=Ho,za.countColumn=f,za.findColumn=d,za.isWordChar=b,za.Pass=To,za.signal=ge,za.Line=Qo,za.changeEnd=nr,za.scrollbarModel=sa,za.Pos=P,za.cmpPos=A,za.modes=Go,za.mimeModes=Zo,za.resolveMode=Te,za.getMode=Me,za.modeExtensions=Yo,za.extendMode=Ne,za.copyState=je,za.startState=Pe,za.innerMode=Ie,za.commands=Na,za.keyMap=Oa,za.keyName=fi,za.isModifierKey=ui,za.lookupKey=si,za.normalizeKeyMap=li,za.StringStream=Ko,za.SharedTextMarker=ya,za.TextMarker=ma,za.LineWidget=ga,za.e_preventDefault=xe,za.e_stopPropagation=we,za.e_stop=ke,za.addClass=l,za.contains=o,za.rmClass=Co,za.keyNames=ka,Li.version="5.39.0",Li},e.exports=r()},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(1),a=n.n(o),l=n(2),s=n.n(l),u=n(397),c=(n.n(u),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={displayColorPicker:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.Component),c(t,[{key:"handleClick",value:function(){this.setState({displayColorPicker:!this.state.displayColorPicker})}},{key:"handleClose",value:function(){this.setState({displayColorPicker:!1})}},{key:"handleChange",value:function(e){this.props.onValueChange(e.hex)}},{key:"render",value:function(){var e=s()({default:{color:{width:"36px",height:"14px",borderRadius:"2px",background:""+this.props.value},swatch:{padding:"5px",background:"#fff",borderRadius:"1px",boxShadow:"0 0 0 1px rgba(0,0,0,.1)",display:"inline-block",cursor:"pointer"},popover:{position:"absolute",zIndex:"2"},cover:{position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}}});return i.a.createElement("div",{className:"wprm-setting-input"},i.a.createElement("div",{style:e.swatch,onClick:this.handleClick.bind(this)},i.a.createElement("div",{style:e.color})),this.state.displayColorPicker?i.a.createElement("div",{style:e.popover},i.a.createElement("div",{style:e.cover,onClick:this.handleClose.bind(this)}),i.a.createElement(u.SketchPicker,{color:this.props.value,onChange:this.handleChange.bind(this),disableAlpha:!0})):null)}}]),t}();t.a=f,f.propTypes={setting:a.a.object.isRequired,value:a.a.any.isRequired,onValueChange:a.a.func.isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var i=r(n(292)),o=r(n(77)),a=r(n(304)),l=r(n(305)),s=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,l.default)(t,function(t){Array.isArray(t)?e(t).map(function(e){return n.push(e)}):(0,a.default)(t)?(0,o.default)(t,function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)}):(0,i.default)(t)&&n.push(t)}),n};t.default=s},function(e,t,n){var r=n(17),i=n(6),o=n(11);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},function(e,t,n){var r=n(27),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[l]=n:delete e[l]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(296)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),l=a.length;l--;){var s=a[e?l:++i];if(!1===n(o[s],s,o))break}return t}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(17),i=n(11);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(17),i=n(79),o=n(11),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(82),i=n(302),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(126)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(128);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(17),i=n(83),o=n(11),a=Function.prototype,l=Object.prototype,s=a.toString,u=l.hasOwnProperty,c=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==c}},function(e,t,n){var r=n(129),i=n(306),o=n(364),a=n(6);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t,n){var r=n(307),i=n(351),o=n(128),a=n(6),l=n(361);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):l(e)}},function(e,t,n){var r=n(308),i=n(350),o=n(139);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(84),i=n(131);e.exports=function(e,t,n,o){var a=n.length,l=a,s=!o;if(null==e)return!l;for(e=Object(e);a--;){var u=n[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<l;){var c=(u=n[a])[0],f=e[c],p=u[1];if(s&&u[2]){if(void 0===f&&!(c in e))return!1}else{var d=new r;if(o)var h=o(f,p,c,e,t,d);if(!(void 0===h?i(p,f,3,o,d):h))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(41),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(41);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(41);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(41);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(40);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(40),i=n(86),o=n(87);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(127),i=n(320),o=n(20),a=n(130),l=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,c=s.toString,f=u.hasOwnProperty,p=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:l).test(a(e))}},function(e,t,n){var r,i=n(321),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(8)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(324),i=n(40),o=n(86);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(325),o=n(326),a=n(327),l=n(328),s=n(329);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=l,r.prototype.set=s,e.exports=r},function(e,t,n){var r=n(42);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(42),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(42),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(42);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(43);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(43);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(43);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(43);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(84),i=n(132),o=n(341),a=n(344),l=n(44),s=n(6),u=n(78),c=n(125),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,v,m){var y=s(e),b=s(t),x=y?p:l(e),w=b?p:l(t),C=(x=x==f?d:x)==d,k=(w=w==f?d:w)==d,E=x==w;if(E&&u(e)){if(!u(t))return!1;y=!0,C=!1}if(E&&!C)return m||(m=new r),y||c(e)?i(e,t,n,g,v,m):o(e,t,x,n,g,v,m);if(!(1&n)){var S=C&&h.call(e,"__wrapped__"),_=k&&h.call(t,"__wrapped__");if(S||_){var O=S?e.value():e,T=_?t.value():t;return m||(m=new r),v(O,T,n,g,m)}}return!!E&&(m||(m=new r),a(e,t,n,g,v,m))}},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}var i=n(87),o=n(337),a=n(338);r.prototype.add=r.prototype.push=o,r.prototype.has=a,e.exports=r},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(27),i=n(133),o=n(85),a=n(132),l=n(342),s=n(343),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=l;case"[object Set]":var h=1&r;if(d||(d=s),e.size!=t.size&&!h)return!1;var g=p.get(e);if(g)return g==t;r|=2,p.set(e,t);var v=a(d(e),d(t),r,u,f,p);return p.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(134),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,l){var s=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!s)return!1;for(var f=c;f--;){var p=u[f];if(!(s?p in t:i.call(t,p)))return!1}var d=l.get(e);if(d&&l.get(t))return d==t;var h=!0;l.set(e,t),l.set(t,e);for(var g=s;++f<c;){var v=e[p=u[f]],m=t[p];if(o)var y=s?o(m,v,p,t,e,l):o(v,m,p,e,t,l);if(!(void 0===y?v===m||a(v,m,n,o,l):y)){h=!1;break}g||(g="constructor"==p)}if(h&&!g){var b=e.constructor,x=t.constructor;b!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x)&&(h=!1)}return l.delete(e),l.delete(t),h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t,n){var r=n(18)(n(8),"DataView");e.exports=r},function(e,t,n){var r=n(18)(n(8),"Promise");e.exports=r},function(e,t,n){var r=n(18)(n(8),"Set");e.exports=r},function(e,t,n){var r=n(18)(n(8),"WeakMap");e.exports=r},function(e,t,n){var r=n(138),i=n(28);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(131),i=n(352),o=n(358),a=n(89),l=n(138),s=n(139),u=n(45);e.exports=function(e,t){return a(e)&&l(t)?s(u(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},function(e,t,n){var r=n(140);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(354)(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=o},function(e,t,n){var r=n(355);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(r.Cache||i),n}var i=n(87),o="Expected a function";r.Cache=i,e.exports=r},function(e,t,n){var r=n(357);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(27),i=n(129),o=n(6),a=n(90),l=r?r.prototype:void 0,s=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(359),i=n(360);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(141),i=n(123),o=n(6),a=n(124),l=n(79),s=n(45);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,f=!1;++u<c;){var p=s(t[u]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++u!=c?f:!!(c=null==e?0:e.length)&&l(c)&&a(p,c)&&(o(e)||i(e))}},function(e,t,n){var r=n(362),i=n(363),o=n(89),a=n(45);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(140);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(365),i=n(39);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,function(e,r,i){o[++n]=t(e,r,i)}),o}},function(e,t,n){var r=n(121),i=n(366)(r);e.exports=i},function(e,t,n){var r=n(39);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,l=Object(n);(t?a--:++a<o)&&!1!==i(l[a],a,l););return n}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var i=r(n(77)),o=r(n(368)),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map(function(t){var r=e[t];return r&&(0,i.default)(r,function(e,t){n[t]||(n[t]={}),n[t]=a({},n[t],r[t])}),t}),n};t.default=l},function(e,t,n){var r=n(369);e.exports=function(e){return r(e,5)}},function(e,t,n){var r=n(84),i=n(370),o=n(142),a=n(372),l=n(373),s=n(376),u=n(377),c=n(378),f=n(379),p=n(134),d=n(380),h=n(44),g=n(381),v=n(382),m=n(387),y=n(6),b=n(78),x=n(389),w=n(20),C=n(391),k=n(28),E="[object Arguments]",S="[object Function]",_="[object Object]",O={};O[E]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[_]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[S]=O["[object WeakMap]"]=!1,e.exports=function e(t,n,T,M,N,j){var I,P=1&n,A=2&n,L=4&n;if(T&&(I=N?T(t,M,N,j):T(t)),void 0!==I)return I;if(!w(t))return t;var D=y(t);if(D){if(I=g(t),!P)return u(t,I)}else{var R=h(t),F=R==S||"[object GeneratorFunction]"==R;if(b(t))return s(t,P);if(R==_||R==E||F&&!N){if(I=A||F?{}:m(t),!P)return A?f(t,l(I,t)):c(t,a(I,t))}else{if(!O[R])return N?t:{};I=v(t,R,P)}}j||(j=new r);var B=j.get(t);if(B)return B;if(j.set(t,I),C(t))return t.forEach(function(r){I.add(e(r,n,T,r,t,j))}),I;if(x(t))return t.forEach(function(r,i){I.set(i,e(r,n,T,i,t,j))}),I;var W=L?A?d:p:A?keysIn:k,z=D?void 0:W(t);return i(z||t,function(r,i){z&&(r=t[i=r]),o(I,i,e(r,n,T,i,t,j))}),I}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(18),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(46),i=n(28);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(46),i=n(144);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(20),i=n(82),o=n(375),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var l in e)("constructor"!=l||!t&&a.call(e,l))&&n.push(l);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){(function(e){var r=n(8),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,l=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}}).call(t,n(14)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(46),i=n(88);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(46),i=n(145);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(135),i=n(145),o=n(144);e.exports=function(e){return r(e,o,i)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(91),i=n(383),o=n(384),a=n(385),l=n(386);e.exports=function(e,t,n){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return i(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return l(e,n);case"[object Map]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return o(e);case"[object Set]":return new s;case"[object Symbol]":return a(e)}}},function(e,t,n){var r=n(91);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(27),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},function(e,t,n){var r=n(91);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(388),i=n(83),o=n(82);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},function(e,t,n){var r=n(20),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(390),i=n(80),o=n(81),a=o&&o.isMap,l=a?i(a):r;e.exports=l},function(e,t,n){var r=n(44),i=n(11);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(392),i=n(80),o=n(81),a=o&&o.isSet,l=a?i(a):r;e.exports=l},function(e,t,n){var r=n(44),i=n(11);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,i=n(77),o=(r=i)&&r.__esModule?r:{default:r},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},s=t.autoprefix=function(e){var t={};return(0,o.default)(e,function(e,n){var r={};(0,o.default)(e,function(e,t){var n=l[t];n?r=a({},r,n(e)):r[t]=e}),t[n]=r}),t};t.default=s},function(e,t,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var i,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),l=(i=a)&&i.__esModule?i:{default:i},s=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function i(){var n,a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return a=s=r(this,(n=i.__proto__||Object.getPrototypeOf(i)).call.apply(n,[this].concat(c))),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return l.default.createElement(t,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},l.default.createElement(e,o({},s.props,s.state)))},r(s,a)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,l.default.Component),i}()};t.default=s},function(e,t,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var i,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),l=(i=a)&&i.__esModule?i:{default:i},s=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function i(){var n,a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return a=s=r(this,(n=i.__proto__||Object.getPrototypeOf(i)).call.apply(n,[this].concat(c))),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return l.default.createElement(t,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},l.default.createElement(e,o({},s.props,s.state)))},r(s,a)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,l.default.Component),i}()};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPicker=t.TwitterPicker=t.SwatchesPicker=t.SliderPicker=t.SketchPicker=t.PhotoshopPicker=t.MaterialPicker=t.HuePicker=t.GithubPicker=t.CompactPicker=t.ChromePicker=t.default=t.CirclePicker=t.BlockPicker=t.AlphaPicker=void 0;var i=n(398);Object.defineProperty(t,"AlphaPicker",{enumerable:!0,get:function(){return r(i).default}});var o=n(436);Object.defineProperty(t,"BlockPicker",{enumerable:!0,get:function(){return r(o).default}});var a=n(504);Object.defineProperty(t,"CirclePicker",{enumerable:!0,get:function(){return r(a).default}});var l=n(506);Object.defineProperty(t,"ChromePicker",{enumerable:!0,get:function(){return r(l).default}});var s=n(510);Object.defineProperty(t,"CompactPicker",{enumerable:!0,get:function(){return r(s).default}});var u=n(513);Object.defineProperty(t,"GithubPicker",{enumerable:!0,get:function(){return r(u).default}});var c=n(515);Object.defineProperty(t,"HuePicker",{enumerable:!0,get:function(){return r(c).default}});var f=n(517);Object.defineProperty(t,"MaterialPicker",{enumerable:!0,get:function(){return r(f).default}});var p=n(518);Object.defineProperty(t,"PhotoshopPicker",{enumerable:!0,get:function(){return r(p).default}});var d=n(524);Object.defineProperty(t,"SketchPicker",{enumerable:!0,get:function(){return r(d).default}});var h=n(527);Object.defineProperty(t,"SliderPicker",{enumerable:!0,get:function(){return r(h).default}});var g=n(531);Object.defineProperty(t,"SwatchesPicker",{enumerable:!0,get:function(){return r(g).default}});var v=n(534);Object.defineProperty(t,"TwitterPicker",{enumerable:!0,get:function(){return r(v).default}});var m=n(149);Object.defineProperty(t,"CustomPicker",{enumerable:!0,get:function(){return r(m).default}});var y=r(l);t.default=y.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPicker=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=r(n(0)),a=r(n(2)),l=n(4),s=r(n(435)),u=t.AlphaPicker=function(e){var t=e.rgb,n=e.hsl,r=e.width,s=e.height,u=e.onChange,c=e.direction,f=e.style,p=e.renderers,d=e.pointer,h=e.className,g=void 0===h?"":h,v=(0,a.default)({default:{picker:{position:"relative",width:r,height:s},alpha:{radius:"2px",style:f}}});return o.default.createElement("div",{style:v.picker,className:"alpha-picker "+g},o.default.createElement(l.Alpha,i({},v.alpha,{rgb:t,hsl:n,pointer:d,renderers:p,onChange:u,direction:c})))};u.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:s.default},t.default=(0,l.ColorWrap)(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),s=r(l),u=r(n(2)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(400)),f=r(n(146)),p=t.Alpha=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e,t){var n=c.calculateChange(e,t,r.props,r.container);n&&r.props.onChange&&r.props.onChange(n,e)},r.handleMouseDown=function(e){r.handleChange(e,!0),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},i(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.PureComponent||l.Component),a(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,u.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:o({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return s.default.createElement("div",{style:n.alpha},s.default.createElement("div",{style:n.checkboard},s.default.createElement(f.default,{renderers:this.props.renderers})),s.default.createElement("div",{style:n.gradient}),s.default.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},s.default.createElement("div",{style:n.pointer},this.props.pointer?s.default.createElement(this.props.pointer,this.props):s.default.createElement("div",{style:n.slider}))))}}]),t}();t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateChange=function(e,t,n,r){e.preventDefault();var i=r.clientWidth,o=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n.direction){var c=void 0;if(c=u<0?0:u>o?1:Math.round(100*u/o)/100,n.hsl.a!==c)return{h:n.hsl.h,s:n.hsl.s,l:n.hsl.l,a:c,source:"rgb"}}else{var f=void 0;if(f=s<0?0:s>i?1:Math.round(100*s/i)/100,n.a!==f)return{h:n.hsl.h,s:n.hsl.s,l:n.hsl.l,a:f,source:"rgb"}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={},i=t.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null};t.get=function(e,t,n,o){var a=e+"-"+t+"-"+n+(o?"-server":""),l=i(e,t,n,o);return r[a]?r[a]:(r[a]=l,l)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.EditableInput=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),l=r(a),s=r(n(2)),u=t.EditableInput=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.props.label?n.props.onChange&&n.props.onChange(i({},n.props.label,e.target.value),e):n.props.onChange&&n.props.onChange(e.target.value,e),n.setState({value:e.target.value})},n.handleKeyDown=function(e){var t=String(e.target.value),r=t.indexOf("%")>-1,o=Number(t.replace(/%/g,""));if(!isNaN(o)){var a=n.props.arrowOffset||1;38===e.keyCode&&(null!==n.props.label?n.props.onChange&&n.props.onChange(i({},n.props.label,o+a),e):n.props.onChange&&n.props.onChange(o+a,e),r?n.setState({value:o+a+"%"}):n.setState({value:o+a})),40===e.keyCode&&(null!==n.props.label?n.props.onChange&&n.props.onChange(i({},n.props.label,o-a),e):n.props.onChange&&n.props.onChange(o-a,e),r?n.setState({value:o-a+"%"}):n.setState({value:o-a}))}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(i({},n.props.label,t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.PureComponent||a.Component),o(t,[{key:"componentWillReceiveProps",value:function(e){var t=this.input;e.value!==this.state.value&&(t===document.activeElement?this.setState({blurValue:String(e.value).toUpperCase()}):this.setState({value:String(e.value).toUpperCase(),blurValue:!this.state.blurValue&&String(e.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=(0,s.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return l.default.createElement("div",{style:t.wrap},l.default.createElement("input",{style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?l.default.createElement("span",{style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}();t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0}),t.Hue=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),l=r(a),s=r(n(2)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(404)),c=t.Hue=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e,t){var n=u.calculateChange(e,t,r.props,r.container);n&&r.props.onChange&&r.props.onChange(n,e)},r.handleMouseDown=function(e){r.handleChange(e,!0),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},i(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.PureComponent||a.Component),o(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,s.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return l.default.createElement("div",{style:r.hue},l.default.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},l.default.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),l.default.createElement("div",{style:r.pointer},this.props.pointer?l.default.createElement(this.props.pointer,this.props):l.default.createElement("div",{style:r.slider}))))}}]),t}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateChange=function(e,t,n,r){e.preventDefault();var i=r.clientWidth,o=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=a-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n.direction){var c=void 0;if(c=u<0?359:u>o?0:360*(-100*u/o+100)/100,n.hsl.h!==c)return{h:c,s:n.hsl.s,l:n.hsl.l,a:n.hsl.a,source:"rgb"}}else{var f=void 0;if(f=s<0?0:s>i?359:100*s/i*360/100,n.hsl.h!==f)return{h:f,s:n.hsl.s,l:n.hsl.l,a:n.hsl.a,source:"rgb"}}return null}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Raised=void 0;var i=r(n(0)),o=r(n(1)),a=r(n(2)),l=t.Raised=function(e){var t=e.zDepth,n=e.radius,r=e.background,o=e.children,l=(0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},{"zDepth-1":1===t});return i.default.createElement("div",{style:l.wrap},i.default.createElement("div",{style:l.bg}),i.default.createElement("div",{style:l.content},o))};l.propTypes={background:o.default.string,zDepth:o.default.oneOf([0,1,2,3,4,5]),radius:o.default.number},l.defaultProps={background:"#fff",zDepth:1,radius:2},t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=r(o),l=r(n(2)),s=r(n(407)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(412)),c=t.Saturation=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e,t){n.props.onChange&&n.throttle(n.props.onChange,u.calculateChange(e,t,n.props,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e,!0),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,s.default)(function(e,t,n){e(t,n)},50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.PureComponent||o.Component),i(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,o=t.pointer,s=t.circle,u=(0,l.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:i,pointer:o,circle:s}},{custom:!!this.props.style});return a.default.createElement("div",{style:u.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.default.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),a.default.createElement("div",{style:u.white,className:"saturation-white"},a.default.createElement("div",{style:u.black,className:"saturation-black"}),a.default.createElement("div",{style:u.pointer},this.props.pointer?a.default.createElement(this.props.pointer,this.props):a.default.createElement("div",{style:u.circle}))))}}]),t}();t.default=c},function(e,t,n){var r=n(147),i=n(21);e.exports=function(e,t,n){var o=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:o,maxWait:t,trailing:a})}},function(e,t,n){var r=n(9);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(21),i=n(47),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=l.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(48),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[l]=n:delete e[l]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateChange=function(e,t,n,r){e.preventDefault();var i=r.getBoundingClientRect(),o=i.width,a=i.height,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=l-(r.getBoundingClientRect().left+window.pageXOffset),c=s-(r.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>o?u=o:c<0?c=0:c>a&&(c=a);var f=100*u/o,p=-100*c/a+100;return{h:n.hsl.h,s:f,v:p,a:n.hsl.a,source:"rgb"}}},function(e,t,n){e.exports=n(414)},function(e,t,n){var r=n(415),i=n(150),o=n(431),a=n(10);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(417),i=n(92);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(418)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),l=a.length;l--;){var s=a[e?l:++i];if(!1===n(o[s],s,o))break}return t}}},function(e,t,n){var r=n(420),i=n(151),o=n(10),a=n(152),l=n(153),s=n(154),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),c=!n&&i(e),f=!n&&!c&&a(e),p=!n&&!c&&!f&&s(e),d=n||c||f||p,h=d?r(e.length,String):[],g=h.length;for(var v in e)!t&&!u.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,g))||h.push(v);return h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(29),i=n(30);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(29),i=n(93),o=n(30),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(148),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l}).call(t,n(14)(e))},function(e,t,n){var r=n(427),i=n(428),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(429)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(94);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,l=Object(n);(t?a--:++a<o)&&!1!==i(l[a],a,l););return n}}},function(e,t,n){var r=n(156);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r;!function(i){function o(e,t){if(e=e||"",t=t||{},e instanceof o)return e;if(!(this instanceof o))return new o(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,l=!1,s=!1;"string"==typeof e&&(e=function(e){e=e.replace(I,"").replace(P,"").toLowerCase();var t,n=!1;if(H[e])e=H[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=q.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=q.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=q.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=q.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=q.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=q.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=q.hex8.exec(e))?{r:_(t[1]),g:_(t[2]),b:_(t[3]),a:N(t[4]),format:n?"name":"hex8"}:(t=q.hex6.exec(e))?{r:_(t[1]),g:_(t[2]),b:_(t[3]),format:n?"name":"hex"}:(t=q.hex4.exec(e))?{r:_(t[1]+""+t[1]),g:_(t[2]+""+t[2]),b:_(t[3]+""+t[3]),a:N(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=q.hex3.exec(e))&&{r:_(t[1]+""+t[1]),g:_(t[2]+""+t[2]),b:_(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==typeof e&&(j(e.r)&&j(e.g)&&j(e.b)?(u=e.r,c=e.g,f=e.b,t={r:255*E(u,255),g:255*E(c,255),b:255*E(f,255)},l=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):j(e.h)&&j(e.s)&&j(e.v)?(r=T(e.s),o=T(e.v),t=function(e,t,n){e=6*E(e,360),t=E(t,100),n=E(n,100);var r=i.floor(e),o=e-r,a=n*(1-t),l=n*(1-o*t),s=n*(1-(1-o)*t),u=r%6;return{r:255*[n,l,a,a,s,n][u],g:255*[s,n,n,l,a,a][u],b:255*[a,a,s,n,n,l][u]}}(e.h,r,o),l=!0,s="hsv"):j(e.h)&&j(e.s)&&j(e.l)&&(r=T(e.s),a=T(e.l),t=function(e,t,n){function r(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var i,o,a;if(e=E(e,360),t=E(t,100),n=E(n,100),0===t)i=o=a=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;i=r(s,l,e+1/3),o=r(s,l,e),a=r(s,l,e-1/3)}return{r:255*i,g:255*o,b:255*a}}(e.h,r,a),l=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a));var u,c,f;return n=k(n),{ok:l,format:e.format||s,r:D(255,R(t.r,0)),g:D(255,R(t.g,0)),b:D(255,R(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=L(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=L(this._r)),this._g<1&&(this._g=L(this._g)),this._b<1&&(this._b=L(this._b)),this._ok=n.ok,this._tc_id=A++}function a(e,t,n){e=E(e,255),t=E(t,255),n=E(n,255);var r,i,o=R(e,t,n),a=D(e,t,n),l=(o+a)/2;if(o==a)r=i=0;else{var s=o-a;switch(i=l>.5?s/(2-o-a):s/(o+a),o){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:i,l:l}}function l(e,t,n){e=E(e,255),t=E(t,255),n=E(n,255);var r,i,o=R(e,t,n),a=D(e,t,n),l=o,s=o-a;if(i=0===o?0:s/o,o==a)r=0;else{switch(o){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:i,v:l}}function s(e,t,n,r){var i=[O(L(e).toString(16)),O(L(t).toString(16)),O(L(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function u(e,t,n,r){return[O(M(r)),O(L(e).toString(16)),O(L(t).toString(16)),O(L(n).toString(16))].join("")}function c(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.s-=t/100,n.s=S(n.s),o(n)}function f(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.s+=t/100,n.s=S(n.s),o(n)}function p(e){return o(e).desaturate(100)}function d(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.l+=t/100,n.l=S(n.l),o(n)}function h(e,t){t=0===t?0:t||10;var n=o(e).toRgb();return n.r=R(0,D(255,n.r-L(-t/100*255))),n.g=R(0,D(255,n.g-L(-t/100*255))),n.b=R(0,D(255,n.b-L(-t/100*255))),o(n)}function g(e,t){t=0===t?0:t||10;var n=o(e).toHsl();return n.l-=t/100,n.l=S(n.l),o(n)}function v(e,t){var n=o(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,o(n)}function m(e){var t=o(e).toHsl();return t.h=(t.h+180)%360,o(t)}function y(e){var t=o(e).toHsl(),n=t.h;return[o(e),o({h:(n+120)%360,s:t.s,l:t.l}),o({h:(n+240)%360,s:t.s,l:t.l})]}function b(e){var t=o(e).toHsl(),n=t.h;return[o(e),o({h:(n+90)%360,s:t.s,l:t.l}),o({h:(n+180)%360,s:t.s,l:t.l}),o({h:(n+270)%360,s:t.s,l:t.l})]}function x(e){var t=o(e).toHsl(),n=t.h;return[o(e),o({h:(n+72)%360,s:t.s,l:t.l}),o({h:(n+216)%360,s:t.s,l:t.l})]}function w(e,t,n){t=t||6,n=n||30;var r=o(e).toHsl(),i=360/n,a=[o(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(o(r));return a}function C(e,t){t=t||6;for(var n=o(e).toHsv(),r=n.h,i=n.s,a=n.v,l=[],s=1/t;t--;)l.push(o({h:r,s:i,v:a})),a=(a+s)%1;return l}function k(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function E(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=D(t,R(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function S(e){return D(1,R(0,e))}function _(e){return parseInt(e,16)}function O(e){return 1==e.length?"0"+e:""+e}function T(e){return e<=1&&(e=100*e+"%"),e}function M(e){return i.round(255*parseFloat(e)).toString(16)}function N(e){return _(e)/255}function j(e){return!!q.CSS_UNIT.exec(e)}var I=/^\s+/,P=/\s+$/,A=0,L=i.round,D=i.min,R=i.max,F=i.random;o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r,o,a,l=this.toRgb();return e=l.r/255,t=l.g/255,n=l.b/255,r=e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4),o=t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4),a=n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4),.2126*r+.7152*o+.0722*a},setAlpha:function(e){return this._a=k(e),this._roundA=L(100*this._a)/100,this},toHsv:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=l(this._r,this._g,this._b),t=L(360*e.h),n=L(100*e.s),r=L(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=a(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=a(this._r,this._g,this._b),t=L(360*e.h),n=L(100*e.s),r=L(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return s(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[O(L(e).toString(16)),O(L(t).toString(16)),O(L(n).toString(16)),O(M(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:L(this._r),g:L(this._g),b:L(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+L(this._r)+", "+L(this._g)+", "+L(this._b)+")":"rgba("+L(this._r)+", "+L(this._g)+", "+L(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:L(100*E(this._r,255))+"%",g:L(100*E(this._g,255))+"%",b:L(100*E(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+L(100*E(this._r,255))+"%, "+L(100*E(this._g,255))+"%, "+L(100*E(this._b,255))+"%)":"rgba("+L(100*E(this._r,255))+"%, "+L(100*E(this._g,255))+"%, "+L(100*E(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(U[s(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+u(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=o(e);n="#"+u(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return o(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(d,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(c,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(p,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(w,arguments)},complement:function(){return this._applyCombination(m,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(y,arguments)},tetrad:function(){return this._applyCombination(b,arguments)}},o.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:T(e[r]));e=n}return o(e,t)},o.equals=function(e,t){return!(!e||!t)&&o(e).toRgbString()==o(t).toRgbString()},o.random=function(){return o.fromRatio({r:F(),g:F(),b:F()})},o.mix=function(e,t,n){n=0===n?0:n||50;var r=o(e).toRgb(),i=o(t).toRgb(),a=n/100;return o({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},o.readability=function(e,t){var n=o(e),r=o(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},o.isReadable=function(e,t,n){var r,i,a=o.readability(e,t);switch(i=!1,(r=function(e){var t,n;return t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},o.mostReadable=function(e,t,n){var r,i,a,l,s=null,u=0;i=(n=n||{}).includeFallbackColors,a=n.level,l=n.size;for(var c=0;c<t.length;c++)(r=o.readability(e,t[c]))>u&&(u=r,s=o(t[c]));return o.isReadable(e,s,{level:a,size:l})||!i?s:(n.includeFallbackColors=!1,o.mostReadable(e,["#fff","#000"],n))};var B,W,z,H=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},U=o.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(H),q=(W="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",z="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+W),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+W),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+W),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});void 0!==e&&e.exports?e.exports=o:void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Swatch=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=r(n(0)),a=r(n(2)),l=n(434),s=n(4),u=t.Swatch=function(e){var t=e.color,n=e.style,r=e.onClick,l=void 0===r?function(){}:r,u=e.onHover,c=e.title,f=void 0===c?t:c,p=e.children,d=e.focus,h=e.focusStyle,g=void 0===h?{}:h,v="transparent"===t,m=(0,a.default)({default:{swatch:i({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,d?g:{})}}),y={};return u&&(y.onMouseOver=function(e){return u(t,e)}),o.default.createElement("div",i({style:m.swatch,onClick:function(e){return l(t,e)},title:f,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&l(t,e)}},y),p,v&&o.default.createElement(s.Checkboard,{borderRadius:m.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};t.default=(0,l.handleFocus)(u)},function(e,t,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var i,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(0),s=(i=l)&&i.__esModule?i:{default:i};t.handleFocus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function i(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return t=n=r(this,(e=i.__proto__||Object.getPrototypeOf(i)).call.apply(e,[this].concat(a))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},r(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,s.default.Component),a(i,[{key:"render",value:function(){return s.default.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},s.default.createElement(e,o({},this.props,this.state)))}}]),i}()}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPointer=void 0;var i=r(n(0)),o=r(n(2)),a=t.AlphaPointer=function(e){var t=e.direction,n=(0,o.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return i.default.createElement("div",{style:n.picker})};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Block=void 0;var i=r(n(0)),o=r(n(1)),a=r(n(2)),l=r(n(7)),s=n(4),u=r(n(437)),c=t.Block=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,o=e.colors,c=e.width,f=e.triangle,p=e.className,d=void 0===p?"":p,h="transparent"===r,g=function(e,n){l.default.isValidHex(e)&&t({hex:e,source:"hex"},n)},v=(0,a.default)({default:{card:{width:c,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:r,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:l.default.getContrastingColor(r),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+r+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},{"hide-triangle":"hide"===f});return i.default.createElement("div",{style:v.card,className:"block-picker "+d},i.default.createElement("div",{style:v.triangle}),i.default.createElement("div",{style:v.head},h&&i.default.createElement(s.Checkboard,{borderRadius:"6px 6px 0 0"}),i.default.createElement("div",{style:v.label},r)),i.default.createElement("div",{style:v.body},i.default.createElement(u.default,{colors:o,onClick:g,onSwatchHover:n}),i.default.createElement(s.EditableInput,{style:{input:v.input},value:r,onChange:g})))};c.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),colors:o.default.arrayOf(o.default.string),triangle:o.default.oneOf(["top","hide"])},c.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top"},t.default=(0,s.ColorWrap)(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.BlockSwatches=void 0;var i=r(n(0)),o=r(n(2)),a=r(n(19)),l=n(4),s=t.BlockSwatches=function(e){var t=e.colors,n=e.onClick,r=e.onSwatchHover,s=(0,o.default)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return i.default.createElement("div",{style:s.swatches},(0,a.default)(t,function(e){return i.default.createElement(l.Swatch,{key:e,color:e,style:s.swatch,onClick:n,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})}),i.default.createElement("div",{style:s.clear}))};t.default=s},function(e,t,n){var r=n(439),i=n(490),o=n(156),a=n(10),l=n(500);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):l(e)}},function(e,t,n){var r=n(440),i=n(489),o=n(164);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(158),i=n(161);e.exports=function(e,t,n,o){var a=n.length,l=a,s=!o;if(null==e)return!l;for(e=Object(e);a--;){var u=n[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<l;){var c=(u=n[a])[0],f=e[c],p=u[1];if(s&&u[2]){if(void 0===f&&!(c in e))return!1}else{var d=new r;if(o)var h=o(f,p,c,e,t,d);if(!(void 0===h?i(p,f,3,o,d):h))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(50),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(50);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(50);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(50);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(49);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(49),i=n(95),o=n(96);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(155),i=n(452),o=n(21),a=n(160),l=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,c=s.toString,f=u.hasOwnProperty,p=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?p:l).test(a(e))}},function(e,t,n){var r,i=n(453),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(9)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(456),i=n(49),o=n(95);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=n(457),o=n(458),a=n(459),l=n(460),s=n(461);r.prototype.clear=i,r.prototype.delete=o,r.prototype.get=a,r.prototype.has=l,r.prototype.set=s,e.exports=r},function(e,t,n){var r=n(51);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(51),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(51),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(51);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(52);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(52);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(52);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(52);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(158),i=n(162),o=n(473),a=n(477),l=n(484),s=n(10),u=n(152),c=n(154),f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,v,m){var y=s(e),b=s(t),x=y?p:l(e),w=b?p:l(t),C=(x=x==f?d:x)==d,k=(w=w==f?d:w)==d,E=x==w;if(E&&u(e)){if(!u(t))return!1;y=!0,C=!1}if(E&&!C)return m||(m=new r),y||c(e)?i(e,t,n,g,v,m):o(e,t,x,n,g,v,m);if(!(1&n)){var S=C&&h.call(e,"__wrapped__"),_=k&&h.call(t,"__wrapped__");if(S||_){var O=S?e.value():e,T=_?t.value():t;return m||(m=new r),v(O,T,n,g,m)}}return!!E&&(m||(m=new r),a(e,t,n,g,v,m))}},function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}var i=n(96),o=n(469),a=n(470);r.prototype.add=r.prototype.push=o,r.prototype.has=a,e.exports=r},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(48),i=n(474),o=n(159),a=n(162),l=n(475),s=n(476),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=l;case"[object Set]":var h=1&r;if(d||(d=s),e.size!=t.size&&!h)return!1;var g=p.get(e);if(g)return g==t;r|=2,p.set(e,t);var v=a(d(e),d(t),r,u,f,p);return p.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},function(e,t,n){var r=n(9).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(478),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,l){var s=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!s)return!1;for(var f=c;f--;){var p=u[f];if(!(s?p in t:i.call(t,p)))return!1}var d=l.get(e);if(d&&l.get(t))return d==t;var h=!0;l.set(e,t),l.set(t,e);for(var g=s;++f<c;){var v=e[p=u[f]],m=t[p];if(o)var y=s?o(m,v,p,t,e,l):o(v,m,p,e,t,l);if(!(void 0===y?v===m||a(v,m,n,o,l):y)){h=!1;break}g||(g="constructor"==p)}if(h&&!g){var b=e.constructor,x=t.constructor;b!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x)&&(h=!1)}return l.delete(e),l.delete(t),h}},function(e,t,n){var r=n(479),i=n(481),o=n(92);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(480),i=n(10);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){var r=n(482),i=n(483),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;e.exports=l},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(485),i=n(95),o=n(486),a=n(487),l=n(488),s=n(29),u=n(160),c=u(r),f=u(i),p=u(o),d=u(a),h=u(l),g=s;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=g(new i)||o&&"[object Promise]"!=g(o.resolve())||a&&"[object Set]"!=g(new a)||l&&"[object WeakMap]"!=g(new l))&&(g=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=g},function(e,t,n){var r=n(22)(n(9),"DataView");e.exports=r},function(e,t,n){var r=n(22)(n(9),"Promise");e.exports=r},function(e,t,n){var r=n(22)(n(9),"Set");e.exports=r},function(e,t,n){var r=n(22)(n(9),"WeakMap");e.exports=r},function(e,t,n){var r=n(163),i=n(92);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(161),i=n(491),o=n(497),a=n(97),l=n(163),s=n(164),u=n(53);e.exports=function(e,t){return a(e)&&l(t)?s(u(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},function(e,t,n){var r=n(165);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(493)(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=o},function(e,t,n){var r=n(494);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(r.Cache||i),n}var i=n(96),o="Expected a function";r.Cache=i,e.exports=r},function(e,t,n){var r=n(496);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(48),i=n(157),o=n(10),a=n(47),l=r?r.prototype:void 0,s=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(498),i=n(499);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(166),i=n(151),o=n(10),a=n(153),l=n(93),s=n(53);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,f=!1;++u<c;){var p=s(t[u]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++u!=c?f:!!(c=null==e?0:e.length)&&l(c)&&a(p,c)&&(o(e)||i(e))}},function(e,t,n){var r=n(501),i=n(502),o=n(97),a=n(53);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(165);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(150),i=n(94);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,function(e,r,i){o[++n]=t(e,r,i)}),o}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;var i=r(n(0)),o=r(n(1)),a=r(n(2)),l=r(n(19)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(167)),u=n(4),c=r(n(505)),f=t.Circle=function(e){var t=e.width,n=e.onChange,r=e.onSwatchHover,o=e.colors,s=e.hex,u=e.circleSize,f=e.circleSpacing,p=e.className,d=void 0===p?"":p,h=(0,a.default)({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-f,marginBottom:-f}}}),g=function(e,t){return n({hex:e,source:"hex"},t)};return i.default.createElement("div",{style:h.card,className:"circle-picker "+d},(0,l.default)(o,function(e){return i.default.createElement(c.default,{key:e,color:e,onClick:g,onSwatchHover:r,active:s===e.toLowerCase(),circleSize:u,circleSpacing:f})}))};f.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),circleSize:o.default.number,circleSpacing:o.default.number},f.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[s.red[500],s.pink[500],s.purple[500],s.deepPurple[500],s.indigo[500],s.blue[500],s.lightBlue[500],s.cyan[500],s.teal[500],s.green[500],s.lightGreen[500],s.lime[500],s.yellow[500],s.amber[500],s.orange[500],s.deepOrange[500],s.brown[500],s.blueGrey[500]]},t.default=(0,u.ColorWrap)(f)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.CircleSwatch=void 0;var i=r(n(0)),o=n(2),a=r(o),l=n(4),s=t.CircleSwatch=function(e){var t=e.color,n=e.onClick,r=e.onSwatchHover,o=e.hover,s=e.active,u=e.circleSize,c=e.circleSpacing,f=(0,a.default)({default:{swatch:{width:u,height:u,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+u/2+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:o,active:s});return i.default.createElement("div",{style:f.swatch},i.default.createElement(l.Swatch,{style:f.Swatch,color:t,onClick:n,onHover:r,focusStyle:{boxShadow:f.Swatch.boxShadow+", 0 0 5px "+t}}))};s.defaultProps={circleSize:28,circleSpacing:14},t.default=(0,o.handleHover)(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome=void 0;var i=r(n(0)),o=r(n(1)),a=r(n(2)),l=n(4),s=r(n(507)),u=r(n(508)),c=r(n(509)),f=t.Chrome=function(e){var t=e.onChange,n=e.disableAlpha,r=e.rgb,o=e.hsl,f=e.hsv,p=e.hex,d=e.renderers,h=e.className,g=void 0===h?"":h,v=(0,a.default)({default:{picker:{background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",width:"225px",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},{disableAlpha:n});return i.default.createElement("div",{style:v.picker,className:"chrome-picker "+g},i.default.createElement("div",{style:v.saturation},i.default.createElement(l.Saturation,{style:v.Saturation,hsl:o,hsv:f,pointer:c.default,onChange:t})),i.default.createElement("div",{style:v.body},i.default.createElement("div",{style:v.controls,className:"flexbox-fix"},i.default.createElement("div",{style:v.color},i.default.createElement("div",{style:v.swatch},i.default.createElement("div",{style:v.active}),i.default.createElement(l.Checkboard,{renderers:d}))),i.default.createElement("div",{style:v.toggles},i.default.createElement("div",{style:v.hue},i.default.createElement(l.Hue,{style:v.Hue,hsl:o,pointer:u.default,onChange:t})),i.default.createElement("div",{style:v.alpha},i.default.createElement(l.Alpha,{style:v.Alpha,rgb:r,hsl:o,pointer:u.default,renderers:d,onChange:t})))),i.default.createElement(s.default,{rgb:r,hsl:o,hex:p,onChange:t,disableAlpha:n})))};f.propTypes={disableAlpha:o.default.bool},f.defaultProps={disableAlpha:!1},t.default=(0,l.ColorWrap)(f)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0}),t.ChromeFields=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=r(n(0)),l=r(n(2)),s=r(n(7)),u=n(4),c=t.ChromeFields=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={view:""},r.toggleViews=function(){"hex"===r.state.view?r.setState({view:"rgb"}):"rgb"===r.state.view?r.setState({view:"hsl"}):"hsl"===r.state.view&&(1===r.props.hsl.a?r.setState({view:"hex"}):r.setState({view:"rgb"}))},r.handleChange=function(e,t){e.hex?s.default.isValidHex(e.hex)&&r.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?r.props.onChange({r:e.r||r.props.rgb.r,g:e.g||r.props.rgb.g,b:e.b||r.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&r.props.onChange({h:e.h||r.props.hsl.h,s:Number(e.s&&e.s||r.props.hsl.s),l:Number(e.l&&e.l||r.props.hsl.l),source:"hsl"},t)},r.showHighlight=function(e){e.target.style.background="#eee"},r.hideHighlight=function(e){e.target.style.background="transparent"},i(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.default.Component),o(t,[{key:"componentDidMount",value:function(){1===this.props.hsl.a&&"hex"!==this.state.view?this.setState({view:"hex"}):"rgb"!==this.state.view&&"hsl"!==this.state.view&&this.setState({view:"rgb"})}},{key:"componentWillReceiveProps",value:function(e){1!==e.hsl.a&&"hex"===this.state.view&&this.setState({view:"rgb"})}},{key:"render",value:function(){var e=this,t=(0,l.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=a.default.createElement("div",{style:t.fields,className:"flexbox-fix"},a.default.createElement("div",{style:t.field},a.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=a.default.createElement("div",{style:t.fields,className:"flexbox-fix"},a.default.createElement("div",{style:t.field},a.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),a.default.createElement("div",{style:t.field},a.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),a.default.createElement("div",{style:t.field},a.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),a.default.createElement("div",{style:t.alpha},a.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=a.default.createElement("div",{style:t.fields,className:"flexbox-fix"},a.default.createElement("div",{style:t.field},a.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),a.default.createElement("div",{style:t.field},a.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),a.default.createElement("div",{style:t.field},a.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),a.default.createElement("div",{style:t.alpha},a.default.createElement(u.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),a.default.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,a.default.createElement("div",{style:t.toggle},a.default.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},a.default.createElement("svg",{style:t.svg,viewBox:"0 0 24 24",onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight},a.default.createElement("path",{ref:function(t){return e.iconUp=t},fill:"#333",d:"M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}),a.default.createElement("path",{ref:function(t){return e.iconDown=t},fill:"#333",d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15Z"})))))}}]),t}();t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointer=void 0;var i=r(n(0)),o=r(n(2)),a=t.ChromePointer=function(){var e=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return i.default.createElement("div",{style:e.picker})};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointerCircle=void 0;var i=r(n(0)),o=r(n(2)),a=t.ChromePointerCircle=function(){var e=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return i.default.createElement("div",{style:e.picker})};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Compact=void 0;var i=r(n(0)),o=r(n(1)),a=r(n(2)),l=r(n(19)),s=r(n(7)),u=n(4),c=r(n(511)),f=r(n(512)),p=t.Compact=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,o=e.hex,p=e.rgb,d=e.className,h=void 0===d?"":d,g=(0,a.default)({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}}),v=function(e,n){e.hex?s.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return i.default.createElement(u.Raised,{style:g.Compact},i.default.createElement("div",{style:g.compact,className:"compact-picker "+h},i.default.createElement("div",null,(0,l.default)(r,function(e){return i.default.createElement(c.default,{key:e,color:e,active:e.toLowerCase()===o,onClick:v,onSwatchHover:n})}),i.default.createElement("div",{style:g.clear})),i.default.createElement(f.default,{hex:o,rgb:p,onChange:v})))};p.propTypes={colors:o.default.arrayOf(o.default.string)},p.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"]},t.default=(0,u.ColorWrap)(p)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.CompactColor=void 0;var i=r(n(0)),o=r(n(2)),a=r(n(7)),l=n(4),s=t.CompactColor=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,s=e.onSwatchHover,u=e.active,c=(0,o.default)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:a.default.getContrastingColor(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:u,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return i.default.createElement(l.Swatch,{style:c.color,color:t,onClick:r,onHover:s,focusStyle:{boxShadow:"0 0 4px "+t}},i.default.createElement("div",{style:c.dot}))};t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.CompactFields=void 0;var i=r(n(0)),o=r(n(2)),a=n(4),l=t.CompactFields=function(e){var t=e.hex,n=e.rgb,r=e.onChange,l=(0,o.default)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return i.default.createElement("div",{style:l.fields,className:"flexbox-fix"},i.default.createElement("div",{style:l.active}),i.default.createElement(a.EditableInput,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:t,onChange:s}),i.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:n.r,onChange:s}),i.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:n.g,onChange:s}),i.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:n.b,onChange:s}))};t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Github=void 0;var i=r(n(0)),o=r(n(1)),a=r(n(2)),l=r(n(19)),s=n(4),u=r(n(514)),c=t.Github=function(e){var t=e.width,n=e.colors,r=e.onChange,o=e.onSwatchHover,s=e.triangle,c=e.className,f=void 0===c?"":c,p=(0,a.default)({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},{"hide-triangle":"hide"===s,"top-left-triangle":"top-left"===s,"top-right-triangle":"top-right"===s,"bottom-left-triangle":"bottom-left"==s,"bottom-right-triangle":"bottom-right"===s}),d=function(e,t){return r({hex:e,source:"hex"},t)};return i.default.createElement("div",{style:p.card,className:"github-picker "+f},i.default.createElement("div",{style:p.triangleShadow}),i.default.createElement("div",{style:p.triangle}),(0,l.default)(n,function(e){return i.default.createElement(u.default,{color:e,key:e,onClick:d,onSwatchHover:o})}))};c.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),colors:o.default.arrayOf(o.default.string),triangle:o.default.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"])},c.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left"},t.default=(0,s.ColorWrap)(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.GithubSwatch=void 0;var i=r(n(0)),o=n(2),a=r(o),l=n(4),s=t.GithubSwatch=function(e){var t=e.hover,n=e.color,r=e.onClick,o=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},u=(0,a.default)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:t});return i.default.createElement("div",{style:u.swatch},i.default.createElement(l.Swatch,{color:n,onClick:r,onHover:o,focusStyle:s}))};t.default=(0,o.handleHover)(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.HuePicker=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=r(n(0)),a=r(n(2)),l=n(4),s=r(n(516)),u=t.HuePicker=function(e){var t=e.width,n=e.height,r=e.onChange,s=e.hsl,u=e.direction,c=e.pointer,f=e.className,p=void 0===f?"":f,d=(0,a.default)({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}});return o.default.createElement("div",{style:d.picker,className:"hue-picker "+p},o.default.createElement(l.Hue,i({},d.hue,{hsl:s,pointer:c,onChange:function(e){return r({a:1,h:e.h,l:.5,s:1})},direction:u})))};u.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:s.default},t.default=(0,l.ColorWrap)(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var i=r(n(0)),o=r(n(2)),a=t.SliderPointer=function(e){var t=e.direction,n=(0,o.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return i.default.createElement("div",{style:n.picker})};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Material=void 0;var i=r(n(0)),o=r(n(2)),a=r(n(7)),l=n(4),s=t.Material=function(e){var t=e.onChange,n=e.hex,r=e.rgb,s=e.className,u=void 0===s?"":s,c=(0,o.default)({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}}),f=function(e,n){e.hex?a.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},n)};return i.default.createElement(l.Raised,null,i.default.createElement("div",{style:c.material,className:"material-picker "+u},i.default.createElement(l.EditableInput,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"hex",value:n,onChange:f}),i.default.createElement("div",{style:c.split,className:"flexbox-fix"},i.default.createElement("div",{style:c.third},i.default.createElement(l.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:r.r,onChange:f})),i.default.createElement("div",{style:c.third},i.default.createElement(l.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:r.g,onChange:f})),i.default.createElement("div",{style:c.third},i.default.createElement(l.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:r.b,onChange:f})))))};t.default=(0,l.ColorWrap)(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Photoshop=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=r(n(0)),a=r(n(1)),l=r(n(2)),s=n(4),u=r(n(519)),c=r(n(520)),f=r(n(521)),p=r(n(522)),d=r(n(523)),h=t.Photoshop=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"render",value:function(){var e=this.props.className,t=void 0===e?"":e,n=(0,l.default)({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}});return o.default.createElement("div",{style:n.picker,className:"photoshop-picker "+t},o.default.createElement("div",{style:n.head},this.props.header),o.default.createElement("div",{style:n.body,className:"flexbox-fix"},o.default.createElement("div",{style:n.saturation},o.default.createElement(s.Saturation,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:c.default,onChange:this.props.onChange})),o.default.createElement("div",{style:n.hue},o.default.createElement(s.Hue,{direction:"vertical",hsl:this.props.hsl,pointer:f.default,onChange:this.props.onChange})),o.default.createElement("div",{style:n.controls},o.default.createElement("div",{style:n.top,className:"flexbox-fix"},o.default.createElement("div",{style:n.previews},o.default.createElement(d.default,{rgb:this.props.rgb,currentColor:this.state.currentColor})),o.default.createElement("div",{style:n.actions},o.default.createElement(p.default,{label:"OK",onClick:this.props.onAccept,active:!0}),o.default.createElement(p.default,{label:"Cancel",onClick:this.props.onCancel}),o.default.createElement(u.default,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}();h.propTypes={header:a.default.string},h.defaultProps={header:"Color Picker"},t.default=(0,s.ColorWrap)(h)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPicker=void 0;var i=r(n(0)),o=r(n(2)),a=r(n(7)),l=n(4),s=t.PhotoshopPicker=function(e){var t=e.onChange,n=e.rgb,r=e.hsv,s=e.hex,u=(0,o.default)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),c=function(e,i){e["#"]?a.default.isValidHex(e["#"])&&t({hex:e["#"],source:"hex"},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},i):(e.h||e.s||e.v)&&t({h:e.h||r.h,s:e.s||r.s,v:e.v||r.v,source:"hsv"},i)};return i.default.createElement("div",{style:u.fields},i.default.createElement(l.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"h",value:Math.round(r.h),onChange:c}),i.default.createElement(l.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"s",value:Math.round(100*r.s),onChange:c}),i.default.createElement(l.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"v",value:Math.round(100*r.v),onChange:c}),i.default.createElement("div",{style:u.divider}),i.default.createElement(l.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"r",value:n.r,onChange:c}),i.default.createElement(l.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"g",value:n.g,onChange:c}),i.default.createElement(l.EditableInput,{style:{wrap:u.RGBwrap,input:u.RGBinput,label:u.RGBlabel},label:"b",value:n.b,onChange:c}),i.default.createElement("div",{style:u.divider}),i.default.createElement(l.EditableInput,{style:{wrap:u.HEXwrap,input:u.HEXinput,label:u.HEXlabel},label:"#",value:s.replace("#",""),onChange:c}),i.default.createElement("div",{style:u.fieldSymbols},i.default.createElement("div",{style:u.symbol},"°"),i.default.createElement("div",{style:u.symbol},"%"),i.default.createElement("div",{style:u.symbol},"%")))};t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var i=r(n(0)),o=r(n(2)),a=t.PhotoshopPointerCircle=function(e){var t=e.hsl,n=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return i.default.createElement("div",{style:n.picker})};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var i=r(n(0)),o=r(n(2)),a=t.PhotoshopPointerCircle=function(){var e=(0,o.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return i.default.createElement("div",{style:e.pointer},i.default.createElement("div",{style:e.left},i.default.createElement("div",{style:e.leftInside})),i.default.createElement("div",{style:e.right},i.default.createElement("div",{style:e.rightInside})))};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopBotton=void 0;var i=r(n(0)),o=r(n(2)),a=t.PhotoshopBotton=function(e){var t=e.onClick,n=e.label,r=e.children,a=e.active,l=(0,o.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return i.default.createElement("div",{style:l.button,onClick:t},n||r)};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPreviews=void 0;var i=r(n(0)),o=r(n(2)),a=t.PhotoshopPreviews=function(e){var t=e.rgb,n=e.currentColor,r=(0,o.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return i.default.createElement("div",null,i.default.createElement("div",{style:r.label},"new"),i.default.createElement("div",{style:r.swatches},i.default.createElement("div",{style:r.new}),i.default.createElement("div",{style:r.current})),i.default.createElement("div",{style:r.label},"current"))};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Sketch=void 0;var i=r(n(0)),o=r(n(1)),a=r(n(2)),l=n(4),s=r(n(525)),u=r(n(526)),c=t.Sketch=function(e){var t=e.width,n=e.rgb,r=e.hex,o=e.hsv,c=e.hsl,f=e.onChange,p=e.onSwatchHover,d=e.disableAlpha,h=e.presetColors,g=e.renderers,v=e.className,m=void 0===v?"":v,y=(0,a.default)({default:{picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},{disableAlpha:d});return i.default.createElement("div",{style:y.picker,className:"sketch-picker "+m},i.default.createElement("div",{style:y.saturation},i.default.createElement(l.Saturation,{style:y.Saturation,hsl:c,hsv:o,onChange:f})),i.default.createElement("div",{style:y.controls,className:"flexbox-fix"},i.default.createElement("div",{style:y.sliders},i.default.createElement("div",{style:y.hue},i.default.createElement(l.Hue,{style:y.Hue,hsl:c,onChange:f})),i.default.createElement("div",{style:y.alpha},i.default.createElement(l.Alpha,{style:y.Alpha,rgb:n,hsl:c,renderers:g,onChange:f}))),i.default.createElement("div",{style:y.color},i.default.createElement(l.Checkboard,null),i.default.createElement("div",{style:y.activeColor}))),i.default.createElement(s.default,{rgb:n,hsl:c,hex:r,onChange:f,disableAlpha:d}),i.default.createElement(u.default,{colors:h,onClick:f,onSwatchHover:p}))};c.propTypes={disableAlpha:o.default.bool,width:o.default.oneOfType([o.default.string,o.default.number])},c.defaultProps={disableAlpha:!1,width:200,presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},t.default=(0,l.ColorWrap)(c)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SketchFields=void 0;var i=r(n(0)),o=r(n(2)),a=r(n(7)),l=n(4),s=t.SketchFields=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,s=e.hex,u=e.disableAlpha,c=(0,o.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:u}),f=function(e,i){e.hex?a.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},i):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},i):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},i))};return i.default.createElement("div",{style:c.fields,className:"flexbox-fix"},i.default.createElement("div",{style:c.double},i.default.createElement(l.EditableInput,{style:{input:c.input,label:c.label},label:"hex",value:s.replace("#",""),onChange:f})),i.default.createElement("div",{style:c.single},i.default.createElement(l.EditableInput,{style:{input:c.input,label:c.label},label:"r",value:n.r,onChange:f,dragLabel:"true",dragMax:"255"})),i.default.createElement("div",{style:c.single},i.default.createElement(l.EditableInput,{style:{input:c.input,label:c.label},label:"g",value:n.g,onChange:f,dragLabel:"true",dragMax:"255"})),i.default.createElement("div",{style:c.single},i.default.createElement(l.EditableInput,{style:{input:c.input,label:c.label},label:"b",value:n.b,onChange:f,dragLabel:"true",dragMax:"255"})),i.default.createElement("div",{style:c.alpha},i.default.createElement(l.EditableInput,{style:{input:c.input,label:c.label},label:"a",value:Math.round(100*n.a),onChange:f,dragLabel:"true",dragMax:"100"})))};t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SketchPresetColors=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=r(n(0)),a=r(n(1)),l=r(n(2)),s=n(4),u=t.SketchPresetColors=function(e){var t=e.colors,n=e.onClick,r=void 0===n?function(){}:n,a=e.onSwatchHover,u=(0,l.default)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),c=function(e,t){r({hex:e,source:"hex"},t)};return o.default.createElement("div",{style:u.colors,className:"flexbox-fix"},t.map(function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return o.default.createElement("div",{key:n,style:u.swatchWrap},o.default.createElement(s.Swatch,i({},t,{style:u.swatch,onClick:c,onHover:a,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))}))};u.propTypes={colors:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.shape({color:a.default.string,title:a.default.string})])).isRequired},t.default=u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Slider=void 0;var i=r(n(0)),o=r(n(2)),a=n(4),l=r(n(528)),s=r(n(530)),u=t.Slider=function(e){var t=e.hsl,n=e.onChange,r=e.pointer,s=e.className,u=void 0===s?"":s,c=(0,o.default)({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}});return i.default.createElement("div",{className:"slider-picker "+u},i.default.createElement("div",{style:c.hue},i.default.createElement(a.Hue,{style:c.Hue,hsl:t,pointer:r,onChange:n})),i.default.createElement("div",{style:c.swatches},i.default.createElement(l.default,{hsl:t,onClick:n})))};u.defaultProps={pointer:s.default},t.default=(0,a.ColorWrap)(u)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatches=void 0;var i=r(n(0)),o=r(n(2)),a=r(n(529)),l=t.SliderSwatches=function(e){var t=e.onClick,n=e.hsl,r=(0,o.default)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}});return i.default.createElement("div",{style:r.swatches},i.default.createElement("div",{style:r.swatch},i.default.createElement(a.default,{hsl:n,offset:".80",active:Math.round(100*n.l)/100==.8&&Math.round(100*n.s)/100==.5,onClick:t,first:!0})),i.default.createElement("div",{style:r.swatch},i.default.createElement(a.default,{hsl:n,offset:".65",active:Math.round(100*n.l)/100==.65&&Math.round(100*n.s)/100==.5,onClick:t})),i.default.createElement("div",{style:r.swatch},i.default.createElement(a.default,{hsl:n,offset:".50",active:Math.round(100*n.l)/100==.5&&Math.round(100*n.s)/100==.5,onClick:t})),i.default.createElement("div",{style:r.swatch},i.default.createElement(a.default,{hsl:n,offset:".35",active:Math.round(100*n.l)/100==.35&&Math.round(100*n.s)/100==.5,onClick:t})),i.default.createElement("div",{style:r.swatch},i.default.createElement(a.default,{hsl:n,offset:".20",active:Math.round(100*n.l)/100==.2&&Math.round(100*n.s)/100==.5,onClick:t,last:!0})),i.default.createElement("div",{style:r.clear}))};t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatch=void 0;var i=r(n(0)),o=r(n(2)),a=t.SliderSwatch=function(e){var t=e.hsl,n=e.offset,r=e.onClick,a=void 0===r?function(){}:r,l=e.active,s=e.first,u=e.last,c=(0,o.default)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:l,first:s,last:u});return i.default.createElement("div",{style:c.swatch,onClick:function(e){return a({h:t.h,s:.5,l:n,source:"hsl"},e)}})};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var i=r(n(0)),o=r(n(2)),a=t.SliderPointer=function(){var e=(0,o.default)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return i.default.createElement("div",{style:e.picker})};t.default=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Swatches=void 0;var i=r(n(0)),o=r(n(1)),a=r(n(2)),l=r(n(19)),s=r(n(7)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(167)),c=n(4),f=r(n(532)),p=t.Swatches=function(e){var t=e.width,n=e.height,r=e.onChange,o=e.onSwatchHover,u=e.colors,p=e.hex,d=e.className,h=void 0===d?"":d,g=(0,a.default)({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}}),v=function(e,t){s.default.isValidHex(e)&&r({hex:e,source:"hex"},t)};return i.default.createElement("div",{style:g.picker,className:"swatches-picker "+h},i.default.createElement(c.Raised,null,i.default.createElement("div",{style:g.overflow},i.default.createElement("div",{style:g.body},(0,l.default)(u,function(e){return i.default.createElement(f.default,{key:e.toString(),group:e,active:p,onClick:v,onSwatchHover:o})}),i.default.createElement("div",{style:g.clear})))))};p.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),height:o.default.oneOfType([o.default.string,o.default.number]),colors:o.default.arrayOf(o.default.arrayOf(o.default.string))},p.defaultProps={width:320,height:240,colors:[[u.red[900],u.red[700],u.red[500],u.red[300],u.red[100]],[u.pink[900],u.pink[700],u.pink[500],u.pink[300],u.pink[100]],[u.purple[900],u.purple[700],u.purple[500],u.purple[300],u.purple[100]],[u.deepPurple[900],u.deepPurple[700],u.deepPurple[500],u.deepPurple[300],u.deepPurple[100]],[u.indigo[900],u.indigo[700],u.indigo[500],u.indigo[300],u.indigo[100]],[u.blue[900],u.blue[700],u.blue[500],u.blue[300],u.blue[100]],[u.lightBlue[900],u.lightBlue[700],u.lightBlue[500],u.lightBlue[300],u.lightBlue[100]],[u.cyan[900],u.cyan[700],u.cyan[500],u.cyan[300],u.cyan[100]],[u.teal[900],u.teal[700],u.teal[500],u.teal[300],u.teal[100]],["#194D33",u.green[700],u.green[500],u.green[300],u.green[100]],[u.lightGreen[900],u.lightGreen[700],u.lightGreen[500],u.lightGreen[300],u.lightGreen[100]],[u.lime[900],u.lime[700],u.lime[500],u.lime[300],u.lime[100]],[u.yellow[900],u.yellow[700],u.yellow[500],u.yellow[300],u.yellow[100]],[u.amber[900],u.amber[700],u.amber[500],u.amber[300],u.amber[100]],[u.orange[900],u.orange[700],u.orange[500],u.orange[300],u.orange[100]],[u.deepOrange[900],u.deepOrange[700],u.deepOrange[500],u.deepOrange[300],u.deepOrange[100]],[u.brown[900],u.brown[700],u.brown[500],u.brown[300],u.brown[100]],[u.blueGrey[900],u.blueGrey[700],u.blueGrey[500],u.blueGrey[300],u.blueGrey[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]]},t.default=(0,c.ColorWrap)(p)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesGroup=void 0;var i=r(n(0)),o=r(n(2)),a=r(n(19)),l=r(n(533)),s=t.SwatchesGroup=function(e){var t=e.onClick,n=e.onSwatchHover,r=e.group,s=e.active,u=(0,o.default)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return i.default.createElement("div",{style:u.group},(0,a.default)(r,function(e,o){return i.default.createElement(l.default,{key:e,color:e,active:e.toLowerCase()===s,first:0===o,last:o===r.length-1,onClick:t,onSwatchHover:n})}))};t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesColor=void 0;var i=r(n(0)),o=r(n(2)),a=r(n(7)),l=n(4),s=t.SwatchesColor=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,s=e.onSwatchHover,u=e.first,c=e.last,f=e.active,p=(0,o.default)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{fill:a.default.getContrastingColor(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{fill:"#333"}},transparent:{check:{fill:"#333"}}},{first:u,last:c,active:f,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return i.default.createElement(l.Swatch,{color:t,style:p.color,onClick:r,onHover:s,focusStyle:{boxShadow:"0 0 4px "+t}},i.default.createElement("div",{style:p.check},i.default.createElement("svg",{style:{width:"24px",height:"24px"},viewBox:"0 0 24 24"},i.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))))};t.default=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Twitter=void 0;var i=r(n(0)),o=r(n(1)),a=r(n(2)),l=r(n(19)),s=r(n(7)),u=n(4),c=t.Twitter=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,o=e.colors,c=e.width,f=e.triangle,p=e.className,d=void 0===p?"":p,h=(0,a.default)({default:{card:{width:c,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{to
|