Slider by Soliloquy – Responsive Image Slider for WordPress - Version 2.7.1

Version Description

  • Fixes: Admin escaping.
Download this release

Release Info

Developer chrisakelley
Plugin Icon 128x128 Slider by Soliloquy – Responsive Image Slider for WordPress
Version 2.7.1
Comparing to
See all releases

Code changes from version 2.5.1.3 to 2.7.1

Files changed (82) hide show
  1. assets/css/addons.css +11 -901
  2. assets/css/codemirror.css +66 -66
  3. assets/css/fonts.css +51 -51
  4. assets/css/global.css +1 -0
  5. assets/css/images/circle-hover.png +0 -0
  6. assets/css/images/circle-hover@2x.png +0 -0
  7. assets/css/images/circle.png +0 -0
  8. assets/css/images/circle@2x.png +0 -0
  9. assets/css/images/delete.png +0 -0
  10. assets/css/images/delete@2x.png +0 -0
  11. assets/css/images/down.png +0 -0
  12. assets/css/images/down@2x.png +0 -0
  13. assets/css/images/editor-icon.png +0 -0
  14. assets/css/images/editor-icon@2x.png +0 -0
  15. assets/css/images/holder.gif +0 -0
  16. assets/css/images/left.png +0 -0
  17. assets/css/images/left@2x.png +0 -0
  18. assets/css/images/menu-icon.png +0 -0
  19. assets/css/images/menu-icon@2x.png +0 -0
  20. assets/css/images/meta-active.png +0 -0
  21. assets/css/images/meta-active@2x.png +0 -0
  22. assets/css/images/meta.png +0 -0
  23. assets/css/images/meta@2x.png +0 -0
  24. assets/css/images/modify.png +0 -0
  25. assets/css/images/modify@2x.png +0 -0
  26. assets/css/images/pause.png +0 -0
  27. assets/css/images/pause@2x.png +0 -0
  28. assets/css/images/play.png +0 -0
  29. assets/css/images/play@2x.png +0 -0
  30. assets/css/images/preloader.gif +0 -0
  31. assets/css/images/preloader@2x.gif +0 -0
  32. assets/css/images/right.png +0 -0
  33. assets/css/images/right@2x.png +0 -0
  34. assets/css/images/up.png +0 -0
  35. assets/css/images/up@2x.png +0 -0
  36. assets/css/images/video-mini.png +0 -0
  37. assets/css/images/video.png +0 -0
  38. assets/css/images/video@2x.png +0 -0
  39. assets/css/media-edit.css +4 -4
  40. assets/css/metabox.css +11 -11
  41. assets/css/modal.css +1 -1
  42. assets/css/overview.css +11 -11
  43. assets/css/settings.css +11 -820
  44. assets/css/soliloquy.css +1 -334
  45. assets/css/welcome.css +1 -0
  46. assets/images/fc.png +0 -0
  47. assets/images/features/carousel-addon.png +0 -0
  48. assets/images/features/dynamic-addon.png +0 -0
  49. assets/images/features/featured-content-addon.png +0 -0
  50. assets/images/features/instagram-addon.png +0 -0
  51. assets/images/features/pdf-addon.png +0 -0
  52. assets/images/features/schedule-addon.png +0 -0
  53. assets/images/features/thumbnails-addon.png +0 -0
  54. assets/images/features/woo-addon.png +0 -0
  55. assets/images/html.png +0 -0
  56. assets/images/instagram.png +0 -0
  57. assets/images/logo-color.png +0 -0
  58. assets/images/partners/allinone.png +0 -0
  59. assets/images/partners/envira.png +0 -0
  60. assets/images/partners/forminator.gif +0 -0
  61. assets/images/partners/google-apps.png +0 -0
  62. assets/images/partners/google-drive.png +0 -0
  63. assets/images/partners/imagify.svg +32 -0
  64. assets/images/partners/pdf-embedder.png +0 -0
  65. assets/images/partners/shortpixel.png +0 -0
  66. assets/images/partners/smush.gif +0 -0
  67. assets/images/partners/soliloquy.png +0 -0
  68. assets/images/partners/sugar-calendar.png +0 -0
  69. assets/images/partners/the-events-calendar.gif +0 -0
  70. assets/images/soliloquy-admin.png +0 -0
  71. assets/images/soliloquy-logo.png +0 -0
  72. assets/images/video.png +0 -0
  73. assets/images/vimeo.png +0 -0
  74. assets/images/wistia.png +0 -0
  75. assets/images/woo.png +0 -0
  76. assets/images/youtube.png +0 -0
  77. assets/js/addons.js +431 -431
  78. assets/js/codemirror.js +11 -11
  79. assets/js/editor.js +123 -122
  80. assets/js/lib/bxslider.js +1481 -1481
  81. assets/js/lib/chosen.jquery.js +1284 -1284
  82. assets/js/lib/codemirror.js +0 -2
assets/css/addons.css CHANGED
@@ -1,901 +1,11 @@
1
- /* ==========================================================================
2
- Icon Font
3
- ========================================================================== */
4
- @font-face {
5
- font-family: 'soliloquy';
6
- src: url("../fonts/soliloquy.eot");
7
- src: url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"), url("../fonts/soliloquy.woff") format("woff"), url("../fonts/soliloquy.ttf") format("truetype"), url("../fonts/soliloquy.svg#soliloquy") format("svg");
8
- font-weight: normal;
9
- font-style: normal; }
10
- [class*='soliloquy-icon-']:before {
11
- display: inline-block;
12
- font-family: 'soliloquy';
13
- font-style: normal;
14
- font-weight: normal;
15
- font-size: 13px;
16
- line-height: 1.5;
17
- margin-right: 8px;
18
- -webkit-font-smoothing: antialiased;
19
- -moz-osx-font-smoothing: grayscale; }
20
-
21
- .soliloquy-icon-configuration:before {
22
- content: '\0041'; }
23
-
24
- .soliloquy-icon-soliloquy:before {
25
- content: '\0042'; }
26
-
27
- .soliloquy-icon-pinterest:before {
28
- content: '\0043'; }
29
-
30
- .soliloquy-icon-lightbox:before {
31
- content: '\0044'; }
32
-
33
- .soliloquy-icon-misc:before {
34
- content: '\0045'; }
35
-
36
- .soliloquy-icon-mobile:before {
37
- content: '\0046'; }
38
-
39
- .soliloquy-icon-pagination:before {
40
- content: '\0047'; }
41
-
42
- .soliloquy-icon-proofing:before {
43
- content: '\0048'; }
44
-
45
- .soliloquy-icon-slideshow:before {
46
- content: '\0049'; }
47
-
48
- .soliloquy-icon-tags:before {
49
- content: '\004a'; }
50
-
51
- .soliloquy-icon-thumbnails:before {
52
- content: '\004b'; }
53
-
54
- .soliloquy-icon-video:before {
55
- content: '\004c'; }
56
-
57
- .soliloquy-icon-watermark:before {
58
- content: '\004d'; }
59
-
60
- .soliloquy-icon-cloud-download:before {
61
- content: '\004e'; }
62
-
63
- .soliloquy-icon-toggle-on:before {
64
- content: '\004f'; }
65
-
66
- .soliloquy-icon-plus-circle:before {
67
- content: '\0050'; }
68
-
69
- .soliloquy-icon-list:before {
70
- content: '\0052'; }
71
-
72
- .soliloquy-icon-grid:before {
73
- content: '\0053'; }
74
-
75
- .soliloquy-icon-pencil:before {
76
- content: '\0055'; }
77
-
78
- .soliloquy-icon-close:before {
79
- content: '\0056'; }
80
-
81
- .soliloquy-icon-check:before {
82
- content: '\0057'; }
83
-
84
- .soliloquy-icon-schedule:before {
85
- content: '\0058'; }
86
-
87
- .soliloquy-icon-carousel:before {
88
- content: '\0059'; }
89
-
90
- /* ==========================================================================
91
- Header Styles
92
- ========================================================================== */
93
- #soliloquy-header {
94
- background-color: #ff3700;
95
- height: 120px;
96
- margin-left: -20px; }
97
- #soliloquy-header #soliloquy-logo {
98
- margin: 0;
99
- padding-top: 25px;
100
- line-height: 120px;
101
- margin-left: 20px; }
102
- #soliloquy-header #soliloquy-logo img {
103
- max-width: 288px; }
104
-
105
- /* ==========================================================================
106
- Global Styles
107
- ========================================================================== */
108
- .wp-core-ui .button-soliloquy {
109
- background: #ff3700;
110
- border-color: #ff3700;
111
- -webkit-box-shadow: none;
112
- box-shadow: none;
113
- color: white;
114
- text-decoration: none;
115
- font-weight: 500;
116
- text-shadow: none;
117
- line-height: 15px;
118
- height: 35px;
119
- font-size: 13px;
120
- padding: 0 20px 1px; }
121
- .wp-core-ui .button-soliloquy:hover {
122
- background: #ff3700;
123
- border-color: #ff3700;
124
- color: white;
125
- opacity: .8; }
126
- .wp-core-ui .button-soliloquy-secondary {
127
- background: #f7f7f7;
128
- border: 1px solid;
129
- border-color: #dddddd;
130
- -webkit-box-shadow: none;
131
- box-shadow: none;
132
- color: #23282d;
133
- text-decoration: none;
134
- text-shadow: none;
135
- font-weight: bold;
136
- height: 35px;
137
- font-size: 13px;
138
- padding: 0 20px 1px; }
139
- .wp-core-ui .button-soliloquy-secondary:hover {
140
- background: #f7f7f7;
141
- border-color: #999999;
142
- color: #23282d; }
143
- .wp-core-ui .button-soliloquy-delete {
144
- background: #e3231b;
145
- border: 1px solid;
146
- border-color: #e3231b;
147
- -webkit-box-shadow: none;
148
- box-shadow: none;
149
- color: white;
150
- text-decoration: none;
151
- text-shadow: none;
152
- font-weight: bold;
153
- height: 35px;
154
- font-size: 13px;
155
- padding: 0 20px 1px; }
156
- .wp-core-ui .button-soliloquy-delete:hover {
157
- background: #e3231b;
158
- color: white;
159
- opacity: .8; }
160
- .wp-core-ui a.button-soliloquy,
161
- .wp-core-ui a.button-soliloquy-secondary,
162
- .wp-core-ui a.button-soliloquy-delete {
163
- line-height: 32px; }
164
-
165
- #soliloquy-settings-content input:not([type=checkbox]) {
166
- background-color: white;
167
- border: 1px solid #ddd;
168
- -webkit-box-shadow: none;
169
- box-shadow: none;
170
- color: #32373c;
171
- height: 35px;
172
- outline: none;
173
- -webkit-transition: 0.05s border-color ease-in-out;
174
- transition: 0.05s border-color ease-in-out; }
175
- #soliloquy-settings-content input[type=checkbox]:checked {
176
- -color: #ff3700; }
177
- #soliloquy-settings-content textarea {
178
- width: 100%; }
179
- #soliloquy-settings-content input[type="password"].soliloquy-input {
180
- background-color: white;
181
- border: 1px solid #ddd;
182
- -webkit-box-shadow: none;
183
- box-shadow: none;
184
- color: #32373c;
185
- outline: none;
186
- -webkit-transition: 0.05s border-color ease-in-out;
187
- transition: 0.05s border-color ease-in-out; }
188
-
189
- input[type="password"].soliloquy-input {
190
- background-color: white;
191
- border: 1px solid #ddd;
192
- -webkit-box-shadow: none;
193
- box-shadow: none;
194
- height: 35px;
195
- color: #32373c;
196
- outline: none;
197
- -webkit-transition: 0.05s border-color ease-in-out;
198
- transition: 0.05s border-color ease-in-out; }
199
-
200
- pre.soliloquy-code {
201
- background-color: #dddddd;
202
- border-radius: 3px;
203
- padding: 15px; }
204
-
205
- .soliloquy-clipboard {
206
- display: block;
207
- text-decoration: underline !important;
208
- padding-top: 8px;
209
- font-size: 11px;
210
- outline: 0 !important; }
211
- .soliloquy-clipboard:focus {
212
- outline-style: none;
213
- box-shadow: none;
214
- border-color: transparent; }
215
-
216
- .soliloquy-code {
217
- display: block;
218
- background-color: #f7f7f7;
219
- border-radius: 3px;
220
- padding: 10px !important; }
221
-
222
- /* ==========================================================================
223
- Utilities
224
- ========================================================================== */
225
- .soliloquy-list-inline {
226
- margin: 0;
227
- list-style: none; }
228
- .soliloquy-list-inline li {
229
- display: inline-block;
230
- margin-right: 5px; }
231
- .soliloquy-list-inline li:last-child {
232
- margin-right: 0 !important; }
233
-
234
- .soliloquy-yt iframe {
235
- max-width: 100%;
236
- height: auto; }
237
-
238
- .soliloquy-hidden {
239
- display: none !important; }
240
-
241
- .soliloquy-hideme {
242
- visibility: hidden; }
243
-
244
- .soliloquy-no-border {
245
- border: none !important; }
246
-
247
- .soliloquy-right {
248
- float: right; }
249
-
250
- .soliloquy-left {
251
- float: left; }
252
-
253
- .soliloquy-clearfix {
254
- clear: both;
255
- display: block;
256
- height: 0;
257
- overflow: hidden;
258
- visibility: hidden;
259
- width: 0; }
260
-
261
- .no-margin {
262
- margin: 0 !important; }
263
-
264
- .no-margin-top {
265
- margin-top: 0 !important; }
266
-
267
- .no-margin-bottom {
268
- margin-bottom: 0 !important; }
269
-
270
- /* Add this attribute to the element that needs a tooltip */
271
- [data-soliloquy-tooltip] {
272
- position: relative;
273
- z-index: 2;
274
- cursor: pointer; }
275
-
276
- /* Hide the tooltip content by default */
277
- [data-soliloquy-tooltip]:before,
278
- [data-soliloquy-tooltip]:after {
279
- visibility: hidden;
280
- opacity: 0;
281
- pointer-events: none; }
282
-
283
- /* Position tooltip above the element */
284
- [data-soliloquy-tooltip]:before {
285
- position: absolute;
286
- bottom: 120%;
287
- left: 50%;
288
- margin-bottom: 5px;
289
- margin-left: -35px;
290
- padding: 7px;
291
- width: 60px;
292
- -webkit-border-radius: 3px;
293
- -moz-border-radius: 3px;
294
- border-radius: 3px;
295
- background-color: #000;
296
- color: #fff;
297
- content: attr(data-soliloquy-tooltip);
298
- text-align: center;
299
- font-size: 12px;
300
- line-height: 1.2; }
301
-
302
- /* Triangle hack to make tooltip look like a speech bubble */
303
- [data-soliloquy-tooltip]:after {
304
- position: absolute;
305
- bottom: 120%;
306
- left: 50%;
307
- width: 0;
308
- margin-left: -5px;
309
- border-top: 5px solid #000;
310
- border-right: 5px solid transparent;
311
- border-left: 5px solid transparent;
312
- content: " ";
313
- font-size: 0;
314
- line-height: 0; }
315
-
316
- /* Show tooltip content on hover */
317
- [data-soliloquy-tooltip]:hover:before,
318
- [data-soliloquy-tooltip]:hover:after {
319
- visibility: visible;
320
- opacity: 1; }
321
-
322
- .soliloquy-alert {
323
- position: relative;
324
- margin: 0 0 20px 0;
325
- padding: 20px;
326
- -webkit-border-radius: 2px;
327
- -moz-border-radius: 2px;
328
- -o-border-radius: 2px;
329
- border-radius: 2px;
330
- background: #fcf8e3; }
331
-
332
- [class*=soliloquy-grid-] {
333
- float: left;
334
- margin-left: 2%; }
335
- [class*=soliloquy-grid-] input[type=text] {
336
- width: 100% !important; }
337
-
338
- .soliloquy-grid-1 {
339
- width: 6.5%; }
340
-
341
- .soliloquy-grid-2 {
342
- width: 15%; }
343
-
344
- .soliloquy-grid-3 {
345
- width: 23.5%; }
346
-
347
- .soliloquy-grid-4 {
348
- width: 32%; }
349
-
350
- .soliloquy-grid-5 {
351
- width: 40.5%; }
352
-
353
- .soliloquy-grid-6 {
354
- width: 49%; }
355
-
356
- .soliloquy-grid-7 {
357
- width: 57.5%; }
358
-
359
- .soliloquy-grid-8 {
360
- width: 66%; }
361
-
362
- .soliloquy-grid-9 {
363
- width: 74.5%; }
364
-
365
- .soliloquy-grid-10 {
366
- width: 83%; }
367
-
368
- .soliloquy-grid-11 {
369
- width: 91.5%; }
370
-
371
- .soliloquy-grid-12 {
372
- width: 100%; }
373
-
374
- .soliloquy-first {
375
- margin-left: 0px; }
376
-
377
- /*!
378
- Chosen, a Select Box Enhancer for jQuery and Prototype
379
- by Patrick Filler for Harvest, http://getharvest.com
380
-
381
- Version 1.5.1
382
- Full source at https://github.com/harvesthq/chosen
383
- Copyright (c) 2011-2016 Harvest http://getharvest.com
384
-
385
- MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
386
- This file is generated by `grunt build`, do not edit it by hand.
387
- */
388
- .soliloquy-select {
389
- /* @group Base */
390
- /* @end */
391
- /* @group Single Chosen */
392
- /* @end */
393
- /* @group Results */
394
- /* @end */
395
- /* @group Multi Chosen */
396
- /* @end */
397
- /* @group Active */
398
- /* @end */
399
- /* @group Disabled Support */
400
- /* @end */
401
- /* @group Right to Left */
402
- /* @end */
403
- /* @group Retina compatibility */
404
- /* @end */ }
405
- .soliloquy-select * {
406
- box-shadow: none !important;
407
- background-image: none !important; }
408
- .soliloquy-select *:after {
409
- background-image: none !important; }
410
- .soliloquy-select .soliloquy-chosen {
411
- height: 35px;
412
- max-width: 350px;
413
- width: 100%; }
414
- .soliloquy-select .chosen-container {
415
- position: relative;
416
- display: inline-block;
417
- vertical-align: middle;
418
- font-size: 13px;
419
- -webkit-user-select: none;
420
- -moz-user-select: none;
421
- user-select: none;
422
- max-width: 350px;
423
- font-weight: 600; }
424
- .soliloquy-select .chosen-container * {
425
- -webkit-box-sizing: border-box;
426
- -moz-box-sizing: border-box;
427
- box-sizing: border-box; }
428
- .soliloquy-select .chosen-container .chosen-drop {
429
- position: absolute;
430
- top: 100%;
431
- left: -9999px;
432
- z-index: 1010;
433
- width: 100%;
434
- border: 1px solid #dddddd;
435
- border-top: 0;
436
- background: white; }
437
- .soliloquy-select .chosen-container.chosen-with-drop .chosen-drop {
438
- left: 0; }
439
- .soliloquy-select .chosen-container a {
440
- cursor: pointer; }
441
- .soliloquy-select .chosen-container .search-choice .group-name, .soliloquy-select .chosen-container .chosen-single .group-name {
442
- margin-right: 4px;
443
- overflow: hidden;
444
- white-space: nowrap;
445
- text-overflow: ellipsis;
446
- font-weight: normal;
447
- color: #999999; }
448
- .soliloquy-select .chosen-container .search-choice .group-name:after, .soliloquy-select .chosen-container .chosen-single .group-name:after {
449
- content: ":";
450
- padding-left: 2px;
451
- vertical-align: top; }
452
- .soliloquy-select .chosen-container-single .chosen-single {
453
- position: relative;
454
- display: block;
455
- overflow: hidden;
456
- padding: 0 0 0 8px;
457
- height: 35px;
458
- border: 1px solid #dddddd;
459
- border-radius: 3px;
460
- background: white;
461
- background-clip: padding-box;
462
- color: #444;
463
- text-decoration: none;
464
- white-space: nowrap;
465
- line-height: 35px; }
466
- .soliloquy-select .chosen-container-single .chosen-default {
467
- color: #999; }
468
- .soliloquy-select .chosen-container-single .chosen-single span {
469
- display: block;
470
- overflow: hidden;
471
- margin-right: 26px;
472
- text-overflow: ellipsis;
473
- white-space: nowrap; }
474
- .soliloquy-select .chosen-container-single .chosen-single-with-deselect span {
475
- margin-right: 38px; }
476
- .soliloquy-select .chosen-container-single .chosen-single abbr {
477
- position: absolute;
478
- top: 6px;
479
- right: 26px;
480
- display: block;
481
- width: 12px;
482
- height: 12px;
483
- font-size: 1px; }
484
- .soliloquy-select .chosen-container-single .chosen-single abbr:hover {
485
- background-position: -42px -10px; }
486
- .soliloquy-select .chosen-container-single.chosen-disabled .chosen-single abbr:hover {
487
- background-position: -42px -10px; }
488
- .soliloquy-select .chosen-container-single .chosen-single div {
489
- border-left: 1px solid #dddddd;
490
- position: absolute;
491
- top: 0;
492
- right: 0;
493
- display: block;
494
- width: 30px;
495
- height: 100%;
496
- padding-left: 9px; }
497
- .soliloquy-select .chosen-container-single .chosen-single div b {
498
- display: block;
499
- width: 100%;
500
- height: 100%;
501
- line-height: 35px; }
502
- .soliloquy-select .chosen-container-single .chosen-single div b:before {
503
- content: "\0051";
504
- display: block;
505
- font-weight: normal;
506
- font-size: 8px !important;
507
- font-family: 'soliloquy';
508
- position: absolute;
509
- text-align: center; }
510
- .soliloquy-select .chosen-container-single .chosen-search {
511
- position: relative;
512
- z-index: 1010;
513
- margin: 0;
514
- padding: 3px 4px;
515
- white-space: nowrap; }
516
- .soliloquy-select .chosen-container-single .chosen-search input[type="text"] {
517
- margin: 1px 0;
518
- padding: 4px 20px 4px 5px;
519
- width: 100%;
520
- height: auto;
521
- outline: 0;
522
- border: 1px solid #dddddd;
523
- background: white url("chosen-sprite.png") no-repeat 100% -20px;
524
- background: url("chosen-sprite.png") no-repeat 100% -20px;
525
- font-size: 1em;
526
- font-family: sans-serif;
527
- line-height: normal;
528
- border-radius: 0; }
529
- .soliloquy-select .chosen-container-single .chosen-drop {
530
- margin-top: -1px;
531
- border-radius: 0 0 2px 2px;
532
- background-clip: padding-box; }
533
- .soliloquy-select .chosen-container-single.chosen-container-single-nosearch .chosen-search {
534
- position: absolute;
535
- left: -9999px; }
536
- .soliloquy-select .chosen-container .chosen-results {
537
- color: #444;
538
- position: relative;
539
- overflow-x: hidden;
540
- overflow-y: auto;
541
- margin: 0 4px 4px 0;
542
- padding: 0 0 0 4px;
543
- max-height: 240px;
544
- -webkit-overflow-scrolling: touch; }
545
- .soliloquy-select .chosen-container .chosen-results li {
546
- display: none;
547
- margin: 0;
548
- padding: 5px 6px;
549
- list-style: none;
550
- line-height: 15px;
551
- word-wrap: break-word;
552
- -webkit-touch-callout: none; }
553
- .soliloquy-select .chosen-container .chosen-results li.active-result {
554
- display: list-item;
555
- cursor: pointer; }
556
- .soliloquy-select .chosen-container .chosen-results li.disabled-result {
557
- display: list-item;
558
- color: #ccc;
559
- cursor: default; }
560
- .soliloquy-select .chosen-container .chosen-results li.highlighted {
561
- background: #ff3700;
562
- color: white; }
563
- .soliloquy-select .chosen-container .chosen-results li.no-results {
564
- color: #777;
565
- display: list-item;
566
- background: #f4f4f4; }
567
- .soliloquy-select .chosen-container .chosen-results li.group-result {
568
- display: list-item;
569
- font-weight: bold;
570
- cursor: default; }
571
- .soliloquy-select .chosen-container .chosen-results li.group-option {
572
- padding-left: 15px; }
573
- .soliloquy-select .chosen-container .chosen-results li em {
574
- font-style: normal;
575
- text-decoration: underline; }
576
- .soliloquy-select .chosen-container-multi .chosen-choices {
577
- position: relative;
578
- overflow: hidden;
579
- margin: 0;
580
- padding: 0 5px;
581
- width: 100%;
582
- height: auto !important;
583
- height: 1%;
584
- border: 1px solid #dddddd;
585
- background: white;
586
- cursor: text; }
587
- .soliloquy-select .chosen-container-multi .chosen-choices li {
588
- float: left;
589
- list-style: none; }
590
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-field {
591
- margin: 0;
592
- padding: 0;
593
- white-space: nowrap; }
594
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
595
- margin: 1px 0;
596
- padding: 0;
597
- height: 25px;
598
- outline: 0;
599
- border: 0 !important;
600
- background: transparent !important;
601
- box-shadow: none;
602
- color: #999;
603
- font-size: 100%;
604
- font-family: sans-serif;
605
- line-height: normal;
606
- border-radius: 0; }
607
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-choice {
608
- position: relative;
609
- margin: 3px 5px 3px 0;
610
- padding: 3px 20px 3px 5px;
611
- border: 1px solid #dddddd;
612
- max-width: 100%;
613
- border-radius: 2px;
614
- background: white;
615
- background-size: 100% 19px;
616
- background-repeat: repeat-x;
617
- background-clip: padding-box;
618
- box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
619
- color: #333;
620
- line-height: 13px;
621
- cursor: default; }
622
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-choice span {
623
- word-wrap: break-word; }
624
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
625
- position: absolute;
626
- top: 4px;
627
- right: 3px;
628
- display: block;
629
- width: 12px;
630
- height: 12px;
631
- background: url("chosen-sprite.png") -42px 1px no-repeat;
632
- font-size: 1px; }
633
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
634
- background-position: -42px -10px; }
635
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-disabled {
636
- padding-right: 5px;
637
- border: 1px solid #dddddd;
638
- background: #e4e4e4;
639
- color: #666; }
640
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus {
641
- background: #d4d4d4; }
642
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
643
- background-position: -42px -10px; }
644
- .soliloquy-select .chosen-container-multi .chosen-results {
645
- margin: 0;
646
- padding: 0; }
647
- .soliloquy-select .chosen-container-multi .chosen-drop .result-selected {
648
- display: list-item;
649
- color: #ccc;
650
- cursor: default; }
651
- .soliloquy-select .chosen-container-active .chosen-single {
652
- border: 1px solid #dddddd; }
653
- .soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single {
654
- border: 1px solid #dddddd;
655
- -moz-border-radius-bottomright: 0;
656
- border-bottom-right-radius: 0;
657
- -moz-border-radius-bottomleft: 0;
658
- border-bottom-left-radius: 0;
659
- background: white; }
660
- .soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div {
661
- border-left: 1px solid transparent;
662
- background: transparent; }
663
- .soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div b {
664
- background-position: -18px 2px; }
665
- .soliloquy-select .chosen-container-active .chosen-choices {
666
- border: 1px solid #5897fb;
667
- box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); }
668
- .soliloquy-select .chosen-container-active .chosen-choices li.search-field input[type="text"] {
669
- color: #222 !important; }
670
- .soliloquy-select .chosen-disabled {
671
- opacity: 0.5 !important;
672
- cursor: default; }
673
- .soliloquy-select .chosen-disabled .chosen-single {
674
- cursor: default; }
675
- .soliloquy-select .chosen-disabled .chosen-choices .search-choice .search-choice-close {
676
- cursor: default; }
677
- .soliloquy-select .chosen-rtl {
678
- text-align: right; }
679
- .soliloquy-select .chosen-rtl .chosen-single {
680
- overflow: visible;
681
- padding: 0 8px 0 0; }
682
- .soliloquy-select .chosen-rtl .chosen-single span {
683
- margin-right: 0;
684
- margin-left: 26px;
685
- direction: rtl; }
686
- .soliloquy-select .chosen-rtl .chosen-single-with-deselect span {
687
- margin-left: 38px; }
688
- .soliloquy-select .chosen-rtl .chosen-single div {
689
- right: auto;
690
- left: 3px; }
691
- .soliloquy-select .chosen-rtl .chosen-single abbr {
692
- right: auto;
693
- left: 26px; }
694
- .soliloquy-select .chosen-rtl .chosen-choices li {
695
- float: right; }
696
- .soliloquy-select .chosen-rtl .chosen-choices li.search-field input[type="text"] {
697
- direction: rtl; }
698
- .soliloquy-select .chosen-rtl .chosen-choices li.search-choice {
699
- margin: 3px 5px 3px 0;
700
- padding: 3px 5px 3px 19px; }
701
- .soliloquy-select .chosen-rtl .chosen-choices li.search-choice .search-choice-close {
702
- right: auto;
703
- left: 4px; }
704
- .soliloquy-select .chosen-rtl.chosen-container-single-nosearch .chosen-search,
705
- .soliloquy-select .chosen-rtl .chosen-drop {
706
- left: 9999px; }
707
- .soliloquy-select .chosen-rtl.chosen-container-single .chosen-results {
708
- margin: 0 0 4px 4px;
709
- padding: 0 4px 0 0; }
710
- .soliloquy-select .chosen-rtl .chosen-results li.group-option {
711
- padding-right: 15px;
712
- padding-left: 0; }
713
- .soliloquy-select .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
714
- border-right: none; }
715
- .soliloquy-select .chosen-rtl .chosen-search input[type="text"] {
716
- padding: 4px 5px 4px 20px;
717
- background: white url("chosen-sprite.png") no-repeat -30px -20px;
718
- background: url("chosen-sprite.png") no-repeat -30px -20px;
719
- direction: rtl; }
720
- .soliloquy-select .chosen-rtl.chosen-container-single .chosen-single div b {
721
- background-position: 6px 2px; }
722
- .soliloquy-select .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
723
- background-position: -12px 2px; }
724
- @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) {
725
- .soliloquy-select .chosen-rtl .chosen-search input[type="text"],
726
- .soliloquy-select .chosen-container-single .chosen-single abbr,
727
- .soliloquy-select .chosen-container-single .chosen-search input[type="text"],
728
- .soliloquy-select .chosen-container-multi .chosen-choices .search-choice .search-choice-close,
729
- .soliloquy-select .chosen-container .chosen-results-scroll-down span,
730
- .soliloquy-select .chosen-container .chosen-results-scroll-up span {
731
- background-image: none !important;
732
- background-size: 52px 37px !important;
733
- background-repeat: no-repeat !important; } }
734
- .soliloquy-select select.soliloquy-chosen + .chosen-container.chosen-container-single .chosen-single {
735
- padding-right: 35px; }
736
-
737
- /* ==========================================================================
738
- Addons Styles
739
- ========================================================================== */
740
- /* Heading */
741
- #soliloquy-heading {
742
- background-color: white;
743
- height: 45px;
744
- margin-left: -20px; }
745
- #soliloquy-heading h1 {
746
- margin: 0;
747
- padding-left: 20px;
748
- line-height: 45px;
749
- font-size: 20px;
750
- font-weight: 400; }
751
-
752
- #soliloquy-settings-refresh-addons-form {
753
- float: left; }
754
- #soliloquy-settings-refresh-addons-form p {
755
- font-size: 14px; }
756
-
757
- .soliloquy-addon-filter {
758
- font-weight: 600;
759
- margin-right: 10px; }
760
-
761
- #soliloquy-addons-area {
762
- margin-top: 20px; }
763
-
764
- #soliloquy-addons-upgrade-area {
765
- padding-top: 0;
766
- margin-top: 0;
767
- border-top: none; }
768
- #soliloquy-addons-upgrade-area h2.soliloquy-addons-upgrade {
769
- font-size: 23px; }
770
- #soliloquy-addons-upgrade-area .soliloquy-unlock-text {
771
- font-size: 14px;
772
- margin-bottom: 30px; }
773
- #soliloquy-addons-upgrade-area .soliloquy-addon-unlock {
774
- max-width: 125px;
775
- margin: auto;
776
- text-align: center; }
777
-
778
- .soliloquy-addon {
779
- position: relative;
780
- border: 1px solid #dddddd;
781
- background: white;
782
- border-radius: 3px;
783
- float: left;
784
- margin: 0 2% 2% 0;
785
- height: 510px;
786
- text-align: center;
787
- width: 32%;
788
- box-sizing: border-box;
789
- -webkit-box-sizing: border-box;
790
- -moz-box-sizing: border-box; }
791
- .soliloquy-addon .soliloquy-addon-thumb {
792
- border-radius: 3px;
793
- height: auto;
794
- margin: 0 auto;
795
- max-width: 100%;
796
- width: auto; }
797
- .soliloquy-addon.last {
798
- margin-right: 0; }
799
- .soliloquy-addon .soliloquy-addon-content {
800
- padding: 20px; }
801
- .soliloquy-addon .soliloquy-addon-footer {
802
- position: absolute;
803
- width: 100%;
804
- bottom: 0;
805
- height: 75px;
806
- line-height: 75px;
807
- border-top: 1px solid #dddddd;
808
- background-color: #f7f7f7; }
809
- .soliloquy-addon .soliloquy-addon-footer .soliloquy-unlock-addon {
810
- vertical-align: middle; }
811
- .soliloquy-addon .soliloquy-addon-action-button:before {
812
- font-size: 18px;
813
- vertical-align: middle;
814
- margin-top: -1px; }
815
- .soliloquy-addon .soliloquy-icon-cloud-download.soliloquy-addon-action-button:before {
816
- color: #999999; }
817
- .soliloquy-addon .soliloquy-icon-toggle-on.soliloquy-activate-addon:before {
818
- -webkit-transform: rotate(180deg);
819
- -moz-transform: rotate(180deg);
820
- -ms-transform: rotate(180deg);
821
- -o-transform: rotate(180deg);
822
- transform: rotate(180deg);
823
- color: #e3231b; }
824
- .soliloquy-addon .soliloquy-icon-toggle-on.soliloquy-deactivate-addon:before {
825
- color: #72b63d; }
826
- .soliloquy-addon .soliloquy-addon-message,
827
- .soliloquy-addon .soliloquy-addon-error {
828
- -moz-border-radius: 3px;
829
- -webkit-border-radius: 3px;
830
- border-radius: 3px;
831
- text-align: left; }
832
- .soliloquy-addon .soliloquy-addon-inactive .addon-status span {
833
- color: #e3231b; }
834
- .soliloquy-addon .addon-status-not-installed span {
835
- color: #999999; }
836
- .soliloquy-addon .soliloquy-addon-active .addon-status span {
837
- color: #72b63d; }
838
- .soliloquy-addon .soliloquy-addon-message span {
839
- font-weight: bold; }
840
- .soliloquy-addon .soliloquy-addon-action {
841
- display: inline;
842
- float: right;
843
- margin-top: 20px;
844
- margin-right: 15px; }
845
- .soliloquy-addon .soliloquy-addon-message {
846
- margin-left: 15px; }
847
- .soliloquy-addon .soliloquy-addon-error {
848
- margin-top: 10px; }
849
- .soliloquy-addon .soliloquy-addon-error .wrap {
850
- margin: 0; }
851
- .soliloquy-addon .soliloquy-addon-error .icon32 {
852
- display: none; }
853
- .soliloquy-addon .soliloquy-addon-error h2 {
854
- padding: 0; }
855
- .soliloquy-addon .soliloquy-addon-error .form-table th {
856
- padding: 10px 0;
857
- width: 30% !important; }
858
- .soliloquy-addon .soliloquy-addon-error .form-table input[type="text"],
859
- .soliloquy-addon .soliloquy-addon-error .form-table input[type="password"] {
860
- width: 100% !important; }
861
- .soliloquy-addon .soliloquy-addon-error p.submit {
862
- padding: 0; }
863
- .soliloquy-addon p {
864
- color: #2f2f2f;
865
- font-size: 13px;
866
- margin: 30px 40px; }
867
-
868
- @media screen and (min-width: 1751px) {
869
- .soliloquy-addon {
870
- margin: 0 2% 2% 0;
871
- height: 720px;
872
- width: 32%; } }
873
- @media screen and (max-width: 1750px) {
874
- .soliloquy-addon {
875
- margin: 0 2% 2% 0;
876
- height: 620px;
877
- width: 32%; } }
878
- @media screen and (max-width: 1549px) {
879
- .soliloquy-addon {
880
- margin: 0 2% 2% 0;
881
- height: 500px;
882
- width: 32%; } }
883
- @media screen and (max-width: 1200px) {
884
- .soliloquy-addon {
885
- margin: 0 2% 2% 0;
886
- min-height: 460px;
887
- width: 48%; }
888
- .soliloquy-addon.last {
889
- margin: 0 2% 2% 0; }
890
- .soliloquy-addon:nth-child(2) {
891
- margin-right: 0; } }
892
- @media screen and (max-width: 568px) {
893
- .soliloquy-addon {
894
- margin: 0 1% 1% 0;
895
- min-height: 530px;
896
- margin-bottom: 30px;
897
- width: 98%; }
898
- .soliloquy-addon.last {
899
- margin: 0 1% 1% 0; }
900
- .soliloquy-addon .soliloquy-addon-action {
901
- margin-top: 0; } }
1
+ @font-face{font-family:"soliloquy";src:url("../fonts/soliloquy.eot");src:url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"),url("../fonts/soliloquy.woff") format("woff"),url("../fonts/soliloquy.ttf") format("truetype"),url("../fonts/soliloquy.svg#soliloquy") format("svg");font-weight:normal;font-style:normal}[class*=soliloquy-icon-]:before{display:inline-block;font-family:"soliloquy";font-style:normal;font-weight:normal;font-size:13px;line-height:1.5;margin-right:8px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.soliloquy-icon-configuration:before{content:"A"}.soliloquy-icon-soliloquy:before{content:"B"}.soliloquy-icon-pinterest:before{content:"C"}.soliloquy-icon-lightbox:before{content:"D"}.soliloquy-icon-misc:before{content:"E"}.soliloquy-icon-mobile:before{content:"F"}.soliloquy-icon-pagination:before{content:"G"}.soliloquy-icon-proofing:before{content:"H"}.soliloquy-icon-slideshow:before{content:"I"}.soliloquy-icon-tags:before{content:"J"}.soliloquy-icon-thumbnails:before{content:"K"}.soliloquy-icon-video:before{content:"L"}.soliloquy-icon-watermark:before{content:"M"}.soliloquy-icon-cloud-download:before{content:"N"}.soliloquy-icon-toggle-on:before{content:"O"}.soliloquy-icon-plus-circle:before{content:"P"}.soliloquy-icon-list:before{content:"R"}.soliloquy-icon-grid:before{content:"S"}.soliloquy-icon-pencil:before{content:"U"}.soliloquy-icon-close:before{content:"V"}.soliloquy-icon-check:before{content:"W"}.soliloquy-icon-schedule:before{content:"X"}.soliloquy-icon-carousel:before{content:"Y"}#soliloquy-header-temp{position:relative}#soliloquy-top-notification{position:relative;background-color:#162937;text-align:center;color:#fff;height:40px;margin-left:-20px;vertical-align:middle}#soliloquy-top-notification p{margin:0;padding:0;line-height:40px;font-size:16px}#soliloquy-top-notification a{color:#fff}#soliloquy-top-notification .envira-dismiss{position:absolute;top:10px;right:10px}#soliloquy-header{background-color:#f0f0f0;height:120px;margin-left:-20px}#soliloquy-header #soliloquy-logo{margin:0;padding-top:25px;line-height:120px;margin-left:20px}#soliloquy-header #soliloquy-logo img{max-width:288px}.wp-core-ui .button-soliloquy{background:#e02626;border-color:#e02626;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;font-weight:500;text-shadow:none;line-height:15px;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy:hover{background:#e02626;border-color:#e02626;color:#fff;opacity:.8}.wp-core-ui .button-soliloquy-secondary{background:#f7f7f7;border:1px solid;border-color:#ddd;-webkit-box-shadow:none;box-shadow:none;color:#23282d;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-secondary:hover{background:#f7f7f7;border-color:#999;color:#23282d}.wp-core-ui .button-soliloquy-delete{background:#e02626;border:1px solid;border-color:#e02626;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-delete:hover{background:#e02626;color:#fff;opacity:.8}.wp-core-ui a.button-soliloquy,.wp-core-ui a.button-soliloquy-secondary,.wp-core-ui a.button-soliloquy-delete{line-height:32px}#soliloquy-settings-content input:not([type=checkbox]){background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}#soliloquy-settings-content input[type=checkbox]:checked{-color:#e02626}#soliloquy-settings-content textarea{width:100%}#soliloquy-settings-content input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;height:35px;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}pre.soliloquy-code{background-color:#ddd;border-radius:3px;padding:15px}.soliloquy-clipboard{display:block;text-decoration:underline !important;padding-top:8px;font-size:11px;outline:0 !important}.soliloquy-clipboard:focus{outline-style:none;box-shadow:none;border-color:transparent}.soliloquy-code{display:block;background-color:#f7f7f7;border-radius:3px;padding:10px !important}.soliloquy-list-inline{margin:0;list-style:none}.soliloquy-list-inline li{display:inline-block;margin-right:5px}.soliloquy-list-inline li:last-child{margin-right:0 !important}.soliloquy-yt iframe{max-width:100%;height:auto}.soliloquy-hidden{display:none !important}.soliloquy-hideme{visibility:hidden}.soliloquy-no-border{border:none !important}.soliloquy-right{float:right}.soliloquy-left{float:left}.soliloquy-clearfix{clear:both;display:block;height:0;overflow:hidden;visibility:hidden;width:0}.no-margin{margin:0 !important}.no-margin-top{margin-top:0 !important}.no-margin-bottom{margin-bottom:0 !important}[data-soliloquy-tooltip]{position:relative;z-index:2;cursor:pointer}[data-soliloquy-tooltip]:before,[data-soliloquy-tooltip]:after{visibility:hidden;opacity:0;pointer-events:none}[data-soliloquy-tooltip]:before{position:absolute;bottom:120%;left:50%;margin-bottom:5px;margin-left:-35px;padding:7px;width:60px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;color:#fff;content:attr(data-soliloquy-tooltip);text-align:center;font-size:12px;line-height:1.2}[data-soliloquy-tooltip]:after{position:absolute;bottom:120%;left:50%;width:0;margin-left:-5px;border-top:5px solid #000;border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}[data-soliloquy-tooltip]:hover:before,[data-soliloquy-tooltip]:hover:after{visibility:visible;opacity:1}[class*=soliloquy-grid-]{float:left;margin-left:2%}[class*=soliloquy-grid-] input[type=text]{width:100% !important}.soliloquy-grid-1{width:6.5%}.soliloquy-grid-2{width:15%}.soliloquy-grid-3{width:23.5%}.soliloquy-grid-4{width:32%}.soliloquy-grid-5{width:40.5%}.soliloquy-grid-6{width:49%}.soliloquy-grid-7{width:57.5%}.soliloquy-grid-8{width:66%}.soliloquy-grid-9{width:74.5%}.soliloquy-grid-10{width:83%}.soliloquy-grid-11{width:91.5%}.soliloquy-grid-12{width:100%}.soliloquy-first{margin-left:0px}/*!
2
+ Chosen, a Select Box Enhancer for jQuery and Prototype
3
+ by Patrick Filler for Harvest, http://getharvest.com
4
+
5
+ Version 1.5.1
6
+ Full source at https://github.com/harvesthq/chosen
7
+ Copyright (c) 2011-2016 Harvest http://getharvest.com
8
+
9
+ MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
10
+ This file is generated by `grunt build`, do not edit it by hand.
11
+ */.soliloquy-select *{box-shadow:none !important;background-image:none !important}.soliloquy-select *:after{background-image:none !important}.soliloquy-select .soliloquy-chosen{height:35px;max-width:350px;width:100%}.soliloquy-select .chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-width:350px;font-weight:600}.soliloquy-select .chosen-container *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.soliloquy-select .chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;width:100%;border:1px solid #ddd;border-top:0;background:#fff}.soliloquy-select .chosen-container.chosen-with-drop .chosen-drop{left:0}.soliloquy-select .chosen-container a{cursor:pointer}.soliloquy-select .chosen-container .search-choice .group-name,.soliloquy-select .chosen-container .chosen-single .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:normal;color:#999}.soliloquy-select .chosen-container .search-choice .group-name:after,.soliloquy-select .chosen-container .chosen-single .group-name:after{content:":";padding-left:2px;vertical-align:top}.soliloquy-select .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:35px;border:1px solid #ddd;border-radius:3px;background:#fff;background-clip:padding-box;color:#444;text-decoration:none;white-space:nowrap;line-height:35px}.soliloquy-select .chosen-container-single .chosen-default{color:#999}.soliloquy-select .chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.soliloquy-select .chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.soliloquy-select .chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single.chosen-disabled .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single .chosen-single div{border-left:1px solid #ddd;position:absolute;top:0;right:0;display:block;width:30px;height:100%;padding-left:9px}.soliloquy-select .chosen-container-single .chosen-single div b{display:block;width:100%;height:100%;line-height:35px}.soliloquy-select .chosen-container-single .chosen-single div b:before{content:"Q";display:block;font-weight:normal;font-size:8px !important;font-family:"soliloquy";position:absolute;text-align:center}.soliloquy-select .chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #ddd;background:#fff url("chosen-sprite.png") no-repeat 100% -20px;background:url("chosen-sprite.png") no-repeat 100% -20px;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 2px 2px;background-clip:padding-box}.soliloquy-select .chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;left:-9999px}.soliloquy-select .chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.soliloquy-select .chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.soliloquy-select .chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.soliloquy-select .chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container .chosen-results li.highlighted{background:#e02626;color:#fff}.soliloquy-select .chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.soliloquy-select .chosen-container .chosen-results li.group-result{display:list-item;font-weight:bold;cursor:default}.soliloquy-select .chosen-container .chosen-results li.group-option{padding-left:15px}.soliloquy-select .chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.soliloquy-select .chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto !important;height:1%;border:1px solid #ddd;background:#fff;cursor:text}.soliloquy-select .chosen-container-multi .chosen-choices li{float:left;list-style:none}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;height:25px;outline:0;border:0 !important;background:transparent !important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 5px;border:1px solid #ddd;max-width:100%;border-radius:2px;background:#fff;background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:4px;right:3px;display:block;width:12px;height:12px;background:url("chosen-sprite.png") -42px 1px no-repeat;font-size:1px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ddd;background:#e4e4e4;color:#666}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-results{margin:0;padding:0}.soliloquy-select .chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container-active .chosen-single{border:1px solid #ddd}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #ddd;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background:#fff}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div{border-left:1px solid transparent;background:transparent}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 2px}.soliloquy-select .chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.soliloquy-select .chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222 !important}.soliloquy-select .chosen-disabled{opacity:.5 !important;cursor:default}.soliloquy-select .chosen-disabled .chosen-single{cursor:default}.soliloquy-select .chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.soliloquy-select .chosen-rtl{text-align:right}.soliloquy-select .chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.soliloquy-select .chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.soliloquy-select .chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.soliloquy-select .chosen-rtl .chosen-single div{right:auto;left:3px}.soliloquy-select .chosen-rtl .chosen-single abbr{right:auto;left:26px}.soliloquy-select .chosen-rtl .chosen-choices li{float:right}.soliloquy-select .chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.soliloquy-select .chosen-rtl.chosen-container-single-nosearch .chosen-search,.soliloquy-select .chosen-rtl .chosen-drop{left:9999px}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.soliloquy-select .chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.soliloquy-select .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.soliloquy-select .chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;background:#fff url("chosen-sprite.png") no-repeat -30px -20px;background:url("chosen-sprite.png") no-repeat -30px -20px;direction:rtl}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-single div b{background-position:6px 2px}.soliloquy-select .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (min-resolution: 144dpi),only screen and (min-resolution: 1.5dppx){.soliloquy-select .chosen-rtl .chosen-search input[type=text],.soliloquy-select .chosen-container-single .chosen-single abbr,.soliloquy-select .chosen-container-single .chosen-search input[type=text],.soliloquy-select .chosen-container-multi .chosen-choices .search-choice .search-choice-close,.soliloquy-select .chosen-container .chosen-results-scroll-down span,.soliloquy-select .chosen-container .chosen-results-scroll-up span{background-image:none !important;background-size:52px 37px !important;background-repeat:no-repeat !important}}.soliloquy-select select.soliloquy-chosen+.chosen-container.chosen-container-single .chosen-single{padding-right:35px}.soliloquy_page_soliloquy-lite-addons #wpfooter{margin-left:0px}#soliloquy-heading{background-color:#fff;height:45px;margin-left:-20px}#soliloquy-heading h1{margin:0;padding-left:20px;line-height:45px;font-size:20px;font-weight:400}#soliloquy-settings-refresh-addons-form{float:left}#soliloquy-settings-refresh-addons-form p{font-size:14px}.soliloquy-addon-filter{font-weight:600;margin-right:10px}#soliloquy-addons-area{margin-top:20px}#soliloquy-addons-upgrade-area{padding-top:0;margin-top:0;border-top:none}#soliloquy-addons-upgrade-area h2.soliloquy-addons-upgrade{font-size:23px}#soliloquy-addons-upgrade-area .soliloquy-unlock-text{font-size:14px;margin-bottom:30px}#soliloquy-addons-upgrade-area .soliloquy-addon-unlock{max-width:125px;margin:auto;text-align:center}.soliloquy-addon{position:relative;border:1px solid #ddd;background:#fff;border-radius:3px;float:left;margin:0 2% 2% 0;height:510px;text-align:center;width:32%;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.soliloquy-addon .soliloquy-addon-thumb{border-radius:3px;height:auto;margin:0 auto;max-width:100%;width:auto}.soliloquy-addon.last{margin-right:0}.soliloquy-addon .soliloquy-addon-content{padding:20px}.soliloquy-addon .soliloquy-addon-footer{position:absolute;width:100%;bottom:0;height:75px;line-height:75px;border-top:1px solid #ddd;background-color:#f7f7f7}.soliloquy-addon .soliloquy-addon-footer .soliloquy-unlock-addon{vertical-align:middle}.soliloquy-addon .soliloquy-addon-action-button:before{font-size:18px;vertical-align:middle;margin-top:-1px}.soliloquy-addon .soliloquy-icon-cloud-download.soliloquy-addon-action-button:before{color:#999}.soliloquy-addon .soliloquy-icon-toggle-on.soliloquy-activate-addon:before{-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg);color:#e02626}.soliloquy-addon .soliloquy-icon-toggle-on.soliloquy-deactivate-addon:before{color:#7cc048}.soliloquy-addon .soliloquy-addon-message,.soliloquy-addon .soliloquy-addon-error{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;text-align:left}.soliloquy-addon .soliloquy-addon-inactive .addon-status span{color:#e02626}.soliloquy-addon .addon-status-not-installed span{color:#999}.soliloquy-addon .soliloquy-addon-active .addon-status span{color:#7cc048}.soliloquy-addon .soliloquy-addon-message span{font-weight:bold}.soliloquy-addon .soliloquy-addon-action{display:inline;float:right;margin-top:20px;margin-right:15px}.soliloquy-addon .soliloquy-addon-message{margin-left:15px}.soliloquy-addon .soliloquy-addon-error{margin-top:10px}.soliloquy-addon .soliloquy-addon-error .wrap{margin:0}.soliloquy-addon .soliloquy-addon-error .icon32{display:none}.soliloquy-addon .soliloquy-addon-error h2{padding:0}.soliloquy-addon .soliloquy-addon-error .form-table th{padding:10px 0;width:30% !important}.soliloquy-addon .soliloquy-addon-error .form-table input[type=text],.soliloquy-addon .soliloquy-addon-error .form-table input[type=password]{width:100% !important}.soliloquy-addon .soliloquy-addon-error p.submit{padding:0}.soliloquy-addon p{color:#2f2f2f;font-size:13px;margin:30px 40px}@media screen and (min-width: 1751px){.soliloquy-addon{margin:0 2% 2% 0;height:720px;width:32%}}@media screen and (max-width: 1750px){.soliloquy-addon{margin:0 2% 2% 0;height:620px;width:32%}}@media screen and (max-width: 1549px){.soliloquy-addon{margin:0 2% 2% 0;height:500px;width:32%}}@media screen and (max-width: 1200px){.soliloquy-addon{margin:0 2% 2% 0;min-height:460px;width:48%}.soliloquy-addon.last{margin:0 2% 2% 0}.soliloquy-addon:nth-child(2){margin-right:0}}@media screen and (max-width: 568px){.soliloquy-addon{margin:0 1% 1% 0;min-height:530px;margin-bottom:30px;width:98%}.soliloquy-addon.last{margin:0 1% 1% 0}.soliloquy-addon .soliloquy-addon-action{margin-top:0}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/codemirror.css CHANGED
@@ -1,67 +1,67 @@
1
- /* Base CodeMirror CSS */
2
- .CodeMirror{font-family:monospace;height:300px}.CodeMirror-scroll{overflow:auto}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.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;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror div.CodeMirror-cursor{border-left:1px solid black}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor{width:auto;border:0;background:#7e7}.cm-tab{display:inline-block}.CodeMirror-ruler{border-left:1px solid #ccc;position:absolute}.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-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{color:#555}.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-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{line-height:1;position:relative;overflow:hidden;background:white;color:black}.CodeMirror-scroll{margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-sizer{position:relative;border-right:30px solid transparent;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{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;padding-bottom:30px;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;-moz-box-sizing:content-box;box-sizing:content-box;padding-bottom:30px;margin-bottom:-32px;display:inline-block;*zoom:1;*display:inline}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-lines{cursor:text}.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}.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;overflow:auto}.CodeMirror-wrap .CodeMirror-scroll{overflow-x:hidden}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-measure pre{position:static}.CodeMirror div.CodeMirror-cursor{position:absolute;border-right:0;width:0}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:1}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.CodeMirror span{*vertical-align:text-bottom}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}
3
- /* ttcn theme */
4
- .cm-s-ttcn .cm-quote { color: #090; }
5
- .cm-s-ttcn .cm-negative { color: #d44; }
6
- .cm-s-ttcn .cm-positive { color: #292; }
7
- .cm-s-ttcn .cm-header, .cm-strong { font-weight: bold; }
8
- .cm-s-ttcn .cm-em { font-style: italic; }
9
- .cm-s-ttcn .cm-link { text-decoration: underline; }
10
- .cm-s-ttcn .cm-strikethrough { text-decoration: line-through; }
11
- .cm-s-ttcn .cm-header { color: #00f; font-weight: bold; }
12
-
13
- .cm-s-ttcn .cm-atom { color: #219; }
14
- .cm-s-ttcn .cm-attribute { color: #00c; }
15
- .cm-s-ttcn .cm-bracket { color: #997; }
16
- .cm-s-ttcn .cm-comment { color: #333333; }
17
- .cm-s-ttcn .cm-def { color: #00f; }
18
- .cm-s-ttcn .cm-em { font-style: italic; }
19
- .cm-s-ttcn .cm-error { color: #f00; }
20
- .cm-s-ttcn .cm-hr { color: #999; }
21
- .cm-s-ttcn .cm-invalidchar { color: #f00; }
22
- .cm-s-ttcn .cm-keyword { font-weight:bold; }
23
- .cm-s-ttcn .cm-link { color: #00c; text-decoration: underline; }
24
- .cm-s-ttcn .cm-meta { color: #555; }
25
- .cm-s-ttcn .cm-negative { color: #d44; }
26
- .cm-s-ttcn .cm-positive { color: #292; }
27
- .cm-s-ttcn .cm-qualifier { color: #555; }
28
- .cm-s-ttcn .cm-strikethrough { text-decoration: line-through; }
29
- .cm-s-ttcn .cm-string { color: #006400; }
30
- .cm-s-ttcn .cm-string-2 { color: #f50; }
31
- .cm-s-ttcn .cm-strong { font-weight: bold; }
32
- .cm-s-ttcn .cm-tag { color: #170; }
33
- .cm-s-ttcn .cm-variable { color: #8B2252; }
34
- .cm-s-ttcn .cm-variable-2 { color: #05a; }
35
- .cm-s-ttcn .cm-variable-3 { color: #085; }
36
-
37
- .cm-s-ttcn .cm-invalidchar { color: #f00; }
38
-
39
- /* ASN */
40
- .cm-s-ttcn .cm-accessTypes,
41
- .cm-s-ttcn .cm-compareTypes { color: #27408B; }
42
- .cm-s-ttcn .cm-cmipVerbs { color: #8B2252; }
43
- .cm-s-ttcn .cm-modifier { color:#D2691E; }
44
- .cm-s-ttcn .cm-status { color:#8B4545; }
45
- .cm-s-ttcn .cm-storage { color:#A020F0; }
46
- .cm-s-ttcn .cm-tags { color:#006400; }
47
-
48
- /* CFG */
49
- .cm-s-ttcn .cm-externalCommands { color: #8B4545; font-weight:bold; }
50
- .cm-s-ttcn .cm-fileNCtrlMaskOptions,
51
- .cm-s-ttcn .cm-sectionTitle { color: #2E8B57; font-weight:bold; }
52
-
53
- /* TTCN */
54
- .cm-s-ttcn .cm-booleanConsts,
55
- .cm-s-ttcn .cm-otherConsts,
56
- .cm-s-ttcn .cm-verdictConsts { color: #006400; }
57
- .cm-s-ttcn .cm-configOps,
58
- .cm-s-ttcn .cm-functionOps,
59
- .cm-s-ttcn .cm-portOps,
60
- .cm-s-ttcn .cm-sutOps,
61
- .cm-s-ttcn .cm-timerOps,
62
- .cm-s-ttcn .cm-verdictOps { color: #0000FF; }
63
- .cm-s-ttcn .cm-preprocessor,
64
- .cm-s-ttcn .cm-templateMatch,
65
- .cm-s-ttcn .cm-ttcn3Macros { color: #27408B; }
66
- .cm-s-ttcn .cm-types { color: #A52A2A; font-weight:bold; }
67
  .cm-s-ttcn .cm-visibilityModifiers { font-weight:bold; }
1
+ /* Base CodeMirror CSS */
2
+ .CodeMirror{font-family:monospace;height:300px}.CodeMirror-scroll{overflow:auto}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.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;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror div.CodeMirror-cursor{border-left:1px solid black}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor{width:auto;border:0;background:#7e7}.cm-tab{display:inline-block}.CodeMirror-ruler{border-left:1px solid #ccc;position:absolute}.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-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{color:#555}.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-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{line-height:1;position:relative;overflow:hidden;background:white;color:black}.CodeMirror-scroll{margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-sizer{position:relative;border-right:30px solid transparent;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{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;padding-bottom:30px;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;-moz-box-sizing:content-box;box-sizing:content-box;padding-bottom:30px;margin-bottom:-32px;display:inline-block;*zoom:1;*display:inline}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-lines{cursor:text}.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}.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;overflow:auto}.CodeMirror-wrap .CodeMirror-scroll{overflow-x:hidden}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-measure pre{position:static}.CodeMirror div.CodeMirror-cursor{position:absolute;border-right:0;width:0}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:1}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.CodeMirror span{*vertical-align:text-bottom}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}
3
+ /* ttcn theme */
4
+ .cm-s-ttcn .cm-quote { color: #090; }
5
+ .cm-s-ttcn .cm-negative { color: #d44; }
6
+ .cm-s-ttcn .cm-positive { color: #292; }
7
+ .cm-s-ttcn .cm-header, .cm-strong { font-weight: bold; }
8
+ .cm-s-ttcn .cm-em { font-style: italic; }
9
+ .cm-s-ttcn .cm-link { text-decoration: underline; }
10
+ .cm-s-ttcn .cm-strikethrough { text-decoration: line-through; }
11
+ .cm-s-ttcn .cm-header { color: #00f; font-weight: bold; }
12
+
13
+ .cm-s-ttcn .cm-atom { color: #219; }
14
+ .cm-s-ttcn .cm-attribute { color: #00c; }
15
+ .cm-s-ttcn .cm-bracket { color: #997; }
16
+ .cm-s-ttcn .cm-comment { color: #333333; }
17
+ .cm-s-ttcn .cm-def { color: #00f; }
18
+ .cm-s-ttcn .cm-em { font-style: italic; }
19
+ .cm-s-ttcn .cm-error { color: #f00; }
20
+ .cm-s-ttcn .cm-hr { color: #999; }
21
+ .cm-s-ttcn .cm-invalidchar { color: #f00; }
22
+ .cm-s-ttcn .cm-keyword { font-weight:bold; }
23
+ .cm-s-ttcn .cm-link { color: #00c; text-decoration: underline; }
24
+ .cm-s-ttcn .cm-meta { color: #555; }
25
+ .cm-s-ttcn .cm-negative { color: #d44; }
26
+ .cm-s-ttcn .cm-positive { color: #292; }
27
+ .cm-s-ttcn .cm-qualifier { color: #555; }
28
+ .cm-s-ttcn .cm-strikethrough { text-decoration: line-through; }
29
+ .cm-s-ttcn .cm-string { color: #006400; }
30
+ .cm-s-ttcn .cm-string-2 { color: #f50; }
31
+ .cm-s-ttcn .cm-strong { font-weight: bold; }
32
+ .cm-s-ttcn .cm-tag { color: #170; }
33
+ .cm-s-ttcn .cm-variable { color: #8B2252; }
34
+ .cm-s-ttcn .cm-variable-2 { color: #05a; }
35
+ .cm-s-ttcn .cm-variable-3 { color: #085; }
36
+
37
+ .cm-s-ttcn .cm-invalidchar { color: #f00; }
38
+
39
+ /* ASN */
40
+ .cm-s-ttcn .cm-accessTypes,
41
+ .cm-s-ttcn .cm-compareTypes { color: #27408B; }
42
+ .cm-s-ttcn .cm-cmipVerbs { color: #8B2252; }
43
+ .cm-s-ttcn .cm-modifier { color:#D2691E; }
44
+ .cm-s-ttcn .cm-status { color:#8B4545; }
45
+ .cm-s-ttcn .cm-storage { color:#A020F0; }
46
+ .cm-s-ttcn .cm-tags { color:#006400; }
47
+
48
+ /* CFG */
49
+ .cm-s-ttcn .cm-externalCommands { color: #8B4545; font-weight:bold; }
50
+ .cm-s-ttcn .cm-fileNCtrlMaskOptions,
51
+ .cm-s-ttcn .cm-sectionTitle { color: #2E8B57; font-weight:bold; }
52
+
53
+ /* TTCN */
54
+ .cm-s-ttcn .cm-booleanConsts,
55
+ .cm-s-ttcn .cm-otherConsts,
56
+ .cm-s-ttcn .cm-verdictConsts { color: #006400; }
57
+ .cm-s-ttcn .cm-configOps,
58
+ .cm-s-ttcn .cm-functionOps,
59
+ .cm-s-ttcn .cm-portOps,
60
+ .cm-s-ttcn .cm-sutOps,
61
+ .cm-s-ttcn .cm-timerOps,
62
+ .cm-s-ttcn .cm-verdictOps { color: #0000FF; }
63
+ .cm-s-ttcn .cm-preprocessor,
64
+ .cm-s-ttcn .cm-templateMatch,
65
+ .cm-s-ttcn .cm-ttcn3Macros { color: #27408B; }
66
+ .cm-s-ttcn .cm-types { color: #A52A2A; font-weight:bold; }
67
  .cm-s-ttcn .cm-visibilityModifiers { font-weight:bold; }
assets/css/fonts.css CHANGED
@@ -1,51 +1,51 @@
1
- /* Generated by soliloquy (http://www.soliloquy.com) on Mon Mar 21 2016*/
2
- @font-face {
3
- font-family: 'soliloquy';
4
- src: url("../fonts/soliloquy.eot");
5
- src: url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"), url("../fonts/soliloquy.woff") format("woff"), url("../fonts/soliloquy.ttf") format("truetype"), url("../fonts/soliloquy.svg#soliloquy") format("svg");
6
- font-weight: normal;
7
- font-style: normal; }
8
- [class*='soliloquy-']:before {
9
- display: inline-block;
10
- font-family: 'soliloquy';
11
- font-style: normal;
12
- font-weight: normal;
13
- line-height: 1;
14
- -webkit-font-smoothing: antialiased;
15
- -moz-osx-font-smoothing: grayscale; }
16
-
17
- .soliloquy-configuration:before {
18
- content: '\0042'; }
19
-
20
- .soliloquy-leaf:before {
21
- content: '\0043'; }
22
-
23
- .soliloquy-lightbox:before {
24
- content: '\0044'; }
25
-
26
- .soliloquy-misc:before {
27
- content: '\0045'; }
28
-
29
- .soliloquy-mobile:before {
30
- content: '\0046'; }
31
-
32
- .soliloquy-pagination:before {
33
- content: '\0047'; }
34
-
35
- .soliloquy-proofing:before {
36
- content: '\0048'; }
37
-
38
- .soliloquy-slideshow:before {
39
- content: '\0049'; }
40
-
41
- .soliloquy-tags:before {
42
- content: '\004a'; }
43
-
44
- .soliloquy-thumbnails:before {
45
- content: '\004b'; }
46
-
47
- .soliloquy-video:before {
48
- content: '\004c'; }
49
-
50
- .soliloquy-watermark:before {
51
- content: '\004d'; }
1
+ /* Generated by soliloquy (http://www.soliloquy.com) on Mon Mar 21 2016*/
2
+ @font-face {
3
+ font-family: 'soliloquy';
4
+ src: url("../fonts/soliloquy.eot");
5
+ src: url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"), url("../fonts/soliloquy.woff") format("woff"), url("../fonts/soliloquy.ttf") format("truetype"), url("../fonts/soliloquy.svg#soliloquy") format("svg");
6
+ font-weight: normal;
7
+ font-style: normal; }
8
+ [class*='soliloquy-']:before {
9
+ display: inline-block;
10
+ font-family: 'soliloquy';
11
+ font-style: normal;
12
+ font-weight: normal;
13
+ line-height: 1;
14
+ -webkit-font-smoothing: antialiased;
15
+ -moz-osx-font-smoothing: grayscale; }
16
+
17
+ .soliloquy-configuration:before {
18
+ content: '\0042'; }
19
+
20
+ .soliloquy-leaf:before {
21
+ content: '\0043'; }
22
+
23
+ .soliloquy-lightbox:before {
24
+ content: '\0044'; }
25
+
26
+ .soliloquy-misc:before {
27
+ content: '\0045'; }
28
+
29
+ .soliloquy-mobile:before {
30
+ content: '\0046'; }
31
+
32
+ .soliloquy-pagination:before {
33
+ content: '\0047'; }
34
+
35
+ .soliloquy-proofing:before {
36
+ content: '\0048'; }
37
+
38
+ .soliloquy-slideshow:before {
39
+ content: '\0049'; }
40
+
41
+ .soliloquy-tags:before {
42
+ content: '\004a'; }
43
+
44
+ .soliloquy-thumbnails:before {
45
+ content: '\004b'; }
46
+
47
+ .soliloquy-video:before {
48
+ content: '\004c'; }
49
+
50
+ .soliloquy-watermark:before {
51
+ content: '\004d'; }
assets/css/global.css CHANGED
@@ -0,0 +1 @@
 
1
+ .wp-core-ui .button-soliloquy{background:#e02626;border-color:#e02626;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;font-weight:500;text-shadow:none;line-height:15px;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy:hover{background:#e02626;border-color:#e02626;color:#fff;opacity:.8}.wp-core-ui .button-soliloquy-secondary{background:#f7f7f7;border:1px solid;border-color:#ddd;-webkit-box-shadow:none;box-shadow:none;color:#23282d;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-secondary:hover{background:#f7f7f7;border-color:#999;color:#23282d}.wp-core-ui .button-soliloquy-delete{background:#e02626;border:1px solid;border-color:#e02626;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-delete:hover{background:#e02626;color:#fff;opacity:.8}.wp-core-ui a.button-soliloquy,.wp-core-ui a.button-soliloquy-secondary,.wp-core-ui a.button-soliloquy-delete{line-height:32px}#soliloquy-settings-content input:not([type=checkbox]){background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}#soliloquy-settings-content input[type=checkbox]:checked{-color:#e02626}#soliloquy-settings-content textarea{width:100%}#soliloquy-settings-content input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;height:35px;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}pre.soliloquy-code{background-color:#ddd;border-radius:3px;padding:15px}.soliloquy-clipboard{display:block;text-decoration:underline !important;padding-top:8px;font-size:11px;outline:0 !important}.soliloquy-clipboard:focus{outline-style:none;box-shadow:none;border-color:transparent}.soliloquy-code{display:block;background-color:#f7f7f7;border-radius:3px;padding:10px !important}.soliloquy-list-inline{margin:0;list-style:none}.soliloquy-list-inline li{display:inline-block;margin-right:5px}.soliloquy-list-inline li:last-child{margin-right:0 !important}.soliloquy-yt iframe{max-width:100%;height:auto}.soliloquy-hidden{display:none !important}.soliloquy-hideme{visibility:hidden}.soliloquy-no-border{border:none !important}.soliloquy-right{float:right}.soliloquy-left{float:left}.soliloquy-clearfix{clear:both;display:block;height:0;overflow:hidden;visibility:hidden;width:0}.no-margin{margin:0 !important}.no-margin-top{margin-top:0 !important}.no-margin-bottom{margin-bottom:0 !important}[data-soliloquy-tooltip]{position:relative;z-index:2;cursor:pointer}[data-soliloquy-tooltip]:before,[data-soliloquy-tooltip]:after{visibility:hidden;opacity:0;pointer-events:none}[data-soliloquy-tooltip]:before{position:absolute;bottom:120%;left:50%;margin-bottom:5px;margin-left:-35px;padding:7px;width:60px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;color:#fff;content:attr(data-soliloquy-tooltip);text-align:center;font-size:12px;line-height:1.2}[data-soliloquy-tooltip]:after{position:absolute;bottom:120%;left:50%;width:0;margin-left:-5px;border-top:5px solid #000;border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}[data-soliloquy-tooltip]:hover:before,[data-soliloquy-tooltip]:hover:after{visibility:visible;opacity:1}[class*=soliloquy-grid-]{float:left;margin-left:2%}[class*=soliloquy-grid-] input[type=text]{width:100% !important}.soliloquy-grid-1{width:6.5%}.soliloquy-grid-2{width:15%}.soliloquy-grid-3{width:23.5%}.soliloquy-grid-4{width:32%}.soliloquy-grid-5{width:40.5%}.soliloquy-grid-6{width:49%}.soliloquy-grid-7{width:57.5%}.soliloquy-grid-8{width:66%}.soliloquy-grid-9{width:74.5%}.soliloquy-grid-10{width:83%}.soliloquy-grid-11{width:91.5%}.soliloquy-grid-12{width:100%}.soliloquy-first{margin-left:0px}
assets/css/images/circle-hover.png CHANGED
Binary file
assets/css/images/circle-hover@2x.png CHANGED
Binary file
assets/css/images/circle.png CHANGED
Binary file
assets/css/images/circle@2x.png CHANGED
Binary file
assets/css/images/delete.png CHANGED
Binary file
assets/css/images/delete@2x.png CHANGED
Binary file
assets/css/images/down.png CHANGED
Binary file
assets/css/images/down@2x.png CHANGED
Binary file
assets/css/images/editor-icon.png CHANGED
Binary file
assets/css/images/editor-icon@2x.png CHANGED
Binary file
assets/css/images/holder.gif CHANGED
Binary file
assets/css/images/left.png CHANGED
Binary file
assets/css/images/left@2x.png CHANGED
Binary file
assets/css/images/menu-icon.png CHANGED
Binary file
assets/css/images/menu-icon@2x.png CHANGED
Binary file
assets/css/images/meta-active.png CHANGED
Binary file
assets/css/images/meta-active@2x.png CHANGED
Binary file
assets/css/images/meta.png CHANGED
Binary file
assets/css/images/meta@2x.png CHANGED
Binary file
assets/css/images/modify.png CHANGED
Binary file
assets/css/images/modify@2x.png CHANGED
Binary file
assets/css/images/pause.png CHANGED
Binary file
assets/css/images/pause@2x.png CHANGED
Binary file
assets/css/images/play.png CHANGED
Binary file
assets/css/images/play@2x.png CHANGED
Binary file
assets/css/images/preloader.gif CHANGED
Binary file
assets/css/images/preloader@2x.gif CHANGED
Binary file
assets/css/images/right.png CHANGED
Binary file
assets/css/images/right@2x.png CHANGED
Binary file
assets/css/images/up.png CHANGED
Binary file
assets/css/images/up@2x.png CHANGED
Binary file
assets/css/images/video-mini.png CHANGED
Binary file
assets/css/images/video.png CHANGED
Binary file
assets/css/images/video@2x.png CHANGED
Binary file
assets/css/media-edit.css CHANGED
@@ -1,4 +1,4 @@
1
- #soliloquy-meta-edit .attachment-details .settings span {
2
- min-width: 0; }
3
- #soliloquy-meta-edit .attachment-details .settings input[type=text] {
4
- width: 100%; }
1
+ #soliloquy-meta-edit .attachment-details .settings span {
2
+ min-width: 0; }
3
+ #soliloquy-meta-edit .attachment-details .settings input[type=text] {
4
+ width: 100%; }
assets/css/metabox.css CHANGED
@@ -1,11 +1,11 @@
1
- @font-face{font-family:'soliloquy';src:url("../fonts/soliloquy.eot");src:url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"),url("../fonts/soliloquy.woff") format("woff"),url("../fonts/soliloquy.ttf") format("truetype"),url("../fonts/soliloquy.svg#soliloquy") format("svg");font-weight:normal;font-style:normal}[class*='soliloquy-icon-']:before{display:inline-block;font-family:'soliloquy';font-style:normal;font-weight:normal;font-size:13px;line-height:1.5;margin-right:8px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.soliloquy-icon-configuration:before{content:'\0041'}.soliloquy-icon-soliloquy:before{content:'\0042'}.soliloquy-icon-pinterest:before{content:'\0043'}.soliloquy-icon-lightbox:before{content:'\0044'}.soliloquy-icon-misc:before{content:'\0045'}.soliloquy-icon-mobile:before{content:'\0046'}.soliloquy-icon-pagination:before{content:'\0047'}.soliloquy-icon-proofing:before{content:'\0048'}.soliloquy-icon-slideshow:before{content:'\0049'}.soliloquy-icon-tags:before{content:'\004a'}.soliloquy-icon-thumbnails:before{content:'\004b'}.soliloquy-icon-video:before{content:'\004c'}.soliloquy-icon-watermark:before{content:'\004d'}.soliloquy-icon-cloud-download:before{content:'\004e'}.soliloquy-icon-toggle-on:before{content:'\004f'}.soliloquy-icon-plus-circle:before{content:'\0050'}.soliloquy-icon-list:before{content:'\0052'}.soliloquy-icon-grid:before{content:'\0053'}.soliloquy-icon-pencil:before{content:'\0055'}.soliloquy-icon-close:before{content:'\0056'}.soliloquy-icon-check:before{content:'\0057'}.soliloquy-icon-schedule:before{content:'\0058'}.soliloquy-icon-carousel:before{content:'\0059'}#soliloquy-header{background-color:#ff3700;height:120px;margin-left:-20px}#soliloquy-header #soliloquy-logo{margin:0;padding-top:25px;line-height:120px;margin-left:20px}#soliloquy-header #soliloquy-logo img{max-width:288px}.wp-core-ui .button-soliloquy{background:#ff3700;border-color:#ff3700;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;font-weight:500;text-shadow:none;line-height:15px;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy:hover{background:#ff3700;border-color:#ff3700;color:#fff;opacity:.8}.wp-core-ui .button-soliloquy-secondary{background:#f7f7f7;border:1px solid;border-color:#ddd;-webkit-box-shadow:none;box-shadow:none;color:#23282d;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-secondary:hover{background:#f7f7f7;border-color:#999;color:#23282d}.wp-core-ui .button-soliloquy-delete{background:#e3231b;border:1px solid;border-color:#e3231b;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-delete:hover{background:#e3231b;color:#fff;opacity:.8}.wp-core-ui a.button-soliloquy,.wp-core-ui a.button-soliloquy-secondary,.wp-core-ui a.button-soliloquy-delete{line-height:32px}#soliloquy-settings-content input:not([type=checkbox]){background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:0.05s border-color ease-in-out;transition:0.05s border-color ease-in-out}#soliloquy-settings-content input[type=checkbox]:checked{-color:#ff3700}#soliloquy-settings-content textarea{width:100%}#soliloquy-settings-content input[type="password"].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;outline:none;-webkit-transition:0.05s border-color ease-in-out;transition:0.05s border-color ease-in-out}input[type="password"].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;height:35px;color:#32373c;outline:none;-webkit-transition:0.05s border-color ease-in-out;transition:0.05s border-color ease-in-out}pre.soliloquy-code{background-color:#ddd;border-radius:3px;padding:15px}.soliloquy-clipboard{display:block;text-decoration:underline !important;padding-top:8px;font-size:11px;outline:0 !important}.soliloquy-clipboard:focus{outline-style:none;box-shadow:none;border-color:transparent}.soliloquy-code{display:block;background-color:#f7f7f7;border-radius:3px;padding:10px !important}.soliloquy-list-inline{margin:0;list-style:none}.soliloquy-list-inline li{display:inline-block;margin-right:5px}.soliloquy-list-inline li:last-child{margin-right:0 !important}.soliloquy-yt iframe{max-width:100%;height:auto}.soliloquy-hidden{display:none !important}.soliloquy-hideme{visibility:hidden}.soliloquy-no-border{border:none !important}.soliloquy-right{float:right}.soliloquy-left{float:left}.soliloquy-clearfix{clear:both;display:block;height:0;overflow:hidden;visibility:hidden;width:0}.no-margin{margin:0 !important}.no-margin-top{margin-top:0 !important}.no-margin-bottom{margin-bottom:0 !important}[data-soliloquy-tooltip]{position:relative;z-index:2;cursor:pointer}[data-soliloquy-tooltip]:before,[data-soliloquy-tooltip]:after{visibility:hidden;opacity:0;pointer-events:none}[data-soliloquy-tooltip]:before{position:absolute;bottom:120%;left:50%;margin-bottom:5px;margin-left:-35px;padding:7px;width:60px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;color:#fff;content:attr(data-soliloquy-tooltip);text-align:center;font-size:12px;line-height:1.2}[data-soliloquy-tooltip]:after{position:absolute;bottom:120%;left:50%;width:0;margin-left:-5px;border-top:5px solid #000;border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}[data-soliloquy-tooltip]:hover:before,[data-soliloquy-tooltip]:hover:after{visibility:visible;opacity:1}[class*=soliloquy-grid-]{float:left;margin-left:2%}[class*=soliloquy-grid-] input[type=text]{width:100% !important}.soliloquy-grid-1{width:6.5%}.soliloquy-grid-2{width:15%}.soliloquy-grid-3{width:23.5%}.soliloquy-grid-4{width:32%}.soliloquy-grid-5{width:40.5%}.soliloquy-grid-6{width:49%}.soliloquy-grid-7{width:57.5%}.soliloquy-grid-8{width:66%}.soliloquy-grid-9{width:74.5%}.soliloquy-grid-10{width:83%}.soliloquy-grid-11{width:91.5%}.soliloquy-grid-12{width:100%}.soliloquy-first{margin-left:0px}/*!
2
- Chosen, a Select Box Enhancer for jQuery and Prototype
3
- by Patrick Filler for Harvest, http://getharvest.com
4
-
5
- Version 1.5.1
6
- Full source at https://github.com/harvesthq/chosen
7
- Copyright (c) 2011-2016 Harvest http://getharvest.com
8
-
9
- MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
10
- This file is generated by `grunt build`, do not edit it by hand.
11
- */.soliloquy-select *{box-shadow:none !important;background-image:none !important}.soliloquy-select *:after{background-image:none !important}.soliloquy-select .soliloquy-chosen{height:35px;max-width:350px;width:100%}.soliloquy-select .chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-width:350px;font-weight:600}.soliloquy-select .chosen-container *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.soliloquy-select .chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;width:100%;border:1px solid #ddd;border-top:0;background:#fff}.soliloquy-select .chosen-container.chosen-with-drop .chosen-drop{left:0}.soliloquy-select .chosen-container a{cursor:pointer}.soliloquy-select .chosen-container .search-choice .group-name,.soliloquy-select .chosen-container .chosen-single .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:normal;color:#999999}.soliloquy-select .chosen-container .search-choice .group-name:after,.soliloquy-select .chosen-container .chosen-single .group-name:after{content:":";padding-left:2px;vertical-align:top}.soliloquy-select .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:35px;border:1px solid #ddd;border-radius:3px;background:#fff;background-clip:padding-box;color:#444;text-decoration:none;white-space:nowrap;line-height:35px}.soliloquy-select .chosen-container-single .chosen-default{color:#999}.soliloquy-select .chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.soliloquy-select .chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.soliloquy-select .chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single.chosen-disabled .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single .chosen-single div{border-left:1px solid #ddd;position:absolute;top:0;right:0;display:block;width:30px;height:100%;padding-left:9px}.soliloquy-select .chosen-container-single .chosen-single div b{display:block;width:100%;height:100%;line-height:35px}.soliloquy-select .chosen-container-single .chosen-single div b:before{content:"\0051";display:block;font-weight:normal;font-size:8px !important;font-family:'soliloquy';position:absolute;text-align:center}.soliloquy-select .chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-search input[type="text"]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #ddd;background:#fff url("chosen-sprite.png") no-repeat 100% -20px;background:url("chosen-sprite.png") no-repeat 100% -20px;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 2px 2px;background-clip:padding-box}.soliloquy-select .chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;left:-9999px}.soliloquy-select .chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.soliloquy-select .chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.soliloquy-select .chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.soliloquy-select .chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container .chosen-results li.highlighted{background:#ff3700;color:#fff}.soliloquy-select .chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.soliloquy-select .chosen-container .chosen-results li.group-result{display:list-item;font-weight:bold;cursor:default}.soliloquy-select .chosen-container .chosen-results li.group-option{padding-left:15px}.soliloquy-select .chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.soliloquy-select .chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto !important;height:1%;border:1px solid #ddd;background:#fff;cursor:text}.soliloquy-select .chosen-container-multi .chosen-choices li{float:left;list-style:none}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field input[type="text"]{margin:1px 0;padding:0;height:25px;outline:0;border:0 !important;background:transparent !important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 5px;border:1px solid #ddd;max-width:100%;border-radius:2px;background:#fff;background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,0.05);color:#333;line-height:13px;cursor:default}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:4px;right:3px;display:block;width:12px;height:12px;background:url("chosen-sprite.png") -42px 1px no-repeat;font-size:1px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ddd;background:#e4e4e4;color:#666}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-results{margin:0;padding:0}.soliloquy-select .chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container-active .chosen-single{border:1px solid #ddd}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #ddd;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background:#fff}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div{border-left:1px solid transparent;background:transparent}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 2px}.soliloquy-select .chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,0.3)}.soliloquy-select .chosen-container-active .chosen-choices li.search-field input[type="text"]{color:#222 !important}.soliloquy-select .chosen-disabled{opacity:0.5 !important;cursor:default}.soliloquy-select .chosen-disabled .chosen-single{cursor:default}.soliloquy-select .chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.soliloquy-select .chosen-rtl{text-align:right}.soliloquy-select .chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.soliloquy-select .chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.soliloquy-select .chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.soliloquy-select .chosen-rtl .chosen-single div{right:auto;left:3px}.soliloquy-select .chosen-rtl .chosen-single abbr{right:auto;left:26px}.soliloquy-select .chosen-rtl .chosen-choices li{float:right}.soliloquy-select .chosen-rtl .chosen-choices li.search-field input[type="text"]{direction:rtl}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.soliloquy-select .chosen-rtl.chosen-container-single-nosearch .chosen-search,.soliloquy-select .chosen-rtl .chosen-drop{left:9999px}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.soliloquy-select .chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.soliloquy-select .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.soliloquy-select .chosen-rtl .chosen-search input[type="text"]{padding:4px 5px 4px 20px;background:#fff url("chosen-sprite.png") no-repeat -30px -20px;background:url("chosen-sprite.png") no-repeat -30px -20px;direction:rtl}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-single div b{background-position:6px 2px}.soliloquy-select .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx){.soliloquy-select .chosen-rtl .chosen-search input[type="text"],.soliloquy-select .chosen-container-single .chosen-single abbr,.soliloquy-select .chosen-container-single .chosen-search input[type="text"],.soliloquy-select .chosen-container-multi .chosen-choices .search-choice .search-choice-close,.soliloquy-select .chosen-container .chosen-results-scroll-down span,.soliloquy-select .chosen-container .chosen-results-scroll-up span{background-image:none !important;background-size:52px 37px !important;background-repeat:no-repeat !important}}.soliloquy-select select.soliloquy-chosen+.chosen-container.chosen-container-single .chosen-single{padding-right:35px}#soliloquy-meta-edit-bulk .attachment-details .attachment-info,#soliloquy-meta-edit .attachment-details .attachment-info{padding:16px}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings,#soliloquy-meta-edit .attachment-details .attachment-info .settings{margin:0;padding:0;border:none}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .soliloquy-meta.code,#soliloquy-meta-edit .attachment-details .attachment-info .settings .soliloquy-meta.code{margin:0 0 20px 0;padding:0 0 20px 0;border-bottom:1px solid #ddd}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .soliloquy-meta.code span.name,#soliloquy-meta-edit .attachment-details .attachment-info .settings .soliloquy-meta.code span.name{display:block;width:100%;min-width:100%;margin:0;padding:0;text-align:left;font-weight:700;font-size:14px;margin-bottom:3px}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting,#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting{margin:0 0 20px 0;padding:0 0 20px 0;border-bottom:1px solid #ddd}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting .check-label,#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting .check-label{font-style:italic}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting input[type="text"],#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting textarea,#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting input[type="text"],#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting textarea{display:block;width:100%;min-width:100%;margin:0}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting input[type="checkbox"],#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting input[type="checkbox"]{float:left;margin:7px 3px 0 0}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting select,#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting select{margin:0}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting span.name,#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting span.name{display:block;width:100%;min-width:100%;margin:0;padding:0;text-align:left;font-weight:700;font-size:14px}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting span.description,#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting span.description{text-align:left;font-style:normal;font-size:13px;font-style:italic;color:#666;margin:0px}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting div.description,#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting div.description{text-align:left;font-style:normal;font-size:13px;font-style:italic;color:#666;margin-top:4px}#soliloquy-meta-edit-bulk .attachment-details .attachment-info div.actions a.button,#soliloquy-meta-edit .attachment-details .attachment-info div.actions a.button{display:inline-block}#soliloquy-meta-edit-bulk #wp-link-wrap,#soliloquy-meta-edit-bulk .mce-window,#soliloquy-meta-edit #wp-link-wrap,#soliloquy-meta-edit .mce-window{-webkit-box-shadow:0 3px 6px rgba(0,0,0,0.3)}#soliloquy-meta-edit-bulk .wp-editor-tools,#soliloquy-meta-edit .wp-editor-tools{z-index:1}#soliloquy-meta-edit-bulk .wp-editor-tools:after,#soliloquy-meta-edit .wp-editor-tools:after{clear:both;content:"";display:table}#soliloquy-meta-edit-bulk .wp-editor-container,#soliloquy-meta-edit .wp-editor-container{clear:both}#soliloquy-meta-edit-bulk .wp-editor-area,#soliloquy-meta-edit .wp-editor-area{font-family:Consolas, Monaco, monospace;font-size:13px;padding:10px;margin:1px 0 0;line-height:150%;border:0;outline:0;display:block;resize:vertical;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#soliloquy-meta-edit-bulk .rtl .wp-editor-area,#soliloquy-meta-edit .rtl .wp-editor-area{font-family:Tahoma, Monaco, monospace}#soliloquy-meta-edit-bulk .locale-he-il .wp-editor-area,#soliloquy-meta-edit .locale-he-il .wp-editor-area{font-family:Arial, Monaco, monospace}#soliloquy-meta-edit-bulk .wp-editor-container textarea.wp-editor-area,#soliloquy-meta-edit .wp-editor-container textarea.wp-editor-area{width:100%;margin:0;-webkit-box-shadow:none;box-shadow:none}#soliloquy-meta-edit-bulk .wp-editor-tabs,#soliloquy-meta-edit .wp-editor-tabs{float:right}#soliloquy-meta-edit-bulk .wp-switch-editor,#soliloquy-meta-edit .wp-switch-editor{float:left;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;top:1px;background:#ebebeb;color:#666;cursor:pointer;font-size:13px;line-height:19px;height:20px;margin:5px 0 0 5px;padding:3px 8px 4px;border:1px solid #e5e5e5}#soliloquy-meta-edit-bulk .wp-switch-editor:focus,#soliloquy-meta-edit .wp-switch-editor:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8);outline:0;color:#23282d}#soliloquy-meta-edit-bulk .html-active .switch-html:focus,#soliloquy-meta-edit-bulk .tmce-active .switch-tmce:focus,#soliloquy-meta-edit-bulk .wp-switch-editor:active,#soliloquy-meta-edit .html-active .switch-html:focus,#soliloquy-meta-edit .tmce-active .switch-tmce:focus,#soliloquy-meta-edit .wp-switch-editor:active{-webkit-box-shadow:none;box-shadow:none}#soliloquy-meta-edit-bulk .wp-switch-editor:active,#soliloquy-meta-edit .wp-switch-editor:active{background-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none}#soliloquy-meta-edit-bulk .js .tmce-active .wp-editor-area,#soliloquy-meta-edit .js .tmce-active .wp-editor-area{color:#fff}#soliloquy-meta-edit-bulk .tmce-active .quicktags-toolbar,#soliloquy-meta-edit .tmce-active .quicktags-toolbar{display:none}#soliloquy-meta-edit-bulk .html-active .switch-html,#soliloquy-meta-edit-bulk .tmce-active .switch-tmce,#soliloquy-meta-edit .html-active .switch-html,#soliloquy-meta-edit .tmce-active .switch-tmce{background:#f5f5f5;color:#555;border-bottom-color:#f5f5f5}#soliloquy-meta-edit-bulk .wp-media-buttons,#soliloquy-meta-edit .wp-media-buttons{float:left}#soliloquy-meta-edit-bulk .wp-media-buttons .button,#soliloquy-meta-edit .wp-media-buttons .button{margin-right:5px;margin-bottom:4px;padding-left:7px;padding-right:7px}#soliloquy-meta-edit-bulk .wp-media-buttons .button:active,#soliloquy-meta-edit .wp-media-buttons .button:active{position:relative;top:1px;margin-top:-1px;margin-bottom:1px}#soliloquy-meta-edit-bulk .wp-media-buttons .insert-media,#soliloquy-meta-edit .wp-media-buttons .insert-media{padding-left:5px}#soliloquy-meta-edit-bulk .wp-media-buttons a,#soliloquy-meta-edit .wp-media-buttons a{text-decoration:none;color:#444;font-size:12px}#soliloquy-meta-edit-bulk .wp-media-buttons img,#soliloquy-meta-edit .wp-media-buttons img{padding:0 4px;vertical-align:middle}#soliloquy-meta-edit-bulk .wp-media-buttons span.wp-media-buttons-icon,#soliloquy-meta-edit .wp-media-buttons span.wp-media-buttons-icon{display:inline-block;width:18px;height:18px;vertical-align:text-top;margin:0 2px}#soliloquy-meta-edit-bulk .wp-media-buttons .add_media span.wp-media-buttons-icon,#soliloquy-meta-edit .wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}#soliloquy-meta-edit-bulk .wp-media-buttons .add_media span.wp-media-buttons-icon:before,#soliloquy-meta-edit .wp-media-buttons .add_media span.wp-media-buttons-icon:before{font:400 18px / 1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"\f104"}#soliloquy-meta-edit-bulk .quicktags-toolbar,#soliloquy-meta-edit .quicktags-toolbar{padding:3px;border-bottom:1px solid #ddd;background:#f5f5f5;min-height:30px}#soliloquy-meta-edit-bulk .has-dfw .quicktags-toolbar,#soliloquy-meta-edit .has-dfw .quicktags-toolbar{padding-right:35px}#soliloquy-meta-edit-bulk .wp-core-ui .quicktags-toolbar input.button.button-small,#soliloquy-meta-edit .wp-core-ui .quicktags-toolbar input.button.button-small{margin:2px}#soliloquy-meta-edit-bulk .quicktags-toolbar input[value=link],#soliloquy-meta-edit .quicktags-toolbar input[value=link]{text-decoration:underline}#soliloquy-meta-edit-bulk .quicktags-toolbar input[value=del],#soliloquy-meta-edit .quicktags-toolbar input[value=del]{text-decoration:line-through}#soliloquy-meta-edit-bulk .quicktags-toolbar input[value="i"],#soliloquy-meta-edit .quicktags-toolbar input[value="i"]{font-style:italic}#soliloquy-meta-edit-bulk .quicktags-toolbar input[value="b"],#soliloquy-meta-edit .quicktags-toolbar input[value="b"]{font-weight:700}#soliloquy-meta-edit-bulk .mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw,#soliloquy-meta-edit-bulk .qt-dfw,#soliloquy-meta-edit .mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw,#soliloquy-meta-edit .qt-dfw{position:absolute;top:0;right:0;margin:5px 5px 0 0}#soliloquy-meta-edit-bulk .qt-fullscreen,#soliloquy-meta-edit .qt-fullscreen{position:static;margin:2px}@media screen and (max-width: 782px){#soliloquy-meta-edit-bulk .mce-toolbar .mce-btn button,#soliloquy-meta-edit-bulk .qt-dfw,#soliloquy-meta-edit .mce-toolbar .mce-btn button,#soliloquy-meta-edit .qt-dfw{padding:6px 7px}#soliloquy-meta-edit-bulk .mce-toolbar .mce-btn-group .mce-btn.mce-primary button,#soliloquy-meta-edit .mce-toolbar .mce-btn-group .mce-btn.mce-primary button{padding:6px 7px 5px}#soliloquy-meta-edit-bulk .mce-toolbar .mce-btn-group .mce-btn,#soliloquy-meta-edit .mce-toolbar .mce-btn-group .mce-btn{margin:1px}#soliloquy-meta-edit-bulk .qt-dfw,#soliloquy-meta-edit .qt-dfw{width:36px;height:34px}#soliloquy-meta-edit-bulk .mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw,#soliloquy-meta-edit .mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw{margin:4px 4px 0 0}#soliloquy-meta-edit-bulk .mce-toolbar .mce-colorbutton .mce-preview,#soliloquy-meta-edit .mce-toolbar .mce-colorbutton .mce-preview{left:8px;bottom:6px}#soliloquy-meta-edit-bulk .mce-window .mce-btn,#soliloquy-meta-edit .mce-window .mce-btn{padding:2px 0}#soliloquy-meta-edit-bulk .has-dfw .quicktags-toolbar,#soliloquy-meta-edit-bulk .has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first,#soliloquy-meta-edit .has-dfw .quicktags-toolbar,#soliloquy-meta-edit .has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first{padding-right:40px}}@media screen and (min-width: 782px){#soliloquy-meta-edit-bulk .wp-core-ui .quicktags-toolbar input.button.button-small,#soliloquy-meta-edit .wp-core-ui .quicktags-toolbar input.button.button-small{font-size:12px;height:26px;line-height:24px}}#soliloquy-meta-edit-bulk #wp_editbtns,#soliloquy-meta-edit-bulk #wp_gallerybtns,#soliloquy-meta-edit #wp_editbtns,#soliloquy-meta-edit #wp_gallerybtns{padding:2px;position:absolute;display:none;z-index:100020}#soliloquy-meta-edit-bulk #wp_delgallery,#soliloquy-meta-edit-bulk #wp_delimgbtn,#soliloquy-meta-edit-bulk #wp_editgallery,#soliloquy-meta-edit-bulk #wp_editimgbtn,#soliloquy-meta-edit #wp_delgallery,#soliloquy-meta-edit #wp_delimgbtn,#soliloquy-meta-edit #wp_editgallery,#soliloquy-meta-edit #wp_editimgbtn{border-color:#999;background-color:#eee;margin:2px;padding:2px;border-width:1px;border-style:solid;-webkit-border-radius:3px;border-radius:3px}#soliloquy-meta-edit-bulk #wp_delgallery:hover,#soliloquy-meta-edit-bulk #wp_delimgbtn:hover,#soliloquy-meta-edit-bulk #wp_editgallery:hover,#soliloquy-meta-edit-bulk #wp_editimgbtn:hover,#soliloquy-meta-edit #wp_delgallery:hover,#soliloquy-meta-edit #wp_delimgbtn:hover,#soliloquy-meta-edit #wp_editgallery:hover,#soliloquy-meta-edit #wp_editimgbtn:hover{border-color:#555;background-color:#ccc}#soliloquy-meta-edit-bulk #wp-link-wrap,#soliloquy-meta-edit #wp-link-wrap{display:none;background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,0.3);width:500px;overflow:hidden;margin-left:-250px;position:fixed;top:50%;left:50%;z-index:100105;-webkit-transition:height .2s, margin-top .2s;transition:height .2s, margin-top .2s;height:500px;margin-top:-250px}#soliloquy-meta-edit-bulk #wp-link-backdrop,#soliloquy-meta-edit #wp-link-backdrop{display:none;position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:100100}#soliloquy-meta-edit-bulk #wp-link,#soliloquy-meta-edit #wp-link{position:relative;height:100%}#soliloquy-meta-edit-bulk #wp-link-wrap .wp-link-text-field,#soliloquy-meta-edit #wp-link-wrap .wp-link-text-field{display:none}#soliloquy-meta-edit-bulk #wp-link-wrap.has-text-field .wp-link-text-field,#soliloquy-meta-edit #wp-link-wrap.has-text-field .wp-link-text-field{display:block}#soliloquy-meta-edit-bulk #link-modal-title,#soliloquy-meta-edit #link-modal-title{background:#fcfcfc;border-bottom:1px solid #ddd;height:36px;font-size:18px;font-weight:600;line-height:36px;margin:0;padding:0 36px 0 16px}#soliloquy-meta-edit-bulk #wp-link-close,#soliloquy-meta-edit #wp-link-close{color:#666;padding:0;position:absolute;top:0;right:0;width:36px;height:36px;text-align:center;background:0 0;border:none;cursor:pointer}#soliloquy-meta-edit-bulk #wp-link-close:before,#soliloquy-meta-edit #wp-link-close:before{font:400 20px / 36px dashicons;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:36px;height:36px;content:"\f158"}#soliloquy-meta-edit-bulk #wp-link-close:focus,#soliloquy-meta-edit-bulk #wp-link-close:hover,#soliloquy-meta-edit #wp-link-close:focus,#soliloquy-meta-edit #wp-link-close:hover{color:#00a0d2}#soliloquy-meta-edit-bulk #wp-link-close:focus,#soliloquy-meta-edit #wp-link-close:focus{outline:0;-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,0.8)}#soliloquy-meta-edit-bulk #wp-link-wrap #link-selector,#soliloquy-meta-edit #wp-link-wrap #link-selector{-webkit-overflow-scrolling:touch;padding:0 16px;position:absolute;top:37px;left:0;right:0;bottom:44px}#soliloquy-meta-edit-bulk #wp-link ol,#soliloquy-meta-edit-bulk #wp-link ul,#soliloquy-meta-edit #wp-link ol,#soliloquy-meta-edit #wp-link ul{list-style:none;margin:0;padding:0}#soliloquy-meta-edit-bulk #wp-link input[type=text],#soliloquy-meta-edit #wp-link input[type=text]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#soliloquy-meta-edit-bulk #wp-link #link-options,#soliloquy-meta-edit #wp-link #link-options{padding:8px 0 12px}#soliloquy-meta-edit-bulk #wp-link p.howto,#soliloquy-meta-edit #wp-link p.howto{margin:3px 0}#soliloquy-meta-edit-bulk #wp-link p.howto a,#soliloquy-meta-edit #wp-link p.howto a{text-decoration:none;color:inherit}#soliloquy-meta-edit-bulk #wp-link label input[type=text],#soliloquy-meta-edit #wp-link label input[type=text]{margin-top:5px;width:70%}#soliloquy-meta-edit-bulk #wp-link #link-options label span,#soliloquy-meta-edit-bulk #wp-link #search-panel label span.search-label,#soliloquy-meta-edit #wp-link #link-options label span,#soliloquy-meta-edit #wp-link #search-panel label span.search-label{display:inline-block;width:80px;text-align:right;padding-right:5px;max-width:24%;vertical-align:middle;word-wrap:break-word}#soliloquy-meta-edit-bulk #wp-link .link-search-field,#soliloquy-meta-edit #wp-link .link-search-field{float:left;width:250px;max-width:70%}#soliloquy-meta-edit-bulk #wp-link .link-search-wrapper,#soliloquy-meta-edit #wp-link .link-search-wrapper{margin:5px 0 9px;display:block;overflow:hidden}#soliloquy-meta-edit-bulk #wp-link .link-search-wrapper span,#soliloquy-meta-edit #wp-link .link-search-wrapper span{float:left;margin-top:4px}#soliloquy-meta-edit-bulk #wp-link .link-search-wrapper .spinner,#soliloquy-meta-edit #wp-link .link-search-wrapper .spinner{margin-top:5px}#soliloquy-meta-edit-bulk #wp-link .link-target,#soliloquy-meta-edit #wp-link .link-target{padding:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#soliloquy-meta-edit-bulk #wp-link .link-target label,#soliloquy-meta-edit #wp-link .link-target label{max-width:70%}#soliloquy-meta-edit-bulk #wp-link .query-results,#soliloquy-meta-edit #wp-link .query-results{border:1px solid #dfdfdf;margin:0 0 12px;background:#fff;overflow:auto;position:absolute;left:16px;right:16px;bottom:0;top:166px}#soliloquy-meta-edit-bulk .has-text-field #wp-link .query-results,#soliloquy-meta-edit .has-text-field #wp-link .query-results{top:200px}#soliloquy-meta-edit-bulk #wp-link li,#soliloquy-meta-edit #wp-link li{clear:both;margin-bottom:0;border-bottom:1px solid #f1f1f1;color:#32373c;padding:4px 6px 4px 10px;cursor:pointer;position:relative}#soliloquy-meta-edit-bulk #wp-link .query-notice,#soliloquy-meta-edit-bulk #wp-link li.unselectable,#soliloquy-meta-edit #wp-link .query-notice,#soliloquy-meta-edit #wp-link li.unselectable{border-bottom:1px solid #dfdfdf}#soliloquy-meta-edit-bulk #wp-link .query-notice,#soliloquy-meta-edit #wp-link .query-notice{padding:0;background-color:#f7fcfe;color:#000}#soliloquy-meta-edit-bulk #wp-link .query-notice .query-notice-default,#soliloquy-meta-edit-bulk #wp-link .query-notice .query-notice-hint,#soliloquy-meta-edit #wp-link .query-notice .query-notice-default,#soliloquy-meta-edit #wp-link .query-notice .query-notice-hint{display:block;padding:6px;border-left:4px solid #00a0d2}#soliloquy-meta-edit-bulk #wp-link .unselectable.no-matches-found,#soliloquy-meta-edit #wp-link .unselectable.no-matches-found{padding:0;border-bottom:1px solid #dfdfdf;background-color:#fef7f1}#soliloquy-meta-edit-bulk #wp-link .no-matches-found .item-title,#soliloquy-meta-edit #wp-link .no-matches-found .item-title{display:block;padding:6px;border-left:4px solid #d54e21}#soliloquy-meta-edit-bulk #wp-link .query-results em,#soliloquy-meta-edit #wp-link .query-results em{font-style:normal}#soliloquy-meta-edit-bulk #wp-link li:hover,#soliloquy-meta-edit #wp-link li:hover{background:#eaf2fa;color:#151515}#soliloquy-meta-edit-bulk #wp-link li.unselectable:hover,#soliloquy-meta-edit #wp-link li.unselectable:hover{background:#fff;cursor:auto;color:#32373c}#soliloquy-meta-edit-bulk #wp-link li.selected,#soliloquy-meta-edit #wp-link li.selected{background:#ddd;color:#32373c}#soliloquy-meta-edit-bulk #wp-link li.selected .item-title,#soliloquy-meta-edit #wp-link li.selected .item-title{font-weight:700}#soliloquy-meta-edit-bulk #wp-link li:last-child,#soliloquy-meta-edit #wp-link li:last-child{border:none}#soliloquy-meta-edit-bulk #wp-link .item-title,#soliloquy-meta-edit #wp-link .item-title{display:inline-block;width:80%;width:-webkit-calc(100% - 68px);width:calc(100% - 68px);word-wrap:break-word}#soliloquy-meta-edit-bulk #wp-link .item-info,#soliloquy-meta-edit #wp-link .item-info{text-transform:uppercase;color:#666;font-size:11px;position:absolute;right:5px;top:5px}#soliloquy-meta-edit-bulk #wp-link .river-waiting,#soliloquy-meta-edit #wp-link .river-waiting{display:none;padding:10px 0}#soliloquy-meta-edit-bulk #wp-link .submitbox,#soliloquy-meta-edit #wp-link .submitbox{padding:8px 16px;background:#fcfcfc;border-top:1px solid #ddd;position:absolute;bottom:0;left:0;right:0}#soliloquy-meta-edit-bulk #wp-link-cancel,#soliloquy-meta-edit #wp-link-cancel{line-height:25px;float:left}#soliloquy-meta-edit-bulk #wp-link-update,#soliloquy-meta-edit #wp-link-update{line-height:23px;float:right}#soliloquy-meta-edit-bulk #wp-link-submit,#soliloquy-meta-edit #wp-link-submit{float:right}@media screen and (max-width: 782px){#soliloquy-meta-edit-bulk #wp-link-wrap,#soliloquy-meta-edit #wp-link-wrap{margin-top:-140px}#soliloquy-meta-edit-bulk #wp-link-wrap .query-results,#soliloquy-meta-edit #wp-link-wrap .query-results{top:195px}#soliloquy-meta-edit-bulk #wp-link-wrap.has-text-field .query-results,#soliloquy-meta-edit #wp-link-wrap.has-text-field .query-results{top:235px}#soliloquy-meta-edit-bulk #link-selector,#soliloquy-meta-edit #link-selector{padding:0 16px 60px}#soliloquy-meta-edit-bulk #wp-link-wrap #link-selector,#soliloquy-meta-edit #wp-link-wrap #link-selector{bottom:52px}#soliloquy-meta-edit-bulk #wp-link-cancel,#soliloquy-meta-edit #wp-link-cancel{line-height:32px}#soliloquy-meta-edit-bulk #wp-link .link-target,#soliloquy-meta-edit #wp-link .link-target{padding-top:10px}#soliloquy-meta-edit-bulk #wp-link .submitbox .button,#soliloquy-meta-edit #wp-link .submitbox .button{margin-bottom:0}}@media screen and (max-width: 520px){#soliloquy-meta-edit-bulk #wp-link-wrap,#soliloquy-meta-edit #wp-link-wrap{width:auto;margin-left:0;left:10px;right:10px;max-width:500px}}@media screen and (max-height: 520px){#soliloquy-meta-edit-bulk #wp-link-wrap,#soliloquy-meta-edit #wp-link-wrap{-webkit-transition:none;transition:none;height:auto;margin-top:0;top:10px;bottom:10px}#soliloquy-meta-edit-bulk #link-selector,#soliloquy-meta-edit #link-selector{overflow:auto}#soliloquy-meta-edit-bulk #search-panel .query-results,#soliloquy-meta-edit #search-panel .query-results{position:static}}@media screen and (max-height: 290px){#soliloquy-meta-edit-bulk #wp-link-wrap,#soliloquy-meta-edit #wp-link-wrap{height:auto;margin-top:0;top:10px;bottom:10px}#soliloquy-meta-edit-bulk #link-selector,#soliloquy-meta-edit #link-selector{overflow:auto;height:-webkit-calc(100% - 92px);height:calc(100% - 92px);padding-bottom:2px}#soliloquy-meta-edit-bulk #search-panel .query-results,#soliloquy-meta-edit #search-panel .query-results{position:static}}#soliloquy-meta-edit-bulk div.wp-link-preview,#soliloquy-meta-edit div.wp-link-preview{float:left;margin:5px;max-width:694px;overflow:hidden;text-overflow:ellipsis}#soliloquy-meta-edit-bulk div.wp-link-preview a,#soliloquy-meta-edit div.wp-link-preview a{color:#0073aa;text-decoration:underline;-webkit-transition-property:border, background, color;transition-property:border, background, color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;cursor:pointer}#soliloquy-meta-edit-bulk div.wp-link-input,#soliloquy-meta-edit div.wp-link-input{float:left;margin:2px;max-width:694px}#soliloquy-meta-edit-bulk div.wp-link-input input,#soliloquy-meta-edit div.wp-link-input input{width:300px;padding:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#soliloquy-meta-edit-bulk .mce-toolbar div.wp-link-input ~ .mce-btn,#soliloquy-meta-edit-bulk .mce-toolbar div.wp-link-preview ~ .mce-btn,#soliloquy-meta-edit .mce-toolbar div.wp-link-input ~ .mce-btn,#soliloquy-meta-edit .mce-toolbar div.wp-link-preview ~ .mce-btn{margin:2px 1px}#soliloquy-meta-edit-bulk .mce-inline-toolbar-grp .mce-btn-group .mce-btn:last-child,#soliloquy-meta-edit .mce-inline-toolbar-grp .mce-btn-group .mce-btn:last-child{margin-right:2px}#soliloquy-meta-edit-bulk .ui-autocomplete.wplink-autocomplete,#soliloquy-meta-edit .ui-autocomplete.wplink-autocomplete{z-index:100110;max-height:200px;overflow-y:auto;padding:0;margin:0;list-style:none;position:absolute;border:1px solid #5b9dd9;-webkit-box-shadow:0 1px 2px rgba(30,140,190,0.8);box-shadow:0 1px 2px rgba(30,140,190,0.8);background-color:#fff}#soliloquy-meta-edit-bulk .ui-autocomplete.wplink-autocomplete li,#soliloquy-meta-edit .ui-autocomplete.wplink-autocomplete li{margin-bottom:0;padding:4px 10px;clear:both;white-space:normal;text-align:left}#soliloquy-meta-edit-bulk .ui-autocomplete.wplink-autocomplete li .wp-editor-float-right,#soliloquy-meta-edit .ui-autocomplete.wplink-autocomplete li .wp-editor-float-right{float:right}#soliloquy-meta-edit-bulk .ui-autocomplete.wplink-autocomplete li.ui-state-focus,#soliloquy-meta-edit .ui-autocomplete.wplink-autocomplete li.ui-state-focus{background-color:#ddd;cursor:pointer}@media screen and (max-width: 782px){#soliloquy-meta-edit-bulk div.wp-link-input,#soliloquy-meta-edit-bulk div.wp-link-preview,#soliloquy-meta-edit div.wp-link-input,#soliloquy-meta-edit div.wp-link-preview{max-width:70%;max-width:-webkit-calc(100% - 86px);max-width:calc(100% - 86px)}#soliloquy-meta-edit-bulk div.wp-link-preview,#soliloquy-meta-edit div.wp-link-preview{margin:8px 0 8px 5px}#soliloquy-meta-edit-bulk div.wp-link-input,#soliloquy-meta-edit div.wp-link-input{width:300px}#soliloquy-meta-edit-bulk div.wp-link-input input,#soliloquy-meta-edit div.wp-link-input input{width:100%;font-size:16px;padding:5px}}#soliloquy-meta-edit-bulk .mce-fullscreen,#soliloquy-meta-edit .mce-fullscreen{z-index:100010}#soliloquy-meta-edit-bulk .rtl .quicktags-toolbar input,#soliloquy-meta-edit-bulk .rtl .wp-switch-editor,#soliloquy-meta-edit .rtl .quicktags-toolbar input,#soliloquy-meta-edit .rtl .wp-switch-editor{font-family:Tahoma, sans-serif}#soliloquy-meta-edit-bulk .mce-rtl .mce-flow-layout .mce-flow-layout-item>div,#soliloquy-meta-edit .mce-rtl .mce-flow-layout .mce-flow-layout-item>div{direction:rtl}#soliloquy-meta-edit-bulk .mce-rtl .mce-listbox i.mce-caret,#soliloquy-meta-edit .mce-rtl .mce-listbox i.mce-caret{left:6px}#soliloquy-meta-edit-bulk html:lang(he-il) .rtl .quicktags-toolbar input,#soliloquy-meta-edit-bulk html:lang(he-il) .rtl .wp-switch-editor,#soliloquy-meta-edit html:lang(he-il) .rtl .quicktags-toolbar input,#soliloquy-meta-edit html:lang(he-il) .rtl .wp-switch-editor{font-family:Arial, sans-serif}@media print, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi){#soliloquy-meta-edit-bulk .wp-media-buttons .add_media span.wp-media-buttons-icon,#soliloquy-meta-edit .wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}}.soliloquy-tab{display:none}.soliloquy-tab-active{display:block}.branch-4-7 .wrap h1.wp-heading-inline{display:block;margin:0;width:100%;padding-left:20px;padding-right:20px;line-height:45px;font-size:20px;font-weight:400;background-color:#fff;height:45px;margin-left:-20px;margin-bottom:20px}.branch-4-7 .page-title-action{margin-left:4px;padding:4px 8px;position:relative;top:-55px;left:180px;text-decoration:none;border:none;color:#ff3700;border-radius:0;background:none;text-shadow:none;font-weight:600;font-size:13px}.branch-4-7 .page-title-action:hover{background:none;color:#999}.branch-4-7 .page-title-action:before{display:inline-block;font-family:'soliloquy';content:'\0050';margin-top:-3px;margin-right:8px;vertical-align:middle}.post-type-soliloquy #wp-link-wrap{z-index:180105 !important}.post-type-soliloquy #wp-link-backdrop{z-index:160105 !important}.post-type-soliloquy #wpbody-content h1{display:block;margin:0;padding-left:20px;padding-right:20px;line-height:45px;font-size:20px;font-weight:400;background-color:#fff;height:45px;margin-left:-20px;margin-right:-20px;margin-bottom:20px}.post-type-soliloquy #wpbody-content h1 .page-title-action{margin-left:4px;padding:4px 8px;position:relative;top:-3px;text-decoration:none;border:none;color:#ff3700;border-radius:0;background:none;text-shadow:none;font-weight:600;font-size:13px}.post-type-soliloquy #wpbody-content h1 .page-title-action:hover{background:none;color:#999}.post-type-soliloquy #wpbody-content h1 .page-title-action:before{display:inline-block;font-family:'soliloquy';content:'\0050';margin-top:-3px;margin-right:8px;vertical-align:middle}.post-type-soliloquy .wrap{margin-top:0px !important}.soliloquy-spinner{float:none;display:inline-block;margin-top:0}#soliloquy-uploader{margin-top:20px;box-sizing:border-box}#soliloquy-uploader #soliloquy-slider-type-tabs{margin-bottom:-1px;box-sizing:border-box}#soliloquy-uploader #soliloquy-slider-type-tabs:after{content:"";display:table;clear:both}#soliloquy-uploader .soliloquy-type-tab{position:relative;z-index:2;width:49.8%;display:block;text-align:center;text-decoration:none;font-size:16px;font-weight:600;line-height:55px;margin:0;height:55px;color:#999;background-color:#f7f7f7;border:1px solid #e5e5e5;box-sizing:border-box;border-top-left-radius:3px;border-top-right-radius:3px}#soliloquy-uploader .soliloquy-type-tab input{display:none}#soliloquy-uploader .soliloquy-type-tab:first-child{float:left;border-left:1px solid #e5e5e5}#soliloquy-uploader .soliloquy-type-tab:last-child{border-right:1px solid #e5e5e5;float:right}#soliloquy-uploader .soliloquy-type-tab.soliloquy-tab-nav-active{background-color:white;color:#23282d;border-bottom:none}#soliloquy-uploader .soliloquy-type-tab.soliloquy-tab-nav-active:before{color:#ff3700}#soliloquy-uploader .soliloquy-tab-container{padding:20px;position:relative;min-width:255px;min-height:245px;border:1px solid #e5e5e5;background:#fff}#soliloquy-uploader h2.soliloquy-type-label{text-align:center;padding:0;margin:20px 0}#soliloquy-uploader h2.soliloquy-type-label span{font-size:24px}#soliloquy-uploader ul#soliloquy-types-nav{text-align:center}#soliloquy-uploader ul#soliloquy-types-nav li{display:inline-block;margin:0 20px 0 0;vertical-align:top}#soliloquy-uploader ul#soliloquy-types-nav li:last-child{margin:0}#soliloquy-uploader ul#soliloquy-types-nav li label{float:left;width:110px}#soliloquy-uploader ul#soliloquy-types-nav li label input{display:none}#soliloquy-uploader ul#soliloquy-types-nav li label div.icon{width:110px;height:110px;margin:0 0 10px 0;border:1px solid #ddd;background-size:64px 64px;background-position:center;background-repeat:no-repeat}#soliloquy-uploader ul#soliloquy-types-nav li label div.title{font-weight:700}#soliloquy-uploader ul#soliloquy-types-nav li:hover label div.icon,#soliloquy-uploader ul#soliloquy-types-nav li.soliloquy-active label div.icon{background-color:#f7fcf3;border-color:#7cc048}#soliloquy-uploader ul#soliloquy-types-nav li#soliloquy-type-fc label div.icon{background-image:url(../images/fc.png)}#soliloquy-uploader ul#soliloquy-types-nav li#soliloquy-type-instagram label div.icon{background-image:url(../images/instagram.png)}#soliloquy-uploader ul#soliloquy-types-nav li#soliloquy-type-wc label div.icon{background-image:url(../images/woo.png)}#soliloquy-uploader #plupload-upload-ui{display:block;display:block}#soliloquy-uploader #plupload-upload-ui #drag-drop-area{border:3px dashed #d7d7d7;border-radius:6px}#soliloquy-uploader #plupload-upload-ui .drag-drop-info{font-size:24px;color:#23282d}#soliloquy-uploader #plupload-upload-ui .drag-drop-inside{width:520px;margin-top:40px}#soliloquy-uploader #plupload-upload-ui .drag-drop-inside p.drag-drop-buttons{text-align:left}#soliloquy-uploader #plupload-upload-ui .drag-drop-inside .soliloquy-progress-bar{display:none;width:100%;position:relative;height:10px;width:100%;margin:10px auto;border-radius:10px;background:#dfdfdf;background:rgba(0,0,0,0.1)}#soliloquy-uploader #plupload-upload-ui .drag-drop-inside .soliloquy-progress-bar div{height:10px;min-width:20px;width:0;background:#aaa;background:rgba(0,0,0,0.2);border-radius:10px;-webkit-transition:width 300ms;-moz-transition:width 300ms;-ms-transition:width 300ms;-o-transition:width 300ms;transition:width 300ms}#soliloquy-uploader #plupload-upload-ui .button{background:#f7f7f7;border:1px solid;border-color:#ddd;-webkit-box-shadow:none;box-shadow:none;color:#7f7f7f;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}#soliloquy-uploader #plupload-upload-ui .button:hover{background:#f7f7f7;border-color:#999;color:#23282d}#soliloquy-uploader #plupload-upload-ui a.soliloquy-media-library.button{display:block;position:absolute;margin:0 auto;left:250px;right:0;line-height:32px;width:240px;top:110px;text-align:center}#soliloquy-uploader #plupload-upload-ui p.upload-flash-bypass{display:none}#soliloquy-uploader p.max-upload-size{margin-bottom:0}#soliloquy-codepanel .soliloquy-clipboard{text-align:right}#soliloquy-slider-settings{margin-top:20px;position:relative;min-width:255px;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.04);box-shadow:0 1px 1px rgba(0,0,0,0.04);background:#f7f7f7;width:100%}#soliloquy-slider-settings a{text-decoration:none}#soliloquy-slider-settings:after{content:"";display:table;clear:both}#soliloquy-slider-settings #soliloquy-settings-tabs{width:150px;margin:0;padding:0;border-right:1px solid #ddd}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab{float:left;width:100%;margin:0;padding:0}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab a{float:left;width:110px;margin:0 20px;padding:20px 0;text-decoration:none;color:#999;border-bottom:1px solid #ddd;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;transition:none;-webkit-transition:none}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab a:focus{outline-style:none;box-shadow:none;border-color:transparent}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab a:before{display:inline-block;font-family:'soliloquy';font-style:normal;font-weight:normal;font-size:15px;line-height:1.5;vertical-align:middle;margin-right:8px;padding-left:4px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab:hover,#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab.soliloquy-tab-nav-active{background-color:#fff;margin-right:-1px;margin-top:-1px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab:hover a,#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab.soliloquy-tab-nav-active a{border-bottom:none}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab:hover a:before,#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab.soliloquy-tab-nav-active a:before{color:#ff3700}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-slider a:before{content:'\0042'}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-config a:before{content:'\0041'}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-mobile a:before{content:'\0046'}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-pinterest a:before{content:'\0043'}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-thumbnails a:before{content:'\004b'}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-schedule a:before{content:'\0058'}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-misc a:before{content:'\0045'}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-lightbox a:before{content:'\0044'}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-carousel a:before{content:'\0059'}#soliloquy-slider-settings #soliloquy-settings-content{margin:0 0 0 150px;padding:20px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background:#fff}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-empty-slider{position:relative;background-color:#f7f7f7;min-height:350px;width:100%;text-align:center;border-radius:3px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-empty-slider div{max-width:450px;max-height:150px;margin:auto;position:absolute;top:0;left:0;bottom:0;right:0}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-empty-slider img{max-width:336px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-external-req{border:1px solid #ff3700;border-radius:3px;padding:30px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-external-req h2{font-size:20px;margin:0;padding:0}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-slide-header label{font-weight:600}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-slide-header .soliloquy-clear-selected{display:none;margin-left:15px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-help{font-size:14px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-help a{margin-left:5px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-bulk-actions{display:none;margin-bottom:20px}#soliloquy-slider-settings #soliloquy-settings-content table.form-table{clear:none}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-config-header{border-bottom:1px solid #ddd;padding-bottom:30px;margin-bottom:30px}#soliloquy-slider-settings #soliloquy-settings-content h2.soliloquy-intro{margin:0 !important;padding:0;border-bottom:none}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-intro{font-size:16px !important;font-weight:bold;margin:0}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle{position:absolute;right:20px;top:20px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle [data-soliloquy-tooltip]:before{position:absolute;bottom:120%;left:50%;margin-bottom:5px;margin-left:-35px;padding:7px;width:120px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;color:#fff;content:attr(data-soliloquy-tooltip);text-align:center;font-size:12px;line-height:1.2}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle li.helper .dashicons{font-size:24px;margin-top:-5px;color:#ddd}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle li.helper .dashicons:hover{color:#23282d}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle li.soliloquy-select{width:200px;margin-right:15px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle li.soliloquy-select .chosen-container{margin-top:-10px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle li:not(.soliloquy-select) a{color:#ddd}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle li:not(.soliloquy-select) a i:before{font-size:16px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle li:not(.soliloquy-select) a.active-display{color:#23282d}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-select-all{margin:20px 8px 20px 0px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-slides-delete{margin-right:10px}#soliloquy-slider-settings #soliloquy-settings-content input[type=checkbox]{background-color:#fff;border:1px solid #ddd;box-shadow:none;margin-right:10px}#soliloquy-slider-settings #soliloquy-settings-content input[type=checkbox]:checked{background-color:#72b63d;border-color:#72b63d}#soliloquy-slider-settings #soliloquy-settings-content input[type=checkbox]:checked:before{color:#fff !important}#soliloquy-slider-settings #soliloquy-settings-content input[type="text"],#soliloquy-slider-settings #soliloquy-settings-content input[type="number"],#soliloquy-slider-settings #soliloquy-settings-content input[type="password"]{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:0.05s border-color ease-in-out;transition:0.05s border-color ease-in-out;min-width:210px;max-width:350px;width:92%;border-radius:3px;padding-right:0}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-config-mobile-width,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-config-mobile-height,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-config-slider-height,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-config-slider-width{max-width:166px;min-width:75px}#soliloquy-slider-settings #soliloquy-settings-content th{padding-right:0}#soliloquy-slider-settings #soliloquy-settings-content .description{font-size:13px;line-height:1.5}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output{margin:0 0 10px;padding:0;list-style:none}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li{background-color:#fff;margin:0;list-style:none;border:1px solid #cecece;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-moz-box-shadow:0 1px 2px rgba(0,0,0,0.06);-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.06);box-shadow:0 1px 2px rgba(0,0,0,0.06);cursor:move;position:relative}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li h3{display:block;margin:0;padding:0;text-overflow:ellipsis}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li.ui-sortable-helper{border:2px solid #1e8cbe}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-draft-slide.grid-status,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-active-slide.grid-status,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-remove-slide,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-modify-slide{display:block;height:25px;outline:none;position:absolute;width:25px;z-index:20;color:#fff;text-align:center;line-height:25px;vertical-align:middle;border-radius:3px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-draft-slide.grid-status i:before,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-active-slide.grid-status i:before,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-remove-slide i:before,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-modify-slide i:before{margin:0;font-size:10px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-draft-slide.grid-status span:before,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-active-slide.grid-status span:before{font-size:16px;vertical-align:middle}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-active-slide.grid-status{background-color:#74b445}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-draft-slide.grid-status{background-color:#ffa93b}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-remove-slide{background-color:#e3231b}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-modify-slide{background-color:#0072ac}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li.dropzone{background:transparent;border:2px dashed #ddd;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li{display:inline-block;width:150px;margin:0 30px 30px 0}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-item-img{display:block;margin:0 auto auto auto;top:0;left:0;right:0;bottom:0;max-width:150px;max-height:150px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-video-wrap,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-html-wrap{position:relative;width:150px;height:150px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-video-inside,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-html-inside{width:150px;height:150px;display:table;position:absolute;max-width:100%;max-height:100%;cursor:move}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-video-table,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-html-table{display:table-cell;vertical-align:middle;text-align:center;cursor:move}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li span.overlay{max-height:15px;max-width:40px;display:block;position:absolute;top:0;left:0;right:0;bottom:10px;margin:auto;padding:4px 8px;background:rgba(255,255,255,0.8);z-index:2;text-align:center;border-radius:3px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-item-info h3{display:block;border-top:1px solid #ddd;background-color:#f7f7f7;margin:0;padding:8px 4px;text-align:center;font-size:13px;max-width:150px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-item-info img{display:none}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li a.check{display:none;position:absolute;margin:auto;top:0;left:0;bottom:0;right:0;width:24px;height:24px;background-color:#72b63d;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #72b63d;box-shadow:0 0 0 1px #fff,0 0 0 2px #72b63d;z-index:10}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li a.check div.media-modal-icon{width:15px;height:15px;margin:5px 0 0 5px;background-position:-21px 0}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li.selected{border:1px solid #72b63d}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li.selected a.check{display:block}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-active-slide.grid-status,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-draft-slide.grid-status{display:block;bottom:40px;left:5px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-active-slide.list-status,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-draft-slide.list-status{display:none}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-remove-slide{left:5px;top:5px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-modify-slide{right:5px;top:5px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li{display:inline-block;min-height:100px;padding:20px;margin-bottom:10px;width:100%;box-sizing:border-box}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li span.overlay{display:none}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-video-wrap{float:left;height:75px;width:75px;margin-left:20px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-video-wrap .soliloquy-item-img{float:none;margin-left:0}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-item-img{margin-left:20px;position:relative;float:left;max-width:75px;max-height:75px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-item-info{position:absolute;margin:auto 0;top:0;bottom:0;left:160px;height:30px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-item-info img{margin-top:-20px;max-width:100px;margin-bottom:10px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li a.check{display:block;position:relative;float:left;margin:auto 0;width:25px;height:25px;margin-top:25px;background-color:#fff;border:1px solid #ddd}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li a.check div.media-modal-icon{width:15px;display:none;height:15px;margin:5px 0 0 5px;background-position:-21px 0}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li.selected{border:1px solid #72b63d}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li.selected a.check{background-color:#72b63d;display:block}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li.selected a.check div.media-modal-icon{display:block}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-active-slide.grid-status,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-draft-slide.grid-status{display:none}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-active-slide.list-status,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-draft-slide.list-status{display:block;margin-top:10px;font-weight:600;color:black}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-active-slide.list-status:hover,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-draft-slide.list-status:hover{text-decoration:none;color:black}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-active-slide.list-status span{margin-left:5px;border-radius:3px;padding:3px 5px;background-color:#74b445;color:white}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-draft-slide.list-status span{margin-left:5px;border-radius:3px;padding:3px 5px;background-color:#ffa93b;color:white}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-remove-slide{right:8px;top:8px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-modify-slide{right:40px;top:8px}#soliloquy-slider-settings #soliloquy-settings-content:after{content:"";display:table;clear:both}#soliloquy-plupload-upload-ui{position:relative}#soliloquy-drag-drop-area{border:4px dashed #bbb;height:200px}#soliloquy-plupload-upload-ui.drag-over #soliloquy-drag-drop-area{border-color:#83b4d8}#soliloquy-slider-settings .soliloquy-progress-bar{display:none;width:100%;position:relative;height:10px;width:100%;margin:10px auto;border-radius:10px;background:#dfdfdf;background:rgba(0,0,0,0.1)}#soliloquy-slider-settings .soliloquy-progress-bar div{height:10px;min-width:20px;width:0;background:#aaa;background:rgba(0,0,0,0.2);border-radius:10px;-webkit-transition:width 300ms;-moz-transition:width 300ms;-ms-transition:width 300ms;-o-transition:width 300ms;transition:width 300ms}#soliloquy .upload-flash-bypass{display:none}#soliloquy .max-upload-size{display:block;margin:10px 0}.soliloquy-media-frame .soliloquy-accepted-urls{clear:both;overflow:hidden}.soliloquy-media-frame .soliloquy-accepted-urls span{display:block}.soliloquy-media-frame .soliloquy-column{float:left;width:32%;margin-right:2%}.soliloquy-media-frame .soliloquy-column.soliloquy-last{margin-right:0}.soliloquy-media-frame .soliloquy-video-info{background-color:#ffffe0;border:1px solid #e6db55;padding:15px;margin-bottom:16px}.soliloquy-media-frame .soliloquy-video-info p{margin-top:0}#soliloquy-html-slides .soliloquy-delete-html-slide,#soliloquy-video-slides .soliloquy-delete-video-slide{float:right}.attachments-browser.soliloquy-videos a.soliloquy-item-collapse,.attachments-browser.soliloquy-html a.soliloquy-item-collapse{position:absolute;top:10px;right:20px;font-size:13px;color:black;font-weight:600;text-decoration:none}.attachments-browser.soliloquy-videos .button-soliloquy-delete,.attachments-browser.soliloquy-html .button-soliloquy-delete{color:#fff}.attachments-browser.soliloquy-videos .soliloquy-item-setting,.attachments-browser.soliloquy-html .soliloquy-item-setting{clear:both;text-align:left !important;margin-bottom:15px}.attachments-browser.soliloquy-videos .soliloquy-item-setting .code-title,.attachments-browser.soliloquy-html .soliloquy-item-setting .code-title{text-align:left !important}.attachments-browser.soliloquy-videos .soliloquy-item-setting label,.attachments-browser.soliloquy-html .soliloquy-item-setting label{clear:both;width:100%;text-align:left}.attachments-browser.soliloquy-videos .soliloquy-item-setting label strong,.attachments-browser.soliloquy-html .soliloquy-item-setting label strong{text-align:left}.attachments-browser.soliloquy-videos .soliloquy-item-setting .soliloquy-media-button a,.attachments-browser.soliloquy-html .soliloquy-item-setting .soliloquy-media-button a{float:right;clear:both}.attachments-browser.soliloquy-videos .soliloquy-item-setting input[type=text],.attachments-browser.soliloquy-videos .soliloquy-item-setting textarea,.attachments-browser.soliloquy-html .soliloquy-item-setting input[type=text],.attachments-browser.soliloquy-html .soliloquy-item-setting textarea{width:100%;clear:both}.attachments-browser.soliloquy-videos .soliloquy-item-setting .soliloquy-input-group input[type=text],.attachments-browser.soliloquy-videos .soliloquy-item-setting .soliloquy-input-group textarea,.attachments-browser.soliloquy-html .soliloquy-item-setting .soliloquy-input-group input[type=text],.attachments-browser.soliloquy-html .soliloquy-item-setting .soliloquy-input-group textarea{width:87%;clear:both}.attachments-browser.soliloquy-videos .soliloquy-item-footer,.attachments-browser.soliloquy-html .soliloquy-item-footer{display:block;margin-top:20px}.attachments-browser.soliloquy-videos .soliloquy-item-footer a,.attachments-browser.soliloquy-html .soliloquy-item-footer a{float:right}.attachments-browser.soliloquy-videos div.media-toolbar{border-bottom:1px solid #ddd}.attachments-browser.soliloquy-videos div.media-toolbar div.media-toolbar-primary button.soliloquy-videos-add{float:right;margin-top:10px}.attachments-browser.soliloquy-videos .soliloquy-video-items{position:relative;margin-right:300px;width:100%;height:100%}.attachments-browser.soliloquy-videos ul.soliloquy-videos-attachments{top:70px;padding:2px 20px 20px}.attachments-browser.soliloquy-videos ul.soliloquy-videos-attachments li.soliloquy-videos-attachment{width:100%;background-color:#f1f1f1;border:1px solid #ddd;padding:20px;margin-bottom:2em;padding-top:2em}.attachments-browser.soliloquy-videos .soliloquy-gallery-accepted-urls{clear:both;overflow:hidden}.attachments-browser.soliloquy-videos .soliloquy-gallery-accepted-urls span{display:block}.attachments-browser.soliloquy-html div.media-toolbar{border-bottom:1px solid #ddd}.attachments-browser.soliloquy-html div.media-toolbar div.media-toolbar-primary button.soliloquy-html-add{float:right;margin-top:10px}.attachments-browser.soliloquy-html .soliloquy-html-items{position:relative;margin-right:300px;width:100%;height:100%}.attachments-browser.soliloquy-html ul.soliloquy-html-attachments{top:70px;padding:2px 20px 20px}.attachments-browser.soliloquy-html ul.soliloquy-html-attachments li.soliloquy-html-attachment{width:100%;background-color:#f1f1f1;border:1px solid #ddd;padding:20px;margin-bottom:2em;padding-top:2em}.attachments-browser.soliloquy-html ul.soliloquy-html-attachments li.soliloquy-html-attachment .CodeMirror{border:1px solid #ddd;text-align:left !important}.attachments-browser .soliloquy-accepted-urls{clear:both;overflow:hidden}.attachments-browser .soliloquy-accepted-urls .title{margin-bottom:-15px}.attachments-browser .soliloquy-accepted-urls span{display:block}#soliloquy-meta-edit .right{border-right:1px solid #ccc !important}.soliloquy-meta-container .media-modal-backdrop{z-index:15999}.soliloquy-meta-container .media-modal{z-index:16000}.soliloquy-meta-container .media-modal button.right{border-right:1px solid #ddd !important}.soliloquy-meta-container .media-modal .attachment-media-view div.thumbnail-image img.details-image{max-width:50%;max-height:70%}.soliloquy-meta-container .media-modal .setting{margin:0 0 20px 0;padding:0 0 20px 0;border-bottom:1px solid #ddd}.soliloquy-meta-container .media-modal .setting span.name{font-size:14px;font-weight:600;min-width:20%;text-align:left}.soliloquy-meta-container .media-modal .setting input[type=text]{width:75%}.soliloquy-meta-container .media-modal .setting textarea{height:150px}.soliloquy-meta-container .media-modal .setting .wp-editor-wrap{float:right;width:75%}.soliloquy-meta-container .media-modal .code{margin-bottom:20px}.soliloquy-meta-container .media-modal div.actions a.button{display:inline-block}@media only screen and (max-width: 959px){.soliloquy-meta-container .setting span.name{width:100%;max-width:100%;min-width:100%}.soliloquy-meta-container .setting input[type=text]{width:100%}.soliloquy-meta-container .setting input[type=checkbox]{clear:both}.soliloquy-meta-container .setting .wp-editor-wrap{float:left;width:100%}}body.rtl #soliloquy .soliloquy-meta-icon{right:auto;left:0}body.rtl #soliloquy #soliloquy-tabs-nav li{float:right;margin:0 0 -1px 10px}body.rtl #soliloquy #soliloquy-output li{float:right;margin:0 0 10px 10px}@media screen and (max-width: 1100px){#soliloquy-uploader #plupload-upload-ui #drag-drop-area{height:208px}#soliloquy-uploader #plupload-upload-ui .drag-drop-inside{width:100%;margin-top:20px}#soliloquy-uploader #plupload-upload-ui .drag-drop-inside p.drag-drop-buttons{margin-top:10px;text-align:center}#soliloquy-uploader #plupload-upload-ui a.soliloquy-media-library.button{left:0;right:0;width:235px;top:145px}}@media screen and (max-width: 768px){.media-sidebar{display:none}#soliloquy-slider-settings #soliloquy-settings-content{margin:0 0 0 50px;padding:20px}#soliloquy-slider-settings #soliloquy-settings-tabs{width:50px;margin:0;padding:0;border-right:1px solid #ddd}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab a{width:30px;margin:0 10px;padding:10px 0}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab a span{display:none}}@media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi){a.check .media-modal-icon{background-image:url("../../../../../wp-includes/images/uploader-icons-2x.png") !important;-webkit-background-size:134px 15px;background-size:134px 15px}}
1
+ @font-face{font-family:"soliloquy";src:url("../fonts/soliloquy.eot");src:url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"),url("../fonts/soliloquy.woff") format("woff"),url("../fonts/soliloquy.ttf") format("truetype"),url("../fonts/soliloquy.svg#soliloquy") format("svg");font-weight:normal;font-style:normal}[class*=soliloquy-icon-]:before{display:inline-block;font-family:"soliloquy";font-style:normal;font-weight:normal;font-size:13px;line-height:1.5;margin-right:8px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.soliloquy-icon-configuration:before{content:"A"}.soliloquy-icon-soliloquy:before{content:"B"}.soliloquy-icon-pinterest:before{content:"C"}.soliloquy-icon-lightbox:before{content:"D"}.soliloquy-icon-misc:before{content:"E"}.soliloquy-icon-mobile:before{content:"F"}.soliloquy-icon-pagination:before{content:"G"}.soliloquy-icon-proofing:before{content:"H"}.soliloquy-icon-slideshow:before{content:"I"}.soliloquy-icon-tags:before{content:"J"}.soliloquy-icon-thumbnails:before{content:"K"}.soliloquy-icon-video:before{content:"L"}.soliloquy-icon-watermark:before{content:"M"}.soliloquy-icon-cloud-download:before{content:"N"}.soliloquy-icon-toggle-on:before{content:"O"}.soliloquy-icon-plus-circle:before{content:"P"}.soliloquy-icon-list:before{content:"R"}.soliloquy-icon-grid:before{content:"S"}.soliloquy-icon-pencil:before{content:"U"}.soliloquy-icon-close:before{content:"V"}.soliloquy-icon-check:before{content:"W"}.soliloquy-icon-schedule:before{content:"X"}.soliloquy-icon-carousel:before{content:"Y"}#soliloquy-header-temp{position:relative}#soliloquy-top-notification{position:relative;background-color:#162937;text-align:center;color:#fff;height:40px;margin-left:-20px;vertical-align:middle}#soliloquy-top-notification p{margin:0;padding:0;line-height:40px;font-size:16px}#soliloquy-top-notification a{color:#fff}#soliloquy-top-notification .envira-dismiss{position:absolute;top:10px;right:10px}#soliloquy-header{background-color:#f0f0f0;height:120px;margin-left:-20px}#soliloquy-header #soliloquy-logo{margin:0;padding-top:25px;line-height:120px;margin-left:20px}#soliloquy-header #soliloquy-logo img{max-width:288px}.wp-core-ui .button-soliloquy{background:#e02626;border-color:#e02626;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;font-weight:500;text-shadow:none;line-height:15px;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy:hover{background:#e02626;border-color:#e02626;color:#fff;opacity:.8}.wp-core-ui .button-soliloquy-secondary{background:#f7f7f7;border:1px solid;border-color:#ddd;-webkit-box-shadow:none;box-shadow:none;color:#23282d;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-secondary:hover{background:#f7f7f7;border-color:#999;color:#23282d}.wp-core-ui .button-soliloquy-delete{background:#e02626;border:1px solid;border-color:#e02626;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-delete:hover{background:#e02626;color:#fff;opacity:.8}.wp-core-ui a.button-soliloquy,.wp-core-ui a.button-soliloquy-secondary,.wp-core-ui a.button-soliloquy-delete{line-height:32px}#soliloquy-settings-content input:not([type=checkbox]){background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}#soliloquy-settings-content input[type=checkbox]:checked{-color:#e02626}#soliloquy-settings-content textarea{width:100%}#soliloquy-settings-content input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;height:35px;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}pre.soliloquy-code{background-color:#ddd;border-radius:3px;padding:15px}.soliloquy-clipboard{display:block;text-decoration:underline !important;padding-top:8px;font-size:11px;outline:0 !important}.soliloquy-clipboard:focus{outline-style:none;box-shadow:none;border-color:transparent}.soliloquy-code{display:block;background-color:#f7f7f7;border-radius:3px;padding:10px !important}.soliloquy-list-inline{margin:0;list-style:none}.soliloquy-list-inline li{display:inline-block;margin-right:5px}.soliloquy-list-inline li:last-child{margin-right:0 !important}.soliloquy-yt iframe{max-width:100%;height:auto}.soliloquy-hidden{display:none !important}.soliloquy-hideme{visibility:hidden}.soliloquy-no-border{border:none !important}.soliloquy-right{float:right}.soliloquy-left{float:left}.soliloquy-clearfix{clear:both;display:block;height:0;overflow:hidden;visibility:hidden;width:0}.no-margin{margin:0 !important}.no-margin-top{margin-top:0 !important}.no-margin-bottom{margin-bottom:0 !important}[data-soliloquy-tooltip]{position:relative;z-index:2;cursor:pointer}[data-soliloquy-tooltip]:before,[data-soliloquy-tooltip]:after{visibility:hidden;opacity:0;pointer-events:none}[data-soliloquy-tooltip]:before{position:absolute;bottom:120%;left:50%;margin-bottom:5px;margin-left:-35px;padding:7px;width:60px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;color:#fff;content:attr(data-soliloquy-tooltip);text-align:center;font-size:12px;line-height:1.2}[data-soliloquy-tooltip]:after{position:absolute;bottom:120%;left:50%;width:0;margin-left:-5px;border-top:5px solid #000;border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}[data-soliloquy-tooltip]:hover:before,[data-soliloquy-tooltip]:hover:after{visibility:visible;opacity:1}[class*=soliloquy-grid-]{float:left;margin-left:2%}[class*=soliloquy-grid-] input[type=text]{width:100% !important}.soliloquy-grid-1{width:6.5%}.soliloquy-grid-2{width:15%}.soliloquy-grid-3{width:23.5%}.soliloquy-grid-4{width:32%}.soliloquy-grid-5{width:40.5%}.soliloquy-grid-6{width:49%}.soliloquy-grid-7{width:57.5%}.soliloquy-grid-8{width:66%}.soliloquy-grid-9{width:74.5%}.soliloquy-grid-10{width:83%}.soliloquy-grid-11{width:91.5%}.soliloquy-grid-12{width:100%}.soliloquy-first{margin-left:0px}/*!
2
+ Chosen, a Select Box Enhancer for jQuery and Prototype
3
+ by Patrick Filler for Harvest, http://getharvest.com
4
+
5
+ Version 1.5.1
6
+ Full source at https://github.com/harvesthq/chosen
7
+ Copyright (c) 2011-2016 Harvest http://getharvest.com
8
+
9
+ MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
10
+ This file is generated by `grunt build`, do not edit it by hand.
11
+ */.soliloquy-select *{box-shadow:none !important;background-image:none !important}.soliloquy-select *:after{background-image:none !important}.soliloquy-select .soliloquy-chosen{height:35px;max-width:350px;width:100%}.soliloquy-select .chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-width:350px;font-weight:600}.soliloquy-select .chosen-container *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.soliloquy-select .chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;width:100%;border:1px solid #ddd;border-top:0;background:#fff}.soliloquy-select .chosen-container.chosen-with-drop .chosen-drop{left:0}.soliloquy-select .chosen-container a{cursor:pointer}.soliloquy-select .chosen-container .search-choice .group-name,.soliloquy-select .chosen-container .chosen-single .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:normal;color:#999}.soliloquy-select .chosen-container .search-choice .group-name:after,.soliloquy-select .chosen-container .chosen-single .group-name:after{content:":";padding-left:2px;vertical-align:top}.soliloquy-select .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:35px;border:1px solid #ddd;border-radius:3px;background:#fff;background-clip:padding-box;color:#444;text-decoration:none;white-space:nowrap;line-height:35px}.soliloquy-select .chosen-container-single .chosen-default{color:#999}.soliloquy-select .chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.soliloquy-select .chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.soliloquy-select .chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single.chosen-disabled .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single .chosen-single div{border-left:1px solid #ddd;position:absolute;top:0;right:0;display:block;width:30px;height:100%;padding-left:9px}.soliloquy-select .chosen-container-single .chosen-single div b{display:block;width:100%;height:100%;line-height:35px}.soliloquy-select .chosen-container-single .chosen-single div b:before{content:"Q";display:block;font-weight:normal;font-size:8px !important;font-family:"soliloquy";position:absolute;text-align:center}.soliloquy-select .chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #ddd;background:#fff url("chosen-sprite.png") no-repeat 100% -20px;background:url("chosen-sprite.png") no-repeat 100% -20px;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 2px 2px;background-clip:padding-box}.soliloquy-select .chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;left:-9999px}.soliloquy-select .chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.soliloquy-select .chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.soliloquy-select .chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.soliloquy-select .chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container .chosen-results li.highlighted{background:#e02626;color:#fff}.soliloquy-select .chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.soliloquy-select .chosen-container .chosen-results li.group-result{display:list-item;font-weight:bold;cursor:default}.soliloquy-select .chosen-container .chosen-results li.group-option{padding-left:15px}.soliloquy-select .chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.soliloquy-select .chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto !important;height:1%;border:1px solid #ddd;background:#fff;cursor:text}.soliloquy-select .chosen-container-multi .chosen-choices li{float:left;list-style:none}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;height:25px;outline:0;border:0 !important;background:transparent !important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 5px;border:1px solid #ddd;max-width:100%;border-radius:2px;background:#fff;background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:4px;right:3px;display:block;width:12px;height:12px;background:url("chosen-sprite.png") -42px 1px no-repeat;font-size:1px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ddd;background:#e4e4e4;color:#666}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-results{margin:0;padding:0}.soliloquy-select .chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container-active .chosen-single{border:1px solid #ddd}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #ddd;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background:#fff}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div{border-left:1px solid transparent;background:transparent}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 2px}.soliloquy-select .chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.soliloquy-select .chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222 !important}.soliloquy-select .chosen-disabled{opacity:.5 !important;cursor:default}.soliloquy-select .chosen-disabled .chosen-single{cursor:default}.soliloquy-select .chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.soliloquy-select .chosen-rtl{text-align:right}.soliloquy-select .chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.soliloquy-select .chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.soliloquy-select .chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.soliloquy-select .chosen-rtl .chosen-single div{right:auto;left:3px}.soliloquy-select .chosen-rtl .chosen-single abbr{right:auto;left:26px}.soliloquy-select .chosen-rtl .chosen-choices li{float:right}.soliloquy-select .chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.soliloquy-select .chosen-rtl.chosen-container-single-nosearch .chosen-search,.soliloquy-select .chosen-rtl .chosen-drop{left:9999px}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.soliloquy-select .chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.soliloquy-select .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.soliloquy-select .chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;background:#fff url("chosen-sprite.png") no-repeat -30px -20px;background:url("chosen-sprite.png") no-repeat -30px -20px;direction:rtl}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-single div b{background-position:6px 2px}.soliloquy-select .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (min-resolution: 144dpi),only screen and (min-resolution: 1.5dppx){.soliloquy-select .chosen-rtl .chosen-search input[type=text],.soliloquy-select .chosen-container-single .chosen-single abbr,.soliloquy-select .chosen-container-single .chosen-search input[type=text],.soliloquy-select .chosen-container-multi .chosen-choices .search-choice .search-choice-close,.soliloquy-select .chosen-container .chosen-results-scroll-down span,.soliloquy-select .chosen-container .chosen-results-scroll-up span{background-image:none !important;background-size:52px 37px !important;background-repeat:no-repeat !important}}.soliloquy-select select.soliloquy-chosen+.chosen-container.chosen-container-single .chosen-single{padding-right:35px}.post-type-soliloquy .media-toolbar-secondary{display:none;visibility:hidden}.post-type-soliloquy .media-frame-content .soliloquy-media-library.button{display:none;visibility:hidden}#soliloquy-meta-edit-bulk .attachment-details .attachment-info,#soliloquy-meta-edit .attachment-details .attachment-info{padding:16px}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings,#soliloquy-meta-edit .attachment-details .attachment-info .settings{margin:0;padding:0;border:none}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .soliloquy-meta.code,#soliloquy-meta-edit .attachment-details .attachment-info .settings .soliloquy-meta.code{margin:0 0 20px 0;padding:0 0 20px 0;border-bottom:1px solid #ddd}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .soliloquy-meta.code span.name,#soliloquy-meta-edit .attachment-details .attachment-info .settings .soliloquy-meta.code span.name{display:block;width:100%;min-width:100%;margin:0;padding:0;text-align:left;font-weight:700;font-size:14px;margin-bottom:3px}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting,#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting{margin:0 0 20px 0;padding:0 0 20px 0;border-bottom:1px solid #ddd}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting .check-label,#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting .check-label{font-style:italic}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting input[type=text],#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting textarea,#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting input[type=text],#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting textarea{display:block;width:100%;min-width:100%;margin:0}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting input[type=checkbox],#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting input[type=checkbox]{float:left;margin:7px 3px 0 0}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting select,#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting select{margin:0}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting span.name,#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting span.name{display:block;width:100%;min-width:100%;margin:0;padding:0;text-align:left;font-weight:700;font-size:14px}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting span.description,#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting span.description{text-align:left;font-style:normal;font-size:13px;font-style:italic;color:#666;margin:0px}#soliloquy-meta-edit-bulk .attachment-details .attachment-info .settings .setting div.description,#soliloquy-meta-edit .attachment-details .attachment-info .settings .setting div.description{text-align:left;font-style:normal;font-size:13px;font-style:italic;color:#666;margin-top:4px}#soliloquy-meta-edit-bulk .attachment-details .attachment-info div.actions a.button,#soliloquy-meta-edit .attachment-details .attachment-info div.actions a.button{display:inline-block}#soliloquy-meta-edit-bulk #wp-link-wrap,#soliloquy-meta-edit-bulk .mce-window,#soliloquy-meta-edit #wp-link-wrap,#soliloquy-meta-edit .mce-window{-webkit-box-shadow:0 3px 6px rgba(0,0,0,.3)}#soliloquy-meta-edit-bulk .wp-editor-tools,#soliloquy-meta-edit .wp-editor-tools{z-index:1}#soliloquy-meta-edit-bulk .wp-editor-tools:after,#soliloquy-meta-edit .wp-editor-tools:after{clear:both;content:"";display:table}#soliloquy-meta-edit-bulk .wp-editor-container,#soliloquy-meta-edit .wp-editor-container{clear:both}#soliloquy-meta-edit-bulk .wp-editor-area,#soliloquy-meta-edit .wp-editor-area{font-family:Consolas,Monaco,monospace;font-size:13px;padding:10px;margin:1px 0 0;line-height:150%;border:0;outline:0;display:block;resize:vertical;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#soliloquy-meta-edit-bulk .rtl .wp-editor-area,#soliloquy-meta-edit .rtl .wp-editor-area{font-family:Tahoma,Monaco,monospace}#soliloquy-meta-edit-bulk .locale-he-il .wp-editor-area,#soliloquy-meta-edit .locale-he-il .wp-editor-area{font-family:Arial,Monaco,monospace}#soliloquy-meta-edit-bulk .wp-editor-container textarea.wp-editor-area,#soliloquy-meta-edit .wp-editor-container textarea.wp-editor-area{width:100%;margin:0;-webkit-box-shadow:none;box-shadow:none}#soliloquy-meta-edit-bulk .wp-editor-tabs,#soliloquy-meta-edit .wp-editor-tabs{float:right}#soliloquy-meta-edit-bulk .wp-switch-editor,#soliloquy-meta-edit .wp-switch-editor{float:left;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;top:1px;background:#ebebeb;color:#666;cursor:pointer;font-size:13px;line-height:19px;height:20px;margin:5px 0 0 5px;padding:3px 8px 4px;border:1px solid #e5e5e5}#soliloquy-meta-edit-bulk .wp-switch-editor:focus,#soliloquy-meta-edit .wp-switch-editor:focus{-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);outline:0;color:#23282d}#soliloquy-meta-edit-bulk .html-active .switch-html:focus,#soliloquy-meta-edit-bulk .tmce-active .switch-tmce:focus,#soliloquy-meta-edit-bulk .wp-switch-editor:active,#soliloquy-meta-edit .html-active .switch-html:focus,#soliloquy-meta-edit .tmce-active .switch-tmce:focus,#soliloquy-meta-edit .wp-switch-editor:active{-webkit-box-shadow:none;box-shadow:none}#soliloquy-meta-edit-bulk .wp-switch-editor:active,#soliloquy-meta-edit .wp-switch-editor:active{background-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none}#soliloquy-meta-edit-bulk .js .tmce-active .wp-editor-area,#soliloquy-meta-edit .js .tmce-active .wp-editor-area{color:#fff}#soliloquy-meta-edit-bulk .tmce-active .quicktags-toolbar,#soliloquy-meta-edit .tmce-active .quicktags-toolbar{display:none}#soliloquy-meta-edit-bulk .html-active .switch-html,#soliloquy-meta-edit-bulk .tmce-active .switch-tmce,#soliloquy-meta-edit .html-active .switch-html,#soliloquy-meta-edit .tmce-active .switch-tmce{background:#f5f5f5;color:#555;border-bottom-color:#f5f5f5}#soliloquy-meta-edit-bulk .wp-media-buttons,#soliloquy-meta-edit .wp-media-buttons{float:left}#soliloquy-meta-edit-bulk .wp-media-buttons .button,#soliloquy-meta-edit .wp-media-buttons .button{margin-right:5px;margin-bottom:4px;padding-left:7px;padding-right:7px}#soliloquy-meta-edit-bulk .wp-media-buttons .button:active,#soliloquy-meta-edit .wp-media-buttons .button:active{position:relative;top:1px;margin-top:-1px;margin-bottom:1px}#soliloquy-meta-edit-bulk .wp-media-buttons .insert-media,#soliloquy-meta-edit .wp-media-buttons .insert-media{padding-left:5px}#soliloquy-meta-edit-bulk .wp-media-buttons a,#soliloquy-meta-edit .wp-media-buttons a{text-decoration:none;color:#444;font-size:12px}#soliloquy-meta-edit-bulk .wp-media-buttons img,#soliloquy-meta-edit .wp-media-buttons img{padding:0 4px;vertical-align:middle}#soliloquy-meta-edit-bulk .wp-media-buttons span.wp-media-buttons-icon,#soliloquy-meta-edit .wp-media-buttons span.wp-media-buttons-icon{display:inline-block;width:18px;height:18px;vertical-align:text-top;margin:0 2px}#soliloquy-meta-edit-bulk .wp-media-buttons .add_media span.wp-media-buttons-icon,#soliloquy-meta-edit .wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}#soliloquy-meta-edit-bulk .wp-media-buttons .add_media span.wp-media-buttons-icon:before,#soliloquy-meta-edit .wp-media-buttons .add_media span.wp-media-buttons-icon:before{font:400 18px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:""}#soliloquy-meta-edit-bulk .quicktags-toolbar,#soliloquy-meta-edit .quicktags-toolbar{padding:3px;border-bottom:1px solid #ddd;background:#f5f5f5;min-height:30px}#soliloquy-meta-edit-bulk .has-dfw .quicktags-toolbar,#soliloquy-meta-edit .has-dfw .quicktags-toolbar{padding-right:35px}#soliloquy-meta-edit-bulk .wp-core-ui .quicktags-toolbar input.button.button-small,#soliloquy-meta-edit .wp-core-ui .quicktags-toolbar input.button.button-small{margin:2px}#soliloquy-meta-edit-bulk .quicktags-toolbar input[value=link],#soliloquy-meta-edit .quicktags-toolbar input[value=link]{text-decoration:underline}#soliloquy-meta-edit-bulk .quicktags-toolbar input[value=del],#soliloquy-meta-edit .quicktags-toolbar input[value=del]{text-decoration:line-through}#soliloquy-meta-edit-bulk .quicktags-toolbar input[value=i],#soliloquy-meta-edit .quicktags-toolbar input[value=i]{font-style:italic}#soliloquy-meta-edit-bulk .quicktags-toolbar input[value=b],#soliloquy-meta-edit .quicktags-toolbar input[value=b]{font-weight:700}#soliloquy-meta-edit-bulk .mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw,#soliloquy-meta-edit-bulk .qt-dfw,#soliloquy-meta-edit .mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw,#soliloquy-meta-edit .qt-dfw{position:absolute;top:0;right:0;margin:5px 5px 0 0}#soliloquy-meta-edit-bulk .qt-fullscreen,#soliloquy-meta-edit .qt-fullscreen{position:static;margin:2px}@media screen and (max-width: 782px){#soliloquy-meta-edit-bulk .mce-toolbar .mce-btn button,#soliloquy-meta-edit-bulk .qt-dfw,#soliloquy-meta-edit .mce-toolbar .mce-btn button,#soliloquy-meta-edit .qt-dfw{padding:6px 7px}#soliloquy-meta-edit-bulk .mce-toolbar .mce-btn-group .mce-btn.mce-primary button,#soliloquy-meta-edit .mce-toolbar .mce-btn-group .mce-btn.mce-primary button{padding:6px 7px 5px}#soliloquy-meta-edit-bulk .mce-toolbar .mce-btn-group .mce-btn,#soliloquy-meta-edit .mce-toolbar .mce-btn-group .mce-btn{margin:1px}#soliloquy-meta-edit-bulk .qt-dfw,#soliloquy-meta-edit .qt-dfw{width:36px;height:34px}#soliloquy-meta-edit-bulk .mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw,#soliloquy-meta-edit .mce-toolbar .mce-btn-group .mce-btn.mce-wp-dfw{margin:4px 4px 0 0}#soliloquy-meta-edit-bulk .mce-toolbar .mce-colorbutton .mce-preview,#soliloquy-meta-edit .mce-toolbar .mce-colorbutton .mce-preview{left:8px;bottom:6px}#soliloquy-meta-edit-bulk .mce-window .mce-btn,#soliloquy-meta-edit .mce-window .mce-btn{padding:2px 0}#soliloquy-meta-edit-bulk .has-dfw .quicktags-toolbar,#soliloquy-meta-edit-bulk .has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first,#soliloquy-meta-edit .has-dfw .quicktags-toolbar,#soliloquy-meta-edit .has-dfw div.mce-toolbar-grp .mce-toolbar.mce-first{padding-right:40px}}@media screen and (min-width: 782px){#soliloquy-meta-edit-bulk .wp-core-ui .quicktags-toolbar input.button.button-small,#soliloquy-meta-edit .wp-core-ui .quicktags-toolbar input.button.button-small{font-size:12px;height:26px;line-height:24px}}#soliloquy-meta-edit-bulk #wp_editbtns,#soliloquy-meta-edit-bulk #wp_gallerybtns,#soliloquy-meta-edit #wp_editbtns,#soliloquy-meta-edit #wp_gallerybtns{padding:2px;position:absolute;display:none;z-index:100020}#soliloquy-meta-edit-bulk #wp_delgallery,#soliloquy-meta-edit-bulk #wp_delimgbtn,#soliloquy-meta-edit-bulk #wp_editgallery,#soliloquy-meta-edit-bulk #wp_editimgbtn,#soliloquy-meta-edit #wp_delgallery,#soliloquy-meta-edit #wp_delimgbtn,#soliloquy-meta-edit #wp_editgallery,#soliloquy-meta-edit #wp_editimgbtn{border-color:#999;background-color:#eee;margin:2px;padding:2px;border-width:1px;border-style:solid;-webkit-border-radius:3px;border-radius:3px}#soliloquy-meta-edit-bulk #wp_delgallery:hover,#soliloquy-meta-edit-bulk #wp_delimgbtn:hover,#soliloquy-meta-edit-bulk #wp_editgallery:hover,#soliloquy-meta-edit-bulk #wp_editimgbtn:hover,#soliloquy-meta-edit #wp_delgallery:hover,#soliloquy-meta-edit #wp_delimgbtn:hover,#soliloquy-meta-edit #wp_editgallery:hover,#soliloquy-meta-edit #wp_editimgbtn:hover{border-color:#555;background-color:#ccc}#soliloquy-meta-edit-bulk #wp-link-wrap,#soliloquy-meta-edit #wp-link-wrap{display:none;background-color:#fff;box-shadow:0 3px 6px rgba(0,0,0,.3);width:500px;overflow:hidden;margin-left:-250px;position:fixed;top:50%;left:50%;z-index:100105;-webkit-transition:height .2s,margin-top .2s;transition:height .2s,margin-top .2s;height:500px;margin-top:-250px}#soliloquy-meta-edit-bulk #wp-link-backdrop,#soliloquy-meta-edit #wp-link-backdrop{display:none;position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background:#000;opacity:.7;filter:alpha(opacity=70);z-index:100100}#soliloquy-meta-edit-bulk #wp-link,#soliloquy-meta-edit #wp-link{position:relative;height:100%}#soliloquy-meta-edit-bulk #wp-link-wrap .wp-link-text-field,#soliloquy-meta-edit #wp-link-wrap .wp-link-text-field{display:none}#soliloquy-meta-edit-bulk #wp-link-wrap.has-text-field .wp-link-text-field,#soliloquy-meta-edit #wp-link-wrap.has-text-field .wp-link-text-field{display:block}#soliloquy-meta-edit-bulk #link-modal-title,#soliloquy-meta-edit #link-modal-title{background:#fcfcfc;border-bottom:1px solid #ddd;height:36px;font-size:18px;font-weight:600;line-height:36px;margin:0;padding:0 36px 0 16px}#soliloquy-meta-edit-bulk #wp-link-close,#soliloquy-meta-edit #wp-link-close{color:#666;padding:0;position:absolute;top:0;right:0;width:36px;height:36px;text-align:center;background:0 0;border:none;cursor:pointer}#soliloquy-meta-edit-bulk #wp-link-close:before,#soliloquy-meta-edit #wp-link-close:before{font:400 20px/36px dashicons;vertical-align:top;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;width:36px;height:36px;content:""}#soliloquy-meta-edit-bulk #wp-link-close:focus,#soliloquy-meta-edit-bulk #wp-link-close:hover,#soliloquy-meta-edit #wp-link-close:focus,#soliloquy-meta-edit #wp-link-close:hover{color:#00a0d2}#soliloquy-meta-edit-bulk #wp-link-close:focus,#soliloquy-meta-edit #wp-link-close:focus{outline:0;-webkit-box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8);box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}#soliloquy-meta-edit-bulk #wp-link-wrap #link-selector,#soliloquy-meta-edit #wp-link-wrap #link-selector{-webkit-overflow-scrolling:touch;padding:0 16px;position:absolute;top:37px;left:0;right:0;bottom:44px}#soliloquy-meta-edit-bulk #wp-link ol,#soliloquy-meta-edit-bulk #wp-link ul,#soliloquy-meta-edit #wp-link ol,#soliloquy-meta-edit #wp-link ul{list-style:none;margin:0;padding:0}#soliloquy-meta-edit-bulk #wp-link input[type=text],#soliloquy-meta-edit #wp-link input[type=text]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#soliloquy-meta-edit-bulk #wp-link #link-options,#soliloquy-meta-edit #wp-link #link-options{padding:8px 0 12px}#soliloquy-meta-edit-bulk #wp-link p.howto,#soliloquy-meta-edit #wp-link p.howto{margin:3px 0}#soliloquy-meta-edit-bulk #wp-link p.howto a,#soliloquy-meta-edit #wp-link p.howto a{text-decoration:none;color:inherit}#soliloquy-meta-edit-bulk #wp-link label input[type=text],#soliloquy-meta-edit #wp-link label input[type=text]{margin-top:5px;width:70%}#soliloquy-meta-edit-bulk #wp-link #link-options label span,#soliloquy-meta-edit-bulk #wp-link #search-panel label span.search-label,#soliloquy-meta-edit #wp-link #link-options label span,#soliloquy-meta-edit #wp-link #search-panel label span.search-label{display:inline-block;width:80px;text-align:right;padding-right:5px;max-width:24%;vertical-align:middle;word-wrap:break-word}#soliloquy-meta-edit-bulk #wp-link .link-search-field,#soliloquy-meta-edit #wp-link .link-search-field{float:left;width:250px;max-width:70%}#soliloquy-meta-edit-bulk #wp-link .link-search-wrapper,#soliloquy-meta-edit #wp-link .link-search-wrapper{margin:5px 0 9px;display:block;overflow:hidden}#soliloquy-meta-edit-bulk #wp-link .link-search-wrapper span,#soliloquy-meta-edit #wp-link .link-search-wrapper span{float:left;margin-top:4px}#soliloquy-meta-edit-bulk #wp-link .link-search-wrapper .spinner,#soliloquy-meta-edit #wp-link .link-search-wrapper .spinner{margin-top:5px}#soliloquy-meta-edit-bulk #wp-link .link-target,#soliloquy-meta-edit #wp-link .link-target{padding:3px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#soliloquy-meta-edit-bulk #wp-link .link-target label,#soliloquy-meta-edit #wp-link .link-target label{max-width:70%}#soliloquy-meta-edit-bulk #wp-link .query-results,#soliloquy-meta-edit #wp-link .query-results{border:1px solid #dfdfdf;margin:0 0 12px;background:#fff;overflow:auto;position:absolute;left:16px;right:16px;bottom:0;top:166px}#soliloquy-meta-edit-bulk .has-text-field #wp-link .query-results,#soliloquy-meta-edit .has-text-field #wp-link .query-results{top:200px}#soliloquy-meta-edit-bulk #wp-link li,#soliloquy-meta-edit #wp-link li{clear:both;margin-bottom:0;border-bottom:1px solid #f1f1f1;color:#32373c;padding:4px 6px 4px 10px;cursor:pointer;position:relative}#soliloquy-meta-edit-bulk #wp-link .query-notice,#soliloquy-meta-edit-bulk #wp-link li.unselectable,#soliloquy-meta-edit #wp-link .query-notice,#soliloquy-meta-edit #wp-link li.unselectable{border-bottom:1px solid #dfdfdf}#soliloquy-meta-edit-bulk #wp-link .query-notice,#soliloquy-meta-edit #wp-link .query-notice{padding:0;background-color:#f7fcfe;color:#000}#soliloquy-meta-edit-bulk #wp-link .query-notice .query-notice-default,#soliloquy-meta-edit-bulk #wp-link .query-notice .query-notice-hint,#soliloquy-meta-edit #wp-link .query-notice .query-notice-default,#soliloquy-meta-edit #wp-link .query-notice .query-notice-hint{display:block;padding:6px;border-left:4px solid #00a0d2}#soliloquy-meta-edit-bulk #wp-link .unselectable.no-matches-found,#soliloquy-meta-edit #wp-link .unselectable.no-matches-found{padding:0;border-bottom:1px solid #dfdfdf;background-color:#fef7f1}#soliloquy-meta-edit-bulk #wp-link .no-matches-found .item-title,#soliloquy-meta-edit #wp-link .no-matches-found .item-title{display:block;padding:6px;border-left:4px solid #d54e21}#soliloquy-meta-edit-bulk #wp-link .query-results em,#soliloquy-meta-edit #wp-link .query-results em{font-style:normal}#soliloquy-meta-edit-bulk #wp-link li:hover,#soliloquy-meta-edit #wp-link li:hover{background:#eaf2fa;color:#151515}#soliloquy-meta-edit-bulk #wp-link li.unselectable:hover,#soliloquy-meta-edit #wp-link li.unselectable:hover{background:#fff;cursor:auto;color:#32373c}#soliloquy-meta-edit-bulk #wp-link li.selected,#soliloquy-meta-edit #wp-link li.selected{background:#ddd;color:#32373c}#soliloquy-meta-edit-bulk #wp-link li.selected .item-title,#soliloquy-meta-edit #wp-link li.selected .item-title{font-weight:700}#soliloquy-meta-edit-bulk #wp-link li:last-child,#soliloquy-meta-edit #wp-link li:last-child{border:none}#soliloquy-meta-edit-bulk #wp-link .item-title,#soliloquy-meta-edit #wp-link .item-title{display:inline-block;width:80%;width:-webkit-calc(100% - 68px);width:calc(100% - 68px);word-wrap:break-word}#soliloquy-meta-edit-bulk #wp-link .item-info,#soliloquy-meta-edit #wp-link .item-info{text-transform:uppercase;color:#666;font-size:11px;position:absolute;right:5px;top:5px}#soliloquy-meta-edit-bulk #wp-link .river-waiting,#soliloquy-meta-edit #wp-link .river-waiting{display:none;padding:10px 0}#soliloquy-meta-edit-bulk #wp-link .submitbox,#soliloquy-meta-edit #wp-link .submitbox{padding:8px 16px;background:#fcfcfc;border-top:1px solid #ddd;position:absolute;bottom:0;left:0;right:0}#soliloquy-meta-edit-bulk #wp-link-cancel,#soliloquy-meta-edit #wp-link-cancel{line-height:25px;float:left}#soliloquy-meta-edit-bulk #wp-link-update,#soliloquy-meta-edit #wp-link-update{line-height:23px;float:right}#soliloquy-meta-edit-bulk #wp-link-submit,#soliloquy-meta-edit #wp-link-submit{float:right}@media screen and (max-width: 782px){#soliloquy-meta-edit-bulk #wp-link-wrap,#soliloquy-meta-edit #wp-link-wrap{margin-top:-140px}#soliloquy-meta-edit-bulk #wp-link-wrap .query-results,#soliloquy-meta-edit #wp-link-wrap .query-results{top:195px}#soliloquy-meta-edit-bulk #wp-link-wrap.has-text-field .query-results,#soliloquy-meta-edit #wp-link-wrap.has-text-field .query-results{top:235px}#soliloquy-meta-edit-bulk #link-selector,#soliloquy-meta-edit #link-selector{padding:0 16px 60px}#soliloquy-meta-edit-bulk #wp-link-wrap #link-selector,#soliloquy-meta-edit #wp-link-wrap #link-selector{bottom:52px}#soliloquy-meta-edit-bulk #wp-link-cancel,#soliloquy-meta-edit #wp-link-cancel{line-height:32px}#soliloquy-meta-edit-bulk #wp-link .link-target,#soliloquy-meta-edit #wp-link .link-target{padding-top:10px}#soliloquy-meta-edit-bulk #wp-link .submitbox .button,#soliloquy-meta-edit #wp-link .submitbox .button{margin-bottom:0}}@media screen and (max-width: 520px){#soliloquy-meta-edit-bulk #wp-link-wrap,#soliloquy-meta-edit #wp-link-wrap{width:auto;margin-left:0;left:10px;right:10px;max-width:500px}}@media screen and (max-height: 520px){#soliloquy-meta-edit-bulk #wp-link-wrap,#soliloquy-meta-edit #wp-link-wrap{-webkit-transition:none;transition:none;height:auto;margin-top:0;top:10px;bottom:10px}#soliloquy-meta-edit-bulk #link-selector,#soliloquy-meta-edit #link-selector{overflow:auto}#soliloquy-meta-edit-bulk #search-panel .query-results,#soliloquy-meta-edit #search-panel .query-results{position:static}}@media screen and (max-height: 290px){#soliloquy-meta-edit-bulk #wp-link-wrap,#soliloquy-meta-edit #wp-link-wrap{height:auto;margin-top:0;top:10px;bottom:10px}#soliloquy-meta-edit-bulk #link-selector,#soliloquy-meta-edit #link-selector{overflow:auto;height:-webkit-calc(100% - 92px);height:calc(100% - 92px);padding-bottom:2px}#soliloquy-meta-edit-bulk #search-panel .query-results,#soliloquy-meta-edit #search-panel .query-results{position:static}}#soliloquy-meta-edit-bulk div.wp-link-preview,#soliloquy-meta-edit div.wp-link-preview{float:left;margin:5px;max-width:694px;overflow:hidden;text-overflow:ellipsis}#soliloquy-meta-edit-bulk div.wp-link-preview a,#soliloquy-meta-edit div.wp-link-preview a{color:#0073aa;text-decoration:underline;-webkit-transition-property:border,background,color;transition-property:border,background,color;-webkit-transition-duration:.05s;transition-duration:.05s;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out;cursor:pointer}#soliloquy-meta-edit-bulk div.wp-link-input,#soliloquy-meta-edit div.wp-link-input{float:left;margin:2px;max-width:694px}#soliloquy-meta-edit-bulk div.wp-link-input input,#soliloquy-meta-edit div.wp-link-input input{width:300px;padding:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#soliloquy-meta-edit-bulk .mce-toolbar div.wp-link-input~.mce-btn,#soliloquy-meta-edit-bulk .mce-toolbar div.wp-link-preview~.mce-btn,#soliloquy-meta-edit .mce-toolbar div.wp-link-input~.mce-btn,#soliloquy-meta-edit .mce-toolbar div.wp-link-preview~.mce-btn{margin:2px 1px}#soliloquy-meta-edit-bulk .mce-inline-toolbar-grp .mce-btn-group .mce-btn:last-child,#soliloquy-meta-edit .mce-inline-toolbar-grp .mce-btn-group .mce-btn:last-child{margin-right:2px}#soliloquy-meta-edit-bulk .ui-autocomplete.wplink-autocomplete,#soliloquy-meta-edit .ui-autocomplete.wplink-autocomplete{z-index:100110;max-height:200px;overflow-y:auto;padding:0;margin:0;list-style:none;position:absolute;border:1px solid #5b9dd9;-webkit-box-shadow:0 1px 2px rgba(30,140,190,.8);box-shadow:0 1px 2px rgba(30,140,190,.8);background-color:#fff}#soliloquy-meta-edit-bulk .ui-autocomplete.wplink-autocomplete li,#soliloquy-meta-edit .ui-autocomplete.wplink-autocomplete li{margin-bottom:0;padding:4px 10px;clear:both;white-space:normal;text-align:left}#soliloquy-meta-edit-bulk .ui-autocomplete.wplink-autocomplete li .wp-editor-float-right,#soliloquy-meta-edit .ui-autocomplete.wplink-autocomplete li .wp-editor-float-right{float:right}#soliloquy-meta-edit-bulk .ui-autocomplete.wplink-autocomplete li.ui-state-focus,#soliloquy-meta-edit .ui-autocomplete.wplink-autocomplete li.ui-state-focus{background-color:#ddd;cursor:pointer}@media screen and (max-width: 782px){#soliloquy-meta-edit-bulk div.wp-link-input,#soliloquy-meta-edit-bulk div.wp-link-preview,#soliloquy-meta-edit div.wp-link-input,#soliloquy-meta-edit div.wp-link-preview{max-width:70%;max-width:-webkit-calc(100% - 86px);max-width:calc(100% - 86px)}#soliloquy-meta-edit-bulk div.wp-link-preview,#soliloquy-meta-edit div.wp-link-preview{margin:8px 0 8px 5px}#soliloquy-meta-edit-bulk div.wp-link-input,#soliloquy-meta-edit div.wp-link-input{width:300px}#soliloquy-meta-edit-bulk div.wp-link-input input,#soliloquy-meta-edit div.wp-link-input input{width:100%;font-size:16px;padding:5px}}#soliloquy-meta-edit-bulk .mce-fullscreen,#soliloquy-meta-edit .mce-fullscreen{z-index:100010}#soliloquy-meta-edit-bulk .rtl .quicktags-toolbar input,#soliloquy-meta-edit-bulk .rtl .wp-switch-editor,#soliloquy-meta-edit .rtl .quicktags-toolbar input,#soliloquy-meta-edit .rtl .wp-switch-editor{font-family:Tahoma,sans-serif}#soliloquy-meta-edit-bulk .mce-rtl .mce-flow-layout .mce-flow-layout-item>div,#soliloquy-meta-edit .mce-rtl .mce-flow-layout .mce-flow-layout-item>div{direction:rtl}#soliloquy-meta-edit-bulk .mce-rtl .mce-listbox i.mce-caret,#soliloquy-meta-edit .mce-rtl .mce-listbox i.mce-caret{left:6px}#soliloquy-meta-edit-bulk html:lang(he-il) .rtl .quicktags-toolbar input,#soliloquy-meta-edit-bulk html:lang(he-il) .rtl .wp-switch-editor,#soliloquy-meta-edit html:lang(he-il) .rtl .quicktags-toolbar input,#soliloquy-meta-edit html:lang(he-il) .rtl .wp-switch-editor{font-family:Arial,sans-serif}@media print,(-webkit-min-device-pixel-ratio: 1.25),(min-resolution: 120dpi){#soliloquy-meta-edit-bulk .wp-media-buttons .add_media span.wp-media-buttons-icon,#soliloquy-meta-edit .wp-media-buttons .add_media span.wp-media-buttons-icon{background:0 0}}.soliloquy-tab{display:none}.soliloquy-tab-active{display:block}.post-type-soliloquy #wp-link-wrap{z-index:180105 !important}.post-type-soliloquy #wp-link-backdrop{z-index:160105 !important}.post-type-soliloquy .page-title-action{display:inline-block;margin-left:4px;padding:4px 8px;top:-55px;margin-bottom:-55px;left:190px;text-decoration:none;border:none;color:#e02626;border-radius:0;background:none;text-shadow:none;font-weight:600;font-size:13px}.post-type-soliloquy .page-title-action:hover,.post-type-soliloquy .page-title-action:active{position:relative;top:-55px;margin-bottom:-55px;left:190px}.post-type-soliloquy .page-title-action:hover{background:none;color:#999}.post-type-soliloquy .page-title-action:before{display:inline-block;font-family:"soliloquy";content:"P";margin-top:-3px;margin-right:8px;vertical-align:middle}.post-type-soliloquy #wpbody-content h1{display:block;margin:0;padding-left:20px;padding-right:20px;line-height:45px;font-size:20px;font-weight:400;background-color:#fff;height:45px;margin-left:-20px;margin-right:-20px;margin-bottom:20px}.post-type-soliloquy .wrap{margin-top:0px !important}.soliloquy-spinner{float:none;display:inline-block;margin-top:0}#soliloquy-uploader{margin-top:20px;box-sizing:border-box}#soliloquy-uploader #soliloquy-slider-type-tabs{margin-bottom:-1px;box-sizing:border-box}#soliloquy-uploader #soliloquy-slider-type-tabs:after{content:"";display:table;clear:both}#soliloquy-uploader .soliloquy-type-tab{position:relative;z-index:2;width:49.8%;display:block;text-align:center;text-decoration:none;font-size:16px;font-weight:600;line-height:55px;margin:0;height:55px;color:#999;background-color:#f7f7f7;border:1px solid #e5e5e5;box-sizing:border-box;border-top-left-radius:3px;border-top-right-radius:3px}#soliloquy-uploader .soliloquy-type-tab input{display:none}#soliloquy-uploader .soliloquy-type-tab:first-child{float:left;border-left:1px solid #e5e5e5}#soliloquy-uploader .soliloquy-type-tab:last-child{border-right:1px solid #e5e5e5;float:right}#soliloquy-uploader .soliloquy-type-tab.soliloquy-tab-nav-active{background-color:#fff;color:#23282d;border-bottom:none}#soliloquy-uploader .soliloquy-type-tab.soliloquy-tab-nav-active:before{color:#e02626}#soliloquy-uploader .soliloquy-tab-container{padding:20px;position:relative;min-width:255px;min-height:245px;border:1px solid #e5e5e5;background:#fff}#soliloquy-uploader h2.soliloquy-type-label{text-align:center;padding:0;margin:20px 0}#soliloquy-uploader h2.soliloquy-type-label span{font-size:24px}#soliloquy-uploader ul#soliloquy-types-nav{text-align:center}#soliloquy-uploader ul#soliloquy-types-nav li{display:inline-block;margin:0 20px 0 0;vertical-align:top}#soliloquy-uploader ul#soliloquy-types-nav li:last-child{margin:0}#soliloquy-uploader ul#soliloquy-types-nav li label{float:left;width:110px}#soliloquy-uploader ul#soliloquy-types-nav li label input{display:none}#soliloquy-uploader ul#soliloquy-types-nav li label div.icon{width:110px;height:110px;margin:0 0 10px 0;border:1px solid #ddd;background-size:64px 64px;background-position:center;background-repeat:no-repeat}#soliloquy-uploader ul#soliloquy-types-nav li label div.title{font-weight:700}#soliloquy-uploader ul#soliloquy-types-nav li:hover label div.icon,#soliloquy-uploader ul#soliloquy-types-nav li.soliloquy-active label div.icon{background-color:#f7fcf3;border-color:#7cc048}#soliloquy-uploader ul#soliloquy-types-nav li#soliloquy-type-fc label div.icon{background-image:url(../images/fc.png)}#soliloquy-uploader ul#soliloquy-types-nav li#soliloquy-type-instagram label div.icon{background-image:url(../images/instagram.png)}#soliloquy-uploader ul#soliloquy-types-nav li#soliloquy-type-wc label div.icon{background-image:url(../images/woo.png)}#soliloquy-uploader #plupload-upload-ui{display:block;display:block}#soliloquy-uploader #plupload-upload-ui #drag-drop-area{border:3px dashed #d7d7d7;border-radius:6px}#soliloquy-uploader #plupload-upload-ui .drag-drop-info{font-size:24px;color:#23282d}#soliloquy-uploader #plupload-upload-ui .drag-drop-inside{width:520px;margin-top:40px}#soliloquy-uploader #plupload-upload-ui .drag-drop-inside p.drag-drop-buttons{text-align:left}#soliloquy-uploader #plupload-upload-ui .drag-drop-inside .soliloquy-progress-bar{display:none;width:100%;position:relative;height:10px;width:100%;margin:10px auto;border-radius:10px;background:#dfdfdf;background:rgba(0,0,0,.1)}#soliloquy-uploader #plupload-upload-ui .drag-drop-inside .soliloquy-progress-bar div{height:10px;min-width:20px;width:0;background:#aaa;background:rgba(0,0,0,.2);border-radius:10px;-webkit-transition:width 300ms;-moz-transition:width 300ms;-ms-transition:width 300ms;-o-transition:width 300ms;transition:width 300ms}#soliloquy-uploader #plupload-upload-ui .button{background:#f7f7f7;border:1px solid;border-color:#ddd;-webkit-box-shadow:none;box-shadow:none;color:#666;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}#soliloquy-uploader #plupload-upload-ui .button:hover{background:#f7f7f7;border-color:#999;color:#23282d}#soliloquy-uploader #plupload-upload-ui a.soliloquy-media-library.button{display:block;position:absolute;margin:0 auto;left:250px;right:0;line-height:32px;width:240px;top:110px;text-align:center}#soliloquy-uploader #plupload-upload-ui p.upload-flash-bypass{display:none}#soliloquy-uploader p.max-upload-size{margin-bottom:0}#soliloquy-codepanel .soliloquy-clipboard{text-align:right}#soliloquy-slider-settings{margin-top:20px;position:relative;min-width:255px;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);background:#f7f7f7;width:100%}#soliloquy-slider-settings a{text-decoration:none}#soliloquy-slider-settings:after{content:"";display:table;clear:both}#soliloquy-slider-settings #soliloquy-settings-tabs{width:150px;margin:0;padding:0;border-right:1px solid #ddd}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab{float:left;width:100%;margin:0;padding:0}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab a{float:left;width:110px;margin:0 20px;padding:20px 0;text-decoration:none;color:#999;border-bottom:1px solid #ddd;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;transition:none;-webkit-transition:none}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab a:focus{outline-style:none;box-shadow:none;border-color:transparent}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab a:before{display:inline-block;font-family:"soliloquy";font-style:normal;font-weight:normal;font-size:15px;line-height:1.5;vertical-align:middle;margin-right:8px;padding-left:4px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab:hover,#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab.soliloquy-tab-nav-active{background-color:#fff;margin-right:-1px;margin-top:-1px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab:hover a,#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab.soliloquy-tab-nav-active a{border-bottom:none}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab:hover a:before,#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab.soliloquy-tab-nav-active a:before{color:#e02626}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-slider a:before{content:"B"}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-config a:before{content:"A"}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-mobile a:before{content:"F"}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-pinterest a:before{content:"C"}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-thumbnails a:before{content:"K"}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-schedule a:before{content:"X"}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-misc a:before{content:"E"}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-lightbox a:before{content:"D"}#soliloquy-slider-settings #soliloquy-settings-tabs #soliloquy-tab-nav-carousel a:before{content:"Y"}#soliloquy-slider-settings #soliloquy-settings-content{margin:0 0 0 150px;padding:20px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;background:#fff}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-empty-slider{position:relative;background-color:#f7f7f7;min-height:350px;width:100%;text-align:center;border-radius:3px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-empty-slider div{max-width:450px;max-height:150px;margin:auto;position:absolute;top:0;left:0;bottom:0;right:0}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-empty-slider img{max-width:336px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-external-req{border:1px solid #e02626;border-radius:3px;padding:30px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-external-req h2{font-size:20px;margin:0;padding:0}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-slide-header label{font-weight:600}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-slide-header .soliloquy-clear-selected{display:none;margin-left:15px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-help{font-size:14px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-help a{margin-left:5px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-bulk-actions{display:none;margin-bottom:20px}#soliloquy-slider-settings #soliloquy-settings-content table.form-table{clear:none}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-config-header{border-bottom:1px solid #ddd;padding-bottom:30px;margin-bottom:30px}#soliloquy-slider-settings #soliloquy-settings-content h2.soliloquy-intro{margin:0 !important;padding:0;border-bottom:none}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-intro{font-size:16px !important;font-weight:bold;margin:0}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle{position:absolute;right:20px;top:20px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle [data-soliloquy-tooltip]:before{position:absolute;bottom:120%;left:50%;margin-bottom:5px;margin-left:-35px;padding:7px;width:120px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;color:#fff;content:attr(data-soliloquy-tooltip);text-align:center;font-size:12px;line-height:1.2}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle li.helper .dashicons{font-size:24px;margin-top:-5px;color:#ddd}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle li.helper .dashicons:hover{color:#23282d}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle li.soliloquy-select{width:200px;margin-right:15px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle li.soliloquy-select .chosen-container{margin-top:-10px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle li:not(.soliloquy-select) a{color:#ddd}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle li:not(.soliloquy-select) a i:before{font-size:16px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-display-toggle li:not(.soliloquy-select) a.active-display{color:#23282d}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-select-all{margin:20px 8px 20px 0px}#soliloquy-slider-settings #soliloquy-settings-content .soliloquy-slides-delete{margin-right:10px}#soliloquy-slider-settings #soliloquy-settings-content input[type=checkbox]{background-color:#fff;border:1px solid #ddd;box-shadow:none;margin-right:10px}#soliloquy-slider-settings #soliloquy-settings-content input[type=checkbox]:checked{background-color:#7cc048;border-color:#7cc048}#soliloquy-slider-settings #soliloquy-settings-content input[type=checkbox]:checked:before{color:#fff !important}#soliloquy-slider-settings #soliloquy-settings-content input[type=text],#soliloquy-slider-settings #soliloquy-settings-content input[type=number],#soliloquy-slider-settings #soliloquy-settings-content input[type=password]{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out;min-width:210px;max-width:350px;width:92%;border-radius:3px;padding-right:0}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-config-mobile-width,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-config-mobile-height,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-config-slider-height,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-config-slider-width{max-width:166px;min-width:75px}#soliloquy-slider-settings #soliloquy-settings-content th{padding-right:0}#soliloquy-slider-settings #soliloquy-settings-content .description{font-size:13px;line-height:1.5}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output{margin:0 0 10px;padding:0;list-style:none}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li{background-color:#fff;margin:0;list-style:none;border:1px solid #cecece;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-moz-background-clip:padding;-webkit-background-clip:padding-box;background-clip:padding-box;-moz-box-shadow:0 1px 2px rgba(0,0,0,.06);-webkit-box-shadow:0 1px 2px rgba(0,0,0,.06);box-shadow:0 1px 2px rgba(0,0,0,.06);cursor:move;position:relative}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li h3{display:block;margin:0;padding:0;text-overflow:ellipsis}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li.ui-sortable-helper{border:2px solid #1e8cbe}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-draft-slide.grid-status,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-active-slide.grid-status,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-remove-slide,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-modify-slide{display:block;height:25px;outline:none;position:absolute;width:25px;z-index:20;color:#fff;text-align:center;line-height:25px;vertical-align:middle;border-radius:3px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-draft-slide.grid-status i:before,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-active-slide.grid-status i:before,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-remove-slide i:before,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-modify-slide i:before{margin:0;font-size:10px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-draft-slide.grid-status span:before,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-active-slide.grid-status span:before{font-size:16px;vertical-align:middle}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-active-slide.grid-status{background-color:#74b445}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-draft-slide.grid-status{background-color:#ffa93b}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-remove-slide{background-color:#e02626}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li .soliloquy-modify-slide{background-color:#0072ac}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output li.dropzone{background:transparent;border:2px dashed #ddd;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li{display:inline-block;width:150px;margin:0 30px 30px 0}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-item-img{display:block;margin:0 auto auto auto;top:0;left:0;right:0;bottom:0;max-width:150px;max-height:150px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-video-wrap,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-html-wrap{position:relative;width:150px;height:150px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-video-inside,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-html-inside{width:150px;height:150px;display:table;position:absolute;max-width:100%;max-height:100%;cursor:move}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-video-table,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-html-table{display:table-cell;vertical-align:middle;text-align:center;cursor:move}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li span.overlay{max-height:15px;max-width:40px;display:block;position:absolute;top:0;left:0;right:0;bottom:10px;margin:auto;padding:4px 8px;background:rgba(255,255,255,.8);z-index:2;text-align:center;border-radius:3px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-item-info h3{display:block;border-top:1px solid #ddd;background-color:#f7f7f7;margin:0;padding:8px 4px;text-align:center;font-size:13px;max-width:150px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-item-info img{display:none}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li a.check{display:none;position:absolute;margin:auto;top:0;left:0;bottom:0;right:0;width:24px;height:24px;background-color:#7cc048;-webkit-box-shadow:0 0 0 1px #fff,0 0 0 2px #7cc048;box-shadow:0 0 0 1px #fff,0 0 0 2px #7cc048;z-index:10}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li a.check div.media-modal-icon{width:15px;height:15px;margin:5px 0 0 5px;background-position:-21px 0}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li.selected{border:1px solid #7cc048}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li.selected a.check{display:block}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-active-slide.grid-status,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-draft-slide.grid-status{display:block;bottom:40px;left:5px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-active-slide.list-status,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-draft-slide.list-status{display:none}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-remove-slide{left:5px;top:5px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-grid li .soliloquy-modify-slide{right:5px;top:5px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li{display:inline-block;min-height:100px;padding:20px;margin-bottom:10px;width:100%;box-sizing:border-box}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li span.overlay{display:none}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-video-wrap{float:left;height:75px;width:75px;margin-left:20px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-video-wrap .soliloquy-item-img{float:none;margin-left:0}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-item-img{margin-left:20px;position:relative;float:left;max-width:75px;max-height:75px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-item-info{position:absolute;margin:auto 0;top:0;bottom:0;left:160px;height:30px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-item-info img{margin-top:-20px;max-width:100px;margin-bottom:10px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li a.check{display:block;position:relative;float:left;margin:auto 0;width:25px;height:25px;margin-top:25px;background-color:#fff;border:1px solid #ddd}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li a.check div.media-modal-icon{width:15px;display:none;height:15px;margin:5px 0 0 5px;background-position:-21px 0}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li.selected{border:1px solid #7cc048}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li.selected a.check{background-color:#7cc048;display:block}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li.selected a.check div.media-modal-icon{display:block}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-active-slide.grid-status,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-draft-slide.grid-status{display:none}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-active-slide.list-status,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-draft-slide.list-status{display:block;margin-top:10px;font-weight:600;color:#000}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-active-slide.list-status:hover,#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-draft-slide.list-status:hover{text-decoration:none;color:#000}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-active-slide.list-status span{margin-left:5px;border-radius:3px;padding:3px 5px;background-color:#74b445;color:#fff}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-draft-slide.list-status span{margin-left:5px;border-radius:3px;padding:3px 5px;background-color:#ffa93b;color:#fff}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-remove-slide{right:8px;top:8px}#soliloquy-slider-settings #soliloquy-settings-content #soliloquy-output.soliloquy-list li .soliloquy-modify-slide{right:40px;top:8px}#soliloquy-slider-settings #soliloquy-settings-content:after{content:"";display:table;clear:both}#soliloquy-plupload-upload-ui{position:relative}#soliloquy-drag-drop-area{border:4px dashed #bbb;height:200px}#soliloquy-plupload-upload-ui.drag-over #soliloquy-drag-drop-area{border-color:#83b4d8}#soliloquy-slider-settings .soliloquy-progress-bar{display:none;width:100%;position:relative;height:10px;width:100%;margin:10px auto;border-radius:10px;background:#dfdfdf;background:rgba(0,0,0,.1)}#soliloquy-slider-settings .soliloquy-progress-bar div{height:10px;min-width:20px;width:0;background:#aaa;background:rgba(0,0,0,.2);border-radius:10px;-webkit-transition:width 300ms;-moz-transition:width 300ms;-ms-transition:width 300ms;-o-transition:width 300ms;transition:width 300ms}#soliloquy .upload-flash-bypass{display:none}#soliloquy .max-upload-size{display:block;margin:10px 0}.soliloquy-media-frame .soliloquy-accepted-urls{clear:both;overflow:hidden}.soliloquy-media-frame .soliloquy-accepted-urls span{display:block}.soliloquy-media-frame .soliloquy-column{float:left;width:32%;margin-right:2%}.soliloquy-media-frame .soliloquy-column.soliloquy-last{margin-right:0}.soliloquy-media-frame .soliloquy-video-info{background-color:#ffffe0;border:1px solid #e6db55;padding:15px;margin-bottom:16px}.soliloquy-media-frame .soliloquy-video-info p{margin-top:0}#soliloquy-html-slides .soliloquy-delete-html-slide,#soliloquy-video-slides .soliloquy-delete-video-slide{float:right}.attachments-browser.soliloquy-videos a.soliloquy-item-collapse,.attachments-browser.soliloquy-html a.soliloquy-item-collapse{position:absolute;top:10px;right:20px;font-size:13px;color:#000;font-weight:600;text-decoration:none}.attachments-browser.soliloquy-videos .button-soliloquy-delete,.attachments-browser.soliloquy-html .button-soliloquy-delete{color:#fff}.attachments-browser.soliloquy-videos .soliloquy-item-setting,.attachments-browser.soliloquy-html .soliloquy-item-setting{clear:both;text-align:left !important;margin-bottom:15px}.attachments-browser.soliloquy-videos .soliloquy-item-setting .code-title,.attachments-browser.soliloquy-html .soliloquy-item-setting .code-title{text-align:left !important}.attachments-browser.soliloquy-videos .soliloquy-item-setting label,.attachments-browser.soliloquy-html .soliloquy-item-setting label{clear:both;width:100%;text-align:left}.attachments-browser.soliloquy-videos .soliloquy-item-setting label strong,.attachments-browser.soliloquy-html .soliloquy-item-setting label strong{text-align:left}.attachments-browser.soliloquy-videos .soliloquy-item-setting .soliloquy-media-button a,.attachments-browser.soliloquy-html .soliloquy-item-setting .soliloquy-media-button a{float:right;clear:both}.attachments-browser.soliloquy-videos .soliloquy-item-setting input[type=text],.attachments-browser.soliloquy-videos .soliloquy-item-setting textarea,.attachments-browser.soliloquy-html .soliloquy-item-setting input[type=text],.attachments-browser.soliloquy-html .soliloquy-item-setting textarea{width:100%;clear:both}.attachments-browser.soliloquy-videos .soliloquy-item-setting .soliloquy-input-group input[type=text],.attachments-browser.soliloquy-videos .soliloquy-item-setting .soliloquy-input-group textarea,.attachments-browser.soliloquy-html .soliloquy-item-setting .soliloquy-input-group input[type=text],.attachments-browser.soliloquy-html .soliloquy-item-setting .soliloquy-input-group textarea{width:87%;clear:both}.attachments-browser.soliloquy-videos .soliloquy-item-footer,.attachments-browser.soliloquy-html .soliloquy-item-footer{display:block;margin-top:20px}.attachments-browser.soliloquy-videos .soliloquy-item-footer a,.attachments-browser.soliloquy-html .soliloquy-item-footer a{float:right}.attachments-browser.soliloquy-videos div.media-toolbar{border-bottom:1px solid #ddd}.attachments-browser.soliloquy-videos div.media-toolbar div.media-toolbar-primary button.soliloquy-videos-add{float:right;margin-top:10px}.attachments-browser.soliloquy-videos .soliloquy-video-items{position:relative;margin-right:300px;width:100%;height:100%}.attachments-browser.soliloquy-videos ul.soliloquy-videos-attachments{top:70px;padding:2px 20px 20px}.attachments-browser.soliloquy-videos ul.soliloquy-videos-attachments li.soliloquy-videos-attachment{width:100%;background-color:#f1f1f1;border:1px solid #ddd;padding:20px;margin-bottom:2em;padding-top:2em}.attachments-browser.soliloquy-videos .soliloquy-gallery-accepted-urls{clear:both;overflow:hidden}.attachments-browser.soliloquy-videos .soliloquy-gallery-accepted-urls span{display:block}.attachments-browser.soliloquy-html div.media-toolbar{border-bottom:1px solid #ddd}.attachments-browser.soliloquy-html div.media-toolbar div.media-toolbar-primary button.soliloquy-html-add{float:right;margin-top:10px}.attachments-browser.soliloquy-html .soliloquy-html-items{position:relative;margin-right:300px;width:100%;height:100%}.attachments-browser.soliloquy-html ul.soliloquy-html-attachments{top:70px;padding:2px 20px 20px}.attachments-browser.soliloquy-html ul.soliloquy-html-attachments li.soliloquy-html-attachment{width:100%;background-color:#f1f1f1;border:1px solid #ddd;padding:20px;margin-bottom:2em;padding-top:2em}.attachments-browser.soliloquy-html ul.soliloquy-html-attachments li.soliloquy-html-attachment .CodeMirror{border:1px solid #ddd;text-align:left !important}.attachments-browser .soliloquy-accepted-urls{clear:both;overflow:hidden}.attachments-browser .soliloquy-accepted-urls .title{margin-bottom:-15px}.attachments-browser .soliloquy-accepted-urls span{display:block}#soliloquy-meta-edit .right{border-right:1px solid #ccc !important}.soliloquy-meta-container .media-modal-backdrop{z-index:15999}.soliloquy-meta-container .media-modal{z-index:16000}.soliloquy-meta-container .media-modal button.right{border-right:1px solid #ddd !important}.soliloquy-meta-container .media-modal .attachment-media-view div.thumbnail-image img.details-image{max-width:50%;max-height:70%}.soliloquy-meta-container .media-modal .setting{margin:0 0 20px 0;padding:0 0 20px 0;border-bottom:1px solid #ddd}.soliloquy-meta-container .media-modal .setting span.name{font-size:14px;font-weight:600;min-width:20%;text-align:left}.soliloquy-meta-container .media-modal .setting input[type=text]{width:75%}.soliloquy-meta-container .media-modal .setting textarea{height:150px}.soliloquy-meta-container .media-modal .setting .wp-editor-wrap{float:right;width:75%}.soliloquy-meta-container .media-modal .code{margin-bottom:20px}.soliloquy-meta-container .media-modal div.actions a.button{display:inline-block}@media only screen and (max-width: 959px){.soliloquy-meta-container .setting span.name{width:100%;max-width:100%;min-width:100%}.soliloquy-meta-container .setting input[type=text]{width:100%}.soliloquy-meta-container .setting input[type=checkbox]{clear:both}.soliloquy-meta-container .setting .wp-editor-wrap{float:left;width:100%}}body.rtl #soliloquy .soliloquy-meta-icon{right:auto;left:0}body.rtl #soliloquy #soliloquy-tabs-nav li{float:right;margin:0 0 -1px 10px}body.rtl #soliloquy #soliloquy-output li{float:right;margin:0 0 10px 10px}@media screen and (max-width: 1100px){#soliloquy-uploader #plupload-upload-ui #drag-drop-area{height:208px}#soliloquy-uploader #plupload-upload-ui .drag-drop-inside{width:100%;margin-top:20px}#soliloquy-uploader #plupload-upload-ui .drag-drop-inside p.drag-drop-buttons{margin-top:10px;text-align:center}#soliloquy-uploader #plupload-upload-ui a.soliloquy-media-library.button{left:0;right:0;width:235px;top:145px}}@media screen and (max-width: 768px){.media-sidebar{display:none}#soliloquy-slider-settings #soliloquy-settings-content{margin:0 0 0 50px;padding:20px}#soliloquy-slider-settings #soliloquy-settings-tabs{width:50px;margin:0;padding:0;border-right:1px solid #ddd}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab a{width:30px;margin:0 10px;padding:10px 0}#soliloquy-slider-settings #soliloquy-settings-tabs .soliloquy-setting-tab a span{display:none}}@media(-webkit-min-device-pixel-ratio: 1.25),(min-resolution: 120dpi){a.check .media-modal-icon{background-image:url("../../../../../wp-includes/images/uploader-icons-2x.png") !important;-webkit-background-size:134px 15px;background-size:134px 15px}}#poststuff h2.soliloquy-code-panel-title{padding-left:0;padding-right:0}.post-upload-ui a.soliloquy-media-library.button{display:none}
assets/css/modal.css CHANGED
@@ -1 +1 @@
1
- body.branch-4-3 div.media-modal a.media-modal-close,body.branch-4-4 div.media-modal a.media-modal-close{text-align:center;text-decoration:none;display:inline-block}body.branch-4-3 div.media-modal a.media-modal-close span,body.branch-4-4 div.media-modal a.media-modal-close span{display:inline-block;margin-top:17px}.soliloquy-meta.attachments .attachment{width:200px;height:200px;border:none !important}.soliloquy-meta.attachments .attachment.selected{width:200px;height:200px}.soliloquy-meta.attachments .attachment .attachment-preview{width:100%;height:100%;border:none !important}.soliloquy-meta.attachments .attachment .attachment-preview:before{padding-top:0;border:none !important}.soliloquy-meta.attachments .attachment .attachment-preview .thumbnail{display:table;position:relative;top:auto;right:auto;bottom:auto;left:auto;border:none !important}.soliloquy-meta.attachments .attachment .attachment-preview .thumbnail:after{box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none}.soliloquy-meta.attachments .attachment .attachment-preview .thumbnail .inside{display:table-cell;width:200px;height:200px;text-align:center;vertical-align:middle;border:none !important}
1
+ body.branch-4-3 div.media-modal a.media-modal-close,body.branch-4-4 div.media-modal a.media-modal-close{text-align:center;text-decoration:none;display:inline-block}body.branch-4-3 div.media-modal a.media-modal-close span,body.branch-4-4 div.media-modal a.media-modal-close span{display:inline-block;margin-top:17px}.soliloquy-meta.attachments .attachment{width:200px;height:200px;border:none !important}.soliloquy-meta.attachments .attachment.selected{width:200px;height:200px}.soliloquy-meta.attachments .attachment .attachment-preview{width:100%;height:100%;border:none !important}.soliloquy-meta.attachments .attachment .attachment-preview:before{padding-top:0;border:none !important}.soliloquy-meta.attachments .attachment .attachment-preview .thumbnail{display:table;position:relative;top:auto;right:auto;bottom:auto;left:auto;border:none !important}.soliloquy-meta.attachments .attachment .attachment-preview .thumbnail:after{box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none}.soliloquy-meta.attachments .attachment .attachment-preview .thumbnail .inside{display:table-cell;width:200px;height:200px;text-align:center;vertical-align:middle;border:none !important}
assets/css/overview.css CHANGED
@@ -1,11 +1,11 @@
1
- @font-face{font-family:'soliloquy';src:url("../fonts/soliloquy.eot");src:url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"),url("../fonts/soliloquy.woff") format("woff"),url("../fonts/soliloquy.ttf") format("truetype"),url("../fonts/soliloquy.svg#soliloquy") format("svg");font-weight:normal;font-style:normal}[class*='soliloquy-icon-']:before{display:inline-block;font-family:'soliloquy';font-style:normal;font-weight:normal;font-size:13px;line-height:1.5;margin-right:8px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.soliloquy-icon-configuration:before{content:'\0041'}.soliloquy-icon-soliloquy:before{content:'\0042'}.soliloquy-icon-pinterest:before{content:'\0043'}.soliloquy-icon-lightbox:before{content:'\0044'}.soliloquy-icon-misc:before{content:'\0045'}.soliloquy-icon-mobile:before{content:'\0046'}.soliloquy-icon-pagination:before{content:'\0047'}.soliloquy-icon-proofing:before{content:'\0048'}.soliloquy-icon-slideshow:before{content:'\0049'}.soliloquy-icon-tags:before{content:'\004a'}.soliloquy-icon-thumbnails:before{content:'\004b'}.soliloquy-icon-video:before{content:'\004c'}.soliloquy-icon-watermark:before{content:'\004d'}.soliloquy-icon-cloud-download:before{content:'\004e'}.soliloquy-icon-toggle-on:before{content:'\004f'}.soliloquy-icon-plus-circle:before{content:'\0050'}.soliloquy-icon-list:before{content:'\0052'}.soliloquy-icon-grid:before{content:'\0053'}.soliloquy-icon-pencil:before{content:'\0055'}.soliloquy-icon-close:before{content:'\0056'}.soliloquy-icon-check:before{content:'\0057'}.soliloquy-icon-schedule:before{content:'\0058'}.soliloquy-icon-carousel:before{content:'\0059'}#soliloquy-header{background-color:#ff3700;height:120px;margin-left:-20px}#soliloquy-header #soliloquy-logo{margin:0;padding-top:25px;line-height:120px;margin-left:20px}#soliloquy-header #soliloquy-logo img{max-width:288px}.wp-core-ui .button-soliloquy{background:#ff3700;border-color:#ff3700;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;font-weight:500;text-shadow:none;line-height:15px;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy:hover{background:#ff3700;border-color:#ff3700;color:#fff;opacity:.8}.wp-core-ui .button-soliloquy-secondary{background:#f7f7f7;border:1px solid;border-color:#ddd;-webkit-box-shadow:none;box-shadow:none;color:#23282d;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-secondary:hover{background:#f7f7f7;border-color:#999;color:#23282d}.wp-core-ui .button-soliloquy-delete{background:#e3231b;border:1px solid;border-color:#e3231b;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-delete:hover{background:#e3231b;color:#fff;opacity:.8}.wp-core-ui a.button-soliloquy,.wp-core-ui a.button-soliloquy-secondary,.wp-core-ui a.button-soliloquy-delete{line-height:32px}#soliloquy-settings-content input:not([type=checkbox]){background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:0.05s border-color ease-in-out;transition:0.05s border-color ease-in-out}#soliloquy-settings-content input[type=checkbox]:checked{-color:#ff3700}#soliloquy-settings-content textarea{width:100%}#soliloquy-settings-content input[type="password"].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;outline:none;-webkit-transition:0.05s border-color ease-in-out;transition:0.05s border-color ease-in-out}input[type="password"].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;height:35px;color:#32373c;outline:none;-webkit-transition:0.05s border-color ease-in-out;transition:0.05s border-color ease-in-out}pre.soliloquy-code{background-color:#ddd;border-radius:3px;padding:15px}.soliloquy-clipboard{display:block;text-decoration:underline !important;padding-top:8px;font-size:11px;outline:0 !important}.soliloquy-clipboard:focus{outline-style:none;box-shadow:none;border-color:transparent}.soliloquy-code{display:block;background-color:#f7f7f7;border-radius:3px;padding:10px !important}.soliloquy-list-inline{margin:0;list-style:none}.soliloquy-list-inline li{display:inline-block;margin-right:5px}.soliloquy-list-inline li:last-child{margin-right:0 !important}.soliloquy-yt iframe{max-width:100%;height:auto}.soliloquy-hidden{display:none !important}.soliloquy-hideme{visibility:hidden}.soliloquy-no-border{border:none !important}.soliloquy-right{float:right}.soliloquy-left{float:left}.soliloquy-clearfix{clear:both;display:block;height:0;overflow:hidden;visibility:hidden;width:0}.no-margin{margin:0 !important}.no-margin-top{margin-top:0 !important}.no-margin-bottom{margin-bottom:0 !important}[data-soliloquy-tooltip]{position:relative;z-index:2;cursor:pointer}[data-soliloquy-tooltip]:before,[data-soliloquy-tooltip]:after{visibility:hidden;opacity:0;pointer-events:none}[data-soliloquy-tooltip]:before{position:absolute;bottom:120%;left:50%;margin-bottom:5px;margin-left:-35px;padding:7px;width:60px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;color:#fff;content:attr(data-soliloquy-tooltip);text-align:center;font-size:12px;line-height:1.2}[data-soliloquy-tooltip]:after{position:absolute;bottom:120%;left:50%;width:0;margin-left:-5px;border-top:5px solid #000;border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}[data-soliloquy-tooltip]:hover:before,[data-soliloquy-tooltip]:hover:after{visibility:visible;opacity:1}[class*=soliloquy-grid-]{float:left;margin-left:2%}[class*=soliloquy-grid-] input[type=text]{width:100% !important}.soliloquy-grid-1{width:6.5%}.soliloquy-grid-2{width:15%}.soliloquy-grid-3{width:23.5%}.soliloquy-grid-4{width:32%}.soliloquy-grid-5{width:40.5%}.soliloquy-grid-6{width:49%}.soliloquy-grid-7{width:57.5%}.soliloquy-grid-8{width:66%}.soliloquy-grid-9{width:74.5%}.soliloquy-grid-10{width:83%}.soliloquy-grid-11{width:91.5%}.soliloquy-grid-12{width:100%}.soliloquy-first{margin-left:0px}/*!
2
- Chosen, a Select Box Enhancer for jQuery and Prototype
3
- by Patrick Filler for Harvest, http://getharvest.com
4
-
5
- Version 1.5.1
6
- Full source at https://github.com/harvesthq/chosen
7
- Copyright (c) 2011-2016 Harvest http://getharvest.com
8
-
9
- MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
10
- This file is generated by `grunt build`, do not edit it by hand.
11
- */.soliloquy-select *{box-shadow:none !important;background-image:none !important}.soliloquy-select *:after{background-image:none !important}.soliloquy-select .soliloquy-chosen{height:35px;max-width:350px;width:100%}.soliloquy-select .chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-width:350px;font-weight:600}.soliloquy-select .chosen-container *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.soliloquy-select .chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;width:100%;border:1px solid #ddd;border-top:0;background:#fff}.soliloquy-select .chosen-container.chosen-with-drop .chosen-drop{left:0}.soliloquy-select .chosen-container a{cursor:pointer}.soliloquy-select .chosen-container .search-choice .group-name,.soliloquy-select .chosen-container .chosen-single .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:normal;color:#999999}.soliloquy-select .chosen-container .search-choice .group-name:after,.soliloquy-select .chosen-container .chosen-single .group-name:after{content:":";padding-left:2px;vertical-align:top}.soliloquy-select .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:35px;border:1px solid #ddd;border-radius:3px;background:#fff;background-clip:padding-box;color:#444;text-decoration:none;white-space:nowrap;line-height:35px}.soliloquy-select .chosen-container-single .chosen-default{color:#999}.soliloquy-select .chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.soliloquy-select .chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.soliloquy-select .chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single.chosen-disabled .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single .chosen-single div{border-left:1px solid #ddd;position:absolute;top:0;right:0;display:block;width:30px;height:100%;padding-left:9px}.soliloquy-select .chosen-container-single .chosen-single div b{display:block;width:100%;height:100%;line-height:35px}.soliloquy-select .chosen-container-single .chosen-single div b:before{content:"\0051";display:block;font-weight:normal;font-size:8px !important;font-family:'soliloquy';position:absolute;text-align:center}.soliloquy-select .chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-search input[type="text"]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #ddd;background:#fff url("chosen-sprite.png") no-repeat 100% -20px;background:url("chosen-sprite.png") no-repeat 100% -20px;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 2px 2px;background-clip:padding-box}.soliloquy-select .chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;left:-9999px}.soliloquy-select .chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.soliloquy-select .chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.soliloquy-select .chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.soliloquy-select .chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container .chosen-results li.highlighted{background:#ff3700;color:#fff}.soliloquy-select .chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.soliloquy-select .chosen-container .chosen-results li.group-result{display:list-item;font-weight:bold;cursor:default}.soliloquy-select .chosen-container .chosen-results li.group-option{padding-left:15px}.soliloquy-select .chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.soliloquy-select .chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto !important;height:1%;border:1px solid #ddd;background:#fff;cursor:text}.soliloquy-select .chosen-container-multi .chosen-choices li{float:left;list-style:none}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field input[type="text"]{margin:1px 0;padding:0;height:25px;outline:0;border:0 !important;background:transparent !important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 5px;border:1px solid #ddd;max-width:100%;border-radius:2px;background:#fff;background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,0.05);color:#333;line-height:13px;cursor:default}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:4px;right:3px;display:block;width:12px;height:12px;background:url("chosen-sprite.png") -42px 1px no-repeat;font-size:1px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ddd;background:#e4e4e4;color:#666}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-results{margin:0;padding:0}.soliloquy-select .chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container-active .chosen-single{border:1px solid #ddd}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #ddd;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background:#fff}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div{border-left:1px solid transparent;background:transparent}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 2px}.soliloquy-select .chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,0.3)}.soliloquy-select .chosen-container-active .chosen-choices li.search-field input[type="text"]{color:#222 !important}.soliloquy-select .chosen-disabled{opacity:0.5 !important;cursor:default}.soliloquy-select .chosen-disabled .chosen-single{cursor:default}.soliloquy-select .chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.soliloquy-select .chosen-rtl{text-align:right}.soliloquy-select .chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.soliloquy-select .chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.soliloquy-select .chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.soliloquy-select .chosen-rtl .chosen-single div{right:auto;left:3px}.soliloquy-select .chosen-rtl .chosen-single abbr{right:auto;left:26px}.soliloquy-select .chosen-rtl .chosen-choices li{float:right}.soliloquy-select .chosen-rtl .chosen-choices li.search-field input[type="text"]{direction:rtl}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.soliloquy-select .chosen-rtl.chosen-container-single-nosearch .chosen-search,.soliloquy-select .chosen-rtl .chosen-drop{left:9999px}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.soliloquy-select .chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.soliloquy-select .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.soliloquy-select .chosen-rtl .chosen-search input[type="text"]{padding:4px 5px 4px 20px;background:#fff url("chosen-sprite.png") no-repeat -30px -20px;background:url("chosen-sprite.png") no-repeat -30px -20px;direction:rtl}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-single div b{background-position:6px 2px}.soliloquy-select .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx){.soliloquy-select .chosen-rtl .chosen-search input[type="text"],.soliloquy-select .chosen-container-single .chosen-single abbr,.soliloquy-select .chosen-container-single .chosen-search input[type="text"],.soliloquy-select .chosen-container-multi .chosen-choices .search-choice .search-choice-close,.soliloquy-select .chosen-container .chosen-results-scroll-down span,.soliloquy-select .chosen-container .chosen-results-scroll-up span{background-image:none !important;background-size:52px 37px !important;background-repeat:no-repeat !important}}.soliloquy-select select.soliloquy-chosen+.chosen-container.chosen-container-single .chosen-single{padding-right:35px}.branch-4-7 .wrap h1.wp-heading-inline{display:block;margin:0;width:100%;padding-left:20px;padding-right:20px;line-height:45px;font-size:20px;font-weight:400;background-color:#fff;height:45px;margin-left:-20px;margin-bottom:20px}.branch-4-7 .page-title-action{margin-left:4px;padding:4px 8px;position:relative;top:-55px;left:180px;text-decoration:none;border:none;color:#ff3700;border-radius:0;background:none;text-shadow:none;font-weight:600;font-size:13px}.branch-4-7 .page-title-action:hover{background:none;color:#999}.branch-4-7 .page-title-action:before{display:inline-block;font-family:'soliloquy';content:'\0050';margin-top:-3px;margin-right:8px;vertical-align:middle}.post-type-soliloquy #wpbody-content h1{display:block;margin:0;padding-left:20px;padding-right:20px;line-height:45px;font-size:20px;font-weight:400;background-color:#fff;height:45px;margin-left:-20px;margin-right:-20px;margin-bottom:20px}.post-type-soliloquy #wpbody-content h1 .page-title-action{margin-left:4px;padding:4px 8px;position:relative;top:-3px;text-decoration:none;border:none;color:#ff3700;border-radius:0;background:none;text-shadow:none;font-weight:600;font-size:13px}.post-type-soliloquy #wpbody-content h1 .page-title-action:hover{background:none;color:#999}.post-type-soliloquy #wpbody-content h1 .page-title-action:before{display:inline-block;font-family:'soliloquy';content:'\0050';margin-top:-3px;margin-right:8px;vertical-align:middle}.post-type-soliloquy .wrap{margin-top:0px !important}.post-type-soliloquy input[type=checkbox]{background-color:#fff;border:1px solid #ddd;box-shadow:none;margin-right:10px}.post-type-soliloquy input[type=checkbox]:checked{background-color:#72b63d;border-color:#72b63d}.post-type-soliloquy input[type=checkbox]:checked:before{color:#fff !important}.post-type-soliloquy ul.subsubsub{margin:0 0 20px 0;padding-left:0px}.post-type-soliloquy .column-image{width:85px !important}.post-type-soliloquy form#posts-filter div.tablenav.top{margin:0 0 8px 0}.post-type-soliloquy form#posts-filter .button{height:28px;line-height:26px}.post-type-soliloquy #wpbody-content .inline-edit-row fieldset input[type="text"],.post-type-soliloquy #wpbody-content .inline-edit-row fieldset input[type="number"],.post-type-soliloquy #wpbody-content .inline-edit-row fieldset input[type="password"]{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:0.05s border-color ease-in-out;transition:0.05s border-color ease-in-out;min-width:210px;max-width:350px;width:100%;border-radius:3px;padding-right:0}.post-type-soliloquy #wpbody-content .inline-edit-row fieldset select{min-width:275px}.post-type-soliloquy #wpbody-content .inline-edit-row fieldset span.title{font-style:normal;font-weight:600;font-size:13px;min-width:140px}.post-type-soliloquy #wpbody-content td.colspanchange fieldset.inline-edit-col-left fieldset.inline-edit-date{display:none}.post-type-soliloquy #wpbody-content td.colspanchange fieldset.inline-edit-col-left div.inline-edit-group:last-child{display:none}tr.type-soliloquy th{padding:20px inherit !important}tr.type-soliloquy td{padding:20px inherit}.soliloquy-count{display:none}
1
+ @font-face{font-family:"soliloquy";src:url("../fonts/soliloquy.eot");src:url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"),url("../fonts/soliloquy.woff") format("woff"),url("../fonts/soliloquy.ttf") format("truetype"),url("../fonts/soliloquy.svg#soliloquy") format("svg");font-weight:normal;font-style:normal}[class*=soliloquy-icon-]:before{display:inline-block;font-family:"soliloquy";font-style:normal;font-weight:normal;font-size:13px;line-height:1.5;margin-right:8px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.soliloquy-icon-configuration:before{content:"A"}.soliloquy-icon-soliloquy:before{content:"B"}.soliloquy-icon-pinterest:before{content:"C"}.soliloquy-icon-lightbox:before{content:"D"}.soliloquy-icon-misc:before{content:"E"}.soliloquy-icon-mobile:before{content:"F"}.soliloquy-icon-pagination:before{content:"G"}.soliloquy-icon-proofing:before{content:"H"}.soliloquy-icon-slideshow:before{content:"I"}.soliloquy-icon-tags:before{content:"J"}.soliloquy-icon-thumbnails:before{content:"K"}.soliloquy-icon-video:before{content:"L"}.soliloquy-icon-watermark:before{content:"M"}.soliloquy-icon-cloud-download:before{content:"N"}.soliloquy-icon-toggle-on:before{content:"O"}.soliloquy-icon-plus-circle:before{content:"P"}.soliloquy-icon-list:before{content:"R"}.soliloquy-icon-grid:before{content:"S"}.soliloquy-icon-pencil:before{content:"U"}.soliloquy-icon-close:before{content:"V"}.soliloquy-icon-check:before{content:"W"}.soliloquy-icon-schedule:before{content:"X"}.soliloquy-icon-carousel:before{content:"Y"}#soliloquy-header-temp{position:relative}#soliloquy-top-notification{position:relative;background-color:#162937;text-align:center;color:#fff;height:40px;margin-left:-20px;vertical-align:middle}#soliloquy-top-notification p{margin:0;padding:0;line-height:40px;font-size:16px}#soliloquy-top-notification a{color:#fff}#soliloquy-top-notification .envira-dismiss{position:absolute;top:10px;right:10px}#soliloquy-header{background-color:#f0f0f0;height:120px;margin-left:-20px}#soliloquy-header #soliloquy-logo{margin:0;padding-top:25px;line-height:120px;margin-left:20px}#soliloquy-header #soliloquy-logo img{max-width:288px}.wp-core-ui .button-soliloquy{background:#e02626;border-color:#e02626;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;font-weight:500;text-shadow:none;line-height:15px;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy:hover{background:#e02626;border-color:#e02626;color:#fff;opacity:.8}.wp-core-ui .button-soliloquy-secondary{background:#f7f7f7;border:1px solid;border-color:#ddd;-webkit-box-shadow:none;box-shadow:none;color:#23282d;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-secondary:hover{background:#f7f7f7;border-color:#999;color:#23282d}.wp-core-ui .button-soliloquy-delete{background:#e02626;border:1px solid;border-color:#e02626;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-delete:hover{background:#e02626;color:#fff;opacity:.8}.wp-core-ui a.button-soliloquy,.wp-core-ui a.button-soliloquy-secondary,.wp-core-ui a.button-soliloquy-delete{line-height:32px}#soliloquy-settings-content input:not([type=checkbox]){background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}#soliloquy-settings-content input[type=checkbox]:checked{-color:#e02626}#soliloquy-settings-content textarea{width:100%}#soliloquy-settings-content input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;height:35px;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}pre.soliloquy-code{background-color:#ddd;border-radius:3px;padding:15px}.soliloquy-clipboard{display:block;text-decoration:underline !important;padding-top:8px;font-size:11px;outline:0 !important}.soliloquy-clipboard:focus{outline-style:none;box-shadow:none;border-color:transparent}.soliloquy-code{display:block;background-color:#f7f7f7;border-radius:3px;padding:10px !important}.soliloquy-list-inline{margin:0;list-style:none}.soliloquy-list-inline li{display:inline-block;margin-right:5px}.soliloquy-list-inline li:last-child{margin-right:0 !important}.soliloquy-yt iframe{max-width:100%;height:auto}.soliloquy-hidden{display:none !important}.soliloquy-hideme{visibility:hidden}.soliloquy-no-border{border:none !important}.soliloquy-right{float:right}.soliloquy-left{float:left}.soliloquy-clearfix{clear:both;display:block;height:0;overflow:hidden;visibility:hidden;width:0}.no-margin{margin:0 !important}.no-margin-top{margin-top:0 !important}.no-margin-bottom{margin-bottom:0 !important}[data-soliloquy-tooltip]{position:relative;z-index:2;cursor:pointer}[data-soliloquy-tooltip]:before,[data-soliloquy-tooltip]:after{visibility:hidden;opacity:0;pointer-events:none}[data-soliloquy-tooltip]:before{position:absolute;bottom:120%;left:50%;margin-bottom:5px;margin-left:-35px;padding:7px;width:60px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;color:#fff;content:attr(data-soliloquy-tooltip);text-align:center;font-size:12px;line-height:1.2}[data-soliloquy-tooltip]:after{position:absolute;bottom:120%;left:50%;width:0;margin-left:-5px;border-top:5px solid #000;border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}[data-soliloquy-tooltip]:hover:before,[data-soliloquy-tooltip]:hover:after{visibility:visible;opacity:1}[class*=soliloquy-grid-]{float:left;margin-left:2%}[class*=soliloquy-grid-] input[type=text]{width:100% !important}.soliloquy-grid-1{width:6.5%}.soliloquy-grid-2{width:15%}.soliloquy-grid-3{width:23.5%}.soliloquy-grid-4{width:32%}.soliloquy-grid-5{width:40.5%}.soliloquy-grid-6{width:49%}.soliloquy-grid-7{width:57.5%}.soliloquy-grid-8{width:66%}.soliloquy-grid-9{width:74.5%}.soliloquy-grid-10{width:83%}.soliloquy-grid-11{width:91.5%}.soliloquy-grid-12{width:100%}.soliloquy-first{margin-left:0px}/*!
2
+ Chosen, a Select Box Enhancer for jQuery and Prototype
3
+ by Patrick Filler for Harvest, http://getharvest.com
4
+
5
+ Version 1.5.1
6
+ Full source at https://github.com/harvesthq/chosen
7
+ Copyright (c) 2011-2016 Harvest http://getharvest.com
8
+
9
+ MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
10
+ This file is generated by `grunt build`, do not edit it by hand.
11
+ */.soliloquy-select *{box-shadow:none !important;background-image:none !important}.soliloquy-select *:after{background-image:none !important}.soliloquy-select .soliloquy-chosen{height:35px;max-width:350px;width:100%}.soliloquy-select .chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-width:350px;font-weight:600}.soliloquy-select .chosen-container *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.soliloquy-select .chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;width:100%;border:1px solid #ddd;border-top:0;background:#fff}.soliloquy-select .chosen-container.chosen-with-drop .chosen-drop{left:0}.soliloquy-select .chosen-container a{cursor:pointer}.soliloquy-select .chosen-container .search-choice .group-name,.soliloquy-select .chosen-container .chosen-single .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:normal;color:#999}.soliloquy-select .chosen-container .search-choice .group-name:after,.soliloquy-select .chosen-container .chosen-single .group-name:after{content:":";padding-left:2px;vertical-align:top}.soliloquy-select .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:35px;border:1px solid #ddd;border-radius:3px;background:#fff;background-clip:padding-box;color:#444;text-decoration:none;white-space:nowrap;line-height:35px}.soliloquy-select .chosen-container-single .chosen-default{color:#999}.soliloquy-select .chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.soliloquy-select .chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.soliloquy-select .chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single.chosen-disabled .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single .chosen-single div{border-left:1px solid #ddd;position:absolute;top:0;right:0;display:block;width:30px;height:100%;padding-left:9px}.soliloquy-select .chosen-container-single .chosen-single div b{display:block;width:100%;height:100%;line-height:35px}.soliloquy-select .chosen-container-single .chosen-single div b:before{content:"Q";display:block;font-weight:normal;font-size:8px !important;font-family:"soliloquy";position:absolute;text-align:center}.soliloquy-select .chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #ddd;background:#fff url("chosen-sprite.png") no-repeat 100% -20px;background:url("chosen-sprite.png") no-repeat 100% -20px;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 2px 2px;background-clip:padding-box}.soliloquy-select .chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;left:-9999px}.soliloquy-select .chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.soliloquy-select .chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.soliloquy-select .chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.soliloquy-select .chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container .chosen-results li.highlighted{background:#e02626;color:#fff}.soliloquy-select .chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.soliloquy-select .chosen-container .chosen-results li.group-result{display:list-item;font-weight:bold;cursor:default}.soliloquy-select .chosen-container .chosen-results li.group-option{padding-left:15px}.soliloquy-select .chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.soliloquy-select .chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto !important;height:1%;border:1px solid #ddd;background:#fff;cursor:text}.soliloquy-select .chosen-container-multi .chosen-choices li{float:left;list-style:none}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;height:25px;outline:0;border:0 !important;background:transparent !important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 5px;border:1px solid #ddd;max-width:100%;border-radius:2px;background:#fff;background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:4px;right:3px;display:block;width:12px;height:12px;background:url("chosen-sprite.png") -42px 1px no-repeat;font-size:1px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ddd;background:#e4e4e4;color:#666}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-results{margin:0;padding:0}.soliloquy-select .chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container-active .chosen-single{border:1px solid #ddd}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #ddd;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background:#fff}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div{border-left:1px solid transparent;background:transparent}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 2px}.soliloquy-select .chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.soliloquy-select .chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222 !important}.soliloquy-select .chosen-disabled{opacity:.5 !important;cursor:default}.soliloquy-select .chosen-disabled .chosen-single{cursor:default}.soliloquy-select .chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.soliloquy-select .chosen-rtl{text-align:right}.soliloquy-select .chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.soliloquy-select .chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.soliloquy-select .chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.soliloquy-select .chosen-rtl .chosen-single div{right:auto;left:3px}.soliloquy-select .chosen-rtl .chosen-single abbr{right:auto;left:26px}.soliloquy-select .chosen-rtl .chosen-choices li{float:right}.soliloquy-select .chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.soliloquy-select .chosen-rtl.chosen-container-single-nosearch .chosen-search,.soliloquy-select .chosen-rtl .chosen-drop{left:9999px}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.soliloquy-select .chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.soliloquy-select .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.soliloquy-select .chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;background:#fff url("chosen-sprite.png") no-repeat -30px -20px;background:url("chosen-sprite.png") no-repeat -30px -20px;direction:rtl}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-single div b{background-position:6px 2px}.soliloquy-select .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (min-resolution: 144dpi),only screen and (min-resolution: 1.5dppx){.soliloquy-select .chosen-rtl .chosen-search input[type=text],.soliloquy-select .chosen-container-single .chosen-single abbr,.soliloquy-select .chosen-container-single .chosen-search input[type=text],.soliloquy-select .chosen-container-multi .chosen-choices .search-choice .search-choice-close,.soliloquy-select .chosen-container .chosen-results-scroll-down span,.soliloquy-select .chosen-container .chosen-results-scroll-up span{background-image:none !important;background-size:52px 37px !important;background-repeat:no-repeat !important}}.soliloquy-select select.soliloquy-chosen+.chosen-container.chosen-container-single .chosen-single{padding-right:35px}.post-type-soliloquy #wpbody-content h1{display:block;margin:0;padding-left:20px;padding-right:20px;line-height:40px;font-size:20px;font-weight:400;background-color:#fff;height:45px;margin-left:-20px;margin-right:-20px}.post-type-soliloquy .page-title-action{display:inline-block;margin-left:4px;padding:4px 8px;top:-38px;margin-bottom:-38px;left:166px;text-decoration:none;border:none;color:#e02626;border-radius:0;background:none;text-shadow:none;font-weight:600;font-size:13px}.post-type-soliloquy .page-title-action:hover,.post-type-soliloquy .page-title-action:active{position:relative;top:-38px;margin-bottom:-38px;left:166px}.post-type-soliloquy .page-title-action:hover{background:none;color:#999}.post-type-soliloquy .page-title-action:before{display:inline-block;font-family:"soliloquy";content:"P";margin-top:-3px;margin-right:8px;vertical-align:middle}.post-type-soliloquy .wrap{margin-top:0px !important}.post-type-soliloquy input[type=checkbox]{background-color:#fff;border:1px solid #ddd;box-shadow:none;margin-right:10px}.post-type-soliloquy input[type=checkbox]:checked{background-color:#7cc048;border-color:#7cc048}.post-type-soliloquy input[type=checkbox]:checked:before{color:#fff !important}.post-type-soliloquy ul.subsubsub{margin:0 0 20px 0;padding-left:0px}.post-type-soliloquy .column-image{width:85px !important}.post-type-soliloquy form#posts-filter div.tablenav.top{margin:0 0 8px 0}.post-type-soliloquy form#posts-filter .button{height:28px;line-height:26px}.post-type-soliloquy #wpbody-content .inline-edit-row fieldset input[type=text],.post-type-soliloquy #wpbody-content .inline-edit-row fieldset input[type=number],.post-type-soliloquy #wpbody-content .inline-edit-row fieldset input[type=password]{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out;min-width:210px;max-width:350px;width:100%;border-radius:3px;padding-right:0}.post-type-soliloquy #wpbody-content .inline-edit-row fieldset select{min-width:275px}.post-type-soliloquy #wpbody-content .inline-edit-row fieldset span.title{font-style:normal;font-weight:600;font-size:13px;min-width:140px}.post-type-soliloquy #wpbody-content td.colspanchange fieldset.inline-edit-col-left fieldset.inline-edit-date{display:none}.post-type-soliloquy #wpbody-content td.colspanchange fieldset.inline-edit-col-left div.inline-edit-group:last-child{display:none}tr.type-soliloquy th{padding:20px inherit !important}tr.type-soliloquy td{padding:20px inherit}.soliloquy-count{display:none}
assets/css/settings.css CHANGED
@@ -1,820 +1,11 @@
1
- /* ==========================================================================
2
- Soliloquy Icons
3
- ========================================================================== */
4
- @font-face {
5
- font-family: 'soliloquy';
6
- src: url("../fonts/soliloquy.eot");
7
- src: url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"), url("../fonts/soliloquy.woff") format("woff"), url("../fonts/soliloquy.ttf") format("truetype"), url("../fonts/soliloquy.svg#soliloquy") format("svg");
8
- font-weight: normal;
9
- font-style: normal; }
10
- [class*='soliloquy-icon-']:before {
11
- display: inline-block;
12
- font-family: 'soliloquy';
13
- font-style: normal;
14
- font-weight: normal;
15
- font-size: 13px;
16
- line-height: 1.5;
17
- margin-right: 8px;
18
- -webkit-font-smoothing: antialiased;
19
- -moz-osx-font-smoothing: grayscale; }
20
-
21
- .soliloquy-icon-configuration:before {
22
- content: '\0041'; }
23
-
24
- .soliloquy-icon-soliloquy:before {
25
- content: '\0042'; }
26
-
27
- .soliloquy-icon-pinterest:before {
28
- content: '\0043'; }
29
-
30
- .soliloquy-icon-lightbox:before {
31
- content: '\0044'; }
32
-
33
- .soliloquy-icon-misc:before {
34
- content: '\0045'; }
35
-
36
- .soliloquy-icon-mobile:before {
37
- content: '\0046'; }
38
-
39
- .soliloquy-icon-pagination:before {
40
- content: '\0047'; }
41
-
42
- .soliloquy-icon-proofing:before {
43
- content: '\0048'; }
44
-
45
- .soliloquy-icon-slideshow:before {
46
- content: '\0049'; }
47
-
48
- .soliloquy-icon-tags:before {
49
- content: '\004a'; }
50
-
51
- .soliloquy-icon-thumbnails:before {
52
- content: '\004b'; }
53
-
54
- .soliloquy-icon-video:before {
55
- content: '\004c'; }
56
-
57
- .soliloquy-icon-watermark:before {
58
- content: '\004d'; }
59
-
60
- .soliloquy-icon-cloud-download:before {
61
- content: '\004e'; }
62
-
63
- .soliloquy-icon-toggle-on:before {
64
- content: '\004f'; }
65
-
66
- .soliloquy-icon-plus-circle:before {
67
- content: '\0050'; }
68
-
69
- .soliloquy-icon-list:before {
70
- content: '\0052'; }
71
-
72
- .soliloquy-icon-grid:before {
73
- content: '\0053'; }
74
-
75
- .soliloquy-icon-pencil:before {
76
- content: '\0055'; }
77
-
78
- .soliloquy-icon-close:before {
79
- content: '\0056'; }
80
-
81
- .soliloquy-icon-check:before {
82
- content: '\0057'; }
83
-
84
- .soliloquy-icon-schedule:before {
85
- content: '\0058'; }
86
-
87
- .soliloquy-icon-carousel:before {
88
- content: '\0059'; }
89
-
90
- /* ==========================================================================
91
- Header Styles
92
- ========================================================================== */
93
- #soliloquy-header {
94
- background-color: #ff3700;
95
- height: 120px;
96
- margin-left: -20px; }
97
- #soliloquy-header #soliloquy-logo {
98
- margin: 0;
99
- padding-top: 25px;
100
- line-height: 120px;
101
- margin-left: 20px; }
102
- #soliloquy-header #soliloquy-logo img {
103
- max-width: 288px; }
104
-
105
- /* ==========================================================================
106
- Global Styles
107
- ========================================================================== */
108
- .wp-core-ui .button-soliloquy {
109
- background: #ff3700;
110
- border-color: #ff3700;
111
- -webkit-box-shadow: none;
112
- box-shadow: none;
113
- color: white;
114
- text-decoration: none;
115
- font-weight: 500;
116
- text-shadow: none;
117
- line-height: 15px;
118
- height: 35px;
119
- font-size: 13px;
120
- padding: 0 20px 1px; }
121
- .wp-core-ui .button-soliloquy:hover {
122
- background: #ff3700;
123
- border-color: #ff3700;
124
- color: white;
125
- opacity: .8; }
126
- .wp-core-ui .button-soliloquy-secondary {
127
- background: #f7f7f7;
128
- border: 1px solid;
129
- border-color: #dddddd;
130
- -webkit-box-shadow: none;
131
- box-shadow: none;
132
- color: #23282d;
133
- text-decoration: none;
134
- text-shadow: none;
135
- font-weight: bold;
136
- height: 35px;
137
- font-size: 13px;
138
- padding: 0 20px 1px; }
139
- .wp-core-ui .button-soliloquy-secondary:hover {
140
- background: #f7f7f7;
141
- border-color: #999999;
142
- color: #23282d; }
143
- .wp-core-ui .button-soliloquy-delete {
144
- background: #e3231b;
145
- border: 1px solid;
146
- border-color: #e3231b;
147
- -webkit-box-shadow: none;
148
- box-shadow: none;
149
- color: white;
150
- text-decoration: none;
151
- text-shadow: none;
152
- font-weight: bold;
153
- height: 35px;
154
- font-size: 13px;
155
- padding: 0 20px 1px; }
156
- .wp-core-ui .button-soliloquy-delete:hover {
157
- background: #e3231b;
158
- color: white;
159
- opacity: .8; }
160
- .wp-core-ui a.button-soliloquy,
161
- .wp-core-ui a.button-soliloquy-secondary,
162
- .wp-core-ui a.button-soliloquy-delete {
163
- line-height: 32px; }
164
-
165
- #soliloquy-settings-content input:not([type=checkbox]) {
166
- background-color: white;
167
- border: 1px solid #ddd;
168
- -webkit-box-shadow: none;
169
- box-shadow: none;
170
- color: #32373c;
171
- height: 35px;
172
- outline: none;
173
- -webkit-transition: 0.05s border-color ease-in-out;
174
- transition: 0.05s border-color ease-in-out; }
175
- #soliloquy-settings-content input[type=checkbox]:checked {
176
- -color: #ff3700; }
177
- #soliloquy-settings-content textarea {
178
- width: 100%; }
179
- #soliloquy-settings-content input[type="password"].soliloquy-input {
180
- background-color: white;
181
- border: 1px solid #ddd;
182
- -webkit-box-shadow: none;
183
- box-shadow: none;
184
- color: #32373c;
185
- outline: none;
186
- -webkit-transition: 0.05s border-color ease-in-out;
187
- transition: 0.05s border-color ease-in-out; }
188
-
189
- input[type="password"].soliloquy-input {
190
- background-color: white;
191
- border: 1px solid #ddd;
192
- -webkit-box-shadow: none;
193
- box-shadow: none;
194
- height: 35px;
195
- color: #32373c;
196
- outline: none;
197
- -webkit-transition: 0.05s border-color ease-in-out;
198
- transition: 0.05s border-color ease-in-out; }
199
-
200
- pre.soliloquy-code {
201
- background-color: #dddddd;
202
- border-radius: 3px;
203
- padding: 15px; }
204
-
205
- .soliloquy-clipboard {
206
- display: block;
207
- text-decoration: underline !important;
208
- padding-top: 8px;
209
- font-size: 11px;
210
- outline: 0 !important; }
211
- .soliloquy-clipboard:focus {
212
- outline-style: none;
213
- box-shadow: none;
214
- border-color: transparent; }
215
-
216
- .soliloquy-code {
217
- display: block;
218
- background-color: #f7f7f7;
219
- border-radius: 3px;
220
- padding: 10px !important; }
221
-
222
- /* ==========================================================================
223
- Utilities
224
- ========================================================================== */
225
- .soliloquy-list-inline {
226
- margin: 0;
227
- list-style: none; }
228
- .soliloquy-list-inline li {
229
- display: inline-block;
230
- margin-right: 5px; }
231
- .soliloquy-list-inline li:last-child {
232
- margin-right: 0 !important; }
233
-
234
- .soliloquy-yt iframe {
235
- max-width: 100%;
236
- height: auto; }
237
-
238
- .soliloquy-hidden {
239
- display: none !important; }
240
-
241
- .soliloquy-hideme {
242
- visibility: hidden; }
243
-
244
- .soliloquy-no-border {
245
- border: none !important; }
246
-
247
- .soliloquy-right {
248
- float: right; }
249
-
250
- .soliloquy-left {
251
- float: left; }
252
-
253
- .soliloquy-clearfix {
254
- clear: both;
255
- display: block;
256
- height: 0;
257
- overflow: hidden;
258
- visibility: hidden;
259
- width: 0; }
260
-
261
- .no-margin {
262
- margin: 0 !important; }
263
-
264
- .no-margin-top {
265
- margin-top: 0 !important; }
266
-
267
- .no-margin-bottom {
268
- margin-bottom: 0 !important; }
269
-
270
- /* Add this attribute to the element that needs a tooltip */
271
- [data-soliloquy-tooltip] {
272
- position: relative;
273
- z-index: 2;
274
- cursor: pointer; }
275
-
276
- /* Hide the tooltip content by default */
277
- [data-soliloquy-tooltip]:before,
278
- [data-soliloquy-tooltip]:after {
279
- visibility: hidden;
280
- opacity: 0;
281
- pointer-events: none; }
282
-
283
- /* Position tooltip above the element */
284
- [data-soliloquy-tooltip]:before {
285
- position: absolute;
286
- bottom: 120%;
287
- left: 50%;
288
- margin-bottom: 5px;
289
- margin-left: -35px;
290
- padding: 7px;
291
- width: 60px;
292
- -webkit-border-radius: 3px;
293
- -moz-border-radius: 3px;
294
- border-radius: 3px;
295
- background-color: #000;
296
- color: #fff;
297
- content: attr(data-soliloquy-tooltip);
298
- text-align: center;
299
- font-size: 12px;
300
- line-height: 1.2; }
301
-
302
- /* Triangle hack to make tooltip look like a speech bubble */
303
- [data-soliloquy-tooltip]:after {
304
- position: absolute;
305
- bottom: 120%;
306
- left: 50%;
307
- width: 0;
308
- margin-left: -5px;
309
- border-top: 5px solid #000;
310
- border-right: 5px solid transparent;
311
- border-left: 5px solid transparent;
312
- content: " ";
313
- font-size: 0;
314
- line-height: 0; }
315
-
316
- /* Show tooltip content on hover */
317
- [data-soliloquy-tooltip]:hover:before,
318
- [data-soliloquy-tooltip]:hover:after {
319
- visibility: visible;
320
- opacity: 1; }
321
-
322
- .soliloquy-alert {
323
- position: relative;
324
- margin: 0 0 20px 0;
325
- padding: 20px;
326
- -webkit-border-radius: 2px;
327
- -moz-border-radius: 2px;
328
- -o-border-radius: 2px;
329
- border-radius: 2px;
330
- background: #fcf8e3; }
331
-
332
- [class*=soliloquy-grid-] {
333
- float: left;
334
- margin-left: 2%; }
335
- [class*=soliloquy-grid-] input[type=text] {
336
- width: 100% !important; }
337
-
338
- .soliloquy-grid-1 {
339
- width: 6.5%; }
340
-
341
- .soliloquy-grid-2 {
342
- width: 15%; }
343
-
344
- .soliloquy-grid-3 {
345
- width: 23.5%; }
346
-
347
- .soliloquy-grid-4 {
348
- width: 32%; }
349
-
350
- .soliloquy-grid-5 {
351
- width: 40.5%; }
352
-
353
- .soliloquy-grid-6 {
354
- width: 49%; }
355
-
356
- .soliloquy-grid-7 {
357
- width: 57.5%; }
358
-
359
- .soliloquy-grid-8 {
360
- width: 66%; }
361
-
362
- .soliloquy-grid-9 {
363
- width: 74.5%; }
364
-
365
- .soliloquy-grid-10 {
366
- width: 83%; }
367
-
368
- .soliloquy-grid-11 {
369
- width: 91.5%; }
370
-
371
- .soliloquy-grid-12 {
372
- width: 100%; }
373
-
374
- .soliloquy-first {
375
- margin-left: 0px; }
376
-
377
- /*!
378
- Chosen, a Select Box Enhancer for jQuery and Prototype
379
- by Patrick Filler for Harvest, http://getharvest.com
380
-
381
- Version 1.5.1
382
- Full source at https://github.com/harvesthq/chosen
383
- Copyright (c) 2011-2016 Harvest http://getharvest.com
384
-
385
- MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
386
- This file is generated by `grunt build`, do not edit it by hand.
387
- */
388
- .soliloquy-select {
389
- /* @group Base */
390
- /* @end */
391
- /* @group Single Chosen */
392
- /* @end */
393
- /* @group Results */
394
- /* @end */
395
- /* @group Multi Chosen */
396
- /* @end */
397
- /* @group Active */
398
- /* @end */
399
- /* @group Disabled Support */
400
- /* @end */
401
- /* @group Right to Left */
402
- /* @end */
403
- /* @group Retina compatibility */
404
- /* @end */ }
405
- .soliloquy-select * {
406
- box-shadow: none !important;
407
- background-image: none !important; }
408
- .soliloquy-select *:after {
409
- background-image: none !important; }
410
- .soliloquy-select .soliloquy-chosen {
411
- height: 35px;
412
- max-width: 350px;
413
- width: 100%; }
414
- .soliloquy-select .chosen-container {
415
- position: relative;
416
- display: inline-block;
417
- vertical-align: middle;
418
- font-size: 13px;
419
- -webkit-user-select: none;
420
- -moz-user-select: none;
421
- user-select: none;
422
- max-width: 350px;
423
- font-weight: 600; }
424
- .soliloquy-select .chosen-container * {
425
- -webkit-box-sizing: border-box;
426
- -moz-box-sizing: border-box;
427
- box-sizing: border-box; }
428
- .soliloquy-select .chosen-container .chosen-drop {
429
- position: absolute;
430
- top: 100%;
431
- left: -9999px;
432
- z-index: 1010;
433
- width: 100%;
434
- border: 1px solid #dddddd;
435
- border-top: 0;
436
- background: white; }
437
- .soliloquy-select .chosen-container.chosen-with-drop .chosen-drop {
438
- left: 0; }
439
- .soliloquy-select .chosen-container a {
440
- cursor: pointer; }
441
- .soliloquy-select .chosen-container .search-choice .group-name, .soliloquy-select .chosen-container .chosen-single .group-name {
442
- margin-right: 4px;
443
- overflow: hidden;
444
- white-space: nowrap;
445
- text-overflow: ellipsis;
446
- font-weight: normal;
447
- color: #999999; }
448
- .soliloquy-select .chosen-container .search-choice .group-name:after, .soliloquy-select .chosen-container .chosen-single .group-name:after {
449
- content: ":";
450
- padding-left: 2px;
451
- vertical-align: top; }
452
- .soliloquy-select .chosen-container-single .chosen-single {
453
- position: relative;
454
- display: block;
455
- overflow: hidden;
456
- padding: 0 0 0 8px;
457
- height: 35px;
458
- border: 1px solid #dddddd;
459
- border-radius: 3px;
460
- background: white;
461
- background-clip: padding-box;
462
- color: #444;
463
- text-decoration: none;
464
- white-space: nowrap;
465
- line-height: 35px; }
466
- .soliloquy-select .chosen-container-single .chosen-default {
467
- color: #999; }
468
- .soliloquy-select .chosen-container-single .chosen-single span {
469
- display: block;
470
- overflow: hidden;
471
- margin-right: 26px;
472
- text-overflow: ellipsis;
473
- white-space: nowrap; }
474
- .soliloquy-select .chosen-container-single .chosen-single-with-deselect span {
475
- margin-right: 38px; }
476
- .soliloquy-select .chosen-container-single .chosen-single abbr {
477
- position: absolute;
478
- top: 6px;
479
- right: 26px;
480
- display: block;
481
- width: 12px;
482
- height: 12px;
483
- font-size: 1px; }
484
- .soliloquy-select .chosen-container-single .chosen-single abbr:hover {
485
- background-position: -42px -10px; }
486
- .soliloquy-select .chosen-container-single.chosen-disabled .chosen-single abbr:hover {
487
- background-position: -42px -10px; }
488
- .soliloquy-select .chosen-container-single .chosen-single div {
489
- border-left: 1px solid #dddddd;
490
- position: absolute;
491
- top: 0;
492
- right: 0;
493
- display: block;
494
- width: 30px;
495
- height: 100%;
496
- padding-left: 9px; }
497
- .soliloquy-select .chosen-container-single .chosen-single div b {
498
- display: block;
499
- width: 100%;
500
- height: 100%;
501
- line-height: 35px; }
502
- .soliloquy-select .chosen-container-single .chosen-single div b:before {
503
- content: "\0051";
504
- display: block;
505
- font-weight: normal;
506
- font-size: 8px !important;
507
- font-family: 'soliloquy';
508
- position: absolute;
509
- text-align: center; }
510
- .soliloquy-select .chosen-container-single .chosen-search {
511
- position: relative;
512
- z-index: 1010;
513
- margin: 0;
514
- padding: 3px 4px;
515
- white-space: nowrap; }
516
- .soliloquy-select .chosen-container-single .chosen-search input[type="text"] {
517
- margin: 1px 0;
518
- padding: 4px 20px 4px 5px;
519
- width: 100%;
520
- height: auto;
521
- outline: 0;
522
- border: 1px solid #dddddd;
523
- background: white url("chosen-sprite.png") no-repeat 100% -20px;
524
- background: url("chosen-sprite.png") no-repeat 100% -20px;
525
- font-size: 1em;
526
- font-family: sans-serif;
527
- line-height: normal;
528
- border-radius: 0; }
529
- .soliloquy-select .chosen-container-single .chosen-drop {
530
- margin-top: -1px;
531
- border-radius: 0 0 2px 2px;
532
- background-clip: padding-box; }
533
- .soliloquy-select .chosen-container-single.chosen-container-single-nosearch .chosen-search {
534
- position: absolute;
535
- left: -9999px; }
536
- .soliloquy-select .chosen-container .chosen-results {
537
- color: #444;
538
- position: relative;
539
- overflow-x: hidden;
540
- overflow-y: auto;
541
- margin: 0 4px 4px 0;
542
- padding: 0 0 0 4px;
543
- max-height: 240px;
544
- -webkit-overflow-scrolling: touch; }
545
- .soliloquy-select .chosen-container .chosen-results li {
546
- display: none;
547
- margin: 0;
548
- padding: 5px 6px;
549
- list-style: none;
550
- line-height: 15px;
551
- word-wrap: break-word;
552
- -webkit-touch-callout: none; }
553
- .soliloquy-select .chosen-container .chosen-results li.active-result {
554
- display: list-item;
555
- cursor: pointer; }
556
- .soliloquy-select .chosen-container .chosen-results li.disabled-result {
557
- display: list-item;
558
- color: #ccc;
559
- cursor: default; }
560
- .soliloquy-select .chosen-container .chosen-results li.highlighted {
561
- background: #ff3700;
562
- color: white; }
563
- .soliloquy-select .chosen-container .chosen-results li.no-results {
564
- color: #777;
565
- display: list-item;
566
- background: #f4f4f4; }
567
- .soliloquy-select .chosen-container .chosen-results li.group-result {
568
- display: list-item;
569
- font-weight: bold;
570
- cursor: default; }
571
- .soliloquy-select .chosen-container .chosen-results li.group-option {
572
- padding-left: 15px; }
573
- .soliloquy-select .chosen-container .chosen-results li em {
574
- font-style: normal;
575
- text-decoration: underline; }
576
- .soliloquy-select .chosen-container-multi .chosen-choices {
577
- position: relative;
578
- overflow: hidden;
579
- margin: 0;
580
- padding: 0 5px;
581
- width: 100%;
582
- height: auto !important;
583
- height: 1%;
584
- border: 1px solid #dddddd;
585
- background: white;
586
- cursor: text; }
587
- .soliloquy-select .chosen-container-multi .chosen-choices li {
588
- float: left;
589
- list-style: none; }
590
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-field {
591
- margin: 0;
592
- padding: 0;
593
- white-space: nowrap; }
594
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
595
- margin: 1px 0;
596
- padding: 0;
597
- height: 25px;
598
- outline: 0;
599
- border: 0 !important;
600
- background: transparent !important;
601
- box-shadow: none;
602
- color: #999;
603
- font-size: 100%;
604
- font-family: sans-serif;
605
- line-height: normal;
606
- border-radius: 0; }
607
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-choice {
608
- position: relative;
609
- margin: 3px 5px 3px 0;
610
- padding: 3px 20px 3px 5px;
611
- border: 1px solid #dddddd;
612
- max-width: 100%;
613
- border-radius: 2px;
614
- background: white;
615
- background-size: 100% 19px;
616
- background-repeat: repeat-x;
617
- background-clip: padding-box;
618
- box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
619
- color: #333;
620
- line-height: 13px;
621
- cursor: default; }
622
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-choice span {
623
- word-wrap: break-word; }
624
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
625
- position: absolute;
626
- top: 4px;
627
- right: 3px;
628
- display: block;
629
- width: 12px;
630
- height: 12px;
631
- background: url("chosen-sprite.png") -42px 1px no-repeat;
632
- font-size: 1px; }
633
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
634
- background-position: -42px -10px; }
635
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-disabled {
636
- padding-right: 5px;
637
- border: 1px solid #dddddd;
638
- background: #e4e4e4;
639
- color: #666; }
640
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus {
641
- background: #d4d4d4; }
642
- .soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
643
- background-position: -42px -10px; }
644
- .soliloquy-select .chosen-container-multi .chosen-results {
645
- margin: 0;
646
- padding: 0; }
647
- .soliloquy-select .chosen-container-multi .chosen-drop .result-selected {
648
- display: list-item;
649
- color: #ccc;
650
- cursor: default; }
651
- .soliloquy-select .chosen-container-active .chosen-single {
652
- border: 1px solid #dddddd; }
653
- .soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single {
654
- border: 1px solid #dddddd;
655
- -moz-border-radius-bottomright: 0;
656
- border-bottom-right-radius: 0;
657
- -moz-border-radius-bottomleft: 0;
658
- border-bottom-left-radius: 0;
659
- background: white; }
660
- .soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div {
661
- border-left: 1px solid transparent;
662
- background: transparent; }
663
- .soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div b {
664
- background-position: -18px 2px; }
665
- .soliloquy-select .chosen-container-active .chosen-choices {
666
- border: 1px solid #5897fb;
667
- box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); }
668
- .soliloquy-select .chosen-container-active .chosen-choices li.search-field input[type="text"] {
669
- color: #222 !important; }
670
- .soliloquy-select .chosen-disabled {
671
- opacity: 0.5 !important;
672
- cursor: default; }
673
- .soliloquy-select .chosen-disabled .chosen-single {
674
- cursor: default; }
675
- .soliloquy-select .chosen-disabled .chosen-choices .search-choice .search-choice-close {
676
- cursor: default; }
677
- .soliloquy-select .chosen-rtl {
678
- text-align: right; }
679
- .soliloquy-select .chosen-rtl .chosen-single {
680
- overflow: visible;
681
- padding: 0 8px 0 0; }
682
- .soliloquy-select .chosen-rtl .chosen-single span {
683
- margin-right: 0;
684
- margin-left: 26px;
685
- direction: rtl; }
686
- .soliloquy-select .chosen-rtl .chosen-single-with-deselect span {
687
- margin-left: 38px; }
688
- .soliloquy-select .chosen-rtl .chosen-single div {
689
- right: auto;
690
- left: 3px; }
691
- .soliloquy-select .chosen-rtl .chosen-single abbr {
692
- right: auto;
693
- left: 26px; }
694
- .soliloquy-select .chosen-rtl .chosen-choices li {
695
- float: right; }
696
- .soliloquy-select .chosen-rtl .chosen-choices li.search-field input[type="text"] {
697
- direction: rtl; }
698
- .soliloquy-select .chosen-rtl .chosen-choices li.search-choice {
699
- margin: 3px 5px 3px 0;
700
- padding: 3px 5px 3px 19px; }
701
- .soliloquy-select .chosen-rtl .chosen-choices li.search-choice .search-choice-close {
702
- right: auto;
703
- left: 4px; }
704
- .soliloquy-select .chosen-rtl.chosen-container-single-nosearch .chosen-search,
705
- .soliloquy-select .chosen-rtl .chosen-drop {
706
- left: 9999px; }
707
- .soliloquy-select .chosen-rtl.chosen-container-single .chosen-results {
708
- margin: 0 0 4px 4px;
709
- padding: 0 4px 0 0; }
710
- .soliloquy-select .chosen-rtl .chosen-results li.group-option {
711
- padding-right: 15px;
712
- padding-left: 0; }
713
- .soliloquy-select .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
714
- border-right: none; }
715
- .soliloquy-select .chosen-rtl .chosen-search input[type="text"] {
716
- padding: 4px 5px 4px 20px;
717
- background: white url("chosen-sprite.png") no-repeat -30px -20px;
718
- background: url("chosen-sprite.png") no-repeat -30px -20px;
719
- direction: rtl; }
720
- .soliloquy-select .chosen-rtl.chosen-container-single .chosen-single div b {
721
- background-position: 6px 2px; }
722
- .soliloquy-select .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
723
- background-position: -12px 2px; }
724
- @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) {
725
- .soliloquy-select .chosen-rtl .chosen-search input[type="text"],
726
- .soliloquy-select .chosen-container-single .chosen-single abbr,
727
- .soliloquy-select .chosen-container-single .chosen-search input[type="text"],
728
- .soliloquy-select .chosen-container-multi .chosen-choices .search-choice .search-choice-close,
729
- .soliloquy-select .chosen-container .chosen-results-scroll-down span,
730
- .soliloquy-select .chosen-container .chosen-results-scroll-up span {
731
- background-image: none !important;
732
- background-size: 52px 37px !important;
733
- background-repeat: no-repeat !important; } }
734
- .soliloquy-select select.soliloquy-chosen + .chosen-container.chosen-container-single .chosen-single {
735
- padding-right: 35px; }
736
-
737
- /* ==========================================================================
738
- Settings Styles
739
- ========================================================================== */
740
- #soliloquy-tabs-nav {
741
- background-color: white;
742
- padding: 0;
743
- margin: 0;
744
- height: 50px;
745
- box-sizing: border-box;
746
- margin-left: -20px; }
747
- #soliloquy-tabs-nav .nav-tab {
748
- margin: 0;
749
- background-color: white;
750
- border: none;
751
- line-height: 40px;
752
- border-right: 1px solid #dddddd; }
753
- #soliloquy-tabs-nav .nav-tab:first-child {
754
- margin-left: 20px;
755
- border-left: 1px solid #dddddd; }
756
- #soliloquy-tabs-nav .nav-tab:focus {
757
- outline-style: none;
758
- box-shadow: none;
759
- border-color: transparent; }
760
- #soliloquy-tabs-nav .nav-tab-active {
761
- background-color: #f1f1f1;
762
- border: none; }
763
-
764
- .soliloquy-settings-table tr {
765
- border-bottom: 1px solid #dddddd; }
766
- .soliloquy-settings-table tr th {
767
- padding-top: 40px; }
768
- .soliloquy-settings-table tr td {
769
- padding: 40px 0; }
770
-
771
- #soliloquy-settings .soliloquy {
772
- margin: 15px 0 20px; }
773
- #soliloquy-settings .soliloquy-tab {
774
- display: none; }
775
- #soliloquy-settings .soliloquy-tab.soliloquy-active {
776
- display: block; }
777
- #soliloquy-settings .soliloquy-tab th {
778
- width: 210px;
779
- padding-right: 0; }
780
- #soliloquy-settings input[type="text"],
781
- #soliloquy-settings input[type="number"],
782
- #soliloquy-settings input[type="password"],
783
- #soliloquy-settings select,
784
- #soliloquy-settings textarea {
785
- width: 350px;
786
- padding-right: 0; }
787
- #soliloquy-settings .soliloquy-clear {
788
- clear: both; }
789
- #soliloquy-settings .soliloquy-clear:after {
790
- clear: both;
791
- content: '.';
792
- display: block;
793
- height: 0;
794
- line-height: 0;
795
- overflow: auto;
796
- visibility: hidden;
797
- zoom: 1; }
798
-
799
- #soliloquy-refresh-submit {
800
- margin-top: -10px; }
801
-
802
- .soliloquy-external-req {
803
- border: 1px solid #ff3700;
804
- border-radius: 3px;
805
- padding: 30px; }
806
- .soliloquy-external-req h2 {
807
- font-size: 20px;
808
- margin: 0;
809
- padding: 0; }
810
-
811
- .soliloquy-external-req-active {
812
- border: 1px solid #72b63d;
813
- background-color: white;
814
- border-radius: 3px;
815
- padding: 30px; }
816
- .soliloquy-external-req-active h2 {
817
- font-size: 20px;
818
- font-weight: 600;
819
- margin: 0;
820
- padding: 0; }
1
+ @font-face{font-family:"soliloquy";src:url("../fonts/soliloquy.eot");src:url("../fonts/soliloquy.eot?#iefix") format("embedded-opentype"),url("../fonts/soliloquy.woff") format("woff"),url("../fonts/soliloquy.ttf") format("truetype"),url("../fonts/soliloquy.svg#soliloquy") format("svg");font-weight:normal;font-style:normal}[class*=soliloquy-icon-]:before{display:inline-block;font-family:"soliloquy";font-style:normal;font-weight:normal;font-size:13px;line-height:1.5;margin-right:8px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.soliloquy-icon-configuration:before{content:"A"}.soliloquy-icon-soliloquy:before{content:"B"}.soliloquy-icon-pinterest:before{content:"C"}.soliloquy-icon-lightbox:before{content:"D"}.soliloquy-icon-misc:before{content:"E"}.soliloquy-icon-mobile:before{content:"F"}.soliloquy-icon-pagination:before{content:"G"}.soliloquy-icon-proofing:before{content:"H"}.soliloquy-icon-slideshow:before{content:"I"}.soliloquy-icon-tags:before{content:"J"}.soliloquy-icon-thumbnails:before{content:"K"}.soliloquy-icon-video:before{content:"L"}.soliloquy-icon-watermark:before{content:"M"}.soliloquy-icon-cloud-download:before{content:"N"}.soliloquy-icon-toggle-on:before{content:"O"}.soliloquy-icon-plus-circle:before{content:"P"}.soliloquy-icon-list:before{content:"R"}.soliloquy-icon-grid:before{content:"S"}.soliloquy-icon-pencil:before{content:"U"}.soliloquy-icon-close:before{content:"V"}.soliloquy-icon-check:before{content:"W"}.soliloquy-icon-schedule:before{content:"X"}.soliloquy-icon-carousel:before{content:"Y"}#soliloquy-header-temp{position:relative}#soliloquy-top-notification{position:relative;background-color:#162937;text-align:center;color:#fff;height:40px;margin-left:-20px;vertical-align:middle}#soliloquy-top-notification p{margin:0;padding:0;line-height:40px;font-size:16px}#soliloquy-top-notification a{color:#fff}#soliloquy-top-notification .envira-dismiss{position:absolute;top:10px;right:10px}#soliloquy-header{background-color:#f0f0f0;height:120px;margin-left:-20px}#soliloquy-header #soliloquy-logo{margin:0;padding-top:25px;line-height:120px;margin-left:20px}#soliloquy-header #soliloquy-logo img{max-width:288px}.wp-core-ui .button-soliloquy{background:#e02626;border-color:#e02626;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;font-weight:500;text-shadow:none;line-height:15px;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy:hover{background:#e02626;border-color:#e02626;color:#fff;opacity:.8}.wp-core-ui .button-soliloquy-secondary{background:#f7f7f7;border:1px solid;border-color:#ddd;-webkit-box-shadow:none;box-shadow:none;color:#23282d;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-secondary:hover{background:#f7f7f7;border-color:#999;color:#23282d}.wp-core-ui .button-soliloquy-delete{background:#e02626;border:1px solid;border-color:#e02626;-webkit-box-shadow:none;box-shadow:none;color:#fff;text-decoration:none;text-shadow:none;font-weight:bold;height:35px;font-size:13px;padding:0 20px 1px}.wp-core-ui .button-soliloquy-delete:hover{background:#e02626;color:#fff;opacity:.8}.wp-core-ui a.button-soliloquy,.wp-core-ui a.button-soliloquy-secondary,.wp-core-ui a.button-soliloquy-delete{line-height:32px}#soliloquy-settings-content input:not([type=checkbox]){background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;height:35px;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}#soliloquy-settings-content input[type=checkbox]:checked{-color:#e02626}#soliloquy-settings-content textarea{width:100%}#soliloquy-settings-content input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}input[type=password].soliloquy-input{background-color:#fff;border:1px solid #ddd;-webkit-box-shadow:none;box-shadow:none;height:35px;color:#32373c;outline:none;-webkit-transition:.05s border-color ease-in-out;transition:.05s border-color ease-in-out}pre.soliloquy-code{background-color:#ddd;border-radius:3px;padding:15px}.soliloquy-clipboard{display:block;text-decoration:underline !important;padding-top:8px;font-size:11px;outline:0 !important}.soliloquy-clipboard:focus{outline-style:none;box-shadow:none;border-color:transparent}.soliloquy-code{display:block;background-color:#f7f7f7;border-radius:3px;padding:10px !important}.soliloquy-list-inline{margin:0;list-style:none}.soliloquy-list-inline li{display:inline-block;margin-right:5px}.soliloquy-list-inline li:last-child{margin-right:0 !important}.soliloquy-yt iframe{max-width:100%;height:auto}.soliloquy-hidden{display:none !important}.soliloquy-hideme{visibility:hidden}.soliloquy-no-border{border:none !important}.soliloquy-right{float:right}.soliloquy-left{float:left}.soliloquy-clearfix{clear:both;display:block;height:0;overflow:hidden;visibility:hidden;width:0}.no-margin{margin:0 !important}.no-margin-top{margin-top:0 !important}.no-margin-bottom{margin-bottom:0 !important}[data-soliloquy-tooltip]{position:relative;z-index:2;cursor:pointer}[data-soliloquy-tooltip]:before,[data-soliloquy-tooltip]:after{visibility:hidden;opacity:0;pointer-events:none}[data-soliloquy-tooltip]:before{position:absolute;bottom:120%;left:50%;margin-bottom:5px;margin-left:-35px;padding:7px;width:60px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#000;color:#fff;content:attr(data-soliloquy-tooltip);text-align:center;font-size:12px;line-height:1.2}[data-soliloquy-tooltip]:after{position:absolute;bottom:120%;left:50%;width:0;margin-left:-5px;border-top:5px solid #000;border-right:5px solid transparent;border-left:5px solid transparent;content:" ";font-size:0;line-height:0}[data-soliloquy-tooltip]:hover:before,[data-soliloquy-tooltip]:hover:after{visibility:visible;opacity:1}[class*=soliloquy-grid-]{float:left;margin-left:2%}[class*=soliloquy-grid-] input[type=text]{width:100% !important}.soliloquy-grid-1{width:6.5%}.soliloquy-grid-2{width:15%}.soliloquy-grid-3{width:23.5%}.soliloquy-grid-4{width:32%}.soliloquy-grid-5{width:40.5%}.soliloquy-grid-6{width:49%}.soliloquy-grid-7{width:57.5%}.soliloquy-grid-8{width:66%}.soliloquy-grid-9{width:74.5%}.soliloquy-grid-10{width:83%}.soliloquy-grid-11{width:91.5%}.soliloquy-grid-12{width:100%}.soliloquy-first{margin-left:0px}/*!
2
+ Chosen, a Select Box Enhancer for jQuery and Prototype
3
+ by Patrick Filler for Harvest, http://getharvest.com
4
+
5
+ Version 1.5.1
6
+ Full source at https://github.com/harvesthq/chosen
7
+ Copyright (c) 2011-2016 Harvest http://getharvest.com
8
+
9
+ MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
10
+ This file is generated by `grunt build`, do not edit it by hand.
11
+ */.soliloquy-select *{box-shadow:none !important;background-image:none !important}.soliloquy-select *:after{background-image:none !important}.soliloquy-select .soliloquy-chosen{height:35px;max-width:350px;width:100%}.soliloquy-select .chosen-container{position:relative;display:inline-block;vertical-align:middle;font-size:13px;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-width:350px;font-weight:600}.soliloquy-select .chosen-container *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.soliloquy-select .chosen-container .chosen-drop{position:absolute;top:100%;left:-9999px;z-index:1010;width:100%;border:1px solid #ddd;border-top:0;background:#fff}.soliloquy-select .chosen-container.chosen-with-drop .chosen-drop{left:0}.soliloquy-select .chosen-container a{cursor:pointer}.soliloquy-select .chosen-container .search-choice .group-name,.soliloquy-select .chosen-container .chosen-single .group-name{margin-right:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:normal;color:#999}.soliloquy-select .chosen-container .search-choice .group-name:after,.soliloquy-select .chosen-container .chosen-single .group-name:after{content:":";padding-left:2px;vertical-align:top}.soliloquy-select .chosen-container-single .chosen-single{position:relative;display:block;overflow:hidden;padding:0 0 0 8px;height:35px;border:1px solid #ddd;border-radius:3px;background:#fff;background-clip:padding-box;color:#444;text-decoration:none;white-space:nowrap;line-height:35px}.soliloquy-select .chosen-container-single .chosen-default{color:#999}.soliloquy-select .chosen-container-single .chosen-single span{display:block;overflow:hidden;margin-right:26px;text-overflow:ellipsis;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-single-with-deselect span{margin-right:38px}.soliloquy-select .chosen-container-single .chosen-single abbr{position:absolute;top:6px;right:26px;display:block;width:12px;height:12px;font-size:1px}.soliloquy-select .chosen-container-single .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single.chosen-disabled .chosen-single abbr:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-single .chosen-single div{border-left:1px solid #ddd;position:absolute;top:0;right:0;display:block;width:30px;height:100%;padding-left:9px}.soliloquy-select .chosen-container-single .chosen-single div b{display:block;width:100%;height:100%;line-height:35px}.soliloquy-select .chosen-container-single .chosen-single div b:before{content:"Q";display:block;font-weight:normal;font-size:8px !important;font-family:"soliloquy";position:absolute;text-align:center}.soliloquy-select .chosen-container-single .chosen-search{position:relative;z-index:1010;margin:0;padding:3px 4px;white-space:nowrap}.soliloquy-select .chosen-container-single .chosen-search input[type=text]{margin:1px 0;padding:4px 20px 4px 5px;width:100%;height:auto;outline:0;border:1px solid #ddd;background:#fff url("chosen-sprite.png") no-repeat 100% -20px;background:url("chosen-sprite.png") no-repeat 100% -20px;font-size:1em;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-single .chosen-drop{margin-top:-1px;border-radius:0 0 2px 2px;background-clip:padding-box}.soliloquy-select .chosen-container-single.chosen-container-single-nosearch .chosen-search{position:absolute;left:-9999px}.soliloquy-select .chosen-container .chosen-results{color:#444;position:relative;overflow-x:hidden;overflow-y:auto;margin:0 4px 4px 0;padding:0 0 0 4px;max-height:240px;-webkit-overflow-scrolling:touch}.soliloquy-select .chosen-container .chosen-results li{display:none;margin:0;padding:5px 6px;list-style:none;line-height:15px;word-wrap:break-word;-webkit-touch-callout:none}.soliloquy-select .chosen-container .chosen-results li.active-result{display:list-item;cursor:pointer}.soliloquy-select .chosen-container .chosen-results li.disabled-result{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container .chosen-results li.highlighted{background:#e02626;color:#fff}.soliloquy-select .chosen-container .chosen-results li.no-results{color:#777;display:list-item;background:#f4f4f4}.soliloquy-select .chosen-container .chosen-results li.group-result{display:list-item;font-weight:bold;cursor:default}.soliloquy-select .chosen-container .chosen-results li.group-option{padding-left:15px}.soliloquy-select .chosen-container .chosen-results li em{font-style:normal;text-decoration:underline}.soliloquy-select .chosen-container-multi .chosen-choices{position:relative;overflow:hidden;margin:0;padding:0 5px;width:100%;height:auto !important;height:1%;border:1px solid #ddd;background:#fff;cursor:text}.soliloquy-select .chosen-container-multi .chosen-choices li{float:left;list-style:none}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field{margin:0;padding:0;white-space:nowrap}.soliloquy-select .chosen-container-multi .chosen-choices li.search-field input[type=text]{margin:1px 0;padding:0;height:25px;outline:0;border:0 !important;background:transparent !important;box-shadow:none;color:#999;font-size:100%;font-family:sans-serif;line-height:normal;border-radius:0}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice{position:relative;margin:3px 5px 3px 0;padding:3px 20px 3px 5px;border:1px solid #ddd;max-width:100%;border-radius:2px;background:#fff;background-size:100% 19px;background-repeat:repeat-x;background-clip:padding-box;box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);color:#333;line-height:13px;cursor:default}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice span{word-wrap:break-word}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close{position:absolute;top:4px;right:3px;display:block;width:12px;height:12px;background:url("chosen-sprite.png") -42px 1px no-repeat;font-size:1px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-disabled{padding-right:5px;border:1px solid #ddd;background:#e4e4e4;color:#666}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus{background:#d4d4d4}.soliloquy-select .chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close{background-position:-42px -10px}.soliloquy-select .chosen-container-multi .chosen-results{margin:0;padding:0}.soliloquy-select .chosen-container-multi .chosen-drop .result-selected{display:list-item;color:#ccc;cursor:default}.soliloquy-select .chosen-container-active .chosen-single{border:1px solid #ddd}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single{border:1px solid #ddd;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;background:#fff}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div{border-left:1px solid transparent;background:transparent}.soliloquy-select .chosen-container-active.chosen-with-drop .chosen-single div b{background-position:-18px 2px}.soliloquy-select .chosen-container-active .chosen-choices{border:1px solid #5897fb;box-shadow:0 0 5px rgba(0,0,0,.3)}.soliloquy-select .chosen-container-active .chosen-choices li.search-field input[type=text]{color:#222 !important}.soliloquy-select .chosen-disabled{opacity:.5 !important;cursor:default}.soliloquy-select .chosen-disabled .chosen-single{cursor:default}.soliloquy-select .chosen-disabled .chosen-choices .search-choice .search-choice-close{cursor:default}.soliloquy-select .chosen-rtl{text-align:right}.soliloquy-select .chosen-rtl .chosen-single{overflow:visible;padding:0 8px 0 0}.soliloquy-select .chosen-rtl .chosen-single span{margin-right:0;margin-left:26px;direction:rtl}.soliloquy-select .chosen-rtl .chosen-single-with-deselect span{margin-left:38px}.soliloquy-select .chosen-rtl .chosen-single div{right:auto;left:3px}.soliloquy-select .chosen-rtl .chosen-single abbr{right:auto;left:26px}.soliloquy-select .chosen-rtl .chosen-choices li{float:right}.soliloquy-select .chosen-rtl .chosen-choices li.search-field input[type=text]{direction:rtl}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice{margin:3px 5px 3px 0;padding:3px 5px 3px 19px}.soliloquy-select .chosen-rtl .chosen-choices li.search-choice .search-choice-close{right:auto;left:4px}.soliloquy-select .chosen-rtl.chosen-container-single-nosearch .chosen-search,.soliloquy-select .chosen-rtl .chosen-drop{left:9999px}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-results{margin:0 0 4px 4px;padding:0 4px 0 0}.soliloquy-select .chosen-rtl .chosen-results li.group-option{padding-right:15px;padding-left:0}.soliloquy-select .chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div{border-right:none}.soliloquy-select .chosen-rtl .chosen-search input[type=text]{padding:4px 5px 4px 20px;background:#fff url("chosen-sprite.png") no-repeat -30px -20px;background:url("chosen-sprite.png") no-repeat -30px -20px;direction:rtl}.soliloquy-select .chosen-rtl.chosen-container-single .chosen-single div b{background-position:6px 2px}.soliloquy-select .chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b{background-position:-12px 2px}@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (min-resolution: 144dpi),only screen and (min-resolution: 1.5dppx){.soliloquy-select .chosen-rtl .chosen-search input[type=text],.soliloquy-select .chosen-container-single .chosen-single abbr,.soliloquy-select .chosen-container-single .chosen-search input[type=text],.soliloquy-select .chosen-container-multi .chosen-choices .search-choice .search-choice-close,.soliloquy-select .chosen-container .chosen-results-scroll-down span,.soliloquy-select .chosen-container .chosen-results-scroll-up span{background-image:none !important;background-size:52px 37px !important;background-repeat:no-repeat !important}}.soliloquy-select select.soliloquy-chosen+.chosen-container.chosen-container-single .chosen-single{padding-right:35px}#soliloquy-tabs-nav{background-color:#fff;padding:0;margin:0;height:50px;box-sizing:border-box;margin-left:-20px}#soliloquy-tabs-nav .nav-tab{margin:0;background-color:#fff;border:none;line-height:40px;border-right:1px solid #ddd}#soliloquy-tabs-nav .nav-tab:first-child{margin-left:20px;border-left:1px solid #ddd}#soliloquy-tabs-nav .nav-tab:focus{outline-style:none;box-shadow:none;border-color:transparent}#soliloquy-tabs-nav .nav-tab-active{background-color:#f1f1f1;border:none}.soliloquy-settings-table tr{border-bottom:1px solid #ddd}.soliloquy-settings-table tr th{padding-top:40px}.soliloquy-settings-table tr td{padding:40px 0}#soliloquy-settings .soliloquy{margin:15px 0 20px}#soliloquy-settings .soliloquy-tab{display:none}#soliloquy-settings .soliloquy-tab.soliloquy-active{display:block}#soliloquy-settings .soliloquy-tab th{width:210px;padding-right:0}#soliloquy-settings input[type=text],#soliloquy-settings input[type=number],#soliloquy-settings input[type=password],#soliloquy-settings select,#soliloquy-settings textarea{width:350px;padding-right:0}#soliloquy-settings .soliloquy-clear{clear:both}#soliloquy-settings .soliloquy-clear:after{clear:both;content:".";display:block;height:0;line-height:0;overflow:auto;visibility:hidden;zoom:1}#soliloquy-refresh-submit{margin-top:-10px}.soliloquy-external-req{border:1px solid #e02626;border-radius:3px;padding:30px}.soliloquy-external-req h2{font-size:20px;margin:0;padding:0}.soliloquy-external-req-active{border:1px solid #7cc048;background-color:#fff;border-radius:3px;padding:30px}.soliloquy-external-req-active h2{font-size:20px;font-weight:600;margin:0;padding:0}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/soliloquy.css CHANGED
@@ -1,334 +1 @@
1
- .soliloquy-container,
2
- .soliloquy-container * {
3
- background: none;
4
- border: 0 none;
5
- border-radius: 0;
6
- -webkit-border-radius: 0;
7
- -moz-border-radius: 0;
8
- float: none;
9
- font-size: 100%;
10
- height: auto;
11
- letter-spacing: normal;
12
- list-style: none;
13
- outline: none;
14
- position: static;
15
- text-decoration: none;
16
- text-indent: 0;
17
- text-shadow: none;
18
- text-transform: none;
19
- width: auto;
20
- visibility: visible;
21
- overflow: visible;
22
- margin: 0;
23
- padding: 0;
24
- line-height: 1;
25
- box-sizing: border-box;
26
- -webkit-box-sizing: border-box;
27
- -moz-box-sizing: border-box;
28
- -webkit-box-shadow: none;
29
- -moz-box-shadow: none;
30
- -ms-box-shadow: none;
31
- -o-box-shadow: none;
32
- box-shadow: none;
33
- -webkit-appearance: none; }
34
-
35
- .soliloquy-container {
36
- position: relative;
37
- background: transparent url("images/preloader.gif") no-repeat scroll 50% 50%;
38
- z-index: 0;
39
- width: 100%;
40
- max-width: 100%; }
41
-
42
- .soliloquy-container:after {
43
- display: none;
44
- height: 0;
45
- line-height: 0;
46
- visibility: hidden;
47
- content: url("images/left.png") url("images/right.png") url("images/circle.png") url("images/circle-hover.png") url("images/pause.png") url("images/play.png") url("images/video.png"); }
48
-
49
- .soliloquy-container .soliloquy-wrap {
50
- width: 100%;
51
- position: relative;
52
- margin: 0;
53
- padding: 0;
54
- list-style: none !important;
55
- height: 100%;
56
- zoom: 1;
57
- *zoom: 1; }
58
-
59
- .soliloquy-container .soliloquy-viewport {
60
- -webkit-transform: translatez(0);
61
- -moz-transform: translatez(0);
62
- -ms-transform: translatez(0);
63
- -o-transform: translatez(0);
64
- transform: translatez(0); }
65
-
66
- .soliloquy-clear {
67
- clear: both; }
68
-
69
- .soliloquy-clear:after {
70
- clear: both;
71
- content: '.';
72
- display: block;
73
- height: 0;
74
- line-height: 0;
75
- overflow: auto;
76
- visibility: hidden;
77
- zoom: 1; }
78
-
79
- .soliloquy-hide {
80
- display: none; }
81
-
82
- .soliloquy-container a {
83
- outline: none; }
84
-
85
- .soliloquy-container .soliloquy-wrapper,
86
- .soliloquy-container .soliloquy-item {
87
- width: 100%;
88
- position: relative;
89
- margin: 0;
90
- padding: 0;
91
- list-style: none !important; }
92
-
93
- .soliloquy-container .soliloquy-item {
94
- min-height: 1px;
95
- min-width: 1px;
96
- display: none; }
97
-
98
- .no-js .soliloquy-container .soliloquy-slides > li:first-child {
99
- display: block; }
100
-
101
- .soliloquy-container .soliloquy-item:after {
102
- content: '.';
103
- position: absolute;
104
- bottom: 0;
105
- left: 0;
106
- z-index: -1000;
107
- visibility: hidden;
108
- opacity: 0;
109
- height: 0;
110
- line-height: 0; }
111
-
112
- .soliloquy-container .soliloquy-item > a {
113
- display: block;
114
- outline: none;
115
- width: 100%;
116
- position: relative;
117
- border: none; }
118
-
119
- .soliloquy-container .soliloquy-image {
120
- max-width: 100%;
121
- height: auto;
122
- display: block;
123
- margin: 0 auto;
124
- -webkit-user-drag: none;
125
- -moz-user-select: none;
126
- -ms-user-select: none; }
127
-
128
- .soliloquy-container .soliloquy-prev {
129
- display: block;
130
- width: 32px;
131
- height: 32px;
132
- position: absolute;
133
- top: 50%;
134
- margin-top: -16px;
135
- left: 10px;
136
- z-index: 1320;
137
- background: rgba(0, 0, 0, 0.7) url("images/left.png") no-repeat scroll 50% 50%; }
138
-
139
- .soliloquy-container .soliloquy-next {
140
- display: block;
141
- width: 32px;
142
- height: 32px;
143
- position: absolute;
144
- top: 50%;
145
- margin-top: -16px;
146
- right: 10px;
147
- z-index: 1320;
148
- background: rgba(0, 0, 0, 0.7) url("images/right.png") no-repeat scroll 50% 50%; }
149
-
150
- .soliloquy-container .soliloquy-prev.disabled,
151
- .soliloquy-container .soliloquy-next.disabled {
152
- cursor: default;
153
- pointer-events: none;
154
- opacity: 0.3; }
155
-
156
- .soliloquy-container .soliloquy-pager {
157
- width: 100%;
158
- margin: 0 auto;
159
- text-align: center;
160
- position: absolute;
161
- bottom: 10px;
162
- height: 14px; }
163
-
164
- .soliloquy-container .soliloquy-pager-item {
165
- display: inline-block;
166
- margin: 0 0 0 7px;
167
- position: relative;
168
- z-index: 1320; }
169
-
170
- .soliloquy-container .soliloquy-pager-item:first-child {
171
- margin-left: 0; }
172
-
173
- .soliloquy-container .soliloquy-pager-link {
174
- background: url("images/circle.png") no-repeat scroll 0 0;
175
- width: 14px;
176
- height: 14px;
177
- display: block;
178
- outline: none;
179
- text-indent: -9999px;
180
- text-decoration: none;
181
- border: none; }
182
-
183
- .soliloquy-container .soliloquy-pager-link:hover,
184
- .soliloquy-container .soliloquy-pager-link.active {
185
- background-image: url("images/circle-hover.png"); }
186
-
187
- .soliloquy-container .soliloquy-controls-auto-item {
188
- display: block;
189
- width: 32px;
190
- height: 32px;
191
- position: absolute;
192
- bottom: 10px;
193
- right: 10px;
194
- z-index: 1220; }
195
-
196
- .soliloquy-container .soliloquy-stop {
197
- display: block;
198
- width: 32px;
199
- height: 32px;
200
- background: rgba(0, 0, 0, 0.7) url("images/pause.png") no-repeat scroll 50% 50%; }
201
-
202
- .soliloquy-container .soliloquy-start {
203
- display: block;
204
- width: 32px;
205
- height: 32px;
206
- background: rgba(0, 0, 0, 0.7) url("images/play.png") no-repeat scroll 50% 50%; }
207
-
208
- .soliloquy-container .soliloquy-caption {
209
- position: absolute;
210
- bottom: 0;
211
- left: 0;
212
- width: 100%;
213
- z-index: 1120;
214
- padding-bottom: 25px;
215
- background: rgba(0, 0, 0, 0.5); }
216
-
217
- .soliloquy-container .soliloquy-caption-inside {
218
- font-size: 1em;
219
- line-height: 1.25;
220
- display: block;
221
- color: #fff;
222
- text-shadow: 0 1px 1px #000;
223
- text-align: center;
224
- padding: 10px; }
225
-
226
- .soliloquy-container .soliloquy-caption-inside a {
227
- color: #fff; }
228
-
229
- .soliloquy-container .soliloquy-controls {
230
- opacity: 0; }
231
-
232
- /**
233
- * RTL
234
- */
235
- .soliloquy-rtl {
236
- /**
237
- * Pager
238
- * - add margin to first child
239
- * - remove margin from last child
240
- */
241
- /**
242
- * Direction Controls
243
- * - swap left + right controls over
244
- */
245
- /**
246
- * Thumbnails
247
- * - float right so they display
248
- */ }
249
- .soliloquy-rtl .soliloquy-pager-item:first-child {
250
- margin-left: 7px; }
251
- .soliloquy-rtl .soliloquy-pager-item:last-child {
252
- margin-left: 0; }
253
- .soliloquy-rtl .soliloquy-next {
254
- left: 10px;
255
- right: auto;
256
- background-image: url(images/left.png); }
257
- .soliloquy-rtl .soliloquy-prev {
258
- right: 10px;
259
- left: auto;
260
- background-image: url(images/right.png); }
261
- .soliloquy-rtl .soliloquy-thumbnails-item {
262
- float: right !important; }
263
-
264
- .rtl {
265
- /**
266
- * Pager
267
- * - add margin to first child
268
- * - remove margin from last child
269
- */
270
- /**
271
- * Direction Controls
272
- * - swap left + right controls over
273
- */
274
- /**
275
- * Thumbnails
276
- * - float right so they display
277
- */ }
278
- .rtl .soliloquy-pager-item:first-child {
279
- margin-left: 7px; }
280
- .rtl .soliloquy-pager-item:last-child {
281
- margin-left: 0; }
282
- .rtl .soliloquy-next {
283
- left: 10px;
284
- right: auto;
285
- background-image: url(images/left.png); }
286
- .rtl .soliloquy-prev {
287
- right: 10px;
288
- left: auto;
289
- background-image: url(images/right.png); }
290
- .rtl .soliloquy-thumbnails-item {
291
- float: right !important; }
292
-
293
- @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
294
- .soliloquy-container {
295
- background-image: url("images/preloader@2x.gif");
296
- background-size: 16px 16px; }
297
-
298
- .soliloquy-container .soliloquy-prev {
299
- background-image: url("images/left@2x.png");
300
- background-size: 10px 14px; }
301
-
302
- .soliloquy-container .soliloquy-next {
303
- background-image: url("images/right@2x.png");
304
- background-size: 10px 14px; }
305
-
306
- .soliloquy-container .soliloquy-pager-link {
307
- background-image: url("images/circle@2x.png");
308
- background-size: 14px 14px; }
309
-
310
- .soliloquy-container .soliloquy-pager-link:hover,
311
- .soliloquy-container .soliloquy-pager-link.active {
312
- background-image: url("images/circle-hover@2x.png");
313
- background-size: 14px 14px; }
314
-
315
- .soliloquy-container .soliloquy-stop {
316
- background-image: url("images/pause@2x.png");
317
- background-size: 9px 14px; }
318
-
319
- .soliloquy-container .soliloquy-start {
320
- background-image: url("images/play@2x.png");
321
- background-size: 14px 14px; }
322
-
323
- .soliloquy-container .soliloquy-video-icon {
324
- background-image: url("images/video@2x.png");
325
- background-size: 50px 50px; } }
326
- @media (max-width: 600px) {
327
- .soliloquy-container .soliloquy-pager,
328
- .soliloquy-container .soliloquy-caption,
329
- .soliloquy-container .soliloquy-controls-auto {
330
- display: none; } }
331
- @media only screen and (max-width: 600px) and (-webkit-min-device-pixel-ratio: 2), only screen and (max-width: 600px) and (min--moz-device-pixel-ratio: 2), only screen and (max-width: 600px) and (-o-min-device-pixel-ratio: 2 / 1), only screen and (max-width: 600px) and (min-device-pixel-ratio: 2), only screen and (max-width: 600px) and (min-resolution: 192dpi), only screen and (max-width: 600px) and (min-resolution: 2dppx) {
332
- .soliloquy-container .soliloquy-video-icon {
333
- background-image: url("images/video.png");
334
- background-size: 25px 25px; } }
1
+ .soliloquy-container,.soliloquy-container *{background:none;border:0 none;border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;float:none;font-size:100%;height:auto;letter-spacing:normal;list-style:none;outline:none;position:static;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;width:auto;visibility:visible;overflow:visible;margin:0;padding:0;line-height:1;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-shadow:none;-moz-box-shadow:none;-ms-box-shadow:none;-o-box-shadow:none;box-shadow:none;-webkit-appearance:none}.soliloquy-container{position:relative;background:transparent url("images/preloader.gif") no-repeat scroll 50% 50%;z-index:0;width:100%;max-width:100%}.soliloquy-container:after{display:none;height:0;line-height:0;visibility:hidden;content:url("images/left.png") url("images/right.png") url("images/circle.png") url("images/circle-hover.png") url("images/pause.png") url("images/play.png") url("images/video.png")}.soliloquy-container .soliloquy-wrap{width:100%;position:relative;margin:0;padding:0;list-style:none !important;height:100%;zoom:1;*zoom:1}.soliloquy-container .soliloquy-viewport{-webkit-transform:translatez(0);-moz-transform:translatez(0);-ms-transform:translatez(0);-o-transform:translatez(0);transform:translatez(0)}.soliloquy-clear{clear:both}.soliloquy-clear:after{clear:both;content:".";display:block;height:0;line-height:0;overflow:auto;visibility:hidden;zoom:1}.soliloquy-hide{display:none}.soliloquy-container a{outline:none}.soliloquy-container .soliloquy-wrapper,.soliloquy-container .soliloquy-item{width:100%;position:relative;margin:0;padding:0;list-style:none !important}.soliloquy-container .soliloquy-item{min-height:1px;min-width:1px;display:none}.no-js .soliloquy-container .soliloquy-slides>li:first-child{display:block}.soliloquy-container .soliloquy-item:after{content:".";position:absolute;bottom:0;left:0;z-index:-1000;visibility:hidden;opacity:0;height:0;line-height:0}.soliloquy-container .soliloquy-item>a{display:block;outline:none;width:100%;position:relative;border:none}.soliloquy-container .soliloquy-image{max-width:100%;height:auto;display:block;margin:0 auto;-webkit-user-drag:none;-moz-user-select:none;-ms-user-select:none}.soliloquy-container .soliloquy-prev{display:block;width:32px;height:32px;position:absolute;top:50%;margin-top:-16px;left:10px;z-index:1320;background:rgba(0,0,0,.7) url("images/left.png") no-repeat scroll 50% 50%}.soliloquy-container .soliloquy-next{display:block;width:32px;height:32px;position:absolute;top:50%;margin-top:-16px;right:10px;z-index:1320;background:rgba(0,0,0,.7) url("images/right.png") no-repeat scroll 50% 50%}.soliloquy-container .soliloquy-prev.disabled,.soliloquy-container .soliloquy-next.disabled{cursor:default;pointer-events:none;opacity:.3}.soliloquy-container .soliloquy-pager{width:100%;margin:0 auto;text-align:center;position:absolute;bottom:10px;height:14px}.soliloquy-container .soliloquy-pager-item{display:inline-block;margin:0 0 0 7px;position:relative;z-index:1320}.soliloquy-container .soliloquy-pager-item:first-child{margin-left:0}.soliloquy-container .soliloquy-pager-link{background:url("images/circle.png") no-repeat scroll 0 0;width:14px;height:14px;display:block;outline:none;text-indent:-9999px;text-decoration:none;border:none}.soliloquy-container .soliloquy-pager-link:hover,.soliloquy-container .soliloquy-pager-link.active{background-image:url("images/circle-hover.png")}.soliloquy-container .soliloquy-controls-auto-item{display:block;width:32px;height:32px;position:absolute;bottom:10px;right:10px;z-index:1220}.soliloquy-container .soliloquy-stop{display:block;width:32px;height:32px;background:rgba(0,0,0,.7) url("images/pause.png") no-repeat scroll 50% 50%}.soliloquy-container .soliloquy-start{display:block;width:32px;height:32px;background:rgba(0,0,0,.7) url("images/play.png") no-repeat scroll 50% 50%}.soliloquy-container .soliloquy-caption{position:absolute;bottom:0;left:0;width:100%;z-index:1120;padding-bottom:25px;background:rgba(0,0,0,.5)}.soliloquy-container .soliloquy-caption-inside{font-size:1em;line-height:1.25;display:block;color:#fff;text-shadow:0 1px 1px #000;text-align:center;white-space:pre-line;padding:10px}.soliloquy-container .soliloquy-caption-inside a{color:#fff}.soliloquy-container .soliloquy-controls{opacity:0}.soliloquy-rtl .soliloquy-pager-item:first-child{margin-left:7px}.soliloquy-rtl .soliloquy-pager-item:last-child{margin-left:0}.soliloquy-rtl .soliloquy-next{left:10px;right:auto;background-image:url(images/left.png)}.soliloquy-rtl .soliloquy-prev{right:10px;left:auto;background-image:url(images/right.png)}.soliloquy-rtl .soliloquy-thumbnails-item{float:right !important}.rtl .soliloquy-pager-item:first-child{margin-left:7px}.rtl .soliloquy-pager-item:last-child{margin-left:0}.rtl .soliloquy-next{left:10px;right:auto;background-image:url(images/left.png)}.rtl .soliloquy-prev{right:10px;left:auto;background-image:url(images/right.png)}.rtl .soliloquy-thumbnails-item{float:right !important}@media only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx){.soliloquy-container{background-image:url("images/preloader@2x.gif");background-size:16px 16px}.soliloquy-container .soliloquy-prev{background-image:url("images/left@2x.png");background-size:10px 14px}.soliloquy-container .soliloquy-next{background-image:url("images/right@2x.png");background-size:10px 14px}.soliloquy-container .soliloquy-pager-link{background-image:url("images/circle@2x.png");background-size:14px 14px}.soliloquy-container .soliloquy-pager-link:hover,.soliloquy-container .soliloquy-pager-link.active{background-image:url("images/circle-hover@2x.png");background-size:14px 14px}.soliloquy-container .soliloquy-stop{background-image:url("images/pause@2x.png");background-size:9px 14px}.soliloquy-container .soliloquy-start{background-image:url("images/play@2x.png");background-size:14px 14px}.soliloquy-container .soliloquy-video-icon{background-image:url("images/video@2x.png");background-size:50px 50px}}@media(max-width: 600px){.soliloquy-container .soliloquy-pager,.soliloquy-container .soliloquy-caption,.soliloquy-container .soliloquy-controls-auto{display:none}}@media only screen and (max-width: 600px)and (-webkit-min-device-pixel-ratio: 2),only screen and (max-width: 600px)and (min--moz-device-pixel-ratio: 2),only screen and (max-width: 600px)and (-o-min-device-pixel-ratio: 2/1),only screen and (max-width: 600px)and (min-device-pixel-ratio: 2),only screen and (max-width: 600px)and (min-resolution: 192dpi),only screen and (max-width: 600px)and (min-resolution: 2dppx){.soliloquy-container .soliloquy-video-icon{background-image:url("images/video.png");background-size:25px 25px}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/welcome.css ADDED
@@ -0,0 +1 @@
 
1
+ #soliloquy-header-temp{position:relative}#soliloquy-top-notification{position:relative;background-color:#162937;text-align:center;color:#fff;height:40px;margin-left:-20px;vertical-align:middle}#soliloquy-top-notification p{margin:0;padding:0;line-height:40px;font-size:16px}#soliloquy-top-notification a{color:#fff}#soliloquy-top-notification .envira-dismiss{position:absolute;top:10px;right:10px}#soliloquy-header{background-color:#f0f0f0;height:120px;margin-left:-20px}#soliloquy-header #soliloquy-logo{margin:0;padding-top:25px;line-height:120px;margin-left:20px}#soliloquy-header #soliloquy-logo img{max-width:288px}body.soliloquy_page_soliloquy-lite-welcome,body.soliloquy_page_soliloquy-lite-get-started,body.soliloquy_page_soliloquy-lite-upgrade,body.soliloquy_page_soliloquy-lite-partners,body.soliloquy_page_soliloquy-lite-litevspro{background-color:#fff}body.soliloquy_page_soliloquy-lite-welcome #soliloquy-header,body.soliloquy_page_soliloquy-lite-get-started #soliloquy-header,body.soliloquy_page_soliloquy-lite-upgrade #soliloquy-header,body.soliloquy_page_soliloquy-lite-partners #soliloquy-header,body.soliloquy_page_soliloquy-lite-litevspro #soliloquy-header{height:160px}body.soliloquy_page_soliloquy-lite-welcome .nav-tab-wrapper,body.soliloquy_page_soliloquy-lite-get-started .nav-tab-wrapper,body.soliloquy_page_soliloquy-lite-upgrade .nav-tab-wrapper,body.soliloquy_page_soliloquy-lite-partners .nav-tab-wrapper,body.soliloquy_page_soliloquy-lite-litevspro .nav-tab-wrapper{border:none;margin-top:-50px}body.soliloquy_page_soliloquy-lite-welcome .nav-tab,body.soliloquy_page_soliloquy-lite-get-started .nav-tab,body.soliloquy_page_soliloquy-lite-upgrade .nav-tab,body.soliloquy_page_soliloquy-lite-partners .nav-tab,body.soliloquy_page_soliloquy-lite-litevspro .nav-tab{font-size:16px;border:none;background:transparent;padding:10px 24px;font-weight:400;margin-left:20px}body.soliloquy_page_soliloquy-lite-welcome .nav-tab-active,body.soliloquy_page_soliloquy-lite-get-started .nav-tab-active,body.soliloquy_page_soliloquy-lite-upgrade .nav-tab-active,body.soliloquy_page_soliloquy-lite-partners .nav-tab-active,body.soliloquy_page_soliloquy-lite-litevspro .nav-tab-active{background-color:#fff;font-weight:600;border-top-left-radius:6px;border-top-right-radius:6px}.soliloquy-welcome-wrap{padding:30px 60px}.soliloquy-welcome-wrap .nav-tab-wrapper a{font-weight:400;font-size:18px;line-height:24px}.soliloquy-welcome-wrap .nav-tab-wrapper a.nav-tab-active{font-weight:600}.soliloquy-welcome-wrap .nav-tab{margin-right:.85em}.soliloquy-welcome-wrap .soliloquy-title{width:100%;margin-bottom:20px}.soliloquy-welcome-wrap .soliloquy-title h1.welcome-header{background:none;font-size:42px;font-weight:400;padding-left:0}.soliloquy-welcome-wrap .soliloquy-title h1.welcome-header span{color:#7cc048;margin-right:-10px;text-indent:0;line-height:1;font-size:33px}.soliloquy-welcome-wrap .soliloquy-title h1.welcome-header,.soliloquy-welcome-wrap .soliloquy-title .about-text{text-indent:10px}.soliloquy-welcome-wrap .soliloquy-title .about-text{font-size:21px;line-height:32px;font-weight:200}.soliloquy-welcome-wrap .soliloquy-welcome-sidebar{float:right;width:20%;padding:15px}.soliloquy-welcome-wrap .soliloquy-welcome-sidebar .sidebox{background:#e6e6e6;padding:20px;font-size:14px;margin-bottom:20px}.soliloquy-welcome-wrap .soliloquy-welcome-sidebar .sidebox h4{font-weight:600;line-height:1.3;color:#000;margin:0 0 10px 0}.soliloquy-welcome-wrap .soliloquy-welcome-sidebar .sidebox input[type=password],.soliloquy-welcome-wrap .soliloquy-welcome-sidebar .sidebox input[type=text],.soliloquy-welcome-wrap .soliloquy-welcome-sidebar .sidebox input[type=email]{width:100%}.soliloquy-welcome-wrap .soliloquy-welcome-sidebar .sidebox input[type=submit],.soliloquy-welcome-wrap .soliloquy-welcome-sidebar .sidebox input[type=button]{margin:10px 0 0}.soliloquy-welcome-wrap .soliloquy-welcome-sidebar .sidebox .form-row{margin:2px 0;width:100%;font-size:14px;line-break:14px}.soliloquy-welcome-wrap .soliloquy-welcome-sidebar .sidebox .form-row input[type=checkbox]{margin:2px}.soliloquy-welcome-wrap .soliloquy-welcome-sidebar .sidebox .form-row label{margin-left:5px;font-size:12px}.soliloquy-welcome-wrap .soliloquy-welcome-sidebar .sidebox.warning{background:#950303;color:#fff}.soliloquy-welcome-wrap .soliloquy-welcome-sidebar .sidebox.warning h4{color:#ffae00}.soliloquy-welcome-wrap .soliloquy-welcome-sidebar .sidebox.warning p strong{color:#ffae00}.soliloquy-welcome-wrap .soliloquy-welcome-sidebar sidebox:last-of-type{margin-bottom:0}.soliloquy-welcome-wrap .soliloquy-wrap{padding:20px}.soliloquy-panel{display:flex;background:#fff;padding:60px;font-size:16px;line-height:25px;margin-bottom:60px}.soliloquy-panel h2{font-size:2em;font-weight:500;line-height:1.2em;margin-top:0;margin-bottom:0;text-transform:capitalize}.soliloquy-panel p{font-size:16px;line-height:20px}.soliloquy-panel p a{font-weight:500;color:#162937;text-decoration:none}.soliloquy-panel p a:hover{text-decoration:underline}.soliloquy-panel ul{list-style:disc;list-style-position:inside}.soliloquy-panel ul.list-of-links{list-style:none}.soliloquy-panel ul.list-of-links a{color:#7cc048;text-decoration:none}.soliloquy-panel ul.list-of-links a:hover{text-decoration:underline}.soliloquy-panel .feature-photo-column{padding-left:30px;display:inherit}.soliloquy-panel .feature-photo-column img{width:100%;margin:auto}.soliloquy-panel .feature-photo-column.photo-left{padding-left:0;padding-right:30px}.soliloquy-panel.mini-panel .feature-photo-column{padding-top:10px}.soliloquy-panel.mini-panel .feature-photo-column a{margin:0 auto;height:auto}.soliloquy-panel.mini-panel .feature-photo-column img{width:auto;margin:0 auto}.about-wrap .soliloquybadge{position:absolute;top:0;right:0}.index_page_soliloquycredits code,.index_page_soliloquyabout code{background-color:#e0e0e0;color:#636363;font-size:1em}@media only screen and (max-width: 500px){.about-wrap .soliloquybadge{position:relative;margin:10px auto;top:auto;right:auto}}body.post-type-soliloquy div.wrap.about-wrap{padding-top:20px;padding-left:20px}body.post-type-soliloquy div.wrap.about-wrap h1.welcome-header{background:none;font-size:42px;font-weight:400;padding-left:0}body.post-type-soliloquy div.wrap.about-wrap h1.welcome-header,body.post-type-soliloquy div.wrap.about-wrap .about-text{text-indent:10px}body.post-type-soliloquy div.wrap.about-wrap .nav-tab{padding:15px}.soliloquy_page_soliloquy-lite-welcome .soliloquyheadline-feature{margin-bottom:2em;margin-top:3em;padding:2em 3em}.soliloquy_page_soliloquy-lite-welcome .soliloquyheadline{margin:0 auto;width:45em}.soliloquy_page_soliloquy-lite-welcome .soliloquyheadline span.dashicons{background-color:#f1f1f1;color:#d84800;clear:left;font-size:100px;float:left;height:100px;line-height:100px;margin:0 15px 15px 0;text-align:center;width:100px}.soliloquy_page_soliloquy-support .headline-title{font-size:2.2em;font-weight:300;line-height:2;margin:1em 0 1em;text-align:center}.soliloquy_page_soliloquy-lite-welcome .soliloquyheadline-feature p{font-size:1.15em;margin:1.15em auto .6em 0}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section,.soliloquy_page_soliloquy-lite-get-started .soliloquy-features-section,.soliloquy_page_soliloquy-lite-get-started .soliloquy-recent-section,.soliloquy_page_soliloquy-support .soliloquy-features-section,.soliloquy_page_soliloquy-support .soliloquy-recent-section{border-bottom:1px solid #ccc;clear:both;margin-bottom:20px;margin-top:10px;overflow:hidden;padding-bottom:2em;word-break:break-word}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section p,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section p,.soliloquy_page_soliloquy-lite-get-started .soliloquy-features-section p,.soliloquy_page_soliloquy-lite-get-started .soliloquy-recent-section p,.soliloquy_page_soliloquy-support .soliloquy-features-section p,.soliloquy_page_soliloquy-support .soliloquy-recent-section p{font-size:14px;line-height:1.5}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section img,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section img,.soliloquy_page_soliloquy-lite-get-started .soliloquy-features-section img,.soliloquy_page_soliloquy-lite-get-started .soliloquy-recent-section img,.soliloquy_page_soliloquy-support .soliloquy-features-section img,.soliloquy_page_soliloquy-support .soliloquy-recent-section img{margin-bottom:20px}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section code,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section code,.soliloquy_page_soliloquy-lite-get-started .soliloquy-features-section code,.soliloquy_page_soliloquy-lite-get-started .soliloquy-recent-section code,.soliloquy_page_soliloquy-support .soliloquy-features-section code,.soliloquy_page_soliloquy-support .soliloquy-recent-section code{word-break:break-all}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section span.dashicons,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section span.dashicons,.soliloquy_page_soliloquy-lite-get-started .soliloquy-features-section span.dashicons,.soliloquy_page_soliloquy-lite-get-started .soliloquy-recent-section span.dashicons,.soliloquy_page_soliloquy-support .soliloquy-features-section span.dashicons,.soliloquy_page_soliloquy-support .soliloquy-recent-section span.dashicons{background-color:#fff;border-radius:50%;clear:left;color:#d84800;font-size:50px;float:left;height:80px;line-height:80px;margin:0 15px 15px 0;text-align:center;width:80px}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section img.icon,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section img.icon,.soliloquy_page_soliloquy-lite-get-started .soliloquy-features-section img.icon,.soliloquy_page_soliloquy-lite-get-started .soliloquy-recent-section img.icon,.soliloquy_page_soliloquy-support .soliloquy-features-section img.icon,.soliloquy_page_soliloquy-support .soliloquy-recent-section img.icon{background-color:transparent;clear:left;font-size:50px;float:left;line-height:80px;margin:0 15px 15px 0;text-align:center;width:80px}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section h4.feature-title,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section h4.feature-title,.soliloquy_page_soliloquy-lite-get-started .soliloquy-features-section h4.feature-title,.soliloquy_page_soliloquy-lite-get-started .soliloquy-recent-section h4.feature-title,.soliloquy_page_soliloquy-support .soliloquy-features-section h4.feature-title,.soliloquy_page_soliloquy-support .soliloquy-recent-section h4.feature-title{color:#7cc048;font-size:1.35em;margin-bottom:.6em;margin-top:0}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section span.badge,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section span.badge,.soliloquy_page_soliloquy-lite-get-started .soliloquy-features-section span.badge,.soliloquy_page_soliloquy-lite-get-started .soliloquy-recent-section span.badge,.soliloquy_page_soliloquy-support .soliloquy-features-section span.badge,.soliloquy_page_soliloquy-support .soliloquy-recent-section span.badge{font-size:.7em;font-weight:500;display:inline-block;text-transform:uppercase;background-color:#7cc048;color:#fff;padding:3px 5px;border-radius:15%}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .headline-title,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section .headline-title,.soliloquy_page_soliloquy-lite-get-started .soliloquy-features-section .headline-title,.soliloquy_page_soliloquy-lite-get-started .soliloquy-recent-section .headline-title,.soliloquy_page_soliloquy-support .soliloquy-features-section .headline-title,.soliloquy_page_soliloquy-support .soliloquy-recent-section .headline-title{font-size:25px;font-weight:400;line-height:1.5;margin:1em auto 2em;text-align:center;color:#000}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .soliloquy-feature-with-images,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section .soliloquy-feature-with-images,.soliloquy_page_soliloquy-lite-get-started .soliloquy-features-section .soliloquy-feature-with-images,.soliloquy_page_soliloquy-lite-get-started .soliloquy-recent-section .soliloquy-feature-with-images,.soliloquy_page_soliloquy-support .soliloquy-features-section .soliloquy-feature-with-images,.soliloquy_page_soliloquy-support .soliloquy-recent-section .soliloquy-feature-with-images{border-bottom:1px solid #ccc;margin-bottom:5em;padding-bottom:2em}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .soliloquy-feature code,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section .soliloquy-feature code,.soliloquy_page_soliloquy-lite-get-started .soliloquy-features-section .soliloquy-feature code,.soliloquy_page_soliloquy-lite-get-started .soliloquy-recent-section .soliloquy-feature code,.soliloquy_page_soliloquy-support .soliloquy-features-section .soliloquy-feature code,.soliloquy_page_soliloquy-support .soliloquy-recent-section .soliloquy-feature code{font-size:.95em;line-height:1.5}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .soliloquy-big-icon,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section .soliloquy-big-icon,.soliloquy_page_soliloquy-lite-get-started .soliloquy-features-section .soliloquy-big-icon,.soliloquy_page_soliloquy-lite-get-started .soliloquy-recent-section .soliloquy-big-icon,.soliloquy_page_soliloquy-support .soliloquy-features-section .soliloquy-big-icon,.soliloquy_page_soliloquy-support .soliloquy-recent-section .soliloquy-big-icon{font-size:80px;float:left;margin-left:10px}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .soliloquy-big-icon.soliloquy-leaf,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section .soliloquy-big-icon.soliloquy-leaf,.soliloquy_page_soliloquy-lite-get-started .soliloquy-features-section .soliloquy-big-icon.soliloquy-leaf,.soliloquy_page_soliloquy-lite-get-started .soliloquy-recent-section .soliloquy-big-icon.soliloquy-leaf,.soliloquy_page_soliloquy-support .soliloquy-features-section .soliloquy-big-icon.soliloquy-leaf,.soliloquy_page_soliloquy-support .soliloquy-recent-section .soliloquy-big-icon.soliloquy-leaf{color:#7cc048}.soliloquy_page_soliloquy-lite-welcome .soliloquy-feature .feature-title,.soliloquy_page_soliloquy-lite-get-started .soliloquy-feature .feature-title,.soliloquy_page_soliloquy-support .soliloquy-feature .feature-title{font-size:1em;line-height:1.5;margin-bottom:0;margin-top:0}body.soliloquy_page_soliloquy-lite-welcome-addons #wpfooter{position:relative}body.soliloquy_page_soliloquy-lite-welcome-addons .soliloquy-addons-area.unlicensed h3{display:none}body.soliloquy_page_soliloquy-lite-welcome-addons #soliloquy-addons .soliloquy-addons-area .soliloquy-addon p{font-size:18px}.soliloquy-lite-updates-panel{display:block;background-color:#f5f5f5;border-radius:6px}.soliloquy-pro-updates-panel{display:block}.soliloquy-pro-updates-features{display:flex}.soliloquy-pro-updates-features .soliloquy-feature{display:flex;flex-direction:column;align-self:center;padding:20px;text-align:center}.soliloquy-pro-updates-features .soliloquy-feature img{max-height:125px;width:auto;align-self:center;margin-bottom:15px}.upgrade-wrap{text-align:center;margin-bottom:60px}.upgrade-wrap h2{font-size:32px;line-height:28px;font-weight:400;margin:35px auto 10px auto}.upgrade-wrap h4.headline-subtitle{font-size:24px;line-height:24px;font-weight:200;margin:20px auto;display:block}.upgrade-wrap a.button{font-size:21px;height:50px;line-height:48px}.upgrade-list{display:grid;grid-template-columns:repeat(2, 1fr);column-gap:30px;border-radius:6px;padding:60px;background:#f5f5f5}.upgrade-list .interior{background:#fff;border-radius:6px;padding:30px;text-align:center;margin-bottom:30px;height:354px;display:flex;justify-content:center;align-items:center}.upgrade-list .interior a{text-decoration:none;display:flex;flex-direction:column;align-items:center;vertical-align:middle}.upgrade-list .interior a img{max-height:125px}.upgrade-list .interior a h5{font-size:16px;color:#000}.upgrade-list .interior a p{font-size:18px;color:#000}.upgrade-list li{width:50%;margin:20px auto;float:left;display:block;font-size:16px;line-height:18px;min-height:315px}.upgrade-list li h5{font-size:18px;line-height:24px;margin:20px auto;font-weight:700}.upgrade-list li h5 a{text-decoration:none;color:#000}.upgrade-list li p{margin:0}.upgrade-video{position:relative;padding-bottom:56.25%;padding-top:25px;height:0}.upgrade-video iframe{position:absolute;top:0;left:0;width:100%;height:100%}body.soliloquy_page_soliloquy-lite-litevspro .soliloquy-get-started-main{width:100%}#soliloquy-admin-litevspro .centered{text-align:center}#soliloquy-admin-litevspro h1{font-size:34px;line-height:32px}#soliloquy-admin-litevspro p.centered{font-size:18px;line-height:21px}#soliloquy-admin-litevspro.wrap{margin-left:0;margin-right:0}#soliloquy-admin-litevspro .litevspro-table-header{background:#fff}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section{margin:0 0 30px 0;padding:30px;line-height:2}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section.no-bottom{margin-bottom:0;padding-bottom:0}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section.litevspro-table-header{padding-bottom:30px}#soliloquy-admin-litevspro table tr td{border-bottom:1px solid #ddd;border-right:1px solid #ddd;padding:30px;vertical-align:top;width:33%}#soliloquy-admin-litevspro table tr td p{font-size:18px;line-height:24px}#soliloquy-admin-litevspro table tr td:last-child{border-right:0}#soliloquy-admin-litevspro table{border-bottom:0}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero{border-top:0;font-size:16px;line-height:18px}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero p{text-align:center;font-size:16px;line-height:18px}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero .call-to-action{font-size:21px;font-weight:500;text-align:center}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero .call-to-action .button{font-size:28px;height:60px;line-height:58px}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-hero span.soliloquy-deal{font-weight:500;color:green}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table{padding-left:0;padding-right:0;padding-top:0}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table{width:100%;background:#f5f5f5}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table tr td:first-child{border-left:1px solid #ddd;border-bottom-color:#ddd;border-bottom-style:solid;border-bottom-width:1px}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table tr td:last-child{border-right:1px solid #ddd;border-bottom-color:#ddd;border-bottom-style:solid;border-bottom-width:1px;background-color:#f3f9fe}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table tr:first-child td{border-top:1px solid #ddd}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table th{text-align:left;font-weight:600;font-size:18px;padding-left:30px;padding-bottom:20px;padding-top:20px;border-top:1px solid #ddd;border-right:1px solid #ddd;vertical-align:middle}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table th:last-child{border-right:1px solid #ddd}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table th:first-child{border-left:1px solid #ddd}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table td{background:#fff}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table td strong{display:block}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table p{background-repeat:no-repeat;background-size:15px auto;background-position:0 6px;margin:0}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table p.features-full{padding-left:30px;background-position:0 4px;background-image:url(../images/icons/litevspro/tick.svg)}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table p.features-none{padding-left:30px;background-position:6px 6px;background-image:url(../images/icons/litevspro/cross_red.svg);background-size:15px auto}#soliloquy-admin-litevspro .soliloquy-admin-litevspro-section-table table p.features-partial{padding-left:30px;background-position:6px 6px;background-size:15px auto;background-image:url(../images/icons/litevspro/cross.svg)}.soliloquy-get-started-section{margin-top:20px}.soliloquy-get-started-section .centered{text-align:center}.soliloquy-get-started-section .soliloquy-admin-get-started-panel{background:url("../images/soliloquy-pattern.jpg") repeat repeat;color:#fff;border-radius:6px}.soliloquy-get-started-section .soliloquy-admin-get-started-panel h3{padding:0;margin:0 0 10px 0}.soliloquy-get-started-section .soliloquy-admin-get-started-panel h2,.soliloquy-get-started-section .soliloquy-admin-get-started-panel h3{color:#fff}.soliloquy-get-started-section .soliloquy-admin-get-started-panel p{font-size:18px;line-height:1.5;margin:30px 0}.soliloquy-get-started-section .soliloquy-admin-get-started-panel .button.soliloquy-button{font-size:21px;height:50px;line-height:48px}.soliloquy-get-started-section .soliloquy-admin-get-started-panel .feature-photo-column{padding-left:30px;max-width:360px;min-width:350px;display:inherit}.soliloquy-get-started-section .soliloquy-admin-get-started-panel .feature-photo-column img{width:100%;margin:auto}.soliloquy-get-started-section .soliloquy-admin-get-started-panel .feature-photo-column.photo-left{padding-left:0;padding-right:30px}.soliloquy-get-started-section .soliloquy-admin-upgrade-panel{background-color:#f5f5f5;border-radius:6px;box-shadow:0 2px 5px rgba(0,0,0,.08);overflow:hidden;font-size:18px}.soliloquy-get-started-section .soliloquy-admin-upgrade-panel p{font-size:18px}.soliloquy-get-started-section .soliloquy-admin-upgrade-panel .feature-photo-column{position:relative;margin-right:-120px;margin-bottom:-540px;width:100%}.soliloquy-get-started-section .soliloquy-admin-upgrade-panel .feature-photo-column img{position:absolute;right:-30px;top:0}.soliloquy-get-started-section .soliloquy-admin-upgrade-panel .button.soliloquy-button{font-size:21px;height:50px;line-height:48px}.soliloquy-get-started-section .soliloquy-admin-docs-panel{background-color:#f5f5f5;border-radius:6px;box-shadow:0 2px 5px rgba(0,0,0,.08);overflow:hidden;font-size:18px}.soliloquy-get-started-section .soliloquy-admin-docs-panel .soliloquy-admin-header{display:flex;vertical-align:middle;align-items:center;justify-content:space-between;width:100%}.soliloquy-get-started-section .soliloquy-admin-get-started-banner{display:flex;background:#000;color:#fff;padding:10px 25px;margin-bottom:60px;border-radius:6px;align-items:center}.soliloquy-get-started-section .soliloquy-admin-get-started-banner .banner-text{display:block;margin:0;padding:10px 0 0 0;text-align:center;font-size:1.5em;text-align:left}.soliloquy-get-started-section .soliloquy-admin-get-started-banner .banner-text h3{font-size:1.5em;line-height:1.3em;margin:5px auto;color:#fff}.soliloquy-get-started-section .soliloquy-admin-get-started-banner .banner-button{margin-left:auto;max-width:33%;height:100%;vertical-align:middle}.soliloquy-get-started-section .soliloquy-admin-get-started-banner .banner-button a{height:auto;padding:15px 25px;font-size:1.45em;display:block;margin:auto}.soliloquy-get-started-section .soliloquy-help-section .button.soliloquy-button{height:40px;line-height:40px;font-size:18px}.soliloquy-admin-3-col{display:flex;flex-wrap:wrap;margin-bottom:0px}.soliloquy-admin-3-col .soliloquy-cols{flex-grow:1;width:26%;text-align:center;background-color:#f5f5f5;border-radius:6px;padding:3%;margin-left:20px}.soliloquy-admin-3-col .soliloquy-cols:first-child{margin-left:0}.soliloquy-admin-3-col .soliloquy-cols h3{font-size:24px}.soliloquy-admin-3-col .soliloquy-cols p{max-width:80%;font-size:16px;margin:20px auto}.lionsher-partners-wrap{display:grid;grid-template-columns:repeat(3, 1fr);column-gap:30px;padding-top:30px}.lionsher-partners{background-color:#f5f5f5;margin-bottom:30px;border-radius:6px}.lionsher-partners-main{display:flex;flex-direction:row;padding:30px 30px 20px;flex-grow:1;text-align:left;height:120px}.lionsher-partners-main h3{padding-top:0;margin-top:0}.lionsher-partners-main img{padding-right:15px}.lionsher-partners-footer{display:flex;text-align:left;align-items:center;vertical-align:middle;padding:20px;border-top:1px solid #e6e6e6}.lionsher-partners-footer .lionsher-partners-install-wrap{margin-left:auto}.lionsher-partners-footer .spinner{display:none}.lionsher-partners-footer .lionsher-partners-button{font-size:16px !important;height:40px !important;line-height:38px !important;border-radius:6px !important}.lionsher-partner-status{font-weight:bold}.lionsher-partner-status span{font-weight:normal}@media screen and (max-width: 800px){.upgrade-list{grid-template-columns:repeat(1, 1fr)}.lionsher-partners-wrap{grid-template-columns:repeat(1, 1fr)}.soliloquy-admin-3-col,.soliloquy-pro-updates-features{display:block}.feature-photo-column img{display:none}.soliloquy-panel{display:block}.soliloquy-get-started-section .soliloquy-admin-upgrade-panel{display:flex;overflow:visible}.soliloquy-admin-3-col .soliloquy-cols{width:100%;margin:0;margin-bottom:30px}.soliloquy-welcome-wrap .soliloquy-welcome-sidebar{float:none;width:100%;padding:0}.soliloquy-welcome-wrap .soliloquy-welcome-main{float:none;width:100%}.soliloquy-welcome-wrap .soliloquy-title h1.welcome-header{line-height:42px}.soliloquy-welcome-wrap .soliloquy-title h1.welcome-header,.soliloquy-welcome-wrap .soliloquy-title .about-text{text-indent:0}.soliloquyheadline-feature,.soliloquy-features-section,.soliloquy-recent-section{margin-left:20px;margin-right:20px}.soliloquy_page_soliloquy-lite-welcome .soliloquyheadline-feature{padding:0}.soliloquy_page_soliloquy-lite-welcome .soliloquyheadline{margin:0;width:97%}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section{clear:both;margin-bottom:0;margin-top:2em;padding-bottom:2em}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .soliloquy-feature-with-images{margin-bottom:2em}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .headline-title{margin-bottom:1em}.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section .changelog-title{font-size:1.25em;line-height:1.5;margin-bottom:.5em;margin-top:.5em}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .feature-title,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section .title{font-size:1.25em;line-height:1.25;margin-top:.6em;text-align:left}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .soliloquy-feature,.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .soliloquy-feature-imaged{clear:both;float:left;margin-bottom:1em;margin-top:1em;margin-right:0;padding-right:1em;width:100%}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .soliloquy-feature-imaged p{font-size:1em}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .soliloquy-feature span{margin-top:.33em}.soliloquy_page_soliloquy-lite-welcome .soliloquy-feature.opposite .feature-title,.soliloquy_page_soliloquy-lite-welcome .soliloquy-feature.opposite p{float:none}.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section{clear:both;margin-bottom:2em;margin-top:2em}.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent{margin-bottom:0}.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section .changelog-title{margin-bottom:.5em}.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent .title{font-size:1em}.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent p{margin-bottom:1em}.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section .two-col>div,.soliloquy_page_soliloquy-lite-welcome .soliloquy-recent-section .three-col .col{margin-top:0;padding-bottom:.5em;width:100%}.soliloquy_page_soliloquy-lite-welcome .soliloquythree-column .soliloquycolumn{width:100%}}@media screen and (max-width: 1400px){.lionsher-partners-wrap{grid-template-columns:repeat(2, 1fr)}.soliloquy-admin-get-started-banner.middle .banner-text,.soliloquy-admin-get-started-banner.bottom .banner-text{padding:10px 0 0 10px}.soliloquy-admin-get-started-banner.middle .banner-text h3,.soliloquy-admin-get-started-banner.bottom .banner-text h3{line-height:1.3em}.soliloquy-admin-get-started-banner.middle .banner-button,.soliloquy-admin-get-started-banner.bottom .banner-button{margin-right:10px}.soliloquy-admin-get-started-banner.middle .banner-button a,.soliloquy-admin-get-started-banner.bottom .banner-button a{font-size:16px}}@media screen and (max-width: 1120px){.soliloquy-admin-get-started-banner.middle .banner-button a,.soliloquy-admin-get-started-banner.bottom .banner-button a{font-size:14px}}@media screen and (max-width: 360px){.soliloquy_page_soliloquy-lite-welcome .soliloquyheadline{text-align:center}.soliloquy_page_soliloquy-lite-welcome .soliloquyheadline span.dashicons{clear:none;font-size:80px;float:none;height:80px;line-height:80px;margin:0 auto;width:80px}.soliloquy_page_soliloquy-lite-welcome .soliloquyheadline-feature .headline-title,.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .headline-title{font-size:1.5em;line-height:1.5;text-align:left}.soliloquy_page_soliloquy-lite-welcome .soliloquyheadline-feature .headline-title{margin:1em 0 0}.soliloquy_page_soliloquy-lite-welcome .soliloquyheadline-feature p{margin:1.15em auto .6em 0;text-align:left;width:auto}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .soliloquy-feature{text-align:center}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section span.dashicons{float:none}.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section .feature-title,.soliloquy_page_soliloquy-lite-welcome .soliloquy-features-section p{margin-left:0;text-align:left}}
assets/images/fc.png CHANGED
Binary file
assets/images/features/carousel-addon.png ADDED
Binary file
assets/images/features/dynamic-addon.png ADDED
Binary file
assets/images/features/featured-content-addon.png ADDED
Binary file
assets/images/features/instagram-addon.png ADDED
Binary file
assets/images/features/pdf-addon.png ADDED
Binary file
assets/images/features/schedule-addon.png ADDED
Binary file
assets/images/features/thumbnails-addon.png ADDED
Binary file
assets/images/features/woo-addon.png ADDED
Binary file
assets/images/html.png CHANGED
Binary file
assets/images/instagram.png CHANGED
Binary file
assets/images/logo-color.png CHANGED
Binary file
assets/images/partners/allinone.png ADDED
Binary file
assets/images/partners/envira.png ADDED
Binary file
assets/images/partners/forminator.gif ADDED
Binary file
assets/images/partners/google-apps.png ADDED
Binary file
assets/images/partners/google-drive.png ADDED
Binary file
assets/images/partners/imagify.svg ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
3
+ <!-- Generator: Sketch 3.4.4 (17249) - http://www.bohemiancoding.com/sketch -->
4
+ <title>WordPress Plugin </title>
5
+ <desc>Created with Sketch.</desc>
6
+ <defs></defs>
7
+ <g id="Marketing-stuff" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
8
+ <g id="WordPress-Plugin-" sketch:type="MSArtboardGroup">
9
+ <g id="Group-+-Group" sketch:type="MSLayerGroup" transform="translate(-1.000000, 0.000000)">
10
+ <g id="Group" transform="translate(0.626812, 0.000000)" sketch:type="MSShapeGroup">
11
+ <rect id="Rectangle-7" fill="#2E3243" x="0.373188406" y="0" width="256" height="256"></rect>
12
+ <path d="M81.9742306,158.483219 L54.1635666,109.918063 L64.2449323,103.97844 L61.2900493,96.6412582 L43.3869343,106.948252 L79.0193476,169.139602 L106.830012,153.06768 C107.003828,150.272563 107.351462,147.477446 107.699095,144.68233 L101.094062,147.302752 L81.9742306,158.483219 L81.9742306,158.483219 Z" id="Shape" fill="#FFFFFF"></path>
13
+ <path d="M70.6761484,87.033044 L79.0193476,83.8885375 L77.1073644,76.3766609 L60.7685993,82.6656738 L85.798197,148.875005 L108.741995,140.140265 C109.611078,136.821063 111.001611,133.501862 112.565961,130.357356 L90.3174299,138.917401 L70.6761484,87.033044 L70.6761484,87.033044 Z" id="Shape" fill="#FFFFFF"></path>
14
+ <path d="M114.477944,64.6721089 L103.179862,112.189096 L137.943192,105.026609 C140.028992,103.97844 142.114792,103.104966 144.374408,102.406187 C146.981658,101.532713 149.588908,100.833934 152.196157,100.309849 C155.324857,99.7857647 158.627373,99.4363751 161.92989,99.4363751 L162.103706,99.4363751 L164.710956,99.4363751 L172.185072,97.8641219 L150.284174,78.2983037 L141.593342,89.1293816 L114.477944,64.6721089 L114.477944,64.6721089 Z" id="Shape" fill="#FFFFFF"></path>
15
+ <ellipse id="Oval" fill="#FFFFFF" cx="156.367757" cy="64.1480245" rx="6.77884936" ry="6.81309739"></ellipse>
16
+ <path d="M116.563744,123.544258 C118.997177,119.875667 121.95206,116.731161 125.08076,113.761349 L98.4868124,119.176888 L87.1887302,64.3227193 L167.665839,47.7267129 L178.790105,102.056797 C181.744988,103.104966 184.699871,104.32783 187.480937,105.725388 L173.749422,38.4678882 L78.1502643,58.0337064 L92.5770463,128.435713 L116.563744,123.544258 L116.563744,123.544258 Z" id="Shape" fill="#FFFFFF"></path>
17
+ <ellipse id="Oval" fill="#00A8DC" cx="161.40844" cy="155.164018" rx="4.17159961" ry="4.19267532"></ellipse>
18
+ <path d="M162.277523,104.502524 C134.988309,104.502524 112.739778,126.863459 112.739778,154.465239 C112.739778,160.579557 113.782678,166.344485 115.868477,171.760024 L132.554876,171.760024 C130.121443,167.392654 128.557093,162.5012 128.035643,157.260356 L122.647327,157.260356 C121.082977,157.260356 120.040077,156.037492 120.040077,154.465239 C120.040077,152.892985 121.256794,151.670122 122.647327,151.670122 L128.035643,151.670122 C128.557093,144.158245 131.511976,137.519843 136.031209,132.104304 L132.207243,128.261018 C131.164343,127.212849 131.164343,125.465901 132.207243,124.417732 C133.250142,123.369563 134.988309,123.369563 136.031209,124.417732 L139.855175,128.261018 C145.243491,123.718953 151.848524,120.749141 159.32264,120.225057 L159.32264,114.634823 C159.32264,113.06257 160.539357,111.839706 161.92989,111.839706 C163.49424,111.839706 164.710956,113.06257 164.710956,114.634823 L164.710956,120.225057 C171.489806,120.749141 177.747205,123.369563 182.961704,127.387544 L185.916588,125.291206 C187.480937,124.068343 189.566737,124.243037 190.95727,125.640596 C192.347804,127.038154 192.52162,129.309187 191.304904,130.706745 L169.230189,162.15181 C165.232406,166.169791 158.975007,166.344485 154.803407,162.5012 C154.62959,162.326505 154.62959,162.326505 154.455774,162.15181 C150.457991,158.13383 150.457991,151.320732 154.455774,147.302752 C154.977224,146.778667 155.324857,146.429278 155.846307,146.079888 L155.846307,146.079888 L177.747205,131.056135 C173.227972,127.911628 167.839656,126.16468 161.92989,126.16468 C146.286391,126.16468 133.771592,138.917401 133.771592,154.639933 C133.771592,161.103641 135.857392,167.043265 139.507542,171.760024 L184.526054,171.760024 C188.176204,167.043265 190.262004,161.103641 190.262004,154.639933 C190.262004,150.971343 189.566737,147.652141 188.350021,144.507635 L192.347804,138.917401 C194.433603,142.935382 195.65032,147.302752 195.997953,152.019511 L201.386269,152.019511 C202.950619,152.019511 203.993519,153.242375 203.993519,154.814628 C203.993519,156.386881 202.776803,157.609745 201.386269,157.609745 L195.997953,157.609745 C195.65032,162.850589 194.08597,167.742044 191.47872,172.109414 L208.686569,172.109414 C210.598552,166.693875 211.815268,160.928946 211.815268,154.814628 C211.641452,126.863459 189.566737,104.502524 162.277523,104.502524 L162.277523,104.502524 Z" id="Shape" fill="#00A8DC"></path>
19
+ </g>
20
+ <g id="Group" transform="translate(43.000000, 194.489583)" fill="#FFFFFF" sketch:type="MSShapeGroup">
21
+ <path d="M3.77407837,0.466865079 L0.644354843,0.466865079 C0.30683564,0.466865079 0,0.776137858 0,1.11633791 L0,23.5386144 C0,23.8788144 0.30683564,24.1880872 0.644354843,24.1880872 L3.77407837,24.1880872 C4.11159757,24.1880872 4.41843321,23.8788144 4.41843321,23.5386144 L4.41843321,1.11633791 C4.38774965,0.776137858 4.08091401,0.466865079 3.77407837,0.466865079 L3.77407837,0.466865079 Z" id="Shape"></path>
22
+ <path d="M38.0093602,0.611552716 C37.9786767,0.333207215 37.7638917,0.11671627 37.395689,0.11671627 L36.8433848,0.11671627 C36.5365492,0.11671627 36.3831313,0.240425381 36.2603971,0.456916326 L28.8656582,16.446319 L28.7736075,16.446319 L21.3788686,0.456916326 C21.2868179,0.240425381 21.0720329,0.11671627 20.7958808,0.11671627 L20.2435767,0.11671627 C19.8753739,0.11671627 19.660589,0.364134493 19.6299054,0.611552716 L15.6410421,23.3740292 C15.579675,23.8379384 15.855827,24.1472112 16.2853969,24.1472112 L19.3230698,24.1472112 C19.6299054,24.1472112 19.9060575,23.8688657 19.9367411,23.6523747 L21.9004891,10.8175544 L21.9925398,10.8175544 L27.9451513,24.1162839 C28.0372019,24.3327748 28.2213033,24.4874112 28.528139,24.4874112 L29.1418102,24.4874112 C29.4486459,24.4874112 29.6327473,24.3327748 29.724798,24.1162839 L35.6160422,10.8175544 L35.7080929,10.8175544 L37.7025246,23.6523747 C37.7638917,23.899793 38.0400438,24.1472112 38.3468794,24.1472112 L41.4152358,24.1472112 C41.8448057,24.1472112 42.1209578,23.8379384 42.0289071,23.3740292 L38.0093602,0.611552716 L38.0093602,0.611552716 Z" id="Shape"></path>
23
+ <path d="M62.0639694,0.487843604 C61.9719187,0.271352659 61.8185008,0.11671627 61.4809816,0.11671627 L61.1434624,0.11671627 C60.8366268,0.11671627 60.683209,0.271352659 60.5604747,0.487843604 L50.0973794,23.2812474 C49.8825945,23.7142293 50.1587465,24.1472112 50.6803671,24.1472112 L53.5953057,24.1472112 C54.1476098,24.1472112 54.4237619,23.8070111 54.5771797,23.4668111 L56.2340922,19.8173923 L66.2983012,19.8173923 L67.9552136,23.4668111 C68.2006821,23.9307202 68.4154671,24.1472112 68.9370877,24.1472112 L71.8520263,24.1472112 C72.3429633,24.1472112 72.6191154,23.7142293 72.435014,23.2812474 L62.0639694,0.487843604 L62.0639694,0.487843604 Z M57.9216882,16.0442644 L61.2048296,8.59079041 L61.2968803,8.59079041 L64.6413887,16.0442644 L57.9216882,16.0442644 L57.9216882,16.0442644 Z" id="Shape"></path>
24
+ <path d="M100.514948,12.3090566 L94.0713998,12.3090566 C93.7031971,12.3090566 93.427045,12.5874021 93.427045,12.9585294 L93.427045,15.6182753 C93.427045,15.9584754 93.7031971,16.2368209 94.0713998,16.2368209 L96.7715535,16.2368209 L96.7715535,19.1130577 C96.0965151,19.3914032 94.6543875,19.9480942 92.7826901,19.9480942 C88.5483583,19.9480942 85.2345334,16.3914573 85.2345334,12.1853475 C85.2345334,7.94831041 88.5483583,4.3298189 92.7520066,4.3298189 C94.5930204,4.3298189 96.3726671,5.01021901 97.8147946,6.30916469 C98.1216303,6.58751019 98.4284659,6.58751019 98.6739344,6.30916469 L100.760417,4.11332796 C101.036569,3.83498246 101.005885,3.43292784 100.729733,3.15458234 C98.4591495,1.17523656 95.5442109,1.77635684e-15 92.5372216,1.77635684e-15 C85.8482047,1.77635684e-15 80.478581,5.44320091 80.478581,12.2162748 C80.478581,18.9893486 85.8482047,24.3397677 92.5372216,24.3397677 C97.4159083,24.3397677 100.883151,22.143931 100.883151,22.143931 C101.005885,22.0511491 101.159303,21.8655855 101.159303,21.58724 L101.159303,12.9276021 C101.097936,12.6183294 100.852467,12.3090566 100.514948,12.3090566 L100.514948,12.3090566 Z" id="Shape"></path>
25
+ <path d="M116.444092,0.466865079 L113.314368,0.466865079 C112.976849,0.466865079 112.670013,0.776137858 112.670013,1.11633791 L112.670013,23.5386144 C112.670013,23.8788144 112.976849,24.1880872 113.314368,24.1880872 L116.444092,24.1880872 C116.781611,24.1880872 117.088447,23.8788144 117.088447,23.5386144 L117.088447,1.11633791 C117.088447,0.776137858 116.781611,0.466865079 116.444092,0.466865079 L116.444092,0.466865079 Z" id="Shape"></path>
26
+ <path d="M144.252919,0.466865079 L130.56805,0.466865079 C130.199847,0.466865079 129.923695,0.776137858 129.923695,1.11633791 L129.923695,23.5386144 C129.923695,23.8788144 130.199847,24.1880872 130.56805,24.1880872 L133.66709,24.1880872 C134.004609,24.1880872 134.311444,23.8788144 134.311444,23.5386144 L134.311444,14.9717584 L142.596007,14.9717584 C142.933526,14.9717584 143.240362,14.6624856 143.240362,14.3222856 L143.240362,11.5388306 C143.240362,11.1986305 142.933526,10.8893577 142.596007,10.8893577 L134.311444,10.8893577 L134.311444,4.51833848 L144.252919,4.51833848 C144.621122,4.51833848 144.897274,4.2090657 144.897274,3.86886565 L144.897274,1.08541064 C144.897274,0.776137858 144.651805,0.466865079 144.252919,0.466865079 L144.252919,0.466865079 Z" id="Shape"></path>
27
+ <path d="M172.362315,0.466865079 L168.895072,0.466865079 C168.61892,0.466865079 168.465502,0.621501469 168.342768,0.776137858 L162.973144,8.56981188 L157.60352,0.776137858 C157.51147,0.652428747 157.327368,0.466865079 157.051216,0.466865079 L153.614657,0.466865079 C153.062353,0.466865079 152.816884,1.02355608 153.062353,1.45653797 L160.733244,12.7759217 L160.733244,23.5386144 C160.733244,23.8788144 161.009396,24.1880872 161.377599,24.1880872 L164.476639,24.1880872 C164.814158,24.1880872 165.120994,23.8788144 165.120994,23.5386144 L165.120994,12.7140671 L172.883935,1.42561069 C173.160087,0.992628803 172.883935,0.466865079 172.362315,0.466865079 L172.362315,0.466865079 Z" id="Shape"></path>
28
+ </g>
29
+ </g>
30
+ </g>
31
+ </g>
32
+ </svg>
assets/images/partners/pdf-embedder.png ADDED
Binary file
assets/images/partners/shortpixel.png ADDED
Binary file
assets/images/partners/smush.gif ADDED
Binary file
assets/images/partners/soliloquy.png ADDED
Binary file
assets/images/partners/sugar-calendar.png ADDED
Binary file
assets/images/partners/the-events-calendar.gif ADDED
Binary file
assets/images/soliloquy-admin.png ADDED
Binary file
assets/images/soliloquy-logo.png CHANGED
Binary file
assets/images/video.png CHANGED
Binary file
assets/images/vimeo.png CHANGED
Binary file
assets/images/wistia.png CHANGED
Binary file
assets/images/woo.png CHANGED
Binary file
assets/images/youtube.png CHANGED
Binary file
assets/js/addons.js CHANGED
@@ -1,432 +1,432 @@
1
- /* global soliloquy_addons, ajaxurl */
2
- /* exported e */
3
- /*jshint unused:false*/
4
- /* ==========================================================
5
- * settings.js
6
- * https://soliloquywp.com/
7
- * ==========================================================
8
- * Copyright 2014 Thomas Griffin.
9
- *
10
- * Licensed under the GPL License, Version 2.0 or later (the "License");
11
- * you may not use this file except in compliance with the License.
12
- * You may obtain a copy of the License at
13
- *
14
- * http://www.gnu.org/licenses/gpl-2.0.html
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- * ========================================================== */
22
- // jshint ignore:line
23
- ;(function($, window, document, soliloquy_addons) {
24
-
25
- //DOM Ready
26
- $(function() {
27
-
28
- //Create the Select boxes
29
- $('.soliloquy-chosen').each(function() {
30
-
31
- $(this).chosen({
32
- disable_search: true
33
- });
34
-
35
- });
36
-
37
- //Sort Filter for addons
38
- $('#soliloquy-addon-filter').on('change', function() {
39
-
40
- var $select = $(this),
41
- $value = $select.val(),
42
- $container = $('#soliloquy-addons-area'),
43
- container_data = $container.data('soliloquy-filter'),
44
- $addon = $('#soliloquy-addons-area .soliloquy-addon');
45
-
46
- //Make sure the addons are visible.
47
- $addon.show();
48
-
49
- switch ($value) {
50
-
51
- case 'asc':
52
-
53
- $addon.sort(function(a, b) {
54
-
55
- return $(a).data('addon-title').localeCompare($(b).data('addon-title'));
56
-
57
- }).each(function(_, addon) {
58
-
59
- $(addon).removeClass('last');
60
-
61
- $container.append(addon).hide().fadeIn(100);
62
-
63
- });
64
-
65
- $("#soliloquy-addons-area .soliloquy-addon:nth-child(3n)").addClass('last');
66
-
67
- break;
68
- case 'desc':
69
-
70
- $addon.sort(function(a, b) {
71
-
72
- return $(b).data('addon-title').localeCompare($(a).data('addon-title'));
73
-
74
- }).each(function(_, addon) {
75
-
76
- $(addon).removeClass('last');
77
- $container.append(addon).hide().fadeIn(100);
78
-
79
- });
80
-
81
- $("#soliloquy-addons-area .soliloquy-addon:nth-child(3n)").addClass('last');
82
-
83
- break;
84
- case 'active':
85
-
86
- $addon.hide().filter('[data-addon-status="active"]').show();
87
-
88
- $addon.removeClass('last');
89
-
90
- $('#soliloquy-addons-area .soliloquy-addon:visible').each(function(i) {
91
-
92
- if ((i + 1) % 3 === 0) {
93
-
94
- $(this).addClass('last');
95
- }
96
-
97
- });
98
-
99
- break;
100
- case 'inactive':
101
-
102
- $addon.hide().filter('[data-addon-status="inactive"]').show();
103
- $addon.removeClass('last');
104
-
105
- $('#soliloquy-addons-area .soliloquy-addon:visible').each(function(i) {
106
-
107
- if ((i + 1) % 3 === 0) {
108
- $(this).addClass('last');
109
- }
110
- });
111
-
112
- break;
113
- case 'installed':
114
- var i = 0;
115
- $addon.hide().filter('[data-addon-status="not_installed"]').show();
116
- $addon.removeClass('last');
117
- $('#soliloquy-addons-area .soliloquy-addon:visible').each(function(i) {
118
- if ((i + 1) % 3 === 0) {
119
- $(this).addClass('last');
120
- }
121
- });
122
- break;
123
-
124
- }
125
-
126
- });
127
-
128
- // Re-enable install button if user clicks on it, needs creds but tries to install another addon instead.
129
- $('#soliloquy-addons-area').on('click.refreshInstallAddon', '.soliloquy-addon-action-button', function(e) {
130
-
131
- e.preventDefault();
132
-
133
- var $el = $(this),
134
- buttons = $('#soliloquy-addons-area').find('.soliloquy-addon-action-button');
135
-
136
- $.each(buttons, function(i, element) {
137
-
138
- if ( $el === element ) {
139
-
140
- return true;
141
-
142
- }
143
-
144
- soliloquyAddonRefresh(element);
145
-
146
- });
147
- });
148
-
149
- // Process Addon activations for those currently installed but not yet active.
150
- $('#soliloquy-addons-area').on('click.activateAddon', '.soliloquy-activate-addon', function(e) {
151
-
152
- e.preventDefault();
153
-
154
- var $button = $(this),
155
- plugin = $button.attr('rel'),
156
- $el = $button.parent().parent(),
157
- $message = $button.parent().parent().find('.addon-status').children('span');
158
-
159
- // Remove any leftover error messages, output an icon and get the plugin basename that needs to be activated.
160
- $('.soliloquy-addon-error').remove();
161
-
162
- $button.text(soliloquy_addons.activating);
163
- $button.next().css({
164
- 'display': 'inline-block',
165
- 'margin-top': '0px'
166
- });
167
-
168
- // Process the Ajax to perform the activation.
169
- var opts = {
170
- url: ajaxurl,
171
- type: 'post',
172
- async: true,
173
- cache: false,
174
- dataType: 'json',
175
- data: {
176
- action: 'soliloquy_activate_addon',
177
- nonce: soliloquy_addons.activate_nonce,
178
- plugin: plugin
179
- },
180
- success: function(response) {
181
- // If there is a WP Error instance, output it here and quit the script.
182
- if (response && true !== response) {
183
- $el.slideDown('normal', function() {
184
- $(this)
185
- .after('<div class="soliloquy-addon-error"><strong>' + response.error + '</strong></div>');
186
- $button.next()
187
- .hide();
188
- $('.soliloquy-addon-error')
189
- .delay(3000)
190
- .slideUp();
191
- });
192
- return;
193
- }
194
- // The Ajax request was successful, so let's update the output.
195
- $button.text(soliloquy_addons.deactivate).removeClass('soliloquy-activate-addon').addClass('soliloquy-deactivate-addon');
196
- $message.text(soliloquy_addons.active);
197
- $el.removeClass('soliloquy-addon-inactive').addClass('soliloquy-addon-active');
198
- $button.next().hide();
199
- },
200
- error: function(xhr, textStatus, e) {
201
- $button.next()
202
- .hide();
203
- return;
204
- }
205
- };
206
- $.ajax(opts);
207
- });
208
-
209
- // Process Addon deactivations for those currently active.
210
- $('#soliloquy-addons-area').on('click.deactivateAddon', '.soliloquy-deactivate-addon', function(e) {
211
-
212
- e.preventDefault();
213
-
214
- var $button = $(this),
215
- plugin = $button.attr('rel'),
216
- $el = $button.parent().parent(),
217
- $message = $button.parent().parent().find('.addon-status').children('span');
218
-
219
- // Remove any leftover error messages, output an icon and get the plugin basename that needs to be activated.
220
- $('.soliloquy-addon-error').remove();
221
-
222
- $button.text(soliloquy_addons.deactivating);
223
- $button.next().css({
224
- 'display': 'inline-block',
225
- 'margin-top': '0px'
226
- });
227
-
228
- // Process the Ajax to perform the activation.
229
- var opts = {
230
- url: ajaxurl,
231
- type: 'post',
232
- async: true,
233
- cache: false,
234
- dataType: 'json',
235
- data: {
236
- action: 'soliloquy_deactivate_addon',
237
- nonce: soliloquy_addons.deactivate_nonce,
238
- plugin: plugin
239
- },
240
- success: function(response) {
241
- // If there is a WP Error instance, output it here and quit the script.
242
- if (response && true !== response) {
243
-
244
- $el.slideDown('normal', function() {
245
- $(this).after('<div class="soliloquy-addon-error"><strong>' + response.error + '</strong></div>');
246
- $button.next().hide();
247
- $('.soliloquy-addon-error').delay(3000).slideUp();
248
- });
249
-
250
- return;
251
- }
252
-
253
- // The Ajax request was successful, so let's update the output.
254
- $button.text(soliloquy_addons.activate).removeClass('soliloquy-deactivate-addon').addClass('soliloquy-activate-addon');
255
- $message.text(soliloquy_addons.inactive);
256
- $el.removeClass('soliloquy-addon-active').addClass('soliloquy-addon-inactive');
257
- $button.next().hide();
258
- },
259
- error: function(xhr, textStatus, e) {
260
- $button.next().hide();
261
- return;
262
- }
263
- };
264
- $.ajax(opts);
265
- });
266
-
267
- // Process Addon installations.
268
- $('#soliloquy-addons-area').on('click.installAddon', '.soliloquy-install-addon', function(e) {
269
-
270
- e.preventDefault();
271
-
272
- var $button = $(this),
273
- plugin = $button.attr('rel'),
274
- $el = $button.parent().parent(),
275
- $message = $button.parent().parent().find('.addon-status').children('span');
276
-
277
- // Remove any leftover error messages, output an icon and get the plugin basename that needs to be activated.
278
- $('.soliloquy-addon-error').remove();
279
-
280
- $button.text(soliloquy_addons.installing);
281
- $button.next().css({
282
- 'display': 'inline-block',
283
- 'margin-top': '0px'
284
- });
285
-
286
- // Process the Ajax to perform the activation.
287
- var opts = {
288
- url: ajaxurl,
289
- type: 'post',
290
- async: true,
291
- cache: false,
292
- dataType: 'json',
293
- data: {
294
- action: 'soliloquy_install_addon',
295
- nonce: soliloquy_addons.install_nonce,
296
- plugin: plugin
297
- },
298
- success: function(response) {
299
- // If there is a WP Error instance, output it here and quit the script.
300
- if (response.error) {
301
- $el.slideDown('normal', function() {
302
- $button.parent().parent().after('<div class="soliloquy-addon-error"><strong>' + response.error + '</strong></div>');
303
- $button.text(soliloquy_addons.install);
304
- $button.next().hide();
305
- $('.soliloquy-addon-error').delay(4000)
306
- .slideUp();
307
- });
308
- return;
309
- }
310
-
311
- // If we need more credentials, output the form sent back to us.
312
- if (response.form) {
313
- // Display the form to gather the users credentials.
314
- $el.slideDown('normal', function() {
315
- $(this).after('<div class="soliloquy-addon-error">' + response.form + '</div>');
316
- $button.next().hide();
317
- });
318
-
319
- // Add a disabled attribute the install button if the creds are needed.
320
- $button.attr('disabled', true);
321
-
322
- $('#soliloquy-addons-area').on('click.installCredsAddon', '#upgrade', function(e) {
323
- // Prevent the default action, let the user know we are attempting to install again and go with it.
324
- e.preventDefault();
325
- $button.next().hide();
326
- $(this)
327
- .val(soliloquy_addons.installing);
328
- $(this)
329
- .next()
330
- .css({
331
- 'display': 'inline-block',
332
- 'margin-top': '0px'
333
- });
334
-
335
- // Now let's make another Ajax request once the user has submitted their credentials.
336
- var hostname = $(this).parent().parent().find('#hostname').val(),
337
- username = $(this).parent().parent().find('#username').val(),
338
- password = $(this).parent().parent().find('#password').val(),
339
- proceed = $(this),
340
- connect = $(this).parent().parent().parent().parent();
341
- var cred_opts = {
342
- url: ajaxurl,
343
- type: 'post',
344
- async: true,
345
- cache: false,
346
- dataType: 'json',
347
- data: {
348
- action: 'soliloquy_install_addon',
349
- nonce: soliloquy_addons.install_nonce,
350
- plugin: plugin,
351
- hostname: hostname,
352
- username: username,
353
- password: password
354
- },
355
- success: function(response) {
356
- // If there is a WP Error instance, output it here and quit the script.
357
- if (response.error) {
358
- $el.slideDown('normal', function() {
359
- $button.parent().parent().after('<div class="soliloquy-addon-error"><strong>' + response.error + '</strong></div>');
360
- $button.text(soliloquy_addons.install);
361
- $button.next().hide();
362
- $('.soliloquy-addon-error').delay(4000).slideUp();
363
- });
364
-
365
- return;
366
- }
367
-
368
- if (response.form) {
369
- $button.next().hide();
370
- $('.soliloquy-inline-error').remove();
371
- $(proceed)
372
- .val(soliloquy_addons.proceed);
373
- $(proceed)
374
- .after('<span class="soliloquy-inline-error">' + soliloquy_addons.connect_error + '</span>');
375
- return;
376
- }
377
-
378
- // The Ajax request was successful, so let's update the output.
379
- $(connect)
380
- .remove();
381
- $button.show();
382
- $button.text(soliloquy_addons.activate).removeClass('soliloquy-install-addon').addClass('soliloquy-activate-addon');
383
- $button.attr('rel', response.plugin);
384
- $button.removeAttr('disabled');
385
- $message.text(soliloquy_addons.inactive);
386
- $el.removeClass('soliloquy-addon-not-installed').addClass('soliloquy-addon-inactive');
387
- $button.next().hide();
388
- },
389
- error: function(xhr, textStatus, e) {
390
- $button.next().hide();
391
- return;
392
- }
393
- };
394
- $.ajax(cred_opts);
395
- });
396
-
397
- // No need to move further if we need to enter our creds.
398
- return;
399
- }
400
-
401
- // The Ajax request was successful, so let's update the output.
402
- $button.text(soliloquy_addons.activate).removeClass('soliloquy-install-addon').addClass('soliloquy-activate-addon');
403
- $button.attr('rel', response.plugin);
404
- $message.text(soliloquy_addons.inactive);
405
- $el.removeClass('soliloquy-addon-not-installed').addClass('soliloquy-addon-inactive');
406
- $button.next().hide();
407
- },
408
-
409
- error: function(xhr, textStatus, e) {
410
- $button.next()
411
- .hide();
412
- return;
413
- }
414
- };
415
- $.ajax(opts);
416
- });
417
-
418
- // Function to clear any disabled buttons and extra text if the user needs to add creds but instead tries to install a different addon.
419
- function soliloquyAddonRefresh(element) {
420
- if ($(element).attr('disabled')){
421
- $(element)
422
- .removeAttr('disabled');
423
- }
424
- if ( $(element).parent().parent().hasClass('soliloquy-addon-not-installed') ){
425
-
426
- $(element).text(soliloquy_addons.install);
427
-
428
- }
429
- }
430
- });
431
-
432
  })(jQuery, window, document, soliloquy_addons);
1
+ /* global soliloquy_addons, ajaxurl */
2
+ /* exported e */
3
+ /*jshint unused:false*/
4
+ /* ==========================================================
5
+ * settings.js
6
+ * https://soliloquywp.com/
7
+ * ==========================================================
8
+ * Copyright 2014 Soliloquy Team.
9
+ *
10
+ * Licensed under the GPL License, Version 2.0 or later (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * http://www.gnu.org/licenses/gpl-2.0.html
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ * ========================================================== */
22
+ // jshint ignore:line
23
+ ; (function ($, window, document, soliloquy_addons) {
24
+
25
+ //DOM Ready
26
+ $(function () {
27
+
28
+ //Create the Select boxes
29
+ $('.soliloquy-chosen').each(function () {
30
+
31
+ $(this).chosen({
32
+ disable_search: true
33
+ });
34
+
35
+ });
36
+
37
+ //Sort Filter for addons
38
+ $('#soliloquy-addon-filter').on('change', function () {
39
+
40
+ var $select = $(this),
41
+ $value = $select.val(),
42
+ $container = $('#soliloquy-addons-area'),
43
+ container_data = $container.data('soliloquy-filter'),
44
+ $addon = $('#soliloquy-addons-area .soliloquy-addon');
45
+
46
+ //Make sure the addons are visible.
47
+ $addon.show();
48
+
49
+ switch ($value) {
50
+
51
+ case 'asc':
52
+
53
+ $addon.sort(function (a, b) {
54
+
55
+ return $(a).data('addon-title').localeCompare($(b).data('addon-title'));
56
+
57
+ }).each(function (_, addon) {
58
+
59
+ $(addon).removeClass('last');
60
+
61
+ $container.append(addon).hide().fadeIn(100);
62
+
63
+ });
64
+
65
+ $("#soliloquy-addons-area .soliloquy-addon:nth-child(3n)").addClass('last');
66
+
67
+ break;
68
+ case 'desc':
69
+
70
+ $addon.sort(function (a, b) {
71
+
72
+ return $(b).data('addon-title').localeCompare($(a).data('addon-title'));
73
+
74
+ }).each(function (_, addon) {
75
+
76
+ $(addon).removeClass('last');
77
+ $container.append(addon).hide().fadeIn(100);
78
+
79
+ });
80
+
81
+ $("#soliloquy-addons-area .soliloquy-addon:nth-child(3n)").addClass('last');
82
+
83
+ break;
84
+ case 'active':
85
+
86
+ $addon.hide().filter('[data-addon-status="active"]').show();
87
+
88
+ $addon.removeClass('last');
89
+
90
+ $('#soliloquy-addons-area .soliloquy-addon:visible').each(function (i) {
91
+
92
+ if ((i + 1) % 3 === 0) {
93
+
94
+ $(this).addClass('last');
95
+ }
96
+
97
+ });
98
+
99
+ break;
100
+ case 'inactive':
101
+
102
+ $addon.hide().filter('[data-addon-status="inactive"]').show();
103
+ $addon.removeClass('last');
104
+
105
+ $('#soliloquy-addons-area .soliloquy-addon:visible').each(function (i) {
106
+
107
+ if ((i + 1) % 3 === 0) {
108
+ $(this).addClass('last');
109
+ }
110
+ });
111
+
112
+ break;
113
+ case 'installed':
114
+ var i = 0;
115
+ $addon.hide().filter('[data-addon-status="not_installed"]').show();
116
+ $addon.removeClass('last');
117
+ $('#soliloquy-addons-area .soliloquy-addon:visible').each(function (i) {
118
+ if ((i + 1) % 3 === 0) {
119
+ $(this).addClass('last');
120
+ }
121
+ });
122
+ break;
123
+
124
+ }
125
+
126
+ });
127
+
128
+ // Re-enable install button if user clicks on it, needs creds but tries to install another addon instead.
129
+ $('#soliloquy-addons-area').on('click.refreshInstallAddon', '.soliloquy-addon-action-button', function (e) {
130
+
131
+ e.preventDefault();
132
+
133
+ var $el = $(this),
134
+ buttons = $('#soliloquy-addons-area').find('.soliloquy-addon-action-button');
135
+
136
+ $.each(buttons, function (i, element) {
137
+
138
+ if ($el === element) {
139
+
140
+ return true;
141
+
142
+ }
143
+
144
+ soliloquyAddonRefresh(element);
145
+
146
+ });
147
+ });
148
+
149
+ // Process Addon activations for those currently installed but not yet active.
150
+ $('#soliloquy-addons-area').on('click.activateAddon', '.soliloquy-activate-addon', function (e) {
151
+
152
+ e.preventDefault();
153
+
154
+ var $button = $(this),
155
+ plugin = $button.attr('rel'),
156
+ $el = $button.parent().parent(),
157
+ $message = $button.parent().parent().find('.addon-status').children('span');
158
+
159
+ // Remove any leftover error messages, output an icon and get the plugin basename that needs to be activated.
160
+ $('.soliloquy-addon-error').remove();
161
+
162
+ $button.text(soliloquy_addons.activating);
163
+ $button.next().css({
164
+ 'display': 'inline-block',
165
+ 'margin-top': '0px'
166
+ });
167
+
168
+ // Process the Ajax to perform the activation.
169
+ var opts = {
170
+ url: ajaxurl,
171
+ type: 'post',
172
+ async: true,
173
+ cache: false,
174
+ dataType: 'json',
175
+ data: {
176
+ action: 'soliloquy_activate_addon',
177
+ nonce: soliloquy_addons.activate_nonce,
178
+ plugin: plugin
179
+ },
180
+ success: function (response) {
181
+ // If there is a WP Error instance, output it here and quit the script.
182
+ if (response && true !== response) {
183
+ $el.slideDown('normal', function () {
184
+ $(this)
185
+ .after('<div class="soliloquy-addon-error"><strong>' + response.error + '</strong></div>');
186
+ $button.next()
187
+ .hide();
188
+ $('.soliloquy-addon-error')
189
+ .delay(3000)
190
+ .slideUp();
191
+ });
192
+ return;
193
+ }
194
+ // The Ajax request was successful, so let's update the output.
195
+ $button.text(soliloquy_addons.deactivate).removeClass('soliloquy-activate-addon').addClass('soliloquy-deactivate-addon');
196
+ $message.text(soliloquy_addons.active);
197
+ $el.removeClass('soliloquy-addon-inactive').addClass('soliloquy-addon-active');
198
+ $button.next().hide();
199
+ },
200
+ error: function (xhr, textStatus, e) {
201
+ $button.next()
202
+ .hide();
203
+ return;
204
+ }
205
+ };
206
+ $.ajax(opts);
207
+ });
208
+
209
+ // Process Addon deactivations for those currently active.
210
+ $('#soliloquy-addons-area').on('click.deactivateAddon', '.soliloquy-deactivate-addon', function (e) {
211
+
212
+ e.preventDefault();
213
+
214
+ var $button = $(this),
215
+ plugin = $button.attr('rel'),
216
+ $el = $button.parent().parent(),
217
+ $message = $button.parent().parent().find('.addon-status').children('span');
218
+
219
+ // Remove any leftover error messages, output an icon and get the plugin basename that needs to be activated.
220
+ $('.soliloquy-addon-error').remove();
221
+
222
+ $button.text(soliloquy_addons.deactivating);
223
+ $button.next().css({
224
+ 'display': 'inline-block',
225
+ 'margin-top': '0px'
226
+ });
227
+
228
+ // Process the Ajax to perform the activation.
229
+ var opts = {
230
+ url: ajaxurl,
231
+ type: 'post',
232
+ async: true,
233
+ cache: false,
234
+ dataType: 'json',
235
+ data: {
236
+ action: 'soliloquy_deactivate_addon',
237
+ nonce: soliloquy_addons.deactivate_nonce,
238
+ plugin: plugin
239
+ },
240
+ success: function (response) {
241
+ // If there is a WP Error instance, output it here and quit the script.
242
+ if (response && true !== response) {
243
+
244
+ $el.slideDown('normal', function () {
245
+ $(this).after('<div class="soliloquy-addon-error"><strong>' + response.error + '</strong></div>');
246
+ $button.next().hide();
247
+ $('.soliloquy-addon-error').delay(3000).slideUp();
248
+ });
249
+
250
+ return;
251
+ }
252
+
253
+ // The Ajax request was successful, so let's update the output.
254
+ $button.text(soliloquy_addons.activate).removeClass('soliloquy-deactivate-addon').addClass('soliloquy-activate-addon');
255
+ $message.text(soliloquy_addons.inactive);
256
+ $el.removeClass('soliloquy-addon-active').addClass('soliloquy-addon-inactive');
257
+ $button.next().hide();
258
+ },
259
+ error: function (xhr, textStatus, e) {
260
+ $button.next().hide();
261
+ return;
262
+ }
263
+ };
264
+ $.ajax(opts);
265
+ });
266
+
267
+ // Process Addon installations.
268
+ $('#soliloquy-addons-area').on('click.installAddon', '.soliloquy-install-addon', function (e) {
269
+
270
+ e.preventDefault();
271
+
272
+ var $button = $(this),
273
+ plugin = $button.attr('rel'),
274
+ $el = $button.parent().parent(),
275
+ $message = $button.parent().parent().find('.addon-status').children('span');
276
+
277
+ // Remove any leftover error messages, output an icon and get the plugin basename that needs to be activated.
278
+ $('.soliloquy-addon-error').remove();
279
+
280
+ $button.text(soliloquy_addons.installing);
281
+ $button.next().css({
282
+ 'display': 'inline-block',
283
+ 'margin-top': '0px'
284
+ });
285
+
286
+ // Process the Ajax to perform the activation.
287
+ var opts = {
288
+ url: ajaxurl,
289
+ type: 'post',
290
+ async: true,
291
+ cache: false,
292
+ dataType: 'json',
293
+ data: {
294
+ action: 'soliloquy_install_addon',
295
+ nonce: soliloquy_addons.install_nonce,
296
+ plugin: plugin
297
+ },
298
+ success: function (response) {
299
+ // If there is a WP Error instance, output it here and quit the script.
300
+ if (response.error) {
301
+ $el.slideDown('normal', function () {
302
+ $button.parent().parent().after('<div class="soliloquy-addon-error"><strong>' + response.error + '</strong></div>');
303
+ $button.text(soliloquy_addons.install);
304
+ $button.next().hide();
305
+ $('.soliloquy-addon-error').delay(4000)
306
+ .slideUp();
307
+ });
308
+ return;
309
+ }
310
+
311
+ // If we need more credentials, output the form sent back to us.
312
+ if (response.form) {
313
+ // Display the form to gather the users credentials.
314
+ $el.slideDown('normal', function () {
315
+ $(this).after('<div class="soliloquy-addon-error">' + response.form + '</div>');
316
+ $button.next().hide();
317
+ });
318
+
319
+ // Add a disabled attribute the install button if the creds are needed.
320
+ $button.attr('disabled', true);
321
+
322
+ $('#soliloquy-addons-area').on('click.installCredsAddon', '#upgrade', function (e) {
323
+ // Prevent the default action, let the user know we are attempting to install again and go with it.
324
+ e.preventDefault();
325
+ $button.next().hide();
326
+ $(this)
327
+ .val(soliloquy_addons.installing);
328
+ $(this)
329
+ .next()
330
+ .css({
331
+ 'display': 'inline-block',
332
+ 'margin-top': '0px'
333
+ });
334
+
335
+ // Now let's make another Ajax request once the user has submitted their credentials.
336
+ var hostname = $(this).parent().parent().find('#hostname').val(),
337
+ username = $(this).parent().parent().find('#username').val(),
338
+ password = $(this).parent().parent().find('#password').val(),
339
+ proceed = $(this),
340
+ connect = $(this).parent().parent().parent().parent();
341
+ var cred_opts = {
342
+ url: ajaxurl,
343
+ type: 'post',
344
+ async: true,
345
+ cache: false,
346
+ dataType: 'json',
347
+ data: {
348
+ action: 'soliloquy_install_addon',
349
+ nonce: soliloquy_addons.install_nonce,
350
+ plugin: plugin,
351
+ hostname: hostname,
352
+ username: username,
353
+ password: password
354
+ },
355
+ success: function (response) {
356
+ // If there is a WP Error instance, output it here and quit the script.
357
+ if (response.error) {
358
+ $el.slideDown('normal', function () {
359
+ $button.parent().parent().after('<div class="soliloquy-addon-error"><strong>' + response.error + '</strong></div>');
360
+ $button.text(soliloquy_addons.install);
361
+ $button.next().hide();
362
+ $('.soliloquy-addon-error').delay(4000).slideUp();
363
+ });
364
+
365
+ return;
366
+ }
367
+
368
+ if (response.form) {
369
+ $button.next().hide();
370
+ $('.soliloquy-inline-error').remove();
371
+ $(proceed)
372
+ .val(soliloquy_addons.proceed);
373
+ $(proceed)
374
+ .after('<span class="soliloquy-inline-error">' + soliloquy_addons.connect_error + '</span>');
375
+ return;
376
+ }
377
+
378
+ // The Ajax request was successful, so let's update the output.
379
+ $(connect)
380
+ .remove();
381
+ $button.show();
382
+ $button.text(soliloquy_addons.activate).removeClass('soliloquy-install-addon').addClass('soliloquy-activate-addon');
383
+ $button.attr('rel', response.plugin);
384
+ $button.removeAttr('disabled');
385
+ $message.text(soliloquy_addons.inactive);
386
+ $el.removeClass('soliloquy-addon-not-installed').addClass('soliloquy-addon-inactive');
387
+ $button.next().hide();
388
+ },
389
+ error: function (xhr, textStatus, e) {
390
+ $button.next().hide();
391
+ return;
392
+ }
393
+ };
394
+ $.ajax(cred_opts);
395
+ });
396
+
397
+ // No need to move further if we need to enter our creds.
398
+ return;
399
+ }
400
+
401
+ // The Ajax request was successful, so let's update the output.
402
+ $button.text(soliloquy_addons.activate).removeClass('soliloquy-install-addon').addClass('soliloquy-activate-addon');
403
+ $button.attr('rel', response.plugin);
404
+ $message.text(soliloquy_addons.inactive);
405
+ $el.removeClass('soliloquy-addon-not-installed').addClass('soliloquy-addon-inactive');
406
+ $button.next().hide();
407
+ },
408
+
409
+ error: function (xhr, textStatus, e) {
410
+ $button.next()
411
+ .hide();
412
+ return;
413
+ }
414
+ };
415
+ $.ajax(opts);
416
+ });
417
+
418
+ // Function to clear any disabled buttons and extra text if the user needs to add creds but instead tries to install a different addon.
419
+ function soliloquyAddonRefresh(element) {
420
+ if ($(element).attr('disabled')) {
421
+ $(element)
422
+ .removeAttr('disabled');
423
+ }
424
+ if ($(element).parent().parent().hasClass('soliloquy-addon-not-installed')) {
425
+
426
+ $(element).text(soliloquy_addons.install);
427
+
428
+ }
429
+ }
430
+ });
431
+
432
  })(jQuery, window, document, soliloquy_addons);
assets/js/codemirror.js CHANGED
@@ -1,12 +1,12 @@
1
- // CodeMirror base.
2
- window.CodeMirror=(function(){var bI=/gecko\/\d/i.test(navigator.userAgent);var cf=/MSIE \d/.test(navigator.userAgent);var bF=cf&&(document.documentMode==null||document.documentMode<8);var bE=cf&&(document.documentMode==null||document.documentMode<9);var dC=/Trident\/([7-9]|\d{2,})\./.test(navigator.userAgent);var cA=cf||dC;var b8=/WebKit\//.test(navigator.userAgent);var cD=b8&&/Qt\/\d+\.\d+/.test(navigator.userAgent);var cg=/Chrome\//.test(navigator.userAgent);var d1=/Opera\//.test(navigator.userAgent);var ag=/Apple Computer/.test(navigator.vendor);var aH=/KHTML\//.test(navigator.userAgent);var bT=/Mac OS X 1\d\D([7-9]|\d\d)\D/.test(navigator.userAgent);var cc=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent);var dY=/PhantomJS/.test(navigator.userAgent);var dy=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent);var cV=dy||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent);var bq=dy||/Mac/.test(navigator.platform);var ao=/win/i.test(navigator.platform);var c8=d1&&navigator.userAgent.match(/Version\/(\d*\.\d*)/);if(c8){c8=Number(c8[1])}if(c8&&c8>=15){d1=false;b8=true}var be=bq&&(cD||d1&&(c8==null||c8<12.11));var bX=bI||(cf&&!bE);var eq=false,aD=false;function B(ew,ex){if(!(this instanceof B)){return new B(ew,ex)}this.options=ex=ex||{};for(var ey in dA){if(!ex.hasOwnProperty(ey)&&dA.hasOwnProperty(ey)){ex[ey]=dA[ey]}}by(ex);var eC=typeof ex.value=="string"?0:ex.value.first;var eB=this.display=f(ew,eC);eB.wrapper.CodeMirror=this;cR(this);if(ex.autofocus&&!cV){db(this)}this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:false,focused:false,suppressEdits:false,pasteIncoming:false,cutIncoming:false,draggingText:false,highlight:new ev()};b2(this);if(ex.lineWrapping){this.display.wrapper.className+=" CodeMirror-wrap"}var eA=ex.value;if(typeof eA=="string"){eA=new aa(ex.value,ex.mode)}b9(this,cQ)(this,eA);if(cf){setTimeout(bO(dU,this,true),20)}ee(this);var eD;try{eD=(document.activeElement==eB.input)}catch(ez){}if(eD||(ex.autofocus&&!cV)){setTimeout(bO(bS,this),20)}else{au(this)}b9(this,function(){for(var eF in aK){if(aK.propertyIsEnumerable(eF)){aK[eF](this,ex[eF],bw)}}for(var eE=0;eE<aE.length;++eE){aE[eE](this)}})()}function f(ew,ey){var ez={};var ex=ez.input=ej("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none; font-size: 4px;");if(b8){ex.style.width="1000px"}else{ex.setAttribute("wrap","off")}if(dy){ex.style.border="1px solid black"}ex.setAttribute("autocorrect","off");ex.setAttribute("autocapitalize","off");ex.setAttribute("spellcheck","false");ez.inputDiv=ej("div",[ex],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");ez.scrollbarH=ej("div",[ej("div",null,null,"height: 1px")],"CodeMirror-hscrollbar");ez.scrollbarV=ej("div",[ej("div",null,null,"width: 1px")],"CodeMirror-vscrollbar");ez.scrollbarFiller=ej("div",null,"CodeMirror-scrollbar-filler");ez.gutterFiller=ej("div",null,"CodeMirror-gutter-filler");ez.lineDiv=ej("div",null,"CodeMirror-code");ez.selectionDiv=ej("div",null,null,"position: relative; z-index: 1");ez.cursor=ej("div","\u00a0","CodeMirror-cursor");ez.otherCursor=ej("div","\u00a0","CodeMirror-cursor CodeMirror-secondarycursor");ez.measure=ej("div",null,"CodeMirror-measure");ez.lineSpace=ej("div",[ez.measure,ez.selectionDiv,ez.lineDiv,ez.cursor,ez.otherCursor],null,"position: relative; outline: none");ez.mover=ej("div",[ej("div",[ez.lineSpace],"CodeMirror-lines")],null,"position: relative");ez.sizer=ej("div",[ez.mover],"CodeMirror-sizer");ez.heightForcer=ej("div",null,null,"position: absolute; height: "+aO+"px; width: 1px;");ez.gutters=ej("div",null,"CodeMirror-gutters");ez.lineGutter=null;ez.scroller=ej("div",[ez.sizer,ez.heightForcer,ez.gutters],"CodeMirror-scroll");ez.scroller.setAttribute("tabIndex","-1");ez.wrapper=ej("div",[ez.inputDiv,ez.scrollbarH,ez.scrollbarV,ez.scrollbarFiller,ez.gutterFiller,ez.scroller],"CodeMirror");if(bF){ez.gutters.style.zIndex=-1;ez.scroller.style.paddingRight=0}if(ew.appendChild){ew.appendChild(ez.wrapper)}else{ew(ez.wrapper)}if(dy){ex.style.width="0px"}if(!b8){ez.scroller.draggable=true}if(aH){ez.inputDiv.style.height="1px";ez.inputDiv.style.position="absolute"}else{if(bF){ez.scrollbarH.style.minWidth=ez.scrollbarV.style.minWidth="18px"}}ez.viewOffset=ez.lastSizeC=0;ez.showingFrom=ez.showingTo=ey;ez.lineNumWidth=ez.lineNumInnerWidth=ez.lineNumChars=null;ez.prevInput="";ez.alignWidgets=false;ez.pollingFast=false;ez.poll=new ev();ez.cachedCharWidth=ez.cachedTextHeight=null;ez.measureLineCache=[];ez.measureLineCachePos=0;ez.inaccurateSelection=false;ez.maxLine=null;ez.maxLineLength=0;ez.maxLineChanged=false;ez.wheelDX=ez.wheelDY=ez.wheelStartX=ez.wheelStartY=null;return ez}function aW(ew){ew.doc.mode=B.getMode(ew.options,ew.doc.modeOption);cZ(ew)}function cZ(ew){ew.doc.iter(function(ex){if(ex.stateAfter){ex.stateAfter=null}if(ex.styles){ex.styles=null}});ew.doc.frontier=ew.doc.first;cU(ew,100);ew.state.modeGen++;if(ew.curOp){Q(ew)}}function dj(ew){if(ew.options.lineWrapping){ew.display.wrapper.className+=" CodeMirror-wrap";ew.display.sizer.style.minWidth=""}else{ew.display.wrapper.className=ew.display.wrapper.className.replace(" CodeMirror-wrap","");em(ew)}L(ew);Q(ew);T(ew);setTimeout(function(){dw(ew)},100)}function aJ(ew){var ey=aw(ew.display),ex=ew.options.lineWrapping;var ez=ex&&Math.max(5,ew.display.scroller.clientWidth/cy(ew.display)-3);return function(eA){if(dZ(ew.doc,eA)){return 0}else{if(ex){return(Math.ceil(eA.text.length/ez)||1)*ey}else{return ey}}}}function L(ew){var ey=ew.doc,ex=aJ(ew);ey.iter(function(ez){var eA=ex(ez);if(eA!=ez.height){eo(ez,eA)}})}function et(ew){var ey=dF[ew.options.keyMap],ex=ey.style;ew.display.wrapper.className=ew.display.wrapper.className.replace(/\s*cm-keymap-\S+/g,"")+(ex?" cm-keymap-"+ex:"")}function b2(ew){ew.display.wrapper.className=ew.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ew.options.theme.replace(/(^|\s)\s*/g," cm-s-");T(ew)}function ct(ew){cR(ew);Q(ew);setTimeout(function(){df(ew)},20)}function cR(ew){var ex=ew.display.gutters,eB=ew.options.gutters;cK(ex);for(var ey=0;ey<eB.length;++ey){var ez=eB[ey];var eA=ex.appendChild(ej("div",null,"CodeMirror-gutter "+ez));if(ez=="CodeMirror-linenumbers"){ew.display.lineGutter=eA;eA.style.width=(ew.display.lineNumWidth||1)+"px"}}ex.style.display=ey?"":"none"}function c0(eA,ey){if(ey.height==0){return 0}var ex=ey.text.length,ew,eB=ey;while(ew=dn(eB)){var ez=ew.find();eB=dJ(eA,ez.from.line);ex+=ez.from.ch-ez.to.ch}eB=ey;while(ew=c5(eB)){var ez=ew.find();ex-=eB.text.length-ez.from.ch;eB=dJ(eA,ez.to.line);ex+=eB.text.length-ez.to.ch}return ex}function em(ew){var ey=ew.display,ex=ew.doc;ey.maxLine=dJ(ex,ex.first);ey.maxLineLength=c0(ex,ey.maxLine);ey.maxLineChanged=true;ex.iter(function(eA){var ez=c0(ex,eA);if(ez>ey.maxLineLength){ey.maxLineLength=ez;ey.maxLine=eA}})}function by(ew){var ex=cl(ew.gutters,"CodeMirror-linenumbers");if(ex==-1&&ew.lineNumbers){ew.gutters=ew.gutters.concat(["CodeMirror-linenumbers"])}else{if(ex>-1&&!ew.lineNumbers){ew.gutters=ew.gutters.slice(0);ew.gutters.splice(ex,1)}}}function dw(ew){var eC=ew.display,ex=ew.doc.height;var ez=ex+a7(eC);eC.sizer.style.minHeight=eC.heightForcer.style.top=ez+"px";eC.gutters.style.height=Math.max(ez,eC.scroller.clientHeight-aO)+"px";var eA=Math.max(ez,eC.scroller.scrollHeight);var eB=eC.scroller.scrollWidth>(eC.scroller.clientWidth+1);var ey=eA>(eC.scroller.clientHeight+1);if(ey){eC.scrollbarV.style.display="block";eC.scrollbarV.style.bottom=eB?i(eC.measure)+"px":"0";eC.scrollbarV.firstChild.style.height=(eA-eC.scroller.clientHeight+eC.scrollbarV.clientHeight)+"px"}else{eC.scrollbarV.style.display="";eC.scrollbarV.firstChild.style.height="0"}if(eB){eC.scrollbarH.style.display="block";eC.scrollbarH.style.right=ey?i(eC.measure)+"px":"0";eC.scrollbarH.firstChild.style.width=(eC.scroller.scrollWidth-eC.scroller.clientWidth+eC.scrollbarH.clientWidth)+"px"}else{eC.scrollbarH.style.display="";eC.scrollbarH.firstChild.style.width="0"}if(eB&&ey){eC.scrollbarFiller.style.display="block";eC.scrollbarFiller.style.height=eC.scrollbarFiller.style.width=i(eC.measure)+"px"}else{eC.scrollbarFiller.style.display=""}if(eB&&ew.options.coverGutterNextToScrollbar&&ew.options.fixedGutter){eC.gutterFiller.style.display="block";eC.gutterFiller.style.height=i(eC.measure)+"px";eC.gutterFiller.style.width=eC.gutters.offsetWidth+"px"}else{eC.gutterFiller.style.display=""}if(bT&&i(eC.measure)===0){eC.scrollbarV.style.minWidth=eC.scrollbarH.style.minHeight=cc?"18px":"12px";eC.scrollbarV.style.pointerEvents=eC.scrollbarH.style.pointerEvents="none"}}function bp(eB,eA,ez){var ey=eB.scroller.scrollTop,ew=eB.wrapper.clientHeight;if(typeof ez=="number"){ey=ez}else{if(ez){ey=ez.top;ew=ez.bottom-ez.top}}ey=Math.floor(ey-dD(eB));var ex=Math.ceil(ey+ew);return{from:a5(eA,ey),to:a5(eA,ex)}}function df(ew){var eC=ew.display;if(!eC.alignWidgets&&(!eC.gutters.firstChild||!ew.options.fixedGutter)){return}var ez=cJ(eC)-eC.scroller.scrollLeft+ew.doc.scrollLeft;var eB=eC.gutters.offsetWidth,ey=ez+"px";for(var eD=eC.lineDiv.firstChild;eD;eD=eD.nextSibling){if(eD.alignable){for(var eA=0,ex=eD.alignable;eA<ex.length;++eA){ex[eA].style.left=ey}}}if(ew.options.fixedGutter){eC.gutters.style.left=(ez+eB)+"px"}}function cM(ew){if(!ew.options.lineNumbers){return false}var eB=ew.doc,ex=c3(ew.options,eB.first+eB.size-1),eA=ew.display;if(ex.length!=eA.lineNumChars){var eC=eA.measure.appendChild(ej("div",[ej("div",ex)],"CodeMirror-linenumber CodeMirror-gutter-elt"));var ey=eC.firstChild.offsetWidth,ez=eC.offsetWidth-ey;eA.lineGutter.style.width="";eA.lineNumInnerWidth=Math.max(ey,eA.lineGutter.offsetWidth-ez);eA.lineNumWidth=eA.lineNumInnerWidth+ez;eA.lineNumChars=eA.lineNumInnerWidth?ex.length:-1;eA.lineGutter.style.width=eA.lineNumWidth+"px";return true}return false}function c3(ew,ex){return String(ew.lineNumberFormatter(ex+ew.firstLineNumber))}function cJ(ew){return an(ew.scroller).left-an(ew.sizer).left}function cB(eB,eA,eE,eF){var eD=eB.display.showingFrom,eC=eB.display.showingTo,ez;var ew=bp(eB.display,eB.doc,eE);for(var ey=true;;ey=false){var ex=eB.display.scroller.clientWidth;if(!cj(eB,eA,ew,eF)){break}ez=true;eA=[];a2(eB);dw(eB);if(ey&&eB.options.lineWrapping&&ex!=eB.display.scroller.clientWidth){eF=true;continue}eF=false;if(eE){eE=Math.min(eB.display.scroller.scrollHeight-eB.display.scroller.clientHeight,typeof eE=="number"?eE:eE.top)}ew=bp(eB.display,eB.doc,eE);if(ew.from>=eB.display.showingFrom&&ew.to<=eB.display.showingTo){break}}if(ez){O(eB,"update",eB);if(eB.display.showingFrom!=eD||eB.display.showingTo!=eC){O(eB,"viewportChange",eB,eB.display.showingFrom,eB.display.showingTo)}}return ez}function cj(eA,eO,ex,eM){var eG=eA.display,eP=eA.doc;if(!eG.wrapper.offsetWidth){eG.showingFrom=eG.showingTo=eP.first;eG.viewOffset=0;return}if(!eM&&eO.length==0&&ex.from>eG.showingFrom&&ex.to<eG.showingTo){return}if(cM(eA)){eO=[{from:eP.first,to:eP.first+eP.size}]}var eL=eG.sizer.style.marginLeft=eG.gutters.offsetWidth+"px";eG.scrollbarH.style.left=eA.options.fixedGutter?eL:"0";var ey=Infinity;if(eA.options.lineNumbers){for(var eH=0;eH<eO.length;++eH){if(eO[eH].diff&&eO[eH].from<ey){ey=eO[eH].from}}}var ez=eP.first+eP.size;var eF=Math.max(ex.from-eA.options.viewportMargin,eP.first);var ew=Math.min(ez,ex.to+eA.options.viewportMargin);if(eG.showingFrom<eF&&eF-eG.showingFrom<20){eF=Math.max(eP.first,eG.showingFrom)}if(eG.showingTo>ew&&eG.showingTo-ew<20){ew=Math.min(ez,eG.showingTo)}if(aD){eF=bc(u(eP,dJ(eP,eF)));while(ew<ez&&dZ(eP,dJ(eP,ew))){++ew}}var eJ=[{from:Math.max(eG.showingFrom,eP.first),to:Math.min(eG.showingTo,ez)}];if(eJ[0].from>=eJ[0].to){eJ=[]}else{eJ=dT(eJ,eO)}if(aD){for(var eH=0;eH<eJ.length;++eH){var eC=eJ[eH],eK;while(eK=c5(dJ(eP,eC.to-1))){var eN=eK.find().from.line;if(eN>eC.from){eC.to=eN}else{eJ.splice(eH--,1);break}}}}var eE=0;for(var eH=0;eH<eJ.length;++eH){var eC=eJ[eH];if(eC.from<eF){eC.from=eF}if(eC.to>ew){eC.to=ew}if(eC.from>=eC.to){eJ.splice(eH--,1)}else{eE+=eC.to-eC.from}}if(!eM&&eE==ew-eF&&eF==eG.showingFrom&&ew==eG.showingTo){h(eA);return}eJ.sort(function(eR,eQ){return eR.from-eQ.from});try{var eB=document.activeElement}catch(eI){}if(eE<(ew-eF)*0.7){eG.lineDiv.style.display="none"}bG(eA,eF,ew,eJ,ey);eG.lineDiv.style.display="";if(eB&&document.activeElement!=eB&&eB.offsetHeight){eB.focus()}var eD=eF!=eG.showingFrom||ew!=eG.showingTo||eG.lastSizeC!=eG.wrapper.clientHeight;if(eD){eG.lastSizeC=eG.wrapper.clientHeight;cU(eA,400)}eG.showingFrom=eF;eG.showingTo=ew;eG.gutters.style.height="";aF(eA);h(eA);return true}function aF(eE){var eB=eE.display;var ex=eB.lineDiv.offsetTop;for(var ew=eB.lineDiv.firstChild,eF;ew;ew=ew.nextSibling){if(ew.lineObj){if(bF){var eA=ew.offsetTop+ew.offsetHeight;eF=eA-ex;ex=eA}else{var ez=an(ew);eF=ez.bottom-ez.top}var eD=ew.lineObj.height-eF;if(eF<2){eF=aw(eB)}if(eD>0.001||eD<-0.001){eo(ew.lineObj,eF);var eC=ew.lineObj.widgets;if(eC){for(var ey=0;ey<eC.length;++ey){eC[ey].height=eC[ey].node.offsetHeight}}}}}}function h(ew){var ex=ew.display.viewOffset=bb(ew,dJ(ew.doc,ew.display.showingFrom));ew.display.mover.style.top=ex+"px"}function dT(eF,eD){for(var eA=0,ey=eD.length||0;eA<ey;++eA){var eC=eD[eA],ew=[],eE=eC.diff||0;for(var ez=0,ex=eF.length;ez<ex;++ez){var eB=eF[ez];if(eC.to<=eB.from&&eC.diff){ew.push({from:eB.from+eE,to:eB.to+eE})}else{if(eC.to<=eB.from||eC.from>=eB.to){ew.push(eB)}else{if(eC.from>eB.from){ew.push({from:eB.from,to:eC.from})}if(eC.to<eB.to){ew.push({from:eC.to+eE,to:eB.to+eE})}}}}eF=ew}return eF}function dG(ew){var eA=ew.display,ez={},ey={};for(var eB=eA.gutters.firstChild,ex=0;eB;eB=eB.nextSibling,++ex){ez[ew.options.gutters[ex]]=eB.offsetLeft;ey[ew.options.gutters[ex]]=eB.offsetWidth}return{fixedPos:cJ(eA),gutterTotalWidth:eA.gutters.offsetWidth,gutterLeft:ez,gutterWidth:ey,wrapperWidth:eA.wrapper.clientWidth}}function bG(eF,eC,eD,eI,ex){var eE=dG(eF);var eB=eF.display,eH=eF.options.lineNumbers;if(!eI.length&&(!b8||!eF.display.currentWheelTarget)){cK(eB.lineDiv)}var ew=eB.lineDiv,eG=ew.firstChild;function eA(eK){var eJ=eK.nextSibling;if(b8&&bq&&eF.display.currentWheelTarget==eK){eK.style.display="none";eK.lineObj=null}else{eK.parentNode.removeChild(eK)}return eJ}var ey=eI.shift(),ez=eC;eF.doc.iter(eC,eD,function(eS){if(ey&&ey.to==ez){ey=eI.shift()}if(dZ(eF.doc,eS)){if(eS.height!=0){eo(eS,0)}if(eS.widgets&&eG&&eG.previousSibling){for(var eN=0;eN<eS.widgets.length;++eN){var eP=eS.widgets[eN];if(eP.showIfHidden){var eL=eG.previousSibling;if(/pre/i.test(eL.nodeName)){var eK=ej("div",null,null,"position: relative");eL.parentNode.replaceChild(eK,eL);eK.appendChild(eL);eL=eK}var eQ=eL.appendChild(ej("div",[eP.node],"CodeMirror-linewidget"));if(!eP.handleMouseEvents){eQ.ignoreEvents=true}a4(eP,eQ,eL,eE)}}}}else{if(ey&&ey.from<=ez&&ey.to>ez){while(eG.lineObj!=eS){eG=eA(eG)}if(eH&&ex<=ez&&eG.lineNumber){l(eG.lineNumber,c3(eF.options,ez))}eG=eG.nextSibling}else{if(eS.widgets){for(var eM=0,eR=eG,eO;eR&&eM<20;++eM,eR=eR.nextSibling){if(eR.lineObj==eS&&/div/i.test(eR.nodeName)){eO=eR;break}}}var eJ=ai(eF,eS,ez,eE,eO);if(eJ!=eO){ew.insertBefore(eJ,eG)}else{while(eG!=eO){eG=eA(eG)}eG=eG.nextSibling}eJ.lineObj=eS}}++ez});while(eG){eG=eA(eG)}}function ai(eD,eF,eG,eJ,ey){var eC=dq(eD,eF),eP=eC.pre;var eS=eF.gutterMarkers,eQ=eD.display,eE;var ex=eC.bgClass?eC.bgClass+" "+(eF.bgClass||""):eF.bgClass;if(!eD.options.lineNumbers&&!eS&&!ex&&!eF.wrapClass&&!eF.widgets){return eP}if(ey){ey.alignable=null;var eT=true,eB=0,ez=null;for(var eL=ey.firstChild,eK;eL;eL=eK){eK=eL.nextSibling;if(!/\bCodeMirror-linewidget\b/.test(eL.className)){ey.removeChild(eL)}else{for(var eR=0;eR<eF.widgets.length;++eR){var eA=eF.widgets[eR];if(eA.node==eL.firstChild){if(!eA.above&&!ez){ez=eL}a4(eA,eL,ey,eJ);++eB;break}}if(eR==eF.widgets.length){eT=false;break}}}ey.insertBefore(eP,ez);if(eT&&eB==eF.widgets.length){eE=ey;ey.className=eF.wrapClass||""}}if(!eE){eE=ej("div",null,eF.wrapClass,"position: relative");eE.appendChild(eP)}if(ex){eE.insertBefore(ej("div",null,ex+" CodeMirror-linebackground"),eE.firstChild)}if(eD.options.lineNumbers||eS){var eN=eE.insertBefore(ej("div",null,"CodeMirror-gutter-wrapper","position: absolute; left: "+(eD.options.fixedGutter?eJ.fixedPos:-eJ.gutterTotalWidth)+"px"),eP);if(eD.options.fixedGutter){(eE.alignable||(eE.alignable=[])).push(eN)}if(eD.options.lineNumbers&&(!eS||!eS["CodeMirror-linenumbers"])){eE.lineNumber=eN.appendChild(ej("div",c3(eD.options,eG),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+eJ.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+eQ.lineNumInnerWidth+"px"))}if(eS){for(var eO=0;eO<eD.options.gutters.length;++eO){var eI=eD.options.gutters[eO],eH=eS.hasOwnProperty(eI)&&eS[eI];if(eH){eN.appendChild(ej("div",[eH],"CodeMirror-gutter-elt","left: "+eJ.gutterLeft[eI]+"px; width: "+eJ.gutterWidth[eI]+"px"))}}}}if(bF){eE.style.zIndex=2}if(eF.widgets&&eE!=ey){for(var eR=0,ew=eF.widgets;eR<ew.length;++eR){var eA=ew[eR],eM=ej("div",[eA.node],"CodeMirror-linewidget");if(!eA.handleMouseEvents){eM.ignoreEvents=true}a4(eA,eM,eE,eJ);if(eA.above){eE.insertBefore(eM,eD.options.lineNumbers&&eF.height!=0?eN:eP)}else{eE.appendChild(eM)}O(eA,"redraw")}}return eE}function a4(ez,ey,ex,eA){if(ez.noHScroll){(ex.alignable||(ex.alignable=[])).push(ey);var ew=eA.wrapperWidth;ey.style.left=eA.fixedPos+"px";if(!ez.coverGutter){ew-=eA.gutterTotalWidth;ey.style.paddingLeft=eA.gutterTotalWidth+"px"}ey.style.width=ew+"px"}if(ez.coverGutter){ey.style.zIndex=5;ey.style.position="relative";if(!ez.noHScroll){ey.style.marginLeft=-eA.gutterTotalWidth+"px"}}}function a2(ew){var ez=ew.display;var eA=d8(ew.doc.sel.from,ew.doc.sel.to);if(eA||ew.options.showCursorWhenSelecting){C(ew)}else{ez.cursor.style.display=ez.otherCursor.style.display="none"}if(!eA){V(ew)}else{ez.selectionDiv.style.display="none"}if(ew.options.moveInputWithCursor){var eB=cH(ew,ew.doc.sel.head,"div");var ex=an(ez.wrapper),ey=an(ez.lineDiv);ez.inputDiv.style.top=Math.max(0,Math.min(ez.wrapper.clientHeight-10,eB.top+ey.top-ex.top))+"px";ez.inputDiv.style.left=Math.max(0,Math.min(ez.wrapper.clientWidth-10,eB.left+ey.left-ex.left))+"px"}}function C(ew){var ex=ew.display,ey=cH(ew,ew.doc.sel.head,"div");ex.cursor.style.left=ey.left+"px";ex.cursor.style.top=ey.top+"px";ex.cursor.style.height=Math.max(0,ey.bottom-ey.top)*ew.options.cursorHeight+"px";ex.cursor.style.display="";if(ey.other){ex.otherCursor.style.display="";ex.otherCursor.style.left=ey.other.left+"px";ex.otherCursor.style.top=ey.other.top+"px";ex.otherCursor.style.height=(ey.other.bottom-ey.other.top)*0.85+"px"}else{ex.otherCursor.style.display="none"}}function V(eH){var eC=eH.display,eG=eH.doc,ew=eH.doc.sel;var eA=document.createDocumentFragment();var eF=eC.lineSpace.offsetWidth,ey=av(eH.display);function eJ(eN,eM,eL,eK){if(eM<0){eM=0}eA.appendChild(ej("div",null,"CodeMirror-selected","position: absolute; left: "+eN+"px; top: "+eM+"px; width: "+(eL==null?eF-eN:eL)+"px; height: "+(eK-eM)+"px"))}function eE(eL,eN,eQ){var eM=dJ(eG,eL);var eO=eM.text.length;var eR,eK;function eP(eT,eS){return bZ(eH,K(eL,eT),"div",eM,eS)}cL(a(eM),eN||0,eQ==null?eO:eQ,function(eZ,eY,eS){var eV=eP(eZ,"left"),eW,eX,eU;if(eZ==eY){eW=eV;eX=eU=eV.left}else{eW=eP(eY-1,"right");if(eS=="rtl"){var eT=eV;eV=eW;eW=eT}eX=eV.left;eU=eW.right}if(eN==null&&eZ==0){eX=ey}if(eW.top-eV.top>3){eJ(eX,eV.top,null,eV.bottom);eX=ey;if(eV.bottom<eW.top){eJ(eX,eV.bottom,null,eW.top)}}if(eQ==null&&eY==eO){eU=eF}if(!eR||eV.top<eR.top||eV.top==eR.top&&eV.left<eR.left){eR=eV}if(!eK||eW.bottom>eK.bottom||eW.bottom==eK.bottom&&eW.right>eK.right){eK=eW}if(eX<ey+1){eX=ey}eJ(eX,eW.top,eU-eX,eW.bottom)});return{start:eR,end:eK}}if(ew.from.line==ew.to.line){eE(ew.from.line,ew.from.ch,ew.to.ch)}else{var ez=dJ(eG,ew.from.line),ex=dJ(eG,ew.to.line);var eB=u(eG,ez)==u(eG,ex);var eI=eE(ew.from.line,ew.from.ch,eB?ez.text.length:null).end;var eD=eE(ew.to.line,eB?0:null,ew.to.ch).start;if(eB){if(eI.top<eD.top-2){eJ(eI.right,eI.top,null,eI.bottom);eJ(ey,eD.top,eD.left,eD.bottom)}else{eJ(eI.right,eI.top,eD.left-eI.right,eI.bottom)}}if(eI.bottom<eD.top){eJ(ey,eI.bottom,null,eD.top)}}bf(eC.selectionDiv,eA);eC.selectionDiv.style.display=""}function k(ew){if(!ew.state.focused){return}var ey=ew.display;clearInterval(ey.blinker);var ex=true;ey.cursor.style.visibility=ey.otherCursor.style.visibility="";if(ew.options.cursorBlinkRate>0){ey.blinker=setInterval(function(){ey.cursor.style.visibility=ey.otherCursor.style.visibility=(ex=!ex)?"":"hidden"},ew.options.cursorBlinkRate)}}function cU(ew,ex){if(ew.doc.mode.startState&&ew.doc.frontier<ew.display.showingTo){ew.state.highlight.set(ex,bO(b3,ew))}}function b3(ew){var ez=ew.doc;if(ez.frontier<ez.first){ez.frontier=ez.first}if(ez.frontier>=ew.display.showingTo){return}var ex=+new Date+ew.options.workTime;var ey=bo(ez.mode,cw(ew,ez.frontier));var eB=[],eA;ez.iter(ez.frontier,Math.min(ez.first+ez.size,ew.display.showingTo+500),function(eC){if(ez.frontier>=ew.display.showingFrom){var eE=eC.styles;eC.styles=d4(ew,eC,ey,true);var eF=!eE||eE.length!=eC.styles.length;for(var eD=0;!eF&&eD<eE.length;++eD){eF=eE[eD]!=eC.styles[eD]}if(eF){if(eA&&eA.end==ez.frontier){eA.end++}else{eB.push(eA={start:ez.frontier,end:ez.frontier+1})}}eC.stateAfter=bo(ez.mode,ey)}else{cu(ew,eC.text,ey);eC.stateAfter=ez.frontier%5==0?bo(ez.mode,ey):null}++ez.frontier;if(+new Date>ex){cU(ew,ew.options.workDelay);return true}});if(eB.length){b9(ew,function(){for(var eC=0;eC<eB.length;++eC){Q(this,eB[eC].start,eB[eC].end)}})()}}function bQ(eC,ew,ez){var ex,eA,eB=eC.doc;var ey=ez?-1:ew-(eC.doc.mode.innerMode?1000:100);for(var eF=ew;eF>ey;--eF){if(eF<=eB.first){return eB.first}var eE=dJ(eB,eF-1);if(eE.stateAfter&&(!ez||eF<=eB.frontier)){return eF}var eD=bg(eE.text,null,eC.options.tabSize);if(eA==null||ex>eD){eA=eF-1;ex=eD}}return eA}function cw(ew,eC,ex){var eA=ew.doc,ez=ew.display;if(!eA.mode.startState){return true}var eB=bQ(ew,eC,ex),ey=eB>eA.first&&dJ(eA,eB-1).stateAfter;if(!ey){ey=bm(eA.mode)}else{ey=bo(eA.mode,ey)}eA.iter(eB,eC,function(eD){cu(ew,eD.text,ey);var eE=eB==eC-1||eB%5==0||eB>=ez.showingFrom&&eB<ez.showingTo;eD.stateAfter=eE?bo(eA.mode,ey):null;++eB});if(ex){eA.frontier=eB}return ey}function dD(ew){return ew.lineSpace.offsetTop}function a7(ew){return ew.mover.offsetHeight-ew.lineSpace.offsetHeight}function av(ex){var ew=bf(ex.measure,ej("pre",null,null,"text-align: left")).appendChild(ej("span","x"));return ew.offsetLeft}function cW(eD,eE,ex,eA,eB){var ez=-1;eA=eA||a8(eD,eE);if(eA.crude){var ey=eA.left+ex*eA.width;return{left:ey,right:ey+eA.width,top:eA.top,bottom:eA.bottom}}for(var eC=ex;;eC+=ez){var ew=eA[eC];if(ew){break}if(ez<0&&eC==0){ez=1}}eB=eC>ex?"left":eC<ex?"right":eB;if(eB=="left"&&ew.leftSide){ew=ew.leftSide}else{if(eB=="right"&&ew.rightSide){ew=ew.rightSide}}return{left:eC<ex?ew.right:ew.left,right:eC>ex?ew.left:ew.right,top:ew.top,bottom:ew.bottom}}function dB(ew,ex){var ez=ew.display.measureLineCache;for(var eA=0;eA<ez.length;++eA){var ey=ez[eA];if(ey.text==ex.text&&ey.markedSpans==ex.markedSpans&&ew.display.scroller.clientWidth==ey.width&&ey.classes==ex.textClass+"|"+ex.wrapClass){return ey}}}function ec(ew,ex){var ey=dB(ew,ex);if(ey){ey.text=ey.measure=ey.markedSpans=null}}function a8(ew,ex){var eB=dB(ew,ex);if(eB){return eB.measure}var eA=ci(ew,ex);var ez=ew.display.measureLineCache;var ey={text:ex.text,width:ew.display.scroller.clientWidth,markedSpans:ex.markedSpans,measure:eA,classes:ex.textClass+"|"+ex.wrapClass};if(ez.length==16){ez[++ew.display.measureLineCachePos%16]=ey}else{ez.push(ey)}return eA}function ci(eD,eF){if(!eD.options.lineWrapping&&eF.text.length>=eD.options.crudeMeasuringFrom){return ek(eD,eF)}var eL=eD.display,eB=U(eF.text.length);var eI=dq(eD,eF,eB,true).pre;if(cf&&!bF&&!eD.options.lineWrapping&&eI.childNodes.length>100){var ey=document.createDocumentFragment();var eG=10,eJ=eI.childNodes.length;for(var eN=0,eH=Math.ceil(eJ/eG);eN<eH;++eN){var eE=ej("div",null,null,"display: inline-block");for(var eM=0;eM<eG&&eJ;++eM){eE.appendChild(eI.firstChild);--eJ}ey.appendChild(eE)}eI.appendChild(ey)}bf(eL.measure,eI);var ex=an(eL.lineDiv);var ew=[],eQ=U(eF.text.length),eP=eI.offsetHeight;if(bE&&eL.measure.first!=eI){bf(eL.measure,eI)}function eO(eT){var eV=eT.top-ex.top,eX=eT.bottom-ex.top;if(eX>eP){eX=eP}if(eV<0){eV=0}for(var eS=ew.length-2;eS>=0;eS-=2){var eU=ew[eS],eW=ew[eS+1];if(eU>eX||eW<eV){continue}if(eU<=eV&&eW>=eX||eV<=eU&&eX>=eW||Math.min(eX,eW)-Math.max(eV,eU)>=(eX-eV)>>1){ew[eS]=Math.min(eV,eU);ew[eS+1]=Math.max(eX,eW);break}}if(eS<0){eS=ew.length;ew.push(eV,eX)}return{left:eT.left-ex.left,right:eT.right-ex.left,top:eS,bottom:null}}function eR(eS){eS.bottom=ew[eS.top+1];eS.top=ew[eS.top]}for(var eN=0,eA;eN<eB.length;++eN){if(eA=eB[eN]){var eK=eA,ez=null;if(/\bCodeMirror-widget\b/.test(eA.className)&&eA.getClientRects){if(eA.firstChild.nodeType==1){eK=eA.firstChild}var eC=eK.getClientRects();if(eC.length>1){ez=eQ[eN]=eO(eC[0]);ez.rightSide=eO(eC[eC.length-1])}}if(!ez){ez=eQ[eN]=eO(an(eK))}if(eA.measureRight){ez.right=an(eA.measureRight).left-ex.left}if(eA.leftSide){ez.leftSide=eO(an(eA.leftSide))}}}cK(eD.display.measure);for(var eN=0,eA;eN<eQ.length;++eN){if(eA=eQ[eN]){eR(eA);if(eA.leftSide){eR(eA.leftSide)}if(eA.rightSide){eR(eA.rightSide)}}}return eQ}function ek(ew,ex){var eB=new en(ex.text.slice(0,100),null);if(ex.textClass){eB.textClass=ex.textClass}var ez=ci(ew,eB);var eA=cW(ew,eB,0,ez,"left");var ey=cW(ew,eB,99,ez,"right");return{crude:true,top:eA.top,left:eA.left,bottom:eA.bottom,width:(ey.right-eA.left)/100}}function dg(ew,ey){var eD=false;if(ey.markedSpans){for(var ez=0;ez<ey.markedSpans;++ez){var eB=ey.markedSpans[ez];if(eB.collapsed&&(eB.to==null||eB.to==ey.text.length)){eD=true}}}var eA=!eD&&dB(ew,ey);if(eA||ey.text.length>=ew.options.crudeMeasuringFrom){return cW(ew,ey,ey.text.length,eA&&eA.measure,"right").right}var eC=dq(ew,ey,null,true).pre;var ex=eC.appendChild(aS(ew.display.measure));bf(ew.display.measure,eC);return an(ex).right-an(ew.display.lineDiv).left}function T(ew){ew.display.measureLineCache.length=ew.display.measureLineCachePos=0;ew.display.cachedCharWidth=ew.display.cachedTextHeight=null;if(!ew.options.lineWrapping){ew.display.maxLineChanged=true}ew.display.lineNumChars=null}function bN(){return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function bM(){return window.pageYOffset||(document.documentElement||document.body).scrollTop}function dp(eC,ez,eB,ex){if(ez.widgets){for(var ey=0;ey<ez.widgets.length;++ey){if(ez.widgets[ey].above){var eE=b6(ez.widgets[ey]);eB.top+=eE;eB.bottom+=eE}}}if(ex=="line"){return eB}if(!ex){ex="local"}var eA=bb(eC,ez);if(ex=="local"){eA+=dD(eC.display)}else{eA-=eC.display.viewOffset}if(ex=="page"||ex=="window"){var ew=an(eC.display.lineSpace);eA+=ew.top+(ex=="window"?0:bM());var eD=ew.left+(ex=="window"?0:bN());eB.left+=eD;eB.right+=eD}eB.top+=eA;eB.bottom+=eA;return eB}function es(ex,eA,ey){if(ey=="div"){return eA}var eC=eA.left,eB=eA.top;if(ey=="page"){eC-=bN();eB-=bM()}else{if(ey=="local"||!ey){var ez=an(ex.display.sizer);eC+=ez.left;eB+=ez.top}}var ew=an(ex.display.lineSpace);return{left:eC-ew.left,top:eB-ew.top}}function bZ(ew,eA,ez,ey,ex){if(!ey){ey=dJ(ew.doc,eA.line)}return dp(ew,ey,cW(ew,ey,eA.ch,null,ex),ez)}function cH(eF,eE,ey,eD,eB){eD=eD||dJ(eF.doc,eE.line);if(!eB){eB=a8(eF,eD)}function eA(eJ,eI){var eH=cW(eF,eD,eJ,eB,eI?"right":"left");if(eI){eH.left=eH.right}else{eH.right=eH.left}return dp(eF,eD,eH,ey)}function eG(eK,eH){var eI=eC[eH],eJ=eI.level%2;if(eK==cv(eI)&&eH&&eI.level<eC[eH-1].level){eI=eC[--eH];eK=er(eI)-(eI.level%2?0:1);eJ=true}else{if(eK==er(eI)&&eH<eC.length-1&&eI.level<eC[eH+1].level){eI=eC[++eH];eK=cv(eI)-eI.level%2;eJ=false}}if(eJ&&eK==eI.to&&eK>eI.from){return eA(eK-1)}return eA(eK,eJ)}var eC=a(eD),ew=eE.ch;if(!eC){return eA(ew)}var ex=aj(eC,ew);var ez=eG(ew,ex);if(dz!=null){ez.other=eG(ew,dz)}return ez}function ei(ew,ex,ey,eA){var ez=new K(ew,ex);ez.xRel=eA;if(ey){ez.outside=true}return ez}function ed(eD,eA,ez){var eC=eD.doc;ez+=eD.display.viewOffset;if(ez<0){return ei(eC.first,0,true,-1)}var ex=a5(eC,ez),eE=eC.first+eC.size-1;if(ex>eE){return ei(eC.first+eC.size-1,dJ(eC,eE).text.length,true,1)}if(eA<0){eA=0}for(;;){var ey=dJ(eC,ex);var eF=b7(eD,ey,ex,eA,ez);var eB=c5(ey);var ew=eB&&eB.find();if(eB&&(eF.ch>ew.from.ch||eF.ch==ew.from.ch&&eF.xRel>0)){ex=ew.to.line}else{return eF}}}function b7(eG,ey,eJ,eI,eH){var eF=eH-bb(eG,ey);var eC=false,eP=2*eG.display.wrapper.clientWidth;var eO=a8(eG,ey);function eT(eV){var eW=cH(eG,K(eJ,eV),"line",ey,eO);eC=true;if(eF>eW.bottom){return eW.left-eP}else{if(eF<eW.top){return eW.left+eP}else{eC=false}}return eW.left}var eL=a(ey),eN=ey.text.length;var eQ=bU(ey),ez=b4(ey);var eM=eT(eQ),ew=eC,ex=eT(ez),eB=eC;if(eI>ex){return ei(eJ,ez,eB,1)}for(;;){if(eL?ez==eQ||ez==q(ey,eQ,1):ez-eQ<=1){var eK=eI<eM||eI-eM<=ex-eI?eQ:ez;var eS=eI-(eK==eQ?eM:ex);while(dV(ey.text.charAt(eK))){++eK}var eE=ei(eJ,eK,eK==eQ?ew:eB,eS<0?-1:eS?1:0);return eE}var eD=Math.ceil(eN/2),eU=eQ+eD;if(eL){eU=eQ;for(var eR=0;eR<eD;++eR){eU=q(ey,eU,1)}}var eA=eT(eU);if(eA>eI){ez=eU;ex=eA;if(eB=eC){ex+=1000}eN=eD}else{eQ=eU;eM=eA;ew=eC;eN-=eD}}}var ak;function aw(ey){if(ey.cachedTextHeight!=null){return ey.cachedTextHeight}if(ak==null){ak=ej("pre");for(var ex=0;ex<49;++ex){ak.appendChild(document.createTextNode("x"));ak.appendChild(ej("br"))}ak.appendChild(document.createTextNode("x"))}bf(ey.measure,ak);var ew=ak.offsetHeight/50;if(ew>3){ey.cachedTextHeight=ew}cK(ey.measure);return ew||1}function cy(ez){if(ez.cachedCharWidth!=null){return ez.cachedCharWidth}var ew=ej("span","x");var ey=ej("pre",[ew]);bf(ez.measure,ey);var ex=ew.offsetWidth;if(ex>2){ez.cachedCharWidth=ex}return ex||10}var cO=0;function bY(ew){ew.curOp={changes:[],forceUpdate:false,updateInput:null,userSelChange:null,textChanged:null,selectionChanged:false,cursorActivity:false,updateMaxLine:false,updateScrollPos:false,id:++cO};if(!bL++){aT=[]}}function W(eK){var eE=eK.curOp,eJ=eK.doc,eF=eK.display;eK.curOp=null;if(eE.updateMaxLine){em(eK)}if(eF.maxLineChanged&&!eK.options.lineWrapping&&eF.maxLine){var ex=dg(eK,eF.maxLine);eF.sizer.style.minWidth=Math.max(0,ex+3+aO)+"px";eF.maxLineChanged=false;var eH=Math.max(0,eF.sizer.offsetLeft+eF.sizer.offsetWidth-eF.scroller.clientWidth);if(eH<eJ.scrollLeft&&!eE.updateScrollPos){a3(eK,Math.min(eF.scroller.scrollLeft,eH),true)}}var ey,eC;if(eE.updateScrollPos){ey=eE.updateScrollPos}else{if(eE.selectionChanged&&eF.scroller.clientHeight){var eI=cH(eK,eJ.sel.head);ey=A(eK,eI.left,eI.top,eI.left,eI.bottom)}}if(eE.changes.length||eE.forceUpdate||ey&&ey.scrollTop!=null){eC=cB(eK,eE.changes,ey&&ey.scrollTop,eE.forceUpdate);if(eK.display.scroller.offsetHeight){eK.doc.scrollTop=eK.display.scroller.scrollTop}}if(!eC&&eE.selectionChanged){a2(eK)}if(eE.updateScrollPos){var eG=Math.max(0,Math.min(eF.scroller.scrollHeight-eF.scroller.clientHeight,ey.scrollTop));var ez=Math.max(0,Math.min(eF.scroller.scrollWidth-eF.scroller.clientWidth,ey.scrollLeft));eF.scroller.scrollTop=eF.scrollbarV.scrollTop=eJ.scrollTop=eG;eF.scroller.scrollLeft=eF.scrollbarH.scrollLeft=eJ.scrollLeft=ez;df(eK);if(eE.scrollToPos){x(eK,d9(eK.doc,eE.scrollToPos.from),d9(eK.doc,eE.scrollToPos.to),eE.scrollToPos.margin)}}else{if(ey){ae(eK)}}if(eE.selectionChanged){k(eK)}if(eK.state.focused&&eE.updateInput){dU(eK,eE.userSelChange)}var eD=eE.maybeHiddenMarkers,ew=eE.maybeUnhiddenMarkers;if(eD){for(var eB=0;eB<eD.length;++eB){if(!eD[eB].lines.length){ah(eD[eB],"hide")}}}if(ew){for(var eB=0;eB<ew.length;++eB){if(ew[eB].lines.length){ah(ew[eB],"unhide")}}}var eA;if(!--bL){eA=aT;aT=null}if(eE.textChanged){ah(eK,"change",eK,eE.textChanged)}if(eE.cursorActivity){ah(eK,"cursorActivity",eK)}if(eA){for(var eB=0;eB<eA.length;++eB){eA[eB]()}}}function b9(ew,ex){return function(){var ez=ew||this,eA=!ez.curOp;if(eA){bY(ez)}try{var ey=ex.apply(ez,arguments)}finally{if(eA){W(ez)}}return ey}}function d3(ew){return function(){var ey=this.cm&&!this.cm.curOp,ex;if(ey){bY(this.cm)}try{ex=ew.apply(this,arguments)}finally{if(ey){W(this.cm)}}return ex}}function b1(ex,ez){var ey=!ex.curOp,ew;if(ey){bY(ex)}try{ew=ez()}finally{if(ey){W(ex)}}return ew}function Q(ew,ez,ey,ex){if(ez==null){ez=ew.doc.first}if(ey==null){ey=ew.doc.first+ew.doc.size}ew.curOp.changes.push({from:ez,to:ey,diff:ex})}function aR(ew){if(ew.display.pollingFast){return}ew.display.poll.set(ew.options.pollInterval,function(){bB(ew);if(ew.state.focused){aR(ew)}})}function w(ew){var ex=false;ew.display.pollingFast=true;function ey(){var ez=bB(ew);if(!ez&&!ex){ex=true;ew.display.poll.set(60,ey)}else{ew.display.pollingFast=false;aR(ew)}}ew.display.poll.set(20,ey)}function bB(eK){var eF=eK.display.input,eC=eK.display.prevInput,eJ=eK.doc,ew=eJ.sel;if(!eK.state.focused||aX(eF)||S(eK)||eK.options.disableInput){return false}if(eK.state.pasteIncoming&&eK.state.fakedLastChar){eF.value=eF.value.substring(0,eF.value.length-1);eK.state.fakedLastChar=false}var eL=eF.value;if(eL==eC&&d8(ew.from,ew.to)){return false}if(cA&&!bE&&eK.display.inputHasSelection===eL){dU(eK,true);return false}var ey=!eK.curOp;if(ey){bY(eK)}ew.shift=false;var eE=0,ex=Math.min(eC.length,eL.length);while(eE<ex&&eC.charCodeAt(eE)==eL.charCodeAt(eE)){++eE}var eI=ew.from,eH=ew.to;var eA=eL.slice(eE);if(eE<eC.length){eI=K(eI.line,eI.ch-(eC.length-eE))}else{if(eK.state.overwrite&&d8(eI,eH)&&!eK.state.pasteIncoming){eH=K(eH.line,Math.min(dJ(eJ,eH.line).text.length,eH.ch+eA.length))}}var eD=eK.curOp.updateInput;var eG={from:eI,to:eH,text:ay(eA),origin:eK.state.pasteIncoming?"paste":eK.state.cutIncoming?"cut":"+input"};aL(eK.doc,eG,"end");eK.curOp.updateInput=eD;O(eK,"inputRead",eK,eG);if(eA&&!eK.state.pasteIncoming&&eK.options.electricChars&&eK.options.smartIndent&&ew.head.ch<100){var ez=eK.getModeAt(ew.head).electricChars;if(ez){for(var eB=0;eB<ez.length;eB++){if(eA.indexOf(ez.charAt(eB))>-1){N(eK,ew.head.line,"smart");break}}}}if(eL.length>1000||eL.indexOf("\n")>-1){eF.value=eK.display.prevInput=""}else{eK.display.prevInput=eL}if(ey){W(eK)}eK.state.pasteIncoming=eK.state.cutIncoming=false;return true}function dU(ew,ey){var ex,ez,eB=ew.doc;if(!d8(eB.sel.from,eB.sel.to)){ew.display.prevInput="";ex=ce&&(eB.sel.to.line-eB.sel.from.line>100||(ez=ew.getSelection()).length>1000);var eA=ex?"-":ez||ew.getSelection();ew.display.input.value=eA;if(ew.state.focused){cC(ew.display.input)}if(cA&&!bE){ew.display.inputHasSelection=eA}}else{if(ey){ew.display.prevInput=ew.display.input.value="";if(cA&&!bE){ew.display.inputHasSelection=null}}}ew.display.inaccurateSelection=ex}function db(ew){if(ew.options.readOnly!="nocursor"&&(!cV||document.activeElement!=ew.display.input)){ew.display.input.focus()}}function S(ew){return ew.options.readOnly||ew.doc.cantEdit}function ee(ex){var eC=ex.display;bk(eC.scroller,"mousedown",b9(ex,c4));if(cf){bk(eC.scroller,"dblclick",b9(ex,function(eF){if(ar(ex,eF)){return}var eG=bH(ex,eF);if(!eG||j(ex,eF)||aG(ex.display,eF)){return}bV(eF);var eE=ab(dJ(ex.doc,eG.line).text,eG);eg(ex.doc,eE.from,eE.to)}))}else{bk(eC.scroller,"dblclick",function(eE){ar(ex,eE)||bV(eE)})}bk(eC.lineSpace,"selectstart",function(eE){if(!aG(eC,eE)){bV(eE)}});if(!bX){bk(eC.scroller,"contextmenu",function(eE){ad(ex,eE)})}bk(eC.scroller,"scroll",function(){if(eC.scroller.clientHeight){F(ex,eC.scroller.scrollTop);a3(ex,eC.scroller.scrollLeft,true);ah(ex,"scroll",ex)}});bk(eC.scrollbarV,"scroll",function(){if(eC.scroller.clientHeight){F(ex,eC.scrollbarV.scrollTop)}});bk(eC.scrollbarH,"scroll",function(){if(eC.scroller.clientHeight){a3(ex,eC.scrollbarH.scrollLeft)}});bk(eC.scroller,"mousewheel",function(eE){b(ex,eE)});bk(eC.scroller,"DOMMouseScroll",function(eE){b(ex,eE)});function eD(){if(ex.state.focused){setTimeout(bO(db,ex),0)}}bk(eC.scrollbarH,"mousedown",eD);bk(eC.scrollbarV,"mousedown",eD);bk(eC.wrapper,"scroll",function(){eC.wrapper.scrollTop=eC.wrapper.scrollLeft=0});var ew;function eA(){if(ew==null){ew=setTimeout(function(){ew=null;eC.cachedCharWidth=eC.cachedTextHeight=c6=null;T(ex);b1(ex,bO(Q,ex))},100)}}bk(window,"resize",eA);function ez(){for(var eE=eC.wrapper.parentNode;eE&&eE!=document.body;eE=eE.parentNode){}if(eE){setTimeout(ez,5000)}else{cT(window,"resize",eA)}}setTimeout(ez,5000);bk(eC.input,"keyup",b9(ex,function(eE){if(ar(ex,eE)||ex.options.onKeyEvent&&ex.options.onKeyEvent(ex,Y(eE))){return}if(eE.keyCode==16){ex.doc.sel.shift=false}}));bk(eC.input,"input",function(){if(cA&&!bE&&ex.display.inputHasSelection){ex.display.inputHasSelection=null}w(ex)});bk(eC.input,"keydown",b9(ex,m));bk(eC.input,"keypress",b9(ex,bP));bk(eC.input,"focus",bO(bS,ex));bk(eC.input,"blur",bO(au,ex));function ey(eE){if(ar(ex,eE)||ex.options.onDragEvent&&ex.options.onDragEvent(ex,Y(eE))){return}c2(eE)}if(ex.options.dragDrop){bk(eC.scroller,"dragstart",function(eE){I(ex,eE)});bk(eC.scroller,"dragenter",ey);bk(eC.scroller,"dragover",ey);bk(eC.scroller,"drop",b9(ex,aN))}bk(eC.scroller,"paste",function(eE){if(aG(eC,eE)){return}db(ex);w(ex)});bk(eC.input,"paste",function(){if(b8&&!ex.state.fakedLastChar&&!(new Date-ex.state.lastMiddleDown<200)){var eF=eC.input.selectionStart,eE=eC.input.selectionEnd;eC.input.value+="$";eC.input.selectionStart=eF;eC.input.selectionEnd=eE;ex.state.fakedLastChar=true}ex.state.pasteIncoming=true;w(ex)});function eB(eE){if(eC.inaccurateSelection){eC.prevInput="";eC.inaccurateSelection=false;eC.input.value=ex.getSelection();cC(eC.input)}if(eE.type=="cut"){ex.state.cutIncoming=true}}bk(eC.input,"cut",eB);bk(eC.input,"copy",eB);if(aH){bk(eC.sizer,"mouseup",function(){if(document.activeElement==eC.input){eC.input.blur()}db(ex)})}}function aG(ex,ew){for(var ey=D(ew);ey!=ex.wrapper;ey=ey.parentNode){if(!ey||ey.ignoreEvents||ey.parentNode==ex.sizer&&ey!=ex.mover){return true}}}function bH(ex,eC,ez){var eB=ex.display;if(!ez){var eA=D(eC);if(eA==eB.scrollbarH||eA==eB.scrollbarH.firstChild||eA==eB.scrollbarV||eA==eB.scrollbarV.firstChild||eA==eB.scrollbarFiller||eA==eB.gutterFiller){return null}}var ew,eD,ey=an(eB.lineSpace);try{ew=eC.clientX;eD=eC.clientY}catch(eC){return null}return ed(ex,ew-ey.left,eD-ey.top)}var cn,ch;function c4(eO){if(ar(this,eO)){return}var ez=this,eJ=ez.display,eQ=ez.doc,eH=eQ.sel;eH.shift=eO.shiftKey;if(aG(eJ,eO)){if(!b8){eJ.scroller.draggable=false;setTimeout(function(){eJ.scroller.draggable=true},100)}return}if(j(ez,eO)){return}var ey=bH(ez,eO);switch(eb(eO)){case 3:if(bX){ad.call(ez,ez,eO)}return;case 2:if(b8){ez.state.lastMiddleDown=+new Date}if(ey){eg(ez.doc,ey)}setTimeout(bO(db,ez),20);bV(eO);return}if(!ey){if(D(eO)==eJ.scroller){bV(eO)}return}if(!ez.state.focused){bS(ez)}var ew=+new Date,ex="single";if(ch&&ch.time>ew-400&&d8(ch.pos,ey)){ex="triple";bV(eO);setTimeout(bO(db,ez),20);aQ(ez,ey.line)}else{if(cn&&cn.time>ew-400&&d8(cn.pos,ey)){ex="double";ch={time:ew,pos:ey};bV(eO);var eL=ab(dJ(eQ,ey.line).text,ey);eg(ez.doc,eL.from,eL.to)}else{cn={time:ew,pos:ey}}}var eA=ey;if(ez.options.dragDrop&&dm&&!S(ez)&&!d8(eH.from,eH.to)&&!dK(ey,eH.from)&&!dK(eH.to,ey)&&ex=="single"){var eK=b9(ez,function(eR){if(b8){eJ.scroller.draggable=false}ez.state.draggingText=false;cT(document,"mouseup",eK);cT(eJ.scroller,"drop",eK);if(Math.abs(eO.clientX-eR.clientX)+Math.abs(eO.clientY-eR.clientY)<10){bV(eR);eg(ez.doc,ey);db(ez);if(cf&&!bE){setTimeout(function(){document.body.focus();db(ez)},20)}}});if(b8){eJ.scroller.draggable=true}ez.state.draggingText=eK;if(eJ.scroller.dragDrop){eJ.scroller.dragDrop()}bk(document,"mouseup",eK);bk(eJ.scroller,"drop",eK);return}bV(eO);if(ex=="single"){eg(ez.doc,d9(eQ,ey))}var eP=eH.from,eE=eH.to,eI=ey;function eM(eS){if(d8(eI,eS)){return}eI=eS;if(ex=="single"){eg(ez.doc,d9(eQ,ey),eS);return}eP=d9(eQ,eP);eE=d9(eQ,eE);if(ex=="double"){var eR=ab(dJ(eQ,eS.line).text,eS);if(dK(eS,eP)){eg(ez.doc,eR.from,eE)}else{eg(ez.doc,eP,eR.to)}}else{if(ex=="triple"){if(dK(eS,eP)){eg(ez.doc,eE,d9(eQ,K(eS.line,0)))}else{eg(ez.doc,eP,d9(eQ,K(eS.line+1,0)))}}}}var eF=an(eJ.wrapper);var eB=0;function eN(eT){var eR=++eB;var eV=bH(ez,eT,true);if(!eV){return}if(!d8(eV,eA)){if(!ez.state.focused){bS(ez)}eA=eV;eM(eV);var eU=bp(eJ,eQ);if(eV.line>=eU.to||eV.line<eU.from){setTimeout(b9(ez,function(){if(eB==eR){eN(eT)}}),150)}}else{var eS=eT.clientY<eF.top?-20:eT.clientY>eF.bottom?20:0;if(eS){setTimeout(b9(ez,function(){if(eB!=eR){return}eJ.scroller.scrollTop+=eS;eN(eT)}),50)}}}function eD(eR){eB=Infinity;bV(eR);db(ez);cT(document,"mousemove",eG);cT(document,"mouseup",eC)}var eG=b9(ez,function(eR){if(!cf&&!eb(eR)){eD(eR)}else{eN(eR)}});var eC=b9(ez,eD);bk(document,"mousemove",eG);bk(document,"mouseup",eC)}function eu(eH,eD,eF,eG,ez){try{var ex=eD.clientX,ew=eD.clientY}catch(eD){return false}if(ex>=Math.floor(an(eH.display.gutters).right)){return false}if(eG){bV(eD)}var eE=eH.display;var eC=an(eE.lineDiv);if(ew>eC.bottom||!dP(eH,eF)){return ba(eD)}ew-=eC.top-eE.viewOffset;for(var eA=0;eA<eH.options.gutters.length;++eA){var eB=eE.gutters.childNodes[eA];if(eB&&an(eB).right>=ex){var eI=a5(eH.doc,ew);var ey=eH.options.gutters[eA];ez(eH,eF,eH,eI,ey,eD);return ba(eD)}}}function ck(ew,ex){if(!dP(ew,"gutterContextMenu")){return false}return eu(ew,ex,"gutterContextMenu",false,ah)}function j(ew,ex){return eu(ew,ex,"gutterClick",true,O)}var P=0;function aN(eC){var eE=this;if(ar(eE,eC)||aG(eE.display,eC)||(eE.options.onDragEvent&&eE.options.onDragEvent(eE,Y(eC)))){return}bV(eC);if(cA){P=+new Date}var eD=bH(eE,eC,true),ew=eC.dataTransfer.files;if(!eD||S(eE)){return}if(ew&&ew.length&&window.FileReader&&window.File){var ey=ew.length,eG=Array(ey),ex=0;var ez=function(eJ,eI){var eH=new FileReader;eH.onload=function(){eG[eI]=eH.result;if(++ex==ey){eD=d9(eE.doc,eD);aL(eE.doc,{from:eD,to:eD,text:ay(eG.join("\n")),origin:"paste"},"around")}};eH.readAsText(eJ)};for(var eA=0;eA<ey;++eA){ez(ew[eA],eA)}}else{if(eE.state.draggingText&&!(dK(eD,eE.doc.sel.from)||dK(eE.doc.sel.to,eD))){eE.state.draggingText(eC);setTimeout(bO(db,eE),20);return}try{var eG=eC.dataTransfer.getData("Text");if(eG){var eF=eE.doc.sel.from,eB=eE.doc.sel.to;bh(eE.doc,eD,eD);if(eE.state.draggingText){az(eE.doc,"",eF,eB,"paste")}eE.replaceSelection(eG,null,"paste");db(eE)}}catch(eC){}}}function I(ex,ez){if(cA&&(!ex.state.draggingText||+new Date-P<100)){c2(ez);return}if(ar(ex,ez)||aG(ex.display,ez)){return}var ew=ex.getSelection();ez.dataTransfer.setData("Text",ew);if(ez.dataTransfer.setDragImage&&!ag){var ey=ej("img",null,null,"position: fixed; left: 0; top: 0;");ey.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";if(d1){ey.width=ey.height=1;ex.display.wrapper.appendChild(ey);ey._top=ey.offsetTop}ez.dataTransfer.setDragImage(ey,0,0);if(d1){ey.parentNode.removeChild(ey)}}}function F(ew,ex){if(Math.abs(ew.doc.scrollTop-ex)<2){return}ew.doc.scrollTop=ex;if(!bI){cB(ew,[],ex)}if(ew.display.scroller.scrollTop!=ex){ew.display.scroller.scrollTop=ex}if(ew.display.scrollbarV.scrollTop!=ex){ew.display.scrollbarV.scrollTop=ex}if(bI){cB(ew,[])}cU(ew,100)}function a3(ew,ey,ex){if(ex?ey==ew.doc.scrollLeft:Math.abs(ew.doc.scrollLeft-ey)<2){return}ey=Math.min(ey,ew.display.scroller.scrollWidth-ew.display.scroller.clientWidth);ew.doc.scrollLeft=ey;df(ew);if(ew.display.scroller.scrollLeft!=ey){ew.display.scroller.scrollLeft=ey}if(ew.display.scrollbarH.scrollLeft!=ey){ew.display.scrollbarH.scrollLeft=ey}}var dQ=0,bA=null;if(cf){bA=-0.53}else{if(bI){bA=15}else{if(cg){bA=-0.7}else{if(ag){bA=-1/3}}}}function b(eC,ex){var eF=ex.wheelDeltaX,eE=ex.wheelDeltaY;if(eF==null&&ex.detail&&ex.axis==ex.HORIZONTAL_AXIS){eF=ex.detail}if(eE==null&&ex.detail&&ex.axis==ex.VERTICAL_AXIS){eE=ex.detail}else{if(eE==null){eE=ex.wheelDelta}}var ez=eC.display,eB=ez.scroller;if(!(eF&&eB.scrollWidth>eB.clientWidth||eE&&eB.scrollHeight>eB.clientHeight)){return}if(eE&&bq&&b8){for(var eD=ex.target;eD!=eB;eD=eD.parentNode){if(eD.lineObj){eC.display.currentWheelTarget=eD;break}}}if(eF&&!bI&&!d1&&bA!=null){if(eE){F(eC,Math.max(0,Math.min(eB.scrollTop+eE*bA,eB.scrollHeight-eB.clientHeight)))}a3(eC,Math.max(0,Math.min(eB.scrollLeft+eF*bA,eB.scrollWidth-eB.clientWidth)));bV(ex);ez.wheelStartX=null;return}if(eE&&bA!=null){var ew=eE*bA;var eA=eC.doc.scrollTop,ey=eA+ez.wrapper.clientHeight;if(ew<0){eA=Math.max(0,eA+ew-50)}else{ey=Math.min(eC.doc.height,ey+ew+50)}cB(eC,[],{top:eA,bottom:ey})}if(dQ<20){if(ez.wheelStartX==null){ez.wheelStartX=eB.scrollLeft;ez.wheelStartY=eB.scrollTop;ez.wheelDX=eF;ez.wheelDY=eE;setTimeout(function(){if(ez.wheelStartX==null){return}var eG=eB.scrollLeft-ez.wheelStartX;var eI=eB.scrollTop-ez.wheelStartY;var eH=(eI&&ez.wheelDY&&eI/ez.wheelDY)||(eG&&ez.wheelDX&&eG/ez.wheelDX);ez.wheelStartX=ez.wheelStartY=null;if(!eH){return}bA=(bA*dQ+eH)/(dQ+1);++dQ},200)}else{ez.wheelDX+=eF;ez.wheelDY+=eE}}}function ef(ex,eA,ew){if(typeof eA=="string"){eA=dd[eA];if(!eA){return false}}if(ex.display.pollingFast&&bB(ex)){ex.display.pollingFast=false}var eB=ex.doc,ez=eB.sel.shift,ey=false;try{if(S(ex)){ex.state.suppressEdits=true}if(ew){eB.sel.shift=false}ey=eA(ex)!=bv}finally{eB.sel.shift=ez;ex.state.suppressEdits=false}return ey}function cr(ew){var ex=ew.state.keyMaps.slice(0);if(ew.options.extraKeys){ex.push(ew.options.extraKeys)}ex.push(ew.options.keyMap);return ex}var Z;function dN(ew,eC){var ex=eh(ew.options.keyMap),eA=ex.auto;clearTimeout(Z);if(eA&&!dc(eC)){Z=setTimeout(function(){if(eh(ew.options.keyMap)==ex){ew.options.keyMap=(eA.call?eA.call(null,ew):eA);et(ew)}},50)}var ez=dW(eC,true),eB=false;if(!ez){return false}var ey=cr(ew);if(eC.shiftKey){eB=g("Shift-"+ez,ey,function(eD){return ef(ew,eD,true)})||g(ez,ey,function(eD){if(typeof eD=="string"?/^go[A-Z]/.test(eD):eD.motion){return ef(ew,eD)}})}else{eB=g(ez,ey,function(eD){return ef(ew,eD)})}if(eB){bV(eC);k(ew);if(bE){eC.oldKeyCode=eC.keyCode;eC.keyCode=0}O(ew,"keyHandled",ew,ez,eC)}return eB}function cX(ew,ez,ex){var ey=g("'"+ex+"'",cr(ew),function(eA){return ef(ew,eA,true)});if(ey){bV(ez);k(ew);O(ew,"keyHandled",ew,"'"+ex+"'",ez)}return ey}var cm=null;function m(ez){var ew=this;if(!ew.state.focused){bS(ew)}if(ar(ew,ez)||ew.options.onKeyEvent&&ew.options.onKeyEvent(ew,Y(ez))){return}if(cf&&ez.keyCode==27){ez.returnValue=false}var ex=ez.keyCode;ew.doc.sel.shift=ex==16||ez.shiftKey;var ey=dN(ew,ez);if(d1){cm=ey?ex:null;if(!ey&&ex==88&&!ce&&(bq?ez.metaKey:ez.ctrlKey)){ew.replaceSelection("")}}}function bP(eA){var ew=this;if(ar(ew,eA)||ew.options.onKeyEvent&&ew.options.onKeyEvent(ew,Y(eA))){return}var ez=eA.keyCode,ex=eA.charCode;if(d1&&ez==cm){cm=null;bV(eA);return}if(((d1&&(!eA.which||eA.which<10))||aH)&&dN(ew,eA)){return}var ey=String.fromCharCode(ex==null?ez:ex);if(cX(ew,eA,ey)){return}if(cA&&!bE){ew.display.inputHasSelection=null}w(ew)}function bS(ew){if(ew.options.readOnly=="nocursor"){return}if(!ew.state.focused){ah(ew,"focus",ew);ew.state.focused=true;if(ew.display.wrapper.className.search(/\bCodeMirror-focused\b/)==-1){ew.display.wrapper.className+=" CodeMirror-focused"}if(!ew.curOp){dU(ew,true);if(b8){setTimeout(bO(dU,ew,true),0)}}}aR(ew);k(ew)}function au(ew){if(ew.state.focused){ah(ew,"blur",ew);ew.state.focused=false;ew.display.wrapper.className=ew.display.wrapper.className.replace(" CodeMirror-focused","")}clearInterval(ew.display.blinker);setTimeout(function(){if(!ew.state.focused){ew.doc.sel.shift=false}},150)}var d5;function ad(eG,eB){if(ar(eG,eB,"contextmenu")){return}var eD=eG.display,ex=eG.doc.sel;if(aG(eD,eB)||ck(eG,eB)){return}var eF=bH(eG,eB),ew=eD.scroller.scrollTop;if(!eF||d1){return}var eA=eG.options.resetSelectionOnContextMenu;if(eA&&(d8(ex.from,ex.to)||dK(eF,ex.from)||!dK(eF,ex.to))){b9(eG,bh)(eG.doc,eF,eF)}var eC=eD.input.style.cssText;eD.inputDiv.style.position="absolute";eD.input.style.cssText="position: fixed; width: 30px; height: 30px; top: "+(eB.clientY-5)+"px; left: "+(eB.clientX-5)+"px; z-index: 1000; background: transparent; outline: none;border-width: 0; outline: none; overflow: hidden; opacity: .05; -ms-opacity: .05; filter: alpha(opacity=5);";db(eG);dU(eG,true);if(d8(ex.from,ex.to)){eD.input.value=eD.prevInput=" "}function ez(){if(eD.input.selectionStart!=null){var eH=eD.input.value="\u200b"+(d8(ex.from,ex.to)?"":eD.input.value);eD.prevInput="\u200b";eD.input.selectionStart=1;eD.input.selectionEnd=eH.length}}function eE(){eD.inputDiv.style.position="relative";eD.input.style.cssText=eC;if(bE){eD.scrollbarV.scrollTop=eD.scroller.scrollTop=ew}aR(eG);if(eD.input.selectionStart!=null){if(!cf||bE){ez()}clearTimeout(d5);var eH=0,eI=function(){if(eD.prevInput=="\u200b"&&eD.input.selectionStart==0){b9(eG,dd.selectAll)(eG)}else{if(eH++<10){d5=setTimeout(eI,500)}else{dU(eG)}}};d5=setTimeout(eI,200)}}if(cf&&!bE){ez()}if(bX){c2(eB);var ey=function(){cT(window,"mouseup",ey);setTimeout(eE,20)};bk(window,"mouseup",ey)}else{setTimeout(eE,50)}}var b5=B.changeEnd=function(ew){if(!ew.text){return ew.to}return K(ew.from.line+ew.text.length-1,d7(ew.text).length+(ew.text.length==1?ew.from.ch:0))};function de(eA,eC,eB){if(!dK(eC.from,eB)){return d9(eA,eB)}var ez=(eC.text.length-1)-(eC.to.line-eC.from.line);if(eB.line>eC.to.line+ez){var ey=eB.line-ez,ex=eA.first+eA.size-1;if(ey>ex){return K(ex,dJ(eA,ex).text.length)}return dX(eB,dJ(eA,ey).text.length)}if(eB.line==eC.to.line+ez){return dX(eB,d7(eC.text).length+(eC.text.length==1?eC.from.ch:0)+dJ(eA,eC.to.line).text.length-eC.to.ch)}var ew=eB.line-eC.from.line;return dX(eB,eC.text[ew].length+(ew?0:eC.from.ch))}function dO(ex,eA,ey){if(ey&&typeof ey=="object"){return{anchor:de(ex,eA,ey.anchor),head:de(ex,eA,ey.head)}}if(ey=="start"){return{anchor:eA.from,head:eA.from}}var ew=b5(eA);if(ey=="around"){return{anchor:eA.from,head:ew}}if(ey=="end"){return{anchor:ew,head:ew}}var ez=function(eD){if(dK(eD,eA.from)){return eD}if(!dK(eA.to,eD)){return ew}var eB=eD.line+eA.text.length-(eA.to.line-eA.from.line)-1,eC=eD.ch;if(eD.line==eA.to.line){eC+=ew.ch-eA.to.ch}return K(eB,eC)};return{anchor:ez(ex.sel.anchor),head:ez(ex.sel.head)}}function cG(ex,ez,ey){var ew={canceled:false,from:ez.from,to:ez.to,text:ez.text,origin:ez.origin,cancel:function(){this.canceled=true}};if(ey){ew.update=function(eD,eC,eB,eA){if(eD){this.from=d9(ex,eD)}if(eC){this.to=d9(ex,eC)}if(eB){this.text=eB}if(eA!==undefined){this.origin=eA}}}ah(ex,"beforeChange",ex,ew);if(ex.cm){ah(ex.cm,"beforeChange",ex.cm,ew)}if(ew.canceled){return null}return{from:ew.from,to:ew.to,text:ew.text,origin:ew.origin}}function aL(ez,eB,eA,ey){if(ez.cm){if(!ez.cm.curOp){return b9(ez.cm,aL)(ez,eB,eA,ey)}if(ez.cm.state.suppressEdits){return}}if(dP(ez,"beforeChange")||ez.cm&&dP(ez.cm,"beforeChange")){eB=cG(ez,eB,true);if(!eB){return}}var ex=eq&&!ey&&bW(ez,eB.from,eB.to);if(ex){for(var ew=ex.length-1;ew>=1;--ew){ap(ez,{from:ex[ew].from,to:ex[ew].to,text:[""]})}if(ex.length){ap(ez,{from:ex[0].from,to:ex[0].to,text:eB.text},eA)}}else{ap(ez,eB,eA)}}function ap(ey,eA,ez){if(eA.text.length==1&&eA.text[0]==""&&d8(eA.from,eA.to)){return}var ex=dO(ey,eA,ez);di(ey,eA,ex,ey.cm?ey.cm.curOp.id:NaN);cS(ey,eA,ex,cY(ey,eA));var ew=[];cN(ey,function(eC,eB){if(!eB&&cl(ew,eC.history)==-1){cz(eC.history,eA);ew.push(eC.history)}cS(eC,eA,null,cY(eC,eA))})}function bs(eF,eC){if(eF.cm&&eF.cm.state.suppressEdits){return}var eB=eF.history;var ex=(eC=="undo"?eB.done:eB.undone).pop();if(!ex){return}var eD={changes:[],anchorBefore:ex.anchorAfter,headBefore:ex.headAfter,anchorAfter:ex.anchorBefore,headAfter:ex.headBefore,generation:eB.generation};(eC=="undo"?eB.undone:eB.done).push(eD);eB.generation=ex.generation||++eB.maxGeneration;var ey=dP(eF,"beforeChange")||eF.cm&&dP(eF.cm,"beforeChange");for(var ez=ex.changes.length-1;ez>=0;--ez){var eE=ex.changes[ez];eE.origin=eC;if(ey&&!cG(eF,eE,false)){(eC=="undo"?eB.done:eB.undone).length=0;return}eD.changes.push(cs(eF,eE));var ew=ez?dO(eF,eE,null):{anchor:ex.anchorBefore,head:ex.headBefore};cS(eF,eE,ew,cP(eF,eE));var eA=[];cN(eF,function(eH,eG){if(!eG&&cl(eA,eH.history)==-1){cz(eH.history,eE);eA.push(eH.history)}cS(eH,eE,null,cP(eH,eE))})}}function dR(ew,ey){function ex(ez){return K(ez.line+ey,ez.ch)}ew.first+=ey;if(ew.cm){Q(ew.cm,ew.first,ew.first,ey)}ew.sel.head=ex(ew.sel.head);ew.sel.anchor=ex(ew.sel.anchor);ew.sel.from=ex(ew.sel.from);ew.sel.to=ex(ew.sel.to)}function cS(eA,eB,ez,ex){if(eA.cm&&!eA.cm.curOp){return b9(eA.cm,cS)(eA,eB,ez,ex)}if(eB.to.line<eA.first){dR(eA,eB.text.length-1-(eB.to.line-eB.from.line));return}if(eB.from.line>eA.lastLine()){return}if(eB.from.line<eA.first){var ew=eB.text.length-1-(eA.first-eB.from.line);dR(eA,ew);eB={from:K(eA.first,0),to:K(eB.to.line+ew,eB.to.ch),text:[d7(eB.text)],origin:eB.origin}}var ey=eA.lastLine();if(eB.to.line>ey){eB={from:eB.from,to:K(ey,dJ(eA,ey).text.length),text:[eB.text[0]],origin:eB.origin}}eB.removed=el(eA,eB.from,eB.to);if(!ez){ez=dO(eA,eB,null)}if(eA.cm){al(eA.cm,eB,ex,ez)}else{d2(eA,eB,ex,ez)}}function al(eG,eC,ez,ew){var eF=eG.doc,eB=eG.display,eD=eC.from,eE=eC.to;var ex=false,ey=eD.line;if(!eG.options.lineWrapping){ey=bc(u(eF,dJ(eF,eD.line)));eF.iter(ey,eE.line+1,function(eJ){if(eJ==eB.maxLine){ex=true;return true}})}if(!dK(eF.sel.head,eC.from)&&!dK(eC.to,eF.sel.head)){eG.curOp.cursorActivity=true}d2(eF,eC,ez,ew,aJ(eG));if(!eG.options.lineWrapping){eF.iter(ey,eD.line+eC.text.length,function(eK){var eJ=c0(eF,eK);if(eJ>eB.maxLineLength){eB.maxLine=eK;eB.maxLineLength=eJ;eB.maxLineChanged=true;ex=false}});if(ex){eG.curOp.updateMaxLine=true}}eF.frontier=Math.min(eF.frontier,eD.line);cU(eG,400);var eI=eC.text.length-(eE.line-eD.line)-1;Q(eG,eD.line,eE.line+1,eI);if(dP(eG,"change")){var eA={from:eD,to:eE,text:eC.text,removed:eC.removed,origin:eC.origin};if(eG.curOp.textChanged){for(var eH=eG.curOp.textChanged;eH.next;eH=eH.next){}eH.next=eA}else{eG.curOp.textChanged=eA}}}function az(ez,ey,eB,eA,ew){if(!eA){eA=eB}if(dK(eA,eB)){var ex=eA;eA=eB;eB=ex}if(typeof ey=="string"){ey=ay(ey)}aL(ez,{from:eB,to:eA,text:ey,origin:ew},null)}function K(ew,ex){if(!(this instanceof K)){return new K(ew,ex)}this.line=ew;this.ch=ex}B.Pos=K;function d8(ex,ew){return ex.line==ew.line&&ex.ch==ew.ch}function dK(ex,ew){return ex.line<ew.line||(ex.line==ew.line&&ex.ch<ew.ch)}function bz(ex,ew){return ex.line-ew.line||ex.ch-ew.ch}function bC(ew){return K(ew.line,ew.ch)}function cb(ew,ex){return Math.max(ew.first,Math.min(ex,ew.first+ew.size-1))}function d9(ex,ey){if(ey.line<ex.first){return K(ex.first,0)}var ew=ex.first+ex.size-1;if(ey.line>ew){return K(ew,dJ(ex,ew).text.length)}return dX(ey,dJ(ex,ey.line).text.length)}function dX(ey,ex){var ew=ey.ch;if(ew==null||ew>ex){return K(ey.line,ex)}else{if(ew<0){return K(ey.line,0)}else{return ey}}}function bt(ex,ew){return ew>=ex.first&&ew<ex.first+ex.size}function eg(eA,eB,ew,ex){if(eA.sel.shift||eA.sel.extend){var ez=eA.sel.anchor;if(ew){var ey=dK(eB,ez);if(ey!=dK(ew,ez)){ez=eB;eB=ew}else{if(ey!=dK(eB,ew)){eB=ew}}}bh(eA,ez,eB,ex)}else{bh(eA,eB,ew||eB,ex)}if(eA.cm){eA.cm.curOp.userSelChange=true}}function c(ez,ew,ex){var ey={anchor:ew,head:ex};ah(ez,"beforeSelectionChange",ez,ey);if(ez.cm){ah(ez.cm,"beforeSelectionChange",ez.cm,ey)}ey.anchor=d9(ez,ey.anchor);ey.head=d9(ez,ey.head);return ey}function bh(eD,eA,eB,ey,ex){if(!ex&&dP(eD,"beforeSelectionChange")||eD.cm&&dP(eD.cm,"beforeSelectionChange")){var ez=c(eD,eA,eB);eB=ez.head;eA=ez.anchor}var eC=eD.sel;eC.goalColumn=null;if(ey==null){ey=dK(eB,eC.head)?-1:1}if(ex||!d8(eA,eC.anchor)){eA=bi(eD,eA,ey,ex!="push")}if(ex||!d8(eB,eC.head)){eB=bi(eD,eB,ey,ex!="push")}if(d8(eC.anchor,eA)&&d8(eC.head,eB)){return}eC.anchor=eA;eC.head=eB;var ew=dK(eB,eA);eC.from=ew?eB:eA;eC.to=ew?eA:eB;if(eD.cm){eD.cm.curOp.updateInput=eD.cm.curOp.selectionChanged=eD.cm.curOp.cursorActivity=true}O(eD,"cursorActivity",eD)}function c7(ew){bh(ew.doc,ew.doc.sel.from,ew.doc.sel.to,null,"push")}function bi(eF,eE,eB,eC){var eG=false,ey=eE;var ez=eB||1;eF.cantEdit=false;search:for(;;){var eH=dJ(eF,ey.line);if(eH.markedSpans){for(var eA=0;eA<eH.markedSpans.length;++eA){var ew=eH.markedSpans[eA],ex=ew.marker;if((ew.from==null||(ex.inclusiveLeft?ew.from<=ey.ch:ew.from<ey.ch))&&(ew.to==null||(ex.inclusiveRight?ew.to>=ey.ch:ew.to>ey.ch))){if(eC){ah(ex,"beforeCursorEnter");if(ex.explicitlyCleared){if(!eH.markedSpans){break}else{--eA;continue}}}if(!ex.atomic){continue}var eD=ex.find()[ez<0?"from":"to"];if(d8(eD,ey)){eD.ch+=ez;if(eD.ch<0){if(eD.line>eF.first){eD=d9(eF,K(eD.line-1))}else{eD=null}}else{if(eD.ch>eH.text.length){if(eD.line<eF.first+eF.size-1){eD=K(eD.line+1,0)}else{eD=null}}}if(!eD){if(eG){if(!eC){return bi(eF,eE,eB,true)}eF.cantEdit=true;return K(eF.first,0)}eG=true;eD=eE;ez=-ez}}ey=eD;continue search}}}return ey}}function ae(ex){var eA=x(ex,ex.doc.sel.head,null,ex.options.cursorScrollMargin);if(!ex.state.focused){return}var eB=ex.display,ey=an(eB.sizer),ew=null;if(eA.top+ey.top<0){ew=true}else{if(eA.bottom+ey.top>(window.innerHeight||document.documentElement.clientHeight)){ew=false}}if(ew!=null&&!dY){var ez=ej("div","\u200b",null,"position: absolute; top: "+(eA.top-eB.viewOffset)+"px; height: "+(eA.bottom-eA.top+aO)+"px; left: "+eA.left+"px; width: 2px;");ex.display.lineSpace.appendChild(ez);ez.scrollIntoView(ew);ex.display.lineSpace.removeChild(ez)}}function x(eF,eD,eA,ez){if(ez==null){ez=0}for(;;){var eB=false,eE=cH(eF,eD);var ew=!eA||eA==eD?eE:cH(eF,eA);var ey=A(eF,Math.min(eE.left,ew.left),Math.min(eE.top,ew.top)-ez,Math.max(eE.left,ew.left),Math.max(eE.bottom,ew.bottom)+ez);var eC=eF.doc.scrollTop,ex=eF.doc.scrollLeft;if(ey.scrollTop!=null){F(eF,ey.scrollTop);if(Math.abs(eF.doc.scrollTop-eC)>1){eB=true}}if(ey.scrollLeft!=null){a3(eF,ey.scrollLeft);if(Math.abs(eF.doc.scrollLeft-ex)>1){eB=true}}if(!eB){return eE}}}function z(ew,ey,eA,ex,ez){var eB=A(ew,ey,eA,ex,ez);if(eB.scrollTop!=null){F(ew,eB.scrollTop)}if(eB.scrollLeft!=null){a3(ew,eB.scrollLeft)}}function A(eC,eK,ez,eJ,ey){var eH=eC.display,eG=aw(eC.display);if(ez<0){ez=0}var ex=eH.scroller.clientHeight-aO,eF=eH.scroller.scrollTop,eE={};var eM=eC.doc.height+a7(eH);var eN=ez<eG,eI=ey>eM-eG;if(ez<eF){eE.scrollTop=eN?0:ez}else{if(ey>eF+ex){var eD=Math.min(ez,(eI?eM:ey)-ex);if(eD!=eF){eE.scrollTop=eD}}}var eB=eH.scroller.clientWidth-aO,ew=eH.scroller.scrollLeft;eK+=eH.gutters.offsetWidth;eJ+=eH.gutters.offsetWidth;var eA=eH.gutters.offsetWidth;var eL=eK<eA+10;if(eK<ew+eA||eL){if(eL){eK=0}eE.scrollLeft=Math.max(0,eK-10-eA)}else{if(eJ>eB+ew-3){eE.scrollLeft=eJ+10-eB}}return eE}function y(ew,ey,ex){ew.curOp.updateScrollPos={scrollLeft:ey==null?ew.doc.scrollLeft:ey,scrollTop:ex==null?ew.doc.scrollTop:ex}}function b0(ex,ez,ey){var eA=ex.curOp.updateScrollPos||(ex.curOp.updateScrollPos={scrollLeft:ex.doc.scrollLeft,scrollTop:ex.doc.scrollTop});var ew=ex.display.scroller;eA.scrollTop=Math.max(0,Math.min(ew.scrollHeight-ew.clientHeight,eA.scrollTop+ey));eA.scrollLeft=Math.max(0,Math.min(ew.scrollWidth-ew.clientWidth,eA.scrollLeft+ez))}function N(eI,ez,eH,ey){var eG=eI.doc;if(eH==null){eH="add"}if(eH=="smart"){if(!eI.doc.mode.indent){eH="prev"}else{var ex=cw(eI,ez)}}var eC=eI.options.tabSize;var eJ=dJ(eG,ez),eB=bg(eJ.text,null,eC);var ew=eJ.text.match(/^\s*/)[0],eE;if(!ey&&!/\S/.test(eJ.text)){eE=0;eH="not"}else{if(eH=="smart"){eE=eI.doc.mode.indent(ex,eJ.text.slice(ew.length),eJ.text);if(eE==bv){if(!ey){return}eH="prev"}}}if(eH=="prev"){if(ez>eG.first){eE=bg(dJ(eG,ez-1).text,null,eC)}else{eE=0}}else{if(eH=="add"){eE=eB+eI.options.indentUnit}else{if(eH=="subtract"){eE=eB-eI.options.indentUnit}else{if(typeof eH=="number"){eE=eB+eH}}}}eE=Math.max(0,eE);var eF="",eD=0;if(eI.options.indentWithTabs){for(var eA=Math.floor(eE/eC);eA;--eA){eD+=eC;eF+="\t"}}if(eD<eE){eF+=bJ(eE-eD)}if(eF!=ew){az(eI.doc,eF,K(ez,0),K(ez,ew.length),"+input")}else{if(eG.sel.head.line==ez&&eG.sel.head.ch<ew.length){bh(eG,K(ez,ew.length),K(ez,ew.length),1)}}eJ.stateAfter=null}function c9(ew,ey,eB){var eA=ey,ex=ey,ez=ew.doc;if(typeof ey=="number"){ex=dJ(ez,cb(ez,ey))}else{eA=bc(ey)}if(eA==null){return null}if(eB(ex,eA)){Q(ew,eA,eA+1)}else{return null}return ex}function aZ(eN,ez,eH,eG,eB){var eE=ez.line,eF=ez.ch,eM=eH;var ew=dJ(eN,eE);var eK=true;function eL(){var eO=eE+eH;if(eO<eN.first||eO>=eN.first+eN.size){return(eK=false)}eE=eO;return ew=dJ(eN,eO)}function eJ(eP){var eO=(eB?q:R)(ew,eF,eH,true);if(eO==null){if(!eP&&eL()){if(eB){eF=(eH<0?b4:bU)(ew)}else{eF=eH<0?ew.text.length:0}}else{return(eK=false)}}else{eF=eO}return true}if(eG=="char"){eJ()}else{if(eG=="column"){eJ(true)}else{if(eG=="word"||eG=="group"){var eI=null,eC=eG=="group";for(var eA=true;;eA=false){if(eH<0&&!eJ(!eA)){break}var ex=ew.text.charAt(eF)||"\n";var ey=bR(ex)?"w":!eC?null:/\s/.test(ex)?null:"p";if(eI&&eI!=ey){if(eH<0){eH=1;eJ()}break}if(ey){eI=ey}if(eH>0&&!eJ(!eA)){break}}}}}var eD=bi(eN,K(eE,eF),eM,true);if(!eK){eD.hitSide=true}return eD}function aV(eE,ez,ew,eD){var eC=eE.doc,eB=ez.left,eA;if(eD=="page"){var ey=Math.min(eE.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);eA=ez.top+ew*(ey-(ew<0?1.5:0.5)*aw(eE.display))}else{if(eD=="line"){eA=ew>0?ez.bottom+3:ez.top-3}}for(;;){var ex=ed(eE,eB,eA);if(!ex.outside){break}if(ew<0?eA<=0:eA>=eC.height){ex.hitSide=true;break}eA+=ew*5}return ex}function ab(ez,eB){var eA=eB.ch,ey=eB.ch;if(ez){if((eB.xRel<0||ey==ez.length)&&eA){--eA}else{++ey}var ex=ez.charAt(eA);var ew=bR(ex)?bR:/\s/.test(ex)?function(eC){return/\s/.test(eC)}:function(eC){return !/\s/.test(eC)&&!bR(eC)};while(eA>0&&ew(ez.charAt(eA-1))){--eA}while(ey<ez.length&&ew(ez.charAt(ey))){++ey}}return{from:K(eB.line,eA),to:K(eB.line,ey)}}function aQ(ew,ex){eg(ew.doc,K(ex,0),d9(ew.doc,K(ex+1,0)))}B.prototype={constructor:B,focus:function(){window.focus();db(this);w(this)},setOption:function(ey,ez){var ex=this.options,ew=ex[ey];if(ex[ey]==ez&&ey!="mode"){return}ex[ey]=ez;if(aK.hasOwnProperty(ey)){b9(this,aK[ey])(this,ez,ew)}},getOption:function(ew){return this.options[ew]},getDoc:function(){return this.doc},addKeyMap:function(ex,ew){this.state.keyMaps[ew?"push":"unshift"](ex)},removeKeyMap:function(ex){var ey=this.state.keyMaps;for(var ew=0;ew<ey.length;++ew){if(ey[ew]==ex||(typeof ey[ew]!="string"&&ey[ew].name==ex)){ey.splice(ew,1);return true}}},addOverlay:b9(null,function(ew,ex){var ey=ew.token?ew:B.getMode(this.options,ew);if(ey.startState){throw new Error("Overlays may not be stateful.")}this.state.overlays.push({mode:ey,modeSpec:ew,opaque:ex&&ex.opaque});this.state.modeGen++;Q(this)}),removeOverlay:b9(null,function(ew){var ey=this.state.overlays;for(var ex=0;ex<ey.length;++ex){var ez=ey[ex].modeSpec;if(ez==ew||typeof ew=="string"&&ez.name==ew){ey.splice(ex,1);this.state.modeGen++;Q(this);return}}}),indentLine:b9(null,function(ey,ew,ex){if(typeof ew!="string"&&typeof ew!="number"){if(ew==null){ew=this.options.smartIndent?"smart":"prev"}else{ew=ew?"add":"subtract"}}if(bt(this.doc,ey)){N(this,ey,ew,ex)}}),indentSelection:b9(null,function(ex){var ey=this.doc.sel;if(d8(ey.from,ey.to)){return N(this,ey.from.line,ex,true)}var ez=ey.to.line-(ey.to.ch?0:1);for(var ew=ey.from.line;ew<=ez;++ew){N(this,ew,ex)}}),getTokenAt:function(eD,ex){var eA=this.doc;eD=d9(eA,eD);var ez=cw(this,eD.line,ex),eC=this.doc.mode;var ew=dJ(eA,eD.line);var eB=new ds(ew.text,this.options.tabSize);while(eB.pos<eD.ch&&!eB.eol()){eB.start=eB.pos;var ey=eC.token(eB,ez)}return{start:eB.start,end:eB.pos,string:eB.current(),className:ey||null,type:ey||null,state:ez}},getTokenTypeAt:function(eB){eB=d9(this.doc,eB);var ey=cd(this,dJ(this.doc,eB.line));var ez=0,eA=(ey.length-1)/2,ex=eB.ch;if(ex==0){return ey[2]}for(;;){var ew=(ez+eA)>>1;if((ew?ey[ew*2-1]:0)>=ex){eA=ew}else{if(ey[ew*2+1]<ex){ez=ew+1}else{return ey[ew*2+2]}}}},getModeAt:function(ex){var ew=this.doc.mode;if(!ew.innerMode){return ew}return B.innerMode(ew,this.getTokenAt(ex).state).mode},getHelper:function(ex,ew){return this.getHelpers(ex,ew)[0]},getHelpers:function(eD,ey){var ez=[];if(!dS.hasOwnProperty(ey)){return dS}var ew=dS[ey],eC=this.getModeAt(eD);if(typeof eC[ey]=="string"){if(ew[eC[ey]]){ez.push(ew[eC[ey]])}}else{if(eC[ey]){for(var ex=0;ex<eC[ey].length;ex++){var eB=ew[eC[ey][ex]];if(eB){ez.push(eB)}}}else{if(eC.helperType&&ew[eC.helperType]){ez.push(ew[eC.helperType])}else{if(ew[eC.name]){ez.push(ew[eC.name])}}}}for(var ex=0;ex<ew._global.length;ex++){var eA=ew._global[ex];if(eA.pred(eC,this)&&cl(ez,eA.val)==-1){ez.push(eA.val)}}return ez},getStateAfter:function(ex,ew){var ey=this.doc;ex=cb(ey,ex==null?ey.first+ey.size-1:ex);return cw(this,ex+1,ew)},cursorCoords:function(ez,ex){var ey,ew=this.doc.sel;if(ez==null){ey=ew.head}else{if(typeof ez=="object"){ey=d9(this.doc,ez)}else{ey=ez?ew.from:ew.to}}return cH(this,ey,ex||"page")},charCoords:function(ex,ew){return bZ(this,d9(this.doc,ex),ew||"page")},coordsChar:function(ew,ex){ew=es(this,ew,ex||"page");return ed(this,ew.left,ew.top)},lineAtHeight:function(ew,ex){ew=es(this,{top:ew,left:0},ex||"page").top;return a5(this.doc,ew+this.display.viewOffset)},heightAtLine:function(ex,eA){var ew=false,ez=this.doc.first+this.doc.size-1;if(ex<this.doc.first){ex=this.doc.first}else{if(ex>ez){ex=ez;ew=true}}var ey=dJ(this.doc,ex);return dp(this,dJ(this.doc,ex),{top:0,left:0},eA||"page").top+(ew?ey.height:0)},defaultTextHeight:function(){return aw(this.display)},defaultCharWidth:function(){return cy(this.display)},setGutterMarker:b9(null,function(ew,ex,ey){return c9(this,ew,function(ez){var eA=ez.gutterMarkers||(ez.gutterMarkers={});eA[ex]=ey;if(!ey&&dt(eA)){ez.gutterMarkers=null}return true})}),clearGutter:b9(null,function(ey){var ew=this,ez=ew.doc,ex=ez.first;ez.iter(function(eA){if(eA.gutterMarkers&&eA.gutterMarkers[ey]){eA.gutterMarkers[ey]=null;Q(ew,ex,ex+1);if(dt(eA.gutterMarkers)){eA.gutterMarkers=null}}++ex})}),addLineClass:b9(null,function(ey,ex,ew){return c9(this,ey,function(ez){var eA=ex=="text"?"textClass":ex=="background"?"bgClass":"wrapClass";if(!ez[eA]){ez[eA]=ew}else{if(new RegExp("(?:^|\\s)"+ew+"(?:$|\\s)").test(ez[eA])){return false}else{ez[eA]+=" "+ew}}return true})}),removeLineClass:b9(null,function(ey,ex,ew){return c9(this,ey,function(eA){var eD=ex=="text"?"textClass":ex=="background"?"bgClass":"wrapClass";var eC=eA[eD];if(!eC){return false}else{if(ew==null){eA[eD]=null}else{var eB=eC.match(new RegExp("(?:^|\\s+)"+ew+"(?:$|\\s+)"));if(!eB){return false}var ez=eB.index+eB[0].length;eA[eD]=eC.slice(0,eB.index)+(!eB.index||ez==eC.length?"":" ")+eC.slice(ez)||null}}return true})}),addLineWidget:b9(null,function(ey,ex,ew){return a6(this,ey,ex,ew)}),removeLineWidget:function(ew){ew.clear()},lineInfo:function(ew){if(typeof ew=="number"){if(!bt(this.doc,ew)){return null}var ex=ew;ew=dJ(this.doc,ew);if(!ew){return null}}else{var ex=bc(ew);if(ex==null){return null}}return{line:ex,handle:ew,text:ew.text,gutterMarkers:ew.gutterMarkers,textClass:ew.textClass,bgClass:ew.bgClass,wrapClass:ew.wrapClass,widgets:ew.widgets}},getViewport:function(){return{from:this.display.showingFrom,to:this.display.showingTo}},addWidget:function(eB,ey,eD,ez,eF){var eA=this.display;eB=cH(this,d9(this.doc,eB));var eC=eB.bottom,ex=eB.left;ey.style.position="absolute";eA.sizer.appendChild(ey);if(ez=="over"){eC=eB.top}else{if(ez=="above"||ez=="near"){var ew=Math.max(eA.wrapper.clientHeight,this.doc.height),eE=Math.max(eA.sizer.clientWidth,eA.lineSpace.clientWidth);if((ez=="above"||eB.bottom+ey.offsetHeight>ew)&&eB.top>ey.offsetHeight){eC=eB.top-ey.offsetHeight}else{if(eB.bottom+ey.offsetHeight<=ew){eC=eB.bottom}}if(ex+ey.offsetWidth>eE){ex=eE-ey.offsetWidth}}}ey.style.top=eC+"px";ey.style.left=ey.style.right="";if(eF=="right"){ex=eA.sizer.clientWidth-ey.offsetWidth;ey.style.right="0px"}else{if(eF=="left"){ex=0}else{if(eF=="middle"){ex=(eA.sizer.clientWidth-ey.offsetWidth)/2}}ey.style.left=ex+"px"}if(eD){z(this,ex,eC,ex+ey.offsetWidth,eC+ey.offsetHeight)}},triggerOnKeyDown:b9(null,m),execCommand:function(ew){if(dd.hasOwnProperty(ew)){return dd[ew](this)}},findPosH:function(eC,ez,eA,ex){var ew=1;if(ez<0){ew=-1;ez=-ez}for(var ey=0,eB=d9(this.doc,eC);ey<ez;++ey){eB=aZ(this.doc,eB,ew,eA,ex);if(eB.hitSide){break}}return eB},moveH:b9(null,function(ew,ex){var ey=this.doc.sel,ez;if(ey.shift||ey.extend||d8(ey.from,ey.to)){ez=aZ(this.doc,ey.head,ew,ex,this.options.rtlMoveVisually)}else{ez=ew<0?ey.from:ey.to}eg(this.doc,ez,ez,ew)}),deleteH:b9(null,function(ew,ex){var ey=this.doc.sel;if(!d8(ey.from,ey.to)){az(this.doc,"",ey.from,ey.to,"+delete")}else{az(this.doc,"",ey.from,aZ(this.doc,ey.head,ew,ex,false),"+delete")}this.curOp.userSelChange=true}),findPosV:function(eB,ey,eC,eE){var ew=1,eA=eE;if(ey<0){ew=-1;ey=-ey}for(var ex=0,eD=d9(this.doc,eB);ex<ey;++ex){var ez=cH(this,eD,"div");if(eA==null){eA=ez.left}else{ez.left=eA}eD=aV(this,ez,ew,eC);if(eD.hitSide){break}}return eD},moveV:b9(null,function(ex,ey){var ez=this.doc.sel,eA,ew;if(ez.shift||ez.extend||d8(ez.from,ez.to)){var eB=cH(this,ez.head,"div");if(ez.goalColumn!=null){eB.left=ez.goalColumn}eA=aV(this,eB,ex,ey);if(ey=="page"){b0(this,0,bZ(this,eA,"div").top-eB.top)}ew=eB.left}else{eA=ex<0?ez.from:ez.to}eg(this.doc,eA,eA,ex);if(ew!=null){ez.goalColumn=ew}}),toggleOverwrite:function(ew){if(ew!=null&&ew==this.state.overwrite){return}if(this.state.overwrite=!this.state.overwrite){this.display.cursor.className+=" CodeMirror-overwrite"}else{this.display.cursor.className=this.display.cursor.className.replace(" CodeMirror-overwrite","")}},hasFocus:function(){return this.state.focused},scrollTo:b9(null,function(ew,ex){y(this,ew,ex)}),getScrollInfo:function(){var ew=this.display.scroller,ex=aO;return{left:ew.scrollLeft,top:ew.scrollTop,height:ew.scrollHeight-ex,width:ew.scrollWidth-ex,clientHeight:ew.clientHeight-ex,clientWidth:ew.clientWidth-ex}},scrollIntoView:b9(null,function(ex,ez){if(ex==null){ex={from:this.doc.sel.head,to:null}}else{if(typeof ex=="number"){ex={from:K(ex,0),to:null}}else{if(ex.from==null){ex={from:ex,to:null}}}}if(!ex.to){ex.to=ex.from}if(!ez){ez=0}var ey=ex;if(ex.from.line!=null){this.curOp.scrollToPos={from:ex.from,to:ex.to,margin:ez};ey={from:cH(this,ex.from),to:cH(this,ex.to)}}var ew=A(this,Math.min(ey.from.left,ey.to.left),Math.min(ey.from.top,ey.to.top)-ez,Math.max(ey.from.right,ey.to.right),Math.max(ey.from.bottom,ey.to.bottom)+ez);y(this,ew.scrollLeft,ew.scrollTop)}),setSize:b9(null,function(ey,ew){function ex(ez){return typeof ez=="number"||/^\d+$/.test(String(ez))?ez+"px":ez}if(ey!=null){this.display.wrapper.style.width=ex(ey)}if(ew!=null){this.display.wrapper.style.height=ex(ew)}if(this.options.lineWrapping){this.display.measureLineCache.length=this.display.measureLineCachePos=0}this.curOp.forceUpdate=true}),operation:function(ew){return b1(this,ew)},refresh:b9(null,function(){var ew=this.display.cachedTextHeight==null;T(this);y(this,this.doc.scrollLeft,this.doc.scrollTop);Q(this);if(ew){L(this)}}),swapDoc:b9(null,function(ex){var ew=this.doc;ew.cm=null;cQ(this,ex);T(this);dU(this,true);y(this,ex.scrollLeft,ex.scrollTop);O(this,"swapDoc",this,ew);return ew}),getInputField:function(){return this.display.input},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}};a0(B);var aK=B.optionHandlers={};var dA=B.defaults={};function o(ew,ez,ey,ex){B.defaults[ew]=ez;if(ey){aK[ew]=ex?function(eA,eC,eB){if(eB!=bw){ey(eA,eC,eB)}}:ey}}var bw=B.Init={toString:function(){return"CodeMirror.Init"}};o("value","",function(ew,ex){ew.setValue(ex)},true);o("mode",null,function(ew,ex){ew.doc.modeOption=ex;aW(ew)},true);o("indentUnit",2,aW,true);o("indentWithTabs",false);o("smartIndent",true);o("tabSize",4,function(ew){cZ(ew);T(ew);Q(ew)},true);o("specialChars",/[\t\u0000-\u0019\u00ad\u200b\u2028\u2029\ufeff]/g,function(ew,ex){ew.options.specialChars=new RegExp(ex.source+(ex.test("\t")?"":"|\t"),"g");ew.refresh()},true);o("specialCharPlaceholder",dH,function(ew){ew.refresh()},true);o("electricChars",true);o("rtlMoveVisually",!ao);o("wholeLineUpdateBefore",true);o("theme","default",function(ew){b2(ew);ct(ew)},true);o("keyMap","default",et);o("extraKeys",null);o("onKeyEvent",null);o("onDragEvent",null);o("lineWrapping",false,dj,true);o("gutters",[],function(ew){by(ew.options);ct(ew)},true);o("fixedGutter",true,function(ew,ex){ew.display.gutters.style.left=ex?cJ(ew.display)+"px":"0";ew.refresh()},true);o("coverGutterNextToScrollbar",false,dw,true);o("lineNumbers",false,function(ew){by(ew.options);ct(ew)},true);o("firstLineNumber",1,ct,true);o("lineNumberFormatter",function(ew){return ew},ct,true);o("showCursorWhenSelecting",false,a2,true);o("resetSelectionOnContextMenu",true);o("readOnly",false,function(ew,ex){if(ex=="nocursor"){au(ew);ew.display.input.blur();ew.display.disabled=true}else{ew.display.disabled=false;if(!ex){dU(ew,true)}}});o("disableInput",false,function(ew,ex){if(!ex){dU(ew,true)}},true);o("dragDrop",true);o("cursorBlinkRate",530);o("cursorScrollMargin",0);o("cursorHeight",1);o("workTime",100);o("workDelay",100);o("flattenSpans",true,cZ,true);o("addModeClass",false,cZ,true);o("pollInterval",100);o("undoDepth",40,function(ew,ex){ew.doc.history.undoDepth=ex});o("historyEventDelay",500);o("viewportMargin",10,function(ew){ew.refresh()},true);o("maxHighlightLength",10000,cZ,true);o("crudeMeasuringFrom",10000);o("moveInputWithCursor",true,function(ew,ex){if(!ex){ew.display.inputDiv.style.top=ew.display.inputDiv.style.left=0}});o("tabindex",null,function(ew,ex){ew.display.input.tabIndex=ex||""});o("autofocus",null);var cq=B.modes={},at=B.mimeModes={};B.defineMode=function(ew,ey){if(!B.defaults.mode&&ew!="null"){B.defaults.mode=ew}if(arguments.length>2){ey.dependencies=[];for(var ex=2;ex<arguments.length;++ex){ey.dependencies.push(arguments[ex])}}cq[ew]=ey};B.defineMIME=function(ex,ew){at[ex]=ew};B.resolveMode=function(ew){if(typeof ew=="string"&&at.hasOwnProperty(ew)){ew=at[ew]}else{if(ew&&typeof ew.name=="string"&&at.hasOwnProperty(ew.name)){var ex=at[ew.name];ew=bD(ex,ew);ew.name=ex.name}else{if(typeof ew=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ew)){return B.resolveMode("application/xml")}}}if(typeof ew=="string"){return{name:ew}}else{return ew||{name:"null"}}};B.getMode=function(ex,ew){var ew=B.resolveMode(ew);var ez=cq[ew.name];if(!ez){return B.getMode(ex,"text/plain")}var eA=ez(ex,ew);if(co.hasOwnProperty(ew.name)){var ey=co[ew.name];for(var eB in ey){if(!ey.hasOwnProperty(eB)){continue}if(eA.hasOwnProperty(eB)){eA["_"+eB]=eA[eB]}eA[eB]=ey[eB]}}eA.name=ew.name;if(ew.helperType){eA.helperType=ew.helperType}if(ew.modeProps){for(var eB in ew.modeProps){eA[eB]=ew.modeProps[eB]}}return eA};B.defineMode("null",function(){return{token:function(ew){ew.skipToEnd()}}});B.defineMIME("text/plain","null");var co=B.modeExtensions={};B.extendMode=function(ey,ex){var ew=co.hasOwnProperty(ey)?co[ey]:(co[ey]={});am(ex,ew)};B.defineExtension=function(ew,ex){B.prototype[ew]=ex};B.defineDocExtension=function(ew,ex){aa.prototype[ew]=ex};B.defineOption=o;var aE=[];B.defineInitHook=function(ew){aE.push(ew)};var dS=B.helpers={};B.registerHelper=function(ex,ew,ey){if(!dS.hasOwnProperty(ex)){dS[ex]=B[ex]={_global:[]}}dS[ex][ew]=ey};B.registerGlobalHelper=function(ey,ex,ew,ez){B.registerHelper(ey,ex,ez);dS[ey]._global.push({pred:ew,val:ez})};B.isWordChar=bR;function bo(ez,ew){if(ew===true){return ew}if(ez.copyState){return ez.copyState(ew)}var ey={};for(var eA in ew){var ex=ew[eA];if(ex instanceof Array){ex=ex.concat([])}ey[eA]=ex}return ey}B.copyState=bo;function bm(ey,ex,ew){return ey.startState?ey.startState(ex,ew):true}B.startState=bm;B.innerMode=function(ey,ew){while(ey.innerMode){var ex=ey.innerMode(ew);if(!ex||ex.mode==ey){break}ew=ex.state;ey=ex.mode}return ex||{mode:ey,state:ew}};var dd=B.commands={selectAll:function(ew){ew.setSelection(K(ew.firstLine(),0),K(ew.lastLine()))},killLine:function(ew){var ez=ew.getCursor(true),ey=ew.getCursor(false),ex=!d8(ez,ey);if(!ex&&ew.getLine(ez.line).length==ez.ch){ew.replaceRange("",ez,K(ez.line+1,0),"+delete")}else{ew.replaceRange("",ez,ex?ey:K(ez.line),"+delete")}},deleteLine:function(ew){var ex=ew.getCursor().line;ew.replaceRange("",K(ex,0),K(ex),"+delete")},delLineLeft:function(ew){var ex=ew.getCursor();ew.replaceRange("",K(ex.line,0),ex,"+delete")},undo:function(ew){ew.undo()},redo:function(ew){ew.redo()},goDocStart:function(ew){ew.extendSelection(K(ew.firstLine(),0))},goDocEnd:function(ew){ew.extendSelection(K(ew.lastLine()))},goLineStart:function(ew){ew.extendSelection(aY(ew,ew.getCursor().line))},goLineStartSmart:function(ex){var eB=ex.getCursor(),eC=aY(ex,eB.line);var ey=ex.getLineHandle(eC.line);var ew=a(ey);if(!ew||ew[0].level==0){var eA=Math.max(0,ey.text.search(/\S/));var ez=eB.line==eC.line&&eB.ch<=eA&&eB.ch;ex.extendSelection(K(eC.line,ez?0:eA))}else{ex.extendSelection(eC)}},goLineEnd:function(ew){ew.extendSelection(cE(ew,ew.getCursor().line))},goLineRight:function(ew){var ex=ew.charCoords(ew.getCursor(),"div").top+5;ew.extendSelection(ew.coordsChar({left:ew.display.lineDiv.offsetWidth+100,top:ex},"div"))},goLineLeft:function(ew){var ex=ew.charCoords(ew.getCursor(),"div").top+5;ew.extendSelection(ew.coordsChar({left:0,top:ex},"div"))},goLineUp:function(ew){ew.moveV(-1,"line")},goLineDown:function(ew){ew.moveV(1,"line")},goPageUp:function(ew){ew.moveV(-1,"page")},goPageDown:function(ew){ew.moveV(1,"page")},goCharLeft:function(ew){ew.moveH(-1,"char")},goCharRight:function(ew){ew.moveH(1,"char")},goColumnLeft:function(ew){ew.moveH(-1,"column")},goColumnRight:function(ew){ew.moveH(1,"column")},goWordLeft:function(ew){ew.moveH(-1,"word")},goGroupRight:function(ew){ew.moveH(1,"group")},goGroupLeft:function(ew){ew.moveH(-1,"group")},goWordRight:function(ew){ew.moveH(1,"word")},delCharBefore:function(ew){ew.deleteH(-1,"char")},delCharAfter:function(ew){ew.deleteH(1,"char")},delWordBefore:function(ew){ew.deleteH(-1,"word")},delWordAfter:function(ew){ew.deleteH(1,"word")},delGroupBefore:function(ew){ew.deleteH(-1,"group")},delGroupAfter:function(ew){ew.deleteH(1,"group")},indentAuto:function(ew){ew.indentSelection("smart")},indentMore:function(ew){ew.indentSelection("add")},indentLess:function(ew){ew.indentSelection("subtract")},insertTab:function(ew){ew.replaceSelection("\t","end","+input")},defaultTab:function(ew){if(ew.somethingSelected()){ew.indentSelection("add")}else{ew.replaceSelection("\t","end","+input")}},transposeChars:function(ew){var ey=ew.getCursor(),ex=ew.getLine(ey.line);if(ey.ch>0&&ey.ch<ex.length-1){ew.replaceRange(ex.charAt(ey.ch)+ex.charAt(ey.ch-1),K(ey.line,ey.ch-1),K(ey.line,ey.ch+1))}},newlineAndIndent:function(ew){b9(ew,function(){ew.replaceSelection("\n","end","+input");ew.indentLine(ew.getCursor().line,null,true)})()},toggleOverwrite:function(ew){ew.toggleOverwrite()}};var dF=B.keyMap={};dF.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"};dF.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Alt-Up":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Down":"goDocEnd","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",fallthrough:"basic"};dF.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineStart","Cmd-Right":"goLineEnd","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":"delLineLeft",fallthrough:["basic","emacsy"]};dF["default"]=bq?dF.macDefault:dF.pcDefault;dF.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"};function eh(ew){if(typeof ew=="string"){return dF[ew]}else{return ew}}function g(ex,eB,ez){function eA(eH){eH=eh(eH);var eF=eH[ex];if(eF===false){return"stop"}if(eF!=null&&ez(eF)){return true}if(eH.nofallthrough){return"stop"}var eE=eH.fallthrough;if(eE==null){return false}if(Object.prototype.toString.call(eE)!="[object Array]"){return eA(eE)}for(var eD=0,eG=eE.length;eD<eG;++eD){var eC=eA(eE[eD]);if(eC){return eC}}return false}for(var ey=0;ey<eB.length;++ey){var ew=eA(eB[ey]);if(ew){return ew!="stop"}}}function dc(ex){var ew=dL[ex.keyCode];return ew=="Ctrl"||ew=="Alt"||ew=="Shift"||ew=="Mod"}function dW(ex,ey){if(d1&&ex.keyCode==34&&ex["char"]){return false}var ew=dL[ex.keyCode];if(ew==null||ex.altGraphKey){return false}if(ex.altKey){ew="Alt-"+ew}if(be?ex.metaKey:ex.ctrlKey){ew="Ctrl-"+ew}if(be?ex.ctrlKey:ex.metaKey){ew="Cmd-"+ew}if(!ey&&ex.shiftKey){ew="Shift-"+ew}return ew}B.lookupKey=g;B.isModifierKey=dc;B.keyName=dW;B.fromTextArea=function(eD,eE){if(!eE){eE={}}eE.value=eD.value;if(!eE.tabindex&&eD.tabindex){eE.tabindex=eD.tabindex}if(!eE.placeholder&&eD.placeholder){eE.placeholder=eD.placeholder}if(eE.autofocus==null){var ew=document.body;try{ew=document.activeElement}catch(ey){}eE.autofocus=ew==eD||eD.getAttribute("autofocus")!=null&&ew==document.body}function eA(){eD.value=eC.getValue()}if(eD.form){bk(eD.form,"submit",eA);if(!eE.leaveSubmitMethodAlone){var ex=eD.form,eB=ex.submit;try{var ez=ex.submit=function(){eA();ex.submit=eB;ex.submit();ex.submit=ez}}catch(ey){}}}eD.style.display="none";var eC=B(function(eF){eD.parentNode.insertBefore(eF,eD.nextSibling)},eE);eC.save=eA;eC.getTextArea=function(){return eD};eC.toTextArea=function(){eA();eD.parentNode.removeChild(eC.getWrapperElement());eD.style.display="";if(eD.form){cT(eD.form,"submit",eA);if(typeof eD.form.submit=="function"){eD.form.submit=eB}}};return eC};function ds(ew,ex){this.pos=this.start=0;this.string=ew;this.tabSize=ex||8;this.lastColumnPos=this.lastColumnValue=0;this.lineStart=0}ds.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||undefined},next:function(){if(this.pos<this.string.length){return this.string.charAt(this.pos++)}},eat:function(ew){var ey=this.string.charAt(this.pos);if(typeof ew=="string"){var ex=ey==ew}else{var ex=ey&&(ew.test?ew.test(ey):ew(ey))}if(ex){++this.pos;return ey}},eatWhile:function(ew){var ex=this.pos;while(this.eat(ew)){}return this.pos>ex},eatSpace:function(){var ew=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos))){++this.pos}return this.pos>ew},skipToEnd:function(){this.pos=this.string.length},skipTo:function(ew){var ex=this.string.indexOf(ew,this.pos);if(ex>-1){this.pos=ex;return true}},backUp:function(ew){this.pos-=ew},column:function(){if(this.lastColumnPos<this.start){this.lastColumnValue=bg(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue);this.lastColumnPos=this.start}return this.lastColumnValue-(this.lineStart?bg(this.string,this.lineStart,this.tabSize):0)},indentation:function(){return bg(this.string,null,this.tabSize)-(this.lineStart?bg(this.string,this.lineStart,this.tabSize):0)},match:function(eA,ex,ew){if(typeof eA=="string"){var eB=function(eC){return ew?eC.toLowerCase():eC};var ez=this.string.substr(this.pos,eA.length);if(eB(ez)==eB(eA)){if(ex!==false){this.pos+=eA.length}return true}}else{var ey=this.string.slice(this.pos).match(eA);if(ey&&ey.index>0){return null}if(ey&&ex!==false){this.pos+=ey[0].length}return ey}},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(ex,ew){this.lineStart+=ex;try{return ew()}finally{this.lineStart-=ex}}};B.StringStream=ds;function H(ex,ew){this.lines=[];this.type=ew;this.doc=ex}B.TextMarker=H;a0(H);H.prototype.clear=function(){if(this.explicitlyCleared){return}var eD=this.doc.cm,ex=eD&&!eD.curOp;if(ex){bY(eD)}if(dP(this,"clear")){var eE=this.find();if(eE){O(this,"clear",eE.from,eE.to)}}var ey=null,eB=null;for(var ez=0;ez<this.lines.length;++ez){var eF=this.lines[ez];var eC=dE(eF.markedSpans,this);if(eC.to!=null){eB=bc(eF)}eF.markedSpans=dk(eF.markedSpans,eC);if(eC.from!=null){ey=bc(eF)}else{if(this.collapsed&&!dZ(this.doc,eF)&&eD){eo(eF,aw(eD.display))}}}if(eD&&this.collapsed&&!eD.options.lineWrapping){for(var ez=0;ez<this.lines.length;++ez){var ew=u(eD.doc,this.lines[ez]),eA=c0(eD.doc,ew);if(eA>eD.display.maxLineLength){eD.display.maxLine=ew;eD.display.maxLineLength=eA;eD.display.maxLineChanged=true}}}if(ey!=null&&eD){Q(eD,ey,eB+1)}this.lines.length=0;this.explicitlyCleared=true;if(this.atomic&&this.doc.cantEdit){this.doc.cantEdit=false;if(eD){c7(eD)}}if(ex){W(eD)}};H.prototype.find=function(eA){var eC,eB;for(var ex=0;ex<this.lines.length;++ex){var ew=this.lines[ex];var ey=dE(ew.markedSpans,this);if(ey.from!=null||ey.to!=null){var ez=bc(ew);if(ey.from!=null){eC=K(ez,ey.from)}if(ey.to!=null){eB=K(ez,ey.to)}}}if(this.type=="bookmark"&&!eA){return eC}return eC&&{from:eC,to:eB}};H.prototype.changed=function(){var ez=this.find(),ew=this.doc.cm;if(!ez||!ew){return}if(this.type!="bookmark"){ez=ez.from}var ex=dJ(this.doc,ez.line);ec(ew,ex);if(ez.line>=ew.display.showingFrom&&ez.line<ew.display.showingTo){for(var ey=ew.display.lineDiv.firstChild;ey;ey=ey.nextSibling){if(ey.lineObj==ex){if(ey.offsetHeight!=ex.height){eo(ex,ey.offsetHeight)}break}}b1(ew,function(){ew.curOp.selectionChanged=ew.curOp.forceUpdate=ew.curOp.updateMaxLine=true})}};H.prototype.attachLine=function(ew){if(!this.lines.length&&this.doc.cm){var ex=this.doc.cm.curOp;if(!ex.maybeHiddenMarkers||cl(ex.maybeHiddenMarkers,this)==-1){(ex.maybeUnhiddenMarkers||(ex.maybeUnhiddenMarkers=[])).push(this)}}this.lines.push(ew)};H.prototype.detachLine=function(ew){this.lines.splice(cl(this.lines,ew),1);if(!this.lines.length&&this.doc.cm){var ex=this.doc.cm.curOp;(ex.maybeHiddenMarkers||(ex.maybeHiddenMarkers=[])).push(this)}};var aB=0;function dh(eC,eA,eB,eE,ez){if(eE&&eE.shared){return G(eC,eA,eB,eE,ez)}if(eC.cm&&!eC.cm.curOp){return b9(eC.cm,dh)(eC,eA,eB,eE,ez)}var ey=new H(eC,ez);if(eE){am(eE,ey)}if(dK(eB,eA)||d8(eA,eB)&&ey.clearWhenEmpty!==false){return ey}if(ey.replacedWith){ey.collapsed=true;ey.replacedWith=ej("span",[ey.replacedWith],"CodeMirror-widget");if(!eE.handleMouseEvents){ey.replacedWith.ignoreEvents=true}}if(ey.collapsed){if(v(eC,eA.line,eA,eB,ey)||eA.line!=eB.line&&v(eC,eB.line,eA,eB,ey)){throw new Error("Inserting collapsed marker partially overlapping an existing one")}aD=true}if(ey.addToHistory){di(eC,{from:eA,to:eB,origin:"markText"},{head:eC.sel.head,anchor:eC.sel.anchor},NaN)}var ex=eA.line,eD=eC.cm,ew;eC.iter(ex,eB.line+1,function(eF){if(eD&&ey.collapsed&&!eD.options.lineWrapping&&u(eC,eF)==eD.display.maxLine){ew=true}var eG={from:null,to:null,marker:ey};if(ex==eA.line){eG.from=eA.ch}if(ex==eB.line){eG.to=eB.ch}if(ey.collapsed&&ex!=eA.line){eo(eF,0)}bx(eF,eG);++ex});if(ey.collapsed){eC.iter(eA.line,eB.line+1,function(eF){if(dZ(eC,eF)){eo(eF,0)}})}if(ey.clearOnEnter){bk(ey,"beforeCursorEnter",function(){ey.clear()})}if(ey.readOnly){eq=true;if(eC.history.done.length||eC.history.undone.length){eC.clearHistory()}}if(ey.collapsed){ey.id=++aB;ey.atomic=true}if(eD){if(ew){eD.curOp.updateMaxLine=true}if(ey.className||ey.title||ey.startStyle||ey.endStyle||ey.collapsed){Q(eD,eA.line,eB.line+1)}if(ey.atomic){c7(eD)}}return ey}function t(ez,ex){this.markers=ez;this.primary=ex;for(var ew=0,ey=this;ew<ez.length;++ew){ez[ew].parent=this;bk(ez[ew],"clear",function(){ey.clear()})}}B.SharedTextMarker=t;a0(t);t.prototype.clear=function(){if(this.explicitlyCleared){return}this.explicitlyCleared=true;for(var ew=0;ew<this.markers.length;++ew){this.markers[ew].clear()}O(this,"clear")};t.prototype.find=function(){return this.primary.find()};function G(eA,eD,eC,ew,ey){ew=am(ew);ew.shared=false;var eB=[dh(eA,eD,eC,ew,ey)],ex=eB[0];var ez=ew.replacedWith;cN(eA,function(eF){if(ez){ew.replacedWith=ez.cloneNode(true)}eB.push(dh(eF,d9(eF,eD),d9(eF,eC),ew,ey));for(var eE=0;eE<eF.linked.length;++eE){if(eF.linked[eE].isParent){return}}ex=d7(eB)});return new t(eB,ex)}function dE(ey,ew){if(ey){for(var ex=0;ex<ey.length;++ex){var ez=ey[ex];if(ez.marker==ew){return ez}}}}function dk(ex,ey){for(var ez,ew=0;ew<ex.length;++ew){if(ex[ew]!=ey){(ez||(ez=[])).push(ex[ew])}}return ez}function bx(ew,ex){ew.markedSpans=ew.markedSpans?ew.markedSpans.concat([ex]):[ex];ex.marker.attachLine(ew)}function aq(ex,ey,eC){if(ex){for(var eA=0,eD;eA<ex.length;++eA){var eE=ex[eA],eB=eE.marker;var ew=eE.from==null||(eB.inclusiveLeft?eE.from<=ey:eE.from<ey);if(ew||eE.from==ey&&eB.type=="bookmark"&&(!eC||!eE.marker.insertLeft)){var ez=eE.to==null||(eB.inclusiveRight?eE.to>=ey:eE.to>ey);(eD||(eD=[])).push({from:eE.from,to:ez?null:eE.to,marker:eB})}}}return eD}function af(ex,ez,eC){if(ex){for(var eA=0,eD;eA<ex.length;++eA){var eE=ex[eA],eB=eE.marker;var ey=eE.to==null||(eB.inclusiveRight?eE.to>=ez:eE.to>ez);if(ey||eE.from==ez&&eB.type=="bookmark"&&(!eC||eE.marker.insertLeft)){var ew=eE.from==null||(eB.inclusiveLeft?eE.from<=ez:eE.from<ez);(eD||(eD=[])).push({from:ew?null:eE.from-ez,to:eE.to==null?null:eE.to-ez,marker:eB})}}}return eD}function cY(eI,eF){var eE=bt(eI,eF.from.line)&&dJ(eI,eF.from.line).markedSpans;var eL=bt(eI,eF.to.line)&&dJ(eI,eF.to.line).markedSpans;if(!eE&&!eL){return null}var ex=eF.from.ch,eA=eF.to.ch,eD=d8(eF.from,eF.to);var eC=aq(eE,ex,eD);var eK=af(eL,eA,eD);var eJ=eF.text.length==1,ey=d7(eF.text).length+(eJ?ex:0);if(eC){for(var ez=0;ez<eC.length;++ez){var eH=eC[ez];if(eH.to==null){var eM=dE(eK,eH.marker);if(!eM){eH.to=ex}else{if(eJ){eH.to=eM.to==null?null:eM.to+ey}}}}}if(eK){for(var ez=0;ez<eK.length;++ez){var eH=eK[ez];if(eH.to!=null){eH.to+=ey}if(eH.from==null){var eM=dE(eC,eH.marker);if(!eM){eH.from=ey;if(eJ){(eC||(eC=[])).push(eH)}}}else{eH.from+=ey;if(eJ){(eC||(eC=[])).push(eH)}}}}if(eC){eC=n(eC)}if(eK&&eK!=eC){eK=n(eK)}var eB=[eC];if(!eJ){var eG=eF.text.length-2,ew;if(eG>0&&eC){for(var ez=0;ez<eC.length;++ez){if(eC[ez].to==null){(ew||(ew=[])).push({from:null,to:null,marker:eC[ez].marker})}}}for(var ez=0;ez<eG;++ez){eB.push(ew)}eB.push(eK)}return eB}function n(ex){for(var ew=0;ew<ex.length;++ew){var ey=ex[ew];if(ey.from!=null&&ey.from==ey.to&&ey.marker.clearWhenEmpty!==false){ex.splice(ew--,1)}}if(!ex.length){return null}return ex}function cP(eE,eC){var ew=br(eE,eC);var eF=cY(eE,eC);if(!ew){return eF}if(!eF){return ew}for(var ez=0;ez<ew.length;++ez){var eA=ew[ez],eB=eF[ez];if(eA&&eB){spans:for(var ey=0;ey<eB.length;++ey){var eD=eB[ey];for(var ex=0;ex<eA.length;++ex){if(eA[ex].marker==eD.marker){continue spans}}eA.push(eD)}}else{if(eB){ew[ez]=eB}}}return ew}function bW(eG,eE,eF){var ez=null;eG.iter(eE.line,eF.line+1,function(eH){if(eH.markedSpans){for(var eI=0;eI<eH.markedSpans.length;++eI){var eJ=eH.markedSpans[eI].marker;if(eJ.readOnly&&(!ez||cl(ez,eJ)==-1)){(ez||(ez=[])).push(eJ)}}}});if(!ez){return null}var eA=[{from:eE,to:eF}];for(var eB=0;eB<ez.length;++eB){var eC=ez[eB],ex=eC.find();for(var ey=0;ey<eA.length;++ey){var ew=eA[ey];if(dK(ew.to,ex.from)||dK(ex.to,ew.from)){continue}var eD=[ey,1];if(dK(ew.from,ex.from)||!eC.inclusiveLeft&&d8(ew.from,ex.from)){eD.push({from:ew.from,to:ex.from})}if(dK(ex.to,ew.to)||!eC.inclusiveRight&&d8(ew.to,ex.to)){eD.push({from:ex.to,to:ew.to})}eA.splice.apply(eA,eD);ey+=eD.length-1}}return eA}function r(ew){return ew.inclusiveLeft?-1:0}function bj(ew){return ew.inclusiveRight?1:0}function cF(ez,ex){var eB=ez.lines.length-ex.lines.length;if(eB!=0){return eB}var ey=ez.find(),eC=ex.find();var ew=bz(ey.from,eC.from)||r(ez)-r(ex);if(ew){return -ew}var eA=bz(ey.to,eC.to)||bj(ez)-bj(ex);if(eA){return eA}return ex.id-ez.id}function aC(ex,eB){var ew=aD&&ex.markedSpans,eA;if(ew){for(var ez,ey=0;ey<ew.length;++ey){ez=ew[ey];if(ez.marker.collapsed&&(eB?ez.from:ez.to)==null&&(!eA||cF(eA,ez.marker)<0)){eA=ez.marker}}}return eA}function dn(ew){return aC(ew,true)}function c5(ew){return aC(ew,false)}function v(eE,ey,eC,eD,eA){var eH=dJ(eE,ey);var ew=aD&&eH.markedSpans;if(ew){for(var ez=0;ez<ew.length;++ez){var ex=ew[ez];if(!ex.marker.collapsed){continue}var eG=ex.marker.find(true);var eF=bz(eG.from,eC)||r(ex.marker)-r(eA);var eB=bz(eG.to,eD)||bj(ex.marker)-bj(eA);if(eF>=0&&eB<=0||eF<=0&&eB>=0){continue}if(eF<=0&&(bz(eG.to,eC)||bj(ex.marker)-r(eA))>0||eF>=0&&(bz(eG.from,eD)||r(ex.marker)-bj(eA))<0){return true}}}}function u(ey,ex){var ew;while(ew=dn(ex)){ex=dJ(ey,ew.find().from.line)}return ex}function dZ(eA,ex){var ew=aD&&ex.markedSpans;if(ew){for(var ez,ey=0;ey<ew.length;++ey){ez=ew[ey];if(!ez.marker.collapsed){continue}if(ez.from==null){return true}if(ez.marker.replacedWith){continue}if(ez.from==0&&ez.marker.inclusiveLeft&&J(eA,ex,ez)){return true}}}}function J(eC,ex,ez){if(ez.to==null){var ew=ez.marker.find().to,eA=dJ(eC,ew.line);return J(eC,eA,dE(eA.markedSpans,ez.marker))}if(ez.marker.inclusiveRight&&ez.to==ex.text.length){return true}for(var eB,ey=0;ey<ex.markedSpans.length;++ey){eB=ex.markedSpans[ey];if(eB.marker.collapsed&&!eB.marker.replacedWith&&eB.from==ez.to&&(eB.to==null||eB.to!=ez.from)&&(eB.marker.inclusiveLeft||ez.marker.inclusiveRight)&&J(eC,ex,eB)){return true}}}function ep(ew){var ey=ew.markedSpans;if(!ey){return}for(var ex=0;ex<ey.length;++ex){ey[ex].marker.detachLine(ew)}ew.markedSpans=null}function ca(ew,ey){if(!ey){return}for(var ex=0;ex<ey.length;++ex){ey[ex].marker.attachLine(ew)}ew.markedSpans=ey}var cx=B.LineWidget=function(ew,ez,ex){if(ex){for(var ey in ex){if(ex.hasOwnProperty(ey)){this[ey]=ex[ey]}}}this.cm=ew;this.node=ez};a0(cx);function E(ew){return function(){var ey=!this.cm.curOp;if(ey){bY(this.cm)}try{var ex=ew.apply(this,arguments)}finally{if(ey){W(this.cm)}}return ex}}cx.prototype.clear=E(function(){var ex=this.line.widgets,ez=bc(this.line);if(ez==null||!ex){return}for(var ey=0;ey<ex.length;++ey){if(ex[ey]==this){ex.splice(ey--,1)}}if(!ex.length){this.line.widgets=null}var ew=bb(this.cm,this.line)<this.cm.doc.scrollTop;eo(this.line,Math.max(0,this.line.height-b6(this)));if(ew){b0(this.cm,0,-this.height)}Q(this.cm,ez,ez+1)});cx.prototype.changed=E(function(){var ew=this.height;this.height=null;var ex=b6(this)-ew;if(!ex){return}eo(this.line,this.line.height+ex);var ey=bc(this.line);Q(this.cm,ey,ey+1)});function b6(ew){if(ew.height!=null){return ew.height}if(!ew.node.parentNode||ew.node.parentNode.nodeType!=1){bf(ew.cm.display.measure,ej("div",[ew.node],null,"position: relative"))}return ew.height=ew.node.offsetHeight}function a6(ew,eA,ey,ex){var ez=new cx(ew,ey,ex);if(ez.noHScroll){ew.display.alignWidgets=true}c9(ew,eA,function(eC){var eD=eC.widgets||(eC.widgets=[]);if(ez.insertAt==null){eD.push(ez)}else{eD.splice(Math.min(eD.length-1,Math.max(0,ez.insertAt)),0,ez)}ez.line=eC;if(!dZ(ew.doc,eC)||ez.showIfHidden){var eB=bb(ew,eC)<ew.doc.scrollTop;eo(eC,eC.height+b6(ez));if(eB){b0(ew,0,ez.height)}}return true});return ez}var en=B.Line=function(ey,ex,ew){this.text=ey;ca(this,ex);this.height=ew?ew(this):1};a0(en);en.prototype.lineNo=function(){return bc(this)};function c1(ex,eA,ey,ew){ex.text=eA;if(ex.stateAfter){ex.stateAfter=null}if(ex.styles){ex.styles=null}if(ex.order!=null){ex.order=null}ep(ex);ca(ex,ey);var ez=ew?ew(ex):1;if(ez!=ex.height){eo(ex,ez)}}function a1(ew){ew.parent=null;ep(ew)}function s(eF,eH,eA,ex,eB,ez){var ey=eA.flattenSpans;if(ey==null){ey=eF.options.flattenSpans}var eD=0,eC=null;var eG=new ds(eH,eF.options.tabSize),ew;if(eH==""&&eA.blankLine){eA.blankLine(ex)}while(!eG.eol()){if(eG.pos>eF.options.maxHighlightLength){ey=false;if(ez){cu(eF,eH,ex,eG.pos)}eG.pos=eH.length;ew=null}else{ew=eA.token(eG,ex)}if(eF.options.addModeClass){var eI=B.innerMode(eA,ex).mode.name;if(eI){ew="m-"+(ew?eI+" "+ew:eI)}}if(!ey||eC!=ew){if(eD<eG.start){eB(eG.start,eC)}eD=eG.start;eC=ew}eG.start=eG.pos}while(eD<eG.pos){var eE=Math.min(eG.pos,eD+50000);eB(eE,eC);eD=eE}}function d4(eC,eE,ew,ez){var eD=[eC.state.modeGen];s(eC,eE.text,eC.doc.mode,ew,function(eF,eG){eD.push(eF,eG)},ez);for(var ex=0;ex<eC.state.overlays.length;++ex){var eA=eC.state.overlays[ex],eB=1,ey=0;s(eC,eE.text,eA.mode,true,function(eF,eH){var eJ=eB;while(ey<eF){var eG=eD[eB];if(eG>eF){eD.splice(eB,1,eF,eD[eB+1],eG)}eB+=2;ey=Math.min(eF,eG)}if(!eH){return}if(eA.opaque){eD.splice(eJ,eB-eJ,eF,eH);eB=eJ+2}else{for(;eJ<eB;eJ+=2){var eI=eD[eJ+1];eD[eJ+1]=eI?eI+" "+eH:eH}}})}return eD}function cd(ew,ex){if(!ex.styles||ex.styles[0]!=ew.state.modeGen){ex.styles=d4(ew,ex,ex.stateAfter=cw(ew,bc(ex)))}return ex.styles}function cu(ew,eB,ey,ex){var eA=ew.doc.mode;var ez=new ds(eB,ew.options.tabSize);ez.start=ez.pos=ex||0;if(eB==""&&eA.blankLine){eA.blankLine(ey)}while(!ez.eol()&&ez.pos<=ew.options.maxHighlightLength){eA.token(ez,ey);ez.start=ez.pos}}var cI={},bn={};function du(ez,ey){if(!ez){return null}for(;;){var ex=ez.match(/(?:^|\s)line-(background-)?(\S+)/);if(!ex){break}ez=ez.slice(0,ex.index)+ez.slice(ex.index+ex[0].length);var eA=ex[1]?"bgClass":"textClass";if(ey[eA]==null){ey[eA]=ex[2]}else{if(!(new RegExp("(?:^|s)"+ex[2]+"(?:$|s)")).test(ey[eA])){ey[eA]+=" "+ex[2]}}}var ew=ey.cm.options.addModeClass?bn:cI;return ew[ez]||(ew[ez]="cm-"+ez.replace(/ +/g," cm-"))}function dq(eF,eJ,ew,eI){var eG,eK=eJ,eB=true;while(eG=dn(eK)){eK=dJ(eF.doc,eG.find().from.line)}var eC={pre:ej("pre"),col:0,pos:0,measure:null,measuredSomething:false,cm:eF,copyWidgets:eI};do{if(eK.text){eB=false}eC.measure=eK==eJ&&ew;eC.pos=0;eC.addToken=eC.measure?e:p;if((cf||b8)&&eF.getOption("lineWrapping")){eC.addToken=d6(eC.addToken)}var eA=aU(eK,eC,cd(eF,eK));if(ew&&eK==eJ&&!eC.measuredSomething){ew[0]=eC.pre.appendChild(aS(eF.display.measure));eC.measuredSomething=true}if(eA){eK=dJ(eF.doc,eA.to.line)}}while(eA);if(ew&&!eC.measuredSomething&&!ew[0]){ew[0]=eC.pre.appendChild(eB?ej("span","\u00a0"):aS(eF.display.measure))}if(!eC.pre.firstChild&&!dZ(eF.doc,eJ)){eC.pre.appendChild(document.createTextNode("\u00a0"))}var ex;if(ew&&cA&&(ex=a(eK))){var ez=ex.length-1;if(ex[ez].from==ex[ez].to){--ez}var eH=ex[ez],ey=ex[ez-1];if(eH.from+1==eH.to&&ey&&eH.level<ey.level){var eE=ew[eC.pos-1];if(eE){eE.parentNode.insertBefore(eE.measureRight=aS(eF.display.measure),eE.nextSibling)}}}var eD=eC.textClass?eC.textClass+" "+(eJ.textClass||""):eJ.textClass;if(eD){eC.pre.className=eD}ah(eF,"renderLine",eF,eJ,eC.pre);return eC}function dH(ex){var ew=ej("span","\u2022","cm-invalidchar");ew.title="\\u"+ex.charCodeAt(0).toString(16);return ew}function p(eA,eJ,ew,ez,eK,eI){if(!eJ){return}var eE=eA.cm.options.specialChars;if(!eE.test(eJ)){eA.col+=eJ.length;var eD=document.createTextNode(eJ)}else{var eD=document.createDocumentFragment(),eG=0;while(true){eE.lastIndex=eG;var ex=eE.exec(eJ);var eC=ex?ex.index-eG:eJ.length-eG;if(eC){eD.appendChild(document.createTextNode(eJ.slice(eG,eG+eC)));eA.col+=eC}if(!ex){break}eG+=eC+1;if(ex[0]=="\t"){var eB=eA.cm.options.tabSize,eF=eB-eA.col%eB;eD.appendChild(ej("span",bJ(eF),"cm-tab"));eA.col+=eF}else{var ey=eA.cm.options.specialCharPlaceholder(ex[0]);eD.appendChild(ey);eA.col+=1}}}if(ew||ez||eK||eA.measure){var eH=ew||"";if(ez){eH+=ez}if(eK){eH+=eK}var ey=ej("span",[eD],eH);if(eI){ey.title=eI}return eA.pre.appendChild(ey)}eA.pre.appendChild(eD)}function e(eD,eG,ex,eA,eH){var eC=eD.cm.options.lineWrapping;for(var eB=0;eB<eG.length;++eB){var ey=eB==0,eF=eB+1;while(eF<eG.length&&dV(eG.charAt(eF))){++eF}var ew=eG.slice(eB,eF);eB=eF-1;if(eB&&eC&&bu(eG,eB)){eD.pre.appendChild(ej("wbr"))}var ez=eD.measure[eD.pos];var eE=eD.measure[eD.pos]=p(eD,ew,ex,ey&&eA,eB==eG.length-1&&eH);if(ez){eE.leftSide=ez.leftSide||ez}if(cf&&eC&&ew==" "&&eB&&!/\s/.test(eG.charAt(eB-1))&&eB<eG.length-1&&!/\s/.test(eG.charAt(eB+1))){eE.style.whiteSpace="normal"}eD.pos+=ew.length}if(eG.length){eD.measuredSomething=true}}function d6(ew){function ex(ey){var ez=" ";for(var eA=0;eA<ey.length-2;++eA){ez+=eA%2?" ":"\u00a0"}ez+=" ";return ez}return function(ez,eD,eA,ey,eC,eB){return ew(ez,eD.replace(/ {3,}/g,ex),eA,ey,eC,eB)}}function M(ex,eA,ew,ez){var eB=!ez&&ew.replacedWith;if(eB){if(ex.copyWidgets){eB=eB.cloneNode(true)}ex.pre.appendChild(eB);if(ex.measure){if(eA){ex.measure[ex.pos]=eB}else{var ey=aS(ex.cm.display.measure);if(ew.type=="bookmark"&&!ew.insertLeft){ex.measure[ex.pos]=ex.pre.appendChild(ey)}else{if(ex.measure[ex.pos]){return}else{ex.measure[ex.pos]=ex.pre.insertBefore(ey,eB)}}}ex.measuredSomething=true}}ex.pos+=eA}function aU(eF,eL,eE){var eB=eF.markedSpans,eD=eF.text,eJ=0;if(!eB){for(var eO=1;eO<eE.length;eO+=2){eL.addToken(eL,eD.slice(eJ,eJ=eE[eO]),du(eE[eO+1],eL))}return}var eP=eD.length,eA=0,eO=1,eH="",eQ;var eS=0,ew,eR,eI,eT,ey;for(;;){if(eS==eA){ew=eR=eI=eT="";ey=null;eS=Infinity;var eC=[];for(var eM=0;eM<eB.length;++eM){var eN=eB[eM],eK=eN.marker;if(eN.from<=eA&&(eN.to==null||eN.to>eA)){if(eN.to!=null&&eS>eN.to){eS=eN.to;eR=""}if(eK.className){ew+=" "+eK.className}if(eK.startStyle&&eN.from==eA){eI+=" "+eK.startStyle}if(eK.endStyle&&eN.to==eS){eR+=" "+eK.endStyle}if(eK.title&&!eT){eT=eK.title}if(eK.collapsed&&(!ey||cF(ey.marker,eK)<0)){ey=eN}}else{if(eN.from>eA&&eS>eN.from){eS=eN.from}}if(eK.type=="bookmark"&&eN.from==eA&&eK.replacedWith){eC.push(eK)}}if(ey&&(ey.from||0)==eA){M(eL,(ey.to==null?eP:ey.to)-eA,ey.marker,ey.from==null);if(ey.to==null){return ey.marker.find()}}if(!ey&&eC.length){for(var eM=0;eM<eC.length;++eM){M(eL,0,eC[eM])}}}if(eA>=eP){break}var eG=Math.min(eP,eS);while(true){if(eH){var ex=eA+eH.length;if(!ey){var ez=ex>eG?eH.slice(0,eG-eA):eH;eL.addToken(eL,ez,eQ?eQ+ew:ew,eI,eA+ez.length==eS?eR:"",eT)}if(ex>=eG){eH=eH.slice(eG-eA);eA=eG;break}eA=ex;eI=""}eH=eD.slice(eJ,eJ=eE[eO++]);eQ=du(eE[eO++],eL)}}}function d2(eN,eE,eA,eI,eC){function ez(eO){return eA?eA[eO]:null}function eD(eO,eQ,eP){c1(eO,eQ,eP,eC);O(eO,"change",eO,eE)}var eJ=eE.from,ex=eE.to,eG=eE.text;var eF=dJ(eN,eJ.line),ew=dJ(eN,ex.line);var ey=d7(eG),eL=ez(eG.length-1),eH=ex.line-eJ.line;if(eJ.ch==0&&ex.ch==0&&ey==""&&(!eN.cm||eN.cm.options.wholeLineUpdateBefore)){for(var eK=0,eM=eG.length-1,eB=[];eK<eM;++eK){eB.push(new en(eG[eK],ez(eK),eC))}eD(ew,ew.text,eL);if(eH){eN.remove(eJ.line,eH)}if(eB.length){eN.insert(eJ.line,eB)}}else{if(eF==ew){if(eG.length==1){eD(eF,eF.text.slice(0,eJ.ch)+ey+eF.text.slice(ex.ch),eL)}else{for(var eB=[],eK=1,eM=eG.length-1;eK<eM;++eK){eB.push(new en(eG[eK],ez(eK),eC))}eB.push(new en(ey+eF.text.slice(ex.ch),eL,eC));eD(eF,eF.text.slice(0,eJ.ch)+eG[0],ez(0));eN.insert(eJ.line+1,eB)}}else{if(eG.length==1){eD(eF,eF.text.slice(0,eJ.ch)+eG[0]+ew.text.slice(ex.ch),ez(0));eN.remove(eJ.line+1,eH)}else{eD(eF,eF.text.slice(0,eJ.ch)+eG[0],ez(0));eD(ew,ey+ew.text.slice(ex.ch),eL);for(var eK=1,eM=eG.length-1,eB=[];eK<eM;++eK){eB.push(new en(eG[eK],ez(eK),eC))}if(eH>1){eN.remove(eJ.line+1,eH-1)}eN.insert(eJ.line+1,eB)}}}O(eN,"change",eN,eE);bh(eN,eI.anchor,eI.head,null,true)}function dx(ex){this.lines=ex;this.parent=null;for(var ey=0,ez=ex.length,ew=0;ey<ez;++ey){ex[ey].parent=this;ew+=ex[ey].height}this.height=ew}dx.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ew,eA){for(var ey=ew,ez=ew+eA;ey<ez;++ey){var ex=this.lines[ey];this.height-=ex.height;a1(ex);O(ex,"delete")}this.lines.splice(ew,eA)},collapse:function(ew){ew.splice.apply(ew,[ew.length,0].concat(this.lines))},insertInner:function(ex,ey,ew){this.height+=ew;this.lines=this.lines.slice(0,ex).concat(ey).concat(this.lines.slice(ex));for(var ez=0,eA=ey.length;ez<eA;++ez){ey[ez].parent=this}},iterN:function(ew,ez,ey){for(var ex=ew+ez;ew<ex;++ew){if(ey(this.lines[ew])){return true}}}};function d0(ez){this.children=ez;var ey=0,ew=0;for(var ex=0,eB=ez.length;ex<eB;++ex){var eA=ez[ex];ey+=eA.chunkSize();ew+=eA.height;eA.parent=this}this.size=ey;this.height=ew;this.parent=null}d0.prototype={chunkSize:function(){return this.size},removeInner:function(ew,eD){this.size-=eD;for(var ey=0;ey<this.children.length;++ey){var eC=this.children[ey],eA=eC.chunkSize();if(ew<eA){var ez=Math.min(eD,eA-ew),eB=eC.height;eC.removeInner(ew,ez);this.height-=eB-eC.height;if(eA==ez){this.children.splice(ey--,1);eC.parent=null}if((eD-=ez)==0){break}ew=0}else{ew-=eA}}if(this.size-eD<25){var ex=[];this.collapse(ex);this.children=[new dx(ex)];this.children[0].parent=this}},collapse:function(ew){for(var ex=0,ey=this.children.length;ex<ey;++ex){this.children[ex].collapse(ew)}},insertInner:function(ex,eE,eD){this.size+=eE.length;this.height+=eD;for(var ey=0,eA=this.children.length;ey<eA;++ey){var ew=this.children[ey],eB=ew.chunkSize();if(ex<=eB){ew.insertInner(ex,eE,eD);if(ew.lines&&ew.lines.length>50){while(ew.lines.length>50){var ez=ew.lines.splice(ew.lines.length-25,25);var eC=new dx(ez);ew.height-=eC.height;this.children.splice(ey+1,0,eC);eC.parent=this}this.maybeSpill()}break}ex-=eB}},maybeSpill:function(){if(this.children.length<=10){return}var ez=this;do{var ex=ez.children.splice(ez.children.length-5,5);var ey=new d0(ex);if(!ez.parent){var eA=new d0(ez.children);eA.parent=ez;ez.children=[eA,ey];ez=eA}else{ez.size-=ey.size;ez.height-=ey.height;var ew=cl(ez.parent.children,ez);ez.parent.children.splice(ew+1,0,ey)}ey.parent=ez.parent}while(ez.children.length>10);ez.parent.maybeSpill()},iterN:function(ew,eD,eC){for(var ex=0,eA=this.children.length;ex<eA;++ex){var eB=this.children[ex],ez=eB.chunkSize();if(ew<ez){var ey=Math.min(eD,ez-ew);if(eB.iterN(ew,ey,eC)){return true}if((eD-=ey)==0){break}ew=0}else{ew-=ez}}}};var bK=0;var aa=B.Doc=function(ey,ex,ew){if(!(this instanceof aa)){return new aa(ey,ex,ew)}if(ew==null){ew=0}d0.call(this,[new dx([new en("",null)])]);this.first=ew;this.scrollTop=this.scrollLeft=0;this.cantEdit=false;this.history=ac();this.cleanGeneration=1;this.frontier=ew;var ez=K(ew,0);this.sel={from:ez,to:ez,head:ez,anchor:ez,shift:false,extend:false,goalColumn:null};this.id=++bK;this.modeOption=ex;if(typeof ey=="string"){ey=ay(ey)}d2(this,{from:ez,to:ez,text:ey},null,{head:ez,anchor:ez})};aa.prototype=bD(d0.prototype,{constructor:aa,iter:function(ey,ex,ew){if(ew){this.iterN(ey-this.first,ex-ey,ew)}else{this.iterN(this.first,this.first+this.size,ey)}},insert:function(ex,ey){var ew=0;for(var ez=0,eA=ey.length;ez<eA;++ez){ew+=ey[ez].height}this.insertInner(ex-this.first,ey,ew)},remove:function(ew,ex){this.removeInner(ew-this.first,ex)},getValue:function(ex){var ew=aA(this,this.first,this.first+this.size);if(ex===false){return ew}return ew.join(ex||"\n")},setValue:function(ex){var ey=K(this.first,0),ew=this.first+this.size-1;aL(this,{from:ey,to:K(ew,dJ(this,ew).text.length),text:ay(ex),origin:"setValue"},{head:ey,anchor:ey},true)},replaceRange:function(ex,ez,ey,ew){ez=d9(this,ez);ey=ey?d9(this,ey):ez;az(this,ex,ez,ey,ew)},getRange:function(ez,ey,ex){var ew=el(this,d9(this,ez),d9(this,ey));if(ex===false){return ew}return ew.join(ex||"\n")},getLine:function(ex){var ew=this.getLineHandle(ex);return ew&&ew.text},setLine:function(ew,ex){if(bt(this,ew)){az(this,ex,K(ew,0),d9(this,K(ew)))}},removeLine:function(ew){if(ew){az(this,"",d9(this,K(ew-1)),d9(this,K(ew)))}else{az(this,"",K(0,0),d9(this,K(1,0)))}},getLineHandle:function(ew){if(bt(this,ew)){return dJ(this,ew)}},getLineNumber:function(ew){return bc(ew)},getLineHandleVisualStart:function(ew){if(typeof ew=="number"){ew=dJ(this,ew)}return u(this,ew)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ew){return d9(this,ew)},getCursor:function(ey){var ew=this.sel,ex;if(ey==null||ey=="head"){ex=ew.head}else{if(ey=="anchor"){ex=ew.anchor}else{if(ey=="end"||ey===false){ex=ew.to}else{ex=ew.from}}}return bC(ex)},somethingSelected:function(){return !d8(this.sel.head,this.sel.anchor)},setCursor:d3(function(ew,ex,ez){var ey=d9(this,typeof ew=="number"?K(ew,ex||0):ew);if(ez){eg(this,ey)}else{bh(this,ey,ey)}}),setSelection:d3(function(ex,ey,ew){bh(this,d9(this,ex),d9(this,ey||ex),ew)}),extendSelection:d3(function(ey,ex,ew){eg(this,d9(this,ey),ex&&d9(this,ex),ew)}),getSelection:function(ew){return this.getRange(this.sel.from,this.sel.to,ew)},replaceSelection:function(ex,ey,ew){aL(this,{from:this.sel.from,to:this.sel.to,text:ay(ex),origin:ew},ey||"around")},undo:d3(function(){bs(this,"undo")}),redo:d3(function(){bs(this,"redo")}),setExtending:function(ew){this.sel.extend=ew},historySize:function(){var ew=this.history;return{undo:ew.done.length,redo:ew.undone.length}},clearHistory:function(){this.history=ac(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(true)},changeGeneration:function(ew){if(ew){this.history.lastOp=this.history.lastOrigin=null}return this.history.generation},isClean:function(ew){return this.history.generation==(ew||this.cleanGeneration)},getHistory:function(){return{done:bd(this.history.done),undone:bd(this.history.undone)}},setHistory:function(ex){var ew=this.history=ac(this.history.maxGeneration);ew.done=ex.done.slice(0);ew.undone=ex.undone.slice(0)},markText:function(ey,ex,ew){return dh(this,d9(this,ey),d9(this,ex),ew,"range")},setBookmark:function(ey,ew){var ex={replacedWith:ew&&(ew.nodeType==null?ew.widget:ew),insertLeft:ew&&ew.insertLeft,clearWhenEmpty:false};ey=d9(this,ey);return dh(this,ey,ey,ex,"bookmark")},findMarksAt:function(eA){eA=d9(this,eA);var ez=[],ex=dJ(this,eA.line).markedSpans;if(ex){for(var ew=0;ew<ex.length;++ew){var ey=ex[ew];if((ey.from==null||ey.from<=eA.ch)&&(ey.to==null||ey.to>=eA.ch)){ez.push(ey.marker.parent||ey.marker)}}}return ez},getAllMarks:function(){var ew=[];this.iter(function(ey){var ex=ey.markedSpans;if(ex){for(var ez=0;ez<ex.length;++ez){if(ex[ez].from!=null){ew.push(ex[ez].marker)}}}});return ew},posFromIndex:function(ex){var ew,ey=this.first;this.iter(function(ez){var eA=ez.text.length+1;if(eA>ex){ew=ex;return true}ex-=eA;++ey});return d9(this,K(ey,ew))},indexFromPos:function(ex){ex=d9(this,ex);var ew=ex.ch;if(ex.line<this.first||ex.ch<0){return 0}this.iter(this.first,ex.line,function(ey){ew+=ey.text.length+1});return ew},copy:function(ew){var ex=new aa(aA(this,this.first,this.first+this.size),this.modeOption,this.first);ex.scrollTop=this.scrollTop;ex.scrollLeft=this.scrollLeft;ex.sel={from:this.sel.from,to:this.sel.to,head:this.sel.head,anchor:this.sel.anchor,shift:this.sel.shift,extend:false,goalColumn:this.sel.goalColumn};if(ew){ex.history.undoDepth=this.history.undoDepth;ex.setHistory(this.getHistory())}return ex},linkedDoc:function(ew){if(!ew){ew={}}var ez=this.first,ey=this.first+this.size;if(ew.from!=null&&ew.from>ez){ez=ew.from}if(ew.to!=null&&ew.to<ey){ey=ew.to}var ex=new aa(aA(this,ez,ey),ew.mode||this.modeOption,ez);if(ew.sharedHist){ex.history=this.history}(this.linked||(this.linked=[])).push({doc:ex,sharedHist:ew.sharedHist});ex.linked=[{doc:this,isParent:true,sharedHist:ew.sharedHist}];return ex},unlinkDoc:function(ex){if(ex instanceof B){ex=ex.doc}if(this.linked){for(var ey=0;ey<this.linked.length;++ey){var ez=this.linked[ey];if(ez.doc!=ex){continue}this.linked.splice(ey,1);ex.unlinkDoc(this);break}}if(ex.history==this.history){var ew=[ex.id];cN(ex,function(eA){ew.push(eA.id)},true);ex.history=ac();ex.history.done=bd(this.history.done,ew);ex.history.undone=bd(this.history.undone,ew)}},iterLinkedDocs:function(ew){cN(this,ew)},getMode:function(){return this.mode},getEditor:function(){return this.cm}});aa.prototype.eachLine=aa.prototype.iter;var d="iter insert remove copy getEditor".split(" ");for(var a9 in aa.prototype){if(aa.prototype.hasOwnProperty(a9)&&cl(d,a9)<0){B.prototype[a9]=(function(ew){return function(){return ew.apply(this.doc,arguments)}})(aa.prototype[a9])}}a0(aa);function cN(ez,ey,ex){function ew(eF,eD,eB){if(eF.linked){for(var eC=0;eC<eF.linked.length;++eC){var eA=eF.linked[eC];if(eA.doc==eD){continue}var eE=eB&&eA.sharedHist;if(ex&&!eE){continue}ey(eA.doc,eE);ew(eA.doc,eF,eE)}}}ew(ez,null,true)}function cQ(ew,ex){if(ex.cm){throw new Error("This document is already in use.")}ew.doc=ex;ex.cm=ew;L(ew);aW(ew);if(!ew.options.lineWrapping){em(ew)}ew.options.mode=ex.modeOption;Q(ew)}function dJ(ew,eA){eA-=ew.first;while(!ew.lines){for(var ex=0;;++ex){var ez=ew.children[ex],ey=ez.chunkSize();if(eA<ey){ew=ez;break}eA-=ey}}return ew.lines[eA]}function el(ey,eA,ew){var ex=[],ez=eA.line;ey.iter(eA.line,ew.line+1,function(eB){var eC=eB.text;if(ez==ew.line){eC=eC.slice(0,ew.ch)}if(ez==eA.line){eC=eC.slice(eA.ch)}ex.push(eC);++ez});return ex}function aA(ex,ez,ey){var ew=[];ex.iter(ez,ey,function(eA){ew.push(eA.text)});return ew}function eo(ex,ew){var ey=ew-ex.height;for(var ez=ex;ez;ez=ez.parent){ez.height+=ey}}function bc(ew){if(ew.parent==null){return null}var eA=ew.parent,ez=cl(eA.lines,ew);for(var ex=eA.parent;ex;eA=ex,ex=ex.parent){for(var ey=0;;++ey){if(ex.children[ey]==eA){break}ez+=ex.children[ey].chunkSize()}}return ez+eA.first}function a5(eC,eA){var ey=eC.first;outer:do{for(var ez=0,eB=eC.children.length;ez<eB;++ez){var ex=eC.children[ez],ew=ex.height;if(eA<ew){eC=ex;continue outer}eA-=ew;ey+=ex.chunkSize()}return ey}while(!eC.lines);for(var ez=0,eB=eC.lines.length;ez<eB;++ez){var eE=eC.lines[ez],eD=eE.height;if(eA<eD){break}eA-=eD}return ey+ez}function bb(ew,ez){ez=u(ew.doc,ez);var eB=0,ey=ez.parent;for(var eA=0;eA<ey.lines.length;++eA){var ex=ey.lines[eA];if(ex==ez){break}else{eB+=ex.height}}for(var eC=ey.parent;eC;ey=eC,eC=ey.parent){for(var eA=0;eA<eC.children.length;++eA){var eD=eC.children[eA];if(eD==ey){break}else{eB+=eD.height}}}return eB}function a(ex){var ew=ex.order;if(ew==null){ew=ex.order=aM(ex.text)}return ew}function ac(ew){return{done:[],undone:[],undoDepth:Infinity,lastTime:0,lastOp:null,lastOrigin:null,generation:ew||1,maxGeneration:ew||1}}function bl(ex,eB,eA,ez){var ew=eB["spans_"+ex.id],ey=0;ex.iter(Math.max(ex.first,eA),Math.min(ex.first+ex.size,ez),function(eC){if(eC.markedSpans){(ew||(ew=eB["spans_"+ex.id]={}))[ey]=eC.markedSpans}++ey})}function cs(ew,ez){var ey={line:ez.from.line,ch:ez.from.ch};var ex={from:ey,to:b5(ez),text:el(ew,ez.from,ez.to)};bl(ew,ex,ez.from.line,ez.to.line+1);cN(ew,function(eA){bl(eA,ex,ez.from.line,ez.to.line+1)},true);return ex}function di(eB,eD,eA,ew){var ez=eB.history;ez.undone.length=0;var ey=+new Date,eC=d7(ez.done);if(eC&&(ez.lastOp==ew||ez.lastOrigin==eD.origin&&eD.origin&&((eD.origin.charAt(0)=="+"&&eB.cm&&ez.lastTime>ey-eB.cm.options.historyEventDelay)||eD.origin.charAt(0)=="*"))){var ex=d7(eC.changes);if(d8(eD.from,eD.to)&&d8(eD.from,ex.to)){ex.to=b5(eD)}else{eC.changes.push(cs(eB,eD))}eC.anchorAfter=eA.anchor;eC.headAfter=eA.head}else{eC={changes:[cs(eB,eD)],generation:ez.generation,anchorBefore:eB.sel.anchor,headBefore:eB.sel.head,anchorAfter:eA.anchor,headAfter:eA.head};ez.done.push(eC);while(ez.done.length>ez.undoDepth){ez.done.shift()}}ez.generation=++ez.maxGeneration;ez.lastTime=ey;ez.lastOp=ew;ez.lastOrigin=eD.origin}function aP(ey){if(!ey){return null}for(var ex=0,ew;ex<ey.length;++ex){if(ey[ex].marker.explicitlyCleared){if(!ew){ew=ey.slice(0,ex)}}else{if(ew){ew.push(ey[ex])}}}return !ew?ey:ew.length?ew:null}function br(ez,eA){var ey=eA["spans_"+ez.id];if(!ey){return null}for(var ex=0,ew=[];ex<eA.text.length;++ex){ew.push(aP(ey[ex]))}return ew}function bd(eG,ez){for(var eC=0,ex=[];eC<eG.length;++eC){var ey=eG[eC],eE=ey.changes,eF=[];ex.push({changes:eF,anchorBefore:ey.anchorBefore,headBefore:ey.headBefore,anchorAfter:ey.anchorAfter,headAfter:ey.headAfter});for(var eB=0;eB<eE.length;++eB){var eD=eE[eB],eA;eF.push({from:eD.from,to:eD.to,text:eD.text});if(ez){for(var ew in eD){if(eA=ew.match(/^spans_(\d+)$/)){if(cl(ez,Number(eA[1]))>-1){d7(eF)[ew]=eD[ew];delete eD[ew]}}}}}}return ex}function dv(ez,ey,ex,ew){if(ex<ez.line){ez.line+=ew}else{if(ey<ez.line){ez.line=ey;ez.ch=0}}}function dM(ez,eB,eC,eD){for(var ey=0;ey<ez.length;++ey){var ew=ez[ey],eA=true;for(var ex=0;ex<ew.changes.length;++ex){var eE=ew.changes[ex];if(!ew.copied){eE.from=bC(eE.from);eE.to=bC(eE.to)}if(eC<eE.from.line){eE.from.line+=eD;eE.to.line+=eD}else{if(eB<=eE.to.line){eA=false;break}}}if(!ew.copied){ew.anchorBefore=bC(ew.anchorBefore);ew.headBefore=bC(ew.headBefore);ew.anchorAfter=bC(ew.anchorAfter);ew.readAfter=bC(ew.headAfter);ew.copied=true}if(!eA){ez.splice(0,ey+1);ey=0}else{dv(ew.anchorBefore);dv(ew.headBefore);dv(ew.anchorAfter);dv(ew.headAfter)}}}function cz(ex,eA){var ez=eA.from.line,ey=eA.to.line,ew=eA.text.length-(ey-ez)-1;dM(ex.done,ez,ey,ew);dM(ex.undone,ez,ey,ew)}function dr(){c2(this)}function Y(ew){if(!ew.stop){ew.stop=dr}return ew}function bV(ew){if(ew.preventDefault){ew.preventDefault()}else{ew.returnValue=false}}function cp(ew){if(ew.stopPropagation){ew.stopPropagation()}else{ew.cancelBubble=true}}function ba(ew){return ew.defaultPrevented!=null?ew.defaultPrevented:ew.returnValue==false}function c2(ew){bV(ew);cp(ew)}B.e_stop=c2;B.e_preventDefault=bV;B.e_stopPropagation=cp;function D(ew){return ew.target||ew.srcElement}function eb(ex){var ew=ex.which;if(ew==null){if(ex.button&1){ew=1}else{if(ex.button&2){ew=3}else{if(ex.button&4){ew=2}}}}if(bq&&ex.ctrlKey&&ew==1){ew=3}return ew}function bk(ez,ex,ey){if(ez.addEventListener){ez.addEventListener(ex,ey,false)}else{if(ez.attachEvent){ez.attachEvent("on"+ex,ey)}else{var eA=ez._handlers||(ez._handlers={});var ew=eA[ex]||(eA[ex]=[]);ew.push(ey)}}}function cT(eA,ey,ez){if(eA.removeEventListener){eA.removeEventListener(ey,ez,false)}else{if(eA.detachEvent){eA.detachEvent("on"+ey,ez)}else{var ew=eA._handlers&&eA._handlers[ey];if(!ew){return}for(var ex=0;ex<ew.length;++ex){if(ew[ex]==ez){ew.splice(ex,1);break}}}}}function ah(eA,ez){var ew=eA._handlers&&eA._handlers[ez];if(!ew){return}var ex=Array.prototype.slice.call(arguments,2);for(var ey=0;ey<ew.length;++ey){ew[ey].apply(null,ex)}}var aT,bL=0;function O(eB,eA){var ew=eB._handlers&&eB._handlers[eA];if(!ew){return}var ey=Array.prototype.slice.call(arguments,2);if(!aT){++bL;aT=[];setTimeout(da,0)}function ex(eC){return function(){eC.apply(null,ey)}}for(var ez=0;ez<ew.length;++ez){aT.push(ex(ew[ez]))}}function ar(ew,ey,ex){ah(ew,ex||ey.type,ew,ey);return ba(ey)||ey.codemirrorIgnore}function da(){--bL;var ew=aT;aT=null;for(var ex=0;ex<ew.length;++ex){ew[ex]()}}function dP(ey,ex){var ew=ey._handlers&&ey._handlers[ex];return ew&&ew.length>0}B.on=bk;B.off=cT;B.signal=ah;function a0(ew){ew.prototype.on=function(ex,ey){bk(this,ex,ey)};ew.prototype.off=function(ex,ey){cT(this,ex,ey)}}var aO=30;var bv=B.Pass={toString:function(){return"CodeMirror.Pass"}};function ev(){this.id=null}ev.prototype={set:function(ew,ex){clearTimeout(this.id);this.id=setTimeout(ex,ew)}};function bg(ey,ew,eA,eB,ex){if(ew==null){ew=ey.search(/[^\s\u00a0]/);if(ew==-1){ew=ey.length}}for(var ez=eB||0,eC=ex||0;ez<ew;++ez){if(ey.charAt(ez)=="\t"){eC+=eA-(eC%eA)}else{++eC}}return eC}B.countColumn=bg;var ax=[""];function bJ(ew){while(ax.length<=ew){ax.push(d7(ax)+" ")}return ax[ew]}function d7(ew){return ew[ew.length-1]}function cC(ex){if(dy){ex.selectionStart=0;ex.selectionEnd=ex.value.length}else{try{ex.select()}catch(ew){}}}function cl(ez,ew){if(ez.indexOf){return ez.indexOf(ew)}for(var ex=0,ey=ez.length;ex<ey;++ex){if(ez[ex]==ew){return ex}}return -1}function bD(ez,ex){function ew(){}ew.prototype=ez;var ey=new ew();if(ex){am(ex,ey)}return ey}function am(ex,ew){if(!ew){ew={}}for(var ey in ex){if(ex.hasOwnProperty(ey)){ew[ey]=ex[ey]}}return ew}function U(ey){for(var ew=[],ex=0;ex<ey;++ex){ew.push(undefined)}return ew}function bO(ex){var ew=Array.prototype.slice.call(arguments,1);return function(){return ex.apply(null,ew)}}var aI=/[\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function bR(ew){return/\w/.test(ew)||ew>"\x80"&&(ew.toUpperCase()!=ew.toLowerCase()||aI.test(ew))}function dt(ew){for(var ex in ew){if(ew.hasOwnProperty(ex)&&ew[ex]){return false}}return true}var dl=/[\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]/;function dV(ew){return ew.charCodeAt(0)>=768&&dl.test(ew)}function ej(ew,eA,ez,ey){var eB=document.createElement(ew);if(ez){eB.className=ez}if(ey){eB.style.cssText=ey}if(typeof eA=="string"){l(eB,eA)}else{if(eA){for(var ex=0;ex<eA.length;++ex){eB.appendChild(eA[ex])}}}return eB}function cK(ex){for(var ew=ex.childNodes.length;ew>0;--ew){ex.removeChild(ex.firstChild)}return ex}function bf(ew,ex){return cK(ew).appendChild(ex)}function l(ew,ex){if(bE){ew.innerHTML="";ew.appendChild(document.createTextNode(ex))}else{ew.textContent=ex}}function an(ew){return ew.getBoundingClientRect()}B.replaceGetRect=function(ew){an=ew};var dm=function(){if(bE){return false}var ew=ej("div");return"draggable" in ew||"dragDrop" in ew}();function bu(){return false}if(bI){bu=function(ex,ew){return ex.charCodeAt(ew-1)==36&&ex.charCodeAt(ew)==39}}else{if(ag&&!/Version\/([6-9]|\d\d)\b/.test(navigator.userAgent)){bu=function(ex,ew){return/\-[^ \-?]|\?[^ !\'\"\),.\-\/:;\?\]\}]/.test(ex.slice(ew-1,ew+1))}}else{if(b8&&/Chrome\/(?:29|[3-9]\d|\d\d\d)\./.test(navigator.userAgent)){bu=function(ey,ew){var ex=ey.charCodeAt(ew-1);return ex>=8208&&ex<=8212}}else{if(b8){bu=function(ex,ew){if(ew>1&&ex.charCodeAt(ew-1)==45){if(/\w/.test(ex.charAt(ew-2))&&/[^\-?\.]/.test(ex.charAt(ew))){return true}if(ew>2&&/[\d\.,]/.test(ex.charAt(ew-2))&&/[\d\.,]/.test(ex.charAt(ew))){return false}}return/[~!#%&*)=+}\]\\|\"\.>,:;][({[<]|-[^\-?\.\u2010-\u201f\u2026]|\?[\w~`@#$%\^&*(_=+{[|><]|\u2026[\w~`@#$%\^&*(_=+{[><]/.test(ex.slice(ew-1,ew+1))}}}}}var c6;function i(ew){if(c6!=null){return c6}var ex=ej("div",null,null,"width: 50px; height: 50px; overflow-x: scroll");bf(ew,ex);if(ex.offsetWidth){c6=ex.offsetHeight-ex.clientHeight}return c6||0}var ea;function aS(ew){if(ea==null){var ex=ej("span","\u200b");bf(ew,ej("span",[ex,document.createTextNode("x")]));if(ew.firstChild.offsetHeight!=0){ea=ex.offsetWidth<=1&&ex.offsetHeight>2&&!bF}}if(ea){return ej("span","\u200b")}else{return ej("span","\u00a0",null,"display: inline-block; width: 1px; margin-right: -1px")}}var ay="\n\nb".split(/\n/).length!=3?function(eB){var eC=0,ew=[],eA=eB.length;while(eC<=eA){var ez=eB.indexOf("\n",eC);if(ez==-1){ez=eB.length}var ey=eB.slice(eC,eB.charAt(ez-1)=="\r"?ez-1:ez);var ex=ey.indexOf("\r");if(ex!=-1){ew.push(ey.slice(0,ex));eC+=ex+1}else{ew.push(ey);eC=ez+1}}return ew}:function(ew){return ew.split(/\r\n?|\n/)};B.splitLines=ay;var aX=window.getSelection?function(ex){try{return ex.selectionStart!=ex.selectionEnd}catch(ew){return false}}:function(ey){try{var ew=ey.ownerDocument.selection.createRange()}catch(ex){}if(!ew||ew.parentElement()!=ey){return false}return ew.compareEndPoints("StartToEnd",ew)!=0};var ce=(function(){var ew=ej("div");if("oncopy" in ew){return true}ew.setAttribute("oncopy","return;");return typeof ew.oncopy=="function"})();var dL={3:"Enter",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",107:"=",109:"-",127:"Delete",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"};B.keyNames=dL;(function(){for(var ew=0;ew<10;ew++){dL[ew+48]=dL[ew+96]=String(ew)}for(var ew=65;ew<=90;ew++){dL[ew]=String.fromCharCode(ew)}for(var ew=1;ew<=12;ew++){dL[ew+111]=dL[ew+63235]="F"+ew}})();function cL(ew,eC,eB,eA){if(!ew){return eA(eC,eB,"ltr")}var ez=false;for(var ey=0;ey<ew.length;++ey){var ex=ew[ey];if(ex.from<eB&&ex.to>eC||eC==eB&&ex.to==eC){eA(Math.max(ex.from,eC),Math.min(ex.to,eB),ex.level==1?"rtl":"ltr");ez=true}}if(!ez){eA(eC,eB,"ltr")}}function cv(ew){return ew.level%2?ew.to:ew.from}function er(ew){return ew.level%2?ew.from:ew.to}function bU(ex){var ew=a(ex);return ew?cv(ew[0]):0}function b4(ex){var ew=a(ex);if(!ew){return ex.text.length}return er(d7(ew))}function aY(ex,eA){var ey=dJ(ex.doc,eA);var eB=u(ex.doc,ey);if(eB!=ey){eA=bc(eB)}var ew=a(eB);var ez=!ew?0:ew[0].level%2?b4(eB):bU(eB);return K(eA,ez)}function cE(ey,eB){var ex,ez;while(ex=c5(ez=dJ(ey.doc,eB))){eB=ex.find().to.line}var ew=a(ez);var eA=!ew?ez.text.length:ew[0].level%2?bU(ez):b4(ez);return K(eB,eA)}function X(ex,ey,ew){var ez=ex[0].level;if(ey==ez){return true}if(ew==ez){return false}return ey<ew}var dz;function aj(ew,eA){dz=null;for(var ex=0,ey;ex<ew.length;++ex){var ez=ew[ex];if(ez.from<eA&&ez.to>eA){return ex}if((ez.from==eA||ez.to==eA)){if(ey==null){ey=ex}else{if(X(ew,ez.level,ew[ey].level)){if(ez.from!=ez.to){dz=ey}return ex}else{if(ez.from!=ez.to){dz=ex}return ey}}}}return ey}function dI(ew,ez,ex,ey){if(!ey){return ez+ex}do{ez+=ex}while(ez>0&&dV(ew.text.charAt(ez)));return ez}function q(ew,eD,ey,ez){var eA=a(ew);if(!eA){return R(ew,eD,ey,ez)}var eC=aj(eA,eD),ex=eA[eC];var eB=dI(ew,eD,ex.level%2?-ey:ey,ez);for(;;){if(eB>ex.from&&eB<ex.to){return eB}if(eB==ex.from||eB==ex.to){if(aj(eA,eB)==eC){return eB}ex=eA[eC+=ey];return(ey>0)==ex.level%2?ex.to:ex.from}else{ex=eA[eC+=ey];if(!ex){return null}if((ey>0)==ex.level%2){eB=dI(ew,ex.to,-1,ez)}else{eB=dI(ew,ex.from,1,ez)}}}}function R(ew,eA,ex,ey){var ez=eA+ex;if(ey){while(ez>0&&dV(ew.text.charAt(ez))){ez+=ex}}return ez<0||ez>ew.text.length?null:ez}var aM=(function(){var eC="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLL";var eA="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmmrrrrrrrrrrrrrrrrrr";function ez(eF){if(eF<=255){return eC.charAt(eF)}else{if(1424<=eF&&eF<=1524){return"R"}else{if(1536<=eF&&eF<=1791){return eA.charAt(eF-1536)}else{if(1792<=eF&&eF<=2220){return"r"}else{return"L"}}}}}var ew=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;var eE=/[stwN]/,ey=/[LRr]/,ex=/[Lb1n]/,eB=/[1n]/;var eD="L";return function(eP){if(!ew.test(eP)){return false}var eV=eP.length,eL=[];for(var eU=0,eH;eU<eV;++eU){eL.push(eH=ez(eP.charCodeAt(eU)))}for(var eU=0,eO=eD;eU<eV;++eU){var eH=eL[eU];if(eH=="m"){eL[eU]=eO}else{eO=eH}}for(var eU=0,eF=eD;eU<eV;++eU){var eH=eL[eU];if(eH=="1"&&eF=="r"){eL[eU]="n"}else{if(ey.test(eH)){eF=eH;if(eH=="r"){eL[eU]="R"}}}}for(var eU=1,eO=eL[0];eU<eV-1;++eU){var eH=eL[eU];if(eH=="+"&&eO=="1"&&eL[eU+1]=="1"){eL[eU]="1"}else{if(eH==","&&eO==eL[eU+1]&&(eO=="1"||eO=="n")){eL[eU]=eO}}eO=eH}for(var eU=0;eU<eV;++eU){var eH=eL[eU];if(eH==","){eL[eU]="N"}else{if(eH=="%"){for(var eI=eU+1;eI<eV&&eL[eI]=="%";++eI){}var eW=(eU&&eL[eU-1]=="!")||(eI<eV&&eL[eI]=="1")?"1":"N";for(var eS=eU;eS<eI;++eS){eL[eS]=eW}eU=eI-1}}}for(var eU=0,eF=eD;eU<eV;++eU){var eH=eL[eU];if(eF=="L"&&eH=="1"){eL[eU]="L"}else{if(ey.test(eH)){eF=eH}}}for(var eU=0;eU<eV;++eU){if(eE.test(eL[eU])){for(var eI=eU+1;eI<eV&&eE.test(eL[eI]);++eI){}var eM=(eU?eL[eU-1]:eD)=="L";var eG=(eI<eV?eL[eI]:eD)=="L";var eW=eM||eG?"L":"R";for(var eS=eU;eS<eI;++eS){eL[eS]=eW}eU=eI-1}}var eT=[],eQ;for(var eU=0;eU<eV;){if(ex.test(eL[eU])){var eJ=eU;for(++eU;eU<eV&&ex.test(eL[eU]);++eU){}eT.push({from:eJ,to:eU,level:0})}else{var eK=eU,eN=eT.length;for(++eU;eU<eV&&eL[eU]!="L";++eU){}for(var eS=eK;eS<eU;){if(eB.test(eL[eS])){if(eK<eS){eT.splice(eN,0,{from:eK,to:eS,level:1})}var eR=eS;for(++eS;eS<eU&&eB.test(eL[eS]);++eS){}eT.splice(eN,0,{from:eR,to:eS,level:2});eK=eS}else{++eS}}if(eK<eU){eT.splice(eN,0,{from:eK,to:eU,level:1})}}}if(eT[0].level==1&&(eQ=eP.match(/^\s+/))){eT[0].from=eQ[0].length;eT.unshift({from:0,to:eQ[0].length,level:0})}if(d7(eT).level==1&&(eQ=eP.match(/\s+$/))){d7(eT).to-=eQ[0].length;eT.push({from:eV-eQ[0].length,to:eV,level:0})}if(eT[0].level!=d7(eT).level){eT.push({from:eV,to:eV,level:eT[0].level})}return eT}})();B.version="3.21.0";return B})();
3
- // CodeMirror XML.
4
- CodeMirror.defineMode("xml",function(w,j){var p=w.indentUnit;var v=j.multilineTagIndentFactor||1;var b=j.multilineTagIndentPastTag||true;var u=j.htmlMode?{autoSelfClosers:{area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true},implicitlyClosed:{dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},contextGrabbers:{dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}},doNotIndent:{pre:true},allowUnquoted:true,allowMissing:true}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false,allowMissing:false};var a=j.alignCDATA;var d,e,f;function m(E,D){function B(G){D.tokenize=G;return G(E,D)}var C=E.next();if(C=="<"){if(E.eat("!")){if(E.eat("[")){if(E.match("CDATA[")){return B(t("atom","]]>"))}else{return null}}else{if(E.match("--")){return B(t("comment","-->"))}else{if(E.match("DOCTYPE",true,true)){E.eatWhile(/[\w\._\-]/);return B(x(1))}else{return null}}}}else{if(E.eat("?")){E.eatWhile(/[\w\._\-]/);D.tokenize=t("meta","?>");return"meta"}else{var z=E.eat("/");d="";var F;while((F=E.eat(/[^\s\u00a0=<>\"\'\/?]/))){d+=F}if(!d){return"tag error"}e=z?"closeTag":"openTag";D.tokenize=l;return"tag"}}}else{if(C=="&"){var A;if(E.eat("#")){if(E.eat("x")){A=E.eatWhile(/[a-fA-F\d]/)&&E.eat(";")}else{A=E.eatWhile(/[\d]/)&&E.eat(";")}}else{A=E.eatWhile(/[\w\.\-:]/)&&E.eat(";")}return A?"atom":"error"}else{E.eatWhile(/[^&<]/);return null}}}function l(C,B){var A=C.next();if(A==">"||(A=="/"&&C.eat(">"))){B.tokenize=m;e=A==">"?"endTag":"selfcloseTag";return"tag"}else{if(A=="="){e="equals";return null}else{if(A=="<"){B.tokenize=m;B.state=k;B.tagName=B.tagStart=null;var z=B.tokenize(C,B);return z?z+" error":"error"}else{if(/[\'\"]/.test(A)){B.tokenize=i(A);B.stringStartCol=C.column();return B.tokenize(C,B)}else{C.eatWhile(/[^\s\u00a0=<>\"\']/);return"word"}}}}}function i(z){var A=function(C,B){while(!C.eol()){if(C.next()==z){B.tokenize=l;break}}return"string"};A.isInAttribute=true;return A}function t(A,z){return function(C,B){while(!C.eol()){if(C.match(z)){B.tokenize=m;break}C.next()}return A}}function x(z){return function(C,B){var A;while((A=C.next())!=null){if(A=="<"){B.tokenize=x(z+1);return B.tokenize(C,B)}else{if(A==">"){if(z==1){B.tokenize=m;break}else{B.tokenize=x(z-1);return B.tokenize(C,B)}}}}return"meta"}}function q(A,z,B){this.prev=A.context;this.tagName=z;this.indent=A.indented;this.startOfLine=B;if(u.doNotIndent.hasOwnProperty(z)||(A.context&&A.context.noIndent)){this.noIndent=true}}function s(z){if(z.context){z.context=z.context.prev}}function o(B,A){var z;while(true){if(!B.context){return}z=B.context.tagName.toLowerCase();if(!u.contextGrabbers.hasOwnProperty(z)||!u.contextGrabbers[z].hasOwnProperty(A)){return}s(B)}}function k(z,C,B){if(z=="openTag"){B.tagName=d;B.tagStart=C.column();return c}else{if(z=="closeTag"){var A=false;if(B.context){if(B.context.tagName!=d){if(u.implicitlyClosed.hasOwnProperty(B.context.tagName.toLowerCase())){s(B)}A=!B.context||B.context.tagName!=d}}else{A=true}if(A){f="error"}return A?y:r}else{return k}}}function r(A,z,B){if(A!="endTag"){f="error";return r}s(B);return k}function y(z,B,A){f="error";return r(z,B,A)}function c(C,A,D){if(C=="word"){f="attribute";return h}else{if(C=="endTag"||C=="selfcloseTag"){var B=D.tagName,z=D.tagStart;D.tagName=D.tagStart=null;if(C=="selfcloseTag"||u.autoSelfClosers.hasOwnProperty(B.toLowerCase())){o(D,B.toLowerCase())}else{o(D,B.toLowerCase());D.context=new q(D,B,z==D.indented)}return k}}f="error";return c}function h(z,B,A){if(z=="equals"){return n}if(!u.allowMissing){f="error"}return c(z,B,A)}function n(z,B,A){if(z=="string"){return g}if(z=="word"&&u.allowUnquoted){f="string";return c}f="error";return c(z,B,A)}function g(z,B,A){if(z=="string"){return g}return c(z,B,A)}return{startState:function(){return{tokenize:m,state:k,indented:0,tagName:null,tagStart:null,context:null}},token:function(B,A){if(!A.tagName&&B.sol()){A.indented=B.indentation()}if(B.eatSpace()){return null}d=e=null;var z=A.tokenize(B,A);if((z||e)&&z!="comment"){f=null;A.state=A.state(e||z,B,A);if(f){z=f=="error"?z+" error":f}}return z},indent:function(C,z,B){var A=C.context;if(C.tokenize.isInAttribute){return C.stringStartCol+1}if(A&&A.noIndent){return CodeMirror.Pass}if(C.tokenize!=l&&C.tokenize!=m){return B?B.match(/^(\s*)/)[0].length:0}if(C.tagName){if(b){return C.tagStart+C.tagName.length+2}else{return C.tagStart+p*v}}if(a&&/<!\[CDATA\[/.test(z)){return 0}if(A&&/^<\//.test(z)){A=A.prev}while(A&&!A.startOfLine){A=A.prev}if(A){return A.indent+p}else{return 0}},electricChars:"/",blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:j.htmlMode?"html":"xml",helperType:j.htmlMode?"html":"xml"}});CodeMirror.defineMIME("text/xml","xml");CodeMirror.defineMIME("application/xml","xml");if(!CodeMirror.mimeModes.hasOwnProperty("text/html")){CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:true})};
5
- // CodeMirror JS.
6
- CodeMirror.defineMode("javascript",function(W,ag){var i=W.indentUnit;var w=ag.statementIndent;var v=ag.json;var e=ag.typescript;var am=function(){function aJ(aL){return{type:aL,style:"keyword"}}var aE=aJ("keyword a"),aC=aJ("keyword b"),aB=aJ("keyword c");var aD=aJ("operator"),aH={type:"atom",style:"atom"};var aF={"if":aJ("if"),"while":aE,"with":aE,"else":aC,"do":aC,"try":aC,"finally":aC,"return":aB,"break":aB,"continue":aB,"new":aB,"delete":aB,"throw":aB,"debugger":aB,"var":aJ("var"),"const":aJ("var"),let:aJ("var"),"function":aJ("function"),"catch":aJ("catch"),"for":aJ("for"),"switch":aJ("switch"),"case":aJ("case"),"default":aJ("default"),"in":aD,"typeof":aD,"instanceof":aD,"true":aH,"false":aH,"null":aH,"undefined":aH,"NaN":aH,"Infinity":aH,"this":aJ("this"),module:aJ("module"),"class":aJ("class"),"super":aJ("atom"),yield:aB,"export":aJ("export"),"import":aJ("import"),"extends":aB};if(e){var aK={type:"variable",style:"variable-3"};var aG={"interface":aJ("interface"),"extends":aJ("extends"),constructor:aJ("constructor"),"public":aJ("public"),"private":aJ("private"),"protected":aJ("protected"),"static":aJ("static"),string:aK,number:aK,bool:aK,any:aK};for(var aI in aG){aF[aI]=aG[aI]}}return aF}();var L=/[+\-*&%=<>!?|~^]/;function B(aE){var aC=false,aB,aD=false;while((aB=aE.next())!=null){if(!aC){if(aB=="/"&&!aD){return}if(aB=="["){aD=true}else{if(aD&&aB=="]"){aD=false}}}aC=!aC&&aB=="\\"}}var O,C;function H(aD,aC,aB){O=aD;C=aB;return aC}function Q(aF,aD){var aB=aF.next();if(aB=='"'||aB=="'"){aD.tokenize=N(aB);return aD.tokenize(aF,aD)}else{if(aB=="."&&aF.match(/^\d+(?:[eE][+\-]?\d+)?/)){return H("number","number")}else{if(aB=="."&&aF.match("..")){return H("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(aB)){return H(aB)}else{if(aB=="="&&aF.eat(">")){return H("=>","operator")}else{if(aB=="0"&&aF.eat(/x/i)){aF.eatWhile(/[\da-f]/i);return H("number","number")}else{if(/\d/.test(aB)){aF.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return H("number","number")}else{if(aB=="/"){if(aF.eat("*")){aD.tokenize=at;return at(aF,aD)}else{if(aF.eat("/")){aF.skipToEnd();return H("comment","comment")}else{if(aD.lastType=="operator"||aD.lastType=="keyword c"||aD.lastType=="sof"||/^[\[{}\(,;:]$/.test(aD.lastType)){B(aF);aF.eatWhile(/[gimy]/);return H("regexp","string-2")}else{aF.eatWhile(L);return H("operator","operator",aF.current())}}}}else{if(aB=="`"){aD.tokenize=au;return au(aF,aD)}else{if(aB=="#"){aF.skipToEnd();return H("error","error")}else{if(L.test(aB)){aF.eatWhile(L);return H("operator","operator",aF.current())}else{aF.eatWhile(/[\w\$_]/);var aE=aF.current(),aC=am.propertyIsEnumerable(aE)&&am[aE];return(aC&&aD.lastType!=".")?H(aC.type,aC.style,aE):H("variable","variable",aE)}}}}}}}}}}}}function N(aB){return function(aF,aD){var aE=false,aC;while((aC=aF.next())!=null){if(aC==aB&&!aE){break}aE=!aE&&aC=="\\"}if(!aE){aD.tokenize=Q}return H("string","string")}}function at(aE,aD){var aB=false,aC;while(aC=aE.next()){if(aC=="/"&&aB){aD.tokenize=Q;break}aB=(aC=="*")}return H("comment","comment")}function au(aE,aC){var aD=false,aB;while((aB=aE.next())!=null){if(!aD&&(aB=="`"||aB=="$"&&aE.eat("{"))){aC.tokenize=Q;break}aD=!aD&&aB=="\\"}return H("quasi","string-2",aE.current())}var j="([{}])";function ap(aH,aE){if(aE.fatArrowAt){aE.fatArrowAt=null}var aD=aH.string.indexOf("=>",aH.start);if(aD<0){return}var aG=0,aC=false;for(var aI=aD-1;aI>=0;--aI){var aB=aH.string.charAt(aI);var aF=j.indexOf(aB);if(aF>=0&&aF<3){if(!aG){++aI;break}if(--aG==0){break}}else{if(aF>=3&&aF<6){++aG}else{if(/[$\w]/.test(aB)){aC=true}else{if(aC&&!aG){++aI;break}}}}}if(aC&&!aG){aE.fatArrowAt=aI}}var a={atom:true,number:true,variable:true,string:true,regexp:true,"this":true};function F(aG,aC,aB,aF,aD,aE){this.indented=aG;this.column=aC;this.type=aB;this.prev=aD;this.info=aE;if(aF!=null){this.align=aF}}function o(aE,aD){for(var aC=aE.localVars;aC;aC=aC.next){if(aC.name==aD){return true}}for(var aB=aE.context;aB;aB=aB.prev){for(var aC=aB.vars;aC;aC=aC.next){if(aC.name==aD){return true}}}}function d(aF,aC,aB,aE,aG){var aH=aF.cc;z.state=aF;z.stream=aG;z.marked=null,z.cc=aH;if(!aF.lexical.hasOwnProperty("align")){aF.lexical.align=true}while(true){var aD=aH.length?aH.pop():v?ak:az;if(aD(aB,aE)){while(aH.length&&aH[aH.length-1].lex){aH.pop()()}if(z.marked){return z.marked}if(aB=="variable"&&o(aF,aE)){return"variable-2"}return aC}}}var z={state:null,column:null,marked:null,cc:null};function X(){for(var aB=arguments.length-1;aB>=0;aB--){z.cc.push(arguments[aB])}}function ab(){X.apply(null,arguments);return true}function ao(aC){function aB(aF){for(var aE=aF;aE;aE=aE.next){if(aE.name==aC){return true}}return false}var aD=z.state;if(aD.context){z.marked="def";if(aB(aD.localVars)){return}aD.localVars={name:aC,next:aD.localVars}}else{if(aB(aD.globalVars)){return}if(ag.globalVars){aD.globalVars={name:aC,next:aD.globalVars}}}}var m={name:"this",next:{name:"arguments"}};function s(){z.state.context={prev:z.state.context,vars:z.state.localVars};z.state.localVars=m}function t(){z.state.localVars=z.state.context.vars;z.state.context=z.state.context.prev}function ax(aC,aD){var aB=function(){var aF=z.state,aE=aF.indented;if(aF.lexical.type=="stat"){aE=aF.lexical.indented}aF.lexical=new F(aE,z.stream.column(),aC,null,aF.lexical,aD)};aB.lex=true;return aB}function f(){var aB=z.state;if(aB.lexical.prev){if(aB.lexical.type==")"){aB.indented=aB.lexical.indented}aB.lexical=aB.lexical.prev}}f.lex=true;function n(aB){return function(aC){if(aC==aB){return ab()}else{if(aB==";"){return X()}else{return ab(arguments.callee)}}}}function az(aB,aC){if(aB=="var"){return ab(ax("vardef",aC.length),b,n(";"),f)}if(aB=="keyword a"){return ab(ax("form"),ak,az,f)}if(aB=="keyword b"){return ab(ax("form"),az,f)}if(aB=="{"){return ab(ax("}"),u,f)}if(aB==";"){return ab()}if(aB=="if"){return ab(ax("form"),ak,az,f,c)}if(aB=="function"){return ab(I)}if(aB=="for"){return ab(ax("form"),q,az,f)}if(aB=="variable"){return ab(ax("stat"),aA)}if(aB=="switch"){return ab(ax("form"),ak,ax("}","switch"),n("{"),u,f,f)}if(aB=="case"){return ab(ak,n(":"))}if(aB=="default"){return ab(n(":"))}if(aB=="catch"){return ab(ax("form"),s,n("("),ac,n(")"),az,f,t)}if(aB=="module"){return ab(ax("form"),s,D,t,f)}if(aB=="class"){return ab(ax("form"),S,R,f)}if(aB=="export"){return ab(ax("form"),ay,f)}if(aB=="import"){return ab(ax("form"),ad,f)}return X(ax("stat"),ak,n(";"),f)}function ak(aB){return V(aB,false)}function aw(aB){return V(aB,true)}function V(aC,aE){if(z.state.fatArrowAt==z.stream.start){var aB=aE?J:T;if(aC=="("){return ab(s,ax(")"),an(g,")"),f,n("=>"),aB,t)}else{if(aC=="variable"){return X(s,g,n("=>"),aB,t)}}}var aD=aE?h:Y;if(a.hasOwnProperty(aC)){return ab(aD)}if(aC=="function"){return ab(I)}if(aC=="keyword c"){return ab(aE?ah:af)}if(aC=="("){return ab(ax(")"),af,ar,n(")"),f,aD)}if(aC=="operator"||aC=="spread"){return ab(aE?aw:ak)}if(aC=="["){return ab(ax("]"),k,f,aD)}if(aC=="{"){return aq(p,"}",null,aD)}return ab()}function af(aB){if(aB.match(/[;\}\)\],]/)){return X()}return X(ak)}function ah(aB){if(aB.match(/[;\}\)\],]/)){return X()}return X(aw)}function Y(aB,aC){if(aB==","){return ab(ak)}return h(aB,aC,false)}function h(aB,aD,aF){var aC=aF==false?Y:h;var aE=aF==false?ak:aw;if(aD=="=>"){return ab(s,aF?J:T,t)}if(aB=="operator"){if(/\+\+|--/.test(aD)){return ab(aC)}if(aD=="?"){return ab(ak,n(":"),aE)}return ab(aE)}if(aB=="quasi"){z.cc.push(aC);return M(aD)}if(aB==";"){return}if(aB=="("){return aq(aw,")","call",aC)}if(aB=="."){return ab(ai,aC)}if(aB=="["){return ab(ax("]"),af,n("]"),f,aC)}}function M(aB){if(aB.slice(aB.length-2)!="${"){return ab()}return ab(ak,l)}function l(aB){if(aB=="}"){z.marked="string-2";z.state.tokenize=au;return ab()}}function T(aB){ap(z.stream,z.state);if(aB=="{"){return X(az)}return X(ak)}function J(aB){ap(z.stream,z.state);if(aB=="{"){return X(az)}return X(aw)}function aA(aB){if(aB==":"){return ab(f,az)}return X(Y,n(";"),f)}function ai(aB){if(aB=="variable"){z.marked="property";return ab()}}function p(aB,aC){if(aB=="variable"){z.marked="property";if(aC=="get"||aC=="set"){return ab(E)}}else{if(aB=="number"||aB=="string"){z.marked=aB+" property"}else{if(aB=="["){return ab(ak,n("]"),G)}}}if(a.hasOwnProperty(aB)){return ab(G)}}function E(aB){if(aB!="variable"){return X(G)}z.marked="property";return ab(I)}function G(aB){if(aB==":"){return ab(aw)}if(aB=="("){return X(I)}}function an(aD,aB){function aC(aF){if(aF==","){var aE=z.state.lexical;if(aE.info=="call"){aE.pos=(aE.pos||0)+1}return ab(aD,aC)}if(aF==aB){return ab()}return ab(n(aB))}return function(aE){if(aE==aB){return ab()}return X(aD,aC)}}function aq(aE,aB,aD){for(var aC=3;aC<arguments.length;aC++){z.cc.push(arguments[aC])}return ab(ax(aB,aD),an(aE,aB),f)}function u(aB){if(aB=="}"){return ab()}return X(az,u)}function P(aB){if(e&&aB==":"){return ab(aa)}}function aa(aB){if(aB=="variable"){z.marked="variable-3";return ab()}}function b(){return X(g,P,Z,U)}function g(aB,aC){if(aB=="variable"){ao(aC);return ab()}if(aB=="["){return aq(g,"]")}if(aB=="{"){return aq(av,"}")}}function av(aB,aC){if(aB=="variable"&&!z.stream.match(/^\s*:/,false)){ao(aC);return ab(Z)}if(aB=="variable"){z.marked="property"}return ab(n(":"),g,Z)}function Z(aB,aC){if(aC=="="){return ab(aw)}}function U(aB){if(aB==","){return ab(b)}}function c(aB,aC){if(aB=="keyword b"&&aC=="else"){return ab(ax("form"),az,f)}}function q(aB){if(aB=="("){return ab(ax(")"),A,n(")"),f)}}function A(aB){if(aB=="var"){return ab(b,n(";"),y)}if(aB==";"){return ab(y)}if(aB=="variable"){return ab(r)}return X(ak,n(";"),y)}function r(aB,aC){if(aC=="in"||aC=="of"){z.marked="keyword";return ab(ak)}return ab(Y,y)}function y(aB,aC){if(aB==";"){return ab(x)}if(aC=="in"||aC=="of"){z.marked="keyword";return ab(ak)}return X(ak,n(";"),x)}function x(aB){if(aB!=")"){ab(ak)}}function I(aB,aC){if(aC=="*"){z.marked="keyword";return ab(I)}if(aB=="variable"){ao(aC);return ab(I)}if(aB=="("){return ab(s,ax(")"),an(ac,")"),f,az,t)}}function ac(aB){if(aB=="spread"){return ab(ac)}return X(g,P)}function S(aB,aC){if(aB=="variable"){ao(aC);return ab(K)}}function K(aB,aC){if(aC=="extends"){return ab(ak)}}function R(aB){if(aB=="{"){return aq(p,"}")}}function D(aB,aC){if(aB=="string"){return ab(az)}if(aB=="variable"){ao(aC);return ab(ae)}}function ay(aB,aC){if(aC=="*"){z.marked="keyword";return ab(ae,n(";"))}if(aC=="default"){z.marked="keyword";return ab(ak,n(";"))}return X(az)}function ad(aB){if(aB=="string"){return ab()}return X(al,ae)}function al(aB,aC){if(aB=="{"){return aq(al,"}")}if(aB=="variable"){ao(aC)}return ab()}function ae(aB,aC){if(aC=="from"){z.marked="keyword";return ab(ak)}}function k(aB){if(aB=="]"){return ab()}return X(aw,aj)}function aj(aB){if(aB=="for"){return X(ar,n("]"))}if(aB==","){return ab(an(aw,"]"))}return X(an(aw,"]"))}function ar(aB){if(aB=="for"){return ab(q,ar)}if(aB=="if"){return ab(ak,ar)}}return{startState:function(aC){var aB={tokenize:Q,lastType:"sof",cc:[],lexical:new F((aC||0)-i,0,"block",false),localVars:ag.localVars,context:ag.localVars&&{vars:ag.localVars},indented:0};if(ag.globalVars){aB.globalVars=ag.globalVars}return aB},token:function(aD,aC){if(aD.sol()){if(!aC.lexical.hasOwnProperty("align")){aC.lexical.align=false}aC.indented=aD.indentation();ap(aD,aC)}if(aC.tokenize!=at&&aD.eatSpace()){return null}var aB=aC.tokenize(aD,aC);if(O=="comment"){return aB}aC.lastType=O=="operator"&&(C=="++"||C=="--")?"incdec":O;return d(aC,aB,O,C,aD)},indent:function(aH,aB){if(aH.tokenize==at){return CodeMirror.Pass}if(aH.tokenize!=Q){return 0}var aG=aB&&aB.charAt(0),aE=aH.lexical;for(var aD=aH.cc.length-1;aD>=0;--aD){var aI=aH.cc[aD];if(aI==f){aE=aE.prev}else{if(aI!=c){break}}}if(aE.type=="stat"&&aG=="}"){aE=aE.prev}if(w&&aE.type==")"&&aE.prev.type=="stat"){aE=aE.prev}var aF=aE.type,aC=aG==aF;if(aF=="vardef"){return aE.indented+(aH.lastType=="operator"||aH.lastType==","?aE.info+1:0)}else{if(aF=="form"&&aG=="{"){return aE.indented}else{if(aF=="form"){return aE.indented+i}else{if(aF=="stat"){return aE.indented+(aH.lastType=="operator"||aH.lastType==","?w||i:0)}else{if(aE.info=="switch"&&!aC&&ag.doubleIndentSwitch!=false){return aE.indented+(/^(?:case|default)\b/.test(aB)?i:2*i)}else{if(aE.align){return aE.column+(aC?0:1)}else{return aE.indented+(aC?0:i)}}}}}}},electricChars:":{}",blockCommentStart:v?null:"/*",blockCommentEnd:v?null:"*/",lineComment:v?null:"//",fold:"brace",helperType:v?"json":"javascript",jsonMode:v}});CodeMirror.defineMIME("text/javascript","javascript");CodeMirror.defineMIME("text/ecmascript","javascript");CodeMirror.defineMIME("application/javascript","javascript");CodeMirror.defineMIME("application/ecmascript","javascript");CodeMirror.defineMIME("application/json",{name:"javascript",json:true});CodeMirror.defineMIME("application/x-json",{name:"javascript",json:true});CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:true});CodeMirror.defineMIME("application/typescript",{name:"javascript",typescript:true});
7
- // CodeMirror CSS.
8
- CodeMirror.defineMode("css",function(u,i){if(!i.propertyKeywords){i=CodeMirror.resolveMode("text/css")}var o=u.indentUnit,b=i.tokenHooks,t=i.mediaTypes||{},k=i.mediaFeatures||{},h=i.propertyKeywords||{},n=i.colorKeywords||{},q=i.valueKeywords||{},d=i.fontProperties||{},l=i.allowNested;var c,m;function v(y,z){c=z;return y}function x(B,A){var z=B.next();if(b[z]){var y=b[z](B,A);if(y!==false){return y}}if(z=="@"){B.eatWhile(/[\w\\\-]/);return v("def",B.current())}else{if(z=="="||(z=="~"||z=="|")&&B.eat("=")){return v(null,"compare")}else{if(z=='"'||z=="'"){A.tokenize=j(z);return A.tokenize(B,A)}else{if(z=="#"){B.eatWhile(/[\w\\\-]/);return v("atom","hash")}else{if(z=="!"){B.match(/^\s*\w*/);return v("keyword","important")}else{if(/\d/.test(z)||z=="."&&B.eat(/\d/)){B.eatWhile(/[\w.%]/);return v("number","unit")}else{if(z==="-"){if(/[\d.]/.test(B.peek())){B.eatWhile(/[\w.%]/);return v("number","unit")}else{if(B.match(/^[^-]+-/)){return v("meta","meta")}}}else{if(/[,+>*\/]/.test(z)){return v(null,"select-op")}else{if(z=="."&&B.match(/^-?[_a-z][_a-z0-9-]*/i)){return v("qualifier","qualifier")}else{if(/[:;{}\[\]\(\)]/.test(z)){return v(null,z)}else{if(z=="u"&&B.match("rl(")){B.backUp(1);A.tokenize=w;return v("property","word")}else{if(/[\w\\\-]/.test(z)){B.eatWhile(/[\w\\\-]/);return v("property","word")}else{return v(null,null)}}}}}}}}}}}}}function j(y){return function(C,A){var B=false,z;while((z=C.next())!=null){if(z==y&&!B){if(y==")"){C.backUp(1)}break}B=!B&&z=="\\"}if(z==y||!B&&y!=")"){A.tokenize=null}return v("string","string")}}function w(z,y){z.next();if(!z.match(/\s*[\"\']/,false)){y.tokenize=j(")")}else{y.tokenize=null}return v(null,"(")}function p(z,y,A){this.type=z;this.indent=y;this.prev=A}function f(z,A,y){z.context=new p(y,A.indentation()+o,z.context);return y}function r(y){y.context=y.context.prev;return y.context.type}function a(y,A,z){return e[z.context.type](y,A,z)}function s(z,B,A,C){for(var y=C||1;y>0;y--){A.context=A.context.prev}return a(z,B,A)}function g(z){var y=z.current().toLowerCase();if(q.hasOwnProperty(y)){m="atom"}else{if(n.hasOwnProperty(y)){m="keyword"}else{m="variable"}}}var e={};e.top=function(y,A,z){if(y=="{"){return f(z,A,"block")}else{if(y=="}"&&z.context.prev){return r(z)}else{if(y=="@media"){return f(z,A,"media")}else{if(y=="@font-face"){return"font_face_before"}else{if(y&&y.charAt(0)=="@"){return f(z,A,"at")}else{if(y=="hash"){m="builtin"}else{if(y=="word"){m="tag"}else{if(y=="variable-definition"){return"maybeprop"}else{if(y=="interpolation"){return f(z,A,"interpolation")}else{if(y==":"){return"pseudo"}else{if(l&&y=="("){return f(z,A,"params")}}}}}}}}}}}return z.context.type};e.block=function(y,A,z){if(y=="word"){if(h.hasOwnProperty(A.current().toLowerCase())){m="property";return"maybeprop"}else{if(l){m=A.match(/^\s*:/,false)?"property":"tag";return"block"}else{m+=" error";return"maybeprop"}}}else{if(y=="meta"){return"block"}else{if(!l&&(y=="hash"||y=="qualifier")){m="error";return"block"}else{return e.top(y,A,z)}}}};e.maybeprop=function(y,A,z){if(y==":"){return f(z,A,"prop")}return a(y,A,z)};e.prop=function(y,A,z){if(y==";"){return r(z)}if(y=="{"&&l){return f(z,A,"propBlock")}if(y=="}"||y=="{"){return s(y,A,z)}if(y=="("){return f(z,A,"parens")}if(y=="hash"&&!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(A.current())){m+=" error"}else{if(y=="word"){g(A)}else{if(y=="interpolation"){return f(z,A,"interpolation")}}}return"prop"};e.propBlock=function(z,y,A){if(z=="}"){return r(A)}if(z=="word"){m="property";return"maybeprop"}return A.context.type};e.parens=function(y,A,z){if(y=="{"||y=="}"){return s(y,A,z)}if(y==")"){return r(z)}return"parens"};e.pseudo=function(y,A,z){if(y=="word"){m="variable-3";return z.context.type}return a(y,A,z)};e.media=function(y,B,z){if(y=="("){return f(z,B,"media_parens")}if(y=="}"){return s(y,B,z)}if(y=="{"){return r(z)&&f(z,B,l?"block":"top")}if(y=="word"){var A=B.current().toLowerCase();if(A=="only"||A=="not"||A=="and"){m="keyword"}else{if(t.hasOwnProperty(A)){m="attribute"}else{if(k.hasOwnProperty(A)){m="property"}else{m="error"}}}}return z.context.type};e.media_parens=function(y,A,z){if(y==")"){return r(z)}if(y=="{"||y=="}"){return s(y,A,z,2)}return e.media(y,A,z)};e.font_face_before=function(y,A,z){if(y=="{"){return f(z,A,"font_face")}return a(y,A,z)};e.font_face=function(y,A,z){if(y=="}"){return r(z)}if(y=="word"){if(!d.hasOwnProperty(A.current().toLowerCase())){m="error"}else{m="property"}return"maybeprop"}return"font_face"};e.at=function(y,A,z){if(y==";"){return r(z)}if(y=="{"||y=="}"){return s(y,A,z)}if(y=="word"){m="tag"}else{if(y=="hash"){m="builtin"}}return"at"};e.interpolation=function(y,A,z){if(y=="}"){return r(z)}if(y=="{"||y==";"){return s(y,A,z)}if(y!="variable"){m="error"}return"interpolation"};e.params=function(y,A,z){if(y==")"){return r(z)}if(y=="{"||y=="}"){return s(y,A,z)}if(y=="word"){g(A)}return"params"};return{startState:function(y){return{tokenize:null,state:"top",context:new p("top",y||0,null)}},token:function(A,z){if(!z.tokenize&&A.eatSpace()){return null}var y=(z.tokenize||x)(A,z);if(y&&typeof y=="object"){c=y[1];y=y[0]}m=y;z.state=e[z.state](c,A,z);return m},indent:function(C,A){var z=C.context,B=A&&A.charAt(0);var y=z.indent;if(z.prev&&(B=="}"&&(z.type=="block"||z.type=="top"||z.type=="interpolation"||z.type=="font_face")||B==")"&&(z.type=="parens"||z.type=="params"||z.type=="media_parens")||B=="{"&&(z.type=="at"||z.type=="media"))){y=z.indent-o;z=z.prev}return y},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});(function(){function d(s){var r={};for(var q=0;q<s.length;++q){r[s[q]]=true}return r}var m=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],f=d(m);var g=["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"],l=d(g);var e=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","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","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-cell","grid-column","grid-column-align","grid-column-sizing","grid-column-span","grid-columns","grid-flow","grid-row","grid-row-align","grid-row-sizing","grid-row-span","grid-rows","grid-template","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","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","marker-offset","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","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","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-inside","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","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","word-break","word-spacing","word-wrap","z-index","zoom","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-profile","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","kerning","text-anchor","writing-mode"],n=d(e);var k=["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","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"],o=d(k);var b=["above","absolute","activeborder","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","auto","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","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","contain","content","content-box","context-menu","continuous","copy","cover","crop","cross","crosshair","currentcolor","cursive","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","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","ew-resize","expanded","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-table","inset","inside","intrinsic","invert","italic","justify","kannada","katakana","katakana-iroha","keep-all","khmer","landscape","lao","large","larger","left","level","lighter","line-through","linear","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","malayalam","match","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","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","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scroll","scrollbar","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","single","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","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","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","x-large","x-small","xor","xx-large","xx-small"],h=d(b);var j=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],a=d(j);var i=m.concat(g).concat(e).concat(k).concat(b);CodeMirror.registerHelper("hintWords","css",i);function p(t,s){var q=false,r;while((r=t.next())!=null){if(q&&r=="/"){s.tokenize=null;break}q=(r=="*")}return["comment","comment"]}function c(r,q){if(r.skipTo("-->")){r.match("-->");q.tokenize=null}else{r.skipToEnd()}return["comment","comment"]}CodeMirror.defineMIME("text/css",{mediaTypes:f,mediaFeatures:l,propertyKeywords:n,colorKeywords:o,valueKeywords:h,fontProperties:a,tokenHooks:{"<":function(r,q){if(!r.match("!--")){return false}q.tokenize=c;return c(r,q)},"/":function(r,q){if(!r.eat("*")){return false}q.tokenize=p;return p(r,q)}},name:"css"});CodeMirror.defineMIME("text/x-scss",{mediaTypes:f,mediaFeatures:l,propertyKeywords:n,colorKeywords:o,valueKeywords:h,fontProperties:a,allowNested:true,tokenHooks:{"/":function(r,q){if(r.eat("/")){r.skipToEnd();return["comment","comment"]}else{if(r.eat("*")){q.tokenize=p;return p(r,q)}else{return["operator","operator"]}}},":":function(q){if(q.match(/\s*{/)){return[null,"{"]}return false},"$":function(q){q.match(/^[\w-]+/);if(q.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"#":function(q){if(!q.eat("{")){return false}return[null,"interpolation"]}},name:"css",helperType:"scss"});CodeMirror.defineMIME("text/x-less",{mediaTypes:f,mediaFeatures:l,propertyKeywords:n,colorKeywords:o,valueKeywords:h,fontProperties:a,allowNested:true,tokenHooks:{"/":function(r,q){if(r.eat("/")){r.skipToEnd();return["comment","comment"]}else{if(r.eat("*")){q.tokenize=p;return p(r,q)}else{return["operator","operator"]}}},"@":function(q){if(q.match(/^(charset|document|font-face|import|keyframes|media|namespace|page|supports)\b/,false)){return false}q.eatWhile(/[\w\\\-]/);if(q.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"})})();
9
- // CodeMirror HTML.
10
- CodeMirror.defineMode("htmlmixed",function(b,c){var a=CodeMirror.getMode(b,{name:"xml",htmlMode:true});var m=CodeMirror.getMode(b,"css");var k=[],j=c&&c.scriptTypes;k.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:CodeMirror.getMode(b,"javascript")});if(j){for(var d=0;d<j.length;++d){var h=j[d];k.push({matches:h.matches,mode:h.mode&&CodeMirror.getMode(b,h.mode)})}}k.push({matches:/./,mode:CodeMirror.getMode(b,"text/plain")});function e(s,q){var o=q.htmlState.tagName;var p=a.token(s,q.htmlState);if(o=="script"&&/\btag\b/.test(p)&&s.current()==">"){var t=s.string.slice(Math.max(0,s.pos-100),s.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);t=t?t[1]:"";if(t&&/[\"\']/.test(t.charAt(0))){t=t.slice(1,t.length-1)}for(var n=0;n<k.length;++n){var r=k[n];if(typeof r.matches=="string"?t==r.matches:r.matches.test(t)){if(r.mode){q.token=l;q.localMode=r.mode;q.localState=r.mode.startState&&r.mode.startState(a.indent(q.htmlState,""))}break}}}else{if(o=="style"&&/\btag\b/.test(p)&&s.current()==">"){q.token=f;q.localMode=m;q.localState=m.startState(a.indent(q.htmlState,""))}}return p}function g(r,n,o){var q=r.current();var p=q.search(n),i;if(p>-1){r.backUp(q.length-p)}else{if(i=q.match(/<\/?$/)){r.backUp(q.length);if(!r.match(n,false)){r.match(q)}}}return o}function l(n,i){if(n.match(/^<\/\s*script\s*>/i,false)){i.token=e;i.localState=i.localMode=null;return e(n,i)}return g(n,/<\/\s*script\s*>/,i.localMode.token(n,i.localState))}function f(n,i){if(n.match(/^<\/\s*style\s*>/i,false)){i.token=e;i.localState=i.localMode=null;return e(n,i)}return g(n,/<\/\s*style\s*>/,m.token(n,i.localState))}return{startState:function(){var i=a.startState();return{token:e,localMode:null,localState:null,htmlState:i}},copyState:function(n){if(n.localState){var i=CodeMirror.copyState(n.localMode,n.localState)}return{token:n.token,localMode:n.localMode,localState:i,htmlState:CodeMirror.copyState(a,n.htmlState)}},token:function(n,i){return i.token(n,i)},indent:function(n,i){if(!n.localMode||/^\s*<\//.test(i)){return a.indent(n.htmlState,i)}else{if(n.localMode.indent){return n.localMode.indent(n.localState,i)}else{return CodeMirror.Pass}}},innerMode:function(i){return{state:i.localState||i.htmlState,mode:i.localMode||a}}}},"xml","javascript","css");CodeMirror.defineMIME("text/html","htmlmixed");
11
- // CodeMirror PHP.
12
  (function(){function c(g){var e={},f=g.split(" ");for(var d=0;d<f.length;++d){e[f[d]]=true}return e}function a(d){return function(f,e){if(f.match(d)){e.tokenize=null}else{f.skipToEnd()}return"string"}}var b={name:"clike",keywords:c("abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally"),blockKeywords:c("catch do else elseif for foreach if switch try while finally"),atoms:c("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),builtin:c("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"),multiLineStrings:true,hooks:{"$":function(d){d.eatWhile(/[\w\$_]/);return"variable-2"},"<":function(e,d){if(e.match(/<</)){e.eatWhile(/[\w\.]/);d.tokenize=a(e.current().slice(3));return d.tokenize(e,d)}return false},"#":function(d){while(!d.eol()&&!d.match("?>",false)){d.next()}return"comment"},"/":function(d){if(d.eat("/")){while(!d.eol()&&!d.match("?>",false)){d.next()}return"comment"}return false}}};CodeMirror.defineMode("php",function(f,g){var h=CodeMirror.getMode(f,"text/html");var d=CodeMirror.getMode(f,b);function e(p,n){var l=n.curMode==d;if(p.sol()&&n.pending&&n.pending!='"'&&n.pending!="'"){n.pending=null}if(!l){if(p.match(/^<\?\w*/)){n.curMode=d;n.curState=n.php;return"meta"}if(n.pending=='"'||n.pending=="'"){while(!p.eol()&&p.next()!=n.pending){}var k="string"}else{if(n.pending&&p.pos<n.pending.end){p.pos=n.pending.end;var k=n.pending.style}else{var k=h.token(p,n.curState)}}if(n.pending){n.pending=null}var o=p.current(),j=o.search(/<\?/),i;if(j!=-1){if(k=="string"&&(i=o.match(/[\'\"]$/))&&!/\?>/.test(o)){n.pending=i[0]}else{n.pending={end:p.pos,style:k}}p.backUp(o.length-j)}return k}else{if(l&&n.php.tokenize==null&&p.match("?>")){n.curMode=h;n.curState=n.html;return"meta"}else{return d.token(p,n.curState)}}}return{startState:function(){var i=CodeMirror.startState(h),j=CodeMirror.startState(d);return{html:i,php:j,curMode:g.startOpen?d:h,curState:g.startOpen?j:i,pending:null}},copyState:function(l){var j=l.html,k=CodeMirror.copyState(h,j),n=l.php,i=CodeMirror.copyState(d,n),m;if(l.curMode==h){m=k}else{m=i}return{html:k,php:i,curMode:l.curMode,curState:m,pending:l.pending}},token:e,indent:function(j,i){if((j.curMode!=d&&/^\s*<\//.test(i))||(j.curMode==d&&/^\?>/.test(i))){return h.indent(j.html,i)}return j.curMode.indent(j.curState,i)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(i){return{state:i.curState,mode:i.curMode}}}},"htmlmixed","clike");CodeMirror.defineMIME("application/x-httpd-php","php");CodeMirror.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:true});CodeMirror.defineMIME("text/x-php",b)})();
1
+ // CodeMirror base.
2
+ window.CodeMirror=(function(){var bI=/gecko\/\d/i.test(navigator.userAgent);var cf=/MSIE \d/.test(navigator.userAgent);var bF=cf&&(document.documentMode==null||document.documentMode<8);var bE=cf&&(document.documentMode==null||document.documentMode<9);var dC=/Trident\/([7-9]|\d{2,})\./.test(navigator.userAgent);var cA=cf||dC;var b8=/WebKit\//.test(navigator.userAgent);var cD=b8&&/Qt\/\d+\.\d+/.test(navigator.userAgent);var cg=/Chrome\//.test(navigator.userAgent);var d1=/Opera\//.test(navigator.userAgent);var ag=/Apple Computer/.test(navigator.vendor);var aH=/KHTML\//.test(navigator.userAgent);var bT=/Mac OS X 1\d\D([7-9]|\d\d)\D/.test(navigator.userAgent);var cc=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent);var dY=/PhantomJS/.test(navigator.userAgent);var dy=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent);var cV=dy||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent);var bq=dy||/Mac/.test(navigator.platform);var ao=/win/i.test(navigator.platform);var c8=d1&&navigator.userAgent.match(/Version\/(\d*\.\d*)/);if(c8){c8=Number(c8[1])}if(c8&&c8>=15){d1=false;b8=true}var be=bq&&(cD||d1&&(c8==null||c8<12.11));var bX=bI||(cf&&!bE);var eq=false,aD=false;function B(ew,ex){if(!(this instanceof B)){return new B(ew,ex)}this.options=ex=ex||{};for(var ey in dA){if(!ex.hasOwnProperty(ey)&&dA.hasOwnProperty(ey)){ex[ey]=dA[ey]}}by(ex);var eC=typeof ex.value=="string"?0:ex.value.first;var eB=this.display=f(ew,eC);eB.wrapper.CodeMirror=this;cR(this);if(ex.autofocus&&!cV){db(this)}this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:false,focused:false,suppressEdits:false,pasteIncoming:false,cutIncoming:false,draggingText:false,highlight:new ev()};b2(this);if(ex.lineWrapping){this.display.wrapper.className+=" CodeMirror-wrap"}var eA=ex.value;if(typeof eA=="string"){eA=new aa(ex.value,ex.mode)}b9(this,cQ)(this,eA);if(cf){setTimeout(bO(dU,this,true),20)}ee(this);var eD;try{eD=(document.activeElement==eB.input)}catch(ez){}if(eD||(ex.autofocus&&!cV)){setTimeout(bO(bS,this),20)}else{au(this)}b9(this,function(){for(var eF in aK){if(aK.propertyIsEnumerable(eF)){aK[eF](this,ex[eF],bw)}}for(var eE=0;eE<aE.length;++eE){aE[eE](this)}})()}function f(ew,ey){var ez={};var ex=ez.input=ej("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none; font-size: 4px;");if(b8){ex.style.width="1000px"}else{ex.setAttribute("wrap","off")}if(dy){ex.style.border="1px solid black"}ex.setAttribute("autocorrect","off");ex.setAttribute("autocapitalize","off");ex.setAttribute("spellcheck","false");ez.inputDiv=ej("div",[ex],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");ez.scrollbarH=ej("div",[ej("div",null,null,"height: 1px")],"CodeMirror-hscrollbar");ez.scrollbarV=ej("div",[ej("div",null,null,"width: 1px")],"CodeMirror-vscrollbar");ez.scrollbarFiller=ej("div",null,"CodeMirror-scrollbar-filler");ez.gutterFiller=ej("div",null,"CodeMirror-gutter-filler");ez.lineDiv=ej("div",null,"CodeMirror-code");ez.selectionDiv=ej("div",null,null,"position: relative; z-index: 1");ez.cursor=ej("div","\u00a0","CodeMirror-cursor");ez.otherCursor=ej("div","\u00a0","CodeMirror-cursor CodeMirror-secondarycursor");ez.measure=ej("div",null,"CodeMirror-measure");ez.lineSpace=ej("div",[ez.measure,ez.selectionDiv,ez.lineDiv,ez.cursor,ez.otherCursor],null,"position: relative; outline: none");ez.mover=ej("div",[ej("div",[ez.lineSpace],"CodeMirror-lines")],null,"position: relative");ez.sizer=ej("div",[ez.mover],"CodeMirror-sizer");ez.heightForcer=ej("div",null,null,"position: absolute; height: "+aO+"px; width: 1px;");ez.gutters=ej("div",null,"CodeMirror-gutters");ez.lineGutter=null;ez.scroller=ej("div",[ez.sizer,ez.heightForcer,ez.gutters],"CodeMirror-scroll");ez.scroller.setAttribute("tabIndex","-1");ez.wrapper=ej("div",[ez.inputDiv,ez.scrollbarH,ez.scrollbarV,ez.scrollbarFiller,ez.gutterFiller,ez.scroller],"CodeMirror");if(bF){ez.gutters.style.zIndex=-1;ez.scroller.style.paddingRight=0}if(ew.appendChild){ew.appendChild(ez.wrapper)}else{ew(ez.wrapper)}if(dy){ex.style.width="0px"}if(!b8){ez.scroller.draggable=true}if(aH){ez.inputDiv.style.height="1px";ez.inputDiv.style.position="absolute"}else{if(bF){ez.scrollbarH.style.minWidth=ez.scrollbarV.style.minWidth="18px"}}ez.viewOffset=ez.lastSizeC=0;ez.showingFrom=ez.showingTo=ey;ez.lineNumWidth=ez.lineNumInnerWidth=ez.lineNumChars=null;ez.prevInput="";ez.alignWidgets=false;ez.pollingFast=false;ez.poll=new ev();ez.cachedCharWidth=ez.cachedTextHeight=null;ez.measureLineCache=[];ez.measureLineCachePos=0;ez.inaccurateSelection=false;ez.maxLine=null;ez.maxLineLength=0;ez.maxLineChanged=false;ez.wheelDX=ez.wheelDY=ez.wheelStartX=ez.wheelStartY=null;return ez}function aW(ew){ew.doc.mode=B.getMode(ew.options,ew.doc.modeOption);cZ(ew)}function cZ(ew){ew.doc.iter(function(ex){if(ex.stateAfter){ex.stateAfter=null}if(ex.styles){ex.styles=null}});ew.doc.frontier=ew.doc.first;cU(ew,100);ew.state.modeGen++;if(ew.curOp){Q(ew)}}function dj(ew){if(ew.options.lineWrapping){ew.display.wrapper.className+=" CodeMirror-wrap";ew.display.sizer.style.minWidth=""}else{ew.display.wrapper.className=ew.display.wrapper.className.replace(" CodeMirror-wrap","");em(ew)}L(ew);Q(ew);T(ew);setTimeout(function(){dw(ew)},100)}function aJ(ew){var ey=aw(ew.display),ex=ew.options.lineWrapping;var ez=ex&&Math.max(5,ew.display.scroller.clientWidth/cy(ew.display)-3);return function(eA){if(dZ(ew.doc,eA)){return 0}else{if(ex){return(Math.ceil(eA.text.length/ez)||1)*ey}else{return ey}}}}function L(ew){var ey=ew.doc,ex=aJ(ew);ey.iter(function(ez){var eA=ex(ez);if(eA!=ez.height){eo(ez,eA)}})}function et(ew){var ey=dF[ew.options.keyMap],ex=ey.style;ew.display.wrapper.className=ew.display.wrapper.className.replace(/\s*cm-keymap-\S+/g,"")+(ex?" cm-keymap-"+ex:"")}function b2(ew){ew.display.wrapper.className=ew.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ew.options.theme.replace(/(^|\s)\s*/g," cm-s-");T(ew)}function ct(ew){cR(ew);Q(ew);setTimeout(function(){df(ew)},20)}function cR(ew){var ex=ew.display.gutters,eB=ew.options.gutters;cK(ex);for(var ey=0;ey<eB.length;++ey){var ez=eB[ey];var eA=ex.appendChild(ej("div",null,"CodeMirror-gutter "+ez));if(ez=="CodeMirror-linenumbers"){ew.display.lineGutter=eA;eA.style.width=(ew.display.lineNumWidth||1)+"px"}}ex.style.display=ey?"":"none"}function c0(eA,ey){if(ey.height==0){return 0}var ex=ey.text.length,ew,eB=ey;while(ew=dn(eB)){var ez=ew.find();eB=dJ(eA,ez.from.line);ex+=ez.from.ch-ez.to.ch}eB=ey;while(ew=c5(eB)){var ez=ew.find();ex-=eB.text.length-ez.from.ch;eB=dJ(eA,ez.to.line);ex+=eB.text.length-ez.to.ch}return ex}function em(ew){var ey=ew.display,ex=ew.doc;ey.maxLine=dJ(ex,ex.first);ey.maxLineLength=c0(ex,ey.maxLine);ey.maxLineChanged=true;ex.iter(function(eA){var ez=c0(ex,eA);if(ez>ey.maxLineLength){ey.maxLineLength=ez;ey.maxLine=eA}})}function by(ew){var ex=cl(ew.gutters,"CodeMirror-linenumbers");if(ex==-1&&ew.lineNumbers){ew.gutters=ew.gutters.concat(["CodeMirror-linenumbers"])}else{if(ex>-1&&!ew.lineNumbers){ew.gutters=ew.gutters.slice(0);ew.gutters.splice(ex,1)}}}function dw(ew){var eC=ew.display,ex=ew.doc.height;var ez=ex+a7(eC);eC.sizer.style.minHeight=eC.heightForcer.style.top=ez+"px";eC.gutters.style.height=Math.max(ez,eC.scroller.clientHeight-aO)+"px";var eA=Math.max(ez,eC.scroller.scrollHeight);var eB=eC.scroller.scrollWidth>(eC.scroller.clientWidth+1);var ey=eA>(eC.scroller.clientHeight+1);if(ey){eC.scrollbarV.style.display="block";eC.scrollbarV.style.bottom=eB?i(eC.measure)+"px":"0";eC.scrollbarV.firstChild.style.height=(eA-eC.scroller.clientHeight+eC.scrollbarV.clientHeight)+"px"}else{eC.scrollbarV.style.display="";eC.scrollbarV.firstChild.style.height="0"}if(eB){eC.scrollbarH.style.display="block";eC.scrollbarH.style.right=ey?i(eC.measure)+"px":"0";eC.scrollbarH.firstChild.style.width=(eC.scroller.scrollWidth-eC.scroller.clientWidth+eC.scrollbarH.clientWidth)+"px"}else{eC.scrollbarH.style.display="";eC.scrollbarH.firstChild.style.width="0"}if(eB&&ey){eC.scrollbarFiller.style.display="block";eC.scrollbarFiller.style.height=eC.scrollbarFiller.style.width=i(eC.measure)+"px"}else{eC.scrollbarFiller.style.display=""}if(eB&&ew.options.coverGutterNextToScrollbar&&ew.options.fixedGutter){eC.gutterFiller.style.display="block";eC.gutterFiller.style.height=i(eC.measure)+"px";eC.gutterFiller.style.width=eC.gutters.offsetWidth+"px"}else{eC.gutterFiller.style.display=""}if(bT&&i(eC.measure)===0){eC.scrollbarV.style.minWidth=eC.scrollbarH.style.minHeight=cc?"18px":"12px";eC.scrollbarV.style.pointerEvents=eC.scrollbarH.style.pointerEvents="none"}}function bp(eB,eA,ez){var ey=eB.scroller.scrollTop,ew=eB.wrapper.clientHeight;if(typeof ez=="number"){ey=ez}else{if(ez){ey=ez.top;ew=ez.bottom-ez.top}}ey=Math.floor(ey-dD(eB));var ex=Math.ceil(ey+ew);return{from:a5(eA,ey),to:a5(eA,ex)}}function df(ew){var eC=ew.display;if(!eC.alignWidgets&&(!eC.gutters.firstChild||!ew.options.fixedGutter)){return}var ez=cJ(eC)-eC.scroller.scrollLeft+ew.doc.scrollLeft;var eB=eC.gutters.offsetWidth,ey=ez+"px";for(var eD=eC.lineDiv.firstChild;eD;eD=eD.nextSibling){if(eD.alignable){for(var eA=0,ex=eD.alignable;eA<ex.length;++eA){ex[eA].style.left=ey}}}if(ew.options.fixedGutter){eC.gutters.style.left=(ez+eB)+"px"}}function cM(ew){if(!ew.options.lineNumbers){return false}var eB=ew.doc,ex=c3(ew.options,eB.first+eB.size-1),eA=ew.display;if(ex.length!=eA.lineNumChars){var eC=eA.measure.appendChild(ej("div",[ej("div",ex)],"CodeMirror-linenumber CodeMirror-gutter-elt"));var ey=eC.firstChild.offsetWidth,ez=eC.offsetWidth-ey;eA.lineGutter.style.width="";eA.lineNumInnerWidth=Math.max(ey,eA.lineGutter.offsetWidth-ez);eA.lineNumWidth=eA.lineNumInnerWidth+ez;eA.lineNumChars=eA.lineNumInnerWidth?ex.length:-1;eA.lineGutter.style.width=eA.lineNumWidth+"px";return true}return false}function c3(ew,ex){return String(ew.lineNumberFormatter(ex+ew.firstLineNumber))}function cJ(ew){return an(ew.scroller).left-an(ew.sizer).left}function cB(eB,eA,eE,eF){var eD=eB.display.showingFrom,eC=eB.display.showingTo,ez;var ew=bp(eB.display,eB.doc,eE);for(var ey=true;;ey=false){var ex=eB.display.scroller.clientWidth;if(!cj(eB,eA,ew,eF)){break}ez=true;eA=[];a2(eB);dw(eB);if(ey&&eB.options.lineWrapping&&ex!=eB.display.scroller.clientWidth){eF=true;continue}eF=false;if(eE){eE=Math.min(eB.display.scroller.scrollHeight-eB.display.scroller.clientHeight,typeof eE=="number"?eE:eE.top)}ew=bp(eB.display,eB.doc,eE);if(ew.from>=eB.display.showingFrom&&ew.to<=eB.display.showingTo){break}}if(ez){O(eB,"update",eB);if(eB.display.showingFrom!=eD||eB.display.showingTo!=eC){O(eB,"viewportChange",eB,eB.display.showingFrom,eB.display.showingTo)}}return ez}function cj(eA,eO,ex,eM){var eG=eA.display,eP=eA.doc;if(!eG.wrapper.offsetWidth){eG.showingFrom=eG.showingTo=eP.first;eG.viewOffset=0;return}if(!eM&&eO.length==0&&ex.from>eG.showingFrom&&ex.to<eG.showingTo){return}if(cM(eA)){eO=[{from:eP.first,to:eP.first+eP.size}]}var eL=eG.sizer.style.marginLeft=eG.gutters.offsetWidth+"px";eG.scrollbarH.style.left=eA.options.fixedGutter?eL:"0";var ey=Infinity;if(eA.options.lineNumbers){for(var eH=0;eH<eO.length;++eH){if(eO[eH].diff&&eO[eH].from<ey){ey=eO[eH].from}}}var ez=eP.first+eP.size;var eF=Math.max(ex.from-eA.options.viewportMargin,eP.first);var ew=Math.min(ez,ex.to+eA.options.viewportMargin);if(eG.showingFrom<eF&&eF-eG.showingFrom<20){eF=Math.max(eP.first,eG.showingFrom)}if(eG.showingTo>ew&&eG.showingTo-ew<20){ew=Math.min(ez,eG.showingTo)}if(aD){eF=bc(u(eP,dJ(eP,eF)));while(ew<ez&&dZ(eP,dJ(eP,ew))){++ew}}var eJ=[{from:Math.max(eG.showingFrom,eP.first),to:Math.min(eG.showingTo,ez)}];if(eJ[0].from>=eJ[0].to){eJ=[]}else{eJ=dT(eJ,eO)}if(aD){for(var eH=0;eH<eJ.length;++eH){var eC=eJ[eH],eK;while(eK=c5(dJ(eP,eC.to-1))){var eN=eK.find().from.line;if(eN>eC.from){eC.to=eN}else{eJ.splice(eH--,1);break}}}}var eE=0;for(var eH=0;eH<eJ.length;++eH){var eC=eJ[eH];if(eC.from<eF){eC.from=eF}if(eC.to>ew){eC.to=ew}if(eC.from>=eC.to){eJ.splice(eH--,1)}else{eE+=eC.to-eC.from}}if(!eM&&eE==ew-eF&&eF==eG.showingFrom&&ew==eG.showingTo){h(eA);return}eJ.sort(function(eR,eQ){return eR.from-eQ.from});try{var eB=document.activeElement}catch(eI){}if(eE<(ew-eF)*0.7){eG.lineDiv.style.display="none"}bG(eA,eF,ew,eJ,ey);eG.lineDiv.style.display="";if(eB&&document.activeElement!=eB&&eB.offsetHeight){eB.focus()}var eD=eF!=eG.showingFrom||ew!=eG.showingTo||eG.lastSizeC!=eG.wrapper.clientHeight;if(eD){eG.lastSizeC=eG.wrapper.clientHeight;cU(eA,400)}eG.showingFrom=eF;eG.showingTo=ew;eG.gutters.style.height="";aF(eA);h(eA);return true}function aF(eE){var eB=eE.display;var ex=eB.lineDiv.offsetTop;for(var ew=eB.lineDiv.firstChild,eF;ew;ew=ew.nextSibling){if(ew.lineObj){if(bF){var eA=ew.offsetTop+ew.offsetHeight;eF=eA-ex;ex=eA}else{var ez=an(ew);eF=ez.bottom-ez.top}var eD=ew.lineObj.height-eF;if(eF<2){eF=aw(eB)}if(eD>0.001||eD<-0.001){eo(ew.lineObj,eF);var eC=ew.lineObj.widgets;if(eC){for(var ey=0;ey<eC.length;++ey){eC[ey].height=eC[ey].node.offsetHeight}}}}}}function h(ew){var ex=ew.display.viewOffset=bb(ew,dJ(ew.doc,ew.display.showingFrom));ew.display.mover.style.top=ex+"px"}function dT(eF,eD){for(var eA=0,ey=eD.length||0;eA<ey;++eA){var eC=eD[eA],ew=[],eE=eC.diff||0;for(var ez=0,ex=eF.length;ez<ex;++ez){var eB=eF[ez];if(eC.to<=eB.from&&eC.diff){ew.push({from:eB.from+eE,to:eB.to+eE})}else{if(eC.to<=eB.from||eC.from>=eB.to){ew.push(eB)}else{if(eC.from>eB.from){ew.push({from:eB.from,to:eC.from})}if(eC.to<eB.to){ew.push({from:eC.to+eE,to:eB.to+eE})}}}}eF=ew}return eF}function dG(ew){var eA=ew.display,ez={},ey={};for(var eB=eA.gutters.firstChild,ex=0;eB;eB=eB.nextSibling,++ex){ez[ew.options.gutters[ex]]=eB.offsetLeft;ey[ew.options.gutters[ex]]=eB.offsetWidth}return{fixedPos:cJ(eA),gutterTotalWidth:eA.gutters.offsetWidth,gutterLeft:ez,gutterWidth:ey,wrapperWidth:eA.wrapper.clientWidth}}function bG(eF,eC,eD,eI,ex){var eE=dG(eF);var eB=eF.display,eH=eF.options.lineNumbers;if(!eI.length&&(!b8||!eF.display.currentWheelTarget)){cK(eB.lineDiv)}var ew=eB.lineDiv,eG=ew.firstChild;function eA(eK){var eJ=eK.nextSibling;if(b8&&bq&&eF.display.currentWheelTarget==eK){eK.style.display="none";eK.lineObj=null}else{eK.parentNode.removeChild(eK)}return eJ}var ey=eI.shift(),ez=eC;eF.doc.iter(eC,eD,function(eS){if(ey&&ey.to==ez){ey=eI.shift()}if(dZ(eF.doc,eS)){if(eS.height!=0){eo(eS,0)}if(eS.widgets&&eG&&eG.previousSibling){for(var eN=0;eN<eS.widgets.length;++eN){var eP=eS.widgets[eN];if(eP.showIfHidden){var eL=eG.previousSibling;if(/pre/i.test(eL.nodeName)){var eK=ej("div",null,null,"position: relative");eL.parentNode.replaceChild(eK,eL);eK.appendChild(eL);eL=eK}var eQ=eL.appendChild(ej("div",[eP.node],"CodeMirror-linewidget"));if(!eP.handleMouseEvents){eQ.ignoreEvents=true}a4(eP,eQ,eL,eE)}}}}else{if(ey&&ey.from<=ez&&ey.to>ez){while(eG.lineObj!=eS){eG=eA(eG)}if(eH&&ex<=ez&&eG.lineNumber){l(eG.lineNumber,c3(eF.options,ez))}eG=eG.nextSibling}else{if(eS.widgets){for(var eM=0,eR=eG,eO;eR&&eM<20;++eM,eR=eR.nextSibling){if(eR.lineObj==eS&&/div/i.test(eR.nodeName)){eO=eR;break}}}var eJ=ai(eF,eS,ez,eE,eO);if(eJ!=eO){ew.insertBefore(eJ,eG)}else{while(eG!=eO){eG=eA(eG)}eG=eG.nextSibling}eJ.lineObj=eS}}++ez});while(eG){eG=eA(eG)}}function ai(eD,eF,eG,eJ,ey){var eC=dq(eD,eF),eP=eC.pre;var eS=eF.gutterMarkers,eQ=eD.display,eE;var ex=eC.bgClass?eC.bgClass+" "+(eF.bgClass||""):eF.bgClass;if(!eD.options.lineNumbers&&!eS&&!ex&&!eF.wrapClass&&!eF.widgets){return eP}if(ey){ey.alignable=null;var eT=true,eB=0,ez=null;for(var eL=ey.firstChild,eK;eL;eL=eK){eK=eL.nextSibling;if(!/\bCodeMirror-linewidget\b/.test(eL.className)){ey.removeChild(eL)}else{for(var eR=0;eR<eF.widgets.length;++eR){var eA=eF.widgets[eR];if(eA.node==eL.firstChild){if(!eA.above&&!ez){ez=eL}a4(eA,eL,ey,eJ);++eB;break}}if(eR==eF.widgets.length){eT=false;break}}}ey.insertBefore(eP,ez);if(eT&&eB==eF.widgets.length){eE=ey;ey.className=eF.wrapClass||""}}if(!eE){eE=ej("div",null,eF.wrapClass,"position: relative");eE.appendChild(eP)}if(ex){eE.insertBefore(ej("div",null,ex+" CodeMirror-linebackground"),eE.firstChild)}if(eD.options.lineNumbers||eS){var eN=eE.insertBefore(ej("div",null,"CodeMirror-gutter-wrapper","position: absolute; left: "+(eD.options.fixedGutter?eJ.fixedPos:-eJ.gutterTotalWidth)+"px"),eP);if(eD.options.fixedGutter){(eE.alignable||(eE.alignable=[])).push(eN)}if(eD.options.lineNumbers&&(!eS||!eS["CodeMirror-linenumbers"])){eE.lineNumber=eN.appendChild(ej("div",c3(eD.options,eG),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+eJ.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+eQ.lineNumInnerWidth+"px"))}if(eS){for(var eO=0;eO<eD.options.gutters.length;++eO){var eI=eD.options.gutters[eO],eH=eS.hasOwnProperty(eI)&&eS[eI];if(eH){eN.appendChild(ej("div",[eH],"CodeMirror-gutter-elt","left: "+eJ.gutterLeft[eI]+"px; width: "+eJ.gutterWidth[eI]+"px"))}}}}if(bF){eE.style.zIndex=2}if(eF.widgets&&eE!=ey){for(var eR=0,ew=eF.widgets;eR<ew.length;++eR){var eA=ew[eR],eM=ej("div",[eA.node],"CodeMirror-linewidget");if(!eA.handleMouseEvents){eM.ignoreEvents=true}a4(eA,eM,eE,eJ);if(eA.above){eE.insertBefore(eM,eD.options.lineNumbers&&eF.height!=0?eN:eP)}else{eE.appendChild(eM)}O(eA,"redraw")}}return eE}function a4(ez,ey,ex,eA){if(ez.noHScroll){(ex.alignable||(ex.alignable=[])).push(ey);var ew=eA.wrapperWidth;ey.style.left=eA.fixedPos+"px";if(!ez.coverGutter){ew-=eA.gutterTotalWidth;ey.style.paddingLeft=eA.gutterTotalWidth+"px"}ey.style.width=ew+"px"}if(ez.coverGutter){ey.style.zIndex=5;ey.style.position="relative";if(!ez.noHScroll){ey.style.marginLeft=-eA.gutterTotalWidth+"px"}}}function a2(ew){var ez=ew.display;var eA=d8(ew.doc.sel.from,ew.doc.sel.to);if(eA||ew.options.showCursorWhenSelecting){C(ew)}else{ez.cursor.style.display=ez.otherCursor.style.display="none"}if(!eA){V(ew)}else{ez.selectionDiv.style.display="none"}if(ew.options.moveInputWithCursor){var eB=cH(ew,ew.doc.sel.head,"div");var ex=an(ez.wrapper),ey=an(ez.lineDiv);ez.inputDiv.style.top=Math.max(0,Math.min(ez.wrapper.clientHeight-10,eB.top+ey.top-ex.top))+"px";ez.inputDiv.style.left=Math.max(0,Math.min(ez.wrapper.clientWidth-10,eB.left+ey.left-ex.left))+"px"}}function C(ew){var ex=ew.display,ey=cH(ew,ew.doc.sel.head,"div");ex.cursor.style.left=ey.left+"px";ex.cursor.style.top=ey.top+"px";ex.cursor.style.height=Math.max(0,ey.bottom-ey.top)*ew.options.cursorHeight+"px";ex.cursor.style.display="";if(ey.other){ex.otherCursor.style.display="";ex.otherCursor.style.left=ey.other.left+"px";ex.otherCursor.style.top=ey.other.top+"px";ex.otherCursor.style.height=(ey.other.bottom-ey.other.top)*0.85+"px"}else{ex.otherCursor.style.display="none"}}function V(eH){var eC=eH.display,eG=eH.doc,ew=eH.doc.sel;var eA=document.createDocumentFragment();var eF=eC.lineSpace.offsetWidth,ey=av(eH.display);function eJ(eN,eM,eL,eK){if(eM<0){eM=0}eA.appendChild(ej("div",null,"CodeMirror-selected","position: absolute; left: "+eN+"px; top: "+eM+"px; width: "+(eL==null?eF-eN:eL)+"px; height: "+(eK-eM)+"px"))}function eE(eL,eN,eQ){var eM=dJ(eG,eL);var eO=eM.text.length;var eR,eK;function eP(eT,eS){return bZ(eH,K(eL,eT),"div",eM,eS)}cL(a(eM),eN||0,eQ==null?eO:eQ,function(eZ,eY,eS){var eV=eP(eZ,"left"),eW,eX,eU;if(eZ==eY){eW=eV;eX=eU=eV.left}else{eW=eP(eY-1,"right");if(eS=="rtl"){var eT=eV;eV=eW;eW=eT}eX=eV.left;eU=eW.right}if(eN==null&&eZ==0){eX=ey}if(eW.top-eV.top>3){eJ(eX,eV.top,null,eV.bottom);eX=ey;if(eV.bottom<eW.top){eJ(eX,eV.bottom,null,eW.top)}}if(eQ==null&&eY==eO){eU=eF}if(!eR||eV.top<eR.top||eV.top==eR.top&&eV.left<eR.left){eR=eV}if(!eK||eW.bottom>eK.bottom||eW.bottom==eK.bottom&&eW.right>eK.right){eK=eW}if(eX<ey+1){eX=ey}eJ(eX,eW.top,eU-eX,eW.bottom)});return{start:eR,end:eK}}if(ew.from.line==ew.to.line){eE(ew.from.line,ew.from.ch,ew.to.ch)}else{var ez=dJ(eG,ew.from.line),ex=dJ(eG,ew.to.line);var eB=u(eG,ez)==u(eG,ex);var eI=eE(ew.from.line,ew.from.ch,eB?ez.text.length:null).end;var eD=eE(ew.to.line,eB?0:null,ew.to.ch).start;if(eB){if(eI.top<eD.top-2){eJ(eI.right,eI.top,null,eI.bottom);eJ(ey,eD.top,eD.left,eD.bottom)}else{eJ(eI.right,eI.top,eD.left-eI.right,eI.bottom)}}if(eI.bottom<eD.top){eJ(ey,eI.bottom,null,eD.top)}}bf(eC.selectionDiv,eA);eC.selectionDiv.style.display=""}function k(ew){if(!ew.state.focused){return}var ey=ew.display;clearInterval(ey.blinker);var ex=true;ey.cursor.style.visibility=ey.otherCursor.style.visibility="";if(ew.options.cursorBlinkRate>0){ey.blinker=setInterval(function(){ey.cursor.style.visibility=ey.otherCursor.style.visibility=(ex=!ex)?"":"hidden"},ew.options.cursorBlinkRate)}}function cU(ew,ex){if(ew.doc.mode.startState&&ew.doc.frontier<ew.display.showingTo){ew.state.highlight.set(ex,bO(b3,ew))}}function b3(ew){var ez=ew.doc;if(ez.frontier<ez.first){ez.frontier=ez.first}if(ez.frontier>=ew.display.showingTo){return}var ex=+new Date+ew.options.workTime;var ey=bo(ez.mode,cw(ew,ez.frontier));var eB=[],eA;ez.iter(ez.frontier,Math.min(ez.first+ez.size,ew.display.showingTo+500),function(eC){if(ez.frontier>=ew.display.showingFrom){var eE=eC.styles;eC.styles=d4(ew,eC,ey,true);var eF=!eE||eE.length!=eC.styles.length;for(var eD=0;!eF&&eD<eE.length;++eD){eF=eE[eD]!=eC.styles[eD]}if(eF){if(eA&&eA.end==ez.frontier){eA.end++}else{eB.push(eA={start:ez.frontier,end:ez.frontier+1})}}eC.stateAfter=bo(ez.mode,ey)}else{cu(ew,eC.text,ey);eC.stateAfter=ez.frontier%5==0?bo(ez.mode,ey):null}++ez.frontier;if(+new Date>ex){cU(ew,ew.options.workDelay);return true}});if(eB.length){b9(ew,function(){for(var eC=0;eC<eB.length;++eC){Q(this,eB[eC].start,eB[eC].end)}})()}}function bQ(eC,ew,ez){var ex,eA,eB=eC.doc;var ey=ez?-1:ew-(eC.doc.mode.innerMode?1000:100);for(var eF=ew;eF>ey;--eF){if(eF<=eB.first){return eB.first}var eE=dJ(eB,eF-1);if(eE.stateAfter&&(!ez||eF<=eB.frontier)){return eF}var eD=bg(eE.text,null,eC.options.tabSize);if(eA==null||ex>eD){eA=eF-1;ex=eD}}return eA}function cw(ew,eC,ex){var eA=ew.doc,ez=ew.display;if(!eA.mode.startState){return true}var eB=bQ(ew,eC,ex),ey=eB>eA.first&&dJ(eA,eB-1).stateAfter;if(!ey){ey=bm(eA.mode)}else{ey=bo(eA.mode,ey)}eA.iter(eB,eC,function(eD){cu(ew,eD.text,ey);var eE=eB==eC-1||eB%5==0||eB>=ez.showingFrom&&eB<ez.showingTo;eD.stateAfter=eE?bo(eA.mode,ey):null;++eB});if(ex){eA.frontier=eB}return ey}function dD(ew){return ew.lineSpace.offsetTop}function a7(ew){return ew.mover.offsetHeight-ew.lineSpace.offsetHeight}function av(ex){var ew=bf(ex.measure,ej("pre",null,null,"text-align: left")).appendChild(ej("span","x"));return ew.offsetLeft}function cW(eD,eE,ex,eA,eB){var ez=-1;eA=eA||a8(eD,eE);if(eA.crude){var ey=eA.left+ex*eA.width;return{left:ey,right:ey+eA.width,top:eA.top,bottom:eA.bottom}}for(var eC=ex;;eC+=ez){var ew=eA[eC];if(ew){break}if(ez<0&&eC==0){ez=1}}eB=eC>ex?"left":eC<ex?"right":eB;if(eB=="left"&&ew.leftSide){ew=ew.leftSide}else{if(eB=="right"&&ew.rightSide){ew=ew.rightSide}}return{left:eC<ex?ew.right:ew.left,right:eC>ex?ew.left:ew.right,top:ew.top,bottom:ew.bottom}}function dB(ew,ex){var ez=ew.display.measureLineCache;for(var eA=0;eA<ez.length;++eA){var ey=ez[eA];if(ey.text==ex.text&&ey.markedSpans==ex.markedSpans&&ew.display.scroller.clientWidth==ey.width&&ey.classes==ex.textClass+"|"+ex.wrapClass){return ey}}}function ec(ew,ex){var ey=dB(ew,ex);if(ey){ey.text=ey.measure=ey.markedSpans=null}}function a8(ew,ex){var eB=dB(ew,ex);if(eB){return eB.measure}var eA=ci(ew,ex);var ez=ew.display.measureLineCache;var ey={text:ex.text,width:ew.display.scroller.clientWidth,markedSpans:ex.markedSpans,measure:eA,classes:ex.textClass+"|"+ex.wrapClass};if(ez.length==16){ez[++ew.display.measureLineCachePos%16]=ey}else{ez.push(ey)}return eA}function ci(eD,eF){if(!eD.options.lineWrapping&&eF.text.length>=eD.options.crudeMeasuringFrom){return ek(eD,eF)}var eL=eD.display,eB=U(eF.text.length);var eI=dq(eD,eF,eB,true).pre;if(cf&&!bF&&!eD.options.lineWrapping&&eI.childNodes.length>100){var ey=document.createDocumentFragment();var eG=10,eJ=eI.childNodes.length;for(var eN=0,eH=Math.ceil(eJ/eG);eN<eH;++eN){var eE=ej("div",null,null,"display: inline-block");for(var eM=0;eM<eG&&eJ;++eM){eE.appendChild(eI.firstChild);--eJ}ey.appendChild(eE)}eI.appendChild(ey)}bf(eL.measure,eI);var ex=an(eL.lineDiv);var ew=[],eQ=U(eF.text.length),eP=eI.offsetHeight;if(bE&&eL.measure.first!=eI){bf(eL.measure,eI)}function eO(eT){var eV=eT.top-ex.top,eX=eT.bottom-ex.top;if(eX>eP){eX=eP}if(eV<0){eV=0}for(var eS=ew.length-2;eS>=0;eS-=2){var eU=ew[eS],eW=ew[eS+1];if(eU>eX||eW<eV){continue}if(eU<=eV&&eW>=eX||eV<=eU&&eX>=eW||Math.min(eX,eW)-Math.max(eV,eU)>=(eX-eV)>>1){ew[eS]=Math.min(eV,eU);ew[eS+1]=Math.max(eX,eW);break}}if(eS<0){eS=ew.length;ew.push(eV,eX)}return{left:eT.left-ex.left,right:eT.right-ex.left,top:eS,bottom:null}}function eR(eS){eS.bottom=ew[eS.top+1];eS.top=ew[eS.top]}for(var eN=0,eA;eN<eB.length;++eN){if(eA=eB[eN]){var eK=eA,ez=null;if(/\bCodeMirror-widget\b/.test(eA.className)&&eA.getClientRects){if(eA.firstChild.nodeType==1){eK=eA.firstChild}var eC=eK.getClientRects();if(eC.length>1){ez=eQ[eN]=eO(eC[0]);ez.rightSide=eO(eC[eC.length-1])}}if(!ez){ez=eQ[eN]=eO(an(eK))}if(eA.measureRight){ez.right=an(eA.measureRight).left-ex.left}if(eA.leftSide){ez.leftSide=eO(an(eA.leftSide))}}}cK(eD.display.measure);for(var eN=0,eA;eN<eQ.length;++eN){if(eA=eQ[eN]){eR(eA);if(eA.leftSide){eR(eA.leftSide)}if(eA.rightSide){eR(eA.rightSide)}}}return eQ}function ek(ew,ex){var eB=new en(ex.text.slice(0,100),null);if(ex.textClass){eB.textClass=ex.textClass}var ez=ci(ew,eB);var eA=cW(ew,eB,0,ez,"left");var ey=cW(ew,eB,99,ez,"right");return{crude:true,top:eA.top,left:eA.left,bottom:eA.bottom,width:(ey.right-eA.left)/100}}function dg(ew,ey){var eD=false;if(ey.markedSpans){for(var ez=0;ez<ey.markedSpans;++ez){var eB=ey.markedSpans[ez];if(eB.collapsed&&(eB.to==null||eB.to==ey.text.length)){eD=true}}}var eA=!eD&&dB(ew,ey);if(eA||ey.text.length>=ew.options.crudeMeasuringFrom){return cW(ew,ey,ey.text.length,eA&&eA.measure,"right").right}var eC=dq(ew,ey,null,true).pre;var ex=eC.appendChild(aS(ew.display.measure));bf(ew.display.measure,eC);return an(ex).right-an(ew.display.lineDiv).left}function T(ew){ew.display.measureLineCache.length=ew.display.measureLineCachePos=0;ew.display.cachedCharWidth=ew.display.cachedTextHeight=null;if(!ew.options.lineWrapping){ew.display.maxLineChanged=true}ew.display.lineNumChars=null}function bN(){return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function bM(){return window.pageYOffset||(document.documentElement||document.body).scrollTop}function dp(eC,ez,eB,ex){if(ez.widgets){for(var ey=0;ey<ez.widgets.length;++ey){if(ez.widgets[ey].above){var eE=b6(ez.widgets[ey]);eB.top+=eE;eB.bottom+=eE}}}if(ex=="line"){return eB}if(!ex){ex="local"}var eA=bb(eC,ez);if(ex=="local"){eA+=dD(eC.display)}else{eA-=eC.display.viewOffset}if(ex=="page"||ex=="window"){var ew=an(eC.display.lineSpace);eA+=ew.top+(ex=="window"?0:bM());var eD=ew.left+(ex=="window"?0:bN());eB.left+=eD;eB.right+=eD}eB.top+=eA;eB.bottom+=eA;return eB}function es(ex,eA,ey){if(ey=="div"){return eA}var eC=eA.left,eB=eA.top;if(ey=="page"){eC-=bN();eB-=bM()}else{if(ey=="local"||!ey){var ez=an(ex.display.sizer);eC+=ez.left;eB+=ez.top}}var ew=an(ex.display.lineSpace);return{left:eC-ew.left,top:eB-ew.top}}function bZ(ew,eA,ez,ey,ex){if(!ey){ey=dJ(ew.doc,eA.line)}return dp(ew,ey,cW(ew,ey,eA.ch,null,ex),ez)}function cH(eF,eE,ey,eD,eB){eD=eD||dJ(eF.doc,eE.line);if(!eB){eB=a8(eF,eD)}function eA(eJ,eI){var eH=cW(eF,eD,eJ,eB,eI?"right":"left");if(eI){eH.left=eH.right}else{eH.right=eH.left}return dp(eF,eD,eH,ey)}function eG(eK,eH){var eI=eC[eH],eJ=eI.level%2;if(eK==cv(eI)&&eH&&eI.level<eC[eH-1].level){eI=eC[--eH];eK=er(eI)-(eI.level%2?0:1);eJ=true}else{if(eK==er(eI)&&eH<eC.length-1&&eI.level<eC[eH+1].level){eI=eC[++eH];eK=cv(eI)-eI.level%2;eJ=false}}if(eJ&&eK==eI.to&&eK>eI.from){return eA(eK-1)}return eA(eK,eJ)}var eC=a(eD),ew=eE.ch;if(!eC){return eA(ew)}var ex=aj(eC,ew);var ez=eG(ew,ex);if(dz!=null){ez.other=eG(ew,dz)}return ez}function ei(ew,ex,ey,eA){var ez=new K(ew,ex);ez.xRel=eA;if(ey){ez.outside=true}return ez}function ed(eD,eA,ez){var eC=eD.doc;ez+=eD.display.viewOffset;if(ez<0){return ei(eC.first,0,true,-1)}var ex=a5(eC,ez),eE=eC.first+eC.size-1;if(ex>eE){return ei(eC.first+eC.size-1,dJ(eC,eE).text.length,true,1)}if(eA<0){eA=0}for(;;){var ey=dJ(eC,ex);var eF=b7(eD,ey,ex,eA,ez);var eB=c5(ey);var ew=eB&&eB.find();if(eB&&(eF.ch>ew.from.ch||eF.ch==ew.from.ch&&eF.xRel>0)){ex=ew.to.line}else{return eF}}}function b7(eG,ey,eJ,eI,eH){var eF=eH-bb(eG,ey);var eC=false,eP=2*eG.display.wrapper.clientWidth;var eO=a8(eG,ey);function eT(eV){var eW=cH(eG,K(eJ,eV),"line",ey,eO);eC=true;if(eF>eW.bottom){return eW.left-eP}else{if(eF<eW.top){return eW.left+eP}else{eC=false}}return eW.left}var eL=a(ey),eN=ey.text.length;var eQ=bU(ey),ez=b4(ey);var eM=eT(eQ),ew=eC,ex=eT(ez),eB=eC;if(eI>ex){return ei(eJ,ez,eB,1)}for(;;){if(eL?ez==eQ||ez==q(ey,eQ,1):ez-eQ<=1){var eK=eI<eM||eI-eM<=ex-eI?eQ:ez;var eS=eI-(eK==eQ?eM:ex);while(dV(ey.text.charAt(eK))){++eK}var eE=ei(eJ,eK,eK==eQ?ew:eB,eS<0?-1:eS?1:0);return eE}var eD=Math.ceil(eN/2),eU=eQ+eD;if(eL){eU=eQ;for(var eR=0;eR<eD;++eR){eU=q(ey,eU,1)}}var eA=eT(eU);if(eA>eI){ez=eU;ex=eA;if(eB=eC){ex+=1000}eN=eD}else{eQ=eU;eM=eA;ew=eC;eN-=eD}}}var ak;function aw(ey){if(ey.cachedTextHeight!=null){return ey.cachedTextHeight}if(ak==null){ak=ej("pre");for(var ex=0;ex<49;++ex){ak.appendChild(document.createTextNode("x"));ak.appendChild(ej("br"))}ak.appendChild(document.createTextNode("x"))}bf(ey.measure,ak);var ew=ak.offsetHeight/50;if(ew>3){ey.cachedTextHeight=ew}cK(ey.measure);return ew||1}function cy(ez){if(ez.cachedCharWidth!=null){return ez.cachedCharWidth}var ew=ej("span","x");var ey=ej("pre",[ew]);bf(ez.measure,ey);var ex=ew.offsetWidth;if(ex>2){ez.cachedCharWidth=ex}return ex||10}var cO=0;function bY(ew){ew.curOp={changes:[],forceUpdate:false,updateInput:null,userSelChange:null,textChanged:null,selectionChanged:false,cursorActivity:false,updateMaxLine:false,updateScrollPos:false,id:++cO};if(!bL++){aT=[]}}function W(eK){var eE=eK.curOp,eJ=eK.doc,eF=eK.display;eK.curOp=null;if(eE.updateMaxLine){em(eK)}if(eF.maxLineChanged&&!eK.options.lineWrapping&&eF.maxLine){var ex=dg(eK,eF.maxLine);eF.sizer.style.minWidth=Math.max(0,ex+3+aO)+"px";eF.maxLineChanged=false;var eH=Math.max(0,eF.sizer.offsetLeft+eF.sizer.offsetWidth-eF.scroller.clientWidth);if(eH<eJ.scrollLeft&&!eE.updateScrollPos){a3(eK,Math.min(eF.scroller.scrollLeft,eH),true)}}var ey,eC;if(eE.updateScrollPos){ey=eE.updateScrollPos}else{if(eE.selectionChanged&&eF.scroller.clientHeight){var eI=cH(eK,eJ.sel.head);ey=A(eK,eI.left,eI.top,eI.left,eI.bottom)}}if(eE.changes.length||eE.forceUpdate||ey&&ey.scrollTop!=null){eC=cB(eK,eE.changes,ey&&ey.scrollTop,eE.forceUpdate);if(eK.display.scroller.offsetHeight){eK.doc.scrollTop=eK.display.scroller.scrollTop}}if(!eC&&eE.selectionChanged){a2(eK)}if(eE.updateScrollPos){var eG=Math.max(0,Math.min(eF.scroller.scrollHeight-eF.scroller.clientHeight,ey.scrollTop));var ez=Math.max(0,Math.min(eF.scroller.scrollWidth-eF.scroller.clientWidth,ey.scrollLeft));eF.scroller.scrollTop=eF.scrollbarV.scrollTop=eJ.scrollTop=eG;eF.scroller.scrollLeft=eF.scrollbarH.scrollLeft=eJ.scrollLeft=ez;df(eK);if(eE.scrollToPos){x(eK,d9(eK.doc,eE.scrollToPos.from),d9(eK.doc,eE.scrollToPos.to),eE.scrollToPos.margin)}}else{if(ey){ae(eK)}}if(eE.selectionChanged){k(eK)}if(eK.state.focused&&eE.updateInput){dU(eK,eE.userSelChange)}var eD=eE.maybeHiddenMarkers,ew=eE.maybeUnhiddenMarkers;if(eD){for(var eB=0;eB<eD.length;++eB){if(!eD[eB].lines.length){ah(eD[eB],"hide")}}}if(ew){for(var eB=0;eB<ew.length;++eB){if(ew[eB].lines.length){ah(ew[eB],"unhide")}}}var eA;if(!--bL){eA=aT;aT=null}if(eE.textChanged){ah(eK,"change",eK,eE.textChanged)}if(eE.cursorActivity){ah(eK,"cursorActivity",eK)}if(eA){for(var eB=0;eB<eA.length;++eB){eA[eB]()}}}function b9(ew,ex){return function(){var ez=ew||this,eA=!ez.curOp;if(eA){bY(ez)}try{var ey=ex.apply(ez,arguments)}finally{if(eA){W(ez)}}return ey}}function d3(ew){return function(){var ey=this.cm&&!this.cm.curOp,ex;if(ey){bY(this.cm)}try{ex=ew.apply(this,arguments)}finally{if(ey){W(this.cm)}}return ex}}function b1(ex,ez){var ey=!ex.curOp,ew;if(ey){bY(ex)}try{ew=ez()}finally{if(ey){W(ex)}}return ew}function Q(ew,ez,ey,ex){if(ez==null){ez=ew.doc.first}if(ey==null){ey=ew.doc.first+ew.doc.size}ew.curOp.changes.push({from:ez,to:ey,diff:ex})}function aR(ew){if(ew.display.pollingFast){return}ew.display.poll.set(ew.options.pollInterval,function(){bB(ew);if(ew.state.focused){aR(ew)}})}function w(ew){var ex=false;ew.display.pollingFast=true;function ey(){var ez=bB(ew);if(!ez&&!ex){ex=true;ew.display.poll.set(60,ey)}else{ew.display.pollingFast=false;aR(ew)}}ew.display.poll.set(20,ey)}function bB(eK){var eF=eK.display.input,eC=eK.display.prevInput,eJ=eK.doc,ew=eJ.sel;if(!eK.state.focused||aX(eF)||S(eK)||eK.options.disableInput){return false}if(eK.state.pasteIncoming&&eK.state.fakedLastChar){eF.value=eF.value.substring(0,eF.value.length-1);eK.state.fakedLastChar=false}var eL=eF.value;if(eL==eC&&d8(ew.from,ew.to)){return false}if(cA&&!bE&&eK.display.inputHasSelection===eL){dU(eK,true);return false}var ey=!eK.curOp;if(ey){bY(eK)}ew.shift=false;var eE=0,ex=Math.min(eC.length,eL.length);while(eE<ex&&eC.charCodeAt(eE)==eL.charCodeAt(eE)){++eE}var eI=ew.from,eH=ew.to;var eA=eL.slice(eE);if(eE<eC.length){eI=K(eI.line,eI.ch-(eC.length-eE))}else{if(eK.state.overwrite&&d8(eI,eH)&&!eK.state.pasteIncoming){eH=K(eH.line,Math.min(dJ(eJ,eH.line).text.length,eH.ch+eA.length))}}var eD=eK.curOp.updateInput;var eG={from:eI,to:eH,text:ay(eA),origin:eK.state.pasteIncoming?"paste":eK.state.cutIncoming?"cut":"+input"};aL(eK.doc,eG,"end");eK.curOp.updateInput=eD;O(eK,"inputRead",eK,eG);if(eA&&!eK.state.pasteIncoming&&eK.options.electricChars&&eK.options.smartIndent&&ew.head.ch<100){var ez=eK.getModeAt(ew.head).electricChars;if(ez){for(var eB=0;eB<ez.length;eB++){if(eA.indexOf(ez.charAt(eB))>-1){N(eK,ew.head.line,"smart");break}}}}if(eL.length>1000||eL.indexOf("\n")>-1){eF.value=eK.display.prevInput=""}else{eK.display.prevInput=eL}if(ey){W(eK)}eK.state.pasteIncoming=eK.state.cutIncoming=false;return true}function dU(ew,ey){var ex,ez,eB=ew.doc;if(!d8(eB.sel.from,eB.sel.to)){ew.display.prevInput="";ex=ce&&(eB.sel.to.line-eB.sel.from.line>100||(ez=ew.getSelection()).length>1000);var eA=ex?"-":ez||ew.getSelection();ew.display.input.value=eA;if(ew.state.focused){cC(ew.display.input)}if(cA&&!bE){ew.display.inputHasSelection=eA}}else{if(ey){ew.display.prevInput=ew.display.input.value="";if(cA&&!bE){ew.display.inputHasSelection=null}}}ew.display.inaccurateSelection=ex}function db(ew){if(ew.options.readOnly!="nocursor"&&(!cV||document.activeElement!=ew.display.input)){ew.display.input.focus()}}function S(ew){return ew.options.readOnly||ew.doc.cantEdit}function ee(ex){var eC=ex.display;bk(eC.scroller,"mousedown",b9(ex,c4));if(cf){bk(eC.scroller,"dblclick",b9(ex,function(eF){if(ar(ex,eF)){return}var eG=bH(ex,eF);if(!eG||j(ex,eF)||aG(ex.display,eF)){return}bV(eF);var eE=ab(dJ(ex.doc,eG.line).text,eG);eg(ex.doc,eE.from,eE.to)}))}else{bk(eC.scroller,"dblclick",function(eE){ar(ex,eE)||bV(eE)})}bk(eC.lineSpace,"selectstart",function(eE){if(!aG(eC,eE)){bV(eE)}});if(!bX){bk(eC.scroller,"contextmenu",function(eE){ad(ex,eE)})}bk(eC.scroller,"scroll",function(){if(eC.scroller.clientHeight){F(ex,eC.scroller.scrollTop);a3(ex,eC.scroller.scrollLeft,true);ah(ex,"scroll",ex)}});bk(eC.scrollbarV,"scroll",function(){if(eC.scroller.clientHeight){F(ex,eC.scrollbarV.scrollTop)}});bk(eC.scrollbarH,"scroll",function(){if(eC.scroller.clientHeight){a3(ex,eC.scrollbarH.scrollLeft)}});bk(eC.scroller,"mousewheel",function(eE){b(ex,eE)});bk(eC.scroller,"DOMMouseScroll",function(eE){b(ex,eE)});function eD(){if(ex.state.focused){setTimeout(bO(db,ex),0)}}bk(eC.scrollbarH,"mousedown",eD);bk(eC.scrollbarV,"mousedown",eD);bk(eC.wrapper,"scroll",function(){eC.wrapper.scrollTop=eC.wrapper.scrollLeft=0});var ew;function eA(){if(ew==null){ew=setTimeout(function(){ew=null;eC.cachedCharWidth=eC.cachedTextHeight=c6=null;T(ex);b1(ex,bO(Q,ex))},100)}}bk(window,"resize",eA);function ez(){for(var eE=eC.wrapper.parentNode;eE&&eE!=document.body;eE=eE.parentNode){}if(eE){setTimeout(ez,5000)}else{cT(window,"resize",eA)}}setTimeout(ez,5000);bk(eC.input,"keyup",b9(ex,function(eE){if(ar(ex,eE)||ex.options.onKeyEvent&&ex.options.onKeyEvent(ex,Y(eE))){return}if(eE.keyCode==16){ex.doc.sel.shift=false}}));bk(eC.input,"input",function(){if(cA&&!bE&&ex.display.inputHasSelection){ex.display.inputHasSelection=null}w(ex)});bk(eC.input,"keydown",b9(ex,m));bk(eC.input,"keypress",b9(ex,bP));bk(eC.input,"focus",bO(bS,ex));bk(eC.input,"blur",bO(au,ex));function ey(eE){if(ar(ex,eE)||ex.options.onDragEvent&&ex.options.onDragEvent(ex,Y(eE))){return}c2(eE)}if(ex.options.dragDrop){bk(eC.scroller,"dragstart",function(eE){I(ex,eE)});bk(eC.scroller,"dragenter",ey);bk(eC.scroller,"dragover",ey);bk(eC.scroller,"drop",b9(ex,aN))}bk(eC.scroller,"paste",function(eE){if(aG(eC,eE)){return}db(ex);w(ex)});bk(eC.input,"paste",function(){if(b8&&!ex.state.fakedLastChar&&!(new Date-ex.state.lastMiddleDown<200)){var eF=eC.input.selectionStart,eE=eC.input.selectionEnd;eC.input.value+="$";eC.input.selectionStart=eF;eC.input.selectionEnd=eE;ex.state.fakedLastChar=true}ex.state.pasteIncoming=true;w(ex)});function eB(eE){if(eC.inaccurateSelection){eC.prevInput="";eC.inaccurateSelection=false;eC.input.value=ex.getSelection();cC(eC.input)}if(eE.type=="cut"){ex.state.cutIncoming=true}}bk(eC.input,"cut",eB);bk(eC.input,"copy",eB);if(aH){bk(eC.sizer,"mouseup",function(){if(document.activeElement==eC.input){eC.input.blur()}db(ex)})}}function aG(ex,ew){for(var ey=D(ew);ey!=ex.wrapper;ey=ey.parentNode){if(!ey||ey.ignoreEvents||ey.parentNode==ex.sizer&&ey!=ex.mover){return true}}}function bH(ex,eC,ez){var eB=ex.display;if(!ez){var eA=D(eC);if(eA==eB.scrollbarH||eA==eB.scrollbarH.firstChild||eA==eB.scrollbarV||eA==eB.scrollbarV.firstChild||eA==eB.scrollbarFiller||eA==eB.gutterFiller){return null}}var ew,eD,ey=an(eB.lineSpace);try{ew=eC.clientX;eD=eC.clientY}catch(eC){return null}return ed(ex,ew-ey.left,eD-ey.top)}var cn,ch;function c4(eO){if(ar(this,eO)){return}var ez=this,eJ=ez.display,eQ=ez.doc,eH=eQ.sel;eH.shift=eO.shiftKey;if(aG(eJ,eO)){if(!b8){eJ.scroller.draggable=false;setTimeout(function(){eJ.scroller.draggable=true},100)}return}if(j(ez,eO)){return}var ey=bH(ez,eO);switch(eb(eO)){case 3:if(bX){ad.call(ez,ez,eO)}return;case 2:if(b8){ez.state.lastMiddleDown=+new Date}if(ey){eg(ez.doc,ey)}setTimeout(bO(db,ez),20);bV(eO);return}if(!ey){if(D(eO)==eJ.scroller){bV(eO)}return}if(!ez.state.focused){bS(ez)}var ew=+new Date,ex="single";if(ch&&ch.time>ew-400&&d8(ch.pos,ey)){ex="triple";bV(eO);setTimeout(bO(db,ez),20);aQ(ez,ey.line)}else{if(cn&&cn.time>ew-400&&d8(cn.pos,ey)){ex="double";ch={time:ew,pos:ey};bV(eO);var eL=ab(dJ(eQ,ey.line).text,ey);eg(ez.doc,eL.from,eL.to)}else{cn={time:ew,pos:ey}}}var eA=ey;if(ez.options.dragDrop&&dm&&!S(ez)&&!d8(eH.from,eH.to)&&!dK(ey,eH.from)&&!dK(eH.to,ey)&&ex=="single"){var eK=b9(ez,function(eR){if(b8){eJ.scroller.draggable=false}ez.state.draggingText=false;cT(document,"mouseup",eK);cT(eJ.scroller,"drop",eK);if(Math.abs(eO.clientX-eR.clientX)+Math.abs(eO.clientY-eR.clientY)<10){bV(eR);eg(ez.doc,ey);db(ez);if(cf&&!bE){setTimeout(function(){document.body.focus();db(ez)},20)}}});if(b8){eJ.scroller.draggable=true}ez.state.draggingText=eK;if(eJ.scroller.dragDrop){eJ.scroller.dragDrop()}bk(document,"mouseup",eK);bk(eJ.scroller,"drop",eK);return}bV(eO);if(ex=="single"){eg(ez.doc,d9(eQ,ey))}var eP=eH.from,eE=eH.to,eI=ey;function eM(eS){if(d8(eI,eS)){return}eI=eS;if(ex=="single"){eg(ez.doc,d9(eQ,ey),eS);return}eP=d9(eQ,eP);eE=d9(eQ,eE);if(ex=="double"){var eR=ab(dJ(eQ,eS.line).text,eS);if(dK(eS,eP)){eg(ez.doc,eR.from,eE)}else{eg(ez.doc,eP,eR.to)}}else{if(ex=="triple"){if(dK(eS,eP)){eg(ez.doc,eE,d9(eQ,K(eS.line,0)))}else{eg(ez.doc,eP,d9(eQ,K(eS.line+1,0)))}}}}var eF=an(eJ.wrapper);var eB=0;function eN(eT){var eR=++eB;var eV=bH(ez,eT,true);if(!eV){return}if(!d8(eV,eA)){if(!ez.state.focused){bS(ez)}eA=eV;eM(eV);var eU=bp(eJ,eQ);if(eV.line>=eU.to||eV.line<eU.from){setTimeout(b9(ez,function(){if(eB==eR){eN(eT)}}),150)}}else{var eS=eT.clientY<eF.top?-20:eT.clientY>eF.bottom?20:0;if(eS){setTimeout(b9(ez,function(){if(eB!=eR){return}eJ.scroller.scrollTop+=eS;eN(eT)}),50)}}}function eD(eR){eB=Infinity;bV(eR);db(ez);cT(document,"mousemove",eG);cT(document,"mouseup",eC)}var eG=b9(ez,function(eR){if(!cf&&!eb(eR)){eD(eR)}else{eN(eR)}});var eC=b9(ez,eD);bk(document,"mousemove",eG);bk(document,"mouseup",eC)}function eu(eH,eD,eF,eG,ez){try{var ex=eD.clientX,ew=eD.clientY}catch(eD){return false}if(ex>=Math.floor(an(eH.display.gutters).right)){return false}if(eG){bV(eD)}var eE=eH.display;var eC=an(eE.lineDiv);if(ew>eC.bottom||!dP(eH,eF)){return ba(eD)}ew-=eC.top-eE.viewOffset;for(var eA=0;eA<eH.options.gutters.length;++eA){var eB=eE.gutters.childNodes[eA];if(eB&&an(eB).right>=ex){var eI=a5(eH.doc,ew);var ey=eH.options.gutters[eA];ez(eH,eF,eH,eI,ey,eD);return ba(eD)}}}function ck(ew,ex){if(!dP(ew,"gutterContextMenu")){return false}return eu(ew,ex,"gutterContextMenu",false,ah)}function j(ew,ex){return eu(ew,ex,"gutterClick",true,O)}var P=0;function aN(eC){var eE=this;if(ar(eE,eC)||aG(eE.display,eC)||(eE.options.onDragEvent&&eE.options.onDragEvent(eE,Y(eC)))){return}bV(eC);if(cA){P=+new Date}var eD=bH(eE,eC,true),ew=eC.dataTransfer.files;if(!eD||S(eE)){return}if(ew&&ew.length&&window.FileReader&&window.File){var ey=ew.length,eG=Array(ey),ex=0;var ez=function(eJ,eI){var eH=new FileReader;eH.onload=function(){eG[eI]=eH.result;if(++ex==ey){eD=d9(eE.doc,eD);aL(eE.doc,{from:eD,to:eD,text:ay(eG.join("\n")),origin:"paste"},"around")}};eH.readAsText(eJ)};for(var eA=0;eA<ey;++eA){ez(ew[eA],eA)}}else{if(eE.state.draggingText&&!(dK(eD,eE.doc.sel.from)||dK(eE.doc.sel.to,eD))){eE.state.draggingText(eC);setTimeout(bO(db,eE),20);return}try{var eG=eC.dataTransfer.getData("Text");if(eG){var eF=eE.doc.sel.from,eB=eE.doc.sel.to;bh(eE.doc,eD,eD);if(eE.state.draggingText){az(eE.doc,"",eF,eB,"paste")}eE.replaceSelection(eG,null,"paste");db(eE)}}catch(eC){}}}function I(ex,ez){if(cA&&(!ex.state.draggingText||+new Date-P<100)){c2(ez);return}if(ar(ex,ez)||aG(ex.display,ez)){return}var ew=ex.getSelection();ez.dataTransfer.setData("Text",ew);if(ez.dataTransfer.setDragImage&&!ag){var ey=ej("img",null,null,"position: fixed; left: 0; top: 0;");ey.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";if(d1){ey.width=ey.height=1;ex.display.wrapper.appendChild(ey);ey._top=ey.offsetTop}ez.dataTransfer.setDragImage(ey,0,0);if(d1){ey.parentNode.removeChild(ey)}}}function F(ew,ex){if(Math.abs(ew.doc.scrollTop-ex)<2){return}ew.doc.scrollTop=ex;if(!bI){cB(ew,[],ex)}if(ew.display.scroller.scrollTop!=ex){ew.display.scroller.scrollTop=ex}if(ew.display.scrollbarV.scrollTop!=ex){ew.display.scrollbarV.scrollTop=ex}if(bI){cB(ew,[])}cU(ew,100)}function a3(ew,ey,ex){if(ex?ey==ew.doc.scrollLeft:Math.abs(ew.doc.scrollLeft-ey)<2){return}ey=Math.min(ey,ew.display.scroller.scrollWidth-ew.display.scroller.clientWidth);ew.doc.scrollLeft=ey;df(ew);if(ew.display.scroller.scrollLeft!=ey){ew.display.scroller.scrollLeft=ey}if(ew.display.scrollbarH.scrollLeft!=ey){ew.display.scrollbarH.scrollLeft=ey}}var dQ=0,bA=null;if(cf){bA=-0.53}else{if(bI){bA=15}else{if(cg){bA=-0.7}else{if(ag){bA=-1/3}}}}function b(eC,ex){var eF=ex.wheelDeltaX,eE=ex.wheelDeltaY;if(eF==null&&ex.detail&&ex.axis==ex.HORIZONTAL_AXIS){eF=ex.detail}if(eE==null&&ex.detail&&ex.axis==ex.VERTICAL_AXIS){eE=ex.detail}else{if(eE==null){eE=ex.wheelDelta}}var ez=eC.display,eB=ez.scroller;if(!(eF&&eB.scrollWidth>eB.clientWidth||eE&&eB.scrollHeight>eB.clientHeight)){return}if(eE&&bq&&b8){for(var eD=ex.target;eD!=eB;eD=eD.parentNode){if(eD.lineObj){eC.display.currentWheelTarget=eD;break}}}if(eF&&!bI&&!d1&&bA!=null){if(eE){F(eC,Math.max(0,Math.min(eB.scrollTop+eE*bA,eB.scrollHeight-eB.clientHeight)))}a3(eC,Math.max(0,Math.min(eB.scrollLeft+eF*bA,eB.scrollWidth-eB.clientWidth)));bV(ex);ez.wheelStartX=null;return}if(eE&&bA!=null){var ew=eE*bA;var eA=eC.doc.scrollTop,ey=eA+ez.wrapper.clientHeight;if(ew<0){eA=Math.max(0,eA+ew-50)}else{ey=Math.min(eC.doc.height,ey+ew+50)}cB(eC,[],{top:eA,bottom:ey})}if(dQ<20){if(ez.wheelStartX==null){ez.wheelStartX=eB.scrollLeft;ez.wheelStartY=eB.scrollTop;ez.wheelDX=eF;ez.wheelDY=eE;setTimeout(function(){if(ez.wheelStartX==null){return}var eG=eB.scrollLeft-ez.wheelStartX;var eI=eB.scrollTop-ez.wheelStartY;var eH=(eI&&ez.wheelDY&&eI/ez.wheelDY)||(eG&&ez.wheelDX&&eG/ez.wheelDX);ez.wheelStartX=ez.wheelStartY=null;if(!eH){return}bA=(bA*dQ+eH)/(dQ+1);++dQ},200)}else{ez.wheelDX+=eF;ez.wheelDY+=eE}}}function ef(ex,eA,ew){if(typeof eA=="string"){eA=dd[eA];if(!eA){return false}}if(ex.display.pollingFast&&bB(ex)){ex.display.pollingFast=false}var eB=ex.doc,ez=eB.sel.shift,ey=false;try{if(S(ex)){ex.state.suppressEdits=true}if(ew){eB.sel.shift=false}ey=eA(ex)!=bv}finally{eB.sel.shift=ez;ex.state.suppressEdits=false}return ey}function cr(ew){var ex=ew.state.keyMaps.slice(0);if(ew.options.extraKeys){ex.push(ew.options.extraKeys)}ex.push(ew.options.keyMap);return ex}var Z;function dN(ew,eC){var ex=eh(ew.options.keyMap),eA=ex.auto;clearTimeout(Z);if(eA&&!dc(eC)){Z=setTimeout(function(){if(eh(ew.options.keyMap)==ex){ew.options.keyMap=(eA.call?eA.call(null,ew):eA);et(ew)}},50)}var ez=dW(eC,true),eB=false;if(!ez){return false}var ey=cr(ew);if(eC.shiftKey){eB=g("Shift-"+ez,ey,function(eD){return ef(ew,eD,true)})||g(ez,ey,function(eD){if(typeof eD=="string"?/^go[A-Z]/.test(eD):eD.motion){return ef(ew,eD)}})}else{eB=g(ez,ey,function(eD){return ef(ew,eD)})}if(eB){bV(eC);k(ew);if(bE){eC.oldKeyCode=eC.keyCode;eC.keyCode=0}O(ew,"keyHandled",ew,ez,eC)}return eB}function cX(ew,ez,ex){var ey=g("'"+ex+"'",cr(ew),function(eA){return ef(ew,eA,true)});if(ey){bV(ez);k(ew);O(ew,"keyHandled",ew,"'"+ex+"'",ez)}return ey}var cm=null;function m(ez){var ew=this;if(!ew.state.focused){bS(ew)}if(ar(ew,ez)||ew.options.onKeyEvent&&ew.options.onKeyEvent(ew,Y(ez))){return}if(cf&&ez.keyCode==27){ez.returnValue=false}var ex=ez.keyCode;ew.doc.sel.shift=ex==16||ez.shiftKey;var ey=dN(ew,ez);if(d1){cm=ey?ex:null;if(!ey&&ex==88&&!ce&&(bq?ez.metaKey:ez.ctrlKey)){ew.replaceSelection("")}}}function bP(eA){var ew=this;if(ar(ew,eA)||ew.options.onKeyEvent&&ew.options.onKeyEvent(ew,Y(eA))){return}var ez=eA.keyCode,ex=eA.charCode;if(d1&&ez==cm){cm=null;bV(eA);return}if(((d1&&(!eA.which||eA.which<10))||aH)&&dN(ew,eA)){return}var ey=String.fromCharCode(ex==null?ez:ex);if(cX(ew,eA,ey)){return}if(cA&&!bE){ew.display.inputHasSelection=null}w(ew)}function bS(ew){if(ew.options.readOnly=="nocursor"){return}if(!ew.state.focused){ah(ew,"focus",ew);ew.state.focused=true;if(ew.display.wrapper.className.search(/\bCodeMirror-focused\b/)==-1){ew.display.wrapper.className+=" CodeMirror-focused"}if(!ew.curOp){dU(ew,true);if(b8){setTimeout(bO(dU,ew,true),0)}}}aR(ew);k(ew)}function au(ew){if(ew.state.focused){ah(ew,"blur",ew);ew.state.focused=false;ew.display.wrapper.className=ew.display.wrapper.className.replace(" CodeMirror-focused","")}clearInterval(ew.display.blinker);setTimeout(function(){if(!ew.state.focused){ew.doc.sel.shift=false}},150)}var d5;function ad(eG,eB){if(ar(eG,eB,"contextmenu")){return}var eD=eG.display,ex=eG.doc.sel;if(aG(eD,eB)||ck(eG,eB)){return}var eF=bH(eG,eB),ew=eD.scroller.scrollTop;if(!eF||d1){return}var eA=eG.options.resetSelectionOnContextMenu;if(eA&&(d8(ex.from,ex.to)||dK(eF,ex.from)||!dK(eF,ex.to))){b9(eG,bh)(eG.doc,eF,eF)}var eC=eD.input.style.cssText;eD.inputDiv.style.position="absolute";eD.input.style.cssText="position: fixed; width: 30px; height: 30px; top: "+(eB.clientY-5)+"px; left: "+(eB.clientX-5)+"px; z-index: 1000; background: transparent; outline: none;border-width: 0; outline: none; overflow: hidden; opacity: .05; -ms-opacity: .05; filter: alpha(opacity=5);";db(eG);dU(eG,true);if(d8(ex.from,ex.to)){eD.input.value=eD.prevInput=" "}function ez(){if(eD.input.selectionStart!=null){var eH=eD.input.value="\u200b"+(d8(ex.from,ex.to)?"":eD.input.value);eD.prevInput="\u200b";eD.input.selectionStart=1;eD.input.selectionEnd=eH.length}}function eE(){eD.inputDiv.style.position="relative";eD.input.style.cssText=eC;if(bE){eD.scrollbarV.scrollTop=eD.scroller.scrollTop=ew}aR(eG);if(eD.input.selectionStart!=null){if(!cf||bE){ez()}clearTimeout(d5);var eH=0,eI=function(){if(eD.prevInput=="\u200b"&&eD.input.selectionStart==0){b9(eG,dd.selectAll)(eG)}else{if(eH++<10){d5=setTimeout(eI,500)}else{dU(eG)}}};d5=setTimeout(eI,200)}}if(cf&&!bE){ez()}if(bX){c2(eB);var ey=function(){cT(window,"mouseup",ey);setTimeout(eE,20)};bk(window,"mouseup",ey)}else{setTimeout(eE,50)}}var b5=B.changeEnd=function(ew){if(!ew.text){return ew.to}return K(ew.from.line+ew.text.length-1,d7(ew.text).length+(ew.text.length==1?ew.from.ch:0))};function de(eA,eC,eB){if(!dK(eC.from,eB)){return d9(eA,eB)}var ez=(eC.text.length-1)-(eC.to.line-eC.from.line);if(eB.line>eC.to.line+ez){var ey=eB.line-ez,ex=eA.first+eA.size-1;if(ey>ex){return K(ex,dJ(eA,ex).text.length)}return dX(eB,dJ(eA,ey).text.length)}if(eB.line==eC.to.line+ez){return dX(eB,d7(eC.text).length+(eC.text.length==1?eC.from.ch:0)+dJ(eA,eC.to.line).text.length-eC.to.ch)}var ew=eB.line-eC.from.line;return dX(eB,eC.text[ew].length+(ew?0:eC.from.ch))}function dO(ex,eA,ey){if(ey&&typeof ey=="object"){return{anchor:de(ex,eA,ey.anchor),head:de(ex,eA,ey.head)}}if(ey=="start"){return{anchor:eA.from,head:eA.from}}var ew=b5(eA);if(ey=="around"){return{anchor:eA.from,head:ew}}if(ey=="end"){return{anchor:ew,head:ew}}var ez=function(eD){if(dK(eD,eA.from)){return eD}if(!dK(eA.to,eD)){return ew}var eB=eD.line+eA.text.length-(eA.to.line-eA.from.line)-1,eC=eD.ch;if(eD.line==eA.to.line){eC+=ew.ch-eA.to.ch}return K(eB,eC)};return{anchor:ez(ex.sel.anchor),head:ez(ex.sel.head)}}function cG(ex,ez,ey){var ew={canceled:false,from:ez.from,to:ez.to,text:ez.text,origin:ez.origin,cancel:function(){this.canceled=true}};if(ey){ew.update=function(eD,eC,eB,eA){if(eD){this.from=d9(ex,eD)}if(eC){this.to=d9(ex,eC)}if(eB){this.text=eB}if(eA!==undefined){this.origin=eA}}}ah(ex,"beforeChange",ex,ew);if(ex.cm){ah(ex.cm,"beforeChange",ex.cm,ew)}if(ew.canceled){return null}return{from:ew.from,to:ew.to,text:ew.text,origin:ew.origin}}function aL(ez,eB,eA,ey){if(ez.cm){if(!ez.cm.curOp){return b9(ez.cm,aL)(ez,eB,eA,ey)}if(ez.cm.state.suppressEdits){return}}if(dP(ez,"beforeChange")||ez.cm&&dP(ez.cm,"beforeChange")){eB=cG(ez,eB,true);if(!eB){return}}var ex=eq&&!ey&&bW(ez,eB.from,eB.to);if(ex){for(var ew=ex.length-1;ew>=1;--ew){ap(ez,{from:ex[ew].from,to:ex[ew].to,text:[""]})}if(ex.length){ap(ez,{from:ex[0].from,to:ex[0].to,text:eB.text},eA)}}else{ap(ez,eB,eA)}}function ap(ey,eA,ez){if(eA.text.length==1&&eA.text[0]==""&&d8(eA.from,eA.to)){return}var ex=dO(ey,eA,ez);di(ey,eA,ex,ey.cm?ey.cm.curOp.id:NaN);cS(ey,eA,ex,cY(ey,eA));var ew=[];cN(ey,function(eC,eB){if(!eB&&cl(ew,eC.history)==-1){cz(eC.history,eA);ew.push(eC.history)}cS(eC,eA,null,cY(eC,eA))})}function bs(eF,eC){if(eF.cm&&eF.cm.state.suppressEdits){return}var eB=eF.history;var ex=(eC=="undo"?eB.done:eB.undone).pop();if(!ex){return}var eD={changes:[],anchorBefore:ex.anchorAfter,headBefore:ex.headAfter,anchorAfter:ex.anchorBefore,headAfter:ex.headBefore,generation:eB.generation};(eC=="undo"?eB.undone:eB.done).push(eD);eB.generation=ex.generation||++eB.maxGeneration;var ey=dP(eF,"beforeChange")||eF.cm&&dP(eF.cm,"beforeChange");for(var ez=ex.changes.length-1;ez>=0;--ez){var eE=ex.changes[ez];eE.origin=eC;if(ey&&!cG(eF,eE,false)){(eC=="undo"?eB.done:eB.undone).length=0;return}eD.changes.push(cs(eF,eE));var ew=ez?dO(eF,eE,null):{anchor:ex.anchorBefore,head:ex.headBefore};cS(eF,eE,ew,cP(eF,eE));var eA=[];cN(eF,function(eH,eG){if(!eG&&cl(eA,eH.history)==-1){cz(eH.history,eE);eA.push(eH.history)}cS(eH,eE,null,cP(eH,eE))})}}function dR(ew,ey){function ex(ez){return K(ez.line+ey,ez.ch)}ew.first+=ey;if(ew.cm){Q(ew.cm,ew.first,ew.first,ey)}ew.sel.head=ex(ew.sel.head);ew.sel.anchor=ex(ew.sel.anchor);ew.sel.from=ex(ew.sel.from);ew.sel.to=ex(ew.sel.to)}function cS(eA,eB,ez,ex){if(eA.cm&&!eA.cm.curOp){return b9(eA.cm,cS)(eA,eB,ez,ex)}if(eB.to.line<eA.first){dR(eA,eB.text.length-1-(eB.to.line-eB.from.line));return}if(eB.from.line>eA.lastLine()){return}if(eB.from.line<eA.first){var ew=eB.text.length-1-(eA.first-eB.from.line);dR(eA,ew);eB={from:K(eA.first,0),to:K(eB.to.line+ew,eB.to.ch),text:[d7(eB.text)],origin:eB.origin}}var ey=eA.lastLine();if(eB.to.line>ey){eB={from:eB.from,to:K(ey,dJ(eA,ey).text.length),text:[eB.text[0]],origin:eB.origin}}eB.removed=el(eA,eB.from,eB.to);if(!ez){ez=dO(eA,eB,null)}if(eA.cm){al(eA.cm,eB,ex,ez)}else{d2(eA,eB,ex,ez)}}function al(eG,eC,ez,ew){var eF=eG.doc,eB=eG.display,eD=eC.from,eE=eC.to;var ex=false,ey=eD.line;if(!eG.options.lineWrapping){ey=bc(u(eF,dJ(eF,eD.line)));eF.iter(ey,eE.line+1,function(eJ){if(eJ==eB.maxLine){ex=true;return true}})}if(!dK(eF.sel.head,eC.from)&&!dK(eC.to,eF.sel.head)){eG.curOp.cursorActivity=true}d2(eF,eC,ez,ew,aJ(eG));if(!eG.options.lineWrapping){eF.iter(ey,eD.line+eC.text.length,function(eK){var eJ=c0(eF,eK);if(eJ>eB.maxLineLength){eB.maxLine=eK;eB.maxLineLength=eJ;eB.maxLineChanged=true;ex=false}});if(ex){eG.curOp.updateMaxLine=true}}eF.frontier=Math.min(eF.frontier,eD.line);cU(eG,400);var eI=eC.text.length-(eE.line-eD.line)-1;Q(eG,eD.line,eE.line+1,eI);if(dP(eG,"change")){var eA={from:eD,to:eE,text:eC.text,removed:eC.removed,origin:eC.origin};if(eG.curOp.textChanged){for(var eH=eG.curOp.textChanged;eH.next;eH=eH.next){}eH.next=eA}else{eG.curOp.textChanged=eA}}}function az(ez,ey,eB,eA,ew){if(!eA){eA=eB}if(dK(eA,eB)){var ex=eA;eA=eB;eB=ex}if(typeof ey=="string"){ey=ay(ey)}aL(ez,{from:eB,to:eA,text:ey,origin:ew},null)}function K(ew,ex){if(!(this instanceof K)){return new K(ew,ex)}this.line=ew;this.ch=ex}B.Pos=K;function d8(ex,ew){return ex.line==ew.line&&ex.ch==ew.ch}function dK(ex,ew){return ex.line<ew.line||(ex.line==ew.line&&ex.ch<ew.ch)}function bz(ex,ew){return ex.line-ew.line||ex.ch-ew.ch}function bC(ew){return K(ew.line,ew.ch)}function cb(ew,ex){return Math.max(ew.first,Math.min(ex,ew.first+ew.size-1))}function d9(ex,ey){if(ey.line<ex.first){return K(ex.first,0)}var ew=ex.first+ex.size-1;if(ey.line>ew){return K(ew,dJ(ex,ew).text.length)}return dX(ey,dJ(ex,ey.line).text.length)}function dX(ey,ex){var ew=ey.ch;if(ew==null||ew>ex){return K(ey.line,ex)}else{if(ew<0){return K(ey.line,0)}else{return ey}}}function bt(ex,ew){return ew>=ex.first&&ew<ex.first+ex.size}function eg(eA,eB,ew,ex){if(eA.sel.shift||eA.sel.extend){var ez=eA.sel.anchor;if(ew){var ey=dK(eB,ez);if(ey!=dK(ew,ez)){ez=eB;eB=ew}else{if(ey!=dK(eB,ew)){eB=ew}}}bh(eA,ez,eB,ex)}else{bh(eA,eB,ew||eB,ex)}if(eA.cm){eA.cm.curOp.userSelChange=true}}function c(ez,ew,ex){var ey={anchor:ew,head:ex};ah(ez,"beforeSelectionChange",ez,ey);if(ez.cm){ah(ez.cm,"beforeSelectionChange",ez.cm,ey)}ey.anchor=d9(ez,ey.anchor);ey.head=d9(ez,ey.head);return ey}function bh(eD,eA,eB,ey,ex){if(!ex&&dP(eD,"beforeSelectionChange")||eD.cm&&dP(eD.cm,"beforeSelectionChange")){var ez=c(eD,eA,eB);eB=ez.head;eA=ez.anchor}var eC=eD.sel;eC.goalColumn=null;if(ey==null){ey=dK(eB,eC.head)?-1:1}if(ex||!d8(eA,eC.anchor)){eA=bi(eD,eA,ey,ex!="push")}if(ex||!d8(eB,eC.head)){eB=bi(eD,eB,ey,ex!="push")}if(d8(eC.anchor,eA)&&d8(eC.head,eB)){return}eC.anchor=eA;eC.head=eB;var ew=dK(eB,eA);eC.from=ew?eB:eA;eC.to=ew?eA:eB;if(eD.cm){eD.cm.curOp.updateInput=eD.cm.curOp.selectionChanged=eD.cm.curOp.cursorActivity=true}O(eD,"cursorActivity",eD)}function c7(ew){bh(ew.doc,ew.doc.sel.from,ew.doc.sel.to,null,"push")}function bi(eF,eE,eB,eC){var eG=false,ey=eE;var ez=eB||1;eF.cantEdit=false;search:for(;;){var eH=dJ(eF,ey.line);if(eH.markedSpans){for(var eA=0;eA<eH.markedSpans.length;++eA){var ew=eH.markedSpans[eA],ex=ew.marker;if((ew.from==null||(ex.inclusiveLeft?ew.from<=ey.ch:ew.from<ey.ch))&&(ew.to==null||(ex.inclusiveRight?ew.to>=ey.ch:ew.to>ey.ch))){if(eC){ah(ex,"beforeCursorEnter");if(ex.explicitlyCleared){if(!eH.markedSpans){break}else{--eA;continue}}}if(!ex.atomic){continue}var eD=ex.find()[ez<0?"from":"to"];if(d8(eD,ey)){eD.ch+=ez;if(eD.ch<0){if(eD.line>eF.first){eD=d9(eF,K(eD.line-1))}else{eD=null}}else{if(eD.ch>eH.text.length){if(eD.line<eF.first+eF.size-1){eD=K(eD.line+1,0)}else{eD=null}}}if(!eD){if(eG){if(!eC){return bi(eF,eE,eB,true)}eF.cantEdit=true;return K(eF.first,0)}eG=true;eD=eE;ez=-ez}}ey=eD;continue search}}}return ey}}function ae(ex){var eA=x(ex,ex.doc.sel.head,null,ex.options.cursorScrollMargin);if(!ex.state.focused){return}var eB=ex.display,ey=an(eB.sizer),ew=null;if(eA.top+ey.top<0){ew=true}else{if(eA.bottom+ey.top>(window.innerHeight||document.documentElement.clientHeight)){ew=false}}if(ew!=null&&!dY){var ez=ej("div","\u200b",null,"position: absolute; top: "+(eA.top-eB.viewOffset)+"px; height: "+(eA.bottom-eA.top+aO)+"px; left: "+eA.left+"px; width: 2px;");ex.display.lineSpace.appendChild(ez);ez.scrollIntoView(ew);ex.display.lineSpace.removeChild(ez)}}function x(eF,eD,eA,ez){if(ez==null){ez=0}for(;;){var eB=false,eE=cH(eF,eD);var ew=!eA||eA==eD?eE:cH(eF,eA);var ey=A(eF,Math.min(eE.left,ew.left),Math.min(eE.top,ew.top)-ez,Math.max(eE.left,ew.left),Math.max(eE.bottom,ew.bottom)+ez);var eC=eF.doc.scrollTop,ex=eF.doc.scrollLeft;if(ey.scrollTop!=null){F(eF,ey.scrollTop);if(Math.abs(eF.doc.scrollTop-eC)>1){eB=true}}if(ey.scrollLeft!=null){a3(eF,ey.scrollLeft);if(Math.abs(eF.doc.scrollLeft-ex)>1){eB=true}}if(!eB){return eE}}}function z(ew,ey,eA,ex,ez){var eB=A(ew,ey,eA,ex,ez);if(eB.scrollTop!=null){F(ew,eB.scrollTop)}if(eB.scrollLeft!=null){a3(ew,eB.scrollLeft)}}function A(eC,eK,ez,eJ,ey){var eH=eC.display,eG=aw(eC.display);if(ez<0){ez=0}var ex=eH.scroller.clientHeight-aO,eF=eH.scroller.scrollTop,eE={};var eM=eC.doc.height+a7(eH);var eN=ez<eG,eI=ey>eM-eG;if(ez<eF){eE.scrollTop=eN?0:ez}else{if(ey>eF+ex){var eD=Math.min(ez,(eI?eM:ey)-ex);if(eD!=eF){eE.scrollTop=eD}}}var eB=eH.scroller.clientWidth-aO,ew=eH.scroller.scrollLeft;eK+=eH.gutters.offsetWidth;eJ+=eH.gutters.offsetWidth;var eA=eH.gutters.offsetWidth;var eL=eK<eA+10;if(eK<ew+eA||eL){if(eL){eK=0}eE.scrollLeft=Math.max(0,eK-10-eA)}else{if(eJ>eB+ew-3){eE.scrollLeft=eJ+10-eB}}return eE}function y(ew,ey,ex){ew.curOp.updateScrollPos={scrollLeft:ey==null?ew.doc.scrollLeft:ey,scrollTop:ex==null?ew.doc.scrollTop:ex}}function b0(ex,ez,ey){var eA=ex.curOp.updateScrollPos||(ex.curOp.updateScrollPos={scrollLeft:ex.doc.scrollLeft,scrollTop:ex.doc.scrollTop});var ew=ex.display.scroller;eA.scrollTop=Math.max(0,Math.min(ew.scrollHeight-ew.clientHeight,eA.scrollTop+ey));eA.scrollLeft=Math.max(0,Math.min(ew.scrollWidth-ew.clientWidth,eA.scrollLeft+ez))}function N(eI,ez,eH,ey){var eG=eI.doc;if(eH==null){eH="add"}if(eH=="smart"){if(!eI.doc.mode.indent){eH="prev"}else{var ex=cw(eI,ez)}}var eC=eI.options.tabSize;var eJ=dJ(eG,ez),eB=bg(eJ.text,null,eC);var ew=eJ.text.match(/^\s*/)[0],eE;if(!ey&&!/\S/.test(eJ.text)){eE=0;eH="not"}else{if(eH=="smart"){eE=eI.doc.mode.indent(ex,eJ.text.slice(ew.length),eJ.text);if(eE==bv){if(!ey){return}eH="prev"}}}if(eH=="prev"){if(ez>eG.first){eE=bg(dJ(eG,ez-1).text,null,eC)}else{eE=0}}else{if(eH=="add"){eE=eB+eI.options.indentUnit}else{if(eH=="subtract"){eE=eB-eI.options.indentUnit}else{if(typeof eH=="number"){eE=eB+eH}}}}eE=Math.max(0,eE);var eF="",eD=0;if(eI.options.indentWithTabs){for(var eA=Math.floor(eE/eC);eA;--eA){eD+=eC;eF+="\t"}}if(eD<eE){eF+=bJ(eE-eD)}if(eF!=ew){az(eI.doc,eF,K(ez,0),K(ez,ew.length),"+input")}else{if(eG.sel.head.line==ez&&eG.sel.head.ch<ew.length){bh(eG,K(ez,ew.length),K(ez,ew.length),1)}}eJ.stateAfter=null}function c9(ew,ey,eB){var eA=ey,ex=ey,ez=ew.doc;if(typeof ey=="number"){ex=dJ(ez,cb(ez,ey))}else{eA=bc(ey)}if(eA==null){return null}if(eB(ex,eA)){Q(ew,eA,eA+1)}else{return null}return ex}function aZ(eN,ez,eH,eG,eB){var eE=ez.line,eF=ez.ch,eM=eH;var ew=dJ(eN,eE);var eK=true;function eL(){var eO=eE+eH;if(eO<eN.first||eO>=eN.first+eN.size){return(eK=false)}eE=eO;return ew=dJ(eN,eO)}function eJ(eP){var eO=(eB?q:R)(ew,eF,eH,true);if(eO==null){if(!eP&&eL()){if(eB){eF=(eH<0?b4:bU)(ew)}else{eF=eH<0?ew.text.length:0}}else{return(eK=false)}}else{eF=eO}return true}if(eG=="char"){eJ()}else{if(eG=="column"){eJ(true)}else{if(eG=="word"||eG=="group"){var eI=null,eC=eG=="group";for(var eA=true;;eA=false){if(eH<0&&!eJ(!eA)){break}var ex=ew.text.charAt(eF)||"\n";var ey=bR(ex)?"w":!eC?null:/\s/.test(ex)?null:"p";if(eI&&eI!=ey){if(eH<0){eH=1;eJ()}break}if(ey){eI=ey}if(eH>0&&!eJ(!eA)){break}}}}}var eD=bi(eN,K(eE,eF),eM,true);if(!eK){eD.hitSide=true}return eD}function aV(eE,ez,ew,eD){var eC=eE.doc,eB=ez.left,eA;if(eD=="page"){var ey=Math.min(eE.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);eA=ez.top+ew*(ey-(ew<0?1.5:0.5)*aw(eE.display))}else{if(eD=="line"){eA=ew>0?ez.bottom+3:ez.top-3}}for(;;){var ex=ed(eE,eB,eA);if(!ex.outside){break}if(ew<0?eA<=0:eA>=eC.height){ex.hitSide=true;break}eA+=ew*5}return ex}function ab(ez,eB){var eA=eB.ch,ey=eB.ch;if(ez){if((eB.xRel<0||ey==ez.length)&&eA){--eA}else{++ey}var ex=ez.charAt(eA);var ew=bR(ex)?bR:/\s/.test(ex)?function(eC){return/\s/.test(eC)}:function(eC){return !/\s/.test(eC)&&!bR(eC)};while(eA>0&&ew(ez.charAt(eA-1))){--eA}while(ey<ez.length&&ew(ez.charAt(ey))){++ey}}return{from:K(eB.line,eA),to:K(eB.line,ey)}}function aQ(ew,ex){eg(ew.doc,K(ex,0),d9(ew.doc,K(ex+1,0)))}B.prototype={constructor:B,focus:function(){window.focus();db(this);w(this)},setOption:function(ey,ez){var ex=this.options,ew=ex[ey];if(ex[ey]==ez&&ey!="mode"){return}ex[ey]=ez;if(aK.hasOwnProperty(ey)){b9(this,aK[ey])(this,ez,ew)}},getOption:function(ew){return this.options[ew]},getDoc:function(){return this.doc},addKeyMap:function(ex,ew){this.state.keyMaps[ew?"push":"unshift"](ex)},removeKeyMap:function(ex){var ey=this.state.keyMaps;for(var ew=0;ew<ey.length;++ew){if(ey[ew]==ex||(typeof ey[ew]!="string"&&ey[ew].name==ex)){ey.splice(ew,1);return true}}},addOverlay:b9(null,function(ew,ex){var ey=ew.token?ew:B.getMode(this.options,ew);if(ey.startState){throw new Error("Overlays may not be stateful.")}this.state.overlays.push({mode:ey,modeSpec:ew,opaque:ex&&ex.opaque});this.state.modeGen++;Q(this)}),removeOverlay:b9(null,function(ew){var ey=this.state.overlays;for(var ex=0;ex<ey.length;++ex){var ez=ey[ex].modeSpec;if(ez==ew||typeof ew=="string"&&ez.name==ew){ey.splice(ex,1);this.state.modeGen++;Q(this);return}}}),indentLine:b9(null,function(ey,ew,ex){if(typeof ew!="string"&&typeof ew!="number"){if(ew==null){ew=this.options.smartIndent?"smart":"prev"}else{ew=ew?"add":"subtract"}}if(bt(this.doc,ey)){N(this,ey,ew,ex)}}),indentSelection:b9(null,function(ex){var ey=this.doc.sel;if(d8(ey.from,ey.to)){return N(this,ey.from.line,ex,true)}var ez=ey.to.line-(ey.to.ch?0:1);for(var ew=ey.from.line;ew<=ez;++ew){N(this,ew,ex)}}),getTokenAt:function(eD,ex){var eA=this.doc;eD=d9(eA,eD);var ez=cw(this,eD.line,ex),eC=this.doc.mode;var ew=dJ(eA,eD.line);var eB=new ds(ew.text,this.options.tabSize);while(eB.pos<eD.ch&&!eB.eol()){eB.start=eB.pos;var ey=eC.token(eB,ez)}return{start:eB.start,end:eB.pos,string:eB.current(),className:ey||null,type:ey||null,state:ez}},getTokenTypeAt:function(eB){eB=d9(this.doc,eB);var ey=cd(this,dJ(this.doc,eB.line));var ez=0,eA=(ey.length-1)/2,ex=eB.ch;if(ex==0){return ey[2]}for(;;){var ew=(ez+eA)>>1;if((ew?ey[ew*2-1]:0)>=ex){eA=ew}else{if(ey[ew*2+1]<ex){ez=ew+1}else{return ey[ew*2+2]}}}},getModeAt:function(ex){var ew=this.doc.mode;if(!ew.innerMode){return ew}return B.innerMode(ew,this.getTokenAt(ex).state).mode},getHelper:function(ex,ew){return this.getHelpers(ex,ew)[0]},getHelpers:function(eD,ey){var ez=[];if(!dS.hasOwnProperty(ey)){return dS}var ew=dS[ey],eC=this.getModeAt(eD);if(typeof eC[ey]=="string"){if(ew[eC[ey]]){ez.push(ew[eC[ey]])}}else{if(eC[ey]){for(var ex=0;ex<eC[ey].length;ex++){var eB=ew[eC[ey][ex]];if(eB){ez.push(eB)}}}else{if(eC.helperType&&ew[eC.helperType]){ez.push(ew[eC.helperType])}else{if(ew[eC.name]){ez.push(ew[eC.name])}}}}for(var ex=0;ex<ew._global.length;ex++){var eA=ew._global[ex];if(eA.pred(eC,this)&&cl(ez,eA.val)==-1){ez.push(eA.val)}}return ez},getStateAfter:function(ex,ew){var ey=this.doc;ex=cb(ey,ex==null?ey.first+ey.size-1:ex);return cw(this,ex+1,ew)},cursorCoords:function(ez,ex){var ey,ew=this.doc.sel;if(ez==null){ey=ew.head}else{if(typeof ez=="object"){ey=d9(this.doc,ez)}else{ey=ez?ew.from:ew.to}}return cH(this,ey,ex||"page")},charCoords:function(ex,ew){return bZ(this,d9(this.doc,ex),ew||"page")},coordsChar:function(ew,ex){ew=es(this,ew,ex||"page");return ed(this,ew.left,ew.top)},lineAtHeight:function(ew,ex){ew=es(this,{top:ew,left:0},ex||"page").top;return a5(this.doc,ew+this.display.viewOffset)},heightAtLine:function(ex,eA){var ew=false,ez=this.doc.first+this.doc.size-1;if(ex<this.doc.first){ex=this.doc.first}else{if(ex>ez){ex=ez;ew=true}}var ey=dJ(this.doc,ex);return dp(this,dJ(this.doc,ex),{top:0,left:0},eA||"page").top+(ew?ey.height:0)},defaultTextHeight:function(){return aw(this.display)},defaultCharWidth:function(){return cy(this.display)},setGutterMarker:b9(null,function(ew,ex,ey){return c9(this,ew,function(ez){var eA=ez.gutterMarkers||(ez.gutterMarkers={});eA[ex]=ey;if(!ey&&dt(eA)){ez.gutterMarkers=null}return true})}),clearGutter:b9(null,function(ey){var ew=this,ez=ew.doc,ex=ez.first;ez.iter(function(eA){if(eA.gutterMarkers&&eA.gutterMarkers[ey]){eA.gutterMarkers[ey]=null;Q(ew,ex,ex+1);if(dt(eA.gutterMarkers)){eA.gutterMarkers=null}}++ex})}),addLineClass:b9(null,function(ey,ex,ew){return c9(this,ey,function(ez){var eA=ex=="text"?"textClass":ex=="background"?"bgClass":"wrapClass";if(!ez[eA]){ez[eA]=ew}else{if(new RegExp("(?:^|\\s)"+ew+"(?:$|\\s)").test(ez[eA])){return false}else{ez[eA]+=" "+ew}}return true})}),removeLineClass:b9(null,function(ey,ex,ew){return c9(this,ey,function(eA){var eD=ex=="text"?"textClass":ex=="background"?"bgClass":"wrapClass";var eC=eA[eD];if(!eC){return false}else{if(ew==null){eA[eD]=null}else{var eB=eC.match(new RegExp("(?:^|\\s+)"+ew+"(?:$|\\s+)"));if(!eB){return false}var ez=eB.index+eB[0].length;eA[eD]=eC.slice(0,eB.index)+(!eB.index||ez==eC.length?"":" ")+eC.slice(ez)||null}}return true})}),addLineWidget:b9(null,function(ey,ex,ew){return a6(this,ey,ex,ew)}),removeLineWidget:function(ew){ew.clear()},lineInfo:function(ew){if(typeof ew=="number"){if(!bt(this.doc,ew)){return null}var ex=ew;ew=dJ(this.doc,ew);if(!ew){return null}}else{var ex=bc(ew);if(ex==null){return null}}return{line:ex,handle:ew,text:ew.text,gutterMarkers:ew.gutterMarkers,textClass:ew.textClass,bgClass:ew.bgClass,wrapClass:ew.wrapClass,widgets:ew.widgets}},getViewport:function(){return{from:this.display.showingFrom,to:this.display.showingTo}},addWidget:function(eB,ey,eD,ez,eF){var eA=this.display;eB=cH(this,d9(this.doc,eB));var eC=eB.bottom,ex=eB.left;ey.style.position="absolute";eA.sizer.appendChild(ey);if(ez=="over"){eC=eB.top}else{if(ez=="above"||ez=="near"){var ew=Math.max(eA.wrapper.clientHeight,this.doc.height),eE=Math.max(eA.sizer.clientWidth,eA.lineSpace.clientWidth);if((ez=="above"||eB.bottom+ey.offsetHeight>ew)&&eB.top>ey.offsetHeight){eC=eB.top-ey.offsetHeight}else{if(eB.bottom+ey.offsetHeight<=ew){eC=eB.bottom}}if(ex+ey.offsetWidth>eE){ex=eE-ey.offsetWidth}}}ey.style.top=eC+"px";ey.style.left=ey.style.right="";if(eF=="right"){ex=eA.sizer.clientWidth-ey.offsetWidth;ey.style.right="0px"}else{if(eF=="left"){ex=0}else{if(eF=="middle"){ex=(eA.sizer.clientWidth-ey.offsetWidth)/2}}ey.style.left=ex+"px"}if(eD){z(this,ex,eC,ex+ey.offsetWidth,eC+ey.offsetHeight)}},triggerOnKeyDown:b9(null,m),execCommand:function(ew){if(dd.hasOwnProperty(ew)){return dd[ew](this)}},findPosH:function(eC,ez,eA,ex){var ew=1;if(ez<0){ew=-1;ez=-ez}for(var ey=0,eB=d9(this.doc,eC);ey<ez;++ey){eB=aZ(this.doc,eB,ew,eA,ex);if(eB.hitSide){break}}return eB},moveH:b9(null,function(ew,ex){var ey=this.doc.sel,ez;if(ey.shift||ey.extend||d8(ey.from,ey.to)){ez=aZ(this.doc,ey.head,ew,ex,this.options.rtlMoveVisually)}else{ez=ew<0?ey.from:ey.to}eg(this.doc,ez,ez,ew)}),deleteH:b9(null,function(ew,ex){var ey=this.doc.sel;if(!d8(ey.from,ey.to)){az(this.doc,"",ey.from,ey.to,"+delete")}else{az(this.doc,"",ey.from,aZ(this.doc,ey.head,ew,ex,false),"+delete")}this.curOp.userSelChange=true}),findPosV:function(eB,ey,eC,eE){var ew=1,eA=eE;if(ey<0){ew=-1;ey=-ey}for(var ex=0,eD=d9(this.doc,eB);ex<ey;++ex){var ez=cH(this,eD,"div");if(eA==null){eA=ez.left}else{ez.left=eA}eD=aV(this,ez,ew,eC);if(eD.hitSide){break}}return eD},moveV:b9(null,function(ex,ey){var ez=this.doc.sel,eA,ew;if(ez.shift||ez.extend||d8(ez.from,ez.to)){var eB=cH(this,ez.head,"div");if(ez.goalColumn!=null){eB.left=ez.goalColumn}eA=aV(this,eB,ex,ey);if(ey=="page"){b0(this,0,bZ(this,eA,"div").top-eB.top)}ew=eB.left}else{eA=ex<0?ez.from:ez.to}eg(this.doc,eA,eA,ex);if(ew!=null){ez.goalColumn=ew}}),toggleOverwrite:function(ew){if(ew!=null&&ew==this.state.overwrite){return}if(this.state.overwrite=!this.state.overwrite){this.display.cursor.className+=" CodeMirror-overwrite"}else{this.display.cursor.className=this.display.cursor.className.replace(" CodeMirror-overwrite","")}},hasFocus:function(){return this.state.focused},scrollTo:b9(null,function(ew,ex){y(this,ew,ex)}),getScrollInfo:function(){var ew=this.display.scroller,ex=aO;return{left:ew.scrollLeft,top:ew.scrollTop,height:ew.scrollHeight-ex,width:ew.scrollWidth-ex,clientHeight:ew.clientHeight-ex,clientWidth:ew.clientWidth-ex}},scrollIntoView:b9(null,function(ex,ez){if(ex==null){ex={from:this.doc.sel.head,to:null}}else{if(typeof ex=="number"){ex={from:K(ex,0),to:null}}else{if(ex.from==null){ex={from:ex,to:null}}}}if(!ex.to){ex.to=ex.from}if(!ez){ez=0}var ey=ex;if(ex.from.line!=null){this.curOp.scrollToPos={from:ex.from,to:ex.to,margin:ez};ey={from:cH(this,ex.from),to:cH(this,ex.to)}}var ew=A(this,Math.min(ey.from.left,ey.to.left),Math.min(ey.from.top,ey.to.top)-ez,Math.max(ey.from.right,ey.to.right),Math.max(ey.from.bottom,ey.to.bottom)+ez);y(this,ew.scrollLeft,ew.scrollTop)}),setSize:b9(null,function(ey,ew){function ex(ez){return typeof ez=="number"||/^\d+$/.test(String(ez))?ez+"px":ez}if(ey!=null){this.display.wrapper.style.width=ex(ey)}if(ew!=null){this.display.wrapper.style.height=ex(ew)}if(this.options.lineWrapping){this.display.measureLineCache.length=this.display.measureLineCachePos=0}this.curOp.forceUpdate=true}),operation:function(ew){return b1(this,ew)},refresh:b9(null,function(){var ew=this.display.cachedTextHeight==null;T(this);y(this,this.doc.scrollLeft,this.doc.scrollTop);Q(this);if(ew){L(this)}}),swapDoc:b9(null,function(ex){var ew=this.doc;ew.cm=null;cQ(this,ex);T(this);dU(this,true);y(this,ex.scrollLeft,ex.scrollTop);O(this,"swapDoc",this,ew);return ew}),getInputField:function(){return this.display.input},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}};a0(B);var aK=B.optionHandlers={};var dA=B.defaults={};function o(ew,ez,ey,ex){B.defaults[ew]=ez;if(ey){aK[ew]=ex?function(eA,eC,eB){if(eB!=bw){ey(eA,eC,eB)}}:ey}}var bw=B.Init={toString:function(){return"CodeMirror.Init"}};o("value","",function(ew,ex){ew.setValue(ex)},true);o("mode",null,function(ew,ex){ew.doc.modeOption=ex;aW(ew)},true);o("indentUnit",2,aW,true);o("indentWithTabs",false);o("smartIndent",true);o("tabSize",4,function(ew){cZ(ew);T(ew);Q(ew)},true);o("specialChars",/[\t\u0000-\u0019\u00ad\u200b\u2028\u2029\ufeff]/g,function(ew,ex){ew.options.specialChars=new RegExp(ex.source+(ex.test("\t")?"":"|\t"),"g");ew.refresh()},true);o("specialCharPlaceholder",dH,function(ew){ew.refresh()},true);o("electricChars",true);o("rtlMoveVisually",!ao);o("wholeLineUpdateBefore",true);o("theme","default",function(ew){b2(ew);ct(ew)},true);o("keyMap","default",et);o("extraKeys",null);o("onKeyEvent",null);o("onDragEvent",null);o("lineWrapping",false,dj,true);o("gutters",[],function(ew){by(ew.options);ct(ew)},true);o("fixedGutter",true,function(ew,ex){ew.display.gutters.style.left=ex?cJ(ew.display)+"px":"0";ew.refresh()},true);o("coverGutterNextToScrollbar",false,dw,true);o("lineNumbers",false,function(ew){by(ew.options);ct(ew)},true);o("firstLineNumber",1,ct,true);o("lineNumberFormatter",function(ew){return ew},ct,true);o("showCursorWhenSelecting",false,a2,true);o("resetSelectionOnContextMenu",true);o("readOnly",false,function(ew,ex){if(ex=="nocursor"){au(ew);ew.display.input.blur();ew.display.disabled=true}else{ew.display.disabled=false;if(!ex){dU(ew,true)}}});o("disableInput",false,function(ew,ex){if(!ex){dU(ew,true)}},true);o("dragDrop",true);o("cursorBlinkRate",530);o("cursorScrollMargin",0);o("cursorHeight",1);o("workTime",100);o("workDelay",100);o("flattenSpans",true,cZ,true);o("addModeClass",false,cZ,true);o("pollInterval",100);o("undoDepth",40,function(ew,ex){ew.doc.history.undoDepth=ex});o("historyEventDelay",500);o("viewportMargin",10,function(ew){ew.refresh()},true);o("maxHighlightLength",10000,cZ,true);o("crudeMeasuringFrom",10000);o("moveInputWithCursor",true,function(ew,ex){if(!ex){ew.display.inputDiv.style.top=ew.display.inputDiv.style.left=0}});o("tabindex",null,function(ew,ex){ew.display.input.tabIndex=ex||""});o("autofocus",null);var cq=B.modes={},at=B.mimeModes={};B.defineMode=function(ew,ey){if(!B.defaults.mode&&ew!="null"){B.defaults.mode=ew}if(arguments.length>2){ey.dependencies=[];for(var ex=2;ex<arguments.length;++ex){ey.dependencies.push(arguments[ex])}}cq[ew]=ey};B.defineMIME=function(ex,ew){at[ex]=ew};B.resolveMode=function(ew){if(typeof ew=="string"&&at.hasOwnProperty(ew)){ew=at[ew]}else{if(ew&&typeof ew.name=="string"&&at.hasOwnProperty(ew.name)){var ex=at[ew.name];ew=bD(ex,ew);ew.name=ex.name}else{if(typeof ew=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ew)){return B.resolveMode("application/xml")}}}if(typeof ew=="string"){return{name:ew}}else{return ew||{name:"null"}}};B.getMode=function(ex,ew){var ew=B.resolveMode(ew);var ez=cq[ew.name];if(!ez){return B.getMode(ex,"text/plain")}var eA=ez(ex,ew);if(co.hasOwnProperty(ew.name)){var ey=co[ew.name];for(var eB in ey){if(!ey.hasOwnProperty(eB)){continue}if(eA.hasOwnProperty(eB)){eA["_"+eB]=eA[eB]}eA[eB]=ey[eB]}}eA.name=ew.name;if(ew.helperType){eA.helperType=ew.helperType}if(ew.modeProps){for(var eB in ew.modeProps){eA[eB]=ew.modeProps[eB]}}return eA};B.defineMode("null",function(){return{token:function(ew){ew.skipToEnd()}}});B.defineMIME("text/plain","null");var co=B.modeExtensions={};B.extendMode=function(ey,ex){var ew=co.hasOwnProperty(ey)?co[ey]:(co[ey]={});am(ex,ew)};B.defineExtension=function(ew,ex){B.prototype[ew]=ex};B.defineDocExtension=function(ew,ex){aa.prototype[ew]=ex};B.defineOption=o;var aE=[];B.defineInitHook=function(ew){aE.push(ew)};var dS=B.helpers={};B.registerHelper=function(ex,ew,ey){if(!dS.hasOwnProperty(ex)){dS[ex]=B[ex]={_global:[]}}dS[ex][ew]=ey};B.registerGlobalHelper=function(ey,ex,ew,ez){B.registerHelper(ey,ex,ez);dS[ey]._global.push({pred:ew,val:ez})};B.isWordChar=bR;function bo(ez,ew){if(ew===true){return ew}if(ez.copyState){return ez.copyState(ew)}var ey={};for(var eA in ew){var ex=ew[eA];if(ex instanceof Array){ex=ex.concat([])}ey[eA]=ex}return ey}B.copyState=bo;function bm(ey,ex,ew){return ey.startState?ey.startState(ex,ew):true}B.startState=bm;B.innerMode=function(ey,ew){while(ey.innerMode){var ex=ey.innerMode(ew);if(!ex||ex.mode==ey){break}ew=ex.state;ey=ex.mode}return ex||{mode:ey,state:ew}};var dd=B.commands={selectAll:function(ew){ew.setSelection(K(ew.firstLine(),0),K(ew.lastLine()))},killLine:function(ew){var ez=ew.getCursor(true),ey=ew.getCursor(false),ex=!d8(ez,ey);if(!ex&&ew.getLine(ez.line).length==ez.ch){ew.replaceRange("",ez,K(ez.line+1,0),"+delete")}else{ew.replaceRange("",ez,ex?ey:K(ez.line),"+delete")}},deleteLine:function(ew){var ex=ew.getCursor().line;ew.replaceRange("",K(ex,0),K(ex),"+delete")},delLineLeft:function(ew){var ex=ew.getCursor();ew.replaceRange("",K(ex.line,0),ex,"+delete")},undo:function(ew){ew.undo()},redo:function(ew){ew.redo()},goDocStart:function(ew){ew.extendSelection(K(ew.firstLine(),0))},goDocEnd:function(ew){ew.extendSelection(K(ew.lastLine()))},goLineStart:function(ew){ew.extendSelection(aY(ew,ew.getCursor().line))},goLineStartSmart:function(ex){var eB=ex.getCursor(),eC=aY(ex,eB.line);var ey=ex.getLineHandle(eC.line);var ew=a(ey);if(!ew||ew[0].level==0){var eA=Math.max(0,ey.text.search(/\S/));var ez=eB.line==eC.line&&eB.ch<=eA&&eB.ch;ex.extendSelection(K(eC.line,ez?0:eA))}else{ex.extendSelection(eC)}},goLineEnd:function(ew){ew.extendSelection(cE(ew,ew.getCursor().line))},goLineRight:function(ew){var ex=ew.charCoords(ew.getCursor(),"div").top+5;ew.extendSelection(ew.coordsChar({left:ew.display.lineDiv.offsetWidth+100,top:ex},"div"))},goLineLeft:function(ew){var ex=ew.charCoords(ew.getCursor(),"div").top+5;ew.extendSelection(ew.coordsChar({left:0,top:ex},"div"))},goLineUp:function(ew){ew.moveV(-1,"line")},goLineDown:function(ew){ew.moveV(1,"line")},goPageUp:function(ew){ew.moveV(-1,"page")},goPageDown:function(ew){ew.moveV(1,"page")},goCharLeft:function(ew){ew.moveH(-1,"char")},goCharRight:function(ew){ew.moveH(1,"char")},goColumnLeft:function(ew){ew.moveH(-1,"column")},goColumnRight:function(ew){ew.moveH(1,"column")},goWordLeft:function(ew){ew.moveH(-1,"word")},goGroupRight:function(ew){ew.moveH(1,"group")},goGroupLeft:function(ew){ew.moveH(-1,"group")},goWordRight:function(ew){ew.moveH(1,"word")},delCharBefore:function(ew){ew.deleteH(-1,"char")},delCharAfter:function(ew){ew.deleteH(1,"char")},delWordBefore:function(ew){ew.deleteH(-1,"word")},delWordAfter:function(ew){ew.deleteH(1,"word")},delGroupBefore:function(ew){ew.deleteH(-1,"group")},delGroupAfter:function(ew){ew.deleteH(1,"group")},indentAuto:function(ew){ew.indentSelection("smart")},indentMore:function(ew){ew.indentSelection("add")},indentLess:function(ew){ew.indentSelection("subtract")},insertTab:function(ew){ew.replaceSelection("\t","end","+input")},defaultTab:function(ew){if(ew.somethingSelected()){ew.indentSelection("add")}else{ew.replaceSelection("\t","end","+input")}},transposeChars:function(ew){var ey=ew.getCursor(),ex=ew.getLine(ey.line);if(ey.ch>0&&ey.ch<ex.length-1){ew.replaceRange(ex.charAt(ey.ch)+ex.charAt(ey.ch-1),K(ey.line,ey.ch-1),K(ey.line,ey.ch+1))}},newlineAndIndent:function(ew){b9(ew,function(){ew.replaceSelection("\n","end","+input");ew.indentLine(ew.getCursor().line,null,true)})()},toggleOverwrite:function(ew){ew.toggleOverwrite()}};var dF=B.keyMap={};dF.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"};dF.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Alt-Up":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Down":"goDocEnd","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",fallthrough:"basic"};dF.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineStart","Cmd-Right":"goLineEnd","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":"delLineLeft",fallthrough:["basic","emacsy"]};dF["default"]=bq?dF.macDefault:dF.pcDefault;dF.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"};function eh(ew){if(typeof ew=="string"){return dF[ew]}else{return ew}}function g(ex,eB,ez){function eA(eH){eH=eh(eH);var eF=eH[ex];if(eF===false){return"stop"}if(eF!=null&&ez(eF)){return true}if(eH.nofallthrough){return"stop"}var eE=eH.fallthrough;if(eE==null){return false}if(Object.prototype.toString.call(eE)!="[object Array]"){return eA(eE)}for(var eD=0,eG=eE.length;eD<eG;++eD){var eC=eA(eE[eD]);if(eC){return eC}}return false}for(var ey=0;ey<eB.length;++ey){var ew=eA(eB[ey]);if(ew){return ew!="stop"}}}function dc(ex){var ew=dL[ex.keyCode];return ew=="Ctrl"||ew=="Alt"||ew=="Shift"||ew=="Mod"}function dW(ex,ey){if(d1&&ex.keyCode==34&&ex["char"]){return false}var ew=dL[ex.keyCode];if(ew==null||ex.altGraphKey){return false}if(ex.altKey){ew="Alt-"+ew}if(be?ex.metaKey:ex.ctrlKey){ew="Ctrl-"+ew}if(be?ex.ctrlKey:ex.metaKey){ew="Cmd-"+ew}if(!ey&&ex.shiftKey){ew="Shift-"+ew}return ew}B.lookupKey=g;B.isModifierKey=dc;B.keyName=dW;B.fromTextArea=function(eD,eE){if(!eE){eE={}}eE.value=eD.value;if(!eE.tabindex&&eD.tabindex){eE.tabindex=eD.tabindex}if(!eE.placeholder&&eD.placeholder){eE.placeholder=eD.placeholder}if(eE.autofocus==null){var ew=document.body;try{ew=document.activeElement}catch(ey){}eE.autofocus=ew==eD||eD.getAttribute("autofocus")!=null&&ew==document.body}function eA(){eD.value=eC.getValue()}if(eD.form){bk(eD.form,"submit",eA);if(!eE.leaveSubmitMethodAlone){var ex=eD.form,eB=ex.submit;try{var ez=ex.submit=function(){eA();ex.submit=eB;ex.submit();ex.submit=ez}}catch(ey){}}}eD.style.display="none";var eC=B(function(eF){eD.parentNode.insertBefore(eF,eD.nextSibling)},eE);eC.save=eA;eC.getTextArea=function(){return eD};eC.toTextArea=function(){eA();eD.parentNode.removeChild(eC.getWrapperElement());eD.style.display="";if(eD.form){cT(eD.form,"submit",eA);if(typeof eD.form.submit=="function"){eD.form.submit=eB}}};return eC};function ds(ew,ex){this.pos=this.start=0;this.string=ew;this.tabSize=ex||8;this.lastColumnPos=this.lastColumnValue=0;this.lineStart=0}ds.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||undefined},next:function(){if(this.pos<this.string.length){return this.string.charAt(this.pos++)}},eat:function(ew){var ey=this.string.charAt(this.pos);if(typeof ew=="string"){var ex=ey==ew}else{var ex=ey&&(ew.test?ew.test(ey):ew(ey))}if(ex){++this.pos;return ey}},eatWhile:function(ew){var ex=this.pos;while(this.eat(ew)){}return this.pos>ex},eatSpace:function(){var ew=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos))){++this.pos}return this.pos>ew},skipToEnd:function(){this.pos=this.string.length},skipTo:function(ew){var ex=this.string.indexOf(ew,this.pos);if(ex>-1){this.pos=ex;return true}},backUp:function(ew){this.pos-=ew},column:function(){if(this.lastColumnPos<this.start){this.lastColumnValue=bg(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue);this.lastColumnPos=this.start}return this.lastColumnValue-(this.lineStart?bg(this.string,this.lineStart,this.tabSize):0)},indentation:function(){return bg(this.string,null,this.tabSize)-(this.lineStart?bg(this.string,this.lineStart,this.tabSize):0)},match:function(eA,ex,ew){if(typeof eA=="string"){var eB=function(eC){return ew?eC.toLowerCase():eC};var ez=this.string.substr(this.pos,eA.length);if(eB(ez)==eB(eA)){if(ex!==false){this.pos+=eA.length}return true}}else{var ey=this.string.slice(this.pos).match(eA);if(ey&&ey.index>0){return null}if(ey&&ex!==false){this.pos+=ey[0].length}return ey}},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(ex,ew){this.lineStart+=ex;try{return ew()}finally{this.lineStart-=ex}}};B.StringStream=ds;function H(ex,ew){this.lines=[];this.type=ew;this.doc=ex}B.TextMarker=H;a0(H);H.prototype.clear=function(){if(this.explicitlyCleared){return}var eD=this.doc.cm,ex=eD&&!eD.curOp;if(ex){bY(eD)}if(dP(this,"clear")){var eE=this.find();if(eE){O(this,"clear",eE.from,eE.to)}}var ey=null,eB=null;for(var ez=0;ez<this.lines.length;++ez){var eF=this.lines[ez];var eC=dE(eF.markedSpans,this);if(eC.to!=null){eB=bc(eF)}eF.markedSpans=dk(eF.markedSpans,eC);if(eC.from!=null){ey=bc(eF)}else{if(this.collapsed&&!dZ(this.doc,eF)&&eD){eo(eF,aw(eD.display))}}}if(eD&&this.collapsed&&!eD.options.lineWrapping){for(var ez=0;ez<this.lines.length;++ez){var ew=u(eD.doc,this.lines[ez]),eA=c0(eD.doc,ew);if(eA>eD.display.maxLineLength){eD.display.maxLine=ew;eD.display.maxLineLength=eA;eD.display.maxLineChanged=true}}}if(ey!=null&&eD){Q(eD,ey,eB+1)}this.lines.length=0;this.explicitlyCleared=true;if(this.atomic&&this.doc.cantEdit){this.doc.cantEdit=false;if(eD){c7(eD)}}if(ex){W(eD)}};H.prototype.find=function(eA){var eC,eB;for(var ex=0;ex<this.lines.length;++ex){var ew=this.lines[ex];var ey=dE(ew.markedSpans,this);if(ey.from!=null||ey.to!=null){var ez=bc(ew);if(ey.from!=null){eC=K(ez,ey.from)}if(ey.to!=null){eB=K(ez,ey.to)}}}if(this.type=="bookmark"&&!eA){return eC}return eC&&{from:eC,to:eB}};H.prototype.changed=function(){var ez=this.find(),ew=this.doc.cm;if(!ez||!ew){return}if(this.type!="bookmark"){ez=ez.from}var ex=dJ(this.doc,ez.line);ec(ew,ex);if(ez.line>=ew.display.showingFrom&&ez.line<ew.display.showingTo){for(var ey=ew.display.lineDiv.firstChild;ey;ey=ey.nextSibling){if(ey.lineObj==ex){if(ey.offsetHeight!=ex.height){eo(ex,ey.offsetHeight)}break}}b1(ew,function(){ew.curOp.selectionChanged=ew.curOp.forceUpdate=ew.curOp.updateMaxLine=true})}};H.prototype.attachLine=function(ew){if(!this.lines.length&&this.doc.cm){var ex=this.doc.cm.curOp;if(!ex.maybeHiddenMarkers||cl(ex.maybeHiddenMarkers,this)==-1){(ex.maybeUnhiddenMarkers||(ex.maybeUnhiddenMarkers=[])).push(this)}}this.lines.push(ew)};H.prototype.detachLine=function(ew){this.lines.splice(cl(this.lines,ew),1);if(!this.lines.length&&this.doc.cm){var ex=this.doc.cm.curOp;(ex.maybeHiddenMarkers||(ex.maybeHiddenMarkers=[])).push(this)}};var aB=0;function dh(eC,eA,eB,eE,ez){if(eE&&eE.shared){return G(eC,eA,eB,eE,ez)}if(eC.cm&&!eC.cm.curOp){return b9(eC.cm,dh)(eC,eA,eB,eE,ez)}var ey=new H(eC,ez);if(eE){am(eE,ey)}if(dK(eB,eA)||d8(eA,eB)&&ey.clearWhenEmpty!==false){return ey}if(ey.replacedWith){ey.collapsed=true;ey.replacedWith=ej("span",[ey.replacedWith],"CodeMirror-widget");if(!eE.handleMouseEvents){ey.replacedWith.ignoreEvents=true}}if(ey.collapsed){if(v(eC,eA.line,eA,eB,ey)||eA.line!=eB.line&&v(eC,eB.line,eA,eB,ey)){throw new Error("Inserting collapsed marker partially overlapping an existing one")}aD=true}if(ey.addToHistory){di(eC,{from:eA,to:eB,origin:"markText"},{head:eC.sel.head,anchor:eC.sel.anchor},NaN)}var ex=eA.line,eD=eC.cm,ew;eC.iter(ex,eB.line+1,function(eF){if(eD&&ey.collapsed&&!eD.options.lineWrapping&&u(eC,eF)==eD.display.maxLine){ew=true}var eG={from:null,to:null,marker:ey};if(ex==eA.line){eG.from=eA.ch}if(ex==eB.line){eG.to=eB.ch}if(ey.collapsed&&ex!=eA.line){eo(eF,0)}bx(eF,eG);++ex});if(ey.collapsed){eC.iter(eA.line,eB.line+1,function(eF){if(dZ(eC,eF)){eo(eF,0)}})}if(ey.clearOnEnter){bk(ey,"beforeCursorEnter",function(){ey.clear()})}if(ey.readOnly){eq=true;if(eC.history.done.length||eC.history.undone.length){eC.clearHistory()}}if(ey.collapsed){ey.id=++aB;ey.atomic=true}if(eD){if(ew){eD.curOp.updateMaxLine=true}if(ey.className||ey.title||ey.startStyle||ey.endStyle||ey.collapsed){Q(eD,eA.line,eB.line+1)}if(ey.atomic){c7(eD)}}return ey}function t(ez,ex){this.markers=ez;this.primary=ex;for(var ew=0,ey=this;ew<ez.length;++ew){ez[ew].parent=this;bk(ez[ew],"clear",function(){ey.clear()})}}B.SharedTextMarker=t;a0(t);t.prototype.clear=function(){if(this.explicitlyCleared){return}this.explicitlyCleared=true;for(var ew=0;ew<this.markers.length;++ew){this.markers[ew].clear()}O(this,"clear")};t.prototype.find=function(){return this.primary.find()};function G(eA,eD,eC,ew,ey){ew=am(ew);ew.shared=false;var eB=[dh(eA,eD,eC,ew,ey)],ex=eB[0];var ez=ew.replacedWith;cN(eA,function(eF){if(ez){ew.replacedWith=ez.cloneNode(true)}eB.push(dh(eF,d9(eF,eD),d9(eF,eC),ew,ey));for(var eE=0;eE<eF.linked.length;++eE){if(eF.linked[eE].isParent){return}}ex=d7(eB)});return new t(eB,ex)}function dE(ey,ew){if(ey){for(var ex=0;ex<ey.length;++ex){var ez=ey[ex];if(ez.marker==ew){return ez}}}}function dk(ex,ey){for(var ez,ew=0;ew<ex.length;++ew){if(ex[ew]!=ey){(ez||(ez=[])).push(ex[ew])}}return ez}function bx(ew,ex){ew.markedSpans=ew.markedSpans?ew.markedSpans.concat([ex]):[ex];ex.marker.attachLine(ew)}function aq(ex,ey,eC){if(ex){for(var eA=0,eD;eA<ex.length;++eA){var eE=ex[eA],eB=eE.marker;var ew=eE.from==null||(eB.inclusiveLeft?eE.from<=ey:eE.from<ey);if(ew||eE.from==ey&&eB.type=="bookmark"&&(!eC||!eE.marker.insertLeft)){var ez=eE.to==null||(eB.inclusiveRight?eE.to>=ey:eE.to>ey);(eD||(eD=[])).push({from:eE.from,to:ez?null:eE.to,marker:eB})}}}return eD}function af(ex,ez,eC){if(ex){for(var eA=0,eD;eA<ex.length;++eA){var eE=ex[eA],eB=eE.marker;var ey=eE.to==null||(eB.inclusiveRight?eE.to>=ez:eE.to>ez);if(ey||eE.from==ez&&eB.type=="bookmark"&&(!eC||eE.marker.insertLeft)){var ew=eE.from==null||(eB.inclusiveLeft?eE.from<=ez:eE.from<ez);(eD||(eD=[])).push({from:ew?null:eE.from-ez,to:eE.to==null?null:eE.to-ez,marker:eB})}}}return eD}function cY(eI,eF){var eE=bt(eI,eF.from.line)&&dJ(eI,eF.from.line).markedSpans;var eL=bt(eI,eF.to.line)&&dJ(eI,eF.to.line).markedSpans;if(!eE&&!eL){return null}var ex=eF.from.ch,eA=eF.to.ch,eD=d8(eF.from,eF.to);var eC=aq(eE,ex,eD);var eK=af(eL,eA,eD);var eJ=eF.text.length==1,ey=d7(eF.text).length+(eJ?ex:0);if(eC){for(var ez=0;ez<eC.length;++ez){var eH=eC[ez];if(eH.to==null){var eM=dE(eK,eH.marker);if(!eM){eH.to=ex}else{if(eJ){eH.to=eM.to==null?null:eM.to+ey}}}}}if(eK){for(var ez=0;ez<eK.length;++ez){var eH=eK[ez];if(eH.to!=null){eH.to+=ey}if(eH.from==null){var eM=dE(eC,eH.marker);if(!eM){eH.from=ey;if(eJ){(eC||(eC=[])).push(eH)}}}else{eH.from+=ey;if(eJ){(eC||(eC=[])).push(eH)}}}}if(eC){eC=n(eC)}if(eK&&eK!=eC){eK=n(eK)}var eB=[eC];if(!eJ){var eG=eF.text.length-2,ew;if(eG>0&&eC){for(var ez=0;ez<eC.length;++ez){if(eC[ez].to==null){(ew||(ew=[])).push({from:null,to:null,marker:eC[ez].marker})}}}for(var ez=0;ez<eG;++ez){eB.push(ew)}eB.push(eK)}return eB}function n(ex){for(var ew=0;ew<ex.length;++ew){var ey=ex[ew];if(ey.from!=null&&ey.from==ey.to&&ey.marker.clearWhenEmpty!==false){ex.splice(ew--,1)}}if(!ex.length){return null}return ex}function cP(eE,eC){var ew=br(eE,eC);var eF=cY(eE,eC);if(!ew){return eF}if(!eF){return ew}for(var ez=0;ez<ew.length;++ez){var eA=ew[ez],eB=eF[ez];if(eA&&eB){spans:for(var ey=0;ey<eB.length;++ey){var eD=eB[ey];for(var ex=0;ex<eA.length;++ex){if(eA[ex].marker==eD.marker){continue spans}}eA.push(eD)}}else{if(eB){ew[ez]=eB}}}return ew}function bW(eG,eE,eF){var ez=null;eG.iter(eE.line,eF.line+1,function(eH){if(eH.markedSpans){for(var eI=0;eI<eH.markedSpans.length;++eI){var eJ=eH.markedSpans[eI].marker;if(eJ.readOnly&&(!ez||cl(ez,eJ)==-1)){(ez||(ez=[])).push(eJ)}}}});if(!ez){return null}var eA=[{from:eE,to:eF}];for(var eB=0;eB<ez.length;++eB){var eC=ez[eB],ex=eC.find();for(var ey=0;ey<eA.length;++ey){var ew=eA[ey];if(dK(ew.to,ex.from)||dK(ex.to,ew.from)){continue}var eD=[ey,1];if(dK(ew.from,ex.from)||!eC.inclusiveLeft&&d8(ew.from,ex.from)){eD.push({from:ew.from,to:ex.from})}if(dK(ex.to,ew.to)||!eC.inclusiveRight&&d8(ew.to,ex.to)){eD.push({from:ex.to,to:ew.to})}eA.splice.apply(eA,eD);ey+=eD.length-1}}return eA}function r(ew){return ew.inclusiveLeft?-1:0}function bj(ew){return ew.inclusiveRight?1:0}function cF(ez,ex){var eB=ez.lines.length-ex.lines.length;if(eB!=0){return eB}var ey=ez.find(),eC=ex.find();var ew=bz(ey.from,eC.from)||r(ez)-r(ex);if(ew){return -ew}var eA=bz(ey.to,eC.to)||bj(ez)-bj(ex);if(eA){return eA}return ex.id-ez.id}function aC(ex,eB){var ew=aD&&ex.markedSpans,eA;if(ew){for(var ez,ey=0;ey<ew.length;++ey){ez=ew[ey];if(ez.marker.collapsed&&(eB?ez.from:ez.to)==null&&(!eA||cF(eA,ez.marker)<0)){eA=ez.marker}}}return eA}function dn(ew){return aC(ew,true)}function c5(ew){return aC(ew,false)}function v(eE,ey,eC,eD,eA){var eH=dJ(eE,ey);var ew=aD&&eH.markedSpans;if(ew){for(var ez=0;ez<ew.length;++ez){var ex=ew[ez];if(!ex.marker.collapsed){continue}var eG=ex.marker.find(true);var eF=bz(eG.from,eC)||r(ex.marker)-r(eA);var eB=bz(eG.to,eD)||bj(ex.marker)-bj(eA);if(eF>=0&&eB<=0||eF<=0&&eB>=0){continue}if(eF<=0&&(bz(eG.to,eC)||bj(ex.marker)-r(eA))>0||eF>=0&&(bz(eG.from,eD)||r(ex.marker)-bj(eA))<0){return true}}}}function u(ey,ex){var ew;while(ew=dn(ex)){ex=dJ(ey,ew.find().from.line)}return ex}function dZ(eA,ex){var ew=aD&&ex.markedSpans;if(ew){for(var ez,ey=0;ey<ew.length;++ey){ez=ew[ey];if(!ez.marker.collapsed){continue}if(ez.from==null){return true}if(ez.marker.replacedWith){continue}if(ez.from==0&&ez.marker.inclusiveLeft&&J(eA,ex,ez)){return true}}}}function J(eC,ex,ez){if(ez.to==null){var ew=ez.marker.find().to,eA=dJ(eC,ew.line);return J(eC,eA,dE(eA.markedSpans,ez.marker))}if(ez.marker.inclusiveRight&&ez.to==ex.text.length){return true}for(var eB,ey=0;ey<ex.markedSpans.length;++ey){eB=ex.markedSpans[ey];if(eB.marker.collapsed&&!eB.marker.replacedWith&&eB.from==ez.to&&(eB.to==null||eB.to!=ez.from)&&(eB.marker.inclusiveLeft||ez.marker.inclusiveRight)&&J(eC,ex,eB)){return true}}}function ep(ew){var ey=ew.markedSpans;if(!ey){return}for(var ex=0;ex<ey.length;++ex){ey[ex].marker.detachLine(ew)}ew.markedSpans=null}function ca(ew,ey){if(!ey){return}for(var ex=0;ex<ey.length;++ex){ey[ex].marker.attachLine(ew)}ew.markedSpans=ey}var cx=B.LineWidget=function(ew,ez,ex){if(ex){for(var ey in ex){if(ex.hasOwnProperty(ey)){this[ey]=ex[ey]}}}this.cm=ew;this.node=ez};a0(cx);function E(ew){return function(){var ey=!this.cm.curOp;if(ey){bY(this.cm)}try{var ex=ew.apply(this,arguments)}finally{if(ey){W(this.cm)}}return ex}}cx.prototype.clear=E(function(){var ex=this.line.widgets,ez=bc(this.line);if(ez==null||!ex){return}for(var ey=0;ey<ex.length;++ey){if(ex[ey]==this){ex.splice(ey--,1)}}if(!ex.length){this.line.widgets=null}var ew=bb(this.cm,this.line)<this.cm.doc.scrollTop;eo(this.line,Math.max(0,this.line.height-b6(this)));if(ew){b0(this.cm,0,-this.height)}Q(this.cm,ez,ez+1)});cx.prototype.changed=E(function(){var ew=this.height;this.height=null;var ex=b6(this)-ew;if(!ex){return}eo(this.line,this.line.height+ex);var ey=bc(this.line);Q(this.cm,ey,ey+1)});function b6(ew){if(ew.height!=null){return ew.height}if(!ew.node.parentNode||ew.node.parentNode.nodeType!=1){bf(ew.cm.display.measure,ej("div",[ew.node],null,"position: relative"))}return ew.height=ew.node.offsetHeight}function a6(ew,eA,ey,ex){var ez=new cx(ew,ey,ex);if(ez.noHScroll){ew.display.alignWidgets=true}c9(ew,eA,function(eC){var eD=eC.widgets||(eC.widgets=[]);if(ez.insertAt==null){eD.push(ez)}else{eD.splice(Math.min(eD.length-1,Math.max(0,ez.insertAt)),0,ez)}ez.line=eC;if(!dZ(ew.doc,eC)||ez.showIfHidden){var eB=bb(ew,eC)<ew.doc.scrollTop;eo(eC,eC.height+b6(ez));if(eB){b0(ew,0,ez.height)}}return true});return ez}var en=B.Line=function(ey,ex,ew){this.text=ey;ca(this,ex);this.height=ew?ew(this):1};a0(en);en.prototype.lineNo=function(){return bc(this)};function c1(ex,eA,ey,ew){ex.text=eA;if(ex.stateAfter){ex.stateAfter=null}if(ex.styles){ex.styles=null}if(ex.order!=null){ex.order=null}ep(ex);ca(ex,ey);var ez=ew?ew(ex):1;if(ez!=ex.height){eo(ex,ez)}}function a1(ew){ew.parent=null;ep(ew)}function s(eF,eH,eA,ex,eB,ez){var ey=eA.flattenSpans;if(ey==null){ey=eF.options.flattenSpans}var eD=0,eC=null;var eG=new ds(eH,eF.options.tabSize),ew;if(eH==""&&eA.blankLine){eA.blankLine(ex)}while(!eG.eol()){if(eG.pos>eF.options.maxHighlightLength){ey=false;if(ez){cu(eF,eH,ex,eG.pos)}eG.pos=eH.length;ew=null}else{ew=eA.token(eG,ex)}if(eF.options.addModeClass){var eI=B.innerMode(eA,ex).mode.name;if(eI){ew="m-"+(ew?eI+" "+ew:eI)}}if(!ey||eC!=ew){if(eD<eG.start){eB(eG.start,eC)}eD=eG.start;eC=ew}eG.start=eG.pos}while(eD<eG.pos){var eE=Math.min(eG.pos,eD+50000);eB(eE,eC);eD=eE}}function d4(eC,eE,ew,ez){var eD=[eC.state.modeGen];s(eC,eE.text,eC.doc.mode,ew,function(eF,eG){eD.push(eF,eG)},ez);for(var ex=0;ex<eC.state.overlays.length;++ex){var eA=eC.state.overlays[ex],eB=1,ey=0;s(eC,eE.text,eA.mode,true,function(eF,eH){var eJ=eB;while(ey<eF){var eG=eD[eB];if(eG>eF){eD.splice(eB,1,eF,eD[eB+1],eG)}eB+=2;ey=Math.min(eF,eG)}if(!eH){return}if(eA.opaque){eD.splice(eJ,eB-eJ,eF,eH);eB=eJ+2}else{for(;eJ<eB;eJ+=2){var eI=eD[eJ+1];eD[eJ+1]=eI?eI+" "+eH:eH}}})}return eD}function cd(ew,ex){if(!ex.styles||ex.styles[0]!=ew.state.modeGen){ex.styles=d4(ew,ex,ex.stateAfter=cw(ew,bc(ex)))}return ex.styles}function cu(ew,eB,ey,ex){var eA=ew.doc.mode;var ez=new ds(eB,ew.options.tabSize);ez.start=ez.pos=ex||0;if(eB==""&&eA.blankLine){eA.blankLine(ey)}while(!ez.eol()&&ez.pos<=ew.options.maxHighlightLength){eA.token(ez,ey);ez.start=ez.pos}}var cI={},bn={};function du(ez,ey){if(!ez){return null}for(;;){var ex=ez.match(/(?:^|\s)line-(background-)?(\S+)/);if(!ex){break}ez=ez.slice(0,ex.index)+ez.slice(ex.index+ex[0].length);var eA=ex[1]?"bgClass":"textClass";if(ey[eA]==null){ey[eA]=ex[2]}else{if(!(new RegExp("(?:^|s)"+ex[2]+"(?:$|s)")).test(ey[eA])){ey[eA]+=" "+ex[2]}}}var ew=ey.cm.options.addModeClass?bn:cI;return ew[ez]||(ew[ez]="cm-"+ez.replace(/ +/g," cm-"))}function dq(eF,eJ,ew,eI){var eG,eK=eJ,eB=true;while(eG=dn(eK)){eK=dJ(eF.doc,eG.find().from.line)}var eC={pre:ej("pre"),col:0,pos:0,measure:null,measuredSomething:false,cm:eF,copyWidgets:eI};do{if(eK.text){eB=false}eC.measure=eK==eJ&&ew;eC.pos=0;eC.addToken=eC.measure?e:p;if((cf||b8)&&eF.getOption("lineWrapping")){eC.addToken=d6(eC.addToken)}var eA=aU(eK,eC,cd(eF,eK));if(ew&&eK==eJ&&!eC.measuredSomething){ew[0]=eC.pre.appendChild(aS(eF.display.measure));eC.measuredSomething=true}if(eA){eK=dJ(eF.doc,eA.to.line)}}while(eA);if(ew&&!eC.measuredSomething&&!ew[0]){ew[0]=eC.pre.appendChild(eB?ej("span","\u00a0"):aS(eF.display.measure))}if(!eC.pre.firstChild&&!dZ(eF.doc,eJ)){eC.pre.appendChild(document.createTextNode("\u00a0"))}var ex;if(ew&&cA&&(ex=a(eK))){var ez=ex.length-1;if(ex[ez].from==ex[ez].to){--ez}var eH=ex[ez],ey=ex[ez-1];if(eH.from+1==eH.to&&ey&&eH.level<ey.level){var eE=ew[eC.pos-1];if(eE){eE.parentNode.insertBefore(eE.measureRight=aS(eF.display.measure),eE.nextSibling)}}}var eD=eC.textClass?eC.textClass+" "+(eJ.textClass||""):eJ.textClass;if(eD){eC.pre.className=eD}ah(eF,"renderLine",eF,eJ,eC.pre);return eC}function dH(ex){var ew=ej("span","\u2022","cm-invalidchar");ew.title="\\u"+ex.charCodeAt(0).toString(16);return ew}function p(eA,eJ,ew,ez,eK,eI){if(!eJ){return}var eE=eA.cm.options.specialChars;if(!eE.test(eJ)){eA.col+=eJ.length;var eD=document.createTextNode(eJ)}else{var eD=document.createDocumentFragment(),eG=0;while(true){eE.lastIndex=eG;var ex=eE.exec(eJ);var eC=ex?ex.index-eG:eJ.length-eG;if(eC){eD.appendChild(document.createTextNode(eJ.slice(eG,eG+eC)));eA.col+=eC}if(!ex){break}eG+=eC+1;if(ex[0]=="\t"){var eB=eA.cm.options.tabSize,eF=eB-eA.col%eB;eD.appendChild(ej("span",bJ(eF),"cm-tab"));eA.col+=eF}else{var ey=eA.cm.options.specialCharPlaceholder(ex[0]);eD.appendChild(ey);eA.col+=1}}}if(ew||ez||eK||eA.measure){var eH=ew||"";if(ez){eH+=ez}if(eK){eH+=eK}var ey=ej("span",[eD],eH);if(eI){ey.title=eI}return eA.pre.appendChild(ey)}eA.pre.appendChild(eD)}function e(eD,eG,ex,eA,eH){var eC=eD.cm.options.lineWrapping;for(var eB=0;eB<eG.length;++eB){var ey=eB==0,eF=eB+1;while(eF<eG.length&&dV(eG.charAt(eF))){++eF}var ew=eG.slice(eB,eF);eB=eF-1;if(eB&&eC&&bu(eG,eB)){eD.pre.appendChild(ej("wbr"))}var ez=eD.measure[eD.pos];var eE=eD.measure[eD.pos]=p(eD,ew,ex,ey&&eA,eB==eG.length-1&&eH);if(ez){eE.leftSide=ez.leftSide||ez}if(cf&&eC&&ew==" "&&eB&&!/\s/.test(eG.charAt(eB-1))&&eB<eG.length-1&&!/\s/.test(eG.charAt(eB+1))){eE.style.whiteSpace="normal"}eD.pos+=ew.length}if(eG.length){eD.measuredSomething=true}}function d6(ew){function ex(ey){var ez=" ";for(var eA=0;eA<ey.length-2;++eA){ez+=eA%2?" ":"\u00a0"}ez+=" ";return ez}return function(ez,eD,eA,ey,eC,eB){return ew(ez,eD.replace(/ {3,}/g,ex),eA,ey,eC,eB)}}function M(ex,eA,ew,ez){var eB=!ez&&ew.replacedWith;if(eB){if(ex.copyWidgets){eB=eB.cloneNode(true)}ex.pre.appendChild(eB);if(ex.measure){if(eA){ex.measure[ex.pos]=eB}else{var ey=aS(ex.cm.display.measure);if(ew.type=="bookmark"&&!ew.insertLeft){ex.measure[ex.pos]=ex.pre.appendChild(ey)}else{if(ex.measure[ex.pos]){return}else{ex.measure[ex.pos]=ex.pre.insertBefore(ey,eB)}}}ex.measuredSomething=true}}ex.pos+=eA}function aU(eF,eL,eE){var eB=eF.markedSpans,eD=eF.text,eJ=0;if(!eB){for(var eO=1;eO<eE.length;eO+=2){eL.addToken(eL,eD.slice(eJ,eJ=eE[eO]),du(eE[eO+1],eL))}return}var eP=eD.length,eA=0,eO=1,eH="",eQ;var eS=0,ew,eR,eI,eT,ey;for(;;){if(eS==eA){ew=eR=eI=eT="";ey=null;eS=Infinity;var eC=[];for(var eM=0;eM<eB.length;++eM){var eN=eB[eM],eK=eN.marker;if(eN.from<=eA&&(eN.to==null||eN.to>eA)){if(eN.to!=null&&eS>eN.to){eS=eN.to;eR=""}if(eK.className){ew+=" "+eK.className}if(eK.startStyle&&eN.from==eA){eI+=" "+eK.startStyle}if(eK.endStyle&&eN.to==eS){eR+=" "+eK.endStyle}if(eK.title&&!eT){eT=eK.title}if(eK.collapsed&&(!ey||cF(ey.marker,eK)<0)){ey=eN}}else{if(eN.from>eA&&eS>eN.from){eS=eN.from}}if(eK.type=="bookmark"&&eN.from==eA&&eK.replacedWith){eC.push(eK)}}if(ey&&(ey.from||0)==eA){M(eL,(ey.to==null?eP:ey.to)-eA,ey.marker,ey.from==null);if(ey.to==null){return ey.marker.find()}}if(!ey&&eC.length){for(var eM=0;eM<eC.length;++eM){M(eL,0,eC[eM])}}}if(eA>=eP){break}var eG=Math.min(eP,eS);while(true){if(eH){var ex=eA+eH.length;if(!ey){var ez=ex>eG?eH.slice(0,eG-eA):eH;eL.addToken(eL,ez,eQ?eQ+ew:ew,eI,eA+ez.length==eS?eR:"",eT)}if(ex>=eG){eH=eH.slice(eG-eA);eA=eG;break}eA=ex;eI=""}eH=eD.slice(eJ,eJ=eE[eO++]);eQ=du(eE[eO++],eL)}}}function d2(eN,eE,eA,eI,eC){function ez(eO){return eA?eA[eO]:null}function eD(eO,eQ,eP){c1(eO,eQ,eP,eC);O(eO,"change",eO,eE)}var eJ=eE.from,ex=eE.to,eG=eE.text;var eF=dJ(eN,eJ.line),ew=dJ(eN,ex.line);var ey=d7(eG),eL=ez(eG.length-1),eH=ex.line-eJ.line;if(eJ.ch==0&&ex.ch==0&&ey==""&&(!eN.cm||eN.cm.options.wholeLineUpdateBefore)){for(var eK=0,eM=eG.length-1,eB=[];eK<eM;++eK){eB.push(new en(eG[eK],ez(eK),eC))}eD(ew,ew.text,eL);if(eH){eN.remove(eJ.line,eH)}if(eB.length){eN.insert(eJ.line,eB)}}else{if(eF==ew){if(eG.length==1){eD(eF,eF.text.slice(0,eJ.ch)+ey+eF.text.slice(ex.ch),eL)}else{for(var eB=[],eK=1,eM=eG.length-1;eK<eM;++eK){eB.push(new en(eG[eK],ez(eK),eC))}eB.push(new en(ey+eF.text.slice(ex.ch),eL,eC));eD(eF,eF.text.slice(0,eJ.ch)+eG[0],ez(0));eN.insert(eJ.line+1,eB)}}else{if(eG.length==1){eD(eF,eF.text.slice(0,eJ.ch)+eG[0]+ew.text.slice(ex.ch),ez(0));eN.remove(eJ.line+1,eH)}else{eD(eF,eF.text.slice(0,eJ.ch)+eG[0],ez(0));eD(ew,ey+ew.text.slice(ex.ch),eL);for(var eK=1,eM=eG.length-1,eB=[];eK<eM;++eK){eB.push(new en(eG[eK],ez(eK),eC))}if(eH>1){eN.remove(eJ.line+1,eH-1)}eN.insert(eJ.line+1,eB)}}}O(eN,"change",eN,eE);bh(eN,eI.anchor,eI.head,null,true)}function dx(ex){this.lines=ex;this.parent=null;for(var ey=0,ez=ex.length,ew=0;ey<ez;++ey){ex[ey].parent=this;ew+=ex[ey].height}this.height=ew}dx.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ew,eA){for(var ey=ew,ez=ew+eA;ey<ez;++ey){var ex=this.lines[ey];this.height-=ex.height;a1(ex);O(ex,"delete")}this.lines.splice(ew,eA)},collapse:function(ew){ew.splice.apply(ew,[ew.length,0].concat(this.lines))},insertInner:function(ex,ey,ew){this.height+=ew;this.lines=this.lines.slice(0,ex).concat(ey).concat(this.lines.slice(ex));for(var ez=0,eA=ey.length;ez<eA;++ez){ey[ez].parent=this}},iterN:function(ew,ez,ey){for(var ex=ew+ez;ew<ex;++ew){if(ey(this.lines[ew])){return true}}}};function d0(ez){this.children=ez;var ey=0,ew=0;for(var ex=0,eB=ez.length;ex<eB;++ex){var eA=ez[ex];ey+=eA.chunkSize();ew+=eA.height;eA.parent=this}this.size=ey;this.height=ew;this.parent=null}d0.prototype={chunkSize:function(){return this.size},removeInner:function(ew,eD){this.size-=eD;for(var ey=0;ey<this.children.length;++ey){var eC=this.children[ey],eA=eC.chunkSize();if(ew<eA){var ez=Math.min(eD,eA-ew),eB=eC.height;eC.removeInner(ew,ez);this.height-=eB-eC.height;if(eA==ez){this.children.splice(ey--,1);eC.parent=null}if((eD-=ez)==0){break}ew=0}else{ew-=eA}}if(this.size-eD<25){var ex=[];this.collapse(ex);this.children=[new dx(ex)];this.children[0].parent=this}},collapse:function(ew){for(var ex=0,ey=this.children.length;ex<ey;++ex){this.children[ex].collapse(ew)}},insertInner:function(ex,eE,eD){this.size+=eE.length;this.height+=eD;for(var ey=0,eA=this.children.length;ey<eA;++ey){var ew=this.children[ey],eB=ew.chunkSize();if(ex<=eB){ew.insertInner(ex,eE,eD);if(ew.lines&&ew.lines.length>50){while(ew.lines.length>50){var ez=ew.lines.splice(ew.lines.length-25,25);var eC=new dx(ez);ew.height-=eC.height;this.children.splice(ey+1,0,eC);eC.parent=this}this.maybeSpill()}break}ex-=eB}},maybeSpill:function(){if(this.children.length<=10){return}var ez=this;do{var ex=ez.children.splice(ez.children.length-5,5);var ey=new d0(ex);if(!ez.parent){var eA=new d0(ez.children);eA.parent=ez;ez.children=[eA,ey];ez=eA}else{ez.size-=ey.size;ez.height-=ey.height;var ew=cl(ez.parent.children,ez);ez.parent.children.splice(ew+1,0,ey)}ey.parent=ez.parent}while(ez.children.length>10);ez.parent.maybeSpill()},iterN:function(ew,eD,eC){for(var ex=0,eA=this.children.length;ex<eA;++ex){var eB=this.children[ex],ez=eB.chunkSize();if(ew<ez){var ey=Math.min(eD,ez-ew);if(eB.iterN(ew,ey,eC)){return true}if((eD-=ey)==0){break}ew=0}else{ew-=ez}}}};var bK=0;var aa=B.Doc=function(ey,ex,ew){if(!(this instanceof aa)){return new aa(ey,ex,ew)}if(ew==null){ew=0}d0.call(this,[new dx([new en("",null)])]);this.first=ew;this.scrollTop=this.scrollLeft=0;this.cantEdit=false;this.history=ac();this.cleanGeneration=1;this.frontier=ew;var ez=K(ew,0);this.sel={from:ez,to:ez,head:ez,anchor:ez,shift:false,extend:false,goalColumn:null};this.id=++bK;this.modeOption=ex;if(typeof ey=="string"){ey=ay(ey)}d2(this,{from:ez,to:ez,text:ey},null,{head:ez,anchor:ez})};aa.prototype=bD(d0.prototype,{constructor:aa,iter:function(ey,ex,ew){if(ew){this.iterN(ey-this.first,ex-ey,ew)}else{this.iterN(this.first,this.first+this.size,ey)}},insert:function(ex,ey){var ew=0;for(var ez=0,eA=ey.length;ez<eA;++ez){ew+=ey[ez].height}this.insertInner(ex-this.first,ey,ew)},remove:function(ew,ex){this.removeInner(ew-this.first,ex)},getValue:function(ex){var ew=aA(this,this.first,this.first+this.size);if(ex===false){return ew}return ew.join(ex||"\n")},setValue:function(ex){var ey=K(this.first,0),ew=this.first+this.size-1;aL(this,{from:ey,to:K(ew,dJ(this,ew).text.length),text:ay(ex),origin:"setValue"},{head:ey,anchor:ey},true)},replaceRange:function(ex,ez,ey,ew){ez=d9(this,ez);ey=ey?d9(this,ey):ez;az(this,ex,ez,ey,ew)},getRange:function(ez,ey,ex){var ew=el(this,d9(this,ez),d9(this,ey));if(ex===false){return ew}return ew.join(ex||"\n")},getLine:function(ex){var ew=this.getLineHandle(ex);return ew&&ew.text},setLine:function(ew,ex){if(bt(this,ew)){az(this,ex,K(ew,0),d9(this,K(ew)))}},removeLine:function(ew){if(ew){az(this,"",d9(this,K(ew-1)),d9(this,K(ew)))}else{az(this,"",K(0,0),d9(this,K(1,0)))}},getLineHandle:function(ew){if(bt(this,ew)){return dJ(this,ew)}},getLineNumber:function(ew){return bc(ew)},getLineHandleVisualStart:function(ew){if(typeof ew=="number"){ew=dJ(this,ew)}return u(this,ew)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ew){return d9(this,ew)},getCursor:function(ey){var ew=this.sel,ex;if(ey==null||ey=="head"){ex=ew.head}else{if(ey=="anchor"){ex=ew.anchor}else{if(ey=="end"||ey===false){ex=ew.to}else{ex=ew.from}}}return bC(ex)},somethingSelected:function(){return !d8(this.sel.head,this.sel.anchor)},setCursor:d3(function(ew,ex,ez){var ey=d9(this,typeof ew=="number"?K(ew,ex||0):ew);if(ez){eg(this,ey)}else{bh(this,ey,ey)}}),setSelection:d3(function(ex,ey,ew){bh(this,d9(this,ex),d9(this,ey||ex),ew)}),extendSelection:d3(function(ey,ex,ew){eg(this,d9(this,ey),ex&&d9(this,ex),ew)}),getSelection:function(ew){return this.getRange(this.sel.from,this.sel.to,ew)},replaceSelection:function(ex,ey,ew){aL(this,{from:this.sel.from,to:this.sel.to,text:ay(ex),origin:ew},ey||"around")},undo:d3(function(){bs(this,"undo")}),redo:d3(function(){bs(this,"redo")}),setExtending:function(ew){this.sel.extend=ew},historySize:function(){var ew=this.history;return{undo:ew.done.length,redo:ew.undone.length}},clearHistory:function(){this.history=ac(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(true)},changeGeneration:function(ew){if(ew){this.history.lastOp=this.history.lastOrigin=null}return this.history.generation},isClean:function(ew){return this.history.generation==(ew||this.cleanGeneration)},getHistory:function(){return{done:bd(this.history.done),undone:bd(this.history.undone)}},setHistory:function(ex){var ew=this.history=ac(this.history.maxGeneration);ew.done=ex.done.slice(0);ew.undone=ex.undone.slice(0)},markText:function(ey,ex,ew){return dh(this,d9(this,ey),d9(this,ex),ew,"range")},setBookmark:function(ey,ew){var ex={replacedWith:ew&&(ew.nodeType==null?ew.widget:ew),insertLeft:ew&&ew.insertLeft,clearWhenEmpty:false};ey=d9(this,ey);return dh(this,ey,ey,ex,"bookmark")},findMarksAt:function(eA){eA=d9(this,eA);var ez=[],ex=dJ(this,eA.line).markedSpans;if(ex){for(var ew=0;ew<ex.length;++ew){var ey=ex[ew];if((ey.from==null||ey.from<=eA.ch)&&(ey.to==null||ey.to>=eA.ch)){ez.push(ey.marker.parent||ey.marker)}}}return ez},getAllMarks:function(){var ew=[];this.iter(function(ey){var ex=ey.markedSpans;if(ex){for(var ez=0;ez<ex.length;++ez){if(ex[ez].from!=null){ew.push(ex[ez].marker)}}}});return ew},posFromIndex:function(ex){var ew,ey=this.first;this.iter(function(ez){var eA=ez.text.length+1;if(eA>ex){ew=ex;return true}ex-=eA;++ey});return d9(this,K(ey,ew))},indexFromPos:function(ex){ex=d9(this,ex);var ew=ex.ch;if(ex.line<this.first||ex.ch<0){return 0}this.iter(this.first,ex.line,function(ey){ew+=ey.text.length+1});return ew},copy:function(ew){var ex=new aa(aA(this,this.first,this.first+this.size),this.modeOption,this.first);ex.scrollTop=this.scrollTop;ex.scrollLeft=this.scrollLeft;ex.sel={from:this.sel.from,to:this.sel.to,head:this.sel.head,anchor:this.sel.anchor,shift:this.sel.shift,extend:false,goalColumn:this.sel.goalColumn};if(ew){ex.history.undoDepth=this.history.undoDepth;ex.setHistory(this.getHistory())}return ex},linkedDoc:function(ew){if(!ew){ew={}}var ez=this.first,ey=this.first+this.size;if(ew.from!=null&&ew.from>ez){ez=ew.from}if(ew.to!=null&&ew.to<ey){ey=ew.to}var ex=new aa(aA(this,ez,ey),ew.mode||this.modeOption,ez);if(ew.sharedHist){ex.history=this.history}(this.linked||(this.linked=[])).push({doc:ex,sharedHist:ew.sharedHist});ex.linked=[{doc:this,isParent:true,sharedHist:ew.sharedHist}];return ex},unlinkDoc:function(ex){if(ex instanceof B){ex=ex.doc}if(this.linked){for(var ey=0;ey<this.linked.length;++ey){var ez=this.linked[ey];if(ez.doc!=ex){continue}this.linked.splice(ey,1);ex.unlinkDoc(this);break}}if(ex.history==this.history){var ew=[ex.id];cN(ex,function(eA){ew.push(eA.id)},true);ex.history=ac();ex.history.done=bd(this.history.done,ew);ex.history.undone=bd(this.history.undone,ew)}},iterLinkedDocs:function(ew){cN(this,ew)},getMode:function(){return this.mode},getEditor:function(){return this.cm}});aa.prototype.eachLine=aa.prototype.iter;var d="iter insert remove copy getEditor".split(" ");for(var a9 in aa.prototype){if(aa.prototype.hasOwnProperty(a9)&&cl(d,a9)<0){B.prototype[a9]=(function(ew){return function(){return ew.apply(this.doc,arguments)}})(aa.prototype[a9])}}a0(aa);function cN(ez,ey,ex){function ew(eF,eD,eB){if(eF.linked){for(var eC=0;eC<eF.linked.length;++eC){var eA=eF.linked[eC];if(eA.doc==eD){continue}var eE=eB&&eA.sharedHist;if(ex&&!eE){continue}ey(eA.doc,eE);ew(eA.doc,eF,eE)}}}ew(ez,null,true)}function cQ(ew,ex){if(ex.cm){throw new Error("This document is already in use.")}ew.doc=ex;ex.cm=ew;L(ew);aW(ew);if(!ew.options.lineWrapping){em(ew)}ew.options.mode=ex.modeOption;Q(ew)}function dJ(ew,eA){eA-=ew.first;while(!ew.lines){for(var ex=0;;++ex){var ez=ew.children[ex],ey=ez.chunkSize();if(eA<ey){ew=ez;break}eA-=ey}}return ew.lines[eA]}function el(ey,eA,ew){var ex=[],ez=eA.line;ey.iter(eA.line,ew.line+1,function(eB){var eC=eB.text;if(ez==ew.line){eC=eC.slice(0,ew.ch)}if(ez==eA.line){eC=eC.slice(eA.ch)}ex.push(eC);++ez});return ex}function aA(ex,ez,ey){var ew=[];ex.iter(ez,ey,function(eA){ew.push(eA.text)});return ew}function eo(ex,ew){var ey=ew-ex.height;for(var ez=ex;ez;ez=ez.parent){ez.height+=ey}}function bc(ew){if(ew.parent==null){return null}var eA=ew.parent,ez=cl(eA.lines,ew);for(var ex=eA.parent;ex;eA=ex,ex=ex.parent){for(var ey=0;;++ey){if(ex.children[ey]==eA){break}ez+=ex.children[ey].chunkSize()}}return ez+eA.first}function a5(eC,eA){var ey=eC.first;outer:do{for(var ez=0,eB=eC.children.length;ez<eB;++ez){var ex=eC.children[ez],ew=ex.height;if(eA<ew){eC=ex;continue outer}eA-=ew;ey+=ex.chunkSize()}return ey}while(!eC.lines);for(var ez=0,eB=eC.lines.length;ez<eB;++ez){var eE=eC.lines[ez],eD=eE.height;if(eA<eD){break}eA-=eD}return ey+ez}function bb(ew,ez){ez=u(ew.doc,ez);var eB=0,ey=ez.parent;for(var eA=0;eA<ey.lines.length;++eA){var ex=ey.lines[eA];if(ex==ez){break}else{eB+=ex.height}}for(var eC=ey.parent;eC;ey=eC,eC=ey.parent){for(var eA=0;eA<eC.children.length;++eA){var eD=eC.children[eA];if(eD==ey){break}else{eB+=eD.height}}}return eB}function a(ex){var ew=ex.order;if(ew==null){ew=ex.order=aM(ex.text)}return ew}function ac(ew){return{done:[],undone:[],undoDepth:Infinity,lastTime:0,lastOp:null,lastOrigin:null,generation:ew||1,maxGeneration:ew||1}}function bl(ex,eB,eA,ez){var ew=eB["spans_"+ex.id],ey=0;ex.iter(Math.max(ex.first,eA),Math.min(ex.first+ex.size,ez),function(eC){if(eC.markedSpans){(ew||(ew=eB["spans_"+ex.id]={}))[ey]=eC.markedSpans}++ey})}function cs(ew,ez){var ey={line:ez.from.line,ch:ez.from.ch};var ex={from:ey,to:b5(ez),text:el(ew,ez.from,ez.to)};bl(ew,ex,ez.from.line,ez.to.line+1);cN(ew,function(eA){bl(eA,ex,ez.from.line,ez.to.line+1)},true);return ex}function di(eB,eD,eA,ew){var ez=eB.history;ez.undone.length=0;var ey=+new Date,eC=d7(ez.done);if(eC&&(ez.lastOp==ew||ez.lastOrigin==eD.origin&&eD.origin&&((eD.origin.charAt(0)=="+"&&eB.cm&&ez.lastTime>ey-eB.cm.options.historyEventDelay)||eD.origin.charAt(0)=="*"))){var ex=d7(eC.changes);if(d8(eD.from,eD.to)&&d8(eD.from,ex.to)){ex.to=b5(eD)}else{eC.changes.push(cs(eB,eD))}eC.anchorAfter=eA.anchor;eC.headAfter=eA.head}else{eC={changes:[cs(eB,eD)],generation:ez.generation,anchorBefore:eB.sel.anchor,headBefore:eB.sel.head,anchorAfter:eA.anchor,headAfter:eA.head};ez.done.push(eC);while(ez.done.length>ez.undoDepth){ez.done.shift()}}ez.generation=++ez.maxGeneration;ez.lastTime=ey;ez.lastOp=ew;ez.lastOrigin=eD.origin}function aP(ey){if(!ey){return null}for(var ex=0,ew;ex<ey.length;++ex){if(ey[ex].marker.explicitlyCleared){if(!ew){ew=ey.slice(0,ex)}}else{if(ew){ew.push(ey[ex])}}}return !ew?ey:ew.length?ew:null}function br(ez,eA){var ey=eA["spans_"+ez.id];if(!ey){return null}for(var ex=0,ew=[];ex<eA.text.length;++ex){ew.push(aP(ey[ex]))}return ew}function bd(eG,ez){for(var eC=0,ex=[];eC<eG.length;++eC){var ey=eG[eC],eE=ey.changes,eF=[];ex.push({changes:eF,anchorBefore:ey.anchorBefore,headBefore:ey.headBefore,anchorAfter:ey.anchorAfter,headAfter:ey.headAfter});for(var eB=0;eB<eE.length;++eB){var eD=eE[eB],eA;eF.push({from:eD.from,to:eD.to,text:eD.text});if(ez){for(var ew in eD){if(eA=ew.match(/^spans_(\d+)$/)){if(cl(ez,Number(eA[1]))>-1){d7(eF)[ew]=eD[ew];delete eD[ew]}}}}}}return ex}function dv(ez,ey,ex,ew){if(ex<ez.line){ez.line+=ew}else{if(ey<ez.line){ez.line=ey;ez.ch=0}}}function dM(ez,eB,eC,eD){for(var ey=0;ey<ez.length;++ey){var ew=ez[ey],eA=true;for(var ex=0;ex<ew.changes.length;++ex){var eE=ew.changes[ex];if(!ew.copied){eE.from=bC(eE.from);eE.to=bC(eE.to)}if(eC<eE.from.line){eE.from.line+=eD;eE.to.line+=eD}else{if(eB<=eE.to.line){eA=false;break}}}if(!ew.copied){ew.anchorBefore=bC(ew.anchorBefore);ew.headBefore=bC(ew.headBefore);ew.anchorAfter=bC(ew.anchorAfter);ew.readAfter=bC(ew.headAfter);ew.copied=true}if(!eA){ez.splice(0,ey+1);ey=0}else{dv(ew.anchorBefore);dv(ew.headBefore);dv(ew.anchorAfter);dv(ew.headAfter)}}}function cz(ex,eA){var ez=eA.from.line,ey=eA.to.line,ew=eA.text.length-(ey-ez)-1;dM(ex.done,ez,ey,ew);dM(ex.undone,ez,ey,ew)}function dr(){c2(this)}function Y(ew){if(!ew.stop){ew.stop=dr}return ew}function bV(ew){if(ew.preventDefault){ew.preventDefault()}else{ew.returnValue=false}}function cp(ew){if(ew.stopPropagation){ew.stopPropagation()}else{ew.cancelBubble=true}}function ba(ew){return ew.defaultPrevented!=null?ew.defaultPrevented:ew.returnValue==false}function c2(ew){bV(ew);cp(ew)}B.e_stop=c2;B.e_preventDefault=bV;B.e_stopPropagation=cp;function D(ew){return ew.target||ew.srcElement}function eb(ex){var ew=ex.which;if(ew==null){if(ex.button&1){ew=1}else{if(ex.button&2){ew=3}else{if(ex.button&4){ew=2}}}}if(bq&&ex.ctrlKey&&ew==1){ew=3}return ew}function bk(ez,ex,ey){if(ez.addEventListener){ez.addEventListener(ex,ey,false)}else{if(ez.attachEvent){ez.attachEvent("on"+ex,ey)}else{var eA=ez._handlers||(ez._handlers={});var ew=eA[ex]||(eA[ex]=[]);ew.push(ey)}}}function cT(eA,ey,ez){if(eA.removeEventListener){eA.removeEventListener(ey,ez,false)}else{if(eA.detachEvent){eA.detachEvent("on"+ey,ez)}else{var ew=eA._handlers&&eA._handlers[ey];if(!ew){return}for(var ex=0;ex<ew.length;++ex){if(ew[ex]==ez){ew.splice(ex,1);break}}}}}function ah(eA,ez){var ew=eA._handlers&&eA._handlers[ez];if(!ew){return}var ex=Array.prototype.slice.call(arguments,2);for(var ey=0;ey<ew.length;++ey){ew[ey].apply(null,ex)}}var aT,bL=0;function O(eB,eA){var ew=eB._handlers&&eB._handlers[eA];if(!ew){return}var ey=Array.prototype.slice.call(arguments,2);if(!aT){++bL;aT=[];setTimeout(da,0)}function ex(eC){return function(){eC.apply(null,ey)}}for(var ez=0;ez<ew.length;++ez){aT.push(ex(ew[ez]))}}function ar(ew,ey,ex){ah(ew,ex||ey.type,ew,ey);return ba(ey)||ey.codemirrorIgnore}function da(){--bL;var ew=aT;aT=null;for(var ex=0;ex<ew.length;++ex){ew[ex]()}}function dP(ey,ex){var ew=ey._handlers&&ey._handlers[ex];return ew&&ew.length>0}B.on=bk;B.off=cT;B.signal=ah;function a0(ew){ew.prototype.on=function(ex,ey){bk(this,ex,ey)};ew.prototype.off=function(ex,ey){cT(this,ex,ey)}}var aO=30;var bv=B.Pass={toString:function(){return"CodeMirror.Pass"}};function ev(){this.id=null}ev.prototype={set:function(ew,ex){clearTimeout(this.id);this.id=setTimeout(ex,ew)}};function bg(ey,ew,eA,eB,ex){if(ew==null){ew=ey.search(/[^\s\u00a0]/);if(ew==-1){ew=ey.length}}for(var ez=eB||0,eC=ex||0;ez<ew;++ez){if(ey.charAt(ez)=="\t"){eC+=eA-(eC%eA)}else{++eC}}return eC}B.countColumn=bg;var ax=[""];function bJ(ew){while(ax.length<=ew){ax.push(d7(ax)+" ")}return ax[ew]}function d7(ew){return ew[ew.length-1]}function cC(ex){if(dy){ex.selectionStart=0;ex.selectionEnd=ex.value.length}else{try{ex.select()}catch(ew){}}}function cl(ez,ew){if(ez.indexOf){return ez.indexOf(ew)}for(var ex=0,ey=ez.length;ex<ey;++ex){if(ez[ex]==ew){return ex}}return -1}function bD(ez,ex){function ew(){}ew.prototype=ez;var ey=new ew();if(ex){am(ex,ey)}return ey}function am(ex,ew){if(!ew){ew={}}for(var ey in ex){if(ex.hasOwnProperty(ey)){ew[ey]=ex[ey]}}return ew}function U(ey){for(var ew=[],ex=0;ex<ey;++ex){ew.push(undefined)}return ew}function bO(ex){var ew=Array.prototype.slice.call(arguments,1);return function(){return ex.apply(null,ew)}}var aI=/[\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function bR(ew){return/\w/.test(ew)||ew>"\x80"&&(ew.toUpperCase()!=ew.toLowerCase()||aI.test(ew))}function dt(ew){for(var ex in ew){if(ew.hasOwnProperty(ex)&&ew[ex]){return false}}return true}var dl=/[\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]/;function dV(ew){return ew.charCodeAt(0)>=768&&dl.test(ew)}function ej(ew,eA,ez,ey){var eB=document.createElement(ew);if(ez){eB.className=ez}if(ey){eB.style.cssText=ey}if(typeof eA=="string"){l(eB,eA)}else{if(eA){for(var ex=0;ex<eA.length;++ex){eB.appendChild(eA[ex])}}}return eB}function cK(ex){for(var ew=ex.childNodes.length;ew>0;--ew){ex.removeChild(ex.firstChild)}return ex}function bf(ew,ex){return cK(ew).appendChild(ex)}function l(ew,ex){if(bE){ew.innerHTML="";ew.appendChild(document.createTextNode(ex))}else{ew.textContent=ex}}function an(ew){return ew.getBoundingClientRect()}B.replaceGetRect=function(ew){an=ew};var dm=function(){if(bE){return false}var ew=ej("div");return"draggable" in ew||"dragDrop" in ew}();function bu(){return false}if(bI){bu=function(ex,ew){return ex.charCodeAt(ew-1)==36&&ex.charCodeAt(ew)==39}}else{if(ag&&!/Version\/([6-9]|\d\d)\b/.test(navigator.userAgent)){bu=function(ex,ew){return/\-[^ \-?]|\?[^ !\'\"\),.\-\/:;\?\]\}]/.test(ex.slice(ew-1,ew+1))}}else{if(b8&&/Chrome\/(?:29|[3-9]\d|\d\d\d)\./.test(navigator.userAgent)){bu=function(ey,ew){var ex=ey.charCodeAt(ew-1);return ex>=8208&&ex<=8212}}else{if(b8){bu=function(ex,ew){if(ew>1&&ex.charCodeAt(ew-1)==45){if(/\w/.test(ex.charAt(ew-2))&&/[^\-?\.]/.test(ex.charAt(ew))){return true}if(ew>2&&/[\d\.,]/.test(ex.charAt(ew-2))&&/[\d\.,]/.test(ex.charAt(ew))){return false}}return/[~!#%&*)=+}\]\\|\"\.>,:;][({[<]|-[^\-?\.\u2010-\u201f\u2026]|\?[\w~`@#$%\^&*(_=+{[|><]|\u2026[\w~`@#$%\^&*(_=+{[><]/.test(ex.slice(ew-1,ew+1))}}}}}var c6;function i(ew){if(c6!=null){return c6}var ex=ej("div",null,null,"width: 50px; height: 50px; overflow-x: scroll");bf(ew,ex);if(ex.offsetWidth){c6=ex.offsetHeight-ex.clientHeight}return c6||0}var ea;function aS(ew){if(ea==null){var ex=ej("span","\u200b");bf(ew,ej("span",[ex,document.createTextNode("x")]));if(ew.firstChild.offsetHeight!=0){ea=ex.offsetWidth<=1&&ex.offsetHeight>2&&!bF}}if(ea){return ej("span","\u200b")}else{return ej("span","\u00a0",null,"display: inline-block; width: 1px; margin-right: -1px")}}var ay="\n\nb".split(/\n/).length!=3?function(eB){var eC=0,ew=[],eA=eB.length;while(eC<=eA){var ez=eB.indexOf("\n",eC);if(ez==-1){ez=eB.length}var ey=eB.slice(eC,eB.charAt(ez-1)=="\r"?ez-1:ez);var ex=ey.indexOf("\r");if(ex!=-1){ew.push(ey.slice(0,ex));eC+=ex+1}else{ew.push(ey);eC=ez+1}}return ew}:function(ew){return ew.split(/\r\n?|\n/)};B.splitLines=ay;var aX=window.getSelection?function(ex){try{return ex.selectionStart!=ex.selectionEnd}catch(ew){return false}}:function(ey){try{var ew=ey.ownerDocument.selection.createRange()}catch(ex){}if(!ew||ew.parentElement()!=ey){return false}return ew.compareEndPoints("StartToEnd",ew)!=0};var ce=(function(){var ew=ej("div");if("oncopy" in ew){return true}ew.setAttribute("oncopy","return;");return typeof ew.oncopy=="function"})();var dL={3:"Enter",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",107:"=",109:"-",127:"Delete",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"};B.keyNames=dL;(function(){for(var ew=0;ew<10;ew++){dL[ew+48]=dL[ew+96]=String(ew)}for(var ew=65;ew<=90;ew++){dL[ew]=String.fromCharCode(ew)}for(var ew=1;ew<=12;ew++){dL[ew+111]=dL[ew+63235]="F"+ew}})();function cL(ew,eC,eB,eA){if(!ew){return eA(eC,eB,"ltr")}var ez=false;for(var ey=0;ey<ew.length;++ey){var ex=ew[ey];if(ex.from<eB&&ex.to>eC||eC==eB&&ex.to==eC){eA(Math.max(ex.from,eC),Math.min(ex.to,eB),ex.level==1?"rtl":"ltr");ez=true}}if(!ez){eA(eC,eB,"ltr")}}function cv(ew){return ew.level%2?ew.to:ew.from}function er(ew){return ew.level%2?ew.from:ew.to}function bU(ex){var ew=a(ex);return ew?cv(ew[0]):0}function b4(ex){var ew=a(ex);if(!ew){return ex.text.length}return er(d7(ew))}function aY(ex,eA){var ey=dJ(ex.doc,eA);var eB=u(ex.doc,ey);if(eB!=ey){eA=bc(eB)}var ew=a(eB);var ez=!ew?0:ew[0].level%2?b4(eB):bU(eB);return K(eA,ez)}function cE(ey,eB){var ex,ez;while(ex=c5(ez=dJ(ey.doc,eB))){eB=ex.find().to.line}var ew=a(ez);var eA=!ew?ez.text.length:ew[0].level%2?bU(ez):b4(ez);return K(eB,eA)}function X(ex,ey,ew){var ez=ex[0].level;if(ey==ez){return true}if(ew==ez){return false}return ey<ew}var dz;function aj(ew,eA){dz=null;for(var ex=0,ey;ex<ew.length;++ex){var ez=ew[ex];if(ez.from<eA&&ez.to>eA){return ex}if((ez.from==eA||ez.to==eA)){if(ey==null){ey=ex}else{if(X(ew,ez.level,ew[ey].level)){if(ez.from!=ez.to){dz=ey}return ex}else{if(ez.from!=ez.to){dz=ex}return ey}}}}return ey}function dI(ew,ez,ex,ey){if(!ey){return ez+ex}do{ez+=ex}while(ez>0&&dV(ew.text.charAt(ez)));return ez}function q(ew,eD,ey,ez){var eA=a(ew);if(!eA){return R(ew,eD,ey,ez)}var eC=aj(eA,eD),ex=eA[eC];var eB=dI(ew,eD,ex.level%2?-ey:ey,ez);for(;;){if(eB>ex.from&&eB<ex.to){return eB}if(eB==ex.from||eB==ex.to){if(aj(eA,eB)==eC){return eB}ex=eA[eC+=ey];return(ey>0)==ex.level%2?ex.to:ex.from}else{ex=eA[eC+=ey];if(!ex){return null}if((ey>0)==ex.level%2){eB=dI(ew,ex.to,-1,ez)}else{eB=dI(ew,ex.from,1,ez)}}}}function R(ew,eA,ex,ey){var ez=eA+ex;if(ey){while(ez>0&&dV(ew.text.charAt(ez))){ez+=ex}}return ez<0||ez>ew.text.length?null:ez}var aM=(function(){var eC="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLL";var eA="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmmrrrrrrrrrrrrrrrrrr";function ez(eF){if(eF<=255){return eC.charAt(eF)}else{if(1424<=eF&&eF<=1524){return"R"}else{if(1536<=eF&&eF<=1791){return eA.charAt(eF-1536)}else{if(1792<=eF&&eF<=2220){return"r"}else{return"L"}}}}}var ew=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;var eE=/[stwN]/,ey=/[LRr]/,ex=/[Lb1n]/,eB=/[1n]/;var eD="L";return function(eP){if(!ew.test(eP)){return false}var eV=eP.length,eL=[];for(var eU=0,eH;eU<eV;++eU){eL.push(eH=ez(eP.charCodeAt(eU)))}for(var eU=0,eO=eD;eU<eV;++eU){var eH=eL[eU];if(eH=="m"){eL[eU]=eO}else{eO=eH}}for(var eU=0,eF=eD;eU<eV;++eU){var eH=eL[eU];if(eH=="1"&&eF=="r"){eL[eU]="n"}else{if(ey.test(eH)){eF=eH;if(eH=="r"){eL[eU]="R"}}}}for(var eU=1,eO=eL[0];eU<eV-1;++eU){var eH=eL[eU];if(eH=="+"&&eO=="1"&&eL[eU+1]=="1"){eL[eU]="1"}else{if(eH==","&&eO==eL[eU+1]&&(eO=="1"||eO=="n")){eL[eU]=eO}}eO=eH}for(var eU=0;eU<eV;++eU){var eH=eL[eU];if(eH==","){eL[eU]="N"}else{if(eH=="%"){for(var eI=eU+1;eI<eV&&eL[eI]=="%";++eI){}var eW=(eU&&eL[eU-1]=="!")||(eI<eV&&eL[eI]=="1")?"1":"N";for(var eS=eU;eS<eI;++eS){eL[eS]=eW}eU=eI-1}}}for(var eU=0,eF=eD;eU<eV;++eU){var eH=eL[eU];if(eF=="L"&&eH=="1"){eL[eU]="L"}else{if(ey.test(eH)){eF=eH}}}for(var eU=0;eU<eV;++eU){if(eE.test(eL[eU])){for(var eI=eU+1;eI<eV&&eE.test(eL[eI]);++eI){}var eM=(eU?eL[eU-1]:eD)=="L";var eG=(eI<eV?eL[eI]:eD)=="L";var eW=eM||eG?"L":"R";for(var eS=eU;eS<eI;++eS){eL[eS]=eW}eU=eI-1}}var eT=[],eQ;for(var eU=0;eU<eV;){if(ex.test(eL[eU])){var eJ=eU;for(++eU;eU<eV&&ex.test(eL[eU]);++eU){}eT.push({from:eJ,to:eU,level:0})}else{var eK=eU,eN=eT.length;for(++eU;eU<eV&&eL[eU]!="L";++eU){}for(var eS=eK;eS<eU;){if(eB.test(eL[eS])){if(eK<eS){eT.splice(eN,0,{from:eK,to:eS,level:1})}var eR=eS;for(++eS;eS<eU&&eB.test(eL[eS]);++eS){}eT.splice(eN,0,{from:eR,to:eS,level:2});eK=eS}else{++eS}}if(eK<eU){eT.splice(eN,0,{from:eK,to:eU,level:1})}}}if(eT[0].level==1&&(eQ=eP.match(/^\s+/))){eT[0].from=eQ[0].length;eT.unshift({from:0,to:eQ[0].length,level:0})}if(d7(eT).level==1&&(eQ=eP.match(/\s+$/))){d7(eT).to-=eQ[0].length;eT.push({from:eV-eQ[0].length,to:eV,level:0})}if(eT[0].level!=d7(eT).level){eT.push({from:eV,to:eV,level:eT[0].level})}return eT}})();B.version="3.21.0";return B})();
3
+ // CodeMirror XML.
4
+ CodeMirror.defineMode("xml",function(w,j){var p=w.indentUnit;var v=j.multilineTagIndentFactor||1;var b=j.multilineTagIndentPastTag||true;var u=j.htmlMode?{autoSelfClosers:{area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true},implicitlyClosed:{dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},contextGrabbers:{dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}},doNotIndent:{pre:true},allowUnquoted:true,allowMissing:true}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false,allowMissing:false};var a=j.alignCDATA;var d,e,f;function m(E,D){function B(G){D.tokenize=G;return G(E,D)}var C=E.next();if(C=="<"){if(E.eat("!")){if(E.eat("[")){if(E.match("CDATA[")){return B(t("atom","]]>"))}else{return null}}else{if(E.match("--")){return B(t("comment","-->"))}else{if(E.match("DOCTYPE",true,true)){E.eatWhile(/[\w\._\-]/);return B(x(1))}else{return null}}}}else{if(E.eat("?")){E.eatWhile(/[\w\._\-]/);D.tokenize=t("meta","?>");return"meta"}else{var z=E.eat("/");d="";var F;while((F=E.eat(/[^\s\u00a0=<>\"\'\/?]/))){d+=F}if(!d){return"tag error"}e=z?"closeTag":"openTag";D.tokenize=l;return"tag"}}}else{if(C=="&"){var A;if(E.eat("#")){if(E.eat("x")){A=E.eatWhile(/[a-fA-F\d]/)&&E.eat(";")}else{A=E.eatWhile(/[\d]/)&&E.eat(";")}}else{A=E.eatWhile(/[\w\.\-:]/)&&E.eat(";")}return A?"atom":"error"}else{E.eatWhile(/[^&<]/);return null}}}function l(C,B){var A=C.next();if(A==">"||(A=="/"&&C.eat(">"))){B.tokenize=m;e=A==">"?"endTag":"selfcloseTag";return"tag"}else{if(A=="="){e="equals";return null}else{if(A=="<"){B.tokenize=m;B.state=k;B.tagName=B.tagStart=null;var z=B.tokenize(C,B);return z?z+" error":"error"}else{if(/[\'\"]/.test(A)){B.tokenize=i(A);B.stringStartCol=C.column();return B.tokenize(C,B)}else{C.eatWhile(/[^\s\u00a0=<>\"\']/);return"word"}}}}}function i(z){var A=function(C,B){while(!C.eol()){if(C.next()==z){B.tokenize=l;break}}return"string"};A.isInAttribute=true;return A}function t(A,z){return function(C,B){while(!C.eol()){if(C.match(z)){B.tokenize=m;break}C.next()}return A}}function x(z){return function(C,B){var A;while((A=C.next())!=null){if(A=="<"){B.tokenize=x(z+1);return B.tokenize(C,B)}else{if(A==">"){if(z==1){B.tokenize=m;break}else{B.tokenize=x(z-1);return B.tokenize(C,B)}}}}return"meta"}}function q(A,z,B){this.prev=A.context;this.tagName=z;this.indent=A.indented;this.startOfLine=B;if(u.doNotIndent.hasOwnProperty(z)||(A.context&&A.context.noIndent)){this.noIndent=true}}function s(z){if(z.context){z.context=z.context.prev}}function o(B,A){var z;while(true){if(!B.context){return}z=B.context.tagName.toLowerCase();if(!u.contextGrabbers.hasOwnProperty(z)||!u.contextGrabbers[z].hasOwnProperty(A)){return}s(B)}}function k(z,C,B){if(z=="openTag"){B.tagName=d;B.tagStart=C.column();return c}else{if(z=="closeTag"){var A=false;if(B.context){if(B.context.tagName!=d){if(u.implicitlyClosed.hasOwnProperty(B.context.tagName.toLowerCase())){s(B)}A=!B.context||B.context.tagName!=d}}else{A=true}if(A){f="error"}return A?y:r}else{return k}}}function r(A,z,B){if(A!="endTag"){f="error";return r}s(B);return k}function y(z,B,A){f="error";return r(z,B,A)}function c(C,A,D){if(C=="word"){f="attribute";return h}else{if(C=="endTag"||C=="selfcloseTag"){var B=D.tagName,z=D.tagStart;D.tagName=D.tagStart=null;if(C=="selfcloseTag"||u.autoSelfClosers.hasOwnProperty(B.toLowerCase())){o(D,B.toLowerCase())}else{o(D,B.toLowerCase());D.context=new q(D,B,z==D.indented)}return k}}f="error";return c}function h(z,B,A){if(z=="equals"){return n}if(!u.allowMissing){f="error"}return c(z,B,A)}function n(z,B,A){if(z=="string"){return g}if(z=="word"&&u.allowUnquoted){f="string";return c}f="error";return c(z,B,A)}function g(z,B,A){if(z=="string"){return g}return c(z,B,A)}return{startState:function(){return{tokenize:m,state:k,indented:0,tagName:null,tagStart:null,context:null}},token:function(B,A){if(!A.tagName&&B.sol()){A.indented=B.indentation()}if(B.eatSpace()){return null}d=e=null;var z=A.tokenize(B,A);if((z||e)&&z!="comment"){f=null;A.state=A.state(e||z,B,A);if(f){z=f=="error"?z+" error":f}}return z},indent:function(C,z,B){var A=C.context;if(C.tokenize.isInAttribute){return C.stringStartCol+1}if(A&&A.noIndent){return CodeMirror.Pass}if(C.tokenize!=l&&C.tokenize!=m){return B?B.match(/^(\s*)/)[0].length:0}if(C.tagName){if(b){return C.tagStart+C.tagName.length+2}else{return C.tagStart+p*v}}if(a&&/<!\[CDATA\[/.test(z)){return 0}if(A&&/^<\//.test(z)){A=A.prev}while(A&&!A.startOfLine){A=A.prev}if(A){return A.indent+p}else{return 0}},electricChars:"/",blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:j.htmlMode?"html":"xml",helperType:j.htmlMode?"html":"xml"}});CodeMirror.defineMIME("text/xml","xml");CodeMirror.defineMIME("application/xml","xml");if(!CodeMirror.mimeModes.hasOwnProperty("text/html")){CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:true})};
5
+ // CodeMirror JS.
6
+ CodeMirror.defineMode("javascript",function(W,ag){var i=W.indentUnit;var w=ag.statementIndent;var v=ag.json;var e=ag.typescript;var am=function(){function aJ(aL){return{type:aL,style:"keyword"}}var aE=aJ("keyword a"),aC=aJ("keyword b"),aB=aJ("keyword c");var aD=aJ("operator"),aH={type:"atom",style:"atom"};var aF={"if":aJ("if"),"while":aE,"with":aE,"else":aC,"do":aC,"try":aC,"finally":aC,"return":aB,"break":aB,"continue":aB,"new":aB,"delete":aB,"throw":aB,"debugger":aB,"var":aJ("var"),"const":aJ("var"),let:aJ("var"),"function":aJ("function"),"catch":aJ("catch"),"for":aJ("for"),"switch":aJ("switch"),"case":aJ("case"),"default":aJ("default"),"in":aD,"typeof":aD,"instanceof":aD,"true":aH,"false":aH,"null":aH,"undefined":aH,"NaN":aH,"Infinity":aH,"this":aJ("this"),module:aJ("module"),"class":aJ("class"),"super":aJ("atom"),yield:aB,"export":aJ("export"),"import":aJ("import"),"extends":aB};if(e){var aK={type:"variable",style:"variable-3"};var aG={"interface":aJ("interface"),"extends":aJ("extends"),constructor:aJ("constructor"),"public":aJ("public"),"private":aJ("private"),"protected":aJ("protected"),"static":aJ("static"),string:aK,number:aK,bool:aK,any:aK};for(var aI in aG){aF[aI]=aG[aI]}}return aF}();var L=/[+\-*&%=<>!?|~^]/;function B(aE){var aC=false,aB,aD=false;while((aB=aE.next())!=null){if(!aC){if(aB=="/"&&!aD){return}if(aB=="["){aD=true}else{if(aD&&aB=="]"){aD=false}}}aC=!aC&&aB=="\\"}}var O,C;function H(aD,aC,aB){O=aD;C=aB;return aC}function Q(aF,aD){var aB=aF.next();if(aB=='"'||aB=="'"){aD.tokenize=N(aB);return aD.tokenize(aF,aD)}else{if(aB=="."&&aF.match(/^\d+(?:[eE][+\-]?\d+)?/)){return H("number","number")}else{if(aB=="."&&aF.match("..")){return H("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(aB)){return H(aB)}else{if(aB=="="&&aF.eat(">")){return H("=>","operator")}else{if(aB=="0"&&aF.eat(/x/i)){aF.eatWhile(/[\da-f]/i);return H("number","number")}else{if(/\d/.test(aB)){aF.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return H("number","number")}else{if(aB=="/"){if(aF.eat("*")){aD.tokenize=at;return at(aF,aD)}else{if(aF.eat("/")){aF.skipToEnd();return H("comment","comment")}else{if(aD.lastType=="operator"||aD.lastType=="keyword c"||aD.lastType=="sof"||/^[\[{}\(,;:]$/.test(aD.lastType)){B(aF);aF.eatWhile(/[gimy]/);return H("regexp","string-2")}else{aF.eatWhile(L);return H("operator","operator",aF.current())}}}}else{if(aB=="`"){aD.tokenize=au;return au(aF,aD)}else{if(aB=="#"){aF.skipToEnd();return H("error","error")}else{if(L.test(aB)){aF.eatWhile(L);return H("operator","operator",aF.current())}else{aF.eatWhile(/[\w\$_]/);var aE=aF.current(),aC=am.propertyIsEnumerable(aE)&&am[aE];return(aC&&aD.lastType!=".")?H(aC.type,aC.style,aE):H("variable","variable",aE)}}}}}}}}}}}}function N(aB){return function(aF,aD){var aE=false,aC;while((aC=aF.next())!=null){if(aC==aB&&!aE){break}aE=!aE&&aC=="\\"}if(!aE){aD.tokenize=Q}return H("string","string")}}function at(aE,aD){var aB=false,aC;while(aC=aE.next()){if(aC=="/"&&aB){aD.tokenize=Q;break}aB=(aC=="*")}return H("comment","comment")}function au(aE,aC){var aD=false,aB;while((aB=aE.next())!=null){if(!aD&&(aB=="`"||aB=="$"&&aE.eat("{"))){aC.tokenize=Q;break}aD=!aD&&aB=="\\"}return H("quasi","string-2",aE.current())}var j="([{}])";function ap(aH,aE){if(aE.fatArrowAt){aE.fatArrowAt=null}var aD=aH.string.indexOf("=>",aH.start);if(aD<0){return}var aG=0,aC=false;for(var aI=aD-1;aI>=0;--aI){var aB=aH.string.charAt(aI);var aF=j.indexOf(aB);if(aF>=0&&aF<3){if(!aG){++aI;break}if(--aG==0){break}}else{if(aF>=3&&aF<6){++aG}else{if(/[$\w]/.test(aB)){aC=true}else{if(aC&&!aG){++aI;break}}}}}if(aC&&!aG){aE.fatArrowAt=aI}}var a={atom:true,number:true,variable:true,string:true,regexp:true,"this":true};function F(aG,aC,aB,aF,aD,aE){this.indented=aG;this.column=aC;this.type=aB;this.prev=aD;this.info=aE;if(aF!=null){this.align=aF}}function o(aE,aD){for(var aC=aE.localVars;aC;aC=aC.next){if(aC.name==aD){return true}}for(var aB=aE.context;aB;aB=aB.prev){for(var aC=aB.vars;aC;aC=aC.next){if(aC.name==aD){return true}}}}function d(aF,aC,aB,aE,aG){var aH=aF.cc;z.state=aF;z.stream=aG;z.marked=null,z.cc=aH;if(!aF.lexical.hasOwnProperty("align")){aF.lexical.align=true}while(true){var aD=aH.length?aH.pop():v?ak:az;if(aD(aB,aE)){while(aH.length&&aH[aH.length-1].lex){aH.pop()()}if(z.marked){return z.marked}if(aB=="variable"&&o(aF,aE)){return"variable-2"}return aC}}}var z={state:null,column:null,marked:null,cc:null};function X(){for(var aB=arguments.length-1;aB>=0;aB--){z.cc.push(arguments[aB])}}function ab(){X.apply(null,arguments);return true}function ao(aC){function aB(aF){for(var aE=aF;aE;aE=aE.next){if(aE.name==aC){return true}}return false}var aD=z.state;if(aD.context){z.marked="def";if(aB(aD.localVars)){return}aD.localVars={name:aC,next:aD.localVars}}else{if(aB(aD.globalVars)){return}if(ag.globalVars){aD.globalVars={name:aC,next:aD.globalVars}}}}var m={name:"this",next:{name:"arguments"}};function s(){z.state.context={prev:z.state.context,vars:z.state.localVars};z.state.localVars=m}function t(){z.state.localVars=z.state.context.vars;z.state.context=z.state.context.prev}function ax(aC,aD){var aB=function(){var aF=z.state,aE=aF.indented;if(aF.lexical.type=="stat"){aE=aF.lexical.indented}aF.lexical=new F(aE,z.stream.column(),aC,null,aF.lexical,aD)};aB.lex=true;return aB}function f(){var aB=z.state;if(aB.lexical.prev){if(aB.lexical.type==")"){aB.indented=aB.lexical.indented}aB.lexical=aB.lexical.prev}}f.lex=true;function n(aB){return function(aC){if(aC==aB){return ab()}else{if(aB==";"){return X()}else{return ab(arguments.callee)}}}}function az(aB,aC){if(aB=="var"){return ab(ax("vardef",aC.length),b,n(";"),f)}if(aB=="keyword a"){return ab(ax("form"),ak,az,f)}if(aB=="keyword b"){return ab(ax("form"),az,f)}if(aB=="{"){return ab(ax("}"),u,f)}if(aB==";"){return ab()}if(aB=="if"){return ab(ax("form"),ak,az,f,c)}if(aB=="function"){return ab(I)}if(aB=="for"){return ab(ax("form"),q,az,f)}if(aB=="variable"){return ab(ax("stat"),aA)}if(aB=="switch"){return ab(ax("form"),ak,ax("}","switch"),n("{"),u,f,f)}if(aB=="case"){return ab(ak,n(":"))}if(aB=="default"){return ab(n(":"))}if(aB=="catch"){return ab(ax("form"),s,n("("),ac,n(")"),az,f,t)}if(aB=="module"){return ab(ax("form"),s,D,t,f)}if(aB=="class"){return ab(ax("form"),S,R,f)}if(aB=="export"){return ab(ax("form"),ay,f)}if(aB=="import"){return ab(ax("form"),ad,f)}return X(ax("stat"),ak,n(";"),f)}function ak(aB){return V(aB,false)}function aw(aB){return V(aB,true)}function V(aC,aE){if(z.state.fatArrowAt==z.stream.start){var aB=aE?J:T;if(aC=="("){return ab(s,ax(")"),an(g,")"),f,n("=>"),aB,t)}else{if(aC=="variable"){return X(s,g,n("=>"),aB,t)}}}var aD=aE?h:Y;if(a.hasOwnProperty(aC)){return ab(aD)}if(aC=="function"){return ab(I)}if(aC=="keyword c"){return ab(aE?ah:af)}if(aC=="("){return ab(ax(")"),af,ar,n(")"),f,aD)}if(aC=="operator"||aC=="spread"){return ab(aE?aw:ak)}if(aC=="["){return ab(ax("]"),k,f,aD)}if(aC=="{"){return aq(p,"}",null,aD)}return ab()}function af(aB){if(aB.match(/[;\}\)\],]/)){return X()}return X(ak)}function ah(aB){if(aB.match(/[;\}\)\],]/)){return X()}return X(aw)}function Y(aB,aC){if(aB==","){return ab(ak)}return h(aB,aC,false)}function h(aB,aD,aF){var aC=aF==false?Y:h;var aE=aF==false?ak:aw;if(aD=="=>"){return ab(s,aF?J:T,t)}if(aB=="operator"){if(/\+\+|--/.test(aD)){return ab(aC)}if(aD=="?"){return ab(ak,n(":"),aE)}return ab(aE)}if(aB=="quasi"){z.cc.push(aC);return M(aD)}if(aB==";"){return}if(aB=="("){return aq(aw,")","call",aC)}if(aB=="."){return ab(ai,aC)}if(aB=="["){return ab(ax("]"),af,n("]"),f,aC)}}function M(aB){if(aB.slice(aB.length-2)!="${"){return ab()}return ab(ak,l)}function l(aB){if(aB=="}"){z.marked="string-2";z.state.tokenize=au;return ab()}}function T(aB){ap(z.stream,z.state);if(aB=="{"){return X(az)}return X(ak)}function J(aB){ap(z.stream,z.state);if(aB=="{"){return X(az)}return X(aw)}function aA(aB){if(aB==":"){return ab(f,az)}return X(Y,n(";"),f)}function ai(aB){if(aB=="variable"){z.marked="property";return ab()}}function p(aB,aC){if(aB=="variable"){z.marked="property";if(aC=="get"||aC=="set"){return ab(E)}}else{if(aB=="number"||aB=="string"){z.marked=aB+" property"}else{if(aB=="["){return ab(ak,n("]"),G)}}}if(a.hasOwnProperty(aB)){return ab(G)}}function E(aB){if(aB!="variable"){return X(G)}z.marked="property";return ab(I)}function G(aB){if(aB==":"){return ab(aw)}if(aB=="("){return X(I)}}function an(aD,aB){function aC(aF){if(aF==","){var aE=z.state.lexical;if(aE.info=="call"){aE.pos=(aE.pos||0)+1}return ab(aD,aC)}if(aF==aB){return ab()}return ab(n(aB))}return function(aE){if(aE==aB){return ab()}return X(aD,aC)}}function aq(aE,aB,aD){for(var aC=3;aC<arguments.length;aC++){z.cc.push(arguments[aC])}return ab(ax(aB,aD),an(aE,aB),f)}function u(aB){if(aB=="}"){return ab()}return X(az,u)}function P(aB){if(e&&aB==":"){return ab(aa)}}function aa(aB){if(aB=="variable"){z.marked="variable-3";return ab()}}function b(){return X(g,P,Z,U)}function g(aB,aC){if(aB=="variable"){ao(aC);return ab()}if(aB=="["){return aq(g,"]")}if(aB=="{"){return aq(av,"}")}}function av(aB,aC){if(aB=="variable"&&!z.stream.match(/^\s*:/,false)){ao(aC);return ab(Z)}if(aB=="variable"){z.marked="property"}return ab(n(":"),g,Z)}function Z(aB,aC){if(aC=="="){return ab(aw)}}function U(aB){if(aB==","){return ab(b)}}function c(aB,aC){if(aB=="keyword b"&&aC=="else"){return ab(ax("form"),az,f)}}function q(aB){if(aB=="("){return ab(ax(")"),A,n(")"),f)}}function A(aB){if(aB=="var"){return ab(b,n(";"),y)}if(aB==";"){return ab(y)}if(aB=="variable"){return ab(r)}return X(ak,n(";"),y)}function r(aB,aC){if(aC=="in"||aC=="of"){z.marked="keyword";return ab(ak)}return ab(Y,y)}function y(aB,aC){if(aB==";"){return ab(x)}if(aC=="in"||aC=="of"){z.marked="keyword";return ab(ak)}return X(ak,n(";"),x)}function x(aB){if(aB!=")"){ab(ak)}}function I(aB,aC){if(aC=="*"){z.marked="keyword";return ab(I)}if(aB=="variable"){ao(aC);return ab(I)}if(aB=="("){return ab(s,ax(")"),an(ac,")"),f,az,t)}}function ac(aB){if(aB=="spread"){return ab(ac)}return X(g,P)}function S(aB,aC){if(aB=="variable"){ao(aC);return ab(K)}}function K(aB,aC){if(aC=="extends"){return ab(ak)}}function R(aB){if(aB=="{"){return aq(p,"}")}}function D(aB,aC){if(aB=="string"){return ab(az)}if(aB=="variable"){ao(aC);return ab(ae)}}function ay(aB,aC){if(aC=="*"){z.marked="keyword";return ab(ae,n(";"))}if(aC=="default"){z.marked="keyword";return ab(ak,n(";"))}return X(az)}function ad(aB){if(aB=="string"){return ab()}return X(al,ae)}function al(aB,aC){if(aB=="{"){return aq(al,"}")}if(aB=="variable"){ao(aC)}return ab()}function ae(aB,aC){if(aC=="from"){z.marked="keyword";return ab(ak)}}function k(aB){if(aB=="]"){return ab()}return X(aw,aj)}function aj(aB){if(aB=="for"){return X(ar,n("]"))}if(aB==","){return ab(an(aw,"]"))}return X(an(aw,"]"))}function ar(aB){if(aB=="for"){return ab(q,ar)}if(aB=="if"){return ab(ak,ar)}}return{startState:function(aC){var aB={tokenize:Q,lastType:"sof",cc:[],lexical:new F((aC||0)-i,0,"block",false),localVars:ag.localVars,context:ag.localVars&&{vars:ag.localVars},indented:0};if(ag.globalVars){aB.globalVars=ag.globalVars}return aB},token:function(aD,aC){if(aD.sol()){if(!aC.lexical.hasOwnProperty("align")){aC.lexical.align=false}aC.indented=aD.indentation();ap(aD,aC)}if(aC.tokenize!=at&&aD.eatSpace()){return null}var aB=aC.tokenize(aD,aC);if(O=="comment"){return aB}aC.lastType=O=="operator"&&(C=="++"||C=="--")?"incdec":O;return d(aC,aB,O,C,aD)},indent:function(aH,aB){if(aH.tokenize==at){return CodeMirror.Pass}if(aH.tokenize!=Q){return 0}var aG=aB&&aB.charAt(0),aE=aH.lexical;for(var aD=aH.cc.length-1;aD>=0;--aD){var aI=aH.cc[aD];if(aI==f){aE=aE.prev}else{if(aI!=c){break}}}if(aE.type=="stat"&&aG=="}"){aE=aE.prev}if(w&&aE.type==")"&&aE.prev.type=="stat"){aE=aE.prev}var aF=aE.type,aC=aG==aF;if(aF=="vardef"){return aE.indented+(aH.lastType=="operator"||aH.lastType==","?aE.info+1:0)}else{if(aF=="form"&&aG=="{"){return aE.indented}else{if(aF=="form"){return aE.indented+i}else{if(aF=="stat"){return aE.indented+(aH.lastType=="operator"||aH.lastType==","?w||i:0)}else{if(aE.info=="switch"&&!aC&&ag.doubleIndentSwitch!=false){return aE.indented+(/^(?:case|default)\b/.test(aB)?i:2*i)}else{if(aE.align){return aE.column+(aC?0:1)}else{return aE.indented+(aC?0:i)}}}}}}},electricChars:":{}",blockCommentStart:v?null:"/*",blockCommentEnd:v?null:"*/",lineComment:v?null:"//",fold:"brace",helperType:v?"json":"javascript",jsonMode:v}});CodeMirror.defineMIME("text/javascript","javascript");CodeMirror.defineMIME("text/ecmascript","javascript");CodeMirror.defineMIME("application/javascript","javascript");CodeMirror.defineMIME("application/ecmascript","javascript");CodeMirror.defineMIME("application/json",{name:"javascript",json:true});CodeMirror.defineMIME("application/x-json",{name:"javascript",json:true});CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:true});CodeMirror.defineMIME("application/typescript",{name:"javascript",typescript:true});
7
+ // CodeMirror CSS.
8
+ CodeMirror.defineMode("css",function(u,i){if(!i.propertyKeywords){i=CodeMirror.resolveMode("text/css")}var o=u.indentUnit,b=i.tokenHooks,t=i.mediaTypes||{},k=i.mediaFeatures||{},h=i.propertyKeywords||{},n=i.colorKeywords||{},q=i.valueKeywords||{},d=i.fontProperties||{},l=i.allowNested;var c,m;function v(y,z){c=z;return y}function x(B,A){var z=B.next();if(b[z]){var y=b[z](B,A);if(y!==false){return y}}if(z=="@"){B.eatWhile(/[\w\\\-]/);return v("def",B.current())}else{if(z=="="||(z=="~"||z=="|")&&B.eat("=")){return v(null,"compare")}else{if(z=='"'||z=="'"){A.tokenize=j(z);return A.tokenize(B,A)}else{if(z=="#"){B.eatWhile(/[\w\\\-]/);return v("atom","hash")}else{if(z=="!"){B.match(/^\s*\w*/);return v("keyword","important")}else{if(/\d/.test(z)||z=="."&&B.eat(/\d/)){B.eatWhile(/[\w.%]/);return v("number","unit")}else{if(z==="-"){if(/[\d.]/.test(B.peek())){B.eatWhile(/[\w.%]/);return v("number","unit")}else{if(B.match(/^[^-]+-/)){return v("meta","meta")}}}else{if(/[,+>*\/]/.test(z)){return v(null,"select-op")}else{if(z=="."&&B.match(/^-?[_a-z][_a-z0-9-]*/i)){return v("qualifier","qualifier")}else{if(/[:;{}\[\]\(\)]/.test(z)){return v(null,z)}else{if(z=="u"&&B.match("rl(")){B.backUp(1);A.tokenize=w;return v("property","word")}else{if(/[\w\\\-]/.test(z)){B.eatWhile(/[\w\\\-]/);return v("property","word")}else{return v(null,null)}}}}}}}}}}}}}function j(y){return function(C,A){var B=false,z;while((z=C.next())!=null){if(z==y&&!B){if(y==")"){C.backUp(1)}break}B=!B&&z=="\\"}if(z==y||!B&&y!=")"){A.tokenize=null}return v("string","string")}}function w(z,y){z.next();if(!z.match(/\s*[\"\']/,false)){y.tokenize=j(")")}else{y.tokenize=null}return v(null,"(")}function p(z,y,A){this.type=z;this.indent=y;this.prev=A}function f(z,A,y){z.context=new p(y,A.indentation()+o,z.context);return y}function r(y){y.context=y.context.prev;return y.context.type}function a(y,A,z){return e[z.context.type](y,A,z)}function s(z,B,A,C){for(var y=C||1;y>0;y--){A.context=A.context.prev}return a(z,B,A)}function g(z){var y=z.current().toLowerCase();if(q.hasOwnProperty(y)){m="atom"}else{if(n.hasOwnProperty(y)){m="keyword"}else{m="variable"}}}var e={};e.top=function(y,A,z){if(y=="{"){return f(z,A,"block")}else{if(y=="}"&&z.context.prev){return r(z)}else{if(y=="@media"){return f(z,A,"media")}else{if(y=="@font-face"){return"font_face_before"}else{if(y&&y.charAt(0)=="@"){return f(z,A,"at")}else{if(y=="hash"){m="builtin"}else{if(y=="word"){m="tag"}else{if(y=="variable-definition"){return"maybeprop"}else{if(y=="interpolation"){return f(z,A,"interpolation")}else{if(y==":"){return"pseudo"}else{if(l&&y=="("){return f(z,A,"params")}}}}}}}}}}}return z.context.type};e.block=function(y,A,z){if(y=="word"){if(h.hasOwnProperty(A.current().toLowerCase())){m="property";return"maybeprop"}else{if(l){m=A.match(/^\s*:/,false)?"property":"tag";return"block"}else{m+=" error";return"maybeprop"}}}else{if(y=="meta"){return"block"}else{if(!l&&(y=="hash"||y=="qualifier")){m="error";return"block"}else{return e.top(y,A,z)}}}};e.maybeprop=function(y,A,z){if(y==":"){return f(z,A,"prop")}return a(y,A,z)};e.prop=function(y,A,z){if(y==";"){return r(z)}if(y=="{"&&l){return f(z,A,"propBlock")}if(y=="}"||y=="{"){return s(y,A,z)}if(y=="("){return f(z,A,"parens")}if(y=="hash"&&!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(A.current())){m+=" error"}else{if(y=="word"){g(A)}else{if(y=="interpolation"){return f(z,A,"interpolation")}}}return"prop"};e.propBlock=function(z,y,A){if(z=="}"){return r(A)}if(z=="word"){m="property";return"maybeprop"}return A.context.type};e.parens=function(y,A,z){if(y=="{"||y=="}"){return s(y,A,z)}if(y==")"){return r(z)}return"parens"};e.pseudo=function(y,A,z){if(y=="word"){m="variable-3";return z.context.type}return a(y,A,z)};e.media=function(y,B,z){if(y=="("){return f(z,B,"media_parens")}if(y=="}"){return s(y,B,z)}if(y=="{"){return r(z)&&f(z,B,l?"block":"top")}if(y=="word"){var A=B.current().toLowerCase();if(A=="only"||A=="not"||A=="and"){m="keyword"}else{if(t.hasOwnProperty(A)){m="attribute"}else{if(k.hasOwnProperty(A)){m="property"}else{m="error"}}}}return z.context.type};e.media_parens=function(y,A,z){if(y==")"){return r(z)}if(y=="{"||y=="}"){return s(y,A,z,2)}return e.media(y,A,z)};e.font_face_before=function(y,A,z){if(y=="{"){return f(z,A,"font_face")}return a(y,A,z)};e.font_face=function(y,A,z){if(y=="}"){return r(z)}if(y=="word"){if(!d.hasOwnProperty(A.current().toLowerCase())){m="error"}else{m="property"}return"maybeprop"}return"font_face"};e.at=function(y,A,z){if(y==";"){return r(z)}if(y=="{"||y=="}"){return s(y,A,z)}if(y=="word"){m="tag"}else{if(y=="hash"){m="builtin"}}return"at"};e.interpolation=function(y,A,z){if(y=="}"){return r(z)}if(y=="{"||y==";"){return s(y,A,z)}if(y!="variable"){m="error"}return"interpolation"};e.params=function(y,A,z){if(y==")"){return r(z)}if(y=="{"||y=="}"){return s(y,A,z)}if(y=="word"){g(A)}return"params"};return{startState:function(y){return{tokenize:null,state:"top",context:new p("top",y||0,null)}},token:function(A,z){if(!z.tokenize&&A.eatSpace()){return null}var y=(z.tokenize||x)(A,z);if(y&&typeof y=="object"){c=y[1];y=y[0]}m=y;z.state=e[z.state](c,A,z);return m},indent:function(C,A){var z=C.context,B=A&&A.charAt(0);var y=z.indent;if(z.prev&&(B=="}"&&(z.type=="block"||z.type=="top"||z.type=="interpolation"||z.type=="font_face")||B==")"&&(z.type=="parens"||z.type=="params"||z.type=="media_parens")||B=="{"&&(z.type=="at"||z.type=="media"))){y=z.indent-o;z=z.prev}return y},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});(function(){function d(s){var r={};for(var q=0;q<s.length;++q){r[s[q]]=true}return r}var m=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],f=d(m);var g=["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"],l=d(g);var e=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","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","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-cell","grid-column","grid-column-align","grid-column-sizing","grid-column-span","grid-columns","grid-flow","grid-row","grid-row-align","grid-row-sizing","grid-row-span","grid-rows","grid-template","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","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","marker-offset","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","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","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-inside","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","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","word-break","word-spacing","word-wrap","z-index","zoom","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-profile","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","kerning","text-anchor","writing-mode"],n=d(e);var k=["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","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"],o=d(k);var b=["above","absolute","activeborder","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","auto","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","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","contain","content","content-box","context-menu","continuous","copy","cover","crop","cross","crosshair","currentcolor","cursive","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","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","ew-resize","expanded","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-table","inset","inside","intrinsic","invert","italic","justify","kannada","katakana","katakana-iroha","keep-all","khmer","landscape","lao","large","larger","left","level","lighter","line-through","linear","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","malayalam","match","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","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","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scroll","scrollbar","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","single","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","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","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","x-large","x-small","xor","xx-large","xx-small"],h=d(b);var j=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],a=d(j);var i=m.concat(g).concat(e).concat(k).concat(b);CodeMirror.registerHelper("hintWords","css",i);function p(t,s){var q=false,r;while((r=t.next())!=null){if(q&&r=="/"){s.tokenize=null;break}q=(r=="*")}return["comment","comment"]}function c(r,q){if(r.skipTo("-->")){r.match("-->");q.tokenize=null}else{r.skipToEnd()}return["comment","comment"]}CodeMirror.defineMIME("text/css",{mediaTypes:f,mediaFeatures:l,propertyKeywords:n,colorKeywords:o,valueKeywords:h,fontProperties:a,tokenHooks:{"<":function(r,q){if(!r.match("!--")){return false}q.tokenize=c;return c(r,q)},"/":function(r,q){if(!r.eat("*")){return false}q.tokenize=p;return p(r,q)}},name:"css"});CodeMirror.defineMIME("text/x-scss",{mediaTypes:f,mediaFeatures:l,propertyKeywords:n,colorKeywords:o,valueKeywords:h,fontProperties:a,allowNested:true,tokenHooks:{"/":function(r,q){if(r.eat("/")){r.skipToEnd();return["comment","comment"]}else{if(r.eat("*")){q.tokenize=p;return p(r,q)}else{return["operator","operator"]}}},":":function(q){if(q.match(/\s*{/)){return[null,"{"]}return false},"$":function(q){q.match(/^[\w-]+/);if(q.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"#":function(q){if(!q.eat("{")){return false}return[null,"interpolation"]}},name:"css",helperType:"scss"});CodeMirror.defineMIME("text/x-less",{mediaTypes:f,mediaFeatures:l,propertyKeywords:n,colorKeywords:o,valueKeywords:h,fontProperties:a,allowNested:true,tokenHooks:{"/":function(r,q){if(r.eat("/")){r.skipToEnd();return["comment","comment"]}else{if(r.eat("*")){q.tokenize=p;return p(r,q)}else{return["operator","operator"]}}},"@":function(q){if(q.match(/^(charset|document|font-face|import|keyframes|media|namespace|page|supports)\b/,false)){return false}q.eatWhile(/[\w\\\-]/);if(q.match(/^\s*:/,false)){return["variable-2","variable-definition"]}return["variable-2","variable"]},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"})})();
9
+ // CodeMirror HTML.
10
+ CodeMirror.defineMode("htmlmixed",function(b,c){var a=CodeMirror.getMode(b,{name:"xml",htmlMode:true});var m=CodeMirror.getMode(b,"css");var k=[],j=c&&c.scriptTypes;k.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:CodeMirror.getMode(b,"javascript")});if(j){for(var d=0;d<j.length;++d){var h=j[d];k.push({matches:h.matches,mode:h.mode&&CodeMirror.getMode(b,h.mode)})}}k.push({matches:/./,mode:CodeMirror.getMode(b,"text/plain")});function e(s,q){var o=q.htmlState.tagName;var p=a.token(s,q.htmlState);if(o=="script"&&/\btag\b/.test(p)&&s.current()==">"){var t=s.string.slice(Math.max(0,s.pos-100),s.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);t=t?t[1]:"";if(t&&/[\"\']/.test(t.charAt(0))){t=t.slice(1,t.length-1)}for(var n=0;n<k.length;++n){var r=k[n];if(typeof r.matches=="string"?t==r.matches:r.matches.test(t)){if(r.mode){q.token=l;q.localMode=r.mode;q.localState=r.mode.startState&&r.mode.startState(a.indent(q.htmlState,""))}break}}}else{if(o=="style"&&/\btag\b/.test(p)&&s.current()==">"){q.token=f;q.localMode=m;q.localState=m.startState(a.indent(q.htmlState,""))}}return p}function g(r,n,o){var q=r.current();var p=q.search(n),i;if(p>-1){r.backUp(q.length-p)}else{if(i=q.match(/<\/?$/)){r.backUp(q.length);if(!r.match(n,false)){r.match(q)}}}return o}function l(n,i){if(n.match(/^<\/\s*script\s*>/i,false)){i.token=e;i.localState=i.localMode=null;return e(n,i)}return g(n,/<\/\s*script\s*>/,i.localMode.token(n,i.localState))}function f(n,i){if(n.match(/^<\/\s*style\s*>/i,false)){i.token=e;i.localState=i.localMode=null;return e(n,i)}return g(n,/<\/\s*style\s*>/,m.token(n,i.localState))}return{startState:function(){var i=a.startState();return{token:e,localMode:null,localState:null,htmlState:i}},copyState:function(n){if(n.localState){var i=CodeMirror.copyState(n.localMode,n.localState)}return{token:n.token,localMode:n.localMode,localState:i,htmlState:CodeMirror.copyState(a,n.htmlState)}},token:function(n,i){return i.token(n,i)},indent:function(n,i){if(!n.localMode||/^\s*<\//.test(i)){return a.indent(n.htmlState,i)}else{if(n.localMode.indent){return n.localMode.indent(n.localState,i)}else{return CodeMirror.Pass}}},innerMode:function(i){return{state:i.localState||i.htmlState,mode:i.localMode||a}}}},"xml","javascript","css");CodeMirror.defineMIME("text/html","htmlmixed");
11
+ // CodeMirror PHP.
12
  (function(){function c(g){var e={},f=g.split(" ");for(var d=0;d<f.length;++d){e[f[d]]=true}return e}function a(d){return function(f,e){if(f.match(d)){e.tokenize=null}else{f.skipToEnd()}return"string"}}var b={name:"clike",keywords:c("abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally"),blockKeywords:c("catch do else elseif for foreach if switch try while finally"),atoms:c("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),builtin:c("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"),multiLineStrings:true,hooks:{"$":function(d){d.eatWhile(/[\w\$_]/);return"variable-2"},"<":function(e,d){if(e.match(/<</)){e.eatWhile(/[\w\.]/);d.tokenize=a(e.current().slice(3));return d.tokenize(e,d)}return false},"#":function(d){while(!d.eol()&&!d.match("?>",false)){d.next()}return"comment"},"/":function(d){if(d.eat("/")){while(!d.eol()&&!d.match("?>",false)){d.next()}return"comment"}return false}}};CodeMirror.defineMode("php",function(f,g){var h=CodeMirror.getMode(f,"text/html");var d=CodeMirror.getMode(f,b);function e(p,n){var l=n.curMode==d;if(p.sol()&&n.pending&&n.pending!='"'&&n.pending!="'"){n.pending=null}if(!l){if(p.match(/^<\?\w*/)){n.curMode=d;n.curState=n.php;return"meta"}if(n.pending=='"'||n.pending=="'"){while(!p.eol()&&p.next()!=n.pending){}var k="string"}else{if(n.pending&&p.pos<n.pending.end){p.pos=n.pending.end;var k=n.pending.style}else{var k=h.token(p,n.curState)}}if(n.pending){n.pending=null}var o=p.current(),j=o.search(/<\?/),i;if(j!=-1){if(k=="string"&&(i=o.match(/[\'\"]$/))&&!/\?>/.test(o)){n.pending=i[0]}else{n.pending={end:p.pos,style:k}}p.backUp(o.length-j)}return k}else{if(l&&n.php.tokenize==null&&p.match("?>")){n.curMode=h;n.curState=n.html;return"meta"}else{return d.token(p,n.curState)}}}return{startState:function(){var i=CodeMirror.startState(h),j=CodeMirror.startState(d);return{html:i,php:j,curMode:g.startOpen?d:h,curState:g.startOpen?j:i,pending:null}},copyState:function(l){var j=l.html,k=CodeMirror.copyState(h,j),n=l.php,i=CodeMirror.copyState(d,n),m;if(l.curMode==h){m=k}else{m=i}return{html:k,php:i,curMode:l.curMode,curState:m,pending:l.pending}},token:e,indent:function(j,i){if((j.curMode!=d&&/^\s*<\//.test(i))||(j.curMode==d&&/^\?>/.test(i))){return h.indent(j.html,i)}return j.curMode.indent(j.curState,i)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(i){return{state:i.curState,mode:i.curMode}}}},"htmlmixed","clike");CodeMirror.defineMIME("application/x-httpd-php","php");CodeMirror.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:true});CodeMirror.defineMIME("text/x-php",b)})();
assets/js/editor.js CHANGED
@@ -1,123 +1,124 @@
1
- /* ==========================================================
2
- * editor.js
3
- * http://soliloquywp.com/
4
- *
5
- * This file can be used by 3rd party plugins to integrate
6
- * with their custom field systems. It allows the selection
7
- * process to be standardized so that 3rd party plugins can
8
- * trigger modal selection windows and receive the corresponding
9
- * selected data objects.
10
- *
11
- * Using this file requires three actions for the 3rd party plugin.
12
- *
13
- * 1. The media modal HTML output needs to be inserted directly
14
- * after the option/dropdown/button that is to be used to
15
- * trigger the modal. This can be done by placing the following
16
- * code after the output (first to return, latter to echo):
17
- *
18
- * Soliloquy_Editor::get_instance()->slider_selection_modal();
19
- *
20
- * 2. This file should be enqueued on the page where the field resides.
21
- * You should add the class ".soliloquy-modal-trigger" to the
22
- * option/dropdown/button that will trigger the modal. This will
23
- * be used as a reference point for showing, hiding and passing data
24
- * between the modal and your plugin.
25
- *
26
- * 3. Attaching to a global event that is fired once the data for the
27
- * selection has been retrieved. You should listen on the document
28
- * object for the "soliloquySliderModalData" event, like this:
29
- *
30
- * $(document).on("soliloquySliderModalData", function(e){
31
- * //console.log(e.slider);
32
- * });
33
- *
34
- * This will give you access to the entire array of slider data that
35
- * the user has selected, including ID, title, slug and settings.
36
- * ==========================================================
37
- * Copyright 2013 Thomas Griffin.
38
- *
39
- * Licensed under the GPL License, Version 2.0 or later (the "License");
40
- * you may not use this file except in compliance with the License.
41
- * You may obtain a copy of the License at
42
- *
43
- * http://www.gnu.org/licenses/gpl-2.0.html
44
- *
45
- * Unless required by applicable law or agreed to in writing, software
46
- * distributed under the License is distributed on an "AS IS" BASIS,
47
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
48
- * See the License for the specific language governing permissions and
49
- * limitations under the License.
50
- * ========================================================== */
51
- ;(function($){
52
- $(function(){
53
- // Close the modal window on user action.
54
- var soliloquy_trigger_target = soliloquy_editor_frame = false;
55
- var soliloquy_append_and_hide = function(e){
56
- e.preventDefault();
57
- $('.soliloquy-default-ui .selected').removeClass('details selected');
58
- $('.soliloquy-default-ui').appendTo('.soliloquy-default-ui-wrapper').hide();
59
- soliloquy_trigger_target = soliloquy_editor_frame = false;
60
- };
61
-
62
- $(document).on('click', '.soliloquy-choose-slider, .soliloquy-modal-trigger', function(e){
63
- e.preventDefault();
64
-
65
- // Store the trigger target.
66
- soliloquy_trigger_target = e.target;
67
-
68
- // Show the modal.
69
- soliloquy_editor_frame = true;
70
- $('.soliloquy-default-ui').appendTo('body').show();
71
-
72
- $(document).on('click', '.media-modal-close, .media-modal-backdrop, .soliloquy-cancel-insertion', soliloquy_append_and_hide);
73
- $(document).on('keydown', function(e){
74
- if ( 27 == e.keyCode && soliloquy_editor_frame ) {
75
- soliloquy_append_and_hide(e);
76
- }
77
- });
78
- });
79
-
80
- $(document).on('click', '.soliloquy-default-ui .thumbnail, .soliloquy-default-ui .check, .soliloquy-default-ui .media-modal-icon', function(e){
81
- e.preventDefault();
82
- if ( $(this).parent().parent().hasClass('selected') ) {
83
- $(this).parent().parent().removeClass('details selected');
84
- $('.soliloquy-insert-slider').attr('disabled', 'disabled');
85
- } else {
86
- $(this).parent().parent().parent().find('.selected').removeClass('details selected');
87
- $(this).parent().parent().addClass('details selected');
88
- $('.soliloquy-insert-slider').removeAttr('disabled');
89
- }
90
- });
91
-
92
- $(document).on('click', '.soliloquy-default-ui .check', function(e){
93
- e.preventDefault();
94
- $(this).parent().parent().removeClass('details selected');
95
- $('.soliloquy-insert-slider').attr('disabled', 'disabled');
96
- });
97
-
98
- $(document).on('click', '.soliloquy-default-ui .soliloquy-insert-slider', function(e){
99
- e.preventDefault();
100
-
101
- // Either insert into an editor or make an ajax request.
102
- if ( $(soliloquy_trigger_target).hasClass('soliloquy-choose-slider') ) {
103
- wp.media.editor.insert('[soliloquy id="' + $('.soliloquy-default-ui .selected').data('soliloquy-id') + '"]');
104
- } else {
105
- // Make the ajax request.
106
- var req_data = {
107
- action: 'soliloquy_load_slider_data',
108
- post_id: $('.soliloquy-default-ui:first .selected').data('soliloquy-id')
109
- };
110
- $.post(ajaxurl, req_data, function(res){
111
- // Trigger the event.
112
- $(document).trigger({ type: 'soliloquySliderModalData', slider: res });
113
-
114
- // Close the modal.
115
- soliloquy_append_and_hide(e);
116
- }, 'json');
117
- }
118
-
119
- // Hide the modal.
120
- soliloquy_append_and_hide(e);
121
- });
122
- });
 
123
  }(jQuery));
1
+ /* global soliloquy_editor */
2
+ /* ==========================================================
3
+ * editor.js
4
+ * http://soliloquywp.com/
5
+ *
6
+ * This file can be used by 3rd party plugins to integrate
7
+ * with their custom field systems. It allows the selection
8
+ * process to be standardized so that 3rd party plugins can
9
+ * trigger modal selection windows and receive the corresponding
10
+ * selected data objects.
11
+ *
12
+ * Using this file requires three actions for the 3rd party plugin.
13
+ *
14
+ * 1. The media modal HTML output needs to be inserted directly
15
+ * after the option/dropdown/button that is to be used to
16
+ * trigger the modal. This can be done by placing the following
17
+ * code after the output (first to return, latter to echo):
18
+ *
19
+ * Soliloquy_Editor::get_instance()->slider_selection_modal();
20
+ *
21
+ * 2. This file should be enqueued on the page where the field resides.
22
+ * You should add the class ".soliloquy-modal-trigger" to the
23
+ * option/dropdown/button that will trigger the modal. This will
24
+ * be used as a reference point for showing, hiding and passing data
25
+ * between the modal and your plugin.
26
+ *
27
+ * 3. Attaching to a global event that is fired once the data for the
28
+ * selection has been retrieved. You should listen on the document
29
+ * object for the "soliloquySliderModalData" event, like this:
30
+ *
31
+ * $(document).on("soliloquySliderModalData", function(e){
32
+ * //console.log(e.slider);
33
+ * });
34
+ *
35
+ * This will give you access to the entire array of slider data that
36
+ * the user has selected, including ID, title, slug and settings.
37
+ * ==========================================================
38
+ * Copyright 2013 Soliloquy Team.
39
+ *
40
+ * Licensed under the GPL License, Version 2.0 or later (the "License");
41
+ * you may not use this file except in compliance with the License.
42
+ * You may obtain a copy of the License at
43
+ *
44
+ * http://www.gnu.org/licenses/gpl-2.0.html
45
+ *
46
+ * Unless required by applicable law or agreed to in writing, software
47
+ * distributed under the License is distributed on an "AS IS" BASIS,
48
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
49
+ * See the License for the specific language governing permissions and
50
+ * limitations under the License.
51
+ * ========================================================== */
52
+ ;(function($){
53
+ $(function(){
54
+ // Close the modal window on user action.
55
+ var soliloquy_trigger_target = soliloquy_editor_frame = false;
56
+ var soliloquy_append_and_hide = function(e){
57
+ e.preventDefault();
58
+ $('.soliloquy-default-ui .selected').removeClass('details selected');
59
+ $('.soliloquy-default-ui').appendTo('.soliloquy-default-ui-wrapper').hide();
60
+ soliloquy_trigger_target = soliloquy_editor_frame = false;
61
+ };
62
+
63
+ $(document).on('click', '.soliloquy-choose-slider, .soliloquy-modal-trigger', function(e){
64
+ e.preventDefault();
65
+
66
+ // Store the trigger target.
67
+ soliloquy_trigger_target = e.target;
68
+
69
+ // Show the modal.
70
+ soliloquy_editor_frame = true;
71
+ $('.soliloquy-default-ui').appendTo('body').show();
72
+
73
+ $(document).on('click', '.media-modal-close, .media-modal-backdrop, .soliloquy-cancel-insertion', soliloquy_append_and_hide);
74
+ $(document).on('keydown', function(e){
75
+ if ( 27 == e.keyCode && soliloquy_editor_frame ) {
76
+ soliloquy_append_and_hide(e);
77
+ }
78
+ });
79
+ });
80
+
81
+ $(document).on('click', '.soliloquy-default-ui .thumbnail, .soliloquy-default-ui .check, .soliloquy-default-ui .media-modal-icon', function(e){
82
+ e.preventDefault();
83
+ if ( $(this).parent().parent().hasClass('selected') ) {
84
+ $(this).parent().parent().removeClass('details selected');
85
+ $('.soliloquy-insert-slider').attr('disabled', 'disabled');
86
+ } else {
87
+ $(this).parent().parent().parent().find('.selected').removeClass('details selected');
88
+ $(this).parent().parent().addClass('details selected');
89
+ $('.soliloquy-insert-slider').removeAttr('disabled');
90
+ }
91
+ });
92
+
93
+ $(document).on('click', '.soliloquy-default-ui .check', function(e){
94
+ e.preventDefault();
95
+ $(this).parent().parent().removeClass('details selected');
96
+ $('.soliloquy-insert-slider').attr('disabled', 'disabled');
97
+ });
98
+
99
+ $(document).on('click', '.soliloquy-default-ui .soliloquy-insert-slider', function(e){
100
+ e.preventDefault();
101
+
102
+ // Either insert into an editor or make an ajax request.
103
+ if ( $(soliloquy_trigger_target).hasClass('soliloquy-choose-slider') ) {
104
+ wp.media.editor.insert('[soliloquy id="' + $('.soliloquy-default-ui .selected').data('soliloquy-id') + '"]');
105
+ } else {
106
+ // Make the ajax request.
107
+ var req_data = {
108
+ action: 'soliloquy_load_slider_data',
109
+ post_id: $('.soliloquy-default-ui:first .selected').data('soliloquy-id')
110
+ };
111
+ $.post(ajaxurl, req_data, function(res){
112
+ // Trigger the event.
113
+ $(document).trigger({ type: 'soliloquySliderModalData', slider: res });
114
+
115
+ // Close the modal.
116
+ soliloquy_append_and_hide(e);
117
+ }, 'json');
118
+ }
119
+
120
+ // Hide the modal.
121
+ soliloquy_append_and_hide(e);
122
+ });
123
+ });
124
  }(jQuery));
assets/js/lib/bxslider.js CHANGED
@@ -1,1482 +1,1482 @@
1
- ;
2
- (function($, window, document, undefined) {
3
-
4
- var plugin = {};
5
-
6
- var defaults = {
7
-
8
- // Added by Thomas
9
- keyboard: false,
10
-
11
- // GENERAL
12
- mode: 'horizontal',
13
- slideSelector: '',
14
- infiniteLoop: true,
15
- hideControlOnEnd: false,
16
- speed: 500,
17
- captionSpeed: 0,
18
- easing: null,
19
- slideMargin: 0,
20
- startSlide: 0,
21
- randomStart: false,
22
- captions: false,
23
- ticker: false,
24
- tickerHover: false,
25
- adaptiveHeight: false,
26
- adaptiveHeightSpeed: 500,
27
- video: false,
28
- useCSS: true,
29
- preloadImages: 'visible',
30
- responsive: true,
31
- slideZIndex: 50,
32
- wrapperClass: 'soliloquy-wrapper',
33
-
34
- // TOUCH
35
- touchEnabled: true,
36
- swipeThreshold: 50,
37
- oneToOneTouch: true,
38
- preventDefaultSwipeX: true,
39
- preventDefaultSwipeY: false,
40
-
41
- // PAGER
42
- pager: true,
43
- pagerType: 'full',
44
- pagerShortSeparator: ' / ',
45
- pagerSelector: null,
46
- buildPager: null,
47
- pagerCustom: null,
48
-
49
- // CONTROLS
50
- controls: true,
51
- nextText: 'Next',
52
- prevText: 'Prev',
53
- nextSelector: null,
54
- prevSelector: null,
55
- autoControls: false,
56
- startText: 'Start',
57
- stopText: 'Stop',
58
- autoControlsCombine: false,
59
- autoControlsSelector: null,
60
-
61
- // AUTO
62
- auto: false,
63
- pause: 4000,
64
- autoStart: true,
65
- autoDirection: 'next',
66
- autoHover: false,
67
- autoDelay: 0,
68
- autoSlideForOnePage: false,
69
-
70
- // CAROUSEL
71
- minSlides: 1,
72
- maxSlides: 1,
73
- moveSlides: 0,
74
- slideWidth: 0,
75
-
76
- // CALLBACKS
77
- onSliderLoad: function() {},
78
- onSlideBefore: function() {},
79
- onSlideAfter: function() {},
80
- onSlideNext: function() {},
81
- onSlidePrev: function() {},
82
- onSliderResize: function() {}
83
- };
84
-
85
- $.fn.soliloquy = function(options){
86
-
87
- if(this.length === 0) {
88
- return this;
89
- }
90
-
91
- // support mutltiple elements
92
- if(this.length > 1){
93
- this.each(function(){$(this).soliloquy(options)});
94
- return this;
95
- }
96
-
97
- // create a namespace to be used throughout the plugin
98
- var slider = {},
99
- // set a reference to our slider element
100
- el = this,
101
- // first get the original window dimens (thanks alot IE)
102
- windowWidth = $(window).width(),
103
- windowHeight = $(window).height();
104
-
105
- /**
106
- * ===================================================================================
107
- * = PRIVATE FUNCTIONS
108
- * ===================================================================================
109
- */
110
-
111
- /**
112
- * Initializes namespace settings to be used throughout plugin
113
- */
114
- var init = function(){
115
- // merge user-supplied options with the defaults
116
- slider.settings = $.extend({}, defaults, options);
117
- // parse slideWidth setting
118
- slider.settings.slideWidth = parseInt(slider.settings.slideWidth);
119
- // store the original children
120
- slider.children = el.children(slider.settings.slideSelector);
121
- // check if actual number of slides is less than minSlides / maxSlides
122
- if(slider.children.length < slider.settings.minSlides) {
123
- slider.settings.minSlides = slider.children.length;
124
- }
125
- if(slider.children.length < slider.settings.maxSlides) {
126
- slider.settings.maxSlides = slider.children.length;
127
- }
128
- // if random start, set the startSlide setting to random number
129
- if(slider.settings.randomStart) slider.settings.startSlide = Math.floor(Math.random() * slider.children.length);
130
- // store active slide information
131
- slider.active = { index: slider.settings.startSlide }
132
- // store if the slider is in carousel mode (displaying / moving multiple slides)
133
- slider.carousel = slider.settings.minSlides > 1 || slider.settings.maxSlides > 1;
134
- // if carousel, force preloadImages = 'all'
135
- if(slider.carousel) slider.settings.preloadImages = 'all';
136
- // calculate the min / max width thresholds based on min / max number of slides
137
- // used to setup and update carousel slides dimensions
138
- slider.minThreshold = (slider.settings.minSlides * slider.settings.slideWidth) + ((slider.settings.minSlides - 1) * slider.settings.slideMargin);
139
- slider.maxThreshold = (slider.settings.maxSlides * slider.settings.slideWidth) + ((slider.settings.maxSlides - 1) * slider.settings.slideMargin);
140
- // store the current state of the slider (if currently animating, working is true)
141
- slider.working = false;
142
- // initialize the controls object
143
- slider.controls = {};
144
- // initialize an auto interval
145
- slider.interval = null;
146
- // determine which property to use for transitions
147
- slider.animProp = slider.settings.mode == 'vertical' ? 'top' : 'left';
148
- // determine if hardware acceleration can be used
149
- slider.usingCSS = slider.settings.useCSS && slider.settings.mode != 'fade' && (function(){
150
- // create our test div element
151
- var div = document.createElement('div');
152
- // css transition properties
153
- var props = ['WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective'];
154
- // test for each property
155
- for(var i in props){
156
- if(div.style[props[i]] !== undefined){
157
- slider.cssPrefix = props[i].replace('Perspective', '').toLowerCase();
158
- slider.animProp = '-' + slider.cssPrefix + '-transform';
159
- return true;
160
- }
161
- }
162
- return false;
163
- }());
164
- // if vertical mode always make maxSlides and minSlides equal
165
- if(slider.settings.mode == 'vertical') slider.settings.maxSlides = slider.settings.minSlides;
166
- // save original style data
167
- el.data("origStyle", el.attr("style"));
168
- el.children(slider.settings.slideSelector).each(function() {
169
- $(this).data("origStyle", $(this).attr("style"));
170
- });
171
- // perform all DOM / CSS modifications
172
- setup();
173
- };
174
-
175
- /**
176
- * Performs all DOM and CSS modifications
177
- */
178
- var setup = function(){
179
- // wrap el in a wrapper
180
- el.wrap('<div class="' + slider.settings.wrapperClass + '"><div class="soliloquy-viewport"></div></div>');
181
- // store a namspace reference to .soliloquy-viewport
182
- slider.viewport = el.parent();
183
- // add a loading div to display while images are loading
184
- slider.loader = $('<div class="soliloquy-loading" />');
185
- slider.viewport.prepend(slider.loader);
186
- // set el to a massive width, to hold any needed slides
187
- // also strip any margin and padding from el
188
- el.css({
189
- width: slider.settings.mode == 'horizontal' ? (slider.children.length * 100 + 215) + '%' : 'auto',
190
- position: 'relative'
191
- });
192
- // if using CSS, add the easing property
193
- if(slider.usingCSS && slider.settings.easing){
194
- el.css('-' + slider.cssPrefix + '-transition-timing-function', slider.settings.easing);
195
- // if not using CSS and no easing value was supplied, use the default JS animation easing (swing)
196
- }else if(!slider.settings.easing){
197
- slider.settings.easing = 'swing';
198
- }
199
- var slidesShowing = getNumberSlidesShowing();
200
- // make modifications to the viewport (.soliloquy-viewport)
201
- slider.viewport.css({
202
- width: '100%',
203
- position: 'relative'
204
- });
205
- if(slider.settings.mode != 'fade'){
206
- slider.viewport.css({overflow:'hidden'});
207
- }
208
- slider.viewport.parent().css({
209
- maxWidth: getViewportMaxWidth()
210
- });
211
- // make modification to the wrapper (.soliloquy-wrapper)
212
- if(!slider.settings.pager) {
213
- slider.viewport.parent().css({
214
- margin: '0 auto 0px'
215
- });
216
- }
217
- // apply css to all slider children
218
- slider.children.css({
219
- 'float': 'left',
220
- listStyle: 'none',
221
- position: 'relative'
222
- });
223
- // apply the calculated width after the float is applied to prevent scrollbar interference
224
- slider.children.css('width', getSlideWidth());
225
- // if slideMargin is supplied, add the css
226
- if(slider.settings.mode == 'horizontal' && slider.settings.slideMargin > 0) slider.children.css('marginRight', slider.settings.slideMargin);
227
- if(slider.settings.mode == 'vertical' && slider.settings.slideMargin > 0) slider.children.css('marginBottom', slider.settings.slideMargin);
228
- // if "fade" mode, add positioning and z-index CSS
229
- if(slider.settings.mode == 'fade'){
230
- slider.children.css({
231
- zIndex: 0,
232
- display: 'none',
233
- marginRight: '-100%',
234
- width: '100%'
235
- });
236
- // prepare the z-index on the showing element
237
- slider.children.eq(slider.settings.startSlide).css({zIndex: slider.settings.slideZIndex, display: 'block'});
238
- }
239
- // create an element to contain all slider controls (pager, start / stop, etc)
240
- slider.controls.el = $('<div class="soliloquy-controls" />');
241
- // if captions are requested, add them
242
- if(slider.settings.captions) {
243
- appendCaptions();
244
- }
245
- // check if startSlide is last slide
246
- slider.active.last = slider.settings.startSlide == getPagerQty() - 1;
247
- // Added by Thomas - removed fitVids support, no need.
248
- // set the default preload selector (visible)
249
- var preloadSelector = slider.children.eq(slider.settings.startSlide);
250
- if (slider.settings.preloadImages == "all") {
251
- preloadSelector = slider.children;
252
- }
253
- // only check for control addition if not in "ticker" mode
254
- if(!slider.settings.ticker){
255
- // if pager is requested, add it
256
- if(slider.settings.pager) {
257
- appendPager();
258
- }
259
- // if controls are requested, add them
260
- if(slider.settings.controls) {
261
- appendControls();
262
- }
263
- // if auto is true, and auto controls are requested, add them
264
- if(slider.settings.auto && slider.settings.autoControls) {
265
- appendControlsAuto();
266
- }
267
- // if any control option is requested, add the controls wrapper
268
- if(slider.settings.controls || slider.settings.autoControls || slider.settings.pager) {
269
- slider.viewport.after(slider.controls.el);
270
- }
271
- // if ticker mode, do not allow a pager
272
- }else{
273
- slider.settings.pager = false;
274
- }
275
- // preload all images, then perform final DOM / CSS modifications that depend on images being loaded
276
- loadElements(preloadSelector, start);
277
- };
278
-
279
- var loadElements = function(selector, callback) {
280
- var total = selector.find('img:not([src=""]), iframe').length,
281
- count = 0;
282
- if (total === 0) {
283
- callback();
284
- return;
285
- }
286
- selector.find('img:not([src=""]), iframe').each(function() {
287
- $(this).one('load error', function() {
288
- if (++count === total) { callback(); }
289
- }).each(function() {
290
- if (this.complete) { $(this).load(); }
291
- });
292
- });
293
- };
294
-
295
- /**
296
- * Start the slider
297
- */
298
- var start = function(){
299
-
300
- // if infinite loop, prepare additional slides
301
- if(slider.settings.infiniteLoop && slider.settings.mode != 'fade' && !slider.settings.ticker && slider.children.length > 1){
302
- var slice = slider.settings.mode == 'vertical' ? slider.settings.minSlides : slider.settings.maxSlides;
303
- var sliceAppend = slider.children.slice(0, slice).clone(true).addClass('soliloquy-clone');
304
- var slicePrepend = slider.children.slice(-slice).clone(true).addClass('soliloquy-clone');
305
- el.append(sliceAppend).prepend(slicePrepend);
306
- }
307
-
308
- // remove the loading DOM element
309
- slider.loader.remove();
310
- // set the left / top position of "el"
311
- setSlidePosition();
312
- // if "vertical" mode, always use adaptiveHeight to prevent odd behavior
313
- if (slider.settings.mode == 'vertical') slider.settings.adaptiveHeight = true;
314
- // set the viewport height
315
- slider.viewport.height(getViewportHeight());
316
- // make sure everything is positioned just right (same as a window resize)
317
- el.redrawSlider();
318
- // onSliderLoad callback
319
- slider.settings.onSliderLoad(slider.active.index);
320
- // slider has been fully initialized
321
- slider.initialized = true;
322
- // bind the resize call to the window
323
- if (slider.settings.responsive) {
324
- $(window).bind('resize', resizeWindow);
325
- }
326
- // if auto is true and has more than 1 page, start the show
327
- if (slider.settings.auto && slider.settings.autoStart && (getPagerQty() > 1 || slider.settings.autoSlideForOnePage)) {
328
- initAuto();
329
- }
330
- // if ticker is true, start the ticker
331
- if (slider.settings.ticker) {
332
- initTicker();
333
- }
334
- // if pager is requested, make the appropriate pager link active
335
- if (slider.settings.pager) {
336
- updatePagerActive(slider.settings.startSlide);
337
- }
338
- // check for any updates to the controls (like hideControlOnEnd updates)
339
- if (slider.settings.controls) {
340
- updateDirectionControls();
341
- }
342
- // if touchEnabled is true, setup the touch events
343
- if (slider.settings.touchEnabled && !slider.settings.ticker) {
344
- initTouch();
345
- }
346
- // Added by Thomas
347
- if (slider.settings.keyboard && !slider.settings.ticker) {
348
- $( 'body' ).on('keydown', function(e) {
349
- // Added by Tim
350
- // Check the target (focused) element - if it's an input or textarea, don't do anything
351
- // otherwise the user can't use arrow keys within inputs or textareas
352
- if ( e.target.type == 'textarea' || e.target.type == 'input' ) {
353
- return;
354
- }
355
-
356
- // If here, OK to change slide
357
- if ( e.keyCode == 39 ) {
358
- clickNextBind( e );
359
- return false;
360
- } else if ( e.keyCode == 37 ) {
361
- clickPrevBind( e );
362
- return false;
363
- }
364
- });
365
- }
366
- };
367
-
368
- /**
369
- * Returns the calculated height of the viewport, used to determine either adaptiveHeight or the maxHeight value
370
- */
371
- var getViewportHeight = function(){
372
- var height = 0;
373
- // first determine which children (slides) should be used in our height calculation
374
- var children = $();
375
- // if mode is not "vertical" and adaptiveHeight is false, include all children
376
- if(slider.settings.mode != 'vertical' && !slider.settings.adaptiveHeight){
377
- children = slider.children;
378
- }else{
379
- // if not carousel, return the single active child
380
- if(!slider.carousel){
381
- children = slider.children.eq(slider.active.index);
382
- // if carousel, return a slice of children
383
- }else{
384
- // get the individual slide index
385
- var currentIndex = slider.settings.moveSlides == 1 ? slider.active.index : slider.active.index * getMoveBy();
386
- // add the current slide to the children
387
- children = slider.children.eq(currentIndex);
388
- // cycle through the remaining "showing" slides
389
- for (i = 1; i <= slider.settings.maxSlides - 1; i++){
390
- // if looped back to the start
391
- if(currentIndex + i >= slider.children.length){
392
- children = children.add(slider.children.eq(i - 1));
393
- }else{
394
- children = children.add(slider.children.eq(currentIndex + i));
395
- }
396
- }
397
- }
398
- }
399
- // if "vertical" mode, calculate the sum of the heights of the children
400
- if(slider.settings.mode == 'vertical'){
401
- children.each(function(index) {
402
- height += $(this).outerHeight();
403
- });
404
- // add user-supplied margins
405
- if(slider.settings.slideMargin > 0){
406
- height += slider.settings.slideMargin * (slider.settings.minSlides - 1);
407
- }
408
- // if not "vertical" mode, calculate the max height of the children
409
- }else{
410
- height = Math.max.apply(Math, children.map(function(){
411
- return $(this).outerHeight(false);
412
- }).get());
413
- }
414
-
415
- if(slider.viewport.css('box-sizing') == 'border-box'){
416
- height += parseFloat(slider.viewport.css('padding-top')) + parseFloat(slider.viewport.css('padding-bottom')) +
417
- parseFloat(slider.viewport.css('border-top-width')) + parseFloat(slider.viewport.css('border-bottom-width'));
418
- }else if(slider.viewport.css('box-sizing') == 'padding-box'){
419
- height += parseFloat(slider.viewport.css('padding-top')) + parseFloat(slider.viewport.css('padding-bottom'));
420
- }
421
-
422
- return height;
423
- };
424
-
425
- /**
426
- * Returns the calculated width to be used for the outer wrapper / viewport
427
- */
428
- var getViewportMaxWidth = function(){
429
- var width = '100%';
430
- if(slider.settings.slideWidth > 0){
431
- if(slider.settings.mode == 'horizontal'){
432
- width = (slider.settings.maxSlides * slider.settings.slideWidth) + ((slider.settings.maxSlides - 1) * slider.settings.slideMargin);
433
- }else{
434
- width = slider.settings.slideWidth;
435
- }
436
- }
437
- return (slider.settings.mode == 'fade') ? '100%' : width;
438
- };
439
-
440
- /**
441
- * Returns the calculated width to be applied to each slide
442
- */
443
- var getSlideWidth = function(){
444
- // start with any user-supplied slide width
445
- var newElWidth = slider.settings.slideWidth;
446
- // get the current viewport width
447
- var wrapWidth = slider.viewport.width();
448
- // if slide width was not supplied, or is larger than the viewport use the viewport width
449
- if(slider.settings.slideWidth === 0 ||
450
- (slider.settings.slideWidth > wrapWidth && !slider.carousel) ||
451
- slider.settings.mode === 'vertical'){
452
- newElWidth = wrapWidth;
453
- // if carousel, use the thresholds to determine the width
454
- }else if(slider.settings.maxSlides > 1 && slider.settings.mode === 'horizontal'){
455
- if(wrapWidth > slider.maxThreshold){
456
- // newElWidth = (wrapWidth - (slider.settings.slideMargin * (slider.settings.maxSlides - 1))) / slider.settings.maxSlides;
457
- }else if(wrapWidth < slider.minThreshold){
458
- newElWidth = (wrapWidth - (slider.settings.slideMargin * (slider.settings.minSlides - 1))) / slider.settings.minSlides;
459
- }
460
- }
461
- return (slider.settings.mode == 'fade') ? '100%' : newElWidth;
462
- };
463
-
464
- /**
465
- * Returns the number of slides currently visible in the viewport (includes partially visible slides)
466
- */
467
- var getNumberSlidesShowing = function(){
468
- var slidesShowing = 1;
469
- if(slider.settings.mode === 'horizontal' && slider.settings.slideWidth > 0){
470
- // if viewport is smaller than minThreshold, return minSlides
471
- if(slider.viewport.width() < slider.minThreshold){
472
- slidesShowing = slider.settings.minSlides;
473
- // if viewport is larger than minThreshold, return maxSlides
474
- }else if(slider.viewport.width() > slider.maxThreshold){
475
- slidesShowing = slider.settings.maxSlides;
476
- // if viewport is between min / max thresholds, divide viewport width by first child width
477
- }else{
478
- var childWidth = slider.children.first().width() + slider.settings.slideMargin;
479
- slidesShowing = Math.floor((slider.viewport.width() +
480
- slider.settings.slideMargin) / childWidth);
481
- }
482
- // if "vertical" mode, slides showing will always be minSlides
483
- }else if(slider.settings.mode === 'vertical'){
484
- slidesShowing = slider.settings.minSlides;
485
- }
486
- return slidesShowing;
487
- };
488
-
489
- /**
490
- * Returns the number of pages (one full viewport of slides is one "page")
491
- */
492
- var getPagerQty = function(){
493
- var pagerQty = 0;
494
- // if moveSlides is specified by the user
495
- if(slider.settings.moveSlides > 0){
496
- if(slider.settings.infiniteLoop){
497
- pagerQty = Math.ceil(slider.children.length / getMoveBy());
498
- }else{
499
- // use a while loop to determine pages
500
- var breakPoint = 0;
501
- var counter = 0
502
- // when breakpoint goes above children length, counter is the number of pages
503
- while (breakPoint < slider.children.length){
504
- ++pagerQty;
505
- breakPoint = counter + getNumberSlidesShowing();
506
- counter += slider.settings.moveSlides <= getNumberSlidesShowing() ? slider.settings.moveSlides : getNumberSlidesShowing();
507
- }
508
- }
509
- // if moveSlides is 0 (auto) divide children length by sides showing, then round up
510
- }else{
511
- pagerQty = Math.ceil(slider.children.length / getNumberSlidesShowing());
512
- }
513
- return pagerQty;
514
- };
515
-
516
- /**
517
- * Returns the number of indivual slides by which to shift the slider
518
- */
519
- var getMoveBy = function(){
520
- // if moveSlides was set by the user and moveSlides is less than number of slides showing
521
- if(slider.settings.moveSlides > 0 && slider.settings.moveSlides <= getNumberSlidesShowing()){
522
- return slider.settings.moveSlides;
523
- }
524
- // if moveSlides is 0 (auto)
525
- return getNumberSlidesShowing();
526
- };
527
-
528
- /**
529
- * Sets the slider's (el) left or top position
530
- */
531
- var setSlidePosition = function(){
532
-
533
- // if last slide, not infinite loop, and number of children is larger than specified maxSlides
534
- if (slider.children.length > slider.settings.maxSlides && slider.active.last && !slider.settings.infiniteLoop) {
535
-
536
- if (slider.settings.mode === 'horizontal') {
537
-
538
- // get the last child's position
539
- var lastChild = slider.children.last(),
540
- position = lastChild.position();
541
-
542
- // set the left position
543
- setPositionProperty(-(position.left - (slider.viewport.width() - lastChild.outerWidth())), 'reset', 0);
544
-
545
- } else if (slider.settings.mode === 'vertical') {
546
-
547
- // get the last showing index's position
548
- var lastShowingIndex = slider.children.length - slider.settings.minSlides;
549
- var position = slider.children.eq(lastShowingIndex)
550
- .position();
551
-
552
- // set the top position
553
- setPositionProperty(-position.top, 'reset', 0);
554
- }
555
-
556
- //If its not infinite loop
557
- } else if (!slider.settings.infiniteLoop) {
558
- var firstIndex = slider.active.index,
559
- position = slider.children.eq(firstIndex)
560
- .position();
561
- // check for last slide
562
- if (slider.active.index === getPagerQty() - 1) {
563
- slider.active.last = true;
564
- }
565
- // set the repective position
566
- if (position != undefined) {
567
-
568
- if (slider.settings.mode === 'horizontal' && !slider.carousel) {
569
- position.left = (slider.active.index) * slider.children.eq(firstIndex)
570
- .outerWidth(true);
571
- setPositionProperty(-position.left, 'reset', 0);
572
- } else if (slider.settings.mode === 'vertical') {
573
- position.top = (slider.active.index) * slider.children.eq(firstIndex)
574
- .outerHeight(true);
575
- setPositionProperty(-position.top, 'reset', 0);
576
- }
577
- }
578
- } else {
579
- var firstIndex = slider.active.index * getMoveBy(),
580
- position = slider.children.eq(firstIndex)
581
- .position();
582
- // check for last slide
583
- if (slider.active.index === getPagerQty() - 1) {
584
- slider.active.last = true;
585
- }
586
- // set the repective position
587
- if (position != undefined) {
588
- if (slider.settings.mode === 'horizontal' && slider.children.length <= 1 ){
589
- position.left = (slider.active.index ) * slider.children.eq(firstIndex)
590
- .outerWidth(true);
591
- setPositionProperty(-position.left, 'reset', 0);
592
- }
593
- else if (slider.settings.mode === 'horizontal' && !slider.carousel) {
594
- position.left = (slider.active.index + 1) * slider.children.eq(firstIndex)
595
- .outerWidth(true);
596
- setPositionProperty(-position.left, 'reset', 0);
597
-
598
- } else if (slider.settings.mode === 'vertical') {
599
- position.top = (slider.active.index + 1) * slider.children.eq(firstIndex)
600
- .outerHeight(true);
601
- setPositionProperty(-position.top, 'reset', 0);
602
- } else if (slider.carousel && slider.settings.mode === 'horizontal' && slider.settings.infiniteLoop) {
603
- position.left = (slider.active.index + 1) * slider.children.eq(firstIndex)
604
- .outerWidth(true);
605
- setPositionProperty(-position.left * slider.settings.maxSlides, 'reset', 0);
606
- }
607
- }
608
- }
609
-
610
-
611
- };
612
-
613
- /**
614
- * Sets the el's animating property position (which in turn will sometimes animate el).
615
- * If using CSS, sets the transform property. If not using CSS, sets the top / left property.
616
- *
617
- * @param value (int)
618
- * - the animating property's value
619
- *
620
- * @param type (string) 'slider', 'reset', 'ticker'
621
- * - the type of instance for which the function is being
622
- *
623
- * @param duration (int)
624
- * - the amount of time (in ms) the transition should occupy
625
- *
626
- * @param params (array) optional
627
- * - an optional parameter containing any variables that need to be passed in
628
- */
629
- var setPositionProperty = function(value, type, duration, params){
630
- // use CSS transform
631
- if(slider.usingCSS){
632
- // determine the translate3d value
633
- var propValue = slider.settings.mode === 'vertical' ? 'translate3d(0, ' + value + 'px, 0)' : 'translate3d(' + value + 'px, 0, 0)';
634
- // add the CSS transition-duration
635
- el.css('-' + slider.cssPrefix + '-transition-duration', duration / 1000 + 's');
636
- if(type === 'slide'){
637
- // set the property value
638
- el.css(slider.animProp, propValue);
639
- // bind a callback method - executes when CSS transition completes
640
- el.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function(){
641
- // unbind the callback
642
- el.unbind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd');
643
- updateAfterSlideTransition();
644
- });
645
- }else if(type === 'reset'){
646
- el.css(slider.animProp, propValue);
647
- }else if(type === 'ticker'){
648
- // make the transition use 'linear'
649
- el.css('-' + slider.cssPrefix + '-transition-timing-function', 'linear');
650
- el.css(slider.animProp, propValue);
651
- // bind a callback method - executes when CSS transition completes
652
- el.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function(){
653
- // unbind the callback
654
- el.unbind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd');
655
- // reset the position
656
- setPositionProperty(params['resetValue'], 'reset', 0);
657
- // start the loop again
658
- tickerLoop();
659
- });
660
- }
661
- // use JS animate
662
- }else{
663
- var animateObj = {};
664
- animateObj[slider.animProp] = value;
665
- if(type === 'slide'){
666
- el.animate(animateObj, duration, slider.settings.easing, function(){
667
- updateAfterSlideTransition();
668
- });
669
- }else if(type === 'reset'){
670
- el.css(slider.animProp, value)
671
- }else if(type === 'ticker'){
672
- el.animate(animateObj, speed, 'linear', function(){
673
- setPositionProperty(params['resetValue'], 'reset', 0);
674
- // run the recursive loop after animation
675
- tickerLoop();
676
- });
677
- }
678
- }
679
- };
680
-
681
- /**
682
- * Populates the pager with proper amount of pages
683
- */
684
- var populatePager = function(){
685
- var pagerHtml = '';
686
- var pagerQty = getPagerQty();
687
- // loop through each pager item
688
- for(var i=0; i < pagerQty; i++){
689
- var linkContent = '';
690
- // if a buildPager function is supplied, use it to get pager link value, else use index + 1
691
- if(slider.settings.buildPager && $.isFunction(slider.settings.buildPager)){
692
- linkContent = slider.settings.buildPager(i);
693
- slider.pagerEl.addClass('soliloquy-custom-pager');
694
- }else{
695
- linkContent = i + 1;
696
- slider.pagerEl.addClass('soliloquy-default-pager');
697
- }
698
- // var linkContent = slider.settings.buildPager && $.isFunction(slider.settings.buildPager) ? slider.settings.buildPager(i) : i + 1;
699
- // add the markup to the string
700
- pagerHtml += '<div class="soliloquy-pager-item"><a href="" data-slide-index="' + i + '" class="soliloquy-pager-link" tabindex="0"><span>' + linkContent + '</span></a></div>';
701
- };
702
- // populate the pager element with pager links
703
- slider.pagerEl.html(pagerHtml);
704
- };
705
-
706
- /**
707
- * Appends the pager to the controls element
708
- */
709
- var appendPager = function(){
710
- // Create container for pager
711
- if (!slider.settings.pagerCustom) {
712
- // Auto generated pager - create container
713
- slider.pagerEl = $('<div class="soliloquy-pager" />');
714
- } else {
715
- // Manually specified pager - insert
716
- slider.pagerEl = $(slider.settings.pagerCustom);
717
- }
718
-
719
- // If a pager selector was supplied, populate it with the pager
720
- if (slider.settings.pagerSelector) {
721
- $(slider.settings.pagerSelector).html(slider.pagerEl);
722
- } else {
723
- slider.controls.el.addClass('soliloquy-has-pager').append(slider.pagerEl);
724
- }
725
-
726
- // If we are not using a custom pager, automatically populated slider.pagerEl
727
- if (!slider.settings.pagerCustom) {
728
- populatePager();
729
- }
730
-
731
- // Assign the clickPagerBind event
732
- slider.pagerEl.on('click', 'a', clickPagerBind);
733
- };
734
-
735
- /**
736
- * Appends prev / next controls to the controls element
737
- */
738
- var appendControls = function(){
739
- slider.controls.next = $('<a class="soliloquy-next" href="" tabindex="0"><span>' + slider.settings.nextText + '</span></a>');
740
- slider.controls.prev = $('<a class="soliloquy-prev" href="" tabindex="0"><span>' + slider.settings.prevText + '</span></a>');
741
- // bind click actions to the controls
742
- slider.controls.next.bind('click', clickNextBind);
743
- slider.controls.prev.bind('click', clickPrevBind);
744
- // if nextSlector was supplied, populate it
745
- if(slider.settings.nextSelector){
746
- $(slider.settings.nextSelector).append(slider.controls.next);
747
- }
748
- // if prevSlector was supplied, populate it
749
- if(slider.settings.prevSelector){
750
- $(slider.settings.prevSelector).append(slider.controls.prev);
751
- }
752
- // if no custom selectors were supplied
753
- if(!slider.settings.nextSelector && !slider.settings.prevSelector){
754
- // add the controls to the DOM
755
- slider.controls.directionEl = $('<div class="soliloquy-controls-direction" />');
756
- // add the control elements to the directionEl
757
- slider.controls.directionEl.append(slider.controls.prev).append(slider.controls.next);
758
- // slider.viewport.append(slider.controls.directionEl);
759
- slider.controls.el.addClass('soliloquy-has-controls-direction').append(slider.controls.directionEl);
760
- }
761
- };
762
-
763
- /**
764
- * Appends start / stop auto controls to the controls element
765
- */
766
- var appendControlsAuto = function(){
767
- slider.controls.start = $('<div class="soliloquy-controls-auto-item"><a class="soliloquy-start" href="" aria-label="play" tabindex="0"><span>' + slider.settings.startText + '</span></a></div>');
768
- slider.controls.stop = $('<div class="soliloquy-controls-auto-item"><a class="soliloquy-stop" href="" aria-label="pause" tabindex="0"><span>' + slider.settings.stopText + '</span></a></div>');
769
- // add the controls to the DOM
770
- slider.controls.autoEl = $('<div class="soliloquy-controls-auto" />');
771
- // bind click actions to the controls
772
- slider.controls.autoEl.on('click', '.soliloquy-start', clickStartBind);
773
- slider.controls.autoEl.on('click', '.soliloquy-stop', clickStopBind);
774
- // if autoControlsCombine, insert only the "start" control
775
- if(slider.settings.autoControlsCombine){
776
- slider.controls.autoEl.append(slider.controls.start);
777
- // if autoControlsCombine is false, insert both controls
778
- }else{
779
- slider.controls.autoEl.append(slider.controls.start).append(slider.controls.stop);
780
- }
781
- // if auto controls selector was supplied, populate it with the controls
782
- if(slider.settings.autoControlsSelector){
783
- $(slider.settings.autoControlsSelector).html(slider.controls.autoEl);
784
- // if auto controls selector was not supplied, add it after the wrapper
785
- }else{
786
- slider.controls.el.addClass('soliloquy-has-controls-auto').append(slider.controls.autoEl);
787
- }
788
- // update the auto controls
789
- updateAutoControls(slider.settings.autoStart ? 'stop' : 'start');
790
- };
791
-
792
- /**
793
- * Appends image captions to the DOM
794
- */
795
- var appendCaptions = function(){
796
- // cycle through each child
797
- slider.children.each(function(index){
798
- // get the image title attribute
799
- var title = $(this).find('img:first').attr('title');
800
- // append the caption
801
- if (title != undefined && ('' + title).length) {
802
- $(this).append('<div class="soliloquy-caption"><span>' + title + '</span></div>');
803
- }
804
- });
805
- };
806
-
807
- /**
808
- * Click next binding
809
- *
810
- * @param e (event)
811
- * - DOM event object
812
- */
813
- var clickNextBind = function(e){
814
- // if auto show is running, stop it
815
- if (slider.settings.auto) el.stopAuto();
816
- el.goToNextSlide();
817
- e.preventDefault();
818
- };
819
-
820
- /**
821
- * Click prev binding
822
- *
823
- * @param e (event)
824
- * - DOM event object
825
- */
826
- var clickPrevBind = function(e){
827
- // if auto show is running, stop it
828
- if (slider.settings.auto) el.stopAuto();
829
- el.goToPrevSlide();
830
- e.preventDefault();
831
- };
832
-
833
- /**
834
- * Click start binding
835
- *
836
- * @param e (event)
837
- * - DOM event object
838
- */
839
- var clickStartBind = function(e){
840
- el.startAuto();
841
- e.preventDefault();
842
- };
843
-
844
- /**
845
- * Click stop binding
846
- *
847
- * @param e (event)
848
- * - DOM event object
849
- */
850
- var clickStopBind = function(e){
851
- el.stopAuto();
852
- e.preventDefault();
853
- };
854
-
855
- /**
856
- * Click pager binding
857
- *
858
- * @param e (event)
859
- * - DOM event object
860
- */
861
- var clickPagerBind = function(e){
862
- // if auto show is running, stop it
863
- if (slider.settings.auto) el.stopAuto();
864
- var pagerLink = $(e.currentTarget);
865
- if(pagerLink.attr('data-slide-index') !== undefined){
866
- var pagerIndex = parseInt(pagerLink.attr('data-slide-index'));
867
- // if clicked pager link is not active, continue with the goToSlide call
868
- if(pagerIndex != slider.active.index) el.goToSlide(pagerIndex);
869
- e.preventDefault();
870
- }
871
- };
872
-
873
- /**
874
- * Updates the pager links with an active class
875
- *
876
- * @param slideIndex (int)
877
- * - index of slide to make active
878
- */
879
- var updatePagerActive = function(slideIndex){
880
- // if "short" pager type
881
- var len = slider.children.length; // nb of children
882
- if(slider.settings.pagerType === 'short'){
883
- if(slider.settings.maxSlides > 1) {
884
- len = Math.ceil(slider.children.length/slider.settings.maxSlides);
885
- }
886
- slider.pagerEl.html( (slideIndex + 1) + slider.settings.pagerShortSeparator + len);
887
- return;
888
- }
889
- // remove all pager active classes
890
- slider.pagerEl.find('a').removeClass('active');
891
- // apply the active class for all pagers
892
- slider.pagerEl.each(function(i, el) { $(el).find('a').eq(slideIndex).addClass('active'); });
893
- };
894
-
895
- /**
896
- * Performs needed actions after a slide transition
897
- */
898
- var updateAfterSlideTransition = function(){
899
- // if infinte loop is true
900
- if(slider.settings.infiniteLoop){
901
- var position = '';
902
- // first slide
903
- if(slider.active.index === 0){
904
- // set the new position
905
- position = slider.children.eq(0).position();
906
- // carousel, last slide
907
- }else if(slider.active.index == getPagerQty() - 1 && slider.carousel){
908
- position = slider.children.eq((getPagerQty() - 1) * getMoveBy()).position();
909
- // last slide
910
- }else if(slider.active.index == slider.children.length - 1){
911
- position = slider.children.eq(slider.children.length - 1).position();
912
- }
913
- if(position){
914
- if (slider.settings.mode === 'horizontal') { setPositionProperty(-position.left, 'reset', 0); }
915
- else if (slider.settings.mode === 'vertical') { setPositionProperty(-position.top, 'reset', 0); }
916
- }
917
- }
918
- // declare that the transition is complete
919
- slider.working = false;
920
- // Added by Thomas
921
- if(slider.settings.mode == 'fade'){
922
- slider.viewport.css({overflow:''});
923
- }
924
- // onSlideAfter callback
925
- slider.settings.onSlideAfter(slider.children.eq(slider.active.index), slider.oldIndex, slider.active.index);
926
- };
927
-
928
- /**
929
- * Updates the auto controls state (either active, or combined switch)
930
- *
931
- * @param state (string) "start", "stop"
932
- * - the new state of the auto show
933
- */
934
- var updateAutoControls = function(state){
935
- // if autoControlsCombine is true, replace the current control with the new state
936
- if(slider.settings.autoControlsCombine){
937
- if ( slider.controls.autoEl ) {
938
- slider.controls.autoEl.html(slider.controls[state]);
939
- }
940
- // if autoControlsCombine is false, apply the "active" class to the appropriate control
941
- }else{
942
- slider.controls.autoEl.find('a').removeClass('active');
943
- slider.controls.autoEl.find('a:not(.soliloquy-' + state + ')').addClass('active');
944
- }
945
- };
946
-
947
- /**
948
- * Updates the direction controls (checks if either should be hidden)
949
- */
950
- var updateDirectionControls = function(){
951
- if(getPagerQty() == 1){
952
- slider.controls.prev.addClass('disabled');
953
- slider.controls.next.addClass('disabled');
954
- }else if(!slider.settings.infiniteLoop && slider.settings.hideControlOnEnd){
955
- // if first slide
956
- if (slider.active.index == 0){
957
- slider.controls.prev.addClass('disabled');
958
- slider.controls.next.removeClass('disabled');
959
- // if last slide
960
- }else if(slider.active.index == getPagerQty() - 1){
961
- slider.controls.next.addClass('disabled');
962
- slider.controls.prev.removeClass('disabled');
963
- // if any slide in the middle
964
- }else{
965
- slider.controls.prev.removeClass('disabled');
966
- slider.controls.next.removeClass('disabled');
967
- }
968
- }
969
- };
970
-
971
- /**
972
- * Initialzes the auto process
973
- */
974
- var initAuto = function(){
975
- // if autoDelay was supplied, launch the auto show using a setTimeout() call
976
- if(slider.settings.autoDelay > 0){
977
- var timeout = setTimeout(el.startAuto, slider.settings.autoDelay);
978
- // if autoDelay was not supplied, start the auto show normally
979
- }else{
980
- el.startAuto();
981
- }
982
- // if autoHover is requested
983
- if(slider.settings.autoHover){
984
- // on el hover
985
- el.hover(function(){
986
- // if the auto show is currently playing (has an active interval)
987
- if(slider.interval){
988
- // stop the auto show and pass true agument which will prevent control update
989
- el.stopAuto(true);
990
- // create a new autoPaused value which will be used by the relative "mouseout" event
991
- slider.autoPaused = true;
992
- }
993
- }, function(){
994
- // if the autoPaused value was created be the prior "mouseover" event
995
- if(slider.autoPaused){
996
- // start the auto show and pass true agument which will prevent control update
997
- el.startAuto(true);
998
- // reset the autoPaused value
999
- slider.autoPaused = null;
1000
- }
1001
- });
1002
- }
1003
- };
1004
-
1005
- /**
1006
- * Initialzes the ticker process
1007
- */
1008
- var initTicker = function(){
1009
- var startPosition = 0;
1010
- // if autoDirection is "next", append a clone of the entire slider
1011
- if(slider.settings.autoDirection == 'next'){
1012
- el.append(slider.children.clone().addClass('soliloquy-clone'));
1013
- // if autoDirection is "prev", prepend a clone of the entire slider, and set the left position
1014
- }else{
1015
- el.prepend(slider.children.clone().addClass('soliloquy-clone'));
1016
- var position = slider.children.first().position();
1017
- startPosition = slider.settings.mode == 'horizontal' ? -position.left : -position.top;
1018
- }
1019
- setPositionProperty(startPosition, 'reset', 0);
1020
- // do not allow controls in ticker mode
1021
- slider.settings.pager = false;
1022
- slider.settings.controls = false;
1023
- slider.settings.autoControls = false;
1024
- // if autoHover is requested
1025
- if(slider.settings.tickerHover && !slider.usingCSS){
1026
- // on el hover
1027
- slider.viewport.hover(function(){
1028
- el.stop();
1029
- }, function(){
1030
- // calculate the total width of children (used to calculate the speed ratio)
1031
- var totalDimens = 0;
1032
- slider.children.each(function(index){
1033
- totalDimens += slider.settings.mode == 'horizontal' ? $(this).outerWidth(true) : $(this).outerHeight(true);
1034
- });
1035
- // calculate the speed ratio (used to determine the new speed to finish the paused animation)
1036
- var ratio = slider.settings.speed / totalDimens;
1037
- // determine which property to use
1038
- var property = slider.settings.mode == 'horizontal' ? 'left' : 'top';
1039
- // calculate the new speed
1040
- var newSpeed = ratio * (totalDimens - (Math.abs(parseInt(el.css(property)))));
1041
- tickerLoop(newSpeed);
1042
- });
1043
- }
1044
- // start the ticker loop
1045
- tickerLoop();
1046
- };
1047
-
1048
- /**
1049
- * Runs a continuous loop, news ticker-style
1050
- */
1051
- var tickerLoop = function(resumeSpeed){
1052
- speed = resumeSpeed ? resumeSpeed : slider.settings.speed;
1053
- var position = {left: 0, top: 0};
1054
- var reset = {left: 0, top: 0};
1055
- // if "next" animate left position to last child, then reset left to 0
1056
- if(slider.settings.autoDirection == 'next'){
1057
- position = el.find('.soliloquy-clone').first().position();
1058
- // if "prev" animate left position to 0, then reset left to first non-clone child
1059
- }else{
1060
- reset = slider.children.first().position();
1061
- }
1062
- var animateProperty = slider.settings.mode == 'horizontal' ? -position.left : -position.top;
1063
- var resetValue = slider.settings.mode == 'horizontal' ? -reset.left : -reset.top;
1064
- var params = {resetValue: resetValue};
1065
- setPositionProperty(animateProperty, 'ticker', speed, params);
1066
- };
1067
-
1068
- /**
1069
- * Initializes touch events
1070
- */
1071
- var initTouch = function(){
1072
- // initialize object to contain all touch values
1073
- slider.touch = {
1074
- start: {x: 0, y: 0},
1075
- end: {x: 0, y: 0}
1076
- }
1077
- slider.viewport.bind('touchstart', onTouchStart);
1078
- };
1079
-
1080
- /**
1081
- * Event handler for "touchstart"
1082
- *
1083
- * @param e (event)
1084
- * - DOM event object
1085
- */
1086
- var onTouchStart = function(e){
1087
- if(slider.working){
1088
- e.preventDefault();
1089
- }else{
1090
- // record the original position when touch starts
1091
- slider.touch.originalPos = el.position();
1092
- var orig = e.originalEvent;
1093
- // record the starting touch x, y coordinates
1094
- slider.touch.start.x = orig.changedTouches[0].pageX;
1095
- slider.touch.start.y = orig.changedTouches[0].pageY;
1096
- // bind a "touchmove" event to the viewport
1097
- slider.viewport.bind('touchmove', onTouchMove);
1098
- // bind a "touchend" event to the viewport
1099
- slider.viewport.bind('touchend', onTouchEnd);
1100
- }
1101
- };
1102
-
1103
- /**
1104
- * Event handler for "touchmove"
1105
- *
1106
- * @param e (event)
1107
- * - DOM event object
1108
- */
1109
- var onTouchMove = function(e){
1110
- var orig = e.originalEvent;
1111
- // if scrolling on y axis, do not prevent default
1112
- var xMovement = Math.abs(orig.changedTouches[0].pageX - slider.touch.start.x);
1113
- var yMovement = Math.abs(orig.changedTouches[0].pageY - slider.touch.start.y);
1114
- // x axis swipe
1115
- if((xMovement * 3) > yMovement && slider.settings.preventDefaultSwipeX){
1116
- e.preventDefault();
1117
- // y axis swipe
1118
- }else if((yMovement * 3) > xMovement && slider.settings.preventDefaultSwipeY){
1119
- e.preventDefault();
1120
- }
1121
- if(slider.settings.mode != 'fade' && slider.settings.oneToOneTouch){
1122
- var value = 0;
1123
- // if horizontal, drag along x axis
1124
- if(slider.settings.mode == 'horizontal'){
1125
- var change = orig.changedTouches[0].pageX - slider.touch.start.x;
1126
- value = slider.touch.originalPos.left + change;
1127
- // if vertical, drag along y axis
1128
- }else{
1129
- var change = orig.changedTouches[0].pageY - slider.touch.start.y;
1130
- value = slider.touch.originalPos.top + change;
1131
- }
1132
- setPositionProperty(value, 'reset', 0);
1133
- }
1134
- };
1135
-
1136
- /**
1137
- * Event handler for "touchend"
1138
- *
1139
- * @param e (event)
1140
- * - DOM event object
1141
- */
1142
- var onTouchEnd = function(e){
1143
- slider.viewport.unbind('touchmove', onTouchMove);
1144
- var orig = e.originalEvent;
1145
- var value = 0;
1146
- // record end x, y positions
1147
- slider.touch.end.x = orig.changedTouches[0].pageX;
1148
- slider.touch.end.y = orig.changedTouches[0].pageY;
1149
- // if fade mode, check if absolute x distance clears the threshold
1150
- if(slider.settings.mode == 'fade'){
1151
- var distance = Math.abs(slider.touch.start.x - slider.touch.end.x);
1152
- if(distance >= slider.settings.swipeThreshold){
1153
- slider.touch.start.x > slider.touch.end.x ? el.goToNextSlide() : el.goToPrevSlide();
1154
- el.stopAuto();
1155
- }
1156
- // not fade mode
1157
- }else{
1158
- var distance = 0;
1159
- // calculate distance and el's animate property
1160
- if(slider.settings.mode == 'horizontal'){
1161
- distance = slider.touch.end.x - slider.touch.start.x;
1162
- value = slider.touch.originalPos.left;
1163
- }else{
1164
- distance = slider.touch.end.y - slider.touch.start.y;
1165
- value = slider.touch.originalPos.top;
1166
- }
1167
- // if not infinite loop and first / last slide, do not attempt a slide transition
1168
- if(!slider.settings.infiniteLoop && ((slider.active.index == 0 && distance > 0) || (slider.active.last && distance < 0))){
1169
- setPositionProperty(value, 'reset', 200);
1170
- }else{
1171
- // check if distance clears threshold
1172
- if(Math.abs(distance) >= slider.settings.swipeThreshold){
1173
- distance < 0 ? el.goToNextSlide() : el.goToPrevSlide();
1174
- el.stopAuto();
1175
- }else{
1176
- // el.animate(property, 200);
1177
- setPositionProperty(value, 'reset', 200);
1178
- }
1179
- }
1180
- }
1181
- slider.viewport.unbind('touchend', onTouchEnd);
1182
- };
1183
-
1184
- /**
1185
- * Window resize event callback
1186
- */
1187
- var resizeWindow = function(e){
1188
- // don't do anything if slider isn't initialized.
1189
- if(!slider.initialized) return;
1190
- // get the new window dimens (again, thank you IE)
1191
- var windowWidthNew = $(window).width();
1192
- var windowHeightNew = $(window).height();
1193
- // make sure that it is a true window resize
1194
- // *we must check this because our dinosaur friend IE fires a window resize event when certain DOM elements
1195
- // are resized. Can you just die already?*
1196
- if(windowWidth != windowWidthNew || windowHeight != windowHeightNew){
1197
- // set the new window dimens
1198
- windowWidth = windowWidthNew;
1199
- windowHeight = windowHeightNew;
1200
- // update all dynamic elements
1201
- el.redrawSlider();
1202
- // Call user resize handler
1203
- slider.settings.onSliderResize.call(el, slider.active.index);
1204
- }
1205
- };
1206
-
1207
- /**
1208
- * ===================================================================================
1209
- * = PUBLIC FUNCTIONS
1210
- * ===================================================================================
1211
- */
1212
-
1213
- /**
1214
- * Performs slide transition to the specified slide
1215
- *
1216
- * @param slideIndex (int)
1217
- * - the destination slide's index (zero-based)
1218
- *
1219
- * @param direction (string)
1220
- * - INTERNAL USE ONLY - the direction of travel ("prev" / "next")
1221
- */
1222
- el.goToSlide = function(slideIndex, direction){
1223
- // if plugin is currently in motion, ignore request
1224
- if(slider.working || slider.active.index == slideIndex) return;
1225
- // declare that plugin is in motion
1226
- slider.working = true;
1227
- // store the old index
1228
- slider.oldIndex = slider.active.index;
1229
- // if slideIndex is less than zero, set active index to last child (this happens during infinite loop)
1230
- if(slideIndex < 0){
1231
- slider.active.index = getPagerQty() - 1;
1232
- // if slideIndex is greater than children length, set active index to 0 (this happens during infinite loop)
1233
- }else if(slideIndex >= getPagerQty()){
1234
- slider.active.index = 0;
1235
- // set active index to requested slide
1236
- }else{
1237
- slider.active.index = slideIndex;
1238
- }
1239
- // onSlideBefore, onSlideNext, onSlidePrev callbacks
1240
- slider.settings.onSlideBefore(slider.children.eq(slider.active.index), slider.oldIndex, slider.active.index, slider.children.eq(slider.oldIndex));
1241
- if(direction == 'next'){
1242
- slider.settings.onSlideNext(slider.children.eq(slider.active.index), slider.oldIndex, slider.active.index);
1243
- }else if(direction == 'prev'){
1244
- slider.settings.onSlidePrev(slider.children.eq(slider.active.index), slider.oldIndex, slider.active.index);
1245
- }
1246
- // check if last slide
1247
- slider.active.last = slider.active.index >= getPagerQty() - 1;
1248
- // update the pager with active class
1249
- if(slider.settings.pager) updatePagerActive(slider.active.index);
1250
- // // check for direction control update
1251
- if(slider.settings.controls) updateDirectionControls();
1252
- // if slider is set to mode: "fade"
1253
- if(slider.settings.mode == 'fade'){
1254
- // Added by Thomas
1255
- slider.viewport.css({overflow:'hidden'});
1256
- // if adaptiveHeight is true and next height is different from current height, animate to the new height
1257
- if(slider.settings.adaptiveHeight && slider.viewport.height() != getViewportHeight()){
1258
- slider.viewport.animate({height: getViewportHeight()}, slider.settings.adaptiveHeightSpeed);
1259
- }
1260
- // fade out the visible child and reset its z-index value
1261
- slider.children.filter(':visible').fadeOut(slider.settings.speed).css({zIndex: 0});
1262
- // fade in the newly requested slide
1263
- slider.children.eq(slider.active.index).css('zIndex', slider.settings.slideZIndex+1).fadeIn(slider.settings.speed, function(){
1264
- $(this).css('zIndex', slider.settings.slideZIndex);
1265
- updateAfterSlideTransition();
1266
- });
1267
- // slider mode is not "fade"
1268
- }else{
1269
- // if adaptiveHeight is true and next height is different from current height, animate to the new height
1270
- if(slider.settings.adaptiveHeight && slider.viewport.height() != getViewportHeight()){
1271
- slider.viewport.animate({height: getViewportHeight()}, slider.settings.adaptiveHeightSpeed);
1272
- }
1273
- var moveBy = 0;
1274
- var position = {left: 0, top: 0};
1275
- // if carousel and not infinite loop
1276
- if(!slider.settings.infiniteLoop && slider.carousel && slider.active.last){
1277
- if(slider.settings.mode == 'horizontal'){
1278
- // get the last child position
1279
- var lastChild = slider.children.eq(slider.children.length - 1);
1280
- position = lastChild.position();
1281
- // calculate the position of the last slide
1282
- moveBy = slider.viewport.width() - lastChild.outerWidth();
1283
- }else{
1284
- // get last showing index position
1285
- var lastShowingIndex = slider.children.length - slider.settings.minSlides;
1286
- position = slider.children.eq(lastShowingIndex).position();
1287
- }
1288
- // horizontal carousel, going previous while on first slide (infiniteLoop mode)
1289
- }else if(slider.carousel && slider.active.last && direction == 'prev'){
1290
- // get the last child position
1291
- var eq = slider.settings.moveSlides == 1 ? slider.settings.maxSlides - getMoveBy() : ((getPagerQty() - 1) * getMoveBy()) - (slider.children.length - slider.settings.maxSlides);
1292
- var lastChild = el.children('.soliloquy-clone').eq(eq);
1293
- position = lastChild.position();
1294
- // if infinite loop and "Next" is clicked on the last slide
1295
- }else if(direction == 'next' && slider.active.index == 0){
1296
- // get the last clone position
1297
- position = el.find('> .soliloquy-clone').eq(slider.settings.maxSlides).position();
1298
- slider.active.last = false;
1299
- // normal non-zero requests
1300
- }else if(slideIndex >= 0){
1301
- var requestEl = slideIndex * getMoveBy();
1302
- position = slider.children.eq(requestEl).position();
1303
- }
1304
-
1305
- /* If the position doesn't exist
1306
- * (e.g. if you destroy the slider on a next click),
1307
- * it doesn't throw an error.
1308
- */
1309
- if ("undefined" !== typeof(position)) {
1310
- var value = slider.settings.mode == 'horizontal' ? -(position.left - moveBy) : -position.top;
1311
- // plugin values to be animated
1312
- setPositionProperty(value, 'slide', slider.settings.speed);
1313
- }
1314
- }
1315
- };
1316
-
1317
- /**
1318
- * Transitions to the next slide in the show
1319
- */
1320
- el.goToNextSlide = function(){
1321
- // if infiniteLoop is false and last page is showing, disregard call
1322
- if (!slider.settings.infiniteLoop && slider.active.last) return;
1323
- var pagerIndex = parseInt(slider.active.index) + 1;
1324
- el.goToSlide(pagerIndex, 'next');
1325
- };
1326
-
1327
- /**
1328
- * Transitions to the prev slide in the show
1329
- */
1330
- el.goToPrevSlide = function(){
1331
- // if infiniteLoop is false and last page is showing, disregard call
1332
- if (!slider.settings.infiniteLoop && slider.active.index == 0) return;
1333
- var pagerIndex = parseInt(slider.active.index) - 1;
1334
- el.goToSlide(pagerIndex, 'prev');
1335
- };
1336
-
1337
- /**
1338
- * Starts the auto show
1339
- *
1340
- * @param preventControlUpdate (boolean)
1341
- * - if true, auto controls state will not be updated
1342
- */
1343
- el.startAuto = function(preventControlUpdate){
1344
- // if an interval already exists, disregard call
1345
- if(slider.interval) return;
1346
- // create an interval
1347
- slider.interval = setInterval(function(){
1348
- slider.settings.autoDirection == 'next' ? el.goToNextSlide() : el.goToPrevSlide();
1349
- }, slider.settings.pause);
1350
- // if auto controls are displayed and preventControlUpdate is not true
1351
- if (slider.settings.autoControls && preventControlUpdate != true) updateAutoControls('stop');
1352
- };
1353
-
1354
- /**
1355
- * Stops the auto show
1356
- *
1357
- * @param preventControlUpdate (boolean)
1358
- * - if true, auto controls state will not be updated
1359
- */
1360
- el.stopAuto = function(preventControlUpdate){
1361
- // if no interval exists, disregard call
1362
- if(!slider.interval) return;
1363
- // clear the interval
1364
- clearInterval(slider.interval);
1365
- slider.interval = null;
1366
- // if auto controls are displayed and preventControlUpdate is not true
1367
- if (slider.settings.autoControls && preventControlUpdate != true) updateAutoControls('start');
1368
- };
1369
-
1370
- /**
1371
- * Returns current slide index (zero-based)
1372
- */
1373
- el.getCurrentSlide = function(){
1374
- return slider.active.index;
1375
- };
1376
-
1377
- /**
1378
- * Returns current slide element
1379
- */
1380
- el.getCurrentSlideElement = function(){
1381
- return slider.children.eq(slider.active.index);
1382
- };
1383
-
1384
- /**
1385
- * Returns number of slides in show
1386
- */
1387
- el.getSlideCount = function(){
1388
- return slider.children.length;
1389
- };
1390
-
1391
- /**
1392
- * Update all dynamic slider elements
1393
- */
1394
- el.redrawSlider = function(){
1395
- // resize all children in ratio to new screen size
1396
- slider.children.add(el.find('.soliloquy-clone')).width(getSlideWidth());
1397
- // adjust the height
1398
- slider.viewport.css('height', getViewportHeight());
1399
- // update the slide position
1400
- if(!slider.settings.ticker) {
1401
- setSlidePosition();
1402
- }
1403
- // if active.last was true before the screen resize, we want
1404
- // to keep it last no matter what screen size we end on
1405
- if (slider.active.last) {
1406
- slider.active.index = getPagerQty() - 1;
1407
- }
1408
- // if the active index (page) no longer exists due to the resize, simply set the index as last
1409
- if (slider.active.index >= getPagerQty()) {
1410
- slider.active.last = true;
1411
- }
1412
- // if a pager is being displayed and a custom pager is not being used, update it
1413
- if(slider.settings.pager && !slider.settings.pagerCustom){
1414
- populatePager();
1415
- updatePagerActive(slider.active.index);
1416
- }
1417
- };
1418
-
1419
- /**
1420
- * Destroy the current instance of the slider (revert everything back to original state)
1421
- */
1422
- el.destroySlider = function(){
1423
- // don't do anything if slider has already been destroyed
1424
- if(!slider.initialized) {
1425
- return;
1426
- }
1427
- slider.initialized = false;
1428
- $('.soliloquy-clone', this).remove();
1429
- slider.children.each(function() {
1430
- $(this).data("origStyle") !== undefined ? $(this).attr("style", $(this).data("origStyle")) : $(this).removeAttr('style');
1431
- });
1432
- $(this).data("origStyle") !== undefined ? this.attr("style", $(this).data("origStyle")) : $(this).removeAttr('style');
1433
- $(this).unwrap().unwrap();
1434
- if(slider.controls.el) {
1435
- slider.controls.el.remove();
1436
- }
1437
- if(slider.controls.next) {
1438
- slider.controls.next.remove();
1439
- }
1440
- if(slider.controls.prev) {
1441
- slider.controls.prev.remove();
1442
- }
1443
- if(slider.pagerEl && slider.settings.controls) {
1444
- slider.pagerEl.remove();
1445
- }
1446
- $('.soliloquy-caption', this).remove();
1447
- if(slider.controls.autoEl) {
1448
- slider.controls.autoEl.remove();
1449
- }
1450
- clearInterval(slider.interval);
1451
-
1452
- if(slider.settings.responsive) {
1453
- $(window).unbind('resize', resizeWindow);
1454
- }
1455
- };
1456
-
1457
- /**
1458
- * Reload the slider (revert all DOM changes, and re-initialize)
1459
- */
1460
- el.reloadSlider = function(settings){
1461
- if (settings !== undefined) {
1462
- options = settings;
1463
- }
1464
- el.destroySlider();
1465
- init();
1466
- };
1467
-
1468
- el.getSetting = function(setting){
1469
- if ( slider.settings[setting] ) {
1470
- return slider.settings[setting];
1471
- } else {
1472
- return false;
1473
- }
1474
- };
1475
-
1476
- init();
1477
-
1478
- // returns the current jQuery object
1479
- return this;
1480
- };
1481
-
1482
  })(jQuery, window, document);
1
+ ;
2
+ (function($, window, document, undefined) {
3
+
4
+ var plugin = {};
5
+
6
+ var defaults = {
7
+
8
+ // Added by Thomas
9
+ keyboard: false,
10
+
11
+ // GENERAL
12
+ mode: 'horizontal',
13
+ slideSelector: '',
14
+ infiniteLoop: true,
15
+ hideControlOnEnd: false,
16
+ speed: 500,
17
+ captionSpeed: 0,
18
+ easing: null,
19
+ slideMargin: 0,
20
+ startSlide: 0,
21
+ randomStart: false,
22
+ captions: false,
23
+ ticker: false,
24
+ tickerHover: false,
25
+ adaptiveHeight: false,
26
+ adaptiveHeightSpeed: 500,
27
+ video: false,
28
+ useCSS: true,
29
+ preloadImages: 'visible',
30
+ responsive: true,
31
+ slideZIndex: 50,
32
+ wrapperClass: 'soliloquy-wrapper',
33
+
34
+ // TOUCH
35
+ touchEnabled: true,
36
+ swipeThreshold: 50,
37
+ oneToOneTouch: true,
38
+ preventDefaultSwipeX: true,
39
+ preventDefaultSwipeY: false,
40
+
41
+ // PAGER
42
+ pager: true,
43
+ pagerType: 'full',
44
+ pagerShortSeparator: ' / ',
45
+ pagerSelector: null,
46
+ buildPager: null,
47
+ pagerCustom: null,
48
+
49
+ // CONTROLS
50
+ controls: true,
51
+ nextText: 'Next',
52
+ prevText: 'Prev',
53
+ nextSelector: null,
54
+ prevSelector: null,
55
+ autoControls: false,
56
+ startText: 'Start',
57
+ stopText: 'Stop',
58
+ autoControlsCombine: false,
59
+ autoControlsSelector: null,
60
+
61
+ // AUTO
62
+ auto: false,
63
+ pause: 4000,
64
+ autoStart: true,
65
+ autoDirection: 'next',
66
+ autoHover: false,
67
+ autoDelay: 0,
68
+ autoSlideForOnePage: false,
69
+
70
+ // CAROUSEL
71
+ minSlides: 1,
72
+ maxSlides: 1,
73
+ moveSlides: 0,
74
+ slideWidth: 0,
75
+
76
+ // CALLBACKS
77
+ onSliderLoad: function() {},
78
+ onSlideBefore: function() {},
79
+ onSlideAfter: function() {},
80
+ onSlideNext: function() {},
81
+ onSlidePrev: function() {},
82
+ onSliderResize: function() {}
83
+ };
84
+
85
+ $.fn.soliloquy = function(options){
86
+
87
+ if(this.length === 0) {
88
+ return this;
89
+ }
90
+
91
+ // support mutltiple elements
92
+ if(this.length > 1){
93
+ this.each(function(){$(this).soliloquy(options)});
94
+ return this;
95
+ }
96
+
97
+ // create a namespace to be used throughout the plugin
98
+ var slider = {},
99
+ // set a reference to our slider element
100
+ el = this,
101
+ // first get the original window dimens (thanks alot IE)
102
+ windowWidth = $(window).width(),
103
+ windowHeight = $(window).height();
104
+
105
+ /**
106
+ * ===================================================================================
107
+ * = PRIVATE FUNCTIONS
108
+ * ===================================================================================
109
+ */
110
+
111
+ /**
112
+ * Initializes namespace settings to be used throughout plugin
113
+ */
114
+ var init = function(){
115
+ // merge user-supplied options with the defaults
116
+ slider.settings = $.extend({}, defaults, options);
117
+ // parse slideWidth setting
118
+ slider.settings.slideWidth = parseInt(slider.settings.slideWidth);
119
+ // store the original children
120
+ slider.children = el.children(slider.settings.slideSelector);
121
+ // check if actual number of slides is less than minSlides / maxSlides
122
+ if(slider.children.length < slider.settings.minSlides) {
123
+ slider.settings.minSlides = slider.children.length;
124
+ }
125
+ if(slider.children.length < slider.settings.maxSlides) {
126
+ slider.settings.maxSlides = slider.children.length;
127
+ }
128
+ // if random start, set the startSlide setting to random number
129
+ if(slider.settings.randomStart) slider.settings.startSlide = Math.floor(Math.random() * slider.children.length);
130
+ // store active slide information
131
+ slider.active = { index: slider.settings.startSlide }
132
+ // store if the slider is in carousel mode (displaying / moving multiple slides)
133
+ slider.carousel = slider.settings.minSlides > 1 || slider.settings.maxSlides > 1;
134
+ // if carousel, force preloadImages = 'all'
135
+ if(slider.carousel) slider.settings.preloadImages = 'all';
136
+ // calculate the min / max width thresholds based on min / max number of slides
137
+ // used to setup and update carousel slides dimensions
138
+ slider.minThreshold = (slider.settings.minSlides * slider.settings.slideWidth) + ((slider.settings.minSlides - 1) * slider.settings.slideMargin);
139
+ slider.maxThreshold = (slider.settings.maxSlides * slider.settings.slideWidth) + ((slider.settings.maxSlides - 1) * slider.settings.slideMargin);
140
+ // store the current state of the slider (if currently animating, working is true)
141
+ slider.working = false;
142
+ // initialize the controls object
143
+ slider.controls = {};
144
+ // initialize an auto interval
145
+ slider.interval = null;
146
+ // determine which property to use for transitions
147
+ slider.animProp = slider.settings.mode == 'vertical' ? 'top' : 'left';
148
+ // determine if hardware acceleration can be used
149
+ slider.usingCSS = slider.settings.useCSS && slider.settings.mode != 'fade' && (function(){
150
+ // create our test div element
151
+ var div = document.createElement('div');
152
+ // css transition properties
153
+ var props = ['WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective'];
154
+ // test for each property
155
+ for(var i in props){
156
+ if(div.style[props[i]] !== undefined){
157
+ slider.cssPrefix = props[i].replace('Perspective', '').toLowerCase();
158
+ slider.animProp = '-' + slider.cssPrefix + '-transform';
159
+ return true;
160
+ }
161
+ }
162
+ return false;
163
+ }());
164
+ // if vertical mode always make maxSlides and minSlides equal
165
+ if(slider.settings.mode == 'vertical') slider.settings.maxSlides = slider.settings.minSlides;
166
+ // save original style data
167
+ el.data("origStyle", el.attr("style"));
168
+ el.children(slider.settings.slideSelector).each(function() {
169
+ $(this).data("origStyle", $(this).attr("style"));
170
+ });
171
+ // perform all DOM / CSS modifications
172
+ setup();
173
+ };
174
+
175
+ /**
176
+ * Performs all DOM and CSS modifications
177
+ */
178
+ var setup = function(){
179
+ // wrap el in a wrapper
180
+ el.wrap('<div class="' + slider.settings.wrapperClass + '"><div class="soliloquy-viewport"></div></div>');
181
+ // store a namspace reference to .soliloquy-viewport
182
+ slider.viewport = el.parent();
183
+ // add a loading div to display while images are loading
184
+ slider.loader = $('<div class="soliloquy-loading" />');
185
+ slider.viewport.prepend(slider.loader);
186
+ // set el to a massive width, to hold any needed slides
187
+ // also strip any margin and padding from el
188
+ el.css({
189
+ width: slider.settings.mode == 'horizontal' ? (slider.children.length * 100 + 215) + '%' : 'auto',
190
+ position: 'relative'
191
+ });
192
+ // if using CSS, add the easing property
193
+ if(slider.usingCSS && slider.settings.easing){
194
+ el.css('-' + slider.cssPrefix + '-transition-timing-function', slider.settings.easing);
195
+ // if not using CSS and no easing value was supplied, use the default JS animation easing (swing)
196
+ }else if(!slider.settings.easing){
197
+ slider.settings.easing = 'swing';
198
+ }
199
+ var slidesShowing = getNumberSlidesShowing();
200
+ // make modifications to the viewport (.soliloquy-viewport)
201
+ slider.viewport.css({
202
+ width: '100%',
203
+ position: 'relative'
204
+ });
205
+ if(slider.settings.mode != 'fade'){
206
+ slider.viewport.css({overflow:'hidden'});
207
+ }
208
+ slider.viewport.parent().css({
209
+ maxWidth: getViewportMaxWidth()
210
+ });
211
+ // make modification to the wrapper (.soliloquy-wrapper)
212
+ if(!slider.settings.pager) {
213
+ slider.viewport.parent().css({
214
+ margin: '0 auto 0px'
215
+ });
216
+ }
217
+ // apply css to all slider children
218
+ slider.children.css({
219
+ 'float': 'left',
220
+ listStyle: 'none',
221
+ position: 'relative'
222
+ });
223
+ // apply the calculated width after the float is applied to prevent scrollbar interference
224
+ slider.children.css('width', getSlideWidth());
225
+ // if slideMargin is supplied, add the css
226
+ if(slider.settings.mode == 'horizontal' && slider.settings.slideMargin > 0) slider.children.css('marginRight', slider.settings.slideMargin);
227
+ if(slider.settings.mode == 'vertical' && slider.settings.slideMargin > 0) slider.children.css('marginBottom', slider.settings.slideMargin);
228
+ // if "fade" mode, add positioning and z-index CSS
229
+ if(slider.settings.mode == 'fade'){
230
+ slider.children.css({
231
+ zIndex: 0,
232
+ display: 'none',
233
+ marginRight: '-100%',
234
+ width: '100%'
235
+ });
236
+ // prepare the z-index on the showing element
237
+ slider.children.eq(slider.settings.startSlide).css({zIndex: slider.settings.slideZIndex, display: 'block'});
238
+ }
239
+ // create an element to contain all slider controls (pager, start / stop, etc)
240
+ slider.controls.el = $('<div class="soliloquy-controls" />');
241
+ // if captions are requested, add them
242
+ if(slider.settings.captions) {
243
+ appendCaptions();
244
+ }
245
+ // check if startSlide is last slide
246
+ slider.active.last = slider.settings.startSlide == getPagerQty() - 1;
247
+ // Added by Thomas - removed fitVids support, no need.
248
+ // set the default preload selector (visible)
249
+ var preloadSelector = slider.children.eq(slider.settings.startSlide);
250
+ if (slider.settings.preloadImages == "all") {
251
+ preloadSelector = slider.children;
252
+ }
253
+ // only check for control addition if not in "ticker" mode
254
+ if(!slider.settings.ticker){
255
+ // if pager is requested, add it
256
+ if(slider.settings.pager) {
257
+ appendPager();
258
+ }
259
+ // if controls are requested, add them
260
+ if(slider.settings.controls) {
261
+ appendControls();
262
+ }
263
+ // if auto is true, and auto controls are requested, add them
264
+ if(slider.settings.auto && slider.settings.autoControls) {
265
+ appendControlsAuto();
266
+ }
267
+ // if any control option is requested, add the controls wrapper
268
+ if(slider.settings.controls || slider.settings.autoControls || slider.settings.pager) {
269
+ slider.viewport.after(slider.controls.el);
270
+ }
271
+ // if ticker mode, do not allow a pager
272
+ }else{
273
+ slider.settings.pager = false;
274
+ }
275
+ // preload all images, then perform final DOM / CSS modifications that depend on images being loaded
276
+ loadElements(preloadSelector, start);
277
+ };
278
+
279
+ var loadElements = function(selector, callback) {
280
+ var total = selector.find('img:not([src=""]), iframe').length,
281
+ count = 0;
282
+ if (total === 0) {
283
+ callback();
284
+ return;
285
+ }
286
+ selector.find('img:not([src=""]), iframe').each(function() {
287
+ $(this).one('load error', function() {
288
+ if (++count === total) { callback(); }
289
+ }).each(function() {
290
+ if (this.complete) { $(this).load(); }
291
+ });
292
+ });
293
+ };
294
+
295
+ /**
296
+ * Start the slider
297
+ */
298
+ var start = function(){
299
+
300
+ // if infinite loop, prepare additional slides
301
+ if(slider.settings.infiniteLoop && slider.settings.mode != 'fade' && !slider.settings.ticker && slider.children.length > 1){
302
+ var slice = slider.settings.mode == 'vertical' ? slider.settings.minSlides : slider.settings.maxSlides;
303
+ var sliceAppend = slider.children.slice(0, slice).clone(true).addClass('soliloquy-clone');
304
+ var slicePrepend = slider.children.slice(-slice).clone(true).addClass('soliloquy-clone');
305
+ el.append(sliceAppend).prepend(slicePrepend);
306
+ }
307
+
308
+ // remove the loading DOM element
309
+ slider.loader.remove();
310
+ // set the left / top position of "el"
311
+ setSlidePosition();
312
+ // if "vertical" mode, always use adaptiveHeight to prevent odd behavior
313
+ if (slider.settings.mode == 'vertical') slider.settings.adaptiveHeight = true;
314
+ // set the viewport height
315
+ slider.viewport.height(getViewportHeight());
316
+ // make sure everything is positioned just right (same as a window resize)
317
+ el.redrawSlider();
318
+ // onSliderLoad callback
319
+ slider.settings.onSliderLoad(slider.active.index);
320
+ // slider has been fully initialized
321
+ slider.initialized = true;
322
+ // bind the resize call to the window
323
+ if (slider.settings.responsive) {
324
+ $(window).bind('resize', resizeWindow);
325
+ }
326
+ // if auto is true and has more than 1 page, start the show
327
+ if (slider.settings.auto && slider.settings.autoStart && (getPagerQty() > 1 || slider.settings.autoSlideForOnePage)) {
328
+ initAuto();
329
+ }
330
+ // if ticker is true, start the ticker
331
+ if (slider.settings.ticker) {
332
+ initTicker();
333
+ }
334
+ // if pager is requested, make the appropriate pager link active
335
+ if (slider.settings.pager) {
336
+ updatePagerActive(slider.settings.startSlide);
337
+ }
338
+ // check for any updates to the controls (like hideControlOnEnd updates)
339
+ if (slider.settings.controls) {
340
+ updateDirectionControls();
341
+ }
342
+ // if touchEnabled is true, setup the touch events
343
+ if (slider.settings.touchEnabled && !slider.settings.ticker) {
344
+ initTouch();
345
+ }
346
+ // Added by Thomas
347
+ if (slider.settings.keyboard && !slider.settings.ticker) {
348
+ $( 'body' ).on('keydown', function(e) {
349
+ // Added by Tim
350
+ // Check the target (focused) element - if it's an input or textarea, don't do anything
351
+ // otherwise the user can't use arrow keys within inputs or textareas
352
+ if ( e.target.type == 'textarea' || e.target.type == 'input' ) {
353
+ return;
354
+ }
355
+
356
+ // If here, OK to change slide
357
+ if ( e.keyCode == 39 ) {
358
+ clickNextBind( e );
359
+ return false;
360
+ } else if ( e.keyCode == 37 ) {
361
+ clickPrevBind( e );
362
+ return false;
363
+ }
364
+ });
365
+ }
366
+ };
367
+
368
+ /**
369
+ * Returns the calculated height of the viewport, used to determine either adaptiveHeight or the maxHeight value
370
+ */
371
+ var getViewportHeight = function(){
372
+ var height = 0;
373
+ // first determine which children (slides) should be used in our height calculation
374
+ var children = $();
375
+ // if mode is not "vertical" and adaptiveHeight is false, include all children
376
+ if(slider.settings.mode != 'vertical' && !slider.settings.adaptiveHeight){
377
+ children = slider.children;
378
+ }else{
379
+ // if not carousel, return the single active child
380
+ if(!slider.carousel){
381
+ children = slider.children.eq(slider.active.index);
382
+ // if carousel, return a slice of children
383
+ }else{
384
+ // get the individual slide index
385
+ var currentIndex = slider.settings.moveSlides == 1 ? slider.active.index : slider.active.index * getMoveBy();
386
+ // add the current slide to the children
387
+ children = slider.children.eq(currentIndex);
388
+ // cycle through the remaining "showing" slides
389
+ for (i = 1; i <= slider.settings.maxSlides - 1; i++){
390
+ // if looped back to the start
391
+ if(currentIndex + i >= slider.children.length){
392
+ children = children.add(slider.children.eq(i - 1));
393
+ }else{
394
+ children = children.add(slider.children.eq(currentIndex + i));
395
+ }
396
+ }
397
+ }
398
+ }
399
+ // if "vertical" mode, calculate the sum of the heights of the children
400
+ if(slider.settings.mode == 'vertical'){
401
+ children.each(function(index) {
402
+ height += $(this).outerHeight();
403
+ });
404
+ // add user-supplied margins
405
+ if(slider.settings.slideMargin > 0){
406
+ height += slider.settings.slideMargin * (slider.settings.minSlides - 1);
407
+ }
408
+ // if not "vertical" mode, calculate the max height of the children
409
+ }else{
410
+ height = Math.max.apply(Math, children.map(function(){
411
+ return $(this).outerHeight(false);
412
+ }).get());
413
+ }
414
+
415
+ if(slider.viewport.css('box-sizing') == 'border-box'){
416
+ height += parseFloat(slider.viewport.css('padding-top')) + parseFloat(slider.viewport.css('padding-bottom')) +
417
+ parseFloat(slider.viewport.css('border-top-width')) + parseFloat(slider.viewport.css('border-bottom-width'));
418
+ }else if(slider.viewport.css('box-sizing') == 'padding-box'){
419
+ height += parseFloat(slider.viewport.css('padding-top')) + parseFloat(slider.viewport.css('padding-bottom'));
420
+ }
421
+
422
+ return height;
423
+ };
424
+
425
+ /**
426
+ * Returns the calculated width to be used for the outer wrapper / viewport
427
+ */
428
+ var getViewportMaxWidth = function(){
429
+ var width = '100%';
430
+ if(slider.settings.slideWidth > 0){
431
+ if(slider.settings.mode == 'horizontal'){
432
+ width = (slider.settings.maxSlides * slider.settings.slideWidth) + ((slider.settings.maxSlides - 1) * slider.settings.slideMargin);
433
+ }else{
434
+ width = slider.settings.slideWidth;
435
+ }
436
+ }
437
+ return (slider.settings.mode == 'fade') ? '100%' : width;
438
+ };
439
+
440
+ /**
441
+ * Returns the calculated width to be applied to each slide
442
+ */
443
+ var getSlideWidth = function(){
444
+ // start with any user-supplied slide width
445
+ var newElWidth = slider.settings.slideWidth;
446
+ // get the current viewport width
447
+ var wrapWidth = slider.viewport.width();
448
+ // if slide width was not supplied, or is larger than the viewport use the viewport width
449
+ if(slider.settings.slideWidth === 0 ||
450
+ (slider.settings.slideWidth > wrapWidth && !slider.carousel) ||
451
+ slider.settings.mode === 'vertical'){
452
+ newElWidth = wrapWidth;
453
+ // if carousel, use the thresholds to determine the width
454
+ }else if(slider.settings.maxSlides > 1 && slider.settings.mode === 'horizontal'){
455
+ if(wrapWidth > slider.maxThreshold){
456
+ // newElWidth = (wrapWidth - (slider.settings.slideMargin * (slider.settings.maxSlides - 1))) / slider.settings.maxSlides;
457
+ }else if(wrapWidth < slider.minThreshold){
458
+ newElWidth = (wrapWidth - (slider.settings.slideMargin * (slider.settings.minSlides - 1))) / slider.settings.minSlides;
459
+ }
460
+ }
461
+ return (slider.settings.mode == 'fade') ? '100%' : newElWidth;
462
+ };
463
+
464
+ /**
465
+ * Returns the number of slides currently visible in the viewport (includes partially visible slides)
466
+ */
467
+ var getNumberSlidesShowing = function(){
468
+ var slidesShowing = 1;
469
+ if(slider.settings.mode === 'horizontal' && slider.settings.slideWidth > 0){
470
+ // if viewport is smaller than minThreshold, return minSlides
471
+ if(slider.viewport.width() < slider.minThreshold){
472
+ slidesShowing = slider.settings.minSlides;
473
+ // if viewport is larger than minThreshold, return maxSlides
474
+ }else if(slider.viewport.width() > slider.maxThreshold){
475
+ slidesShowing = slider.settings.maxSlides;
476
+ // if viewport is between min / max thresholds, divide viewport width by first child width
477
+ }else{
478
+ var childWidth = slider.children.first().width() + slider.settings.slideMargin;
479
+ slidesShowing = Math.floor((slider.viewport.width() +
480
+ slider.settings.slideMargin) / childWidth);
481
+ }
482
+ // if "vertical" mode, slides showing will always be minSlides
483
+ }else if(slider.settings.mode === 'vertical'){
484
+ slidesShowing = slider.settings.minSlides;
485
+ }
486
+ return slidesShowing;
487
+ };
488
+
489
+ /**
490
+ * Returns the number of pages (one full viewport of slides is one "page")
491
+ */
492
+ var getPagerQty = function(){
493
+ var pagerQty = 0;
494
+ // if moveSlides is specified by the user
495
+ if(slider.settings.moveSlides > 0){
496
+ if(slider.settings.infiniteLoop){
497
+ pagerQty = Math.ceil(slider.children.length / getMoveBy());
498
+ }else{
499
+ // use a while loop to determine pages
500
+ var breakPoint = 0;
501
+ var counter = 0
502
+ // when breakpoint goes above children length, counter is the number of pages
503
+ while (breakPoint < slider.children.length){
504
+ ++pagerQty;
505
+ breakPoint = counter + getNumberSlidesShowing();
506
+ counter += slider.settings.moveSlides <= getNumberSlidesShowing() ? slider.settings.moveSlides : getNumberSlidesShowing();
507
+ }
508
+ }
509
+ // if moveSlides is 0 (auto) divide children length by sides showing, then round up
510
+ }else{
511
+ pagerQty = Math.ceil(slider.children.length / getNumberSlidesShowing());
512
+ }
513
+ return pagerQty;
514
+ };
515
+
516
+ /**
517
+ * Returns the number of indivual slides by which to shift the slider
518
+ */
519
+ var getMoveBy = function(){
520
+ // if moveSlides was set by the user and moveSlides is less than number of slides showing
521
+ if(slider.settings.moveSlides > 0 && slider.settings.moveSlides <= getNumberSlidesShowing()){
522
+ return slider.settings.moveSlides;
523
+ }
524
+ // if moveSlides is 0 (auto)
525
+ return getNumberSlidesShowing();
526
+ };
527
+
528
+ /**
529
+ * Sets the slider's (el) left or top position
530
+ */
531
+ var setSlidePosition = function(){
532
+
533
+ // if last slide, not infinite loop, and number of children is larger than specified maxSlides
534
+ if (slider.children.length > slider.settings.maxSlides && slider.active.last && !slider.settings.infiniteLoop) {
535
+
536
+ if (slider.settings.mode === 'horizontal') {
537
+
538
+ // get the last child's position
539
+ var lastChild = slider.children.last(),
540
+ position = lastChild.position();
541
+
542
+ // set the left position
543
+ setPositionProperty(-(position.left - (slider.viewport.width() - lastChild.outerWidth())), 'reset', 0);
544
+
545
+ } else if (slider.settings.mode === 'vertical') {
546
+
547
+ // get the last showing index's position
548
+ var lastShowingIndex = slider.children.length - slider.settings.minSlides;
549
+ var position = slider.children.eq(lastShowingIndex)
550
+ .position();
551
+
552
+ // set the top position
553
+ setPositionProperty(-position.top, 'reset', 0);
554
+ }
555
+
556
+ //If its not infinite loop
557
+ } else if (!slider.settings.infiniteLoop) {
558
+ var firstIndex = slider.active.index,
559
+ position = slider.children.eq(firstIndex)
560
+ .position();
561
+ // check for last slide
562
+ if (slider.active.index === getPagerQty() - 1) {
563
+ slider.active.last = true;
564
+ }
565
+ // set the repective position
566
+ if (position != undefined) {
567
+
568
+ if (slider.settings.mode === 'horizontal' && !slider.carousel) {
569
+ position.left = (slider.active.index) * slider.children.eq(firstIndex)
570
+ .outerWidth(true);
571
+ setPositionProperty(-position.left, 'reset', 0);
572
+ } else if (slider.settings.mode === 'vertical') {
573
+ position.top = (slider.active.index) * slider.children.eq(firstIndex)
574
+ .outerHeight(true);
575
+ setPositionProperty(-position.top, 'reset', 0);
576
+ }
577
+ }
578
+ } else {
579
+ var firstIndex = slider.active.index * getMoveBy(),
580
+ position = slider.children.eq(firstIndex)
581
+ .position();
582
+ // check for last slide
583
+ if (slider.active.index === getPagerQty() - 1) {
584
+ slider.active.last = true;
585
+ }
586
+ // set the repective position
587
+ if (position != undefined) {
588
+ if (slider.settings.mode === 'horizontal' && slider.children.length <= 1 ){
589
+ position.left = (slider.active.index ) * slider.children.eq(firstIndex)
590
+ .outerWidth(true);
591
+ setPositionProperty(-position.left, 'reset', 0);
592
+ }
593
+ else if (slider.settings.mode === 'horizontal' && !slider.carousel) {
594
+ position.left = (slider.active.index + 1) * slider.children.eq(firstIndex)
595
+ .outerWidth(true);
596
+ setPositionProperty(-position.left, 'reset', 0);
597
+
598
+ } else if (slider.settings.mode === 'vertical') {
599
+ position.top = (slider.active.index + 1) * slider.children.eq(firstIndex)
600
+ .outerHeight(true);
601
+ setPositionProperty(-position.top, 'reset', 0);
602
+ } else if (slider.carousel && slider.settings.mode === 'horizontal' && slider.settings.infiniteLoop) {
603
+ position.left = (slider.active.index + 1) * slider.children.eq(firstIndex)
604
+ .outerWidth(true);
605
+ setPositionProperty(-position.left * slider.settings.maxSlides, 'reset', 0);
606
+ }
607
+ }
608
+ }
609
+
610
+
611
+ };
612
+
613
+ /**
614
+ * Sets the el's animating property position (which in turn will sometimes animate el).
615
+ * If using CSS, sets the transform property. If not using CSS, sets the top / left property.
616
+ *
617
+ * @param value (int)
618
+ * - the animating property's value
619
+ *
620
+ * @param type (string) 'slider', 'reset', 'ticker'
621
+ * - the type of instance for which the function is being
622
+ *
623
+ * @param duration (int)
624
+ * - the amount of time (in ms) the transition should occupy
625
+ *
626
+ * @param params (array) optional
627
+ * - an optional parameter containing any variables that need to be passed in
628
+ */
629
+ var setPositionProperty = function(value, type, duration, params){
630
+ // use CSS transform
631
+ if(slider.usingCSS){
632
+ // determine the translate3d value
633
+ var propValue = slider.settings.mode === 'vertical' ? 'translate3d(0, ' + value + 'px, 0)' : 'translate3d(' + value + 'px, 0, 0)';
634
+ // add the CSS transition-duration
635
+ el.css('-' + slider.cssPrefix + '-transition-duration', duration / 1000 + 's');
636
+ if(type === 'slide'){
637
+ // set the property value
638
+ el.css(slider.animProp, propValue);
639
+ // bind a callback method - executes when CSS transition completes
640
+ el.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function(){
641
+ // unbind the callback
642
+ el.unbind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd');
643
+ updateAfterSlideTransition();
644
+ });
645
+ }else if(type === 'reset'){
646
+ el.css(slider.animProp, propValue);
647
+ }else if(type === 'ticker'){
648
+ // make the transition use 'linear'
649
+ el.css('-' + slider.cssPrefix + '-transition-timing-function', 'linear');
650
+ el.css(slider.animProp, propValue);
651
+ // bind a callback method - executes when CSS transition completes
652
+ el.bind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function(){
653
+ // unbind the callback
654
+ el.unbind('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd');
655
+ // reset the position
656
+ setPositionProperty(params['resetValue'], 'reset', 0);
657
+ // start the loop again
658
+ tickerLoop();
659
+ });
660
+ }
661
+ // use JS animate
662
+ }else{
663
+ var animateObj = {};
664
+ animateObj[slider.animProp] = value;
665
+ if(type === 'slide'){
666
+ el.animate(animateObj, duration, slider.settings.easing, function(){
667
+ updateAfterSlideTransition();
668
+ });
669
+ }else if(type === 'reset'){
670
+ el.css(slider.animProp, value)
671
+ }else if(type === 'ticker'){
672
+ el.animate(animateObj, speed, 'linear', function(){
673
+ setPositionProperty(params['resetValue'], 'reset', 0);
674
+ // run the recursive loop after animation
675
+ tickerLoop();
676
+ });
677
+ }
678
+ }
679
+ };
680
+
681
+ /**
682
+ * Populates the pager with proper amount of pages
683
+ */
684
+ var populatePager = function(){
685
+ var pagerHtml = '';
686
+ var pagerQty = getPagerQty();
687
+ // loop through each pager item
688
+ for(var i=0; i < pagerQty; i++){
689
+ var linkContent = '';
690
+ // if a buildPager function is supplied, use it to get pager link value, else use index + 1
691
+ if(slider.settings.buildPager && $.isFunction(slider.settings.buildPager)){
692
+ linkContent = slider.settings.buildPager(i);
693
+ slider.pagerEl.addClass('soliloquy-custom-pager');
694
+ }else{
695
+ linkContent = i + 1;
696
+ slider.pagerEl.addClass('soliloquy-default-pager');
697
+ }
698
+ // var linkContent = slider.settings.buildPager && $.isFunction(slider.settings.buildPager) ? slider.settings.buildPager(i) : i + 1;
699
+ // add the markup to the string
700
+ pagerHtml += '<div class="soliloquy-pager-item"><a href="" data-slide-index="' + i + '" class="soliloquy-pager-link" tabindex="0"><span>' + linkContent + '</span></a></div>';
701
+ };
702
+ // populate the pager element with pager links
703
+ slider.pagerEl.html(pagerHtml);
704
+ };
705
+
706
+ /**
707
+ * Appends the pager to the controls element
708
+ */
709
+ var appendPager = function(){
710
+ // Create container for pager
711
+ if (!slider.settings.pagerCustom) {
712
+ // Auto generated pager - create container
713
+ slider.pagerEl = $('<div class="soliloquy-pager" />');
714
+ } else {
715
+ // Manually specified pager - insert
716
+ slider.pagerEl = $(slider.settings.pagerCustom);
717
+ }
718
+
719
+ // If a pager selector was supplied, populate it with the pager
720
+ if (slider.settings.pagerSelector) {
721
+ $(slider.settings.pagerSelector).html(slider.pagerEl);
722
+ } else {
723
+ slider.controls.el.addClass('soliloquy-has-pager').append(slider.pagerEl);
724
+ }
725
+
726
+ // If we are not using a custom pager, automatically populated slider.pagerEl
727
+ if (!slider.settings.pagerCustom) {
728
+ populatePager();
729
+ }
730
+
731
+ // Assign the clickPagerBind event
732
+ slider.pagerEl.on('click', 'a', clickPagerBind);
733
+ };
734
+
735
+ /**
736
+ * Appends prev / next controls to the controls element
737
+ */
738
+ var appendControls = function(){
739
+ slider.controls.next = $('<a class="soliloquy-next" href="" tabindex="0"><span>' + slider.settings.nextText + '</span></a>');
740
+ slider.controls.prev = $('<a class="soliloquy-prev" href="" tabindex="0"><span>' + slider.settings.prevText + '</span></a>');
741
+ // bind click actions to the controls
742
+ slider.controls.next.bind('click', clickNextBind);
743
+ slider.controls.prev.bind('click', clickPrevBind);
744
+ // if nextSlector was supplied, populate it
745
+ if(slider.settings.nextSelector){
746
+ $(slider.settings.nextSelector).append(slider.controls.next);
747
+ }
748
+ // if prevSlector was supplied, populate it
749
+ if(slider.settings.prevSelector){
750
+ $(slider.settings.prevSelector).append(slider.controls.prev);
751
+ }
752
+ // if no custom selectors were supplied
753
+ if(!slider.settings.nextSelector && !slider.settings.prevSelector){
754
+ // add the controls to the DOM
755
+ slider.controls.directionEl = $('<div class="soliloquy-controls-direction" />');
756
+ // add the control elements to the directionEl
757
+ slider.controls.directionEl.append(slider.controls.prev).append(slider.controls.next);
758
+ // slider.viewport.append(slider.controls.directionEl);
759
+ slider.controls.el.addClass('soliloquy-has-controls-direction').append(slider.controls.directionEl);
760
+ }
761
+ };
762
+
763
+ /**
764
+ * Appends start / stop auto controls to the controls element
765
+ */
766
+ var appendControlsAuto = function(){
767
+ slider.controls.start = $('<div class="soliloquy-controls-auto-item"><a class="soliloquy-start" href="" aria-label="play" tabindex="0"><span>' + slider.settings.startText + '</span></a></div>');
768
+ slider.controls.stop = $('<div class="soliloquy-controls-auto-item"><a class="soliloquy-stop" href="" aria-label="pause" tabindex="0"><span>' + slider.settings.stopText + '</span></a></div>');
769
+ // add the controls to the DOM
770
+ slider.controls.autoEl = $('<div class="soliloquy-controls-auto" />');
771
+ // bind click actions to the controls
772
+ slider.controls.autoEl.on('click', '.soliloquy-start', clickStartBind);
773
+ slider.controls.autoEl.on('click', '.soliloquy-stop', clickStopBind);
774
+ // if autoControlsCombine, insert only the "start" control
775
+ if(slider.settings.autoControlsCombine){
776
+ slider.controls.autoEl.append(slider.controls.start);
777
+ // if autoControlsCombine is false, insert both controls
778
+ }else{
779
+ slider.controls.autoEl.append(slider.controls.start).append(slider.controls.stop);
780
+ }
781
+ // if auto controls selector was supplied, populate it with the controls
782
+ if(slider.settings.autoControlsSelector){
783
+ $(slider.settings.autoControlsSelector).html(slider.controls.autoEl);
784
+ // if auto controls selector was not supplied, add it after the wrapper
785
+ }else{
786
+ slider.controls.el.addClass('soliloquy-has-controls-auto').append(slider.controls.autoEl);
787
+ }
788
+ // update the auto controls
789
+ updateAutoControls(slider.settings.autoStart ? 'stop' : 'start');
790
+ };
791
+
792
+ /**
793
+ * Appends image captions to the DOM
794
+ */
795
+ var appendCaptions = function(){
796
+ // cycle through each child
797
+ slider.children.each(function(index){
798
+ // get the image title attribute
799
+ var title = $(this).find('img:first').attr('title');
800
+ // append the caption
801
+ if (title != undefined && ('' + title).length) {
802
+ $(this).append('<div class="soliloquy-caption"><span>' + title + '</span></div>');
803
+ }
804
+ });
805
+ };
806
+
807
+ /**
808
+ * Click next binding
809
+ *
810
+ * @param e (event)
811
+ * - DOM event object
812
+ */
813
+ var clickNextBind = function(e){
814
+ // if auto show is running, stop it
815
+ if (slider.settings.auto) el.stopAuto();
816
+ el.goToNextSlide();
817
+ e.preventDefault();
818
+ };
819
+
820
+ /**
821
+ * Click prev binding
822
+ *
823
+ * @param e (event)
824
+ * - DOM event object
825
+ */
826
+ var clickPrevBind = function(e){
827
+ // if auto show is running, stop it
828
+ if (slider.settings.auto) el.stopAuto();
829
+ el.goToPrevSlide();
830
+ e.preventDefault();
831
+ };
832
+
833
+ /**
834
+ * Click start binding
835
+ *
836
+ * @param e (event)
837
+ * - DOM event object
838
+ */
839
+ var clickStartBind = function(e){
840
+ el.startAuto();
841
+ e.preventDefault();
842
+ };
843
+
844
+ /**
845
+ * Click stop binding
846
+ *
847
+ * @param e (event)
848
+ * - DOM event object
849
+ */
850
+ var clickStopBind = function(e){
851
+ el.stopAuto();
852
+ e.preventDefault();
853
+ };
854
+
855
+ /**
856
+ * Click pager binding
857
+ *
858
+ * @param e (event)
859
+ * - DOM event object
860
+ */
861
+ var clickPagerBind = function(e){
862
+ // if auto show is running, stop it
863
+ if (slider.settings.auto) el.stopAuto();
864
+ var pagerLink = $(e.currentTarget);
865
+ if(pagerLink.attr('data-slide-index') !== undefined){
866
+ var pagerIndex = parseInt(pagerLink.attr('data-slide-index'));
867
+ // if clicked pager link is not active, continue with the goToSlide call
868
+ if(pagerIndex != slider.active.index) el.goToSlide(pagerIndex);
869
+ e.preventDefault();
870
+ }
871
+ };
872
+
873
+ /**
874
+ * Updates the pager links with an active class
875
+ *
876
+ * @param slideIndex (int)
877
+ * - index of slide to make active
878
+ */
879
+ var updatePagerActive = function(slideIndex){
880
+ // if "short" pager type
881
+ var len = slider.children.length; // nb of children
882
+ if(slider.settings.pagerType === 'short'){
883
+ if(slider.settings.maxSlides > 1) {
884
+ len = Math.ceil(slider.children.length/slider.settings.maxSlides);
885
+ }
886
+ slider.pagerEl.html( (slideIndex + 1) + slider.settings.pagerShortSeparator + len);
887
+ return;
888
+ }
889
+ // remove all pager active classes
890
+ slider.pagerEl.find('a').removeClass('active');
891
+ // apply the active class for all pagers
892
+ slider.pagerEl.each(function(i, el) { $(el).find('a').eq(slideIndex).addClass('active'); });
893
+ };
894
+
895
+ /**
896
+ * Performs needed actions after a slide transition
897
+ */
898
+ var updateAfterSlideTransition = function(){
899
+ // if infinte loop is true
900
+ if(slider.settings.infiniteLoop){
901
+ var position = '';
902
+ // first slide
903
+ if(slider.active.index === 0){
904
+ // set the new position
905
+ position = slider.children.eq(0).position();
906
+ // carousel, last slide
907
+ }else if(slider.active.index == getPagerQty() - 1 && slider.carousel){
908
+ position = slider.children.eq((getPagerQty() - 1) * getMoveBy()).position();
909
+ // last slide
910
+ }else if(slider.active.index == slider.children.length - 1){
911
+ position = slider.children.eq(slider.children.length - 1).position();
912
+ }
913
+ if(position){
914
+ if (slider.settings.mode === 'horizontal') { setPositionProperty(-position.left, 'reset', 0); }
915
+ else if (slider.settings.mode === 'vertical') { setPositionProperty(-position.top, 'reset', 0); }
916
+ }
917
+ }
918
+ // declare that the transition is complete
919
+ slider.working = false;
920
+ // Added by Thomas
921
+ if(slider.settings.mode == 'fade'){
922
+ slider.viewport.css({overflow:''});
923
+ }
924
+ // onSlideAfter callback
925
+ slider.settings.onSlideAfter(slider.children.eq(slider.active.index), slider.oldIndex, slider.active.index);
926
+ };
927
+
928
+ /**
929
+ * Updates the auto controls state (either active, or combined switch)
930
+ *
931
+ * @param state (string) "start", "stop"
932
+ * - the new state of the auto show
933
+ */
934
+ var updateAutoControls = function(state){
935
+ // if autoControlsCombine is true, replace the current control with the new state
936
+ if(slider.settings.autoControlsCombine){
937
+ if ( slider.controls.autoEl ) {
938
+ slider.controls.autoEl.html(slider.controls[state]);
939
+ }
940
+ // if autoControlsCombine is false, apply the "active" class to the appropriate control
941
+ }else{
942
+ slider.controls.autoEl.find('a').removeClass('active');
943
+ slider.controls.autoEl.find('a:not(.soliloquy-' + state + ')').addClass('active');
944
+ }
945
+ };
946
+
947
+ /**
948
+ * Updates the direction controls (checks if either should be hidden)
949
+ */
950
+ var updateDirectionControls = function(){
951
+ if(getPagerQty() == 1){
952
+ slider.controls.prev.addClass('disabled');
953
+ slider.controls.next.addClass('disabled');
954
+ }else if(!slider.settings.infiniteLoop && slider.settings.hideControlOnEnd){
955
+ // if first slide
956
+ if (slider.active.index == 0){
957
+ slider.controls.prev.addClass('disabled');
958
+ slider.controls.next.removeClass('disabled');
959
+ // if last slide
960
+ }else if(slider.active.index == getPagerQty() - 1){
961
+ slider.controls.next.addClass('disabled');
962
+ slider.controls.prev.removeClass('disabled');
963
+ // if any slide in the middle
964
+ }else{
965
+ slider.controls.prev.removeClass('disabled');
966
+ slider.controls.next.removeClass('disabled');
967
+ }
968
+ }
969
+ };
970
+
971
+ /**
972
+ * Initialzes the auto process
973
+ */
974
+ var initAuto = function(){
975
+ // if autoDelay was supplied, launch the auto show using a setTimeout() call
976
+ if(slider.settings.autoDelay > 0){
977
+ var timeout = setTimeout(el.startAuto, slider.settings.autoDelay);
978
+ // if autoDelay was not supplied, start the auto show normally
979
+ }else{
980
+ el.startAuto();
981
+ }
982
+ // if autoHover is requested
983
+ if(slider.settings.autoHover){
984
+ // on el hover
985
+ el.hover(function(){
986
+ // if the auto show is currently playing (has an active interval)
987
+ if(slider.interval){
988
+ // stop the auto show and pass true agument which will prevent control update
989
+ el.stopAuto(true);
990
+ // create a new autoPaused value which will be used by the relative "mouseout" event
991
+ slider.autoPaused = true;
992
+ }
993
+ }, function(){
994
+ // if the autoPaused value was created be the prior "mouseover" event
995
+ if(slider.autoPaused){
996
+ // start the auto show and pass true agument which will prevent control update
997
+ el.startAuto(true);
998
+ // reset the autoPaused value
999
+ slider.autoPaused = null;
1000
+ }
1001
+ });
1002
+ }
1003
+ };
1004
+
1005
+ /**
1006
+ * Initialzes the ticker process
1007
+ */
1008
+ var initTicker = function(){
1009
+ var startPosition = 0;
1010
+ // if autoDirection is "next", append a clone of the entire slider
1011
+ if(slider.settings.autoDirection == 'next'){
1012
+ el.append(slider.children.clone().addClass('soliloquy-clone'));
1013
+ // if autoDirection is "prev", prepend a clone of the entire slider, and set the left position
1014
+ }else{
1015
+ el.prepend(slider.children.clone().addClass('soliloquy-clone'));
1016
+ var position = slider.children.first().position();
1017
+ startPosition = slider.settings.mode == 'horizontal' ? -position.left : -position.top;
1018
+ }
1019
+ setPositionProperty(startPosition, 'reset', 0);
1020
+ // do not allow controls in ticker mode
1021
+ slider.settings.pager = false;
1022
+ slider.settings.controls = false;
1023
+ slider.settings.autoControls = false;
1024
+ // if autoHover is requested
1025
+ if(slider.settings.tickerHover && !slider.usingCSS){
1026
+ // on el hover
1027
+ slider.viewport.hover(function(){
1028
+ el.stop();
1029
+ }, function(){
1030
+ // calculate the total width of children (used to calculate the speed ratio)
1031
+ var totalDimens = 0;
1032
+ slider.children.each(function(index){
1033
+ totalDimens += slider.settings.mode == 'horizontal' ? $(this).outerWidth(true) : $(this).outerHeight(true);
1034
+ });
1035
+ // calculate the speed ratio (used to determine the new speed to finish the paused animation)
1036
+ var ratio = slider.settings.speed / totalDimens;
1037
+ // determine which property to use
1038
+ var property = slider.settings.mode == 'horizontal' ? 'left' : 'top';
1039
+ // calculate the new speed
1040
+ var newSpeed = ratio * (totalDimens - (Math.abs(parseInt(el.css(property)))));
1041
+ tickerLoop(newSpeed);
1042
+ });
1043
+ }
1044
+ // start the ticker loop
1045
+ tickerLoop();
1046
+ };
1047
+
1048
+ /**
1049
+ * Runs a continuous loop, news ticker-style
1050
+ */
1051
+ var tickerLoop = function(resumeSpeed){
1052
+ speed = resumeSpeed ? resumeSpeed : slider.settings.speed;
1053
+ var position = {left: 0, top: 0};
1054
+ var reset = {left: 0, top: 0};
1055
+ // if "next" animate left position to last child, then reset left to 0
1056
+ if(slider.settings.autoDirection == 'next'){
1057
+ position = el.find('.soliloquy-clone').first().position();
1058
+ // if "prev" animate left position to 0, then reset left to first non-clone child
1059
+ }else{
1060
+ reset = slider.children.first().position();
1061
+ }
1062
+ var animateProperty = slider.settings.mode == 'horizontal' ? -position.left : -position.top;
1063
+ var resetValue = slider.settings.mode == 'horizontal' ? -reset.left : -reset.top;
1064
+ var params = {resetValue: resetValue};
1065
+ setPositionProperty(animateProperty, 'ticker', speed, params);
1066
+ };
1067
+
1068
+ /**
1069
+ * Initializes touch events
1070
+ */
1071
+ var initTouch = function(){
1072
+ // initialize object to contain all touch values
1073
+ slider.touch = {
1074
+ start: {x: 0, y: 0},
1075
+ end: {x: 0, y: 0}
1076
+ }
1077
+ slider.viewport.bind('touchstart', onTouchStart);
1078
+ };
1079
+
1080
+ /**
1081
+ * Event handler for "touchstart"
1082
+ *
1083
+ * @param e (event)
1084
+ * - DOM event object
1085
+ */
1086
+ var onTouchStart = function(e){
1087
+ if(slider.working){
1088
+ e.preventDefault();
1089
+ }else{
1090
+ // record the original position when touch starts
1091
+ slider.touch.originalPos = el.position();
1092
+ var orig = e.originalEvent;
1093
+ // record the starting touch x, y coordinates
1094
+ slider.touch.start.x = orig.changedTouches[0].pageX;
1095
+ slider.touch.start.y = orig.changedTouches[0].pageY;
1096
+ // bind a "touchmove" event to the viewport
1097
+ slider.viewport.bind('touchmove', onTouchMove);
1098
+ // bind a "touchend" event to the viewport
1099
+ slider.viewport.bind('touchend', onTouchEnd);
1100
+ }
1101
+ };
1102
+
1103
+ /**
1104
+ * Event handler for "touchmove"
1105
+ *
1106
+ * @param e (event)
1107
+ * - DOM event object
1108
+ */
1109
+ var onTouchMove = function(e){
1110
+ var orig = e.originalEvent;
1111
+ // if scrolling on y axis, do not prevent default
1112
+ var xMovement = Math.abs(orig.changedTouches[0].pageX - slider.touch.start.x);
1113
+ var yMovement = Math.abs(orig.changedTouches[0].pageY - slider.touch.start.y);
1114
+ // x axis swipe
1115
+ if((xMovement * 3) > yMovement && slider.settings.preventDefaultSwipeX){
1116
+ e.preventDefault();
1117
+ // y axis swipe
1118
+ }else if((yMovement * 3) > xMovement && slider.settings.preventDefaultSwipeY){
1119
+ e.preventDefault();
1120
+ }
1121
+ if(slider.settings.mode != 'fade' && slider.settings.oneToOneTouch){
1122
+ var value = 0;
1123
+ // if horizontal, drag along x axis
1124
+ if(slider.settings.mode == 'horizontal'){
1125
+ var change = orig.changedTouches[0].pageX - slider.touch.start.x;
1126
+ value = slider.touch.originalPos.left + change;
1127
+ // if vertical, drag along y axis
1128
+ }else{
1129
+ var change = orig.changedTouches[0].pageY - slider.touch.start.y;
1130
+ value = slider.touch.originalPos.top + change;
1131
+ }
1132
+ setPositionProperty(value, 'reset', 0);
1133
+ }
1134
+ };
1135
+
1136
+ /**
1137
+ * Event handler for "touchend"
1138
+ *
1139
+ * @param e (event)
1140
+ * - DOM event object
1141
+ */
1142
+ var onTouchEnd = function(e){
1143
+ slider.viewport.unbind('touchmove', onTouchMove);
1144
+ var orig = e.originalEvent;
1145
+ var value = 0;
1146
+ // record end x, y positions
1147
+ slider.touch.end.x = orig.changedTouches[0].pageX;
1148
+ slider.touch.end.y = orig.changedTouches[0].pageY;
1149
+ // if fade mode, check if absolute x distance clears the threshold
1150
+ if(slider.settings.mode == 'fade'){
1151
+ var distance = Math.abs(slider.touch.start.x - slider.touch.end.x);
1152
+ if(distance >= slider.settings.swipeThreshold){
1153
+ slider.touch.start.x > slider.touch.end.x ? el.goToNextSlide() : el.goToPrevSlide();
1154
+ el.stopAuto();
1155
+ }
1156
+ // not fade mode
1157
+ }else{
1158
+ var distance = 0;
1159
+ // calculate distance and el's animate property
1160
+ if(slider.settings.mode == 'horizontal'){
1161
+ distance = slider.touch.end.x - slider.touch.start.x;
1162
+ value = slider.touch.originalPos.left;
1163
+ }else{
1164
+ distance = slider.touch.end.y - slider.touch.start.y;
1165
+ value = slider.touch.originalPos.top;
1166
+ }
1167
+ // if not infinite loop and first / last slide, do not attempt a slide transition
1168
+ if(!slider.settings.infiniteLoop && ((slider.active.index == 0 && distance > 0) || (slider.active.last && distance < 0))){
1169
+ setPositionProperty(value, 'reset', 200);
1170
+ }else{
1171
+ // check if distance clears threshold
1172
+ if(Math.abs(distance) >= slider.settings.swipeThreshold){
1173
+ distance < 0 ? el.goToNextSlide() : el.goToPrevSlide();
1174
+ el.stopAuto();
1175
+ }else{
1176
+ // el.animate(property, 200);
1177
+ setPositionProperty(value, 'reset', 200);
1178
+ }
1179
+ }
1180
+ }
1181
+ slider.viewport.unbind('touchend', onTouchEnd);
1182
+ };
1183
+
1184
+ /**
1185
+ * Window resize event callback
1186
+ */
1187
+ var resizeWindow = function(e){
1188
+ // don't do anything if slider isn't initialized.
1189
+ if(!slider.initialized) return;
1190
+ // get the new window dimens (again, thank you IE)
1191
+ var windowWidthNew = $(window).width();
1192
+ var windowHeightNew = $(window).height();
1193
+ // make sure that it is a true window resize
1194
+ // *we must check this because our dinosaur friend IE fires a window resize event when certain DOM elements
1195
+ // are resized. Can you just die already?*
1196
+ if(windowWidth != windowWidthNew || windowHeight != windowHeightNew){
1197
+ // set the new window dimens
1198
+ windowWidth = windowWidthNew;
1199
+ windowHeight = windowHeightNew;
1200
+ // update all dynamic elements
1201
+ el.redrawSlider();
1202
+ // Call user resize handler
1203
+ slider.settings.onSliderResize.call(el, slider.active.index);
1204
+ }
1205
+ };
1206
+
1207
+ /**
1208
+ * ===================================================================================
1209
+ * = PUBLIC FUNCTIONS
1210
+ * ===================================================================================
1211
+ */
1212
+
1213
+ /**
1214
+ * Performs slide transition to the specified slide
1215
+ *
1216
+ * @param slideIndex (int)
1217
+ * - the destination slide's index (zero-based)
1218
+ *
1219
+ * @param direction (string)
1220
+ * - INTERNAL USE ONLY - the direction of travel ("prev" / "next")
1221
+ */
1222
+ el.goToSlide = function(slideIndex, direction){
1223
+ // if plugin is currently in motion, ignore request
1224
+ if(slider.working || slider.active.index == slideIndex) return;
1225
+ // declare that plugin is in motion
1226
+ slider.working = true;
1227
+ // store the old index
1228
+ slider.oldIndex = slider.active.index;
1229
+ // if slideIndex is less than zero, set active index to last child (this happens during infinite loop)
1230
+ if(slideIndex < 0){
1231
+ slider.active.index = getPagerQty() - 1;
1232
+ // if slideIndex is greater than children length, set active index to 0 (this happens during infinite loop)
1233
+ }else if(slideIndex >= getPagerQty()){
1234
+ slider.active.index = 0;
1235
+ // set active index to requested slide
1236
+ }else{
1237
+ slider.active.index = slideIndex;
1238
+ }
1239
+ // onSlideBefore, onSlideNext, onSlidePrev callbacks
1240
+ slider.settings.onSlideBefore(slider.children.eq(slider.active.index), slider.oldIndex, slider.active.index, slider.children.eq(slider.oldIndex));
1241
+ if(direction == 'next'){
1242
+ slider.settings.onSlideNext(slider.children.eq(slider.active.index), slider.oldIndex, slider.active.index);
1243
+ }else if(direction == 'prev'){
1244
+ slider.settings.onSlidePrev(slider.children.eq(slider.active.index), slider.oldIndex, slider.active.index);
1245
+ }
1246
+ // check if last slide
1247
+ slider.active.last = slider.active.index >= getPagerQty() - 1;
1248
+ // update the pager with active class
1249
+ if(slider.settings.pager) updatePagerActive(slider.active.index);
1250
+ // // check for direction control update
1251
+ if(slider.settings.controls) updateDirectionControls();
1252
+ // if slider is set to mode: "fade"
1253
+ if(slider.settings.mode == 'fade'){
1254
+ // Added by Thomas
1255
+ slider.viewport.css({overflow:'hidden'});
1256
+ // if adaptiveHeight is true and next height is different from current height, animate to the new height
1257
+ if(slider.settings.adaptiveHeight && slider.viewport.height() != getViewportHeight()){
1258
+ slider.viewport.animate({height: getViewportHeight()}, slider.settings.adaptiveHeightSpeed);
1259
+ }
1260
+ // fade out the visible child and reset its z-index value
1261
+ slider.children.filter(':visible').fadeOut(slider.settings.speed).css({zIndex: 0});
1262
+ // fade in the newly requested slide
1263
+ slider.children.eq(slider.active.index).css('zIndex', slider.settings.slideZIndex+1).fadeIn(slider.settings.speed, function(){
1264
+ $(this).css('zIndex', slider.settings.slideZIndex);
1265
+ updateAfterSlideTransition();
1266
+ });
1267
+ // slider mode is not "fade"
1268
+ }else{
1269
+ // if adaptiveHeight is true and next height is different from current height, animate to the new height
1270
+ if(slider.settings.adaptiveHeight && slider.viewport.height() != getViewportHeight()){
1271
+ slider.viewport.animate({height: getViewportHeight()}, slider.settings.adaptiveHeightSpeed);
1272
+ }
1273
+ var moveBy = 0;
1274
+ var position = {left: 0, top: 0};
1275
+ // if carousel and not infinite loop
1276
+ if(!slider.settings.infiniteLoop && slider.carousel && slider.active.last){
1277
+ if(slider.settings.mode == 'horizontal'){
1278
+ // get the last child position
1279
+ var lastChild = slider.children.eq(slider.children.length - 1);
1280
+ position = lastChild.position();
1281
+ // calculate the position of the last slide
1282
+ moveBy = slider.viewport.width() - lastChild.outerWidth();
1283
+ }else{
1284
+ // get last showing index position
1285
+ var lastShowingIndex = slider.children.length - slider.settings.minSlides;
1286
+ position = slider.children.eq(lastShowingIndex).position();
1287
+ }
1288
+ // horizontal carousel, going previous while on first slide (infiniteLoop mode)
1289
+ }else if(slider.carousel && slider.active.last && direction == 'prev'){
1290
+ // get the last child position
1291
+ var eq = slider.settings.moveSlides == 1 ? slider.settings.maxSlides - getMoveBy() : ((getPagerQty() - 1) * getMoveBy()) - (slider.children.length - slider.settings.maxSlides);
1292
+ var lastChild = el.children('.soliloquy-clone').eq(eq);
1293
+ position = lastChild.position();
1294
+ // if infinite loop and "Next" is clicked on the last slide
1295
+ }else if(direction == 'next' && slider.active.index == 0){
1296
+ // get the last clone position
1297
+ position = el.find('> .soliloquy-clone').eq(slider.settings.maxSlides).position();
1298
+ slider.active.last = false;
1299
+ // normal non-zero requests
1300
+ }else if(slideIndex >= 0){
1301
+ var requestEl = slideIndex * getMoveBy();
1302
+ position = slider.children.eq(requestEl).position();
1303
+ }
1304
+
1305
+ /* If the position doesn't exist
1306
+ * (e.g. if you destroy the slider on a next click),
1307
+ * it doesn't throw an error.
1308
+ */
1309
+ if ("undefined" !== typeof(position)) {
1310
+ var value = slider.settings.mode == 'horizontal' ? -(position.left - moveBy) : -position.top;
1311
+ // plugin values to be animated
1312
+ setPositionProperty(value, 'slide', slider.settings.speed);
1313
+ }
1314
+ }
1315
+ };
1316
+
1317
+ /**
1318
+ * Transitions to the next slide in the show
1319
+ */
1320
+ el.goToNextSlide = function(){
1321
+ // if infiniteLoop is false and last page is showing, disregard call
1322
+ if (!slider.settings.infiniteLoop && slider.active.last) return;
1323
+ var pagerIndex = parseInt(slider.active.index) + 1;
1324
+ el.goToSlide(pagerIndex, 'next');
1325
+ };
1326
+
1327
+ /**
1328
+ * Transitions to the prev slide in the show
1329
+ */
1330
+ el.goToPrevSlide = function(){
1331
+ // if infiniteLoop is false and last page is showing, disregard call
1332
+ if (!slider.settings.infiniteLoop && slider.active.index == 0) return;
1333
+ var pagerIndex = parseInt(slider.active.index) - 1;
1334
+ el.goToSlide(pagerIndex, 'prev');
1335
+ };
1336
+
1337
+ /**
1338
+ * Starts the auto show
1339
+ *
1340
+ * @param preventControlUpdate (boolean)
1341
+ * - if true, auto controls state will not be updated
1342
+ */
1343
+ el.startAuto = function(preventControlUpdate){
1344
+ // if an interval already exists, disregard call
1345
+ if(slider.interval) return;
1346
+ // create an interval
1347
+ slider.interval = setInterval(function(){
1348
+ slider.settings.autoDirection == 'next' ? el.goToNextSlide() : el.goToPrevSlide();
1349
+ }, slider.settings.pause);
1350
+ // if auto controls are displayed and preventControlUpdate is not true
1351
+ if (slider.settings.autoControls && preventControlUpdate != true) updateAutoControls('stop');
1352
+ };
1353
+
1354
+ /**
1355
+ * Stops the auto show
1356
+ *
1357
+ * @param preventControlUpdate (boolean)
1358
+ * - if true, auto controls state will not be updated
1359
+ */
1360
+ el.stopAuto = function(preventControlUpdate){
1361
+ // if no interval exists, disregard call
1362
+ if(!slider.interval) return;
1363
+ // clear the interval
1364
+ clearInterval(slider.interval);
1365
+ slider.interval = null;
1366
+ // if auto controls are displayed and preventControlUpdate is not true
1367
+ if (slider.settings.autoControls && preventControlUpdate != true) updateAutoControls('start');
1368
+ };
1369
+
1370
+ /**
1371
+ * Returns current slide index (zero-based)
1372
+ */
1373
+ el.getCurrentSlide = function(){
1374
+ return slider.active.index;
1375
+ };
1376
+
1377
+ /**
1378
+ * Returns current slide element
1379
+ */
1380
+ el.getCurrentSlideElement = function(){
1381
+ return slider.children.eq(slider.active.index);
1382
+ };
1383
+
1384
+ /**
1385
+ * Returns number of slides in show
1386
+ */
1387
+ el.getSlideCount = function(){
1388
+ return slider.children.length;
1389
+ };
1390
+
1391
+ /**
1392
+ * Update all dynamic slider elements
1393
+ */
1394
+ el.redrawSlider = function(){
1395
+ // resize all children in ratio to new screen size
1396
+ slider.children.add(el.find('.soliloquy-clone')).width(getSlideWidth());
1397
+ // adjust the height
1398
+ slider.viewport.css('height', getViewportHeight());
1399
+ // update the slide position
1400
+ if(!slider.settings.ticker) {
1401
+ setSlidePosition();
1402
+ }
1403
+ // if active.last was true before the screen resize, we want
1404
+ // to keep it last no matter what screen size we end on
1405
+ if (slider.active.last) {
1406
+ slider.active.index = getPagerQty() - 1;
1407
+ }
1408
+ // if the active index (page) no longer exists due to the resize, simply set the index as last
1409
+ if (slider.active.index >= getPagerQty()) {
1410
+ slider.active.last = true;
1411
+ }
1412
+ // if a pager is being displayed and a custom pager is not being used, update it
1413
+ if(slider.settings.pager && !slider.settings.pagerCustom){
1414
+ populatePager();
1415
+ updatePagerActive(slider.active.index);
1416
+ }
1417
+ };
1418
+
1419
+ /**
1420
+ * Destroy the current instance of the slider (revert everything back to original state)
1421
+ */
1422
+ el.destroySlider = function(){
1423
+ // don't do anything if slider has already been destroyed
1424
+ if(!slider.initialized) {
1425
+ return;
1426
+ }
1427
+ slider.initialized = false;
1428
+ $('.soliloquy-clone', this).remove();
1429
+ slider.children.each(function() {
1430
+ $(this).data("origStyle") !== undefined ? $(this).attr("style", $(this).data("origStyle")) : $(this).removeAttr('style');
1431
+ });
1432
+ $(this).data("origStyle") !== undefined ? this.attr("style", $(this).data("origStyle")) : $(this).removeAttr('style');
1433
+ $(this).unwrap().unwrap();
1434
+ if(slider.controls.el) {
1435
+ slider.controls.el.remove();
1436
+ }
1437
+ if(slider.controls.next) {
1438
+ slider.controls.next.remove();
1439
+ }
1440
+ if(slider.controls.prev) {
1441
+ slider.controls.prev.remove();
1442
+ }
1443
+ if(slider.pagerEl && slider.settings.controls) {
1444
+ slider.pagerEl.remove();
1445
+ }
1446
+ $('.soliloquy-caption', this).remove();
1447
+ if(slider.controls.autoEl) {
1448
+ slider.controls.autoEl.remove();
1449
+ }
1450
+ clearInterval(slider.interval);
1451
+
1452
+ if(slider.settings.responsive) {
1453
+ $(window).unbind('resize', resizeWindow);
1454
+ }
1455
+ };
1456
+
1457
+ /**
1458
+ * Reload the slider (revert all DOM changes, and re-initialize)
1459
+ */
1460
+ el.reloadSlider = function(settings){
1461
+ if (settings !== undefined) {
1462
+ options = settings;
1463
+ }
1464
+ el.destroySlider();
1465
+ init();
1466
+ };
1467
+
1468
+ el.getSetting = function(setting){
1469
+ if ( slider.settings[setting] ) {
1470
+ return slider.settings[setting];
1471
+ } else {
1472
+ return false;
1473
+ }
1474
+ };
1475
+
1476
+ init();
1477
+
1478
+ // returns the current jQuery object
1479
+ return this;
1480
+ };
1481
+
1482
  })(jQuery, window, document);
assets/js/lib/chosen.jquery.js CHANGED
@@ -1,1284 +1,1284 @@
1
- /*!
2
- Chosen, a Select Box Enhancer for jQuery and Prototype
3
- by Patrick Filler for Harvest, http://getharvest.com
4
-
5
- Version 1.5.1
6
- Full source at https://github.com/harvesthq/chosen
7
- Copyright (c) 2011-2016 Harvest http://getharvest.com
8
-
9
- MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
10
- This file is generated by `grunt build`, do not edit it by hand.
11
- */
12
-
13
- (function() {
14
- var $, AbstractChosen, Chosen, SelectParser, _ref,
15
- __hasProp = {}.hasOwnProperty,
16
- __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
17
-
18
- SelectParser = (function() {
19
- function SelectParser() {
20
- this.options_index = 0;
21
- this.parsed = [];
22
- }
23
-
24
- SelectParser.prototype.add_node = function(child) {
25
- if (child.nodeName.toUpperCase() === "OPTGROUP") {
26
- return this.add_group(child);
27
- } else {
28
- return this.add_option(child);
29
- }
30
- };
31
-
32
- SelectParser.prototype.add_group = function(group) {
33
- var group_position, option, _i, _len, _ref, _results;
34
- group_position = this.parsed.length;
35
- this.parsed.push({
36
- array_index: group_position,
37
- group: true,
38
- label: this.escapeExpression(group.label),
39
- title: group.title ? group.title : void 0,
40
- children: 0,
41
- disabled: group.disabled,
42
- classes: group.className
43
- });
44
- _ref = group.childNodes;
45
- _results = [];
46
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
47
- option = _ref[_i];
48
- _results.push(this.add_option(option, group_position, group.disabled));
49
- }
50
- return _results;
51
- };
52
-
53
- SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
54
- if (option.nodeName.toUpperCase() === "OPTION") {
55
- if (option.text !== "") {
56
- if (group_position != null) {
57
- this.parsed[group_position].children += 1;
58
- }
59
- this.parsed.push({
60
- array_index: this.parsed.length,
61
- options_index: this.options_index,
62
- value: option.value,
63
- text: option.text,
64
- html: option.innerHTML,
65
- title: option.title ? option.title : void 0,
66
- selected: option.selected,
67
- disabled: group_disabled === true ? group_disabled : option.disabled,
68
- group_array_index: group_position,
69
- group_label: group_position != null ? this.parsed[group_position].label : null,
70
- classes: option.className,
71
- style: option.style.cssText
72
- });
73
- } else {
74
- this.parsed.push({
75
- array_index: this.parsed.length,
76
- options_index: this.options_index,
77
- empty: true
78
- });
79
- }
80
- return this.options_index += 1;
81
- }
82
- };
83
-
84
- SelectParser.prototype.escapeExpression = function(text) {
85
- var map, unsafe_chars;
86
- if ((text == null) || text === false) {
87
- return "";
88
- }
89
- if (!/[\&\<\>\"\'\`]/.test(text)) {
90
- return text;
91
- }
92
- map = {
93
- "<": "&lt;",
94
- ">": "&gt;",
95
- '"': "&quot;",
96
- "'": "&#x27;",
97
- "`": "&#x60;"
98
- };
99
- unsafe_chars = /&(?!\w+;)|[\<\>\"\'\`]/g;
100
- return text.replace(unsafe_chars, function(chr) {
101
- return map[chr] || "&amp;";
102
- });
103
- };
104
-
105
- return SelectParser;
106
-
107
- })();
108
-
109
- SelectParser.select_to_array = function(select) {
110
- var child, parser, _i, _len, _ref;
111
- parser = new SelectParser();
112
- _ref = select.childNodes;
113
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
114
- child = _ref[_i];
115
- parser.add_node(child);
116
- }
117
- return parser.parsed;
118
- };
119
-
120
- AbstractChosen = (function() {
121
- function AbstractChosen(form_field, options) {
122
- this.form_field = form_field;
123
- this.options = options != null ? options : {};
124
- if (!AbstractChosen.browser_is_supported()) {
125
- return;
126
- }
127
- this.is_multiple = this.form_field.multiple;
128
- this.set_default_text();
129
- this.set_default_values();
130
- this.setup();
131
- this.set_up_html();
132
- this.register_observers();
133
- this.on_ready();
134
- }
135
-
136
- AbstractChosen.prototype.set_default_values = function() {
137
- var _this = this;
138
- this.click_test_action = function(evt) {
139
- return _this.test_active_click(evt);
140
- };
141
- this.activate_action = function(evt) {
142
- return _this.activate_field(evt);
143
- };
144
- this.active_field = false;
145
- this.mouse_on_container = false;
146
- this.results_showing = false;
147
- this.result_highlighted = null;
148
- this.allow_single_deselect = (this.options.allow_single_deselect != null) && (this.form_field.options[0] != null) && this.form_field.options[0].text === "" ? this.options.allow_single_deselect : false;
149
- this.disable_search_threshold = this.options.disable_search_threshold || 0;
150
- this.disable_search = this.options.disable_search || false;
151
- this.enable_split_word_search = this.options.enable_split_word_search != null ? this.options.enable_split_word_search : true;
152
- this.group_search = this.options.group_search != null ? this.options.group_search : true;
153
- this.search_contains = this.options.search_contains || false;
154
- this.single_backstroke_delete = this.options.single_backstroke_delete != null ? this.options.single_backstroke_delete : true;
155
- this.max_selected_options = this.options.max_selected_options || Infinity;
156
- this.inherit_select_classes = this.options.inherit_select_classes || false;
157
- this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
158
- this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
159
- this.include_group_label_in_selected = this.options.include_group_label_in_selected || false;
160
- return this.max_shown_results = this.options.max_shown_results || Number.POSITIVE_INFINITY;
161
- };
162
-
163
- AbstractChosen.prototype.set_default_text = function() {
164
- if (this.form_field.getAttribute("data-placeholder")) {
165
- this.default_text = this.form_field.getAttribute("data-placeholder");
166
- } else if (this.is_multiple) {
167
- this.default_text = this.options.placeholder_text_multiple || this.options.placeholder_text || AbstractChosen.default_multiple_text;
168
- } else {
169
- this.default_text = this.options.placeholder_text_single || this.options.placeholder_text || AbstractChosen.default_single_text;
170
- }
171
- return this.results_none_found = this.form_field.getAttribute("data-no_results_text") || this.options.no_results_text || AbstractChosen.default_no_result_text;
172
- };
173
-
174
- AbstractChosen.prototype.choice_label = function(item) {
175
- if (this.include_group_label_in_selected && (item.group_label != null)) {
176
- return "<b class='group-name'>" + item.group_label + "</b>" + item.html;
177
- } else {
178
- return item.html;
179
- }
180
- };
181
-
182
- AbstractChosen.prototype.mouse_enter = function() {
183
- return this.mouse_on_container = true;
184
- };
185
-
186
- AbstractChosen.prototype.mouse_leave = function() {
187
- return this.mouse_on_container = false;
188
- };
189
-
190
- AbstractChosen.prototype.input_focus = function(evt) {
191
- var _this = this;
192
- if (this.is_multiple) {
193
- if (!this.active_field) {
194
- return setTimeout((function() {
195
- return _this.container_mousedown();
196
- }), 50);
197
- }
198
- } else {
199
- if (!this.active_field) {
200
- return this.activate_field();
201
- }
202
- }
203
- };
204
-
205
- AbstractChosen.prototype.input_blur = function(evt) {
206
- var _this = this;
207
- if (!this.mouse_on_container) {
208
- this.active_field = false;
209
- return setTimeout((function() {
210
- return _this.blur_test();
211
- }), 100);
212
- }
213
- };
214
-
215
- AbstractChosen.prototype.results_option_build = function(options) {
216
- var content, data, data_content, shown_results, _i, _len, _ref;
217
- content = '';
218
- shown_results = 0;
219
- _ref = this.results_data;
220
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
221
- data = _ref[_i];
222
- data_content = '';
223
- if (data.group) {
224
- data_content = this.result_add_group(data);
225
- } else {
226
- data_content = this.result_add_option(data);
227
- }
228
- if (data_content !== '') {
229
- shown_results++;
230
- content += data_content;
231
- }
232
- if (options != null ? options.first : void 0) {
233
- if (data.selected && this.is_multiple) {
234
- this.choice_build(data);
235
- } else if (data.selected && !this.is_multiple) {
236
- this.single_set_selected_text(this.choice_label(data));
237
- }
238
- }
239
- if (shown_results >= this.max_shown_results) {
240
- break;
241
- }
242
- }
243
- return content;
244
- };
245
-
246
- AbstractChosen.prototype.result_add_option = function(option) {
247
- var classes, option_el;
248
- if (!option.search_match) {
249
- return '';
250
- }
251
- if (!this.include_option_in_results(option)) {
252
- return '';
253
- }
254
- classes = [];
255
- if (!option.disabled && !(option.selected && this.is_multiple)) {
256
- classes.push("active-result");
257
- }
258
- if (option.disabled && !(option.selected && this.is_multiple)) {
259
- classes.push("disabled-result");
260
- }
261
- if (option.selected) {
262
- classes.push("result-selected");
263
- }
264
- if (option.group_array_index != null) {
265
- classes.push("group-option");
266
- }
267
- if (option.classes !== "") {
268
- classes.push(option.classes);
269
- }
270
- option_el = document.createElement("li");
271
- option_el.className = classes.join(" ");
272
- option_el.style.cssText = option.style;
273
- option_el.setAttribute("data-option-array-index", option.array_index);
274
- option_el.innerHTML = option.search_text;
275
- if (option.title) {
276
- option_el.title = option.title;
277
- }
278
- return this.outerHTML(option_el);
279
- };
280
-
281
- AbstractChosen.prototype.result_add_group = function(group) {
282
- var classes, group_el;
283
- if (!(group.search_match || group.group_match)) {
284
- return '';
285
- }
286
- if (!(group.active_options > 0)) {
287
- return '';
288
- }
289
- classes = [];
290
- classes.push("group-result");
291
- if (group.classes) {
292
- classes.push(group.classes);
293
- }
294
- group_el = document.createElement("li");
295
- group_el.className = classes.join(" ");
296
- group_el.innerHTML = group.search_text;
297
- if (group.title) {
298
- group_el.title = group.title;
299
- }
300
- return this.outerHTML(group_el);
301
- };
302
-
303
- AbstractChosen.prototype.results_update_field = function() {
304
- this.set_default_text();
305
- if (!this.is_multiple) {
306
- this.results_reset_cleanup();
307
- }
308
- this.result_clear_highlight();
309
- this.results_build();
310
- if (this.results_showing) {
311
- return this.winnow_results();
312
- }
313
- };
314
-
315
- AbstractChosen.prototype.reset_single_select_options = function() {
316
- var result, _i, _len, _ref, _results;
317
- _ref = this.results_data;
318
- _results = [];
319
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
320
- result = _ref[_i];
321
- if (result.selected) {
322
- _results.push(result.selected = false);
323
- } else {
324
- _results.push(void 0);
325
- }
326
- }
327
- return _results;
328
- };
329
-
330
- AbstractChosen.prototype.results_toggle = function() {
331
- if (this.results_showing) {
332
- return this.results_hide();
333
- } else {
334
- return this.results_show();
335
- }
336
- };
337
-
338
- AbstractChosen.prototype.results_search = function(evt) {
339
- if (this.results_showing) {
340
- return this.winnow_results();
341
- } else {
342
- return this.results_show();
343
- }
344
- };
345
-
346
- AbstractChosen.prototype.winnow_results = function() {
347
- var escapedSearchText, option, regex, results, results_group, searchText, startpos, text, zregex, _i, _len, _ref;
348
- this.no_results_clear();
349
- results = 0;
350
- searchText = this.get_search_text();
351
- escapedSearchText = searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
352
- zregex = new RegExp(escapedSearchText, 'i');
353
- regex = this.get_search_regex(escapedSearchText);
354
- _ref = this.results_data;
355
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
356
- option = _ref[_i];
357
- option.search_match = false;
358
- results_group = null;
359
- if (this.include_option_in_results(option)) {
360
- if (option.group) {
361
- option.group_match = false;
362
- option.active_options = 0;
363
- }
364
- if ((option.group_array_index != null) && this.results_data[option.group_array_index]) {
365
- results_group = this.results_data[option.group_array_index];
366
- if (results_group.active_options === 0 && results_group.search_match) {
367
- results += 1;
368
- }
369
- results_group.active_options += 1;
370
- }
371
- option.search_text = option.group ? option.label : option.html;
372
- if (!(option.group && !this.group_search)) {
373
- option.search_match = this.search_string_match(option.search_text, regex);
374
- if (option.search_match && !option.group) {
375
- results += 1;
376
- }
377
- if (option.search_match) {
378
- if (searchText.length) {
379
- startpos = option.search_text.search(zregex);
380
- text = option.search_text.substr(0, startpos + searchText.length) + '</em>' + option.search_text.substr(startpos + searchText.length);
381
- option.search_text = text.substr(0, startpos) + '<em>' + text.substr(startpos);
382
- }
383
- if (results_group != null) {
384
- results_group.group_match = true;
385
- }
386
- } else if ((option.group_array_index != null) && this.results_data[option.group_array_index].search_match) {
387
- option.search_match = true;
388
- }
389
- }
390
- }
391
- }
392
- this.result_clear_highlight();
393
- if (results < 1 && searchText.length) {
394
- this.update_results_content("");
395
- return this.no_results(searchText);
396
- } else {
397
- this.update_results_content(this.results_option_build());
398
- return this.winnow_results_set_highlight();
399
- }
400
- };
401
-
402
- AbstractChosen.prototype.get_search_regex = function(escaped_search_string) {
403
- var regex_anchor;
404
- regex_anchor = this.search_contains ? "" : "^";
405
- return new RegExp(regex_anchor + escaped_search_string, 'i');
406
- };
407
-
408
- AbstractChosen.prototype.search_string_match = function(search_string, regex) {
409
- var part, parts, _i, _len;
410
- if (regex.test(search_string)) {
411
- return true;
412
- } else if (this.enable_split_word_search && (search_string.indexOf(" ") >= 0 || search_string.indexOf("[") === 0)) {
413
- parts = search_string.replace(/\[|\]/g, "").split(" ");
414
- if (parts.length) {
415
- for (_i = 0, _len = parts.length; _i < _len; _i++) {
416
- part = parts[_i];
417
- if (regex.test(part)) {
418
- return true;
419
- }
420
- }
421
- }
422
- }
423
- };
424
-
425
- AbstractChosen.prototype.choices_count = function() {
426
- var option, _i, _len, _ref;
427
- if (this.selected_option_count != null) {
428
- return this.selected_option_count;
429
- }
430
- this.selected_option_count = 0;
431
- _ref = this.form_field.options;
432
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
433
- option = _ref[_i];
434
- if (option.selected) {
435
- this.selected_option_count += 1;
436
- }
437
- }
438
- return this.selected_option_count;
439
- };
440
-
441
- AbstractChosen.prototype.choices_click = function(evt) {
442
- evt.preventDefault();
443
- if (!(this.results_showing || this.is_disabled)) {
444
- return this.results_show();
445
- }
446
- };
447
-
448
- AbstractChosen.prototype.keyup_checker = function(evt) {
449
- var stroke, _ref;
450
- stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
451
- this.search_field_scale();
452
- switch (stroke) {
453
- case 8:
454
- if (this.is_multiple && this.backstroke_length < 1 && this.choices_count() > 0) {
455
- return this.keydown_backstroke();
456
- } else if (!this.pending_backstroke) {
457
- this.result_clear_highlight();
458
- return this.results_search();
459
- }
460
- break;
461
- case 13:
462
- evt.preventDefault();
463
- if (this.results_showing) {
464
- return this.result_select(evt);
465
- }
466
- break;
467
- case 27:
468
- if (this.results_showing) {
469
- this.results_hide();
470
- }
471
- return true;
472
- case 9:
473
- case 38:
474
- case 40:
475
- case 16:
476
- case 91:
477
- case 17:
478
- case 18:
479
- break;
480
- default:
481
- return this.results_search();
482
- }
483
- };
484
-
485
- AbstractChosen.prototype.clipboard_event_checker = function(evt) {
486
- var _this = this;
487
- return setTimeout((function() {
488
- return _this.results_search();
489
- }), 50);
490
- };
491
-
492
- AbstractChosen.prototype.container_width = function() {
493
- if (this.options.width != null) {
494
- return this.options.width;
495
- } else {
496
- return "" + this.form_field.offsetWidth + "px";
497
- }
498
- };
499
-
500
- AbstractChosen.prototype.include_option_in_results = function(option) {
501
- if (this.is_multiple && (!this.display_selected_options && option.selected)) {
502
- return false;
503
- }
504
- if (!this.display_disabled_options && option.disabled) {
505
- return false;
506
- }
507
- if (option.empty) {
508
- return false;
509
- }
510
- return true;
511
- };
512
-
513
- AbstractChosen.prototype.search_results_touchstart = function(evt) {
514
- this.touch_started = true;
515
- return this.search_results_mouseover(evt);
516
- };
517
-
518
- AbstractChosen.prototype.search_results_touchmove = function(evt) {
519
- this.touch_started = false;
520
- return this.search_results_mouseout(evt);
521
- };
522
-
523
- AbstractChosen.prototype.search_results_touchend = function(evt) {
524
- if (this.touch_started) {
525
- return this.search_results_mouseup(evt);
526
- }
527
- };
528
-
529
- AbstractChosen.prototype.outerHTML = function(element) {
530
- var tmp;
531
- if (element.outerHTML) {
532
- return element.outerHTML;
533
- }
534
- tmp = document.createElement("div");
535
- tmp.appendChild(element);
536
- return tmp.innerHTML;
537
- };
538
-
539
- AbstractChosen.browser_is_supported = function() {
540
- if (/iP(od|hone)/i.test(window.navigator.userAgent)) {
541
- return false;
542
- }
543
- if (/Android/i.test(window.navigator.userAgent)) {
544
- if (/Mobile/i.test(window.navigator.userAgent)) {
545
- return false;
546
- }
547
- }
548
- if (/IEMobile/i.test(window.navigator.userAgent)) {
549
- return false;
550
- }
551
- if (/Windows Phone/i.test(window.navigator.userAgent)) {
552
- return false;
553
- }
554
- if (/BlackBerry/i.test(window.navigator.userAgent)) {
555
- return false;
556
- }
557
- if (/BB10/i.test(window.navigator.userAgent)) {
558
- return false;
559
- }
560
- if (window.navigator.appName === "Microsoft Internet Explorer") {
561
- return document.documentMode >= 8;
562
- }
563
- return true;
564
- };
565
-
566
- AbstractChosen.default_multiple_text = "Select Some Options";
567
-
568
- AbstractChosen.default_single_text = "Select an Option";
569
-
570
- AbstractChosen.default_no_result_text = "No results match";
571
-
572
- return AbstractChosen;
573
-
574
- })();
575
-
576
- $ = jQuery;
577
-
578
- $.fn.extend({
579
- chosen: function(options) {
580
- if (!AbstractChosen.browser_is_supported()) {
581
- return this;
582
- }
583
- return this.each(function(input_field) {
584
- var $this, chosen;
585
- $this = $(this);
586
- chosen = $this.data('chosen');
587
- if (options === 'destroy') {
588
- if (chosen instanceof Chosen) {
589
- chosen.destroy();
590
- }
591
- return;
592
- }
593
- if (!(chosen instanceof Chosen)) {
594
- $this.data('chosen', new Chosen(this, options));
595
- }
596
- });
597
- }
598
- });
599
-
600
- Chosen = (function(_super) {
601
- __extends(Chosen, _super);
602
-
603
- function Chosen() {
604
- _ref = Chosen.__super__.constructor.apply(this, arguments);
605
- return _ref;
606
- }
607
-
608
- Chosen.prototype.setup = function() {
609
- this.form_field_jq = $(this.form_field);
610
- this.current_selectedIndex = this.form_field.selectedIndex;
611
- return this.is_rtl = this.form_field_jq.hasClass("chosen-rtl");
612
- };
613
-
614
- Chosen.prototype.set_up_html = function() {
615
- var container_classes, container_props;
616
- container_classes = ["chosen-container"];
617
- container_classes.push("chosen-container-" + (this.is_multiple ? "multi" : "single"));
618
- if (this.inherit_select_classes && this.form_field.className) {
619
- container_classes.push(this.form_field.className);
620
- }
621
- if (this.is_rtl) {
622
- container_classes.push("chosen-rtl");
623
- }
624
- container_props = {
625
- 'class': container_classes.join(' '),
626
- 'style': "width: " + (this.container_width()) + ";",
627
- 'title': this.form_field.title
628
- };
629
- if (this.form_field.id.length) {
630
- container_props.id = this.form_field.id.replace(/[^\w]/g, '_') + "_chosen";
631
- }
632
- this.container = $("<div />", container_props);
633
- if (this.is_multiple) {
634
- this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="' + this.default_text + '" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>');
635
- } else {
636
- this.container.html('<a class="chosen-single chosen-default"><span>' + this.default_text + '</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>');
637
- }
638
- this.form_field_jq.hide().after(this.container);
639
- this.dropdown = this.container.find('div.chosen-drop').first();
640
- this.search_field = this.container.find('input').first();
641
- this.search_results = this.container.find('ul.chosen-results').first();
642
- this.search_field_scale();
643
- this.search_no_results = this.container.find('li.no-results').first();
644
- if (this.is_multiple) {
645
- this.search_choices = this.container.find('ul.chosen-choices').first();
646
- this.search_container = this.container.find('li.search-field').first();
647
- } else {
648
- this.search_container = this.container.find('div.chosen-search').first();
649
- this.selected_item = this.container.find('.chosen-single').first();
650
- }
651
- this.results_build();
652
- this.set_tab_index();
653
- return this.set_label_behavior();
654
- };
655
-
656
- Chosen.prototype.on_ready = function() {
657
- return this.form_field_jq.trigger("chosen:ready", {
658
- chosen: this
659
- });
660
- };
661
-
662
- Chosen.prototype.register_observers = function() {
663
- var _this = this;
664
- this.container.bind('touchstart.chosen', function(evt) {
665
- _this.container_mousedown(evt);
666
- return evt.preventDefault();
667
- });
668
- this.container.bind('touchend.chosen', function(evt) {
669
- _this.container_mouseup(evt);
670
- return evt.preventDefault();
671
- });
672
- this.container.bind('mousedown.chosen', function(evt) {
673
- _this.container_mousedown(evt);
674
- });
675
- this.container.bind('mouseup.chosen', function(evt) {
676
- _this.container_mouseup(evt);
677
- });
678
- this.container.bind('mouseenter.chosen', function(evt) {
679
- _this.mouse_enter(evt);
680
- });
681
- this.container.bind('mouseleave.chosen', function(evt) {
682
- _this.mouse_leave(evt);
683
- });
684
- this.search_results.bind('mouseup.chosen', function(evt) {
685
- _this.search_results_mouseup(evt);
686
- });
687
- this.search_results.bind('mouseover.chosen', function(evt) {
688
- _this.search_results_mouseover(evt);
689
- });
690
- this.search_results.bind('mouseout.chosen', function(evt) {
691
- _this.search_results_mouseout(evt);
692
- });
693
- this.search_results.bind('mousewheel.chosen DOMMouseScroll.chosen', function(evt) {
694
- _this.search_results_mousewheel(evt);
695
- });
696
- this.search_results.bind('touchstart.chosen', function(evt) {
697
- _this.search_results_touchstart(evt);
698
- });
699
- this.search_results.bind('touchmove.chosen', function(evt) {
700
- _this.search_results_touchmove(evt);
701
- });
702
- this.search_results.bind('touchend.chosen', function(evt) {
703
- _this.search_results_touchend(evt);
704
- });
705
- this.form_field_jq.bind("chosen:updated.chosen", function(evt) {
706
- _this.results_update_field(evt);
707
- });
708
- this.form_field_jq.bind("chosen:activate.chosen", function(evt) {
709
- _this.activate_field(evt);
710
- });
711
- this.form_field_jq.bind("chosen:open.chosen", function(evt) {
712
- _this.container_mousedown(evt);
713
- });
714
- this.form_field_jq.bind("chosen:close.chosen", function(evt) {
715
- _this.input_blur(evt);
716
- });
717
- this.search_field.bind('blur.chosen', function(evt) {
718
- _this.input_blur(evt);
719
- });
720
- this.search_field.bind('keyup.chosen', function(evt) {
721
- _this.keyup_checker(evt);
722
- });
723
- this.search_field.bind('keydown.chosen', function(evt) {
724
- _this.keydown_checker(evt);
725
- });
726
- this.search_field.bind('focus.chosen', function(evt) {
727
- _this.input_focus(evt);
728
- });
729
- this.search_field.bind('cut.chosen', function(evt) {
730
- _this.clipboard_event_checker(evt);
731
- });
732
- this.search_field.bind('paste.chosen', function(evt) {
733
- _this.clipboard_event_checker(evt);
734
- });
735
- if (this.is_multiple) {
736
- return this.search_choices.bind('click.chosen', function(evt) {
737
- _this.choices_click(evt);
738
- });
739
- } else {
740
- return this.container.bind('click.chosen', function(evt) {
741
- evt.preventDefault();
742
- });
743
- }
744
- };
745
-
746
- Chosen.prototype.destroy = function() {
747
- $(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
748
- if (this.search_field[0].tabIndex) {
749
- this.form_field_jq[0].tabIndex = this.search_field[0].tabIndex;
750
- }
751
- this.container.remove();
752
- this.form_field_jq.removeData('chosen');
753
- return this.form_field_jq.show();
754
- };
755
-
756
- Chosen.prototype.search_field_disabled = function() {
757
- this.is_disabled = this.form_field_jq[0].disabled;
758
- if (this.is_disabled) {
759
- this.container.addClass('chosen-disabled');
760
- this.search_field[0].disabled = true;
761
- if (!this.is_multiple) {
762
- this.selected_item.unbind("focus.chosen", this.activate_action);
763
- }
764
- return this.close_field();
765
- } else {
766
- this.container.removeClass('chosen-disabled');
767
- this.search_field[0].disabled = false;
768
- if (!this.is_multiple) {
769
- return this.selected_item.bind("focus.chosen", this.activate_action);
770
- }
771
- }
772
- };
773
-
774
- Chosen.prototype.container_mousedown = function(evt) {
775
- if (!this.is_disabled) {
776
- if (evt && evt.type === "mousedown" && !this.results_showing) {
777
- evt.preventDefault();
778
- }
779
- if (!((evt != null) && ($(evt.target)).hasClass("search-choice-close"))) {
780
- if (!this.active_field) {
781
- if (this.is_multiple) {
782
- this.search_field.val("");
783
- }
784
- $(this.container[0].ownerDocument).bind('click.chosen', this.click_test_action);
785
- this.results_show();
786
- } else if (!this.is_multiple && evt && (($(evt.target)[0] === this.selected_item[0]) || $(evt.target).parents("a.chosen-single").length)) {
787
- evt.preventDefault();
788
- this.results_toggle();
789
- }
790
- return this.activate_field();
791
- }
792
- }
793
- };
794
-
795
- Chosen.prototype.container_mouseup = function(evt) {
796
- if (evt.target.nodeName === "ABBR" && !this.is_disabled) {
797
- return this.results_reset(evt);
798
- }
799
- };
800
-
801
- Chosen.prototype.search_results_mousewheel = function(evt) {
802
- var delta;
803
- if (evt.originalEvent) {
804
- delta = evt.originalEvent.deltaY || -evt.originalEvent.wheelDelta || evt.originalEvent.detail;
805
- }
806
- if (delta != null) {
807
- evt.preventDefault();
808
- if (evt.type === 'DOMMouseScroll') {
809
- delta = delta * 40;
810
- }
811
- return this.search_results.scrollTop(delta + this.search_results.scrollTop());
812
- }
813
- };
814
-
815
- Chosen.prototype.blur_test = function(evt) {
816
- if (!this.active_field && this.container.hasClass("chosen-container-active")) {
817
- return this.close_field();
818
- }
819
- };
820
-
821
- Chosen.prototype.close_field = function() {
822
- $(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
823
- this.active_field = false;
824
- this.results_hide();
825
- this.container.removeClass("chosen-container-active");
826
- this.clear_backstroke();
827
- this.show_search_field_default();
828
- return this.search_field_scale();
829
- };
830
-
831
- Chosen.prototype.activate_field = function() {
832
- this.container.addClass("chosen-container-active");
833
- this.active_field = true;
834
- this.search_field.val(this.search_field.val());
835
- return this.search_field.focus();
836
- };
837
-
838
- Chosen.prototype.test_active_click = function(evt) {
839
- var active_container;
840
- active_container = $(evt.target).closest('.chosen-container');
841
- if (active_container.length && this.container[0] === active_container[0]) {
842
- return this.active_field = true;
843
- } else {
844
- return this.close_field();
845
- }
846
- };
847
-
848
- Chosen.prototype.results_build = function() {
849
- this.parsing = true;
850
- this.selected_option_count = null;
851
- this.results_data = SelectParser.select_to_array(this.form_field);
852
- if (this.is_multiple) {
853
- this.search_choices.find("li.search-choice").remove();
854
- } else if (!this.is_multiple) {
855
- this.single_set_selected_text();
856
- if (this.disable_search || this.form_field.options.length <= this.disable_search_threshold) {
857
- this.search_field[0].readOnly = true;
858
- this.container.addClass("chosen-container-single-nosearch");
859
- } else {
860
- this.search_field[0].readOnly = false;
861
- this.container.removeClass("chosen-container-single-nosearch");
862
- }
863
- }
864
- this.update_results_content(this.results_option_build({
865
- first: true
866
- }));
867
- this.search_field_disabled();
868
- this.show_search_field_default();
869
- this.search_field_scale();
870
- return this.parsing = false;
871
- };
872
-
873
- Chosen.prototype.result_do_highlight = function(el) {
874
- var high_bottom, high_top, maxHeight, visible_bottom, visible_top;
875
- if (el.length) {
876
- this.result_clear_highlight();
877
- this.result_highlight = el;
878
- this.result_highlight.addClass("highlighted");
879
- maxHeight = parseInt(this.search_results.css("maxHeight"), 10);
880
- visible_top = this.search_results.scrollTop();
881
- visible_bottom = maxHeight + visible_top;
882
- high_top = this.result_highlight.position().top + this.search_results.scrollTop();
883
- high_bottom = high_top + this.result_highlight.outerHeight();
884
- if (high_bottom >= visible_bottom) {
885
- return this.search_results.scrollTop((high_bottom - maxHeight) > 0 ? high_bottom - maxHeight : 0);
886
- } else if (high_top < visible_top) {
887
- return this.search_results.scrollTop(high_top);
888
- }
889
- }
890
- };
891
-
892
- Chosen.prototype.result_clear_highlight = function() {
893
- if (this.result_highlight) {
894
- this.result_highlight.removeClass("highlighted");
895
- }
896
- return this.result_highlight = null;
897
- };
898
-
899
- Chosen.prototype.results_show = function() {
900
- if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
901
- this.form_field_jq.trigger("chosen:maxselected", {
902
- chosen: this
903
- });
904
- return false;
905
- }
906
- this.container.addClass("chosen-with-drop");
907
- this.results_showing = true;
908
- this.search_field.focus();
909
- this.search_field.val(this.search_field.val());
910
- this.winnow_results();
911
- return this.form_field_jq.trigger("chosen:showing_dropdown", {
912
- chosen: this
913
- });
914
- };
915
-
916
- Chosen.prototype.update_results_content = function(content) {
917
- return this.search_results.html(content);
918
- };
919
-
920
- Chosen.prototype.results_hide = function() {
921
- if (this.results_showing) {
922
- this.result_clear_highlight();
923
- this.container.removeClass("chosen-with-drop");
924
- this.form_field_jq.trigger("chosen:hiding_dropdown", {
925
- chosen: this
926
- });
927
- }
928
- return this.results_showing = false;
929
- };
930
-
931
- Chosen.prototype.set_tab_index = function(el) {
932
- var ti;
933
- if (this.form_field.tabIndex) {
934
- ti = this.form_field.tabIndex;
935
- this.form_field.tabIndex = -1;
936
- return this.search_field[0].tabIndex = ti;
937
- }
938
- };
939
-
940
- Chosen.prototype.set_label_behavior = function() {
941
- var _this = this;
942
- this.form_field_label = this.form_field_jq.parents("label");
943
- if (!this.form_field_label.length && this.form_field.id.length) {
944
- this.form_field_label = $("label[for='" + this.form_field.id + "']");
945
- }
946
- if (this.form_field_label.length > 0) {
947
- return this.form_field_label.bind('click.chosen', function(evt) {
948
- if (_this.is_multiple) {
949
- return _this.container_mousedown(evt);
950
- } else {
951
- return _this.activate_field();
952
- }
953
- });
954
- }
955
- };
956
-
957
- Chosen.prototype.show_search_field_default = function() {
958
- if (this.is_multiple && this.choices_count() < 1 && !this.active_field) {
959
- this.search_field.val(this.default_text);
960
- return this.search_field.addClass("default");
961
- } else {
962
- this.search_field.val("");
963
- return this.search_field.removeClass("default");
964
- }
965
- };
966
-
967
- Chosen.prototype.search_results_mouseup = function(evt) {
968
- var target;
969
- target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
970
- if (target.length) {
971
- this.result_highlight = target;
972
- this.result_select(evt);
973
- return this.search_field.focus();
974
- }
975
- };
976
-
977
- Chosen.prototype.search_results_mouseover = function(evt) {
978
- var target;
979
- target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
980
- if (target) {
981
- return this.result_do_highlight(target);
982
- }
983
- };
984
-
985
- Chosen.prototype.search_results_mouseout = function(evt) {
986
- if ($(evt.target).hasClass("active-result" || $(evt.target).parents('.active-result').first())) {
987
- return this.result_clear_highlight();
988
- }
989
- };
990
-
991
- Chosen.prototype.choice_build = function(item) {
992
- var choice, close_link,
993
- _this = this;
994
- choice = $('<li />', {
995
- "class": "search-choice"
996
- }).html("<span>" + (this.choice_label(item)) + "</span>");
997
- if (item.disabled) {
998
- choice.addClass('search-choice-disabled');
999
- } else {
1000
- close_link = $('<a />', {
1001
- "class": 'search-choice-close',
1002
- 'data-option-array-index': item.array_index
1003
- });
1004
- close_link.bind('click.chosen', function(evt) {
1005
- return _this.choice_destroy_link_click(evt);
1006
- });
1007
- choice.append(close_link);
1008
- }
1009
- return this.search_container.before(choice);
1010
- };
1011
-
1012
- Chosen.prototype.choice_destroy_link_click = function(evt) {
1013
- evt.preventDefault();
1014
- evt.stopPropagation();
1015
- if (!this.is_disabled) {
1016
- return this.choice_destroy($(evt.target));
1017
- }
1018
- };
1019
-
1020
- Chosen.prototype.choice_destroy = function(link) {
1021
- if (this.result_deselect(link[0].getAttribute("data-option-array-index"))) {
1022
- this.show_search_field_default();
1023
- if (this.is_multiple && this.choices_count() > 0 && this.search_field.val().length < 1) {
1024
- this.results_hide();
1025
- }
1026
- link.parents('li').first().remove();
1027
- return this.search_field_scale();
1028
- }
1029
- };
1030
-
1031
- Chosen.prototype.results_reset = function() {
1032
- this.reset_single_select_options();
1033
- this.form_field.options[0].selected = true;
1034
- this.single_set_selected_text();
1035
- this.show_search_field_default();
1036
- this.results_reset_cleanup();
1037
- this.form_field_jq.trigger("change");
1038
- if (this.active_field) {
1039
- return this.results_hide();
1040
- }
1041
- };
1042
-
1043
- Chosen.prototype.results_reset_cleanup = function() {
1044
- this.current_selectedIndex = this.form_field.selectedIndex;
1045
- return this.selected_item.find("abbr").remove();
1046
- };
1047
-
1048
- Chosen.prototype.result_select = function(evt) {
1049
- var high, item;
1050
- if (this.result_highlight) {
1051
- high = this.result_highlight;
1052
- this.result_clear_highlight();
1053
- if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
1054
- this.form_field_jq.trigger("chosen:maxselected", {
1055
- chosen: this
1056
- });
1057
- return false;
1058
- }
1059
- if (this.is_multiple) {
1060
- high.removeClass("active-result");
1061
- } else {
1062
- this.reset_single_select_options();
1063
- }
1064
- high.addClass("result-selected");
1065
- item = this.results_data[high[0].getAttribute("data-option-array-index")];
1066
- item.selected = true;
1067
- this.form_field.options[item.options_index].selected = true;
1068
- this.selected_option_count = null;
1069
- if (this.is_multiple) {
1070
- this.choice_build(item);
1071
- } else {
1072
- this.single_set_selected_text(this.choice_label(item));
1073
- }
1074
- if (!((evt.metaKey || evt.ctrlKey) && this.is_multiple)) {
1075
- this.results_hide();
1076
- }
1077
- this.show_search_field_default();
1078
- if (this.is_multiple || this.form_field.selectedIndex !== this.current_selectedIndex) {
1079
- this.form_field_jq.trigger("change", {
1080
- 'selected': this.form_field.options[item.options_index].value
1081
- });
1082
- }
1083
- this.current_selectedIndex = this.form_field.selectedIndex;
1084
- evt.preventDefault();
1085
- return this.search_field_scale();
1086
- }
1087
- };
1088
-
1089
- Chosen.prototype.single_set_selected_text = function(text) {
1090
- if (text == null) {
1091
- text = this.default_text;
1092
- }
1093
- if (text === this.default_text) {
1094
- this.selected_item.addClass("chosen-default");
1095
- } else {
1096
- this.single_deselect_control_build();
1097
- this.selected_item.removeClass("chosen-default");
1098
- }
1099
- return this.selected_item.find("span").html(text);
1100
- };
1101
-
1102
- Chosen.prototype.result_deselect = function(pos) {
1103
- var result_data;
1104
- result_data = this.results_data[pos];
1105
- if (!this.form_field.options[result_data.options_index].disabled) {
1106
- result_data.selected = false;
1107
- this.form_field.options[result_data.options_index].selected = false;
1108
- this.selected_option_count = null;
1109
- this.result_clear_highlight();
1110
- if (this.results_showing) {
1111
- this.winnow_results();
1112
- }
1113
- this.form_field_jq.trigger("change", {
1114
- deselected: this.form_field.options[result_data.options_index].value
1115
- });
1116
- this.search_field_scale();
1117
- return true;
1118
- } else {
1119
- return false;
1120
- }
1121
- };
1122
-
1123
- Chosen.prototype.single_deselect_control_build = function() {
1124
- if (!this.allow_single_deselect) {
1125
- return;
1126
- }
1127
- if (!this.selected_item.find("abbr").length) {
1128
- this.selected_item.find("span").first().after("<abbr class=\"search-choice-close\"></abbr>");
1129
- }
1130
- return this.selected_item.addClass("chosen-single-with-deselect");
1131
- };
1132
-
1133
- Chosen.prototype.get_search_text = function() {
1134
- return $('<div/>').text($.trim(this.search_field.val())).html();
1135
- };
1136
-
1137
- Chosen.prototype.winnow_results_set_highlight = function() {
1138
- var do_high, selected_results;
1139
- selected_results = !this.is_multiple ? this.search_results.find(".result-selected.active-result") : [];
1140
- do_high = selected_results.length ? selected_results.first() : this.search_results.find(".active-result").first();
1141
- if (do_high != null) {
1142
- return this.result_do_highlight(do_high);
1143
- }
1144
- };
1145
-
1146
- Chosen.prototype.no_results = function(terms) {
1147
- var no_results_html;
1148
- no_results_html = $('<li class="no-results">' + this.results_none_found + ' "<span></span>"</li>');
1149
- no_results_html.find("span").first().html(terms);
1150
- this.search_results.append(no_results_html);
1151
- return this.form_field_jq.trigger("chosen:no_results", {
1152
- chosen: this
1153
- });
1154
- };
1155
-
1156
- Chosen.prototype.no_results_clear = function() {
1157
- return this.search_results.find(".no-results").remove();
1158
- };
1159
-
1160
- Chosen.prototype.keydown_arrow = function() {
1161
- var next_sib;
1162
- if (this.results_showing && this.result_highlight) {
1163
- next_sib = this.result_highlight.nextAll("li.active-result").first();
1164
- if (next_sib) {
1165
- return this.result_do_highlight(next_sib);
1166
- }
1167
- } else {
1168
- return this.results_show();
1169
- }
1170
- };
1171
-
1172
- Chosen.prototype.keyup_arrow = function() {
1173
- var prev_sibs;
1174
- if (!this.results_showing && !this.is_multiple) {
1175
- return this.results_show();
1176
- } else if (this.result_highlight) {
1177
- prev_sibs = this.result_highlight.prevAll("li.active-result");
1178
- if (prev_sibs.length) {
1179
- return this.result_do_highlight(prev_sibs.first());
1180
- } else {
1181
- if (this.choices_count() > 0) {
1182
- this.results_hide();
1183
- }
1184
- return this.result_clear_highlight();
1185
- }
1186
- }
1187
- };
1188
-
1189
- Chosen.prototype.keydown_backstroke = function() {
1190
- var next_available_destroy;
1191
- if (this.pending_backstroke) {
1192
- this.choice_destroy(this.pending_backstroke.find("a").first());
1193
- return this.clear_backstroke();
1194
- } else {
1195
- next_available_destroy = this.search_container.siblings("li.search-choice").last();
1196
- if (next_available_destroy.length && !next_available_destroy.hasClass("search-choice-disabled")) {
1197
- this.pending_backstroke = next_available_destroy;
1198
- if (this.single_backstroke_delete) {
1199
- return this.keydown_backstroke();
1200
- } else {
1201
- return this.pending_backstroke.addClass("search-choice-focus");
1202
- }
1203
- }
1204
- }
1205
- };
1206
-
1207
- Chosen.prototype.clear_backstroke = function() {
1208
- if (this.pending_backstroke) {
1209
- this.pending_backstroke.removeClass("search-choice-focus");
1210
- }
1211
- return this.pending_backstroke = null;
1212
- };
1213
-
1214
- Chosen.prototype.keydown_checker = function(evt) {
1215
- var stroke, _ref1;
1216
- stroke = (_ref1 = evt.which) != null ? _ref1 : evt.keyCode;
1217
- this.search_field_scale();
1218
- if (stroke !== 8 && this.pending_backstroke) {
1219
- this.clear_backstroke();
1220
- }
1221
- switch (stroke) {
1222
- case 8:
1223
- this.backstroke_length = this.search_field.val().length;
1224
- break;
1225
- case 9:
1226
- if (this.results_showing && !this.is_multiple) {
1227
- this.result_select(evt);
1228
- }
1229
- this.mouse_on_container = false;
1230
- break;
1231
- case 13:
1232
- if (this.results_showing) {
1233
- evt.preventDefault();
1234
- }
1235
- break;
1236
- case 32:
1237
- if (this.disable_search) {
1238
- evt.preventDefault();
1239
- }
1240
- break;
1241
- case 38:
1242
- evt.preventDefault();
1243
- this.keyup_arrow();
1244
- break;
1245
- case 40:
1246
- evt.preventDefault();
1247
- this.keydown_arrow();
1248
- break;
1249
- }
1250
- };
1251
-
1252
- Chosen.prototype.search_field_scale = function() {
1253
- var div, f_width, h, style, style_block, styles, w, _i, _len;
1254
- if (this.is_multiple) {
1255
- h = 0;
1256
- w = 0;
1257
- style_block = "position:absolute; left: -1000px; top: -1000px; display:none;";
1258
- styles = ['font-size', 'font-style', 'font-weight', 'font-family', 'line-height', 'text-transform', 'letter-spacing'];
1259
- for (_i = 0, _len = styles.length; _i < _len; _i++) {
1260
- style = styles[_i];
1261
- style_block += style + ":" + this.search_field.css(style) + ";";
1262
- }
1263
- div = $('<div />', {
1264
- 'style': style_block
1265
- });
1266
- div.text(this.search_field.val());
1267
- $('body').append(div);
1268
- w = div.width() + 25;
1269
- div.remove();
1270
- f_width = this.container.outerWidth();
1271
- if (w > f_width - 10) {
1272
- w = f_width - 10;
1273
- }
1274
- return this.search_field.css({
1275
- 'width': w + 'px'
1276
- });
1277
- }
1278
- };
1279
-
1280
- return Chosen;
1281
-
1282
- })(AbstractChosen);
1283
-
1284
- }).call(this);
1
+ /*!
2
+ Chosen, a Select Box Enhancer for jQuery and Prototype
3
+ by Patrick Filler for Harvest, http://getharvest.com
4
+
5
+ Version 1.5.1
6
+ Full source at https://github.com/harvesthq/chosen
7
+ Copyright (c) 2011-2016 Harvest http://getharvest.com
8
+
9
+ MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
10
+ This file is generated by `grunt build`, do not edit it by hand.
11
+ */
12
+
13
+ (function() {
14
+ var $, AbstractChosen, Chosen, SelectParser, _ref,
15
+ __hasProp = {}.hasOwnProperty,
16
+ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
17
+
18
+ SelectParser = (function() {
19
+ function SelectParser() {
20
+ this.options_index = 0;
21
+ this.parsed = [];
22
+ }
23
+
24
+ SelectParser.prototype.add_node = function(child) {
25
+ if (child.nodeName.toUpperCase() === "OPTGROUP") {
26
+ return this.add_group(child);
27
+ } else {
28
+ return this.add_option(child);
29
+ }
30
+ };
31
+
32
+ SelectParser.prototype.add_group = function(group) {
33
+ var group_position, option, _i, _len, _ref, _results;
34
+ group_position = this.parsed.length;
35
+ this.parsed.push({
36
+ array_index: group_position,
37
+ group: true,
38
+ label: this.escapeExpression(group.label),
39
+ title: group.title ? group.title : void 0,
40
+ children: 0,
41
+ disabled: group.disabled,
42
+ classes: group.className
43
+ });
44
+ _ref = group.childNodes;
45
+ _results = [];
46
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
47
+ option = _ref[_i];
48
+ _results.push(this.add_option(option, group_position, group.disabled));
49
+ }
50
+ return _results;
51
+ };
52
+
53
+ SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
54
+ if (option.nodeName.toUpperCase() === "OPTION") {
55
+ if (option.text !== "") {
56
+ if (group_position != null) {
57
+ this.parsed[group_position].children += 1;
58
+ }
59
+ this.parsed.push({
60
+ array_index: this.parsed.length,
61
+ options_index: this.options_index,
62
+ value: option.value,
63
+ text: option.text,
64
+ html: option.innerHTML,
65
+ title: option.title ? option.title : void 0,
66
+ selected: option.selected,
67
+ disabled: group_disabled === true ? group_disabled : option.disabled,
68
+ group_array_index: group_position,
69
+ group_label: group_position != null ? this.parsed[group_position].label : null,
70
+ classes: option.className,
71
+ style: option.style.cssText
72
+ });
73
+ } else {
74
+ this.parsed.push({
75
+ array_index: this.parsed.length,
76
+ options_index: this.options_index,
77
+ empty: true
78
+ });
79
+ }
80
+ return this.options_index += 1;
81
+ }
82
+ };
83
+
84
+ SelectParser.prototype.escapeExpression = function(text) {
85
+ var map, unsafe_chars;
86
+ if ((text == null) || text === false) {
87
+ return "";
88
+ }
89
+ if (!/[\&\<\>\"\'\`]/.test(text)) {
90
+ return text;
91
+ }
92
+ map = {
93
+ "<": "&lt;",
94
+ ">": "&gt;",
95
+ '"': "&quot;",
96
+ "'": "&#x27;",
97
+ "`": "&#x60;"
98
+ };
99
+ unsafe_chars = /&(?!\w+;)|[\<\>\"\'\`]/g;
100
+ return text.replace(unsafe_chars, function(chr) {
101
+ return map[chr] || "&amp;";
102
+ });
103
+ };
104
+
105
+ return SelectParser;
106
+
107
+ })();
108
+
109
+ SelectParser.select_to_array = function(select) {
110
+ var child, parser, _i, _len, _ref;
111
+ parser = new SelectParser();
112
+ _ref = select.childNodes;
113
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
114
+ child = _ref[_i];
115
+ parser.add_node(child);
116
+ }
117
+ return parser.parsed;
118
+ };
119
+
120
+ AbstractChosen = (function() {
121
+ function AbstractChosen(form_field, options) {
122
+ this.form_field = form_field;
123
+ this.options = options != null ? options : {};
124
+ if (!AbstractChosen.browser_is_supported()) {
125
+ return;
126
+ }
127
+ this.is_multiple = this.form_field.multiple;
128
+ this.set_default_text();
129
+ this.set_default_values();
130
+ this.setup();
131
+ this.set_up_html();
132
+ this.register_observers();
133
+ this.on_ready();
134
+ }
135
+
136
+ AbstractChosen.prototype.set_default_values = function() {
137
+ var _this = this;
138
+ this.click_test_action = function(evt) {
139
+ return _this.test_active_click(evt);
140
+ };
141
+ this.activate_action = function(evt) {
142
+ return _this.activate_field(evt);
143
+ };
144
+ this.active_field = false;
145
+ this.mouse_on_container = false;
146
+ this.results_showing = false;
147
+ this.result_highlighted = null;
148
+ this.allow_single_deselect = (this.options.allow_single_deselect != null) && (this.form_field.options[0] != null) && this.form_field.options[0].text === "" ? this.options.allow_single_deselect : false;
149
+ this.disable_search_threshold = this.options.disable_search_threshold || 0;
150
+ this.disable_search = this.options.disable_search || false;
151
+ this.enable_split_word_search = this.options.enable_split_word_search != null ? this.options.enable_split_word_search : true;
152
+ this.group_search = this.options.group_search != null ? this.options.group_search : true;
153
+ this.search_contains = this.options.search_contains || false;
154
+ this.single_backstroke_delete = this.options.single_backstroke_delete != null ? this.options.single_backstroke_delete : true;
155
+ this.max_selected_options = this.options.max_selected_options || Infinity;
156
+ this.inherit_select_classes = this.options.inherit_select_classes || false;
157
+ this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
158
+ this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
159
+ this.include_group_label_in_selected = this.options.include_group_label_in_selected || false;
160
+ return this.max_shown_results = this.options.max_shown_results || Number.POSITIVE_INFINITY;
161
+ };
162
+
163
+ AbstractChosen.prototype.set_default_text = function() {
164
+ if (this.form_field.getAttribute("data-placeholder")) {
165
+ this.default_text = this.form_field.getAttribute("data-placeholder");
166
+ } else if (this.is_multiple) {
167
+ this.default_text = this.options.placeholder_text_multiple || this.options.placeholder_text || AbstractChosen.default_multiple_text;
168
+ } else {
169
+ this.default_text = this.options.placeholder_text_single || this.options.placeholder_text || AbstractChosen.default_single_text;
170
+ }
171
+ return this.results_none_found = this.form_field.getAttribute("data-no_results_text") || this.options.no_results_text || AbstractChosen.default_no_result_text;
172
+ };
173
+
174
+ AbstractChosen.prototype.choice_label = function(item) {
175
+ if (this.include_group_label_in_selected && (item.group_label != null)) {
176
+ return "<b class='group-name'>" + item.group_label + "</b>" + item.html;
177
+ } else {
178
+ return item.html;
179
+ }
180
+ };
181
+
182
+ AbstractChosen.prototype.mouse_enter = function() {
183
+ return this.mouse_on_container = true;
184
+ };
185
+
186
+ AbstractChosen.prototype.mouse_leave = function() {
187
+ return this.mouse_on_container = false;
188
+ };
189
+
190
+ AbstractChosen.prototype.input_focus = function(evt) {
191
+ var _this = this;
192
+ if (this.is_multiple) {
193
+ if (!this.active_field) {
194
+ return setTimeout((function() {
195
+ return _this.container_mousedown();
196
+ }), 50);
197
+ }
198
+ } else {
199
+ if (!this.active_field) {
200
+ return this.activate_field();
201
+ }
202
+ }
203
+ };
204
+
205
+ AbstractChosen.prototype.input_blur = function(evt) {
206
+ var _this = this;
207
+ if (!this.mouse_on_container) {
208
+ this.active_field = false;
209
+ return setTimeout((function() {
210
+ return _this.blur_test();
211
+ }), 100);
212
+ }
213
+ };
214
+
215
+ AbstractChosen.prototype.results_option_build = function(options) {
216
+ var content, data, data_content, shown_results, _i, _len, _ref;
217
+ content = '';
218
+ shown_results = 0;
219
+ _ref = this.results_data;
220
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
221
+ data = _ref[_i];
222
+ data_content = '';
223
+ if (data.group) {
224
+ data_content = this.result_add_group(data);
225
+ } else {
226
+ data_content = this.result_add_option(data);
227
+ }
228
+ if (data_content !== '') {
229
+ shown_results++;
230
+ content += data_content;
231
+ }
232
+ if (options != null ? options.first : void 0) {
233
+ if (data.selected && this.is_multiple) {
234
+ this.choice_build(data);
235
+ } else if (data.selected && !this.is_multiple) {
236
+ this.single_set_selected_text(this.choice_label(data));
237
+ }
238
+ }
239
+ if (shown_results >= this.max_shown_results) {
240
+ break;
241
+ }
242
+ }
243
+ return content;
244
+ };
245
+
246
+ AbstractChosen.prototype.result_add_option = function(option) {
247
+ var classes, option_el;
248
+ if (!option.search_match) {
249
+ return '';
250
+ }
251
+ if (!this.include_option_in_results(option)) {
252
+ return '';
253
+ }
254
+ classes = [];
255
+ if (!option.disabled && !(option.selected && this.is_multiple)) {
256
+ classes.push("active-result");
257
+ }
258
+ if (option.disabled && !(option.selected && this.is_multiple)) {
259
+ classes.push("disabled-result");
260
+ }
261
+ if (option.selected) {
262
+ classes.push("result-selected");
263
+ }
264
+ if (option.group_array_index != null) {
265
+ classes.push("group-option");
266
+ }
267
+ if (option.classes !== "") {
268
+ classes.push(option.classes);
269
+ }
270
+ option_el = document.createElement("li");
271
+ option_el.className = classes.join(" ");
272
+ option_el.style.cssText = option.style;
273
+ option_el.setAttribute("data-option-array-index", option.array_index);
274
+ option_el.innerHTML = option.search_text;
275
+ if (option.title) {
276
+ option_el.title = option.title;
277
+ }
278
+ return this.outerHTML(option_el);
279
+ };
280
+
281
+ AbstractChosen.prototype.result_add_group = function(group) {
282
+ var classes, group_el;
283
+ if (!(group.search_match || group.group_match)) {
284
+ return '';
285
+ }
286
+ if (!(group.active_options > 0)) {
287
+ return '';
288
+ }
289
+ classes = [];
290
+ classes.push("group-result");
291
+ if (group.classes) {
292
+ classes.push(group.classes);
293
+ }
294
+ group_el = document.createElement("li");
295
+ group_el.className = classes.join(" ");
296
+ group_el.innerHTML = group.search_text;
297
+ if (group.title) {
298
+ group_el.title = group.title;
299
+ }
300
+ return this.outerHTML(group_el);
301
+ };
302
+
303
+ AbstractChosen.prototype.results_update_field = function() {
304
+ this.set_default_text();
305
+ if (!this.is_multiple) {
306
+ this.results_reset_cleanup();
307
+ }
308
+ this.result_clear_highlight();
309
+ this.results_build();
310
+ if (this.results_showing) {
311
+ return this.winnow_results();
312
+ }
313
+ };
314
+
315
+ AbstractChosen.prototype.reset_single_select_options = function() {
316
+ var result, _i, _len, _ref, _results;
317
+ _ref = this.results_data;
318
+ _results = [];
319
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
320
+ result = _ref[_i];
321
+ if (result.selected) {
322
+ _results.push(result.selected = false);
323
+ } else {
324
+ _results.push(void 0);
325
+ }
326
+ }
327
+ return _results;
328
+ };
329
+
330
+ AbstractChosen.prototype.results_toggle = function() {
331
+ if (this.results_showing) {
332
+ return this.results_hide();
333
+ } else {
334
+ return this.results_show();
335
+ }
336
+ };
337
+
338
+ AbstractChosen.prototype.results_search = function(evt) {
339
+ if (this.results_showing) {
340
+ return this.winnow_results();
341
+ } else {
342
+ return this.results_show();
343
+ }
344
+ };
345
+
346
+ AbstractChosen.prototype.winnow_results = function() {
347
+ var escapedSearchText, option, regex, results, results_group, searchText, startpos, text, zregex, _i, _len, _ref;
348
+ this.no_results_clear();
349
+ results = 0;
350
+ searchText = this.get_search_text();
351
+ escapedSearchText = searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
352
+ zregex = new RegExp(escapedSearchText, 'i');
353
+ regex = this.get_search_regex(escapedSearchText);
354
+ _ref = this.results_data;
355
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
356
+ option = _ref[_i];
357
+ option.search_match = false;
358
+ results_group = null;
359
+ if (this.include_option_in_results(option)) {
360
+ if (option.group) {
361
+ option.group_match = false;
362
+ option.active_options = 0;
363
+ }
364
+ if ((option.group_array_index != null) && this.results_data[option.group_array_index]) {
365
+ results_group = this.results_data[option.group_array_index];
366
+ if (results_group.active_options === 0 && results_group.search_match) {
367
+ results += 1;
368
+ }
369
+ results_group.active_options += 1;
370
+ }
371
+ option.search_text = option.group ? option.label : option.html;
372
+ if (!(option.group && !this.group_search)) {
373
+ option.search_match = this.search_string_match(option.search_text, regex);
374
+ if (option.search_match && !option.group) {
375
+ results += 1;
376
+ }
377
+ if (option.search_match) {
378
+ if (searchText.length) {
379
+ startpos = option.search_text.search(zregex);
380
+ text = option.search_text.substr(0, startpos + searchText.length) + '</em>' + option.search_text.substr(startpos + searchText.length);
381
+ option.search_text = text.substr(0, startpos) + '<em>' + text.substr(startpos);
382
+ }
383
+ if (results_group != null) {
384
+ results_group.group_match = true;
385
+ }
386
+ } else if ((option.group_array_index != null) && this.results_data[option.group_array_index].search_match) {
387
+ option.search_match = true;
388
+ }
389
+ }
390
+ }
391
+ }
392
+ this.result_clear_highlight();
393
+ if (results < 1 && searchText.length) {
394
+ this.update_results_content("");
395
+ return this.no_results(searchText);
396
+ } else {
397
+ this.update_results_content(this.results_option_build());
398
+ return this.winnow_results_set_highlight();
399
+ }
400
+ };
401
+
402
+ AbstractChosen.prototype.get_search_regex = function(escaped_search_string) {
403
+ var regex_anchor;
404
+ regex_anchor = this.search_contains ? "" : "^";
405
+ return new RegExp(regex_anchor + escaped_search_string, 'i');
406
+ };
407
+
408
+ AbstractChosen.prototype.search_string_match = function(search_string, regex) {
409
+ var part, parts, _i, _len;
410
+ if (regex.test(search_string)) {
411
+ return true;
412
+ } else if (this.enable_split_word_search && (search_string.indexOf(" ") >= 0 || search_string.indexOf("[") === 0)) {
413
+ parts = search_string.replace(/\[|\]/g, "").split(" ");
414
+ if (parts.length) {
415
+ for (_i = 0, _len = parts.length; _i < _len; _i++) {
416
+ part = parts[_i];
417
+ if (regex.test(part)) {
418
+ return true;
419
+ }
420
+ }
421
+ }
422
+ }
423
+ };
424
+
425
+ AbstractChosen.prototype.choices_count = function() {
426
+ var option, _i, _len, _ref;
427
+ if (this.selected_option_count != null) {
428
+ return this.selected_option_count;
429
+ }
430
+ this.selected_option_count = 0;
431
+ _ref = this.form_field.options;
432
+ for (_i = 0, _len = _ref.length; _i < _len; _i++) {
433
+ option = _ref[_i];
434
+ if (option.selected) {
435
+ this.selected_option_count += 1;
436
+ }
437
+ }
438
+ return this.selected_option_count;
439
+ };
440
+
441
+ AbstractChosen.prototype.choices_click = function(evt) {
442
+ evt.preventDefault();
443
+ if (!(this.results_showing || this.is_disabled)) {
444
+ return this.results_show();
445
+ }
446
+ };
447
+
448
+ AbstractChosen.prototype.keyup_checker = function(evt) {
449
+ var stroke, _ref;
450
+ stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
451
+ this.search_field_scale();
452
+ switch (stroke) {
453
+ case 8:
454
+ if (this.is_multiple && this.backstroke_length < 1 && this.choices_count() > 0) {
455
+ return this.keydown_backstroke();
456
+ } else if (!this.pending_backstroke) {
457
+ this.result_clear_highlight();
458
+ return this.results_search();
459
+ }
460
+ break;
461
+ case 13:
462
+ evt.preventDefault();
463
+ if (this.results_showing) {
464
+ return this.result_select(evt);
465
+ }
466
+ break;
467
+ case 27:
468
+ if (this.results_showing) {
469
+ this.results_hide();
470
+ }
471
+ return true;
472
+ case 9:
473
+ case 38:
474
+ case 40:
475
+ case 16:
476
+ case 91:
477
+ case 17:
478
+ case 18:
479
+ break;
480
+ default:
481
+ return this.results_search();
482
+ }
483
+ };
484
+
485
+ AbstractChosen.prototype.clipboard_event_checker = function(evt) {
486
+ var _this = this;
487
+ return setTimeout((function() {
488
+ return _this.results_search();
489
+ }), 50);
490
+ };
491
+
492
+ AbstractChosen.prototype.container_width = function() {
493
+ if (this.options.width != null) {
494
+ return this.options.width;
495
+ } else {
496
+ return "" + this.form_field.offsetWidth + "px";
497
+ }
498
+ };
499
+
500
+ AbstractChosen.prototype.include_option_in_results = function(option) {
501
+ if (this.is_multiple && (!this.display_selected_options && option.selected)) {
502
+ return false;
503
+ }
504
+ if (!this.display_disabled_options && option.disabled) {
505
+ return false;
506
+ }
507
+ if (option.empty) {
508
+ return false;
509
+ }
510
+ return true;
511
+ };
512
+
513
+ AbstractChosen.prototype.search_results_touchstart = function(evt) {
514
+ this.touch_started = true;
515
+ return this.search_results_mouseover(evt);
516
+ };
517
+
518
+ AbstractChosen.prototype.search_results_touchmove = function(evt) {
519
+ this.touch_started = false;
520
+ return this.search_results_mouseout(evt);
521
+ };
522
+
523
+ AbstractChosen.prototype.search_results_touchend = function(evt) {
524
+ if (this.touch_started) {
525
+ return this.search_results_mouseup(evt);
526
+ }
527
+ };
528
+
529
+ AbstractChosen.prototype.outerHTML = function(element) {
530
+ var tmp;
531
+ if (element.outerHTML) {
532
+ return element.outerHTML;
533
+ }
534
+ tmp = document.createElement("div");
535
+ tmp.appendChild(element);
536
+ return tmp.innerHTML;
537
+ };
538
+
539
+ AbstractChosen.browser_is_supported = function() {
540
+ if (/iP(od|hone)/i.test(window.navigator.userAgent)) {
541
+ return false;
542
+ }
543
+ if (/Android/i.test(window.navigator.userAgent)) {
544
+ if (/Mobile/i.test(window.navigator.userAgent)) {
545
+ return false;
546
+ }
547
+ }
548
+ if (/IEMobile/i.test(window.navigator.userAgent)) {
549
+ return false;
550
+ }
551
+ if (/Windows Phone/i.test(window.navigator.userAgent)) {
552
+ return false;
553
+ }
554
+ if (/BlackBerry/i.test(window.navigator.userAgent)) {
555
+ return false;
556
+ }
557
+ if (/BB10/i.test(window.navigator.userAgent)) {
558
+ return false;
559
+ }
560
+ if (window.navigator.appName === "Microsoft Internet Explorer") {
561
+ return document.documentMode >= 8;
562
+ }
563
+ return true;
564
+ };
565
+
566
+ AbstractChosen.default_multiple_text = "Select Some Options";
567
+
568
+ AbstractChosen.default_single_text = "Select an Option";
569
+
570
+ AbstractChosen.default_no_result_text = "No results match";
571
+
572
+ return AbstractChosen;
573
+
574
+ })();
575
+
576
+ $ = jQuery;
577
+
578
+ $.fn.extend({
579
+ chosen: function(options) {
580
+ if (!AbstractChosen.browser_is_supported()) {
581
+ return this;
582
+ }
583
+ return this.each(function(input_field) {
584
+ var $this, chosen;
585
+ $this = $(this);
586
+ chosen = $this.data('chosen');
587
+ if (options === 'destroy') {
588
+ if (chosen instanceof Chosen) {
589
+ chosen.destroy();
590
+ }
591
+ return;
592
+ }
593
+ if (!(chosen instanceof Chosen)) {
594
+ $this.data('chosen', new Chosen(this, options));
595
+ }
596
+ });
597
+ }
598
+ });
599
+
600
+ Chosen = (function(_super) {
601
+ __extends(Chosen, _super);
602
+
603
+ function Chosen() {
604
+ _ref = Chosen.__super__.constructor.apply(this, arguments);
605
+ return _ref;
606
+ }
607
+
608
+ Chosen.prototype.setup = function() {
609
+ this.form_field_jq = $(this.form_field);
610
+ this.current_selectedIndex = this.form_field.selectedIndex;
611
+ return this.is_rtl = this.form_field_jq.hasClass("chosen-rtl");
612
+ };
613
+
614
+ Chosen.prototype.set_up_html = function() {
615
+ var container_classes, container_props;
616
+ container_classes = ["chosen-container"];
617
+ container_classes.push("chosen-container-" + (this.is_multiple ? "multi" : "single"));
618
+ if (this.inherit_select_classes && this.form_field.className) {
619
+ container_classes.push(this.form_field.className);
620
+ }
621
+ if (this.is_rtl) {
622
+ container_classes.push("chosen-rtl");
623
+ }
624
+ container_props = {
625
+ 'class': container_classes.join(' '),
626
+ 'style': "width: " + (this.container_width()) + ";",
627
+ 'title': this.form_field.title
628
+ };
629
+ if (this.form_field.id.length) {
630
+ container_props.id = this.form_field.id.replace(/[^\w]/g, '_') + "_chosen";
631
+ }
632
+ this.container = $("<div />", container_props);
633
+ if (this.is_multiple) {
634
+ this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="' + this.default_text + '" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>');
635
+ } else {
636
+ this.container.html('<a class="chosen-single chosen-default"><span>' + this.default_text + '</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>');
637
+ }
638
+ this.form_field_jq.hide().after(this.container);
639
+ this.dropdown = this.container.find('div.chosen-drop').first();
640
+ this.search_field = this.container.find('input').first();
641
+ this.search_results = this.container.find('ul.chosen-results').first();
642
+ this.search_field_scale();
643
+ this.search_no_results = this.container.find('li.no-results').first();
644
+ if (this.is_multiple) {
645
+ this.search_choices = this.container.find('ul.chosen-choices').first();
646
+ this.search_container = this.container.find('li.search-field').first();
647
+ } else {
648
+ this.search_container = this.container.find('div.chosen-search').first();
649
+ this.selected_item = this.container.find('.chosen-single').first();
650
+ }
651
+ this.results_build();
652
+ this.set_tab_index();
653
+ return this.set_label_behavior();
654
+ };
655
+
656
+ Chosen.prototype.on_ready = function() {
657
+ return this.form_field_jq.trigger("chosen:ready", {
658
+ chosen: this
659
+ });
660
+ };
661
+
662
+ Chosen.prototype.register_observers = function() {
663
+ var _this = this;
664
+ this.container.bind('touchstart.chosen', function(evt) {
665
+ _this.container_mousedown(evt);
666
+ return evt.preventDefault();
667
+ });
668
+ this.container.bind('touchend.chosen', function(evt) {
669
+ _this.container_mouseup(evt);
670
+ return evt.preventDefault();
671
+ });
672
+ this.container.bind('mousedown.chosen', function(evt) {
673
+ _this.container_mousedown(evt);
674
+ });
675
+ this.container.bind('mouseup.chosen', function(evt) {
676
+ _this.container_mouseup(evt);
677
+ });
678
+ this.container.bind('mouseenter.chosen', function(evt) {
679
+ _this.mouse_enter(evt);
680
+ });
681
+ this.container.bind('mouseleave.chosen', function(evt) {
682
+ _this.mouse_leave(evt);
683
+ });
684
+ this.search_results.bind('mouseup.chosen', function(evt) {
685
+ _this.search_results_mouseup(evt);
686
+ });
687
+ this.search_results.bind('mouseover.chosen', function(evt) {
688
+ _this.search_results_mouseover(evt);
689
+ });
690
+ this.search_results.bind('mouseout.chosen', function(evt) {
691
+ _this.search_results_mouseout(evt);
692
+ });
693
+ this.search_results.bind('mousewheel.chosen DOMMouseScroll.chosen', function(evt) {
694
+ _this.search_results_mousewheel(evt);
695
+ });
696
+ this.search_results.bind('touchstart.chosen', function(evt) {
697
+ _this.search_results_touchstart(evt);
698
+ });
699
+ this.search_results.bind('touchmove.chosen', function(evt) {
700
+ _this.search_results_touchmove(evt);
701
+ });
702
+ this.search_results.bind('touchend.chosen', function(evt) {
703
+ _this.search_results_touchend(evt);
704
+ });
705
+ this.form_field_jq.bind("chosen:updated.chosen", function(evt) {
706
+ _this.results_update_field(evt);
707
+ });
708
+ this.form_field_jq.bind("chosen:activate.chosen", function(evt) {
709
+ _this.activate_field(evt);
710
+ });
711
+ this.form_field_jq.bind("chosen:open.chosen", function(evt) {
712
+ _this.container_mousedown(evt);
713
+ });
714
+ this.form_field_jq.bind("chosen:close.chosen", function(evt) {
715
+ _this.input_blur(evt);
716
+ });
717
+ this.search_field.bind('blur.chosen', function(evt) {
718
+ _this.input_blur(evt);
719
+ });
720
+ this.search_field.bind('keyup.chosen', function(evt) {
721
+ _this.keyup_checker(evt);
722
+ });
723
+ this.search_field.bind('keydown.chosen', function(evt) {
724
+ _this.keydown_checker(evt);
725
+ });
726
+ this.search_field.bind('focus.chosen', function(evt) {
727
+ _this.input_focus(evt);
728
+ });
729
+ this.search_field.bind('cut.chosen', function(evt) {
730
+ _this.clipboard_event_checker(evt);
731
+ });
732
+ this.search_field.bind('paste.chosen', function(evt) {
733
+ _this.clipboard_event_checker(evt);
734
+ });
735
+ if (this.is_multiple) {
736
+ return this.search_choices.bind('click.chosen', function(evt) {
737
+ _this.choices_click(evt);
738
+ });
739
+ } else {
740
+ return this.container.bind('click.chosen', function(evt) {
741
+ evt.preventDefault();
742
+ });
743
+ }
744
+ };
745
+
746
+ Chosen.prototype.destroy = function() {
747
+ $(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
748
+ if (this.search_field[0].tabIndex) {
749
+ this.form_field_jq[0].tabIndex = this.search_field[0].tabIndex;
750
+ }
751
+ this.container.remove();
752
+ this.form_field_jq.removeData('chosen');
753
+ return this.form_field_jq.show();
754
+ };
755
+
756
+ Chosen.prototype.search_field_disabled = function() {
757
+ this.is_disabled = this.form_field_jq[0].disabled;
758
+ if (this.is_disabled) {
759
+ this.container.addClass('chosen-disabled');
760
+ this.search_field[0].disabled = true;
761
+ if (!this.is_multiple) {
762
+ this.selected_item.unbind("focus.chosen", this.activate_action);
763
+ }
764
+ return this.close_field();
765
+ } else {
766
+ this.container.removeClass('chosen-disabled');
767
+ this.search_field[0].disabled = false;
768
+ if (!this.is_multiple) {
769
+ return this.selected_item.bind("focus.chosen", this.activate_action);
770
+ }
771
+ }
772
+ };
773
+
774
+ Chosen.prototype.container_mousedown = function(evt) {
775
+ if (!this.is_disabled) {
776
+ if (evt && evt.type === "mousedown" && !this.results_showing) {
777
+ evt.preventDefault();
778
+ }
779
+ if (!((evt != null) && ($(evt.target)).hasClass("search-choice-close"))) {
780
+ if (!this.active_field) {
781
+ if (this.is_multiple) {
782
+ this.search_field.val("");
783
+ }
784
+ $(this.container[0].ownerDocument).bind('click.chosen', this.click_test_action);
785
+ this.results_show();
786
+ } else if (!this.is_multiple && evt && (($(evt.target)[0] === this.selected_item[0]) || $(evt.target).parents("a.chosen-single").length)) {
787
+ evt.preventDefault();
788
+ this.results_toggle();
789
+ }
790
+ return this.activate_field();
791
+ }
792
+ }
793
+ };
794
+
795
+ Chosen.prototype.container_mouseup = function(evt) {
796
+ if (evt.target.nodeName === "ABBR" && !this.is_disabled) {
797
+ return this.results_reset(evt);
798
+ }
799
+ };
800
+
801
+ Chosen.prototype.search_results_mousewheel = function(evt) {
802
+ var delta;
803
+ if (evt.originalEvent) {
804
+ delta = evt.originalEvent.deltaY || -evt.originalEvent.wheelDelta || evt.originalEvent.detail;
805
+ }
806
+ if (delta != null) {
807
+ evt.preventDefault();
808
+ if (evt.type === 'DOMMouseScroll') {
809
+ delta = delta * 40;
810
+ }
811
+ return this.search_results.scrollTop(delta + this.search_results.scrollTop());
812
+ }
813
+ };
814
+
815
+ Chosen.prototype.blur_test = function(evt) {
816
+ if (!this.active_field && this.container.hasClass("chosen-container-active")) {
817
+ return this.close_field();
818
+ }
819
+ };
820
+
821
+ Chosen.prototype.close_field = function() {
822
+ $(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
823
+ this.active_field = false;
824
+ this.results_hide();
825
+ this.container.removeClass("chosen-container-active");
826
+ this.clear_backstroke();
827
+ this.show_search_field_default();
828
+ return this.search_field_scale();
829
+ };
830
+
831
+ Chosen.prototype.activate_field = function() {
832
+ this.container.addClass("chosen-container-active");
833
+ this.active_field = true;
834
+ this.search_field.val(this.search_field.val());
835
+ return this.search_field.focus();
836
+ };
837
+
838
+ Chosen.prototype.test_active_click = function(evt) {
839
+ var active_container;
840
+ active_container = $(evt.target).closest('.chosen-container');
841
+ if (active_container.length && this.container[0] === active_container[0]) {
842
+ return this.active_field = true;
843
+ } else {
844
+ return this.close_field();
845
+ }
846
+ };
847
+
848
+ Chosen.prototype.results_build = function() {
849
+ this.parsing = true;
850
+ this.selected_option_count = null;
851
+ this.results_data = SelectParser.select_to_array(this.form_field);
852
+ if (this.is_multiple) {
853
+ this.search_choices.find("li.search-choice").remove();
854
+ } else if (!this.is_multiple) {
855
+ this.single_set_selected_text();
856
+ if (this.disable_search || this.form_field.options.length <= this.disable_search_threshold) {
857
+ this.search_field[0].readOnly = true;
858
+ this.container.addClass("chosen-container-single-nosearch");
859
+ } else {
860
+ this.search_field[0].readOnly = false;
861
+ this.container.removeClass("chosen-container-single-nosearch");
862
+ }
863
+ }
864
+ this.update_results_content(this.results_option_build({
865
+ first: true
866
+ }));
867
+ this.search_field_disabled();
868
+ this.show_search_field_default();
869
+ this.search_field_scale();
870
+ return this.parsing = false;
871
+ };
872
+
873
+ Chosen.prototype.result_do_highlight = function(el) {
874
+ var high_bottom, high_top, maxHeight, visible_bottom, visible_top;
875
+ if (el.length) {
876
+ this.result_clear_highlight();
877
+ this.result_highlight = el;
878
+ this.result_highlight.addClass("highlighted");
879
+ maxHeight = parseInt(this.search_results.css("maxHeight"), 10);
880
+ visible_top = this.search_results.scrollTop();
881
+ visible_bottom = maxHeight + visible_top;
882
+ high_top = this.result_highlight.position().top + this.search_results.scrollTop();
883
+ high_bottom = high_top + this.result_highlight.outerHeight();
884
+ if (high_bottom >= visible_bottom) {
885
+ return this.search_results.scrollTop((high_bottom - maxHeight) > 0 ? high_bottom - maxHeight : 0);
886
+ } else if (high_top < visible_top) {
887
+ return this.search_results.scrollTop(high_top);
888
+ }
889
+ }
890
+ };
891
+
892
+ Chosen.prototype.result_clear_highlight = function() {
893
+ if (this.result_highlight) {
894
+ this.result_highlight.removeClass("highlighted");
895
+ }
896
+ return this.result_highlight = null;
897
+ };
898
+
899
+ Chosen.prototype.results_show = function() {
900
+ if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
901
+ this.form_field_jq.trigger("chosen:maxselected", {
902
+ chosen: this
903
+ });
904
+ return false;
905
+ }
906
+ this.container.addClass("chosen-with-drop");
907
+ this.results_showing = true;
908
+ this.search_field.focus();
909
+ this.search_field.val(this.search_field.val());
910
+ this.winnow_results();
911
+ return this.form_field_jq.trigger("chosen:showing_dropdown", {
912
+ chosen: this
913
+ });
914
+ };
915
+
916
+ Chosen.prototype.update_results_content = function(content) {
917
+ return this.search_results.html(content);
918
+ };
919
+
920
+ Chosen.prototype.results_hide = function() {
921
+ if (this.results_showing) {
922
+ this.result_clear_highlight();
923
+ this.container.removeClass("chosen-with-drop");
924
+ this.form_field_jq.trigger("chosen:hiding_dropdown", {
925
+ chosen: this
926
+ });
927
+ }
928
+ return this.results_showing = false;
929
+ };
930
+
931
+ Chosen.prototype.set_tab_index = function(el) {
932
+ var ti;
933
+ if (this.form_field.tabIndex) {
934
+ ti = this.form_field.tabIndex;
935
+ this.form_field.tabIndex = -1;
936
+ return this.search_field[0].tabIndex = ti;
937
+ }
938
+ };
939
+
940
+ Chosen.prototype.set_label_behavior = function() {
941
+ var _this = this;
942
+ this.form_field_label = this.form_field_jq.parents("label");
943
+ if (!this.form_field_label.length && this.form_field.id.length) {
944
+ this.form_field_label = $("label[for='" + this.form_field.id + "']");
945
+ }
946
+ if (this.form_field_label.length > 0) {
947
+ return this.form_field_label.bind('click.chosen', function(evt) {
948
+ if (_this.is_multiple) {
949
+ return _this.container_mousedown(evt);
950
+ } else {
951
+ return _this.activate_field();
952
+ }
953
+ });
954
+ }
955
+ };
956
+
957
+ Chosen.prototype.show_search_field_default = function() {
958
+ if (this.is_multiple && this.choices_count() < 1 && !this.active_field) {
959
+ this.search_field.val(this.default_text);
960
+ return this.search_field.addClass("default");
961
+ } else {
962
+ this.search_field.val("");
963
+ return this.search_field.removeClass("default");
964
+ }
965
+ };
966
+
967
+ Chosen.prototype.search_results_mouseup = function(evt) {
968
+ var target;
969
+ target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
970
+ if (target.length) {
971
+ this.result_highlight = target;
972
+ this.result_select(evt);
973
+ return this.search_field.focus();
974
+ }
975
+ };
976
+
977
+ Chosen.prototype.search_results_mouseover = function(evt) {
978
+ var target;
979
+ target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
980
+ if (target) {
981
+ return this.result_do_highlight(target);
982
+ }
983
+ };
984
+
985
+ Chosen.prototype.search_results_mouseout = function(evt) {
986
+ if ($(evt.target).hasClass("active-result" || $(evt.target).parents('.active-result').first())) {
987
+ return this.result_clear_highlight();
988
+ }
989
+ };
990
+
991
+ Chosen.prototype.choice_build = function(item) {
992
+ var choice, close_link,
993
+ _this = this;
994
+ choice = $('<li />', {
995
+ "class": "search-choice"
996
+ }).html("<span>" + (this.choice_label(item)) + "</span>");
997
+ if (item.disabled) {
998
+ choice.addClass('search-choice-disabled');
999
+ } else {
1000
+ close_link = $('<a />', {
1001
+ "class": 'search-choice-close',
1002
+ 'data-option-array-index': item.array_index
1003
+ });
1004
+ close_link.bind('click.chosen', function(evt) {
1005
+ return _this.choice_destroy_link_click(evt);
1006
+ });
1007
+ choice.append(close_link);
1008
+ }
1009
+ return this.search_container.before(choice);
1010
+ };
1011
+
1012
+ Chosen.prototype.choice_destroy_link_click = function(evt) {
1013
+ evt.preventDefault();
1014
+ evt.stopPropagation();
1015
+ if (!this.is_disabled) {
1016
+ return this.choice_destroy($(evt.target));
1017
+ }
1018
+ };
1019
+
1020
+ Chosen.prototype.choice_destroy = function(link) {
1021
+ if (this.result_deselect(link[0].getAttribute("data-option-array-index"))) {
1022
+ this.show_search_field_default();
1023
+ if (this.is_multiple && this.choices_count() > 0 && this.search_field.val().length < 1) {
1024
+ this.results_hide();
1025
+ }
1026
+ link.parents('li').first().remove();
1027
+ return this.search_field_scale();
1028
+ }
1029
+ };
1030
+
1031
+ Chosen.prototype.results_reset = function() {
1032
+ this.reset_single_select_options();
1033
+ this.form_field.options[0].selected = true;
1034
+ this.single_set_selected_text();
1035
+ this.show_search_field_default();
1036
+ this.results_reset_cleanup();
1037
+ this.form_field_jq.trigger("change");
1038
+ if (this.active_field) {
1039
+ return this.results_hide();
1040
+ }
1041
+ };
1042
+
1043
+ Chosen.prototype.results_reset_cleanup = function() {
1044
+ this.current_selectedIndex = this.form_field.selectedIndex;
1045
+ return this.selected_item.find("abbr").remove();
1046
+ };
1047
+
1048
+ Chosen.prototype.result_select = function(evt) {
1049
+ var high, item;
1050
+ if (this.result_highlight) {
1051
+ high = this.result_highlight;
1052
+ this.result_clear_highlight();
1053
+ if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
1054
+ this.form_field_jq.trigger("chosen:maxselected", {
1055
+ chosen: this
1056
+ });
1057
+ return false;
1058
+ }
1059
+ if (this.is_multiple) {
1060
+ high.removeClass("active-result");
1061
+ } else {
1062
+ this.reset_single_select_options();
1063
+ }
1064
+ high.addClass("result-selected");
1065
+ item = this.results_data[high[0].getAttribute("data-option-array-index")];
1066
+ item.selected = true;
1067
+ this.form_field.options[item.options_index].selected = true;
1068
+ this.selected_option_count = null;
1069
+ if (this.is_multiple) {
1070
+ this.choice_build(item);
1071
+ } else {
1072
+ this.single_set_selected_text(this.choice_label(item));
1073
+ }
1074
+ if (!((evt.metaKey || evt.ctrlKey) && this.is_multiple)) {
1075
+ this.results_hide();
1076
+ }
1077
+ this.show_search_field_default();
1078
+ if (this.is_multiple || this.form_field.selectedIndex !== this.current_selectedIndex) {
1079
+ this.form_field_jq.trigger("change", {
1080
+ 'selected': this.form_field.options[item.options_index].value
1081
+ });
1082
+ }
1083
+ this.current_selectedIndex = this.form_field.selectedIndex;
1084
+ evt.preventDefault();
1085
+ return this.search_field_scale();
1086
+ }
1087
+ };
1088
+
1089
+ Chosen.prototype.single_set_selected_text = function(text) {
1090
+ if (text == null) {
1091
+ text = this.default_text;
1092
+ }
1093
+ if (text === this.default_text) {
1094
+ this.selected_item.addClass("chosen-default");
1095
+ } else {
1096
+ this.single_deselect_control_build();
1097
+ this.selected_item.removeClass("chosen-default");
1098
+ }
1099
+ return this.selected_item.find("span").html(text);
1100
+ };
1101
+
1102
+ Chosen.prototype.result_deselect = function(pos) {
1103
+ var result_data;
1104
+ result_data = this.results_data[pos];
1105
+ if (!this.form_field.options[result_data.options_index].disabled) {
1106
+ result_data.selected = false;
1107
+ this.form_field.options[result_data.options_index].selected = false;
1108
+ this.selected_option_count = null;
1109
+ this.result_clear_highlight();
1110
+ if (this.results_showing) {
1111
+ this.winnow_results();
1112
+ }
1113
+ this.form_field_jq.trigger("change", {
1114
+ deselected: this.form_field.options[result_data.options_index].value
1115
+ });
1116
+ this.search_field_scale();
1117
+ return true;
1118
+ } else {
1119
+ return false;
1120
+ }
1121
+ };
1122
+
1123
+ Chosen.prototype.single_deselect_control_build = function() {
1124
+ if (!this.allow_single_deselect) {
1125
+ return;
1126
+ }
1127
+ if (!this.selected_item.find("abbr").length) {
1128
+ this.selected_item.find("span").first().after("<abbr class=\"search-choice-close\"></abbr>");
1129
+ }
1130
+ return this.selected_item.addClass("chosen-single-with-deselect");
1131
+ };
1132
+
1133
+ Chosen.prototype.get_search_text = function() {
1134
+ return $('<div/>').text($.trim(this.search_field.val())).html();
1135
+ };
1136
+
1137
+ Chosen.prototype.winnow_results_set_highlight = function() {
1138
+ var do_high, selected_results;
1139
+ selected_results = !this.is_multiple ? this.search_results.find(".result-selected.active-result") : [];
1140
+ do_high = selected_results.length ? selected_results.first() : this.search_results.find(".active-result").first();
1141
+ if (do_high != null) {
1142
+ return this.result_do_highlight(do_high);
1143
+ }
1144
+ };
1145
+
1146
+ Chosen.prototype.no_results = function(terms) {
1147
+ var no_results_html;
1148
+ no_results_html = $('<li class="no-results">' + this.results_none_found + ' "<span></span>"</li>');
1149
+ no_results_html.find("span").first().html(terms);
1150
+ this.search_results.append(no_results_html);
1151
+ return this.form_field_jq.trigger("chosen:no_results", {
1152
+ chosen: this
1153
+ });
1154
+ };
1155
+
1156
+ Chosen.prototype.no_results_clear = function() {
1157
+ return this.search_results.find(".no-results").remove();
1158
+ };
1159
+
1160
+ Chosen.prototype.keydown_arrow = function() {
1161
+ var next_sib;
1162
+ if (this.results_showing && this.result_highlight) {
1163
+ next_sib = this.result_highlight.nextAll("li.active-result").first();
1164
+ if (next_sib) {
1165
+ return this.result_do_highlight(next_sib);
1166
+ }
1167
+ } else {
1168
+ return this.results_show();
1169
+ }
1170
+ };
1171
+
1172
+ Chosen.prototype.keyup_arrow = function() {
1173
+ var prev_sibs;
1174
+ if (!this.results_showing && !this.is_multiple) {
1175
+ return this.results_show();
1176
+ } else if (this.result_highlight) {
1177
+ prev_sibs = this.result_highlight.prevAll("li.active-result");
1178
+ if (prev_sibs.length) {
1179
+ return this.result_do_highlight(prev_sibs.first());
1180
+ } else {
1181
+ if (this.choices_count() > 0) {
1182
+ this.results_hide();
1183
+ }
1184
+ return this.result_clear_highlight();
1185
+ }
1186
+ }
1187
+ };
1188
+
1189
+ Chosen.prototype.keydown_backstroke = function() {
1190
+ var next_available_destroy;
1191
+ if (this.pending_backstroke) {
1192
+ this.choice_destroy(this.pending_backstroke.find("a").first());
1193
+ return this.clear_backstroke();
1194
+ } else {
1195
+ next_available_destroy = this.search_container.siblings("li.search-choice").last();
1196
+ if (next_available_destroy.length && !next_available_destroy.hasClass("search-choice-disabled")) {
1197
+ this.pending_backstroke = next_available_destroy;
1198
+ if (this.single_backstroke_delete) {
1199
+ return this.keydown_backstroke();
1200
+ } else {
1201
+ return this.pending_backstroke.addClass("search-choice-focus");
1202
+ }
1203
+ }
1204
+ }
1205
+ };
1206
+
1207
+ Chosen.prototype.clear_backstroke = function() {
1208
+ if (this.pending_backstroke) {
1209
+ this.pending_backstroke.removeClass("search-choice-focus");
1210
+ }
1211
+ return this.pending_backstroke = null;
1212
+ };
1213
+
1214
+ Chosen.prototype.keydown_checker = function(evt) {
1215
+ var stroke, _ref1;
1216
+ stroke = (_ref1 = evt.which) != null ? _ref1 : evt.keyCode;
1217
+ this.search_field_scale();
1218
+ if (stroke !== 8 && this.pending_backstroke) {
1219
+ this.clear_backstroke();
1220
+ }
1221
+ switch (stroke) {
1222
+ case 8:
1223
+ this.backstroke_length = this.search_field.val().length;
1224
+ break;
1225
+ case 9:
1226
+ if (this.results_showing && !this.is_multiple) {
1227
+ this.result_select(evt);
1228
+ }
1229
+ this.mouse_on_container = false;
1230
+ break;
1231
+ case 13:
1232
+ if (this.results_showing) {
1233
+ evt.preventDefault();
1234
+ }
1235
+ break;
1236
+ case 32:
1237
+ if (this.disable_search) {
1238
+ evt.preventDefault();
1239
+ }
1240
+ break;
1241
+ case 38:
1242
+ evt.preventDefault();
1243
+ this.keyup_arrow();
1244
+ break;
1245
+ case 40:
1246
+ evt.preventDefault();
1247
+ this.keydown_arrow();
1248
+ break;
1249
+ }
1250
+ };
1251
+
1252
+ Chosen.prototype.search_field_scale = function() {
1253
+ var div, f_width, h, style, style_block, styles, w, _i, _len;
1254
+ if (this.is_multiple) {
1255
+ h = 0;
1256
+ w = 0;
1257
+ style_block = "position:absolute; left: -1000px; top: -1000px; display:none;";
1258
+ styles = ['font-size', 'font-style', 'font-weight', 'font-family', 'line-height', 'text-transform', 'letter-spacing'];
1259
+ for (_i = 0, _len = styles.length; _i < _len; _i++) {
1260
+ style = styles[_i];
1261
+ style_block += style + ":" + this.search_field.css(style) + ";";
1262
+ }
1263
+ div = $('<div />', {
1264
+ 'style': style_block
1265
+ });
1266
+ div.text(this.search_field.val());
1267
+ $('body').append(div);
1268
+ w = div.width() + 25;
1269
+ div.remove();
1270
+ f_width = this.container.outerWidth();
1271
+ if (w > f_width - 10) {
1272
+ w = f_width - 10;
1273
+ }
1274
+ return this.search_field.css({
1275
+ 'width': w + 'px'
1276
+ });
1277
+ }
1278
+ };
1279
+
1280
+ return Chosen;
1281
+
1282
+ })(AbstractChosen);
1283
+
1284
+ }).call(this);
assets/js/lib/codemirror.js CHANGED
@@ -1,12 +1,12 @@
1
- // CodeMirror base.
2
- (function(a){if(typeof exports=="object"&&typeof module=="object"){module.exports=a()}else{if(typeof define=="function"&&define.amd){return define([],a)}else{this.CodeMirror=a()}}})(function(){var ce=/gecko\/\d/i.test(navigator.userAgent);var eo=/MSIE \d/.test(navigator.userAgent);var b1=eo&&(document.documentMode==null||document.documentMode<8);var bY=eo&&(document.documentMode==null||document.documentMode<9);var bX=eo&&(document.documentMode==null||document.documentMode<10);var by=/Trident\/([7-9]|\d{2,})\./.test(navigator.userAgent);var dn=eo||by;var cJ=/WebKit\//.test(navigator.userAgent);var dr=cJ&&/Qt\/\d+\.\d+/.test(navigator.userAgent);var cV=/Chrome\//.test(navigator.userAgent);var dF=/Opera\//.test(navigator.userAgent);var ay=/Apple Computer/.test(navigator.vendor);var a1=/KHTML\//.test(navigator.userAgent);var cP=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent);var e5=/PhantomJS/.test(navigator.userAgent);var eD=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent);var dS=eD||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent);var bU=eD||/Mac/.test(navigator.platform);var aG=/win/i.test(navigator.platform);var aO=dF&&navigator.userAgent.match(/Version\/(\d*\.\d*)/);if(aO){aO=Number(aO[1])}if(aO&&aO>=15){dF=false;cJ=true}var bF=bU&&(dr||dF&&(aO==null||aO<12.11));var fE=ce||(dn&&!bY);var fH=false,aX=false;function I(fO,fP){if(!(this instanceof I)){return new I(fO,fP)}this.options=fP=fP||{};aE(eF,fP,false);b4(fP);var fR=fP.value;if(typeof fR=="string"){fR=new ao(fR,fP.mode)}this.doc=fR;var fQ=this.display=new em(fO,fR);fQ.wrapper.CodeMirror=this;dO(this);cB(this);if(fP.lineWrapping){this.display.wrapper.className+=" CodeMirror-wrap"}if(fP.autofocus&&!dS){ed(this)}this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:false,focused:false,suppressEdits:false,pasteIncoming:false,cutIncoming:false,draggingText:false,highlight:new fM()};if(eo){setTimeout(cl(eZ,this,true),20)}fp(this);a8();var fN=this;cz(this,function(){fN.curOp.forceUpdate=true;dN(fN,fR);if((fP.autofocus&&!dS)||ds()==fQ.input){setTimeout(cl(cq,fN),20)}else{aL(fN)}for(var fT in a4){if(a4.hasOwnProperty(fT)){a4[fT](fN,fP[fT],b2)}}for(var fS=0;fS<aY.length;++fS){aY[fS](fN)}})}function em(fN,fP){var fQ=this;var fO=fQ.input=fw("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none");if(cJ){fO.style.width="1000px"}else{fO.setAttribute("wrap","off")}if(eD){fO.style.border="1px solid black"}fO.setAttribute("autocorrect","off");fO.setAttribute("autocapitalize","off");fO.setAttribute("spellcheck","false");fQ.inputDiv=fw("div",[fO],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");fQ.scrollbarH=fw("div",[fw("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");fQ.scrollbarV=fw("div",[fw("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar");fQ.scrollbarFiller=fw("div",null,"CodeMirror-scrollbar-filler");fQ.gutterFiller=fw("div",null,"CodeMirror-gutter-filler");fQ.lineDiv=fw("div",null,"CodeMirror-code");fQ.selectionDiv=fw("div",null,null,"position: relative; z-index: 1");fQ.cursorDiv=fw("div",null,"CodeMirror-cursors");fQ.measure=fw("div",null,"CodeMirror-measure");fQ.lineMeasure=fw("div",null,"CodeMirror-measure");fQ.lineSpace=fw("div",[fQ.measure,fQ.lineMeasure,fQ.selectionDiv,fQ.cursorDiv,fQ.lineDiv],null,"position: relative; outline: none");fQ.mover=fw("div",[fw("div",[fQ.lineSpace],"CodeMirror-lines")],null,"position: relative");fQ.sizer=fw("div",[fQ.mover],"CodeMirror-sizer");fQ.heightForcer=fw("div",null,null,"position: absolute; height: "+ba+"px; width: 1px;");fQ.gutters=fw("div",null,"CodeMirror-gutters");fQ.lineGutter=null;fQ.scroller=fw("div",[fQ.sizer,fQ.heightForcer,fQ.gutters],"CodeMirror-scroll");fQ.scroller.setAttribute("tabIndex","-1");fQ.wrapper=fw("div",[fQ.inputDiv,fQ.scrollbarH,fQ.scrollbarV,fQ.scrollbarFiller,fQ.gutterFiller,fQ.scroller],"CodeMirror");if(b1){fQ.gutters.style.zIndex=-1;fQ.scroller.style.paddingRight=0}if(eD){fO.style.width="0px"}if(!cJ){fQ.scroller.draggable=true}if(a1){fQ.inputDiv.style.height="1px";fQ.inputDiv.style.position="absolute"}if(b1){fQ.scrollbarH.style.minHeight=fQ.scrollbarV.style.minWidth="18px"}if(fN.appendChild){fN.appendChild(fQ.wrapper)}else{fN(fQ.wrapper)}fQ.viewFrom=fQ.viewTo=fP.first;fQ.view=[];fQ.externalMeasured=null;fQ.viewOffset=0;fQ.lastSizeC=0;fQ.updateLineNumbers=null;fQ.lineNumWidth=fQ.lineNumInnerWidth=fQ.lineNumChars=null;fQ.prevInput="";fQ.alignWidgets=false;fQ.pollingFast=false;fQ.poll=new fM();fQ.cachedCharWidth=fQ.cachedTextHeight=fQ.cachedPaddingH=null;fQ.inaccurateSelection=false;fQ.maxLine=null;fQ.maxLineLength=0;fQ.maxLineChanged=false;fQ.wheelDX=fQ.wheelDY=fQ.wheelStartX=fQ.wheelStartY=null;fQ.shift=false;fQ.selForContextMenu=null}function bh(fN){fN.doc.mode=I.getMode(fN.options,fN.doc.modeOption);dX(fN)}function dX(fN){fN.doc.iter(function(fO){if(fO.stateAfter){fO.stateAfter=null}if(fO.styles){fO.styles=null}});fN.doc.frontier=fN.doc.first;dR(fN,100);fN.state.modeGen++;if(fN.curOp){af(fN)}}function ek(fN){if(fN.options.lineWrapping){fb(fN.display.wrapper,"CodeMirror-wrap");fN.display.sizer.style.minWidth=""}else{g(fN.display.wrapper,"CodeMirror-wrap");h(fN)}X(fN);af(fN);ai(fN);setTimeout(function(){eB(fN)},100)}function a3(fN){var fP=aN(fN.display),fO=fN.options.lineWrapping;var fQ=fO&&Math.max(5,fN.display.scroller.clientWidth/di(fN.display)-3);return function(fS){if(e7(fN.doc,fS)){return 0}var fR=0;if(fS.widgets){for(var fT=0;fT<fS.widgets.length;fT++){if(fS.widgets[fT].height){fR+=fS.widgets[fT].height}}}if(fO){return fR+(Math.ceil(fS.text.length/fQ)||1)*fP}else{return fR+fP}}}function X(fN){var fP=fN.doc,fO=a3(fN);fP.iter(function(fQ){var fR=fO(fQ);if(fR!=fQ.height){fA(fQ,fR)}})}function fK(fN){var fP=eK[fN.options.keyMap],fO=fP.style;fN.display.wrapper.className=fN.display.wrapper.className.replace(/\s*cm-keymap-\S+/g,"")+(fO?" cm-keymap-"+fO:"")}function cB(fN){fN.display.wrapper.className=fN.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+fN.options.theme.replace(/(^|\s)\s*/g," cm-s-");ai(fN)}function db(fN){dO(fN);af(fN);setTimeout(function(){ei(fN)},20)}function dO(fN){var fO=fN.display.gutters,fS=fN.options.gutters;dE(fO);for(var fP=0;fP<fS.length;++fP){var fQ=fS[fP];var fR=fO.appendChild(fw("div",null,"CodeMirror-gutter "+fQ));if(fQ=="CodeMirror-linenumbers"){fN.display.lineGutter=fR;fR.style.width=(fN.display.lineNumWidth||1)+"px"}}fO.style.display=fP?"":"none";cN(fN)}function cN(fN){var fO=fN.display.gutters.offsetWidth;fN.display.sizer.style.marginLeft=fO+"px";fN.display.scrollbarH.style.left=fN.options.fixedGutter?fO+"px":0}function dY(fP){if(fP.height==0){return 0}var fO=fP.text.length,fN,fR=fP;while(fN=er(fR)){var fQ=fN.find(0,true);fR=fQ.from.line;fO+=fQ.from.ch-fQ.to.ch}fR=fP;while(fN=d7(fR)){var fQ=fN.find(0,true);fO-=fR.text.length-fQ.from.ch;fR=fQ.to.line;fO+=fR.text.length-fQ.to.ch}return fO}function h(fN){var fP=fN.display,fO=fN.doc;fP.maxLine=eP(fO,fO.first);fP.maxLineLength=dY(fP.maxLine);fP.maxLineChanged=true;fO.iter(function(fR){var fQ=dY(fR);if(fQ>fP.maxLineLength){fP.maxLineLength=fQ;fP.maxLine=fR}})}function b4(fN){var fO=c1(fN.gutters,"CodeMirror-linenumbers");if(fO==-1&&fN.lineNumbers){fN.gutters=fN.gutters.concat(["CodeMirror-linenumbers"])}else{if(fO>-1&&!fN.lineNumbers){fN.gutters=fN.gutters.slice(0);fN.gutters.splice(fO,1)}}}function df(fO){var fN=fO.display.scroller;return{clientHeight:fN.clientHeight,barHeight:fO.display.scrollbarV.clientHeight,scrollWidth:fN.scrollWidth,clientWidth:fN.clientWidth,barWidth:fO.display.scrollbarH.clientWidth,docHeight:Math.round(fO.doc.height+bx(fO.display))}}function eB(fN,fS){if(!fS){fS=df(fN)}var fU=fN.display;var fR=fS.docHeight+ba;var fT=fS.scrollWidth>fS.clientWidth;var fP=fR>fS.clientHeight;if(fP){fU.scrollbarV.style.display="block";fU.scrollbarV.style.bottom=fT?l(fU.measure)+"px":"0";fU.scrollbarV.firstChild.style.height=Math.max(0,fR-fS.clientHeight+(fS.barHeight||fU.scrollbarV.clientHeight))+"px"}else{fU.scrollbarV.style.display="";fU.scrollbarV.firstChild.style.height="0"}if(fT){fU.scrollbarH.style.display="block";fU.scrollbarH.style.right=fP?l(fU.measure)+"px":"0";fU.scrollbarH.firstChild.style.width=(fS.scrollWidth-fS.clientWidth+(fS.barWidth||fU.scrollbarH.clientWidth))+"px"}else{fU.scrollbarH.style.display="";fU.scrollbarH.firstChild.style.width="0"}if(fT&&fP){fU.scrollbarFiller.style.display="block";fU.scrollbarFiller.style.height=fU.scrollbarFiller.style.width=l(fU.measure)+"px"}else{fU.scrollbarFiller.style.display=""}if(fT&&fN.options.coverGutterNextToScrollbar&&fN.options.fixedGutter){fU.gutterFiller.style.display="block";fU.gutterFiller.style.height=l(fU.measure)+"px";fU.gutterFiller.style.width=fU.gutters.offsetWidth+"px"}else{fU.gutterFiller.style.display=""}if(!fN.state.checkedOverlayScrollbar&&fS.clientHeight>0){if(l(fU.measure)===0){var fO=bU&&!cP?"12px":"18px";fU.scrollbarV.style.minWidth=fU.scrollbarH.style.minHeight=fO;var fQ=function(fV){if(L(fV)!=fU.scrollbarV&&L(fV)!=fU.scrollbarH){cL(fN,d5)(fV)}};bM(fU.scrollbarV,"mousedown",fQ);bM(fU.scrollbarH,"mousedown",fQ)}fN.state.checkedOverlayScrollbar=true}}function bT(fP,fT,fV){var fQ=fV&&fV.top!=null?fV.top:fP.scroller.scrollTop;fQ=Math.floor(fQ-eI(fP));var fN=fV&&fV.bottom!=null?fV.bottom:fQ+fP.wrapper.clientHeight;var fR=bv(fT,fQ),fS=bv(fT,fN);if(fV&&fV.ensure){var fO=fV.ensure.from.line,fU=fV.ensure.to.line;if(fO<fR){return{from:fO,to:bv(fT,bB(eP(fT,fO))+fP.wrapper.clientHeight)}}if(Math.min(fU,fT.lastLine())>=fS){return{from:bv(fT,bB(eP(fT,fU))-fP.wrapper.clientHeight),to:fU}}}return{from:fR,to:fS}}function ei(fV){var fT=fV.display,fU=fT.view;if(!fT.alignWidgets&&(!fT.gutters.firstChild||!fV.options.fixedGutter)){return}var fR=dA(fT)-fT.scroller.scrollLeft+fV.doc.scrollLeft;var fN=fT.gutters.offsetWidth,fO=fR+"px";for(var fQ=0;fQ<fU.length;fQ++){if(!fU[fQ].hidden){if(fV.options.fixedGutter&&fU[fQ].gutter){fU[fQ].gutter.style.left=fO}var fS=fU[fQ].alignable;if(fS){for(var fP=0;fP<fS.length;fP++){fS[fP].style.left=fO}}}}if(fV.options.fixedGutter){fT.gutters.style.left=(fR+fN)+"px"}}function dI(fN){if(!fN.options.lineNumbers){return false}var fS=fN.doc,fO=d4(fN.options,fS.first+fS.size-1),fR=fN.display;if(fO.length!=fR.lineNumChars){var fT=fR.measure.appendChild(fw("div",[fw("div",fO)],"CodeMirror-linenumber CodeMirror-gutter-elt"));var fP=fT.firstChild.offsetWidth,fQ=fT.offsetWidth-fP;fR.lineGutter.style.width="";fR.lineNumInnerWidth=Math.max(fP,fR.lineGutter.offsetWidth-fQ);fR.lineNumWidth=fR.lineNumInnerWidth+fQ;fR.lineNumChars=fR.lineNumInnerWidth?fO.length:-1;fR.lineGutter.style.width=fR.lineNumWidth+"px";cN(fN);return true}return false}function d4(fN,fO){return String(fN.lineNumberFormatter(fO+fN.firstLineNumber))}function dA(fN){return fN.scroller.getBoundingClientRect().left-fN.sizer.getBoundingClientRect().left}function dp(fS,fV,fW){var fU=fS.display.viewFrom,fT=fS.display.viewTo,fQ;var fN=bT(fS.display,fS.doc,fV);for(var fP=true;;fP=false){var fO=fS.display.scroller.clientWidth;if(!cZ(fS,fN,fW)){break}fQ=true;if(fS.display.maxLineChanged&&!fS.options.lineWrapping){b(fS)}var fR=df(fS);br(fS);de(fS,fR);eB(fS,fR);if(cJ&&fS.options.lineWrapping){fz(fS,fR)}if(fP&&fS.options.lineWrapping&&fO!=fS.display.scroller.clientWidth){fW=true;continue}fW=false;if(fV&&fV.top!=null){fV={top:Math.min(fR.docHeight-ba-fR.clientHeight,fV.top)}}fN=bT(fS.display,fS.doc,fV);if(fN.from>=fS.display.viewFrom&&fN.to<=fS.display.viewTo){break}}fS.display.updateLineNumbers=null;if(fQ){ac(fS,"update",fS);if(fS.display.viewFrom!=fU||fS.display.viewTo!=fT){ac(fS,"viewportChange",fS,fS.display.viewFrom,fS.display.viewTo)}}return fQ}function cZ(fX,fP,fY){var fR=fX.display,fW=fX.doc;if(!fR.wrapper.offsetWidth){d9(fX);return}if(!fY&&fP.from>=fR.viewFrom&&fP.to<=fR.viewTo&&cU(fX)==0){return}if(dI(fX)){d9(fX)}var fV=eM(fX);var fQ=fW.first+fW.size;var fU=Math.max(fP.from-fX.options.viewportMargin,fW.first);var fT=Math.min(fQ,fP.to+fX.options.viewportMargin);if(fR.viewFrom<fU&&fU-fR.viewFrom<20){fU=Math.max(fW.first,fR.viewFrom)}if(fR.viewTo>fT&&fR.viewTo-fT<20){fT=Math.min(fQ,fR.viewTo)}if(aX){fU=aM(fX.doc,fU);fT=dG(fX.doc,fT)}var fO=fU!=fR.viewFrom||fT!=fR.viewTo||fR.lastSizeC!=fR.wrapper.clientHeight;cD(fX,fU,fT);fR.viewOffset=bB(eP(fX.doc,fR.viewFrom));fX.display.mover.style.top=fR.viewOffset+"px";var fN=cU(fX);if(!fO&&fN==0&&!fY){return}var fS=ds();if(fN>4){fR.lineDiv.style.display="none"}cc(fX,fR.updateLineNumbers,fV);if(fN>4){fR.lineDiv.style.display=""}if(fS&&ds()!=fS&&fS.offsetHeight){fS.focus()}dE(fR.cursorDiv);dE(fR.selectionDiv);if(fO){fR.lastSizeC=fR.wrapper.clientHeight;dR(fX,400)}aZ(fX);return true}function b(fN){var fR=fN.display;var fP=dT(fN,fR.maxLine,fR.maxLine.text.length).left;fR.maxLineChanged=false;var fO=Math.max(0,fP+3);var fQ=Math.max(0,fR.sizer.offsetLeft+fO+ba-fR.scroller.clientWidth);fR.sizer.style.minWidth=fO+"px";if(fQ<fN.doc.scrollLeft){bt(fN,Math.min(fR.scroller.scrollLeft,fQ),true)}}function de(fN,fO){fN.display.sizer.style.minHeight=fN.display.heightForcer.style.top=fO.docHeight+"px";fN.display.gutters.style.height=Math.max(fO.docHeight,fO.clientHeight-ba)+"px"}function fz(fN,fO){if(fN.display.sizer.offsetWidth+fN.display.gutters.offsetWidth<fN.display.scroller.clientWidth-1){fN.display.sizer.style.minHeight=fN.display.heightForcer.style.top="0px";fN.display.gutters.style.height=fO.docHeight+"px"}}function aZ(fU){var fS=fU.display;var fO=fS.lineDiv.offsetTop;for(var fP=0;fP<fS.view.length;fP++){var fV=fS.view[fP],fW;if(fV.hidden){continue}if(b1){var fR=fV.node.offsetTop+fV.node.offsetHeight;fW=fR-fO;fO=fR}else{var fQ=fV.node.getBoundingClientRect();fW=fQ.bottom-fQ.top}var fT=fV.line.height-fW;if(fW<2){fW=aN(fS)}if(fT>0.001||fT<-0.001){fA(fV.line,fW);b0(fV.line);if(fV.rest){for(var fN=0;fN<fV.rest.length;fN++){b0(fV.rest[fN])}}}}}function b0(fN){if(fN.widgets){for(var fO=0;fO<fN.widgets.length;++fO){fN.widgets[fO].height=fN.widgets[fO].node.offsetHeight}}}function eM(fN){var fR=fN.display,fQ={},fP={};for(var fS=fR.gutters.firstChild,fO=0;fS;fS=fS.nextSibling,++fO){fQ[fN.options.gutters[fO]]=fS.offsetLeft;fP[fN.options.gutters[fO]]=fS.offsetWidth}return{fixedPos:dA(fR),gutterTotalWidth:fR.gutters.offsetWidth,gutterLeft:fQ,gutterWidth:fP,wrapperWidth:fR.wrapper.clientWidth}}function cc(fY,fP,fX){var fU=fY.display,f0=fY.options.lineNumbers;var fN=fU.lineDiv,fZ=fN.firstChild;function fT(f2){var f1=f2.nextSibling;if(cJ&&bU&&fY.display.currentWheelTarget==f2){f2.style.display="none"}else{f2.parentNode.removeChild(f2)}return f1}var fV=fU.view,fS=fU.viewFrom;for(var fQ=0;fQ<fV.length;fQ++){var fR=fV[fQ];if(fR.hidden){}else{if(!fR.node){var fO=aA(fY,fR,fS,fX);fN.insertBefore(fO,fZ)}else{while(fZ!=fR.node){fZ=fT(fZ)}var fW=f0&&fP!=null&&fP<=fS&&fR.lineNumber;if(fR.changes){if(c1(fR.changes,"gutter")>-1){fW=false}Z(fY,fR,fS,fX)}if(fW){dE(fR.lineNumber);fR.lineNumber.appendChild(document.createTextNode(d4(fY.options,fS)))}fZ=fR.node.nextSibling}}fS+=fR.size}while(fZ){fZ=fT(fZ)}}function Z(fN,fP,fR,fS){for(var fO=0;fO<fP.changes.length;fO++){var fQ=fP.changes[fO];if(fQ=="text"){eV(fN,fP)}else{if(fQ=="gutter"){cY(fN,fP,fR,fS)}else{if(fQ=="class"){dl(fP)}else{if(fQ=="widget"){al(fP,fS)}}}}}fP.changes=null}function fi(fN){if(fN.node==fN.text){fN.node=fw("div",null,null,"position: relative");if(fN.text.parentNode){fN.text.parentNode.replaceChild(fN.node,fN.text)}fN.node.appendChild(fN.text);if(b1){fN.node.style.zIndex=2}}return fN.node}function d6(fO){var fN=fO.bgClass?fO.bgClass+" "+(fO.line.bgClass||""):fO.line.bgClass;if(fN){fN+=" CodeMirror-linebackground"}if(fO.background){if(fN){fO.background.className=fN}else{fO.background.parentNode.removeChild(fO.background);fO.background=null}}else{if(fN){var fP=fi(fO);fO.background=fP.insertBefore(fw("div",null,fN),fP.firstChild)}}}function dy(fN,fO){var fP=fN.display.externalMeasured;if(fP&&fP.line==fO.line){fN.display.externalMeasured=null;fO.measure=fP.measure;return fP.built}return ev(fN,fO)}function eV(fN,fQ){var fO=fQ.text.className;var fP=dy(fN,fQ);if(fQ.text==fQ.node){fQ.node=fP.pre}fQ.text.parentNode.replaceChild(fP.pre,fQ.text);fQ.text=fP.pre;if(fP.bgClass!=fQ.bgClass||fP.textClass!=fQ.textClass){fQ.bgClass=fP.bgClass;fQ.textClass=fP.textClass;dl(fQ)}else{if(fO){fQ.text.className=fO}}}function dl(fO){d6(fO);if(fO.line.wrapClass){fi(fO).className=fO.line.wrapClass}else{if(fO.node!=fO.text){fO.node.className=""}}var fN=fO.textClass?fO.textClass+" "+(fO.line.textClass||""):fO.line.textClass;fO.text.className=fN||""}function cY(fV,fT,fS,fU){if(fT.gutter){fT.node.removeChild(fT.gutter);fT.gutter=null}var fQ=fT.line.gutterMarkers;if(fV.options.lineNumbers||fQ){var fO=fi(fT);var fR=fT.gutter=fO.insertBefore(fw("div",null,"CodeMirror-gutter-wrapper","position: absolute; left: "+(fV.options.fixedGutter?fU.fixedPos:-fU.gutterTotalWidth)+"px"),fT.text);if(fV.options.lineNumbers&&(!fQ||!fQ["CodeMirror-linenumbers"])){fT.lineNumber=fR.appendChild(fw("div",d4(fV.options,fS),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+fU.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+fV.display.lineNumInnerWidth+"px"))}if(fQ){for(var fP=0;fP<fV.options.gutters.length;++fP){var fN=fV.options.gutters[fP],fW=fQ.hasOwnProperty(fN)&&fQ[fN];if(fW){fR.appendChild(fw("div",[fW],"CodeMirror-gutter-elt","left: "+fU.gutterLeft[fN]+"px; width: "+fU.gutterWidth[fN]+"px"))}}}}}function al(fN,fQ){if(fN.alignable){fN.alignable=null}for(var fP=fN.node.firstChild,fO;fP;fP=fO){var fO=fP.nextSibling;if(fP.className=="CodeMirror-linewidget"){fN.node.removeChild(fP)}}e4(fN,fQ)}function aA(fN,fP,fQ,fR){var fO=dy(fN,fP);fP.text=fP.node=fO.pre;if(fO.bgClass){fP.bgClass=fO.bgClass}if(fO.textClass){fP.textClass=fO.textClass}dl(fP);cY(fN,fP,fQ,fR);e4(fP,fR);return fP.node}function e4(fO,fP){fB(fO.line,fO,fP,true);if(fO.rest){for(var fN=0;fN<fO.rest.length;fN++){fB(fO.rest[fN],fO,fP,false)}}}function fB(fV,fS,fU,fQ){if(!fV.widgets){return}var fN=fi(fS);for(var fP=0,fT=fV.widgets;fP<fT.length;++fP){var fR=fT[fP],fO=fw("div",[fR.node],"CodeMirror-linewidget");if(!fR.handleMouseEvents){fO.ignoreEvents=true}bu(fR,fO,fS,fU);if(fQ&&fR.above){fN.insertBefore(fO,fS.gutter||fS.text)}else{fN.appendChild(fO)}ac(fR,"redraw")}}function bu(fQ,fP,fN,fR){if(fQ.noHScroll){(fN.alignable||(fN.alignable=[])).push(fP);var fO=fR.wrapperWidth;fP.style.left=fR.fixedPos+"px";if(!fQ.coverGutter){fO-=fR.gutterTotalWidth;fP.style.paddingLeft=fR.gutterTotalWidth+"px"}fP.style.width=fO+"px"}if(fQ.coverGutter){fP.style.zIndex=5;fP.style.position="relative";if(!fQ.noHScroll){fP.style.marginLeft=-fR.gutterTotalWidth+"px"}}}var W=I.Pos=function(fN,fO){if(!(this instanceof W)){return new W(fN,fO)}this.line=fN;this.ch=fO};var b5=I.cmpPos=function(fO,fN){return fO.line-fN.line||fO.ch-fN.ch};function b9(fN){return W(fN.line,fN.ch)}function bn(fO,fN){return b5(fO,fN)<0?fN:fO}function am(fO,fN){return b5(fO,fN)<0?fO:fN}function fx(fN,fO){this.ranges=fN;this.primIndex=fO}fx.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(fN){if(fN==this){return true}if(fN.primIndex!=this.primIndex||fN.ranges.length!=this.ranges.length){return false}for(var fP=0;fP<this.ranges.length;fP++){var fO=this.ranges[fP],fQ=fN.ranges[fP];if(b5(fO.anchor,fQ.anchor)!=0||b5(fO.head,fQ.head)!=0){return false}}return true},deepCopy:function(){for(var fN=[],fO=0;fO<this.ranges.length;fO++){fN[fO]=new dB(b9(this.ranges[fO].anchor),b9(this.ranges[fO].head))}return new fx(fN,this.primIndex)},somethingSelected:function(){for(var fN=0;fN<this.ranges.length;fN++){if(!this.ranges[fN].empty()){return true}}return false},contains:function(fQ,fN){if(!fN){fN=fQ}for(var fP=0;fP<this.ranges.length;fP++){var fO=this.ranges[fP];if(b5(fN,fO.from())>=0&&b5(fQ,fO.to())<=0){return fP}}return -1}};function dB(fN,fO){this.anchor=fN;this.head=fO}dB.prototype={from:function(){return am(this.anchor,this.head)},to:function(){return bn(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};function cm(fN,fU){var fP=fN[fU];fN.sort(function(fX,fW){return b5(fX.from(),fW.from())});fU=c1(fN,fP);for(var fR=1;fR<fN.length;fR++){var fV=fN[fR],fO=fN[fR-1];if(b5(fO.to(),fV.from())>=0){var fS=am(fO.from(),fV.from()),fT=bn(fO.to(),fV.to());var fQ=fO.empty()?fV.from()==fV.head:fO.from()==fO.head;if(fR<=fU){--fU}fN.splice(--fR,2,new dB(fQ?fT:fS,fQ?fS:fT))}}return new fx(fN,fU)}function eu(fN,fO){return new fx([new dB(fN,fO||fN)],0)}function cO(fN,fO){return Math.max(fN.first,Math.min(fO,fN.first+fN.size-1))}function fj(fO,fP){if(fP.line<fO.first){return W(fO.first,0)}var fN=fO.first+fO.size-1;if(fP.line>fN){return W(fN,eP(fO,fN).text.length)}return e3(fP,eP(fO,fP.line).text.length)}function e3(fP,fO){var fN=fP.ch;if(fN==null||fN>fO){return W(fP.line,fO)}else{if(fN<0){return W(fP.line,0)}else{return fP}}}function bW(fO,fN){return fN>=fO.first&&fN<fO.first+fO.size}function dC(fP,fQ){for(var fN=[],fO=0;fO<fQ.length;fO++){fN[fO]=fj(fP,fQ[fO])}return fN}function e6(fS,fO,fR,fN){if(fS.cm&&fS.cm.display.shift||fS.extend){var fQ=fO.anchor;if(fN){var fP=b5(fR,fQ)<0;if(fP!=(b5(fN,fQ)<0)){fQ=fR;fR=fN}else{if(fP!=(b5(fR,fN)<0)){fR=fN}}}return new dB(fQ,fR)}else{return new dB(fN||fR,fR)}}function ft(fQ,fP,fN,fO){bJ(fQ,new fx([e6(fQ,fQ.sel.primary(),fP,fN)],0),fO)}function at(fS,fR,fP){for(var fO=[],fQ=0;fQ<fS.sel.ranges.length;fQ++){fO[fQ]=e6(fS,fS.sel.ranges[fQ],fR[fQ],null)}var fN=cm(fO,fS.sel.primIndex);bJ(fS,fN,fP)}function f(fR,fQ,fO,fP){var fN=fR.sel.ranges.slice(0);fN[fQ]=fO;bJ(fR,cm(fN,fR.sel.primIndex),fP)}function G(fQ,fO,fP,fN){bJ(fQ,eu(fO,fP),fN)}function d(fP,fN){var fO={ranges:fN.ranges,update:function(fQ){this.ranges=[];for(var fR=0;fR<fQ.length;fR++){this.ranges[fR]=new dB(fj(fP,fQ[fR].anchor),fj(fP,fQ[fR].head))}}};az(fP,"beforeSelectionChange",fP,fO);if(fP.cm){az(fP.cm,"beforeSelectionChange",fP.cm,fO)}if(fO.ranges!=fN.ranges){return cm(fO.ranges,fO.ranges.length-1)}else{return fN}}function eH(fR,fQ,fO){var fN=fR.history.done,fP=fh(fN);if(fP&&fP.ranges){fN[fN.length-1]=fQ;d1(fR,fQ,fO)}else{bJ(fR,fQ,fO)}}function bJ(fP,fO,fN){d1(fP,fO,fN);fG(fP,fP.sel,fP.cm?fP.cm.curOp.id:NaN,fN)}function d1(fQ,fP,fO){if(eS(fQ,"beforeSelectionChange")||fQ.cm&&eS(fQ.cm,"beforeSelectionChange")){fP=d(fQ,fP)}var fN=b5(fP.primary().head,fQ.sel.primary().head)<0?-1:1;cS(fQ,o(fQ,fP,fN,true));if(!(fO&&fO.scroll===false)&&fQ.cm){fg(fQ.cm)}}function cS(fO,fN){if(fN.equals(fO.sel)){return}fO.sel=fN;if(fO.cm){fO.cm.curOp.updateInput=fO.cm.curOp.selectionChanged=true;V(fO.cm)}ac(fO,"cursorActivity",fO)}function ea(fN){cS(fN,o(fN,fN.sel,null,false),Y)}function o(fV,fN,fS,fT){var fP;for(var fQ=0;fQ<fN.ranges.length;fQ++){var fR=fN.ranges[fQ];var fU=bK(fV,fR.anchor,fS,fT);var fO=bK(fV,fR.head,fS,fT);if(fP||fU!=fR.anchor||fO!=fR.head){if(!fP){fP=fN.ranges.slice(0,fQ)}fP[fQ]=new dB(fU,fO)}}return fP?cm(fP,fN.primIndex):fN}function bK(fW,fV,fS,fT){var fX=false,fP=fV;var fQ=fS||1;fW.cantEdit=false;search:for(;;){var fY=eP(fW,fP.line);if(fY.markedSpans){for(var fR=0;fR<fY.markedSpans.length;++fR){var fN=fY.markedSpans[fR],fO=fN.marker;if((fN.from==null||(fO.inclusiveLeft?fN.from<=fP.ch:fN.from<fP.ch))&&(fN.to==null||(fO.inclusiveRight?fN.to>=fP.ch:fN.to>fP.ch))){if(fT){az(fO,"beforeCursorEnter");if(fO.explicitlyCleared){if(!fY.markedSpans){break}else{--fR;continue}}}if(!fO.atomic){continue}var fU=fO.find(fQ<0?-1:1);if(b5(fU,fP)==0){fU.ch+=fQ;if(fU.ch<0){if(fU.line>fW.first){fU=fj(fW,W(fU.line-1))}else{fU=null}}else{if(fU.ch>fY.text.length){if(fU.line<fW.first+fW.size-1){fU=W(fU.line+1,0)}else{fU=null}}}if(!fU){if(fX){if(!fT){return bK(fW,fV,fS,true)}fW.cantEdit=true;return W(fW.first,0)}fX=true;fU=fV;fQ=-fQ}}fP=fU;continue search}}}return fP}}function br(fZ){var fU=fZ.display,fY=fZ.doc;var fW=document.createDocumentFragment();var fQ=document.createDocumentFragment();for(var fS=0;fS<fY.sel.ranges.length;fS++){var fT=fY.sel.ranges[fS];var fR=fT.empty();if(fR||fZ.options.showCursorWhenSelecting){B(fZ,fT,fW)}if(!fR){bs(fZ,fT,fQ)}}if(fZ.options.moveInputWithCursor){var fV=dx(fZ,fY.sel.primary().head,"div");var fN=fU.wrapper.getBoundingClientRect(),fP=fU.lineDiv.getBoundingClientRect();var fX=Math.max(0,Math.min(fU.wrapper.clientHeight-10,fV.top+fP.top-fN.top));var fO=Math.max(0,Math.min(fU.wrapper.clientWidth-10,fV.left+fP.left-fN.left));fU.inputDiv.style.top=fX+"px";fU.inputDiv.style.left=fO+"px"}bG(fU.cursorDiv,fW);bG(fU.selectionDiv,fQ)}function B(fN,fQ,fP){var fS=dx(fN,fQ.head,"div");var fR=fP.appendChild(fw("div","\u00a0","CodeMirror-cursor"));fR.style.left=fS.left+"px";fR.style.top=fS.top+"px";fR.style.height=Math.max(0,fS.bottom-fS.top)*fN.options.cursorHeight+"px";if(fS.other){var fO=fP.appendChild(fw("div","\u00a0","CodeMirror-cursor CodeMirror-secondarycursor"));fO.style.display="";fO.style.left=fS.other.left+"px";fO.style.top=fS.other.top+"px";fO.style.height=(fS.other.bottom-fS.other.top)*0.85+"px"}}function bs(fR,fX,fS){var f0=fR.display,f4=fR.doc;var fN=document.createDocumentFragment();var fW=eG(fR.display),fQ=fW.left,f1=f0.lineSpace.offsetWidth-fW.right;function fY(f8,f7,f6,f5){if(f7<0){f7=0}f7=Math.round(f7);f5=Math.round(f5);fN.appendChild(fw("div",null,"CodeMirror-selected","position: absolute; left: "+f8+"px; top: "+f7+"px; width: "+(f6==null?f1-f8:f6)+"px; height: "+(f5-f7)+"px"))}function fO(f6,f8,gb){var f7=eP(f4,f6);var f9=f7.text.length;var gc,f5;function ga(ge,gd){return cx(fR,W(f6,ge),"div",f7,gd)}dH(a(f7),f8||0,gb==null?f9:gb,function(gk,gj,gd){var gg=ga(gk,"left"),gh,gi,gf;if(gk==gj){gh=gg;gi=gf=gg.left}else{gh=ga(gj-1,"right");if(gd=="rtl"){var ge=gg;gg=gh;gh=ge}gi=gg.left;gf=gh.right}if(f8==null&&gk==0){gi=fQ}if(gh.top-gg.top>3){fY(gi,gg.top,null,gg.bottom);gi=fQ;if(gg.bottom<gh.top){fY(gi,gg.bottom,null,gh.top)}}if(gb==null&&gj==f9){gf=f1}if(!gc||gg.top<gc.top||gg.top==gc.top&&gg.left<gc.left){gc=gg}if(!f5||gh.bottom>f5.bottom||gh.bottom==f5.bottom&&gh.right>f5.right){f5=gh}if(gi<fQ+1){gi=fQ}fY(gi,gh.top,gf-gi,gh.bottom)});return{start:gc,end:f5}}var f3=fX.from(),f2=fX.to();if(f3.line==f2.line){fO(f3.line,f3.ch,f2.ch)}else{var fP=eP(f4,f3.line),fU=eP(f4,f2.line);var fT=z(fP)==z(fU);var fV=fO(f3.line,f3.ch,fT?fP.text.length+1:null).end;var fZ=fO(f2.line,fT?0:null,f2.ch).start;if(fT){if(fV.top<fZ.top-2){fY(fV.right,fV.top,null,fV.bottom);fY(fQ,fZ.top,fZ.left,fZ.bottom)}else{fY(fV.right,fV.top,fZ.left-fV.right,fV.bottom)}}if(fV.bottom<fZ.top){fY(fQ,fV.bottom,null,fZ.top)}}fS.appendChild(fN)}function p(fN){if(!fN.state.focused){return}var fP=fN.display;clearInterval(fP.blinker);var fO=true;fP.cursorDiv.style.visibility="";if(fN.options.cursorBlinkRate>0){fP.blinker=setInterval(function(){fP.cursorDiv.style.visibility=(fO=!fO)?"":"hidden"},fN.options.cursorBlinkRate)}}function dR(fN,fO){if(fN.doc.mode.startState&&fN.doc.frontier<fN.display.viewTo){fN.state.highlight.set(fO,cl(cC,fN))}}function cC(fN){var fQ=fN.doc;if(fQ.frontier<fQ.first){fQ.frontier=fQ.first}if(fQ.frontier>=fN.display.viewTo){return}var fO=+new Date+fN.options.workTime;var fP=bR(fQ.mode,dg(fN,fQ.frontier));cz(fN,function(){fQ.iter(fQ.frontier,Math.min(fQ.first+fQ.size,fN.display.viewTo+500),function(fR){if(fQ.frontier>=fN.display.viewFrom){var fT=fR.styles;var fU=fa(fN,fR,fP,true);fR.styles=fU.styles;if(fU.classes){fR.styleClasses=fU.classes}else{if(fR.styleClasses){fR.styleClasses=null}}var fV=!fT||fT.length!=fR.styles.length;for(var fS=0;!fV&&fS<fT.length;++fS){fV=fT[fS]!=fR.styles[fS]}if(fV){R(fN,fQ.frontier,"text")}fR.stateAfter=bR(fQ.mode,fP)}else{dc(fN,fR.text,fP);fR.stateAfter=fQ.frontier%5==0?bR(fQ.mode,fP):null}++fQ.frontier;if(+new Date>fO){dR(fN,fN.options.workDelay);return true}})})}function co(fT,fN,fQ){var fO,fR,fS=fT.doc;var fP=fQ?-1:fN-(fT.doc.mode.innerMode?1000:100);for(var fW=fN;fW>fP;--fW){if(fW<=fS.first){return fS.first}var fV=eP(fS,fW-1);if(fV.stateAfter&&(!fQ||fW<=fS.frontier)){return fW}var fU=bI(fV.text,null,fT.options.tabSize);if(fR==null||fO>fU){fR=fW-1;fO=fU}}return fR}function dg(fN,fT,fO){var fR=fN.doc,fQ=fN.display;if(!fR.mode.startState){return true}var fS=co(fN,fT,fO),fP=fS>fR.first&&eP(fR,fS-1).stateAfter;if(!fP){fP=bP(fR.mode)}else{fP=bR(fR.mode,fP)}fR.iter(fS,fT,function(fU){dc(fN,fU.text,fP);var fV=fS==fT-1||fS%5==0||fS>=fQ.viewFrom&&fS<fQ.viewTo;fU.stateAfter=fV?bR(fR.mode,fP):null;++fS});if(fO){fR.frontier=fS}return fP}function eI(fN){return fN.lineSpace.offsetTop}function bx(fN){return fN.mover.offsetHeight-fN.lineSpace.offsetHeight}function eG(fQ){if(fQ.cachedPaddingH){return fQ.cachedPaddingH}var fP=bG(fQ.measure,fw("pre","x"));var fN=window.getComputedStyle?window.getComputedStyle(fP):fP.currentStyle;var fO={left:parseInt(fN.paddingLeft),right:parseInt(fN.paddingRight)};if(!isNaN(fO.left)&&!isNaN(fO.right)){fQ.cachedPaddingH=fO}return fO}function b8(fU,fQ,fT){var fP=fU.options.lineWrapping;var fR=fP&&fU.display.scroller.clientWidth;if(!fQ.measure.heights||fP&&fQ.measure.width!=fR){var fS=fQ.measure.heights=[];if(fP){fQ.measure.width=fR;var fW=fQ.text.firstChild.getClientRects();for(var fN=0;fN<fW.length-1;fN++){var fV=fW[fN],fO=fW[fN+1];if(Math.abs(fV.bottom-fO.bottom)>2){fS.push((fV.bottom+fO.top)/2-fT.top)}}}fS.push(fT.bottom-fT.top)}}function cj(fP,fN,fQ){if(fP.line==fN){return{map:fP.measure.map,cache:fP.measure.cache}}for(var fO=0;fO<fP.rest.length;fO++){if(fP.rest[fO]==fN){return{map:fP.measure.maps[fO],cache:fP.measure.caches[fO]}}}for(var fO=0;fO<fP.rest.length;fO++){if(bC(fP.rest[fO])>fQ){return{map:fP.measure.maps[fO],cache:fP.measure.caches[fO],before:true}}}}function cK(fN,fP){fP=z(fP);var fR=bC(fP);var fO=fN.display.externalMeasured=new bl(fN.doc,fP,fR);fO.lineN=fR;var fQ=fO.built=ev(fN,fO);fO.text=fQ.pre;bG(fN.display.lineMeasure,fQ.pre);return fO}function dT(fN,fO,fQ,fP){return D(fN,aU(fN,fO),fQ,fP)}function eL(fN,fP){if(fP>=fN.display.viewFrom&&fP<fN.display.viewTo){return fN.display.view[c7(fN,fP)]}var fO=fN.display.externalMeasured;if(fO&&fP>=fO.lineN&&fP<fO.lineN+fO.size){return fO}}function aU(fN,fP){var fQ=bC(fP);var fO=eL(fN,fQ);if(fO&&!fO.text){fO=null}else{if(fO&&fO.changes){Z(fN,fO,fQ,eM(fN))}}if(!fO){fO=cK(fN,fP)}var fR=cj(fO,fP,fQ);return{line:fP,view:fO,rect:null,map:fR.map,cache:fR.cache,before:fR.before,hasHeights:false}}function D(fN,fS,fQ,fO){if(fS.before){fQ=-1}var fP=fQ+(fO||""),fR;if(fS.cache.hasOwnProperty(fP)){fR=fS.cache[fP]}else{if(!fS.rect){fS.rect=fS.view.text.getBoundingClientRect()}if(!fS.hasHeights){b8(fN,fS.view,fS.rect);fS.hasHeights=true}fR=k(fN,fS,fQ,fO);if(!fR.bogus){fS.cache[fP]=fR}}return{left:fR.left,right:fR.right,top:fR.top,bottom:fR.bottom}}var ee={left:0,right:0,top:0,bottom:0};function k(fU,f2,fW,fS){var f5=f2.map;var fZ,fR,fQ,fN;for(var f1=0;f1<f5.length;f1+=3){var f4=f5[f1],f0=f5[f1+1];if(fW<f4){fR=0;fQ=1;fN="left"}else{if(fW<f0){fR=fW-f4;fQ=fR+1}else{if(f1==f5.length-3||fW==f0&&f5[f1+3]>fW){fQ=f0-f4;fR=fQ-1;if(fW>=f0){fN="right"}}}}if(fR!=null){fZ=f5[f1+2];if(f4==f0&&fS==(fZ.insertLeft?"left":"right")){fN=fS}if(fS=="left"&&fR==0){while(f1&&f5[f1-2]==f5[f1-3]&&f5[f1-1].insertLeft){fZ=f5[(f1-=3)+2];fN="left"}}if(fS=="right"&&fR==f0-f4){while(f1<f5.length-3&&f5[f1+3]==f5[f1+4]&&!f5[f1+5].insertLeft){fZ=f5[(f1+=3)+2];fN="right"}}break}}var fO;if(fZ.nodeType==3){while(fR&&e0(f2.line.text.charAt(f4+fR))){--fR}while(f4+fQ<f0&&e0(f2.line.text.charAt(f4+fQ))){++fQ}if(bY&&fR==0&&fQ==f0-f4){fO=fZ.parentNode.getBoundingClientRect()}else{if(dn&&fU.options.lineWrapping){var fP=cb(fZ,fR,fQ).getClientRects();if(fP.length){fO=fP[fS=="right"?fP.length-1:0]}else{fO=ee}}else{fO=cb(fZ,fR,fQ).getBoundingClientRect()||ee}}}else{if(fR>0){fN=fS="right"}var fP;if(fU.options.lineWrapping&&(fP=fZ.getClientRects()).length>1){fO=fP[fS=="right"?fP.length-1:0]}else{fO=fZ.getBoundingClientRect()}}if(bY&&!fR&&(!fO||!fO.left&&!fO.right)){var fT=fZ.parentNode.getClientRects()[0];if(fT){fO={left:fT.left,right:fT.left+di(fU.display),top:fT.top,bottom:fT.bottom}}else{fO=ee}}var fY,fX=(fO.bottom+fO.top)/2-f2.rect.top;var f3=f2.view.measure.heights;for(var f1=0;f1<f3.length-1;f1++){if(fX<f3[f1]){break}}fY=f1?f3[f1-1]:0;fX=f3[f1];var fV={left:(fN=="right"?fO.right:fO.left)-f2.rect.left,right:(fN=="left"?fO.left:fO.right)-f2.rect.left,top:fY,bottom:fX};if(!fO.left&&!fO.right){fV.bogus=true}return fV}function ap(fO){if(fO.measure){fO.measure.cache={};fO.measure.heights=null;if(fO.rest){for(var fN=0;fN<fO.rest.length;fN++){fO.measure.caches[fN]={}}}}}function aF(fN){fN.display.externalMeasure=null;dE(fN.display.lineMeasure);for(var fO=0;fO<fN.display.view.length;fO++){ap(fN.display.view[fO])}}function ai(fN){aF(fN);fN.display.cachedCharWidth=fN.display.cachedTextHeight=fN.display.cachedPaddingH=null;if(!fN.options.lineWrapping){fN.display.maxLineChanged=true}fN.display.lineNumChars=null}function ck(){return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ci(){return window.pageYOffset||(document.documentElement||document.body).scrollTop}function et(fT,fQ,fS,fO){if(fQ.widgets){for(var fP=0;fP<fQ.widgets.length;++fP){if(fQ.widgets[fP].above){var fV=cH(fQ.widgets[fP]);fS.top+=fV;fS.bottom+=fV}}}if(fO=="line"){return fS}if(!fO){fO="local"}var fR=bB(fQ);if(fO=="local"){fR+=eI(fT.display)}else{fR-=fT.display.viewOffset}if(fO=="page"||fO=="window"){var fN=fT.display.lineSpace.getBoundingClientRect();fR+=fN.top+(fO=="window"?0:ci());var fU=fN.left+(fO=="window"?0:ck());fS.left+=fU;fS.right+=fU}fS.top+=fR;fS.bottom+=fR;return fS}function fJ(fO,fR,fP){if(fP=="div"){return fR}var fT=fR.left,fS=fR.top;if(fP=="page"){fT-=ck();fS-=ci()}else{if(fP=="local"||!fP){var fQ=fO.display.sizer.getBoundingClientRect();fT+=fQ.left;fS+=fQ.top}}var fN=fO.display.lineSpace.getBoundingClientRect();return{left:fT-fN.left,top:fS-fN.top}}function cx(fN,fR,fQ,fP,fO){if(!fP){fP=eP(fN.doc,fR.line)}return et(fN,fP,dT(fN,fP,fR.ch,fO),fQ)}function dx(fV,fU,fP,fT,fX){fT=fT||eP(fV.doc,fU.line);if(!fX){fX=aU(fV,fT)}function fR(f0,fZ){var fY=D(fV,fX,f0,fZ?"right":"left");if(fZ){fY.left=fY.right}else{fY.right=fY.left}return et(fV,fT,fY,fP)}function fW(f1,fY){var fZ=fS[fY],f0=fZ.level%2;if(f1==dd(fZ)&&fY&&fZ.level<fS[fY-1].level){fZ=fS[--fY];f1=fI(fZ)-(fZ.level%2?0:1);f0=true}else{if(f1==fI(fZ)&&fY<fS.length-1&&fZ.level<fS[fY+1].level){fZ=fS[++fY];f1=dd(fZ)-fZ.level%2;f0=false}}if(f0&&f1==fZ.to&&f1>fZ.from){return fR(f1-1)}return fR(f1,f0)}var fS=a(fT),fN=fU.ch;if(!fS){return fR(fN)}var fO=aB(fS,fN);var fQ=fW(fN,fO);if(eE!=null){fQ.other=fW(fN,eE)}return fQ}function dm(fN,fR){var fQ=0,fR=fj(fN.doc,fR);if(!fN.options.lineWrapping){fQ=di(fN.display)*fR.ch}var fO=eP(fN.doc,fR.line);var fP=bB(fO)+eI(fN.display);return{left:fQ,right:fQ,top:fP,bottom:fP+fO.height}}function fv(fN,fO,fP,fR){var fQ=W(fN,fO);fQ.xRel=fR;if(fP){fQ.outside=true}return fQ}function fo(fU,fR,fQ){var fT=fU.doc;fQ+=fU.display.viewOffset;if(fQ<0){return fv(fT.first,0,true,-1)}var fP=bv(fT,fQ),fV=fT.first+fT.size-1;if(fP>fV){return fv(fT.first+fT.size-1,eP(fT,fV).text.length,true,1)}if(fR<0){fR=0}var fO=eP(fT,fP);for(;;){var fW=cI(fU,fO,fP,fR,fQ);var fS=d7(fO);var fN=fS&&fS.find(0,true);if(fS&&(fW.ch>fN.from.ch||fW.ch==fN.from.ch&&fW.xRel>0)){fP=bC(fO=fN.to.line)}else{return fW}}}function cI(fX,fP,f0,fZ,fY){var fW=fY-bB(fP);var fT=false,f6=2*fX.display.wrapper.clientWidth;var f3=aU(fX,fP);function ga(gc){var gd=dx(fX,W(f0,gc),"line",fP,f3);fT=true;if(fW>gd.bottom){return gd.left-f6}else{if(fW<gd.top){return gd.left+f6}else{fT=false}}return gd.left}var f2=a(fP),f5=fP.text.length;var f7=ct(fP),fQ=cE(fP);var f4=ga(f7),fN=fT,fO=ga(fQ),fS=fT;if(fZ>fO){return fv(f0,fQ,fS,1)}for(;;){if(f2?fQ==f7||fQ==v(fP,f7,1):fQ-f7<=1){var f1=fZ<f4||fZ-f4<=fO-fZ?f7:fQ;var f9=fZ-(f1==f7?f4:fO);while(e0(fP.text.charAt(f1))){++f1}var fV=fv(f0,f1,f1==f7?fN:fS,f9<-1?-1:f9>1?1:0);return fV}var fU=Math.ceil(f5/2),gb=f7+fU;if(f2){gb=f7;for(var f8=0;f8<fU;++f8){gb=v(fP,gb,1)}}var fR=ga(gb);if(fR>fZ){fQ=gb;fO=fR;if(fS=fT){fO+=1000}f5=fU}else{f7=gb;f4=fR;fN=fT;f5-=fU}}}var aC;function aN(fP){if(fP.cachedTextHeight!=null){return fP.cachedTextHeight}if(aC==null){aC=fw("pre");for(var fO=0;fO<49;++fO){aC.appendChild(document.createTextNode("x"));aC.appendChild(fw("br"))}aC.appendChild(document.createTextNode("x"))}bG(fP.measure,aC);var fN=aC.offsetHeight/50;if(fN>3){fP.cachedTextHeight=fN}dE(fP.measure);return fN||1}function di(fR){if(fR.cachedCharWidth!=null){return fR.cachedCharWidth}var fN=fw("span","xxxxxxxxxx");var fQ=fw("pre",[fN]);bG(fR.measure,fQ);var fP=fN.getBoundingClientRect(),fO=(fP.right-fP.left)/10;if(fO>2){fR.cachedCharWidth=fO}return fO||10}var dL=0;function cw(fN){fN.curOp={viewChanged:false,startHeight:fN.doc.height,forceUpdate:false,updateInput:null,typing:false,changeObjs:null,cursorActivityHandlers:null,selectionChanged:false,updateMaxLine:false,scrollLeft:null,scrollTop:null,scrollToPos:null,id:++dL};if(!ch++){be=[]}}function aj(fY){var fT=fY.curOp,fX=fY.doc,fU=fY.display;fY.curOp=null;if(fT.updateMaxLine){h(fY)}if(fT.viewChanged||fT.forceUpdate||fT.scrollTop!=null||fT.scrollToPos&&(fT.scrollToPos.from.line<fU.viewFrom||fT.scrollToPos.to.line>=fU.viewTo)||fU.maxLineChanged&&fY.options.lineWrapping){var fR=dp(fY,{top:fT.scrollTop,ensure:fT.scrollToPos},fT.forceUpdate);if(fY.display.scroller.offsetHeight){fY.doc.scrollTop=fY.display.scroller.scrollTop}}if(!fR&&fT.selectionChanged){br(fY)}if(!fR&&fT.startHeight!=fY.doc.height){eB(fY)}if(fT.scrollTop!=null&&fU.scroller.scrollTop!=fT.scrollTop){var fV=Math.max(0,Math.min(fU.scroller.scrollHeight-fU.scroller.clientHeight,fT.scrollTop));fU.scroller.scrollTop=fU.scrollbarV.scrollTop=fX.scrollTop=fV}if(fT.scrollLeft!=null&&fU.scroller.scrollLeft!=fT.scrollLeft){var fO=Math.max(0,Math.min(fU.scroller.scrollWidth-fU.scroller.clientWidth,fT.scrollLeft));fU.scroller.scrollLeft=fU.scrollbarH.scrollLeft=fX.scrollLeft=fO;ei(fY)}if(fT.scrollToPos){var fW=E(fY,fj(fY.doc,fT.scrollToPos.from),fj(fY.doc,fT.scrollToPos.to),fT.scrollToPos.margin);if(fT.scrollToPos.isCursor&&fY.state.focused){dJ(fY,fW)}}if(fT.selectionChanged){p(fY)}if(fY.state.focused&&fT.updateInput){eZ(fY,fT.typing)}var fS=fT.maybeHiddenMarkers,fN=fT.maybeUnhiddenMarkers;if(fS){for(var fQ=0;fQ<fS.length;++fQ){if(!fS[fQ].lines.length){az(fS[fQ],"hide")}}}if(fN){for(var fQ=0;fQ<fN.length;++fQ){if(fN[fQ].lines.length){az(fN[fQ],"unhide")}}}var fP;if(!--ch){fP=be;be=null}if(fT.changeObjs){az(fY,"changes",fY,fT.changeObjs)}if(fP){for(var fQ=0;fQ<fP.length;++fQ){fP[fQ]()}}if(fT.cursorActivityHandlers){for(var fQ=0;fQ<fT.cursorActivityHandlers.length;fQ++){fT.cursorActivityHandlers[fQ](fY)}}}function cz(fN,fO){if(fN.curOp){return fO()}cw(fN);try{return fO()}finally{aj(fN)}}function cL(fN,fO){return function(){if(fN.curOp){return fO.apply(fN,arguments)}cw(fN);try{return fO.apply(fN,arguments)}finally{aj(fN)}}}function cR(fN){return function(){if(this.curOp){return fN.apply(this,arguments)}cw(this);try{return fN.apply(this,arguments)}finally{aj(this)}}}function cs(fN){return function(){var fO=this.cm;if(!fO||fO.curOp){return fN.apply(this,arguments)}cw(fO);try{return fN.apply(this,arguments)}finally{aj(fO)}}}function bl(fP,fN,fO){this.line=fN;this.rest=i(fN);this.size=this.rest?bC(fh(this.rest))-fO+1:1;this.node=this.text=null;this.hidden=e7(fP,fN)}function ey(fN,fT,fS){var fR=[],fP;for(var fQ=fT;fQ<fS;fQ=fP){var fO=new bl(fN.doc,eP(fN.doc,fQ),fQ);fP=fQ+fO.size;fR.push(fO)}return fR}function af(fU,fS,fT,fV){if(fS==null){fS=fU.doc.first}if(fT==null){fT=fU.doc.first+fU.doc.size}if(!fV){fV=0}var fP=fU.display;if(fV&&fT<fP.viewTo&&(fP.updateLineNumbers==null||fP.updateLineNumbers>fS)){fP.updateLineNumbers=fS}fU.curOp.viewChanged=true;if(fS>=fP.viewTo){if(aX&&aM(fU.doc,fS)<fP.viewTo){d9(fU)}}else{if(fT<=fP.viewFrom){if(aX&&dG(fU.doc,fT+fV)>fP.viewFrom){d9(fU)}else{fP.viewFrom+=fV;fP.viewTo+=fV}}else{if(fS<=fP.viewFrom&&fT>=fP.viewTo){d9(fU)}else{if(fS<=fP.viewFrom){var fR=cX(fU,fT,fT+fV,1);if(fR){fP.view=fP.view.slice(fR.index);fP.viewFrom=fR.lineN;fP.viewTo+=fV}else{d9(fU)}}else{if(fT>=fP.viewTo){var fR=cX(fU,fS,fS,-1);if(fR){fP.view=fP.view.slice(0,fR.index);fP.viewTo=fR.lineN}else{d9(fU)}}else{var fQ=cX(fU,fS,fS,-1);var fO=cX(fU,fT,fT+fV,1);if(fQ&&fO){fP.view=fP.view.slice(0,fQ.index).concat(ey(fU,fQ.lineN,fO.lineN)).concat(fP.view.slice(fO.index));fP.viewTo+=fV}else{d9(fU)}}}}}}var fN=fP.externalMeasured;if(fN){if(fT<fN.lineN){fN.lineN+=fV}else{if(fS<fN.lineN+fN.size){fP.externalMeasured=null}}}}function R(fO,fP,fS){fO.curOp.viewChanged=true;var fT=fO.display,fR=fO.display.externalMeasured;if(fR&&fP>=fR.lineN&&fP<fR.lineN+fR.size){fT.externalMeasured=null}if(fP<fT.viewFrom||fP>=fT.viewTo){return}var fQ=fT.view[c7(fO,fP)];if(fQ.node==null){return}var fN=fQ.changes||(fQ.changes=[]);if(c1(fN,fS)==-1){fN.push(fS)}}function d9(fN){fN.display.viewFrom=fN.display.viewTo=fN.doc.first;fN.display.view=[];fN.display.viewOffset=0}function c7(fN,fQ){if(fQ>=fN.display.viewTo){return null}fQ-=fN.display.viewFrom;if(fQ<0){return null}var fO=fN.display.view;for(var fP=0;fP<fO.length;fP++){fQ-=fO[fP].size;if(fQ<0){return fP}}}function cX(fV,fP,fR,fO){var fS=c7(fV,fP),fU,fT=fV.display.view;if(!aX){return{index:fS,lineN:fR}}for(var fQ=0,fN=fV.display.viewFrom;fQ<fS;fQ++){fN+=fT[fQ].size}if(fN!=fP){if(fO>0){if(fS==fT.length-1){return null}fU=(fN+fT[fS].size)-fP;fS++}else{fU=fN-fP}fP+=fU;fR+=fU}while(aM(fV.doc,fR)!=fR){if(fS==(fO<0?0:fT.length-1)){return null}fR+=fO*fT[fS-(fO<0?1:0)].size;fS+=fO}return{index:fS,lineN:fR}}function cD(fN,fR,fQ){var fP=fN.display,fO=fP.view;if(fO.length==0||fR>=fP.viewTo||fQ<=fP.viewFrom){fP.view=ey(fN,fR,fQ);fP.viewFrom=fR}else{if(fP.viewFrom>fR){fP.view=ey(fN,fR,fP.viewFrom).concat(fP.view)}else{if(fP.viewFrom<fR){fP.view=fP.view.slice(c7(fN,fR))}}fP.viewFrom=fR;if(fP.viewTo<fQ){fP.view=fP.view.concat(ey(fN,fP.viewTo,fQ))}else{if(fP.viewTo>fQ){fP.view=fP.view.slice(0,c7(fN,fQ))}}}fP.viewTo=fQ}function cU(fN){var fO=fN.display.view,fR=0;for(var fQ=0;fQ<fO.length;fQ++){var fP=fO[fQ];if(!fP.hidden&&(!fP.node||fP.changes)){++fR}}return fR}function bc(fN){if(fN.display.pollingFast){return}fN.display.poll.set(fN.options.pollInterval,function(){b7(fN);if(fN.state.focused){bc(fN)}})}function C(fN){var fO=false;fN.display.pollingFast=true;function fP(){var fQ=b7(fN);if(!fQ&&!fO){fO=true;fN.display.poll.set(60,fP)}else{fN.display.pollingFast=false;bc(fN)}}fN.display.poll.set(20,fP)}function b7(fR){var fS=fR.display.input,fV=fR.display.prevInput,f6=fR.doc;if(!fR.state.focused||(bi(fS)&&!fV)||ah(fR)||fR.options.disableInput){return false}if(fR.state.pasteIncoming&&fR.state.fakedLastChar){fS.value=fS.value.substring(0,fS.value.length-1);fR.state.fakedLastChar=false}var fU=fS.value;if(fU==fV&&!fR.somethingSelected()){return false}if(dn&&!bY&&fR.display.inputHasSelection===fU){eZ(fR);return false}var f2=!fR.curOp;if(f2){cw(fR)}fR.display.shift=false;if(fU.charCodeAt(0)==8203&&f6.sel==fR.display.selForContextMenu&&!fV){fV="\u200b"}var f1=0,fY=Math.min(fV.length,fU.length);while(f1<fY&&fV.charCodeAt(f1)==fU.charCodeAt(f1)){++f1}var fO=fU.slice(f1),fW=aQ(fO);var f5=fR.state.pasteIncoming&&fW.length>1&&f6.sel.ranges.length==fW.length;for(var f3=f6.sel.ranges.length-1;f3>=0;f3--){var fX=f6.sel.ranges[f3];var fZ=fX.from(),fN=fX.to();if(f1<fV.length){fZ=W(fZ.line,fZ.ch-(fV.length-f1))}else{if(fR.state.overwrite&&fX.empty()&&!fR.state.pasteIncoming){fN=W(fN.line,Math.min(eP(f6,fN.line).text.length,fN.ch+fh(fW).length))}}var fQ=fR.curOp.updateInput;var f4={from:fZ,to:fN,text:f5?[fW[f3]]:fW,origin:fR.state.pasteIncoming?"paste":fR.state.cutIncoming?"cut":"+input"};a5(fR.doc,f4);ac(fR,"inputRead",fR,f4);if(fO&&!fR.state.pasteIncoming&&fR.options.electricChars&&fR.options.smartIndent&&fX.head.ch<100&&(!f3||f6.sel.ranges[f3-1].head.line!=fX.head.line)){var fT=fR.getModeAt(fX.head);if(fT.electricChars){for(var f0=0;f0<fT.electricChars.length;f0++){if(fO.indexOf(fT.electricChars.charAt(f0))>-1){ab(fR,fX.head.line,"smart");break}}}else{if(fT.electricInput){var fP=cG(f4);if(fT.electricInput.test(eP(f6,fP.line).text.slice(0,fP.ch))){ab(fR,fX.head.line,"smart")}}}}}fg(fR);fR.curOp.updateInput=fQ;fR.curOp.typing=true;if(fU.length>1000||fU.indexOf("\n")>-1){fS.value=fR.display.prevInput=""}else{fR.display.prevInput=fU}if(f2){aj(fR)}fR.state.pasteIncoming=fR.state.cutIncoming=false;return true}function eZ(fN,fR){var fO,fQ,fT=fN.doc;if(fN.somethingSelected()){fN.display.prevInput="";var fP=fT.sel.primary();fO=cT&&(fP.to().line-fP.from().line>100||(fQ=fN.getSelection()).length>1000);var fS=fO?"-":fQ||fN.getSelection();fN.display.input.value=fS;if(fN.state.focused){dq(fN.display.input)}if(dn&&!bY){fN.display.inputHasSelection=fS}}else{if(!fR){fN.display.prevInput=fN.display.input.value="";if(dn&&!bY){fN.display.inputHasSelection=null}}}fN.display.inaccurateSelection=fO}function ed(fN){if(fN.options.readOnly!="nocursor"&&(!dS||ds()!=fN.display.input)){fN.display.input.focus()}}function s(fN){if(!fN.state.focused){ed(fN);cq(fN)}}function ah(fN){return fN.options.readOnly||fN.doc.cantEdit}function fp(fN){var fP=fN.display;bM(fP.scroller,"mousedown",cL(fN,d5));if(eo){bM(fP.scroller,"dblclick",cL(fN,function(fT){if(aI(fN,fT)){return}var fU=cd(fN,fT);if(!fU||m(fN,fT)||a0(fN.display,fT)){return}cu(fT);var fS=ar(fN.doc,fU);ft(fN.doc,fS.anchor,fS.head)}))}else{bM(fP.scroller,"dblclick",function(fS){aI(fN,fS)||cu(fS)})}bM(fP.lineSpace,"selectstart",function(fS){if(!a0(fP,fS)){cu(fS)}});if(!fE){bM(fP.scroller,"contextmenu",function(fS){av(fN,fS)})}bM(fP.scroller,"scroll",function(){if(fP.scroller.clientHeight){N(fN,fP.scroller.scrollTop);bt(fN,fP.scroller.scrollLeft,true);az(fN,"scroll",fN)}});bM(fP.scrollbarV,"scroll",function(){if(fP.scroller.clientHeight){N(fN,fP.scrollbarV.scrollTop)}});bM(fP.scrollbarH,"scroll",function(){if(fP.scroller.clientHeight){bt(fN,fP.scrollbarH.scrollLeft)}});bM(fP.scroller,"mousewheel",function(fS){c(fN,fS)});bM(fP.scroller,"DOMMouseScroll",function(fS){c(fN,fS)});function fR(){if(fN.state.focused){setTimeout(cl(ed,fN),0)}}bM(fP.scrollbarH,"mousedown",fR);bM(fP.scrollbarV,"mousedown",fR);bM(fP.wrapper,"scroll",function(){fP.wrapper.scrollTop=fP.wrapper.scrollLeft=0});bM(fP.input,"keyup",cL(fN,a7));bM(fP.input,"input",function(){if(dn&&!bY&&fN.display.inputHasSelection){fN.display.inputHasSelection=null}C(fN)});bM(fP.input,"keydown",cL(fN,q));bM(fP.input,"keypress",cL(fN,cn));bM(fP.input,"focus",cl(cq,fN));bM(fP.input,"blur",cl(aL,fN));function fO(fS){if(!aI(fN,fS)){d3(fS)}}if(fN.options.dragDrop){bM(fP.scroller,"dragstart",function(fS){Q(fN,fS)});bM(fP.scroller,"dragenter",fO);bM(fP.scroller,"dragover",fO);bM(fP.scroller,"drop",cL(fN,a9))}bM(fP.scroller,"paste",function(fS){if(a0(fP,fS)){return}fN.state.pasteIncoming=true;ed(fN);C(fN)});bM(fP.input,"paste",function(){if(cJ&&!fN.state.fakedLastChar&&!(new Date-fN.state.lastMiddleDown<200)){var fT=fP.input.selectionStart,fS=fP.input.selectionEnd;fP.input.value+="$";fP.input.selectionStart=fT;fP.input.selectionEnd=fS;fN.state.fakedLastChar=true}fN.state.pasteIncoming=true;C(fN)});function fQ(fW){if(fN.somethingSelected()){if(fP.inaccurateSelection){fP.prevInput="";fP.inaccurateSelection=false;fP.input.value=fN.getSelection();dq(fP.input)}}else{var fX="",fT=[];for(var fU=0;fU<fN.doc.sel.ranges.length;fU++){var fS=fN.doc.sel.ranges[fU].head.line;var fV={anchor:W(fS,0),head:W(fS+1,0)};fT.push(fV);fX+=fN.getRange(fV.anchor,fV.head)}if(fW.type=="cut"){fN.setSelections(fT,null,Y)}else{fP.prevInput="";fP.input.value=fX;dq(fP.input)}}if(fW.type=="cut"){fN.state.cutIncoming=true}}bM(fP.input,"cut",fQ);bM(fP.input,"copy",fQ);if(a1){bM(fP.sizer,"mouseup",function(){if(ds()==fP.input){fP.input.blur()}ed(fN)})}}function aK(fN){var fO=fN.display;fO.cachedCharWidth=fO.cachedTextHeight=fO.cachedPaddingH=null;fN.setSize()}function a0(fO,fN){for(var fP=L(fN);fP!=fO.wrapper;fP=fP.parentNode){if(!fP||fP.ignoreEvents||fP.parentNode==fO.sizer&&fP!=fO.mover){return true}}}function cd(fX,fR,fO,fP){var fT=fX.display;if(!fO){var fS=L(fR);if(fS==fT.scrollbarH||fS==fT.scrollbarV||fS==fT.scrollbarFiller||fS==fT.gutterFiller){return null}}var fW,fU,fN=fT.lineSpace.getBoundingClientRect();try{fW=fR.clientX-fN.left;fU=fR.clientY-fN.top}catch(fR){return null}var fV=fo(fX,fW,fU),fY;if(fP&&fV.xRel==1&&(fY=eP(fX.doc,fV.line).text).length==fV.ch){var fQ=bI(fY,fY.length,fX.options.tabSize)-fY.length;fV=W(fV.line,Math.max(0,Math.round((fW-eG(fX.display).left)/di(fX.display))-fQ))}return fV}function d5(fP){if(aI(this,fP)){return}var fN=this,fO=fN.display;fO.shift=fP.shiftKey;if(a0(fO,fP)){if(!cJ){fO.scroller.draggable=false;setTimeout(function(){fO.scroller.draggable=true},100)}return}if(m(fN,fP)){return}var fQ=cd(fN,fP);window.focus();switch(fn(fP)){case 1:if(fQ){au(fN,fP,fQ)}else{if(L(fP)==fO.scroller){cu(fP)}}break;case 2:if(cJ){fN.state.lastMiddleDown=+new Date}if(fQ){ft(fN.doc,fQ)}setTimeout(cl(ed,fN),20);cu(fP);break;case 3:if(fE){av(fN,fP)}break}}var c4,cW;function au(fN,fS,fT){setTimeout(cl(s,fN),0);var fO=+new Date,fP;if(cW&&cW.time>fO-400&&b5(cW.pos,fT)==0){fP="triple"}else{if(c4&&c4.time>fO-400&&b5(c4.pos,fT)==0){fP="double";cW={time:fO,pos:fT}}else{fP="single";c4={time:fO,pos:fT}}}var fQ=fN.doc.sel,fR=bU?fS.metaKey:fS.ctrlKey;if(fN.options.dragDrop&&ep&&!fR&&!ah(fN)&&fP=="single"&&fQ.contains(fT)>-1&&fQ.somethingSelected()){aT(fN,fS,fT)}else{n(fN,fS,fT,fP,fR)}}function aT(fO,fQ,fR){var fP=fO.display;var fN=cL(fO,function(fS){if(cJ){fP.scroller.draggable=false}fO.state.draggingText=false;dP(document,"mouseup",fN);dP(fP.scroller,"drop",fN);if(Math.abs(fQ.clientX-fS.clientX)+Math.abs(fQ.clientY-fS.clientY)<10){cu(fS);ft(fO.doc,fR);ed(fO);if(eo&&!bY){setTimeout(function(){document.body.focus();ed(fO)},20)}}});if(cJ){fP.scroller.draggable=true}fO.state.draggingText=fN;if(fP.scroller.dragDrop){fP.scroller.dragDrop()}bM(document,"mouseup",fN);bM(fP.scroller,"drop",fN)}function n(fQ,f4,fP,fN,fS){var f1=fQ.display,f6=fQ.doc;cu(f4);var fO,f5,fR=f6.sel;if(fS&&!f4.shiftKey){f5=f6.sel.contains(fP);if(f5>-1){fO=f6.sel.ranges[f5]}else{fO=new dB(fP,fP)}}else{fO=f6.sel.primary()}if(f4.altKey){fN="rect";if(!fS){fO=new dB(fP,fP)}fP=cd(fQ,f4,true,true);f5=-1}else{if(fN=="double"){var f2=ar(f6,fP);if(fQ.display.shift||f6.extend){fO=e6(f6,fO,f2.anchor,f2.head)}else{fO=f2}}else{if(fN=="triple"){var fV=new dB(W(fP.line,0),fj(f6,W(fP.line+1,0)));if(fQ.display.shift||f6.extend){fO=e6(f6,fO,fV.anchor,fV.head)}else{fO=fV}}else{fO=e6(f6,fO,fP)}}}if(!fS){f5=0;bJ(f6,new fx([fO],0),M);fR=f6.sel}else{if(f5>-1){f(f6,f5,fO,M)}else{f5=f6.sel.ranges.length;bJ(f6,cm(f6.sel.ranges.concat([fO]),f5),{scroll:false,origin:"*mouse"})}}var f0=fP;function fZ(gh){if(b5(f0,gh)==0){return}f0=gh;if(fN=="rect"){var f8=[],ge=fQ.options.tabSize;var f7=bI(eP(f6,fP.line).text,fP.ch,ge);var gk=bI(eP(f6,gh.line).text,gh.ch,ge);var f9=Math.min(f7,gk),gi=Math.max(f7,gk);for(var gl=Math.min(fP.line,gh.line),gb=Math.min(fQ.lastLine(),Math.max(fP.line,gh.line));gl<=gb;gl++){var gj=eP(f6,gl).text,ga=d2(gj,f9,ge);if(f9==gi){f8.push(new dB(W(gl,ga),W(gl,ga)))}else{if(gj.length>ga){f8.push(new dB(W(gl,ga),W(gl,d2(gj,gi,ge))))}}}if(!f8.length){f8.push(new dB(fP,fP))}bJ(f6,cm(fR.ranges.slice(0,f5).concat(f8),f5),M)}else{var gf=fO;var gc=gf.anchor,gg=gh;if(fN!="single"){if(fN=="double"){var gd=ar(f6,gh)}else{var gd=new dB(W(gh.line,0),fj(f6,W(gh.line+1,0)))}if(b5(gd.anchor,gc)>0){gg=gd.head;gc=am(gf.from(),gd.anchor)}else{gg=gd.anchor;gc=bn(gf.to(),gd.head)}}var f8=fR.ranges.slice(0);f8[f5]=new dB(fj(f6,gc),gg);bJ(f6,cm(f8,f5),M)}}var fX=f1.wrapper.getBoundingClientRect();var fT=0;function f3(f9){var f7=++fT;var gb=cd(fQ,f9,true,fN=="rect");if(!gb){return}if(b5(gb,f0)!=0){s(fQ);fZ(gb);var ga=bT(f1,f6);if(gb.line>=ga.to||gb.line<ga.from){setTimeout(cL(fQ,function(){if(fT==f7){f3(f9)}}),150)}}else{var f8=f9.clientY<fX.top?-20:f9.clientY>fX.bottom?20:0;if(f8){setTimeout(cL(fQ,function(){if(fT!=f7){return}f1.scroller.scrollTop+=f8;f3(f9)}),50)}}}function fW(f7){fT=Infinity;cu(f7);ed(fQ);dP(document,"mousemove",fY);dP(document,"mouseup",fU);f6.history.lastSelOrigin=null}var fY=cL(fQ,function(f7){if((dn&&!bX)?!f7.buttons:!fn(f7)){fW(f7)}else{f3(f7)}});var fU=cL(fQ,fW);bM(document,"mousemove",fY);bM(document,"mouseup",fU)}function fL(fY,fU,fW,fX,fQ){try{var fO=fU.clientX,fN=fU.clientY}catch(fU){return false}if(fO>=Math.floor(fY.display.gutters.getBoundingClientRect().right)){return false}if(fX){cu(fU)}var fV=fY.display;var fT=fV.lineDiv.getBoundingClientRect();if(fN>fT.bottom||!eS(fY,fW)){return bA(fU)}fN-=fT.top-fV.viewOffset;for(var fR=0;fR<fY.options.gutters.length;++fR){var fS=fV.gutters.childNodes[fR];if(fS&&fS.getBoundingClientRect().right>=fO){var fZ=bv(fY.doc,fN);var fP=fY.options.gutters[fR];fQ(fY,fW,fY,fZ,fP,fU);return bA(fU)}}}function m(fN,fO){return fL(fN,fO,"gutterClick",true,ac)}var ae=0;function a9(fT){var fV=this;if(aI(fV,fT)||a0(fV.display,fT)){return}cu(fT);if(dn){ae=+new Date}var fU=cd(fV,fT,true),fN=fT.dataTransfer.files;if(!fU||ah(fV)){return}if(fN&&fN.length&&window.FileReader&&window.File){var fP=fN.length,fW=Array(fP),fO=0;var fR=function(fZ,fY){var fX=new FileReader;fX.onload=cL(fV,function(){fW[fY]=fX.result;if(++fO==fP){fU=fj(fV.doc,fU);var f0={from:fU,to:fU,text:aQ(fW.join("\n")),origin:"paste"};a5(fV.doc,f0);eH(fV.doc,eu(fU,cG(f0)))}});fX.readAsText(fZ)};for(var fS=0;fS<fP;++fS){fR(fN[fS],fS)}}else{if(fV.state.draggingText&&fV.doc.sel.contains(fU)>-1){fV.state.draggingText(fT);setTimeout(cl(ed,fV),20);return}try{var fW=fT.dataTransfer.getData("Text");if(fW){var fQ=fV.state.draggingText&&fV.listSelections();d1(fV.doc,eu(fU,fU));if(fQ){for(var fS=0;fS<fQ.length;++fS){aR(fV.doc,"",fQ[fS].anchor,fQ[fS].head,"drag")}}fV.replaceSelection(fW,"around","paste");ed(fV)}}catch(fT){}}}function Q(fN,fP){if(dn&&(!fN.state.draggingText||+new Date-ae<100)){d3(fP);return}if(aI(fN,fP)||a0(fN.display,fP)){return}fP.dataTransfer.setData("Text",fN.getSelection());if(fP.dataTransfer.setDragImage&&!ay){var fO=fw("img",null,null,"position: fixed; left: 0; top: 0;");fO.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";if(dF){fO.width=fO.height=1;fN.display.wrapper.appendChild(fO);fO._top=fO.offsetTop}fP.dataTransfer.setDragImage(fO,0,0);if(dF){fO.parentNode.removeChild(fO)}}}function N(fN,fO){if(Math.abs(fN.doc.scrollTop-fO)<2){return}fN.doc.scrollTop=fO;if(!ce){dp(fN,{top:fO})}if(fN.display.scroller.scrollTop!=fO){fN.display.scroller.scrollTop=fO}if(fN.display.scrollbarV.scrollTop!=fO){fN.display.scrollbarV.scrollTop=fO}if(ce){dp(fN)}dR(fN,100)}function bt(fN,fP,fO){if(fO?fP==fN.doc.scrollLeft:Math.abs(fN.doc.scrollLeft-fP)<2){return}fP=Math.min(fP,fN.display.scroller.scrollWidth-fN.display.scroller.clientWidth);fN.doc.scrollLeft=fP;ei(fN);if(fN.display.scroller.scrollLeft!=fP){fN.display.scroller.scrollLeft=fP}if(fN.display.scrollbarH.scrollLeft!=fP){fN.display.scrollbarH.scrollLeft=fP}}var eW=0,b6=null;if(dn){b6=-0.53}else{if(ce){b6=15}else{if(cV){b6=-0.7}else{if(ay){b6=-1/3}}}}function c(fV,fP){var fY=fP.wheelDeltaX,fX=fP.wheelDeltaY;if(fY==null&&fP.detail&&fP.axis==fP.HORIZONTAL_AXIS){fY=fP.detail}if(fX==null&&fP.detail&&fP.axis==fP.VERTICAL_AXIS){fX=fP.detail}else{if(fX==null){fX=fP.wheelDelta}}var fR=fV.display,fU=fR.scroller;if(!(fY&&fU.scrollWidth>fU.clientWidth||fX&&fU.scrollHeight>fU.clientHeight)){return}if(fX&&bU&&cJ){outer:for(var fW=fP.target,fT=fR.view;fW!=fU;fW=fW.parentNode){for(var fO=0;fO<fT.length;fO++){if(fT[fO].node==fW){fV.display.currentWheelTarget=fW;break outer}}}}if(fY&&!ce&&!dF&&b6!=null){if(fX){N(fV,Math.max(0,Math.min(fU.scrollTop+fX*b6,fU.scrollHeight-fU.clientHeight)))}bt(fV,Math.max(0,Math.min(fU.scrollLeft+fY*b6,fU.scrollWidth-fU.clientWidth)));cu(fP);fR.wheelStartX=null;return}if(fX&&b6!=null){var fN=fX*b6;var fS=fV.doc.scrollTop,fQ=fS+fR.wrapper.clientHeight;if(fN<0){fS=Math.max(0,fS+fN-50)}else{fQ=Math.min(fV.doc.height,fQ+fN+50)}dp(fV,{top:fS,bottom:fQ})}if(eW<20){if(fR.wheelStartX==null){fR.wheelStartX=fU.scrollLeft;fR.wheelStartY=fU.scrollTop;fR.wheelDX=fY;fR.wheelDY=fX;setTimeout(function(){if(fR.wheelStartX==null){return}var fZ=fU.scrollLeft-fR.wheelStartX;var f1=fU.scrollTop-fR.wheelStartY;var f0=(f1&&fR.wheelDY&&f1/fR.wheelDY)||(fZ&&fR.wheelDX&&fZ/fR.wheelDX);fR.wheelStartX=fR.wheelStartY=null;if(!f0){return}b6=(b6*eW+f0)/(eW+1);++eW},200)}else{fR.wheelDX+=fY;fR.wheelDY+=fX}}}function fq(fO,fR,fN){if(typeof fR=="string"){fR=eh[fR];if(!fR){return false}}if(fO.display.pollingFast&&b7(fO)){fO.display.pollingFast=false}var fQ=fO.display.shift,fP=false;try{if(ah(fO)){fO.state.suppressEdits=true}if(fN){fO.display.shift=false}fP=fR(fO)!=bZ}finally{fO.display.shift=fQ;fO.state.suppressEdits=false}return fP}function c9(fN){var fO=fN.state.keyMaps.slice(0);if(fN.options.extraKeys){fO.push(fN.options.extraKeys)}fO.push(fN.options.keyMap);return fO}var an;function eT(fN,fT){var fO=fu(fN.options.keyMap),fR=fO.auto;clearTimeout(an);if(fR&&!eg(fT)){an=setTimeout(function(){if(fu(fN.options.keyMap)==fO){fN.options.keyMap=(fR.call?fR.call(null,fN):fR);fK(fN)}},50)}var fQ=e2(fT,true),fS=false;if(!fQ){return false}var fP=c9(fN);if(fT.shiftKey){fS=j("Shift-"+fQ,fP,function(fU){return fq(fN,fU,true)})||j(fQ,fP,function(fU){if(typeof fU=="string"?/^go[A-Z]/.test(fU):fU.motion){return fq(fN,fU)}})}else{fS=j(fQ,fP,function(fU){return fq(fN,fU)})}if(fS){cu(fT);p(fN);ac(fN,"keyHandled",fN,fQ,fT)}return fS}function dV(fN,fQ,fO){var fP=j("'"+fO+"'",c9(fN),function(fR){return fq(fN,fR,true)});if(fP){cu(fQ);p(fN);ac(fN,"keyHandled",fN,"'"+fO+"'",fQ)}return fP}var c3=null;function q(fQ){var fN=this;s(fN);if(aI(fN,fQ)){return}if(eo&&fQ.keyCode==27){fQ.returnValue=false}var fO=fQ.keyCode;fN.display.shift=fO==16||fQ.shiftKey;var fP=eT(fN,fQ);if(dF){c3=fP?fO:null;if(!fP&&fO==88&&!cT&&(bU?fQ.metaKey:fQ.ctrlKey)){fN.replaceSelection("",null,"cut")}}if(fO==18&&!/\bCodeMirror-crosshair\b/.test(fN.display.lineDiv.className)){aq(fN)}}function aq(fO){var fP=fO.display.lineDiv;fb(fP,"CodeMirror-crosshair");function fN(fQ){if(fQ.keyCode==18||!fQ.altKey){g(fP,"CodeMirror-crosshair");dP(document,"keyup",fN);dP(document,"mouseover",fN)}}bM(document,"keyup",fN);bM(document,"mouseover",fN)}function a7(fN){if(aI(this,fN)){return}if(fN.keyCode==16){this.doc.sel.shift=false}}function cn(fR){var fN=this;if(aI(fN,fR)){return}var fQ=fR.keyCode,fO=fR.charCode;if(dF&&fQ==c3){c3=null;cu(fR);return}if(((dF&&(!fR.which||fR.which<10))||a1)&&eT(fN,fR)){return}var fP=String.fromCharCode(fO==null?fQ:fO);if(dV(fN,fR,fP)){return}if(dn&&!bY){fN.display.inputHasSelection=null}C(fN)}function cq(fN){if(fN.options.readOnly=="nocursor"){return}if(!fN.state.focused){az(fN,"focus",fN);fN.state.focused=true;fb(fN.display.wrapper,"CodeMirror-focused");if(!fN.curOp&&fN.display.selForContextMenu!=fN.doc.sel){eZ(fN);if(cJ){setTimeout(cl(eZ,fN,true),0)}}}bc(fN);p(fN)}function aL(fN){if(fN.state.focused){az(fN,"blur",fN);fN.state.focused=false;g(fN.display.wrapper,"CodeMirror-focused")}clearInterval(fN.display.blinker);setTimeout(function(){if(!fN.state.focused){fN.display.shift=false}},150)}function av(fW,fR){if(aI(fW,fR,"contextmenu")){return}var fT=fW.display;if(a0(fT,fR)||c0(fW,fR)){return}var fV=cd(fW,fR),fN=fT.scroller.scrollTop;if(!fV||dF){return}var fP=fW.options.resetSelectionOnContextMenu;if(fP&&fW.doc.sel.contains(fV)==-1){cL(fW,bJ)(fW.doc,eu(fV),Y)}var fS=fT.input.style.cssText;fT.inputDiv.style.position="absolute";fT.input.style.cssText="position: fixed; width: 30px; height: 30px; top: "+(fR.clientY-5)+"px; left: "+(fR.clientX-5)+"px; z-index: 1000; background: "+(dn?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";ed(fW);eZ(fW);if(!fW.somethingSelected()){fT.input.value=fT.prevInput=" "}fT.selForContextMenu=fW.doc.sel;clearTimeout(fT.detectingSelectAll);function fQ(){if(fT.input.selectionStart!=null){var fX=fW.somethingSelected();var fY=fT.input.value="\u200b"+(fX?fT.input.value:"");fT.prevInput=fX?"":"\u200b";fT.input.selectionStart=1;fT.input.selectionEnd=fY.length}}function fU(){fT.inputDiv.style.position="relative";fT.input.style.cssText=fS;if(bY){fT.scrollbarV.scrollTop=fT.scroller.scrollTop=fN}bc(fW);if(fT.input.selectionStart!=null){if(!dn||bY){fQ()}var fX=0,fY=function(){if(fT.selForContextMenu==fW.doc.sel&&fT.input.selectionStart==0){cL(fW,eh.selectAll)(fW)}else{if(fX++<10){fT.detectingSelectAll=setTimeout(fY,500)}else{eZ(fW)}}};fT.detectingSelectAll=setTimeout(fY,200)}}if(dn&&!bY){fQ()}if(fE){d3(fR);var fO=function(){dP(window,"mouseup",fO);setTimeout(fU,20)};bM(window,"mouseup",fO)}else{setTimeout(fU,50)}}function c0(fN,fO){if(!eS(fN,"gutterContextMenu")){return false}return fL(fN,fO,"gutterContextMenu",false,az)}var cG=I.changeEnd=function(fN){if(!fN.text){return fN.to}return W(fN.from.line+fN.text.length-1,fh(fN.text).length+(fN.text.length==1?fN.from.ch:0))};function bO(fQ,fP){if(b5(fQ,fP.from)<0){return fQ}if(b5(fQ,fP.to)<=0){return cG(fP)}var fN=fQ.line+fP.text.length-(fP.to.line-fP.from.line)-1,fO=fQ.ch;if(fQ.line==fP.to.line){fO+=cG(fP).ch-fP.to.ch}return W(fN,fO)}function eU(fQ,fR){var fO=[];for(var fP=0;fP<fQ.sel.ranges.length;fP++){var fN=fQ.sel.ranges[fP];fO.push(new dB(bO(fN.anchor,fR),bO(fN.head,fR)))}return cm(fO,fQ.sel.primIndex)}function bk(fP,fO,fN){if(fP.line==fO.line){return W(fN.line,fP.ch-fO.ch+fN.ch)}else{return W(fN.line+(fP.line-fO.line),fP.ch)}}function ad(fX,fU,fO){var fP=[];var fN=W(fX.first,0),fY=fN;for(var fR=0;fR<fU.length;fR++){var fT=fU[fR];var fW=bk(fT.from,fN,fY);var fV=bk(cG(fT),fN,fY);fN=fT.to;fY=fV;if(fO=="around"){var fS=fX.sel.ranges[fR],fQ=b5(fS.head,fS.anchor)<0;fP[fR]=new dB(fQ?fV:fW,fQ?fW:fV)}else{fP[fR]=new dB(fW,fW)}}return new fx(fP,fX.sel.primIndex)}function dv(fO,fQ,fP){var fN={canceled:false,from:fQ.from,to:fQ.to,text:fQ.text,origin:fQ.origin,cancel:function(){this.canceled=true}};if(fP){fN.update=function(fU,fT,fS,fR){if(fU){this.from=fj(fO,fU)}if(fT){this.to=fj(fO,fT)}if(fS){this.text=fS}if(fR!==undefined){this.origin=fR}}}az(fO,"beforeChange",fO,fN);if(fO.cm){az(fO.cm,"beforeChange",fO.cm,fN)}if(fN.canceled){return null}return{from:fN.from,to:fN.to,text:fN.text,origin:fN.origin}}function a5(fQ,fR,fP){if(fQ.cm){if(!fQ.cm.curOp){return cL(fQ.cm,a5)(fQ,fR,fP)}if(fQ.cm.state.suppressEdits){return}}if(eS(fQ,"beforeChange")||fQ.cm&&eS(fQ.cm,"beforeChange")){fR=dv(fQ,fR,true);if(!fR){return}}var fO=fH&&!fP&&cv(fQ,fR.from,fR.to);if(fO){for(var fN=fO.length-1;fN>=0;--fN){K(fQ,{from:fO[fN].from,to:fO[fN].to,text:fN?[""]:fR.text})}}else{K(fQ,fR)}}function K(fP,fQ){if(fQ.text.length==1&&fQ.text[0]==""&&b5(fQ.from,fQ.to)==0){return}var fO=eU(fP,fQ);fm(fP,fQ,fO,fP.cm?fP.cm.curOp.id:NaN);dQ(fP,fQ,fO,dW(fP,fQ));var fN=[];dK(fP,function(fS,fR){if(!fR&&c1(fN,fS.history)==-1){dj(fS.history,fQ);fN.push(fS.history)}dQ(fS,fQ,null,dW(fS,fQ))})}function bV(fY,fW,f0){if(fY.cm&&fY.cm.state.suppressEdits){return}var fV=fY.history,fP,fR=fY.sel;var fN=fW=="undo"?fV.done:fV.undone,fZ=fW=="undo"?fV.undone:fV.done;for(var fS=0;fS<fN.length;fS++){fP=fN[fS];if(f0?fP.ranges&&!fP.equals(fY.sel):!fP.ranges){break}}if(fS==fN.length){return}fV.lastOrigin=fV.lastSelOrigin=null;for(;;){fP=fN.pop();if(fP.ranges){cA(fP,fZ);if(f0&&!fP.equals(fY.sel)){bJ(fY,fP,{clearRedo:false});return}fR=fP}else{break}}var fU=[];cA(fR,fZ);fZ.push({changes:fU,generation:fV.generation});fV.generation=fP.generation||++fV.maxGeneration;var fQ=eS(fY,"beforeChange")||fY.cm&&eS(fY.cm,"beforeChange");for(var fS=fP.changes.length-1;fS>=0;--fS){var fX=fP.changes[fS];fX.origin=fW;if(fQ&&!dv(fY,fX,false)){fN.length=0;return}fU.push(da(fY,fX));var fO=fS?eU(fY,fX,null):fh(fN);dQ(fY,fX,fO,dM(fY,fX));if(!fS&&fY.cm){fY.cm.scrollIntoView(fX)}var fT=[];dK(fY,function(f2,f1){if(!f1&&c1(fT,f2.history)==-1){dj(f2.history,fX);fT.push(f2.history)}dQ(f2,fX,null,dM(f2,fX))})}}function eX(fO,fQ){if(fQ==0){return}fO.first+=fQ;fO.sel=new fx(bH(fO.sel.ranges,function(fR){return new dB(W(fR.anchor.line+fQ,fR.anchor.ch),W(fR.head.line+fQ,fR.head.ch))}),fO.sel.primIndex);if(fO.cm){af(fO.cm,fO.first,fO.first-fQ,fQ);for(var fP=fO.cm.display,fN=fP.viewFrom;fN<fP.viewTo;fN++){R(fO.cm,fN,"gutter")}}}function dQ(fR,fS,fQ,fO){if(fR.cm&&!fR.cm.curOp){return cL(fR.cm,dQ)(fR,fS,fQ,fO)}if(fS.to.line<fR.first){eX(fR,fS.text.length-1-(fS.to.line-fS.from.line));return}if(fS.from.line>fR.lastLine()){return}if(fS.from.line<fR.first){var fN=fS.text.length-1-(fR.first-fS.from.line);eX(fR,fN);fS={from:W(fR.first,0),to:W(fS.to.line+fN,fS.to.ch),text:[fh(fS.text)],origin:fS.origin}}var fP=fR.lastLine();if(fS.to.line>fP){fS={from:fS.from,to:W(fP,eP(fR,fP).text.length),text:[fS.text[0]],origin:fS.origin}}fS.removed=fy(fR,fS.from,fS.to);if(!fQ){fQ=eU(fR,fS,null)}if(fR.cm){aD(fR.cm,fS,fO)}else{e9(fR,fS,fO)}d1(fR,fQ,Y)}function aD(fY,fU,fS){var fX=fY.doc,fT=fY.display,fV=fU.from,fW=fU.to;var fN=false,fR=fV.line;if(!fY.options.lineWrapping){fR=bC(z(eP(fX,fV.line)));fX.iter(fR,fW.line+1,function(f0){if(f0==fT.maxLine){fN=true;return true}})}if(fX.sel.contains(fU.from,fU.to)>-1){V(fY)}e9(fX,fU,fS,a3(fY));if(!fY.options.lineWrapping){fX.iter(fR,fV.line+fU.text.length,function(f1){var f0=dY(f1);if(f0>fT.maxLineLength){fT.maxLine=f1;fT.maxLineLength=f0;fT.maxLineChanged=true;fN=false}});if(fN){fY.curOp.updateMaxLine=true}}fX.frontier=Math.min(fX.frontier,fV.line);dR(fY,400);var fZ=fU.text.length-(fW.line-fV.line)-1;if(fV.line==fW.line&&fU.text.length==1&&!dw(fY.doc,fU)){R(fY,fV.line,"text")}else{af(fY,fV.line,fW.line+1,fZ)}var fP=eS(fY,"changes"),fQ=eS(fY,"change");if(fQ||fP){var fO={from:fV,to:fW,text:fU.text,removed:fU.removed,origin:fU.origin};if(fQ){ac(fY,"change",fY,fO)}if(fP){(fY.curOp.changeObjs||(fY.curOp.changeObjs=[])).push(fO)}}fY.display.selForContextMenu=null}function aR(fQ,fP,fS,fR,fN){if(!fR){fR=fS}if(b5(fR,fS)<0){var fO=fR;fR=fS;fS=fO}if(typeof fP=="string"){fP=aQ(fP)}a5(fQ,{from:fS,to:fR,text:fP,origin:fN})}function dJ(fO,fR){var fS=fO.display,fP=fS.sizer.getBoundingClientRect(),fN=null;if(fR.top+fP.top<0){fN=true}else{if(fR.bottom+fP.top>(window.innerHeight||document.documentElement.clientHeight)){fN=false}}if(fN!=null&&!e5){var fQ=fw("div","\u200b",null,"position: absolute; top: "+(fR.top-fS.viewOffset-eI(fO.display))+"px; height: "+(fR.bottom-fR.top+ba)+"px; left: "+fR.left+"px; width: 2px;");fO.display.lineSpace.appendChild(fQ);fQ.scrollIntoView(fN);fO.display.lineSpace.removeChild(fQ)}}function E(fW,fU,fR,fQ){if(fQ==null){fQ=0}for(;;){var fS=false,fV=dx(fW,fU);var fN=!fR||fR==fU?fV:dx(fW,fR);var fP=H(fW,Math.min(fV.left,fN.left),Math.min(fV.top,fN.top)-fQ,Math.max(fV.left,fN.left),Math.max(fV.bottom,fN.bottom)+fQ);var fT=fW.doc.scrollTop,fO=fW.doc.scrollLeft;if(fP.scrollTop!=null){N(fW,fP.scrollTop);if(Math.abs(fW.doc.scrollTop-fT)>1){fS=true}}if(fP.scrollLeft!=null){bt(fW,fP.scrollLeft);if(Math.abs(fW.doc.scrollLeft-fO)>1){fS=true}}if(!fS){return fV}}}function F(fN,fP,fR,fO,fQ){var fS=H(fN,fP,fR,fO,fQ);if(fS.scrollTop!=null){N(fN,fS.scrollTop)}if(fS.scrollLeft!=null){bt(fN,fS.scrollLeft)}}function H(fT,f1,fQ,f0,fP){var fY=fT.display,fX=aN(fT.display);if(fQ<0){fQ=0}var fW=fT.curOp&&fT.curOp.scrollTop!=null?fT.curOp.scrollTop:fY.scroller.scrollTop;var fO=fY.scroller.clientHeight-ba,fV={};var f3=fT.doc.height+bx(fY);var f4=fQ<fX,fZ=fP>f3-fX;if(fQ<fW){fV.scrollTop=f4?0:fQ}else{if(fP>fW+fO){var fU=Math.min(fQ,(fZ?f3:fP)-fO);if(fU!=fW){fV.scrollTop=fU}}}var fN=fT.curOp&&fT.curOp.scrollLeft!=null?fT.curOp.scrollLeft:fY.scroller.scrollLeft;var fS=fY.scroller.clientWidth-ba;f1+=fY.gutters.offsetWidth;f0+=fY.gutters.offsetWidth;var fR=fY.gutters.offsetWidth;var f2=f1<fR+10;if(f1<fN+fR||f2){if(f2){f1=0}fV.scrollLeft=Math.max(0,f1-10-fR)}else{if(f0>fS+fN-3){fV.scrollLeft=f0+10-fS}}return fV}function cy(fN,fP,fO){if(fP!=null||fO!=null){fd(fN)}if(fP!=null){fN.curOp.scrollLeft=(fN.curOp.scrollLeft==null?fN.doc.scrollLeft:fN.curOp.scrollLeft)+fP}if(fO!=null){fN.curOp.scrollTop=(fN.curOp.scrollTop==null?fN.doc.scrollTop:fN.curOp.scrollTop)+fO}}function fg(fN){fd(fN);var fO=fN.getCursor(),fQ=fO,fP=fO;if(!fN.options.lineWrapping){fQ=fO.ch?W(fO.line,fO.ch-1):fO;fP=W(fO.line,fO.ch+1)}fN.curOp.scrollToPos={from:fQ,to:fP,margin:fN.options.cursorScrollMargin,isCursor:true}}function fd(fN){var fP=fN.curOp.scrollToPos;if(fP){fN.curOp.scrollToPos=null;var fR=dm(fN,fP.from),fQ=dm(fN,fP.to);var fO=H(fN,Math.min(fR.left,fQ.left),Math.min(fR.top,fQ.top)-fP.margin,Math.max(fR.right,fQ.right),Math.max(fR.bottom,fQ.bottom)+fP.margin);fN.scrollTo(fO.scrollLeft,fO.scrollTop)}}function ab(f0,fQ,fZ,fP){var fY=f0.doc,fO;if(fZ==null){fZ="add"}if(fZ=="smart"){if(!f0.doc.mode.indent){fZ="prev"}else{fO=dg(f0,fQ)}}var fU=f0.options.tabSize;var f1=eP(fY,fQ),fT=bI(f1.text,null,fU);if(f1.stateAfter){f1.stateAfter=null}var fN=f1.text.match(/^\s*/)[0],fW;if(!fP&&!/\S/.test(f1.text)){fW=0;fZ="not"}else{if(fZ=="smart"){fW=f0.doc.mode.indent(fO,f1.text.slice(fN.length),f1.text);if(fW==bZ){if(!fP){return}fZ="prev"}}}if(fZ=="prev"){if(fQ>fY.first){fW=bI(eP(fY,fQ-1).text,null,fU)}else{fW=0}}else{if(fZ=="add"){fW=fT+f0.options.indentUnit}else{if(fZ=="subtract"){fW=fT-f0.options.indentUnit}else{if(typeof fZ=="number"){fW=fT+fZ}}}}fW=Math.max(0,fW);var fX="",fV=0;if(f0.options.indentWithTabs){for(var fR=Math.floor(fW/fU);fR;--fR){fV+=fU;fX+="\t"}}if(fV<fW){fX+=cf(fW-fV)}if(fX!=fN){aR(f0.doc,fX,W(fQ,0),W(fQ,fN.length),"+input")}else{for(var fR=0;fR<fY.sel.ranges.length;fR++){var fS=fY.sel.ranges[fR];if(fS.head.line==fQ&&fS.head.ch<fN.length){var fV=W(fQ,fN.length);f(fY,fR,new dB(fV,fV));break}}}f1.stateAfter=null}function eb(fO,fQ,fN,fT){var fS=fQ,fP=fQ,fR=fO.doc;if(typeof fQ=="number"){fP=eP(fR,cO(fR,fQ))}else{fS=bC(fQ)}if(fS==null){return null}if(fT(fP,fS)){R(fO,fS,fN)}return fP}function eA(fN,fT){var fO=fN.doc.sel.ranges,fR=[];for(var fQ=0;fQ<fO.length;fQ++){var fP=fT(fO[fQ]);while(fR.length&&b5(fP.from,fh(fR).to)<=0){var fS=fR.pop();if(b5(fS.from,fP.from)<0){fP.from=fS.from;break}}fR.push(fP)}cz(fN,function(){for(var fU=fR.length-1;fU>=0;fU--){aR(fN.doc,"",fR[fU].from,fR[fU].to,"+delete")}fg(fN)})}function bm(f4,fQ,fY,fX,fS){var fV=fQ.line,fW=fQ.ch,f3=fY;var fN=eP(f4,fV);var f1=true;function f2(){var f5=fV+fY;if(f5<f4.first||f5>=f4.first+f4.size){return(f1=false)}fV=f5;return fN=eP(f4,f5)}function f0(f6){var f5=(fS?v:ag)(fN,fW,fY,true);if(f5==null){if(!f6&&f2()){if(fS){fW=(fY<0?cE:ct)(fN)}else{fW=fY<0?fN.text.length:0}}else{return(f1=false)}}else{fW=f5}return true}if(fX=="char"){f0()}else{if(fX=="column"){f0(true)}else{if(fX=="word"||fX=="group"){var fZ=null,fT=fX=="group";for(var fR=true;;fR=false){if(fY<0&&!f0(!fR)){break}var fO=fN.text.charAt(fW)||"\n";var fP=cp(fO)?"w":fT&&fO=="\n"?"n":!fT||/\s/.test(fO)?null:"p";if(fT&&!fR&&!fP){fP="s"}if(fZ&&fZ!=fP){if(fY<0){fY=1;f0()}break}if(fP){fZ=fP}if(fY>0&&!f0(!fR)){break}}}}}var fU=bK(f4,W(fV,fW),f3,true);if(!f1){fU.hitSide=true}return fU}function bg(fV,fQ,fN,fU){var fT=fV.doc,fS=fQ.left,fR;if(fU=="page"){var fP=Math.min(fV.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);fR=fQ.top+fN*(fP-(fN<0?1.5:0.5)*aN(fV.display))}else{if(fU=="line"){fR=fN>0?fQ.bottom+3:fQ.top-3}}for(;;){var fO=fo(fV,fS,fR);if(!fO.outside){break}if(fN<0?fR<=0:fR>=fT.height){fO.hitSide=true;break}fR+=fN*5}return fO}function ar(fR,fT){var fQ=eP(fR,fT.line).text;var fS=fT.ch,fP=fT.ch;if(fQ){if((fT.xRel<0||fP==fQ.length)&&fS){--fS}else{++fP}var fO=fQ.charAt(fS);var fN=cp(fO)?cp:/\s/.test(fO)?function(fU){return/\s/.test(fU)}:function(fU){return !/\s/.test(fU)&&!cp(fU)};while(fS>0&&fN(fQ.charAt(fS-1))){--fS}while(fP<fQ.length&&fN(fQ.charAt(fP))){++fP}}return new dB(W(fT.line,fS),W(fT.line,fP))}I.prototype={constructor:I,focus:function(){window.focus();ed(this);C(this)},setOption:function(fP,fQ){var fO=this.options,fN=fO[fP];if(fO[fP]==fQ&&fP!="mode"){return}fO[fP]=fQ;if(a4.hasOwnProperty(fP)){cL(this,a4[fP])(this,fQ,fN)}},getOption:function(fN){return this.options[fN]},getDoc:function(){return this.doc},addKeyMap:function(fO,fN){this.state.keyMaps[fN?"push":"unshift"](fO)},removeKeyMap:function(fO){var fP=this.state.keyMaps;for(var fN=0;fN<fP.length;++fN){if(fP[fN]==fO||(typeof fP[fN]!="string"&&fP[fN].name==fO)){fP.splice(fN,1);return true}}},addOverlay:cR(function(fN,fO){var fP=fN.token?fN:I.getMode(this.options,fN);if(fP.startState){throw new Error("Overlays may not be stateful.")}this.state.overlays.push({mode:fP,modeSpec:fN,opaque:fO&&fO.opaque});this.state.modeGen++;af(this)}),removeOverlay:cR(function(fN){var fP=this.state.overlays;for(var fO=0;fO<fP.length;++fO){var fQ=fP[fO].modeSpec;if(fQ==fN||typeof fN=="string"&&fQ.name==fN){fP.splice(fO,1);this.state.modeGen++;af(this);return}}}),indentLine:cR(function(fP,fN,fO){if(typeof fN!="string"&&typeof fN!="number"){if(fN==null){fN=this.options.smartIndent?"smart":"prev"}else{fN=fN?"add":"subtract"}}if(bW(this.doc,fP)){ab(this,fP,fN,fO)}}),indentSelection:cR(function(fS){var fO=this.doc.sel.ranges,fN=-1;for(var fR=0;fR<fO.length;fR++){var fP=fO[fR];if(!fP.empty()){var fU=Math.max(fN,fP.from().line);var fT=fP.to();fN=Math.min(this.lastLine(),fT.line-(fT.ch?0:1))+1;for(var fQ=fU;fQ<fN;++fQ){ab(this,fQ,fS)}}else{if(fP.head.line>fN){ab(this,fP.head.line,fS,true);fN=fP.head.line;if(fR==this.doc.sel.primIndex){fg(this)}}}}}),getTokenAt:function(fU,fO){var fR=this.doc;fU=fj(fR,fU);var fQ=dg(this,fU.line,fO),fT=this.doc.mode;var fN=eP(fR,fU.line);var fS=new ew(fN.text,this.options.tabSize);while(fS.pos<fU.ch&&!fS.eol()){fS.start=fS.pos;var fP=ef(fT,fS,fQ)}return{start:fS.start,end:fS.pos,string:fS.current(),type:fP||null,state:fQ}},getTokenTypeAt:function(fU){fU=fj(this.doc,fU);var fQ=cQ(this,eP(this.doc,fU.line));var fS=0,fT=(fQ.length-1)/2,fP=fU.ch;var fO;if(fP==0){fO=fQ[2]}else{for(;;){var fN=(fS+fT)>>1;if((fN?fQ[fN*2-1]:0)>=fP){fT=fN}else{if(fQ[fN*2+1]<fP){fS=fN+1}else{fO=fQ[fN*2+2];break}}}}var fR=fO?fO.indexOf("cm-overlay "):-1;return fR<0?fO:fR==0?null:fO.slice(0,fR-1)},getModeAt:function(fO){var fN=this.doc.mode;if(!fN.innerMode){return fN}return I.innerMode(fN,this.getTokenAt(fO).state).mode},getHelper:function(fO,fN){return this.getHelpers(fO,fN)[0]},getHelpers:function(fU,fP){var fQ=[];if(!eY.hasOwnProperty(fP)){return eY}var fN=eY[fP],fT=this.getModeAt(fU);if(typeof fT[fP]=="string"){if(fN[fT[fP]]){fQ.push(fN[fT[fP]])}}else{if(fT[fP]){for(var fO=0;fO<fT[fP].length;fO++){var fS=fN[fT[fP][fO]];if(fS){fQ.push(fS)}}}else{if(fT.helperType&&fN[fT.helperType]){fQ.push(fN[fT.helperType])}else{if(fN[fT.name]){fQ.push(fN[fT.name])}}}}for(var fO=0;fO<fN._global.length;fO++){var fR=fN._global[fO];if(fR.pred(fT,this)&&c1(fQ,fR.val)==-1){fQ.push(fR.val)}}return fQ},getStateAfter:function(fO,fN){var fP=this.doc;fO=cO(fP,fO==null?fP.first+fP.size-1:fO);return dg(this,fO+1,fN)},cursorCoords:function(fQ,fO){var fP,fN=this.doc.sel.primary();if(fQ==null){fP=fN.head}else{if(typeof fQ=="object"){fP=fj(this.doc,fQ)}else{fP=fQ?fN.from():fN.to()}}return dx(this,fP,fO||"page")},charCoords:function(fO,fN){return cx(this,fj(this.doc,fO),fN||"page")},coordsChar:function(fN,fO){fN=fJ(this,fN,fO||"page");return fo(this,fN.left,fN.top)},lineAtHeight:function(fN,fO){fN=fJ(this,{top:fN,left:0},fO||"page").top;return bv(this.doc,fN+this.display.viewOffset)},heightAtLine:function(fO,fR){var fN=false,fQ=this.doc.first+this.doc.size-1;if(fO<this.doc.first){fO=this.doc.first}else{if(fO>fQ){fO=fQ;fN=true}}var fP=eP(this.doc,fO);return et(this,fP,{top:0,left:0},fR||"page").top+(fN?this.doc.height-bB(fP):0)},defaultTextHeight:function(){return aN(this.display)},defaultCharWidth:function(){return di(this.display)},setGutterMarker:cR(function(fN,fO,fP){return eb(this,fN,"gutter",function(fQ){var fR=fQ.gutterMarkers||(fQ.gutterMarkers={});fR[fO]=fP;if(!fP&&ex(fR)){fQ.gutterMarkers=null}return true})}),clearGutter:cR(function(fP){var fN=this,fQ=fN.doc,fO=fQ.first;fQ.iter(function(fR){if(fR.gutterMarkers&&fR.gutterMarkers[fP]){fR.gutterMarkers[fP]=null;R(fN,fO,"gutter");if(ex(fR.gutterMarkers)){fR.gutterMarkers=null}}++fO})}),addLineClass:cR(function(fP,fO,fN){return eb(this,fP,"class",function(fQ){var fR=fO=="text"?"textClass":fO=="background"?"bgClass":"wrapClass";if(!fQ[fR]){fQ[fR]=fN}else{if(new RegExp("(?:^|\\s)"+fN+"(?:$|\\s)").test(fQ[fR])){return false}else{fQ[fR]+=" "+fN}}return true})}),removeLineClass:cR(function(fP,fO,fN){return eb(this,fP,"class",function(fR){var fU=fO=="text"?"textClass":fO=="background"?"bgClass":"wrapClass";var fT=fR[fU];if(!fT){return false}else{if(fN==null){fR[fU]=null}else{var fS=fT.match(new RegExp("(?:^|\\s+)"+fN+"(?:$|\\s+)"));if(!fS){return false}var fQ=fS.index+fS[0].length;fR[fU]=fT.slice(0,fS.index)+(!fS.index||fQ==fT.length?"":" ")+fT.slice(fQ)||null}}return true})}),addLineWidget:cR(function(fP,fO,fN){return bw(this,fP,fO,fN)}),removeLineWidget:function(fN){fN.clear()},lineInfo:function(fN){if(typeof fN=="number"){if(!bW(this.doc,fN)){return null}var fO=fN;fN=eP(this.doc,fN);if(!fN){return null}}else{var