Google Analytics Dashboard for WP (GADWP) - Version 6.4.0

Version Description

Download this release

Release Info

Developer gripgrip
Plugin Icon 128x128 Google Analytics Dashboard for WP (GADWP)
Version 6.4.0
Comparing to
See all releases

Code changes from version 6.3.3 to 6.4.0

Files changed (33) hide show
  1. assets/css/admin-widget-settings.css +6 -6
  2. assets/css/admin-widget-settings.min.css +1 -1
  3. assets/js/admin-widget-settings.js +4 -1
  4. assets/js/admin-widget-settings.min.js +1 -1
  5. assets/js/select2.js +0 -2
  6. assets/js/select2.min.js +0 -2
  7. gadwp.php +4 -3
  8. includes/admin/common.php +102 -261
  9. includes/admin/notification-event-runner.php +182 -0
  10. includes/admin/notification-event.php +29 -122
  11. includes/admin/notifications.php +45 -15
  12. includes/admin/notifications/notification-audience.php +38 -43
  13. includes/admin/notifications/notification-bounce-rate.php +16 -19
  14. includes/admin/notifications/notification-headline-analyzer.php +9 -9
  15. includes/admin/notifications/notification-mobile-device.php +7 -11
  16. includes/admin/notifications/notification-returning-visitors.php +5 -10
  17. includes/admin/notifications/notification-to-add-more-file-extensions.php +6 -6
  18. includes/admin/notifications/notification-to-setup-affiliate-links.php +5 -5
  19. includes/admin/notifications/notification-traffic-dropping.php +5 -10
  20. includes/admin/notifications/notification-upgrade-for-email-summaries.php +5 -5
  21. includes/admin/notifications/notification-upgrade-for-form-conversion.php +7 -7
  22. includes/admin/notifications/notification-upgrade-for-google-optimize.php +6 -6
  23. includes/admin/notifications/notification-upgrade-for-search-console.php +6 -6
  24. includes/admin/notifications/notification-upgrade-to-pro.php +8 -8
  25. includes/admin/notifications/notification-visitors.php +6 -11
  26. includes/em-install.php +28 -0
  27. includes/helpers.php +24 -0
  28. includes/popular-posts/class-popular-posts.php +6 -1
  29. languages/google-analytics-dashboard-for-wp.pot +1346 -899
  30. languages/vue.php +473 -142
  31. lite/assets/vue/css/chunk-common.css +1 -1
  32. lite/assets/vue/css/chunk-common.rtl.css +1 -1
  33. lite/assets/vue/css/reports.css +1 -1
assets/css/admin-widget-settings.css CHANGED
@@ -74,14 +74,14 @@
74
  }
75
 
76
  /** SELECT2 Styles **/
77
- .select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}
78
 
79
- .select2-container {
80
  display: block;
81
  width: 100% !important;
82
  }
83
 
84
- .select2-container--default .select2-selection--multiple .select2-selection__choice {
85
  border-radius: 20px;
86
  background: #E2E4E7;
87
  border: none;
@@ -94,7 +94,7 @@
94
  line-height: 24px;
95
  }
96
 
97
- .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
98
  line-height: 1;
99
  width: 16px;
100
  height: 16px;
@@ -111,7 +111,7 @@
111
  padding-left: 0;
112
  }
113
 
114
- .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
115
  background-color: #333;
116
  color: #E2E4E7;
117
  }
@@ -212,7 +212,7 @@
212
  margin-left: 8px;
213
  }
214
 
215
- .select2-container--disabled {
216
  margin-top: 10px;
217
  opacity: 0.6;
218
  }
74
  }
75
 
76
  /** SELECT2 Styles **/
77
+ .select300-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select300-container .select300-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select300-container .select300-selection--single .select300-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select300-container .select300-selection--single .select300-selection__clear{position:relative}.select300-container[dir="rtl"] .select300-selection--single .select300-selection__rendered{padding-right:8px;padding-left:20px}.select300-container .select300-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select300-container .select300-selection--multiple .select300-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select300-container .select300-search--inline{float:left}.select300-container .select300-search--inline .select300-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select300-container .select300-search--inline .select300-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select300-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select300-results{display:block}.select300-results__options{list-style:none;margin:0;padding:0}.select300-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select300-results__option[aria-selected]{cursor:pointer}.select300-container--open .select300-dropdown{left:0}.select300-container--open .select300-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--open .select300-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select300-search--dropdown{display:block;padding:4px}.select300-search--dropdown .select300-search__field{padding:4px;width:100%;box-sizing:border-box}.select300-search--dropdown .select300-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select300-search--dropdown.select300-search--hide{display:none}.select300-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select300-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select300-container--default .select300-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select300-container--default .select300-selection--single .select300-selection__rendered{color:#444;line-height:28px}.select300-container--default .select300-selection--single .select300-selection__clear{cursor:pointer;float:right;font-weight:bold}.select300-container--default .select300-selection--single .select300-selection__placeholder{color:#999}.select300-container--default .select300-selection--single .select300-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select300-container--default .select300-selection--single .select300-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select300-container--default[dir="rtl"] .select300-selection--single .select300-selection__clear{float:left}.select300-container--default[dir="rtl"] .select300-selection--single .select300-selection__arrow{left:1px;right:auto}.select300-container--default.select300-container--disabled .select300-selection--single{background-color:#eee;cursor:default}.select300-container--default.select300-container--disabled .select300-selection--single .select300-selection__clear{display:none}.select300-container--default.select300-container--open .select300-selection--single .select300-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select300-container--default .select300-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select300-container--default .select300-selection--multiple .select300-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select300-container--default .select300-selection--multiple .select300-selection__rendered li{list-style:none}.select300-container--default .select300-selection--multiple .select300-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select300-container--default .select300-selection--multiple .select300-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove:hover{color:#333}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice,.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-search--inline{float:right}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice{margin-left:5px;margin-right:auto}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice__remove{margin-left:2px;margin-right:auto}.select300-container--default.select300-container--focus .select300-selection--multiple{border:solid black 1px;outline:0}.select300-container--default.select300-container--disabled .select300-selection--multiple{background-color:#eee;cursor:default}.select300-container--default.select300-container--disabled .select300-selection__choice__remove{display:none}.select300-container--default.select300-container--open.select300-container--above .select300-selection--single,.select300-container--default.select300-container--open.select300-container--above .select300-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select300-container--default.select300-container--open.select300-container--below .select300-selection--single,.select300-container--default.select300-container--open.select300-container--below .select300-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--default .select300-search--dropdown .select300-search__field{border:1px solid #aaa}.select300-container--default .select300-search--inline .select300-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select300-container--default .select300-results>.select300-results__options{max-height:200px;overflow-y:auto}.select300-container--default .select300-results__option[role=group]{padding:0}.select300-container--default .select300-results__option[aria-disabled=true]{color:#999}.select300-container--default .select300-results__option[aria-selected=true]{background-color:#ddd}.select300-container--default .select300-results__option .select300-results__option{padding-left:1em}.select300-container--default .select300-results__option .select300-results__option .select300-results__group{padding-left:0}.select300-container--default .select300-results__option .select300-results__option .select300-results__option{margin-left:-1em;padding-left:2em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-2em;padding-left:3em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-3em;padding-left:4em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-4em;padding-left:5em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-5em;padding-left:6em}.select300-container--default .select300-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select300-container--default .select300-results__group{cursor:default;display:block;padding:6px}.select300-container--classic .select300-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select300-container--classic .select300-selection--single:focus{border:1px solid #5897fb}.select300-container--classic .select300-selection--single .select300-selection__rendered{color:#444;line-height:28px}.select300-container--classic .select300-selection--single .select300-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select300-container--classic .select300-selection--single .select300-selection__placeholder{color:#999}.select300-container--classic .select300-selection--single .select300-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select300-container--classic .select300-selection--single .select300-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select300-container--classic[dir="rtl"] .select300-selection--single .select300-selection__clear{float:left}.select300-container--classic[dir="rtl"] .select300-selection--single .select300-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select300-container--classic.select300-container--open .select300-selection--single{border:1px solid #5897fb}.select300-container--classic.select300-container--open .select300-selection--single .select300-selection__arrow{background:transparent;border:none}.select300-container--classic.select300-container--open .select300-selection--single .select300-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select300-container--classic.select300-container--open.select300-container--above .select300-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select300-container--classic.select300-container--open.select300-container--below .select300-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select300-container--classic .select300-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select300-container--classic .select300-selection--multiple:focus{border:1px solid #5897fb}.select300-container--classic .select300-selection--multiple .select300-selection__rendered{list-style:none;margin:0;padding:0 5px}.select300-container--classic .select300-selection--multiple .select300-selection__clear{display:none}.select300-container--classic .select300-selection--multiple .select300-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select300-container--classic .select300-selection--multiple .select300-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select300-container--classic .select300-selection--multiple .select300-selection__choice__remove:hover{color:#555}.select300-container--classic[dir="rtl"] .select300-selection--multiple .select300-selection__choice{float:right;margin-left:5px;margin-right:auto}.select300-container--classic[dir="rtl"] .select300-selection--multiple .select300-selection__choice__remove{margin-left:2px;margin-right:auto}.select300-container--classic.select300-container--open .select300-selection--multiple{border:1px solid #5897fb}.select300-container--classic.select300-container--open.select300-container--above .select300-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select300-container--classic.select300-container--open.select300-container--below .select300-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--classic .select300-search--dropdown .select300-search__field{border:1px solid #aaa;outline:0}.select300-container--classic .select300-search--inline .select300-search__field{outline:0;box-shadow:none}.select300-container--classic .select300-dropdown{background-color:#fff;border:1px solid transparent}.select300-container--classic .select300-dropdown--above{border-bottom:none}.select300-container--classic .select300-dropdown--below{border-top:none}.select300-container--classic .select300-results>.select300-results__options{max-height:200px;overflow-y:auto}.select300-container--classic .select300-results__option[role=group]{padding:0}.select300-container--classic .select300-results__option[aria-disabled=true]{color:grey}.select300-container--classic .select300-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select300-container--classic .select300-results__group{cursor:default;display:block;padding:6px}.select300-container--classic.select300-container--open .select300-dropdown{border-color:#5897fb}
78
 
79
+ .select300-container {
80
  display: block;
81
  width: 100% !important;
82
  }
83
 
84
+ .select300-container--default .select300-selection--multiple .select300-selection__choice {
85
  border-radius: 20px;
86
  background: #E2E4E7;
87
  border: none;
94
  line-height: 24px;
95
  }
96
 
97
+ .select300-container--default .select300-selection--multiple .select300-selection__choice__remove {
98
  line-height: 1;
99
  width: 16px;
100
  height: 16px;
111
  padding-left: 0;
112
  }
113
 
114
+ .select300-container--default .select300-selection--multiple .select300-selection__choice__remove:hover {
115
  background-color: #333;
116
  color: #E2E4E7;
117
  }
212
  margin-left: 8px;
213
  }
214
 
215
+ .select300-container--disabled {
216
  margin-top: 10px;
217
  opacity: 0.6;
218
  }
