Version Description
September 22nd, 2022 =
Fixed: Resolve issue with autocomplete nonce check and autocomplete method. #6919 (@sc0ttkclark)
Download this release
Release Info
Developer | sc0ttkclark |
Plugin | Pods – Custom Content Types and Fields |
Version | 2.9.6 |
Comparing to | |
See all releases |
Code changes from version 2.9.5 to 2.9.6
- changelog.txt +4 -0
- classes/fields/pick.php +1 -6
- init.php +2 -2
- readme.txt +5 -1
- src/Pods/Whatsit/Field.php +3 -1
- ui/js/dfv/pods-dfv.min.asset.json +1 -1
- ui/js/dfv/pods-dfv.min.js +0 -1
changelog.txt
CHANGED
@@ -2,6 +2,10 @@ Found a bug? Have a great feature idea? Get on GitHub and tell us about it and w
|
|
2 |
|
3 |
Our GitHub has the full list of all prior releases of Pods: https://github.com/pods-framework/pods/releases
|
4 |
|
|
|
|
|
|
|
|
|
5 |
= 2.9.5 - September 22nd, 2022 =
|
6 |
|
7 |
* Fixed: Resolved reported issues with Pods Templates saving and loading values incorrectly for Restrict Content fields. #6916 (@sc0ttkclark, @JoryHogeveen)
|
2 |
|
3 |
Our GitHub has the full list of all prior releases of Pods: https://github.com/pods-framework/pods/releases
|
4 |
|
5 |
+
= 2.9.6 - September 22nd, 2022 =
|
6 |
+
|
7 |
+
* Fixed: Resolve issue with autocomplete nonce check and autocomplete method. #6919 (@sc0ttkclark)
|
8 |
+
|
9 |
= 2.9.5 - September 22nd, 2022 =
|
10 |
|
11 |
* Fixed: Resolved reported issues with Pods Templates saving and loading values incorrectly for Restrict Content fields. #6916 (@sc0ttkclark, @JoryHogeveen)
|
classes/fields/pick.php
CHANGED
@@ -2947,7 +2947,7 @@ class PodsField_Pick extends PodsField {
|
|
2947 |
|
2948 |
$params = (object) $params;
|
2949 |
|
2950 |
-
if ( ! isset( $params->_wpnonce, $params->pod_name, $params->field_name, $params->uri_hash, $params->id )
|
2951 |
pods_error( __( 'Unauthorized request', 'pods' ), PodsInit::$admin );
|
2952 |
}
|
2953 |
|
@@ -2995,11 +2995,6 @@ class PodsField_Pick extends PodsField {
|
|
2995 |
pods_error( __( 'Invalid Field configuration', 'pods' ), PodsInit::$admin );
|
2996 |
}
|
2997 |
|
2998 |
-
$autocomplete_formats = [
|
2999 |
-
'autocomplete',
|
3000 |
-
'list',
|
3001 |
-
];
|
3002 |
-
|
3003 |
if ( ! $field->is_autocomplete_relationship() ) {
|
3004 |
pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
|
3005 |
}
|
2947 |
|
2948 |
$params = (object) $params;
|
2949 |
|
2950 |
+
if ( ! isset( $params->_wpnonce, $params->pod_name, $params->field_name, $params->uri_hash, $params->id ) ) {
|
2951 |
pods_error( __( 'Unauthorized request', 'pods' ), PodsInit::$admin );
|
2952 |
}
|
2953 |
|
2995 |
pods_error( __( 'Invalid Field configuration', 'pods' ), PodsInit::$admin );
|
2996 |
}
|
2997 |
|
|
|
|
|
|
|
|
|
|
|
2998 |
if ( ! $field->is_autocomplete_relationship() ) {
|
2999 |
pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
|
3000 |
}
|
init.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* Plugin Name: Pods - Custom Content Types and Fields
|
11 |
* Plugin URI: https://pods.io/
|
12 |
* Description: Pods is a framework for creating, managing, and deploying customized content types and fields
|
13 |
-
* Version: 2.9.
|
14 |
* Author: Pods Framework Team
|
15 |
* Author URI: https://pods.io/about/
|
16 |
* Text Domain: pods
|
@@ -43,7 +43,7 @@ if ( defined( 'PODS_VERSION' ) || defined( 'PODS_DIR' ) ) {
|
|
43 |
add_action( 'init', 'pods_deactivate_pods_ui' );
|
44 |
} else {
|
45 |
// Current version.
|
46 |
-
define( 'PODS_VERSION', '2.9.
|
47 |
|
48 |
// Current database version, this is the last version the database changed.
|
49 |
define( 'PODS_DB_VERSION', '2.3.5' );
|
10 |
* Plugin Name: Pods - Custom Content Types and Fields
|
11 |
* Plugin URI: https://pods.io/
|
12 |
* Description: Pods is a framework for creating, managing, and deploying customized content types and fields
|
13 |
+
* Version: 2.9.6
|
14 |
* Author: Pods Framework Team
|
15 |
* Author URI: https://pods.io/about/
|
16 |
* Text Domain: pods
|
43 |
add_action( 'init', 'pods_deactivate_pods_ui' );
|
44 |
} else {
|
45 |
// Current version.
|
46 |
+
define( 'PODS_VERSION', '2.9.6' );
|
47 |
|
48 |
// Current database version, this is the last version the database changed.
|
49 |
define( 'PODS_DB_VERSION', '2.3.5' );
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: pods, custom post types, custom taxonomies, content types, custom fields,
|
|
5 |
Requires at least: 5.7
|
6 |
Tested up to: 6.1
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.9.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -173,6 +173,10 @@ Pods really wouldn't be where it is without all the contributions from our [dono
|
|
173 |
|
174 |
== Changelog ==
|
175 |
|
|
|
|
|
|
|
|
|
176 |
= 2.9.5 - September 22nd, 2022 =
|
177 |
|
178 |
* Fixed: Resolved reported issues with Pods Templates saving and loading values incorrectly for Restrict Content fields. #6916 (@sc0ttkclark, @JoryHogeveen)
|
5 |
Requires at least: 5.7
|
6 |
Tested up to: 6.1
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.9.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
173 |
|
174 |
== Changelog ==
|
175 |
|
176 |
+
= 2.9.6 - September 22nd, 2022 =
|
177 |
+
|
178 |
+
* Fixed: Resolve issue with autocomplete nonce check and autocomplete method. #6919 (@sc0ttkclark)
|
179 |
+
|
180 |
= 2.9.5 - September 22nd, 2022 =
|
181 |
|
182 |
* Fixed: Resolved reported issues with Pods Templates saving and loading values incorrectly for Restrict Content fields. #6916 (@sc0ttkclark, @JoryHogeveen)
|
src/Pods/Whatsit/Field.php
CHANGED
@@ -361,7 +361,9 @@ class Field extends Whatsit {
|
|
361 |
|
362 |
$single_multi = $this->get_single_multi();
|
363 |
|
364 |
-
$
|
|
|
|
|
365 |
|
366 |
return in_array( $format, $autocomplete_formats, true );
|
367 |
}
|
361 |
|
362 |
$single_multi = $this->get_single_multi();
|
363 |
|
364 |
+
$default = 'single' === $single_multi ? 'dropdown' : 'list';
|
365 |
+
|
366 |
+
$format = $this->get_type_arg( 'format_' . $single_multi, $default, true );
|
367 |
|
368 |
return in_array( $format, $autocomplete_formats, true );
|
369 |
}
|
ui/js/dfv/pods-dfv.min.asset.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"dependencies":["lodash","moment","react","react-dom","wp-api-fetch","wp-autop","wp-components","wp-compose","wp-data","wp-element","wp-hooks","wp-i18n","wp-keycodes","wp-plugins","wp-polyfill","wp-primitives","wp-url"],"version":"
|
1 |
+
{"dependencies":["lodash","moment","react","react-dom","wp-api-fetch","wp-autop","wp-components","wp-compose","wp-data","wp-element","wp-hooks","wp-i18n","wp-keycodes","wp-plugins","wp-polyfill","wp-primitives","wp-url"],"version":"26f84f0abe329af78f7a"}
|
ui/js/dfv/pods-dfv.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(()=>{var e={4184:(e,t)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=r.apply(null,n);s&&e.push(s)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var a in n)i.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},1689:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,"/*!\n * https://github.com/arqex/react-datetime\n */\n\n.rdt {\n position: relative;\n}\n.rdtPicker {\n display: none;\n position: absolute;\n min-width: 250px;\n padding: 4px;\n margin-top: 1px;\n z-index: 99999 !important;\n background: #fff;\n box-shadow: 0 1px 3px rgba(0,0,0,.1);\n border: 1px solid #f9f9f9;\n}\n.rdtOpen .rdtPicker {\n display: block;\n}\n.rdtStatic .rdtPicker {\n box-shadow: none;\n position: static;\n}\n\n.rdtPicker .rdtTimeToggle {\n text-align: center;\n}\n\n.rdtPicker table {\n width: 100%;\n margin: 0;\n}\n.rdtPicker td,\n.rdtPicker th {\n text-align: center;\n height: 28px;\n}\n.rdtPicker td {\n cursor: pointer;\n}\n.rdtPicker td.rdtDay:hover,\n.rdtPicker td.rdtHour:hover,\n.rdtPicker td.rdtMinute:hover,\n.rdtPicker td.rdtSecond:hover,\n.rdtPicker .rdtTimeToggle:hover {\n background: #eeeeee;\n cursor: pointer;\n}\n.rdtPicker td.rdtOld,\n.rdtPicker td.rdtNew {\n color: #999999;\n}\n.rdtPicker td.rdtToday {\n position: relative;\n}\n.rdtPicker td.rdtToday:before {\n content: '';\n display: inline-block;\n border-left: 7px solid transparent;\n border-bottom: 7px solid #428bca;\n border-top-color: rgba(0, 0, 0, 0.2);\n position: absolute;\n bottom: 4px;\n right: 4px;\n}\n.rdtPicker td.rdtActive,\n.rdtPicker td.rdtActive:hover {\n background-color: #428bca;\n color: #fff;\n text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);\n}\n.rdtPicker td.rdtActive.rdtToday:before {\n border-bottom-color: #fff;\n}\n.rdtPicker td.rdtDisabled,\n.rdtPicker td.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n}\n\n.rdtPicker td span.rdtOld {\n color: #999999;\n}\n.rdtPicker td span.rdtDisabled,\n.rdtPicker td span.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n}\n.rdtPicker th {\n border-bottom: 1px solid #f9f9f9;\n}\n.rdtPicker .dow {\n width: 14.2857%;\n border-bottom: none;\n cursor: default;\n}\n.rdtPicker th.rdtSwitch {\n width: 100px;\n}\n.rdtPicker th.rdtNext,\n.rdtPicker th.rdtPrev {\n font-size: 21px;\n vertical-align: top;\n}\n\n.rdtPrev span,\n.rdtNext span {\n display: block;\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Chrome/Safari/Opera */\n -khtml-user-select: none; /* Konqueror */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n}\n\n.rdtPicker th.rdtDisabled,\n.rdtPicker th.rdtDisabled:hover {\n background: none;\n color: #999999;\n cursor: not-allowed;\n}\n.rdtPicker thead tr:first-of-type th {\n cursor: pointer;\n}\n.rdtPicker thead tr:first-of-type th:hover {\n background: #eeeeee;\n}\n\n.rdtPicker tfoot {\n border-top: 1px solid #f9f9f9;\n}\n\n.rdtPicker button {\n border: none;\n background: none;\n cursor: pointer;\n}\n.rdtPicker button:hover {\n background-color: #eee;\n}\n\n.rdtPicker thead button {\n width: 100%;\n height: 100%;\n}\n\ntd.rdtMonth,\ntd.rdtYear {\n height: 50px;\n width: 25%;\n cursor: pointer;\n}\ntd.rdtMonth:hover,\ntd.rdtYear:hover {\n background: #eee;\n}\n\n.rdtCounters {\n display: inline-block;\n}\n\n.rdtCounters > div {\n float: left;\n}\n\n.rdtCounter {\n height: 100px;\n}\n\n.rdtCounter {\n width: 40px;\n}\n\n.rdtCounterSeparator {\n line-height: 100px;\n}\n\n.rdtCounter .rdtBtn {\n height: 40%;\n line-height: 40px;\n cursor: pointer;\n display: block;\n\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Chrome/Safari/Opera */\n -khtml-user-select: none; /* Konqueror */\n -moz-user-select: none; /* Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n}\n.rdtCounter .rdtBtn:hover {\n background: #eee;\n}\n.rdtCounter .rdtCount {\n height: 20%;\n font-size: 1.2em;\n}\n\n.rdtMilli {\n vertical-align: middle;\n padding-left: 8px;\n width: 48px;\n}\n\n.rdtMilli input {\n width: 100%;\n font-size: 1.2em;\n margin-top: 37px;\n}\n\n.rdtTime td {\n cursor: default;\n}\n",""]);const a=s},7006:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,"/*!\n * Quill Editor v1.3.7\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container {\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n height: 100%;\n margin: 0px;\n position: relative;\n}\n.ql-container.ql-disabled .ql-tooltip {\n visibility: hidden;\n}\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n pointer-events: none;\n}\n.ql-clipboard {\n left: -100000px;\n height: 1px;\n overflow-y: hidden;\n position: absolute;\n top: 50%;\n}\n.ql-clipboard p {\n margin: 0;\n padding: 0;\n}\n.ql-editor {\n box-sizing: border-box;\n line-height: 1.42;\n height: 100%;\n outline: none;\n overflow-y: auto;\n padding: 12px 15px;\n tab-size: 4;\n -moz-tab-size: 4;\n text-align: left;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n.ql-editor > * {\n cursor: text;\n}\n.ql-editor p,\n.ql-editor ol,\n.ql-editor ul,\n.ql-editor pre,\n.ql-editor blockquote,\n.ql-editor h1,\n.ql-editor h2,\n.ql-editor h3,\n.ql-editor h4,\n.ql-editor h5,\n.ql-editor h6 {\n margin: 0;\n padding: 0;\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol,\n.ql-editor ul {\n padding-left: 1.5em;\n}\n.ql-editor ol > li,\n.ql-editor ul > li {\n list-style-type: none;\n}\n.ql-editor ul > li::before {\n content: '\\2022';\n}\n.ql-editor ul[data-checked=true],\n.ql-editor ul[data-checked=false] {\n pointer-events: none;\n}\n.ql-editor ul[data-checked=true] > li *,\n.ql-editor ul[data-checked=false] > li * {\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before,\n.ql-editor ul[data-checked=false] > li::before {\n color: #777;\n cursor: pointer;\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before {\n content: '\\2611';\n}\n.ql-editor ul[data-checked=false] > li::before {\n content: '\\2610';\n}\n.ql-editor li::before {\n display: inline-block;\n white-space: nowrap;\n width: 1.2em;\n}\n.ql-editor li:not(.ql-direction-rtl)::before {\n margin-left: -1.5em;\n margin-right: 0.3em;\n text-align: right;\n}\n.ql-editor li.ql-direction-rtl::before {\n margin-left: 0.3em;\n margin-right: -1.5em;\n}\n.ql-editor ol li:not(.ql-direction-rtl),\n.ql-editor ul li:not(.ql-direction-rtl) {\n padding-left: 1.5em;\n}\n.ql-editor ol li.ql-direction-rtl,\n.ql-editor ul li.ql-direction-rtl {\n padding-right: 1.5em;\n}\n.ql-editor ol li {\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n counter-increment: list-0;\n}\n.ql-editor ol li:before {\n content: counter(list-0, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-increment: list-1;\n}\n.ql-editor ol li.ql-indent-1:before {\n content: counter(list-1, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-2 {\n counter-increment: list-2;\n}\n.ql-editor ol li.ql-indent-2:before {\n content: counter(list-2, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-2 {\n counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-3 {\n counter-increment: list-3;\n}\n.ql-editor ol li.ql-indent-3:before {\n content: counter(list-3, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-3 {\n counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-4 {\n counter-increment: list-4;\n}\n.ql-editor ol li.ql-indent-4:before {\n content: counter(list-4, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-4 {\n counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-5 {\n counter-increment: list-5;\n}\n.ql-editor ol li.ql-indent-5:before {\n content: counter(list-5, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-5 {\n counter-reset: list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-6 {\n counter-increment: list-6;\n}\n.ql-editor ol li.ql-indent-6:before {\n content: counter(list-6, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-6 {\n counter-reset: list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-7 {\n counter-increment: list-7;\n}\n.ql-editor ol li.ql-indent-7:before {\n content: counter(list-7, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-7 {\n counter-reset: list-8 list-9;\n}\n.ql-editor ol li.ql-indent-8 {\n counter-increment: list-8;\n}\n.ql-editor ol li.ql-indent-8:before {\n content: counter(list-8, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-8 {\n counter-reset: list-9;\n}\n.ql-editor ol li.ql-indent-9 {\n counter-increment: list-9;\n}\n.ql-editor ol li.ql-indent-9:before {\n content: counter(list-9, decimal) '. ';\n}\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 3em;\n}\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 4.5em;\n}\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 3em;\n}\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 4.5em;\n}\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 6em;\n}\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 7.5em;\n}\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 6em;\n}\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 7.5em;\n}\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 9em;\n}\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 10.5em;\n}\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 9em;\n}\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 10.5em;\n}\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 12em;\n}\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 13.5em;\n}\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 12em;\n}\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 13.5em;\n}\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 15em;\n}\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 16.5em;\n}\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 15em;\n}\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 16.5em;\n}\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 18em;\n}\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 19.5em;\n}\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 18em;\n}\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 19.5em;\n}\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 21em;\n}\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 22.5em;\n}\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 21em;\n}\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 22.5em;\n}\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 24em;\n}\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 25.5em;\n}\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 24em;\n}\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 25.5em;\n}\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 27em;\n}\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 28.5em;\n}\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 27em;\n}\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 28.5em;\n}\n.ql-editor .ql-video {\n display: block;\n max-width: 100%;\n}\n.ql-editor .ql-video.ql-align-center {\n margin: 0 auto;\n}\n.ql-editor .ql-video.ql-align-right {\n margin: 0 0 0 auto;\n}\n.ql-editor .ql-bg-black {\n background-color: #000;\n}\n.ql-editor .ql-bg-red {\n background-color: #e60000;\n}\n.ql-editor .ql-bg-orange {\n background-color: #f90;\n}\n.ql-editor .ql-bg-yellow {\n background-color: #ff0;\n}\n.ql-editor .ql-bg-green {\n background-color: #008a00;\n}\n.ql-editor .ql-bg-blue {\n background-color: #06c;\n}\n.ql-editor .ql-bg-purple {\n background-color: #93f;\n}\n.ql-editor .ql-color-white {\n color: #fff;\n}\n.ql-editor .ql-color-red {\n color: #e60000;\n}\n.ql-editor .ql-color-orange {\n color: #f90;\n}\n.ql-editor .ql-color-yellow {\n color: #ff0;\n}\n.ql-editor .ql-color-green {\n color: #008a00;\n}\n.ql-editor .ql-color-blue {\n color: #06c;\n}\n.ql-editor .ql-color-purple {\n color: #93f;\n}\n.ql-editor .ql-font-serif {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-editor .ql-font-monospace {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-editor .ql-size-small {\n font-size: 0.75em;\n}\n.ql-editor .ql-size-large {\n font-size: 1.5em;\n}\n.ql-editor .ql-size-huge {\n font-size: 2.5em;\n}\n.ql-editor .ql-direction-rtl {\n direction: rtl;\n text-align: inherit;\n}\n.ql-editor .ql-align-center {\n text-align: center;\n}\n.ql-editor .ql-align-justify {\n text-align: justify;\n}\n.ql-editor .ql-align-right {\n text-align: right;\n}\n.ql-editor.ql-blank::before {\n color: rgba(0,0,0,0.6);\n content: attr(data-placeholder);\n font-style: italic;\n left: 15px;\n pointer-events: none;\n position: absolute;\n right: 15px;\n}\n.ql-snow.ql-toolbar:after,\n.ql-snow .ql-toolbar:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow.ql-toolbar button,\n.ql-snow .ql-toolbar button {\n background: none;\n border: none;\n cursor: pointer;\n display: inline-block;\n float: left;\n height: 24px;\n padding: 3px 5px;\n width: 28px;\n}\n.ql-snow.ql-toolbar button svg,\n.ql-snow .ql-toolbar button svg {\n float: left;\n height: 100%;\n}\n.ql-snow.ql-toolbar button:active:hover,\n.ql-snow .ql-toolbar button:active:hover {\n outline: none;\n}\n.ql-snow.ql-toolbar input.ql-image[type=file],\n.ql-snow .ql-toolbar input.ql-image[type=file] {\n display: none;\n}\n.ql-snow.ql-toolbar button:hover,\n.ql-snow .ql-toolbar button:hover,\n.ql-snow.ql-toolbar button:focus,\n.ql-snow .ql-toolbar button:focus,\n.ql-snow.ql-toolbar button.ql-active,\n.ql-snow .ql-toolbar button.ql-active,\n.ql-snow.ql-toolbar .ql-picker-label:hover,\n.ql-snow .ql-toolbar .ql-picker-label:hover,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\n.ql-snow.ql-toolbar .ql-picker-item:hover,\n.ql-snow .ql-toolbar .ql-picker-item:hover,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\n color: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\n fill: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-stroke,\n.ql-snow .ql-toolbar button:hover .ql-stroke,\n.ql-snow.ql-toolbar button:focus .ql-stroke,\n.ql-snow .ql-toolbar button:focus .ql-stroke,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\n stroke: #06c;\n}\n@media (pointer: coarse) {\n .ql-snow.ql-toolbar button:hover:not(.ql-active),\n .ql-snow .ql-toolbar button:hover:not(.ql-active) {\n color: #444;\n }\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\n fill: #444;\n }\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\n stroke: #444;\n }\n}\n.ql-snow {\n box-sizing: border-box;\n}\n.ql-snow * {\n box-sizing: border-box;\n}\n.ql-snow .ql-hidden {\n display: none;\n}\n.ql-snow .ql-out-bottom,\n.ql-snow .ql-out-top {\n visibility: hidden;\n}\n.ql-snow .ql-tooltip {\n position: absolute;\n transform: translateY(10px);\n}\n.ql-snow .ql-tooltip a {\n cursor: pointer;\n text-decoration: none;\n}\n.ql-snow .ql-tooltip.ql-flip {\n transform: translateY(-10px);\n}\n.ql-snow .ql-formats {\n display: inline-block;\n vertical-align: middle;\n}\n.ql-snow .ql-formats:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow .ql-stroke {\n fill: none;\n stroke: #444;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2;\n}\n.ql-snow .ql-stroke-miter {\n fill: none;\n stroke: #444;\n stroke-miterlimit: 10;\n stroke-width: 2;\n}\n.ql-snow .ql-fill,\n.ql-snow .ql-stroke.ql-fill {\n fill: #444;\n}\n.ql-snow .ql-empty {\n fill: none;\n}\n.ql-snow .ql-even {\n fill-rule: evenodd;\n}\n.ql-snow .ql-thin,\n.ql-snow .ql-stroke.ql-thin {\n stroke-width: 1;\n}\n.ql-snow .ql-transparent {\n opacity: 0.4;\n}\n.ql-snow .ql-direction svg:last-child {\n display: none;\n}\n.ql-snow .ql-direction.ql-active svg:last-child {\n display: inline;\n}\n.ql-snow .ql-direction.ql-active svg:first-child {\n display: none;\n}\n.ql-snow .ql-editor h1 {\n font-size: 2em;\n}\n.ql-snow .ql-editor h2 {\n font-size: 1.5em;\n}\n.ql-snow .ql-editor h3 {\n font-size: 1.17em;\n}\n.ql-snow .ql-editor h4 {\n font-size: 1em;\n}\n.ql-snow .ql-editor h5 {\n font-size: 0.83em;\n}\n.ql-snow .ql-editor h6 {\n font-size: 0.67em;\n}\n.ql-snow .ql-editor a {\n text-decoration: underline;\n}\n.ql-snow .ql-editor blockquote {\n border-left: 4px solid #ccc;\n margin-bottom: 5px;\n margin-top: 5px;\n padding-left: 16px;\n}\n.ql-snow .ql-editor code,\n.ql-snow .ql-editor pre {\n background-color: #f0f0f0;\n border-radius: 3px;\n}\n.ql-snow .ql-editor pre {\n white-space: pre-wrap;\n margin-bottom: 5px;\n margin-top: 5px;\n padding: 5px 10px;\n}\n.ql-snow .ql-editor code {\n font-size: 85%;\n padding: 2px 4px;\n}\n.ql-snow .ql-editor pre.ql-syntax {\n background-color: #23241f;\n color: #f8f8f2;\n overflow: visible;\n}\n.ql-snow .ql-editor img {\n max-width: 100%;\n}\n.ql-snow .ql-picker {\n color: #444;\n display: inline-block;\n float: left;\n font-size: 14px;\n font-weight: 500;\n height: 24px;\n position: relative;\n vertical-align: middle;\n}\n.ql-snow .ql-picker-label {\n cursor: pointer;\n display: inline-block;\n height: 100%;\n padding-left: 8px;\n padding-right: 2px;\n position: relative;\n width: 100%;\n}\n.ql-snow .ql-picker-label::before {\n display: inline-block;\n line-height: 22px;\n}\n.ql-snow .ql-picker-options {\n background-color: #fff;\n display: none;\n min-width: 100%;\n padding: 4px 8px;\n position: absolute;\n white-space: nowrap;\n}\n.ql-snow .ql-picker-options .ql-picker-item {\n cursor: pointer;\n display: block;\n padding-bottom: 5px;\n padding-top: 5px;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n color: #ccc;\n z-index: 2;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n fill: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n stroke: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n display: block;\n margin-top: -1px;\n top: 100%;\n z-index: 1;\n}\n.ql-snow .ql-color-picker,\n.ql-snow .ql-icon-picker {\n width: 28px;\n}\n.ql-snow .ql-color-picker .ql-picker-label,\n.ql-snow .ql-icon-picker .ql-picker-label {\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-label svg,\n.ql-snow .ql-icon-picker .ql-picker-label svg {\n right: 4px;\n}\n.ql-snow .ql-icon-picker .ql-picker-options {\n padding: 4px 0px;\n}\n.ql-snow .ql-icon-picker .ql-picker-item {\n height: 24px;\n width: 24px;\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-options {\n padding: 3px 5px;\n width: 152px;\n}\n.ql-snow .ql-color-picker .ql-picker-item {\n border: 1px solid transparent;\n float: left;\n height: 16px;\n margin: 2px;\n padding: 0px;\n width: 16px;\n}\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\n position: absolute;\n margin-top: -9px;\n right: 0;\n top: 50%;\n width: 18px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\n content: attr(data-label);\n}\n.ql-snow .ql-picker.ql-header {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n content: 'Heading 1';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n content: 'Heading 2';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n content: 'Heading 3';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n content: 'Heading 4';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n content: 'Heading 5';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n content: 'Heading 6';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n font-size: 2em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n font-size: 1.5em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n font-size: 1.17em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n font-size: 1em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n font-size: 0.83em;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n font-size: 0.67em;\n}\n.ql-snow .ql-picker.ql-font {\n width: 108px;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\n content: 'Sans Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n content: 'Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n content: 'Monospace';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-snow .ql-picker.ql-size {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n content: 'Small';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n content: 'Large';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n content: 'Huge';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n font-size: 10px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n font-size: 18px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n font-size: 32px;\n}\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\n background-color: #fff;\n}\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\n background-color: #000;\n}\n.ql-toolbar.ql-snow {\n border: 1px solid #ccc;\n box-sizing: border-box;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n padding: 8px;\n}\n.ql-toolbar.ql-snow .ql-formats {\n margin-right: 15px;\n}\n.ql-toolbar.ql-snow .ql-picker-label {\n border: 1px solid transparent;\n}\n.ql-toolbar.ql-snow .ql-picker-options {\n border: 1px solid transparent;\n box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\n border-color: #000;\n}\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\n border-top: 0px;\n}\n.ql-snow .ql-tooltip {\n background-color: #fff;\n border: 1px solid #ccc;\n box-shadow: 0px 0px 5px #ddd;\n color: #444;\n padding: 5px 12px;\n white-space: nowrap;\n}\n.ql-snow .ql-tooltip::before {\n content: \"Visit URL:\";\n line-height: 26px;\n margin-right: 8px;\n}\n.ql-snow .ql-tooltip input[type=text] {\n display: none;\n border: 1px solid #ccc;\n font-size: 13px;\n height: 26px;\n margin: 0px;\n padding: 3px 5px;\n width: 170px;\n}\n.ql-snow .ql-tooltip a.ql-preview {\n display: inline-block;\n max-width: 200px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n vertical-align: top;\n}\n.ql-snow .ql-tooltip a.ql-action::after {\n border-right: 1px solid #ccc;\n content: 'Edit';\n margin-left: 16px;\n padding-right: 8px;\n}\n.ql-snow .ql-tooltip a.ql-remove::before {\n content: 'Remove';\n margin-left: 8px;\n}\n.ql-snow .ql-tooltip a {\n line-height: 26px;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\n display: none;\n}\n.ql-snow .ql-tooltip.ql-editing input[type=text] {\n display: inline-block;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\n border-right: 0px;\n content: 'Save';\n padding-right: 0px;\n}\n.ql-snow .ql-tooltip[data-mode=link]::before {\n content: \"Enter link:\";\n}\n.ql-snow .ql-tooltip[data-mode=formula]::before {\n content: \"Enter formula:\";\n}\n.ql-snow .ql-tooltip[data-mode=video]::before {\n content: \"Enter video:\";\n}\n.ql-snow a {\n color: #06c;\n}\n.ql-container.ql-snow {\n border: 1px solid #ccc;\n}\n",""]);const a=s},7430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,"#misc-publishing-actions svg.dashicon{color:#82878c;vertical-align:middle;margin-right:.25em}#major-publishing-actions .editor-post-trash{margin-left:0;color:#a00}.pods-edit-pod-manage-field .pods-dfv-container{display:block;max-width:45em;width:65%}.pods-edit-pod-manage-field .pods-dfv-container-wysiwyg,.pods-edit-pod-manage-field .pods-dfv-container-code{width:100%}",""]);const a=s},2732:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-edit-pod-manage-field{zoom:1}.pods-edit-pod-manage-field .pods-field-option,.pods-edit-pod-manage-field .pods-field-option-group{background:#fcfcfc;border-bottom:1px solid #ccd0d4;box-sizing:border-box;display:flex;flex-flow:row nowrap;padding:10px}.pods-edit-pod-manage-field .pods-field-option>*,.pods-edit-pod-manage-field .pods-field-option-group>*{box-sizing:border-box}.pods-edit-pod-manage-field .pods-pick-values li{position:relative}.pods-edit-pod-manage-field .pods-pick-values li{margin:0}.pods-edit-pod-manage-field .pods-field-option:nth-child(odd),.pods-edit-pod-manage-field .pods-field-option-group:nth-child(odd){background:#fff}.pods-edit-pod-manage-field .pods-field-option .pods-field-label,.pods-edit-pod-manage-field .pods-field-option-group .pods-field-option-group-label{width:30%;flex:0 0 30%;padding-right:2%;padding-top:4px}.pods-edit-pod-manage-field .pods-field-option .pods-field-option__field,.pods-edit-pod-manage-field .pods-field-option-group .pods-field-option__field{width:70%;flex:0 0 70%}.pods-edit-pod-manage-field .pods-field-option .pods-pick-values .pods-field.pods-boolean{float:none;margin-left:0;width:auto;max-width:100%}.pods-edit-pod-manage-field label+div .pods-pick-values{width:96%}.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-wysiwyg textarea{max-width:100%}.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-file{padding-bottom:8px}.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-file table.form-table tr.form-field td{padding:0;border-bottom:none}.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-file table.form-table,.pods-edit-pod-manage-field .pods-field-option-group p.pods-field-option-group-label{margin-top:0}.pods-edit-pod-manage-field .pods-pick-values input[type=checkbox],.pods-edit-pod-manage-field .pods-pick-values input[type=radio]{margin:6px}.pods-edit-pod-manage-field .pods-pick-values ul{overflow:visible;margin:5px 0}.pods-edit-pod-manage-field .pods-pick-values ul .pods-field.pods-boolean,.pods-edit-pod-manage-field .pods-pick-values ul ul{margin:0}.pods-edit-pod-manage-field .pods-pick-values.pods-zebra{width:100%;max-width:100%}.pods-edit-pod-manage-field .pods-pick-values.pods-zebra li{margin-bottom:4px}.pods-edit-pod-manage-field .pods-pick-values.pods-zebra div.pods-boolean input{margin:4px}.pods-edit-pod-manage-field .pods-pick-values.pods-zebra div.pods-boolean label{padding:5px 0}.pods-edit-pod-manage-field .pods-pick-values li.pods-zebra-odd{display:block;width:50%;float:left;clear:both}.pods-edit-pod-manage-field .pods-pick-values li.pods-zebra-even{display:block;width:50%;float:left;clear:none}.pods-edit-pod-manage-field .pods-pick-values .regular-text{max-width:95%}.pods-edit-pod-manage-field li>.pods-field.pods-boolean:hover{background:#f5f5f5}.pods-edit-pod-manage-field input.pods-form-ui-no-label{position:relative}@media screen and (max-width: 782px){.pods-edit-pod-manage-field .pods-field-option label,.pods-edit-pod-manage-field .pods-field-option-group .pods-field-option-group-label{float:none;display:block;width:100%;max-width:none;padding-bottom:4px;margin-bottom:0;line-height:22px}.pods-edit-pod-manage-field .pods-field-option input[type=text],.pods-edit-pod-manage-field .pods-field-option textarea,.pods-edit-pod-manage-field .pods-field-option .pods-field.pods-boolean,.pods-edit-pod-manage-field .pods-pick-values,.pods-edit-pod-manage-field .pods-field-option .pods-form-ui-field-type-file,.pods-edit-pod-manage-field .pods-slider-field{display:block;margin:0;width:100%;max-width:none}.pods-edit-pod-manage-field .pods-field.pods-boolean label,.pods-edit-pod-manage-field .pods-field-option .pods-pick-values label{line-height:22px;font-size:14px;margin-left:34px}.pods-edit-pod-manage-field .pods-pick-values li.pods-zebra-odd,.pods-edit-pod-manage-field .pods-pick-values li.pods-zebra-even{display:block;width:100%;float:none;clear:both}}",""]);const a=s},989:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-field-group-wrapper{margin-bottom:10px;border:1px solid #ccd0d4;background-color:#fff;transition:border .2s ease-in-out,opacity .5s ease-in-out}.pods-field-group-wrapper--unsaved{border-left:5px #95bf3b}.pods-field-group-wrapper--deleting{opacity:.5;user-select:none}.pods-field-group-wrapper--errored{border-left:5px #a00 solid}.pods-field-group_name__error{color:#a00;display:inline-block;padding-left:.5em}.pods-field-group_name__id{font-size:13px;color:#999;display:inline;opacity:0;transition:200ms ease opacity}.pods-field-group-wrapper:hover .pods-field-group_name__id{opacity:1}.pods-field-group_buttons{color:#ccd0d4;opacity:0}.pods-field-group-wrapper:hover .pods-field-group_buttons{opacity:1}.pods-field-group_button{background:rgba(0,0,0,0);border:none;color:#007cba;cursor:pointer;height:auto;margin:.25em 0;overflow:visible;padding:0 .5em;position:relative}.pods-field-group_button:hover,.pods-field-group_button:focus{color:#00a0d2}.pods-field-group_manage,.pods-field-group_delete{border-right:none;margin-right:0}.pods-field-group_manage{color:#e1e1e1}.pods-field-group_delete{color:#a00}.pods-field-group_delete:hover,.pods-field-group_delete:hover:not(:disabled){color:#a02222}",""]);const a=s},2037:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".opacity-ghost{transition:all .8s ease;opacity:.4;box-shadow:3px 3px 10px 3px rgba(0,0,0,.3);cursor:ns-resize}.pods-field-group_title{cursor:pointer;display:flex;padding:.5em;justify-content:space-between;color:#333;align-items:center}.pods-field-group_title>button{flex-shrink:0}.pods-field-group_name{cursor:pointer;margin-right:auto;padding:.5em;user-select:none}.pods-field-group_handle{cursor:move;display:inline-block;padding-right:13px;vertical-align:middle}.pods-button-group_container{display:flex;width:100%;justify-content:flex-end;margin-top:10px;margin-bottom:10px}.pods-button-group_add-new{text-align:center;border:2px dashed #ccd0d4;background:none;width:100%;padding:.7em 1em;transition:300ms ease background-color}.pods-button-group_add-new:focus,.pods-button-group_add-new:hover{background-color:#ccd0d4;cursor:pointer}.pods-field-group_toggle{cursor:pointer}.pods-button-group_item{padding:10px 20px;color:#333;text-decoration:none;transition:300ms ease background-color}.pods-button-group_item:hover{background-color:#e0e0e0}.pods-button-group_item:last-child{background-color:#94bf3a;color:#fff}.pods-button-group_item:last-child:hover{background-color:#7c9e33}.pods-field-group_settings{width:100%;height:100%}.pods-field-group_settings--visible{display:block}.pods-field-group_settings .components-modal__content{padding:0}.pods-field-group_settings .components-modal__header{padding:0 36px;margin-bottom:0}.pods-field-group_settings-container{width:100%;margin:0 auto;background-color:#eee;position:absolute;height:calc(100% - 56px)}.pods-field-group_settings-options{display:flex;width:100%;height:100%;overflow:hidden}.pods-field-group_heading{border-bottom:1px solid #e5e5e5;padding:10px;font-weight:bolder;font-size:16px}.pods-field-group_settings-sidebar{width:35%;background-color:#f3f3f3;position:absolute;left:0;height:100%}.pods-field-group_settings-sidebar-item{padding:10px;border-bottom:1px solid #c6cbd0;cursor:pointer;transition:300ms ease background-color}.pods-field-group_settings-sidebar-item:last-child{border-bottom:none}.pods-field-group_settings-sidebar-item--active{background-color:#eee;font-weight:bolder;margin-right:-2px}.pods-field-group_settings-sidebar-item:hover{background-color:#eee}.pods-field-group_settings-main,.pods-field-group_settings-advanced,.pods-field-group_settings-other{width:65%;padding:20px;position:absolute;left:35%}.pods-input-container{display:flex;align-items:center;padding-bottom:20px}.pods-input-container:last-child{padding-bottom:0}.pods-label_text{width:30%;padding-right:20px;font-weight:bold}.pods-input{width:70%}",""]);const a=s},843:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-field_outer-wrapper{background:#fff}.pods-field_outer-wrapper:nth-child(odd){background-color:#f9f9f9;transition:200ms ease background-color}.pods-field_wrapper--dragging{background:#e2e4e7}.pods-field_wrapper--dragging .pods-field_wrapper .pods-field_controls-container{opacity:0}.pods-field_wrapper--overlay{background:#fff;box-shadow:0 0 0 3px rgba(63,63,68,.05),-1px 0 4px 0 rgba(34,33,81,.01),0px 4px 4px 0 rgba(34,33,81,.25);z-index:999}.pods-field_wrapper--overlay .pods-field_wrapper .pods-field_controls-container{opacity:0}.pods-field_wrapper{display:flex;width:auto;align-items:center;padding:.7em 0;transition:border .2s ease-in-out,opacity .5s ease-in-out}.pods-field_wrapper:hover .pods-field_controls-container{opacity:1}.pods-field_wrapper--unsaved{border-left:5px #95bf3b solid}.pods-field_wrapper--deleting{opacity:.5;user-select:none}.pods-field_wrapper--errored{border-left:5px #a00 solid}.pods-field_handle{width:30px;flex:0 0 30px;opacity:.2;padding-left:10px;padding-right:10px;cursor:move;margin-bottom:1em}.pods-field_required{color:red}.pods-field_actions{display:flex}.pods-field_actions i{padding:10px;color:#0073aa}.pods-field_actions i:hover{cursor:pointer;color:#00a0d2}.pods-field_label{padding-left:0;user-select:none}.pods-field_id{font-size:13px;color:#999;display:inline;opacity:0;transition:200ms ease opacity}.pods-field_controls-container__error{color:#000}.pods-field_type,.pods-field_wrapper-label_type{width:60px;user-select:none}.pods-field_label,.pods-field_type{user-select:none}.pods-field_label:hover .pods-field_id,.pods-field_type:hover .pods-field_id{opacity:1;height:auto}.pods-field_label,.pods-field_name{color:#0073aa}.pods-field_label__link{cursor:pointer}.pods-field_label__link:hover{color:#00a0d2}.pods-field_name{cursor:pointer;user-select:none}.pods-field-group_name:hover>.pods-field-group_name__id{opacity:1}.pods-field_wrapper-labels{display:flex;width:100%;margin-top:.3em}.pods-field_wrapper-labels+.pods-field_wrapper-items{margin-top:.7em;width:100%}.pods-field_wrapper-label,.pods-field_label{width:calc(50% - 50px);flex:0 0 calc(50% - 50px)}.pods-field_wrapper-label:first-child{margin-left:50px}.pods-field_name,.pods-field_type,.pods-field_wrapper-label_name,.pods-field_wrapper-label_type{flex:0 0 calc(25% - 1em);padding-bottom:1em;padding-right:1em;overflow-wrap:break-word;width:calc(25% - 1em)}.pods-field_wrapper-label-items{width:172px;padding:1em 1em 1em 0;justify-content:flex-start;width:25%}.pods-field_wrapper-label-items:first-child{margin-left:40px;width:50%}.pods-field_wrapper-items{border:1px solid #ccd0d4;margin:1em 0}.pods-field_wrapper:nth-child(even){background-color:#e2e4e7}.pods-field_controls-container{color:#ccd0d4;margin-left:-0.5em;padding-top:.25em}.pods-field_button{background:rgba(0,0,0,0);border:none;color:#007cba;cursor:pointer;font-size:.95em;height:auto;overflow:visible;padding:0 .5em}.pods-field_button:hover,.pods-field_button:focus{color:#00a0d2}.pods-field_button.pods-field_delete{color:#a00}.pods-field_button.pods-field_delete:hover{color:#a02222}.pods-field_button.pods-field_delete::after{content:none}",""]);const a=s},7862:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-field_controls-container{opacity:0}.pods-field-list{margin:0 2em 2em;overflow:visible !important;display:flex;flex-flow:column nowrap}.pods-field-list__empty{padding:2em 0}.pods-field-list__empty--dropping{background:#ccd0d4}.pods-field-list__empty-message{margin:0;text-align:right}.pods-field-group_add_field_link{align-self:flex-end}",""]);const a=s},2607:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".components-modal__frame.pods-settings-modal{height:90vh;width:90vw;max-width:950px}@media screen and (min-width: 851px){.components-modal__frame.pods-settings-modal{height:80vh;width:80vw}}.pods-settings-modal .components-modal__header{flex:0 0 auto;height:auto;padding:1em 2em}.pods-settings-modal .components-modal__content{display:flex;flex-flow:column nowrap}.pods-settings-modal__container{display:flex;flex:1 1 auto;flex-flow:column nowrap;overflow:hidden}@media screen and (min-width: 851px){.pods-settings-modal__container{flex-flow:row nowrap}}.pods-setting-modal__button-group{display:flex;flex:0 0 auto;justify-content:flex-end;padding:0 1em;width:100%}@media screen and (min-width: 851px){.pods-setting-modal__button-group{border-top:1px solid #e2e4e7;padding-top:12px;margin-left:-24px;margin-right:-24px;width:calc(100% + 48px);padding-right:24px;padding-left:24px;margin-bottom:-12px}}.pods-setting-modal__button-group button{margin-right:5px}.pods-settings-modal__tabs{display:flex;margin-bottom:1em;padding-bottom:.5em;overflow-x:scroll;min-width:200px}@media screen and (min-width: 851px){.pods-settings-modal__tabs{border-right:1px solid #e2e4e7;flex-flow:column nowrap;margin-bottom:0;margin-right:2em;margin-top:-24px;overflow-x:hidden;padding-top:24px;padding-bottom:0}}.pods-settings-modal__tab-item{font-size:14px;font-weight:700;padding:1em 1em 1em 1.1em;margin:0;text-align:center}@media screen and (min-width: 851px){.pods-settings-modal__tab-item{text-align:left;width:200px}}.pods-settings-modal__tab-item:hover{cursor:pointer}.pods-settings-modal__tab-item:focus{outline:1px solid #007cba;outline-offset:-1px}.pods-settings-modal__tab-item.pods-settings-modal__tab-item--active{color:#007cba;border-bottom:5px solid #007cba}@media screen and (min-width: 851px){.pods-settings-modal__tab-item.pods-settings-modal__tab-item--active{border-bottom:none;border-right:5px solid #007cba}}.pods-settings-modal__panel{margin:0;overflow-y:auto;padding-right:1em}@media screen and (min-width: 851px){.pods-settings-modal__panel{flex:1 1 auto}}.pods-settings-modal__panel .pods-field-option{margin-bottom:1em}.pod-field-group_settings-error-message{border:1px solid #ccd0d4;border-left:4px solid #a00;margin:-12px 0 12px;padding:12px;position:relative}@media screen and (min-width: 851px){.pod-field-group_settings-error-message{margin-bottom:36px}}.pods-field-option label{margin-bottom:.2em}.pods-field-option input[type=text],.pods-field-option textarea{width:100%;box-sizing:border-box}.components-modal__frame .pods-field-option input[type=checkbox]:checked{background:#fff}.rtl .pods-settings-modal__panel{padding-right:0;padding-left:1em}@media screen and (min-width: 851px){.rtl .pods-settings-modal__tabs{border-right:0;border-left:1px solid #e2e4e7;margin-right:0;margin-left:2em}}",""]);const a=s},3828:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-field-description{clear:both}",""]);const a=s},7007:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-field-label{margin-bottom:.2em;display:block}.pods-field-label__required{color:red}",""]);const a=s},3418:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-dfv-container .components-notice{margin-left:0;margin-right:0}.pods-dfv-container-text input,.pods-dfv-container-website input,.pods-dfv-container-phone input,.pods-dfv-container-email input,.pods-dfv-container-password input,.pods-dfv-container-paragraph input{width:100%}",""]);const a=s},4477:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-field-wrapper__repeatable-field-table{margin-bottom:10px}.pods-field-wrapper__item{display:flex;flex-flow:row nowrap;margin-bottom:1em}.pods-field-wrapper__repeatable{align-items:center;background:#f9f9f9;border:1px solid #82878c;margin-bottom:0;padding:0;position:relative;margin-top:-1px;transition:.1s background ease-in-out}.pods-field-wrapper__repeatable:first-child{margin-top:0}.pods-field-wrapper__repeatable:hover{background:#f0f0f0}.pods-field-wrapper__repeatable .pods-field-wrapper__field{padding:8px}.pods-field-wrapper__repeatable .components-accessible-toolbar{border:0}.pods-field-wrapper__repeatable .components-toolbar-group{background:rgba(0,0,0,0)}.pods-field-wrapper__controls{flex:0 1 auto}.pods-field-wrapper__field{flex:1 1 auto}.pods-field-wrapper__controls--start{padding-right:1em}.pods-field-wrapper__controls--end{padding-left:1em}.pods-field-wrapper__drag-handle{cursor:grab}.pods-field-wrapper__movers{display:flex;flex-flow:column nowrap;justify-content:center}.components-accessible-toolbar .components-button.pods-field-wrapper__mover{height:20px}",""]);const a=s},6478:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-help-tooltip__icon{cursor:pointer}.pods-help-tooltip__icon:focus{outline:1px solid #007cba;outline-offset:1px}.pods-help-tooltip__icon>svg{color:#ccc;vertical-align:middle}.pods-help-tooltip a{color:#fff}.pods-help-tooltip a:hover,.pods-help-tooltip a:focus{color:#ccd0d4}.pods-help-tooltip .dashicon{text-decoration:none}",""]);const a=s},1753:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-iframe-modal{height:100%;width:100%;max-height:calc(100% - 60px);max-width:calc(100% - 60px)}.pods-iframe-modal__iframe{height:100%;width:100%}",""]);const a=s},9160:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-boolean-group{background:#fff;margin:0 0 5px 0;padding:0;border-radius:0;border:1px solid #dfdfdf}.pods-boolean-group__option{background-color:#fff;border-bottom:1px solid #f4f4f4;margin:0;padding:.5em}.pods-boolean-group__option:nth-child(even){background:#fcfcfc}",""]);const a=s},515:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-code-field{border:1px solid #e5e5e5}.pods-code-field .cm-content{white-space:pre-wrap}.pods-code-field__input--readonly{opacity:.5}",""]);const a=s},7310:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-color-buttons__buttons{align-items:center;display:flex;flex-flow:row nowrap}.pods-color-buttons__buttons .button{margin-right:.5em}.pods-color-buttons__buttons--disabled .component-color-indicator{margin-left:0}.button.pods-color-select-button{align-items:center;display:flex;flex-flow:row nowrap}.button.pods-color-select-button>.component-color-indicator{display:block;margin-right:.5em}.pods-color-picker{padding:.5em;border:1px solid #ccd0d4;max-width:550px}.pods-color-buttons__value{display:block;padding-left:.5em}",""]);const a=s},4622:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-currency-container{position:relative}.pods-currency-sign{position:absolute;transform:translate(0, -50%);top:50%;pointer-events:none;min-width:10px;text-align:center;padding:1px 5px;line-height:28px;border-radius:3px 0 0 3px}input.pods-form-ui-field-type-currency{padding-left:30px}.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-currency,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-currency-slider{max-width:500px}.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-currency-slider{width:100%}",""]);const a=s},556:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-react-datetime-fix .rdtPicker{position:sticky !important;max-width:500px}.pods-react-datetime-fix .rdtPicker td,.pods-react-datetime-fix .rdtPicker th{padding:10px;vertical-align:middle}.pods-react-datetime-fix .rdtPicker th.rdtNext,.pods-react-datetime-fix .rdtPicker th.rdtPrev{vertical-align:top;line-height:1}.pods-react-datetime-fix .rdtPicker th.rdtNext span,.pods-react-datetime-fix .rdtPicker th.rdtPrev span{line-height:.6}.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-datetime,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-date,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-time{max-width:300px}#side-sortables .pods-field-option .pods-form-ui-field.pods-form-ui-field-type-datetime,#side-sortables .pods-field-option .pods-form-ui-field.pods-form-ui-field-type-date,#side-sortables .pods-field-option .pods-form-ui-field.pods-form-ui-field-type-time{max-width:100%}",""]);const a=s},7442:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,"h3.pods-form-ui-heading.pods-form-ui-heading-label_heading{padding:8px 0 !important}",""]);const a=s},339:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-field-option .pods-form-ui-field.pods-form-ui-field-type-number,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-number-slider{max-width:500px}.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-number-slider{width:100%}",""]);const a=s},3117:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,"#profile-page .form-table .pods-field-option .pods-form-ui-field.pods-form-ui-field-type-paragraph,.pods-field-option .pods-form-ui-field.pods-form-ui-field-type-paragraph{min-height:200px;width:100%;box-sizing:border-box}",""]);const a=s},2810:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,"ul.pods-checkbox-pick,ul.pods-checkbox-pick li{list-style:none}",""]);const a=s},4039:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-list-select-values{background:#fff;margin:0 0 5px 0;padding:0;border-radius:0;border:1px solid #dfdfdf}.pods-list-select-values:empty{display:none}.pods-list-select-item{display:block;padding:6px 10px;margin:0;border-bottom:1px solid #efefef}.pods-list-select-item:nth-child(even){background:#fcfcfc}.pods-list-select-item:hover{background:#f5f5f5}.pods-list-select-item:last-of-type{border-bottom:0}.pods-list-select-item--is-dragging{background:#efefef}.pods-list-select-item--overlay{box-shadow:0 0 0 3px rgba(63,63,68,.05),-1px 0 4px 0 rgba(34,33,81,.01),0px 4px 4px 0 rgba(34,33,81,.25)}.pods-list-select-item__inner{align-items:center;display:flex;flex-flow:row nowrap;margin:0}.pods-list-select-item__col{display:block;margin:0;padding:0;text-align:left}.pods-list-select-item__drag-handle{width:30px;flex:0 0 30px;opacity:.2;padding:4px 0}.pods-list-select-item__move-buttons{display:flex;flex-flow:column nowrap;padding-left:1px}.pods-list-select-item__move-buttons .pods-list-select-item__move-button{background:rgba(0,0,0,0);border:none;height:16px;padding:0}.pods-list-select-item__move-buttons .pods-list-select-item__move-button--disabled{opacity:.3}.pods-list-select-item__icon{width:40px;margin:0 10px;font-size:0;line-height:32px;text-align:center}.pods-list-select-item__icon:first-child{margin-left:0}.pods-list-select-item__icon>img{display:inline-block;vertical-align:middle;float:none;border-radius:2px;margin:0;max-height:100%;max-width:100%;width:auto}.pods-list-select-item__icon>span.pinkynail{font-size:32px;width:32px;height:32px}.pods-list-select-item__name{border-bottom:none;line-height:24px;margin:0;overflow:hidden;padding:3px 0;user-select:none;flex-grow:1;word-break:break-word}.pods-list-select-item__edit,.pods-list-select-item__view,.pods-list-select-item__remove{width:25px}.pods-list-select-item__link{display:block;opacity:.4;text-decoration:none;color:#616161}",""]);const a=s},2235:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-form-ui-field-select{width:100%;margin:0;max-width:100%}.pods-form-ui-field-select option{white-space:break-spaces;word-break:break-word}.pods-form-ui-field-select[readonly]{font-style:italic;color:gray}.pods-radio-pick,.pods-checkbox-pick{background:#fff;margin:0 0 5px 0;padding:0;border-radius:0;border:1px solid #dfdfdf;overflow:hidden;max-height:220px;overflow-y:auto}.pods-radio-pick__option,.pods-checkbox-pick__option{background-color:#fff;border-bottom:1px solid #f4f4f4;margin:0;padding:.5em}.pods-radio-pick__option:nth-child(even),.pods-checkbox-pick__option:nth-child(even){background:#fcfcfc}.pods-radio-pick__option .pods-field,.pods-checkbox-pick__option .pods-field{padding:0}.pods-checkbox-pick__option__label,.pods-radio-pick__option__label{display:inline-block;float:none !important;margin:0 !important;padding:0 !important}.pods-checkbox-pick--single{border:none}.pods-checkbox-pick__option--single{border-bottom:none}.pods-checkbox-pick__option--single .pods-checkbox-pick__option__label{margin-left:0}",""]);const a=s},8598:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,".pods-dfv-container .pods-tinymce-editor-container{border:none;background:rgba(0,0,0,0)}.pods-tinymce-editor-container .mce-tinymce{border:1px solid #e5e5e5;box-sizing:border-box}.pods-alternate-editor{width:100%}#profile-page .form-table .pods-field-option .wp-editor-container textarea.wp-editor-area,#profile-page .form-table .pods-field-option .wp-editor-container textarea.components-textarea-control__input,.pods-field-option .wp-editor-container textarea.wp-editor-area,.pods-field-option .wp-editor-container textarea.components-textarea-control__input{width:100%;border:none;margin-bottom:0;box-sizing:border-box}.pods-field-wrapper__repeatable-field-table div.quill{background-color:#fff}",""]);const a=s},110:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),o=n(3645),s=n.n(o)()(r());s.push([e.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',""]);const a=s},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);i&&s[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,t,n){var r={};return n.isMergeableObject(e)&&o(e).forEach((function(t){r[t]=i(e[t],n)})),o(t).forEach((function(o){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(s(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,n)(e[o],t[o],n):r[o]=i(t[o],n))})),r}function l(e,n,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=i;var s=Array.isArray(n);return s===Array.isArray(e)?s?o.arrayMerge(e,n,o):a(e,n,o):i(n,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},9960:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},3150:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},8679:(e,t,n)=>{"use strict";var i=n(1296),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?s:a[e.$$typeof]||r}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(h){var r=p(n);r&&r!==h&&e(t,r,i)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(t),O=l(n),m=0;m<s.length;++m){var g=s[m];if(!(o[g]||i&&i[g]||O&&O[g]||a&&a[g])){var y=f(n,g);try{c(t,g,y)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,O=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,v=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case u:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case m:case O:case l:return e;default:return t}}case r:return t}}}function $(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=O,t.Portal=r,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return $(e)||w(e)===u},t.isConcurrentMode=$,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===O},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===O||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},t.typeOf=w},1296:(e,t,n)=>{"use strict";e.exports=n(6103)},8552:(e,t,n)=>{var i=n(852)(n(5639),"DataView");e.exports=i},1989:(e,t,n)=>{var i=n(1789),r=n(401),o=n(7667),s=n(1327),a=n(1866);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},8407:(e,t,n)=>{var i=n(7040),r=n(4125),o=n(2117),s=n(7518),a=n(4705);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},7071:(e,t,n)=>{var i=n(852)(n(5639),"Map");e.exports=i},3369:(e,t,n)=>{var i=n(4785),r=n(1285),o=n(6e3),s=n(9916),a=n(5265);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},3818:(e,t,n)=>{var i=n(852)(n(5639),"Promise");e.exports=i},8525:(e,t,n)=>{var i=n(852)(n(5639),"Set");e.exports=i},8668:(e,t,n)=>{var i=n(3369),r=n(619),o=n(2385);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=r,s.prototype.has=o,e.exports=s},6384:(e,t,n)=>{var i=n(8407),r=n(7465),o=n(3779),s=n(7599),a=n(4758),l=n(4309);function c(e){var t=this.__data__=new i(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=l,e.exports=c},2705:(e,t,n)=>{var i=n(5639).Symbol;e.exports=i},1149:(e,t,n)=>{var i=n(5639).Uint8Array;e.exports=i},577:(e,t,n)=>{var i=n(852)(n(5639),"WeakMap");e.exports=i},4963:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}},4636:(e,t,n)=>{var i=n(2545),r=n(5694),o=n(1469),s=n(4144),a=n(5776),l=n(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&r(e),d=!n&&!u&&s(e),f=!n&&!u&&!d&&l(e),p=n||u||d||f,h=p?i(e.length,String):[],O=h.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||d&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,O))||h.push(m);return h}},2488:e=>{e.exports=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}},8470:(e,t,n)=>{var i=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},8866:(e,t,n)=>{var i=n(2488),r=n(1469);e.exports=function(e,t,n){var o=t(e);return r(e)?o:i(o,n(e))}},4239:(e,t,n)=>{var i=n(2705),r=n(9607),o=n(2333),s=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?r(e):o(e)}},9454:(e,t,n)=>{var i=n(4239),r=n(7005);e.exports=function(e){return r(e)&&"[object Arguments]"==i(e)}},939:(e,t,n)=>{var i=n(2492),r=n(7005);e.exports=function e(t,n,o,s,a){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:i(t,n,o,s,e,a))}},2492:(e,t,n)=>{var i=n(6384),r=n(7114),o=n(8351),s=n(6096),a=n(4160),l=n(1469),c=n(4144),u=n(6719),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,O,m,g){var y=l(e),b=l(t),v=y?f:a(e),w=b?f:a(t),$=(v=v==d?p:v)==p,_=(w=w==d?p:w)==p,x=v==w;if(x&&c(e)){if(!c(t))return!1;y=!0,$=!1}if(x&&!$)return g||(g=new i),y||u(e)?r(e,t,n,O,m,g):o(e,t,v,n,O,m,g);if(!(1&n)){var S=$&&h.call(e,"__wrapped__"),Q=_&&h.call(t,"__wrapped__");if(S||Q){var k=S?e.value():e,P=Q?t.value():t;return g||(g=new i),m(k,P,n,O,g)}}return!!x&&(g||(g=new i),s(e,t,n,O,m,g))}},8458:(e,t,n)=>{var i=n(3560),r=n(5346),o=n(3218),s=n(346),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||r(e))&&(i(e)?f:a).test(s(e))}},8749:(e,t,n)=>{var i=n(4239),r=n(1780),o=n(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&r(e.length)&&!!s[i(e)]}},280:(e,t,n)=>{var i=n(5726),r=n(6916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},2545:e=>{e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},4429:(e,t,n)=>{var i=n(5639)["__core-js_shared__"];e.exports=i},7114:(e,t,n)=>{var i=n(8668),r=n(2908),o=n(4757);e.exports=function(e,t,n,s,a,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,O=!0,m=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var g=e[h],y=t[h];if(s)var b=c?s(y,g,h,t,e,l):s(g,y,h,e,t,l);if(void 0!==b){if(b)continue;O=!1;break}if(m){if(!r(t,(function(e,t){if(!o(m,t)&&(g===e||a(g,e,n,s,l)))return m.push(t)}))){O=!1;break}}else if(g!==y&&!a(g,y,n,s,l)){O=!1;break}}return l.delete(e),l.delete(t),O}},8351:(e,t,n)=>{var i=n(2705),r=n(1149),o=n(7813),s=n(7114),a=n(8776),l=n(1814),c=i?i.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,i,c,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var h=1&i;if(p||(p=l),e.size!=t.size&&!h)return!1;var O=f.get(e);if(O)return O==t;i|=2,f.set(e,t);var m=s(p(e),p(t),i,c,d,f);return f.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},6096:(e,t,n)=>{var i=n(8234),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,s,a){var l=1&n,c=i(e),u=c.length;if(u!=i(t).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in t:r.call(t,f)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var O=!0;a.set(e,t),a.set(t,e);for(var m=l;++d<u;){var g=e[f=c[d]],y=t[f];if(o)var b=l?o(y,g,f,t,e,a):o(g,y,f,e,t,a);if(!(void 0===b?g===y||s(g,y,n,o,a):b)){O=!1;break}m||(m="constructor"==f)}if(O&&!m){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(O=!1)}return a.delete(e),a.delete(t),O}},1957:(e,t,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},8234:(e,t,n)=>{var i=n(8866),r=n(9551),o=n(3674);e.exports=function(e){return i(e,o,r)}},5050:(e,t,n)=>{var i=n(7019);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},852:(e,t,n)=>{var i=n(8458),r=n(7801);e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},9607:(e,t,n)=>{var i=n(2705),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var i=!0}catch(e){}var r=s.call(e);return i&&(t?e[a]=n:delete e[a]),r}},9551:(e,t,n)=>{var i=n(4963),r=n(479),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),i(s(e),(function(t){return o.call(e,t)})))}:r;e.exports=a},4160:(e,t,n)=>{var i=n(8552),r=n(7071),o=n(3818),s=n(8525),a=n(577),l=n(4239),c=n(346),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",O=c(i),m=c(r),g=c(o),y=c(s),b=c(a),v=l;(i&&v(new i(new ArrayBuffer(1)))!=h||r&&v(new r)!=u||o&&v(o.resolve())!=d||s&&v(new s)!=f||a&&v(new a)!=p)&&(v=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?c(n):"";if(i)switch(i){case O:return h;case m:return u;case g:return d;case y:return f;case b:return p}return t}),e.exports=v},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,n)=>{var i=n(4536);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var i=n(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var i=n(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:r.call(t,e)}},1866:(e,t,n)=>{var i=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var i,r=n(4429),o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!o&&o in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var i=n(8470),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},2117:(e,t,n)=>{var i=n(8470);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},7518:(e,t,n)=>{var i=n(8470);e.exports=function(e){return i(this.__data__,e)>-1}},4705:(e,t,n)=>{var i=n(8470);e.exports=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},4785:(e,t,n)=>{var i=n(1989),r=n(8407),o=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},1285:(e,t,n)=>{var i=n(5050);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var i=n(5050);e.exports=function(e){return i(this,e).get(e)}},9916:(e,t,n)=>{var i=n(5050);e.exports=function(e){return i(this,e).has(e)}},5265:(e,t,n)=>{var i=n(5050);e.exports=function(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}},4536:(e,t,n)=>{var i=n(852)(Object,"create");e.exports=i},6916:(e,t,n)=>{var i=n(5569)(Object.keys,Object);e.exports=i},4e3:(e,t,n)=>{e=n.nmd(e);var i=n(1957),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,s=o&&o.exports===r&&i.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5639:(e,t,n)=>{var i=n(1957),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();e.exports=o},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},7465:(e,t,n)=>{var i=n(8407);e.exports=function(){this.__data__=new i,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var i=n(8407),r=n(7071),o=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!r||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5694:(e,t,n)=>{var i=n(9454),r=n(7005),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return r(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var i=n(3560),r=n(1780);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},4144:(e,t,n)=>{e=n.nmd(e);var i=n(5639),r=n(5062),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?i.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l},8446:(e,t,n)=>{var i=n(939);e.exports=function(e,t){return i(e,t)}},3560:(e,t,n)=>{var i=n(4239),r=n(3218);e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},6719:(e,t,n)=>{var i=n(8749),r=n(1717),o=n(4e3),s=o&&o.isTypedArray,a=s?r(s):i;e.exports=a},3674:(e,t,n)=>{var i=n(4636),r=n(280),o=n(8612);e.exports=function(e){return o(e)?i(e):r(e)}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9430:function(e,t){var n,i,r;i=[],void 0===(r="function"==typeof(n=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,i=t.exec(e.substring(O));if(i)return n=i[0],O+=n.length,n}for(var i,r,o,s,a,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,f=/[,]+$/,p=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,O=0,m=[];;){if(n(u),O>=l)return m;i=n(d),r=[],","===i.slice(-1)?(i=i.replace(f,""),y()):g()}function g(){for(n(c),o="",s="in descriptor";;){if(a=e.charAt(O),"in descriptor"===s)if(t(a))o&&(r.push(o),o="",s="after descriptor");else{if(","===a)return O+=1,o&&r.push(o),void y();if("("===a)o+=a,s="in parens";else{if(""===a)return o&&r.push(o),void y();o+=a}}else if("in parens"===s)if(")"===a)o+=a,s="in descriptor";else{if(""===a)return r.push(o),void y();o+=a}else if("after descriptor"===s)if(t(a));else{if(""===a)return void y();s="in descriptor",O-=1}O+=1}}function y(){var t,n,o,s,a,l,c,u,d,f=!1,O={};for(s=0;s<r.length;s++)l=(a=r[s])[a.length-1],c=a.substring(0,a.length-1),u=parseInt(c,10),d=parseFloat(c),p.test(c)&&"w"===l?((t||n)&&(f=!0),0===u?f=!0:t=u):h.test(c)&&"x"===l?((t||n||o)&&(f=!0),d<0?f=!0:n=d):p.test(c)&&"h"===l?((o||n)&&(f=!0),0===u?f=!0:o=u):f=!0;f?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+a+"'."):(O.url=i,t&&(O.w=t),n&&(O.d=n),o&&(O.h=o),m.push(O))}}})?n.apply(t,i):n)||(e.exports=r)},4241:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},1353:(e,t,n)=>{"use strict";let i=n(1019);class r extends i{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=r,r.default=r,i.registerAtRule(r)},9932:(e,t,n)=>{"use strict";let i=n(5631);class r extends i{constructor(e){super(e),this.type="comment"}}e.exports=r,r.default=r},1019:(e,t,n)=>{"use strict";let i,r,o,s,{isClean:a,my:l}=n(5513),c=n(4258),u=n(9932),d=n(5631);function f(e){return e.map((e=>(e.nodes&&(e.nodes=f(e.nodes)),delete e.source,e)))}function p(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)p(t)}class h extends d{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,n,i=this.getIterator();for(;this.indexes[i]<this.proxyOf.nodes.length&&(t=this.indexes[i],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[i]+=1;return delete this.indexes[i],n}walk(e){return this.each(((t,n)=>{let i;try{i=e(t,n)}catch(e){throw t.addToError(e)}return!1!==i&&t.walk&&(i=t.walk(e)),i}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,i)=>{if("decl"===n.type&&e.test(n.prop))return t(n,i)})):this.walk(((n,i)=>{if("decl"===n.type&&n.prop===e)return t(n,i)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,i)=>{if("rule"===n.type&&e.test(n.selector))return t(n,i)})):this.walk(((n,i)=>{if("rule"===n.type&&n.selector===e)return t(n,i)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,i)=>{if("atrule"===n.type&&e.test(n.name))return t(n,i)})):this.walk(((n,i)=>{if("atrule"===n.type&&n.name===e)return t(n,i)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let n,i=0===(e=this.index(e))&&"prepend",r=this.normalize(t,this.proxyOf.nodes[e],i).reverse();for(let t of r)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)n=this.indexes[t],e<=n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let n,i=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of i)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)n=this.indexes[t],e<n&&(this.indexes[t]=n+i.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,n))})),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if("string"==typeof e)e=f(i(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new c(e)]}else if(e.selector)e=[new r(e)];else if(e.name)e=[new o(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new u(e)]}return e.map((e=>(e[l]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[a]&&p(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}h.registerParse=e=>{i=e},h.registerRule=e=>{r=e},h.registerAtRule=e=>{o=e},h.registerRoot=e=>{s=e},e.exports=h,h.default=h,h.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,o.prototype):"rule"===e.type?Object.setPrototypeOf(e,r.prototype):"decl"===e.type?Object.setPrototypeOf(e,c.prototype):"comment"===e.type?Object.setPrototypeOf(e,u.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[l]=!0,e.nodes&&e.nodes.forEach((e=>{h.rebuild(e)}))}},2671:(e,t,n)=>{"use strict";let i=n(4241),r=n(2868);class o extends Error{constructor(e,t,n,i,r,s){super(e),this.name="CssSyntaxError",this.reason=e,r&&(this.file=r),i&&(this.source=i),s&&(this.plugin=s),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=i.isColorSupported),r&&e&&(t=r(t));let n,o,s=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),c=String(l).length;if(e){let{bold:e,red:t,gray:r}=i.createColors(!0);n=n=>e(t(n)),o=e=>r(e)}else n=o=e=>e;return s.slice(a,l).map(((e,t)=>{let i=a+1+t,r=" "+(" "+i).slice(-c)+" | ";if(i===this.line){let t=o(r.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+o(r)+e+"\n "+t+n("^")}return" "+o(r)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=o,o.default=o},4258:(e,t,n)=>{"use strict";let i=n(5631);class r extends i{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=r,r.default=r},6461:(e,t,n)=>{"use strict";let i,r,o=n(1019);class s extends o{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new i(new r,this,e).stringify()}}s.registerLazyResult=e=>{i=e},s.registerProcessor=e=>{r=e},e.exports=s,s.default=s},250:(e,t,n)=>{"use strict";let i=n(4258),r=n(7981),o=n(9932),s=n(1353),a=n(5995),l=n(1025),c=n(1675);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:n,...d}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:a.prototype};n.map&&(n.map={...n.map,__proto__:r.prototype}),t.push(n)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>u(e,t)))),d.source){let{inputId:e,...n}=d.source;d.source=n,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new l(d);if("decl"===d.type)return new i(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new o(d);if("atrule"===d.type)return new s(d);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},5995:(e,t,n)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:r}=n(209),{fileURLToPath:o,pathToFileURL:s}=n(7414),{resolve:a,isAbsolute:l}=n(9830),{nanoid:c}=n(2618),u=n(2868),d=n(2671),f=n(7981),p=Symbol("fromOffsetCache"),h=Boolean(i&&r),O=Boolean(a&&l);class m{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!O||/^\w+:\/\//.test(t.from)||l(t.from)?this.file=t.from:this.file=a(t.from)),O&&h){let e=new f(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,n;if(this[p])n=this[p];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let i=0,r=e.length;i<r;i++)n[i]=t,t+=e[i].length+1;this[p]=n}t=n[n.length-1];let i=0;if(e>=t)i=n.length-1;else{let t,r=n.length-2;for(;i<r;)if(t=i+(r-i>>1),e<n[t])r=t-1;else{if(!(e>=n[t+1])){i=t;break}i=t+1}}return{line:i+1,col:e-n[i]+1}}error(e,t,n,i={}){let r,o,a;if(t&&"object"==typeof t){let e=t,i=n;if("number"==typeof t.offset){let i=this.fromOffset(e.offset);t=i.line,n=i.col}else t=e.line,n=e.column;if("number"==typeof i.offset){let e=this.fromOffset(i.offset);o=e.line,a=e.col}else o=i.line,a=i.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let l=this.origin(t,n,o,a);return r=l?new d(e,void 0===l.endLine?l.line:{line:l.line,column:l.column},void 0===l.endLine?l.column:{line:l.endLine,column:l.endColumn},l.source,l.file,i.plugin):new d(e,void 0===o?t:{line:t,column:n},void 0===o?n:{line:o,column:a},this.css,this.file,i.plugin),r.input={line:t,column:n,endLine:o,endColumn:a,source:this.css},this.file&&(s&&(r.input.url=s(this.file).toString()),r.input.file=this.file),r}origin(e,t,n,i){if(!this.map)return!1;let r,a,c=this.map.consumer(),u=c.originalPositionFor({line:e,column:t});if(!u.source)return!1;"number"==typeof n&&(r=c.originalPositionFor({line:n,column:i})),a=l(u.source)?s(u.source):new URL(u.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let d={url:a.toString(),line:u.line,column:u.column,endLine:r&&r.line,endColumn:r&&r.column};if("file:"===a.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");d.file=o(a)}let f=c.sourceContentFor(u.source);return f&&(d.source=f),d}mapResolve(e){return/^\w+:\/\//.test(e)?e:a(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=m,m.default=m,u&&u.registerInput&&u.registerInput(m)},1939:(e,t,n)=>{"use strict";let{isClean:i,my:r}=n(5513),o=n(8505),s=n(7088),a=n(1019),l=n(6461),c=(n(2448),n(3632)),u=n(6939),d=n(1025);const f={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},p={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},h={postcssPlugin:!0,prepare:!0,Once:!0};function O(e){return"object"==typeof e&&"function"==typeof e.then}function m(e){let t=!1,n=f[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function g(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:m(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function y(e){return e[i]=!1,e.nodes&&e.nodes.forEach((e=>y(e))),e}let b={};class v{constructor(e,t,n){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof v||t instanceof c)i=y(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=u;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{i=e(t,n)}catch(e){this.processed=!0,this.error=e}i&&!i[r]&&a.rebuild(i)}else i=y(t);this.result=new c(e,i,n),this.helpers={...b,result:this.result,postcss:b},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(O(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[i];)e[i]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=s;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new o(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[i]=!0;let t=m(e);for(let n of t)if(0===n)e.nodes&&e.each((e=>{e[i]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[n,i]of e){let e;this.result.lastPlugin=n;try{e=i(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(O(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return O(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(O(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[i];){e[i]=!0;let t=[g(e)];for(;t.length>0;){let e=this.visitTick(t);if(O(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!p[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[n])if("object"==typeof t[n])for(let i in t[n])e(t,"*"===i?n:n+"-"+i.toLowerCase(),t[n][i]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let r,o=t.iterator;for(;r=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!r[i])return r[i]=!0,void e.push(g(r));t.iterator=0,delete n.indexes[o]}let o=t.events;for(;t.eventIndex<o.length;){let e=o[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[i]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}v.registerPostcss=e=>{b=e},e.exports=v,v.default=v,d.registerLazyResult(v),l.registerLazyResult(v)},4715:e=>{"use strict";let t={split(e,t,n){let i=[],r="",o=!1,s=0,a=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(o=!0),o?(""!==r&&i.push(r.trim()),r="",o=!1):r+=n;return(n||""!==r)&&i.push(r.trim()),i},space:e=>t.split(e,[" ","\n","\t"]),comma:e=>t.split(e,[","],!0)};e.exports=t,t.default=t},8505:(e,t,n)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:r}=n(209),{dirname:o,resolve:s,relative:a,sep:l}=n(9830),{pathToFileURL:c}=n(7414),u=n(5995),d=Boolean(i&&r),f=Boolean(o&&s&&a&&l);e.exports=class{constructor(e,t,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=i}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;n&&!e[n]&&(e[n]=!0,this.map.setSourceContent(this.toUrl(this.path(n)),t.source.input.css))}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),r=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new i(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map((()=>null)))):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(r)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=r.fromSourceMap(e)}else this.map=new r({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?o(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o(s(t,this.mapOpts.annotation))),e=a(t,e)}toUrl(e){return"\\"===l&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(c)return c(e.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}return this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new r({file:this.outputFile()});let e,t,n=1,i=1,o="<no source>",s={source:"",generated:{line:0,column:0},original:{line:0,column:0}};this.stringify(this.root,((r,a,l)=>{if(this.css+=r,a&&"end"!==l&&(s.generated.line=n,s.generated.column=i-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,this.map.addMapping(s))),e=r.match(/\n/g),e?(n+=e.length,t=r.lastIndexOf("\n"),i=r.length-t):i+=r.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"!==a.type||a!==e.last||e.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=n,s.generated.column=i-2,this.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,this.map.addMapping(s)))}}))}generate(){if(this.clearAnnotation(),f&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}}},7647:(e,t,n)=>{"use strict";let i=n(8505),r=n(7088),o=(n(2448),n(6939));const s=n(3632);class a{constructor(e,t,n){let o;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let a=r;this.result=new s(this._processor,o,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new i(a,o,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let e,t=o;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}}e.exports=a,a.default=a},5631:(e,t,n)=>{"use strict";let{isClean:i,my:r}=n(5513),o=n(2671),s=n(1062),a=n(7088);function l(e,t){let n=new e.constructor;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;if("proxyCache"===i)continue;let r=e[i],o=typeof r;"parent"===i&&"object"===o?t&&(n[i]=t):"source"===i?n[i]=r:Array.isArray(r)?n[i]=r.map((e=>l(e,n))):("object"===o&&null!==r&&(r=l(r)),n[i]=r)}return n}class c{constructor(e={}){this.raws={},this[i]=!1,this[r]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}error(e,t={}){if(this.source){let{start:n,end:i}=this.rangeBy(t);return this.source.input.error(e,{line:n.line,column:n.column},{line:i.line,column:i.column},t)}return new o(e)}warn(e,t,n){let i={node:this};for(let e in n)i[e]=n[e];return e.warn(t,i)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=a){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}assign(e={}){for(let t in e)this[t]=e[t];return this}clone(e={}){let t=l(this);for(let n in e)t[n]=e[n];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let i of e)i===this?n=!0:n?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);n||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}raw(e,t){return(new s).raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let n={},i=null==t;t=t||new Map;let r=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let i=this[e];if(Array.isArray(i))n[e]=i.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof i&&i.toJSON)n[e]=i.toJSON(null,t);else if("source"===e){let o=t.get(i.input);null==o&&(o=r,t.set(i.input,r),r++),n[e]={inputId:o,start:i.start,end:i.end}}else n[e]=i}return i&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}positionInside(e){let t=this.toString(),n=this.source.start.column,i=this.source.start.line;for(let r=0;r<e;r++)"\n"===t[r]?(n=1,i+=1):n+=1;return{line:i,column:n}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t}rangeBy(e){let t={line:this.source.start.line,column:this.source.start.column},n=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:t.line,column:t.column+1};if(e.word){let i=this.toString().indexOf(e.word);-1!==i&&(t=this.positionInside(i),n=this.positionInside(i+e.word.length))}else e.start?t={line:e.start.line,column:e.start.column}:e.index&&(t=this.positionInside(e.index)),e.end?n={line:e.end.line,column:e.end.column}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={line:t.line,column:t.column+1}),{start:t,end:n}}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[i]){this[i]=!1;let e=this;for(;e=e.parent;)e[i]=!1}}get proxyOf(){return this}}e.exports=c,c.default=c},6939:(e,t,n)=>{"use strict";let i=n(1019),r=n(8867),o=n(5995);function s(e,t){let n=new o(e,t),i=new r(n);try{i.parse()}catch(e){throw e}return i.root}e.exports=s,s.default=s,i.registerParse(s)},8867:(e,t,n)=>{"use strict";let i=n(4258),r=n(3852),o=n(9932),s=n(1353),a=n(1025),l=n(1675);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=r(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}comment(e){let t=new o;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,n=null,i=!1,r=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)r||(r=l),o.push("("===n?")":"]");else if(s&&i&&"{"===n)r||(r=l),o.push("}");else if(0===o.length){if(";"===n){if(i)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(i=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(r=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(r),t&&i){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let n=new i;this.init(n,e[0][2]);let r,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],i=n[3]||n[2];if(i)return i}}(e));"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s,a=[];for(;e.length&&(s=e[0][0],"space"===s||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let i=this.stringFrom(e,t);i=this.spacesFromEnd(e)+i," !important"!==i&&(n.raws.important=i);break}if("important"===r[1].toLowerCase()){let i=e.slice(0),r="";for(let e=t;e>0;e--){let t=i[e][0];if(0===r.trim().indexOf("!")&&"space"!==t)break;r=i.pop()[1]+r}0===r.trim().indexOf("!")&&(n.important=!0,n.raws.important=r,e=i)}if("space"!==r[0]&&"comment"!==r[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=a.map((e=>e[1])).join(""),a=[]),this.raw(n,"value",a.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,n,i,r=new s;r.name=e[1].slice(1),""===r.name&&this.unnamedAtrule(r,e),this.init(r,e[2]);let o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){r.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(i=l.length-1,n=l[i];n&&"space"===n[0];)n=l[--i];n&&(r.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),o&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),a&&(r.nodes=[],this.current=r)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,n,i){let r,o,s,a,l=n.length,u="",d=!0;for(let e=0;e<l;e+=1)r=n[e],o=r[0],"space"!==o||e!==l-1||i?"comment"===o?(a=n[e-1]?n[e-1][0]:"empty",s=n[e+1]?n[e+1][0]:"empty",c[a]||c[s]||","===u.slice(-1)?d=!1:u+=r[1]):u+=r[1]:d=!1;if(!d){let i=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={value:u,raw:i}}e[t]=u}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}colon(e){let t,n,i,r=0;for(let[o,s]of e.entries()){if(t=s,n=t[0],"("===n&&(r+=1),")"===n&&(r-=1),0===r&&":"===n){if(i){if("word"===i[0]&&"progid"===i[1])continue;return o}this.doubleColon(t)}i=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,i=0;for(let r=t-1;r>=0&&(n=e[r],"space"===n[0]||(i+=1,2!==i));r--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}}},20:(e,t,n)=>{"use strict";let i=n(2671),r=n(4258),o=n(1939),s=n(1019),a=n(1723),l=n(7088),c=n(250),u=n(6461),d=n(1728),f=n(9932),p=n(1353),h=n(3632),O=n(5995),m=n(6939),g=n(4715),y=n(1675),b=n(1025),v=n(5631);function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new a(e)}w.plugin=function(e,t){let n,i=!1;function r(...n){console&&console.warn&&!i&&(i=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let r=t(...n);return r.postcssPlugin=e,r.postcssVersion=(new a).version,r}return Object.defineProperty(r,"postcss",{get:()=>(n||(n=r()),n)}),r.process=function(e,t,n){return w([r(n)]).process(e,t)},r},w.stringify=l,w.parse=m,w.fromJSON=c,w.list=g,w.comment=e=>new f(e),w.atRule=e=>new p(e),w.decl=e=>new r(e),w.rule=e=>new y(e),w.root=e=>new b(e),w.document=e=>new u(e),w.CssSyntaxError=i,w.Declaration=r,w.Container=s,w.Processor=a,w.Document=u,w.Comment=f,w.Warning=d,w.AtRule=p,w.Result=h,w.Input=O,w.Rule=y,w.Root=b,w.Node=v,o.registerPostcss(w),e.exports=w,w.default=w},7981:(e,t,n)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:r}=n(209),{existsSync:o,readFileSync:s}=n(4777),{dirname:a,join:l}=n(9830);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=a(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new i(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}loadFile(e){if(this.root=a(e),o(e))return this.mapFile=e,s(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof i)return r.fromSourceMap(t).toString();if(t instanceof r)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=l(a(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}e.exports=c,c.default=c},1723:(e,t,n)=>{"use strict";let i=n(7647),r=n(1939),o=n(6461),s=n(1025);class a{constructor(e=[]){this.version="8.4.16",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0===this.plugins.length&&void 0===t.parser&&void 0===t.stringifier&&void 0===t.syntax?new i(this,e,t):new r(this,e,t)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}}e.exports=a,a.default=a,s.registerProcessor(a),o.registerProcessor(a)},3632:(e,t,n)=>{"use strict";let i=n(1728);class r{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new i(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=r,r.default=r},1025:(e,t,n)=>{"use strict";let i,r,o=n(1019);class s extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}normalize(e,t,n){let i=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of i)e.raws.before=t.raws.before;return i}toResult(e={}){return new i(new r,this,e).stringify()}}s.registerLazyResult=e=>{i=e},s.registerProcessor=e=>{r=e},e.exports=s,s.default=s,o.registerRoot(s)},1675:(e,t,n)=>{"use strict";let i=n(1019),r=n(4715);class o extends i{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=o,o.default=o,i.registerRule(o)},1062:e=>{"use strict";const t={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};class n{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}document(e){this.body(e)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),i=e.prop+n+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else{let r=(e.raws.between||"")+(t?";":"");this.builder(n+i+r,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let r=e.nodes[i],o=this.raw(r,"before");o&&this.builder(o),this.stringify(r,t!==i||n)}}block(e,t){let n,i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}raw(e,n,i){let r;if(i||(i=n),n&&(r=e.raws[n],void 0!==r))return r;let o=e.parent;if("before"===i){if(!o||"root"===o.type&&o.first===e)return"";if(o&&"document"===o.type)return""}if(!o)return t[i];let s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[i])return s.rawCache[i];if("before"===i||"after"===i)return this.beforeAfter(e,i);{let t="raw"+((a=i)[0].toUpperCase()+a.slice(1));this[t]?r=this[t](s,e):s.walk((e=>{if(r=e.raws[n],void 0!==r)return!1}))}var a;return void 0===r&&(r=t[i]),s.rawCache[i]=r,r}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let i=e.parent,r=0;for(;i&&"root"!==i.type;)r+=1,i=i.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<r;e++)n+=t}return n}rawValue(e,t){let n=e[t],i=e.raws[t];return i&&i.value===n?i.raw:n}}e.exports=n,n.default=n},7088:(e,t,n)=>{"use strict";let i=n(1062);function r(e,t){new i(t).stringify(e)}e.exports=r,r.default=r},5513:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},3852:e=>{"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),i="\\".charCodeAt(0),r="/".charCodeAt(0),o="\n".charCodeAt(0),s=" ".charCodeAt(0),a="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),d="]".charCodeAt(0),f="(".charCodeAt(0),p=")".charCodeAt(0),h="{".charCodeAt(0),O="}".charCodeAt(0),m=";".charCodeAt(0),g="*".charCodeAt(0),y=":".charCodeAt(0),b="@".charCodeAt(0),v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,$=/.[\n"'(/\\]/,_=/[\da-f]/i;e.exports=function(e,x={}){let S,Q,k,P,T,q,R,E,j,N,C=e.css.valueOf(),A=x.ignoreErrors,z=C.length,D=0,W=[],V=[];function M(t){throw e.error("Unclosed "+t,D)}return{back:function(e){V.push(e)},nextToken:function(e){if(V.length)return V.pop();if(D>=z)return;let x=!!e&&e.ignoreUnclosed;switch(S=C.charCodeAt(D),S){case o:case s:case l:case c:case a:Q=D;do{Q+=1,S=C.charCodeAt(Q)}while(S===s||S===o||S===l||S===c||S===a);N=["space",C.slice(D,Q)],D=Q-1;break;case u:case d:case h:case O:case y:case m:case p:{let e=String.fromCharCode(S);N=[e,e,D];break}case f:if(E=W.length?W.pop()[1]:"",j=C.charCodeAt(D+1),"url"===E&&j!==t&&j!==n&&j!==s&&j!==o&&j!==l&&j!==a&&j!==c){Q=D;do{if(q=!1,Q=C.indexOf(")",Q+1),-1===Q){if(A||x){Q=D;break}M("bracket")}for(R=Q;C.charCodeAt(R-1)===i;)R-=1,q=!q}while(q);N=["brackets",C.slice(D,Q+1),D,Q],D=Q}else Q=C.indexOf(")",D+1),P=C.slice(D,Q+1),-1===Q||$.test(P)?N=["(","(",D]:(N=["brackets",P,D,Q],D=Q);break;case t:case n:k=S===t?"'":'"',Q=D;do{if(q=!1,Q=C.indexOf(k,Q+1),-1===Q){if(A||x){Q=D+1;break}M("string")}for(R=Q;C.charCodeAt(R-1)===i;)R-=1,q=!q}while(q);N=["string",C.slice(D,Q+1),D,Q],D=Q;break;case b:v.lastIndex=D+1,v.test(C),Q=0===v.lastIndex?C.length-1:v.lastIndex-2,N=["at-word",C.slice(D,Q+1),D,Q],D=Q;break;case i:for(Q=D,T=!0;C.charCodeAt(Q+1)===i;)Q+=1,T=!T;if(S=C.charCodeAt(Q+1),T&&S!==r&&S!==s&&S!==o&&S!==l&&S!==c&&S!==a&&(Q+=1,_.test(C.charAt(Q)))){for(;_.test(C.charAt(Q+1));)Q+=1;C.charCodeAt(Q+1)===s&&(Q+=1)}N=["word",C.slice(D,Q+1),D,Q],D=Q;break;default:S===r&&C.charCodeAt(D+1)===g?(Q=C.indexOf("*/",D+2)+1,0===Q&&(A||x?Q=C.length:M("comment")),N=["comment",C.slice(D,Q+1),D,Q],D=Q):(w.lastIndex=D+1,w.test(C),Q=0===w.lastIndex?C.length-1:w.lastIndex-2,N=["word",C.slice(D,Q+1),D,Q],W.push(N),D=Q)}return D++,N},endOfFile:function(){return 0===V.length&&D>=z},position:function(){return D}}}},2448:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},1728:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},2703:(e,t,n)=>{"use strict";var i=n(414);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,s){if(s!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6095:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),r=n(18),o=n(19),s=n(45),a=n(46),l=n(47),c=n(48),u=n(49),d=n(12),f=n(32),p=n(33),h=n(31),O=n(1),m={Scope:O.Scope,create:O.create,find:O.find,query:O.query,register:O.register,Container:i.default,Format:r.default,Leaf:o.default,Embed:c.default,Scroll:s.default,Block:l.default,Inline:a.default,Text:u.default,Attributor:{Attribute:d.default,Class:f.default,Style:p.default,Store:h.default}};t.default=m},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=o;var s,a={},l={},c={},u={};function d(e,t){var n;if(void 0===t&&(t=s.ANY),"string"==typeof e)n=u[e]||a[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof e)e&s.LEVEL&s.BLOCK?n=u.block:e&s.LEVEL&s.INLINE&&(n=u.inline);else if(e instanceof HTMLElement){var i=(e.getAttribute("class")||"").split(/\s+/);for(var r in i)if(n=l[i[r]])break;n=n||c[e.tagName]}return null==n?null:t&s.LEVEL&n.scope&&t&s.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(s=t.Scope||(t.Scope={})),t.create=function(e,t){var n=d(e);if(null==n)throw new o("Unable to create "+e+" blot");var i=n,r=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:i.create(t);return new i(r,t)},t.find=function e(n,i){return void 0===i&&(i=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:i?e(n.parentNode,i):null},t.query=d,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var i=t[0];if("string"!=typeof i.blotName&&"string"!=typeof i.attrName)throw new o("Invalid definition");if("abstract"===i.blotName)throw new o("Cannot register abstract class");if(u[i.blotName||i.attrName]=i,"string"==typeof i.keyName)a[i.keyName]=i;else if(null!=i.className&&(l[i.className]=i),null!=i.tagName){Array.isArray(i.tagName)?i.tagName=i.tagName.map((function(e){return e.toUpperCase()})):i.tagName=i.tagName.toUpperCase();var r=Array.isArray(i.tagName)?i.tagName:[i.tagName];r.forEach((function(e){null!=c[e]&&null!=i.className||(c[e]=i)}))}return i}},function(e,t,n){var i=n(51),r=n(11),o=n(3),s=n(20),a=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(i){(e(i)?t:n).push(i)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+s.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+s.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],i=s.iterator(this.ops),r=0;r<t&&i.hasNext();){var o;r<e?o=i.next(e-r):(o=i.next(t-r),n.push(o)),r+=s.length(o)}return new l(n)},l.prototype.compose=function(e){var t=s.iterator(this.ops),n=s.iterator(e.ops),i=[],o=n.peek();if(null!=o&&"number"==typeof o.retain&&null==o.attributes){for(var a=o.retain;"insert"===t.peekType()&&t.peekLength()<=a;)a-=t.peekLength(),i.push(t.next());o.retain-a>0&&n.next(o.retain-a)}for(var c=new l(i);t.hasNext()||n.hasNext();)if("insert"===n.peekType())c.push(n.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),d=t.next(u),f=n.next(u);if("number"==typeof f.retain){var p={};"number"==typeof d.retain?p.retain=u:p.insert=d.insert;var h=s.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(h&&(p.attributes=h),c.push(p),!n.hasNext()&&r(c.ops[c.ops.length-1],p)){var O=new l(t.rest());return c.concat(O).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&c.push(f)}return c.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),o=new l,c=i(n[0],n[1],t),u=s.iterator(this.ops),d=s.iterator(e.ops);return c.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case i.INSERT:n=Math.min(d.peekLength(),t),o.push(d.next(n));break;case i.DELETE:n=Math.min(t,u.peekLength()),u.next(n),o.delete(n);break;case i.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),t);var a=u.next(n),l=d.next(n);r(a.insert,l.insert)?o.retain(n,s.attributes.diff(a.attributes,l.attributes)):o.push(l).delete(n)}t-=n}})),o.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var n=s.iterator(this.ops),i=new l,r=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),a=s.length(o)-n.peekLength(),c="string"==typeof o.insert?o.insert.indexOf(t,a)-a:-1;if(c<0)i.push(n.next());else if(c>0)i.push(n.next(c));else{if(!1===e(i,n.next(1).attributes||{},r))return;r+=1,i=new l}}i.length()>0&&e(i,{},r)},l.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=s.iterator(this.ops),i=s.iterator(e.ops),r=new l;n.hasNext()||i.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===i.peekType())if("insert"===i.peekType())r.push(i.next());else{var o=Math.min(n.peekLength(),i.peekLength()),a=n.next(o),c=i.next(o);if(a.delete)continue;c.delete?r.push(c):r.retain(o,s.attributes.transform(a.attributes,c.attributes,t))}else r.retain(s.length(n.next()));return r.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var n=s.iterator(this.ops),i=0;n.hasNext()&&i<=e;){var r=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(i<e||!t)&&(e+=r),i+=r):e-=Math.min(r,e-i)}return e},e.exports=l},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},a=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,r=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o)return!1;for(t in e);return void 0===t||n.call(e,t)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var t,n,i,r,o,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)i=c(d,n),d!==(r=c(t,n))&&(h&&r&&(a(r)||(o=s(r)))?(o?(o=!1,u=i&&s(i)?i:[]):u=i&&a(i)?i:{},l(d,{name:n,newValue:e(h,u,r)})):void 0!==r&&l(d,{name:n,newValue:r}));return d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=d(n(3)),s=d(n(2)),a=d(n(0)),l=d(n(16)),c=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var O=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),i(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new a.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new s.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=a.default.query(e,a.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,i){this.format(n,i)}},{key:"insertAt",value:function(e,n,i){if("string"==typeof n&&n.endsWith("\n")){var o=a.default.create(m.blotName);this.parent.insertBefore(o,0===e?this:this.next),o.insertAt(0,n.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,i)}}]),t}(a.default.Embed);O.scope=a.default.Scope.BLOCK_BLOT;var m=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),i(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(a.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),g(t))}),new s.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,i,o){n<=0||(a.default.query(i,a.default.Scope.BLOCK)?e+n===this.length()&&this.format(i,o):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),i,o),this.cache={})}},{key:"insertAt",value:function(e,n,i){if(null!=i)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,i);if(0!==n.length){var o=n.split("\n"),s=o.shift();s.length>0&&(e<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});var a=this;o.reduce((function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length}),e+s.length)}}},{key:"insertBefore",value:function(e,n){var i=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),i instanceof l.default&&i.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var i=this.clone();return 0===e?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}var o=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(a.default.Block);function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,o.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:g(e.parent,t))}m.blotName="block",m.tagName="P",m.defaultChild="break",m.allowedChildren=[c.default,a.default.Embed,u.default],t.bubbleFormats=g,t.BlockEmbed=O,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();n(50);var s=m(n(2)),a=m(n(14)),l=m(n(8)),c=m(n(9)),u=m(n(0)),d=n(15),f=m(d),p=m(n(3)),h=m(n(10)),O=m(n(34));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,h.default)("quill"),v=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,e),this.options=w(t,i),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e){e===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(e,t){var i=n.selection.lastRange,r=i&&0===i.length?i.index:void 0;$.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(i){n.register(i,e[i],t)}))}else null==this.imports[e]||i||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var i=this,o=_(e,t,n),s=r(o,4);return e=s[0],t=s[1],n=s[3],$.call(this,(function(){return i.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return $.call(this,(function(){var i=n.getSelection(!0),r=new s.default;if(null==i)return r;if(u.default.query(e,u.default.Scope.BLOCK))r=n.editor.formatLine(i.index,i.length,g({},e,t));else{if(0===i.length)return n.selection.format(e,t),r;r=n.editor.formatText(i.index,i.length,g({},e,t))}return n.setSelection(i,l.default.sources.SILENT),r}),i)}},{key:"formatLine",value:function(e,t,n,i,o){var s,a=this,l=_(e,t,n,i,o),c=r(l,4);return e=c[0],t=c[1],s=c[2],o=c[3],$.call(this,(function(){return a.editor.formatLine(e,t,s)}),o,e,0)}},{key:"formatText",value:function(e,t,n,i,o){var s,a=this,l=_(e,t,n,i,o),c=r(l,4);return e=c[0],t=c[1],s=c[2],o=c[3],$.call(this,(function(){return a.editor.formatText(e,t,s)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=_(e,t),i=r(n,2);return e=i[0],t=i[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=_(e,t),i=r(n,2);return e=i[0],t=i[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return $.call(this,(function(){return r.editor.insertEmbed(t,n,i)}),o,t)}},{key:"insertText",value:function(e,t,n,i,o){var s,a=this,l=_(e,0,n,i,o),c=r(l,4);return e=c[0],s=c[2],o=c[3],$.call(this,(function(){return a.editor.insertText(e,t,s)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var i=this,o=_(e,t,n),s=r(o,4);return e=s[0],t=s[1],n=s[3],$.call(this,(function(){return i.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return $.call(this,(function(){e=new s.default(e);var n=t.getLength(),i=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),o=r.ops[r.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1)),i.compose(r)}),n)}},{key:"setSelection",value:function(t,n,i){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=_(t,n,i),s=r(o,4);t=s[0],n=s[1],i=s[3],this.selection.setRange(new d.Range(t,n),i),i!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new s.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return $.call(this,(function(){return e=new s.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function w(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==v.DEFAULTS.theme){if(t.theme=v.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=O.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var i=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=v.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},v.DEFAULTS,{modules:i},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function $(e,t,n,i){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new s.default;var r=null==n?null:this.getSelection(),o=this.editor.delta,a=e();if(null!=r&&(!0===n&&(n=r.index),null==i?r=x(r,a,t):0!==i&&(r=x(r,n,i,t)),this.setSelection(r,l.default.sources.SILENT)),a.length()>0){var c,u,d=[l.default.events.TEXT_CHANGE,a,o,t];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),t!==l.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}return a}function _(e,t,n,r,o){var s={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(o=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(o=r,r=n,n=t,t=0),"object"===(void 0===n?"undefined":i(n))?(s=n,o=r):"string"==typeof n&&(null!=r?s[n]=r:o=n),[e,t,s,o=o||l.default.sources.API]}function x(e,t,n,i){if(null==e)return null;var o=void 0,a=void 0;if(t instanceof s.default){var c=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,i!==l.default.sources.USER)})),u=r(c,2);o=u[0],a=u[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&i===l.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=r(f,2);o=p[0],a=p[1]}return new d.Range(o,a-o)}v.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},v.events=l.default.events,v.sources=l.default.sources,v.version="1.3.7",v.imports={delta:s.default,parchment:u.default,"core/module":c.default,"core/theme":O.default},t.expandConfig=w,t.overload=_,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=a(n(7)),s=a(n(0));function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"formatAt",value:function(e,n,i,o){if(t.compare(this.statics.blotName,i)<0&&s.default.query(i,s.default.Scope.BLOT)){var a=this.isolate(e,n);o&&a.wrap(i,o)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,i,o)}},{key:"optimize",value:function(e){if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var i=t.order.indexOf(e),r=t.order.indexOf(n);return i>=0||r>=0?i-r:e===n?0:e<n?-1:1}}]),t}(s.default.Inline);u.allowedChildren=[u,s.default.Embed,o.default],u.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(0);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((i=r)&&i.__esModule?i:{default:i}).default.Text);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=s(n(54));function s(e){return e&&e.__esModule?e:{default:e}}var a=(0,s(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var l=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",a.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"emit",value:function(){a.log.apply(a,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(this.listeners[e.type]||[]).forEach((function(t){var i=t.node,r=t.handler;(e.target===i||i.contains(e.target))&&r.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(o.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},t.default=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],r="warn";function o(e){if(i.indexOf(e)<=i.indexOf(r)){for(var t,n=arguments.length,o=Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];(t=console)[e].apply(t,o)}}function s(e){return i.reduce((function(t,n){return t[n]=o.bind(console,n,e),t}),{})}o.level=s.level=function(e){r=e},t.default=s},function(e,t,n){var i=Array.prototype.slice,r=n(52),o=n(53),s=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var c,u;if(a(e)||a(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=i.call(e),t=i.call(t),s(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var d=r(e),f=r(t)}catch(e){return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),c=d.length-1;c>=0;c--)if(d[c]!=f[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!s(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function a(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=i.Scope.TYPE&i.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&i.Scope.LEVEL|r:this.scope=i.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=i.query(e,i.Scope.BLOT&(this.scope|i.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=d(n(2)),a=d(n(0)),l=d(n(4)),c=d(n(6)),u=d(n(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var O=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(c.default);O.blotName="code",O.tagName="CODE";var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new s.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(u.default,this.length()-1),s=i(r,1)[0];null!=s&&s.deleteAt(s.length()-1,1),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,i,r){if(0!==n&&null!=a.default.query(i,a.default.Scope.BLOCK)&&(i!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||o>=e+n)){var s=this.newlineIndex(e,!0)+1,l=o-s+1,c=this.isolate(s,l),u=c.next;c.format(i,r),u instanceof t&&u.formatAt(0,e-s+n-l,i,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(u.default,e),o=i(r,2),s=o[0],a=o[1];s.insertAt(a,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(a.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=a.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof a.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(l.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",t.Code=O,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=g(n(2)),a=g(n(20)),l=g(n(0)),c=g(n(13)),u=g(n(24)),d=n(4),f=g(d),p=g(n(16)),h=g(n(21)),O=g(n(11)),m=g(n(3));function g(e){return e&&e.__esModule?e:{default:e}}var y=/^[ -~]*$/,b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return o(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var i=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(i,t.attributes)}return e.push(t)}),new s.default)}(e)).reduce((function(e,s){var c=s.retain||s.delete||s.insert.length||1,u=s.attributes||{};if(null!=s.insert){if("string"==typeof s.insert){var p=s.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=o&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),O=r(h,2),g=O[0],y=O[1],b=(0,m.default)({},(0,d.bubbleFormats)(g));if(g instanceof f.default){var v=g.descendant(l.default.Leaf,y),w=r(v,1)[0];b=(0,m.default)(b,(0,d.bubbleFormats)(w))}u=a.default.attributes.diff(b,u)||{}}else if("object"===i(s.insert)){var $=Object.keys(s.insert)[0];if(null==$)return e;t.scroll.insertAt(e,$,s.insert[$])}o+=c}return Object.keys(u).forEach((function(n){t.scroll.formatAt(e,c,n,u[n])})),e+c}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(i).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var o=n.scroll.lines(e,Math.max(t,1)),s=t;o.forEach((function(t){var o=t.length();if(t instanceof c.default){var a=e-t.offset(n.scroll),l=t.newlineIndex(a+s)-a+1;t.formatAt(a,l,r,i[r])}else t.format(r,i[r]);s-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,h.default)(i)))}},{key:"formatText",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(i).forEach((function(r){n.scroll.formatAt(e,t,r,i[r])})),this.update((new s.default).retain(e).retain(t,(0,h.default)(i)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],i=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1)[0];t instanceof f.default?n.push(t):t instanceof l.default.Leaf&&i.push(t)})):(n=this.scroll.lines(e,t),i=this.scroll.descendants(l.default.Leaf,e,t));var o=[n,i].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=v((0,d.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(i).forEach((function(r){n.scroll.formatAt(e,t.length,r,i[r])})),this.update((new s.default).retain(e).insert(t,(0,h.default)(i)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===f.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),i=this.scroll.line(e+t),o=r(i,2),a=o[0],l=o[1],u=0,d=new s.default;null!=a&&(u=a instanceof c.default?a.newlineIndex(l)-l+1:a.length()-l,d=a.delta().slice(l,l+u-1).insert("\n"));var f=this.getContents(e,t+u).diff((new s.default).insert(n).concat(d)),p=(new s.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(y)&&l.default.find(t[0].target)){var r=l.default.find(t[0].target),o=(0,d.bubbleFormats)(r),a=r.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),f=(new s.default).insert(c),p=(new s.default).insert(r.value()),h=(new s.default).retain(a).concat(f.diff(p,n));e=h.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new s.default),this.delta=i.compose(e)}else this.delta=this.getDelta(),e&&(0,O.default)(i.compose(e),this.delta)||(e=i.diff(this.delta,n));return e}}]),e}();function v(e,t){return Object.keys(t).reduce((function(n,i){return null==e[i]||(t[i]===e[i]?n[i]=t[i]:Array.isArray(t[i])?t[i].indexOf(e[i])<0&&(n[i]=t[i].concat([e[i]])):n[i]=[t[i],e[i]]),n}),{})}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=c(n(0)),s=c(n(21)),a=c(n(11)),l=c(n(8));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,c(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var i=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){i.mouseDown||setTimeout(i.update.bind(i,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&i.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(i.hasFocus()){var e=i.getNativeRange();null!=e&&e.start.node!==i.cursor.textNode&&i.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{i.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,o=n.startOffset,s=n.endNode,a=n.endOffset;i.setNativeRange(r,o,s,a)}})),this.update(l.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(e,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var i=o.default.find(n.start.node,!1);if(null==i)return;if(i instanceof o.default.Leaf){var r=i.split(n.start.offset);i.parent.insertBefore(this.cursor,r)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,o=this.scroll.leaf(e),s=i(o,2),a=s[0],l=s[1];if(null==a)return null;var c=a.position(l,!0),u=i(c,2);r=u[0],l=u[1];var d=document.createRange();if(t>0){d.setStart(r,l);var f=this.scroll.leaf(e+t),p=i(f,2);if(a=p[0],l=p[1],null==a)return null;var h=a.position(l,!0),O=i(h,2);return r=O[0],l=O[1],d.setEnd(r,l),d.getBoundingClientRect()}var m="left",g=void 0;return r instanceof Text?(l<r.data.length?(d.setStart(r,l),d.setEnd(r,l+1)):(d.setStart(r,l-1),d.setEnd(r,l),m="right"),g=d.getBoundingClientRect()):(g=a.domNode.getBoundingClientRect(),l>0&&(m="right")),{bottom:g.top+g.height,height:g.height,left:g[m],right:g[m],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return f.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=i(e,2),r=n[0],s=n[1],a=o.default.find(r,!0),l=a.offset(t.scroll);return 0===s?l:a instanceof o.default.Container?l+a.length():l+a.index(r,s)})),s=Math.min(Math.max.apply(Math,u(r)),this.scroll.length()-1),a=Math.min.apply(Math,[s].concat(u(r)));return new p(a,s-a)}},{key:"normalizeNative",value:function(e){if(!O(this.root,e.startContainer)||!e.collapsed&&!O(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],o=this.scroll.length();return n.forEach((function(e,n){e=Math.min(o-1,e);var s,a=t.scroll.leaf(e),l=i(a,2),c=l[0],u=l[1],d=c.position(u,0!==n),f=i(d,2);s=f[0],u=f[1],r.push(s,u)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,r)),s=i(o,1)[0],a=s;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,r));a=i(l,1)[0]}if(null!=s&&null!=a){var c=e.getBoundingClientRect();n.top<c.top?e.scrollTop-=c.top-n.top:n.bottom>c.bottom&&(e.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,n,i),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var s=(this.getNativeRange()||{}).native;if(null==s||r||e!==s.startContainer||t!==s.startOffset||n!==s.endContainer||i!==s.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(i=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(e,t),a.setEnd(n,i),o.removeAllRanges(),o.addRange(a)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof t&&(n=t,t=!1),f.info("setRange",e),null!=e){var i=this.rangeToNative(e);this.setNativeRange.apply(this,u(i).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,n=this.getRange(),r=i(n,2),o=r[0],c=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,a.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[l.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(t),e];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(f)),e!==l.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function O(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(0);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"insertInto",value:function(e,n){0===e.children.length?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((i=s)&&i.__esModule?i:{default:i}).default.Embed);c.blotName="break",c.tagName="BR",t.default=c},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(44),s=n(30),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=c(t);e.insertBefore(n,e.children.head||void 0)}catch(e){if(e instanceof a.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var i=this.children.find(n),r=i[0],o=i[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,o]:r instanceof t?r.descendant(e,o):[null,-1]},t.prototype.descendants=function(e,n,i){void 0===n&&(n=0),void 0===i&&(i=Number.MAX_VALUE);var r=[],o=i;return this.children.forEachAt(n,i,(function(n,i,s){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&r.push(n),n instanceof t&&(r=r.concat(n.descendants(e,i,o))),o-=s})),r},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,i){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,n,i)}))},t.prototype.insertAt=function(e,t,n){var i=this.children.find(e),r=i[0],o=i[1];if(r)r.insertAt(o,t,n);else{var s=null==n?a.create("text",t):a.create(t,n);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var i=this.children.find(e,n),r=i[0],o=i[1],s=[[this,e]];return r instanceof t?s.concat(r.path(o,n)):(null!=r&&s.push([r,o]),s)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,i,r){e=e.split(i,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,i=[],r=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(i.push.apply(i,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),i.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var i=c(e);i.next==t&&null!=i.next||(null!=i.parent&&i.parent.removeChild(n),n.insertBefore(i,t||void 0))}))},t}(s.default);function c(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),s=n(31),a=n(17),l=n(1),c=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new s.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=l.query(e);n instanceof o.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var i=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(i),i},t.prototype.update=function(t,n){var i=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===i.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,i){var r=e.prototype.wrap.call(this,n,i);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(a.default);t.default=c},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(30),s=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=s.Scope.INLINE_BLOT,t}(o.default);t.default=a},function(e,t,n){var i=n(11),r=n(3),o={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var i=r(!0,{},t);for(var o in n||(i=Object.keys(i).reduce((function(e,t){return null!=i[t]&&(e[t]=i[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(i[o]=e[o]);return Object.keys(i).length>0?i:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return i(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var i=Object.keys(t).reduce((function(n,i){return void 0===e[i]&&(n[i]=t[i]),n}),{});return Object.keys(i).length>0?i:void 0}}},iterator:function(e){return new s(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function s(e){this.ops=e,this.index=0,this.offset=0}s.prototype.hasNext=function(){return this.peekLength()<1/0},s.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,i=o.length(t);if(e>=i-n?(e=i-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},s.prototype.peek=function(){return this.ops[this.index]},s.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},s.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},s.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),i=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(i)}return[]},e.exports=o},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,i;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{i=Promise}catch(e){i=function(){}}function r(o,a,l,c,u){"object"==typeof a&&(l=a.depth,c=a.prototype,u=a.includeNonEnumerable,a=a.circular);var d=[],f=[],p="undefined"!=typeof Buffer;return void 0===a&&(a=!0),void 0===l&&(l=1/0),function o(l,h){if(null===l)return null;if(0===h)return l;var O,m;if("object"!=typeof l)return l;if(e(l,t))O=new t;else if(e(l,n))O=new n;else if(e(l,i))O=new i((function(e,t){l.then((function(t){e(o(t,h-1))}),(function(e){t(o(e,h-1))}))}));else if(r.__isArray(l))O=[];else if(r.__isRegExp(l))O=new RegExp(l.source,s(l)),l.lastIndex&&(O.lastIndex=l.lastIndex);else if(r.__isDate(l))O=new Date(l.getTime());else{if(p&&Buffer.isBuffer(l))return O=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(O),O;e(l,Error)?O=Object.create(l):void 0===c?(m=Object.getPrototypeOf(l),O=Object.create(m)):(O=Object.create(c),m=c)}if(a){var g=d.indexOf(l);if(-1!=g)return f[g];d.push(l),f.push(O)}for(var y in e(l,t)&&l.forEach((function(e,t){var n=o(t,h-1),i=o(e,h-1);O.set(n,i)})),e(l,n)&&l.forEach((function(e){var t=o(e,h-1);O.add(t)})),l){var b;m&&(b=Object.getOwnPropertyDescriptor(m,y)),b&&null==b.set||(O[y]=o(l[y],h-1))}if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(l);for(y=0;y<v.length;y++){var w=v[y];(!(_=Object.getOwnPropertyDescriptor(l,w))||_.enumerable||u)&&(O[w]=o(l[w],h-1),_.enumerable||Object.defineProperty(O,w,{enumerable:!1}))}}if(u){var $=Object.getOwnPropertyNames(l);for(y=0;y<$.length;y++){var _,x=$[y];(_=Object.getOwnPropertyDescriptor(l,x))&&_.enumerable||(O[x]=o(l[x],h-1),Object.defineProperty(O,x,{enumerable:!1}))}}return O}(o,l)}function o(e){return Object.prototype.toString.call(e)}function s(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=o,r.__isDate=function(e){return"object"==typeof e&&"[object Date]"===o(e)},r.__isArray=function(e){return"object"==typeof e&&"[object Array]"===o(e)},r.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===o(e)},r.__getRegExpFlags=s,r}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=p(n(0)),a=p(n(8)),l=n(4),c=p(l),u=p(n(16)),d=p(n(13)),f=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof c.default||e instanceof l.BlockEmbed}var O=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.emitter=n.emitter,Array.isArray(n.whitelist)&&(i.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),i.domNode.addEventListener("DOMNodeInserted",(function(){})),i.optimize(),i.enable(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),s=i(r,2),a=s[0],c=s[1],f=this.line(e+n),p=i(f,1)[0];if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&a!==p&&c>0){if(a instanceof l.BlockEmbed||p instanceof l.BlockEmbed)return void this.optimize();if(a instanceof d.default){var h=a.newlineIndex(a.length(),!0);if(h>-1&&(a=a.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var O=p.newlineIndex(0);O>-1&&p.split(O+1)}var m=p.children.head instanceof u.default?null:p.children.head;a.moveChildren(p,m),a.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,i,r){(null==this.whitelist||this.whitelist[i])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,i,r),this.optimize())}},{key:"insertAt",value:function(e,n,i){if(null==i||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==i||null==s.default.query(n,s.default.Scope.BLOCK)){var r=s.default.create(this.statics.defaultChild);this.appendChild(r),null==i&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,i)}else{var a=s.default.create(n,i);this.appendChild(a)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,i);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var i=s.default.create(this.statics.defaultChild);i.appendChild(e),e=i}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,i){var r=[],o=i;return t.children.forEachAt(n,i,(function(t,n,i){h(t)?r.push(t):t instanceof s.default.Container&&(r=r.concat(e(t,n,o))),o-=i})),r};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=a.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,n,e)}}}]),t}(s.default.Scroll);O.blotName="scroll",O.className="ql-editor",O.tagName="DIV",O.defaultChild="block",O.allowedChildren=[c.default,l.BlockEmbed,f.default],t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=O(n(21)),a=O(n(11)),l=O(n(3)),c=O(n(2)),u=O(n(20)),d=O(n(0)),f=O(n(5)),p=O(n(10)),h=O(n(9));function O(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,p.default)("quill:keyboard"),y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.bindings={},Object.keys(i.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&i.options.bindings[t]&&i.addBinding(i.options.bindings[t])})),i.addBinding({key:t.keys.ENTER,shiftKey:null},x),i.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(i.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},w),i.addBinding({key:t.keys.DELETE},{collapsed:!0},$)):(i.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),i.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},$)),i.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},_),i.addBinding({key:t.keys.DELETE},{collapsed:!1},_),i.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),i.listen(),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"match",value:function(e,t){return t=k(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),o(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=k(e);if(null==i||null==i.key)return g.warn("Attempted to add invalid keyboard binding",i);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),i=(0,l.default)(i,t,n),this.bindings[i.key]=this.bindings[i.key]||[],this.bindings[i.key].push(i)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,s=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==s.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var c=e.quill.getLine(l.index),u=r(c,2),f=u[0],p=u[1],h=e.quill.getLeaf(l.index),O=r(h,2),m=O[0],g=O[1],y=0===l.length?[m,g]:e.quill.getLeaf(l.index+l.length),b=r(y,2),v=b[0],w=b[1],$=m instanceof d.default.Text?m.value().slice(0,g):"",_=v instanceof d.default.Text?v.value().slice(w):"",x={collapsed:0===l.length,empty:0===l.length&&f.length()<=1,format:e.quill.getFormat(l),offset:p,prefix:$,suffix:_};s.some((function(t){if(null!=t.collapsed&&t.collapsed!==x.collapsed)return!1;if(null!=t.empty&&t.empty!==x.empty)return!1;if(null!=t.offset&&t.offset!==x.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==x.format[e]})))return!1}else if("object"===i(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=x.format[e]:!1===t.format[e]?null==x.format[e]:(0,a.default)(t.format[e],x.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(x.prefix)||null!=t.suffix&&!t.suffix.test(x.suffix)||!0===t.handler.call(e,l,x))}))&&n.preventDefault()}}}}))}}]),t}(h.default);function v(e,t){var n,i=e===b.keys.LEFT?"prefix":"suffix";return m(n={key:e,shiftKey:t,altKey:null},i,/^$/),m(n,"handler",(function(n){var i=n.index;e===b.keys.RIGHT&&(i+=n.length+1);var o=this.quill.getLeaf(i);return!(r(o,1)[0]instanceof d.default.Embed&&(e===b.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index-1,f.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,f.default.sources.USER):this.quill.setSelection(n.index+n.length+1,f.default.sources.USER),1))})),n}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),i=r(n,1)[0],o={};if(0===t.offset){var s=this.quill.getLine(e.index-1),a=r(s,1)[0];if(null!=a&&a.length()>1){var l=i.formats(),c=this.quill.getFormat(e.index-1,1);o=u.default.attributes.diff(l,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index-d,d,o,f.default.sources.USER),this.quill.focus()}}function $(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var i={},o=0,s=this.quill.getLine(e.index),a=r(s,1)[0];if(t.offset>=a.length()-1){var l=this.quill.getLine(e.index+1),c=r(l,1)[0];if(c){var d=a.formats(),p=this.quill.getFormat(e.index,1);i=u.default.attributes.diff(d,p)||{},o=c.length()}}this.quill.deleteText(e.index,n,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index+o-1,n,i,f.default.sources.USER)}}function _(e){var t=this.quill.getLines(e),n={};if(t.length>1){var i=t[0].formats(),r=t[t.length-1].formats();n=u.default.attributes.diff(r,i)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function x(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var i=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",i,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==i[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],f.default.sources.USER))}))}function S(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),i=t.index,o=t.length,s=this.quill.scroll.descendant(n,i),a=r(s,2),l=a[0],c=a[1];if(null!=l){var u=this.quill.getIndex(l),p=l.newlineIndex(c,!0)+1,h=l.newlineIndex(u+c+o),O=l.domNode.textContent.slice(p,h).split("\n");c=0,O.forEach((function(t,r){e?(l.insertAt(p+c,n.TAB),c+=n.TAB.length,0===r?i+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(p+c,n.TAB.length),c-=n.TAB.length,0===r?i-=n.TAB.length:o-=n.TAB.length),c+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(i,o,f.default.sources.SILENT)}}}}function Q(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],f.default.sources.USER)}}}function k(e){if("string"==typeof e||"number"==typeof e)return k({key:e});if("object"===(void 0===e?"undefined":i(e))&&(e=(0,s.default)(e,!1)),"string"==typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[y]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:Q("bold"),italic:Q("italic"),underline:Q("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":S(!0),"outdent code-block":S(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),i=n[0],o=n[1],s=(0,l.default)({},i.formats(),{list:"checked"}),a=(new c.default).retain(e.index).insert("\n",s).retain(i.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),i=r(n,2),o=i[0],s=i[1],a=(new c.default).retain(e.index).insert("\n",t.format).retain(o.length()-s-1).retain(1,{header:null});this.quill.updateContents(a,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,i=this.quill.getLine(e.index),o=r(i,2),s=o[0],a=o[1];if(a>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-a).delete(n+1).retain(s.length()-2-a).retain(1,{list:l});this.quill.updateContents(u,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,f.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),i=n[0],o=n[1],s=(new c.default).retain(e.index+i.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(s,f.default.sources.USER)}},"embed left":v(b.keys.LEFT,!1),"embed left shift":v(b.keys.LEFT,!0),"embed right":v(b.keys.RIGHT,!1),"embed right shift":v(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=l(n(0)),a=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.selection=n,i.textNode=document.createTextNode(t.CONTENTS),i.domNode.appendChild(i.textNode),i._length=0,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var i=this,o=0;null!=i&&i.statics.scope!==s.default.Scope.BLOCK_BLOT;)o+=i.offset(i.parent),i=i.parent;null!=i&&(this._length=t.CONTENTS.length,i.optimize(),i.formatAt(o,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,o=void 0,l=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var c=[e,n.start.offset,n.end.offset];r=c[0],o=c[1],l=c[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof a.default?(r=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var d=[o,l].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),f=i(d,2);return o=f[0],l=f[1],{startNode:r,startOffset:o,endNode:r,endOffset:l}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var i=this.restore();i&&(t.range=i)}}},{key:"value",value:function(){return""}}]),t}(s.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\ufeff",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s(n(0)),r=n(4),o=s(r);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(i.default.Container);c.allowedChildren=[o.default,r.BlockEmbed,c],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(0),a=(i=s)&&i.__esModule?i:{default:i};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"value",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(a.default.Attributor.Style),d=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),f=new u("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=u,t.ColorClass=d,t.ColorStyle=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(6);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return u(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((i=s)&&i.__esModule?i:{default:i}).default);function u(e,t){var n=document.createElement("a");n.href=e;var i=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(i)>-1}c.blotName="link",c.tagName="A",c.SANITIZED_URL="about:blank",c.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=c,t.sanitize=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=a(n(23)),s=a(n(107));function a(e){return e&&e.__esModule?e:{default:e}}var l=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:n.togglePicker();break;case o.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return r(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case o.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case o.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=s.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var i=e.buildItem(n);t.appendChild(i),!0===n.selected&&e.selectItem(i)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":i(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=g(n(0)),r=g(n(5)),o=n(4),s=g(o),a=g(n(16)),l=g(n(25)),c=g(n(24)),u=g(n(35)),d=g(n(6)),f=g(n(22)),p=g(n(7)),h=g(n(55)),O=g(n(42)),m=g(n(23));function g(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":s.default,"blots/block/embed":o.BlockEmbed,"blots/break":a.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":O.default,"modules/keyboard":m.default}),i.default.register(s.default,a.default,c.default,d.default,f.default,p.default),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e){this.domNode=e,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new i.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return i.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,r){var o=this.isolate(e,t);if(null!=i.query(n,i.Scope.BLOT)&&r)o.wrap(n,r);else if(null!=i.query(n,i.Scope.ATTRIBUTE)){var s=i.create(this.statics.scope);o.wrap(s),s.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?i.create("text",t):i.create(t,n),o=this.split(e);this.parent.insertBefore(r,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[i.DATA_KEY]&&delete this.domNode[i.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?i.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?i.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(32),o=n(33),s=n(1),a=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=i.default.keys(this.domNode),n=r.default.keys(this.domNode),a=o.default.keys(this.domNode);t.concat(n).concat(a).forEach((function(t){var n=s.query(t,s.Scope.ATTRIBUTE);n instanceof i.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var i=t.attributes[n].value(t.domNode);e.format(n,i)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function o(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){o(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(o(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=s},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function o(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return i(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();r.DEFAULTS={modules:{}},r.themes={default:r},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=a(n(0)),s=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}var l="\ufeff",c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,i=e.data.split(l).join("");if(e===this.leftGuard)if(this.prev instanceof s.default){var r=this.prev.length();this.prev.insertAt(r,i),t={startNode:this.prev.domNode,startOffset:r+i.length}}else n=document.createTextNode(i),this.parent.insertBefore(o.default.create(n),this),t={startNode:n,startOffset:i.length};else e===this.rightGuard&&(this.next instanceof s.default?(this.next.insertAt(0,i),t={startNode:this.next.domNode,startOffset:i.length}):(n=document.createTextNode(i),this.parent.insertBefore(o.default.create(n),this.next),t={startNode:n,startOffset:i.length}));return e.data=l,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var i=n.restore(e.target);i&&(t.range=i)}}))}}]),t}(o.default.Embed);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var i,r=n(0),o=(i=r)&&i.__esModule?i:{default:i},s={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new o.default.Attributor.Attribute("align","align",s),l=new o.default.Attributor.Class("align","ql-align",s),c=new o.default.Attributor.Style("align","text-align",s);t.AlignAttribute=a,t.AlignClass=l,t.AlignStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var i,r=n(0),o=(i=r)&&i.__esModule?i:{default:i},s=n(26),a=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),l=new s.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var i,r=n(0),o=(i=r)&&i.__esModule?i:{default:i},s={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},a=new o.default.Attributor.Attribute("direction","dir",s),l=new o.default.Attributor.Class("direction","ql-direction",s),c=new o.default.Attributor.Style("direction","direction",s);t.DirectionAttribute=a,t.DirectionClass=l,t.DirectionStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(0),a=(i=s)&&i.__esModule?i:{default:i};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new a.default.Attributor.Class("font","ql-font",u),f=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"value",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style),p=new f("font","font-family",u);t.FontStyle=p,t.FontClass=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var i,r=n(0),o=(i=r)&&i.__esModule?i:{default:i},s=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=s,t.SizeStyle=a},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=s(n(0)),o=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.lastRecorded=0,i.ignoreChange=!1,i.clear(),i.quill.on(o.default.events.EDITOR_CHANGE,(function(e,t,n,r){e!==o.default.events.TEXT_CHANGE||i.ignoreChange||(i.options.userOnly&&r!==o.default.sources.USER?i.transform(t):i.record(t,n))})),i.quill.keyboard.addBinding({key:"Z",shortKey:!0},i.undo.bind(i)),i.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},i.redo.bind(i)),/Win/i.test(navigator.platform)&&i.quill.keyboard.addBinding({key:"Y",shortKey:!0},i.redo.bind(i)),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],o.default.sources.USER),this.ignoreChange=!1;var i=l(n[e]);this.quill.setSelection(i)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=i;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(s(n(9)).default);function l(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=r.default.query(e,r.default.Scope.BLOCK)})))}(e)&&(n-=1),n}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=a,t.getLastChangeIndex=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=h(n(3)),s=h(n(2)),a=h(n(8)),l=h(n(23)),c=h(n(34)),u=h(n(59)),d=h(n(60)),f=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],v=[!1,"serif","monospace"],w=["1","2","3",!1],$=["small",!1,"large","huge"],_=function(e){function t(e,n){O(this,t);var i=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==i.tooltip||i.tooltip.root.contains(n.target)||document.activeElement===i.tooltip.textbox||i.quill.hasFocus()||i.tooltip.hide(),null!=i.pickers&&i.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),i}return g(t,e),i(t,[{key:"addModule",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var i=e.value||"";null!=i&&t[n][i]&&(e.innerHTML=t[n][i])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&S(e,y),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&S(e,b,"background"===n?"#ffffff":"#000000"),new u.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?S(e,v):e.classList.contains("ql-header")?S(e,w):e.classList.contains("ql-size")&&S(e,$)),new f.default(e)})),this.quill.on(a.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(c.default);_.DEFAULTS=(0,o.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var i=e.quill.getSelection(!0);e.quill.updateContents((new s.default).retain(i.index).delete(i.length).insert({image:n.target.result}),a.default.sources.USER),e.quill.setSelection(i.index+1,a.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var x=function(e){function t(e,n){O(this,t);var i=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.textbox=i.root.querySelector('input[type="text"]'),i.listen(),i}return g(t,e),i(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var i=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,a.default.sources.USER)),this.quill.root.scrollTop=i;break;case"video":t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/),n=t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var r=this.quill.getSelection(!0);if(null!=r){var o=r.index+r.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),n,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",a.default.sources.USER),this.quill.setSelection(o+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var i=document.createElement("option");t===n?i.setAttribute("selected","selected"):i.setAttribute("value",t),e.appendChild(i)}))}t.BaseTooltip=x,t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,i=this.iterator();n=i();){var r=n.length();if(e<r||t&&e===r&&(null==n.next||0!==n.next.length()))return[n,e];e-=r}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var i,r=this.find(e),o=r[0],s=e-r[1],a=this.iterator(o);(i=a())&&s<e+t;){var l=i.length();e>s?n(i,e-s,Math.min(t,s+l-e)):n(i,0,Math.min(l,e+t-s)),s+=l}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,i=this.iterator();n=i();)t=e(t,n);return t},e}();t.default=i},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),s=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,i,r){this.update(),e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.insertAt=function(t,n,i){this.update(),e.prototype.insertAt.call(this,t,n,i)},t.prototype.optimize=function(t,n){var i=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var a=function(e,t){void 0===t&&(t=!0),null!=e&&e!==i&&null!=e.domNode.parentNode&&(null==e.domNode[s.DATA_KEY].mutations&&(e.domNode[s.DATA_KEY].mutations=[]),t&&a(e.parent))},l=function(e){null!=e.domNode[s.DATA_KEY]&&null!=e.domNode[s.DATA_KEY].mutations&&(e instanceof o.default&&e.children.forEach(l),e.optimize(n))},c=t,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=s.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(a(s.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=s.find(e,!1);a(t,!1),t instanceof o.default&&t.children.forEach((function(e){a(e,!1)}))}))):"attributes"===e.type&&a(t.prev)),a(t))})),this.children.forEach(l),r=(c=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,n){var i=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=s.find(e.target,!0);return null==t?null:null==t.domNode[s.DATA_KEY].mutations?(t.domNode[s.DATA_KEY].mutations=[e],t):(t.domNode[s.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==i&&null!=e.domNode[s.DATA_KEY]&&e.update(e.domNode[s.DATA_KEY].mutations||[],n)})),null!=this.domNode[s.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="DIV",t}(o.default);t.default=l},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),s=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,i){var r=this;n!==this.statics.blotName||i?e.prototype.format.call(this,n,i):(this.children.forEach((function(e){e instanceof o.default||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,i,r){null!=this.formats()[i]||s.query(i,s.Scope.ATTRIBUTE)?this.isolate(t,n).format(i,r):e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var i=this.formats();if(0===Object.keys(i).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(i,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=s.Scope.INLINE_BLOT,t.tagName="SPAN",t}(o.default);t.default=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),s=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var i=s.query(t.blotName).tagName;if(n.tagName!==i)return e.formats.call(this,n)},t.prototype.format=function(n,i){null!=s.query(n,s.Scope.BLOCK)&&(n!==this.statics.blotName||i?e.prototype.format.call(this,n,i):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,i,r){null!=s.query(i,s.Scope.BLOCK)?this.format(i,r):e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.insertAt=function(t,n,i){if(null==i||null!=s.query(n,s.Scope.INLINE))e.prototype.insertAt.call(this,t,n,i);else{var r=this.split(t),o=s.create(n,i);r.parent.insertBefore(o,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=s.Scope.BLOCK_BLOT,t.tagName="P",t}(o.default);t.default=a},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,i,r){0===t&&n===this.length()?this.format(i,r):e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=o},function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(19),s=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,i){null==i?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,i)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=s.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=s.Scope.INLINE_BLOT,t}(o.default);t.default=a},function(e,t,n){"use strict";var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return-1!==i&&i===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),i=n.length>>>0,r=arguments[1],o=0;o<i;o++)if(t=n[o],e.call(r,t,o,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1;function i(e,t,l){if(e==t)return e?[[0,e]]:[];(l<0||e.length<l)&&(l=null);var u=o(e,t),d=e.substring(0,u);u=s(e=e.substring(u),t=t.substring(u));var f=e.substring(e.length-u),p=function(e,t){var a;if(!e)return[[1,t]];if(!t)return[[n,e]];var l=e.length>t.length?e:t,c=e.length>t.length?t:e,u=l.indexOf(c);if(-1!=u)return a=[[1,l.substring(0,u)],[0,c],[1,l.substring(u+c.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==c.length)return[[n,e],[1,t]];var d=function(e,t){var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length<n.length)return null;function r(e,t,n){for(var i,r,a,l,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(c,u+1));){var f=o(e.substring(n),t.substring(u)),p=s(e.substring(0,n),t.substring(0,u));d.length<p+f&&(d=t.substring(u-p,u)+t.substring(u,u+f),i=e.substring(0,n-p),r=e.substring(n+f),a=t.substring(0,u-p),l=t.substring(u+f))}return 2*d.length>=e.length?[i,r,a,l,d]:null}var a,l,c,u,d,f=r(n,i,Math.ceil(n.length/4)),p=r(n,i,Math.ceil(n.length/2));if(!f&&!p)return null;a=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(l=a[0],c=a[1],u=a[2],d=a[3]):(u=a[0],d=a[1],l=a[2],c=a[3]);var h=a[4];return[l,c,u,d,h]}(e,t);if(d){var f=d[0],p=d[1],h=d[2],O=d[3],m=d[4],g=i(f,h),y=i(p,O);return g.concat([[0,m]],y)}return function(e,t){for(var i=e.length,o=t.length,s=Math.ceil((i+o)/2),a=s,l=2*s,c=new Array(l),u=new Array(l),d=0;d<l;d++)c[d]=-1,u[d]=-1;c[a+1]=0,u[a+1]=0;for(var f=i-o,p=f%2!=0,h=0,O=0,m=0,g=0,y=0;y<s;y++){for(var b=-y+h;b<=y-O;b+=2){for(var v=a+b,w=(Q=b==-y||b!=y&&c[v-1]<c[v+1]?c[v+1]:c[v-1]+1)-b;Q<i&&w<o&&e.charAt(Q)==t.charAt(w);)Q++,w++;if(c[v]=Q,Q>i)O+=2;else if(w>o)h+=2;else if(p&&(x=a+f-b)>=0&&x<l&&-1!=u[x]&&Q>=(_=i-u[x]))return r(e,t,Q,w)}for(var $=-y+m;$<=y-g;$+=2){for(var _,x=a+$,S=(_=$==-y||$!=y&&u[x-1]<u[x+1]?u[x+1]:u[x-1]+1)-$;_<i&&S<o&&e.charAt(i-_-1)==t.charAt(o-S-1);)_++,S++;if(u[x]=_,_>i)g+=2;else if(S>o)m+=2;else if(!p){var Q;if((v=a+f-$)>=0&&v<l&&-1!=c[v])if(w=a+(Q=c[v])-v,Q>=(_=i-_))return r(e,t,Q,w)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-u),t=t.substring(0,t.length-u));return d&&p.unshift([0,d]),f&&p.push([0,f]),a(p),null!=l&&(p=function(e,t){var i=function(e,t){if(0===t)return[0,e];for(var i=0,r=0;r<e.length;r++){var o=e[r];if(o[0]===n||0===o[0]){var s=i+o[1].length;if(t===s)return[r+1,e];if(t<s){e=e.slice();var a=t-i,l=[o[0],o[1].slice(0,a)],c=[o[0],o[1].slice(a)];return e.splice(r,1,l,c),[r+1,e]}i=s}}throw new Error("cursor_pos is out of bounds!")}(e,t),r=i[1],o=i[0],s=r[o],a=r[o+1];if(null==s)return e;if(0!==s[0])return e;if(null!=a&&s[1]+a[1]===a[1]+s[1])return r.splice(o,2,a,s),c(r,o,2);if(null!=a&&0===a[1].indexOf(s[1])){r.splice(o,2,[a[0],s[1]],[0,s[1]]);var l=a[1].slice(s[1].length);return l.length>0&&r.splice(o+2,0,[a[0],l]),c(r,o,3)}return e}(p,l)),p=function(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},r=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},o=2;o<e.length;o+=1)0===e[o-2][0]&&r(e[o-2][1])&&e[o-1][0]===n&&i(e[o-1][1])&&1===e[o][0]&&i(e[o][1])&&(t=!0,e[o-1][1]=e[o-2][1].slice(-1)+e[o-1][1],e[o][1]=e[o-2][1].slice(-1)+e[o][1],e[o-2][1]=e[o-2][1].slice(0,-1));if(!t)return e;var s=[];for(o=0;o<e.length;o+=1)e[o][1].length>0&&s.push(e[o]);return s}(p)}function r(e,t,n,r){var o=e.substring(0,n),s=t.substring(0,r),a=e.substring(n),l=t.substring(r),c=i(o,s),u=i(a,l);return c.concat(u)}function o(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,o=0;n<r;)e.substring(o,r)==t.substring(o,r)?o=n=r:i=r,r=Math.floor((i-n)/2+n);return r}function s(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,o=0;n<r;)e.substring(e.length-r,e.length-o)==t.substring(t.length-r,t.length-o)?o=n=r:i=r,r=Math.floor((i-n)/2+n);return r}function a(e){e.push([0,""]);for(var t,i=0,r=0,l=0,c="",u="";i<e.length;)switch(e[i][0]){case 1:l++,u+=e[i][1],i++;break;case n:r++,c+=e[i][1],i++;break;case 0:r+l>1?(0!==r&&0!==l&&(0!==(t=o(u,c))&&(i-r-l>0&&0==e[i-r-l-1][0]?e[i-r-l-1][1]+=u.substring(0,t):(e.splice(0,0,[0,u.substring(0,t)]),i++),u=u.substring(t),c=c.substring(t)),0!==(t=s(u,c))&&(e[i][1]=u.substring(u.length-t)+e[i][1],u=u.substring(0,u.length-t),c=c.substring(0,c.length-t))),0===r?e.splice(i-l,r+l,[1,u]):0===l?e.splice(i-r,r+l,[n,c]):e.splice(i-r-l,r+l,[n,c],[1,u]),i=i-r-l+(r?1:0)+(l?1:0)+1):0!==i&&0==e[i-1][0]?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,l=0,r=0,c="",u=""}""===e[e.length-1][1]&&e.pop();var d=!1;for(i=1;i<e.length-1;)0==e[i-1][0]&&0==e[i+1][0]&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),d=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),d=!0)),i++;d&&a(e)}var l=i;function c(e,t,n){for(var i=t+n-1;i>=0&&i>=t-1;i--)if(i+1<e.length){var r=e[i],o=e[i+1];r[0]===o[1]&&e.splice(i,2,[r[0],r[1]+o[1]])}return e}l.INSERT=1,l.DELETE=n,l.EQUAL=0,e.exports=l},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function i(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?i:r).supported=i,t.unsupported=r},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1)),s.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},s.prototype.listeners=function(e,t){var n=i?i+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,s=r.length,a=new Array(s);o<s;o++)a[o]=r[o].fn;return a},s.prototype.emit=function(e,t,n,r,o,s){var a=i?i+e:e;if(!this._events[a])return!1;var l,c,u=this._events[a],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,s),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var f,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){var r=new o(t,n||this),s=i?i+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],r]:this._events[s].push(r):(this._events[s]=r,this._eventsCount++),this},s.prototype.once=function(e,t,n){var r=new o(t,n||this,!0),s=i?i+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],r]:this._events[s].push(r):(this._events[s]=r,this._eventsCount++),this},s.prototype.removeListener=function(e,t,n,o){var s=i?i+e:e;if(!this._events[s])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[s],this;var a=this._events[s];if(a.fn)a.fn!==t||o&&!a.once||n&&a.context!==n||(0==--this._eventsCount?this._events=new r:delete this._events[s]);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==t||o&&!a[l].once||n&&a[l].context!==n)&&c.push(a[l]);c.length?this._events[s]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new r:delete this._events[s]}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prototype.setMaxListeners=function(){return this},s.prefixed=i,s.EventEmitter=s,void 0!==e&&(e.exports=s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=b(n(3)),a=b(n(2)),l=b(n(0)),c=b(n(5)),u=b(n(10)),d=b(n(9)),f=n(36),p=n(37),h=b(n(13)),O=n(26),m=n(38),g=n(39),y=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=(0,u.default)("quill:clipboard"),$="__ql-matcher",_=[[Node.TEXT_NODE,z],[Node.TEXT_NODE,C],["br",function(e,t){return T(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,C],[Node.ELEMENT_NODE,N],[Node.ELEMENT_NODE,A],[Node.ELEMENT_NODE,j],[Node.ELEMENT_NODE,function(e,t){var n={},i=e.style||{};return i.fontStyle&&"italic"===P(e).fontStyle&&(n.italic=!0),i.fontWeight&&(P(e).fontWeight.startsWith("bold")||parseInt(P(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=k(t,n)),parseFloat(i.textIndent||0)>0&&(t=(new a.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=l.default.query(e);if(null==n||"list-item"!==n.blotName||!T(t,"\n"))return t;for(var i=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(l.default.query(r)||{}).blotName&&(i+=1),r=r.parentNode;return i<=0?t:t.compose((new a.default).retain(t.length()-1).retain(1,{indent:i}))}],["b",E.bind(E,"bold")],["i",E.bind(E,"italic")],["style",function(){return new a.default}]],x=[f.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=[f.AlignStyle,p.BackgroundStyle,O.ColorStyle,m.DirectionStyle,g.FontStyle,y.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),Q=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.root.addEventListener("paste",i.onPaste.bind(i)),i.container=i.quill.addContainer("ql-clipboard"),i.container.setAttribute("contenteditable",!0),i.container.setAttribute("tabindex",-1),i.matchers=[],_.concat(i.options.matchers).forEach((function(e){var t=r(e,2),o=t[0],s=t[1];(n.matchVisual||s!==A)&&i.addMatcher(o,s)})),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new a.default).insert(n,v({},h.default.blotName,t[h.default.blotName]))}var i=this.prepareMatching(),o=r(i,2),s=o[0],l=o[1],c=R(this.container,s,l);return T(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new a.default).retain(c.length()-1).delete(1))),w.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT);else{var i=this.convert(t);this.quill.updateContents((new a.default).retain(e).concat(i),n),this.quill.setSelection(e+i.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),i=(new a.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){i=i.concat(t.convert()).delete(n.length),t.quill.updateContents(i,c.default.sources.USER),t.quill.setSelection(i.length()-n.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(i){var o=r(i,2),s=o[0],a=o[1];switch(s){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(s),(function(e){e[$]=e[$]||[],e[$].push(a)}))}})),[t,n]}}]),t}(d.default);function k(e,t,n){return"object"===(void 0===t?"undefined":i(t))?Object.keys(t).reduce((function(e,n){return k(e,n,t[n])}),e):e.reduce((function(e,i){return i.attributes&&i.attributes[t]?e.push(i):e.insert(i.insert,(0,s.default)({},v({},t,n),i.attributes))}),new a.default)}function P(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function T(e,t){for(var n="",i=e.ops.length-1;i>=0&&n.length<t.length;--i){var r=e.ops[i];if("string"!=typeof r.insert)break;n=r.insert+n}return n.slice(-1*t.length)===t}function q(e){if(0===e.childNodes.length)return!1;var t=P(e);return["block","list-item"].indexOf(t.display)>-1}function R(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new a.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(i,r){var o=R(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(r,e)}),o),o=(r[$]||[]).reduce((function(e,t){return t(r,e)}),o)),i.concat(o)}),new a.default):new a.default}function E(e,t,n){return k(n,e,!0)}function j(e,t){var n=l.default.Attributor.Attribute.keys(e),i=l.default.Attributor.Class.keys(e),r=l.default.Attributor.Style.keys(e),o={};return n.concat(i).concat(r).forEach((function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(e),o[n.attrName])||(null==(n=x[t])||n.attrName!==t&&n.keyName!==t||(o[n.attrName]=n.value(e)||void 0),null==(n=S[t])||n.attrName!==t&&n.keyName!==t||(n=S[t],o[n.attrName]=n.value(e)||void 0))})),Object.keys(o).length>0&&(t=k(t,o)),t}function N(e,t){var n=l.default.query(e);if(null==n)return t;if(n.prototype instanceof l.default.Embed){var i={},r=n.value(e);null!=r&&(i[n.blotName]=r,t=(new a.default).insert(i,n.formats(e)))}else"function"==typeof n.formats&&(t=k(t,n.blotName,n.formats(e)));return t}function C(e,t){return T(t,"\n")||(q(e)||t.length()>0&&e.nextSibling&&q(e.nextSibling))&&t.insert("\n"),t}function A(e,t){if(q(e)&&null!=e.nextElementSibling&&!T(t,"\n\n")){var n=e.offsetHeight+parseFloat(P(e).marginTop)+parseFloat(P(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function z(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!P(e.parentNode).whiteSpace.startsWith("pre")){var i=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,i.bind(i,!0)),(null==e.previousSibling&&q(e.parentNode)||null!=e.previousSibling&&q(e.previousSibling))&&(n=n.replace(/^\s+/,i.bind(i,!1))),(null==e.nextSibling&&q(e.parentNode)||null!=e.nextSibling&&q(e.nextSibling))&&(n=n.replace(/\s+$/,i.bind(i,!1)))}return t.insert(n)}Q.DEFAULTS={matchers:[],matchVisual:!0},t.default=Q,t.matchAttributor=j,t.matchBlot=N,t.matchNewline=C,t.matchSpacing=A,t.matchText=z},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(6);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((i=s)&&i.__esModule?i:{default:i}).default);c.blotName="bold",c.tagName=["STRONG","B"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=u(n(2)),s=u(n(0)),a=u(n(5)),l=u(n(10)),c=u(n(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=(0,l.default)("quill:toolbar"),p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r,o=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(o.options.container)){var s=document.createElement("div");O(s,o.options.container),e.container.parentNode.insertBefore(s,e.container),o.container=s}else"string"==typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(e){o.addHandler(e,o.options.handlers[e])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(e){o.attach(e)})),o.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t){e===a.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange(),t=i(e,1)[0];o.update(t)})),o):(r=f.error("Container required for toolbar",o.options),d(o,r))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void f.warn("ignoring attaching to disabled format",n,e);if(null==s.default.query(n))return void f.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var l=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var c=e.options[e.selectedIndex];l=!c.hasAttribute("selected")&&(c.value||!1)}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=i(u,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,l);else if(s.default.query(n).prototype instanceof s.default.Embed){if(!(l=prompt("Enter "+n)))return;t.quill.updateContents((new o.default).retain(d.index).delete(d.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,l)),a.default.sources.USER)}else t.quill.format(n,l,a.default.sources.USER);t.update(d)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=i(n,2),o=r[0],s=r[1];if("SELECT"===s.tagName){var a=void 0;if(null==e)a=null;else if(null==t[o])a=s.querySelector("option[selected]");else if(!Array.isArray(t[o])){var l=t[o];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),a=s.querySelector('option[value="'+l+'"]')}null==a?(s.value="",s.selectedIndex=-1):a.selected=!0}else if(null==e)s.classList.remove("ql-active");else if(s.hasAttribute("value")){var c=t[o]===s.getAttribute("value")||null!=t[o]&&t[o].toString()===s.getAttribute("value")||null==t[o]&&!s.getAttribute("value");s.classList.toggle("ql-active",c)}else s.classList.toggle("ql-active",null!=t[o])}))}}]),t}(c.default);function h(e,t,n){var i=document.createElement("button");i.setAttribute("type","button"),i.classList.add("ql-"+t),null!=n&&(i.value=n),e.appendChild(i)}function O(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)h(n,e);else{var t=Object.keys(e)[0],i=e[t];Array.isArray(i)?function(e,t,n){var i=document.createElement("select");i.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),i.appendChild(t)})),e.appendChild(i)}(n,t,i):h(n,t,i)}})),e.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=s.default.query(t,s.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,a.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",a.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",e,a.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),i=parseInt(n.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",i+r,a.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,a.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",e,a.default.sources.USER)}}},t.default=p,t.addControls=O},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(28),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.label.innerHTML=n,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"buildItem",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var i=this.label.querySelector(".ql-color-label"),r=e&&e.getAttribute("data-value")||"";i&&("line"===i.tagName?i.style.stroke=r:i.style.fill=r)}}]),t}(((i=s)&&i.__esModule?i:{default:i}).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(28),a=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"selectItem",value:function(e,n){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((i=s)&&i.__esModule?i:{default:i}).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(){function e(t,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"})),this.hide()}return i(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var i=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),o=0;if(r.right>i.right&&(o=i.right-r.right,this.root.style.left=t+o+"px"),r.left<i.left&&(o=i.left-r.left,this.root.style.left=t+o+"px"),r.bottom>i.bottom){var s=r.bottom-r.top,a=e.bottom-e.top+s;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=p(n(3)),a=p(n(8)),l=n(43),c=p(l),u=p(n(27)),d=n(15),f=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var i=O(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.container.classList.add("ql-snow"),i}return m(t,e),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(c.default);y.DEFAULTS=(0,s.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){h(this,t);var i=O(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.preview=i.root.querySelector("a.ql-preview"),i}return m(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===a.default.sources.USER){var o=e.quill.scroll.descendant(u.default,t.index),s=i(o,2),l=s[0],c=s[1];if(null!=l){e.linkRange=new d.Range(t.index-c,l.length());var f=u.default.formats(l.domNode);return e.preview.textContent=f,e.preview.setAttribute("href",f),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(l.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=C(n(29)),r=n(36),o=n(38),s=n(64),a=C(n(65)),l=C(n(66)),c=n(67),u=C(c),d=n(37),f=n(26),p=n(39),h=n(40),O=C(n(56)),m=C(n(68)),g=C(n(27)),y=C(n(69)),b=C(n(70)),v=C(n(71)),w=C(n(72)),$=C(n(73)),_=n(13),x=C(_),S=C(n(74)),Q=C(n(75)),k=C(n(57)),P=C(n(41)),T=C(n(28)),q=C(n(59)),R=C(n(60)),E=C(n(61)),j=C(n(108)),N=C(n(62));function C(e){return e&&e.__esModule?e:{default:e}}i.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),i.default.register({"formats/align":r.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":s.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":a.default,"formats/code-block":x.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":O.default,"formats/code":_.Code,"formats/italic":m.default,"formats/link":g.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":v.default,"formats/image":w.default,"formats/video":$.default,"formats/list/item":c.ListItem,"modules/formula":S.default,"modules/syntax":Q.default,"modules/toolbar":k.default,"themes/bubble":j.default,"themes/snow":N.default,"ui/icons":P.default,"ui/picker":T.default,"ui/icon-picker":R.default,"ui/color-picker":q.default,"ui/tooltip":E.default},!0),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(0),a=(i=s)&&i.__esModule?i:{default:i};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var i=this.value(e)||0;n="+1"===n?i+1:i-1}return 0===n?(this.remove(e),!0):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(a.default.Attributor.Class),d=new u("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(4);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((i=r)&&i.__esModule?i:{default:i}).default);a.blotName="blockquote",a.tagName="blockquote",t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(4);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return s(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((i=o)&&i.__esModule?i:{default:i}).default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=l(n(0)),s=l(n(4)),a=l(n(25));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),i(t,[{key:"format",value:function(e,n){e!==p.blotName||n?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(o.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(s.default);f.blotName="list-item",f.tagName="LI";var p=function(e){function t(e){c(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=function(t){if(t.target.parentNode===e){var i=n.statics.formats(e),r=o.default.find(t.target);"checked"===i?r.format("list","unchecked"):"unchecked"===i&&r.format("list","checked")}};return e.addEventListener("touchstart",i),e.addEventListener("mousedown",i),n}return d(t,e),i(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",i=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||i.setAttribute("data-checked","checked"===e),i}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),i(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof f)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var i=null==n?this.length():n.offset(this),o=this.split(i);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(a.default);p.blotName="list",p.scope=o.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[f],t.ListItem=f,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(56);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((i=r)&&i.__esModule?i:{default:i}).default);a.blotName="italic",a.tagName=["EM","I"],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(6);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((i=s)&&i.__esModule?i:{default:i}).default);c.blotName="script",c.tagName=["SUB","SUP"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(6);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((i=r)&&i.__esModule?i:{default:i}).default);a.blotName="strike",a.tagName="S",t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(6);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((i=r)&&i.__esModule?i:{default:i}).default);a.blotName="underline",a.tagName="U",t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(0),a=(i=s)&&i.__esModule?i:{default:i},l=n(27);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=["alt","height","width"],f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(4),a=n(27),l=(i=a)&&i.__esModule?i:{default:i};function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=["height","width"],f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(s.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=l(n(35)),s=l(n(5)),a=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),i(t,null,[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(o.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var p=function(e){function t(){c(this,t);var e=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),i(t,null,[{key:"register",value:function(){s.default.register(f,!0)}}]),t}(a.default);t.FormulaBlot=f,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=l(n(0)),s=l(n(5)),a=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),i(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(l(n(13)).default);f.className="ql-syntax";var p=new o.default.Attributor.Class("token","hljs",{scope:o.default.Scope.INLINE}),h=function(e){function t(e,n){c(this,t);var i=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof i.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return i.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){i.highlight(),r=null}),i.options.interval)})),i.highlight(),i}return d(t,e),i(t,null,[{key:"register",value:function(){s.default.register(p,!0),s.default.register(f,!0)}}]),i(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(s.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(s.default.sources.SILENT),null!=t&&this.quill.setSelection(t,s.default.sources.SILENT)}}}]),t}(a.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var i=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=d(n(3)),s=d(n(8)),a=n(43),l=d(a),c=n(15),u=d(n(41));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var O=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(e){function t(e,n){f(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=O);var i=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.container.classList.add("ql-bubble"),i}return h(t,e),r(t,[{key:"extendToolbar",value:function(e){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}(l.default);m.DEFAULTS=(0,o.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(e){function t(e,n){f(this,t);var i=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t,n,r){if(e===s.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===s.default.sources.USER){i.show(),i.root.style.left="0px",i.root.style.width="",i.root.style.width=i.root.offsetWidth+"px";var o=i.quill.getLines(t.index,t.length);if(1===o.length)i.position(i.quill.getBounds(t));else{var a=o[o.length-1],l=i.quill.getIndex(a),u=Math.min(a.length()-1,t.index+t.length-l),d=i.quill.getBounds(new c.Range(l,u));i.position(d)}}else document.activeElement!==i.textbox&&i.quill.hasFocus()&&i.hide()})),i}return h(t,e),r(t,[{key:"listen",value:function(){var e=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(a.BaseTooltip);g.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=g,t.default=m},function(e,t,n){e.exports=n(63)}]).default},e.exports=t()},8660:(e,t,n)=>{e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t){e.exports=n(9196)},function(e,t){e.exports=n(6292)},function(e,t,n){e.exports=n(5)()},function(e,t){e.exports=n(1850)},function(e,t,n){e.exports=n(7)},function(e,t,n){"use strict";var i=n(6);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,s){if(s!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t);var i=n(2),r=n.n(i),o=n(1),s=n.n(o),a=n(0),l=n.n(a);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function u(e){var t=e.onClickPrev,n=e.onClickSwitch,i=e.onClickNext,r=e.switchContent,o=e.switchColSpan,s=e.switchProps;return l.a.createElement("tr",null,l.a.createElement("th",{className:"rdtPrev",onClick:t},l.a.createElement("span",null,"‹")),l.a.createElement("th",c({className:"rdtSwitch",colSpan:o,onClick:n},s),r),l.a.createElement("th",{className:"rdtNext",onClick:i},l.a.createElement("span",null,"›")))}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(r,e);var t,n,i=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return O(this,n)}}(r);function r(){var e;f(this,r);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return y(m(e=i.call.apply(i,[this].concat(n))),"_setDate",(function(t){e.props.updateDate(t)})),e}return t=r,(n=[{key:"render",value:function(){return l.a.createElement("div",{className:"rdtDays"},l.a.createElement("table",null,l.a.createElement("thead",null,this.renderNavigation(),this.renderDayHeaders()),l.a.createElement("tbody",null,this.renderDays()),this.renderFooter()))}},{key:"renderNavigation",value:function(){var e=this,t=this.props.viewDate,n=t.localeData();return l.a.createElement(u,{onClickPrev:function(){return e.props.navigate(-1,"months")},onClickSwitch:function(){return e.props.showView("months")},onClickNext:function(){return e.props.navigate(1,"months")},switchContent:n.months(t)+" "+t.year(),switchColSpan:5,switchProps:{"data-value":this.props.viewDate.month()}})}},{key:"renderDayHeaders",value:function(){var e=function(e){var t=e.firstDayOfWeek(),n=[],i=0;return e._weekdaysMin.forEach((function(e){n[(7+i++-t)%7]=e})),n}(this.props.viewDate.localeData()).map((function(e,t){return l.a.createElement("th",{key:e+t,className:"dow"},e)}));return l.a.createElement("tr",null,e)}},{key:"renderDays",value:function(){var e=this.props.viewDate,t=e.clone().startOf("month"),n=e.clone().endOf("month"),i=[[],[],[],[],[],[]],r=e.clone().subtract(1,"months");r.date(r.daysInMonth()).startOf("week");for(var o=r.clone().add(42,"d"),s=0;r.isBefore(o);)v(i,s++).push(this.renderDay(r,t,n)),r.add(1,"d");return i.map((function(e,t){return l.a.createElement("tr",{key:"".concat(o.month(),"_").concat(t)},e)}))}},{key:"renderDay",value:function(e,t,n){var i=this.props.selectedDate,r={key:e.format("M_D"),"data-value":e.date(),"data-month":e.month(),"data-year":e.year()},o="rdtDay";return e.isBefore(t)?o+=" rdtOld":e.isAfter(n)&&(o+=" rdtNew"),i&&e.isSame(i,"day")&&(o+=" rdtActive"),e.isSame(this.props.moment(),"day")&&(o+=" rdtToday"),this.props.isValidDate(e)?r.onClick=this._setDate:o+=" rdtDisabled",r.className=o,this.props.renderDay(r,e.clone(),i&&i.clone())}},{key:"renderFooter",value:function(){var e=this;if(this.props.timeFormat){var t=this.props.viewDate;return l.a.createElement("tfoot",null,l.a.createElement("tr",null,l.a.createElement("td",{onClick:function(){return e.props.showView("time")},colSpan:7,className:"rdtTimeToggle"},t.format(this.props.timeFormat))))}}}])&&p(t.prototype,n),r}(l.a.Component);function v(e,t){return e[Math.floor(t/7)]}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?Q(e):t}function Q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}y(b,"defaultProps",{isValidDate:function(){return!0},renderDay:function(e,t){return l.a.createElement("td",e,t.date())}});var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}(r,e);var t,n,i=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=k(e);if(t){var r=k(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return S(this,n)}}(r);function r(){var e;$(this,r);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return P(Q(e=i.call.apply(i,[this].concat(n))),"_updateSelectedMonth",(function(t){e.props.updateDate(t)})),e}return t=r,(n=[{key:"render",value:function(){return l.a.createElement("div",{className:"rdtMonths"},l.a.createElement("table",null,l.a.createElement("thead",null,this.renderNavigation())),l.a.createElement("table",null,l.a.createElement("tbody",null,this.renderMonths())))}},{key:"renderNavigation",value:function(){var e=this,t=this.props.viewDate.year();return l.a.createElement(u,{onClickPrev:function(){return e.props.navigate(-1,"years")},onClickSwitch:function(){return e.props.showView("years")},onClickNext:function(){return e.props.navigate(1,"years")},switchContent:t,switchColSpan:"2"})}},{key:"renderMonths",value:function(){for(var e=[[],[],[]],t=0;t<12;t++)q(e,t).push(this.renderMonth(t));return e.map((function(e,t){return l.a.createElement("tr",{key:t},e)}))}},{key:"renderMonth",value:function(e){var t,n=this.props.selectedDate,i="rdtMonth";this.isDisabledMonth(e)?i+=" rdtDisabled":t=this._updateSelectedMonth,n&&n.year()===this.props.viewDate.year()&&n.month()===e&&(i+=" rdtActive");var r={key:e,className:i,"data-value":e,onClick:t};return this.props.renderMonth?this.props.renderMonth(r,e,this.props.viewDate.year(),this.props.selectedDate&&this.props.selectedDate.clone()):l.a.createElement("td",r,this.getMonthText(e))}},{key:"isDisabledMonth",value:function(e){var t=this.props.isValidDate;if(!t)return!1;for(var n=this.props.viewDate.clone().set({month:e}),i=n.endOf("month").date()+1;i-- >1;)if(t(n.date(i)))return!1;return!0}},{key:"getMonthText",value:function(e){var t,n=this.props.viewDate;return(t=n.localeData().monthsShort(n.month(e)).substring(0,3)).charAt(0).toUpperCase()+t.slice(1)}}])&&_(t.prototype,n),r}(l.a.Component);function q(e,t){return t<4?e[0]:t<8?e[1]:e[2]}function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?A(e):t}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&N(e,t)}(r,e);var t,n,i=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=z(e);if(t){var r=z(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return C(this,n)}}(r);function r(){var e;E(this,r);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return D(A(e=i.call.apply(i,[this].concat(n))),"disabledYearsCache",{}),D(A(e),"_updateSelectedYear",(function(t){e.props.updateDate(t)})),e}return t=r,(n=[{key:"render",value:function(){return l.a.createElement("div",{className:"rdtYears"},l.a.createElement("table",null,l.a.createElement("thead",null,this.renderNavigation())),l.a.createElement("table",null,l.a.createElement("tbody",null,this.renderYears())))}},{key:"renderNavigation",value:function(){var e=this,t=this.getViewYear();return l.a.createElement(u,{onClickPrev:function(){return e.props.navigate(-10,"years")},onClickSwitch:function(){return e.props.showView("years")},onClickNext:function(){return e.props.navigate(10,"years")},switchContent:"".concat(t,"-").concat(t+9)})}},{key:"renderYears",value:function(){for(var e=this.getViewYear(),t=[[],[],[]],n=e-1;n<e+11;n++)V(t,n-e).push(this.renderYear(n));return t.map((function(e,t){return l.a.createElement("tr",{key:t},e)}))}},{key:"renderYear",value:function(e){var t,n=this.getSelectedYear(),i="rdtYear";this.isDisabledYear(e)?i+=" rdtDisabled":t=this._updateSelectedYear,n===e&&(i+=" rdtActive");var r={key:e,className:i,"data-value":e,onClick:t};return this.props.renderYear(r,e,this.props.selectedDate&&this.props.selectedDate.clone())}},{key:"getViewYear",value:function(){return 10*parseInt(this.props.viewDate.year()/10,10)}},{key:"getSelectedYear",value:function(){return this.props.selectedDate&&this.props.selectedDate.year()}},{key:"isDisabledYear",value:function(e){var t=this.disabledYearsCache;if(void 0!==t[e])return t[e];var n=this.props.isValidDate;if(!n)return!1;for(var i=this.props.viewDate.clone().set({year:e}),r=i.endOf("year").dayOfYear()+1;r-- >1;)if(n(i.dayOfYear(r)))return t[e]=!1,!1;return t[e]=!0,!0}}])&&j(t.prototype,n),r}(l.a.Component);function V(e,t){return t<3?e[0]:t<7?e[1]:e[2]}function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(e,t){return!t||"object"!==M(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}D(W,"defaultProps",{renderYear:function(e,t){return l.a.createElement("td",e,t)}});var F={hours:{min:0,max:23,step:1},minutes:{min:0,max:59,step:1},seconds:{min:0,max:59,step:1},milliseconds:{min:0,max:999,step:1}},B=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&U(e,t)}(r,e);var t,n,i=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=L(e);if(t){var r=L(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return I(this,n)}}(r);function r(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=i.call(this,e)).constraints=(n=e.timeConstraints,o={},Object.keys(F).forEach((function(e){o[e]=G(G({},F[e]),n[e]||{})})),o),t.state=t.getTimeParts(e.selectedDate||e.viewDate),t}return t=r,(n=[{key:"render",value:function(){var e=this,t=[],n=this.state;return this.getCounters().forEach((function(i,r){r&&"ampm"!==i&&t.push(l.a.createElement("div",{key:"sep".concat(r),className:"rdtCounterSeparator"},":")),t.push(e.renderCounter(i,n[i]))})),l.a.createElement("div",{className:"rdtTime"},l.a.createElement("table",null,this.renderHeader(),l.a.createElement("tbody",null,l.a.createElement("tr",null,l.a.createElement("td",null,l.a.createElement("div",{className:"rdtCounters"},t))))))}},{key:"renderCounter",value:function(e,t){var n=this;return"hours"===e&&this.isAMPM()&&0==(t=(t-1)%12+1)&&(t=12),"ampm"===e&&(t=-1!==this.props.timeFormat.indexOf(" A")?this.props.viewDate.format("A"):this.props.viewDate.format("a")),l.a.createElement("div",{key:e,className:"rdtCounter"},l.a.createElement("span",{className:"rdtBtn",onMouseDown:function(t){return n.onStartClicking(t,"increase",e)}},"▲"),l.a.createElement("div",{className:"rdtCount"},t),l.a.createElement("span",{className:"rdtBtn",onMouseDown:function(t){return n.onStartClicking(t,"decrease",e)}},"▼"))}},{key:"renderHeader",value:function(){var e=this;if(this.props.dateFormat){var t=this.props.selectedDate||this.props.viewDate;return l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("td",{className:"rdtSwitch",colSpan:"4",onClick:function(){return e.props.showView("days")}},t.format(this.props.dateFormat))))}}},{key:"onStartClicking",value:function(e,t,n){var i=this;if(!e||!e.button||0===e.button){if("ampm"===n)return this.toggleDayPart();var r={},o=document.body;r[n]=this[t](n),this.setState(r),this.timer=setTimeout((function(){i.increaseTimer=setInterval((function(){r[n]=i[t](n),i.setState(r)}),70)}),500),this.mouseUpListener=function(){clearTimeout(i.timer),clearInterval(i.increaseTimer),i.props.setTime(n,parseInt(i.state[n],10)),o.removeEventListener("mouseup",i.mouseUpListener),o.removeEventListener("touchend",i.mouseUpListener)},o.addEventListener("mouseup",this.mouseUpListener),o.addEventListener("touchend",this.mouseUpListener)}}},{key:"toggleDayPart",value:function(){var e=parseInt(this.state.hours,10);e>=12?e-=12:e+=12,this.props.setTime("hours",e)}},{key:"increase",value:function(e){var t=this.constraints[e],n=parseInt(this.state[e],10)+t.step;return n>t.max&&(n=t.min+(n-(t.max+1))),H(e,n)}},{key:"decrease",value:function(e){var t=this.constraints[e],n=parseInt(this.state[e],10)-t.step;return n<t.min&&(n=t.max+1-(t.min-n)),H(e,n)}},{key:"getCounters",value:function(){var e=[],t=this.props.timeFormat;return-1!==t.toLowerCase().indexOf("h")&&(e.push("hours"),-1!==t.indexOf("m")&&(e.push("minutes"),-1!==t.indexOf("s")&&(e.push("seconds"),-1!==t.indexOf("S")&&e.push("milliseconds")))),this.isAMPM()&&e.push("ampm"),e}},{key:"isAMPM",value:function(){return-1!==this.props.timeFormat.toLowerCase().indexOf(" a")}},{key:"getTimeParts",value:function(e){var t=e.hours();return{hours:H("hours",t),minutes:H("minutes",e.minutes()),seconds:H("seconds",e.seconds()),milliseconds:H("milliseconds",e.milliseconds()),ampm:t<12?"am":"pm"}}},{key:"componentDidUpdate",value:function(e){this.props.selectedDate?this.props.selectedDate!==e.selectedDate&&this.setState(this.getTimeParts(this.props.selectedDate)):e.viewDate!==this.props.viewDate&&this.setState(this.getTimeParts(this.props.viewDate))}}])&&X(t.prototype,n),r}(l.a.Component);function H(e,t){for(var n={hours:1,minutes:2,seconds:2,milliseconds:3},i=t+"";i.length<n[e];)i="0"+i;return i}var K=n(3);function J(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var ee,te,ne=(void 0===ee&&(ee=0),function(){return++ee}),ie={},re={},oe=["touchstart","touchmove"];function se(e,t){var n=null;return-1!==oe.indexOf(t)&&te&&(n={passive:!e.props.preventDefault}),n}function ae(e){return(ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function de(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function fe(e,t,n){return t&&de(e.prototype,t),n&&de(e,n),e}function pe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&he(e,t)}function he(e,t){return(he=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=ye(e);if(t){var r=ye(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return me(this,n)}}function me(e,t){return!t||"object"!==ae(t)&&"function"!=typeof t?ge(e):t}function ge(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"default",(function(){return ke}));var ve="years",we="months",$e="days",_e="time",xe=r.a,Se=function(){},Qe=xe.oneOfType([xe.instanceOf(s.a),xe.instanceOf(Date),xe.string]),ke=function(e){pe(n,e);var t=Oe(n);function n(e){var i;return ue(this,n),be(ge(i=t.call(this,e)),"_renderCalendar",(function(){var e=i.props,t=i.state,n={viewDate:t.viewDate.clone(),selectedDate:i.getSelectedDate(),isValidDate:e.isValidDate,updateDate:i._updateDate,navigate:i._viewNavigate,moment:s.a,showView:i._showView};switch(t.currentView){case ve:return n.renderYear=e.renderYear,l.a.createElement(W,n);case we:return n.renderMonth=e.renderMonth,l.a.createElement(T,n);case $e:return n.renderDay=e.renderDay,n.timeFormat=i.getFormat("time"),l.a.createElement(b,n);default:return n.dateFormat=i.getFormat("date"),n.timeFormat=i.getFormat("time"),n.timeConstraints=e.timeConstraints,n.setTime=i._setTime,l.a.createElement(B,n)}})),be(ge(i),"_showView",(function(e,t){var n=(t||i.state.viewDate).clone(),r=i.props.onBeforeNavigate(e,i.state.currentView,n);r&&i.state.currentView!==r&&(i.props.onNavigate(r),i.setState({currentView:r}))})),be(ge(i),"viewToMethod",{days:"date",months:"month",years:"year"}),be(ge(i),"nextView",{days:"time",months:"days",years:"months"}),be(ge(i),"_updateDate",(function(e){var t=i.state.currentView,n=i.getUpdateOn(i.getFormat("date")),r=i.state.viewDate.clone();r[i.viewToMethod[t]](parseInt(e.target.getAttribute("data-value"),10)),"days"===t&&(r.month(parseInt(e.target.getAttribute("data-month"),10)),r.year(parseInt(e.target.getAttribute("data-year"),10)));var o={viewDate:r};t===n?(o.selectedDate=r.clone(),o.inputValue=r.format(i.getFormat("datetime")),void 0===i.props.open&&i.props.input&&i.props.closeOnSelect&&i._closeCalendar(),i.props.onChange(r.clone())):i._showView(i.nextView[t],r),i.setState(o)})),be(ge(i),"_viewNavigate",(function(e,t){var n=i.state.viewDate.clone();n.add(e,t),e>0?i.props.onNavigateForward(e,t):i.props.onNavigateBack(-e,t),i.setState({viewDate:n})})),be(ge(i),"_setTime",(function(e,t){var n=(i.getSelectedDate()||i.state.viewDate).clone();n[e](t),i.props.value||i.setState({selectedDate:n,viewDate:n.clone(),inputValue:n.format(i.getFormat("datetime"))}),i.props.onChange(n)})),be(ge(i),"_openCalendar",(function(){i.isOpen()||i.setState({open:!0},i.props.onOpen)})),be(ge(i),"_closeCalendar",(function(){i.isOpen()&&i.setState({open:!1},(function(){i.props.onClose(i.state.selectedDate||i.state.inputValue)}))})),be(ge(i),"_handleClickOutside",(function(){var e=i.props;e.input&&i.state.open&&void 0===e.open&&e.closeOnClickOutside&&i._closeCalendar()})),be(ge(i),"_onInputFocus",(function(e){i.callHandler(i.props.inputProps.onFocus,e)&&i._openCalendar()})),be(ge(i),"_onInputChange",(function(e){if(i.callHandler(i.props.inputProps.onChange,e)){var t=e.target?e.target.value:e,n=i.localMoment(t,i.getFormat("datetime")),r={inputValue:t};n.isValid()?(r.selectedDate=n,r.viewDate=n.clone().startOf("month")):r.selectedDate=null,i.setState(r,(function(){i.props.onChange(n.isValid()?n:i.state.inputValue)}))}})),be(ge(i),"_onInputKeyDown",(function(e){i.callHandler(i.props.inputProps.onKeyDown,e)&&9===e.which&&i.props.closeOnTab&&i._closeCalendar()})),be(ge(i),"_onInputClick",(function(e){i.callHandler(i.props.inputProps.onClick,e)&&i._openCalendar()})),i.state=i.getInitialState(),i}return fe(n,[{key:"render",value:function(){return l.a.createElement(Te,{className:this.getClassName(),onClickOut:this._handleClickOutside},this.renderInput(),l.a.createElement("div",{className:"rdtPicker"},this.renderView()))}},{key:"renderInput",value:function(){if(this.props.input){var e=ce(ce({type:"text",className:"form-control",value:this.getInputValue()},this.props.inputProps),{},{onFocus:this._onInputFocus,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onClick:this._onInputClick});return this.props.renderInput?l.a.createElement("div",null,this.props.renderInput(e,this._openCalendar,this._closeCalendar)):l.a.createElement("input",e)}}},{key:"renderView",value:function(){return this.props.renderView(this.state.currentView,this._renderCalendar)}},{key:"getInitialState",value:function(){var e=this.props,t=this.getFormat("datetime"),n=this.parseDate(e.value||e.initialValue,t);return this.checkTZ(),{open:!e.input,currentView:e.initialViewMode||this.getInitialView(),viewDate:this.getInitialViewDate(n),selectedDate:n&&n.isValid()?n:void 0,inputValue:this.getInitialInputValue(n)}}},{key:"getInitialViewDate",value:function(e){var t,n=this.props.initialViewDate;if(n){if((t=this.parseDate(n,this.getFormat("datetime")))&&t.isValid())return t;Pe('The initialViewDated given "'+n+'" is not valid. Using current date instead.')}else if(e&&e.isValid())return e.clone();return this.getInitialDate()}},{key:"getInitialDate",value:function(){var e=this.localMoment();return e.hour(0).minute(0).second(0).millisecond(0),e}},{key:"getInitialView",value:function(){var e=this.getFormat("date");return e?this.getUpdateOn(e):_e}},{key:"parseDate",value:function(e,t){var n;return e&&"string"==typeof e?n=this.localMoment(e,t):e&&(n=this.localMoment(e)),n&&!n.isValid()&&(n=null),n}},{key:"getClassName",value:function(){var e="rdt",t=this.props,n=t.className;return Array.isArray(n)?e+=" "+n.join(" "):n&&(e+=" "+n),t.input||(e+=" rdtStatic"),this.isOpen()&&(e+=" rdtOpen"),e}},{key:"isOpen",value:function(){return!this.props.input||(void 0===this.props.open?this.state.open:this.props.open)}},{key:"getUpdateOn",value:function(e){return this.props.updateOnView?this.props.updateOnView:e.match(/[lLD]/)?$e:-1!==e.indexOf("M")?we:-1!==e.indexOf("Y")?ve:$e}},{key:"getLocaleData",value:function(){var e=this.props;return this.localMoment(e.value||e.defaultValue||new Date).localeData()}},{key:"getDateFormat",value:function(){var e=this.getLocaleData(),t=this.props.dateFormat;return!0===t?e.longDateFormat("L"):t||""}},{key:"getTimeFormat",value:function(){var e=this.getLocaleData(),t=this.props.timeFormat;return!0===t?e.longDateFormat("LT"):t||""}},{key:"getFormat",value:function(e){if("date"===e)return this.getDateFormat();if("time"===e)return this.getTimeFormat();var t=this.getDateFormat(),n=this.getTimeFormat();return t&&n?t+" "+n:t||n}},{key:"updateTime",value:function(e,t,n,i){var r={},o=i?"selectedDate":"viewDate";r[o]=this.state[o].clone()[e](t,n),this.setState(r)}},{key:"localMoment",value:function(e,t,n){var i=null;return i=(n=n||this.props).utc?s.a.utc(e,t,n.strictParsing):n.displayTimeZone?s.a.tz(e,t,n.displayTimeZone):s()(e,t,n.strictParsing),n.locale&&i.locale(n.locale),i}},{key:"checkTZ",value:function(){var e=this.props.displayTimeZone;!e||this.tzWarning||s.a.tz||(this.tzWarning=!0,Pe('displayTimeZone prop with value "'+e+'" is used but moment.js timezone is not loaded.',"error"))}},{key:"componentDidUpdate",value:function(e){if(e!==this.props){var t=!1,n=this.props;["locale","utc","displayZone","dateFormat","timeFormat"].forEach((function(i){e[i]!==n[i]&&(t=!0)})),t&&this.regenerateDates(),n.value&&n.value!==e.value&&this.setViewDate(n.value),this.checkTZ()}}},{key:"regenerateDates",value:function(){var e=this.props,t=this.state.viewDate.clone(),n=this.state.selectedDate&&this.state.selectedDate.clone();e.locale&&(t.locale(e.locale),n&&n.locale(e.locale)),e.utc?(t.utc(),n&&n.utc()):e.displayTimeZone?(t.tz(e.displayTimeZone),n&&n.tz(e.displayTimeZone)):(t.locale(),n&&n.locale());var i={viewDate:t,selectedDate:n};n&&n.isValid()&&(i.inputValue=n.format(this.getFormat("datetime"))),this.setState(i)}},{key:"getSelectedDate",value:function(){if(void 0===this.props.value)return this.state.selectedDate;var e=this.parseDate(this.props.value,this.getFormat("datetime"));return!(!e||!e.isValid())&&e}},{key:"getInitialInputValue",value:function(e){var t=this.props;return t.inputProps.value?t.inputProps.value:e&&e.isValid()?e.format(this.getFormat("datetime")):t.value&&"string"==typeof t.value?t.value:t.initialValue&&"string"==typeof t.initialValue?t.initialValue:""}},{key:"getInputValue",value:function(){var e=this.getSelectedDate();return e?e.format(this.getFormat("datetime")):this.state.inputValue}},{key:"setViewDate",value:function(e){var t;return e&&(t="string"==typeof e?this.localMoment(e,this.getFormat("datetime")):this.localMoment(e))&&t.isValid()?void this.setState({viewDate:t}):Pe("Invalid date passed to the `setViewDate` method: "+e)}},{key:"navigate",value:function(e){this._showView(e)}},{key:"callHandler",value:function(e,t){return!e||!1!==e(t)}}]),n}(l.a.Component);function Pe(e,t){var n="undefined"!=typeof window&&window.console;n&&(t||(t="warn"),n[t]("***react-datetime:"+e))}be(ke,"propTypes",{value:Qe,initialValue:Qe,initialViewDate:Qe,initialViewMode:xe.oneOf([ve,we,$e,_e]),onOpen:xe.func,onClose:xe.func,onChange:xe.func,onNavigate:xe.func,onBeforeNavigate:xe.func,onNavigateBack:xe.func,onNavigateForward:xe.func,updateOnView:xe.string,locale:xe.string,utc:xe.bool,displayTimeZone:xe.string,input:xe.bool,dateFormat:xe.oneOfType([xe.string,xe.bool]),timeFormat:xe.oneOfType([xe.string,xe.bool]),inputProps:xe.object,timeConstraints:xe.object,isValidDate:xe.func,open:xe.bool,strictParsing:xe.bool,closeOnSelect:xe.bool,closeOnTab:xe.bool,renderView:xe.func,renderInput:xe.func,renderDay:xe.func,renderMonth:xe.func,renderYear:xe.func}),be(ke,"defaultProps",{onOpen:Se,onClose:Se,onCalendarOpen:Se,onCalendarClose:Se,onChange:Se,onNavigate:Se,onBeforeNavigate:function(e){return e},onNavigateBack:Se,onNavigateForward:Se,dateFormat:!0,timeFormat:!0,utc:!1,className:"",input:!0,inputProps:{},timeConstraints:{},isValidDate:function(){return!0},strictParsing:!0,closeOnSelect:!1,closeOnTab:!0,closeOnClickOutside:!0,renderView:function(e,t){return t()}}),be(ke,"moment",s.a);var Te=function(e,t){var n,i,r=e.displayName||e.name||"Component";return i=n=function(n){var i,o;function s(e){var i;return(i=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof i.__clickOutsideHandlerProp){var t=i.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+r+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else i.__clickOutsideHandlerProp(e)},i.__getComponentNode=function(){var e=i.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():Object(K.findDOMNode)(e)},i.enableOnClickOutside=function(){if("undefined"!=typeof document&&!re[i._uid]){void 0===te&&(te=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),re[i._uid]=!0;var e=i.props.eventTypes;e.forEach||(e=[e]),ie[i._uid]=function(e){var t;null!==i.componentNode&&(i.props.preventDefault&&e.preventDefault(),i.props.stopPropagation&&e.stopPropagation(),i.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(J(e,t,n))return!0;e=e.parentNode}return e}(e.target,i.componentNode,i.props.outsideClickIgnoreClass)===document&&i.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,ie[i._uid],se(i,e))}))}},i.disableOnClickOutside=function(){delete re[i._uid];var e=ie[i._uid];if(e&&"undefined"!=typeof document){var t=i.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,se(i,t))})),delete ie[i._uid]}},i.getRef=function(e){return i.instanceRef=e},i._uid=ne(),i}o=n,(i=s).prototype=Object.create(o.prototype),i.prototype.constructor=i,i.__proto__=o;var l=s.prototype;return l.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},l.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+r+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},l.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},l.componentWillUnmount=function(){this.disableOnClickOutside()},l.render=function(){var t=this.props,n=(t.excludeScrollbar,function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(a.createElement)(e,n)},s}(a.Component),n.displayName="OnClickOutside("+r+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},i}(function(e){pe(n,e);var t=Oe(n);function n(){var e;ue(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return be(ge(e=t.call.apply(t,[this].concat(r))),"container",l.a.createRef()),e}return fe(n,[{key:"render",value:function(){return l.a.createElement("div",{className:this.props.className,ref:this.container},this.props.children)}},{key:"handleClickOutside",value:function(e){this.props.onClickOut(e)}},{key:"setClickOutsideRef",value:function(){return this.container.current}}]),n}(l.a.Component))}])},1167:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)},s=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},l=a(n(9196)),c=a(n(1850)),u=a(n(8446)),d=a(n(6095)),f=function(e){function t(t){var n=e.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,i,r){var o,s,a,l;"text-change"===e?null===(s=(o=n).onEditorChangeText)||void 0===s||s.call(o,n.editor.root.innerHTML,t,r,n.unprivilegedEditor):"selection-change"===e&&(null===(l=(a=n).onEditorChangeSelection)||void 0===l||l.call(a,t,r,n.unprivilegedEditor))};var i=n.isControlled()?t.value:t.defaultValue;return n.value=null!=i?i:"",n}return r(t,e),t.prototype.validateProps=function(e){var t;if(l.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(l.default.Children.count(e.children)&&"textarea"===(null===(t=l.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var n,i=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var r=this.getEditorContents(),o=null!=(n=e.value)?n:"";this.isEqualValue(o,r)||this.setEditorContents(this.editor,o)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),s(this.cleanProps,this.dirtyProps).some((function(t){return!u.default(e[t],i.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(n){return!u.default(e[n],t.props[n])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var i=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:i,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var o=this.regenerationSnapshot,s=(i=o.delta,o.selection);delete this.regenerationSnapshot,this.instantiateEditor();var a=this.editor;a.setContents(i),p((function(){return n.setEditorSelection(a,s)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var n=new d.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?u.default(e.ops,t.ops):u.default(e,t)},t.prototype.setEditorContents=function(e,t){var n=this;this.value=t;var i=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),p((function(){return n.setEditorSelection(e,i)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var n,i;(null===(i=null===(n=e)||void 0===n?void 0:n.scroll)||void 0===i?void 0:i.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=c.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,n=t.children,i=t.preserveWhitespace,r={key:this.state.generation,ref:function(t){e.editingArea=t}};return l.default.Children.count(n)?l.default.cloneElement(l.default.Children.only(n),r):i?l.default.createElement("pre",o({},r)):l.default.createElement("div",o({},r))},t.prototype.render=function(){var e;return l.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!=e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,n,i){var r,o;if(this.editor){var s=this.isDelta(this.value)?i.getContents():i.getHTML();s!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=s,null===(o=(r=this.props).onChange)||void 0===o||o.call(r,e,t,n,i))}},t.prototype.onEditorChangeSelection=function(e,t,n){var i,r,o,s,a,l;if(this.editor){var c=this.getEditorSelection(),d=!c&&e,f=c&&!e;u.default(e,c)||(this.selection=e,null===(r=(i=this.props).onChangeSelection)||void 0===r||r.call(i,e,t,n),d?null===(s=(o=this.props).onFocus)||void 0===s||s.call(o,e,t,n):f&&(null===(l=(a=this.props).onBlur)||void 0===l||l.call(a,c,t,n)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=d.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(l.default.Component);function p(e){Promise.resolve().then(e)}e.exports=f},1036:(e,t,n)=>{const i=n(5106),r=n(3150),{isPlainObject:o}=n(977),s=n(9996),a=n(9430),{parse:l}=n(20),c=["img","audio","video","picture","svg","object","map","iframe","embed"],u=["script","style"];function d(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function f(e,t){return{}.hasOwnProperty.call(e,t)}function p(e,t){const n=[];return d(e,(function(e){t(e)&&n.push(e)})),n}e.exports=O;const h=/^[^\0\t\n\f\r /<=>]+$/;function O(e,t,n){if(null==e)return"";let g="",y="";function b(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=g.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(T.length){T[T.length-1].text+=n.text}},this.updateParentNodeMediaChildren=function(){if(T.length&&c.includes(this.tag)){T[T.length-1].mediaChildren.push(this.tag)}}}(t=Object.assign({},O.defaults,t)).parser=Object.assign({},m,t.parser),u.forEach((function(e){t.allowedTags&&t.allowedTags.indexOf(e)>-1&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const v=t.nonTextTags||["script","style","textarea","option"];let w,$;t.allowedAttributes&&(w={},$={},d(t.allowedAttributes,(function(e,t){w[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(r(e).replace(/\\\*/g,".*")):w[t].push(e)})),n.length&&($[t]=new RegExp("^("+n.join("|")+")$"))})));const _={},x={},S={};d(t.allowedClasses,(function(e,t){w&&(f(w,t)||(w[t]=[]),w[t].push("class")),_[t]=[],S[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(r(e).replace(/\\\*/g,".*")):e instanceof RegExp?S[t].push(e):_[t].push(e)})),n.length&&(x[t]=new RegExp("^("+n.join("|")+")$"))}));const Q={};let k,P,T,q,R,E,j;d(t.transformTags,(function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=O.simpleTransform(e)),"*"===t?k=n:Q[t]=n}));let N=!1;A();const C=new i.Parser({onopentag:function(e,n){if(t.enforceHtmlBoundary&&"html"===e&&A(),E)return void j++;const i=new b(e,n);T.push(i);let r=!1;const c=!!i.text;let u;if(f(Q,e)&&(u=Q[e](e,n),i.attribs=n=u.attribs,void 0!==u.text&&(i.innerText=u.text),e!==u.tagName&&(i.name=e=u.tagName,R[P]=u.tagName)),k&&(u=k(e,n),i.attribs=n=u.attribs,e!==u.tagName&&(i.name=e=u.tagName,R[P]=u.tagName)),(t.allowedTags&&-1===t.allowedTags.indexOf(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(f(e,t))return!1;return!0}(q)||null!=t.nestingLimit&&P>=t.nestingLimit)&&(r=!0,q[P]=!0,"discard"===t.disallowedTagsMode&&-1!==v.indexOf(e)&&(E=!0,j=1),q[P]=!0),P++,r){if("discard"===t.disallowedTagsMode)return;y=g,g=""}g+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(i.innerText=""),(!w||f(w,e)||w["*"])&&d(n,(function(n,r){if(!h.test(r))return void delete i.attribs[r];let c=!1;if(!w||f(w,e)&&-1!==w[e].indexOf(r)||w["*"]&&-1!==w["*"].indexOf(r)||f($,e)&&$[e].test(r)||$["*"]&&$["*"].test(r))c=!0;else if(w&&w[e])for(const t of w[e])if(o(t)&&t.name&&t.name===r){c=!0;let e="";if(!0===t.multiple){const i=n.split(" ");for(const n of i)-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(r)&&D(e,n))return void delete i.attribs[r];if("script"===e&&"src"===r){let e=!0;try{const i=W(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){const n=(t.allowedScriptHostnames||[]).find((function(e){return e===i.url.hostname})),r=(t.allowedScriptDomains||[]).find((function(e){return i.url.hostname===e||i.url.hostname.endsWith(`.${e}`)}));e=n||r}}catch(t){e=!1}if(!e)return void delete i.attribs[r]}if("iframe"===e&&"src"===r){let e=!0;try{const i=W(n);if(i.isRelativeUrl)e=f(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find((function(e){return e===i.url.hostname})),r=(t.allowedIframeDomains||[]).find((function(e){return i.url.hostname===e||i.url.hostname.endsWith(`.${e}`)}));e=n||r}}catch(t){e=!1}if(!e)return void delete i.attribs[r]}if("srcset"===r)try{let e=a(n);if(e.forEach((function(e){D("srcset",e.url)&&(e.evil=!0)})),e=p(e,(function(e){return!e.evil})),!e.length)return void delete i.attribs[r];n=p(e,(function(e){return!e.evil})).map((function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", "),i.attribs[r]=n}catch(e){return void delete i.attribs[r]}if("class"===r){const t=_[e],o=_["*"],a=x[e],l=S[e],c=[a,x["*"]].concat(l).filter((function(e){return e}));if(!(n=V(n,t&&o?s(t,o):t||o,c)).length)return void delete i.attribs[r]}if("style"===r)try{const o=function(e,t){if(!t)return e;const n=e.nodes[0];let i;i=t[n.selector]&&t["*"]?s(t[n.selector],t["*"]):t[n.selector]||t["*"];i&&(e.nodes[0].nodes=n.nodes.reduce(function(e){return function(t,n){if(f(e,n.prop)){e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n)}return t}}(i),[]));return e}(l(e+" {"+n+"}"),t.allowedStyles);if(0===(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e}),[]).join(";")}(o)).length)return void delete i.attribs[r]}catch(e){return void delete i.attribs[r]}g+=" "+r,n&&n.length&&(g+='="'+z(n,!0)+'"')}else delete i.attribs[r]})),-1!==t.selfClosing.indexOf(e)?g+=" />":(g+=">",!i.innerText||c||t.textFilter||(g+=z(i.innerText),N=!0)),r&&(g=y+z(g),y="")},ontext:function(e){if(E)return;const n=T[T.length-1];let i;if(n&&(i=n.tag,e=void 0!==n.innerText?n.innerText:e),"discard"!==t.disallowedTagsMode||"script"!==i&&"style"!==i){const n=z(e,!1);t.textFilter&&!N?g+=t.textFilter(n,i):N||(g+=n)}else g+=e;if(T.length){T[T.length-1].text+=e}},onclosetag:function(e){if(E){if(j--,j)return;E=!1}const n=T.pop();if(!n)return;E=!!t.enforceHtmlBoundary&&"html"===e,P--;const i=q[P];if(i){if(delete q[P],"discard"===t.disallowedTagsMode)return void n.updateParentNodeText();y=g,g=""}R[P]&&(e=R[P],delete R[P]),t.exclusiveFilter&&t.exclusiveFilter(n)?g=g.substr(0,n.tagPosition):(n.updateParentNodeMediaChildren(),n.updateParentNodeText(),-1===t.selfClosing.indexOf(e)?(g+="</"+e+">",i&&(g=y+z(g),y=""),N=!1):i&&(g=y,y=""))}},t.parser);return C.write(e),C.end(),g;function A(){g="",P=0,T=[],q={},R={},E=!1,j=0}function z(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,""")),e}function D(e,n){for(n=n.replace(/[\x00-\x20]+/g,"");;){const e=n.indexOf("\x3c!--");if(-1===e)break;const t=n.indexOf("--\x3e",e+4);if(-1===t)break;n=n.substring(0,e)+n.substring(t+3)}const i=n.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!i)return!!n.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const r=i[1].toLowerCase();return f(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(r):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(r)}function W(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const n=new URL(e,t);return{isRelativeUrl:n&&"relative-site"===n.hostname&&"relative:"===n.protocol,url:n}}function V(e,t,n){return t?(e=e.split(/\s+/)).filter((function(e){return-1!==t.indexOf(e)||n.some((function(t){return t.test(e)}))})).join(" "):e}}const m={decodeEntities:!0};O.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1},O.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(i,r){let o;if(n)for(o in t)r[o]=t[o];else r=t;return{tagName:e,attribs:r}}}},2734:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),t.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},8427:function(e,t,n){"use strict";var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=s(n(9960)),l=n(7772),c=n(2734),u=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);var d=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function f(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),i="",r=0;r<n.length;r++)i+=p(n[r],t);return i}function p(e,t){switch(e.type){case a.Root:return f(e.children,t);case a.Directive:case a.Doctype:return"<"+e.data+">";case a.Comment:return function(e){return"\x3c!--"+e.data+"--\x3e"}(e);case a.CDATA:return function(e){return"<![CDATA["+e.children[0].data+"]]>"}(e);case a.Script:case a.Style:case a.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=c.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&h.has(e.parent.name)&&(t=i(i({},t),{xmlMode:!1})));!t.xmlMode&&O.has(e.name)&&(t=i(i({},t),{xmlMode:"foreign"}));var r="<"+e.name,o=function(e,t){if(e)return Object.keys(e).map((function(n){var i,r,o=null!==(i=e[n])&&void 0!==i?i:"";return"foreign"===t.xmlMode&&(n=null!==(r=c.attributeNames.get(n))&&void 0!==r?r:n),t.emptyAttrs||t.xmlMode||""!==o?n+'="'+(!1!==t.decodeEntities?l.encodeXML(o):o.replace(/"/g,"""))+'"':n})).join(" ")}(e.attribs,t);o&&(r+=" "+o);0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&d.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=f(e.children,t)),!t.xmlMode&&d.has(e.name)||(r+="</"+e.name+">"));return r}(e,t);case a.Text:return function(e,t){var n=e.data||"";!1===t.decodeEntities||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(n=l.encodeXML(n));return n}(e,t)}}t.default=f;var h=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),O=new Set(["svg","math"])},1142:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var o=n(9960),s=n(6218);r(n(6218),t);var a=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?o.ElementType.Tag:void 0,i=new s.Element(e,t,void 0,n);this.addNode(i),this.tagStack.push(i)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===o.ElementType.Text)t?n.data=(n.data+e).replace(a," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(a," "));var i=new s.Text(e);this.addNode(i),this.lastNode=i}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===o.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.NodeWithChildren(o.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=c,t.default=c},6218:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(9960),a=new Map([[s.ElementType.Tag,1],[s.ElementType.Script,1],[s.ElementType.Style,1],[s.ElementType.Directive,1],[s.ElementType.Text,3],[s.ElementType.CDATA,4],[s.ElementType.Comment,8],[s.ElementType.Root,9]]),l=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),$(this,e)},e}();t.Node=l;var c=function(e){function t(t,n){var i=e.call(this,t)||this;return i.data=n,i}return r(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(l);t.DataNode=c;var u=function(e){function t(t){return e.call(this,s.ElementType.Text,t)||this}return r(t,e),t}(c);t.Text=u;var d=function(e){function t(t){return e.call(this,s.ElementType.Comment,t)||this}return r(t,e),t}(c);t.Comment=d;var f=function(e){function t(t,n){var i=e.call(this,s.ElementType.Directive,n)||this;return i.name=t,i}return r(t,e),t}(c);t.ProcessingInstruction=f;var p=function(e){function t(t,n){var i=e.call(this,t)||this;return i.children=n,i}return r(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var h=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return r(t,e),t}(p);t.Document=h;var O=function(e){function t(t,n,i,r){void 0===i&&(i=[]),void 0===r&&(r="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,r,i)||this;return o.name=t,o.attribs=n,o}return r(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,i;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(i=e["x-attribsPrefix"])||void 0===i?void 0:i[t]}}))},enumerable:!1,configurable:!0}),t}(p);function m(e){return(0,s.isTag)(e)}function g(e){return e.type===s.ElementType.CDATA}function y(e){return e.type===s.ElementType.Text}function b(e){return e.type===s.ElementType.Comment}function v(e){return e.type===s.ElementType.Directive}function w(e){return e.type===s.ElementType.Root}function $(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new u(e.data);else if(b(e))n=new d(e.data);else if(m(e)){var i=t?_(e.children):[],r=new O(e.name,o({},e.attribs),i);i.forEach((function(e){return e.parent=r})),null!=e.namespace&&(r.namespace=e.namespace),e["x-attribsNamespace"]&&(r["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(r["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=r}else if(g(e)){i=t?_(e.children):[];var a=new p(s.ElementType.CDATA,i);i.forEach((function(e){return e.parent=a})),n=a}else if(w(e)){i=t?_(e.children):[];var l=new h(i);i.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!v(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new f(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function _(e){for(var t=e.map((function(e){return $(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=O,t.isTag=m,t.isCDATA=g,t.isText=y,t.isComment=b,t.isDirective=v,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=$},2903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var i=n(5283),r=n(9473);t.getFeed=function(e){var t=l(d,e);return t?"feed"===t.name?function(e){var t,n=e.children,i={type:"atom",items:(0,r.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,i={media:a(n)};u(i,"id","id",n),u(i,"title","title",n);var r=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;r&&(i.link=r);var o=c("summary",n)||c("content",n);o&&(i.description=o);var s=c("updated",n);return s&&(i.pubDate=new Date(s)),i}))};u(i,"id","id",n),u(i,"title","title",n);var o=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;o&&(i.link=o);u(i,"description","subtitle",n);var s=c("updated",n);s&&(i.updated=new Date(s));return u(i,"author","email",n,!0),i}(t):function(e){var t,n,i=null!==(n=null===(t=l("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],o={type:e.name.substr(0,3),id:"",items:(0,r.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:a(t)};u(n,"id","guid",t),u(n,"title","title",t),u(n,"link","link",t),u(n,"description","description",t);var i=c("pubDate",t);return i&&(n.pubDate=new Date(i)),n}))};u(o,"title","title",i),u(o,"link","link",i),u(o,"description","description",i);var s=c("lastBuildDate",i);s&&(o.updated=new Date(s));return u(o,"author","managingEditor",i,!0),o}(t):null};var o=["url","type","lang"],s=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function a(e){return(0,r.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},i=0,r=o;i<r.length;i++){t[c=r[i]]&&(n[c]=t[c])}for(var a=0,l=s;a<l.length;a++){var c;t[c=l[a]]&&(n[c]=parseInt(t[c],10))}return t.expression&&(n.expression=t.expression),n}))}function l(e,t){return(0,r.getElementsByTagName)(e,t,!0,1)[0]}function c(e,t,n){return void 0===n&&(n=!1),(0,i.textContent)((0,r.getElementsByTagName)(e,t,n,1)).trim()}function u(e,t,n,i,r){void 0===r&&(r=!1);var o=c(n,i,r);o&&(e[t]=o)}function d(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}},7701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.removeSubsets=void 0;var i=n(1142);function r(e,t){var n=[],r=[];if(e===t)return 0;for(var o=(0,i.hasChildren)(e)?e:e.parent;o;)n.unshift(o),o=o.parent;for(o=(0,i.hasChildren)(t)?t:t.parent;o;)r.unshift(o),o=o.parent;for(var s=Math.min(n.length,r.length),a=0;a<s&&n[a]===r[a];)a++;if(0===a)return 1;var l=n[a-1],c=l.children,u=n[a],d=r[a];return c.indexOf(u)>c.indexOf(d)?l===t?20:4:l===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var i=n.parent;i;i=i.parent)if(e.includes(i)){e.splice(t,1);break}}return e},t.compareDocumentPosition=r,t.uniqueSort=function(e){return(e=e.filter((function(e,t,n){return!n.includes(e,t+1)}))).sort((function(e,t){var n=r(e,t);return 2&n?-1:4&n?1:0})),e}},7241:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(n(5283),t),r(n(7972),t),r(n(4541),t),r(n(2764),t),r(n(9473),t),r(n(7701),t),r(n(2903),t);var o=n(1142);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return o.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return o.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return o.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return o.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return o.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return o.hasChildren}})},9473:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var i=n(1142),r=n(2764),o={tag_name:function(e){return"function"==typeof e?function(t){return(0,i.isTag)(t)&&e(t.name)}:"*"===e?i.isTag:function(t){return(0,i.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,i.isText)(t)&&e(t.data)}:function(t){return(0,i.isText)(t)&&t.data===e}}};function s(e,t){return"function"==typeof t?function(n){return(0,i.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,i.isTag)(n)&&n.attribs[e]===t}}function a(e,t){return function(n){return e(n)||t(n)}}function l(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(o,t)?o[t](n):s(t,n)}));return 0===t.length?null:t.reduce(a)}t.testElement=function(e,t){var n=l(e);return!n||n(t)},t.getElements=function(e,t,n,i){void 0===i&&(i=1/0);var o=l(e);return o?(0,r.filter)(o,t,n,i):[]},t.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,r.findOne)(s("id",e),t,n)},t.getElementsByTagName=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=1/0),(0,r.filter)(o.tag_name(e),t,n,i)},t.getElementsByTagType=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=1/0),(0,r.filter)(o.tag_type(e),t,n,i)}},4541:(e,t)=>{"use strict";function n(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=n,t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var i=t.next=e.next;i&&(i.prev=t);var r=t.parent=e.parent;if(r){var o=r.children;o[o.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var i=e.children[e.children.length-2];i.next=t,t.prev=i}else t.prev=null},t.append=function(e,t){n(t);var i=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=i,r){if(r.prev=t,i){var o=i.children;o.splice(o.lastIndexOf(r),0,t)}}else i&&i.children.push(t)},t.prependChild=function(e,t){if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var i=e.children[1];i.prev=t,t.next=i}else t.next=null},t.prepend=function(e,t){n(t);var i=e.parent;if(i){var r=i.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=i,t.prev=e.prev,t.next=e,e.prev=t}},2764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var i=n(1142);function r(e,t,n,o){for(var s=[],a=0,l=t;a<l.length;a++){var c=l[a];if(e(c)&&(s.push(c),--o<=0))break;if(n&&(0,i.hasChildren)(c)&&c.children.length>0){var u=r(e,c.children,n,o);if(s.push.apply(s,u),(o-=u.length)<=0)break}}return s}t.filter=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=1/0),Array.isArray(t)||(t=[t]),r(e,t,n,i)},t.find=r,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,r){void 0===r&&(r=!0);for(var o=null,s=0;s<n.length&&!o;s++){var a=n[s];(0,i.isTag)(a)&&(t(a)?o=a:r&&a.children.length>0&&(o=e(t,a.children)))}return o},t.existsOne=function e(t,n){return n.some((function(n){return(0,i.isTag)(n)&&(t(n)||n.children.length>0&&e(t,n.children))}))},t.findAll=function(e,t){for(var n,r,o=[],s=t.filter(i.isTag);r=s.shift();){var a=null===(n=r.children)||void 0===n?void 0:n.filter(i.isTag);a&&a.length>0&&s.unshift.apply(s,a),e(r)&&o.push(r)}return o}},5283:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var r=n(1142),o=i(n(8427)),s=n(9960);function a(e,t){return(0,o.default)(e,t)}t.getOuterHTML=a,t.getInnerHTML=function(e,t){return(0,r.hasChildren)(e)?e.children.map((function(e){return a(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,r.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,r.isCDATA)(t)?e(t.children):(0,r.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,r.hasChildren)(t)&&!(0,r.isComment)(t)?e(t.children):(0,r.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,r.hasChildren)(t)&&(t.type===s.ElementType.Tag||(0,r.isCDATA)(t))?e(t.children):(0,r.isText)(t)?t.data:""}},7972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var i=n(1142),r=[];function o(e){var t;return null!==(t=e.children)&&void 0!==t?t:r}function s(e){return e.parent||null}t.getChildren=o,t.getParent=s,t.getSiblings=function(e){var t=s(e);if(null!=t)return o(t);for(var n=[e],i=e.prev,r=e.next;null!=i;)n.unshift(i),i=i.prev;for(;null!=r;)n.push(r),r=r.next;return n},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,i.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,i.isTag)(t);)t=t.prev;return t}},722:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var r=i(n(4168)),o=i(n(7272)),s=i(n(729)),a=i(n(2913)),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function c(e){var t=d(e);return function(e){return String(e).replace(l,t)}}t.decodeXML=c(s.default),t.decodeHTMLStrict=c(r.default);var u=function(e,t){return e<t?1:-1};function d(e){return function(t){if("#"===t.charAt(1)){var n=t.charAt(2);return"X"===n||"x"===n?a.default(parseInt(t.substr(3),16)):a.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}t.decodeHTML=function(){for(var e=Object.keys(o.default).sort(u),t=Object.keys(r.default).sort(u),n=0,i=0;n<t.length;n++)e[i]===t[n]?(t[n]+=";?",i++):t[n]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=d(r.default);function l(e){return";"!==e.substr(-1)&&(e+=";"),a(e)}return function(e){return String(e).replace(s,l)}}()},2913:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(7607)),o=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};t.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in r.default&&(e=r.default[e]),o(e))}},571:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var r=u(i(n(729)).default),o=d(r);t.encodeXML=m(r);var s,a,l=u(i(n(4168)).default),c=d(l);function u(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function d(e){for(var t=[],n=[],i=0,r=Object.keys(e);i<r.length;i++){var o=r[i];1===o.length?t.push("\\"+o):n.push(o)}t.sort();for(var s=0;s<t.length-1;s++){for(var a=s;a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1);)a+=1;var l=1+a-s;l<3||t.splice(s,l,t[s]+"-"+t[a])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.encodeHTML=(s=l,a=c,function(e){return e.replace(a,(function(e){return s[e]})).replace(f,h)}),t.encodeNonAsciiHTML=m(l);var f=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,p=null!=String.prototype.codePointAt?function(e){return e.codePointAt(0)}:function(e){return 1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536};function h(e){return"&#x"+(e.length>1?p(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}var O=new RegExp(o.source+"|"+f.source,"g");function m(e){return function(t){return t.replace(O,(function(t){return e[t]||h(t)}))}}t.escape=function(e){return e.replace(O,h)},t.escapeUTF8=function(e){return e.replace(o,h)}},7772:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var i=n(722),r=n(571);t.decode=function(e,t){return(!t||t<=0?i.decodeXML:i.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?i.decodeXML:i.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?r.encodeXML:r.encodeHTML)(e)};var o=n(571);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return o.encodeHTML}});var s=n(722);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})},7613:function(e,t,n){"use strict";var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseFeed=t.FeedHandler=void 0;var c,u,d=l(n(1142)),f=a(n(7241)),p=n(6666);!function(e){e[e.image=0]="image",e[e.audio=1]="audio",e[e.video=2]="video",e[e.document=3]="document",e[e.executable=4]="executable"}(c||(c={})),function(e){e[e.sample=0]="sample",e[e.full=1]="full",e[e.nonstop=2]="nonstop"}(u||(u={}));var h=function(e){function t(t,n){return"object"==typeof t&&(n=t=void 0),e.call(this,t,n)||this}return r(t,e),t.prototype.onend=function(){var e,t,n=g(w,this.dom);if(n){var i={};if("feed"===n.name){var r=n.children;i.type="atom",v(i,"id","id",r),v(i,"title","title",r);var o=b("href",g("link",r));o&&(i.link=o),v(i,"description","subtitle",r),(s=y("updated",r))&&(i.updated=new Date(s)),v(i,"author","email",r,!0),i.items=m("entry",r).map((function(e){var t={},n=e.children;v(t,"id","id",n),v(t,"title","title",n);var i=b("href",g("link",n));i&&(t.link=i);var r=y("summary",n)||y("content",n);r&&(t.description=r);var o=y("updated",n);return o&&(t.pubDate=new Date(o)),t.media=O(n),t}))}else{var s;r=null!==(t=null===(e=g("channel",n.children))||void 0===e?void 0:e.children)&&void 0!==t?t:[];i.type=n.name.substr(0,3),i.id="",v(i,"title","title",r),v(i,"link","link",r),v(i,"description","description",r),(s=y("lastBuildDate",r))&&(i.updated=new Date(s)),v(i,"author","managingEditor",r,!0),i.items=m("item",n.children).map((function(e){var t={},n=e.children;v(t,"id","guid",n),v(t,"title","title",n),v(t,"link","link",n),v(t,"description","description",n);var i=y("pubDate",n);return i&&(t.pubDate=new Date(i)),t.media=O(n),t}))}this.feed=i,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},t}(d.default);function O(e){return m("media:content",e).map((function(e){var t={medium:e.attribs.medium,isDefault:!!e.attribs.isDefault};return e.attribs.url&&(t.url=e.attribs.url),e.attribs.fileSize&&(t.fileSize=parseInt(e.attribs.fileSize,10)),e.attribs.type&&(t.type=e.attribs.type),e.attribs.expression&&(t.expression=e.attribs.expression),e.attribs.bitrate&&(t.bitrate=parseInt(e.attribs.bitrate,10)),e.attribs.framerate&&(t.framerate=parseInt(e.attribs.framerate,10)),e.attribs.samplingrate&&(t.samplingrate=parseInt(e.attribs.samplingrate,10)),e.attribs.channels&&(t.channels=parseInt(e.attribs.channels,10)),e.attribs.duration&&(t.duration=parseInt(e.attribs.duration,10)),e.attribs.height&&(t.height=parseInt(e.attribs.height,10)),e.attribs.width&&(t.width=parseInt(e.attribs.width,10)),e.attribs.lang&&(t.lang=e.attribs.lang),t}))}function m(e,t){return f.getElementsByTagName(e,t,!0)}function g(e,t){return f.getElementsByTagName(e,t,!0,1)[0]}function y(e,t,n){return void 0===n&&(n=!1),f.getText(f.getElementsByTagName(e,t,n,1)).trim()}function b(e,t){return t?t.attribs[e]:null}function v(e,t,n,i,r){void 0===r&&(r=!1);var o=y(n,i,r);o&&(e[t]=o)}function w(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}t.FeedHandler=h,t.parseFeed=function(e,t){void 0===t&&(t={xmlMode:!0});var n=new h(t);return new p.Parser(n,t).end(e),n.feed}},6666:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var r=i(n(34)),o=new Set(["input","option","optgroup","select","button","datalist","textarea"]),s=new Set(["p"]),a={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:s,h1:s,h2:s,h3:s,h4:s,h5:s,h6:s,select:o,input:o,output:o,button:o,datalist:o,textarea:o,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:s,article:s,aside:s,blockquote:s,details:s,div:s,dl:s,fieldset:s,figcaption:s,figure:s,footer:s,form:s,header:s,hr:s,main:s,nav:s,ol:s,pre:s,section:s,table:s,ul:s,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},l=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),c=new Set(["math","svg"]),u=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),d=/\s|\//,f=function(){function e(e,t){var n,i,o,s,a;void 0===t&&(t={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=t,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(i=t.lowerCaseAttributeNames)&&void 0!==i?i:!t.xmlMode,this.tokenizer=new(null!==(o=t.Tokenizer)&&void 0!==o?o:r.default)(this.options,this),null===(a=(s=this.cbs).onparserinit)||void 0===a||a.call(s,this)}return e.prototype.updatePosition=function(e){null===this.endIndex?this.tokenizer.sectionStart<=e?this.startIndex=0:this.startIndex=this.tokenizer.sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},e.prototype.ontext=function(e){var t,n;this.updatePosition(1),this.endIndex--,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,e)},e.prototype.onopentagname=function(e){var t,n;if(this.lowerCaseTagNames&&(e=e.toLowerCase()),this.tagname=e,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(a,e))for(var i=void 0;this.stack.length>0&&a[e].has(i=this.stack[this.stack.length-1]);)this.onclosetag(i);!this.options.xmlMode&&l.has(e)||(this.stack.push(e),c.has(e)?this.foreignContext.push(!0):u.has(e)&&this.foreignContext.push(!1)),null===(n=(t=this.cbs).onopentagname)||void 0===n||n.call(t,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.onopentagend=function(){var e,t;this.updatePosition(1),this.attribs&&(null===(t=(e=this.cbs).onopentag)||void 0===t||t.call(e,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&l.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},e.prototype.onclosetag=function(e){if(this.updatePosition(1),this.lowerCaseTagNames&&(e=e.toLowerCase()),(c.has(e)||u.has(e))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&l.has(e))this.options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this.closeCurrentTag());else{var t=this.stack.lastIndexOf(e);if(-1!==t)if(this.cbs.onclosetag)for(t=this.stack.length-t;t--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=t;else"p"!==e||this.options.xmlMode||(this.onopentagname(e),this.closeCurrentTag())}},e.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},e.prototype.closeCurrentTag=function(){var e,t,n=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===n&&(null===(t=(e=this.cbs).onclosetag)||void 0===t||t.call(e,n),this.stack.pop())},e.prototype.onattribname=function(e){this.lowerCaseAttributeNames&&(e=e.toLowerCase()),this.attribname=e},e.prototype.onattribdata=function(e){this.attribvalue+=e},e.prototype.onattribend=function(e){var t,n;null===(n=(t=this.cbs).onattribute)||void 0===n||n.call(t,this.attribname,this.attribvalue,e),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(d),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+t,"!"+e)}},e.prototype.onprocessinginstruction=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+t,"?"+e)}},e.prototype.oncomment=function(e){var t,n,i,r;this.updatePosition(4),null===(n=(t=this.cbs).oncomment)||void 0===n||n.call(t,e),null===(r=(i=this.cbs).oncommentend)||void 0===r||r.call(i)},e.prototype.oncdata=function(e){var t,n,i,r,o,s;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(n=(t=this.cbs).oncdatastart)||void 0===n||n.call(t),null===(r=(i=this.cbs).ontext)||void 0===r||r.call(i,e),null===(s=(o=this.cbs).oncdataend)||void 0===s||s.call(o)):this.oncomment("[CDATA["+e+"]]")},e.prototype.onerror=function(e){var t,n;null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,e)},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag)for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n]));null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,i;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(i=(n=this.cbs).onparserinit)||void 0===i||i.call(n,this)},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.write=function(e){this.tokenizer.write(e)},e.prototype.end=function(e){this.tokenizer.end(e)},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){this.tokenizer.resume()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=f},34:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(2913)),o=i(n(4168)),s=i(n(7272)),a=i(n(729));function l(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function c(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}function u(e,t,n){var i=e.toLowerCase();return e===i?function(e,r){r===i?e._state=t:(e._state=n,e._index--)}:function(r,o){o===i||o===e?r._state=t:(r._state=n,r._index--)}}function d(e,t){var n=e.toLowerCase();return function(i,r){r===n||r===e?i._state=t:(i._state=3,i._index--)}}var f=u("C",24,16),p=u("D",25,16),h=u("A",26,16),O=u("T",27,16),m=u("A",28,16),g=d("R",35),y=d("I",36),b=d("P",37),v=d("T",38),w=u("R",40,1),$=u("I",41,1),_=u("P",42,1),x=u("T",43,1),S=d("Y",45),Q=d("L",46),k=d("E",47),P=u("Y",49,1),T=u("L",50,1),q=u("E",51,1),R=d("I",54),E=d("T",55),j=d("L",56),N=d("E",57),C=u("I",58,1),A=u("T",59,1),z=u("L",60,1),D=u("E",61,1),W=u("#",63,64),V=u("X",66,65),M=function(){function e(e,t){var n;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=t,this.xmlMode=!!(null==e?void 0:e.xmlMode),this.decodeEntities=null===(n=null==e?void 0:e.decodeEntities)||void 0===n||n}return e.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},e.prototype.write=function(e){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=e,this.parse()},e.prototype.end=function(e){this.ended&&this.cbs.onerror(Error(".end() after done!")),e&&this.write(e),this.ended=!0,this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},e.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},e.prototype.stateText=function(e){"<"===e?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||"&"!==e||1!==this.special&&4!==this.special||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},e.prototype.isTagStartChar=function(e){return c(e)||this.xmlMode&&!l(e)&&"/"!==e&&">"!==e},e.prototype.stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===e||1!==this.special||l(e)?this._state=1:"!"===e?(this._state=15,this.sectionStart=this._index+1):"?"===e?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(e)?(this._state=this.xmlMode||"s"!==e&&"S"!==e?this.xmlMode||"t"!==e&&"T"!==e?3:52:32,this.sectionStart=this._index):this._state=1},e.prototype.stateInTagName=function(e){("/"===e||">"===e||l(e))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},e.prototype.stateBeforeClosingTagName=function(e){l(e)||(">"===e?this._state=1:1!==this.special?4===this.special||"s"!==e&&"S"!==e?4!==this.special||"t"!==e&&"T"!==e?(this._state=1,this._index--):this._state=53:this._state=33:this.isTagStartChar(e)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},e.prototype.stateInClosingTagName=function(e){(">"===e||l(e))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},e.prototype.stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeAttributeName=function(e){">"===e?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===e?this._state=4:l(e)||(this._state=9,this.sectionStart=this._index)},e.prototype.stateInSelfClosingTag=function(e){">"===e?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):l(e)||(this._state=8,this._index--)},e.prototype.stateInAttributeName=function(e){("="===e||"/"===e||">"===e||l(e))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},e.prototype.stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this.cbs.onattribend(void 0),this._state=8,this._index--):l(e)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},e.prototype.stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this.sectionStart=this._index+1):"'"===e?(this._state=13,this.sectionStart=this._index+1):l(e)||(this._state=14,this.sectionStart=this._index,this._index--)},e.prototype.handleInAttributeValue=function(e,t){e===t?(this.emitToken("onattribdata"),this.cbs.onattribend(t),this._state=8):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,'"')},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,"'")},e.prototype.stateInAttributeValueNoQuotes=function(e){l(e)||">"===e?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeDeclaration=function(e){this._state="["===e?23:"-"===e?18:16},e.prototype.stateInDeclaration=function(e){">"===e&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateInProcessingInstruction=function(e){">"===e&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeComment=function(e){"-"===e?(this._state=19,this.sectionStart=this._index+1):this._state=16},e.prototype.stateInComment=function(e){"-"===e&&(this._state=21)},e.prototype.stateInSpecialComment=function(e){">"===e&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateAfterComment1=function(e){this._state="-"===e?22:19},e.prototype.stateAfterComment2=function(e){">"===e?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype.stateBeforeCdata6=function(e){"["===e?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype.stateInCdata=function(e){"]"===e&&(this._state=30)},e.prototype.stateAfterCdata1=function(e){this._state="]"===e?31:29},e.prototype.stateAfterCdata2=function(e){">"===e?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==e&&(this._state=29)},e.prototype.stateBeforeSpecialS=function(e){"c"===e||"C"===e?this._state=34:"t"===e||"T"===e?this._state=44:(this._state=3,this._index--)},e.prototype.stateBeforeSpecialSEnd=function(e){2!==this.special||"c"!==e&&"C"!==e?3!==this.special||"t"!==e&&"T"!==e?this._state=1:this._state=48:this._state=39},e.prototype.stateBeforeSpecialLast=function(e,t){("/"===e||">"===e||l(e))&&(this.special=t),this._state=3,this._index--},e.prototype.stateAfterSpecialLast=function(e,t){">"===e||l(e)?(this.special=1,this._state=6,this.sectionStart=this._index-t,this._index--):this._state=1},e.prototype.parseFixedEntity=function(e){if(void 0===e&&(e=this.xmlMode?a.default:o.default),this.sectionStart+1<this._index){var t=this.buffer.substring(this.sectionStart+1,this._index);Object.prototype.hasOwnProperty.call(e,t)&&(this.emitPartial(e[t]),this.sectionStart=this._index+1)}},e.prototype.parseLegacyEntity=function(){for(var e=this.sectionStart+1,t=Math.min(this._index-e,6);t>=2;){var n=this.buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(s.default,n))return this.emitPartial(s.default[n]),void(this.sectionStart+=t+1);t--}},e.prototype.stateInNamedEntity=function(e){";"===e?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1<this._index&&!this.xmlMode&&this.parseLegacyEntity(),this._state=this.baseState):(e<"0"||e>"9")&&!c(e)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==e&&this.parseFixedEntity(s.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},e.prototype.decodeNumericEntity=function(e,t,n){var i=this.sectionStart+e;if(i!==this._index){var o=this.buffer.substring(i,this._index),s=parseInt(o,t);this.emitPartial(r.default(s)),this.sectionStart=n?this._index+1:this._index}this._state=this.baseState},e.prototype.stateInNumericEntity=function(e){";"===e?this.decodeNumericEntity(2,10,!0):(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},e.prototype.stateInHexEntity=function(e){";"===e?this.decodeNumericEntity(3,16,!0):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},e.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},e.prototype.parse=function(){for(;this._index<this.buffer.length&&this.running;){var e=this.buffer.charAt(this._index);1===this._state?this.stateText(e):12===this._state?this.stateInAttributeValueDoubleQuotes(e):9===this._state?this.stateInAttributeName(e):19===this._state?this.stateInComment(e):20===this._state?this.stateInSpecialComment(e):8===this._state?this.stateBeforeAttributeName(e):3===this._state?this.stateInTagName(e):6===this._state?this.stateInClosingTagName(e):2===this._state?this.stateBeforeTagName(e):10===this._state?this.stateAfterAttributeName(e):13===this._state?this.stateInAttributeValueSingleQuotes(e):11===this._state?this.stateBeforeAttributeValue(e):5===this._state?this.stateBeforeClosingTagName(e):7===this._state?this.stateAfterClosingTagName(e):32===this._state?this.stateBeforeSpecialS(e):21===this._state?this.stateAfterComment1(e):14===this._state?this.stateInAttributeValueNoQuotes(e):4===this._state?this.stateInSelfClosingTag(e):16===this._state?this.stateInDeclaration(e):15===this._state?this.stateBeforeDeclaration(e):22===this._state?this.stateAfterComment2(e):18===this._state?this.stateBeforeComment(e):33===this._state?this.stateBeforeSpecialSEnd(e):53===this._state?C(this,e):39===this._state?w(this,e):40===this._state?$(this,e):41===this._state?_(this,e):34===this._state?g(this,e):35===this._state?y(this,e):36===this._state?b(this,e):37===this._state?v(this,e):38===this._state?this.stateBeforeSpecialLast(e,2):42===this._state?x(this,e):43===this._state?this.stateAfterSpecialLast(e,6):44===this._state?S(this,e):29===this._state?this.stateInCdata(e):45===this._state?Q(this,e):46===this._state?k(this,e):47===this._state?this.stateBeforeSpecialLast(e,3):48===this._state?P(this,e):49===this._state?T(this,e):50===this._state?q(this,e):51===this._state?this.stateAfterSpecialLast(e,5):52===this._state?R(this,e):54===this._state?E(this,e):55===this._state?j(this,e):56===this._state?N(this,e):57===this._state?this.stateBeforeSpecialLast(e,4):58===this._state?A(this,e):59===this._state?z(this,e):60===this._state?D(this,e):61===this._state?this.stateAfterSpecialLast(e,5):17===this._state?this.stateInProcessingInstruction(e):64===this._state?this.stateInNamedEntity(e):23===this._state?f(this,e):62===this._state?W(this,e):24===this._state?p(this,e):25===this._state?h(this,e):30===this._state?this.stateAfterCdata1(e):31===this._state?this.stateAfterCdata2(e):26===this._state?O(this,e):27===this._state?m(this,e):28===this._state?this.stateBeforeCdata6(e):66===this._state?this.stateInHexEntity(e):65===this._state?this.stateInNumericEntity(e):63===this._state?V(this,e):this.cbs.onerror(Error("unknown _state"),this._state),this._index++}this.cleanup()},e.prototype.finish=function(){this.sectionStart<this._index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.substr(this.sectionStart);29===this._state||30===this._state||31===this._state?this.cbs.oncdata(e):19===this._state||21===this._state||22===this._state?this.cbs.oncomment(e):64!==this._state||this.xmlMode?65!==this._state||this.xmlMode?66!==this._state||this.xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this.cbs.ontext(e):(this.decodeNumericEntity(3,16,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.decodeNumericEntity(2,10,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.parseLegacyEntity(),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData()))},e.prototype.getSection=function(){return this.buffer.substring(this.sectionStart,this._index)},e.prototype.emitToken=function(e){this.cbs[e](this.getSection()),this.sectionStart=-1},e.prototype.emitPartial=function(e){1!==this.baseState?this.cbs.onattribdata(e):this.cbs.ontext(e)},e}();t.default=M},5106:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RssHandler=t.DefaultHandler=t.DomUtils=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DomHandler=t.Parser=void 0;var l=n(6666);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return l.Parser}});var c=n(1142);function u(e,t){var n=new c.DomHandler(void 0,t);return new l.Parser(n,t).end(e),n.root}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return c.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return c.DomHandler}}),t.parseDocument=u,t.parseDOM=function(e,t){return u(e,t).children},t.createDomStream=function(e,t,n){var i=new c.DomHandler(e,t,n);return new l.Parser(i,t)};var d=n(34);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return a(d).default}});var f=o(n(9960));t.ElementType=f,s(n(7613),t),t.DomUtils=o(n(7241));var p=n(7613);Object.defineProperty(t,"RssHandler",{enumerable:!0,get:function(){return p.FeedHandler}})},977:(e,t)=>{"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,i;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(i=t.prototype)&&!1!==i.hasOwnProperty("isPrototypeOf"))}},3379:e=>{"use strict";var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var o={},s=[],a=0;a<e.length;a++){var l=e[a],c=i.base?l[0]+i.base:l[0],u=o[c]||0,d="".concat(c," ").concat(u);o[c]=u+1;var f=n(d),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var h=r(p,i);i.byIndex=a,t.splice(a,0,{identifier:d,updater:h,references:1})}s.push(d)}return s}function r(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var o=i(e=e||[],r=r||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var a=n(o[s]);t[a].references--}for(var l=i(e,r),c=0;c<o.length;c++){var u=n(o[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}o=l}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},9196:e=>{"use strict";e.exports=window.React},1850:e=>{"use strict";e.exports=window.ReactDOM},6292:e=>{"use strict";e.exports=window.moment},2868:()=>{},4777:()=>{},9830:()=>{},209:()=>{},7414:()=>{},2618:e=>{e.exports={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let i="",r=n;for(;r--;)i+=e[Math.random()*e.length|0];return i}}},7607:e=>{"use strict";e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},4168:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":" ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},7272:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},729:e=>{"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.nc=void 0,(()=>{"use strict";var e={};n.r(e),n.d(e,{getActiveTab:()=>gn,getDeleteStatus:()=>vn,getFieldDeleteMessage:()=>An,getFieldDeleteMessages:()=>Cn,getFieldDeleteStatus:()=>Nn,getFieldDeleteStatuses:()=>jn,getFieldRelatedObjects:()=>mn,getFieldSaveMessage:()=>En,getFieldSaveMessages:()=>Rn,getFieldSaveStatus:()=>qn,getFieldSaveStatuses:()=>Tn,getFieldTypeObject:()=>On,getFieldTypeObjects:()=>hn,getFieldsFromAllGroups:()=>rn,getGlobalFieldOptions:()=>pn,getGlobalGroupOptions:()=>fn,getGlobalPodFieldsFromAllGroups:()=>dn,getGlobalPodGroup:()=>cn,getGlobalPodGroupFields:()=>un,getGlobalPodGroups:()=>ln,getGlobalPodOption:()=>an,getGlobalPodOptions:()=>sn,getGlobalShowFields:()=>on,getGroup:()=>tn,getGroupDeleteMessage:()=>Pn,getGroupDeleteMessages:()=>kn,getGroupDeleteStatus:()=>Qn,getGroupDeleteStatuses:()=>Sn,getGroupFields:()=>nn,getGroupSaveMessage:()=>xn,getGroupSaveMessages:()=>_n,getGroupSaveStatus:()=>$n,getGroupSaveStatuses:()=>wn,getGroups:()=>en,getPodID:()=>Bt,getPodName:()=>Ht,getPodOption:()=>Jt,getPodOptions:()=>Kt,getSaveMessage:()=>bn,getSaveStatus:()=>yn,getState:()=>Ft});var t={};function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function s(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(t),n.d(t,{addGroup:()=>Kn,addGroupField:()=>ni,deleteField:()=>ui,deleteGroup:()=>li,deletePod:()=>si,moveGroup:()=>Hn,refreshPodData:()=>Fn,removeGroup:()=>Jn,removeGroupField:()=>ii,resetFieldSaveStatus:()=>In,resetGroupSaveStatus:()=>Mn,saveField:()=>ci,saveGroup:()=>ai,savePod:()=>oi,setActiveTab:()=>zn,setDeleteStatus:()=>Wn,setFieldDeleteStatus:()=>Ln,setFieldSaveStatus:()=>Un,setGroupData:()=>ei,setGroupDeleteStatus:()=>Xn,setGroupFieldData:()=>ri,setGroupFields:()=>ti,setGroupSaveStatus:()=>Vn,setGroups:()=>Bn,setOptionValue:()=>Gn,setOptionsValues:()=>Yn,setPodName:()=>Zn,setSaveStatus:()=>Dn});var a=n(9196),l=n.n(a),c=n(1850),u=n.n(c);const d=window.lodash,f=window.wp.hooks,p=window.wp.data,h=window.wp.plugins;function O(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function m(e){return!!e&&!!e[se]}function g(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===ae}(e)||Array.isArray(e)||!!e[oe]||!!e.constructor[oe]||S(e)||Q(e))}function y(e,t,n){void 0===n&&(n=!1),0===b(e)?(n?Object.keys:le)(e).forEach((function(i){n&&"symbol"==typeof i||t(i,e[i],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function b(e){var t=e[se];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:S(e)?2:Q(e)?3:0}function v(e,t){return 2===b(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function w(e,t){return 2===b(e)?e.get(t):e[t]}function $(e,t,n){var i=b(e);2===i?e.set(t,n):3===i?(e.delete(t),e.add(n)):e[t]=n}function x(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function S(e){return te&&e instanceof Map}function Q(e){return ne&&e instanceof Set}function k(e){return e.o||e.t}function P(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ce(e);delete t[se];for(var n=le(t),i=0;i<n.length;i++){var r=n[i],o=t[r];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[r]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[r]})}return Object.create(Object.getPrototypeOf(e),t)}function T(e,t){return void 0===t&&(t=!1),R(e)||m(e)||!g(e)||(b(e)>1&&(e.set=e.add=e.clear=e.delete=q),Object.freeze(e),t&&y(e,(function(e,t){return T(t,!0)}),!0)),e}function q(){O(2)}function R(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function E(e){var t=ue[e];return t||O(18,e),t}function j(e,t){ue[e]||(ue[e]=t)}function N(){return J}function C(e,t){t&&(E("Patches"),e.u=[],e.s=[],e.v=t)}function A(e){z(e),e.p.forEach(W),e.p=null}function z(e){e===J&&(J=e.l)}function D(e){return J={p:[],l:J,h:e,m:!0,_:0}}function W(e){var t=e[se];0===t.i||1===t.i?t.j():t.O=!0}function V(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.g||E("ES5").S(t,e,i),i?(n[se].P&&(A(t),O(4)),g(e)&&(e=M(t,e),t.l||U(t,e)),t.u&&E("Patches").M(n[se].t,e,t.u,t.s)):e=M(t,n,[]),A(t),t.u&&t.v(t.u,t.s),e!==re?e:void 0}function M(e,t,n){if(R(t))return t;var i=t[se];if(!i)return y(t,(function(r,o){return X(e,i,t,r,o,n)}),!0),t;if(i.A!==e)return t;if(!i.P)return U(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=P(i.k):i.o;y(3===i.i?new Set(r):r,(function(t,o){return X(e,i,r,t,o,n)})),U(e,r,!1),n&&e.u&&E("Patches").R(i,n,e.u,e.s)}return i.o}function X(e,t,n,i,r,o){if(m(r)){var s=M(e,r,o&&t&&3!==t.i&&!v(t.D,i)?o.concat(i):void 0);if($(n,i,s),!m(s))return;e.m=!1}if(g(r)&&!R(r)){if(!e.h.F&&e._<1)return;M(e,r),t&&t.A.l||U(e,r)}}function U(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&T(t,n)}function I(e,t){var n=e[se];return(n?k(n):e)[t]}function L(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}function Z(e){e.P||(e.P=!0,e.l&&Z(e.l))}function G(e){e.o||(e.o=P(e.t))}function Y(e,t,n){var i=S(t)?E("MapSet").N(t,n):Q(t)?E("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),i={i:n?1:0,A:t?t.A:N(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},r=i,o=de;n&&(r=[i],o=fe);var s=Proxy.revocable(r,o),a=s.revoke,l=s.proxy;return i.k=l,i.j=a,l}(t,n):E("ES5").J(t,n);return(n?n.A:N()).p.push(i),i}function F(e){return m(e)||O(22,e),function e(t){if(!g(t))return t;var n,i=t[se],r=b(t);if(i){if(!i.P&&(i.i<4||!E("ES5").K(i)))return i.t;i.I=!0,n=B(t,r),i.I=!1}else n=B(t,r);return y(n,(function(t,r){i&&w(i.t,t)===r||$(n,t,e(r))})),3===r?new Set(n):n}(e)}function B(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return P(e)}function H(){function e(e,t){var n=r[e];return n?n.enumerable=t:r[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[se];return de.get(t,e)},set:function(t){var n=this[se];de.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var r=e[t][se];if(!r.P)switch(r.i){case 5:i(r)&&Z(r);break;case 4:n(r)&&Z(r)}}}function n(e){for(var t=e.t,n=e.k,i=le(n),r=i.length-1;r>=0;r--){var o=i[r];if(o!==se){var s=t[o];if(void 0===s&&!v(t,o))return!0;var a=n[o],l=a&&a[se];if(l?l.t!==s:!x(a,s))return!0}}var c=!!t[se];return i.length!==le(t).length+(c?0:1)}function i(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var i=0;i<t.length;i++)if(!t.hasOwnProperty(i))return!0;return!1}var r={};j("ES5",{J:function(t,n){var i=Array.isArray(t),r=function(t,n){if(t){for(var i=Array(n.length),r=0;r<n.length;r++)Object.defineProperty(i,""+r,e(r,!0));return i}var o=ce(n);delete o[se];for(var s=le(o),a=0;a<s.length;a++){var l=s[a];o[l]=e(l,t||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(i,t),o={i:i?5:4,A:n?n.A:N(),P:!1,I:!1,D:{},l:n,t,k:r,o:null,O:!1,C:!1};return Object.defineProperty(r,se,{value:o,writable:!0}),r},S:function(e,n,r){r?m(n)&&n[se].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[se];if(n){var r=n.t,o=n.k,s=n.D,a=n.i;if(4===a)y(o,(function(t){t!==se&&(void 0!==r[t]||v(r,t)?s[t]||e(o[t]):(s[t]=!0,Z(n)))})),y(r,(function(e){void 0!==o[e]||v(o,e)||(s[e]=!1,Z(n))}));else if(5===a){if(i(n)&&(Z(n),s.length=!0),o.length<r.length)for(var l=o.length;l<r.length;l++)s[l]=!1;else for(var c=r.length;c<o.length;c++)s[c]=!0;for(var u=Math.min(o.length,r.length),d=0;d<u;d++)o.hasOwnProperty(d)||(s[d]=!0),void 0===s[d]&&e(o[d])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):i(e)}})}var K,J,ee="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),te="undefined"!=typeof Map,ne="undefined"!=typeof Set,ie="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,re=ee?Symbol.for("immer-nothing"):((K={})["immer-nothing"]=!0,K),oe=ee?Symbol.for("immer-draftable"):"__$immer_draftable",se=ee?Symbol.for("immer-state"):"__$immer_state",ae=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),le="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ce=Object.getOwnPropertyDescriptors||function(e){var t={};return le(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},ue={},de={get:function(e,t){if(t===se)return e;var n=k(e);if(!v(n,t))return function(e,t,n){var i,r=L(t,n);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(e.k):void 0}(e,n,t);var i=n[t];return e.I||!g(i)?i:i===I(e.t,t)?(G(e),e.o[t]=Y(e.A.h,i,e)):i},has:function(e,t){return t in k(e)},ownKeys:function(e){return Reflect.ownKeys(k(e))},set:function(e,t,n){var i=L(k(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,n),!0;if(!e.P){var r=I(k(e),t),o=null==r?void 0:r[se];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(x(n,r)&&(void 0!==n||v(e.t,t)))return!0;G(e),Z(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==I(e.t,t)||t in e.t?(e.D[t]=!1,G(e),Z(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=k(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:i.enumerable,value:n[t]}:i},defineProperty:function(){O(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){O(12)}},fe={};y(de,(function(e,t){fe[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),fe.deleteProperty=function(e,t){return fe.set.call(this,e,t,void 0)},fe.set=function(e,t,n){return de.set.call(this,e[0],t,n,e[0])};var pe=function(){function e(e){var t=this;this.g=ie,this.F=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var r=n;n=e;var o=t;return function(e){var t=this;void 0===e&&(e=r);for(var i=arguments.length,s=Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return o.produce(e,(function(e){var i;return(i=n).call.apply(i,[t,e].concat(s))}))}}var s;if("function"!=typeof n&&O(6),void 0!==i&&"function"!=typeof i&&O(7),g(e)){var a=D(t),l=Y(t,e,void 0),c=!0;try{s=n(l),c=!1}finally{c?A(a):z(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(e){return C(a,i),V(e,a)}),(function(e){throw A(a),e})):(C(a,i),V(s,a))}if(!e||"object"!=typeof e){if(void 0===(s=n(e))&&(s=e),s===re&&(s=void 0),t.F&&T(s,!0),i){var u=[],d=[];E("Patches").M(e,s,u,d),i(u,d)}return s}O(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(r))}))};var i,r,o=t.produce(e,n,(function(e,t){i=e,r=t}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(e){return[e,i,r]})):[o,i,r]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){g(e)||O(8),m(e)&&(e=F(e));var t=D(this),n=Y(this,e,void 0);return n[se].C=!0,z(t),n},t.finishDraft=function(e,t){var n=(e&&e[se]).A;return C(n,t),V(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!ie&&O(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var i=t[n];if(0===i.path.length&&"replace"===i.op){e=i.value;break}}n>-1&&(t=t.slice(n+1));var r=E("Patches").$;return m(e)?r(e,t):this.produce(e,(function(e){return r(e,t)}))},e}(),he=new pe;he.produce,he.produceWithPatches.bind(he),he.setAutoFreeze.bind(he),he.setUseProxies.bind(he),he.applyPatches.bind(he),he.createDraft.bind(he),he.finishDraft.bind(he);function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ge(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var ye="function"==typeof Symbol&&Symbol.observable||"@@observable",be=function(){return Math.random().toString(36).substring(7).split("").join(".")},ve={INIT:"@@redux/INIT"+be(),REPLACE:"@@redux/REPLACE"+be(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+be()}};function we(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function $e(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ge(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ge(1));return n($e)(e,t)}if("function"!=typeof e)throw new Error(ge(2));var r=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(ge(3));return o}function d(e){if("function"!=typeof e)throw new Error(ge(4));if(l)throw new Error(ge(5));var t=!0;return c(),a.push(e),function(){if(t){if(l)throw new Error(ge(6));t=!1,c();var n=a.indexOf(e);a.splice(n,1),s=null}}}function f(e){if(!we(e))throw new Error(ge(7));if(void 0===e.type)throw new Error(ge(8));if(l)throw new Error(ge(9));try{l=!0,o=r(o,e)}finally{l=!1}for(var t=s=a,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!=typeof e)throw new Error(ge(10));r=e,f({type:ve.REPLACE})}function h(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(ge(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[ye]=function(){return this},e}return f({type:ve.INIT}),(i={dispatch:f,subscribe:d,getState:u,replaceReducer:p})[ye]=h,i}function _e(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++){var r=t[i];0,"function"==typeof e[r]&&(n[r]=e[r])}var o,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:ve.INIT}))throw new Error(ge(12));if(void 0===n(void 0,{type:ve.PROBE_UNKNOWN_ACTION()}))throw new Error(ge(13))}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var i=!1,r={},a=0;a<s.length;a++){var l=s[a],c=n[l],u=e[l],d=c(u,t);if(void 0===d){t&&t.type;throw new Error(ge(14))}r[l]=d,i=i||d!==u}return(i=i||s.length!==Object.keys(e).length)?r:e}}function xe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),i=function(){throw new Error(ge(15))},r={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},o=t.map((function(e){return e(r)}));return i=xe.apply(void 0,o)(n.dispatch),me(me({},n),{},{dispatch:i})}}}function Qe(e){return function(t){var n=t.dispatch,i=t.getState;return function(t){return function(r){return"function"==typeof r?r(n,i,e):t(r)}}}}var ke=Qe();ke.withExtraArgument=Qe;const Pe=ke;var Te,qe=(Te=function(e,t){return Te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Te(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Te(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Re=function(e,t){for(var n=0,i=t.length,r=e.length;n<i;n++,r++)e[r]=t[n];return e},Ee=Object.defineProperty,je=(Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols),Ne=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Ae=function(e,t,n){return t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ze=function(e,t){for(var n in t||(t={}))Ne.call(t,n)&&Ae(e,n,t[n]);if(je)for(var i=0,r=je(t);i<r.length;i++){n=r[i];Ce.call(t,n)&&Ae(e,n,t[n])}return e},De="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?xe:xe.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function We(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}var Ve=function(e){function t(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=e.apply(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return qe(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,Re([void 0],e[0].concat(this)))):new(t.bind.apply(t,Re([void 0],e.concat(this))))},t}(Array);function Me(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,i=(e.immutableCheck,e.serializableCheck,new Ve);n&&(!function(e){return"boolean"==typeof e}(n)?i.push(Pe.withExtraArgument(n.extraArgument)):i.push(Pe));0;return i}(e)}}function Xe(e){var t,n=Me(),i=e||{},r=i.reducer,o=void 0===r?void 0:r,s=i.middleware,a=void 0===s?n():s,l=i.devTools,c=void 0===l||l,u=i.preloadedState,d=void 0===u?void 0:u,f=i.enhancers,p=void 0===f?void 0:f;if("function"==typeof o)t=o;else{if(!We(o))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=_e(o)}var h=a;"function"==typeof h&&(h=h(n));var O=Se.apply(void 0,h),m=xe;c&&(m=De(ze({trace:!1},"object"==typeof c&&c)));var g=[O];return Array.isArray(p)?g=Re([O],p):"function"==typeof p&&(g=p(g)),$e(t,d,m.apply(void 0,g))}function Ue(e,t){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var r=t.apply(void 0,n);if(!r)throw new Error("prepareAction did not return an object");return ze(ze({type:e,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}Object.assign;var Ie="listenerMiddleware";Ue(Ie+"/add"),Ue(Ie+"/removeAll"),Ue(Ie+"/remove");H();var Le=function(e){return(0,d.tail)(e.split(".")).join(".")},Ze=function(e,t){return t.split(".").reduceRight((function(e,t){return i({},t,e)}),e)},Ge=function(e,t){return t.split(".").reduce((function(e,t){return e[t]}),e)},Ye=function(e){return{path:e,tailPath:Le(e),getFrom:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Ge(t,n)},tailGetFrom:function(t){return Ge(t,Le(e))},createTree:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Ze(t,n)},tailCreateTree:function(t){return Ze(t,Le(e))}}},Fe=Ye("currentPod"),Be=Ye("".concat(Fe.path,".name")),He=Ye("".concat(Fe.path,".id")),Ke=Ye("".concat(Fe.path,".groups")),Je=Ye("global"),et=Ye("".concat(Je.path,".showFields")),tt=Ye("".concat(Je.path,".pod")),nt=Ye("".concat(tt.path,".groups")),it=Ye("".concat(Je.path,".group")),rt=Ye("".concat(Je.path,".field")),ot=Ye("data"),st=Ye("".concat(ot.path,".fieldTypes")),at=Ye("".concat(ot.path,".relatedObjects")),lt=Ye("ui"),ct=Ye("".concat(lt.path,".activeTab")),ut=Ye("".concat(lt.path,".saveStatus")),dt=Ye("".concat(lt.path,".deleteStatus")),ft=Ye("".concat(lt.path,".saveMessage")),pt=Ye("".concat(lt.path,".groupSaveStatuses")),ht=Ye("".concat(lt.path,".groupSaveMessages")),Ot=Ye("".concat(lt.path,".groupDeleteStatuses")),mt=Ye("".concat(lt.path,".groupDeleteMessages")),gt=Ye("".concat(lt.path,".fieldSaveStatuses")),yt=Ye("".concat(lt.path,".fieldSaveMessages")),bt=Ye("".concat(lt.path,".fieldDeleteStatuses")),vt=Ye("".concat(lt.path,".fieldDeleteMessages")),wt="pods/edit-pod",$t="pods/dfv",_t={NONE:"",DELETING:"DELETING",DELETE_SUCCESS:"DELETE_SUCCESS",DELETE_ERROR:"DELETE_ERROR"},xt={NONE:"",SAVING:"SAVING",SAVE_SUCCESS:"SAVE_SUCCESS",SAVE_ERROR:"SAVE_ERROR",DELETE_ERROR:"DELETE_ERROR"},St="UI/SET_ACTIVE_TAB",Qt="UI/SET_SAVE_STATUS",kt="UI/SET_DELETE_STATUS",Pt="UI/SET_GROUP_SAVE_STATUS",Tt="UI/SET_GROUP_DELETE_STATUS",qt="UI/SET_FIELD_SAVE_STATUS",Rt="UI/SET_FIELD_DELETE_STATUS",Et="CURRENT_POD/SET_POD_NAME",jt="CURRENT_POD/SET_OPTION_ITEM_VALUE",Nt="CURRENT_POD/SET_OPTIONS_VALUES",Ct="CURRENT_POD/SET_GROUPS",At="CURRENT_POD/MOVE_GROUP",zt="CURRENT_POD/ADD_GROUP",Dt="CURRENT_POD/REMOVE_GROUP",Wt="CURRENT_POD/SET_GROUP_DATA",Vt="CURRENT_POD/SET_GROUP_FIELDS",Mt="CURRENT_POD/ADD_GROUP_FIELD",Xt="CURRENT_POD/REMOVE_GROUP_FIELD",Ut="CURRENT_POD/SET_GROUP_FIELD_DATA",It="CURRENT_POD/API_REQUEST",Lt={activeTab:"manage-fields",saveStatus:xt.NONE,saveMessage:null,deleteStatus:_t.NONE,deleteMessage:null,groupSaveStatuses:{},groupSaveMessages:{},groupDeleteStatuses:{},groupDeleteMessages:{},fieldSaveStatuses:{},fieldSaveMessages:{},fieldDeleteStatuses:{},fieldDeleteMessages:{}};function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Yt=(0,p.combineReducers)({ui:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lt,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case St:return Gt(Gt({},e),{},{activeTab:t.activeTab});case Qt:var n,r=Object.values(xt).includes(t.saveStatus)?t.saveStatus:Lt.saveStatus;return Gt(Gt({},e),{},{saveStatus:r,saveMessage:(null===(n=t.result)||void 0===n?void 0:n.message)||""});case kt:var o,s=Object.values(_t).includes(t.deleteStatus)?t.deleteStatus:Lt.deleteStatus;return Gt(Gt({},e),{},{deleteStatus:s,deleteMessage:(null===(o=t.result)||void 0===o?void 0:o.message)||""});case Pt:var a,l,c,u,f=t.result,p=Object.values(xt).includes(t.saveStatus)?t.saveStatus:Lt.saveStatus,h=(null===(a=f.group)||void 0===a?void 0:a.name)&&(null===(l=f.group)||void 0===l?void 0:l.name)!==t.previousGroupName||!1,O=h?null===(c=f.group)||void 0===c?void 0:c.name:t.previousGroupName,m=Gt(Gt({},(0,d.omit)(e.groupSaveStatuses,[t.previousGroupName])),{},i({},O,p)),g=Gt(Gt({},(0,d.omit)(e.groupSaveMessages,[t.previousGroupName])),{},i({},O,(null===(u=t.result)||void 0===u?void 0:u.message)||""));return Gt(Gt({},e),{},{groupSaveStatuses:m,groupSaveMessages:g});case Tt:var y,b=Object.values(_t).includes(t.deleteStatus)?t.deleteStatus:_t.NONE;return t.name?Gt(Gt({},e),{},{groupDeleteStatuses:Gt(Gt({},e.groupDeleteStatuses),{},i({},t.name,b)),groupDeleteMessages:Gt(Gt({},e.groupDeleteMessages),{},i({},t.name,(null===(y=t.result)||void 0===y?void 0:y.message)||""))}):e;case qt:var v,w,$,_=t.result,x=Object.values(xt).includes(t.saveStatus)?t.saveStatus:Lt.saveStatus,S=(null===(v=_.field)||void 0===v?void 0:v.name)&&(null===(w=_.field)||void 0===w?void 0:w.name)!==t.previousFieldName||!1,Q=S?_.field.name:t.previousFieldName,k=Gt(Gt({},(0,d.omit)(e.fieldSaveStatuses,[t.previousFieldName])),{},i({},Q,x)),P=Gt(Gt({},(0,d.omit)(e.fieldSaveMessages,[t.previousFieldName])),{},i({},Q,(null===($=t.result)||void 0===$?void 0:$.message)||""));return Gt(Gt({},e),{},{fieldSaveStatuses:k,fieldSaveMessages:P});case Rt:var T,q=Object.values(_t).includes(t.deleteStatus)?t.deleteStatus:_t.NONE;return t.name?Gt(Gt({},e),{},{fieldDeleteStatuses:Gt(Gt({},e.fieldDeleteStatuses),{},i({},t.name,q)),fieldDeleteMessages:Gt(Gt({},e.fieldDeleteMessages),{},i({},t.name,null===(T=t.result)||void 0===T?void 0:T.message))}):e;default:return e}},currentPod:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case Et:return Gt(Gt({},e),{},{name:t.name});case jt:var n=t.optionName,r=t.value;return Gt(Gt({},e),{},i({},n,r));case Nt:return Gt(Gt({},e),t.options);case At:var o=t.oldIndex,a=t.newIndex;if(null===o||null===a||o===a)return e;if(o>=e.groups.length||0>o)return e;if(a>=e.groups.length||0>a)return e;var l=s(e.groups);return l.splice(a,0,l.splice(o,1)[0]),Gt(Gt({},e),{},{groups:l});case Ct:return Gt(Gt({},e),{},i({},Ke.tailPath,t.groups));case zt:var c,u,d;return null!=t&&null!==(c=t.result)&&void 0!==c&&null!==(u=c.group)&&void 0!==u&&u.id?Gt(Gt({},e),{},{groups:[].concat(s(e.groups),[null==t||null===(d=t.result)||void 0===d?void 0:d.group])}):e;case Dt:return Gt(Gt({},e),{},{groups:e.groups?e.groups.filter((function(e){return e.id!==t.groupID})):void 0});case Wt:var f=t.result,p=e.groups.map((function(e){var n,i;return e.id!==(null===(n=f.group)||void 0===n?void 0:n.id)?e:Gt(Gt({},t.result.group),{},{fields:(null===(i=f.group)||void 0===i?void 0:i.fields)||e.fields||[]})}));return Gt(Gt({},e),{},{groups:p});case Vt:var h=e.groups.map((function(e){return e.name!==t.groupName?e:Gt(Gt({},e),{},{fields:t.fields})}));return Gt(Gt({},e),{},{groups:h});case Mt:var O,m;if(null==t||null===(O=t.result)||void 0===O||null===(m=O.field)||void 0===m||!m.id)return e;var g=e.groups.map((function(e){var n;if(e.name!==t.groupName)return e;var i=t.index?t.index:(null===(n=e.fields)||void 0===n?void 0:n.length)||0,r=s(e.fields||[]);return r.splice(i,0,t.result.field),Gt(Gt({},e),{},{fields:r})}));return Gt(Gt({},e),{},{groups:g});case Xt:var y=e.groups.map((function(e){return e.id!==t.groupID?e:Gt(Gt({},e),{},{fields:e.fields.filter((function(e){return e.id!==t.fieldID}))})}));return Gt(Gt({},e),{},{groups:y});case Ut:var b=t.result,v=e.groups.map((function(e){if(e.name!==t.groupName)return e;var n=e.fields.map((function(e){return e.id===b.field.id?b.field:e}));return Gt(Gt({},e),{},{fields:n})}));return Gt(Gt({},e),{},{groups:v});default:return e}},global:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},data:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e}});var Ft=function(e){return e},Bt=function(e){return He.getFrom(e)},Ht=function(e){return Be.getFrom(e)},Kt=function(e){return Fe.getFrom(e)},Jt=function(e,t){return Fe.getFrom(e)[t]},en=function(e){return Ke.getFrom(e)},tn=function(e,t){return en(e).find((function(e){return t===e.name}))},nn=function(e,t){var n,i;return null!==(n=null===(i=tn(e,t))||void 0===i?void 0:i.fields)&&void 0!==n?n:[]},rn=function(e){return en(e).reduce((function(e,t){return[].concat(s(e),s((null==t?void 0:t.fields)||[]))}),[])},on=function(e){return et.getFrom(e)},sn=function(e){return tt.getFrom(e)},an=function(e,t){return tt.getFrom(e)[t]},ln=function(e){return nt.getFrom(e)},cn=function(e,t){return ln(e).find((function(e){return e.name===t}))},un=function(e,t){var n;return(null===(n=cn(e,t))||void 0===n?void 0:n.fields)||[]},dn=function(e){return ln(e).reduce((function(e,t){return[].concat(s(e),s((null==t?void 0:t.fields)||[]))}),[])},fn=function(e){return it.getFrom(e)},pn=function(e){return rt.getFrom(e)},hn=function(e){return st.getFrom(e)},On=function(e,t){return st.getFrom(e)[t]},mn=function(e){return at.getFrom(e)},gn=function(e){return ct.getFrom(e)},yn=function(e){return ut.getFrom(e)},bn=function(e){return ft.getFrom(e)},vn=function(e){return dt.getFrom(e)},wn=function(e){return pt.getFrom(e)},$n=function(e,t){return pt.getFrom(e)[t]},_n=function(e){return ht.getFrom(e)},xn=function(e,t){return ht.getFrom(e)[t]},Sn=function(e){return Ot.getFrom(e)},Qn=function(e,t){return Ot.getFrom(e)[t]},kn=function(e){return mt.getFrom(e)},Pn=function(e,t){return mt.getFrom(e)[t]},Tn=function(e){return gt.getFrom(e)},qn=function(e,t){return gt.getFrom(e)[t]},Rn=function(e){return yt.getFrom(e)},En=function(e,t){return yt.getFrom(e)[t]},jn=function(e){return bt.getFrom(e)},Nn=function(e,t){return bt.getFrom(e)[t]},Cn=function(e){return vt.getFrom(e)},An=function(e,t){return vt.getFrom(e)[t]},zn=function(e){return{type:St,activeTab:e}},Dn=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:Qt,saveStatus:e,result:t}}},Wn=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:kt,deleteStatus:e,result:t}}},Vn=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:Pt,previousGroupName:t,saveStatus:e,result:n}}},Mn=function(e){return{type:Pt,previousGroupName:e,saveStatus:xt.NONE,result:{}}},Xn=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:Tt,name:t,deleteStatus:e,result:n}}},Un=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:qt,previousFieldName:t,saveStatus:e,result:n}}},In=function(e){return{type:qt,previousFieldName:e,saveStatus:xt.NONE,result:{}}},Ln=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:Rt,name:t,deleteStatus:e,result:n}}},Zn=function(e){return{type:Et,name:e}},Gn=function(e,t){return{type:jt,optionName:e,value:t}},Yn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:Nt,options:e}},Fn=function(e){return Yn((null==e?void 0:e.pod)||{})},Bn=function(e){return{type:Ct,groups:e}},Hn=function(e,t){return{type:At,oldIndex:e,newIndex:t}},Kn=function(e){return{type:zt,result:e}},Jn=function(e){return{type:Dt,groupID:e}},ei=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:Wt,result:e}},ti=function(e,t){return{type:Vt,groupName:e,fields:t}},ni=function(e,t){return function(n){return{type:Mt,groupName:e,index:t,result:n}}},ii=function(e,t){return{type:Xt,groupID:e,fieldID:t}},ri=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:Ut,groupName:e,result:t}}},oi=function(e,t){var n=(0,d.omit)(e,["id","label","name","object_type","storage","object_storage_type","type","_locale","groups"]),i={groups:(e.groups||[]).map((function(e){return{group_id:e.id,fields:(e.fields||[]).map((function(e){return e.id}))}}))},r={name:e.name||"",label:e.label||"",args:n,order:i};return{type:It,payload:{url:t?"/pods/v1/pods/".concat(t):"/pods/v1/pods",method:"POST",data:r,onSuccess:[Dn(xt.SAVE_SUCCESS),Fn],onFailure:Dn(xt.SAVE_ERROR),onStart:Dn(xt.SAVING)}}},si=function(e){return{type:It,payload:{url:"/pods/v1/pods/".concat(e),method:"DELETE",onSuccess:Wn(_t.DELETE_SUCCESS),onFailure:Wn(_t.DELETE_ERROR),onStart:Wn(_t.DELETING)}}},ai=function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5?arguments[5]:void 0;return{type:It,payload:{url:o?"/pods/v1/groups/".concat(o):"/pods/v1/groups",method:"POST",data:{pod_id:e.toString(),name:n,label:i,args:r},onSuccess:[Vn(xt.SAVE_SUCCESS,t),o?ei:Kn],onFailure:Vn(xt.SAVE_ERROR,t),onStart:Vn(xt.SAVING,t)}}},li=function(e,t){return{type:It,payload:{url:"/pods/v1/groups/".concat(e),method:"DELETE",onSuccess:Xn(_t.DELETE_SUCCESS,t),onFailure:Xn(_t.DELETE_ERROR,t),onStart:Xn(_t.DELETING,t)}}},ci=function(e,t,n,i,r,o,s,a,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null;return{type:It,payload:{url:l?"/pods/v1/fields/".concat(l):"/pods/v1/fields",method:"POST",data:{pod_id:e.toString(),group_id:t.toString(),name:r,label:o,type:s,args:a},onSuccess:[Un(xt.SAVE_SUCCESS,i),l?ri(n):ni(n,c)],onFailure:Un(xt.SAVE_ERROR,i),onStart:Un(xt.SAVING,i)}}},ui=function(e,t){return{type:It,payload:{url:"/pods/v1/fields/".concat(e),method:"DELETE",onSuccess:Ln(_t.DELETE_SUCCESS,t),onFailure:Ln(_t.DELETE_ERROR,t),onStart:Ln(_t.DELETING,t)}}};function di(e,t,n,i,r,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function fi(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function s(e){di(o,i,r,s,a,"next",e)}function a(e){di(o,i,r,s,a,"throw",e)}s(void 0)}))}}const pi=window.regeneratorRuntime;var hi=n.n(pi);const Oi=window.wp.apiFetch;var mi=n.n(Oi);function gi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);s=!0);}catch(e){a=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yi(e){return yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yi(e)}const bi=function(e){return"object"!==yi(e)||(Object.entries(e).forEach((function(t){var n=gi(t,2),i=n[0],r=n[1];"boolean"==typeof r?e[i]=r?1:0:void 0===r&&(e[i]="")})),void 0!==e.args&&Object.entries(e.args).forEach((function(t){var n=gi(t,2),i=n[0],r=n[1];"boolean"==typeof r?e.args[i]=r?1:0:void 0===r&&(e.args[i]="")}))),e};var vi=It;const wi=function(e){var t=e.dispatch;return function(e){return function(){var n=fi(hi().mark((function n(i){var r,o,s,a,l,c,u,d;return hi().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e(i),vi===i.type){n.next=3;break}return n.abrupt("return");case 3:return r=i.payload,o=r.url,s=r.method,a=r.data,l=r.onSuccess,c=r.onFailure,(u=r.onStart)&&t(u()),n.prev=5,n.next=8,mi()({path:o,method:s,parse:!0,data:bi(a)});case 8:d=n.sent,Array.isArray(l)?l.forEach((function(e){return t(e(d))})):t(l(d)),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(5),Array.isArray(c)?c.forEach((function(e){return t(e(n.t0))})):t(c(n.t0));case 15:case"end":return n.stop()}}),n,null,[[5,12]])})));return function(e){return n.apply(this,arguments)}}()}};function $i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$i(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xi=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return i.length?"".concat(i,"-").concat(e,"-").concat(t,"-").concat(n):"".concat(e,"-").concat(t,"-").concat(n)},Si=function(n,i){var r=Xe({reducer:Yt,middleware:[wi],preloadedState:n}),o=Object.keys(e).reduce((function(t,n){return t[n]=function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return e[n].apply(e,[r.getState()].concat(i))},t}),{}),s=Object.keys(t).reduce((function(e,n){return e[n]=function(){return r.dispatch(t[n].apply(t,arguments))},e}),{}),a={name:i,instantiate:function(){return{getSelectors:function(){return o},getActions:function(){return s},subscribe:r.subscribe}}};return(0,p.register)(a),i},Qi=function(e){var t,n,i,r,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=(null==e||null===(t=e.global)||void 0===t||null===(n=t.pod)||void 0===n||null===(i=n.groups)||void 0===i||null===(r=i[0])||void 0===r?void 0:r.name)||"",l=_i(_i({},Lt),{},{activeTab:!1===(null===(o=e.global)||void 0===o?void 0:o.showFields)?a:"manage-fields"}),c=_i(_i({},lt.createTree(l)),{},{data:{fieldTypes:_i({},e.fieldTypes||{}),relatedObjects:_i({},e.relatedObjects||{})}},(0,d.omit)(e,["fieldTypes","relatedObjects"]));return Si(c,s)},ki=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=_i(_i({data:{fieldTypes:_i({},e.fieldTypes||{}),relatedObjects:_i({},e.relatedObjects||{})}},(0,d.omit)(e,["fieldTypes","relatedObjects"])),{},{currentPod:t});return Si(i,n)},Pi=n(5697),Ti=n.n(Pi);const qi=window.wp.compose,Ri=window.wp.i18n;function Ei(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ji(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ni(e,t,n){return t&&ji(e.prototype,t),n&&ji(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ci(e,t){return Ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ci(e,t)}function Ai(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ci(e,t)}function zi(e,t){if(t&&("object"===yi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Di(e){return Di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Di(e)}function Wi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Di(e);if(t){var r=Di(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return zi(this,n)}}var Vi=function(e){Ai(n,e);var t=Wi(n);function n(e){var i;return Ei(this,n),(i=t.call(this,e)).state={hasError:!1,error:null},i}return Ni(n,[{key:"componentDidCatch",value:function(e,t){console.warn("There was an error rendering this field.",e,t)}},{key:"render",value:function(){return this.state.hasError?l().createElement("div",{__self:this,__source:{fileName:"/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/field-wrapper/field-error-boundary.js",lineNumber:36,columnNumber:5}},"There was an error rendering the field."):l().createElement(l().Fragment,null,this.props.children)}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0,error:e}}}]),n}(l().Component);Vi.propTypes={children:Ti().element.isRequired};const Mi=Vi;var Xi=n(4184),Ui=n.n(Xi),Ii=n(3379),Li=n.n(Ii),Zi=n(7795),Gi=n.n(Zi),Yi=n(569),Fi=n.n(Yi),Bi=n(3565),Hi=n.n(Bi),Ki=n(9216),Ji=n.n(Ki),er=n(4589),tr=n.n(er),nr=n(3418),ir={};ir.styleTagTransform=tr(),ir.setAttributes=Hi(),ir.insert=Fi().bind(null,"head"),ir.domAPI=Gi(),ir.insertStyleElement=Ji();Li()(nr.Z,ir);nr.Z&&nr.Z.locals&&nr.Z.locals;var rr="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/field-wrapper/div-field-layout.js",or=void 0,sr=function(e){var t=e.fieldType,n=e.labelComponent,i=e.descriptionComponent,r=e.inputComponent,o=e.validationMessagesComponent,s=Ui()("pods-dfv-container","pods-dfv-container-".concat(t));return l().createElement("div",{className:"pods-field-option",__self:or,__source:{fileName:rr,lineNumber:20,columnNumber:3}},n||void 0,l().createElement("div",{className:"pods-field-option__field",__self:or,__source:{fileName:rr,lineNumber:23,columnNumber:4}},l().createElement("div",{className:s,__self:or,__source:{fileName:rr,lineNumber:24,columnNumber:5}},r,o),i||void 0))};sr.defaultProps={labelComponent:void 0,descriptionComponent:void 0},sr.propTypes={fieldType:Ti().string.isRequired,labelComponent:Ti().element,descriptionComponent:Ti().element,inputComponent:Ti().element.isRequired,validationMessagesComponent:Ti().element};const ar=sr;var lr=n(1036),cr=n.n(lr);const ur=window.wp.autop;var dr={allowedTags:["blockquote","caption","div","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","li","ol","p","pre","section","table","tbody","td","th","thead","tr","ul","a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],allowedAttributes:{"*":["class","id","data-*","style"],iframe:["*"],a:["href","name","target"],img:["src","srcset","sizes","alt","width","height"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowProtocolRelative:!0},fr={allowedTags:["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],allowedAttributes:{"*":["class","id","data-*","style"],a:["href","name","target"],img:["src","srcset","sizes","alt","width","height"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowProtocolRelative:!0},pr={allowedTags:["h1","h2","h3","h4","h5","h6","blockquote","p","ul","ol","nl","li","b","i","strong","em","strike","code","cite","hr","br","div","table","thead","caption","tbody","tr","th","td","pre","img","figure","figcaption","iframe","section"],allowedAttributes:{"*":["class","id","data-*","style"],iframe:["*"],img:["src","srcset","sizes","alt","width","height"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"]},hr=n(3828),Or={};Or.styleTagTransform=tr(),Or.setAttributes=Hi(),Or.insert=Fi().bind(null,"head"),Or.domAPI=Gi(),Or.insertStyleElement=Ji();Li()(hr.Z,Or);hr.Z&&hr.Z.locals&&hr.Z.locals;var mr=function(e){var t=e.description;return l().createElement("p",{className:"pods-field-description",dangerouslySetInnerHTML:{__html:(0,ur.removep)(cr()(t,pr))},__self:undefined,__source:{fileName:"/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/field-description.js",lineNumber:12,columnNumber:2}})};mr.propTypes={description:Ti().string.isRequired};const gr=mr;function yr(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function br(e){return e instanceof yr(e).Element||e instanceof Element}function vr(e){return e instanceof yr(e).HTMLElement||e instanceof HTMLElement}function wr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof yr(e).ShadowRoot||e instanceof ShadowRoot)}var $r=Math.max,_r=Math.min,xr=Math.round;function Sr(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),i=1,r=1;if(vr(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(i=xr(n.width)/s||1),o>0&&(r=xr(n.height)/o||1)}return{width:n.width/i,height:n.height/r,top:n.top/r,right:n.right/i,bottom:n.bottom/r,left:n.left/i,x:n.left/i,y:n.top/r}}function Qr(e){var t=yr(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function kr(e){return e?(e.nodeName||"").toLowerCase():null}function Pr(e){return((br(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tr(e){return Sr(Pr(e)).left+Qr(e).scrollLeft}function qr(e){return yr(e).getComputedStyle(e)}function Rr(e){var t=qr(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Er(e,t,n){void 0===n&&(n=!1);var i=vr(t),r=vr(t)&&function(e){var t=e.getBoundingClientRect(),n=xr(t.width)/e.offsetWidth||1,i=xr(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),o=Pr(t),s=Sr(e,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==kr(t)||Rr(o))&&(a=function(e){return e!==yr(e)&&vr(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Qr(e);var t}(t)),vr(t)?((l=Sr(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Tr(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function jr(e){var t=Sr(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Nr(e){return"html"===kr(e)?e:e.assignedSlot||e.parentNode||(wr(e)?e.host:null)||Pr(e)}function Cr(e){return["html","body","#document"].indexOf(kr(e))>=0?e.ownerDocument.body:vr(e)&&Rr(e)?e:Cr(Nr(e))}function Ar(e,t){var n;void 0===t&&(t=[]);var i=Cr(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),o=yr(i),s=r?[o].concat(o.visualViewport||[],Rr(i)?i:[]):i,a=t.concat(s);return r?a:a.concat(Ar(Nr(s)))}function zr(e){return["table","td","th"].indexOf(kr(e))>=0}function Dr(e){return vr(e)&&"fixed"!==qr(e).position?e.offsetParent:null}function Wr(e){for(var t=yr(e),n=Dr(e);n&&zr(n)&&"static"===qr(n).position;)n=Dr(n);return n&&("html"===kr(n)||"body"===kr(n)&&"static"===qr(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&vr(e)&&"fixed"===qr(e).position)return null;var n=Nr(e);for(wr(n)&&(n=n.host);vr(n)&&["html","body"].indexOf(kr(n))<0;){var i=qr(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var Vr="top",Mr="bottom",Xr="right",Ur="left",Ir="auto",Lr=[Vr,Mr,Xr,Ur],Zr="start",Gr="end",Yr="viewport",Fr="popper",Br=Lr.reduce((function(e,t){return e.concat([t+"-"+Zr,t+"-"+Gr])}),[]),Hr=[].concat(Lr,[Ir]).reduce((function(e,t){return e.concat([t,t+"-"+Zr,t+"-"+Gr])}),[]),Kr=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Jr(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}function eo(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var to={placement:"bottom",modifiers:[],strategy:"absolute"};function no(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function io(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?to:r;return function(e,t,n){void 0===n&&(n=o);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},to,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:r,setOptions:function(n){var a="function"==typeof n?n(r.options):n;c(),r.options=Object.assign({},o,r.options,a),r.scrollParents={reference:br(e)?Ar(e):e.contextElement?Ar(e.contextElement):[],popper:Ar(t)};var u=function(e){var t=Jr(e);return Kr.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(i,r.options.modifiers)));return r.orderedModifiers=u.filter((function(e){return e.enabled})),r.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:r,name:t,instance:l,options:i}),c=function(){};s.push(a||c)}})),l.update()},forceUpdate:function(){if(!a){var e=r.elements,t=e.reference,n=e.popper;if(no(t,n)){r.rects={reference:Er(t,Wr(n),"fixed"===r.options.strategy),popper:jr(n)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(e){return r.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<r.orderedModifiers.length;i++)if(!0!==r.reset){var o=r.orderedModifiers[i],s=o.fn,c=o.options,u=void 0===c?{}:c,d=o.name;"function"==typeof s&&(r=s({state:r,options:u,name:d,instance:l})||r)}else r.reset=!1,i=-1}}},update:eo((function(){return new Promise((function(e){l.forceUpdate(),e(r)}))})),destroy:function(){c(),a=!0}};if(!no(e,t))return l;function c(){s.forEach((function(e){return e()})),s=[]}return l.setOptions(n).then((function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var ro={passive:!0};const oo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,o=void 0===r||r,s=i.resize,a=void 0===s||s,l=yr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,ro)})),a&&l.addEventListener("resize",n.update,ro),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ro)})),a&&l.removeEventListener("resize",n.update,ro)}},data:{}};function so(e){return e.split("-")[0]}function ao(e){return e.split("-")[1]}function lo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function co(e){var t,n=e.reference,i=e.element,r=e.placement,o=r?so(r):null,s=r?ao(r):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case Vr:t={x:a,y:n.y-i.height};break;case Mr:t={x:a,y:n.y+n.height};break;case Xr:t={x:n.x+n.width,y:l};break;case Ur:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?lo(o):null;if(null!=c){var u="y"===c?"height":"width";switch(s){case Zr:t[c]=t[c]-(n[u]/2-i[u]/2);break;case Gr:t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}const uo={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=co({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var fo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function po(e){var t,n=e.popper,i=e.popperRect,r=e.placement,o=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,p=void 0===f?0:f,h=s.y,O=void 0===h?0:h,m="function"==typeof u?u({x:p,y:O}):{x:p,y:O};p=m.x,O=m.y;var g=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=Ur,v=Vr,w=window;if(c){var $=Wr(n),_="clientHeight",x="clientWidth";if($===yr(n)&&"static"!==qr($=Pr(n)).position&&"absolute"===a&&(_="scrollHeight",x="scrollWidth"),r===Vr||(r===Ur||r===Xr)&&o===Gr)v=Mr,O-=(d&&$===w&&w.visualViewport?w.visualViewport.height:$[_])-i.height,O*=l?1:-1;if(r===Ur||(r===Vr||r===Mr)&&o===Gr)b=Xr,p-=(d&&$===w&&w.visualViewport?w.visualViewport.width:$[x])-i.width,p*=l?1:-1}var S,Q=Object.assign({position:a},c&&fo),k=!0===u?function(e){var t=e.x,n=e.y,i=window.devicePixelRatio||1;return{x:xr(t*i)/i||0,y:xr(n*i)/i||0}}({x:p,y:O}):{x:p,y:O};return p=k.x,O=k.y,l?Object.assign({},Q,((S={})[v]=y?"0":"",S[b]=g?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+O+"px)":"translate3d("+p+"px, "+O+"px, 0)",S)):Object.assign({},Q,((t={})[v]=y?O+"px":"",t[b]=g?p+"px":"",t.transform="",t))}const ho={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,s=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:so(t.placement),variation:ao(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,po(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,po(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const Oo={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];vr(r)&&kr(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});vr(i)&&kr(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};const mo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,o=void 0===r?[0,0]:r,s=Hr.reduce((function(e,n){return e[n]=function(e,t,n){var i=so(e),r=[Ur,Vr].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[Ur,Xr].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,o),e}),{}),a=s[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}};var go={left:"right",right:"left",bottom:"top",top:"bottom"};function yo(e){return e.replace(/left|right|bottom|top/g,(function(e){return go[e]}))}var bo={start:"end",end:"start"};function vo(e){return e.replace(/start|end/g,(function(e){return bo[e]}))}function wo(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wr(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function $o(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _o(e,t){return t===Yr?$o(function(e){var t=yr(e),n=Pr(e),i=t.visualViewport,r=n.clientWidth,o=n.clientHeight,s=0,a=0;return i&&(r=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,a=i.offsetTop)),{width:r,height:o,x:s+Tr(e),y:a}}(e)):br(t)?function(e){var t=Sr(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):$o(function(e){var t,n=Pr(e),i=Qr(e),r=null==(t=e.ownerDocument)?void 0:t.body,o=$r(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=$r(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+Tr(e),l=-i.scrollTop;return"rtl"===qr(r||n).direction&&(a+=$r(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(Pr(e)))}function xo(e,t,n){var i="clippingParents"===t?function(e){var t=Ar(Nr(e)),n=["absolute","fixed"].indexOf(qr(e).position)>=0&&vr(e)?Wr(e):e;return br(n)?t.filter((function(e){return br(e)&&wo(e,n)&&"body"!==kr(e)})):[]}(e):[].concat(t),r=[].concat(i,[n]),o=r[0],s=r.reduce((function(t,n){var i=_o(e,n);return t.top=$r(i.top,t.top),t.right=_r(i.right,t.right),t.bottom=_r(i.bottom,t.bottom),t.left=$r(i.left,t.left),t}),_o(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function So(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Qo(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ko(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,o=n.boundary,s=void 0===o?"clippingParents":o,a=n.rootBoundary,l=void 0===a?Yr:a,c=n.elementContext,u=void 0===c?Fr:c,d=n.altBoundary,f=void 0!==d&&d,p=n.padding,h=void 0===p?0:p,O=So("number"!=typeof h?h:Qo(h,Lr)),m=u===Fr?"reference":Fr,g=e.rects.popper,y=e.elements[f?m:u],b=xo(br(y)?y:y.contextElement||Pr(e.elements.popper),s,l),v=Sr(e.elements.reference),w=co({reference:v,element:g,strategy:"absolute",placement:r}),$=$o(Object.assign({},g,w)),_=u===Fr?$:v,x={top:b.top-_.top+O.top,bottom:_.bottom-b.bottom+O.bottom,left:b.left-_.left+O.left,right:_.right-b.right+O.right},S=e.modifiersData.offset;if(u===Fr&&S){var Q=S[r];Object.keys(x).forEach((function(e){var t=[Xr,Mr].indexOf(e)>=0?1:-1,n=[Vr,Mr].indexOf(e)>=0?"y":"x";x[e]+=Q[n]*t}))}return x}const Po={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,O=n.allowedAutoPlacements,m=t.options.placement,g=so(m),y=l||(g===m||!h?[yo(m)]:function(e){if(so(e)===Ir)return[];var t=yo(e);return[vo(e),t,vo(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(so(n)===Ir?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Hr:l,u=ao(i),d=u?a?Br:Br.filter((function(e){return ao(e)===u})):Lr,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=ko(e,{placement:n,boundary:r,rootBoundary:o,padding:s})[so(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:O}):n)}),[]),v=t.rects.reference,w=t.rects.popper,$=new Map,_=!0,x=b[0],S=0;S<b.length;S++){var Q=b[S],k=so(Q),P=ao(Q)===Zr,T=[Vr,Mr].indexOf(k)>=0,q=T?"width":"height",R=ko(t,{placement:Q,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),E=T?P?Xr:Ur:P?Mr:Vr;v[q]>w[q]&&(E=yo(E));var j=yo(E),N=[];if(o&&N.push(R[k]<=0),a&&N.push(R[E]<=0,R[j]<=0),N.every((function(e){return e}))){x=Q,_=!1;break}$.set(Q,N)}if(_)for(var C=function(e){var t=b.find((function(t){var n=$.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},A=h?3:1;A>0;A--){if("break"===C(A))break}t.placement!==x&&(t.modifiersData[i]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function To(e,t,n){return $r(e,_r(t,n))}const qo={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,o=void 0===r||r,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,O=void 0===h?0:h,m=ko(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),g=so(t.placement),y=ao(t.placement),b=!y,v=lo(g),w="x"===v?"y":"x",$=t.modifiersData.popperOffsets,_=t.rects.reference,x=t.rects.popper,S="function"==typeof O?O(Object.assign({},t.rects,{placement:t.placement})):O,Q="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if($){if(o){var T,q="y"===v?Vr:Ur,R="y"===v?Mr:Xr,E="y"===v?"height":"width",j=$[v],N=j+m[q],C=j-m[R],A=p?-x[E]/2:0,z=y===Zr?_[E]:x[E],D=y===Zr?-x[E]:-_[E],W=t.elements.arrow,V=p&&W?jr(W):{width:0,height:0},M=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},X=M[q],U=M[R],I=To(0,_[E],V[E]),L=b?_[E]/2-A-I-X-Q.mainAxis:z-I-X-Q.mainAxis,Z=b?-_[E]/2+A+I+U+Q.mainAxis:D+I+U+Q.mainAxis,G=t.elements.arrow&&Wr(t.elements.arrow),Y=G?"y"===v?G.clientTop||0:G.clientLeft||0:0,F=null!=(T=null==k?void 0:k[v])?T:0,B=j+Z-F,H=To(p?_r(N,j+L-F-Y):N,j,p?$r(C,B):C);$[v]=H,P[v]=H-j}if(a){var K,J="x"===v?Vr:Ur,ee="x"===v?Mr:Xr,te=$[w],ne="y"===w?"height":"width",ie=te+m[J],re=te-m[ee],oe=-1!==[Vr,Ur].indexOf(g),se=null!=(K=null==k?void 0:k[w])?K:0,ae=oe?ie:te-_[ne]-x[ne]-se+Q.altAxis,le=oe?te+_[ne]+x[ne]-se-Q.altAxis:re,ce=p&&oe?function(e,t,n){var i=To(e,t,n);return i>n?n:i}(ae,te,le):To(p?ae:ie,te,p?le:re);$[w]=ce,P[w]=ce-te}t.modifiersData[i]=P}},requiresIfExists:["offset"]};const Ro={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=so(n.placement),l=lo(a),c=[Ur,Xr].indexOf(a)>=0?"height":"width";if(o&&s){var u=function(e,t){return So("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Qo(e,Lr))}(r.padding,n),d=jr(o),f="y"===l?Vr:Ur,p="y"===l?Mr:Xr,h=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],O=s[l]-n.rects.reference[l],m=Wr(o),g=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,y=h/2-O/2,b=u[f],v=g-d[c]-u[p],w=g/2-d[c]/2+y,$=To(b,w,v),_=l;n.modifiersData[i]=((t={})[_]=$,t.centerOffset=$-w,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&wo(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Eo(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function jo(e){return[Vr,Xr,Mr,Ur].some((function(t){return e[t]>=0}))}const No={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=ko(t,{elementContext:"reference"}),a=ko(t,{altBoundary:!0}),l=Eo(s,i),c=Eo(a,r,o),u=jo(l),d=jo(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var Co=io({defaultModifiers:[oo,uo,ho,Oo,mo,Po,qo,Ro,No]}),Ao="tippy-content",zo="tippy-backdrop",Do="tippy-arrow",Wo="tippy-svg-arrow",Vo={passive:!0,capture:!0},Mo=function(){return document.body};function Xo(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function Uo(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Io(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Lo(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function Zo(e){return[].concat(e)}function Go(e,t){-1===e.indexOf(t)&&e.push(t)}function Yo(e){return e.split("-")[0]}function Fo(e){return[].slice.call(e)}function Bo(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Ho(){return document.createElement("div")}function Ko(e){return["Element","Fragment"].some((function(t){return Uo(e,t)}))}function Jo(e){return Uo(e,"MouseEvent")}function es(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function ts(e){return Ko(e)?[e]:function(e){return Uo(e,"NodeList")}(e)?Fo(e):Array.isArray(e)?e:Fo(document.querySelectorAll(e))}function ns(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function is(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function rs(e){var t,n=Zo(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function os(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function ss(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var as={isTouch:!1},ls=0;function cs(){as.isTouch||(as.isTouch=!0,window.performance&&document.addEventListener("mousemove",us))}function us(){var e=performance.now();e-ls<20&&(as.isTouch=!1,document.removeEventListener("mousemove",us)),ls=e}function ds(){var e=document.activeElement;if(es(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var fs=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var ps={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},hs=Object.assign({appendTo:Mo,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ps,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Os=Object.keys(hs);function ms(e){var t=(e.plugins||[]).reduce((function(t,n){var i,r=n.name,o=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=hs[r])?i:o);return t}),{});return Object.assign({},e,t)}function gs(e,t){var n=Object.assign({},t,{content:Io(t.content,[e])},t.ignoreAttributes?{}:function(e,t){var n=(t?Object.keys(ms(Object.assign({},hs,{plugins:t}))):Os).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{});return n}(e,t.plugins));return n.aria=Object.assign({},hs.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function ys(e,t){e.innerHTML=t}function bs(e){var t=Ho();return!0===e?t.className=Do:(t.className=Wo,Ko(e)?t.appendChild(e):ys(t,e)),t}function vs(e,t){Ko(t.content)?(ys(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?ys(e,t.content):e.textContent=t.content)}function ws(e){var t=e.firstElementChild,n=Fo(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Ao)})),arrow:n.find((function(e){return e.classList.contains(Do)||e.classList.contains(Wo)})),backdrop:n.find((function(e){return e.classList.contains(zo)}))}}function $s(e){var t=Ho(),n=Ho();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Ho();function r(n,i){var r=ws(t),o=r.box,s=r.content,a=r.arrow;i.theme?o.setAttribute("data-theme",i.theme):o.removeAttribute("data-theme"),"string"==typeof i.animation?o.setAttribute("data-animation",i.animation):o.removeAttribute("data-animation"),i.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?o.setAttribute("role",i.role):o.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||vs(s,e.props),i.arrow?a?n.arrow!==i.arrow&&(o.removeChild(a),o.appendChild(bs(i.arrow))):o.appendChild(bs(i.arrow)):a&&o.removeChild(a)}return i.className=Ao,i.setAttribute("data-state","hidden"),vs(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}$s.$$tippy=!0;var _s=1,xs=[],Ss=[];function Qs(e,t){var n,i,r,o,s,a,l,c,u=gs(e,Object.assign({},hs,ms(Bo(t)))),d=!1,f=!1,p=!1,h=!1,O=[],m=Lo(G,u.interactiveDebounce),g=_s++,y=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),b={id:g,reference:e,popper:Ho(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){0;if(b.state.isDestroyed)return;j("onBeforeUpdate",[b,t]),L();var n=b.props,i=gs(e,Object.assign({},n,Bo(t),{ignoreAttributes:!0}));b.props=i,I(),n.interactiveDebounce!==i.interactiveDebounce&&(A(),m=Lo(G,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?Zo(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");C(),E(),$&&$(n,i);b.popperInstance&&(H(),J().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));j("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=as.isTouch&&!b.props.touch,r=Xo(b.props.duration,0,hs.duration);if(e||t||n||i)return;if(P().hasAttribute("disabled"))return;if(j("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,k()&&(w.style.visibility="visible");E(),V(),b.state.isMounted||(w.style.transition="none");if(k()){var o=q(),s=o.box,l=o.content;ns([s,l],0)}a=function(){var e;if(b.state.isVisible&&!h){if(h=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,k()&&b.props.animation){var t=q(),n=t.box,i=t.content;ns([n,i],r),is([n,i],"visible")}N(),C(),Go(Ss,b),null==(e=b.popperInstance)||e.forceUpdate(),j("onMount",[b]),b.props.animation&&k()&&function(e,t){X(e,t)}(r,(function(){b.state.isShown=!0,j("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=P();e=b.props.interactive&&t===Mo||"parent"===t?n.parentNode:Io(t,[n]);e.contains(w)||e.appendChild(w);b.state.isMounted=!0,H(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=Xo(b.props.duration,1,hs.duration);if(e||t||n)return;if(j("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,d=!1,k()&&(w.style.visibility="hidden");if(A(),M(),E(!0),k()){var r=q(),o=r.box,s=r.content;b.props.animation&&(ns([o,s],i),is([o,s],"hidden"))}N(),C(),b.props.animation?k()&&function(e,t){X(e,(function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(i,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;T().addEventListener("mousemove",m),Go(xs,m),m(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;K(),J().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);Ss=Ss.filter((function(e){return e!==b})),b.state.isMounted=!1,j("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),L(),delete e._tippy,b.state.isDestroyed=!0,j("onDestroy",[b])}};if(!u.render)return b;var v=u.render(b),w=v.popper,$=v.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,e._tippy=b,w._tippy=b;var _=y.map((function(e){return e.fn(b)})),x=e.hasAttribute("aria-expanded");return I(),C(),E(),j("onCreate",[b]),u.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&T().addEventListener("mousemove",m)})),b;function S(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function Q(){return"hold"===S()[0]}function k(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function P(){return l||e}function T(){var e=P().parentNode;return e?rs(e):document}function q(){return ws(w)}function R(e){return b.state.isMounted&&!b.state.isVisible||as.isTouch||o&&"focus"===o.type?0:Xo(b.props.delay,e?0:1,hs.delay)}function E(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function j(e,t,n){var i;(void 0===n&&(n=!0),_.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(i=b.props)[e].apply(i,t)}function N(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,i=w.id;Zo(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function C(){!x&&b.props.aria.expanded&&Zo(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===P()?"true":"false"):e.removeAttribute("aria-expanded")}))}function A(){T().removeEventListener("mousemove",m),xs=xs.filter((function(e){return e!==m}))}function z(t){if(!as.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!ss(w,n)){if(Zo(b.props.triggerTarget||e).some((function(e){return ss(e,n)}))){if(as.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),f=!0,setTimeout((function(){f=!1})),b.state.isMounted||M())}}}function D(){p=!0}function W(){p=!1}function V(){var e=T();e.addEventListener("mousedown",z,!0),e.addEventListener("touchend",z,Vo),e.addEventListener("touchstart",W,Vo),e.addEventListener("touchmove",D,Vo)}function M(){var e=T();e.removeEventListener("mousedown",z,!0),e.removeEventListener("touchend",z,Vo),e.removeEventListener("touchstart",W,Vo),e.removeEventListener("touchmove",D,Vo)}function X(e,t){var n=q().box;function i(e){e.target===n&&(os(n,"remove",i),t())}if(0===e)return t();os(n,"remove",s),os(n,"add",i),s=i}function U(t,n,i){void 0===i&&(i=!1),Zo(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),O.push({node:e,eventType:t,handler:n,options:i})}))}function I(){var e;Q()&&(U("touchstart",Z,{passive:!0}),U("touchend",Y,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(U(e,Z),e){case"mouseenter":U("mouseleave",Y);break;case"focus":U(fs?"focusout":"blur",F);break;case"focusin":U("focusout",F)}}))}function L(){O.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),O=[]}function Z(e){var t,n=!1;if(b.state.isEnabled&&!B(e)&&!f){var i="focus"===(null==(t=o)?void 0:t.type);o=e,l=e.currentTarget,C(),!b.state.isVisible&&Jo(e)&&xs.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!i&&te(e)}}function G(e){var t=e.target,n=P().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var i=J().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,o=e.props.interactiveBorder,s=Yo(r.placement),a=r.modifiersData.offset;if(!a)return!0;var l="bottom"===s?a.top.y:0,c="top"===s?a.bottom.y:0,u="right"===s?a.left.x:0,d="left"===s?a.right.x:0,f=t.top-i+l>o,p=i-t.bottom-c>o,h=t.left-n+u>o,O=n-t.right-d>o;return f||p||h||O}))})(i,e)&&(A(),te(e))}}function Y(e){B(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function F(e){b.props.trigger.indexOf("focusin")<0&&e.target!==P()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function B(e){return!!as.isTouch&&Q()!==e.type.indexOf("touch")>=0}function H(){K();var t=b.props,n=t.popperOptions,i=t.placement,r=t.offset,o=t.getReferenceClientRect,s=t.moveTransition,l=k()?ws(w).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||P()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=q().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},d=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},u];k()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=Co(c,w,Object.assign({},n,{placement:i,onFirstUpdate:a,modifiers:d}))}function K(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function J(){return Fo(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&j("onTrigger",[b,e]),V();var t=R(!0),i=S(),r=i[0],o=i[1];as.isTouch&&"hold"===r&&o&&(t=o),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),j("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=R(!1);t?i=setTimeout((function(){b.state.isVisible&&b.hide()}),t):r=requestAnimationFrame((function(){b.hide()}))}}else M()}}function ks(e,t){void 0===t&&(t={});var n=hs.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",cs,Vo),window.addEventListener("blur",ds);var i=Object.assign({},t,{plugins:n}),r=ts(e).reduce((function(e,t){var n=t&&Qs(t,i);return n&&e.push(n),e}),[]);return Ko(e)?r[0]:r}ks.defaultProps=hs,ks.setDefaultProps=function(e){Object.keys(e).forEach((function(t){hs[t]=e[t]}))},ks.currentInput=as;Object.assign({},Oo,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});ks.setDefaultProps({render:$s});const Ps=ks;function Ts(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}var qs="undefined"!=typeof window&&"undefined"!=typeof document;function Rs(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Es(){return qs&&document.createElement("div")}function js(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!js(e[n],t[n]))return!1}return!0}return!1}function Ns(e){var t=[];return e.forEach((function(e){t.find((function(t){return js(e,t)}))||t.push(e)})),t}function Cs(e,t){var n,i;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:Ns([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(i=t.popperOptions)?void 0:i.modifiers)||[]))})})}var As=qs?a.useLayoutEffect:a.useEffect;function zs(e){var t=(0,a.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Ds(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Ws={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function i(){e.props.className&&!n()||Ds(t,"add",e.props.className)}return{onCreate:i,onBeforeUpdate:function(){n()&&Ds(t,"remove",e.props.className)},onAfterUpdate:i}}};function Vs(e){return function(t){var n=t.children,i=t.content,r=t.visible,o=t.singleton,s=t.render,u=t.reference,d=t.disabled,f=void 0!==d&&d,p=t.ignoreAttributes,h=void 0===p||p,O=(t.__source,t.__self,Ts(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),m=void 0!==r,g=void 0!==o,y=(0,a.useState)(!1),b=y[0],v=y[1],w=(0,a.useState)({}),$=w[0],_=w[1],x=(0,a.useState)(),S=x[0],Q=x[1],k=zs((function(){return{container:Es(),renders:1}})),P=Object.assign({ignoreAttributes:h},O,{content:k.container});m&&(P.trigger="manual",P.hideOnClick=!1),g&&(f=!0);var T=P,q=P.plugins||[];s&&(T=Object.assign({},P,{plugins:g&&null!=o.data?[].concat(q,[{fn:function(){return{onTrigger:function(e,t){var n=o.data.children.find((function(e){return e.instance.reference===t.currentTarget}));e.state.$$activeSingletonInstance=n.instance,Q(n.content)}}}}]):q,render:function(){return{popper:k.container}}}));var R=[u].concat(n?[n.type]:[]);return As((function(){var t=u;u&&u.hasOwnProperty("current")&&(t=u.current);var n=e(t||k.ref||Es(),Object.assign({},T,{plugins:[Ws].concat(P.plugins||[])}));return k.instance=n,f&&n.disable(),r&&n.show(),g&&o.hook({instance:n,content:i,props:T,setSingletonContent:Q}),v(!0),function(){n.destroy(),null==o||o.cleanup(n)}}),R),As((function(){var e;if(1!==k.renders){var t=k.instance;t.setProps(Cs(t.props,T)),null==(e=t.popperInstance)||e.forceUpdate(),f?t.disable():t.enable(),m&&(r?t.show():t.hide()),g&&o.hook({instance:t,content:i,props:T,setSingletonContent:Q})}else k.renders++})),As((function(){var e;if(s){var t=k.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,i=null==(t=n.modifiersData)?void 0:t.hide;$.placement===n.placement&&$.referenceHidden===(null==i?void 0:i.isReferenceHidden)&&$.escaped===(null==i?void 0:i.hasPopperEscaped)||_({placement:n.placement,referenceHidden:null==i?void 0:i.isReferenceHidden,escaped:null==i?void 0:i.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[$.placement,$.referenceHidden,$.escaped].concat(R)),l().createElement(l().Fragment,null,n?(0,a.cloneElement)(n,{ref:function(e){k.ref=e,Rs(n.ref,e)}}):null,b&&(0,c.createPortal)(s?s(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}($),S,k.instance):i,k.container))}}var Ms=function(e,t){return(0,a.forwardRef)((function(n,i){var r=n.children,o=Ts(n,["children"]);return l().createElement(e,Object.assign({},t,o),r?(0,a.cloneElement)(r,{ref:function(e){Rs(i,e),Rs(r.ref,e)}}):null)}))};const Xs=Ms(Vs(Ps)),Us=window.wp.components;var Is=n(110),Ls={};Ls.styleTagTransform=tr(),Ls.setAttributes=Hi(),Ls.insert=Fi().bind(null,"head"),Ls.domAPI=Gi(),Ls.insertStyleElement=Ji();Li()(Is.Z,Ls);Is.Z&&Is.Z.locals&&Is.Z.locals;var Zs=n(6478),Gs={};Gs.styleTagTransform=tr(),Gs.setAttributes=Hi(),Gs.insert=Fi().bind(null,"head"),Gs.domAPI=Gi(),Gs.insertStyleElement=Ji();Li()(Zs.Z,Gs);Zs.Z&&Zs.Z.locals&&Zs.Z.locals;var Ys="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/help-tooltip.js",Fs=void 0,Bs=function(e){var t=e.helpText,n=e.helpLink;return l().createElement(Xs,{className:"pods-help-tooltip",trigger:"click",zIndex:100001,interactive:!0,content:n?l().createElement("a",{href:n,target:"_blank",rel:"noreferrer",__self:Fs,__source:{fileName:Ys,lineNumber:24,columnNumber:5}},l().createElement("span",{dangerouslySetInnerHTML:{__html:cr()(t,fr)},__self:Fs,__source:{fileName:Ys,lineNumber:25,columnNumber:6}}),l().createElement(Us.Dashicon,{icon:"external",__self:Fs,__source:{fileName:Ys,lineNumber:30,columnNumber:6}})):l().createElement("span",{dangerouslySetInnerHTML:{__html:cr()(t,fr)},__self:Fs,__source:{fileName:Ys,lineNumber:33,columnNumber:5}}),__self:Fs,__source:{fileName:Ys,lineNumber:17,columnNumber:3}},l().createElement("span",{tabIndex:"0",role:"button",className:"pods-help-tooltip__icon",__self:Fs,__source:{fileName:Ys,lineNumber:40,columnNumber:4}},l().createElement(Us.Dashicon,{icon:"editor-help",__self:Fs,__source:{fileName:Ys,lineNumber:45,columnNumber:5}})))};Bs.propTypes={helpText:Ti().string.isRequired,helpLink:Ti().string};const Hs=Bs;var Ks=n(7007),Js={};Js.styleTagTransform=tr(),Js.setAttributes=Hi(),Js.insert=Fi().bind(null,"head"),Js.domAPI=Gi(),Js.insertStyleElement=Ji();Li()(Ks.Z,Js);Ks.Z&&Ks.Z.locals&&Ks.Z.locals;var ea="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/field-label.js",ta=void 0,na=function(e){var t=e.label,n=e.required,i=e.htmlFor,r=e.helpTextString,o=e.helpLink;return l().createElement("div",{className:"pods-field-label pods-field-label-".concat(name),__self:ta,__source:{fileName:ea,lineNumber:20,columnNumber:2}},l().createElement("label",{className:"pods-field-label__label",htmlFor:i,__self:ta,__source:{fileName:ea,lineNumber:21,columnNumber:3}},l().createElement("span",{dangerouslySetInnerHTML:{__html:(0,ur.removep)(cr()(t,pr))},__self:ta,__source:{fileName:ea,lineNumber:25,columnNumber:4}}),n&&l().createElement("span",{className:"pods-field-label__required",__self:ta,__source:{fileName:ea,lineNumber:30,columnNumber:20}}," ","*")),r&&l().createElement("span",{className:"pods-field-label__tooltip-wrapper",__self:ta,__source:{fileName:ea,lineNumber:34,columnNumber:4}}," ",l().createElement(Hs,{helpText:r,helpLink:o,__self:ta,__source:{fileName:ea,lineNumber:36,columnNumber:5}})))};na.defaultProps={required:!1,helpTextString:null,helpLink:null},na.propTypes={label:Ti().string.isRequired,htmlFor:Ti().string.isRequired,helpTextString:Ti().string,helpLink:Ti().string};const ia=na;var ra="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/validation-messages.js",oa=void 0,sa=function(e){var t=e.messages;return t.length?l().createElement("div",{className:"pods-validation-messages",__self:oa,__source:{fileName:ra,lineNumber:12,columnNumber:3}},t.map((function(e){return l().createElement(Us.Notice,{key:"message",status:"error",isDismissible:!1,politeness:"polite",__self:oa,__source:{fileName:ra,lineNumber:14,columnNumber:5}},e)}))):null};sa.propTypes={messages:Ti().arrayOf(Ti().string).isRequired};const aa=sa;var la=n(6292),ca=n.n(la),ua=function(e){return function(t,n){var i=e.toString().split(t);return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,n),i.join(t)}},da=function(e){return e.toString().includes("e")},fa=function(e,t){if(!t)return"0";var n=gi(e.toString().replace(".","").split("e-"),2),i=n[0],r=function(e,t){return Number(e)+2-t}(n[1],i.length),o="".concat("0.".padEnd(r+2,"0")).concat(i);return t?o.substring(0,2)+o.substring(2,t+2):o},pa=function(e,t,n,i){return function(e){return e.toString().includes("-")}(e)?fa(e,t):ua(BigInt(e))(n,i)};function ha(e,t,n,i){if(!isFinite(e))throw new TypeError("number is not finite number");var r="auto"===t?(""+parseFloat(e)).replace(".",n):parseFloat(e).toFixed(t).replace(".",n);return ua(r)(n,i)}const Oa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";if(null===e||"number"!=typeof e)throw new TypeError("number is not valid");return da(e)?pa(e,t,n,i):ha(e,t,n,i)};var ma=function(e){var t,n,i,r=((null===(t=window)||void 0===t||null===(n=t.podsDFVConfig)||void 0===n||null===(i=n.wp_locale)||void 0===i?void 0:i.number_format)||{}).thousands_sep;switch(e){case"9,999.99":r=",";break;case"9999.99":case"9999,99":r="";break;case"9.999,99":r=".";break;case"9'999.99":r="'";break;case"9 999,99":r=" "}return r},ga=function(e){var t,n,i,r=((null===(t=window)||void 0===t||null===(n=t.podsDFVConfig)||void 0===n||null===(i=n.wp_locale)||void 0===i?void 0:i.number_format)||{}).decimal_point;switch(e){case"9,999.99":case"9999.99":case"9'999.99":r=".";break;case"9.999,99":case"9999,99":case"9 999,99":r=","}return r},ya=function(e,t){if(""===e)return 0;if("number"==typeof e)return e;var n=ma(t),i=ga(t);return parseFloat(e.split(n).join("").split(i).join("."))},ba=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(""===e||null==e)return"0";var i=ma(t),r=ga(t),o="string"==typeof e?ya(e,t):e,s=isNaN(o)?void 0:Oa(o,"auto",r,i);if(!n||void 0===s)return s;var a=parseInt(s.split(r).pop(),10);if(0!==a)return s;var l=-1*(parseInt((""+a).length,10)+1);return s.slice(0,l)},va=function(e){return null!=e&&""!==e&&(!Array.isArray(e)||e.length>0)},wa=function(e,t){return function(n){if((t&&Array.isArray(n)?n:[n]).some(va))return!0;throw(0,Ri.sprintf)((0,Ri.__)("%s is required.","pods"),e)}},$a=function(e,t,n){return function(i){var r=ba(i,n,!1);if(!r)return!0;var o=ma(n),s=ga(n),a=r.split(s),l=a[0].replace(new RegExp(o,"g"),""),c=parseInt(e,10)||-1;if(-1!==c&&l.length>c)throw(0,Ri.__)("Exceeded maximum digit length.","pods");var u=a[1]||"",d=parseInt(t,10)||-1;if(-1!==d&&u.length>d)throw(0,Ri.__)("Exceeded maximum decimal length.","pods");return!0}},_a=function(e,t){return function(n){if(void 0===e||!e.length)return!0;var i=ca()("".concat(e[0],"-01-01")),r=ca()("".concat(e[e.length-1],"-12-31")),o=ca()(n,t);if(!1===o.isValid())throw(0,Ri.__)("Invalid date.","pods");if(!o.isSameOrAfter(i))throw(0,Ri.__)("Date occurs before the valid range.","pods");if(!o.isSameOrBefore(r))throw(0,Ri.__)("Date occurs after the valid range.","pods");return!0}},xa=function(e){return!!+e};const Sa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";if(null==e)return"";var n=cr()(e.replace(/\&/g,""),{allowedTags:[],parser:{decodeEntities:!1}});return(0,d.deburr)(n).replace(/[\s\./\\+=]+/g,t).replace(/[^\w\-_]+/g,"").toLowerCase()};const Qa=function(e){var t=e.type;if(void 0===t)throw new Error("Invalid field config.");return!!["text","website","phone","email","password","paragraph","wysiwyg","datetime","date","time","number","currency","oembed","color"].includes(t)&&xa((null==e?void 0:e.repeatable)||!1)};var ka=["1","0",1,0,!0,!1],Pa=function(e){return"object"===yi(e)?e:{}},Ta=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"depends-on";if(!["wildcard-on","depends-on","depends-on-any","excludes-on"].includes(n))throw"Invalid dependency validation mode.";t=Pa(t||{});var i=Object.keys(t||{});return!i.length||("excludes-on"===n?!i.some((function(i){return qa(e,n,i,t[i])})):"depends-on-any"===n?i.some((function(i){return qa(e,n,i,t[i])})):i.every((function(i){return qa(e,n,i,t[i])})))},qa=function(e,t,n,i){var r=e[n];if(void 0===r)return!1;if("wildcard-on"===t){var o=Array.isArray(i)?i:[i];return 0===o.length||o.some((function(e){return!!r.match(e)}))}if(Array.isArray(i)||Array.isArray(r)){var s=Array.isArray(i)?i:[i],a=Array.isArray(r)?r:[r];return s.filter((function(e){return a.includes(e)})).length>0}return i===r||!(!ka.includes(i)||!ka.includes(r)||xa(i)!==xa(r))};function Ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ra(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ja=function e(t,n,i){var r=t["depends-on"],o=void 0===r?{}:r,s=t["depends-on-any"],a=void 0===s?{}:s,l=t["excludes-on"],c=void 0===l?{}:l,u=t["wildcard-on"],d=void 0===u?{}:u;if(o=Pa(o),a=Pa(a),c=Pa(c),d=Pa(d),Object.keys(o).length&&!Ta(n,o,"depends-on"))return!1;if(Object.keys(a).length&&!Ta(n,a,"depends-on-any"))return!1;if(Object.keys(c).length&&!Ta(n,c,"excludes-on"))return!1;if(Object.keys(d).length&&!Ta(n,d,"wildcard-on"))return!1;var f=Object.keys(a),p=Object.keys(Ea(Ea(Ea({},o),c),d));if(!f.length&&!p.length)return!0;var h=function(t){var r=i.get(t);return!r||e(r,n,i)};return!(f.length&&!f.some(h))&&!(p.length&&!p.every(h))};const Na=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Map;return ja(e,t,n)};const Ca=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=(0,a.useState)(e),i=gi(n,2),r=i[0],o=i[1],l=(0,a.useState)([]),c=gi(l,2),u=c[0],d=c[1];(0,a.useEffect)((function(){var e=[];r.forEach((function(n){if(n.condition())try{n.rule(t)}catch(t){"string"==typeof t&&e.push(t)}})),d(e)}),[t]);var f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){o((function(t){return[].concat(s(t),[e])}))}))};return[u,f]};const Aa=function(e,t,n){(0,a.useEffect)((function(){if(null!=t&&t.current){var e=t.current.closest(".pods-field__container");e&&(e.style.display=n?"":"none")}}),[e,t,n])};function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},za.apply(this,arguments)}var Da=Backbone.Model.extend({defaults:{htmlAttr:{},fieldConfig:{}}}),Wa=(Ti().oneOf(["0","1",0,1]),Ti().oneOf(["0","1",0,1,!0,!1])),Va=Ti().oneOf(["0","1",0,1,!0,!1,"",null,void 0]),Ma=Ti().oneOfType([Ti().object,Ti().array]),Xa=Ti().oneOfType([Ti().string,Ti().number]),Ua=Ti().arrayOf(Ti().shape({id:Ti().oneOfType([Ti().string.isRequired,Ti().arrayOf(Ti().shape({name:Ti().string.isRequired,id:Ti().string.isRequired})).isRequired]),icon:Ti().string.isRequired,name:Ti().string.isRequired,edit_link:Ti().string.isRequired,link:Ti().string.isRequired,selected:Ti().bool.isRequired})),Ia=Ti().shape({id:Ti().string,class:Ti().string,name:Ti().string,name_clean:Ti().string}),La=Ti().shape({ajax:Wa,delay:Xa,minimum_input_length:Xa,pod:Xa,field:Xa,id:Xa,uri:Ti().string,_wpnonce:Ti().string}),Za={admin_only:Wa,attributes:Ma,class:Ti().string,data:Ti().any,default:Ti().oneOfType([Ti().string,Ti().bool,Ti().number]),default_value:Ti().oneOfType([Ti().string,Ti().bool,Ti().number]),default_value_param:Ti().string,"depends-on":Ma,"depends-on-any":Ma,dependency:Ti().bool,description:Ti().string,description_param:Ti().string,description_param_default:Ti().string,developer_mode:Ti().bool,disable_dfv:Wa,display_filter:Ti().string,display_filter_args:Ti().arrayOf(Ti().string),editor_options:Ti().oneOfType([Ti().string,Ti().object]),"excludes-on":Ma,field_type:Ti().string,group:Xa,fields:Ti().arrayOf(Xa),groups:Ti().arrayOf(Xa),group_id:Xa,grouped:Ti().number,help:Ti().oneOfType([Ti().string,Ti().arrayOf(Ti().string)]),help_param:Ti().string,help_param_default:Ti().string,hidden:Wa,htmlAttr:Ia,fieldEmbed:Ti().bool,id:Xa.isRequired,iframe_src:Ti().string,iframe_title_add:Ti().string,iframe_title_edit:Ti().string,label:Ti().string.isRequired,label_param:Ti().string,label_param_default:Ti().string,name:Ti().string.isRequired,object_type:Ti().string,old_name:Ti().string,options:Ti().oneOfType([Ua,Ti().object]),parent:Xa,placeholder:Ti().string,placeholder_param:Ti().string,placeholder_param_default:Ti().string,post_status:Ti().string,read_only:Wa,rest_pick_response:Ti().string,rest_pick_depth:Xa,rest_read:Wa,rest_write:Wa,restrict_capability:Wa,restrict_role:Wa,required:Wa,roles_allowed:Ti().oneOfType([Ti().string,Ti().arrayOf(Ti().string)]),sister_id:Xa,slug_placeholder:Ti().string,slug_separator:Ti().string,slug_fallback:Ti().string,object_storage_type:Ti().string,type:Ti().string.isRequired,unique:Ti().string,repeatable_add_new_label:Ti().string,repeatable_reorder:Wa,repeatable_limit:Xa,weight:Ti().number,"wildcard-on":Ma,_locale:Ti().string,avatar_add_button:Ti().string,avatar_allowed_extensions:Ti().string,avatar_attachment_tab:Ti().string,avatar_edit_title:Ti().string,avatar_field_template:Ti().string,avatar_format_type:Ti().string,avatar_limit:Xa,avatar_linked:Wa,avatar_modal_add_button:Ti().string,avatar_modal_title:Ti().string,avatar_restrict_filesize:Ti().string,avatar_show_edit_link:Wa,avatar_type:Ti().string,avatar_uploader:Ti().string,avatar_upload_dir:Ti().string,avatar_upload_dir_custom:Ti().string,avatar_wp_gallery_columns:Ti().string,avatar_wp_gallery_link:Ti().string,avatar_wp_gallery_output:Wa,avatar_wp_gallery_random_sort:Wa,avatar_wp_gallery_size:Ti().string,boolean_format_type:Ti().string,boolean_no_label:Ti().string,boolean_yes_label:Ti().string,boolean_group:Ti().arrayOf(Ti().shape({default:Wa,dependency:Ti().bool,help:Ti().oneOfType([Ti().string,Ti().arrayOf(Ti().string)]),label:Ti().string,name:Ti().string,type:Ti().string})),code_allow_shortcode:Ti().string,code_max_length:Xa,color_select_label:Ti().string,color_clear_label:Ti().string,currency_decimal_handling:Ti().string,currency_decimals:Xa,currency_format:Ti().string,currency_format_placement:Ti().string,currency_format_sign:Ti().string,currency_format_type:Ti().string,currency_html5:Wa,currency_max:Xa,currency_max_length:Xa,currency_min:Xa,currency_placeholder:Ti().string,currency_step:Xa,date_allow_empty:Wa,date_format:Ti().string,date_format_custom:Ti().string,date_format_custom_js:Ti().string,date_format_moment_js:Ti().string,date_html5:Wa,date_type:Ti().string,date_year_range_custom:Ti().string,datetime_allow_empty:Wa,datetime_date_format_moment_js:Ti().string,datetime_format:Ti().string,datetime_format_custom:Ti().string,datetime_format_custom_js:Ti().string,datetime_html5:Wa,datetime_time_format:Ti().string,datetime_time_format_24:Ti().string,datetime_time_format_custom:Ti().string,datetime_time_format_custom_js:Ti().string,datetime_time_format_moment_js:Ti().string,datetime_time_type:Ti().string,datetime_type:Ti().string,datetime_year_range_custom:Ti().string,email_html5:Wa,email_max_length:Xa,email_placeholder:Ti().string,file_add_button:Ti().string,file_allowed_extensions:Ti().string,file_attachment_tab:Ti().string,file_edit_title:Ti().string,file_field_template:Ti().string,file_format_type:Ti().string,file_limit:Xa,file_linked:Wa,file_modal_add_button:Ti().string,file_modal_title:Ti().string,file_restrict_filesize:Ti().string,file_show_edit_link:Wa,file_type:Ti().string,file_uploader:Ti().string,file_upload_dir:Ti().string,file_upload_dir_custom:Ti().string,file_wp_gallery_columns:Ti().any,file_wp_gallery_link:Ti().any,file_wp_gallery_output:Wa,file_wp_gallery_random_sort:Wa,file_wp_gallery_size:Ti().any,plupload_init:Ti().object,limit_extensions:Ti().string,limit_types:Ti().string,heading_tag:Ti().string,html_content:Ti().string,html_content_param:Ti().string,html_content_param_default:Ti().string,html_wpautop:Wa,html_no_label:Wa,number_decimals:Xa,number_format:Ti().oneOf(["i18n","9.999,99","9,999.99","9'999.99","9 999,99","9999.99","9999,99"]),number_format_soft:Wa,number_format_type:Ti().string,number_html5:Wa,number_max:Xa,number_max_length:Xa,number_min:Xa,number_placeholder:Ti().string,number_step:Xa,oembed_enable_providers:Ti().object,oembed_enabled_providers_amazoncn:Wa,oembed_enabled_providers_amazoncom:Wa,oembed_enabled_providers_amazoncomau:Wa,oembed_enabled_providers_amazoncouk:Wa,oembed_enabled_providers_amazonin:Wa,oembed_enabled_providers_animotocom:Wa,oembed_enabled_providers_cloudupcom:Wa,oembed_enabled_providers_crowdsignalcom:Wa,oembed_enabled_providers_dailymotioncom:Wa,oembed_enabled_providers_facebookcom:Wa,oembed_enabled_providers_flickrcom:Wa,oembed_enabled_providers_imgurcom:Wa,oembed_enabled_providers_instagramcom:Wa,oembed_enabled_providers_issuucom:Wa,oembed_enabled_providers_kickstartercom:Wa,oembed_enabled_providers_meetupcom:Wa,oembed_enabled_providers_mixcloudcom:Wa,oembed_enabled_providers_redditcom:Wa,oembed_enabled_providers_reverbnationcom:Wa,oembed_enabled_providers_screencastcom:Wa,oembed_enabled_providers_scribdcom:Wa,oembed_enabled_providers_slidesharenet:Wa,oembed_enabled_providers_smugmugcom:Wa,oembed_enabled_providers_someecardscom:Wa,oembed_enabled_providers_soundcloudcom:Wa,oembed_enabled_providers_speakerdeckcom:Wa,oembed_enabled_providers_spotifycom:Wa,oembed_enabled_providers_tedcom:Wa,oembed_enabled_providers_tiktokcom:Wa,oembed_enabled_providers_tumblrcom:Wa,oembed_enabled_providers_twittercom:Wa,oembed_enabled_providers_vimeocom:Wa,oembed_enabled_providers_wordpresscom:Wa,oembed_enabled_providers_wordpresstv:Wa,oembed_enabled_providers_youtubecom:Wa,oembed_height:Xa,oembed_restrict_providers:Wa,oembed_show_preview:Wa,oembed_width:Xa,paragraph_allow_html:Wa,paragraph_allow_shortcode:Wa,paragraph_allowed_html_tags:Ti().string,paragraph_convert_chars:Wa,paragraph_max_length:Xa,paragraph_oembed:Wa,paragraph_placeholder:Ti().string,paragraph_wpautop:Wa,paragraph_wptexturize:Wa,password_max_length:Xa,password_placeholder:Ti().string,phone_enable_phone_extension:Ti().string,phone_format:Ti().string,phone_html5:Wa,phone_max_length:Xa,phone_options:Ti().object,phone_placeholder:Ti().string,default_icon:Ti().string,fieldItemData:Ti().oneOfType([Ti().arrayOf(Ti().oneOfType([Ti().string,Ti().shape({id:Ti().string,icon:Ti().string,name:Ti().string,edit_link:Ti().string,link:Ti().string,selected:Wa})])),Ti().object]),pick_ajax:Wa,pick_allow_add_new:Wa,pick_add_new_label:Ti().string,pick_custom:Ti().string,pick_display:Ti().string,pick_display_format_multi:Ti().string,pick_display_format_separator:Ti().string,pick_format_multi:Ti().oneOf(["autocomplete","checkbox","list","multiselect"]),pick_format_single:Ti().oneOf(["autocomplete","checkbox","dropdown","list","radio"]),pick_format_type:Ti().oneOf(["single","multi"]),pick_groupby:Ti().string,pick_limit:Xa,pick_object:Ti().string,pick_orderby:Ti().string,pick_placeholder:Ti().string,pick_post_status:Ti().oneOfType([Ti().string,Ti().arrayOf(Ti().string)]),pick_select_text:Ti().string,pick_show_edit_link:Wa,pick_show_icon:Wa,pick_show_select_text:Wa,pick_show_view_link:Wa,pick_table:Ti().string,pick_table_id:Ti().string,pick_table_index:Ti().string,pick_taggable:Wa,pick_user_role:Ti().oneOfType([Ti().string,Ti().arrayOf(Ti().string)]),pick_val:Ti().string,pick_where:Ti().string,table_info:Ti().oneOfType([Ti().string,Ti().arrayOf(Ti().string)]),view_name:Ti().string,ajax_data:La,select2_overrides:Ti().any,supports_thumbnails:Wa,optgroup:Ti().any,text_allow_html:Wa,text_allow_shortcode:Wa,text_allowed_html_tags:Ti().string,text_max_length:Xa,text_placeholder:Ti().string,time_allow_empty:Wa,time_format:Ti().string,time_format_24:Ti().string,time_format_custom:Ti().string,time_format_custom_js:Ti().string,time_format_moment_js:Ti().string,time_html5:Wa,time_type:Ti().string,website_allow_port:Wa,website_clickable:Wa,website_format:Ti().string,website_new_window:Wa,website_max_length:Xa,website_html5:Wa,website_placeholder:Ti().string,wysiwyg_allow_shortcode:Wa,wysiwyg_allowed_html_tags:Ti().string,wysiwyg_convert_chars:Wa,wysiwyg_editor:Ti().string,wysiwyg_editor_height:Xa,wysiwyg_media_buttons:Wa,wysiwyg_default_editor:Ti().string,wysiwyg_oembed:Wa,wysiwyg_wpautop:Wa,wysiwyg_wptexturize:Wa},Ga=Ti().shape(Za),Ya=Ti().shape({description:Ti().string,fields:Ti().arrayOf(Ga),id:Xa.isRequired,label:Ti().string.isRequired,name:Ti().string.isRequired,object_type:Ti().string,parent:Xa.isRequired,object_storage_type:Ti().string,weight:Ti().number,_locale:Ti().string}),Fa={addValidationRules:Ti().func.isRequired,fieldConfig:Ga.isRequired,setValue:Ti().func.isRequired,setHasBlurred:Ti().func.isRequired,value:Ti().oneOfType([Ti().string,Ti().bool,Ti().number,Ti().array])},Ba="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/marionette-adapter.js";function Ha(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Di(e);if(t){var r=Di(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return zi(this,n)}}var Ka=function(e){Ai(n,e);var t=Ha(n);function n(e){var i;return Ei(this,n),(i=t.call(this,e)).state={isMarionetteGlobalLoaded:!1},i}return Ni(n,[{key:"componentDidMount",value:function(){var e=this.props.fieldConfig,t=void 0===e?{}:e,n=(null==t?void 0:t.htmlAttr)||{};this.fieldModel=new Da({htmlAttr:n,fieldConfig:t}),window.PodsMn||(window.PodsMn=window.Backbone.Marionette.noConflict()),this.setState({isMarionetteGlobalLoaded:!0}),this.renderMarionetteComponent()}},{key:"componentDidUpdate",value:function(e,t){this.state.isMarionetteGlobalLoaded&&((0,d.isEqual)(e.fieldConfig,this.props.fieldConfig)&&(0,d.isEqual)(e.value,this.props.value)&&(0,d.isEqual)(t,this.state)||(this.marionetteComponent&&this.marionetteComponent.destroy(),this.renderMarionetteComponent()))}},{key:"componentWillUnmount",value:function(){this.marionetteComponent.destroy()}},{key:"renderMarionetteComponent",value:function(){var e=this,t=this.props,n=t.View,i=t.value;this.marionetteComponent=new n({model:this.fieldModel,fieldItemData:i}),this.element.appendChild(this.marionetteComponent.el),this.marionetteComponent.render(),this.marionetteComponent.collection.on("all",(function(t,n){["update","remove","reset"].includes(t)&&(window.console&&console.debug("collection changed",t,n,n.models),e.props.setValue(n.models||[]))})),window.marionetteViews=window.marionetteViews||{},window.marionetteViews[this.props.fieldConfig.name]=this.marionetteComponent}},{key:"render",value:function(){var e=this,t=this.props.className;return l().createElement("div",{className:"pods-marionette-adapter-wrapper",__self:this,__source:{fileName:Ba,lineNumber:104,columnNumber:4}},l().createElement("div",{className:t,ref:function(t){return e.element=t},__self:this,__source:{fileName:Ba,lineNumber:105,columnNumber:5}}))}}]),n}(l().Component);Ka.propTypes={className:Ti().string,htmlAttr:Ti().object,fieldConfig:Ga.isRequired,setValue:Ti().func.isRequired,value:Ti().oneOfType([Ti().string,Ti().array,Ti().object]),View:Ti().func.isRequired};const Ja=Ka;var el=PodsMn.CollectionView.extend({childViewEventPrefix:!1,initialize:function(e){this.fieldModel=e.fieldModel,this.childViewOptions={fieldModel:e.fieldModel}}}),tl=PodsMn.View.extend({childViewEventPrefix:!1,serializeData:function(){var e=this.options.fieldModel,t=this.model?this.model.toJSON():{};return t.htmlAttr=e.get("htmlAttr"),t.fieldConfig=e.get("fieldConfig"),t}}),nl=PodsMn.View.extend({childViewEventPrefix:!1,initialize:function(e){this.fieldItemData=e.fieldItemData}}),il=Backbone.Model.extend({defaults:{id:0,icon:"",name:"",edit_link:"",link:"",download:""}}),rl=Backbone.Collection.extend({model:il}),ol=tl.extend({childViewEventPrefix:!1,tagName:"li",template:_.template('<input\n\tname="<%- htmlAttr.name %>[<%- id %>][id]"\n\tdata-name-clean="<%- htmlAttr.name_clean %>-id"\n\tid="<%- htmlAttr.id %>-<%- id %>-id"\n\tclass="<%- htmlAttr.class %>"\n\ttype="hidden"\n\tvalue="<%- id %>" />\n<ul class="pods-dfv-list-meta media-item">\n\t<% if ( 1 != fieldConfig.file_limit ) { %>\n\t\t<li class="pods-dfv-list-col pods-dfv-list-handle"><span><%- PodsI18n.__( \'Reorder\' ) %></span></li>\n\t<% } %>\n\t<li class="pods-dfv-list-col pods-dfv-list-icon"><img class="pinkynail" src="<%- icon %>" alt="<%- PodsI18n.__( \'Icon\' ) %>"></li>\n\t<li class="pods-dfv-list-col pods-dfv-list-name">\n\t\t<% if ( 1 == fieldConfig.file_edit_title ) { %>\n\t\t\t<input\n\t\t\t\tname="<%- htmlAttr.name %>[<%- id %>][title]"\n\t\t\t\tdata-name-clean="<%- htmlAttr.name_clean %>-title"\n\t\t\t\tid="pods-form-ui-<%- htmlAttr.name_clean %>-<%- id %>-title"\n\t\t\t\tclass="pods-form-ui-field-type-text pods-form-ui-field-name-<%- htmlAttr.name_clean %>-title"\n\t\t\t\ttype="text"\n\t\t\t\tvalue="<%- name %>"\n\t\t\t\ttabindex="2"\n\t\t\t\tmaxlength="255" />\n\t\t<% } else { %>\n\t\t\t<%- name %>\n\t\t<% } %>\n\t</li>\n\t<li class="pods-dfv-list-col pods-dfv-list-actions">\n\t\t<ul>\n\t\t\t<li class="pods-dfv-list-col pods-dfv-list-remove">\n\t\t\t\t<a href="#remove" title="<%- PodsI18n.__( \'Deselect\' ) %>"><%- PodsI18n.__( \'Deselect\' ) %></a>\n\t\t\t</li>\n\t\t\t<% if ( 1 == fieldConfig.file_linked && \'\' != download ) { %>\n\t\t\t\t<li class="pods-dfv-list-col pods-dfv-list-download">\n\t\t\t\t\t<a href="<%- download %>" target="_blank" rel="noopener noreferrer" title="<%- PodsI18n.__( \'Download\' ) %>"><%- PodsI18n.__( \'Download\' ) %></a>\n\t\t\t\t</li>\n\t\t\t<% } %>\n\t\t\t<% if ( 1 == fieldConfig.file_show_edit_link && \'\' != edit_link ) { %>\n\t\t\t\t<li class="pods-dfv-list-col pods-dfv-list-edit">\n\t\t\t\t\t<a href="<%- edit_link %>" target="_blank" rel="noopener noreferrer" title="<%- PodsI18n.__( \'Edit\' ) %>"><%- PodsI18n.__( \'Edit\' ) %></a>\n\t\t\t\t</li>\n\t\t\t<% } %>\n\t\t</ul>\n\t</li>\n</ul>\n'),className:"pods-dfv-list-item",ui:{dragHandle:".pods-dfv-list-handle",editLink:".pods-dfv-list-edit-link",viewLink:".pods-dfv-list-link",downloadLink:".pods-dfv-list-download",removeButton:".pods-dfv-list-remove",itemName:".pods-dfv-list-name"},triggers:{"click @ui.removeButton":"remove:file:click"}}),sl=el.extend({childViewEventPrefix:!1,tagName:"ul",className:"pods-dfv-list",childView:ol,childViewTriggers:{"remove:file:click":"childview:remove:file:click"},onAttach:function(){var e=this.options.fieldModel.get("fieldConfig"),t="y";1!==parseInt(e.file_limit,10)&&("tiles"===e.file_field_template&&(t=""),this.$el.sortable({containment:"parent",axis:t,scrollSensitivity:40,tolerance:"pointer",opacity:.6}))}}),al=tl.extend({childViewEventPrefix:!1,tagName:"div",template:_.template('<a class="button pods-dfv-list-add" href="#" tabindex="2"><%= fieldConfig.file_add_button %></a>'),ui:{addButton:".pods-dfv-list-add"},triggers:{"click @ui.addButton":"childview:add:file:click"}}),ll=PodsMn.Object.extend({constructor:function(e){this.browseButton=e.browseButton,this.uiRegion=e.uiRegion,this.fieldConfig=e.fieldConfig,PodsMn.Object.call(this,e)}}),cl=Backbone.Model.extend({defaults:{id:0,filename:"",progress:0,errorMsg:""}}),ul=PodsMn.View.extend({model:cl,tagName:"li",template:_.template('<ul class="pods-dfv-list-meta media-item">\n\t<% if ( \'\' === errorMsg ) { %>\n\t\t<li class="pods-dfv-list-col pods-progress"><div class="progress-bar" style="width: <%- progress %>%;"></div></li>\n\t<% } %>\n\t<li class="pods-dfv-list-col pods-dfv-list-name"><%- filename %></li>\n</ul>\n<% if ( \'\' !== errorMsg ) { %>\n\t<div class="error"><%- errorMsg %></div>\n<% } %>\n'),attributes:function(){return{class:"pods-dfv-list-item",id:this.model.get("id")}},modelEvents:{change:"onModelChanged"},onModelChanged:function(){this.render()}}),dl=PodsMn.CollectionView.extend({tagName:"ul",className:"pods-dfv-list pods-dfv-list-queue",childView:ul}),fl=ll.extend({plupload:{},fileUploader:"plupload",initialize:function(){this.fieldConfig.plupload_init.browse_button=this.browseButton,this.plupload=new plupload.Uploader(this.fieldConfig.plupload_init),this.plupload.init(),this.plupload.bind("FilesAdded",this.onFilesAdded,this),this.plupload.bind("UploadProgress",this.onUploadProgress,this),this.plupload.bind("FileUploaded",this.onFileUploaded,this)},onFilesAdded:function(e,t){var n,i=new Backbone.Collection;jQuery.each(t,(function(e,t){n=new cl({id:t.id,filename:t.name}),i.add(n)}));var r=new dl({collection:i});r.render(),this.uiRegion.reset(),this.uiRegion.show(r),this.queueCollection=i,e.refresh(),e.start()},onUploadProgress:function(e,t){this.queueCollection.get(t.id).set({progress:t.percent})},onFileUploaded:function(e,t,n){var i,r=this.queueCollection.get(t.id),o=n.response,s=[];if("Error: "===n.response.substr(0,7))o=o.substr(7),window.console&&console.debug(o),r.set({progress:0,errorMsg:o});else if("<e>"===n.response.substr(0,3))o=jQuery(o).text(),window.console&&console.debug(o),r.set({progress:0,errorMsg:o});else{if("object"!==yi(i=null!==(i=o.match(/{.*}$/))&&0<i.length?jQuery.parseJSON(i[0]):{})||jQuery.isEmptyObject(i))return window.console&&(console.debug(o),console.debug(i)),void r.set({progress:0,errorMsg:(0,Ri.__)("Error uploading file: ")+t.name});s={id:i.ID,icon:i.thumbnail,name:i.post_title,edit_link:i.edit_link,link:i.link,download:i.download},r.trigger("destroy",r),this.trigger("added:files",s)}}}),pl=[fl,ll.extend({mediaObject:{},fileUploader:"attachment",invoke:function(){var e;void 0===wp.Uploader.defaults.filters.mime_types&&(wp.Uploader.defaults.filters.mime_types=[{title:(0,Ri.__)("Allowed Files","pods"),extensions:"*"}]);var t=wp.Uploader.defaults.filters.mime_types[0].extensions;null!==(e=this.fieldConfig)&&void 0!==e&&e.limit_extensions&&(wp.Uploader.defaults.filters.mime_types[0].extensions=this.fieldConfig.limit_extensions),this.mediaObject=wp.media({title:this.fieldConfig.file_modal_title,multiple:1!==parseInt(this.fieldConfig.file_limit,10),library:{type:this.fieldConfig.limit_types},button:{text:this.fieldConfig.file_modal_add_button}}),this.mediaObject.once("select",this.onMediaSelect,this),this.mediaObject.open(),this.mediaObject.content.mode(this.fieldConfig.file_attachment_tab),wp.Uploader.defaults.filters.mime_types[0].extensions=t},onMediaSelect:function(){var e=this.mediaObject.state().get("selection"),t=[];e&&(e.each((function(e){var n,i=e.attributes.sizes;n=e.attributes.icon,void 0!==i&&(void 0!==i.thumbnail&&void 0!==i.thumbnail.url?n=i.thumbnail.url:void 0!==i.full&&void 0!==i.full.url&&(n=i.full.url)),t.push({id:e.attributes.id,icon:n,name:e.attributes.title,edit_link:e.attributes.editLink,link:e.attributes.link,download:e.attributes.url})})),this.trigger("added:files",t))}})],hl=nl.extend({childViewEventPrefix:!1,template:_.template('<div class="pods-ui-file-list pods-field-template-<%- fieldConfig.file_field_template %>"></div>\n<div class="pods-ui-region"></div>\n<div class="pods-ui-form"></div>\n'),regions:{list:".pods-ui-file-list",uiRegion:".pods-ui-region",form:".pods-ui-form"},childViewEvents:{"childview:remove:file:click":"onChildviewRemoveFileClick","childview:add:file:click":"onChildviewAddFileClick"},uploader:{},onBeforeRender:function(){void 0===this.collection&&(this.collection=new rl(this.fieldItemData))},onRender:function(){var e=new sl({collection:this.collection,fieldModel:this.model}),t=new al({fieldModel:this.model});this.showChildView("list",e),this.showChildView("form",t),this.uploader=this.createUploader(),this.listenTo(this.uploader,"added:files",this.onAddedFiles)},onChildviewRemoveFileClick:function(e){this.collection.remove(e.model)},onChildviewAddFileClick:function(){"function"==typeof this.uploader.invoke&&this.uploader.invoke()},onAddedFiles:function(e){var t,n=this.model.get("fieldConfig"),i=parseInt(n.file_limit,10),r=this.collection.clone();0===i||r.length<i?(r.add(e),t=r.models):t=r.filter((function(e){return r.indexOf(e)>=r.length-i})),this.collection.reset(t)},createUploader:function(){var e,t=this.model.get("fieldConfig"),n=t.file_uploader||"attachment";if(jQuery.each(pl,(function(t,i){if(n===i.prototype.fileUploader)return e=i,!1})),void 0!==e)return this.uploader=new e({browseButton:this.getRegion("form").getEl(".pods-dfv-list-add").get(),uiRegion:this.getRegion("uiRegion"),fieldConfig:t}),this.uploader;throw"Could not locate file uploader '".concat(n,"'")}}),Ol=function(){var e=fi(hi().mark((function e(t){var n,i,r,o;return hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,mi()({path:"/wp/v2/media/".concat(t)});case 3:return o=e.sent,e.abrupt("return",{id:t,icon:null==o||null===(n=o.media_details)||void 0===n||null===(i=n.sizes)||void 0===i||null===(r=i.thumbnail)||void 0===r?void 0:r.source_url,name:o.title.rendered,edit_link:"/wp-admin/post.php?post=".concat(t,"&action=edit"),link:o.link,download:o.source_url});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",{id:t});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}();const ml=function(e,t,n){var i=gi((0,a.useState)([]),2),r=i[0],o=i[1];return(0,a.useEffect)((function(){if(e){var i=function(){var e=fi(hi().mark((function e(n){var i,r,s;return hi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=!0,r=n.map((function(e){var n=t.find((function(t){return Number(t.id)===Number(e)}));return n||(i=!1,null)})),!i){e.next=5;break}return o(r),e.abrupt("return");case 5:return e.next=7,Promise.all(n.map(Ol));case 7:s=e.sent,o(s);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();Array.isArray(e)?i(e):"object"===yi(e)?o(e):"string"==typeof e?i(e.split(",")):"number"==typeof e?i([e]):console.error("Invalid value type for file field: ".concat(n))}else o([])}),[]),[r,o]};function gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function yl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gl(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bl=function(e){var t=e.fieldConfig,n=void 0===t?{}:t,i=e.value,r=e.setValue,o=e.setHasBlurred,s=n.name,a=n.fieldItemData,c=void 0===a?[]:a,u=n.file_format_type,d=n.file_limit,f=n.htmlAttr,p=void 0===f?{}:f,h=gi(ml(i,c,s),2),O=h[0],m=h[1],g="single"===u?"1":d;return l().createElement(Ja,za({},e,{fieldConfig:yl(yl({},n),{},{file_limit:g,htmlAttr:p}),View:hl,value:O,setValue:function(e){Array.isArray(e)?(r(e.map((function(e){return e.id})).join(",")),m(e.map((function(e){return e.attributes})))):(r(e.get("id")),m(e.get("attributes"))),o(!0)},__self:undefined,__source:{fileName:"/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/file/file-full.js",lineNumber:61,columnNumber:3}}))};bl.propTypes=yl(yl({},Fa),{},{value:Ti().oneOfType([Ti().arrayOf(Ti().oneOfType([Ti().string,Ti().number])),Ti().string,Ti().number])});const vl=bl;const wl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function $l(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function _l(e){return"nodeType"in e}function xl(e){var t,n;return e?$l(e)?e:_l(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function Sl(e){const{Document:t}=xl(e);return e instanceof t}function Ql(e){return!$l(e)&&e instanceof xl(e).HTMLElement}function kl(e){return e?$l(e)?e.document:_l(e)?Sl(e)?e:Ql(e)?e.ownerDocument:document:document:document}const Pl=wl?a.useLayoutEffect:a.useEffect;function Tl(e){const t=(0,a.useRef)(e);return Pl((()=>{t.current=e})),(0,a.useCallback)((function(...e){return null==t.current?void 0:t.current(...e)}),[])}function ql(e,t=[e]){const n=(0,a.useRef)(e);return Pl((()=>{n.current!==e&&(n.current=e)}),t),n}function Rl(e,t){const n=(0,a.useRef)();return(0,a.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function El(e){const t=Tl(e),n=(0,a.useRef)(null),i=(0,a.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,i]}function jl(e){const t=(0,a.useRef)();return(0,a.useEffect)((()=>{t.current=e}),[e]),t.current}let Nl={};function Cl(e,t){return(0,a.useMemo)((()=>{if(t)return t;const n=null==Nl[e]?0:Nl[e]+1;return Nl[e]=n,`${e}-${n}`}),[e,t])}function Al(e){return(t,...n)=>n.reduce(((t,n)=>{const i=Object.entries(n);for(const[n,r]of i){const i=t[n];null!=i&&(t[n]=i+e*r)}return t}),{...t})}const zl=Al(1),Dl=Al(-1);function Wl(e){if(!e)return!1;const{KeyboardEvent:t}=xl(e.target);return t&&e instanceof t}function Vl(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=xl(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Ml=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return`translate3d(${t?Math.round(t):0}px, ${n?Math.round(n):0}px, 0)`}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return`scaleX(${t}) scaleY(${n})`}},Transform:{toString(e){if(e)return[Ml.Translate.toString(e),Ml.Scale.toString(e)].join(" ")}},Transition:{toString:({property:e,duration:t,easing:n})=>`${e} ${t}ms ${n}`}}),Xl="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Ul(e){return e.matches(Xl)?e:e.querySelector(Xl)}const Il={display:"none"};function Ll(e){let{id:t,value:n}=e;return l().createElement("div",{id:t,style:Il},n)}const Zl={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function Gl(e){let{id:t,announcement:n}=e;return l().createElement("div",{id:t,style:Zl,role:"status","aria-live":"assertive","aria-atomic":!0},n)}const Yl=(0,a.createContext)(null);const Fl={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},Bl={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Hl(e){let{announcements:t=Bl,container:n,hiddenTextDescribedById:i,screenReaderInstructions:r=Fl}=e;const{announce:o,announcement:s}=function(){const[e,t]=(0,a.useState)("");return{announce:(0,a.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),u=Cl("DndLiveRegion"),[d,f]=(0,a.useState)(!1);if((0,a.useEffect)((()=>{f(!0)}),[]),function(e){const t=(0,a.useContext)(Yl);(0,a.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,a.useMemo)((()=>({onDragStart(e){let{active:n}=e;o(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:i}=e;t.onDragMove&&o(t.onDragMove({active:n,over:i}))},onDragOver(e){let{active:n,over:i}=e;o(t.onDragOver({active:n,over:i}))},onDragEnd(e){let{active:n,over:i}=e;o(t.onDragEnd({active:n,over:i}))},onDragCancel(e){let{active:n,over:i}=e;o(t.onDragCancel({active:n,over:i}))}})),[o,t])),!d)return null;const p=l().createElement(l().Fragment,null,l().createElement(Ll,{id:i,value:r.draggable}),l().createElement(Gl,{id:u,announcement:s}));return n?(0,c.createPortal)(p,n):p}var Kl;function Jl(){}function ec(e,t){return(0,a.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function tc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(Kl||(Kl={}));const nc=Object.freeze({x:0,y:0});function ic(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function rc(e,t){const n=Vl(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function oc(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return n-i}function sc(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return i-n}function ac(e){let{left:t,top:n,height:i,width:r}=e;return[{x:t,y:n},{x:t+r,y:n},{x:t,y:n+i},{x:t+r,y:n+i}]}function lc(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function cc(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const uc=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const r=cc(t,t.left,t.top),o=[];for(const e of i){const{id:t}=e,i=n.get(t);if(i){const n=ic(cc(i),r);o.push({id:t,data:{droppableContainer:e,value:n}})}}return o.sort(oc)},dc=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const r=ac(t),o=[];for(const e of i){const{id:t}=e,i=n.get(t);if(i){const n=ac(i),s=r.reduce(((e,t,i)=>e+ic(n[i],t)),0),a=Number((s/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:a}})}}return o.sort(oc)};function fc(e,t){const n=Math.max(t.top,e.top),i=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=r-i,a=o-n;if(i<r&&n<o){const n=t.width*t.height,i=e.width*e.height,r=s*a;return Number((r/(n+i-r)).toFixed(4))}return 0}const pc=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const r=[];for(const e of i){const{id:i}=e,o=n.get(i);if(o){const n=fc(o,t);n>0&&r.push({id:i,data:{droppableContainer:e,value:n}})}}return r.sort(sc)};function hc(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:nc}function Oc(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return i.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const mc=Oc(1);function gc(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const yc={ignoreTransform:!1};function bc(e,t){void 0===t&&(t=yc);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{getComputedStyle:t}=xl(e),{transform:i,transformOrigin:r}=t(e);i&&(n=function(e,t,n){const i=gc(t);if(!i)return e;const{scaleX:r,scaleY:o,x:s,y:a}=i,l=e.left-s-(1-r)*parseFloat(n),c=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width/r:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(n,i,r))}const{top:i,left:r,width:o,height:s,bottom:a,right:l}=n;return{top:i,left:r,width:o,height:s,bottom:a,right:l}}function vc(e){return bc(e,{ignoreTransform:!0})}function wc(e,t){const n=[];return e?function i(r){if(null!=t&&n.length>=t)return n;if(!r)return n;if(Sl(r)&&null!=r.scrollingElement&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!Ql(r)||function(e){return e instanceof xl(e).SVGElement}(r))return n;if(n.includes(r))return n;const{getComputedStyle:o}=xl(r),s=o(r);return r!==e&&function(e,t){void 0===t&&(t=xl(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const i=t[e];return"string"==typeof i&&n.test(i)}))}(r,s)&&n.push(r),function(e,t){return void 0===t&&(t=xl(e).getComputedStyle(e)),"fixed"===t.position}(r,s)?n:i(r.parentNode)}(e):n}function $c(e){const[t]=wc(e,1);return null!=t?t:null}function _c(e){return wl&&e?$l(e)?e:_l(e)?Sl(e)||e===kl(e).scrollingElement?window:Ql(e)?e:null:null:null}function xc(e){return $l(e)?e.scrollX:e.scrollLeft}function Sc(e){return $l(e)?e.scrollY:e.scrollTop}function Qc(e){return{x:xc(e),y:Sc(e)}}var kc;function Pc(e){return!(!wl||!e)&&e===document.scrollingElement}function Tc(e){const t={x:0,y:0},n=Pc(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=i.y,isRight:e.scrollLeft>=i.x,maxScroll:i,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(kc||(kc={}));const qc={x:.2,y:.2};function Rc(e,t,n,i,r){let{top:o,left:s,right:a,bottom:l}=n;void 0===i&&(i=10),void 0===r&&(r=qc);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=Tc(e),p={x:0,y:0},h={x:0,y:0},O=t.height*r.y,m=t.width*r.x;return!c&&o<=t.top+O?(p.y=kc.Backward,h.y=i*Math.abs((t.top+O-o)/O)):!u&&l>=t.bottom-O&&(p.y=kc.Forward,h.y=i*Math.abs((t.bottom-O-l)/O)),!f&&a>=t.right-m?(p.x=kc.Forward,h.x=i*Math.abs((t.right-m-a)/m)):!d&&s<=t.left+m&&(p.x=kc.Backward,h.x=i*Math.abs((t.left+m-s)/m)),{direction:p,speed:h}}function Ec(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:i,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:i,bottom:r,width:e.clientWidth,height:e.clientHeight}}function jc(e){return e.reduce(((e,t)=>zl(e,Qc(t))),nc)}function Nc(e,t){if(void 0===t&&(t=bc),!e)return;const{top:n,left:i,bottom:r,right:o}=t(e);$c(e)&&(r<=0||o<=0||n>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Cc=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+xc(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+Sc(t)),0)}]];class Ac{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=wc(t),i=jc(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,r]of Cc)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=r(n),s=i[e]-t;return this.rect[o]+s},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class zc{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var i;null==(i=this.target)||i.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Dc(e,t){const n=Math.abs(e.x),i=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+i**2)>t:"x"in t&&"y"in t?n>t.x&&i>t.y:"x"in t?n>t.x:"y"in t&&i>t.y}var Wc,Vc;function Mc(e){e.preventDefault()}function Xc(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Wc||(Wc={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(Vc||(Vc={}));const Uc={start:[Vc.Space,Vc.Enter],cancel:[Vc.Esc],end:[Vc.Space,Vc.Enter]},Ic=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Vc.Right:return{...n,x:n.x+25};case Vc.Left:return{...n,x:n.x-25};case Vc.Down:return{...n,y:n.y+25};case Vc.Up:return{...n,y:n.y-25}}};class Lc{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new zc(kl(t)),this.windowListeners=new zc(xl(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Wc.Resize,this.handleCancel),this.windowListeners.add(Wc.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Wc.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Nc(n),t(nc)}handleKeyDown(e){if(Wl(e)){const{active:t,context:n,options:i}=this.props,{keyboardCodes:r=Uc,coordinateGetter:o=Ic,scrollBehavior:s="smooth"}=i,{code:a}=e;if(r.end.includes(a))return void this.handleEnd(e);if(r.cancel.includes(a))return void this.handleCancel(e);const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:nc;this.referenceCoordinates||(this.referenceCoordinates=c);const u=o(e,{active:t,context:n.current,currentCoordinates:c});if(u){const t=Dl(u,c),i={x:0,y:0},{scrollableAncestors:r}=n.current;for(const n of r){const r=e.code,{isTop:o,isRight:a,isLeft:l,isBottom:c,maxScroll:d,minScroll:f}=Tc(n),p=Ec(n),h={x:Math.min(r===Vc.Right?p.right-p.width/2:p.right,Math.max(r===Vc.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(r===Vc.Down?p.bottom-p.height/2:p.bottom,Math.max(r===Vc.Down?p.top:p.top+p.height/2,u.y))},O=r===Vc.Right&&!a||r===Vc.Left&&!l,m=r===Vc.Down&&!c||r===Vc.Up&&!o;if(O&&h.x!==u.x){const e=n.scrollLeft+t.x,o=r===Vc.Right&&e<=d.x||r===Vc.Left&&e>=f.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:s});i.x=o?n.scrollLeft-e:r===Vc.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,i.x&&n.scrollBy({left:-i.x,behavior:s});break}if(m&&h.y!==u.y){const e=n.scrollTop+t.y,o=r===Vc.Down&&e<=d.y||r===Vc.Up&&e>=f.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:s});i.y=o?n.scrollTop-e:r===Vc.Down?n.scrollTop-d.y:n.scrollTop-f.y,i.y&&n.scrollBy({top:-i.y,behavior:s});break}}this.handleMove(e,zl(Dl(u,this.referenceCoordinates),i))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Zc(e){return Boolean(e&&"distance"in e)}function Gc(e){return Boolean(e&&"delay"in e)}Lc.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:i=Uc,onActivation:r}=t,{active:o}=n;const{code:s}=e.nativeEvent;if(i.start.includes(s)){const t=o.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==r||r({event:e.nativeEvent}),!0)}return!1}}];class Yc{constructor(e,t,n){var i;void 0===n&&(n=function(e){const{EventTarget:t}=xl(e);return e instanceof t?e:kl(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:r}=e,{target:o}=r;this.props=e,this.events=t,this.document=kl(o),this.documentListeners=new zc(this.document),this.listeners=new zc(n),this.windowListeners=new zc(xl(o)),this.initialCoordinates=null!=(i=Vl(r))?i:nc,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(Wc.Resize,this.handleCancel),this.windowListeners.add(Wc.DragStart,Mc),this.windowListeners.add(Wc.VisibilityChange,this.handleCancel),this.windowListeners.add(Wc.ContextMenu,Mc),this.documentListeners.add(Wc.Keydown,this.handleKeydown),t){if(Zc(t))return;if(Gc(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Wc.Click,Xc,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Wc.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:i,props:r}=this,{onMove:o,options:{activationConstraint:s}}=r;if(!i)return;const a=null!=(t=Vl(e))?t:nc,l=Dl(i,a);if(!n&&s){if(Gc(s))return Dc(l,s.tolerance)?this.handleCancel():void 0;if(Zc(s))return null!=s.tolerance&&Dc(l,s.tolerance)?this.handleCancel():Dc(l,s.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),o(a)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===Vc.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Fc={move:{name:"pointermove"},end:{name:"pointerup"}};class Bc extends Yc{constructor(e){const{event:t}=e,n=kl(t.target);super(e,Fc,n)}}Bc.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return!(!n.isPrimary||0!==n.button)&&(null==i||i({event:n}),!0)}}];const Hc={move:{name:"mousemove"},end:{name:"mouseup"}};var Kc;!function(e){e[e.RightClick=2]="RightClick"}(Kc||(Kc={}));(class extends Yc{constructor(e){super(e,Hc,kl(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return n.button!==Kc.RightClick&&(null==i||i({event:n}),!0)}}];const Jc={move:{name:"touchmove"},end:{name:"touchend"}};var eu,tu;function nu(e){let{acceleration:t,activator:n=eu.Pointer,canScroll:i,draggingRect:r,enabled:o,interval:s=5,order:l=tu.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e;const h=function(e){let{delta:t,disabled:n}=e;const i=jl(t);return Rl((e=>{if(n||!i||!e)return iu;const r={x:Math.sign(t.x-i.x),y:Math.sign(t.y-i.y)};return{x:{[kc.Backward]:e.x[kc.Backward]||-1===r.x,[kc.Forward]:e.x[kc.Forward]||1===r.x},y:{[kc.Backward]:e.y[kc.Backward]||-1===r.y,[kc.Forward]:e.y[kc.Forward]||1===r.y}}}),[n,t,i])}({delta:f,disabled:!o}),[O,m]=function(){const e=(0,a.useRef)(null),t=(0,a.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]);return[t,(0,a.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),g=(0,a.useRef)({x:0,y:0}),y=(0,a.useRef)({x:0,y:0}),b=(0,a.useMemo)((()=>{switch(n){case eu.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case eu.DraggableRect:return r}}),[n,r,c]),v=(0,a.useRef)(null),w=(0,a.useCallback)((()=>{const e=v.current;if(!e)return;const t=g.current.x*y.current.x,n=g.current.y*y.current.y;e.scrollBy(t,n)}),[]),$=(0,a.useMemo)((()=>l===tu.TreeOrder?[...u].reverse():u),[l,u]);(0,a.useEffect)((()=>{if(o&&u.length&&b){for(const e of $){if(!1===(null==i?void 0:i(e)))continue;const n=u.indexOf(e),r=d[n];if(!r)continue;const{direction:o,speed:a}=Rc(e,r,b,t,p);for(const e of["x","y"])h[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return m(),v.current=e,O(w,s),g.current=a,void(y.current=o)}g.current={x:0,y:0},y.current={x:0,y:0},m()}else m()}),[t,w,i,m,o,s,JSON.stringify(b),JSON.stringify(h),O,u,$,d,JSON.stringify(p)])}(class extends Yc{constructor(e){super(e,Jc)}static setup(){return window.addEventListener(Jc.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Jc.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;const{touches:r}=n;return!(r.length>1)&&(null==i||i({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(eu||(eu={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(tu||(tu={}));const iu={x:{[kc.Backward]:!1,[kc.Forward]:!1},y:{[kc.Backward]:!1,[kc.Forward]:!1}};var ru,ou;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ru||(ru={})),function(e){e.Optimized="optimized"}(ou||(ou={}));const su=new Map;function au(e,t){return Rl((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function lu(e){let{callback:t,disabled:n}=e;const i=Tl(t),r=(0,a.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)}),[n]);return(0,a.useEffect)((()=>()=>null==r?void 0:r.disconnect()),[r]),r}function cu(e){return new Ac(bc(e),e)}function uu(e,t,n){void 0===t&&(t=cu);const[i,r]=(0,a.useReducer)((function(i){if(!e)return null;var r;if(!1===e.isConnected)return null!=(r=null!=i?i:n)?r:null;const o=t(e);if(JSON.stringify(i)===JSON.stringify(o))return i;return o}),null),o=function(e){let{callback:t,disabled:n}=e;const i=Tl(t),r=(0,a.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)}),[i,n]);return(0,a.useEffect)((()=>()=>null==r?void 0:r.disconnect()),[r]),r}({callback(t){if(e)for(const n of t){const{type:t,target:i}=n;if("childList"===t&&i instanceof HTMLElement&&i.contains(e)){r();break}}}}),s=lu({callback:r});return Pl((()=>{r(),e?(null==s||s.observe(e),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==o||o.disconnect())}),[e]),i}const du=[];function fu(e,t){void 0===t&&(t=[]);const n=(0,a.useRef)(null);return(0,a.useEffect)((()=>{n.current=null}),t),(0,a.useEffect)((()=>{const t=e!==nc;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?Dl(e,n.current):nc}function pu(e){return(0,a.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const hu=[];function Ou(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ql(t)?t:e}const mu=[{sensor:Bc,options:{}},{sensor:Lc,options:{}}],gu={current:{}},yu={draggable:{measure:vc},droppable:{measure:vc,strategy:ru.WhileDragging,frequency:ou.Optimized},dragOverlay:{measure:bc}};class bu extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const vu={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new bu,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Jl},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:yu,measureDroppableContainers:Jl,windowRect:null,measuringScheduled:!1},wu={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Jl,draggableNodes:new Map,over:null,measureDroppableContainers:Jl},$u=(0,a.createContext)(wu),_u=(0,a.createContext)(vu);function xu(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new bu}}}function Su(e,t){switch(t.type){case Kl.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Kl.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Kl.DragEnd:case Kl.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Kl.RegisterDroppable:{const{element:n}=t,{id:i}=n,r=new bu(e.droppable.containers);return r.set(i,n),{...e,droppable:{...e.droppable,containers:r}}}case Kl.SetDroppableDisabled:{const{id:n,key:i,disabled:r}=t,o=e.droppable.containers.get(n);if(!o||i!==o.key)return e;const s=new bu(e.droppable.containers);return s.set(n,{...o,disabled:r}),{...e,droppable:{...e.droppable,containers:s}}}case Kl.UnregisterDroppable:{const{id:n,key:i}=t,r=e.droppable.containers.get(n);if(!r||i!==r.key)return e;const o=new bu(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function Qu(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:r}=(0,a.useContext)($u),o=jl(i),s=jl(null==n?void 0:n.id);return(0,a.useEffect)((()=>{if(!t&&!i&&o&&null!=s){if(!Wl(o))return;if(document.activeElement===o.target)return;const e=r.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=Ul(e);if(t){t.focus();break}}}))}}),[i,t,r,s,o]),null}function ku(e,t){let{transform:n,...i}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...i})),n):n}const Pu=(0,a.createContext)({...nc,scaleX:1,scaleY:1});var Tu;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Tu||(Tu={}));const qu=(0,a.memo)((function(e){var t,n,i,r;let{id:o,accessibility:s,autoScroll:u=!0,children:d,sensors:f=mu,collisionDetection:p=pc,measuring:h,modifiers:O,...m}=e;const g=(0,a.useReducer)(Su,void 0,xu),[y,b]=g,[v,w]=function(){const[e]=(0,a.useState)((()=>new Set)),t=(0,a.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]),n=(0,a.useCallback)((t=>{let{type:n,event:i}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,i)}))}),[e]);return[n,t]}(),[$,_]=(0,a.useState)(Tu.Uninitialized),x=$===Tu.Initialized,{draggable:{active:S,nodes:Q,translate:k},droppable:{containers:P}}=y,T=S?Q.get(S):null,q=(0,a.useRef)({initial:null,translated:null}),R=(0,a.useMemo)((()=>{var e;return null!=S?{id:S,data:null!=(e=null==T?void 0:T.data)?e:gu,rect:q}:null}),[S,T]),E=(0,a.useRef)(null),[j,N]=(0,a.useState)(null),[C,A]=(0,a.useState)(null),z=ql(m,Object.values(m)),D=Cl("DndDescribedBy",o),W=(0,a.useMemo)((()=>P.getEnabled()),[P]),V=function(e){return(0,a.useMemo)((()=>({draggable:{...yu.draggable,...null==e?void 0:e.draggable},droppable:{...yu.droppable,...null==e?void 0:e.droppable},dragOverlay:{...yu.dragOverlay,...null==e?void 0:e.dragOverlay}})),[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay])}(h),{droppableRects:M,measureDroppableContainers:X,measuringScheduled:U}=function(e,t){let{dragging:n,dependencies:i,config:r}=t;const[o,s]=(0,a.useState)(null),l=null!=o,{frequency:c,measure:u,strategy:d}=r,f=(0,a.useRef)(e),p=function(){switch(d){case ru.Always:return!1;case ru.BeforeDragging:return n;default:return!n}}(),h=ql(p),O=(0,a.useCallback)((function(e){void 0===e&&(e=[]),h.current||s((t=>t?t.concat(e):e))}),[h]),m=(0,a.useRef)(null),g=Rl((t=>{if(p&&!n)return su;const i=o;if(!t||t===su||f.current!==e||null!=i){const t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new Ac(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,o,n,p,u]);return(0,a.useEffect)((()=>{f.current=e}),[e]),(0,a.useEffect)((()=>{p||requestAnimationFrame((()=>O()))}),[n,p]),(0,a.useEffect)((()=>{l&&s(null)}),[l]),(0,a.useEffect)((()=>{p||"number"!=typeof c||null!==m.current||(m.current=setTimeout((()=>{O(),m.current=null}),c))}),[c,p,O,...i]),{droppableRects:g,measureDroppableContainers:O,measuringScheduled:l}}(W,{dragging:x,dependencies:[k.x,k.y],config:V.droppable}),I=function(e,t){const n=null!==t?e.get(t):void 0,i=n?n.node.current:null;return Rl((e=>{var n;return null===t?null:null!=(n=null!=i?i:e)?n:null}),[i,t])}(Q,S),L=(0,a.useMemo)((()=>C?Vl(C):null),[C]),Z=function(){const e=!1===(null==j?void 0:j.autoScrollEnabled),t="object"==typeof u?!1===u.enabled:!1===u,n=x&&!e&&!t;if("object"==typeof u)return{...u,enabled:n};return{enabled:n}}(),G=function(e,t){return au(e,t)}(I,V.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:i,config:r=!0}=e;const o=(0,a.useRef)(!1),{x:s,y:l}="boolean"==typeof r?{x:r,y:r}:r;Pl((()=>{if(!s&&!l||!t)return void(o.current=!1);if(o.current||!i)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=hc(n(e),i);if(s||(r.x=0),l||(r.y=0),o.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=$c(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,s,l,i,n])}({activeNode:S?Q.get(S):null,config:Z.layoutShiftCompensation,initialRect:G,measure:V.draggable.measure});const Y=uu(I,V.draggable.measure,G),F=uu(I?I.parentElement:null),B=(0,a.useRef)({activatorEvent:null,active:null,activeNode:I,collisionRect:null,collisions:null,droppableRects:M,draggableNodes:Q,draggingNode:null,draggingNodeRect:null,droppableContainers:P,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),H=P.getNodeFor(null==(t=B.current.over)?void 0:t.id),K=function(e){let{measure:t}=e;const[n,i]=(0,a.useState)(null),r=(0,a.useCallback)((e=>{for(const{target:n}of e)if(Ql(n)){i((e=>{const i=t(n);return e?{...e,width:i.width,height:i.height}:i}));break}}),[t]),o=lu({callback:r}),s=(0,a.useCallback)((e=>{const n=Ou(e);null==o||o.disconnect(),n&&(null==o||o.observe(n)),i(n?t(n):null)}),[t,o]),[l,c]=El(s);return(0,a.useMemo)((()=>({nodeRef:l,rect:n,setRef:c})),[n,l,c])}({measure:V.dragOverlay.measure}),J=null!=(n=K.nodeRef.current)?n:I,ee=x?null!=(i=K.rect)?i:Y:null,te=Boolean(K.nodeRef.current&&K.rect),ne=hc(ie=te?null:Y,au(ie));var ie;const re=pu(J?xl(J):null),oe=function(e){const t=(0,a.useRef)(e),n=Rl((n=>e?n&&n!==du&&e&&t.current&&e.parentNode===t.current.parentNode?n:wc(e):du),[e]);return(0,a.useEffect)((()=>{t.current=e}),[e]),n}(x?null!=H?H:I:null),se=function(e,t){void 0===t&&(t=bc);const[n]=e,i=pu(n?xl(n):null),[r,o]=(0,a.useReducer)((function(){return e.length?e.map((e=>Pc(e)?i:new Ac(t(e),e))):hu}),hu),s=lu({callback:o});return e.length>0&&r===hu&&o(),Pl((()=>{e.length?e.forEach((e=>null==s?void 0:s.observe(e))):(null==s||s.disconnect(),o())}),[e]),r}(oe),ae=ku(O,{transform:{x:k.x-ne.x,y:k.y-ne.y,scaleX:1,scaleY:1},activatorEvent:C,active:R,activeNodeRect:Y,containerNodeRect:F,draggingNodeRect:ee,over:B.current.over,overlayNodeRect:K.rect,scrollableAncestors:oe,scrollableAncestorRects:se,windowRect:re}),le=L?zl(L,k):null,ce=function(e){const[t,n]=(0,a.useState)(null),i=(0,a.useRef)(e),r=(0,a.useCallback)((e=>{const t=_c(e.target);t&&n((e=>e?(e.set(t,Qc(t)),new Map(e)):null))}),[]);return(0,a.useEffect)((()=>{const t=i.current;if(e!==t){o(t);const s=e.map((e=>{const t=_c(e);return t?(t.addEventListener("scroll",r,{passive:!0}),[t,Qc(t)]):null})).filter((e=>null!=e));n(s.length?new Map(s):null),i.current=e}return()=>{o(e),o(t)};function o(e){e.forEach((e=>{const t=_c(e);null==t||t.removeEventListener("scroll",r)}))}}),[r,e]),(0,a.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>zl(e,t)),nc):jc(e):nc),[e,t])}(oe),ue=fu(ce),de=fu(ce,[Y]),fe=zl(ae,ue),pe=ee?mc(ee,ae):null,he=R&&pe?p({active:R,collisionRect:pe,droppableRects:M,droppableContainers:W,pointerCoordinates:le}):null,Oe=lc(he,"id"),[me,ge]=(0,a.useState)(null),ye=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(te?ae:zl(ae,de),null!=(r=null==me?void 0:me.rect)?r:null,Y),be=(0,a.useCallback)(((e,t)=>{let{sensor:n,options:i}=t;if(null==E.current)return;const r=Q.get(E.current);if(!r)return;const o=e.nativeEvent,s=new n({active:E.current,activeNode:r,event:o,options:i,context:B,onStart(e){const t=E.current;if(null==t)return;const n=Q.get(t);if(!n)return;const{onDragStart:i}=z.current,r={active:{id:t,data:n.data,rect:q}};(0,c.unstable_batchedUpdates)((()=>{null==i||i(r),_(Tu.Initializing),b({type:Kl.DragStart,initialCoordinates:e,active:t}),v({type:"onDragStart",event:r})}))},onMove(e){b({type:Kl.DragMove,coordinates:e})},onEnd:a(Kl.DragEnd),onCancel:a(Kl.DragCancel)});function a(e){return async function(){const{active:t,collisions:n,over:i,scrollAdjustedTranslate:r}=B.current;let s=null;if(t&&r){const{cancelDrop:a}=z.current;if(s={activatorEvent:o,active:t,collisions:n,delta:r,over:i},e===Kl.DragEnd&&"function"==typeof a){await Promise.resolve(a(s))&&(e=Kl.DragCancel)}}E.current=null,(0,c.unstable_batchedUpdates)((()=>{b({type:e}),_(Tu.Uninitialized),ge(null),N(null),A(null);const t=e===Kl.DragEnd?"onDragEnd":"onDragCancel";if(s){const e=z.current[t];null==e||e(s),v({type:t,event:s})}}))}}(0,c.unstable_batchedUpdates)((()=>{N(s),A(e.nativeEvent)}))}),[Q]),ve=(0,a.useCallback)(((e,t)=>(n,i)=>{const r=n.nativeEvent,o=Q.get(i);if(null!==E.current||!o||r.dndKit||r.defaultPrevented)return;const s={active:o};!0===e(n,t.options,s)&&(r.dndKit={capturedBy:t.sensor},E.current=i,be(n,t))}),[Q,be]),we=function(e,t){return(0,a.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:i}=n;return[...e,...i.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(f,ve);!function(e){(0,a.useEffect)((()=>{if(!wl)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(f),Pl((()=>{Y&&$===Tu.Initializing&&_(Tu.Initialized)}),[Y,$]),(0,a.useEffect)((()=>{const{onDragMove:e}=z.current,{active:t,activatorEvent:n,collisions:i,over:r}=B.current;if(!t||!n)return;const o={active:t,activatorEvent:n,collisions:i,delta:{x:fe.x,y:fe.y},over:r};(0,c.unstable_batchedUpdates)((()=>{null==e||e(o),v({type:"onDragMove",event:o})}))}),[fe.x,fe.y]),(0,a.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:i,scrollAdjustedTranslate:r}=B.current;if(!e||null==E.current||!t||!r)return;const{onDragOver:o}=z.current,s=i.get(Oe),a=s&&s.rect.current?{id:s.id,rect:s.rect.current,data:s.data,disabled:s.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:r.x,y:r.y},over:a};(0,c.unstable_batchedUpdates)((()=>{ge(a),null==o||o(l),v({type:"onDragOver",event:l})}))}),[Oe]),Pl((()=>{B.current={activatorEvent:C,active:R,activeNode:I,collisionRect:pe,collisions:he,droppableRects:M,draggableNodes:Q,draggingNode:J,draggingNodeRect:ee,droppableContainers:P,over:me,scrollableAncestors:oe,scrollAdjustedTranslate:fe},q.current={initial:ee,translated:pe}}),[R,I,he,pe,Q,J,ee,M,P,me,oe,fe]),nu({...Z,delta:k,draggingRect:pe,pointerCoordinates:le,scrollableAncestors:oe,scrollableAncestorRects:se});const $e=(0,a.useMemo)((()=>({active:R,activeNode:I,activeNodeRect:Y,activatorEvent:C,collisions:he,containerNodeRect:F,dragOverlay:K,draggableNodes:Q,droppableContainers:P,droppableRects:M,over:me,measureDroppableContainers:X,scrollableAncestors:oe,scrollableAncestorRects:se,measuringConfiguration:V,measuringScheduled:U,windowRect:re})),[R,I,Y,C,he,F,K,Q,P,M,me,X,oe,se,V,U,re]),_e=(0,a.useMemo)((()=>({activatorEvent:C,activators:we,active:R,activeNodeRect:Y,ariaDescribedById:{draggable:D},dispatch:b,draggableNodes:Q,over:me,measureDroppableContainers:X})),[C,we,R,Y,b,D,Q,me,X]);return l().createElement(Yl.Provider,{value:w},l().createElement($u.Provider,{value:_e},l().createElement(_u.Provider,{value:$e},l().createElement(Pu.Provider,{value:ye},d)),l().createElement(Qu,{disabled:!1===(null==s?void 0:s.restoreFocus)})),l().createElement(Hl,{...s,hiddenTextDescribedById:D}))})),Ru=(0,a.createContext)(null),Eu="button";function ju(e){let{id:t,data:n,disabled:i=!1,attributes:r}=e;const o=Cl("Droppable"),{activators:s,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=(0,a.useContext)($u),{role:h=Eu,roleDescription:O="draggable",tabIndex:m=0}=null!=r?r:{},g=(null==c?void 0:c.id)===t,y=(0,a.useContext)(g?Pu:Ru),[b,v]=El(),[w,$]=El(),_=function(e,t){return(0,a.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:i,handler:r}=n;return e[i]=e=>{r(e,t)},e}),{})),[e,t])}(s,t),x=ql(n);Pl((()=>(f.set(t,{id:t,key:o,node:b,activatorNode:w,data:x}),()=>{const e=f.get(t);e&&e.key===o&&f.delete(t)})),[f,t]);return{active:c,activatorEvent:l,activeNodeRect:u,attributes:(0,a.useMemo)((()=>({role:h,tabIndex:m,"aria-disabled":i,"aria-pressed":!(!g||h!==Eu)||void 0,"aria-roledescription":O,"aria-describedby":d.draggable})),[i,h,m,g,O,d.draggable]),isDragging:g,listeners:i?void 0:_,node:b,over:p,setNodeRef:v,setActivatorNodeRef:$,transform:y}}function Nu(){return(0,a.useContext)(_u)}const Cu={timeout:25};function Au(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:r}=e;const o=Cl("Droppable"),{active:s,dispatch:l,over:c,measureDroppableContainers:u}=(0,a.useContext)($u),d=(0,a.useRef)({disabled:n}),f=(0,a.useRef)(!1),p=(0,a.useRef)(null),h=(0,a.useRef)(null),{disabled:O,updateMeasurementsFor:m,timeout:g}={...Cu,...r},y=ql(null!=m?m:i),b=lu({callback:(0,a.useCallback)((()=>{f.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null}),g)):f.current=!0}),[g]),disabled:O||!s}),v=(0,a.useCallback)(((e,t)=>{b&&(t&&(b.unobserve(t),f.current=!1),e&&b.observe(e))}),[b]),[w,$]=El(v),_=ql(t);return(0,a.useEffect)((()=>{b&&w.current&&(b.disconnect(),f.current=!1,b.observe(w.current))}),[w,b]),Pl((()=>(l({type:Kl.RegisterDroppable,element:{id:i,key:o,disabled:n,node:w,rect:p,data:_}}),()=>l({type:Kl.UnregisterDroppable,key:o,id:i}))),[i]),(0,a.useEffect)((()=>{n!==d.current.disabled&&(l({type:Kl.SetDroppableDisabled,id:i,key:o,disabled:n}),d.current.disabled=n)}),[i,o,n,l]),{active:s,rect:p,isOver:(null==c?void 0:c.id)===i,node:w,over:c,setNodeRef:$}}function zu(e){let{animation:t,children:n}=e;const[i,r]=(0,a.useState)(null),[o,s]=(0,a.useState)(null),c=jl(n);return n||i||!c||r(c),Pl((()=>{if(!o)return;const e=null==i?void 0:i.key,n=null==i?void 0:i.props.id;null!=e&&null!=n?Promise.resolve(t(n,o)).then((()=>{r(null)})):r(null)}),[t,i,o]),l().createElement(l().Fragment,null,n,i?(0,a.cloneElement)(i,{ref:s}):null)}const Du={x:0,y:0,scaleX:1,scaleY:1};function Wu(e){let{children:t}=e;return l().createElement($u.Provider,{value:wu},l().createElement(Pu.Provider,{value:Du},t))}const Vu={position:"fixed",touchAction:"none"},Mu=e=>Wl(e)?"transform 250ms ease":void 0,Xu=(0,a.forwardRef)(((e,t)=>{let{as:n,activatorEvent:i,adjustScale:r,children:o,className:s,rect:a,style:c,transform:u,transition:d=Mu}=e;if(!a)return null;const f=r?u:{...u,scaleX:1,scaleY:1},p={...Vu,width:a.width,height:a.height,top:a.top,left:a.left,transform:Ml.Transform.toString(f),transformOrigin:r&&i?rc(i,a):void 0,transition:"function"==typeof d?d(i):d,...c};return l().createElement(n,{className:s,style:p,ref:t},o)})),Uu=e=>t=>{let{active:n,dragOverlay:i}=t;const r={},{styles:o,className:s}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(r[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&i.node.style.setProperty(e,t);return null!=s&&s.active&&n.node.classList.add(s.active),null!=s&&s.dragOverlay&&i.node.classList.add(s.dragOverlay),function(){for(const[e,t]of Object.entries(r))n.node.style.setProperty(e,t);null!=s&&s.active&&n.node.classList.remove(s.active)}},Iu={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Ml.Transform.toString(t)},{transform:Ml.Transform.toString(n)}]},sideEffects:Uu({styles:{active:{opacity:"0"}}})};function Lu(e){let{config:t,draggableNodes:n,droppableContainers:i,measuringConfiguration:r}=e;return Tl(((e,o)=>{if(null===t)return;const s=n.get(e);if(!s)return;const a=s.node.current;if(!a)return;const l=Ou(o);if(!l)return;const{transform:c}=xl(o).getComputedStyle(o),u=gc(c);if(!u)return;const d="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:i,keyframes:r}={...Iu,...e};return e=>{let{active:o,dragOverlay:s,transform:a,...l}=e;if(!t)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},u={scaleX:1!==a.scaleX?o.rect.width*a.scaleX/s.rect.width:1,scaleY:1!==a.scaleY?o.rect.height*a.scaleY/s.rect.height:1},d={x:a.x-c.x,y:a.y-c.y,...u},f=r({...l,active:o,dragOverlay:s,transform:{initial:a,final:d}}),[p]=f,h=f[f.length-1];if(JSON.stringify(p)===JSON.stringify(h))return;const O=null==i?void 0:i({active:o,dragOverlay:s,...l}),m=s.node.animate(f,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{m.onfinish=()=>{null==O||O(),e()}}))}}(t);return Nc(a,r.draggable.measure),d({active:{id:e,data:s.data,node:a,rect:r.draggable.measure(a)},draggableNodes:n,dragOverlay:{node:o,rect:r.dragOverlay.measure(l)},droppableContainers:i,measuringConfiguration:r,transform:u})}))}let Zu=0;function Gu(e){return(0,a.useMemo)((()=>{if(null!=e)return Zu++,Zu}),[e])}const Yu=l().memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:r,transition:o,modifiers:s,wrapperElement:c="div",className:u,zIndex:d=999}=e;const{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:O,draggableNodes:m,droppableContainers:g,dragOverlay:y,over:b,measuringConfiguration:v,scrollableAncestors:w,scrollableAncestorRects:$,windowRect:_}=Nu(),x=(0,a.useContext)(Pu),S=Gu(null==p?void 0:p.id),Q=ku(s,{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:O,draggingNodeRect:y.rect,over:b,overlayNodeRect:y.rect,scrollableAncestors:w,scrollableAncestorRects:$,transform:x,windowRect:_}),k=au(h),P=Lu({config:i,draggableNodes:m,droppableContainers:g,measuringConfiguration:v}),T=k?y.setRef:void 0;return l().createElement(Wu,null,l().createElement(zu,{animation:P},p&&S?l().createElement(Xu,{key:S,id:p.id,ref:T,as:c,activatorEvent:f,adjustScale:t,className:u,transition:o,rect:k,style:{zIndex:d,...r},transform:Q},n):null))}));const Fu=({transform:e})=>({...e,y:0});function Bu(e,t,n){const i={...e};return t.top+e.y<=n.top?i.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(i.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?i.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(i.x=n.left+n.width-t.right),i}const Hu=({containerNodeRect:e,draggingNodeRect:t,transform:n})=>t&&e?Bu(n,t,e):n,Ku=({transform:e})=>({...e,x:0}),Ju=({transform:e,draggingNodeRect:t,windowRect:n})=>t&&n?Bu(e,t,n):e;function ed(e,t,n){const i=e.slice();return i.splice(n<0?i.length+n:n,0,i.splice(t,1)[0]),i}function td(e,t){return e.reduce(((e,n,i)=>{const r=t.get(n);return r&&(e[i]=r),e}),Array(e.length))}function nd(e){return null!==e&&e>=0}const id={scaleX:1,scaleY:1},rd=e=>{var t;let{rects:n,activeNodeRect:i,activeIndex:r,overIndex:o,index:s}=e;const a=null!=(t=n[r])?t:i;if(!a)return null;const l=function(e,t,n){const i=e[t],r=e[t-1],o=e[t+1];if(!i||!r&&!o)return 0;if(n<t)return r?i.left-(r.left+r.width):o.left-(i.left+i.width);return o?o.left-(i.left+i.width):i.left-(r.left+r.width)}(n,s,r);if(s===r){const e=n[o];return e?{x:r<o?e.left+e.width-(a.left+a.width):e.left-a.left,y:0,...id}:null}return s>r&&s<=o?{x:-a.width-l,y:0,...id}:s<r&&s>=o?{x:a.width+l,y:0,...id}:{x:0,y:0,...id}};const od=e=>{let{rects:t,activeIndex:n,overIndex:i,index:r}=e;const o=ed(t,i,n),s=t[r],a=o[r];return a&&s?{x:a.left-s.left,y:a.top-s.top,scaleX:a.width/s.width,scaleY:a.height/s.height}:null},sd={scaleX:1,scaleY:1},ad=e=>{var t;let{activeIndex:n,activeNodeRect:i,index:r,rects:o,overIndex:s}=e;const a=null!=(t=o[n])?t:i;if(!a)return null;if(r===n){const e=o[s];return e?{x:0,y:n<s?e.top+e.height-(a.top+a.height):e.top-a.top,...sd}:null}const l=function(e,t,n){const i=e[t],r=e[t-1],o=e[t+1];if(!i)return 0;if(n<t)return r?i.top-(r.top+r.height):o?o.top-(i.top+i.height):0;return o?o.top-(i.top+i.height):r?i.top-(r.top+r.height):0}(o,r,n);return r>n&&r<=s?{x:0,y:-a.height-l,...sd}:r<n&&r>=s?{x:0,y:a.height+l,...sd}:{x:0,y:0,...sd}};const ld="Sortable",cd=l().createContext({activeIndex:-1,containerId:ld,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:od,disabled:{draggable:!1,droppable:!1}});function ud(e){let{children:t,id:n,items:i,strategy:r=od,disabled:o=!1}=e;const{active:s,dragOverlay:c,droppableRects:u,over:d,measureDroppableContainers:f,measuringScheduled:p}=Nu(),h=Cl(ld,n),O=Boolean(null!==c.rect),m=(0,a.useMemo)((()=>i.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[i]),g=null!=s,y=s?m.indexOf(s.id):-1,b=d?m.indexOf(d.id):-1,v=(0,a.useRef)(m),w=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(m,v.current),$=-1!==b&&-1===y||w,_=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(o);Pl((()=>{w&&g&&!p&&f(m)}),[w,m,g,f,p]),(0,a.useEffect)((()=>{v.current=m}),[m]);const x=(0,a.useMemo)((()=>({activeIndex:y,containerId:h,disabled:_,disableTransforms:$,items:m,overIndex:b,useDragOverlay:O,sortedRects:td(m,u),strategy:r})),[y,h,_.draggable,_.droppable,$,m,b,u,O,r]);return l().createElement(cd.Provider,{value:x},t)}const dd=e=>{let{id:t,items:n,activeIndex:i,overIndex:r}=e;return ed(n,i,r).indexOf(t)},fd=e=>{let{containerId:t,isSorting:n,wasDragging:i,index:r,items:o,newIndex:s,previousItems:a,previousContainerId:l,transition:c}=e;return!(!c||!i)&&((a===o||r!==s)&&(!!n||s!==r&&t===l))},pd={duration:200,easing:"ease"},hd="transform",Od=Ml.Transition.toString({property:hd,duration:0,easing:"linear"}),md={roleDescription:"sortable"};function gd(e){let{animateLayoutChanges:t=fd,attributes:n,disabled:i,data:r,getNewIndex:o=dd,id:s,strategy:l,resizeObserverConfig:c,transition:u=pd}=e;const{items:d,containerId:f,activeIndex:p,disabled:h,disableTransforms:O,sortedRects:m,overIndex:g,useDragOverlay:y,strategy:b}=(0,a.useContext)(cd),v=function(e,t){var n,i;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(i=null==e?void 0:e.droppable)?i:t.droppable}}(i,h),w=d.indexOf(s),$=(0,a.useMemo)((()=>({sortable:{containerId:f,index:w,items:d},...r})),[f,r,w,d]),_=(0,a.useMemo)((()=>d.slice(d.indexOf(s))),[d,s]),{rect:x,node:S,isOver:Q,setNodeRef:k}=Au({id:s,data:$,disabled:v.droppable,resizeObserverConfig:{updateMeasurementsFor:_,...c}}),{active:P,activatorEvent:T,activeNodeRect:q,attributes:R,setNodeRef:E,listeners:j,isDragging:N,over:C,setActivatorNodeRef:A,transform:z}=ju({id:s,data:$,attributes:{...md,...n},disabled:v.draggable}),D=function(...e){return(0,a.useMemo)((()=>t=>{e.forEach((e=>e(t)))}),e)}(k,E),W=Boolean(P),V=W&&!O&&nd(p)&&nd(g),M=!y&&N,X=M&&V?z:null,U=V?null!=X?X:(null!=l?l:b)({rects:m,activeNodeRect:q,activeIndex:p,overIndex:g,index:w}):null,I=nd(p)&&nd(g)?o({id:s,items:d,activeIndex:p,overIndex:g}):w,L=null==P?void 0:P.id,Z=(0,a.useRef)({activeId:L,items:d,newIndex:I,containerId:f}),G=d!==Z.current.items,Y=t({active:P,containerId:f,isDragging:N,isSorting:W,id:s,index:w,items:d,newIndex:Z.current.newIndex,previousItems:Z.current.items,previousContainerId:Z.current.containerId,transition:u,wasDragging:null!=Z.current.activeId}),F=function(e){let{disabled:t,index:n,node:i,rect:r}=e;const[o,s]=(0,a.useState)(null),l=(0,a.useRef)(n);return Pl((()=>{if(!t&&n!==l.current&&i.current){const e=r.current;if(e){const t=bc(i.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&s(n)}}n!==l.current&&(l.current=n)}),[t,n,i,r]),(0,a.useEffect)((()=>{o&&requestAnimationFrame((()=>{s(null)}))}),[o]),o}({disabled:!Y,index:w,node:S,rect:x});return(0,a.useEffect)((()=>{W&&Z.current.newIndex!==I&&(Z.current.newIndex=I),f!==Z.current.containerId&&(Z.current.containerId=f),d!==Z.current.items&&(Z.current.items=d)}),[W,I,f,d]),(0,a.useEffect)((()=>{if(L===Z.current.activeId)return;if(L&&!Z.current.activeId)return void(Z.current.activeId=L);const e=setTimeout((()=>{Z.current.activeId=L}),50);return()=>clearTimeout(e)}),[L]),{active:P,activeIndex:p,attributes:R,data:$,rect:x,index:w,newIndex:I,items:d,isOver:Q,isSorting:W,isDragging:N,listeners:j,node:S,overIndex:g,over:C,setNodeRef:D,setActivatorNodeRef:A,setDroppableNodeRef:k,setDraggableNodeRef:E,transform:null!=F?F:U,transition:function(){if(F||G&&Z.current.newIndex===w)return Od;if(M&&!Wl(T)||!u)return;if(W||Y)return Ml.Transition.toString({...u,property:hd});return}()}}function yd(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const bd=[Vc.Down,Vc.Right,Vc.Up,Vc.Left],vd=(e,t)=>{let{context:{active:n,collisionRect:i,droppableRects:r,droppableContainers:o,over:s,scrollableAncestors:a}}=t;if(bd.includes(e.code)){if(e.preventDefault(),!n||!i)return;const t=[];o.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const o=r.get(n.id);if(o)switch(e.code){case Vc.Down:i.top<o.top&&t.push(n);break;case Vc.Up:i.top>o.top&&t.push(n);break;case Vc.Left:i.left>o.left&&t.push(n);break;case Vc.Right:i.left<o.left&&t.push(n)}}));const l=dc({active:n,collisionRect:i,droppableRects:r,droppableContainers:t,pointerCoordinates:null});let c=lc(l,"id");if(c===(null==s?void 0:s.id)&&l.length>1&&(c=l[1].id),null!=c){const e=o.get(n.id),t=o.get(c),s=t?r.get(t.id):null,l=null==t?void 0:t.node.current;if(l&&s&&e&&t){const n=wc(l).some(((e,t)=>a[t]!==e)),r=wd(e,t),o=function(e,t){if(!yd(e)||!yd(t))return!1;if(!wd(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),c=n||!r?{x:0,y:0}:{x:o?i.width-s.width:0,y:o?i.height-s.height:0},u={x:s.left,y:s.top};return c.x&&c.y?u:Dl(u,c)}}}};function wd(e,t){return!(!yd(e)||!yd(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const $d=window.wp.element,_d=window.wp.primitives,xd=(0,$d.createElement)(_d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,$d.createElement)(_d.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),Sd=(0,$d.createElement)(_d.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,$d.createElement)(_d.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var Qd=n(1753),kd={};kd.styleTagTransform=tr(),kd.setAttributes=Hi(),kd.insert=Fi().bind(null,"head"),kd.domAPI=Gi(),kd.insertStyleElement=Ji();Li()(Qd.Z,kd);Qd.Z&&Qd.Z.locals&&Qd.Z.locals;var Pd="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/components/iframe-modal.js",Td=void 0,qd=function(e){var t=e.title,n=e.iframeSrc,i=e.onClose;return l().createElement(Us.Modal,{className:"pods-iframe-modal",title:t,isDismissible:!0,onRequestClose:i,focusOnMount:!0,shouldCloseOnEsc:!1,shouldCloseOnClickOutside:!1,__self:Td,__source:{fileName:Pd,lineNumber:23,columnNumber:3}},l().createElement("iframe",{src:n,title:t,className:"pods-iframe-modal__iframe",__self:Td,__source:{fileName:Pd,lineNumber:32,columnNumber:4}}))};qd.propTypes={title:Ti().string.isRequired,iframeSrc:Ti().string.isRequired,onClose:Ti().func.isRequired};const Rd=qd;var Ed="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/list-select-item.js",jd=void 0,Nd=(0,a.forwardRef)((function(e,t){var n=e.fieldName,i=e.value,r=e.editLink,o=e.viewLink,s=e.editIframeTitle,c=e.icon,u=e.isDraggable,d=e.isRemovable,f=e.moveUp,p=e.moveDown,h=e.removeItem,O=e.setFieldItemData,m=e.isOverlay,g=void 0!==m&&m,y=e.isDragging,b=void 0!==y&&y,v=e.style,w=void 0===v?{}:v,$=e.listeners,_=void 0===$?{}:$,x=e.attributes,S=void 0===x?{}:x,Q=/^dashicons/.test(c),k=gi((0,a.useState)(!1),2),P=k[0],T=k[1];return(0,a.useEffect)((function(){var e=function(e){if(e.origin===window.location.origin&&"PODS_MESSAGE"===e.data.type&&e.data.data){T(!1);var t=e.data.data,n=void 0===t?{}:t;O((function(e){return e.map((function(e){return n.id&&Number(null==e?void 0:e.id)===Number(n.id)?n:e}))}))}};return P?window.addEventListener("message",e,!1):window.removeEventListener("message",e,!1),function(){window.removeEventListener("message",e,!1)}}),[P]),l().createElement("li",{className:Ui()("pods-list-select-item",b&&"pods-list-select-item--is-dragging",g&&"pods-list-select-item--overlay"),ref:t,style:w,__self:jd,__source:{fileName:Ed,lineNumber:81,columnNumber:3}},l().createElement("ul",{className:"pods-list-select-item__inner",__self:jd,__source:{fileName:Ed,lineNumber:92,columnNumber:4}},u?l().createElement(l().Fragment,null,l().createElement("li",za({className:"pods-list-select-item__col pods-list-select-item__drag-handle","aria-label":"drag"},_,S,{style:{cursor:b?"grabbing":"grab"},__self:jd,__source:{fileName:Ed,lineNumber:95,columnNumber:7}}),l().createElement(Us.Dashicon,{icon:"menu",__self:jd,__source:{fileName:Ed,lineNumber:106,columnNumber:8}})),l().createElement("li",{className:"pods-list-select-item__col pods-list-select-item__move-buttons",__self:jd,__source:{fileName:Ed,lineNumber:109,columnNumber:7}},l().createElement(Us.Button,{className:Ui()("pods-list-select-item__move-button",!f&&"pods-list-select-item__move-button--disabled"),showTooltip:!0,disabled:!f,onClick:f,icon:xd,label:(0,Ri.__)("Move up","pods"),__self:jd,__source:{fileName:Ed,lineNumber:110,columnNumber:8}}),l().createElement(Us.Button,{className:Ui()("pods-list-select-item__move-button",!p&&"pods-list-select-item__move-button--disabled"),showTooltip:!0,disabled:!p,onClick:p,icon:Sd,label:(0,Ri.__)("Move down","pods"),__self:jd,__source:{fileName:Ed,lineNumber:124,columnNumber:8}}))):null,c?l().createElement("li",{className:"pods-list-select-item__col pods-list-select-item__icon",__self:jd,__source:{fileName:Ed,lineNumber:142,columnNumber:6}},Q?l().createElement("span",{className:"pinkynail dashicons ".concat(c),__self:jd,__source:{fileName:Ed,lineNumber:144,columnNumber:8}}):l().createElement("img",{className:"pinkynail",src:c,alt:(0,Ri.__)("Icon","pods"),__self:jd,__source:{fileName:Ed,lineNumber:148,columnNumber:8}})):null,l().createElement("li",{className:"pods-list-select-item__col pods-list-select-item__name",__self:jd,__source:{fileName:Ed,lineNumber:157,columnNumber:5}},i.label),r?l().createElement("li",{className:"pods-list-select-item__col pods-list-select-item__edit",__self:jd,__source:{fileName:Ed,lineNumber:162,columnNumber:6}},l().createElement("a",{href:r,title:(0,Ri.__)("Edit","pods"),target:"_blank",rel:"noreferrer",onClick:function(e){e.preventDefault(),T(!0)},className:"pods-list-select-item__link",__self:jd,__source:{fileName:Ed,lineNumber:163,columnNumber:7}},l().createElement(Us.Dashicon,{icon:"edit",__self:jd,__source:{fileName:Ed,lineNumber:174,columnNumber:8}}),l().createElement("span",{className:"screen-reader-text",__self:jd,__source:{fileName:Ed,lineNumber:175,columnNumber:8}},(0,Ri.__)("Edit","pods")))):null,o?l().createElement("li",{className:"pods-list-select-item__col pods-list-select-item__view",__self:jd,__source:{fileName:Ed,lineNumber:183,columnNumber:6}},l().createElement("a",{href:o,title:(0,Ri.__)("View","pods"),target:"_blank",rel:"noreferrer",className:"pods-list-select-item__link",__self:jd,__source:{fileName:Ed,lineNumber:184,columnNumber:7}},l().createElement(Us.Dashicon,{icon:"external",__self:jd,__source:{fileName:Ed,lineNumber:191,columnNumber:8}}),l().createElement("span",{className:"screen-reader-text",__self:jd,__source:{fileName:Ed,lineNumber:192,columnNumber:8}},(0,Ri.__)("View","pods")))):null,d?l().createElement("li",{className:"pods-list-select-item__col pods-list-select-item__remove",__self:jd,__source:{fileName:Ed,lineNumber:200,columnNumber:6}},l().createElement("a",{href:"#remove",title:(0,Ri.__)("Deselect","pods"),onClick:h,className:"pods-list-select-item__link",__self:jd,__source:{fileName:Ed,lineNumber:201,columnNumber:7}},l().createElement(Us.Dashicon,{icon:"no",__self:jd,__source:{fileName:Ed,lineNumber:207,columnNumber:8}}),l().createElement("span",{className:"screen-reader-text",__self:jd,__source:{fileName:Ed,lineNumber:208,columnNumber:8}},(0,Ri.__)("Deselect","pods")))):null),P?l().createElement(Rd,{title:s||"".concat(n,": Edit"),iframeSrc:r,onClose:function(){return T(!1)},__self:jd,__source:{fileName:Ed,lineNumber:217,columnNumber:5}}):null)}));Nd.propTypes={fieldName:Ti().string.isRequired,value:Ti().shape({label:Ti().string.isRequired,value:Ti().string.isRequired}),editLink:Ti().string,editIframeTitle:Ti().string,viewLink:Ti().string,icon:Ti().string,isDraggable:Ti().bool.isRequired,isRemovable:Ti().bool.isRequired,moveUp:Ti().func,moveDown:Ti().func,removeItem:Ti().func.isRequired,setFieldItemData:Ti().func.isRequired,isOverlay:Ti().bool,isDragging:Ti().bool,style:Ti().object,attributes:Ti().object,listeners:Ti().object};const Cd=Nd;var Ad=function(e){var t=e.value,n=gd({id:t.value.toString(),data:{value:null==t?void 0:t.value.toString(),label:null==t?void 0:t.label.toString()}}),i=n.attributes,r=n.listeners,o=n.setNodeRef,s=n.transform,a=n.transition,c=n.isDragging,u={transform:Ml.Translate.toString(s),transition:a};return l().createElement(Cd,za({},e,{isDragging:c,ref:o,style:u,attributes:i,listeners:r,__self:undefined,__source:{fileName:"/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/draggable-list-select-item.js",lineNumber:38,columnNumber:3}}))};Ad.propTypes={fieldName:Ti().string.isRequired,value:Ti().shape({label:Ti().string.isRequired,value:Ti().string.isRequired}),editLink:Ti().string,editIframeTitle:Ti().string,viewLink:Ti().string,icon:Ti().string,isDraggable:Ti().bool.isRequired,isRemovable:Ti().bool.isRequired,moveUp:Ti().func,moveDown:Ti().func,removeItem:Ti().func.isRequired,setFieldItemData:Ti().func.isRequired};const zd=Ad;var Dd=n(4039),Wd={};Wd.styleTagTransform=tr(),Wd.setAttributes=Hi(),Wd.insert=Fi().bind(null,"head"),Wd.domAPI=Gi(),Wd.insertStyleElement=Ji();Li()(Dd.Z,Wd);Dd.Z&&Dd.Z.locals&&Dd.Z.locals;var Vd="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/list-select-values.js",Md=void 0,Xd=function(e){var t=e.fieldName,n=e.value,i=e.fieldItemData,r=e.setFieldItemData,o=e.setValue,c=e.isMulti,u=e.limit,d=e.defaultIcon,f=e.showIcon,p=e.showViewLink,h=e.showEditLink,O=e.editIframeTitle,m=e.readOnly,g=void 0!==m&&m,y=gi((0,a.useState)(null),2),b=y[0],v=y[1],w=function(e,t){if(!c)throw"Swap items shouldn'nt be called on a single ListSelect";var i=s(n),r=i[t];i[t]=i[e],i[e]=r,o(i.map((function(e){return e.value})))},$=tc(ec(Bc),ec(Lc,{coordinateGetter:vd})),_=function(e){var t=e.label,n=e.value,r=i.find((function(e){return e.id.toString()===n.toString()}));return{label:null!=r&&r.name?r.name:t,value:n}};return l().createElement("div",{className:"pods-list-select-values-container",__self:Md,__source:{fileName:Vd,lineNumber:136,columnNumber:3}},l().createElement(qu,{sensors:$,collisionDetection:uc,onDragStart:function(e){var t,n=e.active;v(null==n||null===(t=n.data)||void 0===t?void 0:t.current)},onDragEnd:function(e){var t=e.active,i=e.over;if(c&&null!=i&&i.id&&t.id!==i.id){var r=n.findIndex((function(e){return e.value===t.id})),s=n.findIndex((function(e){return e.value===i.id})),a=ed(n,r,s);o(a.map((function(e){return e.value}))),v(null)}},onDragCancel:function(){v(null)},modifiers:[Hu],__self:Md,__source:{fileName:Vd,lineNumber:137,columnNumber:4}},l().createElement(ud,{items:n.map((function(e){return e.value.toString()})),strategy:ad,__self:Md,__source:{fileName:Vd,lineNumber:147,columnNumber:5}},n.length?l().createElement("ul",{className:"pods-list-select-values",__self:Md,__source:{fileName:Vd,lineNumber:152,columnNumber:7}},n.map((function(e,a){var m=i.find((function(t){return(null==t?void 0:t.id)===e.value})),y=f?(null==m?void 0:m.icon)||d:void 0;return l().createElement(zd,{key:"".concat(t,"-").concat(a),fieldName:t,value:_(e),isDraggable:!g&&1!==u,isRemovable:!g,editLink:!g&&h?null==m?void 0:m.edit_link:void 0,viewLink:p?null==m?void 0:m.link:void 0,editIframeTitle:O,icon:y,removeItem:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;o(c?[].concat(s(n.slice(0,e)),s(n.slice(e+1))).map((function(e){return e.value})):void 0)}(a)},setFieldItemData:r,moveUp:g||0===a?void 0:function(){return w(a,a-1)},moveDown:g||a===n.length-1?void 0:function(){return w(a,a+1)},__self:Md,__source:{fileName:Vd,lineNumber:163,columnNumber:10}})}))):null),l().createElement(Yu,{__self:Md,__source:{fileName:Vd,lineNumber:192,columnNumber:5}},b?l().createElement(Cd,{fieldName:t,value:_(b),isOverlay:!0,isDraggable:!0,isRemovable:!1,editLink:void 0,viewLink:void 0,editIframeTitle:"",icon:void 0,removeItem:function(){},setFieldItemData:function(){},moveUp:function(){},moveDown:function(){},__self:Md,__source:{fileName:Vd,lineNumber:194,columnNumber:7}}):null)))};Xd.propTypes={fieldName:Ti().string.isRequired,value:Ti().arrayOf(Ti().shape({label:Ti().string.isRequired,value:Ti().string.isRequired})),setValue:Ti().func.isRequired,fieldItemData:Ti().arrayOf(Ti().any),setFieldItemData:Ti().func.isRequired,isMulti:Ti().bool.isRequired,limit:Ti().number.isRequired,defaultIcon:Ti().string,showIcon:Ti().bool.isRequired,showViewLink:Ti().bool.isRequired,showEditLink:Ti().bool.isRequired,editIframeTitle:Ti().string,readOnly:Ti().bool};const Ud=Xd;var Id="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/file/file-read-only.js",Ld=void 0;function Zd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Gd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zd(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yd=function(e){var t=e.fieldConfig,n=t.name,i=t.fieldItemData,r=void 0===i?[]:i,o=t.file_format_type,s=t.file_limit,a=e.value,c="single"===o?"1":s,u=gi(ml(a,r,n),1)[0],d=u.map((function(e){return{label:e.name,value:e.id}}));return console.log("readonly File value",a,u),0===d.length?l().createElement("span",{__self:Ld,__source:{fileName:Id,lineNumber:56,columnNumber:4}},(0,Ri.__)("No files have been uploaded.","pods")):l().createElement(Ud,{fieldName:n,value:d,setValue:function(){},fieldItemData:u,setFieldItemData:function(){},isMulti:"single"!==o,limit:parseInt(c,10)||0,showIcon:!0,showViewLink:!1,showEditLink:!1,readOnly:!0,__self:Ld,__source:{fileName:Id,lineNumber:63,columnNumber:3}})};Yd.propTypes=Gd(Gd({},Fa),{},{value:Ti().oneOfType([Ti().arrayOf(Ti().oneOfType([Ti().string,Ti().number])),Ti().string,Ti().number])});const Fd=Yd;var Bd="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/file/index.js",Hd=void 0;function Kd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Jd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kd(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ef=function(e){var t=e.fieldConfig.read_only;return xa(t)?l().createElement(Fd,za({},e,{__self:Hd,__source:{fileName:Bd,lineNumber:31,columnNumber:10}})):l().createElement(vl,za({},e,{__self:Hd,__source:{fileName:Bd,lineNumber:35,columnNumber:3}}))};ef.propTypes=Jd(Jd({},Fa),{},{value:Ti().oneOfType([Ti().arrayOf(Ti().oneOfType([Ti().string,Ti().number])),Ti().string,Ti().number])});const tf=ef;var nf=function(e){var t=e.fieldConfig,n=void 0===t?{}:t,i=Object.entries(n).map((function(e){return[e[0].startsWith("avatar_")?"file_"+e[0].substr(7):e[0],e[1]]})),r=Object.fromEntries(i);return l().createElement(tf,za({},e,{fieldConfig:r,__self:undefined,__source:{fileName:"/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/avatar/index.js",lineNumber:24,columnNumber:3}}))};nf.propTypes=Fa;const rf=nf;var of=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),sf=Math.abs,af=String.fromCharCode,lf=Object.assign;function cf(e){return e.trim()}function uf(e,t,n){return e.replace(t,n)}function df(e,t){return e.indexOf(t)}function ff(e,t){return 0|e.charCodeAt(t)}function pf(e,t,n){return e.slice(t,n)}function hf(e){return e.length}function Of(e){return e.length}function mf(e,t){return t.push(e),e}var gf=1,yf=1,bf=0,vf=0,wf=0,$f="";function _f(e,t,n,i,r,o,s){return{value:e,root:t,parent:n,type:i,props:r,children:o,line:gf,column:yf,length:s,return:""}}function xf(e,t){return lf(_f("",null,null,"",null,null,0),e,{length:-e.length},t)}function Sf(){return wf=vf>0?ff($f,--vf):0,yf--,10===wf&&(yf=1,gf--),wf}function Qf(){return wf=vf<bf?ff($f,vf++):0,yf++,10===wf&&(yf=1,gf++),wf}function kf(){return ff($f,vf)}function Pf(){return vf}function Tf(e,t){return pf($f,e,t)}function qf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Rf(e){return gf=yf=1,bf=hf($f=e),vf=0,[]}function Ef(e){return $f="",e}function jf(e){return cf(Tf(vf-1,Af(91===e?e+2:40===e?e+1:e)))}function Nf(e){for(;(wf=kf())&&wf<33;)Qf();return qf(e)>2||qf(wf)>3?"":" "}function Cf(e,t){for(;--t&&Qf()&&!(wf<48||wf>102||wf>57&&wf<65||wf>70&&wf<97););return Tf(e,Pf()+(t<6&&32==kf()&&32==Qf()))}function Af(e){for(;Qf();)switch(wf){case e:return vf;case 34:case 39:34!==e&&39!==e&&Af(wf);break;case 40:41===e&&Af(e);break;case 92:Qf()}return vf}function zf(e,t){for(;Qf()&&e+wf!==57&&(e+wf!==84||47!==kf()););return"/*"+Tf(t,vf-1)+"*"+af(47===e?e:Qf())}function Df(e){for(;!qf(kf());)Qf();return Tf(e,vf)}var Wf="-ms-",Vf="-moz-",Mf="-webkit-",Xf="comm",Uf="rule",If="decl",Lf="@keyframes";function Zf(e,t){for(var n="",i=Of(e),r=0;r<i;r++)n+=t(e[r],r,e,t)||"";return n}function Gf(e,t,n,i){switch(e.type){case"@import":case If:return e.return=e.return||e.value;case Xf:return"";case Lf:return e.return=e.value+"{"+Zf(e.children,i)+"}";case Uf:e.value=e.props.join(",")}return hf(n=Zf(e.children,i))?e.return=e.value+"{"+n+"}":""}function Yf(e,t){switch(function(e,t){return(((t<<2^ff(e,0))<<2^ff(e,1))<<2^ff(e,2))<<2^ff(e,3)}(e,t)){case 5103:return Mf+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Mf+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Mf+e+Vf+e+Wf+e+e;case 6828:case 4268:return Mf+e+Wf+e+e;case 6165:return Mf+e+Wf+"flex-"+e+e;case 5187:return Mf+e+uf(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Mf+e+Wf+"flex-item-"+uf(e,/flex-|-self/,"")+e;case 4675:return Mf+e+Wf+"flex-line-pack"+uf(e,/align-content|flex-|-self/,"")+e;case 5548:return Mf+e+Wf+uf(e,"shrink","negative")+e;case 5292:return Mf+e+Wf+uf(e,"basis","preferred-size")+e;case 6060:return Mf+"box-"+uf(e,"-grow","")+Mf+e+Wf+uf(e,"grow","positive")+e;case 4554:return Mf+uf(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return uf(uf(uf(e,/(zoom-|grab)/,Mf+"$1"),/(image-set)/,Mf+"$1"),e,"")+e;case 5495:case 3959:return uf(e,/(image-set\([^]*)/,Mf+"$1$`$1");case 4968:return uf(uf(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Mf+e+e;case 4095:case 3583:case 4068:case 2532:return uf(e,/(.+)-inline(.+)/,Mf+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(hf(e)-1-t>6)switch(ff(e,t+1)){case 109:if(45!==ff(e,t+4))break;case 102:return uf(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+Vf+(108==ff(e,t+3)?"$3":"$2-$3"))+e;case 115:return~df(e,"stretch")?Yf(uf(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ff(e,t+1))break;case 6444:switch(ff(e,hf(e)-3-(~df(e,"!important")&&10))){case 107:return uf(e,":",":"+Mf)+e;case 101:return uf(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Mf+(45===ff(e,14)?"inline-":"")+"box$3$1"+Mf+"$2$3$1"+Wf+"$2box$3")+e}break;case 5936:switch(ff(e,t+11)){case 114:return Mf+e+Wf+uf(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Mf+e+Wf+uf(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Mf+e+Wf+uf(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Mf+e+Wf+e+e}return e}function Ff(e){return Ef(Bf("",null,null,null,[""],e=Rf(e),0,[0],e))}function Bf(e,t,n,i,r,o,s,a,l){for(var c=0,u=0,d=s,f=0,p=0,h=0,O=1,m=1,g=1,y=0,b="",v=r,w=o,$=i,_=b;m;)switch(h=y,y=Qf()){case 40:if(108!=h&&58==_.charCodeAt(d-1)){-1!=df(_+=uf(jf(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:_+=jf(y);break;case 9:case 10:case 13:case 32:_+=Nf(h);break;case 92:_+=Cf(Pf()-1,7);continue;case 47:switch(kf()){case 42:case 47:mf(Kf(zf(Qf(),Pf()),t,n),l);break;default:_+="/"}break;case 123*O:a[c++]=hf(_)*g;case 125*O:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:p>0&&hf(_)-d&&mf(p>32?Jf(_+";",i,n,d-1):Jf(uf(_," ","")+";",i,n,d-2),l);break;case 59:_+=";";default:if(mf($=Hf(_,t,n,c,u,r,a,b,v=[],w=[],d),o),123===y)if(0===u)Bf(_,t,$,$,v,o,d,a,w);else switch(f){case 100:case 109:case 115:Bf(e,$,$,i&&mf(Hf(e,$,$,0,0,r,a,b,r,v=[],d),w),r,w,d,a,i?v:w);break;default:Bf(_,$,$,$,[""],w,0,a,w)}}c=u=p=0,O=g=1,b=_="",d=s;break;case 58:d=1+hf(_),p=h;default:if(O<1)if(123==y)--O;else if(125==y&&0==O++&&125==Sf())continue;switch(_+=af(y),y*O){case 38:g=u>0?1:(_+="\f",-1);break;case 44:a[c++]=(hf(_)-1)*g,g=1;break;case 64:45===kf()&&(_+=jf(Qf())),f=kf(),u=d=hf(b=_+=Df(Pf())),y++;break;case 45:45===h&&2==hf(_)&&(O=0)}}return o}function Hf(e,t,n,i,r,o,s,a,l,c,u){for(var d=r-1,f=0===r?o:[""],p=Of(f),h=0,O=0,m=0;h<i;++h)for(var g=0,y=pf(e,d+1,d=sf(O=s[h])),b=e;g<p;++g)(b=cf(O>0?f[g]+" "+y:uf(y,/&\f/g,f[g])))&&(l[m++]=b);return _f(e,t,n,0===r?Uf:a,l,c,u)}function Kf(e,t,n){return _f(e,t,n,Xf,af(wf),pf(e,2,-2),0)}function Jf(e,t,n,i){return _f(e,t,n,If,pf(e,0,i),pf(e,i+1,-1),i)}var ep=function(e,t,n){for(var i=0,r=0;i=r,r=kf(),38===i&&12===r&&(t[n]=1),!qf(r);)Qf();return Tf(e,vf)},tp=function(e,t){return Ef(function(e,t){var n=-1,i=44;do{switch(qf(i)){case 0:38===i&&12===kf()&&(t[n]=1),e[n]+=ep(vf-1,t,n);break;case 2:e[n]+=jf(i);break;case 4:if(44===i){e[++n]=58===kf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=af(i)}}while(i=Qf());return e}(Rf(e),t))},np=new WeakMap,ip=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||np.get(n))&&!i){np.set(e,!0);for(var r=[],o=tp(t,r),s=n.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=r[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},rp=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},op=[function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case If:e.return=Yf(e.value,e.length);break;case Lf:return Zf([xf(e,{value:uf(e.value,"@","@"+Mf)})],i);case Uf:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zf([xf(e,{props:[uf(t,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return Zf([xf(e,{props:[uf(t,/:(plac\w+)/,":-webkit-input-$1")]}),xf(e,{props:[uf(t,/:(plac\w+)/,":-moz-$1")]}),xf(e,{props:[uf(t,/:(plac\w+)/,Wf+"input-$1")]})],i)}return""}))}}];const sp=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||op;var r,o,s={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,c,u,d,f=[Gf,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[ip,rp].concat(i,f),u=Of(c),function(e,t,n,i){for(var r="",o=0;o<u;o++)r+=c[o](e,t,n,i)||"";return r});o=function(e,t,n,i){l=n,Zf(Ff(e?e+"{"+t.styles+"}":t.styles),p),i&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new of({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return h.sheet.hydrate(a),h};function ap(e,t,n){var i="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):i+=n+" "})),i}var lp=function(e,t,n){var i=e.key+"-"+t.name;!1===n&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},cp=function(e,t,n){lp(e,t,n);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+i:"",r,e.sheet,!0);r=r.next}while(void 0!==r)}};const up=function(e){for(var t,n=0,i=0,r=e.length;r>=4;++i,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const dp={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};const fp=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}};var pp=/[A-Z]|^ms/g,hp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Op=function(e){return 45===e.charCodeAt(1)},mp=function(e){return null!=e&&"boolean"!=typeof e},gp=fp((function(e){return Op(e)?e:e.replace(pp,"-$&").toLowerCase()})),yp=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(hp,(function(e,t,n){return vp={name:t,styles:n,next:vp},t}))}return 1===dp[e]||Op(e)||"number"!=typeof t||0===t?t:t+"px"};function bp(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return vp={name:n.name,styles:n.styles,next:vp},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)vp={name:i.name,styles:i.styles,next:vp},i=i.next;return n.styles+";"}return function(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=bp(e,t,n[r])+";";else for(var o in n){var s=n[o];if("object"!=typeof s)null!=t&&void 0!==t[s]?i+=o+"{"+t[s]+"}":mp(s)&&(i+=gp(o)+":"+yp(o,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=bp(e,t,s);switch(o){case"animation":case"animationName":i+=gp(o)+":"+a+";";break;default:i+=o+"{"+a+"}"}}else for(var l=0;l<s.length;l++)mp(s[l])&&(i+=gp(o)+":"+yp(o,s[l])+";")}return i}(e,t,n);case"function":if(void 0!==e){var r=vp,o=n(e);return vp=r,bp(e,t,o)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var vp,$p=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var _p=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,r="";vp=void 0;var o=e[0];null==o||void 0===o.raw?(i=!1,r+=bp(n,t,o)):r+=o[0];for(var s=1;s<e.length;s++)r+=bp(n,t,e[s]),i&&(r+=o[s]);$p.lastIndex=0;for(var a,l="";null!==(a=$p.exec(r));)l+="-"+a[1];return{name:up(r)+l,styles:r,next:vp}},xp={}.hasOwnProperty,Sp=(0,a.createContext)("undefined"!=typeof HTMLElement?sp({key:"css"}):null);var Qp=Sp.Provider,kp=function(e){return(0,a.forwardRef)((function(t,n){var i=(0,a.useContext)(Sp);return e(t,i,n)}))},Pp=(0,a.createContext)({});var Tp=a.useInsertionEffect?a.useInsertionEffect:function(e){e()};function qp(e){Tp(e)}var Rp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ep=function(e,t){var n={};for(var i in t)xp.call(t,i)&&(n[i]=t[i]);return n[Rp]=e,n},jp=function(e){var t=e.cache,n=e.serialized,i=e.isStringTag;lp(t,n,i);qp((function(){return cp(t,n,i)}));return null},Np=kp((function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var r=e[Rp],o=[i],s="";"string"==typeof e.className?s=ap(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var l=_p(o,void 0,(0,a.useContext)(Pp));s+=t.key+"-"+l.name;var c={};for(var u in e)xp.call(e,u)&&"css"!==u&&u!==Rp&&(c[u]=e[u]);return c.ref=n,c.className=s,(0,a.createElement)(a.Fragment,null,(0,a.createElement)(jp,{cache:t,serialized:l,isStringTag:"string"==typeof r}),(0,a.createElement)(r,c))}));n(8679);var Cp=function(e,t){var n=arguments;if(null==t||!xp.call(t,"css"))return a.createElement.apply(void 0,n);var i=n.length,r=new Array(i);r[0]=Np,r[1]=Ep(e,t);for(var o=2;o<i;o++)r[o]=n[o];return a.createElement.apply(null,r)};a.useInsertionEffect?a.useInsertionEffect:a.useLayoutEffect;function Ap(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _p(t)}var zp=function e(t){for(var n=t.length,i=0,r="";i<n;i++){var o=t[i];if(null!=o){var s=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))s=e(o);else for(var a in s="",o)o[a]&&a&&(s&&(s+=" "),s+=a);break;default:s=o}s&&(r&&(r+=" "),r+=s)}}return r};function Dp(e,t,n){var i=[],r=ap(e,i,n);return i.length<2?n:r+t(i)}var Wp=function(e){var t=e.cache,n=e.serializedArr;qp((function(){for(var e=0;e<n.length;e++)cp(t,n[e],!1)}));return null},Vp=kp((function(e,t){var n=[],i=function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];var o=_p(i,t.registered);return n.push(o),lp(t,o,!1),t.key+"-"+o.name},r={css:i,cx:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Dp(t.registered,i,zp(n))},theme:(0,a.useContext)(Pp)},o=e.children(r);return!0,(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Wp,{cache:t,serializedArr:n}),o)}));function Mp(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Xp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Up(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Up(Object(n),!0).forEach((function(t){Xp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Up(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lp(e){return Lp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Lp(e)}function Zp(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Lp(e);if(t){var r=Lp(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Zp(this,n)}}var Yp=["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Fp=function(){};function Bp(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Hp(e,t,n){var i=[n];if(t&&e)for(var r in t)t.hasOwnProperty(r)&&t[r]&&i.push("".concat(Bp(e,r)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Kp=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===yi(e)&&null!==e?[e]:[];var t},Jp=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Ip({},Mp(e,Yp))};function eh(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function th(e){return eh(e)?window.pageYOffset:e.scrollTop}function nh(e,t){eh(e)?window.scrollTo(0,t):e.scrollTop=t}function ih(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}function rh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Fp,r=th(e),o=t-r,s=10,a=0;function l(){var t=ih(a+=s,r,o,n);nh(e,t),a<n?window.requestAnimationFrame(l):i(e)}l()}function oh(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var sh=!1,ah={get passive(){return sh=!0}},lh="undefined"!=typeof window?window:{};lh.addEventListener&&lh.removeEventListener&&(lh.addEventListener("p",Fp,ah),lh.removeEventListener("p",Fp,!1));var ch=sh;function uh(e){return null!=e}function dh(e,t,n){return e?t:n}function fh(e){var t=e.maxHeight,n=e.menuEl,i=e.minHeight,r=e.placement,o=e.shouldScroll,s=e.isFixedPosition,a=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,i=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&i.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,f=n.getBoundingClientRect(),p=f.bottom,h=f.height,O=f.top,m=n.offsetParent.getBoundingClientRect().top,g=s?window.innerHeight:eh(u=l)?window.innerHeight:u.clientHeight,y=th(l),b=parseInt(getComputedStyle(n).marginBottom,10),v=parseInt(getComputedStyle(n).marginTop,10),w=m-v,$=g-O,_=w+y,x=d-y-O,S=p-g+y+b,Q=y+O-v,k=160;switch(r){case"auto":case"bottom":if($>=h)return{placement:"bottom",maxHeight:t};if(x>=h&&!s)return o&&rh(l,S,k),{placement:"bottom",maxHeight:t};if(!s&&x>=i||s&&$>=i)return o&&rh(l,S,k),{placement:"bottom",maxHeight:s?$-b:x-b};if("auto"===r||s){var P=t,T=s?w:_;return T>=i&&(P=Math.min(T-b-a.controlHeight,t)),{placement:"top",maxHeight:P}}if("bottom"===r)return o&&nh(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(_>=h&&!s)return o&&rh(l,Q,k),{placement:"top",maxHeight:t};if(!s&&_>=i||s&&w>=i){var q=t;return(!s&&_>=i||s&&w>=i)&&(q=s?w-v:_-v),o&&rh(l,Q,k),{placement:"top",maxHeight:q}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}var ph=function(e){return"auto"===e?"bottom":e},hh=(0,a.createContext)({getPortalPlacement:null}),Oh=function(e){Ai(n,e);var t=Gp(n);function n(){var e;Ei(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.context=void 0,e.getPlacement=function(t){var n=e.props,i=n.minMenuHeight,r=n.maxMenuHeight,o=n.menuPlacement,s=n.menuPosition,a=n.menuShouldScrollIntoView,l=n.theme;if(t){var c="fixed"===s,u=fh({maxHeight:r,menuEl:t,minHeight:i,placement:o,shouldScroll:a&&!c,isFixedPosition:c,theme:l}),d=e.context.getPortalPlacement;d&&d(u),e.setState(u)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||ph(t);return Ip(Ip({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return Ni(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(a.Component);Oh.contextType=hh;var mh=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},gh=mh,yh=mh,bh=function(e){var t=e.children,n=e.className,i=e.cx,r=e.getStyles,o=e.innerProps;return Cp("div",za({css:r("noOptionsMessage",e),className:i({"menu-notice":!0,"menu-notice--no-options":!0},n)},o),t)};bh.defaultProps={children:"No options"};var vh=function(e){var t=e.children,n=e.className,i=e.cx,r=e.getStyles,o=e.innerProps;return Cp("div",za({css:r("loadingMessage",e),className:i({"menu-notice":!0,"menu-notice--loading":!0},n)},o),t)};vh.defaultProps={children:"Loading..."};var wh,$h=function(e){Ai(n,e);var t=Gp(n);function n(){var e;Ei(this,n);for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return(e=t.call.apply(t,[this].concat(r))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==ph(e.props.menuPlacement)&&e.setState({placement:n})},e}return Ni(n,[{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,i=e.className,r=e.controlElement,o=e.cx,s=e.innerProps,a=e.menuPlacement,l=e.menuPosition,u=e.getStyles,d="fixed"===l;if(!t&&!d||!r)return null;var f=this.state.placement||ph(a),p=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),h=d?0:window.pageYOffset,O=p[f]+h,m=Cp("div",za({css:u("menuPortal",{offset:O,position:l,rect:p}),className:o({"menu-portal":!0},i)},s),n);return Cp(hh.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},t?(0,c.createPortal)(m,t):m)}}]),n}(a.Component),_h=["size"];var xh,Sh,Qh={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},kh=function(e){var t=e.size,n=Mp(e,_h);return Cp("svg",za({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Qh},n))},Ph=function(e){return Cp(kh,za({size:20},e),Cp("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Th=function(e){return Cp(kh,za({size:20},e),Cp("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},qh=function(e){var t=e.isFocused,n=e.theme,i=n.spacing.baseUnit,r=n.colors;return{label:"indicatorContainer",color:t?r.neutral60:r.neutral20,display:"flex",padding:2*i,transition:"color 150ms",":hover":{color:t?r.neutral80:r.neutral40}}},Rh=qh,Eh=qh,jh=function(){var e=Ap.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(wh||(xh=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Sh||(Sh=xh.slice(0)),wh=Object.freeze(Object.defineProperties(xh,{raw:{value:Object.freeze(Sh)}})))),Nh=function(e){var t=e.delay,n=e.offset;return Cp("span",{css:Ap({animation:"".concat(jh," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Ch=function(e){var t=e.className,n=e.cx,i=e.getStyles,r=e.innerProps,o=e.isRtl;return Cp("div",za({css:i("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},r),Cp(Nh,{delay:0,offset:o}),Cp(Nh,{delay:160,offset:!0}),Cp(Nh,{delay:320,offset:!o}))};Ch.defaultProps={size:4};var Ah=["data"],zh=["innerRef","isDisabled","isHidden","inputClassName"],Dh={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Wh={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Ip({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Dh)},Vh=function(e){return Ip({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Dh)},Mh=function(e){var t=e.children,n=e.innerProps;return Cp("div",n,t)};var Xh={ClearIndicator:function(e){var t=e.children,n=e.className,i=e.cx,r=e.getStyles,o=e.innerProps;return Cp("div",za({css:r("clearIndicator",e),className:i({indicator:!0,"clear-indicator":!0},n)},o),t||Cp(Ph,null))},Control:function(e){var t=e.children,n=e.cx,i=e.getStyles,r=e.className,o=e.isDisabled,s=e.isFocused,a=e.innerRef,l=e.innerProps,c=e.menuIsOpen;return Cp("div",za({ref:a,css:i("control",e),className:n({control:!0,"control--is-disabled":o,"control--is-focused":s,"control--menu-is-open":c},r)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,i=e.cx,r=e.getStyles,o=e.innerProps;return Cp("div",za({css:r("dropdownIndicator",e),className:i({indicator:!0,"dropdown-indicator":!0},n)},o),t||Cp(Th,null))},DownChevron:Th,CrossIcon:Ph,Group:function(e){var t=e.children,n=e.className,i=e.cx,r=e.getStyles,o=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return Cp("div",za({css:r("group",e),className:i({group:!0},n)},a),Cp(o,za({},s,{selectProps:u,theme:c,getStyles:r,cx:i}),l),Cp("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,i=e.className,r=Jp(e);r.data;var o=Mp(r,Ah);return Cp("div",za({css:t("groupHeading",e),className:n({"group-heading":!0},i)},o))},IndicatorsContainer:function(e){var t=e.children,n=e.className,i=e.cx,r=e.innerProps,o=e.getStyles;return Cp("div",za({css:o("indicatorsContainer",e),className:i({indicators:!0},n)},r),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,i=e.getStyles,r=e.innerProps;return Cp("span",za({},r,{css:i("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,i=e.getStyles,r=e.value,o=Jp(e),s=o.innerRef,a=o.isDisabled,l=o.isHidden,c=o.inputClassName,u=Mp(o,zh);return Cp("div",{className:n({"input-container":!0},t),css:i("input",e),"data-value":r||""},Cp("input",za({className:n({input:!0},c),ref:s,style:Vh(l),disabled:a},u)))},LoadingIndicator:Ch,Menu:function(e){var t=e.children,n=e.className,i=e.cx,r=e.getStyles,o=e.innerRef,s=e.innerProps;return Cp("div",za({css:r("menu",e),className:i({menu:!0},n),ref:o},s),t)},MenuList:function(e){var t=e.children,n=e.className,i=e.cx,r=e.getStyles,o=e.innerProps,s=e.innerRef,a=e.isMulti;return Cp("div",za({css:r("menuList",e),className:i({"menu-list":!0,"menu-list--is-multi":a},n),ref:s},o),t)},MenuPortal:$h,LoadingMessage:vh,NoOptionsMessage:bh,MultiValue:function(e){var t=e.children,n=e.className,i=e.components,r=e.cx,o=e.data,s=e.getStyles,a=e.innerProps,l=e.isDisabled,c=e.removeProps,u=e.selectProps,d=i.Container,f=i.Label,p=i.Remove;return Cp(Vp,null,(function(i){var h=i.css,O=i.cx;return Cp(d,{data:o,innerProps:Ip({className:O(h(s("multiValue",e)),r({"multi-value":!0,"multi-value--is-disabled":l},n))},a),selectProps:u},Cp(f,{data:o,innerProps:{className:O(h(s("multiValueLabel",e)),r({"multi-value__label":!0},n))},selectProps:u},t),Cp(p,{data:o,innerProps:Ip({className:O(h(s("multiValueRemove",e)),r({"multi-value__remove":!0},n)),"aria-label":"Remove ".concat(t||"option")},c),selectProps:u}))}))},MultiValueContainer:Mh,MultiValueLabel:Mh,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Cp("div",za({role:"button"},n),t||Cp(Ph,{size:14}))},Option:function(e){var t=e.children,n=e.className,i=e.cx,r=e.getStyles,o=e.isDisabled,s=e.isFocused,a=e.isSelected,l=e.innerRef,c=e.innerProps;return Cp("div",za({css:r("option",e),className:i({option:!0,"option--is-disabled":o,"option--is-focused":s,"option--is-selected":a},n),ref:l,"aria-disabled":o},c),t)},Placeholder:function(e){var t=e.children,n=e.className,i=e.cx,r=e.getStyles,o=e.innerProps;return Cp("div",za({css:r("placeholder",e),className:i({placeholder:!0},n)},o),t)},SelectContainer:function(e){var t=e.children,n=e.className,i=e.cx,r=e.getStyles,o=e.innerProps,s=e.isDisabled,a=e.isRtl;return Cp("div",za({css:r("container",e),className:i({"--is-disabled":s,"--is-rtl":a},n)},o),t)},SingleValue:function(e){var t=e.children,n=e.className,i=e.cx,r=e.getStyles,o=e.isDisabled,s=e.innerProps;return Cp("div",za({css:r("singleValue",e),className:i({"single-value":!0,"single-value--is-disabled":o},n)},s),t)},ValueContainer:function(e){var t=e.children,n=e.className,i=e.cx,r=e.innerProps,o=e.isMulti,s=e.getStyles,a=e.hasValue;return Cp("div",za({css:s("valueContainer",e),className:i({"value-container":!0,"value-container--is-multi":o,"value-container--has-value":a},n)},r),t)}},Uh=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Ih(e){var t=e.defaultInputValue,n=void 0===t?"":t,i=e.defaultMenuIsOpen,r=void 0!==i&&i,o=e.defaultValue,s=void 0===o?null:o,l=e.inputValue,c=e.menuIsOpen,u=e.onChange,d=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,h=e.value,O=Mp(e,Uh),m=gi((0,a.useState)(void 0!==l?l:n),2),g=m[0],y=m[1],b=gi((0,a.useState)(void 0!==c?c:r),2),v=b[0],w=b[1],$=gi((0,a.useState)(void 0!==h?h:s),2),_=$[0],x=$[1],S=(0,a.useCallback)((function(e,t){"function"==typeof u&&u(e,t),x(e)}),[u]),Q=(0,a.useCallback)((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),y(void 0!==n?n:e)}),[d]),k=(0,a.useCallback)((function(){"function"==typeof p&&p(),w(!0)}),[p]),P=(0,a.useCallback)((function(){"function"==typeof f&&f(),w(!1)}),[f]),T=void 0!==l?l:g,q=void 0!==c?c:v,R=void 0!==h?h:_;return Ip(Ip({},O),{},{inputValue:T,menuIsOpen:q,onChange:S,onInputChange:Q,onMenuClose:P,onMenuOpen:k,value:R})}var Lh=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Zh(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(i=e[n],r=t[n],!(i===r||Lh(i)&&Lh(r)))return!1;var i,r;return!0}const Gh=function(e,t){var n;void 0===t&&(t=Zh);var i,r=[],o=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return o&&n===this&&t(s,r)||(i=e.apply(this,s),o=!0,n=this,r=s),i}};for(var Yh={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Fh=function(e){return Cp("span",za({css:Yh},e))},Bh={guidance:function(e){var t=e.isSearchable,n=e.isMulti,i=e.isDisabled,r=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(i?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,i=void 0===n?"":n,r=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(i,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,i=e.options,r=e.label,o=void 0===r?"":r,s=e.selectValue,a=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(o," focused, ").concat(c(s,n),".");if("menu"===t){var u=a?" disabled":"",d="".concat(l?"selected":"focused").concat(u);return"option ".concat(o," ").concat(d,", ").concat(c(i,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Hh=function(e){var t=e.ariaSelection,n=e.focusedOption,i=e.focusedValue,r=e.focusableOptions,o=e.isFocused,s=e.selectValue,l=e.selectProps,c=e.id,u=l.ariaLiveMessages,d=l.getOptionLabel,f=l.inputValue,p=l.isMulti,h=l.isOptionDisabled,O=l.isSearchable,m=l.menuIsOpen,g=l.options,y=l.screenReaderStatus,b=l.tabSelectsValue,v=l["aria-label"],w=l["aria-live"],$=(0,a.useMemo)((function(){return Ip(Ip({},Bh),u||{})}),[u]),_=(0,a.useMemo)((function(){var e,n="";if(t&&$.onChange){var i=t.option,r=t.options,o=t.removedValue,a=t.removedValues,l=t.value,c=o||i||(e=l,Array.isArray(e)?null:e),u=c?d(c):"",f=r||a||void 0,p=f?f.map(d):[],O=Ip({isDisabled:c&&h(c,s),label:u,labels:p},t);n=$.onChange(O)}return n}),[t,$,h,s,d]),x=(0,a.useMemo)((function(){var e="",t=n||i,r=!!(n&&s&&s.includes(n));if(t&&$.onFocus){var o={focused:t,label:d(t),isDisabled:h(t,s),isSelected:r,options:g,context:t===n?"menu":"value",selectValue:s};e=$.onFocus(o)}return e}),[n,i,d,h,$,g,s]),S=(0,a.useMemo)((function(){var e="";if(m&&g.length&&$.onFilter){var t=y({count:r.length});e=$.onFilter({inputValue:f,resultsMessage:t})}return e}),[r,f,m,$,g,y]),Q=(0,a.useMemo)((function(){var e="";if($.guidance){var t=i?"value":m?"menu":"input";e=$.guidance({"aria-label":v,context:t,isDisabled:n&&h(n,s),isMulti:p,isSearchable:O,tabSelectsValue:b})}return e}),[v,n,i,p,h,O,m,$,s,b]),k="".concat(x," ").concat(S," ").concat(Q),P=Cp(a.Fragment,null,Cp("span",{id:"aria-selection"},_),Cp("span",{id:"aria-context"},k)),T="initial-input-focus"===(null==t?void 0:t.action);return Cp(a.Fragment,null,Cp(Fh,{id:c},T&&P),Cp(Fh,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},o&&!T&&P))},Kh=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Jh=new RegExp("["+Kh.map((function(e){return e.letters})).join("")+"]","g"),eO={},tO=0;tO<Kh.length;tO++)for(var nO=Kh[tO],iO=0;iO<nO.letters.length;iO++)eO[nO.letters[iO]]=nO.base;var rO=function(e){return e.replace(Jh,(function(e){return eO[e]}))},oO=Gh(rO),sO=function(e){return e.replace(/^\s+|\s+$/g,"")},aO=function(e){return"".concat(e.label," ").concat(e.value)},lO=["innerRef"];function cO(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=Object.entries(e).filter((function(e){var t=gi(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=gi(t,2),i=n[0],r=n[1];return e[i]=r,e}),{})}(Mp(e,lO),"onExited","in","enter","exit","appear");return Cp("input",za({ref:t},n,{css:Ap({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var uO=["boxSizing","height","overflow","paddingRight","position"],dO={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function fO(e){e.preventDefault()}function pO(e){e.stopPropagation()}function hO(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function OO(){return"ontouchstart"in window||navigator.maxTouchPoints}var mO=!("undefined"==typeof window||!window.document||!window.document.createElement),gO=0,yO={capture:!1,passive:!1};var bO=function(){return document.activeElement&&document.activeElement.blur()},vO={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function wO(e){var t=e.children,n=e.lockEnabled,i=e.captureEnabled,r=function(e){var t=e.isEnabled,n=e.onBottomArrive,i=e.onBottomLeave,r=e.onTopArrive,o=e.onTopLeave,s=(0,a.useRef)(!1),l=(0,a.useRef)(!1),c=(0,a.useRef)(0),u=(0,a.useRef)(null),d=(0,a.useCallback)((function(e,t){if(null!==u.current){var a=u.current,c=a.scrollTop,d=a.scrollHeight,f=a.clientHeight,p=u.current,h=t>0,O=d-f-c,m=!1;O>t&&s.current&&(i&&i(e),s.current=!1),h&&l.current&&(o&&o(e),l.current=!1),h&&t>O?(n&&!s.current&&n(e),p.scrollTop=d,m=!0,s.current=!0):!h&&-t>c&&(r&&!l.current&&r(e),p.scrollTop=0,m=!0,l.current=!0),m&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,i,r,o]),f=(0,a.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=(0,a.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),h=(0,a.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),O=(0,a.useCallback)((function(e){if(e){var t=!!ch&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,f]),m=(0,a.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,f]);return(0,a.useEffect)((function(){if(t){var e=u.current;return O(e),function(){m(e)}}}),[t,O,m]),function(e){u.current=e}}({isEnabled:void 0===i||i,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,n=e.accountForScrollbars,i=void 0===n||n,r=(0,a.useRef)({}),o=(0,a.useRef)(null),s=(0,a.useCallback)((function(e){if(mO){var t=document.body,n=t&&t.style;if(i&&uO.forEach((function(e){var t=n&&n[e];r.current[e]=t})),i&&gO<1){var o=parseInt(r.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+o||0;Object.keys(dO).forEach((function(e){var t=dO[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&OO()&&(t.addEventListener("touchmove",fO,yO),e&&(e.addEventListener("touchstart",hO,yO),e.addEventListener("touchmove",pO,yO))),gO+=1}}),[i]),l=(0,a.useCallback)((function(e){if(mO){var t=document.body,n=t&&t.style;gO=Math.max(gO-1,0),i&&gO<1&&uO.forEach((function(e){var t=r.current[e];n&&(n[e]=t)})),t&&OO()&&(t.removeEventListener("touchmove",fO,yO),e&&(e.removeEventListener("touchstart",hO,yO),e.removeEventListener("touchmove",pO,yO)))}}),[i]);return(0,a.useEffect)((function(){if(t){var e=o.current;return s(e),function(){l(e)}}}),[t,s,l]),function(e){o.current=e}}({isEnabled:n});return Cp(a.Fragment,null,n&&Cp("div",{onClick:bO,css:vO}),t((function(e){r(e),o(e)})))}var $O=function(e){return e.label},_O=function(e){return e.value},xO={clearIndicator:Eh,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,i=e.theme,r=i.colors,o=i.borderRadius,s=i.spacing;return{label:"control",alignItems:"center",backgroundColor:t?r.neutral5:r.neutral0,borderColor:t?r.neutral10:n?r.primary:r.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(r.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?r.primary:r.neutral30}}},dropdownIndicator:Rh,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,i=n.spacing.baseUnit,r=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?r.neutral10:r.neutral20,marginBottom:2*i,marginTop:2*i,width:1}},input:function(e){var t=e.isDisabled,n=e.value,i=e.theme,r=i.spacing,o=i.colors;return Ip({margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80,transform:n?"translateZ(0)":""},Wh)},loadingIndicator:function(e){var t=e.isFocused,n=e.size,i=e.theme,r=i.colors,o=i.spacing.baseUnit;return{label:"loadingIndicator",color:t?r.neutral60:r.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:yh,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,s=r.spacing,a=r.colors;return i(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),i(t,"backgroundColor",a.neutral0),i(t,"borderRadius",o),i(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),i(t,"marginBottom",s.menuGutter),i(t,"marginTop",s.menuGutter),i(t,"position","absolute"),i(t,"width","100%"),i(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,i=e.position;return{left:t.left,position:i,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,i=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:i/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,i=t.colors,r=e.cropWithEllipsis;return{borderRadius:n/2,color:i.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,i=t.borderRadius,r=t.colors;return{alignItems:"center",borderRadius:i/2,backgroundColor:e.isFocused?r.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}}},noOptionsMessage:gh,option:function(e){var t=e.isDisabled,n=e.isFocused,i=e.isSelected,r=e.theme,o=r.spacing,s=r.colors;return{label:"option",backgroundColor:i?s.primary:n?s.primary25:"transparent",color:t?s.neutral20:i?s.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:i?s.primary:s.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,n=e.theme,i=n.spacing,r=n.colors;return{label:"singleValue",color:t?r.neutral40:r.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,n=e.isMulti,i=e.hasValue,r=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&i&&r?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var SO={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},QO={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:oh(),captureMenuScroll:!oh(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var i=Ip({ignoreCase:!0,ignoreAccents:!0,stringify:aO,trim:!0,matchFrom:"any"},e),r=i.ignoreCase,o=i.ignoreAccents,s=i.stringify,a=i.trim,l=i.matchFrom,c=a?sO(n):n,u=a?sO(s(t)):s(t);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),o&&(c=oO(c),u=rO(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:$O,getOptionValue:_O,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function kO(e,t,n,i){return{type:"option",data:t,isDisabled:jO(e,t,n),isSelected:NO(e,t,n),label:RO(e,t),value:EO(e,t),index:i}}function PO(e,t){return e.options.map((function(n,i){if("options"in n){var r=n.options.map((function(n,i){return kO(e,n,t,i)})).filter((function(t){return qO(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:i}:void 0}var o=kO(e,n,t,i);return qO(e,o)?o:void 0})).filter(uh)}function TO(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,s(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function qO(e,t){var n=e.inputValue,i=void 0===n?"":n,r=t.data,o=t.isSelected,s=t.label,a=t.value;return(!AO(e)||!o)&&CO(e,{label:s,value:a,data:r},i)}var RO=function(e,t){return e.getOptionLabel(t)},EO=function(e,t){return e.getOptionValue(t)};function jO(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function NO(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var i=EO(e,t);return n.some((function(t){return EO(e,t)===i}))}function CO(e,t,n){return!e.filterOption||e.filterOption(t,n)}var AO=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},zO=1,DO=function(e){Ai(n,e);var t=Gp(n);function n(e){var i;return Ei(this,n),(i=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.instancePrefix="",i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(e){i.controlRef=e},i.focusedOptionRef=null,i.getFocusedOptionRef=function(e){i.focusedOptionRef=e},i.menuListRef=null,i.getMenuListRef=function(e){i.menuListRef=e},i.inputRef=null,i.getInputRef=function(e){i.inputRef=e},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(e,t){var n=i.props,r=n.onChange,o=n.name;t.name=o,i.ariaOnChange(e,t),r(e,t)},i.setValue=function(e,t,n){var r=i.props,o=r.closeMenuOnSelect,s=r.isMulti,a=r.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:a}),o&&(i.setState({inputIsHiddenAfterUpdate:!s}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(e,{action:t,option:n})},i.selectOption=function(e){var t=i.props,n=t.blurInputOnSelect,r=t.isMulti,o=t.name,a=i.state.selectValue,l=r&&i.isOptionSelected(e,a),c=i.isOptionDisabled(e,a);if(l){var u=i.getOptionValue(e);i.setValue(a.filter((function(e){return i.getOptionValue(e)!==u})),"deselect-option",e)}else{if(c)return void i.ariaOnChange(e,{action:"select-option",option:e,name:o});r?i.setValue([].concat(s(a),[e]),"select-option",e):i.setValue(e,"select-option")}n&&i.blurInput()},i.removeValue=function(e){var t=i.props.isMulti,n=i.state.selectValue,r=i.getOptionValue(e),o=n.filter((function(e){return i.getOptionValue(e)!==r})),s=dh(t,o,o[0]||null);i.onChange(s,{action:"remove-value",removedValue:e}),i.focusInput()},i.clearValue=function(){var e=i.state.selectValue;i.onChange(dh(i.props.isMulti,[],null),{action:"clear",removedValues:e})},i.popValue=function(){var e=i.props.isMulti,t=i.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),o=dh(e,r,r[0]||null);i.onChange(o,{action:"pop-value",removedValue:n})},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hp.apply(void 0,[i.props.classNamePrefix].concat(t))},i.getOptionLabel=function(e){return RO(i.props,e)},i.getOptionValue=function(e){return EO(i.props,e)},i.getStyles=function(e,t){var n=xO[e](t);n.boxSizing="border-box";var r=i.props.styles[e];return r?r(n,t):n},i.getElementId=function(e){return"".concat(i.instancePrefix,"-").concat(e)},i.getComponents=function(){return e=i.props,Ip(Ip({},Xh),e.components);var e},i.buildCategorizedOptions=function(){return PO(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return TO(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(e,t){i.setState({ariaSelection:Ip({value:e},t)})},i.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(e){i.blockOptionHover=!1},i.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&i.onMenuClose():t&&i.openMenu("first"):(t&&(i.openAfterFocus=!0),i.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},i.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||i.props.isDisabled)){var t=i.props,n=t.isMulti,r=t.menuIsOpen;i.focusInput(),r?(i.setState({inputIsHiddenAfterUpdate:!n}),i.onMenuClose()):i.openMenu("first"),e.preventDefault()}},i.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(i.clearValue(),e.preventDefault(),i.openAfterFocus=!1,"touchend"===e.type?i.focusInput():setTimeout((function(){return i.focusInput()})))},i.onScroll=function(e){"boolean"==typeof i.props.closeMenuOnScroll?e.target instanceof HTMLElement&&eh(e.target)&&i.props.onMenuClose():"function"==typeof i.props.closeMenuOnScroll&&i.props.closeMenuOnScroll(e)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(i.initialTouchX=n.clientX,i.initialTouchY=n.clientY,i.userIsDragging=!1)},i.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var r=Math.abs(n.clientX-i.initialTouchX),o=Math.abs(n.clientY-i.initialTouchY);i.userIsDragging=r>5||o>5}},i.onTouchEnd=function(e){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(e.target)&&i.menuListRef&&!i.menuListRef.contains(e.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(e){i.userIsDragging||i.onControlMouseDown(e)},i.onClearIndicatorTouchEnd=function(e){i.userIsDragging||i.onClearIndicatorMouseDown(e)},i.onDropdownIndicatorTouchEnd=function(e){i.userIsDragging||i.onDropdownIndicatorMouseDown(e)},i.handleInputChange=function(e){var t=i.props.inputValue,n=e.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(n,{action:"input-change",prevInputValue:t}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(e){i.props.onFocus&&i.props.onFocus(e),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(e){var t=i.props.inputValue;i.menuListRef&&i.menuListRef.contains(document.activeElement)?i.inputRef.focus():(i.props.onBlur&&i.props.onBlur(e),i.onInputChange("",{action:"input-blur",prevInputValue:t}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1}))},i.onOptionHover=function(e){i.blockOptionHover||i.state.focusedOption===e||i.setState({focusedOption:e})},i.shouldHideSelectedOptions=function(){return AO(i.props)},i.onKeyDown=function(e){var t=i.props,n=t.isMulti,r=t.backspaceRemovesValue,o=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=i.state,h=p.focusedOption,O=p.focusedValue,m=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(i.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||s)return;i.focusValue("previous");break;case"ArrowRight":if(!n||s)return;i.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(O)i.removeValue(O);else{if(!r)return;n?i.popValue():a&&i.clearValue()}break;case"Tab":if(i.isComposing)return;if(e.shiftKey||!c||!d||!h||f&&i.isOptionSelected(h,m))return;i.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(i.isComposing)return;i.selectOption(h);break}return;case"Escape":c?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:s}),i.onMenuClose()):a&&o&&i.clearValue();break;case" ":if(s)return;if(!c){i.openMenu("first");break}if(!h)return;i.selectOption(h);break;case"ArrowUp":c?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":c?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!c)return;i.focusOption("pageup");break;case"PageDown":if(!c)return;i.focusOption("pagedown");break;case"Home":if(!c)return;i.focusOption("first");break;case"End":if(!c)return;i.focusOption("last");break;default:return}e.preventDefault()}},i.instancePrefix="react-select-"+(i.props.instanceId||++zO),i.state.selectValue=Kp(e.value),i}return Ni(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,i,r,o,s=this.props,a=s.isDisabled,l=s.menuIsOpen,c=this.state.isFocused;(c&&!a&&e.isDisabled||c&&l&&!e.menuIsOpen)&&this.focusInput(),c&&a&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,i=t.getBoundingClientRect(),r=n.getBoundingClientRect(),o=n.offsetHeight/3,r.bottom+o>i.bottom?nh(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+o,t.scrollHeight)):r.top-o<i.top&&nh(t,Math.max(n.offsetTop-o,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,i=n.selectValue,r=n.isFocused,o=this.buildFocusableOptions(),s="first"===e?0:o.length-1;if(!this.props.isMulti){var a=o.indexOf(i[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[s]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,i=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(i);i||(r=-1);var o=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===r?0:-1===r?o:r-1;break;case"next":r>-1&&r<o&&(s=r+1)}this.setState({inputIsHidden:-1!==s,focusedValue:n[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,i=this.getFocusableOptions();if(i.length){var r=0,o=i.indexOf(n);n||(o=-1),"up"===e?r=o>0?o-1:i.length-1:"down"===e?r=(o+1)%i.length:"pageup"===e?(r=o-t)<0&&(r=0):"pagedown"===e?(r=o+t)>i.length-1&&(r=i.length-1):"last"===e&&(r=i.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:i[r],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(SO):Ip(Ip({},SO),this.props.theme):SO}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,i=this.getValue,r=this.selectOption,o=this.setValue,s=this.props,a=s.isMulti,l=s.isRtl,c=s.options;return{clearValue:e,cx:t,getStyles:n,getValue:i,hasValue:this.hasValue(),isMulti:a,isRtl:l,options:c,selectOption:r,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return jO(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return NO(this.props,e,t)}},{key:"filterOption",value:function(e,t){return CO(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,i=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:i})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,r=e.inputValue,o=e.tabIndex,s=e.form,l=e.menuIsOpen,c=this.getComponents().Input,u=this.state,d=u.inputIsHidden,f=u.ariaSelection,p=this.commonProps,h=i||this.getElementId("input"),O=Ip(Ip(Ip({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},l&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?a.createElement(c,za({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:s,type:"text",value:r},O)):a.createElement(cO,za({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Fp,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:s,value:""},O))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,r=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,h=u.inputValue,O=u.placeholder,m=this.state,g=m.selectValue,y=m.focusedValue,b=m.isFocused;if(!this.hasValue()||!d)return h?null:a.createElement(l,za({},c,{key:"placeholder",isDisabled:f,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),O);if(p)return g.map((function(t,s){var l=t===y,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,za({},c,{components:{Container:i,Label:r,Remove:o},isFocused:l,isDisabled:f,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var v=g[0];return a.createElement(s,za({},c,{data:v,isDisabled:f}),this.formatOptionLabel(v,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,r=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||r)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,za({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,r=n.isLoading,o=this.state.isFocused;if(!e||!r)return null;return a.createElement(e,za({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused;return a.createElement(n,za({},i,{isDisabled:r,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,za({},t,{innerProps:r,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,i=t.GroupHeading,r=t.Menu,o=t.MenuList,s=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,O=p.inputValue,m=p.isLoading,g=p.loadingMessage,y=p.minMenuHeight,b=p.maxMenuHeight,v=p.menuIsOpen,w=p.menuPlacement,$=p.menuPosition,_=p.menuPortalTarget,x=p.menuShouldBlockScroll,S=p.menuShouldScrollIntoView,Q=p.noOptionsMessage,k=p.onMenuScrollToTop,P=p.onMenuScrollToBottom;if(!v)return null;var T,q=function(t,n){var i=t.type,r=t.data,o=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,p=f===r,h=o?void 0:function(){return e.onOptionHover(r)},O=o?void 0:function(){return e.selectOption(r)},m="".concat(e.getElementId("option"),"-").concat(n),g={id:m,onClick:O,onMouseMove:h,onMouseOver:h,tabIndex:-1};return a.createElement(u,za({},d,{innerProps:g,data:r,isDisabled:o,isSelected:s,key:m,label:l,type:i,value:c,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())T=this.getCategorizedOptions().map((function(t){if("group"===t.type){var r=t.data,o=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return a.createElement(n,za({},d,{key:l,data:r,options:o,Heading:i,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return q(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return q(t,"".concat(t.index))}));else if(m){var R=g({inputValue:O});if(null===R)return null;T=a.createElement(l,d,R)}else{var E=Q({inputValue:O});if(null===E)return null;T=a.createElement(c,d,E)}var j={minMenuHeight:y,maxMenuHeight:b,menuPlacement:w,menuPosition:$,menuShouldScrollIntoView:S},N=a.createElement(Oh,za({},d,j),(function(t){var n=t.ref,i=t.placerProps,s=i.placement,l=i.maxHeight;return a.createElement(r,za({},d,j,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:m,placement:s}),a.createElement(wO,{captureEnabled:h,onTopArrive:k,onBottomArrive:P,lockEnabled:x},(function(t){return a.createElement(o,za({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:l,focusedOption:f}),T)})))}));return _||"fixed"===$?a.createElement(s,za({},d,{appendTo:_,controlElement:this.controlRef,menuPlacement:w,menuPosition:$}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,i=t.isDisabled,r=t.isMulti,o=t.name,s=this.state.selectValue;if(o&&!i){if(r){if(n){var l=s.map((function(t){return e.getOptionValue(t)})).join(n);return a.createElement("input",{name:o,type:"hidden",value:l})}var c=s.length>0?s.map((function(t,n){return a.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})})):a.createElement("input",{name:o,type:"hidden"});return a.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return a.createElement("input",{name:o,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,o=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return a.createElement(Hh,za({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:i,focusedValue:r,isFocused:o,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,r=e.ValueContainer,o=this.props,s=o.className,l=o.id,c=o.isDisabled,u=o.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return a.createElement(i,za({},f,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),a.createElement(t,za({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),a.createElement(r,za({},f,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,za({},f,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,i=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,l=e.options,c=e.value,u=e.menuIsOpen,d=e.inputValue,f=e.isMulti,p=Kp(c),h={};if(n&&(c!==n.value||l!==n.options||u!==n.menuIsOpen||d!==n.inputValue)){var O=u?function(e,t){return TO(PO(e,t))}(e,p):[],m=i?function(e,t){var n=e.focusedValue,i=e.selectValue.indexOf(n);if(i>-1){if(t.indexOf(n)>-1)return n;if(i<t.length)return t[i]}return null}(t,p):null,g=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,O);h={selectValue:p,focusedOption:g,focusedValue:m,clearFocusValueOnUpdate:!1}}var y=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},b=o,v=s&&a;return s&&!v&&(b={value:dh(f,p,p[0]||null),options:p,action:"initial-input-focus"},v=!a),"initial-input-focus"===(null==o?void 0:o.action)&&(b=null),Ip(Ip(Ip({},h),y),{},{prevProps:e,ariaSelection:b,prevWasFocused:v})}}]),n}(a.Component);DO.defaultProps=QO;var WO=(0,a.forwardRef)((function(e,t){var n=Ih(e);return a.createElement(DO,za({ref:t},n))}));a.Component;const VO=WO;var MO=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function XO(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,o=void 0!==r&&r,s=e.loadOptions;e.options;var l=e.isLoading,c=void 0!==l&&l,u=e.onInputChange,d=e.filterOption,f=void 0===d?null:d,p=Mp(e,MO),h=p.inputValue,O=(0,a.useRef)(void 0),m=(0,a.useRef)(!1),g=gi((0,a.useState)(Array.isArray(n)?n:void 0),2),y=g[0],b=g[1],v=gi((0,a.useState)(void 0!==h?h:""),2),w=v[0],$=v[1],_=gi((0,a.useState)(!0===n),2),x=_[0],S=_[1],Q=gi((0,a.useState)(void 0),2),k=Q[0],P=Q[1],T=gi((0,a.useState)([]),2),q=T[0],R=T[1],E=gi((0,a.useState)(!1),2),j=E[0],N=E[1],C=gi((0,a.useState)({}),2),A=C[0],z=C[1],D=gi((0,a.useState)(void 0),2),W=D[0],V=D[1],M=gi((0,a.useState)(void 0),2),X=M[0],U=M[1];o!==X&&(z({}),U(o)),n!==W&&(b(Array.isArray(n)?n:void 0),V(n)),(0,a.useEffect)((function(){return m.current=!0,function(){m.current=!1}}),[]);var I=(0,a.useCallback)((function(e,t){if(!s)return t();var n=s(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[s]);(0,a.useEffect)((function(){!0===n&&I(w,(function(e){m.current&&(b(e||[]),S(!!O.current))}))}),[]);var L=(0,a.useCallback)((function(e,t){var n=function(e,t,n){if(n){var i=n(e,t);if("string"==typeof i)return i}return e}(e,t,u);if(!n)return O.current=void 0,$(""),P(""),R([]),S(!1),void N(!1);if(o&&A[n])$(n),P(n),R(A[n]),S(!1),N(!1);else{var r=O.current={};$(n),S(!0),N(!k),I(n,(function(e){m&&r===O.current&&(O.current=void 0,S(!1),P(n),R(e||[]),N(!1),z(e?Ip(Ip({},A),{},i({},n,e)):A))}))}}),[o,I,k,A,u]),Z=j?[]:w&&k?q:y||[];return Ip(Ip({},p),{},{options:Z,isLoading:x||c,onInputChange:L,filterOption:f})}const UO=(0,a.forwardRef)((function(e,t){var n=Ih(XO(e));return a.createElement(DO,za({ref:t},n))}));var IO=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],LO=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=String(e).toLowerCase(),r=String(n.getOptionValue(t)).toLowerCase(),o=String(n.getOptionLabel(t)).toLowerCase();return r===i||o===i},ZO={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,i){return!(!e||t.some((function(t){return LO(e,t,i)}))||n.some((function(t){return LO(e,t,i)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};var GO=(0,a.forwardRef)((function(e,t){var n=function(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,i=e.createOptionPosition,r=void 0===i?"last":i,o=e.formatCreateLabel,l=void 0===o?ZO.formatCreateLabel:o,c=e.isValidNewOption,u=void 0===c?ZO.isValidNewOption:c,d=e.getNewOptionData,f=void 0===d?ZO.getNewOptionData:d,p=e.onCreateOption,h=e.options,O=void 0===h?[]:h,m=e.onChange,g=Mp(e,IO),y=g.getOptionValue,b=void 0===y?_O:y,v=g.getOptionLabel,w=void 0===v?$O:v,$=g.inputValue,_=g.isLoading,x=g.isMulti,S=g.value,Q=g.name,k=(0,a.useMemo)((function(){return u($,Kp(S),O,{getOptionValue:b,getOptionLabel:w})?f($,l($)):void 0}),[l,f,w,b,$,u,O,S]),P=(0,a.useMemo)((function(){return!n&&_||!k?O:"first"===r?[k].concat(s(O)):[].concat(s(O),[k])}),[n,r,_,k,O]),T=(0,a.useCallback)((function(e,t){if("select-option"!==t.action)return m(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==k)m(e,t);else if(p)p($);else{var i=f($,$),r={action:"create-option",name:Q,option:i};m(dh(x,[].concat(s(Kp(S)),[i]),i),r)}}),[f,$,x,Q,k,p,m,S]);return Ip(Ip({},g),{},{options:P,onChange:T})}(Ih(XO(e)));return a.createElement(DO,za({ref:t},n))}));const YO=GO;const FO=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return fi(hi().mark((function t(){var n,i,r,o,s,a,l,c,u,d,f=arguments;return hi().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=f.length>0&&void 0!==f[0]?f[0]:"",a={_wpnonce:null==e?void 0:e._wpnonce,action:"pods_relationship",method:"select2",pod:null!==(n=null==e?void 0:e.pod_name)&&void 0!==n?n:"",field:null!==(i=null==e?void 0:e.field_name)&&void 0!==i?i:"",uri_hash:null!==(r=null==e?void 0:e.uri_hash)&&void 0!==r?r:"",id:null!==(o=null==e?void 0:e.id)&&void 0!==o?o:0,query:s},l=new FormData,Object.keys(a).forEach((function(e){l.append(e,a[e])})),t.prev=4,t.next=7,fetch(ajaxurl+"?pods_ajax=1",{method:"POST",body:l});case 7:return c=t.sent,t.next=10,c.json();case 10:if(null!=(u=t.sent)&&u.results){t.next=13;break}throw new Error("Invalid response.");case 13:return d=u.results.map((function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id}})),t.abrupt("return",d);case 17:throw t.prev=17,t.t0=t.catch(4),t.t0;case 20:case"end":return t.stop()}}),t,null,[[4,17]])})))};var BO="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/full-select.js",HO=void 0;function KO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function JO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KO(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var em=function(e){var t=gd({id:e.data.value}),n=t.attributes,i=t.listeners,r=t.setNodeRef,o=t.transform,s=t.transition,a=t.isDragging,c={transform:Ml.Translate.toString(o),transition:s,cursor:a?"grabbing":"grab"},u=JO(JO({},e.removeProps),{},{style:{cursor:a?"grabbing":"pointer"}});return l().createElement("span",za({ref:r,style:c,"aria-label":"drag"},i,n,{__self:HO,__source:{fileName:BO,lineNumber:61,columnNumber:3}}),l().createElement(Xh.MultiValue,za({},e,{removeProps:u,__self:HO,__source:{fileName:BO,lineNumber:70,columnNumber:4}})))},tm=function(e){var t=e.isTaggable,n=e.ajaxData,i=e.shouldRenderValue,r=e.formattedOptions,o=e.value,s=e.addNewItem,a=e.setValue,c=e.placeholder,u=e.isMulti,d=e.isClearable,f=e.isReadOnly,p=t||(null==n?void 0:n.ajax),h=t?YO:UO,O=tc(ec(Bc,{activationConstraint:{distance:1}}),ec(Lc,{coordinateGetter:vd})),m={multiValueLabel:function(e,t){return JO(JO({},e),{},{wordBreak:"break-word",whiteSpace:"break-spaces"})},singleValue:function(e,t){return JO(JO({},e),{},{wordBreak:"break-word",whiteSpace:"break-spaces"})},menu:function(e,t){return JO(JO({},e),{},{zIndex:2})}};return l().createElement(qu,{sensors:O,collisionDetection:uc,onDragEnd:function(e){var t=e.active,n=e.over;if(u&&Array.isArray(o)&&null!=n&&n.id&&t.id!==n.id){var i=o.findIndex((function(e){return e.value===t.id})),r=o.findIndex((function(e){return e.value===n.id})),s=ed(o,i,r);a(s.map((function(e){return e.value})))}},modifiers:[Hu,Fu],__self:HO,__source:{fileName:BO,lineNumber:150,columnNumber:3}},l().createElement(ud,{items:Array.isArray(o)?o.map((function(e){return e.value})):[],strategy:rd,__self:HO,__source:{fileName:BO,lineNumber:159,columnNumber:4}},p?l().createElement(h,{controlShouldRenderValue:i,defaultOptions:r,loadOptions:null!=n&&n.ajax?FO(n):void 0,value:o,placeholder:c,isMulti:u,isClearable:d,onChange:s,isDisabled:f,components:{MultiValue:em},styles:m,classNamePrefix:"pods-dfv-pick-full-select",__self:HO,__source:{fileName:BO,lineNumber:164,columnNumber:6}}):l().createElement(VO,{controlShouldRenderValue:i,options:r,value:o,placeholder:c,isMulti:u,isClearable:d,onChange:s,isDisabled:f,components:{MultiValue:em},styles:m,classNamePrefix:"pods-dfv-pick-full-select",__self:HO,__source:{fileName:BO,lineNumber:181,columnNumber:6}})))},nm=Ti().shape({label:Ti().string,value:Ti().string});tm.propTypes={isTaggable:Ti().bool.isRequired,ajaxData:La,shouldRenderValue:Ti().bool.isRequired,formattedOptions:Ti().arrayOf(nm),value:Ti().oneOfType([nm,Ti().arrayOf(nm)]),addNewItem:Ti().func.isRequired,setValue:Ti().func.isRequired,placeholder:Ti().string.isRequired,isMulti:Ti().bool.isRequired,isClearable:Ti().bool.isRequired,isReadOnly:Ti().bool.isRequired};const im=tm;var rm="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/simple-select.js",om=void 0,sm=function(e){var t=e.htmlAttributes,n=e.name,i=e.value,r=e.options,o=e.setValue,s=e.isMulti,a=void 0!==s&&s,c=e.readOnly,u=void 0!==c&&c,d=Ui()("pods-form-ui-field pods-form-ui-field-type-pick pods-form-ui-field-select",t.class),f=t.name||n;return a&&(f+="[]"),l().createElement("select",{id:t.id||"pods-form-ui-".concat(n),name:f,className:d,value:i||(a?[]:""),onChange:function(e){u||o(a?Array.from(e.target.options).filter((function(e){return e.selected})).map((function(e){return e.value})):e.target.value)},multiple:a,readOnly:xa(u),__self:om,__source:{fileName:rm,lineNumber:31,columnNumber:3}},l().createElement(l().Fragment,null,r.map((function(e){var t=e.name,n=e.id;if("string"==typeof n||"number"==typeof n)return l().createElement("option",{key:n,value:n,__self:om,__source:{fileName:rm,lineNumber:59,columnNumber:8}},t);if(Array.isArray(n))return l().createElement("optgroup",{label:t,key:t,__self:om,__source:{fileName:rm,lineNumber:65,columnNumber:8}},n.map((function(e){var t=e.id,n=e.name;return l().createElement("option",{key:t,value:t,__self:om,__source:{fileName:rm,lineNumber:68,columnNumber:11}},n)})));if("object"===yi(n)){var i=Object.entries(n);return l().createElement("optgroup",{label:n,key:n,__self:om,__source:{fileName:rm,lineNumber:79,columnNumber:8}},i.map((function(e){var t=gi(e,2),n=t[0],i=t[1];return l().createElement("option",{key:n,value:n,__self:om,__source:{fileName:rm,lineNumber:82,columnNumber:11}},i)})))}return null}))))};sm.propTypes={htmlAttributes:Ti().shape({id:Ti().string,class:Ti().string,name:Ti().string}),name:Ti().string.isRequired,value:Ti().oneOfType([Ti().arrayOf(Ti().oneOfType([Ti().string,Ti().number])),Ti().string,Ti().number]),setValue:Ti().func.isRequired,options:Ua.isRequired,isMulti:Ti().bool,readOnly:Ti().bool};const am=sm;var lm="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/radio-select.js",cm=void 0,um=function(e){var t=e.htmlAttributes,n=e.name,i=e.value,r=e.options,o=e.setValue,s=e.readOnly,a=void 0!==s&&s;return l().createElement("ul",{className:"pods-radio-pick",id:n,__self:cm,__source:{fileName:lm,lineNumber:16,columnNumber:3}},r.map((function(e){var r=e.id,s=e.name,c=t.id?"".concat(t.id,"-").concat(r):"".concat(n,"-").concat(r);return l().createElement("li",{key:r,className:"pods-radio-pick__option",__self:cm,__source:{fileName:lm,lineNumber:26,columnNumber:6}},l().createElement("div",{className:"pods-field pods-boolean",__self:cm,__source:{fileName:lm,lineNumber:27,columnNumber:7}},l().createElement("label",{className:"pods-form-ui-label pods-radio-pick__option__label",__self:cm,__source:{fileName:lm,lineNumber:29,columnNumber:8}},l().createElement("input",{name:t.name||n,id:c,checked:i.toString()===r.toString(),className:"pods-form-ui-field-type-pick",type:"radio",value:r,onChange:function(e){xa(a)||e.target.checked&&o(e.target.value)},readOnly:xa(a),__self:cm,__source:{fileName:lm,lineNumber:32,columnNumber:9}}),s)))})))};um.propTypes={htmlAttributes:Ti().shape({id:Ti().string,class:Ti().string,name:Ti().string}),name:Ti().string.isRequired,value:Ti().oneOfType([Ti().string,Ti().number]),setValue:Ti().func.isRequired,options:Ua.isRequired,readOnly:Ti().bool};const dm=um;var fm=n(2810),pm={};pm.styleTagTransform=tr(),pm.setAttributes=Hi(),pm.insert=Fi().bind(null,"head"),pm.domAPI=Gi(),pm.insertStyleElement=Ji();Li()(fm.Z,pm);fm.Z&&fm.Z.locals&&fm.Z.locals;var hm="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/checkbox-select.js",Om=void 0,mm=function(e){var t=e.htmlAttributes,n=e.name,i=e.value,r=e.options,o=void 0===r?[]:r,a=e.setValue,c=e.isMulti,u=e.readOnly,d=void 0!==u&&u,f=o.length;return l().createElement("ul",{className:Ui()("pods-checkbox-pick",1===o.length&&"pods-checkbox-pick--single"),id:n,__self:Om,__source:{fileName:hm,lineNumber:32,columnNumber:3}},o.map((function(e,r,u){var p=e.id,h=e.name,O=t.name||n,m=u.length>1?"".concat(O,"[").concat(r,"]"):O,g=t.id?t.id:"pods-form-ui-".concat(n);return 1<f&&(g+="-".concat(p)),l().createElement("li",{key:p,className:Ui()("pods-checkbox-pick__option",1===o.length&&"pods-checkbox-pick__option--single"),__self:Om,__source:{fileName:hm,lineNumber:62,columnNumber:6}},l().createElement("div",{className:"pods-field pods-boolean",__self:Om,__source:{fileName:hm,lineNumber:71,columnNumber:7}},l().createElement("label",{className:"pods-form-ui-label pods-checkbox-pick__option__label",__self:Om,__source:{fileName:hm,lineNumber:73,columnNumber:8}},l().createElement("input",{name:m,id:g,checked:c?i.some((function(e){return e.toString()===p.toString()})):i.toString()===p.toString(),className:"pods-form-ui-field-type-pick",type:"checkbox",value:p,onChange:function(){var e;if(!d)if(c)e=p,i.some((function(t){return t.toString()===e.toString()}))?a(i.filter((function(t){return t.toString()!==e.toString()}))):a([].concat(s(i),[e]));else{var t=1===o.length&&"1"===p?"0":void 0;a(i===p?t:p)}},readOnly:xa(d),__self:Om,__source:{fileName:hm,lineNumber:76,columnNumber:9}}),h)))})))};mm.propTypes={htmlAttributes:Ti().shape({id:Ti().string,class:Ti().string,name:Ti().string}),name:Ti().string.isRequired,value:Ti().oneOfType([Ti().arrayOf(Ti().oneOfType([Ti().string,Ti().number])),Ti().string,Ti().number]),setValue:Ti().func.isRequired,options:Ua.isRequired,isMulti:Ti().bool.isRequired,readOnly:Ti().bool};const gm=mm;const ym=function(e,t,n,i,r){var o=gi((0,a.useState)([]),2),s=o[0],l=o[1];return(0,a.useEffect)((function(){if("pick"===i&&"sister_id"===n){var o=r;if(r.startsWith("post_type-"))o=r.substring(10);else if(r.startsWith("taxonomy-"))o=r.substring(9);else if(r.startsWith("comment-"))o=r.substring(8);else if(r.startsWith("pod-"))o=r.substring(4);else if(!["user","media","comment"].includes(r))return;var s=function(){var n=fi(hi().mark((function n(){var i,r,s,a,c;return hi().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return l([{id:"",name:(0,Ri.__)("Loading available fields…","pods"),icon:"",edit_link:"",link:"",selected:!1}]),i={pick_object:e},["post_type","taxonomy","pod"].includes(e)&&(i.pick_val=t),r=new URLSearchParams({types:"pick",include_parent:1,pod:o,args:JSON.stringify(i)}),n.prev=4,s="pods/v1/fields?".concat(r.toString()),n.next=8,mi()({path:s});case 8:if((a=n.sent).fields&&a.fields.length){n.next=12;break}return l([{id:"",name:(0,Ri.__)("No Related Fields Found","pods"),icon:"",edit_link:"",link:"",selected:!1}]),n.abrupt("return");case 12:(c=a.fields.map((function(e){var t;return{id:e.id.toString(),name:"".concat(e.label," (").concat(e.name,") [Pod: ").concat(null===(t=e.parent_data)||void 0===t?void 0:t.name,"]"),icon:"",edit_link:"",link:"",selected:!1}}))).unshift({id:"",name:(0,Ri.__)("-- Select Related Field --","pods"),icon:"",edit_link:"",link:"",selected:!1}),l(c),n.next=20;break;case 17:n.prev=17,n.t0=n.catch(4),l({id:"",name:(0,Ri.__)("No Related Fields Found","pods"),icon:"",edit_link:"",link:"",selected:!1});case 20:case"end":return n.stop()}}),n,null,[[4,17]])})));return function(){return n.apply(this,arguments)}}();s()}}),[e,t,n,i,r,l]),{bidirectionFieldItemData:s}};var bm=n(2235),vm={};vm.styleTagTransform=tr(),vm.setAttributes=Hi(),vm.insert=Fi().bind(null,"head"),vm.domAPI=Gi(),vm.insertStyleElement=Ji();Li()(bm.Z,vm);bm.Z&&bm.Z.locals&&bm.Z.locals;var wm="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/pick/index.js",$m=void 0;function _m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function xm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_m(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sm=function(e,t){if(e)return t?Array.isArray(e)?e:e.split(","):e},Qm=function(e){var t=e.fieldConfig,n=t.ajax_data,i=t.htmlAttr,r=void 0===i?{}:i,o=t.read_only,c=t.fieldItemData,u=t.data,d=void 0===u?[]:u,f=t.label,p=t.name,h=t.required,O=void 0!==h&&h,m=t.default_icon,g=t.iframe_src,y=t.iframe_title_add,b=t.iframe_title_edit,v=t.pick_allow_add_new,w=t.pick_add_new_label,$=void 0===w?(0,Ri.__)("Add New","pods"):w,_=t.pick_format_multi,x=void 0===_?"autocomplete":_,S=t.pick_format_single,Q=void 0===S?"dropdown":S,k=t.pick_format_type,P=void 0===k?"single":k,T=t.pick_limit,q=t.pick_show_edit_link,R=t.pick_show_icon,E=t.pick_show_view_link,j=t.pick_taggable,N=t.type,C=t.pick_placeholder,A=void 0===C?null:C,z=e.setValue,D=e.value,W=e.setHasBlurred,V=e.podType,M=e.podName,X=e.allPodValues,U=D;"object"===yi(D)&&(U=Object.values(D));var I=A||(0,Ri.sprintf)((0,Ri.__)("Search %s…","pods"),f),L="single"===P,Z="multi"===P,G=gi((0,a.useState)(!1),2),Y=G[0],F=G[1],B=(0,a.useState)(c||function(e){return"object"!==yi(e)||Array.isArray(e)?[]:Object.entries(e).reduce((function(e,t){if("string"==typeof t[1])return[].concat(s(e),[{id:t[0],icon:"",name:t[1],edit_link:"",link:"",selected:!1}]);var n=Object.entries(t[1]).map((function(e){return{name:e[1],id:e[0]}}));return[].concat(s(e),[{id:n,icon:"",name:t[0],edit_link:"",link:"",selected:!1}])}),[])}(d)),H=gi(B,2),K=H[0],J=H[1],ee=ym(V,M,p,N,(null==X?void 0:X.pick_object)||"").bidirectionFieldItemData;(0,a.useEffect)((function(){"sister_id"===p&&ee.length&&J(ee)}),[ee]);var te=function(e){if(""!==e&&null!==e){if(L)return z(e),void W(!0);var t=e.filter((function(e){return!!e})),n=parseInt(T,10)||0;if(isNaN(n)||0===n||-1===n)return W(!0),void z(t);t.length>n||(z(t),W(!0))}else z(void 0)};(0,a.useEffect)((function(){var e=function(e){if(e.origin===window.location.origin&&"PODS_MESSAGE"===e.data.type&&e.data.data){F(!1);var t=e.data.data,n=void 0===t?{}:t;J((function(e){var t;return[].concat(s(e),[xm(xm({},n),{},{id:null===(t=n.id)||void 0===t?void 0:t.toString()})])})),te([].concat(s(U||[]),[null==n?void 0:n.id.toString()]))}};return Y?window.addEventListener("message",e,!1):window.removeEventListener("message",e,!1),function(){window.removeEventListener("message",e,!1)}}),[Y]);return l().createElement(l().Fragment,null,function(){if(!Z&&"radio"===Q)return l().createElement(dm,{htmlAttributes:r,name:p,value:U||"",setValue:te,options:K,readOnly:xa(o),__self:$m,__source:{fileName:wm,lineNumber:300,columnNumber:5}});if(L&&"checkbox"===Q||Z&&"checkbox"===x){var e=U;return Z&&(e=Array.isArray(U)?U:"string"==typeof U?(U||"").split(","):[]),l().createElement(gm,{htmlAttributes:r,name:p,value:e,isMulti:Z,setValue:te,options:K,readOnly:xa(o),__self:$m,__source:{fileName:wm,lineNumber:328,columnNumber:5}})}if(L&&"list"===Q||Z&&"list"===x||L&&"autocomplete"===Q||Z&&"autocomplete"===x){var t=L&&"list"===Q||Z&&"list"===x,i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return[];if(!n){var i=t.find((function(t){var n;return(null==t||null===(n=t.id)||void 0===n?void 0:n.toString())===e.toString()}));return[{label:null==i?void 0:i.name,value:null==i?void 0:i.id.toString()}]}return(Array.isArray(e)?e:e.split(",")).map((function(e){var n=t.find((function(t){var n;return(null==t||null===(n=t.id)||void 0===n?void 0:n.toString())===e.toString()}));return n?{label:null==n?void 0:n.name,value:null==n?void 0:n.id.toString()}:null})).filter((function(e){return null!==e}))}(U,K,Z),a=K.map((function(e){return{label:e.name,value:e.id}}));return l().createElement(l().Fragment,null,l().createElement(im,{isTaggable:j,ajaxData:n,shouldRenderValue:!t,formattedOptions:a,value:Z?i:i[0],setValue:te,addNewItem:function(e){J((function(t){var n=t.map((function(e){return e.id})),i=s(t);return(Z?e:[e]).forEach((function(e){null!=e&&e.value&&(n.includes(null==e?void 0:e.value)||i.push({id:e.value,name:e.label}))})),i})),te(null===e?"":Z?e.map((function(e){return e.value})):e.value)},placeholder:I,isMulti:Z,isClearable:!j&&!xa(O),isReadOnly:xa(o),__self:$m,__source:{fileName:wm,lineNumber:399,columnNumber:6}}),t?l().createElement(Ud,{fieldName:p,value:i,setValue:te,fieldItemData:K,setFieldItemData:J,isMulti:Z,limit:parseInt(T,10)||0,defaultIcon:m,showIcon:xa(R),showViewLink:xa(E),showEditLink:xa(q),editIframeTitle:b,readOnly:xa(o),__self:$m,__source:{fileName:wm,lineNumber:414,columnNumber:7}}):null,i.map((function(e,t){return l().createElement("input",{name:"".concat(p,"[").concat(t,"]"),key:"".concat(p,"-").concat(e.value),type:"hidden",value:e.value,__self:$m,__source:{fileName:wm,lineNumber:432,columnNumber:7}})})))}return l().createElement(am,{htmlAttributes:r,name:p,value:Sm(U,Z),setValue:function(e){return te(e)},options:K,isMulti:Z,readOnly:xa(o),__self:$m,__source:{fileName:wm,lineNumber:444,columnNumber:4}})}(),v&&g&&!xa(o)?l().createElement(Us.Button,{className:"pods-related-add-new pods-modal",onClick:function(){return F(!0)},isSecondary:!0,__self:$m,__source:{fileName:wm,lineNumber:461,columnNumber:5}},$):null,Y?l().createElement(Rd,{title:y,iframeSrc:g,onClose:function(){return F(!1)},__self:$m,__source:{fileName:wm,lineNumber:471,columnNumber:5}}):null)};Qm.propTypes=xm(xm({},Fa),{},{podType:Ti().string,podName:Ti().string,allPodValues:Ti().object,value:Ti().oneOfType([Ti().arrayOf(Ti().oneOfType([Ti().string,Ti().number])),Ti().string,Ti().number])});const km=Qm;function Pm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Tm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pm(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qm=function(e){var t,n=e.fieldConfig,i=void 0===n?{}:n,r=e.setValue,o=e.value,s=i.boolean_format_type,a=void 0===s?"checkbox":s,c=i.boolean_no_label,u=void 0===c?"No":c,d=i.boolean_yes_label,f=o;"Yes"===o?f="1":"No"===o&&(f="0"),f=(t=f)&&"0"!==t?"1":"0";var p=[{id:"1",icon:"",name:void 0===d?"Yes":d,edit_link:"",link:"",selected:!1}];return"checkbox"!==a&&p.push({id:"0",icon:"",name:u,edit_link:"",link:"",selected:!1}),l().createElement(km,za({},e,{fieldConfig:Tm(Tm({},i),{},{pick_format_type:"single",pick_format_single:a,fieldItemData:p}),value:f,setValue:r,__self:undefined,__source:{fileName:"/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/boolean/index.js",lineNumber:59,columnNumber:3}}))};qm.propTypes=Tm(Tm({},Fa),{},{value:Va});const Rm=qm;var Em="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/boolean-group/boolean-group-subfield.js",jm=void 0,Nm=function(e){var t=e.subfieldConfig,n=e.checked,i=e.toggleChange,r=e.allPodValues,o=e.allPodFieldsMap,s=t.htmlAttr,a=void 0===s?{}:s,c=t.help,u=t.label,d=t.name,f=Na(t,r,o),p=a.id?a.id:d,h=c&&"help"!==c,O=Array.isArray(c)?c[0]:c,m=Array.isArray(c)&&c[1]?c[1]:void 0;return f?l().createElement("li",{className:"pods-boolean-group__option",__self:jm,__source:{fileName:Em,lineNumber:56,columnNumber:3}},l().createElement("div",{className:"pods-field pods-boolean",__self:jm,__source:{fileName:Em,lineNumber:57,columnNumber:4}},l().createElement("label",{className:"pods-form-ui-label pods-checkbox-pick__option__label",__self:jm,__source:{fileName:Em,lineNumber:59,columnNumber:5}},l().createElement("input",{name:d,id:p,className:"pods-form-ui-field-type-pick",type:"checkbox",checked:n,onChange:i,__self:jm,__source:{fileName:Em,lineNumber:62,columnNumber:6}}),u),h&&l().createElement("span",{className:"pods-field-label__tooltip-wrapper",__self:jm,__source:{fileName:Em,lineNumber:74,columnNumber:6}}," ",l().createElement(Hs,{helpText:O,helpLink:m,__self:jm,__source:{fileName:Em,lineNumber:76,columnNumber:7}})))):null};Nm.propTypes={subfieldConfig:Ti().exact((0,d.omit)(Za,["id"])),checked:Ti().bool.isRequired,toggleChange:Ti().func.isRequired,allPodValues:Ti().object.isRequired,allPodFieldsMap:Ti().object},Nm.defaultProps={help:void 0};const Cm=Nm;var Am=n(9160),zm={};zm.styleTagTransform=tr(),zm.setAttributes=Hi(),zm.insert=Fi().bind(null,"head"),zm.domAPI=Gi(),zm.insertStyleElement=Ji();Li()(Am.Z,zm);Am.Z&&Am.Z.locals&&Am.Z.locals;var Dm="/Users/sc0ttkclark/DropboxMain/Local Sites/test.pods.local/app/public/wp-content/plugins/pods/ui/js/dfv/src/fields/boolean-group/index.js",Wm=void 0;function Vm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Mm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vm(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xm=function(e){var t=e.fieldConfig,n=void 0===t?{}:t,i=e.setOptionValue,r=e.values,o=e.allPodValues,s=e.allPodFieldsMap,a=e.setHasBlurred,c=n.boolean_group,u=void 0===c?[]:c,d=function(e){return function(){i(e,!xa(r[e])),a()}};return l().createElement("ul",{className:"pods-boolean-group",__self:Wm,__source:{fileName:Dm,lineNumber:39,columnNumber:3}},u.map((function(e){var t=e.name;return l().createElement(Cm,{subfieldConfig:Mm({},e),checked:xa(r[t]),toggleChange:d(t),allPodValues:o,allPodFieldsMap:s,key:e.name,__self:Wm,__source:{fileName:Dm,lineNumber:44,columnNumber:6}})})))};Xm.propTypes={fieldConfig:Ga,setOptionValue:Ti().func.isRequired,setHasBlurred:Ti().func.isRequired,values:Ti().object,allPodValues:Ti().object.isRequired,allPodFieldsMap:Ti().object};const Um=Xm;class Im{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),Zm.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),Zm.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new Fm(this),r=new Fm(e);for(let e=t,o=t;;){if(i.next(e),r.next(e),e=0,i.lineBreak!=r.lineBreak||i.done!=r.done||i.value!=r.value)return!1;if(o+=i.value.length,i.done||o>=n)return!0}}iter(e=1){return new Fm(this,e)}iterRange(e,t=this.length){return new Bm(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Hm(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new Lm(e):Zm.from(Lm.split(e,[])):Im.empty}}class Lm extends Im{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let r=0;;r++){let o=this.text[r],s=i+o.length;if((t?n:s)>=e)return new Km(i,s,n,o);i=s+1,n++}}decompose(e,t,n,i){let r=e<=0&&t>=this.length?this:new Lm(Ym(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&i){let e=n.pop(),t=Gm(r.text,e.text.slice(),0,r.length);if(t.length<=32)n.push(new Lm(t,e.length+r.length));else{let e=t.length>>1;n.push(new Lm(t.slice(0,e)),new Lm(t.slice(e)))}}else n.push(r)}replace(e,t,n){if(!(n instanceof Lm))return super.replace(e,t,n);let i=Gm(this.text,Gm(n.text,Ym(this.text,0,e)),t),r=this.length+n.length-(t-e);return i.length<=32?new Lm(i,r):Zm.from(Lm.split(i,[]),r)}sliceString(e,t=this.length,n="\n"){let i="";for(let r=0,o=0;r<=t&&o<this.text.length;o++){let s=this.text[o],a=r+s.length;r>e&&o&&(i+=n),e<a&&t>r&&(i+=s.slice(Math.max(0,e-r),t-r)),r=a+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let r of e)n.push(r),i+=r.length+1,32==n.length&&(t.push(new Lm(n,i)),n=[],i=-1);return i>-1&&t.push(new Lm(n,i)),t}}class Zm extends Im{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,i){for(let r=0;;r++){let o=this.children[r],s=i+o.length,a=n+o.lines-1;if((t?a:s)>=e)return o.lineInner(e,t,n,i);i=s+1,n=a+1}}decompose(e,t,n,i){for(let r=0,o=0;o<=t&&r<this.children.length;r++){let s=this.children[r],a=o+s.length;if(e<=a&&t>=o){let r=i&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!r?n.push(s):s.decompose(e-o,t-o,n,r)}o=a+1}}replace(e,t,n){if(n.lines<this.lines)for(let i=0,r=0;i<this.children.length;i++){let o=this.children[i],s=r+o.length;if(e>=r&&t<=s){let a=o.replace(e-r,t-r,n),l=this.lines-o.lines+a.lines;if(a.lines<l>>4&&a.lines>l>>6){let r=this.children.slice();return r[i]=a,new Zm(r,this.length-(t-e)+n.length)}return super.replace(r,s,a)}r=s+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let i="";for(let r=0,o=0;r<this.children.length&&o<=t;r++){let s=this.children[r],a=o+s.length;o>e&&r&&(i+=n),e<a&&t>o&&(i+=s.sliceString(e-o,t-o,n)),o=a+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Zm))return 0;let n=0,[i,r,o,s]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,r+=t){if(i==o||r==s)return n;let a=this.children[i],l=e.children[r];if(a!=l)return n+a.scanIdentical(l,t);n+=a.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new Lm(n,t)}let i=Math.max(32,n>>5),r=i<<1,o=i>>1,s=[],a=0,l=-1,c=[];function u(e){let t;if(e.lines>r&&e instanceof Zm)for(let t of e.children)u(t);else e.lines>o&&(a>o||!a)?(d(),s.push(e)):e instanceof Lm&&a&&(t=c[c.length-1])instanceof Lm&&e.lines+t.lines<=32?(a+=e.lines,l+=e.length+1,c[c.length-1]=new Lm(t.text.concat(e.text),t.length+1+e.length)):(a+e.lines>i&&d(),a+=e.lines,l+=e.length+1,c.push(e))}function d(){0!=a&&(s.push(1==c.length?c[0]:Zm.from(c,l)),l=-1,a=c.length=0)}for(let t of e)u(t);return d(),1==s.length?s[0]:new Zm(s,t)}}function Gm(e,t,n=0,i=1e9){for(let r=0,o=0,s=!0;o<e.length&&r<=i;o++){let a=e[o],l=r+a.length;l>=n&&(l>i&&(a=a.slice(0,i-r)),r<n&&(a=a.slice(n-r)),s?(t[t.length-1]+=a,s=!1):t.push(a)),r=l+1}return t}function Ym(e,t,n){return Gm(e,[""],t,n)}Im.empty=new Lm([""],0);class Fm{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof Lm?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],r=this.offsets[n],o=r>>1,s=i instanceof Lm?i.text.length:i.children.length;if(o==(t>0?s:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(i instanceof Lm){let r=i.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,r.length>Math.max(0,e))return this.value=0==e?r:t>0?r.slice(e):r.slice(0,r.length-e),this;e-=r.length}else{let r=i.children[o+(t<0?-1:0)];e>r.length?(e-=r.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(r),this.offsets.push(t>0?1:(r instanceof Lm?r.text.length:r.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Bm{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new Fm(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class Hm{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(Im.prototype[Symbol.iterator]=function(){return this.iter()},Fm.prototype[Symbol.iterator]=Bm.prototype[Symbol.iterator]=Hm.prototype[Symbol.iterator]=function(){return this});class Km{constructor(e,t,n,i){this.from=e,this.to=t,this.number=n,this.text=i}get length(){return this.to-this.from}}let Jm="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let e=1;e<Jm.length;e++)Jm[e]+=Jm[e-1];function eg(e){for(let t=1;t<Jm.length;t+=2)if(Jm[t]>e)return Jm[t-1]<=e;return!1}function tg(e){return e>=127462&&e<=127487}function ng(e,t,n=!0,i=!0){return(n?ig:rg)(e,t,i)}function ig(e,t,n){if(t==e.length)return t;t&&og(e.charCodeAt(t))&&sg(e.charCodeAt(t-1))&&t--;let i=ag(e,t);for(t+=cg(i);t<e.length;){let r=ag(e,t);if(8205==i||8205==r||n&&eg(r))t+=cg(r),i=r;else{if(!tg(r))break;{let n=0,i=t-2;for(;i>=0&&tg(ag(e,i));)n++,i-=2;if(n%2==0)break;t+=2}}}return t}function rg(e,t,n){for(;t>0;){let i=ig(e,t-2,n);if(i<t)return i;t--}return 0}function og(e){return e>=56320&&e<57344}function sg(e){return e>=55296&&e<56320}function ag(e,t){let n=e.charCodeAt(t);if(!sg(n)||t+1==e.length)return n;let i=e.charCodeAt(t+1);return og(i)?i-56320+(n-55296<<10)+65536:n}function lg(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function cg(e){return e<65536?1:2}const ug=/\r\n?|\n/;var dg=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(dg||(dg={}));class fg{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,i=0;t<this.sections.length;){let r=this.sections[t++],o=this.sections[t++];o<0?(e(n,i,r),i+=r):i+=o,n+=r}}iterChangedRanges(e,t=!1){mg(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],i=this.sections[t++];i<0?e.push(n,i):e.push(i,n)}return new fg(e)}composeDesc(e){return this.empty?e:e.empty?this:yg(this,e)}mapDesc(e,t=!1){return e.empty?this:gg(this,e,t)}mapPos(e,t=-1,n=dg.Simple){let i=0,r=0;for(let o=0;o<this.sections.length;){let s=this.sections[o++],a=this.sections[o++],l=i+s;if(a<0){if(l>e)return r+(e-i);r+=s}else{if(n!=dg.Simple&&l>=e&&(n==dg.TrackDel&&i<e&&l>e||n==dg.TrackBefore&&i<e||n==dg.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!s)return e==i||t<0?r:r+a;r+=a}i=l}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return r}touchesRange(e,t=e){for(let n=0,i=0;n<this.sections.length&&i<=t;){let r=i+this.sections[n++];if(this.sections[n++]>=0&&i<=t&&r>=e)return!(i<e&&r>t)||"cover";i=r}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],i=this.sections[t++];e+=(e?" ":"")+n+(i>=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new fg(e)}static create(e){return new fg(e)}}class pg extends fg{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return mg(this,((t,n,i,r,o)=>e=e.replace(i,i+(n-t),o)),!1),e}mapDesc(e,t=!1){return gg(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,r=0;i<t.length;i+=2){let o=t[i],s=t[i+1];if(s>=0){t[i]=s,t[i+1]=o;let a=i>>1;for(;n.length<a;)n.push(Im.empty);n.push(o?e.slice(r,r+o):Im.empty)}r+=o}return new pg(t,n)}compose(e){return this.empty?e:e.empty?this:yg(this,e,!0)}map(e,t=!1){return e.empty?this:gg(this,e,t,!0)}iterChanges(e,t=!1){mg(this,e,t)}get desc(){return fg.create(this.sections)}filter(e){let t=[],n=[],i=[],r=new bg(this);e:for(let o=0,s=0;;){let a=o==e.length?1e9:e[o++];for(;s<a||s==a&&0==r.len;){if(r.done)break e;let e=Math.min(r.len,a-s);hg(i,e,-1);let o=-1==r.ins?-1:0==r.off?r.ins:0;hg(t,e,o),o>0&&Og(n,t,r.text),r.forward(e),s+=e}let l=e[o++];for(;s<l;){if(r.done)break e;let e=Math.min(r.len,l-s);hg(t,e,-1),hg(i,e,-1==r.ins?-1:0==r.off?r.ins:0),r.forward(e),s+=e}}return{changes:new pg(t,n),filtered:fg.create(i)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],i=this.sections[t+1];i<0?e.push(n):0==i?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let i=[],r=[],o=0,s=null;function a(e=!1){if(!e&&!i.length)return;o<t&&hg(i,t-o,-1);let n=new pg(i,r);s=s?s.compose(n.map(s)):n,i=[],r=[],o=0}return function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof pg){if(l.length!=t)throw new RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);a(),s=s?s.compose(l.map(s)):l}else{let{from:e,to:s=e,insert:c}=l;if(e>s||e<0||s>t)throw new RangeError(`Invalid change range ${e} to ${s} (in doc of length ${t})`);let u=c?"string"==typeof c?Im.of(c.split(n||ug)):c:Im.empty,d=u.length;if(e==s&&0==d)return;e<o&&a(),e>o&&hg(i,e-o,-1),hg(i,s-e,d),Og(r,i,u),o=s}}(e),a(!s),s}static empty(e){return new pg(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;i<e.length;i++){let r=e[i];if("number"==typeof r)t.push(r,-1);else{if(!Array.isArray(r)||"number"!=typeof r[0]||r.some(((e,t)=>t&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==r.length)t.push(r[0],0);else{for(;n.length<i;)n.push(Im.empty);n[i]=Im.of(r.slice(1)),t.push(r[0],n[i].length)}}}return new pg(t,n)}static createSet(e,t){return new pg(e,t)}}function hg(e,t,n,i=!1){if(0==t&&n<=0)return;let r=e.length-2;r>=0&&n<=0&&n==e[r+1]?e[r]+=t:0==t&&0==e[r]?e[r+1]+=n:i?(e[r]+=t,e[r+1]+=n):e.push(t,n)}function Og(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<i;)e.push(Im.empty);e.push(n)}}function mg(e,t,n){let i=e.inserted;for(let r=0,o=0,s=0;s<e.sections.length;){let a=e.sections[s++],l=e.sections[s++];if(l<0)r+=a,o+=a;else{let c=r,u=o,d=Im.empty;for(;c+=a,u+=l,l&&i&&(d=d.append(i[s-2>>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)a=e.sections[s++],l=e.sections[s++];t(r,c,o,u,d),r=c,o=u}}}function gg(e,t,n,i=!1){let r=[],o=i?[]:null,s=new bg(e),a=new bg(t);for(let e=-1;;)if(-1==s.ins&&-1==a.ins){let e=Math.min(s.len,a.len);hg(r,e,-1),s.forward(e),a.forward(e)}else if(a.ins>=0&&(s.ins<0||e==s.i||0==s.off&&(a.len<s.len||a.len==s.len&&!n))){let t=a.len;for(hg(r,a.ins,-1);t;){let n=Math.min(s.len,t);s.ins>=0&&e<s.i&&s.len<=n&&(hg(r,0,s.ins),o&&Og(o,r,s.text),e=s.i),s.forward(n),t-=n}a.next()}else{if(!(s.ins>=0)){if(s.done&&a.done)return o?pg.createSet(r,o):fg.create(r);throw new Error("Mismatched change set lengths")}{let t=0,n=s.len;for(;n;)if(-1==a.ins){let e=Math.min(n,a.len);t+=e,n-=e,a.forward(e)}else{if(!(0==a.ins&&a.len<n))break;n-=a.len,a.next()}hg(r,t,e<s.i?s.ins:0),o&&e<s.i&&Og(o,r,s.text),e=s.i,s.forward(s.len-n)}}}function yg(e,t,n=!1){let i=[],r=n?[]:null,o=new bg(e),s=new bg(t);for(let e=!1;;){if(o.done&&s.done)return r?pg.createSet(i,r):fg.create(i);if(0==o.ins)hg(i,o.len,0,e),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");{let t=Math.min(o.len2,s.len),n=i.length;if(-1==o.ins){let n=-1==s.ins?-1:s.off?0:s.ins;hg(i,t,n,e),r&&n&&Og(r,i,s.text)}else-1==s.ins?(hg(i,o.off?0:o.len,t,e),r&&Og(r,i,o.textBit(t))):(hg(i,o.off?0:o.len,s.off?0:s.ins,e),r&&!s.off&&Og(r,i,s.text));e=(o.ins>t||s.ins>=0&&s.len>t)&&(e||i.length>n),o.forward2(t),s.forward(t)}}else hg(i,0,s.ins,e),r&&Og(r,i,s.text),s.next()}}class bg{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?Im.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?Im.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class vg{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new vg(n,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return wg.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return wg.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return wg.range(e.anchor,e.head)}static create(e,t,n){return new vg(e,t,n)}}class wg{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:wg.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;t<this.ranges.length;t++)if(!this.ranges[t].eq(e.ranges[t]))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new wg([this.main],0)}addRange(e,t=!0){return wg.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,wg.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new wg(e.ranges.map((e=>vg.fromJSON(e))),e.main)}static single(e,t=e){return new wg([wg.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;i<e.length;i++){let r=e[i];if(r.empty?r.from<=n:r.from<n)return wg.normalized(e.slice(),t);n=r.to}return new wg(e,t)}static cursor(e,t=0,n,i){return vg.create(e,e,(0==t?0:t<0?4:8)|(null==n?3:Math.min(2,n))|(null!=i?i:33554431)<<5)}static range(e,t,n){let i=(null!=n?n:33554431)<<5;return t<e?vg.create(t,e,24|i):vg.create(e,t,i|(t>e?4:0))}static normalized(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let n=1;n<e.length;n++){let i=e[n],r=e[n-1];if(i.empty?i.from<=r.to:i.from<r.to){let o=r.from,s=Math.max(i.to,r.to);n<=t&&t--,e.splice(--n,2,i.anchor>i.head?wg.range(s,o):wg.range(o,s))}}return new wg(e,t)}}function $g(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let _g=0;class xg{constructor(e,t,n,i,r){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=_g++,this.default=e([]),this.extensions="function"==typeof r?r(this):r}static define(e={}){return new xg(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:Sg),!!e.static,e.enables)}of(e){return new Qg([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Qg(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Qg(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function Sg(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class Qg{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=_g++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,r=this.id,o=e[r]>>1,s=2==this.type,a=!1,l=!1,c=[];for(let n of this.dependencies)"doc"==n?a=!0:"selection"==n?l=!0:0==(1&(null!==(t=e[n.id])&&void 0!==t?t:1))&&c.push(e[n.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||Pg(e,c)){let t=n(e);if(s?!kg(t,e.values[o],i):!i(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let a=n(e),l=t.config.address[r];if(null!=l){let n=Ug(t,l);if(this.dependencies.every((n=>n instanceof xg?t.facet(n)===e.facet(n):!(n instanceof Rg)||t.field(n,!1)==e.field(n,!1)))||(s?kg(a,n,i):i(a,n)))return e.values[o]=n,0}return e.values[o]=a,1}}}}function kg(e,t,n){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1;return!0}function Pg(e,t){let n=!1;for(let i of t)1&Xg(e,i)&&(n=!0);return n}function Tg(e,t,n){let i=n.map((t=>e[t.id])),r=n.map((e=>e.type)),o=i.filter((e=>!(1&e))),s=e[t.id]>>1;function a(e){let n=[];for(let t=0;t<i.length;t++){let o=Ug(e,i[t]);if(2==r[t])for(let e of o)n.push(e);else n.push(o)}return t.combine(n)}return{create(e){for(let t of i)Xg(e,t);return e.values[s]=a(e),1},update(e,n){if(!Pg(e,o))return 0;let i=a(e);return t.compare(i,e.values[s])?0:(e.values[s]=i,1)},reconfigure(e,r){let o=Pg(e,i),l=r.config.facets[t.id],c=r.facet(t);if(l&&!o&&Sg(n,l))return e.values[s]=c,0;let u=a(e);return t.compare(u,c)?(e.values[s]=c,0):(e.values[s]=u,1)}}}const qg=xg.define({static:!0});class Rg{constructor(e,t,n,i,r){this.id=e,this.createF=t,this.updateF=n,this.compareF=i,this.spec=r,this.provides=void 0}static define(e){let t=new Rg(_g++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(qg).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let i=e.values[t],r=this.updateF(i,n);return this.compareF(i,r)?0:(e.values[t]=r,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,qg.of({field:this,create:e})]}get extension(){return this}}const Eg=4,jg=3,Ng=2,Cg=1;function Ag(e){return t=>new Dg(t,e)}const zg={highest:Ag(0),high:Ag(Cg),default:Ag(Ng),low:Ag(jg),lowest:Ag(Eg)};class Dg{constructor(e,t){this.inner=e,this.prec=t}}class Wg{of(e){return new Vg(this,e)}reconfigure(e){return Wg.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Vg{constructor(e,t){this.compartment=e,this.inner=t}}class Mg{constructor(e,t,n,i,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let i=[],r=Object.create(null),o=new Map;for(let n of function(e,t,n){let i=[[],[],[],[],[]],r=new Map;function o(e,s){let a=r.get(e);if(null!=a){if(a<=s)return;let t=i[a].indexOf(e);t>-1&&i[a].splice(t,1),e instanceof Vg&&n.delete(e.compartment)}if(r.set(e,s),Array.isArray(e))for(let t of e)o(t,s);else if(e instanceof Vg){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let i=t.get(e.compartment)||e.inner;n.set(e.compartment,i),o(i,s)}else if(e instanceof Dg)o(e.inner,e.prec);else if(e instanceof Rg)i[s].push(e),e.provides&&o(e.provides,s);else if(e instanceof Qg)i[s].push(e),e.facet.extensions&&o(e.facet.extensions,Ng);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(t,s)}}return o(e,Ng),i.reduce(((e,t)=>e.concat(t)))}(e,t,o))n instanceof Rg?i.push(n):(r[n.facet.id]||(r[n.facet.id]=[])).push(n);let s=Object.create(null),a=[],l=[];for(let e of i)s[e.id]=l.length<<1,l.push((t=>e.slot(t)));let c=null==n?void 0:n.config.facets;for(let e in r){let t=r[e],i=t[0].facet,o=c&&c[e]||[];if(t.every((e=>0==e.type)))if(s[i.id]=a.length<<1|1,Sg(o,t))a.push(n.facet(i));else{let e=i.combine(t.map((e=>e.value)));a.push(n&&i.compare(e,n.facet(i))?n.facet(i):e)}else{for(let e of t)0==e.type?(s[e.id]=a.length<<1|1,a.push(e.value)):(s[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));s[i.id]=l.length<<1,l.push((e=>Tg(e,i,t)))}}let u=l.map((e=>e(s)));return new Mg(e,o,u,s,a,r)}}function Xg(e,t){if(1&t)return 2;let n=t>>1,i=e.status[n];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;e.status[n]=4;let r=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|r}function Ug(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const Ig=xg.define(),Lg=xg.define({combine:e=>e.some((e=>e)),static:!0}),Zg=xg.define({combine:e=>e.length?e[0]:void 0,static:!0}),Gg=xg.define(),Yg=xg.define(),Fg=xg.define(),Bg=xg.define({combine:e=>!!e.length&&e[0]});class Hg{constructor(e,t){this.type=e,this.value=t}static define(){return new Kg}}class Kg{of(e){return new Hg(this,e)}}class Jg{constructor(e){this.map=e}of(e){return new ey(this,e)}}class ey{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new ey(this.type,t)}is(e){return this.type==e}static define(e={}){return new Jg(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let e=i.map(t);e&&n.push(e)}return n}}ey.reconfigure=ey.define(),ey.appendConfig=ey.define();class ty{constructor(e,t,n,i,r,o){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,n&&$g(n,t.newLength),r.some((e=>e.type==ty.time))||(this.annotations=r.concat(ty.time.of(Date.now())))}static create(e,t,n,i,r,o){return new ty(e,t,n,i,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ty.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function ny(e,t){let n=[];for(let i=0,r=0;;){let o,s;if(i<e.length&&(r==t.length||t[r]>=e[i]))o=e[i++],s=e[i++];else{if(!(r<t.length))return n;o=t[r++],s=t[r++]}!n.length||n[n.length-1]<o?n.push(o,s):n[n.length-1]<s&&(n[n.length-1]=s)}}function iy(e,t,n){var i;let r,o,s;return n?(r=t.changes,o=pg.empty(t.changes.length),s=e.changes.compose(t.changes)):(r=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),s=e.changes.compose(r)),{changes:s,selection:t.selection?t.selection.map(o):null===(i=e.selection)||void 0===i?void 0:i.map(r),effects:ey.mapEffects(e.effects,r).concat(ey.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function ry(e,t,n){let i=t.selection,r=ay(t.annotations);return t.userEvent&&(r=r.concat(ty.userEvent.of(t.userEvent))),{changes:t.changes instanceof pg?t.changes:pg.of(t.changes||[],n,e.facet(Zg)),selection:i&&(i instanceof wg?i:wg.single(i.anchor,i.head)),effects:ay(t.effects),annotations:r,scrollIntoView:!!t.scrollIntoView}}function oy(e,t,n){let i=ry(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(n=!1);for(let r=1;r<t.length;r++){!1===t[r].filter&&(n=!1);let o=!!t[r].sequential;i=iy(i,ry(e,t[r],o?i.changes.newLength:e.doc.length),o)}let r=ty.create(e,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return function(e){let t=e.startState,n=t.facet(Fg),i=e;for(let r=n.length-1;r>=0;r--){let o=n[r](e);o&&Object.keys(o).length&&(i=iy(e,ry(t,o,e.changes.newLength),!0))}return i==e?e:ty.create(t,e.changes,e.selection,i.effects,i.annotations,i.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let i of t.facet(Gg)){let t=i(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:ny(n,t))}if(!0!==n){let i,r;if(!1===n)r=e.changes.invertedDesc,i=pg.empty(t.doc.length);else{let t=e.changes.filter(n);i=t.changes,r=t.filtered.mapDesc(t.changes).invertedDesc}e=ty.create(t,i,e.selection&&e.selection.map(r),ey.mapEffects(e.effects,r),e.annotations,e.scrollIntoView)}let i=t.facet(Yg);for(let n=i.length-1;n>=0;n--){let r=i[n](e);e=r instanceof ty?r:Array.isArray(r)&&1==r.length&&r[0]instanceof ty?r[0]:oy(t,ay(r),!1)}return e}(r):r)}ty.time=Hg.define(),ty.userEvent=Hg.define(),ty.addToHistory=Hg.define(),ty.remote=Hg.define();const sy=[];function ay(e){return null==e?sy:Array.isArray(e)?e:[e]}var ly=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ly||(ly={}));const cy=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let uy;try{uy=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}function dy(e){return t=>{if(!/\S/.test(t))return ly.Space;if(function(e){if(uy)return uy.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||cy.test(n)))return!0}return!1}(t))return ly.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return ly.Word;return ly.Other}}class fy{constructor(e,t,n,i,r,o){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)Xg(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null!=n)return Xg(this,n),Ug(this,n);if(t)throw new RangeError("Field is not present in this state")}update(...e){return oy(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:i,compartments:r}=n;for(let t of e.effects)t.is(Wg.reconfigure)?(n&&(r=new Map,n.compartments.forEach(((e,t)=>r.set(t,e))),n=null),r.set(t.value.compartment,t.value.extension)):t.is(ey.reconfigure)?(n=null,i=t.value):t.is(ey.appendConfig)&&(n=null,i=ay(i).concat(t.value));if(n)t=e.startState.values.slice();else{n=Mg.resolve(i,r,this),t=new fy(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values}new fy(n,e.newDoc,e.newSelection,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:wg.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),r=[n.range],o=ay(n.effects);for(let n=1;n<t.ranges.length;n++){let s=e(t.ranges[n]),a=this.changes(s.changes),l=a.map(i);for(let e=0;e<n;e++)r[e]=r[e].map(l);let c=i.mapDesc(a,!0);r.push(s.range.map(c)),i=i.compose(l),o=ey.mapEffects(o,l).concat(ey.mapEffects(ay(s.effects),c))}return{changes:i,selection:wg.create(r,t.mainIndex),effects:o}}changes(e=[]){return e instanceof pg?e:pg.of(e,this.doc.length,this.facet(fy.lineSeparator))}toText(e){return Im.of(e.split(this.facet(fy.lineSeparator)||ug))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(Xg(this,t),Ug(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let i=e[n];i instanceof Rg&&null!=this.config.address[i.id]&&(t[n]=i.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(n)for(let t in n)if(Object.prototype.hasOwnProperty.call(e,t)){let r=n[t],o=e[t];i.push(r.init((e=>r.spec.fromJSON(o,e))))}return fy.create({doc:e.doc,selection:wg.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=Mg.resolve(e.extensions||[],new Map),n=e.doc instanceof Im?e.doc:Im.of((e.doc||"").split(t.staticFacet(fy.lineSeparator)||ug)),i=e.selection?e.selection instanceof wg?e.selection:wg.single(e.selection.anchor,e.selection.head):wg.single(0);return $g(i,n.length),t.staticFacet(Lg)||(i=i.asSingle()),new fy(t,n,i,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(fy.tabSize)}get lineBreak(){return this.facet(fy.lineSeparator)||"\n"}get readOnly(){return this.facet(Bg)}phrase(e,...t){for(let t of this.facet(fy.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{if("$"==n)return"$";let i=+(n||1);return!i||i>t.length?e:t[i-1]}))),e}languageDataAt(e,t,n=-1){let i=[];for(let r of this.facet(Ig))for(let o of r(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&i.push(o[e]);return i}charCategorizer(e){return dy(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:i}=this.doc.lineAt(e),r=this.charCategorizer(e),o=e-n,s=e-n;for(;o>0;){let e=ng(t,o,!1);if(r(t.slice(e,o))!=ly.Word)break;o=e}for(;s<i;){let e=ng(t,s);if(r(t.slice(s,e))!=ly.Word)break;s=e}return o==s?null:wg.range(o+n,s+n)}}function py(e,t,n={}){let i={};for(let t of e)for(let e of Object.keys(t)){let r=t[e],o=i[e];if(void 0===o)i[e]=r;else if(o===r||void 0===r);else{if(!Object.hasOwnProperty.call(n,e))throw new Error("Config merge conflict for field "+e);i[e]=n[e](o,r)}}for(let e in t)void 0===i[e]&&(i[e]=t[e]);return i}fy.allowMultipleSelections=Lg,fy.tabSize=xg.define({combine:e=>e.length?e[0]:4}),fy.lineSeparator=Zg,fy.readOnly=Bg,fy.phrases=xg.define({compare(e,t){let n=Object.keys(e),i=Object.keys(t);return n.length==i.length&&n.every((n=>e[n]==t[n]))}}),fy.languageData=Ig,fy.changeFilter=Gg,fy.transactionFilter=Yg,fy.transactionExtender=Fg,Wg.reconfigure=ey.define();class hy{eq(e){return this==e}range(e,t=e){return Oy.create(e,t,this)}}hy.prototype.startSide=hy.prototype.endSide=0,hy.prototype.point=!1,hy.prototype.mapMode=dg.TrackDel;class Oy{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Oy(e,t,n)}}function my(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class gy{constructor(e,t,n,i){this.from=e,this.to=t,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,i=0){let r=n?this.to:this.from;for(let o=i,s=r.length;;){if(o==s)return o;let i=o+s>>1,a=r[i]-e||(n?this.value[i].endSide:this.value[i].startSide)-t;if(i==o)return a>=0?o:s;a>=0?s=i:o=i+1}}between(e,t,n,i){for(let r=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,r);r<o;r++)if(!1===i(this.from[r]+e,this.to[r]+e,this.value[r]))return!1}map(e,t){let n=[],i=[],r=[],o=-1,s=-1;for(let a=0;a<this.value.length;a++){let l,c,u=this.value[a],d=this.from[a]+e,f=this.to[a]+e;if(d==f){let e=t.mapPos(d,u.startSide,u.mapMode);if(null==e)continue;if(l=c=e,u.startSide!=u.endSide&&(c=t.mapPos(d,u.endSide),c<l))continue}else if(l=t.mapPos(d,u.startSide),c=t.mapPos(f,u.endSide),l>c||l==c&&u.startSide>0&&u.endSide<=0)continue;(c-l||u.endSide-u.startSide)<0||(o<0&&(o=l),u.point&&(s=Math.max(s,c-l)),n.push(u),i.push(l-o),r.push(c-o))}return{mapped:n.length?new gy(i,r,n,s):null,pos:o}}}class yy{constructor(e,t,n,i){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=i}static create(e,t,n,i){return new yy(e,t,n,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:i=0,filterTo:r=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(my)),this.isEmpty)return t.length?yy.of(t):this;let s=new wy(this,null,-1).goto(0),a=0,l=[],c=new by;for(;s.value||a<t.length;)if(a<t.length&&(s.from-t[a].from||s.startSide-t[a].value.startSide)>=0){let e=t[a++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==s.rangeIndex&&s.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(s.chunkIndex)<t[a].from)&&(!o||i>this.chunkEnd(s.chunkIndex)||r<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||i>s.to||r<s.from||o(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value)||l.push(Oy.create(s.from,s.to,s.value))),s.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?yy.empty:this.nextLayer.update({add:l,filter:o,filterFrom:i,filterTo:r}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],i=-1;for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],s=this.chunk[r],a=e.touchesRange(o,o+s.length);if(!1===a)i=Math.max(i,s.maxPoint),t.push(s),n.push(e.mapPos(o));else if(!0===a){let{mapped:r,pos:a}=s.map(o,e);r&&(i=Math.max(i,r.maxPoint),t.push(r),n.push(a))}}let r=this.nextLayer.map(e);return 0==t.length?r:new yy(n,t,r||yy.empty,i)}between(e,t,n){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let r=this.chunkPos[i],o=this.chunk[i];if(t>=r&&e<=r+o.length&&!1===o.between(r,e-r,t-r,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return $y.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return $y.from(e).goto(t)}static compare(e,t,n,i,r=-1){let o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),s=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),a=vy(o,s,n),l=new xy(o,a,r),c=new xy(s,a,r);n.iterGaps(((e,t,n)=>Sy(l,e,c,t,n,i))),n.empty&&0==n.length&&Sy(l,0,c,0,0,i)}static eq(e,t,n=0,i){null==i&&(i=1e9);let r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(r.length!=o.length)return!1;if(!r.length)return!0;let s=vy(r,o),a=new xy(r,s,0).goto(n),l=new xy(o,s,0).goto(n);for(;;){if(a.to!=l.to||!Qy(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>i)return!0;a.next(),l.next()}}static spans(e,t,n,i,r=-1){let o=new xy(e,null,r).goto(t),s=t,a=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point?(i.point(s,e,o.point,o.activeForPoint(o.to),a,o.pointRank),a=o.openEnd(e)+(o.to>e?1:0)):e>s&&(i.span(s,e,o.active,a),a=o.openEnd(e)),o.to>n)break;s=o.to,o.next()}return a}static of(e,t=!1){let n=new by;for(let i of e instanceof Oy?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let i=e[n];if(my(t,i)>0)return e.slice().sort(my);t=i}return e}(e):e)n.add(i.from,i.to,i.value);return n.finish()}}yy.empty=new yy([],[],null,-1),yy.empty.nextLayer=yy.empty;class by{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(e){this.chunks.push(new gy(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new by)).add(e,t,n)}addInner(e,t,n){let i=e-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(i<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(yy.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=yy.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function vy(e,t,n){let i=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&i.set(t.chunk[e],t.chunkPos[e]);let r=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let o=i.get(e.chunk[t]);null==o||(n?n.mapPos(o):o)!=e.chunkPos[t]||(null==n?void 0:n.touchesRange(o,o+e.chunk[t].length))||r.add(e.chunk[t])}return r}class wy{constructor(e,t,n,i=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class $y{constructor(e){this.heap=e}static from(e,t=null,n=-1){let i=[];for(let r=0;r<e.length;r++)for(let o=e[r];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&i.push(new wy(o,t,n,r));return 1==i.length?i[0]:new $y(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)_y(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)_y(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),_y(this.heap,0)}}}function _y(e,t){for(let n=e[t];;){let i=1+(t<<1);if(i>=e.length)break;let r=e[i];if(i+1<e.length&&r.compare(e[i+1])>=0&&(r=e[i+1],i++),n.compare(r)<0)break;e[i]=n,e[t]=r,t=i}}class xy{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=$y.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){ky(this.active,e),ky(this.activeTo,e),ky(this.activeRank,e),this.minActive=Ty(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:i,rank:r}=this.cursor;for(;t<this.activeRank.length&&this.activeRank[t]<=r;)t++;Py(this.active,t,n),Py(this.activeTo,t,i),Py(this.activeRank,t,r),e&&Py(e,t,this.cursor.from),this.minActive=Ty(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null,i=0;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&ky(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let r=this.cursor.value;if(r.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=r,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=r.endSide,this.cursor.from<e&&(i=1),this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.from<e&&this.cursor.to>e&&i++,this.cursor.next()}}}if(n){let t=0;for(;t<n.length&&n[t]<e;)t++;this.openStart=t+i}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function Sy(e,t,n,i,r,o){e.goto(t),n.goto(i);let s=i+r,a=i,l=i-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,i=t<0?e.to+l:n.to,r=Math.min(i,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&Qy(e.activeForPoint(e.to+l),n.activeForPoint(n.to))||o.comparePoint(a,r,e.point,n.point):r>a&&!Qy(e.active,n.active)&&o.compareRange(a,r,e.active,n.active),i>s)break;a=i,t<=0&&e.next(),t>=0&&n.next()}}function Qy(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function ky(e,t){for(let n=t,i=e.length-1;n<i;n++)e[n]=e[n+1];e.pop()}function Py(e,t,n){for(let n=e.length-1;n>=t;n--)e[n+1]=e[n];e[t]=n}function Ty(e,t){let n=-1,i=1e9;for(let r=0;r<t.length;r++)(t[r]-i||e[r].endSide-e[n].endSide)<0&&(n=r,i=t[r]);return n}function qy(e,t,n=e.length){let i=0;for(let r=0;r<n;)9==e.charCodeAt(r)?(i+=t-i%t,r++):(i++,r=ng(e,r));return i}function Ry(e,t,n,i){for(let i=0,r=0;;){if(r>=t)return i;if(i==e.length)break;r+=9==e.charCodeAt(i)?n-r%n:1,i=ng(e,i)}return!0===i?-1:e.length}const Ey="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),jy="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Ny="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class Cy{constructor(e,t){this.rules=[];let{finish:n}=t||{};function i(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function r(e,t,o,s){let a=[],l=/^@(\w+)\b/.exec(e[0]),c=l&&"keyframes"==l[1];if(l&&null==t)return o.push(e[0]+";");for(let n in t){let s=t[n];if(/&/.test(n))r(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),s,o);else if(s&&"object"==typeof s){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");r(i(n),s,a,c)}else null!=s&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+s+";")}(a.length||c)&&o.push((!n||l||s?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let t in e)r(i(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=Ny[Ey]||1;return Ny[Ey]=e+1,"ͼ"+e.toString(36)}static mount(e,t){(e[jy]||new zy(e)).mount(Array.isArray(t)?t:[t])}}let Ay=null;class zy{constructor(e){if(!e.head&&e.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(Ay)return e.adoptedStyleSheets=[Ay.sheet].concat(e.adoptedStyleSheets),e[jy]=Ay;this.sheet=new CSSStyleSheet,e.adoptedStyleSheets=[this.sheet].concat(e.adoptedStyleSheets),Ay=this}else{this.styleTag=(e.ownerDocument||e).createElement("style");let t=e.head||e;t.insertBefore(this.styleTag,t.firstChild)}this.modules=[],e[jy]=this}mount(e){let t=this.sheet,n=0,i=0;for(let r=0;r<e.length;r++){let o=e[r],s=this.modules.indexOf(o);if(s<i&&s>-1&&(this.modules.splice(s,1),i--,s=-1),-1==s){if(this.modules.splice(i++,0,o),t)for(let e=0;e<o.rules.length;e++)t.insertRule(o.rules[e],n++)}else{for(;i<s;)n+=this.modules[i++].rules.length;n+=o.rules.length,i++}}if(!t){let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e}}}for(var Dy={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Wy={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Vy="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),My=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),Xy="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Uy=My||Vy&&+Vy[1]<57,Iy=0;Iy<10;Iy++)Dy[48+Iy]=Dy[96+Iy]=String(Iy);for(Iy=1;Iy<=24;Iy++)Dy[Iy+111]="F"+Iy;for(Iy=65;Iy<=90;Iy++)Dy[Iy]=String.fromCharCode(Iy+32),Wy[Iy]=String.fromCharCode(Iy);for(var Ly in Dy)Wy.hasOwnProperty(Ly)||(Wy[Ly]=Dy[Ly]);function Zy(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function Gy(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function Yy(e,t){if(!t.anchorNode)return!1;try{return Gy(e,t.anchorNode)}catch(e){return!1}}function Fy(e){return 3==e.nodeType?ab(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function By(e,t,n,i){return!!n&&(Ky(e,t,n,i,-1)||Ky(e,t,n,i,1))}function Hy(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function Ky(e,t,n,i,r){for(;;){if(e==n&&t==i)return!0;if(t==(r<0?0:Jy(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=Hy(e)+(r<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(r<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=r<0?Jy(e):0}}}function Jy(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}const eb={left:0,right:0,top:0,bottom:0};function tb(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function nb(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}class ib{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){this.set(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)}set(e,t,n,i){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=i}}let rb,ob=null;function sb(e){if(e.setActive)return e.setActive();if(ob)return e.focus(ob);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==ob?{get preventScroll(){return ob={preventScroll:!0},!0}}:void 0),!ob){ob=!1;for(let e=0;e<t.length;){let n=t[e++],i=t[e++],r=t[e++];n.scrollTop!=i&&(n.scrollTop=i),n.scrollLeft!=r&&(n.scrollLeft=r)}}}function ab(e,t,n=t){let i=rb||(rb=document.createRange());return i.setEnd(e,n),i.setStart(e,t),i}function lb(e,t,n){let i={key:t,code:t,keyCode:n,which:n,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,e.dispatchEvent(r);let o=new KeyboardEvent("keyup",i);return o.synthetic=!0,e.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function cb(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}class ub{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new ub(e.parentNode,Hy(e),t)}static after(e,t){return new ub(e.parentNode,Hy(e)+1,t)}}const db=[];class fb{constructor(){this.parent=null,this.dom=null,this.dirty=2}get editorView(){if(!this.parent)throw new Error("Accessing view in orphan content view");return this.parent.editorView}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}coordsAt(e,t){return null}sync(e){if(2&this.dirty){let t,n=this.dom,i=null;for(let r of this.children){if(r.dirty){if(!r.dom&&(t=i?i.nextSibling:n.firstChild)){let e=fb.get(t);e&&(e.parent||e.constructor!=r.constructor)||r.reuseDOM(t)}r.sync(e),r.dirty=0}if(t=i?i.nextSibling:n.firstChild,e&&!e.written&&e.node==n&&t!=r.dom&&(e.written=!0),r.dom.parentNode==n)for(;t&&t!=r.dom;)t=pb(t);else n.insertBefore(r.dom,t);i=r.dom}for(t=i?i.nextSibling:n.firstChild,t&&e&&e.node==n&&(e.written=!0);t;)t=pb(t)}else if(1&this.dirty)for(let t of this.children)t.dirty&&(t.sync(e),t.dirty=0)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let i=0==Jy(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==i&&t.firstChild!=t.lastChild&&(i=e==t.firstChild?-1:1),e=t}n=i<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!fb.get(n);)n=n.nextSibling;if(!n)return this.length;for(let e=0,t=0;;e++){let i=this.children[e];if(i.dom==n)return t;t+=i.length+i.breakAfter}}domBoundsAround(e,t,n=0){let i=-1,r=-1,o=-1,s=-1;for(let a=0,l=n,c=n;a<this.children.length;a++){let n=this.children[a],u=l+n.length;if(l<e&&u>t)return n.domBoundsAround(e,t,l);if(u>=e&&-1==i&&(i=a,r=l),l>t&&n.dom.parentNode==this.dom){o=a,s=c;break}c=u,l=u+n.breakAfter}return{from:r,to:s<0?n+this.length:s,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.dirty|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),1&t.dirty)return;t.dirty|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}setDOM(e){this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=db){this.markDirty();for(let n=e;n<t;n++){let e=this.children[n];e.parent==this&&e.destroy()}this.children.splice(e,t-e,...n);for(let e=0;e<n.length;e++)n[e].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new hb(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}merge(e,t,n,i,r,o){return!1}become(e){return!1}getSide(){return 0}destroy(){this.parent=null}}function pb(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}fb.prototype.breakAfter=0;class hb{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function Ob(e,t,n,i,r,o,s,a,l){let{children:c}=e,u=c.length?c[t]:null,d=o.length?o[o.length-1]:null,f=d?d.breakAfter:s;if(!(t==i&&u&&!s&&!f&&o.length<2&&u.merge(n,r,o.length?d:null,0==n,a,l))){if(i<c.length){let e=c[i];e&&r<e.length?(t==i&&(e=e.split(r),r=0),!f&&d&&e.merge(0,r,d,!0,0,l)?o[o.length-1]=e:(r&&e.merge(0,r,null,!1,0,l),o.push(e))):(null==e?void 0:e.breakAfter)&&(d?d.breakAfter=1:s=1),i++}for(u&&(u.breakAfter=s,n>0&&(!s&&o.length&&u.merge(n,u.length,o[0],!1,a,0)?u.breakAfter=o.shift().breakAfter:(n<u.length||u.children.length&&0==u.children[u.children.length-1].length)&&u.merge(n,u.length,null,!1,a,0),t++));t<i&&o.length;)if(c[i-1].become(o[o.length-1]))i--,o.pop(),l=o.length?0:a;else{if(!c[t].become(o[0]))break;t++,o.shift(),a=o.length?0:l}!o.length&&t&&i<c.length&&!c[t-1].breakAfter&&c[i].merge(0,0,c[t-1],!1,a,l)&&t--,(t<i||o.length)&&e.replaceChildren(t,i,o)}}function mb(e,t,n,i,r,o){let s=e.childCursor(),{i:a,off:l}=s.findPos(n,1),{i:c,off:u}=s.findPos(t,-1),d=t-n;for(let e of i)d+=e.length;e.length+=d,Ob(e,c,u,a,l,i,0,r,o)}let gb="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},yb="undefined"!=typeof document?document:{documentElement:{style:{}}};const bb=/Edge\/(\d+)/.exec(gb.userAgent),vb=/MSIE \d/.test(gb.userAgent),wb=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(gb.userAgent),$b=!!(vb||wb||bb),_b=!$b&&/gecko\/(\d+)/i.test(gb.userAgent),xb=!$b&&/Chrome\/(\d+)/.exec(gb.userAgent),Sb="webkitFontSmoothing"in yb.documentElement.style,Qb=!$b&&/Apple Computer/.test(gb.vendor),kb=Qb&&(/Mobile\/\w+/.test(gb.userAgent)||gb.maxTouchPoints>2);var Pb={mac:kb||/Mac/.test(gb.platform),windows:/Win/.test(gb.platform),linux:/Linux|X11/.test(gb.platform),ie:$b,ie_version:vb?yb.documentMode||6:wb?+wb[1]:bb?+bb[1]:0,gecko:_b,gecko_version:_b?+(/Firefox\/(\d+)/.exec(gb.userAgent)||[0,0])[1]:0,chrome:!!xb,chrome_version:xb?+xb[1]:0,ios:kb,android:/Android\b/.test(gb.userAgent),webkit:Sb,safari:Qb,webkit_version:Sb?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=yb.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class Tb extends fb{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return(!n||n instanceof Tb&&!(this.length-(t-e)+n.length>256))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new Tb(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new ub(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return Rb(this.dom,e,t)}}class qb extends fb{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let e of t)e.setParent(this)}setAttrs(e){if(cb(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.dirty|=6)}sync(e){this.dom?4&this.dirty&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e)}merge(e,t,n,i,r,o){return(!n||!(!(n instanceof qb&&n.mark.eq(this.mark))||e&&r<=0||t<this.length&&o<=0))&&(mb(this,e,t,n?n.children:[],r-1,o-1),this.markDirty(),!0)}split(e){let t=[],n=0,i=-1,r=0;for(let o of this.children){let s=n+o.length;s>e&&t.push(n<e?o.split(e-n):o),i<0&&n>=e&&(i=r),n=s,r++}let o=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new qb(this.mark,t,o)}domAtPos(e){return zb(this.dom,this.children,e)}coordsAt(e,t){return Wb(this,e,t)}}function Rb(e,t,n){let i=e.nodeValue.length;t>i&&(t=i);let r=t,o=t,s=0;0==t&&n<0||t==i&&n>=0?Pb.chrome||Pb.gecko||(t?(r--,s=1):o<i&&(o++,s=-1)):n<0?r--:o<i&&o++;let a=ab(e,r,o).getClientRects();if(!a.length)return eb;let l=a[(s?s<0:n>=0)?0:a.length-1];return Pb.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(a,(e=>e.width))||l),s?tb(l,s<0):l||null}class Eb extends fb{constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}static create(e,t,n){return new(e.customView||Eb)(e,t,n)}split(e){let t=Eb.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,i,r,o){return!(n&&(!(n instanceof Eb&&this.widget.compare(n.widget))||e>0&&r<=0||t<this.length&&o<=0))&&(this.length=e+(n?n.length:0)+(this.length-t),!0)}become(e){return e.length==this.length&&e instanceof Eb&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.eq(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return Im.empty;let e=this;for(;e.parent;)e=e.parent;let t=e.editorView,n=t&&t.state.doc,i=this.posAtStart;return n?n.slice(i,i+this.length):Im.empty}domAtPos(e){return 0==e?ub.before(this.dom):ub.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.dom.getClientRects(),i=null;if(!n.length)return eb;for(let t=e>0?n.length-1:0;i=n[t],!(e>0?0==t:t==n.length-1||i.top<i.bottom);t+=e>0?-1:1);return 0==e&&t>0||e==this.length&&t<=0?i:tb(i,0==e)}get isEditable(){return!1}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class jb extends Eb{domAtPos(e){let{topView:t,text:n}=this.widget;return t?Nb(e,0,t,n,((e,t)=>e.domAtPos(t)),(e=>new ub(n,Math.min(e,n.nodeValue.length)))):new ub(n,Math.min(e,n.nodeValue.length))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(e,t){let{topView:n,text:i}=this.widget;return n?Cb(e,t,n,i):Math.min(t,this.length)}ignoreMutation(){return!1}get overrideDOMText(){return null}coordsAt(e,t){let{topView:n,text:i}=this.widget;return n?Nb(e,t,n,i,((e,t,n)=>e.coordsAt(t,n)),((e,t)=>Rb(i,e,t))):Rb(i,e,t)}destroy(){var e;super.destroy(),null===(e=this.widget.topView)||void 0===e||e.destroy()}get isEditable(){return!0}}function Nb(e,t,n,i,r,o){if(n instanceof qb){for(let s of n.children){let n=Gy(s.dom,i),a=n?i.nodeValue.length:s.length;if(e<a||e==a&&s.getSide()<=0)return n?Nb(e,t,s,i,r,o):r(s,e,t);e-=a}return r(n,n.length,-1)}return n.dom==i?o(e,t):r(n,e,t)}function Cb(e,t,n,i){if(n instanceof qb)for(let r of n.children){let n=0,o=Gy(r.dom,i);if(Gy(r.dom,e))return n+(o?Cb(e,t,r,i):r.localPosFromDOM(e,t));n+=o?i.nodeValue.length:r.length}else if(n.dom==i)return Math.min(t,i.nodeValue.length);return n.localPosFromDOM(e,t)}class Ab extends fb{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof Ab&&e.side==this.side}split(){return new Ab(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return ub.before(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){let t=this.dom.getBoundingClientRect(),n=function(e,t){let n=e.parent,i=n?n.children.indexOf(e):-1;for(;n&&i>=0;)if(t<0?i>0:i<n.children.length){let e=n.children[i+t];if(e instanceof Tb){let n=e.coordsAt(t<0?e.length:0,t);if(n)return n}i+=t}else{if(!(n instanceof qb&&n.parent)){let e=n.dom.lastChild;if(e&&"BR"==e.nodeName)return e.getClientRects()[0];break}i=n.parent.children.indexOf(n)+(t<0?0:1),n=n.parent}return}(this,this.side>0?-1:1);return n&&n.top<t.bottom&&n.bottom>t.top?{left:t.left,right:t.right,top:n.top,bottom:n.bottom}:t}get overrideDOMText(){return Im.empty}}function zb(e,t,n){let i=0;for(let r=0;i<t.length;i++){let o=t[i],s=r+o.length;if(!(s==r&&o.getSide()<=0)){if(n>r&&n<s&&o.dom.parentNode==e)return o.domAtPos(n-r);if(n<=r)break;r=s}}for(;i>0;i--){let n=t[i-1].dom;if(n.parentNode==e)return ub.after(n)}return new ub(e,0)}function Db(e,t,n){let i,{children:r}=e;n>0&&t instanceof qb&&r.length&&(i=r[r.length-1])instanceof qb&&i.mark.eq(t.mark)?Db(i,t.children[0],n-1):(r.push(t),t.setParent(e)),e.length+=t.length}function Wb(e,t,n){for(let i=0,r=0;r<e.children.length;r++){let o,s=e.children[r],a=i+s.length;if((n<=0||a==e.length||s.getSide()>0?a>=t:a>t)&&(t<a||r+1==e.children.length||(o=e.children[r+1]).length||o.getSide()>0)){let e=0;if(a==i){if(s.getSide()<=0)continue;e=n=-s.getSide()}let r=s.coordsAt(Math.max(0,t-i),n);return e&&r?tb(r,n<0):r}i=a}let i=e.dom.lastChild;if(!i)return e.dom.getBoundingClientRect();let r=Fy(i);return r[r.length-1]||null}function Vb(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}function Mb(e,t){if(e==t)return!0;if(!e||!t)return!1;let n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(let r of n)if(-1==i.indexOf(r)||e[r]!==t[r])return!1;return!0}function Xb(e,t,n){let i=null;if(t)for(let r in t)n&&r in n||e.removeAttribute(i=r);if(n)for(let r in n)t&&t[r]==n[r]||e.setAttribute(i=r,n[r]);return!!i}Tb.prototype.children=Eb.prototype.children=Ab.prototype.children=db;class Ub{eq(e){return!1}updateDOM(e){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}ignoreEvent(e){return!0}get customView(){return null}destroy(e){}}var Ib=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(Ib||(Ib={}));class Lb extends hy{constructor(e,t,n,i){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=i}get heightRelevant(){return!1}static mark(e){return new Zb(e)}static widget(e){let t=e.side||0,n=!!e.block;return t+=n?t>0?3e8:-4e8:t>0?1e8:-1e8,new Yb(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,i=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:r,end:o}=Fb(e,i);t=(r?i?-3e8:-1:5e8)-1,n=1+(o?i?2e8:1:-6e8)}return new Yb(e,t,n,i,e.widget||null,!0)}static line(e){return new Gb(e)}static set(e,t=!1){return yy.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Lb.none=yy.empty;class Zb extends Lb{constructor(e){let{start:t,end:n}=Fb(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){return this==e||e instanceof Zb&&this.tagName==e.tagName&&this.class==e.class&&Mb(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Zb.prototype.point=!1;class Gb extends Lb{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Gb&&Mb(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Gb.prototype.mapMode=dg.TrackBefore,Gb.prototype.point=!0;class Yb extends Lb{constructor(e,t,n,i,r,o){super(t,n,r,e),this.block=i,this.isReplace=o,this.mapMode=i?t<=0?dg.TrackBefore:dg.TrackAfter:dg.TrackDel}get type(){return this.startSide<this.endSide?Ib.WidgetRange:this.startSide<=0?Ib.WidgetBefore:Ib.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&this.widget.estimatedHeight>=5}eq(e){return e instanceof Yb&&function(e,t){return e==t||!!(e&&t&&e.compare(t))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function Fb(e,t=!1){let{inclusiveStart:n,inclusiveEnd:i}=e;return null==n&&(n=e.inclusive),null==i&&(i=e.inclusive),{start:null!=n?n:t,end:null!=i?i:t}}function Bb(e,t,n,i=0){let r=n.length-1;r>=0&&n[r]+i>=e?n[r]=Math.max(n[r],t):n.push(e,t)}Yb.prototype.point=!0;class Hb extends fb{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,i,r,o){if(n){if(!(n instanceof Hb))return!1;this.dom||n.transferDOM(this)}return i&&this.setDeco(n?n.attrs:null),mb(this,e,t,n?n.children:[],r,o),!0}split(e){let t=new Hb;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:n,off:i}=this.childPos(e);i&&(t.append(this.children[n].split(i),0),this.children[n].merge(i,this.children[n].length,null,!1,0,0),n++);for(let e=n;e<this.children.length;e++)t.append(this.children[e],0);for(;n>0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Mb(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){Db(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=Vb(t,this.attrs||{})),n&&(this.attrs=Vb({class:n},this.attrs||{}))}domAtPos(e){return zb(this.dom,this.children,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.dirty|=6)}sync(e){var t;this.dom?4&this.dirty&&(cb(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(Xb(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e);let n=this.dom.lastChild;for(;n&&fb.get(n)instanceof qb;)n=n.lastChild;if(!(n&&this.length&&("BR"==n.nodeName||0!=(null===(t=fb.get(n))||void 0===t?void 0:t.isEditable)||Pb.ios&&this.children.some((e=>e instanceof Tb))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e=0;for(let t of this.children){if(!(t instanceof Tb)||/[^ -~]/.test(t.text))return null;let n=Fy(t.dom);if(1!=n.length)return null;e+=n[0].width}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length}:null}coordsAt(e,t){return Wb(this,e,t)}become(e){return!1}get type(){return Ib.Text}static find(e,t){for(let n=0,i=0;n<e.children.length;n++){let r=e.children[n],o=i+r.length;if(o>=t){if(r instanceof Hb)return r;if(o>t)break}i=o+r.breakAfter}return null}}class Kb extends fb{constructor(e,t,n){super(),this.widget=e,this.length=t,this.type=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,i,r,o){return!(n&&(!(n instanceof Kb&&this.widget.compare(n.widget))||e>0&&r<=0||t<this.length&&o<=0))&&(this.length=e+(n?n.length:0)+(this.length-t),!0)}domAtPos(e){return 0==e?ub.before(this.dom):ub.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let n=new Kb(this.widget,t,this.type);return n.breakAfter=this.breakAfter,n}get children(){return db}sync(){this.dom&&this.widget.updateDOM(this.dom)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):Im.empty}domBoundsAround(){return null}become(e){return e instanceof Kb&&e.type==this.type&&e.widget.constructor==this.widget.constructor&&(e.widget.eq(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Jb{constructor(e,t,n,i){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Kb&&e.type==Ib.WidgetBefore)}getLine(){return this.curLine||(this.content.push(this.curLine=new Hb),this.atCursorPos=!0),this.curLine}flushBuffer(e){this.pendingBuffer&&(this.curLine.append(ev(new Ab(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer([]),this.curLine=null,this.content.push(e)}finish(e){e?this.pendingBuffer=0:this.flushBuffer([]),this.posCovered()||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:i}=this.cursor.next(this.skip);if(this.skip=0,i)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer([]),this.curLine=null,e--;continue}this.text=t,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(0,n)),this.getLine().append(ev(new Tb(this.text.slice(this.textOff,this.textOff+i)),t),n),this.atCursorPos=!0,this.textOff+=i,e-=i,n=0}}span(e,t,n,i){this.buildText(t-e,n,i),this.pos=t,this.openStart<0&&(this.openStart=i)}point(e,t,n,i,r,o){if(this.disallowBlockEffectsFor[o]&&n instanceof Yb){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=t-e;if(n instanceof Yb)if(n.block){let{type:e}=n;e!=Ib.WidgetAfter||this.posCovered()||this.getLine(),this.addBlockWidget(new Kb(n.widget||new tv("div"),s,e))}else{let o=Eb.create(n.widget||new tv("span"),s,n.startSide),a=this.atCursorPos&&!o.isEditable&&r<=i.length&&(e<t||n.startSide>0),l=!o.isEditable&&(e<t||n.startSide<=0),c=this.getLine();2!=this.pendingBuffer||a||(this.pendingBuffer=0),this.flushBuffer(i),a&&(c.append(ev(new Ab(1),i),r),r=i.length+Math.max(0,r-i.length)),c.append(ev(o,i),r),this.atCursorPos=l,this.pendingBuffer=l?e<t?1:2:0}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=r)}static build(e,t,n,i,r){let o=new Jb(e,t,n,r);return o.openEnd=yy.spans(i,t,n,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function ev(e,t){for(let n of t)e=new qb(n,[e],e.length);return e}class tv extends Ub{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}}const nv=xg.define(),iv=xg.define(),rv=xg.define(),ov=xg.define(),sv=xg.define(),av=xg.define(),lv=xg.define({combine:e=>e.some((e=>e))});class cv{constructor(e,t="nearest",n="nearest",i=5,r=5){this.range=e,this.y=t,this.x=n,this.yMargin=i,this.xMargin=r}map(e){return e.empty?this:new cv(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin)}}const uv=ey.define({map:(e,t)=>e.map(t)});function dv(e,t,n){let i=e.facet(ov);i.length?i[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const fv=xg.define({combine:e=>!e.length||e[0]});let pv=0;const hv=xg.define();class Ov{constructor(e,t,n,i){this.id=e,this.create=t,this.domEventHandlers=n,this.extension=i(this)}static define(e,t){const{eventHandlers:n,provide:i,decorations:r}=t||{};return new Ov(pv++,e,n,(e=>{let t=[hv.of(e)];return r&&t.push(bv.of((t=>{let n=t.plugin(e);return n?r(n):Lb.none}))),i&&t.push(i(e)),t}))}static fromClass(e,t){return Ov.define((t=>new e(t)),t)}}class mv{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(dv(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){dv(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){dv(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const gv=xg.define(),yv=xg.define(),bv=xg.define(),vv=xg.define(),wv=xg.define(),$v=xg.define();class _v{constructor(e,t,n,i){this.fromA=e,this.toA=t,this.fromB=n,this.toB=i}join(e){return new _v(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let i=e[t-1];if(!(i.fromA>n.toA)){if(i.toA<n.fromA)break;n=n.join(i),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(0==t.length)return e;let n=[];for(let i=0,r=0,o=0,s=0;;i++){let a=i==e.length?null:e[i],l=o-s,c=a?a.fromB:1e9;for(;r<t.length&&t[r]<c;){let e=t[r],i=t[r+1],o=Math.max(s,e),a=Math.min(c,i);if(o<=a&&new _v(o+l,a+l,o,a).addToSet(n),i>c)break;r+=2}if(!a)return n;new _v(a.fromA,a.toA,a.fromB,a.toB).addToSet(n),o=a.toA,s=a.toB}}}class xv{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=pg.empty(this.startState.doc.length);for(let e of n)this.changes=this.changes.compose(e.changes);let i=[];this.changes.iterChangedRanges(((e,t,n,r)=>i.push(new _v(e,t,n,r)))),this.changedRanges=i;let r=e.hasFocus;r!=e.inputState.notifiedFocused&&(e.inputState.notifiedFocused=r,this.flags|=1)}static create(e,t,n){return new xv(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var Sv=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Sv||(Sv={}));const Qv=Sv.LTR,kv=Sv.RTL;function Pv(e){let t=[];for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}const Tv=Pv("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),qv=Pv("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Rv=Object.create(null),Ev=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),n=e.charCodeAt(1);Rv[t]=n,Rv[n]=-t}const jv=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;class Nv{constructor(e,t,n){this.from=e,this.to=t,this.level=n}get dir(){return this.level%2?kv:Qv}side(e,t){return this.dir==t==e?this.to:this.from}static find(e,t,n,i){let r=-1;for(let o=0;o<e.length;o++){let s=e[o];if(s.from<=t&&s.to>=t){if(s.level==n)return o;(r<0||(0!=i?i<0?s.from<t:s.to>t:e[r].level>s.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}const Cv=[];function Av(e,t){let n=e.length,i=t==Qv?1:2,r=t==Qv?2:1;if(!e||1==i&&!jv.test(e))return zv(n);for(let t=0,r=i,s=i;t<n;t++){let n=(o=e.charCodeAt(t))<=247?Tv[o]:1424<=o&&o<=1524?2:1536<=o&&o<=1785?qv[o-1536]:1774<=o&&o<=2220?4:8192<=o&&o<=8203||8204==o?256:1;512==n?n=r:8==n&&4==s&&(n=16),Cv[t]=4==n?2:n,7&n&&(s=n),r=n}var o;for(let e=0,t=i,r=i;e<n;e++){let i=Cv[e];if(128==i)e<n-1&&t==Cv[e+1]&&24&t?i=Cv[e]=t:Cv[e]=256;else if(64==i){let i=e+1;for(;i<n&&64==Cv[i];)i++;let o=e&&8==t||i<n&&8==Cv[i]?1==r?1:8:256;for(let t=e;t<i;t++)Cv[t]=o;e=i-1}else 8==i&&1==r&&(Cv[e]=1);t=i,7&i&&(r=i)}for(let t,o,s,a=0,l=0,c=0;a<n;a++)if(o=Rv[t=e.charCodeAt(a)])if(o<0){for(let e=l-3;e>=0;e-=3)if(Ev[e+1]==-o){let t=Ev[e+2],n=2&t?i:4&t?1&t?r:i:0;n&&(Cv[a]=Cv[Ev[e]]=n),l=e;break}}else{if(189==Ev.length)break;Ev[l++]=a,Ev[l++]=t,Ev[l++]=c}else if(2==(s=Cv[a])||1==s){let e=s==i;c=e?0:1;for(let t=l-3;t>=0;t-=3){let n=Ev[t+2];if(2&n)break;if(e)Ev[t+2]|=2;else{if(4&n)break;Ev[t+2]|=4}}}for(let e=0;e<n;e++)if(256==Cv[e]){let t=e+1;for(;t<n&&256==Cv[t];)t++;let r=1==(e?Cv[e-1]:i),o=r==(1==(t<n?Cv[t]:i))?r?1:2:i;for(let n=e;n<t;n++)Cv[n]=o;e=t-1}let s=[];if(1==i)for(let e=0;e<n;){let t=e,i=1!=Cv[e++];for(;e<n&&i==(1!=Cv[e]);)e++;if(i)for(let n=e;n>t;){let e=n,i=2!=Cv[--n];for(;n>t&&i==(2!=Cv[n-1]);)n--;s.push(new Nv(n,e,i?2:1))}else s.push(new Nv(t,e,0))}else for(let e=0;e<n;){let t=e,i=2==Cv[e++];for(;e<n&&i==(2==Cv[e]);)e++;s.push(new Nv(t,e,i?1:2))}return s}function zv(e){return[new Nv(0,e,0)]}let Dv="";function Wv(e,t,n,i,r){var o;let s=i.head-e.from,a=-1;if(0==s){if(!r||!e.length)return null;t[0].level!=n&&(s=t[0].side(!1,n),a=0)}else if(s==e.length){if(r)return null;let e=t[t.length-1];e.level!=n&&(s=e.side(!0,n),a=t.length-1)}a<0&&(a=Nv.find(t,s,null!==(o=i.bidiLevel)&&void 0!==o?o:-1,i.assoc));let l=t[a];s==l.side(r,n)&&(l=t[a+=r?1:-1],s=l.side(!r,n));let c=r==(l.dir==n),u=ng(e.text,s,c);if(Dv=e.text.slice(Math.min(s,u),Math.max(s,u)),u!=l.side(r,n))return wg.cursor(u+e.from,c?-1:1,l.level);let d=a==(r?t.length-1:0)?null:t[a+(r?1:-1)];return d||l.level==n?d&&d.level<l.level?wg.cursor(d.side(!r,n)+e.from,r?1:-1,d.level):wg.cursor(u+e.from,r?-1:1,l.level):wg.cursor(r?e.to:e.from,r?-1:1,n)}const Vv="";class Mv{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(fy.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Vv}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let i=e;;){this.findPointBefore(n,i),this.readNode(i);let e=i.nextSibling;if(e==t)break;let r=fb.get(i),o=fb.get(e);(r&&o?r.breakAfter:(r?r.breakAfter:Xv(i))||Xv(e)&&("BR"!=i.nodeName||i.cmIgnore))&&this.lineBreak(),i=e}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let r,o=-1,s=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),s=this.lineSeparator.length):(r=i.exec(t))&&(o=r.index,s=r[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=s-1);n=o+s}}readNode(e){if(e.cmIgnore)return;let t=fb.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+Math.min(t,n.offset))}}function Xv(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class Uv{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Iv extends fb{constructor(e){super(),this.view=e,this.compositionDeco=Lb.none,this.decorations=[],this.dynamicDecorationMap=[],this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Hb],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new _v(0,0,0,e.state.doc.length)],0)}get editorView(){return this.view}get length(){return this.view.state.doc.length}update(e){let t=e.changedRanges;this.minWidth>0&&t.length&&(t.every((({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.view.inputState.composing<0?this.compositionDeco=Lb.none:(e.transactions.length||this.dirty)&&(this.compositionDeco=function(e,t){let n=Zv(e);if(!n)return Lb.none;let{from:i,to:r,node:o,text:s}=n,a=t.mapPos(i,1),l=Math.max(a,t.mapPos(r,-1)),{state:c}=e,u=3==o.nodeType?o.nodeValue:new Mv([],c).readRange(o.firstChild,null).text;if(l-a<u.length)if(c.doc.sliceString(a,Math.min(c.doc.length,a+u.length),Vv)==u)l=a+u.length;else{if(c.doc.sliceString(Math.max(0,l-u.length),l,Vv)!=u)return Lb.none;a=l-u.length}else if(c.doc.sliceString(a,l,Vv)!=u)return Lb.none;let d=fb.get(o);d instanceof jb?d=d.widget.topView:d&&(d.parent=null);return Lb.set(Lb.replace({widget:new Gv(o,s,d),inclusive:!0}).range(a,l))}(this.view,e.changes)),(Pb.ie||Pb.chrome)&&!this.compositionDeco.size&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let n=function(e,t,n){let i=new Fv;return yy.compare(e,t,n,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return t=_v.extendWithRanges(t,n),(0!=this.dirty||0!=t.length)&&(this.updateInner(t,e.startState.doc.length),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t);let{observer:n}=this.view;n.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=Pb.chrome||Pb.ios?{node:n.selectionRange.focusNode,written:!1}:void 0;this.sync(e),this.dirty=0,e&&(e.written||n.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""}));let i=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.children)e instanceof Kb&&e.widget instanceof Lv&&i.push(e.dom);n.updateGaps(i)}updateChildren(e,t){let n=this.childCursor(t);for(let t=e.length-1;;t--){let i=t>=0?e[t]:null;if(!i)break;let{fromA:r,toA:o,fromB:s,toB:a}=i,{content:l,breakAtStart:c,openStart:u,openEnd:d}=Jb.build(this.view.state.doc,s,a,this.decorations,this.dynamicDecorationMap),{i:f,off:p}=n.findPos(o,1),{i:h,off:O}=n.findPos(r,-1);Ob(this,h,O,f,p,l,c,u,d)}}updateSelection(e=!1,t=!1){if(!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange(),!t&&!this.mayControlSelection()||Pb.ios&&this.view.inputState.rapidCompositionStart)return;let n=this.forceSelection;this.forceSelection=!1;let i=this.view.state.selection.main,r=this.domAtPos(i.anchor),o=i.empty?r:this.domAtPos(i.head);if(Pb.gecko&&i.empty&&(1==(s=r).node.nodeType&&s.node.firstChild&&(0==s.offset||"false"==s.node.childNodes[s.offset-1].contentEditable)&&(s.offset==s.node.childNodes.length||"false"==s.node.childNodes[s.offset].contentEditable))){let e=document.createTextNode("");this.view.observer.ignore((()=>r.node.insertBefore(e,r.node.childNodes[r.offset]||null))),r=o=new ub(e,0),n=!0}var s;let a=this.view.observer.selectionRange;!n&&a.focusNode&&By(r.node,r.offset,a.anchorNode,a.anchorOffset)&&By(o.node,o.offset,a.focusNode,a.focusOffset)||(this.view.observer.ignore((()=>{Pb.android&&Pb.chrome&&this.dom.contains(a.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(a.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=Zy(this.view.root);if(e)if(i.empty){if(Pb.gecko){let e=function(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(t<e.childNodes.length&&"false"==e.childNodes[t].contentEditable?2:0)}(r.node,r.offset);if(e&&3!=e){let t=Yv(r.node,r.offset,1==e?1:-1);t&&(r=new ub(t,1==e?0:t.nodeValue.length))}}e.collapse(r.node,r.offset),null!=i.bidiLevel&&null!=a.cursorBidiLevel&&(a.cursorBidiLevel=i.bidiLevel)}else if(e.extend)e.collapse(r.node,r.offset),e.extend(o.node,o.offset);else{let t=document.createRange();i.anchor>i.head&&([r,o]=[o,r]),t.setEnd(o.node,o.offset),t.setStart(r.node,r.offset),e.removeAllRanges(),e.addRange(t)}else;})),this.view.observer.setSelectionRange(r,o)),this.impreciseAnchor=r.precise?null:new ub(a.anchorNode,a.anchorOffset),this.impreciseHead=o.precise?null:new ub(a.focusNode,a.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let e=this.view.state.selection.main,t=Zy(this.view.root);if(!(t&&e.empty&&e.assoc&&t.modify))return;let n=Hb.find(this,e.head);if(!n)return;let i=n.posAtStart;if(e.head==i||e.head==i+n.length)return;let r=this.coordsAt(e.head,-1),o=this.coordsAt(e.head,1);if(!r||!o||r.bottom>o.top)return;let s=this.domAtPos(e.head+e.assoc);t.collapse(s.node,s.offset),t.modify("move",e.assoc<0?"forward":"backward","lineboundary")}mayControlSelection(){let e=this.view.root.activeElement;return e==this.dom||Yy(this.dom,this.view.observer.selectionRange)&&!(e&&this.dom.contains(e))}nearest(e){for(let t=e;t;){let e=fb.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(n<e.length||e instanceof Hb)break;t++,n=0}return this.children[t].domAtPos(n)}coordsAt(e,t){for(let n=this.length,i=this.children.length-1;;i--){let r=this.children[i],o=n-r.breakAfter-r.length;if(e>o||e==o&&r.type!=Ib.WidgetBefore&&r.type!=Ib.WidgetAfter&&(!i||2==t||this.children[i-1].breakAfter||this.children[i-1].type==Ib.WidgetBefore&&t>-2))return r.coordsAt(e-o,t);n=o}}measureVisibleLineHeights(e){let t=[],{from:n,to:i}=e,r=this.view.contentDOM.clientWidth,o=r>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,a=this.view.textDirection==Sv.LTR;for(let e=0,l=0;l<this.children.length;l++){let c=this.children[l],u=e+c.length;if(u>i)break;if(e>=n){let n=c.dom.getBoundingClientRect();if(t.push(n.height),o){let t=c.dom.lastChild,i=t?Fy(t):[];if(i.length){let t=i[i.length-1],o=a?t.right-n.left:n.right-t.left;o>s&&(s=o,this.minWidth=r,this.minWidthFrom=e,this.minWidthTo=u)}}}e=u+c.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?Sv.RTL:Sv.LTR}measureTextSize(){for(let e of this.children)if(e instanceof Hb){let t=e.measureTextSize();if(t)return t}let e,t,n=document.createElement("div");return n.className="cm-line",n.style.width="99999px",n.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(n);let i=Fy(n.firstChild)[0];e=n.getBoundingClientRect().height,t=i?i.width/27:7,n.remove()})),{lineHeight:e,charWidth:t}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new hb(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,i=0;;i++){let r=i==t.viewports.length?null:t.viewports[i],o=r?r.from-1:this.length;if(o>n){let i=t.lineBlockAt(o).bottom-t.lineBlockAt(n).top;e.push(Lb.replace({widget:new Lv(i),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!r)break;n=r.to+1}return Lb.set(e)}updateDeco(){let e=this.view.state.facet(bv).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;t<e.length+3;t++)this.dynamicDecorationMap[t]=!1;return this.decorations=[...e,this.compositionDeco,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){let t,{range:n}=e,i=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1);if(!i)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,t.left),top:Math.min(i.top,t.top),right:Math.max(i.right,t.right),bottom:Math.max(i.bottom,t.bottom)});let r=0,o=0,s=0,a=0;for(let e of this.view.state.facet(wv).map((e=>e(this.view))))if(e){let{left:t,right:n,top:i,bottom:l}=e;null!=t&&(r=Math.max(r,t)),null!=n&&(o=Math.max(o,n)),null!=i&&(s=Math.max(s,i)),null!=l&&(a=Math.max(a,l))}let l={left:i.left-r,top:i.top-s,right:i.right+o,bottom:i.bottom+a};!function(e,t,n,i,r,o,s,a){let l=e.ownerDocument,c=l.defaultView;for(let u=e;u;)if(1==u.nodeType){let e,d=u==l.body;if(d)e=nb(c);else{if(u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.parentNode;continue}let t=u.getBoundingClientRect();e={left:t.left,right:t.left+u.clientWidth,top:t.top,bottom:t.top+u.clientHeight}}let f=0,p=0;if("nearest"==r)t.top<e.top?(p=-(e.top-t.top+s),n>0&&t.bottom>e.bottom+p&&(p=t.bottom-e.bottom+p+s)):t.bottom>e.bottom&&(p=t.bottom-e.bottom+s,n<0&&t.top-p<e.top&&(p=-(e.top+p-t.top+s)));else{let i=t.bottom-t.top,o=e.bottom-e.top;p=("center"==r&&i<=o?t.top+i/2-o/2:"start"==r||"center"==r&&n<0?t.top-s:t.bottom-o+s)-e.top}if("nearest"==i?t.left<e.left?(f=-(e.left-t.left+o),n>0&&t.right>e.right+f&&(f=t.right-e.right+f+o)):t.right>e.right&&(f=t.right-e.right+o,n<0&&t.left<e.left+f&&(f=-(e.left+f-t.left+o))):f=("center"==i?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==i==a?t.left-o:t.right-(e.right-e.left)+o)-e.left,f||p)if(d)c.scrollBy(f,p);else{if(p){let e=u.scrollTop;u.scrollTop+=p,p=u.scrollTop-e}if(f){let e=u.scrollLeft;u.scrollLeft+=f,f=u.scrollLeft-e}t={left:t.left-f,top:t.top-p,right:t.right-f,bottom:t.bottom-p}}if(d)break;u=u.assignedSlot||u.parentNode,i=r="nearest"}else{if(11!=u.nodeType)break;u=u.host}}(this.view.scrollDOM,l,n.head<n.anchor?-1:1,e.x,e.y,e.xMargin,e.yMargin,this.view.textDirection==Sv.LTR)}}class Lv extends Ub{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get estimatedHeight(){return this.height}}function Zv(e){let t=e.observer.selectionRange,n=t.focusNode&&Yv(t.focusNode,t.focusOffset,0);if(!n)return null;let i=e.docView.nearest(n);if(!i)return null;if(i instanceof Hb){let e=n;for(;e.parentNode!=i.dom;)e=e.parentNode;let t=e.previousSibling;for(;t&&!fb.get(t);)t=t.previousSibling;let r=t?fb.get(t).posAtEnd:i.posAtStart;return{from:r,to:r,node:e,text:n}}{for(;;){let{parent:e}=i;if(!e)return null;if(e instanceof Hb)break;i=e}let e=i.posAtStart;return{from:e,to:e+i.length,node:i.dom,text:n}}}class Gv extends Ub{constructor(e,t,n){super(),this.top=e,this.text=t,this.topView=n}eq(e){return this.top==e.top&&this.text==e.text}toDOM(){return this.top}ignoreEvent(){return!1}get customView(){return jb}}function Yv(e,t,n){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0&&n<=0)t=Jy(e=e.childNodes[t-1]);else{if(!(1==e.nodeType&&t<e.childNodes.length&&n>=0))return null;e=e.childNodes[t],t=0}}}class Fv{constructor(){this.changes=[]}compareRange(e,t){Bb(e,t,this.changes)}comparePoint(e,t){Bb(e,t,this.changes)}}function Bv(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function Hv(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function Kv(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function Jv(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function ew(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function tw(e,t,n){let i,r,o,s,a,l,c,u,d=!1;for(let f=e.firstChild;f;f=f.nextSibling){let e=Fy(f);for(let p=0;p<e.length;p++){let h=e[p];r&&Kv(r,h)&&(h=Jv(ew(h,r.bottom),r.top));let O=Bv(t,h),m=Hv(n,h);if(0==O&&0==m)return 3==f.nodeType?nw(f,t,n):tw(f,t,n);(!i||s>m||s==m&&o>O)&&(i=f,r=h,o=O,s=m,d=!O||(O>0?p<e.length-1:p>0)),0==O?n>h.bottom&&(!c||c.bottom<h.bottom)?(a=f,c=h):n<h.top&&(!u||u.top>h.top)&&(l=f,u=h):c&&Kv(c,h)?c=ew(c,h.bottom):u&&Kv(u,h)&&(u=Jv(u,h.top))}}if(c&&c.bottom>=n?(i=a,r=c):u&&u.top<=n&&(i=l,r=u),!i)return{node:e,offset:0};let f=Math.max(r.left,Math.min(r.right,t));return 3==i.nodeType?nw(i,f,n):d&&"false"!=i.contentEditable?tw(i,f,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,i)+(t>=(r.left+r.right)/2?1:0)}}function nw(e,t,n){let i=e.nodeValue.length,r=-1,o=1e9,s=0;for(let a=0;a<i;a++){let i=ab(e,a,a+1).getClientRects();for(let l=0;l<i.length;l++){let c=i[l];if(c.top==c.bottom)continue;s||(s=t-c.left);let u=(c.top>n?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&u<o){let n=t>=(c.left+c.right)/2,i=n;if(Pb.chrome||Pb.gecko){ab(e,a).getBoundingClientRect().left==c.right&&(i=!n)}if(u<=0)return{node:e,offset:a+(i?1:0)};r=a+(i?1:0),o=u}}}return{node:e,offset:r>-1?r:s>0?e.nodeValue.length:0}}function iw(e,{x:t,y:n},i,r=-1){var o;let s,a=e.contentDOM.getBoundingClientRect(),l=a.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,u=n-l;if(u<0)return 0;if(u>c)return e.state.doc.length;for(let t=e.defaultLineHeight/2,n=!1;s=e.elementAtHeight(u),s.type!=Ib.Text;)for(;u=r>0?s.bottom+t:s.top-t,!(u>=0&&u<=c);){if(n)return i?null:0;n=!0,r=-r}n=l+u;let d=s.from;if(d<e.viewport.from)return 0==e.viewport.from?0:i?null:rw(e,a,s,t,n);if(d>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:i?null:rw(e,a,s,t,n);let f=e.dom.ownerDocument,p=e.root.elementFromPoint?e.root:f,h=p.elementFromPoint(t,n);h&&!e.contentDOM.contains(h)&&(h=null),h||(t=Math.max(a.left+1,Math.min(a.right-1,t)),h=p.elementFromPoint(t,n),h&&!e.contentDOM.contains(h)&&(h=null));let O,m=-1;if(h&&0!=(null===(o=e.docView.nearest(h))||void 0===o?void 0:o.isEditable))if(f.caretPositionFromPoint){let e=f.caretPositionFromPoint(t,n);e&&({offsetNode:O,offset:m}=e)}else if(f.caretRangeFromPoint){let i=f.caretRangeFromPoint(t,n);i&&(({startContainer:O,startOffset:m}=i),(!e.contentDOM.contains(O)||Pb.safari&&function(e,t,n){let i;if(3!=e.nodeType||t!=(i=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return ab(e,i-1,i).getBoundingClientRect().left>n}(O,m,t)||Pb.chrome&&function(e,t,n){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}let i=1==e.nodeType?e.getBoundingClientRect():ab(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-i.left>5}(O,m,t))&&(O=void 0))}if(!O||!e.docView.dom.contains(O)){let i=Hb.find(e.docView,d);if(!i)return u>s.top+s.height/2?s.to:s.from;({node:O,offset:m}=tw(i.dom,t,n))}return e.docView.posFromDOM(O,m)}function rw(e,t,n,i,r){let o=Math.round((i-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){o+=Math.floor((r-n.top)/e.defaultLineHeight)*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+Ry(s,o,e.state.tabSize)}function ow(e,t,n,i){let r=e.state.doc.lineAt(t.head),o=e.bidiSpans(r),s=e.textDirectionAt(r.from);for(let a=t,l=null;;){let t=Wv(r,o,s,a,n),c=Dv;if(!t){if(r.number==(n?e.state.doc.lines:1))return a;c="\n",r=e.state.doc.line(r.number+(n?1:-1)),o=e.bidiSpans(r),t=wg.cursor(n?r.from:r.to)}if(l){if(!l(c))return a}else{if(!i)return t;l=i(c)}a=t}}function sw(e,t,n){let i=e.state.facet(vv).map((t=>t(e)));for(;;){let e=!1;for(let r of i)r.between(n.from-1,n.from+1,((i,r,o)=>{n.from>i&&n.from<r&&(n=t.from>n.from?wg.cursor(i,1):wg.cursor(r,-1),e=!0)}));if(!e)return n}}class aw{constructor(e){this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.chromeScrollHack=-1,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.rapidCompositionStart=!1,this.mouseSelection=null;for(let t in fw){let n=fw[t];e.contentDOM.addEventListener(t,(i=>{dw(e,i)&&!this.ignoreDuringComposition(i)&&("keydown"==t&&this.keydown(e,i)||(this.mustFlushObserver(i)&&e.observer.forceFlush(),this.runCustomHandlers(t,e,i)?i.preventDefault():n(e,i)))}),pw[t]),this.registeredEvents.push(t)}Pb.chrome&&102==Pb.chrome_version&&e.scrollDOM.addEventListener("wheel",(()=>{this.chromeScrollHack<0?e.contentDOM.style.pointerEvents="none":window.clearTimeout(this.chromeScrollHack),this.chromeScrollHack=setTimeout((()=>{this.chromeScrollHack=-1,e.contentDOM.style.pointerEvents=""}),100)}),{passive:!0}),this.notifiedFocused=e.hasFocus,Pb.safari&&e.contentDOM.addEventListener("input",(()=>null))}setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}ensureHandlers(e,t){var n;let i;this.customHandlers=[];for(let r of t)if(i=null===(n=r.update(e).spec)||void 0===n?void 0:n.domEventHandlers){this.customHandlers.push({plugin:r.value,handlers:i});for(let t in i)this.registeredEvents.indexOf(t)<0&&"scroll"!=t&&(this.registeredEvents.push(t),e.contentDOM.addEventListener(t,(n=>{dw(e,n)&&this.runCustomHandlers(t,e,n)&&n.preventDefault()})))}}runCustomHandlers(e,t,n){for(let i of this.customHandlers){let r=i.handlers[e];if(r)try{if(r.call(i.plugin,n,t)||n.defaultPrevented)return!0}catch(e){dv(t.state,e)}}return!1}runScrollHandlers(e,t){this.lastScrollTop=e.scrollDOM.scrollTop,this.lastScrollLeft=e.scrollDOM.scrollLeft;for(let n of this.customHandlers){let i=n.handlers.scroll;if(i)try{i.call(n.plugin,t,e)}catch(t){dv(e.state,t)}}}keydown(e,t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&Date.now()<this.lastEscPress+2e3)return!0;if(Pb.android&&Pb.chrome&&!t.synthetic&&(13==t.keyCode||8==t.keyCode))return e.observer.delayAndroidKey(t.key,t.keyCode),!0;let n;return!(!Pb.ios||!(n=lw.find((e=>e.keyCode==t.keyCode)))||t.ctrlKey||t.altKey||t.metaKey||t.synthetic)&&(this.pendingIOSKey=n,setTimeout((()=>this.flushIOSKey(e)),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&(this.pendingIOSKey=void 0,lb(e.contentDOM,t.key,t.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(Pb.safari&&!Pb.ios&&Date.now()-this.compositionEndedAt<100)&&(this.compositionEndedAt=0,!0))}mustFlushObserver(e){return"keydown"==e.type&&229!=e.keyCode||"compositionend"==e.type&&!Pb.ios}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}const lw=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],cw=[16,17,18,20,91,92,224,225];class uw{constructor(e,t,n,i){this.view=e,this.style=n,this.mustSelect=i,this.lastEvent=t;let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(fy.allowMultipleSelections)&&function(e,t){let n=e.state.facet(nv);return n.length?n[0](t):Pb.mac?t.metaKey:t.ctrlKey}(e,t),this.dragMove=function(e,t){let n=e.state.facet(iv);return n.length?n[0](t):Pb.mac?!t.altKey:!t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let i=Zy(e.root);if(!i||0==i.rangeCount)return!0;let r=i.getRangeAt(0).getClientRects();for(let e=0;e<r.length;e++){let n=r[e];if(n.left<=t.clientX&&n.right>=t.clientX&&n.top<=t.clientY&&n.bottom>=t.clientY)return!0}return!1}(e,t)||1!=Sw(t))&&null,!1===this.dragging&&(t.preventDefault(),this.select(t))}move(e){if(0==e.buttons)return this.destroy();!1===this.dragging&&this.select(this.lastEvent=e)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=null}select(e){let t=this.style.get(e,this.extend,this.multiple);!this.mustSelect&&t.eq(this.view.state.selection)&&t.main.assoc==this.view.state.selection.main.assoc||this.view.dispatch({selection:t,userEvent:"select.pointer",scrollIntoView:!0}),this.mustSelect=!1}update(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}function dw(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,i=t.target;i!=e.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(n=fb.get(i))&&n.ignoreEvent(t))return!1;return!0}const fw=Object.create(null),pw=Object.create(null),hw=Pb.ie&&Pb.ie_version<15||Pb.ios&&Pb.webkit_version<604;function Ow(e,t){let n,{state:i}=e,r=1,o=i.toText(t),s=o.lines==i.selection.ranges.length,a=null!=kw&&i.selection.ranges.every((e=>e.empty))&&kw==o.toString();if(a){let e=-1;n=i.changeByRange((n=>{let a=i.doc.lineAt(n.from);if(a.from==e)return{range:n};e=a.from;let l=i.toText((s?o.line(r++).text:t)+i.lineBreak);return{changes:{from:a.from,insert:l},range:wg.cursor(n.from+l.length)}}))}else n=s?i.changeByRange((e=>{let t=o.line(r++);return{changes:{from:e.from,to:e.to,insert:t.text},range:wg.cursor(e.from+t.length)}})):i.replaceSelection(o);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function mw(e,t,n,i){if(1==i)return wg.cursor(t,n);if(2==i)return function(e,t,n=1){let i=e.charCategorizer(t),r=e.doc.lineAt(t),o=t-r.from;if(0==r.length)return wg.cursor(t);0==o?n=1:o==r.length&&(n=-1);let s=o,a=o;n<0?s=ng(r.text,o,!1):a=ng(r.text,o);let l=i(r.text.slice(s,a));for(;s>0;){let e=ng(r.text,s,!1);if(i(r.text.slice(e,s))!=l)break;s=e}for(;a<r.length;){let e=ng(r.text,a);if(i(r.text.slice(a,e))!=l)break;a=e}return wg.range(s+r.from,a+r.from)}(e.state,t,n);{let n=Hb.find(e.docView,t),i=e.state.doc.lineAt(n?n.posAtEnd:t),r=n?n.posAtStart:i.from,o=n?n.posAtEnd:i.to;return o<e.state.doc.length&&o==i.to&&o++,wg.range(r,o)}}fw.keydown=(e,t)=>{e.inputState.setSelectionOrigin("select"),27==t.keyCode?e.inputState.lastEscPress=Date.now():cw.indexOf(t.keyCode)<0&&(e.inputState.lastEscPress=0)},fw.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},fw.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},pw.touchstart=pw.touchmove={passive:!0},fw.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3&&1==Sw(t))return;let n=null;for(let i of e.state.facet(rv))if(n=i(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=vw(e,t),i=Sw(t),r=e.state.selection,o=n,s=t;return{update(e){e.docChanged&&(n&&(n.pos=e.changes.mapPos(n.pos)),r=r.map(e.changes),s=null)},get(t,a,l){let c;if(s&&t.clientX==s.clientX&&t.clientY==s.clientY?c=o:(c=o=vw(e,t),s=t),!c||!n)return r;let u=mw(e,c.pos,c.bias,i);if(n.pos!=c.pos&&!a){let t=mw(e,n.pos,n.bias,i),r=Math.min(t.from,u.from),o=Math.max(t.to,u.to);u=r<u.from?wg.range(r,o):wg.range(o,r)}return a?r.replaceRange(r.main.extend(u.from,u.to)):l&&r.ranges.length>1&&r.ranges.some((e=>e.eq(u)))?function(e,t){for(let n=0;;n++)if(e.ranges[n].eq(t))return wg.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}(r,u):l?r.addRange(u):wg.create([u])}}}(e,t)),n){let i=e.root.activeElement!=e.contentDOM;i&&e.observer.ignore((()=>sb(e.contentDOM))),e.inputState.startMouseSelection(new uw(e,t,n,i))}};let gw=(e,t)=>e>=t.top&&e<=t.bottom,yw=(e,t,n)=>gw(t,n)&&e>=n.left&&e<=n.right;function bw(e,t,n,i){let r=Hb.find(e.docView,t);if(!r)return 1;let o=t-r.posAtStart;if(0==o)return 1;if(o==r.length)return-1;let s=r.coordsAt(o,-1);if(s&&yw(n,i,s))return-1;let a=r.coordsAt(o,1);return a&&yw(n,i,a)?1:s&&gw(i,s)?-1:1}function vw(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:bw(e,n,t.clientX,t.clientY)}}const ww=Pb.ie&&Pb.ie_version<=11;let $w=null,_w=0,xw=0;function Sw(e){if(!ww)return e.detail;let t=$w,n=xw;return $w=e,xw=Date.now(),_w=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(_w+1)%3:1}function Qw(e,t,n,i){if(!n)return;let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1);t.preventDefault();let{mouseSelection:o}=e.inputState,s=i&&o&&o.dragging&&o.dragMove?{from:o.dragging.from,to:o.dragging.to}:null,a={from:r,insert:n},l=e.state.changes(s?[s,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"})}fw.dragstart=(e,t)=>{let{selection:{main:n}}=e.state,{mouseSelection:i}=e.inputState;i&&(i.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove")},fw.drop=(e,t)=>{if(!t.dataTransfer)return;if(e.state.readOnly)return t.preventDefault();let n=t.dataTransfer.files;if(n&&n.length){t.preventDefault();let i=Array(n.length),r=0,o=()=>{++r==n.length&&Qw(e,t,i.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e<n.length;e++){let t=new FileReader;t.onerror=o,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(i[e]=t.result),o()},t.readAsText(n[e])}}else Qw(e,t,t.dataTransfer.getData("Text"),!0)},fw.paste=(e,t)=>{if(e.state.readOnly)return t.preventDefault();e.observer.flush();let n=hw?null:t.clipboardData;n?(Ow(e,n.getData("text/plain")),t.preventDefault()):function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),Ow(e,n.value)}),50)}(e)};let kw=null;function Pw(e){setTimeout((()=>{e.hasFocus!=e.inputState.notifiedFocused&&e.update([])}),10)}function Tw(e,t){if(e.docView.compositionDeco.size){e.inputState.rapidCompositionStart=t;try{e.update([])}finally{e.inputState.rapidCompositionStart=!1}}}fw.copy=fw.cut=(e,t)=>{let{text:n,ranges:i,linewise:r}=function(e){let t=[],n=[],i=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let r=-1;for(let{from:i}of e.selection.ranges){let o=e.doc.lineAt(i);o.number>r&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),r=o.number}i=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:i}}(e.state);if(!n&&!r)return;kw=r?n:null;let o=hw?null:t.clipboardData;o?(t.preventDefault(),o.clearData(),o.setData("text/plain",n)):function(e,t){let n=e.dom.parentNode;if(!n)return;let i=n.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=t,i.focus(),i.selectionEnd=t.length,i.selectionStart=0,setTimeout((()=>{i.remove(),e.focus()}),50)}(e,n),"cut"!=t.type||e.state.readOnly||e.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"})},fw.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),Pw(e)},fw.blur=e=>{e.observer.clearSelectionRange(),Pw(e)},fw.compositionstart=fw.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0,e.docView.compositionDeco.size&&(e.observer.flush(),Tw(e,!0)))},fw.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionFirstChange=null,setTimeout((()=>{e.inputState.composing<0&&Tw(e,!1)}),50)},fw.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},fw.beforeinput=(e,t)=>{var n;let i;if(Pb.chrome&&Pb.android&&(i=lw.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}};const qw=["pre-wrap","normal","pre-line","break-spaces"];class Rw{constructor(){this.doc=Im.empty,this.lineWrapping=!1,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength)),this.lineHeight*n}heightForLine(e){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return qw.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let i=e[n];i<0?n++:this.heightSamples[Math.floor(10*i)]||(t=!0,this.heightSamples[Math.floor(10*i)]=!0)}return t}refresh(e,t,n,i,r){let o=qw.indexOf(e)>-1,s=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=t,this.charWidth=n,this.lineLength=i,s){this.heightSamples={};for(let e=0;e<r.length;e++){let t=r[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return s}}class Ew{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class jw{constructor(e,t,n,i,r){this.from=e,this.length=t,this.top=n,this.height=i,this.type=r}get to(){return this.from+this.length}get bottom(){return this.top+this.height}join(e){let t=(Array.isArray(this.type)?this.type:[this]).concat(Array.isArray(e.type)?e.type:[e]);return new jw(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var Nw=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(Nw||(Nw={}));const Cw=.001;class Aw{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>Cw&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return Aw.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,i){let r=this;for(let o=i.length-1;o>=0;o--){let{fromA:s,toA:a,fromB:l,toB:c}=i[o],u=r.lineAt(s,Nw.ByPosNoHeight,t,0,0),d=u.to>=a?u:r.lineAt(a,Nw.ByPosNoHeight,t,0,0);for(c+=d.to-a,a=d.to;o>0&&u.from<=i[o-1].toA;)s=i[o-1].fromA,l=i[o-1].fromB,o--,s<u.from&&(u=r.lineAt(s,Nw.ByPosNoHeight,t,0,0));l+=u.from-s,s=u.from;let f=Xw.build(n,e,l,c);r=r.replace(s,a,f)}return r.updateHeight(n,0)}static empty(){return new Dw(0,0)}static of(e){if(1==e.length)return e[0];let t=0,n=e.length,i=0,r=0;for(;;)if(t==n)if(i>2*r){let r=e[t-1];r.break?e.splice(--t,1,r.left,null,r.right):e.splice(--t,1,r.left,r.right),n+=1+r.break,i-=r.size}else{if(!(r>2*i))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,r-=t.size}}else if(i<r){let n=e[t++];n&&(i+=n.size)}else{let t=e[--n];t&&(r+=t.size)}let o=0;return null==e[t-1]?(o=1,t--):null==e[t]&&(o=1,n++),new Vw(Aw.of(e.slice(0,t)),o,Aw.of(e.slice(n)))}}Aw.prototype.size=1;class zw extends Aw{constructor(e,t,n){super(e,t),this.type=n}blockAt(e,t,n,i){return new jw(i,this.length,n,this.height,this.type)}lineAt(e,t,n,i,r){return this.blockAt(0,n,i,r)}forEachLine(e,t,n,i,r,o){e<=r+this.length&&t>=r&&o(this.blockAt(0,n,i,r))}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more&&this.setHeight(e,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Dw extends zw{constructor(e,t){super(e,t,Ib.Text),this.collapsed=0,this.widgetHeight=0}replace(e,t,n){let i=n[0];return 1==n.length&&(i instanceof Dw||i instanceof Ww&&4&i.flags)&&Math.abs(this.length-i.length)<10?(i instanceof Ww?i=new Dw(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Aw.of(n)}updateHeight(e,t=0,n=!1,i){return i&&i.from<=t&&i.more?this.setHeight(e,i.heights[i.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Ww extends Aw{constructor(e){super(e,0)}lines(e,t){let n=e.lineAt(t).number,i=e.lineAt(t+this.length).number;return{firstLine:n,lastLine:i,lineHeight:this.height/(i-n+1)}}blockAt(e,t,n,i){let{firstLine:r,lastLine:o,lineHeight:s}=this.lines(t,i),a=Math.max(0,Math.min(o-r,Math.floor((e-n)/s))),{from:l,length:c}=t.line(r+a);return new jw(l,c,n+s*a,s,Ib.Text)}lineAt(e,t,n,i,r){if(t==Nw.ByHeight)return this.blockAt(e,n,i,r);if(t==Nw.ByPosNoHeight){let{from:t,to:i}=n.lineAt(e);return new jw(t,i-t,0,0,Ib.Text)}let{firstLine:o,lineHeight:s}=this.lines(n,r),{from:a,length:l,number:c}=n.lineAt(e);return new jw(a,l,i+s*(c-o),s,Ib.Text)}forEachLine(e,t,n,i,r,o){let{firstLine:s,lineHeight:a}=this.lines(n,r);for(let l=Math.max(e,r),c=Math.min(r+this.length,t);l<=c;){let t=n.lineAt(l);l==e&&(i+=a*(t.number-s)),o(new jw(t.from,t.length,i,a,Ib.Text)),i+=a,l=t.to+1}}replace(e,t,n){let i=this.length-t;if(i>0){let e=n[n.length-1];e instanceof Ww?n[n.length-1]=new Ww(e.length+i):n.push(null,new Ww(i-1))}if(e>0){let t=n[0];t instanceof Ww?n[0]=new Ww(e+t.length):n.unshift(new Ww(e-1),null)}return Aw.of(n)}decomposeLeft(e,t){t.push(new Ww(e-1),null)}decomposeRight(e,t){t.push(null,new Ww(this.length-e-1))}updateHeight(e,t=0,n=!1,i){let r=t+this.length;if(i&&i.from<=t+this.length&&i.more){let n=[],o=Math.max(t,i.from),s=-1,a=e.heightChanged;for(i.from>t&&n.push(new Ww(i.from-t-1).updateHeight(e,t));o<=r&&i.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let r=i.heights[i.index++];-1==s?s=r:Math.abs(r-s)>=Cw&&(s=-2);let a=new Dw(t,r);a.outdated=!1,n.push(a),o+=t+1}o<=r&&n.push(null,new Ww(r-o).updateHeight(e,o));let l=Aw.of(n);return e.heightChanged=a||s<0||Math.abs(l.height-this.height)>=Cw||Math.abs(s-this.lines(e.doc,t).lineHeight)>=Cw,l}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class Vw extends Aw{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,i){let r=n+this.left.height;return e<r?this.left.blockAt(e,t,n,i):this.right.blockAt(e,t,r,i+this.left.length+this.break)}lineAt(e,t,n,i,r){let o=i+this.left.height,s=r+this.left.length+this.break,a=t==Nw.ByHeight?e<o:e<s,l=a?this.left.lineAt(e,t,n,i,r):this.right.lineAt(e,t,n,o,s);if(this.break||(a?l.to<s:l.from>s))return l;let c=t==Nw.ByPosNoHeight?Nw.ByPosNoHeight:Nw.ByPos;return a?l.join(this.right.lineAt(s,c,n,o,s)):this.left.lineAt(s,c,n,i,r).join(l)}forEachLine(e,t,n,i,r,o){let s=i+this.left.height,a=r+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,n,i,r,o),t>=a&&this.right.forEachLine(e,t,n,s,a,o);else{let l=this.lineAt(a,Nw.ByPos,n,i,r);e<l.from&&this.left.forEachLine(e,l.from-1,n,i,r,o),l.to>=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,s,a,o)}}replace(e,t,n){let i=this.left.length+this.break;if(t<i)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-i,t-i,n));let r=[];e>0&&this.decomposeLeft(e,r);let o=r.length;for(let e of n)r.push(e);if(e>0&&Mw(r,o-1),t<this.length){let e=r.length;this.decomposeRight(t,r),Mw(r,e)}return Aw.of(r)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,i=n+this.break;if(e>=i)return this.right.decomposeRight(e-i,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<i&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Aw.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,i){let{left:r,right:o}=this,s=t+r.length+this.break,a=null;return i&&i.from<=t+r.length&&i.more?a=r=r.updateHeight(e,t,n,i):r.updateHeight(e,t,n),i&&i.from<=s+o.length&&i.more?a=o=o.updateHeight(e,s,n,i):o.updateHeight(e,s,n),a?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Mw(e,t){let n,i;null==e[t]&&(n=e[t-1])instanceof Ww&&(i=e[t+1])instanceof Ww&&e.splice(t-1,3,new Ww(n.length+1+i.length))}class Xw{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof Dw?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new Dw(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let i=n.widget?n.widget.estimatedHeight:0;i<0&&(i=this.oracle.lineHeight);let r=t-e;n.block?this.addBlock(new zw(r,i,n.type)):(r||i>=5)&&this.addLineDeco(i,r)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Dw(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new Ww(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Dw)return e;let t=new Dw(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine(),e.type!=Ib.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,e.type!=Ib.WidgetBefore&&(this.covering=e)}addLineDeco(e,t){let n=this.ensureLine();n.length+=t,n.collapsed+=t,n.widgetHeight=Math.max(n.widgetHeight,e),this.writtenTo=this.pos=this.pos+t}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof Dw||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new Dw(0,-1));let n=e;for(let e of this.nodes)e instanceof Dw&&e.updateHeight(this.oracle,n),n+=e?e.length:1;return this.nodes}static build(e,t,n,i){let r=new Xw(n,e);return yy.spans(t,n,i,r,0),r.finish(n)}}class Uw{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,i){(e<t||n&&n.heightRelevant||i&&i.heightRelevant)&&Bb(e,t,this.changes,5)}}function Iw(e,t){let n=e.getBoundingClientRect(),i=Math.max(0,n.left),r=Math.min(innerWidth,n.right),o=Math.max(0,n.top),s=Math.min(innerHeight,n.bottom),a=e.ownerDocument.body;for(let t=e.parentNode;t&&t!=a;)if(1==t.nodeType){let n=t,a=window.getComputedStyle(n);if((n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)&&"visible"!=a.overflow){let a=n.getBoundingClientRect();i=Math.max(i,a.left),r=Math.min(r,a.right),o=Math.max(o,a.top),s=t==e.parentNode?a.bottom:Math.min(s,a.bottom)}t="absolute"==a.position||"fixed"==a.position?n.offsetParent:n.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:i-n.left,right:Math.max(i,r)-n.left,top:o-(n.top+t),bottom:Math.max(o,s)-(n.top+t)}}function Lw(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class Zw{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let i=e[n],r=t[n];if(i.from!=r.from||i.to!=r.to||i.size!=r.size)return!1}return!0}draw(e){return Lb.replace({widget:new Gw(this.size,e)}).range(this.from,this.to)}}class Gw extends Ub{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Yw{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.heightOracle=new Rw,this.scaler=t$,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Sv.RTL,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1,this.stateDeco=e.facet(bv).filter((e=>"function"!=typeof e)),this.heightMap=Aw.empty().applyChanges(this.stateDeco,Im.empty,this.heightOracle.setDoc(e.doc),[new _v(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Lb.set(this.lineGaps.map((e=>e.draw(!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let i=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>i>=e&&i<=t))){let{from:t,to:n}=this.lineBlockAt(i);e.push(new Fw(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?t$:new n$(this.heightOracle.doc,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:i$(e,this.scaler))}))}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(bv).filter((e=>"function"!=typeof e));let i=e.changedRanges,r=_v.extendWithRanges(i,function(e,t,n){let i=new Uw;return yy.compare(e,t,n,i,0),i.changes}(n,this.stateDeco,e?e.changes:pg.empty(this.state.doc.length))),o=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=o&&(e.flags|=2);let s=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<s.from||t.range.head>s.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,t));let a=!e.changes.empty||2&e.flags||s.from!=this.viewport.from||s.to!=this.viewport.to;this.viewport=s,this.updateForViewport(),a&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,r=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?Sv.RTL:Sv.LTR;let o=this.heightOracle.mustRefreshForWrapping(r),s=o||this.mustMeasureContent||this.contentDOMHeight!=t.clientHeight;this.contentDOMHeight=t.clientHeight,this.mustMeasureContent=!1;let a=0,l=0,c=parseInt(n.paddingTop)||0,u=parseInt(n.paddingBottom)||0;this.paddingTop==c&&this.paddingBottom==u||(this.paddingTop=c,this.paddingBottom=u,a|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(s=!0),this.editorWidth=e.scrollDOM.clientWidth,a|=8);let d=(this.printing?Lw:Iw)(t,this.paddingTop),f=d.top-this.pixelViewport.top,p=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let h=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(h!=this.inView&&(this.inView=h,h&&(s=!0)),!this.inView)return 0;let O=t.clientWidth;if(this.contentDOMWidth==O&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=O,this.editorHeight=e.scrollDOM.clientHeight,a|=8),s){let t=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(t)&&(o=!0),o||i.lineWrapping&&Math.abs(O-this.contentDOMWidth)>i.charWidth){let{lineHeight:n,charWidth:s}=e.docView.measureTextSize();o=i.refresh(r,n,s,O/s,t),o&&(e.docView.minWidth=0,a|=8)}f>0&&p>0?l=Math.max(f,p):f<0&&p<0&&(l=Math.min(f,p)),i.heightChanged=!1;for(let n of this.viewports){let r=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=this.heightMap.updateHeight(i,0,o,new Ew(n.from,r))}i.heightChanged&&(a|=2)}let m=!this.viewportIsAppropriate(this.viewport,l)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return m&&(this.viewport=this.getViewport(l,this.scrollTarget)),this.updateForViewport(),(2&a||m)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps)),a|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),a}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,r=this.state.doc,{visibleTop:o,visibleBottom:s}=this,a=new Fw(i.lineAt(o-1e3*n,Nw.ByHeight,r,0,0).from,i.lineAt(s+1e3*(1-n),Nw.ByHeight,r,0,0).to);if(t){let{head:e}=t.range;if(e<a.from||e>a.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),s=i.lineAt(e,Nw.ByPos,r,0,0);n="center"==t.y?(s.top+s.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e<a.from?s.top:s.bottom-o,a=new Fw(i.lineAt(n-500,Nw.ByHeight,r,0,0).from,i.lineAt(n+o+500,Nw.ByHeight,r,0,0).to)}}return a}mapViewport(e,t){let n=t.mapPos(e.from,-1),i=t.mapPos(e.to,1);return new Fw(this.heightMap.lineAt(n,Nw.ByPos,this.state.doc,0,0).from,this.heightMap.lineAt(i,Nw.ByPos,this.state.doc,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(e,Nw.ByPos,this.state.doc,0,0),{bottom:r}=this.heightMap.lineAt(t,Nw.ByPos,this.state.doc,0,0),{visibleTop:o,visibleBottom:s}=this;return(0==e||i<=o-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||r>=s+Math.max(10,Math.min(n,250)))&&i>o-2e3&&r<s+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let i of e)t.touchesRange(i.from,i.to)||n.push(new Zw(t.mapPos(i.from),t.mapPos(i.to),i.size));return n}ensureLineGaps(e){let t=[];if(this.defaultTextDirection!=Sv.LTR)return t;for(let n of this.viewportLines){if(n.length<4e3)continue;let i,r,o=Bw(n.from,n.to,this.stateDeco);if(o.total<4e3)continue;if(this.heightOracle.lineWrapping){let e=2e3/this.heightOracle.lineLength*this.heightOracle.lineHeight;i=Hw(o,(this.visibleTop-n.top-e)/n.height),r=Hw(o,(this.visibleBottom-n.top+e)/n.height)}else{let e=o.total*this.heightOracle.charWidth,t=2e3*this.heightOracle.charWidth;i=Hw(o,(this.pixelViewport.left-t)/e),r=Hw(o,(this.pixelViewport.right+t)/e)}let s=[];i>n.from&&s.push({from:n.from,to:i}),r<n.to&&s.push({from:r,to:n.to});let a=this.state.selection.main;a.from>=n.from&&a.from<=n.to&&Jw(s,a.from-10,a.from+10),!a.empty&&a.to>=n.from&&a.to<=n.to&&Jw(s,a.to-10,a.to+10);for(let{from:i,to:r}of s)r-i>1e3&&t.push(e$(e,(e=>e.from>=n.from&&e.to<=n.to&&Math.abs(e.from-i)<1e3&&Math.abs(e.to-r)<1e3))||new Zw(i,r,this.gapSize(n,i,r,o)))}return t}gapSize(e,t,n,i){let r=Kw(i,n)-Kw(i,t);return this.heightOracle.lineWrapping?e.height*r:i.total*this.heightOracle.charWidth*r}updateLineGaps(e){Zw.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=Lb.set(e.map((e=>e.draw(this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];yy.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||i$(this.heightMap.lineAt(e,Nw.ByPos,this.state.doc,0,0),this.scaler)}lineBlockAtHeight(e){return i$(this.heightMap.lineAt(this.scaler.fromDOM(e),Nw.ByHeight,this.state.doc,0,0),this.scaler)}elementAtHeight(e){return i$(this.heightMap.blockAt(this.scaler.fromDOM(e),this.state.doc,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Fw{constructor(e,t){this.from=e,this.to=t}}function Bw(e,t,n){let i=[],r=e,o=0;return yy.spans(n,e,t,{span(){},point(e,t){e>r&&(i.push({from:r,to:e}),o+=e-r),r=t}},20),r<t&&(i.push({from:r,to:t}),o+=t-r),{total:o,ranges:i}}function Hw({total:e,ranges:t},n){if(n<=0)return t[0].from;if(n>=1)return t[t.length-1].to;let i=Math.floor(e*n);for(let e=0;;e++){let{from:n,to:r}=t[e],o=r-n;if(i<=o)return n+i;i-=o}}function Kw(e,t){let n=0;for(let{from:i,to:r}of e.ranges){if(t<=r){n+=t-i;break}n+=r-i}return n/e.total}function Jw(e,t,n){for(let i=0;i<e.length;i++){let r=e[i];if(r.from<n&&r.to>t){let o=[];r.from<t&&o.push({from:r.from,to:t}),r.to>n&&o.push({from:n,to:r.to}),e.splice(i,1,...o),i+=o.length-1}}}function e$(e,t){for(let n of e)if(t(n))return n}const t$={toDOM:e=>e,fromDOM:e=>e,scale:1};class n${constructor(e,t,n){let i=0,r=0,o=0;this.viewports=n.map((({from:n,to:r})=>{let o=t.lineAt(n,Nw.ByPos,e,0,0).top,s=t.lineAt(r,Nw.ByPos,e,0,0).bottom;return i+=s-o,{from:n,to:r,top:o,bottom:s,domTop:0,domBottom:0}})),this.scale=(7e6-i)/(t.height-i);for(let e of this.viewports)e.domTop=o+(e.top-r)*this.scale,o=e.domBottom=e.domTop+(e.bottom-e.top),r=e.bottom}toDOM(e){for(let t=0,n=0,i=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.top)return i+(e-n)*this.scale;if(e<=r.bottom)return r.domTop+(e-r.top);n=r.bottom,i=r.domBottom}}fromDOM(e){for(let t=0,n=0,i=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.domTop)return n+(e-i)/this.scale;if(e<=r.domBottom)return r.top+(e-r.domTop);n=r.bottom,i=r.domBottom}}}function i$(e,t){if(1==t.scale)return e;let n=t.toDOM(e.top),i=t.toDOM(e.bottom);return new jw(e.from,e.length,n,i-n,Array.isArray(e.type)?e.type.map((e=>i$(e,t))):e.type)}const r$=xg.define({combine:e=>e.join(" ")}),o$=xg.define({combine:e=>e.indexOf(!0)>-1}),s$=Cy.newName(),a$=Cy.newName(),l$=Cy.newName(),c$={"&light":"."+a$,"&dark":"."+l$};function u$(e,t,n){return new Cy(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]})):e+" "+t})}const d$=u$("."+s$,{"&.cm-editor":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,minHeight:"100%",display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 4px"},".cm-selectionLayer":{zIndex:-1,contain:"size style"},".cm-selectionBackground":{position:"absolute"},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{zIndex:100,contain:"size style",pointerEvents:"none"},"&.cm-focused .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{position:"absolute",borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},"&.cm-focused .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#f3f9ff"},"&dark .cm-activeLine":{backgroundColor:"#223039"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},c$),f$={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},p$=Pb.ie&&Pb.ie_version<=11;class h${constructor(e,t,n){this.view=e,this.onChange=t,this.onScrollChanged=n,this.active=!1,this.selectionRange=new ib,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.scrollTargets=[],this.intersection=null,this.resize=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(Pb.ie&&Pb.ie_version<=11||Pb.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),p$&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resize=new ResizeObserver((()=>{this.view.docView.lastUpdate<Date.now()-75&&this.onResize()})),this.resize.observe(e.scrollDOM)),this.win=e.dom.ownerDocument.defaultView,this.addWindowListeners(this.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:t}=this,n=this.selectionRange;if(t.state.facet(fv)?t.root.activeElement!=this.dom:!Yy(t.dom,n))return;let i=n.anchorNode&&t.docView.nearest(n.anchorNode);i&&i.ignoreEvent(e)||((Pb.ie&&Pb.ie_version<=11||Pb.android&&Pb.chrome)&&!t.state.selection.main.empty&&n.focusNode&&By(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1))}readSelectionRange(){let{view:e}=this,t=Pb.safari&&11==e.root.nodeType&&function(){let e=document.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}()==this.dom&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),document.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let i=t.startContainer,r=t.startOffset,o=t.endContainer,s=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor);By(a.node,a.offset,o,s)&&([i,r,o,s]=[o,s,i,r]);return{anchorNode:i,anchorOffset:r,focusNode:o,focusOffset:s}}(this.view)||Zy(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=Yy(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let n=t.focusNode,i=t.focusOffset;if(!n||t.anchorNode!=n||t.anchorOffset!=i)return!1;for(;;)if(i){if(1!=n.nodeType)return!1;let e=n.childNodes[i-1];"false"==e.contentEditable?i--:(n=e,i=Jy(n))}else{if(n==e)return!0;i=Hy(n),n=n.parentNode}}(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(1==n.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else{if(11!=n.nodeType)break;n=n.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,f$),p$&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),p$&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){this.delayedAndroidKey||requestAnimationFrame((()=>{let e=this.delayedAndroidKey;this.delayedAndroidKey=null,this.delayedFlush=-1,this.flush()||lb(this.dom,e.key,e.keyCode)})),this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t})}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=window.setTimeout((()=>{this.delayedFlush=-1,this.flush()}),20))}forceFlush(){this.delayedFlush>=0&&(window.clearTimeout(this.delayedFlush),this.delayedFlush=-1),this.flush()}processRecords(){let e=this.queue;for(let t of this.observer.takeRecords())e.push(t);e.length&&(this.queue=[]);let t=-1,n=-1,i=!1;for(let r of e){let e=this.readMutation(r);e&&(e.typeOver&&(i=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:i}}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return;e&&this.readSelectionRange();let{from:t,to:n,typeOver:i}=this.processRecords(),r=this.selectionChanged&&Yy(this.dom,this.selectionRange);if(t<0&&!r)return;this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=this.view.state,s=this.onChange(t,n,i);return this.view.state==o&&this.view.update([]),s}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.dirty|=4),"childList"==e.type){let n=O$(t,e.previousSibling||e.target.previousSibling,-1),i=O$(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:i?t.posBefore(i):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resize)||void 0===n||n.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout)}}function O$(e,t,n){for(;t;){let i=fb.get(t);if(i&&i.parent==e)return i;let r=t.parentNode;t=r!=e.dom?r:n>0?t.nextSibling:t.previousSibling}return null}function m$(e,t,n,i){let r,o,s=e.state.selection.main;if(t>-1){let i=e.docView.domBoundsAround(t,n,0);if(!i||e.state.readOnly)return!1;let{from:a,to:l}=i,c=e.docView.impreciseHead||e.docView.impreciseAnchor?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:o}=e.observer.selectionRange;n&&(t.push(new Uv(n,i)),r==n&&o==i||t.push(new Uv(r,o)));return t}(e),u=new Mv(c,e.state);u.readRange(i.startDOM,i.endDOM);let d=s.from,f=null;(8===e.inputState.lastKeyCode&&e.inputState.lastKeyTime>Date.now()-100||Pb.android&&u.text.length<l-a)&&(d=s.to,f="end");let p=function(e,t,n,i){let r=Math.min(e.length,t.length),o=0;for(;o<r&&e.charCodeAt(o)==t.charCodeAt(o);)o++;if(o==r&&e.length==t.length)return null;let s=e.length,a=t.length;for(;s>0&&a>0&&e.charCodeAt(s-1)==t.charCodeAt(a-1);)s--,a--;if("end"==i){n-=s+Math.max(0,o-Math.min(s,a))-o}if(s<o&&e.length<t.length){o-=n<=o&&n>=s?o-n:0,a=o+(a-s),s=o}else if(a<o){o-=n<=o&&n>=a?o-n:0,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}(e.state.doc.sliceString(a,l,Vv),u.text,d-a,f);p&&(Pb.chrome&&13==e.inputState.lastKeyCode&&p.toB==p.from+2&&""==u.text.slice(p.from,p.toB)&&p.toB--,r={from:a+p.from,to:a+p.toA,insert:Im.of(u.text.slice(p.from,p.toB).split(Vv))}),o=function(e,t){if(0==e.length)return null;let n=e[0].pos,i=2==e.length?e[1].pos:n;return n>-1&&i>-1?wg.single(n+t,i+t):null}(c,a)}else if(e.hasFocus||!e.state.facet(fv)){let t=e.observer.selectionRange,{impreciseHead:n,impreciseAnchor:i}=e.docView,r=n&&n.node==t.focusNode&&n.offset==t.focusOffset||!Gy(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),a=i&&i.node==t.anchorNode&&i.offset==t.anchorOffset||!Gy(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);r==s.head&&a==s.anchor||(o=wg.single(a,r))}if(!r&&!o)return!1;if(!r&&i&&!s.empty&&o&&o.main.empty?r={from:s.from,to:s.to,insert:e.state.doc.slice(s.from,s.to)}:r&&r.from>=s.from&&r.to<=s.to&&(r.from!=s.from||r.to!=s.to)&&s.to-s.from-(r.to-r.from)<=4?r={from:s.from,to:s.to,insert:e.state.doc.slice(s.from,r.from).append(r.insert).append(e.state.doc.slice(r.to,s.to))}:(Pb.mac||Pb.android)&&r&&r.from==r.to&&r.from==s.head-1&&"."==r.insert.toString()&&(r={from:s.from,to:s.to,insert:Im.of([" "])}),r){let t=e.state;if(Pb.ios&&e.inputState.flushIOSKey(e))return!0;if(Pb.android&&(r.from==s.from&&r.to==s.to&&1==r.insert.length&&2==r.insert.lines&&lb(e.contentDOM,"Enter",13)||r.from==s.from-1&&r.to==s.to&&0==r.insert.length&&lb(e.contentDOM,"Backspace",8)||r.from==s.from&&r.to==s.to+1&&0==r.insert.length&&lb(e.contentDOM,"Delete",46)))return!0;let n,i=r.insert.toString();if(e.state.facet(av).some((t=>t(e,r.from,r.to,i))))return!0;if(e.inputState.composing>=0&&e.inputState.composing++,r.from>=s.from&&r.to<=s.to&&r.to-r.from>=(s.to-s.from)/3&&(!o||o.main.empty&&o.main.from==r.from+r.insert.length)&&e.inputState.composing<0){let i=s.from<r.from?t.sliceDoc(s.from,r.from):"",o=s.to>r.to?t.sliceDoc(r.to,s.to):"";n=t.replaceSelection(e.state.toText(i+r.insert.sliceString(0,void 0,e.state.lineBreak)+o))}else{let i=t.changes(r),a=o&&!t.selection.main.eq(o.main)&&o.main.to<=i.newLength?o.main:void 0;if(t.selection.ranges.length>1&&e.inputState.composing>=0&&r.to<=s.to&&r.to>=s.to-10){let o=e.state.sliceDoc(r.from,r.to),l=Zv(e)||e.state.doc.lineAt(s.head),c=s.to-r.to,u=s.to-s.from;n=t.changeByRange((n=>{if(n.from==s.from&&n.to==s.to)return{changes:i,range:a||n.map(i)};let d=n.to-c,f=d-o.length;if(n.to-n.from!=u||e.state.sliceDoc(f,d)!=o||l&&n.to>=l.from&&n.from<=l.to)return{range:n};let p=t.changes({from:f,to:d,insert:r.insert}),h=n.to-s.to;return{changes:p,range:a?wg.range(Math.max(0,a.anchor+h),Math.max(0,a.head+h)):n.map(p)}}))}else n={changes:i,selection:a&&t.selection.replaceRange(a)}}let a="input.type";return e.composing&&(a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),e.dispatch(n,{scrollIntoView:!0,userEvent:a}),!0}if(o&&!o.main.eq(s)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:o,scrollIntoView:t,userEvent:n}),!0}return!1}class g${constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: absolute; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),this._dispatch=e.dispatch||(e=>this.update([e])),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new Yw(e.state||fy.create(e)),this.plugins=this.state.facet(hv).map((e=>new mv(e)));for(let e of this.plugins)e.update(this);this.observer=new h$(this,((e,t,n)=>m$(this,e,t,n)),(e=>{this.inputState.runScrollHandlers(this,e),this.observer.intersecting&&this.measure()})),this.inputState=new aw(this),this.inputState.ensureHandlers(this,this.plugins),this.docView=new Iv(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}dispatch(...e){this._dispatch(1==e.length&&e[0]instanceof ty?e[0]:this.state.update(...e))}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,n=!1,i=!1,r=this.state;for(let t of e){if(t.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=t.state}if(this.destroyed)return void(this.viewState.state=r);if(this.observer.clear(),r.facet(fy.phrases)!=this.state.facet(fy.phrases))return this.setState(r);t=xv.create(this,r,e);let o=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(o&&(o=o.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;o=new cv(e.empty?e:wg.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(uv)&&(o=e.value)}this.viewState.update(t,o),this.bidiCache=v$.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet($v)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(r$)!=t.state.facet(r$)&&(this.viewState.mustMeasureContent=!0),(n||i||o||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let e of this.state.facet(sv))e(t)}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new Yw(e),this.plugins=e.facet(hv).map((e=>new mv(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView=new Iv(this),this.inputState.ensureHandlers(this,this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(hv),n=e.state.facet(hv);if(t!=n){let i=[];for(let r of n){let n=t.indexOf(r);if(n<0)i.push(new mv(r));else{let t=this.plugins[n];t.mustUpdate=e,i.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=i,this.pluginMap.clear(),this.inputState.ensureHandlers(this,this.plugins)}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this)}measure(e=!0){if(this.destroyed)return;this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,{scrollHeight:n,scrollTop:i,clientHeight:r}=this.scrollDOM,o=i>n-r-4?n:i;try{for(let e=0;;e++){this.updateState=1;let n=this.viewport,i=this.viewState.lineBlockAtHeight(o),r=this.viewState.measure(this);if(!r&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let s=[];4&r||([this.measureRequests,s]=[s,this.measureRequests]);let a=s.map((e=>{try{return e.read(this)}catch(e){return dv(this.state,e),b$}})),l=xv.create(this,this.state,[]),c=!1,u=!1;l.flags|=r,t?t.flags|=r:t=l,this.updateState=2,l.empty||(this.updatePlugins(l),this.inputState.update(l),this.updateAttrs(),c=this.docView.update(l));for(let e=0;e<s.length;e++)if(a[e]!=b$)try{let t=s[e];t.write&&t.write(a[e],this)}catch(e){dv(this.state,e)}if(this.viewState.scrollTarget)this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,u=!0;else{let e=this.viewState.lineBlockAt(i.from).top-i.top;(e>1||e<-1)&&(this.scrollDOM.scrollTop+=e,u=!0)}if(c&&this.docView.updateSelection(!0),this.viewport.from==n.from&&this.viewport.to==n.to&&!u&&0==this.measureRequests.length)break}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(sv))e(t)}get themeClasses(){return s$+" "+(this.state.facet(o$)?l$:a$)+" "+this.state.facet(r$)}updateAttrs(){let e=w$(this,gv,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(fv)?"true":"false",class:"cm-content",style:`${Pb.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),w$(this,yv,t);let n=this.observer.ignore((()=>{let n=Xb(this.contentDOM,this.contentAttrs,t),i=Xb(this.dom,this.editorAttrs,e);return n||i}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)if(e.is(g$.announce)){t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value}}mountStyles(){this.styleModules=this.state.facet($v),Cy.mount(this.root,this.styleModules.concat(d$).reverse())}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=requestAnimationFrame((()=>this.measure()))),e){if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find((t=>t.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return sw(this,e,ow(this,e,t,n))}moveByGroup(e,t){return sw(this,e,ow(this,e,t,(t=>function(e,t,n){let i=e.state.charCategorizer(t),r=i(n);return e=>{let t=i(e);return r==ly.Space&&(r=t),r==t}}(this,e.head,t))))}moveToLineBoundary(e,t,n=!0){return function(e,t,n,i){let r=e.state.doc.lineAt(t.head),o=i&&e.lineWrapping?e.coordsAtPos(t.assoc<0&&t.head>r.from?t.head-1:t.head):null;if(o){let t=e.dom.getBoundingClientRect(),i=e.textDirectionAt(r.from),s=e.posAtCoords({x:n==(i==Sv.LTR)?t.right-1:t.left+1,y:(o.top+o.bottom)/2});if(null!=s)return wg.cursor(s,n?-1:1)}let s=Hb.find(e.docView,t.head),a=s?n?s.posAtEnd:s.posAtStart:n?r.to:r.from;return wg.cursor(a,n?-1:1)}(this,e,t,n)}moveVertically(e,t,n){return sw(this,e,function(e,t,n,i){let r=t.head,o=n?1:-1;if(r==(n?e.state.doc.length:0))return wg.cursor(r,t.assoc);let s,a=t.goalColumn,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(r),u=e.documentTop;if(c)null==a&&(a=c.left-l.left),s=o<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(r);null==a&&(a=Math.min(l.right-l.left,e.defaultCharacterWidth*(r-t.from))),s=(o<0?t.top:t.bottom)+u}let d=l.left+a,f=null!=i?i:e.defaultLineHeight>>1;for(let n=0;;n+=10){let i=s+(f+n)*o,c=iw(e,{x:d,y:i},!1,o);if(i<l.top||i>l.bottom||(o<0?c<r:c>r))return wg.cursor(c,t.assoc,void 0,a)}}(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),iw(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let i=this.state.doc.lineAt(e),r=this.bidiSpans(i);return tb(n,r[Nv.find(r,e-i.from,-1,t)].dir==Sv.LTR==t>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(lv)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>y$)return zv(e.length);let t=this.textDirectionAt(e.from);for(let n of this.bidiCache)if(n.from==e.from&&n.dir==t)return n.order;let n=Av(e.text,t);return this.bidiCache.push(new v$(e.from,e.to,t,n)),n}get hasFocus(){var e;return(document.hasFocus()||Pb.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{sb(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return uv.of(new cv("number"==typeof e?wg.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}static domEventHandlers(e){return Ov.define((()=>({})),{eventHandlers:e})}static theme(e,t){let n=Cy.newName(),i=[r$.of(n),$v.of(u$(`.${n}`,e))];return t&&t.dark&&i.push(o$.of(!0)),i}static baseTheme(e){return zg.lowest($v.of(u$("."+s$,e,c$)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),i=n&&fb.get(n)||fb.get(e);return(null===(t=null==i?void 0:i.rootView)||void 0===t?void 0:t.view)||null}}g$.styleModule=$v,g$.inputHandler=av,g$.perLineTextDirection=lv,g$.exceptionSink=ov,g$.updateListener=sv,g$.editable=fv,g$.mouseSelectionStyle=rv,g$.dragMovesSelection=iv,g$.clickAddsSelectionRange=nv,g$.decorations=bv,g$.atomicRanges=vv,g$.scrollMargins=wv,g$.darkTheme=o$,g$.contentAttributes=yv,g$.editorAttributes=gv,g$.lineWrapping=g$.contentAttributes.of({class:"cm-lineWrapping"}),g$.announce=ey.define();const y$=4096,b$={};class v${constructor(e,t,n,i){this.from=e,this.to=t,this.dir=n,this.order=i}static update(e,t){if(t.empty)return e;let n=[],i=e.length?e[e.length-1].dir:Sv.LTR;for(let r=Math.max(0,e.length-10);r<e.length;r++){let o=e[r];o.dir!=i||t.touchesRange(o.from,o.to)||n.push(new v$(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.order))}return n}}function w$(e,t,n){for(let i=e.state.facet(t),r=i.length-1;r>=0;r--){let t=i[r],o="function"==typeof t?t(e):t;o&&Vb(o,n)}return n}const $$=Pb.mac?"mac":Pb.windows?"win":Pb.linux?"linux":"key";function _$(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const x$=zg.default(g$.domEventHandlers({keydown:(e,t)=>T$(k$(t.state),e,t,"editor")})),S$=xg.define({enables:x$}),Q$=new WeakMap;function k$(e){let t=e.facet(S$),n=Q$.get(t);return n||Q$.set(t,n=function(e,t=$$){let n=Object.create(null),i=Object.create(null),r=(e,t)=>{let n=i[e];if(null==n)i[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,i,o,s)=>{let a=n[e]||(n[e]=Object.create(null)),l=i.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let i,r,o,s,a=n[n.length-1];"Space"==a&&(a=" ");for(let e=0;e<n.length-1;++e){const a=n[e];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))i=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))o=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);"mac"==t?s=!0:r=!0}}return i&&(a="Alt-"+a),r&&(a="Ctrl-"+a),s&&(a="Meta-"+a),o&&(a="Shift-"+a),a}(e,t)));for(let t=1;t<l.length;t++){let n=l.slice(0,t).join(" ");r(n,!0),a[n]||(a[n]={preventDefault:!0,commands:[t=>{let i=P$={view:t,prefix:n,scope:e};return setTimeout((()=>{P$==i&&(P$=null)}),4e3),!0}]})}let c=l.join(" ");r(c,!1);let u=a[c]||(a[c]={preventDefault:!1,commands:[]});u.commands.push(o),s&&(u.preventDefault=!0)};for(let n of e){let e=n[t]||n.key;if(e)for(let t of n.scope?n.scope.split(" "):["editor"])o(t,e,n.run,n.preventDefault),n.shift&&o(t,"Shift-"+e,n.shift,n.preventDefault)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}let P$=null;function T$(e,t,n,i){let r=function(e){var t=!(Uy&&(e.ctrlKey||e.altKey||e.metaKey)||Xy&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?Wy:Dy)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),o=ag(r,0),s=cg(o)==r.length&&" "!=r,a="",l=!1;P$&&P$.view==n&&P$.scope==i&&(a=P$.prefix+" ",(l=cw.indexOf(t.keyCode)<0)&&(P$=null));let c,u=e=>{if(e){for(let t of e.commands)if(t(n))return!0;e.preventDefault&&(l=!0)}return!1},d=e[i];if(d){if(u(d[a+_$(r,t,!s)]))return!0;if(s&&(t.shiftKey||t.altKey||t.metaKey||o>127)&&(c=Dy[t.keyCode])&&c!=r){if(u(d[a+_$(c,t,!0)]))return!0;if(t.shiftKey&&Wy[t.keyCode]!=c&&u(d[a+_$(Wy[t.keyCode],t,!1)]))return!0}else if(s&&t.shiftKey&&u(d[a+_$(r,t,!0)]))return!0}return l}const q$=!Pb.ios,R$=xg.define({combine:e=>py(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function E$(e={}){return[R$.of(e),N$,A$]}class j${constructor(e,t,n,i,r){this.left=e,this.top=t,this.width=n,this.height=i,this.className=r}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width>=0&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}}const N$=Ov.fromClass(class{constructor(e){this.view=e,this.rangePieces=[],this.cursors=[],this.measureReq={read:this.readPos.bind(this),write:this.drawSel.bind(this)},this.selectionLayer=e.scrollDOM.appendChild(document.createElement("div")),this.selectionLayer.className="cm-selectionLayer",this.selectionLayer.setAttribute("aria-hidden","true"),this.cursorLayer=e.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className="cm-cursorLayer",this.cursorLayer.setAttribute("aria-hidden","true"),e.requestMeasure(this.measureReq),this.setBlinkRate()}setBlinkRate(){this.cursorLayer.style.animationDuration=this.view.state.facet(R$).cursorBlinkRate+"ms"}update(e){let t=e.startState.facet(R$)!=e.state.facet(R$);(t||e.selectionSet||e.geometryChanged||e.viewportChanged)&&this.view.requestMeasure(this.measureReq),e.transactions.some((e=>e.scrollIntoView))&&(this.cursorLayer.style.animationName="cm-blink"==this.cursorLayer.style.animationName?"cm-blink2":"cm-blink"),t&&this.setBlinkRate()}readPos(){let{state:e}=this.view,t=e.facet(R$),n=e.selection.ranges.map((e=>e.empty?[]:function(e,t){if(t.to<=e.viewport.from||t.from>=e.viewport.to)return[];let n=Math.max(t.from,e.viewport.from),i=Math.min(t.to,e.viewport.to),r=e.textDirection==Sv.LTR,o=e.contentDOM,s=o.getBoundingClientRect(),a=z$(e),l=window.getComputedStyle(o.firstChild),c=s.left+parseInt(l.paddingLeft)+Math.min(0,parseInt(l.textIndent)),u=s.right-parseInt(l.paddingRight),d=W$(e,n),f=W$(e,i),p=d.type==Ib.Text?d:null,h=f.type==Ib.Text?f:null;e.lineWrapping&&(p&&(p=D$(e,n,p)),h&&(h=D$(e,i,h)));if(p&&h&&p.from==h.from)return m(g(t.from,t.to,p));{let n=p?g(t.from,null,p):y(d,!1),i=h?g(null,t.to,h):y(f,!0),r=[];return(p||d).to<(h||f).from-1?r.push(O(c,n.bottom,u,i.top)):n.bottom<i.top&&e.elementAtHeight((n.bottom+i.top)/2).type==Ib.Text&&(n.bottom=i.top=(n.bottom+i.top)/2),m(n).concat(r).concat(m(i))}function O(e,t,n,i){return new j$(e-a.left,t-a.top-.01,n-e,i-t+.01,"cm-selectionBackground")}function m({top:e,bottom:t,horizontal:n}){let i=[];for(let r=0;r<n.length;r+=2)i.push(O(n[r],e,n[r+1],t));return i}function g(t,n,i){let o=1e9,s=-1e9,a=[];function l(t,n,l,d,f){let p=e.coordsAtPos(t,t==i.to?-2:2),h=e.coordsAtPos(l,l==i.from?2:-2);o=Math.min(p.top,h.top,o),s=Math.max(p.bottom,h.bottom,s),f==Sv.LTR?a.push(r&&n?c:p.left,r&&d?u:h.right):a.push(!r&&d?c:h.left,!r&&n?u:p.right)}let d=null!=t?t:i.from,f=null!=n?n:i.to;for(let i of e.visibleRanges)if(i.to>d&&i.from<f)for(let r=Math.max(i.from,d),o=Math.min(i.to,f);;){let i=e.state.doc.lineAt(r);for(let s of e.bidiSpans(i)){let e=s.from+i.from,a=s.to+i.from;if(e>=o)break;a>r&&l(Math.max(e,r),null==t&&e<=d,Math.min(a,o),null==n&&a>=f,s.dir)}if(r=i.to+1,r>=o)break}return 0==a.length&&l(d,null==t,f,null==n,e.textDirection),{top:o,bottom:s,horizontal:a}}function y(e,t){let n=s.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(this.view,e))).reduce(((e,t)=>e.concat(t))),i=[];for(let n of e.selection.ranges){let r=n==e.selection.main;if(n.empty?!r||q$:t.drawRangeCursor){let e=V$(this.view,n,r);e&&i.push(e)}}return{rangePieces:n,cursors:i}}drawSel({rangePieces:e,cursors:t}){if(e.length!=this.rangePieces.length||e.some(((e,t)=>!e.eq(this.rangePieces[t])))){this.selectionLayer.textContent="";for(let t of e)this.selectionLayer.appendChild(t.draw());this.rangePieces=e}if(t.length!=this.cursors.length||t.some(((e,t)=>!e.eq(this.cursors[t])))){let e=this.cursorLayer.children;if(e.length!==t.length){this.cursorLayer.textContent="";for(const e of t)this.cursorLayer.appendChild(e.draw())}else t.forEach(((t,n)=>t.adjust(e[n])));this.cursors=t}}destroy(){this.selectionLayer.remove(),this.cursorLayer.remove()}}),C$={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};q$&&(C$[".cm-line"].caretColor="transparent !important");const A$=zg.highest(g$.theme(C$));function z$(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Sv.LTR?t.left:t.right-e.scrollDOM.clientWidth)-e.scrollDOM.scrollLeft,top:t.top-e.scrollDOM.scrollTop}}function D$(e,t,n){let i=wg.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(i,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(i,!0,!0).from),type:Ib.Text}}function W$(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type))for(let e of n.type)if(e.to>t||e.to==t&&(e.to==n.to||e.type==Ib.Text))return e;return n}function V$(e,t,n){let i=e.coordsAtPos(t.head,t.assoc||1);if(!i)return null;let r=z$(e);return new j$(i.left-r.left,i.top-r.top,-1,i.bottom-i.top,n?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary")}const M$=ey.define({map:(e,t)=>null==e?null:t.mapPos(e)}),X$=Rg.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(M$)?t.value:e),e))}),U$=Ov.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(X$);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(X$)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let e=this.view.state.field(X$),t=null!=e&&this.view.coordsAtPos(e);if(!t)return null;let n=this.view.scrollDOM.getBoundingClientRect();return{left:t.left-n.left+this.view.scrollDOM.scrollLeft,top:t.top-n.top+this.view.scrollDOM.scrollTop,height:t.bottom-t.top}}drawCursor(e){this.cursor&&(e?(this.cursor.style.left=e.left+"px",this.cursor.style.top=e.top+"px",this.cursor.style.height=e.height+"px"):this.cursor.style.left="-100000px")}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(X$)!=e&&this.view.dispatch({effects:M$.of(e)})}},{eventHandlers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function I$(e,t,n,i,r){t.lastIndex=0;for(let o,s=e.iterRange(n,i),a=n;!s.next().done;a+=s.value.length)if(!s.lineBreak)for(;o=t.exec(s.value);)r(a+o.index,o)}class L${constructor(e){const{regexp:t,decoration:n,decorate:i,boundary:r,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,i)this.addMatch=(e,t,n,r)=>i(r,n,n+e[0].length,e,t);else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");{let e="function"==typeof n?n:()=>n;this.addMatch=(t,n,i,r)=>r(i,i+t[0].length,e(t,n,i))}}this.boundary=r,this.maxLength=o}createDeco(e){let t=new by,n=t.add.bind(t);for(let{from:t,to:i}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let i=[];for(let{from:r,to:o}of n)r=Math.max(e.state.doc.lineAt(r).from,r-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),i.length&&i[i.length-1].to>=r?i[i.length-1].to=o:i.push({from:r,to:o});return i}(e,this.maxLength))I$(e.state.doc,this.regexp,t,i,((t,i)=>this.addMatch(i,e,t,n)));return t.finish()}updateDeco(e,t){let n=1e9,i=-1;return e.docChanged&&e.changes.iterChanges(((t,r,o,s)=>{s>e.view.viewport.from&&o<e.view.viewport.to&&(n=Math.min(o,n),i=Math.max(s,i))})),e.viewportChanged||i-n>1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,t.map(e.changes),n,i):t}updateRange(e,t,n,i){for(let r of e.visibleRanges){let o=Math.max(r.from,n),s=Math.min(r.to,i);if(s>o){let n=e.state.doc.lineAt(o),i=n.to<s?e.state.doc.lineAt(s):n,a=Math.max(r.from,n.from),l=Math.min(r.to,i.to);if(this.boundary){for(;o>n.from;o--)if(this.boundary.test(n.text[o-1-n.from])){a=o;break}for(;s<i.to;s++)if(this.boundary.test(i.text[s-i.from])){l=s;break}}let c,u=[],d=(e,t,n)=>u.push(n.range(e,t));if(n==i)for(this.regexp.lastIndex=a-n.from;(c=this.regexp.exec(n.text))&&c.index<l-n.from;)this.addMatch(c,e,c.index+n.from,d);else I$(e.state.doc,this.regexp,a,l,((t,n)=>this.addMatch(n,e,t,d)));t=t.update({filterFrom:a,filterTo:l,filter:(e,t)=>e<a||t>l,add:u})}}return t}}const Z$=null!=/x/.unicode?"gu":"g",G$=new RegExp("[\0-\b\n--\u2028\u2029\ufeff-]",Z$),Y$={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let F$=null;const B$=xg.define({combine(e){let t=py(e,{render:null,specialChars:G$,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==F$&&"undefined"!=typeof document&&document.body){let t=document.body.style;F$=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return F$||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,Z$)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,Z$)),t}});function H$(e={}){return[B$.of(e),K$||(K$=Ov.fromClass(class{constructor(e){this.view=e,this.decorations=Lb.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(B$)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new L$({regexp:e.specialChars,decoration:(t,n,i)=>{let{doc:r}=n.state,o=ag(t[0],0);if(9==o){let e=r.lineAt(i),t=n.state.tabSize,o=qy(e.text,t,i-e.from);return Lb.replace({widget:new e_((t-o%t)*this.view.defaultCharacterWidth)})}return this.decorationCache[o]||(this.decorationCache[o]=Lb.replace({widget:new J$(e,o)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(B$);e.startState.facet(B$)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let K$=null;class J$ extends Ub{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=function(e){return e>=32?"•":10==e?"":String.fromCharCode(9216+e)}(this.code),n=e.state.phrase("Control character")+" "+(Y$[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,n,t);if(i)return i;let r=document.createElement("span");return r.textContent=t,r.title=n,r.setAttribute("aria-label",n),r.className="cm-specialChar",r}ignoreEvent(){return!1}}class e_ extends Ub{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const t_=Lb.line({class:"cm-activeLine"}),n_=Ov.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let i of e.state.selection.ranges){if(!i.empty)return Lb.none;let r=e.lineBlockAt(i.head);r.from>t&&(n.push(t_.range(r.from)),t=r.from)}return Lb.set(n)}},{decorations:e=>e.decorations});const i_=2e3;function r_(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),i=e.state.doc.lineAt(n),r=n-i.from,o=r>i_?-1:r==i.length?function(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):qy(i.text,e.state.tabSize,n-i.from);return{line:i.number,col:o,off:r}}function o_(e,t){let n=r_(e,t),i=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),r=e.state.doc.lineAt(t);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},i=i.map(e.changes)}},get(t,r,o){let s=r_(e,t);if(!s)return i;let a=function(e,t,n){let i=Math.min(t.line,n.line),r=Math.max(t.line,n.line),o=[];if(t.off>i_||n.off>i_||t.col<0||n.col<0){let s=Math.min(t.off,n.off),a=Math.max(t.off,n.off);for(let t=i;t<=r;t++){let n=e.doc.line(t);n.length<=a&&o.push(wg.range(n.from+s,n.to+a))}}else{let s=Math.min(t.col,n.col),a=Math.max(t.col,n.col);for(let t=i;t<=r;t++){let n=e.doc.line(t),i=Ry(n.text,s,e.tabSize,!0);if(i>-1){let t=Ry(n.text,a,e.tabSize);o.push(wg.range(n.from+i,n.from+t))}}}return o}(e.state,n,s);return a.length?o?wg.create(a.concat(i.ranges)):wg.create(a):i}}:null}function s_(e){let t=(null==e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return g$.mouseSelectionStyle.of(((e,n)=>t(n)?o_(e,n):null))}const a_={Alt:[18,e=>e.altKey],Control:[17,e=>e.ctrlKey],Shift:[16,e=>e.shiftKey],Meta:[91,e=>e.metaKey]},l_={style:"cursor: crosshair"};function c_(e={}){let[t,n]=a_[e.key||"Alt"],i=Ov.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventHandlers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)}}});return[i,g$.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(i))||void 0===t?void 0:t.isDown)?l_:null}))]}const u_="-10000px";class d_{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e)),this.tooltipViews=this.tooltips.map(n)}update(e){let t=e.state.facet(this.facet),n=t.filter((e=>e));if(t===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let i=[];for(let t=0;t<n.length;t++){let r=n[t],o=-1;if(r){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==r.create&&(o=e)}if(o<0)i[t]=this.createTooltipView(r);else{let n=i[t]=this.tooltipViews[o];n.update&&n.update(e)}}}for(let e of this.tooltipViews)i.indexOf(e)<0&&e.dom.remove();return this.input=t,this.tooltips=n,this.tooltipViews=i,!0}}function f_(){return{top:0,left:0,bottom:innerHeight,right:innerWidth}}const p_=xg.define({combine:e=>{var t,n,i;return{position:Pb.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find((e=>e.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(i=e.find((e=>e.tooltipSpace)))||void 0===i?void 0:i.tooltipSpace)||f_}}}),h_=Ov.fromClass(class{constructor(e){var t;this.view=e,this.inView=!0,this.lastTransaction=0,this.measureTimeout=-1;let n=e.state.facet(p_);this.position=n.position,this.parent=n.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new d_(e,g_,(e=>this.createTooltip(e))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),null===(t=e.dom.ownerDocument.defaultView)||void 0===t||t.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e);t&&this.observeIntersection();let n=t||e.geometryChanged,i=e.state.facet(p_);if(i.position!=this.position){this.position=i.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=u_,this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;null===(e=this.view.dom.ownerDocument.defaultView)||void 0===e||e.removeEventListener("resize",this.measureSoon);for(let{dom:e}of this.manager.tooltipViews)e.remove();null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect();return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),space:this.view.state.facet(p_).tooltipSpace(this.view)}}writeMeasure(e){let{editor:t,space:n}=e,i=[];for(let r=0;r<this.manager.tooltips.length;r++){let o=this.manager.tooltips[r],s=this.manager.tooltipViews[r],{dom:a}=s,l=e.pos[r],c=e.size[r];if(!l||l.bottom<=Math.max(t.top,n.top)||l.top>=Math.min(t.bottom,n.bottom)||l.right<Math.max(t.left,n.left)-.1||l.left>Math.min(t.right,n.right)+.1){a.style.top=u_;continue}let u=o.arrow?s.dom.querySelector(".cm-tooltip-arrow"):null,d=u?7:0,f=c.right-c.left,p=c.bottom-c.top,h=s.offset||m_,O=this.view.textDirection==Sv.LTR,m=c.width>n.right-n.left?O?n.left:n.right-c.width:O?Math.min(l.left-(u?14:0)+h.x,n.right-f):Math.max(n.left,l.left-f+(u?14:0)-h.x),g=!!o.above;!o.strictSide&&(g?l.top-(c.bottom-c.top)-h.y<n.top:l.bottom+(c.bottom-c.top)+h.y>n.bottom)&&g==n.bottom-l.bottom>l.top-n.top&&(g=!g);let y=g?l.top-p-d-h.y:l.bottom+d+h.y,b=m+f;if(!0!==s.overlap)for(let e of i)e.left<b&&e.right>m&&e.top<y+p&&e.bottom>y&&(y=g?e.top-p-2-d:e.bottom+d+2);"absolute"==this.position?(a.style.top=y-e.parent.top+"px",a.style.left=m-e.parent.left+"px"):(a.style.top=y+"px",a.style.left=m+"px"),u&&(u.style.left=l.left+(O?h.x:-h.x)-(m+14-7)+"px"),!0!==s.overlap&&i.push({left:m,top:y,right:b,bottom:y+p}),a.classList.toggle("cm-tooltip-above",g),a.classList.toggle("cm-tooltip-below",!g),s.positioned&&s.positioned()}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=u_}},{eventHandlers:{scroll(){this.maybeMeasure()}}}),O_=g$.baseTheme({".cm-tooltip":{zIndex:100},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),m_={x:0,y:0},g_=xg.define({enables:[h_,O_]}),y_=xg.define();class b_{constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new d_(e,y_,(e=>this.createHostedView(e)))}static create(e){return new b_(e)}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(){for(let e of this.manager.tooltipViews)e.positioned&&e.positioned()}update(e){this.manager.update(e)}}const v_=g_.compute([y_],(e=>{let t=e.facet(y_).filter((e=>e));return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.filter((e=>null!=e.end)).map((e=>e.end))),create:b_.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class w_{constructor(e,t,n,i,r){this.view=e,this.source=t,this.field=n,this.setHover=i,this.hoverTime=r,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{lastMove:e}=this,t=this.view.contentDOM.contains(e.target)?this.view.posAtCoords(e):null;if(null==t)return;let n=this.view.coordsAtPos(t);if(null==n||e.y<n.top||e.y>n.bottom||e.x<n.left-this.view.defaultCharacterWidth||e.x>n.right+this.view.defaultCharacterWidth)return;let i=this.view.bidiSpans(this.view.state.doc.lineAt(t)).find((e=>e.from<=t&&e.to>=t)),r=i&&i.dir==Sv.RTL?-1:1,o=this.source(this.view,t,e.x<n.left?-r:r);if(null==o?void 0:o.then){let e=this.pending={pos:t};o.then((t=>{this.pending==e&&(this.pending=null,t&&this.view.dispatch({effects:this.setHover.of(t)}))}),(e=>dv(this.view.state,e,"hover tooltip")))}else o&&this.view.dispatch({effects:this.setHover.of(o)})}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let n=this.active;if(n&&!function(e){for(let t=e;t;t=t.parentNode)if(1==t.nodeType&&t.classList.contains("cm-tooltip"))return!0;return!1}(this.lastMove.target)||this.pending){let{pos:i}=n||this.pending,r=null!==(t=null==n?void 0:n.end)&&void 0!==t?t:i;(i==r?this.view.posAtCoords(this.lastMove)==i:function(e,t,n,i,r,o){let s=document.createRange(),a=e.domAtPos(t),l=e.domAtPos(n);s.setEnd(l.node,l.offset),s.setStart(a.node,a.offset);let c=s.getClientRects();s.detach();for(let e=0;e<c.length;e++){let t=c[e];if(Math.max(t.top-r,r-t.bottom,t.left-i,i-t.right)<=o)return!0}return!1}(this.view,i,r,e.clientX,e.clientY,6))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function $_(e,t={}){let n=ey.define(),i=Rg.define({create:()=>null,update(e,i){if(e&&(t.hideOnChange&&(i.docChanged||i.selection)||t.hideOn&&t.hideOn(i,e)))return null;if(e&&i.docChanged){let t=i.changes.mapPos(e.pos,-1,dg.TrackDel);if(null==t)return null;let n=Object.assign(Object.create(null),e);n.pos=t,null!=e.end&&(n.end=i.changes.mapPos(e.end)),e=n}for(let t of i.effects)t.is(n)&&(e=t.value),t.is(__)&&(e=null);return e},provide:e=>y_.from(e)});return[i,Ov.define((r=>new w_(r,e,i,n,t.hoverTime||300))),v_]}const __=ey.define();const x_=xg.define({combine(e){let t,n;for(let i of e)t=t||i.topContainer,n=n||i.bottomContainer;return{topContainer:t,bottomContainer:n}}});function S_(e,t){let n=e.plugin(Q_),i=n?n.specs.indexOf(t):-1;return i>-1?n.panels[i]:null}const Q_=Ov.fromClass(class{constructor(e){this.input=e.state.facet(T_),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(x_);this.top=new k_(e,!0,t.topContainer),this.bottom=new k_(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(e){let t=e.state.facet(x_);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new k_(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new k_(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(T_);if(n!=this.input){let t=n.filter((e=>e)),i=[],r=[],o=[],s=[];for(let n of t){let t,a=this.specs.indexOf(n);a<0?(t=n(e.view),s.push(t)):(t=this.panels[a],t.update&&t.update(e)),i.push(t),(t.top?r:o).push(t)}this.specs=t,this.panels=i,this.top.sync(r),this.bottom.sync(o);for(let e of s)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>g$.scrollMargins.of((t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class k_{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=P_(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=P_(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function P_(e){let t=e.nextSibling;return e.remove(),t}const T_=xg.define({enables:Q_});class q_ extends hy{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}q_.prototype.elementClass="",q_.prototype.toDOM=void 0,q_.prototype.mapMode=dg.TrackBefore,q_.prototype.startSide=q_.prototype.endSide=-1,q_.prototype.point=!0;const R_=xg.define(),E_={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>yy.empty,lineMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},j_=xg.define();function N_(e){return[A_(),j_.of(Object.assign(Object.assign({},E_),e))]}const C_=xg.define({combine:e=>e.some((e=>e))});function A_(e){let t=[z_];return e&&!1===e.fixed&&t.push(C_.of(!0)),t}const z_=Ov.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight+"px",this.gutters=e.state.facet(j_).map((t=>new M_(e,t)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!e.state.facet(C_),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,i=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(i<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(C_)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=yy.iter(this.view.state.facet(R_),this.view.viewport.from),i=[],r=this.gutters.map((e=>new V_(e,this.view.viewport,-this.view.documentPadding.top)));for(let e of this.view.viewportLineBlocks){let t;if(Array.isArray(e.type)){for(let n of e.type)if(n.type==Ib.Text){t=n;break}}else t=e.type==Ib.Text?e:void 0;if(t){i.length&&(i=[]),W_(n,i,e.from);for(let e of r)e.line(this.view,t,i)}}for(let e of r)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(j_),n=e.state.facet(j_),i=e.docChanged||e.heightChanged||e.viewportChanged||!yy.eq(e.startState.facet(R_),e.state.facet(R_),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let t of this.gutters)t.update(e)&&(i=!0);else{i=!0;let r=[];for(let i of n){let n=t.indexOf(i);n<0?r.push(new M_(this.view,i)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>g$.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==Sv.LTR?{left:n.dom.offsetWidth}:{right:n.dom.offsetWidth}:null}))});function D_(e){return Array.isArray(e)?e:[e]}function W_(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class V_{constructor(e,t,n){this.gutter=e,this.height=n,this.localMarkers=[],this.i=0,this.cursor=yy.iter(e.markers,t.from)}line(e,t,n){this.localMarkers.length&&(this.localMarkers=[]),W_(this.cursor,this.localMarkers,t.from);let i=n.length?this.localMarkers.concat(n):this.localMarkers,r=this.gutter.config.lineMarker(e,t,i);r&&i.unshift(r);let o=this.gutter;if(0==i.length&&!o.config.renderEmptyElements)return;let s=t.top-this.height;if(this.i==o.elements.length){let n=new X_(e,t.height,s,i);o.elements.push(n),o.dom.appendChild(n.dom)}else o.elements[this.i].update(e,t.height,s,i);this.height=t.bottom,this.i++}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class M_{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(i=>{let r=e.lineBlockAtHeight(i.clientY-e.documentTop);t.domEventHandlers[n](e,r,i)&&i.preventDefault()}));this.markers=D_(t.markers(e)),t.initialSpacer&&(this.spacer=new X_(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=D_(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!yy.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class X_{constructor(e,t,n,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,i)}update(e,t,n,i){this.height!=t&&(this.dom.style.height=(this.height=t)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0}(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,t){let n="cm-gutterElement",i=this.dom.firstChild;for(let r=0,o=0;;){let s=o,a=r<t.length?t[r++]:null,l=!1;if(a){let e=a.elementClass;e&&(n+=" "+e);for(let e=o;e<this.markers.length;e++)if(this.markers[e].compare(a)){s=e,l=!0;break}}else s=this.markers.length;for(;o<s;){let e=this.markers[o++];if(e.toDOM){e.destroy(i);let t=i.nextSibling;i.remove(),i=t}}if(!a)break;a.toDOM&&(l?i=i.nextSibling:this.dom.insertBefore(a.toDOM(e),i)),l&&o++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}const U_=xg.define(),I_=xg.define({combine:e=>py(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let e in t){let i=n[e],r=t[e];n[e]=i?(e,t,n)=>i(e,t,n)||r(e,t,n):r}return n}})});class L_ extends q_{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Z_(e,t){return e.state.facet(I_).formatNumber(t,e.state)}const G_=j_.compute([I_],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(U_),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new L_(Z_(e,e.state.doc.lineAt(t.from).number)),lineMarkerChange:e=>e.startState.facet(I_)!=e.state.facet(I_),initialSpacer:e=>new L_(Z_(e,F_(e.state.doc.lines))),updateSpacer(e,t){let n=Z_(t.view,F_(t.view.state.doc.lines));return n==e.number?e:new L_(n)},domEventHandlers:e.facet(I_).domEventHandlers})));function Y_(e={}){return[I_.of(e),A_(),G_]}function F_(e){let t=9;for(;t<e;)t=10*t+9;return t}const B_=new class extends q_{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},H_=R_.compute(["selection"],(e=>{let t=[],n=-1;for(let i of e.selection.ranges)if(i.empty){let r=e.doc.lineAt(i.head).from;r>n&&(n=r,t.push(B_.range(r)))}return yy.of(t)}));const K_=1024;let J_=0;class ex{constructor(e,t){this.from=e,this.to=t}}class tx{constructor(e={}){this.id=J_++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=rx.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}tx.closedBy=new tx({deserialize:e=>e.split(" ")}),tx.openedBy=new tx({deserialize:e=>e.split(" ")}),tx.group=new tx({deserialize:e=>e.split(" ")}),tx.contextHash=new tx({perNode:!0}),tx.lookAhead=new tx({perNode:!0}),tx.mounted=new tx({perNode:!0});class nx{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}}const ix=Object.create(null);class rx{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):ix,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),i=new rx(e.name||"",t,e.id,n);if(e.props)for(let n of e.props)if(Array.isArray(n)||(n=n(i)),n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}return i}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(tx.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return e=>{for(let n=e.prop(tx.group),i=-1;i<(n?n.length:0);i++){let r=t[i<0?e.name:n[i]];if(r)return r}}}}rx.none=new rx("",Object.create(null),0,8);class ox{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let i=null;for(let t of e){let e=t(n);e&&(i||(i=Object.assign({},n.props)),i[e[0].id]=e[1])}t.push(i?new rx(n.name,i,n.id,n.flags):n)}return new ox(t)}}const sx=new WeakMap,ax=new WeakMap;var lx;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(lx||(lx={}));class cx{constructor(e,t,n,i,r){if(this.type=e,this.children=t,this.positions=n,this.length=i,this.props=null,r&&r.length){this.props=Object.create(null);for(let[e,t]of r)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=this.prop(tx.mounted);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let n=e.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new vx(this.topNode,e)}cursorAt(e,t=0,n=0){let i=sx.get(this)||this.topNode,r=new vx(i);return r.moveTo(e,t),sx.set(this,r._tree),r}get topNode(){return new Ox(this,0,0,null)}resolve(e,t=0){let n=hx(sx.get(this)||this.topNode,e,t,!1);return sx.set(this,n),n}resolveInner(e,t=0){let n=hx(ax.get(this)||this.topNode,e,t,!0);return ax.set(this,n),n}iterate(e){let{enter:t,leave:n,from:i=0,to:r=this.length}=e;for(let o=this.cursor((e.mode||0)|lx.IncludeAnonymous);;){let e=!1;if(o.from<=r&&o.to>=i&&(o.type.isAnonymous||!1!==t(o))){if(o.firstChild())continue;e=!0}for(;e&&n&&!o.type.isAnonymous&&n(o),!o.nextSibling();){if(!o.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:xx(rx.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new cx(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new cx(rx.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:r=K_,reused:o=[],minRepeatType:s=i.types.length}=e,a=Array.isArray(n)?new ux(n,n.length):n,l=i.types,c=0,u=0;function d(e,t,n,g,y){let{id:b,start:v,end:w,size:$}=a,_=u;for(;$<0;){if(a.next(),-1==$){let t=o[b];return n.push(t),void g.push(v-e)}if(-3==$)return void(c=b);if(-4==$)return void(u=b);throw new RangeError(`Unrecognized record size: ${$}`)}let x,S,Q=l[b],k=v-e;if(w-v<=r&&(S=O(a.pos-t,y))){let t=new Uint16Array(S.size-S.skip),n=a.pos-S.size,r=t.length;for(;a.pos>n;)r=m(S.start,t,r);x=new dx(t,w-S.start,i),k=S.start-e}else{let e=a.pos-$;a.next();let t=[],n=[],i=b>=s?b:-1,o=0,l=w;for(;a.pos>e;)i>=0&&a.id==i&&a.size>=0?(a.end<=l-r&&(p(t,n,v,o,a.end,l,i,_),o=t.length,l=a.end),a.next()):d(v,e,t,n,i);if(i>=0&&o>0&&o<t.length&&p(t,n,v,o,v,l,i,_),t.reverse(),n.reverse(),i>-1&&o>0){let e=f(Q);x=xx(Q,t,n,0,t.length,0,w-v,e,e)}else x=h(Q,t,n,w-v,_-w)}n.push(x),g.push(k)}function f(e){return(t,n,i)=>{let r,o,s=0,a=t.length-1;if(a>=0&&(r=t[a])instanceof cx){if(!a&&r.type==e&&r.length==i)return r;(o=r.prop(tx.lookAhead))&&(s=n[a]+r.length+o)}return h(e,t,n,i,s)}}function p(e,t,n,r,o,s,a,l){let c=[],u=[];for(;e.length>r;)c.push(e.pop()),u.push(t.pop()+n-o);e.push(h(i.types[a],c,u,s-o,l-s)),t.push(o-n)}function h(e,t,n,i,r=0,o){if(c){let e=[tx.contextHash,c];o=o?[e].concat(o):[e]}if(r>25){let e=[tx.lookAhead,r];o=o?[e].concat(o):[e]}return new cx(e,t,n,i,o)}function O(e,t){let n=a.fork(),i=0,o=0,l=0,c=n.end-r,u={size:0,start:0,skip:0};e:for(let r=n.pos-e;n.pos>r;){let e=n.size;if(n.id==t&&e>=0){u.size=i,u.start=o,u.skip=l,l+=4,i+=4,n.next();continue}let a=n.pos-e;if(e<0||a<r||n.start<c)break;let d=n.id>=s?4:0,f=n.start;for(n.next();n.pos>a;){if(n.size<0){if(-3!=n.size)break e;d+=4}else n.id>=s&&(d+=4);n.next()}o=f,i+=e,l+=d}return(t<0||i==e)&&(u.size=i,u.start=o,u.skip=l),u.size>4?u:void 0}function m(e,t,n){let{id:i,start:r,end:o,size:l}=a;if(a.next(),l>=0&&i<s){let s=n;if(l>4){let i=a.pos-(l-4);for(;a.pos>i;)n=m(e,t,n)}t[--n]=s,t[--n]=o-e,t[--n]=r-e,t[--n]=i}else-3==l?c=i:-4==l&&(u=i);return n}let g=[],y=[];for(;a.pos>0;)d(e.start||0,e.bufferStart||0,g,y,-1);let b=null!==(t=e.length)&&void 0!==t?t:g.length?y[0]+g[0].length:0;return new cx(l[e.topID],g.reverse(),y.reverse(),b)}(e)}}cx.empty=new cx(rx.none,[],[],0);class ux{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new ux(this.buffer,this.index)}}class dx{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return rx.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],i=this.set.types[t],r=i.name;if(/\W/.test(r)&&!i.isError&&(r=JSON.stringify(r)),n==(e+=4))return r;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return r+"("+o.join(",")+")"}findChild(e,t,n,i,r){let{buffer:o}=this,s=-1;for(let a=e;a!=t&&!(fx(r,i,o[a+1],o[a+2])&&(s=a,n>0));a=o[a+3]);return s}slice(e,t,n,i){let r=this.buffer,o=new Uint16Array(t-e);for(let i=e,s=0;i<t;)o[s++]=r[i++],o[s++]=r[i++]-n,o[s++]=r[i++]-n,o[s++]=r[i++]-e;return new dx(o,i-n,this.set)}}function fx(e,t,n,i){switch(e){case-2:return n<t;case-1:return i>=t&&n<t;case 0:return n<t&&i>t;case 1:return n<=t&&i>t;case 2:return i>t;case 4:return!0}}function px(e,t){let n=e.childBefore(t);for(;n;){let t=n.lastChild;if(!t||t.to!=n.to)break;t.type.isError&&t.from==t.to?(e=n,n=t.prevSibling):n=t}return e}function hx(e,t,n,i){for(var r;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!i&&e instanceof Ox&&e.index<0?null:e.parent;if(!t)return e;e=t}let o=i?0:lx.IgnoreOverlays;if(i)for(let i=e,s=i.parent;s;i=s,s=i.parent)i instanceof Ox&&i.index<0&&(null===(r=s.enter(t,n,o))||void 0===r?void 0:r.from)!=i.from&&(e=s);for(;;){let i=e.enter(t,n,o);if(!i)return e;e=i}}class Ox{constructor(e,t,n,i){this._tree=e,this.from=t,this.index=n,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,i,r=0){for(let o=this;;){for(let{children:s,positions:a}=o._tree,l=t>0?s.length:-1;e!=l;e+=t){let l=s[e],c=a[e]+o.from;if(fx(i,n,c,c+l.length))if(l instanceof dx){if(r&lx.ExcludeBuffers)continue;let s=l.findChild(0,l.buffer.length,t,n-c,i);if(s>-1)return new bx(new yx(o,l,e,c),null,s)}else if(r&lx.IncludeAnonymous||!l.type.isAnonymous||wx(l)){let s;if(!(r&lx.IgnoreMounts)&&l.props&&(s=l.prop(tx.mounted))&&!s.overlay)return new Ox(s.tree,c,e,o);let a=new Ox(l,c,e,o);return r&lx.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(t<0?l.children.length-1:0,t,n,i)}}if(r&lx.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let i;if(!(n&lx.IgnoreOverlays)&&(i=this._tree.prop(tx.mounted))&&i.overlay){let n=e-this.from;for(let{from:e,to:r}of i.overlay)if((t>0?e<=n:e<n)&&(t<0?r>=n:r>n))return new Ox(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new vx(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return hx(this,e,t,!1)}resolveInner(e,t=0){return hx(this,e,t,!0)}enterUnfinishedNodesBefore(e){return px(this,e)}getChild(e,t=null,n=null){let i=mx(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return mx(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return gx(this,e)}}function mx(e,t,n,i){let r=e.cursor(),o=[];if(!r.firstChild())return o;if(null!=n)for(;!r.type.is(n);)if(!r.nextSibling())return o;for(;;){if(null!=i&&r.type.is(i))return o;if(r.type.is(t)&&o.push(r.node),!r.nextSibling())return null==i?o:[]}}function gx(e,t,n=t.length-1){for(let i=e.parent;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(t[n]&&t[n]!=i.name)return!1;n--}}return!0}class yx{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class bx{constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}child(e,t,n){let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return r<0?null:new bx(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&lx.ExcludeBuffers)return null;let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new bx(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new bx(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new bx(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new vx(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,r=n.buffer[this.index+3];if(r>i){let o=n.buffer[this.index+1],s=n.buffer[this.index+2];e.push(n.slice(i,r,o,s)),t.push(0)}return new cx(this.type,e,t,this.to-this.from)}resolve(e,t=0){return hx(this,e,t,!1)}resolveInner(e,t=0){return hx(this,e,t,!0)}enterUnfinishedNodesBefore(e){return px(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let i=mx(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return mx(this,e,t,n)}get node(){return this}matchContext(e){return gx(this,e)}}class vx{constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Ox)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}get name(){return this.type.name}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return!!e&&(e instanceof Ox?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&lx.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&lx.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&lx.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(i.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=i)}else({index:t,_parent:n}=this._tree);for(;n;({index:t,_parent:n}=n))if(t>-1)for(let i=t+e,r=e<0?-1:n._tree.children.length;i!=r;i+=e){let e=n._tree.children[i];if(this.mode&lx.IncludeAnonymous||e instanceof dx||!e.type.isAnonymous||wx(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let i=this.index,r=this.stack.length;r>=0;){for(let o=e;o;o=o._parent)if(o.index==i){if(i==this.index)return o;t=o,n=r+1;break e}i=this.stack[--r]}for(let e=n;e<this.stack.length;e++)t=new bx(this.buffer,t,this.stack[e]);return this.bufferNode=new bx(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let i=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;i&&t&&t(this),i=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,i=!0}}}matchContext(e){if(!this.buffer)return gx(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let i=e.length-1,r=this.stack.length-1;i>=0;r--){if(r<0)return gx(this.node,e,i);let o=n[t.buffer[this.stack[r]]];if(!o.isAnonymous){if(e[i]&&e[i]!=o.name)return!1;i--}}return!0}}function wx(e){return e.children.some((e=>e instanceof dx||!e.type.isAnonymous||wx(e)))}const $x=new WeakMap;function _x(e,t){if(!e.isAnonymous||t instanceof dx||t.type!=e)return 1;let n=$x.get(t);if(null==n){n=1;for(let i of t.children){if(i.type!=e||!(i instanceof cx)){n=1;break}n+=_x(e,i)}$x.set(t,n)}return n}function xx(e,t,n,i,r,o,s,a,l){let c=0;for(let n=i;n<r;n++)c+=_x(e,t[n]);let u=Math.ceil(1.5*c/8),d=[],f=[];return function t(n,i,r,s,a){for(let c=r;c<s;){let r=c,p=i[c],h=_x(e,n[c]);for(c++;c<s;c++){let t=_x(e,n[c]);if(h+t>=u)break;h+=t}if(c==r+1){if(h>u){let e=n[r];t(e.children,e.positions,0,e.children.length,i[r]+a);continue}d.push(n[r])}else{let t=i[c-1]+n[c-1].length-p;d.push(xx(e,n,i,r,c,p,t,null,l))}f.push(p+a-o)}}(t,n,i,r,0),(a||l)(d,f,s)}class Sx{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof bx?this.setBuffer(e.context.buffer,e.index,t):e instanceof Ox&&this.map.set(e.tree,t)}get(e){return e instanceof bx?this.getBuffer(e.context.buffer,e.index):e instanceof Ox?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Qx{constructor(e,t,n,i,r=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=(r?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let i=[new Qx(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&i.push(n);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],r=1,o=e.length?e[0]:null;for(let s=0,a=0,l=0;;s++){let c=s<t.length?t[s]:null,u=c?c.fromA:1e9;if(u-a>=n)for(;o&&o.from<u;){let t=o;if(a>=t.from||u<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,u)-l;t=e>=n?null:new Qx(e,n,t.tree,t.offset+l,s>0,!!c)}if(t&&i.push(t),o.to>u)break;o=r<e.length?e[r++]:null}if(!c)break;a=c.toA,l=c.toA-c.toB}return i}}class kx{startParse(e,t,n){return"string"==typeof e&&(e=new Px(e)),n=n?n.length?n.map((e=>new ex(e.from,e.to))):[new ex(0,0)]:[new ex(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let e=i.advance();if(e)return e}}}class Px{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function Tx(e){return(t,n,i,r)=>new jx(t,e,n,i,r)}class qx{constructor(e,t,n,i,r){this.parser=e,this.parse=t,this.overlay=n,this.target=i,this.ranges=r}}class Rx{constructor(e,t,n,i,r,o,s){this.parser=e,this.predicate=t,this.mounts=n,this.index=i,this.start=r,this.target=o,this.prev=s,this.depth=0,this.ranges=[]}}const Ex=new tx({perNode:!0});class jx{constructor(e,t,n,i,r){this.nest=t,this.input=n,this.fragments=i,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new cx(e.type,e.children,e.positions,e.length,e.propValues.concat([[Ex,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[tx.mounted.id]=new nx(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].ranges[0].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new Dx(this.fragments),t=null,n=null,i=new vx(new Ox(this.baseTree,this.ranges[0].from,0,null),lx.IncludeAnonymous|lx.IgnoreMounts);e:for(let r,o;null==this.stoppedAt||i.from<this.stoppedAt;){let s,a=!0;if(e.hasNode(i)){if(t){let e=t.mounts.find((e=>e.frag.from<=i.from&&e.frag.to>=i.to&&e.mount.overlay));if(e)for(let n of e.mount.overlay){let r=n.from+e.pos,o=n.to+e.pos;r>=i.from&&o<=i.to&&!t.ranges.some((e=>e.from<o&&e.to>r))&&t.ranges.push({from:r,to:o})}}a=!1}else if(n&&(o=Nx(n.ranges,i.from,i.to)))a=2!=o;else if(!i.type.isAnonymous&&i.from<i.to&&(r=this.nest(i,this.input))){i.tree||Ax(i);let o=e.findMounts(i.from,r.parser);if("function"==typeof r.overlay)t=new Rx(r.parser,r.overlay,o,this.inner.length,i.from,i.tree,t);else{let e=Wx(this.ranges,r.overlay||[new ex(i.from,i.to)]);e.length&&this.inner.push(new qx(r.parser,r.parser.startParse(this.input,Mx(o,e),e),r.overlay?r.overlay.map((e=>new ex(e.from-i.from,e.to-i.from))):null,i.tree,e)),r.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):a=!1}}else t&&(s=t.predicate(i))&&(!0===s&&(s=new ex(i.from,i.to)),s.from<s.to&&t.ranges.push(s));if(a&&i.firstChild())t&&t.depth++,n&&n.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(t&&!--t.depth){let e=Wx(this.ranges,t.ranges);e.length&&this.inner.splice(t.index,0,new qx(t.parser,t.parser.startParse(this.input,Mx(t.mounts,e),e),t.ranges.map((e=>new ex(e.from-t.start,e.to-t.start))),t.target,e)),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function Nx(e,t,n){for(let i of e){if(i.from>=n)break;if(i.to>t)return i.from<=t&&i.to>=n?2:1}return 0}function Cx(e,t,n,i,r,o){if(t<n){let s=e.buffer[t+1],a=e.buffer[n-2];i.push(e.slice(t,n,s,a)),r.push(s-o)}}function Ax(e){let{node:t}=e,n=0;do{e.parent(),n++}while(!e.tree);let i=0,r=e.tree,o=0;for(;o=r.positions[i]+e.from,!(o<=t.from&&o+r.children[i].length>=t.to);i++);let s=r.children[i],a=s.buffer;r.children[i]=function e(n,i,r,l,c){let u=n;for(;a[u+2]+o<=t.from;)u=a[u+3];let d=[],f=[];Cx(s,n,u,d,f,l);let p=a[u+1],h=a[u+2],O=p+o==t.from&&h+o==t.to&&a[u]==t.type.id;return d.push(O?t.toTree():e(u+4,a[u+3],s.set.types[a[u]],p,h-p)),f.push(p-l),Cx(s,a[u+3],i,d,f,l),new cx(r,d,f,c)}(0,a.length,rx.none,0,s.length);for(let i=0;i<=n;i++)e.childAfter(t.from)}class zx{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(lx.IncludeAnonymous|lx.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from<n;)t.to>=e&&t.enter(n,1,lx.IgnoreOverlays|lx.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof cx))break;t=t.children[0]}return!1}}class Dx{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=null!==(t=n.tree.prop(Ex))&&void 0!==t?t:n.to,this.inner=new zx(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(Ex))&&void 0!==e?e:t.to,this.inner=new zx(t.tree,-t.offset)}}findMounts(e,t){var n;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let r=null===(n=e.tree)||void 0===n?void 0:n.prop(tx.mounted);if(r&&r.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let n=this.fragments[t];if(n.from>=e.to)break;n.tree==this.curFrag.tree&&i.push({frag:n,pos:e.from-n.offset,mount:r})}}}return i}}function Wx(e,t){let n=null,i=t;for(let r=1,o=0;r<e.length;r++){let s=e[r-1].to,a=e[r].from;for(;o<i.length;o++){let e=i[o];if(e.from>=a)break;e.to<=s||(n||(i=n=t.slice()),e.from<s?(n[o]=new ex(e.from,s),e.to>a&&n.splice(o+1,0,new ex(a,e.to))):e.to>a?n[o--]=new ex(a,e.to):n.splice(o--,1))}}return i}function Vx(e,t,n,i){let r=0,o=0,s=!1,a=!1,l=-1e9,c=[];for(;;){let u=r==e.length?1e9:s?e[r].to:e[r].from,d=o==t.length?1e9:a?t[o].to:t[o].from;if(s!=a){let e=Math.max(l,n),t=Math.min(u,d,i);e<t&&c.push(new ex(e,t))}if(l=Math.min(u,d),1e9==l)break;u==l&&(s?(s=!1,r++):s=!0),d==l&&(a?(a=!1,o++):a=!0)}return c}function Mx(e,t){let n=[];for(let{pos:i,mount:r,frag:o}of e){let e=i+(r.overlay?r.overlay[0].from:0),s=e+r.tree.length,a=Math.max(o.from,e),l=Math.min(o.to,s);if(r.overlay){let s=r.overlay.map((e=>new ex(e.from+i,e.to+i))),c=Vx(t,s,a,l);for(let t=0,i=a;;t++){let s=t==c.length,a=s?l:c[t].from;if(a>i&&n.push(new Qx(i,a,r.tree,-e,o.from>=i,o.to<=a)),s)break;i=c[t].to}}else n.push(new Qx(a,l,r.tree,-e,o.from>=e,o.to<=s))}return n}let Xx=0;class Ux{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=Xx++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new Ux([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new Lx;return t=>t.modified.indexOf(e)>-1?t:Lx.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let Ix=0;class Lx{constructor(){this.instances=[],this.id=Ix++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>n.base==e&&function(e,t){return e.length==t.length&&e.every(((e,n)=>e==t[n]))}(t,n.modified)));if(n)return n;let i=[],r=new Ux(i,e,t);for(let e of t)e.instances.push(r);let o=Zx(t);for(let t of e.set)for(let e of o)i.push(Lx.get(t,e));return r}}function Zx(e){let t=[e];for(let n=0;n<e.length;n++)for(let i of Zx(e.slice(0,n).concat(e.slice(n+1))))t.push(i);return t}function Gx(e){let t=Object.create(null);for(let n in e){let i=e[n];Array.isArray(i)||(i=[i]);for(let e of n.split(" "))if(e){let n=[],r=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){r=1;break}let i=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!i)throw new RangeError("Invalid path: "+e);if(n.push("*"==i[0]?"":'"'==i[0][0]?JSON.parse(i[0]):i[0]),t+=i[0].length,t==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){r=0;break}if("/"!=s)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let s=n.length-1,a=n[s];if(!a)throw new RangeError("Invalid path: "+e);let l=new Fx(i,r,s>0?n.slice(0,s):null);t[a]=l.sort(t[a])}}return Yx.add(t)}const Yx=new tx;class Fx{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function Bx(e,t){let n=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)n[e.id]=t.class;else n[t.tag.id]=t.class;let{scope:i,all:r=null}=t||{};return{style:e=>{let t=r;for(let i of e)for(let e of i.set){let i=n[e.id];if(i){t=t?t+" "+i:i;break}}return t},scope:i}}function Hx(e,t){let n=null;for(let i of e){let e=i.style(t);e&&(n=n?n+" "+e:e)}return n}function Kx(e,t,n,i=0,r=e.length){let o=new Jx(i,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),i,r,"",o.highlighters),o.flush(r)}class Jx{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,r){let{type:o,from:s,to:a}=e;if(s>=n||a<=t)return;o.isTop&&(r=this.highlighters.filter((e=>!e.scope||e.scope(o))));let l=i,c=o.prop(Yx),u=!1;for(;c;){if(!c.context||e.matchContext(c.context)){let e=Hx(r,c.tags);e&&(l&&(l+=" "),l+=e,1==c.mode?i+=(i?" ":"")+e:0==c.mode&&(u=!0));break}c=c.next}if(this.startSpan(e.from,l),u)return;let d=e.tree&&e.tree.prop(tx.mounted);if(d&&d.overlay){let o=e.node.enter(d.overlay[0].from+s,1),c=this.highlighters.filter((e=>!e.scope||e.scope(d.tree.type))),u=e.firstChild();for(let f=0,p=s;;f++){let h=f<d.overlay.length?d.overlay[f]:null,O=h?h.from+s:a,m=Math.max(t,p),g=Math.min(n,O);if(m<g&&u)for(;e.from<g&&(this.highlightRange(e,m,g,i,r),this.startSpan(Math.min(n,e.to),l),!(e.to>=O)&&e.nextSibling()););if(!h||O>n)break;p=h.to+s,p>t&&(this.highlightRange(o.cursor(),Math.max(t,h.from+s),Math.min(n,p),i,c),this.startSpan(p,l))}u&&e.parent()}else if(e.firstChild()){do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,r),this.startSpan(Math.min(n,e.to),l)}}while(e.nextSibling());e.parent()}}}const eS=Ux.define,tS=eS(),nS=eS(),iS=eS(nS),rS=eS(nS),oS=eS(),sS=eS(oS),aS=eS(oS),lS=eS(),cS=eS(lS),uS=eS(),dS=eS(),fS=eS(),pS=eS(fS),hS=eS(),OS={comment:tS,lineComment:eS(tS),blockComment:eS(tS),docComment:eS(tS),name:nS,variableName:eS(nS),typeName:iS,tagName:eS(iS),propertyName:rS,attributeName:eS(rS),className:eS(nS),labelName:eS(nS),namespace:eS(nS),macroName:eS(nS),literal:oS,string:sS,docString:eS(sS),character:eS(sS),attributeValue:eS(sS),number:aS,integer:eS(aS),float:eS(aS),bool:eS(oS),regexp:eS(oS),escape:eS(oS),color:eS(oS),url:eS(oS),keyword:uS,self:eS(uS),null:eS(uS),atom:eS(uS),unit:eS(uS),modifier:eS(uS),operatorKeyword:eS(uS),controlKeyword:eS(uS),definitionKeyword:eS(uS),moduleKeyword:eS(uS),operator:dS,derefOperator:eS(dS),arithmeticOperator:eS(dS),logicOperator:eS(dS),bitwiseOperator:eS(dS),compareOperator:eS(dS),updateOperator:eS(dS),definitionOperator:eS(dS),typeOperator:eS(dS),controlOperator:eS(dS),punctuation:fS,separator:eS(fS),bracket:pS,angleBracket:eS(pS),squareBracket:eS(pS),paren:eS(pS),brace:eS(pS),content:lS,heading:cS,heading1:eS(cS),heading2:eS(cS),heading3:eS(cS),heading4:eS(cS),heading5:eS(cS),heading6:eS(cS),contentSeparator:eS(lS),list:eS(lS),quote:eS(lS),emphasis:eS(lS),strong:eS(lS),link:eS(lS),monospace:eS(lS),strikethrough:eS(lS),inserted:eS(),deleted:eS(),changed:eS(),invalid:eS(),meta:hS,documentMeta:eS(hS),annotation:eS(hS),processingInstruction:eS(hS),definition:Ux.defineModifier(),constant:Ux.defineModifier(),function:Ux.defineModifier(),standard:Ux.defineModifier(),local:Ux.defineModifier(),special:Ux.defineModifier()};Bx([{tag:OS.link,class:"tok-link"},{tag:OS.heading,class:"tok-heading"},{tag:OS.emphasis,class:"tok-emphasis"},{tag:OS.strong,class:"tok-strong"},{tag:OS.keyword,class:"tok-keyword"},{tag:OS.atom,class:"tok-atom"},{tag:OS.bool,class:"tok-bool"},{tag:OS.url,class:"tok-url"},{tag:OS.labelName,class:"tok-labelName"},{tag:OS.inserted,class:"tok-inserted"},{tag:OS.deleted,class:"tok-deleted"},{tag:OS.literal,class:"tok-literal"},{tag:OS.string,class:"tok-string"},{tag:OS.number,class:"tok-number"},{tag:[OS.regexp,OS.escape,OS.special(OS.string)],class:"tok-string2"},{tag:OS.variableName,class:"tok-variableName"},{tag:OS.local(OS.variableName),class:"tok-variableName tok-local"},{tag:OS.definition(OS.variableName),class:"tok-variableName tok-definition"},{tag:OS.special(OS.variableName),class:"tok-variableName2"},{tag:OS.definition(OS.propertyName),class:"tok-propertyName tok-definition"},{tag:OS.typeName,class:"tok-typeName"},{tag:OS.namespace,class:"tok-namespace"},{tag:OS.className,class:"tok-className"},{tag:OS.macroName,class:"tok-macroName"},{tag:OS.propertyName,class:"tok-propertyName"},{tag:OS.operator,class:"tok-operator"},{tag:OS.comment,class:"tok-comment"},{tag:OS.meta,class:"tok-meta"},{tag:OS.invalid,class:"tok-invalid"},{tag:OS.punctuation,class:"tok-punctuation"}]);var mS;const gS=new tx;function yS(e){return xg.define({combine:e?t=>t.concat(e):void 0})}class bS{constructor(e,t,n=[]){this.data=e,fy.prototype.hasOwnProperty("tree")||Object.defineProperty(fy.prototype,"tree",{get(){return $S(this)}}),this.parser=t,this.extension=[RS.of(this),fy.languageData.of(((e,t,n)=>e.facet(vS(e,t,n))))].concat(n)}isActiveAt(e,t,n=-1){return vS(e,t,n)==this.data}findRegions(e){let t=e.facet(RS);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],i=(e,t)=>{if(e.prop(gS)==this.data)return void n.push({from:t,to:t+e.length});let r=e.prop(tx.mounted);if(r){if(r.tree.prop(gS)==this.data){if(r.overlay)for(let e of r.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(r.overlay){let e=n.length;if(i(r.tree,r.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let r=e.children[n];r instanceof cx&&i(r,e.positions[n]+t)}};return i($S(e),0),n}get allowsNesting(){return!0}}function vS(e,t,n){let i=e.facet(RS);if(!i)return null;let r=i.data;if(i.allowsNesting)for(let i=$S(e).topNode;i;i=i.enter(t,n,lx.ExcludeBuffers))r=i.type.prop(gS)||r;return r}bS.setState=ey.define();class wS extends bS{constructor(e,t){super(e,t),this.parser=t}static define(e){let t=yS(e.languageData);return new wS(t,e.parser.configure({props:[gS.add((e=>e.isTop?t:void 0))]}))}configure(e){return new wS(this.data,this.parser.configure(e))}get allowsNesting(){return this.parser.hasWrappers()}}function $S(e){let t=e.field(bS.state,!1);return t?t.tree:cx.empty}class _S{constructor(e,t=e.length){this.doc=e,this.length=t,this.cursorPos=0,this.string="",this.cursor=e.iter()}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let xS=null;class SS{constructor(e,t,n=[],i,r,o,s,a){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=r,this.viewport=o,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new SS(e,t,[],cx.empty,0,n,[],null)}startParse(){return this.parser.startParse(new _S(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=cx.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let i=this.parse.advance();if(i){if(this.fragments=this.withoutTempSkipped(Qx.addTree(i,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=i,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}}))}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Qx.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=xS;xS=this;try{return e()}finally{xS=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=QS(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:r,viewport:o,skipped:s}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,i,r)=>t.push({fromA:e,toA:n,fromB:i,toB:r}))),n=Qx.applyChanges(n,t),i=cx.empty,r=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){s=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);n<i&&s.push({from:n,to:i})}}}return new SS(this.parser,t,n,i,r,o,s,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:n,to:i}=this.skipped[t];n<e.to&&i>e.from&&(this.fragments=QS(this.fragments,n,i),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends kx{createParse(t,n,i){let r=i[0].from,o=i[i.length-1].to,s={parsedPos:r,advance(){let t=xS;if(t){for(let e of i)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new cx(rx.none,[],[],o-r)},stoppedAt:null,stopAt(){}};return s}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return xS}}function QS(e,t,n){return Qx.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class kS{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new kS(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=SS.create(e.facet(RS).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new kS(n)}}bS.state=Rg.define({create:kS.init,update(e,t){for(let e of t.effects)if(e.is(bS.setState))return e.value;return t.startState.facet(RS)!=t.state.facet(RS)?kS.init(t.state):e.apply(t)}});let PS=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(PS=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const TS="undefined"!=typeof navigator&&(null===(mS=navigator.scheduling)||void 0===mS?void 0:mS.isInputPending)?()=>navigator.scheduling.isInputPending():null,qS=Ov.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(bS.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(bS.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=PS(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:i}}=this.view,r=n.field(bS.state);if(r.tree==r.context.tree&&r.context.isDone(i+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!TS?Math.max(25,e.timeRemaining()-5):1e9),s=r.context.treeLen<i&&n.doc.length>i+1e3,a=r.context.work((()=>TS&&TS()||Date.now()>o),i+(s?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:bS.setState.of(new kS(r.context))})),this.chunkBudget>0&&(!a||s)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>dv(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),RS=xg.define({combine:e=>e.length?e[0]:null,enables:[bS.state,qS]});class ES{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const jS=xg.define(),NS=xg.define({combine:e=>{if(!e.length)return" ";if(!/^(?: +|\t+)$/.test(e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return e[0]}});function CS(e){let t=e.facet(NS);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function AS(e,t){let n="",i=e.tabSize;if(9==e.facet(NS).charCodeAt(0))for(;t>=i;)n+="\t",t-=i;for(let e=0;e<t;e++)n+=" ";return n}function zS(e,t){e instanceof fy&&(e=new DS(e));for(let n of e.state.facet(jS)){let i=n(e,t);if(null!=i)return i}let n=$S(e.state);return n?function(e,t,n){return MS(t.resolveInner(n).enterUnfinishedNodesBefore(n),n,e)}(e,n,t):null}class DS{constructor(e,t={}){this.state=e,this.options=t,this.unit=CS(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:r}=this.options;return null!=i&&i>=n.from&&i<=n.to?r&&i==e?{text:"",from:e}:(t<0?i<e:i<=e)?{text:n.text.slice(i-n.from),from:i}:{text:n.text.slice(0,i-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:i}=this.lineAt(e,t);return n.slice(e-i,Math.min(n.length,e+100-i))}column(e,t=1){let{text:n,from:i}=this.lineAt(e,t),r=this.countColumn(n,e-i),o=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return o>-1&&(r+=o-this.countColumn(n,n.search(/\S|$/))),r}countColumn(e,t=e.length){return qy(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let e=r(i);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const WS=new tx;function VS(e){let t=e.type.prop(WS);if(t)return t;let n,i=e.firstChild;if(i&&(n=i.type.prop(tx.closedBy))){let t=e.lastChild,i=t&&n.indexOf(t.name)>-1;return e=>ZS(e,!0,1,void 0,i&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?XS:null}function MS(e,t,n){for(;e;e=e.parent){let i=VS(e);if(i)return i(US.create(n,t,e))}return null}function XS(){return 0}class US extends DS{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}static create(e,t,n){return new US(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let e=this.state.doc.lineAt(this.node.from);for(;;){let t=this.node.resolve(e.from);for(;t.parent&&t.parent.from==t.from;)t=t.parent;if(IS(t,this.node))break;e=this.state.doc.lineAt(t.from)}return this.lineIndent(e.from)}continue(){let e=this.node.parent;return e?MS(e,this.pos,this.base):0}}function IS(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function LS({closing:e,align:t=!0,units:n=1}){return i=>ZS(i,t,n,e)}function ZS(e,t,n,i,r){let o=e.textAfter,s=o.match(/^\s*/)[0].length,a=i&&o.slice(s,s+i.length)==i||r==e.pos+s,l=t?function(e){let t=e.node,n=t.childAfter(t.from),i=t.lastChild;if(!n)return null;let r=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),s=null==r||r<=o.from?o.to:Math.min(o.to,r);for(let e=n.to;;){let r=t.childAfter(e);if(!r||r==i)return null;if(!r.type.isSkipped)return r.from<s?n:null;e=r.to}}(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*n)}function GS({except:e,units:t=1}={}){return n=>{let i=e&&e.test(n.textAfter);return n.baseIndent+(i?0:t*n.unit)}}const YS=xg.define(),FS=new tx;function BS(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}function HS(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function KS(e,t,n){for(let i of e.facet(YS)){let r=i(e,t,n);if(r)return r}return function(e,t,n){let i=$S(e);if(i.length<n)return null;let r=null;for(let o=i.resolveInner(n);o;o=o.parent){if(o.to<=n||o.from>n)continue;if(r&&o.from<t)break;let s=o.type.prop(FS);if(s&&(o.to<i.length-50||i.length==e.doc.length||!HS(o))){let i=s(o,e);i&&i.from<=n&&i.from>=t&&i.to>n&&(r=i)}}return r}(e,t,n)}function JS(e,t){let n=t.mapPos(e.from,1),i=t.mapPos(e.to,-1);return n>=i?void 0:{from:n,to:i}}const eQ=ey.define({map:JS}),tQ=ey.define({map:JS});function nQ(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const iQ=Rg.define({create:()=>Lb.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)n.is(eQ)&&!oQ(e,n.value.from,n.value.to)?e=e.update({add:[fQ.range(n.value.from,n.value.to)]}):n.is(tQ)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:i}=t.selection.main;e.between(i,i,((e,t)=>{e<i&&t>i&&(n=!0)})),n&&(e=e.update({filterFrom:i,filterTo:i,filter:(e,t)=>t<=i||e>=i}))}return e},provide:e=>g$.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n<e.length;){let i=e[n++],r=e[n++];if("number"!=typeof i||"number"!=typeof r)throw new RangeError("Invalid JSON for fold state");t.push(fQ.range(i,r))}return Lb.set(t,!0)}});function rQ(e,t,n){var i;let r=null;return null===(i=e.field(iQ,!1))||void 0===i||i.between(t,n,((e,t)=>{(!r||r.from>e)&&(r={from:e,to:t})})),r}function oQ(e,t,n){let i=!1;return e.between(t,t,((e,r)=>{e==t&&r==n&&(i=!0)})),i}function sQ(e,t){return e.field(iQ,!1)?t:t.concat(ey.appendConfig.of(dQ()))}function aQ(e,t,n=!0){let i=e.state.doc.lineAt(t.from).number,r=e.state.doc.lineAt(t.to).number;return g$.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${e.state.phrase("to")} ${r}.`)}const lQ=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of nQ(e)){let n=KS(e.state,t.from,t.to);if(n)return e.dispatch({effects:sQ(e.state,[eQ.of(n),aQ(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(iQ,!1))return!1;let t=[];for(let n of nQ(e)){let i=rQ(e.state,n.from,n.to);i&&t.push(tQ.of(i),aQ(e,i,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let i=0;i<t.doc.length;){let r=e.lineBlockAt(i),o=KS(t,r.from,r.to);o&&n.push(eQ.of(o)),i=(o?e.lineBlockAt(o.to):r).to+1}return n.length&&e.dispatch({effects:sQ(e.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:e=>{let t=e.state.field(iQ,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(tQ.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],cQ={placeholderDOM:null,placeholderText:"…"},uQ=xg.define({combine:e=>py(e,cQ)});function dQ(e){let t=[iQ,mQ];return e&&t.push(uQ.of(e)),t}const fQ=Lb.replace({widget:new class extends Ub{toDOM(e){let{state:t}=e,n=t.facet(uQ),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),i=rQ(e.state,n.from,n.to);i&&e.dispatch({effects:tQ.of(i)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,i);let r=document.createElement("span");return r.textContent=n.placeholderText,r.setAttribute("aria-label",t.phrase("folded code")),r.title=t.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=i,r}}}),pQ={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class hQ extends q_{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function OQ(e={}){let t=Object.assign(Object.assign({},pQ),e),n=new hQ(t,!0),i=new hQ(t,!1),r=Ov.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(RS)!=e.state.facet(RS)||e.startState.field(iQ,!1)!=e.state.field(iQ,!1)||$S(e.startState)!=$S(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new by;for(let r of e.viewportLineBlocks){let o=rQ(e.state,r.from,r.to)?i:KS(e.state,r.from,r.to)?n:null;o&&t.add(r.from,r.from,o)}return t.finish()}}),{domEventHandlers:o}=t;return[r,N_({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.markers)||yy.empty},initialSpacer:()=>new hQ(t,!1),domEventHandlers:Object.assign(Object.assign({},o),{click:(e,t,n)=>{if(o.click&&o.click(e,t,n))return!0;let i=rQ(e.state,t.from,t.to);if(i)return e.dispatch({effects:tQ.of(i)}),!0;let r=KS(e.state,t.from,t.to);return!!r&&(e.dispatch({effects:eQ.of(r)}),!0)}})}),dQ()]}const mQ=g$.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class gQ{constructor(e,t){let n;function i(e){let t=Cy.newName();return(n||(n=Object.create(null)))["."+t]=e,t}const r="string"==typeof t.all?t.all:t.all?i(t.all):void 0,o=t.scope;this.scope=o instanceof bS?e=>e.prop(gS)==o.data:o?e=>e==o:void 0,this.style=Bx(e.map((e=>({tag:e.tag,class:e.class||i(Object.assign({},e,{tag:null}))}))),{all:r}).style,this.module=n?new Cy(n):null,this.themeType=t.themeType}static define(e,t){return new gQ(e,t||{})}}const yQ=xg.define(),bQ=xg.define({combine:e=>e.length?[e[0]]:null});function vQ(e){let t=e.facet(yQ);return t.length?t:e.facet(bQ)}function wQ(e,t){let n,i=[_Q];return e instanceof gQ&&(e.module&&i.push(g$.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?i.push(bQ.of(e)):n?i.push(yQ.computeN([g$.darkTheme],(t=>t.facet(g$.darkTheme)==("dark"==n)?[e]:[]))):i.push(yQ.of(e)),i}class $Q{constructor(e){this.markCache=Object.create(null),this.tree=$S(e.state),this.decorations=this.buildDeco(e,vQ(e.state))}update(e){let t=$S(e.state),n=vQ(e.state),i=n!=vQ(e.startState);t.length<e.view.viewport.to&&!i&&t.type==this.tree.type?this.decorations=this.decorations.map(e.changes):(t!=this.tree||e.viewportChanged||i)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n))}buildDeco(e,t){if(!t||!this.tree.length)return Lb.none;let n=new by;for(let{from:i,to:r}of e.visibleRanges)Kx(this.tree,t,((e,t,i)=>{n.add(e,t,this.markCache[i]||(this.markCache[i]=Lb.mark({class:i})))}),i,r);return n.finish()}}const _Q=zg.high(Ov.fromClass($Q,{decorations:e=>e.decorations})),xQ=gQ.define([{tag:OS.meta,color:"#7a757a"},{tag:OS.link,textDecoration:"underline"},{tag:OS.heading,textDecoration:"underline",fontWeight:"bold"},{tag:OS.emphasis,fontStyle:"italic"},{tag:OS.strong,fontWeight:"bold"},{tag:OS.strikethrough,textDecoration:"line-through"},{tag:OS.keyword,color:"#708"},{tag:[OS.atom,OS.bool,OS.url,OS.contentSeparator,OS.labelName],color:"#219"},{tag:[OS.literal,OS.inserted],color:"#164"},{tag:[OS.string,OS.deleted],color:"#a11"},{tag:[OS.regexp,OS.escape,OS.special(OS.string)],color:"#e40"},{tag:OS.definition(OS.variableName),color:"#00f"},{tag:OS.local(OS.variableName),color:"#30a"},{tag:[OS.typeName,OS.namespace],color:"#085"},{tag:OS.className,color:"#167"},{tag:[OS.special(OS.variableName),OS.macroName],color:"#256"},{tag:OS.definition(OS.propertyName),color:"#00c"},{tag:OS.comment,color:"#940"},{tag:OS.invalid,color:"#f00"}]),SQ=g$.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),QQ="()[]{}",kQ=xg.define({combine:e=>py(e,{afterCursor:!0,brackets:QQ,maxScanDistance:1e4,renderMatch:qQ})}),PQ=Lb.mark({class:"cm-matchingBracket"}),TQ=Lb.mark({class:"cm-nonmatchingBracket"});function qQ(e){let t=[],n=e.matched?PQ:TQ;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const RQ=Rg.define({create:()=>Lb.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],i=t.state.facet(kQ);for(let e of t.state.selection.ranges){if(!e.empty)continue;let r=CQ(t.state,e.head,-1,i)||e.head>0&&CQ(t.state,e.head-1,1,i)||i.afterCursor&&(CQ(t.state,e.head,1,i)||e.head<t.state.doc.length&&CQ(t.state,e.head+1,-1,i));r&&(n=n.concat(i.renderMatch(r,t.state)))}return Lb.set(n,!0)},provide:e=>g$.decorations.from(e)}),EQ=[RQ,SQ];function jQ(e={}){return[kQ.of(e),EQ]}function NQ(e,t,n){let i=e.prop(t<0?tx.openedBy:tx.closedBy);if(i)return i;if(1==e.name.length){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function CQ(e,t,n,i={}){let r=i.maxScanDistance||1e4,o=i.brackets||QQ,s=$S(e),a=s.resolveInner(t,n);for(let i=a;i;i=i.parent){let r=NQ(i.type,n,o);if(r&&i.from<i.to)return AQ(e,t,n,i,r,o)}return function(e,t,n,i,r,o,s){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=s.indexOf(a);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let e=0;!u.next().done&&e<=o;){let o=u.value;n<0&&(e+=o.length);let a=t+e*n;for(let e=n>0?0:o.length-1,t=n>0?o.length:-1;e!=t;e+=n){let t=s.indexOf(o[e]);if(!(t<0||i.resolveInner(a+e,1).type!=r))if(t%2==0==n>0)d++;else{if(1==d)return{start:c,end:{from:a+e,to:a+e+1},matched:t>>1==l>>1};d--}}n>0&&(e+=o.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,s,a.type,r,o)}function AQ(e,t,n,i,r,o){let s=i.parent,a={from:i.from,to:i.to},l=0,c=null==s?void 0:s.cursor();if(c&&(n<0?c.childBefore(i.from):c.childAfter(i.to)))do{if(n<0?c.to<=i.from:c.from>=i.to){if(0==l&&r.indexOf(c.type.name)>-1&&c.from<c.to)return{start:a,end:{from:c.from,to:c.to},matched:!0};if(NQ(c.type,n,o))l++;else if(NQ(c.type,-n,o)){if(0==l)return{start:a,end:c.from==c.to?void 0:{from:c.from,to:c.to},matched:!1};l--}}}while(n<0?c.prevSibling():c.nextSibling());return{start:a,matched:!1}}const zQ=Object.create(null),DQ=[rx.none],WQ=[],VQ=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])VQ[e]=XQ(zQ,t);function MQ(e,t){WQ.indexOf(e)>-1||(WQ.push(e),console.warn(t))}function XQ(e,t){let n=null;for(let i of t.split(".")){let t=e[i]||OS[i];t?"function"==typeof t?n?n=t(n):MQ(i,`Modifier ${i} used at start of tag`):n?MQ(i,`Tag ${i} used as modifier`):n=t:MQ(i,`Unknown highlighting tag ${i}`)}if(!n)return 0;let i=t.replace(/ /g,"_"),r=rx.define({id:DQ.length,name:i,props:[Gx({[i]:n})]});return DQ.push(r),r.id}function UQ(e,t){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let r=e(t,n);return!!r&&(i(n.update(r)),!0)}}const IQ=UQ(FQ,0),LQ=UQ(YQ,0),ZQ=UQ(((e,t)=>YQ(e,t,function(e){let t=[];for(let n of e.selection.ranges){let i=e.doc.lineAt(n.from),r=n.to<=i.to?i:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>i.from?t[o].to=r.to:t.push({from:i.from,to:r.to})}return t}(t))),0);function GQ(e,t=e.selection.main.head){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}function YQ(e,t,n=t.selection.ranges){let i=n.map((e=>GQ(t,e.from).block));if(!i.every((e=>e)))return null;let r=n.map(((e,n)=>function(e,{open:t,close:n},i,r){let o,s,a=e.sliceDoc(i-50,i),l=e.sliceDoc(r,r+50),c=/\s*$/.exec(a)[0].length,u=/^\s*/.exec(l)[0].length,d=a.length-c;if(a.slice(d-t.length,d)==t&&l.slice(u,u+n.length)==n)return{open:{pos:i-c,margin:c&&1},close:{pos:r+u,margin:u&&1}};r-i<=100?o=s=e.sliceDoc(i,r):(o=e.sliceDoc(i,i+50),s=e.sliceDoc(r-50,r));let f=/^\s*/.exec(o)[0].length,p=/\s*$/.exec(s)[0].length,h=s.length-p-n.length;return o.slice(f,f+t.length)==t&&s.slice(h,h+n.length)==n?{open:{pos:i+f+t.length,margin:/\s/.test(o.charAt(f+t.length))?1:0},close:{pos:r-p-n.length,margin:/\s/.test(s.charAt(h-1))?1:0}}:null}(t,i[n],e.from,e.to)));if(2!=e&&!r.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>r[t]?[]:[{from:e.from,insert:i[t].open+" "},{from:e.to,insert:" "+i[t].close}])))};if(1!=e&&r.some((e=>e))){let e=[];for(let t,n=0;n<r.length;n++)if(t=r[n]){let r=i[n],{open:o,close:s}=t;e.push({from:o.pos-r.open.length,to:o.pos+o.margin},{from:s.pos-s.margin,to:s.pos+r.close.length})}return{changes:e}}return null}function FQ(e,t,n=t.selection.ranges){let i=[],r=-1;for(let{from:e,to:o}of n){let n=i.length,s=1e9;for(let n=e;n<=o;){let a=t.doc.lineAt(n);if(a.from>r&&(e==o||o>a.from)){r=a.from;let e=GQ(t,n).line;if(!e)continue;let o=/^\s*/.exec(a.text)[0].length,l=o==a.length,c=a.text.slice(o,o+e.length)==e?o:-1;o<a.text.length&&o<s&&(s=o),i.push({line:a,comment:c,token:e,indent:o,empty:l,single:!1})}n=a.to+1}if(s<1e9)for(let e=n;e<i.length;e++)i[e].indent<i[e].line.text.length&&(i[e].indent=s);i.length==n+1&&(i[n].single=!0)}if(2!=e&&i.some((e=>e.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:n,indent:r,empty:o,single:s}of i)!s&&o||e.push({from:t.from+r,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&i.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:r}of i)if(n>=0){let i=t.from+n,o=i+r.length;" "==t.text[o-t.from]&&o++,e.push({from:i,to:o})}return{changes:e}}return null}const BQ=Hg.define(),HQ=Hg.define(),KQ=xg.define(),JQ=xg.define({combine:e=>py(e,{minDepth:100,newGroupDelay:500},{minDepth:Math.max,newGroupDelay:Math.min})});const ek=Rg.define({create:()=>mk.empty,update(e,t){let n=t.state.facet(JQ),i=t.annotation(BQ);if(i){let r=t.docChanged?wg.single(function(e){let t=0;return e.iterChangedRanges(((e,n)=>t=n)),t}(t.changes)):void 0,o=ak.fromTransaction(t,r),s=i.side,a=0==s?e.undone:e.done;return a=o?lk(a,a.length,n.minDepth,o):dk(a,t.startState.selection),new mk(0==s?i.rest:a,0==s?a:i.rest)}let r=t.annotation(HQ);if("full"!=r&&"before"!=r||(e=e.isolate()),!1===t.annotation(ty.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=ak.fromTransaction(t),s=t.annotation(ty.time),a=t.annotation(ty.userEvent);return o?e=e.addChanges(o,s,a,n.newGroupDelay,n.minDepth):t.selection&&(e=e.addSelection(t.startState.selection,s,a,n.newGroupDelay)),"full"!=r&&"after"!=r||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new mk(e.done.map(ak.fromJSON),e.undone.map(ak.fromJSON))});function tk(e={}){return[ek,JQ.of(e),g$.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?ik:"historyRedo"==e.inputType?rk:null;return!!n&&(e.preventDefault(),n(t))}})]}function nk(e,t){return function({state:n,dispatch:i}){if(!t&&n.readOnly)return!1;let r=n.field(ek,!1);if(!r)return!1;let o=r.pop(e,n,t);return!!o&&(i(o),!0)}}const ik=nk(0,!1),rk=nk(1,!1),ok=nk(0,!0),sk=nk(1,!0);class ak{constructor(e,t,n,i,r){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=i,this.selectionsAfter=r}setSelAfter(e){return new ak(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new ak(e.changes&&pg.fromJSON(e.changes),[],e.mapped&&fg.fromJSON(e.mapped),e.startSelection&&wg.fromJSON(e.startSelection),e.selectionsAfter.map(wg.fromJSON))}static fromTransaction(e,t){let n=uk;for(let t of e.startState.facet(KQ)){let i=t(e);i.length&&(n=n.concat(i))}return!n.length&&e.changes.empty?null:new ak(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,uk)}static selection(e){return new ak(void 0,uk,void 0,void 0,e)}}function lk(e,t,n,i){let r=t+1>n+20?t-n-1:0,o=e.slice(r,t);return o.push(i),o}function ck(e,t){return e.length?t.length?e.concat(t):e:t}const uk=[];function dk(e,t){if(e.length){let n=e[e.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(t)?e:(i.push(t),lk(e,e.length-1,1e9,n.setSelAfter(i)))}return[ak.selection([t])]}function fk(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function pk(e,t){if(!e.length)return e;let n=e.length,i=uk;for(;n;){let r=hk(e[n-1],t,i);if(r.changes&&!r.changes.empty||r.effects.length){let t=e.slice(0,n);return t[n-1]=r,t}t=r.mapped,n--,i=r.selectionsAfter}return i.length?[ak.selection(i)]:uk}function hk(e,t,n){let i=ck(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):uk,n);if(!e.changes)return ak.selection(i);let r=e.changes.map(t),o=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(o):o;return new ak(r,ey.mapEffects(e.effects,t),s,e.startSelection.map(o),i)}const Ok=/^(input\.type|delete)($|\.)/;class mk{constructor(e,t,n=0,i){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new mk(this.done,this.undone):this}addChanges(e,t,n,i,r){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&e.changes&&(!n||Ok.test(n))&&(!s.selectionsAfter.length&&t-this.prevTime<i&&function(e,t){let n=[],i=!1;return e.iterChangedRanges(((e,t)=>n.push(e,t))),t.iterChangedRanges(((e,t,r,o)=>{for(let e=0;e<n.length;){let t=n[e++],s=n[e++];o>=t&&r<=s&&(i=!0)}})),i}(s.changes,e.changes)||"input.type.compose"==n)?lk(o,o.length-1,r,new ak(e.changes.compose(s.changes),ck(e.effects,s.effects),s.mapped,s.startSelection,uk)):lk(o,o.length,r,e),new mk(o,uk,t,n)}addSelection(e,t,n,i){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:uk;return r.length>0&&t-this.prevTime<i&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&function(e,t){return e.ranges.length==t.ranges.length&&0===e.ranges.filter(((e,n)=>e.empty!=t.ranges[n].empty)).length}(r[r.length-1],e)?this:new mk(dk(this.done,e),this.undone,t,n)}addMapping(e){return new mk(pk(this.done,e),pk(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let i=0==e?this.done:this.undone;if(0==i.length)return null;let r=i[i.length-1];if(n&&r.selectionsAfter.length)return t.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:BQ.of({side:e,rest:fk(i)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let n=1==i.length?uk:i.slice(0,i.length-1);return r.mapped&&(n=pk(n,r.mapped)),t.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:BQ.of({side:e,rest:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}mk.empty=new mk(uk,uk);const gk=[{key:"Mod-z",run:ik,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:rk,preventDefault:!0},{linux:"Ctrl-Shift-z",run:rk,preventDefault:!0},{key:"Mod-u",run:ok,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:sk,preventDefault:!0}];function yk(e,t){return wg.create(e.ranges.map(t),e.mainIndex)}function bk(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function vk({state:e,dispatch:t},n){let i=yk(e.selection,n);return!i.eq(e.selection)&&(t(bk(e,i)),!0)}function wk(e,t){return wg.cursor(t?e.to:e.from)}function $k(e,t){return vk(e,(n=>n.empty?e.moveByChar(n,t):wk(n,t)))}function _k(e){return e.textDirectionAt(e.state.selection.main.head)==Sv.LTR}const xk=e=>$k(e,!_k(e)),Sk=e=>$k(e,_k(e));function Qk(e,t){return vk(e,(n=>n.empty?e.moveByGroup(n,t):wk(n,t)))}function kk(e,t,n){if(t.type.prop(n))return!0;let i=t.to-t.from;return i&&(i>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function Pk(e,t,n){let i,r,o=$S(e).resolveInner(t.head),s=n?tx.closedBy:tx.openedBy;for(let i=t.head;;){let t=n?o.childAfter(i):o.childBefore(i);if(!t)break;kk(e,t,s)?o=t:i=n?t.to:t.from}return r=o.type.prop(s)&&(i=n?CQ(e,o.from,1):CQ(e,o.to,-1))&&i.matched?n?i.end.to:i.end.from:n?o.to:o.from,wg.cursor(r,n?-1:1)}function Tk(e,t){return vk(e,(n=>{if(!n.empty)return wk(n,t);let i=e.moveVertically(n,t);return i.head!=n.head?i:e.moveToLineBoundary(n,t)}))}const qk=e=>Tk(e,!1),Rk=e=>Tk(e,!0);function Ek(e){return Math.max(e.defaultLineHeight,Math.min(e.dom.clientHeight,innerHeight)-5)}function jk(e,t){let{state:n}=e,i=yk(n.selection,(n=>n.empty?e.moveVertically(n,t,Ek(e)):wk(n,t)));if(i.eq(n.selection))return!1;let r,o=e.coordsAtPos(n.selection.main.head),s=e.scrollDOM.getBoundingClientRect();return o&&o.top>s.top&&o.bottom<s.bottom&&o.top-s.top<=e.scrollDOM.scrollHeight-e.scrollDOM.scrollTop-e.scrollDOM.clientHeight&&(r=g$.scrollIntoView(i.main.head,{y:"start",yMargin:o.top-s.top})),e.dispatch(bk(n,i),{effects:r}),!0}const Nk=e=>jk(e,!1),Ck=e=>jk(e,!0);function Ak(e,t,n){let i=e.lineBlockAt(t.head),r=e.moveToLineBoundary(t,n);if(r.head==t.head&&r.head!=(n?i.to:i.from)&&(r=e.moveToLineBoundary(t,n,!1)),!n&&r.head==i.from&&i.length){let n=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;n&&t.head!=i.from+n&&(r=wg.cursor(i.from+n))}return r}const zk=e=>vk(e,(t=>Ak(e,t,!0))),Dk=e=>vk(e,(t=>Ak(e,t,!1)));function Wk(e,t,n){let i=!1,r=yk(e.selection,(t=>{let r=CQ(e,t.head,-1)||CQ(e,t.head,1)||t.head>0&&CQ(e,t.head-1,1)||t.head<e.doc.length&&CQ(e,t.head+1,-1);if(!r||!r.end)return t;i=!0;let o=r.start.from==t.head?r.end.to:r.end.from;return n?wg.range(t.anchor,o):wg.cursor(o)}));return!!i&&(t(bk(e,r)),!0)}function Vk(e,t){let n=yk(e.state.selection,(e=>{let n=t(e);return wg.range(e.anchor,n.head,n.goalColumn)}));return!n.eq(e.state.selection)&&(e.dispatch(bk(e.state,n)),!0)}function Mk(e,t){return Vk(e,(n=>e.moveByChar(n,t)))}const Xk=e=>Mk(e,!_k(e)),Uk=e=>Mk(e,_k(e));function Ik(e,t){return Vk(e,(n=>e.moveByGroup(n,t)))}function Lk(e,t){return Vk(e,(n=>e.moveVertically(n,t)))}const Zk=e=>Lk(e,!1),Gk=e=>Lk(e,!0);function Yk(e,t){return Vk(e,(n=>e.moveVertically(n,t,Ek(e))))}const Fk=e=>Yk(e,!1),Bk=e=>Yk(e,!0),Hk=e=>Vk(e,(t=>Ak(e,t,!0))),Kk=e=>Vk(e,(t=>Ak(e,t,!1))),Jk=({state:e,dispatch:t})=>(t(bk(e,{anchor:0})),!0),eP=({state:e,dispatch:t})=>(t(bk(e,{anchor:e.doc.length})),!0),tP=({state:e,dispatch:t})=>(t(bk(e,{anchor:e.selection.main.anchor,head:0})),!0),nP=({state:e,dispatch:t})=>(t(bk(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function iP({state:e,dispatch:t},n){if(e.readOnly)return!1;let i="delete.selection",r=e.changeByRange((e=>{let{from:t,to:r}=e;if(t==r){let e=n(t);e<t?i="delete.backward":e>t&&(i="delete.forward"),t=Math.min(t,e),r=Math.max(r,e)}return t==r?{range:e}:{changes:{from:t,to:r},range:wg.cursor(t)}}));return!r.changes.empty&&(t(e.update(r,{scrollIntoView:!0,userEvent:i,effects:"delete.selection"==i?g$.announce.of(e.phrase("Selection deleted")):void 0})),!0)}function rP(e,t,n){if(e instanceof g$)for(let i of e.state.facet(g$.atomicRanges).map((t=>t(e))))i.between(t,t,((e,i)=>{e<t&&i>t&&(t=n?i:e)}));return t}const oP=(e,t)=>iP(e,(n=>{let i,r,{state:o}=e,s=o.doc.lineAt(n);if(!t&&n>s.from&&n<s.from+200&&!/[^ \t]/.test(i=s.text.slice(0,n-s.from))){if("\t"==i[i.length-1])return n-1;let e=qy(i,o.tabSize)%CS(o)||CS(o);for(let t=0;t<e&&" "==i[i.length-1-t];t++)n--;r=n}else r=ng(s.text,n-s.from,t,t)+s.from,r==n&&s.number!=(t?o.doc.lines:1)&&(r+=t?1:-1);return rP(e,r,t)})),sP=e=>oP(e,!1),aP=e=>oP(e,!0),lP=(e,t)=>iP(e,(n=>{let i=n,{state:r}=e,o=r.doc.lineAt(i),s=r.charCategorizer(i);for(let e=null;;){if(i==(t?o.to:o.from)){i==n&&o.number!=(t?r.doc.lines:1)&&(i+=t?1:-1);break}let a=ng(o.text,i-o.from,t)+o.from,l=o.text.slice(Math.min(i,a)-o.from,Math.max(i,a)-o.from),c=s(l);if(null!=e&&c!=e)break;" "==l&&i==n||(e=c),i=a}return rP(e,i,t)})),cP=e=>lP(e,!1),uP=e=>iP(e,(t=>{let n=e.lineBlockAt(t).to;return rP(e,t<n?n:Math.min(e.state.doc.length,t+1),!0)}));function dP(e){let t=[],n=-1;for(let i of e.selection.ranges){let r=e.doc.lineAt(i.from),o=e.doc.lineAt(i.to);if(i.empty||i.to!=o.from||(o=e.doc.lineAt(i.to-1)),n>=r.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(i)}else t.push({from:r.from,to:o.to,ranges:[i]});n=o.number+1}return t}function fP(e,t,n){if(e.readOnly)return!1;let i=[],r=[];for(let t of dP(e)){if(n?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(n?t.to+1:t.from-1),s=o.length+1;if(n){i.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak});for(let n of t.ranges)r.push(wg.range(Math.min(e.doc.length,n.anchor+s),Math.min(e.doc.length,n.head+s)))}else{i.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text});for(let e of t.ranges)r.push(wg.range(e.anchor-s,e.head-s))}}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:wg.create(r,e.selection.mainIndex),userEvent:"move.line"})),!0)}function pP(e,t,n){if(e.readOnly)return!1;let i=[];for(let t of dP(e))n?i.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):i.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const hP=mP(!1),OP=mP(!0);function mP(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=t.changeByRange((n=>{let{from:i,to:r}=n,o=t.doc.lineAt(i),s=!e&&i==r&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,i=$S(e).resolveInner(t),r=i.childBefore(t),o=i.childAfter(t);return r&&o&&r.to<=t&&o.from>=t&&(n=r.type.prop(tx.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(o.from).from?{from:r.to,to:o.from}:null}(t,i);e&&(i=r=(r<=o.to?o:t.doc.lineAt(r)).to);let a=new DS(t,{simulateBreak:i,simulateDoubleBreak:!!s}),l=zS(a,i);for(null==l&&(l=/^\s*/.exec(t.doc.lineAt(i).text)[0].length);r<o.to&&/\s/.test(o.text[r-o.from]);)r++;s?({from:i,to:r}=s):i>o.from&&i<o.from+100&&!/\S/.test(o.text.slice(0,i))&&(i=o.from);let c=["",AS(t,l)];return s&&c.push(AS(t,a.lineIndent(o.from,-1))),{changes:{from:i,to:r,insert:Im.of(c)},range:wg.cursor(i+1+c[1].length)}}));return n(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function gP(e,t){let n=-1;return e.changeByRange((i=>{let r=[];for(let o=i.from;o<=i.to;){let s=e.doc.lineAt(o);s.number>n&&(i.empty||i.to>s.from)&&(t(s,r,i),n=s.number),o=s.to+1}let o=e.changes(r);return{changes:r,range:wg.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}}))}const yP=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(gP(e,((t,n)=>{n.push({from:t.from,insert:e.facet(NS)})})),{userEvent:"input.indent"})),!0),bP=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(gP(e,((t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let r=qy(i,e.tabSize),o=0,s=AS(e,Math.max(0,r-CS(e)));for(;o<i.length&&o<s.length&&i.charCodeAt(o)==s.charCodeAt(o);)o++;n.push({from:t.from+o,to:t.from+i.length,insert:s.slice(o)})})),{userEvent:"delete.dedent"})),!0),vP=[{key:"Ctrl-b",run:xk,shift:Xk,preventDefault:!0},{key:"Ctrl-f",run:Sk,shift:Uk},{key:"Ctrl-p",run:qk,shift:Zk},{key:"Ctrl-n",run:Rk,shift:Gk},{key:"Ctrl-a",run:e=>vk(e,(t=>wg.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>Vk(e,(t=>wg.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>vk(e,(t=>wg.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>Vk(e,(t=>wg.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:aP},{key:"Ctrl-h",run:sP},{key:"Ctrl-k",run:uP},{key:"Ctrl-Alt-h",run:cP},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:Im.of(["",""])},range:wg.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,i=e.doc.lineAt(n),r=n==i.from?n-1:ng(i.text,n-i.from,!1)+i.from,o=n==i.to?n+1:ng(i.text,n-i.from,!0)+i.from;return{changes:{from:r,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(r,n))},range:wg.cursor(o)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Ck}],wP=[{key:"ArrowLeft",run:xk,shift:Xk,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>Qk(e,!_k(e)),shift:e=>Ik(e,!_k(e))},{mac:"Cmd-ArrowLeft",run:Dk,shift:Kk},{key:"ArrowRight",run:Sk,shift:Uk,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>Qk(e,_k(e)),shift:e=>Ik(e,_k(e))},{mac:"Cmd-ArrowRight",run:zk,shift:Hk},{key:"ArrowUp",run:qk,shift:Zk,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Jk,shift:tP},{mac:"Ctrl-ArrowUp",run:Nk,shift:Fk},{key:"ArrowDown",run:Rk,shift:Gk,preventDefault:!0},{mac:"Cmd-ArrowDown",run:eP,shift:nP},{mac:"Ctrl-ArrowDown",run:Ck,shift:Bk},{key:"PageUp",run:Nk,shift:Fk},{key:"PageDown",run:Ck,shift:Bk},{key:"Home",run:Dk,shift:Kk,preventDefault:!0},{key:"Mod-Home",run:Jk,shift:tP},{key:"End",run:zk,shift:Hk,preventDefault:!0},{key:"Mod-End",run:eP,shift:nP},{key:"Enter",run:hP},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:sP,shift:sP},{key:"Delete",run:aP},{key:"Mod-Backspace",mac:"Alt-Backspace",run:cP},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>lP(e,!0)},{mac:"Mod-Backspace",run:e=>iP(e,(t=>{let n=e.lineBlockAt(t).from;return rP(e,t>n?n:Math.max(0,t-1),!1)}))},{mac:"Mod-Delete",run:uP}].concat(vP.map((e=>({mac:e.key,run:e.run,shift:e.shift})))),$P=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>vk(e,(t=>Pk(e.state,t,!_k(e)))),shift:e=>Vk(e,(t=>Pk(e.state,t,!_k(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>vk(e,(t=>Pk(e.state,t,_k(e)))),shift:e=>Vk(e,(t=>Pk(e.state,t,_k(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>fP(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>pP(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>fP(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>pP(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,i=null;return n.ranges.length>1?i=wg.create([n.main]):n.main.empty||(i=wg.create([wg.cursor(n.main.head)])),!!i&&(t(bk(e,i)),!0)}},{key:"Mod-Enter",run:OP},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=dP(e).map((({from:t,to:n})=>wg.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:wg.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=yk(e.selection,(t=>{var n;let i=$S(e).resolveInner(t.head,1);for(;!(i.from<t.from&&i.to>=t.to||i.to>t.to&&i.from<=t.from)&&(null===(n=i.parent)||void 0===n?void 0:n.parent);)i=i.parent;return wg.range(i.to,i.from)}));return t(bk(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:bP},{key:"Mod-]",run:yP},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),i=new DS(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),r=gP(e,((t,r,o)=>{let s=zS(i,t.from);if(null==s)return;/\S/.test(t.text)||(s=0);let a=/^\s*/.exec(t.text)[0],l=AS(e,s);(a!=l||o.from<t.from+a.length)&&(n[t.from]=s,r.push({from:t.from,to:t.from+a.length,insert:l}))}));return r.changes.empty||t(e.update(r,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(dP(t).map((({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n})))),i=yk(t.selection,(t=>e.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>Wk(e,t,!1)},{key:"Mod-/",run:e=>{let t=GQ(e.state);return t.line?IQ(e):!!t.block&&ZQ(e)}},{key:"Alt-A",run:LQ}].concat(wP);function _P(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i];"string"==typeof r?e.setAttribute(i,r):null!=r&&(e[i]=r)}t++}for(;t<arguments.length;t++)xP(e,arguments[t]);return e}function xP(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var n=0;n<t.length;n++)xP(e,t[n])}}const SP="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class QP{constructor(e,t,n=0,i=e.length,r){this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,i),this.bufferStart=n,this.normalize=r?e=>r(SP(e)):SP,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ag(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=lg(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=cg(e);let i=this.normalize(t);for(let e=0,r=n;;e++){let o=i.charCodeAt(e),s=this.match(o,r);if(s)return this.value=s,this;if(e==i.length-1)break;r==n&&e<t.length&&t.charCodeAt(e)==o&&r++}}}match(e,t){let n=null;for(let i=0;i<this.matches.length;i+=2){let r=this.matches[i],o=!1;this.query.charCodeAt(r)==e&&(r==this.query.length-1?n={from:this.matches[i+1],to:t+1}:(this.matches[i]++,o=!0)),o||(this.matches.splice(i,2),i-=2)}return this.query.charCodeAt(0)==e&&(1==this.query.length?n={from:t,to:t+1}:this.matches.push(1,t)),n}}"undefined"!=typeof Symbol&&(QP.prototype[Symbol.iterator]=function(){return this});const kP={from:-1,to:-1,match:/.*/.exec("")},PP="gm"+(null==/x/.unicode?"":"u");class TP{constructor(e,t,n,i=0,r=e.length){if(this.to=r,this.curLine="",this.done=!1,this.value=kP,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new EP(e,t,n,i,r);this.re=new RegExp(t,PP+((null==n?void 0:n.ignoreCase)?"i":"")),this.iter=e.iter();let o=e.lineAt(i);this.curLineStart=o.from,this.matchPos=i,this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,i=n+t[0].length;if(this.matchPos=i+(n==i?1:0),n==this.curLine.length&&this.nextLine(),n<i||n>this.value.to)return this.value={from:n,to:i,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}const qP=new WeakMap;class RP{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let i=qP.get(e);if(!i||i.from>=n||i.to<=t){let i=new RP(t,e.sliceString(t,n));return qP.set(e,i),i}if(i.from==t&&i.to==n)return i;let{text:r,from:o}=i;return o>t&&(r=e.sliceString(t,o)+r,o=t),i.to<n&&(r+=e.sliceString(i.to,n)),qP.set(e,new RP(o,r)),new RP(t,r.slice(t-o,n-o))}}class EP{constructor(e,t,n,i,r){this.text=e,this.to=r,this.done=!1,this.value=kP,this.matchPos=i,this.re=new RegExp(t,PP+((null==n?void 0:n.ignoreCase)?"i":"")),this.flat=RP.get(e,i,this.chunkEnd(i+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t&&this.flat.to<this.to&&t.index+t[0].length>this.flat.text.length-10&&(t=null),t){let e=this.flat.from+t.index,n=e+t[0].length;return this.value={from:e,to:n,match:t},this.matchPos=n+(e==n?1:0),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=RP.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function jP(e){let t=_P("input",{class:"cm-textfield",name:"line"});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:i}=e,r=i.doc.lineAt(i.selection.main.head),[,o,s,a,l]=n,c=a?+a.slice(1):0,u=s?+s:r.number;if(s&&l){let e=u/100;o&&(e=e*("-"==o?-1:1)+r.number/i.doc.lines),u=Math.round(i.doc.lines*e)}else s&&o&&(u=u*("-"==o?-1:1)+r.number);let d=i.doc.line(Math.max(1,Math.min(i.doc.lines,u)));e.dispatch({effects:NP.of(!1),selection:wg.cursor(d.from+Math.max(0,Math.min(c,d.length))),scrollIntoView:!0}),e.focus()}return{dom:_P("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:NP.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},_P("label",e.state.phrase("Go to line"),": ",t)," ",_P("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(TP.prototype[Symbol.iterator]=EP.prototype[Symbol.iterator]=function(){return this});const NP=ey.define(),CP=Rg.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(NP)&&(e=n.value);return e},provide:e=>T_.from(e,(e=>e?jP:null))}),AP=g$.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),zP={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},DP=xg.define({combine:e=>py(e,zP,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});function WP(e){let t=[IP,UP];return e&&t.push(DP.of(e)),t}const VP=Lb.mark({class:"cm-selectionMatch"}),MP=Lb.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function XP(e,t,n,i){return!(0!=n&&e(t.sliceDoc(n-1,n))==ly.Word||i!=t.doc.length&&e(t.sliceDoc(i,i+1))==ly.Word)}const UP=Ov.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(DP),{state:n}=e,i=n.selection;if(i.ranges.length>1)return Lb.none;let r,o=i.main,s=null;if(o.empty){if(!t.highlightWordAroundCursor)return Lb.none;let e=n.wordAt(o.head);if(!e)return Lb.none;s=n.charCategorizer(o.head),r=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e<t.minSelectionLength||e>200)return Lb.none;if(t.wholeWords){if(r=n.sliceDoc(o.from,o.to),s=n.charCategorizer(o.head),!XP(s,n,o.from,o.to)||!function(e,t,n,i){return e(t.sliceDoc(n,n+1))==ly.Word&&e(t.sliceDoc(i-1,i))==ly.Word}(s,n,o.from,o.to))return Lb.none}else if(r=n.sliceDoc(o.from,o.to).trim(),!r)return Lb.none}let a=[];for(let i of e.visibleRanges){let e=new QP(n.doc,r,i.from,i.to);for(;!e.next().done;){let{from:i,to:r}=e.value;if((!s||XP(s,n,i,r))&&(o.empty&&i<=o.from&&r>=o.to?a.push(MP.range(i,r)):(i>=o.to||r<=o.from)&&a.push(VP.range(i,r)),a.length>t.maxMatches))return Lb.none}}return Lb.set(a)}},{decorations:e=>e.decorations}),IP=g$.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const LP=xg.define({combine(e){var t;return{top:e.reduce(((e,t)=>null!=e?e:t.top),void 0)||!1,caseSensitive:e.reduce(((e,t)=>null!=e?e:t.caseSensitive),void 0)||!1,createPanel:(null===(t=e.find((e=>e.createPanel)))||void 0===t?void 0:t.createPanel)||(e=>new mT(e))}}});class ZP{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,PP),!0}catch(e){return!1}}(this.search)),this.unquoted=e.literal?this.search:this.search.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp}create(){return this.regexp?new HP(this):new FP(this)}getCursor(e,t=0,n=e.length){return this.regexp?BP(this,e,t,n):YP(this,e,t,n)}}class GP{constructor(e){this.spec=e}}function YP(e,t,n,i){return new QP(t,e.unquoted,n,i,e.caseSensitive?void 0:e=>e.toLowerCase())}class FP extends GP{constructor(e){super(e)}nextMatch(e,t,n){let i=YP(this.spec,e,n,e.length).nextOverlapping();return i.done&&(i=YP(this.spec,e,0,t).nextOverlapping()),i.done?null:i.value}prevMatchInRange(e,t,n){for(let i=n;;){let n=Math.max(t,i-1e4-this.spec.unquoted.length),r=YP(this.spec,e,n,i),o=null;for(;!r.nextOverlapping().done;)o=r.value;if(o)return o;if(n==t)return null;i-=1e4}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.length)}getReplacement(e){return this.spec.replace}matchAll(e,t){let n=YP(this.spec,e,0,e.length),i=[];for(;!n.next().done;){if(i.length>=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let r=YP(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.length));for(;!r.next().done;)i(r.value.from,r.value.to)}}function BP(e,t,n,i){return new TP(t,e.search,e.caseSensitive?void 0:{ignoreCase:!0},n,i)}class HP extends GP{nextMatch(e,t,n){let i=BP(this.spec,e,n,e.length).next();return i.done&&(i=BP(this.spec,e,0,t).next()),i.done?null:i.value}prevMatchInRange(e,t,n){for(let i=1;;i++){let r=Math.max(t,n-1e4*i),o=BP(this.spec,e,r,n),s=null;for(;!o.next().done;)s=o.value;if(s&&(r==t||s.from>r+10))return s;if(r==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.length)}getReplacement(e){return this.spec.replace.replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n<e.match.length?e.match[n]:t))}matchAll(e,t){let n=BP(this.spec,e,0,e.length),i=[];for(;!n.next().done;){if(i.length>=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let r=BP(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.length));for(;!r.next().done;)i(r.value.from,r.value.to)}}const KP=ey.define(),JP=ey.define(),eT=Rg.define({create:e=>new tT(fT(e).create(),null),update(e,t){for(let n of t.effects)n.is(KP)?e=new tT(n.value.create(),e.panel):n.is(JP)&&(e=new tT(e.query,n.value?dT:null));return e},provide:e=>T_.from(e,(e=>e.panel))});class tT{constructor(e,t){this.query=e,this.panel=t}}const nT=Lb.mark({class:"cm-searchMatch"}),iT=Lb.mark({class:"cm-searchMatch cm-searchMatch-selected"}),rT=Ov.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(eT))}update(e){let t=e.state.field(eT);(t!=e.startState.field(eT)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return Lb.none;let{view:n}=this,i=new by;for(let t=0,r=n.visibleRanges,o=r.length;t<o;t++){let{from:s,to:a}=r[t];for(;t<o-1&&a>r[t+1].from-500;)a=r[++t].to;e.highlight(n.state.doc,s,a,((e,t)=>{let r=n.state.selection.ranges.some((n=>n.from==e&&n.to==t));i.add(e,t,r?iT:nT)}))}return i.finish()}},{decorations:e=>e.decorations});function oT(e){return t=>{let n=t.state.field(eT,!1);return n&&n.query.spec.valid?e(t,n):pT(t)}}const sT=oT(((e,{query:t})=>{let{to:n}=e.state.selection.main,i=t.nextMatch(e.state.doc,n,n);return!!i&&(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:bT(e,i),userEvent:"select.search"}),!0)})),aT=oT(((e,{query:t})=>{let{state:n}=e,{from:i}=n.selection.main,r=t.prevMatch(n.doc,i,i);return!!r&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:bT(e,r),userEvent:"select.search"}),!0)})),lT=oT(((e,{query:t})=>{let n=t.matchAll(e.state.doc,1e3);return!(!n||!n.length)&&(e.dispatch({selection:wg.create(n.map((e=>wg.range(e.from,e.to)))),userEvent:"select.search.matches"}),!0)})),cT=oT(((e,{query:t})=>{let{state:n}=e,{from:i,to:r}=n.selection.main;if(n.readOnly)return!1;let o=t.nextMatch(n.doc,i,i);if(!o)return!1;let s,a,l=[],c=[];if(o.from==i&&o.to==r&&(a=n.toText(t.getReplacement(o)),l.push({from:o.from,to:o.to,insert:a}),o=t.nextMatch(n.doc,o.from,o.to),c.push(g$.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+"."))),o){let t=0==l.length||l[0].from>=o.to?0:o.to-o.from-a.length;s={anchor:o.from-t,head:o.to-t},c.push(bT(e,o))}return e.dispatch({changes:l,selection:s,scrollIntoView:!!s,effects:c,userEvent:"input.replace"}),!0})),uT=oT(((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state.doc,1e9).map((e=>{let{from:n,to:i}=e;return{from:n,to:i,insert:t.getReplacement(e)}}));if(!n.length)return!1;let i=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:g$.announce.of(i),userEvent:"input.replace.all"}),!0}));function dT(e){return e.state.facet(LP).createPanel(e)}function fT(e,t){var n;let i=e.selection.main,r=i.empty||i.to>i.from+100?"":e.sliceDoc(i.from,i.to),o=null!==(n=null==t?void 0:t.caseSensitive)&&void 0!==n?n:e.facet(LP).caseSensitive;return t&&!r?t:new ZP({search:r.replace(/\n/g,"\\n"),caseSensitive:o})}const pT=e=>{let t=e.state.field(eT,!1);if(t&&t.panel){let n=S_(e,dT);if(!n)return!1;let i=n.dom.querySelector("[main-field]");if(i&&i!=e.root.activeElement){let n=fT(e.state,t.query.spec);n.valid&&e.dispatch({effects:KP.of(n)}),i.focus(),i.select()}}else e.dispatch({effects:[JP.of(!0),t?KP.of(fT(e.state,t.query.spec)):ey.appendConfig.of(wT)]});return!0},hT=e=>{let t=e.state.field(eT,!1);if(!t||!t.panel)return!1;let n=S_(e,dT);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:JP.of(!1)}),!0},OT=[{key:"Mod-f",run:pT,scope:"editor search-panel"},{key:"F3",run:sT,shift:aT,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:sT,shift:aT,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:hT,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:r}=n.main,o=[],s=0;for(let t=new QP(e.doc,e.sliceDoc(i,r));!t.next().done;){if(o.length>1e3)return!1;t.value.from==i&&(s=o.length),o.push(wg.range(t.value.from,t.value.to))}return t(e.update({selection:wg.create(o,s),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:e=>{let t=S_(e,jP);if(!t){let n=[NP.of(!0)];null==e.state.field(CP,!1)&&n.push(ey.appendConfig.of([CP,AP])),e.dispatch({effects:n}),t=S_(e,jP)}return t&&t.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:n}=e,i=wg.create(n.ranges.map((t=>e.wordAt(t.head)||wg.cursor(t.head))),n.mainIndex);return!i.eq(n)&&(t(e.update({selection:i})),!0)})({state:e,dispatch:t});let i=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=i)))return!1;let r=function(e,t){let{main:n,ranges:i}=e.selection,r=e.wordAt(n.head),o=r&&r.from==n.from&&r.to==n.to;for(let n=!1,r=new QP(e.doc,t,i[i.length-1].to);;){if(r.next(),!r.done){if(n&&i.some((e=>e.from==r.value.from)))continue;if(o){let t=e.wordAt(r.value.from);if(!t||t.from!=r.value.from||t.to!=r.value.to)continue}return r.value}if(n)return null;r=new QP(e.doc,t,0,Math.max(0,i[i.length-1].from-1)),n=!0}}(e,i);return!!r&&(t(e.update({selection:e.selection.addRange(wg.range(r.from,r.to),!1),effects:g$.scrollIntoView(r.to)})),!0)},preventDefault:!0}];class mT{constructor(e){this.view=e;let t=this.query=e.state.field(eT).query.spec;function n(e,t,n){return _P("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=_P("input",{value:t.search,placeholder:gT(e,"Find"),"aria-label":gT(e,"Find"),class:"cm-textfield",name:"search","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=_P("input",{value:t.replace,placeholder:gT(e,"Replace"),"aria-label":gT(e,"Replace"),class:"cm-textfield",name:"replace",onchange:this.commit,onkeyup:this.commit}),this.caseField=_P("input",{type:"checkbox",name:"case",checked:t.caseSensitive,onchange:this.commit}),this.reField=_P("input",{type:"checkbox",name:"re",checked:t.regexp,onchange:this.commit}),this.dom=_P("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>sT(e)),[gT(e,"next")]),n("prev",(()=>aT(e)),[gT(e,"previous")]),n("select",(()=>lT(e)),[gT(e,"all")]),_P("label",null,[this.caseField,gT(e,"match case")]),_P("label",null,[this.reField,gT(e,"regexp")]),...e.state.readOnly?[]:[_P("br"),this.replaceField,n("replace",(()=>cT(e)),[gT(e,"replace")]),n("replaceAll",(()=>uT(e)),[gT(e,"replace all")]),_P("button",{name:"close",onclick:()=>hT(e),"aria-label":gT(e,"close"),type:"button"},["×"])]])}commit(){let e=new ZP({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:KP.of(e)}))}keydown(e){var t,n,i;t=this.view,n=e,i="search-panel",T$(k$(t.state),n,t,i)?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?aT:sT)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),cT(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(KP)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(LP).top}}function gT(e,t){return e.state.phrase(t)}const yT=/[\s\.,:;?!]/;function bT(e,{from:t,to:n}){let i=e.state.doc.lineAt(t),r=e.state.doc.lineAt(n).to,o=Math.max(i.from,t-30),s=Math.min(r,n+30),a=e.state.sliceDoc(o,s);if(o!=i.from)for(let e=0;e<30;e++)if(!yT.test(a[e+1])&&yT.test(a[e])){a=a.slice(e);break}if(s!=r)for(let e=a.length-1;e>a.length-30;e--)if(!yT.test(a[e-1])&&yT.test(a[e])){a=a.slice(0,e);break}return g$.announce.of(`${e.state.phrase("current match")}. ${a} ${e.state.phrase("on line")} ${i.number}.`)}const vT=g$.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),wT=[eT,zg.lowest(rT),vT];class $T{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=$S(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),i=t.text.slice(n-t.from,this.pos-t.from),r=i.search(kT(e,!1));return r<0?null:{from:n+r,to:this.pos,text:i.slice(r)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function _T(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function xT(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,i]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let e=1;e<i.length;e++)n[i[e]]=!0}let i=_T(t)+_T(n)+"*$";return[new RegExp("^"+i),new RegExp(i)]}(t);return e=>{let r=e.matchBefore(i);return r||e.explicit?{from:r?r.from:e.pos,options:t,validFor:n}:null}}class ST{constructor(e,t,n){this.completion=e,this.source=t,this.match=n}}function QT(e){return e.selection.main.head}function kT(e,t){var n;let{source:i}=e,r=t&&"^"!=i[0],o="$"!=i[i.length-1];return r||o?new RegExp(`${r?"^":""}(?:${i})${o?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}function PT(e,t){const n=t.completion.apply||t.completion.label;let i=t.source;"string"==typeof n?e.dispatch(function(e,t,n,i){return Object.assign(Object.assign({},e.changeByRange((r=>{if(r==e.selection.main)return{changes:{from:n,to:i,insert:t},range:wg.cursor(n+t.length)};let o=i-n;return!r.empty||o&&e.sliceDoc(r.from-o,r.from)!=e.sliceDoc(n,i)?{range:r}:{changes:{from:r.from-o,to:r.from,insert:t},range:wg.cursor(r.from-o+t.length)}}))),{userEvent:"input.complete"})}(e.state,n,i.from,i.to)):n(e,t.completion,i.from,i.to)}const TT=new WeakMap;function qT(e){if(!Array.isArray(e))return e;let t=TT.get(e);return t||TT.set(e,t=xT(e)),t}class RT{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(let t=0;t<e.length;){let n=ag(e,t),i=cg(n);this.chars.push(n);let r=e.slice(t,t+i),o=r.toUpperCase();this.folded.push(ag(o==r?r.toLowerCase():o,0)),t+=i}this.astral=e.length!=this.chars.length}match(e){if(0==this.pattern.length)return[0];if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:i,precise:r,byWord:o}=this;if(1==t.length){let i=ag(e,0);return i==t[0]?[0,0,cg(i)]:i==n[0]?[-200,0,cg(i)]:null}let s=e.indexOf(this.pattern);if(0==s)return[0,0,this.pattern.length];let a=t.length,l=0;if(s<0){for(let r=0,o=Math.min(e.length,200);r<o&&l<a;){let o=ag(e,r);o!=t[l]&&o!=n[l]||(i[l++]=r),r+=cg(o)}if(l<a)return null}let c=0,u=0,d=!1,f=0,p=-1,h=-1,O=/[a-z]/.test(e),m=!0;for(let i=0,l=Math.min(e.length,200),g=0;i<l&&u<a;){let l=ag(e,i);s<0&&(c<a&&l==t[c]&&(r[c++]=i),f<a&&(l==t[f]||l==n[f]?(0==f&&(p=i),h=i+1,f++):f=0));let y,b=l<255?l>=48&&l<=57||l>=97&&l<=122?2:l>=65&&l<=90?1:0:(y=lg(l))!=y.toLowerCase()?1:y!=y.toUpperCase()?2:0;(!i||1==b&&O||0==g&&0!=b)&&(t[u]==l||n[u]==l&&(d=!0)?o[u++]=i:o.length&&(m=!1)),g=b,i+=cg(l)}return u==a&&0==o[0]&&m?this.result((d?-200:0)-100,o,e):f==a&&0==p?[-200-e.length,0,h]:s>-1?[-700-e.length,s,s+this.pattern.length]:f==a?[-900-e.length,p,h]:u==a?this.result((d?-200:0)-100-700+(m?0:-1100),o,e):2==t.length?null:this.result((i[0]?-700:0)-200-1100,i,e)}result(e,t,n){let i=[e-n.length],r=1;for(let e of t){let t=e+(this.astral?cg(ag(n,e)):1);r>1&&i[r-1]==e?i[r-1]=t:(i[r++]=e,i[r++]=t)}return i}}const ET=xg.define({combine:e=>py(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],compareCompletions:(e,t)=>e.label.localeCompare(t.label)},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,optionClass:(e,t)=>n=>function(e,t){return e?t?e+" "+t:e:t}(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function jT(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let i=Math.floor((e-t)/n);return{from:e-(i+1)*n,to:e-i*n}}class NT{constructor(e,t){this.view=e,this.stateField=t,this.info=null,this.placeInfo={read:()=>this.measureInfo(),write:e=>this.positionInfo(e),key:this};let n=e.state.field(t),{options:i,selected:r}=n.open,o=e.state.facet(ET);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n){let i=document.createElement("span");i.className="cm-completionLabel";let{label:r}=e,o=0;for(let e=1;e<n.length;){let t=n[e++],s=n[e++];t>o&&i.appendChild(document.createTextNode(r.slice(o,t)));let a=i.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(r.slice(t,s))),a.className="cm-completionMatchedText",o=s}return o<r.length&&i.appendChild(document.createTextNode(r.slice(o))),i},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort(((e,t)=>e.position-t.position)).map((e=>e.render))}(o),this.optionClass=o.optionClass,this.range=jT(i.length,r,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.dom.addEventListener("mousedown",(t=>{for(let n,r=t.target;r&&r!=this.dom;r=r.parentNode)if("LI"==r.nodeName&&(n=/-(\d+)$/.exec(r.id))&&+n[1]<i.length)return PT(e,i[+n[1]]),void t.preventDefault()})),this.list=this.dom.appendChild(this.createListBox(i,n.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfo)}))}mount(){this.updateSel()}update(e){e.state.field(this.stateField)!=e.startState.field(this.stateField)&&this.updateSel()}positioned(){this.info&&this.view.requestMeasure(this.placeInfo)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=jT(t.options.length,t.selected,this.view.state.facet(ET).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfo)}))),this.updateSelectedOption(t.selected)){this.info&&(this.info.remove(),this.info=null);let{completion:n}=t.options[t.selected],{info:i}=n;if(!i)return;let r="string"==typeof i?document.createTextNode(i):i(n);if(!r)return;"then"in r?r.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t)})).catch((e=>dv(this.view.state,e,"completion info"))):this.addInfoPane(r)}}addInfoPane(e){let t=this.info=document.createElement("div");t.className="cm-tooltip cm-completionInfo",t.appendChild(e),this.dom.appendChild(t),this.view.requestMeasure(this.placeInfo)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,i=this.range.from;n;n=n.nextSibling,i++)i==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected");return t&&function(e,t){let n=e.getBoundingClientRect(),i=t.getBoundingClientRect();i.top<n.top?e.scrollTop-=n.top-i.top:i.bottom>n.bottom&&(e.scrollTop+=i.bottom-n.bottom)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),i=e.getBoundingClientRect();if(i.top>Math.min(innerHeight,t.bottom)-10||i.bottom<Math.max(0,t.top)+10)return null;let r=Math.max(0,Math.min(i.top,innerHeight-n.height))-t.top,o=this.view.textDirection==Sv.RTL,s=t.left,a=innerWidth-t.right;return o&&s<Math.min(n.width,a)?o=!1:!o&&a<Math.min(n.width,s)&&(o=!0),{top:r,left:o}}positionInfo(e){this.info&&(this.info.style.top=(e?e.top:-1e6)+"px",e&&(this.info.classList.toggle("cm-completionInfo-left",e.left),this.info.classList.toggle("cm-completionInfo-right",!e.left)))}createListBox(e,t,n){const i=document.createElement("ul");i.id=t,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions"));for(let r=n.from;r<n.to;r++){let{completion:n,match:o}=e[r];const s=i.appendChild(document.createElement("li"));s.id=t+"-"+r,s.setAttribute("role","option");let a=this.optionClass(n);a&&(s.className=a);for(let e of this.optionContent){let t=e(n,this.view.state,o);t&&s.appendChild(t)}}return n.from&&i.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&i.classList.add("cm-completionListIncompleteBottom"),i}}function CT(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class AT{constructor(e,t,n,i,r){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=i,this.selected=r}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new AT(this.options,WT(t,e),this.tooltip,this.timestamp,e)}static build(e,t,n,i,r){let o=function(e,t){let n=[],i=0;for(let r of e)if(r.hasResult())if(!1===r.result.filter){let e=r.result.getMatch;for(let t of r.result.options){let o=[1e9-i++];if(e)for(let n of e(t))o.push(n);n.push(new ST(t,r,o))}}else{let e,i=new RT(t.sliceDoc(r.from,r.to));for(let t of r.result.options)(e=i.match(t.label))&&(null!=t.boost&&(e[0]+=t.boost),n.push(new ST(t,r,e)))}let r=[],o=null,s=t.facet(ET).compareCompletions;for(let e of n.sort(((e,t)=>t.match[0]-e.match[0]||s(e.completion,t.completion))))!o||o.label!=e.completion.label||o.detail!=e.completion.detail||null!=o.type&&null!=e.completion.type&&o.type!=e.completion.type||o.apply!=e.completion.apply?r.push(e):CT(e.completion)>CT(o)&&(r[r.length-1]=e),o=e.completion;return r}(e,t);if(!o.length)return null;let s=t.facet(ET).selectOnOpen?0:-1;if(i&&i.selected!=s&&-1!=i.selected){let e=i.options[i.selected].completion;for(let t=0;t<o.length;t++)if(o[t].completion==e){s=t;break}}return new AT(o,WT(n,s),{pos:e.reduce(((e,t)=>t.hasResult()?Math.min(e,t.from):e),1e8),create:(a=YT,e=>new NT(e,a)),above:r.aboveCursor},i?i.timestamp:Date.now(),s);var a}map(e){return new AT(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}class zT{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new zT(VT,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(ET),i=(n.override||t.languageDataAt("autocomplete",QT(t)).map(qT)).map((t=>{let i=this.active.find((e=>e.source==t))||new XT(t,this.active.some((e=>0!=e.state))?1:0);return i.update(e,n)}));i.length==this.active.length&&i.every(((e,t)=>e==this.active[t]))&&(i=this.active);let r=e.selection||i.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,i=0;;){for(;n<e.length&&!e[n].hasResult;)n++;for(;i<t.length&&!t[i].hasResult;)i++;let r=n==e.length,o=i==t.length;if(r||o)return r==o;if(e[n++].result!=t[i++].result)return!1}}(i,this.active)?AT.build(i,t,this.id,this.open,n):this.open&&e.docChanged?this.open.map(e.changes):this.open;!r&&i.every((e=>1!=e.state))&&i.some((e=>e.hasResult()))&&(i=i.map((e=>e.hasResult()?new XT(e.source,0):e)));for(let t of e.effects)t.is(GT)&&(r=r&&r.setSelected(t.value,this.id));return i==this.active&&r==this.open?this:new zT(i,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:DT}}const DT={"aria-autocomplete":"list"};function WT(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const VT=[];function MT(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class XT{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=MT(e),i=this;n?i=i.handleUserEvent(e,n,t):e.docChanged?i=i.handleChange(e):e.selection&&0!=i.state&&(i=new XT(i.source,0));for(let t of e.effects)if(t.is(IT))i=new XT(i.source,1,t.value?QT(e.state):-1);else if(t.is(LT))i=new XT(i.source,0);else if(t.is(ZT))for(let e of t.value)e.source==i.source&&(i=e);return i}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new XT(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(QT(e.startState))?new XT(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new XT(this.source,this.state,e.mapPos(this.explicitPos))}}class UT extends XT{constructor(e,t,n,i,r){super(e,2,t),this.result=n,this.from=i,this.to=r}hasResult(){return!0}handleUserEvent(e,t,n){var i;let r=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),s=QT(e.state);if((this.explicitPos<0?s<=r:s<this.from)||s>o||"delete"==t&&QT(e.startState)==this.from)return new XT(this.source,"input"==t&&n.activateOnTyping?1:0);let a,l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,i){if(!e)return!1;let r=t.sliceDoc(n,i);return"function"==typeof e?e(r,n,i,t):kT(e,!0).test(r)}(this.result.validFor,e.state,r,o)?new UT(this.source,l,this.result,r,o):this.result.update&&(a=this.result.update(this.result,r,o,new $T(e.state,s,l>=0)))?new UT(this.source,l,a,a.from,null!==(i=a.to)&&void 0!==i?i:QT(e.state)):new XT(this.source,1,l)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new XT(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new UT(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const IT=ey.define(),LT=ey.define(),ZT=ey.define({map:(e,t)=>e.map((e=>e.map(t)))}),GT=ey.define(),YT=Rg.define({create:()=>zT.start(),update:(e,t)=>e.update(t),provide:e=>[g_.from(e,(e=>e.tooltip)),g$.contentAttributes.from(e,(e=>e.attrs))]});function FT(e,t="option"){return n=>{let i=n.state.field(YT,!1);if(!i||!i.open||Date.now()-i.open.timestamp<75)return!1;let r,o=1;"page"==t&&(r=function(e,t){let n=e.plugin(h_);if(!n)return null;let i=n.manager.tooltips.indexOf(t);return i<0?null:n.manager.tooltipViews[i]}(n,i.open.tooltip))&&(o=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));let{length:s}=i.open.options,a=i.open.selected>-1?i.open.selected+o*(e?1:-1):e?0:s-1;return a<0?a="page"==t?0:s-1:a>=s&&(a="page"==t?s-1:0),n.dispatch({effects:GT.of(a)}),!0}}class BT{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const HT=Ov.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(YT).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(YT);if(!e.selectionSet&&!e.docChanged&&e.startState.field(YT)==t)return;let n=e.transactions.some((e=>(e.selection||e.docChanged)&&!MT(e)));for(let t=0;t<this.running.length;t++){let i=this.running[t];if(n||i.updates.length+e.transactions.length>50&&Date.now()-i.time>1e3){for(let e of i.context.abortListeners)try{e()}catch(e){dv(this.view.state,e)}i.context.abortListeners=null,this.running.splice(t--,1)}else i.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let t of e.transactions)"input"==MT(t)?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(YT);for(let e of t.active)1!=e.state||this.running.some((t=>t.active.source==e.source))||this.startQuery(e)}startQuery(e){let{state:t}=this.view,n=QT(t),i=new $T(t,n,e.explicitPos==n),r=new BT(e,i);this.running.push(r),Promise.resolve(e.source(i)).then((e=>{r.context.aborted||(r.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:LT.of(null)}),dv(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),50))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(ET);for(let i=0;i<this.running.length;i++){let r=this.running[i];if(void 0===r.done)continue;if(this.running.splice(i--,1),r.done){let i=new UT(r.active.source,r.active.explicitPos,r.done,r.done.from,null!==(e=r.done.to)&&void 0!==e?e:QT(r.updates.length?r.updates[0].startState:this.view.state));for(let e of r.updates)i=i.update(e,n);if(i.hasResult()){t.push(i);continue}}let o=this.view.state.field(YT).active.find((e=>e.source==r.active.source));if(o&&1==o.state)if(null==r.done){let e=new XT(r.active.source,0);for(let t of r.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(o)}t.length&&this.view.dispatch({effects:ZT.of(t)})}},{eventHandlers:{blur(){let e=this.view.state.field(YT,!1);e&&e.tooltip&&this.view.state.facet(ET).closeOnBlur&&this.view.dispatch({effects:LT.of(null)})},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:IT.of(!1)})),20),this.composing=0}}}),KT=g$.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class JT{constructor(e,t,n,i){this.field=e,this.line=t,this.from=n,this.to=i}}class eq{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,dg.TrackDel),n=e.mapPos(this.to,1,dg.TrackDel);return null==t||null==n?null:new eq(this.field,t,n)}}class tq{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],i=[t],r=e.doc.lineAt(t),o=/^\s*/.exec(r.text)[0];for(let r of this.lines){if(n.length){let n=o,s=/^\t*/.exec(r)[0].length;for(let t=0;t<s;t++)n+=e.facet(NS);i.push(t+n.length-s),r=n+r.slice(s)}n.push(r),t+=r.length+1}let s=this.fieldPositions.map((e=>new eq(e.field,i[e.line]+e.from,i[e.line]+e.to)));return{text:n,ranges:s}}static parse(e){let t,n=[],i=[],r=[];for(let o of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(o);){let e=t[1]?+t[1]:null,s=t[2]||t[3]||"",a=-1;for(let t=0;t<n.length;t++)(null!=e?n[t].seq==e:s&&n[t].name==s)&&(a=t);if(a<0){let t=0;for(;t<n.length&&(null==e||null!=n[t].seq&&n[t].seq<e);)t++;n.splice(t,0,{seq:e,name:s}),a=t;for(let e of r)e.field>=a&&e.field++}r.push(new JT(a,i.length,t.index,t.index+s.length)),o=o.slice(0,t.index)+s+o.slice(t.index+t[0].length)}for(let e;e=/([$#])\\{/.exec(o);){o=o.slice(0,e.index)+e[1]+"{"+o.slice(e.index+e[0].length);for(let t of r)t.line==i.length&&t.from>e.index&&(t.from--,t.to--)}i.push(o)}return new tq(i,r)}}let nq=Lb.widget({widget:new class extends Ub{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),iq=Lb.mark({class:"cm-snippetField"});class rq{constructor(e,t){this.ranges=e,this.active=t,this.deco=Lb.set(e.map((e=>(e.from==e.to?nq:iq).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let i=n.map(e);if(!i)return null;t.push(i)}return new rq(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const oq=ey.define({map:(e,t)=>e&&e.map(t)}),sq=ey.define(),aq=Rg.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(oq))return n.value;if(n.is(sq)&&e)return new rq(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>g$.decorations.from(e,(e=>e?e.deco:Lb.none))});function lq(e,t){return wg.create(e.filter((e=>e.field==t)).map((e=>wg.range(e.from,e.to))))}function cq(e){let t=tq.parse(e);return(e,n,i,r)=>{let{text:o,ranges:s}=t.instantiate(e.state,i),a={changes:{from:i,to:r,insert:Im.of(o)},scrollIntoView:!0};if(s.length&&(a.selection=lq(s,0)),s.length>1){let t=new rq(s,0),n=a.effects=[oq.of(t)];void 0===e.state.field(aq,!1)&&n.push(ey.appendConfig.of([aq,pq,Oq,KT]))}e.dispatch(e.state.update(a))}}function uq(e){return({state:t,dispatch:n})=>{let i=t.field(aq,!1);if(!i||e<0&&0==i.active)return!1;let r=i.active+e,o=e>0&&!i.ranges.some((t=>t.field==r+e));return n(t.update({selection:lq(i.ranges,r),effects:oq.of(o?null:new rq(i.ranges,r))})),!0}}const dq=[{key:"Tab",run:uq(1),shift:uq(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(aq,!1)&&(t(e.update({effects:oq.of(null)})),!0)}],fq=xg.define({combine:e=>e.length?e[0]:dq}),pq=zg.highest(S$.compute([fq],(e=>e.facet(fq))));function hq(e,t){return Object.assign(Object.assign({},t),{apply:cq(e)})}const Oq=g$.domEventHandlers({mousedown(e,t){let n,i=t.state.field(aq,!1);if(!i||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let r=i.ranges.find((e=>e.from<=n&&e.to>=n));return!(!r||r.field==i.active)&&(t.dispatch({selection:lq(i.ranges,r.field),effects:oq.of(i.ranges.some((e=>e.field>r.field))?new rq(i.ranges,r.field):null)}),!0)}});const mq={brackets:["(","[","{","'",'"'],before:")]}:;>"},gq=ey.define({map(e,t){let n=t.mapPos(e,-1,dg.TrackAfter);return null==n?void 0:n}}),yq=ey.define({map:(e,t)=>t.mapPos(e)}),bq=new class extends hy{};bq.startSide=1,bq.endSide=-1;const vq=Rg.define({create:()=>yy.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,i=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(i,-1)&&(e=yy.empty)}e=e.map(t.changes);for(let n of t.effects)n.is(gq)?e=e.update({add:[bq.range(n.value,n.value+1)]}):n.is(yq)&&(e=e.update({filter:e=>e!=n.value}));return e}});const wq="()[]{}<>";function $q(e){for(let t=0;t<wq.length;t+=2)if(wq.charCodeAt(t)==e)return wq.charAt(t+1);return lg(e<128?e:e+1)}function _q(e,t){return e.languageDataAt("closeBrackets",t)[0]||mq}const xq="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Sq=g$.inputHandler.of(((e,t,n,i)=>{if((xq?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let r=e.state.selection.main;if(i.length>2||2==i.length&&1==cg(ag(i,0))||t!=r.from||n!=r.to)return!1;let o=function(e,t){let n=_q(e,e.selection.main.head),i=n.brackets||mq.brackets;for(let r of i){let o=$q(ag(r,0));if(t==r)return o==r?Rq(e,r,i.indexOf(r+r+r)>-1):Tq(e,r,o,n.before||mq.before);if(t==o&&kq(e,e.selection.main.from))return qq(e,r,o)}return null}(e.state,i);return!!o&&(e.dispatch(o),!0)})),Qq=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=_q(e,e.selection.main.head).brackets||mq.brackets,i=null,r=e.changeByRange((t=>{if(t.empty){let i=function(e,t){let n=e.sliceString(t-2,t);return cg(ag(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let r of n)if(r==i&&Pq(e.doc,t.head)==$q(ag(r,0)))return{changes:{from:t.head-r.length,to:t.head+r.length},range:wg.cursor(t.head-r.length),userEvent:"delete.backward"}}return{range:i=t}}));return i||t(e.update(r,{scrollIntoView:!0})),!i}}];function kq(e,t){let n=!1;return e.field(vq).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function Pq(e,t){let n=e.sliceString(t,t+2);return n.slice(0,cg(ag(n,0)))}function Tq(e,t,n,i){let r=null,o=e.changeByRange((o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],effects:gq.of(o.to+t.length),range:wg.range(o.anchor+t.length,o.head+t.length)};let s=Pq(e.doc,o.head);return!s||/\s/.test(s)||i.indexOf(s)>-1?{changes:{insert:t+n,from:o.head},effects:gq.of(o.head+t.length),range:wg.cursor(o.head+t.length)}:{range:r=o}}));return r?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function qq(e,t,n){let i=null,r=e.selection.ranges.map((t=>t.empty&&Pq(e.doc,t.head)==n?wg.cursor(t.head+n.length):i=t));return i?null:e.update({selection:wg.create(r,e.selection.mainIndex),scrollIntoView:!0,effects:e.selection.ranges.map((({from:e})=>yq.of(e)))})}function Rq(e,t,n){let i=null,r=e.changeByRange((r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:gq.of(r.to+t.length),range:wg.range(r.anchor+t.length,r.head+t.length)};let o=r.head,s=Pq(e.doc,o);if(s==t){if(Eq(e,o))return{changes:{insert:t+t,from:o},effects:gq.of(o+t.length),range:wg.cursor(o+t.length)};if(kq(e,o)){let i=n&&e.sliceDoc(o,o+3*t.length)==t+t+t;return{range:wg.cursor(o+t.length*(i?3:1)),effects:yq.of(o)}}}else{if(n&&e.sliceDoc(o-2*t.length,o)==t+t&&Eq(e,o-2*t.length))return{changes:{insert:t+t+t+t,from:o},effects:gq.of(o+t.length),range:wg.cursor(o+t.length)};if(e.charCategorizer(o)(s)!=ly.Word){let n=e.sliceDoc(o-1,o);if(n!=t&&e.charCategorizer(o)(n)!=ly.Word&&!function(e,t,n){let i=$S(e).resolveInner(t,-1);for(let r=0;r<5;r++){if(e.sliceDoc(i.from,i.from+n.length)==n){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let r=i.to==t&&i.parent;if(!r)break;i=r}return!1}(e,o,t))return{changes:{insert:t+t,from:o},effects:gq.of(o+t.length),range:wg.cursor(o+t.length)}}}return{range:i=r}}));return i?null:e.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Eq(e,t){let n=$S(e).resolveInner(t+1);return n.parent&&n.from==t}function jq(e={}){return[YT,ET.of(e),HT,Cq,KT]}const Nq=[{key:"Ctrl-Space",run:e=>!!e.state.field(YT,!1)&&(e.dispatch({effects:IT.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(YT,!1);return!(!t||!t.active.some((e=>0!=e.state)))&&(e.dispatch({effects:LT.of(null)}),!0)}},{key:"ArrowDown",run:FT(!0)},{key:"ArrowUp",run:FT(!1)},{key:"PageDown",run:FT(!0,"page")},{key:"PageUp",run:FT(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(YT,!1);return!(e.state.readOnly||!t||!t.open||Date.now()-t.open.timestamp<75||t.open.selected<0)&&(PT(e,t.open.options[t.open.selected]),!0)}}],Cq=zg.highest(S$.computeN([ET],(e=>e.facet(ET).defaultKeymap?[Nq]:[])));class Aq{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class zq{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let i=e,r=n.facet(Hq).markerFilter;r&&(i=r(i));let o=Lb.set(i.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?Lb.widget({widget:new eR(e),diagnostic:e}).range(e.from):Lb.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity},diagnostic:e}).range(e.from,e.to))),!0);return new zq(o,t,Dq(o))}}function Dq(e,t=null,n=0){let i=null;return e.between(n,1e9,((e,n,{spec:r})=>{if(!t||r.diagnostic==t)return i=new Aq(e,n,r.diagnostic),!1})),i}function Wq(e,t){return!(!e.effects.some((e=>e.is(Mq)))&&!e.changes.touchesRange(t.pos))}function Vq(e,t){return e.field(Iq,!1)?t:t.concat(ey.appendConfig.of([Iq,g$.decorations.compute([Iq],(e=>{let{selected:t,panel:n}=e.field(Iq);return t&&n&&t.from!=t.to?Lb.set([Lq.range(t.from,t.to)]):Lb.none})),$_(Zq,{hideOn:Wq}),oR]))}const Mq=ey.define(),Xq=ey.define(),Uq=ey.define(),Iq=Rg.define({create:()=>new zq(Lb.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),i=null;if(e.selected){let r=t.changes.mapPos(e.selected.from,1);i=Dq(n,e.selected.diagnostic,r)||Dq(n,null,r)}e=new zq(n,e.panel,i)}for(let n of t.effects)n.is(Mq)?e=zq.init(n.value,e.panel,t.state):n.is(Xq)?e=new zq(e.diagnostics,n.value?nR.open:null,e.selected):n.is(Uq)&&(e=new zq(e.diagnostics,e.panel,n.value));return e},provide:e=>[T_.from(e,(e=>e.panel)),g$.decorations.from(e,(e=>e.diagnostics))]});const Lq=Lb.mark({class:"cm-lintRange cm-lintRange-active"});function Zq(e,t,n){let{diagnostics:i}=e.state.field(Iq),r=[],o=2e8,s=0;i.between(t-(n<0?1:0),t+(n>0?1:0),((e,i,{spec:a})=>{t>=e&&t<=i&&(e==i||(t>e||n>0)&&(t<i||n<0))&&(r.push(a.diagnostic),o=Math.min(e,o),s=Math.max(i,s))}));let a=e.state.facet(Hq).tooltipFilter;return a&&(r=a(r)),r.length?{pos:o,end:s,above:e.state.doc.lineAt(o).to<s,create:()=>({dom:Gq(e,r)})}:null}function Gq(e,t){return _P("ul",{class:"cm-tooltip-lint"},t.map((t=>Jq(e,t,!1))))}const Yq=e=>{let t=e.state.field(Iq,!1);return!(!t||!t.panel)&&(e.dispatch({effects:Xq.of(!1)}),!0)},Fq=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(Iq,!1);t&&t.panel||e.dispatch({effects:Vq(e.state,[Xq.of(!0)])});let n=S_(e,nR.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0}},{key:"F8",run:e=>{let t=e.state.field(Iq,!1);if(!t)return!1;let n=e.state.selection.main,i=t.diagnostics.iter(n.to+1);return!(!i.value&&(i=t.diagnostics.iter(0),!i.value||i.from==n.from&&i.to==n.to))&&(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)}}],Bq=Ov.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(Hq);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){let e=Date.now();if(e<this.lintTime-10)setTimeout(this.run,this.lintTime-e);else{this.set=!1;let{state:e}=this.view,{sources:t}=e.facet(Hq);Promise.all(t.map((e=>Promise.resolve(e(this.view))))).then((t=>{let n=t.reduce(((e,t)=>e.concat(t)));this.view.state.doc==e.doc&&this.view.dispatch(function(e,t){return{effects:Vq(e,[Mq.of(t)])}}(this.view.state,n))}),(e=>{dv(this.view.state,e)}))}}update(e){let t=e.state.facet(Hq);(e.docChanged||t!=e.startState.facet(Hq))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),Hq=xg.define({combine:e=>Object.assign({sources:e.map((e=>e.source))},py(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null})),enables:Bq});function Kq(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;e<n.length;e++){let i=n[e];if(/[a-zA-Z]/.test(i)&&!t.some((e=>e.toLowerCase()==i.toLowerCase()))){t.push(i);continue e}}t.push("")}return t}function Jq(e,t,n){var i;let r=n?Kq(t.actions):[];return _P("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},_P("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(i=t.actions)||void 0===i?void 0:i.map(((n,i)=>{let o=i=>{i.preventDefault();let r=Dq(e.state.field(Iq).diagnostics,t);r&&n.apply(e,r.from,r.to)},{name:s}=n,a=r[i]?s.indexOf(r[i]):-1,l=a<0?s:[s.slice(0,a),_P("u",s.slice(a,a+1)),s.slice(a+1)];return _P("button",{type:"button",class:"cm-diagnosticAction",onclick:o,onmousedown:o,"aria-label":` Action: ${s}${a<0?"":` (access key "${r[i]})"`}.`},l)})),t.source&&_P("div",{class:"cm-diagnosticSource"},t.source))}class eR extends Ub{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return _P("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class tR{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=Jq(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class nR{constructor(e){this.view=e,this.items=[];this.list=_P("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)Yq(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],i=Kq(n.actions);for(let r=0;r<i.length;r++)if(i[r].toUpperCase().charCodeAt(0)==t.keyCode){let t=Dq(this.view.state.field(Iq).diagnostics,n);t&&n.actions[r].apply(e,t.from,t.to)}}}t.preventDefault()},onclick:e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)}}),this.dom=_P("div",{class:"cm-panel-lint"},this.list,_P("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Yq(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Iq).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Iq),n=0,i=!1,r=null;for(e.between(0,this.view.state.doc.length,((e,o,{spec:s})=>{let a,l=-1;for(let e=n;e<this.items.length;e++)if(this.items[e].diagnostic==s.diagnostic){l=e;break}l<0?(a=new tR(this.view,s.diagnostic),this.items.splice(n,0,a),i=!0):(a=this.items[l],l>n&&(this.items.splice(n,l-n),i=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),r=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}));n<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)i=!0,this.items.pop();0==this.items.length&&(this.items.push(new tR(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=!0),r?(this.list.setAttribute("aria-activedescendant",r.id),this.view.requestMeasure({key:this,read:()=>({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{e.top<t.top?this.list.scrollTop-=t.top-e.top:e.bottom>t.bottom&&(this.list.scrollTop+=e.bottom-t.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=Dq(this.view.state.field(Iq).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Uq.of(t)})}static open(e){return new nR(e)}}function iR(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function rR(e){return iR(`<path d="m0
|
|