assets/css/admin-widget-settings.min.css CHANGED
@@ -1 +1 @@
1
- .exactmetrics-label-block,.exactmetrics-radio-icons{display:block}.exactmetrics-radio-icons{margin:4px 0}.exactmetrics-radio-icons *{box-sizing:border-box}.exactmetrics-radio-icons > label{display:inline-block}.exactmetrics-radio-icons input[type="radio"]{visibility:hidden;display:none}.exactmetrics-wide-column{display:-webkit-box;display:-ms-flexbox;display:flex;border:1px solid #b7c9d9;border-radius:5px;width:40px;height:40px;padding:10px 5px;-ms-flex-flow:wrap;flex-flow:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-right:4px}.exactmetrics-wide-column > span{background:#99a1b2;display:inline-block;width:8px;height:8px;border-radius:1px;margin-bottom:2px}.exactmetrics-wide-column.exactmetrics-wide-column-two > span{width:12px}.exactmetrics-radio-icons input[type="radio"]:checked + .exactmetrics-wide-column{border:2px solid #338eef;background:#ecf4fe;padding:9px 4px}.exactmetrics-radio-icons input[type="radio"]:checked + .exactmetrics-wide-column > span{background:#338eef}.exactmetrics-wide-column.exactmetrics-wide-column-one > span{width:100%}.exactmetrics-field-description{font-family:Helvetica Neue, serif;font-style:italic;font-weight:normal;font-size:13px;line-height:1.5%;color:#545C66}.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}.select2-container{display:block;width:100% !important}.select2-container--default .select2-selection--multiple .select2-selection__choice{border-radius:20px;background:#E2E4E7;border:none;color:#32373C;padding-left:8px;font-family:Helvetica Neue, serif;font-style:normal;font-weight:normal;font-size:13px;line-height:24px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{line-height:1;width:16px;height:16px;float:right;display:block;border-radius:50%;background-color:#555D66;color:#E2E4E7;text-align:center;margin:4px 0px 4px 8px;font-size:14px;box-sizing:border-box;padding-top:0;padding-left:0}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{background-color:#333;color:#E2E4E7}.exactmetrics-widget-theme-preview{background:#F0F2F4;border-radius:5px;padding:8px 8px 8px 18px;display:flex;font-family:Helvetica Neue, serif;font-style:normal;font-weight:normal;font-size:14px;line-height:1;color:#32373C;align-items:center;justify-content:space-between}.exactmetrics-widget-theme-preview-icon,.exactmetrics-products-theme-preview-icon{width:74px;height:46px;background-image:url(data:image/png;base64,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);background-repeat:no-repeat;background-position:0 0;background-size:392px;display:inline-block}.exactmetrics-widget-theme-preview-icon.exactmetrics-widget-theme-preview-icon-beta{background-position-x:-212px}.exactmetrics-widget-theme-preview-icon.exactmetrics-widget-theme-preview-icon-charlie{background-position-x:-106px}.exactmetrics-widget-theme-preview-icon.exactmetrics-widget-theme-preview-icon-delta{height:43px;background-position:-318px 0}.exactmetrics-widget-theme-preview-icon.exactmetrics-widget-theme-preview-icon-echo{height:76px;background-position:0 -73px}.exactmetrics-widget-theme-preview-icon.exactmetrics-widget-theme-preview-icon-foxtrot{background-position:-106px -90px;height:41px}.exactmetrics-widget-theme-preview-icon.exactmetrics-widget-theme-preview-icon-golf{background-position:-212px -83px;height:56px}.exactmetrics-widget-theme-preview-icon.exactmetrics-widget-theme-preview-icon-hotel{height:50px;background-position:-318px -86px}.exactmetrics-products-theme-preview-icon{background-image:url('data:image/png;base64,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');width:74px;height:39px;background-size:188px}.exactmetrics-products-theme-preview-icon.exactmetrics-products-theme-preview-icon-alpha{background-position:0 0}.exactmetrics-products-theme-preview-icon.exactmetrics-products-theme-preview-icon-beta{background-position:-114px 0;height:65px}.exactmetrics-products-theme-preview-icon.exactmetrics-products-theme-preview-icon-charlie{background-position:0 -102px;height:50px}.exactmetrics-products-theme-preview-icon.exactmetrics-products-theme-preview-icon-delta{background-position:-114px -102px;height:78px}.exactmetrics-pro-pill{font-style:normal;font-weight:bold;font-size:11px;background:#1EC185;border-radius:5px;color:#fff;padding:3px 8px;margin-left:8px}.select2-container--disabled{margin-top:10px;opacity:0.6}
1
+ .exactmetrics-label-block,.exactmetrics-radio-icons{display:block}.exactmetrics-radio-icons{margin:4px 0}.exactmetrics-radio-icons *{box-sizing:border-box}.exactmetrics-radio-icons > label{display:inline-block}.exactmetrics-radio-icons input[type="radio"]{visibility:hidden;display:none}.exactmetrics-wide-column{display:-webkit-box;display:-ms-flexbox;display:flex;border:1px solid #b7c9d9;border-radius:5px;width:40px;height:40px;padding:10px 5px;-ms-flex-flow:wrap;flex-flow:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-right:4px}.exactmetrics-wide-column > span{background:#99a1b2;display:inline-block;width:8px;height:8px;border-radius:1px;margin-bottom:2px}.exactmetrics-wide-column.exactmetrics-wide-column-two > span{width:12px}.exactmetrics-radio-icons input[type="radio"]:checked + .exactmetrics-wide-column{border:2px solid #338eef;background:#ecf4fe;padding:9px 4px}.exactmetrics-radio-icons input[type="radio"]:checked + .exactmetrics-wide-column > span{background:#338eef}.exactmetrics-wide-column.exactmetrics-wide-column-one > span{width:100%}.exactmetrics-field-description{font-family:Helvetica Neue, serif;font-style:italic;font-weight:normal;font-size:13px;line-height:1.5%;color:#545C66}.select300-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select300-container .select300-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select300-container .select300-selection--single .select300-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select300-container .select300-selection--single .select300-selection__clear{position:relative}.select300-container[dir="rtl"] .select300-selection--single .select300-selection__rendered{padding-right:8px;padding-left:20px}.select300-container .select300-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select300-container .select300-selection--multiple .select300-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select300-container .select300-search--inline{float:left}.select300-container .select300-search--inline .select300-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select300-container .select300-search--inline .select300-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select300-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select300-results{display:block}.select300-results__options{list-style:none;margin:0;padding:0}.select300-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select300-results__option[aria-selected]{cursor:pointer}.select300-container--open .select300-dropdown{left:0}.select300-container--open .select300-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--open .select300-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select300-search--dropdown{display:block;padding:4px}.select300-search--dropdown .select300-search__field{padding:4px;width:100%;box-sizing:border-box}.select300-search--dropdown .select300-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select300-search--dropdown.select300-search--hide{display:none}.select300-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select300-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select300-container--default .select300-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select300-container--default .select300-selection--single .select300-selection__rendered{color:#444;line-height:28px}.select300-container--default .select300-selection--single .select300-selection__clear{cursor:pointer;float:right;font-weight:bold}.select300-container--default .select300-selection--single .select300-selection__placeholder{color:#999}.select300-container--default .select300-selection--single .select300-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select300-container--default .select300-selection--single .select300-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select300-container--default[dir="rtl"] .select300-selection--single .select300-selection__clear{float:left}.select300-container--default[dir="rtl"] .select300-selection--single .select300-selection__arrow{left:1px;right:auto}.select300-container--default.select300-container--disabled .select300-selection--single{background-color:#eee;cursor:default}.select300-container--default.select300-container--disabled .select300-selection--single .select300-selection__clear{display:none}.select300-container--default.select300-container--open .select300-selection--single .select300-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select300-container--default .select300-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select300-container--default .select300-selection--multiple .select300-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select300-container--default .select300-selection--multiple .select300-selection__rendered li{list-style:none}.select300-container--default .select300-selection--multiple .select300-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select300-container--default .select300-selection--multiple .select300-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove:hover{color:#333}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice,.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-search--inline{float:right}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice{margin-left:5px;margin-right:auto}.select300-container--default[dir="rtl"] .select300-selection--multiple .select300-selection__choice__remove{margin-left:2px;margin-right:auto}.select300-container--default.select300-container--focus .select300-selection--multiple{border:solid black 1px;outline:0}.select300-container--default.select300-container--disabled .select300-selection--multiple{background-color:#eee;cursor:default}.select300-container--default.select300-container--disabled .select300-selection__choice__remove{display:none}.select300-container--default.select300-container--open.select300-container--above .select300-selection--single,.select300-container--default.select300-container--open.select300-container--above .select300-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select300-container--default.select300-container--open.select300-container--below .select300-selection--single,.select300-container--default.select300-container--open.select300-container--below .select300-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--default .select300-search--dropdown .select300-search__field{border:1px solid #aaa}.select300-container--default .select300-search--inline .select300-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select300-container--default .select300-results>.select300-results__options{max-height:200px;overflow-y:auto}.select300-container--default .select300-results__option[role=group]{padding:0}.select300-container--default .select300-results__option[aria-disabled=true]{color:#999}.select300-container--default .select300-results__option[aria-selected=true]{background-color:#ddd}.select300-container--default .select300-results__option .select300-results__option{padding-left:1em}.select300-container--default .select300-results__option .select300-results__option .select300-results__group{padding-left:0}.select300-container--default .select300-results__option .select300-results__option .select300-results__option{margin-left:-1em;padding-left:2em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-2em;padding-left:3em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-3em;padding-left:4em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-4em;padding-left:5em}.select300-container--default .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option .select300-results__option{margin-left:-5em;padding-left:6em}.select300-container--default .select300-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select300-container--default .select300-results__group{cursor:default;display:block;padding:6px}.select300-container--classic .select300-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select300-container--classic .select300-selection--single:focus{border:1px solid #5897fb}.select300-container--classic .select300-selection--single .select300-selection__rendered{color:#444;line-height:28px}.select300-container--classic .select300-selection--single .select300-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select300-container--classic .select300-selection--single .select300-selection__placeholder{color:#999}.select300-container--classic .select300-selection--single .select300-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select300-container--classic .select300-selection--single .select300-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select300-container--classic[dir="rtl"] .select300-selection--single .select300-selection__clear{float:left}.select300-container--classic[dir="rtl"] .select300-selection--single .select300-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select300-container--classic.select300-container--open .select300-selection--single{border:1px solid #5897fb}.select300-container--classic.select300-container--open .select300-selection--single .select300-selection__arrow{background:transparent;border:none}.select300-container--classic.select300-container--open .select300-selection--single .select300-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select300-container--classic.select300-container--open.select300-container--above .select300-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select300-container--classic.select300-container--open.select300-container--below .select300-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select300-container--classic .select300-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select300-container--classic .select300-selection--multiple:focus{border:1px solid #5897fb}.select300-container--classic .select300-selection--multiple .select300-selection__rendered{list-style:none;margin:0;padding:0 5px}.select300-container--classic .select300-selection--multiple .select300-selection__clear{display:none}.select300-container--classic .select300-selection--multiple .select300-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select300-container--classic .select300-selection--multiple .select300-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select300-container--classic .select300-selection--multiple .select300-selection__choice__remove:hover{color:#555}.select300-container--classic[dir="rtl"] .select300-selection--multiple .select300-selection__choice{float:right;margin-left:5px;margin-right:auto}.select300-container--classic[dir="rtl"] .select300-selection--multiple .select300-selection__choice__remove{margin-left:2px;margin-right:auto}.select300-container--classic.select300-container--open .select300-selection--multiple{border:1px solid #5897fb}.select300-container--classic.select300-container--open.select300-container--above .select300-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select300-container--classic.select300-container--open.select300-container--below .select300-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select300-container--classic .select300-search--dropdown .select300-search__field{border:1px solid #aaa;outline:0}.select300-container--classic .select300-search--inline .select300-search__field{outline:0;box-shadow:none}.select300-container--classic .select300-dropdown{background-color:#fff;border:1px solid transparent}.select300-container--classic .select300-dropdown--above{border-bottom:none}.select300-container--classic .select300-dropdown--below{border-top:none}.select300-container--classic .select300-results>.select300-results__options{max-height:200px;overflow-y:auto}.select300-container--classic .select300-results__option[role=group]{padding:0}.select300-container--classic .select300-results__option[aria-disabled=true]{color:grey}.select300-container--classic .select300-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select300-container--classic .select300-results__group{cursor:default;display:block;padding:6px}.select300-container--classic.select300-container--open .select300-dropdown{border-color:#5897fb}.select300-container{display:block;width:100% !important}.select300-container--default .select300-selection--multiple .select300-selection__choice{border-radius:20px;background:#E2E4E7;border:none;color:#32373C;padding-left:8px;font-family:Helvetica Neue, serif;font-style:normal;font-weight:normal;font-size:13px;line-height:24px}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove{line-height:1;width:16px;height:16px;float:right;display:block;border-radius:50%;background-color:#555D66;color:#E2E4E7;text-align:center;margin:4px 0px 4px 8px;font-size:14px;box-sizing:border-box;padding-top:0;padding-left:0}.select300-container--default .select300-selection--multiple .select300-selection__choice__remove:hover{background-color:#333;color:#E2E4E7}.exactmetrics-widget-theme-preview{background:#F0F2F4;border-radius:5px;padding:8px 8px 8px 18px;display:flex;font-family:Helvetica Neue, serif;font-style:normal;font-weight:normal;font-size:14px;line-height:1;color:#32373C;align-items:center;justify-content:space-between}.exactmetrics-widget-theme-preview-icon,.exactmetrics-products-theme-preview-icon{width:74px;height:46px;background-image:url(data:image/png;base64,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);background-repeat:no-repeat;background-position:0 0;background-size:392px;display:inline-block}.exactmetrics-widget-theme-preview-icon.exactmetrics-widget-theme-preview-icon-beta{background-position-x:-212px}.exactmetrics-widget-theme-preview-icon.exactmetrics-widget-theme-preview-icon-charlie{background-position-x:-106px}.exactmetrics-widget-theme-preview-icon.exactmetrics-widget-theme-preview-icon-delta{height:43px;background-position:-318px 0}.exactmetrics-widget-theme-preview-icon.exactmetrics-widget-theme-preview-icon-echo{height:76px;background-position:0 -73px}.exactmetrics-widget-theme-preview-icon.exactmetrics-widget-theme-preview-icon-foxtrot{background-position:-106px -90px;height:41px}.exactmetrics-widget-theme-preview-icon.exactmetrics-widget-theme-preview-icon-golf{background-position:-212px -83px;height:56px}.exactmetrics-widget-theme-preview-icon.exactmetrics-widget-theme-preview-icon-hotel{height:50px;background-position:-318px -86px}.exactmetrics-products-theme-preview-icon{background-image:url('data:image/png;base64,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');width:74px;height:39px;background-size:188px}.exactmetrics-products-theme-preview-icon.exactmetrics-products-theme-preview-icon-alpha{background-position:0 0}.exactmetrics-products-theme-preview-icon.exactmetrics-products-theme-preview-icon-beta{background-position:-114px 0;height:65px}.exactmetrics-products-theme-preview-icon.exactmetrics-products-theme-preview-icon-charlie{background-position:0 -102px;height:50px}.exactmetrics-products-theme-preview-icon.exactmetrics-products-theme-preview-icon-delta{background-position:-114px -102px;height:78px}.exactmetrics-pro-pill{font-style:normal;font-weight:bold;font-size:11px;background:#1EC185;border-radius:5px;color:#fff;padding:3px 8px;margin-left:8px}.select300-container--disabled{margin-top:10px;opacity:0.6}
assets/js/admin-widget-settings.js CHANGED
@@ -35,7 +35,10 @@
35
  }
36
 
37
  function init_multiselect() {
38
- $('#widgets-right .exactmetrics-multiselect').select2({
 
 
 
39
  ajax: {
40
  type: 'POST',
41
  url: ajaxurl,
35
  }
36
 
37
  function init_multiselect() {
38
+ if ( ! jQuery.fn.select300 ) {
39
+ return;
40
+ }
41
+ $('#widgets-right .exactmetrics-multiselect').select300({
42
  ajax: {
43
  type: 'POST',
44
  url: ajaxurl,
assets/js/admin-widget-settings.min.js CHANGED
@@ -1 +1 @@
1
- (function(t){t(function(){e();n();t(document).on('widget-updated widget-added',function(t){e();n()});t(document).on('change','.exactmetrics-save-on-change',function(){i(t(this).closest('.widget'))})});function e(){var e;t('#widgets-right .exactmetrics-color-field').wpColorPicker({change:function(n,i){if(e){clearTimeout(e)};e=setTimeout(function(){t(n.target).trigger('change')},300)},})};function i(t){if(wpWidgets&&'undefined'!==typeof wpWidgets.save){wpWidgets.save(t,0,0)}};function n(){t('#widgets-right .exactmetrics-multiselect').select2({ajax:{type:'POST',url:ajaxurl,delay:250,width:'resolve',data:function(e){var n=t(this).data('taxonomy');return{taxonomy:n,keyword:e.term,action:'exactmetrics_get_terms',nonce:exactmetrics_pp.nonce,}},processResults:function(t){return{results:t.data}},dataType:'json'}})}})(jQuery);
1
+ (function(t){t(function(){e();n();t(document).on('widget-updated widget-added',function(t){e();n()});t(document).on('change','.exactmetrics-save-on-change',function(){i(t(this).closest('.widget'))})});function e(){var e;t('#widgets-right .exactmetrics-color-field').wpColorPicker({change:function(n,i){if(e){clearTimeout(e)};e=setTimeout(function(){t(n.target).trigger('change')},300)},})};function i(t){if(wpWidgets&&'undefined'!==typeof wpWidgets.save){wpWidgets.save(t,0,0)}};function n(){if(!jQuery.fn.select300){return};t('#widgets-right .exactmetrics-multiselect').select300({ajax:{type:'POST',url:ajaxurl,delay:250,width:'resolve',data:function(e){var n=t(this).data('taxonomy');return{taxonomy:n,keyword:e.term,action:'exactmetrics_get_terms',nonce:exactmetrics_pp.nonce,}},processResults:function(t){return{results:t.data}},dataType:'json'}})}})(jQuery);
assets/js/select2.js DELETED
@@ -1,2 +0,0 @@
1
- /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2
- !function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,r,h,o,s,f,g,m,v,y,_,i,a,b;function w(e,t){return i.call(e,t)}function l(e,t){var n,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(r=n.slice(0,u).join("/"),h)for(d=h.length;0<d;d-=1)if(i=(i=f[h.slice(0,d).join("/")])&&i[r]){o=i,a=u;break}if(o)break;!l&&g&&g[r]&&(l=g[r],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function A(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),s.apply(h,e.concat([t,n]))}}function x(t){return function(e){m[t]=e}}function D(e){if(w(v,e)){var t=v[e];delete v[e],_[e]=!0,o.apply(h,t)}if(!w(m,e)&&!w(_,e))throw new Error("No "+e);return m[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?c(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},i=Object.prototype.hasOwnProperty,a=[].slice,b=/\.js$/,f=function(e,t){var n,r=c(e),i=r[0],o=t[1];return e=r[1],i&&(n=D(i=l(i,o))),i?e=n&&n.normalize?n.normalize(e,function(t){return function(e){return l(e,t)}}(o)):l(e,o):(i=(r=c(e=l(e,o)))[0],e=r[1],i&&(n=D(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},g={require:function(e){return A(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:function(e){return function(){return y&&y.config&&y.config[e]||{}}}(e)}}},o=function(e,t,n,r){var i,o,s,a,l,c,u,d=[],p=typeof n;if(c=S(r=r||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===o)d[l]=g.exports(e),u=!0;else if("module"===o)i=d[l]=g.module(e);else if(w(m,o)||w(v,o)||w(_,o))d[l]=D(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,A(r,!0),x(o),{}),d[l]=m[o]}s=n?n.apply(m[e],d):void 0,e&&(i&&i.exports!==h&&i.exports!==m[e]?m[e]=i.exports:s===h&&u||(m[e]=s))}else e&&(m[e]=n)},t=n=s=function(e,t,n,r,i){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&s(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=r,r=i),r?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),s},s.config=function(e){return s(e)},t._defined=m,(r=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),w(m,e)||w(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=r),e.define("almond",function(){}),e.define("jquery",[],function(){var e=u||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(o){var i={};function u(e){var t=e.prototype,n=[];for(var r in t){"function"==typeof t[r]&&"constructor"!==r&&n.push(r)}return n}i.Extend=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i.Decorate=function(r,i){var e=u(i),t=u(r);function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=r.prototype.constructor;0<t&&(e.call(arguments,r.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=r.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=r.prototype[s]}function a(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},i.Observable=e,i.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},i.bind=function(e,t){return function(){e.apply(t,arguments)}},i._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in r||(r[o]={}),i==n.length-1&&(r[o]=e[t]),r=r[o]}delete e[t]}}return e},i.hasScroll=function(e,t){var n=o(t),r=t.style.overflowX,i=t.style.overflowY;return(r!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===r||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},i.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},i.__cache={};var n=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},i.StoreData=function(e,t,n){var r=i.GetUniqueElementId(e);i.__cache[r]||(i.__cache[r]={}),i.__cache[r][t]=n},i.GetData=function(e,t){var n=i.GetUniqueElementId(e);return t?i.__cache[n]&&null!=i.__cache[n][t]?i.__cache[n][t]:o(e).data(t):i.__cache[n]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t],e.removeAttribute("data-select2-id")},i}),e.define("select2/results",["jquery","./utils"],function(h,f){function r(e,t,n){this.$element=e,this.data=n,this.options=t,r.__super__.constructor.call(this)}return f.Extend(r,f.Observable),r.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(t(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],i=this.option(r);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},r.prototype.position=function(e,t){t.find(".select2-results").append(e)},r.prototype.sort=function(e){return this.options.get("sorter")(e)},r.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},r.prototype.setClasses=function(){var t=this;this.data.current(function(e){var r=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,r)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},r.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},r.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var i in(null!=e.element&&r.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[i];t.setAttribute(i,o)}if(e.children){var s=h(t),a=document.createElement("strong");a.className="select2-results__group";h(a);this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},r.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var o=l.$results.offset().top,s=i.offset().top,a=l.$results.scrollTop()+(s-o);0===r?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),s=l.$results.scrollTop()+o-i;0===n?l.$results.scrollTop(0):i<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,r=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=l.$results.height();r?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this),n=f.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:h(this)})})},r.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},r.prototype.destroy=function(){this.$results.remove()},r.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,r=e.offset().top,i=this.$results.scrollTop()+(r-n),o=r-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},r.prototype.template=function(e,t){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=r(i):h(t).append(i)},r}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,r,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return r.Extend(o,r.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=r.GetData(this.$element[0],"old-tabindex")?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&r.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")}else this.clear()},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.isDisabled()){var t=i(this).parent(),n=l.GetData(t[0],"data");r.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=this.selectionContainer(),o=this.display(r,i);i.append(o);var s=r.title||r.text;s&&i.attr("title",s),l.StoreData(i[0],"data",r),t.push(i)}var a=this.$selection.find(".select2-selection__rendered");l.appendMany(a,t)}},n}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,r,a){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){r._handleClear(e)}),t.on("keypress",function(e){r._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var r=a.GetData(n[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var o={data:r};if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var s=0;s<r.length;s++)if(o={data:r[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=r.DELETE&&t.which!=r.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.options.get("translations").get("removeAllItems"),r=i('<span class="select2-selection__clear" title="'+n()+'">&times;</span>');a.StoreData(r[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(r,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=r('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),t.on("open",function(){r.$search.attr("aria-controls",i),r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=a.GetData(t[0],"data");r.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){r.$search.val()&&e.stopPropagation()});var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&r.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var r=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,i)){t=t||{};var n=s.Event("select2:"+e,{params:t});r.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function r(e){this.dict=e||{}}return r.prototype.all=function(){return this.dict},r.prototype.get=function(e){return this.dict[e]},r.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},r._cache={},r.loadPath=function(e){if(!(e in r._cache)){var t=n(e);r._cache[e]=t}return new r(r._cache[e])},r}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(r){function n(e,t){n.__super__.constructor.call(this)}return r.Extend(n,r.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=r.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+r.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var n=[],r=this;this.$element.find(":selected").each(function(){var e=l(this),t=r.item(e);n.push(t)}),e(n)},n.prototype.select=function(i){var o=this;if(i.selected=!0,l(i.element).is("option"))return i.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var r=i[n].id;-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")});else{var e=i.id;this.$element.val(e),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(i){var o=this;if(this.$element.prop("multiple")){if(i.selected=!1,l(i.element).is("option"))return i.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].id;r!==i.id&&-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(r,e){var i=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(r,t);null!==n&&i.push(n)}}),e({results:i})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=l(t),r=this._normalizeItem(e);return r.element=t,a.StoreData(t,"data",r),n},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),r=[],i=0;i<n.length;i++){var o=l(n[i]),s=this.item(o);r.push(s)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function r(e,t){this._dataToConvert=t.get("data")||[],r.__super__.constructor.call(this,e,t)}return f.Extend(r,e),r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),r=n.map(function(){return t.item(g(this)).id}).get(),i=[];function o(e){return function(){return g(this).val()==e.id}}for(var s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=g.inArray(a.id,r)){var l=n.filter(o(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}i.push(p)}}return i},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var r=o.ajax(e);return r.then(t),r.fail(n),r}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,r){var i=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=i.processResults(e,n);i.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),r(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var r=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(r))for(var s=0;s<r.length;s++){var a=r[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var r=t.results,i=0;i<r.length;i++){var o=r[i],s=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||s)return!n&&(t.data=r,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(r,a)}t.results=r,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var r=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t=r._normalizeItem(e);if(!r.$element.find("option").filter(function(){return d(this).val()===t.id}).length){var n=r.option(t);n.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([n])}!function(e){r.trigger("select",{data:e})}(t)});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,r){for(var i=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==d.inArray(l,i)){var c=o.substr(0,s),u=a(d.extend({},t,{term:c}));null!=u?(r(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(){r._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected(function(){e.call(r,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var r=this;this.current(function(e){var t=null!=e?e.length:0;0<r.maximumSelectionLength&&t>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),t.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",i),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),t.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||r.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;0<=r;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",function(e){r.lastParams=e,r.loading=!0}),t.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,r="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(r,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(r+" "+i+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,r="resize.select2."+t.id,i="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+r+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-s,u=l>i.bottom+s,d={left:i.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(r="below"),u||!c||t?!c&&u&&t&&(r="below"):r="above",("above"==r||t&&"below"!==r)&&(d.top=o.top-h.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r<t.length;r++){var i=t[r];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",function(e){r._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=o.GetData(r[0],"data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(e){r._selectTriggered(e)}),t.on("unselect",function(e){r._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(c,u,d,p,h,f,g,m,v,y,s,t,_,$,b,w,A,x,D,S,E,C,O,T,q,L,I,j,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=c.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=b:null!=e.data?e.dataAdapter=$:e.dataAdapter=_,0<e.minimumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,x)),0<e.maximumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,D)),0<e.maximumSelectionLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,S)),e.tags&&(e.dataAdapter=y.Decorate(e.dataAdapter,w)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=y.Decorate(e.dataAdapter,A)),null!=e.query){var t=u(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=u(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=d,null!=e.ajax&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,T)),null!=e.placeholder&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,O)),e.selectOnClose&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,I))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=E;else{var r=y.Decorate(E,C);e.dropdownAdapter=r}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,L)),e.closeOnSelect&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,j)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var i=u(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,i)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,q)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=h:e.selectionAdapter=p,null!=e.placeholder&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,f)),e.allowClear&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,g)),e.multiple&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,m)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptContainerCssClass){var o=u(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language),e.language.push("en");for(var s=[],a=0;a<e.language.length;a++){var l=e.language[a];-1===s.indexOf(l)&&s.push(l)}return e.language=s,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:y.escapeMarkup,language:{},matcher:function e(t,n){if(""===c.trim(t.term))return n;if(n.children&&0<n.children.length){for(var r=c.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&r.children.splice(i,1);return 0<r.children.length?r:e(t,r)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,r=this.defaults.language,i=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(r),this._resolveLanguage(o));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(c.isEmptyObject(e))return[];if(c.isPlainObject(e))return[e];var t;t=c.isArray(e)?e:[e];for(var n=[],r=0;r<t.length;r++)if(n.push(t[r]),"string"==typeof t[r]&&0<t[r].indexOf("-")){var i=t[r].split("-")[0];n.push(i)}return n},n.prototype._processTranslations=function(e,t){for(var n=new s,r=0;r<e.length;r++){var i=new s,o=e[r];if("string"==typeof o)try{i=s.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,i=s.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=c.isPlainObject(o)?new s(o):o;n.extend(i)}return n},n.prototype.set=function(e,t){var n={};n[c.camelCase(e)]=t;var r=y._convertData(n);c.extend(!0,this.defaults,r)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(r,d,i,p){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=i.applyFromElement(this.options,t)),this.options=i.apply(this.options),t&&t.is("input")){var n=r(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=p.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function r(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,s="data-";if(o.substr(0,s.length)==s){var a=o.substring(s.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,r)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<d.inArray(u,t)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(o,c,u,r){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var i=this.render();this._placeContainer(i);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){t._syncA(),t._syncS(null,e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,r=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===o.inArray(e,r)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===r.ESC||t===r.TAB||t===r.UP&&e.altKey?(n.close(e),e.preventDefault()):t===r.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===r.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===r.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===r.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===r.ENTER||t===r.SPACE||t===r.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e,t){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var i=0;i<t.addedNodes.length;i++){t.addedNodes[i].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length?n=!0:o.isArray(t)&&o.each(t,function(e,t){if(r._isChangeMutation(e,t))return!(n=!0)});else n=!0;return n}},d.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),r=this;n&&this.dataAdapter.current(function(e){r.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var i=r[e],o={prevented:!1,name:e,args:t};if(n.call(this,i,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];o.isArray(t)&&(t=o.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=o('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,s){if(null==i.fn.select2){var a=["open","close","destroy"];i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,r)}),-1<i.inArray(t,a)?this:n}}return null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return u.fn.select2.amd=e,t});
 
 
assets/js/select2.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
2
- !function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,r,h,o,s,f,g,m,v,y,_,i,a,b;function w(e,t){return i.call(e,t)}function l(e,t){var n,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;u-=1){if(r=n.slice(0,u).join("/"),h)for(d=h.length;0<d;d-=1)if(i=(i=f[h.slice(0,d).join("/")])&&i[r]){o=i,a=u;break}if(o)break;!l&&g&&g[r]&&(l=g[r],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function A(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),s.apply(h,e.concat([t,n]))}}function x(t){return function(e){m[t]=e}}function D(e){if(w(v,e)){var t=v[e];delete v[e],_[e]=!0,o.apply(h,t)}if(!w(m,e)&&!w(_,e))throw new Error("No "+e);return m[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?c(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},i=Object.prototype.hasOwnProperty,a=[].slice,b=/\.js$/,f=function(e,t){var n,r=c(e),i=r[0],o=t[1];return e=r[1],i&&(n=D(i=l(i,o))),i?e=n&&n.normalize?n.normalize(e,function(t){return function(e){return l(e,t)}}(o)):l(e,o):(i=(r=c(e=l(e,o)))[0],e=r[1],i&&(n=D(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},g={require:function(e){return A(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:function(e){return function(){return y&&y.config&&y.config[e]||{}}}(e)}}},o=function(e,t,n,r){var i,o,s,a,l,c,u,d=[],p=typeof n;if(c=S(r=r||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===o)d[l]=g.exports(e),u=!0;else if("module"===o)i=d[l]=g.module(e);else if(w(m,o)||w(v,o)||w(_,o))d[l]=D(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,A(r,!0),x(o),{}),d[l]=m[o]}s=n?n.apply(m[e],d):void 0,e&&(i&&i.exports!==h&&i.exports!==m[e]?m[e]=i.exports:s===h&&u||(m[e]=s))}else e&&(m[e]=n)},t=n=s=function(e,t,n,r,i){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&s(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=r,r=i),r?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),s},s.config=function(e){return s(e)},t._defined=m,(r=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),w(m,e)||w(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=r),e.define("almond",function(){}),e.define("jquery",[],function(){var e=u||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(o){var i={};function u(e){var t=e.prototype,n=[];for(var r in t){"function"==typeof t[r]&&"constructor"!==r&&n.push(r)}return n}i.Extend=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i.Decorate=function(r,i){var e=u(i),t=u(r);function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=r.prototype.constructor;0<t&&(e.call(arguments,r.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=r.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=r.prototype[s]}function a(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},i.Observable=e,i.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},i.bind=function(e,t){return function(){e.apply(t,arguments)}},i._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in r||(r[o]={}),i==n.length-1&&(r[o]=e[t]),r=r[o]}delete e[t]}}return e},i.hasScroll=function(e,t){var n=o(t),r=t.style.overflowX,i=t.style.overflowY;return(r!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===r||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},i.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},i.__cache={};var n=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},i.StoreData=function(e,t,n){var r=i.GetUniqueElementId(e);i.__cache[r]||(i.__cache[r]={}),i.__cache[r][t]=n},i.GetData=function(e,t){var n=i.GetUniqueElementId(e);return t?i.__cache[n]&&null!=i.__cache[n][t]?i.__cache[n][t]:o(e).data(t):i.__cache[n]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t],e.removeAttribute("data-select2-id")},i}),e.define("select2/results",["jquery","./utils"],function(h,f){function r(e,t,n){this.$element=e,this.data=n,this.options=t,r.__super__.constructor.call(this)}return f.Extend(r,f.Observable),r.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(t(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],i=this.option(r);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},r.prototype.position=function(e,t){t.find(".select2-results").append(e)},r.prototype.sort=function(e){return this.options.get("sorter")(e)},r.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},r.prototype.setClasses=function(){var t=this;this.data.current(function(e){var r=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,r)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},r.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},r.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var i in(null!=e.element&&r.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[i];t.setAttribute(i,o)}if(e.children){var s=h(t),a=document.createElement("strong");a.className="select2-results__group";h(a);this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},r.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var o=l.$results.offset().top,s=i.offset().top,a=l.$results.scrollTop()+(s-o);0===r?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),s=l.$results.scrollTop()+o-i;0===n?l.$results.scrollTop(0):i<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,r=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=l.$results.height();r?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this),n=f.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:h(this)})})},r.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},r.prototype.destroy=function(){this.$results.remove()},r.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,r=e.offset().top,i=this.$results.scrollTop()+(r-n),o=r-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},r.prototype.template=function(e,t){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=r(i):h(t).append(i)},r}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,r,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return r.Extend(o,r.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=r.GetData(this.$element[0],"old-tabindex")?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&r.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")}else this.clear()},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.isDisabled()){var t=i(this).parent(),n=l.GetData(t[0],"data");r.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=this.selectionContainer(),o=this.display(r,i);i.append(o);var s=r.title||r.text;s&&i.attr("title",s),l.StoreData(i[0],"data",r),t.push(i)}var a=this.$selection.find(".select2-selection__rendered");l.appendMany(a,t)}},n}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,r,a){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){r._handleClear(e)}),t.on("keypress",function(e){r._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var r=a.GetData(n[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var o={data:r};if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var s=0;s<r.length;s++)if(o={data:r[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=r.DELETE&&t.which!=r.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.options.get("translations").get("removeAllItems"),r=i('<span class="select2-selection__clear" title="'+n()+'">&times;</span>');a.StoreData(r[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(r,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=r('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),t.on("open",function(){r.$search.attr("aria-controls",i),r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=a.GetData(t[0],"data");r.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){r.$search.val()&&e.stopPropagation()});var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&r.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var r=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,i)){t=t||{};var n=s.Event("select2:"+e,{params:t});r.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function r(e){this.dict=e||{}}return r.prototype.all=function(){return this.dict},r.prototype.get=function(e){return this.dict[e]},r.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},r._cache={},r.loadPath=function(e){if(!(e in r._cache)){var t=n(e);r._cache[e]=t}return new r(r._cache[e])},r}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(r){function n(e,t){n.__super__.constructor.call(this)}return r.Extend(n,r.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=r.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+r.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var n=[],r=this;this.$element.find(":selected").each(function(){var e=l(this),t=r.item(e);n.push(t)}),e(n)},n.prototype.select=function(i){var o=this;if(i.selected=!0,l(i.element).is("option"))return i.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var r=i[n].id;-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")});else{var e=i.id;this.$element.val(e),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(i){var o=this;if(this.$element.prop("multiple")){if(i.selected=!1,l(i.element).is("option"))return i.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].id;r!==i.id&&-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(r,e){var i=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(r,t);null!==n&&i.push(n)}}),e({results:i})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=l(t),r=this._normalizeItem(e);return r.element=t,a.StoreData(t,"data",r),n},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),r=[],i=0;i<n.length;i++){var o=l(n[i]),s=this.item(o);r.push(s)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function r(e,t){this._dataToConvert=t.get("data")||[],r.__super__.constructor.call(this,e,t)}return f.Extend(r,e),r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),r=n.map(function(){return t.item(g(this)).id}).get(),i=[];function o(e){return function(){return g(this).val()==e.id}}for(var s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=g.inArray(a.id,r)){var l=n.filter(o(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}i.push(p)}}return i},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var r=o.ajax(e);return r.then(t),r.fail(n),r}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,r){var i=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=i.processResults(e,n);i.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),r(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var r=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(r))for(var s=0;s<r.length;s++){var a=r[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var r=t.results,i=0;i<r.length;i++){var o=r[i],s=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||s)return!n&&(t.data=r,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(r,a)}t.results=r,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var r=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t=r._normalizeItem(e);if(!r.$element.find("option").filter(function(){return d(this).val()===t.id}).length){var n=r.option(t);n.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([n])}!function(e){r.trigger("select",{data:e})}(t)});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,r){for(var i=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==d.inArray(l,i)){var c=o.substr(0,s),u=a(d.extend({},t,{term:c}));null!=u?(r(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(){r._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected(function(){e.call(r,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var r=this;this.current(function(e){var t=null!=e?e.length:0;0<r.maximumSelectionLength&&t>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),t.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",i),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),t.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||r.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;0<=r;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",function(e){r.lastParams=e,r.loading=!0}),t.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,r="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(r,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(r+" "+i+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,r="resize.select2."+t.id,i="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+r+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-s,u=l>i.bottom+s,d={left:i.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(r="below"),u||!c||t?!c&&u&&t&&(r="below"):r="above",("above"==r||t&&"below"!==r)&&(d.top=o.top-h.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r<t.length;r++){var i=t[r];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",function(e){r._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=o.GetData(r[0],"data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(e){r._selectTriggered(e)}),t.on("unselect",function(e){r._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(c,u,d,p,h,f,g,m,v,y,s,t,_,$,b,w,A,x,D,S,E,C,O,T,q,L,I,j,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=c.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=b:null!=e.data?e.dataAdapter=$:e.dataAdapter=_,0<e.minimumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,x)),0<e.maximumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,D)),0<e.maximumSelectionLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,S)),e.tags&&(e.dataAdapter=y.Decorate(e.dataAdapter,w)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=y.Decorate(e.dataAdapter,A)),null!=e.query){var t=u(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=u(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=d,null!=e.ajax&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,T)),null!=e.placeholder&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,O)),e.selectOnClose&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,I))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=E;else{var r=y.Decorate(E,C);e.dropdownAdapter=r}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,L)),e.closeOnSelect&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,j)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var i=u(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,i)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,q)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=h:e.selectionAdapter=p,null!=e.placeholder&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,f)),e.allowClear&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,g)),e.multiple&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,m)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptContainerCssClass){var o=u(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language),e.language.push("en");for(var s=[],a=0;a<e.language.length;a++){var l=e.language[a];-1===s.indexOf(l)&&s.push(l)}return e.language=s,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:y.escapeMarkup,language:{},matcher:function e(t,n){if(""===c.trim(t.term))return n;if(n.children&&0<n.children.length){for(var r=c.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&r.children.splice(i,1);return 0<r.children.length?r:e(t,r)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,r=this.defaults.language,i=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(r),this._resolveLanguage(o));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(c.isEmptyObject(e))return[];if(c.isPlainObject(e))return[e];var t;t=c.isArray(e)?e:[e];for(var n=[],r=0;r<t.length;r++)if(n.push(t[r]),"string"==typeof t[r]&&0<t[r].indexOf("-")){var i=t[r].split("-")[0];n.push(i)}return n},n.prototype._processTranslations=function(e,t){for(var n=new s,r=0;r<e.length;r++){var i=new s,o=e[r];if("string"==typeof o)try{i=s.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,i=s.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=c.isPlainObject(o)?new s(o):o;n.extend(i)}return n},n.prototype.set=function(e,t){var n={};n[c.camelCase(e)]=t;var r=y._convertData(n);c.extend(!0,this.defaults,r)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(r,d,i,p){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=i.applyFromElement(this.options,t)),this.options=i.apply(this.options),t&&t.is("input")){var n=r(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=p.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function r(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,s="data-";if(o.substr(0,s.length)==s){var a=o.substring(s.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,r)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<d.inArray(u,t)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(o,c,u,r){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var i=this.render();this._placeContainer(i);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){t._syncA(),t._syncS(null,e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,r=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===o.inArray(e,r)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===r.ESC||t===r.TAB||t===r.UP&&e.altKey?(n.close(e),e.preventDefault()):t===r.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===r.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===r.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===r.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===r.ENTER||t===r.SPACE||t===r.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e,t){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var i=0;i<t.addedNodes.length;i++){t.addedNodes[i].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length?n=!0:o.isArray(t)&&o.each(t,function(e,t){if(r._isChangeMutation(e,t))return!(n=!0)});else n=!0;return n}},d.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),r=this;n&&this.dataAdapter.current(function(e){r.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var i=r[e],o={prevented:!1,name:e,args:t};if(n.call(this,i,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];o.isArray(t)&&(t=o.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=o('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,s){if(null==i.fn.select2){var a=["open","close","destroy"];i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,r)}),-1<i.inArray(t,a)?this:n}}return null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return u.fn.select2.amd=e,t});
 
 
gadwp.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://exactmetrics.com
5
  * Description: Displays Google Analytics Reports and Real-Time Statistics in your Dashboard. Automatically inserts the tracking code in every page of your website.
6
  * Author: ExactMetrics
7
- * Version: 6.3.3
8
  * Requires at least: 3.8.0
9
  * Requires PHP: 5.2
10
  * Author URI: https://exactmetrics.com
@@ -44,7 +44,7 @@ final class ExactMetrics_Lite {
44
  * @access public
45
  * @var string $version Plugin version.
46
  */
47
- public $version = '6.3.3';
48
 
49
  /**
50
  * Plugin file.
@@ -200,7 +200,7 @@ final class ExactMetrics_Lite {
200
 
201
  // This does the version to version background upgrade routines and initial install
202
  $em_version = get_option( 'exactmetrics_current_version', '5.5.3' );
203
- if ( version_compare( $em_version, '6.3.0', '<' ) ) {
204
  exactmetrics_lite_call_install_and_upgrade();
205
  }
206
 
@@ -530,6 +530,7 @@ final class ExactMetrics_Lite {
530
  // Notifications class.
531
  require_once EXACTMETRICS_PLUGIN_DIR . 'includes/admin/notifications.php';
532
  require_once EXACTMETRICS_PLUGIN_DIR . 'includes/admin/notification-event.php';
 
533
  // Add notification manual events for lite version.
534
  require_once EXACTMETRICS_PLUGIN_DIR . 'includes/admin/notifications/notification-events.php';
535
  }
4
  * Plugin URI: https://exactmetrics.com
5
  * Description: Displays Google Analytics Reports and Real-Time Statistics in your Dashboard. Automatically inserts the tracking code in every page of your website.
6
  * Author: ExactMetrics
7
+ * Version: 6.4.0
8
  * Requires at least: 3.8.0
9
  * Requires PHP: 5.2
10
  * Author URI: https://exactmetrics.com
44
  * @access public
45
  * @var string $version Plugin version.
46
  */
47
+ public $version = '6.4.0';
48
 
49
  /**
50
  * Plugin file.
200
 
201
  // This does the version to version background upgrade routines and initial install
202
  $em_version = get_option( 'exactmetrics_current_version', '5.5.3' );
203
+ if ( version_compare( $em_version, '6.4.0', '<' ) ) {
204
  exactmetrics_lite_call_install_and_upgrade();
205
  }
206
 
530
  // Notifications class.
531
  require_once EXACTMETRICS_PLUGIN_DIR . 'includes/admin/notifications.php';
532
  require_once EXACTMETRICS_PLUGIN_DIR . 'includes/admin/notification-event.php';
533
+ require_once EXACTMETRICS_PLUGIN_DIR . 'includes/admin/notification-event-runner.php';
534
  // Add notification manual events for lite version.
535
  require_once EXACTMETRICS_PLUGIN_DIR . 'includes/admin/notifications/notification-events.php';
536
  }
includes/admin/common.php CHANGED
@@ -805,267 +805,6 @@ function exactmetrics_remove_unnecessary_footer_hooks() {
805
 
806
  add_action( 'admin_head', 'exactmetrics_remove_unnecessary_footer_hooks', 15 );
807
 
808
- /**
809
- * Display dismissable admin pointer for year in review 2019 report
810
- *
811
- */
812
- function exactmetrics_yearinreview_admin_menu_tooltip() {
813
-
814
- $dismiss_tooltip = get_option( 'exactmetrics_yearinreview_dismiss_admin_tooltip', false );
815
- $activated = get_option( 'exactmetrics_over_time', array() );
816
- $ua_code = exactmetrics_get_ua();
817
- $dashboards_disabled = exactmetrics_get_option( 'dashboards_disabled', false );
818
-
819
- if ( $dashboards_disabled ) {
820
- return;
821
- }
822
-
823
- if ( ! current_user_can( 'exactmetrics_view_dashboard' ) ) {
824
- return;
825
- }
826
-
827
- if ( exactmetrics_is_reports_page() || exactmetrics_is_settings_page() ) {
828
- // Don't show on MI pages.
829
- return;
830
- }
831
-
832
- // equivalent to: 01/01/2020 @ 12:00am (UTC)
833
- $new_year = '1577836800';
834
-
835
- // equivalent to: 01/02/2020 @ 12:00am (UTC)
836
- $start_time = '1577923200';
837
-
838
- // equivalent to: 01/13/2020 @ 12:00am (UTC)
839
- $end_time = '1578873600';
840
-
841
- if ( $dismiss_tooltip ) {
842
- return;
843
- }
844
-
845
- // don't show before January 02, 2020
846
- if ( $start_time > time() ) {
847
- return;
848
- }
849
-
850
- // don't show after January 13, 2020
851
- if ( $end_time < time() ) {
852
- return;
853
- }
854
-
855
- if ( empty( $activated['connected_date'] ) || ( $activated['connected_date'] > $new_year ) || empty( $ua_code ) ) {
856
- return;
857
- }
858
-
859
- // remove lite upsell
860
- remove_action( 'adminmenu', 'exactmetrics_get_admin_menu_tooltip' );
861
-
862
- $url = admin_url( 'admin.php?page=exactmetrics_reports#/year-in-review' );
863
- ?>
864
- <div id="exactmetrics-yearinreview-admin-menu-tooltip" class="exactmetrics-yearinreview-admin-menu-tooltip-hide">
865
- <div class="exactmetrics-yearinreview-admin-menu-tooltip-header">
866
- <span class="exactmetrics-yearinreview-admin-menu-tooltip-icon">
867
- <span class="dashicons dashicons-megaphone"></span>
868
- </span>
869
- <?php esc_html_e( 'Your 2019 Analytics Report', 'google-analytics-dashboard-for-wp' ); ?>
870
- <a href="#" class="exactmetrics-yearinreview-admin-menu-tooltip-close">
871
- <span class="dashicons dashicons-dismiss"></span>
872
- </a>
873
- </div>
874
- <div class="exactmetrics-yearinreview-admin-menu-tooltip-content">
875
- <strong><?php esc_html_e( 'See how your website performed this year and find tips along the way to help grow even more in 2020!', 'google-analytics-dashboard-for-wp' ); ?></strong>
876
- <p>
877
- <a href="<?php echo esc_url( $url ); ?>" class="button button-primary exactmetrics-yearinreview-admin-menu-tooltip-btn-link">
878
- <?php esc_html_e( 'View 2019 Year in Review report!', 'google-analytics-dashboard-for-wp' ); ?>
879
- </a>
880
- </p>
881
- </div>
882
- </div>
883
- <style type="text/css">
884
- #exactmetrics-yearinreview-admin-menu-tooltip {
885
- position: absolute;
886
- left: 100%;
887
- top: 100%;
888
- background: #fff;
889
- margin-left: 16px;
890
- width: 350px;
891
- box-shadow: 0px 4px 7px 0px #ccc;
892
- }
893
-
894
- #exactmetrics-yearinreview-admin-menu-tooltip:before {
895
- content: '';
896
- width: 0;
897
- height: 0;
898
- border-style: solid;
899
- border-width: 12px 12px 12px 0;
900
- border-color: transparent #fff transparent transparent;
901
- position: absolute;
902
- right: 100%;
903
- top: 130px;
904
- z-index: 10;
905
- }
906
-
907
- #exactmetrics-yearinreview-admin-menu-tooltip:after {
908
- content: '';
909
- width: 0;
910
- height: 0;
911
- border-style: solid;
912
- border-width: 13px 13px 13px 0;
913
- border-color: transparent #ccc transparent transparent;
914
- position: absolute;
915
- right: 100%;
916
- margin-left: -1px;
917
- top: 129px;
918
- z-index: 5;
919
- }
920
-
921
- #exactmetrics-yearinreview-admin-menu-tooltip.exactmetrics-yearinreview-tooltip-arrow-top:before {
922
- top: 254px;
923
- }
924
-
925
- #exactmetrics-yearinreview-admin-menu-tooltip.exactmetrics-yearinreview-tooltip-arrow-top:after {
926
- top: 253px;
927
- }
928
-
929
- .exactmetrics-yearinreview-admin-menu-tooltip-header {
930
- background: #03a0d2;
931
- padding: 5px 12px;
932
- font-size: 14px;
933
- font-weight: 700;
934
- font-family: Arial, Helvetica, "Trebuchet MS", sans-serif;
935
- color: #fff;
936
- line-height: 1.6;
937
- }
938
-
939
- .exactmetrics-yearinreview-admin-menu-tooltip-icon {
940
- background: #fff;
941
- border-radius: 50%;
942
- width: 28px;
943
- height: 25px;
944
- display: inline-block;
945
- color: #03a0d2;
946
- text-align: center;
947
- padding: 3px 0 0;
948
- margin-right: 6px;
949
- }
950
-
951
- .exactmetrics-yearinreview-admin-menu-tooltip-hide {
952
- display: none;
953
- }
954
-
955
- .exactmetrics-yearinreview-admin-menu-tooltip-content {
956
- padding: 20px 15px 7px;
957
- }
958
-
959
- .exactmetrics-yearinreview-admin-menu-tooltip-content strong {
960
- font-size: 14px;
961
- }
962
-
963
- .exactmetrics-yearinreview-admin-menu-tooltip-content p strong {
964
- font-size: 13px;
965
- }
966
-
967
- .exactmetrics-yearinreview-admin-menu-tooltip-close {
968
- color: #fff;
969
- text-decoration: none;
970
- position: absolute;
971
- right: 10px;
972
- top: 12px;
973
- display: block;
974
- }
975
-
976
- .exactmetrics-yearinreview-admin-menu-tooltip-close:hover {
977
- color: #fff;
978
- text-decoration: none;
979
- }
980
-
981
- .exactmetrics-yearinreview-admin-menu-tooltip-close .dashicons {
982
- font-size: 14px;
983
- }
984
-
985
- @media ( max-width: 782px ) {
986
- #exactmetrics-yearinreview-admin-menu-tooltip {
987
- display: none;
988
- }
989
- }
990
- </style>
991
- <script type="text/javascript">
992
- if ( 'undefined' !== typeof jQuery ) {
993
- jQuery( function ( $ ) {
994
- var $tooltip = $( document.getElementById( 'exactmetrics-yearinreview-admin-menu-tooltip' ) );
995
- var $menuwrapper = $( document.getElementById( 'adminmenuwrap' ) );
996
- var $menuitem = $( document.getElementById( 'toplevel_page_exactmetrics_reports' ) );
997
- if ( 0 === $menuitem.length ) {
998
- $menuitem = $( document.getElementById( 'toplevel_page_exactmetrics_network' ) );
999
- }
1000
-
1001
- if ( $menuitem.length ) {
1002
- $menuwrapper.append( $tooltip );
1003
- $tooltip.removeClass( 'exactmetrics-yearinreview-admin-menu-tooltip-hide' );
1004
- }
1005
-
1006
- function alignTooltip() {
1007
- var sticky = $( 'body' ).hasClass( 'sticky-menu' );
1008
-
1009
- var menuitem_pos = $menuitem.position();
1010
- var tooltip_top = menuitem_pos.top - 124;
1011
- if ( sticky && $( window ).height() > $menuwrapper.height() + 150 ) {
1012
- $tooltip.removeClass( 'exactmetrics-yearinreview-tooltip-arrow-top' );
1013
- } else {
1014
- tooltip_top = menuitem_pos.top - 250;
1015
- $tooltip.addClass( 'exactmetrics-yearinreview-tooltip-arrow-top' );
1016
- }
1017
- // Don't let the tooltip go outside of the screen and make the close button not visible.
1018
- if ( tooltip_top < 40 ) {
1019
- tooltip_top = 40;
1020
- }
1021
- $tooltip.css( {
1022
- top: tooltip_top + 'px'
1023
- } );
1024
- }
1025
-
1026
- var $document = $( document );
1027
- var timeout = setTimeout( alignTooltip, 10 );
1028
- $document.on( 'wp-pin-menu wp-window-resized.pin-menu postboxes-columnchange.pin-menu postbox-toggled.pin-menu wp-collapse-menu.pin-menu wp-scroll-start.pin-menu', function () {
1029
- if ( timeout ) {
1030
- clearTimeout( timeout );
1031
- }
1032
- timeout = setTimeout( alignTooltip, 10 );
1033
- } );
1034
-
1035
- $( '.exactmetrics-yearinreview-admin-menu-tooltip-btn-link' ).on( 'click', function ( e ) {
1036
- hideYearInReviewTooltip();
1037
- } );
1038
-
1039
- $( '.exactmetrics-yearinreview-admin-menu-tooltip-close' ).on( 'click', function ( e ) {
1040
- e.preventDefault();
1041
- hideYearInReviewTooltip();
1042
- } );
1043
-
1044
- function hideYearInReviewTooltip() {
1045
- $tooltip.addClass( 'exactmetrics-yearinreview-admin-menu-tooltip-hide' );
1046
- $.post( ajaxurl, {
1047
- action: 'exactmetrics_yearinreview_hide_admin_tooltip',
1048
- nonce: '<?php echo esc_js( wp_create_nonce( 'mi-admin-nonce' ) ); ?>',
1049
- } );
1050
- }
1051
- } );
1052
- }
1053
- </script>
1054
- <?php
1055
- }
1056
-
1057
- add_action( 'adminmenu', 'exactmetrics_yearinreview_admin_menu_tooltip', 5 );
1058
-
1059
- /**
1060
- * Store the time when the year in review tooltip was hidden so it won't show again
1061
- */
1062
- function exactmetrics_mark_yearinreview_tooltip_hidden() {
1063
- check_ajax_referer( 'mi-admin-nonce', 'nonce' );
1064
- update_option( 'exactmetrics_yearinreview_dismiss_admin_tooltip', true );
1065
- wp_send_json_success();
1066
- }
1067
-
1068
- add_action( 'wp_ajax_exactmetrics_yearinreview_hide_admin_tooltip', 'exactmetrics_mark_yearinreview_tooltip_hidden' );
1069
 
1070
  /**
1071
  * Prevent plugins/themes from removing the version number from scripts loaded by our plugin.
@@ -1110,3 +849,105 @@ function exactmetrics_get_php_wp_version_warning_data() {
1110
  'wp_update_link' => exactmetrics_get_url( 'settings-notice', 'settings-page', 'https://www.exactmetrics.com/docs/update-wordpress/' ),
1111
  );
1112
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
805
 
806
  add_action( 'admin_head', 'exactmetrics_remove_unnecessary_footer_hooks', 15 );
807
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
808
 
809
  /**
810
  * Prevent plugins/themes from removing the version number from scripts loaded by our plugin.
849
  'wp_update_link' => exactmetrics_get_url( 'settings-notice', 'settings-page', 'https://www.exactmetrics.com/docs/update-wordpress/' ),
850
  );
851
  }
852
+
853
+ /**
854
+ * Check WP and PHP version and add contextual notifications for upgrades.
855
+ */
856
+ function exactmetrics_maybe_add_wp_php_version_notification() {
857
+ global $wp_version;
858
+
859
+ $icon = '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="16" fill="#FAD1D1"/><path d="M17.3634 19.0714C17.792 19.4821 18.0063 19.9821 18.0063 20.5714C18.0063 21.1607 17.792 21.6607 17.3634 22.0714C16.9527 22.5 16.4527 22.7143 15.8634 22.7143C15.2742 22.7143 14.7652 22.5 14.3367 22.0714C13.9259 21.6607 13.7206 21.1607 13.7206 20.5714C13.7206 19.9821 13.9259 19.4821 14.3367 19.0714C14.7652 18.6429 15.2742 18.4286 15.8634 18.4286C16.4527 18.4286 16.9527 18.6429 17.3634 19.0714ZM13.9617 9.66964C13.9617 9.49107 14.0242 9.33929 14.1492 9.21429C14.2742 9.07143 14.4259 9 14.6045 9H17.1224C17.3009 9 17.4527 9.07143 17.5777 9.21429C17.7027 9.33929 17.7652 9.49107 17.7652 9.66964L17.3902 16.9554C17.3902 17.1339 17.3277 17.2857 17.2027 17.4107C17.0777 17.5179 16.9259 17.5714 16.7474 17.5714H14.9795C14.8009 17.5714 14.6492 17.5179 14.5242 17.4107C14.3992 17.2857 14.3367 17.1339 14.3367 16.9554L13.9617 9.66964Z" fill="#EB5757"/></svg>';
860
+ $needs_php_warning = version_compare( phpversion(), '5.6', '<' );
861
+ $needs_wp_warning = version_compare( $wp_version, '4.9', '<' );
862
+
863
+ if ( $needs_php_warning ) {
864
+ $notification['id'] = 'upgrade_php_56_notification';
865
+ $notification['title'] = __( 'ACTION REQUIRED: Your PHP version is putting your site at risk!', 'google-analytics-dashboard-for-wp' );
866
+ if ( $needs_wp_warning ) {
867
+ $notification['title'] = __( 'ACTION REQUIRED: Speed your website up 400% with a single email!', 'google-analytics-dashboard-for-wp' );
868
+ }
869
+
870
+ $php_url = exactmetrics_get_url( 'notifications', 'upgrade-php', 'https://www.exactmetrics.com/docs/update-php' );
871
+
872
+ $notification['type'] = array( 'basic', 'lite', 'master', 'plus', 'pro' );
873
+ // Translators: Placeholder is for the current PHP version.
874
+ $notification['content'] = sprintf( esc_html__( 'In the next major release of ExactMetrics we are planning to remove support for the version of PHP you are using (%s). This insecure version is no longer supported by WordPress itself, so you are already missing out on the latest features of WordPress along with critical updates for security and performance (modern PHP versions make websites much faster).', 'google-analytics-dashboard-for-wp' ), phpversion() ) . "\n\n";
875
+
876
+ // Translators: Placeholders add a link to an article.
877
+ $notification['content'] .= sprintf( esc_html__( 'To ensure ExactMetrics and other plugins on your site continue to function properly, and avoid putting your site at risk, please take a few minutes to ask your website hosting provider to upgrade the version of PHP to a modern PHP version (7.2 or newer). We provide helpful templates for how to ask them %1$shere%2$s.', 'google-analytics-dashboard-for-wp' ), '<a target="_blank" href="' . $php_url . '">', '</a>' ) . "\n\n";
878
+ $notification['content'] .= esc_html__( 'Upgrading your PHP version will make sure you are able to continue using WordPress without issues in the future, keep your site secure, and will also make your website up to 400% faster!', 'google-analytics-dashboard-for-wp' );
879
+
880
+ $notification['icon'] = $icon;
881
+ $notification['btns'] = array(
882
+ 'learn_more' => array(
883
+ 'url' => $php_url,
884
+ 'text' => esc_html__( 'Learn More', 'google-analytics-dashboard-for-wp' ),
885
+ ),
886
+ );
887
+
888
+ // Add the notification.
889
+ ExactMetrics()->notifications->add( $notification );
890
+ }
891
+
892
+ if ( $needs_wp_warning ) {
893
+
894
+ $isitwp_url = 'https://www.isitwp.com/upgrading-wordpress-is-easier-than-you-think/?utm_source=exactmetrics&utm_medium=notifications&utm_campaign=upgradewp';
895
+ $wpbeginner_url = 'https://www.wpbeginner.com/beginners-guide/why-you-should-always-use-the-latest-version-of-wordpress/utm_source=exactmetrics&utm_medium=notifications&utm_campaign=upgradewp';
896
+
897
+ $notification['id'] = 'upgrade_wp_49_notification';
898
+ $notification['title'] = __( 'ACTION REQUIRED: Your WordPress version is putting your site at risk!', 'google-analytics-dashboard-for-wp' );
899
+ $notification['type'] = array( 'basic', 'lite', 'master', 'plus', 'pro' );
900
+ // Translators: Placeholder is for the current WordPress version.
901
+ $notification['content'] = sprintf( esc_html__( 'In the next major release of ExactMetrics we are planning to remove support for the version of WordPress you are using (version %s). This version is several years out of date, and most plugins do not support this version anymore, so you could be missing out on critical updates for performance and security already!', 'google-analytics-dashboard-for-wp' ), $wp_version ) . "\n\n";
902
+
903
+ $notification['content'] .= esc_html__( 'The good news: updating WordPress has never been easier and only takes a few moments.', 'google-analytics-dashboard-for-wp' );
904
+ // Translators: Placeholders add links to articles.
905
+ $notification['content'] .= sprintf( esc_html__( 'To update, we recommend following this %1$sstep by step guide for updating WordPress%2$s from IsItWP and afterwards check out %3$sWhy You Should Always Use the Latest Version of WordPress%4$s on WPBeginner.', 'google-analytics-dashboard-for-wp' ), '<a target="_blank" href="' . $isitwp_url . '">', '</a>', '<a target="_blank" href="' . $wpbeginner_url . '">', '</a>' ) . "\n\n";
906
+
907
+ $notification['icon'] = $icon;
908
+ $notification['btns'] = array(
909
+ 'learn_more' => array(
910
+ 'url' => $isitwp_url,
911
+ 'text' => esc_html__( 'Learn More', 'google-analytics-dashboard-for-wp' ),
912
+ ),
913
+ );
914
+
915
+ // Add the notification.
916
+ ExactMetrics()->notifications->add( $notification );
917
+ }
918
+
919
+ }
920
+
921
+ add_action( 'admin_init', 'exactmetrics_maybe_add_wp_php_version_notification' );
922
+
923
+ /**
924
+ * Add notification for Year In Review report for year 2021.
925
+ *
926
+ * @since 7.13.2
927
+ *
928
+ * @return void
929
+ */
930
+ function exactmetrics_year_in_review_notification() {
931
+
932
+ // Check if dates are between Jan 1st 2021 & 13th Jan 2021.
933
+ if ( exactmetrics_date_is_between( '2021-01-01', '2021-01-14' ) ) {
934
+
935
+ $notification['id'] = 'exactmetrics_notification_year_in_review';
936
+ $notification['type'] = array( 'basic', 'lite', 'master', 'plus', 'pro' );
937
+ $notification['start'] = '2021-01-01';
938
+ $notification['end'] = '2021-01-14';
939
+ $notification['title'] = esc_html__( 'View 2020 Year in Review report!', 'google-analytics-dashboard-for-wp' );
940
+ $notification['content'] = esc_html__( 'See how your website performed this year and find tips along the way to help grow even more in 2021!', 'google-analytics-dashboard-for-wp' );
941
+ $notification['btns'] = array(
942
+ 'learn_more' => array(
943
+ 'url' => esc_url( admin_url( 'admin.php?page=exactmetrics_reports#/year-in-review' ) ),
944
+ 'text' => esc_html__( 'Learn More', 'google-analytics-dashboard-for-wp' ),
945
+ ),
946
+ );
947
+
948
+ // Add the notification.
949
+ ExactMetrics()->notifications->add( $notification );
950
+ }
951
+ }
952
+
953
+ add_action( 'admin_init', 'exactmetrics_year_in_review_notification' );
includes/admin/notification-event-runner.php ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Custom runner system for recurring notifications.
4
+ *
5
+ * @since 7.14
6
+ * @author Mircea Sandu
7
+ * @package ExactMetrics
8
+ */
9
+
10
+ /**
11
+ * Class ExactMetrics_Notification_Event_Runner
12
+ */
13
+ class ExactMetrics_Notification_Event_Runner {
14
+
15
+ /**
16
+ * The instance of the current class.
17
+ *
18
+ * @var ExactMetrics_Notification_Event_Runner
19
+ */
20
+ private static $instance;
21
+
22
+ /**
23
+ * The static notifications registered.
24
+ *
25
+ * @var array
26
+ */
27
+ private static $notifications = array();
28
+
29
+ /**
30
+ * The key used to store in the options table the last run times for notifications.
31
+ *
32
+ * @var string
33
+ */
34
+ private $last_run_key = 'exactmetrics_notifications_run';
35
+
36
+ /**
37
+ * This will be populated on demand with the last run timestamps for all the notifications.
38
+ *
39
+ * @var array|bool
40
+ */
41
+ private $last_run;
42
+
43
+ /**
44
+ * Only update the option if something changed.
45
+ *
46
+ * @var bool
47
+ */
48
+ private $changed = false;
49
+
50
+ /**
51
+ * ExactMetrics_Notification_Event_Runner constructor.
52
+ */
53
+ private function __construct() {
54
+ add_action( 'wp_ajax_exactmetrics_vue_get_notifications', array( $this, 'maybe_add_notifications' ), 9 );
55
+ }
56
+
57
+ /**
58
+ * Get the singleton instance.
59
+ *
60
+ * @return ExactMetrics_Notification_Event_Runner
61
+ */
62
+ public static function get_instance() {
63
+ if ( ! isset( self::$instance ) ) {
64
+ self::$instance = new self();
65
+ }
66
+
67
+ return self::$instance;
68
+ }
69
+
70
+ /**
71
+ * Get the stored option for the last run times.
72
+ *
73
+ * @return false|mixed|void
74
+ */
75
+ public function get_notifications_last_run() {
76
+ if ( ! isset( $this->last_run ) ) {
77
+ $this->last_run = get_option( $this->last_run_key );
78
+ }
79
+
80
+ return $this->last_run;
81
+ }
82
+
83
+ /**
84
+ * Update the last run time with a default of time.
85
+ *
86
+ * @param string $notification_id The notification id to update the last run time for.
87
+ * @param string|int $time The timestamp to store the last run time.
88
+ */
89
+ public function update_last_run( $notification_id, $time = '' ) {
90
+ if ( empty( $time ) ) {
91
+ $time = time();
92
+ }
93
+
94
+ $this->last_run[ $notification_id ] = $time;
95
+ $this->changed = true;
96
+ }
97
+
98
+ /**
99
+ * Update the option stored in the db with the last run times.
100
+ */
101
+ public function save_last_runs() {
102
+ if ( $this->changed ) {
103
+ update_option( $this->last_run_key, $this->last_run );
104
+ }
105
+ }
106
+
107
+ /**
108
+ * Loop through notifications and check if they should be added based on the time passed since they were last added.
109
+ */
110
+ public function maybe_add_notifications() {
111
+
112
+ if ( ! current_user_can( 'exactmetrics_view_dashboard' ) ) {
113
+ // No need to try adding the notification if the user can't see it.
114
+ return;
115
+ }
116
+
117
+ $notifications = $this->get_registered_notifications();
118
+ $last_runs = $this->get_notifications_last_run();
119
+
120
+ // Loop through registered notifications.
121
+ foreach ( $notifications as $notification ) {
122
+ /**¬
123
+ * The notification instance.
124
+ *
125
+ * @var ExactMetrics_Notification_Event $notification
126
+ */
127
+ if ( empty( $last_runs[ $notification->notification_id ] ) ) {
128
+ // If the notification never ran, save current time to show it after the interval.
129
+ $this->update_last_run( $notification->notification_id );
130
+ } else {
131
+ // Has run before so let's check if enough days passed since the last run.
132
+ $time_since = $last_runs[ $notification->notification_id ] + $notification->notification_interval * DAY_IN_SECONDS;
133
+ $time_now = time();
134
+ if ( $time_since < $time_now ) {
135
+ // Interval passed since it ran so let's add this one.
136
+ $notification->add_notification();
137
+ // Update the last run date as right now.
138
+ $this->update_last_run( $notification->notification_id );
139
+ // Let's not add multiple notifications at the same time.
140
+ break;
141
+ }
142
+ }
143
+ }
144
+
145
+ // Update the option with the new times.
146
+ $this->save_last_runs();
147
+
148
+ }
149
+
150
+ /**
151
+ * Get the static notifications array.
152
+ *
153
+ * @return array
154
+ */
155
+ public function get_registered_notifications() {
156
+ return self::$notifications;
157
+ }
158
+
159
+ /**
160
+ * Register the notification for running it later.
161
+ *
162
+ * @param ExactMetrics_Notification_Event $notification The instance of the notification.
163
+ */
164
+ public function register_notification( $notification ) {
165
+
166
+ $notification_id = isset( $notification->notification_id ) ? $notification->notification_id : false;
167
+ if ( ! empty( $notification_id ) && ! isset( self::$notifications[ $notification_id ] ) ) {
168
+ self::$notifications[ $notification_id ] = $notification;
169
+ }
170
+
171
+ }
172
+
173
+ }
174
+
175
+ /**
176
+ * Get the single instance of the event runner class.
177
+ *
178
+ * @return ExactMetrics_Notification_Event_Runner
179
+ */
180
+ function exactmetrics_notification_event_runner() {
181
+ return ExactMetrics_Notification_Event_Runner::get_instance();
182
+ }
includes/admin/notification-event.php CHANGED
@@ -18,35 +18,6 @@ class ExactMetrics_Notification_Event {
18
  */
19
  public $notification_id;
20
 
21
- /**
22
- * Notification hook name for cron schedule
23
- *
24
- * @var string
25
- *
26
- * @since 7.12.3
27
- */
28
- public $notification_cron_hook_name;
29
-
30
- /**
31
- * Unique recurrence name to set up the notification interval
32
- * Only accept numeric value
33
- *
34
- * @var string
35
- *
36
- * @since 7.12.3
37
- */
38
- public $notification_recurrence_name;
39
-
40
- /**
41
- * When the notification will run for the first time
42
- * Value should be readable time, (e.g: +30 day) to run the notification after 30 days from now
43
- *
44
- * @var string
45
- *
46
- * @since 7.12.3
47
- */
48
- public $notification_first_run_time;
49
-
50
  /**
51
  * When the notification will repeat (e.g: 7) here `7` to repeat the notification after each 7 days
52
  * Only accept numeric value
@@ -117,82 +88,39 @@ class ExactMetrics_Notification_Event {
117
  * @since 7.12.3
118
  */
119
  public function __construct() {
120
- $this->notification_active_from = date( "m/d/Y g:i a", strtotime( "now" ) );
121
- $this->report_end_to = "-1 day"; // yesterday
 
122
 
123
  if ( ! empty( $this->notification_id ) && ! empty( $this->notification_interval ) ) {
124
 
125
- $this->notification_cron_hook_name = $this->notification_id . '_cron';
126
- $this->notification_recurrence_name = $this->notification_id . '_' . $this->notification_interval . '_days';
127
- $this->notification_id = $this->notification_id . '_' . time();
128
- $this->notification_active_for = date( "m/d/Y", strtotime( "+" . ( $this->notification_interval - 2 ) . " day" ) );
129
- $this->report_start_from = "-". $this->notification_interval ." day";
130
 
131
- if( ! isset( $this->notification_first_run_time ) || empty( $this->notification_first_run_time ) ) {
132
- $this->notification_first_run_time = "+". $this->notification_interval ." day";
133
- }
134
 
135
- if( ! isset( $this->notification_icon ) || empty( $this->notification_icon ) ) {
136
- $this->notification_icon = '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
137
  <circle cx="16" cy="16" r="16" fill="#D3F8EA"/>
138
  <path d="M21.8634 18.6429C21.8634 18.8571 21.7831 19.0268 21.6224 19.1518C21.5688 19.3482 21.542 19.6786 21.542 20.1429C21.542 20.6071 21.5688 20.9375 21.6224 21.1339C21.7831 21.2768 21.8634 21.4464 21.8634 21.6429V22.0714C21.8634 22.25 21.8009 22.4018 21.6759 22.5268C21.5509 22.6518 21.3992 22.7143 21.2206 22.7143H12.4349C11.7206 22.7143 11.1134 22.4643 10.6134 21.9643C10.1134 21.4643 9.86345 20.8571 9.86345 20.1429V11.5714C9.86345 10.8571 10.1134 10.25 10.6134 9.75C11.1134 9.25 11.7206 9 12.4349 9H21.2206C21.3992 9 21.5509 9.0625 21.6759 9.1875C21.8009 9.3125 21.8634 9.46429 21.8634 9.64286V18.6429ZM13.292 12.5893V13.125C13.292 13.2321 13.3456 13.2857 13.4527 13.2857H19.1313C19.2384 13.2857 19.292 13.2321 19.292 13.125V12.5893C19.292 12.4821 19.2384 12.4286 19.1313 12.4286H13.4527C13.3456 12.4286 13.292 12.4821 13.292 12.5893ZM13.292 14.3036V14.8393C13.292 14.9464 13.3456 15 13.4527 15H19.1313C19.2384 15 19.292 14.9464 19.292 14.8393V14.3036C19.292 14.1964 19.2384 14.1429 19.1313 14.1429H13.4527C13.3456 14.1429 13.292 14.1964 13.292 14.3036ZM20.0688 21C20.0152 20.4286 20.0152 19.8571 20.0688 19.2857H12.4349C12.2027 19.2857 11.9974 19.375 11.8188 19.5536C11.6581 19.7143 11.5777 19.9107 11.5777 20.1429C11.5777 20.375 11.6581 20.5804 11.8188 20.7589C11.9974 20.9196 12.2027 21 12.4349 21H20.0688Z" fill="#1EC185"/>
139
  </svg>';
140
  }
141
 
142
- $this->hooks();
143
-
144
- if ( ! wp_next_scheduled( $this->notification_cron_hook_name ) ) {
145
- wp_schedule_event( $this->get_first_cron_date(), $this->notification_recurrence_name, $this->notification_cron_hook_name );
146
- }
147
-
148
  }
149
  }
150
 
151
  /**
152
- * Register hooks.
153
- *
154
- * @since 7.12.3
155
- */
156
- public function hooks() {
157
-
158
- add_filter( $this->notification_id, array( $this, 'prepare_notification_data' ) );
159
-
160
- add_filter( 'cron_schedules', array( $this, 'add_cron_schedule' ) );
161
-
162
- add_action( $this->notification_cron_hook_name, array( $this, 'add_notification' ) );
163
-
164
- }
165
-
166
- /**
167
- * Cron to add notification
168
- *
169
- * @param array $schedules WP cron schedules.
170
- *
171
- * @return array $schedules WP cron schedules.
172
- *
173
- * @since 7.12.3
174
- */
175
- public function add_cron_schedule( $schedules ) {
176
- $schedules[$this->notification_recurrence_name] = array(
177
- 'interval' => DAY_IN_SECONDS * $this->notification_interval,
178
- // Translators: notification cron interval
179
- 'display' => sprintf( __( '%s Days', 'google-analytics-dashboard-for-wp' ), $this->notification_interval ),
180
- );
181
-
182
- return $schedules;
183
- }
184
-
185
- /**
186
- * get date
187
  *
188
- * @param string $readable_time readable time to convert to date
189
  *
190
  * @return string date, format: Y-m-d
191
  *
192
  * @since 7.12.3
193
  */
194
  public function get_formatted_date( $readable_time ) {
195
- return date( "Y-m-d", strtotime( $readable_time ) );
196
  }
197
 
198
  /**
@@ -213,30 +141,6 @@ class ExactMetrics_Notification_Event {
213
  return wp_specialchars_decode( exactmetrics_get_url( 'exactmetrics-notifications-sidebar', 'notifications', $url ) );
214
  }
215
 
216
- /**
217
- * Get next cron occurrence date.
218
- *
219
- * (e:g +30 day) to run after 30 days from now
220
- *
221
- * @return int $date to run the first cron
222
- *
223
- * @since 7.12.3
224
- */
225
- public function get_first_cron_date() {
226
- $schedule = array();
227
- $schedule['day'] = rand( 0, 1 );
228
- $schedule['hour'] = rand( 0, 23 );
229
- $schedule['minute'] = rand( 0, 59 );
230
- $schedule['second'] = rand( 0, 59 );
231
- $schedule['offset'] = ( $schedule['day'] * DAY_IN_SECONDS ) +
232
- ( $schedule['hour'] * HOUR_IN_SECONDS ) +
233
- ( $schedule['minute'] * MINUTE_IN_SECONDS ) +
234
- $schedule['second'];
235
- $date = strtotime( $this->notification_first_run_time ) + $schedule['offset'];
236
-
237
- return $date;
238
- }
239
-
240
  /**
241
  * Get the URL for the page where users can see/read notifications.
242
  *
@@ -247,17 +151,22 @@ class ExactMetrics_Notification_Event {
247
  }
248
 
249
  /**
250
- * Build Notification
251
- *
252
  * @param array $data
253
  *
254
- * @return array $notification notification is ready to add
 
 
 
 
 
 
 
255
  *
256
  * @since 7.12.3
257
  */
258
  public function add_notification() {
259
  $notification = array();
260
- $notification['id'] = $this->notification_id;
261
  $notification['icon'] = $this->notification_icon;
262
  $notification['title'] = '';
263
  $notification['content'] = '';
@@ -265,8 +174,7 @@ class ExactMetrics_Notification_Event {
265
  $notification['btns'] = array();
266
  $notification['start'] = $this->notification_active_from;
267
  $notification['end'] = $this->notification_active_for;
268
-
269
- $notification_data = apply_filters( $this->notification_id, $notification );
270
 
271
  if ( is_array( $notification_data ) && ! empty( $notification_data ) ) {
272
  ExactMetrics()->notifications->add( $notification_data );
@@ -276,24 +184,23 @@ class ExactMetrics_Notification_Event {
276
  /**
277
  * Get report
278
  *
279
- * @param string $report_name report name, default overview report
280
- * @param string $report_start_from report start date, default -30 days/last 30 days
281
- * @param string $report_end_to report end date, default -1 day/yesterday
282
  *
283
  * @return array $data Overview data
284
  *
285
  * @since 7.12.3
286
  */
287
- public function get_report( $report_name="overview", $report_start_from="-30 day", $report_end_to="-1 day" ) {
288
- // get overview report data
289
- $data = array();
290
  $report = ExactMetrics()->reporting->get_report( $report_name );
291
  if ( $report ) {
292
  // Mark the report request as coming from Notifications.
293
  $report->set_report_source( 'notifications' );
294
  }
295
  $isnetwork = ! empty( $_REQUEST['isnetwork'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['isnetwork'] ) ) : '';
296
- $args = array(
297
  'start' => $this->get_formatted_date( $report_start_from ),
298
  'end' => $this->get_formatted_date( $report_end_to ),
299
  );
@@ -308,7 +215,7 @@ class ExactMetrics_Notification_Event {
308
  'message' => __( "You don't have permission to view ExactMetrics reports.", 'google-analytics-dashboard-for-wp' ),
309
  );
310
  } else {
311
- $data = apply_filters( 'exactmetrics_vue_reports_data', $report->get_data( $args ), $report_name, $report );
312
  }
313
 
314
  return $data;
18
  */
19
  public $notification_id;
20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  /**
22
  * When the notification will repeat (e.g: 7) here `7` to repeat the notification after each 7 days
23
  * Only accept numeric value
88
  * @since 7.12.3
89
  */
90
  public function __construct() {
91
+
92
+ $this->notification_active_from = date( 'm/d/Y g:i a', strtotime( 'now' ) );
93
+ $this->report_end_to = '-1 day'; // Yesterday.
94
 
95
  if ( ! empty( $this->notification_id ) && ! empty( $this->notification_interval ) ) {
96
 
97
+ // Register notification in our custom runner.
98
+ exactmetrics_notification_event_runner()->register_notification( $this );
 
 
 
99
 
100
+ $this->notification_active_for = date( 'm/d/Y', strtotime( '+' . ( $this->notification_interval - 2 ) . ' day' ) );
101
+ $this->report_start_from = '-' . $this->notification_interval . ' day';
 
102
 
103
+ if ( ! isset( $this->notification_icon ) || empty( $this->notification_icon ) ) {
104
+ $this->notification_icon = '<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
105
  <circle cx="16" cy="16" r="16" fill="#D3F8EA"/>
106
  <path d="M21.8634 18.6429C21.8634 18.8571 21.7831 19.0268 21.6224 19.1518C21.5688 19.3482 21.542 19.6786 21.542 20.1429C21.542 20.6071 21.5688 20.9375 21.6224 21.1339C21.7831 21.2768 21.8634 21.4464 21.8634 21.6429V22.0714C21.8634 22.25 21.8009 22.4018 21.6759 22.5268C21.5509 22.6518 21.3992 22.7143 21.2206 22.7143H12.4349C11.7206 22.7143 11.1134 22.4643 10.6134 21.9643C10.1134 21.4643 9.86345 20.8571 9.86345 20.1429V11.5714C9.86345 10.8571 10.1134 10.25 10.6134 9.75C11.1134 9.25 11.7206 9 12.4349 9H21.2206C21.3992 9 21.5509 9.0625 21.6759 9.1875C21.8009 9.3125 21.8634 9.46429 21.8634 9.64286V18.6429ZM13.292 12.5893V13.125C13.292 13.2321 13.3456 13.2857 13.4527 13.2857H19.1313C19.2384 13.2857 19.292 13.2321 19.292 13.125V12.5893C19.292 12.4821 19.2384 12.4286 19.1313 12.4286H13.4527C13.3456 12.4286 13.292 12.4821 13.292 12.5893ZM13.292 14.3036V14.8393C13.292 14.9464 13.3456 15 13.4527 15H19.1313C19.2384 15 19.292 14.9464 19.292 14.8393V14.3036C19.292 14.1964 19.2384 14.1429 19.1313 14.1429H13.4527C13.3456 14.1429 13.292 14.1964 13.292 14.3036ZM20.0688 21C20.0152 20.4286 20.0152 19.8571 20.0688 19.2857H12.4349C12.2027 19.2857 11.9974 19.375 11.8188 19.5536C11.6581 19.7143 11.5777 19.9107 11.5777 20.1429C11.5777 20.375 11.6581 20.5804 11.8188 20.7589C11.9974 20.9196 12.2027 21 12.4349 21H20.0688Z" fill="#1EC185"/>
107
  </svg>';
108
  }
109
 
 
 
 
 
 
 
110
  }
111
  }
112
 
113
  /**
114
+ * Get the formatted date.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  *
116
+ * @param string $readable_time Readable time to convert to date.
117
  *
118
  * @return string date, format: Y-m-d
119
  *
120
  * @since 7.12.3
121
  */
122
  public function get_formatted_date( $readable_time ) {
123
+ return date( 'Y-m-d', strtotime( $readable_time ) );
124
  }
125
 
126
  /**
141
  return wp_specialchars_decode( exactmetrics_get_url( 'exactmetrics-notifications-sidebar', 'notifications', $url ) );
142
  }
143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  /**
145
  * Get the URL for the page where users can see/read notifications.
146
  *
151
  }
152
 
153
  /**
 
 
154
  * @param array $data
155
  *
156
+ * @return array
157
+ */
158
+ public function prepare_notification_data( $data ) {
159
+ return $data;
160
+ }
161
+
162
+ /**
163
+ * Add Notification not the notifications instance.
164
  *
165
  * @since 7.12.3
166
  */
167
  public function add_notification() {
168
  $notification = array();
169
+ $notification['id'] = $this->notification_id . '_' . date( 'Ymd' ); // Make sure we never add the same notification on the same day.
170
  $notification['icon'] = $this->notification_icon;
171
  $notification['title'] = '';
172
  $notification['content'] = '';
174
  $notification['btns'] = array();
175
  $notification['start'] = $this->notification_active_from;
176
  $notification['end'] = $this->notification_active_for;
177
+ $notification_data = $this->prepare_notification_data( $notification );
 
178
 
179
  if ( is_array( $notification_data ) && ! empty( $notification_data ) ) {
180
  ExactMetrics()->notifications->add( $notification_data );
184
  /**
185
  * Get report
186
  *
187
+ * @param string $report_name report name, default overview report.
188
+ * @param string $report_start_from report start date, default -30 days/last 30 days.
189
+ * @param string $report_end_to report end date, default -1 day/yesterday.
190
  *
191
  * @return array $data Overview data
192
  *
193
  * @since 7.12.3
194
  */
195
+ public function get_report( $report_name = 'overview', $report_start_from = '-30 day', $report_end_to = '-1 day' ) {
196
+
 
197
  $report = ExactMetrics()->reporting->get_report( $report_name );
198
  if ( $report ) {
199
  // Mark the report request as coming from Notifications.
200
  $report->set_report_source( 'notifications' );
201
  }
202
  $isnetwork = ! empty( $_REQUEST['isnetwork'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['isnetwork'] ) ) : '';
203
+ $args = array(
204
  'start' => $this->get_formatted_date( $report_start_from ),
205
  'end' => $this->get_formatted_date( $report_end_to ),
206
  );
215
  'message' => __( "You don't have permission to view ExactMetrics reports.", 'google-analytics-dashboard-for-wp' ),
216
  );
217
  } else {
218
+ $data = $report->get_data( $args );
219
  }
220
 
221
  return $data;
includes/admin/notifications.php CHANGED
@@ -267,8 +267,32 @@ class ExactMetrics_Notifications {
267
  $notifications = array();
268
  $notifications['active'] = array_merge( $events, $feed );
269
  $notifications['active'] = $this->get_notifications_with_human_readeable_start_time( $notifications['active'] );
 
270
  $notifications['dismissed'] = ! empty( $option['dismissed'] ) ? $option['dismissed'] : array();
271
  $notifications['dismissed'] = $this->get_notifications_with_human_readeable_start_time( $notifications['dismissed'] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
 
273
  return $notifications;
274
  }
@@ -307,6 +331,7 @@ class ExactMetrics_Notifications {
307
  */
308
  public function get_active_notifications() {
309
  $notifications = $this->get();
 
310
  return isset( $notifications['active'] ) ? $notifications['active'] : array();
311
  }
312
 
@@ -319,6 +344,7 @@ class ExactMetrics_Notifications {
319
  */
320
  public function get_dismissed_notifications() {
321
  $notifications = $this->get();
 
322
  return isset( $notifications['dismissed'] ) ? $notifications['dismissed'] : array();
323
  }
324
 
@@ -350,8 +376,10 @@ class ExactMetrics_Notifications {
350
 
351
  $option = $this->get_option();
352
 
353
- if ( in_array( $notification['id'], $option['dismissed'] ) ) { // phpcs:ignore WordPress.PHP.StrictInArray.MissingTrueStrict
354
- return;
 
 
355
  }
356
 
357
  foreach ( $option['events'] as $item ) {
@@ -376,6 +404,8 @@ class ExactMetrics_Notifications {
376
  /**
377
  * Update notification data from feed.
378
  *
 
 
379
  * @since {VERSION}
380
  */
381
  public function update() {
@@ -389,7 +419,7 @@ class ExactMetrics_Notifications {
389
  'update' => time(),
390
  'feed' => $feed,
391
  'events' => $option['events'],
392
- 'dismissed' => $option['dismissed'],
393
  )
394
  );
395
  }
@@ -411,31 +441,31 @@ class ExactMetrics_Notifications {
411
  $id = sanitize_text_field( wp_unslash( $_POST['id'] ) );
412
  $option = $this->get_option();
413
 
414
- // dismiss all notifications and add them to dissmiss array
415
- if ( $id === 'all' ) {
416
  if ( is_array( $option['feed'] ) && ! empty( $option['feed'] ) ) {
417
  foreach ( $option['feed'] as $key => $notification ) {
418
- array_unshift($option['dismissed'], $notification);
419
  unset( $option['feed'][ $key ] );
420
  }
421
  }
422
  if ( is_array( $option['events'] ) && ! empty( $option['events'] ) ) {
423
  foreach ( $option['events'] as $key => $notification ) {
424
- array_unshift($option['dismissed'], $notification);
425
  unset( $option['events'][ $key ] );
426
  }
427
  }
428
  }
429
 
430
- $type = is_numeric( $id ) ? 'feed' : 'events';
431
 
432
  // Remove notification and add in dismissed array.
433
  if ( is_array( $option[ $type ] ) && ! empty( $option[ $type ] ) ) {
434
  foreach ( $option[ $type ] as $key => $notification ) {
435
  if ( $notification['id'] == $id ) { // phpcs:ignore WordPress.PHP.StrictComparisons
436
- // add notification to dismissed array
437
- array_unshift($option['dismissed'], $notification);
438
- // remove notification from feed or events
439
  unset( $option[ $type ][ $key ] );
440
  break;
441
  }
@@ -455,7 +485,7 @@ class ExactMetrics_Notifications {
455
  public function get_menu_count() {
456
 
457
  if ( $this->get_count() > 0 ) {
458
- return '<span class="exactmetrics-menu-notification-indicator">'. $this->get_count() .'</span>';
459
  }
460
 
461
  return '';
@@ -485,7 +515,7 @@ class ExactMetrics_Notifications {
485
  *
486
  * @return string
487
  */
488
- public function get_view_url( ) {
489
 
490
  $disabled = exactmetrics_get_option( 'dashboards_disabled', false );
491
 
@@ -510,8 +540,8 @@ class ExactMetrics_Notifications {
510
 
511
  $url = add_query_arg(
512
  array(
513
- 'page' => 'exactmetrics_reports',
514
- 'open' => 'exactmetrics_notification_sidebar',
515
  ),
516
  admin_url( 'admin.php' )
517
  );
267
  $notifications = array();
268
  $notifications['active'] = array_merge( $events, $feed );
269
  $notifications['active'] = $this->get_notifications_with_human_readeable_start_time( $notifications['active'] );
270
+ $notifications['active'] = $this->get_notifications_with_formatted_content( $notifications['active'] );
271
  $notifications['dismissed'] = ! empty( $option['dismissed'] ) ? $option['dismissed'] : array();
272
  $notifications['dismissed'] = $this->get_notifications_with_human_readeable_start_time( $notifications['dismissed'] );
273
+ $notifications['dismissed'] = $this->get_notifications_with_formatted_content( $notifications['dismissed'] );
274
+
275
+ return $notifications;
276
+ }
277
+
278
+ /**
279
+ * Improve format of the content of notifications before display. By default just runs wpautop.
280
+ *
281
+ * @param array $notifications The notifications to be parsed.
282
+ *
283
+ * @return mixed
284
+ */
285
+ public function get_notifications_with_formatted_content( $notifications ) {
286
+ if ( ! is_array( $notifications ) || empty( $notifications ) ) {
287
+ return $notifications;
288
+ }
289
+
290
+ foreach ( $notifications as $key => $notification ) {
291
+ if ( ! empty( $notification['content'] ) ) {
292
+ $notifications[ $key ]['content'] = wpautop( $notification['content'] );
293
+ $notifications[ $key ]['content'] = apply_filters( 'exactmetrics_notification_content_display', $notifications[ $key ]['content'] );
294
+ }
295
+ }
296
 
297
  return $notifications;
298
  }
331
  */
332
  public function get_active_notifications() {
333
  $notifications = $this->get();
334
+
335
  return isset( $notifications['active'] ) ? $notifications['active'] : array();
336
  }
337
 
344
  */
345
  public function get_dismissed_notifications() {
346
  $notifications = $this->get();
347
+
348
  return isset( $notifications['dismissed'] ) ? $notifications['dismissed'] : array();
349
  }
350
 
376
 
377
  $option = $this->get_option();
378
 
379
+ foreach ( $option['dismissed'] as $item ) {
380
+ if ( $item['id'] === $notification['id'] ) {
381
+ return;
382
+ }
383
  }
384
 
385
  foreach ( $option['events'] as $item ) {
404
  /**
405
  * Update notification data from feed.
406
  *
407
+ * @param array $option (Optional) Added @since 7.13.2
408
+ *
409
  * @since {VERSION}
410
  */
411
  public function update() {
419
  'update' => time(),
420
  'feed' => $feed,
421
  'events' => $option['events'],
422
+ 'dismissed' => array_slice( $option['dismissed'], 0, 30 ), // Limit dismissed notifications to last 30.
423
  )
424
  );
425
  }
441
  $id = sanitize_text_field( wp_unslash( $_POST['id'] ) );
442
  $option = $this->get_option();
443
 
444
+ // Dismiss all notifications and add them to dissmiss array.
445
+ if ( 'all' === $id ) {
446
  if ( is_array( $option['feed'] ) && ! empty( $option['feed'] ) ) {
447
  foreach ( $option['feed'] as $key => $notification ) {
448
+ array_unshift( $option['dismissed'], $notification );
449
  unset( $option['feed'][ $key ] );
450
  }
451
  }
452
  if ( is_array( $option['events'] ) && ! empty( $option['events'] ) ) {
453
  foreach ( $option['events'] as $key => $notification ) {
454
+ array_unshift( $option['dismissed'], $notification );
455
  unset( $option['events'][ $key ] );
456
  }
457
  }
458
  }
459
 
460
+ $type = is_numeric( $id ) ? 'feed' : 'events';
461
 
462
  // Remove notification and add in dismissed array.
463
  if ( is_array( $option[ $type ] ) && ! empty( $option[ $type ] ) ) {
464
  foreach ( $option[ $type ] as $key => $notification ) {
465
  if ( $notification['id'] == $id ) { // phpcs:ignore WordPress.PHP.StrictComparisons
466
+ // Add notification to dismissed array.
467
+ array_unshift( $option['dismissed'], $notification );
468
+ // Remove notification from feed or events.
469
  unset( $option[ $type ][ $key ] );
470
  break;
471
  }
485
  public function get_menu_count() {
486
 
487
  if ( $this->get_count() > 0 ) {
488
+ return '<span class="exactmetrics-menu-notification-indicator">' . $this->get_count() . '</span>';
489
  }
490
 
491
  return '';
515
  *
516
  * @return string
517
  */
518
+ public function get_view_url() {
519
 
520
  $disabled = exactmetrics_get_option( 'dashboards_disabled', false );
521
 
540
 
541
  $url = add_query_arg(
542
  array(
543
+ 'page' => 'exactmetrics_reports',
544
+ 'open' => 'exactmetrics_notification_sidebar',
545
  ),
546
  admin_url( 'admin.php' )
547
  );
includes/admin/notifications/notification-audience.php CHANGED
@@ -8,21 +8,51 @@
8
  */
9
  final class ExactMetrics_Notification_Audience extends ExactMetrics_Notification_Event {
10
 
11
- public $notification_id = 'exactmetrics_notification_audience';
12
- public $notification_interval = 30; // in days
13
- public $notification_type = array( 'basic', 'lite', 'master', 'plus', 'pro' );
14
 
15
  /**
16
- * Add report to notifications
 
 
 
 
 
17
  *
18
  * @since 7.12.3
19
  */
20
- public function get_notification_data() {
21
- if ( ! exactmetrics_is_pro_version() ) {
22
- // Improve performance for lite users by disabling external API calls they can’t access.
23
- // Since lite users can’t access this feature return early.
24
  return false;
25
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
27
 
28
  $data = array();
@@ -64,41 +94,6 @@ final class ExactMetrics_Notification_Audience extends ExactMetrics_Notification
64
  return $data;
65
  }
66
 
67
- /**
68
- * Build Notification
69
- *
70
- * @param array $notification
71
- * @param array $data
72
- *
73
- * @return array $notification notification is ready to add
74
- *
75
- * @since 7.12.3
76
- */
77
- public function prepare_notification_data( $notification ) {
78
- $data = $this->get_notification_data();
79
-
80
- if ( ! is_array( $data ) || empty( $data ) ) {
81
- return false;
82
- }
83
-
84
- // Translators: Audience notification title
85
- $notification['title'] = sprintf( __( '%s%% of your Audience is from %s', 'google-analytics-dashboard-for-wp' ), $data['percentage'], $data['country'] );
86
- // Translators: Audience notification content
87
- $notification['content'] = sprintf( __( 'Is your site properly translated? By adding translated content specific to your audience you could gain big boosts in pageviews, time spent on page and a reduced bounce rate.<br><br>If you need help choosing a translation plugin to get you started take a look at %sthis article%s for the best options available.', 'google-analytics-dashboard-for-wp' ), '<a href="'. $this->build_external_link('https://www.wpbeginner.com/showcase/9-best-translation-plugins-for-wordpress-websites/' ) .'" target="_blank">', '</a>' );
88
- $notification['btns'] = array(
89
- "view_report" => array(
90
- 'url' => $this->get_view_url(),
91
- 'text' => __( 'View Report', 'google-analytics-dashboard-for-wp' )
92
- ),
93
- "learn_more" => array(
94
- 'url' => $this->build_external_link( 'https://www.wpbeginner.com/showcase/9-best-translation-plugins-for-wordpress-websites/' ),
95
- 'text' => __( 'Learn More', 'google-analytics-dashboard-for-wp' )
96
- ),
97
- );
98
-
99
- return $notification;
100
- }
101
-
102
  }
103